@maxim_mazurok/gapi.client.chat-v1 0.0.20221020 → 0.0.20221027
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 +80 -58
- package/package.json +1 -1
- package/tests.ts +402 -10
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:
|
|
12
|
+
// Revision: 20221027
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -244,6 +244,14 @@ declare namespace gapi.client {
|
|
|
244
244
|
interface GoogleAppsCardV1Action {
|
|
245
245
|
/** Apps Script function to invoke when the containing element is clicked/activated. */
|
|
246
246
|
function?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Optional. Required when opening a [dialog](https://developers.google.com/chat/how-tos/dialogs). What to do in response to an interaction with a user, such as a user clicking button
|
|
249
|
+
* on a card message. If unspecified, the app responds by executing an `action` - like opening a link or running a function - as normal. By specifying an `interaction`, the app can
|
|
250
|
+
* respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/chat/how-tos/dialogs). When
|
|
251
|
+
* specified, a loading indicator is not shown. Supported by Chat apps, but not Google Workspace Add-ons. If specified for an add-on, the entire card is stripped and nothing is shown
|
|
252
|
+
* in the client.
|
|
253
|
+
*/
|
|
254
|
+
interaction?: string;
|
|
247
255
|
/** Specifies the loading indicator that the action displays while making the call to the action. */
|
|
248
256
|
loadIndicator?: string;
|
|
249
257
|
/** List of action parameters. */
|
|
@@ -890,7 +898,7 @@ declare namespace gapi.client {
|
|
|
890
898
|
messageReplyOption?: string;
|
|
891
899
|
/** OAuth 2.0 token for the current user. */
|
|
892
900
|
oauth_token?: string;
|
|
893
|
-
/** Required.
|
|
901
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
894
902
|
parent: string;
|
|
895
903
|
/** Returns response with indentations and line breaks. */
|
|
896
904
|
prettyPrint?: boolean;
|
|
@@ -899,8 +907,8 @@ declare namespace gapi.client {
|
|
|
899
907
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
900
908
|
requestId?: string;
|
|
901
909
|
/**
|
|
902
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
903
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
910
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
911
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
904
912
|
*/
|
|
905
913
|
threadKey?: string;
|
|
906
914
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -933,7 +941,7 @@ declare namespace gapi.client {
|
|
|
933
941
|
messageReplyOption?: string;
|
|
934
942
|
/** OAuth 2.0 token for the current user. */
|
|
935
943
|
oauth_token?: string;
|
|
936
|
-
/** Required.
|
|
944
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
937
945
|
parent: string;
|
|
938
946
|
/** Returns response with indentations and line breaks. */
|
|
939
947
|
prettyPrint?: boolean;
|
|
@@ -942,8 +950,8 @@ declare namespace gapi.client {
|
|
|
942
950
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
943
951
|
requestId?: string;
|
|
944
952
|
/**
|
|
945
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
946
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
953
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
954
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
947
955
|
*/
|
|
948
956
|
threadKey?: string;
|
|
949
957
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -978,7 +986,7 @@ declare namespace gapi.client {
|
|
|
978
986
|
messageReplyOption?: string;
|
|
979
987
|
/** OAuth 2.0 token for the current user. */
|
|
980
988
|
oauth_token?: string;
|
|
981
|
-
/** Required.
|
|
989
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
982
990
|
parent: string;
|
|
983
991
|
/** Returns response with indentations and line breaks. */
|
|
984
992
|
prettyPrint?: boolean;
|
|
@@ -987,8 +995,8 @@ declare namespace gapi.client {
|
|
|
987
995
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
988
996
|
requestId?: string;
|
|
989
997
|
/**
|
|
990
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
991
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
998
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
999
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
992
1000
|
*/
|
|
993
1001
|
threadKey?: string;
|
|
994
1002
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1021,7 +1029,7 @@ declare namespace gapi.client {
|
|
|
1021
1029
|
messageReplyOption?: string;
|
|
1022
1030
|
/** OAuth 2.0 token for the current user. */
|
|
1023
1031
|
oauth_token?: string;
|
|
1024
|
-
/** Required.
|
|
1032
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1025
1033
|
parent: string;
|
|
1026
1034
|
/** Returns response with indentations and line breaks. */
|
|
1027
1035
|
prettyPrint?: boolean;
|
|
@@ -1030,8 +1038,8 @@ declare namespace gapi.client {
|
|
|
1030
1038
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1031
1039
|
requestId?: string;
|
|
1032
1040
|
/**
|
|
1033
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1034
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1041
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1042
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1035
1043
|
*/
|
|
1036
1044
|
threadKey?: string;
|
|
1037
1045
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1064,7 +1072,7 @@ declare namespace gapi.client {
|
|
|
1064
1072
|
messageReplyOption?: string;
|
|
1065
1073
|
/** OAuth 2.0 token for the current user. */
|
|
1066
1074
|
oauth_token?: string;
|
|
1067
|
-
/** Required.
|
|
1075
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1068
1076
|
parent: string;
|
|
1069
1077
|
/** Returns response with indentations and line breaks. */
|
|
1070
1078
|
prettyPrint?: boolean;
|
|
@@ -1073,8 +1081,8 @@ declare namespace gapi.client {
|
|
|
1073
1081
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1074
1082
|
requestId?: string;
|
|
1075
1083
|
/**
|
|
1076
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1077
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1084
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1085
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1078
1086
|
*/
|
|
1079
1087
|
threadKey?: string;
|
|
1080
1088
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1107,7 +1115,7 @@ declare namespace gapi.client {
|
|
|
1107
1115
|
messageReplyOption?: string;
|
|
1108
1116
|
/** OAuth 2.0 token for the current user. */
|
|
1109
1117
|
oauth_token?: string;
|
|
1110
|
-
/** Required.
|
|
1118
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1111
1119
|
parent: string;
|
|
1112
1120
|
/** Returns response with indentations and line breaks. */
|
|
1113
1121
|
prettyPrint?: boolean;
|
|
@@ -1116,8 +1124,8 @@ declare namespace gapi.client {
|
|
|
1116
1124
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1117
1125
|
requestId?: string;
|
|
1118
1126
|
/**
|
|
1119
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1120
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1127
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1128
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1121
1129
|
*/
|
|
1122
1130
|
threadKey?: string;
|
|
1123
1131
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1182,7 +1190,7 @@ declare namespace gapi.client {
|
|
|
1182
1190
|
messageReplyOption?: string;
|
|
1183
1191
|
/** OAuth 2.0 token for the current user. */
|
|
1184
1192
|
oauth_token?: string;
|
|
1185
|
-
/** Required.
|
|
1193
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1186
1194
|
parent: string;
|
|
1187
1195
|
/** Returns response with indentations and line breaks. */
|
|
1188
1196
|
prettyPrint?: boolean;
|
|
@@ -1191,8 +1199,8 @@ declare namespace gapi.client {
|
|
|
1191
1199
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1192
1200
|
requestId?: string;
|
|
1193
1201
|
/**
|
|
1194
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1195
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1202
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1203
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1196
1204
|
*/
|
|
1197
1205
|
threadKey?: string;
|
|
1198
1206
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1225,7 +1233,7 @@ declare namespace gapi.client {
|
|
|
1225
1233
|
messageReplyOption?: string;
|
|
1226
1234
|
/** OAuth 2.0 token for the current user. */
|
|
1227
1235
|
oauth_token?: string;
|
|
1228
|
-
/** Required.
|
|
1236
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1229
1237
|
parent: string;
|
|
1230
1238
|
/** Returns response with indentations and line breaks. */
|
|
1231
1239
|
prettyPrint?: boolean;
|
|
@@ -1234,8 +1242,8 @@ declare namespace gapi.client {
|
|
|
1234
1242
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1235
1243
|
requestId?: string;
|
|
1236
1244
|
/**
|
|
1237
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1238
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1245
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1246
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1239
1247
|
*/
|
|
1240
1248
|
threadKey?: string;
|
|
1241
1249
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1270,7 +1278,7 @@ declare namespace gapi.client {
|
|
|
1270
1278
|
messageReplyOption?: string;
|
|
1271
1279
|
/** OAuth 2.0 token for the current user. */
|
|
1272
1280
|
oauth_token?: string;
|
|
1273
|
-
/** Required.
|
|
1281
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1274
1282
|
parent: string;
|
|
1275
1283
|
/** Returns response with indentations and line breaks. */
|
|
1276
1284
|
prettyPrint?: boolean;
|
|
@@ -1279,8 +1287,8 @@ declare namespace gapi.client {
|
|
|
1279
1287
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1280
1288
|
requestId?: string;
|
|
1281
1289
|
/**
|
|
1282
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1283
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1290
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1291
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1284
1292
|
*/
|
|
1285
1293
|
threadKey?: string;
|
|
1286
1294
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1313,7 +1321,7 @@ declare namespace gapi.client {
|
|
|
1313
1321
|
messageReplyOption?: string;
|
|
1314
1322
|
/** OAuth 2.0 token for the current user. */
|
|
1315
1323
|
oauth_token?: string;
|
|
1316
|
-
/** Required.
|
|
1324
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1317
1325
|
parent: string;
|
|
1318
1326
|
/** Returns response with indentations and line breaks. */
|
|
1319
1327
|
prettyPrint?: boolean;
|
|
@@ -1322,8 +1330,8 @@ declare namespace gapi.client {
|
|
|
1322
1330
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1323
1331
|
requestId?: string;
|
|
1324
1332
|
/**
|
|
1325
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1326
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1333
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1334
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1327
1335
|
*/
|
|
1328
1336
|
threadKey?: string;
|
|
1329
1337
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1356,7 +1364,7 @@ declare namespace gapi.client {
|
|
|
1356
1364
|
messageReplyOption?: string;
|
|
1357
1365
|
/** OAuth 2.0 token for the current user. */
|
|
1358
1366
|
oauth_token?: string;
|
|
1359
|
-
/** Required.
|
|
1367
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1360
1368
|
parent: string;
|
|
1361
1369
|
/** Returns response with indentations and line breaks. */
|
|
1362
1370
|
prettyPrint?: boolean;
|
|
@@ -1365,8 +1373,8 @@ declare namespace gapi.client {
|
|
|
1365
1373
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1366
1374
|
requestId?: string;
|
|
1367
1375
|
/**
|
|
1368
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1369
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1376
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1377
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1370
1378
|
*/
|
|
1371
1379
|
threadKey?: string;
|
|
1372
1380
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1399,7 +1407,7 @@ declare namespace gapi.client {
|
|
|
1399
1407
|
messageReplyOption?: string;
|
|
1400
1408
|
/** OAuth 2.0 token for the current user. */
|
|
1401
1409
|
oauth_token?: string;
|
|
1402
|
-
/** Required.
|
|
1410
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1403
1411
|
parent: string;
|
|
1404
1412
|
/** Returns response with indentations and line breaks. */
|
|
1405
1413
|
prettyPrint?: boolean;
|
|
@@ -1408,8 +1416,8 @@ declare namespace gapi.client {
|
|
|
1408
1416
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1409
1417
|
requestId?: string;
|
|
1410
1418
|
/**
|
|
1411
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1412
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1419
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1420
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1413
1421
|
*/
|
|
1414
1422
|
threadKey?: string;
|
|
1415
1423
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1448,7 +1456,7 @@ declare namespace gapi.client {
|
|
|
1448
1456
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1449
1457
|
uploadType?: string;
|
|
1450
1458
|
}): Request<Membership>;
|
|
1451
|
-
/** Lists
|
|
1459
|
+
/** Lists memberships in a space. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
|
|
1452
1460
|
list(request?: {
|
|
1453
1461
|
/** V1 error format. */
|
|
1454
1462
|
"$.xgafv"?: string;
|
|
@@ -1519,7 +1527,13 @@ declare namespace gapi.client {
|
|
|
1519
1527
|
}): Request<Attachment>;
|
|
1520
1528
|
}
|
|
1521
1529
|
interface MessagesResource {
|
|
1522
|
-
/**
|
|
1530
|
+
/**
|
|
1531
|
+
* Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires
|
|
1532
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1533
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as
|
|
1534
|
+
* part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User
|
|
1535
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope.
|
|
1536
|
+
*/
|
|
1523
1537
|
create(request: {
|
|
1524
1538
|
/** V1 error format. */
|
|
1525
1539
|
"$.xgafv"?: string;
|
|
@@ -1543,7 +1557,7 @@ declare namespace gapi.client {
|
|
|
1543
1557
|
messageReplyOption?: string;
|
|
1544
1558
|
/** OAuth 2.0 token for the current user. */
|
|
1545
1559
|
oauth_token?: string;
|
|
1546
|
-
/** Required.
|
|
1560
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1547
1561
|
parent: string;
|
|
1548
1562
|
/** Returns response with indentations and line breaks. */
|
|
1549
1563
|
prettyPrint?: boolean;
|
|
@@ -1552,8 +1566,8 @@ declare namespace gapi.client {
|
|
|
1552
1566
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1553
1567
|
requestId?: string;
|
|
1554
1568
|
/**
|
|
1555
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1556
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1569
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1570
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1557
1571
|
*/
|
|
1558
1572
|
threadKey?: string;
|
|
1559
1573
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1586,7 +1600,7 @@ declare namespace gapi.client {
|
|
|
1586
1600
|
messageReplyOption?: string;
|
|
1587
1601
|
/** OAuth 2.0 token for the current user. */
|
|
1588
1602
|
oauth_token?: string;
|
|
1589
|
-
/** Required.
|
|
1603
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1590
1604
|
parent: string;
|
|
1591
1605
|
/** Returns response with indentations and line breaks. */
|
|
1592
1606
|
prettyPrint?: boolean;
|
|
@@ -1595,8 +1609,8 @@ declare namespace gapi.client {
|
|
|
1595
1609
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1596
1610
|
requestId?: string;
|
|
1597
1611
|
/**
|
|
1598
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1599
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1612
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1613
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1600
1614
|
*/
|
|
1601
1615
|
threadKey?: string;
|
|
1602
1616
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1606,9 +1620,11 @@ declare namespace gapi.client {
|
|
|
1606
1620
|
},
|
|
1607
1621
|
body: Message): Request<Message>;
|
|
1608
1622
|
/**
|
|
1609
|
-
* Deletes a message.
|
|
1610
|
-
*
|
|
1611
|
-
*
|
|
1623
|
+
* Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires
|
|
1624
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1625
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as
|
|
1626
|
+
* part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User
|
|
1627
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.
|
|
1612
1628
|
*/
|
|
1613
1629
|
delete(request?: {
|
|
1614
1630
|
/** V1 error format. */
|
|
@@ -1637,9 +1653,12 @@ declare namespace gapi.client {
|
|
|
1637
1653
|
uploadType?: string;
|
|
1638
1654
|
}): Request<{}>;
|
|
1639
1655
|
/**
|
|
1640
|
-
* Returns a message.
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1656
|
+
* Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires
|
|
1657
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account
|
|
1658
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as
|
|
1659
|
+
* part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User
|
|
1660
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message
|
|
1661
|
+
* from a blocked member or space.
|
|
1643
1662
|
*/
|
|
1644
1663
|
get(request?: {
|
|
1645
1664
|
/** V1 error format. */
|
|
@@ -1671,7 +1690,10 @@ declare namespace gapi.client {
|
|
|
1671
1690
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1672
1691
|
uploadType?: string;
|
|
1673
1692
|
}): Request<Message>;
|
|
1674
|
-
/**
|
|
1693
|
+
/**
|
|
1694
|
+
* Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [service account
|
|
1695
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).
|
|
1696
|
+
*/
|
|
1675
1697
|
update(request: {
|
|
1676
1698
|
/** V1 error format. */
|
|
1677
1699
|
"$.xgafv"?: string;
|
|
@@ -1836,7 +1858,7 @@ declare namespace gapi.client {
|
|
|
1836
1858
|
messageReplyOption?: string;
|
|
1837
1859
|
/** OAuth 2.0 token for the current user. */
|
|
1838
1860
|
oauth_token?: string;
|
|
1839
|
-
/** Required.
|
|
1861
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1840
1862
|
parent: string;
|
|
1841
1863
|
/** Returns response with indentations and line breaks. */
|
|
1842
1864
|
prettyPrint?: boolean;
|
|
@@ -1845,8 +1867,8 @@ declare namespace gapi.client {
|
|
|
1845
1867
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1846
1868
|
requestId?: string;
|
|
1847
1869
|
/**
|
|
1848
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1849
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1870
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1871
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1850
1872
|
*/
|
|
1851
1873
|
threadKey?: string;
|
|
1852
1874
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -1879,7 +1901,7 @@ declare namespace gapi.client {
|
|
|
1879
1901
|
messageReplyOption?: string;
|
|
1880
1902
|
/** OAuth 2.0 token for the current user. */
|
|
1881
1903
|
oauth_token?: string;
|
|
1882
|
-
/** Required.
|
|
1904
|
+
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1883
1905
|
parent: string;
|
|
1884
1906
|
/** Returns response with indentations and line breaks. */
|
|
1885
1907
|
prettyPrint?: boolean;
|
|
@@ -1888,8 +1910,8 @@ declare namespace gapi.client {
|
|
|
1888
1910
|
/** Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. */
|
|
1889
1911
|
requestId?: string;
|
|
1890
1912
|
/**
|
|
1891
|
-
* Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1892
|
-
* usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1913
|
+
* Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For
|
|
1914
|
+
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1893
1915
|
*/
|
|
1894
1916
|
threadKey?: string;
|
|
1895
1917
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|