From 622f012bd6cc9961b45d7f70f7287e03030c0a6c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 22 Mar 2026 02:28:28 +0000 Subject: [PATCH 1/2] ## Python SDK Changes: * `glean.client.chat.create()`: * `request.messages[].citations[].source_custom_entity` **Added** * `response.messages[].citations[].source_custom_entity` **Added** * `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_custom_entity` **Added** * `glean.client.chat.create_stream()`: * `request.messages[].citations[].source_custom_entity` **Added** * `glean.client.insights.retrieve()`: `response.overview_response` **Changed** --- .speakeasy/gen.lock | 51 ++++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 15 +++++- .speakeasy/workflow.lock | 12 ++--- RELEASES.md | 12 ++++- docs/models/chatmessagecitation.md | 1 + docs/models/insightsoverviewresponse.md | 3 ++ pyproject.toml | 2 +- src/glean/api_client/_version.py | 6 +-- .../api_client/models/chatmessagecitation.py | 7 +++ .../models/insightsoverviewresponse.py | 18 +++++++ .../handler/pathpostrestapiv1getchat.go | 4 +- .../models/components/chatmessagecitation.go | 12 ++++- .../components/insightsoverviewresponse.go | 34 +++++++++++-- tests/test_summarize.py | 6 +-- 15 files changed, 134 insertions(+), 51 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 689fd2de..ea9d7b48 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 34cd4112e4c32279bed69c71c169040f + docChecksum: 11b995ea9de2e5d0d16022982d8132bd docVersion: 0.9.0 - speakeasyVersion: 1.757.1 - generationVersion: 2.866.2 - releaseVersion: 0.12.14 - configChecksum: 9101adbd96ff3027e03617cf0da0c24c + speakeasyVersion: 1.759.0 + generationVersion: 2.869.3 + releaseVersion: 0.12.15 + configChecksum: 858a6f3e404133b01ece3499382906d4 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: c5b12447-adb2-4889-8afa-21659c2165ea - pristine_commit_hash: 1e2decd2b1ff4202b2d933dc682c3171bda7049a - pristine_tree_hash: 6a647f2d8f18d407db515f9a0bc7c8b25aad15c9 + generation_id: 32a7c45d-9dfe-4694-a7a2-47882a763b50 + pristine_commit_hash: 1bc10082ed8fadb6ba1c387c35b925eabd154160 + pristine_tree_hash: 9d4ac3f1bca41fe3eaa09291c9a254b99396c5da features: python: additionalDependencies: 1.0.0 @@ -407,8 +407,8 @@ trackedFiles: pristine_git_object: 7134cbbbb0e874365e08c98808b1fbba6666cd59 docs/models/chatmessagecitation.md: id: 081d0d2ead7a - last_write_checksum: sha1:d31f16dbc8f428b3013a6f1cb90b961ac354f8dc - pristine_git_object: 976651ca2b66662bfb9186301b7ead0f8f405720 + last_write_checksum: sha1:9c7ea402a970b8114589686c1c43730daab4786f + pristine_git_object: 842f2730c228c5816c872437f067f59fddc6023c docs/models/chatmessagefragment.md: id: 9f4738df6b1b last_write_checksum: sha1:c1579999ebb97ae544c1dbc1c9df2f5cfd9d0e65 @@ -1615,8 +1615,8 @@ trackedFiles: pristine_git_object: 90e12f31c489fd3953b486a9ba20043f50362bc5 docs/models/insightsoverviewresponse.md: id: c980a8e3a69e - last_write_checksum: sha1:a897dd65b610928d7980734f630b0e1f8bd3b400 - pristine_git_object: 76c9c9a8334d732dd6fb8e01a5aeeeb448b93547 + last_write_checksum: sha1:401a36a3c734feb582bb13208d630d3c1895f3c1 + pristine_git_object: 13a98a4c2c842d75c5769db52c11cf8cb04b523c docs/models/insightsrequest.md: id: 13eaa34edff4 last_write_checksum: sha1:4e221930c7d01a4a6756554a7af5fb4025821778 @@ -2771,8 +2771,8 @@ trackedFiles: pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:18a372ed7a9fcaba4a08e62b84063ca1704ba7fd - pristine_git_object: aea68fdb35c403f287520b73de0f161384a3b72a + last_write_checksum: sha1:8630defbbda3959b65cdb3fcbc1b7fb9e70d80f5 + pristine_git_object: 264116a3253bf2ae68f18f44a47c9c7e4963657b scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -2799,8 +2799,8 @@ trackedFiles: pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:f531c1b9c58d5b8d58fa4569ea7c0733c97914d3 - pristine_git_object: f186e92857305494dc28675dddba067eb67606d5 + last_write_checksum: sha1:bc4633316f5eafc3fe015eda398f644819940756 + pristine_git_object: 3fcfda9ce3af900f6a962a5233aede9bb04eec01 src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c @@ -3195,8 +3195,8 @@ trackedFiles: pristine_git_object: 5c636cbb81c9c203f4b12047eec4d7c54fe8e6f2 src/glean/api_client/models/chatmessagecitation.py: id: dae0d568e81c - last_write_checksum: sha1:e280bf3e6243e183e3afb454cd06c8e7c4b42df4 - pristine_git_object: 5ed24dfff3f3cc7949e7713f61af56f5d4ff00a3 + last_write_checksum: sha1:a785f5a671ee22a96be5feaf53f745ec571e3415 + pristine_git_object: e1e0b0b463b7dfdfeb2bd765cd67d0b57ea7caf8 src/glean/api_client/models/chatmessagefragment.py: id: 86344b2c1c3d last_write_checksum: sha1:2392b86cce1778d331813a1355430f2665ab9ab2 @@ -4199,8 +4199,8 @@ trackedFiles: pristine_git_object: 5be6e4bb1a8d0f3625ca6ba7fcb6267f6b42d9e5 src/glean/api_client/models/insightsoverviewresponse.py: id: 9f278319d18c - last_write_checksum: sha1:061217b97153e2d043e85d3fe7a2adae8779a0bf - pristine_git_object: 874941a4adbbaab147df806e91818583f04a0ba3 + last_write_checksum: sha1:c03228439f793e5145f2414d5c25720410183a8b + pristine_git_object: 23c45162da573641d191560050eacbfbfb773518 src/glean/api_client/models/insightsrequest.py: id: 72fbc9d1c47b last_write_checksum: sha1:ba897351884e324f6b7005cbb8ea6893186d1448 @@ -5250,7 +5250,7 @@ trackedFiles: tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go: last_write_checksum: sha1:80bc08894cebfd78f82d3d80f93fd85a11b55d45 tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: - last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 + last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go: @@ -5436,7 +5436,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: @@ -5856,7 +5856,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: @@ -6591,8 +6591,8 @@ trackedFiles: pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:0d48676ceee44c83f3d45fe057aad051747fe161 - pristine_git_object: 5d5ff652e42e7799c18edd2064d53842ef85c577 + last_write_checksum: sha1:71c419bc1a3c07cc4fd6a509adb08f3aca93230f + pristine_git_object: 5917ddcb71c5d7818d0f075ade899d7908897c28 tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995 @@ -7520,6 +7520,7 @@ generatedTests: checkdatasourceauth: "2026-02-19T15:48:52Z" getDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z" updateDatasourceInstanceConfiguration: "2026-03-09T18:34:29Z" +releaseNotes: "## Python SDK Changes:\n* `glean.client.chat.create()`: \n * `request.messages[].citations[].source_custom_entity` **Added**\n * `response.messages[].citations[].source_custom_entity` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_custom_entity` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].citations[].source_custom_entity` **Added**\n* `glean.client.insights.retrieve()`: `response.overview_response` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ffc2e124..b13233f0 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.12.14 + version: 0.12.15 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 41e4d268..ffa3d1d6 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: 797f674a2b57a6822c26cc194a8d32f63ca07772 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: fb1ea6d15543bc76391e2796dc62435dcddc598d 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 fc5d67e4..95a0f23e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.757.1 +speakeasyVersion: 1.759.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f - sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b + sourceRevisionDigest: sha256:53b31eac2ec62f25dbbd07a30158207961b8f5a44db5f8b0275bbe650786d620 + sourceBlobDigest: sha256:f67efda4716029385175a7df3e13322f9e46c7972af157231bd89964798c1a3b tags: - latest Glean Client API: @@ -16,10 +16,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:cd1b70d6a8034c274c2032fa245dc1f410d81cba955c6954a85f47f8e64d6f2f - sourceBlobDigest: sha256:82d37f119622340b0c9d7352ac8a90c2df320b24c8e49c396d6531f9fe2b890b + sourceRevisionDigest: sha256:53b31eac2ec62f25dbbd07a30158207961b8f5a44db5f8b0275bbe650786d620 + sourceBlobDigest: sha256:f67efda4716029385175a7df3e13322f9e46c7972af157231bd89964798c1a3b codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:7a291d2a4b8025032ea44dba8d459ea5bf19f8bb4d96efb84902d9ae31053a3d + codeSamplesRevisionDigest: sha256:7ddd0cc97359d3cb6df96bfd4697e2dda6b4faa4610550da52422caeb57b01dc workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 49e22751..d0dd1470 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -648,4 +648,14 @@ Based on: ### Generated - [python v0.12.14] . ### Releases -- [PyPI v0.12.14] https://pypi.org/project/glean-api-client/0.12.14 - . \ No newline at end of file +- [PyPI v0.12.14] https://pypi.org/project/glean-api-client/0.12.14 - . + +## 2026-03-22 02:25:30 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.759.0 (2.869.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.12.15] . +### Releases +- [PyPI v0.12.15] https://pypi.org/project/glean-api-client/0.12.15 - . \ No newline at end of file diff --git a/docs/models/chatmessagecitation.md b/docs/models/chatmessagecitation.md index 976651ca..842f2730 100644 --- a/docs/models/chatmessagecitation.md +++ b/docs/models/chatmessagecitation.md @@ -11,4 +11,5 @@ Information about the source for a ChatMessage. | `source_document` | [Optional[models.Document]](../models/document.md) | :heavy_minus_sign: | N/A | | | `source_file` | [Optional[models.ChatFile]](../models/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | | | `source_person` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {
"name": "George Clooney",
"obfuscatedId": "abc123"
} | +| `source_custom_entity` | [Optional[models.CustomEntity]](../models/customentity.md) | :heavy_minus_sign: | N/A | | | `reference_ranges` | List[[models.ReferenceRange](../models/referencerange.md)] | :heavy_minus_sign: | Each reference range and its corresponding snippets | | \ No newline at end of file diff --git a/docs/models/insightsoverviewresponse.md b/docs/models/insightsoverviewresponse.md index 76c9c9a8..13a98a4c 100644 --- a/docs/models/insightsoverviewresponse.md +++ b/docs/models/insightsoverviewresponse.md @@ -12,6 +12,9 @@ | `total_signups` | *Optional[int]* | :heavy_minus_sign: | Number of current signed up employees in the specified departments, according to the Org Chart. | | `search_summary` | [Optional[models.InsightsSearchSummary]](../models/insightssearchsummary.md) | :heavy_minus_sign: | N/A | | `chat_summary` | [Optional[models.InsightsChatSummary]](../models/insightschatsummary.md) | :heavy_minus_sign: | N/A | +| `search_active_users` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `assistant_active_users` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A | +| `agents_active_users` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A | | `extension_summary` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A | | `ugc_summary` | [Optional[models.CurrentActiveUsers]](../models/currentactiveusers.md) | :heavy_minus_sign: | N/A | | `last_updated_ts` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last update for the insights data in the response. | diff --git a/pyproject.toml b/pyproject.toml index aea68fdb..264116a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.12.14" +version = "0.12.15" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index f186e928..3fcfda9c 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.12.14" +__version__: str = "0.12.15" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.866.2" -__user_agent__: str = "speakeasy-sdk/python 0.12.14 2.866.2 0.9.0 glean-api-client" +__gen_version__: str = "2.869.3" +__user_agent__: str = "speakeasy-sdk/python 0.12.15 2.869.3 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/src/glean/api_client/models/chatmessagecitation.py b/src/glean/api_client/models/chatmessagecitation.py index 5ed24dff..e1e0b0b4 100644 --- a/src/glean/api_client/models/chatmessagecitation.py +++ b/src/glean/api_client/models/chatmessagecitation.py @@ -2,6 +2,7 @@ from __future__ import annotations from .chatfile import ChatFile, ChatFileTypedDict +from .customentity import CustomEntity, CustomEntityTypedDict from .document import Document, DocumentTypedDict from .person import Person, PersonTypedDict from .referencerange import ReferenceRange, ReferenceRangeTypedDict @@ -21,6 +22,7 @@ class ChatMessageCitationTypedDict(TypedDict): source_file: NotRequired[ChatFileTypedDict] r"""Structure for file uploaded by a user for Chat.""" source_person: NotRequired[PersonTypedDict] + source_custom_entity: NotRequired[CustomEntityTypedDict] reference_ranges: NotRequired[List[ReferenceRangeTypedDict]] r"""Each reference range and its corresponding snippets""" @@ -46,6 +48,10 @@ class ChatMessageCitation(BaseModel): None ) + source_custom_entity: Annotated[ + Optional[CustomEntity], pydantic.Field(alias="sourceCustomEntity") + ] = None + reference_ranges: Annotated[ Optional[List[ReferenceRange]], pydantic.Field(alias="referenceRanges") ] = None @@ -59,6 +65,7 @@ def serialize_model(self, handler): "sourceDocument", "sourceFile", "sourcePerson", + "sourceCustomEntity", "referenceRanges", ] ) diff --git a/src/glean/api_client/models/insightsoverviewresponse.py b/src/glean/api_client/models/insightsoverviewresponse.py index 874941a4..23c45162 100644 --- a/src/glean/api_client/models/insightsoverviewresponse.py +++ b/src/glean/api_client/models/insightsoverviewresponse.py @@ -26,6 +26,9 @@ class InsightsOverviewResponseTypedDict(TypedDict): r"""Number of current signed up employees in the specified departments, according to the Org Chart.""" search_summary: NotRequired[InsightsSearchSummaryTypedDict] chat_summary: NotRequired[InsightsChatSummaryTypedDict] + search_active_users: NotRequired[CurrentActiveUsersTypedDict] + assistant_active_users: NotRequired[CurrentActiveUsersTypedDict] + agents_active_users: NotRequired[CurrentActiveUsersTypedDict] extension_summary: NotRequired[CurrentActiveUsersTypedDict] ugc_summary: NotRequired[CurrentActiveUsersTypedDict] last_updated_ts: NotRequired[int] @@ -85,6 +88,18 @@ class InsightsOverviewResponse(BaseModel): Optional[InsightsChatSummary], pydantic.Field(alias="chatSummary") ] = None + search_active_users: Annotated[ + Optional[CurrentActiveUsers], pydantic.Field(alias="searchActiveUsers") + ] = None + + assistant_active_users: Annotated[ + Optional[CurrentActiveUsers], pydantic.Field(alias="assistantActiveUsers") + ] = None + + agents_active_users: Annotated[ + Optional[CurrentActiveUsers], pydantic.Field(alias="agentsActiveUsers") + ] = None + extension_summary: Annotated[ Optional[CurrentActiveUsers], pydantic.Field(alias="extensionSummary") ] = None @@ -199,6 +214,9 @@ def serialize_model(self, handler): "totalSignups", "searchSummary", "chatSummary", + "searchActiveUsers", + "assistantActiveUsers", + "agentsActiveUsers", "extensionSummary", "ugcSummary", "lastUpdatedTs", diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 87401958..96d4127e 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), 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/test_summarize.py b/tests/test_summarize.py index 5d5ff652..5917ddcb 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -18,11 +18,11 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "ugc_type": models.DocumentSpecUgcType2.ANNOUNCEMENTS, - "ugc_id": "", + "id": "", }, { - "url": "https://potable-pine.org", + "ugc_type": models.DocumentSpecUgcType1.COLLECTIONS, + "content_id": 886976, }, ] ) From a16664a0e38ef82d8fe8053dc44f79ba51156bd6 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sun, 22 Mar 2026 02:28:40 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow