@google-apps/chat 0.21.0 → 0.23.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.
@@ -2903,6 +2903,7 @@
2903
2903
  "RICH_LINK_TYPE_UNSPECIFIED": 0,
2904
2904
  "DRIVE_FILE": 1,
2905
2905
  "CHAT_SPACE": 2,
2906
+ "GMAIL_MESSAGE": 3,
2906
2907
  "MEET_SPACE": 4,
2907
2908
  "CALENDAR_EVENT": 5
2908
2909
  }
@@ -3029,7 +3030,7 @@
3029
3030
  "type": "string",
3030
3031
  "id": 1,
3031
3032
  "options": {
3032
- "(google.api.field_behavior)": "OPTIONAL"
3033
+ "(google.api.field_behavior)": "IDENTIFIER"
3033
3034
  }
3034
3035
  },
3035
3036
  "contentName": {
@@ -3496,7 +3497,7 @@
3496
3497
  "ChatService": {
3497
3498
  "options": {
3498
3499
  "(google.api.default_host)": "chat.googleapis.com",
3499
- "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
3500
+ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
3500
3501
  },
3501
3502
  "methods": {
3502
3503
  "CreateMessage": {
@@ -4622,6 +4623,95 @@
4622
4623
  "options": {
4623
4624
  "(google.api.field_behavior)": "REQUIRED"
4624
4625
  }
4626
+ },
4627
+ "quoteType": {
4628
+ "type": "QuoteType",
4629
+ "id": 4,
4630
+ "options": {
4631
+ "(google.api.field_behavior)": "OPTIONAL"
4632
+ }
4633
+ },
4634
+ "quotedMessageSnapshot": {
4635
+ "type": "QuotedMessageSnapshot",
4636
+ "id": 5,
4637
+ "options": {
4638
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4639
+ }
4640
+ },
4641
+ "forwardedMetadata": {
4642
+ "type": "ForwardedMetadata",
4643
+ "id": 6,
4644
+ "options": {
4645
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4646
+ }
4647
+ }
4648
+ },
4649
+ "nested": {
4650
+ "QuoteType": {
4651
+ "values": {
4652
+ "QUOTE_TYPE_UNSPECIFIED": 0,
4653
+ "REPLY": 1
4654
+ }
4655
+ }
4656
+ }
4657
+ },
4658
+ "QuotedMessageSnapshot": {
4659
+ "fields": {
4660
+ "sender": {
4661
+ "type": "string",
4662
+ "id": 1,
4663
+ "options": {
4664
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4665
+ }
4666
+ },
4667
+ "text": {
4668
+ "type": "string",
4669
+ "id": 2,
4670
+ "options": {
4671
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4672
+ }
4673
+ },
4674
+ "formattedText": {
4675
+ "type": "string",
4676
+ "id": 3,
4677
+ "options": {
4678
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4679
+ }
4680
+ },
4681
+ "annotations": {
4682
+ "rule": "repeated",
4683
+ "type": "Annotation",
4684
+ "id": 4,
4685
+ "options": {
4686
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4687
+ }
4688
+ },
4689
+ "attachments": {
4690
+ "rule": "repeated",
4691
+ "type": "Attachment",
4692
+ "id": 5,
4693
+ "options": {
4694
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4695
+ }
4696
+ }
4697
+ }
4698
+ },
4699
+ "ForwardedMetadata": {
4700
+ "fields": {
4701
+ "space": {
4702
+ "type": "string",
4703
+ "id": 1,
4704
+ "options": {
4705
+ "(google.api.field_behavior)": "OUTPUT_ONLY",
4706
+ "(google.api.resource_reference).type": "chat.googleapis.com/Space"
4707
+ }
4708
+ },
4709
+ "spaceDisplayName": {
4710
+ "type": "string",
4711
+ "id": 2,
4712
+ "options": {
4713
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
4714
+ }
4625
4715
  }
4626
4716
  }
4627
4717
  },
@@ -302,8 +302,18 @@ export declare class ChatServiceClient {
302
302
  *
303
303
  * - [App
304
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`
305
+ * with one of the following authorization scopes:
306
+ * - `https://www.googleapis.com/auth/chat.bot`: When using this
307
+ * authorization scope, this method returns details about a message the
308
+ * Chat app has access to, like direct messages and [slash
309
+ * commands](https://developers.google.com/workspace/chat/slash-commands)
310
+ * that invoke the Chat app.
311
+ * - `https://www.googleapis.com/auth/chat.app.messages.readonly`
312
+ * with [administrator
313
+ * approval](https://support.google.com/a?p=chat-app-auth) (available in
314
+ * [Developer Preview](https://developers.google.com/workspace/preview)).
315
+ * When using this authentication scope,
316
+ * this method returns details about a public message in a space.
307
317
  *
308
318
  * - [User
309
319
  * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
@@ -879,8 +889,10 @@ export declare class ChatServiceClient {
879
889
  *
880
890
  * You can update the following fields for a space:
881
891
  *
882
- * `space_details`: Updates the space's description. Supports up to 150
883
- * characters.
892
+ * `space_details`: Updates the space's description and guidelines. You must
893
+ * pass both description and guidelines in the update request as
894
+ * {@link protos.google.chat.v1.Space.SpaceDetails|`SpaceDetails`}. If you only want to
895
+ * update one of the fields, pass the existing value for the other field.
884
896
  *
885
897
  * `display_name`: Only supports updating the display name for spaces where
886
898
  * `spaceType` field is `SPACE`.
@@ -924,8 +936,7 @@ export declare class ChatServiceClient {
924
936
  * of a space.
925
937
  * When updating permission settings, you can only specify
926
938
  * `permissionSettings` field masks; you cannot update other field masks
927
- * at the same time. `permissionSettings` is not supported with
928
- * `useAdminAccess`.
939
+ * at the same time.
929
940
  * The supported field masks include:
930
941
  *
931
942
  * - `permission_settings.manageMembersAndGroups`
@@ -1765,22 +1776,36 @@ export declare class ChatServiceClient {
1765
1776
  * Note: The `permissionSettings` field is not returned in the Space
1766
1777
  * object of the Space event data for this request.
1767
1778
  *
1768
- * Requires [user
1769
- * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1770
- * with an [authorization
1779
+ * Supports the following types of
1780
+ * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
1781
+ * with an
1782
+ * [authorization
1771
1783
  * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
1772
1784
  * appropriate for reading the requested data:
1773
1785
  *
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`
1786
+ * - [App
1787
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1788
+ * with [administrator
1789
+ * approval](https://support.google.com/a?p=chat-app-auth) in
1790
+ * [Developer Preview](https://developers.google.com/workspace/preview)
1791
+ * with one of the following authorization scopes:
1792
+ * - `https://www.googleapis.com/auth/chat.app.spaces`
1793
+ * - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1794
+ * - `https://www.googleapis.com/auth/chat.app.memberships`
1782
1795
  *
1783
- * To get an event, the authenticated user must be a member of the space.
1796
+ * - [User
1797
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1798
+ * with one of the following authorization scopes:
1799
+ * - `https://www.googleapis.com/auth/chat.spaces.readonly`
1800
+ * - `https://www.googleapis.com/auth/chat.spaces`
1801
+ * - `https://www.googleapis.com/auth/chat.messages.readonly`
1802
+ * - `https://www.googleapis.com/auth/chat.messages`
1803
+ * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1804
+ * - `https://www.googleapis.com/auth/chat.messages.reactions`
1805
+ * - `https://www.googleapis.com/auth/chat.memberships.readonly`
1806
+ * - `https://www.googleapis.com/auth/chat.memberships`
1807
+ *
1808
+ * To get an event, the authenticated caller must be a member of the space.
1784
1809
  *
1785
1810
  * For an example, see [Get details about an
1786
1811
  * event from a Google Chat
@@ -1888,21 +1913,34 @@ export declare class ChatServiceClient {
1888
1913
  updateSpaceNotificationSetting(request: protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest, callback: Callback<protos.google.chat.v1.ISpaceNotificationSetting, protos.google.chat.v1.IUpdateSpaceNotificationSettingRequest | null | undefined, {} | null | undefined>): void;
1889
1914
  /**
1890
1915
  * Lists messages in a space that the caller is a member of, including
1891
- * messages from blocked members and spaces. If you list messages from a
1916
+ * messages from blocked members and spaces. System messages, like those
1917
+ * announcing new space members, aren't included. If you list messages from a
1892
1918
  * space with no messages, the response is an empty object. When using a
1893
1919
  * REST/HTTP interface, the response contains an empty JSON object, `{}`.
1894
1920
  * For an example, see
1895
1921
  * [List
1896
1922
  * messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
1897
1923
  *
1898
- * Requires [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):
1924
+ * Supports the following types of
1925
+ * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
1902
1926
  *
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)
1927
+ * - [App
1928
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1929
+ * with [administrator
1930
+ * approval](https://support.google.com/a?p=chat-app-auth) in
1931
+ * [Developer Preview](https://developers.google.com/workspace/preview)
1932
+ * with the authorization scope:
1933
+ * - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
1934
+ * using this authentication scope, this method only returns public
1935
+ * messages in a space. It doesn't include private messages.
1936
+ *
1937
+ * - [User
1938
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1939
+ * with one of the following authorization scopes:
1940
+ * - `https://www.googleapis.com/auth/chat.messages.readonly`
1941
+ * - `https://www.googleapis.com/auth/chat.messages`
1942
+ * - `https://www.googleapis.com/auth/chat.import` (import mode spaces
1943
+ * only)
1906
1944
  *
1907
1945
  * @param {Object} request
1908
1946
  * The request object that will be sent.
@@ -2728,7 +2766,9 @@ export declare class ChatServiceClient {
2728
2766
  listSpacesAsync(request?: protos.google.chat.v1.IListSpacesRequest, options?: CallOptions): AsyncIterable<protos.google.chat.v1.ISpace>;
2729
2767
  /**
2730
2768
  * Returns a list of spaces in a Google Workspace organization based on an
2731
- * administrator's search.
2769
+ * administrator's search. In the request, set `use_admin_access` to `true`.
2770
+ * For an example, see [Search for and manage
2771
+ * spaces](https://developers.google.com/workspace/chat/search-manage-admin).
2732
2772
  *
2733
2773
  * Requires [user
2734
2774
  * authentication with administrator
@@ -2739,8 +2779,6 @@ export declare class ChatServiceClient {
2739
2779
  * - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
2740
2780
  * - `https://www.googleapis.com/auth/chat.admin.spaces`
2741
2781
  *
2742
- * In the request, set `use_admin_access` to `true`.
2743
- *
2744
2782
  * @param {Object} request
2745
2783
  * The request object that will be sent.
2746
2784
  * @param {boolean} request.useAdminAccess
@@ -3584,22 +3622,36 @@ export declare class ChatServiceClient {
3584
3622
  * removed during the requested period, the event payload contains an empty
3585
3623
  * `Membership` resource.
3586
3624
  *
3587
- * Requires [user
3588
- * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3589
- * with an [authorization
3625
+ * Supports the following types of
3626
+ * [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
3627
+ * with an
3628
+ * [authorization
3590
3629
  * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
3591
3630
  * appropriate for reading the requested data:
3592
3631
  *
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`
3632
+ * - [App
3633
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
3634
+ * with [administrator
3635
+ * approval](https://support.google.com/a?p=chat-app-auth) in
3636
+ * [Developer Preview](https://developers.google.com/workspace/preview)
3637
+ * with one of the following authorization scopes:
3638
+ * - `https://www.googleapis.com/auth/chat.app.spaces`
3639
+ * - `https://www.googleapis.com/auth/chat.app.messages.readonly`
3640
+ * - `https://www.googleapis.com/auth/chat.app.memberships`
3641
+ *
3642
+ * - [User
3643
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
3644
+ * with one of the following authorization scopes:
3645
+ * - `https://www.googleapis.com/auth/chat.spaces.readonly`
3646
+ * - `https://www.googleapis.com/auth/chat.spaces`
3647
+ * - `https://www.googleapis.com/auth/chat.messages.readonly`
3648
+ * - `https://www.googleapis.com/auth/chat.messages`
3649
+ * - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
3650
+ * - `https://www.googleapis.com/auth/chat.messages.reactions`
3651
+ * - `https://www.googleapis.com/auth/chat.memberships.readonly`
3652
+ * - `https://www.googleapis.com/auth/chat.memberships`
3601
3653
  *
3602
- * To list events, the authenticated user must be a member of the space.
3654
+ * To list events, the authenticated caller must be a member of the space.
3603
3655
  *
3604
3656
  * For an example, see [List events from a Google Chat
3605
3657
  * space](https://developers.google.com/workspace/chat/list-space-events).
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -290,6 +290,7 @@ class ChatServiceClient {
290
290
  'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
291
291
  'https://www.googleapis.com/auth/chat.app.delete',
292
292
  'https://www.googleapis.com/auth/chat.app.memberships',
293
+ 'https://www.googleapis.com/auth/chat.app.messages.readonly',
293
294
  'https://www.googleapis.com/auth/chat.app.spaces',
294
295
  'https://www.googleapis.com/auth/chat.app.spaces.create',
295
296
  'https://www.googleapis.com/auth/chat.bot',