Skip to content

Commit 17071ef

Browse files
fix(chat): update the api
#### chat:v1 The following keys were changed: - resources.spaces.methods.delete.scopes (Total Keys: 1) - resources.spaces.methods.get.scopes (Total Keys: 1) - resources.spaces.methods.patch.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.create.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.delete.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.get.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.list.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.patch.scopes (Total Keys: 1)
1 parent 80d6281 commit 17071ef

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

docs/dyn/chat_v1.spaces.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h2>Instance Methods</h2>
109109
<p class="firstline">Returns details about a space. For an example, see [Get details about a space](https://developers.google.com/workspace/chat/get-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).</p>
110110
<p class="toc_element">
111111
<code><a href="#list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
112-
<p class="firstline">Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the `spaces.search()` method using Workspace administrator privileges instead.</p>
112+
<p class="firstline">Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace administrator privileges instead.</p>
113113
<p class="toc_element">
114114
<code><a href="#list_next">list_next()</a></code></p>
115115
<p class="firstline">Retrieves the next page of results.</p>
@@ -311,7 +311,7 @@ <h3>Method Details</h3>
311311

312312
<div class="method">
313313
<code class="details" id="list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
314-
<pre>Lists spaces the caller is a member of. Group chats and DMs aren&#x27;t listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren&#x27;t listed until the first message is sent. To list all named spaces by Google Workspace organization, use the `spaces.search()` method using Workspace administrator privileges instead.
314+
<pre>Lists spaces the caller is a member of. Group chats and DMs aren&#x27;t listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren&#x27;t listed until the first message is sent. To list all named spaces by Google Workspace organization, use the [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace administrator privileges instead.
315315

316316
Args:
317317
filter: string, Optional. A query filter. You can filter spaces by the space type ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can&#x27;t be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = &quot;SPACE&quot; spaceType = &quot;GROUP_CHAT&quot; OR spaceType = &quot;DIRECT_MESSAGE&quot; ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error.

googleapiclient/discovery_cache/documents/chat.v1.json

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
"auth": {
33
"oauth2": {
44
"scopes": {
5+
"https://www.googleapis.com/auth/chat.admin.delete": {
6+
"description": "Delete conversations and spaces owned by your organization and remove access to associated files in Google Chat"
7+
},
8+
"https://www.googleapis.com/auth/chat.admin.memberships": {
9+
"description": "View, add, update and remove members and managers in conversations owned by your organization"
10+
},
11+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly": {
12+
"description": "View members and managers in conversations owned by your organization"
13+
},
14+
"https://www.googleapis.com/auth/chat.admin.spaces": {
15+
"description": "View or edit display name, description, and other metadata for all Google Chat conversations owned by your organization"
16+
},
17+
"https://www.googleapis.com/auth/chat.admin.spaces.readonly": {
18+
"description": "View display name, description, and other metadata for all Google Chat conversations owned by your organization"
19+
},
520
"https://www.googleapis.com/auth/chat.bot": {
621
"description": "Private Service: https://www.googleapis.com/auth/chat.bot"
722
},
@@ -310,6 +325,7 @@
310325
"$ref": "Empty"
311326
},
312327
"scopes": [
328+
"https://www.googleapis.com/auth/chat.admin.delete",
313329
"https://www.googleapis.com/auth/chat.delete",
314330
"https://www.googleapis.com/auth/chat.import"
315331
]
@@ -359,13 +375,15 @@
359375
"$ref": "Space"
360376
},
361377
"scopes": [
378+
"https://www.googleapis.com/auth/chat.admin.spaces",
379+
"https://www.googleapis.com/auth/chat.admin.spaces.readonly",
362380
"https://www.googleapis.com/auth/chat.bot",
363381
"https://www.googleapis.com/auth/chat.spaces",
364382
"https://www.googleapis.com/auth/chat.spaces.readonly"
365383
]
366384
},
367385
"list": {
368-
"description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the `spaces.search()` method using Workspace administrator privileges instead.",
386+
"description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Requires [authentication](https://developers.google.com/workspace/chat/authenticate-authorize). Supports [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent. To list all named spaces by Google Workspace organization, use the [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace administrator privileges instead.",
369387
"flatPath": "v1/spaces",
370388
"httpMethod": "GET",
371389
"id": "chat.spaces.list",
@@ -429,6 +447,7 @@
429447
"$ref": "Space"
430448
},
431449
"scopes": [
450+
"https://www.googleapis.com/auth/chat.admin.spaces",
432451
"https://www.googleapis.com/auth/chat.import",
433452
"https://www.googleapis.com/auth/chat.spaces"
434453
]
@@ -481,6 +500,7 @@
481500
"$ref": "Membership"
482501
},
483502
"scopes": [
503+
"https://www.googleapis.com/auth/chat.admin.memberships",
484504
"https://www.googleapis.com/auth/chat.import",
485505
"https://www.googleapis.com/auth/chat.memberships",
486506
"https://www.googleapis.com/auth/chat.memberships.app"
@@ -508,6 +528,7 @@
508528
"$ref": "Membership"
509529
},
510530
"scopes": [
531+
"https://www.googleapis.com/auth/chat.admin.memberships",
511532
"https://www.googleapis.com/auth/chat.import",
512533
"https://www.googleapis.com/auth/chat.memberships",
513534
"https://www.googleapis.com/auth/chat.memberships.app"
@@ -535,6 +556,8 @@
535556
"$ref": "Membership"
536557
},
537558
"scopes": [
559+
"https://www.googleapis.com/auth/chat.admin.memberships",
560+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
538561
"https://www.googleapis.com/auth/chat.bot",
539562
"https://www.googleapis.com/auth/chat.memberships",
540563
"https://www.googleapis.com/auth/chat.memberships.readonly"
@@ -588,6 +611,8 @@
588611
"$ref": "ListMembershipsResponse"
589612
},
590613
"scopes": [
614+
"https://www.googleapis.com/auth/chat.admin.memberships",
615+
"https://www.googleapis.com/auth/chat.admin.memberships.readonly",
591616
"https://www.googleapis.com/auth/chat.bot",
592617
"https://www.googleapis.com/auth/chat.import",
593618
"https://www.googleapis.com/auth/chat.memberships",
@@ -625,6 +650,7 @@
625650
"$ref": "Membership"
626651
},
627652
"scopes": [
653+
"https://www.googleapis.com/auth/chat.admin.memberships",
628654
"https://www.googleapis.com/auth/chat.import",
629655
"https://www.googleapis.com/auth/chat.memberships"
630656
]
@@ -1215,7 +1241,7 @@
12151241
}
12161242
}
12171243
},
1218-
"revision": "20240521",
1244+
"revision": "20240604",
12191245
"rootUrl": "https://chat.googleapis.com/",
12201246
"schemas": {
12211247
"AccessoryWidget": {
@@ -1665,7 +1691,7 @@
16651691
"The add-on launches from Google Sheets.",
16661692
"The add-on launches from Google Slides.",
16671693
"The add-on launches from Google Drawings.",
1668-
"A Google Chat app. Not used for Google Workspace Add-ons."
1694+
"A Google Chat app."
16691695
],
16701696
"type": "string"
16711697
},
@@ -2692,11 +2718,13 @@
26922718
"description": "A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.",
26932719
"enum": [
26942720
"UNKNOWN",
2695-
"USER"
2721+
"USER",
2722+
"DRIVE"
26962723
],
26972724
"enumDescriptions": [
26982725
"Default value. Don't use.",
2699-
"Google Workspace users. The user can only view and select users from their Google Workspace organization."
2726+
"Google Workspace users. The user can only view and select users from their Google Workspace organization.",
2727+
"Represents a data source from Google Drive OnePick."
27002728
],
27012729
"type": "string"
27022730
},

0 commit comments

Comments
 (0)