Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 3e3290ca-0ee8-4981-b1bc-14536048fa63
management:
docChecksum: f901905eddb4d3e76a54e8da46f5347d
docChecksum: 077c6362a0efa2eeabfcbaf36c09ccf5
docVersion: 0.9.0
speakeasyVersion: 1.650.0
generationVersion: 2.743.2
releaseVersion: 0.11.22
configChecksum: 15c71f102e245f5606dc6f4f470c2ad8
releaseVersion: 0.12.1
configChecksum: 49b9e5da7f967f599e502dd87a1ffb77
repoURL: https://github.com/gleanwork/api-client-python.git
installationURL: https://github.com/gleanwork/api-client-python.git
published: true
Expand Down Expand Up @@ -194,6 +194,10 @@ generatedFiles:
- docs/models/customfieldvalueperson.md
- docs/models/customfieldvaluestr.md
- docs/models/customproperty.md
- docs/models/customsensitiveexpression.md
- docs/models/customsensitiverule.md
- docs/models/customsensitiverulelikelihoodthreshold.md
- docs/models/customsensitiveruletype.md
- docs/models/datasource.md
- docs/models/datasourcebulkmembershipdefinition.md
- docs/models/datasourcecategory.md
Expand Down Expand Up @@ -407,7 +411,6 @@ generatedFiles:
- docs/models/knowledgetype.md
- docs/models/labeledcountinfo.md
- docs/models/lastscanstatus.md
- docs/models/likelihoodthreshold.md
- docs/models/listanswersrequest.md
- docs/models/listanswersresponse.md
- docs/models/listchatsrequest.md
Expand Down Expand Up @@ -536,6 +539,7 @@ generatedFiles:
- docs/models/sensitivecontentoptions.md
- docs/models/sensitiveexpression.md
- docs/models/sensitiveinfotype.md
- docs/models/sensitiveinfotypelikelihoodthreshold.md
- docs/models/sessioninfo.md
- docs/models/share.md
- docs/models/sharingoptions.md
Expand Down Expand Up @@ -822,6 +826,9 @@ generatedFiles:
- src/glean/api_client/models/customfieldvalueperson.py
- src/glean/api_client/models/customfieldvaluestr.py
- src/glean/api_client/models/customproperty.py
- src/glean/api_client/models/customsensitiveexpression.py
- src/glean/api_client/models/customsensitiverule.py
- src/glean/api_client/models/customsensitiveruletype.py
- src/glean/api_client/models/datasourcebulkmembershipdefinition.py
- src/glean/api_client/models/datasourcegroupdefinition.py
- src/glean/api_client/models/datasourcemembershipdefinition.py
Expand Down Expand Up @@ -1414,6 +1421,9 @@ generatedFiles:
- tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go
- tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go
- tests/mockserver/internal/sdk/models/components/customproperty.go
- tests/mockserver/internal/sdk/models/components/customsensitiveexpression.go
- tests/mockserver/internal/sdk/models/components/customsensitiverule.go
- tests/mockserver/internal/sdk/models/components/customsensitiveruletype.go
- tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go
- tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go
- tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go
Expand Down Expand Up @@ -2741,6 +2751,4 @@ generatedTests:
editcollection: "2025-06-12T19:13:52-04:00"
createshortcut: "2025-06-12T19:13:52-04:00"
updateshortcut: "2025-06-12T19:13:52-04:00"
releaseNotes: |
## Python SDK Changes Detected:
* `glean.client.insights.retrieve()`: `response.agents_response.agents_usage_by_department_insights.[]` **Changed**
releaseNotes: "## Python SDK Changes Detected:\n* `glean.client.announcements.create()`: \n * `request.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added**\n * `response.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.announcements.update()`: \n * `request.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added**\n * `response.body.structured_list.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.answers.create()`: \n * `request.data.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.answers.update()`: \n * `request.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.answers.retrieve()`: `response.answer_result.answer.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.answers.list()`: `response.answer_results.[].answer.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.chat.create()`: \n * `request.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added**\n * `response.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by.metadata.timezone_iana` **Added**\n* `glean.client.chat.list()`: `response.chat_results.[].chat.created_by.metadata.timezone_iana` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages.[].citations.[].source_document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.collections.add_items()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.create()`: \n * `request.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.[class].collection.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.delete_item()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.update()`: \n * `request.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.update_item()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.retrieve()`: `response.collection.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.collections.list()`: `response.collections.[].added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.documents.retrieve()`: `response.documents.{}.[document].metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.documents.retrieve_by_facets()`: `response.documents.[].metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.insights.retrieve()`: `response.users.activity_insights.[].user.metadata.timezone_iana` **Added**\n* `glean.client.messages.retrieve()`: `response.search_response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.pins.update()`: `response.attribution.metadata.timezone_iana` **Added**\n* `glean.client.pins.retrieve()`: `response.pin.attribution.metadata.timezone_iana` **Added**\n* `glean.client.pins.list()`: `response.pins.[].attribution.metadata.timezone_iana` **Added**\n* `glean.client.pins.create()`: `response.attribution.metadata.timezone_iana` **Added**\n* `glean.client.search.query_as_admin()`: \n * `request.source_document.metadata.author.metadata.timezone_iana` **Added**\n * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.created_by.metadata.timezone_iana` **Added**\n* `glean.client.search.recommendations()`: \n * `request.source_document.metadata.author.metadata.timezone_iana` **Added**\n * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.search.query()`: \n * `request.source_document.metadata.author.metadata.timezone_iana` **Added**\n * `response.results.[].structured_results.[].document.metadata.author.metadata.timezone_iana` **Added**\n* `glean.client.entities.list()`: `response.results.[].metadata.timezone_iana` **Added**\n* `glean.client.entities.read_people()`: `response.results.[].metadata.timezone_iana` **Added**\n* `glean.client.shortcuts.create()`: \n * `request.data.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.shortcuts.retrieve()`: `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.shortcuts.list()`: `response.shortcuts.[].added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.shortcuts.update()`: \n * `request.added_roles.[].person.metadata.timezone_iana` **Added**\n * `response.shortcut.added_roles.[].person.metadata.timezone_iana` **Added**\n* `glean.client.verification.add_reminder()`: `response.metadata.last_verifier.metadata.timezone_iana` **Added**\n* `glean.client.verification.list()`: `response.documents.[].metadata.last_verifier.metadata.timezone_iana` **Added**\n* `glean.client.verification.verify()`: `response.metadata.last_verifier.metadata.timezone_iana` **Added**\n* `glean.client.governance.data.policies.retrieve()`: `response.report.config.sensitive_content_options.custom_sensitive_expressions` **Added**\n* `glean.client.governance.data.policies.update()`: \n * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added**\n* `glean.client.governance.data.policies.list()`: `response.reports.[].config.sensitive_content_options.custom_sensitive_expressions` **Added**\n* `glean.client.governance.data.policies.create()`: \n * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added**\n * `response.report.config.sensitive_content_options.custom_sensitive_expressions` **Added**\n* `glean.client.governance.data.reports.create()`: \n * `request.config.sensitive_content_options.custom_sensitive_expressions` **Added**\n"
5 changes: 3 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.11.22
version: 0.12.1
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -61,12 +61,14 @@ python:
operations: ""
shared: ""
webhooks: ""
inferUnionDiscriminators: true
inputModelSuffix: input
legacyPyright: true
license: ""
maxMethodParams: 999
methodArguments: infer-optional-args
moduleName: glean.api_client
multipartArrayFormat: standard
outputModelSuffix: output
packageManager: poetry
packageName: glean
Expand All @@ -75,4 +77,3 @@ python:
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
multipartArrayFormat: standard
116 changes: 111 additions & 5 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
x-source-commit-sha: 1c30a2e9466bf278374bd82863042433f7fa8a6d
x-source-commit-sha: afc48c97130c8266f20ef5b0ae52f1cc33582c8d
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.
Expand All @@ -22,7 +22,7 @@ info:
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
x-logo:
url: https://app.glean.com/images/glean-text2.svg
x-open-api-commit-sha: bfa098a27c3b8f11087766de34606765c946e305
x-open-api-commit-sha: 7303041639c4788cae9b7fc26efb38f8c87e5491
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -6473,6 +6473,9 @@ components:
type: integer
format: int64
description: The offset of the person's timezone in seconds from UTC.
timezoneIANA:
type: string
description: The IANA timezone identifier, e.g. "America/Los_Angeles".
photoUrl:
type: string
format: url
Expand Down Expand Up @@ -8069,6 +8072,7 @@ components:
- VISITORS_COUNT
- RECENT_SHARES
- DOCUMENT_CONTENT
- CUSTOM_METADATA
DocumentOrError:
oneOf:
- $ref: "#/components/schemas/Document"
Expand Down Expand Up @@ -12092,6 +12096,26 @@ components:
description: List of lifecycle events corresponding to the document
items:
$ref: "#/components/schemas/LifeCycleEvent"
SuccessResponse:
type: object
description: Success response for custom metadata operations
properties:
success:
type: boolean
description: Indicates if the operation was successful
default: true
ErrorInfoResponse:
type: object
description: Error response for custom metadata operations
properties:
error:
type: string
description: Error message describing what went wrong
message:
type: string
description: Additional details about the error
required:
- error
PropertyDefinition:
properties:
name:
Expand Down Expand Up @@ -12537,24 +12561,69 @@ components:
type: array
items:
$ref: "#/components/schemas/Hotword"
CustomSensitiveRuleType:
type: string
description: Type of the custom sensitive rule.
enum:
- REGEX
- TERM
- INFO_TYPE
CustomSensitiveRule:
properties:
id:
description: Identifier for the custom sensitive expression.
type: string
value:
type: string
description: The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options.
type:
$ref: "#/components/schemas/CustomSensitiveRuleType"
likelihoodThreshold:
description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type.
type: string
enum:
- LIKELY
- VERY_LIKELY
- POSSIBLE
- UNLIKELY
- VERY_UNLIKELY
CustomSensitiveExpression:
properties:
id:
description: Identifier for the custom sensitive expression.
type: string
keyword:
description: The keyword to match against.
$ref: "#/components/schemas/CustomSensitiveRule"
evaluationExpression:
description: The expression to evaluate the keyword match.
type: string
SensitiveContentOptions:
description: Options for defining sensitive content within scanned documents.
properties:
sensitiveInfoTypes:
description: Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types.
deprecated: true
description: DEPRECATED - use 'customSensitiveExpressions' instead.
type: array
items:
$ref: "#/components/schemas/SensitiveInfoType"
sensitiveTerms:
description: list of words and phrases to consider as sensitive content
deprecated: true
description: DEPRECATED - use 'customSensitiveExpressions' instead.
type: array
items:
$ref: "#/components/schemas/SensitiveExpression"
sensitiveRegexes:
description: list of regular expressions to consider as sensitive content
deprecated: true
description: DEPRECATED - use 'customSensitiveExpressions' instead.
type: array
items:
$ref: "#/components/schemas/SensitiveExpression"
customSensitiveExpressions:
description: list of custom sensitive expressions to consider as sensitive content
type: array
items:
$ref: "#/components/schemas/CustomSensitiveExpression"
DlpPersonMetadata:
properties:
firstName:
Expand Down Expand Up @@ -12869,6 +12938,43 @@ components:
description: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.
schema:
type: integer
responses:
SuccessResponse:
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/SuccessResponse"
BadRequestError:
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfoResponse"
UnauthorizedError:
description: Not Authorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfoResponse"
NotFoundError:
description: Not Found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfoResponse"
TooManyRequestsError:
description: Too Many Requests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfoResponse"
InternalServerError:
description: Internal Server Error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfoResponse"
x-tagGroups:
- name: Search & Generative AI
tags:
Expand Down
Loading