@maxim_mazurok/gapi.client.chat-v1 0.0.20230821 → 0.0.20230822
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 +34 -52
- 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: 20230822
|
|
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[];
|
|
@@ -1605,9 +1600,8 @@ declare namespace gapi.client {
|
|
|
1605
1600
|
}): Request<Media>;
|
|
1606
1601
|
/**
|
|
1607
1602
|
* 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).
|
|
1603
|
+
* [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
|
|
1604
|
+
* types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).
|
|
1611
1605
|
*/
|
|
1612
1606
|
upload(request: {
|
|
1613
1607
|
/** V1 error format. */
|
|
@@ -1695,12 +1689,11 @@ declare namespace gapi.client {
|
|
|
1695
1689
|
* 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
1690
|
* 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
1691
|
* 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`.
|
|
1692
|
+
* 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
|
|
1693
|
+
* 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
|
|
1694
|
+
* `{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`
|
|
1695
|
+
* 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
|
|
1696
|
+
* the `membership.member.name` to `users/user@example.com` or `users/123456789`.
|
|
1704
1697
|
*/
|
|
1705
1698
|
create(request: {
|
|
1706
1699
|
/** V1 error format. */
|
|
@@ -1784,7 +1777,7 @@ declare namespace gapi.client {
|
|
|
1784
1777
|
body: Membership): Request<Membership>;
|
|
1785
1778
|
/**
|
|
1786
1779
|
* 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)
|
|
1780
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1788
1781
|
*/
|
|
1789
1782
|
delete(request?: {
|
|
1790
1783
|
/** V1 error format. */
|
|
@@ -1833,7 +1826,7 @@ declare namespace gapi.client {
|
|
|
1833
1826
|
* Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires
|
|
1834
1827
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1835
1828
|
* 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)
|
|
1829
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1837
1830
|
*/
|
|
1838
1831
|
get(request?: {
|
|
1839
1832
|
/** V1 error format. */
|
|
@@ -1883,7 +1876,7 @@ declare namespace gapi.client {
|
|
|
1883
1876
|
* 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
1877
|
* has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
1885
1878
|
* 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)
|
|
1879
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
1887
1880
|
*/
|
|
1888
1881
|
list(request?: {
|
|
1889
1882
|
/** V1 error format. */
|
|
@@ -1999,8 +1992,7 @@ declare namespace gapi.client {
|
|
|
1999
1992
|
interface ReactionsResource {
|
|
2000
1993
|
/**
|
|
2001
1994
|
* 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.
|
|
1995
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Only unicode emoji are supported.
|
|
2004
1996
|
*/
|
|
2005
1997
|
create(request: {
|
|
2006
1998
|
/** V1 error format. */
|
|
@@ -2084,7 +2076,7 @@ declare namespace gapi.client {
|
|
|
2084
2076
|
body: Reaction): Request<Reaction>;
|
|
2085
2077
|
/**
|
|
2086
2078
|
* 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)
|
|
2079
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2088
2080
|
*/
|
|
2089
2081
|
delete(request?: {
|
|
2090
2082
|
/** V1 error format. */
|
|
@@ -2126,8 +2118,7 @@ declare namespace gapi.client {
|
|
|
2126
2118
|
}): Request<{}>;
|
|
2127
2119
|
/**
|
|
2128
2120
|
* 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.
|
|
2121
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2131
2122
|
*/
|
|
2132
2123
|
list(request?: {
|
|
2133
2124
|
/** V1 error format. */
|
|
@@ -2195,13 +2186,9 @@ declare namespace gapi.client {
|
|
|
2195
2186
|
}
|
|
2196
2187
|
interface MessagesResource {
|
|
2197
2188
|
/**
|
|
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.
|
|
2189
|
+
* 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
|
|
2190
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth) and supports the following authentication types: - For text messages, user authentication or app authentication
|
|
2191
|
+
* are supported. - For card messages, only app authentication is supported. (Only Chat apps can create card messages.)
|
|
2205
2192
|
*/
|
|
2206
2193
|
create(request: {
|
|
2207
2194
|
/** V1 error format. */
|
|
@@ -2331,8 +2318,7 @@ declare namespace gapi.client {
|
|
|
2331
2318
|
* Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires
|
|
2332
2319
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2333
2320
|
* 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.
|
|
2321
|
+
* 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
2322
|
*/
|
|
2337
2323
|
delete(request?: {
|
|
2338
2324
|
/** V1 error format. */
|
|
@@ -2383,8 +2369,7 @@ declare namespace gapi.client {
|
|
|
2383
2369
|
* Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires
|
|
2384
2370
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2385
2371
|
* 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.
|
|
2372
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users). Note: Might return a message from a blocked member or space.
|
|
2388
2373
|
*/
|
|
2389
2374
|
get(request?: {
|
|
2390
2375
|
/** V1 error format. */
|
|
@@ -2430,7 +2415,7 @@ declare namespace gapi.client {
|
|
|
2430
2415
|
}): Request<Message>;
|
|
2431
2416
|
/**
|
|
2432
2417
|
* 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)
|
|
2418
|
+
* Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2434
2419
|
*/
|
|
2435
2420
|
list(request?: {
|
|
2436
2421
|
/** V1 error format. */
|
|
@@ -2508,8 +2493,7 @@ declare namespace gapi.client {
|
|
|
2508
2493
|
* recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
2509
2494
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2510
2495
|
* 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.
|
|
2496
|
+
* 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
2497
|
*/
|
|
2514
2498
|
patch(request: {
|
|
2515
2499
|
/** V1 error format. */
|
|
@@ -2620,8 +2604,7 @@ declare namespace gapi.client {
|
|
|
2620
2604
|
* recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires
|
|
2621
2605
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2622
2606
|
* 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.
|
|
2607
|
+
* 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
2608
|
*/
|
|
2626
2609
|
update(request: {
|
|
2627
2610
|
/** V1 error format. */
|
|
@@ -2736,7 +2719,7 @@ declare namespace gapi.client {
|
|
|
2736
2719
|
/**
|
|
2737
2720
|
* 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
2721
|
* 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)
|
|
2722
|
+
* display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2740
2723
|
*/
|
|
2741
2724
|
create(request: {
|
|
2742
2725
|
/** V1 error format. */
|
|
@@ -2827,7 +2810,7 @@ declare namespace gapi.client {
|
|
|
2827
2810
|
/**
|
|
2828
2811
|
* 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
2812
|
* 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
|
|
2813
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space.
|
|
2831
2814
|
*/
|
|
2832
2815
|
delete(request?: {
|
|
2833
2816
|
/** V1 error format. */
|
|
@@ -2923,7 +2906,7 @@ declare namespace gapi.client {
|
|
|
2923
2906
|
* Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires
|
|
2924
2907
|
* [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account
|
|
2925
2908
|
* 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)
|
|
2909
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
2927
2910
|
*/
|
|
2928
2911
|
get(request?: {
|
|
2929
2912
|
/** V1 error format. */
|
|
@@ -2966,9 +2949,8 @@ declare namespace gapi.client {
|
|
|
2966
2949
|
/**
|
|
2967
2950
|
* 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
2951
|
* 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.
|
|
2952
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). Lists
|
|
2953
|
+
* spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.
|
|
2972
2954
|
*/
|
|
2973
2955
|
list(request?: {
|
|
2974
2956
|
/** V1 error format. */
|
|
@@ -3030,7 +3012,7 @@ declare namespace gapi.client {
|
|
|
3030
3012
|
/**
|
|
3031
3013
|
* 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
3014
|
* 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)
|
|
3015
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
3034
3016
|
*/
|
|
3035
3017
|
patch(request: {
|
|
3036
3018
|
/** V1 error format. */
|
|
@@ -3150,7 +3132,7 @@ declare namespace gapi.client {
|
|
|
3150
3132
|
* 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
3133
|
* 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
3134
|
* 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)
|
|
3135
|
+
* name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).
|
|
3154
3136
|
*/
|
|
3155
3137
|
setup(request: {
|
|
3156
3138
|
/** 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: 20230822
|
|
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",
|