diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6554b22b..95c9146d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: 4cf274e3f4a0c5f15de24e502bd1503d + docChecksum: 80548a2e50a9d6a392656d02cbb431f0 docVersion: 0.9.0 - speakeasyVersion: 1.755.0 + speakeasyVersion: 1.755.1 generationVersion: 2.865.2 - releaseVersion: 0.11.31 - configChecksum: e53373017008575b444dc499472af0a3 + releaseVersion: 0.11.32 + configChecksum: 6e7a82e2946e6777eb9de333d9a1cc4f repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: a4104262-88eb-4e9f-a9a4-e8f86be793bf - pristine_commit_hash: 387375a54c3d9a44b88bbb1ad38f87ba5b889b9a - pristine_tree_hash: 54e7772dd9192e82fb318ed8946d10000972702c + generation_id: f50a1a52-b657-4261-aebd-ae45cb859073 + pristine_commit_hash: 2eb9b85072ba30e8f602fa0795370fd69b86ca19 + pristine_tree_hash: 9ac70cf962692306d4c30bedd61cf4ab8aa9473b features: go: additionalDependencies: 0.1.0 @@ -3286,8 +3286,8 @@ trackedFiles: pristine_git_object: 87f13ac7b1bb396e778a90fbb59d605bd00a9276 glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:8307607c76679e3b045522921548bc5be6aeae39 - pristine_git_object: 07ca1d9b4a2ef7d972201a8a2d6a86c33543ff42 + last_write_checksum: sha1:ae4b95b4432dc34332a95b02cecc3242d95a588a + pristine_git_object: dd1245c96658b643dc2ecb208484038f6fb48f6e go.mod: id: c47645c391ad last_write_checksum: sha1:86e3d2575dc26780579383eddbc5be5adbd21501 @@ -5742,8 +5742,8 @@ trackedFiles: pristine_git_object: 6d9cbca42012c2760de3ecaf4f569c53d32197da tests/messages_test.go: id: 3433c956b7a3 - last_write_checksum: sha1:352ecfa3a01795bbe7fad9b0202c4ccaa02448c3 - pristine_git_object: 64ef64fe1c0ccbc223987d87ddddf3d6e2de7799 + last_write_checksum: sha1:0e70d5a95dcfffb2d01931c47eae827d7c95129a + pristine_git_object: bc499ec73cc495c1502d01361347ce76a0fe5f18 tests/mockserver/.gitignore: last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 tests/mockserver/Dockerfile: @@ -7138,8 +7138,8 @@ trackedFiles: pristine_git_object: 8276fc3a8313ccbdb884ac378657dea8e7a24776 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:e1303f8dcdc9bffb7f90b721491f346c396dc41b - pristine_git_object: fc444d27099be7a69601ec8bd45dfb9b689c98c7 + last_write_checksum: sha1:18019f2ea08ad3bfa7b69f8e8ac93016344f5bde + pristine_git_object: d66471f15287caee050294062ec51dd277524032 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 @@ -8105,7 +8105,6 @@ generatedTests: checkdatasourceauth: "2026-02-19T15:51:40Z" getDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" updateDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z" -releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Chat.Create()`: `response.Chat` **Added**\n* `Glean.Client.Search.RetrieveFeed()`: \n * `request.FeedRequest.Categories[]` **Changed**\n * `response.Results[]` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c2f1241f..cee44d45 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.11.31 + version: 0.11.32 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 4181bc81..eb37f8fc 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 7a7b088ee2579f06e8c75700cf68d3021ff77c5f + x-source-commit-sha: 6b660e03c4bbab898ce5b702b838752054fd8bee description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: b44ae5cd8ae20dd697ad17378df510a0c3f6d340 + x-open-api-commit-sha: 5200df2ebea09dd3da02c3dd2ac42f3a7f6dd993 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b8c86037..bb85c705 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.755.0 +speakeasyVersion: 1.755.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732 - sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d + sourceRevisionDigest: sha256:9a5eeaa82d7740b6764d9b74e10217b9bc7282704b0b17e2ddab8f6925cb1755 + sourceBlobDigest: sha256:1f0aab3c3c530460eebfbaccbd0d875e36074178eb1590e239ed3a0b6074bad6 tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732 - sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d + sourceRevisionDigest: sha256:9a5eeaa82d7740b6764d9b74e10217b9bc7282704b0b17e2ddab8f6925cb1755 + sourceBlobDigest: sha256:1f0aab3c3c530460eebfbaccbd0d875e36074178eb1590e239ed3a0b6074bad6 codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:642cb89fff1c11414acbd470ffee091a5693e1477b925579d17ec11dbefef652 + codeSamplesRevisionDigest: sha256:4d9371135075a178f9e3318e9c431897fe749d54855e036da1965c93e2a781f7 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/RELEASES.md b/RELEASES.md index d9b5d040..96066987 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -608,4 +608,14 @@ Based on: ### Generated - [go v0.11.31] . ### Releases -- [Go v0.11.31] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.31 - . \ No newline at end of file +- [Go v0.11.31] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.31 - . + +## 2026-03-17 01:48:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.755.1 (2.865.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.11.32] . +### Releases +- [Go v0.11.32] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.32 - . \ No newline at end of file diff --git a/glean.go b/glean.go index 07ca1d9b..dd1245c9 100644 --- a/glean.go +++ b/glean.go @@ -161,9 +161,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.11.31", + SDKVersion: "0.11.32", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.11.31 2.865.2 0.9.0 github.com/gleanwork/api-client-go", + UserAgent: "speakeasy-sdk/go 0.11.32 2.865.2 0.9.0 github.com/gleanwork/api-client-go", ServerList: ServerList, ServerVariables: []map[string]string{ { diff --git a/tests/messages_test.go b/tests/messages_test.go index 64ef64fe..bc499ec7 100644 --- a/tests/messages_test.go +++ b/tests/messages_test.go @@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) { IDType: components.IDTypeConversationID, ID: "", TimestampMillis: apiclientgo.Pointer[int64](558834), - Datasource: components.DatasourceFacebookworkplace, + Datasource: components.DatasourceMicrosoftteams, }, nil) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/summarize_test.go b/tests/summarize_test.go index fc444d27..d66471f1 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -25,17 +25,16 @@ func TestSummarize_Summarize(t *testing.T) { res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{ DocumentSpecs: []components.DocumentSpecUnion{ + components.CreateDocumentSpecUnionDocumentSpec1( + components.DocumentSpec1{ + URL: "https://nervous-stall.info", + }, + ), components.CreateDocumentSpecUnionDocumentSpec2( components.DocumentSpec2{ ID: "", }, ), - components.CreateDocumentSpecUnionDocumentSpec3( - components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Collections, - ContentID: 886976, - }, - ), }, }, nil) require.NoError(t, err)