Skip to content

Commit 203ec8e

Browse files
committed
## Python SDK Changes:
* `glean.agents.search()`: `error` **Changed** * `glean.agents.get()`: `error.code.enum(request_too_large)` **Added** * `glean.agents.get_schemas()`: `error.code.enum(request_too_large)` **Added** * `glean.agents.create_run()`: `error` **Changed** * `glean.search.query()`: `error` **Changed** * `glean.client.announcements.create()`: * `request.body.structured_list[].document.metadata.author.related_documents[].results[]` **Changed** * `response` **Changed** * `glean.client.announcements.update()`: * `request.body.structured_list[].document.metadata.author.related_documents[].results[]` **Changed** * `response` **Changed** * `glean.client.answers.create()`: * `request.data.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.answers.update()`: * `request.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.answers.retrieve()`: `response.answer_result` **Changed** * `glean.client.answers.list()`: `response.answer_results[]` **Changed** * `glean.client.chat.create()`: * `request.messages[].citations[].source_document.metadata.author.related_documents[].results[]` **Changed** * `response.messages[].citations[].source_document.metadata.author.related_documents[].results[]` **Changed** * `glean.client.chat.retrieve()`: `response.chat_result.chat.created_by.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.chat.list()`: `response.chat_results[].chat.created_by.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.chat.create_stream()`: * `request.messages[].citations[].source_document.metadata.author.related_documents[].results[]` **Changed** * `glean.client.agents.create()`: `response.workflow.author.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.collections.add_items()`: `response.collection` **Changed** * `glean.client.collections.create()`: * `request.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response.union(class (0)).collection` **Changed** * `glean.client.collections.delete_item()`: `response.collection` **Changed** * `glean.client.collections.update()`: * `request.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response` **Changed** * `glean.client.collections.update_item()`: `response.collection` **Changed** * `glean.client.collections.retrieve()`: `response.collection` **Changed** * `glean.client.collections.list()`: `response.collections[]` **Changed** * `glean.client.documents.retrieve()`: `response.documents.Map<DocumentOrError>.union(Document).metadata.author.related_documents[].results[]` **Changed** * `glean.client.documents.retrieve_by_facets()`: `response.documents[].metadata.author.related_documents[].results[]` **Changed** * `glean.client.insights.retrieve()`: `response.glean_assist.activity_insights[].user.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.messages.retrieve()`: `response.search_response.results[].structured_results[].document.metadata` **Changed** * `glean.client.pins.update()`: `response` **Changed** * `glean.client.pins.retrieve()`: `response.pin` **Changed** * `glean.client.pins.list()`: `response.pins[]` **Changed** * `glean.client.pins.create()`: `response` **Changed** * `glean.client.search.query_as_admin()`: * `request.source_document.metadata.author.related_documents[].results[]` **Changed** * `response.results[].structured_results[].document.metadata` **Changed** * `glean.client.search.autocomplete()`: `response.results[].document.metadata.author.related_documents[].results[]` **Changed** * `glean.client.search.retrieve_feed()`: `response.results[].primary_entry` **Changed** * `glean.client.search.recommendations()`: * `request.source_document.metadata.author.related_documents[].results[]` **Changed** * `response.results[].structured_results[].document.metadata` **Changed** * `glean.client.search.query()`: * `request.source_document.metadata.author.related_documents[].results[]` **Changed** * `response.results[].structured_results[].document.metadata` **Changed** * `glean.client.entities.list()`: `response.results[].related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.entities.read_people()`: `response.results[].related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.shortcuts.create()`: * `request.data.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response.shortcut` **Changed** * `glean.client.shortcuts.retrieve()`: `response.shortcut` **Changed** * `glean.client.shortcuts.list()`: `response.shortcuts[]` **Changed** * `glean.client.shortcuts.update()`: * `request.added_roles[].person.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `response.shortcut` **Changed** * `glean.client.verification.add_reminder()`: `response.metadata.last_verifier.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.verification.list()`: `response.documents[].metadata.last_verifier.related_documents[].query_suggestion.ranges[].document.metadata` **Changed** * `glean.client.verification.verify()`: `response.metadata.last_verifier.related_documents[].query_suggestion.ranges[].document.metadata` **Changed**
1 parent 02249f4 commit 203ec8e

35 files changed

Lines changed: 302 additions & 193 deletions

.speakeasy/gen.lock

Lines changed: 67 additions & 105 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: true
3535
skipResponseBodyAssertions: true
3636
python:
37-
version: 0.15.0
37+
version: 0.15.1
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 64 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ openapi: 3.0.0
22
info:
33
version: "0.9.0"
44
title: Glean API
5-
x-source-commit-sha: 750ec3e4db6f2877f191460b47bff807273c68d8
6-
x-open-api-commit-sha: 5130487252df59e5fe21a96c4e758609933045da
5+
x-source-commit-sha: 45cf1612467e6d18655d1b9abb71df5af41745c8
6+
x-open-api-commit-sha: 5e1c0246e3a646bf164cde427461f3bffe7c2fc4
77
description: |
88
# Introduction
99
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.
@@ -67,6 +67,8 @@ paths:
6767
$ref: "#/components/responses/PlatformNotFound"
6868
"408":
6969
$ref: "#/components/responses/PlatformRequestTimeout"
70+
"413":
71+
$ref: "#/components/responses/PlatformRequestTooLarge"
7072
"429":
7173
$ref: "#/components/responses/PlatformTooManyRequests"
7274
"500":
@@ -236,6 +238,8 @@ paths:
236238
$ref: "#/components/responses/PlatformRequestTimeout"
237239
"409":
238240
$ref: "#/components/responses/PlatformConflict"
241+
"413":
242+
$ref: "#/components/responses/PlatformRequestTooLarge"
239243
"429":
240244
$ref: "#/components/responses/PlatformTooManyRequests"
241245
"500":
@@ -282,6 +286,8 @@ paths:
282286
$ref: "#/components/responses/PlatformNotFound"
283287
"408":
284288
$ref: "#/components/responses/PlatformRequestTimeout"
289+
"413":
290+
$ref: "#/components/responses/PlatformRequestTooLarge"
285291
"429":
286292
$ref: "#/components/responses/PlatformTooManyRequests"
287293
"500":
@@ -5078,6 +5084,7 @@ components:
50785084
- resource_not_found
50795085
- method_not_allowed
50805086
- request_timeout
5087+
- request_too_large
50815088
- conflict
50825089
- gone
50835090
- unprocessable_query
@@ -5248,6 +5255,7 @@ components:
52485255
$ref: "#/components/schemas/PlatformMessageRole"
52495256
content:
52505257
type: array
5258+
minItems: 1
52515259
description: Content blocks in the message.
52525260
items:
52535261
$ref: "#/components/schemas/PlatformMessageTextBlock"
@@ -7260,6 +7268,44 @@ components:
72607268
editUrl:
72617269
type: string
72627270
description: The URL using which the user can access the edit page of the shortcut.
7271+
UgcType:
7272+
enum:
7273+
- AGENT_TYPE
7274+
- ANNOUNCEMENTS_TYPE
7275+
- ANSWERS_TYPE
7276+
- CHATS_TYPE
7277+
- COLLECTIONS_TYPE
7278+
- EMAIL_TYPE
7279+
- HTML_CODE_TYPE
7280+
- IMAGE_TYPE
7281+
- MESSAGE_TYPE
7282+
- PAPER_TYPE
7283+
- PRISM_VIEWS_TYPE
7284+
- PROMPT_TEMPLATES_TYPE
7285+
- PINS_TYPE
7286+
- SCRIBES_TYPE
7287+
- SHORTCUTS_TYPE
7288+
- SLIDE_TYPE
7289+
- SPREADSHEET_TYPE
7290+
- INLINE_HTML_TYPE
7291+
- PODCAST_TYPE
7292+
- WORKFLOWS_TYPE
7293+
FavoriteInfo:
7294+
type: object
7295+
properties:
7296+
ugcType:
7297+
$ref: '#/components/schemas/UgcType'
7298+
id:
7299+
type: string
7300+
description: Opaque id of the UGC.
7301+
count:
7302+
type: integer
7303+
description: Number of users this object has been favorited by.
7304+
x-includeEmpty: true
7305+
favoritedByUser:
7306+
type: boolean
7307+
description: If the requesting user has favorited this object.
7308+
x-includeEmpty: true
72637309
Shortcut:
72647310
allOf:
72657311
- $ref: '#/components/schemas/UserGeneratedContentId'
@@ -7279,6 +7325,8 @@ components:
72797325
items:
72807326
$ref: '#/components/schemas/UserRoleSpecification'
72817327
description: A list of user roles for the Go Link.
7328+
favoriteInfo:
7329+
$ref: '#/components/schemas/FavoriteInfo'
72827330
required:
72837331
- inputAlias
72847332
Collection:
@@ -7330,6 +7378,8 @@ components:
73307378
items:
73317379
$ref: '#/components/schemas/UserRoleSpecification'
73327380
description: A list of user roles for the Collection.
7381+
favoriteInfo:
7382+
$ref: '#/components/schemas/FavoriteInfo'
73337383
required:
73347384
- id
73357385
- description
@@ -8144,6 +8194,8 @@ components:
81448194
updateTime:
81458195
type: string
81468196
format: date-time
8197+
favoriteInfo:
8198+
$ref: '#/components/schemas/FavoriteInfo'
81478199
required:
81488200
- documentId
81498201
PersonTeam:
@@ -8969,6 +9021,8 @@ components:
89699021
isPublished:
89709022
type: boolean
89719023
description: Whether or not the announcement is published.
9024+
favoriteInfo:
9025+
$ref: '#/components/schemas/FavoriteInfo'
89729026
DeleteAnnouncementRequest:
89739027
properties:
89749028
id:
@@ -9055,6 +9109,8 @@ components:
90559109
message: Use `answer.trackingToken` instead.
90569110
removal: "2027-01-15"
90579111
x-speakeasy-deprecation-message: "Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead."
9112+
favoriteInfo:
9113+
$ref: '#/components/schemas/FavoriteInfo'
90589114
required:
90599115
- answer
90609116
GetAnswerError:
@@ -12239,44 +12295,6 @@ components:
1223912295
items:
1224012296
$ref: '#/components/schemas/UserRoleSpecification'
1224112297
description: A list of roles for this prompt template explicitly granted.
12242-
UgcType:
12243-
enum:
12244-
- AGENT_TYPE
12245-
- ANNOUNCEMENTS_TYPE
12246-
- ANSWERS_TYPE
12247-
- CHATS_TYPE
12248-
- COLLECTIONS_TYPE
12249-
- EMAIL_TYPE
12250-
- HTML_CODE_TYPE
12251-
- IMAGE_TYPE
12252-
- MESSAGE_TYPE
12253-
- PAPER_TYPE
12254-
- PRISM_VIEWS_TYPE
12255-
- PROMPT_TEMPLATES_TYPE
12256-
- PINS_TYPE
12257-
- SCRIBES_TYPE
12258-
- SHORTCUTS_TYPE
12259-
- SLIDE_TYPE
12260-
- SPREADSHEET_TYPE
12261-
- INLINE_HTML_TYPE
12262-
- PODCAST_TYPE
12263-
- WORKFLOWS_TYPE
12264-
FavoriteInfo:
12265-
type: object
12266-
properties:
12267-
ugcType:
12268-
$ref: '#/components/schemas/UgcType'
12269-
id:
12270-
type: string
12271-
description: Opaque id of the UGC.
12272-
count:
12273-
type: integer
12274-
description: Number of users this object has been favorited by.
12275-
x-includeEmpty: true
12276-
favoritedByUser:
12277-
type: boolean
12278-
description: If the requesting user has favorited this object.
12279-
x-includeEmpty: true
1228012298
PromptTemplateResult:
1228112299
properties:
1228212300
promptTemplate:
@@ -15756,6 +15774,12 @@ components:
1575615774
application/problem+json:
1575715775
schema:
1575815776
$ref: "#/components/schemas/PlatformProblemDetail"
15777+
PlatformRequestTooLarge:
15778+
description: Request body exceeds the maximum allowed size.
15779+
content:
15780+
application/problem+json:
15781+
schema:
15782+
$ref: "#/components/schemas/PlatformProblemDetail"
1575915783
PlatformTooManyRequests:
1576015784
description: Rate limit exceeded. Includes Retry-After header.
1576115785
content:

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ speakeasyVersion: 1.788.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:246abdd49c246fce5b73bbb889da02141eaebcb7518c0ec21dbfbb75b3a53294
6-
sourceBlobDigest: sha256:def1b0c41f5ee4bd90ba40af9ce88738cd00213633e1ca6b261558b6d885ab04
5+
sourceRevisionDigest: sha256:c765dfba159c4827f8c780ee9efcd0d992415d96868e6eceed3a3b162f672e79
6+
sourceBlobDigest: sha256:6b24ba40b15f4dd22b26d876c8a292e186bed93049dafff0b8ae5586cd12045e
77
tags:
88
- latest
99
Glean Client API:
@@ -16,10 +16,10 @@ targets:
1616
glean:
1717
source: Glean API
1818
sourceNamespace: glean-api-specs
19-
sourceRevisionDigest: sha256:246abdd49c246fce5b73bbb889da02141eaebcb7518c0ec21dbfbb75b3a53294
20-
sourceBlobDigest: sha256:def1b0c41f5ee4bd90ba40af9ce88738cd00213633e1ca6b261558b6d885ab04
19+
sourceRevisionDigest: sha256:c765dfba159c4827f8c780ee9efcd0d992415d96868e6eceed3a3b162f672e79
20+
sourceBlobDigest: sha256:6b24ba40b15f4dd22b26d876c8a292e186bed93049dafff0b8ae5586cd12045e
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:fa15e6b73c9103819abf5631fe1c2785637831631b6afcad6feff7673f2a1aac
22+
codeSamplesRevisionDigest: sha256:42ee88e1e120eaba45acb7fec56cd56a4a6c0988876f4b9be96e2ac3adf98ea9
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,4 +768,14 @@ Based on:
768768
### Generated
769769
- [python v0.15.0] .
770770
### Releases
771-
- [PyPI v0.15.0] https://pypi.org/project/glean-api-client/0.15.0 - .
771+
- [PyPI v0.15.0] https://pypi.org/project/glean-api-client/0.15.0 - .
772+
773+
## 2026-07-02 21:36:05
774+
### Changes
775+
Based on:
776+
- OpenAPI Doc
777+
- Speakeasy CLI 1.788.0 (2.915.0) https://github.com/speakeasy-api/speakeasy
778+
### Generated
779+
- [python v0.15.1] .
780+
### Releases
781+
- [PyPI v0.15.1] https://pypi.org/project/glean-api-client/0.15.1 - .

docs/models/announcement.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
| `updated_by` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
3030
| `viewer_info` | [Optional[models.AnnouncementViewerInfo]](../models/announcementviewerinfo.md) | :heavy_minus_sign: | N/A | |
3131
| `source_document` | [Optional[models.Document]](../models/document.md) | :heavy_minus_sign: | N/A | |
32-
| `is_published` | *Optional[bool]* | :heavy_minus_sign: | Whether or not the announcement is published. | |
32+
| `is_published` | *Optional[bool]* | :heavy_minus_sign: | Whether or not the announcement is published. | |
33+
| `favorite_info` | [Optional[models.FavoriteInfo]](../models/favoriteinfo.md) | :heavy_minus_sign: | N/A | |

docs/models/answerresult.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
88
| `answer` | [models.Answer](../models/answer.md) | :heavy_check_mark: | N/A |
9-
| ~~`tracking_token`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead..<br/><br/>Use `answer.trackingToken` instead. |
9+
| ~~`tracking_token`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: Deprecated on 2026-05-07, removal scheduled for 2027-01-15: Use `answer.trackingToken` instead..<br/><br/>Use `answer.trackingToken` instead. |
10+
| `favorite_info` | [Optional[models.FavoriteInfo]](../models/favoriteinfo.md) | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)