@google-apps/chat 0.17.0 → 0.18.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/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 +14 -1
- package/build/src/v1/chat_service_client.d.ts +348 -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.
|
|
@@ -387,9 +419,15 @@ export declare class ChatServiceClient {
|
|
|
387
419
|
*
|
|
388
420
|
* - [App
|
|
389
421
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
422
|
+
* with the authorization scope:
|
|
423
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
390
424
|
*
|
|
391
425
|
* - [User
|
|
392
426
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
427
|
+
* with one of the following authorization scopes:
|
|
428
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
429
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
430
|
+
* only)
|
|
393
431
|
*
|
|
394
432
|
* When using app authentication, requests can only delete messages
|
|
395
433
|
* created by the calling Chat app.
|
|
@@ -436,8 +474,13 @@ export declare class ChatServiceClient {
|
|
|
436
474
|
* For an example, see
|
|
437
475
|
* [Get metadata about a message
|
|
438
476
|
* attachment](https://developers.google.com/workspace/chat/get-media-attachments).
|
|
477
|
+
*
|
|
439
478
|
* Requires [app
|
|
440
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
479
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
480
|
+
* with the [authorization
|
|
481
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
482
|
+
*
|
|
483
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
441
484
|
*
|
|
442
485
|
* @param {Object} request
|
|
443
486
|
* The request object that will be sent.
|
|
@@ -466,7 +509,13 @@ export declare class ChatServiceClient {
|
|
|
466
509
|
* attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
|
|
467
510
|
*
|
|
468
511
|
* Requires user
|
|
469
|
-
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
512
|
+
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
513
|
+
* with one of the following [authorization
|
|
514
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
515
|
+
*
|
|
516
|
+
* - `https://www.googleapis.com/auth/chat.messages.create`
|
|
517
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
518
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
470
519
|
*
|
|
471
520
|
* You can upload attachments up to 200 MB. Certain file types aren't
|
|
472
521
|
* supported. For details, see [File types blocked by Google
|
|
@@ -505,11 +554,29 @@ export declare class ChatServiceClient {
|
|
|
505
554
|
*
|
|
506
555
|
* - [App
|
|
507
556
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
557
|
+
* with one of the following authorization scopes:
|
|
558
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
559
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator
|
|
560
|
+
* approval](https://support.google.com/a?p=chat-app-auth)
|
|
508
561
|
*
|
|
509
562
|
* - [User
|
|
510
563
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
511
|
-
*
|
|
512
|
-
*
|
|
564
|
+
* with one of the following authorization scopes:
|
|
565
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
566
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
567
|
+
* - User authentication grants administrator privileges when an
|
|
568
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
569
|
+
* one of the following authorization scopes is used:
|
|
570
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
|
|
571
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
572
|
+
*
|
|
573
|
+
* App authentication has the following limitations:
|
|
574
|
+
*
|
|
575
|
+
* - `space.access_settings` is only populated when using the
|
|
576
|
+
* `chat.app.spaces` scope.
|
|
577
|
+
* - `space.predefind_permission_settings` and `space.permission_settings` are
|
|
578
|
+
* only populated when using the `chat.app.spaces` scope, and only for
|
|
579
|
+
* spaces the app created.
|
|
513
580
|
*
|
|
514
581
|
* @param {Object} request
|
|
515
582
|
* The request object that will be sent.
|
|
@@ -544,28 +611,49 @@ export declare class ChatServiceClient {
|
|
|
544
611
|
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
612
|
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
613
|
/**
|
|
547
|
-
* Creates a space
|
|
614
|
+
* Creates a space. Can be used to create a named space, or a
|
|
548
615
|
* group chat in `Import mode`. For an example, see [Create a
|
|
549
616
|
* space](https://developers.google.com/workspace/chat/create-spaces).
|
|
550
617
|
*
|
|
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
618
|
* Supports the following types of
|
|
556
619
|
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
557
620
|
*
|
|
558
621
|
* - [App
|
|
559
622
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
560
623
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
561
|
-
*
|
|
624
|
+
* and one of the following authorization scopes:
|
|
625
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces.create`
|
|
626
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
562
627
|
*
|
|
563
628
|
* - [User
|
|
564
629
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
630
|
+
* with one of the following authorization scopes:
|
|
631
|
+
* - `https://www.googleapis.com/auth/chat.spaces.create`
|
|
632
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
633
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
634
|
+
* only)
|
|
565
635
|
*
|
|
566
636
|
* When authenticating as an app, the `space.customer` field must be set in
|
|
567
637
|
* the request.
|
|
568
638
|
*
|
|
639
|
+
* When authenticating as an app, the Chat app is added as a member of the
|
|
640
|
+
* space. However, unlike human authentication, the Chat app is not added as a
|
|
641
|
+
* space manager. By default, the Chat app can be removed from the space by
|
|
642
|
+
* all space members. To allow only space managers to remove the app from a
|
|
643
|
+
* space, set `space.permission_settings.manage_apps` to `managers_allowed`.
|
|
644
|
+
*
|
|
645
|
+
* Space membership upon creation depends on whether the space is created in
|
|
646
|
+
* `Import mode`:
|
|
647
|
+
*
|
|
648
|
+
* * **Import mode:** No members are created.
|
|
649
|
+
* * **All other modes:** The calling user is added as a member. This is:
|
|
650
|
+
* * The app itself when using app authentication.
|
|
651
|
+
* * The human user when using user authentication.
|
|
652
|
+
*
|
|
653
|
+
* If you receive the error message `ALREADY_EXISTS` when creating
|
|
654
|
+
* a space, try a different `displayName`. An existing space within
|
|
655
|
+
* the Google Workspace organization might already use this display name.
|
|
656
|
+
*
|
|
569
657
|
* @param {Object} request
|
|
570
658
|
* The request object that will be sent.
|
|
571
659
|
* @param {google.chat.v1.Space} request.space
|
|
@@ -655,7 +743,12 @@ export declare class ChatServiceClient {
|
|
|
655
743
|
* might already use this display name.
|
|
656
744
|
*
|
|
657
745
|
* Requires [user
|
|
658
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
746
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
747
|
+
* with one of the following [authorization
|
|
748
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
749
|
+
*
|
|
750
|
+
* - `https://www.googleapis.com/auth/chat.spaces.create`
|
|
751
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
659
752
|
*
|
|
660
753
|
* @param {Object} request
|
|
661
754
|
* The request object that will be sent.
|
|
@@ -694,7 +787,7 @@ export declare class ChatServiceClient {
|
|
|
694
787
|
* Optional. The Google Chat users or groups to invite to join the space. Omit
|
|
695
788
|
* the calling user, as they are added automatically.
|
|
696
789
|
*
|
|
697
|
-
* The set currently allows up to
|
|
790
|
+
* The set currently allows up to 49 memberships (in addition to the caller).
|
|
698
791
|
*
|
|
699
792
|
* For human membership, the `Membership.member` field must contain a `user`
|
|
700
793
|
* with `name` populated (format: `users/{user}`) and `type` set to
|
|
@@ -751,12 +844,26 @@ export declare class ChatServiceClient {
|
|
|
751
844
|
* - [App
|
|
752
845
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
753
846
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
754
|
-
*
|
|
847
|
+
* and one of the following authorization scopes:
|
|
848
|
+
* - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
755
849
|
*
|
|
756
850
|
* - [User
|
|
757
851
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
758
|
-
*
|
|
759
|
-
*
|
|
852
|
+
* with one of the following authorization scopes:
|
|
853
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
854
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
855
|
+
* only)
|
|
856
|
+
* - User authentication grants administrator privileges when an
|
|
857
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
858
|
+
* the following authorization scopes is used:
|
|
859
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
860
|
+
*
|
|
861
|
+
* App authentication has the following limitations:
|
|
862
|
+
*
|
|
863
|
+
* - To update either `space.predefined_permission_settings` or
|
|
864
|
+
* `space.permission_settings`, the app must be the space creator.
|
|
865
|
+
* - Updating the `space.access_settings.audience` is not supported for app
|
|
866
|
+
* authentication.
|
|
760
867
|
*
|
|
761
868
|
* @param {Object} request
|
|
762
869
|
* The request object that will be sent.
|
|
@@ -867,13 +974,22 @@ export declare class ChatServiceClient {
|
|
|
867
974
|
*
|
|
868
975
|
* - [App
|
|
869
976
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
870
|
-
* with [administrator
|
|
871
|
-
*
|
|
977
|
+
* with [administrator
|
|
978
|
+
* approval](https://support.google.com/a?p=chat-app-auth) and the
|
|
979
|
+
* authorization scope:
|
|
980
|
+
* - `https://www.googleapis.com/auth/chat.app.delete` (only in
|
|
981
|
+
* spaces the app created)
|
|
872
982
|
*
|
|
873
983
|
* - [User
|
|
874
984
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
875
|
-
*
|
|
876
|
-
*
|
|
985
|
+
* with one of the following authorization scopes:
|
|
986
|
+
* - `https://www.googleapis.com/auth/chat.delete`
|
|
987
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
988
|
+
* only)
|
|
989
|
+
* - User authentication grants administrator privileges when an
|
|
990
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
991
|
+
* the following authorization scope is used:
|
|
992
|
+
* - `https://www.googleapis.com/auth/chat.admin.delete`
|
|
877
993
|
*
|
|
878
994
|
* @param {Object} request
|
|
879
995
|
* The request object that will be sent.
|
|
@@ -912,9 +1028,14 @@ export declare class ChatServiceClient {
|
|
|
912
1028
|
* [import process](https://developers.google.com/workspace/chat/import-data)
|
|
913
1029
|
* for the specified space and makes it visible to users.
|
|
914
1030
|
*
|
|
915
|
-
* Requires [
|
|
916
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
|
|
917
|
-
* and domain-wide delegation
|
|
1031
|
+
* Requires [user
|
|
1032
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1033
|
+
* and domain-wide delegation with the [authorization
|
|
1034
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1035
|
+
*
|
|
1036
|
+
* - `https://www.googleapis.com/auth/chat.import`
|
|
1037
|
+
*
|
|
1038
|
+
* For more information, see [Authorize Google
|
|
918
1039
|
* Chat apps to import
|
|
919
1040
|
* data](https://developers.google.com/workspace/chat/authorize-import).
|
|
920
1041
|
*
|
|
@@ -956,14 +1077,19 @@ export declare class ChatServiceClient {
|
|
|
956
1077
|
* returns the direct message space between the specified user and the
|
|
957
1078
|
* authenticated user.
|
|
958
1079
|
*
|
|
959
|
-
*
|
|
1080
|
+
* Supports the following types of
|
|
960
1081
|
* [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
961
1082
|
*
|
|
962
1083
|
* - [App
|
|
963
1084
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1085
|
+
* with the authorization scope:
|
|
1086
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
964
1087
|
*
|
|
965
1088
|
* - [User
|
|
966
1089
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1090
|
+
* with one of the following authorization scopes:
|
|
1091
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
1092
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
967
1093
|
*
|
|
968
1094
|
* @param {Object} request
|
|
969
1095
|
* The request object that will be sent.
|
|
@@ -1011,21 +1137,35 @@ export declare class ChatServiceClient {
|
|
|
1011
1137
|
* - [App
|
|
1012
1138
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1013
1139
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
1014
|
-
*
|
|
1140
|
+
* and the authorization scope:
|
|
1141
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1015
1142
|
*
|
|
1016
1143
|
* - [User
|
|
1017
1144
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1145
|
+
* with one of the following authorization scopes:
|
|
1146
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1147
|
+
* - `https://www.googleapis.com/auth/chat.memberships.app` (to add the
|
|
1148
|
+
* calling app to the space)
|
|
1149
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1150
|
+
* only)
|
|
1151
|
+
* - User authentication grants administrator privileges when an
|
|
1152
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1153
|
+
* the following authorization scope is used:
|
|
1154
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1155
|
+
*
|
|
1156
|
+
* App authentication is not supported for the following use cases:
|
|
1157
|
+
*
|
|
1158
|
+
* - Inviting users external to the Workspace organization that owns the
|
|
1159
|
+
* space.
|
|
1160
|
+
* - Adding a Google Group to a space.
|
|
1161
|
+
* - Adding a Chat app to a space.
|
|
1020
1162
|
*
|
|
1021
1163
|
* For example usage, see:
|
|
1022
1164
|
*
|
|
1023
1165
|
* - [Invite or add a user to a
|
|
1024
1166
|
* space](https://developers.google.com/workspace/chat/create-members#create-user-membership).
|
|
1025
|
-
*
|
|
1026
1167
|
* - [Invite or add a Google Group to a
|
|
1027
1168
|
* space](https://developers.google.com/workspace/chat/create-members#create-group-membership).
|
|
1028
|
-
*
|
|
1029
1169
|
* - [Add the Chat app to a
|
|
1030
1170
|
* space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).
|
|
1031
1171
|
*
|
|
@@ -1053,8 +1193,6 @@ export declare class ChatServiceClient {
|
|
|
1053
1193
|
* - When [authenticating as an
|
|
1054
1194
|
* app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
|
|
1055
1195
|
* 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
1196
|
*
|
|
1059
1197
|
* - Set `user.type` to `HUMAN`, and set `user.name` with format
|
|
1060
1198
|
* `users/{user}`, where `{user}` can be the email address for the user. For
|
|
@@ -1113,13 +1251,22 @@ export declare class ChatServiceClient {
|
|
|
1113
1251
|
*
|
|
1114
1252
|
* - [App
|
|
1115
1253
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1116
|
-
* with [administrator
|
|
1117
|
-
*
|
|
1254
|
+
* with [administrator
|
|
1255
|
+
* approval](https://support.google.com/a?p=chat-app-auth) and the
|
|
1256
|
+
* authorization scope:
|
|
1257
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships` (only in
|
|
1258
|
+
* spaces the app created)
|
|
1118
1259
|
*
|
|
1119
1260
|
* - [User
|
|
1120
1261
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1262
|
+
* with one of the following authorization scopes:
|
|
1263
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1264
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1265
|
+
* only)
|
|
1266
|
+
* - User authentication grants administrator privileges when an
|
|
1267
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1268
|
+
* the following authorization scope is used:
|
|
1269
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1123
1270
|
*
|
|
1124
1271
|
* @param {Object} request
|
|
1125
1272
|
* The request object that will be sent.
|
|
@@ -1170,12 +1317,31 @@ export declare class ChatServiceClient {
|
|
|
1170
1317
|
* - [App
|
|
1171
1318
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1172
1319
|
* with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
1173
|
-
*
|
|
1320
|
+
* and the authorization scope:
|
|
1321
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1174
1322
|
*
|
|
1175
1323
|
* - [User
|
|
1176
1324
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1325
|
+
* with one of the following authorization scopes:
|
|
1326
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1327
|
+
* - `https://www.googleapis.com/auth/chat.memberships.app` (to remove
|
|
1328
|
+
* the calling app from the space)
|
|
1329
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
1330
|
+
* only)
|
|
1331
|
+
* - User authentication grants administrator privileges when an
|
|
1332
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
1333
|
+
* the following authorization scope is used:
|
|
1334
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1335
|
+
*
|
|
1336
|
+
* App authentication is not supported for the following use cases:
|
|
1337
|
+
*
|
|
1338
|
+
* - Removing a Google Group from a space.
|
|
1339
|
+
* - Removing a Chat app from a space.
|
|
1340
|
+
*
|
|
1341
|
+
* To delete memberships for space managers, the requester
|
|
1342
|
+
* must be a space manager. If you're using [app
|
|
1343
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1344
|
+
* the Chat app must be the space creator.
|
|
1179
1345
|
*
|
|
1180
1346
|
* @param {Object} request
|
|
1181
1347
|
* The request object that will be sent.
|
|
@@ -1184,9 +1350,13 @@ export declare class ChatServiceClient {
|
|
|
1184
1350
|
* human users' or their own memberships. Chat apps can't delete other apps'
|
|
1185
1351
|
* memberships.
|
|
1186
1352
|
*
|
|
1187
|
-
* When deleting a human membership, requires the `chat.memberships` scope
|
|
1188
|
-
*
|
|
1189
|
-
*
|
|
1353
|
+
* When deleting a human membership, requires the `chat.memberships` scope
|
|
1354
|
+
* with [user
|
|
1355
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1356
|
+
* or the `chat.memberships.app` scope with [app
|
|
1357
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1358
|
+
* and the `spaces/{space}/members/{member}` format.
|
|
1359
|
+
* You can use the email as an alias for `{member}`. For example,
|
|
1190
1360
|
* `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
|
|
1191
1361
|
* email of the Google Chat user.
|
|
1192
1362
|
*
|
|
@@ -1228,7 +1398,14 @@ export declare class ChatServiceClient {
|
|
|
1228
1398
|
* message](https://developers.google.com/workspace/chat/create-reactions).
|
|
1229
1399
|
*
|
|
1230
1400
|
* Requires [user
|
|
1231
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1401
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1402
|
+
* with one of the following [authorization
|
|
1403
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1404
|
+
*
|
|
1405
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.create`
|
|
1406
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1407
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1408
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1232
1409
|
*
|
|
1233
1410
|
* @param {Object} request
|
|
1234
1411
|
* The request object that will be sent.
|
|
@@ -1260,7 +1437,13 @@ export declare class ChatServiceClient {
|
|
|
1260
1437
|
* reaction](https://developers.google.com/workspace/chat/delete-reactions).
|
|
1261
1438
|
*
|
|
1262
1439
|
* Requires [user
|
|
1263
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1440
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1441
|
+
* with one of the following [authorization
|
|
1442
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1443
|
+
*
|
|
1444
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1445
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1446
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1264
1447
|
*
|
|
1265
1448
|
* @param {Object} request
|
|
1266
1449
|
* The request object that will be sent.
|
|
@@ -1295,7 +1478,11 @@ export declare class ChatServiceClient {
|
|
|
1295
1478
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1296
1479
|
*
|
|
1297
1480
|
* Requires [user
|
|
1298
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1481
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1482
|
+
* with the [authorization
|
|
1483
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1484
|
+
*
|
|
1485
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1299
1486
|
*
|
|
1300
1487
|
* @param {Object} request
|
|
1301
1488
|
* The request object that will be sent.
|
|
@@ -1328,7 +1515,12 @@ export declare class ChatServiceClient {
|
|
|
1328
1515
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1329
1516
|
*
|
|
1330
1517
|
* Requires [user
|
|
1331
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1518
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1519
|
+
* with one of the following [authorization
|
|
1520
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1521
|
+
*
|
|
1522
|
+
* - `https://www.googleapis.com/auth/chat.customemojis.readonly`
|
|
1523
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1332
1524
|
*
|
|
1333
1525
|
* @param {Object} request
|
|
1334
1526
|
* The request object that will be sent.
|
|
@@ -1371,7 +1563,11 @@ export declare class ChatServiceClient {
|
|
|
1371
1563
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
1372
1564
|
*
|
|
1373
1565
|
* Requires [user
|
|
1374
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1566
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1567
|
+
* with the [authorization
|
|
1568
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1569
|
+
*
|
|
1570
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
1375
1571
|
*
|
|
1376
1572
|
* @param {Object} request
|
|
1377
1573
|
* The request object that will be sent.
|
|
@@ -1406,7 +1602,12 @@ export declare class ChatServiceClient {
|
|
|
1406
1602
|
* state](https://developers.google.com/workspace/chat/get-space-read-state).
|
|
1407
1603
|
*
|
|
1408
1604
|
* Requires [user
|
|
1409
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1605
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1606
|
+
* with one of the following [authorization
|
|
1607
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1608
|
+
*
|
|
1609
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
1610
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1410
1611
|
*
|
|
1411
1612
|
* @param {Object} request
|
|
1412
1613
|
* The request object that will be sent.
|
|
@@ -1448,7 +1649,11 @@ export declare class ChatServiceClient {
|
|
|
1448
1649
|
* state](https://developers.google.com/workspace/chat/update-space-read-state).
|
|
1449
1650
|
*
|
|
1450
1651
|
* Requires [user
|
|
1451
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1652
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1653
|
+
* with the [authorization
|
|
1654
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1655
|
+
*
|
|
1656
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1452
1657
|
*
|
|
1453
1658
|
* @param {Object} request
|
|
1454
1659
|
* The request object that will be sent.
|
|
@@ -1505,7 +1710,12 @@ export declare class ChatServiceClient {
|
|
|
1505
1710
|
* state](https://developers.google.com/workspace/chat/get-thread-read-state).
|
|
1506
1711
|
*
|
|
1507
1712
|
* Requires [user
|
|
1508
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1713
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1714
|
+
* with one of the following [authorization
|
|
1715
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1716
|
+
*
|
|
1717
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
1718
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
1509
1719
|
*
|
|
1510
1720
|
* @param {Object} request
|
|
1511
1721
|
* The request object that will be sent.
|
|
@@ -1554,7 +1764,20 @@ export declare class ChatServiceClient {
|
|
|
1554
1764
|
* object of the Space event data for this request.
|
|
1555
1765
|
*
|
|
1556
1766
|
* Requires [user
|
|
1557
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1767
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1768
|
+
* with an [authorization
|
|
1769
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
|
|
1770
|
+
* appropriate for reading the requested data:
|
|
1771
|
+
*
|
|
1772
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
1773
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
1774
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
1775
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1776
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
1777
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
1778
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
1779
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
1780
|
+
*
|
|
1558
1781
|
* To get an event, the authenticated user must be a member of the space.
|
|
1559
1782
|
*
|
|
1560
1783
|
* For an example, see [Get details about an
|
|
@@ -1589,7 +1812,11 @@ export declare class ChatServiceClient {
|
|
|
1589
1812
|
* setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
|
|
1590
1813
|
*
|
|
1591
1814
|
* Requires [user
|
|
1592
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1815
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1816
|
+
* with the [authorization
|
|
1817
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1818
|
+
*
|
|
1819
|
+
* - `https://www.googleapis.com/auth/chat.users.spacesettings`
|
|
1593
1820
|
*
|
|
1594
1821
|
* @param {Object} request
|
|
1595
1822
|
* The request object that will be sent.
|
|
@@ -1622,7 +1849,11 @@ export declare class ChatServiceClient {
|
|
|
1622
1849
|
* setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
|
|
1623
1850
|
*
|
|
1624
1851
|
* Requires [user
|
|
1625
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1852
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1853
|
+
* with the [authorization
|
|
1854
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1855
|
+
*
|
|
1856
|
+
* - `https://www.googleapis.com/auth/chat.users.spacesettings`
|
|
1626
1857
|
*
|
|
1627
1858
|
* @param {Object} request
|
|
1628
1859
|
* The request object that will be sent.
|
|
@@ -1663,7 +1894,13 @@ export declare class ChatServiceClient {
|
|
|
1663
1894
|
* messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
|
|
1664
1895
|
*
|
|
1665
1896
|
* Requires [user
|
|
1666
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1897
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1898
|
+
* with one of the following [authorization
|
|
1899
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1900
|
+
*
|
|
1901
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
1902
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
1903
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
|
|
1667
1904
|
*
|
|
1668
1905
|
* @param {Object} request
|
|
1669
1906
|
* The request object that will be sent.
|
|
@@ -1955,11 +2192,23 @@ export declare class ChatServiceClient {
|
|
|
1955
2192
|
*
|
|
1956
2193
|
* - [App
|
|
1957
2194
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
2195
|
+
* with one of the following authorization scopes:
|
|
2196
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
2197
|
+
* - `https://www.googleapis.com/auth/chat.app.memberships` (requires
|
|
2198
|
+
* [administrator approval](https://support.google.com/a?p=chat-app-auth))
|
|
1958
2199
|
*
|
|
1959
2200
|
* - [User
|
|
1960
2201
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1961
|
-
*
|
|
1962
|
-
*
|
|
2202
|
+
* with one of the following authorization scopes:
|
|
2203
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
2204
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
2205
|
+
* - `https://www.googleapis.com/auth/chat.import` (import mode spaces
|
|
2206
|
+
* only)
|
|
2207
|
+
* - User authentication grants administrator privileges when an
|
|
2208
|
+
* administrator account authenticates, `use_admin_access` is `true`, and
|
|
2209
|
+
* one of the following authorization scopes is used:
|
|
2210
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships.readonly`
|
|
2211
|
+
* - `https://www.googleapis.com/auth/chat.admin.memberships`
|
|
1963
2212
|
*
|
|
1964
2213
|
* @param {Object} request
|
|
1965
2214
|
* The request object that will be sent.
|
|
@@ -2298,9 +2547,14 @@ export declare class ChatServiceClient {
|
|
|
2298
2547
|
*
|
|
2299
2548
|
* - [App
|
|
2300
2549
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
2550
|
+
* with the authorization scope:
|
|
2551
|
+
* - `https://www.googleapis.com/auth/chat.bot`
|
|
2301
2552
|
*
|
|
2302
2553
|
* - [User
|
|
2303
2554
|
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2555
|
+
* with one of the following authorization scopes:
|
|
2556
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
2557
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
2304
2558
|
*
|
|
2305
2559
|
* To list all named spaces by Google Workspace organization, use the
|
|
2306
2560
|
* [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
|
@@ -2476,7 +2730,13 @@ export declare class ChatServiceClient {
|
|
|
2476
2730
|
*
|
|
2477
2731
|
* Requires [user
|
|
2478
2732
|
* authentication with administrator
|
|
2479
|
-
* privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
|
|
2733
|
+
* privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
|
|
2734
|
+
* and one of the following [authorization
|
|
2735
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2736
|
+
*
|
|
2737
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
|
|
2738
|
+
* - `https://www.googleapis.com/auth/chat.admin.spaces`
|
|
2739
|
+
*
|
|
2480
2740
|
* In the request, set `use_admin_access` to `true`.
|
|
2481
2741
|
*
|
|
2482
2742
|
* @param {Object} request
|
|
@@ -2910,7 +3170,14 @@ export declare class ChatServiceClient {
|
|
|
2910
3170
|
* message](https://developers.google.com/workspace/chat/list-reactions).
|
|
2911
3171
|
*
|
|
2912
3172
|
* Requires [user
|
|
2913
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3173
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3174
|
+
* with one of the following [authorization
|
|
3175
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
3176
|
+
*
|
|
3177
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
3178
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
3179
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
3180
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
2914
3181
|
*
|
|
2915
3182
|
* @param {Object} request
|
|
2916
3183
|
* The request object that will be sent.
|
|
@@ -3159,7 +3426,12 @@ export declare class ChatServiceClient {
|
|
|
3159
3426
|
* permissions](https://support.google.com/a/answer/12850085).
|
|
3160
3427
|
*
|
|
3161
3428
|
* Requires [user
|
|
3162
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3429
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3430
|
+
* with one of the following [authorization
|
|
3431
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
3432
|
+
*
|
|
3433
|
+
* - `https://www.googleapis.com/auth/chat.customemojis.readonly`
|
|
3434
|
+
* - `https://www.googleapis.com/auth/chat.customemojis`
|
|
3163
3435
|
*
|
|
3164
3436
|
* @param {Object} request
|
|
3165
3437
|
* The request object that will be sent.
|
|
@@ -3311,7 +3583,20 @@ export declare class ChatServiceClient {
|
|
|
3311
3583
|
* `Membership` resource.
|
|
3312
3584
|
*
|
|
3313
3585
|
* Requires [user
|
|
3314
|
-
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3586
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
3587
|
+
* with an [authorization
|
|
3588
|
+
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
|
|
3589
|
+
* appropriate for reading the requested data:
|
|
3590
|
+
*
|
|
3591
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
3592
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
3593
|
+
* - `https://www.googleapis.com/auth/chat.messages.readonly`
|
|
3594
|
+
* - `https://www.googleapis.com/auth/chat.messages`
|
|
3595
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
|
|
3596
|
+
* - `https://www.googleapis.com/auth/chat.messages.reactions`
|
|
3597
|
+
* - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
3598
|
+
* - `https://www.googleapis.com/auth/chat.memberships`
|
|
3599
|
+
*
|
|
3315
3600
|
* To list events, the authenticated user must be a member of the space.
|
|
3316
3601
|
*
|
|
3317
3602
|
* For an example, see [List events from a Google Chat
|