@maxim_mazurok/gapi.client.chat-v1 0.0.20221013 → 0.0.20221019
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 +12 -4
- package/package.json +1 -1
- package/tests.ts +11 -3
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: 20221019
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -726,7 +726,7 @@ declare namespace gapi.client {
|
|
|
726
726
|
sender?: User;
|
|
727
727
|
/** Output only. Slash command information, if applicable. */
|
|
728
728
|
slashCommand?: SlashCommand;
|
|
729
|
-
/** The space the message belongs to. */
|
|
729
|
+
/** The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated. */
|
|
730
730
|
space?: Space;
|
|
731
731
|
/** Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip. */
|
|
732
732
|
text?: string;
|
|
@@ -1565,7 +1565,11 @@ declare namespace gapi.client {
|
|
|
1565
1565
|
uploadType?: string;
|
|
1566
1566
|
},
|
|
1567
1567
|
body: Message): Request<Message>;
|
|
1568
|
-
/**
|
|
1568
|
+
/**
|
|
1569
|
+
* Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer
|
|
1570
|
+
* Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the
|
|
1571
|
+
* `chat.messages` authorization scope.
|
|
1572
|
+
*/
|
|
1569
1573
|
delete(request?: {
|
|
1570
1574
|
/** V1 error format. */
|
|
1571
1575
|
"$.xgafv"?: string;
|
|
@@ -1592,7 +1596,11 @@ declare namespace gapi.client {
|
|
|
1592
1596
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1593
1597
|
uploadType?: string;
|
|
1594
1598
|
}): Request<{}>;
|
|
1595
|
-
/**
|
|
1599
|
+
/**
|
|
1600
|
+
* Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer
|
|
1601
|
+
* Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the
|
|
1602
|
+
* `chat.messages` or `chat.messages.readonly` authorization scope.
|
|
1603
|
+
*/
|
|
1596
1604
|
get(request?: {
|
|
1597
1605
|
/** V1 error format. */
|
|
1598
1606
|
"$.xgafv"?: string;
|
package/package.json
CHANGED
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: 20221019
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -10444,11 +10444,19 @@ gapi.load('client', async () => {
|
|
|
10444
10444
|
name: "Test string",
|
|
10445
10445
|
},
|
|
10446
10446
|
});
|
|
10447
|
-
/**
|
|
10447
|
+
/**
|
|
10448
|
+
* Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer
|
|
10449
|
+
* Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the
|
|
10450
|
+
* `chat.messages` authorization scope.
|
|
10451
|
+
*/
|
|
10448
10452
|
await gapi.client.chat.spaces.messages.delete({
|
|
10449
10453
|
name: "Test string",
|
|
10450
10454
|
});
|
|
10451
|
-
/**
|
|
10455
|
+
/**
|
|
10456
|
+
* Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer
|
|
10457
|
+
* Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the
|
|
10458
|
+
* `chat.messages` or `chat.messages.readonly` authorization scope.
|
|
10459
|
+
*/
|
|
10452
10460
|
await gapi.client.chat.spaces.messages.get({
|
|
10453
10461
|
name: "Test string",
|
|
10454
10462
|
});
|