@maxim_mazurok/gapi.client.chat-v1 0.0.20230101 → 0.0.20230103
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 +7 -623
- package/package.json +1 -1
- package/readme.md +0 -25
- package/tests.ts +23 -9410
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: 20230103
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -972,518 +972,9 @@ declare namespace gapi.client {
|
|
|
972
972
|
/** Display a text paragraph in this widget. */
|
|
973
973
|
textParagraph?: TextParagraph;
|
|
974
974
|
}
|
|
975
|
-
interface
|
|
976
|
-
/**
|
|
977
|
-
|
|
978
|
-
/** V1 error format. */
|
|
979
|
-
"$.xgafv"?: string;
|
|
980
|
-
/** OAuth access token. */
|
|
981
|
-
access_token?: string;
|
|
982
|
-
/** Data format for response. */
|
|
983
|
-
alt?: string;
|
|
984
|
-
/** JSONP */
|
|
985
|
-
callback?: string;
|
|
986
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
987
|
-
fields?: string;
|
|
988
|
-
/** 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. */
|
|
989
|
-
key?: string;
|
|
990
|
-
/**
|
|
991
|
-
* 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
|
|
992
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
993
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
994
|
-
*/
|
|
995
|
-
messageId?: string;
|
|
996
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
997
|
-
messageReplyOption?: string;
|
|
998
|
-
/** OAuth 2.0 token for the current user. */
|
|
999
|
-
oauth_token?: string;
|
|
1000
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1001
|
-
parent: string;
|
|
1002
|
-
/** Returns response with indentations and line breaks. */
|
|
1003
|
-
prettyPrint?: boolean;
|
|
1004
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1005
|
-
quotaUser?: string;
|
|
1006
|
-
/** 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. */
|
|
1007
|
-
requestId?: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* 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
|
|
1010
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1011
|
-
*/
|
|
1012
|
-
threadKey?: string;
|
|
1013
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1014
|
-
upload_protocol?: string;
|
|
1015
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1016
|
-
uploadType?: string;
|
|
1017
|
-
/** Request body */
|
|
1018
|
-
resource: Message;
|
|
1019
|
-
}): Request<Message>;
|
|
1020
|
-
messages(request: {
|
|
1021
|
-
/** V1 error format. */
|
|
1022
|
-
"$.xgafv"?: string;
|
|
1023
|
-
/** OAuth access token. */
|
|
1024
|
-
access_token?: string;
|
|
1025
|
-
/** Data format for response. */
|
|
1026
|
-
alt?: string;
|
|
1027
|
-
/** JSONP */
|
|
1028
|
-
callback?: string;
|
|
1029
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1030
|
-
fields?: string;
|
|
1031
|
-
/** 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. */
|
|
1032
|
-
key?: string;
|
|
1033
|
-
/**
|
|
1034
|
-
* 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
|
|
1035
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1036
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1037
|
-
*/
|
|
1038
|
-
messageId?: string;
|
|
1039
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1040
|
-
messageReplyOption?: string;
|
|
1041
|
-
/** OAuth 2.0 token for the current user. */
|
|
1042
|
-
oauth_token?: string;
|
|
1043
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1044
|
-
parent: string;
|
|
1045
|
-
/** Returns response with indentations and line breaks. */
|
|
1046
|
-
prettyPrint?: boolean;
|
|
1047
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1048
|
-
quotaUser?: string;
|
|
1049
|
-
/** 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. */
|
|
1050
|
-
requestId?: string;
|
|
1051
|
-
/**
|
|
1052
|
-
* 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
|
|
1053
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1054
|
-
*/
|
|
1055
|
-
threadKey?: string;
|
|
1056
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1057
|
-
upload_protocol?: string;
|
|
1058
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1059
|
-
uploadType?: string;
|
|
1060
|
-
},
|
|
1061
|
-
body: Message): Request<Message>;
|
|
1062
|
-
}
|
|
1063
|
-
interface DmsResource {
|
|
1064
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
1065
|
-
messages(request: {
|
|
1066
|
-
/** V1 error format. */
|
|
1067
|
-
"$.xgafv"?: string;
|
|
1068
|
-
/** OAuth access token. */
|
|
1069
|
-
access_token?: string;
|
|
1070
|
-
/** Data format for response. */
|
|
1071
|
-
alt?: string;
|
|
1072
|
-
/** JSONP */
|
|
1073
|
-
callback?: string;
|
|
1074
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1075
|
-
fields?: string;
|
|
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. */
|
|
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;
|
|
1084
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1085
|
-
messageReplyOption?: string;
|
|
1086
|
-
/** OAuth 2.0 token for the current user. */
|
|
1087
|
-
oauth_token?: string;
|
|
1088
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1089
|
-
parent: string;
|
|
1090
|
-
/** Returns response with indentations and line breaks. */
|
|
1091
|
-
prettyPrint?: boolean;
|
|
1092
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1093
|
-
quotaUser?: string;
|
|
1094
|
-
/** 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. */
|
|
1095
|
-
requestId?: string;
|
|
1096
|
-
/**
|
|
1097
|
-
* 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
|
|
1098
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1099
|
-
*/
|
|
1100
|
-
threadKey?: string;
|
|
1101
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1102
|
-
upload_protocol?: string;
|
|
1103
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1104
|
-
uploadType?: string;
|
|
1105
|
-
/** Request body */
|
|
1106
|
-
resource: Message;
|
|
1107
|
-
}): Request<Message>;
|
|
1108
|
-
messages(request: {
|
|
1109
|
-
/** V1 error format. */
|
|
1110
|
-
"$.xgafv"?: string;
|
|
1111
|
-
/** OAuth access token. */
|
|
1112
|
-
access_token?: string;
|
|
1113
|
-
/** Data format for response. */
|
|
1114
|
-
alt?: string;
|
|
1115
|
-
/** JSONP */
|
|
1116
|
-
callback?: string;
|
|
1117
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1118
|
-
fields?: string;
|
|
1119
|
-
/** 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. */
|
|
1120
|
-
key?: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* 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
|
|
1123
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1124
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1125
|
-
*/
|
|
1126
|
-
messageId?: string;
|
|
1127
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1128
|
-
messageReplyOption?: string;
|
|
1129
|
-
/** OAuth 2.0 token for the current user. */
|
|
1130
|
-
oauth_token?: string;
|
|
1131
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1132
|
-
parent: string;
|
|
1133
|
-
/** Returns response with indentations and line breaks. */
|
|
1134
|
-
prettyPrint?: boolean;
|
|
1135
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1136
|
-
quotaUser?: string;
|
|
1137
|
-
/** 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. */
|
|
1138
|
-
requestId?: string;
|
|
1139
|
-
/**
|
|
1140
|
-
* 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
|
|
1141
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1142
|
-
*/
|
|
1143
|
-
threadKey?: string;
|
|
1144
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1145
|
-
upload_protocol?: string;
|
|
1146
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1147
|
-
uploadType?: string;
|
|
1148
|
-
},
|
|
1149
|
-
body: Message): Request<Message>;
|
|
1150
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
1151
|
-
webhooks(request: {
|
|
1152
|
-
/** V1 error format. */
|
|
1153
|
-
"$.xgafv"?: string;
|
|
1154
|
-
/** OAuth access token. */
|
|
1155
|
-
access_token?: string;
|
|
1156
|
-
/** Data format for response. */
|
|
1157
|
-
alt?: string;
|
|
1158
|
-
/** JSONP */
|
|
1159
|
-
callback?: string;
|
|
1160
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1161
|
-
fields?: string;
|
|
1162
|
-
/** 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. */
|
|
1163
|
-
key?: string;
|
|
1164
|
-
/**
|
|
1165
|
-
* 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
|
|
1166
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1167
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1168
|
-
*/
|
|
1169
|
-
messageId?: string;
|
|
1170
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1171
|
-
messageReplyOption?: string;
|
|
1172
|
-
/** OAuth 2.0 token for the current user. */
|
|
1173
|
-
oauth_token?: string;
|
|
1174
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1175
|
-
parent: string;
|
|
1176
|
-
/** Returns response with indentations and line breaks. */
|
|
1177
|
-
prettyPrint?: boolean;
|
|
1178
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1179
|
-
quotaUser?: string;
|
|
1180
|
-
/** 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. */
|
|
1181
|
-
requestId?: string;
|
|
1182
|
-
/**
|
|
1183
|
-
* 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
|
|
1184
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1185
|
-
*/
|
|
1186
|
-
threadKey?: string;
|
|
1187
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1188
|
-
upload_protocol?: string;
|
|
1189
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1190
|
-
uploadType?: string;
|
|
1191
|
-
/** Request body */
|
|
1192
|
-
resource: Message;
|
|
1193
|
-
}): Request<Message>;
|
|
1194
|
-
webhooks(request: {
|
|
1195
|
-
/** V1 error format. */
|
|
1196
|
-
"$.xgafv"?: string;
|
|
1197
|
-
/** OAuth access token. */
|
|
1198
|
-
access_token?: string;
|
|
1199
|
-
/** Data format for response. */
|
|
1200
|
-
alt?: string;
|
|
1201
|
-
/** JSONP */
|
|
1202
|
-
callback?: string;
|
|
1203
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1204
|
-
fields?: string;
|
|
1205
|
-
/** 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. */
|
|
1206
|
-
key?: string;
|
|
1207
|
-
/**
|
|
1208
|
-
* 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
|
|
1209
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1210
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1211
|
-
*/
|
|
1212
|
-
messageId?: string;
|
|
1213
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1214
|
-
messageReplyOption?: string;
|
|
1215
|
-
/** OAuth 2.0 token for the current user. */
|
|
1216
|
-
oauth_token?: string;
|
|
1217
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1218
|
-
parent: string;
|
|
1219
|
-
/** Returns response with indentations and line breaks. */
|
|
1220
|
-
prettyPrint?: boolean;
|
|
1221
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1222
|
-
quotaUser?: string;
|
|
1223
|
-
/** 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. */
|
|
1224
|
-
requestId?: string;
|
|
1225
|
-
/**
|
|
1226
|
-
* 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
|
|
1227
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1228
|
-
*/
|
|
1229
|
-
threadKey?: string;
|
|
1230
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1231
|
-
upload_protocol?: string;
|
|
1232
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1233
|
-
uploadType?: string;
|
|
1234
|
-
},
|
|
1235
|
-
body: Message): Request<Message>;
|
|
1236
|
-
conversations: ConversationsResource;
|
|
1237
|
-
}
|
|
1238
|
-
interface MediaResource {
|
|
1239
|
-
/** Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`. */
|
|
1240
|
-
download(request?: {
|
|
1241
|
-
/** V1 error format. */
|
|
1242
|
-
"$.xgafv"?: string;
|
|
1243
|
-
/** OAuth access token. */
|
|
1244
|
-
access_token?: string;
|
|
1245
|
-
/** Data format for response. */
|
|
1246
|
-
alt?: string;
|
|
1247
|
-
/** JSONP */
|
|
1248
|
-
callback?: string;
|
|
1249
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1250
|
-
fields?: string;
|
|
1251
|
-
/** 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. */
|
|
1252
|
-
key?: string;
|
|
1253
|
-
/** OAuth 2.0 token for the current user. */
|
|
1254
|
-
oauth_token?: string;
|
|
1255
|
-
/** Returns response with indentations and line breaks. */
|
|
1256
|
-
prettyPrint?: boolean;
|
|
1257
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1258
|
-
quotaUser?: string;
|
|
1259
|
-
/** Name of the media that is being downloaded. See ReadRequest.resource_name. */
|
|
1260
|
-
resourceName: string;
|
|
1261
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1262
|
-
upload_protocol?: string;
|
|
1263
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1264
|
-
uploadType?: string;
|
|
1265
|
-
}): Request<Media>;
|
|
1266
|
-
}
|
|
1267
|
-
interface ConversationsResource {
|
|
1268
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
1269
|
-
messages(request: {
|
|
1270
|
-
/** V1 error format. */
|
|
1271
|
-
"$.xgafv"?: string;
|
|
1272
|
-
/** OAuth access token. */
|
|
1273
|
-
access_token?: string;
|
|
1274
|
-
/** Data format for response. */
|
|
1275
|
-
alt?: string;
|
|
1276
|
-
/** JSONP */
|
|
1277
|
-
callback?: string;
|
|
1278
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1279
|
-
fields?: string;
|
|
1280
|
-
/** 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. */
|
|
1281
|
-
key?: string;
|
|
1282
|
-
/**
|
|
1283
|
-
* 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
|
|
1284
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1285
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1286
|
-
*/
|
|
1287
|
-
messageId?: string;
|
|
1288
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1289
|
-
messageReplyOption?: string;
|
|
1290
|
-
/** OAuth 2.0 token for the current user. */
|
|
1291
|
-
oauth_token?: string;
|
|
1292
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1293
|
-
parent: string;
|
|
1294
|
-
/** Returns response with indentations and line breaks. */
|
|
1295
|
-
prettyPrint?: boolean;
|
|
1296
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1297
|
-
quotaUser?: string;
|
|
1298
|
-
/** 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. */
|
|
1299
|
-
requestId?: string;
|
|
1300
|
-
/**
|
|
1301
|
-
* 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
|
|
1302
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1303
|
-
*/
|
|
1304
|
-
threadKey?: string;
|
|
1305
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1306
|
-
upload_protocol?: string;
|
|
1307
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1308
|
-
uploadType?: string;
|
|
1309
|
-
/** Request body */
|
|
1310
|
-
resource: Message;
|
|
1311
|
-
}): Request<Message>;
|
|
1312
|
-
messages(request: {
|
|
1313
|
-
/** V1 error format. */
|
|
1314
|
-
"$.xgafv"?: string;
|
|
1315
|
-
/** OAuth access token. */
|
|
1316
|
-
access_token?: string;
|
|
1317
|
-
/** Data format for response. */
|
|
1318
|
-
alt?: string;
|
|
1319
|
-
/** JSONP */
|
|
1320
|
-
callback?: string;
|
|
1321
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1322
|
-
fields?: string;
|
|
1323
|
-
/** 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. */
|
|
1324
|
-
key?: string;
|
|
1325
|
-
/**
|
|
1326
|
-
* 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
|
|
1327
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1328
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1329
|
-
*/
|
|
1330
|
-
messageId?: string;
|
|
1331
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1332
|
-
messageReplyOption?: string;
|
|
1333
|
-
/** OAuth 2.0 token for the current user. */
|
|
1334
|
-
oauth_token?: string;
|
|
1335
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1336
|
-
parent: string;
|
|
1337
|
-
/** Returns response with indentations and line breaks. */
|
|
1338
|
-
prettyPrint?: boolean;
|
|
1339
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1340
|
-
quotaUser?: string;
|
|
1341
|
-
/** 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. */
|
|
1342
|
-
requestId?: string;
|
|
1343
|
-
/**
|
|
1344
|
-
* 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
|
|
1345
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1346
|
-
*/
|
|
1347
|
-
threadKey?: string;
|
|
1348
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1349
|
-
upload_protocol?: string;
|
|
1350
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1351
|
-
uploadType?: string;
|
|
1352
|
-
},
|
|
1353
|
-
body: Message): Request<Message>;
|
|
1354
|
-
}
|
|
1355
|
-
interface RoomsResource {
|
|
1356
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
1357
|
-
messages(request: {
|
|
1358
|
-
/** V1 error format. */
|
|
1359
|
-
"$.xgafv"?: string;
|
|
1360
|
-
/** OAuth access token. */
|
|
1361
|
-
access_token?: string;
|
|
1362
|
-
/** Data format for response. */
|
|
1363
|
-
alt?: string;
|
|
1364
|
-
/** JSONP */
|
|
1365
|
-
callback?: string;
|
|
1366
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1367
|
-
fields?: string;
|
|
1368
|
-
/** 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. */
|
|
1369
|
-
key?: string;
|
|
1370
|
-
/**
|
|
1371
|
-
* 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
|
|
1372
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1373
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1374
|
-
*/
|
|
1375
|
-
messageId?: string;
|
|
1376
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1377
|
-
messageReplyOption?: string;
|
|
1378
|
-
/** OAuth 2.0 token for the current user. */
|
|
1379
|
-
oauth_token?: string;
|
|
1380
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1381
|
-
parent: string;
|
|
1382
|
-
/** Returns response with indentations and line breaks. */
|
|
1383
|
-
prettyPrint?: boolean;
|
|
1384
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1385
|
-
quotaUser?: string;
|
|
1386
|
-
/** 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. */
|
|
1387
|
-
requestId?: string;
|
|
1388
|
-
/**
|
|
1389
|
-
* 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
|
|
1390
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1391
|
-
*/
|
|
1392
|
-
threadKey?: string;
|
|
1393
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1394
|
-
upload_protocol?: string;
|
|
1395
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1396
|
-
uploadType?: string;
|
|
1397
|
-
/** Request body */
|
|
1398
|
-
resource: Message;
|
|
1399
|
-
}): Request<Message>;
|
|
1400
|
-
messages(request: {
|
|
1401
|
-
/** V1 error format. */
|
|
1402
|
-
"$.xgafv"?: string;
|
|
1403
|
-
/** OAuth access token. */
|
|
1404
|
-
access_token?: string;
|
|
1405
|
-
/** Data format for response. */
|
|
1406
|
-
alt?: string;
|
|
1407
|
-
/** JSONP */
|
|
1408
|
-
callback?: string;
|
|
1409
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1410
|
-
fields?: string;
|
|
1411
|
-
/** 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. */
|
|
1412
|
-
key?: string;
|
|
1413
|
-
/**
|
|
1414
|
-
* 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
|
|
1415
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1416
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1417
|
-
*/
|
|
1418
|
-
messageId?: string;
|
|
1419
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1420
|
-
messageReplyOption?: string;
|
|
1421
|
-
/** OAuth 2.0 token for the current user. */
|
|
1422
|
-
oauth_token?: string;
|
|
1423
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1424
|
-
parent: string;
|
|
1425
|
-
/** Returns response with indentations and line breaks. */
|
|
1426
|
-
prettyPrint?: boolean;
|
|
1427
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1428
|
-
quotaUser?: string;
|
|
1429
|
-
/** 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. */
|
|
1430
|
-
requestId?: string;
|
|
1431
|
-
/**
|
|
1432
|
-
* 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
|
|
1433
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1434
|
-
*/
|
|
1435
|
-
threadKey?: string;
|
|
1436
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1437
|
-
upload_protocol?: string;
|
|
1438
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1439
|
-
uploadType?: string;
|
|
1440
|
-
},
|
|
1441
|
-
body: Message): Request<Message>;
|
|
1442
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
1443
|
-
webhooks(request: {
|
|
1444
|
-
/** V1 error format. */
|
|
1445
|
-
"$.xgafv"?: string;
|
|
1446
|
-
/** OAuth access token. */
|
|
1447
|
-
access_token?: string;
|
|
1448
|
-
/** Data format for response. */
|
|
1449
|
-
alt?: string;
|
|
1450
|
-
/** JSONP */
|
|
1451
|
-
callback?: string;
|
|
1452
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1453
|
-
fields?: string;
|
|
1454
|
-
/** 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. */
|
|
1455
|
-
key?: string;
|
|
1456
|
-
/**
|
|
1457
|
-
* 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
|
|
1458
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1459
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1460
|
-
*/
|
|
1461
|
-
messageId?: string;
|
|
1462
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1463
|
-
messageReplyOption?: string;
|
|
1464
|
-
/** OAuth 2.0 token for the current user. */
|
|
1465
|
-
oauth_token?: string;
|
|
1466
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1467
|
-
parent: string;
|
|
1468
|
-
/** Returns response with indentations and line breaks. */
|
|
1469
|
-
prettyPrint?: boolean;
|
|
1470
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1471
|
-
quotaUser?: string;
|
|
1472
|
-
/** 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. */
|
|
1473
|
-
requestId?: string;
|
|
1474
|
-
/**
|
|
1475
|
-
* 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
|
|
1476
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1477
|
-
*/
|
|
1478
|
-
threadKey?: string;
|
|
1479
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1480
|
-
upload_protocol?: string;
|
|
1481
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1482
|
-
uploadType?: string;
|
|
1483
|
-
/** Request body */
|
|
1484
|
-
resource: Message;
|
|
1485
|
-
}): Request<Message>;
|
|
1486
|
-
webhooks(request: {
|
|
975
|
+
interface MediaResource {
|
|
976
|
+
/** Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`. */
|
|
977
|
+
download(request?: {
|
|
1487
978
|
/** V1 error format. */
|
|
1488
979
|
"$.xgafv"?: string;
|
|
1489
980
|
/** OAuth access token. */
|
|
@@ -1496,36 +987,19 @@ declare namespace gapi.client {
|
|
|
1496
987
|
fields?: string;
|
|
1497
988
|
/** 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. */
|
|
1498
989
|
key?: string;
|
|
1499
|
-
/**
|
|
1500
|
-
* 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
|
|
1501
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
1502
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
1503
|
-
*/
|
|
1504
|
-
messageId?: string;
|
|
1505
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
1506
|
-
messageReplyOption?: string;
|
|
1507
990
|
/** OAuth 2.0 token for the current user. */
|
|
1508
991
|
oauth_token?: string;
|
|
1509
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
1510
|
-
parent: string;
|
|
1511
992
|
/** Returns response with indentations and line breaks. */
|
|
1512
993
|
prettyPrint?: boolean;
|
|
1513
994
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1514
995
|
quotaUser?: string;
|
|
1515
|
-
/**
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* 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
|
|
1519
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
1520
|
-
*/
|
|
1521
|
-
threadKey?: string;
|
|
996
|
+
/** Name of the media that is being downloaded. See ReadRequest.resource_name. */
|
|
997
|
+
resourceName: string;
|
|
1522
998
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1523
999
|
upload_protocol?: string;
|
|
1524
1000
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1525
1001
|
uploadType?: string;
|
|
1526
|
-
}
|
|
1527
|
-
body: Message): Request<Message>;
|
|
1528
|
-
conversations: ConversationsResource;
|
|
1002
|
+
}): Request<Media>;
|
|
1529
1003
|
}
|
|
1530
1004
|
interface MembersResource {
|
|
1531
1005
|
/**
|
|
@@ -2043,102 +1517,12 @@ declare namespace gapi.client {
|
|
|
2043
1517
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2044
1518
|
uploadType?: string;
|
|
2045
1519
|
}): Request<ListSpacesResponse>;
|
|
2046
|
-
/** Legacy path for creating message. Calling these will result in a BadRequest response. */
|
|
2047
|
-
webhooks(request: {
|
|
2048
|
-
/** V1 error format. */
|
|
2049
|
-
"$.xgafv"?: string;
|
|
2050
|
-
/** OAuth access token. */
|
|
2051
|
-
access_token?: string;
|
|
2052
|
-
/** Data format for response. */
|
|
2053
|
-
alt?: string;
|
|
2054
|
-
/** JSONP */
|
|
2055
|
-
callback?: string;
|
|
2056
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2057
|
-
fields?: string;
|
|
2058
|
-
/** 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. */
|
|
2059
|
-
key?: string;
|
|
2060
|
-
/**
|
|
2061
|
-
* 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
|
|
2062
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
2063
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
2064
|
-
*/
|
|
2065
|
-
messageId?: string;
|
|
2066
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
2067
|
-
messageReplyOption?: string;
|
|
2068
|
-
/** OAuth 2.0 token for the current user. */
|
|
2069
|
-
oauth_token?: string;
|
|
2070
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
2071
|
-
parent: string;
|
|
2072
|
-
/** Returns response with indentations and line breaks. */
|
|
2073
|
-
prettyPrint?: boolean;
|
|
2074
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2075
|
-
quotaUser?: string;
|
|
2076
|
-
/** 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. */
|
|
2077
|
-
requestId?: string;
|
|
2078
|
-
/**
|
|
2079
|
-
* 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
|
|
2080
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2081
|
-
*/
|
|
2082
|
-
threadKey?: string;
|
|
2083
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2084
|
-
upload_protocol?: string;
|
|
2085
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2086
|
-
uploadType?: string;
|
|
2087
|
-
/** Request body */
|
|
2088
|
-
resource: Message;
|
|
2089
|
-
}): Request<Message>;
|
|
2090
|
-
webhooks(request: {
|
|
2091
|
-
/** V1 error format. */
|
|
2092
|
-
"$.xgafv"?: string;
|
|
2093
|
-
/** OAuth access token. */
|
|
2094
|
-
access_token?: string;
|
|
2095
|
-
/** Data format for response. */
|
|
2096
|
-
alt?: string;
|
|
2097
|
-
/** JSONP */
|
|
2098
|
-
callback?: string;
|
|
2099
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2100
|
-
fields?: string;
|
|
2101
|
-
/** 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. */
|
|
2102
|
-
key?: string;
|
|
2103
|
-
/**
|
|
2104
|
-
* 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
|
|
2105
|
-
* length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created
|
|
2106
|
-
* message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
|
|
2107
|
-
*/
|
|
2108
|
-
messageId?: string;
|
|
2109
|
-
/** Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. */
|
|
2110
|
-
messageReplyOption?: string;
|
|
2111
|
-
/** OAuth 2.0 token for the current user. */
|
|
2112
|
-
oauth_token?: string;
|
|
2113
|
-
/** Required. The resource name of the space in which to create a message. Format: spaces/{space} */
|
|
2114
|
-
parent: string;
|
|
2115
|
-
/** Returns response with indentations and line breaks. */
|
|
2116
|
-
prettyPrint?: boolean;
|
|
2117
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2118
|
-
quotaUser?: string;
|
|
2119
|
-
/** 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. */
|
|
2120
|
-
requestId?: string;
|
|
2121
|
-
/**
|
|
2122
|
-
* 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
|
|
2123
|
-
* example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2124
|
-
*/
|
|
2125
|
-
threadKey?: string;
|
|
2126
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2127
|
-
upload_protocol?: string;
|
|
2128
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2129
|
-
uploadType?: string;
|
|
2130
|
-
},
|
|
2131
|
-
body: Message): Request<Message>;
|
|
2132
1520
|
members: MembersResource;
|
|
2133
1521
|
messages: MessagesResource;
|
|
2134
1522
|
}
|
|
2135
1523
|
|
|
2136
|
-
const dms: DmsResource;
|
|
2137
|
-
|
|
2138
1524
|
const media: MediaResource;
|
|
2139
1525
|
|
|
2140
|
-
const rooms: RoomsResource;
|
|
2141
|
-
|
|
2142
1526
|
const spaces: SpacesResource;
|
|
2143
1527
|
}
|
|
2144
1528
|
}
|