@dfns/sdk 0.5.6-alpha.9 → 0.5.7

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.
@@ -1688,6 +1688,7 @@ export type RecoverBody = {
1688
1688
  clientData: string;
1689
1689
  attestationData: string;
1690
1690
  };
1691
+ credentialName?: string | undefined;
1691
1692
  } | {
1692
1693
  credentialKind: "Key";
1693
1694
  credentialInfo: {
@@ -1695,11 +1696,13 @@ export type RecoverBody = {
1695
1696
  clientData: string;
1696
1697
  attestationData: string;
1697
1698
  };
1699
+ credentialName?: string | undefined;
1698
1700
  } | {
1699
1701
  credentialKind: "Password";
1700
1702
  credentialInfo: {
1701
1703
  password: string;
1702
1704
  };
1705
+ credentialName?: string | undefined;
1703
1706
  } | {
1704
1707
  credentialKind: "PasswordProtectedKey";
1705
1708
  credentialInfo: {
@@ -1708,6 +1711,7 @@ export type RecoverBody = {
1708
1711
  attestationData: string;
1709
1712
  };
1710
1713
  encryptedPrivateKey: string;
1714
+ credentialName?: string | undefined;
1711
1715
  };
1712
1716
  secondFactorCredential?: ({
1713
1717
  credentialKind: "Fido2";
@@ -1716,6 +1720,7 @@ export type RecoverBody = {
1716
1720
  clientData: string;
1717
1721
  attestationData: string;
1718
1722
  };
1723
+ credentialName?: string | undefined;
1719
1724
  } | {
1720
1725
  credentialKind: "Key";
1721
1726
  credentialInfo: {
@@ -1723,11 +1728,13 @@ export type RecoverBody = {
1723
1728
  clientData: string;
1724
1729
  attestationData: string;
1725
1730
  };
1731
+ credentialName?: string | undefined;
1726
1732
  } | {
1727
1733
  credentialKind: "Totp";
1728
1734
  credentialInfo: {
1729
1735
  otpCode: string;
1730
1736
  };
1737
+ credentialName?: string | undefined;
1731
1738
  } | {
1732
1739
  credentialKind: "PasswordProtectedKey";
1733
1740
  credentialInfo: {
@@ -1736,6 +1743,7 @@ export type RecoverBody = {
1736
1743
  attestationData: string;
1737
1744
  };
1738
1745
  encryptedPrivateKey: string;
1746
+ credentialName?: string | undefined;
1739
1747
  }) | undefined;
1740
1748
  recoveryCredential?: {
1741
1749
  credentialKind: "RecoveryKey";
@@ -1745,6 +1753,7 @@ export type RecoverBody = {
1745
1753
  attestationData: string;
1746
1754
  };
1747
1755
  encryptedPrivateKey?: string | undefined;
1756
+ credentialName?: string | undefined;
1748
1757
  } | undefined;
1749
1758
  };
1750
1759
  };
@@ -1813,6 +1822,7 @@ export type RegisterBody = {
1813
1822
  clientData: string;
1814
1823
  attestationData: string;
1815
1824
  };
1825
+ credentialName?: string | undefined;
1816
1826
  } | {
1817
1827
  credentialKind: "Key";
1818
1828
  credentialInfo: {
@@ -1820,11 +1830,13 @@ export type RegisterBody = {
1820
1830
  clientData: string;
1821
1831
  attestationData: string;
1822
1832
  };
1833
+ credentialName?: string | undefined;
1823
1834
  } | {
1824
1835
  credentialKind: "Password";
1825
1836
  credentialInfo: {
1826
1837
  password: string;
1827
1838
  };
1839
+ credentialName?: string | undefined;
1828
1840
  } | {
1829
1841
  credentialKind: "PasswordProtectedKey";
1830
1842
  credentialInfo: {
@@ -1833,6 +1845,7 @@ export type RegisterBody = {
1833
1845
  attestationData: string;
1834
1846
  };
1835
1847
  encryptedPrivateKey: string;
1848
+ credentialName?: string | undefined;
1836
1849
  };
1837
1850
  secondFactorCredential?: ({
1838
1851
  credentialKind: "Fido2";
@@ -1841,6 +1854,7 @@ export type RegisterBody = {
1841
1854
  clientData: string;
1842
1855
  attestationData: string;
1843
1856
  };
1857
+ credentialName?: string | undefined;
1844
1858
  } | {
1845
1859
  credentialKind: "Key";
1846
1860
  credentialInfo: {
@@ -1848,11 +1862,13 @@ export type RegisterBody = {
1848
1862
  clientData: string;
1849
1863
  attestationData: string;
1850
1864
  };
1865
+ credentialName?: string | undefined;
1851
1866
  } | {
1852
1867
  credentialKind: "Totp";
1853
1868
  credentialInfo: {
1854
1869
  otpCode: string;
1855
1870
  };
1871
+ credentialName?: string | undefined;
1856
1872
  } | {
1857
1873
  credentialKind: "PasswordProtectedKey";
1858
1874
  credentialInfo: {
@@ -1861,6 +1877,7 @@ export type RegisterBody = {
1861
1877
  attestationData: string;
1862
1878
  };
1863
1879
  encryptedPrivateKey: string;
1880
+ credentialName?: string | undefined;
1864
1881
  }) | undefined;
1865
1882
  recoveryCredential?: {
1866
1883
  credentialKind: "RecoveryKey";
@@ -1870,6 +1887,7 @@ export type RegisterBody = {
1870
1887
  attestationData: string;
1871
1888
  };
1872
1889
  encryptedPrivateKey?: string | undefined;
1890
+ credentialName?: string | undefined;
1873
1891
  } | undefined;
1874
1892
  };
1875
1893
  export type RegisterResponse = {
@@ -1895,6 +1913,7 @@ export type RegisterEndUserBody = {
1895
1913
  clientData: string;
1896
1914
  attestationData: string;
1897
1915
  };
1916
+ credentialName?: string | undefined;
1898
1917
  } | {
1899
1918
  credentialKind: "Key";
1900
1919
  credentialInfo: {
@@ -1902,11 +1921,13 @@ export type RegisterEndUserBody = {
1902
1921
  clientData: string;
1903
1922
  attestationData: string;
1904
1923
  };
1924
+ credentialName?: string | undefined;
1905
1925
  } | {
1906
1926
  credentialKind: "Password";
1907
1927
  credentialInfo: {
1908
1928
  password: string;
1909
1929
  };
1930
+ credentialName?: string | undefined;
1910
1931
  } | {
1911
1932
  credentialKind: "PasswordProtectedKey";
1912
1933
  credentialInfo: {
@@ -1915,6 +1936,7 @@ export type RegisterEndUserBody = {
1915
1936
  attestationData: string;
1916
1937
  };
1917
1938
  encryptedPrivateKey: string;
1939
+ credentialName?: string | undefined;
1918
1940
  };
1919
1941
  secondFactorCredential?: ({
1920
1942
  credentialKind: "Fido2";
@@ -1923,6 +1945,7 @@ export type RegisterEndUserBody = {
1923
1945
  clientData: string;
1924
1946
  attestationData: string;
1925
1947
  };
1948
+ credentialName?: string | undefined;
1926
1949
  } | {
1927
1950
  credentialKind: "Key";
1928
1951
  credentialInfo: {
@@ -1930,11 +1953,13 @@ export type RegisterEndUserBody = {
1930
1953
  clientData: string;
1931
1954
  attestationData: string;
1932
1955
  };
1956
+ credentialName?: string | undefined;
1933
1957
  } | {
1934
1958
  credentialKind: "Totp";
1935
1959
  credentialInfo: {
1936
1960
  otpCode: string;
1937
1961
  };
1962
+ credentialName?: string | undefined;
1938
1963
  } | {
1939
1964
  credentialKind: "PasswordProtectedKey";
1940
1965
  credentialInfo: {
@@ -1943,6 +1968,7 @@ export type RegisterEndUserBody = {
1943
1968
  attestationData: string;
1944
1969
  };
1945
1970
  encryptedPrivateKey: string;
1971
+ credentialName?: string | undefined;
1946
1972
  }) | undefined;
1947
1973
  recoveryCredential?: {
1948
1974
  credentialKind: "RecoveryKey";
@@ -1952,6 +1978,7 @@ export type RegisterEndUserBody = {
1952
1978
  attestationData: string;
1953
1979
  };
1954
1980
  encryptedPrivateKey?: string | undefined;
1981
+ credentialName?: string | undefined;
1955
1982
  } | undefined;
1956
1983
  wallets: {
1957
1984
  network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.5.6-alpha.9",
3
+ "version": "0.5.7",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6",