@authhero/adapter-interfaces 4.3.0 → 4.4.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 +130 -6
- package/dist/adapter-interfaces.mjs +182 -155
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- 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 +16 -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(),
|
|
@@ -1049,7 +1050,9 @@ var Ze = e.object({
|
|
|
1049
1050
|
strategy: e.string().optional(),
|
|
1050
1051
|
display_name: e.string().optional(),
|
|
1051
1052
|
icon_url: e.string().optional(),
|
|
1052
|
-
href: e.string().optional()
|
|
1053
|
+
href: e.string().optional(),
|
|
1054
|
+
last_used: e.boolean().optional(),
|
|
1055
|
+
last_used_label: e.string().optional()
|
|
1053
1056
|
})).optional()
|
|
1054
1057
|
}).optional()
|
|
1055
1058
|
}), kt = U.extend({
|
|
@@ -2311,6 +2314,7 @@ var gr = e.object({
|
|
|
2311
2314
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2312
2315
|
identifier_first: e.boolean().default(!0),
|
|
2313
2316
|
password_first: e.boolean().default(!1),
|
|
2317
|
+
show_last_used_connection: e.boolean().default(!1),
|
|
2314
2318
|
webauthn_platform_first_factor: e.boolean()
|
|
2315
2319
|
}), wr = e.object({
|
|
2316
2320
|
hosts: e.array(e.string()).optional(),
|
|
@@ -2336,12 +2340,35 @@ var gr = e.object({
|
|
|
2336
2340
|
id: !0,
|
|
2337
2341
|
custom_domain_id: !0
|
|
2338
2342
|
}), Or = e.object({
|
|
2343
|
+
scim: e.string(),
|
|
2344
|
+
auth0: e.string()
|
|
2345
|
+
}), kr = e.object({
|
|
2346
|
+
connection_id: e.string(),
|
|
2347
|
+
user_id_attribute: e.string().default("externalId"),
|
|
2348
|
+
mapping: e.array(Or).default([])
|
|
2349
|
+
}), Ar = e.object({
|
|
2350
|
+
created_at: e.string(),
|
|
2351
|
+
updated_at: e.string()
|
|
2352
|
+
}).extend(kr.shape), jr = e.object({
|
|
2353
|
+
token_id: e.string(),
|
|
2354
|
+
connection_id: e.string(),
|
|
2355
|
+
token_hash: e.string(),
|
|
2356
|
+
scopes: e.array(e.string()).default([]),
|
|
2357
|
+
valid_until: e.string().optional()
|
|
2358
|
+
}), Mr = e.object({
|
|
2359
|
+
created_at: e.string(),
|
|
2360
|
+
last_used_at: e.string().optional()
|
|
2361
|
+
}).extend(jr.shape), Nr = e.object({
|
|
2362
|
+
connection_id: e.string(),
|
|
2363
|
+
external_id: e.string(),
|
|
2364
|
+
user_id: e.string()
|
|
2365
|
+
}), Pr = e.object({ created_at: e.string() }).extend(Nr.shape), Fr = e.object({
|
|
2339
2366
|
name: e.string(),
|
|
2340
2367
|
enabled: e.boolean().optional().default(!0),
|
|
2341
2368
|
default_from_address: e.string().optional(),
|
|
2342
2369
|
credentials: e.record(e.string(), e.unknown()),
|
|
2343
2370
|
settings: e.object({}).optional()
|
|
2344
|
-
}),
|
|
2371
|
+
}), Ir = e.enum([
|
|
2345
2372
|
"verify_email",
|
|
2346
2373
|
"verify_email_by_code",
|
|
2347
2374
|
"reset_email",
|
|
@@ -2354,8 +2381,8 @@ var gr = e.object({
|
|
|
2354
2381
|
"change_password",
|
|
2355
2382
|
"password_reset",
|
|
2356
2383
|
"user_invitation"
|
|
2357
|
-
]),
|
|
2358
|
-
template:
|
|
2384
|
+
]), Lr = e.object({
|
|
2385
|
+
template: Ir,
|
|
2359
2386
|
body: e.string(),
|
|
2360
2387
|
from: e.string(),
|
|
2361
2388
|
subject: e.string(),
|
|
@@ -2364,7 +2391,7 @@ var gr = e.object({
|
|
|
2364
2391
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2365
2392
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2366
2393
|
enabled: e.boolean().default(!0)
|
|
2367
|
-
}),
|
|
2394
|
+
}), Rr = e.object({
|
|
2368
2395
|
id: e.string(),
|
|
2369
2396
|
login_id: e.string(),
|
|
2370
2397
|
user_id: e.string(),
|
|
@@ -2383,19 +2410,19 @@ var gr = e.object({
|
|
|
2383
2410
|
family_id: e.string().optional(),
|
|
2384
2411
|
rotated_to: e.string().optional(),
|
|
2385
2412
|
rotated_at: e.string().optional()
|
|
2386
|
-
}),
|
|
2413
|
+
}), zr = Rr.extend({
|
|
2387
2414
|
created_at: e.string(),
|
|
2388
2415
|
revoked_at: e.string().optional()
|
|
2389
|
-
}),
|
|
2416
|
+
}), Br = e.object({
|
|
2390
2417
|
to: e.string(),
|
|
2391
2418
|
message: e.string()
|
|
2392
|
-
}),
|
|
2419
|
+
}), Vr = e.object({
|
|
2393
2420
|
name: e.string(),
|
|
2394
2421
|
options: e.object({})
|
|
2395
|
-
}),
|
|
2422
|
+
}), Hr = e.object({
|
|
2396
2423
|
value: e.string(),
|
|
2397
2424
|
description: e.string().optional()
|
|
2398
|
-
}),
|
|
2425
|
+
}), Ur = e.object({
|
|
2399
2426
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2400
2427
|
enforce_policies: e.boolean().optional(),
|
|
2401
2428
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2403,11 +2430,11 @@ var gr = e.object({
|
|
|
2403
2430
|
persist_client_authorization: e.boolean().optional(),
|
|
2404
2431
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2405
2432
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2406
|
-
}),
|
|
2433
|
+
}), Wr = e.object({
|
|
2407
2434
|
id: e.string().optional(),
|
|
2408
2435
|
name: e.string(),
|
|
2409
2436
|
identifier: e.string(),
|
|
2410
|
-
scopes: e.array(
|
|
2437
|
+
scopes: e.array(Hr).optional(),
|
|
2411
2438
|
signing_alg: e.string().optional(),
|
|
2412
2439
|
signing_secret: e.string().optional(),
|
|
2413
2440
|
token_lifetime: e.number().default(86400),
|
|
@@ -2415,37 +2442,37 @@ var gr = e.object({
|
|
|
2415
2442
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2416
2443
|
allow_offline_access: e.boolean().optional(),
|
|
2417
2444
|
verificationKey: e.string().optional(),
|
|
2418
|
-
options:
|
|
2445
|
+
options: Ur.optional(),
|
|
2419
2446
|
is_system: e.boolean().optional(),
|
|
2420
2447
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2421
|
-
}),
|
|
2448
|
+
}), Gr = Wr.extend({
|
|
2422
2449
|
created_at: e.string().optional(),
|
|
2423
2450
|
updated_at: e.string().optional()
|
|
2424
|
-
}),
|
|
2451
|
+
}), Kr = e.array(Gr), qr = e.object({
|
|
2425
2452
|
role_id: e.string(),
|
|
2426
2453
|
resource_server_identifier: e.string(),
|
|
2427
2454
|
permission_name: e.string()
|
|
2428
|
-
}),
|
|
2455
|
+
}), Jr = qr.extend({ created_at: e.string() }), Yr = e.array(Jr), Xr = e.object({
|
|
2429
2456
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2430
2457
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2431
2458
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2432
2459
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2433
|
-
}),
|
|
2460
|
+
}), Zr = Xr.extend({ id: e.string() }), Qr = e.object({
|
|
2434
2461
|
user_id: e.string(),
|
|
2435
2462
|
last_login: e.string().optional(),
|
|
2436
2463
|
last_ip: e.string().optional(),
|
|
2437
2464
|
login_count: e.number().default(0),
|
|
2438
2465
|
failed_logins: e.array(e.string()).optional(),
|
|
2439
2466
|
last_password_reset: e.string().optional()
|
|
2440
|
-
}),
|
|
2467
|
+
}), $r = e.object({
|
|
2441
2468
|
user_id: e.string(),
|
|
2442
2469
|
resource_server_identifier: e.string(),
|
|
2443
2470
|
permission_name: e.string(),
|
|
2444
2471
|
organization_id: e.string().optional()
|
|
2445
|
-
}),
|
|
2472
|
+
}), ei = $r.extend({
|
|
2446
2473
|
tenant_id: e.string(),
|
|
2447
2474
|
created_at: e.string().optional()
|
|
2448
|
-
}),
|
|
2475
|
+
}), ti = e.array(ei), ni = e.object({
|
|
2449
2476
|
user_id: e.string(),
|
|
2450
2477
|
resource_server_identifier: e.string(),
|
|
2451
2478
|
resource_server_name: e.string(),
|
|
@@ -2453,65 +2480,65 @@ var gr = e.object({
|
|
|
2453
2480
|
description: e.string().nullable().optional(),
|
|
2454
2481
|
created_at: e.string().optional(),
|
|
2455
2482
|
organization_id: e.string().optional()
|
|
2456
|
-
}),
|
|
2483
|
+
}), ri = e.array(ni), ii = e.object({
|
|
2457
2484
|
user_id: e.string(),
|
|
2458
2485
|
role_id: e.string(),
|
|
2459
2486
|
organization_id: e.string().optional()
|
|
2460
|
-
}),
|
|
2487
|
+
}), ai = ii.extend({
|
|
2461
2488
|
tenant_id: e.string(),
|
|
2462
2489
|
created_at: e.string().optional()
|
|
2463
|
-
}),
|
|
2490
|
+
}), oi = e.array(ai), si = e.object({
|
|
2464
2491
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2465
2492
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2466
2493
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2467
2494
|
is_system: e.boolean().optional(),
|
|
2468
2495
|
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
|
-
}),
|
|
2496
|
+
}), ci = si.extend({
|
|
2470
2497
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2471
2498
|
created_at: e.string().optional(),
|
|
2472
2499
|
updated_at: e.string().optional()
|
|
2473
|
-
}),
|
|
2500
|
+
}), li = e.array(ci), ui = e.object({
|
|
2474
2501
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2475
2502
|
colors: e.object({
|
|
2476
2503
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2477
2504
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2478
2505
|
}).optional()
|
|
2479
|
-
}).optional(),
|
|
2506
|
+
}).optional(), di = e.object({
|
|
2480
2507
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2481
2508
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2482
2509
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2483
2510
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2484
|
-
}),
|
|
2511
|
+
}), fi = e.object({ client_credentials: e.object({
|
|
2485
2512
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2486
2513
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2487
2514
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2488
|
-
}).optional() }).optional(),
|
|
2515
|
+
}).optional() }).optional(), pi = e.object({
|
|
2489
2516
|
id: e.string().optional(),
|
|
2490
2517
|
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
2518
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2492
|
-
branding:
|
|
2519
|
+
branding: ui,
|
|
2493
2520
|
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
|
-
}),
|
|
2521
|
+
enabled_connections: e.array(di).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2522
|
+
token_quota: fi
|
|
2523
|
+
}), mi = pi.extend(t.shape).extend({
|
|
2497
2524
|
id: e.string(),
|
|
2498
2525
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2499
|
-
}),
|
|
2526
|
+
}), hi = e.object({
|
|
2500
2527
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2501
2528
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2502
2529
|
show_as_button: e.boolean().optional().default(!0),
|
|
2503
2530
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2504
|
-
}),
|
|
2531
|
+
}), gi = hi.extend({
|
|
2505
2532
|
connection: e.object({
|
|
2506
2533
|
name: e.string().optional(),
|
|
2507
2534
|
strategy: e.string().optional()
|
|
2508
2535
|
}).optional(),
|
|
2509
2536
|
created_at: e.string().optional(),
|
|
2510
2537
|
updated_at: e.string().optional()
|
|
2511
|
-
}),
|
|
2538
|
+
}), _i = e.array(gi), vi = e.object({
|
|
2512
2539
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2513
2540
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2514
|
-
}),
|
|
2541
|
+
}), yi = vi.extend(t.shape).extend({ id: e.string() }), bi = e.object({
|
|
2515
2542
|
idle_session_lifetime: e.number().default(72),
|
|
2516
2543
|
session_lifetime: e.number().default(168),
|
|
2517
2544
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2590,7 +2617,7 @@ var gr = e.object({
|
|
|
2590
2617
|
}).optional(),
|
|
2591
2618
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2592
2619
|
}).optional()
|
|
2593
|
-
}),
|
|
2620
|
+
}), xi = e.object({
|
|
2594
2621
|
date: e.string().openapi({
|
|
2595
2622
|
description: "Date these events occurred in ISO 8601 format",
|
|
2596
2623
|
example: "2025-12-19"
|
|
@@ -2615,10 +2642,10 @@ var gr = e.object({
|
|
|
2615
2642
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2616
2643
|
example: "2025-12-19T00:00:00.000Z"
|
|
2617
2644
|
})
|
|
2618
|
-
}),
|
|
2645
|
+
}), Si = e.number().openapi({
|
|
2619
2646
|
description: "Number of active users in the last 30 days",
|
|
2620
2647
|
example: 1234
|
|
2621
|
-
}),
|
|
2648
|
+
}), Ci = e.enum([
|
|
2622
2649
|
"active-users",
|
|
2623
2650
|
"logins",
|
|
2624
2651
|
"signups",
|
|
@@ -2630,46 +2657,46 @@ var gr = e.object({
|
|
|
2630
2657
|
"mfa",
|
|
2631
2658
|
"email-verifications",
|
|
2632
2659
|
"codes-sent"
|
|
2633
|
-
]),
|
|
2660
|
+
]), wi = e.enum([
|
|
2634
2661
|
"hour",
|
|
2635
2662
|
"day",
|
|
2636
2663
|
"week",
|
|
2637
2664
|
"month"
|
|
2638
|
-
]),
|
|
2665
|
+
]), Ti = e.enum([
|
|
2639
2666
|
"time",
|
|
2640
2667
|
"connection",
|
|
2641
2668
|
"client_id",
|
|
2642
2669
|
"user_type",
|
|
2643
2670
|
"event"
|
|
2644
|
-
]),
|
|
2671
|
+
]), Ei = e.enum([
|
|
2645
2672
|
"password",
|
|
2646
2673
|
"social",
|
|
2647
2674
|
"passwordless",
|
|
2648
2675
|
"enterprise"
|
|
2649
|
-
]),
|
|
2676
|
+
]), Di = e.object({
|
|
2650
2677
|
name: e.string(),
|
|
2651
2678
|
type: e.string()
|
|
2652
|
-
}),
|
|
2679
|
+
}), Oi = e.object({
|
|
2653
2680
|
elapsed: e.number(),
|
|
2654
2681
|
rows_read: e.number().optional(),
|
|
2655
2682
|
bytes_read: e.number().optional()
|
|
2656
|
-
}),
|
|
2657
|
-
meta: e.array(
|
|
2683
|
+
}), ki = e.object({
|
|
2684
|
+
meta: e.array(Di),
|
|
2658
2685
|
data: e.array(e.record(e.string(), e.any())),
|
|
2659
2686
|
rows: e.number(),
|
|
2660
2687
|
rows_before_limit_at_least: e.number().optional(),
|
|
2661
|
-
statistics:
|
|
2662
|
-
}),
|
|
2688
|
+
statistics: Oi.optional()
|
|
2689
|
+
}), 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
2690
|
type: "object",
|
|
2664
2691
|
additionalProperties: {
|
|
2665
2692
|
type: "object",
|
|
2666
2693
|
additionalProperties: { type: "string" }
|
|
2667
2694
|
}
|
|
2668
|
-
}),
|
|
2669
|
-
prompt:
|
|
2695
|
+
}), Mi = e.object({
|
|
2696
|
+
prompt: Ai,
|
|
2670
2697
|
language: e.string(),
|
|
2671
|
-
custom_text:
|
|
2672
|
-
}),
|
|
2698
|
+
custom_text: ji
|
|
2699
|
+
}), Ni = {
|
|
2673
2700
|
EMAIL: "email",
|
|
2674
2701
|
SMS: "sms",
|
|
2675
2702
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2685,17 +2712,17 @@ var gr = e.object({
|
|
|
2685
2712
|
WAAD: "waad",
|
|
2686
2713
|
ADFS: "adfs",
|
|
2687
2714
|
OKTA: "okta"
|
|
2688
|
-
},
|
|
2715
|
+
}, Pi = {
|
|
2689
2716
|
DATABASE: "database",
|
|
2690
2717
|
SOCIAL: "social",
|
|
2691
2718
|
PASSWORDLESS: "passwordless"
|
|
2692
|
-
},
|
|
2693
|
-
function
|
|
2694
|
-
return e === "auth0" || e ===
|
|
2719
|
+
}, Fi = "auth0";
|
|
2720
|
+
function Ii(e) {
|
|
2721
|
+
return e === "auth0" || e === Ni.USERNAME_PASSWORD || e === "auth2";
|
|
2695
2722
|
}
|
|
2696
2723
|
//#endregion
|
|
2697
2724
|
//#region src/types/AuthenticationMethod.ts
|
|
2698
|
-
var
|
|
2725
|
+
var Li = e.enum([
|
|
2699
2726
|
"phone",
|
|
2700
2727
|
"totp",
|
|
2701
2728
|
"email",
|
|
@@ -2703,9 +2730,9 @@ var Ai = e.enum([
|
|
|
2703
2730
|
"webauthn-roaming",
|
|
2704
2731
|
"webauthn-platform",
|
|
2705
2732
|
"passkey"
|
|
2706
|
-
]),
|
|
2733
|
+
]), Ri = e.object({
|
|
2707
2734
|
user_id: e.string(),
|
|
2708
|
-
type:
|
|
2735
|
+
type: Li,
|
|
2709
2736
|
phone_number: e.string().optional(),
|
|
2710
2737
|
totp_secret: e.string().optional(),
|
|
2711
2738
|
credential_id: e.string().optional(),
|
|
@@ -2716,7 +2743,7 @@ var Ai = e.enum([
|
|
|
2716
2743
|
friendly_name: e.string().optional(),
|
|
2717
2744
|
confirmed: e.boolean().default(!1)
|
|
2718
2745
|
});
|
|
2719
|
-
function
|
|
2746
|
+
function zi(t, n) {
|
|
2720
2747
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2721
2748
|
code: e.ZodIssueCode.custom,
|
|
2722
2749
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2739,15 +2766,15 @@ function Mi(t, n) {
|
|
|
2739
2766
|
path: ["public_key"]
|
|
2740
2767
|
}));
|
|
2741
2768
|
}
|
|
2742
|
-
var
|
|
2769
|
+
var Bi = Ri.superRefine(zi), Vi = Ri.extend({
|
|
2743
2770
|
id: e.string(),
|
|
2744
2771
|
created_at: e.string(),
|
|
2745
2772
|
updated_at: e.string()
|
|
2746
|
-
}).superRefine(
|
|
2773
|
+
}).superRefine(zi), Hi = e.object({
|
|
2747
2774
|
id: e.string().optional(),
|
|
2748
2775
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2749
2776
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2750
|
-
}),
|
|
2777
|
+
}), Ui = {
|
|
2751
2778
|
"post-user-login": {
|
|
2752
2779
|
accessToken: ["setCustomClaim"],
|
|
2753
2780
|
idToken: ["setCustomClaim"],
|
|
@@ -2769,7 +2796,7 @@ var Ni = ji.superRefine(Mi), Pi = ji.extend({
|
|
|
2769
2796
|
};
|
|
2770
2797
|
//#endregion
|
|
2771
2798
|
//#region src/utils/user-id.ts
|
|
2772
|
-
function
|
|
2799
|
+
function Wi(e) {
|
|
2773
2800
|
let [t, n] = e.split("|");
|
|
2774
2801
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2775
2802
|
return {
|
|
@@ -2779,7 +2806,7 @@ function Li(e) {
|
|
|
2779
2806
|
}
|
|
2780
2807
|
//#endregion
|
|
2781
2808
|
//#region src/utils/passthrough.ts
|
|
2782
|
-
function
|
|
2809
|
+
function Gi(e) {
|
|
2783
2810
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2784
2811
|
"create",
|
|
2785
2812
|
"rawCreate",
|
|
@@ -2813,12 +2840,12 @@ function Ri(e) {
|
|
|
2813
2840
|
} : i.bind(e) : i;
|
|
2814
2841
|
} });
|
|
2815
2842
|
}
|
|
2816
|
-
function
|
|
2843
|
+
function Ki(e) {
|
|
2817
2844
|
return e;
|
|
2818
2845
|
}
|
|
2819
2846
|
//#endregion
|
|
2820
2847
|
//#region src/utils/connection-attributes.ts
|
|
2821
|
-
function
|
|
2848
|
+
function qi(e) {
|
|
2822
2849
|
let t = e?.options;
|
|
2823
2850
|
if (!t) return {
|
|
2824
2851
|
usernameIdentifierActive: !1,
|
|
@@ -2841,35 +2868,35 @@ function Bi(e) {
|
|
|
2841
2868
|
}
|
|
2842
2869
|
//#endregion
|
|
2843
2870
|
//#region src/utils/guards.ts
|
|
2844
|
-
function
|
|
2871
|
+
function Ji(e) {
|
|
2845
2872
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2846
2873
|
}
|
|
2847
2874
|
//#endregion
|
|
2848
2875
|
//#region src/utils/base64url.ts
|
|
2849
|
-
function
|
|
2876
|
+
function Yi(e) {
|
|
2850
2877
|
let t = "";
|
|
2851
2878
|
for (let n of e) t += String.fromCharCode(n);
|
|
2852
2879
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2853
2880
|
}
|
|
2854
|
-
function
|
|
2881
|
+
function Xi(e) {
|
|
2855
2882
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2856
2883
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2857
2884
|
return r;
|
|
2858
2885
|
}
|
|
2859
|
-
function
|
|
2860
|
-
return
|
|
2886
|
+
function Zi(e) {
|
|
2887
|
+
return Yi(new TextEncoder().encode(e));
|
|
2861
2888
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return new TextDecoder().decode(
|
|
2889
|
+
function Qi(e) {
|
|
2890
|
+
return new TextDecoder().decode(Xi(e));
|
|
2864
2891
|
}
|
|
2865
2892
|
//#endregion
|
|
2866
2893
|
//#region src/utils/base64.ts
|
|
2867
|
-
function
|
|
2894
|
+
function $i(e) {
|
|
2868
2895
|
let t = "";
|
|
2869
2896
|
for (let n of e) t += String.fromCharCode(n);
|
|
2870
2897
|
return btoa(t);
|
|
2871
2898
|
}
|
|
2872
|
-
function
|
|
2899
|
+
function ea(e) {
|
|
2873
2900
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2874
2901
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2875
2902
|
return n;
|
|
@@ -2877,12 +2904,12 @@ function qi(e) {
|
|
|
2877
2904
|
//#endregion
|
|
2878
2905
|
//#region src/utils/base32.ts
|
|
2879
2906
|
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2880
|
-
function
|
|
2907
|
+
function ta(e) {
|
|
2881
2908
|
let t = "", n = 0, r = 0;
|
|
2882
2909
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += $[n >> r & 31];
|
|
2883
2910
|
return r > 0 && (t += $[n << 5 - r & 31]), t;
|
|
2884
2911
|
}
|
|
2885
|
-
function
|
|
2912
|
+
function na(e) {
|
|
2886
2913
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2887
2914
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2888
2915
|
let r = [], i = 0, a = 0;
|
|
@@ -2896,19 +2923,19 @@ function Yi(e) {
|
|
|
2896
2923
|
}
|
|
2897
2924
|
//#endregion
|
|
2898
2925
|
//#region src/utils/hex.ts
|
|
2899
|
-
function
|
|
2926
|
+
function ra(e) {
|
|
2900
2927
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2901
2928
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2902
2929
|
return n;
|
|
2903
2930
|
}
|
|
2904
2931
|
//#endregion
|
|
2905
2932
|
//#region src/utils/cursor.ts
|
|
2906
|
-
function
|
|
2907
|
-
return
|
|
2933
|
+
function ia(e) {
|
|
2934
|
+
return Zi(JSON.stringify(e));
|
|
2908
2935
|
}
|
|
2909
|
-
function
|
|
2936
|
+
function aa(e) {
|
|
2910
2937
|
try {
|
|
2911
|
-
let t = JSON.parse(
|
|
2938
|
+
let t = JSON.parse(Qi(e));
|
|
2912
2939
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
2913
2940
|
} catch {
|
|
2914
2941
|
return null;
|
|
@@ -2916,7 +2943,7 @@ function Qi(e) {
|
|
|
2916
2943
|
}
|
|
2917
2944
|
//#endregion
|
|
2918
2945
|
//#region src/utils/lucene.ts
|
|
2919
|
-
function
|
|
2946
|
+
function oa(e, t) {
|
|
2920
2947
|
let n = new Set(t), r = (e) => {
|
|
2921
2948
|
let t = [], r = "", i = !1;
|
|
2922
2949
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2933,4 +2960,4 @@ function $i(e, t) {
|
|
|
2933
2960
|
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
2934
2961
|
}
|
|
2935
2962
|
//#endregion
|
|
2936
|
-
export { ve as Auth0ActionEnum, An as Auth0Client,
|
|
2963
|
+
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 };
|