Skip to content

Commit b851360

Browse files
committed
## Python SDK Changes:
* `glean.client.chat.create()`: `response.chat` **Added** * `glean.client.search.retrieve_feed()`: * `request.categories[]` **Changed** * `response.results[]` **Changed**
1 parent 5608e34 commit b851360

26 files changed

+288
-97
lines changed

.speakeasy/gen.lock

Lines changed: 47 additions & 47 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.12.10
37+
version: 0.12.11
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/glean-merged-spec.yaml

Lines changed: 28 additions & 4 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: a5baf32ff20e181a9adf12f9b9eba1c2421e5024
5+
x-source-commit-sha: 7a7b088ee2579f06e8c75700cf68d3021ff77c5f
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: 238bce820eef8f0f78d4793d3424d4e78944d066
25+
x-open-api-commit-sha: b44ae5cd8ae20dd697ad17378df510a0c3f6d340
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -6582,6 +6582,7 @@ components:
65826582
introduced: "2026-02-05"
65836583
message: Use 'text' field instead
65846584
removal: "2026-10-15"
6585+
x-includeEmpty: true
65856586
x-speakeasy-deprecation-message: "Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Use 'text' field instead"
65866587
example:
65876588
snippet: snippet
@@ -8297,6 +8298,8 @@ components:
82978298
chatId:
82988299
type: string
82998300
description: The id of the associated Chat the messages belong to, if one exists.
8301+
chat:
8302+
$ref: "#/components/schemas/ChatMetadata"
83008303
followUpPrompts:
83018304
type: array
83028305
items:
@@ -10112,6 +10115,12 @@ components:
1011210115
- ZERO_STATE_WORKFLOW_SUGGESTION
1011310116
- PERSONALIZED_CHAT_SUGGESTION
1011410117
- DAILY_DIGEST
10118+
- TASK
10119+
- PLAN_MY_DAY
10120+
- END_MY_DAY
10121+
- STARTER_KIT
10122+
- MID_DAY_CATCH_UP
10123+
- QUERY_SUGGESTION
1011510124
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
1011610125
requestOptions:
1011710126
$ref: "#/components/schemas/FeedRequestOptions"
@@ -10431,13 +10440,22 @@ components:
1043110440
$ref: "#/components/schemas/UserRoleSpecification"
1043210441
UgcType:
1043310442
enum:
10443+
- AGENT_TYPE
1043410444
- ANNOUNCEMENTS_TYPE
1043510445
- ANSWERS_TYPE
10446+
- CHATS_TYPE
1043610447
- COLLECTIONS_TYPE
10448+
- EMAIL_TYPE
10449+
- HTML_CODE_TYPE
10450+
- IMAGE_TYPE
10451+
- MESSAGE_TYPE
10452+
- PAPER_TYPE
10453+
- PRISM_VIEWS_TYPE
10454+
- PROMPT_TEMPLATES_TYPE
10455+
- SCRIBES_TYPE
1043710456
- SHORTCUTS_TYPE
10457+
- SLIDE_TYPE
1043810458
- WORKFLOWS_TYPE
10439-
- PROMPT_TEMPLATES_TYPE
10440-
- PRISM_VIEWS_TYPE
1044110459
FavoriteInfo:
1044210460
type: object
1044310461
properties:
@@ -10599,6 +10617,10 @@ components:
1059910617
- STARTER_KIT_EXTENSION
1060010618
- STARTER_KIT_ORG_CHART
1060110619
- STARTER_KIT_ADD_DOC
10620+
- MEETING_RECAP
10621+
- ACTIVE_DISCUSSION
10622+
- MID_DAY_CATCH_UP
10623+
- QUERY_SUGGESTION
1060210624
description: Type of the justification.
1060310625
justification:
1060410626
type: string
@@ -10675,6 +10697,8 @@ components:
1067510697
- PLAN_MY_DAY
1067610698
- END_MY_DAY
1067710699
- STARTER_KIT
10700+
- MID_DAY_CATCH_UP
10701+
- QUERY_SUGGESTION
1067810702
description: Category of the result, one of the requested categories in incoming request.
1067910703
primaryEntry:
1068010704
$ref: "#/components/schemas/FeedEntry"

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.751.0
1+
speakeasyVersion: 1.755.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:f166c61c7e7a52f62d5ddcc80f0e1247867cfa9a89d6bdf2679daca84d0efadc
6-
sourceBlobDigest: sha256:a5efacbcf3c78ffd7268b357723e4892a115562dd5392fbcd6ab6141c014516f
5+
sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732
6+
sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d
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:f166c61c7e7a52f62d5ddcc80f0e1247867cfa9a89d6bdf2679daca84d0efadc
20-
sourceBlobDigest: sha256:a5efacbcf3c78ffd7268b357723e4892a115562dd5392fbcd6ab6141c014516f
19+
sourceRevisionDigest: sha256:db4d1b0e0b2d0d7f2a68642d8f04dd9235db9277c46ea9ae836bb9e3ff77b732
20+
sourceBlobDigest: sha256:40e4b60b39db239ee858446a99a1816379c1b7dc19397d3947bd27588a5a3e8d
2121
codeSamplesNamespace: glean-api-specs-python-code-samples
22-
codeSamplesRevisionDigest: sha256:dac0cc25e8448625efa55da8fa7c5d7da718e204f3c52763fe7bcce62d679838
22+
codeSamplesRevisionDigest: sha256:f4615b6dd347d241e08a8623565822a3000c595656b93a0b0b374f359e7693b6
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
@@ -608,4 +608,14 @@ Based on:
608608
### Generated
609609
- [python v0.12.10] .
610610
### Releases
611-
- [PyPI v0.12.10] https://pypi.org/project/glean-api-client/0.12.10 - .
611+
- [PyPI v0.12.10] https://pypi.org/project/glean-api-client/0.12.10 - .
612+
613+
## 2026-03-16 01:17:06
614+
### Changes
615+
Based on:
616+
- OpenAPI Doc
617+
- Speakeasy CLI 1.755.0 (2.865.2) https://github.com/speakeasy-api/speakeasy
618+
### Generated
619+
- [python v0.12.11] .
620+
### Releases
621+
- [PyPI v0.12.11] https://pypi.org/project/glean-api-client/0.12.11 - .

docs/models/chatresponse.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ A single response from the /chat backend.
55

66
## Fields
77

8-
| Field | Type | Required | Description | Example |
9-
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
10-
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | N/A | |
11-
| `chat_id` | *Optional[str]* | :heavy_minus_sign: | The id of the associated Chat the messages belong to, if one exists. | |
12-
| `follow_up_prompts` | List[*str*] | :heavy_minus_sign: | Follow-up prompts for the user to potentially use | |
13-
| `backend_time_millis` | *Optional[int]* | :heavy_minus_sign: | Time in milliseconds the backend took to respond to the request. | 1100 |
14-
| `chat_session_tracking_token` | *Optional[str]* | :heavy_minus_sign: | A token that is used to track the session. | |
8+
| Field | Type | Required | Description | Example |
9+
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
10+
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | N/A | |
11+
| `chat_id` | *Optional[str]* | :heavy_minus_sign: | The id of the associated Chat the messages belong to, if one exists. | |
12+
| `chat` | [Optional[models.ChatMetadata]](../models/chatmetadata.md) | :heavy_minus_sign: | Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. | |
13+
| `follow_up_prompts` | List[*str*] | :heavy_minus_sign: | Follow-up prompts for the user to potentially use | |
14+
| `backend_time_millis` | *Optional[int]* | :heavy_minus_sign: | Time in milliseconds the backend took to respond to the request. | 1100 |
15+
| `chat_session_tracking_token` | *Optional[str]* | :heavy_minus_sign: | A token that is used to track the session. | |

docs/models/feedrequestcategory.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ value = FeedRequestCategory.DOCUMENT_SUGGESTION
3737
| `ZERO_STATE_WORKFLOW_RECENT` | ZERO_STATE_WORKFLOW_RECENT |
3838
| `ZERO_STATE_WORKFLOW_SUGGESTION` | ZERO_STATE_WORKFLOW_SUGGESTION |
3939
| `PERSONALIZED_CHAT_SUGGESTION` | PERSONALIZED_CHAT_SUGGESTION |
40-
| `DAILY_DIGEST` | DAILY_DIGEST |
40+
| `DAILY_DIGEST` | DAILY_DIGEST |
41+
| `TASK` | TASK |
42+
| `PLAN_MY_DAY` | PLAN_MY_DAY |
43+
| `END_MY_DAY` | END_MY_DAY |
44+
| `STARTER_KIT` | STARTER_KIT |
45+
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
46+
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |

docs/models/feedresultcategory.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ value = FeedResultCategory.DOCUMENT_SUGGESTION
4545
| `TASK` | TASK |
4646
| `PLAN_MY_DAY` | PLAN_MY_DAY |
4747
| `END_MY_DAY` | END_MY_DAY |
48-
| `STARTER_KIT` | STARTER_KIT |
48+
| `STARTER_KIT` | STARTER_KIT |
49+
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
50+
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |

docs/models/justificationtype.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ value = JustificationType.FREQUENTLY_ACCESSED
5656
| `END_MY_DAY` | END_MY_DAY |
5757
| `STARTER_KIT_EXTENSION` | STARTER_KIT_EXTENSION |
5858
| `STARTER_KIT_ORG_CHART` | STARTER_KIT_ORG_CHART |
59-
| `STARTER_KIT_ADD_DOC` | STARTER_KIT_ADD_DOC |
59+
| `STARTER_KIT_ADD_DOC` | STARTER_KIT_ADD_DOC |
60+
| `MEETING_RECAP` | MEETING_RECAP |
61+
| `ACTIVE_DISCUSSION` | ACTIVE_DISCUSSION |
62+
| `MID_DAY_CATCH_UP` | MID_DAY_CATCH_UP |
63+
| `QUERY_SUGGESTION` | QUERY_SUGGESTION |

docs/models/ugctype.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```python
66
from glean.api_client.models import UgcType
77

8-
value = UgcType.ANNOUNCEMENTS_TYPE
8+
value = UgcType.AGENT_TYPE
99

1010
# Open enum: unrecognized values are captured as UnrecognizedStr
1111
```
@@ -15,10 +15,19 @@ value = UgcType.ANNOUNCEMENTS_TYPE
1515

1616
| Name | Value |
1717
| ----------------------- | ----------------------- |
18+
| `AGENT_TYPE` | AGENT_TYPE |
1819
| `ANNOUNCEMENTS_TYPE` | ANNOUNCEMENTS_TYPE |
1920
| `ANSWERS_TYPE` | ANSWERS_TYPE |
21+
| `CHATS_TYPE` | CHATS_TYPE |
2022
| `COLLECTIONS_TYPE` | COLLECTIONS_TYPE |
21-
| `SHORTCUTS_TYPE` | SHORTCUTS_TYPE |
22-
| `WORKFLOWS_TYPE` | WORKFLOWS_TYPE |
23+
| `EMAIL_TYPE` | EMAIL_TYPE |
24+
| `HTML_CODE_TYPE` | HTML_CODE_TYPE |
25+
| `IMAGE_TYPE` | IMAGE_TYPE |
26+
| `MESSAGE_TYPE` | MESSAGE_TYPE |
27+
| `PAPER_TYPE` | PAPER_TYPE |
28+
| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE |
2329
| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE |
24-
| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE |
30+
| `SCRIBES_TYPE` | SCRIBES_TYPE |
31+
| `SHORTCUTS_TYPE` | SHORTCUTS_TYPE |
32+
| `SLIDE_TYPE` | SLIDE_TYPE |
33+
| `WORKFLOWS_TYPE` | WORKFLOWS_TYPE |

0 commit comments

Comments
 (0)