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
29 changes: 14 additions & 15 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: 2b2ce854d657d789a98d46023428c81a
docChecksum: 09575dec742ea8ce59a96ca53e7d9a73
docVersion: 0.9.0
speakeasyVersion: 1.796.4
generationVersion: 2.935.1
releaseVersion: 0.15.5
configChecksum: 20a0159a9ffb4c284a7c49c93eaf7afa
releaseVersion: 0.15.6
configChecksum: 77ea284d7523ac1b33f4611c21889a86
repoURL: https://github.com/gleanwork/api-client-go.git
installationURL: https://github.com/gleanwork/api-client-go
persistentEdits:
generation_id: 4f2b9b30-3ad5-4805-a2df-d1b704dcbd85
pristine_commit_hash: 45747040af04b9cdb78fede4f8d896ffc2818801
pristine_tree_hash: 2155d5946290bb6ce6f1f579d7f7899e033cf73c
generation_id: 2eed6b1a-295e-433a-8494-cc40b1b0ebda
pristine_commit_hash: a646a31ccb0a809eb04b6b4d53afa8e0807c8056
pristine_tree_hash: 5815440a2b9846e19ab8fbac1ffc6eaffd7a9c2d
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:384fed6ae3e1dc5c292517130971f414d22d106e
pristine_git_object: ae5b3992b700d126942dd6886f3695dde2f102d0
last_write_checksum: sha1:291ae6cc30d49e07acb68c9a215667a7751a74af
pristine_git_object: dfe51e5c18791ab739a665c1928a7b3ed6647c2d
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:48e3131585272d616898306eee7e28c886bb6fe2
pristine_git_object: 0e847b6f42cc2ac96b67b69fa6ade86ae35542d5
tests/mockserver/.gitignore:
id: 7705eb663274
last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4
Expand Down Expand Up @@ -8305,8 +8305,8 @@ trackedFiles:
pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f
tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go:
id: 3fb93a419933
last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e
pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0
last_write_checksum: sha1:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74
pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf
tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go:
id: 8d9d3abb0c34
last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4
Expand Down Expand Up @@ -11737,8 +11737,8 @@ trackedFiles:
pristine_git_object: f6ef683531884725f5107c32848516513f87e494
tests/summarize_test.go:
id: 1b63b0a16e69
last_write_checksum: sha1:9a70ea5210112e28bc84c1eb2c2ace91c91991b0
pristine_git_object: ac6a9089a0b7d8f27eb560c57abdb2e58b7195fd
last_write_checksum: sha1:301c0b43f32c724610779d3d83246908b44c9b41
pristine_git_object: 0895933dbb67bc175f38ef10c05d38a45d87855c
tests/testclient.go:
id: 78d36c6e169c
last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8
Expand Down Expand Up @@ -13372,7 +13372,6 @@ generatedTests:
platform-trigger-presets-get: "2026-08-21T02:35:39Z"
platform-trigger-presets-input-values-list: "2026-08-21T02:35:39Z"
platform-trigger-presets-events-search: "2026-08-21T02:35:39Z"
releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Search.RetrieveFeed()`: \n * `request.FeedRequest.Categories[]` **Changed**\n * `response.Results[]` **Changed**\n"
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
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.5
version: 0.15.6
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: 59fa118cd743cd6bc9ea3c8d2816148f10c9855d
x-open-api-commit-sha: 83ff3b39389051c6fb840d76dc1d2072c3f50c3d
x-open-api-commit-sha: d67af2b34e5f5ebfd58c9159565623d42a978f10
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
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:78dfba4260d1facfd0c329fcca6f01010494a2f86d72c08488aacd686788c869
sourceBlobDigest: sha256:9536ecb3bc115c9844e6f5533b9566b19520b8824a174dd07feffd041acd9d5d
sourceRevisionDigest: sha256:aedf3aeaf0b00658d47fdc7b94f1435d4cd700a3a66385f015be86d8dcd1c3ec
sourceBlobDigest: sha256:0bbe81573a0356043b9640214eeff9ca37c97d611fba501ff29f9af4a8c9e3e8
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:78dfba4260d1facfd0c329fcca6f01010494a2f86d72c08488aacd686788c869
sourceBlobDigest: sha256:9536ecb3bc115c9844e6f5533b9566b19520b8824a174dd07feffd041acd9d5d
sourceRevisionDigest: sha256:aedf3aeaf0b00658d47fdc7b94f1435d4cd700a3a66385f015be86d8dcd1c3ec
sourceBlobDigest: sha256:0bbe81573a0356043b9640214eeff9ca37c97d611fba501ff29f9af4a8c9e3e8
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:be7e1e58afae183b9b0dd9a589a081bc08fa5888513eee1822b4364f9a156352
codeSamplesRevisionDigest: sha256:3a5179ef0d524f189c51a315f230dc10690d8ef5545754f52d89463d63d5e739
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 @@ -908,4 +908,14 @@ Based on:
### Generated
- [go v0.15.5] .
### Releases
- [Go v0.15.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.5 - .
- [Go v0.15.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.5 - .

## 2026-09-07 02:32:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.15.6] .
### Releases
- [Go v0.15.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.6 - .
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.5",
SDKVersion: "0.15.6",
sdkConfiguration: config.SDKConfiguration{
UserAgent: "speakeasy-sdk/go 0.15.5 2.935.1 0.9.0 github.com/gleanwork/api-client-go",
SDKVersion: "0.15.5",
UserAgent: "speakeasy-sdk/go 0.15.6 2.935.1 0.9.0 github.com/gleanwork/api-client-go",
SDKVersion: "0.15.6",
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.DatasourceSlackentgrid,
}, 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 @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
operations.ResponseBody2{
Collection: &components.Collection{
Name: "<value>",
Description: "whole busily jive hawk gee basic minus hence",
Description: "motionless whenever paintwork import over cuckoo",
AddedRoles: []components.UserRoleSpecification{
components.UserRoleSpecification{
Person: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
},
Role: components.UserRoleAnswerModerator,
Role: components.UserRoleOwner,
},
},
RemovedRoles: []components.UserRoleSpecification{
Expand All @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 158969,
ID: 363711,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
Expand All @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
Items: []components.CollectionItem{
components.CollectionItem{
CollectionID: 110375,
CollectionID: 570197,
CreatedBy: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
Expand Down Expand Up @@ -278,13 +278,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
Name: "George Clooney",
ObfuscatedID: "abc123",
},
Role: components.UserRoleEditor,
Role: components.UserRoleAnswerModerator,
},
},
},
Collection: &components.Collection{
Name: "<value>",
Description: "wedge colorfully orientate rally",
Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
Expand All @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 131797,
ID: 643990,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
Expand All @@ -312,7 +312,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
Children: []components.Collection{
components.Collection{
Name: "<value>",
Description: "outside yippee sidetrack mature regularly mouser inject worth",
Description: "woot purse salty even as advanced",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
Expand All @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 149448,
ID: 359978,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
Expand All @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ItemType: components.CollectionItemItemTypeCollection,
ItemType: components.CollectionItemItemTypeURL,
},
},
},
Expand Down
13 changes: 7 additions & 6 deletions tests/summarize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ func TestSummarize_Summarize(t *testing.T) {

res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{
DocumentSpecs: []components.DocumentSpecUnion{
components.CreateDocumentSpecUnionDocumentSpec1(
components.DocumentSpec1{
URL: "https://ashamed-alert.biz/",
},
),
components.CreateDocumentSpecUnionDocumentSpec4(
components.DocumentSpec4{
UgcType: components.DocumentSpecUgcType2Artifacts,
UgcType: components.DocumentSpecUgcType2Chats,
UgcID: "<id>",
},
),
components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
UgcType: components.DocumentSpecUgcType1Answers,
ContentID: 206423,
},
),
},
}, nil)
require.NoError(t, err)
Expand Down
Loading