Skip to content

Commit 11d92a0

Browse files
Merge pull request #39 from gleanwork/speakeasy-sdk-regen-1749236901
chore: 🐝 Update SDK - Generate 0.5.3
2 parents 918055d + 3beccba commit 11d92a0

39 files changed

+245
-172
lines changed

.speakeasy/gen.lock

Lines changed: 7 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: d74f93d052b62c1709b537bca6b5e9cb
4+
docChecksum: a0748babeea2c91be038da9e477a97f3
55
docVersion: 0.9.0
66
speakeasyVersion: 1.551.0
77
generationVersion: 2.610.0
8-
releaseVersion: 0.5.1
9-
configChecksum: 7a534d2eb610053ed728cbb280131186
8+
releaseVersion: 0.5.3
9+
configChecksum: f4be71cf1dbe0f8d7bc0a4f061b7c9ce
1010
repoURL: https://github.com/gleanwork/api-client-typescript.git
1111
installationURL: https://github.com/gleanwork/api-client-typescript
1212
published: true
@@ -2225,7 +2225,7 @@ examples:
22252225
query: {}
22262226
responses:
22272227
"200":
2228-
application/json: {"agent_id": "<id>", "name": "<value>", "capabilities": {}}
2228+
application/json: {"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "description": "This agent answers questions about the current company HR policies.", "capabilities": {}}
22292229
getAgentSchemas:
22302230
speakeasy-default-get-agent-schemas:
22312231
parameters:
@@ -2234,14 +2234,14 @@ examples:
22342234
query: {}
22352235
responses:
22362236
"200":
2237-
application/json: {"agent_id": "<id>", "input_schema": {}, "output_schema": {}}
2237+
application/json: {"agent_id": "mho4lwzylcozgoc2", "input_schema": {}, "output_schema": {}}
22382238
searchAgents:
22392239
speakeasy-default-search-agents:
22402240
requestBody:
2241-
application/json: {}
2241+
application/json: {"name": "HR Policy Agent"}
22422242
responses:
22432243
"200":
2244-
application/json: {}
2244+
application/json: {"agents": [{"agent_id": "mho4lwzylcozgoc2", "name": "HR Policy Agent", "description": "This agent answers questions about the current company HR policies.", "capabilities": {}}]}
22452245
createAndStreamRun:
22462246
speakeasy-default-create-and-stream-run:
22472247
requestBody:

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ generation:
2525
generateNewTests: true
2626
skipResponseBodyAssertions: true
2727
typescript:
28-
version: 0.5.1
28+
version: 0.5.3
2929
additionalDependencies:
3030
dependencies: {}
3131
devDependencies: {}
3232
peerDependencies: {}
3333
additionalPackageJSON: {}
3434
author: Speakeasy
35+
baseErrorName: GleanBaseError
3536
clientServerStatusCodesAsErrors: true
3637
defaultErrorName: GleanError
3738
enableCustomCodeRegions: false

.speakeasy/glean-merged-spec.yaml

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ paths:
756756
get:
757757
tags:
758758
- Agents
759-
summary: Get Agent
760-
description: Get an agent by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
759+
summary: Retrieve an agent
760+
description: Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder.
761761
operationId: getAgent
762762
x-visibility: Preview
763763
parameters:
@@ -795,8 +795,8 @@ paths:
795795
get:
796796
tags:
797797
- Agents
798-
summary: Get Agent Schemas
799-
description: Get an agent's schemas by ID. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/GET/agents/{agent_id}/schemas). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
798+
summary: List an agent's schemas
799+
description: Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure.
800800
operationId: getAgentSchemas
801801
x-visibility: Preview
802802
parameters:
@@ -840,8 +840,8 @@ paths:
840840
post:
841841
tags:
842842
- Agents
843-
summary: Search Agents
844-
description: List Agents available in this service. This endpoint implements the LangChain Agent Protocol, specifically part of the Agents stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/agents/POST/agents/search). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol.
843+
summary: Search agents
844+
description: "Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. "
845845
operationId: searchAgents
846846
x-visibility: Preview
847847
requestBody:
@@ -881,8 +881,8 @@ paths:
881881
post:
882882
tags:
883883
- Agents
884-
summary: Create Run, Stream Output
885-
description: Creates and triggers a run of an agent. Streams the output in SSE format. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/stream). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
884+
summary: Create an agent run and stream the response
885+
description: Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE).
886886
operationId: createAndStreamRun
887887
x-visibility: Preview
888888
requestBody:
@@ -898,12 +898,23 @@ paths:
898898
text/event-stream:
899899
schema:
900900
type: string
901-
description: |-
902-
The server will send a stream of events in SSE format.
903-
**Example event**:
901+
description: The server will send a stream of events in server-sent events (SSE) format.
902+
example: |
904903
id: 1
905904
event: message
906-
data: {}
905+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":"Hello","type":"text"}]}]}
906+
907+
id: 2
908+
event: message
909+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":",","type":"text"}]}]}
910+
911+
id: 3
912+
event: message
913+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":" I'm","type":"text"}]}]}
914+
915+
id: 4
916+
event: message
917+
data: {"messages":[{"role":"GLEAN_AI","content":[{"text":" your","type":"text"}]}]}
907918
"400":
908919
description: Bad request
909920
"403":
@@ -934,8 +945,8 @@ paths:
934945
post:
935946
tags:
936947
- Agents
937-
summary: Create Run, Wait for Output
938-
description: Creates and triggers a run of an agent. Waits for final output and then returns it. This endpoint implements the LangChain Agent Protocol, specifically part of the Runs stage (https://langchain-ai.github.io/agent-protocol/api.html#tag/runs/POST/runs/wait). It adheres to the standard contract defined for agent interoperability and can be used by agent runtimes that support the Agent Protocol. Note that running agents that reference third party platform write actions is unsupported as it requires user confirmation.
948+
summary: Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
949+
description: Executes an agent run and returns the final response.
939950
operationId: createAndWaitRun
940951
x-visibility: Preview
941952
requestBody:
@@ -7417,31 +7428,38 @@ components:
74177428
type: string
74187429
title: Agent Id
74197430
description: The ID of the agent.
7431+
example: mho4lwzylcozgoc2
74207432
name:
74217433
type: string
74227434
title: Agent Name
74237435
description: The name of the agent
7436+
example: HR Policy Agent
74247437
description:
74257438
type: string
74267439
title: Description
74277440
description: The description of the agent.
7441+
example: This agent answers questions about the current company HR policies.
74287442
metadata:
74297443
type: object
74307444
title: Metadata
7431-
description: The agent metadata.
7445+
description: The agent metadata. Currently not implemented.
74327446
capabilities:
74337447
type: object
74347448
title: Agent Capabilities
7435-
description: Describes which protocol features the agent supports. In addition to the standard capabilities (prefixed with ap.), implementations can declare custom capabilities, named in reverse domain notation (eg. com.example.some.capability).
7449+
description: |-
7450+
Describes features that the agent supports. example: {
7451+
"ap.io.messages": true,
7452+
"ap.io.streaming": true
7453+
}
74367454
properties:
74377455
ap.io.messages:
74387456
type: boolean
74397457
title: Messages
7440-
description: Whether the agent supports Messages as input/output/state. If true, the agent uses the `messages` key in threads/runs endpoints.
7458+
description: Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent.
74417459
ap.io.streaming:
74427460
type: boolean
74437461
title: Streaming
7444-
description: Whether the agent supports streaming output.
7462+
description: Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming.
74457463
additionalProperties: true
74467464
ErrorResponse:
74477465
type: string
@@ -7453,14 +7471,15 @@ components:
74537471
type: string
74547472
title: Agent Id
74557473
description: The ID of the agent.
7474+
example: mho4lwzylcozgoc2
74567475
input_schema:
74577476
type: object
74587477
title: Input Schema
7459-
description: The schema for the agent input. In JSON Schema format.
7478+
description: The schema for the agent input. In JSON schema format.
74607479
output_schema:
74617480
type: object
74627481
title: Output Schema
7463-
description: The schema for the agent output. In JSON Schema format.
7482+
description: The schema for the agent output. In JSON schema format.
74647483
type: object
74657484
required:
74667485
- agent_id
@@ -7473,7 +7492,8 @@ components:
74737492
properties:
74747493
name:
74757494
type: string
7476-
description: Filters on the name of the agent. If empty, acts as no filter.
7495+
description: Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter.
7496+
example: HR Policy Agent
74777497
SearchAgentsResponse:
74787498
type: object
74797499
title: Response Search Agents
@@ -9272,11 +9292,16 @@ components:
92729292
runCount:
92739293
$ref: "#/components/schemas/CountInfo"
92749294
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:
9295+
WorkflowDraftableProperties:
92769296
properties:
92779297
name:
92789298
type: string
92799299
description: The name of the workflow.
9300+
WorkflowMutableProperties:
9301+
type: object
9302+
allOf:
9303+
- $ref: "#/components/schemas/WorkflowDraftableProperties"
9304+
- type: object
92809305
WorkflowMetadata:
92819306
allOf:
92829307
- type: object

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ speakeasyVersion: 1.551.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
6-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
5+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
6+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748395012
9+
- speakeasy-sdk-regen-1749236901
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
22-
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
21+
sourceRevisionDigest: sha256:927ebf4c072ddb7d9c4a9501c375fb01ecf9f95a3b50fc73205f2c30e5863107
22+
sourceBlobDigest: sha256:552c782f3b9cf6ed461abfbed82233620b573fa3c71fcb6d59dc5a02efd43d35
2323
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:98fc3865b8edb43487025b2b2df71f33e5df2af1d85792cf4127e9ce074924a5
24+
codeSamplesRevisionDigest: sha256:dbf79590683cfb44f7bb0df22c57219f427a10eb32febfbee5bcd60154d06655
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ For more information on obtaining the appropriate token type, please contact you
293293

294294
#### [client.agents](docs/sdks/agents/README.md)
295295

296-
* [retrieve](docs/sdks/agents/README.md#retrieve) - Get Agent
297-
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - Get Agent Schemas
298-
* [list](docs/sdks/agents/README.md#list) - Search Agents
299-
* [runStream](docs/sdks/agents/README.md#runstream) - Create Run, Stream Output
300-
* [run](docs/sdks/agents/README.md#run) - Create Run, Wait for Output
296+
* [retrieve](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
297+
* [retrieveSchemas](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
298+
* [list](docs/sdks/agents/README.md#list) - Search agents
299+
* [runStream](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
300+
* [run](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
301301

302302
#### [client.announcements](docs/sdks/announcements/README.md)
303303

@@ -508,11 +508,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
508508

509509
- [`clientActivityFeedback`](docs/sdks/activity/README.md#feedback) - Report client activity
510510
- [`clientActivityReport`](docs/sdks/activity/README.md#report) - Report document activity
511-
- [`clientAgentsList`](docs/sdks/agents/README.md#list) - Search Agents
512-
- [`clientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Get Agent
513-
- [`clientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - Get Agent Schemas
514-
- [`clientAgentsRun`](docs/sdks/agents/README.md#run) - Create Run, Wait for Output
515-
- [`clientAgentsRunStream`](docs/sdks/agents/README.md#runstream) - Create Run, Stream Output
511+
- [`clientAgentsList`](docs/sdks/agents/README.md#list) - Search agents
512+
- [`clientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
513+
- [`clientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
514+
- [`clientAgentsRun`](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
515+
- [`clientAgentsRunStream`](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
516516
- [`clientAnnouncementsCreate`](docs/sdks/announcements/README.md#create) - Create Announcement
517517
- [`clientAnnouncementsDelete`](docs/sdks/announcements/README.md#delete) - Delete Announcement
518518
- [`clientAnnouncementsUpdate`](docs/sdks/announcements/README.md#update) - Update Announcement
@@ -647,11 +647,11 @@ To learn about this feature and how to get started, check
647647

648648
- [`useClientActivityFeedbackMutation`](docs/sdks/activity/README.md#feedback) - Report client activity
649649
- [`useClientActivityReportMutation`](docs/sdks/activity/README.md#report) - Report document activity
650-
- [`useClientAgentsListMutation`](docs/sdks/agents/README.md#list) - Search Agents
651-
- [`useClientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Get Agent
652-
- [`useClientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - Get Agent Schemas
653-
- [`useClientAgentsRunMutation`](docs/sdks/agents/README.md#run) - Create Run, Wait for Output
654-
- [`useClientAgentsRunStreamMutation`](docs/sdks/agents/README.md#runstream) - Create Run, Stream Output
650+
- [`useClientAgentsListMutation`](docs/sdks/agents/README.md#list) - Search agents
651+
- [`useClientAgentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve an agent
652+
- [`useClientAgentsRetrieveSchemas`](docs/sdks/agents/README.md#retrieveschemas) - List an agent's schemas
653+
- [`useClientAgentsRunMutation`](docs/sdks/agents/README.md#run) - Create an [agent](https://developers.glean.com/agents/agents-api) run and wait for the response
654+
- [`useClientAgentsRunStreamMutation`](docs/sdks/agents/README.md#runstream) - Create an agent run and stream the response
655655
- [`useClientAnnouncementsCreateMutation`](docs/sdks/announcements/README.md#create) - Create Announcement
656656
- [`useClientAnnouncementsDeleteMutation`](docs/sdks/announcements/README.md#delete) - Delete Announcement
657657
- [`useClientAnnouncementsUpdateMutation`](docs/sdks/announcements/README.md#update) - Update Announcement

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,14 @@ Based on:
168168
### Generated
169169
- [typescript v0.5.1] .
170170
### Releases
171-
- [NPM v0.5.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.5.1 - .
171+
- [NPM v0.5.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.5.1 - .
172+
173+
## 2025-06-06 19:43:32
174+
### Changes
175+
Based on:
176+
- OpenAPI Doc
177+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
178+
### Generated
179+
- [typescript v0.5.3] .
180+
### Releases
181+
- [NPM v0.5.3] https://www.npmjs.com/package/@gleanwork/api-client/v/0.5.3 - .

0 commit comments

Comments
 (0)