Skip to content

Commit 249d0a4

Browse files
committed
## Go SDK Changes Detected:
* `Glean.Client.Documents.Retrieve()`: * `request.Request.DocumentSpecs.[].[class]` **Changed** **Breaking** ⚠️ * `response.Documents.{}.[document].Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Announcements.Update()`: * `request.Request.Body.StructuredList.[].Document.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Body.StructuredList.[].Document.Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Answers.Create()`: * `request.Request.Data.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response.AddedRoles.[]` **Changed** * `Glean.Client.Answers.Update()`: * `request.Request.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response.AddedRoles.[]` **Changed** * `Glean.Client.Shortcuts.Update()`: * `request.Request.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response.Shortcut.AddedRoles.[]` **Changed** * `Glean.Client.Shortcuts.Create()`: * `request.Request.Data.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response.Shortcut.AddedRoles.[]` **Changed** * `Glean.Client.Chat.Create()`: * `request.ChatRequest.Messages.[].Citations.[].SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Messages.[].Citations.[].SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Search.Query()`: * `request.Request.SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Results.[].StructuredResults.[].Document.Metadata` **Changed** * `Glean.Client.Search.Recommendations()`: * `request.Request.SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Results.[].StructuredResults.[].Document.Metadata` **Changed** * `Glean.Client.Chat.CreateStream()`: * `request.ChatRequest.Messages.[].Citations.[].SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `Glean.Client.Announcements.Create()`: * `request.Request.Body.StructuredList.[].Document.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Body.StructuredList.[].Document.Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Collections.Create()`: * `request.Request.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `Glean.Client.Search.QueryAsAdmin()`: * `request.Request.SourceDocument.Metadata.Author.RelatedDocuments.[]` **Changed** **Breaking** ⚠️ * `response.Results.[].StructuredResults.[].Document.Metadata` **Changed** * `Glean.Client.Collections.Update()`: * `request.Request.AddedRoles.[]` **Changed** **Breaking** ⚠️ * `response.AddedRoles.[]` **Changed** * `Glean.Client.Documents.Summarize()`: * `request.Request.DocumentSpecs.[].[class]` **Changed** **Breaking** ⚠️ * `Glean.Client.Collections.AddItems()`: `response.Collection.AddedRoles.[]` **Changed** * `Glean.Client.Search.RetrieveFeed()`: `response.Results.[].PrimaryEntry` **Changed** * `Glean.Client.Collections.Retrieve()`: `response.Collection.AddedRoles.[]` **Changed** * `Glean.Client.Documents.RetrieveByFacets()`: `response.Documents.[].Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Collections.UpdateItem()`: `response.Collection.AddedRoles.[]` **Changed** * `Glean.Client.Insights.Retrieve()`: `response.Users.ActivityInsights.[].User.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Messages.Retrieve()`: `response.SearchResponse.Results.[].StructuredResults.[].Document.Metadata` **Changed** * `Glean.Client.Pins.Update()`: `response.Attribution.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Pins.Retrieve()`: `response.Pin.Attribution.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Pins.List()`: `response.Pins.[].Attribution.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Pins.Create()`: `response.Attribution.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Collections.DeleteItem()`: `response.Collection.AddedRoles.[]` **Changed** * `Glean.Client.Search.Autocomplete()`: `response.Results.[].Document.Metadata.Author.RelatedDocuments.[]` **Changed** * `Glean.Client.Collections.List()`: `response.Collections.[].AddedRoles.[]` **Changed** * `Glean.Client.Chat.List()`: `response.ChatResults.[].Chat.CreatedBy.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Chat.Retrieve()`: `response.ChatResult.Chat` **Changed** * `Glean.Client.Entities.List()`: `response.Results.[].RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Entities.ReadPeople()`: `response.Results.[].RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Answers.List()`: `response.AnswerResults.[].Answer.AddedRoles.[]` **Changed** * `Glean.Client.Shortcuts.Retrieve()`: `response.Shortcut.AddedRoles.[]` **Changed** * `Glean.Client.Shortcuts.List()`: `response.Shortcuts.[].AddedRoles.[]` **Changed** * `Glean.Client.Answers.Retrieve()`: `response.AnswerResult.Answer.AddedRoles.[]` **Changed** * `Glean.Client.Verification.AddReminder()`: `response.Metadata.LastVerifier.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Verification.List()`: `response.Documents.[].Metadata.LastVerifier.RelatedDocuments.[].QuerySuggestion` **Changed** * `Glean.Client.Verification.Verify()`: `response.Metadata.LastVerifier.RelatedDocuments.[].QuerySuggestion` **Changed**
1 parent 94dc77a commit 249d0a4

File tree

354 files changed

+4345
-3091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+4345
-3091
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/.speakeasy/temp/
24
**/.speakeasy/logs/
35
.DS_Store

.speakeasy/gen.lock

Lines changed: 71 additions & 53 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
2223
tests:
2324
generateTests: true
2425
generateNewTests: true
2526
skipResponseBodyAssertions: true
2627
go:
27-
version: 0.8.0
28+
version: 0.8.1
2829
additionalDependencies: {}
2930
allowUnknownFieldsInWeakUnions: false
3031
baseErrorName: GleanError
@@ -46,5 +47,6 @@ go:
4647
modulePath: ""
4748
outputModelSuffix: output
4849
packageName: github.com/gleanwork/api-client-go
50+
respectRequiredFields: false
4951
responseFormat: envelope-http
5052
sdkPackageName: ""

.speakeasy/glean-merged-spec.yaml

Lines changed: 142 additions & 8 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.603.0
1+
speakeasyVersion: 1.615.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8f18d79a0a7d8f51de7edd5bc8ca3ccc569b81832ffc44ce95a27a12e67b9b7d
6-
sourceBlobDigest: sha256:bb3e5a453f03cbdecf3fb3925768ef4cb0b3119083d9d36c341e1ecd721cde8b
5+
sourceRevisionDigest: sha256:468d64d768f97e3b09134a46339ea6c35392cc9d70ad902e6c23c3e7bb3330ee
6+
sourceBlobDigest: sha256:0d9b7840c0d0d6ac735b1e3b39e0166e43d67d8c4e3a2925a6f147c8190a7058
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752597383
9+
- speakeasy-sdk-regen-1755201004
1010
petstore-oas:
1111
sourceNamespace: petstore-oas
1212
sourceRevisionDigest: sha256:97b2eff2f43ce14276d28efc41ec5de8034cde61db8445f12b626e4dc88ea40e
@@ -18,10 +18,10 @@ targets:
1818
glean:
1919
source: Glean API
2020
sourceNamespace: glean-api-specs
21-
sourceRevisionDigest: sha256:8f18d79a0a7d8f51de7edd5bc8ca3ccc569b81832ffc44ce95a27a12e67b9b7d
22-
sourceBlobDigest: sha256:bb3e5a453f03cbdecf3fb3925768ef4cb0b3119083d9d36c341e1ecd721cde8b
21+
sourceRevisionDigest: sha256:468d64d768f97e3b09134a46339ea6c35392cc9d70ad902e6c23c3e7bb3330ee
22+
sourceBlobDigest: sha256:0d9b7840c0d0d6ac735b1e3b39e0166e43d67d8c4e3a2925a6f147c8190a7058
2323
codeSamplesNamespace: glean-api-specs-go-code-samples
24-
codeSamplesRevisionDigest: sha256:42289a29033aee9962bd47e72e89163ac9b44b5b4e12f708421e8bff819d0c28
24+
codeSamplesRevisionDigest: sha256:941cc0011500a096a8095ac6e52c370dd0248c6c4819b433de31ff4caf87d12a
2525
petstore:
2626
source: petstore-oas
2727
sourceNamespace: petstore-oas

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ func main() {
8787
res, err := s.Client.Chat.Create(ctx, components.ChatRequest{
8888
Messages: []components.ChatMessage{
8989
components.ChatMessage{
90-
Author: components.AuthorUser.ToPointer(),
9190
Fragments: []components.ChatMessageFragment{
9291
components.ChatMessageFragment{
9392
Text: apiclientgo.String("What are the company holidays this year?"),
@@ -129,7 +128,6 @@ func main() {
129128
res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{
130129
Messages: []components.ChatMessage{
131130
components.ChatMessage{
132-
Author: components.AuthorUser.ToPointer(),
133131
Fragments: []components.ChatMessageFragment{
134132
components.ChatMessageFragment{
135133
Text: apiclientgo.String("What are the company holidays this year?"),
@@ -884,8 +882,8 @@ func main() {
884882
NativeAppURL: apiclientgo.String("slack://foo/bar"),
885883
Snippets: []components.SearchResultSnippet{
886884
components.SearchResultSnippet{
887-
Snippet: "snippet",
888885
MimeType: apiclientgo.String("mimeType"),
886+
Snippet: "snippet",
889887
},
890888
},
891889
},
@@ -1135,8 +1133,8 @@ func main() {
11351133
NativeAppURL: apiclientgo.String("slack://foo/bar"),
11361134
Snippets: []components.SearchResultSnippet{
11371135
components.SearchResultSnippet{
1138-
Snippet: "snippet",
11391136
MimeType: apiclientgo.String("mimeType"),
1137+
Snippet: "snippet",
11401138
},
11411139
},
11421140
},

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,14 @@ Based on:
188188
### Generated
189189
- [go v0.8.0] .
190190
### Releases
191-
- [Go v0.8.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.8.0 - .
191+
- [Go v0.8.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.8.0 - .
192+
193+
## 2025-09-16 01:06:50
194+
### Changes
195+
Based on:
196+
- OpenAPI Doc
197+
- Speakeasy CLI 1.615.2 (2.698.4) https://github.com/speakeasy-api/speakeasy
198+
### Generated
199+
- [go v0.8.1] .
200+
### Releases
201+
- [Go v0.8.1] https://github.com/gleanwork/api-client-go/releases/tag/v0.8.1 - .

USAGE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ func main() {
2020
res, err := s.Client.Chat.Create(ctx, components.ChatRequest{
2121
Messages: []components.ChatMessage{
2222
components.ChatMessage{
23-
Author: components.AuthorUser.ToPointer(),
2423
Fragments: []components.ChatMessageFragment{
2524
components.ChatMessageFragment{
2625
Text: apiclientgo.String("What are the company holidays this year?"),
@@ -60,7 +59,6 @@ func main() {
6059
res, err := s.Client.Chat.CreateStream(ctx, components.ChatRequest{
6160
Messages: []components.ChatMessage{
6261
components.ChatMessage{
63-
Author: components.AuthorUser.ToPointer(),
6462
Fragments: []components.ChatMessageFragment{
6563
components.ChatMessageFragment{
6664
Text: apiclientgo.String("What are the company holidays this year?"),

collections.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ func (s *Collections) Create(ctx context.Context, request components.CreateColle
426426
return nil, err
427427
}
428428

429-
var out components.CreateCollectionResponse
429+
var out operations.CreatecollectionResponseBody
430430
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
431431
return nil, err
432432
}
433433

434-
res.CreateCollectionResponse = &out
434+
res.OneOf = &out
435435
default:
436436
rawBody, err := utils.ConsumeRawBody(httpRes)
437437
if err != nil {

docs/models/components/chat.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ A historical representation of a series of chat messages a user had with Glean A
55

66
## Fields
77

8-
| Field | Type | Required | Description | Example |
9-
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
10-
| `ID` | **string* | :heavy_minus_sign: | The opaque id of the Chat. | |
11-
| `CreateTime` | **int64* | :heavy_minus_sign: | Server Unix timestamp of the creation time (in seconds since epoch UTC). | |
12-
| `CreatedBy` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
13-
| `UpdateTime` | **int64* | :heavy_minus_sign: | Server Unix timestamp of the update time (in seconds since epoch UTC). | |
14-
| `Name` | **string* | :heavy_minus_sign: | The name of the Chat. | |
15-
| `ApplicationID` | **string* | :heavy_minus_sign: | The ID of the AI App that this Chat is associated to. | |
16-
| `ApplicationName` | **string* | :heavy_minus_sign: | The display name of the AI App that this Chat is associated to. | |
17-
| `Icon` | [*components.IconConfig](../../models/components/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
18-
| `Messages` | [][components.ChatMessage](../../models/components/chatmessage.md) | :heavy_minus_sign: | The chat messages within a Chat. | |
8+
| Field | Type | Required | Description | Example |
9+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
10+
| `ID` | **string* | :heavy_minus_sign: | The opaque id of the Chat. | |
11+
| `CreateTime` | **int64* | :heavy_minus_sign: | Server Unix timestamp of the creation time (in seconds since epoch UTC). | |
12+
| `CreatedBy` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
13+
| `UpdateTime` | **int64* | :heavy_minus_sign: | Server Unix timestamp of the update time (in seconds since epoch UTC). | |
14+
| `Name` | **string* | :heavy_minus_sign: | The name of the Chat. | |
15+
| `ApplicationID` | **string* | :heavy_minus_sign: | The ID of the AI App that this Chat is associated to. | |
16+
| `ApplicationName` | **string* | :heavy_minus_sign: | The display name of the AI App that this Chat is associated to. | |
17+
| `Icon` | [*components.IconConfig](../../models/components/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
18+
| `Permissions` | [*components.ObjectPermissions](../../models/components/objectpermissions.md) | :heavy_minus_sign: | N/A | |
19+
| `Messages` | [][components.ChatMessage](../../models/components/chatmessage.md) | :heavy_minus_sign: | The chat messages within a Chat. | |
20+
| `Roles` | [][components.UserRoleSpecification](../../models/components/userrolespecification.md) | :heavy_minus_sign: | A list of roles for this Chat. | |

0 commit comments

Comments
 (0)