@maxim_mazurok/gapi.client.cloudidentity-v1 0.3.20260812 → 0.3.20260817

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=v1
12
- // Revision: 20260812
12
+ // Revision: 20260817
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 CancelUserInvitationRequest {}
40
46
  interface CheckTransitiveMembershipResponse {
41
47
  /** Response does not include the possible roles of a member since the behavior of this rpc is not all-or-nothing unlike the other rpcs. So, it may not be possible to list all the roles definitively, due to possible lack of authorization in some of the paths. */
@@ -566,6 +572,12 @@ declare namespace gapi.client {
566
572
  /** Returns true if the email address is invitable. */
567
573
  isInvitableUser?: boolean;
568
574
  }
575
+ interface ListAllowlistedDomainsResponse {
576
+ /** Contains the list of domains in the allowlist. There is no defined ordering of domains within a result. */
577
+ allowlistedDomains?: AllowlistedDomain[];
578
+ /** Contains the next page token if the result is not exhaustive. If there are no more results, this token is empty. */
579
+ nextPageToken?: string;
580
+ }
569
581
  interface ListGroupsResponse {
570
582
  /** Groups returned in response to list request. The results are not sorted. */
571
583
  groups?: Group[];
@@ -897,6 +909,147 @@ declare namespace gapi.client {
897
909
  /** Time when the `UserInvitation` was last updated. */
898
910
  updateTime?: string;
899
911
  }
912
+ interface AllowlistedDomainsResource {
913
+ /** Adds a domain to the allowlist. */
914
+ create(request: {
915
+ /** V1 error format. */
916
+ '$.xgafv'?: '1' | '2';
917
+ /** OAuth access token. */
918
+ access_token?: string;
919
+ /** Data format for response. */
920
+ alt?: 'json' | 'media' | 'proto';
921
+ /** JSONP */
922
+ callback?: string;
923
+ /** Selector specifying which fields to include in a partial response. */
924
+ fields?: string;
925
+ /** 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. */
926
+ key?: string;
927
+ /** OAuth 2.0 token for the current user. */
928
+ oauth_token?: string;
929
+ /** Returns response with indentations and line breaks. */
930
+ prettyPrint?: boolean;
931
+ /** 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. */
932
+ quotaUser?: string;
933
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
934
+ upload_protocol?: string;
935
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
936
+ uploadType?: string;
937
+ /** Request body */
938
+ resource: AllowlistedDomain;
939
+ }): Request<Operation>;
940
+ create(
941
+ request: {
942
+ /** V1 error format. */
943
+ '$.xgafv'?: '1' | '2';
944
+ /** OAuth access token. */
945
+ access_token?: string;
946
+ /** Data format for response. */
947
+ alt?: 'json' | 'media' | 'proto';
948
+ /** JSONP */
949
+ callback?: string;
950
+ /** Selector specifying which fields to include in a partial response. */
951
+ fields?: string;
952
+ /** 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. */
953
+ key?: string;
954
+ /** OAuth 2.0 token for the current user. */
955
+ oauth_token?: string;
956
+ /** Returns response with indentations and line breaks. */
957
+ prettyPrint?: boolean;
958
+ /** 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. */
959
+ quotaUser?: string;
960
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
961
+ upload_protocol?: string;
962
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
963
+ uploadType?: string;
964
+ },
965
+ body: AllowlistedDomain,
966
+ ): Request<Operation>;
967
+ /** Removes a domain from the allowlist. */
968
+ delete(request?: {
969
+ /** V1 error format. */
970
+ '$.xgafv'?: '1' | '2';
971
+ /** OAuth access token. */
972
+ access_token?: string;
973
+ /** Data format for response. */
974
+ alt?: 'json' | 'media' | 'proto';
975
+ /** JSONP */
976
+ callback?: string;
977
+ /** Selector specifying which fields to include in a partial response. */
978
+ fields?: string;
979
+ /** 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. */
980
+ key?: string;
981
+ /** Required. Specifies the [resource name](https://google.aip.dev/122) of the domain to delete. */
982
+ name: string;
983
+ /** OAuth 2.0 token for the current user. */
984
+ oauth_token?: string;
985
+ /** Returns response with indentations and line breaks. */
986
+ prettyPrint?: boolean;
987
+ /** 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. */
988
+ quotaUser?: string;
989
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
990
+ upload_protocol?: string;
991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
992
+ uploadType?: string;
993
+ }): Request<Operation>;
994
+ /** Retrieves a specific domain from the allowlist. */
995
+ get(request?: {
996
+ /** V1 error format. */
997
+ '$.xgafv'?: '1' | '2';
998
+ /** OAuth access token. */
999
+ access_token?: string;
1000
+ /** Data format for response. */
1001
+ alt?: 'json' | 'media' | 'proto';
1002
+ /** JSONP */
1003
+ callback?: string;
1004
+ /** Selector specifying which fields to include in a partial response. */
1005
+ fields?: string;
1006
+ /** 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. */
1007
+ key?: string;
1008
+ /** Required. Specifies the [resource name](https://google.aip.dev/122) of the domain to retrieve. */
1009
+ name: string;
1010
+ /** OAuth 2.0 token for the current user. */
1011
+ oauth_token?: string;
1012
+ /** Returns response with indentations and line breaks. */
1013
+ prettyPrint?: boolean;
1014
+ /** 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. */
1015
+ quotaUser?: string;
1016
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1017
+ upload_protocol?: string;
1018
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1019
+ uploadType?: string;
1020
+ }): Request<AllowlistedDomain>;
1021
+ /** Lists the domains in the allowlist. */
1022
+ list(request?: {
1023
+ /** V1 error format. */
1024
+ '$.xgafv'?: '1' | '2';
1025
+ /** OAuth access token. */
1026
+ access_token?: string;
1027
+ /** Data format for response. */
1028
+ alt?: 'json' | 'media' | 'proto';
1029
+ /** JSONP */
1030
+ callback?: string;
1031
+ /** Selector specifying which fields to include in a partial response. */
1032
+ fields?: string;
1033
+ /** 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. */
1034
+ filter?: string;
1035
+ /** 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. */
1036
+ key?: string;
1037
+ /** OAuth 2.0 token for the current user. */
1038
+ oauth_token?: string;
1039
+ /** 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. */
1040
+ pageSize?: number;
1041
+ /** Optional. Identifies a token from a previous page of results, if any. */
1042
+ pageToken?: string;
1043
+ /** Returns response with indentations and line breaks. */
1044
+ prettyPrint?: boolean;
1045
+ /** 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. */
1046
+ quotaUser?: string;
1047
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1048
+ upload_protocol?: string;
1049
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1050
+ uploadType?: string;
1051
+ }): Request<ListAllowlistedDomainsResponse>;
1052
+ }
900
1053
  interface UserinvitationsResource {
901
1054
  /** Cancels a UserInvitation that was already sent. */
902
1055
  cancel(request: {
@@ -3596,6 +3749,8 @@ declare namespace gapi.client {
3596
3749
  ): Request<Operation>;
3597
3750
  }
3598
3751
 
3752
+ const allowlistedDomains: AllowlistedDomainsResource;
3753
+
3599
3754
  const customers: CustomersResource;
3600
3755
 
3601
3756
  const devices: DevicesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudidentity-v1",
3
- "version": "0.3.20260812",
3
+ "version": "0.3.20260817",
4
4
  "description": "TypeScript typings for Cloud Identity API v1",
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
 
@@ -113,6 +119,26 @@ gapi.auth.authorize(
113
119
  After that you can use Cloud Identity API resources: <!-- TODO: make this work for multiple namespaces -->
114
120
 
115
121
  ```typescript
122
+ /*
123
+ Adds a domain to the allowlist.
124
+ */
125
+ await gapi.client.cloudidentity.allowlistedDomains.create({});
126
+
127
+ /*
128
+ Removes a domain from the allowlist.
129
+ */
130
+ await gapi.client.cloudidentity.allowlistedDomains.delete({name: 'name'});
131
+
132
+ /*
133
+ Retrieves a specific domain from the allowlist.
134
+ */
135
+ await gapi.client.cloudidentity.allowlistedDomains.get({name: 'name'});
136
+
137
+ /*
138
+ Lists the domains in the allowlist.
139
+ */
140
+ await gapi.client.cloudidentity.allowlistedDomains.list({});
141
+
116
142
  /*
117
143
  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. This operation is possible when the device is in a "pending wipe" state. The device enters the "pending wipe" state when a wipe device command is issued, but has not yet been sent to the device. The cancel wipe will fail if the wipe command has already been issued to the device.
118
144
  */