@authhero/kysely-adapter 0.9.0 → 0.9.2

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.
@@ -3039,7 +3039,14 @@ Cn.extend({
3039
3039
  last_login: i.string().optional(),
3040
3040
  user_id: i.string()
3041
3041
  }).catchall(i.any());
3042
- const ar = i.object({
3042
+ const ar = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3043
+ let ir = (n = 21) => {
3044
+ let e = "", t = crypto.getRandomValues(new Uint8Array(n));
3045
+ for (; n--; )
3046
+ e += ar[t[n] & 63];
3047
+ return e;
3048
+ };
3049
+ const or = i.object({
3043
3050
  audience: i.string().optional(),
3044
3051
  recipient: i.string().optional(),
3045
3052
  createUpnClaim: i.boolean().optional(),
@@ -3056,43 +3063,43 @@ const ar = i.object({
3056
3063
  nameIdentifierProbes: i.array(i.string()).optional(),
3057
3064
  authnContextClassRef: i.string().optional(),
3058
3065
  mappings: i.record(i.string()).optional()
3059
- }), ir = i.object({
3066
+ }), cr = i.object({
3060
3067
  id: i.string(),
3061
3068
  name: i.string(),
3062
3069
  callbacks: i.array(i.string()).openapi({
3063
3070
  description: "Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."
3064
- }),
3071
+ }).default([]),
3065
3072
  allowed_origins: i.array(i.string()).openapi({
3066
3073
  description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."
3067
- }),
3074
+ }).default([]),
3068
3075
  web_origins: i.array(i.string()).openapi({
3069
3076
  description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
3070
- }),
3077
+ }).default([]),
3071
3078
  allowed_logout_urls: i.array(i.string()).openapi({
3072
3079
  description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
3073
- }),
3080
+ }).default([]),
3074
3081
  allowed_clients: i.array(i.string()).openapi({
3075
3082
  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"
3076
- }),
3083
+ }).default([]),
3077
3084
  addons: i.object({
3078
- samlp: ar.optional()
3079
- }).optional().openapi({
3085
+ samlp: or.optional()
3086
+ }).openapi({
3080
3087
  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."
3081
- }),
3088
+ }).default({}),
3082
3089
  email_validation: i.enum(["enabled", "disabled", "enforced"]).default("enforced").openapi({
3083
3090
  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"
3084
3091
  }),
3085
- client_secret: i.string().default(""),
3092
+ client_secret: i.string().default(() => ir()),
3086
3093
  disable_sign_ups: i.boolean().default(!1).openapi({
3087
3094
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
3088
3095
  })
3089
- }), or = i.object({
3096
+ }), dr = i.object({
3090
3097
  created_at: i.string().transform((n) => n === null ? "" : n),
3091
3098
  updated_at: i.string().transform((n) => n === null ? "" : n),
3092
- ...ir.shape
3099
+ ...cr.shape
3093
3100
  });
3094
3101
  var In = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(In || {}), En = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(En || {}), An = /* @__PURE__ */ ((n) => (n.S265 = "S256", n.plain = "plain", n))(An || {});
3095
- const cr = i.object({
3102
+ const ur = i.object({
3096
3103
  client_id: i.string(),
3097
3104
  vendor_id: i.string().optional(),
3098
3105
  response_type: i.nativeEnum(In).optional(),
@@ -3122,10 +3129,20 @@ i.object({
3122
3129
  url: i.string()
3123
3130
  }).optional()
3124
3131
  });
3125
- const dr = i.object({
3132
+ const lr = i.object({
3126
3133
  id: i.string().optional(),
3127
3134
  name: i.string(),
3128
- strategy: i.enum(["google-oauth2", "facebook", "vipps", "apple", "email"]).optional(),
3135
+ strategy: i.enum([
3136
+ "google-oauth2",
3137
+ "facebook",
3138
+ "vipps",
3139
+ "apple",
3140
+ "email",
3141
+ "Username-Password-Authentication",
3142
+ "oidc",
3143
+ "oauth2",
3144
+ "custom"
3145
+ ]).optional(),
3129
3146
  options: i.object({
3130
3147
  kid: i.string().optional(),
3131
3148
  team_id: i.string().optional(),
@@ -3134,7 +3151,7 @@ const dr = i.object({
3134
3151
  client_secret: i.string().optional(),
3135
3152
  app_secret: i.string().optional(),
3136
3153
  scope: i.string().optional()
3137
- }),
3154
+ }).optional(),
3138
3155
  enabled_clients: i.array(i.string()).optional(),
3139
3156
  authorization_endpoint: i.string().optional(),
3140
3157
  response_type: i.custom().optional(),
@@ -3153,7 +3170,7 @@ const dr = i.object({
3153
3170
  id: i.string(),
3154
3171
  created_at: i.string().transform((n) => n === null ? "" : n),
3155
3172
  updated_at: i.string().transform((n) => n === null ? "" : n)
3156
- }).extend(dr.shape), ur = i.object({
3173
+ }).extend(lr.shape), pr = i.object({
3157
3174
  name: i.string(),
3158
3175
  audience: i.string(),
3159
3176
  sender_email: i.string().email(),
@@ -3163,11 +3180,11 @@ const dr = i.object({
3163
3180
  primary_color: i.string().optional(),
3164
3181
  secondary_color: i.string().optional(),
3165
3182
  language: i.string().optional()
3166
- }), lr = i.object({
3183
+ }), hr = i.object({
3167
3184
  created_at: i.string().transform((n) => n === null ? "" : n),
3168
3185
  updated_at: i.string().transform((n) => n === null ? "" : n),
3169
3186
  id: i.string(),
3170
- ...ur.shape
3187
+ ...pr.shape
3171
3188
  });
3172
3189
  i.object({
3173
3190
  logoUrl: i.string(),
@@ -3187,7 +3204,7 @@ i.object({
3187
3204
  siteUrl: i.string().nullable(),
3188
3205
  manageSubscriptionsUrl: i.string().optional()
3189
3206
  });
3190
- const pr = i.object({
3207
+ const fr = i.object({
3191
3208
  domain: i.string(),
3192
3209
  dkim_private_key: i.string().optional(),
3193
3210
  dkim_public_key: i.string().optional(),
@@ -3195,19 +3212,19 @@ const pr = i.object({
3195
3212
  email_service: i.union([i.literal("mailgun"), i.literal("mailchannels")]).optional()
3196
3213
  });
3197
3214
  i.object({
3198
- ...or.shape,
3199
- domains: i.array(pr),
3200
- tenant: lr,
3215
+ ...dr.shape,
3216
+ domains: i.array(fr),
3217
+ tenant: hr,
3201
3218
  connections: i.array(Rn)
3202
3219
  });
3203
- const hr = i.enum([
3220
+ const mr = i.enum([
3204
3221
  "password_reset",
3205
3222
  "email_verification",
3206
3223
  "otp",
3207
3224
  "authorization_code",
3208
3225
  "oauth2_state",
3209
3226
  "ticket"
3210
- ]), fr = i.object({
3227
+ ]), _r = i.object({
3211
3228
  code_id: i.string().openapi({
3212
3229
  description: "The code that will be used in for instance an email verification flow"
3213
3230
  }),
@@ -3217,14 +3234,14 @@ const hr = i.enum([
3217
3234
  connection_id: i.string().optional().openapi({
3218
3235
  description: "The connection that the code is connected to"
3219
3236
  }),
3220
- code_type: hr,
3237
+ code_type: mr,
3221
3238
  expires_at: i.string(),
3222
3239
  used_at: i.string().optional(),
3223
3240
  user_id: i.string().optional()
3224
- }), mr = i.object({
3225
- ...fr.shape,
3241
+ }), gr = i.object({
3242
+ ..._r.shape,
3226
3243
  created_at: i.string()
3227
- }), _r = i.object({
3244
+ }), yr = i.object({
3228
3245
  domain: i.string(),
3229
3246
  dkim_private_key: i.string().optional(),
3230
3247
  dkim_public_key: i.string().optional(),
@@ -3232,10 +3249,10 @@ const hr = i.enum([
3232
3249
  email_service: i.enum(["mailgun", "mailchannels"])
3233
3250
  });
3234
3251
  dn.extend({
3235
- ..._r.shape,
3252
+ ...yr.shape,
3236
3253
  id: i.string()
3237
3254
  });
3238
- const gr = i.object({
3255
+ const vr = i.object({
3239
3256
  trigger_id: i.enum([
3240
3257
  "pre-user-signup",
3241
3258
  "post-user-registration",
@@ -3247,11 +3264,11 @@ const gr = i.object({
3247
3264
  synchronous: i.boolean().default(!1),
3248
3265
  priority: i.number().optional()
3249
3266
  });
3250
- gr.extend({
3267
+ vr.extend({
3251
3268
  ...dn.shape,
3252
3269
  hook_id: i.string()
3253
3270
  });
3254
- const yr = i.object({
3271
+ const wr = i.object({
3255
3272
  alg: i.enum([
3256
3273
  "RS256",
3257
3274
  "RS384",
@@ -3272,7 +3289,7 @@ const yr = i.object({
3272
3289
  use: i.enum(["sig", "enc"]).optional()
3273
3290
  });
3274
3291
  i.object({
3275
- keys: i.array(yr)
3292
+ keys: i.array(wr)
3276
3293
  });
3277
3294
  i.object({
3278
3295
  issuer: i.string(),
@@ -3296,22 +3313,22 @@ i.object({
3296
3313
  request_parameter_supported: i.boolean(),
3297
3314
  token_endpoint_auth_signing_alg_values_supported: i.array(i.string())
3298
3315
  });
3299
- const vr = i.object({
3316
+ const br = i.object({
3300
3317
  auth0Client: i.string().optional(),
3301
- authParams: cr,
3318
+ authParams: ur,
3302
3319
  expires_at: i.string(),
3303
3320
  deleted_at: i.string().optional(),
3304
3321
  ip: i.string().optional()
3305
3322
  }).openapi({
3306
3323
  description: "This represents a login sesion"
3307
- }), wr = i.object({
3308
- ...vr.shape,
3324
+ }), kr = i.object({
3325
+ ...br.shape,
3309
3326
  login_id: i.string().openapi({
3310
3327
  description: "This is is used as the state in the universal login"
3311
3328
  }),
3312
3329
  created_at: i.string(),
3313
3330
  updated_at: i.string()
3314
- }), br = i.enum([
3331
+ }), xr = i.enum([
3315
3332
  "cls",
3316
3333
  // CODE_LINK_SENT
3317
3334
  "fsa",
@@ -3360,7 +3377,7 @@ const vr = i.object({
3360
3377
  // SUCCESS_VERIFICATION_EMAIL
3361
3378
  "svr"
3362
3379
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
3363
- ]), kr = i.object({
3380
+ ]), Tr = i.object({
3364
3381
  name: i.string(),
3365
3382
  version: i.string(),
3366
3383
  env: i.object({
@@ -3368,7 +3385,7 @@ const vr = i.object({
3368
3385
  }).optional()
3369
3386
  });
3370
3387
  i.object({
3371
- type: br,
3388
+ type: xr,
3372
3389
  date: i.string(),
3373
3390
  description: i.string().optional(),
3374
3391
  log_id: i.string().optional(),
@@ -3389,19 +3406,19 @@ i.object({
3389
3406
  strategy: i.string().optional(),
3390
3407
  strategy_type: i.string().optional(),
3391
3408
  hostname: i.string().optional(),
3392
- auth0_client: kr.optional()
3409
+ auth0_client: Tr.optional()
3393
3410
  });
3394
- const xr = i.object({
3411
+ const Or = i.object({
3395
3412
  user_id: i.string(),
3396
3413
  password: i.string(),
3397
3414
  algorithm: i.enum(["bcrypt", "argon2id"]).default("argon2id")
3398
3415
  });
3399
3416
  i.object({
3400
- ...xr.shape,
3417
+ ...Or.shape,
3401
3418
  created_at: i.string(),
3402
3419
  updated_at: i.string()
3403
3420
  });
3404
- const Tr = i.object({
3421
+ const Sr = i.object({
3405
3422
  session_id: i.string(),
3406
3423
  client_id: i.string(),
3407
3424
  expires_at: i.string(),
@@ -3411,7 +3428,7 @@ const Tr = i.object({
3411
3428
  });
3412
3429
  i.object({
3413
3430
  created_at: i.string(),
3414
- ...Tr.shape
3431
+ ...Sr.shape
3415
3432
  });
3416
3433
  i.object({
3417
3434
  kid: i.string().openapi({ description: "The key id of the signing key" }),
@@ -3477,7 +3494,7 @@ i.object({
3477
3494
  code: i.string(),
3478
3495
  state: i.string().optional()
3479
3496
  });
3480
- const Or = i.object({
3497
+ const Zr = i.object({
3481
3498
  button_border_radius: i.number(),
3482
3499
  button_border_weight: i.number(),
3483
3500
  buttons_style: i.enum(["pill"]),
@@ -3487,7 +3504,7 @@ const Or = i.object({
3487
3504
  show_widget_shadow: i.boolean(),
3488
3505
  widget_border_weight: i.number(),
3489
3506
  widget_corner_radius: i.number()
3490
- }), Sr = i.object({
3507
+ }), jr = i.object({
3491
3508
  base_focus_color: i.string(),
3492
3509
  base_hover_color: i.string(),
3493
3510
  body_text: i.string(),
@@ -3510,7 +3527,7 @@ const Or = i.object({
3510
3527
  }), Me = i.object({
3511
3528
  bold: i.boolean(),
3512
3529
  size: i.number()
3513
- }), Zr = i.object({
3530
+ }), Nr = i.object({
3514
3531
  body_text: Me,
3515
3532
  buttons_text: Me,
3516
3533
  font_url: i.string(),
@@ -3520,25 +3537,25 @@ const Or = i.object({
3520
3537
  reference_text_size: i.number(),
3521
3538
  subtitle: Me,
3522
3539
  title: Me
3523
- }), jr = i.object({
3540
+ }), Cr = i.object({
3524
3541
  background_color: i.string(),
3525
3542
  background_image_url: i.string(),
3526
3543
  page_layout: i.enum(["center"])
3527
- }), Nr = i.object({
3544
+ }), Ir = i.object({
3528
3545
  header_text_alignment: i.enum(["center"]),
3529
3546
  logo_height: i.number(),
3530
3547
  logo_position: i.enum(["center"]),
3531
3548
  logo_url: i.string(),
3532
3549
  social_buttons_layout: i.enum(["bottom"])
3533
- }), Cr = i.object({
3534
- borders: Or,
3535
- colors: Sr,
3550
+ }), Er = i.object({
3551
+ borders: Zr,
3552
+ colors: jr,
3536
3553
  displayName: i.string(),
3537
- fonts: Zr,
3538
- page_background: jr,
3539
- widget: Nr
3554
+ fonts: Nr,
3555
+ page_background: Cr,
3556
+ widget: Ir
3540
3557
  });
3541
- Cr.extend({
3558
+ Er.extend({
3542
3559
  themeId: i.string()
3543
3560
  });
3544
3561
  i.object({
@@ -3572,7 +3589,7 @@ function Pn(n) {
3572
3589
  }
3573
3590
  };
3574
3591
  }
3575
- function Ir(n) {
3592
+ function Ar(n) {
3576
3593
  return async (e, t) => {
3577
3594
  const [s, r] = await Promise.all([
3578
3595
  n.selectFrom("users").where("users.tenant_id", "=", e).where("users.user_id", "=", t).selectAll().executeTakeFirst(),
@@ -3638,7 +3655,7 @@ function Ee(n, e, t, s) {
3638
3655
  function ke(n) {
3639
3656
  return typeof n == "string" ? parseInt(n, 10) : typeof n == "bigint" ? Number(n) : n;
3640
3657
  }
3641
- function Er(n) {
3658
+ function Rr(n) {
3642
3659
  return async (e, t) => {
3643
3660
  let s = n.selectFrom("users").where("users.tenant_id", "=", e);
3644
3661
  if (t.q && (s = Ee(n, s, t.q, ["email", "name"])), t.sort && t.sort.sort_by) {
@@ -3672,48 +3689,48 @@ function Er(n) {
3672
3689
  };
3673
3690
  };
3674
3691
  }
3675
- function Ar(n) {
3692
+ function $r(n) {
3676
3693
  return async (e, t) => (await n.deleteFrom("users").where("users.tenant_id", "=", e).where("users.linked_to", "=", t).execute(), (await n.deleteFrom("users").where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1);
3677
3694
  }
3678
- function Rr(n) {
3695
+ function Pr(n) {
3679
3696
  if (n.email_verified !== void 0)
3680
3697
  return n.email_verified ? 1 : 0;
3681
3698
  }
3682
- function $r(n) {
3699
+ function Dr(n) {
3683
3700
  return async (e, t, s) => {
3684
3701
  const r = {
3685
3702
  ...s,
3686
- email_verified: Rr(s),
3703
+ email_verified: Pr(s),
3687
3704
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
3688
3705
  };
3689
3706
  return (await n.updateTable("users").set(r).where("users.tenant_id", "=", e).where("users.user_id", "=", t).execute()).length === 1;
3690
3707
  };
3691
3708
  }
3692
- function Pr(n) {
3709
+ function Mr(n) {
3693
3710
  return async (e, t, s, r) => {
3694
3711
  const a = { linked_to: null };
3695
3712
  return (await n.updateTable("users").set(a).where("users.tenant_id", "=", e).where("users.user_id", "=", `${s}|${r}`).where("users.linked_to", "=", `${t}`).execute()).length === 1;
3696
3713
  };
3697
3714
  }
3698
- function Dr(n) {
3715
+ function Lr(n) {
3699
3716
  return {
3700
3717
  create: Qn(n),
3701
- remove: Ar(n),
3702
- get: Ir(n),
3703
- list: Er(n),
3704
- update: $r(n),
3718
+ remove: $r(n),
3719
+ get: Ar(n),
3720
+ list: Rr(n),
3721
+ update: Dr(n),
3705
3722
  // TODO - think about this more when other issues fixed
3706
- unlink: Pr(n)
3723
+ unlink: Mr(n)
3707
3724
  };
3708
3725
  }
3709
- const Mr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3726
+ const Vr = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3710
3727
  let Ae = (n = 21) => {
3711
3728
  let e = "", t = crypto.getRandomValues(new Uint8Array(n));
3712
3729
  for (; n--; )
3713
- e += Mr[t[n] & 63];
3730
+ e += Vr[t[n] & 63];
3714
3731
  return e;
3715
3732
  };
3716
- function Lr(n) {
3733
+ function Ur(n) {
3717
3734
  return async (e) => {
3718
3735
  const t = {
3719
3736
  id: e.id || Ae(),
@@ -3724,13 +3741,13 @@ function Lr(n) {
3724
3741
  return await n.insertInto("tenants").values(t).execute(), t;
3725
3742
  };
3726
3743
  }
3727
- function Vr(n) {
3744
+ function Fr(n) {
3728
3745
  return async (e) => {
3729
3746
  const t = await n.selectFrom("tenants").where("tenants.id", "=", e).selectAll().executeTakeFirst();
3730
3747
  return t ? R(t) : null;
3731
3748
  };
3732
3749
  }
3733
- function Ur(n) {
3750
+ function zr(n) {
3734
3751
  return async (e) => {
3735
3752
  let t = n.selectFrom("tenants");
3736
3753
  if (e.sort && e.sort.sort_by) {
@@ -3752,7 +3769,7 @@ function Ur(n) {
3752
3769
  };
3753
3770
  };
3754
3771
  }
3755
- function Fr(n) {
3772
+ function Br(n) {
3756
3773
  return async (e, t) => {
3757
3774
  const s = {
3758
3775
  ...t,
@@ -3762,29 +3779,29 @@ function Fr(n) {
3762
3779
  await n.updateTable("tenants").set(s).where("id", "=", e).execute();
3763
3780
  };
3764
3781
  }
3765
- function zr(n) {
3782
+ function Wr(n) {
3766
3783
  return async (e) => (await n.deleteFrom("tenants").where("tenants.id", "=", e).execute()).length === 1;
3767
3784
  }
3768
- function Br(n) {
3785
+ function qr(n) {
3769
3786
  return {
3770
- create: Lr(n),
3771
- get: Vr(n),
3772
- list: Ur(n),
3773
- update: Fr(n),
3774
- remove: zr(n)
3787
+ create: Ur(n),
3788
+ get: Fr(n),
3789
+ list: zr(n),
3790
+ update: Br(n),
3791
+ remove: Wr(n)
3775
3792
  };
3776
3793
  }
3777
3794
  function _n(n) {
3778
3795
  return n ? JSON.stringify(n) : void 0;
3779
3796
  }
3780
- const Wr = 1024;
3781
- function qr(n) {
3797
+ const Jr = 1024;
3798
+ function Kr(n) {
3782
3799
  return async (e, t) => {
3783
3800
  var r, a, o;
3784
3801
  const s = {
3785
3802
  id: Ae(),
3786
3803
  ...t,
3787
- user_agent: t.user_agent.slice(0, Wr)
3804
+ user_agent: t.user_agent.slice(0, Jr)
3788
3805
  };
3789
3806
  return await n.insertInto("logs").values({
3790
3807
  ...s,
@@ -3820,7 +3837,7 @@ function Dn(n) {
3820
3837
  _id: n.id
3821
3838
  };
3822
3839
  }
3823
- function Jr(n) {
3840
+ function Hr(n) {
3824
3841
  return async (e, t) => {
3825
3842
  let s = n.selectFrom("logs").where("logs.tenant_id", "=", e);
3826
3843
  t.q && (s = Ee(n, s, t.q, ["user_id", "ip"]));
@@ -3842,23 +3859,23 @@ function Jr(n) {
3842
3859
  };
3843
3860
  };
3844
3861
  }
3845
- function Kr(n) {
3862
+ function Qr(n) {
3846
3863
  return async (e, t) => {
3847
3864
  const s = await n.selectFrom("logs").where("logs.tenant_id", "=", e).where("logs.id", "=", t).selectAll().executeTakeFirst();
3848
3865
  return s ? Dn(s) : null;
3849
3866
  };
3850
3867
  }
3851
- function Hr(n) {
3868
+ function Yr(n) {
3852
3869
  return {
3853
- create: qr(n),
3854
- list: Jr(n),
3855
- get: Kr(n)
3870
+ create: Kr(n),
3871
+ list: Hr(n),
3872
+ get: Qr(n)
3856
3873
  };
3857
3874
  }
3858
- function Qr(n) {
3875
+ function Gr(n) {
3859
3876
  return async (e, t) => await n.selectFrom("sessions").where("sessions.tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).selectAll().executeTakeFirst() ?? null;
3860
3877
  }
3861
- function Yr(n) {
3878
+ function Xr(n) {
3862
3879
  return async (e, t) => {
3863
3880
  const s = {
3864
3881
  ...t,
@@ -3868,13 +3885,13 @@ function Yr(n) {
3868
3885
  return await n.insertInto("sessions").values({ ...s, tenant_id: e }).execute(), { ...t, ...s };
3869
3886
  };
3870
3887
  }
3871
- function Gr(n) {
3888
+ function ea(n) {
3872
3889
  return async (e, t) => !!(await n.updateTable("sessions").set({ deleted_at: (/* @__PURE__ */ new Date()).toISOString() }).where("tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).execute()).length;
3873
3890
  }
3874
- function Xr(n) {
3891
+ function ta(n) {
3875
3892
  return async (e, t, s) => !!(await n.updateTable("sessions").set(s).where("tenant_id", "=", e).where("sessions.session_id", "=", t).where("sessions.deleted_at", "is", null).execute()).length;
3876
3893
  }
3877
- function ea(n) {
3894
+ function na(n) {
3878
3895
  return async (e, t) => {
3879
3896
  let s = n.selectFrom("sessions").where("sessions.tenant_id", "=", e);
3880
3897
  t.q && (s = Ee(n, s, t.q, ["user_id", "session_id"]));
@@ -3896,16 +3913,16 @@ function ea(n) {
3896
3913
  };
3897
3914
  };
3898
3915
  }
3899
- function ta(n) {
3916
+ function sa(n) {
3900
3917
  return {
3901
- create: Yr(n),
3902
- get: Qr(n),
3903
- list: ea(n),
3904
- remove: Gr(n),
3905
- update: Xr(n)
3918
+ create: Xr(n),
3919
+ get: Gr(n),
3920
+ list: na(n),
3921
+ remove: ea(n),
3922
+ update: ta(n)
3906
3923
  };
3907
3924
  }
3908
- function na(n) {
3925
+ function ra(n) {
3909
3926
  return async (e, t) => {
3910
3927
  const s = await n.selectFrom("tickets").where("tickets.tenant_id", "=", e).where("tickets.id", "=", t).where("tickets.used_at", "is", null).selectAll().executeTakeFirst();
3911
3928
  if (!s)
@@ -3935,7 +3952,7 @@ function na(n) {
3935
3952
  };
3936
3953
  };
3937
3954
  }
3938
- function sa(n) {
3955
+ function aa(n) {
3939
3956
  return async (e) => {
3940
3957
  const { authParams: t, ...s } = e, r = {
3941
3958
  ...s,
@@ -3947,27 +3964,27 @@ function sa(n) {
3947
3964
  await n.insertInto("tickets").values(r).execute();
3948
3965
  };
3949
3966
  }
3950
- function ra(n) {
3967
+ function ia(n) {
3951
3968
  return async (e, t) => {
3952
3969
  await n.updateTable("tickets").set({
3953
3970
  used_at: (/* @__PURE__ */ new Date()).toISOString()
3954
3971
  }).where("tickets.tenant_id", "=", e).where("tickets.id", "=", t).execute();
3955
3972
  };
3956
3973
  }
3957
- function aa(n) {
3974
+ function oa(n) {
3958
3975
  return {
3959
- create: sa(n),
3960
- get: na(n),
3961
- remove: ra(n)
3976
+ create: aa(n),
3977
+ get: ra(n),
3978
+ remove: ia(n)
3962
3979
  };
3963
3980
  }
3964
- function ia(n) {
3981
+ function ca(n) {
3965
3982
  return async (e, t) => {
3966
3983
  const s = await n.selectFrom("passwords").where("passwords.tenant_id", "=", e).where("passwords.user_id", "=", t).selectAll().executeTakeFirstOrThrow(), { tenant_id: r, ...a } = s;
3967
3984
  return a;
3968
3985
  };
3969
3986
  }
3970
- function oa(n) {
3987
+ function da(n) {
3971
3988
  return async (e, t) => {
3972
3989
  const s = {
3973
3990
  ...t,
@@ -3980,20 +3997,20 @@ function oa(n) {
3980
3997
  }).execute(), s;
3981
3998
  };
3982
3999
  }
3983
- function ca(n) {
4000
+ function ua(n) {
3984
4001
  return async (e, t) => (await n.updateTable("passwords").set({
3985
4002
  password: t.password,
3986
4003
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
3987
4004
  }).where("tenant_id", "=", e).where("user_id", "=", t.user_id).execute()).length === 1;
3988
4005
  }
3989
- function da(n) {
4006
+ function la(n) {
3990
4007
  return {
3991
- create: oa(n),
3992
- update: ca(n),
3993
- get: ia(n)
4008
+ create: da(n),
4009
+ update: ua(n),
4010
+ get: ca(n)
3994
4011
  };
3995
4012
  }
3996
- function ua(n) {
4013
+ function pa(n) {
3997
4014
  return async (e, t) => {
3998
4015
  let s = n.selectFrom("codes").where("codes.tenant_id", "=", e);
3999
4016
  t.q && (s = Ee(n, s, t.q, ["code", "login_id"]));
@@ -4001,7 +4018,7 @@ function ua(n) {
4001
4018
  return {
4002
4019
  codes: a.map((d) => {
4003
4020
  const { tenant_id: u, ...l } = d;
4004
- return mr.parse(R(l));
4021
+ return gr.parse(R(l));
4005
4022
  }),
4006
4023
  start: t.page * t.per_page,
4007
4024
  limit: t.per_page,
@@ -4009,7 +4026,7 @@ function ua(n) {
4009
4026
  };
4010
4027
  };
4011
4028
  }
4012
- function la(n) {
4029
+ function ha(n) {
4013
4030
  return async (e, t) => {
4014
4031
  const s = {
4015
4032
  ...t,
@@ -4021,10 +4038,10 @@ function la(n) {
4021
4038
  }).execute(), s;
4022
4039
  };
4023
4040
  }
4024
- function pa(n) {
4041
+ function fa(n) {
4025
4042
  return async (e, t) => (await n.deleteFrom("codes").where("codes.tenant_id", "=", e).where("codes.code_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4026
4043
  }
4027
- function ha(n) {
4044
+ function ma(n) {
4028
4045
  return async (e, t, s) => {
4029
4046
  let r = n.selectFrom("codes").where("codes.code_id", "=", t).where("codes.code_type", "=", s).where("codes.expires_at", ">", (/* @__PURE__ */ new Date()).toISOString());
4030
4047
  e.length && (r = r.where("codes.tenant_id", "=", e));
@@ -4032,15 +4049,15 @@ function ha(n) {
4032
4049
  return a ? R(a) : null;
4033
4050
  };
4034
4051
  }
4035
- function fa(n) {
4052
+ function _a(n) {
4036
4053
  return {
4037
- create: la(n),
4038
- list: ua(n),
4039
- remove: pa(n),
4040
- get: ha(n)
4054
+ create: ha(n),
4055
+ list: pa(n),
4056
+ remove: fa(n),
4057
+ get: ma(n)
4041
4058
  };
4042
4059
  }
4043
- function ma(n) {
4060
+ function ga(n) {
4044
4061
  return async (e, t) => {
4045
4062
  const s = {
4046
4063
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
@@ -4059,7 +4076,7 @@ function ma(n) {
4059
4076
  }).execute(), s;
4060
4077
  };
4061
4078
  }
4062
- function _a(n) {
4079
+ function ya(n) {
4063
4080
  return async (e) => ({
4064
4081
  applications: (await n.selectFrom("applications").where("applications.tenant_id", "=", e).selectAll().execute()).map((a) => ({
4065
4082
  ...a,
@@ -4072,7 +4089,7 @@ function _a(n) {
4072
4089
  }))
4073
4090
  });
4074
4091
  }
4075
- function ga(n) {
4092
+ function va(n) {
4076
4093
  return async (e, t) => {
4077
4094
  const s = await n.selectFrom("applications").where("applications.tenant_id", "=", e).where("applications.id", "=", t).selectAll().executeTakeFirst();
4078
4095
  return s ? R({
@@ -4086,10 +4103,10 @@ function ga(n) {
4086
4103
  }) : null;
4087
4104
  };
4088
4105
  }
4089
- function ya(n) {
4106
+ function wa(n) {
4090
4107
  return async (e, t) => (await n.deleteFrom("applications").where("applications.tenant_id", "=", e).where("applications.id", "=", t).executeTakeFirst()).numDeletedRows > 0;
4091
4108
  }
4092
- function va(n) {
4109
+ function ba(n) {
4093
4110
  return async (e, t, s) => {
4094
4111
  const r = {
4095
4112
  ...s,
@@ -4104,16 +4121,16 @@ function va(n) {
4104
4121
  return await n.updateTable("applications").set(r).where("applications.id", "=", t).where("applications.tenant_id", "=", e).execute(), !0;
4105
4122
  };
4106
4123
  }
4107
- function wa(n) {
4124
+ function ka(n) {
4108
4125
  return {
4109
- create: ma(n),
4110
- list: _a(n),
4111
- get: ga(n),
4112
- remove: ya(n),
4113
- update: va(n)
4126
+ create: ga(n),
4127
+ list: ya(n),
4128
+ get: va(n),
4129
+ remove: wa(n),
4130
+ update: ba(n)
4114
4131
  };
4115
4132
  }
4116
- function ba(n, e) {
4133
+ function xa(n, e) {
4117
4134
  var t = {};
4118
4135
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && e.indexOf(s) < 0 && (t[s] = n[s]);
4119
4136
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -4121,7 +4138,7 @@ function ba(n, e) {
4121
4138
  e.indexOf(s[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, s[r]) && (t[s[r]] = n[s[r]]);
4122
4139
  return t;
4123
4140
  }
4124
- function ka(n, e) {
4141
+ function Ta(n, e) {
4125
4142
  var t;
4126
4143
  return ((t = n == null ? void 0 : n._def) === null || t === void 0 ? void 0 : t.typeName) === e;
4127
4144
  }
@@ -4132,15 +4149,15 @@ function Ye(n, e) {
4132
4149
  return r._def.openapi = this._def.openapi, r;
4133
4150
  };
4134
4151
  }
4135
- function xa(n) {
4152
+ function Oa(n) {
4136
4153
  if (typeof n.ZodType.prototype.openapi < "u")
4137
4154
  return;
4138
4155
  n.ZodType.prototype.openapi = function(r, a) {
4139
4156
  var o, c, d, u, l, j;
4140
- const A = typeof r == "string" ? a : r, U = A ?? {}, { param: ie } = U, $e = ba(U, ["param"]), oe = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof r == "string" ? { refId: r } : void 0), ce = Object.assign(Object.assign(Object.assign({}, (c = this._def.openapi) === null || c === void 0 ? void 0 : c.metadata), $e), !((u = (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata) === null || u === void 0) && u.param || ie ? {
4157
+ const A = typeof r == "string" ? a : r, U = A ?? {}, { param: ie } = U, $e = xa(U, ["param"]), oe = Object.assign(Object.assign({}, (o = this._def.openapi) === null || o === void 0 ? void 0 : o._internal), typeof r == "string" ? { refId: r } : void 0), ce = Object.assign(Object.assign(Object.assign({}, (c = this._def.openapi) === null || c === void 0 ? void 0 : c.metadata), $e), !((u = (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata) === null || u === void 0) && u.param || ie ? {
4141
4158
  param: Object.assign(Object.assign({}, (j = (l = this._def.openapi) === null || l === void 0 ? void 0 : l.metadata) === null || j === void 0 ? void 0 : j.param), ie)
4142
4159
  } : void 0), de = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(oe).length > 0 ? { _internal: oe } : void 0), Object.keys(ce).length > 0 ? { metadata: ce } : void 0) }));
4143
- if (ka(this, "ZodObject")) {
4160
+ if (Ta(this, "ZodObject")) {
4144
4161
  const Pe = this.extend;
4145
4162
  de.extend = function(...De) {
4146
4163
  var K, H, Q, ue, xe, Te;
@@ -4278,7 +4295,7 @@ const g = C.arrayToEnum([
4278
4295
  "invalid_intersection_types",
4279
4296
  "not_multiple_of",
4280
4297
  "not_finite"
4281
- ]), Ta = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
4298
+ ]), Sa = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
4282
4299
  class V extends Error {
4283
4300
  constructor(e) {
4284
4301
  super(), this.issues = [], this.addIssue = (s) => {
@@ -4396,7 +4413,7 @@ const Je = (n, e) => {
4396
4413
  return { message: t };
4397
4414
  };
4398
4415
  let Mn = Je;
4399
- function Oa(n) {
4416
+ function Za(n) {
4400
4417
  Mn = n;
4401
4418
  }
4402
4419
  function Vt() {
@@ -4422,7 +4439,7 @@ const Ut = (n) => {
4422
4439
  path: a,
4423
4440
  message: c
4424
4441
  };
4425
- }, Sa = [];
4442
+ }, ja = [];
4426
4443
  function m(n, e) {
4427
4444
  const t = Vt(), s = Ut({
4428
4445
  issueData: e,
@@ -4713,14 +4730,14 @@ class Z {
4713
4730
  return this.safeParse(null).success;
4714
4731
  }
4715
4732
  }
4716
- const Za = /^c[^\s-]{8,}$/i, ja = /^[0-9a-z]+$/, Na = /^[0-9A-HJKMNP-TV-Z]{26}$/, Ca = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ia = /^[a-z0-9_-]{21}$/i, Ea = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Aa = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ra = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4733
+ const Na = /^c[^\s-]{8,}$/i, Ca = /^[0-9a-z]+$/, Ia = /^[0-9A-HJKMNP-TV-Z]{26}$/, Ea = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Aa = /^[a-z0-9_-]{21}$/i, Ra = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, $a = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Pa = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4717
4734
  let Yt;
4718
- const $a = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pa = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Da = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Vn = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ma = new RegExp(`^${Vn}$`);
4735
+ const Da = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ma = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, La = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Vn = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Va = new RegExp(`^${Vn}$`);
4719
4736
  function Un(n) {
4720
4737
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
4721
4738
  return n.precision ? e = `${e}\\.\\d{${n.precision}}` : n.precision == null && (e = `${e}(\\.\\d+)?`), e;
4722
4739
  }
4723
- function La(n) {
4740
+ function Ua(n) {
4724
4741
  return new RegExp(`^${Un(n)}$`);
4725
4742
  }
4726
4743
  function Fn(n) {
@@ -4728,8 +4745,8 @@ function Fn(n) {
4728
4745
  const t = [];
4729
4746
  return t.push(n.local ? "Z?" : "Z"), n.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
4730
4747
  }
4731
- function Va(n, e) {
4732
- return !!((e === "v4" || !e) && $a.test(n) || (e === "v6" || !e) && Pa.test(n));
4748
+ function Fa(n, e) {
4749
+ return !!((e === "v4" || !e) && Da.test(n) || (e === "v6" || !e) && Ma.test(n));
4733
4750
  }
4734
4751
  class z extends Z {
4735
4752
  _parse(e) {
@@ -4780,43 +4797,43 @@ class z extends Z {
4780
4797
  message: a.message
4781
4798
  }), s.dirty());
4782
4799
  } else if (a.kind === "email")
4783
- Aa.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4800
+ $a.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4784
4801
  validation: "email",
4785
4802
  code: h.invalid_string,
4786
4803
  message: a.message
4787
4804
  }), s.dirty());
4788
4805
  else if (a.kind === "emoji")
4789
- Yt || (Yt = new RegExp(Ra, "u")), Yt.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4806
+ Yt || (Yt = new RegExp(Pa, "u")), Yt.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4790
4807
  validation: "emoji",
4791
4808
  code: h.invalid_string,
4792
4809
  message: a.message
4793
4810
  }), s.dirty());
4794
4811
  else if (a.kind === "uuid")
4795
- Ca.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4812
+ Ea.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4796
4813
  validation: "uuid",
4797
4814
  code: h.invalid_string,
4798
4815
  message: a.message
4799
4816
  }), s.dirty());
4800
4817
  else if (a.kind === "nanoid")
4801
- Ia.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4818
+ Aa.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4802
4819
  validation: "nanoid",
4803
4820
  code: h.invalid_string,
4804
4821
  message: a.message
4805
4822
  }), s.dirty());
4806
4823
  else if (a.kind === "cuid")
4807
- Za.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4824
+ Na.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4808
4825
  validation: "cuid",
4809
4826
  code: h.invalid_string,
4810
4827
  message: a.message
4811
4828
  }), s.dirty());
4812
4829
  else if (a.kind === "cuid2")
4813
- ja.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4830
+ Ca.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4814
4831
  validation: "cuid2",
4815
4832
  code: h.invalid_string,
4816
4833
  message: a.message
4817
4834
  }), s.dirty());
4818
4835
  else if (a.kind === "ulid")
4819
- Na.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4836
+ Ia.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4820
4837
  validation: "ulid",
4821
4838
  code: h.invalid_string,
4822
4839
  message: a.message
@@ -4851,23 +4868,23 @@ class z extends Z {
4851
4868
  code: h.invalid_string,
4852
4869
  validation: "datetime",
4853
4870
  message: a.message
4854
- }), s.dirty()) : a.kind === "date" ? Ma.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4871
+ }), s.dirty()) : a.kind === "date" ? Va.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4855
4872
  code: h.invalid_string,
4856
4873
  validation: "date",
4857
4874
  message: a.message
4858
- }), s.dirty()) : a.kind === "time" ? La(a).test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4875
+ }), s.dirty()) : a.kind === "time" ? Ua(a).test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4859
4876
  code: h.invalid_string,
4860
4877
  validation: "time",
4861
4878
  message: a.message
4862
- }), s.dirty()) : a.kind === "duration" ? Ea.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4879
+ }), s.dirty()) : a.kind === "duration" ? Ra.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4863
4880
  validation: "duration",
4864
4881
  code: h.invalid_string,
4865
4882
  message: a.message
4866
- }), s.dirty()) : a.kind === "ip" ? Va(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
4883
+ }), s.dirty()) : a.kind === "ip" ? Fa(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
4867
4884
  validation: "ip",
4868
4885
  code: h.invalid_string,
4869
4886
  message: a.message
4870
- }), s.dirty()) : a.kind === "base64" ? Da.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4887
+ }), s.dirty()) : a.kind === "base64" ? La.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
4871
4888
  validation: "base64",
4872
4889
  code: h.invalid_string,
4873
4890
  message: a.message
@@ -5089,7 +5106,7 @@ z.create = (n) => {
5089
5106
  ...O(n)
5090
5107
  });
5091
5108
  };
5092
- function Ua(n, e) {
5109
+ function za(n, e) {
5093
5110
  const t = (n.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, r = t > s ? t : s, a = parseInt(n.toFixed(r).replace(".", "")), o = parseInt(e.toFixed(r).replace(".", ""));
5094
5111
  return a % o / Math.pow(10, r);
5095
5112
  }
@@ -5128,7 +5145,7 @@ class ye extends Z {
5128
5145
  inclusive: a.inclusive,
5129
5146
  exact: !1,
5130
5147
  message: a.message
5131
- }), r.dirty()) : a.kind === "multipleOf" ? Ua(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
5148
+ }), r.dirty()) : a.kind === "multipleOf" ? za(e.data, a.value) !== 0 && (s = this._getOrReturnCtx(e, s), m(s, {
5132
5149
  code: h.not_multiple_of,
5133
5150
  multipleOf: a.value,
5134
5151
  message: a.message
@@ -6829,7 +6846,7 @@ qt.create = (n) => new qt({
6829
6846
  typeName: b.ZodNaN,
6830
6847
  ...O(n)
6831
6848
  });
6832
- const Fa = Symbol("zod_brand");
6849
+ const Ba = Symbol("zod_brand");
6833
6850
  class pn extends Z {
6834
6851
  _parse(e) {
6835
6852
  const { ctx: t } = this._processInputParams(e), s = t.data;
@@ -6906,16 +6923,16 @@ function Bn(n, e = {}, t) {
6906
6923
  }
6907
6924
  }) : Ke.create();
6908
6925
  }
6909
- const za = {
6926
+ const Wa = {
6910
6927
  object: E.lazycreate
6911
6928
  };
6912
6929
  var b;
6913
6930
  (function(n) {
6914
6931
  n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
6915
6932
  })(b || (b = {}));
6916
- const Ba = (n, e = {
6933
+ const qa = (n, e = {
6917
6934
  message: `Input not instance of ${n.name}`
6918
- }) => Bn((t) => t instanceof n, e), Wn = z.create, qn = ye.create, Wa = qt.create, qa = ve.create, Jn = yt.create, Ja = Ce.create, Ka = zt.create, Ha = vt.create, Qa = wt.create, Ya = Ke.create, Ga = Ze.create, Xa = ae.create, ei = Bt.create, ti = W.create, ni = E.create, si = E.strictCreate, ri = bt.create, ai = Kt.create, ii = kt.create, oi = ne.create, ci = xt.create, di = Wt.create, ui = Ie.create, li = ze.create, pi = Tt.create, hi = Ot.create, fi = we.create, mi = St.create, _i = He.create, vn = J.create, gi = G.create, yi = be.create, vi = J.createWithPreprocess, wi = It.create, bi = () => Wn().optional(), ki = () => qn().optional(), xi = () => Jn().optional(), Ti = {
6935
+ }) => Bn((t) => t instanceof n, e), Wn = z.create, qn = ye.create, Ja = qt.create, Ka = ve.create, Jn = yt.create, Ha = Ce.create, Qa = zt.create, Ya = vt.create, Ga = wt.create, Xa = Ke.create, ei = Ze.create, ti = ae.create, ni = Bt.create, si = W.create, ri = E.create, ai = E.strictCreate, ii = bt.create, oi = Kt.create, ci = kt.create, di = ne.create, ui = xt.create, li = Wt.create, pi = Ie.create, hi = ze.create, fi = Tt.create, mi = Ot.create, _i = we.create, gi = St.create, yi = He.create, vn = J.create, vi = G.create, wi = be.create, bi = J.createWithPreprocess, ki = It.create, xi = () => Wn().optional(), Ti = () => qn().optional(), Oi = () => Jn().optional(), Si = {
6919
6936
  string: (n) => z.create({ ...n, coerce: !0 }),
6920
6937
  number: (n) => ye.create({ ...n, coerce: !0 }),
6921
6938
  boolean: (n) => yt.create({
@@ -6924,14 +6941,14 @@ const Ba = (n, e = {
6924
6941
  }),
6925
6942
  bigint: (n) => ve.create({ ...n, coerce: !0 }),
6926
6943
  date: (n) => Ce.create({ ...n, coerce: !0 })
6927
- }, Oi = k;
6928
- var Si = /* @__PURE__ */ Object.freeze({
6944
+ }, Zi = k;
6945
+ var ji = /* @__PURE__ */ Object.freeze({
6929
6946
  __proto__: null,
6930
6947
  defaultErrorMap: Je,
6931
- setErrorMap: Oa,
6948
+ setErrorMap: Za,
6932
6949
  getErrorMap: Vt,
6933
6950
  makeIssue: Ut,
6934
- EMPTY_PATH: Sa,
6951
+ EMPTY_PATH: ja,
6935
6952
  addIssueToContext: m,
6936
6953
  ParseStatus: P,
6937
6954
  INVALID: k,
@@ -6985,63 +7002,63 @@ var Si = /* @__PURE__ */ Object.freeze({
6985
7002
  ZodDefault: Zt,
6986
7003
  ZodCatch: jt,
6987
7004
  ZodNaN: qt,
6988
- BRAND: Fa,
7005
+ BRAND: Ba,
6989
7006
  ZodBranded: pn,
6990
7007
  ZodPipeline: It,
6991
7008
  ZodReadonly: Nt,
6992
7009
  custom: Bn,
6993
7010
  Schema: Z,
6994
7011
  ZodSchema: Z,
6995
- late: za,
7012
+ late: Wa,
6996
7013
  get ZodFirstPartyTypeKind() {
6997
7014
  return b;
6998
7015
  },
6999
- coerce: Ti,
7000
- any: Ya,
7001
- array: ti,
7002
- bigint: qa,
7016
+ coerce: Si,
7017
+ any: Xa,
7018
+ array: si,
7019
+ bigint: Ka,
7003
7020
  boolean: Jn,
7004
- date: Ja,
7005
- discriminatedUnion: ai,
7021
+ date: Ha,
7022
+ discriminatedUnion: oi,
7006
7023
  effect: vn,
7007
- enum: fi,
7008
- function: li,
7009
- instanceof: Ba,
7010
- intersection: ii,
7011
- lazy: pi,
7012
- literal: hi,
7013
- map: di,
7014
- nan: Wa,
7015
- nativeEnum: mi,
7016
- never: Xa,
7017
- null: Qa,
7018
- nullable: yi,
7024
+ enum: _i,
7025
+ function: hi,
7026
+ instanceof: qa,
7027
+ intersection: ci,
7028
+ lazy: fi,
7029
+ literal: mi,
7030
+ map: li,
7031
+ nan: Ja,
7032
+ nativeEnum: gi,
7033
+ never: ti,
7034
+ null: Ga,
7035
+ nullable: wi,
7019
7036
  number: qn,
7020
- object: ni,
7021
- oboolean: xi,
7022
- onumber: ki,
7023
- optional: gi,
7024
- ostring: bi,
7025
- pipeline: wi,
7026
- preprocess: vi,
7027
- promise: _i,
7028
- record: ci,
7029
- set: ui,
7030
- strictObject: si,
7037
+ object: ri,
7038
+ oboolean: Oi,
7039
+ onumber: Ti,
7040
+ optional: vi,
7041
+ ostring: xi,
7042
+ pipeline: ki,
7043
+ preprocess: bi,
7044
+ promise: yi,
7045
+ record: ui,
7046
+ set: pi,
7047
+ strictObject: ai,
7031
7048
  string: Wn,
7032
- symbol: Ka,
7049
+ symbol: Qa,
7033
7050
  transformer: vn,
7034
- tuple: oi,
7035
- undefined: Ha,
7036
- union: ri,
7037
- unknown: Ga,
7038
- void: ei,
7039
- NEVER: Oi,
7051
+ tuple: di,
7052
+ undefined: Ya,
7053
+ union: ii,
7054
+ unknown: ei,
7055
+ void: ni,
7056
+ NEVER: Zi,
7040
7057
  ZodIssueCode: h,
7041
- quotelessJson: Ta,
7058
+ quotelessJson: Sa,
7042
7059
  ZodError: V
7043
7060
  });
7044
- xa(Si);
7061
+ Oa(ji);
7045
7062
  function Re(n, e = "", t = {}) {
7046
7063
  for (let s in n)
7047
7064
  if (Object.prototype.hasOwnProperty.call(n, s)) {
@@ -7068,7 +7085,7 @@ function hn(n, e) {
7068
7085
  }
7069
7086
  return t;
7070
7087
  }
7071
- function Zi(n) {
7088
+ function Ni(n) {
7072
7089
  return async (e, t) => {
7073
7090
  const s = {
7074
7091
  id: Ae(),
@@ -7079,7 +7096,7 @@ function Zi(n) {
7079
7096
  return await n.insertInto("connections").values({ ...Re(s), tenant_id: e }).execute(), s;
7080
7097
  };
7081
7098
  }
7082
- function ji(n) {
7099
+ function Ci(n) {
7083
7100
  return async (e, t) => {
7084
7101
  let s = n.selectFrom("connections").where("connections.tenant_id", "=", e);
7085
7102
  t.q && (s = Ee(n, s, t.q, ["user_id", "ip"]));
@@ -7094,16 +7111,16 @@ function ji(n) {
7094
7111
  };
7095
7112
  };
7096
7113
  }
7097
- function Ni(n) {
7114
+ function Ii(n) {
7098
7115
  return async (e, t) => (await n.deleteFrom("connections").where("connections.tenant_id", "=", e).where("connections.id", "=", t).executeTakeFirst()).numDeletedRows > 0;
7099
7116
  }
7100
- function Ci(n) {
7117
+ function Ei(n) {
7101
7118
  return async (e, t) => {
7102
7119
  const s = await n.selectFrom("connections").where("connections.tenant_id", "=", e).where("connections.id", "=", t).selectAll().executeTakeFirst();
7103
7120
  return s ? R(hn(s, ["options"])) : null;
7104
7121
  };
7105
7122
  }
7106
- function Ii(n) {
7123
+ function Ai(n) {
7107
7124
  return async (e, t, s) => {
7108
7125
  const r = {
7109
7126
  ...s,
@@ -7112,16 +7129,16 @@ function Ii(n) {
7112
7129
  return await n.updateTable("connections").set(Re(r)).where("connections.id", "=", t).where("connections.tenant_id", "=", e).execute(), !0;
7113
7130
  };
7114
7131
  }
7115
- function Ei(n) {
7132
+ function Ri(n) {
7116
7133
  return {
7117
- create: Zi(n),
7118
- get: Ci(n),
7119
- list: ji(n),
7120
- remove: Ni(n),
7121
- update: Ii(n)
7134
+ create: Ni(n),
7135
+ get: Ei(n),
7136
+ list: Ci(n),
7137
+ remove: Ii(n),
7138
+ update: Ai(n)
7122
7139
  };
7123
7140
  }
7124
- function Ai(n) {
7141
+ function $i(n) {
7125
7142
  return {
7126
7143
  get: async (e) => {
7127
7144
  const t = await n.selectFrom("applications").selectAll().where("id", "=", e).executeTakeFirst();
@@ -7149,25 +7166,25 @@ function Ai(n) {
7149
7166
  }
7150
7167
  };
7151
7168
  }
7152
- function Ri(n) {
7169
+ function Pi(n) {
7153
7170
  return async () => await n.selectFrom("keys").where("revoked_at", "is", null).selectAll().execute();
7154
7171
  }
7155
- function $i(n) {
7172
+ function Di(n) {
7156
7173
  return async (e) => {
7157
7174
  await n.insertInto("keys").values({ ...e, created_at: (/* @__PURE__ */ new Date()).toDateString() }).execute();
7158
7175
  };
7159
7176
  }
7160
- function Pi(n) {
7177
+ function Mi(n) {
7161
7178
  return async (e, t) => !!(await n.updateTable("keys").set(t).where("kid", "=", e).execute()).length;
7162
7179
  }
7163
- function Di(n) {
7180
+ function Li(n) {
7164
7181
  return {
7165
- create: $i(n),
7166
- list: Ri(n),
7167
- update: Pi(n)
7182
+ create: Di(n),
7183
+ list: Pi(n),
7184
+ update: Mi(n)
7168
7185
  };
7169
7186
  }
7170
- function Mi(n) {
7187
+ function Vi(n) {
7171
7188
  return async (e, t) => {
7172
7189
  const s = {
7173
7190
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
@@ -7179,7 +7196,7 @@ function Mi(n) {
7179
7196
  return await n.insertInto("domains").values(s).execute(), s;
7180
7197
  };
7181
7198
  }
7182
- function Li(n) {
7199
+ function Ui(n) {
7183
7200
  return async (e, t) => {
7184
7201
  let s = n.selectFrom("domains").where("domains.tenant_id", "=", e);
7185
7202
  t.q && (s = Ee(n, s, t.q, ["user_id", "ip"]));
@@ -7192,13 +7209,13 @@ function Li(n) {
7192
7209
  };
7193
7210
  };
7194
7211
  }
7195
- function Vi(n) {
7212
+ function Fi(n) {
7196
7213
  return {
7197
- create: Mi(n),
7198
- list: Li(n)
7214
+ create: Vi(n),
7215
+ list: Ui(n)
7199
7216
  };
7200
7217
  }
7201
- function Ui(n) {
7218
+ function zi(n) {
7202
7219
  return async (e) => {
7203
7220
  const [t] = await n.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
7204
7221
  if (!t)
@@ -7228,7 +7245,7 @@ function Ui(n) {
7228
7245
  });
7229
7246
  };
7230
7247
  }
7231
- function Fi(n) {
7248
+ function Bi(n) {
7232
7249
  return async (e, t) => {
7233
7250
  var o, c, d, u, l, j, A, U, ie, $e, oe, ce, de, Pe, De, K, H, Q;
7234
7251
  const { colors: s, font: r, ...a } = t;
@@ -7256,13 +7273,13 @@ function Fi(n) {
7256
7273
  }
7257
7274
  };
7258
7275
  }
7259
- function zi(n) {
7276
+ function Wi(n) {
7260
7277
  return {
7261
- get: Ui(n),
7262
- set: Fi(n)
7278
+ get: zi(n),
7279
+ set: Bi(n)
7263
7280
  };
7264
7281
  }
7265
- function Bi(n) {
7282
+ function qi(n) {
7266
7283
  return async (e, t) => {
7267
7284
  let s = n.selectFrom("hooks").where("hooks.tenant_id", "=", e);
7268
7285
  t.q && (s = Ee(n, s, t.q, ["url"]));
@@ -7282,16 +7299,16 @@ function Bi(n) {
7282
7299
  };
7283
7300
  };
7284
7301
  }
7285
- function Wi(n) {
7302
+ function Ji(n) {
7286
7303
  return async (e, t) => {
7287
7304
  const s = await n.selectFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", t).selectAll().executeTakeFirst();
7288
7305
  return s ? (s.enabled = !!s.enabled, s.synchronous = !!s.synchronous, R(s)) : null;
7289
7306
  };
7290
7307
  }
7291
- function qi(n) {
7308
+ function Ki(n) {
7292
7309
  return async (e, t) => (await n.deleteFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
7293
7310
  }
7294
- function Ji(n) {
7311
+ function Hi(n) {
7295
7312
  return async (e, t) => {
7296
7313
  const s = {
7297
7314
  hook_id: Ae(),
@@ -7305,7 +7322,7 @@ function Ji(n) {
7305
7322
  }).execute(), s;
7306
7323
  };
7307
7324
  }
7308
- function Ki(n) {
7325
+ function Qi(n) {
7309
7326
  return async (e, t, s) => {
7310
7327
  const r = {
7311
7328
  ...s,
@@ -7314,16 +7331,16 @@ function Ki(n) {
7314
7331
  return await n.updateTable("hooks").set(r).where("hooks.hook_id", "=", t).where("hooks.tenant_id", "=", e).execute(), !0;
7315
7332
  };
7316
7333
  }
7317
- function Hi(n) {
7334
+ function Yi(n) {
7318
7335
  return {
7319
- create: Ji(n),
7320
- get: Wi(n),
7321
- list: Bi(n),
7322
- update: Ki(n),
7323
- remove: qi(n)
7336
+ create: Hi(n),
7337
+ get: Ji(n),
7338
+ list: qi(n),
7339
+ update: Qi(n),
7340
+ remove: Ki(n)
7324
7341
  };
7325
7342
  }
7326
- function Qi(n) {
7343
+ function Gi(n) {
7327
7344
  return async (e, t) => {
7328
7345
  const s = {
7329
7346
  themeId: Ae(),
@@ -7334,16 +7351,16 @@ function Qi(n) {
7334
7351
  return await n.insertInto("themes").values({ ...Re(s), tenant_id: e }).execute(), s;
7335
7352
  };
7336
7353
  }
7337
- function Yi(n) {
7354
+ function Xi(n) {
7338
7355
  return async (e, t) => (await n.deleteFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", t).executeTakeFirst()).numDeletedRows > 0;
7339
7356
  }
7340
- function Gi(n) {
7357
+ function eo(n) {
7341
7358
  return async (e, t) => {
7342
7359
  const s = await n.selectFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", t).selectAll().executeTakeFirst();
7343
7360
  return s ? R(s) : null;
7344
7361
  };
7345
7362
  }
7346
- function Xi(n) {
7363
+ function to(n) {
7347
7364
  return async (e, t, s) => {
7348
7365
  const r = Re({
7349
7366
  ...s,
@@ -7352,23 +7369,23 @@ function Xi(n) {
7352
7369
  return await n.updateTable("themes").set(r).where("themes.id", "=", t).where("themes.tenant_id", "=", e).execute(), !0;
7353
7370
  };
7354
7371
  }
7355
- function eo(n) {
7372
+ function no(n) {
7356
7373
  return {
7357
- create: Qi(n),
7358
- get: Gi(n),
7359
- remove: Yi(n),
7360
- update: Xi(n)
7374
+ create: Gi(n),
7375
+ get: eo(n),
7376
+ remove: Xi(n),
7377
+ update: to(n)
7361
7378
  };
7362
7379
  }
7363
- function to(n) {
7380
+ function so(n) {
7364
7381
  return async (e, t) => {
7365
7382
  const s = (/* @__PURE__ */ new Date()).toISOString(), r = await n.selectFrom("logins").where("logins.expires_at", ">", s).where("logins.login_id", "=", t).selectAll().executeTakeFirst();
7366
- return r ? wr.parse(
7383
+ return r ? kr.parse(
7367
7384
  hn(R(r), ["authParams"])
7368
7385
  ) : null;
7369
7386
  };
7370
7387
  }
7371
- function no(n) {
7388
+ function ro(n) {
7372
7389
  return async (e, t) => {
7373
7390
  const s = {
7374
7391
  login_id: Ae(),
@@ -7379,21 +7396,21 @@ function no(n) {
7379
7396
  return await n.insertInto("logins").values({ ...Re(s), tenant_id: e }).execute(), s;
7380
7397
  };
7381
7398
  }
7382
- function so(n) {
7399
+ function ao(n) {
7383
7400
  return async (e, t, s) => (await n.updateTable("logins").set(Re(s)).where("logins.login_id", "=", t).where("logins.tenant_id", "=", e).execute()).length === 1;
7384
7401
  }
7385
- function ro(n) {
7402
+ function io(n) {
7386
7403
  return async (e, t) => (await n.deleteFrom("logins").where("logins.tenant_id", "=", e).where("logins.login_id", "=", t).execute()).length > 0;
7387
7404
  }
7388
- function ao(n) {
7405
+ function oo(n) {
7389
7406
  return {
7390
- create: no(n),
7391
- get: to(n),
7392
- update: so(n),
7393
- remove: ro(n)
7407
+ create: ro(n),
7408
+ get: so(n),
7409
+ update: ao(n),
7410
+ remove: io(n)
7394
7411
  };
7395
7412
  }
7396
- function io(n) {
7413
+ function co(n) {
7397
7414
  return async (e) => {
7398
7415
  const [t] = await n.selectFrom("promptSettings").where("promptSettings.tenant_id", "=", e).selectAll().execute();
7399
7416
  return R({
@@ -7404,7 +7421,7 @@ function io(n) {
7404
7421
  });
7405
7422
  };
7406
7423
  }
7407
- function oo(n) {
7424
+ function uo(n) {
7408
7425
  return async (e, t) => {
7409
7426
  try {
7410
7427
  await n.insertInto("promptSettings").values({
@@ -7416,33 +7433,33 @@ function oo(n) {
7416
7433
  }
7417
7434
  };
7418
7435
  }
7419
- function co(n) {
7436
+ function lo(n) {
7420
7437
  return {
7421
- get: io(n),
7422
- set: oo(n)
7438
+ get: co(n),
7439
+ set: uo(n)
7423
7440
  };
7424
7441
  }
7425
- function lo(n) {
7442
+ function ho(n) {
7426
7443
  return {
7427
- applications: wa(n),
7428
- branding: zi(n),
7429
- clients: Ai(n),
7430
- codes: fa(n),
7431
- connections: Ei(n),
7432
- domains: Vi(n),
7433
- hooks: Hi(n),
7434
- keys: Di(n),
7435
- logins: ao(n),
7436
- logs: Hr(n),
7437
- passwords: da(n),
7438
- promptSettings: co(n),
7439
- users: Dr(n),
7440
- sessions: ta(n),
7441
- tenants: Br(n),
7442
- themes: eo(n),
7443
- tickets: aa(n)
7444
+ applications: ka(n),
7445
+ branding: Wi(n),
7446
+ clients: $i(n),
7447
+ codes: _a(n),
7448
+ connections: Ri(n),
7449
+ domains: Fi(n),
7450
+ hooks: Yi(n),
7451
+ keys: Li(n),
7452
+ logins: oo(n),
7453
+ logs: Yr(n),
7454
+ passwords: la(n),
7455
+ promptSettings: lo(n),
7456
+ users: Lr(n),
7457
+ sessions: sa(n),
7458
+ tenants: qr(n),
7459
+ themes: no(n),
7460
+ tickets: oa(n)
7444
7461
  };
7445
7462
  }
7446
7463
  export {
7447
- lo as default
7464
+ ho as default
7448
7465
  };