Skip to content

Commit 4d8729a

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 4d8729a

File tree

746 files changed

+34552
-30915
lines changed

Some content is hidden

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

746 files changed

+34552
-30915
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: 76 additions & 54 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 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.9.0
2829
additionalDependencies: {}
2930
allowUnknownFieldsInWeakUnions: false
3031
baseErrorName: GleanError
@@ -44,7 +45,9 @@ go:
4445
maxMethodParams: 4
4546
methodArguments: require-security-and-request
4647
modulePath: ""
48+
nullableOptionalWrapper: false
4749
outputModelSuffix: output
4850
packageName: github.com/gleanwork/api-client-go
51+
respectRequiredFields: false
4952
responseFormat: envelope-http
5053
sdkPackageName: ""

.speakeasy/glean-merged-spec.yaml

Lines changed: 165 additions & 9 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.617.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:8f18d79a0a7d8f51de7edd5bc8ca3ccc569b81832ffc44ce95a27a12e67b9b7d
6-
sourceBlobDigest: sha256:bb3e5a453f03cbdecf3fb3925768ef4cb0b3119083d9d36c341e1ecd721cde8b
5+
sourceRevisionDigest: sha256:24d1af2d831ddf56ce73f9ddb85cd6ac6291947f83c40280c2782c23198b768e
6+
sourceBlobDigest: sha256:636b9cc0a1cb2884315f6c282b3b59e2ab669a9676ab1bad87198681760faf08
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:24d1af2d831ddf56ce73f9ddb85cd6ac6291947f83c40280c2782c23198b768e
22+
sourceBlobDigest: sha256:636b9cc0a1cb2884315f6c282b3b59e2ab669a9676ab1bad87198681760faf08
2323
codeSamplesNamespace: glean-api-specs-go-code-samples
24-
codeSamplesRevisionDigest: sha256:42289a29033aee9962bd47e72e89163ac9b44b5b4e12f708421e8bff819d0c28
24+
codeSamplesRevisionDigest: sha256:33e20c4029dc8d8257f4e629353e728c0b9fb4fc4621ab2da7f278413c8cea24
2525
petstore:
2626
source: petstore-oas
2727
sourceNamespace: petstore-oas

README.md

Lines changed: 122 additions & 124 deletions
Large diffs are not rendered by default.

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 19:40:46
194+
### Changes
195+
Based on:
196+
- OpenAPI Doc
197+
- Speakeasy CLI 1.617.1 (2.701.8) https://github.com/speakeasy-api/speakeasy
198+
### Generated
199+
- [go v0.9.0] .
200+
### Releases
201+
- [Go v0.9.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.9.0 - .

USAGE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ 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{
26-
Text: apiclientgo.String("What are the company holidays this year?"),
25+
Text: apiclientgo.Pointer("What are the company holidays this year?"),
2726
},
2827
},
2928
},
@@ -60,10 +59,9 @@ 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{
66-
Text: apiclientgo.String("What are the company holidays this year?"),
64+
Text: apiclientgo.Pointer("What are the company holidays this year?"),
6765
},
6866
},
6967
},

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)