@google-apps/chat 0.3.0 → 0.5.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/README.md +3 -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 +2 -1
- package/build/protos/google/chat/v1/chat_service.proto +71 -18
- 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 +7 -5
- 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 +7 -7
- package/build/protos/google/chat/v1/space_read_state.proto +113 -0
- package/build/protos/google/chat/v1/space_setup.proto +10 -9
- package/build/protos/google/chat/v1/thread_read_state.proto +75 -0
- 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 +582 -16
- package/build/protos/protos.js +1255 -49
- package/build/protos/protos.json +163 -24
- package/build/src/v1/chat_service_client.d.ts +232 -26
- package/build/src/v1/chat_service_client.js +148 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// Copyright 2024 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/timestamp.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 = "ThreadReadStateProto";
|
|
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
|
+
// A user's read state within a thread, used to identify read and unread
|
|
33
|
+
// messages.
|
|
34
|
+
message ThreadReadState {
|
|
35
|
+
option (google.api.resource) = {
|
|
36
|
+
type: "chat.googleapis.com/ThreadReadState"
|
|
37
|
+
pattern: "users/{user}/spaces/{space}/threads/{thread}/threadReadState"
|
|
38
|
+
singular: "threadReadState"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Resource name of the thread read state.
|
|
42
|
+
//
|
|
43
|
+
// Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
|
|
44
|
+
string name = 1;
|
|
45
|
+
|
|
46
|
+
// The time when the user's thread read state was updated. Usually this
|
|
47
|
+
// corresponds with the timestamp of the last read message in a thread.
|
|
48
|
+
google.protobuf.Timestamp last_read_time = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Request message for GetThreadReadStateRequest API.
|
|
52
|
+
message GetThreadReadStateRequest {
|
|
53
|
+
// Required. Resource name of the thread read state to retrieve.
|
|
54
|
+
//
|
|
55
|
+
// Only supports getting read state for the calling user.
|
|
56
|
+
//
|
|
57
|
+
// To refer to the calling user, set one of the following:
|
|
58
|
+
//
|
|
59
|
+
// - The `me` alias. For example,
|
|
60
|
+
// `users/me/spaces/{space}/threads/{thread}/threadReadState`.
|
|
61
|
+
//
|
|
62
|
+
// - Their Workspace email address. For example,
|
|
63
|
+
// `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
|
|
64
|
+
//
|
|
65
|
+
// - Their user id. For example,
|
|
66
|
+
// `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
|
|
67
|
+
//
|
|
68
|
+
// Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
|
|
69
|
+
string name = 1 [
|
|
70
|
+
(google.api.field_behavior) = REQUIRED,
|
|
71
|
+
(google.api.resource_reference) = {
|
|
72
|
+
type: "chat.googleapis.com/ThreadReadState"
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
}
|
|
@@ -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 = "UserProto";
|
|
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
|
|
|
@@ -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 = "WidgetsProto";
|
|
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
|
|