Skip to content

Commit 8d52a0b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Support app authentication with admin-consent scopes for Chat API ListMessages, GetMessage, GetSpaceEvent and ListSpaceEvents
docs: Update reference documentation for Chat API ListMessages, GetMessage, GetSpaceEvent and ListSpaceEvents. PiperOrigin-RevId: 893619899
1 parent 8edddcb commit 8d52a0b

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

google/chat/v1/chat_service.proto

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ service ChatService {
5252
"https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
5353
"https://www.googleapis.com/auth/chat.app.delete,"
5454
"https://www.googleapis.com/auth/chat.app.memberships,"
55+
"https://www.googleapis.com/auth/chat.app.memberships.readonly,"
5556
"https://www.googleapis.com/auth/chat.app.messages.readonly,"
5657
"https://www.googleapis.com/auth/chat.app.spaces,"
5758
"https://www.googleapis.com/auth/chat.app.spaces.create,"
59+
"https://www.googleapis.com/auth/chat.app.spaces.readonly,"
5860
"https://www.googleapis.com/auth/chat.bot,"
5961
"https://www.googleapis.com/auth/chat.customemojis,"
6062
"https://www.googleapis.com/auth/chat.customemojis.readonly,"
@@ -145,9 +147,8 @@ service ChatService {
145147
// - [App
146148
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
147149
// with [administrator
148-
// approval](https://support.google.com/a?p=chat-app-auth) in
149-
// [Developer Preview](https://developers.google.com/workspace/preview)
150-
// with the authorization scope:
150+
// approval](https://support.google.com/a?p=chat-app-auth)
151+
// with the authorization scope:
151152
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
152153
// using this authentication scope, this method only returns public
153154
// messages in a space. It doesn't include private messages.
@@ -256,8 +257,7 @@ service ChatService {
256257
// that invoke the Chat app.
257258
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
258259
// with [administrator
259-
// approval](https://support.google.com/a?p=chat-app-auth) (available in
260-
// [Developer Preview](https://developers.google.com/workspace/preview)).
260+
// approval](https://support.google.com/a?p=chat-app-auth).
261261
// When using this authentication scope,
262262
// this method returns details about a public message in a space.
263263
//
@@ -1077,12 +1077,13 @@ service ChatService {
10771077
// - [App
10781078
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
10791079
// with [administrator
1080-
// approval](https://support.google.com/a?p=chat-app-auth) in
1081-
// [Developer Preview](https://developers.google.com/workspace/preview)
1082-
// with one of the following authorization scopes:
1080+
// approval](https://support.google.com/a?p=chat-app-auth)
1081+
// with one of the following authorization scopes:
10831082
// - `https://www.googleapis.com/auth/chat.app.spaces`
1083+
// - `https://www.googleapis.com/auth/chat.app.spaces.readonly`
10841084
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
10851085
// - `https://www.googleapis.com/auth/chat.app.memberships`
1086+
// - `https://www.googleapis.com/auth/chat.app.memberships.readonly`
10861087
//
10871088
// - [User
10881089
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
@@ -1126,12 +1127,13 @@ service ChatService {
11261127
// - [App
11271128
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
11281129
// with [administrator
1129-
// approval](https://support.google.com/a?p=chat-app-auth) in
1130-
// [Developer Preview](https://developers.google.com/workspace/preview)
1131-
// with one of the following authorization scopes:
1130+
// approval](https://support.google.com/a?p=chat-app-auth)
1131+
// with one of the following authorization scopes:
11321132
// - `https://www.googleapis.com/auth/chat.app.spaces`
1133+
// - `https://www.googleapis.com/auth/chat.app.spaces.readonly`
11331134
// - `https://www.googleapis.com/auth/chat.app.messages.readonly`
11341135
// - `https://www.googleapis.com/auth/chat.app.memberships`
1136+
// - `https://www.googleapis.com/auth/chat.app.memberships.readonly`
11351137
//
11361138
// - [User
11371139
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)

google/chat/v1/chat_v1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ authentication:
135135
oauth:
136136
canonical_scopes: |-
137137
https://www.googleapis.com/auth/chat.app.memberships,
138+
https://www.googleapis.com/auth/chat.app.memberships.readonly,
138139
https://www.googleapis.com/auth/chat.app.messages.readonly,
139140
https://www.googleapis.com/auth/chat.app.spaces,
141+
https://www.googleapis.com/auth/chat.app.spaces.readonly,
140142
https://www.googleapis.com/auth/chat.memberships,
141143
https://www.googleapis.com/auth/chat.memberships.readonly,
142144
https://www.googleapis.com/auth/chat.messages,
@@ -202,8 +204,10 @@ authentication:
202204
oauth:
203205
canonical_scopes: |-
204206
https://www.googleapis.com/auth/chat.app.memberships,
207+
https://www.googleapis.com/auth/chat.app.memberships.readonly,
205208
https://www.googleapis.com/auth/chat.app.messages.readonly,
206209
https://www.googleapis.com/auth/chat.app.spaces,
210+
https://www.googleapis.com/auth/chat.app.spaces.readonly,
207211
https://www.googleapis.com/auth/chat.memberships,
208212
https://www.googleapis.com/auth/chat.memberships.readonly,
209213
https://www.googleapis.com/auth/chat.messages,

0 commit comments

Comments
 (0)