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
28 changes: 14 additions & 14 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 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.12
version: 0.15.13
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand Down
16 changes: 2 additions & 14 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
6 changes: 3 additions & 3 deletions glean.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) {
IDType: components.IDTypeConversationID,
ID: "<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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
16 changes: 8 additions & 8 deletions tests/summarize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<id>",
components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
UgcType: components.DocumentSpecUgcType1Announcements,
ContentID: 150932,
},
),
components.CreateDocumentSpecUnionDocumentSpec4(
components.DocumentSpec4{
UgcType: components.DocumentSpecUgcType2Announcements,
UgcID: "<id>",
components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
UgcType: components.DocumentSpecUgcType1Announcements,
ContentID: 150932,
},
),
},
Expand Down
Loading