Skip to content

Commit 849adf9

Browse files
Merge pull request gleanwork#28 from gleanwork/speakeasy-sdk-regen-1747703837
2 parents 89e0095 + cea7c52 commit 849adf9

File tree

74 files changed

+2940
-23177
lines changed

Some content is hidden

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

74 files changed

+2940
-23177
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: true
2525
skipResponseBodyAssertions: true
2626
typescript:
27-
version: 0.4.2
27+
version: 0.4.3
2828
additionalDependencies:
2929
dependencies: {}
3030
devDependencies: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 177 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,7 @@ paths:
15931593
schema:
15941594
$ref: "#/components/schemas/SearchRequest"
15951595
description: Admin search request
1596+
required: true
15961597
x-exportParamName: Request
15971598
responses:
15981599
"200":
@@ -1705,6 +1706,7 @@ paths:
17051706
schema:
17061707
$ref: "#/components/schemas/RecommendationsRequest"
17071708
description: Recommendations request
1709+
required: true
17081710
x-exportParamName: Request
17091711
responses:
17101712
"200":
@@ -1743,6 +1745,7 @@ paths:
17431745
schema:
17441746
$ref: "#/components/schemas/SearchRequest"
17451747
description: Search request
1748+
required: true
17461749
x-exportParamName: Request
17471750
responses:
17481751
"200":
@@ -2134,6 +2137,67 @@ paths:
21342137
description: Too Many Requests
21352138
x-speakeasy-name-override: verify
21362139
x-speakeasy-group: client.verification
2140+
/rest/api/v1/tools/list:
2141+
get:
2142+
summary: List available tools
2143+
description: Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned.
2144+
x-visibility: Preview
2145+
parameters:
2146+
- in: query
2147+
name: toolNames
2148+
description: Optional array of tool names to filter by
2149+
required: false
2150+
schema:
2151+
type: array
2152+
items:
2153+
type: string
2154+
style: form
2155+
explode: false
2156+
responses:
2157+
"200":
2158+
description: Successful operation
2159+
content:
2160+
application/json:
2161+
schema:
2162+
$ref: "#/components/schemas/ToolsListResponse"
2163+
"400":
2164+
description: Bad Request
2165+
"401":
2166+
description: Unauthorized
2167+
"404":
2168+
description: Not Found
2169+
"429":
2170+
description: Too Many Requests
2171+
x-speakeasy-name-override: list
2172+
x-speakeasy-group: client.tools
2173+
/rest/api/v1/tools/call:
2174+
post:
2175+
summary: Execute the specified tool
2176+
description: Execute the specified tool with provided parameters
2177+
x-visibility: Preview
2178+
requestBody:
2179+
required: true
2180+
content:
2181+
application/json:
2182+
schema:
2183+
$ref: "#/components/schemas/ToolsCallRequest"
2184+
responses:
2185+
"200":
2186+
description: Successful operation
2187+
content:
2188+
application/json:
2189+
schema:
2190+
$ref: "#/components/schemas/ToolsCallResponse"
2191+
"400":
2192+
description: Bad Request
2193+
"401":
2194+
description: Unauthorized
2195+
"404":
2196+
description: Not Found
2197+
"429":
2198+
description: Too Many Requests
2199+
x-speakeasy-name-override: run
2200+
x-speakeasy-group: client.tools
21372201
/api/index/v1/indexdocument:
21382202
post:
21392203
summary: Index document
@@ -3179,7 +3243,7 @@ paths:
31793243
get:
31803244
description: Lists policies with filtering.
31813245
summary: Lists policies.
3182-
operationId: getpolicies
3246+
operationId: listpolicies
31833247
x-visibility: Public
31843248
tags:
31853249
- Governance
@@ -7450,6 +7514,7 @@ components:
74507514
type: object
74517515
title: Input
74527516
description: The input to the agent.
7517+
additionalProperties: true
74537518
messages:
74547519
type: array
74557520
items:
@@ -9828,6 +9893,117 @@ components:
98289893
- DEPRECATE
98299894
- UNVERIFY
98309895
description: The verification action requested.
9896+
ToolParameter:
9897+
type: object
9898+
properties:
9899+
type:
9900+
type: string
9901+
description: Parameter type (string, number, boolean, object, array)
9902+
enum:
9903+
- string
9904+
- number
9905+
- boolean
9906+
- object
9907+
- array
9908+
name:
9909+
type: string
9910+
description: The name of the parameter
9911+
description:
9912+
type: string
9913+
description: The description of the parameter
9914+
isRequired:
9915+
type: boolean
9916+
description: Whether the parameter is required
9917+
possibleValues:
9918+
type: array
9919+
description: The possible values for the parameter. Can contain only primitive values or arrays of primitive values.
9920+
items:
9921+
type: string
9922+
items:
9923+
type: object
9924+
description: When type is 'array', this describes the structure of the item in the array.
9925+
$ref: "#/components/schemas/ToolParameter"
9926+
properties:
9927+
type: object
9928+
description: When type is 'object', this describes the structure of the object.
9929+
additionalProperties:
9930+
$ref: "#/components/schemas/ToolParameter"
9931+
Tool:
9932+
type: object
9933+
properties:
9934+
type:
9935+
type: string
9936+
description: Type of tool (READ, WRITE)
9937+
enum:
9938+
- READ
9939+
- WRITE
9940+
name:
9941+
type: string
9942+
description: Unique identifier for the tool
9943+
displayName:
9944+
type: string
9945+
description: Human-readable name
9946+
description:
9947+
type: string
9948+
description: LLM friendly description of the tool
9949+
parameters:
9950+
type: object
9951+
description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object.
9952+
additionalProperties:
9953+
$ref: "#/components/schemas/ToolParameter"
9954+
ToolsListResponse:
9955+
type: object
9956+
properties:
9957+
tools:
9958+
type: array
9959+
items:
9960+
$ref: "#/components/schemas/Tool"
9961+
ToolsCallParameter:
9962+
type: object
9963+
required:
9964+
- name
9965+
- value
9966+
properties:
9967+
name:
9968+
type: string
9969+
description: The name of the parameter
9970+
value:
9971+
type: string
9972+
description: The value of the parameter (for primitive types)
9973+
items:
9974+
type: array
9975+
description: The value of the parameter (for array types)
9976+
items:
9977+
$ref: "#/components/schemas/ToolsCallParameter"
9978+
properties:
9979+
type: object
9980+
description: The value of the parameter (for object types)
9981+
additionalProperties:
9982+
$ref: "#/components/schemas/ToolsCallParameter"
9983+
ToolsCallRequest:
9984+
type: object
9985+
required:
9986+
- name
9987+
- parameters
9988+
properties:
9989+
name:
9990+
type: string
9991+
description: Required name of the tool to execute
9992+
parameters:
9993+
type: object
9994+
description: The parameters for the tool. Each key is the name of the parameter and the value is the parameter object.
9995+
additionalProperties:
9996+
$ref: "#/components/schemas/ToolsCallParameter"
9997+
ToolsCallResponse:
9998+
type: object
9999+
properties:
10000+
rawResponse:
10001+
additionalProperties: true
10002+
type: object
10003+
description: The raw response from the tool
10004+
error:
10005+
type: string
10006+
description: The error message if applicable
983110007
IndexDocumentRequest:
983210008
type: object
983310009
description: Describes the request body of the /indexdocument API call

.speakeasy/tests.arazzo.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190329,3 +190329,47 @@ workflows:
190329190329
{}
190330190330
type: simple
190331190331
x-speakeasy-test-group: visibilityoverrides
190332+
- workflowId: get_/rest/api/v1/tools/list
190333+
steps:
190334+
- stepId: test
190335+
operationId: get_/rest/api/v1/tools/list
190336+
successCriteria:
190337+
- condition: $statusCode == 200
190338+
- condition: $response.header.Content-Type == application/json
190339+
- context: $response.body
190340+
condition: |
190341+
{}
190342+
type: simple
190343+
x-speakeasy-test-group: tools
190344+
- workflowId: post_/rest/api/v1/tools/call
190345+
steps:
190346+
- stepId: test
190347+
operationId: post_/rest/api/v1/tools/call
190348+
requestBody:
190349+
contentType: application/json
190350+
payload:
190351+
name: <value>
190352+
parameters:
190353+
key:
190354+
name: <value>
190355+
value: <value>
190356+
successCriteria:
190357+
- condition: $statusCode == 200
190358+
- condition: $response.header.Content-Type == application/json
190359+
- context: $response.body
190360+
condition: |
190361+
{}
190362+
type: simple
190363+
x-speakeasy-test-group: tools
190364+
- workflowId: listpolicies
190365+
steps:
190366+
- stepId: test
190367+
operationId: listpolicies
190368+
successCriteria:
190369+
- condition: $statusCode == 200
190370+
- condition: $response.header.Content-Type == application/json
190371+
- context: $response.body
190372+
condition: |
190373+
{}
190374+
type: simple
190375+
x-speakeasy-test-group: policies

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.546.2
1+
speakeasyVersion: 1.551.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
6-
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
5+
sourceRevisionDigest: sha256:f9702fab7204aa4b6c4de51f891ea93ca91bd699de037938b6522df44148f53e
6+
sourceBlobDigest: sha256:d44909a59c01e136e65c90328dd7ddc8321d8eb01230285241f4c59ebbaac01f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747525140
9+
- speakeasy-sdk-regen-1747703837
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:d6fa8702a32b71122384445deea1072af1cf22ed50c70ffc25cc87a25fc82612
22-
sourceBlobDigest: sha256:393fd23b9e5d6d5f6929f86557b6b42c770f61271257cd10bc6a364b3ac8b053
21+
sourceRevisionDigest: sha256:f9702fab7204aa4b6c4de51f891ea93ca91bd699de037938b6522df44148f53e
22+
sourceBlobDigest: sha256:d44909a59c01e136e65c90328dd7ddc8321d8eb01230285241f4c59ebbaac01f
2323
codeSamplesNamespace: glean-api-specs-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:9a5c91033699caa82c4c90f8ec92f3a1404ca8e85f72482308e415e70cc2d853
24+
codeSamplesRevisionDigest: sha256:ef057a6980d2cf0a8f84b979e75f5eda921dbd13bb2f4c0baa27e3195d0a44f2
2525
workflow:
2626
workflowVersion: 1.0.0
2727
speakeasyVersion: latest

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ For more information on obtaining the appropriate token type, please contact you
411411
* [list](docs/sdks/clientshortcuts/README.md#list) - List shortcuts
412412
* [update](docs/sdks/clientshortcuts/README.md#update) - Update shortcut
413413

414+
#### [client.tools](docs/sdks/tools/README.md)
415+
416+
* [list](docs/sdks/tools/README.md#list) - List available tools
417+
* [run](docs/sdks/tools/README.md#run) - Execute the specified tool
418+
414419
#### [client.verification](docs/sdks/verification/README.md)
415420

416421
* [addReminder](docs/sdks/verification/README.md#addreminder) - Create verification
@@ -568,6 +573,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
568573
- [`clientShortcutsList`](docs/sdks/clientshortcuts/README.md#list) - List shortcuts
569574
- [`clientShortcutsRetrieve`](docs/sdks/clientshortcuts/README.md#retrieve) - Read shortcut
570575
- [`clientShortcutsUpdate`](docs/sdks/clientshortcuts/README.md#update) - Update shortcut
576+
- [`clientToolsList`](docs/sdks/tools/README.md#list) - List available tools
577+
- [`clientToolsRun`](docs/sdks/tools/README.md#run) - Execute the specified tool
571578
- [`clientVerificationAddReminder`](docs/sdks/verification/README.md#addreminder) - Create verification
572579
- [`clientVerificationList`](docs/sdks/verification/README.md#list) - List verifications
573580
- [`clientVerificationVerify`](docs/sdks/verification/README.md#verify) - Update verification
@@ -705,6 +712,8 @@ To learn about this feature and how to get started, check
705712
- [`useClientShortcutsListMutation`](docs/sdks/clientshortcuts/README.md#list) - List shortcuts
706713
- [`useClientShortcutsRetrieveMutation`](docs/sdks/clientshortcuts/README.md#retrieve) - Read shortcut
707714
- [`useClientShortcutsUpdateMutation`](docs/sdks/clientshortcuts/README.md#update) - Update shortcut
715+
- [`useClientToolsList`](docs/sdks/tools/README.md#list) - List available tools
716+
- [`useClientToolsRunMutation`](docs/sdks/tools/README.md#run) - Execute the specified tool
708717
- [`useClientVerificationAddReminderMutation`](docs/sdks/verification/README.md#addreminder) - Create verification
709718
- [`useClientVerificationListMutation`](docs/sdks/verification/README.md#list) - List verifications
710719
- [`useClientVerificationVerifyMutation`](docs/sdks/verification/README.md#verify) - Update verification

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,14 @@ Based on:
138138
### Generated
139139
- [typescript v0.4.2] .
140140
### Releases
141-
- [NPM v0.4.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.2 - .
141+
- [NPM v0.4.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.2 - .
142+
143+
## 2025-05-23 19:23:14
144+
### Changes
145+
Based on:
146+
- OpenAPI Doc
147+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
148+
### Generated
149+
- [typescript v0.4.3] .
150+
### Releases
151+
- [NPM v0.4.3] https://www.npmjs.com/package/@gleanwork/api-client/v/0.4.3 - .

docs/models/components/agentrun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ let value: AgentRun = {};
1515
| Field | Type | Required | Description |
1616
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
1717
| `agentId` | *string* | :heavy_minus_sign: | The ID of the agent to run. |
18-
| `input` | [components.AgentRunInput](../../models/components/agentruninput.md) | :heavy_minus_sign: | The input to the agent. |
18+
| `input` | Record<string, *any*> | :heavy_minus_sign: | The input to the agent. |
1919
| `messages` | [components.Message](../../models/components/message.md)[] | :heavy_minus_sign: | The messages to pass an input to the agent. |
2020
| `status` | [components.AgentExecutionStatus](../../models/components/agentexecutionstatus.md) | :heavy_minus_sign: | The status of the run. One of 'error', 'success'. |

0 commit comments

Comments
 (0)