From 566663c800c18e39701c643255040c5fc43ea7c3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 27 Mar 2026 02:34:38 +0000 Subject: [PATCH 1/2] ## Python SDK Changes: * `glean.client.chat.create()`: * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `response.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.upload_files()`: `response.files[].metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.retrieve_files()`: `response.files.Map.metadata.status.enum(partially_processed)` **Added** * `glean.client.chat.create_stream()`: * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added** * `glean.indexing.documents.add_or_update()`: * `request.document.native_app_url` **Added** * `glean.indexing.documents.index()`: * `request.documents[].native_app_url` **Added** * `glean.indexing.documents.bulk_index()`: * `request.documents[].native_app_url` **Added** --- .speakeasy/gen.lock | 61 ++++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 14 +++-- .speakeasy/workflow.lock | 12 ++-- README.md | 6 +- RELEASES.md | 12 +++- docs/models/chatfilestatus.md | 13 ++-- docs/models/documentdefinition.md | 1 + docs/sdks/clientchat/README.md | 6 +- pyproject.toml | 2 +- src/glean/api_client/_version.py | 6 +- src/glean/api_client/client_chat.py | 12 ++-- src/glean/api_client/models/chatfilestatus.py | 1 + .../api_client/models/documentdefinition.py | 8 +++ .../sdk/models/components/chatfilestatus.go | 11 ++-- .../models/components/documentdefinition.go | 9 +++ tests/test_messages.py | 2 +- tests/test_summarize.py | 5 +- 18 files changed, 111 insertions(+), 72 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index fe3ac88b..5deb736c 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: fdf0172cfa3c17fc2b9350e88863c552 + docChecksum: 7cfbc96a37c380a5aded568917db8adb docVersion: 0.9.0 - speakeasyVersion: 1.759.2 - generationVersion: 2.869.23 - releaseVersion: 0.12.17 - configChecksum: 36e865d74e209331ddf988d24ca6da34 + speakeasyVersion: 1.759.3 + generationVersion: 2.869.25 + releaseVersion: 0.12.18 + configChecksum: 55d8c28074319eb59aad3583f2c9d236 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: fbb5c9ca-5265-4b25-b41b-25b459bdc6fe - pristine_commit_hash: f6944e91b07b083127f3fc7de62f63cf696ad8d6 - pristine_tree_hash: c4a9fa012a91caa1cf2657c40f29e369541a716e + generation_id: 7db5cd3c-64ff-4f53-a68f-152476336148 + pristine_commit_hash: 10aee9c817a1cb26836721eb17e7ff703bdb068b + pristine_tree_hash: e26ec916089dbf8217a833ec40c10407483f1f6f features: python: additionalDependencies: 1.0.0 @@ -399,8 +399,8 @@ trackedFiles: pristine_git_object: 67979aa2200513b9e68f924662801b4515d21bf8 docs/models/chatfilestatus.md: id: 353dfcb79ee6 - last_write_checksum: sha1:6fcb6d99dcbf732251fb77cd46173c71e2d96912 - pristine_git_object: 55e4883a17539d1c3cac902664c3eb28da5aeec8 + last_write_checksum: sha1:14a82425ae8934057ad003b6329fe463aa8a8620 + pristine_git_object: d531ff5bcb94079a22528ff5a2b64e572bf677d6 docs/models/chatmessage.md: id: 768623ba5622 last_write_checksum: sha1:de3b12dcf57e893d4facbfc151263895f807605f @@ -963,8 +963,8 @@ trackedFiles: pristine_git_object: 5fb524be4047a39a705ea7befc6aa8afe8cc7f5f docs/models/documentdefinition.md: id: 3177ff20ce95 - last_write_checksum: sha1:592bd655c232463ee0c9acb924a29a1fddd5ba12 - pristine_git_object: 497f8be3d27c23d6065e3bb5488de7ec5c2655b3 + last_write_checksum: sha1:6584c0b35fae2216e7b2960718654fddb1e696e0 + pristine_git_object: c1c884b1f6cfba977620b2f9a6a6b9d02feeb1b0 docs/models/documentinteractions.md: id: 40929f336351 last_write_checksum: sha1:ede65df5d5f50eeeaf919598bcb2c04ff569e552 @@ -2667,8 +2667,8 @@ trackedFiles: pristine_git_object: b9a4856d52e9c48fb4917c0052bf86be2ad9cd0e docs/sdks/clientchat/README.md: id: baf998e3d238 - last_write_checksum: sha1:0c7abf8ce4c4d4767f38f24eea295e728ed9a254 - pristine_git_object: 07bed0f457fb3b70139c553172ef54becca7fdcb + last_write_checksum: sha1:7d9f149eab77f7899dc1bd478066922f2cfe6ac3 + pristine_git_object: 09a859f98f62b2d16516f5792c5afc1ca60f9fe6 docs/sdks/clientdocuments/README.md: id: e0c074acef4e last_write_checksum: sha1:ef34fa1517c866b9ae0fdb50847031421f26ea0b @@ -2771,8 +2771,8 @@ trackedFiles: pristine_git_object: e2fda7fe263c2a111e53872e3ad5bc324b4dccfe pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:4c8e59fe26e0e3caca741226a4044e4880e33979 - pristine_git_object: 2d8cfb5ec32dcd1f7d06bc9122312dddb8f1289f + last_write_checksum: sha1:e341f817e33aa4644d6a5b5cdaf9072bcd202aba + pristine_git_object: ef7641d7d740f4b2951e41fba5ec4c91e5c5d29b 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:02955598088a61b0e39227ac3d5b35fc38bdf052 - pristine_git_object: bff6ca752d95863ce5a20b16f9b812fd7425935b + last_write_checksum: sha1:2a8e1885ffd3a18a97b41a8572aded8bb7c3f483 + pristine_git_object: 7585c68fe8f1ef4ed6f406d8b5892f3a53c05153 src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:ee99ae3d58f7f77ac2eba99c104d04d53c16c09c @@ -2835,8 +2835,8 @@ trackedFiles: pristine_git_object: 74cc80064eb9ae60d112a21b8f68e54ae070f56e src/glean/api_client/client_chat.py: id: 42cbb9b5acf3 - last_write_checksum: sha1:e4042273ef1e14b075b04e4196646320aa4ff558 - pristine_git_object: 0ffec2f50edbd051e77ac69561d5187248be2ecc + last_write_checksum: sha1:413c49f342f5c28727fc414dbe4dfe4a1e61bb3e + pristine_git_object: c37aa6bc73dd081403d5ebf0e31c07faaeac7d34 src/glean/api_client/client_documents.py: id: dac599de515c last_write_checksum: sha1:db7a459040a730afdc04a21d95834408cef53fdb @@ -3187,8 +3187,8 @@ trackedFiles: pristine_git_object: b4cb6dc4f77e767d75cc0c4ce8402236536907c6 src/glean/api_client/models/chatfilestatus.py: id: 0e6c1c7a372c - last_write_checksum: sha1:4af0557f8574e729bbd16805c2d02172bbef9eb6 - pristine_git_object: 0628b167f1b538ab6b9c0ed6021708456aa98c31 + last_write_checksum: sha1:2e48fd50170faf7835ed7ab1a1609cd8cf69f0d6 + pristine_git_object: 8ae7bacc6529f41eb3aa272c575ca1553f481040 src/glean/api_client/models/chatmessage.py: id: d1d93cc94501 last_write_checksum: sha1:5b0d3c530b2c6c9f34e4f54c2b670b85abed7627 @@ -3683,8 +3683,8 @@ trackedFiles: pristine_git_object: 7a6ea0bf0feb7bb6f13045ca67007c9b73da4dd5 src/glean/api_client/models/documentdefinition.py: id: a1d959d6d441 - last_write_checksum: sha1:4437a60abba42afd2bd3c4f061fc882238ec353d - pristine_git_object: 99b4520fb04deb5887ef0b3d8cb1bfce49c628f4 + last_write_checksum: sha1:5a0df41c3a76aca7fc7683e9ad65ea7ccb1f73d6 + pristine_git_object: 1fa367c9949a6866dfdc4af3e9bbfbb88e308338 src/glean/api_client/models/documentinteractions.py: id: 1cbd7f0ca8c2 last_write_checksum: sha1:1c43b48bba2be30ba492015b1ae3cbdd1ecba059 @@ -5432,7 +5432,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/chatfilemetadata.go: last_write_checksum: sha1:4e608b0813ad32b7a981f73a511952b6459979e0 tests/mockserver/internal/sdk/models/components/chatfilestatus.go: - last_write_checksum: sha1:4f1e95ea4c1f64cfb9daab23820e907fe24f4efe + last_write_checksum: sha1:382dc2973696c71b36481555cc1eeed0379b3f2a tests/mockserver/internal/sdk/models/components/chatmessage.go: last_write_checksum: sha1:b813b4301b77532bbbc60fa85f3b44e21d7a740d tests/mockserver/internal/sdk/models/components/chatmessagecitation.go: @@ -5650,7 +5650,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/documentcontent.go: last_write_checksum: sha1:17906e5b05e5396940805846f250c7c4b91a1bb9 tests/mockserver/internal/sdk/models/components/documentdefinition.go: - last_write_checksum: sha1:04dc959087a57790f99f0b47e6fe2359603b48ff + last_write_checksum: sha1:93c3d873dc6abfe6635cc10f544126aa75ff5a27 tests/mockserver/internal/sdk/models/components/documentinteractions.go: last_write_checksum: sha1:5e29169410c2971f57b96b24ea4fad8b6437b79e tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go: @@ -6567,8 +6567,8 @@ trackedFiles: pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9 tests/test_messages.py: id: be23089b1f8b - last_write_checksum: sha1:b7415512608102fa07b1990a350a7da66946fe46 - pristine_git_object: 636f01d348f30db3ee81985044634511b615af16 + last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617 + pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a tests/test_people.py: id: 37c243940039 last_write_checksum: sha1:7c7268ffeebe48d81ed25e9b1cfc3a395abf5c1f @@ -6591,8 +6591,8 @@ trackedFiles: pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:d0245ffca1533446942ac2b0f1109d4f6e9888b4 - pristine_git_object: f9c494d59cc7d73c8b3ea1c965b544c79625198a + last_write_checksum: sha1:1b22ee51523955e50e0bbaaf6fdccd3fa4bde12c + pristine_git_object: ad6c17b97c64653b741ddbe5e4a1e3cb536a44c2 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_file.metadata.status.enum(partially_processed)` **Added**\n * `response.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.upload_files()`: `response.files[].metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.retrieve_files()`: `response.files.Map.metadata.status.enum(partially_processed)` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].citations[].source_file.metadata.status.enum(partially_processed)` **Added**\n* `glean.indexing.documents.add_or_update()`: \n * `request.document.native_app_url` **Added**\n* `glean.indexing.documents.index()`: \n * `request.documents[].native_app_url` **Added**\n* `glean.indexing.documents.bulk_index()`: \n * `request.documents[].native_app_url` **Added**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 257fa8e8..b1644a48 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.12.17 + version: 0.12.18 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 7d531eb5..278d8295 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: 7dfab98513e91afbfca673ee2a1f71cba51b38c2 + x-source-commit-sha: 0962a428c0094dd8c0a2c12b828a1ee04b69ef00 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: f8e6b19f37fae9d74f0370dfb927dcb70b2e3eb0 + x-open-api-commit-sha: da0ed02e776d66daccdd2defaabb872cd5b9cee4 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -748,7 +748,7 @@ paths: post: tags: - Chat - summary: Upload files for Chat. + summary: Upload files for Chat description: Upload files for Chat. operationId: uploadchatfiles x-visibility: Public @@ -785,7 +785,7 @@ paths: post: tags: - Chat - summary: Get files uploaded by a user for Chat. + summary: Get files uploaded by a user for Chat description: Get files uploaded by a user for Chat. operationId: getchatfiles x-visibility: Public @@ -822,7 +822,7 @@ paths: post: tags: - Chat - summary: Delete files uploaded by a user for chat. + summary: Delete files uploaded by a user for chat description: Delete files uploaded by a user for Chat. operationId: deletechatfiles x-visibility: Public @@ -7805,6 +7805,7 @@ components: enum: - PROCESSING - PROCESSED + - PARTIALLY_PROCESSED - FAILED - DELETED ChatFileFailureReason: @@ -11860,6 +11861,9 @@ components: items: type: string description: Additional variations of the URL that this document points to. + nativeAppUrl: + type: string + description: A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message). comments: type: array items: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 76052119..ec400895 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.759.2 +speakeasyVersion: 1.759.3 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:338f3919e72098ba812ac6e2d8535d18790aeb6859124446995ace5d03b8e394 - sourceBlobDigest: sha256:7eac67196941c78368363c4fe4a51d27d9c4714bd8890d6456ca045a22c3d11c + sourceRevisionDigest: sha256:1734cb8cc2eedc7ba5751830b3f320257a058953130ab965ef482396b82dbf7f + sourceBlobDigest: sha256:996519bf46dc22d2b818df15645ba6f843a3879cc8410561f5983fab6bb99f6f tags: - latest Glean Client API: @@ -16,10 +16,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:338f3919e72098ba812ac6e2d8535d18790aeb6859124446995ace5d03b8e394 - sourceBlobDigest: sha256:7eac67196941c78368363c4fe4a51d27d9c4714bd8890d6456ca045a22c3d11c + sourceRevisionDigest: sha256:1734cb8cc2eedc7ba5751830b3f320257a058953130ab965ef482396b82dbf7f + sourceBlobDigest: sha256:996519bf46dc22d2b818df15645ba6f843a3879cc8410561f5983fab6bb99f6f codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:c56e9f3cc28162c3a1732be6472426327003f3aeefbe5a814a408764fbcf7c02 + codeSamplesRevisionDigest: sha256:c955fa0218781c3e4fc1d95d0fa51ae5051cd077ff1730432ded1238b9a40532 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index f89350a5..c1dd7020 100644 --- a/README.md +++ b/README.md @@ -380,9 +380,9 @@ For more information on obtaining the appropriate token type, please contact you * [retrieve](docs/sdks/clientchat/README.md#retrieve) - Retrieves a Chat * [list](docs/sdks/clientchat/README.md#list) - Retrieves all saved Chats * [retrieve_application](docs/sdks/clientchat/README.md#retrieve_application) - Gets the metadata for a custom Chat application -* [upload_files](docs/sdks/clientchat/README.md#upload_files) - Upload files for Chat. -* [retrieve_files](docs/sdks/clientchat/README.md#retrieve_files) - Get files uploaded by a user for Chat. -* [delete_files](docs/sdks/clientchat/README.md#delete_files) - Delete files uploaded by a user for chat. +* [upload_files](docs/sdks/clientchat/README.md#upload_files) - Upload files for Chat +* [retrieve_files](docs/sdks/clientchat/README.md#retrieve_files) - Get files uploaded by a user for Chat +* [delete_files](docs/sdks/clientchat/README.md#delete_files) - Delete files uploaded by a user for chat * [create_stream](docs/sdks/clientchat/README.md#create_stream) - Chat ### [Client.Collections](docs/sdks/collections/README.md) diff --git a/RELEASES.md b/RELEASES.md index 053ea013..02f8ccc3 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -678,4 +678,14 @@ Based on: ### Generated - [python v0.12.17] . ### Releases -- [PyPI v0.12.17] https://pypi.org/project/glean-api-client/0.12.17 - . \ No newline at end of file +- [PyPI v0.12.17] https://pypi.org/project/glean-api-client/0.12.17 - . + +## 2026-03-27 02:31:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.759.3 (2.869.25) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.12.18] . +### Releases +- [PyPI v0.12.18] https://pypi.org/project/glean-api-client/0.12.18 - . \ No newline at end of file diff --git a/docs/models/chatfilestatus.md b/docs/models/chatfilestatus.md index 55e4883a..d531ff5b 100644 --- a/docs/models/chatfilestatus.md +++ b/docs/models/chatfilestatus.md @@ -15,9 +15,10 @@ value = ChatFileStatus.PROCESSING ## Values -| Name | Value | -| ------------ | ------------ | -| `PROCESSING` | PROCESSING | -| `PROCESSED` | PROCESSED | -| `FAILED` | FAILED | -| `DELETED` | DELETED | \ No newline at end of file +| Name | Value | +| --------------------- | --------------------- | +| `PROCESSING` | PROCESSING | +| `PROCESSED` | PROCESSED | +| `PARTIALLY_PROCESSED` | PARTIALLY_PROCESSED | +| `FAILED` | FAILED | +| `DELETED` | DELETED | \ No newline at end of file diff --git a/docs/models/documentdefinition.md b/docs/models/documentdefinition.md index 497f8be3..c1c884b1 100644 --- a/docs/models/documentdefinition.md +++ b/docs/models/documentdefinition.md @@ -28,5 +28,6 @@ Indexable document structure | `interactions` | [Optional[models.DocumentInteractionsDefinition]](../models/documentinteractionsdefinition.md) | :heavy_minus_sign: | describes the interactions on the document | | `status` | *Optional[str]* | :heavy_minus_sign: | N/A | | `additional_urls` | List[*str*] | :heavy_minus_sign: | Additional variations of the URL that this document points to. | +| `native_app_url` | *Optional[str]* | :heavy_minus_sign: | A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message). | | `comments` | List[[models.CommentDefinition](../models/commentdefinition.md)] | :heavy_minus_sign: | Comments associated with the document. | | `custom_properties` | List[[models.CustomProperty](../models/customproperty.md)] | :heavy_minus_sign: | Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). | \ No newline at end of file diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md index 07bed0f4..09a859f9 100644 --- a/docs/sdks/clientchat/README.md +++ b/docs/sdks/clientchat/README.md @@ -10,9 +10,9 @@ * [retrieve](#retrieve) - Retrieves a Chat * [list](#list) - Retrieves all saved Chats * [retrieve_application](#retrieve_application) - Gets the metadata for a custom Chat application -* [upload_files](#upload_files) - Upload files for Chat. -* [retrieve_files](#retrieve_files) - Get files uploaded by a user for Chat. -* [delete_files](#delete_files) - Delete files uploaded by a user for chat. +* [upload_files](#upload_files) - Upload files for Chat +* [retrieve_files](#retrieve_files) - Get files uploaded by a user for Chat +* [delete_files](#delete_files) - Delete files uploaded by a user for chat * [create_stream](#create_stream) - Chat ## create diff --git a/pyproject.toml b/pyproject.toml index 2d8cfb5e..ef7641d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.12.17" +version = "0.12.18" 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 bff6ca75..7585c68f 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.17" +__version__: str = "0.12.18" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.869.23" -__user_agent__: str = "speakeasy-sdk/python 0.12.17 2.869.23 0.9.0 glean-api-client" +__gen_version__: str = "2.869.25" +__user_agent__: str = "speakeasy-sdk/python 0.12.18 2.869.25 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/src/glean/api_client/client_chat.py b/src/glean/api_client/client_chat.py index 0ffec2f5..c37aa6bc 100644 --- a/src/glean/api_client/client_chat.py +++ b/src/glean/api_client/client_chat.py @@ -1237,7 +1237,7 @@ def upload_files( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UploadChatFilesResponse: - r"""Upload files for Chat. + r"""Upload files for Chat Upload files for Chat. @@ -1336,7 +1336,7 @@ async def upload_files_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UploadChatFilesResponse: - r"""Upload files for Chat. + r"""Upload files for Chat Upload files for Chat. @@ -1435,7 +1435,7 @@ def retrieve_files( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetChatFilesResponse: - r"""Get files uploaded by a user for Chat. + r"""Get files uploaded by a user for Chat Get files uploaded by a user for Chat. @@ -1534,7 +1534,7 @@ async def retrieve_files_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetChatFilesResponse: - r"""Get files uploaded by a user for Chat. + r"""Get files uploaded by a user for Chat Get files uploaded by a user for Chat. @@ -1633,7 +1633,7 @@ def delete_files( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Delete files uploaded by a user for chat. + r"""Delete files uploaded by a user for chat Delete files uploaded by a user for Chat. @@ -1732,7 +1732,7 @@ async def delete_files_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ): - r"""Delete files uploaded by a user for chat. + r"""Delete files uploaded by a user for chat Delete files uploaded by a user for Chat. diff --git a/src/glean/api_client/models/chatfilestatus.py b/src/glean/api_client/models/chatfilestatus.py index 0628b167..8ae7bacc 100644 --- a/src/glean/api_client/models/chatfilestatus.py +++ b/src/glean/api_client/models/chatfilestatus.py @@ -10,5 +10,6 @@ class ChatFileStatus(str, Enum, metaclass=utils.OpenEnumMeta): PROCESSING = "PROCESSING" PROCESSED = "PROCESSED" + PARTIALLY_PROCESSED = "PARTIALLY_PROCESSED" FAILED = "FAILED" DELETED = "DELETED" diff --git a/src/glean/api_client/models/documentdefinition.py b/src/glean/api_client/models/documentdefinition.py index 99b4520f..1fa367c9 100644 --- a/src/glean/api_client/models/documentdefinition.py +++ b/src/glean/api_client/models/documentdefinition.py @@ -70,6 +70,8 @@ class DocumentDefinitionTypedDict(TypedDict): status: NotRequired[str] additional_urls: NotRequired[List[str]] r"""Additional variations of the URL that this document points to.""" + native_app_url: NotRequired[str] + r"""A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message).""" comments: NotRequired[List[CommentDefinitionTypedDict]] r"""Comments associated with the document.""" custom_properties: NotRequired[List[CustomPropertyTypedDict]] @@ -152,6 +154,11 @@ class DocumentDefinition(BaseModel): ] = None r"""Additional variations of the URL that this document points to.""" + native_app_url: Annotated[Optional[str], pydantic.Field(alias="nativeAppUrl")] = ( + None + ) + r"""A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message).""" + comments: Optional[List[CommentDefinition]] = None r"""Comments associated with the document.""" @@ -184,6 +191,7 @@ def serialize_model(self, handler): "interactions", "status", "additionalUrls", + "nativeAppUrl", "comments", "customProperties", ] diff --git a/tests/mockserver/internal/sdk/models/components/chatfilestatus.go b/tests/mockserver/internal/sdk/models/components/chatfilestatus.go index 7f192a89..95c73786 100644 --- a/tests/mockserver/internal/sdk/models/components/chatfilestatus.go +++ b/tests/mockserver/internal/sdk/models/components/chatfilestatus.go @@ -11,10 +11,11 @@ import ( type ChatFileStatus string const ( - ChatFileStatusProcessing ChatFileStatus = "PROCESSING" - ChatFileStatusProcessed ChatFileStatus = "PROCESSED" - ChatFileStatusFailed ChatFileStatus = "FAILED" - ChatFileStatusDeleted ChatFileStatus = "DELETED" + ChatFileStatusProcessing ChatFileStatus = "PROCESSING" + ChatFileStatusProcessed ChatFileStatus = "PROCESSED" + ChatFileStatusPartiallyProcessed ChatFileStatus = "PARTIALLY_PROCESSED" + ChatFileStatusFailed ChatFileStatus = "FAILED" + ChatFileStatusDeleted ChatFileStatus = "DELETED" ) func (e ChatFileStatus) ToPointer() *ChatFileStatus { @@ -30,6 +31,8 @@ func (e *ChatFileStatus) UnmarshalJSON(data []byte) error { fallthrough case "PROCESSED": fallthrough + case "PARTIALLY_PROCESSED": + fallthrough case "FAILED": fallthrough case "DELETED": diff --git a/tests/mockserver/internal/sdk/models/components/documentdefinition.go b/tests/mockserver/internal/sdk/models/components/documentdefinition.go index beac1f1c..41db731f 100644 --- a/tests/mockserver/internal/sdk/models/components/documentdefinition.go +++ b/tests/mockserver/internal/sdk/models/components/documentdefinition.go @@ -46,6 +46,8 @@ type DocumentDefinition struct { Status *string `json:"status,omitempty"` // Additional variations of the URL that this document points to. AdditionalUrls []string `json:"additionalUrls,omitempty"` + // A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://channel/message). + NativeAppURL *string `json:"nativeAppUrl,omitempty"` // Comments associated with the document. Comments []CommentDefinition `json:"comments,omitempty"` // Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). @@ -199,6 +201,13 @@ func (o *DocumentDefinition) GetAdditionalUrls() []string { return o.AdditionalUrls } +func (o *DocumentDefinition) GetNativeAppURL() *string { + if o == nil { + return nil + } + return o.NativeAppURL +} + func (o *DocumentDefinition) GetComments() []CommentDefinition { if o == nil { return nil diff --git a/tests/test_messages.py b/tests/test_messages.py index 636f01d3..132005ec 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -18,7 +18,7 @@ def test_messages_messages(): res = glean.client.messages.retrieve( id_type=models.IDType.CONVERSATION_ID, id="", - datasource=models.Datasource.GCHAT, + datasource=models.Datasource.FACEBOOKWORKPLACE, timestamp_millis=558834, ) assert res is not None diff --git a/tests/test_summarize.py b/tests/test_summarize.py index f9c494d5..ad6c17b9 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean.api_client import Glean +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client @@ -21,7 +21,8 @@ def test_summarize_summarize(): "id": "", }, { - "id": "", + "ugc_type": models.DocumentSpecUgcType2.ANSWERS, + "ugc_id": "", }, ] ) From b6cdca570b84634e0802c5efcdf10cd7101b1ee1 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 02:34:51 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow