Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:1-1.25-bookworm",
"image": "mcr.microsoft.com/devcontainers/go:1.26-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
836 changes: 534 additions & 302 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
go:
version: 0.15.15
version: 0.16.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand All @@ -41,6 +41,8 @@ go:
enableCustomCodeRegions: false
enableSkipDeserialization: false
envVarPrefix: GLEAN
fixFlags:
encodePathParams: false
flattenGlobalSecurity: true
forwardCompatibleEnumsByDefault: true
forwardCompatibleUnionsByDefault: "false"
Expand Down
693 changes: 586 additions & 107 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164718,11 +164718,11 @@ workflows:
payload:
file: 'x-file: example.file'
successCriteria:
- condition: $statusCode == 200
- condition: $statusCode == 201
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"skill":{"id":"<id>","display_name":"Merl18","description":"rural ugh unexpectedly excepting livid","latest_version":504149,"latest_minor_version":106110,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2025-01-04T03:16:16.951Z","updated_at":"2025-09-10T16:05:46.046Z"},"request_id":"<id>"}
{"skill":{"skill_id":"<id>","display_name":"Merl18","description":"rural ugh unexpectedly excepting livid","latest_version":504149,"latest_minor_version":106110,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2025-09-10T16:05:46.046Z","updated_at":"2025-08-13T23:05:45.737Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
Expand All @@ -164735,8 +164735,12 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"skills":[],"has_more":true,"next_cursor":"<value>","request_id":"<id>"}
{"results":[],"has_more":true,"next_cursor":"<value>","request_id":"<id>"}
type: simple
parameters:
- name: page_size
in: query
value: 20
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
- workflowId: platform-skills-validate
Expand Down Expand Up @@ -164769,7 +164773,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"skill":{"id":"<id>","display_name":"Chad_Herzog","description":"whenever up aha controvert","latest_version":151495,"latest_minor_version":170771,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2024-12-25T16:41:00.099Z","updated_at":"2026-12-07T21:59:59.375Z"},"request_id":"<id>"}
{"skill":{"skill_id":"<id>","display_name":"Chad_Herzog","description":"whenever up aha controvert","latest_version":151495,"latest_minor_version":170771,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2024-12-25T16:41:00.099Z","updated_at":"2026-12-07T21:59:59.375Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
Expand Down Expand Up @@ -164803,7 +164807,7 @@ workflows:
payload:
file: 'x-file: example.file'
successCriteria:
- condition: $statusCode == 200
- condition: $statusCode == 201
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
Expand All @@ -164819,12 +164823,15 @@ workflows:
- name: skill_id
in: path
value: <id>
- name: page_size
in: query
value: 20
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"versions":[],"has_more":false,"next_cursor":"<value>","request_id":"<id>"}
{"results":[],"has_more":false,"next_cursor":"<value>","request_id":"<id>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
Expand Down Expand Up @@ -164938,7 +164945,7 @@ workflows:
source_urls:
- https://github.com/anthropics/skills/tree/main/skills/skill-creator
successCriteria:
- condition: $statusCode == 200
- condition: $statusCode == 201
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
Expand Down Expand Up @@ -164981,7 +164988,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"skill":{"id":"<id>","display_name":"Afton14","description":"taut netsuke duh sonata boastfully elegantly management come","latest_version":425795,"latest_minor_version":741364,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2024-12-20T01:31:39.364Z","updated_at":"2025-12-04T02:59:37.124Z"},"request_id":"<id>"}
{"skill":{"skill_id":"<id>","display_name":"Afton14","description":"taut netsuke duh sonata boastfully elegantly management come","latest_version":425795,"latest_minor_version":741364,"status":"DISABLED","origin":"CUSTOM","owner":{"name":"<value>"},"created_at":"2024-12-20T01:31:39.364Z","updated_at":"2025-12-04T02:59:37.124Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
Expand All @@ -164998,7 +165005,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"sync_status":"UP_TO_DATE","commit_sha":"<value>","updated":false,"request_id":"<id>"}
{"commit_sha":"<value>","is_updated":false,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.798.0
speakeasyVersion: 1.800.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
sourceRevisionDigest: sha256:05e3971be4fa72f84e875d8aa438c2b043bfbe3514333699ffe437d475237773
sourceBlobDigest: sha256:45258e9abc405d9a60201089c3113b8cc27705016b80fbabdf489eed6ff600aa
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:09823f8003cfb3ebf08b6adfa434cefda4c97f7ee64ae18dc0066fe392647c97
sourceBlobDigest: sha256:fc4fcf9c37dfd0e8387153211f760a21a602ede64951d4e4c824e8e1b168b7b8
sourceRevisionDigest: sha256:05e3971be4fa72f84e875d8aa438c2b043bfbe3514333699ffe437d475237773
sourceBlobDigest: sha256:45258e9abc405d9a60201089c3113b8cc27705016b80fbabdf489eed6ff600aa
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:e0b322a1f857ede51de9462d1d1c564b4f177e1469aa2afa4f108a43e395a957
codeSamplesRevisionDigest: sha256:a08b9233149cca69e71e898dfbd72d1979a1ecae8e76e1b9e38f3c6306b0a230
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ For more information on obtaining the appropriate token type, please contact you
* [ListVersions](docs/sdks/skills/README.md#listversions) - List skill versions
* [RetrieveVersion](docs/sdks/skills/README.md#retrieveversion) - Retrieve skill version
* [RetrieveVersionContent](docs/sdks/skills/README.md#retrieveversioncontent) - Download skill version content
* [PreviewSourceStream](docs/sdks/skills/README.md#previewsourcestream) - Preview a GitHub skill source as events

### [Triggers](docs/sdks/triggers/README.md)

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1008,4 +1008,14 @@ Based on:
### Generated
- [go v0.15.15] .
### Releases
- [Go v0.15.15] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.15 - .
- [Go v0.15.15] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.15 - .

## 2026-10-03 03:31:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.800.1 (2.943.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.16.0] .
### Releases
- [Go v0.16.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.16.0 - .
30 changes: 15 additions & 15 deletions agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (s *Agents) Search(ctx context.Context, request components.PlatformAgentsSe

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -269,7 +269,7 @@ func (s *Agents) Search(ctx context.Context, request components.PlatformAgentsSe

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -514,7 +514,7 @@ func (s *Agents) Get(ctx context.Context, agentID string, opts ...operations.Opt

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -541,7 +541,7 @@ func (s *Agents) Get(ctx context.Context, agentID string, opts ...operations.Opt

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -791,7 +791,7 @@ func (s *Agents) GetSchemas(ctx context.Context, agentID string, includeTools *b

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -818,7 +818,7 @@ func (s *Agents) GetSchemas(ctx context.Context, agentID string, includeTools *b

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -1096,7 +1096,7 @@ func (s *Agents) CreateRun(ctx context.Context, agentID string, platformAgentRun

var out apierrors.PlatformUnauthorizedAgentToolsProblemError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -1135,7 +1135,7 @@ func (s *Agents) CreateRun(ctx context.Context, agentID string, platformAgentRun

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -1162,7 +1162,7 @@ func (s *Agents) CreateRun(ctx context.Context, agentID string, platformAgentRun

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -1408,7 +1408,7 @@ func (s *Agents) GetRun(ctx context.Context, agentID string, runID string, opts

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -1435,7 +1435,7 @@ func (s *Agents) GetRun(ctx context.Context, agentID string, runID string, opts

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -1692,7 +1692,7 @@ func (s *Agents) CancelRun(ctx context.Context, agentID string, platformAgentRun

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -1719,7 +1719,7 @@ func (s *Agents) CancelRun(ctx context.Context, agentID string, platformAgentRun

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -1976,7 +1976,7 @@ func (s *Agents) RespondToRun(ctx context.Context, agentID string, platformAgent

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -2003,7 +2003,7 @@ func (s *Agents) RespondToRun(ctx context.Context, agentID string, platformAgent

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down
8 changes: 4 additions & 4 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (s *Chat) Create(ctx context.Context, request operations.PlatformChatCreate

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -272,7 +272,7 @@ func (s *Chat) Create(ctx context.Context, request operations.PlatformChatCreate

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down Expand Up @@ -529,7 +529,7 @@ func (s *Chat) CreateStream(ctx context.Context, request operations.PlatformChat

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand All @@ -556,7 +556,7 @@ func (s *Chat) CreateStream(ctx context.Context, request operations.PlatformChat

var out apierrors.PlatformProblemDetailError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
return nil, apierrors.NewResponseValidationError("response did not match the declared error schema", httpRes.StatusCode, string(rawBody), httpRes, err)
}

out.HTTPMeta = components.HTTPMetadata{
Expand Down
Loading
Loading