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: 09575dec742ea8ce59a96ca53e7d9a73
docChecksum: dd6abd9ee08a508ebb1071ee68eb0e80
docVersion: 0.9.0
speakeasyVersion: 1.796.4
generationVersion: 2.935.1
releaseVersion: 0.15.6
configChecksum: 77ea284d7523ac1b33f4611c21889a86
releaseVersion: 0.15.7
configChecksum: 0a8a6c947b55ea1b34780349d26196ac
repoURL: https://github.com/gleanwork/api-client-go.git
installationURL: https://github.com/gleanwork/api-client-go
persistentEdits:
generation_id: 2eed6b1a-295e-433a-8494-cc40b1b0ebda
pristine_commit_hash: a646a31ccb0a809eb04b6b4d53afa8e0807c8056
pristine_tree_hash: 5815440a2b9846e19ab8fbac1ffc6eaffd7a9c2d
generation_id: b5e1005b-9f95-4cea-8269-46c88446861f
pristine_commit_hash: a61387e0744e2a006c93be7932cde645fec5330c
pristine_tree_hash: 5ed1b095d4d16305a2a8cc32833ba3c072f76cba
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:291ae6cc30d49e07acb68c9a215667a7751a74af
pristine_git_object: dfe51e5c18791ab739a665c1928a7b3ed6647c2d
last_write_checksum: sha1:7a44c066b4af71d652d31b758f32e0d869012b2f
pristine_git_object: 76389580ded4dc80c48cd250c1fff98a81250241
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:48e3131585272d616898306eee7e28c886bb6fe2
pristine_git_object: 0e847b6f42cc2ac96b67b69fa6ade86ae35542d5
last_write_checksum: sha1:352ecfa3a01795bbe7fad9b0202c4ccaa02448c3
pristine_git_object: 64ef64fe1c0ccbc223987d87ddddf3d6e2de7799
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:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74
pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf
last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e
pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0
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:301c0b43f32c724610779d3d83246908b44c9b41
pristine_git_object: 0895933dbb67bc175f38ef10c05d38a45d87855c
last_write_checksum: sha1:7c2dd1971ef08363eb64aac3c8a2da389411b637
pristine_git_object: 8f8003ff8749d018e6b02af41ac3cffaf4436542
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.6
version: 0.15.7
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
Expand Down
4 changes: 2 additions & 2 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: 59fa118cd743cd6bc9ea3c8d2816148f10c9855d
x-open-api-commit-sha: d67af2b34e5f5ebfd58c9159565623d42a978f10
x-source-commit-sha: f8def30cb329c92015a24d37ded953172dd1696d
x-open-api-commit-sha: 1525d02a424d7308fb7e9d4390ec273c38aa0329
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:aedf3aeaf0b00658d47fdc7b94f1435d4cd700a3a66385f015be86d8dcd1c3ec
sourceBlobDigest: sha256:0bbe81573a0356043b9640214eeff9ca37c97d611fba501ff29f9af4a8c9e3e8
sourceRevisionDigest: sha256:005d78f29bd03a8b8fcdde38ac9e64e09e9b8d73eded4671c6bfce88ff214b2f
sourceBlobDigest: sha256:517954252207cdaa231520a046fe0ba8880013935b6b339b8ab9bbfc3584d1b6
tags:
- latest
petstore-oas:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:aedf3aeaf0b00658d47fdc7b94f1435d4cd700a3a66385f015be86d8dcd1c3ec
sourceBlobDigest: sha256:0bbe81573a0356043b9640214eeff9ca37c97d611fba501ff29f9af4a8c9e3e8
sourceRevisionDigest: sha256:005d78f29bd03a8b8fcdde38ac9e64e09e9b8d73eded4671c6bfce88ff214b2f
sourceBlobDigest: sha256:517954252207cdaa231520a046fe0ba8880013935b6b339b8ab9bbfc3584d1b6
codeSamplesNamespace: glean-api-specs-go-code-samples
codeSamplesRevisionDigest: sha256:3a5179ef0d524f189c51a315f230dc10690d8ef5545754f52d89463d63d5e739
codeSamplesRevisionDigest: sha256:fc55c92047c840a1b9a6459d4fb7f6705e966542b15b0590d25982824628f0f6
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 @@ -918,4 +918,14 @@ Based on:
### Generated
- [go v0.15.6] .
### Releases
- [Go v0.15.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.6 - .
- [Go v0.15.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.6 - .

## 2026-09-08 02:45:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.15.7] .
### Releases
- [Go v0.15.7] https://github.com/gleanwork/api-client-go/releases/tag/v0.15.7 - .
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.6",
SDKVersion: "0.15.7",
sdkConfiguration: config.SDKConfiguration{
UserAgent: "speakeasy-sdk/go 0.15.6 2.935.1 0.9.0 github.com/gleanwork/api-client-go",
SDKVersion: "0.15.6",
UserAgent: "speakeasy-sdk/go 0.15.7 2.935.1 0.9.0 github.com/gleanwork/api-client-go",
SDKVersion: "0.15.7",
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.DatasourceSlackentgrid,
Datasource: components.DatasourceFacebookworkplace,
}, 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: "motionless whenever paintwork import over cuckoo",
Description: "whole busily jive hawk gee basic minus hence",
AddedRoles: []components.UserRoleSpecification{
components.UserRoleSpecification{
Person: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
},
Role: components.UserRoleOwner,
Role: components.UserRoleAnswerModerator,
},
},
RemovedRoles: []components.UserRoleSpecification{
Expand All @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 363711,
ID: 158969,
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: 570197,
CollectionID: 110375,
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.UserRoleAnswerModerator,
Role: components.UserRoleEditor,
},
},
},
Collection: &components.Collection{
Name: "<value>",
Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do",
Description: "wedge colorfully orientate rally",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
Expand All @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 643990,
ID: 131797,
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: "woot purse salty even as advanced",
Description: "outside yippee sidetrack mature regularly mouser inject worth",
AudienceFilters: []components.FacetFilter{
components.FacetFilter{
FieldName: types.String("type"),
Expand All @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ID: 359978,
ID: 149448,
Creator: &components.Person{
Name: "George Clooney",
ObfuscatedID: "abc123",
Expand All @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ
},
},
},
ItemType: components.CollectionItemItemTypeURL,
ItemType: components.CollectionItemItemTypeCollection,
},
},
},
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,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.DocumentSpecUgcType2Chats,
UgcID: "<id>",
components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
UgcType: components.DocumentSpecUgcType1Shortcuts,
ContentID: 602763,
},
),
components.CreateDocumentSpecUnionDocumentSpec3(
components.DocumentSpec3{
UgcType: components.DocumentSpecUgcType1Answers,
ContentID: 206423,
UgcType: components.DocumentSpecUgcType1Shortcuts,
ContentID: 602763,
},
),
},
Expand Down
Loading