@maxim_mazurok/gapi.client.chat-v1 0.0.20230221 → 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 +15 -9
  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: 20230221
12
+ // Revision: 20230302
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -803,9 +803,9 @@ declare namespace gapi.client {
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). `cards_v2` and `cards` can have a maximum size of 32 KB. The `cardId` is a unique identifier among cards in the same
807
- * message and for identifying user input values. Currently supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider` - `TextInput` -
808
- * `SelectionInput` (CHECKBOX, RADIO_BUTTON, SWITCH, DROPDOWN) - `Grid`
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`
809
809
  */
810
810
  cardsV2?: CardWithId[];
811
811
  /**
@@ -827,11 +827,17 @@ declare namespace gapi.client {
827
827
  matchedUrl?: MatchedUrl;
828
828
  /** Resource name in the form `spaces/*‍/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
829
829
  name?: string;
830
- /** 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
+ */
831
834
  sender?: User;
832
835
  /** Output only. Slash command information, if applicable. */
833
836
  slashCommand?: SlashCommand;
834
- /** 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
+ */
835
841
  space?: Space;
836
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. */
837
843
  text?: string;
@@ -1075,8 +1081,8 @@ declare namespace gapi.client {
1075
1081
  */
1076
1082
  pageSize?: number;
1077
1083
  /**
1078
- * 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
1079
- * 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.
1080
1086
  */
1081
1087
  pageToken?: string;
1082
1088
  /** Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} */
@@ -1512,7 +1518,7 @@ declare namespace gapi.client {
1512
1518
  oauth_token?: string;
1513
1519
  /**
1514
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;
1515
- * 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.
1516
1522
  */
1517
1523
  pageSize?: number;
1518
1524
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230221",
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: 20230221
6
+ // Revision: 20230302
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */