@maxim_mazurok/gapi.client.chat-v1 0.2.20260623 → 0.3.20260623

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 +13 -51
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -106,9 +106,7 @@ declare namespace gapi.client {
106
106
  appCommandId?: number;
107
107
  /** The type of Chat app command. */
108
108
  appCommandType?:
109
- | 'APP_COMMAND_TYPE_UNSPECIFIED'
110
- | 'SLASH_COMMAND'
111
- | 'QUICK_COMMAND';
109
+ 'APP_COMMAND_TYPE_UNSPECIFIED' | 'SLASH_COMMAND' | 'QUICK_COMMAND';
112
110
  }
113
111
  interface AttachedGif {
114
112
  /** Output only. The URL that hosts the GIF image. */
@@ -147,11 +145,7 @@ declare namespace gapi.client {
147
145
  name?: string;
148
146
  /** Output only. The user's current availability state. */
149
147
  state?:
150
- | 'STATE_UNSPECIFIED'
151
- | 'ACTIVE'
152
- | 'IDLE'
153
- | 'AWAY'
154
- | 'DO_NOT_DISTURB';
148
+ 'STATE_UNSPECIFIED' | 'ACTIVE' | 'IDLE' | 'AWAY' | 'DO_NOT_DISTURB';
155
149
  }
156
150
  interface Button {
157
151
  /** A button with image and `onclick` action. */
@@ -483,9 +477,7 @@ declare namespace gapi.client {
483
477
  peekCardHeader?: GoogleAppsCardV1CardHeader;
484
478
  /** The divider style between the header, sections and footer. */
485
479
  sectionDividerStyle?:
486
- | 'DIVIDER_STYLE_UNSPECIFIED'
487
- | 'SOLID_DIVIDER'
488
- | 'NO_DIVIDER';
480
+ 'DIVIDER_STYLE_UNSPECIFIED' | 'SOLID_DIVIDER' | 'NO_DIVIDER';
489
481
  /** Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). */
490
482
  sections?: GoogleAppsCardV1Section[];
491
483
  }
@@ -550,18 +542,12 @@ declare namespace gapi.client {
550
542
  expandButton?: GoogleAppsCardV1Button;
551
543
  /** The horizontal alignment of the expand and collapse button. */
552
544
  horizontalAlignment?:
553
- | 'HORIZONTAL_ALIGNMENT_UNSPECIFIED'
554
- | 'START'
555
- | 'CENTER'
556
- | 'END';
545
+ 'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
557
546
  }
558
547
  interface GoogleAppsCardV1Column {
559
548
  /** Specifies whether widgets align to the left, right, or center of a column. */
560
549
  horizontalAlignment?:
561
- | 'HORIZONTAL_ALIGNMENT_UNSPECIFIED'
562
- | 'START'
563
- | 'CENTER'
564
- | 'END';
550
+ 'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
565
551
  /** Specifies how a column fills the width of the card. */
566
552
  horizontalSizeStyle?:
567
553
  | 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED'
@@ -569,10 +555,7 @@ declare namespace gapi.client {
569
555
  | 'FILL_MINIMUM_SPACE';
570
556
  /** Specifies whether widgets align to the top, bottom, or center of a column. */
571
557
  verticalAlignment?:
572
- | 'VERTICAL_ALIGNMENT_UNSPECIFIED'
573
- | 'CENTER'
574
- | 'TOP'
575
- | 'BOTTOM';
558
+ 'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'CENTER' | 'TOP' | 'BOTTOM';
576
559
  /** An array of widgets included in a column. Widgets appear in the order that they are specified. */
577
560
  widgets?: GoogleAppsCardV1Widgets[];
578
561
  }
@@ -633,10 +616,7 @@ declare namespace gapi.client {
633
616
  startIcon?: GoogleAppsCardV1Icon;
634
617
  /** Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat): */
635
618
  startIconVerticalAlignment?:
636
- | 'VERTICAL_ALIGNMENT_UNSPECIFIED'
637
- | 'TOP'
638
- | 'MIDDLE'
639
- | 'BOTTOM';
619
+ 'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'TOP' | 'MIDDLE' | 'BOTTOM';
640
620
  /** A switch widget that a user can click to change its state and trigger an action. */
641
621
  switchControl?: GoogleAppsCardV1SwitchControl;
642
622
  /** Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). */
@@ -834,11 +814,7 @@ declare namespace gapi.client {
834
814
  platformDataSource?: GoogleAppsCardV1PlatformDataSource;
835
815
  /** The type of items that are displayed to users in a `SelectionInput` widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu. */
836
816
  type?:
837
- | 'CHECK_BOX'
838
- | 'RADIO_BUTTON'
839
- | 'SWITCH'
840
- | 'DROPDOWN'
841
- | 'MULTI_SELECT';
817
+ 'CHECK_BOX' | 'RADIO_BUTTON' | 'SWITCH' | 'DROPDOWN' | 'MULTI_SELECT';
842
818
  }
843
819
  interface GoogleAppsCardV1SelectionItem {
844
820
  /** For multiselect menus, a text description or label that's displayed below the item's `text` field. */
@@ -944,10 +920,7 @@ declare namespace gapi.client {
944
920
  grid?: GoogleAppsCardV1Grid;
945
921
  /** Specifies whether widgets align to the left, right, or center of a column. */
946
922
  horizontalAlignment?:
947
- | 'HORIZONTAL_ALIGNMENT_UNSPECIFIED'
948
- | 'START'
949
- | 'CENTER'
950
- | 'END';
923
+ 'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
951
924
  /** A unique ID assigned to the widget that's used to identify the widget to be mutated. The ID has a character limit of 64 characters and should be in the format of `[a-zA-Z0-9-]+`. Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps. */
952
925
  id?: string;
953
926
  /** Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ``` */
@@ -1184,10 +1157,7 @@ declare namespace gapi.client {
1184
1157
  interface MeetSpaceLinkData {
1185
1158
  /** Optional. Output only. If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. */
1186
1159
  huddleStatus?:
1187
- | 'HUDDLE_STATUS_UNSPECIFIED'
1188
- | 'STARTED'
1189
- | 'ENDED'
1190
- | 'MISSED';
1160
+ 'HUDDLE_STATUS_UNSPECIFIED' | 'STARTED' | 'ENDED' | 'MISSED';
1191
1161
  /** Meeting code of the linked Meet space. */
1192
1162
  meetingCode?: string;
1193
1163
  /** Indicates the type of the Meet space. */
@@ -1218,10 +1188,7 @@ declare namespace gapi.client {
1218
1188
  | 'ROLE_ASSISTANT_MANAGER';
1219
1189
  /** Output only. State of the membership. */
1220
1190
  state?:
1221
- | 'MEMBERSHIP_STATE_UNSPECIFIED'
1222
- | 'JOINED'
1223
- | 'INVITED'
1224
- | 'NOT_A_MEMBER';
1191
+ 'MEMBERSHIP_STATE_UNSPECIFIED' | 'JOINED' | 'INVITED' | 'NOT_A_MEMBER';
1225
1192
  }
1226
1193
  interface MembershipBatchCreatedEventData {
1227
1194
  /** A list of new memberships. */
@@ -1539,9 +1506,7 @@ declare namespace gapi.client {
1539
1506
  spaceDetails?: SpaceDetails;
1540
1507
  /** Optional. The message history state for messages and threads in this space. */
1541
1508
  spaceHistoryState?:
1542
- | 'HISTORY_STATE_UNSPECIFIED'
1543
- | 'HISTORY_OFF'
1544
- | 'HISTORY_ON';
1509
+ 'HISTORY_STATE_UNSPECIFIED' | 'HISTORY_OFF' | 'HISTORY_ON';
1545
1510
  /** Output only. The threading state in the Chat space. */
1546
1511
  spaceThreadingState?:
1547
1512
  | 'SPACE_THREADING_STATE_UNSPECIFIED'
@@ -1550,10 +1515,7 @@ declare namespace gapi.client {
1550
1515
  | 'UNTHREADED_MESSAGES';
1551
1516
  /** Optional. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. */
1552
1517
  spaceType?:
1553
- | 'SPACE_TYPE_UNSPECIFIED'
1554
- | 'SPACE'
1555
- | 'GROUP_CHAT'
1556
- | 'DIRECT_MESSAGE';
1518
+ 'SPACE_TYPE_UNSPECIFIED' | 'SPACE' | 'GROUP_CHAT' | 'DIRECT_MESSAGE';
1557
1519
  /** Output only. The URI for a user to access the space. */
1558
1520
  spaceUri?: string;
1559
1521
  /** Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.2.20260623",
3
+ "version": "0.3.20260623",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "repository": {
6
6
  "type": "git",