@google-apps/chat 0.30.0 → 0.32.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/build/protos/google/chat/v1/chat_service.proto +58 -0
- package/build/protos/google/chat/v1/message_pin.proto +116 -0
- package/build/protos/protos.d.ts +578 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +152 -1
- package/build/src/v1/chat_service_client.d.ts +209 -0
- package/build/src/v1/chat_service_client.js +334 -73
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +12 -0
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/gapic_metadata.json +34 -0
- package/build/src/v1/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ import "google/chat/v1/attachment.proto";
|
|
|
22
22
|
import "google/chat/v1/availability.proto";
|
|
23
23
|
import "google/chat/v1/membership.proto";
|
|
24
24
|
import "google/chat/v1/message.proto";
|
|
25
|
+
import "google/chat/v1/message_pin.proto";
|
|
25
26
|
import "google/chat/v1/reaction.proto";
|
|
26
27
|
import "google/chat/v1/section.proto";
|
|
27
28
|
import "google/chat/v1/space.proto";
|
|
@@ -77,6 +78,8 @@ service ChatService {
|
|
|
77
78
|
"https://www.googleapis.com/auth/chat.messages.readonly,"
|
|
78
79
|
"https://www.googleapis.com/auth/chat.spaces,"
|
|
79
80
|
"https://www.googleapis.com/auth/chat.spaces.create,"
|
|
81
|
+
"https://www.googleapis.com/auth/chat.spaces.pins,"
|
|
82
|
+
"https://www.googleapis.com/auth/chat.spaces.pins.readonly,"
|
|
80
83
|
"https://www.googleapis.com/auth/chat.spaces.readonly,"
|
|
81
84
|
"https://www.googleapis.com/auth/chat.users.availability,"
|
|
82
85
|
"https://www.googleapis.com/auth/chat.users.availability.readonly,"
|
|
@@ -981,6 +984,61 @@ service ChatService {
|
|
|
981
984
|
option (google.api.method_signature) = "name";
|
|
982
985
|
}
|
|
983
986
|
|
|
987
|
+
// Lists message pins in a space. Users can pin important messages in spaces
|
|
988
|
+
// for easy access. For more information, see [Pin or unpin a conversation in
|
|
989
|
+
// Google Chat](https://support.google.com/chat/answer/15622437).
|
|
990
|
+
//
|
|
991
|
+
// Requires [user
|
|
992
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
993
|
+
// with one of the following [authorization
|
|
994
|
+
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
995
|
+
//
|
|
996
|
+
// - `https://www.googleapis.com/auth/chat.spaces.pins.readonly`
|
|
997
|
+
// - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
998
|
+
// - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
999
|
+
// - `https://www.googleapis.com/auth/chat.spaces`
|
|
1000
|
+
rpc ListMessagePins(ListMessagePinsRequest)
|
|
1001
|
+
returns (ListMessagePinsResponse) {
|
|
1002
|
+
option (google.api.http) = {
|
|
1003
|
+
get: "/v1/{parent=spaces/*}/messagePins"
|
|
1004
|
+
};
|
|
1005
|
+
option (google.api.method_signature) = "parent";
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// Creates a message pin.
|
|
1009
|
+
//
|
|
1010
|
+
// Requires [user
|
|
1011
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1012
|
+
// with one of the following [authorization
|
|
1013
|
+
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1014
|
+
//
|
|
1015
|
+
// - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
1016
|
+
// - `https://www.googleapis.com/auth/chat.spaces`
|
|
1017
|
+
rpc CreateMessagePin(CreateMessagePinRequest) returns (MessagePin) {
|
|
1018
|
+
option (google.api.http) = {
|
|
1019
|
+
post: "/v1/{parent=spaces/*}/messagePins"
|
|
1020
|
+
body: "message_pin"
|
|
1021
|
+
};
|
|
1022
|
+
option (google.api.method_signature) = "parent,message_pin";
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
// Deletes a message pin.
|
|
1026
|
+
//
|
|
1027
|
+
// Requires [user
|
|
1028
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1029
|
+
// with one of the following [authorization
|
|
1030
|
+
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1031
|
+
//
|
|
1032
|
+
// - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
1033
|
+
// - `https://www.googleapis.com/auth/chat.spaces`
|
|
1034
|
+
rpc DeleteMessagePin(DeleteMessagePinRequest)
|
|
1035
|
+
returns (google.protobuf.Empty) {
|
|
1036
|
+
option (google.api.http) = {
|
|
1037
|
+
delete: "/v1/{name=spaces/*/messagePins/*}"
|
|
1038
|
+
};
|
|
1039
|
+
option (google.api.method_signature) = "name";
|
|
1040
|
+
}
|
|
1041
|
+
|
|
984
1042
|
// Creates a custom emoji.
|
|
985
1043
|
//
|
|
986
1044
|
// Custom emojis are only available for Google Workspace accounts, and the
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// Copyright 2026 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
|
+
|
|
22
|
+
option csharp_namespace = "Google.Apps.Chat.V1";
|
|
23
|
+
option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "MessagePinProto";
|
|
26
|
+
option java_package = "com.google.chat.v1";
|
|
27
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
28
|
+
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
29
|
+
option ruby_package = "Google::Apps::Chat::V1";
|
|
30
|
+
|
|
31
|
+
// A pin on a Chat message. For more information see [Pin a
|
|
32
|
+
// message](https://support.google.com/chat?p=chat-board-hc).
|
|
33
|
+
message MessagePin {
|
|
34
|
+
option (google.api.resource) = {
|
|
35
|
+
type: "chat.googleapis.com/MessagePin"
|
|
36
|
+
pattern: "spaces/{space}/messagePins/{message_pin}"
|
|
37
|
+
plural: "messagePins"
|
|
38
|
+
singular: "messagePin"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Identifier. The resource name of the message pin.
|
|
42
|
+
// Format: `spaces/{space}/messagePins/{message_pin}`
|
|
43
|
+
// The resource ID component matches the resource ID component of the
|
|
44
|
+
// message. For example, a message with `spaces/AAA/messages/bbb.ccc`
|
|
45
|
+
// corresponds to the message pin with the resource name
|
|
46
|
+
// `spaces/AAA/messagePins/bbb.ccc`.
|
|
47
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
48
|
+
|
|
49
|
+
// Required. Immutable. The resource name of the message that is pinned.
|
|
50
|
+
// Format: `spaces/{space}/messages/{message}`
|
|
51
|
+
string message = 2 [
|
|
52
|
+
(google.api.field_behavior) = IMMUTABLE,
|
|
53
|
+
(google.api.field_behavior) = REQUIRED,
|
|
54
|
+
(google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Request message for listing message pins.
|
|
59
|
+
message ListMessagePinsRequest {
|
|
60
|
+
// Required. The parent space which owns the collection of pinned items
|
|
61
|
+
// Format: `spaces/{space}`
|
|
62
|
+
string parent = 1 [
|
|
63
|
+
(google.api.field_behavior) = REQUIRED,
|
|
64
|
+
(google.api.resource_reference) = {
|
|
65
|
+
child_type: "chat.googleapis.com/MessagePin"
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
// Optional. The maximum number of message pins returned. The service might
|
|
70
|
+
// return fewer messages than this value. The maximum value is 100. If you use
|
|
71
|
+
// a value more than 100, it's automatically changed to 100. If unspecified,
|
|
72
|
+
// at most 100 message pins will be returned. Negative values return an
|
|
73
|
+
// `INVALID_ARGUMENT` error.
|
|
74
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
75
|
+
|
|
76
|
+
// Optional. A page token received from a previous list message pins call.
|
|
77
|
+
// Provide this parameter to retrieve the subsequent page.
|
|
78
|
+
//
|
|
79
|
+
// When paginating, all other parameters provided should match the call that
|
|
80
|
+
// provided the page token. Passing different values to the other parameters
|
|
81
|
+
// might lead to unexpected results.
|
|
82
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Response message for listing message pins.
|
|
86
|
+
message ListMessagePinsResponse {
|
|
87
|
+
// The pinned messages from the specified space.
|
|
88
|
+
repeated MessagePin message_pins = 1;
|
|
89
|
+
|
|
90
|
+
// You can send a token as `pageToken` to retrieve the next page of
|
|
91
|
+
// results. If empty, there are no subsequent pages.
|
|
92
|
+
string next_page_token = 2;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Request message for creating a message pin.
|
|
96
|
+
message CreateMessagePinRequest {
|
|
97
|
+
// Required. The parent space in which to create the message pin.
|
|
98
|
+
// Format: spaces/{space}
|
|
99
|
+
string parent = 1 [
|
|
100
|
+
(google.api.field_behavior) = REQUIRED,
|
|
101
|
+
(google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
// Required. The MessagePin to create.
|
|
105
|
+
MessagePin message_pin = 2 [(google.api.field_behavior) = REQUIRED];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Request message for deleting a message pin.
|
|
109
|
+
message DeleteMessagePinRequest {
|
|
110
|
+
// Required. The resource name of the message pin to remove.
|
|
111
|
+
// Format: spaces/{space}/messagePins/{message_pin}
|
|
112
|
+
string name = 1 [
|
|
113
|
+
(google.api.field_behavior) = REQUIRED,
|
|
114
|
+
(google.api.resource_reference) = { type: "chat.googleapis.com/MessagePin" }
|
|
115
|
+
];
|
|
116
|
+
}
|