@maxim_mazurok/gapi.client.chat-v1 0.0.20221009 → 0.0.20221013

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 (4) hide show
  1. package/index.d.ts +136 -8
  2. package/package.json +1 -1
  3. package/readme.md +21 -0
  4. package/tests.ts +35 -2
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: 20221009
12
+ // Revision: 20221013
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -649,11 +649,11 @@ declare namespace gapi.client {
649
649
  interface ListMembershipsResponse {
650
650
  /** List of memberships in the requested (or first) page. */
651
651
  memberships?: Membership[];
652
- /** Continuation token to retrieve the next page of results. It will be empty for the last page of results. */
652
+ /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
653
653
  nextPageToken?: string;
654
654
  }
655
655
  interface ListSpacesResponse {
656
- /** Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed. */
656
+ /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
657
657
  nextPageToken?: string;
658
658
  /** List of spaces in the requested (or first) page. */
659
659
  spaces?: Space[];
@@ -703,6 +703,12 @@ declare namespace gapi.client {
703
703
  * supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider`
704
704
  */
705
705
  cardsV2?: CardWithId[];
706
+ /**
707
+ * A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this
708
+ * field to get, update, or delete the message with the specified value. For example usage, see [Name a created
709
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
710
+ */
711
+ clientAssignedMessageId?: string;
706
712
  /** Output only. The time at which the message was created in Google Chat server. */
707
713
  createTime?: string;
708
714
  /** A plain-text description of the message's cards, used when the actual cards cannot be displayed (e.g. mobile notifications). */
@@ -862,6 +868,12 @@ declare namespace gapi.client {
862
868
  fields?: string;
863
869
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
864
870
  key?: string;
871
+ /**
872
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
873
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
874
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
875
+ */
876
+ messageId?: string;
865
877
  /** OAuth 2.0 token for the current user. */
866
878
  oauth_token?: string;
867
879
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -897,6 +909,12 @@ declare namespace gapi.client {
897
909
  fields?: string;
898
910
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
899
911
  key?: string;
912
+ /**
913
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
914
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
915
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
916
+ */
917
+ messageId?: string;
900
918
  /** OAuth 2.0 token for the current user. */
901
919
  oauth_token?: string;
902
920
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -934,6 +952,12 @@ declare namespace gapi.client {
934
952
  fields?: string;
935
953
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
936
954
  key?: string;
955
+ /**
956
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
957
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
958
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
959
+ */
960
+ messageId?: string;
937
961
  /** OAuth 2.0 token for the current user. */
938
962
  oauth_token?: string;
939
963
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -969,6 +993,12 @@ declare namespace gapi.client {
969
993
  fields?: string;
970
994
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
971
995
  key?: string;
996
+ /**
997
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
998
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
999
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1000
+ */
1001
+ messageId?: string;
972
1002
  /** OAuth 2.0 token for the current user. */
973
1003
  oauth_token?: string;
974
1004
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1004,6 +1034,12 @@ declare namespace gapi.client {
1004
1034
  fields?: string;
1005
1035
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1006
1036
  key?: string;
1037
+ /**
1038
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1039
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1040
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1041
+ */
1042
+ messageId?: string;
1007
1043
  /** OAuth 2.0 token for the current user. */
1008
1044
  oauth_token?: string;
1009
1045
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1039,6 +1075,12 @@ declare namespace gapi.client {
1039
1075
  fields?: string;
1040
1076
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1041
1077
  key?: string;
1078
+ /**
1079
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1080
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1081
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1082
+ */
1083
+ messageId?: string;
1042
1084
  /** OAuth 2.0 token for the current user. */
1043
1085
  oauth_token?: string;
1044
1086
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1106,6 +1148,12 @@ declare namespace gapi.client {
1106
1148
  fields?: string;
1107
1149
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1108
1150
  key?: string;
1151
+ /**
1152
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1153
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1154
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1155
+ */
1156
+ messageId?: string;
1109
1157
  /** OAuth 2.0 token for the current user. */
1110
1158
  oauth_token?: string;
1111
1159
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1141,6 +1189,12 @@ declare namespace gapi.client {
1141
1189
  fields?: string;
1142
1190
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1143
1191
  key?: string;
1192
+ /**
1193
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1194
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1195
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1196
+ */
1197
+ messageId?: string;
1144
1198
  /** OAuth 2.0 token for the current user. */
1145
1199
  oauth_token?: string;
1146
1200
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1178,6 +1232,12 @@ declare namespace gapi.client {
1178
1232
  fields?: string;
1179
1233
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1180
1234
  key?: string;
1235
+ /**
1236
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1237
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1238
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1239
+ */
1240
+ messageId?: string;
1181
1241
  /** OAuth 2.0 token for the current user. */
1182
1242
  oauth_token?: string;
1183
1243
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1213,6 +1273,12 @@ declare namespace gapi.client {
1213
1273
  fields?: string;
1214
1274
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1215
1275
  key?: string;
1276
+ /**
1277
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1278
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1279
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1280
+ */
1281
+ messageId?: string;
1216
1282
  /** OAuth 2.0 token for the current user. */
1217
1283
  oauth_token?: string;
1218
1284
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1248,6 +1314,12 @@ declare namespace gapi.client {
1248
1314
  fields?: string;
1249
1315
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1250
1316
  key?: string;
1317
+ /**
1318
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1319
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1320
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1321
+ */
1322
+ messageId?: string;
1251
1323
  /** OAuth 2.0 token for the current user. */
1252
1324
  oauth_token?: string;
1253
1325
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1283,6 +1355,12 @@ declare namespace gapi.client {
1283
1355
  fields?: string;
1284
1356
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1285
1357
  key?: string;
1358
+ /**
1359
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1360
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1361
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1362
+ */
1363
+ messageId?: string;
1286
1364
  /** OAuth 2.0 token for the current user. */
1287
1365
  oauth_token?: string;
1288
1366
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1350,9 +1428,15 @@ declare namespace gapi.client {
1350
1428
  key?: string;
1351
1429
  /** OAuth 2.0 token for the current user. */
1352
1430
  oauth_token?: string;
1353
- /** Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100. */
1431
+ /**
1432
+ * The maximum number of memberships to return. The service may return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000;
1433
+ * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1434
+ */
1354
1435
  pageSize?: number;
1355
- /** A token identifying a page of results the server should return. */
1436
+ /**
1437
+ * A page token, received from a previous list memberships call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the call
1438
+ * that provided the page token.
1439
+ */
1356
1440
  pageToken?: string;
1357
1441
  /** Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} */
1358
1442
  parent: string;
@@ -1413,6 +1497,12 @@ declare namespace gapi.client {
1413
1497
  fields?: string;
1414
1498
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1415
1499
  key?: string;
1500
+ /**
1501
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1502
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1503
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1504
+ */
1505
+ messageId?: string;
1416
1506
  /** OAuth 2.0 token for the current user. */
1417
1507
  oauth_token?: string;
1418
1508
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1448,6 +1538,12 @@ declare namespace gapi.client {
1448
1538
  fields?: string;
1449
1539
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1450
1540
  key?: string;
1541
+ /**
1542
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1543
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1544
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1545
+ */
1546
+ messageId?: string;
1451
1547
  /** OAuth 2.0 token for the current user. */
1452
1548
  oauth_token?: string;
1453
1549
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1510,7 +1606,11 @@ declare namespace gapi.client {
1510
1606
  fields?: string;
1511
1607
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1512
1608
  key?: string;
1513
- /** Required. Resource name of the message to be retrieved, in the form "spaces/*‍/messages/*". Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB */
1609
+ /**
1610
+ * 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 Chat
1611
+ * 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 name a
1612
+ * message] (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1613
+ */
1514
1614
  name: string;
1515
1615
  /** OAuth 2.0 token for the current user. */
1516
1616
  oauth_token?: string;
@@ -1529,6 +1629,11 @@ declare namespace gapi.client {
1529
1629
  "$.xgafv"?: string;
1530
1630
  /** OAuth access token. */
1531
1631
  access_token?: string;
1632
+ /**
1633
+ * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1634
+ * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1635
+ */
1636
+ allowMissing?: boolean;
1532
1637
  /** Data format for response. */
1533
1638
  alt?: string;
1534
1639
  /** JSONP */
@@ -1562,6 +1667,11 @@ declare namespace gapi.client {
1562
1667
  "$.xgafv"?: string;
1563
1668
  /** OAuth access token. */
1564
1669
  access_token?: string;
1670
+ /**
1671
+ * Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
1672
+ * [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
1673
+ */
1674
+ allowMissing?: boolean;
1565
1675
  /** Data format for response. */
1566
1676
  alt?: string;
1567
1677
  /** JSONP */
@@ -1635,9 +1745,15 @@ declare namespace gapi.client {
1635
1745
  key?: string;
1636
1746
  /** OAuth 2.0 token for the current user. */
1637
1747
  oauth_token?: string;
1638
- /** Optional. Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100. */
1748
+ /**
1749
+ * 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;
1750
+ * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1751
+ */
1639
1752
  pageSize?: number;
1640
- /** Optional. A token identifying a page of results the server should return. */
1753
+ /**
1754
+ * Optional. A page token, received from a previous list spaces call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the
1755
+ * call that provided the page token.
1756
+ */
1641
1757
  pageToken?: string;
1642
1758
  /** Returns response with indentations and line breaks. */
1643
1759
  prettyPrint?: boolean;
@@ -1662,6 +1778,12 @@ declare namespace gapi.client {
1662
1778
  fields?: string;
1663
1779
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1664
1780
  key?: string;
1781
+ /**
1782
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1783
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1784
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1785
+ */
1786
+ messageId?: string;
1665
1787
  /** OAuth 2.0 token for the current user. */
1666
1788
  oauth_token?: string;
1667
1789
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
@@ -1697,6 +1819,12 @@ declare namespace gapi.client {
1697
1819
  fields?: string;
1698
1820
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1699
1821
  key?: string;
1822
+ /**
1823
+ * Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in
1824
+ * length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
1825
+ * message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
1826
+ */
1827
+ messageId?: string;
1700
1828
  /** OAuth 2.0 token for the current user. */
1701
1829
  oauth_token?: string;
1702
1830
  /** Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20221009",
3
+ "version": "0.0.20221013",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -39,7 +39,28 @@ gapi.client.load('chat', 'v1', () => {
39
39
  });
40
40
  ```
41
41
 
42
+ Don't forget to authenticate your client before sending any request to resources:
42
43
 
44
+ ```typescript
45
+ // declare client_id registered in Google Developers Console
46
+ var client_id = '',
47
+ scope = [
48
+ // View, add, and remove members from conversations in Google Chat
49
+ 'https://www.googleapis.com/auth/chat.memberships',
50
+ ],
51
+ immediate = true;
52
+ // ...
53
+
54
+ gapi.auth.authorize(
55
+ { client_id: client_id, scope: scope, immediate: immediate },
56
+ authResult => {
57
+ if (authResult && !authResult.error) {
58
+ /* handle successful authorization */
59
+ } else {
60
+ /* handle authorization error */
61
+ }
62
+ });
63
+ ```
43
64
 
44
65
  After that you can use Google Chat API resources: <!-- TODO: make this work for multiple namespaces -->
45
66
 
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: 20221009
6
+ // Revision: 20221013
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -11,11 +11,27 @@ gapi.load('client', async () => {
11
11
  await gapi.client.load('https://chat.googleapis.com/$discovery/rest?version=v1');
12
12
  /** now we can use gapi.client.chat */
13
13
 
14
- run();
14
+ /** don't forget to authenticate your client before sending any request to resources: */
15
+ /** declare client_id registered in Google Developers Console */
16
+ const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
+ const scope = [
18
+ /** View, add, and remove members from conversations in Google Chat */
19
+ 'https://www.googleapis.com/auth/chat.memberships',
20
+ ];
21
+ const immediate = false;
22
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
+ if (authResult && !authResult.error) {
24
+ /** handle successful authorization */
25
+ run();
26
+ } else {
27
+ /** handle authorization error */
28
+ }
29
+ });
15
30
 
16
31
  async function run() {
17
32
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
18
33
  await gapi.client.chat.dms.messages({
34
+ messageId: "Test string",
19
35
  parent: "Test string",
20
36
  requestId: "Test string",
21
37
  threadKey: "Test string",
@@ -1278,6 +1294,7 @@ gapi.load('client', async () => {
1278
1294
  cardId: "Test string",
1279
1295
  }
1280
1296
  ],
1297
+ clientAssignedMessageId: "Test string",
1281
1298
  createTime: "Test string",
1282
1299
  fallbackText: "Test string",
1283
1300
  lastUpdateTime: "Test string",
@@ -1313,6 +1330,7 @@ gapi.load('client', async () => {
1313
1330
  });
1314
1331
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
1315
1332
  await gapi.client.chat.dms.webhooks({
1333
+ messageId: "Test string",
1316
1334
  parent: "Test string",
1317
1335
  requestId: "Test string",
1318
1336
  threadKey: "Test string",
@@ -2575,6 +2593,7 @@ gapi.load('client', async () => {
2575
2593
  cardId: "Test string",
2576
2594
  }
2577
2595
  ],
2596
+ clientAssignedMessageId: "Test string",
2578
2597
  createTime: "Test string",
2579
2598
  fallbackText: "Test string",
2580
2599
  lastUpdateTime: "Test string",
@@ -2610,6 +2629,7 @@ gapi.load('client', async () => {
2610
2629
  });
2611
2630
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
2612
2631
  await gapi.client.chat.dms.conversations.messages({
2632
+ messageId: "Test string",
2613
2633
  parent: "Test string",
2614
2634
  requestId: "Test string",
2615
2635
  threadKey: "Test string",
@@ -3872,6 +3892,7 @@ gapi.load('client', async () => {
3872
3892
  cardId: "Test string",
3873
3893
  }
3874
3894
  ],
3895
+ clientAssignedMessageId: "Test string",
3875
3896
  createTime: "Test string",
3876
3897
  fallbackText: "Test string",
3877
3898
  lastUpdateTime: "Test string",
@@ -3911,6 +3932,7 @@ gapi.load('client', async () => {
3911
3932
  });
3912
3933
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
3913
3934
  await gapi.client.chat.rooms.messages({
3935
+ messageId: "Test string",
3914
3936
  parent: "Test string",
3915
3937
  requestId: "Test string",
3916
3938
  threadKey: "Test string",
@@ -5173,6 +5195,7 @@ gapi.load('client', async () => {
5173
5195
  cardId: "Test string",
5174
5196
  }
5175
5197
  ],
5198
+ clientAssignedMessageId: "Test string",
5176
5199
  createTime: "Test string",
5177
5200
  fallbackText: "Test string",
5178
5201
  lastUpdateTime: "Test string",
@@ -5208,6 +5231,7 @@ gapi.load('client', async () => {
5208
5231
  });
5209
5232
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
5210
5233
  await gapi.client.chat.rooms.webhooks({
5234
+ messageId: "Test string",
5211
5235
  parent: "Test string",
5212
5236
  requestId: "Test string",
5213
5237
  threadKey: "Test string",
@@ -6470,6 +6494,7 @@ gapi.load('client', async () => {
6470
6494
  cardId: "Test string",
6471
6495
  }
6472
6496
  ],
6497
+ clientAssignedMessageId: "Test string",
6473
6498
  createTime: "Test string",
6474
6499
  fallbackText: "Test string",
6475
6500
  lastUpdateTime: "Test string",
@@ -6505,6 +6530,7 @@ gapi.load('client', async () => {
6505
6530
  });
6506
6531
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
6507
6532
  await gapi.client.chat.rooms.conversations.messages({
6533
+ messageId: "Test string",
6508
6534
  parent: "Test string",
6509
6535
  requestId: "Test string",
6510
6536
  threadKey: "Test string",
@@ -7767,6 +7793,7 @@ gapi.load('client', async () => {
7767
7793
  cardId: "Test string",
7768
7794
  }
7769
7795
  ],
7796
+ clientAssignedMessageId: "Test string",
7770
7797
  createTime: "Test string",
7771
7798
  fallbackText: "Test string",
7772
7799
  lastUpdateTime: "Test string",
@@ -7811,6 +7838,7 @@ gapi.load('client', async () => {
7811
7838
  });
7812
7839
  /** Legacy path for creating message. Calling these will result in a BadRequest response. */
7813
7840
  await gapi.client.chat.spaces.webhooks({
7841
+ messageId: "Test string",
7814
7842
  parent: "Test string",
7815
7843
  requestId: "Test string",
7816
7844
  threadKey: "Test string",
@@ -9073,6 +9101,7 @@ gapi.load('client', async () => {
9073
9101
  cardId: "Test string",
9074
9102
  }
9075
9103
  ],
9104
+ clientAssignedMessageId: "Test string",
9076
9105
  createTime: "Test string",
9077
9106
  fallbackText: "Test string",
9078
9107
  lastUpdateTime: "Test string",
@@ -9118,6 +9147,7 @@ gapi.load('client', async () => {
9118
9147
  });
9119
9148
  /** Creates a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
9120
9149
  await gapi.client.chat.spaces.messages.create({
9150
+ messageId: "Test string",
9121
9151
  parent: "Test string",
9122
9152
  requestId: "Test string",
9123
9153
  threadKey: "Test string",
@@ -10380,6 +10410,7 @@ gapi.load('client', async () => {
10380
10410
  cardId: "Test string",
10381
10411
  }
10382
10412
  ],
10413
+ clientAssignedMessageId: "Test string",
10383
10414
  createTime: "Test string",
10384
10415
  fallbackText: "Test string",
10385
10416
  lastUpdateTime: "Test string",
@@ -10423,6 +10454,7 @@ gapi.load('client', async () => {
10423
10454
  });
10424
10455
  /** Updates a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
10425
10456
  await gapi.client.chat.spaces.messages.update({
10457
+ allowMissing: true,
10426
10458
  name: "Test string",
10427
10459
  updateMask: "Test string",
10428
10460
  }, {
@@ -11684,6 +11716,7 @@ gapi.load('client', async () => {
11684
11716
  cardId: "Test string",
11685
11717
  }
11686
11718
  ],
11719
+ clientAssignedMessageId: "Test string",
11687
11720
  createTime: "Test string",
11688
11721
  fallbackText: "Test string",
11689
11722
  lastUpdateTime: "Test string",