@authhero/adapter-interfaces 0.61.0 → 0.62.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 ft = t.object({
2
+ const ut = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
6
6
  }), r = t.object({
7
7
  created_at: t.string(),
8
8
  updated_at: t.string()
9
- }), f = t.object({
9
+ }), m = 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 ft = 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()), S = t.object({
18
+ }).catchall(t.any()), h = t.object({
19
19
  connection: t.string(),
20
20
  user_id: t.string(),
21
21
  provider: t.string(),
@@ -23,7 +23,7 @@ const ft = 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: f.optional()
26
+ profileData: m.optional()
27
27
  }), l = t.object({
28
28
  email: t.string().optional().transform((e) => e && e.toLowerCase()),
29
29
  username: t.string().optional(),
@@ -39,7 +39,7 @@ const ft = 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
- }), E = l.extend({
42
+ }), b = l.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 ft = t.object({
48
48
  provider: t.string().default("email"),
49
49
  connection: t.string().default("email"),
50
50
  is_social: t.boolean().optional()
51
- }), I = t.object({
52
- ...E.shape,
51
+ }), f = t.object({
52
+ ...b.shape,
53
53
  ...r.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(S).optional()
59
- }), St = I, Et = l.extend({
58
+ identities: t.array(h).optional()
59
+ }), _t = f, mt = l.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()), C = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let O = (e = 21) => {
67
- let i = "", o = crypto.getRandomValues(new Uint8Array(e));
65
+ }).catchall(t.any()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
+ let E = (e = 21) => {
67
+ let i = "", a = crypto.getRandomValues(new Uint8Array(e));
68
68
  for (; e--; )
69
- i += C[o[e] & 63];
69
+ i += S[a[e] & 63];
70
70
  return i;
71
71
  };
72
- const j = t.object({
72
+ const y = 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
- }), w = t.object({
89
+ }), j = t.object({
90
90
  id: t.string(),
91
91
  name: t.string(),
92
92
  callbacks: t.array(t.string()).default([]).optional().openapi({
@@ -105,22 +105,22 @@ 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: y.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(() => O()).optional(),
115
+ client_secret: t.string().default(() => E()).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
- }), k = t.object({
119
+ }), I = t.object({
120
120
  created_at: t.string().transform((e) => e === null ? "" : e),
121
121
  updated_at: t.string().transform((e) => e === null ? "" : e),
122
- ...w.shape
123
- }), a = t.object({
122
+ ...j.shape
123
+ }), o = t.object({
124
124
  x: t.number(),
125
125
  y: t.number()
126
126
  });
@@ -129,7 +129,7 @@ const s = t.object({
129
129
  id: t.string(),
130
130
  category: t.nativeEnum(p),
131
131
  type: t.nativeEnum(c)
132
- }), A = s.extend({
132
+ }), w = s.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
- }), v = s.extend({
144
+ }), C = s.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
- }), N = s.extend({
166
+ }), k = s.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
- }), y = s.extend({
180
+ }), O = s.extend({
181
181
  category: t.literal(
182
182
  "FIELD"
183
183
  /* FIELD */
@@ -230,23 +230,28 @@ const s = t.object({
230
230
  label: t.string().optional(),
231
231
  placeholder: t.string().optional()
232
232
  }).passthrough()
233
- }), D = t.union([
234
- A,
235
- v,
236
- N,
237
- y
233
+ }), A = t.object({
234
+ id: t.string(),
235
+ category: t.string(),
236
+ type: t.string()
237
+ }).passthrough(), v = t.union([
238
+ w,
239
+ C,
240
+ k,
241
+ O,
242
+ A
238
243
  ]);
239
- var T = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(T || {});
240
- const R = t.object({
244
+ var N = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(N || {});
245
+ const T = t.object({
241
246
  id: t.string(),
242
247
  type: t.literal(
243
248
  "STEP"
244
249
  /* STEP */
245
250
  ),
246
- coordinates: a,
251
+ coordinates: o,
247
252
  alias: t.string().optional(),
248
253
  config: t.object({
249
- components: t.array(D),
254
+ components: t.array(v),
250
255
  next_node: t.string()
251
256
  }).passthrough()
252
257
  }), U = t.object({
@@ -255,25 +260,33 @@ const R = t.object({
255
260
  "FLOW"
256
261
  /* FLOW */
257
262
  ),
258
- coordinates: a,
263
+ coordinates: o,
259
264
  config: t.object({
260
265
  flow_id: t.string(),
261
266
  next_node: t.string()
262
267
  })
263
- }), x = t.union([R, U]), L = t.object({
268
+ }), D = t.object({
269
+ id: t.string(),
270
+ type: t.string(),
271
+ coordinates: o
272
+ }).passthrough(), x = t.union([
273
+ T,
274
+ U,
275
+ D
276
+ ]), R = t.object({
264
277
  next_node: t.string(),
265
- coordinates: a
278
+ coordinates: o
266
279
  }).passthrough(), P = t.object({
267
280
  resume_flow: t.boolean().optional(),
268
- coordinates: a
269
- }).passthrough(), B = t.object({
281
+ coordinates: o
282
+ }).passthrough(), L = t.object({
270
283
  id: t.string(),
271
284
  name: t.string(),
272
285
  languages: t.object({
273
286
  primary: t.string()
274
287
  }).passthrough(),
275
288
  nodes: t.array(x),
276
- start: L,
289
+ start: R,
277
290
  ending: P,
278
291
  created_at: t.string(),
279
292
  updated_at: t.string(),
@@ -281,17 +294,17 @@ const R = t.object({
281
294
  sdkSrc: t.string().optional(),
282
295
  sdk_src: t.string().optional()
283
296
  }).passthrough()
284
- }).passthrough(), It = B.omit({
297
+ }).passthrough(), ht = L.omit({
285
298
  id: !0,
286
299
  created_at: !0,
287
300
  updated_at: !0
288
301
  });
289
- var d = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(d || {}), g = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(g || {}), u = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(u || {});
290
- const H = t.object({
302
+ var g = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(g || {}), d = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(d || {}), u = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(u || {});
303
+ const B = t.object({
291
304
  client_id: t.string(),
292
305
  act_as: t.string().optional(),
293
- response_type: t.nativeEnum(d).optional(),
294
- response_mode: t.nativeEnum(g).optional(),
306
+ response_type: t.nativeEnum(g).optional(),
307
+ response_mode: t.nativeEnum(d).optional(),
295
308
  redirect_uri: t.string().optional(),
296
309
  audience: t.string().optional(),
297
310
  organization: t.string().optional(),
@@ -305,7 +318,7 @@ const H = t.object({
305
318
  ui_locales: t.string().optional(),
306
319
  // The following fields are not available in Auth0
307
320
  vendor_id: t.string().optional()
308
- }), Ct = t.object({
321
+ }), bt = t.object({
309
322
  colors: t.object({
310
323
  primary: t.string(),
311
324
  page_background: t.object({
@@ -320,7 +333,7 @@ const H = t.object({
320
333
  font: t.object({
321
334
  url: t.string()
322
335
  }).optional()
323
- }), M = t.object({
336
+ }), F = t.object({
324
337
  kid: t.string().optional(),
325
338
  team_id: t.string().optional(),
326
339
  realms: t.string().optional(),
@@ -338,19 +351,19 @@ const H = t.object({
338
351
  from: t.string().optional(),
339
352
  twilio_sid: t.string().optional(),
340
353
  twilio_token: t.string().optional()
341
- }), K = t.object({
354
+ }), H = t.object({
342
355
  id: t.string().optional(),
343
356
  name: t.string(),
344
357
  strategy: t.string(),
345
- options: M.default({}),
358
+ options: F.default({}),
346
359
  enabled_clients: t.array(t.string()).default([]).optional(),
347
360
  response_type: t.custom().optional(),
348
361
  response_mode: t.custom().optional()
349
- }), G = t.object({
362
+ }), K = t.object({
350
363
  id: t.string(),
351
364
  created_at: t.string().transform((e) => e === null ? "" : e),
352
365
  updated_at: t.string().transform((e) => e === null ? "" : e)
353
- }).extend(K.shape), X = t.object({
366
+ }).extend(H.shape), M = t.object({
354
367
  name: t.string(),
355
368
  audience: t.string(),
356
369
  sender_email: t.string().email(),
@@ -361,12 +374,12 @@ const H = t.object({
361
374
  secondary_color: t.string().optional(),
362
375
  language: t.string().optional(),
363
376
  id: t.string().optional()
364
- }), W = t.object({
377
+ }), G = t.object({
365
378
  created_at: t.string().transform((e) => e === null ? "" : e),
366
379
  updated_at: t.string().transform((e) => e === null ? "" : e),
367
- ...X.shape,
380
+ ...M.shape,
368
381
  id: t.string()
369
- }), Ot = t.object({
382
+ }), ft = t.object({
370
383
  logoUrl: t.string(),
371
384
  loginBackgroundImage: t.string().nullish(),
372
385
  style: t.object({
@@ -385,18 +398,18 @@ const H = t.object({
385
398
  manageSubscriptionsUrl: t.string().optional()
386
399
  });
387
400
  t.object({
388
- ...k.shape,
389
- tenant: W,
390
- connections: t.array(G)
401
+ ...I.shape,
402
+ tenant: G,
403
+ connections: t.array(K)
391
404
  });
392
- const F = t.enum([
405
+ const W = t.enum([
393
406
  "password_reset",
394
407
  "email_verification",
395
408
  "otp",
396
409
  "authorization_code",
397
410
  "oauth2_state",
398
411
  "ticket"
399
- ]), q = t.object({
412
+ ]), X = t.object({
400
413
  code_id: t.string().openapi({
401
414
  description: "The code that will be used in for instance an email verification flow"
402
415
  }),
@@ -406,17 +419,17 @@ const F = t.enum([
406
419
  connection_id: t.string().optional().openapi({
407
420
  description: "The connection that the code is connected to"
408
421
  }),
409
- code_type: F,
422
+ code_type: W,
410
423
  code_verifier: t.string().optional().openapi({
411
424
  description: "The code verifier used in PKCE in outbound flows"
412
425
  }),
413
426
  expires_at: t.string(),
414
427
  used_at: t.string().optional(),
415
428
  user_id: t.string().optional()
416
- }), jt = t.object({
417
- ...q.shape,
429
+ }), St = t.object({
430
+ ...X.shape,
418
431
  created_at: t.string()
419
- }), z = t.object({
432
+ }), q = t.object({
420
433
  domain: t.string(),
421
434
  custom_domain_id: t.string().optional(),
422
435
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -430,55 +443,23 @@ const F = t.enum([
430
443
  "null"
431
444
  ]).optional(),
432
445
  domain_metadata: t.record(t.string().max(255)).optional()
433
- }), Q = t.object({
446
+ }), V = t.object({
434
447
  name: t.literal("txt"),
435
448
  record: t.string(),
436
449
  domain: t.string()
437
- }), V = t.object({
438
- ...z.shape,
450
+ }), z = t.object({
451
+ ...q.shape,
439
452
  custom_domain_id: t.string(),
440
453
  primary: t.boolean(),
441
454
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
442
455
  origin_domain_name: t.string().optional(),
443
456
  verification: t.object({
444
- methods: t.array(Q)
457
+ methods: t.array(V)
445
458
  }).optional(),
446
459
  tls_policy: t.string().optional()
447
- }), wt = V.extend({
460
+ }), Et = z.extend({
448
461
  tenant_id: t.string()
449
- });
450
- var _ = /* @__PURE__ */ ((e) => (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))(_ || {}), m = /* @__PURE__ */ ((e) => (e.REQUIRED = "required", e.FORMAT = "format", e.MIN_LENGTH = "min_length", e.MAX_LENGTH = "max_length", e.MIN = "min", e.MAX = "max", e.MATCHING_PATTERN = "matching_pattern", e))(m || {});
451
- const Y = t.object({
452
- type: t.nativeEnum(m),
453
- message: t.string(),
454
- // Additional validation properties
455
- min_length: t.number().optional(),
456
- max_length: t.number().optional(),
457
- min: t.number().optional(),
458
- max: t.number().optional(),
459
- pattern: t.string().optional(),
460
- format: t.string().optional()
461
- }), J = t.object({
462
- label: t.string(),
463
- value: t.string(),
464
- checked: t.boolean().optional()
465
- }), Z = t.object({
466
- id: t.string(),
467
- name: t.string(),
468
- type: t.nativeEnum(_),
469
- label: t.string(),
470
- placeholder: t.string().optional(),
471
- required: t.boolean().optional().default(!1),
472
- disabled: t.boolean().optional().default(!1),
473
- readOnly: t.boolean().optional().default(!1),
474
- defaultValue: t.union([t.string(), t.number(), t.boolean()]).optional(),
475
- validations: t.array(Y).optional(),
476
- options: t.array(J).optional(),
477
- description: t.string().optional(),
478
- order: t.number().optional(),
479
- visible: t.boolean().optional().default(!0),
480
- customizations: t.record(t.string(), t.any()).optional()
481
- }), $ = t.object({
462
+ }), yt = t.object({
482
463
  id: t.string(),
483
464
  type: t.literal("submit"),
484
465
  label: t.string(),
@@ -487,58 +468,88 @@ const Y = t.object({
487
468
  order: t.number().optional(),
488
469
  visible: t.boolean().optional().default(!0),
489
470
  customizations: t.record(t.string(), t.any()).optional()
490
- });
491
- var h = /* @__PURE__ */ ((e) => (e.LOGIN = "login", e.SIGNUP = "signup", e.RESET_PASSWORD = "reset-password", e.MFA = "mfa", e.MFA_ENROLLMENT = "mfa-enrollment", e.VERIFICATION_CODE = "verification-code", e.INVITATION = "invitation", e.CUSTOM = "custom", e))(h || {});
492
- const tt = t.object({
471
+ }), Q = t.object({
493
472
  name: t.string().openapi({
494
473
  description: "The name of the form"
495
474
  }),
496
- type: t.nativeEnum(h).openapi({
497
- description: "The type of the form"
498
- }),
499
- client_id: t.string().optional().openapi({
500
- description: "The client ID the form is associated with"
501
- }),
502
- fields: t.array(Z).openapi({
503
- description: "The fields in the form"
504
- }),
505
- controls: t.array($).optional().openapi({
506
- description: "The controls (like submit buttons) in the form"
507
- }),
508
- redirect_uri: t.string().optional().openapi({
509
- description: "The URI to redirect to after form submission"
510
- }),
511
- post_submit_action: t.enum(["redirect", "message"]).optional().openapi({
512
- description: "The action to take after form submission",
513
- example: "redirect"
514
- }),
515
- success_message: t.string().optional().openapi({
516
- description: "Message to display on successful form submission"
517
- }),
518
- language: t.string().optional().openapi({
519
- description: "The language code for the form",
520
- example: "en"
521
- }),
522
- active: t.boolean().default(!0).openapi({
523
- description: "Whether the form is active or not"
524
- }),
525
- layout: t.object({
526
- columns: t.number().optional().default(1),
527
- template: t.string().optional()
528
- }).optional().openapi({
529
- description: "Layout settings for the form"
530
- }),
531
- css: t.string().optional().openapi({
532
- description: "Custom CSS for the form"
533
- }),
534
- javascript: t.string().optional().openapi({
535
- description: "Custom JavaScript for the form"
536
- })
537
- }), kt = t.object({
475
+ messages: t.object({
476
+ errors: t.record(t.string(), t.any()).optional(),
477
+ custom: t.record(t.string(), t.any()).optional()
478
+ }).optional(),
479
+ languages: t.object({
480
+ primary: t.string().optional(),
481
+ default: t.string().optional()
482
+ }).optional(),
483
+ translations: t.record(t.string(), t.any()).optional(),
484
+ nodes: t.array(
485
+ t.discriminatedUnion("type", [
486
+ // FLOW node
487
+ t.object({
488
+ id: t.string(),
489
+ type: t.literal("FLOW"),
490
+ coordinates: t.object({ x: t.number(), y: t.number() }),
491
+ alias: t.string().min(1).max(150),
492
+ config: t.object({
493
+ flow_id: t.string().max(30),
494
+ next_node: t.array(t.string())
495
+ // Accepts string[] (forms-custom-identifier or "$ending")
496
+ })
497
+ }),
498
+ // ROUTER node
499
+ t.object({
500
+ id: t.string(),
501
+ type: t.literal("ROUTER"),
502
+ coordinates: t.object({ x: t.number(), y: t.number() }),
503
+ alias: t.string().min(1).max(150),
504
+ config: t.object({
505
+ rules: t.array(
506
+ t.object({
507
+ id: t.string(),
508
+ alias: t.string().min(1).max(150),
509
+ condition: t.any(),
510
+ // condition is required but type is not specified
511
+ next_node: t.array(t.string())
512
+ })
513
+ ),
514
+ fallback: t.array(t.string())
515
+ })
516
+ }),
517
+ // STEP node
518
+ t.object({
519
+ id: t.string(),
520
+ type: t.literal("STEP"),
521
+ coordinates: t.object({ x: t.number(), y: t.number() }),
522
+ alias: t.string().min(1).max(150),
523
+ config: t.object({
524
+ components: t.array(t.any()),
525
+ // components is an array of objects, structure not specified
526
+ next_node: t.array(t.string())
527
+ })
528
+ })
529
+ ])
530
+ ).optional(),
531
+ start: t.object({
532
+ hidden_fields: t.array(t.object({ key: t.string(), value: t.string() })).optional(),
533
+ next_node: t.array(t.string()).optional(),
534
+ coordinates: t.object({ x: t.number(), y: t.number() }).optional()
535
+ }).optional(),
536
+ ending: t.object({
537
+ redirection: t.object({
538
+ delay: t.number().optional(),
539
+ target: t.string().optional()
540
+ }).optional(),
541
+ after_submit: t.object({ flow_id: t.string().optional() }).optional(),
542
+ coordinates: t.object({ x: t.number(), y: t.number() }).optional(),
543
+ resume_flow: t.boolean().optional()
544
+ }).optional(),
545
+ style: t.object({ css: t.string().optional() }).optional()
546
+ }).openapi({
547
+ description: "Schema for flow-based forms (matches new JSON structure)"
548
+ }), jt = t.object({
538
549
  ...r.shape,
539
- ...tt.shape,
550
+ ...Q.shape,
540
551
  id: t.string()
541
- }), et = t.object({
552
+ }), Y = t.object({
542
553
  trigger_id: t.enum([
543
554
  "pre-user-signup",
544
555
  "post-user-registration",
@@ -549,10 +560,10 @@ const tt = t.object({
549
560
  hook_id: t.string().optional(),
550
561
  synchronous: t.boolean().default(!1),
551
562
  priority: t.number().optional()
552
- }), At = et.extend({
563
+ }), It = Y.extend({
553
564
  ...r.shape,
554
565
  hook_id: t.string()
555
- }), nt = t.object({
566
+ }), J = t.object({
556
567
  alg: t.enum([
557
568
  "RS256",
558
569
  "RS384",
@@ -571,9 +582,9 @@ const tt = t.object({
571
582
  x5t: t.string().optional(),
572
583
  x5c: t.array(t.string()).optional(),
573
584
  use: t.enum(["sig", "enc"]).optional()
574
- }), vt = t.object({
575
- keys: t.array(nt)
576
- }), Nt = t.object({
585
+ }), wt = t.object({
586
+ keys: t.array(J)
587
+ }), Ct = t.object({
577
588
  issuer: t.string(),
578
589
  authorization_endpoint: t.string(),
579
590
  token_endpoint: t.string(),
@@ -594,10 +605,10 @@ const tt = t.object({
594
605
  request_uri_parameter_supported: t.boolean(),
595
606
  request_parameter_supported: t.boolean(),
596
607
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
597
- }), it = t.object({
608
+ }), Z = t.object({
598
609
  csrf_token: t.string(),
599
610
  auth0Client: t.string().optional(),
600
- authParams: H,
611
+ authParams: B,
601
612
  expires_at: t.string(),
602
613
  deleted_at: t.string().optional(),
603
614
  ip: t.string().optional(),
@@ -606,16 +617,16 @@ const tt = t.object({
606
617
  authorization_url: t.string().optional()
607
618
  }).openapi({
608
619
  description: "This represents a login sesion"
609
- }), yt = t.object({
610
- ...it.shape,
620
+ }), kt = t.object({
621
+ ...Z.shape,
611
622
  id: t.string().openapi({
612
623
  description: "This is is used as the state in the universal login"
613
624
  }),
614
625
  created_at: t.string(),
615
626
  updated_at: t.string()
616
627
  });
617
- var ot = /* @__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))(ot || {});
618
- const at = t.enum([
628
+ var $ = /* @__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))($ || {});
629
+ const tt = t.enum([
619
630
  "cls",
620
631
  // CODE_LINK_SENT
621
632
  "fsa",
@@ -664,14 +675,14 @@ const at = t.enum([
664
675
  // SUCCESS_VERIFICATION_EMAIL
665
676
  "svr"
666
677
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
667
- ]), st = t.object({
678
+ ]), et = t.object({
668
679
  name: t.string(),
669
680
  version: t.string(),
670
681
  env: t.object({
671
682
  node: t.string().optional()
672
683
  }).optional()
673
- }), Dt = t.object({
674
- type: at,
684
+ }), Ot = t.object({
685
+ type: tt,
675
686
  date: t.string(),
676
687
  description: t.string().optional(),
677
688
  log_id: t.string().optional(),
@@ -692,40 +703,40 @@ const at = t.enum([
692
703
  strategy: t.string().optional(),
693
704
  strategy_type: t.string().optional(),
694
705
  hostname: t.string().optional(),
695
- auth0_client: st.optional()
696
- }), rt = t.object({
706
+ auth0_client: et.optional()
707
+ }), nt = t.object({
697
708
  user_id: t.string(),
698
709
  password: t.string(),
699
710
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
700
- }), Tt = t.object({
701
- ...rt.shape,
711
+ }), At = t.object({
712
+ ...nt.shape,
702
713
  created_at: t.string(),
703
714
  updated_at: t.string()
704
- }), b = t.object({
715
+ }), _ = t.object({
705
716
  initial_user_agent: t.string().describe("First user agent of the device from which this user logged in"),
706
717
  initial_ip: t.string().describe("First IP address associated with this session"),
707
718
  initial_asn: t.string().describe("First autonomous system number associated with this session"),
708
719
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
709
720
  last_ip: t.string().describe("Last IP address from which this user logged in"),
710
721
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
711
- }), lt = t.object({
722
+ }), it = t.object({
712
723
  id: t.string(),
713
724
  revoked_at: t.string().optional(),
714
725
  used_at: t.string().optional(),
715
726
  user_id: t.string().describe("The user ID associated with the session"),
716
727
  expires_at: t.string().optional(),
717
728
  idle_expires_at: t.string().optional(),
718
- device: b.describe(
729
+ device: _.describe(
719
730
  "Metadata related to the device used in the session"
720
731
  ),
721
732
  clients: t.array(t.string()).describe("List of client details for the session")
722
- }), Rt = t.object({
733
+ }), vt = t.object({
723
734
  created_at: t.string(),
724
735
  updated_at: t.string(),
725
736
  authenticated_at: t.string(),
726
737
  last_interaction_at: t.string(),
727
- ...lt.shape
728
- }), Ut = t.object({
738
+ ...it.shape
739
+ }), Nt = t.object({
729
740
  kid: t.string().openapi({ description: "The key id of the signing key" }),
730
741
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
731
742
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -745,8 +756,8 @@ const at = t.enum([
745
756
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
746
757
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
747
758
  });
748
- var ct = /* @__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))(ct || {});
749
- const xt = t.object({
759
+ var ot = /* @__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))(ot || {});
760
+ const Tt = t.object({
750
761
  access_token: t.string(),
751
762
  id_token: t.string().optional(),
752
763
  scope: t.string().optional(),
@@ -759,7 +770,7 @@ t.object({
759
770
  code: t.string(),
760
771
  state: t.string().optional()
761
772
  });
762
- const pt = t.object({
773
+ const at = t.object({
763
774
  button_border_radius: t.number(),
764
775
  button_border_weight: t.number(),
765
776
  buttons_style: t.enum(["pill"]),
@@ -769,7 +780,7 @@ const pt = t.object({
769
780
  show_widget_shadow: t.boolean(),
770
781
  widget_border_weight: t.number(),
771
782
  widget_corner_radius: t.number()
772
- }), dt = t.object({
783
+ }), st = t.object({
773
784
  base_focus_color: t.string(),
774
785
  base_hover_color: t.string(),
775
786
  body_text: t.string(),
@@ -792,7 +803,7 @@ const pt = t.object({
792
803
  }), n = t.object({
793
804
  bold: t.boolean(),
794
805
  size: t.number()
795
- }), gt = t.object({
806
+ }), rt = t.object({
796
807
  body_text: n,
797
808
  buttons_text: n,
798
809
  font_url: t.string(),
@@ -802,31 +813,31 @@ const pt = t.object({
802
813
  reference_text_size: t.number(),
803
814
  subtitle: n,
804
815
  title: n
805
- }), ut = t.object({
816
+ }), lt = t.object({
806
817
  background_color: t.string(),
807
818
  background_image_url: t.string(),
808
819
  page_layout: t.enum(["center"])
809
- }), _t = t.object({
820
+ }), ct = t.object({
810
821
  header_text_alignment: t.enum(["center"]),
811
822
  logo_height: t.number(),
812
823
  logo_position: t.enum(["center"]),
813
824
  logo_url: t.string(),
814
825
  social_buttons_layout: t.enum(["bottom"])
815
- }), mt = t.object({
816
- borders: pt,
817
- colors: dt,
826
+ }), pt = t.object({
827
+ borders: at,
828
+ colors: st,
818
829
  displayName: t.string(),
819
- fonts: gt,
820
- page_background: ut,
821
- widget: _t
822
- }), Lt = mt.extend({
830
+ fonts: rt,
831
+ page_background: lt,
832
+ widget: ct
833
+ }), Ut = pt.extend({
823
834
  themeId: t.string()
824
- }), Pt = t.object({
835
+ }), Dt = t.object({
825
836
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
826
837
  identifier_first: t.boolean().default(!0),
827
838
  password_first: t.boolean().default(!1),
828
839
  webauthn_platform_first_factor: t.boolean()
829
- }), Bt = t.object({
840
+ }), xt = t.object({
830
841
  name: t.string(),
831
842
  enabled: t.boolean().optional().default(!0),
832
843
  default_from_address: t.string().optional(),
@@ -856,7 +867,7 @@ const pt = t.object({
856
867
  })
857
868
  ]),
858
869
  settings: t.object({}).optional()
859
- }), ht = t.object({
870
+ }), gt = t.object({
860
871
  // The actual refresh token value (primary key).
861
872
  id: t.string(),
862
873
  // Link to the session record
@@ -869,7 +880,7 @@ const pt = t.object({
869
880
  idle_expires_at: t.string().optional(),
870
881
  // When the token was last used.
871
882
  last_exchanged_at: t.string().optional(),
872
- device: b,
883
+ device: _,
873
884
  resource_servers: t.array(
874
885
  t.object({
875
886
  audience: t.string(),
@@ -877,109 +888,105 @@ const pt = t.object({
877
888
  })
878
889
  ),
879
890
  rotating: t.boolean()
880
- }), Ht = t.object({
891
+ }), Rt = t.object({
881
892
  // When the refresh token record was created.
882
893
  created_at: t.string(),
883
894
  // Spread in the rest of the refresh token properties.
884
- ...ht.shape
885
- }), Mt = t.object({
895
+ ...gt.shape
896
+ }), Pt = t.object({
886
897
  to: t.string(),
887
898
  message: t.string()
888
- }), Kt = t.object({
899
+ }), Lt = t.object({
889
900
  name: t.string(),
890
901
  options: t.object({})
891
902
  });
892
- function Gt(e) {
893
- const [i, o] = e.split("|");
894
- if (!i || !o)
903
+ function Bt(e) {
904
+ const [i, a] = e.split("|");
905
+ if (!i || !a)
895
906
  throw new Error(`Invalid user_id: ${e}`);
896
- return { connection: i, id: o };
907
+ return { connection: i, id: a };
897
908
  }
898
909
  export {
899
- st as Auth0Client,
900
- g as AuthorizationResponseMode,
901
- d as AuthorizationResponseType,
910
+ et as Auth0Client,
911
+ d as AuthorizationResponseMode,
912
+ g as AuthorizationResponseType,
902
913
  u as CodeChallengeMethod,
903
914
  p as ComponentCategory,
904
915
  c as ComponentType,
905
- _ as FormFieldType,
906
- h as FormType,
907
- ct as GrantType,
908
- ot as LogTypes,
909
- T as NodeType,
910
- m as ValidationErrorType,
911
- w as applicationInsertSchema,
912
- k as applicationSchema,
913
- It as auth0FlowInsertSchema,
914
- B as auth0FlowSchema,
915
- St as auth0UserResponseSchema,
916
- H as authParamsSchema,
916
+ ot as GrantType,
917
+ $ as LogTypes,
918
+ N as NodeType,
919
+ j as applicationInsertSchema,
920
+ I as applicationSchema,
921
+ ht as auth0FlowInsertSchema,
922
+ L as auth0FlowSchema,
923
+ _t as auth0UserResponseSchema,
924
+ B as authParamsSchema,
917
925
  l as baseUserSchema,
918
- pt as bordersSchema,
919
- Ct as brandingSchema,
920
- v as buttonComponentSchema,
921
- q as codeInsertSchema,
922
- jt as codeSchema,
923
- F as codeTypeSchema,
924
- dt as colorsSchema,
925
- D as componentSchema,
926
- K as connectionInsertSchema,
927
- M as connectionOptionsSchema,
928
- G as connectionSchema,
929
- a as coordinatesSchema,
930
- z as customDomainInsertSchema,
931
- V as customDomainSchema,
932
- wt as customDomainWithTenantIdSchema,
933
- Bt as emailProviderSchema,
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,
934
942
  P as endingSchema,
935
- y as fieldComponentSchema,
943
+ O as fieldComponentSchema,
936
944
  U as flowNodeSchema,
937
945
  n as fontDetailsSchema,
938
- gt as fontsSchema,
939
- $ as formControlSchema,
940
- J as formFieldOptionSchema,
941
- Z as formFieldSchema,
942
- Y as formFieldValidationSchema,
943
- tt as formInsertSchema,
944
- kt as formSchema,
945
- et as hookInsertSchema,
946
- At as hookSchema,
947
- S as identitySchema,
948
- vt as jwksKeySchema,
949
- nt as jwksSchema,
950
- N as legalComponentSchema,
951
- Dt as logSchema,
952
- it as loginSessionInsertSchema,
953
- yt as loginSessionSchema,
946
+ rt as fontsSchema,
947
+ yt as formControlSchema,
948
+ Q as formInsertSchema,
949
+ jt 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,
954
961
  x as nodeSchema,
955
- Nt as openIDConfigurationSchema,
956
- ut as pageBackgroundSchema,
957
- Gt as parseUserId,
958
- rt as passwordInsertSchema,
959
- Tt as passwordSchema,
960
- f as profileDataSchema,
961
- Pt as promptSettingSchema,
962
- ht as refreshTokenInsertSchema,
963
- Ht as refreshTokenSchema,
964
- A as richTextComponentSchema,
965
- j as samlpAddon,
966
- lt as sessionInsertSchema,
967
- Rt as sessionSchema,
968
- Ut as signingKeySchema,
969
- Kt as smsProviderSchema,
970
- Mt as smsSendParamsSchema,
971
- L as startSchema,
972
- R as stepNodeSchema,
973
- X as tenantInsertSchema,
974
- W as tenantSchema,
975
- mt as themeInsertSchema,
976
- Lt as themeSchema,
977
- xt as tokenResponseSchema,
978
- ft as totalsSchema,
979
- E as userInsertSchema,
980
- Et as userResponseSchema,
981
- I as userSchema,
982
- Ot as vendorSettingsSchema,
983
- Q as verificationMethodsSchema,
984
- _t as widgetSchema
962
+ Ct as openIDConfigurationSchema,
963
+ lt as pageBackgroundSchema,
964
+ Bt as parseUserId,
965
+ nt 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
+ y 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
985
992
  };