You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .speakeasy/glean-merged-spec.yaml
+117-3Lines changed: 117 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4261,18 +4261,28 @@ components:
4261
4261
tokenType: Bearer
4262
4262
authUser: "1"
4263
4263
DocumentSpec:
4264
+
x-multiple-discriminators: true
4264
4265
oneOf:
4265
4266
- type: object
4267
+
required:
4268
+
- url
4266
4269
properties:
4267
4270
url:
4268
4271
type: string
4272
+
x-discriminator: true
4269
4273
description: The URL of the document.
4270
4274
- type: object
4275
+
required:
4276
+
- id
4271
4277
properties:
4272
4278
id:
4273
4279
type: string
4280
+
x-discriminator: true
4274
4281
description: The ID of the document.
4275
4282
- type: object
4283
+
required:
4284
+
- contentId
4285
+
- ugcType
4276
4286
properties:
4277
4287
ugcType:
4278
4288
type: string
@@ -4284,6 +4294,7 @@ components:
4284
4294
description: The type of the user generated content (UGC datasource).
4285
4295
contentId:
4286
4296
type: integer
4297
+
x-discriminator: true
4287
4298
description: The id for user generated content.
4288
4299
docType:
4289
4300
type: string
@@ -7287,7 +7298,7 @@ components:
7287
7298
additionalProperties:
7288
7299
$ref: "#/components/schemas/WriteActionParameter"
7289
7300
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.
7301
+
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.
7291
7302
allOf:
7292
7303
- $ref: "#/components/schemas/Result"
7293
7304
- type: object
@@ -7354,6 +7365,7 @@ components:
7354
7365
ERROR: A message that describes an error while processing the request.
7355
7366
HEADING: A heading message used to distinguish different sections of the holistic response.
7356
7367
WARNING: A warning message to be shown to the user.
7368
+
SERVER_TOOL: A message used to for server-side tool auth/use, for request and response.
7357
7369
enum:
7358
7370
- UPDATE
7359
7371
- CONTENT
@@ -7363,6 +7375,7 @@ components:
7363
7375
- ERROR
7364
7376
- HEADING
7365
7377
- WARNING
7378
+
- SERVER_TOOL
7366
7379
hasMoreFragments:
7367
7380
deprecated: true
7368
7381
type: boolean
@@ -7489,12 +7502,18 @@ components:
7489
7502
description: A historical representation of a series of chat messages a user had with Glean Assistant.
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
9157
9180
requestOptions:
9158
9181
$ref: "#/components/schemas/FeedRequestOptions"
@@ -9308,6 +9331,91 @@ components:
9308
9331
type: array
9309
9332
items:
9310
9333
$ref: "#/components/schemas/GeneratedAttachment"
9334
+
SectionType:
9335
+
type: string
9336
+
description: Type of the section. This defines how the section should be interpreted and rendered in the digest.
9337
+
x-enumDescriptions:
9338
+
CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams).
9339
+
MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all).
9340
+
TOPIC: A section driven by a generic topic, not tied to any specific channel or instance.
9341
+
enum:
9342
+
- CHANNEL
9343
+
- MENTIONS
9344
+
- TOPIC
9345
+
UpdateType:
9346
+
type: string
9347
+
description: Optional type classification for the update.
9348
+
x-enumDescriptions:
9349
+
ACTIONABLE: Updates that require user attention or action
9350
+
INFORMATIVE: Updates that are purely informational
9351
+
enum:
9352
+
- ACTIONABLE
9353
+
- INFORMATIVE
9354
+
DigestUpdate:
9355
+
type: object
9356
+
properties:
9357
+
url:
9358
+
type: string
9359
+
description: URL link to the content or document.
9360
+
title:
9361
+
type: string
9362
+
description: Title or headline of the update.
9363
+
datasource:
9364
+
type: string
9365
+
description: Name or identifier of the data source (e.g., slack, confluence, etc.).
9366
+
summary:
9367
+
type: string
9368
+
description: Brief summary or description of the update content.
9369
+
type:
9370
+
$ref: "#/components/schemas/UpdateType"
9371
+
DigestSection:
9372
+
type: object
9373
+
required:
9374
+
- id
9375
+
- type
9376
+
- updates
9377
+
properties:
9378
+
id:
9379
+
type: string
9380
+
description: Unique identifier for the digest section.
9381
+
type:
9382
+
$ref: "#/components/schemas/SectionType"
9383
+
displayName:
9384
+
type: string
9385
+
description: Human-readable name for the digest section.
9386
+
channelName:
9387
+
type: string
9388
+
description: Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend.
9389
+
instanceId:
9390
+
type: string
9391
+
description: Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend.
9392
+
url:
9393
+
type: string
9394
+
description: Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section.
9395
+
updates:
9396
+
type: array
9397
+
items:
9398
+
$ref: "#/components/schemas/DigestUpdate"
9399
+
description: List of updates within this digest section.
9400
+
Digest:
9401
+
type: object
9402
+
properties:
9403
+
podcastFileId:
9404
+
type: string
9405
+
description: Identifier for the podcast file generated from this digest content.
9406
+
podcastDuration:
9407
+
type: number
9408
+
format: float
9409
+
description: Duration of the podcast file in seconds.
9410
+
digestDate:
9411
+
type: string
9412
+
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.
9413
+
example: "2025-09-03"
9414
+
sections:
9415
+
type: array
9416
+
items:
9417
+
$ref: "#/components/schemas/DigestSection"
9418
+
description: Array of digest sections from which the podcast was created.
9311
9419
ChatSuggestion:
9312
9420
properties:
9313
9421
query:
@@ -9530,6 +9638,7 @@ components:
9530
9638
- ZERO_STATE_STATIC_WORKFLOW_SUGGESTION
9531
9639
- ZERO_STATE_AGENT_SUGGESTION
9532
9640
- PERSONALIZED_CHAT_SUGGESTION
9641
+
- DAILY_DIGEST
9533
9642
description: Type of the justification.
9534
9643
justification:
9535
9644
type: string
@@ -9546,6 +9655,8 @@ components:
9546
9655
$ref: "#/components/schemas/CalendarEvent"
9547
9656
announcement:
9548
9657
$ref: "#/components/schemas/Announcement"
9658
+
digest:
9659
+
$ref: "#/components/schemas/Digest"
9549
9660
collection:
9550
9661
$ref: "#/components/schemas/Collection"
9551
9662
collectionItem:
@@ -9598,6 +9709,7 @@ components:
9598
9709
- ZERO_STATE_WORKFLOW_POPULAR
9599
9710
- ZERO_STATE_WORKFLOW_SUGGESTION
9600
9711
- PERSONALIZED_CHAT_SUGGESTION
9712
+
- DAILY_DIGEST
9601
9713
description: Category of the result, one of the requested categories in incoming request.
9602
9714
primaryEntry:
9603
9715
$ref: "#/components/schemas/FeedEntry"
@@ -11595,6 +11707,7 @@ components:
11595
11707
- EXTERNAL_SHORTCUT
11596
11708
- ENTITY
11597
11709
- CALENDAR
11710
+
- AGENTS
11598
11711
description: The document category of this object type.
11599
11712
propertyDefinitions:
11600
11713
type: array
@@ -11649,6 +11762,7 @@ components:
11649
11762
- EXTERNAL_SHORTCUT
11650
11763
- ENTITY
11651
11764
- CALENDAR
11765
+
- AGENTS
11652
11766
default: UNCATEGORIZED
11653
11767
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.
Copy file name to clipboardExpand all lines: docs/models/chat.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,6 @@ A historical representation of a series of chat messages a user had with Glean A
15
15
|`application_id`|*Optional[str]*|:heavy_minus_sign:| The ID of the AI App that this Chat is associated to. ||
16
16
|`application_name`|*Optional[str]*|:heavy_minus_sign:| The display name of the AI App that this Chat is associated to. ||
17
17
|`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. ||
Copy file name to clipboardExpand all lines: docs/models/chatmessagefragment.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ChatMessageFragment
2
2
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.
0 commit comments