@maxim_mazurok/gapi.client.chat-v1 0.0.20221122 → 0.0.20221126
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 +83 -1
- package/package.json +1 -1
- package/tests.ts +1346 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221126
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1801,6 +1801,88 @@ declare namespace gapi.client {
|
|
|
1801
1801
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1802
1802
|
uploadType?: string;
|
|
1803
1803
|
}): Request<Message>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires
|
|
1806
|
+
* [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account
|
|
1807
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as
|
|
1808
|
+
* part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User
|
|
1809
|
+
* authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.
|
|
1810
|
+
*/
|
|
1811
|
+
patch(request: {
|
|
1812
|
+
/** V1 error format. */
|
|
1813
|
+
"$.xgafv"?: string;
|
|
1814
|
+
/** OAuth access token. */
|
|
1815
|
+
access_token?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
|
|
1818
|
+
* [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
|
|
1819
|
+
*/
|
|
1820
|
+
allowMissing?: boolean;
|
|
1821
|
+
/** Data format for response. */
|
|
1822
|
+
alt?: string;
|
|
1823
|
+
/** JSONP */
|
|
1824
|
+
callback?: string;
|
|
1825
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1826
|
+
fields?: string;
|
|
1827
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1828
|
+
key?: string;
|
|
1829
|
+
/** Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
|
|
1830
|
+
name: string;
|
|
1831
|
+
/** OAuth 2.0 token for the current user. */
|
|
1832
|
+
oauth_token?: string;
|
|
1833
|
+
/** Returns response with indentations and line breaks. */
|
|
1834
|
+
prettyPrint?: boolean;
|
|
1835
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1836
|
+
quotaUser?: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
|
|
1839
|
+
* authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
|
|
1840
|
+
*/
|
|
1841
|
+
updateMask?: string;
|
|
1842
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1843
|
+
upload_protocol?: string;
|
|
1844
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1845
|
+
uploadType?: string;
|
|
1846
|
+
/** Request body */
|
|
1847
|
+
resource: Message;
|
|
1848
|
+
}): Request<Message>;
|
|
1849
|
+
patch(request: {
|
|
1850
|
+
/** V1 error format. */
|
|
1851
|
+
"$.xgafv"?: string;
|
|
1852
|
+
/** OAuth access token. */
|
|
1853
|
+
access_token?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be
|
|
1856
|
+
* [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.
|
|
1857
|
+
*/
|
|
1858
|
+
allowMissing?: boolean;
|
|
1859
|
+
/** Data format for response. */
|
|
1860
|
+
alt?: string;
|
|
1861
|
+
/** JSONP */
|
|
1862
|
+
callback?: string;
|
|
1863
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1864
|
+
fields?: string;
|
|
1865
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1866
|
+
key?: string;
|
|
1867
|
+
/** Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB` */
|
|
1868
|
+
name: string;
|
|
1869
|
+
/** OAuth 2.0 token for the current user. */
|
|
1870
|
+
oauth_token?: string;
|
|
1871
|
+
/** Returns response with indentations and line breaks. */
|
|
1872
|
+
prettyPrint?: boolean;
|
|
1873
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1874
|
+
quotaUser?: string;
|
|
1875
|
+
/**
|
|
1876
|
+
* Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account
|
|
1877
|
+
* authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
|
|
1878
|
+
*/
|
|
1879
|
+
updateMask?: string;
|
|
1880
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1881
|
+
upload_protocol?: string;
|
|
1882
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1883
|
+
uploadType?: string;
|
|
1884
|
+
},
|
|
1885
|
+
body: Message): Request<Message>;
|
|
1804
1886
|
/**
|
|
1805
1887
|
* Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires
|
|
1806
1888
|
* [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account
|