@google-apps/chat 0.4.0 → 0.6.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/protos/google/apps/card/v1/card.proto +1 -1
  3. package/build/protos/google/chat/v1/action_status.proto +2 -1
  4. package/build/protos/google/chat/v1/annotation.proto +3 -1
  5. package/build/protos/google/chat/v1/attachment.proto +4 -3
  6. package/build/protos/google/chat/v1/chat_service.proto +60 -20
  7. package/build/protos/google/chat/v1/contextual_addon.proto +2 -1
  8. package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
  9. package/build/protos/google/chat/v1/group.proto +2 -1
  10. package/build/protos/google/chat/v1/history_state.proto +2 -1
  11. package/build/protos/google/chat/v1/matched_url.proto +2 -1
  12. package/build/protos/google/chat/v1/membership.proto +13 -7
  13. package/build/protos/google/chat/v1/message.proto +2 -1
  14. package/build/protos/google/chat/v1/reaction.proto +4 -3
  15. package/build/protos/google/chat/v1/slash_command.proto +2 -1
  16. package/build/protos/google/chat/v1/space.proto +70 -13
  17. package/build/protos/google/chat/v1/space_read_state.proto +2 -1
  18. package/build/protos/google/chat/v1/space_setup.proto +16 -11
  19. package/build/protos/google/chat/v1/thread_read_state.proto +2 -1
  20. package/build/protos/google/chat/v1/user.proto +2 -1
  21. package/build/protos/google/chat/v1/widgets.proto +2 -1
  22. package/build/protos/protos.d.ts +141 -16
  23. package/build/protos/protos.js +367 -49
  24. package/build/protos/protos.json +68 -23
  25. package/build/src/v1/chat_service_client.d.ts +118 -46
  26. package/build/src/v1/chat_service_client.js +21 -4
  27. package/build/src/v1/chat_service_client.js.map +1 -1
  28. package/package.json +2 -2
@@ -2411,6 +2411,7 @@
2411
2411
  "java_multiple_files": true,
2412
2412
  "java_outer_classname": "ThreadReadStateProto",
2413
2413
  "java_package": "com.google.chat.v1",
2414
+ "objc_class_prefix": "DYNAPIProto",
2414
2415
  "php_namespace": "Google\\Apps\\Chat\\V1",
2415
2416
  "ruby_package": "Google::Apps::Chat::V1"
2416
2417
  },
@@ -2753,7 +2754,7 @@
2753
2754
  "ChatService": {
2754
2755
  "options": {
2755
2756
  "(google.api.default_host)": "chat.googleapis.com",
2756
- "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.bot,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.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly"
2757
+ "(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.bot,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.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly"
2757
2758
  },
2758
2759
  "methods": {
2759
2760
  "CreateMessage": {
@@ -4377,7 +4378,10 @@
4377
4378
  "fields": {
4378
4379
  "uid": {
4379
4380
  "type": "string",
4380
- "id": 1
4381
+ "id": 1,
4382
+ "options": {
4383
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4384
+ }
4381
4385
  }
4382
4386
  }
4383
4387
  },
@@ -4571,6 +4575,20 @@
4571
4575
  "options": {
4572
4576
  "(google.api.field_behavior)": "OUTPUT_ONLY"
4573
4577
  }
4578
+ },
4579
+ "accessSettings": {
4580
+ "type": "AccessSettings",
4581
+ "id": 23,
4582
+ "options": {
4583
+ "(google.api.field_behavior)": "OPTIONAL"
4584
+ }
4585
+ },
4586
+ "spaceUri": {
4587
+ "type": "string",
4588
+ "id": 25,
4589
+ "options": {
4590
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4591
+ }
4574
4592
  }
4575
4593
  },
4576
4594
  "nested": {
@@ -4608,6 +4626,33 @@
4608
4626
  "id": 2
4609
4627
  }
4610
4628
  }
4629
+ },
4630
+ "AccessSettings": {
4631
+ "fields": {
4632
+ "accessState": {
4633
+ "type": "AccessState",
4634
+ "id": 1,
4635
+ "options": {
4636
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4637
+ }
4638
+ },
4639
+ "audience": {
4640
+ "type": "string",
4641
+ "id": 3,
4642
+ "options": {
4643
+ "(google.api.field_behavior)": "OPTIONAL"
4644
+ }
4645
+ }
4646
+ },
4647
+ "nested": {
4648
+ "AccessState": {
4649
+ "values": {
4650
+ "ACCESS_STATE_UNSPECIFIED": 0,
4651
+ "PRIVATE": 1,
4652
+ "DISCOVERABLE": 2
4653
+ }
4654
+ }
4655
+ }
4611
4656
  }
4612
4657
  }
4613
4658
  },
@@ -4887,33 +4932,14 @@
4887
4932
  },
4888
4933
  "api": {
4889
4934
  "options": {
4935
+ "cc_enable_arenas": true,
4890
4936
  "go_package": "google.golang.org/genproto/googleapis/api;api",
4891
4937
  "java_multiple_files": true,
4892
4938
  "java_outer_classname": "LaunchStageProto",
4893
4939
  "java_package": "com.google.api",
4894
- "objc_class_prefix": "GAPI",
4895
- "cc_enable_arenas": true
4940
+ "objc_class_prefix": "GAPI"
4896
4941
  },
4897
4942
  "nested": {
4898
- "fieldBehavior": {
4899
- "rule": "repeated",
4900
- "type": "google.api.FieldBehavior",
4901
- "id": 1052,
4902
- "extend": "google.protobuf.FieldOptions"
4903
- },
4904
- "FieldBehavior": {
4905
- "values": {
4906
- "FIELD_BEHAVIOR_UNSPECIFIED": 0,
4907
- "OPTIONAL": 1,
4908
- "REQUIRED": 2,
4909
- "OUTPUT_ONLY": 3,
4910
- "INPUT_ONLY": 4,
4911
- "IMMUTABLE": 5,
4912
- "UNORDERED_LIST": 6,
4913
- "NON_EMPTY_DEFAULT": 7,
4914
- "IDENTIFIER": 8
4915
- }
4916
- },
4917
4943
  "resourceReference": {
4918
4944
  "type": "google.api.ResourceReference",
4919
4945
  "id": 1055,
@@ -4991,6 +5017,25 @@
4991
5017
  }
4992
5018
  }
4993
5019
  },
5020
+ "fieldBehavior": {
5021
+ "rule": "repeated",
5022
+ "type": "google.api.FieldBehavior",
5023
+ "id": 1052,
5024
+ "extend": "google.protobuf.FieldOptions"
5025
+ },
5026
+ "FieldBehavior": {
5027
+ "values": {
5028
+ "FIELD_BEHAVIOR_UNSPECIFIED": 0,
5029
+ "OPTIONAL": 1,
5030
+ "REQUIRED": 2,
5031
+ "OUTPUT_ONLY": 3,
5032
+ "INPUT_ONLY": 4,
5033
+ "IMMUTABLE": 5,
5034
+ "UNORDERED_LIST": 6,
5035
+ "NON_EMPTY_DEFAULT": 7,
5036
+ "IDENTIFIER": 8
5037
+ }
5038
+ },
4994
5039
  "http": {
4995
5040
  "type": "HttpRule",
4996
5041
  "id": 72295728,
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as gax from 'google-gax';
3
2
  import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax';
4
3
  import { Transform } from 'stream';
@@ -117,7 +116,8 @@ export declare class ChatServiceClient {
117
116
  getProjectId(): Promise<string>;
118
117
  getProjectId(callback: Callback<string, undefined, undefined>): void;
119
118
  /**
120
- * Creates a message in a Google Chat space. For an example, see [Send a
119
+ * Creates a message in a Google Chat space. The maximum message size,
120
+ * including text and cards, is 32,000 bytes. For an example, see [Send a
121
121
  * message](https://developers.google.com/workspace/chat/create-messages).
122
122
  *
123
123
  * Calling this method requires
@@ -202,8 +202,9 @@ export declare class ChatServiceClient {
202
202
  * @param {string} request.name
203
203
  * Required. Resource name of the membership to retrieve.
204
204
  *
205
- * To get the app's own membership, you can optionally use
206
- * `spaces/{space}/members/app`.
205
+ * To get the app's own membership [by using user
206
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
207
+ * you can optionally use `spaces/{space}/members/app`.
207
208
  *
208
209
  * Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
209
210
  *
@@ -395,7 +396,7 @@ export declare class ChatServiceClient {
395
396
  * The request object that will be sent.
396
397
  * @param {string} request.name
397
398
  * Required. Resource name of the attachment, in the form
398
- * `spaces/* /messages/* /attachments/*`.
399
+ * `spaces/{space}/messages/{message}/attachments/{attachment}`.
399
400
  * @param {object} [options]
400
401
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
401
402
  * @returns {Promise} - The promise which resolves to an array.
@@ -462,7 +463,7 @@ export declare class ChatServiceClient {
462
463
  * @param {Object} request
463
464
  * The request object that will be sent.
464
465
  * @param {string} request.name
465
- * Required. Resource name of the space, in the form "spaces/*".
466
+ * Required. Resource name of the space, in the form `spaces/{space}`.
466
467
  *
467
468
  * Format: `spaces/{space}`
468
469
  * @param {object} [options]
@@ -536,17 +537,28 @@ export declare class ChatServiceClient {
536
537
  * members](https://developers.google.com/workspace/chat/set-up-spaces).
537
538
  *
538
539
  * To specify the human members to add, add memberships with the appropriate
539
- * `member.name` in the `SetUpSpaceRequest`. To add a human user, use
540
- * `users/{user}`, where `{user}` can be the email address for the user. For
541
- * users in the same Workspace organization `{user}` can also be the `id` for
542
- * the person from the People API, or the `id` for the user in the Directory
543
- * API. For example, if the People API Person profile ID for
544
- * `user@example.com` is `123456789`, you can add the user to the space by
545
- * setting the `membership.member.name` to `users/user@example.com` or
546
- * `users/123456789`.
547
- *
548
- * For a space or group chat, if the caller blocks or is blocked by some
549
- * members, then those members aren't added to the created space.
540
+ * `membership.member.name`. To add a human user, use `users/{user}`, where
541
+ * `{user}` can be the email address for the user. For users in the same
542
+ * Workspace organization `{user}` can also be the `id` for the person from
543
+ * the People API, or the `id` for the user in the Directory API. For example,
544
+ * if the People API Person profile ID for `user@example.com` is `123456789`,
545
+ * you can add the user to the space by setting the `membership.member.name`
546
+ * to `users/user@example.com` or `users/123456789`.
547
+ *
548
+ * To specify the Google groups to add, add memberships with the
549
+ * appropriate `membership.group_member.name`. To add or invite a Google
550
+ * group, use `groups/{group}`, where `{group}` is the `id` for the group from
551
+ * the Cloud Identity Groups API. For example, you can use [Cloud Identity
552
+ * Groups lookup
553
+ * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
554
+ * to retrieve the ID `123456789` for group email `group@example.com`, then
555
+ * you can add the group to the space by setting the
556
+ * `membership.group_member.name` to `groups/123456789`. Group email is not
557
+ * supported, and Google groups can only be added as members in named spaces.
558
+ *
559
+ * For a named space or group chat, if the caller blocks, or is blocked
560
+ * by some members, or doesn't have permission to add some members, then
561
+ * those members aren't added to the created space.
550
562
  *
551
563
  * To create a direct message (DM) between the calling user and another human
552
564
  * user, specify exactly one membership to represent the human user. If
@@ -605,19 +617,23 @@ export declare class ChatServiceClient {
605
617
  * Specifying an existing request ID from the same Chat app with a different
606
618
  * authenticated user returns an error.
607
619
  * @param {number[]} [request.memberships]
608
- * Optional. The Google Chat users to invite to join the space. Omit the
609
- * calling user, as they are added automatically.
620
+ * Optional. The Google Chat users or groups to invite to join the space. Omit
621
+ * the calling user, as they are added automatically.
610
622
  *
611
623
  * The set currently allows up to 20 memberships (in addition to the caller).
612
624
  *
613
- * The `Membership.member` field must contain a `user` with `name` populated
614
- * (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only
615
- * add human users when setting up a space (adding Chat apps is only supported
616
- * for direct message setup with the calling app). You can also add members
617
- * using the user's email as an alias for {user}. For example, the `user.name`
618
- * can be `users/example@gmail.com`." To invite Gmail users or users from
619
- * external Google Workspace domains, user's email must be used for
620
- * `{user}`.
625
+ * For human membership, the `Membership.member` field must contain a `user`
626
+ * with `name` populated (format: `users/{user}`) and `type` set to
627
+ * `User.Type.HUMAN`. You can only add human users when setting up a space
628
+ * (adding Chat apps is only supported for direct message setup with the
629
+ * calling app). You can also add members using the user's email as an alias
630
+ * for {user}. For example, the `user.name` can be `users/example@gmail.com`.
631
+ * To invite Gmail users or users from external Google Workspace domains,
632
+ * user's email must be used for `{user}`.
633
+ *
634
+ * For Google group membership, the `Membership.group_member` field must
635
+ * contain a `group` with `name` populated (format `groups/{group}`). You
636
+ * can only add Google groups when setting `Space.spaceType` to `SPACE`.
621
637
  *
622
638
  * Optional when setting `Space.spaceType` to `SPACE`.
623
639
  *
@@ -686,6 +702,7 @@ export declare class ChatServiceClient {
686
702
  * the display name is optional if the existing space already has the `SPACE`
687
703
  * type. Trying to update the space type in other ways results in an invalid
688
704
  * argument error).
705
+ * `space_type` is not supported with admin access.
689
706
  *
690
707
  * - `space_details`
691
708
  *
@@ -694,12 +711,27 @@ export declare class ChatServiceClient {
694
711
  * allows users to change their history
695
712
  * setting](https://support.google.com/a/answer/7664184).
696
713
  * Warning: mutually exclusive with all other field paths.)
697
- *
698
- * - Developer Preview: `access_settings.audience` (Supports changing the
699
- * [access setting](https://support.google.com/chat/answer/11971020) of a
700
- * space. If no audience is specified in the access setting, the space's
701
- * access setting is updated to restricted. Warning: mutually exclusive with
702
- * all other field paths.)
714
+ * `space_history_state` is not supported with admin access.
715
+ *
716
+ * - `access_settings.audience` (Supports changing the [access
717
+ * setting](https://support.google.com/chat/answer/11971020) of who can
718
+ * discover the space, join the space, and preview the messages in space. If
719
+ * no audience is specified in the access setting, the space's access setting
720
+ * is updated to private. Warning: mutually exclusive with all other field
721
+ * paths.)
722
+ * `access_settings.audience` is not supported with admin access.
723
+ *
724
+ * - Developer Preview: Supports changing the [permission
725
+ * settings](https://support.google.com/chat/answer/13340792) of a space,
726
+ * supported field paths
727
+ * include: `permission_settings.manage_members_and_groups`,
728
+ * `permission_settings.modify_space_details`,
729
+ * `permission_settings.toggle_history`,
730
+ * `permission_settings.use_at_mention_all`,
731
+ * `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
732
+ * `permission_settings.reply_messages`
733
+ * (Warning: mutually exclusive with all other non-permission settings field
734
+ * paths). `permission_settings` is not supported with admin access.
703
735
  * @param {object} [options]
704
736
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
705
737
  * @returns {Promise} - The promise which resolves to an array.
@@ -842,8 +874,9 @@ export declare class ChatServiceClient {
842
874
  * directly to the specified space. Requires [user
843
875
  * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
844
876
  *
845
- * To specify the member to add, set the `membership.member.name` in the
846
- * `CreateMembershipRequest`:
877
+ * To specify the member to add, set the `membership.member.name` for the
878
+ * human or app member, or set the `membership.group_member.name` for the
879
+ * group member.
847
880
  *
848
881
  * - To add the calling app to a space or a direct message between two human
849
882
  * users, use `users/app`. Unable to add other
@@ -857,6 +890,15 @@ export declare class ChatServiceClient {
857
890
  * the space by setting the `membership.member.name` to
858
891
  * `users/user@example.com` or `users/123456789`.
859
892
  *
893
+ * - To add or invite a Google group in a named space, use
894
+ * `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
895
+ * Identity Groups API. For example, you can use [Cloud Identity Groups lookup
896
+ * API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
897
+ * to retrieve the ID `123456789` for group email `group@example.com`, then
898
+ * you can add or invite the group to a named space by setting the
899
+ * `membership.group_member.name` to `groups/123456789`. Group email is not
900
+ * supported, and Google groups can only be added as members in named spaces.
901
+ *
860
902
  * @param {Object} request
861
903
  * The request object that will be sent.
862
904
  * @param {string} request.parent
@@ -898,8 +940,11 @@ export declare class ChatServiceClient {
898
940
  createMembership(request: protos.google.chat.v1.ICreateMembershipRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.IMembership, protos.google.chat.v1.ICreateMembershipRequest | null | undefined, {} | null | undefined>): void;
899
941
  createMembership(request: protos.google.chat.v1.ICreateMembershipRequest, callback: Callback<protos.google.chat.v1.IMembership, protos.google.chat.v1.ICreateMembershipRequest | null | undefined, {} | null | undefined>): void;
900
942
  /**
901
- * Updates a membership. Requires [user
902
- * authentication](https://developers.google.com/chat/api/guides/auth/users).
943
+ * Updates a membership. For an example, see [Update a user's membership in
944
+ * a space](https://developers.google.com/workspace/chat/update-members).
945
+ *
946
+ * Requires [user
947
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
903
948
  *
904
949
  * @param {Object} request
905
950
  * The request object that will be sent.
@@ -1034,7 +1079,9 @@ export declare class ChatServiceClient {
1034
1079
  deleteReaction(request: protos.google.chat.v1.IDeleteReactionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.chat.v1.IDeleteReactionRequest | null | undefined, {} | null | undefined>): void;
1035
1080
  /**
1036
1081
  * Returns details about a user's read state within a space, used to identify
1037
- * read and unread messages.
1082
+ * read and unread messages. For an example, see [Get details about a user's
1083
+ * space read
1084
+ * state](https://developers.google.com/workspace/chat/get-space-read-state).
1038
1085
  *
1039
1086
  * Requires [user
1040
1087
  * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -1075,7 +1122,8 @@ export declare class ChatServiceClient {
1075
1122
  getSpaceReadState(request: protos.google.chat.v1.IGetSpaceReadStateRequest, callback: Callback<protos.google.chat.v1.ISpaceReadState, protos.google.chat.v1.IGetSpaceReadStateRequest | null | undefined, {} | null | undefined>): void;
1076
1123
  /**
1077
1124
  * Updates a user's read state within a space, used to identify read and
1078
- * unread messages.
1125
+ * unread messages. For an example, see [Update a user's space read
1126
+ * state](https://developers.google.com/workspace/chat/update-space-read-state).
1079
1127
  *
1080
1128
  * Requires [user
1081
1129
  * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -1130,7 +1178,9 @@ export declare class ChatServiceClient {
1130
1178
  updateSpaceReadState(request: protos.google.chat.v1.IUpdateSpaceReadStateRequest, callback: Callback<protos.google.chat.v1.ISpaceReadState, protos.google.chat.v1.IUpdateSpaceReadStateRequest | null | undefined, {} | null | undefined>): void;
1131
1179
  /**
1132
1180
  * Returns details about a user's read state within a thread, used to identify
1133
- * read and unread messages.
1181
+ * read and unread messages. For an example, see [Get details about a user's
1182
+ * thread read
1183
+ * state](https://developers.google.com/workspace/chat/get-thread-read-state).
1134
1184
  *
1135
1185
  * Requires [user
1136
1186
  * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
@@ -1513,16 +1563,23 @@ export declare class ChatServiceClient {
1513
1563
  *
1514
1564
  * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
1515
1565
  *
1516
- * To filter by type, set `member.type` to `HUMAN` or `BOT`.
1566
+ * To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
1567
+ * Preview: You can also filter for `member.type` using the `!=` operator.
1517
1568
  *
1518
1569
  * To filter by both role and type, use the `AND` operator. To filter by
1519
1570
  * either role or type, use the `OR` operator.
1520
1571
  *
1572
+ * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
1573
+ * when `use_admin_access` is set to true. Other member type filters will be
1574
+ * rejected.
1575
+ *
1521
1576
  * For example, the following queries are valid:
1522
1577
  *
1523
1578
  * ```
1524
1579
  * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
1525
1580
  * member.type = "HUMAN" AND role = "ROLE_MANAGER"
1581
+ *
1582
+ * member.type != "BOT"
1526
1583
  * ```
1527
1584
  *
1528
1585
  * The following queries are invalid:
@@ -1532,7 +1589,6 @@ export declare class ChatServiceClient {
1532
1589
  * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
1533
1590
  * ```
1534
1591
  *
1535
- *
1536
1592
  * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
1537
1593
  * error.
1538
1594
  * @param {boolean} [request.showGroups]
@@ -1607,16 +1663,23 @@ export declare class ChatServiceClient {
1607
1663
  *
1608
1664
  * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
1609
1665
  *
1610
- * To filter by type, set `member.type` to `HUMAN` or `BOT`.
1666
+ * To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
1667
+ * Preview: You can also filter for `member.type` using the `!=` operator.
1611
1668
  *
1612
1669
  * To filter by both role and type, use the `AND` operator. To filter by
1613
1670
  * either role or type, use the `OR` operator.
1614
1671
  *
1672
+ * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
1673
+ * when `use_admin_access` is set to true. Other member type filters will be
1674
+ * rejected.
1675
+ *
1615
1676
  * For example, the following queries are valid:
1616
1677
  *
1617
1678
  * ```
1618
1679
  * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
1619
1680
  * member.type = "HUMAN" AND role = "ROLE_MANAGER"
1681
+ *
1682
+ * member.type != "BOT"
1620
1683
  * ```
1621
1684
  *
1622
1685
  * The following queries are invalid:
@@ -1626,7 +1689,6 @@ export declare class ChatServiceClient {
1626
1689
  * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
1627
1690
  * ```
1628
1691
  *
1629
- *
1630
1692
  * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
1631
1693
  * error.
1632
1694
  * @param {boolean} [request.showGroups]
@@ -1696,16 +1758,23 @@ export declare class ChatServiceClient {
1696
1758
  *
1697
1759
  * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
1698
1760
  *
1699
- * To filter by type, set `member.type` to `HUMAN` or `BOT`.
1761
+ * To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
1762
+ * Preview: You can also filter for `member.type` using the `!=` operator.
1700
1763
  *
1701
1764
  * To filter by both role and type, use the `AND` operator. To filter by
1702
1765
  * either role or type, use the `OR` operator.
1703
1766
  *
1767
+ * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
1768
+ * when `use_admin_access` is set to true. Other member type filters will be
1769
+ * rejected.
1770
+ *
1704
1771
  * For example, the following queries are valid:
1705
1772
  *
1706
1773
  * ```
1707
1774
  * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
1708
1775
  * member.type = "HUMAN" AND role = "ROLE_MANAGER"
1776
+ *
1777
+ * member.type != "BOT"
1709
1778
  * ```
1710
1779
  *
1711
1780
  * The following queries are invalid:
@@ -1715,7 +1784,6 @@ export declare class ChatServiceClient {
1715
1784
  * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
1716
1785
  * ```
1717
1786
  *
1718
- *
1719
1787
  * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
1720
1788
  * error.
1721
1789
  * @param {boolean} [request.showGroups]
@@ -1765,6 +1833,10 @@ export declare class ChatServiceClient {
1765
1833
  * Lists spaces visible to the caller or authenticated user. Group chats
1766
1834
  * and DMs aren't listed until the first message is sent.
1767
1835
  *
1836
+ * To list all named spaces by Google Workspace organization, use the
1837
+ * [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
1838
+ * method using Workspace administrator privileges instead.
1839
+ *
1768
1840
  * @param {Object} request
1769
1841
  * The request object that will be sent.
1770
1842
  * @param {number} [request.pageSize]
@@ -293,6 +293,11 @@ class ChatServiceClient {
293
293
  */
294
294
  static get scopes() {
295
295
  return [
296
+ 'https://www.googleapis.com/auth/chat.admin.delete',
297
+ 'https://www.googleapis.com/auth/chat.admin.memberships',
298
+ 'https://www.googleapis.com/auth/chat.admin.memberships.readonly',
299
+ 'https://www.googleapis.com/auth/chat.admin.spaces',
300
+ 'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
296
301
  'https://www.googleapis.com/auth/chat.bot',
297
302
  'https://www.googleapis.com/auth/chat.delete',
298
303
  'https://www.googleapis.com/auth/chat.import',
@@ -1061,16 +1066,23 @@ class ChatServiceClient {
1061
1066
  *
1062
1067
  * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
1063
1068
  *
1064
- * To filter by type, set `member.type` to `HUMAN` or `BOT`.
1069
+ * To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
1070
+ * Preview: You can also filter for `member.type` using the `!=` operator.
1065
1071
  *
1066
1072
  * To filter by both role and type, use the `AND` operator. To filter by
1067
1073
  * either role or type, use the `OR` operator.
1068
1074
  *
1075
+ * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
1076
+ * when `use_admin_access` is set to true. Other member type filters will be
1077
+ * rejected.
1078
+ *
1069
1079
  * For example, the following queries are valid:
1070
1080
  *
1071
1081
  * ```
1072
1082
  * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
1073
1083
  * member.type = "HUMAN" AND role = "ROLE_MANAGER"
1084
+ *
1085
+ * member.type != "BOT"
1074
1086
  * ```
1075
1087
  *
1076
1088
  * The following queries are invalid:
@@ -1080,7 +1092,6 @@ class ChatServiceClient {
1080
1092
  * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
1081
1093
  * ```
1082
1094
  *
1083
- *
1084
1095
  * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
1085
1096
  * error.
1086
1097
  * @param {boolean} [request.showGroups]
@@ -1164,16 +1175,23 @@ class ChatServiceClient {
1164
1175
  *
1165
1176
  * To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
1166
1177
  *
1167
- * To filter by type, set `member.type` to `HUMAN` or `BOT`.
1178
+ * To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
1179
+ * Preview: You can also filter for `member.type` using the `!=` operator.
1168
1180
  *
1169
1181
  * To filter by both role and type, use the `AND` operator. To filter by
1170
1182
  * either role or type, use the `OR` operator.
1171
1183
  *
1184
+ * Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
1185
+ * when `use_admin_access` is set to true. Other member type filters will be
1186
+ * rejected.
1187
+ *
1172
1188
  * For example, the following queries are valid:
1173
1189
  *
1174
1190
  * ```
1175
1191
  * role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
1176
1192
  * member.type = "HUMAN" AND role = "ROLE_MANAGER"
1193
+ *
1194
+ * member.type != "BOT"
1177
1195
  * ```
1178
1196
  *
1179
1197
  * The following queries are invalid:
@@ -1183,7 +1201,6 @@ class ChatServiceClient {
1183
1201
  * role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
1184
1202
  * ```
1185
1203
  *
1186
- *
1187
1204
  * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
1188
1205
  * error.
1189
1206
  * @param {boolean} [request.showGroups]