@maxim_mazurok/gapi.client.chat-v1 0.2.20260623 → 0.3.20260628
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/index.d.ts +36 -54
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260628
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,7 +28,19 @@ declare namespace gapi.client {
|
|
|
28
28
|
/** A list of buttons. */
|
|
29
29
|
buttonList?: GoogleAppsCardV1ButtonList;
|
|
30
30
|
}
|
|
31
|
+
interface AccessPermissionSetting {
|
|
32
|
+
/** Optional. Unordered list. Allowed principals for this permission. */
|
|
33
|
+
principals?: Principal[];
|
|
34
|
+
}
|
|
35
|
+
interface AccessPermissionSettings {
|
|
36
|
+
/** Optional. Access permission setting for discovering the space. */
|
|
37
|
+
discoverSpaceSetting?: AccessPermissionSetting;
|
|
38
|
+
/** Optional. Access permission setting for joining the space. */
|
|
39
|
+
joinSpaceSetting?: AccessPermissionSetting;
|
|
40
|
+
}
|
|
31
41
|
interface AccessSettings {
|
|
42
|
+
/** Optional. Access permission settings for the space. To set the target audience when creating a space, specify the `accessSettings.audience` field in your request. */
|
|
43
|
+
accessPermissionSettings?: AccessPermissionSettings;
|
|
32
44
|
/** Output only. Indicates the access state of the space. */
|
|
33
45
|
accessState?: 'ACCESS_STATE_UNSPECIFIED' | 'PRIVATE' | 'DISCOVERABLE';
|
|
34
46
|
/** Optional. The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`. Reading the target audience supports: - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope. This field is not populated when using the `chat.bot` scope with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). Setting the target audience requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). */
|
|
@@ -106,9 +118,7 @@ declare namespace gapi.client {
|
|
|
106
118
|
appCommandId?: number;
|
|
107
119
|
/** The type of Chat app command. */
|
|
108
120
|
appCommandType?:
|
|
109
|
-
| '
|
|
110
|
-
| 'SLASH_COMMAND'
|
|
111
|
-
| 'QUICK_COMMAND';
|
|
121
|
+
'APP_COMMAND_TYPE_UNSPECIFIED' | 'SLASH_COMMAND' | 'QUICK_COMMAND';
|
|
112
122
|
}
|
|
113
123
|
interface AttachedGif {
|
|
114
124
|
/** Output only. The URL that hosts the GIF image. */
|
|
@@ -138,6 +148,10 @@ declare namespace gapi.client {
|
|
|
138
148
|
/** Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data. */
|
|
139
149
|
resourceName?: string;
|
|
140
150
|
}
|
|
151
|
+
interface Audience {
|
|
152
|
+
/** The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover or join the space. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`. */
|
|
153
|
+
name?: string;
|
|
154
|
+
}
|
|
141
155
|
interface Availability {
|
|
142
156
|
/** Optional. The user's custom status. */
|
|
143
157
|
customStatus?: CustomStatus;
|
|
@@ -147,11 +161,7 @@ declare namespace gapi.client {
|
|
|
147
161
|
name?: string;
|
|
148
162
|
/** Output only. The user's current availability state. */
|
|
149
163
|
state?:
|
|
150
|
-
| '
|
|
151
|
-
| 'ACTIVE'
|
|
152
|
-
| 'IDLE'
|
|
153
|
-
| 'AWAY'
|
|
154
|
-
| 'DO_NOT_DISTURB';
|
|
164
|
+
'STATE_UNSPECIFIED' | 'ACTIVE' | 'IDLE' | 'AWAY' | 'DO_NOT_DISTURB';
|
|
155
165
|
}
|
|
156
166
|
interface Button {
|
|
157
167
|
/** A button with image and `onclick` action. */
|
|
@@ -483,9 +493,7 @@ declare namespace gapi.client {
|
|
|
483
493
|
peekCardHeader?: GoogleAppsCardV1CardHeader;
|
|
484
494
|
/** The divider style between the header, sections and footer. */
|
|
485
495
|
sectionDividerStyle?:
|
|
486
|
-
| '
|
|
487
|
-
| 'SOLID_DIVIDER'
|
|
488
|
-
| 'NO_DIVIDER';
|
|
496
|
+
'DIVIDER_STYLE_UNSPECIFIED' | 'SOLID_DIVIDER' | 'NO_DIVIDER';
|
|
489
497
|
/** Contains a collection of widgets. Each section has its own, optional header. Sections are visually separated by a line divider. For an example in Google Chat apps, see [Define a section of a card](https://developers.google.com/workspace/chat/design-components-card-dialog#define_a_section_of_a_card). */
|
|
490
498
|
sections?: GoogleAppsCardV1Section[];
|
|
491
499
|
}
|
|
@@ -550,18 +558,12 @@ declare namespace gapi.client {
|
|
|
550
558
|
expandButton?: GoogleAppsCardV1Button;
|
|
551
559
|
/** The horizontal alignment of the expand and collapse button. */
|
|
552
560
|
horizontalAlignment?:
|
|
553
|
-
| '
|
|
554
|
-
| 'START'
|
|
555
|
-
| 'CENTER'
|
|
556
|
-
| 'END';
|
|
561
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
557
562
|
}
|
|
558
563
|
interface GoogleAppsCardV1Column {
|
|
559
564
|
/** Specifies whether widgets align to the left, right, or center of a column. */
|
|
560
565
|
horizontalAlignment?:
|
|
561
|
-
| '
|
|
562
|
-
| 'START'
|
|
563
|
-
| 'CENTER'
|
|
564
|
-
| 'END';
|
|
566
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
565
567
|
/** Specifies how a column fills the width of the card. */
|
|
566
568
|
horizontalSizeStyle?:
|
|
567
569
|
| 'HORIZONTAL_SIZE_STYLE_UNSPECIFIED'
|
|
@@ -569,10 +571,7 @@ declare namespace gapi.client {
|
|
|
569
571
|
| 'FILL_MINIMUM_SPACE';
|
|
570
572
|
/** Specifies whether widgets align to the top, bottom, or center of a column. */
|
|
571
573
|
verticalAlignment?:
|
|
572
|
-
| '
|
|
573
|
-
| 'CENTER'
|
|
574
|
-
| 'TOP'
|
|
575
|
-
| 'BOTTOM';
|
|
574
|
+
'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'CENTER' | 'TOP' | 'BOTTOM';
|
|
576
575
|
/** An array of widgets included in a column. Widgets appear in the order that they are specified. */
|
|
577
576
|
widgets?: GoogleAppsCardV1Widgets[];
|
|
578
577
|
}
|
|
@@ -633,10 +632,7 @@ declare namespace gapi.client {
|
|
|
633
632
|
startIcon?: GoogleAppsCardV1Icon;
|
|
634
633
|
/** Optional. Vertical alignment of the start icon. If not set, the icon will be vertically centered. [Google Chat apps](https://developers.google.com/workspace/chat): */
|
|
635
634
|
startIconVerticalAlignment?:
|
|
636
|
-
| '
|
|
637
|
-
| 'TOP'
|
|
638
|
-
| 'MIDDLE'
|
|
639
|
-
| 'BOTTOM';
|
|
635
|
+
'VERTICAL_ALIGNMENT_UNSPECIFIED' | 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
640
636
|
/** A switch widget that a user can click to change its state and trigger an action. */
|
|
641
637
|
switchControl?: GoogleAppsCardV1SwitchControl;
|
|
642
638
|
/** Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). */
|
|
@@ -834,11 +830,7 @@ declare namespace gapi.client {
|
|
|
834
830
|
platformDataSource?: GoogleAppsCardV1PlatformDataSource;
|
|
835
831
|
/** The type of items that are displayed to users in a `SelectionInput` widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu. */
|
|
836
832
|
type?:
|
|
837
|
-
| '
|
|
838
|
-
| 'RADIO_BUTTON'
|
|
839
|
-
| 'SWITCH'
|
|
840
|
-
| 'DROPDOWN'
|
|
841
|
-
| 'MULTI_SELECT';
|
|
833
|
+
'CHECK_BOX' | 'RADIO_BUTTON' | 'SWITCH' | 'DROPDOWN' | 'MULTI_SELECT';
|
|
842
834
|
}
|
|
843
835
|
interface GoogleAppsCardV1SelectionItem {
|
|
844
836
|
/** For multiselect menus, a text description or label that's displayed below the item's `text` field. */
|
|
@@ -944,10 +936,7 @@ declare namespace gapi.client {
|
|
|
944
936
|
grid?: GoogleAppsCardV1Grid;
|
|
945
937
|
/** Specifies whether widgets align to the left, right, or center of a column. */
|
|
946
938
|
horizontalAlignment?:
|
|
947
|
-
| '
|
|
948
|
-
| 'START'
|
|
949
|
-
| 'CENTER'
|
|
950
|
-
| 'END';
|
|
939
|
+
'HORIZONTAL_ALIGNMENT_UNSPECIFIED' | 'START' | 'CENTER' | 'END';
|
|
951
940
|
/** A unique ID assigned to the widget that's used to identify the widget to be mutated. The ID has a character limit of 64 characters and should be in the format of `[a-zA-Z0-9-]+`. Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps. */
|
|
952
941
|
id?: string;
|
|
953
942
|
/** Displays an image. For example, the following JSON creates an image with alternative text: ``` "image": { "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", "altText": "Chat app avatar" } ``` */
|
|
@@ -1184,10 +1173,7 @@ declare namespace gapi.client {
|
|
|
1184
1173
|
interface MeetSpaceLinkData {
|
|
1185
1174
|
/** Optional. Output only. If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. */
|
|
1186
1175
|
huddleStatus?:
|
|
1187
|
-
| '
|
|
1188
|
-
| 'STARTED'
|
|
1189
|
-
| 'ENDED'
|
|
1190
|
-
| 'MISSED';
|
|
1176
|
+
'HUDDLE_STATUS_UNSPECIFIED' | 'STARTED' | 'ENDED' | 'MISSED';
|
|
1191
1177
|
/** Meeting code of the linked Meet space. */
|
|
1192
1178
|
meetingCode?: string;
|
|
1193
1179
|
/** Indicates the type of the Meet space. */
|
|
@@ -1218,10 +1204,7 @@ declare namespace gapi.client {
|
|
|
1218
1204
|
| 'ROLE_ASSISTANT_MANAGER';
|
|
1219
1205
|
/** Output only. State of the membership. */
|
|
1220
1206
|
state?:
|
|
1221
|
-
| '
|
|
1222
|
-
| 'JOINED'
|
|
1223
|
-
| 'INVITED'
|
|
1224
|
-
| 'NOT_A_MEMBER';
|
|
1207
|
+
'MEMBERSHIP_STATE_UNSPECIFIED' | 'JOINED' | 'INVITED' | 'NOT_A_MEMBER';
|
|
1225
1208
|
}
|
|
1226
1209
|
interface MembershipBatchCreatedEventData {
|
|
1227
1210
|
/** A list of new memberships. */
|
|
@@ -1387,6 +1370,10 @@ declare namespace gapi.client {
|
|
|
1387
1370
|
/** The updated section. */
|
|
1388
1371
|
section?: GoogleChatV1Section;
|
|
1389
1372
|
}
|
|
1373
|
+
interface Principal {
|
|
1374
|
+
/** An audience. */
|
|
1375
|
+
audience?: Audience;
|
|
1376
|
+
}
|
|
1390
1377
|
interface QuotedMessageMetadata {
|
|
1391
1378
|
/** Output only. Metadata about the source space of the quoted message. Populated only for FORWARD quote type. */
|
|
1392
1379
|
forwardedMetadata?: ForwardedMetadata;
|
|
@@ -1539,9 +1526,7 @@ declare namespace gapi.client {
|
|
|
1539
1526
|
spaceDetails?: SpaceDetails;
|
|
1540
1527
|
/** Optional. The message history state for messages and threads in this space. */
|
|
1541
1528
|
spaceHistoryState?:
|
|
1542
|
-
| '
|
|
1543
|
-
| 'HISTORY_OFF'
|
|
1544
|
-
| 'HISTORY_ON';
|
|
1529
|
+
'HISTORY_STATE_UNSPECIFIED' | 'HISTORY_OFF' | 'HISTORY_ON';
|
|
1545
1530
|
/** Output only. The threading state in the Chat space. */
|
|
1546
1531
|
spaceThreadingState?:
|
|
1547
1532
|
| 'SPACE_THREADING_STATE_UNSPECIFIED'
|
|
@@ -1550,10 +1535,7 @@ declare namespace gapi.client {
|
|
|
1550
1535
|
| 'UNTHREADED_MESSAGES';
|
|
1551
1536
|
/** Optional. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. */
|
|
1552
1537
|
spaceType?:
|
|
1553
|
-
| '
|
|
1554
|
-
| 'SPACE'
|
|
1555
|
-
| 'GROUP_CHAT'
|
|
1556
|
-
| 'DIRECT_MESSAGE';
|
|
1538
|
+
'SPACE_TYPE_UNSPECIFIED' | 'SPACE' | 'GROUP_CHAT' | 'DIRECT_MESSAGE';
|
|
1557
1539
|
/** Output only. The URI for a user to access the space. */
|
|
1558
1540
|
spaceUri?: string;
|
|
1559
1541
|
/** Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space. */
|
|
@@ -3011,7 +2993,7 @@ declare namespace gapi.client {
|
|
|
3011
2993
|
prettyPrint?: boolean;
|
|
3012
2994
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3013
2995
|
quotaUser?: string;
|
|
3014
|
-
/** Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` */
|
|
2996
|
+
/** Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` */
|
|
3015
2997
|
updateMask?: string;
|
|
3016
2998
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3017
2999
|
upload_protocol?: string;
|
|
@@ -3044,7 +3026,7 @@ declare namespace gapi.client {
|
|
|
3044
3026
|
prettyPrint?: boolean;
|
|
3045
3027
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3046
3028
|
quotaUser?: string;
|
|
3047
|
-
/** Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` */
|
|
3029
|
+
/** Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages` */
|
|
3048
3030
|
updateMask?: string;
|
|
3049
3031
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3050
3032
|
upload_protocol?: string;
|