@maxim_mazurok/gapi.client.chat-v1 0.0.20221011 → 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.
Files changed (3) hide show
  1. package/index.d.ts +30 -10
  2. package/package.json +1 -1
  3. 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: 20221011
12
+ // Revision: 20221019
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -649,11 +649,11 @@ declare namespace gapi.client {
649
649
  interface ListMembershipsResponse {
650
650
  /** List of memberships in the requested (or first) page. */
651
651
  memberships?: Membership[];
652
- /** Continuation token to retrieve the next page of results. It will be empty for the last page of results. */
652
+ /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
653
653
  nextPageToken?: string;
654
654
  }
655
655
  interface ListSpacesResponse {
656
- /** Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed. */
656
+ /** A token that can be sent as `pageToken` to retrieve the next page of results. If empty, there are no subsequent pages. */
657
657
  nextPageToken?: string;
658
658
  /** List of spaces in the requested (or first) page. */
659
659
  spaces?: Space[];
@@ -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;
@@ -1428,9 +1428,15 @@ declare namespace gapi.client {
1428
1428
  key?: string;
1429
1429
  /** OAuth 2.0 token for the current user. */
1430
1430
  oauth_token?: string;
1431
- /** Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100. */
1431
+ /**
1432
+ * The maximum number of memberships to return. The service may return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000;
1433
+ * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1434
+ */
1432
1435
  pageSize?: number;
1433
- /** A token identifying a page of results the server should return. */
1436
+ /**
1437
+ * A page token, received from a previous list memberships call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the call
1438
+ * that provided the page token.
1439
+ */
1434
1440
  pageToken?: string;
1435
1441
  /** Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} */
1436
1442
  parent: string;
@@ -1559,7 +1565,11 @@ declare namespace gapi.client {
1559
1565
  uploadType?: string;
1560
1566
  },
1561
1567
  body: Message): Request<Message>;
1562
- /** Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
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
+ */
1563
1573
  delete(request?: {
1564
1574
  /** V1 error format. */
1565
1575
  "$.xgafv"?: string;
@@ -1586,7 +1596,11 @@ declare namespace gapi.client {
1586
1596
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1587
1597
  uploadType?: string;
1588
1598
  }): Request<{}>;
1589
- /** Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
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
+ */
1590
1604
  get(request?: {
1591
1605
  /** V1 error format. */
1592
1606
  "$.xgafv"?: string;
@@ -1739,9 +1753,15 @@ declare namespace gapi.client {
1739
1753
  key?: string;
1740
1754
  /** OAuth 2.0 token for the current user. */
1741
1755
  oauth_token?: string;
1742
- /** Optional. Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100. */
1756
+ /**
1757
+ * Optional. The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000;
1758
+ * values above 1000 are coerced to 1000. Negative values return an INVALID_ARGUMENT error.
1759
+ */
1743
1760
  pageSize?: number;
1744
- /** Optional. A token identifying a page of results the server should return. */
1761
+ /**
1762
+ * Optional. A page token, received from a previous list spaces call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the
1763
+ * call that provided the page token.
1764
+ */
1745
1765
  pageToken?: string;
1746
1766
  /** Returns response with indentations and line breaks. */
1747
1767
  prettyPrint?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20221011",
3
+ "version": "0.0.20221019",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20221011
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
- /** Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
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
- /** Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). */
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
  });