@maxim_mazurok/gapi.client.admin-directory_v1 0.1.20251117 → 0.1.20251124

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 +79 -1
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
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://admin.googleapis.com/$discovery/rest?version=directory_v1
12
- // Revision: 20251117
12
+ // Revision: 20251124
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -579,6 +579,10 @@ declare namespace gapi.client {
579
579
  /** The unique ID of the issued command, used to retrieve the command status. */
580
580
  commandId?: string;
581
581
  }
582
+ interface DirectoryUsersCreateGuestRequest {
583
+ /** Immutable. External email of the guest user being created. */
584
+ primaryGuestEmail?: string;
585
+ }
582
586
  interface DomainAlias {
583
587
  /** The creation time of the domain alias. (Read-only). */
584
588
  creationTime?: string;
@@ -710,6 +714,10 @@ declare namespace gapi.client {
710
714
  /** Token used to access next page of this result. */
711
715
  nextPageToken?: string;
712
716
  }
717
+ interface GuestAccountInfo {
718
+ /** Immutable. The guest's external email. */
719
+ primaryGuestEmail?: string;
720
+ }
713
721
  interface ListPrinterModelsResponse {
714
722
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
715
723
  nextPageToken?: string;
@@ -1159,6 +1167,8 @@ declare namespace gapi.client {
1159
1167
  externalIds?: any;
1160
1168
  /** The user's gender. The maximum allowed data size for this field is 1KB. */
1161
1169
  gender?: any;
1170
+ /** Immutable. Additional guest-related metadata fields */
1171
+ guestAccountInfo?: GuestAccountInfo;
1162
1172
  /** Stores the hash format of the `password` property. The following `hashFunction` values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt library](https://en.wikipedia.org/wiki/Crypt_%28C%29). Supports the DES, MD5 (hash prefix `$1$`), SHA-256 (hash prefix `$5$`), and SHA-512 (hash prefix `$6$`) hash algorithms. If rounds are specified as part of the prefix, they must be 10,000 or fewer. */
1163
1173
  hashFunction?: string;
1164
1174
  /** The unique ID for the user. A user `id` can be used as a user request URI's `userKey`. */
@@ -1177,6 +1187,8 @@ declare namespace gapi.client {
1177
1187
  isEnforcedIn2Sv?: boolean;
1178
1188
  /** Output only. Is enrolled in 2-step verification (Read-only) */
1179
1189
  isEnrolledIn2Sv?: boolean;
1190
+ /** Immutable. Indicates if the inserted user is a guest. */
1191
+ isGuestUser?: boolean;
1180
1192
  /** Output only. Indicates if the user's Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license. */
1181
1193
  isMailboxSetup?: boolean;
1182
1194
  /** The list of the user's keywords. The maximum allowed data size for this field is 1KB. */
@@ -2985,6 +2997,10 @@ declare namespace gapi.client {
2985
2997
  /** The unique ID of the issued command, used to retrieve the command status. */
2986
2998
  commandId?: string;
2987
2999
  }
3000
+ interface DirectoryUsersCreateGuestRequest {
3001
+ /** Immutable. External email of the guest user being created. */
3002
+ primaryGuestEmail?: string;
3003
+ }
2988
3004
  interface DomainAlias {
2989
3005
  /** The creation time of the domain alias. (Read-only). */
2990
3006
  creationTime?: string;
@@ -3116,6 +3132,10 @@ declare namespace gapi.client {
3116
3132
  /** Token used to access next page of this result. */
3117
3133
  nextPageToken?: string;
3118
3134
  }
3135
+ interface GuestAccountInfo {
3136
+ /** Immutable. The guest's external email. */
3137
+ primaryGuestEmail?: string;
3138
+ }
3119
3139
  interface ListPrinterModelsResponse {
3120
3140
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3121
3141
  nextPageToken?: string;
@@ -3565,6 +3585,8 @@ declare namespace gapi.client {
3565
3585
  externalIds?: any;
3566
3586
  /** The user's gender. The maximum allowed data size for this field is 1KB. */
3567
3587
  gender?: any;
3588
+ /** Immutable. Additional guest-related metadata fields */
3589
+ guestAccountInfo?: GuestAccountInfo;
3568
3590
  /** Stores the hash format of the `password` property. The following `hashFunction` values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple hex-encoded values. * `crypt` - Compliant with the [C crypt library](https://en.wikipedia.org/wiki/Crypt_%28C%29). Supports the DES, MD5 (hash prefix `$1$`), SHA-256 (hash prefix `$5$`), and SHA-512 (hash prefix `$6$`) hash algorithms. If rounds are specified as part of the prefix, they must be 10,000 or fewer. */
3569
3591
  hashFunction?: string;
3570
3592
  /** The unique ID for the user. A user `id` can be used as a user request URI's `userKey`. */
@@ -3583,6 +3605,8 @@ declare namespace gapi.client {
3583
3605
  isEnforcedIn2Sv?: boolean;
3584
3606
  /** Output only. Is enrolled in 2-step verification (Read-only) */
3585
3607
  isEnrolledIn2Sv?: boolean;
3608
+ /** Immutable. Indicates if the inserted user is a guest. */
3609
+ isGuestUser?: boolean;
3586
3610
  /** Output only. Indicates if the user's Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license. */
3587
3611
  isMailboxSetup?: boolean;
3588
3612
  /** The list of the user's keywords. The maximum allowed data size for this field is 1KB. */
@@ -7991,6 +8015,60 @@ declare namespace gapi.client {
7991
8015
  ): Request<UserPhoto>;
7992
8016
  }
7993
8017
  interface UsersResource {
8018
+ /** Create a guest user with access to a [subset of Workspace capabilities](https://support.google.com/a/answer/16558545?hl=en). This feature is currently in Alpha. Please reach out to support if you are interested in trying this feature. */
8019
+ createGuest(request: {
8020
+ /** V1 error format. */
8021
+ '$.xgafv'?: string;
8022
+ /** OAuth access token. */
8023
+ access_token?: string;
8024
+ /** Data format for response. */
8025
+ alt?: string;
8026
+ /** JSONP */
8027
+ callback?: string;
8028
+ /** Selector specifying which fields to include in a partial response. */
8029
+ fields?: string;
8030
+ /** 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. */
8031
+ key?: string;
8032
+ /** OAuth 2.0 token for the current user. */
8033
+ oauth_token?: string;
8034
+ /** Returns response with indentations and line breaks. */
8035
+ prettyPrint?: boolean;
8036
+ /** 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. */
8037
+ quotaUser?: string;
8038
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8039
+ upload_protocol?: string;
8040
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8041
+ uploadType?: string;
8042
+ /** Request body */
8043
+ resource: DirectoryUsersCreateGuestRequest;
8044
+ }): Request<User>;
8045
+ createGuest(
8046
+ request: {
8047
+ /** V1 error format. */
8048
+ '$.xgafv'?: string;
8049
+ /** OAuth access token. */
8050
+ access_token?: string;
8051
+ /** Data format for response. */
8052
+ alt?: string;
8053
+ /** JSONP */
8054
+ callback?: string;
8055
+ /** Selector specifying which fields to include in a partial response. */
8056
+ fields?: string;
8057
+ /** 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. */
8058
+ key?: string;
8059
+ /** OAuth 2.0 token for the current user. */
8060
+ oauth_token?: string;
8061
+ /** Returns response with indentations and line breaks. */
8062
+ prettyPrint?: boolean;
8063
+ /** 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. */
8064
+ quotaUser?: string;
8065
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8066
+ upload_protocol?: string;
8067
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8068
+ uploadType?: string;
8069
+ },
8070
+ body: DirectoryUsersCreateGuestRequest,
8071
+ ): Request<User>;
7994
8072
  /** Deletes a user. */
7995
8073
  delete(request?: {
7996
8074
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.admin-directory_v1",
3
- "version": "0.1.20251117",
3
+ "version": "0.1.20251124",
4
4
  "description": "TypeScript typings for Admin SDK API directory_v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -576,6 +576,11 @@ Turns off 2-Step Verification for user.
576
576
  */
577
577
  await gapi.client.directory.twoStepVerification.turnOff({userKey: 'userKey'});
578
578
 
579
+ /*
580
+ Create a guest user with access to a [subset of Workspace capabilities](https://support.google.com/a/answer/16558545?hl=en). This feature is currently in Alpha. Please reach out to support if you are interested in trying this feature.
581
+ */
582
+ await gapi.client.directory.users.createGuest({});
583
+
579
584
  /*
580
585
  Deletes a user.
581
586
  */