@authhero/kysely-adapter 9.2.0 → 9.4.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.
@@ -1545,16 +1545,16 @@ export interface ListParams {
1545
1545
  sort_order: "asc" | "desc";
1546
1546
  };
1547
1547
  }
1548
- declare const loginInsertSchema: z.ZodObject<{
1548
+ declare const loginSessionInsertSchema: z.ZodObject<{
1549
1549
  auth0Client: z.ZodOptional<z.ZodString>;
1550
1550
  authParams: z.ZodObject<{
1551
1551
  client_id: z.ZodString;
1552
- vendor_id: z.ZodOptional<z.ZodString>;
1553
1552
  act_as: z.ZodOptional<z.ZodString>;
1554
1553
  response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
1555
1554
  response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
1556
1555
  redirect_uri: z.ZodOptional<z.ZodString>;
1557
1556
  audience: z.ZodOptional<z.ZodString>;
1557
+ organization: z.ZodOptional<z.ZodString>;
1558
1558
  state: z.ZodOptional<z.ZodString>;
1559
1559
  nonce: z.ZodOptional<z.ZodString>;
1560
1560
  scope: z.ZodOptional<z.ZodString>;
@@ -1563,15 +1563,16 @@ declare const loginInsertSchema: z.ZodObject<{
1563
1563
  code_challenge: z.ZodOptional<z.ZodString>;
1564
1564
  username: z.ZodOptional<z.ZodString>;
1565
1565
  ui_locales: z.ZodOptional<z.ZodString>;
1566
+ vendor_id: z.ZodOptional<z.ZodString>;
1566
1567
  }, "strip", z.ZodTypeAny, {
1567
1568
  client_id: string;
1568
1569
  username?: string | undefined;
1569
1570
  audience?: string | undefined;
1570
- vendor_id?: string | undefined;
1571
1571
  act_as?: string | undefined;
1572
1572
  response_type?: AuthorizationResponseType | undefined;
1573
1573
  response_mode?: AuthorizationResponseMode | undefined;
1574
1574
  redirect_uri?: string | undefined;
1575
+ organization?: string | undefined;
1575
1576
  state?: string | undefined;
1576
1577
  nonce?: string | undefined;
1577
1578
  scope?: string | undefined;
@@ -1579,15 +1580,16 @@ declare const loginInsertSchema: z.ZodObject<{
1579
1580
  code_challenge_method?: CodeChallengeMethod | undefined;
1580
1581
  code_challenge?: string | undefined;
1581
1582
  ui_locales?: string | undefined;
1583
+ vendor_id?: string | undefined;
1582
1584
  }, {
1583
1585
  client_id: string;
1584
1586
  username?: string | undefined;
1585
1587
  audience?: string | undefined;
1586
- vendor_id?: string | undefined;
1587
1588
  act_as?: string | undefined;
1588
1589
  response_type?: AuthorizationResponseType | undefined;
1589
1590
  response_mode?: AuthorizationResponseMode | undefined;
1590
1591
  redirect_uri?: string | undefined;
1592
+ organization?: string | undefined;
1591
1593
  state?: string | undefined;
1592
1594
  nonce?: string | undefined;
1593
1595
  scope?: string | undefined;
@@ -1595,22 +1597,24 @@ declare const loginInsertSchema: z.ZodObject<{
1595
1597
  code_challenge_method?: CodeChallengeMethod | undefined;
1596
1598
  code_challenge?: string | undefined;
1597
1599
  ui_locales?: string | undefined;
1600
+ vendor_id?: string | undefined;
1598
1601
  }>;
1599
1602
  expires_at: z.ZodString;
1600
1603
  deleted_at: z.ZodOptional<z.ZodString>;
1601
1604
  ip: z.ZodOptional<z.ZodString>;
1602
1605
  useragent: z.ZodOptional<z.ZodString>;
1606
+ authorization_url: z.ZodOptional<z.ZodString>;
1603
1607
  }, "strip", z.ZodTypeAny, {
1604
1608
  expires_at: string;
1605
1609
  authParams: {
1606
1610
  client_id: string;
1607
1611
  username?: string | undefined;
1608
1612
  audience?: string | undefined;
1609
- vendor_id?: string | undefined;
1610
1613
  act_as?: string | undefined;
1611
1614
  response_type?: AuthorizationResponseType | undefined;
1612
1615
  response_mode?: AuthorizationResponseMode | undefined;
1613
1616
  redirect_uri?: string | undefined;
1617
+ organization?: string | undefined;
1614
1618
  state?: string | undefined;
1615
1619
  nonce?: string | undefined;
1616
1620
  scope?: string | undefined;
@@ -1618,22 +1622,24 @@ declare const loginInsertSchema: z.ZodObject<{
1618
1622
  code_challenge_method?: CodeChallengeMethod | undefined;
1619
1623
  code_challenge?: string | undefined;
1620
1624
  ui_locales?: string | undefined;
1625
+ vendor_id?: string | undefined;
1621
1626
  };
1622
1627
  auth0Client?: string | undefined;
1623
1628
  deleted_at?: string | undefined;
1624
1629
  ip?: string | undefined;
1625
1630
  useragent?: string | undefined;
1631
+ authorization_url?: string | undefined;
1626
1632
  }, {
1627
1633
  expires_at: string;
1628
1634
  authParams: {
1629
1635
  client_id: string;
1630
1636
  username?: string | undefined;
1631
1637
  audience?: string | undefined;
1632
- vendor_id?: string | undefined;
1633
1638
  act_as?: string | undefined;
1634
1639
  response_type?: AuthorizationResponseType | undefined;
1635
1640
  response_mode?: AuthorizationResponseMode | undefined;
1636
1641
  redirect_uri?: string | undefined;
1642
+ organization?: string | undefined;
1637
1643
  state?: string | undefined;
1638
1644
  nonce?: string | undefined;
1639
1645
  scope?: string | undefined;
@@ -1641,26 +1647,28 @@ declare const loginInsertSchema: z.ZodObject<{
1641
1647
  code_challenge_method?: CodeChallengeMethod | undefined;
1642
1648
  code_challenge?: string | undefined;
1643
1649
  ui_locales?: string | undefined;
1650
+ vendor_id?: string | undefined;
1644
1651
  };
1645
1652
  auth0Client?: string | undefined;
1646
1653
  deleted_at?: string | undefined;
1647
1654
  ip?: string | undefined;
1648
1655
  useragent?: string | undefined;
1656
+ authorization_url?: string | undefined;
1649
1657
  }>;
1650
- export type LoginInsert = z.infer<typeof loginInsertSchema>;
1651
- declare const loginSchema: z.ZodObject<{
1658
+ export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
1659
+ declare const loginSessionSchema: z.ZodObject<{
1652
1660
  login_id: z.ZodString;
1653
1661
  created_at: z.ZodString;
1654
1662
  updated_at: z.ZodString;
1655
1663
  auth0Client: z.ZodOptional<z.ZodString>;
1656
1664
  authParams: z.ZodObject<{
1657
1665
  client_id: z.ZodString;
1658
- vendor_id: z.ZodOptional<z.ZodString>;
1659
1666
  act_as: z.ZodOptional<z.ZodString>;
1660
1667
  response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
1661
1668
  response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
1662
1669
  redirect_uri: z.ZodOptional<z.ZodString>;
1663
1670
  audience: z.ZodOptional<z.ZodString>;
1671
+ organization: z.ZodOptional<z.ZodString>;
1664
1672
  state: z.ZodOptional<z.ZodString>;
1665
1673
  nonce: z.ZodOptional<z.ZodString>;
1666
1674
  scope: z.ZodOptional<z.ZodString>;
@@ -1669,15 +1677,16 @@ declare const loginSchema: z.ZodObject<{
1669
1677
  code_challenge: z.ZodOptional<z.ZodString>;
1670
1678
  username: z.ZodOptional<z.ZodString>;
1671
1679
  ui_locales: z.ZodOptional<z.ZodString>;
1680
+ vendor_id: z.ZodOptional<z.ZodString>;
1672
1681
  }, "strip", z.ZodTypeAny, {
1673
1682
  client_id: string;
1674
1683
  username?: string | undefined;
1675
1684
  audience?: string | undefined;
1676
- vendor_id?: string | undefined;
1677
1685
  act_as?: string | undefined;
1678
1686
  response_type?: AuthorizationResponseType | undefined;
1679
1687
  response_mode?: AuthorizationResponseMode | undefined;
1680
1688
  redirect_uri?: string | undefined;
1689
+ organization?: string | undefined;
1681
1690
  state?: string | undefined;
1682
1691
  nonce?: string | undefined;
1683
1692
  scope?: string | undefined;
@@ -1685,15 +1694,16 @@ declare const loginSchema: z.ZodObject<{
1685
1694
  code_challenge_method?: CodeChallengeMethod | undefined;
1686
1695
  code_challenge?: string | undefined;
1687
1696
  ui_locales?: string | undefined;
1697
+ vendor_id?: string | undefined;
1688
1698
  }, {
1689
1699
  client_id: string;
1690
1700
  username?: string | undefined;
1691
1701
  audience?: string | undefined;
1692
- vendor_id?: string | undefined;
1693
1702
  act_as?: string | undefined;
1694
1703
  response_type?: AuthorizationResponseType | undefined;
1695
1704
  response_mode?: AuthorizationResponseMode | undefined;
1696
1705
  redirect_uri?: string | undefined;
1706
+ organization?: string | undefined;
1697
1707
  state?: string | undefined;
1698
1708
  nonce?: string | undefined;
1699
1709
  scope?: string | undefined;
@@ -1701,11 +1711,13 @@ declare const loginSchema: z.ZodObject<{
1701
1711
  code_challenge_method?: CodeChallengeMethod | undefined;
1702
1712
  code_challenge?: string | undefined;
1703
1713
  ui_locales?: string | undefined;
1714
+ vendor_id?: string | undefined;
1704
1715
  }>;
1705
1716
  expires_at: z.ZodString;
1706
1717
  deleted_at: z.ZodOptional<z.ZodString>;
1707
1718
  ip: z.ZodOptional<z.ZodString>;
1708
1719
  useragent: z.ZodOptional<z.ZodString>;
1720
+ authorization_url: z.ZodOptional<z.ZodString>;
1709
1721
  }, "strip", z.ZodTypeAny, {
1710
1722
  created_at: string;
1711
1723
  updated_at: string;
@@ -1715,11 +1727,11 @@ declare const loginSchema: z.ZodObject<{
1715
1727
  client_id: string;
1716
1728
  username?: string | undefined;
1717
1729
  audience?: string | undefined;
1718
- vendor_id?: string | undefined;
1719
1730
  act_as?: string | undefined;
1720
1731
  response_type?: AuthorizationResponseType | undefined;
1721
1732
  response_mode?: AuthorizationResponseMode | undefined;
1722
1733
  redirect_uri?: string | undefined;
1734
+ organization?: string | undefined;
1723
1735
  state?: string | undefined;
1724
1736
  nonce?: string | undefined;
1725
1737
  scope?: string | undefined;
@@ -1727,11 +1739,13 @@ declare const loginSchema: z.ZodObject<{
1727
1739
  code_challenge_method?: CodeChallengeMethod | undefined;
1728
1740
  code_challenge?: string | undefined;
1729
1741
  ui_locales?: string | undefined;
1742
+ vendor_id?: string | undefined;
1730
1743
  };
1731
1744
  auth0Client?: string | undefined;
1732
1745
  deleted_at?: string | undefined;
1733
1746
  ip?: string | undefined;
1734
1747
  useragent?: string | undefined;
1748
+ authorization_url?: string | undefined;
1735
1749
  }, {
1736
1750
  created_at: string;
1737
1751
  updated_at: string;
@@ -1741,11 +1755,11 @@ declare const loginSchema: z.ZodObject<{
1741
1755
  client_id: string;
1742
1756
  username?: string | undefined;
1743
1757
  audience?: string | undefined;
1744
- vendor_id?: string | undefined;
1745
1758
  act_as?: string | undefined;
1746
1759
  response_type?: AuthorizationResponseType | undefined;
1747
1760
  response_mode?: AuthorizationResponseMode | undefined;
1748
1761
  redirect_uri?: string | undefined;
1762
+ organization?: string | undefined;
1749
1763
  state?: string | undefined;
1750
1764
  nonce?: string | undefined;
1751
1765
  scope?: string | undefined;
@@ -1753,13 +1767,15 @@ declare const loginSchema: z.ZodObject<{
1753
1767
  code_challenge_method?: CodeChallengeMethod | undefined;
1754
1768
  code_challenge?: string | undefined;
1755
1769
  ui_locales?: string | undefined;
1770
+ vendor_id?: string | undefined;
1756
1771
  };
1757
1772
  auth0Client?: string | undefined;
1758
1773
  deleted_at?: string | undefined;
1759
1774
  ip?: string | undefined;
1760
1775
  useragent?: string | undefined;
1776
+ authorization_url?: string | undefined;
1761
1777
  }>;
1762
- export type Login = z.infer<typeof loginSchema>;
1778
+ export type LoginSession = z.infer<typeof loginSessionSchema>;
1763
1779
  declare const LogType: z.ZodEnum<[
1764
1780
  "cls",
1765
1781
  "fsa",
@@ -3439,10 +3455,10 @@ export interface ThemesAdapter {
3439
3455
  get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
3440
3456
  update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
3441
3457
  }
3442
- export interface LoginsAdapter {
3443
- create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
3444
- update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
3445
- get: (tenant_id: string, login_id: string) => Promise<Login | null>;
3458
+ export interface LoginSessionsAdapter {
3459
+ create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
3460
+ update: (tenant_id: string, login_id: string, session: Partial<LoginSession>) => Promise<boolean>;
3461
+ get: (tenant_id: string, login_id: string) => Promise<LoginSession | null>;
3446
3462
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
3447
3463
  }
3448
3464
  export interface PromptSettingsAdapter {
@@ -3474,7 +3490,7 @@ export interface DataAdapters {
3474
3490
  emailProviders: EmailProvidersAdapter;
3475
3491
  hooks: HooksAdapter;
3476
3492
  keys: KeysAdapter;
3477
- logins: LoginsAdapter;
3493
+ loginSessions: LoginSessionsAdapter;
3478
3494
  logs: LogsDataAdapter;
3479
3495
  passwords: PasswordsAdapter;
3480
3496
  promptSettings: PromptSettingsAdapter;