@authhero/kysely-adapter 9.5.0 → 9.7.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.
@@ -1546,6 +1546,7 @@ export interface ListParams {
1546
1546
  };
1547
1547
  }
1548
1548
  declare const loginSessionInsertSchema: z.ZodObject<{
1549
+ csrf_token: z.ZodString;
1549
1550
  auth0Client: z.ZodOptional<z.ZodString>;
1550
1551
  authParams: z.ZodObject<{
1551
1552
  client_id: z.ZodString;
@@ -1607,6 +1608,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
1607
1608
  authorization_url: z.ZodOptional<z.ZodString>;
1608
1609
  }, "strip", z.ZodTypeAny, {
1609
1610
  expires_at: string;
1611
+ csrf_token: string;
1610
1612
  authParams: {
1611
1613
  client_id: string;
1612
1614
  username?: string | undefined;
@@ -1633,6 +1635,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
1633
1635
  authorization_url?: string | undefined;
1634
1636
  }, {
1635
1637
  expires_at: string;
1638
+ csrf_token: string;
1636
1639
  authParams: {
1637
1640
  client_id: string;
1638
1641
  username?: string | undefined;
@@ -1660,9 +1663,10 @@ declare const loginSessionInsertSchema: z.ZodObject<{
1660
1663
  }>;
1661
1664
  export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
1662
1665
  declare const loginSessionSchema: z.ZodObject<{
1663
- login_id: z.ZodString;
1666
+ id: z.ZodString;
1664
1667
  created_at: z.ZodString;
1665
1668
  updated_at: z.ZodString;
1669
+ csrf_token: z.ZodString;
1666
1670
  auth0Client: z.ZodOptional<z.ZodString>;
1667
1671
  authParams: z.ZodObject<{
1668
1672
  client_id: z.ZodString;
@@ -1725,8 +1729,9 @@ declare const loginSessionSchema: z.ZodObject<{
1725
1729
  }, "strip", z.ZodTypeAny, {
1726
1730
  created_at: string;
1727
1731
  updated_at: string;
1728
- login_id: string;
1732
+ id: string;
1729
1733
  expires_at: string;
1734
+ csrf_token: string;
1730
1735
  authParams: {
1731
1736
  client_id: string;
1732
1737
  username?: string | undefined;
@@ -1754,8 +1759,9 @@ declare const loginSessionSchema: z.ZodObject<{
1754
1759
  }, {
1755
1760
  created_at: string;
1756
1761
  updated_at: string;
1757
- login_id: string;
1762
+ id: string;
1758
1763
  expires_at: string;
1764
+ csrf_token: string;
1759
1765
  authParams: {
1760
1766
  client_id: string;
1761
1767
  username?: string | undefined;
@@ -3463,9 +3469,9 @@ export interface ThemesAdapter {
3463
3469
  }
3464
3470
  export interface LoginSessionsAdapter {
3465
3471
  create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
3466
- update: (tenant_id: string, login_id: string, session: Partial<LoginSession>) => Promise<boolean>;
3467
- get: (tenant_id: string, login_id: string) => Promise<LoginSession | null>;
3468
- remove: (tenant_id: string, login_id: string) => Promise<boolean>;
3472
+ update: (tenant_id: string, id: string, session: Partial<LoginSession>) => Promise<boolean>;
3473
+ get: (tenant_id: string, id: string) => Promise<LoginSession | null>;
3474
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
3469
3475
  }
3470
3476
  export interface PromptSettingsAdapter {
3471
3477
  set: (tenant_id: string, promptSetting: Partial<PromptSetting>) => Promise<void>;
@@ -4046,15 +4052,15 @@ export interface Database {
4046
4052
  keys: SigningKey & {
4047
4053
  created_at: string;
4048
4054
  };
4049
- logins: z.infer<typeof sqlLoginSchema>;
4055
+ login_sessions: z.infer<typeof sqlLoginSchema>;
4050
4056
  logs: SqlLog;
4051
4057
  passwords: Password & {
4052
4058
  tenant_id: string;
4053
4059
  };
4054
4060
  prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
4055
- refresh_tokens_2: z.infer<typeof sqlRefreshTokensSchema>;
4061
+ refresh_tokens: z.infer<typeof sqlRefreshTokensSchema>;
4056
4062
  users: z.infer<typeof sqlUserSchema>;
4057
- sessions_2: z.infer<typeof sqlSessionSchema>;
4063
+ sessions: z.infer<typeof sqlSessionSchema>;
4058
4064
  tenants: Tenant;
4059
4065
  themes: z.infer<typeof sqlThemeSchema>;
4060
4066
  }