Skip to content

Commit 88a30c2

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 88a30c2

25 files changed

Lines changed: 279 additions & 93 deletions

.speakeasy/gen.lock

Lines changed: 45 additions & 45 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: 27 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: 1b00ce498fb6a689bb639411b7d7e66ec747a572
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: d22523cc7a5c6698515d540e5b1e9a6753639166
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,21 @@ components:
1043110440
$ref: "#/components/schemas/UserRoleSpecification"
1043210441
UgcType:
1043310442
enum:
10443+
- AGENT_TYPE
1043410444
- ANNOUNCEMENTS_TYPE
1043510445
- ANSWERS_TYPE
1043610446
- COLLECTIONS_TYPE
10447+
- EMAIL_TYPE
10448+
- HTML_CODE_TYPE
10449+
- IMAGE_TYPE
10450+
- MESSAGE_TYPE
10451+
- PAPER_TYPE
10452+
- PRISM_VIEWS_TYPE
10453+
- PROMPT_TEMPLATES_TYPE
10454+
- SCRIBES_TYPE
1043710455
- SHORTCUTS_TYPE
10456+
- SLIDE_TYPE
1043810457
- WORKFLOWS_TYPE
10439-
- PROMPT_TEMPLATES_TYPE
10440-
- PRISM_VIEWS_TYPE
1044110458
FavoriteInfo:
1044210459
type: object
1044310460
properties:
@@ -10599,6 +10616,10 @@ components:
1059910616
- STARTER_KIT_EXTENSION
1060010617
- STARTER_KIT_ORG_CHART
1060110618
- STARTER_KIT_ADD_DOC
10619+
- MEETING_RECAP
10620+
- ACTIVE_DISCUSSION
10621+
- MID_DAY_CATCH_UP
10622+
- QUERY_SUGGESTION
1060210623
description: Type of the justification.
1060310624
justification:
1060410625
type: string
@@ -10675,6 +10696,8 @@ components:
1067510696
- PLAN_MY_DAY
1067610697
- END_MY_DAY
1067710698
- STARTER_KIT
10699+
- MID_DAY_CATCH_UP
10700+
- QUERY_SUGGESTION
1067810701
description: Category of the result, one of the requested categories in incoming request.
1067910702
primaryEntry:
1068010703
$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:6b1b161cb1a2b440b40a87b5b7ccef3b35fcfc6a9b6ad40cabfd1bd0c8cb93e5
6+
sourceBlobDigest: sha256:3ffaa58d76883d7edec8b863fe726d57c83d2c1b12d2f2579d486406a7dd6ee1
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:6b1b161cb1a2b440b40a87b5b7ccef3b35fcfc6a9b6ad40cabfd1bd0c8cb93e5
20+
sourceBlobDigest: sha256:3ffaa58d76883d7edec8b863fe726d57c83d2c1b12d2f2579d486406a7dd6ee1
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-13 23:17:09
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: 12 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,18 @@ value = UgcType.ANNOUNCEMENTS_TYPE
1515

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

0 commit comments

Comments
 (0)