From 433b1e846ab1f048586e0e080c6996e2a6fe0364 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Nov 2025 03:37:22 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.650.0 --- .speakeasy/gen.lock | 12 ++++----- .speakeasy/gen.yaml | 3 ++- .speakeasy/glean-merged-spec.yaml | 20 ++++++++++---- .speakeasy/workflow.lock | 14 +++++----- RELEASES.md | 12 ++++++++- docs/models/customdatasourceconfig.md | 2 +- docs/models/event.md | 1 + docs/sdks/datasources/README.md | 2 +- docs/sdks/indexingpermissions/README.md | 8 ++++++ pyproject.toml | 2 +- speakeasyusagegen/.speakeasy/logs/naming.log | 26 +++++++++---------- src/glean/api_client/_version.py | 6 ++--- src/glean/api_client/collections.py | 6 +++-- src/glean/api_client/datasources.py | 4 +-- src/glean/api_client/indexing_permissions.py | 18 +++++++++++++ .../models/customdatasourceconfig.py | 4 +-- src/glean/api_client/models/feedback.py | 1 + src/glean/api_client/search.py | 2 ++ .../handler/pathpostrestapiv1getchat.go | 4 +-- .../components/customdatasourceconfig.go | 2 +- .../sdk/models/components/feedback.go | 3 +++ .../internal/sdk/models/operations/chat.go | 6 ++--- .../sdk/models/operations/chatstream.go | 6 ++--- .../sdk/models/operations/deletechatfiles.go | 8 +++--- .../sdk/models/operations/deletechats.go | 8 +++--- .../sdk/models/operations/feedback.go | 12 ++++----- .../internal/sdk/models/operations/getchat.go | 6 ++--- .../models/operations/getchatapplication.go | 8 +++--- .../sdk/models/operations/getchatfiles.go | 8 +++--- .../postapiindexv1debugdatasourcedocument.go | 8 +++--- .../postapiindexv1debugdatasourcedocuments.go | 8 +++--- .../postapiindexv1debugdatasourceuser.go | 8 +++--- .../sdk/models/operations/updatepolicy.go | 8 +++--- .../sdk/models/operations/uploadchatfiles.go | 8 +++--- tests/test_messages.py | 2 +- 35 files changed, 156 insertions(+), 100 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b04aa4f2..d68bc0ab 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: 32dd53402e2cd4015df1497391a25ceb + docChecksum: dcd614b69cdc88d754706e156a66d71b docVersion: 0.9.0 - speakeasyVersion: 1.649.0 - generationVersion: 2.739.1 - releaseVersion: 0.11.3 - configChecksum: 9cb8a7f3329f2469101aad1c7ce0888e + speakeasyVersion: 1.650.0 + generationVersion: 2.743.2 + releaseVersion: 0.11.4 + configChecksum: 2309fbf1f9596ee1bbfbd2a06e77e96d repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true @@ -16,7 +16,7 @@ features: additionalProperties: 1.0.1 configurableModuleName: 0.2.0 constsAndDefaults: 1.0.5 - core: 5.23.4 + core: 5.23.5 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 devContainers: 3.0.0 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4ff5b36b..1fcf79df 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,6 +22,7 @@ generation: hoistGlobalSecurity: true schemas: allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" mockServer: disabled: false tests: @@ -29,7 +30,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.3 + version: 0.11.4 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index b6102edf..5285e3d8 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2403,7 +2403,9 @@ paths: /api/index/v1/bulkindexusers: post: summary: Bulk index users - description: Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + description: | + Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any users deleted from the existing set will have their associated memberships deleted as well. tags: - Permissions requestBody: @@ -2451,7 +2453,9 @@ paths: /api/index/v1/bulkindexgroups: post: summary: Bulk index groups - description: Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + description: | + Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any groups deleted from the existing set will have their associated memberships deleted as well. tags: - Permissions requestBody: @@ -2545,7 +2549,9 @@ paths: /api/index/v1/deleteuser: post: summary: Delete user - description: Delete the user from the datasource. Silently succeeds if user is not present. + description: | + Delete the user from the datasource. Silently succeeds if user is not present. + Note: All memberships associated with the deleted user will also be deleted. tags: - Permissions requestBody: @@ -2569,7 +2575,9 @@ paths: /api/index/v1/deletegroup: post: summary: Delete group - description: Delete group from the datasource. Silently succeeds if group is not present. + description: | + Delete group from the datasource. Silently succeeds if group is not present. + Note: All memberships associated with the deleted group will also be deleted. tags: - Permissions requestBody: @@ -4018,6 +4026,7 @@ components: RIGHT_CLICK: The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. SECTION_CLICK: The user clicked a link to a subsection of the primary object. SEEN: The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). + SELECT: The user explicitly selected something, eg. a chat response variant they prefer. SHARE: The user shared the object with another user. SHOW_MORE: The user clicked the object's show more affordance. UPVOTE: The user gave feedback that the object was useful. @@ -4049,6 +4058,7 @@ components: - RIGHT_CLICK - SECTION_CLICK - SEEN + - SELECT - SHARE - SHOW_MORE - UPVOTE @@ -12296,7 +12306,7 @@ components: properties: identityDatasourceName: type: string - description: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + description: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. productAccessGroup: type: string description: If the datasource uses a specific product access group, then the name of that group. diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 10bb7f3a..2ee244ea 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.649.0 +speakeasyVersion: 1.650.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c - sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b + sourceRevisionDigest: sha256:ab3219e34896dc96893a548fb03c6c0f3b62ebde145ad8be7d8a5f8ac74513d6 + sourceBlobDigest: sha256:5ee99a226409e04f4a79331bfb11520ec4bf6570d6f568cff947d1a8fbbed4f1 tags: - latest - - speakeasy-sdk-regen-1762301903 + - speakeasy-sdk-regen-1762417734 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:7365082c1cce88ce70a8d3236d544faf9f251cec5fbae1b45b592acb841b262c - sourceBlobDigest: sha256:65aeb5314d524c7f62b12446b09c7381fb911e9d7c057e230f7f26d85b8e982b + sourceRevisionDigest: sha256:ab3219e34896dc96893a548fb03c6c0f3b62ebde145ad8be7d8a5f8ac74513d6 + sourceBlobDigest: sha256:5ee99a226409e04f4a79331bfb11520ec4bf6570d6f568cff947d1a8fbbed4f1 codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:6d93002caf2b6bb77ae4bd2f9e37ab56f9044c6d905ab5c9879f015fbe331a1a + codeSamplesRevisionDigest: sha256:4e45856c67b97e6c37af62247b52c03cbc3ae796b5d112077302469cfc857643 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index fe4acc39..cfaf8a38 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -348,4 +348,14 @@ Based on: ### Generated - [python v0.11.3] . ### Releases -- [PyPI v0.11.3] https://pypi.org/project/glean/0.11.3 - . \ No newline at end of file +- [PyPI v0.11.3] https://pypi.org/project/glean/0.11.3 - . + +## 2025-11-07 03:34:03 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.11.4] . +### Releases +- [PyPI v0.11.4] https://pypi.org/project/glean/0.11.4 - . \ No newline at end of file diff --git a/docs/models/customdatasourceconfig.md b/docs/models/customdatasourceconfig.md index 6ebfdeaf..2ecb8158 100644 --- a/docs/models/customdatasourceconfig.md +++ b/docs/models/customdatasourceconfig.md @@ -29,7 +29,7 @@ Structure describing config properties of a custom datasource | `trust_url_regex_for_view_activity` | *Optional[bool]* | :heavy_minus_sign: | True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. | | | `include_utm_source` | *Optional[bool]* | :heavy_minus_sign: | If true, a utm_source query param will be added to outbound links to this datasource within Glean. | | | `strip_fragment_in_canonical_url` | *Optional[bool]* | :heavy_minus_sign: | If true, the fragment part of the URL will be stripped when converting to a canonical url. | | -| `identity_datasource_name` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. | | +| `identity_datasource_name` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. | | | `product_access_group` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses a specific product access group, then the name of that group. | | | `is_user_referenced_by_email` | *Optional[bool]* | :heavy_minus_sign: | whether email is used to reference users in document ACLs and in group memberships. | | | `is_entity_datasource` | *Optional[bool]* | :heavy_minus_sign: | True if this datasource is used to push custom entities. | | diff --git a/docs/models/event.md b/docs/models/event.md index 0970431d..399107aa 100644 --- a/docs/models/event.md +++ b/docs/models/event.md @@ -32,6 +32,7 @@ The action the user took within a Glean client with respect to the object referr | `RIGHT_CLICK` | RIGHT_CLICK | | `SECTION_CLICK` | SECTION_CLICK | | `SEEN` | SEEN | +| `SELECT` | SELECT | | `SHARE` | SHARE | | `SHOW_MORE` | SHOW_MORE | | `UPVOTE` | UPVOTE | diff --git a/docs/sdks/datasources/README.md b/docs/sdks/datasources/README.md index 5ea8a1ad..cdee7942 100644 --- a/docs/sdks/datasources/README.md +++ b/docs/sdks/datasources/README.md @@ -65,7 +65,7 @@ with Glean( | `trust_url_regex_for_view_activity` | *Optional[bool]* | :heavy_minus_sign: | True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. | | | `include_utm_source` | *Optional[bool]* | :heavy_minus_sign: | If true, a utm_source query param will be added to outbound links to this datasource within Glean. | | | `strip_fragment_in_canonical_url` | *Optional[bool]* | :heavy_minus_sign: | If true, the fragment part of the URL will be stripped when converting to a canonical url. | | -| `identity_datasource_name` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. | | +| `identity_datasource_name` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. | | | `product_access_group` | *Optional[str]* | :heavy_minus_sign: | If the datasource uses a specific product access group, then the name of that group. | | | `is_user_referenced_by_email` | *Optional[bool]* | :heavy_minus_sign: | whether email is used to reference users in document ACLs and in group memberships. | | | `is_entity_datasource` | *Optional[bool]* | :heavy_minus_sign: | True if this datasource is used to push custom entities. | | diff --git a/docs/sdks/indexingpermissions/README.md b/docs/sdks/indexingpermissions/README.md index db353896..6fc1dd55 100644 --- a/docs/sdks/indexingpermissions/README.md +++ b/docs/sdks/indexingpermissions/README.md @@ -100,6 +100,8 @@ with Glean( ## bulk_index_users Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. +Note: Any users deleted from the existing set will have their associated memberships deleted as well. + ### Example Usage @@ -185,6 +187,8 @@ with Glean( ## bulk_index_groups Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. +Note: Any groups deleted from the existing set will have their associated memberships deleted as well. + ### Example Usage @@ -348,6 +352,8 @@ with Glean( ## delete_user Delete the user from the datasource. Silently succeeds if user is not present. +Note: All memberships associated with the deleted user will also be deleted. + ### Example Usage @@ -385,6 +391,8 @@ with Glean( ## delete_group Delete group from the datasource. Silently succeeds if group is not present. +Note: All memberships associated with the deleted group will also be deleted. + ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 18bf6379..10fe4c86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "glean-api-client" -version = "0.11.3" +version = "0.11.4" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." }] license = "MIT" diff --git a/speakeasyusagegen/.speakeasy/logs/naming.log b/speakeasyusagegen/.speakeasy/logs/naming.log index dc36452f..0aa550a7 100644 --- a/speakeasyusagegen/.speakeasy/logs/naming.log +++ b/speakeasyusagegen/.speakeasy/logs/naming.log @@ -393,7 +393,7 @@ Activity (events: array) ActivityEventParams (bodyContent: string, datasourceInstance: string, datasource: string ...) ActivityResponse (HttpMeta: HTTPMetadata) HttpMetadata (Response: response, Request: request) -FeedbackRequest (feedbackQueryParameter: string, Feedback1: Feedback) +FeedbackRequest (feedback: string, body: Feedback) Feedback (id: string, category: enum, trackingTokens: array ...) FeedbackCategory (enum: ANNOUNCEMENT, AUTOCOMPLETE, COLLECTIONS ...) Event (enum: CLICK, CONTAINER_CLICK, COPY_LINK ...) @@ -586,7 +586,7 @@ ClientAuthentication (SDK empty) CreateauthtokenResponse (HttpMeta: HTTPMetadata, CreateAuthTokenResponse: CreateAuthTokenResponse) CreateAuthTokenResponse (token: string, expirationTime: integer) Chat (SDK empty) -ChatRequest (timezoneOffset: integer, ChatRequest: ChatRequest) +ChatRequest (timezoneOffset: integer, body: ChatRequest) ChatRequest (messages: array, sessionInfo: SessionInfo, saveChat: boolean ...) ChatMessage (agentConfig: AgentConfig, author: enum, citations: array ...) AgentConfig (agent: enum, toolSets: ToolSets, mode: enum ...) @@ -621,10 +621,10 @@ ChatResponse (HttpMeta: HTTPMetadata, ChatResponse: ChatResponse) ChatResponse (messages: array, chatId: string, followUpPrompts: array ...) DeleteallchatsRequest (timezoneOffset: integer) DeleteallchatsResponse (HttpMeta: HTTPMetadata) -DeletechatsRequest (timezoneOffset: integer, DeleteChatsRequest: DeleteChatsRequest) +DeletechatsRequest (timezoneOffset: integer, body: DeleteChatsRequest) DeleteChatsRequest (ids: array) DeletechatsResponse (HttpMeta: HTTPMetadata) -GetchatRequest (timezoneOffset: integer, GetChatRequest: GetChatRequest) +GetchatRequest (timezoneOffset: integer, body: GetChatRequest) GetChatRequest (id: string) GetchatResponse (HttpMeta: HTTPMetadata, GetChatResponse: GetChatResponse) GetChatResponse (chatResult: ChatResult) @@ -634,23 +634,23 @@ ListchatsRequest (timezoneOffset: integer) ListchatsResponse (HttpMeta: HTTPMetadata, ListChatsResponse: ListChatsResponse) ListChatsResponse (chatResults: array) ChatMetadataResult (chat: ChatMetadata, trackingToken: string) -GetchatapplicationRequest (timezoneOffset: integer, GetChatApplicationRequest: GetChatApplicationRequest) +GetchatapplicationRequest (timezoneOffset: integer, body: GetChatApplicationRequest) GetChatApplicationRequest (id: string) GetchatapplicationResponse (HttpMeta: HTTPMetadata, GetChatApplicationResponse: GetChatApplicationResponse) GetChatApplicationResponse (application: any) -UploadchatfilesRequest (timezoneOffset: integer, UploadChatFilesRequest: UploadChatFilesRequest) +UploadchatfilesRequest (timezoneOffset: integer, body: UploadChatFilesRequest) UploadChatFilesRequest (files: array) File (fileName: string, content: request-stream) UploadchatfilesResponse (HttpMeta: HTTPMetadata, UploadChatFilesResponse: UploadChatFilesResponse) UploadChatFilesResponse (files: array) -GetchatfilesRequest (timezoneOffset: integer, GetChatFilesRequest: GetChatFilesRequest) +GetchatfilesRequest (timezoneOffset: integer, body: GetChatFilesRequest) GetChatFilesRequest (fileIds: array, chatId: string) GetchatfilesResponse (HttpMeta: HTTPMetadata, GetChatFilesResponse: GetChatFilesResponse) GetChatFilesResponse (files: map) -DeletechatfilesRequest (timezoneOffset: integer, DeleteChatFilesRequest: DeleteChatFilesRequest) +DeletechatfilesRequest (timezoneOffset: integer, body: DeleteChatFilesRequest) DeleteChatFilesRequest (fileIds: array) DeletechatfilesResponse (HttpMeta: HTTPMetadata) -ChatStreamRequest (timezoneOffset: integer, ChatRequest: ChatRequest) +ChatStreamRequest (timezoneOffset: integer, body: ChatRequest) ChatStreamResponse (HttpMeta: HTTPMetadata, ChatRequestStream: string) Agents (SDK empty) GetAgentRequest (timezoneOffset: integer, agent_id: string) @@ -940,7 +940,7 @@ GetpolicyResponse (HttpMeta: HTTPMetadata, GetDlpReportResponse: GetDlpReportRes DlpFrequency (enum: ONCE, DAILY, WEEKLY ...) DlpReportStatus (enum: ACTIVE, INACTIVE, CANCELLED ...) LastScanStatus (enum: PENDING, SUCCESS, FAILURE ...) -UpdatepolicyRequest (id: string, UpdateDlpReportRequest: UpdateDlpReportRequest) +UpdatepolicyRequest (id: string, body: UpdateDlpReportRequest) UpdateDlpReportRequest (config: DlpConfig, frequency: DlpFrequency, status: DlpReportStatus ...) UpdatepolicyResponse (HttpMeta: HTTPMetadata, UpdateDlpReportResponse: UpdateDlpReportResponse) UpdateDlpReportResponse (result: DlpSimpleResult) @@ -995,12 +995,12 @@ ProcessAllDocumentsRequest (datasource: string) PostApiIndexV1ProcessalldocumentsResponse (HttpMeta: HTTPMetadata) DeleteDocumentRequest (version: integer, datasource: string, objectType: string ...) PostApiIndexV1DeletedocumentResponse (HttpMeta: HTTPMetadata) -Post/api/index/v1/debug/{datasource}/documentRequest (datasource: string, DebugDocumentRequest: DebugDocumentRequest) +Post/api/index/v1/debug/{datasource}/documentRequest (datasource: string, body: DebugDocumentRequest) DebugDocumentRequest (objectType: string, docId: string) PostApiIndexV1DebugDatasourceDocumentResponse (HttpMeta: HTTPMetadata, DebugDocumentResponse: DebugDocumentResponse) DebugDocumentResponse (status: DocumentStatusResponse, uploadedPermissions: DocumentPermissionsDefinition) DocumentStatusResponse (uploadStatus: string, lastUploadedAt: string, indexingStatus: string ...) -Post/api/index/v1/debug/{datasource}/documentsRequest (datasource: string, DebugDocumentsRequest: DebugDocumentsRequest) +Post/api/index/v1/debug/{datasource}/documentsRequest (datasource: string, body: DebugDocumentsRequest) DebugDocumentsRequest (debugDocuments: array) PostApiIndexV1DebugDatasourceDocumentsResponse (HttpMeta: HTTPMetadata, DebugDocumentsResponse: DebugDocumentsResponse) DebugDocumentsResponse (documentStatuses: array) @@ -1059,7 +1059,7 @@ PostApiIndexV1DebugDatasourceStatusResponse (HttpMeta: HTTPMetadata, DebugDataso DebugDatasourceStatusIdentityResponseComponentCounts (uploaded: integer) DatasourceVisibility (enum: ENABLED_FOR_ALL, ENABLED_FOR_TEST_GROUP, NOT_ENABLED) People (SDK empty) -Post/api/index/v1/debug/{datasource}/userRequest (datasource: string, DebugUserRequest: DebugUserRequest) +Post/api/index/v1/debug/{datasource}/userRequest (datasource: string, body: DebugUserRequest) DebugUserRequest (email: string) PostApiIndexV1DebugDatasourceUserResponse (HttpMeta: HTTPMetadata, DebugUserResponse: DebugUserResponse) DebugUserResponse (status: UserStatusResponse, uploadedGroups: array) diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 4d47317c..53ea3abf 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean" -__version__: str = "0.11.3" +__version__: str = "0.11.4" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.739.1" -__user_agent__: str = "speakeasy-sdk/python 0.11.3 2.739.1 0.9.0 glean" +__gen_version__: str = "2.743.2" +__user_agent__: str = "speakeasy-sdk/python 0.11.4 2.743.2 0.9.0 glean" try: if __package__ is not None: diff --git a/src/glean/api_client/collections.py b/src/glean/api_client/collections.py index 52993041..cd9ef2df 100644 --- a/src/glean/api_client/collections.py +++ b/src/glean/api_client/collections.py @@ -1545,7 +1545,8 @@ def list( :param include_audience: Whether to include the audience filters with the listed Collections. :param include_roles: Whether to include the editor roles with the listed Collections. - :param allowed_datasource: The datasource type this Collection can hold. ANSWERS - for Collections representing answer boards + :param allowed_datasource: The datasource type this Collection can hold. + ANSWERS - for Collections representing answer boards :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1637,7 +1638,8 @@ async def list_async( :param include_audience: Whether to include the audience filters with the listed Collections. :param include_roles: Whether to include the editor roles with the listed Collections. - :param allowed_datasource: The datasource type this Collection can hold. ANSWERS - for Collections representing answer boards + :param allowed_datasource: The datasource type this Collection can hold. + ANSWERS - for Collections representing answer boards :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds diff --git a/src/glean/api_client/datasources.py b/src/glean/api_client/datasources.py index 2d0779f6..51519a77 100644 --- a/src/glean/api_client/datasources.py +++ b/src/glean/api_client/datasources.py @@ -87,7 +87,7 @@ def add( :param trust_url_regex_for_view_activity: True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. :param include_utm_source: If true, a utm_source query param will be added to outbound links to this datasource within Glean. :param strip_fragment_in_canonical_url: If true, the fragment part of the URL will be stripped when converting to a canonical url. - :param identity_datasource_name: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + :param identity_datasource_name: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. :param product_access_group: If the datasource uses a specific product access group, then the name of that group. :param is_user_referenced_by_email: whether email is used to reference users in document ACLs and in group memberships. :param is_entity_datasource: True if this datasource is used to push custom entities. @@ -276,7 +276,7 @@ async def add_async( :param trust_url_regex_for_view_activity: True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. :param include_utm_source: If true, a utm_source query param will be added to outbound links to this datasource within Glean. :param strip_fragment_in_canonical_url: If true, the fragment part of the URL will be stripped when converting to a canonical url. - :param identity_datasource_name: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + :param identity_datasource_name: If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. :param product_access_group: If the datasource uses a specific product access group, then the name of that group. :param is_user_referenced_by_email: whether email is used to reference users in document ACLs and in group memberships. :param is_entity_datasource: True if this datasource is used to push custom entities. diff --git a/src/glean/api_client/indexing_permissions.py b/src/glean/api_client/indexing_permissions.py index b18ef14c..d592eced 100644 --- a/src/glean/api_client/indexing_permissions.py +++ b/src/glean/api_client/indexing_permissions.py @@ -34,6 +34,7 @@ def update_permissions( :param object_type: The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ :param id: The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. :param view_url: The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -137,6 +138,7 @@ async def update_permissions_async( :param object_type: The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ :param id: The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. :param view_url: The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -424,6 +426,8 @@ def bulk_index_users( r"""Bulk index users Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any users deleted from the existing set will have their associated memberships deleted as well. + :param upload_id: Unique id that must be used for this instance of datasource users upload :param datasource: datasource of the users @@ -533,6 +537,8 @@ async def bulk_index_users_async( r"""Bulk index users Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any users deleted from the existing set will have their associated memberships deleted as well. + :param upload_id: Unique id that must be used for this instance of datasource users upload :param datasource: datasource of the users @@ -830,6 +836,8 @@ def bulk_index_groups( r"""Bulk index groups Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any groups deleted from the existing set will have their associated memberships deleted as well. + :param upload_id: Unique id that must be used for this instance of datasource groups upload :param datasource: datasource of the groups @@ -939,6 +947,8 @@ async def bulk_index_groups_async( r"""Bulk index groups Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + Note: Any groups deleted from the existing set will have their associated memberships deleted as well. + :param upload_id: Unique id that must be used for this instance of datasource groups upload :param datasource: datasource of the groups @@ -1649,6 +1659,8 @@ def delete_user( r"""Delete user Delete the user from the datasource. Silently succeeds if user is not present. + Note: All memberships associated with the deleted user will also be deleted. + :param datasource: The datasource for which the user is removed :param email: The email of the user to be deleted @@ -1741,6 +1753,8 @@ async def delete_user_async( r"""Delete user Delete the user from the datasource. Silently succeeds if user is not present. + Note: All memberships associated with the deleted user will also be deleted. + :param datasource: The datasource for which the user is removed :param email: The email of the user to be deleted @@ -1833,6 +1847,8 @@ def delete_group( r"""Delete group Delete group from the datasource. Silently succeeds if group is not present. + Note: All memberships associated with the deleted group will also be deleted. + :param datasource: The datasource for which the group is removed :param group_name: the name of the group to be deleted @@ -1925,6 +1941,8 @@ async def delete_group_async( r"""Delete group Delete group from the datasource. Silently succeeds if group is not present. + Note: All memberships associated with the deleted group will also be deleted. + :param datasource: The datasource for which the group is removed :param group_name: the name of the group to be deleted diff --git a/src/glean/api_client/models/customdatasourceconfig.py b/src/glean/api_client/models/customdatasourceconfig.py index 635ed2be..ea4598b6 100644 --- a/src/glean/api_client/models/customdatasourceconfig.py +++ b/src/glean/api_client/models/customdatasourceconfig.py @@ -104,7 +104,7 @@ class CustomDatasourceConfigTypedDict(TypedDict): strip_fragment_in_canonical_url: NotRequired[bool] r"""If true, the fragment part of the URL will be stripped when converting to a canonical url.""" identity_datasource_name: NotRequired[str] - r"""If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already.""" + r"""If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results.""" product_access_group: NotRequired[str] r"""If the datasource uses a specific product access group, then the name of that group.""" is_user_referenced_by_email: NotRequired[bool] @@ -215,7 +215,7 @@ class CustomDatasourceConfig(BaseModel): identity_datasource_name: Annotated[ Optional[str], pydantic.Field(alias="identityDatasourceName") ] = None - r"""If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already.""" + r"""If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results.""" product_access_group: Annotated[ Optional[str], pydantic.Field(alias="productAccessGroup") diff --git a/src/glean/api_client/models/feedback.py b/src/glean/api_client/models/feedback.py index b8d0309a..28cbfcc9 100644 --- a/src/glean/api_client/models/feedback.py +++ b/src/glean/api_client/models/feedback.py @@ -64,6 +64,7 @@ class Event(str, Enum): RIGHT_CLICK = "RIGHT_CLICK" SECTION_CLICK = "SECTION_CLICK" SEEN = "SEEN" + SELECT = "SELECT" SHARE = "SHARE" SHOW_MORE = "SHOW_MORE" UPVOTE = "UPVOTE" diff --git a/src/glean/api_client/search.py b/src/glean/api_client/search.py index 786d307d..46394954 100644 --- a/src/glean/api_client/search.py +++ b/src/glean/api_client/search.py @@ -332,6 +332,7 @@ def autocomplete( :param datasource: Filter to only return results relevant to the given datasource. :param result_types: Filter to only return results of the given type(s). All types may be returned if omitted. :param result_size: Maximum number of results to be returned. If no value is provided, the backend will cap at 200. + :param auth_tokens: Auth tokens which may be used for federated results. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -447,6 +448,7 @@ async def autocomplete_async( :param datasource: Filter to only return results relevant to the given datasource. :param result_types: Filter to only return results of the given type(s). All types may be returned if omitted. :param result_size: Maximum number of results to be returned. If no value is provided, the backend will cap at 200. + :param auth_tokens: Auth tokens which may be used for federated results. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index f8469b5b..35e69d35 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go b/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go index 74d5523a..070e9e35 100644 --- a/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go +++ b/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go @@ -205,7 +205,7 @@ type CustomDatasourceConfig struct { IncludeUtmSource *bool `json:"includeUtmSource,omitempty"` // If true, the fragment part of the URL will be stripped when converting to a canonical url. StripFragmentInCanonicalURL *bool `default:"true" json:"stripFragmentInCanonicalUrl"` - // If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + // If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already and the datasource with identity info should have its visibility enabled for search results. IdentityDatasourceName *string `json:"identityDatasourceName,omitempty"` // If the datasource uses a specific product access group, then the name of that group. ProductAccessGroup *string `json:"productAccessGroup,omitempty"` diff --git a/tests/mockserver/internal/sdk/models/components/feedback.go b/tests/mockserver/internal/sdk/models/components/feedback.go index 7ecc1c76..c7e66678 100644 --- a/tests/mockserver/internal/sdk/models/components/feedback.go +++ b/tests/mockserver/internal/sdk/models/components/feedback.go @@ -95,6 +95,7 @@ const ( EventRightClick Event = "RIGHT_CLICK" EventSectionClick Event = "SECTION_CLICK" EventSeen Event = "SEEN" + EventSelect Event = "SELECT" EventShare Event = "SHARE" EventShowMore Event = "SHOW_MORE" EventUpvote Event = "UPVOTE" @@ -161,6 +162,8 @@ func (e *Event) UnmarshalJSON(data []byte) error { fallthrough case "SEEN": fallthrough + case "SELECT": + fallthrough case "SHARE": fallthrough case "SHOW_MORE": diff --git a/tests/mockserver/internal/sdk/models/operations/chat.go b/tests/mockserver/internal/sdk/models/operations/chat.go index 4f0f7fb1..e8c31b57 100644 --- a/tests/mockserver/internal/sdk/models/operations/chat.go +++ b/tests/mockserver/internal/sdk/models/operations/chat.go @@ -10,7 +10,7 @@ type ChatRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // Includes chat history for Glean AI to respond to. - ChatRequest components.ChatRequest `request:"mediaType=application/json"` + Body components.ChatRequest `request:"mediaType=application/json"` } func (o *ChatRequest) GetTimezoneOffset() *int64 { @@ -20,11 +20,11 @@ func (o *ChatRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *ChatRequest) GetChatRequest() components.ChatRequest { +func (o *ChatRequest) GetBody() components.ChatRequest { if o == nil { return components.ChatRequest{} } - return o.ChatRequest + return o.Body } type ChatResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/chatstream.go b/tests/mockserver/internal/sdk/models/operations/chatstream.go index a8d81d42..b97e7a44 100644 --- a/tests/mockserver/internal/sdk/models/operations/chatstream.go +++ b/tests/mockserver/internal/sdk/models/operations/chatstream.go @@ -10,7 +10,7 @@ type ChatStreamRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // Includes chat history for Glean AI to respond to. - ChatRequest components.ChatRequest `request:"mediaType=application/json"` + Body components.ChatRequest `request:"mediaType=application/json"` } func (o *ChatStreamRequest) GetTimezoneOffset() *int64 { @@ -20,11 +20,11 @@ func (o *ChatStreamRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *ChatStreamRequest) GetChatRequest() components.ChatRequest { +func (o *ChatStreamRequest) GetBody() components.ChatRequest { if o == nil { return components.ChatRequest{} } - return o.ChatRequest + return o.Body } type ChatStreamResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go b/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go index 0d3acc15..8d41828e 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go @@ -8,8 +8,8 @@ import ( type DeletechatfilesRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - DeleteChatFilesRequest components.DeleteChatFilesRequest `request:"mediaType=application/json"` + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + Body components.DeleteChatFilesRequest `request:"mediaType=application/json"` } func (o *DeletechatfilesRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *DeletechatfilesRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *DeletechatfilesRequest) GetDeleteChatFilesRequest() components.DeleteChatFilesRequest { +func (o *DeletechatfilesRequest) GetBody() components.DeleteChatFilesRequest { if o == nil { return components.DeleteChatFilesRequest{} } - return o.DeleteChatFilesRequest + return o.Body } type DeletechatfilesResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/deletechats.go b/tests/mockserver/internal/sdk/models/operations/deletechats.go index a3f3f497..14372eaa 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletechats.go +++ b/tests/mockserver/internal/sdk/models/operations/deletechats.go @@ -8,8 +8,8 @@ import ( type DeletechatsRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - DeleteChatsRequest components.DeleteChatsRequest `request:"mediaType=application/json"` + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + Body components.DeleteChatsRequest `request:"mediaType=application/json"` } func (o *DeletechatsRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *DeletechatsRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *DeletechatsRequest) GetDeleteChatsRequest() components.DeleteChatsRequest { +func (o *DeletechatsRequest) GetBody() components.DeleteChatsRequest { if o == nil { return components.DeleteChatsRequest{} } - return o.DeleteChatsRequest + return o.Body } type DeletechatsResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/feedback.go b/tests/mockserver/internal/sdk/models/operations/feedback.go index e81f65fc..3f4ec58d 100644 --- a/tests/mockserver/internal/sdk/models/operations/feedback.go +++ b/tests/mockserver/internal/sdk/models/operations/feedback.go @@ -8,22 +8,22 @@ import ( type FeedbackRequest struct { // A URL encoded versions of Feedback. This is useful for requests. - FeedbackQueryParameter *string `queryParam:"style=form,explode=true,name=feedback"` - Feedback1 *components.Feedback `request:"mediaType=application/json"` + Feedback *string `queryParam:"style=form,explode=true,name=feedback"` + Body *components.Feedback `request:"mediaType=application/json"` } -func (o *FeedbackRequest) GetFeedbackQueryParameter() *string { +func (o *FeedbackRequest) GetFeedback() *string { if o == nil { return nil } - return o.FeedbackQueryParameter + return o.Feedback } -func (o *FeedbackRequest) GetFeedback1() *components.Feedback { +func (o *FeedbackRequest) GetBody() *components.Feedback { if o == nil { return nil } - return o.Feedback1 + return o.Body } type FeedbackResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/getchat.go b/tests/mockserver/internal/sdk/models/operations/getchat.go index 9ce30de8..0c696703 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchat.go +++ b/tests/mockserver/internal/sdk/models/operations/getchat.go @@ -9,7 +9,7 @@ import ( type GetchatRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - GetChatRequest components.GetChatRequest `request:"mediaType=application/json"` + Body components.GetChatRequest `request:"mediaType=application/json"` } func (o *GetchatRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *GetchatRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *GetchatRequest) GetGetChatRequest() components.GetChatRequest { +func (o *GetchatRequest) GetBody() components.GetChatRequest { if o == nil { return components.GetChatRequest{} } - return o.GetChatRequest + return o.Body } type GetchatResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go b/tests/mockserver/internal/sdk/models/operations/getchatapplication.go index ec673be9..4d4ddb97 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go +++ b/tests/mockserver/internal/sdk/models/operations/getchatapplication.go @@ -8,8 +8,8 @@ import ( type GetchatapplicationRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - GetChatApplicationRequest components.GetChatApplicationRequest `request:"mediaType=application/json"` + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + Body components.GetChatApplicationRequest `request:"mediaType=application/json"` } func (o *GetchatapplicationRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *GetchatapplicationRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *GetchatapplicationRequest) GetGetChatApplicationRequest() components.GetChatApplicationRequest { +func (o *GetchatapplicationRequest) GetBody() components.GetChatApplicationRequest { if o == nil { return components.GetChatApplicationRequest{} } - return o.GetChatApplicationRequest + return o.Body } type GetchatapplicationResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go b/tests/mockserver/internal/sdk/models/operations/getchatfiles.go index 24bcda85..7ad91227 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/getchatfiles.go @@ -8,8 +8,8 @@ import ( type GetchatfilesRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - GetChatFilesRequest components.GetChatFilesRequest `request:"mediaType=application/json"` + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + Body components.GetChatFilesRequest `request:"mediaType=application/json"` } func (o *GetchatfilesRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *GetchatfilesRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *GetchatfilesRequest) GetGetChatFilesRequest() components.GetChatFilesRequest { +func (o *GetchatfilesRequest) GetBody() components.GetChatFilesRequest { if o == nil { return components.GetChatFilesRequest{} } - return o.GetChatFilesRequest + return o.Body } type GetchatfilesResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go index 664ceb3b..0030470c 100644 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go +++ b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go @@ -8,8 +8,8 @@ import ( type PostAPIIndexV1DebugDatasourceDocumentRequest struct { // The datasource to which the document belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugDocumentRequest components.DebugDocumentRequest `request:"mediaType=application/json"` + Datasource string `pathParam:"style=simple,explode=false,name=datasource"` + Body components.DebugDocumentRequest `request:"mediaType=application/json"` } func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetDatasource() string { @@ -19,11 +19,11 @@ func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetDatasource() string { return o.Datasource } -func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetDebugDocumentRequest() components.DebugDocumentRequest { +func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetBody() components.DebugDocumentRequest { if o == nil { return components.DebugDocumentRequest{} } - return o.DebugDocumentRequest + return o.Body } type PostAPIIndexV1DebugDatasourceDocumentResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go index 437e6f06..db365a70 100644 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go +++ b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go @@ -8,8 +8,8 @@ import ( type PostAPIIndexV1DebugDatasourceDocumentsRequest struct { // The datasource to which the document belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugDocumentsRequest components.DebugDocumentsRequest `request:"mediaType=application/json"` + Datasource string `pathParam:"style=simple,explode=false,name=datasource"` + Body components.DebugDocumentsRequest `request:"mediaType=application/json"` } func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetDatasource() string { @@ -19,11 +19,11 @@ func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetDatasource() string { return o.Datasource } -func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetDebugDocumentsRequest() components.DebugDocumentsRequest { +func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetBody() components.DebugDocumentsRequest { if o == nil { return components.DebugDocumentsRequest{} } - return o.DebugDocumentsRequest + return o.Body } type PostAPIIndexV1DebugDatasourceDocumentsResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go index 5ead8da7..4d642b8f 100644 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go +++ b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go @@ -8,8 +8,8 @@ import ( type PostAPIIndexV1DebugDatasourceUserRequest struct { // The datasource to which the user belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugUserRequest components.DebugUserRequest `request:"mediaType=application/json"` + Datasource string `pathParam:"style=simple,explode=false,name=datasource"` + Body components.DebugUserRequest `request:"mediaType=application/json"` } func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetDatasource() string { @@ -19,11 +19,11 @@ func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetDatasource() string { return o.Datasource } -func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetDebugUserRequest() components.DebugUserRequest { +func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetBody() components.DebugUserRequest { if o == nil { return components.DebugUserRequest{} } - return o.DebugUserRequest + return o.Body } type PostAPIIndexV1DebugDatasourceUserResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/updatepolicy.go b/tests/mockserver/internal/sdk/models/operations/updatepolicy.go index 8171038c..a355bbe9 100644 --- a/tests/mockserver/internal/sdk/models/operations/updatepolicy.go +++ b/tests/mockserver/internal/sdk/models/operations/updatepolicy.go @@ -8,8 +8,8 @@ import ( type UpdatepolicyRequest struct { // The id of the policy to fetch. - ID string `pathParam:"style=simple,explode=false,name=id"` - UpdateDlpReportRequest components.UpdateDlpReportRequest `request:"mediaType=application/json"` + ID string `pathParam:"style=simple,explode=false,name=id"` + Body components.UpdateDlpReportRequest `request:"mediaType=application/json"` } func (o *UpdatepolicyRequest) GetID() string { @@ -19,11 +19,11 @@ func (o *UpdatepolicyRequest) GetID() string { return o.ID } -func (o *UpdatepolicyRequest) GetUpdateDlpReportRequest() components.UpdateDlpReportRequest { +func (o *UpdatepolicyRequest) GetBody() components.UpdateDlpReportRequest { if o == nil { return components.UpdateDlpReportRequest{} } - return o.UpdateDlpReportRequest + return o.Body } type UpdatepolicyResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go b/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go index d11a18d5..ec14b549 100644 --- a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go @@ -8,8 +8,8 @@ import ( type UploadchatfilesRequest struct { // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` - UploadChatFilesRequest components.UploadChatFilesRequest `request:"mediaType=multipart/form-data"` + TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` + Body components.UploadChatFilesRequest `request:"mediaType=multipart/form-data"` } func (o *UploadchatfilesRequest) GetTimezoneOffset() *int64 { @@ -19,11 +19,11 @@ func (o *UploadchatfilesRequest) GetTimezoneOffset() *int64 { return o.TimezoneOffset } -func (o *UploadchatfilesRequest) GetUploadChatFilesRequest() components.UploadChatFilesRequest { +func (o *UploadchatfilesRequest) GetBody() components.UploadChatFilesRequest { if o == nil { return components.UploadChatFilesRequest{} } - return o.UploadChatFilesRequest + return o.Body } type UploadchatfilesResponse struct { diff --git a/tests/test_messages.py b/tests/test_messages.py index 36643db3..c0fd29da 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -18,7 +18,7 @@ def test_messages_messages(): res = glean.client.messages.retrieve( id_type=models.IDType.CONVERSATION_ID, id="", - datasource=models.Datasource.MICROSOFTTEAMS, + datasource=models.Datasource.SLACK, timestamp_millis=558834, ) assert res is not None From f5387c2597c438b93b46886f830fc9da168e58e9 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 03:37:31 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow