From d28f4691ede4d3ba50adaefd49438f5eb64d5851 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 8 Nov 2022 07:07:42 +0000 Subject: [PATCH] feat(chat): update the api #### chat:v1 The following keys were added: - resources.media.methods.download.scopes (Total Keys: 1) - resources.spaces.resources.messages.methods.create.scopes (Total Keys: 1) - resources.spaces.resources.messages.methods.delete.scopes (Total Keys: 1) - resources.spaces.resources.messages.methods.get.scopes (Total Keys: 1) - resources.spaces.resources.messages.methods.update.scopes (Total Keys: 1) --- .../discovery_cache/documents/chat.v1.json | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/googleapiclient/discovery_cache/documents/chat.v1.json b/googleapiclient/discovery_cache/documents/chat.v1.json index 107b7a58d88..93d43561b86 100644 --- a/googleapiclient/discovery_cache/documents/chat.v1.json +++ b/googleapiclient/discovery_cache/documents/chat.v1.json @@ -4,6 +4,15 @@ "scopes": { "https://www.googleapis.com/auth/chat.memberships": { "description": "View, add, and remove members from conversations in Google Chat" + }, + "https://www.googleapis.com/auth/chat.messages": { + "description": "View, compose, send, update, and delete messages, and add, view, and delete reactions to messages." + }, + "https://www.googleapis.com/auth/chat.messages.create": { + "description": "Compose and send messages in Google Chat" + }, + "https://www.googleapis.com/auth/chat.messages.readonly": { + "description": "view messages and reactions in Google Chat" } } } @@ -303,6 +312,10 @@ "response": { "$ref": "Media" }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.readonly" + ], "supportsMediaDownload": true } } @@ -707,7 +720,11 @@ }, "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.create" + ] }, "delete": { "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", @@ -729,7 +746,10 @@ "path": "v1/{+name}", "response": { "$ref": "Empty" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages" + ] }, "get": { "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", @@ -751,7 +771,11 @@ "path": "v1/{+name}", "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.readonly" + ] }, "update": { "description": "Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", @@ -787,7 +811,10 @@ }, "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages" + ] } }, "resources": { @@ -822,7 +849,7 @@ } } }, - "revision": "20221027", + "revision": "20221103", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": {