From a4f8cdbb4591cc1667a2a69b93fc500510de6d99 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 31 May 2025 01:44:19 +0000 Subject: [PATCH 1/3] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.554.1 --- .speakeasy/gen.lock | 17 +++---- .speakeasy/gen.yaml | 3 +- .speakeasy/glean-merged-spec.yaml | 35 ++++++------- .speakeasy/workflow.lock | 14 +++--- README.md | 27 ++++------ RELEASES.md | 12 ++++- docs/models/chatrequest.md | 1 + docs/sdks/clientchat/README.md | 2 + docs/sdks/data/README.md | 6 --- docs/sdks/governance/README.md | 6 --- docs/sdks/governancedocuments/README.md | 6 --- docs/sdks/policies/README.md | 10 ++-- docs/sdks/reports/README.md | 6 +-- docs/sdks/visibilityoverrides/README.md | 4 +- pyproject.toml | 2 +- scripts/prepare_readme.py | 50 ++++--------------- src/glean/__init__.py | 3 -- src/glean/_hooks/types.py | 7 +++ src/glean/_version.py | 6 +-- src/glean/agents.py | 10 ++++ src/glean/announcements.py | 6 +++ src/glean/answers.py | 10 ++++ src/glean/basesdk.py | 32 +++++------- src/glean/client_activity.py | 4 ++ src/glean/client_authentication.py | 2 + src/glean/client_chat.py | 48 ++++++++++++++++++ src/glean/client_documents.py | 8 +++ src/glean/client_shortcuts.py | 10 ++++ src/glean/client_verification.py | 6 +++ src/glean/collections.py | 16 ++++++ src/glean/datasources.py | 4 ++ src/glean/entities.py | 4 ++ src/glean/indexing_authentication.py | 2 + src/glean/indexing_datasource.py | 2 + src/glean/indexing_documents.py | 20 ++++++++ src/glean/indexing_permissions.py | 24 +++++++++ src/glean/indexing_shortcuts.py | 4 ++ src/glean/insights.py | 2 + src/glean/messages.py | 2 + src/glean/models/chatrequest.py | 6 +++ src/glean/people.py | 18 +++++++ src/glean/pins.py | 10 ++++ src/glean/policies.py | 30 +++++++---- src/glean/reports.py | 18 ++++--- src/glean/sdk.py | 6 +-- src/glean/sdkconfiguration.py | 7 --- src/glean/search.py | 10 ++++ src/glean/tools.py | 4 ++ src/glean/visibilityoverrides.py | 12 +++-- .../sdk/models/components/chatrequest.go | 10 +++- 50 files changed, 384 insertions(+), 180 deletions(-) delete mode 100644 docs/sdks/data/README.md delete mode 100644 docs/sdks/governance/README.md delete mode 100644 docs/sdks/governancedocuments/README.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5ae3cd2d..b701d2f5 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: 494200b2b5ce073b7458b5d6a0507b42 + docChecksum: d35fba7b1f9b2598dbc20b6520739922 docVersion: 0.9.0 - speakeasyVersion: 1.551.0 - generationVersion: 2.610.0 - releaseVersion: 0.5.2 - configChecksum: 6a95613bf15bc0a00a38f7c157809ca4 + speakeasyVersion: 1.554.1 + generationVersion: 2.616.1 + releaseVersion: 0.6.0 + configChecksum: c7afa60383cf11a8f5ad959fc0e8e872 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true @@ -15,7 +15,7 @@ features: additionalDependencies: 1.0.0 additionalProperties: 1.0.1 constsAndDefaults: 1.0.5 - core: 5.19.0 + core: 5.19.1 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 devContainers: 3.0.0 @@ -35,7 +35,7 @@ features: nameOverrides: 3.0.1 responseFormat: 1.0.1 retries: 3.0.2 - sdkHooks: 1.0.1 + sdkHooks: 1.1.0 tests: 1.17.0 unions: 3.0.4 uploadStreams: 1.0.0 @@ -617,12 +617,9 @@ generatedFiles: - docs/sdks/clientshortcuts/README.md - docs/sdks/clientverification/README.md - docs/sdks/collections/README.md - - docs/sdks/data/README.md - docs/sdks/datasources/README.md - docs/sdks/entities/README.md - docs/sdks/glean/README.md - - docs/sdks/governance/README.md - - docs/sdks/governancedocuments/README.md - docs/sdks/indexing/README.md - docs/sdks/indexingauthentication/README.md - docs/sdks/indexingdatasource/README.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2a85e8ad..f9545061 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -7,6 +7,7 @@ generation: maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true @@ -24,7 +25,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.5.2 + version: 0.6.0 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index dd8fa8ad..48accd92 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,6 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - contact: - email: support@glean.com 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. @@ -23,7 +21,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-speakeasy-name: "Glean API" + x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com variables: @@ -414,7 +412,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ChatResponse" + $ref: '#/components/schemas/ChatResponse' examples: defaultExample: value: @@ -477,10 +475,10 @@ paths: agent: DEFAULT mode: DEFAULT fragments: - - text: "**Reading:**" + - text: '**Reading:**' - structuredResults: - document: - id: "123" + id: '123' title: Company Handbook citationResponse: value: @@ -492,7 +490,7 @@ paths: mode: DEFAULT citations: - sourceDocument: - id: "123" + id: '123' title: Company Handbook referenceRanges: - textRange: @@ -3179,7 +3177,7 @@ paths: /rest/api/v1/governance/data/policies/{id}: get: description: Fetches the specified policy version, or the latest if no version is provided. - summary: Gets specified Policy. + summary: Gets specified policy operationId: getpolicy x-visibility: Public tags: @@ -3213,7 +3211,7 @@ paths: x-speakeasy-name-override: retrieve post: description: Updates an existing policy. - summary: Updates an existing policy. + summary: Updates an existing policy operationId: updatepolicy tags: - Governance @@ -3246,7 +3244,7 @@ paths: /rest/api/v1/governance/data/policies: get: description: Lists policies with filtering. - summary: Lists policies. + summary: Lists policies operationId: listpolicies x-visibility: Public tags: @@ -3279,7 +3277,7 @@ paths: x-speakeasy-name-override: list post: description: Creates a new policy with specified specifications and returns its id. - summary: Creates new policy. + summary: Creates new policy operationId: createpolicy x-visibility: Public tags: @@ -3306,7 +3304,7 @@ paths: /rest/api/v1/governance/data/policies/{id}/download: get: description: Downloads CSV violations report for a specific policy id. This does not support continuous policies. - summary: Downloads violations CSV for policy. + summary: Downloads violations CSV for policy operationId: downloadpolicycsv x-visibility: Public tags: @@ -3335,7 +3333,7 @@ paths: /rest/api/v1/governance/data/reports: post: description: Creates a new one-time report and executes its batch job. - summary: Creates new one-time report. + summary: Creates new one-time report operationId: createreport x-visibility: Public tags: @@ -3362,7 +3360,7 @@ paths: /rest/api/v1/governance/data/reports/{id}/download: get: description: Downloads CSV violations report for a specific report id. - summary: Downloads violations CSV for report. + summary: Downloads violations CSV for report operationId: downloadreportcsv x-visibility: Public tags: @@ -3391,7 +3389,7 @@ paths: /rest/api/v1/governance/data/reports/{id}/status: get: description: Fetches the status of the run corresponding to the report-id. - summary: Fetches report run status. + summary: Fetches report run status operationId: getreportstatus x-visibility: Public tags: @@ -3419,7 +3417,7 @@ paths: /rest/api/v1/governance/documents/visibilityoverrides: get: description: Fetches the visibility override status of the documents passed. - summary: Fetches documents visibility. + summary: Fetches documents visibility operationId: getdocvisibility x-visibility: Public tags: @@ -3447,7 +3445,7 @@ paths: x-speakeasy-name-override: list post: description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. - summary: Hide/Un-hide docs. + summary: Hide or unhide docs operationId: setdocvisibility x-visibility: Public tags: @@ -7244,6 +7242,9 @@ components: type: integer description: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. example: 30000 + sessionInfo: + description: Optional object for tracking the session used by the client and for debugging purposes. + $ref: "#/components/schemas/SessionInfo" applicationId: type: string description: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d52ca8fa..4d9c567f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.551.0 +speakeasyVersion: 1.554.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:8f21c39ef4c0f7b292ea72e3a7ec057db295ddfd2814e99c7a753fd3773d23cb - sourceBlobDigest: sha256:e03e7548ba6cb180d1f94e0a3912501f47f1f9944c0631dd752b396e56513f1f + sourceRevisionDigest: sha256:3396ede63b0d0938d88f4b76b69092782a3d585f5c9e42bc69c607641443d427 + sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c tags: - latest - - speakeasy-sdk-regen-1748125845 + - speakeasy-sdk-regen-1748396490 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:8f21c39ef4c0f7b292ea72e3a7ec057db295ddfd2814e99c7a753fd3773d23cb - sourceBlobDigest: sha256:e03e7548ba6cb180d1f94e0a3912501f47f1f9944c0631dd752b396e56513f1f + sourceRevisionDigest: sha256:3396ede63b0d0938d88f4b76b69092782a3d585f5c9e42bc69c607641443d427 + sourceBlobDigest: sha256:490084863e541d217246ad7a409dfb2b73ffd1f13bae9685c5f623c0fdc3175c codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:539ebe8f0df16c3e87e9f927ad10b3558a8dc28721c86ad316de94314e51a906 + codeSamplesRevisionDigest: sha256:63af6d316a76a6ac296df7db15ec3c116ae02f65042e3ba96be403a14fb09e3f workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index f06e8332..75a935d5 100644 --- a/README.md +++ b/README.md @@ -403,31 +403,24 @@ For more information on obtaining the appropriate token type, please contact you * [list](docs/sdks/entities/README.md#list) - List entities * [read_people](docs/sdks/entities/README.md#read_people) - Read people - -#### [client.governance.data](docs/sdks/data/README.md) - - #### [client.governance.data.policies](docs/sdks/policies/README.md) -* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified Policy. -* [update](docs/sdks/policies/README.md#update) - Updates an existing policy. -* [list](docs/sdks/policies/README.md#list) - Lists policies. -* [create](docs/sdks/policies/README.md#create) - Creates new policy. -* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy. +* [retrieve](docs/sdks/policies/README.md#retrieve) - Gets specified policy +* [update](docs/sdks/policies/README.md#update) - Updates an existing policy +* [list](docs/sdks/policies/README.md#list) - Lists policies +* [create](docs/sdks/policies/README.md#create) - Creates new policy +* [download](docs/sdks/policies/README.md#download) - Downloads violations CSV for policy #### [client.governance.data.reports](docs/sdks/reports/README.md) -* [create](docs/sdks/reports/README.md#create) - Creates new one-time report. -* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report. -* [status](docs/sdks/reports/README.md#status) - Fetches report run status. - -#### [client.governance.documents](docs/sdks/governancedocuments/README.md) - +* [create](docs/sdks/reports/README.md#create) - Creates new one-time report +* [download](docs/sdks/reports/README.md#download) - Downloads violations CSV for report +* [status](docs/sdks/reports/README.md#status) - Fetches report run status #### [client.governance.documents.visibilityoverrides](docs/sdks/visibilityoverrides/README.md) -* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility. -* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide/Un-hide docs. +* [list](docs/sdks/visibilityoverrides/README.md#list) - Fetches documents visibility +* [create](docs/sdks/visibilityoverrides/README.md#create) - Hide or unhide docs #### [client.insights](docs/sdks/insights/README.md) diff --git a/RELEASES.md b/RELEASES.md index af1ff0d5..fdfcd3b6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -98,4 +98,14 @@ Based on: ### Generated - [python v0.5.2] . ### Releases -- [PyPI v0.5.2] https://pypi.org/project/glean/0.5.2 - . \ No newline at end of file +- [PyPI v0.5.2] https://pypi.org/project/glean/0.5.2 - . + +## 2025-05-31 01:38:24 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.554.1 (2.616.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.6.0] . +### Releases +- [PyPI v0.6.0] https://pypi.org/project/glean/0.6.0 - . \ No newline at end of file diff --git a/docs/models/chatrequest.md b/docs/models/chatrequest.md index 8b7cefb9..4e5e35db 100644 --- a/docs/models/chatrequest.md +++ b/docs/models/chatrequest.md @@ -12,5 +12,6 @@ | `inclusions` | [Optional[models.ChatRestrictionFilters]](../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `exclusions` | [Optional[models.ChatRestrictionFilters]](../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 30000 | +| `session_info` | [Optional[models.SessionInfo]](../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | | `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. | | | `stream` | *Optional[bool]* | :heavy_minus_sign: | If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. | | \ No newline at end of file diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md index e2fcebc5..7aecec69 100644 --- a/docs/sdks/clientchat/README.md +++ b/docs/sdks/clientchat/README.md @@ -58,6 +58,7 @@ with Glean( | `inclusions` | [Optional[models.ChatRestrictionFilters]](../../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `exclusions` | [Optional[models.ChatRestrictionFilters]](../../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 30000 | +| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | | `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. | | | `stream` | *Optional[bool]* | :heavy_minus_sign: | If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | @@ -428,6 +429,7 @@ with Glean( | `inclusions` | [Optional[models.ChatRestrictionFilters]](../../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `exclusions` | [Optional[models.ChatRestrictionFilters]](../../models/chatrestrictionfilters.md) | :heavy_minus_sign: | N/A | | | `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 30000 | +| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | | `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. | | | `stream` | *Optional[bool]* | :heavy_minus_sign: | If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | diff --git a/docs/sdks/data/README.md b/docs/sdks/data/README.md deleted file mode 100644 index b58f81b1..00000000 --- a/docs/sdks/data/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Data -(*client.governance.data*) - -## Overview - -### Available Operations diff --git a/docs/sdks/governance/README.md b/docs/sdks/governance/README.md deleted file mode 100644 index 7e51a2f6..00000000 --- a/docs/sdks/governance/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Governance -(*client.governance*) - -## Overview - -### Available Operations diff --git a/docs/sdks/governancedocuments/README.md b/docs/sdks/governancedocuments/README.md deleted file mode 100644 index 35b34c52..00000000 --- a/docs/sdks/governancedocuments/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# GovernanceDocuments -(*client.governance.documents*) - -## Overview - -### Available Operations diff --git a/docs/sdks/policies/README.md b/docs/sdks/policies/README.md index 9022f666..bb27c6c2 100644 --- a/docs/sdks/policies/README.md +++ b/docs/sdks/policies/README.md @@ -5,11 +5,11 @@ ### Available Operations -* [retrieve](#retrieve) - Gets specified Policy. -* [update](#update) - Updates an existing policy. -* [list](#list) - Lists policies. -* [create](#create) - Creates new policy. -* [download](#download) - Downloads violations CSV for policy. +* [retrieve](#retrieve) - Gets specified policy +* [update](#update) - Updates an existing policy +* [list](#list) - Lists policies +* [create](#create) - Creates new policy +* [download](#download) - Downloads violations CSV for policy ## retrieve diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index 4f245c85..a1896679 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -5,9 +5,9 @@ ### Available Operations -* [create](#create) - Creates new one-time report. -* [download](#download) - Downloads violations CSV for report. -* [status](#status) - Fetches report run status. +* [create](#create) - Creates new one-time report +* [download](#download) - Downloads violations CSV for report +* [status](#status) - Fetches report run status ## create diff --git a/docs/sdks/visibilityoverrides/README.md b/docs/sdks/visibilityoverrides/README.md index 34742cda..261b22d8 100644 --- a/docs/sdks/visibilityoverrides/README.md +++ b/docs/sdks/visibilityoverrides/README.md @@ -5,8 +5,8 @@ ### Available Operations -* [list](#list) - Fetches documents visibility. -* [create](#create) - Hide/Un-hide docs. +* [list](#list) - Fetches documents visibility +* [create](#create) - Hide or unhide docs ## list diff --git a/pyproject.toml b/pyproject.toml index cfaf6724..ed4ac274 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "glean-api-client" -version = "0.5.2" +version = "0.6.0" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." }] license = "MIT" diff --git a/scripts/prepare_readme.py b/scripts/prepare_readme.py index c50c18ce..439a1640 100644 --- a/scripts/prepare_readme.py +++ b/scripts/prepare_readme.py @@ -1,40 +1,7 @@ -""" -Prepare README for PyPI publication. - -This script processes README.md to create README-PYPI.md with PyPI-compatible formatting: -- Converts relative URLs to absolute GitHub URLs so links work on PyPI -- Updates pyproject.toml to reference the PyPI-ready README file - -The original README.md remains unchanged for GitHub display, while README-PYPI.md -is used for package publishing to ensure all documentation links function properly -on the PyPI package page. -""" +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" import re - - -def update_pyproject_readme_path(): - """Update pyproject.toml to point to the PyPI readme file.""" - pyproject_path = "pyproject.toml" - - try: - with open(pyproject_path, "r", encoding="utf-8") as f: - content = f.read() - - updated_content = re.sub( - r'readme\s*=\s*"README\.md"', 'readme = "README-PYPI.md"', content - ) - - if updated_content != content: - with open(pyproject_path, "w", encoding="utf-8") as f: - f.write(updated_content) - print("Updated pyproject.toml to use README-PYPI.md") - else: - print("No changes needed in pyproject.toml") - - except Exception as e: - print(f"Failed to update pyproject.toml: {e}") - +import shutil try: with open("README.md", "r", encoding="utf-8") as rh: @@ -56,10 +23,11 @@ def update_pyproject_readme_path(): with open("README-PYPI.md", "w", encoding="utf-8") as wh: wh.write(readme_contents) - - print("Successfully created README-PYPI.md") - update_pyproject_readme_path() - except Exception as e: - print("Failed to update README.md to use absolute URLs for PyPi") - print(e) + try: + print("Failed to rewrite README.md to README-PYPI.md, copying original instead") + print(e) + shutil.copyfile("README.md", "README-PYPI.md") + except Exception as ie: + print("Failed to copy README.md to README-PYPI.md") + print(ie) diff --git a/src/glean/__init__.py b/src/glean/__init__.py index 04d5173d..833c68cd 100644 --- a/src/glean/__init__.py +++ b/src/glean/__init__.py @@ -1,7 +1,4 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from pkgutil import extend_path - -__path__ = extend_path(__path__, __name__) from ._version import ( __title__, diff --git a/src/glean/_hooks/types.py b/src/glean/_hooks/types.py index 031b0a58..05fd0c94 100644 --- a/src/glean/_hooks/types.py +++ b/src/glean/_hooks/types.py @@ -2,11 +2,13 @@ from abc import ABC, abstractmethod from glean.httpclient import HttpClient +from glean.sdkconfiguration import SDKConfiguration import httpx from typing import Any, Callable, List, Optional, Tuple, Union class HookContext: + config: SDKConfiguration base_url: str operation_id: str oauth2_scopes: Optional[List[str]] = None @@ -14,11 +16,13 @@ class HookContext: def __init__( self, + config: SDKConfiguration, base_url: str, operation_id: str, oauth2_scopes: Optional[List[str]], security_source: Optional[Union[Any, Callable[[], Any]]], ): + self.config = config self.base_url = base_url self.operation_id = operation_id self.oauth2_scopes = oauth2_scopes @@ -28,6 +32,7 @@ def __init__( class BeforeRequestContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( + hook_ctx.config, hook_ctx.base_url, hook_ctx.operation_id, hook_ctx.oauth2_scopes, @@ -38,6 +43,7 @@ def __init__(self, hook_ctx: HookContext): class AfterSuccessContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( + hook_ctx.config, hook_ctx.base_url, hook_ctx.operation_id, hook_ctx.oauth2_scopes, @@ -48,6 +54,7 @@ def __init__(self, hook_ctx: HookContext): class AfterErrorContext(HookContext): def __init__(self, hook_ctx: HookContext): super().__init__( + hook_ctx.config, hook_ctx.base_url, hook_ctx.operation_id, hook_ctx.oauth2_scopes, diff --git a/src/glean/_version.py b/src/glean/_version.py index fd59e539..f81e0b49 100644 --- a/src/glean/_version.py +++ b/src/glean/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean" -__version__: str = "0.5.2" +__version__: str = "0.6.0" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.610.0" -__user_agent__: str = "speakeasy-sdk/python 0.5.2 2.610.0 0.9.0 glean" +__gen_version__: str = "2.616.1" +__user_agent__: str = "speakeasy-sdk/python 0.6.0 2.616.1 0.9.0 glean" try: if __package__ is not None: diff --git a/src/glean/agents.py b/src/glean/agents.py index 0e484312..f5f56c3f 100644 --- a/src/glean/agents.py +++ b/src/glean/agents.py @@ -71,6 +71,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getAgent", oauth2_scopes=[], @@ -167,6 +168,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getAgent", oauth2_scopes=[], @@ -263,6 +265,7 @@ def retrieve_schemas( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getAgentSchemas", oauth2_scopes=[], @@ -359,6 +362,7 @@ async def retrieve_schemas_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getAgentSchemas", oauth2_scopes=[], @@ -457,6 +461,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="searchAgents", oauth2_scopes=[], @@ -555,6 +560,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="searchAgents", oauth2_scopes=[], @@ -653,6 +659,7 @@ def run_stream( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createAndStreamRun", oauth2_scopes=[], @@ -753,6 +760,7 @@ async def run_stream_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createAndStreamRun", oauth2_scopes=[], @@ -853,6 +861,7 @@ def run( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createAndWaitRun", oauth2_scopes=[], @@ -953,6 +962,7 @@ async def run_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createAndWaitRun", oauth2_scopes=[], diff --git a/src/glean/announcements.py b/src/glean/announcements.py index 832e8944..6ef937c7 100644 --- a/src/glean/announcements.py +++ b/src/glean/announcements.py @@ -117,6 +117,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createannouncement", oauth2_scopes=[], @@ -258,6 +259,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createannouncement", oauth2_scopes=[], @@ -354,6 +356,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteannouncement", oauth2_scopes=[], @@ -450,6 +453,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteannouncement", oauth2_scopes=[], @@ -594,6 +598,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updateannouncement", oauth2_scopes=[], @@ -738,6 +743,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updateannouncement", oauth2_scopes=[], diff --git a/src/glean/answers.py b/src/glean/answers.py index 2fac68e1..3515091c 100644 --- a/src/glean/answers.py +++ b/src/glean/answers.py @@ -71,6 +71,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createanswer", oauth2_scopes=[], @@ -167,6 +168,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createanswer", oauth2_scopes=[], @@ -266,6 +268,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteanswer", oauth2_scopes=[], @@ -365,6 +368,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteanswer", oauth2_scopes=[], @@ -539,6 +543,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editanswer", oauth2_scopes=[], @@ -713,6 +718,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editanswer", oauth2_scopes=[], @@ -811,6 +817,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getanswer", oauth2_scopes=[], @@ -909,6 +916,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getanswer", oauth2_scopes=[], @@ -1007,6 +1015,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listanswers", oauth2_scopes=[], @@ -1105,6 +1114,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listanswers", oauth2_scopes=[], diff --git a/src/glean/basesdk.py b/src/glean/basesdk.py index 45a8cff6..5b01f2ae 100644 --- a/src/glean/basesdk.py +++ b/src/glean/basesdk.py @@ -214,12 +214,12 @@ def do_request( client = self.sdk_configuration.client logger = self.sdk_configuration.debug_logger + hooks = self.sdk_configuration.__dict__["_hooks"] + def do(): http_res = None try: - req = self.sdk_configuration.get_hooks().before_request( - BeforeRequestContext(hook_ctx), request - ) + req = hooks.before_request(BeforeRequestContext(hook_ctx), request) logger.debug( "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s", req.method, @@ -233,9 +233,7 @@ def do(): http_res = client.send(req, stream=stream) except Exception as e: - _, e = self.sdk_configuration.get_hooks().after_error( - AfterErrorContext(hook_ctx), None, e - ) + _, e = hooks.after_error(AfterErrorContext(hook_ctx), None, e) if e is not None: logger.debug("Request Exception", exc_info=True) raise e @@ -253,7 +251,7 @@ def do(): ) if utils.match_status_codes(error_status_codes, http_res.status_code): - result, err = self.sdk_configuration.get_hooks().after_error( + result, err = hooks.after_error( AfterErrorContext(hook_ctx), http_res, None ) if err is not None: @@ -273,9 +271,7 @@ def do(): http_res = do() if not utils.match_status_codes(error_status_codes, http_res.status_code): - http_res = self.sdk_configuration.get_hooks().after_success( - AfterSuccessContext(hook_ctx), http_res - ) + http_res = hooks.after_success(AfterSuccessContext(hook_ctx), http_res) return http_res @@ -290,12 +286,12 @@ async def do_request_async( client = self.sdk_configuration.async_client logger = self.sdk_configuration.debug_logger + hooks = self.sdk_configuration.__dict__["_hooks"] + async def do(): http_res = None try: - req = self.sdk_configuration.get_hooks().before_request( - BeforeRequestContext(hook_ctx), request - ) + req = hooks.before_request(BeforeRequestContext(hook_ctx), request) logger.debug( "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s", req.method, @@ -309,9 +305,7 @@ async def do(): http_res = await client.send(req, stream=stream) except Exception as e: - _, e = self.sdk_configuration.get_hooks().after_error( - AfterErrorContext(hook_ctx), None, e - ) + _, e = hooks.after_error(AfterErrorContext(hook_ctx), None, e) if e is not None: logger.debug("Request Exception", exc_info=True) raise e @@ -329,7 +323,7 @@ async def do(): ) if utils.match_status_codes(error_status_codes, http_res.status_code): - result, err = self.sdk_configuration.get_hooks().after_error( + result, err = hooks.after_error( AfterErrorContext(hook_ctx), http_res, None ) if err is not None: @@ -351,8 +345,6 @@ async def do(): http_res = await do() if not utils.match_status_codes(error_status_codes, http_res.status_code): - http_res = self.sdk_configuration.get_hooks().after_success( - AfterSuccessContext(hook_ctx), http_res - ) + http_res = hooks.after_success(AfterSuccessContext(hook_ctx), http_res) return http_res diff --git a/src/glean/client_activity.py b/src/glean/client_activity.py index 8ef36461..d7cc7412 100644 --- a/src/glean/client_activity.py +++ b/src/glean/client_activity.py @@ -71,6 +71,7 @@ def report( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="activity", oauth2_scopes=[], @@ -167,6 +168,7 @@ async def report_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="activity", oauth2_scopes=[], @@ -266,6 +268,7 @@ def feedback( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="feedback", oauth2_scopes=[], @@ -365,6 +368,7 @@ async def feedback_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="feedback", oauth2_scopes=[], diff --git a/src/glean/client_authentication.py b/src/glean/client_authentication.py index 842848b3..408d224a 100644 --- a/src/glean/client_authentication.py +++ b/src/glean/client_authentication.py @@ -61,6 +61,7 @@ def create_token( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createauthtoken", oauth2_scopes=[], @@ -147,6 +148,7 @@ async def create_token_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createauthtoken", oauth2_scopes=[], diff --git a/src/glean/client_chat.py b/src/glean/client_chat.py index d7011bb6..636eff9b 100644 --- a/src/glean/client_chat.py +++ b/src/glean/client_chat.py @@ -26,6 +26,9 @@ def create( Union[models.ChatRestrictionFilters, models.ChatRestrictionFiltersTypedDict] ] = None, timeout_millis: Optional[int] = None, + session_info: Optional[ + Union[models.SessionInfo, models.SessionInfoTypedDict] + ] = None, application_id: Optional[str] = None, stream: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -45,6 +48,7 @@ def create( :param inclusions: :param exclusions: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + :param session_info: :param application_id: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. :param stream: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. :param retries: Override the default retry configuration for this method @@ -78,6 +82,9 @@ def create( exclusions, Optional[models.ChatRestrictionFilters] ), timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), application_id=application_id, stream=stream, ), @@ -112,6 +119,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="chat", oauth2_scopes=[], @@ -163,6 +171,9 @@ async def create_async( Union[models.ChatRestrictionFilters, models.ChatRestrictionFiltersTypedDict] ] = None, timeout_millis: Optional[int] = None, + session_info: Optional[ + Union[models.SessionInfo, models.SessionInfoTypedDict] + ] = None, application_id: Optional[str] = None, stream: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -182,6 +193,7 @@ async def create_async( :param inclusions: :param exclusions: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + :param session_info: :param application_id: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. :param stream: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. :param retries: Override the default retry configuration for this method @@ -215,6 +227,9 @@ async def create_async( exclusions, Optional[models.ChatRestrictionFilters] ), timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), application_id=application_id, stream=stream, ), @@ -249,6 +264,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="chat", oauth2_scopes=[], @@ -342,6 +358,7 @@ def delete_all( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteallchats", oauth2_scopes=[], @@ -435,6 +452,7 @@ async def delete_all_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteallchats", oauth2_scopes=[], @@ -540,6 +558,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletechats", oauth2_scopes=[], @@ -645,6 +664,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletechats", oauth2_scopes=[], @@ -746,6 +766,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchat", oauth2_scopes=[], @@ -847,6 +868,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchat", oauth2_scopes=[], @@ -940,6 +962,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listchats", oauth2_scopes=[], @@ -1033,6 +1056,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listchats", oauth2_scopes=[], @@ -1138,6 +1162,7 @@ def retrieve_application( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchatapplication", oauth2_scopes=[], @@ -1245,6 +1270,7 @@ async def retrieve_application_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchatapplication", oauth2_scopes=[], @@ -1352,6 +1378,7 @@ def upload_files( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="uploadchatfiles", oauth2_scopes=[], @@ -1457,6 +1484,7 @@ async def upload_files_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="uploadchatfiles", oauth2_scopes=[], @@ -1562,6 +1590,7 @@ def retrieve_files( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchatfiles", oauth2_scopes=[], @@ -1667,6 +1696,7 @@ async def retrieve_files_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getchatfiles", oauth2_scopes=[], @@ -1772,6 +1802,7 @@ def delete_files( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletechatfiles", oauth2_scopes=[], @@ -1877,6 +1908,7 @@ async def delete_files_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletechatfiles", oauth2_scopes=[], @@ -1928,6 +1960,9 @@ def create_stream( Union[models.ChatRestrictionFilters, models.ChatRestrictionFiltersTypedDict] ] = None, timeout_millis: Optional[int] = None, + session_info: Optional[ + Union[models.SessionInfo, models.SessionInfoTypedDict] + ] = None, application_id: Optional[str] = None, stream: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -1947,6 +1982,7 @@ def create_stream( :param inclusions: :param exclusions: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + :param session_info: :param application_id: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. :param stream: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. :param retries: Override the default retry configuration for this method @@ -1980,6 +2016,9 @@ def create_stream( exclusions, Optional[models.ChatRestrictionFilters] ), timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), application_id=application_id, stream=stream, ), @@ -2014,6 +2053,7 @@ def create_stream( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="chatStream", oauth2_scopes=[], @@ -2065,6 +2105,9 @@ async def create_stream_async( Union[models.ChatRestrictionFilters, models.ChatRestrictionFiltersTypedDict] ] = None, timeout_millis: Optional[int] = None, + session_info: Optional[ + Union[models.SessionInfo, models.SessionInfoTypedDict] + ] = None, application_id: Optional[str] = None, stream: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -2084,6 +2127,7 @@ async def create_stream_async( :param inclusions: :param exclusions: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + :param session_info: :param application_id: The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. :param stream: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. :param retries: Override the default retry configuration for this method @@ -2117,6 +2161,9 @@ async def create_stream_async( exclusions, Optional[models.ChatRestrictionFilters] ), timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), application_id=application_id, stream=stream, ), @@ -2151,6 +2198,7 @@ async def create_stream_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="chatStream", oauth2_scopes=[], diff --git a/src/glean/client_documents.py b/src/glean/client_documents.py index 4628a657..613aae6c 100644 --- a/src/glean/client_documents.py +++ b/src/glean/client_documents.py @@ -74,6 +74,7 @@ def retrieve_permissions( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocpermissions", oauth2_scopes=[], @@ -172,6 +173,7 @@ async def retrieve_permissions_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocpermissions", oauth2_scopes=[], @@ -270,6 +272,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocuments", oauth2_scopes=[], @@ -368,6 +371,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocuments", oauth2_scopes=[], @@ -475,6 +479,7 @@ def retrieve_by_facets( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocumentsbyfacets", oauth2_scopes=[], @@ -584,6 +589,7 @@ async def retrieve_by_facets_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocumentsbyfacets", oauth2_scopes=[], @@ -698,6 +704,7 @@ def summarize( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="summarize", oauth2_scopes=[], @@ -810,6 +817,7 @@ async def summarize_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="summarize", oauth2_scopes=[], diff --git a/src/glean/client_shortcuts.py b/src/glean/client_shortcuts.py index 7dace99a..d56841d4 100644 --- a/src/glean/client_shortcuts.py +++ b/src/glean/client_shortcuts.py @@ -73,6 +73,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createshortcut", oauth2_scopes=[], @@ -171,6 +172,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createshortcut", oauth2_scopes=[], @@ -267,6 +269,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteshortcut", oauth2_scopes=[], @@ -363,6 +366,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deleteshortcut", oauth2_scopes=[], @@ -461,6 +465,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getshortcut", oauth2_scopes=[], @@ -559,6 +564,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getshortcut", oauth2_scopes=[], @@ -676,6 +682,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listshortcuts", oauth2_scopes=[], @@ -795,6 +802,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listshortcuts", oauth2_scopes=[], @@ -931,6 +939,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updateshortcut", oauth2_scopes=[], @@ -1065,6 +1074,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updateshortcut", oauth2_scopes=[], diff --git a/src/glean/client_verification.py b/src/glean/client_verification.py index eff58807..d25734ea 100644 --- a/src/glean/client_verification.py +++ b/src/glean/client_verification.py @@ -80,6 +80,7 @@ def add_reminder( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="addverificationreminder", oauth2_scopes=[], @@ -185,6 +186,7 @@ async def add_reminder_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="addverificationreminder", oauth2_scopes=[], @@ -278,6 +280,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listverifications", oauth2_scopes=[], @@ -371,6 +374,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listverifications", oauth2_scopes=[], @@ -470,6 +474,7 @@ def verify( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="verify", oauth2_scopes=[], @@ -569,6 +574,7 @@ async def verify_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="verify", oauth2_scopes=[], diff --git a/src/glean/collections.py b/src/glean/collections.py index 3d022250..1407f8c7 100644 --- a/src/glean/collections.py +++ b/src/glean/collections.py @@ -82,6 +82,7 @@ def add_items( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="addcollectionitems", oauth2_scopes=[], @@ -191,6 +192,7 @@ async def add_items_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="addcollectionitems", oauth2_scopes=[], @@ -337,6 +339,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createcollection", oauth2_scopes=[], @@ -487,6 +490,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createcollection", oauth2_scopes=[], @@ -592,6 +596,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletecollection", oauth2_scopes=[], @@ -697,6 +702,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletecollection", oauth2_scopes=[], @@ -805,6 +811,7 @@ def delete_item( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletecollectionitem", oauth2_scopes=[], @@ -909,6 +916,7 @@ async def delete_item_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="deletecollectionitem", oauth2_scopes=[], @@ -1055,6 +1063,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editcollection", oauth2_scopes=[], @@ -1205,6 +1214,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editcollection", oauth2_scopes=[], @@ -1319,6 +1329,7 @@ def update_item( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editcollectionitem", oauth2_scopes=[], @@ -1429,6 +1440,7 @@ async def update_item_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editcollectionitem", oauth2_scopes=[], @@ -1536,6 +1548,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getcollection", oauth2_scopes=[], @@ -1641,6 +1654,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getcollection", oauth2_scopes=[], @@ -1739,6 +1753,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listcollections", oauth2_scopes=[], @@ -1837,6 +1852,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listcollections", oauth2_scopes=[], diff --git a/src/glean/datasources.py b/src/glean/datasources.py index 3396a901..73e6f88b 100644 --- a/src/glean/datasources.py +++ b/src/glean/datasources.py @@ -174,6 +174,7 @@ def add( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/adddatasource", oauth2_scopes=[], @@ -373,6 +374,7 @@ async def add_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/adddatasource", oauth2_scopes=[], @@ -469,6 +471,7 @@ def retrieve_config( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdatasourceconfig", oauth2_scopes=[], @@ -565,6 +568,7 @@ async def retrieve_config_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdatasourceconfig", oauth2_scopes=[], diff --git a/src/glean/entities.py b/src/glean/entities.py index c1963edc..21f54952 100644 --- a/src/glean/entities.py +++ b/src/glean/entities.py @@ -73,6 +73,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listentities", oauth2_scopes=[], @@ -171,6 +172,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listentities", oauth2_scopes=[], @@ -269,6 +271,7 @@ def read_people( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="people", oauth2_scopes=[], @@ -367,6 +370,7 @@ async def read_people_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="people", oauth2_scopes=[], diff --git a/src/glean/indexing_authentication.py b/src/glean/indexing_authentication.py index 8580ca6f..ceb1d5e0 100644 --- a/src/glean/indexing_authentication.py +++ b/src/glean/indexing_authentication.py @@ -61,6 +61,7 @@ def rotate_token( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/rotatetoken", oauth2_scopes=[], @@ -147,6 +148,7 @@ async def rotate_token_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/rotatetoken", oauth2_scopes=[], diff --git a/src/glean/indexing_datasource.py b/src/glean/indexing_datasource.py index c2c3f229..16ea3445 100644 --- a/src/glean/indexing_datasource.py +++ b/src/glean/indexing_datasource.py @@ -71,6 +71,7 @@ def status( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/status", oauth2_scopes=[], @@ -169,6 +170,7 @@ async def status_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/status", oauth2_scopes=[], diff --git a/src/glean/indexing_documents.py b/src/glean/indexing_documents.py index a1655370..c8001a02 100644 --- a/src/glean/indexing_documents.py +++ b/src/glean/indexing_documents.py @@ -75,6 +75,7 @@ def add_or_update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexdocument", oauth2_scopes=[], @@ -174,6 +175,7 @@ async def add_or_update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexdocument", oauth2_scopes=[], @@ -280,6 +282,7 @@ def index( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexdocuments", oauth2_scopes=[], @@ -386,6 +389,7 @@ async def index_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexdocuments", oauth2_scopes=[], @@ -504,6 +508,7 @@ def bulk_index( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexdocuments", oauth2_scopes=[], @@ -622,6 +627,7 @@ async def bulk_index_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexdocuments", oauth2_scopes=[], @@ -740,6 +746,7 @@ def process_all( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processalldocuments", oauth2_scopes=[], @@ -858,6 +865,7 @@ async def process_all_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processalldocuments", oauth2_scopes=[], @@ -963,6 +971,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletedocument", oauth2_scopes=[], @@ -1068,6 +1077,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletedocument", oauth2_scopes=[], @@ -1179,6 +1189,7 @@ def debug( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/document", oauth2_scopes=[], @@ -1290,6 +1301,7 @@ async def debug_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/document", oauth2_scopes=[], @@ -1403,6 +1415,7 @@ def debug_many( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/documents", oauth2_scopes=[], @@ -1516,6 +1529,7 @@ async def debug_many_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/documents", oauth2_scopes=[], @@ -1624,6 +1638,7 @@ def check_access( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/checkdocumentaccess", oauth2_scopes=[], @@ -1734,6 +1749,7 @@ async def check_access_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/checkdocumentaccess", oauth2_scopes=[], @@ -1844,6 +1860,7 @@ def status( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdocumentstatus", oauth2_scopes=[], @@ -1952,6 +1969,7 @@ async def status_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdocumentstatus", oauth2_scopes=[], @@ -2054,6 +2072,7 @@ def count( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdocumentcount", oauth2_scopes=[], @@ -2156,6 +2175,7 @@ async def count_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getdocumentcount", oauth2_scopes=[], diff --git a/src/glean/indexing_permissions.py b/src/glean/indexing_permissions.py index e7eb99fb..4bc17305 100644 --- a/src/glean/indexing_permissions.py +++ b/src/glean/indexing_permissions.py @@ -88,6 +88,7 @@ def update_permissions( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/updatepermissions", oauth2_scopes=[], @@ -201,6 +202,7 @@ async def update_permissions_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/updatepermissions", oauth2_scopes=[], @@ -305,6 +307,7 @@ def index_user( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexuser", oauth2_scopes=[], @@ -409,6 +412,7 @@ async def index_user_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexuser", oauth2_scopes=[], @@ -528,6 +532,7 @@ def bulk_index_users( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexusers", oauth2_scopes=[], @@ -647,6 +652,7 @@ async def bulk_index_users_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexusers", oauth2_scopes=[], @@ -751,6 +757,7 @@ def index_group( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexgroup", oauth2_scopes=[], @@ -855,6 +862,7 @@ async def index_group_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexgroup", oauth2_scopes=[], @@ -974,6 +982,7 @@ def bulk_index_groups( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexgroups", oauth2_scopes=[], @@ -1093,6 +1102,7 @@ async def bulk_index_groups_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexgroups", oauth2_scopes=[], @@ -1200,6 +1210,7 @@ def index_membership( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexmembership", oauth2_scopes=[], @@ -1307,6 +1318,7 @@ async def index_membership_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexmembership", oauth2_scopes=[], @@ -1426,6 +1438,7 @@ def bulk_index_memberships( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexmemberships", oauth2_scopes=[], @@ -1545,6 +1558,7 @@ async def bulk_index_memberships_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexmemberships", oauth2_scopes=[], @@ -1653,6 +1667,7 @@ def process_memberships( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processallmemberships", oauth2_scopes=[], @@ -1761,6 +1776,7 @@ async def process_memberships_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processallmemberships", oauth2_scopes=[], @@ -1863,6 +1879,7 @@ def delete_user( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteuser", oauth2_scopes=[], @@ -1965,6 +1982,7 @@ async def delete_user_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteuser", oauth2_scopes=[], @@ -2067,6 +2085,7 @@ def delete_group( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletegroup", oauth2_scopes=[], @@ -2169,6 +2188,7 @@ async def delete_group_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletegroup", oauth2_scopes=[], @@ -2276,6 +2296,7 @@ def delete_membership( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletemembership", oauth2_scopes=[], @@ -2383,6 +2404,7 @@ async def delete_membership_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deletemembership", oauth2_scopes=[], @@ -2482,6 +2504,7 @@ def authorize_beta_users( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/betausers", oauth2_scopes=[], @@ -2581,6 +2604,7 @@ async def authorize_beta_users_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/betausers", oauth2_scopes=[], diff --git a/src/glean/indexing_shortcuts.py b/src/glean/indexing_shortcuts.py index 3e2a9af9..8b085b55 100644 --- a/src/glean/indexing_shortcuts.py +++ b/src/glean/indexing_shortcuts.py @@ -87,6 +87,7 @@ def bulk_index( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexshortcuts", oauth2_scopes=[], @@ -199,6 +200,7 @@ async def bulk_index_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexshortcuts", oauth2_scopes=[], @@ -311,6 +313,7 @@ def upload( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/uploadshortcuts", oauth2_scopes=[], @@ -423,6 +426,7 @@ async def upload_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/uploadshortcuts", oauth2_scopes=[], diff --git a/src/glean/insights.py b/src/glean/insights.py index d430da06..03573d38 100644 --- a/src/glean/insights.py +++ b/src/glean/insights.py @@ -103,6 +103,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="insights", oauth2_scopes=[], @@ -231,6 +232,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="insights", oauth2_scopes=[], diff --git a/src/glean/messages.py b/src/glean/messages.py index c3aabc47..610cafcb 100644 --- a/src/glean/messages.py +++ b/src/glean/messages.py @@ -92,6 +92,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="messages", oauth2_scopes=[], @@ -209,6 +210,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="messages", oauth2_scopes=[], diff --git a/src/glean/models/chatrequest.py b/src/glean/models/chatrequest.py index d287cfcf..6c543496 100644 --- a/src/glean/models/chatrequest.py +++ b/src/glean/models/chatrequest.py @@ -7,6 +7,7 @@ ChatRestrictionFilters, ChatRestrictionFiltersTypedDict, ) +from .sessioninfo import SessionInfo, SessionInfoTypedDict from glean.types import BaseModel import pydantic from typing import List, Optional @@ -26,6 +27,7 @@ class ChatRequestTypedDict(TypedDict): exclusions: NotRequired[ChatRestrictionFiltersTypedDict] timeout_millis: NotRequired[int] r"""Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.""" + session_info: NotRequired[SessionInfoTypedDict] application_id: NotRequired[str] r"""The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.""" stream: NotRequired[bool] @@ -56,6 +58,10 @@ class ChatRequest(BaseModel): ) r"""Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer.""" + session_info: Annotated[ + Optional[SessionInfo], pydantic.Field(alias="sessionInfo") + ] = None + application_id: Annotated[Optional[str], pydantic.Field(alias="applicationId")] = ( None ) diff --git a/src/glean/people.py b/src/glean/people.py index 4faffa0a..aff644ce 100644 --- a/src/glean/people.py +++ b/src/glean/people.py @@ -84,6 +84,7 @@ def debug( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/user", oauth2_scopes=[], @@ -192,6 +193,7 @@ async def debug_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/debug/{datasource}/user", oauth2_scopes=[], @@ -294,6 +296,7 @@ def count( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getusercount", oauth2_scopes=[], @@ -396,6 +399,7 @@ async def count_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/getusercount", oauth2_scopes=[], @@ -497,6 +501,7 @@ def index( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexemployee", oauth2_scopes=[], @@ -598,6 +603,7 @@ async def index_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexemployee", oauth2_scopes=[], @@ -714,6 +720,7 @@ def bulk_index( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexemployees", oauth2_scopes=[], @@ -830,6 +837,7 @@ async def bulk_index_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexemployees", oauth2_scopes=[], @@ -917,6 +925,7 @@ def process_all_employees_and_teams( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processallemployeesandteams", oauth2_scopes=[], @@ -1004,6 +1013,7 @@ async def process_all_employees_and_teams_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/processallemployeesandteams", oauth2_scopes=[], @@ -1103,6 +1113,7 @@ def delete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteemployee", oauth2_scopes=[], @@ -1202,6 +1213,7 @@ async def delete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteemployee", oauth2_scopes=[], @@ -1301,6 +1313,7 @@ def index_team( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexteam", oauth2_scopes=[], @@ -1400,6 +1413,7 @@ async def index_team_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/indexteam", oauth2_scopes=[], @@ -1496,6 +1510,7 @@ def delete_team( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteteam", oauth2_scopes=[], @@ -1592,6 +1607,7 @@ async def delete_team_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/deleteteam", oauth2_scopes=[], @@ -1702,6 +1718,7 @@ def bulk_index_teams( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexteams", oauth2_scopes=[], @@ -1812,6 +1829,7 @@ async def bulk_index_teams_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/api/index/v1/bulkindexteams", oauth2_scopes=[], diff --git a/src/glean/pins.py b/src/glean/pins.py index 83b9003d..ab373024 100644 --- a/src/glean/pins.py +++ b/src/glean/pins.py @@ -73,6 +73,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editpin", oauth2_scopes=[], @@ -171,6 +172,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="editpin", oauth2_scopes=[], @@ -269,6 +271,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getpin", oauth2_scopes=[], @@ -367,6 +370,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getpin", oauth2_scopes=[], @@ -465,6 +469,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listpins", oauth2_scopes=[], @@ -563,6 +568,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listpins", oauth2_scopes=[], @@ -661,6 +667,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="pin", oauth2_scopes=[], @@ -759,6 +766,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="pin", oauth2_scopes=[], @@ -855,6 +863,7 @@ def remove( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="unpin", oauth2_scopes=[], @@ -951,6 +960,7 @@ async def remove_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="unpin", oauth2_scopes=[], diff --git a/src/glean/policies.py b/src/glean/policies.py index 449b6a5b..2c644408 100644 --- a/src/glean/policies.py +++ b/src/glean/policies.py @@ -19,7 +19,7 @@ def retrieve( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetDlpReportResponse: - r"""Gets specified Policy. + r"""Gets specified policy Fetches the specified policy version, or the latest if no version is provided. @@ -71,6 +71,7 @@ def retrieve( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getpolicy", oauth2_scopes=[], @@ -115,7 +116,7 @@ async def retrieve_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetDlpReportResponse: - r"""Gets specified Policy. + r"""Gets specified policy Fetches the specified policy version, or the latest if no version is provided. @@ -167,6 +168,7 @@ async def retrieve_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getpolicy", oauth2_scopes=[], @@ -215,7 +217,7 @@ def update( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDlpReportResponse: - r"""Updates an existing policy. + r"""Updates an existing policy Updates an existing policy. @@ -284,6 +286,7 @@ def update( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updatepolicy", oauth2_scopes=[], @@ -332,7 +335,7 @@ async def update_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDlpReportResponse: - r"""Updates an existing policy. + r"""Updates an existing policy Updates an existing policy. @@ -401,6 +404,7 @@ async def update_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="updatepolicy", oauth2_scopes=[], @@ -445,7 +449,7 @@ def list( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.ListDlpReportsResponse: - r"""Lists policies. + r"""Lists policies Lists policies with filtering. @@ -497,6 +501,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listpolicies", oauth2_scopes=[], @@ -541,7 +546,7 @@ async def list_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.ListDlpReportsResponse: - r"""Lists policies. + r"""Lists policies Lists policies with filtering. @@ -593,6 +598,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="listpolicies", oauth2_scopes=[], @@ -638,7 +644,7 @@ def create( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.CreateDlpReportResponse: - r"""Creates new policy. + r"""Creates new policy Creates a new policy with specified specifications and returns its id. @@ -691,6 +697,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createpolicy", oauth2_scopes=[], @@ -736,7 +743,7 @@ async def create_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.CreateDlpReportResponse: - r"""Creates new policy. + r"""Creates new policy Creates a new policy with specified specifications and returns its id. @@ -789,6 +796,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createpolicy", oauth2_scopes=[], @@ -832,7 +840,7 @@ def download( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> str: - r"""Downloads violations CSV for policy. + r"""Downloads violations CSV for policy Downloads CSV violations report for a specific policy id. This does not support continuous policies. @@ -882,6 +890,7 @@ def download( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="downloadpolicycsv", oauth2_scopes=[], @@ -925,7 +934,7 @@ async def download_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> str: - r"""Downloads violations CSV for policy. + r"""Downloads violations CSV for policy Downloads CSV violations report for a specific policy id. This does not support continuous policies. @@ -975,6 +984,7 @@ async def download_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="downloadpolicycsv", oauth2_scopes=[], diff --git a/src/glean/reports.py b/src/glean/reports.py index e71c17e8..4f2b2001 100644 --- a/src/glean/reports.py +++ b/src/glean/reports.py @@ -20,7 +20,7 @@ def create( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDlpConfigResponse: - r"""Creates new one-time report. + r"""Creates new one-time report Creates a new one-time report and executes its batch job. @@ -73,6 +73,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createreport", oauth2_scopes=[], @@ -118,7 +119,7 @@ async def create_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDlpConfigResponse: - r"""Creates new one-time report. + r"""Creates new one-time report Creates a new one-time report and executes its batch job. @@ -171,6 +172,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="createreport", oauth2_scopes=[], @@ -214,7 +216,7 @@ def download( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> str: - r"""Downloads violations CSV for report. + r"""Downloads violations CSV for report Downloads CSV violations report for a specific report id. @@ -264,6 +266,7 @@ def download( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="downloadreportcsv", oauth2_scopes=[], @@ -307,7 +310,7 @@ async def download_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> str: - r"""Downloads violations CSV for report. + r"""Downloads violations CSV for report Downloads CSV violations report for a specific report id. @@ -357,6 +360,7 @@ async def download_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="downloadreportcsv", oauth2_scopes=[], @@ -400,7 +404,7 @@ def status( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.ReportStatusResponse: - r"""Fetches report run status. + r"""Fetches report run status Fetches the status of the run corresponding to the report-id. @@ -450,6 +454,7 @@ def status( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getreportstatus", oauth2_scopes=[], @@ -493,7 +498,7 @@ async def status_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.ReportStatusResponse: - r"""Fetches report run status. + r"""Fetches report run status Fetches the status of the run corresponding to the report-id. @@ -543,6 +548,7 @@ async def status_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getreportstatus", oauth2_scopes=[], diff --git a/src/glean/sdk.py b/src/glean/sdk.py index 0a19cc8e..c7df6ff4 100644 --- a/src/glean/sdk.py +++ b/src/glean/sdk.py @@ -126,6 +126,9 @@ def __init__( hooks = SDKHooks() + # pylint: disable=protected-access + self.sdk_configuration.__dict__["_hooks"] = hooks + current_server_url, *_ = self.sdk_configuration.get_server_details() server_url, self.sdk_configuration.client = hooks.sdk_init( current_server_url, client @@ -133,9 +136,6 @@ def __init__( if current_server_url != server_url: self.sdk_configuration.server_url = server_url - # pylint: disable=protected-access - self.sdk_configuration.__dict__["_hooks"] = hooks - weakref.finalize( self, close_clients, diff --git a/src/glean/sdkconfiguration.py b/src/glean/sdkconfiguration.py index 008c8c4c..b8510c91 100644 --- a/src/glean/sdkconfiguration.py +++ b/src/glean/sdkconfiguration.py @@ -1,6 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from ._hooks import SDKHooks from ._version import ( __gen_version__, __openapi_doc_version__, @@ -41,9 +40,6 @@ class SDKConfiguration: retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None - def __post_init__(self): - self._hooks = SDKHooks() - def get_server_details(self) -> Tuple[str, Dict[str, str]]: if self.server_url is not None and self.server_url: return remove_suffix(self.server_url, "/"), {} @@ -51,6 +47,3 @@ def get_server_details(self) -> Tuple[str, Dict[str, str]]: self.server_idx = 0 return SERVERS[self.server_idx], self.server_defaults[self.server_idx] - - def get_hooks(self) -> SDKHooks: - return self._hooks diff --git a/src/glean/search.py b/src/glean/search.py index 97ae11a2..ba847245 100644 --- a/src/glean/search.py +++ b/src/glean/search.py @@ -132,6 +132,7 @@ def query_as_admin( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="adminsearch", oauth2_scopes=[], @@ -294,6 +295,7 @@ async def query_as_admin_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="adminsearch", oauth2_scopes=[], @@ -398,6 +400,7 @@ def autocomplete( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="autocomplete", oauth2_scopes=[], @@ -496,6 +499,7 @@ async def autocomplete_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="autocomplete", oauth2_scopes=[], @@ -594,6 +598,7 @@ def retrieve_feed( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="feed", oauth2_scopes=[], @@ -692,6 +697,7 @@ async def retrieve_feed_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="feed", oauth2_scopes=[], @@ -790,6 +796,7 @@ def recommendations( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="recommendations", oauth2_scopes=[], @@ -890,6 +897,7 @@ async def recommendations_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="recommendations", oauth2_scopes=[], @@ -1048,6 +1056,7 @@ def query( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="search", oauth2_scopes=[], @@ -1210,6 +1219,7 @@ async def query_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="search", oauth2_scopes=[], diff --git a/src/glean/tools.py b/src/glean/tools.py index 0fa8c9b4..21468a56 100644 --- a/src/glean/tools.py +++ b/src/glean/tools.py @@ -68,6 +68,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="get_/rest/api/v1/tools/list", oauth2_scopes=[], @@ -161,6 +162,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="get_/rest/api/v1/tools/list", oauth2_scopes=[], @@ -265,6 +267,7 @@ def run( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/rest/api/v1/tools/call", oauth2_scopes=[], @@ -369,6 +372,7 @@ async def run_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="post_/rest/api/v1/tools/call", oauth2_scopes=[], diff --git a/src/glean/visibilityoverrides.py b/src/glean/visibilityoverrides.py index 26cada36..83124e76 100644 --- a/src/glean/visibilityoverrides.py +++ b/src/glean/visibilityoverrides.py @@ -18,7 +18,7 @@ def list( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetDocumentVisibilityOverridesResponse: - r"""Fetches documents visibility. + r"""Fetches documents visibility Fetches the visibility override status of the documents passed. @@ -68,6 +68,7 @@ def list( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocvisibility", oauth2_scopes=[], @@ -113,7 +114,7 @@ async def list_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.GetDocumentVisibilityOverridesResponse: - r"""Fetches documents visibility. + r"""Fetches documents visibility Fetches the visibility override status of the documents passed. @@ -163,6 +164,7 @@ async def list_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="getdocvisibility", oauth2_scopes=[], @@ -211,7 +213,7 @@ def create( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDocumentVisibilityOverridesResponse: - r"""Hide/Un-hide docs. + r"""Hide or unhide docs Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. @@ -270,6 +272,7 @@ def create( http_res = self.do_request( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="setdocvisibility", oauth2_scopes=[], @@ -318,7 +321,7 @@ async def create_async( timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.UpdateDocumentVisibilityOverridesResponse: - r"""Hide/Un-hide docs. + r"""Hide or unhide docs Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. @@ -377,6 +380,7 @@ async def create_async( http_res = await self.do_request_async( hook_ctx=HookContext( + config=self.sdk_configuration, base_url=base_url or "", operation_id="setdocvisibility", oauth2_scopes=[], diff --git a/tests/mockserver/internal/sdk/models/components/chatrequest.go b/tests/mockserver/internal/sdk/models/components/chatrequest.go index d4318ebe..d8ed29b3 100644 --- a/tests/mockserver/internal/sdk/models/components/chatrequest.go +++ b/tests/mockserver/internal/sdk/models/components/chatrequest.go @@ -14,7 +14,8 @@ type ChatRequest struct { Inclusions *ChatRestrictionFilters `json:"inclusions,omitempty"` Exclusions *ChatRestrictionFilters `json:"exclusions,omitempty"` // Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. - TimeoutMillis *int64 `json:"timeoutMillis,omitempty"` + TimeoutMillis *int64 `json:"timeoutMillis,omitempty"` + SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` // The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. ApplicationID *string `json:"applicationId,omitempty"` // If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. @@ -70,6 +71,13 @@ func (o *ChatRequest) GetTimeoutMillis() *int64 { return o.TimeoutMillis } +func (o *ChatRequest) GetSessionInfo() *SessionInfo { + if o == nil { + return nil + } + return o.SessionInfo +} + func (o *ChatRequest) GetApplicationID() *string { if o == nil { return nil From f235cf37cb9e817b0d8789773dd2a418365a1896 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 01:44:27 +0000 Subject: [PATCH 2/3] empty commit to trigger [run-tests] workflow From 26e6ea0ac658a7dd8f530516441eedfdb8662844 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 31 May 2025 01:44:47 +0000 Subject: [PATCH 3/3] ci: restructure glean package to namespace structure --- README.md | 46 +++++++++---------- USAGE.md | 8 ++-- docs/sdks/agents/README.md | 10 ++-- docs/sdks/announcements/README.md | 10 ++-- docs/sdks/answers/README.md | 14 +++--- docs/sdks/clientactivity/README.md | 6 +-- docs/sdks/clientauthentication/README.md | 2 +- docs/sdks/clientchat/README.md | 20 ++++---- docs/sdks/clientdocuments/README.md | 8 ++-- docs/sdks/clientshortcuts/README.md | 14 +++--- docs/sdks/clientverification/README.md | 6 +-- docs/sdks/collections/README.md | 20 ++++---- docs/sdks/datasources/README.md | 4 +- docs/sdks/entities/README.md | 4 +- docs/sdks/indexingauthentication/README.md | 2 +- docs/sdks/indexingdatasource/README.md | 2 +- docs/sdks/indexingdocuments/README.md | 20 ++++---- docs/sdks/indexingpermissions/README.md | 24 +++++----- docs/sdks/indexingshortcuts/README.md | 4 +- docs/sdks/insights/README.md | 2 +- docs/sdks/messages/README.md | 2 +- docs/sdks/people/README.md | 18 ++++---- docs/sdks/pins/README.md | 10 ++-- docs/sdks/policies/README.md | 10 ++-- docs/sdks/reports/README.md | 6 +-- docs/sdks/search/README.md | 16 +++---- docs/sdks/tools/README.md | 4 +- docs/sdks/visibilityoverrides/README.md | 4 +- examples/chat_example.py | 2 +- src/glean/{ => api_client}/__init__.py | 0 src/glean/{ => api_client}/_hooks/__init__.py | 0 .../{ => api_client}/_hooks/registration.py | 0 src/glean/{ => api_client}/_hooks/sdkhooks.py | 2 +- src/glean/{ => api_client}/_hooks/types.py | 4 +- src/glean/{ => api_client}/_version.py | 0 src/glean/{ => api_client}/agents.py | 8 ++-- src/glean/{ => api_client}/announcements.py | 8 ++-- src/glean/{ => api_client}/answers.py | 8 ++-- src/glean/{ => api_client}/basesdk.py | 6 +-- src/glean/{ => api_client}/client.py | 34 +++++++------- src/glean/{ => api_client}/client_activity.py | 8 ++-- .../{ => api_client}/client_authentication.py | 8 ++-- src/glean/{ => api_client}/client_chat.py | 8 ++-- .../{ => api_client}/client_documents.py | 8 ++-- .../{ => api_client}/client_shortcuts.py | 8 ++-- .../{ => api_client}/client_verification.py | 8 ++-- src/glean/{ => api_client}/collections.py | 8 ++-- src/glean/{ => api_client}/data.py | 4 +- src/glean/{ => api_client}/datasources.py | 8 ++-- src/glean/{ => api_client}/entities.py | 8 ++-- src/glean/{ => api_client}/errors/__init__.py | 0 .../errors/collectionerror.py | 6 +-- .../{ => api_client}/errors/gleandataerror.py | 6 +-- .../{ => api_client}/errors/gleanerror.py | 0 src/glean/{ => api_client}/governance.py | 4 +- .../{ => api_client}/governance_documents.py | 2 +- src/glean/{ => api_client}/httpclient.py | 0 src/glean/{ => api_client}/indexing.py | 14 +++--- .../indexing_authentication.py | 8 ++-- .../{ => api_client}/indexing_datasource.py | 8 ++-- .../{ => api_client}/indexing_documents.py | 8 ++-- .../{ => api_client}/indexing_permissions.py | 8 ++-- .../{ => api_client}/indexing_shortcuts.py | 8 ++-- src/glean/{ => api_client}/insights.py | 8 ++-- src/glean/{ => api_client}/messages.py | 8 ++-- src/glean/{ => api_client}/models/__init__.py | 0 src/glean/{ => api_client}/models/activity.py | 2 +- .../{ => api_client}/models/activityevent.py | 2 +- .../models/activityeventparams.py | 2 +- .../models/addcollectionitemserror.py | 2 +- .../models/addcollectionitemsrequest.py | 2 +- .../models/addcollectionitemsresponse.py | 2 +- .../models/additionalfielddefinition.py | 2 +- src/glean/{ => api_client}/models/agent.py | 2 +- .../{ => api_client}/models/agentconfig.py | 2 +- .../models/agentexecutionstatus.py | 0 src/glean/{ => api_client}/models/agentrun.py | 2 +- .../{ => api_client}/models/agentruncreate.py | 2 +- .../models/agentrunwaitresponse.py | 2 +- .../{ => api_client}/models/agentschemas.py | 2 +- .../models/aiappactioncounts.py | 2 +- .../models/aiappsinsightsresponse.py | 2 +- .../models/aiinsightsresponse.py | 2 +- .../models/allowlistoptions.py | 2 +- .../{ => api_client}/models/announcement.py | 2 +- .../{ => api_client}/models/anonymousevent.py | 2 +- src/glean/{ => api_client}/models/answer.py | 2 +- .../{ => api_client}/models/answerboard.py | 2 +- .../models/answercreationdata.py | 2 +- .../{ => api_client}/models/answerlike.py | 2 +- .../{ => api_client}/models/answerlikes.py | 2 +- .../{ => api_client}/models/answerresult.py | 2 +- .../{ => api_client}/models/appresult.py | 2 +- .../{ => api_client}/models/authconfig.py | 2 +- .../{ => api_client}/models/authtoken.py | 2 +- .../models/autocompleterequest.py | 2 +- .../models/autocompleteresponse.py | 2 +- .../models/autocompleteresult.py | 2 +- .../models/autocompleteresultgroup.py | 2 +- src/glean/{ => api_client}/models/badge.py | 2 +- .../models/bulkindexdocumentsrequest.py | 2 +- .../models/bulkindexemployeesrequest.py | 2 +- .../models/bulkindexgroupsrequest.py | 2 +- .../models/bulkindexmembershipsrequest.py | 2 +- .../models/bulkindexshortcutsrequest.py | 2 +- .../models/bulkindexteamsrequest.py | 2 +- .../models/bulkindexusersrequest.py | 2 +- .../models/bulkuploadhistoryevent.py | 2 +- .../models/calendarattendee.py | 2 +- .../models/calendarattendees.py | 2 +- .../{ => api_client}/models/calendarevent.py | 2 +- .../models/canonicalizingregextype.py | 2 +- .../models/channelinviteinfo.py | 2 +- src/glean/{ => api_client}/models/chat.py | 2 +- src/glean/{ => api_client}/models/chatfile.py | 2 +- .../models/chatfilefailurereason.py | 0 .../models/chatfilemetadata.py | 2 +- .../{ => api_client}/models/chatfilestatus.py | 0 .../{ => api_client}/models/chatmessage.py | 2 +- .../models/chatmessagecitation.py | 2 +- .../models/chatmessagefragment.py | 2 +- .../{ => api_client}/models/chatmetadata.py | 2 +- .../models/chatmetadataresult.py | 2 +- src/glean/{ => api_client}/models/chatop.py | 4 +- .../{ => api_client}/models/chatrequest.py | 2 +- .../{ => api_client}/models/chatresponse.py | 2 +- .../models/chatrestrictionfilters.py | 2 +- .../{ => api_client}/models/chatresult.py | 2 +- .../{ => api_client}/models/chatstreamop.py | 4 +- .../models/chatzerostatesuggestionoptions.py | 2 +- .../models/checkdocumentaccessrequest.py | 2 +- .../models/checkdocumentaccessresponse.py | 2 +- .../{ => api_client}/models/clustergroup.py | 2 +- .../models/clustertypeenum.py | 0 src/glean/{ => api_client}/models/code.py | 2 +- src/glean/{ => api_client}/models/codeline.py | 2 +- .../{ => api_client}/models/collection.py | 2 +- .../models/collectionerror.py | 2 +- .../{ => api_client}/models/collectionitem.py | 2 +- .../models/collectionitemdescriptor.py | 2 +- .../models/collectionpinmetadata.py | 2 +- .../models/collectionpinnablecategories.py | 0 .../models/collectionpinnabletargets.py | 0 .../models/collectionpinnedmetadata.py | 2 +- .../models/collectionpintarget.py | 2 +- .../models/commentdefinition.py | 2 +- .../models/communicationchannel.py | 0 src/glean/{ => api_client}/models/company.py | 2 +- .../{ => api_client}/models/conferencedata.py | 2 +- .../{ => api_client}/models/connectortype.py | 0 .../models/contentdefinition.py | 2 +- .../models/contentinsightsresponse.py | 2 +- .../{ => api_client}/models/contenttype.py | 0 .../{ => api_client}/models/countinfo.py | 2 +- .../models/createannouncementrequest.py | 2 +- .../models/createanswerrequest.py | 2 +- .../models/createauthtokenresponse.py | 2 +- .../models/createcollectionrequest.py | 2 +- .../models/createcollectionresponse.py | 2 +- .../models/createdlpreportrequest.py | 2 +- .../models/createdlpreportresponse.py | 2 +- .../models/createshortcutrequest.py | 2 +- .../models/createshortcutresponse.py | 2 +- .../models/customdatasourceconfig.py | 2 +- .../models/customdatavalue.py | 2 +- .../{ => api_client}/models/customentity.py | 2 +- .../models/customentitymetadata.py | 2 +- src/glean/{ => api_client}/models/customer.py | 2 +- .../models/customermetadata.py | 2 +- .../models/customfielddata.py | 2 +- .../models/customfieldvalue.py | 0 .../models/customfieldvaluehyperlink.py | 2 +- .../models/customfieldvalueperson.py | 2 +- .../models/customfieldvaluestr.py | 2 +- .../{ => api_client}/models/customproperty.py | 2 +- .../datasourcebulkmembershipdefinition.py | 2 +- .../models/datasourcegroupdefinition.py | 2 +- .../models/datasourcemembershipdefinition.py | 2 +- .../datasourceobjecttypedocumentcountentry.py | 2 +- .../models/datasourceprofile.py | 2 +- .../models/datasourceuserdefinition.py | 2 +- ...tasourcestatusidentityresponsecomponent.py | 2 +- .../models/debugdatasourcestatusresponse.py | 2 +- .../models/debugdocumentrequest.py | 2 +- .../models/debugdocumentresponse.py | 2 +- .../models/debugdocumentsrequest.py | 2 +- .../models/debugdocumentsresponse.py | 2 +- .../models/debugdocumentsresponseitem.py | 2 +- .../models/debuguserrequest.py | 2 +- .../models/debuguserresponse.py | 2 +- .../models/deleteallchatsop.py | 4 +- .../models/deleteannouncementrequest.py | 2 +- .../models/deleteanswerrequest.py | 2 +- .../models/deletechatfilesop.py | 4 +- .../models/deletechatfilesrequest.py | 2 +- .../{ => api_client}/models/deletechatsop.py | 4 +- .../models/deletechatsrequest.py | 2 +- .../models/deletecollectionitemrequest.py | 2 +- .../models/deletecollectionitemresponse.py | 2 +- .../models/deletecollectionrequest.py | 2 +- .../models/deletedocumentrequest.py | 2 +- .../models/deleteemployeerequest.py | 2 +- .../models/deletegrouprequest.py | 2 +- .../models/deletemembershiprequest.py | 2 +- .../models/deleteshortcutrequest.py | 2 +- .../models/deleteteamrequest.py | 2 +- .../models/deleteuserrequest.py | 2 +- .../{ => api_client}/models/disambiguation.py | 2 +- .../models/displayablelistitemuiconfig.py | 2 +- .../{ => api_client}/models/dlpconfig.py | 2 +- .../{ => api_client}/models/dlpfrequency.py | 0 .../{ => api_client}/models/dlpperson.py | 2 +- .../models/dlppersonmetadata.py | 2 +- .../{ => api_client}/models/dlpreport.py | 2 +- .../models/dlpreportstatus.py | 0 .../models/dlpsimpleresult.py | 0 src/glean/{ => api_client}/models/document.py | 2 +- .../models/documentcontent.py | 2 +- .../models/documentdefinition.py | 2 +- .../models/documentinsight.py | 2 +- .../models/documentinteractions.py | 2 +- .../models/documentinteractionsdefinition.py | 2 +- .../models/documentmetadata.py | 2 +- .../models/documentorerror_union.py | 2 +- .../models/documentpermissionsdefinition.py | 2 +- .../models/documentsection.py | 2 +- .../models/documentspec_union.py | 2 +- .../models/documentstatusresponse.py | 2 +- .../models/documentvisibility.py | 0 .../models/documentvisibilityoverride.py | 2 +- .../models/documentvisibilityupdateresult.py | 2 +- .../models/downloadpolicycsvop.py | 4 +- .../models/downloadreportcsvop.py | 4 +- .../models/editanswerrequest.py | 2 +- .../models/editcollectionitemrequest.py | 2 +- .../models/editcollectionitemresponse.py | 2 +- .../models/editcollectionrequest.py | 2 +- .../models/editcollectionresponse.py | 2 +- .../{ => api_client}/models/editpinrequest.py | 2 +- .../models/employeeinfodefinition.py | 2 +- .../models/employeeteaminfo.py | 2 +- .../models/entitiessortorder.py | 0 .../models/entityrelationship.py | 2 +- .../{ => api_client}/models/entitytype.py | 0 .../{ => api_client}/models/errormessage.py | 2 +- .../models/eventclassification.py | 2 +- .../models/eventclassificationname.py | 0 .../models/eventstrategyname.py | 0 .../models/externalsharingoptions.py | 2 +- .../models/externalshortcut.py | 2 +- .../{ => api_client}/models/extractedqna.py | 2 +- .../{ => api_client}/models/facetbucket.py | 2 +- .../models/facetbucketfilter.py | 2 +- .../{ => api_client}/models/facetfilter.py | 2 +- .../{ => api_client}/models/facetfilterset.py | 2 +- .../models/facetfiltervalue.py | 2 +- .../{ => api_client}/models/facetresult.py | 2 +- .../{ => api_client}/models/facetvalue.py | 2 +- .../{ => api_client}/models/favoriteinfo.py | 2 +- src/glean/{ => api_client}/models/feedback.py | 2 +- .../models/feedbackchatexchange.py | 2 +- .../{ => api_client}/models/feedbackop.py | 4 +- .../{ => api_client}/models/feedentry.py | 2 +- .../{ => api_client}/models/feedrequest.py | 2 +- .../models/feedrequestoptions.py | 2 +- .../{ => api_client}/models/feedresponse.py | 2 +- .../{ => api_client}/models/feedresult.py | 2 +- .../{ => api_client}/models/followupaction.py | 2 +- .../models/generatedattachment.py | 2 +- .../models/generatedattachmentcontent.py | 2 +- .../{ => api_client}/models/generatedqna.py | 2 +- .../models/get_rest_api_v1_tools_listop.py | 4 +- .../{ => api_client}/models/getagentop.py | 4 +- .../models/getagentschemasop.py | 4 +- .../{ => api_client}/models/getanswererror.py | 2 +- .../models/getanswerrequest.py | 2 +- .../models/getanswerresponse.py | 2 +- .../models/getchatapplicationop.py | 4 +- .../models/getchatapplicationrequest.py | 2 +- .../models/getchatapplicationresponse.py | 2 +- .../{ => api_client}/models/getchatfilesop.py | 4 +- .../models/getchatfilesrequest.py | 2 +- .../models/getchatfilesresponse.py | 2 +- .../{ => api_client}/models/getchatop.py | 4 +- .../{ => api_client}/models/getchatrequest.py | 2 +- .../models/getchatresponse.py | 2 +- .../models/getcollectionrequest.py | 2 +- .../models/getcollectionresponse.py | 2 +- .../models/getdatasourceconfigrequest.py | 2 +- .../models/getdlpreportresponse.py | 2 +- .../models/getdocpermissionsrequest.py | 2 +- .../models/getdocpermissionsresponse.py | 2 +- .../models/getdocumentcountrequest.py | 2 +- .../models/getdocumentcountresponse.py | 2 +- .../models/getdocumentsbyfacetsrequest.py | 2 +- .../models/getdocumentsbyfacetsresponse.py | 2 +- .../models/getdocumentsrequest.py | 2 +- .../models/getdocumentsresponse.py | 2 +- .../models/getdocumentstatusrequest.py | 2 +- .../models/getdocumentstatusresponse.py | 2 +- .../getdocumentvisibilityoverridesresponse.py | 2 +- .../models/getdocvisibilityop.py | 4 +- .../{ => api_client}/models/getpinrequest.py | 2 +- .../{ => api_client}/models/getpinresponse.py | 2 +- .../{ => api_client}/models/getpolicyop.py | 4 +- .../models/getreportstatusop.py | 4 +- .../models/getshortcutrequest_union.py | 2 +- .../models/getshortcutresponse.py | 2 +- .../models/getusercountrequest.py | 2 +- .../models/getusercountresponse.py | 2 +- .../models/gleanassistinsightsresponse.py | 2 +- .../{ => api_client}/models/gleandataerror.py | 2 +- .../models/grantpermission.py | 2 +- .../models/greenlistusersrequest.py | 2 +- src/glean/{ => api_client}/models/group.py | 2 +- .../{ => api_client}/models/grouptype.py | 0 src/glean/{ => api_client}/models/hotword.py | 2 +- .../models/hotwordproximity.py | 2 +- .../{ => api_client}/models/iconconfig.py | 2 +- .../models/indexdocumentrequest.py | 2 +- .../models/indexdocumentsrequest.py | 2 +- .../models/indexemployeerequest.py | 2 +- .../models/indexgrouprequest.py | 2 +- .../models/indexingshortcut.py | 2 +- .../models/indexmembershiprequest.py | 2 +- .../{ => api_client}/models/indexstatus.py | 2 +- .../models/indexteamrequest.py | 2 +- .../models/indexuserrequest.py | 2 +- .../{ => api_client}/models/inputoptions.py | 2 +- .../models/insightsagentsrequestoptions.py | 2 +- .../models/insightsaiapprequestoptions.py | 2 +- .../models/insightsrequest.py | 2 +- .../models/insightsresponse.py | 2 +- .../models/invalidoperatorvalueerror.py | 2 +- .../{ => api_client}/models/inviteinfo.py | 2 +- .../models/labeledcountinfo.py | 2 +- .../models/listanswersrequest.py | 2 +- .../models/listanswersresponse.py | 2 +- .../{ => api_client}/models/listchatsop.py | 4 +- .../models/listchatsresponse.py | 2 +- .../models/listcollectionsrequest.py | 2 +- .../models/listcollectionsresponse.py | 2 +- .../models/listdlpreportsresponse.py | 2 +- .../models/listentitiesrequest.py | 2 +- .../models/listentitiesresponse.py | 2 +- .../{ => api_client}/models/listpinsop.py | 2 +- .../models/listpinsresponse.py | 2 +- .../{ => api_client}/models/listpoliciesop.py | 4 +- .../models/listshortcutspaginatedrequest.py | 2 +- .../models/listshortcutspaginatedresponse.py | 2 +- .../models/listverificationsop.py | 4 +- .../models/manualfeedbackinfo.py | 2 +- src/glean/{ => api_client}/models/meeting.py | 2 +- src/glean/{ => api_client}/models/message.py | 2 +- .../models/messagesrequest.py | 2 +- .../models/messagesresponse.py | 2 +- .../models/objectdefinition.py | 2 +- .../models/objectpermissions.py | 2 +- .../models/operatormetadata.py | 2 +- .../{ => api_client}/models/operatorscope.py | 2 +- .../{ => api_client}/models/peoplerequest.py | 2 +- .../{ => api_client}/models/peopleresponse.py | 2 +- src/glean/{ => api_client}/models/period.py | 2 +- .../{ => api_client}/models/permissions.py | 2 +- .../permissionsgroupintersectiondefinition.py | 2 +- src/glean/{ => api_client}/models/person.py | 2 +- .../{ => api_client}/models/persondistance.py | 2 +- .../{ => api_client}/models/personmetadata.py | 2 +- .../{ => api_client}/models/personobject.py | 2 +- .../{ => api_client}/models/personteam.py | 2 +- .../models/persontoteamrelationship.py | 2 +- .../{ => api_client}/models/pindocument.py | 2 +- .../{ => api_client}/models/pinrequest.py | 2 +- .../{ => api_client}/models/possiblevalue.py | 2 +- ...pi_index_v1_debug_datasource_documentop.py | 4 +- ...i_index_v1_debug_datasource_documentsop.py | 4 +- ..._api_index_v1_debug_datasource_statusop.py | 4 +- ...st_api_index_v1_debug_datasource_userop.py | 4 +- .../models/processalldocumentsrequest.py | 2 +- .../models/processallmembershipsrequest.py | 2 +- .../models/processinghistoryevent.py | 2 +- .../{ => api_client}/models/prompttemplate.py | 2 +- .../models/prompttemplateresult.py | 2 +- .../models/propertydefinition.py | 2 +- .../{ => api_client}/models/propertygroup.py | 2 +- .../{ => api_client}/models/queryinsight.py | 2 +- .../models/queryinsightsresponse.py | 2 +- .../models/querysuggestion.py | 2 +- .../models/querysuggestionlist.py | 2 +- .../{ => api_client}/models/quicklink.py | 2 +- src/glean/{ => api_client}/models/reaction.py | 2 +- .../{ => api_client}/models/readpermission.py | 2 +- .../models/recommendationsrequest.py | 2 +- .../models/recommendationsrequestoptions.py | 2 +- .../{ => api_client}/models/referencerange.py | 2 +- .../models/relateddocuments.py | 2 +- .../{ => api_client}/models/relatedobject.py | 2 +- .../models/relatedobjectedge.py | 2 +- .../models/relatedquestion.py | 2 +- src/glean/{ => api_client}/models/reminder.py | 2 +- .../models/reminderrequest.py | 2 +- .../models/reportstatusresponse.py | 2 +- .../models/restrictionfilters.py | 2 +- .../models/resultsdescription.py | 2 +- .../models/resultsresponse.py | 2 +- .../{ => api_client}/models/resulttab.py | 2 +- .../models/rotatetokenresponse.py | 2 +- .../{ => api_client}/models/scopetype.py | 0 .../models/searchagentsrequest.py | 2 +- .../models/searchagentsresponse.py | 2 +- .../models/searchproviderinfo.py | 2 +- .../{ => api_client}/models/searchrequest.py | 2 +- .../models/searchrequestinputdetails.py | 2 +- .../models/searchrequestoptions.py | 2 +- .../{ => api_client}/models/searchresponse.py | 2 +- .../models/searchresponsemetadata.py | 2 +- .../{ => api_client}/models/searchresult.py | 2 +- .../models/searchresultprominenceenum.py | 0 .../models/searchresultsnippet.py | 2 +- .../{ => api_client}/models/searchwarning.py | 2 +- src/glean/{ => api_client}/models/security.py | 4 +- .../models/seenfeedbackinfo.py | 2 +- .../models/sensitivecontentoptions.py | 2 +- .../models/sensitiveexpression.py | 2 +- .../models/sensitiveinfotype.py | 2 +- .../{ => api_client}/models/sessioninfo.py | 2 +- src/glean/{ => api_client}/models/share.py | 2 +- .../{ => api_client}/models/sharingoptions.py | 2 +- src/glean/{ => api_client}/models/shortcut.py | 2 +- .../{ => api_client}/models/shortcuterror.py | 2 +- .../models/shortcutinsight.py | 2 +- .../models/shortcutinsightsresponse.py | 2 +- .../models/shortcutmutableproperties.py | 2 +- .../models/shortcutspaginationmetadata.py | 2 +- .../{ => api_client}/models/socialnetwork.py | 2 +- .../models/socialnetworkdefinition.py | 2 +- .../{ => api_client}/models/sortoptions.py | 2 +- .../{ => api_client}/models/structuredlink.py | 2 +- .../models/structuredlocation.py | 2 +- .../models/structuredresult.py | 2 +- .../{ => api_client}/models/structuredtext.py | 2 +- .../models/structuredtextitem.py | 2 +- .../models/structuredtextmutableproperties.py | 2 +- .../models/summarizerequest.py | 2 +- .../models/summarizeresponse.py | 2 +- src/glean/{ => api_client}/models/summary.py | 2 +- src/glean/{ => api_client}/models/team.py | 2 +- .../{ => api_client}/models/teamemail.py | 2 +- .../models/teaminfodefinition.py | 2 +- .../{ => api_client}/models/teammember.py | 2 +- .../{ => api_client}/models/textrange.py | 2 +- .../{ => api_client}/models/thumbnail.py | 2 +- .../{ => api_client}/models/timeinterval.py | 2 +- .../{ => api_client}/models/timepoint.py | 2 +- .../{ => api_client}/models/timerange.py | 2 +- src/glean/{ => api_client}/models/tool.py | 2 +- src/glean/{ => api_client}/models/toolinfo.py | 2 +- .../{ => api_client}/models/toolmetadata.py | 2 +- .../{ => api_client}/models/toolparameter.py | 2 +- .../models/toolscallparameter.py | 2 +- .../models/toolscallrequest.py | 2 +- .../models/toolscallresponse.py | 2 +- .../models/toolslistresponse.py | 2 +- src/glean/{ => api_client}/models/ugctype.py | 0 src/glean/{ => api_client}/models/unpin.py | 2 +- .../models/updateannouncementrequest.py | 2 +- .../models/updatedlpconfigrequest.py | 2 +- .../models/updatedlpconfigresponse.py | 2 +- .../models/updatedlpreportrequest.py | 2 +- .../models/updatedlpreportresponse.py | 2 +- ...pdatedocumentvisibilityoverridesrequest.py | 2 +- ...datedocumentvisibilityoverridesresponse.py | 2 +- .../models/updatepermissionsrequest.py | 2 +- .../{ => api_client}/models/updatepolicyop.py | 4 +- .../models/updateshortcutrequest.py | 2 +- .../models/updateshortcutresponse.py | 2 +- .../models/uploadchatfilesop.py | 4 +- .../models/uploadchatfilesrequest.py | 4 +- .../models/uploadchatfilesresponse.py | 2 +- .../models/uploadshortcutsrequest.py | 2 +- .../models/uploadstatusenum.py | 0 src/glean/{ => api_client}/models/user.py | 2 +- .../{ => api_client}/models/useractivity.py | 2 +- .../models/useractivityinsight.py | 2 +- .../models/usergeneratedcontentid.py | 2 +- .../models/userinsightsresponse.py | 2 +- .../models/userreferencedefinition.py | 2 +- src/glean/{ => api_client}/models/userrole.py | 0 .../models/userrolespecification.py | 2 +- .../models/userstatusresponse.py | 2 +- .../{ => api_client}/models/userviewinfo.py | 2 +- .../{ => api_client}/models/verification.py | 2 +- .../models/verificationfeed.py | 2 +- .../models/verificationmetadata.py | 2 +- .../{ => api_client}/models/verifyrequest.py | 2 +- .../{ => api_client}/models/viewerinfo.py | 2 +- src/glean/{ => api_client}/models/workflow.py | 2 +- .../models/workflowfeedbackinfo.py | 2 +- .../{ => api_client}/models/workflowresult.py | 2 +- .../models/writeactionparameter.py | 2 +- .../models/writepermission.py | 2 +- src/glean/{ => api_client}/people.py | 8 ++-- src/glean/{ => api_client}/pins.py | 8 ++-- src/glean/{ => api_client}/policies.py | 8 ++-- src/glean/{ => api_client}/py.typed | 0 src/glean/{ => api_client}/reports.py | 8 ++-- src/glean/{ => api_client}/sdk.py | 14 +++--- .../{ => api_client}/sdkconfiguration.py | 4 +- src/glean/{ => api_client}/search.py | 8 ++-- src/glean/{ => api_client}/tools.py | 8 ++-- src/glean/{ => api_client}/types/__init__.py | 0 src/glean/{ => api_client}/types/basemodel.py | 0 src/glean/{ => api_client}/utils/__init__.py | 0 .../{ => api_client}/utils/annotations.py | 0 src/glean/{ => api_client}/utils/datetimes.py | 0 src/glean/{ => api_client}/utils/enums.py | 0 .../{ => api_client}/utils/eventstreaming.py | 0 src/glean/{ => api_client}/utils/forms.py | 0 src/glean/{ => api_client}/utils/headers.py | 0 src/glean/{ => api_client}/utils/logger.py | 0 src/glean/{ => api_client}/utils/metadata.py | 0 .../{ => api_client}/utils/queryparams.py | 0 .../{ => api_client}/utils/requestbodies.py | 0 src/glean/{ => api_client}/utils/retries.py | 0 src/glean/{ => api_client}/utils/security.py | 0 .../{ => api_client}/utils/serializers.py | 0 src/glean/{ => api_client}/utils/url.py | 0 src/glean/{ => api_client}/utils/values.py | 0 .../{ => api_client}/visibilityoverrides.py | 8 ++-- tests/test_activities.py | 2 +- tests/test_agents.py | 2 +- tests/test_announcements.py | 4 +- tests/test_answers.py | 4 +- tests/test_client_activity.py | 4 +- tests/test_client_authentication.py | 2 +- tests/test_client_chat.py | 4 +- tests/test_client_documents.py | 2 +- tests/test_client_shortcuts.py | 4 +- tests/test_client_verification.py | 2 +- tests/test_collections.py | 4 +- tests/test_datasources.py | 2 +- tests/test_entities.py | 2 +- tests/test_indexing_authentication.py | 2 +- tests/test_indexing_documents.py | 2 +- tests/test_indexing_permissions.py | 2 +- tests/test_insights.py | 2 +- tests/test_messages.py | 2 +- tests/test_people.py | 2 +- tests/test_pins.py | 2 +- tests/test_policies.py | 2 +- tests/test_search.py | 4 +- tests/test_summarize.py | 2 +- tests/test_tools.py | 2 +- tests/test_troubleshooting.py | 2 +- 554 files changed, 774 insertions(+), 774 deletions(-) rename src/glean/{ => api_client}/__init__.py (100%) rename src/glean/{ => api_client}/_hooks/__init__.py (100%) rename src/glean/{ => api_client}/_hooks/registration.py (100%) rename src/glean/{ => api_client}/_hooks/sdkhooks.py (98%) rename src/glean/{ => api_client}/_hooks/types.py (96%) rename src/glean/{ => api_client}/_version.py (100%) rename src/glean/{ => api_client}/agents.py (99%) rename src/glean/{ => api_client}/announcements.py (99%) rename src/glean/{ => api_client}/answers.py (99%) rename src/glean/{ => api_client}/basesdk.py (98%) rename src/glean/{ => api_client}/client.py (67%) rename src/glean/{ => api_client}/client_activity.py (98%) rename src/glean/{ => api_client}/client_authentication.py (97%) rename src/glean/{ => api_client}/client_chat.py (99%) rename src/glean/{ => api_client}/client_documents.py (99%) rename src/glean/{ => api_client}/client_shortcuts.py (99%) rename src/glean/{ => api_client}/client_verification.py (99%) rename src/glean/{ => api_client}/collections.py (99%) rename src/glean/{ => api_client}/data.py (85%) rename src/glean/{ => api_client}/datasources.py (99%) rename src/glean/{ => api_client}/entities.py (98%) rename src/glean/{ => api_client}/errors/__init__.py (100%) rename src/glean/{ => api_client}/errors/collectionerror.py (78%) rename src/glean/{ => api_client}/errors/gleandataerror.py (92%) rename src/glean/{ => api_client}/errors/gleanerror.py (100%) rename src/glean/{ => api_client}/governance.py (83%) rename src/glean/{ => api_client}/governance_documents.py (88%) rename src/glean/{ => api_client}/httpclient.py (100%) rename src/glean/{ => api_client}/indexing.py (70%) rename src/glean/{ => api_client}/indexing_authentication.py (97%) rename src/glean/{ => api_client}/indexing_datasource.py (97%) rename src/glean/{ => api_client}/indexing_documents.py (99%) rename src/glean/{ => api_client}/indexing_permissions.py (99%) rename src/glean/{ => api_client}/indexing_shortcuts.py (98%) rename src/glean/{ => api_client}/insights.py (98%) rename src/glean/{ => api_client}/messages.py (98%) rename src/glean/{ => api_client}/models/__init__.py (100%) rename src/glean/{ => api_client}/models/activity.py (89%) rename src/glean/{ => api_client}/models/activityevent.py (97%) rename src/glean/{ => api_client}/models/activityeventparams.py (98%) rename src/glean/{ => api_client}/models/addcollectionitemserror.py (93%) rename src/glean/{ => api_client}/models/addcollectionitemsrequest.py (95%) rename src/glean/{ => api_client}/models/addcollectionitemsresponse.py (93%) rename src/glean/{ => api_client}/models/additionalfielddefinition.py (98%) rename src/glean/{ => api_client}/models/agent.py (98%) rename src/glean/{ => api_client}/models/agentconfig.py (95%) rename src/glean/{ => api_client}/models/agentexecutionstatus.py (100%) rename src/glean/{ => api_client}/models/agentrun.py (96%) rename src/glean/{ => api_client}/models/agentruncreate.py (95%) rename src/glean/{ => api_client}/models/agentrunwaitresponse.py (93%) rename src/glean/{ => api_client}/models/agentschemas.py (96%) rename src/glean/{ => api_client}/models/aiappactioncounts.py (98%) rename src/glean/{ => api_client}/models/aiappsinsightsresponse.py (97%) rename src/glean/{ => api_client}/models/aiinsightsresponse.py (98%) rename src/glean/{ => api_client}/models/allowlistoptions.py (94%) rename src/glean/{ => api_client}/models/announcement.py (99%) rename src/glean/{ => api_client}/models/anonymousevent.py (95%) rename src/glean/{ => api_client}/models/answer.py (99%) rename src/glean/{ => api_client}/models/answerboard.py (98%) rename src/glean/{ => api_client}/models/answercreationdata.py (98%) rename src/glean/{ => api_client}/models/answerlike.py (94%) rename src/glean/{ => api_client}/models/answerlikes.py (95%) rename src/glean/{ => api_client}/models/answerresult.py (94%) rename src/glean/{ => api_client}/models/appresult.py (96%) rename src/glean/{ => api_client}/models/authconfig.py (98%) rename src/glean/{ => api_client}/models/authtoken.py (96%) rename src/glean/{ => api_client}/models/autocompleterequest.py (98%) rename src/glean/{ => api_client}/models/autocompleteresponse.py (98%) rename src/glean/{ => api_client}/models/autocompleteresult.py (98%) rename src/glean/{ => api_client}/models/autocompleteresultgroup.py (96%) rename src/glean/{ => api_client}/models/badge.py (96%) rename src/glean/{ => api_client}/models/bulkindexdocumentsrequest.py (98%) rename src/glean/{ => api_client}/models/bulkindexemployeesrequest.py (98%) rename src/glean/{ => api_client}/models/bulkindexgroupsrequest.py (98%) rename src/glean/{ => api_client}/models/bulkindexmembershipsrequest.py (98%) rename src/glean/{ => api_client}/models/bulkindexshortcutsrequest.py (97%) rename src/glean/{ => api_client}/models/bulkindexteamsrequest.py (97%) rename src/glean/{ => api_client}/models/bulkindexusersrequest.py (98%) rename src/glean/{ => api_client}/models/bulkuploadhistoryevent.py (98%) rename src/glean/{ => api_client}/models/calendarattendee.py (97%) rename src/glean/{ => api_client}/models/calendarattendees.py (98%) rename src/glean/{ => api_client}/models/calendarevent.py (98%) rename src/glean/{ => api_client}/models/canonicalizingregextype.py (95%) rename src/glean/{ => api_client}/models/channelinviteinfo.py (97%) rename src/glean/{ => api_client}/models/chat.py (98%) rename src/glean/{ => api_client}/models/chatfile.py (95%) rename src/glean/{ => api_client}/models/chatfilefailurereason.py (100%) rename src/glean/{ => api_client}/models/chatfilemetadata.py (97%) rename src/glean/{ => api_client}/models/chatfilestatus.py (100%) rename src/glean/{ => api_client}/models/chatmessage.py (99%) rename src/glean/{ => api_client}/models/chatmessagecitation.py (97%) rename src/glean/{ => api_client}/models/chatmessagefragment.py (98%) rename src/glean/{ => api_client}/models/chatmetadata.py (98%) rename src/glean/{ => api_client}/models/chatmetadataresult.py (95%) rename src/glean/{ => api_client}/models/chatop.py (89%) rename src/glean/{ => api_client}/models/chatrequest.py (98%) rename src/glean/{ => api_client}/models/chatresponse.py (97%) rename src/glean/{ => api_client}/models/chatrestrictionfilters.py (97%) rename src/glean/{ => api_client}/models/chatresult.py (95%) rename src/glean/{ => api_client}/models/chatstreamop.py (89%) rename src/glean/{ => api_client}/models/chatzerostatesuggestionoptions.py (94%) rename src/glean/{ => api_client}/models/checkdocumentaccessrequest.py (96%) rename src/glean/{ => api_client}/models/checkdocumentaccessresponse.py (94%) rename src/glean/{ => api_client}/models/clustergroup.py (96%) rename src/glean/{ => api_client}/models/clustertypeenum.py (100%) rename src/glean/{ => api_client}/models/code.py (95%) rename src/glean/{ => api_client}/models/codeline.py (94%) rename src/glean/{ => api_client}/models/collection.py (99%) rename src/glean/{ => api_client}/models/collectionerror.py (94%) rename src/glean/{ => api_client}/models/collectionitem.py (98%) rename src/glean/{ => api_client}/models/collectionitemdescriptor.py (97%) rename src/glean/{ => api_client}/models/collectionpinmetadata.py (91%) rename src/glean/{ => api_client}/models/collectionpinnablecategories.py (100%) rename src/glean/{ => api_client}/models/collectionpinnabletargets.py (100%) rename src/glean/{ => api_client}/models/collectionpinnedmetadata.py (97%) rename src/glean/{ => api_client}/models/collectionpintarget.py (96%) rename src/glean/{ => api_client}/models/commentdefinition.py (98%) rename src/glean/{ => api_client}/models/communicationchannel.py (100%) rename src/glean/{ => api_client}/models/company.py (98%) rename src/glean/{ => api_client}/models/conferencedata.py (94%) rename src/glean/{ => api_client}/models/connectortype.py (100%) rename src/glean/{ => api_client}/models/contentdefinition.py (96%) rename src/glean/{ => api_client}/models/contentinsightsresponse.py (97%) rename src/glean/{ => api_client}/models/contenttype.py (100%) rename src/glean/{ => api_client}/models/countinfo.py (94%) rename src/glean/{ => api_client}/models/createannouncementrequest.py (99%) rename src/glean/{ => api_client}/models/createanswerrequest.py (89%) rename src/glean/{ => api_client}/models/createauthtokenresponse.py (94%) rename src/glean/{ => api_client}/models/createcollectionrequest.py (98%) rename src/glean/{ => api_client}/models/createcollectionresponse.py (99%) rename src/glean/{ => api_client}/models/createdlpreportrequest.py (96%) rename src/glean/{ => api_client}/models/createdlpreportresponse.py (92%) rename src/glean/{ => api_client}/models/createshortcutrequest.py (90%) rename src/glean/{ => api_client}/models/createshortcutresponse.py (92%) rename src/glean/{ => api_client}/models/customdatasourceconfig.py (99%) rename src/glean/{ => api_client}/models/customdatavalue.py (96%) rename src/glean/{ => api_client}/models/customentity.py (97%) rename src/glean/{ => api_client}/models/customentitymetadata.py (93%) rename src/glean/{ => api_client}/models/customer.py (98%) rename src/glean/{ => api_client}/models/customermetadata.py (95%) rename src/glean/{ => api_client}/models/customfielddata.py (94%) rename src/glean/{ => api_client}/models/customfieldvalue.py (100%) rename src/glean/{ => api_client}/models/customfieldvaluehyperlink.py (93%) rename src/glean/{ => api_client}/models/customfieldvalueperson.py (90%) rename src/glean/{ => api_client}/models/customfieldvaluestr.py (91%) rename src/glean/{ => api_client}/models/customproperty.py (95%) rename src/glean/{ => api_client}/models/datasourcebulkmembershipdefinition.py (96%) rename src/glean/{ => api_client}/models/datasourcegroupdefinition.py (92%) rename src/glean/{ => api_client}/models/datasourcemembershipdefinition.py (96%) rename src/glean/{ => api_client}/models/datasourceobjecttypedocumentcountentry.py (94%) rename src/glean/{ => api_client}/models/datasourceprofile.py (97%) rename src/glean/{ => api_client}/models/datasourceuserdefinition.py (95%) rename src/glean/{ => api_client}/models/debugdatasourcestatusidentityresponsecomponent.py (96%) rename src/glean/{ => api_client}/models/debugdatasourcestatusresponse.py (99%) rename src/glean/{ => api_client}/models/debugdocumentrequest.py (95%) rename src/glean/{ => api_client}/models/debugdocumentresponse.py (96%) rename src/glean/{ => api_client}/models/debugdocumentsrequest.py (94%) rename src/glean/{ => api_client}/models/debugdocumentsresponse.py (95%) rename src/glean/{ => api_client}/models/debugdocumentsresponseitem.py (96%) rename src/glean/{ => api_client}/models/debuguserrequest.py (92%) rename src/glean/{ => api_client}/models/debuguserresponse.py (96%) rename src/glean/{ => api_client}/models/deleteallchatsop.py (87%) rename src/glean/{ => api_client}/models/deleteannouncementrequest.py (89%) rename src/glean/{ => api_client}/models/deleteanswerrequest.py (95%) rename src/glean/{ => api_client}/models/deletechatfilesop.py (89%) rename src/glean/{ => api_client}/models/deletechatfilesrequest.py (91%) rename src/glean/{ => api_client}/models/deletechatsop.py (89%) rename src/glean/{ => api_client}/models/deletechatsrequest.py (90%) rename src/glean/{ => api_client}/models/deletecollectionitemrequest.py (96%) rename src/glean/{ => api_client}/models/deletecollectionitemresponse.py (90%) rename src/glean/{ => api_client}/models/deletecollectionrequest.py (94%) rename src/glean/{ => api_client}/models/deletedocumentrequest.py (96%) rename src/glean/{ => api_client}/models/deleteemployeerequest.py (95%) rename src/glean/{ => api_client}/models/deletegrouprequest.py (96%) rename src/glean/{ => api_client}/models/deletemembershiprequest.py (96%) rename src/glean/{ => api_client}/models/deleteshortcutrequest.py (89%) rename src/glean/{ => api_client}/models/deleteteamrequest.py (91%) rename src/glean/{ => api_client}/models/deleteuserrequest.py (95%) rename src/glean/{ => api_client}/models/disambiguation.py (95%) rename src/glean/{ => api_client}/models/displayablelistitemuiconfig.py (93%) rename src/glean/{ => api_client}/models/dlpconfig.py (99%) rename src/glean/{ => api_client}/models/dlpfrequency.py (100%) rename src/glean/{ => api_client}/models/dlpperson.py (95%) rename src/glean/{ => api_client}/models/dlppersonmetadata.py (93%) rename src/glean/{ => api_client}/models/dlpreport.py (98%) rename src/glean/{ => api_client}/models/dlpreportstatus.py (100%) rename src/glean/{ => api_client}/models/dlpsimpleresult.py (100%) rename src/glean/{ => api_client}/models/document.py (98%) rename src/glean/{ => api_client}/models/documentcontent.py (92%) rename src/glean/{ => api_client}/models/documentdefinition.py (99%) rename src/glean/{ => api_client}/models/documentinsight.py (94%) rename src/glean/{ => api_client}/models/documentinteractions.py (97%) rename src/glean/{ => api_client}/models/documentinteractionsdefinition.py (94%) rename src/glean/{ => api_client}/models/documentmetadata.py (99%) rename src/glean/{ => api_client}/models/documentorerror_union.py (94%) rename src/glean/{ => api_client}/models/documentpermissionsdefinition.py (98%) rename src/glean/{ => api_client}/models/documentsection.py (93%) rename src/glean/{ => api_client}/models/documentspec_union.py (97%) rename src/glean/{ => api_client}/models/documentstatusresponse.py (97%) rename src/glean/{ => api_client}/models/documentvisibility.py (100%) rename src/glean/{ => api_client}/models/documentvisibilityoverride.py (95%) rename src/glean/{ => api_client}/models/documentvisibilityupdateresult.py (96%) rename src/glean/{ => api_client}/models/downloadpolicycsvop.py (81%) rename src/glean/{ => api_client}/models/downloadreportcsvop.py (81%) rename src/glean/{ => api_client}/models/editanswerrequest.py (99%) rename src/glean/{ => api_client}/models/editcollectionitemrequest.py (96%) rename src/glean/{ => api_client}/models/editcollectionitemresponse.py (90%) rename src/glean/{ => api_client}/models/editcollectionrequest.py (98%) rename src/glean/{ => api_client}/models/editcollectionresponse.py (99%) rename src/glean/{ => api_client}/models/editpinrequest.py (96%) rename src/glean/{ => api_client}/models/employeeinfodefinition.py (99%) rename src/glean/{ => api_client}/models/employeeteaminfo.py (94%) rename src/glean/{ => api_client}/models/entitiessortorder.py (100%) rename src/glean/{ => api_client}/models/entityrelationship.py (95%) rename src/glean/{ => api_client}/models/entitytype.py (100%) rename src/glean/{ => api_client}/models/errormessage.py (92%) rename src/glean/{ => api_client}/models/eventclassification.py (94%) rename src/glean/{ => api_client}/models/eventclassificationname.py (100%) rename src/glean/{ => api_client}/models/eventstrategyname.py (100%) rename src/glean/{ => api_client}/models/externalsharingoptions.py (98%) rename src/glean/{ => api_client}/models/externalshortcut.py (98%) rename src/glean/{ => api_client}/models/extractedqna.py (95%) rename src/glean/{ => api_client}/models/facetbucket.py (95%) rename src/glean/{ => api_client}/models/facetbucketfilter.py (93%) rename src/glean/{ => api_client}/models/facetfilter.py (97%) rename src/glean/{ => api_client}/models/facetfilterset.py (94%) rename src/glean/{ => api_client}/models/facetfiltervalue.py (95%) rename src/glean/{ => api_client}/models/facetresult.py (98%) rename src/glean/{ => api_client}/models/facetvalue.py (96%) rename src/glean/{ => api_client}/models/favoriteinfo.py (95%) rename src/glean/{ => api_client}/models/feedback.py (99%) rename src/glean/{ => api_client}/models/feedbackchatexchange.py (97%) rename src/glean/{ => api_client}/models/feedbackop.py (87%) rename src/glean/{ => api_client}/models/feedentry.py (99%) rename src/glean/{ => api_client}/models/feedrequest.py (98%) rename src/glean/{ => api_client}/models/feedrequestoptions.py (98%) rename src/glean/{ => api_client}/models/feedresponse.py (97%) rename src/glean/{ => api_client}/models/feedresult.py (98%) rename src/glean/{ => api_client}/models/followupaction.py (98%) rename src/glean/{ => api_client}/models/generatedattachment.py (97%) rename src/glean/{ => api_client}/models/generatedattachmentcontent.py (95%) rename src/glean/{ => api_client}/models/generatedqna.py (98%) rename src/glean/{ => api_client}/models/get_rest_api_v1_tools_listop.py (85%) rename src/glean/{ => api_client}/models/getagentop.py (87%) rename src/glean/{ => api_client}/models/getagentschemasop.py (87%) rename src/glean/{ => api_client}/models/getanswererror.py (94%) rename src/glean/{ => api_client}/models/getanswerrequest.py (95%) rename src/glean/{ => api_client}/models/getanswerresponse.py (93%) rename src/glean/{ => api_client}/models/getchatapplicationop.py (89%) rename src/glean/{ => api_client}/models/getchatapplicationrequest.py (89%) rename src/glean/{ => api_client}/models/getchatapplicationresponse.py (89%) rename src/glean/{ => api_client}/models/getchatfilesop.py (89%) rename src/glean/{ => api_client}/models/getchatfilesrequest.py (90%) rename src/glean/{ => api_client}/models/getchatfilesresponse.py (92%) rename src/glean/{ => api_client}/models/getchatop.py (88%) rename src/glean/{ => api_client}/models/getchatrequest.py (88%) rename src/glean/{ => api_client}/models/getchatresponse.py (91%) rename src/glean/{ => api_client}/models/getcollectionrequest.py (96%) rename src/glean/{ => api_client}/models/getcollectionresponse.py (96%) rename src/glean/{ => api_client}/models/getdatasourceconfigrequest.py (92%) rename src/glean/{ => api_client}/models/getdlpreportresponse.py (92%) rename src/glean/{ => api_client}/models/getdocpermissionsrequest.py (92%) rename src/glean/{ => api_client}/models/getdocpermissionsresponse.py (94%) rename src/glean/{ => api_client}/models/getdocumentcountrequest.py (92%) rename src/glean/{ => api_client}/models/getdocumentcountresponse.py (94%) rename src/glean/{ => api_client}/models/getdocumentsbyfacetsrequest.py (97%) rename src/glean/{ => api_client}/models/getdocumentsbyfacetsresponse.py (96%) rename src/glean/{ => api_client}/models/getdocumentsrequest.py (96%) rename src/glean/{ => api_client}/models/getdocumentsresponse.py (93%) rename src/glean/{ => api_client}/models/getdocumentstatusrequest.py (95%) rename src/glean/{ => api_client}/models/getdocumentstatusresponse.py (97%) rename src/glean/{ => api_client}/models/getdocumentvisibilityoverridesresponse.py (93%) rename src/glean/{ => api_client}/models/getdocvisibilityop.py (85%) rename src/glean/{ => api_client}/models/getpinrequest.py (90%) rename src/glean/{ => api_client}/models/getpinresponse.py (90%) rename src/glean/{ => api_client}/models/getpolicyop.py (88%) rename src/glean/{ => api_client}/models/getreportstatusop.py (81%) rename src/glean/{ => api_client}/models/getshortcutrequest_union.py (95%) rename src/glean/{ => api_client}/models/getshortcutresponse.py (92%) rename src/glean/{ => api_client}/models/getusercountrequest.py (92%) rename src/glean/{ => api_client}/models/getusercountresponse.py (94%) rename src/glean/{ => api_client}/models/gleanassistinsightsresponse.py (97%) rename src/glean/{ => api_client}/models/gleandataerror.py (97%) rename src/glean/{ => api_client}/models/grantpermission.py (94%) rename src/glean/{ => api_client}/models/greenlistusersrequest.py (94%) rename src/glean/{ => api_client}/models/group.py (93%) rename src/glean/{ => api_client}/models/grouptype.py (100%) rename src/glean/{ => api_client}/models/hotword.py (91%) rename src/glean/{ => api_client}/models/hotwordproximity.py (92%) rename src/glean/{ => api_client}/models/iconconfig.py (97%) rename src/glean/{ => api_client}/models/indexdocumentrequest.py (95%) rename src/glean/{ => api_client}/models/indexdocumentsrequest.py (96%) rename src/glean/{ => api_client}/models/indexemployeerequest.py (95%) rename src/glean/{ => api_client}/models/indexgrouprequest.py (96%) rename src/glean/{ => api_client}/models/indexingshortcut.py (98%) rename src/glean/{ => api_client}/models/indexmembershiprequest.py (96%) rename src/glean/{ => api_client}/models/indexstatus.py (94%) rename src/glean/{ => api_client}/models/indexteamrequest.py (95%) rename src/glean/{ => api_client}/models/indexuserrequest.py (96%) rename src/glean/{ => api_client}/models/inputoptions.py (98%) rename src/glean/{ => api_client}/models/insightsagentsrequestoptions.py (93%) rename src/glean/{ => api_client}/models/insightsaiapprequestoptions.py (93%) rename src/glean/{ => api_client}/models/insightsrequest.py (98%) rename src/glean/{ => api_client}/models/insightsresponse.py (98%) rename src/glean/{ => api_client}/models/invalidoperatorvalueerror.py (92%) rename src/glean/{ => api_client}/models/inviteinfo.py (98%) rename src/glean/{ => api_client}/models/labeledcountinfo.py (94%) rename src/glean/{ => api_client}/models/listanswersrequest.py (91%) rename src/glean/{ => api_client}/models/listanswersresponse.py (92%) rename src/glean/{ => api_client}/models/listchatsop.py (87%) rename src/glean/{ => api_client}/models/listchatsresponse.py (92%) rename src/glean/{ => api_client}/models/listcollectionsrequest.py (96%) rename src/glean/{ => api_client}/models/listcollectionsresponse.py (92%) rename src/glean/{ => api_client}/models/listdlpreportsresponse.py (90%) rename src/glean/{ => api_client}/models/listentitiesrequest.py (98%) rename src/glean/{ => api_client}/models/listentitiesresponse.py (98%) rename src/glean/{ => api_client}/models/listpinsop.py (86%) rename src/glean/{ => api_client}/models/listpinsresponse.py (90%) rename src/glean/{ => api_client}/models/listpoliciesop.py (89%) rename src/glean/{ => api_client}/models/listshortcutspaginatedrequest.py (98%) rename src/glean/{ => api_client}/models/listshortcutspaginatedresponse.py (95%) rename src/glean/{ => api_client}/models/listverificationsop.py (83%) rename src/glean/{ => api_client}/models/manualfeedbackinfo.py (99%) rename src/glean/{ => api_client}/models/meeting.py (95%) rename src/glean/{ => api_client}/models/message.py (94%) rename src/glean/{ => api_client}/models/messagesrequest.py (98%) rename src/glean/{ => api_client}/models/messagesresponse.py (95%) rename src/glean/{ => api_client}/models/objectdefinition.py (98%) rename src/glean/{ => api_client}/models/objectpermissions.py (93%) rename src/glean/{ => api_client}/models/operatormetadata.py (97%) rename src/glean/{ => api_client}/models/operatorscope.py (91%) rename src/glean/{ => api_client}/models/peoplerequest.py (98%) rename src/glean/{ => api_client}/models/peopleresponse.py (96%) rename src/glean/{ => api_client}/models/period.py (97%) rename src/glean/{ => api_client}/models/permissions.py (98%) rename src/glean/{ => api_client}/models/permissionsgroupintersectiondefinition.py (93%) rename src/glean/{ => api_client}/models/person.py (96%) rename src/glean/{ => api_client}/models/persondistance.py (94%) rename src/glean/{ => api_client}/models/personmetadata.py (99%) rename src/glean/{ => api_client}/models/personobject.py (93%) rename src/glean/{ => api_client}/models/personteam.py (97%) rename src/glean/{ => api_client}/models/persontoteamrelationship.py (97%) rename src/glean/{ => api_client}/models/pindocument.py (97%) rename src/glean/{ => api_client}/models/pinrequest.py (96%) rename src/glean/{ => api_client}/models/possiblevalue.py (93%) rename src/glean/{ => api_client}/models/post_api_index_v1_debug_datasource_documentop.py (86%) rename src/glean/{ => api_client}/models/post_api_index_v1_debug_datasource_documentsop.py (86%) rename src/glean/{ => api_client}/models/post_api_index_v1_debug_datasource_statusop.py (82%) rename src/glean/{ => api_client}/models/post_api_index_v1_debug_datasource_userop.py (86%) rename src/glean/{ => api_client}/models/processalldocumentsrequest.py (94%) rename src/glean/{ => api_client}/models/processallmembershipsrequest.py (94%) rename src/glean/{ => api_client}/models/processinghistoryevent.py (95%) rename src/glean/{ => api_client}/models/prompttemplate.py (98%) rename src/glean/{ => api_client}/models/prompttemplateresult.py (96%) rename src/glean/{ => api_client}/models/propertydefinition.py (98%) rename src/glean/{ => api_client}/models/propertygroup.py (95%) rename src/glean/{ => api_client}/models/queryinsight.py (96%) rename src/glean/{ => api_client}/models/queryinsightsresponse.py (97%) rename src/glean/{ => api_client}/models/querysuggestion.py (98%) rename src/glean/{ => api_client}/models/querysuggestionlist.py (93%) rename src/glean/{ => api_client}/models/quicklink.py (97%) rename src/glean/{ => api_client}/models/reaction.py (95%) rename src/glean/{ => api_client}/models/readpermission.py (94%) rename src/glean/{ => api_client}/models/recommendationsrequest.py (98%) rename src/glean/{ => api_client}/models/recommendationsrequestoptions.py (97%) rename src/glean/{ => api_client}/models/referencerange.py (96%) rename src/glean/{ => api_client}/models/relateddocuments.py (98%) rename src/glean/{ => api_client}/models/relatedobject.py (96%) rename src/glean/{ => api_client}/models/relatedobjectedge.py (90%) rename src/glean/{ => api_client}/models/relatedquestion.py (95%) rename src/glean/{ => api_client}/models/reminder.py (97%) rename src/glean/{ => api_client}/models/reminderrequest.py (97%) rename src/glean/{ => api_client}/models/reportstatusresponse.py (95%) rename src/glean/{ => api_client}/models/restrictionfilters.py (96%) rename src/glean/{ => api_client}/models/resultsdescription.py (95%) rename src/glean/{ => api_client}/models/resultsresponse.py (98%) rename src/glean/{ => api_client}/models/resulttab.py (96%) rename src/glean/{ => api_client}/models/rotatetokenresponse.py (98%) rename src/glean/{ => api_client}/models/scopetype.py (100%) rename src/glean/{ => api_client}/models/searchagentsrequest.py (91%) rename src/glean/{ => api_client}/models/searchagentsresponse.py (90%) rename src/glean/{ => api_client}/models/searchproviderinfo.py (95%) rename src/glean/{ => api_client}/models/searchrequest.py (99%) rename src/glean/{ => api_client}/models/searchrequestinputdetails.py (95%) rename src/glean/{ => api_client}/models/searchrequestoptions.py (99%) rename src/glean/{ => api_client}/models/searchresponse.py (99%) rename src/glean/{ => api_client}/models/searchresponsemetadata.py (98%) rename src/glean/{ => api_client}/models/searchresult.py (99%) rename src/glean/{ => api_client}/models/searchresultprominenceenum.py (100%) rename src/glean/{ => api_client}/models/searchresultsnippet.py (97%) rename src/glean/{ => api_client}/models/searchwarning.py (97%) rename src/glean/{ => api_client}/models/security.py (84%) rename src/glean/{ => api_client}/models/seenfeedbackinfo.py (94%) rename src/glean/{ => api_client}/models/sensitivecontentoptions.py (97%) rename src/glean/{ => api_client}/models/sensitiveexpression.py (94%) rename src/glean/{ => api_client}/models/sensitiveinfotype.py (96%) rename src/glean/{ => api_client}/models/sessioninfo.py (97%) rename src/glean/{ => api_client}/models/share.py (96%) rename src/glean/{ => api_client}/models/sharingoptions.py (98%) rename src/glean/{ => api_client}/models/shortcut.py (99%) rename src/glean/{ => api_client}/models/shortcuterror.py (93%) rename src/glean/{ => api_client}/models/shortcutinsight.py (94%) rename src/glean/{ => api_client}/models/shortcutinsightsresponse.py (97%) rename src/glean/{ => api_client}/models/shortcutmutableproperties.py (98%) rename src/glean/{ => api_client}/models/shortcutspaginationmetadata.py (94%) rename src/glean/{ => api_client}/models/socialnetwork.py (94%) rename src/glean/{ => api_client}/models/socialnetworkdefinition.py (95%) rename src/glean/{ => api_client}/models/sortoptions.py (93%) rename src/glean/{ => api_client}/models/structuredlink.py (95%) rename src/glean/{ => api_client}/models/structuredlocation.py (97%) rename src/glean/{ => api_client}/models/structuredresult.py (99%) rename src/glean/{ => api_client}/models/structuredtext.py (95%) rename src/glean/{ => api_client}/models/structuredtextitem.py (96%) rename src/glean/{ => api_client}/models/structuredtextmutableproperties.py (86%) rename src/glean/{ => api_client}/models/summarizerequest.py (97%) rename src/glean/{ => api_client}/models/summarizeresponse.py (95%) rename src/glean/{ => api_client}/models/summary.py (93%) rename src/glean/{ => api_client}/models/team.py (99%) rename src/glean/{ => api_client}/models/teamemail.py (93%) rename src/glean/{ => api_client}/models/teaminfodefinition.py (98%) rename src/glean/{ => api_client}/models/teammember.py (95%) rename src/glean/{ => api_client}/models/textrange.py (97%) rename src/glean/{ => api_client}/models/thumbnail.py (94%) rename src/glean/{ => api_client}/models/timeinterval.py (92%) rename src/glean/{ => api_client}/models/timepoint.py (94%) rename src/glean/{ => api_client}/models/timerange.py (94%) rename src/glean/{ => api_client}/models/tool.py (97%) rename src/glean/{ => api_client}/models/toolinfo.py (95%) rename src/glean/{ => api_client}/models/toolmetadata.py (99%) rename src/glean/{ => api_client}/models/toolparameter.py (97%) rename src/glean/{ => api_client}/models/toolscallparameter.py (95%) rename src/glean/{ => api_client}/models/toolscallrequest.py (94%) rename src/glean/{ => api_client}/models/toolscallresponse.py (93%) rename src/glean/{ => api_client}/models/toolslistresponse.py (89%) rename src/glean/{ => api_client}/models/ugctype.py (100%) rename src/glean/{ => api_client}/models/unpin.py (90%) rename src/glean/{ => api_client}/models/updateannouncementrequest.py (99%) rename src/glean/{ => api_client}/models/updatedlpconfigrequest.py (94%) rename src/glean/{ => api_client}/models/updatedlpconfigresponse.py (93%) rename src/glean/{ => api_client}/models/updatedlpreportrequest.py (97%) rename src/glean/{ => api_client}/models/updatedlpreportresponse.py (90%) rename src/glean/{ => api_client}/models/updatedocumentvisibilityoverridesrequest.py (94%) rename src/glean/{ => api_client}/models/updatedocumentvisibilityoverridesresponse.py (94%) rename src/glean/{ => api_client}/models/updatepermissionsrequest.py (97%) rename src/glean/{ => api_client}/models/updatepolicyop.py (85%) rename src/glean/{ => api_client}/models/updateshortcutrequest.py (98%) rename src/glean/{ => api_client}/models/updateshortcutresponse.py (92%) rename src/glean/{ => api_client}/models/uploadchatfilesop.py (89%) rename src/glean/{ => api_client}/models/uploadchatfilesrequest.py (90%) rename src/glean/{ => api_client}/models/uploadchatfilesresponse.py (91%) rename src/glean/{ => api_client}/models/uploadshortcutsrequest.py (97%) rename src/glean/{ => api_client}/models/uploadstatusenum.py (100%) rename src/glean/{ => api_client}/models/user.py (95%) rename src/glean/{ => api_client}/models/useractivity.py (96%) rename src/glean/{ => api_client}/models/useractivityinsight.py (96%) rename src/glean/{ => api_client}/models/usergeneratedcontentid.py (90%) rename src/glean/{ => api_client}/models/userinsightsresponse.py (98%) rename src/glean/{ => api_client}/models/userreferencedefinition.py (95%) rename src/glean/{ => api_client}/models/userrole.py (100%) rename src/glean/{ => api_client}/models/userrolespecification.py (95%) rename src/glean/{ => api_client}/models/userstatusresponse.py (96%) rename src/glean/{ => api_client}/models/userviewinfo.py (95%) rename src/glean/{ => api_client}/models/verification.py (94%) rename src/glean/{ => api_client}/models/verificationfeed.py (93%) rename src/glean/{ => api_client}/models/verificationmetadata.py (98%) rename src/glean/{ => api_client}/models/verifyrequest.py (94%) rename src/glean/{ => api_client}/models/viewerinfo.py (96%) rename src/glean/{ => api_client}/models/workflow.py (97%) rename src/glean/{ => api_client}/models/workflowfeedbackinfo.py (94%) rename src/glean/{ => api_client}/models/workflowresult.py (88%) rename src/glean/{ => api_client}/models/writeactionparameter.py (97%) rename src/glean/{ => api_client}/models/writepermission.py (97%) rename src/glean/{ => api_client}/people.py (99%) rename src/glean/{ => api_client}/pins.py (99%) rename src/glean/{ => api_client}/policies.py (99%) rename src/glean/{ => api_client}/py.typed (100%) rename src/glean/{ => api_client}/reports.py (99%) rename src/glean/{ => api_client}/sdk.py (95%) rename src/glean/{ => api_client}/sdkconfiguration.py (94%) rename src/glean/{ => api_client}/search.py (99%) rename src/glean/{ => api_client}/tools.py (98%) rename src/glean/{ => api_client}/types/__init__.py (100%) rename src/glean/{ => api_client}/types/basemodel.py (100%) rename src/glean/{ => api_client}/utils/__init__.py (100%) rename src/glean/{ => api_client}/utils/annotations.py (100%) rename src/glean/{ => api_client}/utils/datetimes.py (100%) rename src/glean/{ => api_client}/utils/enums.py (100%) rename src/glean/{ => api_client}/utils/eventstreaming.py (100%) rename src/glean/{ => api_client}/utils/forms.py (100%) rename src/glean/{ => api_client}/utils/headers.py (100%) rename src/glean/{ => api_client}/utils/logger.py (100%) rename src/glean/{ => api_client}/utils/metadata.py (100%) rename src/glean/{ => api_client}/utils/queryparams.py (100%) rename src/glean/{ => api_client}/utils/requestbodies.py (100%) rename src/glean/{ => api_client}/utils/retries.py (100%) rename src/glean/{ => api_client}/utils/security.py (100%) rename src/glean/{ => api_client}/utils/serializers.py (100%) rename src/glean/{ => api_client}/utils/url.py (100%) rename src/glean/{ => api_client}/utils/values.py (100%) rename src/glean/{ => api_client}/visibilityoverrides.py (98%) diff --git a/README.md b/README.md index 75a935d5..8f0b3a4a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Each namespace has its own authentication requirements and access patterns. Whil ```python # Example of accessing Client namespace -from glean import Glean +from glean.api_client import Glean import os with Glean(api_token="client-token", instance="instance-name") as glean: @@ -23,7 +23,7 @@ with Glean(api_token="client-token", instance="instance-name") as glean: print(search_response) # Example of accessing Indexing namespace -from glean import Glean, models +from glean.api_client import Glean, models import os with Glean(api_token="indexing-token", instance="instance-name") as glean: @@ -105,7 +105,7 @@ It's also possible to write a standalone Python script without needing to set up # ] # /// -from glean import Glean +from glean.api_client import Glean sdk = Glean( # SDK arguments @@ -135,7 +135,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u ```python # Synchronous Example -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -163,7 +163,7 @@ The same SDK client can also be used to make asychronous requests by importing a ```python # Asynchronous Example import asyncio -from glean import Glean, models +from glean.api_client import Glean, models import os async def main(): @@ -192,7 +192,7 @@ asyncio.run(main()) ```python # Synchronous Example -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -220,7 +220,7 @@ The same SDK client can also be used to make asychronous requests by importing a ```python # Asynchronous Example import asyncio -from glean import Glean, models +from glean.api_client import Glean, models import os async def main(): @@ -259,8 +259,8 @@ This SDK supports the following security scheme globally: To authenticate with the API the `api_token` parameter must be set when initializing the SDK client instance. For example: ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -541,8 +541,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call: ```python -from glean import Glean, models -from glean.utils import BackoffStrategy, RetryConfig, parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime import os @@ -582,8 +582,8 @@ with Glean( If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK: ```python -from glean import Glean, models -from glean.utils import BackoffStrategy, RetryConfig, parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import BackoffStrategy, RetryConfig, parse_datetime import os @@ -641,7 +641,7 @@ All operations return a response object or raise an exception: ### Example ```python -from glean import Glean, errors, models +from glean.api_client import Glean, errors, models import os @@ -720,8 +720,8 @@ The default server `https://{instance}-be.glean.com` contains variables and is s #### Example ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -763,8 +763,8 @@ with Glean( The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -812,7 +812,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu For example, you could specify a header for every request that this sdk makes as follows: ```python -from glean import Glean +from glean.api_client import Glean import httpx http_client = httpx.Client(headers={"x-custom-header": "someValue"}) @@ -821,8 +821,8 @@ s = Glean(client=http_client) or you could wrap the client with your own custom logic: ```python -from glean import Glean -from glean.httpclient import AsyncHttpClient +from glean.api_client import Glean +from glean.api_client.httpclient import AsyncHttpClient import httpx class CustomClient(AsyncHttpClient): @@ -892,7 +892,7 @@ The `Glean` class implements the context manager protocol and registers a finali [context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers ```python -from glean import Glean +from glean.api_client import Glean import os def main(): @@ -919,7 +919,7 @@ You can setup your SDK to emit debug logs for SDK requests and responses. You can pass your own logger class directly into your SDK. ```python -from glean import Glean +from glean.api_client import Glean import logging logging.basicConfig(level=logging.DEBUG) diff --git a/USAGE.md b/USAGE.md index ee23c873..2f889db2 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,7 +1,7 @@ ```python # Synchronous Example -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -29,7 +29,7 @@ The same SDK client can also be used to make asychronous requests by importing a ```python # Asynchronous Example import asyncio -from glean import Glean, models +from glean.api_client import Glean, models import os async def main(): @@ -56,7 +56,7 @@ asyncio.run(main()) ```python # Synchronous Example -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -84,7 +84,7 @@ The same SDK client can also be used to make asychronous requests by importing a ```python # Asynchronous Example import asyncio -from glean import Glean, models +from glean.api_client import Glean, models import os async def main(): diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index e7c486c8..96516f93 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -18,7 +18,7 @@ Get an agent by ID. This endpoint implements the LangChain Agent Protocol, speci ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -58,7 +58,7 @@ Get an agent's schemas by ID. This endpoint implements the LangChain Agent Proto ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -98,7 +98,7 @@ List Agents available in this service. This endpoint implements the LangChain Ag ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -137,7 +137,7 @@ Creates and triggers a run of an agent. Streams the output in SSE format. This e ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -176,7 +176,7 @@ Creates and triggers a run of an agent. Waits for final output and then returns ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/announcements/README.md b/docs/sdks/announcements/README.md index 6a3c79ec..8462996f 100644 --- a/docs/sdks/announcements/README.md +++ b/docs/sdks/announcements/README.md @@ -17,8 +17,8 @@ Create a textual announcement visible to some set of users based on department a ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -22092,7 +22092,7 @@ Delete an existing user-generated announcement. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -22127,8 +22127,8 @@ Update a textual announcement visible to some set of users based on department a ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os diff --git a/docs/sdks/answers/README.md b/docs/sdks/answers/README.md index 8e0824df..766273ef 100644 --- a/docs/sdks/answers/README.md +++ b/docs/sdks/answers/README.md @@ -19,8 +19,8 @@ Create a user-generated Answer that contains a question and answer. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -1390,7 +1390,7 @@ Delete an existing user-generated Answer. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -1426,8 +1426,8 @@ Update an existing user-generated Answer. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -2391,7 +2391,7 @@ Read the details of a particular Answer given its ID. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -2433,7 +2433,7 @@ List Answers created by the current user. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/clientactivity/README.md b/docs/sdks/clientactivity/README.md index 1c9ba7dc..89f0de06 100644 --- a/docs/sdks/clientactivity/README.md +++ b/docs/sdks/clientactivity/README.md @@ -15,8 +15,8 @@ Report user activity that occurs on indexed documents such as viewing or editing ### Example Usage ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -73,7 +73,7 @@ Report events that happen to results within a Glean client UI, such as search re ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os diff --git a/docs/sdks/clientauthentication/README.md b/docs/sdks/clientauthentication/README.md index e0030df0..d5351c52 100644 --- a/docs/sdks/clientauthentication/README.md +++ b/docs/sdks/clientauthentication/README.md @@ -14,7 +14,7 @@ Creates an authentication token for the authenticated user. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md index 7aecec69..37e78693 100644 --- a/docs/sdks/clientchat/README.md +++ b/docs/sdks/clientchat/README.md @@ -23,7 +23,7 @@ Have a conversation with Glean AI. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -80,7 +80,7 @@ Deletes all saved Chats a user has had and all their contained conversational co ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -114,7 +114,7 @@ Deletes saved Chats and all their contained conversational content. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -149,7 +149,7 @@ Retrieves the chat history between Glean Assistant and the user for a given Chat ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -189,7 +189,7 @@ Retrieves all the saved Chats between Glean Assistant and the user. The returned ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -228,7 +228,7 @@ Gets the Chat application details for the specified application ID. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -268,7 +268,7 @@ Upload files for Chat. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -313,7 +313,7 @@ Get files uploaded by a user for Chat. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -355,7 +355,7 @@ Delete files uploaded by a user for Chat. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -394,7 +394,7 @@ Have a conversation with Glean AI. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os diff --git a/docs/sdks/clientdocuments/README.md b/docs/sdks/clientdocuments/README.md index 4dc51c49..c2eb3bde 100644 --- a/docs/sdks/clientdocuments/README.md +++ b/docs/sdks/clientdocuments/README.md @@ -17,7 +17,7 @@ Read the emails of all users who have access to the given document. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -56,7 +56,7 @@ Read the documents including metadata (does not include enhanced metadata via `/ ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -95,7 +95,7 @@ Read the documents including metadata (does not include enhanced metadata via `/ ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -171,7 +171,7 @@ Generate an AI summary of the requested documents. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/clientshortcuts/README.md b/docs/sdks/clientshortcuts/README.md index 720ff413..3dd20eb4 100644 --- a/docs/sdks/clientshortcuts/README.md +++ b/docs/sdks/clientshortcuts/README.md @@ -19,8 +19,8 @@ Create a user-generated shortcut that contains an alias and destination URL. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -1642,7 +1642,7 @@ Delete an existing user-generated shortcut. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -1676,7 +1676,7 @@ Read a particular shortcut's details given its ID. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -1717,7 +1717,7 @@ List shortcuts editable/owned by the currently authenticated user. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -1776,8 +1776,8 @@ Updates the shortcut with the given ID. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os diff --git a/docs/sdks/clientverification/README.md b/docs/sdks/clientverification/README.md index f51a2d7c..c177e107 100644 --- a/docs/sdks/clientverification/README.md +++ b/docs/sdks/clientverification/README.md @@ -16,7 +16,7 @@ Creates a verification reminder for the document. Users can create verification ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -58,7 +58,7 @@ Returns the information to be rendered in verification dashboard. Includes infor ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -97,7 +97,7 @@ Verify documents to keep the knowledge up to date within customer corpus. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 37b6cd8c..ab5811aa 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -21,7 +21,7 @@ Add items to a Collection. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -62,8 +62,8 @@ Create a publicly visible (empty) Collection of documents. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -759,7 +759,7 @@ Delete a Collection given the Collection's ID. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -799,7 +799,7 @@ Delete a single item from a Collection. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -841,8 +841,8 @@ Update the properties of an existing Collection. ```python from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -1938,7 +1938,7 @@ Update the URL, Glean Document ID, description of an item within a Collection gi ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -1981,7 +1981,7 @@ Read the details of a Collection given its ID. Does not fetch items in this Coll ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -2023,7 +2023,7 @@ List all existing Collections. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/datasources/README.md b/docs/sdks/datasources/README.md index d3cdad79..4a509b4c 100644 --- a/docs/sdks/datasources/README.md +++ b/docs/sdks/datasources/README.md @@ -15,7 +15,7 @@ Add or update a custom datasource and its schema. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -84,7 +84,7 @@ Fetches the datasource config for the specified custom datasource. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index 4b58a0a6..541dcd15 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -15,7 +15,7 @@ List some set of details for all entities that fit the given criteria and return ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -71,7 +71,7 @@ Read people details for the given IDs. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/indexingauthentication/README.md b/docs/sdks/indexingauthentication/README.md index f04784c9..3f977f91 100644 --- a/docs/sdks/indexingauthentication/README.md +++ b/docs/sdks/indexingauthentication/README.md @@ -14,7 +14,7 @@ Rotates the secret value inside the Indexing API token and returns the new raw s ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/indexingdatasource/README.md b/docs/sdks/indexingdatasource/README.md index 1dabef04..dbc1d80e 100644 --- a/docs/sdks/indexingdatasource/README.md +++ b/docs/sdks/indexingdatasource/README.md @@ -18,7 +18,7 @@ Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/indexingdocuments/README.md b/docs/sdks/indexingdocuments/README.md index 69592e5f..f90b96f6 100644 --- a/docs/sdks/indexingdocuments/README.md +++ b/docs/sdks/indexingdocuments/README.md @@ -25,7 +25,7 @@ Adds a document to the index or updates an existing document. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -62,7 +62,7 @@ Adds or updates multiple documents in the index. Please refer to the [bulk index ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -98,7 +98,7 @@ Replaces the documents in a datasource using paginated batch API calls. Please r ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -149,7 +149,7 @@ For more frequent document processing, contact Glean support. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -183,7 +183,7 @@ Deletes the specified document from the index. Succeeds if document is not prese ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -223,7 +223,7 @@ Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -267,7 +267,7 @@ Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -315,7 +315,7 @@ Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -362,7 +362,7 @@ Tip: Use [/debug/{datasource}/document](https://developers.glean.com/docs/indexi ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -408,7 +408,7 @@ Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/indexingpermissions/README.md b/docs/sdks/indexingpermissions/README.md index fa8f997b..942409ab 100644 --- a/docs/sdks/indexingpermissions/README.md +++ b/docs/sdks/indexingpermissions/README.md @@ -25,7 +25,7 @@ Updates the permissions for a given document without modifying document content. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -63,7 +63,7 @@ Adds a datasource user or updates an existing user. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -102,7 +102,7 @@ Replaces the users in a datasource using paginated batch API calls. Please refer ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -155,7 +155,7 @@ Add or update a group in the datasource. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -193,7 +193,7 @@ Replaces the groups in a datasource using paginated batch API calls. Please refe ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -240,7 +240,7 @@ Add the memberships of a group in the datasource. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -278,7 +278,7 @@ Replaces the memberships for a group in a datasource using paginated batch API c ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -323,7 +323,7 @@ Schedules the immediate processing of all group memberships uploaded through the ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -357,7 +357,7 @@ Delete the user from the datasource. Silently succeeds if user is not present. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -393,7 +393,7 @@ Delete group from the datasource. Silently succeeds if group is not present. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -429,7 +429,7 @@ Delete membership to a group in the specified datasource. Silently succeeds if m ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -467,7 +467,7 @@ Allow the datasource be visible to the specified beta users. The default behavio ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/indexingshortcuts/README.md b/docs/sdks/indexingshortcuts/README.md index 5c843609..fcfa071f 100644 --- a/docs/sdks/indexingshortcuts/README.md +++ b/docs/sdks/indexingshortcuts/README.md @@ -15,7 +15,7 @@ Replaces all the currently indexed shortcuts using paginated batch API calls. No ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -66,7 +66,7 @@ Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortc ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/insights/README.md b/docs/sdks/insights/README.md index b9b75bba..139f7a63 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -14,7 +14,7 @@ Reads the aggregate information for each user, query, and content. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index e54fd988..3491b1ff 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -14,7 +14,7 @@ Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os diff --git a/docs/sdks/people/README.md b/docs/sdks/people/README.md index 3fd27510..ea830e9b 100644 --- a/docs/sdks/people/README.md +++ b/docs/sdks/people/README.md @@ -26,7 +26,7 @@ Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -71,7 +71,7 @@ Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -110,7 +110,7 @@ Adds an employee or updates information about an employee ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -154,7 +154,7 @@ Replaces all the currently indexed employees using paginated batch API calls. Pl ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -225,7 +225,7 @@ Schedules the immediate processing of employees and teams uploaded through the i ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -258,7 +258,7 @@ Delete an employee. Silently succeeds if employee is not present. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -293,7 +293,7 @@ Adds a team or updates information about a team ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -350,7 +350,7 @@ Delete a team based on provided id. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -384,7 +384,7 @@ Replaces all the currently indexed teams using paginated batch API calls. Please ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/pins/README.md b/docs/sdks/pins/README.md index d19a33dc..490fd47a 100644 --- a/docs/sdks/pins/README.md +++ b/docs/sdks/pins/README.md @@ -18,7 +18,7 @@ Update an existing user-generated pin. ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -73,7 +73,7 @@ Read pin details given its ID. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -112,7 +112,7 @@ Lists all pins. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -151,7 +151,7 @@ Pin a document as a result for a given search query.Pin results that are known t ### Example Usage ```python -from glean import Glean, models +from glean.api_client import Glean, models import os @@ -206,7 +206,7 @@ Unpin a previously pinned result. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/policies/README.md b/docs/sdks/policies/README.md index bb27c6c2..ab836229 100644 --- a/docs/sdks/policies/README.md +++ b/docs/sdks/policies/README.md @@ -18,7 +18,7 @@ Fetches the specified policy version, or the latest if no version is provided. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -58,7 +58,7 @@ Updates an existing policy. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -102,7 +102,7 @@ Lists policies with filtering. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -142,7 +142,7 @@ Creates a new policy with specified specifications and returns its id. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -181,7 +181,7 @@ Downloads CSV violations report for a specific policy id. This does not support ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/reports/README.md b/docs/sdks/reports/README.md index a1896679..09ae1611 100644 --- a/docs/sdks/reports/README.md +++ b/docs/sdks/reports/README.md @@ -16,7 +16,7 @@ Creates a new one-time report and executes its batch job. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -55,7 +55,7 @@ Downloads CSV violations report for a specific report id. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -94,7 +94,7 @@ Fetches the status of the run corresponding to the report-id. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 3e3e6dad..b1987d30 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -18,8 +18,8 @@ Retrieves results for search query without respect for permissions. This is avai ### Example Usage ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -132,7 +132,7 @@ Retrieve query suggestions, operators and documents for the given partially type ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -176,7 +176,7 @@ The personalized feed/home includes different types of contents including sugges ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -217,8 +217,8 @@ Retrieve recommended documents for the given URL or Glean Document ID. ### Example Usage ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os @@ -365,8 +365,8 @@ Retrieve results from the index for the given query and filters. ### Example Usage ```python -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os diff --git a/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index 1394f356..fb10e54f 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -15,7 +15,7 @@ Returns a filtered set of available tools based on optional tool name parameters ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -54,7 +54,7 @@ Execute the specified tool with provided parameters ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/docs/sdks/visibilityoverrides/README.md b/docs/sdks/visibilityoverrides/README.md index 261b22d8..5e483126 100644 --- a/docs/sdks/visibilityoverrides/README.md +++ b/docs/sdks/visibilityoverrides/README.md @@ -15,7 +15,7 @@ Fetches the visibility override status of the documents passed. ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os @@ -54,7 +54,7 @@ Sets the visibility-override state of the documents specified, effectively hidin ### Example Usage ```python -from glean import Glean +from glean.api_client import Glean import os diff --git a/examples/chat_example.py b/examples/chat_example.py index d337c9ed..96639dc4 100644 --- a/examples/chat_example.py +++ b/examples/chat_example.py @@ -2,7 +2,7 @@ # poetry install # poetry run python examples/ask_example.py -from glean import Glean, errors, models +from glean.api_client import Glean, errors, models import os diff --git a/src/glean/__init__.py b/src/glean/api_client/__init__.py similarity index 100% rename from src/glean/__init__.py rename to src/glean/api_client/__init__.py diff --git a/src/glean/_hooks/__init__.py b/src/glean/api_client/_hooks/__init__.py similarity index 100% rename from src/glean/_hooks/__init__.py rename to src/glean/api_client/_hooks/__init__.py diff --git a/src/glean/_hooks/registration.py b/src/glean/api_client/_hooks/registration.py similarity index 100% rename from src/glean/_hooks/registration.py rename to src/glean/api_client/_hooks/registration.py diff --git a/src/glean/_hooks/sdkhooks.py b/src/glean/api_client/_hooks/sdkhooks.py similarity index 98% rename from src/glean/_hooks/sdkhooks.py rename to src/glean/api_client/_hooks/sdkhooks.py index 64e1c954..198de607 100644 --- a/src/glean/_hooks/sdkhooks.py +++ b/src/glean/api_client/_hooks/sdkhooks.py @@ -13,7 +13,7 @@ ) from .registration import init_hooks from typing import List, Optional, Tuple -from glean.httpclient import HttpClient +from glean.api_client.httpclient import HttpClient class SDKHooks(Hooks): diff --git a/src/glean/_hooks/types.py b/src/glean/api_client/_hooks/types.py similarity index 96% rename from src/glean/_hooks/types.py rename to src/glean/api_client/_hooks/types.py index 05fd0c94..58c4d70a 100644 --- a/src/glean/_hooks/types.py +++ b/src/glean/api_client/_hooks/types.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from abc import ABC, abstractmethod -from glean.httpclient import HttpClient -from glean.sdkconfiguration import SDKConfiguration +from glean.api_client.httpclient import HttpClient +from glean.api_client.sdkconfiguration import SDKConfiguration import httpx from typing import Any, Callable, List, Optional, Tuple, Union diff --git a/src/glean/_version.py b/src/glean/api_client/_version.py similarity index 100% rename from src/glean/_version.py rename to src/glean/api_client/_version.py diff --git a/src/glean/agents.py b/src/glean/api_client/agents.py similarity index 99% rename from src/glean/agents.py rename to src/glean/api_client/agents.py index f5f56c3f..7cd581b1 100644 --- a/src/glean/agents.py +++ b/src/glean/api_client/agents.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional, Union, cast diff --git a/src/glean/announcements.py b/src/glean/api_client/announcements.py similarity index 99% rename from src/glean/announcements.py rename to src/glean/api_client/announcements.py index 6ef937c7..2b7b5bdc 100644 --- a/src/glean/announcements.py +++ b/src/glean/api_client/announcements.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from datetime import datetime -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/answers.py b/src/glean/api_client/answers.py similarity index 99% rename from src/glean/answers.py rename to src/glean/api_client/answers.py index 3515091c..6932160d 100644 --- a/src/glean/answers.py +++ b/src/glean/api_client/answers.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast diff --git a/src/glean/basesdk.py b/src/glean/api_client/basesdk.py similarity index 98% rename from src/glean/basesdk.py rename to src/glean/api_client/basesdk.py index 5b01f2ae..b5dddbd2 100644 --- a/src/glean/basesdk.py +++ b/src/glean/api_client/basesdk.py @@ -1,9 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .sdkconfiguration import SDKConfiguration -from glean import errors, models, utils -from glean._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext -from glean.utils import RetryConfig, SerializedRequestBody, get_body_content +from glean.api_client import errors, models, utils +from glean.api_client._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext +from glean.api_client.utils import RetryConfig, SerializedRequestBody, get_body_content import httpx from typing import Callable, List, Mapping, Optional, Tuple from urllib.parse import parse_qs, urlparse diff --git a/src/glean/client.py b/src/glean/api_client/client.py similarity index 67% rename from src/glean/client.py rename to src/glean/api_client/client.py index 901eda0b..c435c8e9 100644 --- a/src/glean/client.py +++ b/src/glean/api_client/client.py @@ -2,23 +2,23 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from glean.agents import Agents -from glean.announcements import Announcements -from glean.answers import Answers -from glean.client_activity import ClientActivity -from glean.client_authentication import ClientAuthentication -from glean.client_chat import ClientChat -from glean.client_documents import ClientDocuments -from glean.client_shortcuts import ClientShortcuts -from glean.client_verification import ClientVerification -from glean.collections import Collections -from glean.entities import Entities -from glean.governance import Governance -from glean.insights import Insights -from glean.messages import Messages -from glean.pins import Pins -from glean.search import Search -from glean.tools import Tools +from glean.api_client.agents import Agents +from glean.api_client.announcements import Announcements +from glean.api_client.answers import Answers +from glean.api_client.client_activity import ClientActivity +from glean.api_client.client_authentication import ClientAuthentication +from glean.api_client.client_chat import ClientChat +from glean.api_client.client_documents import ClientDocuments +from glean.api_client.client_shortcuts import ClientShortcuts +from glean.api_client.client_verification import ClientVerification +from glean.api_client.collections import Collections +from glean.api_client.entities import Entities +from glean.api_client.governance import Governance +from glean.api_client.insights import Insights +from glean.api_client.messages import Messages +from glean.api_client.pins import Pins +from glean.api_client.search import Search +from glean.api_client.tools import Tools class Client(BaseSDK): diff --git a/src/glean/client_activity.py b/src/glean/api_client/client_activity.py similarity index 98% rename from src/glean/client_activity.py rename to src/glean/api_client/client_activity.py index d7cc7412..bff2a361 100644 --- a/src/glean/client_activity.py +++ b/src/glean/api_client/client_activity.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/client_authentication.py b/src/glean/api_client/client_authentication.py similarity index 97% rename from src/glean/client_authentication.py rename to src/glean/api_client/client_authentication.py index 408d224a..eb4557b8 100644 --- a/src/glean/client_authentication.py +++ b/src/glean/api_client/client_authentication.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional diff --git a/src/glean/client_chat.py b/src/glean/api_client/client_chat.py similarity index 99% rename from src/glean/client_chat.py rename to src/glean/api_client/client_chat.py index 636eff9b..875c3ce9 100644 --- a/src/glean/client_chat.py +++ b/src/glean/api_client/client_chat.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/client_documents.py b/src/glean/api_client/client_documents.py similarity index 99% rename from src/glean/client_documents.py rename to src/glean/api_client/client_documents.py index 613aae6c..486e0133 100644 --- a/src/glean/client_documents.py +++ b/src/glean/api_client/client_documents.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from datetime import datetime -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast diff --git a/src/glean/client_shortcuts.py b/src/glean/api_client/client_shortcuts.py similarity index 99% rename from src/glean/client_shortcuts.py rename to src/glean/api_client/client_shortcuts.py index d56841d4..900d1492 100644 --- a/src/glean/client_shortcuts.py +++ b/src/glean/api_client/client_shortcuts.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast diff --git a/src/glean/client_verification.py b/src/glean/api_client/client_verification.py similarity index 99% rename from src/glean/client_verification.py rename to src/glean/api_client/client_verification.py index d25734ea..2cc2a343 100644 --- a/src/glean/client_verification.py +++ b/src/glean/api_client/client_verification.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional diff --git a/src/glean/collections.py b/src/glean/api_client/collections.py similarity index 99% rename from src/glean/collections.py rename to src/glean/api_client/collections.py index 1407f8c7..4dcae3c6 100644 --- a/src/glean/collections.py +++ b/src/glean/api_client/collections.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Any, List, Mapping, Optional, Union, cast diff --git a/src/glean/data.py b/src/glean/api_client/data.py similarity index 85% rename from src/glean/data.py rename to src/glean/api_client/data.py index b99f1730..5644cede 100644 --- a/src/glean/data.py +++ b/src/glean/api_client/data.py @@ -2,8 +2,8 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from glean.policies import Policies -from glean.reports import Reports +from glean.api_client.policies import Policies +from glean.api_client.reports import Reports class Data(BaseSDK): diff --git a/src/glean/datasources.py b/src/glean/api_client/datasources.py similarity index 99% rename from src/glean/datasources.py rename to src/glean/api_client/datasources.py index 73e6f88b..e8b57579 100644 --- a/src/glean/datasources.py +++ b/src/glean/api_client/datasources.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/entities.py b/src/glean/api_client/entities.py similarity index 98% rename from src/glean/entities.py rename to src/glean/api_client/entities.py index 21f54952..db14648d 100644 --- a/src/glean/entities.py +++ b/src/glean/api_client/entities.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional, Union, cast diff --git a/src/glean/errors/__init__.py b/src/glean/api_client/errors/__init__.py similarity index 100% rename from src/glean/errors/__init__.py rename to src/glean/api_client/errors/__init__.py diff --git a/src/glean/errors/collectionerror.py b/src/glean/api_client/errors/collectionerror.py similarity index 78% rename from src/glean/errors/collectionerror.py rename to src/glean/api_client/errors/collectionerror.py index 968009a0..49cc9653 100644 --- a/src/glean/errors/collectionerror.py +++ b/src/glean/api_client/errors/collectionerror.py @@ -1,9 +1,9 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean import utils -from glean.models import collectionerror as models_collectionerror -from glean.types import BaseModel +from glean.api_client import utils +from glean.api_client.models import collectionerror as models_collectionerror +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated diff --git a/src/glean/errors/gleandataerror.py b/src/glean/api_client/errors/gleandataerror.py similarity index 92% rename from src/glean/errors/gleandataerror.py rename to src/glean/api_client/errors/gleandataerror.py index c0b55746..cce205b6 100644 --- a/src/glean/errors/gleandataerror.py +++ b/src/glean/api_client/errors/gleandataerror.py @@ -1,12 +1,12 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean import utils -from glean.models import ( +from glean.api_client import utils +from glean.api_client.models import ( errormessage as models_errormessage, invalidoperatorvalueerror as models_invalidoperatorvalueerror, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated diff --git a/src/glean/errors/gleanerror.py b/src/glean/api_client/errors/gleanerror.py similarity index 100% rename from src/glean/errors/gleanerror.py rename to src/glean/api_client/errors/gleanerror.py diff --git a/src/glean/governance.py b/src/glean/api_client/governance.py similarity index 83% rename from src/glean/governance.py rename to src/glean/api_client/governance.py index ed1b5548..a2bbbc3a 100644 --- a/src/glean/governance.py +++ b/src/glean/api_client/governance.py @@ -2,8 +2,8 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from glean.data import Data -from glean.governance_documents import GovernanceDocuments +from glean.api_client.data import Data +from glean.api_client.governance_documents import GovernanceDocuments class Governance(BaseSDK): diff --git a/src/glean/governance_documents.py b/src/glean/api_client/governance_documents.py similarity index 88% rename from src/glean/governance_documents.py rename to src/glean/api_client/governance_documents.py index 549c9bdb..2a665859 100644 --- a/src/glean/governance_documents.py +++ b/src/glean/api_client/governance_documents.py @@ -2,7 +2,7 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from glean.visibilityoverrides import Visibilityoverrides +from glean.api_client.visibilityoverrides import Visibilityoverrides class GovernanceDocuments(BaseSDK): diff --git a/src/glean/httpclient.py b/src/glean/api_client/httpclient.py similarity index 100% rename from src/glean/httpclient.py rename to src/glean/api_client/httpclient.py diff --git a/src/glean/indexing.py b/src/glean/api_client/indexing.py similarity index 70% rename from src/glean/indexing.py rename to src/glean/api_client/indexing.py index 6a13f19d..e74c3a8c 100644 --- a/src/glean/indexing.py +++ b/src/glean/api_client/indexing.py @@ -2,13 +2,13 @@ from .basesdk import BaseSDK from .sdkconfiguration import SDKConfiguration -from glean.datasources import Datasources -from glean.indexing_authentication import IndexingAuthentication -from glean.indexing_datasource import IndexingDatasource -from glean.indexing_documents import IndexingDocuments -from glean.indexing_permissions import IndexingPermissions -from glean.indexing_shortcuts import IndexingShortcuts -from glean.people import People +from glean.api_client.datasources import Datasources +from glean.api_client.indexing_authentication import IndexingAuthentication +from glean.api_client.indexing_datasource import IndexingDatasource +from glean.api_client.indexing_documents import IndexingDocuments +from glean.api_client.indexing_permissions import IndexingPermissions +from glean.api_client.indexing_shortcuts import IndexingShortcuts +from glean.api_client.people import People class Indexing(BaseSDK): diff --git a/src/glean/indexing_authentication.py b/src/glean/api_client/indexing_authentication.py similarity index 97% rename from src/glean/indexing_authentication.py rename to src/glean/api_client/indexing_authentication.py index ceb1d5e0..f45bc56f 100644 --- a/src/glean/indexing_authentication.py +++ b/src/glean/api_client/indexing_authentication.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional diff --git a/src/glean/indexing_datasource.py b/src/glean/api_client/indexing_datasource.py similarity index 97% rename from src/glean/indexing_datasource.py rename to src/glean/api_client/indexing_datasource.py index 16ea3445..159c9772 100644 --- a/src/glean/indexing_datasource.py +++ b/src/glean/api_client/indexing_datasource.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional diff --git a/src/glean/indexing_documents.py b/src/glean/api_client/indexing_documents.py similarity index 99% rename from src/glean/indexing_documents.py rename to src/glean/api_client/indexing_documents.py index c8001a02..fb5c49c9 100644 --- a/src/glean/indexing_documents.py +++ b/src/glean/api_client/indexing_documents.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast from typing_extensions import deprecated diff --git a/src/glean/indexing_permissions.py b/src/glean/api_client/indexing_permissions.py similarity index 99% rename from src/glean/indexing_permissions.py rename to src/glean/api_client/indexing_permissions.py index 4bc17305..963deccc 100644 --- a/src/glean/indexing_permissions.py +++ b/src/glean/api_client/indexing_permissions.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast diff --git a/src/glean/indexing_shortcuts.py b/src/glean/api_client/indexing_shortcuts.py similarity index 98% rename from src/glean/indexing_shortcuts.py rename to src/glean/api_client/indexing_shortcuts.py index 8b085b55..e97ee2fb 100644 --- a/src/glean/indexing_shortcuts.py +++ b/src/glean/api_client/indexing_shortcuts.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/insights.py b/src/glean/api_client/insights.py similarity index 98% rename from src/glean/insights.py rename to src/glean/api_client/insights.py index 03573d38..aac70ccf 100644 --- a/src/glean/insights.py +++ b/src/glean/api_client/insights.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union diff --git a/src/glean/messages.py b/src/glean/api_client/messages.py similarity index 98% rename from src/glean/messages.py rename to src/glean/api_client/messages.py index 610cafcb..8bab29c5 100644 --- a/src/glean/messages.py +++ b/src/glean/api_client/messages.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional diff --git a/src/glean/models/__init__.py b/src/glean/api_client/models/__init__.py similarity index 100% rename from src/glean/models/__init__.py rename to src/glean/api_client/models/__init__.py diff --git a/src/glean/models/activity.py b/src/glean/api_client/models/activity.py similarity index 89% rename from src/glean/models/activity.py rename to src/glean/api_client/models/activity.py index 3345caa9..d5bc29a4 100644 --- a/src/glean/models/activity.py +++ b/src/glean/api_client/models/activity.py @@ -2,7 +2,7 @@ from __future__ import annotations from .activityevent import ActivityEvent, ActivityEventTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List from typing_extensions import TypedDict diff --git a/src/glean/models/activityevent.py b/src/glean/api_client/models/activityevent.py similarity index 97% rename from src/glean/models/activityevent.py rename to src/glean/api_client/models/activityevent.py index 47af1a61..a05294c4 100644 --- a/src/glean/models/activityevent.py +++ b/src/glean/api_client/models/activityevent.py @@ -4,7 +4,7 @@ from .activityeventparams import ActivityEventParams, ActivityEventParamsTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/activityeventparams.py b/src/glean/api_client/models/activityeventparams.py similarity index 98% rename from src/glean/models/activityeventparams.py rename to src/glean/api_client/models/activityeventparams.py index 7bb52217..ca97d3e4 100644 --- a/src/glean/models/activityeventparams.py +++ b/src/glean/api_client/models/activityeventparams.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/addcollectionitemserror.py b/src/glean/api_client/models/addcollectionitemserror.py similarity index 93% rename from src/glean/models/addcollectionitemserror.py rename to src/glean/api_client/models/addcollectionitemserror.py index e1b963bf..31118e56 100644 --- a/src/glean/models/addcollectionitemserror.py +++ b/src/glean/api_client/models/addcollectionitemserror.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/addcollectionitemsrequest.py b/src/glean/api_client/models/addcollectionitemsrequest.py similarity index 95% rename from src/glean/models/addcollectionitemsrequest.py rename to src/glean/api_client/models/addcollectionitemsrequest.py index b0567ad4..e838d123 100644 --- a/src/glean/models/addcollectionitemsrequest.py +++ b/src/glean/api_client/models/addcollectionitemsrequest.py @@ -5,7 +5,7 @@ CollectionItemDescriptor, CollectionItemDescriptorTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/addcollectionitemsresponse.py b/src/glean/api_client/models/addcollectionitemsresponse.py similarity index 93% rename from src/glean/models/addcollectionitemsresponse.py rename to src/glean/api_client/models/addcollectionitemsresponse.py index 2323f5b2..20ec74c3 100644 --- a/src/glean/models/addcollectionitemsresponse.py +++ b/src/glean/api_client/models/addcollectionitemsresponse.py @@ -6,7 +6,7 @@ AddCollectionItemsErrorTypedDict, ) from .collection import Collection, CollectionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/additionalfielddefinition.py b/src/glean/api_client/models/additionalfielddefinition.py similarity index 98% rename from src/glean/models/additionalfielddefinition.py rename to src/glean/api_client/models/additionalfielddefinition.py index dd54ddfd..70b5a835 100644 --- a/src/glean/models/additionalfielddefinition.py +++ b/src/glean/api_client/models/additionalfielddefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/agent.py b/src/glean/api_client/models/agent.py similarity index 98% rename from src/glean/models/agent.py rename to src/glean/api_client/models/agent.py index a8e1aeed..7f9d9080 100644 --- a/src/glean/models/agent.py +++ b/src/glean/api_client/models/agent.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from pydantic import ConfigDict from typing import Any, Dict, Optional diff --git a/src/glean/models/agentconfig.py b/src/glean/api_client/models/agentconfig.py similarity index 95% rename from src/glean/models/agentconfig.py rename to src/glean/api_client/models/agentconfig.py index 2a25de73..c9f5b77d 100644 --- a/src/glean/models/agentconfig.py +++ b/src/glean/api_client/models/agentconfig.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/agentexecutionstatus.py b/src/glean/api_client/models/agentexecutionstatus.py similarity index 100% rename from src/glean/models/agentexecutionstatus.py rename to src/glean/api_client/models/agentexecutionstatus.py diff --git a/src/glean/models/agentrun.py b/src/glean/api_client/models/agentrun.py similarity index 96% rename from src/glean/models/agentrun.py rename to src/glean/api_client/models/agentrun.py index 40bae9fc..d79dd526 100644 --- a/src/glean/models/agentrun.py +++ b/src/glean/api_client/models/agentrun.py @@ -3,7 +3,7 @@ from __future__ import annotations from .agentexecutionstatus import AgentExecutionStatus from .message import Message, MessageTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Any, Dict, List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/agentruncreate.py b/src/glean/api_client/models/agentruncreate.py similarity index 95% rename from src/glean/models/agentruncreate.py rename to src/glean/api_client/models/agentruncreate.py index 7d87b0dc..d1a9058d 100644 --- a/src/glean/models/agentruncreate.py +++ b/src/glean/api_client/models/agentruncreate.py @@ -2,7 +2,7 @@ from __future__ import annotations from .message import Message, MessageTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Any, Dict, List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/agentrunwaitresponse.py b/src/glean/api_client/models/agentrunwaitresponse.py similarity index 93% rename from src/glean/models/agentrunwaitresponse.py rename to src/glean/api_client/models/agentrunwaitresponse.py index 1bec8c68..151a8c6e 100644 --- a/src/glean/models/agentrunwaitresponse.py +++ b/src/glean/api_client/models/agentrunwaitresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .agentrun import AgentRun, AgentRunTypedDict from .message import Message, MessageTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/agentschemas.py b/src/glean/api_client/models/agentschemas.py similarity index 96% rename from src/glean/models/agentschemas.py rename to src/glean/api_client/models/agentschemas.py index f66c83c9..9dd72561 100644 --- a/src/glean/models/agentschemas.py +++ b/src/glean/api_client/models/agentschemas.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/aiappactioncounts.py b/src/glean/api_client/models/aiappactioncounts.py similarity index 98% rename from src/glean/models/aiappactioncounts.py rename to src/glean/api_client/models/aiappactioncounts.py index e148a16c..63068d07 100644 --- a/src/glean/models/aiappactioncounts.py +++ b/src/glean/api_client/models/aiappactioncounts.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from pydantic import ConfigDict from typing import Dict, Optional diff --git a/src/glean/models/aiappsinsightsresponse.py b/src/glean/api_client/models/aiappsinsightsresponse.py similarity index 97% rename from src/glean/models/aiappsinsightsresponse.py rename to src/glean/api_client/models/aiappsinsightsresponse.py index 983143fa..88b2de71 100644 --- a/src/glean/models/aiappsinsightsresponse.py +++ b/src/glean/api_client/models/aiappsinsightsresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .aiappactioncounts import AiAppActionCounts, AiAppActionCountsTypedDict from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/aiinsightsresponse.py b/src/glean/api_client/models/aiinsightsresponse.py similarity index 98% rename from src/glean/models/aiinsightsresponse.py rename to src/glean/api_client/models/aiinsightsresponse.py index d2f0ee44..05426681 100644 --- a/src/glean/models/aiinsightsresponse.py +++ b/src/glean/api_client/models/aiinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/allowlistoptions.py b/src/glean/api_client/models/allowlistoptions.py similarity index 94% rename from src/glean/models/allowlistoptions.py rename to src/glean/api_client/models/allowlistoptions.py index ddd7ad1b..9e546b7a 100644 --- a/src/glean/models/allowlistoptions.py +++ b/src/glean/api_client/models/allowlistoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/announcement.py b/src/glean/api_client/models/announcement.py similarity index 99% rename from src/glean/models/announcement.py rename to src/glean/api_client/models/announcement.py index af035a90..a7a308f6 100644 --- a/src/glean/models/announcement.py +++ b/src/glean/api_client/models/announcement.py @@ -9,7 +9,7 @@ from .thumbnail import Thumbnail, ThumbnailTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/anonymousevent.py b/src/glean/api_client/models/anonymousevent.py similarity index 95% rename from src/glean/models/anonymousevent.py rename to src/glean/api_client/models/anonymousevent.py index 55235ef5..72e1b97f 100644 --- a/src/glean/models/anonymousevent.py +++ b/src/glean/api_client/models/anonymousevent.py @@ -3,7 +3,7 @@ from __future__ import annotations from .timeinterval import TimeInterval, TimeIntervalTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/answer.py b/src/glean/api_client/models/answer.py similarity index 99% rename from src/glean/models/answer.py rename to src/glean/api_client/models/answer.py index e50b44a2..000e5893 100644 --- a/src/glean/models/answer.py +++ b/src/glean/api_client/models/answer.py @@ -6,7 +6,7 @@ from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/answerboard.py b/src/glean/api_client/models/answerboard.py similarity index 98% rename from src/glean/models/answerboard.py rename to src/glean/api_client/models/answerboard.py index 05734ac5..7e63384b 100644 --- a/src/glean/models/answerboard.py +++ b/src/glean/api_client/models/answerboard.py @@ -4,7 +4,7 @@ from .facetfilter import FacetFilter, FacetFilterTypedDict from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/answercreationdata.py b/src/glean/api_client/models/answercreationdata.py similarity index 98% rename from src/glean/models/answercreationdata.py rename to src/glean/api_client/models/answercreationdata.py index 6f21c8b8..b3c6f130 100644 --- a/src/glean/models/answercreationdata.py +++ b/src/glean/api_client/models/answercreationdata.py @@ -9,7 +9,7 @@ ) from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/answerlike.py b/src/glean/api_client/models/answerlike.py similarity index 94% rename from src/glean/models/answerlike.py rename to src/glean/api_client/models/answerlike.py index 8029de8b..13fe4e8e 100644 --- a/src/glean/models/answerlike.py +++ b/src/glean/api_client/models/answerlike.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/answerlikes.py b/src/glean/api_client/models/answerlikes.py similarity index 95% rename from src/glean/models/answerlikes.py rename to src/glean/api_client/models/answerlikes.py index 3924016f..7eaed580 100644 --- a/src/glean/models/answerlikes.py +++ b/src/glean/api_client/models/answerlikes.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, TYPE_CHECKING from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/answerresult.py b/src/glean/api_client/models/answerresult.py similarity index 94% rename from src/glean/models/answerresult.py rename to src/glean/api_client/models/answerresult.py index af5df5e9..53786e41 100644 --- a/src/glean/models/answerresult.py +++ b/src/glean/api_client/models/answerresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from .answer import Answer, AnswerTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/appresult.py b/src/glean/api_client/models/appresult.py similarity index 96% rename from src/glean/models/appresult.py rename to src/glean/api_client/models/appresult.py index 2e8ff9cf..f4bd01d7 100644 --- a/src/glean/models/appresult.py +++ b/src/glean/api_client/models/appresult.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/authconfig.py b/src/glean/api_client/models/authconfig.py similarity index 98% rename from src/glean/models/authconfig.py rename to src/glean/api_client/models/authconfig.py index 98ada4b7..aa025f87 100644 --- a/src/glean/models/authconfig.py +++ b/src/glean/api_client/models/authconfig.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/authtoken.py b/src/glean/api_client/models/authtoken.py similarity index 96% rename from src/glean/models/authtoken.py rename to src/glean/api_client/models/authtoken.py index 3f0f862c..789d550d 100644 --- a/src/glean/models/authtoken.py +++ b/src/glean/api_client/models/authtoken.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/autocompleterequest.py b/src/glean/api_client/models/autocompleterequest.py similarity index 98% rename from src/glean/models/autocompleterequest.py rename to src/glean/api_client/models/autocompleterequest.py index 9dc7bded..a0f18921 100644 --- a/src/glean/models/autocompleterequest.py +++ b/src/glean/api_client/models/autocompleterequest.py @@ -4,7 +4,7 @@ from .authtoken import AuthToken, AuthTokenTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/autocompleteresponse.py b/src/glean/api_client/models/autocompleteresponse.py similarity index 98% rename from src/glean/models/autocompleteresponse.py rename to src/glean/api_client/models/autocompleteresponse.py index feed4f46..e01a7fe5 100644 --- a/src/glean/models/autocompleteresponse.py +++ b/src/glean/api_client/models/autocompleteresponse.py @@ -8,7 +8,7 @@ ) from .gleandataerror import GleanDataError, GleanDataErrorTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/autocompleteresult.py b/src/glean/api_client/models/autocompleteresult.py similarity index 98% rename from src/glean/models/autocompleteresult.py rename to src/glean/api_client/models/autocompleteresult.py index fdba82ed..dc4f6022 100644 --- a/src/glean/models/autocompleteresult.py +++ b/src/glean/api_client/models/autocompleteresult.py @@ -7,7 +7,7 @@ from .structuredresult import StructuredResult, StructuredResultTypedDict from .textrange import TextRange, TextRangeTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/autocompleteresultgroup.py b/src/glean/api_client/models/autocompleteresultgroup.py similarity index 96% rename from src/glean/models/autocompleteresultgroup.py rename to src/glean/api_client/models/autocompleteresultgroup.py index 57db6754..6ecfef75 100644 --- a/src/glean/models/autocompleteresultgroup.py +++ b/src/glean/api_client/models/autocompleteresultgroup.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/badge.py b/src/glean/api_client/models/badge.py similarity index 96% rename from src/glean/models/badge.py rename to src/glean/api_client/models/badge.py index bbeeb2f1..9ba49c7e 100644 --- a/src/glean/models/badge.py +++ b/src/glean/api_client/models/badge.py @@ -2,7 +2,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexdocumentsrequest.py b/src/glean/api_client/models/bulkindexdocumentsrequest.py similarity index 98% rename from src/glean/models/bulkindexdocumentsrequest.py rename to src/glean/api_client/models/bulkindexdocumentsrequest.py index c210a0ac..cdd99d7b 100644 --- a/src/glean/models/bulkindexdocumentsrequest.py +++ b/src/glean/api_client/models/bulkindexdocumentsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentdefinition import DocumentDefinition, DocumentDefinitionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexemployeesrequest.py b/src/glean/api_client/models/bulkindexemployeesrequest.py similarity index 98% rename from src/glean/models/bulkindexemployeesrequest.py rename to src/glean/api_client/models/bulkindexemployeesrequest.py index 0218f020..1419dc21 100644 --- a/src/glean/models/bulkindexemployeesrequest.py +++ b/src/glean/api_client/models/bulkindexemployeesrequest.py @@ -5,7 +5,7 @@ EmployeeInfoDefinition, EmployeeInfoDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexgroupsrequest.py b/src/glean/api_client/models/bulkindexgroupsrequest.py similarity index 98% rename from src/glean/models/bulkindexgroupsrequest.py rename to src/glean/api_client/models/bulkindexgroupsrequest.py index 171f26b2..07e1a59b 100644 --- a/src/glean/models/bulkindexgroupsrequest.py +++ b/src/glean/api_client/models/bulkindexgroupsrequest.py @@ -5,7 +5,7 @@ DatasourceGroupDefinition, DatasourceGroupDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexmembershipsrequest.py b/src/glean/api_client/models/bulkindexmembershipsrequest.py similarity index 98% rename from src/glean/models/bulkindexmembershipsrequest.py rename to src/glean/api_client/models/bulkindexmembershipsrequest.py index 9367b9fa..44304838 100644 --- a/src/glean/models/bulkindexmembershipsrequest.py +++ b/src/glean/api_client/models/bulkindexmembershipsrequest.py @@ -5,7 +5,7 @@ DatasourceBulkMembershipDefinition, DatasourceBulkMembershipDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexshortcutsrequest.py b/src/glean/api_client/models/bulkindexshortcutsrequest.py similarity index 97% rename from src/glean/models/bulkindexshortcutsrequest.py rename to src/glean/api_client/models/bulkindexshortcutsrequest.py index 382382cb..c80fe55a 100644 --- a/src/glean/models/bulkindexshortcutsrequest.py +++ b/src/glean/api_client/models/bulkindexshortcutsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .externalshortcut import ExternalShortcut, ExternalShortcutTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexteamsrequest.py b/src/glean/api_client/models/bulkindexteamsrequest.py similarity index 97% rename from src/glean/models/bulkindexteamsrequest.py rename to src/glean/api_client/models/bulkindexteamsrequest.py index dbb7fad8..ac60f03e 100644 --- a/src/glean/models/bulkindexteamsrequest.py +++ b/src/glean/api_client/models/bulkindexteamsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .teaminfodefinition import TeamInfoDefinition, TeamInfoDefinitionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkindexusersrequest.py b/src/glean/api_client/models/bulkindexusersrequest.py similarity index 98% rename from src/glean/models/bulkindexusersrequest.py rename to src/glean/api_client/models/bulkindexusersrequest.py index 4ca386bd..a53ca35c 100644 --- a/src/glean/models/bulkindexusersrequest.py +++ b/src/glean/api_client/models/bulkindexusersrequest.py @@ -5,7 +5,7 @@ DatasourceUserDefinition, DatasourceUserDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/bulkuploadhistoryevent.py b/src/glean/api_client/models/bulkuploadhistoryevent.py similarity index 98% rename from src/glean/models/bulkuploadhistoryevent.py rename to src/glean/api_client/models/bulkuploadhistoryevent.py index 9e7d0578..e5cd4781 100644 --- a/src/glean/models/bulkuploadhistoryevent.py +++ b/src/glean/api_client/models/bulkuploadhistoryevent.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/calendarattendee.py b/src/glean/api_client/models/calendarattendee.py similarity index 97% rename from src/glean/models/calendarattendee.py rename to src/glean/api_client/models/calendarattendee.py index 8d06f5e2..a4d87906 100644 --- a/src/glean/models/calendarattendee.py +++ b/src/glean/api_client/models/calendarattendee.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/calendarattendees.py b/src/glean/api_client/models/calendarattendees.py similarity index 98% rename from src/glean/models/calendarattendees.py rename to src/glean/api_client/models/calendarattendees.py index 5ce155dc..232506aa 100644 --- a/src/glean/models/calendarattendees.py +++ b/src/glean/api_client/models/calendarattendees.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/calendarevent.py b/src/glean/api_client/models/calendarevent.py similarity index 98% rename from src/glean/models/calendarevent.py rename to src/glean/api_client/models/calendarevent.py index 4bb4aa6a..467c0117 100644 --- a/src/glean/models/calendarevent.py +++ b/src/glean/api_client/models/calendarevent.py @@ -7,7 +7,7 @@ from .generatedattachment import GeneratedAttachment, GeneratedAttachmentTypedDict from .timeinterval import TimeInterval, TimeIntervalTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/canonicalizingregextype.py b/src/glean/api_client/models/canonicalizingregextype.py similarity index 95% rename from src/glean/models/canonicalizingregextype.py rename to src/glean/api_client/models/canonicalizingregextype.py index c56f8746..dbf351ad 100644 --- a/src/glean/models/canonicalizingregextype.py +++ b/src/glean/api_client/models/canonicalizingregextype.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/channelinviteinfo.py b/src/glean/api_client/models/channelinviteinfo.py similarity index 97% rename from src/glean/models/channelinviteinfo.py rename to src/glean/api_client/models/channelinviteinfo.py index 7545a4a7..61d5c404 100644 --- a/src/glean/models/channelinviteinfo.py +++ b/src/glean/api_client/models/channelinviteinfo.py @@ -3,7 +3,7 @@ from __future__ import annotations from .communicationchannel import CommunicationChannel from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chat.py b/src/glean/api_client/models/chat.py similarity index 98% rename from src/glean/models/chat.py rename to src/glean/api_client/models/chat.py index cfcdeb02..95ad4589 100644 --- a/src/glean/models/chat.py +++ b/src/glean/api_client/models/chat.py @@ -4,7 +4,7 @@ from .chatmessage import ChatMessage, ChatMessageTypedDict from .iconconfig import IconConfig, IconConfigTypedDict from .person import Person, PersonTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatfile.py b/src/glean/api_client/models/chatfile.py similarity index 95% rename from src/glean/models/chatfile.py rename to src/glean/api_client/models/chatfile.py index 2526e07f..972ff1bf 100644 --- a/src/glean/models/chatfile.py +++ b/src/glean/api_client/models/chatfile.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatfilemetadata import ChatFileMetadata, ChatFileMetadataTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/chatfilefailurereason.py b/src/glean/api_client/models/chatfilefailurereason.py similarity index 100% rename from src/glean/models/chatfilefailurereason.py rename to src/glean/api_client/models/chatfilefailurereason.py diff --git a/src/glean/models/chatfilemetadata.py b/src/glean/api_client/models/chatfilemetadata.py similarity index 97% rename from src/glean/models/chatfilemetadata.py rename to src/glean/api_client/models/chatfilemetadata.py index 37e75fea..6f6e8152 100644 --- a/src/glean/models/chatfilemetadata.py +++ b/src/glean/api_client/models/chatfilemetadata.py @@ -3,7 +3,7 @@ from __future__ import annotations from .chatfilefailurereason import ChatFileFailureReason from .chatfilestatus import ChatFileStatus -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatfilestatus.py b/src/glean/api_client/models/chatfilestatus.py similarity index 100% rename from src/glean/models/chatfilestatus.py rename to src/glean/api_client/models/chatfilestatus.py diff --git a/src/glean/models/chatmessage.py b/src/glean/api_client/models/chatmessage.py similarity index 99% rename from src/glean/models/chatmessage.py rename to src/glean/api_client/models/chatmessage.py index c2bf1128..df2d9d20 100644 --- a/src/glean/models/chatmessage.py +++ b/src/glean/api_client/models/chatmessage.py @@ -5,7 +5,7 @@ from .chatmessagecitation import ChatMessageCitation, ChatMessageCitationTypedDict from .chatmessagefragment import ChatMessageFragment, ChatMessageFragmentTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatmessagecitation.py b/src/glean/api_client/models/chatmessagecitation.py similarity index 97% rename from src/glean/models/chatmessagecitation.py rename to src/glean/api_client/models/chatmessagecitation.py index dc63d6e6..d7591c11 100644 --- a/src/glean/models/chatmessagecitation.py +++ b/src/glean/api_client/models/chatmessagecitation.py @@ -5,7 +5,7 @@ from .document import Document, DocumentTypedDict from .person import Person, PersonTypedDict from .referencerange import ReferenceRange, ReferenceRangeTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatmessagefragment.py b/src/glean/api_client/models/chatmessagefragment.py similarity index 98% rename from src/glean/models/chatmessagefragment.py rename to src/glean/api_client/models/chatmessagefragment.py index dc893191..4c9f8346 100644 --- a/src/glean/models/chatmessagefragment.py +++ b/src/glean/api_client/models/chatmessagefragment.py @@ -5,7 +5,7 @@ from .querysuggestion import QuerySuggestion, QuerySuggestionTypedDict from .structuredresult import StructuredResult, StructuredResultTypedDict from .toolinfo import ToolInfo, ToolInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatmetadata.py b/src/glean/api_client/models/chatmetadata.py similarity index 98% rename from src/glean/models/chatmetadata.py rename to src/glean/api_client/models/chatmetadata.py index 9636874f..dc261334 100644 --- a/src/glean/models/chatmetadata.py +++ b/src/glean/api_client/models/chatmetadata.py @@ -3,7 +3,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict from .person import Person, PersonTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatmetadataresult.py b/src/glean/api_client/models/chatmetadataresult.py similarity index 95% rename from src/glean/models/chatmetadataresult.py rename to src/glean/api_client/models/chatmetadataresult.py index 1d2f5c2d..f0de14fc 100644 --- a/src/glean/models/chatmetadataresult.py +++ b/src/glean/api_client/models/chatmetadataresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatmetadata import ChatMetadata, ChatMetadataTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatop.py b/src/glean/api_client/models/chatop.py similarity index 89% rename from src/glean/models/chatop.py rename to src/glean/api_client/models/chatop.py index bf09c9a4..dbd76070 100644 --- a/src/glean/models/chatop.py +++ b/src/glean/api_client/models/chatop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .chatrequest import ChatRequest, ChatRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatrequest.py b/src/glean/api_client/models/chatrequest.py similarity index 98% rename from src/glean/models/chatrequest.py rename to src/glean/api_client/models/chatrequest.py index 6c543496..6b897ff5 100644 --- a/src/glean/models/chatrequest.py +++ b/src/glean/api_client/models/chatrequest.py @@ -8,7 +8,7 @@ ChatRestrictionFiltersTypedDict, ) from .sessioninfo import SessionInfo, SessionInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatresponse.py b/src/glean/api_client/models/chatresponse.py similarity index 97% rename from src/glean/models/chatresponse.py rename to src/glean/api_client/models/chatresponse.py index 6dbb3cc0..533145b4 100644 --- a/src/glean/models/chatresponse.py +++ b/src/glean/api_client/models/chatresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatmessage import ChatMessage, ChatMessageTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatrestrictionfilters.py b/src/glean/api_client/models/chatrestrictionfilters.py similarity index 97% rename from src/glean/models/chatrestrictionfilters.py rename to src/glean/api_client/models/chatrestrictionfilters.py index 54489981..9595d0ea 100644 --- a/src/glean/models/chatrestrictionfilters.py +++ b/src/glean/api_client/models/chatrestrictionfilters.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentspec_union import DocumentSpecUnion, DocumentSpecUnionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatresult.py b/src/glean/api_client/models/chatresult.py similarity index 95% rename from src/glean/models/chatresult.py rename to src/glean/api_client/models/chatresult.py index 5e7fa603..799019f7 100644 --- a/src/glean/models/chatresult.py +++ b/src/glean/api_client/models/chatresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chat import Chat, ChatTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatstreamop.py b/src/glean/api_client/models/chatstreamop.py similarity index 89% rename from src/glean/models/chatstreamop.py rename to src/glean/api_client/models/chatstreamop.py index 2dd8a220..73c25c90 100644 --- a/src/glean/models/chatstreamop.py +++ b/src/glean/api_client/models/chatstreamop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .chatrequest import ChatRequest, ChatRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/chatzerostatesuggestionoptions.py b/src/glean/api_client/models/chatzerostatesuggestionoptions.py similarity index 94% rename from src/glean/models/chatzerostatesuggestionoptions.py rename to src/glean/api_client/models/chatzerostatesuggestionoptions.py index da897f31..dc31b3bf 100644 --- a/src/glean/models/chatzerostatesuggestionoptions.py +++ b/src/glean/api_client/models/chatzerostatesuggestionoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/checkdocumentaccessrequest.py b/src/glean/api_client/models/checkdocumentaccessrequest.py similarity index 96% rename from src/glean/models/checkdocumentaccessrequest.py rename to src/glean/api_client/models/checkdocumentaccessrequest.py index 1758da92..fca1be2f 100644 --- a/src/glean/models/checkdocumentaccessrequest.py +++ b/src/glean/api_client/models/checkdocumentaccessrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/checkdocumentaccessresponse.py b/src/glean/api_client/models/checkdocumentaccessresponse.py similarity index 94% rename from src/glean/models/checkdocumentaccessresponse.py rename to src/glean/api_client/models/checkdocumentaccessresponse.py index 85d1afd5..ae0f173a 100644 --- a/src/glean/models/checkdocumentaccessresponse.py +++ b/src/glean/api_client/models/checkdocumentaccessresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/clustergroup.py b/src/glean/api_client/models/clustergroup.py similarity index 96% rename from src/glean/models/clustergroup.py rename to src/glean/api_client/models/clustergroup.py index 933ef1de..e48ca094 100644 --- a/src/glean/models/clustergroup.py +++ b/src/glean/api_client/models/clustergroup.py @@ -2,7 +2,7 @@ from __future__ import annotations from .clustertypeenum import ClusterTypeEnum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/clustertypeenum.py b/src/glean/api_client/models/clustertypeenum.py similarity index 100% rename from src/glean/models/clustertypeenum.py rename to src/glean/api_client/models/clustertypeenum.py diff --git a/src/glean/models/code.py b/src/glean/api_client/models/code.py similarity index 95% rename from src/glean/models/code.py rename to src/glean/api_client/models/code.py index 4f7eff1d..02176f8e 100644 --- a/src/glean/models/code.py +++ b/src/glean/api_client/models/code.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/codeline.py b/src/glean/api_client/models/codeline.py similarity index 94% rename from src/glean/models/codeline.py rename to src/glean/api_client/models/codeline.py index e47d249d..46321873 100644 --- a/src/glean/models/codeline.py +++ b/src/glean/api_client/models/codeline.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/collection.py b/src/glean/api_client/models/collection.py similarity index 99% rename from src/glean/models/collection.py rename to src/glean/api_client/models/collection.py index ffddeeff..df25e6db 100644 --- a/src/glean/models/collection.py +++ b/src/glean/api_client/models/collection.py @@ -9,7 +9,7 @@ from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from .thumbnail import Thumbnail, ThumbnailTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/collectionerror.py b/src/glean/api_client/models/collectionerror.py similarity index 94% rename from src/glean/models/collectionerror.py rename to src/glean/api_client/models/collectionerror.py index fbdf49a2..d1c742d3 100644 --- a/src/glean/models/collectionerror.py +++ b/src/glean/api_client/models/collectionerror.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/collectionitem.py b/src/glean/api_client/models/collectionitem.py similarity index 98% rename from src/glean/models/collectionitem.py rename to src/glean/api_client/models/collectionitem.py index 04dc2b57..50086101 100644 --- a/src/glean/models/collectionitem.py +++ b/src/glean/api_client/models/collectionitem.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/collectionitemdescriptor.py b/src/glean/api_client/models/collectionitemdescriptor.py similarity index 97% rename from src/glean/models/collectionitemdescriptor.py rename to src/glean/api_client/models/collectionitemdescriptor.py index afca336a..54a063ea 100644 --- a/src/glean/models/collectionitemdescriptor.py +++ b/src/glean/api_client/models/collectionitemdescriptor.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/collectionpinmetadata.py b/src/glean/api_client/models/collectionpinmetadata.py similarity index 91% rename from src/glean/models/collectionpinmetadata.py rename to src/glean/api_client/models/collectionpinmetadata.py index 6cfe8a6b..fcd3edbe 100644 --- a/src/glean/models/collectionpinmetadata.py +++ b/src/glean/api_client/models/collectionpinmetadata.py @@ -2,7 +2,7 @@ from __future__ import annotations from .collectionpintarget import CollectionPinTarget, CollectionPinTargetTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/collectionpinnablecategories.py b/src/glean/api_client/models/collectionpinnablecategories.py similarity index 100% rename from src/glean/models/collectionpinnablecategories.py rename to src/glean/api_client/models/collectionpinnablecategories.py diff --git a/src/glean/models/collectionpinnabletargets.py b/src/glean/api_client/models/collectionpinnabletargets.py similarity index 100% rename from src/glean/models/collectionpinnabletargets.py rename to src/glean/api_client/models/collectionpinnabletargets.py diff --git a/src/glean/models/collectionpinnedmetadata.py b/src/glean/api_client/models/collectionpinnedmetadata.py similarity index 97% rename from src/glean/models/collectionpinnedmetadata.py rename to src/glean/api_client/models/collectionpinnedmetadata.py index a151e2a7..0d25132c 100644 --- a/src/glean/models/collectionpinnedmetadata.py +++ b/src/glean/api_client/models/collectionpinnedmetadata.py @@ -3,7 +3,7 @@ from __future__ import annotations from .collectionpinmetadata import CollectionPinMetadata, CollectionPinMetadataTypedDict from .collectionpintarget import CollectionPinTarget, CollectionPinTargetTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/collectionpintarget.py b/src/glean/api_client/models/collectionpintarget.py similarity index 96% rename from src/glean/models/collectionpintarget.py rename to src/glean/api_client/models/collectionpintarget.py index ac3b565f..c7764331 100644 --- a/src/glean/models/collectionpintarget.py +++ b/src/glean/api_client/models/collectionpintarget.py @@ -3,7 +3,7 @@ from __future__ import annotations from .collectionpinnablecategories import CollectionPinnableCategories from .collectionpinnabletargets import CollectionPinnableTargets -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/commentdefinition.py b/src/glean/api_client/models/commentdefinition.py similarity index 98% rename from src/glean/models/commentdefinition.py rename to src/glean/api_client/models/commentdefinition.py index 641ee68b..53314a48 100644 --- a/src/glean/models/commentdefinition.py +++ b/src/glean/api_client/models/commentdefinition.py @@ -6,7 +6,7 @@ UserReferenceDefinition, UserReferenceDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/communicationchannel.py b/src/glean/api_client/models/communicationchannel.py similarity index 100% rename from src/glean/models/communicationchannel.py rename to src/glean/api_client/models/communicationchannel.py diff --git a/src/glean/models/company.py b/src/glean/api_client/models/company.py similarity index 98% rename from src/glean/models/company.py rename to src/glean/api_client/models/company.py index 5dff289e..27fdff7c 100644 --- a/src/glean/models/company.py +++ b/src/glean/api_client/models/company.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import date -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/conferencedata.py b/src/glean/api_client/models/conferencedata.py similarity index 94% rename from src/glean/models/conferencedata.py rename to src/glean/api_client/models/conferencedata.py index ade1f8af..f90928c7 100644 --- a/src/glean/models/conferencedata.py +++ b/src/glean/api_client/models/conferencedata.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/connectortype.py b/src/glean/api_client/models/connectortype.py similarity index 100% rename from src/glean/models/connectortype.py rename to src/glean/api_client/models/connectortype.py diff --git a/src/glean/models/contentdefinition.py b/src/glean/api_client/models/contentdefinition.py similarity index 96% rename from src/glean/models/contentdefinition.py rename to src/glean/api_client/models/contentdefinition.py index 98529f76..db493b39 100644 --- a/src/glean/models/contentdefinition.py +++ b/src/glean/api_client/models/contentdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/contentinsightsresponse.py b/src/glean/api_client/models/contentinsightsresponse.py similarity index 97% rename from src/glean/models/contentinsightsresponse.py rename to src/glean/api_client/models/contentinsightsresponse.py index 3d26399c..a8cf841c 100644 --- a/src/glean/models/contentinsightsresponse.py +++ b/src/glean/api_client/models/contentinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentinsight import DocumentInsight, DocumentInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/contenttype.py b/src/glean/api_client/models/contenttype.py similarity index 100% rename from src/glean/models/contenttype.py rename to src/glean/api_client/models/contenttype.py diff --git a/src/glean/models/countinfo.py b/src/glean/api_client/models/countinfo.py similarity index 94% rename from src/glean/models/countinfo.py rename to src/glean/api_client/models/countinfo.py index a6fedfc0..a01c4253 100644 --- a/src/glean/models/countinfo.py +++ b/src/glean/api_client/models/countinfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from .period import Period, PeriodTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/createannouncementrequest.py b/src/glean/api_client/models/createannouncementrequest.py similarity index 99% rename from src/glean/models/createannouncementrequest.py rename to src/glean/api_client/models/createannouncementrequest.py index 8f071232..66373cd7 100644 --- a/src/glean/models/createannouncementrequest.py +++ b/src/glean/api_client/models/createannouncementrequest.py @@ -6,7 +6,7 @@ from .thumbnail import Thumbnail, ThumbnailTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/createanswerrequest.py b/src/glean/api_client/models/createanswerrequest.py similarity index 89% rename from src/glean/models/createanswerrequest.py rename to src/glean/api_client/models/createanswerrequest.py index f2640986..498a9a16 100644 --- a/src/glean/models/createanswerrequest.py +++ b/src/glean/api_client/models/createanswerrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .answercreationdata import AnswerCreationData, AnswerCreationDataTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/createauthtokenresponse.py b/src/glean/api_client/models/createauthtokenresponse.py similarity index 94% rename from src/glean/models/createauthtokenresponse.py rename to src/glean/api_client/models/createauthtokenresponse.py index b0d554a4..50e696ac 100644 --- a/src/glean/models/createauthtokenresponse.py +++ b/src/glean/api_client/models/createauthtokenresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/createcollectionrequest.py b/src/glean/api_client/models/createcollectionrequest.py similarity index 98% rename from src/glean/models/createcollectionrequest.py rename to src/glean/api_client/models/createcollectionrequest.py index 34075cd5..fb4d7932 100644 --- a/src/glean/models/createcollectionrequest.py +++ b/src/glean/api_client/models/createcollectionrequest.py @@ -4,7 +4,7 @@ from .facetfilter import FacetFilter, FacetFilterTypedDict from .thumbnail import Thumbnail, ThumbnailTypedDict from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/createcollectionresponse.py b/src/glean/api_client/models/createcollectionresponse.py similarity index 99% rename from src/glean/models/createcollectionresponse.py rename to src/glean/api_client/models/createcollectionresponse.py index d4abfb1f..902d8c71 100644 --- a/src/glean/models/createcollectionresponse.py +++ b/src/glean/api_client/models/createcollectionresponse.py @@ -15,7 +15,7 @@ from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/createdlpreportrequest.py b/src/glean/api_client/models/createdlpreportrequest.py similarity index 96% rename from src/glean/models/createdlpreportrequest.py rename to src/glean/api_client/models/createdlpreportrequest.py index f4f32ce6..6d3ab517 100644 --- a/src/glean/models/createdlpreportrequest.py +++ b/src/glean/api_client/models/createdlpreportrequest.py @@ -3,7 +3,7 @@ from __future__ import annotations from .dlpconfig import DlpConfig, DlpConfigTypedDict from .dlpfrequency import DlpFrequency -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/createdlpreportresponse.py b/src/glean/api_client/models/createdlpreportresponse.py similarity index 92% rename from src/glean/models/createdlpreportresponse.py rename to src/glean/api_client/models/createdlpreportresponse.py index 1c2440da..6f9a001a 100644 --- a/src/glean/models/createdlpreportresponse.py +++ b/src/glean/api_client/models/createdlpreportresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpreport import DlpReport, DlpReportTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/createshortcutrequest.py b/src/glean/api_client/models/createshortcutrequest.py similarity index 90% rename from src/glean/models/createshortcutrequest.py rename to src/glean/api_client/models/createshortcutrequest.py index 0378d85b..828bb6b9 100644 --- a/src/glean/models/createshortcutrequest.py +++ b/src/glean/api_client/models/createshortcutrequest.py @@ -5,7 +5,7 @@ ShortcutMutableProperties, ShortcutMutablePropertiesTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/createshortcutresponse.py b/src/glean/api_client/models/createshortcutresponse.py similarity index 92% rename from src/glean/models/createshortcutresponse.py rename to src/glean/api_client/models/createshortcutresponse.py index 9f4e2f24..b07ad611 100644 --- a/src/glean/models/createshortcutresponse.py +++ b/src/glean/api_client/models/createshortcutresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .shortcut import Shortcut, ShortcutTypedDict from .shortcuterror import ShortcutError, ShortcutErrorTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/customdatasourceconfig.py b/src/glean/api_client/models/customdatasourceconfig.py similarity index 99% rename from src/glean/models/customdatasourceconfig.py rename to src/glean/api_client/models/customdatasourceconfig.py index 9bc1ae45..2a808ccb 100644 --- a/src/glean/models/customdatasourceconfig.py +++ b/src/glean/api_client/models/customdatasourceconfig.py @@ -8,7 +8,7 @@ from .objectdefinition import ObjectDefinition, ObjectDefinitionTypedDict from .quicklink import Quicklink, QuicklinkTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customdatavalue.py b/src/glean/api_client/models/customdatavalue.py similarity index 96% rename from src/glean/models/customdatavalue.py rename to src/glean/api_client/models/customdatavalue.py index dbb96794..d21b3605 100644 --- a/src/glean/models/customdatavalue.py +++ b/src/glean/api_client/models/customdatavalue.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customentity.py b/src/glean/api_client/models/customentity.py similarity index 97% rename from src/glean/models/customentity.py rename to src/glean/api_client/models/customentity.py index 822d8e13..f9abd92e 100644 --- a/src/glean/models/customentity.py +++ b/src/glean/api_client/models/customentity.py @@ -3,7 +3,7 @@ from __future__ import annotations from .customentitymetadata import CustomEntityMetadata, CustomEntityMetadataTypedDict from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customentitymetadata.py b/src/glean/api_client/models/customentitymetadata.py similarity index 93% rename from src/glean/models/customentitymetadata.py rename to src/glean/api_client/models/customentitymetadata.py index 8260520b..332933e7 100644 --- a/src/glean/models/customentitymetadata.py +++ b/src/glean/api_client/models/customentitymetadata.py @@ -2,7 +2,7 @@ from __future__ import annotations from .customdatavalue import CustomDataValue, CustomDataValueTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customer.py b/src/glean/api_client/models/customer.py similarity index 98% rename from src/glean/models/customer.py rename to src/glean/api_client/models/customer.py index df266206..1582f201 100644 --- a/src/glean/models/customer.py +++ b/src/glean/api_client/models/customer.py @@ -4,7 +4,7 @@ from .company import Company, CompanyTypedDict from .customermetadata import CustomerMetadata, CustomerMetadataTypedDict from datetime import date -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customermetadata.py b/src/glean/api_client/models/customermetadata.py similarity index 95% rename from src/glean/models/customermetadata.py rename to src/glean/api_client/models/customermetadata.py index b57385fd..bd60cdb0 100644 --- a/src/glean/models/customermetadata.py +++ b/src/glean/api_client/models/customermetadata.py @@ -2,7 +2,7 @@ from __future__ import annotations from .customdatavalue import CustomDataValue, CustomDataValueTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customfielddata.py b/src/glean/api_client/models/customfielddata.py similarity index 94% rename from src/glean/models/customfielddata.py rename to src/glean/api_client/models/customfielddata.py index be8e0fc8..002ac692 100644 --- a/src/glean/models/customfielddata.py +++ b/src/glean/api_client/models/customfielddata.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional, TYPE_CHECKING from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/customfieldvalue.py b/src/glean/api_client/models/customfieldvalue.py similarity index 100% rename from src/glean/models/customfieldvalue.py rename to src/glean/api_client/models/customfieldvalue.py diff --git a/src/glean/models/customfieldvaluehyperlink.py b/src/glean/api_client/models/customfieldvaluehyperlink.py similarity index 93% rename from src/glean/models/customfieldvaluehyperlink.py rename to src/glean/api_client/models/customfieldvaluehyperlink.py index ce1a9248..ce664b0a 100644 --- a/src/glean/models/customfieldvaluehyperlink.py +++ b/src/glean/api_client/models/customfieldvaluehyperlink.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customfieldvalueperson.py b/src/glean/api_client/models/customfieldvalueperson.py similarity index 90% rename from src/glean/models/customfieldvalueperson.py rename to src/glean/api_client/models/customfieldvalueperson.py index 11146c5d..75220fe4 100644 --- a/src/glean/models/customfieldvalueperson.py +++ b/src/glean/api_client/models/customfieldvalueperson.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional, TYPE_CHECKING from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/customfieldvaluestr.py b/src/glean/api_client/models/customfieldvaluestr.py similarity index 91% rename from src/glean/models/customfieldvaluestr.py rename to src/glean/api_client/models/customfieldvaluestr.py index 6574b2ac..d86c0191 100644 --- a/src/glean/models/customfieldvaluestr.py +++ b/src/glean/api_client/models/customfieldvaluestr.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/customproperty.py b/src/glean/api_client/models/customproperty.py similarity index 95% rename from src/glean/models/customproperty.py rename to src/glean/api_client/models/customproperty.py index c11c0cae..08ee1298 100644 --- a/src/glean/models/customproperty.py +++ b/src/glean/api_client/models/customproperty.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Any, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/datasourcebulkmembershipdefinition.py b/src/glean/api_client/models/datasourcebulkmembershipdefinition.py similarity index 96% rename from src/glean/models/datasourcebulkmembershipdefinition.py rename to src/glean/api_client/models/datasourcebulkmembershipdefinition.py index 6d02859c..6d2b7bd5 100644 --- a/src/glean/models/datasourcebulkmembershipdefinition.py +++ b/src/glean/api_client/models/datasourcebulkmembershipdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/datasourcegroupdefinition.py b/src/glean/api_client/models/datasourcegroupdefinition.py similarity index 92% rename from src/glean/models/datasourcegroupdefinition.py rename to src/glean/api_client/models/datasourcegroupdefinition.py index c709de09..745d20c3 100644 --- a/src/glean/models/datasourcegroupdefinition.py +++ b/src/glean/api_client/models/datasourcegroupdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/datasourcemembershipdefinition.py b/src/glean/api_client/models/datasourcemembershipdefinition.py similarity index 96% rename from src/glean/models/datasourcemembershipdefinition.py rename to src/glean/api_client/models/datasourcemembershipdefinition.py index d22fce2c..948b36e7 100644 --- a/src/glean/models/datasourcemembershipdefinition.py +++ b/src/glean/api_client/models/datasourcemembershipdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/datasourceobjecttypedocumentcountentry.py b/src/glean/api_client/models/datasourceobjecttypedocumentcountentry.py similarity index 94% rename from src/glean/models/datasourceobjecttypedocumentcountentry.py rename to src/glean/api_client/models/datasourceobjecttypedocumentcountentry.py index 7ce147ce..baa69550 100644 --- a/src/glean/models/datasourceobjecttypedocumentcountentry.py +++ b/src/glean/api_client/models/datasourceobjecttypedocumentcountentry.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/datasourceprofile.py b/src/glean/api_client/models/datasourceprofile.py similarity index 97% rename from src/glean/models/datasourceprofile.py rename to src/glean/api_client/models/datasourceprofile.py index ade0ca39..f62f74b8 100644 --- a/src/glean/models/datasourceprofile.py +++ b/src/glean/api_client/models/datasourceprofile.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/datasourceuserdefinition.py b/src/glean/api_client/models/datasourceuserdefinition.py similarity index 95% rename from src/glean/models/datasourceuserdefinition.py rename to src/glean/api_client/models/datasourceuserdefinition.py index f6db75b6..18485fbb 100644 --- a/src/glean/models/datasourceuserdefinition.py +++ b/src/glean/api_client/models/datasourceuserdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debugdatasourcestatusidentityresponsecomponent.py b/src/glean/api_client/models/debugdatasourcestatusidentityresponsecomponent.py similarity index 96% rename from src/glean/models/debugdatasourcestatusidentityresponsecomponent.py rename to src/glean/api_client/models/debugdatasourcestatusidentityresponsecomponent.py index 4624bd1d..cb0378c0 100644 --- a/src/glean/models/debugdatasourcestatusidentityresponsecomponent.py +++ b/src/glean/api_client/models/debugdatasourcestatusidentityresponsecomponent.py @@ -5,7 +5,7 @@ BulkUploadHistoryEvent, BulkUploadHistoryEventTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debugdatasourcestatusresponse.py b/src/glean/api_client/models/debugdatasourcestatusresponse.py similarity index 99% rename from src/glean/models/debugdatasourcestatusresponse.py rename to src/glean/api_client/models/debugdatasourcestatusresponse.py index 12beea51..eb3606ec 100644 --- a/src/glean/models/debugdatasourcestatusresponse.py +++ b/src/glean/api_client/models/debugdatasourcestatusresponse.py @@ -18,7 +18,7 @@ ProcessingHistoryEventTypedDict, ) from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debugdocumentrequest.py b/src/glean/api_client/models/debugdocumentrequest.py similarity index 95% rename from src/glean/models/debugdocumentrequest.py rename to src/glean/api_client/models/debugdocumentrequest.py index 2d1d6479..981a5987 100644 --- a/src/glean/models/debugdocumentrequest.py +++ b/src/glean/api_client/models/debugdocumentrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/debugdocumentresponse.py b/src/glean/api_client/models/debugdocumentresponse.py similarity index 96% rename from src/glean/models/debugdocumentresponse.py rename to src/glean/api_client/models/debugdocumentresponse.py index cabcfc6a..05dad25c 100644 --- a/src/glean/models/debugdocumentresponse.py +++ b/src/glean/api_client/models/debugdocumentresponse.py @@ -9,7 +9,7 @@ DocumentStatusResponse, DocumentStatusResponseTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debugdocumentsrequest.py b/src/glean/api_client/models/debugdocumentsrequest.py similarity index 94% rename from src/glean/models/debugdocumentsrequest.py rename to src/glean/api_client/models/debugdocumentsrequest.py index af8bce83..d69a6bac 100644 --- a/src/glean/models/debugdocumentsrequest.py +++ b/src/glean/api_client/models/debugdocumentsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .debugdocumentrequest import DebugDocumentRequest, DebugDocumentRequestTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/debugdocumentsresponse.py b/src/glean/api_client/models/debugdocumentsresponse.py similarity index 95% rename from src/glean/models/debugdocumentsresponse.py rename to src/glean/api_client/models/debugdocumentsresponse.py index 5e4e50f8..00ae8c48 100644 --- a/src/glean/models/debugdocumentsresponse.py +++ b/src/glean/api_client/models/debugdocumentsresponse.py @@ -5,7 +5,7 @@ DebugDocumentsResponseItem, DebugDocumentsResponseItemTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debugdocumentsresponseitem.py b/src/glean/api_client/models/debugdocumentsresponseitem.py similarity index 96% rename from src/glean/models/debugdocumentsresponseitem.py rename to src/glean/api_client/models/debugdocumentsresponseitem.py index 2200a6fe..d47e4fe0 100644 --- a/src/glean/models/debugdocumentsresponseitem.py +++ b/src/glean/api_client/models/debugdocumentsresponseitem.py @@ -2,7 +2,7 @@ from __future__ import annotations from .debugdocumentresponse import DebugDocumentResponse, DebugDocumentResponseTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/debuguserrequest.py b/src/glean/api_client/models/debuguserrequest.py similarity index 92% rename from src/glean/models/debuguserrequest.py rename to src/glean/api_client/models/debuguserrequest.py index 07ceeae5..be474f54 100644 --- a/src/glean/models/debuguserrequest.py +++ b/src/glean/api_client/models/debuguserrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/debuguserresponse.py b/src/glean/api_client/models/debuguserresponse.py similarity index 96% rename from src/glean/models/debuguserresponse.py rename to src/glean/api_client/models/debuguserresponse.py index 3404dbcd..73d9f2f8 100644 --- a/src/glean/models/debuguserresponse.py +++ b/src/glean/api_client/models/debuguserresponse.py @@ -6,7 +6,7 @@ DatasourceGroupDefinitionTypedDict, ) from .userstatusresponse import UserStatusResponse, UserStatusResponseTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deleteallchatsop.py b/src/glean/api_client/models/deleteallchatsop.py similarity index 87% rename from src/glean/models/deleteallchatsop.py rename to src/glean/api_client/models/deleteallchatsop.py index befce73b..1a54c19e 100644 --- a/src/glean/models/deleteallchatsop.py +++ b/src/glean/api_client/models/deleteallchatsop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deleteannouncementrequest.py b/src/glean/api_client/models/deleteannouncementrequest.py similarity index 89% rename from src/glean/models/deleteannouncementrequest.py rename to src/glean/api_client/models/deleteannouncementrequest.py index d0a768c0..7531e633 100644 --- a/src/glean/models/deleteannouncementrequest.py +++ b/src/glean/api_client/models/deleteannouncementrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/deleteanswerrequest.py b/src/glean/api_client/models/deleteanswerrequest.py similarity index 95% rename from src/glean/models/deleteanswerrequest.py rename to src/glean/api_client/models/deleteanswerrequest.py index 9ba9504d..d803b3d5 100644 --- a/src/glean/models/deleteanswerrequest.py +++ b/src/glean/api_client/models/deleteanswerrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletechatfilesop.py b/src/glean/api_client/models/deletechatfilesop.py similarity index 89% rename from src/glean/models/deletechatfilesop.py rename to src/glean/api_client/models/deletechatfilesop.py index 8acbac91..464edeb4 100644 --- a/src/glean/models/deletechatfilesop.py +++ b/src/glean/api_client/models/deletechatfilesop.py @@ -5,8 +5,8 @@ DeleteChatFilesRequest, DeleteChatFilesRequestTypedDict, ) -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletechatfilesrequest.py b/src/glean/api_client/models/deletechatfilesrequest.py similarity index 91% rename from src/glean/models/deletechatfilesrequest.py rename to src/glean/api_client/models/deletechatfilesrequest.py index cb5968c4..fc8ea162 100644 --- a/src/glean/models/deletechatfilesrequest.py +++ b/src/glean/api_client/models/deletechatfilesrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/deletechatsop.py b/src/glean/api_client/models/deletechatsop.py similarity index 89% rename from src/glean/models/deletechatsop.py rename to src/glean/api_client/models/deletechatsop.py index 83b4ace7..2e32eb95 100644 --- a/src/glean/models/deletechatsop.py +++ b/src/glean/api_client/models/deletechatsop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .deletechatsrequest import DeleteChatsRequest, DeleteChatsRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletechatsrequest.py b/src/glean/api_client/models/deletechatsrequest.py similarity index 90% rename from src/glean/models/deletechatsrequest.py rename to src/glean/api_client/models/deletechatsrequest.py index ec534b71..7a5dcced 100644 --- a/src/glean/models/deletechatsrequest.py +++ b/src/glean/api_client/models/deletechatsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List from typing_extensions import TypedDict diff --git a/src/glean/models/deletecollectionitemrequest.py b/src/glean/api_client/models/deletecollectionitemrequest.py similarity index 96% rename from src/glean/models/deletecollectionitemrequest.py rename to src/glean/api_client/models/deletecollectionitemrequest.py index d694ed49..adec2f3f 100644 --- a/src/glean/models/deletecollectionitemrequest.py +++ b/src/glean/api_client/models/deletecollectionitemrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletecollectionitemresponse.py b/src/glean/api_client/models/deletecollectionitemresponse.py similarity index 90% rename from src/glean/models/deletecollectionitemresponse.py rename to src/glean/api_client/models/deletecollectionitemresponse.py index 67d96110..c37b0116 100644 --- a/src/glean/models/deletecollectionitemresponse.py +++ b/src/glean/api_client/models/deletecollectionitemresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .collection import Collection, CollectionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/deletecollectionrequest.py b/src/glean/api_client/models/deletecollectionrequest.py similarity index 94% rename from src/glean/models/deletecollectionrequest.py rename to src/glean/api_client/models/deletecollectionrequest.py index 3f16fbeb..494d2b6f 100644 --- a/src/glean/models/deletecollectionrequest.py +++ b/src/glean/api_client/models/deletecollectionrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletedocumentrequest.py b/src/glean/api_client/models/deletedocumentrequest.py similarity index 96% rename from src/glean/models/deletedocumentrequest.py rename to src/glean/api_client/models/deletedocumentrequest.py index 4f025f80..2879d6fa 100644 --- a/src/glean/models/deletedocumentrequest.py +++ b/src/glean/api_client/models/deletedocumentrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deleteemployeerequest.py b/src/glean/api_client/models/deleteemployeerequest.py similarity index 95% rename from src/glean/models/deleteemployeerequest.py rename to src/glean/api_client/models/deleteemployeerequest.py index 12e65d42..301b6b69 100644 --- a/src/glean/models/deleteemployeerequest.py +++ b/src/glean/api_client/models/deleteemployeerequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletegrouprequest.py b/src/glean/api_client/models/deletegrouprequest.py similarity index 96% rename from src/glean/models/deletegrouprequest.py rename to src/glean/api_client/models/deletegrouprequest.py index 63164170..49b46855 100644 --- a/src/glean/models/deletegrouprequest.py +++ b/src/glean/api_client/models/deletegrouprequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/deletemembershiprequest.py b/src/glean/api_client/models/deletemembershiprequest.py similarity index 96% rename from src/glean/models/deletemembershiprequest.py rename to src/glean/api_client/models/deletemembershiprequest.py index 5aab6c01..c84cb9af 100644 --- a/src/glean/models/deletemembershiprequest.py +++ b/src/glean/api_client/models/deletemembershiprequest.py @@ -5,7 +5,7 @@ DatasourceMembershipDefinition, DatasourceMembershipDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/deleteshortcutrequest.py b/src/glean/api_client/models/deleteshortcutrequest.py similarity index 89% rename from src/glean/models/deleteshortcutrequest.py rename to src/glean/api_client/models/deleteshortcutrequest.py index 4f2cfcf1..d6f5b600 100644 --- a/src/glean/models/deleteshortcutrequest.py +++ b/src/glean/api_client/models/deleteshortcutrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/deleteteamrequest.py b/src/glean/api_client/models/deleteteamrequest.py similarity index 91% rename from src/glean/models/deleteteamrequest.py rename to src/glean/api_client/models/deleteteamrequest.py index 8923d3b5..d8150a41 100644 --- a/src/glean/models/deleteteamrequest.py +++ b/src/glean/api_client/models/deleteteamrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/deleteuserrequest.py b/src/glean/api_client/models/deleteuserrequest.py similarity index 95% rename from src/glean/models/deleteuserrequest.py rename to src/glean/api_client/models/deleteuserrequest.py index 78b5a498..86430ed4 100644 --- a/src/glean/models/deleteuserrequest.py +++ b/src/glean/api_client/models/deleteuserrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/disambiguation.py b/src/glean/api_client/models/disambiguation.py similarity index 95% rename from src/glean/models/disambiguation.py rename to src/glean/api_client/models/disambiguation.py index 1a7a1049..2b8a57ca 100644 --- a/src/glean/models/disambiguation.py +++ b/src/glean/api_client/models/disambiguation.py @@ -2,7 +2,7 @@ from __future__ import annotations from .entitytype import EntityType -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/displayablelistitemuiconfig.py b/src/glean/api_client/models/displayablelistitemuiconfig.py similarity index 93% rename from src/glean/models/displayablelistitemuiconfig.py rename to src/glean/api_client/models/displayablelistitemuiconfig.py index ab642c52..5a591828 100644 --- a/src/glean/models/displayablelistitemuiconfig.py +++ b/src/glean/api_client/models/displayablelistitemuiconfig.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/dlpconfig.py b/src/glean/api_client/models/dlpconfig.py similarity index 99% rename from src/glean/models/dlpconfig.py rename to src/glean/api_client/models/dlpconfig.py index 9893ed93..5276ca8e 100644 --- a/src/glean/models/dlpconfig.py +++ b/src/glean/api_client/models/dlpconfig.py @@ -14,7 +14,7 @@ ) from .sensitiveinfotype import SensitiveInfoType, SensitiveInfoTypeTypedDict from .sharingoptions import SharingOptions, SharingOptionsTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/dlpfrequency.py b/src/glean/api_client/models/dlpfrequency.py similarity index 100% rename from src/glean/models/dlpfrequency.py rename to src/glean/api_client/models/dlpfrequency.py diff --git a/src/glean/models/dlpperson.py b/src/glean/api_client/models/dlpperson.py similarity index 95% rename from src/glean/models/dlpperson.py rename to src/glean/api_client/models/dlpperson.py index 920771fc..cf67bb62 100644 --- a/src/glean/models/dlpperson.py +++ b/src/glean/api_client/models/dlpperson.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlppersonmetadata import DlpPersonMetadata, DlpPersonMetadataTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/dlppersonmetadata.py b/src/glean/api_client/models/dlppersonmetadata.py similarity index 93% rename from src/glean/models/dlppersonmetadata.py rename to src/glean/api_client/models/dlppersonmetadata.py index a94c2562..2c868c6b 100644 --- a/src/glean/models/dlppersonmetadata.py +++ b/src/glean/api_client/models/dlppersonmetadata.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/dlpreport.py b/src/glean/api_client/models/dlpreport.py similarity index 98% rename from src/glean/models/dlpreport.py rename to src/glean/api_client/models/dlpreport.py index 3eb4fc5b..38e378fe 100644 --- a/src/glean/models/dlpreport.py +++ b/src/glean/api_client/models/dlpreport.py @@ -6,7 +6,7 @@ from .dlpperson import DlpPerson, DlpPersonTypedDict from .dlpreportstatus import DlpReportStatus from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/dlpreportstatus.py b/src/glean/api_client/models/dlpreportstatus.py similarity index 100% rename from src/glean/models/dlpreportstatus.py rename to src/glean/api_client/models/dlpreportstatus.py diff --git a/src/glean/models/dlpsimpleresult.py b/src/glean/api_client/models/dlpsimpleresult.py similarity index 100% rename from src/glean/models/dlpsimpleresult.py rename to src/glean/api_client/models/dlpsimpleresult.py diff --git a/src/glean/models/document.py b/src/glean/api_client/models/document.py similarity index 98% rename from src/glean/models/document.py rename to src/glean/api_client/models/document.py index 027e43f2..106245e2 100644 --- a/src/glean/models/document.py +++ b/src/glean/api_client/models/document.py @@ -4,7 +4,7 @@ from .connectortype import ConnectorType from .documentcontent import DocumentContent, DocumentContentTypedDict from .documentsection import DocumentSection, DocumentSectionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentcontent.py b/src/glean/api_client/models/documentcontent.py similarity index 92% rename from src/glean/models/documentcontent.py rename to src/glean/api_client/models/documentcontent.py index d288a252..493b94f6 100644 --- a/src/glean/models/documentcontent.py +++ b/src/glean/api_client/models/documentcontent.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentdefinition.py b/src/glean/api_client/models/documentdefinition.py similarity index 99% rename from src/glean/models/documentdefinition.py rename to src/glean/api_client/models/documentdefinition.py index 609946b6..8353646c 100644 --- a/src/glean/models/documentdefinition.py +++ b/src/glean/api_client/models/documentdefinition.py @@ -16,7 +16,7 @@ UserReferenceDefinition, UserReferenceDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentinsight.py b/src/glean/api_client/models/documentinsight.py similarity index 94% rename from src/glean/models/documentinsight.py rename to src/glean/api_client/models/documentinsight.py index be536467..3bbdf7d7 100644 --- a/src/glean/models/documentinsight.py +++ b/src/glean/api_client/models/documentinsight.py @@ -3,7 +3,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict from .document import Document, DocumentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentinteractions.py b/src/glean/api_client/models/documentinteractions.py similarity index 97% rename from src/glean/models/documentinteractions.py rename to src/glean/api_client/models/documentinteractions.py index ae951d1e..2aca5c2f 100644 --- a/src/glean/models/documentinteractions.py +++ b/src/glean/api_client/models/documentinteractions.py @@ -2,7 +2,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentinteractionsdefinition.py b/src/glean/api_client/models/documentinteractionsdefinition.py similarity index 94% rename from src/glean/models/documentinteractionsdefinition.py rename to src/glean/api_client/models/documentinteractionsdefinition.py index 7f78aa70..151bc107 100644 --- a/src/glean/models/documentinteractionsdefinition.py +++ b/src/glean/api_client/models/documentinteractionsdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentmetadata.py b/src/glean/api_client/models/documentmetadata.py similarity index 99% rename from src/glean/models/documentmetadata.py rename to src/glean/api_client/models/documentmetadata.py index cdb9a672..a2a63141 100644 --- a/src/glean/models/documentmetadata.py +++ b/src/glean/api_client/models/documentmetadata.py @@ -9,7 +9,7 @@ from .thumbnail import Thumbnail, ThumbnailTypedDict from .viewerinfo import ViewerInfo, ViewerInfoTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentorerror_union.py b/src/glean/api_client/models/documentorerror_union.py similarity index 94% rename from src/glean/models/documentorerror_union.py rename to src/glean/api_client/models/documentorerror_union.py index 4bdee856..e48c8a66 100644 --- a/src/glean/models/documentorerror_union.py +++ b/src/glean/api_client/models/documentorerror_union.py @@ -2,7 +2,7 @@ from __future__ import annotations from .document import Document, DocumentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional, Union from typing_extensions import NotRequired, TypeAliasType, TypedDict diff --git a/src/glean/models/documentpermissionsdefinition.py b/src/glean/api_client/models/documentpermissionsdefinition.py similarity index 98% rename from src/glean/models/documentpermissionsdefinition.py rename to src/glean/api_client/models/documentpermissionsdefinition.py index 98e3b8b2..c555bbac 100644 --- a/src/glean/models/documentpermissionsdefinition.py +++ b/src/glean/api_client/models/documentpermissionsdefinition.py @@ -9,7 +9,7 @@ UserReferenceDefinition, UserReferenceDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentsection.py b/src/glean/api_client/models/documentsection.py similarity index 93% rename from src/glean/models/documentsection.py rename to src/glean/api_client/models/documentsection.py index d3d42a76..d64c6209 100644 --- a/src/glean/models/documentsection.py +++ b/src/glean/api_client/models/documentsection.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/documentspec_union.py b/src/glean/api_client/models/documentspec_union.py similarity index 97% rename from src/glean/models/documentspec_union.py rename to src/glean/api_client/models/documentspec_union.py index 18534355..a6e1da28 100644 --- a/src/glean/models/documentspec_union.py +++ b/src/glean/api_client/models/documentspec_union.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, Union from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict diff --git a/src/glean/models/documentstatusresponse.py b/src/glean/api_client/models/documentstatusresponse.py similarity index 97% rename from src/glean/models/documentstatusresponse.py rename to src/glean/api_client/models/documentstatusresponse.py index 047d545c..df265ad5 100644 --- a/src/glean/models/documentstatusresponse.py +++ b/src/glean/api_client/models/documentstatusresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentvisibility.py b/src/glean/api_client/models/documentvisibility.py similarity index 100% rename from src/glean/models/documentvisibility.py rename to src/glean/api_client/models/documentvisibility.py diff --git a/src/glean/models/documentvisibilityoverride.py b/src/glean/api_client/models/documentvisibilityoverride.py similarity index 95% rename from src/glean/models/documentvisibilityoverride.py rename to src/glean/api_client/models/documentvisibilityoverride.py index 9bd9d125..3453978a 100644 --- a/src/glean/models/documentvisibilityoverride.py +++ b/src/glean/api_client/models/documentvisibilityoverride.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/documentvisibilityupdateresult.py b/src/glean/api_client/models/documentvisibilityupdateresult.py similarity index 96% rename from src/glean/models/documentvisibilityupdateresult.py rename to src/glean/api_client/models/documentvisibilityupdateresult.py index ec64b0d4..b6d43377 100644 --- a/src/glean/models/documentvisibilityupdateresult.py +++ b/src/glean/api_client/models/documentvisibilityupdateresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/downloadpolicycsvop.py b/src/glean/api_client/models/downloadpolicycsvop.py similarity index 81% rename from src/glean/models/downloadpolicycsvop.py rename to src/glean/api_client/models/downloadpolicycsvop.py index 46beba49..76743c95 100644 --- a/src/glean/models/downloadpolicycsvop.py +++ b/src/glean/api_client/models/downloadpolicycsvop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/downloadreportcsvop.py b/src/glean/api_client/models/downloadreportcsvop.py similarity index 81% rename from src/glean/models/downloadreportcsvop.py rename to src/glean/api_client/models/downloadreportcsvop.py index 1f3817cb..d6059a8f 100644 --- a/src/glean/models/downloadreportcsvop.py +++ b/src/glean/api_client/models/downloadreportcsvop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/editanswerrequest.py b/src/glean/api_client/models/editanswerrequest.py similarity index 99% rename from src/glean/models/editanswerrequest.py rename to src/glean/api_client/models/editanswerrequest.py index 6244b8b0..b2df1749 100644 --- a/src/glean/models/editanswerrequest.py +++ b/src/glean/api_client/models/editanswerrequest.py @@ -9,7 +9,7 @@ ) from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/editcollectionitemrequest.py b/src/glean/api_client/models/editcollectionitemrequest.py similarity index 96% rename from src/glean/models/editcollectionitemrequest.py rename to src/glean/api_client/models/editcollectionitemrequest.py index 29f79283..a070bb0b 100644 --- a/src/glean/models/editcollectionitemrequest.py +++ b/src/glean/api_client/models/editcollectionitemrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/editcollectionitemresponse.py b/src/glean/api_client/models/editcollectionitemresponse.py similarity index 90% rename from src/glean/models/editcollectionitemresponse.py rename to src/glean/api_client/models/editcollectionitemresponse.py index a53036d8..c1cc2975 100644 --- a/src/glean/models/editcollectionitemresponse.py +++ b/src/glean/api_client/models/editcollectionitemresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .collection import Collection, CollectionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/editcollectionrequest.py b/src/glean/api_client/models/editcollectionrequest.py similarity index 98% rename from src/glean/models/editcollectionrequest.py rename to src/glean/api_client/models/editcollectionrequest.py index 46ce459f..a9fc63f9 100644 --- a/src/glean/models/editcollectionrequest.py +++ b/src/glean/api_client/models/editcollectionrequest.py @@ -4,7 +4,7 @@ from .facetfilter import FacetFilter, FacetFilterTypedDict from .thumbnail import Thumbnail, ThumbnailTypedDict from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/editcollectionresponse.py b/src/glean/api_client/models/editcollectionresponse.py similarity index 99% rename from src/glean/models/editcollectionresponse.py rename to src/glean/api_client/models/editcollectionresponse.py index af4ce155..bc57b392 100644 --- a/src/glean/models/editcollectionresponse.py +++ b/src/glean/api_client/models/editcollectionresponse.py @@ -15,7 +15,7 @@ from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/editpinrequest.py b/src/glean/api_client/models/editpinrequest.py similarity index 96% rename from src/glean/models/editpinrequest.py rename to src/glean/api_client/models/editpinrequest.py index f6ea4621..989157be 100644 --- a/src/glean/models/editpinrequest.py +++ b/src/glean/api_client/models/editpinrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetfilter import FacetFilter, FacetFilterTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/employeeinfodefinition.py b/src/glean/api_client/models/employeeinfodefinition.py similarity index 99% rename from src/glean/models/employeeinfodefinition.py rename to src/glean/api_client/models/employeeinfodefinition.py index 496133c3..960ebead 100644 --- a/src/glean/models/employeeinfodefinition.py +++ b/src/glean/api_client/models/employeeinfodefinition.py @@ -14,7 +14,7 @@ ) from .structuredlocation import StructuredLocation, StructuredLocationTypedDict from datetime import date -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/employeeteaminfo.py b/src/glean/api_client/models/employeeteaminfo.py similarity index 94% rename from src/glean/models/employeeteaminfo.py rename to src/glean/api_client/models/employeeteaminfo.py index 45a78d7c..00ddca58 100644 --- a/src/glean/models/employeeteaminfo.py +++ b/src/glean/api_client/models/employeeteaminfo.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/entitiessortorder.py b/src/glean/api_client/models/entitiessortorder.py similarity index 100% rename from src/glean/models/entitiessortorder.py rename to src/glean/api_client/models/entitiessortorder.py diff --git a/src/glean/models/entityrelationship.py b/src/glean/api_client/models/entityrelationship.py similarity index 95% rename from src/glean/models/entityrelationship.py rename to src/glean/api_client/models/entityrelationship.py index a8c0b6ad..0c2c8e5c 100644 --- a/src/glean/models/entityrelationship.py +++ b/src/glean/api_client/models/entityrelationship.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/entitytype.py b/src/glean/api_client/models/entitytype.py similarity index 100% rename from src/glean/models/entitytype.py rename to src/glean/api_client/models/entitytype.py diff --git a/src/glean/models/errormessage.py b/src/glean/api_client/models/errormessage.py similarity index 92% rename from src/glean/models/errormessage.py rename to src/glean/api_client/models/errormessage.py index 7cb2fdc8..dcc51f28 100644 --- a/src/glean/models/errormessage.py +++ b/src/glean/api_client/models/errormessage.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/eventclassification.py b/src/glean/api_client/models/eventclassification.py similarity index 94% rename from src/glean/models/eventclassification.py rename to src/glean/api_client/models/eventclassification.py index 56a245ed..32164a76 100644 --- a/src/glean/models/eventclassification.py +++ b/src/glean/api_client/models/eventclassification.py @@ -3,7 +3,7 @@ from __future__ import annotations from .eventclassificationname import EventClassificationName from .eventstrategyname import EventStrategyName -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/eventclassificationname.py b/src/glean/api_client/models/eventclassificationname.py similarity index 100% rename from src/glean/models/eventclassificationname.py rename to src/glean/api_client/models/eventclassificationname.py diff --git a/src/glean/models/eventstrategyname.py b/src/glean/api_client/models/eventstrategyname.py similarity index 100% rename from src/glean/models/eventstrategyname.py rename to src/glean/api_client/models/eventstrategyname.py diff --git a/src/glean/models/externalsharingoptions.py b/src/glean/api_client/models/externalsharingoptions.py similarity index 98% rename from src/glean/models/externalsharingoptions.py rename to src/glean/api_client/models/externalsharingoptions.py index 452b155d..7f187884 100644 --- a/src/glean/models/externalsharingoptions.py +++ b/src/glean/api_client/models/externalsharingoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated diff --git a/src/glean/models/externalshortcut.py b/src/glean/api_client/models/externalshortcut.py similarity index 98% rename from src/glean/models/externalshortcut.py rename to src/glean/api_client/models/externalshortcut.py index c6ed3d7f..ecb88c28 100644 --- a/src/glean/models/externalshortcut.py +++ b/src/glean/api_client/models/externalshortcut.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/extractedqna.py b/src/glean/api_client/models/extractedqna.py similarity index 95% rename from src/glean/models/extractedqna.py rename to src/glean/api_client/models/extractedqna.py index 0f5d3446..d5a9426c 100644 --- a/src/glean/models/extractedqna.py +++ b/src/glean/api_client/models/extractedqna.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/facetbucket.py b/src/glean/api_client/models/facetbucket.py similarity index 95% rename from src/glean/models/facetbucket.py rename to src/glean/api_client/models/facetbucket.py index ee3f3b72..4d4f01fd 100644 --- a/src/glean/models/facetbucket.py +++ b/src/glean/api_client/models/facetbucket.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetvalue import FacetValue, FacetValueTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/facetbucketfilter.py b/src/glean/api_client/models/facetbucketfilter.py similarity index 93% rename from src/glean/models/facetbucketfilter.py rename to src/glean/api_client/models/facetbucketfilter.py index 67b3be74..aec0e36b 100644 --- a/src/glean/models/facetbucketfilter.py +++ b/src/glean/api_client/models/facetbucketfilter.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/facetfilter.py b/src/glean/api_client/models/facetfilter.py similarity index 97% rename from src/glean/models/facetfilter.py rename to src/glean/api_client/models/facetfilter.py index 8da27b10..27c22663 100644 --- a/src/glean/models/facetfilter.py +++ b/src/glean/api_client/models/facetfilter.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetfiltervalue import FacetFilterValue, FacetFilterValueTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/facetfilterset.py b/src/glean/api_client/models/facetfilterset.py similarity index 94% rename from src/glean/models/facetfilterset.py rename to src/glean/api_client/models/facetfilterset.py index aad053a9..f6ae8b5c 100644 --- a/src/glean/models/facetfilterset.py +++ b/src/glean/api_client/models/facetfilterset.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetfilter import FacetFilter, FacetFilterTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/facetfiltervalue.py b/src/glean/api_client/models/facetfiltervalue.py similarity index 95% rename from src/glean/models/facetfiltervalue.py rename to src/glean/api_client/models/facetfiltervalue.py index 97e0b641..84af2821 100644 --- a/src/glean/models/facetfiltervalue.py +++ b/src/glean/api_client/models/facetfiltervalue.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/facetresult.py b/src/glean/api_client/models/facetresult.py similarity index 98% rename from src/glean/models/facetresult.py rename to src/glean/api_client/models/facetresult.py index 011a0555..c250a6ba 100644 --- a/src/glean/models/facetresult.py +++ b/src/glean/api_client/models/facetresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetbucket import FacetBucket, FacetBucketTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/facetvalue.py b/src/glean/api_client/models/facetvalue.py similarity index 96% rename from src/glean/models/facetvalue.py rename to src/glean/api_client/models/facetvalue.py index 7ebb1437..21ff8e3e 100644 --- a/src/glean/models/facetvalue.py +++ b/src/glean/api_client/models/facetvalue.py @@ -2,7 +2,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/favoriteinfo.py b/src/glean/api_client/models/favoriteinfo.py similarity index 95% rename from src/glean/models/favoriteinfo.py rename to src/glean/api_client/models/favoriteinfo.py index 0a5893ce..1556a690 100644 --- a/src/glean/models/favoriteinfo.py +++ b/src/glean/api_client/models/favoriteinfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from .ugctype import UgcType -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedback.py b/src/glean/api_client/models/feedback.py similarity index 99% rename from src/glean/models/feedback.py rename to src/glean/api_client/models/feedback.py index 23937b70..fe92b73b 100644 --- a/src/glean/models/feedback.py +++ b/src/glean/api_client/models/feedback.py @@ -9,7 +9,7 @@ from .workflowfeedbackinfo import WorkflowFeedbackInfo, WorkflowFeedbackInfoTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedbackchatexchange.py b/src/glean/api_client/models/feedbackchatexchange.py similarity index 97% rename from src/glean/models/feedbackchatexchange.py rename to src/glean/api_client/models/feedbackchatexchange.py index 0532284f..5d7a5273 100644 --- a/src/glean/models/feedbackchatexchange.py +++ b/src/glean/api_client/models/feedbackchatexchange.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedbackop.py b/src/glean/api_client/models/feedbackop.py similarity index 87% rename from src/glean/models/feedbackop.py rename to src/glean/api_client/models/feedbackop.py index b946c087..86bac83c 100644 --- a/src/glean/models/feedbackop.py +++ b/src/glean/api_client/models/feedbackop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .feedback import Feedback, FeedbackTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedentry.py b/src/glean/api_client/models/feedentry.py similarity index 99% rename from src/glean/models/feedentry.py rename to src/glean/api_client/models/feedentry.py index f105542d..25fa1edb 100644 --- a/src/glean/models/feedentry.py +++ b/src/glean/api_client/models/feedentry.py @@ -18,7 +18,7 @@ from .useractivity import UserActivity, UserActivityTypedDict from .workflowresult import WorkflowResult, WorkflowResultTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedrequest.py b/src/glean/api_client/models/feedrequest.py similarity index 98% rename from src/glean/models/feedrequest.py rename to src/glean/api_client/models/feedrequest.py index 51ed2d02..d9f4be0c 100644 --- a/src/glean/models/feedrequest.py +++ b/src/glean/api_client/models/feedrequest.py @@ -4,7 +4,7 @@ from .feedrequestoptions import FeedRequestOptions, FeedRequestOptionsTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedrequestoptions.py b/src/glean/api_client/models/feedrequestoptions.py similarity index 98% rename from src/glean/models/feedrequestoptions.py rename to src/glean/api_client/models/feedrequestoptions.py index 6568cd97..c647c5e6 100644 --- a/src/glean/models/feedrequestoptions.py +++ b/src/glean/api_client/models/feedrequestoptions.py @@ -5,7 +5,7 @@ ChatZeroStateSuggestionOptions, ChatZeroStateSuggestionOptionsTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedresponse.py b/src/glean/api_client/models/feedresponse.py similarity index 97% rename from src/glean/models/feedresponse.py rename to src/glean/api_client/models/feedresponse.py index 914c6d25..d0c78ace 100644 --- a/src/glean/models/feedresponse.py +++ b/src/glean/api_client/models/feedresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .facetresult import FacetResult, FacetResultTypedDict from .feedresult import FeedResult, FeedResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/feedresult.py b/src/glean/api_client/models/feedresult.py similarity index 98% rename from src/glean/models/feedresult.py rename to src/glean/api_client/models/feedresult.py index f487648b..a43350f6 100644 --- a/src/glean/models/feedresult.py +++ b/src/glean/api_client/models/feedresult.py @@ -3,7 +3,7 @@ from __future__ import annotations from .feedentry import FeedEntry, FeedEntryTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/followupaction.py b/src/glean/api_client/models/followupaction.py similarity index 98% rename from src/glean/models/followupaction.py rename to src/glean/api_client/models/followupaction.py index 4ef5e7eb..c19f8432 100644 --- a/src/glean/models/followupaction.py +++ b/src/glean/api_client/models/followupaction.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/generatedattachment.py b/src/glean/api_client/models/generatedattachment.py similarity index 97% rename from src/glean/models/generatedattachment.py rename to src/glean/api_client/models/generatedattachment.py index 841d3d41..3e45adcc 100644 --- a/src/glean/models/generatedattachment.py +++ b/src/glean/api_client/models/generatedattachment.py @@ -10,7 +10,7 @@ ) from .person import Person, PersonTypedDict from .structuredlink import StructuredLink, StructuredLinkTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/generatedattachmentcontent.py b/src/glean/api_client/models/generatedattachmentcontent.py similarity index 95% rename from src/glean/models/generatedattachmentcontent.py rename to src/glean/api_client/models/generatedattachmentcontent.py index 434674ea..efc70dbd 100644 --- a/src/glean/models/generatedattachmentcontent.py +++ b/src/glean/api_client/models/generatedattachmentcontent.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/generatedqna.py b/src/glean/api_client/models/generatedqna.py similarity index 98% rename from src/glean/models/generatedqna.py rename to src/glean/api_client/models/generatedqna.py index 6c4a2f27..74dc6438 100644 --- a/src/glean/models/generatedqna.py +++ b/src/glean/api_client/models/generatedqna.py @@ -4,7 +4,7 @@ from .followupaction import FollowupAction, FollowupActionTypedDict from .textrange import TextRange, TextRangeTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/get_rest_api_v1_tools_listop.py b/src/glean/api_client/models/get_rest_api_v1_tools_listop.py similarity index 85% rename from src/glean/models/get_rest_api_v1_tools_listop.py rename to src/glean/api_client/models/get_rest_api_v1_tools_listop.py index 1881ad77..5d4cbffa 100644 --- a/src/glean/models/get_rest_api_v1_tools_listop.py +++ b/src/glean/api_client/models/get_rest_api_v1_tools_listop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getagentop.py b/src/glean/api_client/models/getagentop.py similarity index 87% rename from src/glean/models/getagentop.py rename to src/glean/api_client/models/getagentop.py index c2555cf5..8c46cd53 100644 --- a/src/glean/models/getagentop.py +++ b/src/glean/api_client/models/getagentop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getagentschemasop.py b/src/glean/api_client/models/getagentschemasop.py similarity index 87% rename from src/glean/models/getagentschemasop.py rename to src/glean/api_client/models/getagentschemasop.py index f851af62..2ccdeb6d 100644 --- a/src/glean/models/getagentschemasop.py +++ b/src/glean/api_client/models/getagentschemasop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getanswererror.py b/src/glean/api_client/models/getanswererror.py similarity index 94% rename from src/glean/models/getanswererror.py rename to src/glean/api_client/models/getanswererror.py index eb1a3092..b22de15f 100644 --- a/src/glean/models/getanswererror.py +++ b/src/glean/api_client/models/getanswererror.py @@ -3,7 +3,7 @@ from __future__ import annotations from .person import Person, PersonTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getanswerrequest.py b/src/glean/api_client/models/getanswerrequest.py similarity index 95% rename from src/glean/models/getanswerrequest.py rename to src/glean/api_client/models/getanswerrequest.py index 989bb4b6..8fab070a 100644 --- a/src/glean/models/getanswerrequest.py +++ b/src/glean/api_client/models/getanswerrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getanswerresponse.py b/src/glean/api_client/models/getanswerresponse.py similarity index 93% rename from src/glean/models/getanswerresponse.py rename to src/glean/api_client/models/getanswerresponse.py index 429a43b1..0c019028 100644 --- a/src/glean/models/getanswerresponse.py +++ b/src/glean/api_client/models/getanswerresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .answerresult import AnswerResult, AnswerResultTypedDict from .getanswererror import GetAnswerError, GetAnswerErrorTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getchatapplicationop.py b/src/glean/api_client/models/getchatapplicationop.py similarity index 89% rename from src/glean/models/getchatapplicationop.py rename to src/glean/api_client/models/getchatapplicationop.py index 445a27c6..0125e6b2 100644 --- a/src/glean/models/getchatapplicationop.py +++ b/src/glean/api_client/models/getchatapplicationop.py @@ -5,8 +5,8 @@ GetChatApplicationRequest, GetChatApplicationRequestTypedDict, ) -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getchatapplicationrequest.py b/src/glean/api_client/models/getchatapplicationrequest.py similarity index 89% rename from src/glean/models/getchatapplicationrequest.py rename to src/glean/api_client/models/getchatapplicationrequest.py index 757c0ffa..54068333 100644 --- a/src/glean/models/getchatapplicationrequest.py +++ b/src/glean/api_client/models/getchatapplicationrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/getchatapplicationresponse.py b/src/glean/api_client/models/getchatapplicationresponse.py similarity index 89% rename from src/glean/models/getchatapplicationresponse.py rename to src/glean/api_client/models/getchatapplicationresponse.py index a8ff8a40..35bc5fe9 100644 --- a/src/glean/models/getchatapplicationresponse.py +++ b/src/glean/api_client/models/getchatapplicationresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Any, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getchatfilesop.py b/src/glean/api_client/models/getchatfilesop.py similarity index 89% rename from src/glean/models/getchatfilesop.py rename to src/glean/api_client/models/getchatfilesop.py index b1ca6796..43d5942b 100644 --- a/src/glean/models/getchatfilesop.py +++ b/src/glean/api_client/models/getchatfilesop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .getchatfilesrequest import GetChatFilesRequest, GetChatFilesRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getchatfilesrequest.py b/src/glean/api_client/models/getchatfilesrequest.py similarity index 90% rename from src/glean/models/getchatfilesrequest.py rename to src/glean/api_client/models/getchatfilesrequest.py index 9cd56de6..86c92b64 100644 --- a/src/glean/models/getchatfilesrequest.py +++ b/src/glean/api_client/models/getchatfilesrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/getchatfilesresponse.py b/src/glean/api_client/models/getchatfilesresponse.py similarity index 92% rename from src/glean/models/getchatfilesresponse.py rename to src/glean/api_client/models/getchatfilesresponse.py index ba25057f..01009b4c 100644 --- a/src/glean/models/getchatfilesresponse.py +++ b/src/glean/api_client/models/getchatfilesresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatfile import ChatFile, ChatFileTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getchatop.py b/src/glean/api_client/models/getchatop.py similarity index 88% rename from src/glean/models/getchatop.py rename to src/glean/api_client/models/getchatop.py index 4a3babdd..223baba2 100644 --- a/src/glean/models/getchatop.py +++ b/src/glean/api_client/models/getchatop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .getchatrequest import GetChatRequest, GetChatRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getchatrequest.py b/src/glean/api_client/models/getchatrequest.py similarity index 88% rename from src/glean/models/getchatrequest.py rename to src/glean/api_client/models/getchatrequest.py index e613d9bc..ddc94798 100644 --- a/src/glean/models/getchatrequest.py +++ b/src/glean/api_client/models/getchatrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/getchatresponse.py b/src/glean/api_client/models/getchatresponse.py similarity index 91% rename from src/glean/models/getchatresponse.py rename to src/glean/api_client/models/getchatresponse.py index 8c691843..5f24d0ab 100644 --- a/src/glean/models/getchatresponse.py +++ b/src/glean/api_client/models/getchatresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatresult import ChatResult, ChatResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getcollectionrequest.py b/src/glean/api_client/models/getcollectionrequest.py similarity index 96% rename from src/glean/models/getcollectionrequest.py rename to src/glean/api_client/models/getcollectionrequest.py index 54e02c4d..3d4d0c41 100644 --- a/src/glean/models/getcollectionrequest.py +++ b/src/glean/api_client/models/getcollectionrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getcollectionresponse.py b/src/glean/api_client/models/getcollectionresponse.py similarity index 96% rename from src/glean/models/getcollectionresponse.py rename to src/glean/api_client/models/getcollectionresponse.py index 7e77c8e1..2360fd29 100644 --- a/src/glean/models/getcollectionresponse.py +++ b/src/glean/api_client/models/getcollectionresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .collection import Collection, CollectionTypedDict from .collectionerror import CollectionError, CollectionErrorTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdatasourceconfigrequest.py b/src/glean/api_client/models/getdatasourceconfigrequest.py similarity index 92% rename from src/glean/models/getdatasourceconfigrequest.py rename to src/glean/api_client/models/getdatasourceconfigrequest.py index 8ed8591e..0fa42a25 100644 --- a/src/glean/models/getdatasourceconfigrequest.py +++ b/src/glean/api_client/models/getdatasourceconfigrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/getdlpreportresponse.py b/src/glean/api_client/models/getdlpreportresponse.py similarity index 92% rename from src/glean/models/getdlpreportresponse.py rename to src/glean/api_client/models/getdlpreportresponse.py index 03453e67..910b76f3 100644 --- a/src/glean/models/getdlpreportresponse.py +++ b/src/glean/api_client/models/getdlpreportresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpreport import DlpReport, DlpReportTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getdocpermissionsrequest.py b/src/glean/api_client/models/getdocpermissionsrequest.py similarity index 92% rename from src/glean/models/getdocpermissionsrequest.py rename to src/glean/api_client/models/getdocpermissionsrequest.py index fd7ca9d6..87d3980f 100644 --- a/src/glean/models/getdocpermissionsrequest.py +++ b/src/glean/api_client/models/getdocpermissionsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocpermissionsresponse.py b/src/glean/api_client/models/getdocpermissionsresponse.py similarity index 94% rename from src/glean/models/getdocpermissionsresponse.py rename to src/glean/api_client/models/getdocpermissionsresponse.py index 394201f2..4e466616 100644 --- a/src/glean/models/getdocpermissionsresponse.py +++ b/src/glean/api_client/models/getdocpermissionsresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentcountrequest.py b/src/glean/api_client/models/getdocumentcountrequest.py similarity index 92% rename from src/glean/models/getdocumentcountrequest.py rename to src/glean/api_client/models/getdocumentcountrequest.py index 4be931c8..4fd7db81 100644 --- a/src/glean/models/getdocumentcountrequest.py +++ b/src/glean/api_client/models/getdocumentcountrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/getdocumentcountresponse.py b/src/glean/api_client/models/getdocumentcountresponse.py similarity index 94% rename from src/glean/models/getdocumentcountresponse.py rename to src/glean/api_client/models/getdocumentcountresponse.py index fa717e0e..a92b11bd 100644 --- a/src/glean/models/getdocumentcountresponse.py +++ b/src/glean/api_client/models/getdocumentcountresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentsbyfacetsrequest.py b/src/glean/api_client/models/getdocumentsbyfacetsrequest.py similarity index 97% rename from src/glean/models/getdocumentsbyfacetsrequest.py rename to src/glean/api_client/models/getdocumentsbyfacetsrequest.py index 78843609..2bb8c880 100644 --- a/src/glean/models/getdocumentsbyfacetsrequest.py +++ b/src/glean/api_client/models/getdocumentsbyfacetsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetfilterset import FacetFilterSet, FacetFilterSetTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentsbyfacetsresponse.py b/src/glean/api_client/models/getdocumentsbyfacetsresponse.py similarity index 96% rename from src/glean/models/getdocumentsbyfacetsresponse.py rename to src/glean/api_client/models/getdocumentsbyfacetsresponse.py index 1a083f6f..f3f1a394 100644 --- a/src/glean/models/getdocumentsbyfacetsresponse.py +++ b/src/glean/api_client/models/getdocumentsbyfacetsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .document import Document, DocumentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentsrequest.py b/src/glean/api_client/models/getdocumentsrequest.py similarity index 96% rename from src/glean/models/getdocumentsrequest.py rename to src/glean/api_client/models/getdocumentsrequest.py index 9090b6e7..fccf9c08 100644 --- a/src/glean/models/getdocumentsrequest.py +++ b/src/glean/api_client/models/getdocumentsrequest.py @@ -3,7 +3,7 @@ from __future__ import annotations from .documentspec_union import DocumentSpecUnion, DocumentSpecUnionTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentsresponse.py b/src/glean/api_client/models/getdocumentsresponse.py similarity index 93% rename from src/glean/models/getdocumentsresponse.py rename to src/glean/api_client/models/getdocumentsresponse.py index 2a6eee0b..8d88a307 100644 --- a/src/glean/models/getdocumentsresponse.py +++ b/src/glean/api_client/models/getdocumentsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentorerror_union import DocumentOrErrorUnion, DocumentOrErrorUnionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getdocumentstatusrequest.py b/src/glean/api_client/models/getdocumentstatusrequest.py similarity index 95% rename from src/glean/models/getdocumentstatusrequest.py rename to src/glean/api_client/models/getdocumentstatusrequest.py index 570468fb..47266d92 100644 --- a/src/glean/models/getdocumentstatusrequest.py +++ b/src/glean/api_client/models/getdocumentstatusrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/getdocumentstatusresponse.py b/src/glean/api_client/models/getdocumentstatusresponse.py similarity index 97% rename from src/glean/models/getdocumentstatusresponse.py rename to src/glean/api_client/models/getdocumentstatusresponse.py index 55d2b6ad..2d9da081 100644 --- a/src/glean/models/getdocumentstatusresponse.py +++ b/src/glean/api_client/models/getdocumentstatusresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocumentvisibilityoverridesresponse.py b/src/glean/api_client/models/getdocumentvisibilityoverridesresponse.py similarity index 93% rename from src/glean/models/getdocumentvisibilityoverridesresponse.py rename to src/glean/api_client/models/getdocumentvisibilityoverridesresponse.py index 8c256125..7b7f9502 100644 --- a/src/glean/models/getdocumentvisibilityoverridesresponse.py +++ b/src/glean/api_client/models/getdocumentvisibilityoverridesresponse.py @@ -5,7 +5,7 @@ DocumentVisibilityOverride, DocumentVisibilityOverrideTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getdocvisibilityop.py b/src/glean/api_client/models/getdocvisibilityop.py similarity index 85% rename from src/glean/models/getdocvisibilityop.py rename to src/glean/api_client/models/getdocvisibilityop.py index 95e72004..e6f51f11 100644 --- a/src/glean/models/getdocvisibilityop.py +++ b/src/glean/api_client/models/getdocvisibilityop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getpinrequest.py b/src/glean/api_client/models/getpinrequest.py similarity index 90% rename from src/glean/models/getpinrequest.py rename to src/glean/api_client/models/getpinrequest.py index ddaf8a97..3ad5f923 100644 --- a/src/glean/models/getpinrequest.py +++ b/src/glean/api_client/models/getpinrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getpinresponse.py b/src/glean/api_client/models/getpinresponse.py similarity index 90% rename from src/glean/models/getpinresponse.py rename to src/glean/api_client/models/getpinresponse.py index e4e97024..e7e58070 100644 --- a/src/glean/models/getpinresponse.py +++ b/src/glean/api_client/models/getpinresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .pindocument import PinDocument, PinDocumentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getpolicyop.py b/src/glean/api_client/models/getpolicyop.py similarity index 88% rename from src/glean/models/getpolicyop.py rename to src/glean/api_client/models/getpolicyop.py index 47c8c132..41f8894d 100644 --- a/src/glean/models/getpolicyop.py +++ b/src/glean/api_client/models/getpolicyop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/getreportstatusop.py b/src/glean/api_client/models/getreportstatusop.py similarity index 81% rename from src/glean/models/getreportstatusop.py rename to src/glean/api_client/models/getreportstatusop.py index 4900e261..17fc5617 100644 --- a/src/glean/models/getreportstatusop.py +++ b/src/glean/api_client/models/getreportstatusop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/getshortcutrequest_union.py b/src/glean/api_client/models/getshortcutrequest_union.py similarity index 95% rename from src/glean/models/getshortcutrequest_union.py rename to src/glean/api_client/models/getshortcutrequest_union.py index cfd118b8..6f031d6d 100644 --- a/src/glean/models/getshortcutrequest_union.py +++ b/src/glean/api_client/models/getshortcutrequest_union.py @@ -5,7 +5,7 @@ UserGeneratedContentID, UserGeneratedContentIDTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Union from typing_extensions import TypeAliasType, TypedDict diff --git a/src/glean/models/getshortcutresponse.py b/src/glean/api_client/models/getshortcutresponse.py similarity index 92% rename from src/glean/models/getshortcutresponse.py rename to src/glean/api_client/models/getshortcutresponse.py index 25954b3a..52a9e1fc 100644 --- a/src/glean/models/getshortcutresponse.py +++ b/src/glean/api_client/models/getshortcutresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .shortcut import Shortcut, ShortcutTypedDict from .shortcuterror import ShortcutError, ShortcutErrorTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/getusercountrequest.py b/src/glean/api_client/models/getusercountrequest.py similarity index 92% rename from src/glean/models/getusercountrequest.py rename to src/glean/api_client/models/getusercountrequest.py index 18c1d020..093c81b4 100644 --- a/src/glean/models/getusercountrequest.py +++ b/src/glean/api_client/models/getusercountrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/getusercountresponse.py b/src/glean/api_client/models/getusercountresponse.py similarity index 94% rename from src/glean/models/getusercountresponse.py rename to src/glean/api_client/models/getusercountresponse.py index 06a7e2db..cf329c0f 100644 --- a/src/glean/models/getusercountresponse.py +++ b/src/glean/api_client/models/getusercountresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/gleanassistinsightsresponse.py b/src/glean/api_client/models/gleanassistinsightsresponse.py similarity index 97% rename from src/glean/models/gleanassistinsightsresponse.py rename to src/glean/api_client/models/gleanassistinsightsresponse.py index 84e15316..11fde8c6 100644 --- a/src/glean/models/gleanassistinsightsresponse.py +++ b/src/glean/api_client/models/gleanassistinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/gleandataerror.py b/src/glean/api_client/models/gleandataerror.py similarity index 97% rename from src/glean/models/gleandataerror.py rename to src/glean/api_client/models/gleandataerror.py index b0f8856c..0e3c93c2 100644 --- a/src/glean/models/gleandataerror.py +++ b/src/glean/api_client/models/gleandataerror.py @@ -6,7 +6,7 @@ InvalidOperatorValueError, InvalidOperatorValueErrorTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/grantpermission.py b/src/glean/api_client/models/grantpermission.py similarity index 94% rename from src/glean/models/grantpermission.py rename to src/glean/api_client/models/grantpermission.py index 99155a81..c8b4da2a 100644 --- a/src/glean/models/grantpermission.py +++ b/src/glean/api_client/models/grantpermission.py @@ -2,7 +2,7 @@ from __future__ import annotations from .scopetype import ScopeType -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/greenlistusersrequest.py b/src/glean/api_client/models/greenlistusersrequest.py similarity index 94% rename from src/glean/models/greenlistusersrequest.py rename to src/glean/api_client/models/greenlistusersrequest.py index d19d7426..85f19cbf 100644 --- a/src/glean/models/greenlistusersrequest.py +++ b/src/glean/api_client/models/greenlistusersrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List from typing_extensions import TypedDict diff --git a/src/glean/models/group.py b/src/glean/api_client/models/group.py similarity index 93% rename from src/glean/models/group.py rename to src/glean/api_client/models/group.py index accdf53a..8b1c31f8 100644 --- a/src/glean/models/group.py +++ b/src/glean/api_client/models/group.py @@ -2,7 +2,7 @@ from __future__ import annotations from .grouptype import GroupType -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/grouptype.py b/src/glean/api_client/models/grouptype.py similarity index 100% rename from src/glean/models/grouptype.py rename to src/glean/api_client/models/grouptype.py diff --git a/src/glean/models/hotword.py b/src/glean/api_client/models/hotword.py similarity index 91% rename from src/glean/models/hotword.py rename to src/glean/api_client/models/hotword.py index 56429904..d7fb8583 100644 --- a/src/glean/models/hotword.py +++ b/src/glean/api_client/models/hotword.py @@ -2,7 +2,7 @@ from __future__ import annotations from .hotwordproximity import HotwordProximity, HotwordProximityTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/hotwordproximity.py b/src/glean/api_client/models/hotwordproximity.py similarity index 92% rename from src/glean/models/hotwordproximity.py rename to src/glean/api_client/models/hotwordproximity.py index 4f81aa21..5365ad4e 100644 --- a/src/glean/models/hotwordproximity.py +++ b/src/glean/api_client/models/hotwordproximity.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/iconconfig.py b/src/glean/api_client/models/iconconfig.py similarity index 97% rename from src/glean/models/iconconfig.py rename to src/glean/api_client/models/iconconfig.py index 006373a3..5abfc126 100644 --- a/src/glean/models/iconconfig.py +++ b/src/glean/api_client/models/iconconfig.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/indexdocumentrequest.py b/src/glean/api_client/models/indexdocumentrequest.py similarity index 95% rename from src/glean/models/indexdocumentrequest.py rename to src/glean/api_client/models/indexdocumentrequest.py index 57e230f4..4fba3e89 100644 --- a/src/glean/models/indexdocumentrequest.py +++ b/src/glean/api_client/models/indexdocumentrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentdefinition import DocumentDefinition, DocumentDefinitionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/indexdocumentsrequest.py b/src/glean/api_client/models/indexdocumentsrequest.py similarity index 96% rename from src/glean/models/indexdocumentsrequest.py rename to src/glean/api_client/models/indexdocumentsrequest.py index eb15212f..7b914d56 100644 --- a/src/glean/models/indexdocumentsrequest.py +++ b/src/glean/api_client/models/indexdocumentsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentdefinition import DocumentDefinition, DocumentDefinitionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/indexemployeerequest.py b/src/glean/api_client/models/indexemployeerequest.py similarity index 95% rename from src/glean/models/indexemployeerequest.py rename to src/glean/api_client/models/indexemployeerequest.py index b8b80de3..f991332f 100644 --- a/src/glean/models/indexemployeerequest.py +++ b/src/glean/api_client/models/indexemployeerequest.py @@ -5,7 +5,7 @@ EmployeeInfoDefinition, EmployeeInfoDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/indexgrouprequest.py b/src/glean/api_client/models/indexgrouprequest.py similarity index 96% rename from src/glean/models/indexgrouprequest.py rename to src/glean/api_client/models/indexgrouprequest.py index a287a298..061d1f90 100644 --- a/src/glean/models/indexgrouprequest.py +++ b/src/glean/api_client/models/indexgrouprequest.py @@ -5,7 +5,7 @@ DatasourceGroupDefinition, DatasourceGroupDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/indexingshortcut.py b/src/glean/api_client/models/indexingshortcut.py similarity index 98% rename from src/glean/models/indexingshortcut.py rename to src/glean/api_client/models/indexingshortcut.py index 5b5467eb..ada9bb84 100644 --- a/src/glean/models/indexingshortcut.py +++ b/src/glean/api_client/models/indexingshortcut.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/indexmembershiprequest.py b/src/glean/api_client/models/indexmembershiprequest.py similarity index 96% rename from src/glean/models/indexmembershiprequest.py rename to src/glean/api_client/models/indexmembershiprequest.py index 1b1d85b6..998015da 100644 --- a/src/glean/models/indexmembershiprequest.py +++ b/src/glean/api_client/models/indexmembershiprequest.py @@ -5,7 +5,7 @@ DatasourceMembershipDefinition, DatasourceMembershipDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/indexstatus.py b/src/glean/api_client/models/indexstatus.py similarity index 94% rename from src/glean/models/indexstatus.py rename to src/glean/api_client/models/indexstatus.py index 7154613e..444468cd 100644 --- a/src/glean/models/indexstatus.py +++ b/src/glean/api_client/models/indexstatus.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/indexteamrequest.py b/src/glean/api_client/models/indexteamrequest.py similarity index 95% rename from src/glean/models/indexteamrequest.py rename to src/glean/api_client/models/indexteamrequest.py index cc1a9997..487fd368 100644 --- a/src/glean/models/indexteamrequest.py +++ b/src/glean/api_client/models/indexteamrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .teaminfodefinition import TeamInfoDefinition, TeamInfoDefinitionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/indexuserrequest.py b/src/glean/api_client/models/indexuserrequest.py similarity index 96% rename from src/glean/models/indexuserrequest.py rename to src/glean/api_client/models/indexuserrequest.py index e7e3d8a6..233e2f7d 100644 --- a/src/glean/models/indexuserrequest.py +++ b/src/glean/api_client/models/indexuserrequest.py @@ -5,7 +5,7 @@ DatasourceUserDefinition, DatasourceUserDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/inputoptions.py b/src/glean/api_client/models/inputoptions.py similarity index 98% rename from src/glean/models/inputoptions.py rename to src/glean/api_client/models/inputoptions.py index c90fc10d..8d013eef 100644 --- a/src/glean/models/inputoptions.py +++ b/src/glean/api_client/models/inputoptions.py @@ -3,7 +3,7 @@ from __future__ import annotations from .timerange import TimeRange, TimeRangeTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/insightsagentsrequestoptions.py b/src/glean/api_client/models/insightsagentsrequestoptions.py similarity index 93% rename from src/glean/models/insightsagentsrequestoptions.py rename to src/glean/api_client/models/insightsagentsrequestoptions.py index dc759ffd..5d8cc6cd 100644 --- a/src/glean/models/insightsagentsrequestoptions.py +++ b/src/glean/api_client/models/insightsagentsrequestoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/insightsaiapprequestoptions.py b/src/glean/api_client/models/insightsaiapprequestoptions.py similarity index 93% rename from src/glean/models/insightsaiapprequestoptions.py rename to src/glean/api_client/models/insightsaiapprequestoptions.py index 17cf1432..dbe7cf53 100644 --- a/src/glean/models/insightsaiapprequestoptions.py +++ b/src/glean/api_client/models/insightsaiapprequestoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/insightsrequest.py b/src/glean/api_client/models/insightsrequest.py similarity index 98% rename from src/glean/models/insightsrequest.py rename to src/glean/api_client/models/insightsrequest.py index 5f7071c8..b7ade2c6 100644 --- a/src/glean/models/insightsrequest.py +++ b/src/glean/api_client/models/insightsrequest.py @@ -11,7 +11,7 @@ ) from .period import Period, PeriodTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/insightsresponse.py b/src/glean/api_client/models/insightsresponse.py similarity index 98% rename from src/glean/models/insightsresponse.py rename to src/glean/api_client/models/insightsresponse.py index 5c564dad..8bd36b75 100644 --- a/src/glean/models/insightsresponse.py +++ b/src/glean/api_client/models/insightsresponse.py @@ -21,7 +21,7 @@ ShortcutInsightsResponseTypedDict, ) from .userinsightsresponse import UserInsightsResponse, UserInsightsResponseTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/invalidoperatorvalueerror.py b/src/glean/api_client/models/invalidoperatorvalueerror.py similarity index 92% rename from src/glean/models/invalidoperatorvalueerror.py rename to src/glean/api_client/models/invalidoperatorvalueerror.py index b90606a5..ce4b0f67 100644 --- a/src/glean/models/invalidoperatorvalueerror.py +++ b/src/glean/api_client/models/invalidoperatorvalueerror.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/inviteinfo.py b/src/glean/api_client/models/inviteinfo.py similarity index 98% rename from src/glean/models/inviteinfo.py rename to src/glean/api_client/models/inviteinfo.py index b8f57893..a7cbaf75 100644 --- a/src/glean/models/inviteinfo.py +++ b/src/glean/api_client/models/inviteinfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/labeledcountinfo.py b/src/glean/api_client/models/labeledcountinfo.py similarity index 94% rename from src/glean/models/labeledcountinfo.py rename to src/glean/api_client/models/labeledcountinfo.py index a5b71efa..d7f33f18 100644 --- a/src/glean/models/labeledcountinfo.py +++ b/src/glean/api_client/models/labeledcountinfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listanswersrequest.py b/src/glean/api_client/models/listanswersrequest.py similarity index 91% rename from src/glean/models/listanswersrequest.py rename to src/glean/api_client/models/listanswersrequest.py index 747f0925..28e5130a 100644 --- a/src/glean/models/listanswersrequest.py +++ b/src/glean/api_client/models/listanswersrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listanswersresponse.py b/src/glean/api_client/models/listanswersresponse.py similarity index 92% rename from src/glean/models/listanswersresponse.py rename to src/glean/api_client/models/listanswersresponse.py index 6af13c2f..6afb7851 100644 --- a/src/glean/models/listanswersresponse.py +++ b/src/glean/api_client/models/listanswersresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .answerresult import AnswerResult, AnswerResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/listchatsop.py b/src/glean/api_client/models/listchatsop.py similarity index 87% rename from src/glean/models/listchatsop.py rename to src/glean/api_client/models/listchatsop.py index 85259e5e..7523b314 100644 --- a/src/glean/models/listchatsop.py +++ b/src/glean/api_client/models/listchatsop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listchatsresponse.py b/src/glean/api_client/models/listchatsresponse.py similarity index 92% rename from src/glean/models/listchatsresponse.py rename to src/glean/api_client/models/listchatsresponse.py index 24e73e2c..00c90dea 100644 --- a/src/glean/models/listchatsresponse.py +++ b/src/glean/api_client/models/listchatsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatmetadataresult import ChatMetadataResult, ChatMetadataResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listcollectionsrequest.py b/src/glean/api_client/models/listcollectionsrequest.py similarity index 96% rename from src/glean/models/listcollectionsrequest.py rename to src/glean/api_client/models/listcollectionsrequest.py index 7d0b9178..9f35b1d3 100644 --- a/src/glean/models/listcollectionsrequest.py +++ b/src/glean/api_client/models/listcollectionsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listcollectionsresponse.py b/src/glean/api_client/models/listcollectionsresponse.py similarity index 92% rename from src/glean/models/listcollectionsresponse.py rename to src/glean/api_client/models/listcollectionsresponse.py index ee8b293c..fcca4d58 100644 --- a/src/glean/models/listcollectionsresponse.py +++ b/src/glean/api_client/models/listcollectionsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .collection import Collection, CollectionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List from typing_extensions import TypedDict diff --git a/src/glean/models/listdlpreportsresponse.py b/src/glean/api_client/models/listdlpreportsresponse.py similarity index 90% rename from src/glean/models/listdlpreportsresponse.py rename to src/glean/api_client/models/listdlpreportsresponse.py index 51e7b760..32b68e06 100644 --- a/src/glean/models/listdlpreportsresponse.py +++ b/src/glean/api_client/models/listdlpreportsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpreport import DlpReport, DlpReportTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/listentitiesrequest.py b/src/glean/api_client/models/listentitiesrequest.py similarity index 98% rename from src/glean/models/listentitiesrequest.py rename to src/glean/api_client/models/listentitiesrequest.py index dc78f755..219e947e 100644 --- a/src/glean/models/listentitiesrequest.py +++ b/src/glean/api_client/models/listentitiesrequest.py @@ -4,7 +4,7 @@ from .facetfilter import FacetFilter, FacetFilterTypedDict from .sortoptions import SortOptions, SortOptionsTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listentitiesresponse.py b/src/glean/api_client/models/listentitiesresponse.py similarity index 98% rename from src/glean/models/listentitiesresponse.py rename to src/glean/api_client/models/listentitiesresponse.py index c65b98d4..1ad37e6b 100644 --- a/src/glean/models/listentitiesresponse.py +++ b/src/glean/api_client/models/listentitiesresponse.py @@ -6,7 +6,7 @@ from .facetresult import FacetResult, FacetResultTypedDict from .person import Person, PersonTypedDict from .team import Team, TeamTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listpinsop.py b/src/glean/api_client/models/listpinsop.py similarity index 86% rename from src/glean/models/listpinsop.py rename to src/glean/api_client/models/listpinsop.py index 72d50b0c..c31a5c29 100644 --- a/src/glean/models/listpinsop.py +++ b/src/glean/api_client/models/listpinsop.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/listpinsresponse.py b/src/glean/api_client/models/listpinsresponse.py similarity index 90% rename from src/glean/models/listpinsresponse.py rename to src/glean/api_client/models/listpinsresponse.py index 1ba4a0d3..aa39d3ad 100644 --- a/src/glean/models/listpinsresponse.py +++ b/src/glean/api_client/models/listpinsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .pindocument import PinDocument, PinDocumentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List from typing_extensions import TypedDict diff --git a/src/glean/models/listpoliciesop.py b/src/glean/api_client/models/listpoliciesop.py similarity index 89% rename from src/glean/models/listpoliciesop.py rename to src/glean/api_client/models/listpoliciesop.py index 21e72223..1ebdb4bd 100644 --- a/src/glean/models/listpoliciesop.py +++ b/src/glean/api_client/models/listpoliciesop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listshortcutspaginatedrequest.py b/src/glean/api_client/models/listshortcutspaginatedrequest.py similarity index 98% rename from src/glean/models/listshortcutspaginatedrequest.py rename to src/glean/api_client/models/listshortcutspaginatedrequest.py index 0c029aed..ce1c0600 100644 --- a/src/glean/models/listshortcutspaginatedrequest.py +++ b/src/glean/api_client/models/listshortcutspaginatedrequest.py @@ -4,7 +4,7 @@ from .facetfilter import FacetFilter, FacetFilterTypedDict from .sortoptions import SortOptions, SortOptionsTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listshortcutspaginatedresponse.py b/src/glean/api_client/models/listshortcutspaginatedresponse.py similarity index 95% rename from src/glean/models/listshortcutspaginatedresponse.py rename to src/glean/api_client/models/listshortcutspaginatedresponse.py index 1b2b4c11..c3b7359d 100644 --- a/src/glean/models/listshortcutspaginatedresponse.py +++ b/src/glean/api_client/models/listshortcutspaginatedresponse.py @@ -7,7 +7,7 @@ ShortcutsPaginationMetadata, ShortcutsPaginationMetadataTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/listverificationsop.py b/src/glean/api_client/models/listverificationsop.py similarity index 83% rename from src/glean/models/listverificationsop.py rename to src/glean/api_client/models/listverificationsop.py index 48e76c70..f8967a3d 100644 --- a/src/glean/models/listverificationsop.py +++ b/src/glean/api_client/models/listverificationsop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/manualfeedbackinfo.py b/src/glean/api_client/models/manualfeedbackinfo.py similarity index 99% rename from src/glean/models/manualfeedbackinfo.py rename to src/glean/api_client/models/manualfeedbackinfo.py index 22cae708..a67678c9 100644 --- a/src/glean/models/manualfeedbackinfo.py +++ b/src/glean/api_client/models/manualfeedbackinfo.py @@ -3,7 +3,7 @@ from __future__ import annotations from .feedbackchatexchange import FeedbackChatExchange, FeedbackChatExchangeTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/meeting.py b/src/glean/api_client/models/meeting.py similarity index 95% rename from src/glean/models/meeting.py rename to src/glean/api_client/models/meeting.py index 36420712..956309eb 100644 --- a/src/glean/models/meeting.py +++ b/src/glean/api_client/models/meeting.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/message.py b/src/glean/api_client/models/message.py similarity index 94% rename from src/glean/models/message.py rename to src/glean/api_client/models/message.py index c1c3eeba..fe32980c 100644 --- a/src/glean/models/message.py +++ b/src/glean/api_client/models/message.py @@ -2,7 +2,7 @@ from __future__ import annotations from .contenttype import ContentType -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/messagesrequest.py b/src/glean/api_client/models/messagesrequest.py similarity index 98% rename from src/glean/models/messagesrequest.py rename to src/glean/api_client/models/messagesrequest.py index 144d5fb0..07b71075 100644 --- a/src/glean/models/messagesrequest.py +++ b/src/glean/api_client/models/messagesrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/messagesresponse.py b/src/glean/api_client/models/messagesresponse.py similarity index 95% rename from src/glean/models/messagesresponse.py rename to src/glean/api_client/models/messagesresponse.py index 61e2762e..eb85f7fd 100644 --- a/src/glean/models/messagesresponse.py +++ b/src/glean/api_client/models/messagesresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .searchresponse import SearchResponse, SearchResponseTypedDict from .searchresult import SearchResult, SearchResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/objectdefinition.py b/src/glean/api_client/models/objectdefinition.py similarity index 98% rename from src/glean/models/objectdefinition.py rename to src/glean/api_client/models/objectdefinition.py index bbaac033..b6cfddb5 100644 --- a/src/glean/models/objectdefinition.py +++ b/src/glean/api_client/models/objectdefinition.py @@ -4,7 +4,7 @@ from .propertydefinition import PropertyDefinition, PropertyDefinitionTypedDict from .propertygroup import PropertyGroup, PropertyGroupTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/objectpermissions.py b/src/glean/api_client/models/objectpermissions.py similarity index 93% rename from src/glean/models/objectpermissions.py rename to src/glean/api_client/models/objectpermissions.py index ccede03e..c36464f5 100644 --- a/src/glean/models/objectpermissions.py +++ b/src/glean/api_client/models/objectpermissions.py @@ -2,7 +2,7 @@ from __future__ import annotations from .writepermission import WritePermission, WritePermissionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/operatormetadata.py b/src/glean/api_client/models/operatormetadata.py similarity index 97% rename from src/glean/models/operatormetadata.py rename to src/glean/api_client/models/operatormetadata.py index 55f82fc6..58f49e58 100644 --- a/src/glean/models/operatormetadata.py +++ b/src/glean/api_client/models/operatormetadata.py @@ -3,7 +3,7 @@ from __future__ import annotations from .operatorscope import OperatorScope, OperatorScopeTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/operatorscope.py b/src/glean/api_client/models/operatorscope.py similarity index 91% rename from src/glean/models/operatorscope.py rename to src/glean/api_client/models/operatorscope.py index 143497c8..0cfabb96 100644 --- a/src/glean/models/operatorscope.py +++ b/src/glean/api_client/models/operatorscope.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/peoplerequest.py b/src/glean/api_client/models/peoplerequest.py similarity index 98% rename from src/glean/models/peoplerequest.py rename to src/glean/api_client/models/peoplerequest.py index 3f052d70..9b578bfc 100644 --- a/src/glean/models/peoplerequest.py +++ b/src/glean/api_client/models/peoplerequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/peopleresponse.py b/src/glean/api_client/models/peopleresponse.py similarity index 96% rename from src/glean/models/peopleresponse.py rename to src/glean/api_client/models/peopleresponse.py index 755ed52f..789930ea 100644 --- a/src/glean/models/peopleresponse.py +++ b/src/glean/api_client/models/peopleresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .person import Person, PersonTypedDict from .relateddocuments import RelatedDocuments, RelatedDocumentsTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/period.py b/src/glean/api_client/models/period.py similarity index 97% rename from src/glean/models/period.py rename to src/glean/api_client/models/period.py index aed3dd73..2796c2fe 100644 --- a/src/glean/models/period.py +++ b/src/glean/api_client/models/period.py @@ -2,7 +2,7 @@ from __future__ import annotations from .timepoint import TimePoint, TimePointTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/permissions.py b/src/glean/api_client/models/permissions.py similarity index 98% rename from src/glean/models/permissions.py rename to src/glean/api_client/models/permissions.py index e27672d4..1e425fb5 100644 --- a/src/glean/models/permissions.py +++ b/src/glean/api_client/models/permissions.py @@ -4,7 +4,7 @@ from .grantpermission import GrantPermission, GrantPermissionTypedDict from .readpermission import ReadPermission, ReadPermissionTypedDict from .writepermission import WritePermission, WritePermissionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/permissionsgroupintersectiondefinition.py b/src/glean/api_client/models/permissionsgroupintersectiondefinition.py similarity index 93% rename from src/glean/models/permissionsgroupintersectiondefinition.py rename to src/glean/api_client/models/permissionsgroupintersectiondefinition.py index 0761adda..b0d3c386 100644 --- a/src/glean/models/permissionsgroupintersectiondefinition.py +++ b/src/glean/api_client/models/permissionsgroupintersectiondefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/person.py b/src/glean/api_client/models/person.py similarity index 96% rename from src/glean/models/person.py rename to src/glean/api_client/models/person.py index 97cf8add..c1edbe87 100644 --- a/src/glean/models/person.py +++ b/src/glean/api_client/models/person.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/persondistance.py b/src/glean/api_client/models/persondistance.py similarity index 94% rename from src/glean/models/persondistance.py rename to src/glean/api_client/models/persondistance.py index a7e6fcfa..8a4af8da 100644 --- a/src/glean/models/persondistance.py +++ b/src/glean/api_client/models/persondistance.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/personmetadata.py b/src/glean/api_client/models/personmetadata.py similarity index 99% rename from src/glean/models/personmetadata.py rename to src/glean/api_client/models/personmetadata.py index c86469ed..4c73b100 100644 --- a/src/glean/models/personmetadata.py +++ b/src/glean/api_client/models/personmetadata.py @@ -11,7 +11,7 @@ from .structuredlocation import StructuredLocation, StructuredLocationTypedDict from datetime import date, datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/personobject.py b/src/glean/api_client/models/personobject.py similarity index 93% rename from src/glean/models/personobject.py rename to src/glean/api_client/models/personobject.py index 65b90df7..af5a7318 100644 --- a/src/glean/models/personobject.py +++ b/src/glean/api_client/models/personobject.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/personteam.py b/src/glean/api_client/models/personteam.py similarity index 97% rename from src/glean/models/personteam.py rename to src/glean/api_client/models/personteam.py index a4e1ec3f..0b2a386b 100644 --- a/src/glean/models/personteam.py +++ b/src/glean/api_client/models/personteam.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/persontoteamrelationship.py b/src/glean/api_client/models/persontoteamrelationship.py similarity index 97% rename from src/glean/models/persontoteamrelationship.py rename to src/glean/api_client/models/persontoteamrelationship.py index ec21ab37..e9e026ba 100644 --- a/src/glean/models/persontoteamrelationship.py +++ b/src/glean/api_client/models/persontoteamrelationship.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/pindocument.py b/src/glean/api_client/models/pindocument.py similarity index 97% rename from src/glean/models/pindocument.py rename to src/glean/api_client/models/pindocument.py index 322321e3..66d2ae39 100644 --- a/src/glean/models/pindocument.py +++ b/src/glean/api_client/models/pindocument.py @@ -3,7 +3,7 @@ from __future__ import annotations from .facetfilter import FacetFilter, FacetFilterTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/pinrequest.py b/src/glean/api_client/models/pinrequest.py similarity index 96% rename from src/glean/models/pinrequest.py rename to src/glean/api_client/models/pinrequest.py index 52f2ada1..36d8b7c7 100644 --- a/src/glean/models/pinrequest.py +++ b/src/glean/api_client/models/pinrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .facetfilter import FacetFilter, FacetFilterTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/possiblevalue.py b/src/glean/api_client/models/possiblevalue.py similarity index 93% rename from src/glean/models/possiblevalue.py rename to src/glean/api_client/models/possiblevalue.py index e5db4aa3..a77e2ae8 100644 --- a/src/glean/models/possiblevalue.py +++ b/src/glean/api_client/models/possiblevalue.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/post_api_index_v1_debug_datasource_documentop.py b/src/glean/api_client/models/post_api_index_v1_debug_datasource_documentop.py similarity index 86% rename from src/glean/models/post_api_index_v1_debug_datasource_documentop.py rename to src/glean/api_client/models/post_api_index_v1_debug_datasource_documentop.py index a36df820..5ef9dd02 100644 --- a/src/glean/models/post_api_index_v1_debug_datasource_documentop.py +++ b/src/glean/api_client/models/post_api_index_v1_debug_datasource_documentop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .debugdocumentrequest import DebugDocumentRequest, DebugDocumentRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/post_api_index_v1_debug_datasource_documentsop.py b/src/glean/api_client/models/post_api_index_v1_debug_datasource_documentsop.py similarity index 86% rename from src/glean/models/post_api_index_v1_debug_datasource_documentsop.py rename to src/glean/api_client/models/post_api_index_v1_debug_datasource_documentsop.py index aa809f44..12ca7d0e 100644 --- a/src/glean/models/post_api_index_v1_debug_datasource_documentsop.py +++ b/src/glean/api_client/models/post_api_index_v1_debug_datasource_documentsop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .debugdocumentsrequest import DebugDocumentsRequest, DebugDocumentsRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/post_api_index_v1_debug_datasource_statusop.py b/src/glean/api_client/models/post_api_index_v1_debug_datasource_statusop.py similarity index 82% rename from src/glean/models/post_api_index_v1_debug_datasource_statusop.py rename to src/glean/api_client/models/post_api_index_v1_debug_datasource_statusop.py index e69fc87c..ed9f1cdd 100644 --- a/src/glean/models/post_api_index_v1_debug_datasource_statusop.py +++ b/src/glean/api_client/models/post_api_index_v1_debug_datasource_statusop.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/post_api_index_v1_debug_datasource_userop.py b/src/glean/api_client/models/post_api_index_v1_debug_datasource_userop.py similarity index 86% rename from src/glean/models/post_api_index_v1_debug_datasource_userop.py rename to src/glean/api_client/models/post_api_index_v1_debug_datasource_userop.py index f75df688..79c5a3b1 100644 --- a/src/glean/models/post_api_index_v1_debug_datasource_userop.py +++ b/src/glean/api_client/models/post_api_index_v1_debug_datasource_userop.py @@ -2,8 +2,8 @@ from __future__ import annotations from .debuguserrequest import DebugUserRequest, DebugUserRequestTypedDict -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/processalldocumentsrequest.py b/src/glean/api_client/models/processalldocumentsrequest.py similarity index 94% rename from src/glean/models/processalldocumentsrequest.py rename to src/glean/api_client/models/processalldocumentsrequest.py index 6f84b9ce..a0a21dea 100644 --- a/src/glean/models/processalldocumentsrequest.py +++ b/src/glean/api_client/models/processalldocumentsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/processallmembershipsrequest.py b/src/glean/api_client/models/processallmembershipsrequest.py similarity index 94% rename from src/glean/models/processallmembershipsrequest.py rename to src/glean/api_client/models/processallmembershipsrequest.py index ff0558d9..30f48f78 100644 --- a/src/glean/models/processallmembershipsrequest.py +++ b/src/glean/api_client/models/processallmembershipsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/processinghistoryevent.py b/src/glean/api_client/models/processinghistoryevent.py similarity index 95% rename from src/glean/models/processinghistoryevent.py rename to src/glean/api_client/models/processinghistoryevent.py index 776cfbd5..c6e69fcf 100644 --- a/src/glean/models/processinghistoryevent.py +++ b/src/glean/api_client/models/processinghistoryevent.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/prompttemplate.py b/src/glean/api_client/models/prompttemplate.py similarity index 98% rename from src/glean/models/prompttemplate.py rename to src/glean/api_client/models/prompttemplate.py index ad08ed3d..54b225b1 100644 --- a/src/glean/models/prompttemplate.py +++ b/src/glean/api_client/models/prompttemplate.py @@ -8,7 +8,7 @@ from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from .person import Person, PersonTypedDict from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/prompttemplateresult.py b/src/glean/api_client/models/prompttemplateresult.py similarity index 96% rename from src/glean/models/prompttemplateresult.py rename to src/glean/api_client/models/prompttemplateresult.py index 2813c395..6b88984a 100644 --- a/src/glean/models/prompttemplateresult.py +++ b/src/glean/api_client/models/prompttemplateresult.py @@ -4,7 +4,7 @@ from .countinfo import CountInfo, CountInfoTypedDict from .favoriteinfo import FavoriteInfo, FavoriteInfoTypedDict from .prompttemplate import PromptTemplate, PromptTemplateTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/propertydefinition.py b/src/glean/api_client/models/propertydefinition.py similarity index 98% rename from src/glean/models/propertydefinition.py rename to src/glean/api_client/models/propertydefinition.py index 07986fb6..202519a9 100644 --- a/src/glean/models/propertydefinition.py +++ b/src/glean/api_client/models/propertydefinition.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/propertygroup.py b/src/glean/api_client/models/propertygroup.py similarity index 95% rename from src/glean/models/propertygroup.py rename to src/glean/api_client/models/propertygroup.py index 96051c41..c60fd6d4 100644 --- a/src/glean/models/propertygroup.py +++ b/src/glean/api_client/models/propertygroup.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/queryinsight.py b/src/glean/api_client/models/queryinsight.py similarity index 96% rename from src/glean/models/queryinsight.py rename to src/glean/api_client/models/queryinsight.py index 921e54b9..762df192 100644 --- a/src/glean/models/queryinsight.py +++ b/src/glean/api_client/models/queryinsight.py @@ -2,7 +2,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/queryinsightsresponse.py b/src/glean/api_client/models/queryinsightsresponse.py similarity index 97% rename from src/glean/models/queryinsightsresponse.py rename to src/glean/api_client/models/queryinsightsresponse.py index 848432f8..ba290047 100644 --- a/src/glean/models/queryinsightsresponse.py +++ b/src/glean/api_client/models/queryinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .queryinsight import QueryInsight, QueryInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/querysuggestion.py b/src/glean/api_client/models/querysuggestion.py similarity index 98% rename from src/glean/models/querysuggestion.py rename to src/glean/api_client/models/querysuggestion.py index 61fbe090..70b2289c 100644 --- a/src/glean/models/querysuggestion.py +++ b/src/glean/api_client/models/querysuggestion.py @@ -7,7 +7,7 @@ SearchRequestInputDetailsTypedDict, ) from .searchrequestoptions import SearchRequestOptions, SearchRequestOptionsTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/querysuggestionlist.py b/src/glean/api_client/models/querysuggestionlist.py similarity index 93% rename from src/glean/models/querysuggestionlist.py rename to src/glean/api_client/models/querysuggestionlist.py index 0b9127b9..57fa7f92 100644 --- a/src/glean/models/querysuggestionlist.py +++ b/src/glean/api_client/models/querysuggestionlist.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional, TYPE_CHECKING from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/quicklink.py b/src/glean/api_client/models/quicklink.py similarity index 97% rename from src/glean/models/quicklink.py rename to src/glean/api_client/models/quicklink.py index c44892bb..95bd967e 100644 --- a/src/glean/models/quicklink.py +++ b/src/glean/api_client/models/quicklink.py @@ -3,7 +3,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/reaction.py b/src/glean/api_client/models/reaction.py similarity index 95% rename from src/glean/models/reaction.py rename to src/glean/api_client/models/reaction.py index 9612a6ea..ac1bb02b 100644 --- a/src/glean/models/reaction.py +++ b/src/glean/api_client/models/reaction.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/readpermission.py b/src/glean/api_client/models/readpermission.py similarity index 94% rename from src/glean/models/readpermission.py rename to src/glean/api_client/models/readpermission.py index 862421bf..81526247 100644 --- a/src/glean/models/readpermission.py +++ b/src/glean/api_client/models/readpermission.py @@ -2,7 +2,7 @@ from __future__ import annotations from .scopetype import ScopeType -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/recommendationsrequest.py b/src/glean/api_client/models/recommendationsrequest.py similarity index 98% rename from src/glean/models/recommendationsrequest.py rename to src/glean/api_client/models/recommendationsrequest.py index 689b01e5..68b30ada 100644 --- a/src/glean/models/recommendationsrequest.py +++ b/src/glean/api_client/models/recommendationsrequest.py @@ -9,7 +9,7 @@ ) from .sessioninfo import SessionInfo, SessionInfoTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/recommendationsrequestoptions.py b/src/glean/api_client/models/recommendationsrequestoptions.py similarity index 97% rename from src/glean/models/recommendationsrequestoptions.py rename to src/glean/api_client/models/recommendationsrequestoptions.py index 7fecc5d0..f27ef64c 100644 --- a/src/glean/models/recommendationsrequestoptions.py +++ b/src/glean/api_client/models/recommendationsrequestoptions.py @@ -4,7 +4,7 @@ from .document import Document, DocumentTypedDict from .facetfilterset import FacetFilterSet, FacetFilterSetTypedDict from .searchresultprominenceenum import SearchResultProminenceEnum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/referencerange.py b/src/glean/api_client/models/referencerange.py similarity index 96% rename from src/glean/models/referencerange.py rename to src/glean/api_client/models/referencerange.py index 9e5321cf..3d137cef 100644 --- a/src/glean/models/referencerange.py +++ b/src/glean/api_client/models/referencerange.py @@ -3,7 +3,7 @@ from __future__ import annotations from .searchresultsnippet import SearchResultSnippet, SearchResultSnippetTypedDict from .textrange import TextRange, TextRangeTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/relateddocuments.py b/src/glean/api_client/models/relateddocuments.py similarity index 98% rename from src/glean/models/relateddocuments.py rename to src/glean/api_client/models/relateddocuments.py index bc823662..f775ce9c 100644 --- a/src/glean/models/relateddocuments.py +++ b/src/glean/api_client/models/relateddocuments.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/relatedobject.py b/src/glean/api_client/models/relatedobject.py similarity index 96% rename from src/glean/models/relatedobject.py rename to src/glean/api_client/models/relatedobject.py index b3335105..d2d611da 100644 --- a/src/glean/models/relatedobject.py +++ b/src/glean/api_client/models/relatedobject.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/relatedobjectedge.py b/src/glean/api_client/models/relatedobjectedge.py similarity index 90% rename from src/glean/models/relatedobjectedge.py rename to src/glean/api_client/models/relatedobjectedge.py index 468d19b0..2634048d 100644 --- a/src/glean/models/relatedobjectedge.py +++ b/src/glean/api_client/models/relatedobjectedge.py @@ -2,7 +2,7 @@ from __future__ import annotations from .relatedobject import RelatedObject, RelatedObjectTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/relatedquestion.py b/src/glean/api_client/models/relatedquestion.py similarity index 95% rename from src/glean/models/relatedquestion.py rename to src/glean/api_client/models/relatedquestion.py index 5fcc99a8..c362711f 100644 --- a/src/glean/models/relatedquestion.py +++ b/src/glean/api_client/models/relatedquestion.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional, TYPE_CHECKING from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/reminder.py b/src/glean/api_client/models/reminder.py similarity index 97% rename from src/glean/models/reminder.py rename to src/glean/api_client/models/reminder.py index 40ebcd39..1b5b0836 100644 --- a/src/glean/models/reminder.py +++ b/src/glean/api_client/models/reminder.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/reminderrequest.py b/src/glean/api_client/models/reminderrequest.py similarity index 97% rename from src/glean/models/reminderrequest.py rename to src/glean/api_client/models/reminderrequest.py index 27542407..1a941256 100644 --- a/src/glean/models/reminderrequest.py +++ b/src/glean/api_client/models/reminderrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/reportstatusresponse.py b/src/glean/api_client/models/reportstatusresponse.py similarity index 95% rename from src/glean/models/reportstatusresponse.py rename to src/glean/api_client/models/reportstatusresponse.py index 084427b6..7d241231 100644 --- a/src/glean/models/reportstatusresponse.py +++ b/src/glean/api_client/models/reportstatusresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/restrictionfilters.py b/src/glean/api_client/models/restrictionfilters.py similarity index 96% rename from src/glean/models/restrictionfilters.py rename to src/glean/api_client/models/restrictionfilters.py index 3bb6569a..f2db483e 100644 --- a/src/glean/models/restrictionfilters.py +++ b/src/glean/api_client/models/restrictionfilters.py @@ -2,7 +2,7 @@ from __future__ import annotations from .documentspec_union import DocumentSpecUnion, DocumentSpecUnionTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/resultsdescription.py b/src/glean/api_client/models/resultsdescription.py similarity index 95% rename from src/glean/models/resultsdescription.py rename to src/glean/api_client/models/resultsdescription.py index 48741a0c..e74d6464 100644 --- a/src/glean/models/resultsdescription.py +++ b/src/glean/api_client/models/resultsdescription.py @@ -2,7 +2,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/resultsresponse.py b/src/glean/api_client/models/resultsresponse.py similarity index 98% rename from src/glean/models/resultsresponse.py rename to src/glean/api_client/models/resultsresponse.py index 26fc7849..51162563 100644 --- a/src/glean/models/resultsresponse.py +++ b/src/glean/api_client/models/resultsresponse.py @@ -6,7 +6,7 @@ from .searchresult import SearchResult, SearchResultTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict from .structuredresult import StructuredResult, StructuredResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/resulttab.py b/src/glean/api_client/models/resulttab.py similarity index 96% rename from src/glean/models/resulttab.py rename to src/glean/api_client/models/resulttab.py index a89fab72..60271315 100644 --- a/src/glean/models/resulttab.py +++ b/src/glean/api_client/models/resulttab.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/rotatetokenresponse.py b/src/glean/api_client/models/rotatetokenresponse.py similarity index 98% rename from src/glean/models/rotatetokenresponse.py rename to src/glean/api_client/models/rotatetokenresponse.py index d40ecdb7..84bf069b 100644 --- a/src/glean/models/rotatetokenresponse.py +++ b/src/glean/api_client/models/rotatetokenresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/scopetype.py b/src/glean/api_client/models/scopetype.py similarity index 100% rename from src/glean/models/scopetype.py rename to src/glean/api_client/models/scopetype.py diff --git a/src/glean/models/searchagentsrequest.py b/src/glean/api_client/models/searchagentsrequest.py similarity index 91% rename from src/glean/models/searchagentsrequest.py rename to src/glean/api_client/models/searchagentsrequest.py index b69266ed..20fca100 100644 --- a/src/glean/models/searchagentsrequest.py +++ b/src/glean/api_client/models/searchagentsrequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/searchagentsresponse.py b/src/glean/api_client/models/searchagentsresponse.py similarity index 90% rename from src/glean/models/searchagentsresponse.py rename to src/glean/api_client/models/searchagentsresponse.py index b9688acb..8f0f47c4 100644 --- a/src/glean/models/searchagentsresponse.py +++ b/src/glean/api_client/models/searchagentsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .agent import Agent, AgentTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/searchproviderinfo.py b/src/glean/api_client/models/searchproviderinfo.py similarity index 95% rename from src/glean/models/searchproviderinfo.py rename to src/glean/api_client/models/searchproviderinfo.py index a54cc20c..39a4eec6 100644 --- a/src/glean/models/searchproviderinfo.py +++ b/src/glean/api_client/models/searchproviderinfo.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchrequest.py b/src/glean/api_client/models/searchrequest.py similarity index 99% rename from src/glean/models/searchrequest.py rename to src/glean/api_client/models/searchrequest.py index 5747a540..0cb6349a 100644 --- a/src/glean/models/searchrequest.py +++ b/src/glean/api_client/models/searchrequest.py @@ -10,7 +10,7 @@ from .searchrequestoptions import SearchRequestOptions, SearchRequestOptionsTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchrequestinputdetails.py b/src/glean/api_client/models/searchrequestinputdetails.py similarity index 95% rename from src/glean/models/searchrequestinputdetails.py rename to src/glean/api_client/models/searchrequestinputdetails.py index 3290f4ff..57b61118 100644 --- a/src/glean/models/searchrequestinputdetails.py +++ b/src/glean/api_client/models/searchrequestinputdetails.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchrequestoptions.py b/src/glean/api_client/models/searchrequestoptions.py similarity index 99% rename from src/glean/models/searchrequestoptions.py rename to src/glean/api_client/models/searchrequestoptions.py index 76fb4c92..34ce5702 100644 --- a/src/glean/models/searchrequestoptions.py +++ b/src/glean/api_client/models/searchrequestoptions.py @@ -7,7 +7,7 @@ from .facetfilterset import FacetFilterSet, FacetFilterSetTypedDict from .restrictionfilters import RestrictionFilters, RestrictionFiltersTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchresponse.py b/src/glean/api_client/models/searchresponse.py similarity index 99% rename from src/glean/models/searchresponse.py rename to src/glean/api_client/models/searchresponse.py index e9d9f9c5..ef9c3d8b 100644 --- a/src/glean/models/searchresponse.py +++ b/src/glean/api_client/models/searchresponse.py @@ -14,7 +14,7 @@ from .searchresult import SearchResult, SearchResultTypedDict from .sessioninfo import SessionInfo, SessionInfoTypedDict from .structuredresult import StructuredResult, StructuredResultTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchresponsemetadata.py b/src/glean/api_client/models/searchresponsemetadata.py similarity index 98% rename from src/glean/models/searchresponsemetadata.py rename to src/glean/api_client/models/searchresponsemetadata.py index d0ddcee6..d71f08f1 100644 --- a/src/glean/models/searchresponsemetadata.py +++ b/src/glean/api_client/models/searchresponsemetadata.py @@ -5,7 +5,7 @@ from .querysuggestionlist import QuerySuggestionList, QuerySuggestionListTypedDict from .searchwarning import SearchWarning, SearchWarningTypedDict from .textrange import TextRange, TextRangeTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchresult.py b/src/glean/api_client/models/searchresult.py similarity index 99% rename from src/glean/models/searchresult.py rename to src/glean/api_client/models/searchresult.py index a8f70094..51538a55 100644 --- a/src/glean/models/searchresult.py +++ b/src/glean/api_client/models/searchresult.py @@ -3,7 +3,7 @@ from __future__ import annotations from .clustertypeenum import ClusterTypeEnum from .searchresultprominenceenum import SearchResultProminenceEnum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchresultprominenceenum.py b/src/glean/api_client/models/searchresultprominenceenum.py similarity index 100% rename from src/glean/models/searchresultprominenceenum.py rename to src/glean/api_client/models/searchresultprominenceenum.py diff --git a/src/glean/models/searchresultsnippet.py b/src/glean/api_client/models/searchresultsnippet.py similarity index 97% rename from src/glean/models/searchresultsnippet.py rename to src/glean/api_client/models/searchresultsnippet.py index 35845875..de0e3be1 100644 --- a/src/glean/models/searchresultsnippet.py +++ b/src/glean/api_client/models/searchresultsnippet.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/searchwarning.py b/src/glean/api_client/models/searchwarning.py similarity index 97% rename from src/glean/models/searchwarning.py rename to src/glean/api_client/models/searchwarning.py index 7d9f737c..3d775bc2 100644 --- a/src/glean/models/searchwarning.py +++ b/src/glean/api_client/models/searchwarning.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/security.py b/src/glean/api_client/models/security.py similarity index 84% rename from src/glean/models/security.py rename to src/glean/api_client/models/security.py index 6dce037d..da770e94 100644 --- a/src/glean/models/security.py +++ b/src/glean/api_client/models/security.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, SecurityMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, SecurityMetadata from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/seenfeedbackinfo.py b/src/glean/api_client/models/seenfeedbackinfo.py similarity index 94% rename from src/glean/models/seenfeedbackinfo.py rename to src/glean/api_client/models/seenfeedbackinfo.py index d5ec7557..9f43bbd7 100644 --- a/src/glean/models/seenfeedbackinfo.py +++ b/src/glean/api_client/models/seenfeedbackinfo.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/sensitivecontentoptions.py b/src/glean/api_client/models/sensitivecontentoptions.py similarity index 97% rename from src/glean/models/sensitivecontentoptions.py rename to src/glean/api_client/models/sensitivecontentoptions.py index 005d5341..41619cb7 100644 --- a/src/glean/models/sensitivecontentoptions.py +++ b/src/glean/api_client/models/sensitivecontentoptions.py @@ -3,7 +3,7 @@ from __future__ import annotations from .sensitiveexpression import SensitiveExpression, SensitiveExpressionTypedDict from .sensitiveinfotype import SensitiveInfoType, SensitiveInfoTypeTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/sensitiveexpression.py b/src/glean/api_client/models/sensitiveexpression.py similarity index 94% rename from src/glean/models/sensitiveexpression.py rename to src/glean/api_client/models/sensitiveexpression.py index a04db57e..c0bcf68c 100644 --- a/src/glean/models/sensitiveexpression.py +++ b/src/glean/api_client/models/sensitiveexpression.py @@ -2,7 +2,7 @@ from __future__ import annotations from .hotword import Hotword, HotwordTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/sensitiveinfotype.py b/src/glean/api_client/models/sensitiveinfotype.py similarity index 96% rename from src/glean/models/sensitiveinfotype.py rename to src/glean/api_client/models/sensitiveinfotype.py index e9a7b865..1ed61135 100644 --- a/src/glean/models/sensitiveinfotype.py +++ b/src/glean/api_client/models/sensitiveinfotype.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated diff --git a/src/glean/models/sessioninfo.py b/src/glean/api_client/models/sessioninfo.py similarity index 97% rename from src/glean/models/sessioninfo.py rename to src/glean/api_client/models/sessioninfo.py index d9693770..4b1e8a30 100644 --- a/src/glean/models/sessioninfo.py +++ b/src/glean/api_client/models/sessioninfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/share.py b/src/glean/api_client/models/share.py similarity index 96% rename from src/glean/models/share.py rename to src/glean/api_client/models/share.py index a5c4105b..5be4a595 100644 --- a/src/glean/models/share.py +++ b/src/glean/api_client/models/share.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/sharingoptions.py b/src/glean/api_client/models/sharingoptions.py similarity index 98% rename from src/glean/models/sharingoptions.py rename to src/glean/api_client/models/sharingoptions.py index b31841d8..18adf24b 100644 --- a/src/glean/models/sharingoptions.py +++ b/src/glean/api_client/models/sharingoptions.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcut.py b/src/glean/api_client/models/shortcut.py similarity index 99% rename from src/glean/models/shortcut.py rename to src/glean/api_client/models/shortcut.py index 44e8b3f0..6b97d4c7 100644 --- a/src/glean/models/shortcut.py +++ b/src/glean/api_client/models/shortcut.py @@ -3,7 +3,7 @@ from __future__ import annotations from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcuterror.py b/src/glean/api_client/models/shortcuterror.py similarity index 93% rename from src/glean/models/shortcuterror.py rename to src/glean/api_client/models/shortcuterror.py index 9124986d..803c24ed 100644 --- a/src/glean/models/shortcuterror.py +++ b/src/glean/api_client/models/shortcuterror.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcutinsight.py b/src/glean/api_client/models/shortcutinsight.py similarity index 94% rename from src/glean/models/shortcutinsight.py rename to src/glean/api_client/models/shortcutinsight.py index 4bac6cfe..c6ccd538 100644 --- a/src/glean/models/shortcutinsight.py +++ b/src/glean/api_client/models/shortcutinsight.py @@ -3,7 +3,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict from .shortcut import Shortcut, ShortcutTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcutinsightsresponse.py b/src/glean/api_client/models/shortcutinsightsresponse.py similarity index 97% rename from src/glean/models/shortcutinsightsresponse.py rename to src/glean/api_client/models/shortcutinsightsresponse.py index cadf74c3..852e11f2 100644 --- a/src/glean/models/shortcutinsightsresponse.py +++ b/src/glean/api_client/models/shortcutinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .shortcutinsight import ShortcutInsight, ShortcutInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcutmutableproperties.py b/src/glean/api_client/models/shortcutmutableproperties.py similarity index 98% rename from src/glean/models/shortcutmutableproperties.py rename to src/glean/api_client/models/shortcutmutableproperties.py index 8fa8f60b..e19d0a27 100644 --- a/src/glean/models/shortcutmutableproperties.py +++ b/src/glean/api_client/models/shortcutmutableproperties.py @@ -2,7 +2,7 @@ from __future__ import annotations from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/shortcutspaginationmetadata.py b/src/glean/api_client/models/shortcutspaginationmetadata.py similarity index 94% rename from src/glean/models/shortcutspaginationmetadata.py rename to src/glean/api_client/models/shortcutspaginationmetadata.py index 5143f13c..80e5dc5d 100644 --- a/src/glean/models/shortcutspaginationmetadata.py +++ b/src/glean/api_client/models/shortcutspaginationmetadata.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/socialnetwork.py b/src/glean/api_client/models/socialnetwork.py similarity index 94% rename from src/glean/models/socialnetwork.py rename to src/glean/api_client/models/socialnetwork.py index 94c733b7..e9c5173b 100644 --- a/src/glean/models/socialnetwork.py +++ b/src/glean/api_client/models/socialnetwork.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/socialnetworkdefinition.py b/src/glean/api_client/models/socialnetworkdefinition.py similarity index 95% rename from src/glean/models/socialnetworkdefinition.py rename to src/glean/api_client/models/socialnetworkdefinition.py index 2d6516e5..48f96a67 100644 --- a/src/glean/models/socialnetworkdefinition.py +++ b/src/glean/api_client/models/socialnetworkdefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/sortoptions.py b/src/glean/api_client/models/sortoptions.py similarity index 93% rename from src/glean/models/sortoptions.py rename to src/glean/api_client/models/sortoptions.py index 79c4ed72..4813522f 100644 --- a/src/glean/models/sortoptions.py +++ b/src/glean/api_client/models/sortoptions.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredlink.py b/src/glean/api_client/models/structuredlink.py similarity index 95% rename from src/glean/models/structuredlink.py rename to src/glean/api_client/models/structuredlink.py index a8985e92..486038a7 100644 --- a/src/glean/models/structuredlink.py +++ b/src/glean/api_client/models/structuredlink.py @@ -2,7 +2,7 @@ from __future__ import annotations from .iconconfig import IconConfig, IconConfigTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredlocation.py b/src/glean/api_client/models/structuredlocation.py similarity index 97% rename from src/glean/models/structuredlocation.py rename to src/glean/api_client/models/structuredlocation.py index 4874e6fb..55300568 100644 --- a/src/glean/models/structuredlocation.py +++ b/src/glean/api_client/models/structuredlocation.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredresult.py b/src/glean/api_client/models/structuredresult.py similarity index 99% rename from src/glean/models/structuredresult.py rename to src/glean/api_client/models/structuredresult.py index d63ad335..66222923 100644 --- a/src/glean/models/structuredresult.py +++ b/src/glean/api_client/models/structuredresult.py @@ -4,7 +4,7 @@ from .appresult import AppResult, AppResultTypedDict from .disambiguation import Disambiguation, DisambiguationTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredtext.py b/src/glean/api_client/models/structuredtext.py similarity index 95% rename from src/glean/models/structuredtext.py rename to src/glean/api_client/models/structuredtext.py index 6a68e687..2debe614 100644 --- a/src/glean/models/structuredtext.py +++ b/src/glean/api_client/models/structuredtext.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredtextitem.py b/src/glean/api_client/models/structuredtextitem.py similarity index 96% rename from src/glean/models/structuredtextitem.py rename to src/glean/api_client/models/structuredtextitem.py index 3b954e5a..a473e147 100644 --- a/src/glean/models/structuredtextitem.py +++ b/src/glean/api_client/models/structuredtextitem.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/structuredtextmutableproperties.py b/src/glean/api_client/models/structuredtextmutableproperties.py similarity index 86% rename from src/glean/models/structuredtextmutableproperties.py rename to src/glean/api_client/models/structuredtextmutableproperties.py index e82a65fc..4a55f087 100644 --- a/src/glean/models/structuredtextmutableproperties.py +++ b/src/glean/api_client/models/structuredtextmutableproperties.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/summarizerequest.py b/src/glean/api_client/models/summarizerequest.py similarity index 97% rename from src/glean/models/summarizerequest.py rename to src/glean/api_client/models/summarizerequest.py index 5a963a46..367ac2cf 100644 --- a/src/glean/models/summarizerequest.py +++ b/src/glean/api_client/models/summarizerequest.py @@ -3,7 +3,7 @@ from __future__ import annotations from .documentspec_union import DocumentSpecUnion, DocumentSpecUnionTypedDict from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/summarizeresponse.py b/src/glean/api_client/models/summarizeresponse.py similarity index 95% rename from src/glean/models/summarizeresponse.py rename to src/glean/api_client/models/summarizeresponse.py index 8cd9e1c0..d92dcee1 100644 --- a/src/glean/models/summarizeresponse.py +++ b/src/glean/api_client/models/summarizeresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .summary import Summary, SummaryTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/summary.py b/src/glean/api_client/models/summary.py similarity index 93% rename from src/glean/models/summary.py rename to src/glean/api_client/models/summary.py index b1dd9646..0ba4d7c7 100644 --- a/src/glean/models/summary.py +++ b/src/glean/api_client/models/summary.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/team.py b/src/glean/api_client/models/team.py similarity index 99% rename from src/glean/models/team.py rename to src/glean/api_client/models/team.py index 4dde941c..e6004910 100644 --- a/src/glean/models/team.py +++ b/src/glean/api_client/models/team.py @@ -7,7 +7,7 @@ from .teamemail import TeamEmail, TeamEmailTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/teamemail.py b/src/glean/api_client/models/teamemail.py similarity index 93% rename from src/glean/models/teamemail.py rename to src/glean/api_client/models/teamemail.py index 56223c58..8bdb438f 100644 --- a/src/glean/models/teamemail.py +++ b/src/glean/api_client/models/teamemail.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/teaminfodefinition.py b/src/glean/api_client/models/teaminfodefinition.py similarity index 98% rename from src/glean/models/teaminfodefinition.py rename to src/glean/api_client/models/teaminfodefinition.py index 9d4ae746..675b9b47 100644 --- a/src/glean/models/teaminfodefinition.py +++ b/src/glean/api_client/models/teaminfodefinition.py @@ -8,7 +8,7 @@ from .datasourceprofile import DatasourceProfile, DatasourceProfileTypedDict from .teamemail import TeamEmail, TeamEmailTypedDict from .teammember import TeamMember, TeamMemberTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/teammember.py b/src/glean/api_client/models/teammember.py similarity index 95% rename from src/glean/models/teammember.py rename to src/glean/api_client/models/teammember.py index 5b1905c8..a4f6d272 100644 --- a/src/glean/models/teammember.py +++ b/src/glean/api_client/models/teammember.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import date -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/textrange.py b/src/glean/api_client/models/textrange.py similarity index 97% rename from src/glean/models/textrange.py rename to src/glean/api_client/models/textrange.py index 88507a28..8cf75c00 100644 --- a/src/glean/models/textrange.py +++ b/src/glean/api_client/models/textrange.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/thumbnail.py b/src/glean/api_client/models/thumbnail.py similarity index 94% rename from src/glean/models/thumbnail.py rename to src/glean/api_client/models/thumbnail.py index 9cddc208..0b139d49 100644 --- a/src/glean/models/thumbnail.py +++ b/src/glean/api_client/models/thumbnail.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/timeinterval.py b/src/glean/api_client/models/timeinterval.py similarity index 92% rename from src/glean/models/timeinterval.py rename to src/glean/api_client/models/timeinterval.py index 2dc0d8f4..b9dc81f9 100644 --- a/src/glean/models/timeinterval.py +++ b/src/glean/api_client/models/timeinterval.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/timepoint.py b/src/glean/api_client/models/timepoint.py similarity index 94% rename from src/glean/models/timepoint.py rename to src/glean/api_client/models/timepoint.py index 99665fd8..cb67cc9c 100644 --- a/src/glean/models/timepoint.py +++ b/src/glean/api_client/models/timepoint.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/timerange.py b/src/glean/api_client/models/timerange.py similarity index 94% rename from src/glean/models/timerange.py rename to src/glean/api_client/models/timerange.py index a4aec9af..3a7d2489 100644 --- a/src/glean/models/timerange.py +++ b/src/glean/api_client/models/timerange.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import datetime -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/tool.py b/src/glean/api_client/models/tool.py similarity index 97% rename from src/glean/models/tool.py rename to src/glean/api_client/models/tool.py index 610e63ec..45a31d22 100644 --- a/src/glean/models/tool.py +++ b/src/glean/api_client/models/tool.py @@ -3,7 +3,7 @@ from __future__ import annotations from .toolparameter import ToolParameter, ToolParameterTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/toolinfo.py b/src/glean/api_client/models/toolinfo.py similarity index 95% rename from src/glean/models/toolinfo.py rename to src/glean/api_client/models/toolinfo.py index 64819df0..672bba86 100644 --- a/src/glean/models/toolinfo.py +++ b/src/glean/api_client/models/toolinfo.py @@ -3,7 +3,7 @@ from __future__ import annotations from .toolmetadata import ToolMetadata, ToolMetadataTypedDict from .writeactionparameter import WriteActionParameter, WriteActionParameterTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/toolmetadata.py b/src/glean/api_client/models/toolmetadata.py similarity index 99% rename from src/glean/models/toolmetadata.py rename to src/glean/api_client/models/toolmetadata.py index 12f55292..5d7116eb 100644 --- a/src/glean/models/toolmetadata.py +++ b/src/glean/api_client/models/toolmetadata.py @@ -6,7 +6,7 @@ from .personobject import PersonObject, PersonObjectTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/toolparameter.py b/src/glean/api_client/models/toolparameter.py similarity index 97% rename from src/glean/models/toolparameter.py rename to src/glean/api_client/models/toolparameter.py index 18403a3e..91b81ce8 100644 --- a/src/glean/models/toolparameter.py +++ b/src/glean/api_client/models/toolparameter.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/toolscallparameter.py b/src/glean/api_client/models/toolscallparameter.py similarity index 95% rename from src/glean/models/toolscallparameter.py rename to src/glean/api_client/models/toolscallparameter.py index ebb02a02..132fd96f 100644 --- a/src/glean/models/toolscallparameter.py +++ b/src/glean/api_client/models/toolscallparameter.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Dict, List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/toolscallrequest.py b/src/glean/api_client/models/toolscallrequest.py similarity index 94% rename from src/glean/models/toolscallrequest.py rename to src/glean/api_client/models/toolscallrequest.py index 2c5854a6..235e9ae1 100644 --- a/src/glean/models/toolscallrequest.py +++ b/src/glean/api_client/models/toolscallrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .toolscallparameter import ToolsCallParameter, ToolsCallParameterTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Dict from typing_extensions import TypedDict diff --git a/src/glean/models/toolscallresponse.py b/src/glean/api_client/models/toolscallresponse.py similarity index 93% rename from src/glean/models/toolscallresponse.py rename to src/glean/api_client/models/toolscallresponse.py index aa6ca3af..797f3f57 100644 --- a/src/glean/models/toolscallresponse.py +++ b/src/glean/api_client/models/toolscallresponse.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Any, Dict, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/toolslistresponse.py b/src/glean/api_client/models/toolslistresponse.py similarity index 89% rename from src/glean/models/toolslistresponse.py rename to src/glean/api_client/models/toolslistresponse.py index 4990ebbb..f544d750 100644 --- a/src/glean/models/toolslistresponse.py +++ b/src/glean/api_client/models/toolslistresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .tool import Tool, ToolTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/ugctype.py b/src/glean/api_client/models/ugctype.py similarity index 100% rename from src/glean/models/ugctype.py rename to src/glean/api_client/models/ugctype.py diff --git a/src/glean/models/unpin.py b/src/glean/api_client/models/unpin.py similarity index 90% rename from src/glean/models/unpin.py rename to src/glean/api_client/models/unpin.py index aa8cb3ff..a4c49e40 100644 --- a/src/glean/models/unpin.py +++ b/src/glean/api_client/models/unpin.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/updateannouncementrequest.py b/src/glean/api_client/models/updateannouncementrequest.py similarity index 99% rename from src/glean/models/updateannouncementrequest.py rename to src/glean/api_client/models/updateannouncementrequest.py index 48bdf880..21c7532d 100644 --- a/src/glean/models/updateannouncementrequest.py +++ b/src/glean/api_client/models/updateannouncementrequest.py @@ -6,7 +6,7 @@ from .thumbnail import Thumbnail, ThumbnailTypedDict from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updatedlpconfigrequest.py b/src/glean/api_client/models/updatedlpconfigrequest.py similarity index 94% rename from src/glean/models/updatedlpconfigrequest.py rename to src/glean/api_client/models/updatedlpconfigrequest.py index 7ee6bf44..c6066cc3 100644 --- a/src/glean/models/updatedlpconfigrequest.py +++ b/src/glean/api_client/models/updatedlpconfigrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpconfig import DlpConfig, DlpConfigTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/updatedlpconfigresponse.py b/src/glean/api_client/models/updatedlpconfigresponse.py similarity index 93% rename from src/glean/models/updatedlpconfigresponse.py rename to src/glean/api_client/models/updatedlpconfigresponse.py index e8d1e418..ff266a09 100644 --- a/src/glean/models/updatedlpconfigresponse.py +++ b/src/glean/api_client/models/updatedlpconfigresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpsimpleresult import DlpSimpleResult -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updatedlpreportrequest.py b/src/glean/api_client/models/updatedlpreportrequest.py similarity index 97% rename from src/glean/models/updatedlpreportrequest.py rename to src/glean/api_client/models/updatedlpreportrequest.py index 022d1dfd..d7ca51b1 100644 --- a/src/glean/models/updatedlpreportrequest.py +++ b/src/glean/api_client/models/updatedlpreportrequest.py @@ -4,7 +4,7 @@ from .dlpconfig import DlpConfig, DlpConfigTypedDict from .dlpfrequency import DlpFrequency from .dlpreportstatus import DlpReportStatus -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updatedlpreportresponse.py b/src/glean/api_client/models/updatedlpreportresponse.py similarity index 90% rename from src/glean/models/updatedlpreportresponse.py rename to src/glean/api_client/models/updatedlpreportresponse.py index bba09661..ce3171a3 100644 --- a/src/glean/models/updatedlpreportresponse.py +++ b/src/glean/api_client/models/updatedlpreportresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .dlpsimpleresult import DlpSimpleResult -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/updatedocumentvisibilityoverridesrequest.py b/src/glean/api_client/models/updatedocumentvisibilityoverridesrequest.py similarity index 94% rename from src/glean/models/updatedocumentvisibilityoverridesrequest.py rename to src/glean/api_client/models/updatedocumentvisibilityoverridesrequest.py index 87721c58..fd268508 100644 --- a/src/glean/models/updatedocumentvisibilityoverridesrequest.py +++ b/src/glean/api_client/models/updatedocumentvisibilityoverridesrequest.py @@ -5,7 +5,7 @@ DocumentVisibilityOverride, DocumentVisibilityOverrideTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updatedocumentvisibilityoverridesresponse.py b/src/glean/api_client/models/updatedocumentvisibilityoverridesresponse.py similarity index 94% rename from src/glean/models/updatedocumentvisibilityoverridesresponse.py rename to src/glean/api_client/models/updatedocumentvisibilityoverridesresponse.py index d9487918..e2a3e0fd 100644 --- a/src/glean/models/updatedocumentvisibilityoverridesresponse.py +++ b/src/glean/api_client/models/updatedocumentvisibilityoverridesresponse.py @@ -5,7 +5,7 @@ DocumentVisibilityUpdateResult, DocumentVisibilityUpdateResultTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/updatepermissionsrequest.py b/src/glean/api_client/models/updatepermissionsrequest.py similarity index 97% rename from src/glean/models/updatepermissionsrequest.py rename to src/glean/api_client/models/updatepermissionsrequest.py index b7c267ce..c8040633 100644 --- a/src/glean/models/updatepermissionsrequest.py +++ b/src/glean/api_client/models/updatepermissionsrequest.py @@ -5,7 +5,7 @@ DocumentPermissionsDefinition, DocumentPermissionsDefinitionTypedDict, ) -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updatepolicyop.py b/src/glean/api_client/models/updatepolicyop.py similarity index 85% rename from src/glean/models/updatepolicyop.py rename to src/glean/api_client/models/updatepolicyop.py index 145df42f..b34f7fd4 100644 --- a/src/glean/models/updatepolicyop.py +++ b/src/glean/api_client/models/updatepolicyop.py @@ -5,8 +5,8 @@ UpdateDlpReportRequest, UpdateDlpReportRequestTypedDict, ) -from glean.types import BaseModel -from glean.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from typing_extensions import Annotated, TypedDict diff --git a/src/glean/models/updateshortcutrequest.py b/src/glean/api_client/models/updateshortcutrequest.py similarity index 98% rename from src/glean/models/updateshortcutrequest.py rename to src/glean/api_client/models/updateshortcutrequest.py index 1e4cf868..ef0bd710 100644 --- a/src/glean/models/updateshortcutrequest.py +++ b/src/glean/api_client/models/updateshortcutrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .userrolespecification import UserRoleSpecification, UserRoleSpecificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/updateshortcutresponse.py b/src/glean/api_client/models/updateshortcutresponse.py similarity index 92% rename from src/glean/models/updateshortcutresponse.py rename to src/glean/api_client/models/updateshortcutresponse.py index e3fef19a..c7798e9a 100644 --- a/src/glean/models/updateshortcutresponse.py +++ b/src/glean/api_client/models/updateshortcutresponse.py @@ -3,7 +3,7 @@ from __future__ import annotations from .shortcut import Shortcut, ShortcutTypedDict from .shortcuterror import ShortcutError, ShortcutErrorTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/uploadchatfilesop.py b/src/glean/api_client/models/uploadchatfilesop.py similarity index 89% rename from src/glean/models/uploadchatfilesop.py rename to src/glean/api_client/models/uploadchatfilesop.py index 35aacc03..8659c6a0 100644 --- a/src/glean/models/uploadchatfilesop.py +++ b/src/glean/api_client/models/uploadchatfilesop.py @@ -5,8 +5,8 @@ UploadChatFilesRequest, UploadChatFilesRequestTypedDict, ) -from glean.types import BaseModel -from glean.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/uploadchatfilesrequest.py b/src/glean/api_client/models/uploadchatfilesrequest.py similarity index 90% rename from src/glean/models/uploadchatfilesrequest.py rename to src/glean/api_client/models/uploadchatfilesrequest.py index 4417015c..e8aad89e 100644 --- a/src/glean/models/uploadchatfilesrequest.py +++ b/src/glean/api_client/models/uploadchatfilesrequest.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel -from glean.utils import FieldMetadata, MultipartFormMetadata +from glean.api_client.types import BaseModel +from glean.api_client.utils import FieldMetadata, MultipartFormMetadata import io import pydantic from typing import IO, List, Optional, Union diff --git a/src/glean/models/uploadchatfilesresponse.py b/src/glean/api_client/models/uploadchatfilesresponse.py similarity index 91% rename from src/glean/models/uploadchatfilesresponse.py rename to src/glean/api_client/models/uploadchatfilesresponse.py index dda7cc0c..976f3665 100644 --- a/src/glean/models/uploadchatfilesresponse.py +++ b/src/glean/api_client/models/uploadchatfilesresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .chatfile import ChatFile, ChatFileTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/uploadshortcutsrequest.py b/src/glean/api_client/models/uploadshortcutsrequest.py similarity index 97% rename from src/glean/models/uploadshortcutsrequest.py rename to src/glean/api_client/models/uploadshortcutsrequest.py index 619fe38b..9043d477 100644 --- a/src/glean/models/uploadshortcutsrequest.py +++ b/src/glean/api_client/models/uploadshortcutsrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from .indexingshortcut import IndexingShortcut, IndexingShortcutTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/uploadstatusenum.py b/src/glean/api_client/models/uploadstatusenum.py similarity index 100% rename from src/glean/models/uploadstatusenum.py rename to src/glean/api_client/models/uploadstatusenum.py diff --git a/src/glean/models/user.py b/src/glean/api_client/models/user.py similarity index 95% rename from src/glean/models/user.py rename to src/glean/api_client/models/user.py index 572b4c60..733b3be3 100644 --- a/src/glean/models/user.py +++ b/src/glean/api_client/models/user.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/useractivity.py b/src/glean/api_client/models/useractivity.py similarity index 96% rename from src/glean/models/useractivity.py rename to src/glean/api_client/models/useractivity.py index 9832e321..462905bb 100644 --- a/src/glean/models/useractivity.py +++ b/src/glean/api_client/models/useractivity.py @@ -4,7 +4,7 @@ from .countinfo import CountInfo, CountInfoTypedDict from .person import Person, PersonTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/useractivityinsight.py b/src/glean/api_client/models/useractivityinsight.py similarity index 96% rename from src/glean/models/useractivityinsight.py rename to src/glean/api_client/models/useractivityinsight.py index 4529efa9..309f88a6 100644 --- a/src/glean/models/useractivityinsight.py +++ b/src/glean/api_client/models/useractivityinsight.py @@ -4,7 +4,7 @@ from .countinfo import CountInfo, CountInfoTypedDict from .person import Person, PersonTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/usergeneratedcontentid.py b/src/glean/api_client/models/usergeneratedcontentid.py similarity index 90% rename from src/glean/models/usergeneratedcontentid.py rename to src/glean/api_client/models/usergeneratedcontentid.py index cbd50abb..c5655d64 100644 --- a/src/glean/models/usergeneratedcontentid.py +++ b/src/glean/api_client/models/usergeneratedcontentid.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/userinsightsresponse.py b/src/glean/api_client/models/userinsightsresponse.py similarity index 98% rename from src/glean/models/userinsightsresponse.py rename to src/glean/api_client/models/userinsightsresponse.py index 487800d4..7e01f2ba 100644 --- a/src/glean/models/userinsightsresponse.py +++ b/src/glean/api_client/models/userinsightsresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/userreferencedefinition.py b/src/glean/api_client/models/userreferencedefinition.py similarity index 95% rename from src/glean/models/userreferencedefinition.py rename to src/glean/api_client/models/userreferencedefinition.py index 911a685d..531dd213 100644 --- a/src/glean/models/userreferencedefinition.py +++ b/src/glean/api_client/models/userreferencedefinition.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/userrole.py b/src/glean/api_client/models/userrole.py similarity index 100% rename from src/glean/models/userrole.py rename to src/glean/api_client/models/userrole.py diff --git a/src/glean/models/userrolespecification.py b/src/glean/api_client/models/userrolespecification.py similarity index 95% rename from src/glean/models/userrolespecification.py rename to src/glean/api_client/models/userrolespecification.py index 6e7afb1c..2330faaf 100644 --- a/src/glean/models/userrolespecification.py +++ b/src/glean/api_client/models/userrolespecification.py @@ -4,7 +4,7 @@ from .documentspec_union import DocumentSpecUnion, DocumentSpecUnionTypedDict from .group import Group, GroupTypedDict from .userrole import UserRole -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/userstatusresponse.py b/src/glean/api_client/models/userstatusresponse.py similarity index 96% rename from src/glean/models/userstatusresponse.py rename to src/glean/api_client/models/userstatusresponse.py index f7154073..c9189228 100644 --- a/src/glean/models/userstatusresponse.py +++ b/src/glean/api_client/models/userstatusresponse.py @@ -2,7 +2,7 @@ from __future__ import annotations from .uploadstatusenum import UploadStatusEnum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/userviewinfo.py b/src/glean/api_client/models/userviewinfo.py similarity index 95% rename from src/glean/models/userviewinfo.py rename to src/glean/api_client/models/userviewinfo.py index bf2ad759..a8b4831f 100644 --- a/src/glean/models/userviewinfo.py +++ b/src/glean/api_client/models/userviewinfo.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/verification.py b/src/glean/api_client/models/verification.py similarity index 94% rename from src/glean/models/verification.py rename to src/glean/api_client/models/verification.py index a949e449..503085a1 100644 --- a/src/glean/models/verification.py +++ b/src/glean/api_client/models/verification.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional, TYPE_CHECKING from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/verificationfeed.py b/src/glean/api_client/models/verificationfeed.py similarity index 93% rename from src/glean/models/verificationfeed.py rename to src/glean/api_client/models/verificationfeed.py index d1a25c6a..e2ac050e 100644 --- a/src/glean/models/verificationfeed.py +++ b/src/glean/api_client/models/verificationfeed.py @@ -2,7 +2,7 @@ from __future__ import annotations from .verification import Verification, VerificationTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import List, Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/verificationmetadata.py b/src/glean/api_client/models/verificationmetadata.py similarity index 98% rename from src/glean/models/verificationmetadata.py rename to src/glean/api_client/models/verificationmetadata.py index 825f9c87..14a25e02 100644 --- a/src/glean/models/verificationmetadata.py +++ b/src/glean/api_client/models/verificationmetadata.py @@ -2,7 +2,7 @@ from __future__ import annotations from .countinfo import CountInfo, CountInfoTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional, TYPE_CHECKING from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/verifyrequest.py b/src/glean/api_client/models/verifyrequest.py similarity index 94% rename from src/glean/models/verifyrequest.py rename to src/glean/api_client/models/verifyrequest.py index 256e4390..a06f5f05 100644 --- a/src/glean/models/verifyrequest.py +++ b/src/glean/api_client/models/verifyrequest.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/viewerinfo.py b/src/glean/api_client/models/viewerinfo.py similarity index 96% rename from src/glean/models/viewerinfo.py rename to src/glean/api_client/models/viewerinfo.py index 696f98c4..1854c828 100644 --- a/src/glean/models/viewerinfo.py +++ b/src/glean/api_client/models/viewerinfo.py @@ -3,7 +3,7 @@ from __future__ import annotations from datetime import datetime from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated diff --git a/src/glean/models/workflow.py b/src/glean/api_client/models/workflow.py similarity index 97% rename from src/glean/models/workflow.py rename to src/glean/api_client/models/workflow.py index 37e5bfa8..ad1c3565 100644 --- a/src/glean/models/workflow.py +++ b/src/glean/api_client/models/workflow.py @@ -3,7 +3,7 @@ from __future__ import annotations from .objectpermissions import ObjectPermissions, ObjectPermissionsTypedDict from .person import Person, PersonTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/workflowfeedbackinfo.py b/src/glean/api_client/models/workflowfeedbackinfo.py similarity index 94% rename from src/glean/models/workflowfeedbackinfo.py rename to src/glean/api_client/models/workflowfeedbackinfo.py index 7f8f3548..5326dfe3 100644 --- a/src/glean/models/workflowfeedbackinfo.py +++ b/src/glean/api_client/models/workflowfeedbackinfo.py @@ -2,7 +2,7 @@ from __future__ import annotations from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing import Optional from typing_extensions import NotRequired, TypedDict diff --git a/src/glean/models/workflowresult.py b/src/glean/api_client/models/workflowresult.py similarity index 88% rename from src/glean/models/workflowresult.py rename to src/glean/api_client/models/workflowresult.py index ce709d1f..b3e81a84 100644 --- a/src/glean/models/workflowresult.py +++ b/src/glean/api_client/models/workflowresult.py @@ -2,7 +2,7 @@ from __future__ import annotations from .workflow import Workflow, WorkflowTypedDict -from glean.types import BaseModel +from glean.api_client.types import BaseModel from typing_extensions import TypedDict diff --git a/src/glean/models/writeactionparameter.py b/src/glean/api_client/models/writeactionparameter.py similarity index 97% rename from src/glean/models/writeactionparameter.py rename to src/glean/api_client/models/writeactionparameter.py index 3f649a81..e425de28 100644 --- a/src/glean/models/writeactionparameter.py +++ b/src/glean/api_client/models/writeactionparameter.py @@ -3,7 +3,7 @@ from __future__ import annotations from .possiblevalue import PossibleValue, PossibleValueTypedDict from enum import Enum -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/models/writepermission.py b/src/glean/api_client/models/writepermission.py similarity index 97% rename from src/glean/models/writepermission.py rename to src/glean/api_client/models/writepermission.py index 780b3213..d7511267 100644 --- a/src/glean/models/writepermission.py +++ b/src/glean/api_client/models/writepermission.py @@ -2,7 +2,7 @@ from __future__ import annotations from .scopetype import ScopeType -from glean.types import BaseModel +from glean.api_client.types import BaseModel import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict diff --git a/src/glean/people.py b/src/glean/api_client/people.py similarity index 99% rename from src/glean/people.py rename to src/glean/api_client/people.py index aff644ce..8284dfb1 100644 --- a/src/glean/people.py +++ b/src/glean/api_client/people.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union from typing_extensions import deprecated diff --git a/src/glean/pins.py b/src/glean/api_client/pins.py similarity index 99% rename from src/glean/pins.py rename to src/glean/api_client/pins.py index ab373024..23c278aa 100644 --- a/src/glean/pins.py +++ b/src/glean/api_client/pins.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional, Union, cast diff --git a/src/glean/policies.py b/src/glean/api_client/policies.py similarity index 99% rename from src/glean/policies.py rename to src/glean/api_client/policies.py index 2c644408..8f91362e 100644 --- a/src/glean/policies.py +++ b/src/glean/api_client/policies.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional, Union, cast diff --git a/src/glean/py.typed b/src/glean/api_client/py.typed similarity index 100% rename from src/glean/py.typed rename to src/glean/api_client/py.typed diff --git a/src/glean/reports.py b/src/glean/api_client/reports.py similarity index 99% rename from src/glean/reports.py rename to src/glean/api_client/reports.py index 4f2b2001..3e59cb4e 100644 --- a/src/glean/reports.py +++ b/src/glean/api_client/reports.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Mapping, Optional, Union, cast diff --git a/src/glean/sdk.py b/src/glean/api_client/sdk.py similarity index 95% rename from src/glean/sdk.py rename to src/glean/api_client/sdk.py index c7df6ff4..244943ec 100644 --- a/src/glean/sdk.py +++ b/src/glean/api_client/sdk.py @@ -5,17 +5,17 @@ from .sdkconfiguration import SDKConfiguration from .utils.logger import Logger, get_default_logger from .utils.retries import RetryConfig -from glean import models, utils -from glean._hooks import SDKHooks -from glean.types import OptionalNullable, UNSET +from glean.api_client import models, utils +from glean.api_client._hooks import SDKHooks +from glean.api_client.types import OptionalNullable, UNSET import httpx import importlib from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union, cast import weakref if TYPE_CHECKING: - from glean.client import Client - from glean.indexing import Indexing + from glean.api_client.client import Client + from glean.api_client.indexing import Indexing class Glean(BaseSDK): @@ -41,8 +41,8 @@ class Glean(BaseSDK): client: "Client" indexing: "Indexing" _sub_sdk_map = { - "client": ("glean.client", "Client"), - "indexing": ("glean.indexing", "Indexing"), + "client": ("glean.api_client.client", "Client"), + "indexing": ("glean.api_client.indexing", "Indexing"), } def __init__( diff --git a/src/glean/sdkconfiguration.py b/src/glean/api_client/sdkconfiguration.py similarity index 94% rename from src/glean/sdkconfiguration.py rename to src/glean/api_client/sdkconfiguration.py index b8510c91..22e0a4ea 100644 --- a/src/glean/sdkconfiguration.py +++ b/src/glean/api_client/sdkconfiguration.py @@ -9,8 +9,8 @@ from .httpclient import AsyncHttpClient, HttpClient from .utils import Logger, RetryConfig, remove_suffix from dataclasses import dataclass, field -from glean import models -from glean.types import OptionalNullable, UNSET +from glean.api_client import models +from glean.api_client.types import OptionalNullable, UNSET from pydantic import Field from typing import Callable, Dict, List, Optional, Tuple, Union diff --git a/src/glean/search.py b/src/glean/api_client/search.py similarity index 99% rename from src/glean/search.py rename to src/glean/api_client/search.py index ba847245..f94dfbc5 100644 --- a/src/glean/search.py +++ b/src/glean/api_client/search.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from datetime import datetime -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Any, List, Mapping, Optional, Union, cast diff --git a/src/glean/tools.py b/src/glean/api_client/tools.py similarity index 98% rename from src/glean/tools.py rename to src/glean/api_client/tools.py index 21468a56..a4cb5974 100644 --- a/src/glean/tools.py +++ b/src/glean/api_client/tools.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import Dict, List, Mapping, Optional, Union diff --git a/src/glean/types/__init__.py b/src/glean/api_client/types/__init__.py similarity index 100% rename from src/glean/types/__init__.py rename to src/glean/api_client/types/__init__.py diff --git a/src/glean/types/basemodel.py b/src/glean/api_client/types/basemodel.py similarity index 100% rename from src/glean/types/basemodel.py rename to src/glean/api_client/types/basemodel.py diff --git a/src/glean/utils/__init__.py b/src/glean/api_client/utils/__init__.py similarity index 100% rename from src/glean/utils/__init__.py rename to src/glean/api_client/utils/__init__.py diff --git a/src/glean/utils/annotations.py b/src/glean/api_client/utils/annotations.py similarity index 100% rename from src/glean/utils/annotations.py rename to src/glean/api_client/utils/annotations.py diff --git a/src/glean/utils/datetimes.py b/src/glean/api_client/utils/datetimes.py similarity index 100% rename from src/glean/utils/datetimes.py rename to src/glean/api_client/utils/datetimes.py diff --git a/src/glean/utils/enums.py b/src/glean/api_client/utils/enums.py similarity index 100% rename from src/glean/utils/enums.py rename to src/glean/api_client/utils/enums.py diff --git a/src/glean/utils/eventstreaming.py b/src/glean/api_client/utils/eventstreaming.py similarity index 100% rename from src/glean/utils/eventstreaming.py rename to src/glean/api_client/utils/eventstreaming.py diff --git a/src/glean/utils/forms.py b/src/glean/api_client/utils/forms.py similarity index 100% rename from src/glean/utils/forms.py rename to src/glean/api_client/utils/forms.py diff --git a/src/glean/utils/headers.py b/src/glean/api_client/utils/headers.py similarity index 100% rename from src/glean/utils/headers.py rename to src/glean/api_client/utils/headers.py diff --git a/src/glean/utils/logger.py b/src/glean/api_client/utils/logger.py similarity index 100% rename from src/glean/utils/logger.py rename to src/glean/api_client/utils/logger.py diff --git a/src/glean/utils/metadata.py b/src/glean/api_client/utils/metadata.py similarity index 100% rename from src/glean/utils/metadata.py rename to src/glean/api_client/utils/metadata.py diff --git a/src/glean/utils/queryparams.py b/src/glean/api_client/utils/queryparams.py similarity index 100% rename from src/glean/utils/queryparams.py rename to src/glean/api_client/utils/queryparams.py diff --git a/src/glean/utils/requestbodies.py b/src/glean/api_client/utils/requestbodies.py similarity index 100% rename from src/glean/utils/requestbodies.py rename to src/glean/api_client/utils/requestbodies.py diff --git a/src/glean/utils/retries.py b/src/glean/api_client/utils/retries.py similarity index 100% rename from src/glean/utils/retries.py rename to src/glean/api_client/utils/retries.py diff --git a/src/glean/utils/security.py b/src/glean/api_client/utils/security.py similarity index 100% rename from src/glean/utils/security.py rename to src/glean/api_client/utils/security.py diff --git a/src/glean/utils/serializers.py b/src/glean/api_client/utils/serializers.py similarity index 100% rename from src/glean/utils/serializers.py rename to src/glean/api_client/utils/serializers.py diff --git a/src/glean/utils/url.py b/src/glean/api_client/utils/url.py similarity index 100% rename from src/glean/utils/url.py rename to src/glean/api_client/utils/url.py diff --git a/src/glean/utils/values.py b/src/glean/api_client/utils/values.py similarity index 100% rename from src/glean/utils/values.py rename to src/glean/api_client/utils/values.py diff --git a/src/glean/visibilityoverrides.py b/src/glean/api_client/visibilityoverrides.py similarity index 98% rename from src/glean/visibilityoverrides.py rename to src/glean/api_client/visibilityoverrides.py index 83124e76..08649c2a 100644 --- a/src/glean/visibilityoverrides.py +++ b/src/glean/api_client/visibilityoverrides.py @@ -1,10 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK -from glean import errors, models, utils -from glean._hooks import HookContext -from glean.types import BaseModel, OptionalNullable, UNSET -from glean.utils import get_security_from_env +from glean.api_client import errors, models, utils +from glean.api_client._hooks import HookContext +from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.utils import get_security_from_env from typing import List, Mapping, Optional, Union, cast diff --git a/tests/test_activities.py b/tests/test_activities.py index cdefb4ab..47f6ea74 100644 --- a/tests/test_activities.py +++ b/tests/test_activities.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_agents.py b/tests/test_agents.py index 15253b52..46af6f6e 100644 --- a/tests/test_agents.py +++ b/tests/test_agents.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_announcements.py b/tests/test_announcements.py index 7c7432f2..09609c85 100644 --- a/tests/test_announcements.py +++ b/tests/test_announcements.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_answers.py b/tests/test_answers.py index 95c35a21..c68c4acf 100644 --- a/tests/test_answers.py +++ b/tests/test_answers.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_client_activity.py b/tests/test_client_activity.py index ef3d2ca8..e16936d2 100644 --- a/tests/test_client_activity.py +++ b/tests/test_client_activity.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os from tests.test_client import create_test_http_client diff --git a/tests/test_client_authentication.py b/tests/test_client_authentication.py index dd151ca2..b42ddaac 100644 --- a/tests/test_client_authentication.py +++ b/tests/test_client_authentication.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_client_chat.py b/tests/test_client_chat.py index 72f444b5..b2c164b5 100644 --- a/tests/test_client_chat.py +++ b/tests/test_client_chat.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_client_documents.py b/tests/test_client_documents.py index 6211af4f..d56452e4 100644 --- a/tests/test_client_documents.py +++ b/tests/test_client_documents.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_client_shortcuts.py b/tests/test_client_shortcuts.py index 13c88762..1753aebe 100644 --- a/tests/test_client_shortcuts.py +++ b/tests/test_client_shortcuts.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_client_verification.py b/tests/test_client_verification.py index fb06cefb..a4495c3e 100644 --- a/tests/test_client_verification.py +++ b/tests/test_client_verification.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_collections.py b/tests/test_collections.py index d6bd2d45..db0e81ca 100644 --- a/tests/test_collections.py +++ b/tests/test_collections.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_datasources.py b/tests/test_datasources.py index 7ba301c7..40e7e180 100644 --- a/tests/test_datasources.py +++ b/tests/test_datasources.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_entities.py b/tests/test_entities.py index 8b7c893d..3a8a237c 100644 --- a/tests/test_entities.py +++ b/tests/test_entities.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_indexing_authentication.py b/tests/test_indexing_authentication.py index 1fdaf85c..da2be6ab 100644 --- a/tests/test_indexing_authentication.py +++ b/tests/test_indexing_authentication.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_indexing_documents.py b/tests/test_indexing_documents.py index b0cbf336..46c3361e 100644 --- a/tests/test_indexing_documents.py +++ b/tests/test_indexing_documents.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_indexing_permissions.py b/tests/test_indexing_permissions.py index 39ec1697..486c9a56 100644 --- a/tests/test_indexing_permissions.py +++ b/tests/test_indexing_permissions.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_insights.py b/tests/test_insights.py index 145d6ce3..43734ebe 100644 --- a/tests/test_insights.py +++ b/tests/test_insights.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_messages.py b/tests/test_messages.py index 27ecbb48..75f65e17 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_people.py b/tests/test_people.py index 97c80f4f..de6db47e 100644 --- a/tests/test_people.py +++ b/tests/test_people.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_pins.py b/tests/test_pins.py index c46321dd..e702c89d 100644 --- a/tests/test_pins.py +++ b/tests/test_pins.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean, models +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client diff --git a/tests/test_policies.py b/tests/test_policies.py index 579e2bb1..26bd810f 100644 --- a/tests/test_policies.py +++ b/tests/test_policies.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_search.py b/tests/test_search.py index 204752b0..a9da8d6a 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from datetime import date -from glean import Glean, models -from glean.utils import parse_datetime +from glean.api_client import Glean, models +from glean.api_client.utils import parse_datetime import os import pytest from tests.test_client import create_test_http_client diff --git a/tests/test_summarize.py b/tests/test_summarize.py index 60885fec..d533cc4a 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 import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_tools.py b/tests/test_tools.py index 9f51e63f..57ea1190 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os from tests.test_client import create_test_http_client diff --git a/tests/test_troubleshooting.py b/tests/test_troubleshooting.py index 09f65272..6dfd893b 100644 --- a/tests/test_troubleshooting.py +++ b/tests/test_troubleshooting.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean import Glean +from glean.api_client import Glean import os import pytest from tests.test_client import create_test_http_client