@maxim_mazurok/gapi.client.cloudidentity-v1beta1 0.3.20260812 → 0.3.20260819

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 +156 -1
  2. package/package.json +1 -1
  3. package/readme.md +26 -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://cloudidentity.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20260812
12
+ // Revision: 20260819
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -36,6 +36,12 @@ declare namespace gapi.client {
36
36
  /** PEM encoded x509 certificate containing the public key for verifying IdP signatures. */
37
37
  pemData?: string;
38
38
  }
39
+ interface AllowlistedDomain {
40
+ /** Required. Immutable. Name of the domain that is in the allowlist. e.g. "google.com" */
41
+ domain?: string;
42
+ /** Output only. Identifier. Resource name of the domain in the allowlist e.g. "allowlistedDomains/0184mhaj1smlusv" */
43
+ name?: string;
44
+ }
39
45
  interface AndroidAttributes {
40
46
  /** Whether the device passes Android CTS compliance. */
41
47
  ctsProfileMatch?: boolean;
@@ -885,6 +891,12 @@ declare namespace gapi.client {
885
891
  /** Returns true if the email address is invitable. */
886
892
  isInvitableUser?: boolean;
887
893
  }
894
+ interface ListAllowlistedDomainsResponse {
895
+ /** Contains the list of domains in the allowlist. There is no defined ordering of domains within a result. */
896
+ allowlistedDomains?: AllowlistedDomain[];
897
+ /** Contains the next page token if the result is not exhaustive. If there are no more results, this token is empty. */
898
+ nextPageToken?: string;
899
+ }
888
900
  interface ListClientStatesResponse {
889
901
  /** Client states meeting the list restrictions. */
890
902
  clientStates?: ClientState[];
@@ -1323,6 +1335,147 @@ declare namespace gapi.client {
1323
1335
  /** Resultant DeviceUser object for the action. */
1324
1336
  deviceUser?: DeviceUser;
1325
1337
  }
1338
+ interface AllowlistedDomainsResource {
1339
+ /** Adds a domain to the allowlist. */
1340
+ create(request: {
1341
+ /** V1 error format. */
1342
+ '$.xgafv'?: '1' | '2';
1343
+ /** OAuth access token. */
1344
+ access_token?: string;
1345
+ /** Data format for response. */
1346
+ alt?: 'json' | 'media' | 'proto';
1347
+ /** JSONP */
1348
+ callback?: string;
1349
+ /** Selector specifying which fields to include in a partial response. */
1350
+ fields?: string;
1351
+ /** 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. */
1352
+ key?: string;
1353
+ /** OAuth 2.0 token for the current user. */
1354
+ oauth_token?: string;
1355
+ /** Returns response with indentations and line breaks. */
1356
+ prettyPrint?: boolean;
1357
+ /** 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. */
1358
+ quotaUser?: string;
1359
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1360
+ upload_protocol?: string;
1361
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1362
+ uploadType?: string;
1363
+ /** Request body */
1364
+ resource: AllowlistedDomain;
1365
+ }): Request<Operation>;
1366
+ create(
1367
+ request: {
1368
+ /** V1 error format. */
1369
+ '$.xgafv'?: '1' | '2';
1370
+ /** OAuth access token. */
1371
+ access_token?: string;
1372
+ /** Data format for response. */
1373
+ alt?: 'json' | 'media' | 'proto';
1374
+ /** JSONP */
1375
+ callback?: string;
1376
+ /** Selector specifying which fields to include in a partial response. */
1377
+ fields?: string;
1378
+ /** 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. */
1379
+ key?: string;
1380
+ /** OAuth 2.0 token for the current user. */
1381
+ oauth_token?: string;
1382
+ /** Returns response with indentations and line breaks. */
1383
+ prettyPrint?: boolean;
1384
+ /** 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. */
1385
+ quotaUser?: string;
1386
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1387
+ upload_protocol?: string;
1388
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1389
+ uploadType?: string;
1390
+ },
1391
+ body: AllowlistedDomain,
1392
+ ): Request<Operation>;
1393
+ /** Removes a domain from the allowlist. */
1394
+ delete(request?: {
1395
+ /** V1 error format. */
1396
+ '$.xgafv'?: '1' | '2';
1397
+ /** OAuth access token. */
1398
+ access_token?: string;
1399
+ /** Data format for response. */
1400
+ alt?: 'json' | 'media' | 'proto';
1401
+ /** JSONP */
1402
+ callback?: string;
1403
+ /** Selector specifying which fields to include in a partial response. */
1404
+ fields?: string;
1405
+ /** 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. */
1406
+ key?: string;
1407
+ /** Required. Specifies the [resource name](https://google.aip.dev/122) of the domain to delete. */
1408
+ name: string;
1409
+ /** OAuth 2.0 token for the current user. */
1410
+ oauth_token?: string;
1411
+ /** Returns response with indentations and line breaks. */
1412
+ prettyPrint?: boolean;
1413
+ /** 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. */
1414
+ quotaUser?: string;
1415
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1416
+ upload_protocol?: string;
1417
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1418
+ uploadType?: string;
1419
+ }): Request<Operation>;
1420
+ /** Retrieves a specific domain from the allowlist. */
1421
+ get(request?: {
1422
+ /** V1 error format. */
1423
+ '$.xgafv'?: '1' | '2';
1424
+ /** OAuth access token. */
1425
+ access_token?: string;
1426
+ /** Data format for response. */
1427
+ alt?: 'json' | 'media' | 'proto';
1428
+ /** JSONP */
1429
+ callback?: string;
1430
+ /** Selector specifying which fields to include in a partial response. */
1431
+ fields?: string;
1432
+ /** 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. */
1433
+ key?: string;
1434
+ /** Required. Specifies the [resource name](https://google.aip.dev/122) of the domain to retrieve. */
1435
+ name: string;
1436
+ /** OAuth 2.0 token for the current user. */
1437
+ oauth_token?: string;
1438
+ /** Returns response with indentations and line breaks. */
1439
+ prettyPrint?: boolean;
1440
+ /** 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. */
1441
+ quotaUser?: string;
1442
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1443
+ upload_protocol?: string;
1444
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1445
+ uploadType?: string;
1446
+ }): Request<AllowlistedDomain>;
1447
+ /** Lists the domains in the allowlist. */
1448
+ list(request?: {
1449
+ /** V1 error format. */
1450
+ '$.xgafv'?: '1' | '2';
1451
+ /** OAuth access token. */
1452
+ access_token?: string;
1453
+ /** Data format for response. */
1454
+ alt?: 'json' | 'media' | 'proto';
1455
+ /** JSONP */
1456
+ callback?: string;
1457
+ /** Selector specifying which fields to include in a partial response. */
1458
+ fields?: string;
1459
+ /** Optional. Provides an optional filter for list results. Currently, only exact matches on the domain are supported, such as "domain = 'google.com'", with no composite conditions. */
1460
+ filter?: string;
1461
+ /** 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. */
1462
+ key?: string;
1463
+ /** OAuth 2.0 token for the current user. */
1464
+ oauth_token?: string;
1465
+ /** Optional. Specifies the requested page size. If unspecified, the service returns at most 5000 domains. The maximum value is 5000; values above 5000 coerce to 5000. The limits can change over time. */
1466
+ pageSize?: number;
1467
+ /** Optional. Identifies a token from a previous page of results, if any. */
1468
+ pageToken?: string;
1469
+ /** Returns response with indentations and line breaks. */
1470
+ prettyPrint?: boolean;
1471
+ /** 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. */
1472
+ quotaUser?: string;
1473
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1474
+ upload_protocol?: string;
1475
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1476
+ uploadType?: string;
1477
+ }): Request<ListAllowlistedDomainsResponse>;
1478
+ }
1326
1479
  interface UserinvitationsResource {
1327
1480
  /** Cancels a UserInvitation that was already sent. */
1328
1481
  cancel(request: {
@@ -4083,6 +4236,8 @@ declare namespace gapi.client {
4083
4236
  ): Request<Operation>;
4084
4237
  }
4085
4238
 
4239
+ const allowlistedDomains: AllowlistedDomainsResource;
4240
+
4086
4241
  const customers: CustomersResource;
4087
4242
 
4088
4243
  const devices: DevicesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudidentity-v1beta1",
3
- "version": "0.3.20260812",
3
+ "version": "0.3.20260819",
4
4
  "description": "TypeScript typings for Cloud Identity API v1beta1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -65,6 +65,12 @@ Don't forget to authenticate your client before sending any request to resources
65
65
  // declare client_id registered in Google Developers Console
66
66
  var client_id = '',
67
67
  scope = [
68
+ // See and edit allowlisted domains in your Cloud Identity Organization
69
+ 'https://www.googleapis.com/auth/cloud-identity.allowlisteddomains',
70
+
71
+ // See allowlisted domains in your Cloud Identity Organization
72
+ 'https://www.googleapis.com/auth/cloud-identity.allowlisteddomains.readonly',
73
+
68
74
  // Private Service: https://www.googleapis.com/auth/cloud-identity.devices
69
75
  'https://www.googleapis.com/auth/cloud-identity.devices',
70
76
 
@@ -119,6 +125,26 @@ gapi.auth.authorize(
119
125
  After that you can use Cloud Identity API resources: <!-- TODO: make this work for multiple namespaces -->
120
126
 
121
127
  ```typescript
128
+ /*
129
+ Adds a domain to the allowlist.
130
+ */
131
+ await gapi.client.cloudidentity.allowlistedDomains.create({});
132
+
133
+ /*
134
+ Removes a domain from the allowlist.
135
+ */
136
+ await gapi.client.cloudidentity.allowlistedDomains.delete({name: 'name'});
137
+
138
+ /*
139
+ Retrieves a specific domain from the allowlist.
140
+ */
141
+ await gapi.client.cloudidentity.allowlistedDomains.get({name: 'name'});
142
+
143
+ /*
144
+ Lists the domains in the allowlist.
145
+ */
146
+ await gapi.client.cloudidentity.allowlistedDomains.list({});
147
+
122
148
  /*
123
149
  Cancels an unfinished device wipe. This operation can be used to cancel device wipe in the gap between the wipe operation returning success and the device being wiped.
124
150
  */