@@ -51,6 +51,7 @@ service ChatService {
5151 "https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
5252 "https://www.googleapis.com/auth/chat.app.delete,"
5353 "https://www.googleapis.com/auth/chat.app.memberships,"
54+ "https://www.googleapis.com/auth/chat.app.messages.readonly,"
5455 "https://www.googleapis.com/auth/chat.app.spaces,"
5556 "https://www.googleapis.com/auth/chat.app.spaces.create,"
5657 "https://www.googleapis.com/auth/chat.bot,"
@@ -127,21 +128,34 @@ service ChatService {
127128 }
128129
129130 // Lists messages in a space that the caller is a member of, including
130- // messages from blocked members and spaces. If you list messages from a
131+ // messages from blocked members and spaces. System messages, like those
132+ // announcing new space members, aren't included. If you list messages from a
131133 // space with no messages, the response is an empty object. When using a
132134 // REST/HTTP interface, the response contains an empty JSON object, `{}`.
133135 // For an example, see
134136 // [List
135137 // messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
136138 //
137- // Requires [user
138- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
139- // with one of the following [authorization
140- // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
139+ // Supports the following types of
140+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
141141 //
142- // - `https://www.googleapis.com/auth/chat.messages.readonly`
143- // - `https://www.googleapis.com/auth/chat.messages`
144- // - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
142+ // - [App
143+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
144+ // with [administrator
145+ // approval](https://support.google.com/a?p=chat-app-auth) in
146+ // [Developer Preview](https://developers.google.com/workspace/preview)
147+ // with the authorization scope:
148+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
149+ // using this authentication scope, this method only returns public
150+ // messages in a space. It doesn't include private messages.
151+ //
152+ // - [User
153+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
154+ // with one of the following authorization scopes:
155+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
156+ // - `https://www.googleapis.com/auth/chat.messages`
157+ // - `https://www.googleapis.com/auth/chat.import` (import mode spaces
158+ // only)
145159 rpc ListMessages (ListMessagesRequest ) returns (ListMessagesResponse ) {
146160 option (google.api.http ) = {
147161 get : "/v1/{parent=spaces/*}/messages"
@@ -231,8 +245,18 @@ service ChatService {
231245 //
232246 // - [App
233247 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
234- // with the authorization scope:
235- // - `https://www.googleapis.com/auth/chat.bot`
248+ // with one of the following authorization scopes:
249+ // - `https://www.googleapis.com/auth/chat.bot`: When using this
250+ // authorization scope, this method returns details about a message the
251+ // Chat app has access to, like direct messages and [slash
252+ // commands](https://developers.google.com/workspace/chat/slash-commands)
253+ // that invoke the Chat app.
254+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
255+ // with [administrator
256+ // approval](https://support.google.com/a?p=chat-app-auth) (available in
257+ // [Developer Preview](https://developers.google.com/workspace/preview)).
258+ // When using this authentication scope,
259+ // this method returns details about a public message in a space.
236260 //
237261 // - [User
238262 // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
@@ -386,7 +410,9 @@ service ChatService {
386410 }
387411
388412 // Returns a list of spaces in a Google Workspace organization based on an
389- // administrator's search.
413+ // administrator's search. In the request, set `use_admin_access` to `true`.
414+ // For an example, see [Search for and manage
415+ // spaces](https://developers.google.com/workspace/chat/search-manage-admin).
390416 //
391417 // Requires [user
392418 // authentication with administrator
@@ -396,8 +422,6 @@ service ChatService {
396422 //
397423 // - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
398424 // - `https://www.googleapis.com/auth/chat.admin.spaces`
399- //
400- // In the request, set `use_admin_access` to `true`.
401425 rpc SearchSpaces (SearchSpacesRequest ) returns (SearchSpacesResponse ) {
402426 option (google.api.http ) = {
403427 get : "/v1/spaces:search"
@@ -1040,22 +1064,36 @@ service ChatService {
10401064 // Note: The `permissionSettings` field is not returned in the Space
10411065 // object of the Space event data for this request.
10421066 //
1043- // Requires [user
1044- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1045- // with an [authorization
1067+ // Supports the following types of
1068+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
1069+ // with an
1070+ // [authorization
10461071 // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
10471072 // appropriate for reading the requested data:
10481073 //
1049- // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1050- // - `https://www.googleapis.com/auth/chat.spaces`
1051- // - `https://www.googleapis.com/auth/chat.messages.readonly`
1052- // - `https://www.googleapis.com/auth/chat.messages`
1053- // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1054- // - `https://www.googleapis.com/auth/chat.messages.reactions`
1055- // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1056- // - `https://www.googleapis.com/auth/chat.memberships`
1074+ // - [App
1075+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1076+ // with [administrator
1077+ // approval](https://support.google.com/a?p=chat-app-auth) in
1078+ // [Developer Preview](https://developers.google.com/workspace/preview)
1079+ // with one of the following authorization scopes:
1080+ // - `https://www.googleapis.com/auth/chat.app.spaces`
1081+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1082+ // - `https://www.googleapis.com/auth/chat.app.memberships`
1083+ //
1084+ // - [User
1085+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1086+ // with one of the following authorization scopes:
1087+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1088+ // - `https://www.googleapis.com/auth/chat.spaces`
1089+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
1090+ // - `https://www.googleapis.com/auth/chat.messages`
1091+ // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1092+ // - `https://www.googleapis.com/auth/chat.messages.reactions`
1093+ // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1094+ // - `https://www.googleapis.com/auth/chat.memberships`
10571095 //
1058- // To get an event, the authenticated user must be a member of the space.
1096+ // To get an event, the authenticated caller must be a member of the space.
10591097 //
10601098 // For an example, see [Get details about an
10611099 // event from a Google Chat
@@ -1075,22 +1113,36 @@ service ChatService {
10751113 // removed during the requested period, the event payload contains an empty
10761114 // `Membership` resource.
10771115 //
1078- // Requires [user
1079- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1080- // with an [authorization
1116+ // Supports the following types of
1117+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
1118+ // with an
1119+ // [authorization
10811120 // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
10821121 // appropriate for reading the requested data:
10831122 //
1084- // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1085- // - `https://www.googleapis.com/auth/chat.spaces`
1086- // - `https://www.googleapis.com/auth/chat.messages.readonly`
1087- // - `https://www.googleapis.com/auth/chat.messages`
1088- // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1089- // - `https://www.googleapis.com/auth/chat.messages.reactions`
1090- // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1091- // - `https://www.googleapis.com/auth/chat.memberships`
1123+ // - [App
1124+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1125+ // with [administrator
1126+ // approval](https://support.google.com/a?p=chat-app-auth) in
1127+ // [Developer Preview](https://developers.google.com/workspace/preview)
1128+ // with one of the following authorization scopes:
1129+ // - `https://www.googleapis.com/auth/chat.app.spaces`
1130+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1131+ // - `https://www.googleapis.com/auth/chat.app.memberships`
1132+ //
1133+ // - [User
1134+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1135+ // with one of the following authorization scopes:
1136+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1137+ // - `https://www.googleapis.com/auth/chat.spaces`
1138+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
1139+ // - `https://www.googleapis.com/auth/chat.messages`
1140+ // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1141+ // - `https://www.googleapis.com/auth/chat.messages.reactions`
1142+ // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1143+ // - `https://www.googleapis.com/auth/chat.memberships`
10921144 //
1093- // To list events, the authenticated user must be a member of the space.
1145+ // To list events, the authenticated caller must be a member of the space.
10941146 //
10951147 // For an example, see [List events from a Google Chat
10961148 // space](https://developers.google.com/workspace/chat/list-space-events).
0 commit comments