@authhero/adapter-interfaces 0.8.0 → 0.9.1

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.
@@ -679,182 +679,6 @@ export declare const authParamsSchema: z.ZodObject<{
679
679
  code_challenge?: string | undefined;
680
680
  }>;
681
681
  export type AuthParams = z.infer<typeof authParamsSchema>;
682
- export declare const authenticationCodeInsertSchema: z.ZodObject<{
683
- authParams: z.ZodObject<{
684
- client_id: z.ZodString;
685
- vendor_id: z.ZodOptional<z.ZodString>;
686
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
687
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
688
- redirect_uri: z.ZodOptional<z.ZodString>;
689
- audience: z.ZodOptional<z.ZodString>;
690
- state: z.ZodOptional<z.ZodString>;
691
- nonce: z.ZodOptional<z.ZodString>;
692
- scope: z.ZodOptional<z.ZodString>;
693
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
694
- code_challenge: z.ZodOptional<z.ZodString>;
695
- username: z.ZodOptional<z.ZodString>;
696
- }, "strip", z.ZodTypeAny, {
697
- client_id: string;
698
- username?: string | undefined;
699
- vendor_id?: string | undefined;
700
- response_type?: AuthorizationResponseType | undefined;
701
- response_mode?: AuthorizationResponseMode | undefined;
702
- redirect_uri?: string | undefined;
703
- audience?: string | undefined;
704
- state?: string | undefined;
705
- nonce?: string | undefined;
706
- scope?: string | undefined;
707
- code_challenge_method?: CodeChallengeMethod | undefined;
708
- code_challenge?: string | undefined;
709
- }, {
710
- client_id: string;
711
- username?: string | undefined;
712
- vendor_id?: string | undefined;
713
- response_type?: AuthorizationResponseType | undefined;
714
- response_mode?: AuthorizationResponseMode | undefined;
715
- redirect_uri?: string | undefined;
716
- audience?: string | undefined;
717
- state?: string | undefined;
718
- nonce?: string | undefined;
719
- scope?: string | undefined;
720
- code_challenge_method?: CodeChallengeMethod | undefined;
721
- code_challenge?: string | undefined;
722
- }>;
723
- code: z.ZodString;
724
- user_id: z.ZodString;
725
- created_at: z.ZodString;
726
- expires_at: z.ZodString;
727
- used_at: z.ZodOptional<z.ZodString>;
728
- }, "strip", z.ZodTypeAny, {
729
- code: string;
730
- created_at: string;
731
- user_id: string;
732
- authParams: {
733
- client_id: string;
734
- username?: string | undefined;
735
- vendor_id?: string | undefined;
736
- response_type?: AuthorizationResponseType | undefined;
737
- response_mode?: AuthorizationResponseMode | undefined;
738
- redirect_uri?: string | undefined;
739
- audience?: string | undefined;
740
- state?: string | undefined;
741
- nonce?: string | undefined;
742
- scope?: string | undefined;
743
- code_challenge_method?: CodeChallengeMethod | undefined;
744
- code_challenge?: string | undefined;
745
- };
746
- expires_at: string;
747
- used_at?: string | undefined;
748
- }, {
749
- code: string;
750
- created_at: string;
751
- user_id: string;
752
- authParams: {
753
- client_id: string;
754
- username?: string | undefined;
755
- vendor_id?: string | undefined;
756
- response_type?: AuthorizationResponseType | undefined;
757
- response_mode?: AuthorizationResponseMode | undefined;
758
- redirect_uri?: string | undefined;
759
- audience?: string | undefined;
760
- state?: string | undefined;
761
- nonce?: string | undefined;
762
- scope?: string | undefined;
763
- code_challenge_method?: CodeChallengeMethod | undefined;
764
- code_challenge?: string | undefined;
765
- };
766
- expires_at: string;
767
- used_at?: string | undefined;
768
- }>;
769
- export type AuthenticationCodeInsert = z.infer<typeof authenticationCodeInsertSchema>;
770
- export declare const authenticationCodeSchema: z.ZodObject<{
771
- created_at: z.ZodString;
772
- authParams: z.ZodObject<{
773
- client_id: z.ZodString;
774
- vendor_id: z.ZodOptional<z.ZodString>;
775
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
776
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
777
- redirect_uri: z.ZodOptional<z.ZodString>;
778
- audience: z.ZodOptional<z.ZodString>;
779
- state: z.ZodOptional<z.ZodString>;
780
- nonce: z.ZodOptional<z.ZodString>;
781
- scope: z.ZodOptional<z.ZodString>;
782
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
783
- code_challenge: z.ZodOptional<z.ZodString>;
784
- username: z.ZodOptional<z.ZodString>;
785
- }, "strip", z.ZodTypeAny, {
786
- client_id: string;
787
- username?: string | undefined;
788
- vendor_id?: string | undefined;
789
- response_type?: AuthorizationResponseType | undefined;
790
- response_mode?: AuthorizationResponseMode | undefined;
791
- redirect_uri?: string | undefined;
792
- audience?: string | undefined;
793
- state?: string | undefined;
794
- nonce?: string | undefined;
795
- scope?: string | undefined;
796
- code_challenge_method?: CodeChallengeMethod | undefined;
797
- code_challenge?: string | undefined;
798
- }, {
799
- client_id: string;
800
- username?: string | undefined;
801
- vendor_id?: string | undefined;
802
- response_type?: AuthorizationResponseType | undefined;
803
- response_mode?: AuthorizationResponseMode | undefined;
804
- redirect_uri?: string | undefined;
805
- audience?: string | undefined;
806
- state?: string | undefined;
807
- nonce?: string | undefined;
808
- scope?: string | undefined;
809
- code_challenge_method?: CodeChallengeMethod | undefined;
810
- code_challenge?: string | undefined;
811
- }>;
812
- code: z.ZodString;
813
- user_id: z.ZodString;
814
- expires_at: z.ZodString;
815
- used_at: z.ZodOptional<z.ZodString>;
816
- }, "strip", z.ZodTypeAny, {
817
- code: string;
818
- created_at: string;
819
- user_id: string;
820
- authParams: {
821
- client_id: string;
822
- username?: string | undefined;
823
- vendor_id?: string | undefined;
824
- response_type?: AuthorizationResponseType | undefined;
825
- response_mode?: AuthorizationResponseMode | undefined;
826
- redirect_uri?: string | undefined;
827
- audience?: string | undefined;
828
- state?: string | undefined;
829
- nonce?: string | undefined;
830
- scope?: string | undefined;
831
- code_challenge_method?: CodeChallengeMethod | undefined;
832
- code_challenge?: string | undefined;
833
- };
834
- expires_at: string;
835
- used_at?: string | undefined;
836
- }, {
837
- code: string;
838
- created_at: string;
839
- user_id: string;
840
- authParams: {
841
- client_id: string;
842
- username?: string | undefined;
843
- vendor_id?: string | undefined;
844
- response_type?: AuthorizationResponseType | undefined;
845
- response_mode?: AuthorizationResponseMode | undefined;
846
- redirect_uri?: string | undefined;
847
- audience?: string | undefined;
848
- state?: string | undefined;
849
- nonce?: string | undefined;
850
- scope?: string | undefined;
851
- code_challenge_method?: CodeChallengeMethod | undefined;
852
- code_challenge?: string | undefined;
853
- };
854
- expires_at: string;
855
- used_at?: string | undefined;
856
- }>;
857
- export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
858
682
  export declare const brandingSchema: z.ZodObject<{
859
683
  colors: z.ZodOptional<z.ZodObject<{
860
684
  primary: z.ZodString;
@@ -1362,15 +1186,45 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1362
1186
  }>;
1363
1187
  export type Client = z.infer<typeof ClientSchema>;
1364
1188
  export type PartialClient = z.infer<typeof PartialClientSchema>;
1365
- export interface Code {
1366
- id: string;
1367
- code: string;
1368
- type: "password_reset" | "validation";
1189
+ export declare const codeTypeSchema: z.ZodEnum<[
1190
+ "password_reset",
1191
+ "email_verification",
1192
+ "otp",
1193
+ "oauth2",
1194
+ "oauth2_state",
1195
+ "ticket"
1196
+ ]>;
1197
+ export type CodeType = z.infer<typeof codeTypeSchema>;
1198
+ export declare const codeSchema: z.ZodObject<{
1199
+ code_id: z.ZodString;
1200
+ login_id: z.ZodString;
1201
+ code_type: z.ZodEnum<[
1202
+ "password_reset",
1203
+ "email_verification",
1204
+ "otp",
1205
+ "oauth2",
1206
+ "oauth2_state",
1207
+ "ticket"
1208
+ ]>;
1209
+ created_at: z.ZodString;
1210
+ expires_at: z.ZodString;
1211
+ used_at: z.ZodOptional<z.ZodString>;
1212
+ }, "strip", z.ZodTypeAny, {
1369
1213
  created_at: string;
1214
+ code_id: string;
1215
+ login_id: string;
1216
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
1370
1217
  expires_at: string;
1371
- used_at?: string;
1372
- user_id: string;
1373
- }
1218
+ used_at?: string | undefined;
1219
+ }, {
1220
+ created_at: string;
1221
+ code_id: string;
1222
+ login_id: string;
1223
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
1224
+ expires_at: string;
1225
+ used_at?: string | undefined;
1226
+ }>;
1227
+ export type Code = z.infer<typeof codeSchema>;
1374
1228
  export declare const connectionInsertSchema: z.ZodObject<{
1375
1229
  id: z.ZodOptional<z.ZodString>;
1376
1230
  name: z.ZodString;
@@ -1577,70 +1431,172 @@ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1577
1431
  enabled?: boolean | undefined;
1578
1432
  }>;
1579
1433
  export type Hook = z.infer<typeof hookSchema>;
1580
- export declare const jwksSchema: z.ZodObject<{
1581
- alg: z.ZodString;
1582
- e: z.ZodString;
1583
- kid: z.ZodString;
1584
- kty: z.ZodString;
1585
- n: z.ZodString;
1586
- use: z.ZodOptional<z.ZodString>;
1587
- }, "strip", z.ZodTypeAny, {
1588
- kid: string;
1589
- alg: string;
1590
- e: string;
1591
- kty: string;
1592
- n: string;
1593
- use?: string | undefined;
1594
- }, {
1595
- kid: string;
1596
- alg: string;
1597
- e: string;
1598
- kty: string;
1599
- n: string;
1600
- use?: string | undefined;
1601
- }>;
1602
- export declare const jwksKeySchema: z.ZodObject<{
1603
- keys: z.ZodArray<z.ZodObject<{
1604
- alg: z.ZodString;
1605
- e: z.ZodString;
1606
- kid: z.ZodString;
1607
- kty: z.ZodString;
1608
- n: z.ZodString;
1609
- use: z.ZodOptional<z.ZodString>;
1610
- }, "strip", z.ZodTypeAny, {
1611
- kid: string;
1612
- alg: string;
1613
- e: string;
1614
- kty: string;
1615
- n: string;
1616
- use?: string | undefined;
1617
- }, {
1618
- kid: string;
1619
- alg: string;
1620
- e: string;
1621
- kty: string;
1622
- n: string;
1623
- use?: string | undefined;
1624
- }>, "many">;
1625
- }, "strip", z.ZodTypeAny, {
1626
- keys: {
1627
- kid: string;
1628
- alg: string;
1629
- e: string;
1630
- kty: string;
1631
- n: string;
1632
- use?: string | undefined;
1633
- }[];
1634
- }, {
1635
- keys: {
1636
- kid: string;
1637
- alg: string;
1638
- e: string;
1639
- kty: string;
1640
- n: string;
1641
- use?: string | undefined;
1642
- }[];
1643
- }>;
1434
+ export declare const profileDataSchema: z.ZodObject<{
1435
+ email: z.ZodOptional<z.ZodString>;
1436
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1437
+ name: z.ZodOptional<z.ZodString>;
1438
+ username: z.ZodOptional<z.ZodString>;
1439
+ given_name: z.ZodOptional<z.ZodString>;
1440
+ phone_number: z.ZodOptional<z.ZodString>;
1441
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1442
+ family_name: z.ZodOptional<z.ZodString>;
1443
+ }, "strip", z.ZodAny, z.objectOutputType<{
1444
+ email: z.ZodOptional<z.ZodString>;
1445
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1446
+ name: z.ZodOptional<z.ZodString>;
1447
+ username: z.ZodOptional<z.ZodString>;
1448
+ given_name: z.ZodOptional<z.ZodString>;
1449
+ phone_number: z.ZodOptional<z.ZodString>;
1450
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1451
+ family_name: z.ZodOptional<z.ZodString>;
1452
+ }, z.ZodAny, "strip">, z.objectInputType<{
1453
+ email: z.ZodOptional<z.ZodString>;
1454
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1455
+ name: z.ZodOptional<z.ZodString>;
1456
+ username: z.ZodOptional<z.ZodString>;
1457
+ given_name: z.ZodOptional<z.ZodString>;
1458
+ phone_number: z.ZodOptional<z.ZodString>;
1459
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1460
+ family_name: z.ZodOptional<z.ZodString>;
1461
+ }, z.ZodAny, "strip">>;
1462
+ export declare const identitySchema: z.ZodObject<{
1463
+ connection: z.ZodString;
1464
+ user_id: z.ZodString;
1465
+ provider: z.ZodString;
1466
+ isSocial: z.ZodBoolean;
1467
+ access_token: z.ZodOptional<z.ZodString>;
1468
+ access_token_secret: z.ZodOptional<z.ZodString>;
1469
+ refresh_token: z.ZodOptional<z.ZodString>;
1470
+ profileData: z.ZodOptional<z.ZodObject<{
1471
+ email: z.ZodOptional<z.ZodString>;
1472
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1473
+ name: z.ZodOptional<z.ZodString>;
1474
+ username: z.ZodOptional<z.ZodString>;
1475
+ given_name: z.ZodOptional<z.ZodString>;
1476
+ phone_number: z.ZodOptional<z.ZodString>;
1477
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1478
+ family_name: z.ZodOptional<z.ZodString>;
1479
+ }, "strip", z.ZodAny, z.objectOutputType<{
1480
+ email: z.ZodOptional<z.ZodString>;
1481
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1482
+ name: z.ZodOptional<z.ZodString>;
1483
+ username: z.ZodOptional<z.ZodString>;
1484
+ given_name: z.ZodOptional<z.ZodString>;
1485
+ phone_number: z.ZodOptional<z.ZodString>;
1486
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1487
+ family_name: z.ZodOptional<z.ZodString>;
1488
+ }, z.ZodAny, "strip">, z.objectInputType<{
1489
+ email: z.ZodOptional<z.ZodString>;
1490
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1491
+ name: z.ZodOptional<z.ZodString>;
1492
+ username: z.ZodOptional<z.ZodString>;
1493
+ given_name: z.ZodOptional<z.ZodString>;
1494
+ phone_number: z.ZodOptional<z.ZodString>;
1495
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1496
+ family_name: z.ZodOptional<z.ZodString>;
1497
+ }, z.ZodAny, "strip">>>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ connection: string;
1500
+ user_id: string;
1501
+ provider: string;
1502
+ isSocial: boolean;
1503
+ access_token?: string | undefined;
1504
+ access_token_secret?: string | undefined;
1505
+ refresh_token?: string | undefined;
1506
+ profileData?: z.objectOutputType<{
1507
+ email: z.ZodOptional<z.ZodString>;
1508
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1509
+ name: z.ZodOptional<z.ZodString>;
1510
+ username: z.ZodOptional<z.ZodString>;
1511
+ given_name: z.ZodOptional<z.ZodString>;
1512
+ phone_number: z.ZodOptional<z.ZodString>;
1513
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1514
+ family_name: z.ZodOptional<z.ZodString>;
1515
+ }, z.ZodAny, "strip"> | undefined;
1516
+ }, {
1517
+ connection: string;
1518
+ user_id: string;
1519
+ provider: string;
1520
+ isSocial: boolean;
1521
+ access_token?: string | undefined;
1522
+ access_token_secret?: string | undefined;
1523
+ refresh_token?: string | undefined;
1524
+ profileData?: z.objectInputType<{
1525
+ email: z.ZodOptional<z.ZodString>;
1526
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1527
+ name: z.ZodOptional<z.ZodString>;
1528
+ username: z.ZodOptional<z.ZodString>;
1529
+ given_name: z.ZodOptional<z.ZodString>;
1530
+ phone_number: z.ZodOptional<z.ZodString>;
1531
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1532
+ family_name: z.ZodOptional<z.ZodString>;
1533
+ }, z.ZodAny, "strip"> | undefined;
1534
+ }>;
1535
+ export type Identity = z.infer<typeof identitySchema>;
1536
+ export declare const jwksSchema: z.ZodObject<{
1537
+ alg: z.ZodString;
1538
+ e: z.ZodString;
1539
+ kid: z.ZodString;
1540
+ kty: z.ZodString;
1541
+ n: z.ZodString;
1542
+ use: z.ZodOptional<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ kid: string;
1545
+ alg: string;
1546
+ e: string;
1547
+ kty: string;
1548
+ n: string;
1549
+ use?: string | undefined;
1550
+ }, {
1551
+ kid: string;
1552
+ alg: string;
1553
+ e: string;
1554
+ kty: string;
1555
+ n: string;
1556
+ use?: string | undefined;
1557
+ }>;
1558
+ export declare const jwksKeySchema: z.ZodObject<{
1559
+ keys: z.ZodArray<z.ZodObject<{
1560
+ alg: z.ZodString;
1561
+ e: z.ZodString;
1562
+ kid: z.ZodString;
1563
+ kty: z.ZodString;
1564
+ n: z.ZodString;
1565
+ use: z.ZodOptional<z.ZodString>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ kid: string;
1568
+ alg: string;
1569
+ e: string;
1570
+ kty: string;
1571
+ n: string;
1572
+ use?: string | undefined;
1573
+ }, {
1574
+ kid: string;
1575
+ alg: string;
1576
+ e: string;
1577
+ kty: string;
1578
+ n: string;
1579
+ use?: string | undefined;
1580
+ }>, "many">;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ keys: {
1583
+ kid: string;
1584
+ alg: string;
1585
+ e: string;
1586
+ kty: string;
1587
+ n: string;
1588
+ use?: string | undefined;
1589
+ }[];
1590
+ }, {
1591
+ keys: {
1592
+ kid: string;
1593
+ alg: string;
1594
+ e: string;
1595
+ kty: string;
1596
+ n: string;
1597
+ use?: string | undefined;
1598
+ }[];
1599
+ }>;
1644
1600
  export declare const openIDConfigurationSchema: z.ZodObject<{
1645
1601
  issuer: z.ZodString;
1646
1602
  authorization_endpoint: z.ZodString;
@@ -1705,21 +1661,9 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
1705
1661
  request_parameter_supported: boolean;
1706
1662
  token_endpoint_auth_signing_alg_values_supported: string[];
1707
1663
  }>;
1708
- export interface LoginState {
1709
- connection?: string;
1710
- authParams: AuthParams;
1711
- state: string;
1712
- errorMessage?: string;
1713
- }
1714
- export declare const otpInsertSchema: z.ZodObject<{
1715
- id: z.ZodString;
1716
- email: z.ZodString;
1717
- code: z.ZodString;
1718
- ip: z.ZodOptional<z.ZodString>;
1719
- send: z.ZodEnum<[
1720
- "code",
1721
- "link"
1722
- ]>;
1664
+ export declare const loginInsertSchema: z.ZodObject<{
1665
+ login_id: z.ZodString;
1666
+ auth0Client: z.ZodOptional<z.ZodString>;
1723
1667
  authParams: z.ZodObject<{
1724
1668
  client_id: z.ZodString;
1725
1669
  vendor_id: z.ZodOptional<z.ZodString>;
@@ -1761,12 +1705,11 @@ export declare const otpInsertSchema: z.ZodObject<{
1761
1705
  code_challenge?: string | undefined;
1762
1706
  }>;
1763
1707
  expires_at: z.ZodString;
1764
- used_at: z.ZodOptional<z.ZodString>;
1765
- user_id: z.ZodOptional<z.ZodString>;
1708
+ deleted_at: z.ZodString;
1709
+ ip: z.ZodOptional<z.ZodString>;
1766
1710
  }, "strip", z.ZodTypeAny, {
1767
- code: string;
1768
- email: string;
1769
- id: string;
1711
+ login_id: string;
1712
+ expires_at: string;
1770
1713
  authParams: {
1771
1714
  client_id: string;
1772
1715
  username?: string | undefined;
@@ -1781,15 +1724,12 @@ export declare const otpInsertSchema: z.ZodObject<{
1781
1724
  code_challenge_method?: CodeChallengeMethod | undefined;
1782
1725
  code_challenge?: string | undefined;
1783
1726
  };
1784
- expires_at: string;
1785
- send: "code" | "link";
1786
- user_id?: string | undefined;
1787
- used_at?: string | undefined;
1727
+ deleted_at: string;
1728
+ auth0Client?: string | undefined;
1788
1729
  ip?: string | undefined;
1789
1730
  }, {
1790
- code: string;
1791
- email: string;
1792
- id: string;
1731
+ login_id: string;
1732
+ expires_at: string;
1793
1733
  authParams: {
1794
1734
  client_id: string;
1795
1735
  username?: string | undefined;
@@ -1804,22 +1744,16 @@ export declare const otpInsertSchema: z.ZodObject<{
1804
1744
  code_challenge_method?: CodeChallengeMethod | undefined;
1805
1745
  code_challenge?: string | undefined;
1806
1746
  };
1807
- expires_at: string;
1808
- send: "code" | "link";
1809
- user_id?: string | undefined;
1810
- used_at?: string | undefined;
1747
+ deleted_at: string;
1748
+ auth0Client?: string | undefined;
1811
1749
  ip?: string | undefined;
1812
1750
  }>;
1813
- export type OTPInsert = z.infer<typeof otpInsertSchema>;
1814
- export declare const otpSchema: z.ZodObject<{
1815
- id: z.ZodString;
1816
- email: z.ZodString;
1817
- code: z.ZodString;
1818
- ip: z.ZodOptional<z.ZodString>;
1819
- send: z.ZodEnum<[
1820
- "code",
1821
- "link"
1822
- ]>;
1751
+ export type LoginInsert = z.infer<typeof loginInsertSchema>;
1752
+ export declare const loginSchema: z.ZodObject<{
1753
+ created_at: z.ZodString;
1754
+ updated_at: z.ZodString;
1755
+ login_id: z.ZodString;
1756
+ auth0Client: z.ZodOptional<z.ZodString>;
1823
1757
  authParams: z.ZodObject<{
1824
1758
  client_id: z.ZodString;
1825
1759
  vendor_id: z.ZodOptional<z.ZodString>;
@@ -1861,14 +1795,13 @@ export declare const otpSchema: z.ZodObject<{
1861
1795
  code_challenge?: string | undefined;
1862
1796
  }>;
1863
1797
  expires_at: z.ZodString;
1864
- used_at: z.ZodOptional<z.ZodString>;
1865
- user_id: z.ZodOptional<z.ZodString>;
1866
- created_at: z.ZodString;
1798
+ deleted_at: z.ZodString;
1799
+ ip: z.ZodOptional<z.ZodString>;
1867
1800
  }, "strip", z.ZodTypeAny, {
1868
- code: string;
1869
1801
  created_at: string;
1870
- email: string;
1871
- id: string;
1802
+ updated_at: string;
1803
+ login_id: string;
1804
+ expires_at: string;
1872
1805
  authParams: {
1873
1806
  client_id: string;
1874
1807
  username?: string | undefined;
@@ -1883,16 +1816,14 @@ export declare const otpSchema: z.ZodObject<{
1883
1816
  code_challenge_method?: CodeChallengeMethod | undefined;
1884
1817
  code_challenge?: string | undefined;
1885
1818
  };
1886
- expires_at: string;
1887
- send: "code" | "link";
1888
- user_id?: string | undefined;
1889
- used_at?: string | undefined;
1819
+ deleted_at: string;
1820
+ auth0Client?: string | undefined;
1890
1821
  ip?: string | undefined;
1891
1822
  }, {
1892
- code: string;
1893
1823
  created_at: string;
1894
- email: string;
1895
- id: string;
1824
+ updated_at: string;
1825
+ login_id: string;
1826
+ expires_at: string;
1896
1827
  authParams: {
1897
1828
  client_id: string;
1898
1829
  username?: string | undefined;
@@ -1907,39 +1838,231 @@ export declare const otpSchema: z.ZodObject<{
1907
1838
  code_challenge_method?: CodeChallengeMethod | undefined;
1908
1839
  code_challenge?: string | undefined;
1909
1840
  };
1910
- expires_at: string;
1911
- send: "code" | "link";
1912
- user_id?: string | undefined;
1913
- used_at?: string | undefined;
1841
+ deleted_at: string;
1842
+ auth0Client?: string | undefined;
1914
1843
  ip?: string | undefined;
1915
1844
  }>;
1916
- export type OTP = z.infer<typeof otpSchema>;
1917
- export declare const passwordInsertSchema: z.ZodObject<{
1918
- user_id: z.ZodString;
1919
- password: z.ZodString;
1920
- }, "strip", z.ZodTypeAny, {
1921
- password: string;
1922
- user_id: string;
1923
- }, {
1924
- password: string;
1925
- user_id: string;
1926
- }>;
1927
- export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
1928
- export declare const passwordSchema: z.ZodObject<{
1929
- created_at: z.ZodString;
1930
- updated_at: z.ZodString;
1931
- user_id: z.ZodString;
1845
+ export type Login = z.infer<typeof loginSchema>;
1846
+ export declare enum LogTypes {
1847
+ SUCCESS_API_OPERATION = "sapi",
1848
+ SUCCESS_SILENT_AUTH = "ssa",
1849
+ FAILED_SILENT_AUTH = "fsa",
1850
+ SUCCESS_SIGNUP = "ss",
1851
+ FAILED_SIGNUP = "fs",
1852
+ SUCCESS_LOGIN = "s",
1853
+ FAILED_LOGIN = "f",
1854
+ FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
1855
+ SUCCESS_LOGOUT = "slo",
1856
+ SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
1857
+ FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
1858
+ SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
1859
+ SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
1860
+ CODE_LINK_SENT = "cls",
1861
+ NOT_IMPLEMENTED_1 = "seccft"
1862
+ }
1863
+ declare const LogType: z.ZodEnum<[
1864
+ "sapi",
1865
+ "ssa",
1866
+ "fsa",
1867
+ "ss",
1868
+ "ssa",
1869
+ "fs",
1870
+ "s",
1871
+ "f",
1872
+ "fp",
1873
+ "slo",
1874
+ "scoa",
1875
+ "fcoa",
1876
+ "seccft",
1877
+ "cls",
1878
+ "seacft",
1879
+ "serft"
1880
+ ]>;
1881
+ type LogType$1 = z.infer<typeof LogType>;
1882
+ export declare const Auth0Client: z.ZodObject<{
1883
+ name: z.ZodString;
1884
+ version: z.ZodString;
1885
+ env: z.ZodOptional<z.ZodObject<{
1886
+ node: z.ZodOptional<z.ZodString>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ node?: string | undefined;
1889
+ }, {
1890
+ node?: string | undefined;
1891
+ }>>;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ name: string;
1894
+ version: string;
1895
+ env?: {
1896
+ node?: string | undefined;
1897
+ } | undefined;
1898
+ }, {
1899
+ name: string;
1900
+ version: string;
1901
+ env?: {
1902
+ node?: string | undefined;
1903
+ } | undefined;
1904
+ }>;
1905
+ export declare const logSchema: z.ZodObject<{
1906
+ type: z.ZodEnum<[
1907
+ "sapi",
1908
+ "ssa",
1909
+ "fsa",
1910
+ "ss",
1911
+ "ssa",
1912
+ "fs",
1913
+ "s",
1914
+ "f",
1915
+ "fp",
1916
+ "slo",
1917
+ "scoa",
1918
+ "fcoa",
1919
+ "seccft",
1920
+ "cls",
1921
+ "seacft",
1922
+ "serft"
1923
+ ]>;
1924
+ date: z.ZodString;
1925
+ description: z.ZodOptional<z.ZodString>;
1926
+ log_id: z.ZodOptional<z.ZodString>;
1927
+ _id: z.ZodOptional<z.ZodString>;
1928
+ ip: z.ZodString;
1929
+ user_agent: z.ZodString;
1930
+ details: z.ZodOptional<z.ZodAny>;
1931
+ isMobile: z.ZodBoolean;
1932
+ user_id: z.ZodOptional<z.ZodString>;
1933
+ user_name: z.ZodOptional<z.ZodString>;
1934
+ connection: z.ZodOptional<z.ZodString>;
1935
+ connection_id: z.ZodOptional<z.ZodString>;
1936
+ client_id: z.ZodOptional<z.ZodString>;
1937
+ client_name: z.ZodOptional<z.ZodString>;
1938
+ audience: z.ZodOptional<z.ZodString>;
1939
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1940
+ strategy: z.ZodOptional<z.ZodString>;
1941
+ strategy_type: z.ZodOptional<z.ZodString>;
1942
+ hostname: z.ZodOptional<z.ZodString>;
1943
+ auth0_client: z.ZodOptional<z.ZodObject<{
1944
+ name: z.ZodString;
1945
+ version: z.ZodString;
1946
+ env: z.ZodOptional<z.ZodObject<{
1947
+ node: z.ZodOptional<z.ZodString>;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ node?: string | undefined;
1950
+ }, {
1951
+ node?: string | undefined;
1952
+ }>>;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ name: string;
1955
+ version: string;
1956
+ env?: {
1957
+ node?: string | undefined;
1958
+ } | undefined;
1959
+ }, {
1960
+ name: string;
1961
+ version: string;
1962
+ env?: {
1963
+ node?: string | undefined;
1964
+ } | undefined;
1965
+ }>>;
1966
+ }, "strip", z.ZodTypeAny, {
1967
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1968
+ date: string;
1969
+ ip: string;
1970
+ user_agent: string;
1971
+ isMobile: boolean;
1972
+ description?: string | undefined;
1973
+ connection?: string | undefined;
1974
+ user_id?: string | undefined;
1975
+ client_id?: string | undefined;
1976
+ audience?: string | undefined;
1977
+ scope?: string[] | undefined;
1978
+ log_id?: string | undefined;
1979
+ _id?: string | undefined;
1980
+ details?: any;
1981
+ user_name?: string | undefined;
1982
+ connection_id?: string | undefined;
1983
+ client_name?: string | undefined;
1984
+ strategy?: string | undefined;
1985
+ strategy_type?: string | undefined;
1986
+ hostname?: string | undefined;
1987
+ auth0_client?: {
1988
+ name: string;
1989
+ version: string;
1990
+ env?: {
1991
+ node?: string | undefined;
1992
+ } | undefined;
1993
+ } | undefined;
1994
+ }, {
1995
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1996
+ date: string;
1997
+ ip: string;
1998
+ user_agent: string;
1999
+ isMobile: boolean;
2000
+ description?: string | undefined;
2001
+ connection?: string | undefined;
2002
+ user_id?: string | undefined;
2003
+ client_id?: string | undefined;
2004
+ audience?: string | undefined;
2005
+ scope?: string[] | undefined;
2006
+ log_id?: string | undefined;
2007
+ _id?: string | undefined;
2008
+ details?: any;
2009
+ user_name?: string | undefined;
2010
+ connection_id?: string | undefined;
2011
+ client_name?: string | undefined;
2012
+ strategy?: string | undefined;
2013
+ strategy_type?: string | undefined;
2014
+ hostname?: string | undefined;
2015
+ auth0_client?: {
2016
+ name: string;
2017
+ version: string;
2018
+ env?: {
2019
+ node?: string | undefined;
2020
+ } | undefined;
2021
+ } | undefined;
2022
+ }>;
2023
+ export type Log = z.infer<typeof logSchema>;
2024
+ export type LogsResponse = Log & {
2025
+ log_id: string;
2026
+ _id: string;
2027
+ };
2028
+ export declare const passwordInsertSchema: z.ZodObject<{
2029
+ user_id: z.ZodString;
2030
+ password: z.ZodString;
2031
+ algorithm: z.ZodDefault<z.ZodEnum<[
2032
+ "bcrypt",
2033
+ "argon2id"
2034
+ ]>>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ password: string;
2037
+ user_id: string;
2038
+ algorithm: "bcrypt" | "argon2id";
2039
+ }, {
2040
+ password: string;
2041
+ user_id: string;
2042
+ algorithm?: "bcrypt" | "argon2id" | undefined;
2043
+ }>;
2044
+ export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
2045
+ export declare const passwordSchema: z.ZodObject<{
2046
+ created_at: z.ZodString;
2047
+ updated_at: z.ZodString;
2048
+ user_id: z.ZodString;
1932
2049
  password: z.ZodString;
2050
+ algorithm: z.ZodDefault<z.ZodEnum<[
2051
+ "bcrypt",
2052
+ "argon2id"
2053
+ ]>>;
1933
2054
  }, "strip", z.ZodTypeAny, {
1934
2055
  password: string;
1935
2056
  created_at: string;
1936
2057
  updated_at: string;
1937
2058
  user_id: string;
2059
+ algorithm: "bcrypt" | "argon2id";
1938
2060
  }, {
1939
2061
  password: string;
1940
2062
  created_at: string;
1941
2063
  updated_at: string;
1942
2064
  user_id: string;
2065
+ algorithm?: "bcrypt" | "argon2id" | undefined;
1943
2066
  }>;
1944
2067
  export type Password = z.infer<typeof passwordSchema>;
1945
2068
  export declare const sessionInsertSchema: z.ZodObject<{
@@ -2302,52 +2425,1163 @@ declare const codeResponseSchema: z.ZodObject<{
2302
2425
  state?: string | undefined;
2303
2426
  }>;
2304
2427
  export type CodeResponse = z.infer<typeof codeResponseSchema>;
2305
- export interface Ticket {
2306
- id: string;
2307
- tenant_id: string;
2308
- client_id: string;
2309
- email: string;
2310
- authParams?: {
2311
- nonce?: string;
2312
- state?: string;
2313
- scope?: string;
2314
- response_type?: AuthorizationResponseType;
2315
- response_mode?: AuthorizationResponseMode;
2316
- redirect_uri?: string;
2317
- };
2318
- created_at: Date;
2319
- expires_at: Date;
2320
- used_at?: Date;
2321
- }
2322
- export declare const universalLoginSessionInsertSchema: z.ZodObject<{
2323
- id: z.ZodString;
2324
- expires_at: z.ZodString;
2325
- auth0Client: z.ZodOptional<z.ZodString>;
2326
- authParams: z.ZodObject<{
2327
- client_id: z.ZodString;
2328
- vendor_id: z.ZodOptional<z.ZodString>;
2329
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2330
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2331
- redirect_uri: z.ZodOptional<z.ZodString>;
2332
- audience: z.ZodOptional<z.ZodString>;
2333
- state: z.ZodOptional<z.ZodString>;
2334
- nonce: z.ZodOptional<z.ZodString>;
2335
- scope: z.ZodOptional<z.ZodString>;
2336
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2337
- code_challenge: z.ZodOptional<z.ZodString>;
2338
- username: z.ZodOptional<z.ZodString>;
2428
+ export declare const bordersSchema: z.ZodObject<{
2429
+ button_border_radius: z.ZodNumber;
2430
+ button_border_weight: z.ZodNumber;
2431
+ buttons_style: z.ZodEnum<[
2432
+ "pill"
2433
+ ]>;
2434
+ input_border_radius: z.ZodNumber;
2435
+ input_border_weight: z.ZodNumber;
2436
+ inputs_style: z.ZodEnum<[
2437
+ "pill"
2438
+ ]>;
2439
+ show_widget_shadow: z.ZodBoolean;
2440
+ widget_border_weight: z.ZodNumber;
2441
+ widget_corner_radius: z.ZodNumber;
2442
+ }, "strip", z.ZodTypeAny, {
2443
+ button_border_radius: number;
2444
+ button_border_weight: number;
2445
+ buttons_style: "pill";
2446
+ input_border_radius: number;
2447
+ input_border_weight: number;
2448
+ inputs_style: "pill";
2449
+ show_widget_shadow: boolean;
2450
+ widget_border_weight: number;
2451
+ widget_corner_radius: number;
2452
+ }, {
2453
+ button_border_radius: number;
2454
+ button_border_weight: number;
2455
+ buttons_style: "pill";
2456
+ input_border_radius: number;
2457
+ input_border_weight: number;
2458
+ inputs_style: "pill";
2459
+ show_widget_shadow: boolean;
2460
+ widget_border_weight: number;
2461
+ widget_corner_radius: number;
2462
+ }>;
2463
+ export declare const colorsSchema: z.ZodObject<{
2464
+ base_focus_color: z.ZodString;
2465
+ base_hover_color: z.ZodString;
2466
+ body_text: z.ZodString;
2467
+ captcha_widget_theme: z.ZodEnum<[
2468
+ "auto"
2469
+ ]>;
2470
+ error: z.ZodString;
2471
+ header: z.ZodString;
2472
+ icons: z.ZodString;
2473
+ input_background: z.ZodString;
2474
+ input_border: z.ZodString;
2475
+ input_filled_text: z.ZodString;
2476
+ input_labels_placeholders: z.ZodString;
2477
+ links_focused_components: z.ZodString;
2478
+ primary_button: z.ZodString;
2479
+ primary_button_label: z.ZodString;
2480
+ secondary_button_border: z.ZodString;
2481
+ secondary_button_label: z.ZodString;
2482
+ success: z.ZodString;
2483
+ widget_background: z.ZodString;
2484
+ widget_border: z.ZodString;
2485
+ }, "strip", z.ZodTypeAny, {
2486
+ base_focus_color: string;
2487
+ base_hover_color: string;
2488
+ body_text: string;
2489
+ captcha_widget_theme: "auto";
2490
+ error: string;
2491
+ header: string;
2492
+ icons: string;
2493
+ input_background: string;
2494
+ input_border: string;
2495
+ input_filled_text: string;
2496
+ input_labels_placeholders: string;
2497
+ links_focused_components: string;
2498
+ primary_button: string;
2499
+ primary_button_label: string;
2500
+ secondary_button_border: string;
2501
+ secondary_button_label: string;
2502
+ success: string;
2503
+ widget_background: string;
2504
+ widget_border: string;
2505
+ }, {
2506
+ base_focus_color: string;
2507
+ base_hover_color: string;
2508
+ body_text: string;
2509
+ captcha_widget_theme: "auto";
2510
+ error: string;
2511
+ header: string;
2512
+ icons: string;
2513
+ input_background: string;
2514
+ input_border: string;
2515
+ input_filled_text: string;
2516
+ input_labels_placeholders: string;
2517
+ links_focused_components: string;
2518
+ primary_button: string;
2519
+ primary_button_label: string;
2520
+ secondary_button_border: string;
2521
+ secondary_button_label: string;
2522
+ success: string;
2523
+ widget_background: string;
2524
+ widget_border: string;
2525
+ }>;
2526
+ export declare const fontDetailsSchema: z.ZodObject<{
2527
+ bold: z.ZodBoolean;
2528
+ size: z.ZodNumber;
2529
+ }, "strip", z.ZodTypeAny, {
2530
+ bold: boolean;
2531
+ size: number;
2532
+ }, {
2533
+ bold: boolean;
2534
+ size: number;
2535
+ }>;
2536
+ export declare const fontsSchema: z.ZodObject<{
2537
+ body_text: z.ZodObject<{
2538
+ bold: z.ZodBoolean;
2539
+ size: z.ZodNumber;
2339
2540
  }, "strip", z.ZodTypeAny, {
2340
- client_id: string;
2341
- username?: string | undefined;
2342
- vendor_id?: string | undefined;
2343
- response_type?: AuthorizationResponseType | undefined;
2344
- response_mode?: AuthorizationResponseMode | undefined;
2345
- redirect_uri?: string | undefined;
2346
- audience?: string | undefined;
2347
- state?: string | undefined;
2348
- nonce?: string | undefined;
2349
- scope?: string | undefined;
2350
- code_challenge_method?: CodeChallengeMethod | undefined;
2541
+ bold: boolean;
2542
+ size: number;
2543
+ }, {
2544
+ bold: boolean;
2545
+ size: number;
2546
+ }>;
2547
+ buttons_text: z.ZodObject<{
2548
+ bold: z.ZodBoolean;
2549
+ size: z.ZodNumber;
2550
+ }, "strip", z.ZodTypeAny, {
2551
+ bold: boolean;
2552
+ size: number;
2553
+ }, {
2554
+ bold: boolean;
2555
+ size: number;
2556
+ }>;
2557
+ font_url: z.ZodString;
2558
+ input_labels: z.ZodObject<{
2559
+ bold: z.ZodBoolean;
2560
+ size: z.ZodNumber;
2561
+ }, "strip", z.ZodTypeAny, {
2562
+ bold: boolean;
2563
+ size: number;
2564
+ }, {
2565
+ bold: boolean;
2566
+ size: number;
2567
+ }>;
2568
+ links: z.ZodObject<{
2569
+ bold: z.ZodBoolean;
2570
+ size: z.ZodNumber;
2571
+ }, "strip", z.ZodTypeAny, {
2572
+ bold: boolean;
2573
+ size: number;
2574
+ }, {
2575
+ bold: boolean;
2576
+ size: number;
2577
+ }>;
2578
+ links_style: z.ZodEnum<[
2579
+ "normal"
2580
+ ]>;
2581
+ reference_text_size: z.ZodNumber;
2582
+ subtitle: z.ZodObject<{
2583
+ bold: z.ZodBoolean;
2584
+ size: z.ZodNumber;
2585
+ }, "strip", z.ZodTypeAny, {
2586
+ bold: boolean;
2587
+ size: number;
2588
+ }, {
2589
+ bold: boolean;
2590
+ size: number;
2591
+ }>;
2592
+ title: z.ZodObject<{
2593
+ bold: z.ZodBoolean;
2594
+ size: z.ZodNumber;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ bold: boolean;
2597
+ size: number;
2598
+ }, {
2599
+ bold: boolean;
2600
+ size: number;
2601
+ }>;
2602
+ }, "strip", z.ZodTypeAny, {
2603
+ title: {
2604
+ bold: boolean;
2605
+ size: number;
2606
+ };
2607
+ body_text: {
2608
+ bold: boolean;
2609
+ size: number;
2610
+ };
2611
+ buttons_text: {
2612
+ bold: boolean;
2613
+ size: number;
2614
+ };
2615
+ font_url: string;
2616
+ input_labels: {
2617
+ bold: boolean;
2618
+ size: number;
2619
+ };
2620
+ links: {
2621
+ bold: boolean;
2622
+ size: number;
2623
+ };
2624
+ links_style: "normal";
2625
+ reference_text_size: number;
2626
+ subtitle: {
2627
+ bold: boolean;
2628
+ size: number;
2629
+ };
2630
+ }, {
2631
+ title: {
2632
+ bold: boolean;
2633
+ size: number;
2634
+ };
2635
+ body_text: {
2636
+ bold: boolean;
2637
+ size: number;
2638
+ };
2639
+ buttons_text: {
2640
+ bold: boolean;
2641
+ size: number;
2642
+ };
2643
+ font_url: string;
2644
+ input_labels: {
2645
+ bold: boolean;
2646
+ size: number;
2647
+ };
2648
+ links: {
2649
+ bold: boolean;
2650
+ size: number;
2651
+ };
2652
+ links_style: "normal";
2653
+ reference_text_size: number;
2654
+ subtitle: {
2655
+ bold: boolean;
2656
+ size: number;
2657
+ };
2658
+ }>;
2659
+ export declare const pageBackgroundSchema: z.ZodObject<{
2660
+ background_color: z.ZodString;
2661
+ background_image_url: z.ZodString;
2662
+ page_layout: z.ZodEnum<[
2663
+ "center"
2664
+ ]>;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ background_color: string;
2667
+ background_image_url: string;
2668
+ page_layout: "center";
2669
+ }, {
2670
+ background_color: string;
2671
+ background_image_url: string;
2672
+ page_layout: "center";
2673
+ }>;
2674
+ export declare const widgetSchema: z.ZodObject<{
2675
+ header_text_alignment: z.ZodEnum<[
2676
+ "center"
2677
+ ]>;
2678
+ logo_height: z.ZodNumber;
2679
+ logo_position: z.ZodEnum<[
2680
+ "center"
2681
+ ]>;
2682
+ logo_url: z.ZodString;
2683
+ social_buttons_layout: z.ZodEnum<[
2684
+ "bottom"
2685
+ ]>;
2686
+ }, "strip", z.ZodTypeAny, {
2687
+ logo_url: string;
2688
+ header_text_alignment: "center";
2689
+ logo_height: number;
2690
+ logo_position: "center";
2691
+ social_buttons_layout: "bottom";
2692
+ }, {
2693
+ logo_url: string;
2694
+ header_text_alignment: "center";
2695
+ logo_height: number;
2696
+ logo_position: "center";
2697
+ social_buttons_layout: "bottom";
2698
+ }>;
2699
+ export declare const themeInsertSchema: z.ZodObject<{
2700
+ borders: z.ZodObject<{
2701
+ button_border_radius: z.ZodNumber;
2702
+ button_border_weight: z.ZodNumber;
2703
+ buttons_style: z.ZodEnum<[
2704
+ "pill"
2705
+ ]>;
2706
+ input_border_radius: z.ZodNumber;
2707
+ input_border_weight: z.ZodNumber;
2708
+ inputs_style: z.ZodEnum<[
2709
+ "pill"
2710
+ ]>;
2711
+ show_widget_shadow: z.ZodBoolean;
2712
+ widget_border_weight: z.ZodNumber;
2713
+ widget_corner_radius: z.ZodNumber;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ button_border_radius: number;
2716
+ button_border_weight: number;
2717
+ buttons_style: "pill";
2718
+ input_border_radius: number;
2719
+ input_border_weight: number;
2720
+ inputs_style: "pill";
2721
+ show_widget_shadow: boolean;
2722
+ widget_border_weight: number;
2723
+ widget_corner_radius: number;
2724
+ }, {
2725
+ button_border_radius: number;
2726
+ button_border_weight: number;
2727
+ buttons_style: "pill";
2728
+ input_border_radius: number;
2729
+ input_border_weight: number;
2730
+ inputs_style: "pill";
2731
+ show_widget_shadow: boolean;
2732
+ widget_border_weight: number;
2733
+ widget_corner_radius: number;
2734
+ }>;
2735
+ colors: z.ZodObject<{
2736
+ base_focus_color: z.ZodString;
2737
+ base_hover_color: z.ZodString;
2738
+ body_text: z.ZodString;
2739
+ captcha_widget_theme: z.ZodEnum<[
2740
+ "auto"
2741
+ ]>;
2742
+ error: z.ZodString;
2743
+ header: z.ZodString;
2744
+ icons: z.ZodString;
2745
+ input_background: z.ZodString;
2746
+ input_border: z.ZodString;
2747
+ input_filled_text: z.ZodString;
2748
+ input_labels_placeholders: z.ZodString;
2749
+ links_focused_components: z.ZodString;
2750
+ primary_button: z.ZodString;
2751
+ primary_button_label: z.ZodString;
2752
+ secondary_button_border: z.ZodString;
2753
+ secondary_button_label: z.ZodString;
2754
+ success: z.ZodString;
2755
+ widget_background: z.ZodString;
2756
+ widget_border: z.ZodString;
2757
+ }, "strip", z.ZodTypeAny, {
2758
+ base_focus_color: string;
2759
+ base_hover_color: string;
2760
+ body_text: string;
2761
+ captcha_widget_theme: "auto";
2762
+ error: string;
2763
+ header: string;
2764
+ icons: string;
2765
+ input_background: string;
2766
+ input_border: string;
2767
+ input_filled_text: string;
2768
+ input_labels_placeholders: string;
2769
+ links_focused_components: string;
2770
+ primary_button: string;
2771
+ primary_button_label: string;
2772
+ secondary_button_border: string;
2773
+ secondary_button_label: string;
2774
+ success: string;
2775
+ widget_background: string;
2776
+ widget_border: string;
2777
+ }, {
2778
+ base_focus_color: string;
2779
+ base_hover_color: string;
2780
+ body_text: string;
2781
+ captcha_widget_theme: "auto";
2782
+ error: string;
2783
+ header: string;
2784
+ icons: string;
2785
+ input_background: string;
2786
+ input_border: string;
2787
+ input_filled_text: string;
2788
+ input_labels_placeholders: string;
2789
+ links_focused_components: string;
2790
+ primary_button: string;
2791
+ primary_button_label: string;
2792
+ secondary_button_border: string;
2793
+ secondary_button_label: string;
2794
+ success: string;
2795
+ widget_background: string;
2796
+ widget_border: string;
2797
+ }>;
2798
+ displayName: z.ZodString;
2799
+ fonts: z.ZodObject<{
2800
+ body_text: z.ZodObject<{
2801
+ bold: z.ZodBoolean;
2802
+ size: z.ZodNumber;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ bold: boolean;
2805
+ size: number;
2806
+ }, {
2807
+ bold: boolean;
2808
+ size: number;
2809
+ }>;
2810
+ buttons_text: z.ZodObject<{
2811
+ bold: z.ZodBoolean;
2812
+ size: z.ZodNumber;
2813
+ }, "strip", z.ZodTypeAny, {
2814
+ bold: boolean;
2815
+ size: number;
2816
+ }, {
2817
+ bold: boolean;
2818
+ size: number;
2819
+ }>;
2820
+ font_url: z.ZodString;
2821
+ input_labels: z.ZodObject<{
2822
+ bold: z.ZodBoolean;
2823
+ size: z.ZodNumber;
2824
+ }, "strip", z.ZodTypeAny, {
2825
+ bold: boolean;
2826
+ size: number;
2827
+ }, {
2828
+ bold: boolean;
2829
+ size: number;
2830
+ }>;
2831
+ links: z.ZodObject<{
2832
+ bold: z.ZodBoolean;
2833
+ size: z.ZodNumber;
2834
+ }, "strip", z.ZodTypeAny, {
2835
+ bold: boolean;
2836
+ size: number;
2837
+ }, {
2838
+ bold: boolean;
2839
+ size: number;
2840
+ }>;
2841
+ links_style: z.ZodEnum<[
2842
+ "normal"
2843
+ ]>;
2844
+ reference_text_size: z.ZodNumber;
2845
+ subtitle: z.ZodObject<{
2846
+ bold: z.ZodBoolean;
2847
+ size: z.ZodNumber;
2848
+ }, "strip", z.ZodTypeAny, {
2849
+ bold: boolean;
2850
+ size: number;
2851
+ }, {
2852
+ bold: boolean;
2853
+ size: number;
2854
+ }>;
2855
+ title: z.ZodObject<{
2856
+ bold: z.ZodBoolean;
2857
+ size: z.ZodNumber;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ bold: boolean;
2860
+ size: number;
2861
+ }, {
2862
+ bold: boolean;
2863
+ size: number;
2864
+ }>;
2865
+ }, "strip", z.ZodTypeAny, {
2866
+ title: {
2867
+ bold: boolean;
2868
+ size: number;
2869
+ };
2870
+ body_text: {
2871
+ bold: boolean;
2872
+ size: number;
2873
+ };
2874
+ buttons_text: {
2875
+ bold: boolean;
2876
+ size: number;
2877
+ };
2878
+ font_url: string;
2879
+ input_labels: {
2880
+ bold: boolean;
2881
+ size: number;
2882
+ };
2883
+ links: {
2884
+ bold: boolean;
2885
+ size: number;
2886
+ };
2887
+ links_style: "normal";
2888
+ reference_text_size: number;
2889
+ subtitle: {
2890
+ bold: boolean;
2891
+ size: number;
2892
+ };
2893
+ }, {
2894
+ title: {
2895
+ bold: boolean;
2896
+ size: number;
2897
+ };
2898
+ body_text: {
2899
+ bold: boolean;
2900
+ size: number;
2901
+ };
2902
+ buttons_text: {
2903
+ bold: boolean;
2904
+ size: number;
2905
+ };
2906
+ font_url: string;
2907
+ input_labels: {
2908
+ bold: boolean;
2909
+ size: number;
2910
+ };
2911
+ links: {
2912
+ bold: boolean;
2913
+ size: number;
2914
+ };
2915
+ links_style: "normal";
2916
+ reference_text_size: number;
2917
+ subtitle: {
2918
+ bold: boolean;
2919
+ size: number;
2920
+ };
2921
+ }>;
2922
+ page_background: z.ZodObject<{
2923
+ background_color: z.ZodString;
2924
+ background_image_url: z.ZodString;
2925
+ page_layout: z.ZodEnum<[
2926
+ "center"
2927
+ ]>;
2928
+ }, "strip", z.ZodTypeAny, {
2929
+ background_color: string;
2930
+ background_image_url: string;
2931
+ page_layout: "center";
2932
+ }, {
2933
+ background_color: string;
2934
+ background_image_url: string;
2935
+ page_layout: "center";
2936
+ }>;
2937
+ widget: z.ZodObject<{
2938
+ header_text_alignment: z.ZodEnum<[
2939
+ "center"
2940
+ ]>;
2941
+ logo_height: z.ZodNumber;
2942
+ logo_position: z.ZodEnum<[
2943
+ "center"
2944
+ ]>;
2945
+ logo_url: z.ZodString;
2946
+ social_buttons_layout: z.ZodEnum<[
2947
+ "bottom"
2948
+ ]>;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ logo_url: string;
2951
+ header_text_alignment: "center";
2952
+ logo_height: number;
2953
+ logo_position: "center";
2954
+ social_buttons_layout: "bottom";
2955
+ }, {
2956
+ logo_url: string;
2957
+ header_text_alignment: "center";
2958
+ logo_height: number;
2959
+ logo_position: "center";
2960
+ social_buttons_layout: "bottom";
2961
+ }>;
2962
+ }, "strip", z.ZodTypeAny, {
2963
+ page_background: {
2964
+ background_color: string;
2965
+ background_image_url: string;
2966
+ page_layout: "center";
2967
+ };
2968
+ colors: {
2969
+ base_focus_color: string;
2970
+ base_hover_color: string;
2971
+ body_text: string;
2972
+ captcha_widget_theme: "auto";
2973
+ error: string;
2974
+ header: string;
2975
+ icons: string;
2976
+ input_background: string;
2977
+ input_border: string;
2978
+ input_filled_text: string;
2979
+ input_labels_placeholders: string;
2980
+ links_focused_components: string;
2981
+ primary_button: string;
2982
+ primary_button_label: string;
2983
+ secondary_button_border: string;
2984
+ secondary_button_label: string;
2985
+ success: string;
2986
+ widget_background: string;
2987
+ widget_border: string;
2988
+ };
2989
+ borders: {
2990
+ button_border_radius: number;
2991
+ button_border_weight: number;
2992
+ buttons_style: "pill";
2993
+ input_border_radius: number;
2994
+ input_border_weight: number;
2995
+ inputs_style: "pill";
2996
+ show_widget_shadow: boolean;
2997
+ widget_border_weight: number;
2998
+ widget_corner_radius: number;
2999
+ };
3000
+ displayName: string;
3001
+ fonts: {
3002
+ title: {
3003
+ bold: boolean;
3004
+ size: number;
3005
+ };
3006
+ body_text: {
3007
+ bold: boolean;
3008
+ size: number;
3009
+ };
3010
+ buttons_text: {
3011
+ bold: boolean;
3012
+ size: number;
3013
+ };
3014
+ font_url: string;
3015
+ input_labels: {
3016
+ bold: boolean;
3017
+ size: number;
3018
+ };
3019
+ links: {
3020
+ bold: boolean;
3021
+ size: number;
3022
+ };
3023
+ links_style: "normal";
3024
+ reference_text_size: number;
3025
+ subtitle: {
3026
+ bold: boolean;
3027
+ size: number;
3028
+ };
3029
+ };
3030
+ widget: {
3031
+ logo_url: string;
3032
+ header_text_alignment: "center";
3033
+ logo_height: number;
3034
+ logo_position: "center";
3035
+ social_buttons_layout: "bottom";
3036
+ };
3037
+ }, {
3038
+ page_background: {
3039
+ background_color: string;
3040
+ background_image_url: string;
3041
+ page_layout: "center";
3042
+ };
3043
+ colors: {
3044
+ base_focus_color: string;
3045
+ base_hover_color: string;
3046
+ body_text: string;
3047
+ captcha_widget_theme: "auto";
3048
+ error: string;
3049
+ header: string;
3050
+ icons: string;
3051
+ input_background: string;
3052
+ input_border: string;
3053
+ input_filled_text: string;
3054
+ input_labels_placeholders: string;
3055
+ links_focused_components: string;
3056
+ primary_button: string;
3057
+ primary_button_label: string;
3058
+ secondary_button_border: string;
3059
+ secondary_button_label: string;
3060
+ success: string;
3061
+ widget_background: string;
3062
+ widget_border: string;
3063
+ };
3064
+ borders: {
3065
+ button_border_radius: number;
3066
+ button_border_weight: number;
3067
+ buttons_style: "pill";
3068
+ input_border_radius: number;
3069
+ input_border_weight: number;
3070
+ inputs_style: "pill";
3071
+ show_widget_shadow: boolean;
3072
+ widget_border_weight: number;
3073
+ widget_corner_radius: number;
3074
+ };
3075
+ displayName: string;
3076
+ fonts: {
3077
+ title: {
3078
+ bold: boolean;
3079
+ size: number;
3080
+ };
3081
+ body_text: {
3082
+ bold: boolean;
3083
+ size: number;
3084
+ };
3085
+ buttons_text: {
3086
+ bold: boolean;
3087
+ size: number;
3088
+ };
3089
+ font_url: string;
3090
+ input_labels: {
3091
+ bold: boolean;
3092
+ size: number;
3093
+ };
3094
+ links: {
3095
+ bold: boolean;
3096
+ size: number;
3097
+ };
3098
+ links_style: "normal";
3099
+ reference_text_size: number;
3100
+ subtitle: {
3101
+ bold: boolean;
3102
+ size: number;
3103
+ };
3104
+ };
3105
+ widget: {
3106
+ logo_url: string;
3107
+ header_text_alignment: "center";
3108
+ logo_height: number;
3109
+ logo_position: "center";
3110
+ social_buttons_layout: "bottom";
3111
+ };
3112
+ }>;
3113
+ export type ThemeInsert = z.infer<typeof themeInsertSchema>;
3114
+ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3115
+ borders: z.ZodObject<{
3116
+ button_border_radius: z.ZodNumber;
3117
+ button_border_weight: z.ZodNumber;
3118
+ buttons_style: z.ZodEnum<[
3119
+ "pill"
3120
+ ]>;
3121
+ input_border_radius: z.ZodNumber;
3122
+ input_border_weight: z.ZodNumber;
3123
+ inputs_style: z.ZodEnum<[
3124
+ "pill"
3125
+ ]>;
3126
+ show_widget_shadow: z.ZodBoolean;
3127
+ widget_border_weight: z.ZodNumber;
3128
+ widget_corner_radius: z.ZodNumber;
3129
+ }, "strip", z.ZodTypeAny, {
3130
+ button_border_radius: number;
3131
+ button_border_weight: number;
3132
+ buttons_style: "pill";
3133
+ input_border_radius: number;
3134
+ input_border_weight: number;
3135
+ inputs_style: "pill";
3136
+ show_widget_shadow: boolean;
3137
+ widget_border_weight: number;
3138
+ widget_corner_radius: number;
3139
+ }, {
3140
+ button_border_radius: number;
3141
+ button_border_weight: number;
3142
+ buttons_style: "pill";
3143
+ input_border_radius: number;
3144
+ input_border_weight: number;
3145
+ inputs_style: "pill";
3146
+ show_widget_shadow: boolean;
3147
+ widget_border_weight: number;
3148
+ widget_corner_radius: number;
3149
+ }>;
3150
+ colors: z.ZodObject<{
3151
+ base_focus_color: z.ZodString;
3152
+ base_hover_color: z.ZodString;
3153
+ body_text: z.ZodString;
3154
+ captcha_widget_theme: z.ZodEnum<[
3155
+ "auto"
3156
+ ]>;
3157
+ error: z.ZodString;
3158
+ header: z.ZodString;
3159
+ icons: z.ZodString;
3160
+ input_background: z.ZodString;
3161
+ input_border: z.ZodString;
3162
+ input_filled_text: z.ZodString;
3163
+ input_labels_placeholders: z.ZodString;
3164
+ links_focused_components: z.ZodString;
3165
+ primary_button: z.ZodString;
3166
+ primary_button_label: z.ZodString;
3167
+ secondary_button_border: z.ZodString;
3168
+ secondary_button_label: z.ZodString;
3169
+ success: z.ZodString;
3170
+ widget_background: z.ZodString;
3171
+ widget_border: z.ZodString;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ base_focus_color: string;
3174
+ base_hover_color: string;
3175
+ body_text: string;
3176
+ captcha_widget_theme: "auto";
3177
+ error: string;
3178
+ header: string;
3179
+ icons: string;
3180
+ input_background: string;
3181
+ input_border: string;
3182
+ input_filled_text: string;
3183
+ input_labels_placeholders: string;
3184
+ links_focused_components: string;
3185
+ primary_button: string;
3186
+ primary_button_label: string;
3187
+ secondary_button_border: string;
3188
+ secondary_button_label: string;
3189
+ success: string;
3190
+ widget_background: string;
3191
+ widget_border: string;
3192
+ }, {
3193
+ base_focus_color: string;
3194
+ base_hover_color: string;
3195
+ body_text: string;
3196
+ captcha_widget_theme: "auto";
3197
+ error: string;
3198
+ header: string;
3199
+ icons: string;
3200
+ input_background: string;
3201
+ input_border: string;
3202
+ input_filled_text: string;
3203
+ input_labels_placeholders: string;
3204
+ links_focused_components: string;
3205
+ primary_button: string;
3206
+ primary_button_label: string;
3207
+ secondary_button_border: string;
3208
+ secondary_button_label: string;
3209
+ success: string;
3210
+ widget_background: string;
3211
+ widget_border: string;
3212
+ }>;
3213
+ displayName: z.ZodString;
3214
+ fonts: z.ZodObject<{
3215
+ body_text: z.ZodObject<{
3216
+ bold: z.ZodBoolean;
3217
+ size: z.ZodNumber;
3218
+ }, "strip", z.ZodTypeAny, {
3219
+ bold: boolean;
3220
+ size: number;
3221
+ }, {
3222
+ bold: boolean;
3223
+ size: number;
3224
+ }>;
3225
+ buttons_text: z.ZodObject<{
3226
+ bold: z.ZodBoolean;
3227
+ size: z.ZodNumber;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ bold: boolean;
3230
+ size: number;
3231
+ }, {
3232
+ bold: boolean;
3233
+ size: number;
3234
+ }>;
3235
+ font_url: z.ZodString;
3236
+ input_labels: z.ZodObject<{
3237
+ bold: z.ZodBoolean;
3238
+ size: z.ZodNumber;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ bold: boolean;
3241
+ size: number;
3242
+ }, {
3243
+ bold: boolean;
3244
+ size: number;
3245
+ }>;
3246
+ links: z.ZodObject<{
3247
+ bold: z.ZodBoolean;
3248
+ size: z.ZodNumber;
3249
+ }, "strip", z.ZodTypeAny, {
3250
+ bold: boolean;
3251
+ size: number;
3252
+ }, {
3253
+ bold: boolean;
3254
+ size: number;
3255
+ }>;
3256
+ links_style: z.ZodEnum<[
3257
+ "normal"
3258
+ ]>;
3259
+ reference_text_size: z.ZodNumber;
3260
+ subtitle: z.ZodObject<{
3261
+ bold: z.ZodBoolean;
3262
+ size: z.ZodNumber;
3263
+ }, "strip", z.ZodTypeAny, {
3264
+ bold: boolean;
3265
+ size: number;
3266
+ }, {
3267
+ bold: boolean;
3268
+ size: number;
3269
+ }>;
3270
+ title: z.ZodObject<{
3271
+ bold: z.ZodBoolean;
3272
+ size: z.ZodNumber;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ bold: boolean;
3275
+ size: number;
3276
+ }, {
3277
+ bold: boolean;
3278
+ size: number;
3279
+ }>;
3280
+ }, "strip", z.ZodTypeAny, {
3281
+ title: {
3282
+ bold: boolean;
3283
+ size: number;
3284
+ };
3285
+ body_text: {
3286
+ bold: boolean;
3287
+ size: number;
3288
+ };
3289
+ buttons_text: {
3290
+ bold: boolean;
3291
+ size: number;
3292
+ };
3293
+ font_url: string;
3294
+ input_labels: {
3295
+ bold: boolean;
3296
+ size: number;
3297
+ };
3298
+ links: {
3299
+ bold: boolean;
3300
+ size: number;
3301
+ };
3302
+ links_style: "normal";
3303
+ reference_text_size: number;
3304
+ subtitle: {
3305
+ bold: boolean;
3306
+ size: number;
3307
+ };
3308
+ }, {
3309
+ title: {
3310
+ bold: boolean;
3311
+ size: number;
3312
+ };
3313
+ body_text: {
3314
+ bold: boolean;
3315
+ size: number;
3316
+ };
3317
+ buttons_text: {
3318
+ bold: boolean;
3319
+ size: number;
3320
+ };
3321
+ font_url: string;
3322
+ input_labels: {
3323
+ bold: boolean;
3324
+ size: number;
3325
+ };
3326
+ links: {
3327
+ bold: boolean;
3328
+ size: number;
3329
+ };
3330
+ links_style: "normal";
3331
+ reference_text_size: number;
3332
+ subtitle: {
3333
+ bold: boolean;
3334
+ size: number;
3335
+ };
3336
+ }>;
3337
+ page_background: z.ZodObject<{
3338
+ background_color: z.ZodString;
3339
+ background_image_url: z.ZodString;
3340
+ page_layout: z.ZodEnum<[
3341
+ "center"
3342
+ ]>;
3343
+ }, "strip", z.ZodTypeAny, {
3344
+ background_color: string;
3345
+ background_image_url: string;
3346
+ page_layout: "center";
3347
+ }, {
3348
+ background_color: string;
3349
+ background_image_url: string;
3350
+ page_layout: "center";
3351
+ }>;
3352
+ widget: z.ZodObject<{
3353
+ header_text_alignment: z.ZodEnum<[
3354
+ "center"
3355
+ ]>;
3356
+ logo_height: z.ZodNumber;
3357
+ logo_position: z.ZodEnum<[
3358
+ "center"
3359
+ ]>;
3360
+ logo_url: z.ZodString;
3361
+ social_buttons_layout: z.ZodEnum<[
3362
+ "bottom"
3363
+ ]>;
3364
+ }, "strip", z.ZodTypeAny, {
3365
+ logo_url: string;
3366
+ header_text_alignment: "center";
3367
+ logo_height: number;
3368
+ logo_position: "center";
3369
+ social_buttons_layout: "bottom";
3370
+ }, {
3371
+ logo_url: string;
3372
+ header_text_alignment: "center";
3373
+ logo_height: number;
3374
+ logo_position: "center";
3375
+ social_buttons_layout: "bottom";
3376
+ }>;
3377
+ }, {
3378
+ themeId: z.ZodString;
3379
+ }>, "strip", z.ZodTypeAny, {
3380
+ page_background: {
3381
+ background_color: string;
3382
+ background_image_url: string;
3383
+ page_layout: "center";
3384
+ };
3385
+ colors: {
3386
+ base_focus_color: string;
3387
+ base_hover_color: string;
3388
+ body_text: string;
3389
+ captcha_widget_theme: "auto";
3390
+ error: string;
3391
+ header: string;
3392
+ icons: string;
3393
+ input_background: string;
3394
+ input_border: string;
3395
+ input_filled_text: string;
3396
+ input_labels_placeholders: string;
3397
+ links_focused_components: string;
3398
+ primary_button: string;
3399
+ primary_button_label: string;
3400
+ secondary_button_border: string;
3401
+ secondary_button_label: string;
3402
+ success: string;
3403
+ widget_background: string;
3404
+ widget_border: string;
3405
+ };
3406
+ borders: {
3407
+ button_border_radius: number;
3408
+ button_border_weight: number;
3409
+ buttons_style: "pill";
3410
+ input_border_radius: number;
3411
+ input_border_weight: number;
3412
+ inputs_style: "pill";
3413
+ show_widget_shadow: boolean;
3414
+ widget_border_weight: number;
3415
+ widget_corner_radius: number;
3416
+ };
3417
+ displayName: string;
3418
+ fonts: {
3419
+ title: {
3420
+ bold: boolean;
3421
+ size: number;
3422
+ };
3423
+ body_text: {
3424
+ bold: boolean;
3425
+ size: number;
3426
+ };
3427
+ buttons_text: {
3428
+ bold: boolean;
3429
+ size: number;
3430
+ };
3431
+ font_url: string;
3432
+ input_labels: {
3433
+ bold: boolean;
3434
+ size: number;
3435
+ };
3436
+ links: {
3437
+ bold: boolean;
3438
+ size: number;
3439
+ };
3440
+ links_style: "normal";
3441
+ reference_text_size: number;
3442
+ subtitle: {
3443
+ bold: boolean;
3444
+ size: number;
3445
+ };
3446
+ };
3447
+ widget: {
3448
+ logo_url: string;
3449
+ header_text_alignment: "center";
3450
+ logo_height: number;
3451
+ logo_position: "center";
3452
+ social_buttons_layout: "bottom";
3453
+ };
3454
+ themeId: string;
3455
+ }, {
3456
+ page_background: {
3457
+ background_color: string;
3458
+ background_image_url: string;
3459
+ page_layout: "center";
3460
+ };
3461
+ colors: {
3462
+ base_focus_color: string;
3463
+ base_hover_color: string;
3464
+ body_text: string;
3465
+ captcha_widget_theme: "auto";
3466
+ error: string;
3467
+ header: string;
3468
+ icons: string;
3469
+ input_background: string;
3470
+ input_border: string;
3471
+ input_filled_text: string;
3472
+ input_labels_placeholders: string;
3473
+ links_focused_components: string;
3474
+ primary_button: string;
3475
+ primary_button_label: string;
3476
+ secondary_button_border: string;
3477
+ secondary_button_label: string;
3478
+ success: string;
3479
+ widget_background: string;
3480
+ widget_border: string;
3481
+ };
3482
+ borders: {
3483
+ button_border_radius: number;
3484
+ button_border_weight: number;
3485
+ buttons_style: "pill";
3486
+ input_border_radius: number;
3487
+ input_border_weight: number;
3488
+ inputs_style: "pill";
3489
+ show_widget_shadow: boolean;
3490
+ widget_border_weight: number;
3491
+ widget_corner_radius: number;
3492
+ };
3493
+ displayName: string;
3494
+ fonts: {
3495
+ title: {
3496
+ bold: boolean;
3497
+ size: number;
3498
+ };
3499
+ body_text: {
3500
+ bold: boolean;
3501
+ size: number;
3502
+ };
3503
+ buttons_text: {
3504
+ bold: boolean;
3505
+ size: number;
3506
+ };
3507
+ font_url: string;
3508
+ input_labels: {
3509
+ bold: boolean;
3510
+ size: number;
3511
+ };
3512
+ links: {
3513
+ bold: boolean;
3514
+ size: number;
3515
+ };
3516
+ links_style: "normal";
3517
+ reference_text_size: number;
3518
+ subtitle: {
3519
+ bold: boolean;
3520
+ size: number;
3521
+ };
3522
+ };
3523
+ widget: {
3524
+ logo_url: string;
3525
+ header_text_alignment: "center";
3526
+ logo_height: number;
3527
+ logo_position: "center";
3528
+ social_buttons_layout: "bottom";
3529
+ };
3530
+ themeId: string;
3531
+ }>;
3532
+ export type Theme = z.infer<typeof themeSchema>;
3533
+ export interface LoginState {
3534
+ connection?: string;
3535
+ authParams: AuthParams;
3536
+ state: string;
3537
+ errorMessage?: string;
3538
+ }
3539
+ export interface Ticket {
3540
+ id: string;
3541
+ tenant_id: string;
3542
+ client_id: string;
3543
+ email: string;
3544
+ authParams?: {
3545
+ nonce?: string;
3546
+ state?: string;
3547
+ scope?: string;
3548
+ response_type?: AuthorizationResponseType;
3549
+ response_mode?: AuthorizationResponseMode;
3550
+ redirect_uri?: string;
3551
+ };
3552
+ created_at: Date;
3553
+ expires_at: Date;
3554
+ used_at?: Date;
3555
+ }
3556
+ export declare const universalLoginSessionInsertSchema: z.ZodObject<{
3557
+ id: z.ZodString;
3558
+ expires_at: z.ZodString;
3559
+ auth0Client: z.ZodOptional<z.ZodString>;
3560
+ authParams: z.ZodObject<{
3561
+ client_id: z.ZodString;
3562
+ vendor_id: z.ZodOptional<z.ZodString>;
3563
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3564
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3565
+ redirect_uri: z.ZodOptional<z.ZodString>;
3566
+ audience: z.ZodOptional<z.ZodString>;
3567
+ state: z.ZodOptional<z.ZodString>;
3568
+ nonce: z.ZodOptional<z.ZodString>;
3569
+ scope: z.ZodOptional<z.ZodString>;
3570
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3571
+ code_challenge: z.ZodOptional<z.ZodString>;
3572
+ username: z.ZodOptional<z.ZodString>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ client_id: string;
3575
+ username?: string | undefined;
3576
+ vendor_id?: string | undefined;
3577
+ response_type?: AuthorizationResponseType | undefined;
3578
+ response_mode?: AuthorizationResponseMode | undefined;
3579
+ redirect_uri?: string | undefined;
3580
+ audience?: string | undefined;
3581
+ state?: string | undefined;
3582
+ nonce?: string | undefined;
3583
+ scope?: string | undefined;
3584
+ code_challenge_method?: CodeChallengeMethod | undefined;
2351
3585
  code_challenge?: string | undefined;
2352
3586
  }, {
2353
3587
  client_id: string;
@@ -2365,6 +3599,7 @@ export declare const universalLoginSessionInsertSchema: z.ZodObject<{
2365
3599
  }>;
2366
3600
  }, "strip", z.ZodTypeAny, {
2367
3601
  id: string;
3602
+ expires_at: string;
2368
3603
  authParams: {
2369
3604
  client_id: string;
2370
3605
  username?: string | undefined;
@@ -2379,10 +3614,10 @@ export declare const universalLoginSessionInsertSchema: z.ZodObject<{
2379
3614
  code_challenge_method?: CodeChallengeMethod | undefined;
2380
3615
  code_challenge?: string | undefined;
2381
3616
  };
2382
- expires_at: string;
2383
3617
  auth0Client?: string | undefined;
2384
3618
  }, {
2385
3619
  id: string;
3620
+ expires_at: string;
2386
3621
  authParams: {
2387
3622
  client_id: string;
2388
3623
  username?: string | undefined;
@@ -2397,7 +3632,6 @@ export declare const universalLoginSessionInsertSchema: z.ZodObject<{
2397
3632
  code_challenge_method?: CodeChallengeMethod | undefined;
2398
3633
  code_challenge?: string | undefined;
2399
3634
  };
2400
- expires_at: string;
2401
3635
  auth0Client?: string | undefined;
2402
3636
  }>;
2403
3637
  export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
@@ -2451,6 +3685,7 @@ export declare const universalLoginSessionSchema: z.ZodObject<{
2451
3685
  created_at: string;
2452
3686
  updated_at: string;
2453
3687
  id: string;
3688
+ expires_at: string;
2454
3689
  authParams: {
2455
3690
  client_id: string;
2456
3691
  username?: string | undefined;
@@ -2465,12 +3700,12 @@ export declare const universalLoginSessionSchema: z.ZodObject<{
2465
3700
  code_challenge_method?: CodeChallengeMethod | undefined;
2466
3701
  code_challenge?: string | undefined;
2467
3702
  };
2468
- expires_at: string;
2469
3703
  auth0Client?: string | undefined;
2470
3704
  }, {
2471
3705
  created_at: string;
2472
3706
  updated_at: string;
2473
3707
  id: string;
3708
+ expires_at: string;
2474
3709
  authParams: {
2475
3710
  client_id: string;
2476
3711
  username?: string | undefined;
@@ -2485,301 +3720,410 @@ export declare const universalLoginSessionSchema: z.ZodObject<{
2485
3720
  code_challenge_method?: CodeChallengeMethod | undefined;
2486
3721
  code_challenge?: string | undefined;
2487
3722
  };
2488
- expires_at: string;
2489
3723
  auth0Client?: string | undefined;
2490
3724
  }>;
2491
3725
  export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
2492
- export declare enum LogTypes {
2493
- SUCCESS_API_OPERATION = "sapi",
2494
- SUCCESS_SILENT_AUTH = "ssa",
2495
- FAILED_SILENT_AUTH = "fsa",
2496
- SUCCESS_SIGNUP = "ss",
2497
- FAILED_SIGNUP = "fs",
2498
- SUCCESS_LOGIN = "s",
2499
- FAILED_LOGIN = "f",
2500
- FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
2501
- SUCCESS_LOGOUT = "slo",
2502
- SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
2503
- FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
2504
- SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
2505
- SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
2506
- CODE_LINK_SENT = "cls",
2507
- NOT_IMPLEMENTED_1 = "seccft"
2508
- }
2509
- declare const LogType: z.ZodEnum<[
2510
- "sapi",
2511
- "ssa",
2512
- "fsa",
2513
- "ss",
2514
- "ssa",
2515
- "fs",
2516
- "s",
2517
- "f",
2518
- "fp",
2519
- "slo",
2520
- "scoa",
2521
- "fcoa",
2522
- "seccft",
2523
- "cls",
2524
- "seacft",
2525
- "serft"
2526
- ]>;
2527
- type LogType$1 = z.infer<typeof LogType>;
2528
- export declare const Auth0Client: z.ZodObject<{
2529
- name: z.ZodString;
2530
- version: z.ZodString;
2531
- env: z.ZodOptional<z.ZodObject<{
2532
- node: z.ZodOptional<z.ZodString>;
3726
+ export declare const otpInsertSchema: z.ZodObject<{
3727
+ id: z.ZodString;
3728
+ email: z.ZodString;
3729
+ code: z.ZodString;
3730
+ ip: z.ZodOptional<z.ZodString>;
3731
+ send: z.ZodEnum<[
3732
+ "code",
3733
+ "link"
3734
+ ]>;
3735
+ authParams: z.ZodObject<{
3736
+ client_id: z.ZodString;
3737
+ vendor_id: z.ZodOptional<z.ZodString>;
3738
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3739
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3740
+ redirect_uri: z.ZodOptional<z.ZodString>;
3741
+ audience: z.ZodOptional<z.ZodString>;
3742
+ state: z.ZodOptional<z.ZodString>;
3743
+ nonce: z.ZodOptional<z.ZodString>;
3744
+ scope: z.ZodOptional<z.ZodString>;
3745
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3746
+ code_challenge: z.ZodOptional<z.ZodString>;
3747
+ username: z.ZodOptional<z.ZodString>;
2533
3748
  }, "strip", z.ZodTypeAny, {
2534
- node?: string | undefined;
2535
- }, {
2536
- node?: string | undefined;
2537
- }>>;
2538
- }, "strip", z.ZodTypeAny, {
2539
- name: string;
2540
- version: string;
2541
- env?: {
2542
- node?: string | undefined;
2543
- } | undefined;
3749
+ client_id: string;
3750
+ username?: string | undefined;
3751
+ vendor_id?: string | undefined;
3752
+ response_type?: AuthorizationResponseType | undefined;
3753
+ response_mode?: AuthorizationResponseMode | undefined;
3754
+ redirect_uri?: string | undefined;
3755
+ audience?: string | undefined;
3756
+ state?: string | undefined;
3757
+ nonce?: string | undefined;
3758
+ scope?: string | undefined;
3759
+ code_challenge_method?: CodeChallengeMethod | undefined;
3760
+ code_challenge?: string | undefined;
3761
+ }, {
3762
+ client_id: string;
3763
+ username?: string | undefined;
3764
+ vendor_id?: string | undefined;
3765
+ response_type?: AuthorizationResponseType | undefined;
3766
+ response_mode?: AuthorizationResponseMode | undefined;
3767
+ redirect_uri?: string | undefined;
3768
+ audience?: string | undefined;
3769
+ state?: string | undefined;
3770
+ nonce?: string | undefined;
3771
+ scope?: string | undefined;
3772
+ code_challenge_method?: CodeChallengeMethod | undefined;
3773
+ code_challenge?: string | undefined;
3774
+ }>;
3775
+ expires_at: z.ZodString;
3776
+ used_at: z.ZodOptional<z.ZodString>;
3777
+ user_id: z.ZodOptional<z.ZodString>;
3778
+ }, "strip", z.ZodTypeAny, {
3779
+ code: string;
3780
+ email: string;
3781
+ id: string;
3782
+ expires_at: string;
3783
+ authParams: {
3784
+ client_id: string;
3785
+ username?: string | undefined;
3786
+ vendor_id?: string | undefined;
3787
+ response_type?: AuthorizationResponseType | undefined;
3788
+ response_mode?: AuthorizationResponseMode | undefined;
3789
+ redirect_uri?: string | undefined;
3790
+ audience?: string | undefined;
3791
+ state?: string | undefined;
3792
+ nonce?: string | undefined;
3793
+ scope?: string | undefined;
3794
+ code_challenge_method?: CodeChallengeMethod | undefined;
3795
+ code_challenge?: string | undefined;
3796
+ };
3797
+ send: "code" | "link";
3798
+ user_id?: string | undefined;
3799
+ used_at?: string | undefined;
3800
+ ip?: string | undefined;
2544
3801
  }, {
2545
- name: string;
2546
- version: string;
2547
- env?: {
2548
- node?: string | undefined;
2549
- } | undefined;
3802
+ code: string;
3803
+ email: string;
3804
+ id: string;
3805
+ expires_at: string;
3806
+ authParams: {
3807
+ client_id: string;
3808
+ username?: string | undefined;
3809
+ vendor_id?: string | undefined;
3810
+ response_type?: AuthorizationResponseType | undefined;
3811
+ response_mode?: AuthorizationResponseMode | undefined;
3812
+ redirect_uri?: string | undefined;
3813
+ audience?: string | undefined;
3814
+ state?: string | undefined;
3815
+ nonce?: string | undefined;
3816
+ scope?: string | undefined;
3817
+ code_challenge_method?: CodeChallengeMethod | undefined;
3818
+ code_challenge?: string | undefined;
3819
+ };
3820
+ send: "code" | "link";
3821
+ user_id?: string | undefined;
3822
+ used_at?: string | undefined;
3823
+ ip?: string | undefined;
2550
3824
  }>;
2551
- export declare const logSchema: z.ZodObject<{
2552
- type: z.ZodEnum<[
2553
- "sapi",
2554
- "ssa",
2555
- "fsa",
2556
- "ss",
2557
- "ssa",
2558
- "fs",
2559
- "s",
2560
- "f",
2561
- "fp",
2562
- "slo",
2563
- "scoa",
2564
- "fcoa",
2565
- "seccft",
2566
- "cls",
2567
- "seacft",
2568
- "serft"
3825
+ export type OTPInsert = z.infer<typeof otpInsertSchema>;
3826
+ export declare const otpSchema: z.ZodObject<{
3827
+ id: z.ZodString;
3828
+ email: z.ZodString;
3829
+ code: z.ZodString;
3830
+ ip: z.ZodOptional<z.ZodString>;
3831
+ send: z.ZodEnum<[
3832
+ "code",
3833
+ "link"
2569
3834
  ]>;
2570
- date: z.ZodString;
2571
- description: z.ZodOptional<z.ZodString>;
2572
- log_id: z.ZodOptional<z.ZodString>;
2573
- _id: z.ZodOptional<z.ZodString>;
2574
- ip: z.ZodString;
2575
- user_agent: z.ZodString;
2576
- details: z.ZodOptional<z.ZodAny>;
2577
- isMobile: z.ZodBoolean;
2578
- user_id: z.ZodOptional<z.ZodString>;
2579
- user_name: z.ZodOptional<z.ZodString>;
2580
- connection: z.ZodOptional<z.ZodString>;
2581
- connection_id: z.ZodOptional<z.ZodString>;
2582
- client_id: z.ZodOptional<z.ZodString>;
2583
- client_name: z.ZodOptional<z.ZodString>;
2584
- audience: z.ZodOptional<z.ZodString>;
2585
- scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2586
- strategy: z.ZodOptional<z.ZodString>;
2587
- strategy_type: z.ZodOptional<z.ZodString>;
2588
- hostname: z.ZodOptional<z.ZodString>;
2589
- auth0_client: z.ZodOptional<z.ZodObject<{
2590
- name: z.ZodString;
2591
- version: z.ZodString;
2592
- env: z.ZodOptional<z.ZodObject<{
2593
- node: z.ZodOptional<z.ZodString>;
2594
- }, "strip", z.ZodTypeAny, {
2595
- node?: string | undefined;
2596
- }, {
2597
- node?: string | undefined;
2598
- }>>;
3835
+ authParams: z.ZodObject<{
3836
+ client_id: z.ZodString;
3837
+ vendor_id: z.ZodOptional<z.ZodString>;
3838
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3839
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3840
+ redirect_uri: z.ZodOptional<z.ZodString>;
3841
+ audience: z.ZodOptional<z.ZodString>;
3842
+ state: z.ZodOptional<z.ZodString>;
3843
+ nonce: z.ZodOptional<z.ZodString>;
3844
+ scope: z.ZodOptional<z.ZodString>;
3845
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3846
+ code_challenge: z.ZodOptional<z.ZodString>;
3847
+ username: z.ZodOptional<z.ZodString>;
2599
3848
  }, "strip", z.ZodTypeAny, {
2600
- name: string;
2601
- version: string;
2602
- env?: {
2603
- node?: string | undefined;
2604
- } | undefined;
3849
+ client_id: string;
3850
+ username?: string | undefined;
3851
+ vendor_id?: string | undefined;
3852
+ response_type?: AuthorizationResponseType | undefined;
3853
+ response_mode?: AuthorizationResponseMode | undefined;
3854
+ redirect_uri?: string | undefined;
3855
+ audience?: string | undefined;
3856
+ state?: string | undefined;
3857
+ nonce?: string | undefined;
3858
+ scope?: string | undefined;
3859
+ code_challenge_method?: CodeChallengeMethod | undefined;
3860
+ code_challenge?: string | undefined;
2605
3861
  }, {
2606
- name: string;
2607
- version: string;
2608
- env?: {
2609
- node?: string | undefined;
2610
- } | undefined;
2611
- }>>;
3862
+ client_id: string;
3863
+ username?: string | undefined;
3864
+ vendor_id?: string | undefined;
3865
+ response_type?: AuthorizationResponseType | undefined;
3866
+ response_mode?: AuthorizationResponseMode | undefined;
3867
+ redirect_uri?: string | undefined;
3868
+ audience?: string | undefined;
3869
+ state?: string | undefined;
3870
+ nonce?: string | undefined;
3871
+ scope?: string | undefined;
3872
+ code_challenge_method?: CodeChallengeMethod | undefined;
3873
+ code_challenge?: string | undefined;
3874
+ }>;
3875
+ expires_at: z.ZodString;
3876
+ used_at: z.ZodOptional<z.ZodString>;
3877
+ user_id: z.ZodOptional<z.ZodString>;
3878
+ created_at: z.ZodString;
2612
3879
  }, "strip", z.ZodTypeAny, {
2613
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
2614
- date: string;
2615
- ip: string;
2616
- user_agent: string;
2617
- isMobile: boolean;
2618
- description?: string | undefined;
2619
- connection?: string | undefined;
3880
+ code: string;
3881
+ created_at: string;
3882
+ email: string;
3883
+ id: string;
3884
+ expires_at: string;
3885
+ authParams: {
3886
+ client_id: string;
3887
+ username?: string | undefined;
3888
+ vendor_id?: string | undefined;
3889
+ response_type?: AuthorizationResponseType | undefined;
3890
+ response_mode?: AuthorizationResponseMode | undefined;
3891
+ redirect_uri?: string | undefined;
3892
+ audience?: string | undefined;
3893
+ state?: string | undefined;
3894
+ nonce?: string | undefined;
3895
+ scope?: string | undefined;
3896
+ code_challenge_method?: CodeChallengeMethod | undefined;
3897
+ code_challenge?: string | undefined;
3898
+ };
3899
+ send: "code" | "link";
2620
3900
  user_id?: string | undefined;
2621
- client_id?: string | undefined;
2622
- audience?: string | undefined;
2623
- scope?: string[] | undefined;
2624
- log_id?: string | undefined;
2625
- _id?: string | undefined;
2626
- details?: any;
2627
- user_name?: string | undefined;
2628
- connection_id?: string | undefined;
2629
- client_name?: string | undefined;
2630
- strategy?: string | undefined;
2631
- strategy_type?: string | undefined;
2632
- hostname?: string | undefined;
2633
- auth0_client?: {
2634
- name: string;
2635
- version: string;
2636
- env?: {
2637
- node?: string | undefined;
2638
- } | undefined;
2639
- } | undefined;
3901
+ used_at?: string | undefined;
3902
+ ip?: string | undefined;
2640
3903
  }, {
2641
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
2642
- date: string;
2643
- ip: string;
2644
- user_agent: string;
2645
- isMobile: boolean;
2646
- description?: string | undefined;
2647
- connection?: string | undefined;
2648
- user_id?: string | undefined;
2649
- client_id?: string | undefined;
2650
- audience?: string | undefined;
2651
- scope?: string[] | undefined;
2652
- log_id?: string | undefined;
2653
- _id?: string | undefined;
2654
- details?: any;
2655
- user_name?: string | undefined;
2656
- connection_id?: string | undefined;
2657
- client_name?: string | undefined;
2658
- strategy?: string | undefined;
2659
- strategy_type?: string | undefined;
2660
- hostname?: string | undefined;
2661
- auth0_client?: {
2662
- name: string;
2663
- version: string;
2664
- env?: {
2665
- node?: string | undefined;
2666
- } | undefined;
2667
- } | undefined;
2668
- }>;
2669
- export type Log = z.infer<typeof logSchema>;
2670
- export type LogsResponse = Log & {
2671
- log_id: string;
2672
- _id: string;
2673
- };
2674
- export declare const profileDataSchema: z.ZodObject<{
2675
- email: z.ZodOptional<z.ZodString>;
2676
- email_verified: z.ZodOptional<z.ZodBoolean>;
2677
- name: z.ZodOptional<z.ZodString>;
2678
- username: z.ZodOptional<z.ZodString>;
2679
- given_name: z.ZodOptional<z.ZodString>;
2680
- phone_number: z.ZodOptional<z.ZodString>;
2681
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2682
- family_name: z.ZodOptional<z.ZodString>;
2683
- }, "strip", z.ZodAny, z.objectOutputType<{
2684
- email: z.ZodOptional<z.ZodString>;
2685
- email_verified: z.ZodOptional<z.ZodBoolean>;
2686
- name: z.ZodOptional<z.ZodString>;
2687
- username: z.ZodOptional<z.ZodString>;
2688
- given_name: z.ZodOptional<z.ZodString>;
2689
- phone_number: z.ZodOptional<z.ZodString>;
2690
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2691
- family_name: z.ZodOptional<z.ZodString>;
2692
- }, z.ZodAny, "strip">, z.objectInputType<{
2693
- email: z.ZodOptional<z.ZodString>;
2694
- email_verified: z.ZodOptional<z.ZodBoolean>;
2695
- name: z.ZodOptional<z.ZodString>;
2696
- username: z.ZodOptional<z.ZodString>;
2697
- given_name: z.ZodOptional<z.ZodString>;
2698
- phone_number: z.ZodOptional<z.ZodString>;
2699
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2700
- family_name: z.ZodOptional<z.ZodString>;
2701
- }, z.ZodAny, "strip">>;
2702
- export declare const identitySchema: z.ZodObject<{
2703
- connection: z.ZodString;
2704
- user_id: z.ZodString;
2705
- provider: z.ZodString;
2706
- isSocial: z.ZodBoolean;
2707
- access_token: z.ZodOptional<z.ZodString>;
2708
- access_token_secret: z.ZodOptional<z.ZodString>;
2709
- refresh_token: z.ZodOptional<z.ZodString>;
2710
- profileData: z.ZodOptional<z.ZodObject<{
2711
- email: z.ZodOptional<z.ZodString>;
2712
- email_verified: z.ZodOptional<z.ZodBoolean>;
2713
- name: z.ZodOptional<z.ZodString>;
2714
- username: z.ZodOptional<z.ZodString>;
2715
- given_name: z.ZodOptional<z.ZodString>;
2716
- phone_number: z.ZodOptional<z.ZodString>;
2717
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2718
- family_name: z.ZodOptional<z.ZodString>;
2719
- }, "strip", z.ZodAny, z.objectOutputType<{
2720
- email: z.ZodOptional<z.ZodString>;
2721
- email_verified: z.ZodOptional<z.ZodBoolean>;
2722
- name: z.ZodOptional<z.ZodString>;
2723
- username: z.ZodOptional<z.ZodString>;
2724
- given_name: z.ZodOptional<z.ZodString>;
2725
- phone_number: z.ZodOptional<z.ZodString>;
2726
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2727
- family_name: z.ZodOptional<z.ZodString>;
2728
- }, z.ZodAny, "strip">, z.objectInputType<{
2729
- email: z.ZodOptional<z.ZodString>;
2730
- email_verified: z.ZodOptional<z.ZodBoolean>;
2731
- name: z.ZodOptional<z.ZodString>;
3904
+ code: string;
3905
+ created_at: string;
3906
+ email: string;
3907
+ id: string;
3908
+ expires_at: string;
3909
+ authParams: {
3910
+ client_id: string;
3911
+ username?: string | undefined;
3912
+ vendor_id?: string | undefined;
3913
+ response_type?: AuthorizationResponseType | undefined;
3914
+ response_mode?: AuthorizationResponseMode | undefined;
3915
+ redirect_uri?: string | undefined;
3916
+ audience?: string | undefined;
3917
+ state?: string | undefined;
3918
+ nonce?: string | undefined;
3919
+ scope?: string | undefined;
3920
+ code_challenge_method?: CodeChallengeMethod | undefined;
3921
+ code_challenge?: string | undefined;
3922
+ };
3923
+ send: "code" | "link";
3924
+ user_id?: string | undefined;
3925
+ used_at?: string | undefined;
3926
+ ip?: string | undefined;
3927
+ }>;
3928
+ export type OTP = z.infer<typeof otpSchema>;
3929
+ export declare const authenticationCodeInsertSchema: z.ZodObject<{
3930
+ authParams: z.ZodObject<{
3931
+ client_id: z.ZodString;
3932
+ vendor_id: z.ZodOptional<z.ZodString>;
3933
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3934
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3935
+ redirect_uri: z.ZodOptional<z.ZodString>;
3936
+ audience: z.ZodOptional<z.ZodString>;
3937
+ state: z.ZodOptional<z.ZodString>;
3938
+ nonce: z.ZodOptional<z.ZodString>;
3939
+ scope: z.ZodOptional<z.ZodString>;
3940
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3941
+ code_challenge: z.ZodOptional<z.ZodString>;
2732
3942
  username: z.ZodOptional<z.ZodString>;
2733
- given_name: z.ZodOptional<z.ZodString>;
2734
- phone_number: z.ZodOptional<z.ZodString>;
2735
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2736
- family_name: z.ZodOptional<z.ZodString>;
2737
- }, z.ZodAny, "strip">>>;
3943
+ }, "strip", z.ZodTypeAny, {
3944
+ client_id: string;
3945
+ username?: string | undefined;
3946
+ vendor_id?: string | undefined;
3947
+ response_type?: AuthorizationResponseType | undefined;
3948
+ response_mode?: AuthorizationResponseMode | undefined;
3949
+ redirect_uri?: string | undefined;
3950
+ audience?: string | undefined;
3951
+ state?: string | undefined;
3952
+ nonce?: string | undefined;
3953
+ scope?: string | undefined;
3954
+ code_challenge_method?: CodeChallengeMethod | undefined;
3955
+ code_challenge?: string | undefined;
3956
+ }, {
3957
+ client_id: string;
3958
+ username?: string | undefined;
3959
+ vendor_id?: string | undefined;
3960
+ response_type?: AuthorizationResponseType | undefined;
3961
+ response_mode?: AuthorizationResponseMode | undefined;
3962
+ redirect_uri?: string | undefined;
3963
+ audience?: string | undefined;
3964
+ state?: string | undefined;
3965
+ nonce?: string | undefined;
3966
+ scope?: string | undefined;
3967
+ code_challenge_method?: CodeChallengeMethod | undefined;
3968
+ code_challenge?: string | undefined;
3969
+ }>;
3970
+ code: z.ZodString;
3971
+ user_id: z.ZodString;
3972
+ created_at: z.ZodString;
3973
+ expires_at: z.ZodString;
3974
+ used_at: z.ZodOptional<z.ZodString>;
2738
3975
  }, "strip", z.ZodTypeAny, {
2739
- connection: string;
3976
+ code: string;
3977
+ created_at: string;
2740
3978
  user_id: string;
2741
- provider: string;
2742
- isSocial: boolean;
2743
- access_token?: string | undefined;
2744
- access_token_secret?: string | undefined;
2745
- refresh_token?: string | undefined;
2746
- profileData?: z.objectOutputType<{
2747
- email: z.ZodOptional<z.ZodString>;
2748
- email_verified: z.ZodOptional<z.ZodBoolean>;
2749
- name: z.ZodOptional<z.ZodString>;
2750
- username: z.ZodOptional<z.ZodString>;
2751
- given_name: z.ZodOptional<z.ZodString>;
2752
- phone_number: z.ZodOptional<z.ZodString>;
2753
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2754
- family_name: z.ZodOptional<z.ZodString>;
2755
- }, z.ZodAny, "strip"> | undefined;
3979
+ expires_at: string;
3980
+ authParams: {
3981
+ client_id: string;
3982
+ username?: string | undefined;
3983
+ vendor_id?: string | undefined;
3984
+ response_type?: AuthorizationResponseType | undefined;
3985
+ response_mode?: AuthorizationResponseMode | undefined;
3986
+ redirect_uri?: string | undefined;
3987
+ audience?: string | undefined;
3988
+ state?: string | undefined;
3989
+ nonce?: string | undefined;
3990
+ scope?: string | undefined;
3991
+ code_challenge_method?: CodeChallengeMethod | undefined;
3992
+ code_challenge?: string | undefined;
3993
+ };
3994
+ used_at?: string | undefined;
2756
3995
  }, {
2757
- connection: string;
3996
+ code: string;
3997
+ created_at: string;
2758
3998
  user_id: string;
2759
- provider: string;
2760
- isSocial: boolean;
2761
- access_token?: string | undefined;
2762
- access_token_secret?: string | undefined;
2763
- refresh_token?: string | undefined;
2764
- profileData?: z.objectInputType<{
2765
- email: z.ZodOptional<z.ZodString>;
2766
- email_verified: z.ZodOptional<z.ZodBoolean>;
2767
- name: z.ZodOptional<z.ZodString>;
3999
+ expires_at: string;
4000
+ authParams: {
4001
+ client_id: string;
4002
+ username?: string | undefined;
4003
+ vendor_id?: string | undefined;
4004
+ response_type?: AuthorizationResponseType | undefined;
4005
+ response_mode?: AuthorizationResponseMode | undefined;
4006
+ redirect_uri?: string | undefined;
4007
+ audience?: string | undefined;
4008
+ state?: string | undefined;
4009
+ nonce?: string | undefined;
4010
+ scope?: string | undefined;
4011
+ code_challenge_method?: CodeChallengeMethod | undefined;
4012
+ code_challenge?: string | undefined;
4013
+ };
4014
+ used_at?: string | undefined;
4015
+ }>;
4016
+ export type AuthenticationCodeInsert = z.infer<typeof authenticationCodeInsertSchema>;
4017
+ export declare const authenticationCodeSchema: z.ZodObject<{
4018
+ created_at: z.ZodString;
4019
+ authParams: z.ZodObject<{
4020
+ client_id: z.ZodString;
4021
+ vendor_id: z.ZodOptional<z.ZodString>;
4022
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
4023
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
4024
+ redirect_uri: z.ZodOptional<z.ZodString>;
4025
+ audience: z.ZodOptional<z.ZodString>;
4026
+ state: z.ZodOptional<z.ZodString>;
4027
+ nonce: z.ZodOptional<z.ZodString>;
4028
+ scope: z.ZodOptional<z.ZodString>;
4029
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
4030
+ code_challenge: z.ZodOptional<z.ZodString>;
2768
4031
  username: z.ZodOptional<z.ZodString>;
2769
- given_name: z.ZodOptional<z.ZodString>;
2770
- phone_number: z.ZodOptional<z.ZodString>;
2771
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2772
- family_name: z.ZodOptional<z.ZodString>;
2773
- }, z.ZodAny, "strip"> | undefined;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ client_id: string;
4034
+ username?: string | undefined;
4035
+ vendor_id?: string | undefined;
4036
+ response_type?: AuthorizationResponseType | undefined;
4037
+ response_mode?: AuthorizationResponseMode | undefined;
4038
+ redirect_uri?: string | undefined;
4039
+ audience?: string | undefined;
4040
+ state?: string | undefined;
4041
+ nonce?: string | undefined;
4042
+ scope?: string | undefined;
4043
+ code_challenge_method?: CodeChallengeMethod | undefined;
4044
+ code_challenge?: string | undefined;
4045
+ }, {
4046
+ client_id: string;
4047
+ username?: string | undefined;
4048
+ vendor_id?: string | undefined;
4049
+ response_type?: AuthorizationResponseType | undefined;
4050
+ response_mode?: AuthorizationResponseMode | undefined;
4051
+ redirect_uri?: string | undefined;
4052
+ audience?: string | undefined;
4053
+ state?: string | undefined;
4054
+ nonce?: string | undefined;
4055
+ scope?: string | undefined;
4056
+ code_challenge_method?: CodeChallengeMethod | undefined;
4057
+ code_challenge?: string | undefined;
4058
+ }>;
4059
+ code: z.ZodString;
4060
+ user_id: z.ZodString;
4061
+ expires_at: z.ZodString;
4062
+ used_at: z.ZodOptional<z.ZodString>;
4063
+ }, "strip", z.ZodTypeAny, {
4064
+ code: string;
4065
+ created_at: string;
4066
+ user_id: string;
4067
+ expires_at: string;
4068
+ authParams: {
4069
+ client_id: string;
4070
+ username?: string | undefined;
4071
+ vendor_id?: string | undefined;
4072
+ response_type?: AuthorizationResponseType | undefined;
4073
+ response_mode?: AuthorizationResponseMode | undefined;
4074
+ redirect_uri?: string | undefined;
4075
+ audience?: string | undefined;
4076
+ state?: string | undefined;
4077
+ nonce?: string | undefined;
4078
+ scope?: string | undefined;
4079
+ code_challenge_method?: CodeChallengeMethod | undefined;
4080
+ code_challenge?: string | undefined;
4081
+ };
4082
+ used_at?: string | undefined;
4083
+ }, {
4084
+ code: string;
4085
+ created_at: string;
4086
+ user_id: string;
4087
+ expires_at: string;
4088
+ authParams: {
4089
+ client_id: string;
4090
+ username?: string | undefined;
4091
+ vendor_id?: string | undefined;
4092
+ response_type?: AuthorizationResponseType | undefined;
4093
+ response_mode?: AuthorizationResponseMode | undefined;
4094
+ redirect_uri?: string | undefined;
4095
+ audience?: string | undefined;
4096
+ state?: string | undefined;
4097
+ nonce?: string | undefined;
4098
+ scope?: string | undefined;
4099
+ code_challenge_method?: CodeChallengeMethod | undefined;
4100
+ code_challenge?: string | undefined;
4101
+ };
4102
+ used_at?: string | undefined;
2774
4103
  }>;
2775
- export type Identity = z.infer<typeof identitySchema>;
4104
+ export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
2776
4105
  export declare function parseUserId(user_id: string): {
2777
4106
  connection: string;
2778
4107
  id: string;
2779
4108
  };
4109
+ export interface ListParams {
4110
+ page: number;
4111
+ per_page: number;
4112
+ include_totals: boolean;
4113
+ q?: string;
4114
+ sort?: {
4115
+ sort_by: string;
4116
+ sort_order: "asc" | "desc";
4117
+ };
4118
+ }
4119
+ export interface ListCodesResponse extends Totals {
4120
+ codes: Code[];
4121
+ }
2780
4122
  export interface CodesAdapter {
2781
- create: (tenant_id: string, authCode: Code) => Promise<void>;
2782
- list: (tenant_id: string, user_id: string) => Promise<Code[]>;
4123
+ create: (tenant_id: string, authCode: Code) => Promise<Code>;
4124
+ get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
4125
+ list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
4126
+ remove: (tenant_id: string, code: string) => Promise<boolean>;
2783
4127
  }
2784
4128
  export interface OTPAdapter {
2785
4129
  create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
@@ -2791,16 +4135,6 @@ export interface PasswordsAdapter {
2791
4135
  update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
2792
4136
  get: (tenant_id: string, user_id: string) => Promise<Password>;
2793
4137
  }
2794
- export interface ListParams {
2795
- page: number;
2796
- per_page: number;
2797
- include_totals: boolean;
2798
- q?: string;
2799
- sort?: {
2800
- sort_by: string;
2801
- sort_order: "asc" | "desc";
2802
- };
2803
- }
2804
4138
  export interface ListSesssionsResponse extends Totals {
2805
4139
  sessions: Session[];
2806
4140
  }
@@ -2922,24 +4256,38 @@ export interface HooksAdapter {
2922
4256
  export interface ClientsAdapter {
2923
4257
  get: (id: string) => Promise<PartialClient | null>;
2924
4258
  }
4259
+ export interface ThemesAdapter {
4260
+ create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
4261
+ remove: (tenant_id: string, themeId: string) => Promise<boolean>;
4262
+ get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
4263
+ update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
4264
+ }
4265
+ export interface LoginsAdapter {
4266
+ create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
4267
+ update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
4268
+ get: (tenant_id: string, login_id: string) => Promise<Login | null>;
4269
+ remove: (tenant_id: string, login_id: string) => Promise<boolean>;
4270
+ }
2925
4271
  export interface DataAdapters {
2926
4272
  applications: ApplicationsAdapter;
4273
+ authenticationCodes: AuthenticationCodesAdapter;
2927
4274
  branding: BrandingAdapter;
2928
- codes: CodesAdapter;
2929
4275
  clients: ClientsAdapter;
4276
+ codes: CodesAdapter;
4277
+ connections: ConnectionsAdapter;
4278
+ domains: DomainsAdapter;
4279
+ hooks: HooksAdapter;
4280
+ keys: KeysAdapter;
4281
+ login: LoginsAdapter;
4282
+ logs: LogsDataAdapter;
2930
4283
  OTP: OTPAdapter;
2931
4284
  passwords: PasswordsAdapter;
2932
4285
  sessions: SessionsAdapter;
2933
4286
  tenants: TenantsDataAdapter;
4287
+ themes: ThemesAdapter;
2934
4288
  tickets: TicketsAdapter;
2935
4289
  universalLoginSessions: UniversalLoginSessionsAdapter;
2936
4290
  users: UserDataAdapter;
2937
- logs: LogsDataAdapter;
2938
- connections: ConnectionsAdapter;
2939
- domains: DomainsAdapter;
2940
- keys: KeysAdapter;
2941
- hooks: HooksAdapter;
2942
- authenticationCodes: AuthenticationCodesAdapter;
2943
4291
  }
2944
4292
 
2945
4293
  export {