@maxim_mazurok/gapi.client.chat-v1 0.0.20230413 → 0.0.20230420

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 (3) hide show
  1. package/index.d.ts +46 -23
  2. package/package.json +1 -1
  3. package/tests.ts +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: 20230413
12
+ // Revision: 20230420
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -159,9 +159,13 @@ declare namespace gapi.client {
159
159
  parameters?: { [P in string]: string };
160
160
  /** The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or `ANDROID`). Not supported by Chat apps. */
161
161
  platform?: string;
162
- /** The timezone ID and offset from Coordinated Universal Time (UTC). */
162
+ /**
163
+ * The timezone ID and offset from Coordinated Universal Time (UTC). Only supported for the event types
164
+ * [`CARD_CLICKED`](https://developers.google.com/chat/api/reference/rest/v1/EventType#ENUM_VALUES.CARD_CLICKED) and
165
+ * [`SUBMIT_DIALOG`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType#ENUM_VALUES.SUBMIT_DIALOG).
166
+ */
163
167
  timeZone?: TimeZone;
164
- /** The full `locale.displayName` in the format of [ISO 639 language code]-[ISO 3166 country/region code] such as "en-US". Not supported by Chat apps. */
168
+ /** The full `locale.displayName` in the format of [ISO 639 language code]-[ISO 3166 country/region code] such as "en-US". */
165
169
  userLocale?: string;
166
170
  }
167
171
  interface DateInput {
@@ -329,8 +333,9 @@ declare namespace gapi.client {
329
333
  /** In Google Workspace add-ons, sets the display properties of the `peekCardHeader`. Not supported by Chat apps. */
330
334
  displayStyle?: string;
331
335
  /**
332
- * The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Chat apps support `fixedFooter`
333
- * in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not in [card messages](https://developers.google.com/chat/api/guides/message-formats/cards).
336
+ * The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace
337
+ * Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card
338
+ * messages](https://developers.google.com/chat/api/guides/message-formats/cards).
334
339
  */
335
340
  fixedFooter?: GoogleAppsCardV1CardFixedFooter;
336
341
  /** The header of the card. A header usually contains a leading image and a title. Headers always appear at the top of a card. */
@@ -417,7 +422,10 @@ declare namespace gapi.client {
417
422
  startIcon?: GoogleAppsCardV1Icon;
418
423
  /** A switch widget can be clicked to change its state and trigger an action. */
419
424
  switchControl?: GoogleAppsCardV1SwitchControl;
420
- /** Required. The primary text. Supports simple formatting. See Text formatting for formatting details. */
425
+ /**
426
+ * Required. The primary text. Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
427
+ * Add-ons.
428
+ */
421
429
  text?: string;
422
430
  /** The text that appears above `text`. Always truncates. */
423
431
  topLabel?: string;
@@ -529,7 +537,10 @@ declare namespace gapi.client {
529
537
  * more**. Users can hide the widgets again by clicking **Show less**. To determine which widgets are hidden, specify `uncollapsibleWidgetsCount`.
530
538
  */
531
539
  collapsible?: boolean;
532
- /** Text that appears at the top of a section. Supports [simple HTML formatted text](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). */
540
+ /**
541
+ * Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting
542
+ * text in Google Workspace Add-ons.
543
+ */
533
544
  header?: string;
534
545
  /**
535
546
  * The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when a section contains five widgets and the `uncollapsibleWidgetsCount` is
@@ -541,7 +552,7 @@ declare namespace gapi.client {
541
552
  widgets?: GoogleAppsCardV1Widget[];
542
553
  }
543
554
  interface GoogleAppsCardV1SelectionInput {
544
- /** An array of the selected items. For example, all the selected check boxes. */
555
+ /** An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items. */
545
556
  items?: GoogleAppsCardV1SelectionItem[];
546
557
  /**
547
558
  * The text that appears above the selection input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if users are
@@ -549,7 +560,7 @@ declare namespace gapi.client {
549
560
  */
550
561
  label?: string;
551
562
  /**
552
- * The name by which the selection input is identified in a form input event. For details about working with form inputs, see [Receive form
563
+ * The name that identifies the selection input in a form input event. For details about working with form inputs, see [Receive form
553
564
  * data](https://developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
554
565
  */
555
566
  name?: string;
@@ -559,8 +570,8 @@ declare namespace gapi.client {
559
570
  */
560
571
  onChangeAction?: GoogleAppsCardV1Action;
561
572
  /**
562
- * The way that an option appears to users. Different options support different types of interactions. For example, users can enable multiple check boxes, but can only select one value
563
- * from a dropdown menu. Each selection input supports one type of selection. Mixing check boxes and switches, for example, is not supported.
573
+ * 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
574
+ * checkboxes, but they can only select one value from a dropdown menu.
564
575
  */
565
576
  type?: string;
566
577
  }
@@ -570,7 +581,7 @@ declare namespace gapi.client {
570
581
  * ignored.
571
582
  */
572
583
  selected?: boolean;
573
- /** The text displayed to users. */
584
+ /** The text that identifies or describes the item to users. */
574
585
  text?: string;
575
586
  /**
576
587
  * The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form
@@ -685,7 +696,7 @@ declare namespace gapi.client {
685
696
  */
686
697
  image?: GoogleAppsCardV1Image;
687
698
  /**
688
- * Displays a selection control that lets users select items. Selection controls can be check boxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates
699
+ * Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus. For example, the following JSON creates
689
700
  * a dropdown menu that lets users choose a size: ``` "selectionInput": { "name": "size", "label": "Size" "type": "DROPDOWN", "items": [ { "text": "S", "value": "small", "selected":
690
701
  * false }, { "text": "M", "value": "medium", "selected": true }, { "text": "L", "value": "large", "selected": false }, { "text": "XL", "value": "extra_large", "selected": false } ] }
691
702
  * ```
@@ -699,8 +710,8 @@ declare namespace gapi.client {
699
710
  */
700
711
  textInput?: GoogleAppsCardV1TextInput;
701
712
  /**
702
- * Displays a text paragraph. Supports [simple HTML formatted text](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON
703
- * creates a bolded text: ``` "textParagraph": { "text": " *bold text*" } ```
713
+ * Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google
714
+ * Workspace Add-ons. For example, the following JSON creates a bolded text: ``` "textParagraph": { "text": " *bold text*" } ```
704
715
  */
705
716
  textParagraph?: GoogleAppsCardV1TextParagraph;
706
717
  }
@@ -726,21 +737,27 @@ declare namespace gapi.client {
726
737
  onClick?: OnClick;
727
738
  }
728
739
  interface Inputs {
729
- /** Date input values. Not supported by Chat apps. */
740
+ /** Date input values. */
730
741
  dateInput?: DateInput;
731
- /** Date and time input values. Not supported by Chat apps. */
742
+ /** Date and time input values. */
732
743
  dateTimeInput?: DateTimeInput;
733
744
  /** Input parameter for regular widgets. For single-valued widgets, it is a single value list. For multi-valued widgets, such as checkbox, all the values are presented. */
734
745
  stringInputs?: StringInputs;
735
- /** Time input values. Not supported by Chat apps. */
746
+ /** Time input values. */
736
747
  timeInput?: TimeInput;
737
748
  }
738
749
  interface KeyValue {
739
- /** The text of the bottom label. Formatted text supported. */
750
+ /**
751
+ * The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
752
+ * Add-ons.
753
+ */
740
754
  bottomLabel?: string;
741
755
  /** A button that can be clicked to trigger an action. */
742
756
  button?: Button;
743
- /** The text of the content. Formatted text supported and always required. */
757
+ /**
758
+ * The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in
759
+ * Google Workspace Add-ons.
760
+ */
744
761
  content?: string;
745
762
  /** If the content should be multiline. */
746
763
  contentMultiline?: boolean;
@@ -750,7 +767,10 @@ declare namespace gapi.client {
750
767
  iconUrl?: string;
751
768
  /** The onclick action. Only the top label, bottom label and content region are clickable. */
752
769
  onClick?: OnClick;
753
- /** The text of the top label. Formatted text supported. */
770
+ /**
771
+ * The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
772
+ * Add-ons.
773
+ */
754
774
  topLabel?: string;
755
775
  }
756
776
  interface ListMembershipsResponse {
@@ -862,7 +882,10 @@ declare namespace gapi.client {
862
882
  url?: string;
863
883
  }
864
884
  interface Section {
865
- /** The header of the section, text formatted supported. */
885
+ /**
886
+ * The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace
887
+ * Add-ons.
888
+ */
866
889
  header?: string;
867
890
  /** A section must contain at least 1 widget. */
868
891
  widgets?: WidgetMarkup[];
@@ -982,7 +1005,7 @@ declare namespace gapi.client {
982
1005
  user?: User;
983
1006
  }
984
1007
  interface WidgetMarkup {
985
- /** A list of buttons. Buttons is also oneof data and only one of these fields should be set. */
1008
+ /** A list of buttons. Buttons is also `oneof data` and only one of these fields should be set. */
986
1009
  buttons?: Button[];
987
1010
  /** Display an image in this widget. */
988
1011
  image?: Image;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230413",
3
+ "version": "0.0.20230420",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230413
6
+ // Revision: 20230420
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */