auth0-deploy-cli 8.7.1 → 8.8.1

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 (37) hide show
  1. package/.husky/pre-commit +2 -0
  2. package/CHANGELOG.md +31 -1
  3. package/README.md +1 -1
  4. package/lib/context/defaults.js +8 -1
  5. package/lib/context/defaults.js.map +1 -1
  6. package/lib/context/directory/handlers/index.js +2 -0
  7. package/lib/context/directory/handlers/index.js.map +1 -1
  8. package/lib/context/directory/handlers/networkACLs.d.ts +6 -0
  9. package/lib/context/directory/handlers/networkACLs.js +67 -0
  10. package/lib/context/directory/handlers/networkACLs.js.map +1 -0
  11. package/lib/context/directory/handlers/phoneProvider.js.map +1 -1
  12. package/lib/context/yaml/handlers/index.js +2 -0
  13. package/lib/context/yaml/handlers/index.js.map +1 -1
  14. package/lib/context/yaml/handlers/networkACLs.d.ts +6 -0
  15. package/lib/context/yaml/handlers/networkACLs.js +54 -0
  16. package/lib/context/yaml/handlers/networkACLs.js.map +1 -0
  17. package/lib/context/yaml/handlers/phoneProvider.js +1 -1
  18. package/lib/context/yaml/index.js +11 -3
  19. package/lib/context/yaml/index.js.map +1 -1
  20. package/lib/index.d.ts +1 -0
  21. package/lib/tools/auth0/handlers/index.js +2 -0
  22. package/lib/tools/auth0/handlers/index.js.map +1 -1
  23. package/lib/tools/auth0/handlers/networkACLs.d.ts +257 -0
  24. package/lib/tools/auth0/handlers/networkACLs.js +350 -0
  25. package/lib/tools/auth0/handlers/networkACLs.js.map +1 -0
  26. package/lib/tools/auth0/handlers/prompts.d.ts +6 -6
  27. package/lib/tools/auth0/handlers/prompts.js +8 -0
  28. package/lib/tools/auth0/handlers/prompts.js.map +1 -1
  29. package/lib/tools/constants.d.ts +1 -0
  30. package/lib/tools/constants.js +18 -10
  31. package/lib/tools/constants.js.map +1 -1
  32. package/lib/tools/index.d.ts +1 -0
  33. package/lib/types.d.ts +4 -2
  34. package/lib/types.js.map +1 -1
  35. package/lib/utils.d.ts +1 -0
  36. package/package.json +6 -6
  37. package/.husky/pre-push +0 -6
@@ -0,0 +1,257 @@
1
+ import { GetNetworkAclsById200Response } from 'auth0';
2
+ import DefaultAPIHandler from './default';
3
+ import { Asset, Assets, CalculatedChanges } from '../../../types';
4
+ export type NetworkACL = GetNetworkAclsById200Response;
5
+ export declare const schema: {
6
+ type: string;
7
+ description: string;
8
+ items: {
9
+ type: string;
10
+ required: string[];
11
+ properties: {
12
+ description: {
13
+ type: string;
14
+ maxLength: number;
15
+ };
16
+ active: {
17
+ type: string;
18
+ };
19
+ priority: {
20
+ type: string;
21
+ minimum: number;
22
+ maximum: number;
23
+ };
24
+ rule: {
25
+ anyOf: {
26
+ type: string;
27
+ required: string[];
28
+ properties: {
29
+ action: {
30
+ type: string;
31
+ anyOf: ({
32
+ type: string;
33
+ required: string[];
34
+ properties: {
35
+ block: {
36
+ type: string;
37
+ enum: boolean[];
38
+ };
39
+ };
40
+ additionalProperties: boolean;
41
+ } | {
42
+ type: string;
43
+ required: string[];
44
+ properties: {
45
+ allow: {
46
+ type: string;
47
+ enum: boolean[];
48
+ };
49
+ };
50
+ additionalProperties: boolean;
51
+ } | {
52
+ type: string;
53
+ required: string[];
54
+ properties: {
55
+ log: {
56
+ type: string;
57
+ enum: boolean[];
58
+ };
59
+ };
60
+ additionalProperties: boolean;
61
+ } | {
62
+ type: string;
63
+ required: string[];
64
+ properties: {
65
+ redirect: {
66
+ type: string;
67
+ enum: boolean[];
68
+ };
69
+ redirect_uri: {
70
+ type: string;
71
+ minLength: number;
72
+ maxLength: number;
73
+ };
74
+ };
75
+ additionalProperties: boolean;
76
+ })[];
77
+ };
78
+ match: {
79
+ type: string;
80
+ properties: {
81
+ asns: {
82
+ type: string;
83
+ items: {
84
+ type: string;
85
+ };
86
+ uniqueItems: boolean;
87
+ minItems: number;
88
+ maxItems: number;
89
+ };
90
+ geo_country_codes: {
91
+ type: string;
92
+ items: {
93
+ type: string;
94
+ };
95
+ uniqueItems: boolean;
96
+ minItems: number;
97
+ maxItems: number;
98
+ };
99
+ geo_subdivision_codes: {
100
+ type: string;
101
+ items: {
102
+ type: string;
103
+ };
104
+ uniqueItems: boolean;
105
+ minItems: number;
106
+ maxItems: number;
107
+ };
108
+ ipv4_cidrs: {
109
+ type: string;
110
+ items: {
111
+ type: string;
112
+ };
113
+ uniqueItems: boolean;
114
+ minItems: number;
115
+ maxItems: number;
116
+ };
117
+ ipv6_cidrs: {
118
+ type: string;
119
+ items: {
120
+ type: string;
121
+ };
122
+ uniqueItems: boolean;
123
+ minItems: number;
124
+ maxItems: number;
125
+ };
126
+ ja3_fingerprints: {
127
+ type: string;
128
+ items: {
129
+ type: string;
130
+ };
131
+ uniqueItems: boolean;
132
+ minItems: number;
133
+ maxItems: number;
134
+ };
135
+ ja4_fingerprints: {
136
+ type: string;
137
+ items: {
138
+ type: string;
139
+ };
140
+ uniqueItems: boolean;
141
+ minItems: number;
142
+ maxItems: number;
143
+ };
144
+ user_agents: {
145
+ type: string;
146
+ items: {
147
+ type: string;
148
+ };
149
+ uniqueItems: boolean;
150
+ minItems: number;
151
+ maxItems: number;
152
+ };
153
+ };
154
+ additionalProperties: boolean;
155
+ };
156
+ not_match: {
157
+ type: string;
158
+ properties: {
159
+ asns: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ };
164
+ uniqueItems: boolean;
165
+ minItems: number;
166
+ maxItems: number;
167
+ };
168
+ geo_country_codes: {
169
+ type: string;
170
+ items: {
171
+ type: string;
172
+ };
173
+ uniqueItems: boolean;
174
+ minItems: number;
175
+ maxItems: number;
176
+ };
177
+ geo_subdivision_codes: {
178
+ type: string;
179
+ items: {
180
+ type: string;
181
+ };
182
+ uniqueItems: boolean;
183
+ minItems: number;
184
+ maxItems: number;
185
+ };
186
+ ipv4_cidrs: {
187
+ type: string;
188
+ items: {
189
+ type: string;
190
+ };
191
+ uniqueItems: boolean;
192
+ minItems: number;
193
+ maxItems: number;
194
+ };
195
+ ipv6_cidrs: {
196
+ type: string;
197
+ items: {
198
+ type: string;
199
+ };
200
+ uniqueItems: boolean;
201
+ minItems: number;
202
+ maxItems: number;
203
+ };
204
+ ja3_fingerprints: {
205
+ type: string;
206
+ items: {
207
+ type: string;
208
+ };
209
+ uniqueItems: boolean;
210
+ minItems: number;
211
+ maxItems: number;
212
+ };
213
+ ja4_fingerprints: {
214
+ type: string;
215
+ items: {
216
+ type: string;
217
+ };
218
+ uniqueItems: boolean;
219
+ minItems: number;
220
+ maxItems: number;
221
+ };
222
+ user_agents: {
223
+ type: string;
224
+ items: {
225
+ type: string;
226
+ };
227
+ uniqueItems: boolean;
228
+ minItems: number;
229
+ maxItems: number;
230
+ };
231
+ };
232
+ additionalProperties: boolean;
233
+ };
234
+ scope: {
235
+ enum: string[];
236
+ type: string;
237
+ };
238
+ };
239
+ additionalProperties: boolean;
240
+ }[];
241
+ };
242
+ };
243
+ additionalProperties: boolean;
244
+ };
245
+ };
246
+ export default class NetworkACLsHandler extends DefaultAPIHandler {
247
+ existing: NetworkACL[] | null;
248
+ constructor(config: DefaultAPIHandler);
249
+ getType(): Promise<Asset | null>;
250
+ processChanges(assets: Assets): Promise<void>;
251
+ createNetworkACL(acl: NetworkACL): Promise<Asset>;
252
+ createNetworkACLs(creates: CalculatedChanges['create']): Promise<void>;
253
+ updateNetworkACL(acl: NetworkACL): Promise<import("auth0").ApiResponse<GetNetworkAclsById200Response>>;
254
+ updateNetworkACLs(updates: CalculatedChanges['update']): Promise<void>;
255
+ deleteNetworkACL(acl: NetworkACL): Promise<void>;
256
+ deleteNetworkACLs(data: Asset[]): Promise<void>;
257
+ }
@@ -0,0 +1,350 @@
1
+ "use strict";
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
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.schema = void 0;
27
+ const default_1 = __importDefault(require("./default"));
28
+ const client_1 = require("../client");
29
+ const logger_1 = __importDefault(require("../../../logger"));
30
+ // Define action types
31
+ const BlockAction = {
32
+ type: 'object',
33
+ required: ['block'],
34
+ properties: {
35
+ block: {
36
+ type: 'boolean',
37
+ enum: [true],
38
+ },
39
+ },
40
+ additionalProperties: false,
41
+ };
42
+ const AllowAction = {
43
+ type: 'object',
44
+ required: ['allow'],
45
+ properties: {
46
+ allow: {
47
+ type: 'boolean',
48
+ enum: [true],
49
+ },
50
+ },
51
+ additionalProperties: false,
52
+ };
53
+ const LogAction = {
54
+ type: 'object',
55
+ required: ['log'],
56
+ properties: {
57
+ log: {
58
+ type: 'boolean',
59
+ enum: [true],
60
+ },
61
+ },
62
+ additionalProperties: false,
63
+ };
64
+ const RedirectAction = {
65
+ type: 'object',
66
+ required: ['redirect', 'redirect_uri'],
67
+ properties: {
68
+ redirect: {
69
+ type: 'boolean',
70
+ enum: [true],
71
+ },
72
+ redirect_uri: {
73
+ type: 'string',
74
+ minLength: 1,
75
+ maxLength: 2000,
76
+ },
77
+ },
78
+ additionalProperties: false,
79
+ };
80
+ // Define MatchSchema
81
+ const MatchSchema = {
82
+ type: 'object',
83
+ properties: {
84
+ asns: {
85
+ type: 'array',
86
+ items: {
87
+ type: 'integer',
88
+ },
89
+ uniqueItems: true,
90
+ minItems: 1,
91
+ maxItems: 10,
92
+ },
93
+ geo_country_codes: {
94
+ type: 'array',
95
+ items: {
96
+ type: 'string',
97
+ },
98
+ uniqueItems: true,
99
+ minItems: 1,
100
+ maxItems: 10,
101
+ },
102
+ geo_subdivision_codes: {
103
+ type: 'array',
104
+ items: {
105
+ type: 'string',
106
+ },
107
+ uniqueItems: true,
108
+ minItems: 1,
109
+ maxItems: 10,
110
+ },
111
+ ipv4_cidrs: {
112
+ type: 'array',
113
+ items: {
114
+ type: 'string',
115
+ },
116
+ uniqueItems: true,
117
+ minItems: 1,
118
+ maxItems: 10,
119
+ },
120
+ ipv6_cidrs: {
121
+ type: 'array',
122
+ items: {
123
+ type: 'string',
124
+ },
125
+ uniqueItems: true,
126
+ minItems: 1,
127
+ maxItems: 10,
128
+ },
129
+ ja3_fingerprints: {
130
+ type: 'array',
131
+ items: {
132
+ type: 'string',
133
+ },
134
+ uniqueItems: true,
135
+ minItems: 1,
136
+ maxItems: 10,
137
+ },
138
+ ja4_fingerprints: {
139
+ type: 'array',
140
+ items: {
141
+ type: 'string',
142
+ },
143
+ uniqueItems: true,
144
+ minItems: 1,
145
+ maxItems: 10,
146
+ },
147
+ user_agents: {
148
+ type: 'array',
149
+ items: {
150
+ type: 'string',
151
+ },
152
+ uniqueItems: true,
153
+ minItems: 1,
154
+ maxItems: 10,
155
+ },
156
+ },
157
+ additionalProperties: false,
158
+ };
159
+ exports.schema = {
160
+ type: 'array',
161
+ description: 'List of network ACL configurations',
162
+ items: {
163
+ type: 'object',
164
+ required: ['description', 'active', 'priority', 'rule'],
165
+ properties: {
166
+ description: {
167
+ type: 'string',
168
+ maxLength: 255,
169
+ },
170
+ active: {
171
+ type: 'boolean',
172
+ },
173
+ priority: {
174
+ type: 'number',
175
+ minimum: 1,
176
+ maximum: 10,
177
+ },
178
+ rule: {
179
+ anyOf: [
180
+ {
181
+ type: 'object',
182
+ required: ['action', 'scope', 'match'],
183
+ properties: {
184
+ action: {
185
+ type: 'object',
186
+ anyOf: [BlockAction, AllowAction, LogAction, RedirectAction],
187
+ },
188
+ match: MatchSchema,
189
+ not_match: MatchSchema,
190
+ scope: {
191
+ enum: ['management', 'authentication', 'tenant'],
192
+ type: 'string',
193
+ },
194
+ },
195
+ additionalProperties: false,
196
+ },
197
+ {
198
+ type: 'object',
199
+ required: ['action', 'scope', 'not_match'],
200
+ properties: {
201
+ action: {
202
+ type: 'object',
203
+ anyOf: [BlockAction, AllowAction, LogAction, RedirectAction],
204
+ },
205
+ not_match: MatchSchema,
206
+ match: MatchSchema,
207
+ scope: {
208
+ enum: ['management', 'authentication', 'tenant'],
209
+ type: 'string',
210
+ },
211
+ },
212
+ additionalProperties: false,
213
+ },
214
+ ],
215
+ },
216
+ },
217
+ additionalProperties: false,
218
+ },
219
+ };
220
+ class NetworkACLsHandler extends default_1.default {
221
+ constructor(config) {
222
+ super(Object.assign(Object.assign({}, config), { type: 'networkACLs', id: 'id', identifiers: ['id', 'priority', 'active', 'rule'], stripCreateFields: ['created_at', 'updated_at'], stripUpdateFields: ['created_at', 'updated_at'] }));
223
+ }
224
+ getType() {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ if (this.existing) {
227
+ return this.existing;
228
+ }
229
+ try {
230
+ const networkACLs = yield (0, client_1.paginate)(this.client.networkAcls.getAll, {
231
+ paginate: true,
232
+ include_totals: true,
233
+ });
234
+ this.existing = networkACLs;
235
+ return this.existing;
236
+ }
237
+ catch (err) {
238
+ if (err.statusCode === 404 || err.statusCode === 501) {
239
+ return null;
240
+ }
241
+ throw err;
242
+ }
243
+ });
244
+ }
245
+ processChanges(assets) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const { networkACLs } = assets;
248
+ // Do nothing if not set
249
+ if (!networkACLs)
250
+ return;
251
+ const { del, update, create } = yield this.calcChanges(assets);
252
+ logger_1.default.debug(`Start processChanges for network ACLs [delete:${del.length}] [update:${update.length}], [create:${create.length}]`);
253
+ const changes = [{ del: del }, { create: create }, { update: update }];
254
+ yield Promise.all(changes.map((change) => __awaiter(this, void 0, void 0, function* () {
255
+ switch (true) {
256
+ case change.del && change.del.length > 0:
257
+ yield this.deleteNetworkACLs(change.del || []);
258
+ break;
259
+ case change.create && change.create.length > 0:
260
+ yield this.createNetworkACLs(change.create);
261
+ break;
262
+ case change.update && change.update.length > 0:
263
+ if (change.update)
264
+ yield this.updateNetworkACLs(change.update);
265
+ break;
266
+ default:
267
+ break;
268
+ }
269
+ })));
270
+ });
271
+ }
272
+ createNetworkACL(acl) {
273
+ return __awaiter(this, void 0, void 0, function* () {
274
+ const { data: created } = yield this.client.networkAcls.create(acl);
275
+ return created;
276
+ });
277
+ }
278
+ createNetworkACLs(creates) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ yield this.client.pool
281
+ .addEachTask({
282
+ data: creates || [],
283
+ generator: (item) => this.createNetworkACL(item)
284
+ .then((data) => {
285
+ this.didCreate(data);
286
+ this.created += 1;
287
+ })
288
+ .catch((err) => {
289
+ throw new Error(`Problem creating ${this.type} ${this.objString(item)}\n${err}`);
290
+ }),
291
+ })
292
+ .promise();
293
+ });
294
+ }
295
+ updateNetworkACL(acl) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ const { id } = acl, updateParams = __rest(acl, ["id"]);
298
+ const updated = yield this.client.networkAcls.update({ id }, updateParams);
299
+ return updated;
300
+ });
301
+ }
302
+ updateNetworkACLs(updates) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ yield this.client.pool
305
+ .addEachTask({
306
+ data: updates || [],
307
+ generator: (item) => this.updateNetworkACL(item)
308
+ .then((data) => {
309
+ this.didUpdate(data);
310
+ this.updated += 1;
311
+ })
312
+ .catch((err) => {
313
+ throw new Error(`Problem updating ${this.type} ${this.objString(item)}\n${err}`);
314
+ }),
315
+ })
316
+ .promise();
317
+ });
318
+ }
319
+ deleteNetworkACL(acl) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ yield this.client.networkAcls.delete({ id: acl.id });
322
+ });
323
+ }
324
+ deleteNetworkACLs(data) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ if (this.config('AUTH0_ALLOW_DELETE') === 'true' ||
327
+ this.config('AUTH0_ALLOW_DELETE') === true) {
328
+ yield this.client.pool
329
+ .addEachTask({
330
+ data: data || [],
331
+ generator: (item) => this.deleteNetworkACL(item)
332
+ .then(() => {
333
+ this.didDelete(item);
334
+ this.deleted += 1;
335
+ })
336
+ .catch((err) => {
337
+ throw new Error(`Problem deleting ${this.type} ${this.objString(item)}\n${err}`);
338
+ }),
339
+ })
340
+ .promise();
341
+ }
342
+ else {
343
+ logger_1.default.warn(`Detected the following ${this.type} should be deleted. Doing so may be destructive.\nYou can enable deletes by setting 'AUTH0_ALLOW_DELETE' to true in the config
344
+ \n${data.map((i) => this.objString(i)).join('\n')}`);
345
+ }
346
+ });
347
+ }
348
+ }
349
+ exports.default = NetworkACLsHandler;
350
+ //# sourceMappingURL=networkACLs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkACLs.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/networkACLs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAA0C;AAE1C,sCAAqC;AACrC,6DAAkC;AAKlC,sBAAsB;AACtB,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,CAAC,IAAI,CAAC;SACb;KACF;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,MAAM,WAA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/ID,qCA+IC"}
@@ -1,15 +1,15 @@
1
1
  import { GetPartialsPromptEnum, GetRendering200Response } from 'auth0';
2
2
  import DefaultHandler from './default';
3
3
  import { Assets, Language } from '../../../types';
4
- declare const promptTypes: readonly ["login", "login-id", "login-password", "login-email-verification", "signup", "signup-id", "signup-password", "reset-password", "consent", "mfa-push", "mfa-otp", "mfa-voice", "mfa-phone", "mfa-webauthn", "mfa-sms", "mfa-email", "mfa-recovery-code", "mfa", "status", "device-flow", "email-verification", "email-otp-challenge", "organizations", "invitation", "common"];
5
- export type PromptTypes = typeof promptTypes[number];
4
+ declare const promptTypes: readonly ["login", "login-id", "login-password", "login-passwordless", "login-email-verification", "signup", "signup-id", "signup-password", "phone-identifier-enrollment", "phone-identifier-challenge", "email-identifier-challenge", "reset-password", "custom-form", "consent", "customized-consent", "logout", "mfa-push", "mfa-otp", "mfa-voice", "mfa-phone", "mfa-webauthn", "mfa-sms", "mfa-email", "mfa-recovery-code", "mfa", "status", "device-flow", "email-verification", "email-otp-challenge", "organizations", "invitation", "common", "captcha"];
5
+ export type PromptTypes = (typeof promptTypes)[number];
6
6
  declare const screenTypes: readonly ["login", "login-id", "login-password", "login-email-verification", "signup", "signup-id", "signup-password", "reset-password-request", "reset-password-email", "reset-password", "reset-password-success", "reset-password-error", "consent", "status", "mfa-detect-browser-capabilities", "mfa-enroll-result", "mfa-login-options", "mfa-begin-enroll-options", "mfa-otp-enrollment-qr", "mfa-otp-enrollment-code", "mfa-otp-challenge", "mfa-voice-challenge", "mfa-sms-challenge", "mfa-recovery-code-enrollment", "mfa-recovery-code-challenge", "mfa-country-codes", "mfa-sms-enrollment", "mfa-voice-enrollment", "mfa-phone-challenge", "mfa-phone-enrollment", "mfa-webauthn-roaming-enrollment", "mfa-webauthn-platform-enrollment", "mfa-webauthn-platform-challenge", "mfa-webauthn-roaming-challenge", "mfa-webauthn-change-key-nickname", "mfa-webauthn-enrollment-success", "mfa-webauthn-error", "mfa-webauthn-not-available-error", "mfa-sms-list", "mfa-email-challenge", "mfa-email-list", "mfa-push-welcome", "mfa-push-list", "mfa-push-enrollment-qr", "mfa-push-enrollment-code", "mfa-push-success", "mfa-push-challenge-push", "device-code-activation", "device-code-activation-allowed", "device-code-activation-denied", "device-code-confirmation", "email-verification-result", "email-otp-challenge", "redeem-ticket", "organization-selection", "accept-invitation", "login-passwordless-email-code", "login-passwordless-email-link", "login-passwordless-sms-otp"];
7
- export type ScreenTypes = typeof screenTypes[number];
7
+ export type ScreenTypes = (typeof screenTypes)[number];
8
8
  declare const customPartialsPromptTypes: string[];
9
- export type CustomPartialsPromptTypes = typeof customPartialsPromptTypes[number];
10
- export type CustomPartialsScreenTypes = typeof customPartialsPromptTypes[number];
9
+ export type CustomPartialsPromptTypes = (typeof customPartialsPromptTypes)[number];
10
+ export type CustomPartialsScreenTypes = (typeof customPartialsPromptTypes)[number];
11
11
  declare const customPartialsInsertionPoints: readonly ["form-content-start", "form-content-end", "form-footer-start", "form-footer-end", "secondary-actions-start", "secondary-actions-end"];
12
- export type CustomPartialsInsertionPoints = typeof customPartialsInsertionPoints[number];
12
+ export type CustomPartialsInsertionPoints = (typeof customPartialsInsertionPoints)[number];
13
13
  export type CustomPromptPartialsScreens = Partial<{
14
14
  [screen in CustomPartialsScreenTypes]: Partial<{
15
15
  [insertionPoint in CustomPartialsInsertionPoints]: string;
@@ -34,12 +34,19 @@ const promptTypes = [
34
34
  'login',
35
35
  'login-id',
36
36
  'login-password',
37
+ 'login-passwordless',
37
38
  'login-email-verification',
38
39
  'signup',
39
40
  'signup-id',
40
41
  'signup-password',
42
+ 'phone-identifier-enrollment',
43
+ 'phone-identifier-challenge',
44
+ 'email-identifier-challenge',
41
45
  'reset-password',
46
+ 'custom-form',
42
47
  'consent',
48
+ 'customized-consent',
49
+ 'logout',
43
50
  'mfa-push',
44
51
  'mfa-otp',
45
52
  'mfa-voice',
@@ -56,6 +63,7 @@ const promptTypes = [
56
63
  'organizations',
57
64
  'invitation',
58
65
  'common',
66
+ 'captcha',
59
67
  ];
60
68
  const screenTypes = [
61
69
  'login',