@authhero/adapter-interfaces 4.3.0 → 4.5.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/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +170 -6
- package/dist/adapter-interfaces.mjs +188 -157
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/ActionExecutions.d.ts +8 -0
- package/dist/types/adapters/ScimConfigurations.d.ts +7 -0
- package/dist/types/adapters/ScimExternalIds.d.ts +7 -0
- package/dist/types/adapters/ScimTokens.d.ts +9 -0
- package/dist/types/adapters/index.d.ts +16 -0
- package/dist/types/types/Connection.d.ts +4 -4
- package/dist/types/types/Forms.d.ts +48 -0
- package/dist/types/types/PromptSetting.d.ts +1 -0
- package/dist/types/types/ScimConfiguration.d.ts +30 -0
- package/dist/types/types/ScimExternalId.d.ts +21 -0
- package/dist/types/types/ScimToken.d.ts +19 -0
- package/dist/types/types/User.d.ts +3 -0
- package/dist/types/types/auth0/UserResponse.d.ts +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -214,29 +214,29 @@ var t = e.object({
|
|
|
214
214
|
target: Ce.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
215
215
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
216
216
|
})
|
|
217
|
-
}),
|
|
217
|
+
}), Te = e.union([
|
|
218
218
|
xe,
|
|
219
219
|
Se,
|
|
220
220
|
we
|
|
221
|
-
]),
|
|
221
|
+
]), Ee = e.object({
|
|
222
222
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
223
|
-
actions: e.array(
|
|
224
|
-
}),
|
|
223
|
+
actions: e.array(Te).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
224
|
+
}), De = Ee.extend(t.shape).extend({ id: e.string().openapi({
|
|
225
225
|
description: "Unique identifier for the flow",
|
|
226
226
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
227
|
-
}) }),
|
|
227
|
+
}) }), Oe = e.object({
|
|
228
228
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
229
229
|
per_page: e.string().min(1).optional().default("50").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page. Defaults to 50." }),
|
|
230
230
|
include_totals: e.string().optional().default("false").transform((e) => e === "true").openapi({ description: "If the total number of items should be included in the response" }),
|
|
231
231
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
232
232
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
233
|
-
}),
|
|
233
|
+
}), ke = e.object({
|
|
234
234
|
start: e.number(),
|
|
235
235
|
limit: e.number(),
|
|
236
236
|
length: e.number(),
|
|
237
237
|
total: e.number().optional(),
|
|
238
238
|
next: e.string().optional()
|
|
239
|
-
}),
|
|
239
|
+
}), u = e.object({
|
|
240
240
|
email: e.string().optional(),
|
|
241
241
|
email_verified: e.boolean().optional(),
|
|
242
242
|
name: e.string().optional(),
|
|
@@ -245,7 +245,7 @@ var t = e.object({
|
|
|
245
245
|
phone_number: e.string().optional(),
|
|
246
246
|
phone_verified: e.boolean().optional(),
|
|
247
247
|
family_name: e.string().optional()
|
|
248
|
-
}).catchall(e.any()),
|
|
248
|
+
}).catchall(e.any()), d = e.object({
|
|
249
249
|
connection: e.string(),
|
|
250
250
|
user_id: e.string(),
|
|
251
251
|
provider: e.string(),
|
|
@@ -258,15 +258,15 @@ var t = e.object({
|
|
|
258
258
|
access_token: e.string().optional(),
|
|
259
259
|
access_token_secret: e.string().optional(),
|
|
260
260
|
refresh_token: e.string().optional(),
|
|
261
|
-
profileData:
|
|
262
|
-
}),
|
|
261
|
+
profileData: u.optional()
|
|
262
|
+
}), f = e.object({
|
|
263
263
|
formatted: e.string().optional(),
|
|
264
264
|
street_address: e.string().optional(),
|
|
265
265
|
locality: e.string().optional(),
|
|
266
266
|
region: e.string().optional(),
|
|
267
267
|
postal_code: e.string().optional(),
|
|
268
268
|
country: e.string().optional()
|
|
269
|
-
}).optional(),
|
|
269
|
+
}).optional(), p = e.object({
|
|
270
270
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
271
271
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
272
272
|
phone_number: e.string().optional(),
|
|
@@ -289,8 +289,8 @@ var t = e.object({
|
|
|
289
289
|
gender: e.string().optional(),
|
|
290
290
|
birthdate: e.string().optional(),
|
|
291
291
|
zoneinfo: e.string().optional(),
|
|
292
|
-
address:
|
|
293
|
-
}),
|
|
292
|
+
address: f
|
|
293
|
+
}), m = p.extend({
|
|
294
294
|
email_verified: e.boolean().default(!1),
|
|
295
295
|
verify_email: e.boolean().optional(),
|
|
296
296
|
last_ip: e.string().optional(),
|
|
@@ -299,34 +299,35 @@ var t = e.object({
|
|
|
299
299
|
provider: e.string().optional(),
|
|
300
300
|
connection: e.string(),
|
|
301
301
|
is_social: e.boolean().optional(),
|
|
302
|
+
blocked: e.boolean().optional(),
|
|
302
303
|
registration_completed_at: e.string().optional(),
|
|
303
304
|
password: e.object({
|
|
304
305
|
hash: e.string(),
|
|
305
306
|
algorithm: e.string()
|
|
306
307
|
}).optional()
|
|
307
|
-
}),
|
|
308
|
+
}), h = m.omit({ password: !0 }).extend(t.shape).extend({
|
|
308
309
|
user_id: e.string(),
|
|
309
310
|
provider: e.string(),
|
|
310
311
|
is_social: e.boolean(),
|
|
311
312
|
email: e.string().optional(),
|
|
312
313
|
login_count: e.number().default(0),
|
|
313
|
-
identities: e.array(
|
|
314
|
-
}),
|
|
314
|
+
identities: e.array(d).optional()
|
|
315
|
+
}), Ae = h.omit({ registration_completed_at: !0 }), je = p.extend({
|
|
315
316
|
login_count: e.number(),
|
|
316
317
|
multifactor: e.array(e.string()).optional(),
|
|
317
318
|
last_ip: e.string().optional(),
|
|
318
319
|
last_login: e.string().optional(),
|
|
319
320
|
user_id: e.string()
|
|
320
|
-
}).catchall(e.any()),
|
|
321
|
+
}).catchall(e.any()), Me = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ne = (e = 21) => {
|
|
321
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
322
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += Me[n[e] & 63];
|
|
323
324
|
return t;
|
|
324
|
-
},
|
|
325
|
+
}, g = e.object({
|
|
325
326
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
326
327
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
327
328
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
328
329
|
global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
|
|
329
|
-
client_secret: e.string().default(() =>
|
|
330
|
+
client_secret: e.string().default(() => Ne()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
330
331
|
app_type: e.enum([
|
|
331
332
|
"native",
|
|
332
333
|
"spa",
|
|
@@ -439,10 +440,10 @@ var t = e.object({
|
|
|
439
440
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
440
441
|
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
441
442
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
|
|
442
|
-
}),
|
|
443
|
+
}), Pe = e.object({
|
|
443
444
|
created_at: e.string(),
|
|
444
445
|
updated_at: e.string()
|
|
445
|
-
}).extend(
|
|
446
|
+
}).extend(g.shape).extend({ client_id: e.string() }), _ = e.object({
|
|
446
447
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
447
448
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
448
449
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -455,38 +456,38 @@ var t = e.object({
|
|
|
455
456
|
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
456
457
|
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
457
458
|
authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
|
|
458
|
-
}),
|
|
459
|
+
}), v = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(_.shape).extend({
|
|
459
460
|
created_at: e.string().optional(),
|
|
460
461
|
updated_at: e.string().optional()
|
|
461
|
-
}),
|
|
462
|
+
}), Fe = e.array(v), y = e.enum(["iat", "rat"]), b = e.object({
|
|
462
463
|
id: e.string(),
|
|
463
464
|
token_hash: e.string(),
|
|
464
|
-
type:
|
|
465
|
+
type: y,
|
|
465
466
|
client_id: e.string().optional(),
|
|
466
467
|
sub: e.string().optional(),
|
|
467
468
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
468
469
|
single_use: e.boolean().default(!1),
|
|
469
470
|
expires_at: e.string().optional()
|
|
470
|
-
}),
|
|
471
|
+
}), Ie = e.object({
|
|
471
472
|
created_at: e.string(),
|
|
472
473
|
used_at: e.string().optional(),
|
|
473
474
|
revoked_at: e.string().optional()
|
|
474
|
-
}).extend(
|
|
475
|
+
}).extend(b.shape), x = e.object({
|
|
475
476
|
x: e.number(),
|
|
476
477
|
y: e.number()
|
|
477
|
-
}),
|
|
478
|
+
}), S = /* @__PURE__ */ function(e) {
|
|
478
479
|
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
479
|
-
}({}),
|
|
480
|
+
}({}), C = /* @__PURE__ */ function(e) {
|
|
480
481
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
481
|
-
}({}),
|
|
482
|
+
}({}), w = e.object({
|
|
482
483
|
id: e.string(),
|
|
483
|
-
category: e.nativeEnum(
|
|
484
|
-
type: e.nativeEnum(
|
|
485
|
-
}),
|
|
484
|
+
category: e.nativeEnum(C),
|
|
485
|
+
type: e.nativeEnum(S)
|
|
486
|
+
}), T = w.extend({
|
|
486
487
|
category: e.literal("BLOCK"),
|
|
487
488
|
type: e.literal("RICH_TEXT"),
|
|
488
489
|
config: e.object({ content: e.string() }).passthrough()
|
|
489
|
-
}),
|
|
490
|
+
}), E = w.extend({
|
|
490
491
|
category: e.literal("BLOCK"),
|
|
491
492
|
type: e.union([
|
|
492
493
|
e.literal("NEXT_BUTTON"),
|
|
@@ -494,13 +495,13 @@ var t = e.object({
|
|
|
494
495
|
e.literal("SUBMIT_BUTTON")
|
|
495
496
|
]),
|
|
496
497
|
config: e.object({ text: e.string() }).passthrough()
|
|
497
|
-
}),
|
|
498
|
+
}), D = w.extend({
|
|
498
499
|
category: e.literal("FIELD"),
|
|
499
500
|
type: e.literal("LEGAL"),
|
|
500
501
|
required: e.boolean().optional(),
|
|
501
502
|
sensitive: e.boolean().optional(),
|
|
502
503
|
config: e.object({ text: e.string() }).passthrough()
|
|
503
|
-
}),
|
|
504
|
+
}), O = w.extend({
|
|
504
505
|
category: e.literal("FIELD"),
|
|
505
506
|
type: e.union([
|
|
506
507
|
e.literal("TEXT"),
|
|
@@ -520,40 +521,40 @@ var t = e.object({
|
|
|
520
521
|
label: e.string().optional(),
|
|
521
522
|
placeholder: e.string().optional()
|
|
522
523
|
}).passthrough()
|
|
523
|
-
}),
|
|
524
|
+
}), k = e.object({
|
|
524
525
|
id: e.string(),
|
|
525
526
|
category: e.string(),
|
|
526
527
|
type: e.string()
|
|
527
|
-
}).passthrough(),
|
|
528
|
+
}).passthrough(), A = e.union([
|
|
529
|
+
T,
|
|
530
|
+
E,
|
|
528
531
|
D,
|
|
529
532
|
O,
|
|
530
|
-
k
|
|
531
|
-
|
|
532
|
-
j
|
|
533
|
-
]), Fe = /* @__PURE__ */ function(e) {
|
|
533
|
+
k
|
|
534
|
+
]), Le = /* @__PURE__ */ function(e) {
|
|
534
535
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
535
|
-
}({}),
|
|
536
|
+
}({}), j = e.object({
|
|
536
537
|
id: e.string(),
|
|
537
538
|
type: e.literal("STEP"),
|
|
538
|
-
coordinates:
|
|
539
|
+
coordinates: x,
|
|
539
540
|
alias: e.string().optional(),
|
|
540
541
|
config: e.object({
|
|
541
|
-
components: e.array(
|
|
542
|
+
components: e.array(A),
|
|
542
543
|
next_node: e.string()
|
|
543
544
|
}).passthrough()
|
|
544
|
-
}),
|
|
545
|
+
}), M = e.object({
|
|
545
546
|
id: e.string(),
|
|
546
547
|
type: e.literal("FLOW"),
|
|
547
|
-
coordinates:
|
|
548
|
+
coordinates: x,
|
|
548
549
|
alias: e.string().optional(),
|
|
549
550
|
config: e.object({
|
|
550
551
|
flow_id: e.string(),
|
|
551
552
|
next_node: e.string()
|
|
552
553
|
})
|
|
553
|
-
}),
|
|
554
|
+
}), N = e.object({
|
|
554
555
|
id: e.string(),
|
|
555
556
|
type: e.literal("ACTION"),
|
|
556
|
-
coordinates:
|
|
557
|
+
coordinates: x,
|
|
557
558
|
alias: e.string().optional(),
|
|
558
559
|
config: e.object({
|
|
559
560
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -565,41 +566,41 @@ var t = e.object({
|
|
|
565
566
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
566
567
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
567
568
|
}).passthrough()
|
|
568
|
-
}),
|
|
569
|
+
}), P = e.object({
|
|
569
570
|
id: e.string(),
|
|
570
571
|
type: e.string(),
|
|
571
|
-
coordinates:
|
|
572
|
-
}).passthrough(),
|
|
572
|
+
coordinates: x
|
|
573
|
+
}).passthrough(), F = e.union([
|
|
574
|
+
j,
|
|
575
|
+
M,
|
|
573
576
|
N,
|
|
574
|
-
P
|
|
575
|
-
|
|
576
|
-
I
|
|
577
|
-
]), Ie = e.object({
|
|
577
|
+
P
|
|
578
|
+
]), Re = e.object({
|
|
578
579
|
next_node: e.string(),
|
|
579
|
-
coordinates:
|
|
580
|
-
}).passthrough(),
|
|
580
|
+
coordinates: x
|
|
581
|
+
}).passthrough(), ze = e.object({
|
|
581
582
|
resume_flow: e.boolean().optional(),
|
|
582
|
-
coordinates:
|
|
583
|
-
}).passthrough(),
|
|
583
|
+
coordinates: x
|
|
584
|
+
}).passthrough(), Be = e.object({
|
|
584
585
|
id: e.string(),
|
|
585
586
|
name: e.string(),
|
|
586
587
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
587
|
-
nodes: e.array(
|
|
588
|
-
start:
|
|
589
|
-
ending:
|
|
588
|
+
nodes: e.array(F),
|
|
589
|
+
start: Re,
|
|
590
|
+
ending: ze,
|
|
590
591
|
created_at: e.string(),
|
|
591
592
|
updated_at: e.string(),
|
|
592
593
|
links: e.object({
|
|
593
594
|
sdkSrc: e.string().optional(),
|
|
594
595
|
sdk_src: e.string().optional()
|
|
595
596
|
}).passthrough()
|
|
596
|
-
}).passthrough(),
|
|
597
|
+
}).passthrough(), Ve = Be.omit({
|
|
597
598
|
id: !0,
|
|
598
599
|
created_at: !0,
|
|
599
600
|
updated_at: !0
|
|
600
|
-
}),
|
|
601
|
+
}), I = /* @__PURE__ */ function(e) {
|
|
601
602
|
return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
|
|
602
|
-
}({}),
|
|
603
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
603
604
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
604
605
|
}({}), He = /* @__PURE__ */ function(e) {
|
|
605
606
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
@@ -613,8 +614,8 @@ var t = e.object({
|
|
|
613
614
|
}), Ge = e.object({
|
|
614
615
|
client_id: e.string(),
|
|
615
616
|
act_as: e.string().optional(),
|
|
616
|
-
response_type: e.nativeEnum(
|
|
617
|
-
response_mode: e.nativeEnum(
|
|
617
|
+
response_type: e.nativeEnum(I).optional(),
|
|
618
|
+
response_mode: e.nativeEnum(L).optional(),
|
|
618
619
|
redirect_uri: e.string().optional(),
|
|
619
620
|
audience: e.string().optional(),
|
|
620
621
|
organization: e.string().optional(),
|
|
@@ -806,8 +807,8 @@ var Ze = e.object({
|
|
|
806
807
|
strategy: e.string(),
|
|
807
808
|
options: e.preprocess((e) => e === null ? {} : R(e), Xe).default({}),
|
|
808
809
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
809
|
-
response_type: e.
|
|
810
|
-
response_mode: e.
|
|
810
|
+
response_type: e.nativeEnum(I).optional(),
|
|
811
|
+
response_mode: e.nativeEnum(L).optional(),
|
|
811
812
|
is_domain_connection: e.boolean().optional(),
|
|
812
813
|
show_as_button: e.boolean().optional(),
|
|
813
814
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
@@ -1001,7 +1002,9 @@ var Ze = e.object({
|
|
|
1001
1002
|
type: e.literal("EMAIL"),
|
|
1002
1003
|
config: e.object({
|
|
1003
1004
|
placeholder: e.string().optional(),
|
|
1004
|
-
default_value: e.string().optional()
|
|
1005
|
+
default_value: e.string().optional(),
|
|
1006
|
+
last_used: e.boolean().optional(),
|
|
1007
|
+
last_used_label: e.string().optional()
|
|
1005
1008
|
}).optional()
|
|
1006
1009
|
}), Ct = U.extend({
|
|
1007
1010
|
type: e.literal("FILE"),
|
|
@@ -1049,7 +1052,9 @@ var Ze = e.object({
|
|
|
1049
1052
|
strategy: e.string().optional(),
|
|
1050
1053
|
display_name: e.string().optional(),
|
|
1051
1054
|
icon_url: e.string().optional(),
|
|
1052
|
-
href: e.string().optional()
|
|
1055
|
+
href: e.string().optional(),
|
|
1056
|
+
last_used: e.boolean().optional(),
|
|
1057
|
+
last_used_label: e.string().optional()
|
|
1053
1058
|
})).optional()
|
|
1054
1059
|
}).optional()
|
|
1055
1060
|
}), kt = U.extend({
|
|
@@ -1066,7 +1071,9 @@ var Ze = e.object({
|
|
|
1066
1071
|
placeholder: e.string().optional(),
|
|
1067
1072
|
multiline: e.boolean().optional(),
|
|
1068
1073
|
max_length: e.number().optional(),
|
|
1069
|
-
default_value: e.string().optional()
|
|
1074
|
+
default_value: e.string().optional(),
|
|
1075
|
+
last_used: e.boolean().optional(),
|
|
1076
|
+
last_used_label: e.string().optional()
|
|
1070
1077
|
}).optional()
|
|
1071
1078
|
}), jt = U.extend({
|
|
1072
1079
|
type: e.literal("COUNTRY"),
|
|
@@ -2311,6 +2318,7 @@ var gr = e.object({
|
|
|
2311
2318
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2312
2319
|
identifier_first: e.boolean().default(!0),
|
|
2313
2320
|
password_first: e.boolean().default(!1),
|
|
2321
|
+
show_last_used_connection: e.boolean().default(!1),
|
|
2314
2322
|
webauthn_platform_first_factor: e.boolean()
|
|
2315
2323
|
}), wr = e.object({
|
|
2316
2324
|
hosts: e.array(e.string()).optional(),
|
|
@@ -2336,12 +2344,35 @@ var gr = e.object({
|
|
|
2336
2344
|
id: !0,
|
|
2337
2345
|
custom_domain_id: !0
|
|
2338
2346
|
}), Or = e.object({
|
|
2347
|
+
scim: e.string(),
|
|
2348
|
+
auth0: e.string()
|
|
2349
|
+
}), kr = e.object({
|
|
2350
|
+
connection_id: e.string(),
|
|
2351
|
+
user_id_attribute: e.string().default("externalId"),
|
|
2352
|
+
mapping: e.array(Or).default([])
|
|
2353
|
+
}), Ar = e.object({
|
|
2354
|
+
created_at: e.string(),
|
|
2355
|
+
updated_at: e.string()
|
|
2356
|
+
}).extend(kr.shape), jr = e.object({
|
|
2357
|
+
token_id: e.string(),
|
|
2358
|
+
connection_id: e.string(),
|
|
2359
|
+
token_hash: e.string(),
|
|
2360
|
+
scopes: e.array(e.string()).default([]),
|
|
2361
|
+
valid_until: e.string().optional()
|
|
2362
|
+
}), Mr = e.object({
|
|
2363
|
+
created_at: e.string(),
|
|
2364
|
+
last_used_at: e.string().optional()
|
|
2365
|
+
}).extend(jr.shape), Nr = e.object({
|
|
2366
|
+
connection_id: e.string(),
|
|
2367
|
+
external_id: e.string(),
|
|
2368
|
+
user_id: e.string()
|
|
2369
|
+
}), Pr = e.object({ created_at: e.string() }).extend(Nr.shape), Fr = e.object({
|
|
2339
2370
|
name: e.string(),
|
|
2340
2371
|
enabled: e.boolean().optional().default(!0),
|
|
2341
2372
|
default_from_address: e.string().optional(),
|
|
2342
2373
|
credentials: e.record(e.string(), e.unknown()),
|
|
2343
2374
|
settings: e.object({}).optional()
|
|
2344
|
-
}),
|
|
2375
|
+
}), Ir = e.enum([
|
|
2345
2376
|
"verify_email",
|
|
2346
2377
|
"verify_email_by_code",
|
|
2347
2378
|
"reset_email",
|
|
@@ -2354,8 +2385,8 @@ var gr = e.object({
|
|
|
2354
2385
|
"change_password",
|
|
2355
2386
|
"password_reset",
|
|
2356
2387
|
"user_invitation"
|
|
2357
|
-
]),
|
|
2358
|
-
template:
|
|
2388
|
+
]), Lr = e.object({
|
|
2389
|
+
template: Ir,
|
|
2359
2390
|
body: e.string(),
|
|
2360
2391
|
from: e.string(),
|
|
2361
2392
|
subject: e.string(),
|
|
@@ -2364,7 +2395,7 @@ var gr = e.object({
|
|
|
2364
2395
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2365
2396
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2366
2397
|
enabled: e.boolean().default(!0)
|
|
2367
|
-
}),
|
|
2398
|
+
}), Rr = e.object({
|
|
2368
2399
|
id: e.string(),
|
|
2369
2400
|
login_id: e.string(),
|
|
2370
2401
|
user_id: e.string(),
|
|
@@ -2383,19 +2414,19 @@ var gr = e.object({
|
|
|
2383
2414
|
family_id: e.string().optional(),
|
|
2384
2415
|
rotated_to: e.string().optional(),
|
|
2385
2416
|
rotated_at: e.string().optional()
|
|
2386
|
-
}),
|
|
2417
|
+
}), zr = Rr.extend({
|
|
2387
2418
|
created_at: e.string(),
|
|
2388
2419
|
revoked_at: e.string().optional()
|
|
2389
|
-
}),
|
|
2420
|
+
}), Br = e.object({
|
|
2390
2421
|
to: e.string(),
|
|
2391
2422
|
message: e.string()
|
|
2392
|
-
}),
|
|
2423
|
+
}), Vr = e.object({
|
|
2393
2424
|
name: e.string(),
|
|
2394
2425
|
options: e.object({})
|
|
2395
|
-
}),
|
|
2426
|
+
}), Hr = e.object({
|
|
2396
2427
|
value: e.string(),
|
|
2397
2428
|
description: e.string().optional()
|
|
2398
|
-
}),
|
|
2429
|
+
}), Ur = e.object({
|
|
2399
2430
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2400
2431
|
enforce_policies: e.boolean().optional(),
|
|
2401
2432
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2403,11 +2434,11 @@ var gr = e.object({
|
|
|
2403
2434
|
persist_client_authorization: e.boolean().optional(),
|
|
2404
2435
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2405
2436
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2406
|
-
}),
|
|
2437
|
+
}), Wr = e.object({
|
|
2407
2438
|
id: e.string().optional(),
|
|
2408
2439
|
name: e.string(),
|
|
2409
2440
|
identifier: e.string(),
|
|
2410
|
-
scopes: e.array(
|
|
2441
|
+
scopes: e.array(Hr).optional(),
|
|
2411
2442
|
signing_alg: e.string().optional(),
|
|
2412
2443
|
signing_secret: e.string().optional(),
|
|
2413
2444
|
token_lifetime: e.number().default(86400),
|
|
@@ -2415,37 +2446,37 @@ var gr = e.object({
|
|
|
2415
2446
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2416
2447
|
allow_offline_access: e.boolean().optional(),
|
|
2417
2448
|
verificationKey: e.string().optional(),
|
|
2418
|
-
options:
|
|
2449
|
+
options: Ur.optional(),
|
|
2419
2450
|
is_system: e.boolean().optional(),
|
|
2420
2451
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2421
|
-
}),
|
|
2452
|
+
}), Gr = Wr.extend({
|
|
2422
2453
|
created_at: e.string().optional(),
|
|
2423
2454
|
updated_at: e.string().optional()
|
|
2424
|
-
}),
|
|
2455
|
+
}), Kr = e.array(Gr), qr = e.object({
|
|
2425
2456
|
role_id: e.string(),
|
|
2426
2457
|
resource_server_identifier: e.string(),
|
|
2427
2458
|
permission_name: e.string()
|
|
2428
|
-
}),
|
|
2459
|
+
}), Jr = qr.extend({ created_at: e.string() }), Yr = e.array(Jr), Xr = e.object({
|
|
2429
2460
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2430
2461
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2431
2462
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2432
2463
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2433
|
-
}),
|
|
2464
|
+
}), Zr = Xr.extend({ id: e.string() }), Qr = e.object({
|
|
2434
2465
|
user_id: e.string(),
|
|
2435
2466
|
last_login: e.string().optional(),
|
|
2436
2467
|
last_ip: e.string().optional(),
|
|
2437
2468
|
login_count: e.number().default(0),
|
|
2438
2469
|
failed_logins: e.array(e.string()).optional(),
|
|
2439
2470
|
last_password_reset: e.string().optional()
|
|
2440
|
-
}),
|
|
2471
|
+
}), $r = e.object({
|
|
2441
2472
|
user_id: e.string(),
|
|
2442
2473
|
resource_server_identifier: e.string(),
|
|
2443
2474
|
permission_name: e.string(),
|
|
2444
2475
|
organization_id: e.string().optional()
|
|
2445
|
-
}),
|
|
2476
|
+
}), ei = $r.extend({
|
|
2446
2477
|
tenant_id: e.string(),
|
|
2447
2478
|
created_at: e.string().optional()
|
|
2448
|
-
}),
|
|
2479
|
+
}), ti = e.array(ei), ni = e.object({
|
|
2449
2480
|
user_id: e.string(),
|
|
2450
2481
|
resource_server_identifier: e.string(),
|
|
2451
2482
|
resource_server_name: e.string(),
|
|
@@ -2453,65 +2484,65 @@ var gr = e.object({
|
|
|
2453
2484
|
description: e.string().nullable().optional(),
|
|
2454
2485
|
created_at: e.string().optional(),
|
|
2455
2486
|
organization_id: e.string().optional()
|
|
2456
|
-
}),
|
|
2487
|
+
}), ri = e.array(ni), ii = e.object({
|
|
2457
2488
|
user_id: e.string(),
|
|
2458
2489
|
role_id: e.string(),
|
|
2459
2490
|
organization_id: e.string().optional()
|
|
2460
|
-
}),
|
|
2491
|
+
}), ai = ii.extend({
|
|
2461
2492
|
tenant_id: e.string(),
|
|
2462
2493
|
created_at: e.string().optional()
|
|
2463
|
-
}),
|
|
2494
|
+
}), oi = e.array(ai), si = e.object({
|
|
2464
2495
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2465
2496
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2466
2497
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2467
2498
|
is_system: e.boolean().optional(),
|
|
2468
2499
|
metadata: e.record(e.string(), e.any()).optional().openapi({ description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios." })
|
|
2469
|
-
}),
|
|
2500
|
+
}), ci = si.extend({
|
|
2470
2501
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2471
2502
|
created_at: e.string().optional(),
|
|
2472
2503
|
updated_at: e.string().optional()
|
|
2473
|
-
}),
|
|
2504
|
+
}), li = e.array(ci), ui = e.object({
|
|
2474
2505
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2475
2506
|
colors: e.object({
|
|
2476
2507
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2477
2508
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2478
2509
|
}).optional()
|
|
2479
|
-
}).optional(),
|
|
2510
|
+
}).optional(), di = e.object({
|
|
2480
2511
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2481
2512
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2482
2513
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2483
2514
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2484
|
-
}),
|
|
2515
|
+
}), fi = e.object({ client_credentials: e.object({
|
|
2485
2516
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2486
2517
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2487
2518
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2488
|
-
}).optional() }).optional(),
|
|
2519
|
+
}).optional() }).optional(), pi = e.object({
|
|
2489
2520
|
id: e.string().optional(),
|
|
2490
2521
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
2491
2522
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2492
|
-
branding:
|
|
2523
|
+
branding: ui,
|
|
2493
2524
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2494
|
-
enabled_connections: e.array(
|
|
2495
|
-
token_quota:
|
|
2496
|
-
}),
|
|
2525
|
+
enabled_connections: e.array(di).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2526
|
+
token_quota: fi
|
|
2527
|
+
}), mi = pi.extend(t.shape).extend({
|
|
2497
2528
|
id: e.string(),
|
|
2498
2529
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2499
|
-
}),
|
|
2530
|
+
}), hi = e.object({
|
|
2500
2531
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2501
2532
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2502
2533
|
show_as_button: e.boolean().optional().default(!0),
|
|
2503
2534
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2504
|
-
}),
|
|
2535
|
+
}), gi = hi.extend({
|
|
2505
2536
|
connection: e.object({
|
|
2506
2537
|
name: e.string().optional(),
|
|
2507
2538
|
strategy: e.string().optional()
|
|
2508
2539
|
}).optional(),
|
|
2509
2540
|
created_at: e.string().optional(),
|
|
2510
2541
|
updated_at: e.string().optional()
|
|
2511
|
-
}),
|
|
2542
|
+
}), _i = e.array(gi), vi = e.object({
|
|
2512
2543
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2513
2544
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2514
|
-
}),
|
|
2545
|
+
}), yi = vi.extend(t.shape).extend({ id: e.string() }), bi = e.object({
|
|
2515
2546
|
idle_session_lifetime: e.number().default(72),
|
|
2516
2547
|
session_lifetime: e.number().default(168),
|
|
2517
2548
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2590,7 +2621,7 @@ var gr = e.object({
|
|
|
2590
2621
|
}).optional(),
|
|
2591
2622
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2592
2623
|
}).optional()
|
|
2593
|
-
}),
|
|
2624
|
+
}), xi = e.object({
|
|
2594
2625
|
date: e.string().openapi({
|
|
2595
2626
|
description: "Date these events occurred in ISO 8601 format",
|
|
2596
2627
|
example: "2025-12-19"
|
|
@@ -2615,10 +2646,10 @@ var gr = e.object({
|
|
|
2615
2646
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2616
2647
|
example: "2025-12-19T00:00:00.000Z"
|
|
2617
2648
|
})
|
|
2618
|
-
}),
|
|
2649
|
+
}), Si = e.number().openapi({
|
|
2619
2650
|
description: "Number of active users in the last 30 days",
|
|
2620
2651
|
example: 1234
|
|
2621
|
-
}),
|
|
2652
|
+
}), Ci = e.enum([
|
|
2622
2653
|
"active-users",
|
|
2623
2654
|
"logins",
|
|
2624
2655
|
"signups",
|
|
@@ -2630,46 +2661,46 @@ var gr = e.object({
|
|
|
2630
2661
|
"mfa",
|
|
2631
2662
|
"email-verifications",
|
|
2632
2663
|
"codes-sent"
|
|
2633
|
-
]),
|
|
2664
|
+
]), wi = e.enum([
|
|
2634
2665
|
"hour",
|
|
2635
2666
|
"day",
|
|
2636
2667
|
"week",
|
|
2637
2668
|
"month"
|
|
2638
|
-
]),
|
|
2669
|
+
]), Ti = e.enum([
|
|
2639
2670
|
"time",
|
|
2640
2671
|
"connection",
|
|
2641
2672
|
"client_id",
|
|
2642
2673
|
"user_type",
|
|
2643
2674
|
"event"
|
|
2644
|
-
]),
|
|
2675
|
+
]), Ei = e.enum([
|
|
2645
2676
|
"password",
|
|
2646
2677
|
"social",
|
|
2647
2678
|
"passwordless",
|
|
2648
2679
|
"enterprise"
|
|
2649
|
-
]),
|
|
2680
|
+
]), Di = e.object({
|
|
2650
2681
|
name: e.string(),
|
|
2651
2682
|
type: e.string()
|
|
2652
|
-
}),
|
|
2683
|
+
}), Oi = e.object({
|
|
2653
2684
|
elapsed: e.number(),
|
|
2654
2685
|
rows_read: e.number().optional(),
|
|
2655
2686
|
bytes_read: e.number().optional()
|
|
2656
|
-
}),
|
|
2657
|
-
meta: e.array(
|
|
2687
|
+
}), ki = e.object({
|
|
2688
|
+
meta: e.array(Di),
|
|
2658
2689
|
data: e.array(e.record(e.string(), e.any())),
|
|
2659
2690
|
rows: e.number(),
|
|
2660
2691
|
rows_before_limit_at_least: e.number().optional(),
|
|
2661
|
-
statistics:
|
|
2662
|
-
}),
|
|
2692
|
+
statistics: Oi.optional()
|
|
2693
|
+
}), Ai = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), ji = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2663
2694
|
type: "object",
|
|
2664
2695
|
additionalProperties: {
|
|
2665
2696
|
type: "object",
|
|
2666
2697
|
additionalProperties: { type: "string" }
|
|
2667
2698
|
}
|
|
2668
|
-
}),
|
|
2669
|
-
prompt:
|
|
2699
|
+
}), Mi = e.object({
|
|
2700
|
+
prompt: Ai,
|
|
2670
2701
|
language: e.string(),
|
|
2671
|
-
custom_text:
|
|
2672
|
-
}),
|
|
2702
|
+
custom_text: ji
|
|
2703
|
+
}), Ni = {
|
|
2673
2704
|
EMAIL: "email",
|
|
2674
2705
|
SMS: "sms",
|
|
2675
2706
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2685,17 +2716,17 @@ var gr = e.object({
|
|
|
2685
2716
|
WAAD: "waad",
|
|
2686
2717
|
ADFS: "adfs",
|
|
2687
2718
|
OKTA: "okta"
|
|
2688
|
-
},
|
|
2719
|
+
}, Pi = {
|
|
2689
2720
|
DATABASE: "database",
|
|
2690
2721
|
SOCIAL: "social",
|
|
2691
2722
|
PASSWORDLESS: "passwordless"
|
|
2692
|
-
},
|
|
2693
|
-
function
|
|
2694
|
-
return e === "auth0" || e ===
|
|
2723
|
+
}, Fi = "auth0";
|
|
2724
|
+
function Ii(e) {
|
|
2725
|
+
return e === "auth0" || e === Ni.USERNAME_PASSWORD || e === "auth2";
|
|
2695
2726
|
}
|
|
2696
2727
|
//#endregion
|
|
2697
2728
|
//#region src/types/AuthenticationMethod.ts
|
|
2698
|
-
var
|
|
2729
|
+
var Li = e.enum([
|
|
2699
2730
|
"phone",
|
|
2700
2731
|
"totp",
|
|
2701
2732
|
"email",
|
|
@@ -2703,9 +2734,9 @@ var Ai = e.enum([
|
|
|
2703
2734
|
"webauthn-roaming",
|
|
2704
2735
|
"webauthn-platform",
|
|
2705
2736
|
"passkey"
|
|
2706
|
-
]),
|
|
2737
|
+
]), Ri = e.object({
|
|
2707
2738
|
user_id: e.string(),
|
|
2708
|
-
type:
|
|
2739
|
+
type: Li,
|
|
2709
2740
|
phone_number: e.string().optional(),
|
|
2710
2741
|
totp_secret: e.string().optional(),
|
|
2711
2742
|
credential_id: e.string().optional(),
|
|
@@ -2716,7 +2747,7 @@ var Ai = e.enum([
|
|
|
2716
2747
|
friendly_name: e.string().optional(),
|
|
2717
2748
|
confirmed: e.boolean().default(!1)
|
|
2718
2749
|
});
|
|
2719
|
-
function
|
|
2750
|
+
function zi(t, n) {
|
|
2720
2751
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2721
2752
|
code: e.ZodIssueCode.custom,
|
|
2722
2753
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2739,15 +2770,15 @@ function Mi(t, n) {
|
|
|
2739
2770
|
path: ["public_key"]
|
|
2740
2771
|
}));
|
|
2741
2772
|
}
|
|
2742
|
-
var
|
|
2773
|
+
var Bi = Ri.superRefine(zi), Vi = Ri.extend({
|
|
2743
2774
|
id: e.string(),
|
|
2744
2775
|
created_at: e.string(),
|
|
2745
2776
|
updated_at: e.string()
|
|
2746
|
-
}).superRefine(
|
|
2777
|
+
}).superRefine(zi), Hi = e.object({
|
|
2747
2778
|
id: e.string().optional(),
|
|
2748
2779
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2749
2780
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2750
|
-
}),
|
|
2781
|
+
}), Ui = {
|
|
2751
2782
|
"post-user-login": {
|
|
2752
2783
|
accessToken: ["setCustomClaim"],
|
|
2753
2784
|
idToken: ["setCustomClaim"],
|
|
@@ -2769,7 +2800,7 @@ var Ni = ji.superRefine(Mi), Pi = ji.extend({
|
|
|
2769
2800
|
};
|
|
2770
2801
|
//#endregion
|
|
2771
2802
|
//#region src/utils/user-id.ts
|
|
2772
|
-
function
|
|
2803
|
+
function Wi(e) {
|
|
2773
2804
|
let [t, n] = e.split("|");
|
|
2774
2805
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2775
2806
|
return {
|
|
@@ -2779,7 +2810,7 @@ function Li(e) {
|
|
|
2779
2810
|
}
|
|
2780
2811
|
//#endregion
|
|
2781
2812
|
//#region src/utils/passthrough.ts
|
|
2782
|
-
function
|
|
2813
|
+
function Gi(e) {
|
|
2783
2814
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2784
2815
|
"create",
|
|
2785
2816
|
"rawCreate",
|
|
@@ -2813,12 +2844,12 @@ function Ri(e) {
|
|
|
2813
2844
|
} : i.bind(e) : i;
|
|
2814
2845
|
} });
|
|
2815
2846
|
}
|
|
2816
|
-
function
|
|
2847
|
+
function Ki(e) {
|
|
2817
2848
|
return e;
|
|
2818
2849
|
}
|
|
2819
2850
|
//#endregion
|
|
2820
2851
|
//#region src/utils/connection-attributes.ts
|
|
2821
|
-
function
|
|
2852
|
+
function qi(e) {
|
|
2822
2853
|
let t = e?.options;
|
|
2823
2854
|
if (!t) return {
|
|
2824
2855
|
usernameIdentifierActive: !1,
|
|
@@ -2841,35 +2872,35 @@ function Bi(e) {
|
|
|
2841
2872
|
}
|
|
2842
2873
|
//#endregion
|
|
2843
2874
|
//#region src/utils/guards.ts
|
|
2844
|
-
function
|
|
2875
|
+
function Ji(e) {
|
|
2845
2876
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2846
2877
|
}
|
|
2847
2878
|
//#endregion
|
|
2848
2879
|
//#region src/utils/base64url.ts
|
|
2849
|
-
function
|
|
2880
|
+
function Yi(e) {
|
|
2850
2881
|
let t = "";
|
|
2851
2882
|
for (let n of e) t += String.fromCharCode(n);
|
|
2852
2883
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2853
2884
|
}
|
|
2854
|
-
function
|
|
2885
|
+
function Xi(e) {
|
|
2855
2886
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2856
2887
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2857
2888
|
return r;
|
|
2858
2889
|
}
|
|
2859
|
-
function
|
|
2860
|
-
return
|
|
2890
|
+
function Zi(e) {
|
|
2891
|
+
return Yi(new TextEncoder().encode(e));
|
|
2861
2892
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return new TextDecoder().decode(
|
|
2893
|
+
function Qi(e) {
|
|
2894
|
+
return new TextDecoder().decode(Xi(e));
|
|
2864
2895
|
}
|
|
2865
2896
|
//#endregion
|
|
2866
2897
|
//#region src/utils/base64.ts
|
|
2867
|
-
function
|
|
2898
|
+
function $i(e) {
|
|
2868
2899
|
let t = "";
|
|
2869
2900
|
for (let n of e) t += String.fromCharCode(n);
|
|
2870
2901
|
return btoa(t);
|
|
2871
2902
|
}
|
|
2872
|
-
function
|
|
2903
|
+
function ea(e) {
|
|
2873
2904
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2874
2905
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2875
2906
|
return n;
|
|
@@ -2877,12 +2908,12 @@ function qi(e) {
|
|
|
2877
2908
|
//#endregion
|
|
2878
2909
|
//#region src/utils/base32.ts
|
|
2879
2910
|
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2880
|
-
function
|
|
2911
|
+
function ta(e) {
|
|
2881
2912
|
let t = "", n = 0, r = 0;
|
|
2882
2913
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += $[n >> r & 31];
|
|
2883
2914
|
return r > 0 && (t += $[n << 5 - r & 31]), t;
|
|
2884
2915
|
}
|
|
2885
|
-
function
|
|
2916
|
+
function na(e) {
|
|
2886
2917
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2887
2918
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2888
2919
|
let r = [], i = 0, a = 0;
|
|
@@ -2896,19 +2927,19 @@ function Yi(e) {
|
|
|
2896
2927
|
}
|
|
2897
2928
|
//#endregion
|
|
2898
2929
|
//#region src/utils/hex.ts
|
|
2899
|
-
function
|
|
2930
|
+
function ra(e) {
|
|
2900
2931
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2901
2932
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2902
2933
|
return n;
|
|
2903
2934
|
}
|
|
2904
2935
|
//#endregion
|
|
2905
2936
|
//#region src/utils/cursor.ts
|
|
2906
|
-
function
|
|
2907
|
-
return
|
|
2937
|
+
function ia(e) {
|
|
2938
|
+
return Zi(JSON.stringify(e));
|
|
2908
2939
|
}
|
|
2909
|
-
function
|
|
2940
|
+
function aa(e) {
|
|
2910
2941
|
try {
|
|
2911
|
-
let t = JSON.parse(
|
|
2942
|
+
let t = JSON.parse(Qi(e));
|
|
2912
2943
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
2913
2944
|
} catch {
|
|
2914
2945
|
return null;
|
|
@@ -2916,7 +2947,7 @@ function Qi(e) {
|
|
|
2916
2947
|
}
|
|
2917
2948
|
//#endregion
|
|
2918
2949
|
//#region src/utils/lucene.ts
|
|
2919
|
-
function
|
|
2950
|
+
function oa(e, t) {
|
|
2920
2951
|
let n = new Set(t), r = (e) => {
|
|
2921
2952
|
let t = [], r = "", i = !1;
|
|
2922
2953
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2933,4 +2964,4 @@ function $i(e, t) {
|
|
|
2933
2964
|
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
2934
2965
|
}
|
|
2935
2966
|
//#endregion
|
|
2936
|
-
export { ve as Auth0ActionEnum, An as Auth0Client,
|
|
2967
|
+
export { ve as Auth0ActionEnum, An as Auth0Client, L as AuthorizationResponseMode, I as AuthorizationResponseType, He as CodeChallengeMethod, C as ComponentCategory, S as ComponentType, Fi as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, It as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, mr as GrantType, jn as LocationInfo, Y as LogTypes, J as LoginSessionState, Le as NodeType, Ce as RedirectTargetEnum, Ni as Strategy, Pi as StrategyType, Ui as TRIGGER_API_SHAPES, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, N as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, Si as activeUsersResponseSchema, le as actorSchema, f as addressSchema, Di as analyticsColumnMetaSchema, Ti as analyticsGroupBySchema, wi as analyticsIntervalSchema, ki as analyticsQueryResponseSchema, Ci as analyticsResourceSchema, Oi as analyticsStatisticsSchema, Ei as analyticsUserTypeSchema, Gn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Ve as auth0FlowInsertSchema, Be as auth0FlowSchema, Oe as auth0QuerySchema, xe as auth0UpdateUserActionSchema, Ae as auth0UserResponseSchema, Ge as authParamsSchema, Bi as authenticationMethodInsertSchema, Vi as authenticationMethodSchema, Li as authenticationMethodTypeSchema, p as baseUserSchema, Nt as blockComponentSchema, gr as bordersSchema, Ke as brandingSchema, Hn as breachedPasswordDetectionSchema, Un as bruteForceProtectionSchema, E as buttonComponentSchema, We as claimsRequestSchema, _ as clientGrantInsertSchema, Fe as clientGrantListSchema, v as clientGrantSchema, g as clientInsertSchema, b as clientRegistrationTokenInsertSchema, Ie as clientRegistrationTokenSchema, y as clientRegistrationTokenTypeSchema, Pe as clientSchema, Je as codeInsertSchema, Ye as codeSchema, qe as codeTypeSchema, _r as colorsSchema, Wt as componentMessageSchema, A as componentSchema, Ze as connectionInsertSchema, Xe as connectionOptionsSchema, Qe as connectionSchema, x as coordinatesSchema, Gi as createPassthroughAdapter, Ki as createWriteOnlyAdapter, rt as customDomainCertificateUploadSchema, z as customDomainInsertSchema, et as customDomainSchema, tt as customDomainUpdateSchema, nt as customDomainWithTenantIdSchema, Mi as customTextEntrySchema, ji as customTextSchema, xi as dailyStatsSchema, na as decodeBase32, ea as decodeBase64, Xi as decodeBase64Url, Qi as decodeBase64UrlString, aa as decodeCursor, Fr as emailProviderSchema, Ir as emailTemplateNameSchema, Lr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, ta as encodeBase32, $i as encodeBase64, Yi as encodeBase64Url, Zi as encodeBase64UrlString, ia as encodeCursor, ra as encodeHex, ze as endingSchema, Ft as fieldComponentSchema, Te as flowActionStepSchema, Ee as flowInsertSchema, De as flowSchema, O as flowsFieldComponentSchema, M as flowsFlowNodeSchema, j as flowsStepNodeSchema, Z as fontDetailsSchema, vr as fontsSchema, Lt as formControlSchema, Ht as formInsertSchema, W as formNodeComponentDefinition, Vt as formNodeSchema, Ut as formSchema, k as genericComponentSchema, P as genericNodeSchema, qi as getConnectionIdentifierConfig, kn as getLogTypeCategory, On as getLogTypeDescription, Xr as grantInsertSchema, Zr as grantSchema, Tr as handlerConfigSchema, fn as hookCodeInsertSchema, pn as hookCodeSchema, on as hookInsertSchema, dn as hookSchema, K as hookTemplateId, en as hookTemplates, d as identitySchema, Hi as importMetadataSchema, gn as inviteInsertSchema, _n as inviteSchema, hn as inviteeSchema, mn as inviterSchema, qt as isBlockComponent, Ii as isDatabaseConnectionStrategy, Yt as isFieldComponent, Ji as isPlainObject, Jt as isWidgetComponent, yn as jwksKeySchema, vn as jwksSchema, D as legalComponentSchema, pe as locationInfoSchema, Mn as logInsertSchema, Nn as logSchema, Fn as logStreamFilterSchema, In as logStreamInsertSchema, Ln as logStreamSchema, X as logStreamStatusSchema, Pn as logStreamTypeSchema, Dn as logTypeCategories, En as logTypeDescriptions, Sn as loginSessionAuthStrategySchema, Cn as loginSessionInsertSchema, wn as loginSessionSchema, xn as loginSessionStateSchema, wr as matchSchema, Rn as migrationProviderTypeSchema, zn as migrationSourceCredentialsSchema, Bn as migrationSourceInsertSchema, Vn as migrationSourceSchema, F as nodeSchema, bn as openIDConfigurationSchema, ui as organizationBrandingSchema, hi as organizationConnectionInsertSchema, _i as organizationConnectionListSchema, gi as organizationConnectionSchema, di as organizationEnabledConnectionSchema, pi as organizationInsertSchema, mi as organizationSchema, fi as organizationTokenQuotaSchema, yr as pageBackgroundSchema, Wi as parseUserId, Kn as passwordInsertSchema, qn as passwordSchema, u as profileDataSchema, Ai as promptScreenSchema, Cr as promptSettingSchema, Q as proxyRouteInsertSchema, Er as proxyRouteSchema, Dr as proxyRouteUpdateSchema, we as redirectActionSchema, Rr as refreshTokenInsertSchema, zr as refreshTokenSchema, de as requestContextSchema, Wr as resourceServerInsertSchema, Kr as resourceServerListSchema, Ur as resourceServerOptionsSchema, Gr as resourceServerSchema, Hr as resourceServerScopeSchema, fe as responseContextSchema, T as richTextComponentSchema, si as roleInsertSchema, li as roleListSchema, qr as rolePermissionInsertSchema, Yr as rolePermissionListSchema, Jr as rolePermissionSchema, ci as roleSchema, dr as rolloutInsertSchema, lr as rolloutKindSchema, fr as rolloutSchema, ur as rolloutStatusSchema, pr as rolloutUpdateSchema, oa as sanitizeLuceneQuery, kr as scimConfigurationInsertSchema, Ar as scimConfigurationSchema, Nr as scimExternalIdInsertSchema, Pr as scimExternalIdSchema, Or as scimMappingEntrySchema, jr as scimTokenInsertSchema, Mr as scimTokenSchema, Gt as screenLinkSchema, Yn as sessionInsertSchema, Xn as sessionSchema, Zn as signingKeySchema, Vr as smsProviderSchema, Br as smsSendParamsSchema, Re as startSchema, Wn as suspiciousIpThrottlingSchema, ue as targetSchema, Qn as tenantInsertSchema, nr as tenantOperationEngineSchema, sr as tenantOperationEventInsertSchema, or as tenantOperationEventOutcomeSchema, cr as tenantOperationEventSchema, rr as tenantOperationInsertSchema, er as tenantOperationKindSchema, ir as tenantOperationSchema, tr as tenantOperationStatusSchema, ar as tenantOperationUpdateSchema, $n as tenantSchema, bi as tenantSettingsSchema, xr as themeInsertSchema, Sr as themeSchema, hr as tokenResponseSchema, ke as totalsSchema, Kt as uiScreenSchema, Qr as userActivitySchema, m as userInsertSchema, vi as userOrganizationInsertSchema, yi as userOrganizationSchema, $r as userPermissionInsertSchema, ti as userPermissionListSchema, ei as userPermissionSchema, ri as userPermissionWithDetailsListSchema, ni as userPermissionWithDetailsSchema, je as userResponseSchema, ii as userRoleInsertSchema, oi as userRoleListSchema, ai as userRoleSchema, h as userSchema, $e as verificationMethodsSchema, Pt as widgetComponentSchema, br as widgetSchema };
|