@google-apps/chat 0.13.0 → 0.15.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 +24 -0
- package/README.md +4 -2
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +1 -1
- package/build/protos/google/chat/v1/annotation.proto +1 -1
- package/build/protos/google/chat/v1/attachment.proto +1 -1
- package/build/protos/google/chat/v1/chat_service.proto +34 -2
- package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +1 -1
- package/build/protos/google/chat/v1/event_payload.proto +1 -1
- package/build/protos/google/chat/v1/group.proto +1 -1
- package/build/protos/google/chat/v1/history_state.proto +1 -1
- package/build/protos/google/chat/v1/matched_url.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +1 -1
- package/build/protos/google/chat/v1/message.proto +1 -1
- package/build/protos/google/chat/v1/reaction.proto +1 -1
- package/build/protos/google/chat/v1/slash_command.proto +1 -1
- package/build/protos/google/chat/v1/space.proto +1 -1
- package/build/protos/google/chat/v1/space_event.proto +1 -1
- package/build/protos/google/chat/v1/space_notification_setting.proto +122 -0
- package/build/protos/google/chat/v1/space_read_state.proto +1 -1
- package/build/protos/google/chat/v1/space_setup.proto +1 -1
- package/build/protos/google/chat/v1/thread_read_state.proto +1 -1
- package/build/protos/google/chat/v1/user.proto +1 -1
- package/build/protos/google/chat/v1/widgets.proto +1 -1
- package/build/protos/protos.d.ts +376 -0
- package/build/protos/protos.js +883 -0
- package/build/protos/protos.json +129 -4
- package/build/src/v1/chat_service_client.d.ts +96 -1
- package/build/src/v1/chat_service_client.js +686 -152
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +10 -0
- package/build/src/v1/chat_service_proto_list.json +25 -0
- package/build/src/v1/gapic_metadata.json +357 -0
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.15.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.14.0...chat-v0.15.0) (2025-03-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6182](https://github.com/googleapis/google-cloud-node/issues/6182)) ([c41ff07](https://github.com/googleapis/google-cloud-node/commit/c41ff0729b65a1207978b4029d6369cc0552e0bf))
|
|
9
|
+
|
|
10
|
+
## [0.14.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.13.0...chat-v0.14.0) (2025-03-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096))
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* [chat] Addition of space notification setting Chat API ([#6120](https://github.com/googleapis/google-cloud-node/issues/6120)) ([062dff4](https://github.com/googleapis/google-cloud-node/commit/062dff45982bfe20c43a4f6298043576ab52b156))
|
|
20
|
+
* [Many APIs] add request/response debug logging to gapics, update templates to gax 5 ([54a73fe](https://github.com/googleapis/google-cloud-node/commit/54a73fe74eab0675c006f24d5f1e4574c44d829b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Miscellaneous Chores
|
|
24
|
+
|
|
25
|
+
* Upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096)) ([eadae64](https://github.com/googleapis/google-cloud-node/commit/eadae64d54e07aa2c65097ea52e65008d4e87436))
|
|
26
|
+
|
|
3
27
|
## [0.13.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.12.0...chat-v0.13.0) (2025-02-28)
|
|
4
28
|
|
|
5
29
|
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
44
44
|
1. [Select or create a Cloud Platform project][projects].
|
|
45
45
|
1. [Enable billing for your project][billing].
|
|
46
46
|
1. [Enable the Google Chat API API][enable_api].
|
|
47
|
-
1. [Set up authentication][auth] so you can access the
|
|
47
|
+
1. [Set up authentication with a service account][auth] so you can access the
|
|
48
48
|
API from your local workstation.
|
|
49
49
|
|
|
50
50
|
### Installing the client library
|
|
@@ -141,6 +141,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
|
|
|
141
141
|
| Chat_service.get_message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_message.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_message.js,packages/google-chat/samples/README.md) |
|
|
142
142
|
| Chat_service.get_space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_space.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_space.js,packages/google-chat/samples/README.md) |
|
|
143
143
|
| Chat_service.get_space_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_space_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_space_event.js,packages/google-chat/samples/README.md) |
|
|
144
|
+
| Chat_service.get_space_notification_setting | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_space_notification_setting.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_space_notification_setting.js,packages/google-chat/samples/README.md) |
|
|
144
145
|
| Chat_service.get_space_read_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_space_read_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_space_read_state.js,packages/google-chat/samples/README.md) |
|
|
145
146
|
| Chat_service.get_thread_read_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_thread_read_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.get_thread_read_state.js,packages/google-chat/samples/README.md) |
|
|
146
147
|
| Chat_service.list_memberships | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_memberships.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.list_memberships.js,packages/google-chat/samples/README.md) |
|
|
@@ -153,6 +154,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
|
|
|
153
154
|
| Chat_service.update_membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_membership.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_membership.js,packages/google-chat/samples/README.md) |
|
|
154
155
|
| Chat_service.update_message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_message.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_message.js,packages/google-chat/samples/README.md) |
|
|
155
156
|
| Chat_service.update_space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_space.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_space.js,packages/google-chat/samples/README.md) |
|
|
157
|
+
| Chat_service.update_space_notification_setting | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_space_notification_setting.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_space_notification_setting.js,packages/google-chat/samples/README.md) |
|
|
156
158
|
| Chat_service.update_space_read_state | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_space_read_state.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.update_space_read_state.js,packages/google-chat/samples/README.md) |
|
|
157
159
|
| Chat_service.upload_attachment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.upload_attachment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/generated/v1/chat_service.upload_attachment.js,packages/google-chat/samples/README.md) |
|
|
158
160
|
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-chat/samples/quickstart.js,packages/google-chat/samples/README.md) |
|
|
@@ -224,4 +226,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
|
224
226
|
[projects]: https://console.cloud.google.com/project
|
|
225
227
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
226
228
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=chat.googleapis.com
|
|
227
|
-
[auth]: https://cloud.google.com/docs/authentication/
|
|
229
|
+
[auth]: https://cloud.google.com/docs/authentication/getting-started
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 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 @@ import "google/chat/v1/message.proto";
|
|
|
24
24
|
import "google/chat/v1/reaction.proto";
|
|
25
25
|
import "google/chat/v1/space.proto";
|
|
26
26
|
import "google/chat/v1/space_event.proto";
|
|
27
|
+
import "google/chat/v1/space_notification_setting.proto";
|
|
27
28
|
import "google/chat/v1/space_read_state.proto";
|
|
28
29
|
import "google/chat/v1/space_setup.proto";
|
|
29
30
|
import "google/chat/v1/thread_read_state.proto";
|
|
@@ -64,7 +65,8 @@ service ChatService {
|
|
|
64
65
|
"https://www.googleapis.com/auth/chat.spaces.create,"
|
|
65
66
|
"https://www.googleapis.com/auth/chat.spaces.readonly,"
|
|
66
67
|
"https://www.googleapis.com/auth/chat.users.readstate,"
|
|
67
|
-
"https://www.googleapis.com/auth/chat.users.readstate.readonly"
|
|
68
|
+
"https://www.googleapis.com/auth/chat.users.readstate.readonly,"
|
|
69
|
+
"https://www.googleapis.com/auth/chat.users.spacesettings";
|
|
68
70
|
|
|
69
71
|
// Creates a message in a Google Chat space. For an example, see [Send a
|
|
70
72
|
// message](https://developers.google.com/workspace/chat/create-messages).
|
|
@@ -739,4 +741,34 @@ service ChatService {
|
|
|
739
741
|
};
|
|
740
742
|
option (google.api.method_signature) = "parent,filter";
|
|
741
743
|
}
|
|
744
|
+
|
|
745
|
+
// Gets the space notification setting. For an example, see [Get the
|
|
746
|
+
// caller's space notification
|
|
747
|
+
// setting](https://developers.google.com/workspace/chat/get-space-notification-setting).
|
|
748
|
+
//
|
|
749
|
+
// Requires [user
|
|
750
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
751
|
+
rpc GetSpaceNotificationSetting(GetSpaceNotificationSettingRequest)
|
|
752
|
+
returns (SpaceNotificationSetting) {
|
|
753
|
+
option (google.api.http) = {
|
|
754
|
+
get: "/v1/{name=users/*/spaces/*/spaceNotificationSetting}"
|
|
755
|
+
};
|
|
756
|
+
option (google.api.method_signature) = "name";
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
// Updates the space notification setting. For an example, see [Update
|
|
760
|
+
// the caller's space notification
|
|
761
|
+
// setting](https://developers.google.com/workspace/chat/update-space-notification-setting).
|
|
762
|
+
//
|
|
763
|
+
// Requires [user
|
|
764
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
765
|
+
rpc UpdateSpaceNotificationSetting(UpdateSpaceNotificationSettingRequest)
|
|
766
|
+
returns (SpaceNotificationSetting) {
|
|
767
|
+
option (google.api.http) = {
|
|
768
|
+
patch: "/v1/{space_notification_setting.name=users/*/spaces/*/spaceNotificationSetting}"
|
|
769
|
+
body: "space_notification_setting"
|
|
770
|
+
};
|
|
771
|
+
option (google.api.method_signature) =
|
|
772
|
+
"space_notification_setting,update_mask";
|
|
773
|
+
}
|
|
742
774
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.chat.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/field_mask.proto";
|
|
22
|
+
|
|
23
|
+
option csharp_namespace = "Google.Apps.Chat.V1";
|
|
24
|
+
option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
25
|
+
option java_multiple_files = true;
|
|
26
|
+
option java_outer_classname = "SpaceNotificationSettingProto";
|
|
27
|
+
option java_package = "com.google.chat.v1";
|
|
28
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
29
|
+
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
30
|
+
option ruby_package = "Google::Apps::Chat::V1";
|
|
31
|
+
|
|
32
|
+
// The notification setting of a user in a space.
|
|
33
|
+
message SpaceNotificationSetting {
|
|
34
|
+
option (google.api.resource) = {
|
|
35
|
+
type: "chat.googleapis.com/SpaceNotificationSetting"
|
|
36
|
+
pattern: "users/{user}/spaces/{space}/spaceNotificationSetting"
|
|
37
|
+
singular: "spaceNotificationSetting"
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// The notification setting types. Other types might be supported in the
|
|
41
|
+
// future.
|
|
42
|
+
enum NotificationSetting {
|
|
43
|
+
// Reserved.
|
|
44
|
+
NOTIFICATION_SETTING_UNSPECIFIED = 0;
|
|
45
|
+
|
|
46
|
+
// Notifications are triggered by @mentions, followed threads, first
|
|
47
|
+
// message of new threads. All new threads are automatically followed,
|
|
48
|
+
// unless manually unfollowed by the user.
|
|
49
|
+
ALL = 1;
|
|
50
|
+
|
|
51
|
+
// The notification is triggered by @mentions, followed threads, first
|
|
52
|
+
// message of new threads. Not available for 1:1 direct messages.
|
|
53
|
+
MAIN_CONVERSATIONS = 2;
|
|
54
|
+
|
|
55
|
+
// The notification is triggered by @mentions, followed threads. Not
|
|
56
|
+
// available for 1:1 direct messages.
|
|
57
|
+
FOR_YOU = 3;
|
|
58
|
+
|
|
59
|
+
// Notification is off.
|
|
60
|
+
OFF = 4;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// The space notification mute setting types.
|
|
64
|
+
enum MuteSetting {
|
|
65
|
+
// Reserved.
|
|
66
|
+
MUTE_SETTING_UNSPECIFIED = 0;
|
|
67
|
+
|
|
68
|
+
// The user will receive notifications for the space based on the
|
|
69
|
+
// notification setting.
|
|
70
|
+
UNMUTED = 1;
|
|
71
|
+
|
|
72
|
+
// The user will not receive any notifications for the space, regardless of
|
|
73
|
+
// the notification setting.
|
|
74
|
+
MUTED = 2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Identifier. The resource name of the space notification setting.
|
|
78
|
+
// Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.
|
|
79
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
80
|
+
|
|
81
|
+
// The notification setting.
|
|
82
|
+
optional NotificationSetting notification_setting = 2;
|
|
83
|
+
|
|
84
|
+
// The space notification mute setting.
|
|
85
|
+
optional MuteSetting mute_setting = 3;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Request message to get space notification setting.
|
|
89
|
+
// Only supports getting notification setting for the calling user.
|
|
90
|
+
message GetSpaceNotificationSettingRequest {
|
|
91
|
+
// Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting
|
|
92
|
+
//
|
|
93
|
+
// - `users/me/spaces/{space}/spaceNotificationSetting`, OR
|
|
94
|
+
// - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR
|
|
95
|
+
// - `users/123456789/spaces/{space}/spaceNotificationSetting`.
|
|
96
|
+
// Note: Only the caller's user id or email is allowed in the path.
|
|
97
|
+
string name = 1 [
|
|
98
|
+
(google.api.field_behavior) = REQUIRED,
|
|
99
|
+
(google.api.resource_reference) = {
|
|
100
|
+
type: "chat.googleapis.com/SpaceNotificationSetting"
|
|
101
|
+
}
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Request to update the space notification settings.
|
|
106
|
+
// Only supports updating notification setting for the calling user.
|
|
107
|
+
message UpdateSpaceNotificationSettingRequest {
|
|
108
|
+
// Required. The resource name for the space notification settings must be
|
|
109
|
+
// populated in the form of
|
|
110
|
+
// `users/{user}/spaces/{space}/spaceNotificationSetting`. Only fields
|
|
111
|
+
// specified by `update_mask` are updated.
|
|
112
|
+
SpaceNotificationSetting space_notification_setting = 1
|
|
113
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
114
|
+
|
|
115
|
+
// Required. Supported field paths:
|
|
116
|
+
//
|
|
117
|
+
// - `notification_setting`
|
|
118
|
+
//
|
|
119
|
+
// - `mute_setting`
|
|
120
|
+
google.protobuf.FieldMask update_mask = 2
|
|
121
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
122
|
+
}
|