From ae3070a51746a164d657c72caf0809a3259e5946 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 10 Sep 2026 17:28:44 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.796.4 --- .speakeasy/gen.lock | 28 +++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 16 ++--------- .speakeasy/workflow.lock | 10 +++---- RELEASES.md | 12 +++++++- glean.go | 6 ++-- tests/messages_test.go | 2 +- .../handler/pathpostrestapiv1getchat.go | 4 +-- tests/summarize_test.go | 16 +++++------ 9 files changed, 47 insertions(+), 49 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c084cd41..2060ea3d 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: 6353c0f55e4a0e81bd102bec49feb762 + docChecksum: 75dcb4ef654ae196b194eb433d5ff95e docVersion: 0.9.0 speakeasyVersion: 1.796.4 generationVersion: 2.935.1 - releaseVersion: 0.15.12 - configChecksum: e4916470fb7e0fa8f4f67755c900accb + releaseVersion: 0.15.13 + configChecksum: 5c76d23e05a4163221213e33f9341e68 repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: cc655913-09f7-437e-8304-5876725731f8 - pristine_commit_hash: 6b51a99b27dae175b4d4139795c356c830f12679 - pristine_tree_hash: 2c0e09765cfca0d4381ab33f265b12a513c0ed0a + generation_id: bce37f96-d964-4d84-ab56-28ed9a3a0d86 + pristine_commit_hash: 44c6bad9d9598ba272c4000af7836c73761b0396 + pristine_tree_hash: 7577c102bef87bd142b1233073c9482a2e621282 features: go: acceptHeaders: 2.81.2 @@ -4541,8 +4541,8 @@ trackedFiles: pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:d7b8d5013260023d130068f95fd0e2d0e6a14fde - pristine_git_object: 4afa729ca95e50f9dd5eb8d47b84c936828d4446 + last_write_checksum: sha1:c83b556cdc9edef5fe8e903bc6b24c1ea3f34ed7 + pristine_git_object: 09cc0d0f795a5d8a0b7cae13ee420eb2b6ae598d go.mod: id: c47645c391ad last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38 @@ -7889,8 +7889,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: id: 7705eb663274 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 @@ -8377,8 +8377,8 @@ trackedFiles: pristine_git_object: abb763ddc8504b28c0cb6fdf8d25237d46e21bab tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: id: a0ec7bafa599 - last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44 - pristine_git_object: 96d4127e0455272a9842e2d1954e5fcefa3278cc + last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 + pristine_git_object: 8740195860b6c08e036caae19aab8e7374350960 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: id: 7d101c69d4bc last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 @@ -11737,8 +11737,8 @@ trackedFiles: pristine_git_object: f6ef683531884725f5107c32848516513f87e494 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:dbad0b008bd506999608ebaec2f211699394ad62 - pristine_git_object: 2689f187c4f2df7ce3ea2cc3086860896cdbfb4f + last_write_checksum: sha1:d4de2843277d56535e630242ac2356de45043911 + pristine_git_object: bf62649ead002e2e055aee340df14547cb7fce83 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8d4751b8..5c22d65c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.15.12 + version: 0.15.13 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 3b0437d3..614cfd84 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.1.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: c7223f0e466c632820e8ef482ecdbb03a025224a - x-open-api-commit-sha: 3c1ac65b05f5133def947499c01ef4e2ca3a6abd + x-source-commit-sha: 31a8965bc9e49871a44c872a19d7442c25790b41 + x-open-api-commit-sha: 50797dafaa6c32f59f7dd18b9a5766b5321fffaa 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. @@ -261,9 +261,6 @@ paths: Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. operationId: platform-chat-create x-visibility: Public - x-glean-experimental: - id: e65a0a77-97a2-4c91-be60-eae7f6238015 - introduced: "2026-07-14" x-codegen-request-body-name: payload requestBody: required: true @@ -1076,9 +1073,6 @@ paths: Errors: HTTP 422 `unprocessable_query` returns no `results` or `next_cursor`. See `warnings` on the response for non-blocking issues such as partially available results. Not every query issue produces a warning or error. operationId: platform-search x-visibility: Public - x-glean-experimental: - id: 5ab612fc-ed50-4419-bec3-e5fe83934653 - introduced: "2026-04-08" x-codegen-request-body-name: payload requestBody: required: true @@ -1127,9 +1121,6 @@ paths: Without `query`, returns field metadata only and does not run a search. With a nonblank `query`, provide exactly one `datasources` value to request suggested filter values for that query; no documents are returned and this endpoint does not include warning objects. See `FilterFieldInfo.values` for limitations on suggested values. Rate-limited requests return HTTP 429 with `Retry-After`; temporary backend unavailability returns HTTP 503. operationId: platform-search-filters x-visibility: Public - x-glean-experimental: - id: 0b585621-13fb-4544-bf20-5e1c99452735 - introduced: "2026-05-12" parameters: - in: query name: datasources @@ -1762,9 +1753,6 @@ paths: SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body. operationId: platform-chat-create-stream x-visibility: Public - x-glean-experimental: - id: e65a0a77-97a2-4c91-be60-eae7f6238015 - introduced: "2026-07-14" x-codegen-request-body-name: payload requestBody: required: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f995ef35..12ca1a3c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.4 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:1e388ffa2a80a940e8f0fb3ce853515e1b5ef08d3e855546e03189fc18dfe0b5 - sourceBlobDigest: sha256:34614ce8f5e2b214149ec1268a4fec4c1a494bef586844d88f3f0182adfd89e4 + sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5 + sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931 tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:1e388ffa2a80a940e8f0fb3ce853515e1b5ef08d3e855546e03189fc18dfe0b5 - sourceBlobDigest: sha256:34614ce8f5e2b214149ec1268a4fec4c1a494bef586844d88f3f0182adfd89e4 + sourceRevisionDigest: sha256:09eb059f0216714606cd4c098bf2c97994e46c67ba091ffd108681cf9ae831a5 + sourceBlobDigest: sha256:a9418b93b4aaa7cd6d428375e23d233ffca2418e04be1fee988a029e3cb02931 codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:3ec63a0624d73d100b520086a58260a86b1385f230fcfd86e821d4ade6cac0e5 + codeSamplesRevisionDigest: sha256:0ff8664cbdc34392d4f7b35cc739944afafa44d8ab1a2d8b741b5f1f79bb67d8 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/RELEASES.md b/RELEASES.md index 46a7712d..cb10d2f6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -978,4 +978,14 @@ Based on: ### Generated - [go v0.15.12] . ### Releases -- [Go v0.15.12] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.12 - . \ No newline at end of file +- [Go v0.15.12] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.12 - . + +## 2026-09-10 17:18:35 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.15.13] . +### Releases +- [Go v0.15.13] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.13 - . \ No newline at end of file diff --git a/glean.go b/glean.go index 4afa729c..09cc0d0f 100644 --- a/glean.go +++ b/glean.go @@ -161,10 +161,10 @@ 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.15.12", + SDKVersion: "0.15.13", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.15.12 2.935.1 0.9.0 github.com/gleanwork/api-client-go", - SDKVersion: "0.15.12", + UserAgent: "speakeasy-sdk/go 0.15.13 2.935.1 0.9.0 github.com/gleanwork/api-client-go", + SDKVersion: "0.15.13", GenVersion: "2.935.1", OpenAPIDocVersion: "0.9.0", ServerList: ServerList, 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/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 96d4127e..87401958 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/summarize_test.go b/tests/summarize_test.go index 2689f187..bf62649e 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -25,16 +25,16 @@ func TestSummarize_Summarize(t *testing.T) { res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{ DocumentSpecs: []components.DocumentSpecUnion{ - components.CreateDocumentSpecUnionDocumentSpec4( - components.DocumentSpec4{ - UgcType: components.DocumentSpecUgcType2Announcements, - UgcID: "", + components.CreateDocumentSpecUnionDocumentSpec3( + components.DocumentSpec3{ + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 150932, }, ), - components.CreateDocumentSpecUnionDocumentSpec4( - components.DocumentSpec4{ - UgcType: components.DocumentSpecUgcType2Announcements, - UgcID: "", + components.CreateDocumentSpecUnionDocumentSpec3( + components.DocumentSpec3{ + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 150932, }, ), }, From 1df6aac0b1bde5b4b4b609f99fc02dc3057e2e56 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 17:28:53 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow