@maxim_mazurok/gapi.client.chat-v1 0.0.20230611 → 0.0.20230622

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.
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: 20230611
12
+ // Revision: 20230622
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -66,6 +66,11 @@ declare namespace gapi.client {
66
66
  userMention?:
67
67
  UserMentionMetadata;
68
68
  }
69
+ interface AttachedGif {
70
+ /** Output only. The URL that hosts the GIF image. */
71
+ uri?:
72
+ string;
73
+ }
69
74
  interface Attachment {
70
75
  /** A reference to the attachment data. This field is used with the media API to download the attachment data. */
71
76
  attachmentDataRef?:
@@ -1137,6 +1142,9 @@ declare namespace gapi.client {
1137
1142
  /** Output only. Plain-text body of the message with all Chat app mentions stripped out. */
1138
1143
  argumentText?:
1139
1144
  string;
1145
+ /** Output only. GIF images that are attached to the message. */
1146
+ attachedGifs?:
1147
+ AttachedGif[];
1140
1148
  /** User-uploaded attachment. */
1141
1149
  attachment?:
1142
1150
  Attachment[];
@@ -1160,7 +1168,7 @@ declare namespace gapi.client {
1160
1168
  * field to get, update, or delete the message with the specified value. Assigning a custom name lets a Chat app recall the message without saving the message `name` from the [response
1161
1169
  * body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the
1162
1170
  * message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or
1163
- * deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1171
+ * deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
1164
1172
  */
1165
1173
  clientAssignedMessageId?:
1166
1174
  string;
@@ -2131,7 +2139,7 @@ declare namespace gapi.client {
2131
2139
  * message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't
2132
2140
  * replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while
2133
2141
  * processing later operations, like updating or deleting the message. For example usage, see [Name a created
2134
- * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
2142
+ * message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
2135
2143
  */
2136
2144
  messageId?:
2137
2145
  string;
@@ -2194,7 +2202,7 @@ declare namespace gapi.client {
2194
2202
  * message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't
2195
2203
  * replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while
2196
2204
  * processing later operations, like updating or deleting the message. For example usage, see [Name a created
2197
- * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
2205
+ * message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
2198
2206
  */
2199
2207
  messageId?:
2200
2208
  string;
@@ -2310,7 +2318,7 @@ declare namespace gapi.client {
2310
2318
  /**
2311
2319
  * Required. Resource name of the message to retrieve. Format: `spaces/{space}/messages/{message}` If the message begins with `client-`, then it has a custom name assigned by a
2312
2320
  * Chat app that created it with the Chat REST API. That Chat app (but not others) can pass the custom name to get, update, or delete the message. To learn more, see [create and
2313
- * name a message] (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
2321
+ * name a message] (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
2314
2322
  */
2315
2323
  name:
2316
2324
  string;
@@ -2422,7 +2430,7 @@ declare namespace gapi.client {
2422
2430
  string;
2423
2431
  /**
2424
2432
  * Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be
2425
- * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
2433
+ * [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.
2426
2434
  */
2427
2435
  allowMissing?:
2428
2436
  boolean;
@@ -2475,7 +2483,7 @@ declare namespace gapi.client {
2475
2483
  string;
2476
2484
  /**
2477
2485
  * Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be
2478
- * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
2486
+ * [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.
2479
2487
  */
2480
2488
  allowMissing?:
2481
2489
  boolean;
@@ -2533,7 +2541,7 @@ declare namespace gapi.client {
2533
2541
  string;
2534
2542
  /**
2535
2543
  * Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be
2536
- * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
2544
+ * [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.
2537
2545
  */
2538
2546
  allowMissing?:
2539
2547
  boolean;
@@ -2586,7 +2594,7 @@ declare namespace gapi.client {
2586
2594
  string;
2587
2595
  /**
2588
2596
  * Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be
2589
- * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
2597
+ * [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message) or the request fails.
2590
2598
  */
2591
2599
  allowMissing?:
2592
2600
  boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230611",
3
+ "version": "0.0.20230622",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -51,6 +51,9 @@ var client_id = '',
51
51
  // Delete conversations and spaces & remove access to associated files in Google Chat
52
52
  'https://www.googleapis.com/auth/chat.delete',
53
53
 
54
+ // Import spaces, messages, and memberships into Google Chat.
55
+ 'https://www.googleapis.com/auth/chat.import',
56
+
54
57
  // View, add, and remove members from conversations in Google Chat
55
58
  'https://www.googleapis.com/auth/chat.memberships',
56
59
 
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: 20230611
6
+ // Revision: 20230622
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -19,6 +19,8 @@ gapi.load('client', async () => {
19
19
  'https://www.googleapis.com/auth/chat.bot',
20
20
  /** Delete conversations and spaces & remove access to associated files in Google Chat */
21
21
  'https://www.googleapis.com/auth/chat.delete',
22
+ /** Import spaces, messages, and memberships into Google Chat. */
23
+ 'https://www.googleapis.com/auth/chat.import',
22
24
  /** View, add, and remove members from conversations in Google Chat */
23
25
  'https://www.googleapis.com/auth/chat.memberships',
24
26
  /** Add and remove itself from conversations in Google Chat */
@@ -1161,6 +1163,11 @@ gapi.load('client', async () => {
1161
1163
  }
1162
1164
  ],
1163
1165
  argumentText: "Test string",
1166
+ attachedGifs: [
1167
+ {
1168
+ uri: "Test string",
1169
+ }
1170
+ ],
1164
1171
  attachment: [
1165
1172
  {
1166
1173
  attachmentDataRef: {
@@ -3178,6 +3185,11 @@ gapi.load('client', async () => {
3178
3185
  }
3179
3186
  ],
3180
3187
  argumentText: "Test string",
3188
+ attachedGifs: [
3189
+ {
3190
+ uri: "Test string",
3191
+ }
3192
+ ],
3181
3193
  attachment: [
3182
3194
  {
3183
3195
  attachmentDataRef: {
@@ -5162,6 +5174,11 @@ gapi.load('client', async () => {
5162
5174
  }
5163
5175
  ],
5164
5176
  argumentText: "Test string",
5177
+ attachedGifs: [
5178
+ {
5179
+ uri: "Test string",
5180
+ }
5181
+ ],
5165
5182
  attachment: [
5166
5183
  {
5167
5184
  attachmentDataRef: {