Skip to content
Open
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
369 changes: 266 additions & 103 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 4 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.13.4
version: 0.13.5
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand All @@ -44,6 +44,7 @@ go:
flattenGlobalSecurity: true
forwardCompatibleEnumsByDefault: true
forwardCompatibleUnionsByDefault: "false"
idiomaticMethodCollisionNames: false
imports:
option: openapi
paths:
Expand All @@ -60,10 +61,12 @@ go:
modulePath: ""
multipartArrayFormat: standard
nullableOptionalWrapper: false
optionalMethodArguments: pointers
outputModelSuffix: output
packageName: github.com/gleanwork/api-client-go
respectRequiredFields: false
respectTitlesForPrimitiveUnionMembers: false
responseFormat: envelope-http
sdkPackageName: ""
unionGenerics: false
unionStrategy: populated-fields
345 changes: 310 additions & 35 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

36 changes: 35 additions & 1 deletion .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164672,7 +164672,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[],"has_more":false,"next_cursor":"<value>","request_id":"<id>"}
{"results":[],"has_more":false,"next_cursor":"<value>","request_id":"<id>","warnings":[]}
type: simple
x-speakeasy-test-group: search
x-speakeasy-test-rebuild: true
Expand Down Expand Up @@ -164899,3 +164899,37 @@ workflows:
type: simple
x-speakeasy-test-group: indexing_datasources
x-speakeasy-test-rebuild: true
- workflowId: platform-skills-update
steps:
- stepId: test
operationId: platform-skills-update
parameters:
- name: skill_id
in: path
value: <id>
requestBody:
contentType: application/json
payload:
status: DISABLED
successCriteria:
- condition: $statusCode == 200
- 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>"}
type: simple
x-speakeasy-test-group: skills
x-speakeasy-test-rebuild: true
- workflowId: platform-search-filters
steps:
- stepId: test
operationId: platform-search-filters
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"datasources":[],"request_id":"<id>"}
type: simple
x-speakeasy-test-group: search
x-speakeasy-test-rebuild: true
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.790.3
speakeasyVersion: 1.791.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3f4b99205bda8aa4bab23ec1a82ff062fef140f879a0e365a09086742e6ffc8d
sourceBlobDigest: sha256:886ac8e628d7c1add726aea93293656edd0b7868edd07037da282d9dbfae05c7
sourceRevisionDigest: sha256:67c19100e70e1cbee85ea7e7e5876e1a7e4be3b4def0b7dba57f80403c06cb04
sourceBlobDigest: sha256:ff361a608150618a07cc9ee0d19ebab4b442936fcb83929e8b27bf71bf2dd8c5
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:3f4b99205bda8aa4bab23ec1a82ff062fef140f879a0e365a09086742e6ffc8d
sourceBlobDigest: sha256:886ac8e628d7c1add726aea93293656edd0b7868edd07037da282d9dbfae05c7
sourceRevisionDigest: sha256:67c19100e70e1cbee85ea7e7e5876e1a7e4be3b4def0b7dba57f80403c06cb04
sourceBlobDigest: sha256:ff361a608150618a07cc9ee0d19ebab4b442936fcb83929e8b27bf71bf2dd8c5
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:1c15986de73db7b14c4b03aacca6e654bc4be0be6c0b3db030947427760460b4
codeSamplesRevisionDigest: sha256:9e9ea85444a00e52b12a0cd41916f71ea8cab09530e3c37f69bebcf23d2954cf
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,14 @@ For more information on obtaining the appropriate token type, please contact you
### [Search](docs/sdks/search/README.md)

* [Query](docs/sdks/search/README.md#query) - Search
* [ListFilters](docs/sdks/search/README.md#listfilters) - List search filters

### [Skills](docs/sdks/skills/README.md)

* [Create](docs/sdks/skills/README.md#create) - Create skill
* [List](docs/sdks/skills/README.md#list) - List skills
* [Validate](docs/sdks/skills/README.md#validate) - Validate skill bundle
* [Update](docs/sdks/skills/README.md#update) - Update skill
* [Retrieve](docs/sdks/skills/README.md#retrieve) - Retrieve skill
* [RetrieveContent](docs/sdks/skills/README.md#retrievecontent) - Download skill content
* [CreateVersion](docs/sdks/skills/README.md#createversion) - Create skill version
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,14 @@ Based on:
### Generated
- [go v0.13.4] .
### Releases
- [Go v0.13.4] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.4 - .
- [Go v0.13.4] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.4 - .

## 2026-07-25 02:11:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.791.0 (2.924.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.13.5] .
### Releases
- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - .
27 changes: 25 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,35 @@ func (s *Chat) Retrieve(ctx context.Context, getChatRequest components.GetChatRe
}
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 403:
switch {
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}

var out apierrors.AccessRequestPermissionDeniedResponseError
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

out.HTTPMeta = components.HTTPMetadata{
Request: req,
Response: httpRes,
}
return nil, &out
default:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, apierrors.NewAPIError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode == 400:
fallthrough
case httpRes.StatusCode == 401:
fallthrough
case httpRes.StatusCode == 403:
fallthrough
case httpRes.StatusCode == 429:
fallthrough
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AccessRequestPermissionDeniedResponseError


## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `ErrorType` | [components.AccessRequestPermissionDeniedResponseErrorType](../../models/components/accessrequestpermissiondeniedresponseerrortype.md) | :heavy_check_mark: | N/A | |
| `CreatedBy` | [components.Person](../../models/components/person.md) | :heavy_check_mark: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `RequestableRoles` | [][components.UserRole](../../models/components/userrole.md) | :heavy_check_mark: | N/A | |
| `HasPendingRequest` | `bool` | :heavy_check_mark: | N/A | |
| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# AccessRequestPermissionDeniedResponseErrorType

## Example Usage

```go
import (
"github.com/gleanwork/api-client-go/models/components"
)

value := components.AccessRequestPermissionDeniedResponseErrorTypePermissionDenied
```


## Values

| Name | Value |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `AccessRequestPermissionDeniedResponseErrorTypePermissionDenied` | PERMISSION_DENIED |
4 changes: 3 additions & 1 deletion docs/models/components/datasourcecategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ custom := components.DatasourceCategory("custom_value")
| `DatasourceCategoryExternalShortcut` | EXTERNAL_SHORTCUT |
| `DatasourceCategoryEntity` | ENTITY |
| `DatasourceCategoryCalendar` | CALENDAR |
| `DatasourceCategoryAgents` | AGENTS |
| `DatasourceCategoryAgents` | AGENTS |
| `DatasourceCategoryAiConversation` | AI_CONVERSATION |
| `DatasourceCategoryAiArtifact` | AI_ARTIFACT |
4 changes: 3 additions & 1 deletion docs/models/components/doccategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ custom := components.DocCategory("custom_value")
| `DocCategoryExternalShortcut` | EXTERNAL_SHORTCUT |
| `DocCategoryEntity` | ENTITY |
| `DocCategoryCalendar` | CALENDAR |
| `DocCategoryAgents` | AGENTS |
| `DocCategoryAgents` | AGENTS |
| `DocCategoryAiConversation` | AI_CONVERSATION |
| `DocCategoryAiArtifact` | AI_ARTIFACT |
9 changes: 9 additions & 0 deletions docs/models/components/platformdatasourcefilterinfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PlatformDatasourceFilterInfo


## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Datasource` | `string` | :heavy_check_mark: | Datasource identifier usable in `POST /api/search` `datasources`.<br/> | jira |
| `Filters` | [][components.PlatformFilterFieldInfo](../../models/components/platformfilterfieldinfo.md) | :heavy_check_mark: | Common built-in filter fields for this datasource. May be empty. A built-in omitted here can still be valid in `POST /api/search`; see `Filter.field` for the full built-in name list.<br/> | |
Loading
Loading