Skip to content

Commit 10d7b62

Browse files
committed
## Python SDK Changes:
* `glean.client.insights.retrieve()`: `response` **Changed** **Breaking** ⚠️ * `glean.client.pins.update()`: `response.attribution.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.answers.create()`: * `request.data.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `glean.client.answers.update()`: * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `glean.client.answers.retrieve()`: `response.answer_result.answer` **Changed** **Breaking** ⚠️ * `glean.client.verification.verify()`: `response.metadata.last_verifier.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.answers.list()`: `response.answer_results.[].answer` **Changed** **Breaking** ⚠️ * `glean.client.chat.create()`: * `request.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.chat.list()`: `response.chat_results.[].chat.created_by.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.chat.create_stream()`: * `request.messages.[].citations.[].source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.add_items()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.create()`: * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.[class].collection.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.delete_item()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.update()`: * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.update_item()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.retrieve()`: `response.collection.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.messages.retrieve()`: `response.search_response.results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.documents.retrieve()`: `response.documents.{}.[document].metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.documents.retrieve_by_facets()`: `response.documents.[].metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.announcements.update()`: * `request.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.announcements.create()`: * `request.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.body.structured_list.[].document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.collections.list()`: `response.collections.[].added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.pins.retrieve()`: `response.pin.attribution.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.pins.list()`: `response.pins.[].attribution.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.pins.create()`: `response.attribution.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.search.query_as_admin()`: * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.search.autocomplete()`: `response.results.[].document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.created_by.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.search.recommendations()`: * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.search.query()`: * `request.source_document.metadata.author.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.entities.list()`: `response.results.[].related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.entities.read_people()`: `response.results.[].related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.shortcuts.create()`: * `request.data.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.shortcuts.retrieve()`: `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.shortcuts.list()`: `response.shortcuts.[].added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.shortcuts.update()`: * `request.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `response.shortcut.added_roles.[].person.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.verification.add_reminder()`: `response.metadata.last_verifier.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.verification.list()`: `response.documents.[].metadata.last_verifier.related_documents.[].results.[].structured_results.[]` **Changed** **Breaking** ⚠️ * `glean.client.answers.list()`: **Deprecated** * `glean.client.governance.data.policies.download()`: `error.status[400]` **Added** * `glean.governance.createfindingsexport()`: * `request.filter.archived` **Added** * `response.filter.archived` **Added** * `glean.governance.listfindingsexports()`: `response.exports.[].filter.archived` **Added**
1 parent 36dc640 commit 10d7b62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+563
-3107
lines changed

.speakeasy/gen.lock

Lines changed: 82 additions & 95 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ generation:
3131
generateNewTests: true
3232
skipResponseBodyAssertions: true
3333
python:
34-
version: 0.11.25
34+
version: 0.11.26
3535
additionalDependencies:
3636
dev: {}
3737
main: {}
@@ -44,6 +44,7 @@ python:
4444
- Glean Technologies, Inc.
4545
baseErrorName: GleanBaseError
4646
clientServerStatusCodesAsErrors: true
47+
constFieldCasing: upper
4748
defaultErrorName: GleanError
4849
description: Python Client SDK Generated by Speakeasy.
4950
enableCustomCodeRegions: false

.speakeasy/glean-merged-spec.yaml

Lines changed: 51 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 6c18cdaa8da169e191cc66885c326e2ea6d13644
5+
x-source-commit-sha: 73720c10eb41436b03f8f69b30c5f1eaebe83136
66
description: |
77
# Introduction
88
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: c7a6190b989a16d24b879348f08e27efcb304566
25+
x-open-api-commit-sha: ef6741a4fcd031636396dc0ab0e89af1f1fba258
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -322,6 +322,7 @@ paths:
322322
summary: List Answers
323323
description: List Answers created by the current user.
324324
operationId: listanswers
325+
deprecated: true
325326
x-visibility: Public
326327
x-codegen-request-body-name: payload
327328
parameters: []
@@ -3350,6 +3351,8 @@ paths:
33503351
schema:
33513352
description: CSV of all the violations found for this policy.
33523353
type: string
3354+
"400":
3355+
description: Bad request error (e.g., continuous policies are not supported).
33533356
"403":
33543357
description: Permissions error
33553358
"500":
@@ -5293,39 +5296,6 @@ components:
52935296
items:
52945297
$ref: "#/components/schemas/FacetFilter"
52955298
description: Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search.
5296-
AnswerBoardMutableProperties:
5297-
allOf:
5298-
- $ref: "#/components/schemas/CollectionBaseMutableProperties"
5299-
AnswerBoard:
5300-
allOf:
5301-
- $ref: "#/components/schemas/AnswerBoardMutableProperties"
5302-
- $ref: "#/components/schemas/PermissionedObject"
5303-
- type: object
5304-
required:
5305-
- id
5306-
- description
5307-
properties:
5308-
id:
5309-
type: integer
5310-
description: The unique ID of the Answer Board.
5311-
createTime:
5312-
type: string
5313-
format: date-time
5314-
updateTime:
5315-
type: string
5316-
format: date-time
5317-
creator:
5318-
$ref: "#/components/schemas/Person"
5319-
updatedBy:
5320-
$ref: "#/components/schemas/Person"
5321-
itemCount:
5322-
type: integer
5323-
description: The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items.
5324-
roles:
5325-
type: array
5326-
description: A list of user roles for the Answer Board.
5327-
items:
5328-
$ref: "#/components/schemas/UserRoleSpecification"
53295299
Thumbnail:
53305300
properties:
53315301
photoId:
@@ -5622,9 +5592,6 @@ components:
56225592
$ref: "#/components/schemas/Person"
56235593
verification:
56245594
$ref: "#/components/schemas/Verification"
5625-
board:
5626-
$ref: "#/components/schemas/AnswerBoard"
5627-
description: The parent board this answer is in.
56285595
collections:
56295596
type: array
56305597
description: The collections to which the answer belongs.
@@ -5873,6 +5840,21 @@ components:
58735840
attendees:
58745841
$ref: "#/components/schemas/CalendarAttendees"
58755842
description: The attendee list, including their response status
5843+
isCancelled:
5844+
type: boolean
5845+
description: Whether the meeting has been cancelled
5846+
location:
5847+
type: string
5848+
description: The location/venue of the meeting
5849+
responseStatus:
5850+
type: string
5851+
description: The current user's response status (accepted, declined, tentativelyAccepted, none)
5852+
conferenceUri:
5853+
type: string
5854+
description: The meeting join link (Teams, Zoom, etc.)
5855+
conferenceProvider:
5856+
type: string
5857+
description: The conference provider (e.g., "Microsoft Teams", "Zoom")
58765858
AppResult:
58775859
required:
58785860
- datasource
@@ -6132,8 +6114,6 @@ components:
61326114
$ref: "#/components/schemas/AppResult"
61336115
collection:
61346116
$ref: "#/components/schemas/Collection"
6135-
answerBoard:
6136-
$ref: "#/components/schemas/AnswerBoard"
61376117
code:
61386118
$ref: "#/components/schemas/Code"
61396119
shortcut:
@@ -7617,6 +7597,9 @@ components:
76177597
chatId:
76187598
type: string
76197599
description: The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true.
7600+
agentConfig:
7601+
$ref: "#/components/schemas/AgentConfig"
7602+
description: Describes the agent that will execute the request.
76207603
ChatRestrictionFilters:
76217604
allOf:
76227605
- $ref: "#/components/schemas/RestrictionFilters"
@@ -7635,9 +7618,6 @@ components:
76357618
- $ref: "#/components/schemas/ChatRequestBase"
76367619
- type: object
76377620
properties:
7638-
agentConfig:
7639-
$ref: "#/components/schemas/AgentConfig"
7640-
description: Describes the agent that will execute the request.
76417621
inclusions:
76427622
$ref: "#/components/schemas/ChatRestrictionFilters"
76437623
description: A list of filters which only allows chat to access certain content.
@@ -8190,6 +8170,7 @@ components:
81908170
- DOCUMENT_CONTENT
81918171
- CUSTOM_METADATA
81928172
DocumentOrError:
8173+
x-omit-error-on-success: true
81938174
oneOf:
81948175
- $ref: "#/components/schemas/Document"
81958176
- type: object
@@ -8199,6 +8180,7 @@ components:
81998180
error:
82008181
type: string
82018182
description: The text for error, reason.
8183+
x-is-error-field: true
82028184
GetDocumentsResponse:
82038185
properties:
82048186
documents:
@@ -8718,6 +8700,30 @@ components:
87188700
$ref: "#/components/schemas/LabeledCountInfo"
87198701
dailyActiveUserTimeseries:
87208702
$ref: "#/components/schemas/LabeledCountInfo"
8703+
searchMonthlyActiveUserTimeseries:
8704+
$ref: "#/components/schemas/LabeledCountInfo"
8705+
searchWeeklyActiveUserTimeseries:
8706+
$ref: "#/components/schemas/LabeledCountInfo"
8707+
searchDailyActiveUserTimeseries:
8708+
$ref: "#/components/schemas/LabeledCountInfo"
8709+
assistantMonthlyActiveUserTimeseries:
8710+
$ref: "#/components/schemas/LabeledCountInfo"
8711+
assistantWeeklyActiveUserTimeseries:
8712+
$ref: "#/components/schemas/LabeledCountInfo"
8713+
assistantDailyActiveUserTimeseries:
8714+
$ref: "#/components/schemas/LabeledCountInfo"
8715+
agentsMonthlyActiveUserTimeseries:
8716+
$ref: "#/components/schemas/LabeledCountInfo"
8717+
agentsWeeklyActiveUserTimeseries:
8718+
$ref: "#/components/schemas/LabeledCountInfo"
8719+
agentsDailyActiveUserTimeseries:
8720+
$ref: "#/components/schemas/LabeledCountInfo"
8721+
searchesTimeseries:
8722+
$ref: "#/components/schemas/LabeledCountInfo"
8723+
assistantInteractionsTimeseries:
8724+
$ref: "#/components/schemas/LabeledCountInfo"
8725+
agentRunsTimeseries:
8726+
$ref: "#/components/schemas/LabeledCountInfo"
87218727
searchDatasourceCounts:
87228728
type: object
87238729
additionalProperties:
@@ -13045,6 +13051,8 @@ components:
1304513051
$ref: "#/components/schemas/DlpSeverity"
1304613052
timeRange:
1304713053
$ref: "#/components/schemas/TimeRangeFilter"
13054+
archived:
13055+
type: boolean
1304813056
ExportInfo:
1304913057
properties:
1305013058
createdBy:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.675.4
1+
speakeasyVersion: 1.684.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f
6-
sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8
5+
sourceRevisionDigest: sha256:6d8301e13d8e824b0cd5b359d82a63cc89bafab76acc286598e1b1664584d8f9
6+
sourceBlobDigest: sha256:8fc1fa0fba592a00be2d0babfe89769f8c0413ec5fa6efe586e88b80a69825a1
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1765503976
9+
- speakeasy-sdk-regen-1765586442
1010
Glean Client API:
1111
sourceNamespace: glean-client-api
1212
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f
21-
sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8
20+
sourceRevisionDigest: sha256:6d8301e13d8e824b0cd5b359d82a63cc89bafab76acc286598e1b1664584d8f9
21+
sourceBlobDigest: sha256:8fc1fa0fba592a00be2d0babfe89769f8c0413ec5fa6efe586e88b80a69825a1
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:f411ba167f9247fde5f4d1684411db4c43e5c04dcdcf5a631b904551a5fed7b1
23+
codeSamplesRevisionDigest: sha256:ed0360d9bd610f85a768b928c8f875d2ccedd748f4c54b0c5d244637a74c3d0a
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ For more information on obtaining the appropriate token type, please contact you
361361
* [delete](docs/sdks/answers/README.md#delete) - Delete Answer
362362
* [update](docs/sdks/answers/README.md#update) - Update Answer
363363
* [retrieve](docs/sdks/answers/README.md#retrieve) - Read Answer
364-
* [list](docs/sdks/answers/README.md#list) - List Answers
364+
* [~~list~~](docs/sdks/answers/README.md#list) - List Answers :warning: **Deprecated**
365365

366366
### [Client.Authentication](docs/sdks/clientauthentication/README.md)
367367

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,4 +478,14 @@ Based on:
478478
### Generated
479479
- [python v0.11.25] .
480480
### Releases
481-
- [PyPI v0.11.25] https://pypi.org/project/glean-api-client/0.11.25 - .
481+
- [PyPI v0.11.25] https://pypi.org/project/glean-api-client/0.11.25 - .
482+
483+
## 2026-01-09 19:30:50
484+
### Changes
485+
Based on:
486+
- OpenAPI Doc
487+
- Speakeasy CLI 1.684.0 (2.793.0) https://github.com/speakeasy-api/speakeasy
488+
### Generated
489+
- [python v0.11.26] .
490+
### Releases
491+
- [PyPI v0.11.26] https://pypi.org/project/glean-api-client/0.11.26 - .

0 commit comments

Comments
 (0)