@maxim_mazurok/gapi.client.chat-v1 0.0.20230131 → 0.0.20230205

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 +17 -13
  2. package/package.json +1 -1
  3. package/tests.ts +1 -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: 20230131
12
+ // Revision: 20230205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -188,8 +188,8 @@ declare namespace gapi.client {
188
188
  */
189
189
  common?: CommonEventObject;
190
190
  /**
191
- * The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. See the [Authorizing access to 3p services
192
- * guide](/chat/how-tos/auth-3p) for more information.
191
+ * The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. For more information, see [Connect a Chat
192
+ * app with other services & tools](https://developers.google.com/chat/how-tos/connect-web-services-tools).
193
193
  */
194
194
  configCompleteRedirectUrl?: string;
195
195
  /** The type of [dialog](https://developers.google.com/chat/how-tos/dialogs) event received. */
@@ -782,13 +782,9 @@ declare namespace gapi.client {
782
782
  interface Membership {
783
783
  /** Output only. The creation time of the membership, such as when a member joined or was invited to join a space. */
784
784
  createTime?: string;
785
- /**
786
- * A Google Chat user or app. Format: `users/{user}` or `users/app` When `users/{user}`, represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People
787
- * API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. When `users/app`, represents a Chat app creating
788
- * membership for itself.
789
- */
785
+ /** The Google Chat user or app the membership corresponds to. */
790
786
  member?: User;
791
- /** Resource name of the membership. Format: spaces/{space}/members/{member} */
787
+ /** Resource name of the membership, assigned by the server. Format: spaces/{space}/members/{member} */
792
788
  name?: string;
793
789
  /** Output only. User's role within a Chat space, which determines their permitted actions in the space. */
794
790
  role?: string;
@@ -887,7 +883,10 @@ declare namespace gapi.client {
887
883
  type?: string;
888
884
  }
889
885
  interface Space {
890
- /** The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty. */
886
+ /**
887
+ * The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field may be empty.
888
+ * Supports up to 128 characters.
889
+ */
891
890
  displayName?: string;
892
891
  /** Resource name of the space. Format: spaces/{space} */
893
892
  name?: string;
@@ -903,9 +902,9 @@ declare namespace gapi.client {
903
902
  type?: string;
904
903
  }
905
904
  interface SpaceDetails {
906
- /** Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants. */
905
+ /** Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters. */
907
906
  description?: string;
908
- /** Optional. The space's rules, expectations, and etiquette. */
907
+ /** Optional. The space's rules, expectations, and etiquette. Supports up to 5,000 characters. */
909
908
  guidelines?: string;
910
909
  }
911
910
  interface Status {
@@ -960,7 +959,12 @@ declare namespace gapi.client {
960
959
  domainId?: string;
961
960
  /** Output only. When `true`, the user is deleted or their profile is not visible. */
962
961
  isAnonymous?: boolean;
963
- /** Resource name for a Google Chat user. For human users, represents a person in the People API or a user in the Admin SDK Directory API. Format: `users/{user}` */
962
+ /**
963
+ * Resource name for a Google Chat user. Format: `users/{user}`. `users/app` can be used as an alias for the calling app bot user. For human users, `{user}` is the same user identifier
964
+ * as: - the `{person_id`} for the [Person](https://developers.google.com/people/api/rest/v1/people) in the People API, where the Person `resource_name` is `people/{person_id}`. For
965
+ * example, `users/123456789` in Chat API represents the same person as `people/123456789` in People API. - the `id` for a
966
+ * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API.
967
+ */
964
968
  name?: string;
965
969
  /** User type. */
966
970
  type?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.0.20230131",
3
+ "version": "0.0.20230205",
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: 20230131
6
+ // Revision: 20230205
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */