@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.
- package/CHANGELOG.md +16 -0
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +2 -1
- package/build/protos/google/chat/v1/annotation.proto +3 -1
- package/build/protos/google/chat/v1/attachment.proto +4 -3
- package/build/protos/google/chat/v1/chat_service.proto +60 -20
- package/build/protos/google/chat/v1/contextual_addon.proto +2 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
- package/build/protos/google/chat/v1/group.proto +2 -1
- package/build/protos/google/chat/v1/history_state.proto +2 -1
- package/build/protos/google/chat/v1/matched_url.proto +2 -1
- package/build/protos/google/chat/v1/membership.proto +13 -7
- package/build/protos/google/chat/v1/message.proto +2 -1
- package/build/protos/google/chat/v1/reaction.proto +4 -3
- package/build/protos/google/chat/v1/slash_command.proto +2 -1
- package/build/protos/google/chat/v1/space.proto +70 -13
- package/build/protos/google/chat/v1/space_read_state.proto +2 -1
- package/build/protos/google/chat/v1/space_setup.proto +16 -11
- package/build/protos/google/chat/v1/thread_read_state.proto +2 -1
- package/build/protos/google/chat/v1/user.proto +2 -1
- package/build/protos/google/chat/v1/widgets.proto +2 -1
- package/build/protos/protos.d.ts +141 -16
- package/build/protos/protos.js +367 -49
- package/build/protos/protos.json +68 -23
- package/build/src/v1/chat_service_client.d.ts +118 -46
- package/build/src/v1/chat_service_client.js +21 -4
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.5.0...chat-v0.6.0) (2024-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [chat] Add doc for Discoverable Space support for GA launch ([#5525](https://github.com/googleapis/google-cloud-node/issues/5525)) ([9a80089](https://github.com/googleapis/google-cloud-node/commit/9a80089d974280420e269f24aba563f4adceb4c3))
|
|
9
|
+
|
|
10
|
+
## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.4.0...chat-v0.5.0) (2024-05-21)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* [chat] update Nodejs generator to send API versions in headers for GAPICs ([#5345](https://github.com/googleapis/google-cloud-node/issues/5345)) ([e99879b](https://github.com/googleapis/google-cloud-node/commit/e99879b86eef7eb62f828fe4c3061a2077d714cc))
|
|
16
|
+
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
|
|
17
|
+
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
|
|
18
|
+
|
|
3
19
|
## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.3.0...chat-v0.4.0) (2024-04-23)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -23,6 +23,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
23
23
|
option java_multiple_files = true;
|
|
24
24
|
option java_outer_classname = "ActionStatusProto";
|
|
25
25
|
option java_package = "com.google.chat.v1";
|
|
26
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
26
27
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
27
28
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
28
29
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -16,6 +16,7 @@ syntax = "proto3";
|
|
|
16
16
|
|
|
17
17
|
package google.chat.v1;
|
|
18
18
|
|
|
19
|
+
import "google/api/resource.proto";
|
|
19
20
|
import "google/chat/v1/attachment.proto";
|
|
20
21
|
import "google/chat/v1/user.proto";
|
|
21
22
|
|
|
@@ -24,6 +25,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
24
25
|
option java_multiple_files = true;
|
|
25
26
|
option java_outer_classname = "AnnotationProto";
|
|
26
27
|
option java_package = "com.google.chat.v1";
|
|
28
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
27
29
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
28
30
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
29
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -24,6 +24,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "AttachmentProto";
|
|
26
26
|
option java_package = "com.google.chat.v1";
|
|
27
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
27
28
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
28
29
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
29
30
|
|
|
@@ -47,7 +48,7 @@ message Attachment {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
// Resource name of the attachment, in the form
|
|
50
|
-
// `spaces
|
|
51
|
+
// `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
|
51
52
|
string name = 1;
|
|
52
53
|
|
|
53
54
|
// Output only. The original file name for the content, not the full path.
|
|
@@ -102,7 +103,7 @@ message AttachmentDataRef {
|
|
|
102
103
|
// Request to get an attachment.
|
|
103
104
|
message GetAttachmentRequest {
|
|
104
105
|
// Required. Resource name of the attachment, in the form
|
|
105
|
-
// `spaces
|
|
106
|
+
// `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
|
106
107
|
string name = 1 [
|
|
107
108
|
(google.api.field_behavior) = REQUIRED,
|
|
108
109
|
(google.api.resource_reference) = { type: "chat.googleapis.com/Attachment" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -33,6 +33,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
33
33
|
option java_multiple_files = true;
|
|
34
34
|
option java_outer_classname = "ChatServiceProto";
|
|
35
35
|
option java_package = "com.google.chat.v1";
|
|
36
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
36
37
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
37
38
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
38
39
|
|
|
@@ -41,6 +42,11 @@ option ruby_package = "Google::Apps::Chat::V1";
|
|
|
41
42
|
service ChatService {
|
|
42
43
|
option (google.api.default_host) = "chat.googleapis.com";
|
|
43
44
|
option (google.api.oauth_scopes) =
|
|
45
|
+
"https://www.googleapis.com/auth/chat.admin.delete,"
|
|
46
|
+
"https://www.googleapis.com/auth/chat.admin.memberships,"
|
|
47
|
+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly,"
|
|
48
|
+
"https://www.googleapis.com/auth/chat.admin.spaces,"
|
|
49
|
+
"https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
|
|
44
50
|
"https://www.googleapis.com/auth/chat.bot,"
|
|
45
51
|
"https://www.googleapis.com/auth/chat.delete,"
|
|
46
52
|
"https://www.googleapis.com/auth/chat.import,"
|
|
@@ -59,7 +65,8 @@ service ChatService {
|
|
|
59
65
|
"https://www.googleapis.com/auth/chat.users.readstate,"
|
|
60
66
|
"https://www.googleapis.com/auth/chat.users.readstate.readonly";
|
|
61
67
|
|
|
62
|
-
// Creates a message in a Google Chat space.
|
|
68
|
+
// Creates a message in a Google Chat space. The maximum message size,
|
|
69
|
+
// including text and cards, is 32,000 bytes. For an example, see [Send a
|
|
63
70
|
// message](https://developers.google.com/workspace/chat/create-messages).
|
|
64
71
|
//
|
|
65
72
|
// Calling this method requires
|
|
@@ -250,6 +257,10 @@ service ChatService {
|
|
|
250
257
|
//
|
|
251
258
|
// Lists spaces visible to the caller or authenticated user. Group chats
|
|
252
259
|
// and DMs aren't listed until the first message is sent.
|
|
260
|
+
//
|
|
261
|
+
// To list all named spaces by Google Workspace organization, use the
|
|
262
|
+
// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
|
263
|
+
// method using Workspace administrator privileges instead.
|
|
253
264
|
rpc ListSpaces(ListSpacesRequest) returns (ListSpacesResponse) {
|
|
254
265
|
option (google.api.http) = {
|
|
255
266
|
get: "/v1/spaces"
|
|
@@ -300,17 +311,28 @@ service ChatService {
|
|
|
300
311
|
// members](https://developers.google.com/workspace/chat/set-up-spaces).
|
|
301
312
|
//
|
|
302
313
|
// To specify the human members to add, add memberships with the appropriate
|
|
303
|
-
// `member.name
|
|
304
|
-
// `
|
|
305
|
-
//
|
|
306
|
-
// the
|
|
307
|
-
//
|
|
308
|
-
//
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
//
|
|
312
|
-
//
|
|
313
|
-
//
|
|
314
|
+
// `membership.member.name`. To add a human user, use `users/{user}`, where
|
|
315
|
+
// `{user}` can be the email address for the user. For users in the same
|
|
316
|
+
// Workspace organization `{user}` can also be the `id` for the person from
|
|
317
|
+
// the People API, or the `id` for the user in the Directory API. For example,
|
|
318
|
+
// if the People API Person profile ID for `user@example.com` is `123456789`,
|
|
319
|
+
// you can add the user to the space by setting the `membership.member.name`
|
|
320
|
+
// to `users/user@example.com` or `users/123456789`.
|
|
321
|
+
//
|
|
322
|
+
// To specify the Google groups to add, add memberships with the
|
|
323
|
+
// appropriate `membership.group_member.name`. To add or invite a Google
|
|
324
|
+
// group, use `groups/{group}`, where `{group}` is the `id` for the group from
|
|
325
|
+
// the Cloud Identity Groups API. For example, you can use [Cloud Identity
|
|
326
|
+
// Groups lookup
|
|
327
|
+
// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
|
328
|
+
// to retrieve the ID `123456789` for group email `group@example.com`, then
|
|
329
|
+
// you can add the group to the space by setting the
|
|
330
|
+
// `membership.group_member.name` to `groups/123456789`. Group email is not
|
|
331
|
+
// supported, and Google groups can only be added as members in named spaces.
|
|
332
|
+
//
|
|
333
|
+
// For a named space or group chat, if the caller blocks, or is blocked
|
|
334
|
+
// by some members, or doesn't have permission to add some members, then
|
|
335
|
+
// those members aren't added to the created space.
|
|
314
336
|
//
|
|
315
337
|
// To create a direct message (DM) between the calling user and another human
|
|
316
338
|
// user, specify exactly one membership to represent the human user. If
|
|
@@ -423,8 +445,9 @@ service ChatService {
|
|
|
423
445
|
// directly to the specified space. Requires [user
|
|
424
446
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
425
447
|
//
|
|
426
|
-
// To specify the member to add, set the `membership.member.name`
|
|
427
|
-
// `
|
|
448
|
+
// To specify the member to add, set the `membership.member.name` for the
|
|
449
|
+
// human or app member, or set the `membership.group_member.name` for the
|
|
450
|
+
// group member.
|
|
428
451
|
//
|
|
429
452
|
// - To add the calling app to a space or a direct message between two human
|
|
430
453
|
// users, use `users/app`. Unable to add other
|
|
@@ -437,6 +460,15 @@ service ChatService {
|
|
|
437
460
|
// profile ID for `user@example.com` is `123456789`, you can add the user to
|
|
438
461
|
// the space by setting the `membership.member.name` to
|
|
439
462
|
// `users/user@example.com` or `users/123456789`.
|
|
463
|
+
//
|
|
464
|
+
// - To add or invite a Google group in a named space, use
|
|
465
|
+
// `groups/{group}`, where `{group}` is the `id` for the group from the Cloud
|
|
466
|
+
// Identity Groups API. For example, you can use [Cloud Identity Groups lookup
|
|
467
|
+
// API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup)
|
|
468
|
+
// to retrieve the ID `123456789` for group email `group@example.com`, then
|
|
469
|
+
// you can add or invite the group to a named space by setting the
|
|
470
|
+
// `membership.group_member.name` to `groups/123456789`. Group email is not
|
|
471
|
+
// supported, and Google groups can only be added as members in named spaces.
|
|
440
472
|
rpc CreateMembership(CreateMembershipRequest) returns (Membership) {
|
|
441
473
|
option (google.api.http) = {
|
|
442
474
|
post: "/v1/{parent=spaces/*}/members"
|
|
@@ -445,8 +477,11 @@ service ChatService {
|
|
|
445
477
|
option (google.api.method_signature) = "parent,membership";
|
|
446
478
|
}
|
|
447
479
|
|
|
448
|
-
// Updates a membership.
|
|
449
|
-
//
|
|
480
|
+
// Updates a membership. For an example, see [Update a user's membership in
|
|
481
|
+
// a space](https://developers.google.com/workspace/chat/update-members).
|
|
482
|
+
//
|
|
483
|
+
// Requires [user
|
|
484
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
450
485
|
rpc UpdateMembership(UpdateMembershipRequest) returns (Membership) {
|
|
451
486
|
option (google.api.http) = {
|
|
452
487
|
patch: "/v1/{membership.name=spaces/*/members/*}"
|
|
@@ -508,7 +543,9 @@ service ChatService {
|
|
|
508
543
|
}
|
|
509
544
|
|
|
510
545
|
// Returns details about a user's read state within a space, used to identify
|
|
511
|
-
// read and unread messages.
|
|
546
|
+
// read and unread messages. For an example, see [Get details about a user's
|
|
547
|
+
// space read
|
|
548
|
+
// state](https://developers.google.com/workspace/chat/get-space-read-state).
|
|
512
549
|
//
|
|
513
550
|
// Requires [user
|
|
514
551
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
@@ -520,7 +557,8 @@ service ChatService {
|
|
|
520
557
|
}
|
|
521
558
|
|
|
522
559
|
// Updates a user's read state within a space, used to identify read and
|
|
523
|
-
// unread messages.
|
|
560
|
+
// unread messages. For an example, see [Update a user's space read
|
|
561
|
+
// state](https://developers.google.com/workspace/chat/update-space-read-state).
|
|
524
562
|
//
|
|
525
563
|
// Requires [user
|
|
526
564
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
@@ -534,7 +572,9 @@ service ChatService {
|
|
|
534
572
|
}
|
|
535
573
|
|
|
536
574
|
// Returns details about a user's read state within a thread, used to identify
|
|
537
|
-
// read and unread messages.
|
|
575
|
+
// read and unread messages. For an example, see [Get details about a user's
|
|
576
|
+
// thread read
|
|
577
|
+
// state](https://developers.google.com/workspace/chat/get-thread-read-state).
|
|
538
578
|
//
|
|
539
579
|
// Requires [user
|
|
540
580
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -23,6 +23,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
23
23
|
option java_multiple_files = true;
|
|
24
24
|
option java_outer_classname = "ContextualAddOnProto";
|
|
25
25
|
option java_package = "com.google.chat.v1";
|
|
26
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
26
27
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
27
28
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
28
29
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
21
21
|
option java_multiple_files = true;
|
|
22
22
|
option java_outer_classname = "DeletionMetadataProto";
|
|
23
23
|
option java_package = "com.google.chat.v1";
|
|
24
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
24
25
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
25
26
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
21
21
|
option java_multiple_files = true;
|
|
22
22
|
option java_outer_classname = "GroupProto";
|
|
23
23
|
option java_package = "com.google.chat.v1";
|
|
24
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
24
25
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
25
26
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
21
21
|
option java_multiple_files = true;
|
|
22
22
|
option java_outer_classname = "HistoryStateProto";
|
|
23
23
|
option java_package = "com.google.chat.v1";
|
|
24
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
24
25
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
25
26
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -23,6 +23,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
23
23
|
option java_multiple_files = true;
|
|
24
24
|
option java_outer_classname = "MatchedUrlProto";
|
|
25
25
|
option java_package = "com.google.chat.v1";
|
|
26
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
26
27
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
27
28
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
28
29
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -28,6 +28,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
28
28
|
option java_multiple_files = true;
|
|
29
29
|
option java_outer_classname = "MembershipProto";
|
|
30
30
|
option java_package = "com.google.chat.v1";
|
|
31
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
31
32
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
32
33
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
33
34
|
|
|
@@ -105,8 +106,6 @@ message Membership {
|
|
|
105
106
|
User member = 3;
|
|
106
107
|
|
|
107
108
|
// The Google Group the membership corresponds to.
|
|
108
|
-
// Only supports read operations. Other operations, like creating or
|
|
109
|
-
// updating a membership, aren't currently supported.
|
|
110
109
|
Group group_member = 5;
|
|
111
110
|
}
|
|
112
111
|
|
|
@@ -216,16 +215,23 @@ message ListMembershipsRequest {
|
|
|
216
215
|
//
|
|
217
216
|
// To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
|
218
217
|
//
|
|
219
|
-
// To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
|
218
|
+
// To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
|
219
|
+
// Preview: You can also filter for `member.type` using the `!=` operator.
|
|
220
220
|
//
|
|
221
221
|
// To filter by both role and type, use the `AND` operator. To filter by
|
|
222
222
|
// either role or type, use the `OR` operator.
|
|
223
223
|
//
|
|
224
|
+
// Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
|
225
|
+
// when `use_admin_access` is set to true. Other member type filters will be
|
|
226
|
+
// rejected.
|
|
227
|
+
//
|
|
224
228
|
// For example, the following queries are valid:
|
|
225
229
|
//
|
|
226
230
|
// ```
|
|
227
231
|
// role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
|
228
232
|
// member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
|
233
|
+
//
|
|
234
|
+
// member.type != "BOT"
|
|
229
235
|
// ```
|
|
230
236
|
//
|
|
231
237
|
// The following queries are invalid:
|
|
@@ -235,7 +241,6 @@ message ListMembershipsRequest {
|
|
|
235
241
|
// role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
|
236
242
|
// ```
|
|
237
243
|
//
|
|
238
|
-
//
|
|
239
244
|
// Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
|
240
245
|
// error.
|
|
241
246
|
string filter = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
@@ -275,8 +280,9 @@ message ListMembershipsResponse {
|
|
|
275
280
|
message GetMembershipRequest {
|
|
276
281
|
// Required. Resource name of the membership to retrieve.
|
|
277
282
|
//
|
|
278
|
-
// To get the app's own membership
|
|
279
|
-
//
|
|
283
|
+
// To get the app's own membership [by using user
|
|
284
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
|
|
285
|
+
// you can optionally use `spaces/{space}/members/app`.
|
|
280
286
|
//
|
|
281
287
|
// Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
|
|
282
288
|
//
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -37,6 +37,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
37
37
|
option java_multiple_files = true;
|
|
38
38
|
option java_outer_classname = "MessageProto";
|
|
39
39
|
option java_package = "com.google.chat.v1";
|
|
40
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
40
41
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
41
42
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
42
43
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25,6 +25,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
25
25
|
option java_multiple_files = true;
|
|
26
26
|
option java_outer_classname = "ReactionProto";
|
|
27
27
|
option java_package = "com.google.chat.v1";
|
|
28
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
28
29
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
29
30
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
30
31
|
|
|
@@ -61,8 +62,8 @@ message Emoji {
|
|
|
61
62
|
|
|
62
63
|
// Represents a custom emoji.
|
|
63
64
|
message CustomEmoji {
|
|
64
|
-
// Unique key for the custom emoji resource.
|
|
65
|
-
string uid = 1;
|
|
65
|
+
// Output only. Unique key for the custom emoji resource.
|
|
66
|
+
string uid = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
// The number of people who reacted to a message with a specific emoji.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
21
21
|
option java_multiple_files = true;
|
|
22
22
|
option java_outer_classname = "SlashCommandProto";
|
|
23
23
|
option java_package = "com.google.chat.v1";
|
|
24
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
24
25
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
25
26
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -27,6 +27,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
27
27
|
option java_multiple_files = true;
|
|
28
28
|
option java_outer_classname = "SpaceProto";
|
|
29
29
|
option java_package = "com.google.chat.v1";
|
|
30
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
30
31
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
31
32
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
32
33
|
|
|
@@ -102,6 +103,39 @@ message Space {
|
|
|
102
103
|
string guidelines = 2;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
// Represents the [access
|
|
107
|
+
// setting](https://support.google.com/chat/answer/11971020) of the space.
|
|
108
|
+
message AccessSettings {
|
|
109
|
+
// Represents the access state of the space.
|
|
110
|
+
enum AccessState {
|
|
111
|
+
// Access state is unknown or not supported in this API.
|
|
112
|
+
ACCESS_STATE_UNSPECIFIED = 0;
|
|
113
|
+
|
|
114
|
+
// Space is discoverable by added or invited members or groups.
|
|
115
|
+
PRIVATE = 1;
|
|
116
|
+
|
|
117
|
+
// Space is discoverable by the selected [target
|
|
118
|
+
// audience](https://support.google.com/a/answer/9934697), as well as
|
|
119
|
+
// added or invited members or groups.
|
|
120
|
+
DISCOVERABLE = 2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Output only. Indicates the access state of the space.
|
|
124
|
+
AccessState access_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
125
|
+
|
|
126
|
+
// Optional. The resource name of the [target
|
|
127
|
+
// audience](https://support.google.com/a/answer/9934697) who can discover
|
|
128
|
+
// the space, join the space, and preview the messages in the space. For
|
|
129
|
+
// details, see [Make a space discoverable to a target
|
|
130
|
+
// audience](https://developers.google.com/workspace/chat/space-target-audience).
|
|
131
|
+
//
|
|
132
|
+
// Format: `audiences/{audience}`
|
|
133
|
+
//
|
|
134
|
+
// To use the default target audience for the Google Workspace organization,
|
|
135
|
+
// set to `audiences/default`.
|
|
136
|
+
string audience = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
137
|
+
}
|
|
138
|
+
|
|
105
139
|
// Resource name of the space.
|
|
106
140
|
//
|
|
107
141
|
// Format: `spaces/{space}`
|
|
@@ -184,14 +218,21 @@ message Space {
|
|
|
184
218
|
(google.api.field_behavior) = OPTIONAL
|
|
185
219
|
];
|
|
186
220
|
|
|
187
|
-
// Output only.
|
|
188
|
-
//
|
|
189
|
-
//
|
|
221
|
+
// Output only. For direct message (DM) spaces with a Chat app, whether the
|
|
222
|
+
// space was created by a Google Workspace administrator. Administrators can
|
|
223
|
+
// install and set up a direct message with a Chat app on behalf of users in
|
|
224
|
+
// their organization.
|
|
190
225
|
//
|
|
191
|
-
//
|
|
192
|
-
// users and the app. To support admin install, your app must feature direct
|
|
193
|
-
// messaging.
|
|
226
|
+
// To support admin install, your Chat app must feature direct messaging.
|
|
194
227
|
bool admin_installed = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
228
|
+
|
|
229
|
+
// Optional. Specifies the [access
|
|
230
|
+
// setting](https://support.google.com/chat/answer/11971020) of the space.
|
|
231
|
+
// Only populated when the `space_type` is `SPACE`.
|
|
232
|
+
AccessSettings access_settings = 23 [(google.api.field_behavior) = OPTIONAL];
|
|
233
|
+
|
|
234
|
+
// Output only. The URI for a user to access the space.
|
|
235
|
+
string space_uri = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
195
236
|
}
|
|
196
237
|
|
|
197
238
|
// A request to create a named space.
|
|
@@ -270,7 +311,7 @@ message ListSpacesResponse {
|
|
|
270
311
|
|
|
271
312
|
// A request to return a single space.
|
|
272
313
|
message GetSpaceRequest {
|
|
273
|
-
// Required. Resource name of the space, in the form
|
|
314
|
+
// Required. Resource name of the space, in the form `spaces/{space}`.
|
|
274
315
|
//
|
|
275
316
|
// Format: `spaces/{space}`
|
|
276
317
|
string name = 1 [
|
|
@@ -325,6 +366,7 @@ message UpdateSpaceRequest {
|
|
|
325
366
|
// the display name is optional if the existing space already has the `SPACE`
|
|
326
367
|
// type. Trying to update the space type in other ways results in an invalid
|
|
327
368
|
// argument error).
|
|
369
|
+
// `space_type` is not supported with admin access.
|
|
328
370
|
//
|
|
329
371
|
// - `space_details`
|
|
330
372
|
//
|
|
@@ -333,12 +375,27 @@ message UpdateSpaceRequest {
|
|
|
333
375
|
// allows users to change their history
|
|
334
376
|
// setting](https://support.google.com/a/answer/7664184).
|
|
335
377
|
// Warning: mutually exclusive with all other field paths.)
|
|
378
|
+
// `space_history_state` is not supported with admin access.
|
|
379
|
+
//
|
|
380
|
+
// - `access_settings.audience` (Supports changing the [access
|
|
381
|
+
// setting](https://support.google.com/chat/answer/11971020) of who can
|
|
382
|
+
// discover the space, join the space, and preview the messages in space. If
|
|
383
|
+
// no audience is specified in the access setting, the space's access setting
|
|
384
|
+
// is updated to private. Warning: mutually exclusive with all other field
|
|
385
|
+
// paths.)
|
|
386
|
+
// `access_settings.audience` is not supported with admin access.
|
|
336
387
|
//
|
|
337
|
-
// - Developer Preview:
|
|
338
|
-
//
|
|
339
|
-
//
|
|
340
|
-
//
|
|
341
|
-
//
|
|
388
|
+
// - Developer Preview: Supports changing the [permission
|
|
389
|
+
// settings](https://support.google.com/chat/answer/13340792) of a space,
|
|
390
|
+
// supported field paths
|
|
391
|
+
// include: `permission_settings.manage_members_and_groups`,
|
|
392
|
+
// `permission_settings.modify_space_details`,
|
|
393
|
+
// `permission_settings.toggle_history`,
|
|
394
|
+
// `permission_settings.use_at_mention_all`,
|
|
395
|
+
// `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
|
396
|
+
// `permission_settings.reply_messages`
|
|
397
|
+
// (Warning: mutually exclusive with all other non-permission settings field
|
|
398
|
+
// paths). `permission_settings` is not supported with admin access.
|
|
342
399
|
google.protobuf.FieldMask update_mask = 2;
|
|
343
400
|
}
|
|
344
401
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -26,6 +26,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
26
26
|
option java_multiple_files = true;
|
|
27
27
|
option java_outer_classname = "SpaceReadStateProto";
|
|
28
28
|
option java_package = "com.google.chat.v1";
|
|
29
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
29
30
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
30
31
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
31
32
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25,6 +25,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
25
25
|
option java_multiple_files = true;
|
|
26
26
|
option java_outer_classname = "SpaceSetupProto";
|
|
27
27
|
option java_package = "com.google.chat.v1";
|
|
28
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
28
29
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
29
30
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
30
31
|
|
|
@@ -63,19 +64,23 @@ message SetUpSpaceRequest {
|
|
|
63
64
|
// authenticated user returns an error.
|
|
64
65
|
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
65
66
|
|
|
66
|
-
// Optional. The Google Chat users to invite to join the space. Omit
|
|
67
|
-
// calling user, as they are added automatically.
|
|
67
|
+
// Optional. The Google Chat users or groups to invite to join the space. Omit
|
|
68
|
+
// the calling user, as they are added automatically.
|
|
68
69
|
//
|
|
69
70
|
// The set currently allows up to 20 memberships (in addition to the caller).
|
|
70
71
|
//
|
|
71
|
-
//
|
|
72
|
-
// (format: `users/{user}`) and `type` set to
|
|
73
|
-
// add human users when setting up a space
|
|
74
|
-
// for direct message setup with the
|
|
75
|
-
// using the user's email as an alias
|
|
76
|
-
// can be `users/example@gmail.com`.
|
|
77
|
-
//
|
|
78
|
-
// `{user}`.
|
|
72
|
+
// For human membership, the `Membership.member` field must contain a `user`
|
|
73
|
+
// with `name` populated (format: `users/{user}`) and `type` set to
|
|
74
|
+
// `User.Type.HUMAN`. You can only add human users when setting up a space
|
|
75
|
+
// (adding Chat apps is only supported for direct message setup with the
|
|
76
|
+
// calling app). You can also add members using the user's email as an alias
|
|
77
|
+
// for {user}. For example, the `user.name` can be `users/example@gmail.com`.
|
|
78
|
+
// To invite Gmail users or users from external Google Workspace domains,
|
|
79
|
+
// user's email must be used for `{user}`.
|
|
80
|
+
//
|
|
81
|
+
// For Google group membership, the `Membership.group_member` field must
|
|
82
|
+
// contain a `group` with `name` populated (format `groups/{group}`). You
|
|
83
|
+
// can only add Google groups when setting `Space.spaceType` to `SPACE`.
|
|
79
84
|
//
|
|
80
85
|
// Optional when setting `Space.spaceType` to `SPACE`.
|
|
81
86
|
//
|