@maxim_mazurok/gapi.client.chat-v1 0.0.20230716 → 0.0.20230723

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 +9 -7
  2. package/package.json +1 -1
  3. package/tests.ts +8 -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: 20230716
12
+ // Revision: 20230723
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1399,6 +1399,9 @@ declare namespace gapi.client {
1399
1399
  */
1400
1400
  displayName?:
1401
1401
  string;
1402
+ /** Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space. For existing spaces, this field is output only. */
1403
+ externalUserAllowed?:
1404
+ boolean;
1402
1405
  /** Resource name of the space. Format: `spaces/{space}` */
1403
1406
  name?:
1404
1407
  string;
@@ -1901,14 +1904,14 @@ declare namespace gapi.client {
1901
1904
  oauth_token?:
1902
1905
  string;
1903
1906
  /**
1904
- * The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1,000. If
1905
- * you use a value more than 1,000, it's automatically changed to 1,000. Negative values return an `INVALID_ARGUMENT` error.
1907
+ * Optional. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is
1908
+ * 1,000. If you use a value more than 1,000, it's automatically changed to 1,000. Negative values return an `INVALID_ARGUMENT` error.
1906
1909
  */
1907
1910
  pageSize?:
1908
1911
  number;
1909
1912
  /**
1910
- * A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should
1911
- * match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
1913
+ * Optional. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided
1914
+ * should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.
1912
1915
  */
1913
1916
  pageToken?:
1914
1917
  string;
@@ -2413,8 +2416,7 @@ declare namespace gapi.client {
2413
2416
  }): Request<Message>;
2414
2417
  /**
2415
2418
  * 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).
2416
- * Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only
2417
- * supported in spaces that don't allow users from outside the Workspace organization to join.
2419
+ * Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.
2418
2420
  */
2419
2421
  list(request?: {
2420
2422
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230716",
3
+ "version": "0.0.20230723",
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: 20230716
6
+ // Revision: 20230723
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -82,6 +82,7 @@ gapi.load('client', async () => {
82
82
  }, {
83
83
  adminInstalled: true,
84
84
  displayName: "Test string",
85
+ externalUserAllowed: true,
85
86
  name: "Test string",
86
87
  singleUserBotDm: true,
87
88
  spaceDetails: {
@@ -142,6 +143,7 @@ gapi.load('client', async () => {
142
143
  }, {
143
144
  adminInstalled: true,
144
145
  displayName: "Test string",
146
+ externalUserAllowed: true,
145
147
  name: "Test string",
146
148
  singleUserBotDm: true,
147
149
  spaceDetails: {
@@ -188,6 +190,7 @@ gapi.load('client', async () => {
188
190
  space: {
189
191
  adminInstalled: true,
190
192
  displayName: "Test string",
193
+ externalUserAllowed: true,
191
194
  name: "Test string",
192
195
  singleUserBotDm: true,
193
196
  spaceDetails: {
@@ -2342,6 +2345,7 @@ gapi.load('client', async () => {
2342
2345
  space: {
2343
2346
  adminInstalled: true,
2344
2347
  displayName: "Test string",
2348
+ externalUserAllowed: true,
2345
2349
  name: "Test string",
2346
2350
  singleUserBotDm: true,
2347
2351
  spaceDetails: {
@@ -2383,8 +2387,7 @@ gapi.load('client', async () => {
2383
2387
  });
2384
2388
  /**
2385
2389
  * 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).
2386
- * Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only
2387
- * supported in spaces that don't allow users from outside the Workspace organization to join.
2390
+ * Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.
2388
2391
  */
2389
2392
  await gapi.client.chat.spaces.messages.list({
2390
2393
  filter: "Test string",
@@ -4474,6 +4477,7 @@ gapi.load('client', async () => {
4474
4477
  space: {
4475
4478
  adminInstalled: true,
4476
4479
  displayName: "Test string",
4480
+ externalUserAllowed: true,
4477
4481
  name: "Test string",
4478
4482
  singleUserBotDm: true,
4479
4483
  spaceDetails: {
@@ -6573,6 +6577,7 @@ gapi.load('client', async () => {
6573
6577
  space: {
6574
6578
  adminInstalled: true,
6575
6579
  displayName: "Test string",
6580
+ externalUserAllowed: true,
6576
6581
  name: "Test string",
6577
6582
  singleUserBotDm: true,
6578
6583
  spaceDetails: {