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
24 changes: 12 additions & 12 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: 1d1c4c798b764226bfeeae4268f907c1
docChecksum: 01321616cdcf93db810c4aee8ab4ccb3
docVersion: 0.9.0
speakeasyVersion: 1.792.0
generationVersion: 2.927.0
releaseVersion: 0.13.5
configChecksum: 009b543f108a1c88bc5f2c93ec966cfc
releaseVersion: 0.13.6
configChecksum: 33656fde32c1f57bc7910b7d88f2eb8d
repoURL: https://github.com/gleanwork/api-client-go.git
installationURL: https://github.com/gleanwork/api-client-go
persistentEdits:
generation_id: 1076cd3e-e245-4c8d-ba4c-cebe3adc310c
pristine_commit_hash: a33bd9d4d695cbe390f953b8791b4bfeaa3ea4a5
pristine_tree_hash: aaf556862da09703cdd0e8d843fd745cf3e54b8e
generation_id: eac38b56-18c6-496a-834f-8a95ff22dd36
pristine_commit_hash: 5a4ad5a001f1ec626fc3fbdbad82c509508933ec
pristine_tree_hash: 0c4278ea21fd6990ff440a3c2306bb341e4eca96
features:
go:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -4218,8 +4218,8 @@ trackedFiles:
pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d
glean.go:
id: f5ed099b8e85
last_write_checksum: sha1:dd0ec8b40cf15bc08d6835dbef376f36a0b7bea0
pristine_git_object: abdbc27bc95681e8ed6ae7fcba37b0904e9d6b6c
last_write_checksum: sha1:66c1100019fab6dd34cae676d58da824bd591815
pristine_git_object: 4296ac0b8e766ce272819603731022d5a2b7b54e
go.mod:
id: c47645c391ad
last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38
Expand Down Expand Up @@ -7342,8 +7342,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 @@ -10926,8 +10926,8 @@ trackedFiles:
pristine_git_object: 34de629e636ff1ec4a5341bdf6b0ae06aa408ba4
tests/summarize_test.go:
id: 1b63b0a16e69
last_write_checksum: sha1:7b432655f0dba886ce6a8857b300eb3b0f43d5ea
pristine_git_object: 455b796edf1ac793ed4cb75eb326727716c0e3e3
last_write_checksum: sha1:45fed3ea89c807c76d350fadad4cae44cc0a9195
pristine_git_object: d2a433b8163262f46b9e0be84787099f762c3c84
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.13.5
version: 0.13.6
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand Down
12 changes: 8 additions & 4 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ openapi: 3.0.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: 7a82cb818d032eca9f42d56706dd9e0a65418d45
x-open-api-commit-sha: 987c3f6458420f6a99420d808bdccea74ab84dad
x-source-commit-sha: 6619999514df1dba7b0ec686a8cc9e2a4b5baf7a
x-open-api-commit-sha: f8615a1b13b161183a87a2f958a0a4a8a2069ffe
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 @@ -281,14 +281,18 @@ paths:
data: {"type":"response.created","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"}

id: 2
event: response.progress
data: {"type":"response.progress","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"**Searching:** foo"}

id: 3
event: response.output_text.delta
data: {"type":"response.output_text.delta","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"}

id: 3
id: 4
event: response.output_text.done
data: {"type":"response.output_text.done","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"}

id: 4
id: 5
event: response.completed
data: {"type":"response.completed","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","response":{"id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","object":"response","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":"Hello"}]}],"store":true,"request_id":"req_123","created_at":"2026-07-14T20:00:00Z"}}
"400":
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.792.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941
sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8
sourceRevisionDigest: sha256:87837ba014184e456eb73e5b47f5d8d9ef289ad4da7c7c26af4a42bf83e0b67f
sourceBlobDigest: sha256:123a114c31de79c063472d86a6b287f36226c92140d7db8fe05df872af198a33
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941
sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8
sourceRevisionDigest: sha256:87837ba014184e456eb73e5b47f5d8d9ef289ad4da7c7c26af4a42bf83e0b67f
sourceBlobDigest: sha256:123a114c31de79c063472d86a6b287f36226c92140d7db8fe05df872af198a33
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:df19d1292f8190bf57b907045c6e7529b7f5c500b6d01a0f8d909961d64ae7f5
codeSamplesRevisionDigest: sha256:cd6b884a68a2e23cc0d8423c22d9573c2cb6eea7d2980a13b3943b16305a0ce7
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 @@ -818,4 +818,14 @@ Based on:
### Generated
- [go v0.13.5] .
### Releases
- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - .
- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - .

## 2026-08-10 18:18:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.792.0 (2.927.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.13.6] .
### Releases
- [Go v0.13.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.6 - .
13 changes: 8 additions & 5 deletions glean.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ type Glean struct {
Agents *Agents
Chat *Chat
Skills *Skills
Search *Search
Client *Client
Indexing *Indexing
// Search agents
// Search agents available to the authenticated user by agent name.
//
Search *Search
Client *Client
Indexing *Indexing

sdkConfiguration config.SDKConfiguration
hooks *hooks.Hooks
Expand Down Expand Up @@ -160,9 +163,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.13.5",
SDKVersion: "0.13.6",
sdkConfiguration: config.SDKConfiguration{
UserAgent: "speakeasy-sdk/go 0.13.5 2.927.0 0.9.0 github.com/gleanwork/api-client-go",
UserAgent: "speakeasy-sdk/go 0.13.6 2.927.0 0.9.0 github.com/gleanwork/api-client-go",
ServerList: ServerList,
ServerVariables: []map[string]string{
{
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
12 changes: 6 additions & 6 deletions tests/summarize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ func TestSummarize_Summarize(t *testing.T) {

res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{
DocumentSpecs: []components.DocumentSpecUnion{
components.CreateDocumentSpecUnionDocumentSpec1(
components.DocumentSpec1{
URL: "https://deficient-majority.net",
},
),
components.CreateDocumentSpecUnionDocumentSpec4(
components.DocumentSpec4{
UgcType: components.DocumentSpecUgcType2Shortcuts,
UgcType: components.DocumentSpecUgcType2Chats,
UgcID: "<id>",
},
),
components.CreateDocumentSpecUnionDocumentSpec1(
components.DocumentSpec1{
URL: "https://super-stay.net/",
},
),
},
}, nil)
require.NoError(t, err)
Expand Down
Loading