@google-apps/chat 0.29.0 → 0.30.0
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/build/protos/google/chat/v1/chat_service.proto +3 -0
- package/build/protos/google/chat/v1/markup_syntax.proto +47 -0
- package/build/protos/google/chat/v1/message.proto +34 -4
- package/build/protos/google/chat/v1/space.proto +1 -0
- package/build/protos/protos.d.ts +31 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +36 -1
- package/build/src/v1/chat_service_client.d.ts +24 -0
- package/build/src/v1/chat_service_client.js +17 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
"ChatService": {
|
|
3915
3915
|
"options": {
|
|
3916
3916
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
3917
|
-
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3917
|
+
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3918
3918
|
},
|
|
3919
3919
|
"methods": {
|
|
3920
3920
|
"CreateMessage": {
|
|
@@ -5278,6 +5278,13 @@
|
|
|
5278
5278
|
"options": {
|
|
5279
5279
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
5280
5280
|
}
|
|
5281
|
+
},
|
|
5282
|
+
"markupSyntax": {
|
|
5283
|
+
"type": "MarkupSyntax",
|
|
5284
|
+
"id": 47,
|
|
5285
|
+
"options": {
|
|
5286
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
5287
|
+
}
|
|
5281
5288
|
}
|
|
5282
5289
|
}
|
|
5283
5290
|
},
|
|
@@ -5524,6 +5531,13 @@
|
|
|
5524
5531
|
"(google.api.field_behavior)": "REQUIRED",
|
|
5525
5532
|
"(google.api.resource_reference).type": "chat.googleapis.com/Message"
|
|
5526
5533
|
}
|
|
5534
|
+
},
|
|
5535
|
+
"markupSyntax": {
|
|
5536
|
+
"type": "MarkupSyntax",
|
|
5537
|
+
"id": 3,
|
|
5538
|
+
"options": {
|
|
5539
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
5540
|
+
}
|
|
5527
5541
|
}
|
|
5528
5542
|
}
|
|
5529
5543
|
},
|
|
@@ -5696,6 +5710,13 @@
|
|
|
5696
5710
|
"options": {
|
|
5697
5711
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
5698
5712
|
}
|
|
5713
|
+
},
|
|
5714
|
+
"markupSyntax": {
|
|
5715
|
+
"type": "MarkupSyntax",
|
|
5716
|
+
"id": 9,
|
|
5717
|
+
"options": {
|
|
5718
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
5719
|
+
}
|
|
5699
5720
|
}
|
|
5700
5721
|
}
|
|
5701
5722
|
},
|
|
@@ -5798,6 +5819,13 @@
|
|
|
5798
5819
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
5799
5820
|
}
|
|
5800
5821
|
},
|
|
5822
|
+
"markupSyntax": {
|
|
5823
|
+
"type": "MarkupSyntax",
|
|
5824
|
+
"id": 6,
|
|
5825
|
+
"options": {
|
|
5826
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
5827
|
+
}
|
|
5828
|
+
},
|
|
5801
5829
|
"view": {
|
|
5802
5830
|
"type": "SearchMessagesView",
|
|
5803
5831
|
"id": 7,
|
|
@@ -6215,6 +6243,13 @@
|
|
|
6215
6243
|
}
|
|
6216
6244
|
}
|
|
6217
6245
|
},
|
|
6246
|
+
"MarkupSyntax": {
|
|
6247
|
+
"values": {
|
|
6248
|
+
"MARKUP_SYNTAX_UNSPECIFIED": 0,
|
|
6249
|
+
"MARKUP_SYNTAX_CHAT": 1,
|
|
6250
|
+
"MARKUP_SYNTAX_MARKDOWN": 2
|
|
6251
|
+
}
|
|
6252
|
+
},
|
|
6218
6253
|
"MatchedUrl": {
|
|
6219
6254
|
"fields": {
|
|
6220
6255
|
"url": {
|
|
@@ -337,6 +337,9 @@ export declare class ChatServiceClient {
|
|
|
337
337
|
* `clientAssignedMessageId` field for `{message}`. For details, see [Name a
|
|
338
338
|
* message]
|
|
339
339
|
* (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
|
|
340
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
341
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
342
|
+
* `formatted_text` field.
|
|
340
343
|
* @param {object} [options]
|
|
341
344
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
342
345
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -2450,6 +2453,9 @@ export declare class ChatServiceClient {
|
|
|
2450
2453
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2451
2454
|
* deleted time and metadata about their deletion, but message content is
|
|
2452
2455
|
* unavailable.
|
|
2456
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2457
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2458
|
+
* `formatted_text` field.
|
|
2453
2459
|
* @param {object} [options]
|
|
2454
2460
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2455
2461
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -2545,6 +2551,9 @@ export declare class ChatServiceClient {
|
|
|
2545
2551
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2546
2552
|
* deleted time and metadata about their deletion, but message content is
|
|
2547
2553
|
* unavailable.
|
|
2554
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2555
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2556
|
+
* `formatted_text` field.
|
|
2548
2557
|
* @param {object} [options]
|
|
2549
2558
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2550
2559
|
* @returns {Stream}
|
|
@@ -2635,6 +2644,9 @@ export declare class ChatServiceClient {
|
|
|
2635
2644
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2636
2645
|
* deleted time and metadata about their deletion, but message content is
|
|
2637
2646
|
* unavailable.
|
|
2647
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2648
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2649
|
+
* `formatted_text` field.
|
|
2638
2650
|
* @param {object} [options]
|
|
2639
2651
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2640
2652
|
* @returns {Object}
|
|
@@ -3203,6 +3215,9 @@ export declare class ChatServiceClient {
|
|
|
3203
3215
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
3204
3216
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
3205
3217
|
* is supported, and it must be specified after the order attribute.
|
|
3218
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
3219
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
3220
|
+
* `formatted_text` field.
|
|
3206
3221
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
3207
3222
|
* Optional. Specifies what kind of search results view to return. The default
|
|
3208
3223
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -3391,6 +3406,9 @@ export declare class ChatServiceClient {
|
|
|
3391
3406
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
3392
3407
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
3393
3408
|
* is supported, and it must be specified after the order attribute.
|
|
3409
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
3410
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
3411
|
+
* `formatted_text` field.
|
|
3394
3412
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
3395
3413
|
* Optional. Specifies what kind of search results view to return. The default
|
|
3396
3414
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -3574,6 +3592,9 @@ export declare class ChatServiceClient {
|
|
|
3574
3592
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
3575
3593
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
3576
3594
|
* is supported, and it must be specified after the order attribute.
|
|
3595
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
3596
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
3597
|
+
* `formatted_text` field.
|
|
3577
3598
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
3578
3599
|
* Optional. Specifies what kind of search results view to return. The default
|
|
3579
3600
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -3961,6 +3982,7 @@ export declare class ChatServiceClient {
|
|
|
3961
3982
|
*
|
|
3962
3983
|
* - `create_time DESC`
|
|
3963
3984
|
* - `relevance DESC`
|
|
3985
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3964
3986
|
* @param {object} [options]
|
|
3965
3987
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3966
3988
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -4139,6 +4161,7 @@ export declare class ChatServiceClient {
|
|
|
4139
4161
|
*
|
|
4140
4162
|
* - `create_time DESC`
|
|
4141
4163
|
* - `relevance DESC`
|
|
4164
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
4142
4165
|
* @param {object} [options]
|
|
4143
4166
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4144
4167
|
* @returns {Stream}
|
|
@@ -4312,6 +4335,7 @@ export declare class ChatServiceClient {
|
|
|
4312
4335
|
*
|
|
4313
4336
|
* - `create_time DESC`
|
|
4314
4337
|
* - `relevance DESC`
|
|
4338
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
4315
4339
|
* @param {object} [options]
|
|
4316
4340
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4317
4341
|
* @returns {Object}
|
|
@@ -352,6 +352,9 @@ class ChatServiceClient {
|
|
|
352
352
|
'https://www.googleapis.com/auth/chat.admin.memberships.readonly',
|
|
353
353
|
'https://www.googleapis.com/auth/chat.admin.spaces',
|
|
354
354
|
'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
|
|
355
|
+
'https://www.googleapis.com/auth/chat.app.all.memberships.readonly',
|
|
356
|
+
'https://www.googleapis.com/auth/chat.app.all.messages.readonly',
|
|
357
|
+
'https://www.googleapis.com/auth/chat.app.all.spaces.readonly',
|
|
355
358
|
'https://www.googleapis.com/auth/chat.app.delete',
|
|
356
359
|
'https://www.googleapis.com/auth/chat.app.memberships',
|
|
357
360
|
'https://www.googleapis.com/auth/chat.app.memberships.readonly',
|
|
@@ -2124,6 +2127,9 @@ class ChatServiceClient {
|
|
|
2124
2127
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2125
2128
|
* deleted time and metadata about their deletion, but message content is
|
|
2126
2129
|
* unavailable.
|
|
2130
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2131
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2132
|
+
* `formatted_text` field.
|
|
2127
2133
|
* @param {object} [options]
|
|
2128
2134
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2129
2135
|
* @returns {Stream}
|
|
@@ -2230,6 +2236,9 @@ class ChatServiceClient {
|
|
|
2230
2236
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2231
2237
|
* deleted time and metadata about their deletion, but message content is
|
|
2232
2238
|
* unavailable.
|
|
2239
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2240
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2241
|
+
* `formatted_text` field.
|
|
2233
2242
|
* @param {object} [options]
|
|
2234
2243
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2235
2244
|
* @returns {Object}
|
|
@@ -2740,6 +2749,9 @@ class ChatServiceClient {
|
|
|
2740
2749
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
2741
2750
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2742
2751
|
* is supported, and it must be specified after the order attribute.
|
|
2752
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2753
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2754
|
+
* `formatted_text` field.
|
|
2743
2755
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2744
2756
|
* Optional. Specifies what kind of search results view to return. The default
|
|
2745
2757
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -2939,6 +2951,9 @@ class ChatServiceClient {
|
|
|
2939
2951
|
* The default ordering is `create_time desc`. Only a single order per query
|
|
2940
2952
|
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2941
2953
|
* is supported, and it must be specified after the order attribute.
|
|
2954
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2955
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2956
|
+
* `formatted_text` field.
|
|
2942
2957
|
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2943
2958
|
* Optional. Specifies what kind of search results view to return. The default
|
|
2944
2959
|
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
@@ -3321,6 +3336,7 @@ class ChatServiceClient {
|
|
|
3321
3336
|
*
|
|
3322
3337
|
* - `create_time DESC`
|
|
3323
3338
|
* - `relevance DESC`
|
|
3339
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3324
3340
|
* @param {object} [options]
|
|
3325
3341
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3326
3342
|
* @returns {Stream}
|
|
@@ -3506,6 +3522,7 @@ class ChatServiceClient {
|
|
|
3506
3522
|
*
|
|
3507
3523
|
* - `create_time DESC`
|
|
3508
3524
|
* - `relevance DESC`
|
|
3525
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3509
3526
|
* @param {object} [options]
|
|
3510
3527
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3511
3528
|
* @returns {Object}
|