@authhero/kysely-adapter 10.105.1 → 10.106.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.
@@ -125,4 +125,4 @@
125
125
  GROUP BY username, provider, tenant_id
126
126
  HAVING COUNT(*) > 1
127
127
  )
128
- `.execute(t),console.log("Duplicate rows removed.")}await t.schema.createIndex("unique_username_provider").on("users").unique().columns(["username","provider","tenant_id"]).execute()}async function Pp(t){await t.schema.dropIndex("unique_username_provider").execute()}const Rp=Object.freeze(Object.defineProperty({__proto__:null,down:Pp,up:Dp},Symbol.toStringTag,{value:"Module"}));async function zp(t){await t.schema.alterTable("refresh_tokens").addColumn("login_id","varchar(26)").execute(),await t.schema.createIndex("idx_refresh_tokens_login_id").on("refresh_tokens").column("login_id").execute()}async function Fp(t){await t.schema.dropIndex("idx_refresh_tokens_login_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("login_id").execute()}const Lp=Object.freeze(Object.defineProperty({__proto__:null,down:Fp,up:zp},Symbol.toStringTag,{value:"Module"}));async function lr(t){try{return await w`SELECT VERSION()`.execute(t),"mysql"}catch{return"sqlite"}}async function Mp(t){await lr(t)==="mysql"?(await t.schema.alterTable("refresh_tokens").modifyColumn("login_id","varchar(26)",a=>a.notNull()).execute(),await t.schema.dropIndex("idx_refresh_tokens_session_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("session_id").execute()):(await t.schema.dropIndex("idx_refresh_tokens_session_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("session_id").execute())}async function jp(t){await lr(t)==="mysql"?(await t.schema.alterTable("refresh_tokens").addColumn("session_id","varchar(26)").execute(),await t.schema.createIndex("idx_refresh_tokens_session_id").on("refresh_tokens").column("session_id").execute(),await t.schema.alterTable("refresh_tokens").modifyColumn("login_id","varchar(26)").execute()):await t.schema.alterTable("refresh_tokens").addColumn("session_id","varchar(21)").execute()}const Jp=Object.freeze(Object.defineProperty({__proto__:null,down:jp,up:Mp},Symbol.toStringTag,{value:"Module"}));async function qp(t){await t.schema.createIndex("idx_sessions_idle_expires_at_ts").on("sessions").column("idle_expires_at_ts").execute(),await t.schema.createIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").column("idle_expires_at_ts").execute()}async function Wp(t){await t.schema.dropIndex("idx_sessions_idle_expires_at_ts").on("sessions").execute(),await t.schema.dropIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").execute()}const Bp=Object.freeze(Object.defineProperty({__proto__:null,down:Wp,up:qp},Symbol.toStringTag,{value:"Module"})),ur={m1_init:yl,m2_magicLink:Cl,m3_updateAt:Sl,m4_logTable:kl,m5_userProfile:$l,m6_sessions:Pl,m7_passwords:Fl,m8_logsTableNewFields:jl,m9_passwordTableNewField:Wl,n01_codesTable:Kl,n11_universalLoginSession:Gl,n12_userFields:Xl,n13_userEmailIndex:tu,n14_profileDataField:ru,n15_userEmailIndex:iu,n16_userLocale:uu,n17_signingKeys:mu,n18_logsFields:pu,n19_connectionsUserinfo:yu,n20_missingFields:Cu,n21_sessionDeletedAt:Su,n22_dropLogsFields:ku,n23_dropUsersFields:$u,n24_logsIndexes:Pu,n25_logDescMaxLength:Fu,n26_logsTableExtraFields:ju,n27_usersTableNameIndex:Wu,n28_usersEmailConstrain:Ku,n29_increaseOtpStateLength:Gu,n30_increaseTicketStateLength:Xu,n31_branding:td,n32_indexesAndNotNull:rd,n33_vendorIdInUniversalLoginSession:id,n34_auth0ClientInUniversalLoginSession:ud,n35_increaseUniversalSessionStateLength:md,n36_authenticationCodes:pd,n37_disableSignUps:yd,n38_otpIpAddress:Cd,n39_increaseUserAgentLength:Sd,n40_userId:kd,n41_hooks:$d,n42_userIdIndexes:Pd,n43_userIdIndexes:Fd,n44_codes:jd,n45_hookProperties:Wd,n46_loginAuth0Client:Kd,n47_loginAuth0Client:Gd,n48_saml:Xd,n49_removeFields:t_,n50_authParamsNonce:r_,n51_connectionid:i_,n52_cert:u_,n53_codes_primary_key:m_,n54_cleanup_tables:p_,n55_logs_index:y_,n56_application_fields:C_,n57_prompt_settings:S_,n58_connection_client_id:k_,n59_connection_options:$_,n60_users_metadata:P_,n61_userLocales:F_,n62_prompt:j_,n63_connection_cleanup:W_,n64_act_as:K_,n65_code_verifier:G_,n66_email_providers:X_,n67_drop_tickets:tm,n68_login_useragents:rm,n70_refresh_tokens:im,n71_session_new_fields:um,n72_session_primary_key:mm,n73_drop_sessions:pm,n74_custom_domains:ym,n75_organizations:Cm,n76_authorization_url_length:Sm,n77_drop_sessions:km,n78_login_sessions:$m,n79_drop_sessions_2:Pm,n80_recreate_custom_domains:Fm,n81_phone:jm,n82_forms:Wm,n83_addFormsIdToHooks:Km,n84_login_completed:Gm,n85_add_login_session_id_to_sessions:Xm,n86_index_sessions_login_session_id:th,n87_code_challenge:rh,n88_add_redirect_uri_to_codes:ih,n89_add_nonce_and_state_to_codes:uh,n90_themes:mh,n91_resource_servers_rules_permissions:ph,n92_role_permissions:yh,n93_add_permissions_to_roles:Ch,n94_keys_connection_and_extend_columns:Sh,n95_create_organizations_table:kh,n96_create_user_organizations_table:$h,n97_add_organization_to_user_permissions_and_roles:Ph,n98_clients:Fh,n99_update_client_foreign_keys:Bh,o001_client_grants:Qh,o002_drop_applications:Hh,o003_phone_number_index:Zh,o004_login_sessions_id_index:af,o005_connections_tenant_index:of,o006_remove_redundant_user_organizations_tenant_index:lf,o007_tenant_settings:_f,o008_merge_tenant_settings_into_tenants:ff,o009_create_invites_table:wf,o010_add_log_id_to_logs:Nf,o011_add_location_info_to_logs:Tf,o012_add_password_history:Of,o013_connection_display_name:If,o014_client_connections:Df,o015_flows:zf,o016_add_is_system_column:Mf,o017_connections_composite_key:qf,o018_login_session_state:Uf,o019_roles_resource_servers_metadata:Vf,o020_session_add_timestamp_columns:Xf,o021_session_cleanup_and_ulid:tp,o022_oidc_profile_claims:rp,o023_preferred_username:ip,o024_user_address:up,o025_authparams_max_age:mp,o026_auth0_conformant:pp,o027_universal_login_templates:yp,o028_custom_text:Cp,o029_guardian_mfa:Sp,o030_add_template_id_to_hooks:Ep,o031_hooks_cleanup:Ap,o032_unique_username_provider:Rp,o033_add_login_id_to_refresh_tokens:Lp,o034_refresh_tokens_replace_session_id_with_login_id:Jp,o035_idle_expires_at_ts_indexes:Bp};async function Up(t,e=!1){e&&console.log("migrating...");const a=new or(ur),n=new Bn({db:t,provider:a}),{error:r,results:o}=await n.migrateToLatest();if(o==null||o.forEach(s=>{s.status==="Success"?e&&console.log(`migration "${s.migrationName}" was executed successfully`):s.status==="Error"&&console.error(`failed to execute migration "${s.migrationName}"`)}),r)throw console.error("failed to migrate"),console.error(r),r}async function Kp(t){console.log("migrating...");const e=new or(ur),a=new Bn({db:t,provider:e}),{error:n,results:r}=await a.migrateDown();if(r==null||r.forEach(o=>{o.status==="Success"?console.log(`migration "${o.migrationName}" was reverted successfully`):o.status==="Error"&&console.error(`failed to execute migration "${o.migrationName}"`)}),n)throw console.error("failed to migrate"),console.error(n),n}function Qp(t,e={useTransactions:!0}){return{branding:ns(t),clients:$o(t),clientConnections:Fo(t),clientGrants:Wo(t),codes:lo(t),connections:To(t),emailProviders:Ms(t),customDomains:es(t),flows:Dr(t),forms:Zs(t),hooks:ms(t),invites:ml(t),keys:Qo(t),loginSessions:$s(t),logs:Ur(t),passwords:no(t),promptSettings:Ps(t),refreshTokens:Us(t),resourceServers:oi(t),rolePermissions:fi(t),userPermissions:vi(t),userRoles:Si(t),roles:di(t),sessions:Xr(t),sessionCleanup:Qs(t),tenants:jr(t),themes:ws(t),universalLoginTemplates:is(t),customText:pl(t),users:Or(t,e),organizations:el(t),userOrganizations:il(t),stats:fl(t)}}exports.default=Qp;exports.migrateDown=Kp;exports.migrateToLatest=Up;
128
+ `.execute(t),console.log("Duplicate rows removed.")}await t.schema.createIndex("unique_username_provider").on("users").unique().columns(["username","provider","tenant_id"]).execute()}async function Pp(t){await t.schema.dropIndex("unique_username_provider").execute()}const Rp=Object.freeze(Object.defineProperty({__proto__:null,down:Pp,up:Dp},Symbol.toStringTag,{value:"Module"}));async function zp(t){await t.schema.alterTable("refresh_tokens").addColumn("login_id","varchar(26)").execute(),await t.schema.createIndex("idx_refresh_tokens_login_id").on("refresh_tokens").column("login_id").execute()}async function Fp(t){await t.schema.dropIndex("idx_refresh_tokens_login_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("login_id").execute()}const Lp=Object.freeze(Object.defineProperty({__proto__:null,down:Fp,up:zp},Symbol.toStringTag,{value:"Module"}));async function lr(t){try{return await w`SELECT VERSION()`.execute(t),"mysql"}catch{return"sqlite"}}async function Mp(t){await lr(t)==="mysql"?(await t.schema.alterTable("refresh_tokens").modifyColumn("login_id","varchar(26)",a=>a.notNull()).execute(),await t.schema.dropIndex("idx_refresh_tokens_session_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("session_id").execute()):(await t.schema.dropIndex("idx_refresh_tokens_session_id").execute(),await t.schema.alterTable("refresh_tokens").dropColumn("session_id").execute())}async function jp(t){await lr(t)==="mysql"?(await t.schema.alterTable("refresh_tokens").addColumn("session_id","varchar(26)").execute(),await t.schema.createIndex("idx_refresh_tokens_session_id").on("refresh_tokens").column("session_id").execute(),await t.schema.alterTable("refresh_tokens").modifyColumn("login_id","varchar(26)").execute()):await t.schema.alterTable("refresh_tokens").addColumn("session_id","varchar(21)").execute()}const Jp=Object.freeze(Object.defineProperty({__proto__:null,down:jp,up:Mp},Symbol.toStringTag,{value:"Module"}));async function qp(t){await t.schema.createIndex("idx_sessions_idle_expires_at_ts").on("sessions").column("idle_expires_at_ts").execute(),await t.schema.createIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").column("idle_expires_at_ts").execute()}async function Wp(t){await t.schema.dropIndex("idx_sessions_idle_expires_at_ts").on("sessions").execute(),await t.schema.dropIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").execute()}const Bp=Object.freeze(Object.defineProperty({__proto__:null,down:Wp,up:qp},Symbol.toStringTag,{value:"Module"}));async function Up(t){await t.schema.alterTable("login_sessions").addColumn("auth_connection","varchar(255)").execute()}async function Kp(t){await t.schema.alterTable("login_sessions").dropColumn("auth_connection").execute()}const Qp=Object.freeze(Object.defineProperty({__proto__:null,down:Kp,up:Up},Symbol.toStringTag,{value:"Module"})),ur={m1_init:yl,m2_magicLink:Cl,m3_updateAt:Sl,m4_logTable:kl,m5_userProfile:$l,m6_sessions:Pl,m7_passwords:Fl,m8_logsTableNewFields:jl,m9_passwordTableNewField:Wl,n01_codesTable:Kl,n11_universalLoginSession:Gl,n12_userFields:Xl,n13_userEmailIndex:tu,n14_profileDataField:ru,n15_userEmailIndex:iu,n16_userLocale:uu,n17_signingKeys:mu,n18_logsFields:pu,n19_connectionsUserinfo:yu,n20_missingFields:Cu,n21_sessionDeletedAt:Su,n22_dropLogsFields:ku,n23_dropUsersFields:$u,n24_logsIndexes:Pu,n25_logDescMaxLength:Fu,n26_logsTableExtraFields:ju,n27_usersTableNameIndex:Wu,n28_usersEmailConstrain:Ku,n29_increaseOtpStateLength:Gu,n30_increaseTicketStateLength:Xu,n31_branding:td,n32_indexesAndNotNull:rd,n33_vendorIdInUniversalLoginSession:id,n34_auth0ClientInUniversalLoginSession:ud,n35_increaseUniversalSessionStateLength:md,n36_authenticationCodes:pd,n37_disableSignUps:yd,n38_otpIpAddress:Cd,n39_increaseUserAgentLength:Sd,n40_userId:kd,n41_hooks:$d,n42_userIdIndexes:Pd,n43_userIdIndexes:Fd,n44_codes:jd,n45_hookProperties:Wd,n46_loginAuth0Client:Kd,n47_loginAuth0Client:Gd,n48_saml:Xd,n49_removeFields:t_,n50_authParamsNonce:r_,n51_connectionid:i_,n52_cert:u_,n53_codes_primary_key:m_,n54_cleanup_tables:p_,n55_logs_index:y_,n56_application_fields:C_,n57_prompt_settings:S_,n58_connection_client_id:k_,n59_connection_options:$_,n60_users_metadata:P_,n61_userLocales:F_,n62_prompt:j_,n63_connection_cleanup:W_,n64_act_as:K_,n65_code_verifier:G_,n66_email_providers:X_,n67_drop_tickets:tm,n68_login_useragents:rm,n70_refresh_tokens:im,n71_session_new_fields:um,n72_session_primary_key:mm,n73_drop_sessions:pm,n74_custom_domains:ym,n75_organizations:Cm,n76_authorization_url_length:Sm,n77_drop_sessions:km,n78_login_sessions:$m,n79_drop_sessions_2:Pm,n80_recreate_custom_domains:Fm,n81_phone:jm,n82_forms:Wm,n83_addFormsIdToHooks:Km,n84_login_completed:Gm,n85_add_login_session_id_to_sessions:Xm,n86_index_sessions_login_session_id:th,n87_code_challenge:rh,n88_add_redirect_uri_to_codes:ih,n89_add_nonce_and_state_to_codes:uh,n90_themes:mh,n91_resource_servers_rules_permissions:ph,n92_role_permissions:yh,n93_add_permissions_to_roles:Ch,n94_keys_connection_and_extend_columns:Sh,n95_create_organizations_table:kh,n96_create_user_organizations_table:$h,n97_add_organization_to_user_permissions_and_roles:Ph,n98_clients:Fh,n99_update_client_foreign_keys:Bh,o001_client_grants:Qh,o002_drop_applications:Hh,o003_phone_number_index:Zh,o004_login_sessions_id_index:af,o005_connections_tenant_index:of,o006_remove_redundant_user_organizations_tenant_index:lf,o007_tenant_settings:_f,o008_merge_tenant_settings_into_tenants:ff,o009_create_invites_table:wf,o010_add_log_id_to_logs:Nf,o011_add_location_info_to_logs:Tf,o012_add_password_history:Of,o013_connection_display_name:If,o014_client_connections:Df,o015_flows:zf,o016_add_is_system_column:Mf,o017_connections_composite_key:qf,o018_login_session_state:Uf,o019_roles_resource_servers_metadata:Vf,o020_session_add_timestamp_columns:Xf,o021_session_cleanup_and_ulid:tp,o022_oidc_profile_claims:rp,o023_preferred_username:ip,o024_user_address:up,o025_authparams_max_age:mp,o026_auth0_conformant:pp,o027_universal_login_templates:yp,o028_custom_text:Cp,o029_guardian_mfa:Sp,o030_add_template_id_to_hooks:Ep,o031_hooks_cleanup:Ap,o032_unique_username_provider:Rp,o033_add_login_id_to_refresh_tokens:Lp,o034_refresh_tokens_replace_session_id_with_login_id:Jp,o035_idle_expires_at_ts_indexes:Bp,o036_add_connection_to_login_sessions:Qp};async function Vp(t,e=!1){e&&console.log("migrating...");const a=new or(ur),n=new Bn({db:t,provider:a}),{error:r,results:o}=await n.migrateToLatest();if(o==null||o.forEach(s=>{s.status==="Success"?e&&console.log(`migration "${s.migrationName}" was executed successfully`):s.status==="Error"&&console.error(`failed to execute migration "${s.migrationName}"`)}),r)throw console.error("failed to migrate"),console.error(r),r}async function Gp(t){console.log("migrating...");const e=new or(ur),a=new Bn({db:t,provider:e}),{error:n,results:r}=await a.migrateDown();if(r==null||r.forEach(o=>{o.status==="Success"?console.log(`migration "${o.migrationName}" was reverted successfully`):o.status==="Error"&&console.error(`failed to execute migration "${o.migrationName}"`)}),n)throw console.error("failed to migrate"),console.error(n),n}function Hp(t,e={useTransactions:!0}){return{branding:ns(t),clients:$o(t),clientConnections:Fo(t),clientGrants:Wo(t),codes:lo(t),connections:To(t),emailProviders:Ms(t),customDomains:es(t),flows:Dr(t),forms:Zs(t),hooks:ms(t),invites:ml(t),keys:Qo(t),loginSessions:$s(t),logs:Ur(t),passwords:no(t),promptSettings:Ps(t),refreshTokens:Us(t),resourceServers:oi(t),rolePermissions:fi(t),userPermissions:vi(t),userRoles:Si(t),roles:di(t),sessions:Xr(t),sessionCleanup:Qs(t),tenants:jr(t),themes:ws(t),universalLoginTemplates:is(t),customText:pl(t),users:Or(t,e),organizations:el(t),userOrganizations:il(t),stats:fl(t)}}exports.default=Hp;exports.migrateDown=Gp;exports.migrateToLatest=Vp;
@@ -14408,6 +14408,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
14408
14408
  state_data: z.ZodOptional<z.ZodString>;
14409
14409
  failure_reason: z.ZodOptional<z.ZodString>;
14410
14410
  user_id: z.ZodOptional<z.ZodString>;
14411
+ auth_connection: z.ZodOptional<z.ZodString>;
14411
14412
  }, "strip", z.ZodTypeAny, {
14412
14413
  state: LoginSessionState;
14413
14414
  expires_at: string;
@@ -14441,6 +14442,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
14441
14442
  authorization_url?: string | undefined;
14442
14443
  state_data?: string | undefined;
14443
14444
  failure_reason?: string | undefined;
14445
+ auth_connection?: string | undefined;
14444
14446
  }, {
14445
14447
  expires_at: string;
14446
14448
  csrf_token: string;
@@ -14474,6 +14476,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
14474
14476
  authorization_url?: string | undefined;
14475
14477
  state_data?: string | undefined;
14476
14478
  failure_reason?: string | undefined;
14479
+ auth_connection?: string | undefined;
14477
14480
  }>;
14478
14481
  export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
14479
14482
  declare const loginSessionSchema: z.ZodObject<{
@@ -14550,6 +14553,7 @@ declare const loginSessionSchema: z.ZodObject<{
14550
14553
  state_data: z.ZodOptional<z.ZodString>;
14551
14554
  failure_reason: z.ZodOptional<z.ZodString>;
14552
14555
  user_id: z.ZodOptional<z.ZodString>;
14556
+ auth_connection: z.ZodOptional<z.ZodString>;
14553
14557
  }, "strip", z.ZodTypeAny, {
14554
14558
  created_at: string;
14555
14559
  updated_at: string;
@@ -14586,6 +14590,7 @@ declare const loginSessionSchema: z.ZodObject<{
14586
14590
  authorization_url?: string | undefined;
14587
14591
  state_data?: string | undefined;
14588
14592
  failure_reason?: string | undefined;
14593
+ auth_connection?: string | undefined;
14589
14594
  }, {
14590
14595
  created_at: string;
14591
14596
  updated_at: string;
@@ -14622,6 +14627,7 @@ declare const loginSessionSchema: z.ZodObject<{
14622
14627
  authorization_url?: string | undefined;
14623
14628
  state_data?: string | undefined;
14624
14629
  failure_reason?: string | undefined;
14630
+ auth_connection?: string | undefined;
14625
14631
  }>;
14626
14632
  export type LoginSession = z.infer<typeof loginSessionSchema>;
14627
14633
  declare const logInsertSchema: z.ZodObject<{
@@ -18089,6 +18095,7 @@ declare const sqlLoginSchema: z.ZodObject<{
18089
18095
  state_data: z.ZodOptional<z.ZodString>;
18090
18096
  failure_reason: z.ZodOptional<z.ZodString>;
18091
18097
  user_id: z.ZodOptional<z.ZodString>;
18098
+ auth_connection: z.ZodOptional<z.ZodString>;
18092
18099
  created_at_ts: z.ZodNumber;
18093
18100
  updated_at_ts: z.ZodNumber;
18094
18101
  expires_at_ts: z.ZodNumber;
@@ -18101,6 +18108,7 @@ declare const sqlLoginSchema: z.ZodObject<{
18101
18108
  state_data?: unknown;
18102
18109
  failure_reason?: unknown;
18103
18110
  user_id?: unknown;
18111
+ auth_connection?: unknown;
18104
18112
  created_at_ts?: unknown;
18105
18113
  updated_at_ts?: unknown;
18106
18114
  expires_at_ts?: unknown;
@@ -18113,6 +18121,7 @@ declare const sqlLoginSchema: z.ZodObject<{
18113
18121
  state_data?: unknown;
18114
18122
  failure_reason?: unknown;
18115
18123
  user_id?: unknown;
18124
+ auth_connection?: unknown;
18116
18125
  created_at_ts?: unknown;
18117
18126
  updated_at_ts?: unknown;
18118
18127
  expires_at_ts?: unknown;
@@ -10472,6 +10472,17 @@ const Yp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10472
10472
  __proto__: null,
10473
10473
  down: Hp,
10474
10474
  up: Gp
10475
+ }, Symbol.toStringTag, { value: "Module" }));
10476
+ async function Xp(t) {
10477
+ await t.schema.alterTable("login_sessions").addColumn("auth_connection", "varchar(255)").execute();
10478
+ }
10479
+ async function Zp(t) {
10480
+ await t.schema.alterTable("login_sessions").dropColumn("auth_connection").execute();
10481
+ }
10482
+ const eg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10483
+ __proto__: null,
10484
+ down: Zp,
10485
+ up: Xp
10475
10486
  }, Symbol.toStringTag, { value: "Module" })), _r = {
10476
10487
  m1_init: bl,
10477
10488
  m2_magicLink: El,
@@ -10605,9 +10616,10 @@ const Yp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10605
10616
  o032_unique_username_provider: qp,
10606
10617
  o033_add_login_id_to_refresh_tokens: Up,
10607
10618
  o034_refresh_tokens_replace_session_id_with_login_id: Vp,
10608
- o035_idle_expires_at_ts_indexes: Yp
10619
+ o035_idle_expires_at_ts_indexes: Yp,
10620
+ o036_add_connection_to_login_sessions: eg
10609
10621
  };
10610
- async function tg(t, e = !1) {
10622
+ async function rg(t, e = !1) {
10611
10623
  e && console.log("migrating...");
10612
10624
  const a = new ir(_r), n = new Kn({
10613
10625
  db: t,
@@ -10620,7 +10632,7 @@ async function tg(t, e = !1) {
10620
10632
  }), r)
10621
10633
  throw console.error("failed to migrate"), console.error(r), r;
10622
10634
  }
10623
- async function ag(t) {
10635
+ async function og(t) {
10624
10636
  console.log("migrating...");
10625
10637
  const e = new ir(_r), a = new Kn({
10626
10638
  db: t,
@@ -10631,7 +10643,7 @@ async function ag(t) {
10631
10643
  }), n)
10632
10644
  throw console.error("failed to migrate"), console.error(n), n;
10633
10645
  }
10634
- function ng(t, e = { useTransactions: !0 }) {
10646
+ function sg(t, e = { useTransactions: !0 }) {
10635
10647
  return {
10636
10648
  branding: us(t),
10637
10649
  clients: Lo(t),
@@ -10669,7 +10681,7 @@ function ng(t, e = { useTransactions: !0 }) {
10669
10681
  };
10670
10682
  }
10671
10683
  export {
10672
- ng as default,
10673
- ag as migrateDown,
10674
- tg as migrateToLatest
10684
+ sg as default,
10685
+ og as migrateDown,
10686
+ rg as migrateToLatest
10675
10687
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "10.105.1",
14
+ "version": "10.106.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -43,7 +43,7 @@
43
43
  "kysely": "^0.27.4",
44
44
  "nanoid": "^5.0.8",
45
45
  "ulid": "^2.3.0",
46
- "@authhero/adapter-interfaces": "0.143.0"
46
+ "@authhero/adapter-interfaces": "0.144.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@hono/zod-openapi": "^0.19.2",