auth0 4.34.0 → 4.35.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/__generated/managers/attack-protection-manager.d.ts +29 -1
- package/dist/cjs/management/__generated/managers/attack-protection-manager.js +60 -0
- package/dist/cjs/management/__generated/managers/attack-protection-manager.js.map +1 -1
- package/dist/cjs/management/__generated/models/index.d.ts +611 -0
- package/dist/cjs/management/__generated/models/index.js +79 -7
- package/dist/cjs/management/__generated/models/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/management/__generated/managers/attack-protection-manager.d.ts +29 -1
- package/dist/esm/management/__generated/managers/attack-protection-manager.js +60 -0
- package/dist/esm/management/__generated/managers/attack-protection-manager.js.map +1 -1
- package/dist/esm/management/__generated/models/index.d.ts +611 -0
- package/dist/esm/management/__generated/models/index.js +71 -0
- package/dist/esm/management/__generated/models/index.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as runtime from '../../../lib/runtime.js';
|
|
2
2
|
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
|
|
3
|
-
import type { GetBreachedPasswordDetection200Response, GetBruteForceProtection200Response, GetSuspiciousIpThrottling200Response, PatchBreachedPasswordDetectionRequest, PatchBruteForceProtectionRequest, PatchSuspiciousIpThrottlingRequest } from '../models/index.js';
|
|
3
|
+
import type { GetAttackProtectionCaptchaResponseContent, GetBotDetectionSettingsResponseContent, GetBreachedPasswordDetection200Response, GetBruteForceProtection200Response, GetSuspiciousIpThrottling200Response, PatchBreachedPasswordDetectionRequest, PatchBruteForceProtectionRequest, PatchSuspiciousIpThrottlingRequest, UpdateBotDetectionSettingsRequestContent, UpdateBotDetectionSettingsResponseContent, UpdateCaptchaRequestContent, UpdateCaptchaResponseContent } from '../models/index.js';
|
|
4
4
|
declare const BaseAPI: typeof runtime.BaseAPI;
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
export declare class AttackProtectionManager extends BaseAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Get the Bot Detection configuration of your tenant.
|
|
11
|
+
* Get Bot Detection settings
|
|
12
|
+
*
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
getBotDetectionConfig(initOverrides?: InitOverride): Promise<ApiResponse<GetBotDetectionSettingsResponseContent>>;
|
|
9
16
|
/**
|
|
10
17
|
* Retrieve details of the Breached Password Detection configuration of your tenant.
|
|
11
18
|
* Get Breached Password Detection settings
|
|
@@ -19,12 +26,26 @@ export declare class AttackProtectionManager extends BaseAPI {
|
|
|
19
26
|
* @throws {RequiredError}
|
|
20
27
|
*/
|
|
21
28
|
getBruteForceConfig(initOverrides?: InitOverride): Promise<ApiResponse<GetBruteForceProtection200Response>>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the CAPTCHA configuration for your client.
|
|
31
|
+
* Get the CAPTCHA configuration for a tenant
|
|
32
|
+
*
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
getCaptchaConfig(initOverrides?: InitOverride): Promise<ApiResponse<GetAttackProtectionCaptchaResponseContent>>;
|
|
22
36
|
/**
|
|
23
37
|
* Get the suspicious IP throttling configuration
|
|
24
38
|
*
|
|
25
39
|
* @throws {RequiredError}
|
|
26
40
|
*/
|
|
27
41
|
getSuspiciousIpThrottlingConfig(initOverrides?: InitOverride): Promise<ApiResponse<GetSuspiciousIpThrottling200Response>>;
|
|
42
|
+
/**
|
|
43
|
+
* Update the Bot Detection configuration of your tenant.
|
|
44
|
+
* Update Bot Detection settings
|
|
45
|
+
*
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
updateBotDetectionConfig(bodyParameters: UpdateBotDetectionSettingsRequestContent, initOverrides?: InitOverride): Promise<ApiResponse<UpdateBotDetectionSettingsResponseContent>>;
|
|
28
49
|
/**
|
|
29
50
|
* Update details of the Breached Password Detection configuration of your tenant.
|
|
30
51
|
* Update Breached Password Detection settings
|
|
@@ -38,6 +59,13 @@ export declare class AttackProtectionManager extends BaseAPI {
|
|
|
38
59
|
* @throws {RequiredError}
|
|
39
60
|
*/
|
|
40
61
|
updateBruteForceConfig(bodyParameters: PatchBruteForceProtectionRequest, initOverrides?: InitOverride): Promise<ApiResponse<GetBruteForceProtection200Response>>;
|
|
62
|
+
/**
|
|
63
|
+
* Update existing CAPTCHA configuration for your client.
|
|
64
|
+
* Partial Update for CAPTCHA Configuration
|
|
65
|
+
*
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
updateCaptchaConfig(bodyParameters: UpdateCaptchaRequestContent, initOverrides?: InitOverride): Promise<ApiResponse<UpdateCaptchaResponseContent>>;
|
|
41
69
|
/**
|
|
42
70
|
* Update the suspicious IP throttling configuration
|
|
43
71
|
*
|
|
@@ -30,6 +30,19 @@ const { BaseAPI } = runtime;
|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
class AttackProtectionManager extends BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Get the Bot Detection configuration of your tenant.
|
|
35
|
+
* Get Bot Detection settings
|
|
36
|
+
*
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
async getBotDetectionConfig(initOverrides) {
|
|
40
|
+
const response = await this.request({
|
|
41
|
+
path: `/attack-protection/bot-detection`,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
}, initOverrides);
|
|
44
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
45
|
+
}
|
|
33
46
|
/**
|
|
34
47
|
* Retrieve details of the Breached Password Detection configuration of your tenant.
|
|
35
48
|
* Get Breached Password Detection settings
|
|
@@ -55,6 +68,19 @@ class AttackProtectionManager extends BaseAPI {
|
|
|
55
68
|
}, initOverrides);
|
|
56
69
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
57
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Get the CAPTCHA configuration for your client.
|
|
73
|
+
* Get the CAPTCHA configuration for a tenant
|
|
74
|
+
*
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
async getCaptchaConfig(initOverrides) {
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: `/attack-protection/captcha`,
|
|
80
|
+
method: 'GET',
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
83
|
+
}
|
|
58
84
|
/**
|
|
59
85
|
* Get the suspicious IP throttling configuration
|
|
60
86
|
*
|
|
@@ -67,6 +93,23 @@ class AttackProtectionManager extends BaseAPI {
|
|
|
67
93
|
}, initOverrides);
|
|
68
94
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
69
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Update the Bot Detection configuration of your tenant.
|
|
98
|
+
* Update Bot Detection settings
|
|
99
|
+
*
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
async updateBotDetectionConfig(bodyParameters, initOverrides) {
|
|
103
|
+
const headerParameters = {};
|
|
104
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: `/attack-protection/bot-detection`,
|
|
107
|
+
method: 'PATCH',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
body: bodyParameters,
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
112
|
+
}
|
|
70
113
|
/**
|
|
71
114
|
* Update details of the Breached Password Detection configuration of your tenant.
|
|
72
115
|
* Update Breached Password Detection settings
|
|
@@ -100,6 +143,23 @@ class AttackProtectionManager extends BaseAPI {
|
|
|
100
143
|
}, initOverrides);
|
|
101
144
|
return runtime.JSONApiResponse.fromResponse(response);
|
|
102
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Update existing CAPTCHA configuration for your client.
|
|
148
|
+
* Partial Update for CAPTCHA Configuration
|
|
149
|
+
*
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
async updateCaptchaConfig(bodyParameters, initOverrides) {
|
|
153
|
+
const headerParameters = {};
|
|
154
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: `/attack-protection/captcha`,
|
|
157
|
+
method: 'PATCH',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
body: bodyParameters,
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
return runtime.JSONApiResponse.fromResponse(response);
|
|
162
|
+
}
|
|
103
163
|
/**
|
|
104
164
|
* Update the suspicious IP throttling configuration
|
|
105
165
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attack-protection-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/attack-protection-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;
|
|
1
|
+
{"version":3,"file":"attack-protection-manager.js","sourceRoot":"","sources":["../../../../../src/management/__generated/managers/attack-protection-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAiBnD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAE5B;;GAEG;AACH,MAAa,uBAAwB,SAAQ,OAAO;IAClD;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,aAA4B;QAE5B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,IAAI,EAAE,kCAAkC;YACxC,MAAM,EAAE,KAAK;SACd,EACD,aAAa,CACd,CAAC;QAEF,OAAO,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kCAAkC,CACtC,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