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