Skip to content

Commit dee667c

Browse files
Merge pull request #16 from gleanwork/speakeasy-sdk-regen-1747703674
2 parents d1c7f7d + 7118a2d commit dee667c

Some content is hidden

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

65 files changed

+2356
-11777
lines changed

.speakeasy/gen.lock

Lines changed: 94 additions & 44 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
@@ -22,7 +22,7 @@ generation:
2222
generateNewTests: true
2323
skipResponseBodyAssertions: true
2424
go:
25-
version: 0.4.2
25+
version: 0.4.3
2626
additionalDependencies: {}
2727
allowUnknownFieldsInWeakUnions: false
2828
clientServerStatusCodesAsErrors: true

.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
@@ -139823,3 +139823,47 @@ workflows:
139823139823
{}
139824139824
type: simple
139825139825
x-speakeasy-test-group: visibilityoverrides
139826+
- workflowId: get_/rest/api/v1/tools/list
139827+
steps:
139828+
- stepId: test
139829+
operationId: get_/rest/api/v1/tools/list
139830+
successCriteria:
139831+
- condition: $statusCode == 200
139832+
- condition: $response.header.Content-Type == application/json
139833+
- context: $response.body
139834+
condition: |
139835+
{}
139836+
type: simple
139837+
x-speakeasy-test-group: tools
139838+
- workflowId: post_/rest/api/v1/tools/call
139839+
steps:
139840+
- stepId: test
139841+
operationId: post_/rest/api/v1/tools/call
139842+
requestBody:
139843+
contentType: application/json
139844+
payload:
139845+
name: <value>
139846+
parameters:
139847+
key:
139848+
name: <value>
139849+
value: <value>
139850+
successCriteria:
139851+
- condition: $statusCode == 200
139852+
- condition: $response.header.Content-Type == application/json
139853+
- context: $response.body
139854+
condition: |
139855+
{}
139856+
type: simple
139857+
x-speakeasy-test-group: tools
139858+
- workflowId: listpolicies
139859+
steps:
139860+
- stepId: test
139861+
operationId: listpolicies
139862+
successCriteria:
139863+
- condition: $statusCode == 200
139864+
- condition: $response.header.Content-Type == application/json
139865+
- context: $response.body
139866+
condition: |
139867+
{}
139868+
type: simple
139869+
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-1747525148
9+
- speakeasy-sdk-regen-1747703674
1010
petstore-oas:
1111
sourceNamespace: petstore-oas
1212
sourceRevisionDigest: sha256:97b2eff2f43ce14276d28efc41ec5de8034cde61db8445f12b626e4dc88ea40e
@@ -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-go-code-samples
24-
codeSamplesRevisionDigest: sha256:526bab7ab5dfc23aad140abf06c57749256a9a64d9868070cd81bac2699f2203
24+
codeSamplesRevisionDigest: sha256:a649526ece0e64d7ce27ff324bf0fc2907ca576cfa99c9045e3ba08ee5443713
2525
petstore:
2626
source: petstore-oas
2727
sourceNamespace: petstore-oas

README.md

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

381+
#### [Client.Tools](docs/sdks/tools/README.md)
382+
383+
* [List](docs/sdks/tools/README.md#list) - List available tools
384+
* [Run](docs/sdks/tools/README.md#run) - Execute the specified tool
385+
381386
#### [Client.Verification](docs/sdks/verification/README.md)
382387

383388
* [AddReminder](docs/sdks/verification/README.md#addreminder) - Create verification

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [go v0.4.2] .
7070
### Releases
71-
- [Go v0.4.2] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.2 - .
71+
- [Go v0.4.2] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.2 - .
72+
73+
## 2025-05-23 19:23:30
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.551.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [go v0.4.3] .
80+
### Releases
81+
- [Go v0.4.3] https://github.com/gleanwork/api-client-go/releases/tag/v0.4.3 - .

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type Client struct {
1818
Entities *Entities
1919
Shortcuts *ClientShortcuts
2020
Verification *Verification
21+
Tools *Tools
2122
Governance *Governance
2223

2324
sdkConfiguration sdkConfiguration
@@ -41,6 +42,7 @@ func newClient(sdkConfig sdkConfiguration) *Client {
4142
Entities: newEntities(sdkConfig),
4243
Shortcuts: newClientShortcuts(sdkConfig),
4344
Verification: newVerification(sdkConfig),
45+
Tools: newTools(sdkConfig),
4446
Governance: newGovernance(sdkConfig),
4547
}
4648
}

docs/models/components/agentrun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ Payload for creating a run.
88
| Field | Type | Required | Description |
99
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
1010
| `AgentID` | **string* | :heavy_minus_sign: | The ID of the agent to run. |
11-
| `Input` | [*components.AgentRunInput](../../models/components/agentruninput.md) | :heavy_minus_sign: | The input to the agent. |
11+
| `Input` | map[string]*any* | :heavy_minus_sign: | The input to the agent. |
1212
| `Messages` | [][components.Message](../../models/components/message.md) | :heavy_minus_sign: | The messages to pass an input to the agent. |
1313
| `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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Payload for creating a run.
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
10-
| `AgentID` | **string* | :heavy_minus_sign: | The ID of the agent to run. |
11-
| `Input` | [*components.AgentRunCreateInput](../../models/components/agentruncreateinput.md) | :heavy_minus_sign: | The input to the agent. |
12-
| `Messages` | [][components.Message](../../models/components/message.md) | :heavy_minus_sign: | The messages to pass an input to the agent. |
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
10+
| `AgentID` | **string* | :heavy_minus_sign: | The ID of the agent to run. |
11+
| `Input` | map[string]*any* | :heavy_minus_sign: | The input to the agent. |
12+
| `Messages` | [][components.Message](../../models/components/message.md) | :heavy_minus_sign: | The messages to pass an input to the agent. |

0 commit comments

Comments
 (0)