Skip to content

Commit b7fe9af

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 b7fe9af

22 files changed

Lines changed: 214 additions & 75 deletions

.speakeasy/gen.lock

Lines changed: 40 additions & 40 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: 17 additions & 2 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: c1a5aab1047c76d5cf6c9698a1055a4f0afda200
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: 050797b4bded72f926e7668b346572e4642a800d
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"
@@ -10599,6 +10608,10 @@ components:
1059910608
- STARTER_KIT_EXTENSION
1060010609
- STARTER_KIT_ORG_CHART
1060110610
- STARTER_KIT_ADD_DOC
10611+
- MEETING_RECAP
10612+
- ACTIVE_DISCUSSION
10613+
- MID_DAY_CATCH_UP
10614+
- QUERY_SUGGESTION
1060210615
description: Type of the justification.
1060310616
justification:
1060410617
type: string
@@ -10675,6 +10688,8 @@ components:
1067510688
- PLAN_MY_DAY
1067610689
- END_MY_DAY
1067710690
- STARTER_KIT
10691+
- MID_DAY_CATCH_UP
10692+
- QUERY_SUGGESTION
1067810693
description: Category of the result, one of the requested categories in incoming request.
1067910694
primaryEntry:
1068010695
$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.754.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:f166c61c7e7a52f62d5ddcc80f0e1247867cfa9a89d6bdf2679daca84d0efadc
6-
sourceBlobDigest: sha256:a5efacbcf3c78ffd7268b357723e4892a115562dd5392fbcd6ab6141c014516f
5+
sourceRevisionDigest: sha256:ce2b626851ccafa45abe99cf1124f626b2af9a8d741e35d7148b392dac3ea0b5
6+
sourceBlobDigest: sha256:b882f521827adeff88a5835b04dc28061d5eb209ee846d47425b5f8ec8b6b167
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:ce2b626851ccafa45abe99cf1124f626b2af9a8d741e35d7148b392dac3ea0b5
20+
sourceBlobDigest: sha256:b882f521827adeff88a5835b04dc28061d5eb209ee846d47425b5f8ec8b6b167
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 20:43:00
614+
### Changes
615+
Based on:
616+
- OpenAPI Doc
617+
- Speakeasy CLI 1.754.0 (2.862.0) 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 |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "glean-api-client"
4-
version = "0.12.10"
4+
version = "0.12.11"
55
description = "Python Client SDK Generated by Speakeasy."
66
authors = [{ name = "Glean Technologies, Inc." },]
77
readme = "README-PYPI.md"

0 commit comments

Comments
 (0)