auth0 5.12.0 → 5.14.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/README.md +2 -2
- package/dist/cjs/lib/models.d.ts +7 -7
- package/dist/cjs/management/api/requests/requests.d.ts +16 -2
- package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +3 -0
- package/dist/cjs/management/api/resources/attackProtection/client/Client.js +7 -2
- package/dist/cjs/management/api/resources/attackProtection/resources/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/index.js +2 -1
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.ts +45 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.js +180 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.js +2 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.ts +1 -0
- package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.js +17 -0
- package/dist/cjs/management/api/resources/clients/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/clients/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/emailTemplates/client/Client.d.ts +4 -4
- package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +4 -4
- package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +3 -0
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts +1 -0
- package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +3 -0
- package/dist/cjs/management/api/types/types.d.ts +150 -32
- package/dist/cjs/management/api/types/types.js +9 -3
- package/dist/cjs/management/version.d.ts +1 -1
- package/dist/cjs/management/version.js +1 -1
- package/dist/esm/lib/models.d.mts +7 -7
- package/dist/esm/management/api/requests/requests.d.mts +16 -2
- package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +3 -0
- package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +5 -0
- package/dist/esm/management/api/resources/attackProtection/resources/index.d.mts +1 -0
- package/dist/esm/management/api/resources/attackProtection/resources/index.mjs +1 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.mts +45 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.mjs +143 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.mts +1 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.mjs +1 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.mts +1 -0
- package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.mjs +1 -0
- package/dist/esm/management/api/resources/clients/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/clients/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/emailTemplates/client/Client.d.mts +4 -4
- package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +4 -4
- package/dist/esm/management/api/resources/keys/resources/signing/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +3 -0
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.d.mts +1 -0
- package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +3 -0
- package/dist/esm/management/api/types/types.d.mts +150 -32
- package/dist/esm/management/api/types/types.mjs +7 -1
- package/dist/esm/management/version.d.mts +1 -1
- package/dist/esm/management/version.mjs +1 -1
- package/package.json +3 -3
- package/reference.md +126 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
This library supports the following tooling versions:
|
|
23
23
|
|
|
24
|
-
- Node.js: `^20.19.0 || ^22.12.0 || ^24.0.0`
|
|
24
|
+
- Node.js: `^20.19.0 || ^22.12.0 || ^24.0.0 || ^26.0.0`
|
|
25
25
|
|
|
26
26
|
### Installation
|
|
27
27
|
|
|
@@ -578,7 +578,7 @@ console.log(rawResponse.headers);
|
|
|
578
578
|
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
579
579
|
runtimes:
|
|
580
580
|
|
|
581
|
-
- Node.js 20.19.0+, 22.12.0+, 24+
|
|
581
|
+
- Node.js 20.19.0+, 22.12.0+, 24+, 26+
|
|
582
582
|
- Vercel
|
|
583
583
|
- Cloudflare Workers
|
|
584
584
|
- Deno v1.25+
|
package/dist/cjs/lib/models.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RetryConfiguration } from "./retry.js";
|
|
2
|
-
import { Dispatcher } from "undici-types";
|
|
2
|
+
import type { Dispatcher } from "undici-types";
|
|
3
3
|
/**
|
|
4
4
|
* @private
|
|
5
5
|
*/
|
|
6
|
-
export type FetchAPI = (url: URL |
|
|
6
|
+
export type FetchAPI = (url: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
7
7
|
export interface ClientOptions extends Omit<Configuration, "baseUrl" | "parseError" | "middleware"> {
|
|
8
8
|
telemetry?: boolean;
|
|
9
9
|
clientInfo?: {
|
|
@@ -57,7 +57,7 @@ export type HTTPBody = any | FormData | URLSearchParams;
|
|
|
57
57
|
export type HTTPRequestInit = {
|
|
58
58
|
headers?: HTTPHeaders;
|
|
59
59
|
method: HTTPMethod;
|
|
60
|
-
credentials?:
|
|
60
|
+
credentials?: "include" | "omit" | "same-origin";
|
|
61
61
|
body?: HTTPBody;
|
|
62
62
|
};
|
|
63
63
|
export type InitOverrideFunction = (requestContext: {
|
|
@@ -96,23 +96,23 @@ export declare class TextApiResponse implements ApiResponse<string> {
|
|
|
96
96
|
static fromResponse(raw: Response): Promise<TextApiResponse>;
|
|
97
97
|
}
|
|
98
98
|
export interface FetchParams {
|
|
99
|
-
url: URL |
|
|
99
|
+
url: string | URL | Request;
|
|
100
100
|
init: RequestInit;
|
|
101
101
|
}
|
|
102
102
|
export interface RequestContext {
|
|
103
103
|
fetch: FetchAPI;
|
|
104
|
-
url: URL |
|
|
104
|
+
url: string | URL | Request;
|
|
105
105
|
init: RequestInit;
|
|
106
106
|
}
|
|
107
107
|
export interface ResponseContext {
|
|
108
108
|
fetch: FetchAPI;
|
|
109
|
-
url: URL |
|
|
109
|
+
url: string | URL | Request;
|
|
110
110
|
init: RequestInit;
|
|
111
111
|
response: Response;
|
|
112
112
|
}
|
|
113
113
|
export interface ErrorContext {
|
|
114
114
|
fetch: FetchAPI;
|
|
115
|
-
url: URL |
|
|
115
|
+
url: string | URL | Request;
|
|
116
116
|
init: RequestInit;
|
|
117
117
|
error: unknown;
|
|
118
118
|
response?: Response;
|
|
@@ -284,6 +284,7 @@ export interface CreateClientRequestContent {
|
|
|
284
284
|
/** Makes the use of Proof-of-Possession mandatory for this client */
|
|
285
285
|
require_proof_of_possession?: boolean;
|
|
286
286
|
signed_request_object?: Management.ClientSignedRequestObjectWithPublicKey;
|
|
287
|
+
token_vault_privileged_access?: Management.ClientTokenVaultPrivilegedAccessWithPublicKey;
|
|
287
288
|
compliance_level?: Management.ClientComplianceLevelEnum | null;
|
|
288
289
|
/**
|
|
289
290
|
* Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`).
|
|
@@ -401,8 +402,8 @@ export interface UpdateClientRequestContent {
|
|
|
401
402
|
mobile?: Management.ClientMobile;
|
|
402
403
|
/** Initiate login uri, must be https */
|
|
403
404
|
initiate_login_uri?: string;
|
|
404
|
-
native_social_login?: Management.
|
|
405
|
-
fedcm_login?: Management.
|
|
405
|
+
native_social_login?: Management.NativeSocialLoginPatch | null;
|
|
406
|
+
fedcm_login?: Management.FedCmLoginPatch | null;
|
|
406
407
|
refresh_token?: Management.ClientRefreshTokenConfiguration | null;
|
|
407
408
|
default_organization?: Management.ClientDefaultOrganization | null;
|
|
408
409
|
organization_usage?: Management.ClientOrganizationUsagePatchEnum | null;
|
|
@@ -415,6 +416,7 @@ export interface UpdateClientRequestContent {
|
|
|
415
416
|
/** Makes the use of Proof-of-Possession mandatory for this client */
|
|
416
417
|
require_proof_of_possession?: boolean;
|
|
417
418
|
signed_request_object?: Management.ClientSignedRequestObjectWithCredentialId;
|
|
419
|
+
token_vault_privileged_access?: Management.ClientTokenVaultPrivilegedAccessWithCredentialId;
|
|
418
420
|
compliance_level?: Management.ClientComplianceLevelEnum | null;
|
|
419
421
|
/**
|
|
420
422
|
* Controls whether a confirmation prompt is shown during login flows when the redirect URI uses non-verifiable callback URIs (for example, a custom URI schema such as `myapp://`, or `localhost`).
|
|
@@ -520,6 +522,7 @@ export interface CreateConnectionRequestContent {
|
|
|
520
522
|
metadata?: Management.ConnectionsMetadata;
|
|
521
523
|
authentication?: Management.ConnectionAuthenticationPurpose;
|
|
522
524
|
connected_accounts?: Management.ConnectionConnectedAccountsPurpose;
|
|
525
|
+
cross_app_access_requesting_app?: Management.CrossAppAccessRequestingApp;
|
|
523
526
|
}
|
|
524
527
|
/**
|
|
525
528
|
* @example
|
|
@@ -553,6 +556,7 @@ export interface UpdateConnectionRequestContent {
|
|
|
553
556
|
metadata?: Management.ConnectionsMetadata;
|
|
554
557
|
authentication?: Management.ConnectionAuthenticationPurpose;
|
|
555
558
|
connected_accounts?: Management.ConnectionConnectedAccountsPurpose;
|
|
559
|
+
cross_app_access_requesting_app?: Management.CrossAppAccessRequestingApp;
|
|
556
560
|
}
|
|
557
561
|
/**
|
|
558
562
|
* @example
|
|
@@ -2106,6 +2110,15 @@ export interface UpdateAttackProtectionCaptchaRequestContent {
|
|
|
2106
2110
|
recaptcha_v2?: Management.AttackProtectionUpdateCaptchaRecaptchaV2;
|
|
2107
2111
|
simple_captcha?: Management.AttackProtectionCaptchaSimpleCaptchaResponseContent;
|
|
2108
2112
|
}
|
|
2113
|
+
/**
|
|
2114
|
+
* @example
|
|
2115
|
+
* {
|
|
2116
|
+
* type: "exponential"
|
|
2117
|
+
* }
|
|
2118
|
+
*/
|
|
2119
|
+
export interface PatchPhoneProviderProtectionRequestContent {
|
|
2120
|
+
type: Management.PhoneProviderProtectionBackoffStrategyEnum;
|
|
2121
|
+
}
|
|
2109
2122
|
/**
|
|
2110
2123
|
* @example
|
|
2111
2124
|
* {}
|
|
@@ -3835,6 +3848,7 @@ export interface LinkUserIdentityRequestContent {
|
|
|
3835
3848
|
provider?: Management.UserIdentityProviderEnum;
|
|
3836
3849
|
/** connection_id of the secondary user account being linked when more than one `auth0` database provider exists. */
|
|
3837
3850
|
connection_id?: string;
|
|
3851
|
+
/** user_id of the secondary user account being linked. */
|
|
3838
3852
|
user_id?: Management.UserId;
|
|
3839
3853
|
/** JWT for the secondary account being linked. If sending this parameter, `provider`, `user_id`, and `connection_id` must not be sent. */
|
|
3840
3854
|
link_with?: string;
|
|
@@ -4,6 +4,7 @@ import { BotDetectionClient } from "../resources/botDetection/client/Client.js";
|
|
|
4
4
|
import { BreachedPasswordDetectionClient } from "../resources/breachedPasswordDetection/client/Client.js";
|
|
5
5
|
import { BruteForceProtectionClient } from "../resources/bruteForceProtection/client/Client.js";
|
|
6
6
|
import { CaptchaClient } from "../resources/captcha/client/Client.js";
|
|
7
|
+
import { PhoneProviderProtectionClient } from "../resources/phoneProviderProtection/client/Client.js";
|
|
7
8
|
import { SuspiciousIpThrottlingClient } from "../resources/suspiciousIpThrottling/client/Client.js";
|
|
8
9
|
export declare namespace AttackProtectionClient {
|
|
9
10
|
type Options = BaseClientOptions;
|
|
@@ -14,11 +15,13 @@ export declare class AttackProtectionClient {
|
|
|
14
15
|
protected _breachedPasswordDetection: BreachedPasswordDetectionClient | undefined;
|
|
15
16
|
protected _bruteForceProtection: BruteForceProtectionClient | undefined;
|
|
16
17
|
protected _captcha: CaptchaClient | undefined;
|
|
18
|
+
protected _phoneProviderProtection: PhoneProviderProtectionClient | undefined;
|
|
17
19
|
protected _suspiciousIpThrottling: SuspiciousIpThrottlingClient | undefined;
|
|
18
20
|
constructor(options: AttackProtectionClient.Options);
|
|
19
21
|
get botDetection(): BotDetectionClient;
|
|
20
22
|
get breachedPasswordDetection(): BreachedPasswordDetectionClient;
|
|
21
23
|
get bruteForceProtection(): BruteForceProtectionClient;
|
|
22
24
|
get captcha(): CaptchaClient;
|
|
25
|
+
get phoneProviderProtection(): PhoneProviderProtectionClient;
|
|
23
26
|
get suspiciousIpThrottling(): SuspiciousIpThrottlingClient;
|
|
24
27
|
}
|
|
@@ -7,7 +7,8 @@ const Client_js_1 = require("../resources/botDetection/client/Client.js");
|
|
|
7
7
|
const Client_js_2 = require("../resources/breachedPasswordDetection/client/Client.js");
|
|
8
8
|
const Client_js_3 = require("../resources/bruteForceProtection/client/Client.js");
|
|
9
9
|
const Client_js_4 = require("../resources/captcha/client/Client.js");
|
|
10
|
-
const Client_js_5 = require("../resources/
|
|
10
|
+
const Client_js_5 = require("../resources/phoneProviderProtection/client/Client.js");
|
|
11
|
+
const Client_js_6 = require("../resources/suspiciousIpThrottling/client/Client.js");
|
|
11
12
|
class AttackProtectionClient {
|
|
12
13
|
constructor(options) {
|
|
13
14
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -28,9 +29,13 @@ class AttackProtectionClient {
|
|
|
28
29
|
var _a;
|
|
29
30
|
return ((_a = this._captcha) !== null && _a !== void 0 ? _a : (this._captcha = new Client_js_4.CaptchaClient(this._options)));
|
|
30
31
|
}
|
|
32
|
+
get phoneProviderProtection() {
|
|
33
|
+
var _a;
|
|
34
|
+
return ((_a = this._phoneProviderProtection) !== null && _a !== void 0 ? _a : (this._phoneProviderProtection = new Client_js_5.PhoneProviderProtectionClient(this._options)));
|
|
35
|
+
}
|
|
31
36
|
get suspiciousIpThrottling() {
|
|
32
37
|
var _a;
|
|
33
|
-
return ((_a = this._suspiciousIpThrottling) !== null && _a !== void 0 ? _a : (this._suspiciousIpThrottling = new
|
|
38
|
+
return ((_a = this._suspiciousIpThrottling) !== null && _a !== void 0 ? _a : (this._suspiciousIpThrottling = new Client_js_6.SuspiciousIpThrottlingClient(this._options)));
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
exports.AttackProtectionClient = AttackProtectionClient;
|
|
@@ -2,4 +2,5 @@ export * as botDetection from "./botDetection/index.js";
|
|
|
2
2
|
export * as breachedPasswordDetection from "./breachedPasswordDetection/index.js";
|
|
3
3
|
export * as bruteForceProtection from "./bruteForceProtection/index.js";
|
|
4
4
|
export * as captcha from "./captcha/index.js";
|
|
5
|
+
export * as phoneProviderProtection from "./phoneProviderProtection/index.js";
|
|
5
6
|
export * as suspiciousIpThrottling from "./suspiciousIpThrottling/index.js";
|
|
@@ -33,9 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.suspiciousIpThrottling = exports.captcha = exports.bruteForceProtection = exports.breachedPasswordDetection = exports.botDetection = void 0;
|
|
36
|
+
exports.suspiciousIpThrottling = exports.phoneProviderProtection = exports.captcha = exports.bruteForceProtection = exports.breachedPasswordDetection = exports.botDetection = void 0;
|
|
37
37
|
exports.botDetection = __importStar(require("./botDetection/index.js"));
|
|
38
38
|
exports.breachedPasswordDetection = __importStar(require("./breachedPasswordDetection/index.js"));
|
|
39
39
|
exports.bruteForceProtection = __importStar(require("./bruteForceProtection/index.js"));
|
|
40
40
|
exports.captcha = __importStar(require("./captcha/index.js"));
|
|
41
|
+
exports.phoneProviderProtection = __importStar(require("./phoneProviderProtection/index.js"));
|
|
41
42
|
exports.suspiciousIpThrottling = __importStar(require("./suspiciousIpThrottling/index.js"));
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PhoneProviderProtectionClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PhoneProviderProtectionClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PhoneProviderProtectionClient.Options>;
|
|
12
|
+
constructor(options: PhoneProviderProtectionClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Get the phone provider protection configuration for a tenant.
|
|
15
|
+
*
|
|
16
|
+
* @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @throws {@link Management.UnauthorizedError}
|
|
19
|
+
* @throws {@link Management.ForbiddenError}
|
|
20
|
+
* @throws {@link Management.NotFoundError}
|
|
21
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.attackProtection.phoneProviderProtection.get()
|
|
25
|
+
*/
|
|
26
|
+
get(requestOptions?: PhoneProviderProtectionClient.RequestOptions): core.HttpResponsePromise<Management.GetPhoneProviderProtectionResponseContent>;
|
|
27
|
+
private __get;
|
|
28
|
+
/**
|
|
29
|
+
* Update the phone provider protection configuration for a tenant.
|
|
30
|
+
*
|
|
31
|
+
* @param {Management.PatchPhoneProviderProtectionRequestContent} request
|
|
32
|
+
* @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link Management.UnauthorizedError}
|
|
35
|
+
* @throws {@link Management.ForbiddenError}
|
|
36
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.attackProtection.phoneProviderProtection.patch({
|
|
40
|
+
* type: "exponential"
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
patch(request: Management.PatchPhoneProviderProtectionRequestContent, requestOptions?: PhoneProviderProtectionClient.RequestOptions): core.HttpResponsePromise<Management.PatchPhoneProviderProtectionResponseContent>;
|
|
44
|
+
private __patch;
|
|
45
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.PhoneProviderProtectionClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
49
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const Management = __importStar(require("../../../../../index.js"));
|
|
54
|
+
class PhoneProviderProtectionClient {
|
|
55
|
+
constructor(options) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get the phone provider protection configuration for a tenant.
|
|
60
|
+
*
|
|
61
|
+
* @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link Management.UnauthorizedError}
|
|
64
|
+
* @throws {@link Management.ForbiddenError}
|
|
65
|
+
* @throws {@link Management.NotFoundError}
|
|
66
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.attackProtection.phoneProviderProtection.get()
|
|
70
|
+
*/
|
|
71
|
+
get(requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__get(requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
77
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
79
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "attack-protection/phone-provider-protection"),
|
|
81
|
+
method: "GET",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
84
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
85
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
86
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return {
|
|
92
|
+
data: _response.body,
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (_response.error.reason === "status-code") {
|
|
97
|
+
switch (_response.error.statusCode) {
|
|
98
|
+
case 401:
|
|
99
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
100
|
+
case 403:
|
|
101
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
102
|
+
case 404:
|
|
103
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 429:
|
|
105
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
106
|
+
default:
|
|
107
|
+
throw new errors.ManagementError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.body,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/attack-protection/phone-provider-protection");
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Update the phone provider protection configuration for a tenant.
|
|
119
|
+
*
|
|
120
|
+
* @param {Management.PatchPhoneProviderProtectionRequestContent} request
|
|
121
|
+
* @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link Management.UnauthorizedError}
|
|
124
|
+
* @throws {@link Management.ForbiddenError}
|
|
125
|
+
* @throws {@link Management.TooManyRequestsError}
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* await client.attackProtection.phoneProviderProtection.patch({
|
|
129
|
+
* type: "exponential"
|
|
130
|
+
* })
|
|
131
|
+
*/
|
|
132
|
+
patch(request, requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__patch(request, requestOptions));
|
|
134
|
+
}
|
|
135
|
+
__patch(request, requestOptions) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
138
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
139
|
+
let _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
140
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
141
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ManagementEnvironment.Default, "attack-protection/phone-provider-protection"),
|
|
142
|
+
method: "PATCH",
|
|
143
|
+
headers: _headers,
|
|
144
|
+
contentType: "application/json",
|
|
145
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
146
|
+
requestType: "json",
|
|
147
|
+
body: request,
|
|
148
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
149
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
150
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
151
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
152
|
+
logging: this._options.logging,
|
|
153
|
+
});
|
|
154
|
+
if (_response.ok) {
|
|
155
|
+
return {
|
|
156
|
+
data: _response.body,
|
|
157
|
+
rawResponse: _response.rawResponse,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (_response.error.reason === "status-code") {
|
|
161
|
+
switch (_response.error.statusCode) {
|
|
162
|
+
case 401:
|
|
163
|
+
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
164
|
+
case 403:
|
|
165
|
+
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
166
|
+
case 429:
|
|
167
|
+
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
168
|
+
default:
|
|
169
|
+
throw new errors.ManagementError({
|
|
170
|
+
statusCode: _response.error.statusCode,
|
|
171
|
+
body: _response.error.body,
|
|
172
|
+
rawResponse: _response.rawResponse,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/attack-protection/phone-provider-protection");
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.PhoneProviderProtectionClient = PhoneProviderProtectionClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -88,6 +88,7 @@ export declare class ClientsClient {
|
|
|
88
88
|
* @throws {@link Management.BadRequestError}
|
|
89
89
|
* @throws {@link Management.UnauthorizedError}
|
|
90
90
|
* @throws {@link Management.ForbiddenError}
|
|
91
|
+
* @throws {@link Management.NotFoundError}
|
|
91
92
|
* @throws {@link Management.ConflictError}
|
|
92
93
|
* @throws {@link Management.TooManyRequestsError}
|
|
93
94
|
*
|
|
@@ -210,6 +210,7 @@ class ClientsClient {
|
|
|
210
210
|
* @throws {@link Management.BadRequestError}
|
|
211
211
|
* @throws {@link Management.UnauthorizedError}
|
|
212
212
|
* @throws {@link Management.ForbiddenError}
|
|
213
|
+
* @throws {@link Management.NotFoundError}
|
|
213
214
|
* @throws {@link Management.ConflictError}
|
|
214
215
|
* @throws {@link Management.TooManyRequestsError}
|
|
215
216
|
*
|
|
@@ -254,6 +255,8 @@ class ClientsClient {
|
|
|
254
255
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
255
256
|
case 403:
|
|
256
257
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
258
|
+
case 404:
|
|
259
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
257
260
|
case 409:
|
|
258
261
|
throw new Management.ConflictError(_response.error.body, _response.rawResponse);
|
|
259
262
|
case 429:
|
|
@@ -30,9 +30,9 @@ export declare class EmailTemplatesClient {
|
|
|
30
30
|
create(request: Management.CreateEmailTemplateRequestContent, requestOptions?: EmailTemplatesClient.RequestOptions): core.HttpResponsePromise<Management.CreateEmailTemplateResponseContent>;
|
|
31
31
|
private __create;
|
|
32
32
|
/**
|
|
33
|
-
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
|
|
33
|
+
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
|
|
34
34
|
*
|
|
35
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
35
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
36
36
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @throws {@link Management.BadRequestError}
|
|
@@ -48,7 +48,7 @@ export declare class EmailTemplatesClient {
|
|
|
48
48
|
/**
|
|
49
49
|
* Update an email template.
|
|
50
50
|
*
|
|
51
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
51
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
52
52
|
* @param {Management.SetEmailTemplateRequestContent} request
|
|
53
53
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
@@ -68,7 +68,7 @@ export declare class EmailTemplatesClient {
|
|
|
68
68
|
/**
|
|
69
69
|
* Modify an email template.
|
|
70
70
|
*
|
|
71
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
71
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
72
72
|
* @param {Management.UpdateEmailTemplateRequestContent} request
|
|
73
73
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
74
|
*
|
|
@@ -124,9 +124,9 @@ class EmailTemplatesClient {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
|
-
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
|
|
127
|
+
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, and `async_approval`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
|
|
128
128
|
*
|
|
129
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
129
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
130
130
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
131
|
*
|
|
132
132
|
* @throws {@link Management.BadRequestError}
|
|
@@ -186,7 +186,7 @@ class EmailTemplatesClient {
|
|
|
186
186
|
/**
|
|
187
187
|
* Update an email template.
|
|
188
188
|
*
|
|
189
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
189
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
190
190
|
* @param {Management.SetEmailTemplateRequestContent} request
|
|
191
191
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
192
|
*
|
|
@@ -255,7 +255,7 @@ class EmailTemplatesClient {
|
|
|
255
255
|
/**
|
|
256
256
|
* Modify an email template.
|
|
257
257
|
*
|
|
258
|
-
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
258
|
+
* @param {Management.EmailTemplateNameEnum} templateName - Template name. Can be `verify_email`, `verify_email_by_code`, `auth_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, `user_invitation`, `async_approval`, `change_password` (legacy), or `password_reset` (legacy).
|
|
259
259
|
* @param {Management.UpdateEmailTemplateRequestContent} request
|
|
260
260
|
* @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
261
|
*
|
|
@@ -48,6 +48,7 @@ export declare class SigningClient {
|
|
|
48
48
|
* @throws {@link Management.BadRequestError}
|
|
49
49
|
* @throws {@link Management.UnauthorizedError}
|
|
50
50
|
* @throws {@link Management.ForbiddenError}
|
|
51
|
+
* @throws {@link Management.NotFoundError}
|
|
51
52
|
* @throws {@link Management.TooManyRequestsError}
|
|
52
53
|
*
|
|
53
54
|
* @example
|
|
@@ -176,6 +176,7 @@ class SigningClient {
|
|
|
176
176
|
* @throws {@link Management.BadRequestError}
|
|
177
177
|
* @throws {@link Management.UnauthorizedError}
|
|
178
178
|
* @throws {@link Management.ForbiddenError}
|
|
179
|
+
* @throws {@link Management.NotFoundError}
|
|
179
180
|
* @throws {@link Management.TooManyRequestsError}
|
|
180
181
|
*
|
|
181
182
|
* @example
|
|
@@ -214,6 +215,8 @@ class SigningClient {
|
|
|
214
215
|
throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
215
216
|
case 403:
|
|
216
217
|
throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
218
|
+
case 404:
|
|
219
|
+
throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
|
|
217
220
|
case 429:
|
|
218
221
|
throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
219
222
|
default:
|
package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare class ConnectedAccountsClient {
|
|
|
20
20
|
* @throws {@link Management.BadRequestError}
|
|
21
21
|
* @throws {@link Management.UnauthorizedError}
|
|
22
22
|
* @throws {@link Management.ForbiddenError}
|
|
23
|
+
* @throws {@link Management.NotFoundError}
|
|
23
24
|
* @throws {@link Management.TooManyRequestsError}
|
|
24
25
|
*
|
|
25
26
|
* @example
|
package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js
CHANGED
|
@@ -65,6 +65,7 @@ class ConnectedAccountsClient {
|
|
|
65
65
|
* @throws {@link Management.BadRequestError}
|
|
66
66
|
* @throws {@link Management.UnauthorizedError}
|
|
67
67
|
* @throws {@link Management.ForbiddenError}
|
|
68
|
+
* @throws {@link Management.NotFoundError}
|
|
68
69
|
* @throws {@link Management.TooManyRequestsError}
|
|
69
70
|
*
|
|
70
71
|
* @example
|
|
@@ -113,6 +114,8 @@ class ConnectedAccountsClient {
|
|
|
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:
|