Skip to content

Commit 29f540e

Browse files
Merge pull request #46 from gleanwork/speakeasy-sdk-regen-1750453706
chore: 🐝 Update SDK - Generate 0.7.1
2 parents 171c3c4 + 6b4aa2b commit 29f540e

51 files changed

Lines changed: 354 additions & 124 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/examples/node_modules
2+
.env
3+
.env.local
4+
.env.*.local
15
**/.speakeasy/temp/
26
**/.speakeasy/logs/
37
.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 664aaca5-a41f-4434-8f2a-642dba92fe68
33
management:
4-
docChecksum: 6cb4c4786bf30fecfc20b38750d745eb
4+
docChecksum: bb65a174a6b697994f7bde3845843d9d
55
docVersion: 0.9.0
66
speakeasyVersion: 1.551.0
77
generationVersion: 2.610.0
8-
releaseVersion: 0.6.7
9-
configChecksum: 34bcf35d00462d4888c5cb08993108e6
8+
releaseVersion: 0.7.1
9+
configChecksum: 5f4dd64e2f42856bb8324598fc4fc945
1010
repoURL: https://github.com/gleanwork/api-client-typescript.git
1111
installationURL: https://github.com/gleanwork/api-client-typescript
1212
published: true
@@ -454,6 +454,7 @@ generatedFiles:
454454
- docs/models/components/reminderrequest.md
455455
- docs/models/components/reportstatusresponse.md
456456
- docs/models/components/reportstatusresponsestatus.md
457+
- docs/models/components/requesttype.md
457458
- docs/models/components/responsehint.md
458459
- docs/models/components/responsestatus.md
459460
- docs/models/components/restrictionfilters.md
@@ -2245,17 +2246,17 @@ examples:
22452246
createAndStreamRun:
22462247
speakeasy-default-create-and-stream-run:
22472248
requestBody:
2248-
application/json: {"agent_id": "<id>"}
2249+
application/json: {"agent_id": "<id>", "messages": [{"role": "USER"}]}
22492250
responses:
22502251
"200":
22512252
text/event-stream: "<value>"
22522253
createAndWaitRun:
22532254
speakeasy-default-create-and-wait-run:
22542255
requestBody:
2255-
application/json: {"agent_id": "<id>"}
2256+
application/json: {"agent_id": "<id>", "messages": [{"role": "USER"}]}
22562257
responses:
22572258
"200":
2258-
application/json: {}
2259+
application/json: {"run": {"agent_id": "<id>", "messages": [{"role": "USER"}]}, "messages": [{"role": "USER"}]}
22592260
addcollectionitems:
22602261
speakeasy-default-addcollectionitems:
22612262
requestBody:
@@ -2430,7 +2431,7 @@ examples:
24302431
listentities:
24312432
speakeasy-default-listentities:
24322433
requestBody:
2433-
application/json: {"filter": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "entityType": "PEOPLE", "pageSize": 100}
2434+
application/json: {"filter": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "entityType": "PEOPLE", "pageSize": 100, "requestType": "STANDARD"}
24342435
responses:
24352436
"200":
24362437
application/json: {"results": [{"name": "George Clooney", "obfuscatedId": "abc123"}], "teamResults": [{"id": "<id>", "name": "<value>", "members": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 444698, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 287671, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "<id>"}], "collections": [{"name": "<value>", "description": "recount underneath and but by oof trivial pfft finally", "addedRoles": [{"role": "ANSWER_MODERATOR"}], "removedRoles": [{"role": "VERIFIER"}, {"role": "VERIFIER"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 515069, "items": [{"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}, {"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}]}], "interactions": {"reacts": [{}, {}, {}], "shares": [{"numDaysAgo": 881619}, {"numDaysAgo": 881619}, {"numDaysAgo": 881619}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 106868}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 520851}}}, "shortcuts": [{"inputAlias": "<value>"}, {"inputAlias": "<value>"}, {"inputAlias": "<value>"}], "customData": {"someCustomField": {}}}}}, {"startIndex": 287671, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "<id>"}], "collections": [{"name": "<value>", "description": "recount underneath and but by oof trivial pfft finally", "addedRoles": [{"role": "ANSWER_MODERATOR"}], "removedRoles": [{"role": "VERIFIER"}, {"role": "VERIFIER"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 515069, "items": [{"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}, {"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}]}], "interactions": {"reacts": [{}, {}, {}], "shares": [{"numDaysAgo": 881619}, {"numDaysAgo": 881619}, {"numDaysAgo": 881619}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 106868}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 520851}}}, "shortcuts": [{"inputAlias": "<value>"}, {"inputAlias": "<value>"}, {"inputAlias": "<value>"}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"snippet": "snippet", "mimeType": "mimeType"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 444698, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 287671, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "<id>"}], "collections": [{"name": "<value>", "description": "recount underneath and but by oof trivial pfft finally", "addedRoles": [{"role": "ANSWER_MODERATOR"}], "removedRoles": [{"role": "VERIFIER"}, {"role": "VERIFIER"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 515069, "items": [{"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}, {"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}]}], "interactions": {"reacts": [{}, {}, {}], "shares": [{"numDaysAgo": 881619}, {"numDaysAgo": 881619}, {"numDaysAgo": 881619}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 106868}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 520851}}}, "shortcuts": [{"inputAlias": "<value>"}, {"inputAlias": "<value>"}, {"inputAlias": "<value>"}], "customData": {"someCustomField": {}}}}}, {"startIndex": 287671, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "<id>"}], "collections": [{"name": "<value>", "description": "recount underneath and but by oof trivial pfft finally", "addedRoles": [{"role": "ANSWER_MODERATOR"}], "removedRoles": [{"role": "VERIFIER"}, {"role": "VERIFIER"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 515069, "items": [{"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}, {"collectionId": 765291, "shortcut": {"inputAlias": "<value>", "roles": [{"role": "EDITOR"}]}, "itemType": "TEXT"}]}], "interactions": {"reacts": [{}, {}, {}], "shares": [{"numDaysAgo": 881619}, {"numDaysAgo": 881619}, {"numDaysAgo": 881619}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 106868}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 520851}}}, "shortcuts": [{"inputAlias": "<value>"}, {"inputAlias": "<value>"}, {"inputAlias": "<value>"}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"snippet": "snippet", "mimeType": "mimeType"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": "<value>"}, {"datasource": "github", "handle": "<value>"}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}]}, "customFields": [{"label": "<value>", "values": [{}], "displayable": true}, {"label": "<value>", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "relationship": "MEMBER"}], "datasourceProfiles": [{"datasource": "github", "handle": "<value>"}, {"datasource": "github", "handle": "<value>"}, {"datasource": "github", "handle": "<value>"}], "status": "PROCESSED", "canBeDeleted": true}], "customEntityResults": [{}, {}], "facetResults": [{"sourceName": "container_name", "operatorName": "SelectMultiple", "buckets": [{"count": 1, "datasource": "jira", "percentage": 5, "value": {"stringValue": "engineering", "integerValue": 5, "displayLabel": "engineering", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}}], "hasMoreBuckets": false, "groupName": "Service Cloud"}]}

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: true
2626
skipResponseBodyAssertions: true
2727
typescript:
28-
version: 0.6.7
28+
version: 0.7.1
2929
additionalDependencies:
3030
dependencies: {}
3131
devDependencies: {}
@@ -34,6 +34,7 @@ typescript:
3434
author: Speakeasy
3535
baseErrorName: GleanBaseError
3636
clientServerStatusCodesAsErrors: true
37+
constFieldsAlwaysOptional: true
3738
defaultErrorName: GleanError
3839
enableCustomCodeRegions: false
3940
enableMCPServer: false
@@ -42,6 +43,7 @@ typescript:
4243
envVarPrefix: GLEAN
4344
flattenGlobalSecurity: true
4445
flatteningOrder: body-first
46+
generateExamples: true
4547
imports:
4648
option: openapi
4749
paths:

.speakeasy/glean-merged-spec.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ paths:
17951795
tags:
17961796
- Entities
17971797
summary: List entities
1798-
description: List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint.
1798+
description: List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities.
17991799
operationId: listentities
18001800
x-visibility: Public
18011801
x-codegen-request-body-name: payload
@@ -4122,6 +4122,7 @@ components:
41224122
- ID_EQUALS
41234123
- LT
41244124
- GT
4125+
- NOT_EQUALS
41254126
example: EQUALS
41264127
isNegated:
41274128
type: boolean
@@ -4868,7 +4869,8 @@ components:
48684869
example: From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.
48694870
boardId:
48704871
type: integer
4871-
description: The parent board ID of this Answer, or 0 if it's a floating Answer.
4872+
description: The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted.
4873+
deprecated: true
48724874
audienceFilters:
48734875
type: array
48744876
description: Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search.
@@ -5640,11 +5642,13 @@ components:
56405642
- ATTACHMENT
56415643
- CANONICAL
56425644
- CASE
5645+
- contact
56435646
- CONTACT
56445647
- CONVERSATION_MESSAGES
56455648
- EXPERT
56465649
- FROM
56475650
- HIGHLIGHT
5651+
- opportunity
56485652
- OPPORTUNITY
56495653
- RECENT
56505654
- SOURCE
@@ -7523,6 +7527,7 @@ components:
75237527
type: string
75247528
title: Role
75257529
description: The role of the message.
7530+
example: USER
75267531
content:
75277532
title: Content
75287533
description: The content of the message.
@@ -8415,6 +8420,7 @@ components:
84158420
- COPYPASTED_QUOTES
84168421
- INVALID_OPERATOR
84178422
- MAYBE_INVALID_FACET_QUERY
8423+
- TOO_MANY_DATASOURCE_GROUPS
84188424
description: The type of the warning.
84198425
lastUsedTerm:
84208426
type: string
@@ -9058,6 +9064,7 @@ components:
90589064
- DISPLAYABLE_LIST
90599065
- SOCIAL_LINK
90609066
- EXTERNAL_TASKS
9067+
- WORKFLOW_COLLECTIONS
90619068
- ZERO_STATE_CHAT_SUGGESTION
90629069
- ZERO_STATE_CHAT_TOOL_SUGGESTION
90639070
- ZERO_STATE_WORKFLOW_CREATED_BY_ME
@@ -9632,6 +9639,16 @@ components:
96329639
source:
96339640
type: string
96349641
description: A string denoting the search surface from which the endpoint is called.
9642+
requestType:
9643+
type: string
9644+
default: STANDARD
9645+
description: The type of request being made.
9646+
x-enumDescriptions:
9647+
STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities.
9648+
FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations.
9649+
enum:
9650+
- STANDARD
9651+
- FULL_DIRECTORY
96359652
EntitiesSortOrder:
96369653
type: string
96379654
description: Different ways of sorting entities
@@ -11745,6 +11762,10 @@ components:
1174511762
type: string
1174611763
description: end time of the time range, applicable for the CUSTOM type.
1174711764
format: date-time
11765+
lastNDaysValue:
11766+
type: integer
11767+
description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type.
11768+
format: int64
1174811769
InputOptions:
1174911770
description: Controls which data-sources and what time-range to include in scans.
1175011771
properties:
@@ -11779,6 +11800,7 @@ components:
1177911800
- PAST_YEAR
1178011801
- PAST_DAY
1178111802
- CUSTOM
11803+
- LAST_N_DAYS
1178211804
customTimeRange:
1178311805
$ref: "#/components/schemas/TimeRange"
1178411806
SharingOptions:

0 commit comments

Comments
 (0)