diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 6dc39eed..3277a3d8 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 9d90eb9e-33f8-4170-8944-988f4000aad0
management:
- docChecksum: 34cd4112e4c32279bed69c71c169040f
+ docChecksum: 2776dd8ef73db4e527075083ffe5f133
docVersion: 0.9.0
- speakeasyVersion: 1.757.1
- generationVersion: 2.866.2
- releaseVersion: 0.11.34
- configChecksum: 8539660793fbbf721e207604485e6f0b
+ speakeasyVersion: 1.759.1
+ generationVersion: 2.869.10
+ releaseVersion: 0.11.35
+ configChecksum: b3c3374686d97bf123c990e3b6cb0111
repoURL: https://github.com/gleanwork/api-client-go.git
installationURL: https://github.com/gleanwork/api-client-go
persistentEdits:
- generation_id: 417a50a5-f828-472a-8457-b185ea81458e
- pristine_commit_hash: 67b67b08e0a64a4b868a12bb70d1e53c685705ce
- pristine_tree_hash: 99fab20752513d7df4aa6220436816881ee623ff
+ generation_id: 292e0270-cca6-4406-a4bf-14d95ccc556d
+ pristine_commit_hash: 47c7311975c60ca28fc7d85ddb9e4598838e5494
+ pristine_tree_hash: e8f568fc8957e7d29890d190f0c2d01449ff7159
features:
go:
additionalDependencies: 0.1.0
@@ -442,8 +442,8 @@ trackedFiles:
pristine_git_object: 021175d3911ff3c4cf4a6abccbf24759e4b6a232
docs/models/components/chatmessagecitation.md:
id: f779f459e302
- last_write_checksum: sha1:60bfa572819116ea31318866f051c4fcf5e202de
- pristine_git_object: d02a6f3b1e255506bb6d678a9b6a86709288cdfc
+ last_write_checksum: sha1:ee149afa4c48eadfa593adcfd274fa407969d58e
+ pristine_git_object: 92ada0464db3a2c9c8f77c596549e9b0d0d3c263
docs/models/components/chatmessagefragment.md:
id: 3a80e2474b95
last_write_checksum: sha1:4b786bb225b283f2897298f5d0de0b0792376e51
@@ -1486,8 +1486,8 @@ trackedFiles:
pristine_git_object: 1c56c012d3fec5d103299ec2cfa554ccf8358d7d
docs/models/components/insightsoverviewresponse.md:
id: e490ed19892d
- last_write_checksum: sha1:38e127d6e64a29dae1cfaad74cd188f3faefebaa
- pristine_git_object: b3110d46e43e6241c235ea1b10fe5ffee058116d
+ last_write_checksum: sha1:3dc72f0fa89d6c5847fb430ea755bfc6e8f37962
+ pristine_git_object: bb4cbf281fa75c1d19eff2c4ef5f84993c8280d4
docs/models/components/insightsrequest.md:
id: cf96ae543699
last_write_checksum: sha1:f76505c6ea86309e8dc7798b77307ef90c208d49
@@ -3286,8 +3286,8 @@ trackedFiles:
pristine_git_object: 87f13ac7b1bb396e778a90fbb59d605bd00a9276
glean.go:
id: f5ed099b8e85
- last_write_checksum: sha1:44eb224439622a2891facc4c45d532be328f1c08
- pristine_git_object: 00fde73014ce6213d383518f61d0d8d40967b226
+ last_write_checksum: sha1:3b7ea616254498fc50bd276586538832aedc3cdf
+ pristine_git_object: ff289f3a24bd5c475c504833a01c75534e24bdf2
go.mod:
id: c47645c391ad
last_write_checksum: sha1:86e3d2575dc26780579383eddbc5be5adbd21501
@@ -3630,8 +3630,8 @@ trackedFiles:
pristine_git_object: 886427a4dd086dfa5aa122c6d612348b3842656e
models/components/chatmessagecitation.go:
id: ed01eb6fe323
- last_write_checksum: sha1:94bea6a05c4084e3e5cb3840d01e3d5595513f30
- pristine_git_object: ce70a3c90a511664b4458bb8fe93be39945fd86e
+ last_write_checksum: sha1:3b12cd0eecd1b84c90f9bece7936688a1b7ed200
+ pristine_git_object: cb73fb2f22e26699d87853f3bf5b0ad174198e92
models/components/chatmessagefragment.go:
id: 8b451ad53a7d
last_write_checksum: sha1:0d8fbc173b3d0e0ca97ded6593a7e966af939fa1
@@ -4470,8 +4470,8 @@ trackedFiles:
pristine_git_object: b2ff4ceeed20d491ef94779a586f62759397c3fa
models/components/insightsoverviewresponse.go:
id: ac8d586dce6f
- last_write_checksum: sha1:98904a987980934acf5a3e88ccffc1e76568025f
- pristine_git_object: 8eba4094a43060e2adfb16fdb6ade85a3fbe8f45
+ last_write_checksum: sha1:d6d9db3d992467c8be552dec716e1ccd974cea7e
+ pristine_git_object: c968c42207bf93291083fb339e3d1d7943911ff5
models/components/insightsrequest.go:
id: 864d5ff0b637
last_write_checksum: sha1:10c2b3d25ce68b783f5981548a0e21aa0a43a908
@@ -5742,8 +5742,8 @@ trackedFiles:
pristine_git_object: 6d9cbca42012c2760de3ecaf4f569c53d32197da
tests/messages_test.go:
id: 3433c956b7a3
- last_write_checksum: sha1:1cd91a5da0532448c95e970af3d91952394a6cb9
- pristine_git_object: f927c36464e8eb191ae67582831be04e3db1e5dc
+ last_write_checksum: sha1:352ecfa3a01795bbe7fad9b0202c4ccaa02448c3
+ pristine_git_object: 64ef64fe1c0ccbc223987d87ddddf3d6e2de7799
tests/mockserver/.gitignore:
last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4
tests/mockserver/Dockerfile:
@@ -6079,7 +6079,7 @@ trackedFiles:
tests/mockserver/internal/sdk/models/components/chatmessage.go:
last_write_checksum: sha1:b813b4301b77532bbbc60fa85f3b44e21d7a740d
tests/mockserver/internal/sdk/models/components/chatmessagecitation.go:
- last_write_checksum: sha1:c6225814e79eac17f90ebb8d86a98bb0038c20b6
+ last_write_checksum: sha1:f5b371efdd863a1d6d2f83041371ceb7601bc07f
tests/mockserver/internal/sdk/models/components/chatmessagefragment.go:
last_write_checksum: sha1:1834d9a43544e8cca44d147a1e2f99e120fb09ae
tests/mockserver/internal/sdk/models/components/chatmetadata.go:
@@ -6499,7 +6499,7 @@ trackedFiles:
tests/mockserver/internal/sdk/models/components/insightsoverviewrequest.go:
last_write_checksum: sha1:f41a223c0da4e4edee140cdd8a7697a45969a239
tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go:
- last_write_checksum: sha1:6b78d9baa749aa3e03c2e20964a9a5ddcaab97ad
+ last_write_checksum: sha1:926270f59a7276459f6efea061ad9d0a5fd0d857
tests/mockserver/internal/sdk/models/components/insightsrequest.go:
last_write_checksum: sha1:f8bb4f19bca0be78fec51bf4d8e90d29ad25b940
tests/mockserver/internal/sdk/models/components/insightsresponse.go:
@@ -7138,8 +7138,8 @@ trackedFiles:
pristine_git_object: 8276fc3a8313ccbdb884ac378657dea8e7a24776
tests/summarize_test.go:
id: 1b63b0a16e69
- last_write_checksum: sha1:363bed5255b9e55cdb58a8d97fb8f2cc399d3877
- pristine_git_object: cf370440c325e4da2b01e20af977447f35e35943
+ last_write_checksum: sha1:64d76c70f34f3c7ca73608fb80648e23288cc566
+ pristine_git_object: 2e8b5f832540cb42eff176dd3be06fe1d2684913
tests/testclient.go:
id: 78d36c6e169c
last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8
@@ -8105,6 +8105,7 @@ generatedTests:
checkdatasourceauth: "2026-02-19T15:51:40Z"
getDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z"
updateDatasourceInstanceConfiguration: "2026-03-09T18:37:01Z"
+releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Chat.Create()`: \n * `request.ChatRequest.Messages[].Citations[].SourceCustomEntity` **Added**\n * `response.Messages[].Citations[].SourceCustomEntity` **Added**\n* `Glean.Client.Chat.Retrieve()`: `response.ChatResult.Chat.Messages[].Citations[].SourceCustomEntity` **Added**\n* `Glean.Client.Chat.CreateStream()`: \n * `request.ChatRequest.Messages[].Citations[].SourceCustomEntity` **Added**\n* `Glean.Client.Insights.Retrieve()`: `response.OverviewResponse` **Changed**\n"
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index e2ef2e15..ee201af8 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -32,7 +32,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
go:
- version: 0.11.34
+ version: 0.11.35
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
baseErrorName: GleanError
diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml
index 41e4d268..c45f5578 100644
--- a/.speakeasy/glean-merged-spec.yaml
+++ b/.speakeasy/glean-merged-spec.yaml
@@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
- x-source-commit-sha: b82cd7608fd801b317cf9df15ebfb73f83d9febc
+ x-source-commit-sha: 9888a84ed9bb49d8cbe82370bdb9f6aa9de5b6d9
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.
@@ -22,7 +22,7 @@ info:
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
x-logo:
url: https://app.glean.com/images/glean-text2.svg
- x-open-api-commit-sha: 0b2689b6010d15de5b45dc85490080ea14936ea6
+ x-open-api-commit-sha: 8b3cca08fe0bce0821b7ae84c38c762412fc3681
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
@@ -7881,6 +7881,8 @@ components:
$ref: "#/components/schemas/ChatFile"
sourcePerson:
$ref: "#/components/schemas/Person"
+ sourceCustomEntity:
+ $ref: "#/components/schemas/CustomEntity"
referenceRanges:
description: Each reference range and its corresponding snippets
type: array
@@ -9071,6 +9073,15 @@ components:
$ref: "#/components/schemas/InsightsSearchSummary"
chatSummary:
$ref: "#/components/schemas/InsightsChatSummary"
+ searchActiveUsers:
+ $ref: "#/components/schemas/CurrentActiveUsers"
+ description: Search-specific active user counts for the specified departments.
+ assistantActiveUsers:
+ $ref: "#/components/schemas/CurrentActiveUsers"
+ description: Assistant-specific active user counts for the specified departments.
+ agentsActiveUsers:
+ $ref: "#/components/schemas/CurrentActiveUsers"
+ description: Agents-specific active user counts for the specified departments.
extensionSummary:
$ref: "#/components/schemas/CurrentActiveUsers"
ugcSummary:
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index b3f82b1c..14dda3d6 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,9 +1,9 @@
-speakeasyVersion: 1.757.1
+speakeasyVersion: 1.759.1
sources:
Glean API:
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f
- sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b
+ sourceRevisionDigest: sha256:2caf61caba9b98a6b5744adee63f1f03921d422e3c7148a70a14f559e1aed6a5
+ sourceBlobDigest: sha256:e64eea18d67d9df7d3bcebdc09eae30e5bb1b3cf573ca3985cba3989513498a9
tags:
- latest
petstore-oas:
@@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
- sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f
- sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b
+ sourceRevisionDigest: sha256:2caf61caba9b98a6b5744adee63f1f03921d422e3c7148a70a14f559e1aed6a5
+ sourceBlobDigest: sha256:e64eea18d67d9df7d3bcebdc09eae30e5bb1b3cf573ca3985cba3989513498a9
codeSamplesNamespace: glean-api-specs-go-code-samples
- codeSamplesRevisionDigest: sha256:966d01de0104b8115d550cd15b6f8d3046cc912bba6ac2e78e67aaa66f209a40
+ codeSamplesRevisionDigest: sha256:3f02b1096e3a6e3951183cb447b2c7325e36f64b195f344eb468cca2b874cb8c
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
diff --git a/RELEASES.md b/RELEASES.md
index 250b3468..9f990f78 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -638,4 +638,14 @@ Based on:
### Generated
- [go v0.11.34] .
### Releases
-- [Go v0.11.34] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.34 - .
\ No newline at end of file
+- [Go v0.11.34] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.34 - .
+
+## 2026-03-23 01:54:14
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.759.1 (2.869.10) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [go v0.11.35] .
+### Releases
+- [Go v0.11.35] https://github.com/gleanwork/api-client-go/releases/tag/v0.11.35 - .
\ No newline at end of file
diff --git a/docs/models/components/chatmessagecitation.md b/docs/models/components/chatmessagecitation.md
index d02a6f3b..92ada046 100644
--- a/docs/models/components/chatmessagecitation.md
+++ b/docs/models/components/chatmessagecitation.md
@@ -11,4 +11,5 @@ Information about the source for a ChatMessage.
| `SourceDocument` | [*components.Document](../../models/components/document.md) | :heavy_minus_sign: | N/A | |
| `SourceFile` | [*components.ChatFile](../../models/components/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | |
| `SourcePerson` | [*components.Person](../../models/components/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} |
+| `SourceCustomEntity` | [*components.CustomEntity](../../models/components/customentity.md) | :heavy_minus_sign: | N/A | |
| `ReferenceRanges` | [][components.ReferenceRange](../../models/components/referencerange.md) | :heavy_minus_sign: | Each reference range and its corresponding snippets | |
\ No newline at end of file
diff --git a/docs/models/components/insightsoverviewresponse.md b/docs/models/components/insightsoverviewresponse.md
index b3110d46..bb4cbf28 100644
--- a/docs/models/components/insightsoverviewresponse.md
+++ b/docs/models/components/insightsoverviewresponse.md
@@ -12,6 +12,9 @@
| `TotalSignups` | `*int64` | :heavy_minus_sign: | Number of current signed up employees in the specified departments, according to the Org Chart. |
| `SearchSummary` | [*components.InsightsSearchSummary](../../models/components/insightssearchsummary.md) | :heavy_minus_sign: | N/A |
| `ChatSummary` | [*components.InsightsChatSummary](../../models/components/insightschatsummary.md) | :heavy_minus_sign: | N/A |
+| `SearchActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
+| `AssistantActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
+| `AgentsActiveUsers` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `ExtensionSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `UgcSummary` | [*components.CurrentActiveUsers](../../models/components/currentactiveusers.md) | :heavy_minus_sign: | N/A |
| `LastUpdatedTs` | `*int64` | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. |
diff --git a/glean.go b/glean.go
index 00fde730..ff289f3a 100644
--- a/glean.go
+++ b/glean.go
@@ -2,7 +2,7 @@
package apiclientgo
-// Generated from OpenAPI doc version 0.9.0 and generator version 2.866.2
+// Generated from OpenAPI doc version 0.9.0 and generator version 2.869.10
import (
"context"
@@ -161,9 +161,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.11.34",
+ SDKVersion: "0.11.35",
sdkConfiguration: config.SDKConfiguration{
- UserAgent: "speakeasy-sdk/go 0.11.34 2.866.2 0.9.0 github.com/gleanwork/api-client-go",
+ UserAgent: "speakeasy-sdk/go 0.11.35 2.869.10 0.9.0 github.com/gleanwork/api-client-go",
ServerList: ServerList,
ServerVariables: []map[string]string{
{
diff --git a/models/components/chatmessagecitation.go b/models/components/chatmessagecitation.go
index ce70a3c9..cb73fb2f 100644
--- a/models/components/chatmessagecitation.go
+++ b/models/components/chatmessagecitation.go
@@ -8,8 +8,9 @@ type ChatMessageCitation struct {
TrackingToken *string `json:"trackingToken,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
// Structure for file uploaded by a user for Chat.
- SourceFile *ChatFile `json:"sourceFile,omitempty"`
- SourcePerson *Person `json:"sourcePerson,omitempty"`
+ SourceFile *ChatFile `json:"sourceFile,omitempty"`
+ SourcePerson *Person `json:"sourcePerson,omitempty"`
+ SourceCustomEntity *CustomEntity `json:"sourceCustomEntity,omitempty"`
// Each reference range and its corresponding snippets
ReferenceRanges []ReferenceRange `json:"referenceRanges,omitempty"`
}
@@ -42,6 +43,13 @@ func (c *ChatMessageCitation) GetSourcePerson() *Person {
return c.SourcePerson
}
+func (c *ChatMessageCitation) GetSourceCustomEntity() *CustomEntity {
+ if c == nil {
+ return nil
+ }
+ return c.SourceCustomEntity
+}
+
func (c *ChatMessageCitation) GetReferenceRanges() []ReferenceRange {
if c == nil {
return nil
diff --git a/models/components/insightsoverviewresponse.go b/models/components/insightsoverviewresponse.go
index 8eba4094..c968c422 100644
--- a/models/components/insightsoverviewresponse.go
+++ b/models/components/insightsoverviewresponse.go
@@ -12,11 +12,14 @@ type InsightsOverviewResponse struct {
// Number of current employees in the specified departments, according to the Org Chart.
EmployeeCount *int64 `json:"employeeCount,omitempty"`
// Number of current signed up employees in the specified departments, according to the Org Chart.
- TotalSignups *int64 `json:"totalSignups,omitempty"`
- SearchSummary *InsightsSearchSummary `json:"searchSummary,omitempty"`
- ChatSummary *InsightsChatSummary `json:"chatSummary,omitempty"`
- ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"`
- UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"`
+ TotalSignups *int64 `json:"totalSignups,omitempty"`
+ SearchSummary *InsightsSearchSummary `json:"searchSummary,omitempty"`
+ ChatSummary *InsightsChatSummary `json:"chatSummary,omitempty"`
+ SearchActiveUsers *CurrentActiveUsers `json:"searchActiveUsers,omitempty"`
+ AssistantActiveUsers *CurrentActiveUsers `json:"assistantActiveUsers,omitempty"`
+ AgentsActiveUsers *CurrentActiveUsers `json:"agentsActiveUsers,omitempty"`
+ ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"`
+ UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"`
// Unix timestamp of the last update for the insights data in the response.
LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"`
// Search session satisfaction rate, over the specified time period in the specified departments.
@@ -93,6 +96,27 @@ func (i *InsightsOverviewResponse) GetChatSummary() *InsightsChatSummary {
return i.ChatSummary
}
+func (i *InsightsOverviewResponse) GetSearchActiveUsers() *CurrentActiveUsers {
+ if i == nil {
+ return nil
+ }
+ return i.SearchActiveUsers
+}
+
+func (i *InsightsOverviewResponse) GetAssistantActiveUsers() *CurrentActiveUsers {
+ if i == nil {
+ return nil
+ }
+ return i.AssistantActiveUsers
+}
+
+func (i *InsightsOverviewResponse) GetAgentsActiveUsers() *CurrentActiveUsers {
+ if i == nil {
+ return nil
+ }
+ return i.AgentsActiveUsers
+}
+
func (i *InsightsOverviewResponse) GetExtensionSummary() *CurrentActiveUsers {
if i == nil {
return nil
diff --git a/tests/messages_test.go b/tests/messages_test.go
index f927c364..64ef64fe 100644
--- a/tests/messages_test.go
+++ b/tests/messages_test.go
@@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) {
IDType: components.IDTypeConversationID,
ID: "",
TimestampMillis: apiclientgo.Pointer[int64](558834),
- Datasource: components.DatasourceSlack,
+ Datasource: components.DatasourceFacebookworkplace,
}, nil)
require.NoError(t, err)
assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode)
diff --git a/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go b/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go
index fd3e6a32..ba07ad7a 100644
--- a/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go
+++ b/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go
@@ -8,8 +8,9 @@ type ChatMessageCitation struct {
TrackingToken *string `json:"trackingToken,omitempty"`
SourceDocument *Document `json:"sourceDocument,omitempty"`
// Structure for file uploaded by a user for Chat.
- SourceFile *ChatFile `json:"sourceFile,omitempty"`
- SourcePerson *Person `json:"sourcePerson,omitempty"`
+ SourceFile *ChatFile `json:"sourceFile,omitempty"`
+ SourcePerson *Person `json:"sourcePerson,omitempty"`
+ SourceCustomEntity *CustomEntity `json:"sourceCustomEntity,omitempty"`
// Each reference range and its corresponding snippets
ReferenceRanges []ReferenceRange `json:"referenceRanges,omitempty"`
}
@@ -42,6 +43,13 @@ func (o *ChatMessageCitation) GetSourcePerson() *Person {
return o.SourcePerson
}
+func (o *ChatMessageCitation) GetSourceCustomEntity() *CustomEntity {
+ if o == nil {
+ return nil
+ }
+ return o.SourceCustomEntity
+}
+
func (o *ChatMessageCitation) GetReferenceRanges() []ReferenceRange {
if o == nil {
return nil
diff --git a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
index 96074649..4350ae6c 100644
--- a/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
+++ b/tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go
@@ -12,11 +12,14 @@ type InsightsOverviewResponse struct {
// Number of current employees in the specified departments, according to the Org Chart.
EmployeeCount *int64 `json:"employeeCount,omitempty"`
// Number of current signed up employees in the specified departments, according to the Org Chart.
- TotalSignups *int64 `json:"totalSignups,omitempty"`
- SearchSummary *InsightsSearchSummary `json:"searchSummary,omitempty"`
- ChatSummary *InsightsChatSummary `json:"chatSummary,omitempty"`
- ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"`
- UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"`
+ TotalSignups *int64 `json:"totalSignups,omitempty"`
+ SearchSummary *InsightsSearchSummary `json:"searchSummary,omitempty"`
+ ChatSummary *InsightsChatSummary `json:"chatSummary,omitempty"`
+ SearchActiveUsers *CurrentActiveUsers `json:"searchActiveUsers,omitempty"`
+ AssistantActiveUsers *CurrentActiveUsers `json:"assistantActiveUsers,omitempty"`
+ AgentsActiveUsers *CurrentActiveUsers `json:"agentsActiveUsers,omitempty"`
+ ExtensionSummary *CurrentActiveUsers `json:"extensionSummary,omitempty"`
+ UgcSummary *CurrentActiveUsers `json:"ugcSummary,omitempty"`
// Unix timestamp of the last update for the insights data in the response.
LastUpdatedTs *int64 `json:"lastUpdatedTs,omitempty"`
// Search session satisfaction rate, over the specified time period in the specified departments.
@@ -93,6 +96,27 @@ func (o *InsightsOverviewResponse) GetChatSummary() *InsightsChatSummary {
return o.ChatSummary
}
+func (o *InsightsOverviewResponse) GetSearchActiveUsers() *CurrentActiveUsers {
+ if o == nil {
+ return nil
+ }
+ return o.SearchActiveUsers
+}
+
+func (o *InsightsOverviewResponse) GetAssistantActiveUsers() *CurrentActiveUsers {
+ if o == nil {
+ return nil
+ }
+ return o.AssistantActiveUsers
+}
+
+func (o *InsightsOverviewResponse) GetAgentsActiveUsers() *CurrentActiveUsers {
+ if o == nil {
+ return nil
+ }
+ return o.AgentsActiveUsers
+}
+
func (o *InsightsOverviewResponse) GetExtensionSummary() *CurrentActiveUsers {
if o == nil {
return nil
diff --git a/tests/summarize_test.go b/tests/summarize_test.go
index cf370440..2e8b5f83 100644
--- a/tests/summarize_test.go
+++ b/tests/summarize_test.go
@@ -27,13 +27,14 @@ func TestSummarize_Summarize(t *testing.T) {
DocumentSpecs: []components.DocumentSpecUnion{
components.CreateDocumentSpecUnionDocumentSpec4(
components.DocumentSpec4{
- UgcType: components.DocumentSpecUgcType2Announcements,
+ UgcType: components.DocumentSpecUgcType2Collections,
UgcID: "",
},
),
- components.CreateDocumentSpecUnionDocumentSpec1(
- components.DocumentSpec1{
- URL: "https://potable-pine.org",
+ components.CreateDocumentSpecUnionDocumentSpec3(
+ components.DocumentSpec3{
+ UgcType: components.DocumentSpecUgcType1Answers,
+ ContentID: 823890,
},
),
},