@maxim_mazurok/gapi.client.chat-v1 0.0.20230801 → 0.0.20230806
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 +46 -37
- package/package.json +2 -2
- package/readme.md +3 -3
- package/tests.ts +8 -5
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: 20230806
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -75,22 +75,22 @@ declare namespace gapi.client {
|
|
|
75
75
|
/** A reference to the attachment data. This field is used with the media API to download the attachment data. */
|
|
76
76
|
attachmentDataRef?:
|
|
77
77
|
AttachmentDataRef;
|
|
78
|
-
/** The original file name for the content, not the full path. */
|
|
78
|
+
/** Output only. The original file name for the content, not the full path. */
|
|
79
79
|
contentName?:
|
|
80
80
|
string;
|
|
81
|
-
/** The content type (MIME type) of the file. */
|
|
81
|
+
/** Output only. The content type (MIME type) of the file. */
|
|
82
82
|
contentType?:
|
|
83
83
|
string;
|
|
84
84
|
/** Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content. */
|
|
85
85
|
downloadUri?:
|
|
86
86
|
string;
|
|
87
|
-
/** A reference to the
|
|
87
|
+
/** Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API. */
|
|
88
88
|
driveDataRef?:
|
|
89
89
|
DriveDataRef;
|
|
90
90
|
/** Resource name of the attachment, in the form `spaces/*/messages/*/attachments/*`. */
|
|
91
91
|
name?:
|
|
92
92
|
string;
|
|
93
|
-
/** The source of the attachment. */
|
|
93
|
+
/** Output only. The source of the attachment. */
|
|
94
94
|
source?:
|
|
95
95
|
string;
|
|
96
96
|
/** Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content. */
|
|
@@ -728,7 +728,7 @@ declare namespace gapi.client {
|
|
|
728
728
|
GoogleAppsCardV1Card;
|
|
729
729
|
/**
|
|
730
730
|
* An add-on triggers this action when the action needs to open a link. This differs from the `open_link` above in that this needs to talk to server to get the link. Thus some
|
|
731
|
-
* preparation work is required for web client to do before the open link action response comes back.
|
|
731
|
+
* preparation work is required for web client to do before the open link action response comes back. Supported by Google Workspace Add-ons, but not Google Chat apps.
|
|
732
732
|
*/
|
|
733
733
|
openDynamicLinkAction?:
|
|
734
734
|
GoogleAppsCardV1Action;
|
|
@@ -1281,7 +1281,10 @@ declare namespace gapi.client {
|
|
|
1281
1281
|
*/
|
|
1282
1282
|
space?:
|
|
1283
1283
|
Space;
|
|
1284
|
-
/**
|
|
1284
|
+
/**
|
|
1285
|
+
* Plain-text body of the message. The first link to an image, video, or web page generates a preview chip. You can also @mention a Google Chat user, or everyone in the space. To learn
|
|
1286
|
+
* about creating text messages, see [Create a text message](https://developers.google.com/chat/api/guides/message-formats/text).
|
|
1287
|
+
*/
|
|
1285
1288
|
text?:
|
|
1286
1289
|
string;
|
|
1287
1290
|
/**
|
|
@@ -1360,11 +1363,12 @@ declare namespace gapi.client {
|
|
|
1360
1363
|
requestId?:
|
|
1361
1364
|
string;
|
|
1362
1365
|
/**
|
|
1363
|
-
* Required. The `Space.spaceType` field is required. To create a space, set `Space.spaceType` to `SPACE` and set `Space.displayName`.
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1366
|
-
* `Space.singleUserBotDm` to `
|
|
1367
|
-
*
|
|
1366
|
+
* Required. The `Space.spaceType` field is required. To create a space, set `Space.spaceType` to `SPACE` and set `Space.displayName`. If you receive the error message `ALREADY_EXISTS`
|
|
1367
|
+
* when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. To create a group chat, set
|
|
1368
|
+
* `Space.spaceType` to `GROUP_CHAT`. Don't set `Space.displayName`. To create a 1:1 conversation between humans, set `Space.spaceType` to `DIRECT_MESSAGE` and set
|
|
1369
|
+
* `Space.singleUserBotDm` to `false`. Don't set `Space.displayName` or `Space.spaceDetails`. To create an 1:1 conversation between a human and the calling Chat app, set
|
|
1370
|
+
* `Space.spaceType` to `DIRECT_MESSAGE` and `Space.singleUserBotDm` to `true`. Don't set `Space.displayName` or `Space.spaceDetails`. If a `DIRECT_MESSAGE` space already exists, that
|
|
1371
|
+
* space is returned instead of creating a new space.
|
|
1368
1372
|
*/
|
|
1369
1373
|
space?:
|
|
1370
1374
|
Space;
|
|
@@ -1399,8 +1403,9 @@ declare namespace gapi.client {
|
|
|
1399
1403
|
adminInstalled?:
|
|
1400
1404
|
boolean;
|
|
1401
1405
|
/**
|
|
1402
|
-
* The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create).
|
|
1403
|
-
*
|
|
1406
|
+
* The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). If you receive the error message `ALREADY_EXISTS`
|
|
1407
|
+
* when creating a space or updating the `displayName`, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name.
|
|
1408
|
+
* For direct messages, this field might be empty. Supports up to 128 characters.
|
|
1404
1409
|
*/
|
|
1405
1410
|
displayName?:
|
|
1406
1411
|
string;
|
|
@@ -1483,10 +1488,7 @@ declare namespace gapi.client {
|
|
|
1483
1488
|
/** Resource name of the thread. Example: `spaces/{space}/threads/{thread}` */
|
|
1484
1489
|
name?:
|
|
1485
1490
|
string;
|
|
1486
|
-
/**
|
|
1487
|
-
* Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message
|
|
1488
|
-
* thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
|
|
1489
|
-
*/
|
|
1491
|
+
/** Optional. ID for the thread. Supports up to 4000 characters. Input for creating or updating a thread. Otherwise, output only. */
|
|
1490
1492
|
threadKey?:
|
|
1491
1493
|
string;
|
|
1492
1494
|
}
|
|
@@ -2248,8 +2250,8 @@ declare namespace gapi.client {
|
|
|
2248
2250
|
requestId?:
|
|
2249
2251
|
string;
|
|
2250
2252
|
/**
|
|
2251
|
-
* Optional. Deprecated: Use thread.thread_key instead.
|
|
2252
|
-
* example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2253
|
+
* Optional. Deprecated: Use thread.thread_key instead. ID for the thread. Supports up to 4000 characters. To start or add to a thread, create a message and specify a `threadKey`
|
|
2254
|
+
* or the thread.name. For example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2253
2255
|
*/
|
|
2254
2256
|
threadKey?:
|
|
2255
2257
|
string;
|
|
@@ -2311,8 +2313,8 @@ declare namespace gapi.client {
|
|
|
2311
2313
|
requestId?:
|
|
2312
2314
|
string;
|
|
2313
2315
|
/**
|
|
2314
|
-
* Optional. Deprecated: Use thread.thread_key instead.
|
|
2315
|
-
* example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2316
|
+
* Optional. Deprecated: Use thread.thread_key instead. ID for the thread. Supports up to 4000 characters. To start or add to a thread, create a message and specify a `threadKey`
|
|
2317
|
+
* or the thread.name. For example usage, see [Start or reply to a message thread](https://developers.google.com/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
|
|
2316
2318
|
*/
|
|
2317
2319
|
threadKey?:
|
|
2318
2320
|
string;
|
|
@@ -2731,8 +2733,9 @@ declare namespace gapi.client {
|
|
|
2731
2733
|
}
|
|
2732
2734
|
interface SpacesResource {
|
|
2733
2735
|
/**
|
|
2734
|
-
* Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create).
|
|
2735
|
-
*
|
|
2736
|
+
* Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). If you
|
|
2737
|
+
* receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this
|
|
2738
|
+
* display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
2736
2739
|
*/
|
|
2737
2740
|
create(request: {
|
|
2738
2741
|
/** V1 error format. */
|
|
@@ -3024,7 +3027,8 @@ declare namespace gapi.client {
|
|
|
3024
3027
|
string;
|
|
3025
3028
|
}): Request<ListSpacesResponse>;
|
|
3026
3029
|
/**
|
|
3027
|
-
* Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update).
|
|
3030
|
+
* Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). If you're updating the `displayName` field and receive the
|
|
3031
|
+
* error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires [user
|
|
3028
3032
|
* authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.
|
|
3029
3033
|
*/
|
|
3030
3034
|
patch(request: {
|
|
@@ -3061,11 +3065,13 @@ declare namespace gapi.client {
|
|
|
3061
3065
|
/**
|
|
3062
3066
|
* Required. The updated field paths, comma separated if there are multiple. Currently supported field paths: - `display_name` (Only supports changing the display name of a space
|
|
3063
3067
|
* with the `SPACE` type, or when also including the `space_type` mask to change a `GROUP_CHAT` space type to `SPACE`. Trying to update the display name of a `GROUP_CHAT` or a
|
|
3064
|
-
* `DIRECT_MESSAGE` space results in an invalid argument error.
|
|
3065
|
-
*
|
|
3066
|
-
*
|
|
3067
|
-
*
|
|
3068
|
-
*
|
|
3068
|
+
* `DIRECT_MESSAGE` space results in an invalid argument error. If you receive the error message `ALREADY_EXISTS` when updating the `displayName`, try a different `displayName`. An
|
|
3069
|
+
* existing space within the Google Workspace organization might already use this display name.) - `space_type` (Only supports changing a `GROUP_CHAT` space type to `SPACE`.
|
|
3070
|
+
* Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the
|
|
3071
|
+
* `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the
|
|
3072
|
+
* space type in other ways results in an invalid argument error). - `space_details` - `space_history_state` (Supports [turning history on or off for the
|
|
3073
|
+
* space](https://support.google.com/chat/answer/7664687) if [the organization allows users to change their history setting](https://support.google.com/a/answer/7664184). Warning:
|
|
3074
|
+
* mutually exclusive with all other field paths.)
|
|
3069
3075
|
*/
|
|
3070
3076
|
updateMask?:
|
|
3071
3077
|
string;
|
|
@@ -3113,11 +3119,13 @@ declare namespace gapi.client {
|
|
|
3113
3119
|
/**
|
|
3114
3120
|
* Required. The updated field paths, comma separated if there are multiple. Currently supported field paths: - `display_name` (Only supports changing the display name of a space
|
|
3115
3121
|
* with the `SPACE` type, or when also including the `space_type` mask to change a `GROUP_CHAT` space type to `SPACE`. Trying to update the display name of a `GROUP_CHAT` or a
|
|
3116
|
-
* `DIRECT_MESSAGE` space results in an invalid argument error.
|
|
3117
|
-
*
|
|
3118
|
-
*
|
|
3119
|
-
*
|
|
3120
|
-
*
|
|
3122
|
+
* `DIRECT_MESSAGE` space results in an invalid argument error. If you receive the error message `ALREADY_EXISTS` when updating the `displayName`, try a different `displayName`. An
|
|
3123
|
+
* existing space within the Google Workspace organization might already use this display name.) - `space_type` (Only supports changing a `GROUP_CHAT` space type to `SPACE`.
|
|
3124
|
+
* Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the
|
|
3125
|
+
* `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the
|
|
3126
|
+
* space type in other ways results in an invalid argument error). - `space_details` - `space_history_state` (Supports [turning history on or off for the
|
|
3127
|
+
* space](https://support.google.com/chat/answer/7664687) if [the organization allows users to change their history setting](https://support.google.com/a/answer/7664184). Warning:
|
|
3128
|
+
* mutually exclusive with all other field paths.)
|
|
3121
3129
|
*/
|
|
3122
3130
|
updateMask?:
|
|
3123
3131
|
string;
|
|
@@ -3139,8 +3147,9 @@ declare namespace gapi.client {
|
|
|
3139
3147
|
* specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the
|
|
3140
3148
|
* calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a
|
|
3141
3149
|
* member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists
|
|
3142
|
-
* between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies
|
|
3143
|
-
*
|
|
3150
|
+
* between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive
|
|
3151
|
+
* the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display
|
|
3152
|
+
* name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
3144
3153
|
*/
|
|
3145
3154
|
setup(request: {
|
|
3146
3155
|
/** V1 error format. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.chat-v1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230806",
|
|
4
4
|
"description": "TypeScript typings for Google Chat API v1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/readme.md
CHANGED
|
@@ -119,7 +119,7 @@ Uploads an attachment. For an example, see [Upload media as a file attachment](h
|
|
|
119
119
|
await gapi.client.chat.media.upload({ parent: "parent", });
|
|
120
120
|
|
|
121
121
|
/*
|
|
122
|
-
Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
122
|
+
Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
123
123
|
*/
|
|
124
124
|
await gapi.client.chat.spaces.create({ });
|
|
125
125
|
|
|
@@ -144,12 +144,12 @@ Lists spaces the caller is a member of. Group chats and DMs aren't listed until
|
|
|
144
144
|
await gapi.client.chat.spaces.list({ });
|
|
145
145
|
|
|
146
146
|
/*
|
|
147
|
-
Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.
|
|
147
|
+
Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). If you're updating the `displayName` field and receive the error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.
|
|
148
148
|
*/
|
|
149
149
|
await gapi.client.chat.spaces.patch({ name: "name", });
|
|
150
150
|
|
|
151
151
|
/*
|
|
152
|
-
Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `{person_id}` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person `resourceName` for `user@example.com` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies
|
|
152
|
+
Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `{person_id}` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person `resourceName` for `user@example.com` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
153
153
|
*/
|
|
154
154
|
await gapi.client.chat.spaces.setup({ });
|
|
155
155
|
```
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230806
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -73,8 +73,9 @@ gapi.load('client', async () => {
|
|
|
73
73
|
filename: "Test string",
|
|
74
74
|
});
|
|
75
75
|
/**
|
|
76
|
-
* Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create).
|
|
77
|
-
*
|
|
76
|
+
* Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). If you receive
|
|
77
|
+
* the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name.
|
|
78
|
+
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
78
79
|
*/
|
|
79
80
|
await gapi.client.chat.spaces.create({
|
|
80
81
|
requestId: "Test string",
|
|
@@ -133,7 +134,8 @@ gapi.load('client', async () => {
|
|
|
133
134
|
pageToken: "Test string",
|
|
134
135
|
});
|
|
135
136
|
/**
|
|
136
|
-
* Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update).
|
|
137
|
+
* Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). If you're updating the `displayName` field and receive the error
|
|
138
|
+
* message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires [user
|
|
137
139
|
* authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.
|
|
138
140
|
*/
|
|
139
141
|
await gapi.client.chat.spaces.patch({
|
|
@@ -165,7 +167,8 @@ gapi.load('client', async () => {
|
|
|
165
167
|
* exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling
|
|
166
168
|
* app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a
|
|
167
169
|
* space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users,
|
|
168
|
-
* even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies
|
|
170
|
+
* even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message
|
|
171
|
+
* `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user
|
|
169
172
|
* authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.
|
|
170
173
|
*/
|
|
171
174
|
await gapi.client.chat.spaces.setup({
|