@google-apps/chat 0.23.0 → 0.24.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/README.md +8 -0
- 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 +178 -12
- 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 +41 -0
- package/build/protos/google/chat/v1/reaction.proto +1 -1
- package/build/protos/google/chat/v1/section.proto +344 -0
- package/build/protos/google/chat/v1/slash_command.proto +1 -1
- package/build/protos/google/chat/v1/space.proto +81 -1
- package/build/protos/google/chat/v1/space_event.proto +1 -1
- package/build/protos/google/chat/v1/space_notification_setting.proto +1 -1
- 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 +1982 -85
- package/build/protos/protos.js +5081 -693
- package/build/protos/protos.json +520 -2
- package/build/src/v1/chat_service_client.d.ts +797 -11
- package/build/src/v1/chat_service_client.js +744 -2
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +40 -0
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/gapic_metadata.json +92 -0
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -62,13 +62,16 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
|
|
|
62
62
|
| create membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.create_membership.js) |
|
|
63
63
|
| create message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.create_message.js) |
|
|
64
64
|
| create reaction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.create_reaction.js) |
|
|
65
|
+
| create section | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.create_section.js) |
|
|
65
66
|
| create space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.create_space.js) |
|
|
66
67
|
| delete custom emoji | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_custom_emoji.js) |
|
|
67
68
|
| delete membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_membership.js) |
|
|
68
69
|
| delete message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_message.js) |
|
|
69
70
|
| delete reaction | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_reaction.js) |
|
|
71
|
+
| delete section | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_section.js) |
|
|
70
72
|
| delete space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.delete_space.js) |
|
|
71
73
|
| find direct message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.find_direct_message.js) |
|
|
74
|
+
| find group chats | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.find_group_chats.js) |
|
|
72
75
|
| get attachment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_attachment.js) |
|
|
73
76
|
| get custom emoji | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_custom_emoji.js) |
|
|
74
77
|
| get membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.get_membership.js) |
|
|
@@ -82,12 +85,17 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
|
|
|
82
85
|
| list memberships | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_memberships.js) |
|
|
83
86
|
| list messages | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_messages.js) |
|
|
84
87
|
| list reactions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_reactions.js) |
|
|
88
|
+
| list section items | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_section_items.js) |
|
|
89
|
+
| list sections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_sections.js) |
|
|
85
90
|
| list space events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_space_events.js) |
|
|
86
91
|
| list spaces | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.list_spaces.js) |
|
|
92
|
+
| move section item | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.move_section_item.js) |
|
|
93
|
+
| position section | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.position_section.js) |
|
|
87
94
|
| search spaces | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.search_spaces.js) |
|
|
88
95
|
| set up space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.set_up_space.js) |
|
|
89
96
|
| update membership | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_membership.js) |
|
|
90
97
|
| update message | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_message.js) |
|
|
98
|
+
| update section | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_section.js) |
|
|
91
99
|
| update space | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-chat/samples/generated/v1/chat_service.update_space.js) |
|
|
92
100
|
| 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) |
|
|
93
101
|
| 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) |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 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.
|
|
@@ -22,6 +22,7 @@ import "google/chat/v1/attachment.proto";
|
|
|
22
22
|
import "google/chat/v1/membership.proto";
|
|
23
23
|
import "google/chat/v1/message.proto";
|
|
24
24
|
import "google/chat/v1/reaction.proto";
|
|
25
|
+
import "google/chat/v1/section.proto";
|
|
25
26
|
import "google/chat/v1/space.proto";
|
|
26
27
|
import "google/chat/v1/space_event.proto";
|
|
27
28
|
import "google/chat/v1/space_notification_setting.proto";
|
|
@@ -51,9 +52,11 @@ service ChatService {
|
|
|
51
52
|
"https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
|
|
52
53
|
"https://www.googleapis.com/auth/chat.app.delete,"
|
|
53
54
|
"https://www.googleapis.com/auth/chat.app.memberships,"
|
|
55
|
+
"https://www.googleapis.com/auth/chat.app.memberships.readonly,"
|
|
54
56
|
"https://www.googleapis.com/auth/chat.app.messages.readonly,"
|
|
55
57
|
"https://www.googleapis.com/auth/chat.app.spaces,"
|
|
56
58
|
"https://www.googleapis.com/auth/chat.app.spaces.create,"
|
|
59
|
+
"https://www.googleapis.com/auth/chat.app.spaces.readonly,"
|
|
57
60
|
"https://www.googleapis.com/auth/chat.bot,"
|
|
58
61
|
"https://www.googleapis.com/auth/chat.customemojis,"
|
|
59
62
|
"https://www.googleapis.com/auth/chat.customemojis.readonly,"
|
|
@@ -73,6 +76,8 @@ service ChatService {
|
|
|
73
76
|
"https://www.googleapis.com/auth/chat.spaces.readonly,"
|
|
74
77
|
"https://www.googleapis.com/auth/chat.users.readstate,"
|
|
75
78
|
"https://www.googleapis.com/auth/chat.users.readstate.readonly,"
|
|
79
|
+
"https://www.googleapis.com/auth/chat.users.sections,"
|
|
80
|
+
"https://www.googleapis.com/auth/chat.users.sections.readonly,"
|
|
76
81
|
"https://www.googleapis.com/auth/chat.users.spacesettings";
|
|
77
82
|
|
|
78
83
|
// Creates a message in a Google Chat space. For an example, see [Send a
|
|
@@ -142,9 +147,8 @@ service ChatService {
|
|
|
142
147
|
// - [App
|
|
143
148
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
144
149
|
// with [administrator
|
|
145
|
-
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
146
|
-
//
|
|
147
|
-
// with the authorization scope:
|
|
150
|
+
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
151
|
+
// with the authorization scope:
|
|
148
152
|
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
|
|
149
153
|
// using this authentication scope, this method only returns public
|
|
150
154
|
// messages in a space. It doesn't include private messages.
|
|
@@ -253,8 +257,7 @@ service ChatService {
|
|
|
253
257
|
// that invoke the Chat app.
|
|
254
258
|
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
|
|
255
259
|
// with [administrator
|
|
256
|
-
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
257
|
-
// [Developer Preview](https://developers.google.com/workspace/preview)).
|
|
260
|
+
// approval](https://support.google.com/a?p=chat-app-auth).
|
|
258
261
|
// When using this authentication scope,
|
|
259
262
|
// this method returns details about a public message in a space.
|
|
260
263
|
//
|
|
@@ -714,6 +717,32 @@ service ChatService {
|
|
|
714
717
|
};
|
|
715
718
|
}
|
|
716
719
|
|
|
720
|
+
// Returns all spaces with `spaceType == GROUP_CHAT`, whose
|
|
721
|
+
// human memberships contain exactly the calling user, and the users specified
|
|
722
|
+
// in `FindGroupChatsRequest.users`. Only members that have joined the
|
|
723
|
+
// conversation are supported. For an example, see [Find group
|
|
724
|
+
// chats](https://developers.google.com/workspace/chat/find-group-chats).
|
|
725
|
+
//
|
|
726
|
+
// If the calling user blocks, or is blocked by, some users, and no spaces
|
|
727
|
+
// with the entire specified set of users are found, this method returns
|
|
728
|
+
// spaces that don't include the blocked or blocking users.
|
|
729
|
+
//
|
|
730
|
+
// The specified set of users must contain only human (non-app) memberships.
|
|
731
|
+
// A request that contains non-human users doesn't return any spaces.
|
|
732
|
+
//
|
|
733
|
+
// Requires [user
|
|
734
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
735
|
+
// with one of the following [authorization
|
|
736
|
+
// scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
737
|
+
//
|
|
738
|
+
// - `https://www.googleapis.com/auth/chat.memberships.readonly`
|
|
739
|
+
// - `https://www.googleapis.com/auth/chat.memberships`
|
|
740
|
+
rpc FindGroupChats(FindGroupChatsRequest) returns (FindGroupChatsResponse) {
|
|
741
|
+
option (google.api.http) = {
|
|
742
|
+
get: "/v1/spaces:findGroupChats"
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
|
|
717
746
|
// Creates a membership for the calling Chat app, a user, or a Google Group.
|
|
718
747
|
// Creating memberships for other Chat apps isn't supported.
|
|
719
748
|
// When creating a membership, if the specified member has their auto-accept
|
|
@@ -1074,12 +1103,13 @@ service ChatService {
|
|
|
1074
1103
|
// - [App
|
|
1075
1104
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1076
1105
|
// with [administrator
|
|
1077
|
-
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
1078
|
-
//
|
|
1079
|
-
// with one of the following authorization scopes:
|
|
1106
|
+
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
1107
|
+
// with one of the following authorization scopes:
|
|
1080
1108
|
// - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
1109
|
+
// - `https://www.googleapis.com/auth/chat.app.spaces.readonly`
|
|
1081
1110
|
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
|
|
1082
1111
|
// - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1112
|
+
// - `https://www.googleapis.com/auth/chat.app.memberships.readonly`
|
|
1083
1113
|
//
|
|
1084
1114
|
// - [User
|
|
1085
1115
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
@@ -1123,12 +1153,13 @@ service ChatService {
|
|
|
1123
1153
|
// - [App
|
|
1124
1154
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
|
1125
1155
|
// with [administrator
|
|
1126
|
-
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
1127
|
-
//
|
|
1128
|
-
// with one of the following authorization scopes:
|
|
1156
|
+
// approval](https://support.google.com/a?p=chat-app-auth)
|
|
1157
|
+
// with one of the following authorization scopes:
|
|
1129
1158
|
// - `https://www.googleapis.com/auth/chat.app.spaces`
|
|
1159
|
+
// - `https://www.googleapis.com/auth/chat.app.spaces.readonly`
|
|
1130
1160
|
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
|
|
1131
1161
|
// - `https://www.googleapis.com/auth/chat.app.memberships`
|
|
1162
|
+
// - `https://www.googleapis.com/auth/chat.app.memberships.readonly`
|
|
1132
1163
|
//
|
|
1133
1164
|
// - [User
|
|
1134
1165
|
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
@@ -1191,4 +1222,139 @@ service ChatService {
|
|
|
1191
1222
|
option (google.api.method_signature) =
|
|
1192
1223
|
"space_notification_setting,update_mask";
|
|
1193
1224
|
}
|
|
1225
|
+
|
|
1226
|
+
// Creates a section in Google Chat. Sections help users group conversations
|
|
1227
|
+
// and customize the list of spaces displayed in Chat navigation panel. Only
|
|
1228
|
+
// sections of type `CUSTOM_SECTION` can be created. For details, see [Create
|
|
1229
|
+
// and organize sections in Google
|
|
1230
|
+
// Chat](https://support.google.com/chat/answer/16059854).
|
|
1231
|
+
//
|
|
1232
|
+
// Requires [user
|
|
1233
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1234
|
+
// with the [authorization
|
|
1235
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1236
|
+
//
|
|
1237
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1238
|
+
rpc CreateSection(CreateSectionRequest) returns (Section) {
|
|
1239
|
+
option (google.api.http) = {
|
|
1240
|
+
post: "/v1/{parent=users/*}/sections"
|
|
1241
|
+
body: "section"
|
|
1242
|
+
};
|
|
1243
|
+
option (google.api.method_signature) = "parent,section";
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
// Deletes a section of type `CUSTOM_SECTION`.
|
|
1247
|
+
//
|
|
1248
|
+
// If the section contains items, such as spaces, the items are moved to
|
|
1249
|
+
// Google Chat's default sections and are not deleted.
|
|
1250
|
+
//
|
|
1251
|
+
// For details, see [Create and organize sections in Google
|
|
1252
|
+
// Chat](https://support.google.com/chat/answer/16059854).
|
|
1253
|
+
//
|
|
1254
|
+
// Requires [user
|
|
1255
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1256
|
+
// with the [authorization
|
|
1257
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1258
|
+
//
|
|
1259
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1260
|
+
rpc DeleteSection(DeleteSectionRequest) returns (google.protobuf.Empty) {
|
|
1261
|
+
option (google.api.http) = {
|
|
1262
|
+
delete: "/v1/{name=users/*/sections/*}"
|
|
1263
|
+
};
|
|
1264
|
+
option (google.api.method_signature) = "name";
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
// Updates a section. Only sections of type `CUSTOM_SECTION` can be updated.
|
|
1268
|
+
// For details, see [Create and organize sections in Google
|
|
1269
|
+
// Chat](https://support.google.com/chat/answer/16059854).
|
|
1270
|
+
//
|
|
1271
|
+
// Requires [user
|
|
1272
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1273
|
+
// with the [authorization
|
|
1274
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1275
|
+
//
|
|
1276
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1277
|
+
rpc UpdateSection(UpdateSectionRequest) returns (Section) {
|
|
1278
|
+
option (google.api.http) = {
|
|
1279
|
+
patch: "/v1/{section.name=users/*/sections/*}"
|
|
1280
|
+
body: "section"
|
|
1281
|
+
};
|
|
1282
|
+
option (google.api.method_signature) = "section,update_mask";
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// Lists sections available to the Chat user. Sections help users group their
|
|
1286
|
+
// conversations and customize the list of spaces displayed in Chat
|
|
1287
|
+
// navigation panel. For details, see [Create and organize sections in Google
|
|
1288
|
+
// Chat](https://support.google.com/chat/answer/16059854).
|
|
1289
|
+
//
|
|
1290
|
+
// Requires [user
|
|
1291
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1292
|
+
// with the [authorization
|
|
1293
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1294
|
+
//
|
|
1295
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1296
|
+
// - `https://www.googleapis.com/auth/chat.users.sections.readonly`
|
|
1297
|
+
rpc ListSections(ListSectionsRequest) returns (ListSectionsResponse) {
|
|
1298
|
+
option (google.api.http) = {
|
|
1299
|
+
get: "/v1/{parent=users/*}/sections"
|
|
1300
|
+
};
|
|
1301
|
+
option (google.api.method_signature) = "parent";
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
// Changes the sort order of a section. For details, see [Create and organize
|
|
1305
|
+
// sections in Google Chat](https://support.google.com/chat/answer/16059854).
|
|
1306
|
+
//
|
|
1307
|
+
// Requires [user
|
|
1308
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1309
|
+
// with the [authorization
|
|
1310
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1311
|
+
//
|
|
1312
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1313
|
+
rpc PositionSection(PositionSectionRequest)
|
|
1314
|
+
returns (PositionSectionResponse) {
|
|
1315
|
+
option (google.api.http) = {
|
|
1316
|
+
post: "/v1/{name=users/*/sections/*}:position"
|
|
1317
|
+
body: "*"
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
// Lists items in a section.
|
|
1322
|
+
//
|
|
1323
|
+
// Only spaces can be section items. For details, see [Create and organize
|
|
1324
|
+
// sections in Google Chat](https://support.google.com/chat/answer/16059854).
|
|
1325
|
+
//
|
|
1326
|
+
// Requires [user
|
|
1327
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1328
|
+
// with the [authorization
|
|
1329
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1330
|
+
//
|
|
1331
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1332
|
+
// - `https://www.googleapis.com/auth/chat.users.sections.readonly`
|
|
1333
|
+
rpc ListSectionItems(ListSectionItemsRequest)
|
|
1334
|
+
returns (ListSectionItemsResponse) {
|
|
1335
|
+
option (google.api.http) = {
|
|
1336
|
+
get: "/v1/{parent=users/*/sections/*}/items"
|
|
1337
|
+
};
|
|
1338
|
+
option (google.api.method_signature) = "parent";
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
// Moves an item from one section to another. For example, if a section
|
|
1342
|
+
// contains spaces, this method can be used to move a space to a different
|
|
1343
|
+
// section. For details, see [Create and organize sections in Google
|
|
1344
|
+
// Chat](https://support.google.com/chat/answer/16059854).
|
|
1345
|
+
//
|
|
1346
|
+
// Requires [user
|
|
1347
|
+
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1348
|
+
// with the [authorization
|
|
1349
|
+
// scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1350
|
+
//
|
|
1351
|
+
// - `https://www.googleapis.com/auth/chat.users.sections`
|
|
1352
|
+
rpc MoveSectionItem(MoveSectionItemRequest)
|
|
1353
|
+
returns (MoveSectionItemResponse) {
|
|
1354
|
+
option (google.api.http) = {
|
|
1355
|
+
post: "/v1/{name=users/*/sections/*/items/*}:move"
|
|
1356
|
+
body: "*"
|
|
1357
|
+
};
|
|
1358
|
+
option (google.api.method_signature) = "name,target_section";
|
|
1359
|
+
}
|
|
1194
1360
|
}
|
|
@@ -204,6 +204,10 @@ message Message {
|
|
|
204
204
|
// `false`.
|
|
205
205
|
bool thread_reply = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
206
206
|
|
|
207
|
+
// Output only. Whether this is a silent message. Silent messages are messages
|
|
208
|
+
// where Chat suppresses push notifications for recipients.
|
|
209
|
+
bool silent = 46 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
210
|
+
|
|
207
211
|
// Optional. A custom ID for the message. You can use field to identify a
|
|
208
212
|
// message, or to get, delete, or update a message. To set a custom ID,
|
|
209
213
|
// specify the
|
|
@@ -646,6 +650,43 @@ message CreateMessageRequest {
|
|
|
646
650
|
// For details, see [Name a
|
|
647
651
|
// message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
|
|
648
652
|
string message_id = 9 [(google.api.field_behavior) = OPTIONAL];
|
|
653
|
+
|
|
654
|
+
// Optional. Controls the notification behavior when the message is posted.
|
|
655
|
+
// To learn more, see [Force notifications or send silent
|
|
656
|
+
// messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
|
|
657
|
+
CreateMessageNotificationOptions create_message_notification_options = 10
|
|
658
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
// Options for the notification behavior when the message is posted.
|
|
662
|
+
message CreateMessageNotificationOptions {
|
|
663
|
+
// The notification types options for the message.
|
|
664
|
+
enum NotificationType {
|
|
665
|
+
// Default behavior. Notification behavior is similar to when the human user
|
|
666
|
+
// sends the message using the Chat UI: no notification is sent to the
|
|
667
|
+
// human sender.
|
|
668
|
+
NOTIFICATION_TYPE_NONE = 0;
|
|
669
|
+
|
|
670
|
+
// Force notify recipients. This bypasses users' space notification settings
|
|
671
|
+
// and [Chat Do Not Disturb
|
|
672
|
+
// settings](https://support.google.com/chat/answer/9093489). This option
|
|
673
|
+
// does not bypass device-level Do Not Disturb settings.
|
|
674
|
+
//
|
|
675
|
+
// Requires [app authentication]
|
|
676
|
+
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
677
|
+
NOTIFICATION_TYPE_FORCE_NOTIFY = 2;
|
|
678
|
+
|
|
679
|
+
// Silence the notification as if the recipients have [Chat Do Not
|
|
680
|
+
// Disturb](https://support.google.com/chat/answer/9093489) enabled or
|
|
681
|
+
// have muted the space.
|
|
682
|
+
//
|
|
683
|
+
// Requires [app authentication]
|
|
684
|
+
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
|
|
685
|
+
NOTIFICATION_TYPE_SILENT = 3;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// The notification type for the message.
|
|
689
|
+
NotificationType notification_type = 1;
|
|
649
690
|
}
|
|
650
691
|
|
|
651
692
|
// Lists messages in the specified space, that the user is a member of.
|