@authhero/adapter-interfaces 0.60.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 V = t.object({
2
+ const ut = 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
+ }), 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 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()), h = 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: m.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
+ }), 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 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
+ }), f = t.object({
52
+ ...b.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(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()), 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()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
+ let E = (e = 21) => {
67
+ let i = "", a = crypto.getRandomValues(new Uint8Array(e));
68
+ for (; e--; )
69
+ i += S[a[e] & 63];
70
70
  return i;
71
71
  };
72
- const b = 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 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
+ }), j = 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,206 @@ 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: 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(() => h()).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
- }), 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
+ }), I = t.object({
120
+ created_at: t.string().transform((e) => e === null ? "" : e),
121
+ updated_at: t.string().transform((e) => e === null ? "" : e),
122
+ ...j.shape
123
+ }), o = 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
+ }), w = 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
+ }), C = 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
+ }), k = 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
+ }), O = 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
+ }), 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
243
+ ]);
244
+ var N = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(N || {});
245
+ const T = t.object({
246
+ id: t.string(),
247
+ type: t.literal(
248
+ "STEP"
249
+ /* STEP */
250
+ ),
251
+ coordinates: o,
252
+ alias: t.string().optional(),
253
+ config: t.object({
254
+ components: t.array(v),
255
+ next_node: t.string()
256
+ }).passthrough()
257
+ }), U = t.object({
258
+ id: t.string(),
259
+ type: t.literal(
260
+ "FLOW"
261
+ /* FLOW */
262
+ ),
263
+ coordinates: o,
264
+ config: t.object({
265
+ flow_id: t.string(),
266
+ next_node: t.string()
267
+ })
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({
277
+ next_node: t.string(),
278
+ coordinates: o
279
+ }).passthrough(), P = t.object({
280
+ resume_flow: t.boolean().optional(),
281
+ coordinates: o
282
+ }).passthrough(), L = t.object({
283
+ id: t.string(),
284
+ name: t.string(),
285
+ languages: t.object({
286
+ primary: t.string()
287
+ }).passthrough(),
288
+ nodes: t.array(x),
289
+ start: R,
290
+ ending: P,
291
+ created_at: t.string(),
292
+ updated_at: t.string(),
293
+ links: t.object({
294
+ sdkSrc: t.string().optional(),
295
+ sdk_src: t.string().optional()
296
+ }).passthrough()
297
+ }).passthrough(), ht = L.omit({
298
+ id: !0,
299
+ created_at: !0,
300
+ updated_at: !0
301
+ });
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({
126
304
  client_id: t.string(),
127
305
  act_as: t.string().optional(),
128
- response_type: t.nativeEnum(r).optional(),
129
- response_mode: t.nativeEnum(l).optional(),
306
+ response_type: t.nativeEnum(g).optional(),
307
+ response_mode: t.nativeEnum(d).optional(),
130
308
  redirect_uri: t.string().optional(),
131
309
  audience: t.string().optional(),
132
310
  organization: t.string().optional(),
@@ -134,13 +312,13 @@ const y = t.object({
134
312
  nonce: t.string().optional(),
135
313
  scope: t.string().optional(),
136
314
  prompt: t.string().optional(),
137
- code_challenge_method: t.nativeEnum(c).optional(),
315
+ code_challenge_method: t.nativeEnum(u).optional(),
138
316
  code_challenge: t.string().optional(),
139
317
  username: t.string().optional(),
140
318
  ui_locales: t.string().optional(),
141
319
  // The following fields are not available in Auth0
142
320
  vendor_id: t.string().optional()
143
- }), J = t.object({
321
+ }), bt = t.object({
144
322
  colors: t.object({
145
323
  primary: t.string(),
146
324
  page_background: t.object({
@@ -155,7 +333,7 @@ const y = t.object({
155
333
  font: t.object({
156
334
  url: t.string()
157
335
  }).optional()
158
- }), w = t.object({
336
+ }), F = t.object({
159
337
  kid: t.string().optional(),
160
338
  team_id: t.string().optional(),
161
339
  realms: t.string().optional(),
@@ -173,19 +351,19 @@ const y = t.object({
173
351
  from: t.string().optional(),
174
352
  twilio_sid: t.string().optional(),
175
353
  twilio_token: t.string().optional()
176
- }), E = t.object({
354
+ }), H = t.object({
177
355
  id: t.string().optional(),
178
356
  name: t.string(),
179
357
  strategy: t.string(),
180
- options: w.default({}),
358
+ options: F.default({}),
181
359
  enabled_clients: t.array(t.string()).default([]).optional(),
182
360
  response_type: t.custom().optional(),
183
361
  response_mode: t.custom().optional()
184
- }), k = t.object({
362
+ }), K = t.object({
185
363
  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({
364
+ created_at: t.string().transform((e) => e === null ? "" : e),
365
+ updated_at: t.string().transform((e) => e === null ? "" : e)
366
+ }).extend(H.shape), M = t.object({
189
367
  name: t.string(),
190
368
  audience: t.string(),
191
369
  sender_email: t.string().email(),
@@ -196,12 +374,12 @@ const y = t.object({
196
374
  secondary_color: t.string().optional(),
197
375
  language: t.string().optional(),
198
376
  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,
377
+ }), G = t.object({
378
+ created_at: t.string().transform((e) => e === null ? "" : e),
379
+ updated_at: t.string().transform((e) => e === null ? "" : e),
380
+ ...M.shape,
203
381
  id: t.string()
204
- }), Z = t.object({
382
+ }), ft = t.object({
205
383
  logoUrl: t.string(),
206
384
  loginBackgroundImage: t.string().nullish(),
207
385
  style: t.object({
@@ -220,18 +398,18 @@ const y = t.object({
220
398
  manageSubscriptionsUrl: t.string().optional()
221
399
  });
222
400
  t.object({
223
- ...S.shape,
224
- tenant: I,
225
- connections: t.array(k)
401
+ ...I.shape,
402
+ tenant: G,
403
+ connections: t.array(K)
226
404
  });
227
- const j = t.enum([
405
+ const W = t.enum([
228
406
  "password_reset",
229
407
  "email_verification",
230
408
  "otp",
231
409
  "authorization_code",
232
410
  "oauth2_state",
233
411
  "ticket"
234
- ]), v = t.object({
412
+ ]), X = t.object({
235
413
  code_id: t.string().openapi({
236
414
  description: "The code that will be used in for instance an email verification flow"
237
415
  }),
@@ -241,17 +419,17 @@ const j = t.enum([
241
419
  connection_id: t.string().optional().openapi({
242
420
  description: "The connection that the code is connected to"
243
421
  }),
244
- code_type: j,
422
+ code_type: W,
245
423
  code_verifier: t.string().optional().openapi({
246
424
  description: "The code verifier used in PKCE in outbound flows"
247
425
  }),
248
426
  expires_at: t.string(),
249
427
  used_at: t.string().optional(),
250
428
  user_id: t.string().optional()
251
- }), $ = t.object({
252
- ...v.shape,
429
+ }), St = t.object({
430
+ ...X.shape,
253
431
  created_at: t.string()
254
- }), A = t.object({
432
+ }), q = t.object({
255
433
  domain: t.string(),
256
434
  custom_domain_id: t.string().optional(),
257
435
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -265,23 +443,113 @@ const j = t.enum([
265
443
  "null"
266
444
  ]).optional(),
267
445
  domain_metadata: t.record(t.string().max(255)).optional()
268
- }), O = t.object({
446
+ }), V = t.object({
269
447
  name: t.literal("txt"),
270
448
  record: t.string(),
271
449
  domain: t.string()
272
- }), N = t.object({
273
- ...A.shape,
450
+ }), z = t.object({
451
+ ...q.shape,
274
452
  custom_domain_id: t.string(),
275
453
  primary: t.boolean(),
276
454
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
277
455
  origin_domain_name: t.string().optional(),
278
456
  verification: t.object({
279
- methods: t.array(O)
457
+ methods: t.array(V)
280
458
  }).optional(),
281
459
  tls_policy: t.string().optional()
282
- }), tt = N.extend({
460
+ }), Et = z.extend({
283
461
  tenant_id: t.string()
284
- }), U = t.object({
462
+ }), yt = t.object({
463
+ id: t.string(),
464
+ type: t.literal("submit"),
465
+ label: t.string(),
466
+ className: t.string().optional(),
467
+ disabled: t.boolean().optional().default(!1),
468
+ order: t.number().optional(),
469
+ visible: t.boolean().optional().default(!0),
470
+ customizations: t.record(t.string(), t.any()).optional()
471
+ }), Q = t.object({
472
+ name: t.string().openapi({
473
+ description: "The name of the form"
474
+ }),
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({
549
+ ...r.shape,
550
+ ...Q.shape,
551
+ id: t.string()
552
+ }), Y = t.object({
285
553
  trigger_id: t.enum([
286
554
  "pre-user-signup",
287
555
  "post-user-registration",
@@ -292,10 +560,10 @@ const j = t.enum([
292
560
  hook_id: t.string().optional(),
293
561
  synchronous: t.boolean().default(!1),
294
562
  priority: t.number().optional()
295
- }), nt = U.extend({
296
- ...s.shape,
563
+ }), It = Y.extend({
564
+ ...r.shape,
297
565
  hook_id: t.string()
298
- }), R = t.object({
566
+ }), J = t.object({
299
567
  alg: t.enum([
300
568
  "RS256",
301
569
  "RS384",
@@ -314,9 +582,9 @@ const j = t.enum([
314
582
  x5t: t.string().optional(),
315
583
  x5c: t.array(t.string()).optional(),
316
584
  use: t.enum(["sig", "enc"]).optional()
317
- }), et = t.object({
318
- keys: t.array(R)
319
- }), it = t.object({
585
+ }), wt = t.object({
586
+ keys: t.array(J)
587
+ }), Ct = t.object({
320
588
  issuer: t.string(),
321
589
  authorization_endpoint: t.string(),
322
590
  token_endpoint: t.string(),
@@ -337,10 +605,10 @@ const j = t.enum([
337
605
  request_uri_parameter_supported: t.boolean(),
338
606
  request_parameter_supported: t.boolean(),
339
607
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
340
- }), D = t.object({
608
+ }), Z = t.object({
341
609
  csrf_token: t.string(),
342
610
  auth0Client: t.string().optional(),
343
- authParams: y,
611
+ authParams: B,
344
612
  expires_at: t.string(),
345
613
  deleted_at: t.string().optional(),
346
614
  ip: t.string().optional(),
@@ -349,16 +617,16 @@ const j = t.enum([
349
617
  authorization_url: t.string().optional()
350
618
  }).openapi({
351
619
  description: "This represents a login sesion"
352
- }), ot = t.object({
353
- ...D.shape,
620
+ }), kt = t.object({
621
+ ...Z.shape,
354
622
  id: t.string().openapi({
355
623
  description: "This is is used as the state in the universal login"
356
624
  }),
357
625
  created_at: t.string(),
358
626
  updated_at: t.string()
359
627
  });
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([
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([
362
630
  "cls",
363
631
  // CODE_LINK_SENT
364
632
  "fsa",
@@ -407,14 +675,14 @@ const T = t.enum([
407
675
  // SUCCESS_VERIFICATION_EMAIL
408
676
  "svr"
409
677
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
410
- ]), P = t.object({
678
+ ]), et = t.object({
411
679
  name: t.string(),
412
680
  version: t.string(),
413
681
  env: t.object({
414
682
  node: t.string().optional()
415
683
  }).optional()
416
- }), st = t.object({
417
- type: T,
684
+ }), Ot = t.object({
685
+ type: tt,
418
686
  date: t.string(),
419
687
  description: t.string().optional(),
420
688
  log_id: t.string().optional(),
@@ -435,40 +703,40 @@ const T = t.enum([
435
703
  strategy: t.string().optional(),
436
704
  strategy_type: t.string().optional(),
437
705
  hostname: t.string().optional(),
438
- auth0_client: P.optional()
439
- }), F = t.object({
706
+ auth0_client: et.optional()
707
+ }), nt = t.object({
440
708
  user_id: t.string(),
441
709
  password: t.string(),
442
710
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
443
- }), at = t.object({
444
- ...F.shape,
711
+ }), At = t.object({
712
+ ...nt.shape,
445
713
  created_at: t.string(),
446
714
  updated_at: t.string()
447
- }), p = t.object({
715
+ }), _ = t.object({
448
716
  initial_user_agent: t.string().describe("First user agent of the device from which this user logged in"),
449
717
  initial_ip: t.string().describe("First IP address associated with this session"),
450
718
  initial_asn: t.string().describe("First autonomous system number associated with this session"),
451
719
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
452
720
  last_ip: t.string().describe("Last IP address from which this user logged in"),
453
721
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
454
- }), H = t.object({
722
+ }), it = t.object({
455
723
  id: t.string(),
456
724
  revoked_at: t.string().optional(),
457
725
  used_at: t.string().optional(),
458
726
  user_id: t.string().describe("The user ID associated with the session"),
459
727
  expires_at: t.string().optional(),
460
728
  idle_expires_at: t.string().optional(),
461
- device: p.describe(
729
+ device: _.describe(
462
730
  "Metadata related to the device used in the session"
463
731
  ),
464
732
  clients: t.array(t.string()).describe("List of client details for the session")
465
- }), rt = t.object({
733
+ }), vt = t.object({
466
734
  created_at: t.string(),
467
735
  updated_at: t.string(),
468
736
  authenticated_at: t.string(),
469
737
  last_interaction_at: t.string(),
470
- ...H.shape
471
- }), lt = t.object({
738
+ ...it.shape
739
+ }), Nt = t.object({
472
740
  kid: t.string().openapi({ description: "The key id of the signing key" }),
473
741
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
474
742
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -488,8 +756,8 @@ const T = t.enum([
488
756
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
489
757
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
490
758
  });
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({
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({
493
761
  access_token: t.string(),
494
762
  id_token: t.string().optional(),
495
763
  scope: t.string().optional(),
@@ -502,7 +770,7 @@ t.object({
502
770
  code: t.string(),
503
771
  state: t.string().optional()
504
772
  });
505
- const G = t.object({
773
+ const at = t.object({
506
774
  button_border_radius: t.number(),
507
775
  button_border_weight: t.number(),
508
776
  buttons_style: t.enum(["pill"]),
@@ -512,7 +780,7 @@ const G = t.object({
512
780
  show_widget_shadow: t.boolean(),
513
781
  widget_border_weight: t.number(),
514
782
  widget_corner_radius: t.number()
515
- }), L = t.object({
783
+ }), st = t.object({
516
784
  base_focus_color: t.string(),
517
785
  base_hover_color: t.string(),
518
786
  body_text: t.string(),
@@ -532,44 +800,44 @@ const G = t.object({
532
800
  success: t.string(),
533
801
  widget_background: t.string(),
534
802
  widget_border: t.string()
535
- }), e = t.object({
803
+ }), n = t.object({
536
804
  bold: t.boolean(),
537
805
  size: t.number()
538
- }), B = t.object({
539
- body_text: e,
540
- buttons_text: e,
806
+ }), rt = t.object({
807
+ body_text: n,
808
+ buttons_text: n,
541
809
  font_url: t.string(),
542
- input_labels: e,
543
- links: e,
810
+ input_labels: n,
811
+ links: n,
544
812
  links_style: t.enum(["normal"]),
545
813
  reference_text_size: t.number(),
546
- subtitle: e,
547
- title: e
548
- }), M = t.object({
814
+ subtitle: n,
815
+ title: n
816
+ }), lt = t.object({
549
817
  background_color: t.string(),
550
818
  background_image_url: t.string(),
551
819
  page_layout: t.enum(["center"])
552
- }), W = t.object({
820
+ }), ct = t.object({
553
821
  header_text_alignment: t.enum(["center"]),
554
822
  logo_height: t.number(),
555
823
  logo_position: t.enum(["center"]),
556
824
  logo_url: t.string(),
557
825
  social_buttons_layout: t.enum(["bottom"])
558
- }), q = t.object({
559
- borders: G,
560
- colors: L,
826
+ }), pt = t.object({
827
+ borders: at,
828
+ colors: st,
561
829
  displayName: t.string(),
562
- fonts: B,
563
- page_background: M,
564
- widget: W
565
- }), pt = q.extend({
830
+ fonts: rt,
831
+ page_background: lt,
832
+ widget: ct
833
+ }), Ut = pt.extend({
566
834
  themeId: t.string()
567
- }), dt = t.object({
835
+ }), Dt = t.object({
568
836
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
569
837
  identifier_first: t.boolean().default(!0),
570
838
  password_first: t.boolean().default(!1),
571
839
  webauthn_platform_first_factor: t.boolean()
572
- }), gt = t.object({
840
+ }), xt = t.object({
573
841
  name: t.string(),
574
842
  enabled: t.boolean().optional().default(!0),
575
843
  default_from_address: t.string().optional(),
@@ -599,7 +867,7 @@ const G = t.object({
599
867
  })
600
868
  ]),
601
869
  settings: t.object({}).optional()
602
- }), z = t.object({
870
+ }), gt = t.object({
603
871
  // The actual refresh token value (primary key).
604
872
  id: t.string(),
605
873
  // Link to the session record
@@ -612,7 +880,7 @@ const G = t.object({
612
880
  idle_expires_at: t.string().optional(),
613
881
  // When the token was last used.
614
882
  last_exchanged_at: t.string().optional(),
615
- device: p,
883
+ device: _,
616
884
  resource_servers: t.array(
617
885
  t.object({
618
886
  audience: t.string(),
@@ -620,84 +888,105 @@ const G = t.object({
620
888
  })
621
889
  ),
622
890
  rotating: t.boolean()
623
- }), _t = t.object({
891
+ }), Rt = t.object({
624
892
  // When the refresh token record was created.
625
893
  created_at: t.string(),
626
894
  // Spread in the rest of the refresh token properties.
627
- ...z.shape
628
- }), ut = t.object({
895
+ ...gt.shape
896
+ }), Pt = t.object({
629
897
  to: t.string(),
630
898
  message: t.string()
631
- }), mt = t.object({
899
+ }), Lt = t.object({
632
900
  name: t.string(),
633
901
  options: t.object({})
634
902
  });
635
- function ht(n) {
636
- const [i, o] = n.split("|");
637
- if (!i || !o)
638
- throw new Error(`Invalid user_id: ${n}`);
639
- return { connection: i, id: o };
903
+ function Bt(e) {
904
+ const [i, a] = e.split("|");
905
+ if (!i || !a)
906
+ throw new Error(`Invalid user_id: ${e}`);
907
+ return { connection: i, id: a };
640
908
  }
641
909
  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
910
+ et as Auth0Client,
911
+ d as AuthorizationResponseMode,
912
+ g as AuthorizationResponseType,
913
+ u as CodeChallengeMethod,
914
+ p as ComponentCategory,
915
+ c as ComponentType,
916
+ ot as GrantType,
917
+ $ as LogTypes,
918
+ N as NodeType,
919
+ j as applicationInsertSchema,
920
+ I as applicationSchema,
921
+ ht as auth0FlowInsertSchema,
922
+ L as auth0FlowSchema,
923
+ _t as auth0UserResponseSchema,
924
+ B as authParamsSchema,
925
+ l as baseUserSchema,
926
+ at as bordersSchema,
927
+ bt as brandingSchema,
928
+ C as buttonComponentSchema,
929
+ X as codeInsertSchema,
930
+ St as codeSchema,
931
+ W as codeTypeSchema,
932
+ st as colorsSchema,
933
+ v as componentSchema,
934
+ H as connectionInsertSchema,
935
+ F as connectionOptionsSchema,
936
+ K as connectionSchema,
937
+ o as coordinatesSchema,
938
+ q as customDomainInsertSchema,
939
+ z as customDomainSchema,
940
+ Et as customDomainWithTenantIdSchema,
941
+ xt as emailProviderSchema,
942
+ P as endingSchema,
943
+ O as fieldComponentSchema,
944
+ U as flowNodeSchema,
945
+ n as fontDetailsSchema,
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,
961
+ x as nodeSchema,
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
703
992
  };