@maxim_mazurok/gapi.client.chat-v1 0.0.20230821 → 0.0.20230827
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 +40 -54
- package/package.json +1 -1
- package/readme.md +7 -7
- package/tests.ts +29 -40
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: 20230827
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -153,13 +153,10 @@ declare namespace gapi.client {
|
|
|
153
153
|
string;
|
|
154
154
|
}
|
|
155
155
|
interface CardWithId {
|
|
156
|
-
/**
|
|
157
|
-
* Cards support a defined layout, interactive UI elements like buttons, and rich media like images. Use this card to present detailed information, gather information from users, and
|
|
158
|
-
* guide users to take a next step.
|
|
159
|
-
*/
|
|
156
|
+
/** A card. Maximum size is 32 KB. */
|
|
160
157
|
card?:
|
|
161
158
|
GoogleAppsCardV1Card;
|
|
162
|
-
/** Required
|
|
159
|
+
/** Required if the message contains multiple cards. A unique identifier for a card in a message. */
|
|
163
160
|
cardId?:
|
|
164
161
|
string;
|
|
165
162
|
}
|
|
@@ -1216,11 +1213,9 @@ declare namespace gapi.client {
|
|
|
1216
1213
|
cards?:
|
|
1217
1214
|
Card[];
|
|
1218
1215
|
/**
|
|
1219
|
-
*
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
* for identifying user input values. Currently supported widgets include: - `TextParagraph` - `DecoratedText` - `Image` - `ButtonList` - `Divider` - `TextInput` - `SelectionInput` -
|
|
1223
|
-
* `Grid`
|
|
1216
|
+
* An array of [cards](https://developers.google.com/chat/api/reference/rest/v1/cards). Only Chat apps can create cards. If your Chat app [authenticates as a
|
|
1217
|
+
* user](https://developers.google.com/chat/api/guides/auth/users), the messages can't contain cards. To learn about cards and how to create them, see [Design dynamic, interactive, and
|
|
1218
|
+
* consistent UIs with cards](https://developers.google.com/chat/ui).
|
|
1224
1219
|
*/
|
|
1225
1220
|
cardsV2?:
|
|
1226
1221
|
CardWithId[];
|
|
@@ -1486,10 +1481,14 @@ declare namespace gapi.client {
|
|
|
1486
1481
|
string;
|
|
1487
1482
|
}
|
|
1488
1483
|
interface Thread {
|
|
1489
|
-
/** Resource name of the thread. Example: `spaces/{space}/threads/{thread}` */
|
|
1484
|
+
/** Output only. Resource name of the thread. Example: `spaces/{space}/threads/{thread}` */
|
|
1490
1485
|
name?:
|
|
1491
1486
|
string;
|
|
1492
|
-
/**
|
|
1487
|
+
/**
|
|
1488
|
+
* Optional. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters. This ID is unique to the Chat app that sets it. For
|
|
1489
|
+
* example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat
|
|
1490
|
+
* app, specify the thread `name` field instead.
|
|
1491
|
+
*/
|
|
1493
1492
|
threadKey?:
|
|
1494
1493
|
string;
|
|
1495
1494
|
}
|
|
@@ -1605,9 +1604,8 @@ declare namespace gapi.client {
|
|
|
1605
1604
|
}): Request<Media>;
|
|
1606
1605
|
/**
|
|
1607
1606
|
* Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user
|
|
1608
|
-
* [authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
1609
|
-
*
|
|
1610
|
-
* Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
1607
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File
|
|
1608
|
+
* types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
1611
1609
|
*/
|
|
1612
1610
|
upload(request: {
|
|
1613
1611
|
/** V1 error format. */
|
|
@@ -1695,12 +1693,11 @@ declare namespace gapi.client {
|
|
|
1695
1693
|
* Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a
|
|
1696
1694
|
* membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then
|
|
1697
1695
|
* they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user
|
|
1698
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
1699
|
-
*
|
|
1700
|
-
* `
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
* `users/123456789`.
|
|
1696
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add
|
|
1697
|
+
* the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where
|
|
1698
|
+
* `{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`
|
|
1699
|
+
* 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
|
|
1700
|
+
* the `membership.member.name` to `users/user@example.com` or `users/123456789`.
|
|
1704
1701
|
*/
|
|
1705
1702
|
create(request: {
|
|
1706
1703
|
/** V1 error format. */
|
|
@@ -1784,7 +1781,7 @@ declare namespace gapi.client {
|
|
|
1784
1781
|
body: Membership): Request<Membership>;
|
|
1785
1782
|
/**
|
|
1786
1783
|
* Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user
|
|
1787
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
1784
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1788
1785
|
*/
|
|
1789
1786
|
delete(request?: {
|
|
1790
1787
|
/** V1 error format. */
|
|
@@ -1833,7 +1830,7 @@ declare namespace gapi.client {
|
|
|
1833
1830
|
* Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires
|
|
1834
1831
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1835
1832
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
1836
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
1833
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1837
1834
|
*/
|
|
1838
1835
|
get(request?: {
|
|
1839
1836
|
/** V1 error format. */
|
|
@@ -1883,7 +1880,7 @@ declare namespace gapi.client {
|
|
|
1883
1880
|
* including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user
|
|
1884
1881
|
* has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1885
1882
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
1886
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
1883
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1887
1884
|
*/
|
|
1888
1885
|
list(request?: {
|
|
1889
1886
|
/** V1 error format. */
|
|
@@ -1999,8 +1996,7 @@ declare namespace gapi.client {
|
|
|
1999
1996
|
interface ReactionsResource {
|
|
2000
1997
|
/**
|
|
2001
1998
|
* Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user
|
|
2002
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2003
|
-
* emoji are supported.
|
|
1999
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Only unicode emoji are supported.
|
|
2004
2000
|
*/
|
|
2005
2001
|
create(request: {
|
|
2006
2002
|
/** V1 error format. */
|
|
@@ -2084,7 +2080,7 @@ declare namespace gapi.client {
|
|
|
2084
2080
|
body: Reaction): Request<Reaction>;
|
|
2085
2081
|
/**
|
|
2086
2082
|
* Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user
|
|
2087
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2083
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2088
2084
|
*/
|
|
2089
2085
|
delete(request?: {
|
|
2090
2086
|
/** V1 error format. */
|
|
@@ -2126,8 +2122,7 @@ declare namespace gapi.client {
|
|
|
2126
2122
|
}): Request<{}>;
|
|
2127
2123
|
/**
|
|
2128
2124
|
* Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user
|
|
2129
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2130
|
-
* `chat.messages.reactions.readonly` scope.
|
|
2125
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2131
2126
|
*/
|
|
2132
2127
|
list(request?: {
|
|
2133
2128
|
/** V1 error format. */
|
|
@@ -2195,13 +2190,9 @@ declare namespace gapi.client {
|
|
|
2195
2190
|
}
|
|
2196
2191
|
interface MessagesResource {
|
|
2197
2192
|
/**
|
|
2198
|
-
* Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/
|
|
2199
|
-
* [authentication](https://developers.google.com/chat/api/guides/auth)
|
|
2200
|
-
*
|
|
2201
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message only
|
|
2202
|
-
* supports and requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). Because Chat provides authentication for
|
|
2203
|
-
* [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service
|
|
2204
|
-
* account or user authentication.
|
|
2193
|
+
* Creates a message in a Google Chat space. For an example, see [Create a message](https://developers.google.com/chat/api/guides/v1/messages/create). Calling this method requires
|
|
2194
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth) and supports the following authentication types: - For text messages, user authentication or app authentication
|
|
2195
|
+
* are supported. - For card messages, only app authentication is supported. (Only Chat apps can create card messages.)
|
|
2205
2196
|
*/
|
|
2206
2197
|
create(request: {
|
|
2207
2198
|
/** V1 error format. */
|
|
@@ -2331,8 +2322,7 @@ declare namespace gapi.client {
|
|
|
2331
2322
|
* Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires
|
|
2332
2323
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2333
2324
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2334
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2335
|
-
* delete messages created by the calling Chat app.
|
|
2325
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only delete messages created by the calling Chat app.
|
|
2336
2326
|
*/
|
|
2337
2327
|
delete(request?: {
|
|
2338
2328
|
/** V1 error format. */
|
|
@@ -2383,8 +2373,7 @@ declare namespace gapi.client {
|
|
|
2383
2373
|
* Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires
|
|
2384
2374
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2385
2375
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2386
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2387
|
-
* from a blocked member or space.
|
|
2376
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Note: Might return a message from a blocked member or space.
|
|
2388
2377
|
*/
|
|
2389
2378
|
get(request?: {
|
|
2390
2379
|
/** V1 error format. */
|
|
@@ -2430,7 +2419,7 @@ declare namespace gapi.client {
|
|
|
2430
2419
|
}): Request<Message>;
|
|
2431
2420
|
/**
|
|
2432
2421
|
* Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list).
|
|
2433
|
-
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2422
|
+
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2434
2423
|
*/
|
|
2435
2424
|
list(request?: {
|
|
2436
2425
|
/** V1 error format. */
|
|
@@ -2508,8 +2497,7 @@ declare namespace gapi.client {
|
|
|
2508
2497
|
* recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
2509
2498
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2510
2499
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2511
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2512
|
-
* update messages created by the calling Chat app.
|
|
2500
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only update messages created by the calling Chat app.
|
|
2513
2501
|
*/
|
|
2514
2502
|
patch(request: {
|
|
2515
2503
|
/** V1 error format. */
|
|
@@ -2620,8 +2608,7 @@ declare namespace gapi.client {
|
|
|
2620
2608
|
* recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
2621
2609
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2622
2610
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2623
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2624
|
-
* update messages created by the calling Chat app.
|
|
2611
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only update messages created by the calling Chat app.
|
|
2625
2612
|
*/
|
|
2626
2613
|
update(request: {
|
|
2627
2614
|
/** V1 error format. */
|
|
@@ -2736,7 +2723,7 @@ declare namespace gapi.client {
|
|
|
2736
2723
|
/**
|
|
2737
2724
|
* 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
|
|
2738
2725
|
* 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
|
|
2739
|
-
* display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2726
|
+
* display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2740
2727
|
*/
|
|
2741
2728
|
create(request: {
|
|
2742
2729
|
/** V1 error format. */
|
|
@@ -2827,7 +2814,7 @@ declare namespace gapi.client {
|
|
|
2827
2814
|
/**
|
|
2828
2815
|
* Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also
|
|
2829
2816
|
* deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user
|
|
2830
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space
|
|
2817
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space.
|
|
2831
2818
|
*/
|
|
2832
2819
|
delete(request?: {
|
|
2833
2820
|
/** V1 error format. */
|
|
@@ -2923,7 +2910,7 @@ declare namespace gapi.client {
|
|
|
2923
2910
|
* Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires
|
|
2924
2911
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2925
2912
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2926
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2913
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2927
2914
|
*/
|
|
2928
2915
|
get(request?: {
|
|
2929
2916
|
/** V1 error format. */
|
|
@@ -2966,9 +2953,8 @@ declare namespace gapi.client {
|
|
|
2966
2953
|
/**
|
|
2967
2954
|
* 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
|
|
2968
2955
|
* spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2969
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2970
|
-
*
|
|
2971
|
-
* sent.
|
|
2956
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). Lists
|
|
2957
|
+
* spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.
|
|
2972
2958
|
*/
|
|
2973
2959
|
list(request?: {
|
|
2974
2960
|
/** V1 error format. */
|
|
@@ -3030,7 +3016,7 @@ declare namespace gapi.client {
|
|
|
3030
3016
|
/**
|
|
3031
3017
|
* 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
|
|
3032
3018
|
* 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
|
|
3033
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
3019
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
3034
3020
|
*/
|
|
3035
3021
|
patch(request: {
|
|
3036
3022
|
/** V1 error format. */
|
|
@@ -3150,7 +3136,7 @@ declare namespace gapi.client {
|
|
|
3150
3136
|
* 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
|
|
3151
3137
|
* 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
|
|
3152
3138
|
* 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
|
|
3153
|
-
* name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
3139
|
+
* name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
3154
3140
|
*/
|
|
3155
3141
|
setup(request: {
|
|
3156
3142
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -114,17 +114,17 @@ Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.
|
|
|
114
114
|
await gapi.client.chat.media.download({ resourceName: "resourceName", });
|
|
115
115
|
|
|
116
116
|
/*
|
|
117
|
-
Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
117
|
+
Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
118
118
|
*/
|
|
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). 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)
|
|
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).
|
|
123
123
|
*/
|
|
124
124
|
await gapi.client.chat.spaces.create({ });
|
|
125
125
|
|
|
126
126
|
/*
|
|
127
|
-
Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space
|
|
127
|
+
Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space.
|
|
128
128
|
*/
|
|
129
129
|
await gapi.client.chat.spaces.delete({ name: "name", });
|
|
130
130
|
|
|
@@ -134,22 +134,22 @@ Returns the existing direct message with the specified user. If no direct messag
|
|
|
134
134
|
await gapi.client.chat.spaces.findDirectMessage({ });
|
|
135
135
|
|
|
136
136
|
/*
|
|
137
|
-
Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). 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) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
137
|
+
Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). 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) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
138
138
|
*/
|
|
139
139
|
await gapi.client.chat.spaces.get({ name: "name", });
|
|
140
140
|
|
|
141
141
|
/*
|
|
142
|
-
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/chat/api/guides/v1/spaces/list). 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) and [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
142
|
+
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/chat/api/guides/v1/spaces/list). 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) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.
|
|
143
143
|
*/
|
|
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). 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)
|
|
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).
|
|
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 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)
|
|
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).
|
|
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: 20230827
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -63,9 +63,8 @@ gapi.load('client', async () => {
|
|
|
63
63
|
});
|
|
64
64
|
/**
|
|
65
65
|
* Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user
|
|
66
|
-
* [authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
67
|
-
*
|
|
68
|
-
* Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
66
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types
|
|
67
|
+
* blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
69
68
|
*/
|
|
70
69
|
await gapi.client.chat.media.upload({
|
|
71
70
|
parent: "Test string",
|
|
@@ -75,7 +74,7 @@ gapi.load('client', async () => {
|
|
|
75
74
|
/**
|
|
76
75
|
* 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
76
|
* 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)
|
|
77
|
+
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
79
78
|
*/
|
|
80
79
|
await gapi.client.chat.spaces.create({
|
|
81
80
|
requestId: "Test string",
|
|
@@ -98,7 +97,7 @@ gapi.load('client', async () => {
|
|
|
98
97
|
/**
|
|
99
98
|
* Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted.
|
|
100
99
|
* For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user
|
|
101
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space
|
|
100
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space.
|
|
102
101
|
*/
|
|
103
102
|
await gapi.client.chat.spaces.delete({
|
|
104
103
|
name: "Test string",
|
|
@@ -117,7 +116,7 @@ gapi.load('client', async () => {
|
|
|
117
116
|
* Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires
|
|
118
117
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
119
118
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
120
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
119
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
121
120
|
*/
|
|
122
121
|
await gapi.client.chat.spaces.get({
|
|
123
122
|
name: "Test string",
|
|
@@ -125,8 +124,8 @@ gapi.load('client', async () => {
|
|
|
125
124
|
/**
|
|
126
125
|
* 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
|
|
127
126
|
* spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
128
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
129
|
-
*
|
|
127
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). Lists spaces
|
|
128
|
+
* visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.
|
|
130
129
|
*/
|
|
131
130
|
await gapi.client.chat.spaces.list({
|
|
132
131
|
filter: "Test string",
|
|
@@ -136,7 +135,7 @@ gapi.load('client', async () => {
|
|
|
136
135
|
/**
|
|
137
136
|
* 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
137
|
* message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Requires [user
|
|
139
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
138
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
140
139
|
*/
|
|
141
140
|
await gapi.client.chat.spaces.patch({
|
|
142
141
|
name: "Test string",
|
|
@@ -169,7 +168,7 @@ gapi.load('client', async () => {
|
|
|
169
168
|
* 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,
|
|
170
169
|
* 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
170
|
* `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
|
|
172
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
171
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
173
172
|
*/
|
|
174
173
|
await gapi.client.chat.spaces.setup({
|
|
175
174
|
}, {
|
|
@@ -210,11 +209,11 @@ gapi.load('client', async () => {
|
|
|
210
209
|
* Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a
|
|
211
210
|
* membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then they're
|
|
212
211
|
* invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user
|
|
213
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* `
|
|
212
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the
|
|
213
|
+
* calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` can
|
|
214
|
+
* 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
|
|
215
|
+
* 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
|
|
216
|
+
* `membership.member.name` to `users/user@example.com` or `users/123456789`.
|
|
218
217
|
*/
|
|
219
218
|
await gapi.client.chat.spaces.members.create({
|
|
220
219
|
parent: "Test string",
|
|
@@ -233,7 +232,7 @@ gapi.load('client', async () => {
|
|
|
233
232
|
});
|
|
234
233
|
/**
|
|
235
234
|
* Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user
|
|
236
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
235
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
237
236
|
*/
|
|
238
237
|
await gapi.client.chat.spaces.members.delete({
|
|
239
238
|
name: "Test string",
|
|
@@ -242,7 +241,7 @@ gapi.load('client', async () => {
|
|
|
242
241
|
* Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires
|
|
243
242
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
244
243
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
245
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
244
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
246
245
|
*/
|
|
247
246
|
await gapi.client.chat.spaces.members.get({
|
|
248
247
|
name: "Test string",
|
|
@@ -253,7 +252,7 @@ gapi.load('client', async () => {
|
|
|
253
252
|
* including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user has
|
|
254
253
|
* access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
255
254
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
256
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
255
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
257
256
|
*/
|
|
258
257
|
await gapi.client.chat.spaces.members.list({
|
|
259
258
|
filter: "Test string",
|
|
@@ -263,13 +262,9 @@ gapi.load('client', async () => {
|
|
|
263
262
|
showInvited: true,
|
|
264
263
|
});
|
|
265
264
|
/**
|
|
266
|
-
* Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/
|
|
267
|
-
* [authentication](https://developers.google.com/chat/api/guides/auth)
|
|
268
|
-
*
|
|
269
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message only
|
|
270
|
-
* supports and requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). Because Chat provides authentication for
|
|
271
|
-
* [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account
|
|
272
|
-
* or user authentication.
|
|
265
|
+
* Creates a message in a Google Chat space. For an example, see [Create a message](https://developers.google.com/chat/api/guides/v1/messages/create). Calling this method requires
|
|
266
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth) and supports the following authentication types: - For text messages, user authentication or app authentication are
|
|
267
|
+
* supported. - For card messages, only app authentication is supported. (Only Chat apps can create card messages.)
|
|
273
268
|
*/
|
|
274
269
|
await gapi.client.chat.spaces.messages.create({
|
|
275
270
|
messageId: "Test string",
|
|
@@ -2370,8 +2365,7 @@ gapi.load('client', async () => {
|
|
|
2370
2365
|
* Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires
|
|
2371
2366
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2372
2367
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2373
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2374
|
-
* messages created by the calling Chat app.
|
|
2368
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only delete messages created by the calling Chat app.
|
|
2375
2369
|
*/
|
|
2376
2370
|
await gapi.client.chat.spaces.messages.delete({
|
|
2377
2371
|
force: true,
|
|
@@ -2381,15 +2375,14 @@ gapi.load('client', async () => {
|
|
|
2381
2375
|
* Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires
|
|
2382
2376
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2383
2377
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2384
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2385
|
-
* a blocked member or space.
|
|
2378
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Note: Might return a message from a blocked member or space.
|
|
2386
2379
|
*/
|
|
2387
2380
|
await gapi.client.chat.spaces.messages.get({
|
|
2388
2381
|
name: "Test string",
|
|
2389
2382
|
});
|
|
2390
2383
|
/**
|
|
2391
2384
|
* Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list).
|
|
2392
|
-
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2385
|
+
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2393
2386
|
*/
|
|
2394
2387
|
await gapi.client.chat.spaces.messages.list({
|
|
2395
2388
|
filter: "Test string",
|
|
@@ -2404,8 +2397,7 @@ gapi.load('client', async () => {
|
|
|
2404
2397
|
* using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
2405
2398
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2406
2399
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
2407
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
2408
|
-
* messages created by the calling Chat app.
|
|
2400
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only update messages created by the calling Chat app.
|
|
2409
2401
|
*/
|
|
2410
2402
|
await gapi.client.chat.spaces.messages.patch({
|
|
2411
2403
|
allowMissing: true,
|
|
@@ -4505,8 +4497,7 @@ gapi.load('client', async () => {
|
|
|
4505
4497
|
* using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
4506
4498
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
4507
4499
|
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User
|
|
4508
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
4509
|
-
* messages created by the calling Chat app.
|
|
4500
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Requests authenticated with service accounts can only update messages created by the calling Chat app.
|
|
4510
4501
|
*/
|
|
4511
4502
|
await gapi.client.chat.spaces.messages.update({
|
|
4512
4503
|
allowMissing: true,
|
|
@@ -6611,8 +6602,7 @@ gapi.load('client', async () => {
|
|
|
6611
6602
|
});
|
|
6612
6603
|
/**
|
|
6613
6604
|
* Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user
|
|
6614
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
6615
|
-
* emoji are supported.
|
|
6605
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Only unicode emoji are supported.
|
|
6616
6606
|
*/
|
|
6617
6607
|
await gapi.client.chat.spaces.messages.reactions.create({
|
|
6618
6608
|
parent: "Test string",
|
|
@@ -6634,15 +6624,14 @@ gapi.load('client', async () => {
|
|
|
6634
6624
|
});
|
|
6635
6625
|
/**
|
|
6636
6626
|
* Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user
|
|
6637
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
6627
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
6638
6628
|
*/
|
|
6639
6629
|
await gapi.client.chat.spaces.messages.reactions.delete({
|
|
6640
6630
|
name: "Test string",
|
|
6641
6631
|
});
|
|
6642
6632
|
/**
|
|
6643
6633
|
* Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user
|
|
6644
|
-
* authentication](https://developers.google.com/chat/api/guides/auth/users)
|
|
6645
|
-
* scope.
|
|
6634
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
6646
6635
|
*/
|
|
6647
6636
|
await gapi.client.chat.spaces.messages.reactions.list({
|
|
6648
6637
|
filter: "Test string",
|