auth0 6.2.0 → 6.3.0
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/dist/cjs/management/api/requests/requests.d.ts +28 -11
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +2 -2
- package/dist/cjs/management/api/resources/clients/client/Client.js +2 -2
- package/dist/cjs/management/api/resources/connections/client/Client.d.ts +1 -1
- package/dist/cjs/management/api/resources/connections/client/Client.js +1 -1
- package/dist/cjs/management/api/resources/flows/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/flows/resources/executions/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/forms/client/Client.d.ts +2 -0
- package/dist/cjs/management/api/resources/forms/client/Client.js +6 -0
- package/dist/cjs/management/api/resources/keys/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/keys/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/keys/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.d.ts +67 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/Client.js +251 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/client/index.js +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.d.ts +2 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/exports.js +21 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/networkAcls/index.js +17 -0
- package/dist/cjs/management/api/types/types.d.ts +148 -40
- package/dist/cjs/management/api/types/types.js +51 -22
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/management/api/requests/requests.d.mts +28 -11
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +2 -2
- package/dist/esm/management/api/resources/clients/client/Client.mjs +2 -2
- package/dist/esm/management/api/resources/connections/client/Client.d.mts +1 -1
- package/dist/esm/management/api/resources/connections/client/Client.mjs +1 -1
- package/dist/esm/management/api/resources/flows/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/flows/resources/executions/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/forms/client/Client.d.mts +2 -0
- package/dist/esm/management/api/resources/forms/client/Client.mjs +6 -0
- package/dist/esm/management/api/resources/keys/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/keys/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/keys/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.d.mts +67 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/Client.mjs +214 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.d.mts +2 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/exports.mjs +3 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/networkAcls/index.mjs +1 -0
- package/dist/esm/management/api/types/types.d.mts +148 -40
- package/dist/esm/management/api/types/types.mjs +35 -6
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +190 -3
|
@@ -502,6 +502,7 @@ export interface CreateConnectionProfileRequestContent {
|
|
|
502
502
|
enabled_features?: Management.ConnectionProfileEnabledFeatures;
|
|
503
503
|
connection_config?: Management.ConnectionProfileConfig;
|
|
504
504
|
strategy_overrides?: Management.ConnectionProfileStrategyOverrides;
|
|
505
|
+
cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
|
|
505
506
|
}
|
|
506
507
|
/**
|
|
507
508
|
* @example
|
|
@@ -514,6 +515,7 @@ export interface UpdateConnectionProfileRequestContent {
|
|
|
514
515
|
enabled_features?: Management.ConnectionProfileEnabledFeatures;
|
|
515
516
|
connection_config?: Management.ConnectionProfileConfig;
|
|
516
517
|
strategy_overrides?: Management.ConnectionProfileStrategyOverrides;
|
|
518
|
+
cross_app_access_resource_app?: Management.ConnectionProfileCrossAppAccessResourceApp;
|
|
517
519
|
}
|
|
518
520
|
/**
|
|
519
521
|
* @example
|
|
@@ -638,7 +640,7 @@ export interface CreateCustomDomainRequestContent {
|
|
|
638
640
|
type: Management.CustomDomainProvisioningTypeEnum;
|
|
639
641
|
verification_method?: Management.CustomDomainVerificationMethodEnum;
|
|
640
642
|
tls_policy?: Management.CustomDomainTlsPolicyEnum;
|
|
641
|
-
custom_client_ip_header?: Management.CustomDomainCustomClientIpHeader | undefined;
|
|
643
|
+
custom_client_ip_header?: (Management.CustomDomainCustomClientIpHeader | undefined) | null;
|
|
642
644
|
domain_metadata?: Management.DomainMetadata;
|
|
643
645
|
/** Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not provided, the full domain will be used. */
|
|
644
646
|
relying_party_identifier?: string;
|
|
@@ -660,7 +662,7 @@ export interface SetDefaultCustomDomainRequestContent {
|
|
|
660
662
|
export interface UpdateCustomDomainRequestContent {
|
|
661
663
|
/** recommended includes TLS 1.2 */
|
|
662
664
|
tls_policy?: Management.CustomDomainTlsPolicyEnum;
|
|
663
|
-
custom_client_ip_header?: Management.CustomDomainCustomClientIpHeader | undefined;
|
|
665
|
+
custom_client_ip_header?: (Management.CustomDomainCustomClientIpHeader | undefined) | null;
|
|
664
666
|
domain_metadata?: Management.DomainMetadata;
|
|
665
667
|
/** Relying Party ID (rpId) to be used for Passkeys on this custom domain. Set to null to remove the rpId and fall back to using the full domain. */
|
|
666
668
|
relying_party_identifier?: string | null;
|
|
@@ -941,13 +943,13 @@ export interface GetFormRequestParameters {
|
|
|
941
943
|
*/
|
|
942
944
|
export interface UpdateFormRequestContent {
|
|
943
945
|
name?: string;
|
|
944
|
-
messages?: Management.FormMessagesNullable | undefined;
|
|
945
|
-
languages?: Management.FormLanguagesNullable | undefined;
|
|
946
|
-
translations?: Management.FormTranslationsNullable | undefined;
|
|
947
|
-
nodes?: Management.FormNodeListNullable | undefined;
|
|
948
|
-
start?: Management.FormStartNodeNullable | undefined;
|
|
949
|
-
ending?: Management.FormEndingNodeNullable | undefined;
|
|
950
|
-
style?: Management.FormStyleNullable | undefined;
|
|
946
|
+
messages?: (Management.FormMessagesNullable | undefined) | null;
|
|
947
|
+
languages?: (Management.FormLanguagesNullable | undefined) | null;
|
|
948
|
+
translations?: (Management.FormTranslationsNullable | undefined) | null;
|
|
949
|
+
nodes?: (Management.FormNodeListNullable | undefined) | null;
|
|
950
|
+
start?: (Management.FormStartNodeNullable | undefined) | null;
|
|
951
|
+
ending?: (Management.FormEndingNodeNullable | undefined) | null;
|
|
952
|
+
style?: (Management.FormStyleNullable | undefined) | null;
|
|
951
953
|
}
|
|
952
954
|
/**
|
|
953
955
|
* @example
|
|
@@ -1638,7 +1640,7 @@ export interface UpdateSelfServiceProfileRequestContent {
|
|
|
1638
1640
|
/** The name of the self-service Profile. */
|
|
1639
1641
|
name?: string;
|
|
1640
1642
|
description?: (Management.SelfServiceProfileDescription | undefined) | null;
|
|
1641
|
-
branding?: Management.SelfServiceProfileBranding | undefined;
|
|
1643
|
+
branding?: (Management.SelfServiceProfileBranding | undefined) | null;
|
|
1642
1644
|
/** List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`] */
|
|
1643
1645
|
allowed_strategies?: Management.SelfServiceProfileAllowedStrategyEnum[];
|
|
1644
1646
|
user_attributes?: (Management.SelfServiceProfileUserAttributes | undefined) | null;
|
|
@@ -1801,7 +1803,7 @@ export interface CreateUserAttributeProfileRequestContent {
|
|
|
1801
1803
|
*/
|
|
1802
1804
|
export interface UpdateUserAttributeProfileRequestContent {
|
|
1803
1805
|
name?: Management.UserAttributeProfileName;
|
|
1804
|
-
user_id?: Management.UserAttributeProfilePatchUserId | undefined;
|
|
1806
|
+
user_id?: (Management.UserAttributeProfilePatchUserId | undefined) | null;
|
|
1805
1807
|
user_attributes?: Management.UserAttributeProfileUserAttributes;
|
|
1806
1808
|
}
|
|
1807
1809
|
/**
|
|
@@ -3143,6 +3145,21 @@ export interface ImportEncryptionKeyRequestContent {
|
|
|
3143
3145
|
/** Base64 encoded ciphertext of key material wrapped by public wrapping key. */
|
|
3144
3146
|
wrapped_key: string;
|
|
3145
3147
|
}
|
|
3148
|
+
/**
|
|
3149
|
+
* @example
|
|
3150
|
+
* {
|
|
3151
|
+
* name: "name",
|
|
3152
|
+
* alg: "hmac-sha256",
|
|
3153
|
+
* value: "value"
|
|
3154
|
+
* }
|
|
3155
|
+
*/
|
|
3156
|
+
export interface CreateKeysNetworkAclsRequestContent {
|
|
3157
|
+
/** Customer-supplied label with no cryptographic meaning. Must be unique across all Network ACL keys for the tenant. */
|
|
3158
|
+
name: string;
|
|
3159
|
+
alg: Management.NetworkAclKeyAlgorithmEnum;
|
|
3160
|
+
/** Base64-encoded raw key material. Constraints on the decoded value depend on the algorithm specified. Currently only HMAC-SHA256 is supported. */
|
|
3161
|
+
value: string;
|
|
3162
|
+
}
|
|
3146
3163
|
/**
|
|
3147
3164
|
* @example
|
|
3148
3165
|
* {
|
|
@@ -30,7 +30,7 @@ export declare class ClientsClient {
|
|
|
30
30
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
31
31
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
32
32
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
33
|
-
* `
|
|
33
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
34
34
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
35
35
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
36
36
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -165,7 +165,7 @@ export declare class ClientsClient {
|
|
|
165
165
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
166
166
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
167
167
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
168
|
-
* `
|
|
168
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
169
169
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
170
170
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
171
171
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -79,7 +79,7 @@ class ClientsClient {
|
|
|
79
79
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
80
80
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
81
81
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
82
|
-
* `
|
|
82
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
83
83
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
84
84
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
85
85
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -440,7 +440,7 @@ class ClientsClient {
|
|
|
440
440
|
* `jwt_configuration.lifetime_in_seconds`, `jwt_configuration.secret_encoded`,
|
|
441
441
|
* `jwt_configuration.scopes`, `jwt_configuration.alg`, `api_type`,
|
|
442
442
|
* `logo_uri`, `allowed_clients`, `owners`, `custom_login_page`,
|
|
443
|
-
* `
|
|
443
|
+
* `custom_login_page_on`, `sso`, `addons`, `form_template`,
|
|
444
444
|
* `custom_login_page_codeview`, `resource_servers`, `client_metadata`,
|
|
445
445
|
* `mobile`, `mobile.android`, `mobile.ios`, `allowed_logout_urls`,
|
|
446
446
|
* `token_endpoint_auth_method`, `is_first_party`, `oidc_conformant`,
|
|
@@ -128,7 +128,7 @@ export declare class ConnectionsClient {
|
|
|
128
128
|
/**
|
|
129
129
|
* Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
|
|
130
130
|
*
|
|
131
|
-
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
|
|
131
|
+
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
|
|
132
132
|
*
|
|
133
133
|
* @param {string} id - The id of the connection to update
|
|
134
134
|
* @param {Management.UpdateConnectionRequestContent} request
|
|
@@ -400,7 +400,7 @@ class ConnectionsClient {
|
|
|
400
400
|
/**
|
|
401
401
|
* Update details for a specific [connection](https://auth0.com/docs/authenticate/identity-providers), including option properties for identity provider configuration.
|
|
402
402
|
*
|
|
403
|
-
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option.
|
|
403
|
+
* **Note**: If you use the `options` parameter, the entire `options` object is overridden. To avoid partial data or other issues, ensure all parameters are present when using this option. If any options are unspecified, the default will be used, even if it differs from the existing value.
|
|
404
404
|
*
|
|
405
405
|
* @param {string} id - The id of the connection to update
|
|
406
406
|
* @param {Management.UpdateConnectionRequestContent} request
|
|
@@ -77,6 +77,7 @@ export declare class FlowsClient {
|
|
|
77
77
|
* @throws {@link Management.UnauthorizedError}
|
|
78
78
|
* @throws {@link Management.ForbiddenError}
|
|
79
79
|
* @throws {@link Management.NotFoundError}
|
|
80
|
+
* @throws {@link Management.ConflictError}
|
|
80
81
|
* @throws {@link Management.TooManyRequestsError}
|
|
81
82
|
*
|
|
82
83
|
* @example
|
|
@@ -89,6 +90,7 @@ export declare class FlowsClient {
|
|
|
89
90
|
* @param {Management.UpdateFlowRequestContent} request
|
|
90
91
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
92
|
*
|
|
93
|
+
* @throws {@link Management.BadRequestError}
|
|
92
94
|
* @throws {@link Management.UnauthorizedError}
|
|
93
95
|
* @throws {@link Management.ForbiddenError}
|
|
94
96
|
* @throws {@link Management.NotFoundError}
|
|
@@ -297,6 +297,7 @@ class FlowsClient {
|
|
|
297
297
|
* @throws {@link Management.UnauthorizedError}
|
|
298
298
|
* @throws {@link Management.ForbiddenError}
|
|
299
299
|
* @throws {@link Management.NotFoundError}
|
|
300
|
+
* @throws {@link Management.ConflictError}
|
|
300
301
|
* @throws {@link Management.TooManyRequestsError}
|
|
301
302
|
*
|
|
302
303
|
* @example
|
|
@@ -334,6 +335,8 @@ class FlowsClient {
|
|
|
334
335
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
335
336
|
case 404:
|
|
336
337
|
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
338
|
+
case 409:
|
|
339
|
+
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
337
340
|
case 429:
|
|
338
341
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
339
342
|
default:
|
|
@@ -352,6 +355,7 @@ class FlowsClient {
|
|
|
352
355
|
* @param {Management.UpdateFlowRequestContent} request
|
|
353
356
|
* @param {FlowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
354
357
|
*
|
|
358
|
+
* @throws {@link Management.BadRequestError}
|
|
355
359
|
* @throws {@link Management.UnauthorizedError}
|
|
356
360
|
* @throws {@link Management.ForbiddenError}
|
|
357
361
|
* @throws {@link Management.NotFoundError}
|
|
@@ -387,6 +391,8 @@ class FlowsClient {
|
|
|
387
391
|
}
|
|
388
392
|
if (_response.error.reason === "status-code") {
|
|
389
393
|
switch (_response.error.statusCode) {
|
|
394
|
+
case 400:
|
|
395
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
390
396
|
case 401:
|
|
391
397
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
392
398
|
case 403:
|
|
@@ -18,6 +18,7 @@ export declare class ExecutionsClient {
|
|
|
18
18
|
* @throws {@link Management.BadRequestError}
|
|
19
19
|
* @throws {@link Management.UnauthorizedError}
|
|
20
20
|
* @throws {@link Management.ForbiddenError}
|
|
21
|
+
* @throws {@link Management.NotFoundError}
|
|
21
22
|
* @throws {@link Management.TooManyRequestsError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -37,6 +38,7 @@ export declare class ExecutionsClient {
|
|
|
37
38
|
* @throws {@link Management.BadRequestError}
|
|
38
39
|
* @throws {@link Management.UnauthorizedError}
|
|
39
40
|
* @throws {@link Management.ForbiddenError}
|
|
41
|
+
* @throws {@link Management.NotFoundError}
|
|
40
42
|
* @throws {@link Management.TooManyRequestsError}
|
|
41
43
|
*
|
|
42
44
|
* @example
|
|
@@ -63,6 +63,7 @@ class ExecutionsClient {
|
|
|
63
63
|
* @throws {@link Management.BadRequestError}
|
|
64
64
|
* @throws {@link Management.UnauthorizedError}
|
|
65
65
|
* @throws {@link Management.ForbiddenError}
|
|
66
|
+
* @throws {@link Management.NotFoundError}
|
|
66
67
|
* @throws {@link Management.TooManyRequestsError}
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
@@ -113,6 +114,8 @@ class ExecutionsClient {
|
|
|
113
114
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
114
115
|
case 403:
|
|
115
116
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 404:
|
|
118
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
116
119
|
case 429:
|
|
117
120
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
118
121
|
default:
|
|
@@ -146,6 +149,7 @@ class ExecutionsClient {
|
|
|
146
149
|
* @throws {@link Management.BadRequestError}
|
|
147
150
|
* @throws {@link Management.UnauthorizedError}
|
|
148
151
|
* @throws {@link Management.ForbiddenError}
|
|
152
|
+
* @throws {@link Management.NotFoundError}
|
|
149
153
|
* @throws {@link Management.TooManyRequestsError}
|
|
150
154
|
*
|
|
151
155
|
* @example
|
|
@@ -194,6 +198,8 @@ class ExecutionsClient {
|
|
|
194
198
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
195
199
|
case 403:
|
|
196
200
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
201
|
+
case 404:
|
|
202
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
197
203
|
case 429:
|
|
198
204
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
199
205
|
default:
|
|
@@ -81,8 +81,10 @@ export declare class FormsClient {
|
|
|
81
81
|
* @param {Management.UpdateFormRequestContent} request
|
|
82
82
|
* @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
83
|
*
|
|
84
|
+
* @throws {@link Management.BadRequestError}
|
|
84
85
|
* @throws {@link Management.UnauthorizedError}
|
|
85
86
|
* @throws {@link Management.ForbiddenError}
|
|
87
|
+
* @throws {@link Management.NotFoundError}
|
|
86
88
|
* @throws {@link Management.TooManyRequestsError}
|
|
87
89
|
*
|
|
88
90
|
* @example
|
|
@@ -337,8 +337,10 @@ class FormsClient {
|
|
|
337
337
|
* @param {Management.UpdateFormRequestContent} request
|
|
338
338
|
* @param {FormsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
339
339
|
*
|
|
340
|
+
* @throws {@link Management.BadRequestError}
|
|
340
341
|
* @throws {@link Management.UnauthorizedError}
|
|
341
342
|
* @throws {@link Management.ForbiddenError}
|
|
343
|
+
* @throws {@link Management.NotFoundError}
|
|
342
344
|
* @throws {@link Management.TooManyRequestsError}
|
|
343
345
|
*
|
|
344
346
|
* @example
|
|
@@ -371,10 +373,14 @@ class FormsClient {
|
|
|
371
373
|
}
|
|
372
374
|
if (_response.error.reason === "status-code") {
|
|
373
375
|
switch (_response.error.statusCode) {
|
|
376
|
+
case 400:
|
|
377
|
+
throw new Management.BadRequestError(_response.error.body, _response.rawResponse);
|
|
374
378
|
case 401:
|
|
375
379
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
376
380
|
case 403:
|
|
377
381
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
382
|
+
case 404:
|
|
383
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
378
384
|
case 429:
|
|
379
385
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
380
386
|
default:
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import { CustomSigningClient } from "../resources/customSigning/client/Client.js";
|
|
4
4
|
import { EncryptionClient } from "../resources/encryption/client/Client.js";
|
|
5
|
+
import { NetworkAclsClient } from "../resources/networkAcls/client/Client.js";
|
|
5
6
|
import { SigningClient } from "../resources/signing/client/Client.js";
|
|
6
7
|
export declare namespace KeysClient {
|
|
7
8
|
type Options = BaseClientOptions;
|
|
@@ -10,9 +11,11 @@ export declare class KeysClient {
|
|
|
10
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<KeysClient.Options>;
|
|
11
12
|
protected _customSigning: CustomSigningClient | undefined;
|
|
12
13
|
protected _encryption: EncryptionClient | undefined;
|
|
14
|
+
protected _networkAcls: NetworkAclsClient | undefined;
|
|
13
15
|
protected _signing: SigningClient | undefined;
|
|
14
16
|
constructor(options: KeysClient.Options);
|
|
15
17
|
get customSigning(): CustomSigningClient;
|
|
16
18
|
get encryption(): EncryptionClient;
|
|
19
|
+
get networkAcls(): NetworkAclsClient;
|
|
17
20
|
get signing(): SigningClient;
|
|
18
21
|
}
|
|
@@ -5,7 +5,8 @@ exports.KeysClient = void 0;
|
|
|
5
5
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
6
6
|
const Client_js_1 = require("../resources/customSigning/client/Client.js");
|
|
7
7
|
const Client_js_2 = require("../resources/encryption/client/Client.js");
|
|
8
|
-
const Client_js_3 = require("../resources/
|
|
8
|
+
const Client_js_3 = require("../resources/networkAcls/client/Client.js");
|
|
9
|
+
const Client_js_4 = require("../resources/signing/client/Client.js");
|
|
9
10
|
class KeysClient {
|
|
10
11
|
constructor(options) {
|
|
11
12
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -18,9 +19,13 @@ class KeysClient {
|
|
|
18
19
|
var _a;
|
|
19
20
|
return ((_a = this._encryption) !== null && _a !== void 0 ? _a : (this._encryption = new Client_js_2.EncryptionClient(this._options)));
|
|
20
21
|
}
|
|
22
|
+
get networkAcls() {
|
|
23
|
+
var _a;
|
|
24
|
+
return ((_a = this._networkAcls) !== null && _a !== void 0 ? _a : (this._networkAcls = new Client_js_3.NetworkAclsClient(this._options)));
|
|
25
|
+
}
|
|
21
26
|
get signing() {
|
|
22
27
|
var _a;
|
|
23
|
-
return ((_a = this._signing) !== null && _a !== void 0 ? _a : (this._signing = new
|
|
28
|
+
return ((_a = this._signing) !== null && _a !== void 0 ? _a : (this._signing = new Client_js_4.SigningClient(this._options)));
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
exports.KeysClient = KeysClient;
|
|
@@ -33,7 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.signing = exports.encryption = exports.customSigning = void 0;
|
|
36
|
+
exports.signing = exports.networkAcls = exports.encryption = exports.customSigning = void 0;
|
|
37
37
|
exports.customSigning = __importStar(require("./customSigning/index.js"));
|
|
38
38
|
exports.encryption = __importStar(require("./encryption/index.js"));
|
|
39
|
+
exports.networkAcls = __importStar(require("./networkAcls/index.js"));
|
|
39
40
|
exports.signing = __importStar(require("./signing/index.js"));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as Management from "../../../../../index.js";
|
|
5
|
+
export declare namespace NetworkAclsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class NetworkAclsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<NetworkAclsClient.Options>;
|
|
12
|
+
constructor(options: NetworkAclsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve all keys used to verify HTTP Message Signatures on Network ACL rules, ordered by creation time descending.
|
|
15
|
+
*
|
|
16
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @throws {@link Management.BadRequestError}
|
|
19
|
+
* @throws {@link Management.UnauthorizedError}
|
|
20
|
+
* @throws {@link Management.ForbiddenError}
|
|
21
|
+
* @throws {@link Management.NotFoundError}
|
|
22
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.keys.networkAcls.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.GetAllKeysNetworkAclsResponseContent>;
|
|
28
|
+
private __list;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new key used to verify HTTP Message Signatures on Network ACL rules.
|
|
31
|
+
*
|
|
32
|
+
* @param {Management.CreateKeysNetworkAclsRequestContent} request
|
|
33
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link Management.BadRequestError}
|
|
36
|
+
* @throws {@link Management.UnauthorizedError}
|
|
37
|
+
* @throws {@link Management.ForbiddenError}
|
|
38
|
+
* @throws {@link Management.ConflictError}
|
|
39
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.keys.networkAcls.create({
|
|
43
|
+
* name: "name",
|
|
44
|
+
* alg: "hmac-sha256",
|
|
45
|
+
* value: "value"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
create(request: Management.CreateKeysNetworkAclsRequestContent, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.CreateKeysNetworkAclsResponseContent>;
|
|
49
|
+
private __create;
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve a specific key used to verify HTTP Message Signatures on Network ACL rules.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} id - ID of the Network ACL Key to retrieve.
|
|
54
|
+
* @param {NetworkAclsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link Management.BadRequestError}
|
|
57
|
+
* @throws {@link Management.UnauthorizedError}
|
|
58
|
+
* @throws {@link Management.ForbiddenError}
|
|
59
|
+
* @throws {@link Management.NotFoundError}
|
|
60
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.keys.networkAcls.get("id")
|
|
64
|
+
*/
|
|
65
|
+
get(id: string, requestOptions?: NetworkAclsClient.RequestOptions): core.HttpResponsePromise<Management.NetworkAclKey>;
|
|
66
|
+
private __get;
|
|
67
|
+
}
|