@maxim_mazurok/gapi.client.admin-directory_v1 0.0.20221020 → 0.0.20221108
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 +31 -27
- package/package.json +1 -1
- package/tests.ts +4 -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://admin.googleapis.com/$discovery/rest?version=directory_v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221108
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1170,7 +1170,7 @@ declare namespace gapi.client {
|
|
|
1170
1170
|
kind?: string;
|
|
1171
1171
|
}
|
|
1172
1172
|
interface User {
|
|
1173
|
-
/** The list of the user's addresses. The maximum allowed data size for this field is
|
|
1173
|
+
/** The list of the user's addresses. The maximum allowed data size for this field is 10KB. */
|
|
1174
1174
|
addresses?: any;
|
|
1175
1175
|
/** Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement. */
|
|
1176
1176
|
agreedToTerms?: boolean;
|
|
@@ -1194,13 +1194,13 @@ declare namespace gapi.client {
|
|
|
1194
1194
|
/** Custom fields of the user. The key is a `schema_name` and its values are `'field_name': 'field_value'`. */
|
|
1195
1195
|
customSchemas?: { [P in string]: UserCustomProperties };
|
|
1196
1196
|
deletionTime?: string;
|
|
1197
|
-
/** The list of the user's email addresses. The maximum allowed data size for this field is
|
|
1197
|
+
/** The list of the user's email addresses. The maximum allowed data size for this field is 10KB. */
|
|
1198
1198
|
emails?: any;
|
|
1199
1199
|
/** Output only. ETag of the resource. */
|
|
1200
1200
|
etag?: string;
|
|
1201
|
-
/** The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is
|
|
1201
|
+
/** The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2KB. */
|
|
1202
1202
|
externalIds?: any;
|
|
1203
|
-
/** The user's gender. The maximum allowed data size for this field is
|
|
1203
|
+
/** The user's gender. The maximum allowed data size for this field is 1KB. */
|
|
1204
1204
|
gender?: any;
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Stores the hash format of the `password` property. The following `hashFunction` values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple
|
|
@@ -1212,7 +1212,7 @@ declare namespace gapi.client {
|
|
|
1212
1212
|
id?: string;
|
|
1213
1213
|
/**
|
|
1214
1214
|
* The list of the user's Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The
|
|
1215
|
-
* maximum allowed data size for this field is
|
|
1215
|
+
* maximum allowed data size for this field is 2KB.
|
|
1216
1216
|
*/
|
|
1217
1217
|
ims?: any;
|
|
1218
1218
|
/**
|
|
@@ -1239,33 +1239,33 @@ declare namespace gapi.client {
|
|
|
1239
1239
|
isEnrolledIn2Sv?: boolean;
|
|
1240
1240
|
/** 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. */
|
|
1241
1241
|
isMailboxSetup?: boolean;
|
|
1242
|
-
/** The list of the user's keywords. The maximum allowed data size for this field is
|
|
1242
|
+
/** The list of the user's keywords. The maximum allowed data size for this field is 1KB. */
|
|
1243
1243
|
keywords?: any;
|
|
1244
1244
|
/** Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`. */
|
|
1245
1245
|
kind?: string;
|
|
1246
|
-
/** The user's languages. The maximum allowed data size for this field is
|
|
1246
|
+
/** The user's languages. The maximum allowed data size for this field is 1KB. */
|
|
1247
1247
|
languages?: any;
|
|
1248
1248
|
/** User's last login time. (Read-only) */
|
|
1249
1249
|
lastLoginTime?: string;
|
|
1250
|
-
/** The user's locations. The maximum allowed data size for this field is
|
|
1250
|
+
/** The user's locations. The maximum allowed data size for this field is 10KB. */
|
|
1251
1251
|
locations?: any;
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In
|
|
1254
1254
|
* addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information
|
|
1255
|
-
* about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is
|
|
1255
|
+
* about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1KB.
|
|
1256
1256
|
*/
|
|
1257
1257
|
name?: UserName;
|
|
1258
1258
|
/** Output only. The list of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain. */
|
|
1259
1259
|
nonEditableAliases?: string[];
|
|
1260
1260
|
/** Notes for the user. */
|
|
1261
1261
|
notes?: any;
|
|
1262
|
-
/** The list of organizations the user belongs to. The maximum allowed data size for this field is
|
|
1262
|
+
/** The list of organizations the user belongs to. The maximum allowed data size for this field is 10KB. */
|
|
1263
1263
|
organizations?: any;
|
|
1264
1264
|
/** The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`). */
|
|
1265
1265
|
orgUnitPath?: string;
|
|
1266
1266
|
/** User's password */
|
|
1267
1267
|
password?: string;
|
|
1268
|
-
/** The list of the user's phone numbers. The maximum allowed data size for this field is
|
|
1268
|
+
/** The list of the user's phone numbers. The maximum allowed data size for this field is 1KB. */
|
|
1269
1269
|
phones?: any;
|
|
1270
1270
|
/** The list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user. */
|
|
1271
1271
|
posixAccounts?: any;
|
|
@@ -1275,7 +1275,7 @@ declare namespace gapi.client {
|
|
|
1275
1275
|
recoveryEmail?: string;
|
|
1276
1276
|
/** Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*. */
|
|
1277
1277
|
recoveryPhone?: string;
|
|
1278
|
-
/** The list of the user's relationships to other users. The maximum allowed data size for this field is
|
|
1278
|
+
/** The list of the user's relationships to other users. The maximum allowed data size for this field is 2KB. */
|
|
1279
1279
|
relations?: any;
|
|
1280
1280
|
/** A list of SSH public keys. */
|
|
1281
1281
|
sshPublicKeys?: any;
|
|
@@ -1290,7 +1290,7 @@ declare namespace gapi.client {
|
|
|
1290
1290
|
thumbnailPhotoEtag?: string;
|
|
1291
1291
|
/** Output only. Photo Url of the user (Read-only) */
|
|
1292
1292
|
thumbnailPhotoUrl?: string;
|
|
1293
|
-
/** The user's websites. The maximum allowed data size for this field is
|
|
1293
|
+
/** The user's websites. The maximum allowed data size for this field is 2KB. */
|
|
1294
1294
|
websites?: any;
|
|
1295
1295
|
}
|
|
1296
1296
|
interface UserAbout {
|
|
@@ -1446,6 +1446,8 @@ declare namespace gapi.client {
|
|
|
1446
1446
|
status?: boolean;
|
|
1447
1447
|
}
|
|
1448
1448
|
interface UserName {
|
|
1449
|
+
/** The user's display name. Limit: 256 characters. */
|
|
1450
|
+
displayName?: string;
|
|
1449
1451
|
/** The user's last name. Required when creating a user account. */
|
|
1450
1452
|
familyName?: string;
|
|
1451
1453
|
/** The user's full name formed by concatenating the first and last name values. */
|
|
@@ -3623,7 +3625,7 @@ declare namespace gapi.client {
|
|
|
3623
3625
|
kind?: string;
|
|
3624
3626
|
}
|
|
3625
3627
|
interface User {
|
|
3626
|
-
/** The list of the user's addresses. The maximum allowed data size for this field is
|
|
3628
|
+
/** The list of the user's addresses. The maximum allowed data size for this field is 10KB. */
|
|
3627
3629
|
addresses?: any;
|
|
3628
3630
|
/** Output only. This property is `true` if the user has completed an initial login and accepted the Terms of Service agreement. */
|
|
3629
3631
|
agreedToTerms?: boolean;
|
|
@@ -3647,13 +3649,13 @@ declare namespace gapi.client {
|
|
|
3647
3649
|
/** Custom fields of the user. The key is a `schema_name` and its values are `'field_name': 'field_value'`. */
|
|
3648
3650
|
customSchemas?: { [P in string]: UserCustomProperties };
|
|
3649
3651
|
deletionTime?: string;
|
|
3650
|
-
/** The list of the user's email addresses. The maximum allowed data size for this field is
|
|
3652
|
+
/** The list of the user's email addresses. The maximum allowed data size for this field is 10KB. */
|
|
3651
3653
|
emails?: any;
|
|
3652
3654
|
/** Output only. ETag of the resource. */
|
|
3653
3655
|
etag?: string;
|
|
3654
|
-
/** The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is
|
|
3656
|
+
/** The list of external IDs for the user, such as an employee or network ID. The maximum allowed data size for this field is 2KB. */
|
|
3655
3657
|
externalIds?: any;
|
|
3656
|
-
/** The user's gender. The maximum allowed data size for this field is
|
|
3658
|
+
/** The user's gender. The maximum allowed data size for this field is 1KB. */
|
|
3657
3659
|
gender?: any;
|
|
3658
3660
|
/**
|
|
3659
3661
|
* Stores the hash format of the `password` property. The following `hashFunction` values are allowed: * `MD5` - Accepts simple hex-encoded values. * `SHA-1` - Accepts simple
|
|
@@ -3665,7 +3667,7 @@ declare namespace gapi.client {
|
|
|
3665
3667
|
id?: string;
|
|
3666
3668
|
/**
|
|
3667
3669
|
* The list of the user's Instant Messenger (IM) accounts. A user account can have multiple ims properties. But, only one of these ims properties can be the primary IM contact. The
|
|
3668
|
-
* maximum allowed data size for this field is
|
|
3670
|
+
* maximum allowed data size for this field is 2KB.
|
|
3669
3671
|
*/
|
|
3670
3672
|
ims?: any;
|
|
3671
3673
|
/**
|
|
@@ -3692,33 +3694,33 @@ declare namespace gapi.client {
|
|
|
3692
3694
|
isEnrolledIn2Sv?: boolean;
|
|
3693
3695
|
/** 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. */
|
|
3694
3696
|
isMailboxSetup?: boolean;
|
|
3695
|
-
/** The list of the user's keywords. The maximum allowed data size for this field is
|
|
3697
|
+
/** The list of the user's keywords. The maximum allowed data size for this field is 1KB. */
|
|
3696
3698
|
keywords?: any;
|
|
3697
3699
|
/** Output only. The type of the API resource. For Users resources, the value is `admin#directory#user`. */
|
|
3698
3700
|
kind?: string;
|
|
3699
|
-
/** The user's languages. The maximum allowed data size for this field is
|
|
3701
|
+
/** The user's languages. The maximum allowed data size for this field is 1KB. */
|
|
3700
3702
|
languages?: any;
|
|
3701
3703
|
/** User's last login time. (Read-only) */
|
|
3702
3704
|
lastLoginTime?: string;
|
|
3703
|
-
/** The user's locations. The maximum allowed data size for this field is
|
|
3705
|
+
/** The user's locations. The maximum allowed data size for this field is 10KB. */
|
|
3704
3706
|
locations?: any;
|
|
3705
3707
|
/**
|
|
3706
3708
|
* Holds the given and family names of the user, and the read-only `fullName` value. The maximum number of characters in the `givenName` and in the `familyName` values is 60. In
|
|
3707
3709
|
* addition, name values support unicode/UTF-8 characters, and can contain spaces, letters (a-z), numbers (0-9), dashes (-), forward slashes (/), and periods (.). For more information
|
|
3708
|
-
* about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is
|
|
3710
|
+
* about character usage rules, see the [administration help center](https://support.google.com/a/answer/9193374). Maximum allowed data size for this field is 1KB.
|
|
3709
3711
|
*/
|
|
3710
3712
|
name?: UserName;
|
|
3711
3713
|
/** Output only. The list of the user's non-editable alias email addresses. These are typically outside the account's primary domain or sub-domain. */
|
|
3712
3714
|
nonEditableAliases?: string[];
|
|
3713
3715
|
/** Notes for the user. */
|
|
3714
3716
|
notes?: any;
|
|
3715
|
-
/** The list of organizations the user belongs to. The maximum allowed data size for this field is
|
|
3717
|
+
/** The list of organizations the user belongs to. The maximum allowed data size for this field is 10KB. */
|
|
3716
3718
|
organizations?: any;
|
|
3717
3719
|
/** The full path of the parent organization associated with the user. If the parent organization is the top-level, it is represented as a forward slash (`/`). */
|
|
3718
3720
|
orgUnitPath?: string;
|
|
3719
3721
|
/** User's password */
|
|
3720
3722
|
password?: string;
|
|
3721
|
-
/** The list of the user's phone numbers. The maximum allowed data size for this field is
|
|
3723
|
+
/** The list of the user's phone numbers. The maximum allowed data size for this field is 1KB. */
|
|
3722
3724
|
phones?: any;
|
|
3723
3725
|
/** The list of [POSIX](https://www.opengroup.org/austin/papers/posix_faq.html) account information for the user. */
|
|
3724
3726
|
posixAccounts?: any;
|
|
@@ -3728,7 +3730,7 @@ declare namespace gapi.client {
|
|
|
3728
3730
|
recoveryEmail?: string;
|
|
3729
3731
|
/** Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: *+16506661212*. */
|
|
3730
3732
|
recoveryPhone?: string;
|
|
3731
|
-
/** The list of the user's relationships to other users. The maximum allowed data size for this field is
|
|
3733
|
+
/** The list of the user's relationships to other users. The maximum allowed data size for this field is 2KB. */
|
|
3732
3734
|
relations?: any;
|
|
3733
3735
|
/** A list of SSH public keys. */
|
|
3734
3736
|
sshPublicKeys?: any;
|
|
@@ -3743,7 +3745,7 @@ declare namespace gapi.client {
|
|
|
3743
3745
|
thumbnailPhotoEtag?: string;
|
|
3744
3746
|
/** Output only. Photo Url of the user (Read-only) */
|
|
3745
3747
|
thumbnailPhotoUrl?: string;
|
|
3746
|
-
/** The user's websites. The maximum allowed data size for this field is
|
|
3748
|
+
/** The user's websites. The maximum allowed data size for this field is 2KB. */
|
|
3747
3749
|
websites?: any;
|
|
3748
3750
|
}
|
|
3749
3751
|
interface UserAbout {
|
|
@@ -3899,6 +3901,8 @@ declare namespace gapi.client {
|
|
|
3899
3901
|
status?: boolean;
|
|
3900
3902
|
}
|
|
3901
3903
|
interface UserName {
|
|
3904
|
+
/** The user's display name. Limit: 256 characters. */
|
|
3905
|
+
displayName?: string;
|
|
3902
3906
|
/** The user's last name. Required when creating a user account. */
|
|
3903
3907
|
familyName?: string;
|
|
3904
3908
|
/** The user's full name formed by concatenating the first and last name values. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20221108
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -1498,6 +1498,7 @@ gapi.load('client', async () => {
|
|
|
1498
1498
|
lastLoginTime: "Test string",
|
|
1499
1499
|
locations: 42,
|
|
1500
1500
|
name: {
|
|
1501
|
+
displayName: "Test string",
|
|
1501
1502
|
familyName: "Test string",
|
|
1502
1503
|
fullName: "Test string",
|
|
1503
1504
|
givenName: "Test string",
|
|
@@ -1585,6 +1586,7 @@ gapi.load('client', async () => {
|
|
|
1585
1586
|
lastLoginTime: "Test string",
|
|
1586
1587
|
locations: 42,
|
|
1587
1588
|
name: {
|
|
1589
|
+
displayName: "Test string",
|
|
1588
1590
|
familyName: "Test string",
|
|
1589
1591
|
fullName: "Test string",
|
|
1590
1592
|
givenName: "Test string",
|
|
@@ -1661,6 +1663,7 @@ gapi.load('client', async () => {
|
|
|
1661
1663
|
lastLoginTime: "Test string",
|
|
1662
1664
|
locations: 42,
|
|
1663
1665
|
name: {
|
|
1666
|
+
displayName: "Test string",
|
|
1664
1667
|
familyName: "Test string",
|
|
1665
1668
|
fullName: "Test string",
|
|
1666
1669
|
givenName: "Test string",
|