@google-apps/chat 0.17.0 → 0.19.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 +344 -57
- package/build/protos/google/chat/v1/deletion_metadata.proto +13 -7
- package/build/protos/google/chat/v1/membership.proto +7 -5
- package/build/protos/google/chat/v1/message.proto +35 -8
- package/build/protos/google/chat/v1/slash_command.proto +2 -2
- package/build/protos/google/chat/v1/space.proto +41 -5
- package/build/protos/google/chat/v1/space_setup.proto +1 -1
- package/build/protos/google/chat/v1/user.proto +0 -1
- package/build/protos/protos.d.ts +6 -0
- package/build/protos/protos.js +33 -0
- package/build/protos/protos.json +17 -4
- package/build/src/v1/chat_service_client.d.ts +350 -63
- package/build/src/v1/chat_service_client.js +4 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -120,10 +120,21 @@ export declare class ChatServiceClient {
|
|
|
120
120
|
* Creates a message in a Google Chat space. For an example, see [Send a
|
|
121
121
|
* message](https://developers.google.com/workspace/chat/create-messages).
|
|
122
122
|
*
|
|
123
|
-
*
|
|
123
|
+
* Supports the following types of
|
|
124
|
+
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
125
|
+
*
|
|
126
|
+
* - [App
|
|
127
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
128
|
+
* with the authorization scope:
|
|
129
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
130
|
+
* - [User
|
|
124
131
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
125
|
-
*
|
|
126
|
-
*
|
|
132
|
+
* with one of the following authorization scopes:
|
|
133
|
+
* - `https://www.googleapis.com/auth/chat.messages.create`
|
|
134
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
135
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
136
|
+
* only)
|
|
137
|
+
*
|
|
127
138
|
* Chat attributes the message sender differently depending on the type of
|
|
128
139
|
* authentication that you use in your request.
|
|
129
140
|
*
|
|
@@ -222,11 +233,21 @@ export declare class ChatServiceClient {
|
|
|
222
233
|
*
|
|
223
234
|
* - [App
|
|
224
235
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
236
|
+
* with one of the following authorization scopes:
|
|
237
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
238
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships` (requires
|
|
239
|
+
* [administrator approval](https://support.google.com/a?p=chat-app-auth))
|
|
225
240
|
*
|
|
226
241
|
* - [User
|
|
227
242
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
228
|
-
*
|
|
229
|
-
*
|
|
243
|
+
* with one of the following authorization scopes:
|
|
244
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
245
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
246
|
+
* - User authentication grants administrator privileges when an
|
|
247
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
248
|
+
* one of the following authorization scopes is used:
|
|
249
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
|
|
250
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
230
251
|
*
|
|
231
252
|
* @param {Object} request
|
|
232
253
|
* The request object that will be sent.
|
|
@@ -281,9 +302,14 @@ export declare class ChatServiceClient {
|
|
|
281
302
|
*
|
|
282
303
|
* - [App
|
|
283
304
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
305
|
+
* with the authorization scope:
|
|
306
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
284
307
|
*
|
|
285
308
|
* - [User
|
|
286
309
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
310
|
+
* with one of the following authorization scopes:
|
|
311
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
312
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
287
313
|
*
|
|
288
314
|
* Note: Might return a message from a blocked member or space.
|
|
289
315
|
*
|
|
@@ -327,9 +353,15 @@ export declare class ChatServiceClient {
|
|
|
327
353
|
*
|
|
328
354
|
* - [App
|
|
329
355
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
356
|
+
* with the authorization scope:
|
|
357
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
330
358
|
*
|
|
331
359
|
* - [User
|
|
332
360
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
361
|
+
* with one of the following authorization scopes:
|
|
362
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
363
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
364
|
+
* only)
|
|
333
365
|
*
|
|
334
366
|
* When using app authentication, requests can only update messages
|
|
335
367
|
* created by the calling Chat app.
|
|
@@ -356,6 +388,8 @@ export declare class ChatServiceClient {
|
|
|
356
388
|
*
|
|
357
389
|
* - `accessory_widgets` (Requires [app
|
|
358
390
|
* authentication](/chat/api/guides/auth/service-accounts).)
|
|
391
|
+
*
|
|
392
|
+
* - `quoted_message_metadata` (Only allows removal of the quoted message.)
|
|
359
393
|
* @param {boolean} [request.allowMissing]
|
|
360
394
|
* Optional. If `true` and the message isn't found, a new message is created
|
|
361
395
|
* and `updateMask` is ignored. The specified message ID must be
|
|
@@ -387,9 +421,15 @@ export declare class ChatServiceClient {
|
|
|
387
421
|
*
|
|
388
422
|
* - [App
|
|
389
423
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
424
|
+
* with the authorization scope:
|
|
425
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
390
426
|
*
|
|
391
427
|
* - [User
|
|
392
428
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
429
|
+
* with one of the following authorization scopes:
|
|
430
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
431
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
432
|
+
* only)
|
|
393
433
|
*
|
|
394
434
|
* When using app authentication, requests can only delete messages
|
|
395
435
|
* created by the calling Chat app.
|
|
@@ -436,8 +476,13 @@ export declare class ChatServiceClient {
|
|
|
436
476
|
* For an example, see
|
|
437
477
|
* [Get metadata about a message
|
|
438
478
|
* attachment](https://developers.google.com/workspace/chat/get-media-attachments).
|
|
479
|
+
*
|
|
439
480
|
* Requires [app
|
|
440
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
481
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
482
|
+
* with the [authorization
|
|
483
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
484
|
+
*
|
|
485
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
441
486
|
*
|
|
442
487
|
* @param {Object} request
|
|
443
488
|
* The request object that will be sent.
|
|
@@ -466,7 +511,13 @@ export declare class ChatServiceClient {
|
|
|
466
511
|
* attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
|
|
467
512
|
*
|
|
468
513
|
* Requires user
|
|
469
|
-
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
514
|
+
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
515
|
+
* with one of the following [authorization
|
|
516
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
517
|
+
*
|
|
518
|
+
* - `https://www.googleapis.com/auth/chat.messages.create`
|
|
519
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
520
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
470
521
|
*
|
|
471
522
|
* You can upload attachments up to 200 MB. Certain file types aren't
|
|
472
523
|
* supported. For details, see [File types blocked by Google
|
|
@@ -505,11 +556,29 @@ export declare class ChatServiceClient {
|
|
|
505
556
|
*
|
|
506
557
|
* - [App
|
|
507
558
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
559
|
+
* with one of the following authorization scopes:
|
|
560
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
561
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator
|
|
562
|
+
* approval](https://support.google.com/a?p=chat-app-auth)
|
|
508
563
|
*
|
|
509
564
|
* - [User
|
|
510
565
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
511
|
-
*
|
|
512
|
-
*
|
|
566
|
+
* with one of the following authorization scopes:
|
|
567
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
568
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
569
|
+
* - User authentication grants administrator privileges when an
|
|
570
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
571
|
+
* one of the following authorization scopes is used:
|
|
572
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
|
|
573
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
574
|
+
*
|
|
575
|
+
* App authentication has the following limitations:
|
|
576
|
+
*
|
|
577
|
+
* - `space.access_settings` is only populated when using the
|
|
578
|
+
* `chat.app.spaces` scope.
|
|
579
|
+
* - `space.predefind_permission_settings` and `space.permission_settings` are
|
|
580
|
+
* only populated when using the `chat.app.spaces` scope, and only for
|
|
581
|
+
* spaces the app created.
|
|
513
582
|
*
|
|
514
583
|
* @param {Object} request
|
|
515
584
|
* The request object that will be sent.
|
|
@@ -544,28 +613,49 @@ export declare class ChatServiceClient {
|
|
|
544
613
|
getSpace(request: protos.google.chat.v1.IGetSpaceRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.ISpace, protos.google.chat.v1.IGetSpaceRequest | null | undefined, {} | null | undefined>): void;
|
|
545
614
|
getSpace(request: protos.google.chat.v1.IGetSpaceRequest, callback: Callback<protos.google.chat.v1.ISpace, protos.google.chat.v1.IGetSpaceRequest | null | undefined, {} | null | undefined>): void;
|
|
546
615
|
/**
|
|
547
|
-
* Creates a space
|
|
616
|
+
* Creates a space. Can be used to create a named space, or a
|
|
548
617
|
* group chat in `Import mode`. For an example, see [Create a
|
|
549
618
|
* space](https://developers.google.com/workspace/chat/create-spaces).
|
|
550
619
|
*
|
|
551
|
-
* If you receive the error message `ALREADY_EXISTS` when creating
|
|
552
|
-
* a space, try a different `displayName`. An existing space within
|
|
553
|
-
* the Google Workspace organization might already use this display name.
|
|
554
|
-
*
|
|
555
620
|
* Supports the following types of
|
|
556
621
|
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
557
622
|
*
|
|
558
623
|
* - [App
|
|
559
624
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
560
625
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
561
|
-
*
|
|
626
|
+
* and one of the following authorization scopes:
|
|
627
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces.create`
|
|
628
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
562
629
|
*
|
|
563
630
|
* - [User
|
|
564
631
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
632
|
+
* with one of the following authorization scopes:
|
|
633
|
+
* - `https://www.googleapis.com/auth/chat.spaces.create`
|
|
634
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
635
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
636
|
+
* only)
|
|
565
637
|
*
|
|
566
638
|
* When authenticating as an app, the `space.customer` field must be set in
|
|
567
639
|
* the request.
|
|
568
640
|
*
|
|
641
|
+
* When authenticating as an app, the Chat app is added as a member of the
|
|
642
|
+
* space. However, unlike human authentication, the Chat app is not added as a
|
|
643
|
+
* space manager. By default, the Chat app can be removed from the space by
|
|
644
|
+
* all space members. To allow only space managers to remove the app from a
|
|
645
|
+
* space, set `space.permission_settings.manage_apps` to `managers_allowed`.
|
|
646
|
+
*
|
|
647
|
+
* Space membership upon creation depends on whether the space is created in
|
|
648
|
+
* `Import mode`:
|
|
649
|
+
*
|
|
650
|
+
* * **Import mode:** No members are created.
|
|
651
|
+
* * **All other modes:** The calling user is added as a member. This is:
|
|
652
|
+
* * The app itself when using app authentication.
|
|
653
|
+
* * The human user when using user authentication.
|
|
654
|
+
*
|
|
655
|
+
* If you receive the error message `ALREADY_EXISTS` when creating
|
|
656
|
+
* a space, try a different `displayName`. An existing space within
|
|
657
|
+
* the Google Workspace organization might already use this display name.
|
|
658
|
+
*
|
|
569
659
|
* @param {Object} request
|
|
570
660
|
* The request object that will be sent.
|
|
571
661
|
* @param {google.chat.v1.Space} request.space
|
|
@@ -655,7 +745,12 @@ export declare class ChatServiceClient {
|
|
|
655
745
|
* might already use this display name.
|
|
656
746
|
*
|
|
657
747
|
* Requires [user
|
|
658
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
748
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
749
|
+
* with one of the following [authorization
|
|
750
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
751
|
+
*
|
|
752
|
+
* - `https://www.googleapis.com/auth/chat.spaces.create`
|
|
753
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
659
754
|
*
|
|
660
755
|
* @param {Object} request
|
|
661
756
|
* The request object that will be sent.
|
|
@@ -694,7 +789,7 @@ export declare class ChatServiceClient {
|
|
|
694
789
|
* Optional. The Google Chat users or groups to invite to join the space. Omit
|
|
695
790
|
* the calling user, as they are added automatically.
|
|
696
791
|
*
|
|
697
|
-
* The set currently allows up to
|
|
792
|
+
* The set currently allows up to 49 memberships (in addition to the caller).
|
|
698
793
|
*
|
|
699
794
|
* For human membership, the `Membership.member` field must contain a `user`
|
|
700
795
|
* with `name` populated (format: `users/{user}`) and `type` set to
|
|
@@ -751,12 +846,26 @@ export declare class ChatServiceClient {
|
|
|
751
846
|
* - [App
|
|
752
847
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
753
848
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
754
|
-
*
|
|
849
|
+
* and one of the following authorization scopes:
|
|
850
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
755
851
|
*
|
|
756
852
|
* - [User
|
|
757
853
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
758
|
-
*
|
|
759
|
-
*
|
|
854
|
+
* with one of the following authorization scopes:
|
|
855
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
856
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
857
|
+
* only)
|
|
858
|
+
* - User authentication grants administrator privileges when an
|
|
859
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
860
|
+
* the following authorization scopes is used:
|
|
861
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
862
|
+
*
|
|
863
|
+
* App authentication has the following limitations:
|
|
864
|
+
*
|
|
865
|
+
* - To update either `space.predefined_permission_settings` or
|
|
866
|
+
* `space.permission_settings`, the app must be the space creator.
|
|
867
|
+
* - Updating the `space.access_settings.audience` is not supported for app
|
|
868
|
+
* authentication.
|
|
760
869
|
*
|
|
761
870
|
* @param {Object} request
|
|
762
871
|
* The request object that will be sent.
|
|
@@ -867,13 +976,22 @@ export declare class ChatServiceClient {
|
|
|
867
976
|
*
|
|
868
977
|
* - [App
|
|
869
978
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
870
|
-
* with [administrator
|
|
871
|
-
*
|
|
979
|
+
* with [administrator
|
|
980
|
+
* approval](https://support.google.com/a?p=chat-app-auth) and the
|
|
981
|
+
* authorization scope:
|
|
982
|
+
* - `https://www.googleapis.com/auth/chat.app.delete` (only in
|
|
983
|
+
* spaces the app created)
|
|
872
984
|
*
|
|
873
985
|
* - [User
|
|
874
986
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
875
|
-
*
|
|
876
|
-
*
|
|
987
|
+
* with one of the following authorization scopes:
|
|
988
|
+
* - `https://www.googleapis.com/auth/chat.delete`
|
|
989
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
990
|
+
* only)
|
|
991
|
+
* - User authentication grants administrator privileges when an
|
|
992
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
993
|
+
* the following authorization scope is used:
|
|
994
|
+
* - `https://www.googleapis.com/auth/chat.admin.delete`
|
|
877
995
|
*
|
|
878
996
|
* @param {Object} request
|
|
879
997
|
* The request object that will be sent.
|
|
@@ -912,9 +1030,14 @@ export declare class ChatServiceClient {
|
|
|
912
1030
|
* [import process](https://developers.google.com/workspace/chat/import-data)
|
|
913
1031
|
* for the specified space and makes it visible to users.
|
|
914
1032
|
*
|
|
915
|
-
* Requires [
|
|
916
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
|
|
917
|
-
* and domain-wide delegation
|
|
1033
|
+
* Requires [user
|
|
1034
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1035
|
+
* and domain-wide delegation with the [authorization
|
|
1036
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1037
|
+
*
|
|
1038
|
+
* - `https://www.googleapis.com/auth/chat.import`
|
|
1039
|
+
*
|
|
1040
|
+
* For more information, see [Authorize Google
|
|
918
1041
|
* Chat apps to import
|
|
919
1042
|
* data](https://developers.google.com/workspace/chat/authorize-import).
|
|
920
1043
|
*
|
|
@@ -956,14 +1079,19 @@ export declare class ChatServiceClient {
|
|
|
956
1079
|
* returns the direct message space between the specified user and the
|
|
957
1080
|
* authenticated user.
|
|
958
1081
|
*
|
|
959
|
-
*
|
|
1082
|
+
* Supports the following types of
|
|
960
1083
|
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
961
1084
|
*
|
|
962
1085
|
* - [App
|
|
963
1086
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1087
|
+
* with the authorization scope:
|
|
1088
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
964
1089
|
*
|
|
965
1090
|
* - [User
|
|
966
1091
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1092
|
+
* with one of the following authorization scopes:
|
|
1093
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
1094
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
967
1095
|
*
|
|
968
1096
|
* @param {Object} request
|
|
969
1097
|
* The request object that will be sent.
|
|
@@ -1011,21 +1139,35 @@ export declare class ChatServiceClient {
|
|
|
1011
1139
|
* - [App
|
|
1012
1140
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1013
1141
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
1014
|
-
*
|
|
1142
|
+
* and the authorization scope:
|
|
1143
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1015
1144
|
*
|
|
1016
1145
|
* - [User
|
|
1017
1146
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1147
|
+
* with one of the following authorization scopes:
|
|
1148
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1149
|
+
* - `https://www.googleapis.com/auth/chat.memberships.app` (to add the
|
|
1150
|
+
* calling app to the space)
|
|
1151
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1152
|
+
* only)
|
|
1153
|
+
* - User authentication grants administrator privileges when an
|
|
1154
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1155
|
+
* the following authorization scope is used:
|
|
1156
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1157
|
+
*
|
|
1158
|
+
* App authentication is not supported for the following use cases:
|
|
1159
|
+
*
|
|
1160
|
+
* - Inviting users external to the Workspace organization that owns the
|
|
1161
|
+
* space.
|
|
1162
|
+
* - Adding a Google Group to a space.
|
|
1163
|
+
* - Adding a Chat app to a space.
|
|
1020
1164
|
*
|
|
1021
1165
|
* For example usage, see:
|
|
1022
1166
|
*
|
|
1023
1167
|
* - [Invite or add a user to a
|
|
1024
1168
|
* space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
|
|
1025
|
-
*
|
|
1026
1169
|
* - [Invite or add a Google Group to a
|
|
1027
1170
|
* space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
|
|
1028
|
-
*
|
|
1029
1171
|
* - [Add the Chat app to a
|
|
1030
1172
|
* space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
|
|
1031
1173
|
*
|
|
@@ -1053,8 +1195,6 @@ export declare class ChatServiceClient {
|
|
|
1053
1195
|
* - When [authenticating as an
|
|
1054
1196
|
* app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
|
|
1055
1197
|
* the `chat.app.memberships` authorization scope is required.
|
|
1056
|
-
* Authenticating as an app is available in [Developer
|
|
1057
|
-
* Preview](https://developers.google.com/workspace/preview).
|
|
1058
1198
|
*
|
|
1059
1199
|
* - Set `user.type` to `HUMAN`, and set `user.name` with format
|
|
1060
1200
|
* `users/{user}`, where `{user}` can be the email address for the user. For
|
|
@@ -1113,13 +1253,22 @@ export declare class ChatServiceClient {
|
|
|
1113
1253
|
*
|
|
1114
1254
|
* - [App
|
|
1115
1255
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1116
|
-
* with [administrator
|
|
1117
|
-
*
|
|
1256
|
+
* with [administrator
|
|
1257
|
+
* approval](https://support.google.com/a?p=chat-app-auth) and the
|
|
1258
|
+
* authorization scope:
|
|
1259
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships` (only in
|
|
1260
|
+
* spaces the app created)
|
|
1118
1261
|
*
|
|
1119
1262
|
* - [User
|
|
1120
1263
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1264
|
+
* with one of the following authorization scopes:
|
|
1265
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1266
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1267
|
+
* only)
|
|
1268
|
+
* - User authentication grants administrator privileges when an
|
|
1269
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1270
|
+
* the following authorization scope is used:
|
|
1271
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1123
1272
|
*
|
|
1124
1273
|
* @param {Object} request
|
|
1125
1274
|
* The request object that will be sent.
|
|
@@ -1170,12 +1319,31 @@ export declare class ChatServiceClient {
|
|
|
1170
1319
|
* - [App
|
|
1171
1320
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1172
1321
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
1173
|
-
*
|
|
1322
|
+
* and the authorization scope:
|
|
1323
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1174
1324
|
*
|
|
1175
1325
|
* - [User
|
|
1176
1326
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1327
|
+
* with one of the following authorization scopes:
|
|
1328
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1329
|
+
* - `https://www.googleapis.com/auth/chat.memberships.app` (to remove
|
|
1330
|
+
* the calling app from the space)
|
|
1331
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1332
|
+
* only)
|
|
1333
|
+
* - User authentication grants administrator privileges when an
|
|
1334
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1335
|
+
* the following authorization scope is used:
|
|
1336
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1337
|
+
*
|
|
1338
|
+
* App authentication is not supported for the following use cases:
|
|
1339
|
+
*
|
|
1340
|
+
* - Removing a Google Group from a space.
|
|
1341
|
+
* - Removing a Chat app from a space.
|
|
1342
|
+
*
|
|
1343
|
+
* To delete memberships for space managers, the requester
|
|
1344
|
+
* must be a space manager. If you're using [app
|
|
1345
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1346
|
+
* the Chat app must be the space creator.
|
|
1179
1347
|
*
|
|
1180
1348
|
* @param {Object} request
|
|
1181
1349
|
* The request object that will be sent.
|
|
@@ -1184,9 +1352,13 @@ export declare class ChatServiceClient {
|
|
|
1184
1352
|
* human users' or their own memberships. Chat apps can't delete other apps'
|
|
1185
1353
|
* memberships.
|
|
1186
1354
|
*
|
|
1187
|
-
* When deleting a human membership, requires the `chat.memberships` scope
|
|
1188
|
-
*
|
|
1189
|
-
*
|
|
1355
|
+
* When deleting a human membership, requires the `chat.memberships` scope
|
|
1356
|
+
* with [user
|
|
1357
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1358
|
+
* or the `chat.memberships.app` scope with [app
|
|
1359
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1360
|
+
* and the `spaces/{space}/members/{member}` format.
|
|
1361
|
+
* You can use the email as an alias for `{member}`. For example,
|
|
1190
1362
|
* `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
|
|
1191
1363
|
* email of the Google Chat user.
|
|
1192
1364
|
*
|
|
@@ -1228,7 +1400,14 @@ export declare class ChatServiceClient {
|
|
|
1228
1400
|
* message](https://developers.google.com/workspace/chat/create-reactions).
|
|
1229
1401
|
*
|
|
1230
1402
|
* Requires [user
|
|
1231
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1403
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1404
|
+
* with one of the following [authorization
|
|
1405
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1406
|
+
*
|
|
1407
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.create`
|
|
1408
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1409
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1410
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1232
1411
|
*
|
|
1233
1412
|
* @param {Object} request
|
|
1234
1413
|
* The request object that will be sent.
|
|
@@ -1260,7 +1439,13 @@ export declare class ChatServiceClient {
|
|
|
1260
1439
|
* reaction](https://developers.google.com/workspace/chat/delete-reactions).
|
|
1261
1440
|
*
|
|
1262
1441
|
* Requires [user
|
|
1263
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1442
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1443
|
+
* with one of the following [authorization
|
|
1444
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1445
|
+
*
|
|
1446
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1447
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1448
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1264
1449
|
*
|
|
1265
1450
|
* @param {Object} request
|
|
1266
1451
|
* The request object that will be sent.
|
|
@@ -1295,7 +1480,11 @@ export declare class ChatServiceClient {
|
|
|
1295
1480
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1296
1481
|
*
|
|
1297
1482
|
* Requires [user
|
|
1298
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1483
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1484
|
+
* with the [authorization
|
|
1485
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1486
|
+
*
|
|
1487
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1299
1488
|
*
|
|
1300
1489
|
* @param {Object} request
|
|
1301
1490
|
* The request object that will be sent.
|
|
@@ -1328,7 +1517,12 @@ export declare class ChatServiceClient {
|
|
|
1328
1517
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1329
1518
|
*
|
|
1330
1519
|
* Requires [user
|
|
1331
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1520
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1521
|
+
* with one of the following [authorization
|
|
1522
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1523
|
+
*
|
|
1524
|
+
* - `https://www.googleapis.com/auth/chat.customemojis.readonly`
|
|
1525
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1332
1526
|
*
|
|
1333
1527
|
* @param {Object} request
|
|
1334
1528
|
* The request object that will be sent.
|
|
@@ -1371,7 +1565,11 @@ export declare class ChatServiceClient {
|
|
|
1371
1565
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1372
1566
|
*
|
|
1373
1567
|
* Requires [user
|
|
1374
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1568
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1569
|
+
* with the [authorization
|
|
1570
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1571
|
+
*
|
|
1572
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1375
1573
|
*
|
|
1376
1574
|
* @param {Object} request
|
|
1377
1575
|
* The request object that will be sent.
|
|
@@ -1406,7 +1604,12 @@ export declare class ChatServiceClient {
|
|
|
1406
1604
|
* state](https://developers.google.com/workspace/chat/get-space-read-state).
|
|
1407
1605
|
*
|
|
1408
1606
|
* Requires [user
|
|
1409
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1607
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1608
|
+
* with one of the following [authorization
|
|
1609
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1610
|
+
*
|
|
1611
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
1612
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1410
1613
|
*
|
|
1411
1614
|
* @param {Object} request
|
|
1412
1615
|
* The request object that will be sent.
|
|
@@ -1448,7 +1651,11 @@ export declare class ChatServiceClient {
|
|
|
1448
1651
|
* state](https://developers.google.com/workspace/chat/update-space-read-state).
|
|
1449
1652
|
*
|
|
1450
1653
|
* Requires [user
|
|
1451
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1654
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1655
|
+
* with the [authorization
|
|
1656
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1657
|
+
*
|
|
1658
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1452
1659
|
*
|
|
1453
1660
|
* @param {Object} request
|
|
1454
1661
|
* The request object that will be sent.
|
|
@@ -1505,7 +1712,12 @@ export declare class ChatServiceClient {
|
|
|
1505
1712
|
* state](https://developers.google.com/workspace/chat/get-thread-read-state).
|
|
1506
1713
|
*
|
|
1507
1714
|
* Requires [user
|
|
1508
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1715
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1716
|
+
* with one of the following [authorization
|
|
1717
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1718
|
+
*
|
|
1719
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
1720
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1509
1721
|
*
|
|
1510
1722
|
* @param {Object} request
|
|
1511
1723
|
* The request object that will be sent.
|
|
@@ -1554,7 +1766,20 @@ export declare class ChatServiceClient {
|
|
|
1554
1766
|
* object of the Space event data for this request.
|
|
1555
1767
|
*
|
|
1556
1768
|
* Requires [user
|
|
1557
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1769
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1770
|
+
* with an [authorization
|
|
1771
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
|
|
1772
|
+
* appropriate for reading the requested data:
|
|
1773
|
+
*
|
|
1774
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
1775
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
1776
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
1777
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1778
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
1779
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1780
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
1781
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1782
|
+
*
|
|
1558
1783
|
* To get an event, the authenticated user must be a member of the space.
|
|
1559
1784
|
*
|
|
1560
1785
|
* For an example, see [Get details about an
|
|
@@ -1589,7 +1814,11 @@ export declare class ChatServiceClient {
|
|
|
1589
1814
|
* setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
|
|
1590
1815
|
*
|
|
1591
1816
|
* Requires [user
|
|
1592
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1817
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1818
|
+
* with the [authorization
|
|
1819
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1820
|
+
*
|
|
1821
|
+
* - `https://www.googleapis.com/auth/chat.users.spacesettings`
|
|
1593
1822
|
*
|
|
1594
1823
|
* @param {Object} request
|
|
1595
1824
|
* The request object that will be sent.
|
|
@@ -1622,7 +1851,11 @@ export declare class ChatServiceClient {
|
|
|
1622
1851
|
* setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
|
|
1623
1852
|
*
|
|
1624
1853
|
* Requires [user
|
|
1625
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1854
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1855
|
+
* with the [authorization
|
|
1856
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1857
|
+
*
|
|
1858
|
+
* - `https://www.googleapis.com/auth/chat.users.spacesettings`
|
|
1626
1859
|
*
|
|
1627
1860
|
* @param {Object} request
|
|
1628
1861
|
* The request object that will be sent.
|
|
@@ -1663,7 +1896,13 @@ export declare class ChatServiceClient {
|
|
|
1663
1896
|
* messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
|
|
1664
1897
|
*
|
|
1665
1898
|
* Requires [user
|
|
1666
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1899
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1900
|
+
* with one of the following [authorization
|
|
1901
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1902
|
+
*
|
|
1903
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
1904
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1905
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1667
1906
|
*
|
|
1668
1907
|
* @param {Object} request
|
|
1669
1908
|
* The request object that will be sent.
|
|
@@ -1955,11 +2194,23 @@ export declare class ChatServiceClient {
|
|
|
1955
2194
|
*
|
|
1956
2195
|
* - [App
|
|
1957
2196
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
2197
|
+
* with one of the following authorization scopes:
|
|
2198
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
2199
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships` (requires
|
|
2200
|
+
* [administrator approval](https://support.google.com/a?p=chat-app-auth))
|
|
1958
2201
|
*
|
|
1959
2202
|
* - [User
|
|
1960
2203
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1961
|
-
*
|
|
1962
|
-
*
|
|
2204
|
+
* with one of the following authorization scopes:
|
|
2205
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
2206
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
2207
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
2208
|
+
* only)
|
|
2209
|
+
* - User authentication grants administrator privileges when an
|
|
2210
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
2211
|
+
* one of the following authorization scopes is used:
|
|
2212
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
|
|
2213
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1963
2214
|
*
|
|
1964
2215
|
* @param {Object} request
|
|
1965
2216
|
* The request object that will be sent.
|
|
@@ -2298,9 +2549,14 @@ export declare class ChatServiceClient {
|
|
|
2298
2549
|
*
|
|
2299
2550
|
* - [App
|
|
2300
2551
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
2552
|
+
* with the authorization scope:
|
|
2553
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
2301
2554
|
*
|
|
2302
2555
|
* - [User
|
|
2303
2556
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2557
|
+
* with one of the following authorization scopes:
|
|
2558
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
2559
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
2304
2560
|
*
|
|
2305
2561
|
* To list all named spaces by Google Workspace organization, use the
|
|
2306
2562
|
* [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
|
@@ -2476,7 +2732,13 @@ export declare class ChatServiceClient {
|
|
|
2476
2732
|
*
|
|
2477
2733
|
* Requires [user
|
|
2478
2734
|
* authentication with administrator
|
|
2479
|
-
* privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
|
|
2735
|
+
* privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
|
|
2736
|
+
* and one of the following [authorization
|
|
2737
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2738
|
+
*
|
|
2739
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
|
|
2740
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
2741
|
+
*
|
|
2480
2742
|
* In the request, set `use_admin_access` to `true`.
|
|
2481
2743
|
*
|
|
2482
2744
|
* @param {Object} request
|
|
@@ -2910,7 +3172,14 @@ export declare class ChatServiceClient {
|
|
|
2910
3172
|
* message](https://developers.google.com/workspace/chat/list-reactions).
|
|
2911
3173
|
*
|
|
2912
3174
|
* Requires [user
|
|
2913
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3175
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3176
|
+
* with one of the following [authorization
|
|
3177
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
3178
|
+
*
|
|
3179
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
3180
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
3181
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
3182
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
2914
3183
|
*
|
|
2915
3184
|
* @param {Object} request
|
|
2916
3185
|
* The request object that will be sent.
|
|
@@ -3159,7 +3428,12 @@ export declare class ChatServiceClient {
|
|
|
3159
3428
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
3160
3429
|
*
|
|
3161
3430
|
* Requires [user
|
|
3162
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3431
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3432
|
+
* with one of the following [authorization
|
|
3433
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
3434
|
+
*
|
|
3435
|
+
* - `https://www.googleapis.com/auth/chat.customemojis.readonly`
|
|
3436
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
3163
3437
|
*
|
|
3164
3438
|
* @param {Object} request
|
|
3165
3439
|
* The request object that will be sent.
|
|
@@ -3311,7 +3585,20 @@ export declare class ChatServiceClient {
|
|
|
3311
3585
|
* `Membership` resource.
|
|
3312
3586
|
*
|
|
3313
3587
|
* Requires [user
|
|
3314
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3588
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3589
|
+
* with an [authorization
|
|
3590
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
|
|
3591
|
+
* appropriate for reading the requested data:
|
|
3592
|
+
*
|
|
3593
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
3594
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
3595
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
3596
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
3597
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
3598
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
3599
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
3600
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
3601
|
+
*
|
|
3315
3602
|
* To list events, the authenticated user must be a member of the space.
|
|
3316
3603
|
*
|
|
3317
3604
|
* For an example, see [List events from a Google Chat
|