From d428e8bacfe4de8f43857f23c0137b4a2fd3fed9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 5 Nov 2025 16:11:28 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.649.0 --- .speakeasy/gen.lock | 17 +++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 5 +++-- .speakeasy/workflow.lock | 14 +++++++------- README.md | 3 ++- RELEASES.md | 12 +++++++++++- docs/models/chatmessagefragment.md | 2 +- .../debugdatasourcestatusresponsecounts.md | 8 ++++---- pyproject.toml | 2 +- src/glean/api_client/_version.py | 6 +++--- .../api_client/models/chatmessagefragment.py | 4 ++-- .../models/debugdatasourcestatusresponse.py | 8 ++++++-- .../handler/pathpostrestapiv1getchat.go | 4 ++-- .../models/components/chatmessagefragment.go | 2 +- .../components/debugdatasourcestatusresponse.go | 3 ++- 15 files changed, 53 insertions(+), 39 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d3c1bea6..b04aa4f2 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 2ffc5de135d861194642d3cb0a9e3bb4 + docChecksum: 32dd53402e2cd4015df1497391a25ceb docVersion: 0.9.0 - speakeasyVersion: 1.642.1 - generationVersion: 2.731.4 - releaseVersion: 0.11.2 - configChecksum: 681112b04101028f6621f6ef2b0c3257 + speakeasyVersion: 1.649.0 + generationVersion: 2.739.1 + releaseVersion: 0.11.3 + configChecksum: 9cb8a7f3329f2469101aad1c7ce0888e repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true @@ -16,7 +16,7 @@ features: additionalProperties: 1.0.1 configurableModuleName: 0.2.0 constsAndDefaults: 1.0.5 - core: 5.23.0 + core: 5.23.4 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 devContainers: 3.0.0 @@ -28,7 +28,7 @@ features: globalSecurity: 3.0.4 globalSecurityCallbacks: 1.0.0 globalSecurityFlattening: 1.0.0 - globalServerURLs: 3.1.1 + globalServerURLs: 3.2.0 groups: 3.0.1 methodArguments: 1.0.2 mockServer: 0.1.1 @@ -2742,6 +2742,3 @@ generatedTests: editcollection: "2025-06-12T19:13:52-04:00" createshortcut: "2025-06-12T19:13:52-04:00" updateshortcut: "2025-06-12T19:13:52-04:00" -releaseNotes: | - ## Python SDK Changes Detected: - * `glean.client.insights.retrieve()`: `response.agents_response` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d1734d04..4ff5b36b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.2 + version: 0.11.3 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 4d2645b7..b6102edf 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -7378,7 +7378,7 @@ components: additionalProperties: $ref: "#/components/schemas/WriteActionParameter" ChatMessageFragment: - description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. + description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. allOf: - $ref: "#/components/schemas/Result" - type: object @@ -11788,7 +11788,8 @@ components: type: array items: $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" - description: A list of object types and corresponding upload counts + description: | + A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. indexed: type: array description: The number of documents indexed, grouped by objectType diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3e0b49de..10bb7f3a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.642.1 +speakeasyVersion: 1.649.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 - sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 + sourceRevisionDigest: sha256:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c + sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b tags: - latest - - speakeasy-sdk-regen-1761685663 + - speakeasy-sdk-regen-1762301903 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2 @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:092bfa8d363f0191930191e522b5f72025fec603b0474d9d5d2380b79b356f32 - sourceBlobDigest: sha256:84c15305b5763d040c255114c33c0c78072f77ac102895bf669b71c32f037048 + sourceRevisionDigest: sha256:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c + sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:05f915b94763a1499036f686db919aff002fb8e42c8feb22fef55e1208b96383 + codeSamplesRevisionDigest: sha256:6d93002caf2b6bb77ae4bd2f9e37ab56f9044c6d905ab5c9879f015fbe331a1a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 0e095505..86366845 100644 --- a/README.md +++ b/README.md @@ -749,7 +749,8 @@ import os with Glean( - instance="" + server_idx=0, + instance="instance-name", api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: diff --git a/RELEASES.md b/RELEASES.md index 992c5328..fe4acc39 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -338,4 +338,14 @@ Based on: ### Generated - [python v0.11.2] . ### Releases -- [PyPI v0.11.2] https://pypi.org/project/glean/0.11.2 - . \ No newline at end of file +- [PyPI v0.11.2] https://pypi.org/project/glean/0.11.2 - . + +## 2025-11-05 16:08:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.649.0 (2.739.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.11.3] . +### Releases +- [PyPI v0.11.3] https://pypi.org/project/glean/0.11.3 - . \ No newline at end of file diff --git a/docs/models/chatmessagefragment.md b/docs/models/chatmessagefragment.md index 1123f936..f7de9397 100644 --- a/docs/models/chatmessagefragment.md +++ b/docs/models/chatmessagefragment.md @@ -1,6 +1,6 @@ # ChatMessageFragment -Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. +Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. ## Fields diff --git a/docs/models/debugdatasourcestatusresponsecounts.md b/docs/models/debugdatasourcestatusresponsecounts.md index 109a13c4..e28d970e 100644 --- a/docs/models/debugdatasourcestatusresponsecounts.md +++ b/docs/models/debugdatasourcestatusresponsecounts.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `uploaded` | List[[models.DatasourceObjectTypeDocumentCountEntry](../models/datasourceobjecttypedocumentcountentry.md)] | :heavy_minus_sign: | A list of object types and corresponding upload counts | -| `indexed` | List[[models.DatasourceObjectTypeDocumentCountEntry](../models/datasourceobjecttypedocumentcountentry.md)] | :heavy_minus_sign: | The number of documents indexed, grouped by objectType | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `uploaded` | List[[models.DatasourceObjectTypeDocumentCountEntry](../models/datasourceobjecttypedocumentcountentry.md)] | :heavy_minus_sign: | A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale.
| +| `indexed` | List[[models.DatasourceObjectTypeDocumentCountEntry](../models/datasourceobjecttypedocumentcountentry.md)] | :heavy_minus_sign: | The number of documents indexed, grouped by objectType | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0d86a331..18bf6379 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "glean-api-client" -version = "0.11.2" +version = "0.11.3" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." }] license = "MIT" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index ea64d62c..4d47317c 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" -__version__: str = "0.11.2" +__version__: str = "0.11.3" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.731.4" -__user_agent__: str = "speakeasy-sdk/python 0.11.2 2.731.4 0.9.0 glean" +__gen_version__: str = "2.739.1" +__user_agent__: str = "speakeasy-sdk/python 0.11.3 2.739.1 0.9.0 glean" try: if __package__ is not None: diff --git a/src/glean/api_client/models/chatmessagefragment.py b/src/glean/api_client/models/chatmessagefragment.py index fb28a83b..fb5d195f 100644 --- a/src/glean/api_client/models/chatmessagefragment.py +++ b/src/glean/api_client/models/chatmessagefragment.py @@ -13,7 +13,7 @@ class ChatMessageFragmentTypedDict(TypedDict): - r"""Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.""" + r"""Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file.""" structured_results: NotRequired[List[StructuredResultTypedDict]] r"""An array of entities in the work graph retrieved via a data request.""" @@ -29,7 +29,7 @@ class ChatMessageFragmentTypedDict(TypedDict): class ChatMessageFragment(BaseModel): - r"""Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.""" + r"""Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file.""" structured_results: Annotated[ Optional[List[StructuredResult]], pydantic.Field(alias="structuredResults") diff --git a/src/glean/api_client/models/debugdatasourcestatusresponse.py b/src/glean/api_client/models/debugdatasourcestatusresponse.py index eb3606ec..3710e620 100644 --- a/src/glean/api_client/models/debugdatasourcestatusresponse.py +++ b/src/glean/api_client/models/debugdatasourcestatusresponse.py @@ -26,14 +26,18 @@ class DebugDatasourceStatusResponseCountsTypedDict(TypedDict): uploaded: NotRequired[List[DatasourceObjectTypeDocumentCountEntryTypedDict]] - r"""A list of object types and corresponding upload counts""" + r"""A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. + + """ indexed: NotRequired[List[DatasourceObjectTypeDocumentCountEntryTypedDict]] r"""The number of documents indexed, grouped by objectType""" class DebugDatasourceStatusResponseCounts(BaseModel): uploaded: Optional[List[DatasourceObjectTypeDocumentCountEntry]] = None - r"""A list of object types and corresponding upload counts""" + r"""A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. + + """ indexed: Optional[List[DatasourceObjectTypeDocumentCountEntry]] = None r"""The number of documents indexed, grouped by objectType""" diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 35e69d35..f8469b5b 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/chatmessagefragment.go b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go index be2b3866..4a0507c9 100644 --- a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go @@ -2,7 +2,7 @@ package components -// ChatMessageFragment - Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. +// ChatMessageFragment - Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation, followupRoutingSuggestion or file. type ChatMessageFragment struct { // An array of entities in the work graph retrieved via a data request. StructuredResults []StructuredResult `json:"structuredResults,omitempty"` diff --git a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go b/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go index fe777e9b..2b4c0aa4 100644 --- a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go +++ b/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go @@ -8,7 +8,8 @@ import ( ) type DebugDatasourceStatusResponseCounts struct { - // A list of object types and corresponding upload counts + // A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. + // Uploaded []DatasourceObjectTypeDocumentCountEntry `json:"uploaded,omitempty"` // The number of documents indexed, grouped by objectType Indexed []DatasourceObjectTypeDocumentCountEntry `json:"indexed,omitempty"` From e58455470aad288e0058cedef18d5222a6a01fbf Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 5 Nov 2025 16:11:39 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow