Skip to content

Commit 96a27b4

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.551.0
1 parent 3308951 commit 96a27b4

File tree

20 files changed

+96
-25
lines changed

20 files changed

+96
-25
lines changed

.speakeasy/gen.lock

Lines changed: 3 additions & 3 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: 59c6e14049dbd73093349e44990e95cc
4+
docChecksum: 6cb4c4786bf30fecfc20b38750d745eb
55
docVersion: 0.9.0
66
speakeasyVersion: 1.551.0
77
generationVersion: 2.610.0
8-
releaseVersion: 0.6.5
9-
configChecksum: 2bb7e9c3ab12b03f19aeb288d2232546
8+
releaseVersion: 0.7.1
9+
configChecksum: 594371d03d6e6893b22dd0a71415abb7
1010
repoURL: https://github.com/gleanwork/api-client-typescript.git
1111
installationURL: https://github.com/gleanwork/api-client-typescript
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 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.5
28+
version: 0.7.1
2929
additionalDependencies:
3030
dependencies: {}
3131
devDependencies: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,12 @@ paths:
351351
tags:
352352
- Authentication
353353
summary: Create authentication token
354-
description: Creates an authentication token for the authenticated user.
354+
description: |
355+
Creates an authentication token for the authenticated user. These are
356+
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).
357+
358+
Note: The tokens generated from this endpoint are **not** valid tokens
359+
for use with the Client API (e.g. `/rest/api/v1/*`).
355360
operationId: createauthtoken
356361
x-visibility: Public
357362
parameters: []
@@ -841,7 +846,7 @@ paths:
841846
tags:
842847
- Agents
843848
summary: Search agents
844-
description: "Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. "
849+
description: Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
845850
operationId: searchAgents
846851
x-visibility: Preview
847852
requestBody:
@@ -7554,6 +7559,11 @@ components:
75547559
$ref: "#/components/schemas/Message"
75557560
title: Messages
75567561
description: The messages to pass an input to the agent.
7562+
metadata:
7563+
type: object
7564+
title: Metadata
7565+
description: The metadata to pass to the agent.
7566+
additionalProperties: true
75577567
AgentExecutionStatus:
75587568
description: The status of the run. One of 'error', 'success'.
75597569
type: string

.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:8a528d68d247ecb98ea1d9d49c135154477cbfbab078b6159359a09f64628fba
6-
sourceBlobDigest: sha256:09d1624a9a347738790040f1fcdc5f2eff15461dd39941a1535efb55e2c8939f
5+
sourceRevisionDigest: sha256:1f9635dba7111cb18874ffe3c940f56a07e81bcc0c192102db70ace028292a42
6+
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1749491198
9+
- speakeasy-sdk-regen-1749670152
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:8a528d68d247ecb98ea1d9d49c135154477cbfbab078b6159359a09f64628fba
22-
sourceBlobDigest: sha256:09d1624a9a347738790040f1fcdc5f2eff15461dd39941a1535efb55e2c8939f
21+
sourceRevisionDigest: sha256:1f9635dba7111cb18874ffe3c940f56a07e81bcc0c192102db70ace028292a42
22+
sourceBlobDigest: sha256:b566588e295fa760c08dc3e5f61f4026e3b295999709bbec5a3f434f51316f89
2323
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:29c180a02756b7994640a201d577460afb8f6e7b4cace2881f33ddc023874d30
24+
codeSamplesRevisionDigest: sha256:0bb2f9b72e8ea34f9707560557e538d13a0e786efcb8398fc6e69dfdcfc6af01
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,14 @@ Based on:
208208
### Generated
209209
- [typescript v0.6.5] .
210210
### Releases
211-
- [NPM v0.6.5] https://www.npmjs.com/package/@gleanwork/api-client/v/0.6.5 - .
211+
- [NPM v0.6.5] https://www.npmjs.com/package/@gleanwork/api-client/v/0.6.5 - .
212+
213+
## 2025-06-15 01:25:27
214+
### Changes
215+
Based on:
216+
- OpenAPI Doc
217+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
218+
### Generated
219+
- [typescript v0.7.1] .
220+
### Releases
221+
- [NPM v0.7.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.7.1 - .

docs/models/components/agentrun.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ let value: AgentRun = {
1919
| `agentId` | *string* | :heavy_check_mark: | The ID of the agent to run. |
2020
| `input` | Record<string, *any*> | :heavy_minus_sign: | The input to the agent. |
2121
| `messages` | [components.Message](../../models/components/message.md)[] | :heavy_minus_sign: | The messages to pass an input to the agent. |
22+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | The metadata to pass to the agent. |
2223
| `status` | [components.AgentExecutionStatus](../../models/components/agentexecutionstatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |

docs/models/components/agentruncreate.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ let value: AgentRunCreate = {
1818
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
1919
| `agentId` | *string* | :heavy_check_mark: | The ID of the agent to run. |
2020
| `input` | Record<string, *any*> | :heavy_minus_sign: | The input to the agent. |
21-
| `messages` | [components.Message](../../models/components/message.md)[] | :heavy_minus_sign: | The messages to pass an input to the agent. |
21+
| `messages` | [components.Message](../../models/components/message.md)[] | :heavy_minus_sign: | The messages to pass an input to the agent. |
22+
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | The metadata to pass to the agent. |

docs/sdks/agents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ import {
215215

216216
## list
217217

218-
Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
218+
Search for [agents](https://developers.glean.com/agents/agents-api) by agent name.
219219

220220
### Example Usage
221221

docs/sdks/clientauthentication/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
## createToken
1111

12-
Creates an authentication token for the authenticated user.
12+
Creates an authentication token for the authenticated user. These are
13+
specifically intended to be used with the [Web SDK](https://developers.glean.com/web).
14+
15+
Note: The tokens generated from this endpoint are **not** valid tokens
16+
for use with the Client API (e.g. `/rest/api/v1/*`).
17+
1318

1419
### Example Usage
1520

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@gleanwork/api-client",
5-
"version": "0.6.5",
5+
"version": "0.7.1",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gleanwork/api-client",
3-
"version": "0.6.5",
3+
"version": "0.7.1",
44
"author": "Speakeasy",
55
"type": "module",
66
"tshy": {

src/__tests__/mockserver/internal/sdk/models/components/agentrun.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__tests__/mockserver/internal/sdk/models/components/agentruncreate.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/funcs/clientAuthenticationCreateToken.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ import { Result } from "../types/fp.js";
2525
* Create authentication token
2626
*
2727
* @remarks
28-
* Creates an authentication token for the authenticated user.
28+
* Creates an authentication token for the authenticated user. These are
29+
* specifically intended to be used with the [Web SDK](https://developers.glean.com/web).
30+
*
31+
* Note: The tokens generated from this endpoint are **not** valid tokens
32+
* for use with the Client API (e.g. `/rest/api/v1/*`).
2933
*/
3034
export function clientAuthenticationCreateToken(
3135
client: GleanCore,

src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6464
export const SDK_METADATA = {
6565
language: "typescript",
6666
openapiDocVersion: "0.9.0",
67-
sdkVersion: "0.6.5",
67+
sdkVersion: "0.7.1",
6868
genVersion: "2.610.0",
6969
userAgent:
70-
"speakeasy-sdk/typescript 0.6.5 2.610.0 0.9.0 @gleanwork/api-client",
70+
"speakeasy-sdk/typescript 0.7.1 2.610.0 0.9.0 @gleanwork/api-client",
7171
} as const;

src/models/components/agentrun.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export type AgentRun = {
3535
* The messages to pass an input to the agent.
3636
*/
3737
messages?: Array<Message> | undefined;
38+
/**
39+
* The metadata to pass to the agent.
40+
*/
41+
metadata?: { [k: string]: any } | undefined;
3842
/**
3943
* The status of the run. One of 'error', 'success'.
4044
*/
@@ -50,6 +54,7 @@ export const AgentRun$inboundSchema: z.ZodType<
5054
agent_id: z.string(),
5155
input: z.record(z.any()).optional(),
5256
messages: z.array(Message$inboundSchema).optional(),
57+
metadata: z.record(z.any()).optional(),
5358
status: AgentExecutionStatus$inboundSchema.optional(),
5459
}).transform((v) => {
5560
return remap$(v, {
@@ -62,6 +67,7 @@ export type AgentRun$Outbound = {
6267
agent_id: string;
6368
input?: { [k: string]: any } | undefined;
6469
messages?: Array<Message$Outbound> | undefined;
70+
metadata?: { [k: string]: any } | undefined;
6571
status?: string | undefined;
6672
};
6773

@@ -74,6 +80,7 @@ export const AgentRun$outboundSchema: z.ZodType<
7480
agentId: z.string(),
7581
input: z.record(z.any()).optional(),
7682
messages: z.array(Message$outboundSchema).optional(),
83+
metadata: z.record(z.any()).optional(),
7784
status: AgentExecutionStatus$outboundSchema.optional(),
7885
}).transform((v) => {
7986
return remap$(v, {

src/models/components/agentruncreate.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export type AgentRunCreate = {
3030
* The messages to pass an input to the agent.
3131
*/
3232
messages?: Array<Message> | undefined;
33+
/**
34+
* The metadata to pass to the agent.
35+
*/
36+
metadata?: { [k: string]: any } | undefined;
3337
};
3438

3539
/** @internal */
@@ -41,6 +45,7 @@ export const AgentRunCreate$inboundSchema: z.ZodType<
4145
agent_id: z.string(),
4246
input: z.record(z.any()).optional(),
4347
messages: z.array(Message$inboundSchema).optional(),
48+
metadata: z.record(z.any()).optional(),
4449
}).transform((v) => {
4550
return remap$(v, {
4651
"agent_id": "agentId",
@@ -52,6 +57,7 @@ export type AgentRunCreate$Outbound = {
5257
agent_id: string;
5358
input?: { [k: string]: any } | undefined;
5459
messages?: Array<Message$Outbound> | undefined;
60+
metadata?: { [k: string]: any } | undefined;
5561
};
5662

5763
/** @internal */
@@ -63,6 +69,7 @@ export const AgentRunCreate$outboundSchema: z.ZodType<
6369
agentId: z.string(),
6470
input: z.record(z.any()).optional(),
6571
messages: z.array(Message$outboundSchema).optional(),
72+
metadata: z.record(z.any()).optional(),
6673
}).transform((v) => {
6774
return remap$(v, {
6875
agentId: "agent_id",

src/react-query/clientAuthenticationCreateToken.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export type ClientAuthenticationCreateTokenMutationData =
2727
* Create authentication token
2828
*
2929
* @remarks
30-
* Creates an authentication token for the authenticated user.
30+
* Creates an authentication token for the authenticated user. These are
31+
* specifically intended to be used with the [Web SDK](https://developers.glean.com/web).
32+
*
33+
* Note: The tokens generated from this endpoint are **not** valid tokens
34+
* for use with the Client API (e.g. `/rest/api/v1/*`).
3135
*/
3236
export function useClientAuthenticationCreateTokenMutation(
3337
options?: MutationHookOptions<

src/sdk/clientauthentication.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export class ClientAuthentication extends ClientSDK {
1212
* Create authentication token
1313
*
1414
* @remarks
15-
* Creates an authentication token for the authenticated user.
15+
* Creates an authentication token for the authenticated user. These are
16+
* specifically intended to be used with the [Web SDK](https://developers.glean.com/web).
17+
*
18+
* Note: The tokens generated from this endpoint are **not** valid tokens
19+
* for use with the Client API (e.g. `/rest/api/v1/*`).
1620
*/
1721
async createToken(
1822
options?: RequestOptions,

0 commit comments

Comments
 (0)