@maxim_mazurok/gapi.client.chat-v1 0.3.20261016 → 0.3.20261022

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +39 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20261016
12
+ // Revision: 20261022
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -234,6 +234,22 @@ declare namespace gapi.client {
234
234
  /** The thread of the linked Chat space resource. Format: `spaces/{space}/threads/{thread}` */
235
235
  thread?: string;
236
236
  }
237
+ interface Citation {
238
+ /** Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card. */
239
+ citedSources?: CitedSource[];
240
+ /** Required. The ID of the citation. This ID is defined by the app creating the citation and must match the `data-id` attribute of the `` tag in the message text. Must contain only ASCII letters and numbers, and less than 63 characters. */
241
+ id?: string;
242
+ }
243
+ interface CitedSource {
244
+ /** Optional. Additional information to show alongside the snippet in the form of a footer. */
245
+ footer?: Footer;
246
+ /** Optional. Snippet containing information directly from the source. */
247
+ snippet?: Snippet;
248
+ /** Required. The plaintext title of the `CitedSource`. Does not support markdown format. */
249
+ title?: string;
250
+ /** Required. The URI pointing to the resource referenced by this `CitedSource`. */
251
+ uri?: string;
252
+ }
237
253
  interface Color {
238
254
  /** The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0). */
239
255
  alpha?: number;
@@ -397,6 +413,16 @@ declare namespace gapi.client {
397
413
  /** The mime type of the linked Google Drive resource. */
398
414
  mimeType?: string;
399
415
  }
416
+ interface Elements {
417
+ /** Optional. A list of inline citations referenced within the message text (via `` tags) that render as interactive hover cards. */
418
+ citations?: Citation[];
419
+ /** Optional. A list of sources to be displayed under the message as footer links. These are not referenced inline. For inline references, use `citations`. */
420
+ citedSources?: CitedSource[];
421
+ }
422
+ interface ElementsImage {
423
+ /** Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it. */
424
+ imageUri?: string;
425
+ }
400
426
  interface Emoji {
401
427
  /** A custom emoji. */
402
428
  customEmoji?: CustomEmoji;
@@ -416,6 +442,10 @@ declare namespace gapi.client {
416
442
  /** List of spaces in the requested (or first) page. */
417
443
  spaces?: Space[];
418
444
  }
445
+ interface Footer {
446
+ /** Optional. The plaintext to display in the footer. Does not support markdown format. */
447
+ text?: string;
448
+ }
419
449
  interface FormAction {
420
450
  /** The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior. */
421
451
  actionMethodName?: string;
@@ -1274,6 +1304,8 @@ declare namespace gapi.client {
1274
1304
  deleteTime?: string;
1275
1305
  /** Output only. Information about a deleted message. A message is deleted when `delete_time` is set. */
1276
1306
  deletionMetadata?: DeletionMetadata;
1307
+ /** Optional. Additional message components, including inline `citations` (where each citation is associated with a specific portion of the message text) and `cited_sources` (which are general references used to generate the response and are not directly linked to specific segments of the text). On input, provide `elements` when creating or updating a message. On output, both `citations` and `cited_sources` are populated when reading a message that contains them. Callers can read structured citation metadata from `elements`, while `formatted_text` also includes inline citation tags or source links depending on `markup_syntax`. These differ from `annotations`, which are output-only and offer supplementary information tied to message fragments or the entire message text. */
1308
+ elements?: Elements;
1277
1309
  /** Output only. The list of emoji reaction summaries on the message. */
1278
1310
  emojiReactionSummaries?: EmojiReactionSummary[];
1279
1311
  /** Optional. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications. */
@@ -1561,6 +1593,12 @@ declare namespace gapi.client {
1561
1593
  /** The type of slash command. */
1562
1594
  type?: 'TYPE_UNSPECIFIED' | 'ADD' | 'INVOKE';
1563
1595
  }
1596
+ interface Snippet {
1597
+ /** Optional. Image preview of the snippet provided as an input when creating the citation. */
1598
+ imagePreview?: ElementsImage;
1599
+ /** Optional. A short plaintext excerpt directly from the corpus that is rendered in the citation hover card or source preview. When footer sources are automatically populated from inline `citations` (because `Elements.cited_sources` is not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters. */
1600
+ text?: string;
1601
+ }
1564
1602
  interface Space {
1565
1603
  /** Optional. Specifies the [access setting](https://support.google.com/chat/answer/11971020) of the space. Only populated when the `space_type` is `SPACE`. */
1566
1604
  accessSettings?: AccessSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.3.20261016",
3
+ "version": "0.3.20261022",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "repository": {
6
6
  "type": "git",