@google-apps/chat 0.10.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 +8 -0
- package/build/protos/google/chat/v1/attachment.proto +15 -13
- package/build/protos/google/chat/v1/chat_service.proto +166 -74
- 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 +63 -54
- package/build/protos/google/chat/v1/reaction.proto +16 -12
- package/build/protos/google/chat/v1/space.proto +97 -51
- package/build/protos/google/chat/v1/space_event.proto +4 -4
- package/build/protos/protos.d.ts +118 -0
- package/build/protos/protos.js +313 -0
- package/build/protos/protos.json +237 -53
- package/build/src/v1/chat_service_client.d.ts +287 -181
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.10.0...chat-v0.11.0) (2024-12-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [chat] Add missing field annotations in space.proto, message.proto, reaction.proto, space_event.proto, membership.proto, attachment.proto ([#5870](https://github.com/googleapis/google-cloud-node/issues/5870)) ([0730fb1](https://github.com/googleapis/google-cloud-node/commit/0730fb1e6bce2ddb6e0cd0c38424ca03cf740cb5))
|
|
9
|
+
* [chat] Chat Apps can now retrieve the import mode expire time information to know when to complete the import mode properly ([#5860](https://github.com/googleapis/google-cloud-node/issues/5860)) ([02b43ef](https://github.com/googleapis/google-cloud-node/commit/02b43ef30f6e45488dfea3bf7b4c15a5641b0755))
|
|
10
|
+
|
|
3
11
|
## [0.10.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.9.0...chat-v0.10.0) (2024-10-10)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -47,9 +47,9 @@ message Attachment {
|
|
|
47
47
|
UPLOADED_CONTENT = 2;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// Resource name of the attachment, in the form
|
|
50
|
+
// Optional. Resource name of the attachment, in the form
|
|
51
51
|
// `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
|
52
|
-
string name = 1;
|
|
52
|
+
string name = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
53
53
|
|
|
54
54
|
// Output only. The original file name for the content, not the full path.
|
|
55
55
|
string content_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
@@ -59,9 +59,11 @@ message Attachment {
|
|
|
59
59
|
|
|
60
60
|
// The data reference to the attachment.
|
|
61
61
|
oneof data_ref {
|
|
62
|
-
// A reference to the attachment data. This field is used
|
|
63
|
-
//
|
|
64
|
-
|
|
62
|
+
// Optional. A reference to the attachment data. This field is used to
|
|
63
|
+
// create or update messages with attachments, or with the media API to
|
|
64
|
+
// download the attachment data.
|
|
65
|
+
AttachmentDataRef attachment_data_ref = 4
|
|
66
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
65
67
|
|
|
66
68
|
// Output only. A reference to the Google Drive attachment. This field is
|
|
67
69
|
// used with the Google Drive API.
|
|
@@ -90,14 +92,14 @@ message DriveDataRef {
|
|
|
90
92
|
|
|
91
93
|
// A reference to the attachment data.
|
|
92
94
|
message AttachmentDataRef {
|
|
93
|
-
// The resource name of the attachment data. This field is used with
|
|
94
|
-
// API to download the attachment data.
|
|
95
|
-
string resource_name = 1;
|
|
96
|
-
|
|
97
|
-
// Opaque token containing a reference to an uploaded attachment.
|
|
98
|
-
// clients as an opaque string and used to create or update Chat
|
|
99
|
-
// attachments.
|
|
100
|
-
string attachment_upload_token = 2;
|
|
95
|
+
// Optional. The resource name of the attachment data. This field is used with
|
|
96
|
+
// the media API to download the attachment data.
|
|
97
|
+
string resource_name = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
98
|
+
|
|
99
|
+
// Optional. Opaque token containing a reference to an uploaded attachment.
|
|
100
|
+
// Treated by clients as an opaque string and used to create or update Chat
|
|
101
|
+
// messages with attachments.
|
|
102
|
+
string attachment_upload_token = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
// Request to get an attachment.
|
|
@@ -69,8 +69,11 @@ service ChatService {
|
|
|
69
69
|
// Creates a message in a Google Chat space. For an example, see [Send a
|
|
70
70
|
// message](https://developers.google.com/workspace/chat/create-messages).
|
|
71
71
|
//
|
|
72
|
-
// The `create()` method requires either user
|
|
73
|
-
//
|
|
72
|
+
// The `create()` method requires either [user
|
|
73
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
74
|
+
// or [app
|
|
75
|
+
// authentication](https://developers.google.com/workspace/chat/authorize-import).
|
|
76
|
+
// Chat attributes the message sender differently depending on the type of
|
|
74
77
|
// authentication that you use in your request.
|
|
75
78
|
//
|
|
76
79
|
// The following image shows how Chat attributes a message when you use app
|
|
@@ -90,6 +93,12 @@ service ChatService {
|
|
|
90
93
|
// authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg)
|
|
91
94
|
//
|
|
92
95
|
// The maximum message size, including the message contents, is 32,000 bytes.
|
|
96
|
+
//
|
|
97
|
+
// For
|
|
98
|
+
// [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks)
|
|
99
|
+
// requests, the response doesn't contain the full message. The response only
|
|
100
|
+
// populates the `name` and `thread.name` fields in addition to the
|
|
101
|
+
// information that was in the request.
|
|
93
102
|
rpc CreateMessage(CreateMessageRequest) returns (Message) {
|
|
94
103
|
option (google.api.http) = {
|
|
95
104
|
post: "/v1/{parent=spaces/*}/messages"
|
|
@@ -105,6 +114,7 @@ service ChatService {
|
|
|
105
114
|
// For an example, see
|
|
106
115
|
// [List
|
|
107
116
|
// messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
|
|
117
|
+
//
|
|
108
118
|
// Requires [user
|
|
109
119
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
110
120
|
rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) {
|
|
@@ -126,13 +136,16 @@ service ChatService {
|
|
|
126
136
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
127
137
|
// lists memberships in spaces that the authenticated user has access to.
|
|
128
138
|
//
|
|
129
|
-
//
|
|
130
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
131
|
-
//
|
|
132
|
-
// [
|
|
139
|
+
// Supports the following types of
|
|
140
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
141
|
+
//
|
|
142
|
+
// - [App
|
|
133
143
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
134
|
-
//
|
|
135
|
-
//
|
|
144
|
+
//
|
|
145
|
+
// - [User
|
|
146
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
147
|
+
// You can authenticate and authorize this method with administrator
|
|
148
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
136
149
|
rpc ListMemberships(ListMembershipsRequest)
|
|
137
150
|
returns (ListMembershipsResponse) {
|
|
138
151
|
option (google.api.http) = {
|
|
@@ -145,13 +158,16 @@ service ChatService {
|
|
|
145
158
|
// [Get details about a user's or Google Chat app's
|
|
146
159
|
// membership](https://developers.google.com/workspace/chat/get-members).
|
|
147
160
|
//
|
|
148
|
-
//
|
|
149
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
150
|
-
//
|
|
151
|
-
// [
|
|
161
|
+
// Supports the following types of
|
|
162
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
163
|
+
//
|
|
164
|
+
// - [App
|
|
152
165
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
153
|
-
//
|
|
154
|
-
//
|
|
166
|
+
//
|
|
167
|
+
// - [User
|
|
168
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
169
|
+
// You can authenticate and authorize this method with administrator
|
|
170
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
155
171
|
rpc GetMembership(GetMembershipRequest) returns (Membership) {
|
|
156
172
|
option (google.api.http) = {
|
|
157
173
|
get: "/v1/{name=spaces/*/members/*}"
|
|
@@ -163,13 +179,14 @@ service ChatService {
|
|
|
163
179
|
// For an example, see [Get details about a
|
|
164
180
|
// message](https://developers.google.com/workspace/chat/get-messages).
|
|
165
181
|
//
|
|
166
|
-
//
|
|
167
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
168
|
-
//
|
|
169
|
-
// [
|
|
182
|
+
// Supports the following types of
|
|
183
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
184
|
+
//
|
|
185
|
+
// - [App
|
|
170
186
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
171
|
-
//
|
|
172
|
-
//
|
|
187
|
+
//
|
|
188
|
+
// - [User
|
|
189
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
173
190
|
//
|
|
174
191
|
// Note: Might return a message from a blocked member or space.
|
|
175
192
|
rpc GetMessage(GetMessageRequest) returns (Message) {
|
|
@@ -186,13 +203,15 @@ service ChatService {
|
|
|
186
203
|
// [Update a
|
|
187
204
|
// message](https://developers.google.com/workspace/chat/update-messages).
|
|
188
205
|
//
|
|
189
|
-
//
|
|
190
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
191
|
-
//
|
|
192
|
-
// [
|
|
206
|
+
// Supports the following types of
|
|
207
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
208
|
+
//
|
|
209
|
+
// - [App
|
|
193
210
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
194
|
-
//
|
|
195
|
-
//
|
|
211
|
+
//
|
|
212
|
+
// - [User
|
|
213
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
214
|
+
//
|
|
196
215
|
// When using app authentication, requests can only update messages
|
|
197
216
|
// created by the calling Chat app.
|
|
198
217
|
rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
|
@@ -211,13 +230,15 @@ service ChatService {
|
|
|
211
230
|
// For an example, see [Delete a
|
|
212
231
|
// message](https://developers.google.com/workspace/chat/delete-messages).
|
|
213
232
|
//
|
|
214
|
-
//
|
|
215
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
216
|
-
//
|
|
217
|
-
// [
|
|
233
|
+
// Supports the following types of
|
|
234
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
235
|
+
//
|
|
236
|
+
// - [App
|
|
218
237
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
219
|
-
//
|
|
220
|
-
//
|
|
238
|
+
//
|
|
239
|
+
// - [User
|
|
240
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
241
|
+
//
|
|
221
242
|
// When using app authentication, requests can only delete messages
|
|
222
243
|
// created by the calling Chat app.
|
|
223
244
|
rpc DeleteMessage(DeleteMessageRequest) returns (google.protobuf.Empty) {
|
|
@@ -245,6 +266,7 @@ service ChatService {
|
|
|
245
266
|
// Uploads an attachment. For an example, see
|
|
246
267
|
// [Upload media as a file
|
|
247
268
|
// attachment](https://developers.google.com/workspace/chat/upload-media-attachments).
|
|
269
|
+
//
|
|
248
270
|
// Requires user
|
|
249
271
|
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
250
272
|
//
|
|
@@ -264,16 +286,14 @@ service ChatService {
|
|
|
264
286
|
// [List
|
|
265
287
|
// spaces](https://developers.google.com/workspace/chat/list-spaces).
|
|
266
288
|
//
|
|
267
|
-
//
|
|
268
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
269
|
-
//
|
|
270
|
-
// [
|
|
289
|
+
// Supports the following types of
|
|
290
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
291
|
+
//
|
|
292
|
+
// - [App
|
|
271
293
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
272
|
-
// and [user
|
|
273
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
274
294
|
//
|
|
275
|
-
//
|
|
276
|
-
//
|
|
295
|
+
// - [User
|
|
296
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
277
297
|
//
|
|
278
298
|
// To list all named spaces by Google Workspace organization, use the
|
|
279
299
|
// [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
|
@@ -286,7 +306,9 @@ service ChatService {
|
|
|
286
306
|
}
|
|
287
307
|
|
|
288
308
|
// Returns a list of spaces in a Google Workspace organization based on an
|
|
289
|
-
// administrator's search.
|
|
309
|
+
// administrator's search.
|
|
310
|
+
//
|
|
311
|
+
// Requires [user
|
|
290
312
|
// authentication with administrator
|
|
291
313
|
// privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges).
|
|
292
314
|
// In the request, set `use_admin_access` to `true`.
|
|
@@ -301,13 +323,16 @@ service ChatService {
|
|
|
301
323
|
// [Get details about a
|
|
302
324
|
// space](https://developers.google.com/workspace/chat/get-spaces).
|
|
303
325
|
//
|
|
304
|
-
//
|
|
305
|
-
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
|
|
306
|
-
//
|
|
307
|
-
// [
|
|
326
|
+
// Supports the following types of
|
|
327
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
328
|
+
//
|
|
329
|
+
// - [App
|
|
308
330
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
309
|
-
//
|
|
310
|
-
//
|
|
331
|
+
//
|
|
332
|
+
// - [User
|
|
333
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
334
|
+
// You can authenticate and authorize this method with administrator
|
|
335
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
311
336
|
rpc GetSpace(GetSpaceRequest) returns (Space) {
|
|
312
337
|
option (google.api.http) = {
|
|
313
338
|
get: "/v1/{name=spaces/*}"
|
|
@@ -315,21 +340,27 @@ service ChatService {
|
|
|
315
340
|
option (google.api.method_signature) = "name";
|
|
316
341
|
}
|
|
317
342
|
|
|
318
|
-
// Creates a space with no members. Can be used to create a named space
|
|
319
|
-
//
|
|
320
|
-
// [Create a
|
|
343
|
+
// Creates a space with no members. Can be used to create a named space, or a
|
|
344
|
+
// group chat in `Import mode`. For an example, see [Create a
|
|
321
345
|
// space](https://developers.google.com/workspace/chat/create-spaces).
|
|
322
346
|
//
|
|
323
347
|
// If you receive the error message `ALREADY_EXISTS` when creating
|
|
324
348
|
// a space, try a different `displayName`. An existing space within
|
|
325
349
|
// the Google Workspace organization might already use this display name.
|
|
326
350
|
//
|
|
327
|
-
//
|
|
328
|
-
//
|
|
329
|
-
// group chat in import mode using `spaceType.GROUP_CHAT`.
|
|
351
|
+
// Supports the following types of
|
|
352
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
330
353
|
//
|
|
331
|
-
//
|
|
332
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
|
|
354
|
+
// - [App
|
|
355
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
356
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
357
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
358
|
+
//
|
|
359
|
+
// - [User
|
|
360
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
361
|
+
//
|
|
362
|
+
// When authenticating as an app, the `space.customer` field must be set in
|
|
363
|
+
// the request.
|
|
333
364
|
rpc CreateSpace(CreateSpaceRequest) returns (Space) {
|
|
334
365
|
option (google.api.http) = {
|
|
335
366
|
post: "/v1/spaces"
|
|
@@ -405,8 +436,18 @@ service ChatService {
|
|
|
405
436
|
// `ALREADY_EXISTS`, try a different display name.. An existing space within
|
|
406
437
|
// the Google Workspace organization might already use this display name.
|
|
407
438
|
//
|
|
408
|
-
//
|
|
409
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize
|
|
439
|
+
// Supports the following types of
|
|
440
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
441
|
+
//
|
|
442
|
+
// - [App
|
|
443
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
444
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
445
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
446
|
+
//
|
|
447
|
+
// - [User
|
|
448
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
449
|
+
// You can authenticate and authorize this method with administrator
|
|
450
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
410
451
|
rpc UpdateSpace(UpdateSpaceRequest) returns (Space) {
|
|
411
452
|
option (google.api.http) = {
|
|
412
453
|
patch: "/v1/{space.name=spaces/*}"
|
|
@@ -420,9 +461,19 @@ service ChatService {
|
|
|
420
461
|
// memberships in the space—are also deleted. For an example, see
|
|
421
462
|
// [Delete a
|
|
422
463
|
// space](https://developers.google.com/workspace/chat/delete-spaces).
|
|
423
|
-
//
|
|
464
|
+
//
|
|
465
|
+
// Supports the following types of
|
|
466
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
467
|
+
//
|
|
468
|
+
// - [App
|
|
469
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
470
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
471
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
472
|
+
//
|
|
473
|
+
// - [User
|
|
424
474
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
425
|
-
//
|
|
475
|
+
// You can authenticate and authorize this method with administrator
|
|
476
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
426
477
|
rpc DeleteSpace(DeleteSpaceRequest) returns (google.protobuf.Empty) {
|
|
427
478
|
option (google.api.http) = {
|
|
428
479
|
delete: "/v1/{name=spaces/*}"
|
|
@@ -433,8 +484,11 @@ service ChatService {
|
|
|
433
484
|
// Completes the
|
|
434
485
|
// [import process](https://developers.google.com/workspace/chat/import-data)
|
|
435
486
|
// for the specified space and makes it visible to users.
|
|
436
|
-
//
|
|
437
|
-
//
|
|
487
|
+
//
|
|
488
|
+
// Requires [app
|
|
489
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
490
|
+
// and domain-wide delegation. For more information, see [Authorize Google
|
|
491
|
+
// Chat apps to import
|
|
438
492
|
// data](https://developers.google.com/workspace/chat/authorize-import).
|
|
439
493
|
rpc CompleteImportSpace(CompleteImportSpaceRequest)
|
|
440
494
|
returns (CompleteImportSpaceResponse) {
|
|
@@ -449,20 +503,24 @@ service ChatService {
|
|
|
449
503
|
// see
|
|
450
504
|
// [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message).
|
|
451
505
|
//
|
|
506
|
+
// With [app
|
|
507
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app),
|
|
508
|
+
// returns the direct message space between the specified user and the calling
|
|
509
|
+
// Chat app.
|
|
510
|
+
//
|
|
452
511
|
// With [user
|
|
453
512
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
|
|
454
513
|
// returns the direct message space between the specified user and the
|
|
455
514
|
// authenticated user.
|
|
456
515
|
//
|
|
457
|
-
//
|
|
458
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize
|
|
459
|
-
// returns the direct message space between the specified user and the calling
|
|
460
|
-
// Chat app.
|
|
516
|
+
// // Supports the following types of
|
|
517
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
461
518
|
//
|
|
462
|
-
//
|
|
519
|
+
// - [App
|
|
520
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
521
|
+
//
|
|
522
|
+
// - [User
|
|
463
523
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
464
|
-
// or [app
|
|
465
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
466
524
|
rpc FindDirectMessage(FindDirectMessageRequest) returns (Space) {
|
|
467
525
|
option (google.api.http) = {
|
|
468
526
|
get: "/v1/spaces:findDirectMessage"
|
|
@@ -475,8 +533,19 @@ service ChatService {
|
|
|
475
533
|
// policy turned off, then they're invited, and must accept the space
|
|
476
534
|
// invitation before joining. Otherwise, creating a membership adds the member
|
|
477
535
|
// directly to the specified space.
|
|
478
|
-
//
|
|
479
|
-
//
|
|
536
|
+
//
|
|
537
|
+
// Supports the following types of
|
|
538
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
539
|
+
//
|
|
540
|
+
// - [App
|
|
541
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
542
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
543
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
544
|
+
//
|
|
545
|
+
// - [User
|
|
546
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
547
|
+
// You can authenticate and authorize this method with administrator
|
|
548
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
480
549
|
//
|
|
481
550
|
// For example usage, see:
|
|
482
551
|
//
|
|
@@ -499,8 +568,18 @@ service ChatService {
|
|
|
499
568
|
// Updates a membership. For an example, see [Update a user's membership in
|
|
500
569
|
// a space](https://developers.google.com/workspace/chat/update-members).
|
|
501
570
|
//
|
|
502
|
-
//
|
|
503
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize
|
|
571
|
+
// Supports the following types of
|
|
572
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
573
|
+
//
|
|
574
|
+
// - [App
|
|
575
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
576
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
577
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
578
|
+
//
|
|
579
|
+
// - [User
|
|
580
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
581
|
+
// You can authenticate and authorize this method with administrator
|
|
582
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
504
583
|
rpc UpdateMembership(UpdateMembershipRequest) returns (Membership) {
|
|
505
584
|
option (google.api.http) = {
|
|
506
585
|
patch: "/v1/{membership.name=spaces/*/members/*}"
|
|
@@ -513,8 +592,18 @@ service ChatService {
|
|
|
513
592
|
// [Remove a user or a Google Chat app from a
|
|
514
593
|
// space](https://developers.google.com/workspace/chat/delete-members).
|
|
515
594
|
//
|
|
516
|
-
//
|
|
517
|
-
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize
|
|
595
|
+
// Supports the following types of
|
|
596
|
+
// [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
|
|
597
|
+
//
|
|
598
|
+
// - [App
|
|
599
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
600
|
+
// with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
|
601
|
+
// in [Developer Preview](https://developers.google.com/workspace/preview)
|
|
602
|
+
//
|
|
603
|
+
// - [User
|
|
604
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
605
|
+
// You can authenticate and authorize this method with administrator
|
|
606
|
+
// privileges by setting the `use_admin_access` field in the request.
|
|
518
607
|
rpc DeleteMembership(DeleteMembershipRequest) returns (Membership) {
|
|
519
608
|
option (google.api.http) = {
|
|
520
609
|
delete: "/v1/{name=spaces/*/members/*}"
|
|
@@ -526,6 +615,7 @@ service ChatService {
|
|
|
526
615
|
// supported. For an example, see
|
|
527
616
|
// [Add a reaction to a
|
|
528
617
|
// message](https://developers.google.com/workspace/chat/create-reactions).
|
|
618
|
+
//
|
|
529
619
|
// Requires [user
|
|
530
620
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
531
621
|
rpc CreateReaction(CreateReactionRequest) returns (Reaction) {
|
|
@@ -539,6 +629,7 @@ service ChatService {
|
|
|
539
629
|
// Lists reactions to a message. For an example, see
|
|
540
630
|
// [List reactions for a
|
|
541
631
|
// message](https://developers.google.com/workspace/chat/list-reactions).
|
|
632
|
+
//
|
|
542
633
|
// Requires [user
|
|
543
634
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
544
635
|
rpc ListReactions(ListReactionsRequest) returns (ListReactionsResponse) {
|
|
@@ -552,6 +643,7 @@ service ChatService {
|
|
|
552
643
|
// For an example, see
|
|
553
644
|
// [Delete a
|
|
554
645
|
// reaction](https://developers.google.com/workspace/chat/delete-reactions).
|
|
646
|
+
//
|
|
555
647
|
// Requires [user
|
|
556
648
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
|
557
649
|
rpc DeleteReaction(DeleteReactionRequest) returns (google.protobuf.Empty) {
|
|
@@ -28,7 +28,8 @@ option ruby_package = "Google::Apps::Chat::V1";
|
|
|
28
28
|
// Information about a deleted message. A message is deleted when `delete_time`
|
|
29
29
|
// is set.
|
|
30
30
|
message DeletionMetadata {
|
|
31
|
-
// Who deleted the message and how it was deleted.
|
|
31
|
+
// Who deleted the message and how it was deleted. More values may be added in
|
|
32
|
+
// the future.
|
|
32
33
|
enum DeletionType {
|
|
33
34
|
// This value is unused.
|
|
34
35
|
DELETION_TYPE_UNSPECIFIED = 0;
|