@maxim_mazurok/gapi.client.chat-v1 0.0.20240521 → 0.0.20240528
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/index.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +16 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240528
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -2102,7 +2102,7 @@ declare namespace gapi.client {
|
|
|
2102
2102
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2103
2103
|
uploadType?: string;
|
|
2104
2104
|
}): Request<Space>;
|
|
2105
|
-
/** 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. */
|
|
2105
|
+
/** 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. */
|
|
2106
2106
|
list(request?: {
|
|
2107
2107
|
/** V1 error format. */
|
|
2108
2108
|
'$.xgafv'?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -48,6 +48,21 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
48
48
|
// declare client_id registered in Google Developers Console
|
|
49
49
|
var client_id = '',
|
|
50
50
|
scope = [
|
|
51
|
+
// Delete conversations and spaces owned by your organization and remove access to associated files in Google Chat
|
|
52
|
+
'https://www.googleapis.com/auth/chat.admin.delete',
|
|
53
|
+
|
|
54
|
+
// View, add, update and remove members and managers in conversations owned by your organization
|
|
55
|
+
'https://www.googleapis.com/auth/chat.admin.memberships',
|
|
56
|
+
|
|
57
|
+
// View members and managers in conversations owned by your organization
|
|
58
|
+
'https://www.googleapis.com/auth/chat.admin.memberships.readonly',
|
|
59
|
+
|
|
60
|
+
// View or edit display name, description, and other metadata for all Google Chat conversations owned by your organization
|
|
61
|
+
'https://www.googleapis.com/auth/chat.admin.spaces',
|
|
62
|
+
|
|
63
|
+
// View display name, description, and other metadata for all Google Chat conversations owned by your organization
|
|
64
|
+
'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
|
|
65
|
+
|
|
51
66
|
// Private Service: https://www.googleapis.com/auth/chat.bot
|
|
52
67
|
'https://www.googleapis.com/auth/chat.bot',
|
|
53
68
|
|
|
@@ -153,7 +168,7 @@ Returns details about a space. For an example, see [Get details about a space](h
|
|
|
153
168
|
await gapi.client.chat.spaces.get({name: 'name'});
|
|
154
169
|
|
|
155
170
|
/*
|
|
156
|
-
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.
|
|
171
|
+
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.
|
|
157
172
|
*/
|
|
158
173
|
await gapi.client.chat.spaces.list({});
|
|
159
174
|
|