@google-apps/chat 0.9.0 → 0.11.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/CHANGELOG.md +15 -0
- package/README.md +2 -2
- package/build/protos/google/chat/v1/attachment.proto +15 -13
- package/build/protos/google/chat/v1/chat_service.proto +208 -107
- package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
- package/build/protos/google/chat/v1/membership.proto +52 -32
- package/build/protos/google/chat/v1/message.proto +74 -64
- package/build/protos/google/chat/v1/reaction.proto +16 -12
- package/build/protos/google/chat/v1/space.proto +237 -90
- package/build/protos/google/chat/v1/space_event.proto +6 -4
- package/build/protos/protos.d.ts +406 -0
- package/build/protos/protos.js +1192 -0
- package/build/protos/protos.json +382 -51
- package/build/src/v1/chat_service_client.d.ts +378 -249
- package/build/src/v1/chat_service_client.js +42 -48
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -95,22 +95,23 @@ message Space {
|
|
|
95
95
|
// discussion topic, functional purpose, or participants.
|
|
96
96
|
//
|
|
97
97
|
// Supports up to 150 characters.
|
|
98
|
-
string description = 1;
|
|
98
|
+
string description = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
99
99
|
|
|
100
100
|
// Optional. The space's rules, expectations, and etiquette.
|
|
101
101
|
//
|
|
102
102
|
// Supports up to 5,000 characters.
|
|
103
|
-
string guidelines = 2;
|
|
103
|
+
string guidelines = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Represents the count of memberships of a space, grouped into categories.
|
|
107
107
|
message MembershipCount {
|
|
108
|
-
// Count of human users that have directly joined the space,
|
|
109
|
-
// users joined by having membership in a joined group.
|
|
110
|
-
int32 joined_direct_human_user_count = 4
|
|
108
|
+
// Output only. Count of human users that have directly joined the space,
|
|
109
|
+
// not counting users joined by having membership in a joined group.
|
|
110
|
+
int32 joined_direct_human_user_count = 4
|
|
111
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
111
112
|
|
|
112
|
-
// Count of all groups that have directly joined the space.
|
|
113
|
-
int32 joined_group_count = 5;
|
|
113
|
+
// Output only. Count of all groups that have directly joined the space.
|
|
114
|
+
int32 joined_group_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
// Represents the [access
|
|
@@ -121,12 +122,19 @@ message Space {
|
|
|
121
122
|
// Access state is unknown or not supported in this API.
|
|
122
123
|
ACCESS_STATE_UNSPECIFIED = 0;
|
|
123
124
|
|
|
124
|
-
//
|
|
125
|
+
// Only users or Google Groups that have been individually added or
|
|
126
|
+
// invited by other users or Google Workspace administrators can discover
|
|
127
|
+
// and access the space.
|
|
125
128
|
PRIVATE = 1;
|
|
126
129
|
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
+
// A space manager has granted a target audience access to
|
|
131
|
+
// the space. Users or Google Groups that have been individually added or
|
|
132
|
+
// invited to the space can also discover and access the space. To learn
|
|
133
|
+
// more, see [Make a space discoverable to specific
|
|
134
|
+
// users](https://developers.google.com/workspace/chat/space-target-audience).
|
|
135
|
+
//
|
|
136
|
+
// Creating discoverable spaces requires [user
|
|
137
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
130
138
|
DISCOVERABLE = 2;
|
|
131
139
|
}
|
|
132
140
|
|
|
@@ -135,29 +143,122 @@ message Space {
|
|
|
135
143
|
|
|
136
144
|
// Optional. The resource name of the [target
|
|
137
145
|
// audience](https://support.google.com/a/answer/9934697) who can discover
|
|
138
|
-
// the space, join the space, and preview the messages in the space.
|
|
139
|
-
//
|
|
146
|
+
// the space, join the space, and preview the messages in the space. If
|
|
147
|
+
// unset, only users or Google Groups who have been individually invited or
|
|
148
|
+
// added to the space can access it. For details, see [Make a space
|
|
149
|
+
// discoverable to a target
|
|
140
150
|
// audience](https://developers.google.com/workspace/chat/space-target-audience).
|
|
141
151
|
//
|
|
142
152
|
// Format: `audiences/{audience}`
|
|
143
153
|
//
|
|
144
154
|
// To use the default target audience for the Google Workspace organization,
|
|
145
155
|
// set to `audiences/default`.
|
|
156
|
+
//
|
|
157
|
+
// Reading the target audience supports:
|
|
158
|
+
//
|
|
159
|
+
// - [User
|
|
160
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
161
|
+
//
|
|
162
|
+
// - [App
|
|
163
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
164
|
+
// with [administrator
|
|
165
|
+
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
166
|
+
// with the `chat.app.spaces` scope in [Developer
|
|
167
|
+
// Preview](https://developers.google.com/workspace/preview).
|
|
168
|
+
//
|
|
169
|
+
// This field is not populated when using the `chat.bot` scope with [app
|
|
170
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
171
|
+
//
|
|
172
|
+
// Setting the target audience requires [user
|
|
173
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
146
174
|
string audience = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
147
175
|
}
|
|
148
176
|
|
|
149
|
-
//
|
|
177
|
+
// Predefined permission settings that you can only specify when creating a
|
|
178
|
+
// named space. More settings might be added in the future.
|
|
179
|
+
// For details about permission settings for named spaces, see [Learn about
|
|
180
|
+
// spaces](https://support.google.com/chat/answer/7659784).
|
|
181
|
+
enum PredefinedPermissionSettings {
|
|
182
|
+
// Unspecified. Don't use.
|
|
183
|
+
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0;
|
|
184
|
+
|
|
185
|
+
// Setting to make the space a collaboration space where all members can
|
|
186
|
+
// post messages.
|
|
187
|
+
COLLABORATION_SPACE = 1;
|
|
188
|
+
|
|
189
|
+
// Setting to make the space an announcement space where only space managers
|
|
190
|
+
// can post messages.
|
|
191
|
+
ANNOUNCEMENT_SPACE = 2;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// [Permission settings](https://support.google.com/chat/answer/13340792)
|
|
195
|
+
// that you can specify when updating an existing named space.
|
|
196
|
+
//
|
|
197
|
+
// To set permission settings when creating a space, specify the
|
|
198
|
+
// `PredefinedPermissionSettings` field in your request.
|
|
199
|
+
message PermissionSettings {
|
|
200
|
+
// Optional. Setting for managing members and groups in a space.
|
|
201
|
+
optional PermissionSetting manage_members_and_groups = 1
|
|
202
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
203
|
+
|
|
204
|
+
// Optional. Setting for updating space name, avatar, description and
|
|
205
|
+
// guidelines.
|
|
206
|
+
optional PermissionSetting modify_space_details = 2
|
|
207
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
208
|
+
|
|
209
|
+
// Optional. Setting for toggling space history on and off.
|
|
210
|
+
optional PermissionSetting toggle_history = 3
|
|
211
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
212
|
+
|
|
213
|
+
// Optional. Setting for using @all in a space.
|
|
214
|
+
optional PermissionSetting use_at_mention_all = 4
|
|
215
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
216
|
+
|
|
217
|
+
// Optional. Setting for managing apps in a space.
|
|
218
|
+
optional PermissionSetting manage_apps = 5
|
|
219
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
220
|
+
|
|
221
|
+
// Optional. Setting for managing webhooks in a space.
|
|
222
|
+
optional PermissionSetting manage_webhooks = 6
|
|
223
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
224
|
+
|
|
225
|
+
// Output only. Setting for posting messages in a space.
|
|
226
|
+
optional PermissionSetting post_messages = 7
|
|
227
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
228
|
+
|
|
229
|
+
// Optional. Setting for replying to messages in a space.
|
|
230
|
+
optional PermissionSetting reply_messages = 8
|
|
231
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Represents a space permission setting.
|
|
235
|
+
message PermissionSetting {
|
|
236
|
+
// Optional. Whether spaces managers have this permission.
|
|
237
|
+
bool managers_allowed = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
238
|
+
|
|
239
|
+
// Optional. Whether non-manager members have this permission.
|
|
240
|
+
bool members_allowed = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Identifier. Resource name of the space.
|
|
150
244
|
//
|
|
151
245
|
// Format: `spaces/{space}`
|
|
152
|
-
|
|
246
|
+
//
|
|
247
|
+
// Where `{space}` represents the system-assigned ID for the space. You can
|
|
248
|
+
// obtain the space ID by calling the
|
|
249
|
+
// [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list)
|
|
250
|
+
// method or from the space URL. For example, if the space URL
|
|
251
|
+
// is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID
|
|
252
|
+
// is `AAAAAAAAA`.
|
|
253
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
153
254
|
|
|
154
255
|
// Output only. Deprecated: Use `space_type` instead.
|
|
155
256
|
// The type of a space.
|
|
156
257
|
Type type = 2 [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
|
|
157
258
|
|
|
158
|
-
// The type of space. Required when creating a space or updating the
|
|
159
|
-
// type of a space. Output only for other usage.
|
|
160
|
-
SpaceType space_type = 10;
|
|
259
|
+
// Optional. The type of space. Required when creating a space or updating the
|
|
260
|
+
// space type of a space. Output only for other usage.
|
|
261
|
+
SpaceType space_type = 10 [(google.api.field_behavior) = OPTIONAL];
|
|
161
262
|
|
|
162
263
|
// Optional. Whether the space is a DM between a Chat app and a single
|
|
163
264
|
// human.
|
|
@@ -168,51 +269,49 @@ message Space {
|
|
|
168
269
|
bool threaded = 5
|
|
169
270
|
[deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
|
|
170
271
|
|
|
171
|
-
// The space's display name. Required when [creating a
|
|
172
|
-
// space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
|
|
173
|
-
// If you receive the error message
|
|
174
|
-
// updating the `displayName`, try a
|
|
175
|
-
// existing space within the Google Workspace
|
|
176
|
-
// this display name.
|
|
272
|
+
// Optional. The space's display name. Required when [creating a
|
|
273
|
+
// space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create)
|
|
274
|
+
// with a `spaceType` of `SPACE`. If you receive the error message
|
|
275
|
+
// `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a
|
|
276
|
+
// different `displayName`. An existing space within the Google Workspace
|
|
277
|
+
// organization might already use this display name.
|
|
177
278
|
//
|
|
178
279
|
// For direct messages, this field might be empty.
|
|
179
280
|
//
|
|
180
281
|
// Supports up to 128 characters.
|
|
181
|
-
string display_name = 3;
|
|
282
|
+
string display_name = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
182
283
|
|
|
183
|
-
// Immutable. Whether this space permits any Google Chat user as a
|
|
184
|
-
// Input when creating a space in a Google Workspace organization.
|
|
185
|
-
// field when creating spaces in the following conditions:
|
|
284
|
+
// Optional. Immutable. Whether this space permits any Google Chat user as a
|
|
285
|
+
// member. Input when creating a space in a Google Workspace organization.
|
|
286
|
+
// Omit this field when creating spaces in the following conditions:
|
|
186
287
|
//
|
|
187
288
|
// * The authenticated user uses a consumer account (unmanaged user
|
|
188
289
|
// account). By default, a space created by a consumer account permits any
|
|
189
290
|
// Google Chat user.
|
|
190
291
|
//
|
|
191
|
-
// * The space is used to [import data to Google Chat]
|
|
192
|
-
// (https://developers.google.com/chat/api/guides/import-data-overview)
|
|
193
|
-
// because import mode spaces must only permit members from the same
|
|
194
|
-
// Google Workspace organization. However, as part of the [Google
|
|
195
|
-
// Workspace Developer Preview
|
|
196
|
-
// Program](https://developers.google.com/workspace/preview), import mode
|
|
197
|
-
// spaces can permit any Google Chat user so this field can then be set
|
|
198
|
-
// for import mode spaces.
|
|
199
|
-
//
|
|
200
292
|
// For existing spaces, this field is output only.
|
|
201
|
-
bool external_user_allowed = 8 [
|
|
293
|
+
bool external_user_allowed = 8 [
|
|
294
|
+
(google.api.field_behavior) = IMMUTABLE,
|
|
295
|
+
(google.api.field_behavior) = OPTIONAL
|
|
296
|
+
];
|
|
202
297
|
|
|
203
298
|
// Output only. The threading state in the Chat space.
|
|
204
299
|
SpaceThreadingState space_threading_state = 9
|
|
205
300
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
206
301
|
|
|
207
|
-
// Details about the space including description and rules.
|
|
208
|
-
SpaceDetails space_details = 11;
|
|
302
|
+
// Optional. Details about the space including description and rules.
|
|
303
|
+
SpaceDetails space_details = 11 [(google.api.field_behavior) = OPTIONAL];
|
|
209
304
|
|
|
210
|
-
// The message history state for messages and threads in this space.
|
|
211
|
-
HistoryState space_history_state = 13
|
|
305
|
+
// Optional. The message history state for messages and threads in this space.
|
|
306
|
+
HistoryState space_history_state = 13
|
|
307
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
212
308
|
|
|
213
309
|
// Optional. Whether this space is created in `Import Mode` as part of a data
|
|
214
310
|
// migration into Google Workspace. While spaces are being imported, they
|
|
215
311
|
// aren't visible to users until the import is complete.
|
|
312
|
+
//
|
|
313
|
+
// Creating a space in `Import Mode`requires [user
|
|
314
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
216
315
|
bool import_mode = 16 [(google.api.field_behavior) = OPTIONAL];
|
|
217
316
|
|
|
218
317
|
// Optional. Immutable. For spaces created in Chat, the time the space was
|
|
@@ -253,17 +352,52 @@ message Space {
|
|
|
253
352
|
|
|
254
353
|
// Output only. The URI for a user to access the space.
|
|
255
354
|
string space_uri = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
355
|
+
|
|
356
|
+
// Represents the [permission settings]
|
|
357
|
+
// (https://support.google.com/chat/answer/13340792) of a space. Only
|
|
358
|
+
// populated when the `space_type` is `SPACE`.
|
|
359
|
+
//
|
|
360
|
+
// Requires [user
|
|
361
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
362
|
+
oneof space_permission_settings {
|
|
363
|
+
// Optional. Input only. Predefined space permission settings, input only
|
|
364
|
+
// when creating a space. If the field is not set, a collaboration space is
|
|
365
|
+
// created. After you create the space, settings are populated in the
|
|
366
|
+
// `PermissionSettings` field.
|
|
367
|
+
PredefinedPermissionSettings predefined_permission_settings = 26 [
|
|
368
|
+
(google.api.field_behavior) = INPUT_ONLY,
|
|
369
|
+
(google.api.field_behavior) = OPTIONAL
|
|
370
|
+
];
|
|
371
|
+
|
|
372
|
+
// Optional. Space permission settings for existing spaces. Input for
|
|
373
|
+
// updating exact space permission settings, where existing permission
|
|
374
|
+
// settings are replaced. Output lists current permission settings.
|
|
375
|
+
PermissionSettings permission_settings = 27
|
|
376
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Output only. The time when the space will be automatically deleted by the
|
|
380
|
+
// system if it remains in import mode.
|
|
381
|
+
//
|
|
382
|
+
// Each space created in import mode must exit this mode before this expire
|
|
383
|
+
// time using `spaces.completeImport`.
|
|
384
|
+
//
|
|
385
|
+
// This field is only populated for spaces that were created with import mode.
|
|
386
|
+
google.protobuf.Timestamp import_mode_expire_time = 28
|
|
387
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
256
388
|
}
|
|
257
389
|
|
|
258
|
-
// A request to create a named space.
|
|
390
|
+
// A request to create a named space with no members.
|
|
259
391
|
message CreateSpaceRequest {
|
|
260
392
|
// Required. The `displayName` and `spaceType` fields must be populated. Only
|
|
261
|
-
// `SpaceType.SPACE`
|
|
393
|
+
// `SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported.
|
|
394
|
+
// `SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.
|
|
262
395
|
//
|
|
263
|
-
// If you receive the error message `ALREADY_EXISTS
|
|
396
|
+
// If you receive the error message `ALREADY_EXISTS`,
|
|
264
397
|
// try a different `displayName`. An existing space within the Google
|
|
265
398
|
// Workspace organization might already use this display name.
|
|
266
399
|
//
|
|
400
|
+
//
|
|
267
401
|
// The space `name` is assigned on the server so anything specified in this
|
|
268
402
|
// field will be ignored.
|
|
269
403
|
Space space = 1 [(google.api.field_behavior) = REQUIRED];
|
|
@@ -322,6 +456,8 @@ message ListSpacesRequest {
|
|
|
322
456
|
// The response for a list spaces request.
|
|
323
457
|
message ListSpacesResponse {
|
|
324
458
|
// List of spaces in the requested (or first) page.
|
|
459
|
+
// Note: The `permissionSettings` field is not returned in the Space
|
|
460
|
+
// object for list requests.
|
|
325
461
|
repeated Space spaces = 1;
|
|
326
462
|
|
|
327
463
|
// You can send a token as `pageToken` to retrieve the next page of
|
|
@@ -339,7 +475,7 @@ message GetSpaceRequest {
|
|
|
339
475
|
(google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
|
|
340
476
|
];
|
|
341
477
|
|
|
342
|
-
// When `true`, the method runs using the user's Google Workspace
|
|
478
|
+
// Optional. When `true`, the method runs using the user's Google Workspace
|
|
343
479
|
// administrator privileges.
|
|
344
480
|
//
|
|
345
481
|
// The calling user must be a Google Workspace administrator with the
|
|
@@ -348,7 +484,7 @@ message GetSpaceRequest {
|
|
|
348
484
|
//
|
|
349
485
|
// Requires the `chat.admin.spaces` or `chat.admin.spaces.readonly` [OAuth 2.0
|
|
350
486
|
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
|
|
351
|
-
bool use_admin_access = 2;
|
|
487
|
+
bool use_admin_access = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
352
488
|
}
|
|
353
489
|
|
|
354
490
|
// A request to get direct message space based on the user resource.
|
|
@@ -379,57 +515,68 @@ message UpdateSpaceRequest {
|
|
|
379
515
|
// Required. The updated field paths, comma separated if there are
|
|
380
516
|
// multiple.
|
|
381
517
|
//
|
|
382
|
-
//
|
|
518
|
+
// You can update the following fields for a space:
|
|
383
519
|
//
|
|
384
|
-
//
|
|
385
|
-
//
|
|
386
|
-
// `GROUP_CHAT` space type to `SPACE`. Trying to update the display name of a
|
|
387
|
-
// `GROUP_CHAT` or a `DIRECT_MESSAGE` space results in an invalid argument
|
|
388
|
-
// error. If you receive the error message `ALREADY_EXISTS` when updating the
|
|
389
|
-
// `displayName`, try a different `displayName`. An existing space within the
|
|
390
|
-
// Google Workspace organization might already use this display name.)
|
|
520
|
+
// `space_details`: Updates the space's description. Supports up to 150
|
|
521
|
+
// characters.
|
|
391
522
|
//
|
|
392
|
-
//
|
|
523
|
+
// `display_name`: Only supports updating the display name for spaces where
|
|
524
|
+
// `spaceType` field is `SPACE`.
|
|
525
|
+
// If you receive the error message `ALREADY_EXISTS`, try a different
|
|
526
|
+
// value. An existing space within the
|
|
527
|
+
// Google Workspace organization might already use this display name.
|
|
528
|
+
//
|
|
529
|
+
// `space_type`: Only supports changing a `GROUP_CHAT` space type to
|
|
393
530
|
// `SPACE`. Include `display_name` together
|
|
394
531
|
// with `space_type` in the update mask and ensure that the specified space
|
|
395
532
|
// has a non-empty display name and the `SPACE` space type. Including the
|
|
396
533
|
// `space_type` mask and the `SPACE` type in the specified space when updating
|
|
397
534
|
// the display name is optional if the existing space already has the `SPACE`
|
|
398
535
|
// type. Trying to update the space type in other ways results in an invalid
|
|
399
|
-
// argument error
|
|
400
|
-
// `space_type` is not supported with
|
|
401
|
-
//
|
|
402
|
-
// - `space_details`
|
|
536
|
+
// argument error.
|
|
537
|
+
// `space_type` is not supported with `useAdminAccess`.
|
|
403
538
|
//
|
|
404
|
-
//
|
|
405
|
-
//
|
|
406
|
-
//
|
|
407
|
-
//
|
|
408
|
-
//
|
|
409
|
-
// `space_history_state` is not supported with
|
|
539
|
+
// `space_history_state`: Updates [space history
|
|
540
|
+
// settings](https://support.google.com/chat/answer/7664687) by turning
|
|
541
|
+
// history on or off for the space. Only supported if history settings are
|
|
542
|
+
// enabled for the Google Workspace organization. To update the
|
|
543
|
+
// space history state, you must omit all other field masks in your request.
|
|
544
|
+
// `space_history_state` is not supported with `useAdminAccess`.
|
|
410
545
|
//
|
|
411
|
-
//
|
|
546
|
+
// `access_settings.audience`: Updates the [access
|
|
412
547
|
// setting](https://support.google.com/chat/answer/11971020) of who can
|
|
413
|
-
// discover the space, join the space, and preview the messages in space
|
|
414
|
-
//
|
|
415
|
-
//
|
|
416
|
-
//
|
|
417
|
-
//
|
|
418
|
-
//
|
|
419
|
-
//
|
|
420
|
-
//
|
|
421
|
-
//
|
|
422
|
-
//
|
|
423
|
-
// `
|
|
424
|
-
//
|
|
425
|
-
// `permission_settings
|
|
426
|
-
//
|
|
427
|
-
//
|
|
428
|
-
//
|
|
429
|
-
//
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
//
|
|
548
|
+
// discover the space, join the space, and preview the messages in named space
|
|
549
|
+
// where `spaceType` field is `SPACE`. If the existing space has a
|
|
550
|
+
// target audience, you can remove the audience and restrict space access by
|
|
551
|
+
// omitting a value for this field mask. To update access settings for a
|
|
552
|
+
// space, the authenticating user must be a space manager and omit all other
|
|
553
|
+
// field masks in your request. You can't update this field if the space is in
|
|
554
|
+
// [import
|
|
555
|
+
// mode](https://developers.google.com/workspace/chat/import-data-overview).
|
|
556
|
+
// To learn more, see [Make a space discoverable to specific
|
|
557
|
+
// users](https://developers.google.com/workspace/chat/space-target-audience).
|
|
558
|
+
// `access_settings.audience` is not supported with `useAdminAccess`.
|
|
559
|
+
//
|
|
560
|
+
// `permission_settings`: Supports changing the
|
|
561
|
+
// [permission settings](https://support.google.com/chat/answer/13340792)
|
|
562
|
+
// of a space.
|
|
563
|
+
// When updating permission settings, you can only specify
|
|
564
|
+
// `permissionSettings` field masks; you cannot update other field masks
|
|
565
|
+
// at the same time. `permissionSettings` is not supported with
|
|
566
|
+
// `useAdminAccess`.
|
|
567
|
+
// The supported field masks include:
|
|
568
|
+
//
|
|
569
|
+
// - `permission_settings.manageMembersAndGroups`
|
|
570
|
+
// - `permission_settings.modifySpaceDetails`
|
|
571
|
+
// - `permission_settings.toggleHistory`
|
|
572
|
+
// - `permission_settings.useAtMentionAll`
|
|
573
|
+
// - `permission_settings.manageApps`
|
|
574
|
+
// - `permission_settings.manageWebhooks`
|
|
575
|
+
// - `permission_settings.replyMessages`
|
|
576
|
+
google.protobuf.FieldMask update_mask = 2
|
|
577
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
578
|
+
|
|
579
|
+
// Optional. When `true`, the method runs using the user's Google Workspace
|
|
433
580
|
// administrator privileges.
|
|
434
581
|
//
|
|
435
582
|
// The calling user must be a Google Workspace administrator with the
|
|
@@ -441,7 +588,7 @@ message UpdateSpaceRequest {
|
|
|
441
588
|
//
|
|
442
589
|
// Some `FieldMask` values are not supported using admin access. For details,
|
|
443
590
|
// see the description of `update_mask`.
|
|
444
|
-
bool use_admin_access = 3;
|
|
591
|
+
bool use_admin_access = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
445
592
|
}
|
|
446
593
|
|
|
447
594
|
// Request to search for a list of spaces based on a query.
|
|
@@ -599,7 +746,7 @@ message DeleteSpaceRequest {
|
|
|
599
746
|
(google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
|
|
600
747
|
];
|
|
601
748
|
|
|
602
|
-
// When `true`, the method runs using the user's Google Workspace
|
|
749
|
+
// Optional. When `true`, the method runs using the user's Google Workspace
|
|
603
750
|
// administrator privileges.
|
|
604
751
|
//
|
|
605
752
|
// The calling user must be a Google Workspace administrator with the
|
|
@@ -608,7 +755,7 @@ message DeleteSpaceRequest {
|
|
|
608
755
|
//
|
|
609
756
|
// Requires the `chat.admin.delete` [OAuth 2.0
|
|
610
757
|
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
|
|
611
|
-
bool use_admin_access = 2;
|
|
758
|
+
bool use_admin_access = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
612
759
|
}
|
|
613
760
|
|
|
614
761
|
// Request message for completing the import process for a space.
|
|
@@ -216,15 +216,15 @@ message ListSpaceEventsRequest {
|
|
|
216
216
|
// return fewer than this value.
|
|
217
217
|
//
|
|
218
218
|
// Negative values return an `INVALID_ARGUMENT` error.
|
|
219
|
-
int32 page_size = 5;
|
|
219
|
+
int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
220
220
|
|
|
221
|
-
// A page token, received from a previous list space events call.
|
|
222
|
-
// to retrieve the subsequent page.
|
|
221
|
+
// Optional. A page token, received from a previous list space events call.
|
|
222
|
+
// Provide this to retrieve the subsequent page.
|
|
223
223
|
//
|
|
224
224
|
// When paginating, all other parameters provided to list space events must
|
|
225
225
|
// match the call that provided the page token. Passing different values to
|
|
226
226
|
// the other parameters might lead to unexpected results.
|
|
227
|
-
string page_token = 6;
|
|
227
|
+
string page_token = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
228
228
|
|
|
229
229
|
// Required. A query filter.
|
|
230
230
|
//
|
|
@@ -284,6 +284,8 @@ message ListSpaceEventsRequest {
|
|
|
284
284
|
// Response message for listing space events.
|
|
285
285
|
message ListSpaceEventsResponse {
|
|
286
286
|
// Results are returned in chronological order (oldest event first).
|
|
287
|
+
// Note: The `permissionSettings` field is not returned in the Space
|
|
288
|
+
// object for list requests.
|
|
287
289
|
repeated SpaceEvent space_events = 1;
|
|
288
290
|
|
|
289
291
|
// Continuation token used to fetch more events.
|