@authhero/adapter-interfaces 0.59.0 → 0.61.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 V = t.object({
2
+ const ft = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
6
- }), s = t.object({
6
+ }), r = t.object({
7
7
  created_at: t.string(),
8
8
  updated_at: t.string()
9
- }), d = 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 V = 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()), g = 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 V = 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: d.optional()
27
- }), a = t.object({
28
- email: t.string().optional(),
26
+ profileData: f.optional()
27
+ }), l = 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 V = 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
- }), _ = a.extend({
42
+ }), E = 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,30 +48,28 @@ const V = t.object({
48
48
  provider: t.string().default("email"),
49
49
  connection: t.string().default("email"),
50
50
  is_social: t.boolean().optional()
51
- }), u = t.object({
52
- ..._.shape,
53
- ...s.shape,
51
+ }), I = t.object({
52
+ ...E.shape,
53
+ ...r.shape,
54
54
  user_id: t.string(),
55
55
  is_social: t.boolean(),
56
- // TODO: this not might be correct if you use the username
57
56
  email: t.string().optional(),
58
- login_count: t.number(),
59
- identities: t.array(g).optional()
60
- }), Y = u, X = a.extend({
61
- email: t.string(),
57
+ login_count: t.number().default(0),
58
+ identities: t.array(S).optional()
59
+ }), St = I, Et = l.extend({
62
60
  login_count: t.number(),
63
61
  multifactor: t.array(t.string()).optional(),
64
62
  last_ip: t.string().optional(),
65
63
  last_login: t.string().optional(),
66
64
  user_id: t.string()
67
- }).catchall(t.any()), m = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
68
- let h = (n = 21) => {
69
- let i = "", o = crypto.getRandomValues(new Uint8Array(n));
70
- for (; n--; )
71
- i += m[o[n] & 63];
65
+ }).catchall(t.any()), C = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
+ let O = (e = 21) => {
67
+ let i = "", o = crypto.getRandomValues(new Uint8Array(e));
68
+ for (; e--; )
69
+ i += C[o[e] & 63];
72
70
  return i;
73
71
  };
74
- const b = t.object({
72
+ const j = t.object({
75
73
  audience: t.string().optional(),
76
74
  recipient: t.string().optional(),
77
75
  createUpnClaim: t.boolean().optional(),
@@ -88,7 +86,7 @@ const b = t.object({
88
86
  nameIdentifierProbes: t.array(t.string()).optional(),
89
87
  authnContextClassRef: t.string().optional(),
90
88
  mappings: t.record(t.string()).optional()
91
- }), f = t.object({
89
+ }), w = t.object({
92
90
  id: t.string(),
93
91
  name: t.string(),
94
92
  callbacks: t.array(t.string()).default([]).optional().openapi({
@@ -107,28 +105,193 @@ const b = t.object({
107
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"
108
106
  }),
109
107
  addons: t.object({
110
- samlp: b.optional()
108
+ samlp: j.optional()
111
109
  }).default({}).optional().openapi({
112
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."
113
111
  }),
114
112
  email_validation: t.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
115
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"
116
114
  }),
117
- client_secret: t.string().default(() => h()).optional(),
115
+ client_secret: t.string().default(() => O()).optional(),
118
116
  disable_sign_ups: t.boolean().optional().default(!1).openapi({
119
117
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
120
118
  })
121
- }), S = t.object({
122
- created_at: t.string().transform((n) => n === null ? "" : n),
123
- updated_at: t.string().transform((n) => n === null ? "" : n),
124
- ...f.shape
119
+ }), k = t.object({
120
+ created_at: t.string().transform((e) => e === null ? "" : e),
121
+ updated_at: t.string().transform((e) => e === null ? "" : e),
122
+ ...w.shape
123
+ }), a = t.object({
124
+ x: t.number(),
125
+ y: t.number()
126
+ });
127
+ var c = /* @__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))(c || {}), p = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(p || {});
128
+ const s = t.object({
129
+ id: t.string(),
130
+ category: t.nativeEnum(p),
131
+ type: t.nativeEnum(c)
132
+ }), A = s.extend({
133
+ category: t.literal(
134
+ "BLOCK"
135
+ /* BLOCK */
136
+ ),
137
+ type: t.literal(
138
+ "RICH_TEXT"
139
+ /* RICH_TEXT */
140
+ ),
141
+ config: t.object({
142
+ content: t.string()
143
+ }).passthrough()
144
+ }), v = s.extend({
145
+ category: t.literal(
146
+ "BLOCK"
147
+ /* BLOCK */
148
+ ),
149
+ type: t.union([
150
+ t.literal(
151
+ "NEXT_BUTTON"
152
+ /* NEXT_BUTTON */
153
+ ),
154
+ t.literal(
155
+ "BACK_BUTTON"
156
+ /* BACK_BUTTON */
157
+ ),
158
+ t.literal(
159
+ "SUBMIT_BUTTON"
160
+ /* SUBMIT_BUTTON */
161
+ )
162
+ ]),
163
+ config: t.object({
164
+ text: t.string()
165
+ }).passthrough()
166
+ }), N = s.extend({
167
+ category: t.literal(
168
+ "FIELD"
169
+ /* FIELD */
170
+ ),
171
+ type: t.literal(
172
+ "LEGAL"
173
+ /* LEGAL */
174
+ ),
175
+ required: t.boolean().optional(),
176
+ sensitive: t.boolean().optional(),
177
+ config: t.object({
178
+ text: t.string()
179
+ }).passthrough()
180
+ }), y = s.extend({
181
+ category: t.literal(
182
+ "FIELD"
183
+ /* FIELD */
184
+ ),
185
+ type: t.union([
186
+ t.literal(
187
+ "TEXT"
188
+ /* TEXT */
189
+ ),
190
+ t.literal(
191
+ "EMAIL"
192
+ /* EMAIL */
193
+ ),
194
+ t.literal(
195
+ "PASSWORD"
196
+ /* PASSWORD */
197
+ ),
198
+ t.literal(
199
+ "NUMBER"
200
+ /* NUMBER */
201
+ ),
202
+ t.literal(
203
+ "PHONE"
204
+ /* PHONE */
205
+ ),
206
+ t.literal(
207
+ "DATE"
208
+ /* DATE */
209
+ ),
210
+ t.literal(
211
+ "CHECKBOX"
212
+ /* CHECKBOX */
213
+ ),
214
+ t.literal(
215
+ "RADIO"
216
+ /* RADIO */
217
+ ),
218
+ t.literal(
219
+ "SELECT"
220
+ /* SELECT */
221
+ ),
222
+ t.literal(
223
+ "HIDDEN"
224
+ /* HIDDEN */
225
+ )
226
+ ]),
227
+ required: t.boolean().optional(),
228
+ sensitive: t.boolean().optional(),
229
+ config: t.object({
230
+ label: t.string().optional(),
231
+ placeholder: t.string().optional()
232
+ }).passthrough()
233
+ }), D = t.union([
234
+ A,
235
+ v,
236
+ N,
237
+ y
238
+ ]);
239
+ var T = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(T || {});
240
+ const R = t.object({
241
+ id: t.string(),
242
+ type: t.literal(
243
+ "STEP"
244
+ /* STEP */
245
+ ),
246
+ coordinates: a,
247
+ alias: t.string().optional(),
248
+ config: t.object({
249
+ components: t.array(D),
250
+ next_node: t.string()
251
+ }).passthrough()
252
+ }), U = t.object({
253
+ id: t.string(),
254
+ type: t.literal(
255
+ "FLOW"
256
+ /* FLOW */
257
+ ),
258
+ coordinates: a,
259
+ config: t.object({
260
+ flow_id: t.string(),
261
+ next_node: t.string()
262
+ })
263
+ }), x = t.union([R, U]), L = t.object({
264
+ next_node: t.string(),
265
+ coordinates: a
266
+ }).passthrough(), P = t.object({
267
+ resume_flow: t.boolean().optional(),
268
+ coordinates: a
269
+ }).passthrough(), B = t.object({
270
+ id: t.string(),
271
+ name: t.string(),
272
+ languages: t.object({
273
+ primary: t.string()
274
+ }).passthrough(),
275
+ nodes: t.array(x),
276
+ start: L,
277
+ ending: P,
278
+ created_at: t.string(),
279
+ updated_at: t.string(),
280
+ links: t.object({
281
+ sdkSrc: t.string().optional(),
282
+ sdk_src: t.string().optional()
283
+ }).passthrough()
284
+ }).passthrough(), It = B.omit({
285
+ id: !0,
286
+ created_at: !0,
287
+ updated_at: !0
125
288
  });
126
- var r = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(r || {}), l = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(l || {}), c = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(c || {});
127
- const y = t.object({
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({
128
291
  client_id: t.string(),
129
292
  act_as: t.string().optional(),
130
- response_type: t.nativeEnum(r).optional(),
131
- response_mode: t.nativeEnum(l).optional(),
293
+ response_type: t.nativeEnum(d).optional(),
294
+ response_mode: t.nativeEnum(g).optional(),
132
295
  redirect_uri: t.string().optional(),
133
296
  audience: t.string().optional(),
134
297
  organization: t.string().optional(),
@@ -136,13 +299,13 @@ const y = t.object({
136
299
  nonce: t.string().optional(),
137
300
  scope: t.string().optional(),
138
301
  prompt: t.string().optional(),
139
- code_challenge_method: t.nativeEnum(c).optional(),
302
+ code_challenge_method: t.nativeEnum(u).optional(),
140
303
  code_challenge: t.string().optional(),
141
304
  username: t.string().optional(),
142
305
  ui_locales: t.string().optional(),
143
306
  // The following fields are not available in Auth0
144
307
  vendor_id: t.string().optional()
145
- }), J = t.object({
308
+ }), Ct = t.object({
146
309
  colors: t.object({
147
310
  primary: t.string(),
148
311
  page_background: t.object({
@@ -157,7 +320,7 @@ const y = t.object({
157
320
  font: t.object({
158
321
  url: t.string()
159
322
  }).optional()
160
- }), E = t.object({
323
+ }), M = t.object({
161
324
  kid: t.string().optional(),
162
325
  team_id: t.string().optional(),
163
326
  realms: t.string().optional(),
@@ -175,19 +338,19 @@ const y = t.object({
175
338
  from: t.string().optional(),
176
339
  twilio_sid: t.string().optional(),
177
340
  twilio_token: t.string().optional()
178
- }), w = t.object({
341
+ }), K = t.object({
179
342
  id: t.string().optional(),
180
343
  name: t.string(),
181
344
  strategy: t.string(),
182
- options: E.default({}),
345
+ options: M.default({}),
183
346
  enabled_clients: t.array(t.string()).default([]).optional(),
184
347
  response_type: t.custom().optional(),
185
348
  response_mode: t.custom().optional()
186
- }), k = t.object({
349
+ }), G = t.object({
187
350
  id: t.string(),
188
- created_at: t.string().transform((n) => n === null ? "" : n),
189
- updated_at: t.string().transform((n) => n === null ? "" : n)
190
- }).extend(w.shape), C = t.object({
351
+ created_at: t.string().transform((e) => e === null ? "" : e),
352
+ updated_at: t.string().transform((e) => e === null ? "" : e)
353
+ }).extend(K.shape), X = t.object({
191
354
  name: t.string(),
192
355
  audience: t.string(),
193
356
  sender_email: t.string().email(),
@@ -198,12 +361,12 @@ const y = t.object({
198
361
  secondary_color: t.string().optional(),
199
362
  language: t.string().optional(),
200
363
  id: t.string().optional()
201
- }), I = t.object({
202
- created_at: t.string().transform((n) => n === null ? "" : n),
203
- updated_at: t.string().transform((n) => n === null ? "" : n),
204
- ...C.shape,
364
+ }), W = t.object({
365
+ created_at: t.string().transform((e) => e === null ? "" : e),
366
+ updated_at: t.string().transform((e) => e === null ? "" : e),
367
+ ...X.shape,
205
368
  id: t.string()
206
- }), Z = t.object({
369
+ }), Ot = t.object({
207
370
  logoUrl: t.string(),
208
371
  loginBackgroundImage: t.string().nullish(),
209
372
  style: t.object({
@@ -222,18 +385,18 @@ const y = t.object({
222
385
  manageSubscriptionsUrl: t.string().optional()
223
386
  });
224
387
  t.object({
225
- ...S.shape,
226
- tenant: I,
227
- connections: t.array(k)
388
+ ...k.shape,
389
+ tenant: W,
390
+ connections: t.array(G)
228
391
  });
229
- const j = t.enum([
392
+ const F = t.enum([
230
393
  "password_reset",
231
394
  "email_verification",
232
395
  "otp",
233
396
  "authorization_code",
234
397
  "oauth2_state",
235
398
  "ticket"
236
- ]), v = t.object({
399
+ ]), q = t.object({
237
400
  code_id: t.string().openapi({
238
401
  description: "The code that will be used in for instance an email verification flow"
239
402
  }),
@@ -243,17 +406,17 @@ const j = t.enum([
243
406
  connection_id: t.string().optional().openapi({
244
407
  description: "The connection that the code is connected to"
245
408
  }),
246
- code_type: j,
409
+ code_type: F,
247
410
  code_verifier: t.string().optional().openapi({
248
411
  description: "The code verifier used in PKCE in outbound flows"
249
412
  }),
250
413
  expires_at: t.string(),
251
414
  used_at: t.string().optional(),
252
415
  user_id: t.string().optional()
253
- }), $ = t.object({
254
- ...v.shape,
416
+ }), jt = t.object({
417
+ ...q.shape,
255
418
  created_at: t.string()
256
- }), A = t.object({
419
+ }), z = t.object({
257
420
  domain: t.string(),
258
421
  custom_domain_id: t.string().optional(),
259
422
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -267,23 +430,115 @@ const j = t.enum([
267
430
  "null"
268
431
  ]).optional(),
269
432
  domain_metadata: t.record(t.string().max(255)).optional()
270
- }), O = t.object({
433
+ }), Q = t.object({
271
434
  name: t.literal("txt"),
272
435
  record: t.string(),
273
436
  domain: t.string()
274
- }), N = t.object({
275
- ...A.shape,
437
+ }), V = t.object({
438
+ ...z.shape,
276
439
  custom_domain_id: t.string(),
277
440
  primary: t.boolean(),
278
441
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
279
442
  origin_domain_name: t.string().optional(),
280
443
  verification: t.object({
281
- methods: t.array(O)
444
+ methods: t.array(Q)
282
445
  }).optional(),
283
446
  tls_policy: t.string().optional()
284
- }), tt = N.extend({
447
+ }), wt = V.extend({
285
448
  tenant_id: t.string()
286
- }), U = t.object({
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({
482
+ id: t.string(),
483
+ type: t.literal("submit"),
484
+ label: t.string(),
485
+ className: t.string().optional(),
486
+ disabled: t.boolean().optional().default(!1),
487
+ order: t.number().optional(),
488
+ visible: t.boolean().optional().default(!0),
489
+ 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({
493
+ name: t.string().openapi({
494
+ description: "The name of the form"
495
+ }),
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({
538
+ ...r.shape,
539
+ ...tt.shape,
540
+ id: t.string()
541
+ }), et = t.object({
287
542
  trigger_id: t.enum([
288
543
  "pre-user-signup",
289
544
  "post-user-registration",
@@ -294,10 +549,10 @@ const j = t.enum([
294
549
  hook_id: t.string().optional(),
295
550
  synchronous: t.boolean().default(!1),
296
551
  priority: t.number().optional()
297
- }), nt = U.extend({
298
- ...s.shape,
552
+ }), At = et.extend({
553
+ ...r.shape,
299
554
  hook_id: t.string()
300
- }), R = t.object({
555
+ }), nt = t.object({
301
556
  alg: t.enum([
302
557
  "RS256",
303
558
  "RS384",
@@ -316,9 +571,9 @@ const j = t.enum([
316
571
  x5t: t.string().optional(),
317
572
  x5c: t.array(t.string()).optional(),
318
573
  use: t.enum(["sig", "enc"]).optional()
319
- }), et = t.object({
320
- keys: t.array(R)
321
- }), it = t.object({
574
+ }), vt = t.object({
575
+ keys: t.array(nt)
576
+ }), Nt = t.object({
322
577
  issuer: t.string(),
323
578
  authorization_endpoint: t.string(),
324
579
  token_endpoint: t.string(),
@@ -339,10 +594,10 @@ const j = t.enum([
339
594
  request_uri_parameter_supported: t.boolean(),
340
595
  request_parameter_supported: t.boolean(),
341
596
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
342
- }), D = t.object({
597
+ }), it = t.object({
343
598
  csrf_token: t.string(),
344
599
  auth0Client: t.string().optional(),
345
- authParams: y,
600
+ authParams: H,
346
601
  expires_at: t.string(),
347
602
  deleted_at: t.string().optional(),
348
603
  ip: t.string().optional(),
@@ -351,16 +606,16 @@ const j = t.enum([
351
606
  authorization_url: t.string().optional()
352
607
  }).openapi({
353
608
  description: "This represents a login sesion"
354
- }), ot = t.object({
355
- ...D.shape,
609
+ }), yt = t.object({
610
+ ...it.shape,
356
611
  id: t.string().openapi({
357
612
  description: "This is is used as the state in the universal login"
358
613
  }),
359
614
  created_at: t.string(),
360
615
  updated_at: t.string()
361
616
  });
362
- var x = /* @__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))(x || {});
363
- const T = t.enum([
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([
364
619
  "cls",
365
620
  // CODE_LINK_SENT
366
621
  "fsa",
@@ -409,14 +664,14 @@ const T = t.enum([
409
664
  // SUCCESS_VERIFICATION_EMAIL
410
665
  "svr"
411
666
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
412
- ]), P = t.object({
667
+ ]), st = t.object({
413
668
  name: t.string(),
414
669
  version: t.string(),
415
670
  env: t.object({
416
671
  node: t.string().optional()
417
672
  }).optional()
418
- }), st = t.object({
419
- type: T,
673
+ }), Dt = t.object({
674
+ type: at,
420
675
  date: t.string(),
421
676
  description: t.string().optional(),
422
677
  log_id: t.string().optional(),
@@ -437,40 +692,40 @@ const T = t.enum([
437
692
  strategy: t.string().optional(),
438
693
  strategy_type: t.string().optional(),
439
694
  hostname: t.string().optional(),
440
- auth0_client: P.optional()
441
- }), F = t.object({
695
+ auth0_client: st.optional()
696
+ }), rt = t.object({
442
697
  user_id: t.string(),
443
698
  password: t.string(),
444
699
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
445
- }), at = t.object({
446
- ...F.shape,
700
+ }), Tt = t.object({
701
+ ...rt.shape,
447
702
  created_at: t.string(),
448
703
  updated_at: t.string()
449
- }), p = t.object({
704
+ }), b = t.object({
450
705
  initial_user_agent: t.string().describe("First user agent of the device from which this user logged in"),
451
706
  initial_ip: t.string().describe("First IP address associated with this session"),
452
707
  initial_asn: t.string().describe("First autonomous system number associated with this session"),
453
708
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
454
709
  last_ip: t.string().describe("Last IP address from which this user logged in"),
455
710
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
456
- }), H = t.object({
711
+ }), lt = t.object({
457
712
  id: t.string(),
458
713
  revoked_at: t.string().optional(),
459
714
  used_at: t.string().optional(),
460
715
  user_id: t.string().describe("The user ID associated with the session"),
461
716
  expires_at: t.string().optional(),
462
717
  idle_expires_at: t.string().optional(),
463
- device: p.describe(
718
+ device: b.describe(
464
719
  "Metadata related to the device used in the session"
465
720
  ),
466
721
  clients: t.array(t.string()).describe("List of client details for the session")
467
- }), rt = t.object({
722
+ }), Rt = t.object({
468
723
  created_at: t.string(),
469
724
  updated_at: t.string(),
470
725
  authenticated_at: t.string(),
471
726
  last_interaction_at: t.string(),
472
- ...H.shape
473
- }), lt = t.object({
727
+ ...lt.shape
728
+ }), Ut = t.object({
474
729
  kid: t.string().openapi({ description: "The key id of the signing key" }),
475
730
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
476
731
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -490,8 +745,8 @@ const T = t.enum([
490
745
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
491
746
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
492
747
  });
493
- var K = /* @__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))(K || {});
494
- const ct = t.object({
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({
495
750
  access_token: t.string(),
496
751
  id_token: t.string().optional(),
497
752
  scope: t.string().optional(),
@@ -504,7 +759,7 @@ t.object({
504
759
  code: t.string(),
505
760
  state: t.string().optional()
506
761
  });
507
- const G = t.object({
762
+ const pt = t.object({
508
763
  button_border_radius: t.number(),
509
764
  button_border_weight: t.number(),
510
765
  buttons_style: t.enum(["pill"]),
@@ -514,7 +769,7 @@ const G = t.object({
514
769
  show_widget_shadow: t.boolean(),
515
770
  widget_border_weight: t.number(),
516
771
  widget_corner_radius: t.number()
517
- }), L = t.object({
772
+ }), dt = t.object({
518
773
  base_focus_color: t.string(),
519
774
  base_hover_color: t.string(),
520
775
  body_text: t.string(),
@@ -534,44 +789,44 @@ const G = t.object({
534
789
  success: t.string(),
535
790
  widget_background: t.string(),
536
791
  widget_border: t.string()
537
- }), e = t.object({
792
+ }), n = t.object({
538
793
  bold: t.boolean(),
539
794
  size: t.number()
540
- }), B = t.object({
541
- body_text: e,
542
- buttons_text: e,
795
+ }), gt = t.object({
796
+ body_text: n,
797
+ buttons_text: n,
543
798
  font_url: t.string(),
544
- input_labels: e,
545
- links: e,
799
+ input_labels: n,
800
+ links: n,
546
801
  links_style: t.enum(["normal"]),
547
802
  reference_text_size: t.number(),
548
- subtitle: e,
549
- title: e
550
- }), M = t.object({
803
+ subtitle: n,
804
+ title: n
805
+ }), ut = t.object({
551
806
  background_color: t.string(),
552
807
  background_image_url: t.string(),
553
808
  page_layout: t.enum(["center"])
554
- }), W = t.object({
809
+ }), _t = t.object({
555
810
  header_text_alignment: t.enum(["center"]),
556
811
  logo_height: t.number(),
557
812
  logo_position: t.enum(["center"]),
558
813
  logo_url: t.string(),
559
814
  social_buttons_layout: t.enum(["bottom"])
560
- }), q = t.object({
561
- borders: G,
562
- colors: L,
815
+ }), mt = t.object({
816
+ borders: pt,
817
+ colors: dt,
563
818
  displayName: t.string(),
564
- fonts: B,
565
- page_background: M,
566
- widget: W
567
- }), pt = q.extend({
819
+ fonts: gt,
820
+ page_background: ut,
821
+ widget: _t
822
+ }), Lt = mt.extend({
568
823
  themeId: t.string()
569
- }), dt = t.object({
824
+ }), Pt = t.object({
570
825
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
571
826
  identifier_first: t.boolean().default(!0),
572
827
  password_first: t.boolean().default(!1),
573
828
  webauthn_platform_first_factor: t.boolean()
574
- }), gt = t.object({
829
+ }), Bt = t.object({
575
830
  name: t.string(),
576
831
  enabled: t.boolean().optional().default(!0),
577
832
  default_from_address: t.string().optional(),
@@ -601,7 +856,7 @@ const G = t.object({
601
856
  })
602
857
  ]),
603
858
  settings: t.object({}).optional()
604
- }), z = t.object({
859
+ }), ht = t.object({
605
860
  // The actual refresh token value (primary key).
606
861
  id: t.string(),
607
862
  // Link to the session record
@@ -614,7 +869,7 @@ const G = t.object({
614
869
  idle_expires_at: t.string().optional(),
615
870
  // When the token was last used.
616
871
  last_exchanged_at: t.string().optional(),
617
- device: p,
872
+ device: b,
618
873
  resource_servers: t.array(
619
874
  t.object({
620
875
  audience: t.string(),
@@ -622,84 +877,109 @@ const G = t.object({
622
877
  })
623
878
  ),
624
879
  rotating: t.boolean()
625
- }), _t = t.object({
880
+ }), Ht = t.object({
626
881
  // When the refresh token record was created.
627
882
  created_at: t.string(),
628
883
  // Spread in the rest of the refresh token properties.
629
- ...z.shape
630
- }), ut = t.object({
884
+ ...ht.shape
885
+ }), Mt = t.object({
631
886
  to: t.string(),
632
887
  message: t.string()
633
- }), mt = t.object({
888
+ }), Kt = t.object({
634
889
  name: t.string(),
635
890
  options: t.object({})
636
891
  });
637
- function ht(n) {
638
- const [i, o] = n.split("|");
892
+ function Gt(e) {
893
+ const [i, o] = e.split("|");
639
894
  if (!i || !o)
640
- throw new Error(`Invalid user_id: ${n}`);
895
+ throw new Error(`Invalid user_id: ${e}`);
641
896
  return { connection: i, id: o };
642
897
  }
643
898
  export {
644
- P as Auth0Client,
645
- l as AuthorizationResponseMode,
646
- r as AuthorizationResponseType,
647
- c as CodeChallengeMethod,
648
- K as GrantType,
649
- x as LogTypes,
650
- f as applicationInsertSchema,
651
- S as applicationSchema,
652
- Y as auth0UserResponseSchema,
653
- y as authParamsSchema,
654
- a as baseUserSchema,
655
- G as bordersSchema,
656
- J as brandingSchema,
657
- v as codeInsertSchema,
658
- $ as codeSchema,
659
- j as codeTypeSchema,
660
- L as colorsSchema,
661
- w as connectionInsertSchema,
662
- E as connectionOptionsSchema,
663
- k as connectionSchema,
664
- A as customDomainInsertSchema,
665
- N as customDomainSchema,
666
- tt as customDomainWithTenantIdSchema,
667
- gt as emailProviderSchema,
668
- e as fontDetailsSchema,
669
- B as fontsSchema,
670
- U as hookInsertSchema,
671
- nt as hookSchema,
672
- g as identitySchema,
673
- et as jwksKeySchema,
674
- R as jwksSchema,
675
- st as logSchema,
676
- D as loginSessionInsertSchema,
677
- ot as loginSessionSchema,
678
- it as openIDConfigurationSchema,
679
- M as pageBackgroundSchema,
680
- ht as parseUserId,
681
- F as passwordInsertSchema,
682
- at as passwordSchema,
683
- d as profileDataSchema,
684
- dt as promptSettingSchema,
685
- z as refreshTokenInsertSchema,
686
- _t as refreshTokenSchema,
687
- b as samlpAddon,
688
- H as sessionInsertSchema,
689
- rt as sessionSchema,
690
- lt as signingKeySchema,
691
- mt as smsProviderSchema,
692
- ut as smsSendParamsSchema,
693
- C as tenantInsertSchema,
694
- I as tenantSchema,
695
- q as themeInsertSchema,
696
- pt as themeSchema,
697
- ct as tokenResponseSchema,
698
- V as totalsSchema,
699
- _ as userInsertSchema,
700
- X as userResponseSchema,
701
- u as userSchema,
702
- Z as vendorSettingsSchema,
703
- O as verificationMethodsSchema,
704
- W as widgetSchema
899
+ st as Auth0Client,
900
+ g as AuthorizationResponseMode,
901
+ d as AuthorizationResponseType,
902
+ u as CodeChallengeMethod,
903
+ p as ComponentCategory,
904
+ 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,
917
+ 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,
934
+ P as endingSchema,
935
+ y as fieldComponentSchema,
936
+ U as flowNodeSchema,
937
+ 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,
954
+ 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
705
985
  };