@maxim_mazurok/gapi.client.chat-v1 0.0.20230219 → 0.0.20230302

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 +17 -10
  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: 20230219
12
+ // Revision: 20230302
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -791,20 +791,21 @@ declare namespace gapi.client {
791
791
  actionResponse?: ActionResponse;
792
792
  /** Output only. Annotations associated with the text in this message. */
793
793
  annotations?: Annotation[];
794
- /** Plain-text body of the message with all Chat app mentions stripped out. */
794
+ /** Output only. Plain-text body of the message with all Chat app mentions stripped out. */
795
795
  argumentText?: string;
796
796
  /** User-uploaded attachment. */
797
797
  attachment?: Attachment[];
798
798
  /**
799
799
  * Deprecated: Use `cards_v2` instead. Rich, formatted and interactive cards that can be used to display UI elements such as: formatted texts, buttons, clickable images. Cards are
800
- * normally displayed below the plain-text body of the message.
800
+ * normally displayed below the plain-text body of the message. `cards` and `cards_v2` can have a maximum size of 32 KB.
801
801
  */
802
802
  cards?: Card[];
803
803
  /**
804
804
  * Richly formatted and interactive cards that display UI elements and editable widgets, such as: - Formatted text - Buttons - Clickable images - Checkboxes - Radio buttons - Input
805
805
  * widgets. Cards are usually displayed below the text body of a Chat message, but can situationally appear other places, such as
806
- * [dialogs](https://developers.google.com/chat/how-tos/dialogs). The `cardId` is a unique identifier among cards in the same message and for identifying user input values. Currently
807
- * supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider`
806
+ * [dialogs](https://developers.google.com/chat/how-tos/dialogs). Each card can have a maximum size of 32 KB. The `cardId` is a unique identifier among cards in the same message and
807
+ * for identifying user input values. Currently supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider` - `TextInput` - `SelectionInput` -
808
+ * `Grid`
808
809
  */
809
810
  cardsV2?: CardWithId[];
810
811
  /**
@@ -826,11 +827,17 @@ declare namespace gapi.client {
826
827
  matchedUrl?: MatchedUrl;
827
828
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
828
829
  name?: string;
829
- /** Output only. The user who created the message. */
830
+ /**
831
+ * Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the
832
+ * [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
833
+ */
830
834
  sender?: User;
831
835
  /** Output only. Slash command information, if applicable. */
832
836
  slashCommand?: SlashCommand;
833
- /** The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated. */
837
+ /**
838
+ * If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the
839
+ * [space](https://developers.google.com/chat/api/reference/rest/v1/spaces) `name`.
840
+ */
834
841
  space?: Space;
835
842
  /** Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip. */
836
843
  text?: string;
@@ -1074,8 +1081,8 @@ declare namespace gapi.client {
1074
1081
  */
1075
1082
  pageSize?: number;
1076
1083
  /**
1077
- * A page token, received from a previous list memberships call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided should match the call
1078
- * that provided the page token. Passing different values to the other parameters may lead to unexpected results.
1084
+ * A page token, received from a previous call to list memberships. Provide this to retrieve the subsequent page. When paginating, all other parameters provided should match the
1085
+ * call that provided the page token. Passing different values to the other parameters may lead to unexpected results.
1079
1086
  */
1080
1087
  pageToken?: string;
1081
1088
  /** Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} */
@@ -1511,7 +1518,7 @@ declare namespace gapi.client {
1511
1518
  oauth_token?: string;
1512
1519
  /**
1513
1520
  * Optional. The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000;
1514
- * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1521
+ * values above 1000 are coerced to 1000. Negative values return an `INVALID_ARGUMENT` error.
1515
1522
  */
1516
1523
  pageSize?: number;
1517
1524
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230219",
3
+ "version": "0.0.20230302",
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: 20230219
6
+ // Revision: 20230302
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */