Skip to content

Commit 36db8e8

Browse files
committed
chore: regenerate tests for endpoint changes
1 parent 5bd5693 commit 36db8e8

35 files changed

+476
-418
lines changed

.speakeasy/gen.lock

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

.speakeasy/glean-merged-spec.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9272,11 +9272,16 @@ components:
92729272
runCount:
92739273
$ref: "#/components/schemas/CountInfo"
92749274
description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template.
9275-
WorkflowMutableProperties:
9275+
WorkflowDraftableProperties:
92769276
properties:
92779277
name:
92789278
type: string
92799279
description: The name of the workflow.
9280+
WorkflowMutableProperties:
9281+
type: object
9282+
allOf:
9283+
- $ref: "#/components/schemas/WorkflowDraftableProperties"
9284+
- type: object
92809285
WorkflowMetadata:
92819286
allOf:
92829287
- type: object

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
speakeasyVersion: 1.555.2
1+
speakeasyVersion: 1.555.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
6-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
5+
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
6+
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748993191
109
Glean Client API:
1110
sourceNamespace: glean-client-api
1211
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +16,10 @@ targets:
1716
glean:
1817
source: Glean API
1918
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
21-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
19+
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
20+
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
2221
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:74861ef8ca5de61f14037c5c7aa54891c396b1d198d3e180f03ade0523a40d74
22+
codeSamplesRevisionDigest: sha256:38daa09fcc08430b42c527a3325478333bf123fbc4e178ec364cddbda1582359
2423
workflow:
2524
workflowVersion: 1.0.0
2625
speakeasyVersion: latest

docs/models/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
| Field | Type | Required | Description | Example |
77
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
89
| `author` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
910
| `create_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the creation time. | |
1011
| `last_update_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the last update time. | |
1112
| `last_updated_by` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
1213
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
13-
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
1414
| `id` | *Optional[str]* | :heavy_minus_sign: | The ID of the workflow. | |

docs/sdks/datasources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ with Glean(
2323
api_token=os.getenv("GLEAN_API_TOKEN", ""),
2424
) as g_client:
2525

26-
g_client.indexing.datasources.add(name="<value>", datasource_category=models.DatasourceCategory.UNCATEGORIZED, url_regex="https://example-company.datasource.com/.*", quicklinks=[
26+
g_client.indexing.datasources.add(name="<value>", url_regex="https://example-company.datasource.com/.*", quicklinks=[
2727
{
2828
"icon_config": {
2929
"color": "#343CED",
@@ -32,7 +32,7 @@ with Glean(
3232
"name": "user",
3333
},
3434
},
35-
], trust_url_regex_for_view_activity=True, strip_fragment_in_canonical_url=True, is_entity_datasource=False, is_test_datasource=False)
35+
])
3636

3737
# Use the SDK ...
3838

docs/sdks/search/README.md

Lines changed: 44 additions & 228 deletions
Original file line numberDiff line numberDiff line change
@@ -29,75 +29,31 @@ with Glean(
2929

3030
res = g_client.client.search.query_as_admin(query="vacation policy", tracking_token="trackingToken", source_document=models.Document(
3131
container_document=models.Document(
32-
metadata=models.DocumentMetadata(
33-
datasource="datasource",
34-
object_type="Feature Request",
35-
container="container",
36-
parent_id="JIRA_EN-1337",
37-
mime_type="mimeType",
38-
document_id="documentId",
39-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
40-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
41-
author=models.Person(
42-
name="name",
43-
obfuscated_id="<id>",
44-
),
45-
components=[
46-
"Backend",
47-
"Networking",
48-
],
49-
status="[\"Done\"]",
50-
custom_data={
51-
"someCustomField": models.CustomDataValue(),
52-
},
53-
),
54-
),
55-
parent_document=models.Document(
56-
metadata=models.DocumentMetadata(
57-
datasource="datasource",
58-
object_type="Feature Request",
59-
container="container",
60-
parent_id="JIRA_EN-1337",
61-
mime_type="mimeType",
62-
document_id="documentId",
63-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
64-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
65-
author=models.Person(
66-
name="name",
67-
obfuscated_id="<id>",
32+
parent_document=models.Document(
33+
metadata=models.DocumentMetadata(
34+
datasource="datasource",
35+
object_type="Feature Request",
36+
container="container",
37+
parent_id="JIRA_EN-1337",
38+
mime_type="mimeType",
39+
document_id="documentId",
40+
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
41+
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
42+
author=models.Person(
43+
name="name",
44+
obfuscated_id="<id>",
45+
),
46+
components=[
47+
"Backend",
48+
"Networking",
49+
],
50+
status="[\"Done\"]",
51+
custom_data={
52+
"someCustomField": models.CustomDataValue(),
53+
},
6854
),
69-
components=[
70-
"Backend",
71-
"Networking",
72-
],
73-
status="[\"Done\"]",
74-
custom_data={
75-
"someCustomField": models.CustomDataValue(),
76-
},
7755
),
7856
),
79-
metadata=models.DocumentMetadata(
80-
datasource="datasource",
81-
object_type="Feature Request",
82-
container="container",
83-
parent_id="JIRA_EN-1337",
84-
mime_type="mimeType",
85-
document_id="documentId",
86-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
87-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
88-
author=models.Person(
89-
name="name",
90-
obfuscated_id="<id>",
91-
),
92-
components=[
93-
"Backend",
94-
"Networking",
95-
],
96-
status="[\"Done\"]",
97-
custom_data={
98-
"someCustomField": models.CustomDataValue(),
99-
},
100-
),
10157
), page_size=10, max_snippet_size=400, input_details={
10258
"has_copy_paste": True,
10359
}, request_options=models.SearchRequestOptions(
@@ -272,54 +228,6 @@ with Glean(
272228

273229
res = g_client.client.search.recommendations(request=models.RecommendationsRequest(
274230
source_document=models.Document(
275-
container_document=models.Document(
276-
metadata=models.DocumentMetadata(
277-
datasource="datasource",
278-
object_type="Feature Request",
279-
container="container",
280-
parent_id="JIRA_EN-1337",
281-
mime_type="mimeType",
282-
document_id="documentId",
283-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
284-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
285-
author=models.Person(
286-
name="name",
287-
obfuscated_id="<id>",
288-
),
289-
components=[
290-
"Backend",
291-
"Networking",
292-
],
293-
status="[\"Done\"]",
294-
custom_data={
295-
"someCustomField": models.CustomDataValue(),
296-
},
297-
),
298-
),
299-
parent_document=models.Document(
300-
metadata=models.DocumentMetadata(
301-
datasource="datasource",
302-
object_type="Feature Request",
303-
container="container",
304-
parent_id="JIRA_EN-1337",
305-
mime_type="mimeType",
306-
document_id="documentId",
307-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
308-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
309-
author=models.Person(
310-
name="name",
311-
obfuscated_id="<id>",
312-
),
313-
components=[
314-
"Backend",
315-
"Networking",
316-
],
317-
status="[\"Done\"]",
318-
custom_data={
319-
"someCustomField": models.CustomDataValue(),
320-
},
321-
),
322-
),
323231
metadata=models.DocumentMetadata(
324232
datasource="datasource",
325233
object_type="Feature Request",
@@ -400,54 +308,6 @@ with Glean(
400308
),
401309
],
402310
context=models.Document(
403-
container_document=models.Document(
404-
metadata=models.DocumentMetadata(
405-
datasource="datasource",
406-
object_type="Feature Request",
407-
container="container",
408-
parent_id="JIRA_EN-1337",
409-
mime_type="mimeType",
410-
document_id="documentId",
411-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
412-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
413-
author=models.Person(
414-
name="name",
415-
obfuscated_id="<id>",
416-
),
417-
components=[
418-
"Backend",
419-
"Networking",
420-
],
421-
status="[\"Done\"]",
422-
custom_data={
423-
"someCustomField": models.CustomDataValue(),
424-
},
425-
),
426-
),
427-
parent_document=models.Document(
428-
metadata=models.DocumentMetadata(
429-
datasource="datasource",
430-
object_type="Feature Request",
431-
container="container",
432-
parent_id="JIRA_EN-1337",
433-
mime_type="mimeType",
434-
document_id="documentId",
435-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
436-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
437-
author=models.Person(
438-
name="name",
439-
obfuscated_id="<id>",
440-
),
441-
components=[
442-
"Backend",
443-
"Networking",
444-
],
445-
status="[\"Done\"]",
446-
custom_data={
447-
"someCustomField": models.CustomDataValue(),
448-
},
449-
),
450-
),
451311
metadata=models.DocumentMetadata(
452312
datasource="datasource",
453313
object_type="Feature Request",
@@ -516,75 +376,31 @@ with Glean(
516376

517377
res = g_client.client.search.query(query="vacation policy", tracking_token="trackingToken", source_document=models.Document(
518378
container_document=models.Document(
519-
metadata=models.DocumentMetadata(
520-
datasource="datasource",
521-
object_type="Feature Request",
522-
container="container",
523-
parent_id="JIRA_EN-1337",
524-
mime_type="mimeType",
525-
document_id="documentId",
526-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
527-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
528-
author=models.Person(
529-
name="name",
530-
obfuscated_id="<id>",
531-
),
532-
components=[
533-
"Backend",
534-
"Networking",
535-
],
536-
status="[\"Done\"]",
537-
custom_data={
538-
"someCustomField": models.CustomDataValue(),
539-
},
540-
),
541-
),
542-
parent_document=models.Document(
543-
metadata=models.DocumentMetadata(
544-
datasource="datasource",
545-
object_type="Feature Request",
546-
container="container",
547-
parent_id="JIRA_EN-1337",
548-
mime_type="mimeType",
549-
document_id="documentId",
550-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
551-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
552-
author=models.Person(
553-
name="name",
554-
obfuscated_id="<id>",
379+
parent_document=models.Document(
380+
metadata=models.DocumentMetadata(
381+
datasource="datasource",
382+
object_type="Feature Request",
383+
container="container",
384+
parent_id="JIRA_EN-1337",
385+
mime_type="mimeType",
386+
document_id="documentId",
387+
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
388+
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
389+
author=models.Person(
390+
name="name",
391+
obfuscated_id="<id>",
392+
),
393+
components=[
394+
"Backend",
395+
"Networking",
396+
],
397+
status="[\"Done\"]",
398+
custom_data={
399+
"someCustomField": models.CustomDataValue(),
400+
},
555401
),
556-
components=[
557-
"Backend",
558-
"Networking",
559-
],
560-
status="[\"Done\"]",
561-
custom_data={
562-
"someCustomField": models.CustomDataValue(),
563-
},
564402
),
565403
),
566-
metadata=models.DocumentMetadata(
567-
datasource="datasource",
568-
object_type="Feature Request",
569-
container="container",
570-
parent_id="JIRA_EN-1337",
571-
mime_type="mimeType",
572-
document_id="documentId",
573-
create_time=parse_datetime("2000-01-23T04:56:07.000Z"),
574-
update_time=parse_datetime("2000-01-23T04:56:07.000Z"),
575-
author=models.Person(
576-
name="name",
577-
obfuscated_id="<id>",
578-
),
579-
components=[
580-
"Backend",
581-
"Networking",
582-
],
583-
status="[\"Done\"]",
584-
custom_data={
585-
"someCustomField": models.CustomDataValue(),
586-
},
587-
),
588404
), page_size=10, max_snippet_size=400, input_details={
589405
"has_copy_paste": True,
590406
}, request_options=models.SearchRequestOptions(

speakeasyusagegen/.speakeasy/logs/naming.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse)
773773
FavoriteInfo (ugcType: UgcType, id: string, count: integer ...)
774774
UgcType (enum: ANNOUNCEMENTS_TYPE, ANSWERS_TYPE, COLLECTIONS_TYPE ...)
775775
WorkflowResult (workflow: Workflow)
776-
Workflow (author: Person, createTimestamp: integer, lastUpdateTimestamp: integer ...)
776+
Workflow (name: string, author: Person, createTimestamp: integer ...)
777777
UserActivity (actor: Person, timestamp: integer, action: enum ...)
778778
UserActivityAction (enum: ADD, ADD_REMINDER, CLICK ...)
779779
RecommendationsRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...)

0 commit comments

Comments
 (0)