auth0 5.12.0 → 5.13.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.
Files changed (50) hide show
  1. package/dist/cjs/lib/models.d.ts +7 -7
  2. package/dist/cjs/management/api/requests/requests.d.ts +16 -2
  3. package/dist/cjs/management/api/resources/attackProtection/client/Client.d.ts +3 -0
  4. package/dist/cjs/management/api/resources/attackProtection/client/Client.js +7 -2
  5. package/dist/cjs/management/api/resources/attackProtection/resources/index.d.ts +1 -0
  6. package/dist/cjs/management/api/resources/attackProtection/resources/index.js +2 -1
  7. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.ts +45 -0
  8. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.js +180 -0
  9. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.ts +1 -0
  10. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.js +2 -0
  11. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.ts +1 -0
  12. package/dist/cjs/management/api/resources/attackProtection/resources/phoneProviderProtection/index.js +17 -0
  13. package/dist/cjs/management/api/resources/clients/client/Client.d.ts +1 -0
  14. package/dist/cjs/management/api/resources/clients/client/Client.js +3 -0
  15. package/dist/cjs/management/api/resources/emailTemplates/client/Client.d.ts +4 -4
  16. package/dist/cjs/management/api/resources/emailTemplates/client/Client.js +4 -4
  17. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.d.ts +1 -0
  18. package/dist/cjs/management/api/resources/keys/resources/signing/client/Client.js +3 -0
  19. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.d.ts +1 -0
  20. package/dist/cjs/management/api/resources/users/resources/connectedAccounts/client/Client.js +3 -0
  21. package/dist/cjs/management/api/types/types.d.ts +150 -32
  22. package/dist/cjs/management/api/types/types.js +9 -3
  23. package/dist/cjs/management/version.d.ts +1 -1
  24. package/dist/cjs/management/version.js +1 -1
  25. package/dist/esm/lib/models.d.mts +7 -7
  26. package/dist/esm/management/api/requests/requests.d.mts +16 -2
  27. package/dist/esm/management/api/resources/attackProtection/client/Client.d.mts +3 -0
  28. package/dist/esm/management/api/resources/attackProtection/client/Client.mjs +5 -0
  29. package/dist/esm/management/api/resources/attackProtection/resources/index.d.mts +1 -0
  30. package/dist/esm/management/api/resources/attackProtection/resources/index.mjs +1 -0
  31. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.d.mts +45 -0
  32. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/Client.mjs +143 -0
  33. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.d.mts +1 -0
  34. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/client/index.mjs +1 -0
  35. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.d.mts +1 -0
  36. package/dist/esm/management/api/resources/attackProtection/resources/phoneProviderProtection/index.mjs +1 -0
  37. package/dist/esm/management/api/resources/clients/client/Client.d.mts +1 -0
  38. package/dist/esm/management/api/resources/clients/client/Client.mjs +3 -0
  39. package/dist/esm/management/api/resources/emailTemplates/client/Client.d.mts +4 -4
  40. package/dist/esm/management/api/resources/emailTemplates/client/Client.mjs +4 -4
  41. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.d.mts +1 -0
  42. package/dist/esm/management/api/resources/keys/resources/signing/client/Client.mjs +3 -0
  43. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.d.mts +1 -0
  44. package/dist/esm/management/api/resources/users/resources/connectedAccounts/client/Client.mjs +3 -0
  45. package/dist/esm/management/api/types/types.d.mts +150 -32
  46. package/dist/esm/management/api/types/types.mjs +7 -1
  47. package/dist/esm/management/version.d.mts +1 -1
  48. package/dist/esm/management/version.mjs +1 -1
  49. package/package.json +1 -1
  50. package/reference.md +126 -4
@@ -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.NativeSocialLogin;
405
- fedcm_login?: Management.FedCmLogin;
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.mjs"
4
4
  import { BreachedPasswordDetectionClient } from "../resources/breachedPasswordDetection/client/Client.mjs";
5
5
  import { BruteForceProtectionClient } from "../resources/bruteForceProtection/client/Client.mjs";
6
6
  import { CaptchaClient } from "../resources/captcha/client/Client.mjs";
7
+ import { PhoneProviderProtectionClient } from "../resources/phoneProviderProtection/client/Client.mjs";
7
8
  import { SuspiciousIpThrottlingClient } from "../resources/suspiciousIpThrottling/client/Client.mjs";
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
  }
@@ -4,6 +4,7 @@ import { BotDetectionClient } from "../resources/botDetection/client/Client.mjs"
4
4
  import { BreachedPasswordDetectionClient } from "../resources/breachedPasswordDetection/client/Client.mjs";
5
5
  import { BruteForceProtectionClient } from "../resources/bruteForceProtection/client/Client.mjs";
6
6
  import { CaptchaClient } from "../resources/captcha/client/Client.mjs";
7
+ import { PhoneProviderProtectionClient } from "../resources/phoneProviderProtection/client/Client.mjs";
7
8
  import { SuspiciousIpThrottlingClient } from "../resources/suspiciousIpThrottling/client/Client.mjs";
8
9
  export class AttackProtectionClient {
9
10
  constructor(options) {
@@ -25,6 +26,10 @@ export class AttackProtectionClient {
25
26
  var _a;
26
27
  return ((_a = this._captcha) !== null && _a !== void 0 ? _a : (this._captcha = new CaptchaClient(this._options)));
27
28
  }
29
+ get phoneProviderProtection() {
30
+ var _a;
31
+ return ((_a = this._phoneProviderProtection) !== null && _a !== void 0 ? _a : (this._phoneProviderProtection = new PhoneProviderProtectionClient(this._options)));
32
+ }
28
33
  get suspiciousIpThrottling() {
29
34
  var _a;
30
35
  return ((_a = this._suspiciousIpThrottling) !== null && _a !== void 0 ? _a : (this._suspiciousIpThrottling = new SuspiciousIpThrottlingClient(this._options)));
@@ -2,4 +2,5 @@ export * as botDetection from "./botDetection/index.mjs";
2
2
  export * as breachedPasswordDetection from "./breachedPasswordDetection/index.mjs";
3
3
  export * as bruteForceProtection from "./bruteForceProtection/index.mjs";
4
4
  export * as captcha from "./captcha/index.mjs";
5
+ export * as phoneProviderProtection from "./phoneProviderProtection/index.mjs";
5
6
  export * as suspiciousIpThrottling from "./suspiciousIpThrottling/index.mjs";
@@ -2,4 +2,5 @@ export * as botDetection from "./botDetection/index.mjs";
2
2
  export * as breachedPasswordDetection from "./breachedPasswordDetection/index.mjs";
3
3
  export * as bruteForceProtection from "./bruteForceProtection/index.mjs";
4
4
  export * as captcha from "./captcha/index.mjs";
5
+ export * as phoneProviderProtection from "./phoneProviderProtection/index.mjs";
5
6
  export * as suspiciousIpThrottling from "./suspiciousIpThrottling/index.mjs";
@@ -0,0 +1,45 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as Management from "../../../../../index.mjs";
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,143 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import * as core from "../../../../../../core/index.mjs";
13
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as Management from "../../../../../index.mjs";
18
+ export class PhoneProviderProtectionClient {
19
+ constructor(options) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * Get the phone provider protection configuration for a tenant.
24
+ *
25
+ * @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @throws {@link Management.UnauthorizedError}
28
+ * @throws {@link Management.ForbiddenError}
29
+ * @throws {@link Management.NotFoundError}
30
+ * @throws {@link Management.TooManyRequestsError}
31
+ *
32
+ * @example
33
+ * await client.attackProtection.phoneProviderProtection.get()
34
+ */
35
+ get(requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
37
+ }
38
+ __get(requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
41
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
42
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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"),
45
+ method: "GET",
46
+ headers: _headers,
47
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
48
+ 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,
49
+ 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,
50
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
52
+ logging: this._options.logging,
53
+ });
54
+ if (_response.ok) {
55
+ return {
56
+ data: _response.body,
57
+ rawResponse: _response.rawResponse,
58
+ };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 401:
63
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
64
+ case 403:
65
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
66
+ case 404:
67
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
68
+ case 429:
69
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
70
+ default:
71
+ throw new errors.ManagementError({
72
+ statusCode: _response.error.statusCode,
73
+ body: _response.error.body,
74
+ rawResponse: _response.rawResponse,
75
+ });
76
+ }
77
+ }
78
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/attack-protection/phone-provider-protection");
79
+ });
80
+ }
81
+ /**
82
+ * Update the phone provider protection configuration for a tenant.
83
+ *
84
+ * @param {Management.PatchPhoneProviderProtectionRequestContent} request
85
+ * @param {PhoneProviderProtectionClient.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Management.UnauthorizedError}
88
+ * @throws {@link Management.ForbiddenError}
89
+ * @throws {@link Management.TooManyRequestsError}
90
+ *
91
+ * @example
92
+ * await client.attackProtection.phoneProviderProtection.patch({
93
+ * type: "exponential"
94
+ * })
95
+ */
96
+ patch(request, requestOptions) {
97
+ return core.HttpResponsePromise.fromPromise(this.__patch(request, requestOptions));
98
+ }
99
+ __patch(request, requestOptions) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
102
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
103
+ let _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
105
+ 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"),
106
+ method: "PATCH",
107
+ headers: _headers,
108
+ contentType: "application/json",
109
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
110
+ requestType: "json",
111
+ body: request,
112
+ 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,
113
+ 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,
114
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
115
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
116
+ logging: this._options.logging,
117
+ });
118
+ if (_response.ok) {
119
+ return {
120
+ data: _response.body,
121
+ rawResponse: _response.rawResponse,
122
+ };
123
+ }
124
+ if (_response.error.reason === "status-code") {
125
+ switch (_response.error.statusCode) {
126
+ case 401:
127
+ throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
128
+ case 403:
129
+ throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
130
+ case 429:
131
+ throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
132
+ default:
133
+ throw new errors.ManagementError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ }
140
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/attack-protection/phone-provider-protection");
141
+ });
142
+ }
143
+ }
@@ -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
  *
@@ -174,6 +174,7 @@ export class ClientsClient {
174
174
  * @throws {@link Management.BadRequestError}
175
175
  * @throws {@link Management.UnauthorizedError}
176
176
  * @throws {@link Management.ForbiddenError}
177
+ * @throws {@link Management.NotFoundError}
177
178
  * @throws {@link Management.ConflictError}
178
179
  * @throws {@link Management.TooManyRequestsError}
179
180
  *
@@ -218,6 +219,8 @@ export class ClientsClient {
218
219
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
219
220
  case 403:
220
221
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
222
+ case 404:
223
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
221
224
  case 409:
222
225
  throw new Management.ConflictError(_response.error.body, _response.rawResponse);
223
226
  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
  *
@@ -88,9 +88,9 @@ export class EmailTemplatesClient {
88
88
  });
89
89
  }
90
90
  /**
91
- * 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.
91
+ * 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.
92
92
  *
93
- * @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).
93
+ * @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).
94
94
  * @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
95
95
  *
96
96
  * @throws {@link Management.BadRequestError}
@@ -150,7 +150,7 @@ export class EmailTemplatesClient {
150
150
  /**
151
151
  * Update an email template.
152
152
  *
153
- * @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).
153
+ * @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).
154
154
  * @param {Management.SetEmailTemplateRequestContent} request
155
155
  * @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
156
156
  *
@@ -219,7 +219,7 @@ export class EmailTemplatesClient {
219
219
  /**
220
220
  * Modify an email template.
221
221
  *
222
- * @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).
222
+ * @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).
223
223
  * @param {Management.UpdateEmailTemplateRequestContent} request
224
224
  * @param {EmailTemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
225
225
  *
@@ -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
@@ -140,6 +140,7 @@ export class SigningClient {
140
140
  * @throws {@link Management.BadRequestError}
141
141
  * @throws {@link Management.UnauthorizedError}
142
142
  * @throws {@link Management.ForbiddenError}
143
+ * @throws {@link Management.NotFoundError}
143
144
  * @throws {@link Management.TooManyRequestsError}
144
145
  *
145
146
  * @example
@@ -178,6 +179,8 @@ export class SigningClient {
178
179
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
179
180
  case 403:
180
181
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
182
+ case 404:
183
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
181
184
  case 429:
182
185
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
183
186
  default:
@@ -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
@@ -29,6 +29,7 @@ export class ConnectedAccountsClient {
29
29
  * @throws {@link Management.BadRequestError}
30
30
  * @throws {@link Management.UnauthorizedError}
31
31
  * @throws {@link Management.ForbiddenError}
32
+ * @throws {@link Management.NotFoundError}
32
33
  * @throws {@link Management.TooManyRequestsError}
33
34
  *
34
35
  * @example
@@ -77,6 +78,8 @@ export class ConnectedAccountsClient {
77
78
  throw new Management.UnauthorizedError(_response.error.body, _response.rawResponse);
78
79
  case 403:
79
80
  throw new Management.ForbiddenError(_response.error.body, _response.rawResponse);
81
+ case 404:
82
+ throw new Management.NotFoundError(_response.error.body, _response.rawResponse);
80
83
  case 429:
81
84
  throw new Management.TooManyRequestsError(_response.error.body, _response.rawResponse);
82
85
  default: