@authhero/adapter-interfaces 0.63.0 → 0.65.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.
@@ -1,12 +1,12 @@
1
1
  import { z as t } from "@hono/zod-openapi";
2
- const ut = t.object({
2
+ const Et = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
6
- }), r = t.object({
6
+ }), s = t.object({
7
7
  created_at: t.string(),
8
8
  updated_at: t.string()
9
- }), m = t.object({
9
+ }), f = t.object({
10
10
  email: t.string().optional(),
11
11
  email_verified: t.boolean().optional(),
12
12
  name: t.string().optional(),
@@ -15,7 +15,7 @@ const ut = t.object({
15
15
  phone_number: t.string().optional(),
16
16
  phone_verified: t.boolean().optional(),
17
17
  family_name: t.string().optional()
18
- }).catchall(t.any()), h = t.object({
18
+ }).catchall(t.any()), S = t.object({
19
19
  connection: t.string(),
20
20
  user_id: t.string(),
21
21
  provider: t.string(),
@@ -23,9 +23,9 @@ const ut = t.object({
23
23
  access_token: t.string().optional(),
24
24
  access_token_secret: t.string().optional(),
25
25
  refresh_token: t.string().optional(),
26
- profileData: m.optional()
27
- }), l = t.object({
28
- email: t.string().optional().transform((n) => n && n.toLowerCase()),
26
+ profileData: f.optional()
27
+ }), c = t.object({
28
+ email: t.string().optional().transform((e) => e && e.toLowerCase()),
29
29
  username: t.string().optional(),
30
30
  phone_number: t.string().optional(),
31
31
  given_name: t.string().optional(),
@@ -39,7 +39,7 @@ const ut = t.object({
39
39
  user_id: t.string().optional(),
40
40
  app_metadata: t.any().default({}).optional(),
41
41
  user_metadata: t.any().default({}).optional()
42
- }), b = l.extend({
42
+ }), E = c.extend({
43
43
  email_verified: t.boolean().default(!1),
44
44
  verify_email: t.boolean().optional(),
45
45
  last_ip: t.string().optional(),
@@ -48,28 +48,28 @@ const ut = t.object({
48
48
  provider: t.string().default("email"),
49
49
  connection: t.string().default("email"),
50
50
  is_social: t.boolean().optional()
51
- }), f = t.object({
52
- ...b.shape,
53
- ...r.shape,
51
+ }), j = t.object({
52
+ ...E.shape,
53
+ ...s.shape,
54
54
  user_id: t.string(),
55
55
  is_social: t.boolean(),
56
56
  email: t.string().optional(),
57
57
  login_count: t.number().default(0),
58
- identities: t.array(h).optional()
59
- }), _t = f, mt = l.extend({
58
+ identities: t.array(S).optional()
59
+ }), jt = j, yt = c.extend({
60
60
  login_count: t.number(),
61
61
  multifactor: t.array(t.string()).optional(),
62
62
  last_ip: t.string().optional(),
63
63
  last_login: t.string().optional(),
64
64
  user_id: t.string()
65
- }).catchall(t.any()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let E = (n = 21) => {
67
- let i = "", a = crypto.getRandomValues(new Uint8Array(n));
68
- for (; n--; )
69
- i += S[a[n] & 63];
70
- return i;
65
+ }).catchall(t.any()), y = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
+ let I = (e = 21) => {
67
+ let o = "", a = crypto.getRandomValues(new Uint8Array(e));
68
+ for (; e--; )
69
+ o += y[a[e] & 63];
70
+ return o;
71
71
  };
72
- const j = t.object({
72
+ const w = t.object({
73
73
  audience: t.string().optional(),
74
74
  recipient: t.string().optional(),
75
75
  createUpnClaim: t.boolean().optional(),
@@ -86,7 +86,7 @@ const j = t.object({
86
86
  nameIdentifierProbes: t.array(t.string()).optional(),
87
87
  authnContextClassRef: t.string().optional(),
88
88
  mappings: t.record(t.string()).optional()
89
- }), y = t.object({
89
+ }), k = t.object({
90
90
  id: t.string(),
91
91
  name: t.string(),
92
92
  callbacks: t.array(t.string()).default([]).optional().openapi({
@@ -105,31 +105,31 @@ const j = t.object({
105
105
  description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
106
106
  }),
107
107
  addons: t.object({
108
- samlp: j.optional()
108
+ samlp: w.optional()
109
109
  }).default({}).optional().openapi({
110
110
  description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
111
111
  }),
112
112
  email_validation: t.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
113
113
  description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
114
114
  }),
115
- client_secret: t.string().default(() => E()).optional(),
115
+ client_secret: t.string().default(() => I()).optional(),
116
116
  disable_sign_ups: t.boolean().optional().default(!1).openapi({
117
117
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
118
118
  })
119
- }), I = t.object({
120
- created_at: t.string().transform((n) => n === null ? "" : n),
121
- updated_at: t.string().transform((n) => n === null ? "" : n),
122
- ...y.shape
123
- }), o = t.object({
119
+ }), C = t.object({
120
+ created_at: t.string().transform((e) => e === null ? "" : e),
121
+ updated_at: t.string().transform((e) => e === null ? "" : e),
122
+ ...k.shape
123
+ }), i = t.object({
124
124
  x: t.number(),
125
125
  y: t.number()
126
126
  });
127
- var c = /* @__PURE__ */ ((n) => (n.RICH_TEXT = "RICH_TEXT", n.NEXT_BUTTON = "NEXT_BUTTON", n.BACK_BUTTON = "BACK_BUTTON", n.SUBMIT_BUTTON = "SUBMIT_BUTTON", n.DIVIDER = "DIVIDER", n.TEXT = "TEXT", n.EMAIL = "EMAIL", n.PASSWORD = "PASSWORD", n.NUMBER = "NUMBER", n.PHONE = "PHONE", n.DATE = "DATE", n.CHECKBOX = "CHECKBOX", n.RADIO = "RADIO", n.SELECT = "SELECT", n.HIDDEN = "HIDDEN", n.LEGAL = "LEGAL", n))(c || {}), p = /* @__PURE__ */ ((n) => (n.BLOCK = "BLOCK", n.FIELD = "FIELD", n))(p || {});
128
- const s = t.object({
127
+ var p = /* @__PURE__ */ ((e) => (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))(p || {}), g = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(g || {});
128
+ const r = t.object({
129
129
  id: t.string(),
130
- category: t.nativeEnum(p),
131
- type: t.nativeEnum(c)
132
- }), w = s.extend({
130
+ category: t.nativeEnum(g),
131
+ type: t.nativeEnum(p)
132
+ }), O = r.extend({
133
133
  category: t.literal(
134
134
  "BLOCK"
135
135
  /* BLOCK */
@@ -141,7 +141,7 @@ const s = t.object({
141
141
  config: t.object({
142
142
  content: t.string()
143
143
  }).passthrough()
144
- }), C = s.extend({
144
+ }), A = r.extend({
145
145
  category: t.literal(
146
146
  "BLOCK"
147
147
  /* BLOCK */
@@ -163,7 +163,7 @@ const s = t.object({
163
163
  config: t.object({
164
164
  text: t.string()
165
165
  }).passthrough()
166
- }), k = s.extend({
166
+ }), v = r.extend({
167
167
  category: t.literal(
168
168
  "FIELD"
169
169
  /* FIELD */
@@ -177,7 +177,7 @@ const s = t.object({
177
177
  config: t.object({
178
178
  text: t.string()
179
179
  }).passthrough()
180
- }), O = s.extend({
180
+ }), N = r.extend({
181
181
  category: t.literal(
182
182
  "FIELD"
183
183
  /* FIELD */
@@ -230,82 +230,82 @@ const s = t.object({
230
230
  label: t.string().optional(),
231
231
  placeholder: t.string().optional()
232
232
  }).passthrough()
233
- }), A = t.object({
233
+ }), T = t.object({
234
234
  id: t.string(),
235
235
  category: t.string(),
236
236
  type: t.string()
237
- }).passthrough(), v = t.union([
238
- w,
239
- C,
240
- k,
237
+ }).passthrough(), U = t.union([
241
238
  O,
242
- A
239
+ A,
240
+ v,
241
+ N,
242
+ T
243
243
  ]);
244
- var N = /* @__PURE__ */ ((n) => (n.STEP = "STEP", n.FLOW = "FLOW", n.CONDITION = "CONDITION", n.ACTION = "ACTION", n))(N || {});
245
- const T = t.object({
244
+ var D = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(D || {});
245
+ const x = t.object({
246
246
  id: t.string(),
247
247
  type: t.literal(
248
248
  "STEP"
249
249
  /* STEP */
250
250
  ),
251
- coordinates: o,
251
+ coordinates: i,
252
252
  alias: t.string().optional(),
253
253
  config: t.object({
254
- components: t.array(v),
254
+ components: t.array(U),
255
255
  next_node: t.string()
256
256
  }).passthrough()
257
- }), U = t.object({
257
+ }), R = t.object({
258
258
  id: t.string(),
259
259
  type: t.literal(
260
260
  "FLOW"
261
261
  /* FLOW */
262
262
  ),
263
- coordinates: o,
263
+ coordinates: i,
264
264
  alias: t.string().optional(),
265
265
  config: t.object({
266
266
  flow_id: t.string(),
267
267
  next_node: t.string()
268
268
  })
269
- }), D = t.object({
269
+ }), L = t.object({
270
270
  id: t.string(),
271
271
  type: t.string(),
272
- coordinates: o
273
- }).passthrough(), x = t.union([
274
- T,
275
- U,
276
- D
277
- ]), R = t.object({
272
+ coordinates: i
273
+ }).passthrough(), P = t.union([
274
+ x,
275
+ R,
276
+ L
277
+ ]), B = t.object({
278
278
  next_node: t.string(),
279
- coordinates: o
280
- }).passthrough(), P = t.object({
279
+ coordinates: i
280
+ }).passthrough(), H = t.object({
281
281
  resume_flow: t.boolean().optional(),
282
- coordinates: o
283
- }).passthrough(), L = t.object({
282
+ coordinates: i
283
+ }).passthrough(), F = t.object({
284
284
  id: t.string(),
285
285
  name: t.string(),
286
286
  languages: t.object({
287
287
  primary: t.string()
288
288
  }).passthrough(),
289
- nodes: t.array(x),
290
- start: R,
291
- ending: P,
289
+ nodes: t.array(P),
290
+ start: B,
291
+ ending: H,
292
292
  created_at: t.string(),
293
293
  updated_at: t.string(),
294
294
  links: t.object({
295
295
  sdkSrc: t.string().optional(),
296
296
  sdk_src: t.string().optional()
297
297
  }).passthrough()
298
- }).passthrough(), ht = L.omit({
298
+ }).passthrough(), It = F.omit({
299
299
  id: !0,
300
300
  created_at: !0,
301
301
  updated_at: !0
302
302
  });
303
- var g = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(g || {}), d = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(d || {}), u = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(u || {});
304
- const B = t.object({
303
+ var d = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(d || {}), u = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(u || {}), _ = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(_ || {});
304
+ const K = t.object({
305
305
  client_id: t.string(),
306
306
  act_as: t.string().optional(),
307
- response_type: t.nativeEnum(g).optional(),
308
- response_mode: t.nativeEnum(d).optional(),
307
+ response_type: t.nativeEnum(d).optional(),
308
+ response_mode: t.nativeEnum(u).optional(),
309
309
  redirect_uri: t.string().optional(),
310
310
  audience: t.string().optional(),
311
311
  organization: t.string().optional(),
@@ -313,13 +313,13 @@ const B = t.object({
313
313
  nonce: t.string().optional(),
314
314
  scope: t.string().optional(),
315
315
  prompt: t.string().optional(),
316
- code_challenge_method: t.nativeEnum(u).optional(),
316
+ code_challenge_method: t.nativeEnum(_).optional(),
317
317
  code_challenge: t.string().optional(),
318
318
  username: t.string().optional(),
319
319
  ui_locales: t.string().optional(),
320
320
  // The following fields are not available in Auth0
321
321
  vendor_id: t.string().optional()
322
- }), bt = t.object({
322
+ }), wt = t.object({
323
323
  colors: t.object({
324
324
  primary: t.string(),
325
325
  page_background: t.object({
@@ -334,7 +334,7 @@ const B = t.object({
334
334
  font: t.object({
335
335
  url: t.string()
336
336
  }).optional()
337
- }), F = t.object({
337
+ }), M = t.object({
338
338
  kid: t.string().optional(),
339
339
  team_id: t.string().optional(),
340
340
  realms: t.string().optional(),
@@ -352,19 +352,19 @@ const B = t.object({
352
352
  from: t.string().optional(),
353
353
  twilio_sid: t.string().optional(),
354
354
  twilio_token: t.string().optional()
355
- }), H = t.object({
355
+ }), G = t.object({
356
356
  id: t.string().optional(),
357
357
  name: t.string(),
358
358
  strategy: t.string(),
359
- options: F.default({}),
359
+ options: M.default({}),
360
360
  enabled_clients: t.array(t.string()).default([]).optional(),
361
361
  response_type: t.custom().optional(),
362
362
  response_mode: t.custom().optional()
363
- }), K = t.object({
363
+ }), X = t.object({
364
364
  id: t.string(),
365
- created_at: t.string().transform((n) => n === null ? "" : n),
366
- updated_at: t.string().transform((n) => n === null ? "" : n)
367
- }).extend(H.shape), M = t.object({
365
+ created_at: t.string().transform((e) => e === null ? "" : e),
366
+ updated_at: t.string().transform((e) => e === null ? "" : e)
367
+ }).extend(G.shape), W = t.object({
368
368
  name: t.string(),
369
369
  audience: t.string(),
370
370
  sender_email: t.string().email(),
@@ -375,12 +375,12 @@ const B = t.object({
375
375
  secondary_color: t.string().optional(),
376
376
  language: t.string().optional(),
377
377
  id: t.string().optional()
378
- }), G = t.object({
379
- created_at: t.string().transform((n) => n === null ? "" : n),
380
- updated_at: t.string().transform((n) => n === null ? "" : n),
381
- ...M.shape,
378
+ }), q = t.object({
379
+ created_at: t.string().transform((e) => e === null ? "" : e),
380
+ updated_at: t.string().transform((e) => e === null ? "" : e),
381
+ ...W.shape,
382
382
  id: t.string()
383
- }), ft = t.object({
383
+ }), kt = t.object({
384
384
  logoUrl: t.string(),
385
385
  loginBackgroundImage: t.string().nullish(),
386
386
  style: t.object({
@@ -399,18 +399,18 @@ const B = t.object({
399
399
  manageSubscriptionsUrl: t.string().optional()
400
400
  });
401
401
  t.object({
402
- ...I.shape,
403
- tenant: G,
404
- connections: t.array(K)
402
+ ...C.shape,
403
+ tenant: q,
404
+ connections: t.array(X)
405
405
  });
406
- const W = t.enum([
406
+ const V = t.enum([
407
407
  "password_reset",
408
408
  "email_verification",
409
409
  "otp",
410
410
  "authorization_code",
411
411
  "oauth2_state",
412
412
  "ticket"
413
- ]), X = t.object({
413
+ ]), z = t.object({
414
414
  code_id: t.string().openapi({
415
415
  description: "The code that will be used in for instance an email verification flow"
416
416
  }),
@@ -420,17 +420,17 @@ const W = t.enum([
420
420
  connection_id: t.string().optional().openapi({
421
421
  description: "The connection that the code is connected to"
422
422
  }),
423
- code_type: W,
423
+ code_type: V,
424
424
  code_verifier: t.string().optional().openapi({
425
425
  description: "The code verifier used in PKCE in outbound flows"
426
426
  }),
427
427
  expires_at: t.string(),
428
428
  used_at: t.string().optional(),
429
429
  user_id: t.string().optional()
430
- }), St = t.object({
431
- ...X.shape,
430
+ }), Ct = t.object({
431
+ ...z.shape,
432
432
  created_at: t.string()
433
- }), q = t.object({
433
+ }), Q = t.object({
434
434
  domain: t.string(),
435
435
  custom_domain_id: t.string().optional(),
436
436
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -444,23 +444,23 @@ const W = t.enum([
444
444
  "null"
445
445
  ]).optional(),
446
446
  domain_metadata: t.record(t.string().max(255)).optional()
447
- }), V = t.object({
447
+ }), Y = t.object({
448
448
  name: t.literal("txt"),
449
449
  record: t.string(),
450
450
  domain: t.string()
451
- }), z = t.object({
452
- ...q.shape,
451
+ }), J = t.object({
452
+ ...Q.shape,
453
453
  custom_domain_id: t.string(),
454
454
  primary: t.boolean(),
455
455
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
456
456
  origin_domain_name: t.string().optional(),
457
457
  verification: t.object({
458
- methods: t.array(V)
458
+ methods: t.array(Y)
459
459
  }).optional(),
460
460
  tls_policy: t.string().optional()
461
- }), Et = z.extend({
461
+ }), Ot = J.extend({
462
462
  tenant_id: t.string()
463
- }), jt = t.object({
463
+ }), At = t.object({
464
464
  id: t.string(),
465
465
  type: t.literal("submit"),
466
466
  label: t.string(),
@@ -469,7 +469,38 @@ const W = t.enum([
469
469
  order: t.number().optional(),
470
470
  visible: t.boolean().optional().default(!0),
471
471
  customizations: t.record(t.string(), t.any()).optional()
472
- }), Q = t.object({
472
+ }), Z = t.discriminatedUnion("type", [
473
+ t.object({
474
+ id: t.string(),
475
+ type: t.literal("RICH_TEXT"),
476
+ config: t.object({
477
+ content: t.string()
478
+ }),
479
+ order: t.number().optional(),
480
+ visible: t.boolean().optional().default(!0)
481
+ }),
482
+ t.object({
483
+ id: t.string(),
484
+ type: t.literal("LEGAL"),
485
+ config: t.object({
486
+ text: t.string(),
487
+ html: t.boolean().optional()
488
+ }),
489
+ required: t.boolean().optional(),
490
+ order: t.number().optional(),
491
+ visible: t.boolean().optional().default(!0)
492
+ }),
493
+ t.object({
494
+ id: t.string(),
495
+ type: t.literal("NEXT_BUTTON"),
496
+ config: t.object({
497
+ text: t.string().optional()
498
+ }),
499
+ order: t.number().optional(),
500
+ visible: t.boolean().optional().default(!0)
501
+ })
502
+ // Add more component types as needed
503
+ ]), $ = t.object({
473
504
  name: t.string().openapi({
474
505
  description: "The name of the form"
475
506
  }),
@@ -507,7 +538,6 @@ const W = t.enum([
507
538
  id: t.string(),
508
539
  alias: t.string().min(1).max(150).optional(),
509
540
  condition: t.any(),
510
- // condition is required but type is not specified
511
541
  next_node: t.string()
512
542
  })
513
543
  ),
@@ -521,8 +551,7 @@ const W = t.enum([
521
551
  coordinates: t.object({ x: t.number(), y: t.number() }),
522
552
  alias: t.string().min(1).max(150).optional(),
523
553
  config: t.object({
524
- components: t.array(t.any()),
525
- // components is an array of objects, structure not specified
554
+ components: t.array(Z),
526
555
  next_node: t.string()
527
556
  })
528
557
  })
@@ -545,25 +574,48 @@ const W = t.enum([
545
574
  style: t.object({ css: t.string().optional() }).optional()
546
575
  }).openapi({
547
576
  description: "Schema for flow-based forms (matches new JSON structure)"
548
- }), yt = t.object({
549
- ...r.shape,
550
- ...Q.shape,
577
+ }), vt = t.object({
578
+ ...s.shape,
579
+ ...$.shape,
551
580
  id: t.string()
552
- }), Y = t.object({
553
- trigger_id: t.enum([
554
- "pre-user-signup",
555
- "post-user-registration",
556
- "post-user-login"
557
- ]),
581
+ }), m = t.enum([
582
+ "pre-user-signup",
583
+ "post-user-registration",
584
+ "post-user-login"
585
+ // Potentially other triggers specific to webhooks in the future
586
+ ]), b = t.enum([
587
+ "pre-user-signup",
588
+ "post-user-registration",
589
+ "post-user-login"
590
+ ]), l = {
558
591
  enabled: t.boolean().default(!1),
559
- url: t.string(),
560
- hook_id: t.string().optional(),
561
592
  synchronous: t.boolean().default(!1),
562
- priority: t.number().optional()
563
- }), It = Y.extend({
564
- ...r.shape,
565
- hook_id: t.string()
566
- }), J = t.object({
593
+ priority: t.number().optional(),
594
+ hook_id: t.string().optional()
595
+ }, tt = t.object({
596
+ ...l,
597
+ trigger_id: m,
598
+ url: t.string()
599
+ }), et = t.object({
600
+ ...l,
601
+ trigger_id: b,
602
+ form_id: t.string()
603
+ }), Nt = t.union([
604
+ tt,
605
+ et
606
+ ]), nt = t.object({
607
+ ...l,
608
+ trigger_id: m,
609
+ ...s.shape,
610
+ hook_id: t.string(),
611
+ url: t.string()
612
+ }), ot = t.object({
613
+ ...l,
614
+ trigger_id: b,
615
+ ...s.shape,
616
+ hook_id: t.string(),
617
+ form_id: t.string()
618
+ }), Tt = t.union([nt, ot]), it = t.object({
567
619
  alg: t.enum([
568
620
  "RS256",
569
621
  "RS384",
@@ -582,9 +634,9 @@ const W = t.enum([
582
634
  x5t: t.string().optional(),
583
635
  x5c: t.array(t.string()).optional(),
584
636
  use: t.enum(["sig", "enc"]).optional()
585
- }), wt = t.object({
586
- keys: t.array(J)
587
- }), Ct = t.object({
637
+ }), Ut = t.object({
638
+ keys: t.array(it)
639
+ }), Dt = t.object({
588
640
  issuer: t.string(),
589
641
  authorization_endpoint: t.string(),
590
642
  token_endpoint: t.string(),
@@ -605,10 +657,10 @@ const W = t.enum([
605
657
  request_uri_parameter_supported: t.boolean(),
606
658
  request_parameter_supported: t.boolean(),
607
659
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
608
- }), Z = t.object({
660
+ }), at = t.object({
609
661
  csrf_token: t.string(),
610
662
  auth0Client: t.string().optional(),
611
- authParams: B,
663
+ authParams: K,
612
664
  expires_at: t.string(),
613
665
  deleted_at: t.string().optional(),
614
666
  ip: t.string().optional(),
@@ -617,16 +669,16 @@ const W = t.enum([
617
669
  authorization_url: t.string().optional()
618
670
  }).openapi({
619
671
  description: "This represents a login sesion"
620
- }), kt = t.object({
621
- ...Z.shape,
672
+ }), xt = t.object({
673
+ ...at.shape,
622
674
  id: t.string().openapi({
623
675
  description: "This is is used as the state in the universal login"
624
676
  }),
625
677
  created_at: t.string(),
626
678
  updated_at: t.string()
627
679
  });
628
- var $ = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))($ || {});
629
- const tt = t.enum([
680
+ var st = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(st || {});
681
+ const rt = t.enum([
630
682
  "cls",
631
683
  // CODE_LINK_SENT
632
684
  "fsa",
@@ -675,14 +727,14 @@ const tt = t.enum([
675
727
  // SUCCESS_VERIFICATION_EMAIL
676
728
  "svr"
677
729
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
678
- ]), nt = t.object({
730
+ ]), lt = t.object({
679
731
  name: t.string(),
680
732
  version: t.string(),
681
733
  env: t.object({
682
734
  node: t.string().optional()
683
735
  }).optional()
684
- }), Ot = t.object({
685
- type: tt,
736
+ }), Rt = t.object({
737
+ type: rt,
686
738
  date: t.string(),
687
739
  description: t.string().optional(),
688
740
  log_id: t.string().optional(),
@@ -703,40 +755,40 @@ const tt = t.enum([
703
755
  strategy: t.string().optional(),
704
756
  strategy_type: t.string().optional(),
705
757
  hostname: t.string().optional(),
706
- auth0_client: nt.optional()
707
- }), et = t.object({
758
+ auth0_client: lt.optional()
759
+ }), ct = t.object({
708
760
  user_id: t.string(),
709
761
  password: t.string(),
710
762
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
711
- }), At = t.object({
712
- ...et.shape,
763
+ }), Lt = t.object({
764
+ ...ct.shape,
713
765
  created_at: t.string(),
714
766
  updated_at: t.string()
715
- }), _ = t.object({
767
+ }), h = t.object({
716
768
  initial_user_agent: t.string().describe("First user agent of the device from which this user logged in"),
717
769
  initial_ip: t.string().describe("First IP address associated with this session"),
718
770
  initial_asn: t.string().describe("First autonomous system number associated with this session"),
719
771
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
720
772
  last_ip: t.string().describe("Last IP address from which this user logged in"),
721
773
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
722
- }), it = t.object({
774
+ }), pt = t.object({
723
775
  id: t.string(),
724
776
  revoked_at: t.string().optional(),
725
777
  used_at: t.string().optional(),
726
778
  user_id: t.string().describe("The user ID associated with the session"),
727
779
  expires_at: t.string().optional(),
728
780
  idle_expires_at: t.string().optional(),
729
- device: _.describe(
781
+ device: h.describe(
730
782
  "Metadata related to the device used in the session"
731
783
  ),
732
784
  clients: t.array(t.string()).describe("List of client details for the session")
733
- }), vt = t.object({
785
+ }), Pt = t.object({
734
786
  created_at: t.string(),
735
787
  updated_at: t.string(),
736
788
  authenticated_at: t.string(),
737
789
  last_interaction_at: t.string(),
738
- ...it.shape
739
- }), Nt = t.object({
790
+ ...pt.shape
791
+ }), Bt = t.object({
740
792
  kid: t.string().openapi({ description: "The key id of the signing key" }),
741
793
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
742
794
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -756,8 +808,8 @@ const tt = t.enum([
756
808
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
757
809
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
758
810
  });
759
- var ot = /* @__PURE__ */ ((n) => (n.RefreshToken = "refresh_token", n.AuthorizationCode = "authorization_code", n.ClientCredential = "client_credentials", n.Passwordless = "passwordless", n.Password = "password", n.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", n))(ot || {});
760
- const Tt = t.object({
811
+ var gt = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(gt || {});
812
+ const Ht = t.object({
761
813
  access_token: t.string(),
762
814
  id_token: t.string().optional(),
763
815
  scope: t.string().optional(),
@@ -770,7 +822,7 @@ t.object({
770
822
  code: t.string(),
771
823
  state: t.string().optional()
772
824
  });
773
- const at = t.object({
825
+ const dt = t.object({
774
826
  button_border_radius: t.number(),
775
827
  button_border_weight: t.number(),
776
828
  buttons_style: t.enum(["pill"]),
@@ -780,7 +832,7 @@ const at = t.object({
780
832
  show_widget_shadow: t.boolean(),
781
833
  widget_border_weight: t.number(),
782
834
  widget_corner_radius: t.number()
783
- }), st = t.object({
835
+ }), ut = t.object({
784
836
  base_focus_color: t.string(),
785
837
  base_hover_color: t.string(),
786
838
  body_text: t.string(),
@@ -800,44 +852,44 @@ const at = t.object({
800
852
  success: t.string(),
801
853
  widget_background: t.string(),
802
854
  widget_border: t.string()
803
- }), e = t.object({
855
+ }), n = t.object({
804
856
  bold: t.boolean(),
805
857
  size: t.number()
806
- }), rt = t.object({
807
- body_text: e,
808
- buttons_text: e,
858
+ }), _t = t.object({
859
+ body_text: n,
860
+ buttons_text: n,
809
861
  font_url: t.string(),
810
- input_labels: e,
811
- links: e,
862
+ input_labels: n,
863
+ links: n,
812
864
  links_style: t.enum(["normal"]),
813
865
  reference_text_size: t.number(),
814
- subtitle: e,
815
- title: e
816
- }), lt = t.object({
866
+ subtitle: n,
867
+ title: n
868
+ }), mt = t.object({
817
869
  background_color: t.string(),
818
870
  background_image_url: t.string(),
819
871
  page_layout: t.enum(["center"])
820
- }), ct = t.object({
872
+ }), bt = t.object({
821
873
  header_text_alignment: t.enum(["center"]),
822
874
  logo_height: t.number(),
823
875
  logo_position: t.enum(["center"]),
824
876
  logo_url: t.string(),
825
877
  social_buttons_layout: t.enum(["bottom"])
826
- }), pt = t.object({
827
- borders: at,
828
- colors: st,
878
+ }), ht = t.object({
879
+ borders: dt,
880
+ colors: ut,
829
881
  displayName: t.string(),
830
- fonts: rt,
831
- page_background: lt,
832
- widget: ct
833
- }), Ut = pt.extend({
882
+ fonts: _t,
883
+ page_background: mt,
884
+ widget: bt
885
+ }), Ft = ht.extend({
834
886
  themeId: t.string()
835
- }), Dt = t.object({
887
+ }), Kt = t.object({
836
888
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
837
889
  identifier_first: t.boolean().default(!0),
838
890
  password_first: t.boolean().default(!1),
839
891
  webauthn_platform_first_factor: t.boolean()
840
- }), xt = t.object({
892
+ }), Mt = t.object({
841
893
  name: t.string(),
842
894
  enabled: t.boolean().optional().default(!0),
843
895
  default_from_address: t.string().optional(),
@@ -867,7 +919,7 @@ const at = t.object({
867
919
  })
868
920
  ]),
869
921
  settings: t.object({}).optional()
870
- }), gt = t.object({
922
+ }), ft = t.object({
871
923
  // The actual refresh token value (primary key).
872
924
  id: t.string(),
873
925
  // Link to the session record
@@ -880,7 +932,7 @@ const at = t.object({
880
932
  idle_expires_at: t.string().optional(),
881
933
  // When the token was last used.
882
934
  last_exchanged_at: t.string().optional(),
883
- device: _,
935
+ device: h,
884
936
  resource_servers: t.array(
885
937
  t.object({
886
938
  audience: t.string(),
@@ -888,105 +940,106 @@ const at = t.object({
888
940
  })
889
941
  ),
890
942
  rotating: t.boolean()
891
- }), Rt = t.object({
943
+ }), Gt = t.object({
892
944
  // When the refresh token record was created.
893
945
  created_at: t.string(),
894
946
  // Spread in the rest of the refresh token properties.
895
- ...gt.shape
896
- }), Pt = t.object({
947
+ ...ft.shape
948
+ }), Xt = t.object({
897
949
  to: t.string(),
898
950
  message: t.string()
899
- }), Lt = t.object({
951
+ }), Wt = t.object({
900
952
  name: t.string(),
901
953
  options: t.object({})
902
954
  });
903
- function Bt(n) {
904
- const [i, a] = n.split("|");
905
- if (!i || !a)
906
- throw new Error(`Invalid user_id: ${n}`);
907
- return { connection: i, id: a };
955
+ function qt(e) {
956
+ const [o, a] = e.split("|");
957
+ if (!o || !a)
958
+ throw new Error(`Invalid user_id: ${e}`);
959
+ return { connection: o, id: a };
908
960
  }
909
961
  export {
910
- nt as Auth0Client,
911
- d as AuthorizationResponseMode,
912
- g as AuthorizationResponseType,
913
- u as CodeChallengeMethod,
914
- p as ComponentCategory,
915
- c as ComponentType,
916
- ot as GrantType,
917
- $ as LogTypes,
918
- N as NodeType,
919
- y as applicationInsertSchema,
920
- I as applicationSchema,
921
- ht as auth0FlowInsertSchema,
922
- L as auth0FlowSchema,
923
- _t as auth0UserResponseSchema,
924
- B as authParamsSchema,
925
- l as baseUserSchema,
926
- at as bordersSchema,
927
- bt as brandingSchema,
928
- C as buttonComponentSchema,
929
- X as codeInsertSchema,
930
- St as codeSchema,
931
- W as codeTypeSchema,
932
- st as colorsSchema,
933
- v as componentSchema,
934
- H as connectionInsertSchema,
935
- F as connectionOptionsSchema,
936
- K as connectionSchema,
937
- o as coordinatesSchema,
938
- q as customDomainInsertSchema,
939
- z as customDomainSchema,
940
- Et as customDomainWithTenantIdSchema,
941
- xt as emailProviderSchema,
942
- P as endingSchema,
943
- O as fieldComponentSchema,
944
- U as flowNodeSchema,
945
- e as fontDetailsSchema,
946
- rt as fontsSchema,
947
- jt as formControlSchema,
948
- Q as formInsertSchema,
949
- yt as formSchema,
950
- A as genericComponentSchema,
951
- D as genericNodeSchema,
952
- Y as hookInsertSchema,
953
- It as hookSchema,
954
- h as identitySchema,
955
- wt as jwksKeySchema,
956
- J as jwksSchema,
957
- k as legalComponentSchema,
958
- Ot as logSchema,
959
- Z as loginSessionInsertSchema,
960
- kt as loginSessionSchema,
961
- x as nodeSchema,
962
- Ct as openIDConfigurationSchema,
963
- lt as pageBackgroundSchema,
964
- Bt as parseUserId,
965
- et as passwordInsertSchema,
966
- At as passwordSchema,
967
- m as profileDataSchema,
968
- Dt as promptSettingSchema,
969
- gt as refreshTokenInsertSchema,
970
- Rt as refreshTokenSchema,
971
- w as richTextComponentSchema,
972
- j as samlpAddon,
973
- it as sessionInsertSchema,
974
- vt as sessionSchema,
975
- Nt as signingKeySchema,
976
- Lt as smsProviderSchema,
977
- Pt as smsSendParamsSchema,
978
- R as startSchema,
979
- T as stepNodeSchema,
980
- M as tenantInsertSchema,
981
- G as tenantSchema,
982
- pt as themeInsertSchema,
983
- Ut as themeSchema,
984
- Tt as tokenResponseSchema,
985
- ut as totalsSchema,
986
- b as userInsertSchema,
987
- mt as userResponseSchema,
988
- f as userSchema,
989
- ft as vendorSettingsSchema,
990
- V as verificationMethodsSchema,
991
- ct as widgetSchema
962
+ lt as Auth0Client,
963
+ u as AuthorizationResponseMode,
964
+ d as AuthorizationResponseType,
965
+ _ as CodeChallengeMethod,
966
+ g as ComponentCategory,
967
+ p as ComponentType,
968
+ gt as GrantType,
969
+ st as LogTypes,
970
+ D as NodeType,
971
+ k as applicationInsertSchema,
972
+ C as applicationSchema,
973
+ It as auth0FlowInsertSchema,
974
+ F as auth0FlowSchema,
975
+ jt as auth0UserResponseSchema,
976
+ K as authParamsSchema,
977
+ c as baseUserSchema,
978
+ dt as bordersSchema,
979
+ wt as brandingSchema,
980
+ A as buttonComponentSchema,
981
+ z as codeInsertSchema,
982
+ Ct as codeSchema,
983
+ V as codeTypeSchema,
984
+ ut as colorsSchema,
985
+ U as componentSchema,
986
+ G as connectionInsertSchema,
987
+ M as connectionOptionsSchema,
988
+ X as connectionSchema,
989
+ i as coordinatesSchema,
990
+ Q as customDomainInsertSchema,
991
+ J as customDomainSchema,
992
+ Ot as customDomainWithTenantIdSchema,
993
+ Mt as emailProviderSchema,
994
+ H as endingSchema,
995
+ N as fieldComponentSchema,
996
+ R as flowNodeSchema,
997
+ n as fontDetailsSchema,
998
+ _t as fontsSchema,
999
+ At as formControlSchema,
1000
+ $ as formInsertSchema,
1001
+ Z as formNodeComponentDefinition,
1002
+ vt as formSchema,
1003
+ T as genericComponentSchema,
1004
+ L as genericNodeSchema,
1005
+ Nt as hookInsertSchema,
1006
+ Tt as hookSchema,
1007
+ S as identitySchema,
1008
+ Ut as jwksKeySchema,
1009
+ it as jwksSchema,
1010
+ v as legalComponentSchema,
1011
+ Rt as logSchema,
1012
+ at as loginSessionInsertSchema,
1013
+ xt as loginSessionSchema,
1014
+ P as nodeSchema,
1015
+ Dt as openIDConfigurationSchema,
1016
+ mt as pageBackgroundSchema,
1017
+ qt as parseUserId,
1018
+ ct as passwordInsertSchema,
1019
+ Lt as passwordSchema,
1020
+ f as profileDataSchema,
1021
+ Kt as promptSettingSchema,
1022
+ ft as refreshTokenInsertSchema,
1023
+ Gt as refreshTokenSchema,
1024
+ O as richTextComponentSchema,
1025
+ w as samlpAddon,
1026
+ pt as sessionInsertSchema,
1027
+ Pt as sessionSchema,
1028
+ Bt as signingKeySchema,
1029
+ Wt as smsProviderSchema,
1030
+ Xt as smsSendParamsSchema,
1031
+ B as startSchema,
1032
+ x as stepNodeSchema,
1033
+ W as tenantInsertSchema,
1034
+ q as tenantSchema,
1035
+ ht as themeInsertSchema,
1036
+ Ft as themeSchema,
1037
+ Ht as tokenResponseSchema,
1038
+ Et as totalsSchema,
1039
+ E as userInsertSchema,
1040
+ yt as userResponseSchema,
1041
+ j as userSchema,
1042
+ kt as vendorSettingsSchema,
1043
+ Y as verificationMethodsSchema,
1044
+ bt as widgetSchema
992
1045
  };