Skip to content

Commit 7575ba9

Browse files
committed
## Python SDK Changes Detected:
* `glean.client.chat.retrieve()`: `response.chat_result.chat` **Changed** * `glean.client.search.retrieve_feed()`: `response.results.[].primary_entry.digest` **Added**
1 parent 8bc35c4 commit 7575ba9

Some content is hidden

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

50 files changed

+721
-51
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/__pycache__/
24
**/.speakeasy/temp/
35
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 26 additions & 8 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
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: true
2727
skipResponseBodyAssertions: true
2828
python:
29-
version: 0.7.3
29+
version: 0.7.4
3030
additionalDependencies:
3131
dev: {}
3232
main: {}
@@ -65,4 +65,5 @@ python:
6565
pytestFilterWarnings: []
6666
pytestTimeout: 0
6767
responseFormat: flat
68+
sseFlatResponse: false
6869
templateVersion: v2

.speakeasy/glean-merged-spec.yaml

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7287,7 +7287,7 @@ components:
72877287
additionalProperties:
72887288
$ref: "#/components/schemas/WriteActionParameter"
72897289
ChatMessageFragment:
7290-
description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, or file.
7290+
description: Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.
72917291
allOf:
72927292
- $ref: "#/components/schemas/Result"
72937293
- type: object
@@ -7354,6 +7354,7 @@ components:
73547354
ERROR: A message that describes an error while processing the request.
73557355
HEADING: A heading message used to distinguish different sections of the holistic response.
73567356
WARNING: A warning message to be shown to the user.
7357+
SERVER_TOOL_REQUEST: A message used to request server-side tool auth/use.
73577358
enum:
73587359
- UPDATE
73597360
- CONTENT
@@ -7363,6 +7364,7 @@ components:
73637364
- ERROR
73647365
- HEADING
73657366
- WARNING
7367+
- SERVER_TOOL_REQUEST
73667368
hasMoreFragments:
73677369
deprecated: true
73687370
type: boolean
@@ -7489,12 +7491,18 @@ components:
74897491
description: A historical representation of a series of chat messages a user had with Glean Assistant.
74907492
allOf:
74917493
- $ref: "#/components/schemas/ChatMetadata"
7494+
- $ref: "#/components/schemas/PermissionedObject"
74927495
properties:
74937496
messages:
74947497
type: array
74957498
items:
74967499
$ref: "#/components/schemas/ChatMessage"
74977500
description: The chat messages within a Chat.
7501+
roles:
7502+
type: array
7503+
items:
7504+
$ref: "#/components/schemas/UserRoleSpecification"
7505+
description: A list of roles for this Chat.
74987506
ChatResult:
74997507
properties:
75007508
chat:
@@ -9153,6 +9161,7 @@ components:
91539161
- ZERO_STATE_WORKFLOW_POPULAR
91549162
- ZERO_STATE_WORKFLOW_SUGGESTION
91559163
- PERSONALIZED_CHAT_SUGGESTION
9164+
- DAILY_DIGEST
91569165
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
91579166
requestOptions:
91589167
$ref: "#/components/schemas/FeedRequestOptions"
@@ -9308,6 +9317,91 @@ components:
93089317
type: array
93099318
items:
93109319
$ref: "#/components/schemas/GeneratedAttachment"
9320+
SectionType:
9321+
type: string
9322+
description: Type of the section. This defines how the section should be interpreted and rendered in the digest.
9323+
x-enumDescriptions:
9324+
CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams).
9325+
MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all).
9326+
TOPIC: A section driven by a generic topic, not tied to any specific channel or instance.
9327+
enum:
9328+
- CHANNEL
9329+
- MENTIONS
9330+
- TOPIC
9331+
UpdateType:
9332+
type: string
9333+
description: Optional type classification for the update.
9334+
x-enumDescriptions:
9335+
ACTIONABLE: Updates that require user attention or action
9336+
INFORMATIVE: Updates that are purely informational
9337+
enum:
9338+
- ACTIONABLE
9339+
- INFORMATIVE
9340+
DigestUpdate:
9341+
type: object
9342+
properties:
9343+
url:
9344+
type: string
9345+
description: URL link to the content or document.
9346+
title:
9347+
type: string
9348+
description: Title or headline of the update.
9349+
datasource:
9350+
type: string
9351+
description: Name or identifier of the data source (e.g., slack, confluence, etc.).
9352+
summary:
9353+
type: string
9354+
description: Brief summary or description of the update content.
9355+
type:
9356+
$ref: "#/components/schemas/UpdateType"
9357+
DigestSection:
9358+
type: object
9359+
required:
9360+
- id
9361+
- type
9362+
- updates
9363+
properties:
9364+
id:
9365+
type: string
9366+
description: Unique identifier for the digest section.
9367+
type:
9368+
$ref: "#/components/schemas/SectionType"
9369+
displayName:
9370+
type: string
9371+
description: Human-readable name for the digest section.
9372+
channelName:
9373+
type: string
9374+
description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend.
9375+
instanceId:
9376+
type: string
9377+
description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend.
9378+
url:
9379+
type: string
9380+
description: Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section.
9381+
updates:
9382+
type: array
9383+
items:
9384+
$ref: "#/components/schemas/DigestUpdate"
9385+
description: List of updates within this digest section.
9386+
Digest:
9387+
type: object
9388+
properties:
9389+
podcastFileId:
9390+
type: string
9391+
description: Identifier for the podcast file generated from this digest content.
9392+
podcastDuration:
9393+
type: number
9394+
format: float
9395+
description: Duration of the podcast file in seconds.
9396+
digestDate:
9397+
type: string
9398+
description: The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available.
9399+
example: "2025-09-03"
9400+
sections:
9401+
type: array
9402+
items:
9403+
$ref: "#/components/schemas/DigestSection"
9404+
description: Array of digest sections from which the podcast was created.
93119405
ChatSuggestion:
93129406
properties:
93139407
query:
@@ -9530,6 +9624,7 @@ components:
95309624
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
95319625
- ZERO_STATE_AGENT_SUGGESTION
95329626
- PERSONALIZED_CHAT_SUGGESTION
9627+
- DAILY_DIGEST
95339628
description: Type of the justification.
95349629
justification:
95359630
type: string
@@ -9546,6 +9641,8 @@ components:
95469641
$ref: "#/components/schemas/CalendarEvent"
95479642
announcement:
95489643
$ref: "#/components/schemas/Announcement"
9644+
digest:
9645+
$ref: "#/components/schemas/Digest"
95499646
collection:
95509647
$ref: "#/components/schemas/Collection"
95519648
collectionItem:
@@ -9598,6 +9695,7 @@ components:
95989695
- ZERO_STATE_WORKFLOW_POPULAR
95999696
- ZERO_STATE_WORKFLOW_SUGGESTION
96009697
- PERSONALIZED_CHAT_SUGGESTION
9698+
- DAILY_DIGEST
96019699
description: Category of the result, one of the requested categories in incoming request.
96029700
primaryEntry:
96039701
$ref: "#/components/schemas/FeedEntry"
@@ -11595,6 +11693,7 @@ components:
1159511693
- EXTERNAL_SHORTCUT
1159611694
- ENTITY
1159711695
- CALENDAR
11696+
- AGENTS
1159811697
description: The document category of this object type.
1159911698
propertyDefinitions:
1160011699
type: array
@@ -11649,6 +11748,7 @@ components:
1164911748
- EXTERNAL_SHORTCUT
1165011749
- ENTITY
1165111750
- CALENDAR
11751+
- AGENTS
1165211752
default: UNCATEGORIZED
1165311753
description: The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details.
1165411754
urlRegex:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.606.9
1+
speakeasyVersion: 1.615.0
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
6-
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
5+
sourceRevisionDigest: sha256:ea2a82474055c5b1542aaa7b5b87ca5adc8fbb5e831c122736b0593e9ab64c1d
6+
sourceBlobDigest: sha256:3bcf2f83ae5ff6107c6561c5c1184731b084604bad0e4b528280b2753d89450d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755200990
9+
- speakeasy-sdk-regen-1756833812
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:35193fded9c9797576c742f6e93e2e3e9d507aa2ab2c55a5458825561552f33e
21-
sourceBlobDigest: sha256:1dc638c477afb69ccc30ba6482d7ac2e7237238d44638da8d0c4ece45f36d416
20+
sourceRevisionDigest: sha256:ea2a82474055c5b1542aaa7b5b87ca5adc8fbb5e831c122736b0593e9ab64c1d
21+
sourceBlobDigest: sha256:3bcf2f83ae5ff6107c6561c5c1184731b084604bad0e4b528280b2753d89450d
2222
codeSamplesNamespace: glean-api-specs-python-code-samples
23-
codeSamplesRevisionDigest: sha256:ec1033795495ed5feb092f4ca786534382c763ff1787a997db77303ef0539ad9
23+
codeSamplesRevisionDigest: sha256:7b60236211a98196e54622b91345608182582cd945c55286b042b4d6e65c4242
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,14 @@ Based on:
208208
### Generated
209209
- [python v0.7.3] .
210210
### Releases
211-
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
211+
- [PyPI v0.7.3] https://pypi.org/project/glean/0.7.3 - .
212+
213+
## 2025-09-10 01:24:03
214+
### Changes
215+
Based on:
216+
- OpenAPI Doc
217+
- Speakeasy CLI 1.615.0 (2.698.0) https://github.com/speakeasy-api/speakeasy
218+
### Generated
219+
- [python v0.7.4] .
220+
### Releases
221+
- [PyPI v0.7.4] https://pypi.org/project/glean/0.7.4 - .

docs/models/chat.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ A historical representation of a series of chat messages a user had with Glean A
1515
| `application_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the AI App that this Chat is associated to. | |
1616
| `application_name` | *Optional[str]* | :heavy_minus_sign: | The display name of the AI App that this Chat is associated to. | |
1717
| `icon` | [Optional[models.IconConfig]](../models/iconconfig.md) | :heavy_minus_sign: | Defines how to render an icon | {<br/>"color": "#343CED",<br/>"key": "person_icon",<br/>"iconType": "GLYPH",<br/>"name": "user"<br/>} |
18-
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
18+
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
19+
| `messages` | List[[models.ChatMessage](../models/chatmessage.md)] | :heavy_minus_sign: | The chat messages within a Chat. | |
20+
| `roles` | List[[models.UserRoleSpecification](../models/userrolespecification.md)] | :heavy_minus_sign: | A list of roles for this Chat. | |

docs/models/chatmessagefragment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ChatMessageFragment
22

3-
Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, or file.
3+
Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file.
44

55

66
## Fields

docs/models/datasourcecategory.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ The type of this datasource. It is an important signal for relevance and must be
2323
| `KNOWLEDGE_HUB` | KNOWLEDGE_HUB |
2424
| `EXTERNAL_SHORTCUT` | EXTERNAL_SHORTCUT |
2525
| `ENTITY` | ENTITY |
26-
| `CALENDAR` | CALENDAR |
26+
| `CALENDAR` | CALENDAR |
27+
| `AGENTS` | AGENTS |

0 commit comments

Comments
 (0)