@coinbase/cdp-core 0.0.98 → 0.0.99
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.
- package/dist/esm/index.native.js +125 -119
- package/dist/esm/index.native100.js +49 -20
- package/dist/esm/index.native101.js +76 -68
- package/dist/esm/index.native102.js +25 -8
- package/dist/esm/index.native103.js +157 -92
- package/dist/esm/index.native104.js +30 -119
- package/dist/esm/index.native105.js +18 -64
- package/dist/esm/index.native106.js +72 -26
- package/dist/esm/index.native107.js +9 -24
- package/dist/esm/index.native108.js +95 -24
- package/dist/esm/index.native109.js +113 -41
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native110.js +68 -47
- package/dist/esm/index.native111.js +26 -20
- package/dist/esm/index.native112.js +24 -153
- package/dist/esm/index.native113.js +22 -375
- package/dist/esm/index.native114.js +64 -28
- package/dist/esm/index.native115.js +47 -29
- package/dist/esm/index.native116.js +23 -2
- package/dist/esm/index.native117.js +150 -63
- package/dist/esm/index.native118.js +87 -362
- package/dist/esm/index.native119.js +371 -84
- package/dist/esm/index.native12.js +6 -6
- package/dist/esm/index.native120.js +2 -19
- package/dist/esm/index.native121.js +63 -20
- package/dist/esm/index.native122.js +351 -37
- package/dist/esm/index.native123.js +16 -4
- package/dist/esm/index.native124.js +21 -11
- package/dist/esm/index.native125.js +50 -11
- package/dist/esm/index.native126.js +28 -944
- package/dist/esm/index.native127.js +29 -2
- package/dist/esm/index.native128.js +944 -49
- package/dist/esm/index.native129.js +2 -27
- package/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native130.js +49 -13
- package/dist/esm/index.native131.js +26 -27
- package/dist/esm/index.native132.js +4 -7
- package/dist/esm/index.native133.js +54 -3
- package/dist/esm/index.native134.js +10 -27
- package/dist/esm/index.native135.js +2 -9
- package/dist/esm/index.native136.js +45 -8
- package/dist/esm/index.native137.js +13 -79
- package/dist/esm/index.native138.js +10 -25
- package/dist/esm/index.native139.js +11 -3
- package/dist/esm/index.native14.js +1 -1
- package/dist/esm/index.native140.js +5 -15
- package/dist/esm/index.native141.js +47 -4
- package/dist/esm/index.native142.js +35 -14
- package/dist/esm/index.native143.js +65 -17
- package/dist/esm/index.native144.js +2 -61
- package/dist/esm/index.native145.js +2 -18
- package/dist/esm/index.native146.js +13 -23
- package/dist/esm/index.native147.js +27 -8
- package/dist/esm/index.native148.js +7 -41
- package/dist/esm/index.native149.js +3 -7
- package/dist/esm/index.native15.js +3 -3
- package/dist/esm/index.native150.js +23 -16
- package/dist/esm/index.native151.js +9 -35
- package/dist/esm/index.native152.js +7 -67
- package/dist/esm/index.native153.js +79 -54
- package/dist/esm/index.native154.js +27 -10
- package/dist/esm/index.native155.js +4 -2
- package/dist/esm/index.native156.js +15 -45
- package/dist/esm/index.native157.js +4 -13
- package/dist/esm/index.native158.js +14 -5
- package/dist/esm/index.native159.js +16 -44
- package/dist/esm/index.native16.js +1 -1
- package/dist/esm/index.native160.js +61 -2
- package/dist/esm/index.native161.js +18 -2
- package/dist/esm/index.native162.js +23 -13
- package/dist/esm/index.native163.js +8 -55
- package/dist/esm/index.native164.js +41 -6
- package/dist/esm/index.native165.js +7 -21
- package/dist/esm/index.native166.js +19 -16
- package/dist/esm/index.native167.js +13 -45
- package/dist/esm/index.native168.js +55 -3
- package/dist/esm/index.native169.js +6 -3
- package/dist/esm/index.native17.js +1 -1
- package/dist/esm/index.native170.js +20 -33
- package/dist/esm/index.native171.js +16 -11
- package/dist/esm/index.native172.js +45 -4
- package/dist/esm/index.native173.js +3 -28
- package/dist/esm/index.native174.js +3 -6
- package/dist/esm/index.native175.js +31 -29
- package/dist/esm/index.native176.js +9 -9
- package/dist/esm/index.native177.js +4 -55
- package/dist/esm/index.native178.js +25 -39
- package/dist/esm/index.native179.js +6 -127
- package/dist/esm/index.native18.js +1 -1
- package/dist/esm/index.native180.js +30 -102
- package/dist/esm/index.native181.js +12 -6
- package/dist/esm/index.native182.js +56 -3
- package/dist/esm/index.native183.js +38 -74
- package/dist/esm/index.native184.js +128 -2
- package/dist/esm/index.native185.js +105 -2
- package/dist/esm/index.native186.js +6 -37
- package/dist/esm/index.native187.js +3 -7
- package/dist/esm/index.native188.js +76 -32
- package/dist/esm/index.native189.js +2 -15
- package/dist/esm/index.native19.js +3 -3
- package/dist/esm/index.native190.js +2 -35
- package/dist/esm/index.native191.js +36 -17
- package/dist/esm/index.native192.js +6 -8
- package/dist/esm/index.native193.js +33 -9
- package/dist/esm/index.native194.js +14 -11
- package/dist/esm/index.native195.js +33 -12
- package/dist/esm/index.native196.js +18 -5
- package/dist/esm/index.native197.js +9 -5
- package/dist/esm/index.native198.js +10 -10
- package/dist/esm/index.native199.js +12 -2
- package/dist/esm/index.native2.js +2 -2
- package/dist/esm/index.native20.js +7 -7
- package/dist/esm/index.native200.js +13 -108
- package/dist/esm/index.native201.js +6 -2
- package/dist/esm/index.native202.js +5 -104
- package/dist/esm/index.native203.js +10 -78
- package/dist/esm/index.native204.js +2 -79
- package/dist/esm/index.native205.js +108 -20
- package/dist/esm/index.native206.js +2 -10
- package/dist/esm/index.native207.js +20 -19
- package/dist/esm/index.native208.js +9 -93
- package/dist/esm/index.native209.js +18 -19
- package/dist/esm/index.native21.js +1 -1
- package/dist/esm/index.native210.js +81 -105
- package/dist/esm/index.native211.js +20 -46
- package/dist/esm/index.native212.js +118 -8
- package/dist/esm/index.native213.js +104 -2
- package/dist/esm/index.native214.js +71 -361
- package/dist/esm/index.native215.js +78 -826
- package/dist/esm/index.native216.js +7 -38
- package/dist/esm/index.native218.js +366 -67
- package/dist/esm/index.native219.js +826 -34
- package/dist/esm/index.native22.js +1 -1
- package/dist/esm/index.native220.js +38 -14
- package/dist/esm/index.native221.js +2 -21
- package/dist/esm/index.native222.js +70 -2
- package/dist/esm/index.native223.js +34 -19
- package/dist/esm/index.native224.js +13 -31
- package/dist/esm/index.native225.js +20 -6
- package/dist/esm/index.native226.js +2 -18
- package/dist/esm/index.native227.js +19 -27
- package/dist/esm/index.native228.js +32 -7
- package/dist/esm/index.native229.js +7 -11
- package/dist/esm/index.native23.js +1 -1
- package/dist/esm/index.native230.js +3 -12
- package/dist/esm/index.native231.js +45 -8
- package/dist/esm/index.native232.js +15 -14
- package/dist/esm/index.native233.js +25 -78
- package/dist/esm/index.native234.js +8 -4
- package/dist/esm/index.native235.js +11 -2
- package/dist/esm/index.native236.js +13 -2
- package/dist/esm/index.native237.js +10 -2
- package/dist/esm/index.native238.js +16 -14
- package/dist/esm/index.native239.js +81 -5
- package/dist/esm/index.native24.js +1 -1
- package/dist/esm/index.native240.js +2 -79
- package/dist/esm/index.native241.js +4 -0
- package/dist/esm/index.native242.js +4 -0
- package/dist/esm/index.native243.js +7 -0
- package/dist/esm/index.native244.js +81 -0
- package/dist/esm/index.native245.js +17 -0
- package/dist/esm/index.native25.js +1 -1
- package/dist/esm/index.native26.js +1 -1
- package/dist/esm/index.native27.js +1 -1
- package/dist/esm/index.native28.js +5 -5
- package/dist/esm/index.native29.js +6 -6
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +5 -5
- package/dist/esm/index.native31.js +5 -5
- package/dist/esm/index.native32.js +5 -5
- package/dist/esm/index.native33.js +5 -5
- package/dist/esm/index.native34.js +6 -6
- package/dist/esm/index.native35.js +5 -5
- package/dist/esm/index.native36.js +5 -5
- package/dist/esm/index.native37.js +2 -2
- package/dist/esm/index.native38.js +5 -5
- package/dist/esm/index.native39.js +5 -5
- package/dist/esm/index.native4.js +2 -2
- package/dist/esm/index.native40.js +6 -6
- package/dist/esm/index.native41.js +2 -2
- package/dist/esm/index.native42.js +5 -5
- package/dist/esm/index.native43.js +1 -1
- package/dist/esm/index.native44.js +2 -2
- package/dist/esm/index.native45.js +1 -1
- package/dist/esm/index.native46.js +1 -1
- package/dist/esm/index.native47.js +1 -1
- package/dist/esm/index.native48.js +3 -3
- package/dist/esm/index.native49.js +1 -1
- package/dist/esm/index.native5.js +2 -2
- package/dist/esm/index.native50.js +4 -4
- package/dist/esm/index.native51.js +4 -4
- package/dist/esm/index.native52.js +3 -3
- package/dist/esm/index.native53.js +2 -2
- package/dist/esm/index.native55.js +4 -4
- package/dist/esm/index.native56.js +3 -3
- package/dist/esm/index.native57.js +4 -4
- package/dist/esm/index.native58.js +5 -5
- package/dist/esm/index.native59.js +5 -5
- package/dist/esm/index.native6.js +1 -1
- package/dist/esm/index.native60.js +5 -5
- package/dist/esm/index.native62.js +47 -19
- package/dist/esm/index.native63.js +84 -10
- package/dist/esm/index.native64.js +20 -36
- package/dist/esm/index.native65.js +10 -30
- package/dist/esm/index.native66.js +36 -65
- package/dist/esm/index.native67.js +26 -20
- package/dist/esm/index.native68.js +63 -15
- package/dist/esm/index.native69.js +23 -22
- package/dist/esm/index.native7.js +2 -2
- package/dist/esm/index.native70.js +15 -6
- package/dist/esm/index.native71.js +22 -46
- package/dist/esm/index.native72.js +7 -19
- package/dist/esm/index.native73.js +47 -48
- package/dist/esm/index.native74.js +17 -36
- package/dist/esm/index.native75.js +45 -310
- package/dist/esm/index.native76.js +37 -17
- package/dist/esm/index.native77.js +323 -125
- package/dist/esm/index.native78.js +13 -65
- package/dist/esm/index.native79.js +129 -4
- package/dist/esm/index.native80.js +86 -54
- package/dist/esm/index.native81.js +5 -154
- package/dist/esm/index.native82.js +47 -34
- package/dist/esm/index.native83.js +153 -6
- package/dist/esm/index.native84.js +41 -8
- package/dist/esm/index.native85.js +7 -7
- package/dist/esm/index.native86.js +7 -30
- package/dist/esm/index.native87.js +8 -17
- package/dist/esm/index.native88.js +32 -42
- package/dist/esm/index.native89.js +18 -3
- package/dist/esm/index.native90.js +42 -44
- package/dist/esm/index.native91.js +3 -24
- package/dist/esm/index.native92.js +43 -8
- package/dist/esm/index.native93.js +22 -27
- package/dist/esm/index.native94.js +8 -40
- package/dist/esm/index.native95.js +24 -48
- package/dist/esm/index.native96.js +21 -80
- package/dist/esm/index.native97.js +15 -24
- package/dist/esm/index.native98.js +27 -158
- package/dist/esm/index.native99.js +39 -46
- package/dist/esm/index.web.js +133 -127
- package/dist/esm/index.web10.js +1 -1
- package/dist/esm/index.web100.js +157 -93
- package/dist/esm/index.web101.js +30 -119
- package/dist/esm/index.web102.js +24 -65
- package/dist/esm/index.web103.js +72 -26
- package/dist/esm/index.web104.js +9 -24
- package/dist/esm/index.web105.js +96 -24
- package/dist/esm/index.web106.js +113 -41
- package/dist/esm/index.web107.js +69 -47
- package/dist/esm/index.web108.js +26 -20
- package/dist/esm/index.web109.js +24 -153
- package/dist/esm/index.web11.js +1 -1
- package/dist/esm/index.web110.js +24 -17
- package/dist/esm/index.web111.js +63 -21
- package/dist/esm/index.web112.js +47 -51
- package/dist/esm/index.web113.js +20 -376
- package/dist/esm/index.web114.js +152 -28
- package/dist/esm/index.web115.js +374 -26
- package/dist/esm/index.web116.js +1 -1
- package/dist/esm/index.web117.js +1 -1
- package/dist/esm/index.web119.js +28 -944
- package/dist/esm/index.web12.js +3 -3
- package/dist/esm/index.web120.js +29 -2
- package/dist/esm/index.web121.js +13 -46
- package/dist/esm/index.web122.js +22 -26
- package/dist/esm/index.web123.js +48 -52
- package/dist/esm/index.web124.js +944 -10
- package/dist/esm/index.web125.js +2 -2
- package/dist/esm/index.web126.js +49 -44
- package/dist/esm/index.web127.js +26 -13
- package/dist/esm/index.web128.js +4 -12
- package/dist/esm/index.web129.js +12 -11
- package/dist/esm/index.web13.js +1 -1
- package/dist/esm/index.web130.js +11 -4
- package/dist/esm/index.web131.js +2 -2
- package/dist/esm/index.web133.js +3 -3
- package/dist/esm/index.web134.js +4 -4
- package/dist/esm/index.web135.js +1 -1
- package/dist/esm/index.web137.js +4 -4
- package/dist/esm/index.web138.js +2 -2
- package/dist/esm/index.web139.js +1 -1
- package/dist/esm/index.web14.js +1 -1
- package/dist/esm/index.web140.js +4 -4
- package/dist/esm/index.web141.js +4 -4
- package/dist/esm/index.web143.js +3 -3
- package/dist/esm/index.web145.js +3 -3
- package/dist/esm/index.web146.js +2 -2
- package/dist/esm/index.web147.js +4 -4
- package/dist/esm/index.web148.js +2 -2
- package/dist/esm/index.web149.js +2 -2
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web150.js +2 -2
- package/dist/esm/index.web151.js +4 -4
- package/dist/esm/index.web152.js +1 -1
- package/dist/esm/index.web153.js +2 -2
- package/dist/esm/index.web154.js +55 -2
- package/dist/esm/index.web155.js +11 -2
- package/dist/esm/index.web156.js +2 -14
- package/dist/esm/index.web157.js +44 -55
- package/dist/esm/index.web158.js +13 -6
- package/dist/esm/index.web159.js +2 -22
- package/dist/esm/index.web16.js +3 -3
- package/dist/esm/index.web160.js +2 -18
- package/dist/esm/index.web161.js +13 -45
- package/dist/esm/index.web162.js +55 -3
- package/dist/esm/index.web163.js +6 -3
- package/dist/esm/index.web164.js +20 -33
- package/dist/esm/index.web165.js +16 -11
- package/dist/esm/index.web166.js +45 -4
- package/dist/esm/index.web167.js +3 -28
- package/dist/esm/index.web168.js +3 -6
- package/dist/esm/index.web169.js +31 -29
- package/dist/esm/index.web17.js +7 -7
- package/dist/esm/index.web170.js +9 -9
- package/dist/esm/index.web171.js +4 -55
- package/dist/esm/index.web172.js +25 -39
- package/dist/esm/index.web173.js +6 -127
- package/dist/esm/index.web174.js +30 -102
- package/dist/esm/index.web175.js +12 -6
- package/dist/esm/index.web176.js +56 -3
- package/dist/esm/index.web177.js +38 -74
- package/dist/esm/index.web178.js +128 -2
- package/dist/esm/index.web179.js +105 -2
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web180.js +6 -37
- package/dist/esm/index.web181.js +3 -7
- package/dist/esm/index.web182.js +76 -32
- package/dist/esm/index.web183.js +2 -15
- package/dist/esm/index.web184.js +2 -35
- package/dist/esm/index.web185.js +36 -17
- package/dist/esm/index.web186.js +6 -8
- package/dist/esm/index.web187.js +33 -9
- package/dist/esm/index.web188.js +14 -11
- package/dist/esm/index.web189.js +33 -12
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web190.js +18 -5
- package/dist/esm/index.web191.js +9 -5
- package/dist/esm/index.web192.js +10 -10
- package/dist/esm/index.web193.js +11 -20
- package/dist/esm/index.web194.js +14 -10
- package/dist/esm/index.web195.js +6 -20
- package/dist/esm/index.web196.js +4 -93
- package/dist/esm/index.web197.js +11 -21
- package/dist/esm/index.web198.js +2 -118
- package/dist/esm/index.web199.js +106 -101
- package/dist/esm/index.web20.js +1 -1
- package/dist/esm/index.web200.js +2 -79
- package/dist/esm/index.web201.js +103 -78
- package/dist/esm/index.web202.js +79 -2
- package/dist/esm/index.web203.js +78 -108
- package/dist/esm/index.web204.js +8 -2
- package/dist/esm/index.web205.js +2 -8
- package/dist/esm/index.web206.js +369 -2
- package/dist/esm/index.web207.js +811 -353
- package/dist/esm/index.web208.js +38 -826
- package/dist/esm/index.web209.js +2 -39
- package/dist/esm/index.web21.js +1 -1
- package/dist/esm/index.web210.js +70 -2
- package/dist/esm/index.web211.js +31 -66
- package/dist/esm/index.web212.js +13 -33
- package/dist/esm/index.web213.js +19 -13
- package/dist/esm/index.web214.js +10 -21
- package/dist/esm/index.web215.js +20 -2
- package/dist/esm/index.web216.js +93 -19
- package/dist/esm/index.web217.js +20 -32
- package/dist/esm/index.web218.js +118 -7
- package/dist/esm/index.web219.js +19 -16
- package/dist/esm/index.web22.js +1 -1
- package/dist/esm/index.web220.js +2 -28
- package/dist/esm/index.web221.js +19 -7
- package/dist/esm/index.web222.js +7 -11
- package/dist/esm/index.web223.js +32 -12
- package/dist/esm/index.web224.js +45 -8
- package/dist/esm/index.web225.js +2 -15
- package/dist/esm/index.web226.js +2 -81
- package/dist/esm/index.web227.js +2 -47
- package/dist/esm/index.web228.js +2 -4
- package/dist/esm/index.web229.js +18 -2
- package/dist/esm/index.web23.js +1 -1
- package/dist/esm/index.web230.js +28 -2
- package/dist/esm/index.web231.js +8 -2
- package/dist/esm/index.web232.js +11 -5
- package/dist/esm/index.web233.js +11 -77
- package/dist/esm/index.web234.js +9 -14
- package/dist/esm/index.web235.js +19 -0
- package/dist/esm/index.web236.js +83 -0
- package/dist/esm/index.web237.js +7 -0
- package/dist/esm/index.web238.js +17 -0
- package/dist/esm/index.web239.js +81 -0
- package/dist/esm/index.web24.js +1 -1
- package/dist/esm/index.web25.js +6 -6
- package/dist/esm/index.web26.js +7 -7
- package/dist/esm/index.web27.js +6 -6
- package/dist/esm/index.web28.js +6 -6
- package/dist/esm/index.web29.js +6 -6
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +6 -6
- package/dist/esm/index.web31.js +7 -7
- package/dist/esm/index.web32.js +6 -6
- package/dist/esm/index.web33.js +6 -6
- package/dist/esm/index.web34.js +2 -2
- package/dist/esm/index.web35.js +6 -6
- package/dist/esm/index.web36.js +6 -6
- package/dist/esm/index.web37.js +7 -7
- package/dist/esm/index.web38.js +2 -2
- package/dist/esm/index.web39.js +6 -6
- package/dist/esm/index.web40.js +1 -1
- package/dist/esm/index.web41.js +2 -2
- package/dist/esm/index.web42.js +1 -1
- package/dist/esm/index.web43.js +1 -1
- package/dist/esm/index.web44.js +1 -1
- package/dist/esm/index.web45.js +4 -4
- package/dist/esm/index.web46.js +1 -1
- package/dist/esm/index.web47.js +4 -4
- package/dist/esm/index.web48.js +4 -4
- package/dist/esm/index.web49.js +3 -3
- package/dist/esm/index.web5.js +1 -1
- package/dist/esm/index.web50.js +2 -2
- package/dist/esm/index.web52.js +4 -4
- package/dist/esm/index.web53.js +3 -3
- package/dist/esm/index.web54.js +4 -4
- package/dist/esm/index.web55.js +6 -6
- package/dist/esm/index.web56.js +6 -6
- package/dist/esm/index.web57.js +6 -6
- package/dist/esm/index.web59.js +47 -19
- package/dist/esm/index.web60.js +85 -10
- package/dist/esm/index.web61.js +20 -36
- package/dist/esm/index.web62.js +10 -30
- package/dist/esm/index.web63.js +36 -65
- package/dist/esm/index.web64.js +26 -20
- package/dist/esm/index.web65.js +63 -15
- package/dist/esm/index.web66.js +23 -22
- package/dist/esm/index.web67.js +15 -6
- package/dist/esm/index.web68.js +22 -46
- package/dist/esm/index.web69.js +7 -19
- package/dist/esm/index.web70.js +47 -48
- package/dist/esm/index.web71.js +17 -36
- package/dist/esm/index.web72.js +45 -310
- package/dist/esm/index.web73.js +37 -17
- package/dist/esm/index.web74.js +323 -126
- package/dist/esm/index.web75.js +13 -65
- package/dist/esm/index.web76.js +130 -4
- package/dist/esm/index.web77.js +86 -55
- package/dist/esm/index.web78.js +5 -155
- package/dist/esm/index.web79.js +55 -67
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web80.js +156 -34
- package/dist/esm/index.web81.js +65 -87
- package/dist/esm/index.web82.js +35 -43
- package/dist/esm/index.web83.js +88 -30
- package/dist/esm/index.web84.js +40 -15
- package/dist/esm/index.web85.js +32 -42
- package/dist/esm/index.web86.js +18 -3
- package/dist/esm/index.web87.js +42 -44
- package/dist/esm/index.web88.js +3 -24
- package/dist/esm/index.web89.js +43 -8
- package/dist/esm/index.web9.js +5 -5
- package/dist/esm/index.web90.js +22 -27
- package/dist/esm/index.web91.js +8 -40
- package/dist/esm/index.web92.js +24 -48
- package/dist/esm/index.web93.js +21 -81
- package/dist/esm/index.web94.js +15 -24
- package/dist/esm/index.web95.js +27 -158
- package/dist/esm/index.web96.js +39 -46
- package/dist/esm/index.web97.js +49 -26
- package/dist/esm/index.web98.js +77 -68
- package/dist/esm/index.web99.js +25 -8
- package/dist/native/index.native.js +125 -119
- package/dist/native/index.native100.js +49 -20
- package/dist/native/index.native101.js +76 -68
- package/dist/native/index.native102.js +25 -8
- package/dist/native/index.native103.js +157 -92
- package/dist/native/index.native104.js +30 -119
- package/dist/native/index.native105.js +18 -64
- package/dist/native/index.native106.js +72 -26
- package/dist/native/index.native107.js +9 -24
- package/dist/native/index.native108.js +95 -24
- package/dist/native/index.native109.js +113 -41
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native110.js +68 -47
- package/dist/native/index.native111.js +26 -20
- package/dist/native/index.native112.js +24 -153
- package/dist/native/index.native113.js +22 -375
- package/dist/native/index.native114.js +64 -28
- package/dist/native/index.native115.js +47 -29
- package/dist/native/index.native116.js +23 -2
- package/dist/native/index.native117.js +150 -63
- package/dist/native/index.native118.js +87 -362
- package/dist/native/index.native119.js +371 -84
- package/dist/native/index.native12.js +6 -6
- package/dist/native/index.native120.js +2 -19
- package/dist/native/index.native121.js +63 -20
- package/dist/native/index.native122.js +351 -37
- package/dist/native/index.native123.js +16 -4
- package/dist/native/index.native124.js +21 -11
- package/dist/native/index.native125.js +50 -11
- package/dist/native/index.native126.js +28 -944
- package/dist/native/index.native127.js +29 -2
- package/dist/native/index.native128.js +944 -49
- package/dist/native/index.native129.js +2 -27
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native130.js +49 -13
- package/dist/native/index.native131.js +26 -27
- package/dist/native/index.native132.js +4 -7
- package/dist/native/index.native133.js +54 -3
- package/dist/native/index.native134.js +10 -27
- package/dist/native/index.native135.js +2 -9
- package/dist/native/index.native136.js +45 -8
- package/dist/native/index.native137.js +13 -79
- package/dist/native/index.native138.js +10 -25
- package/dist/native/index.native139.js +11 -3
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native140.js +5 -15
- package/dist/native/index.native141.js +47 -4
- package/dist/native/index.native142.js +35 -14
- package/dist/native/index.native143.js +65 -17
- package/dist/native/index.native144.js +2 -61
- package/dist/native/index.native145.js +2 -18
- package/dist/native/index.native146.js +13 -23
- package/dist/native/index.native147.js +27 -8
- package/dist/native/index.native148.js +7 -41
- package/dist/native/index.native149.js +3 -7
- package/dist/native/index.native15.js +3 -3
- package/dist/native/index.native150.js +23 -16
- package/dist/native/index.native151.js +9 -35
- package/dist/native/index.native152.js +7 -67
- package/dist/native/index.native153.js +79 -54
- package/dist/native/index.native154.js +27 -10
- package/dist/native/index.native155.js +4 -2
- package/dist/native/index.native156.js +15 -45
- package/dist/native/index.native157.js +4 -13
- package/dist/native/index.native158.js +14 -5
- package/dist/native/index.native159.js +16 -44
- package/dist/native/index.native16.js +1 -1
- package/dist/native/index.native160.js +61 -2
- package/dist/native/index.native161.js +18 -2
- package/dist/native/index.native162.js +23 -13
- package/dist/native/index.native163.js +8 -55
- package/dist/native/index.native164.js +41 -6
- package/dist/native/index.native165.js +7 -21
- package/dist/native/index.native166.js +19 -16
- package/dist/native/index.native167.js +13 -45
- package/dist/native/index.native168.js +55 -3
- package/dist/native/index.native169.js +6 -3
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native170.js +20 -33
- package/dist/native/index.native171.js +16 -11
- package/dist/native/index.native172.js +45 -4
- package/dist/native/index.native173.js +3 -28
- package/dist/native/index.native174.js +3 -6
- package/dist/native/index.native175.js +31 -29
- package/dist/native/index.native176.js +9 -9
- package/dist/native/index.native177.js +4 -55
- package/dist/native/index.native178.js +25 -39
- package/dist/native/index.native179.js +6 -127
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +30 -102
- package/dist/native/index.native181.js +12 -6
- package/dist/native/index.native182.js +56 -3
- package/dist/native/index.native183.js +38 -74
- package/dist/native/index.native184.js +128 -2
- package/dist/native/index.native185.js +105 -2
- package/dist/native/index.native186.js +6 -37
- package/dist/native/index.native187.js +3 -7
- package/dist/native/index.native188.js +76 -32
- package/dist/native/index.native189.js +2 -15
- package/dist/native/index.native19.js +3 -3
- package/dist/native/index.native190.js +2 -35
- package/dist/native/index.native191.js +36 -17
- package/dist/native/index.native192.js +6 -8
- package/dist/native/index.native193.js +33 -9
- package/dist/native/index.native194.js +14 -11
- package/dist/native/index.native195.js +33 -12
- package/dist/native/index.native196.js +18 -5
- package/dist/native/index.native197.js +9 -5
- package/dist/native/index.native198.js +10 -10
- package/dist/native/index.native199.js +12 -2
- package/dist/native/index.native2.js +2 -2
- package/dist/native/index.native20.js +7 -7
- package/dist/native/index.native200.js +13 -108
- package/dist/native/index.native201.js +6 -2
- package/dist/native/index.native202.js +5 -104
- package/dist/native/index.native203.js +10 -78
- package/dist/native/index.native204.js +2 -79
- package/dist/native/index.native205.js +108 -20
- package/dist/native/index.native206.js +2 -10
- package/dist/native/index.native207.js +20 -19
- package/dist/native/index.native208.js +9 -93
- package/dist/native/index.native209.js +18 -19
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native210.js +81 -105
- package/dist/native/index.native211.js +20 -46
- package/dist/native/index.native212.js +118 -8
- package/dist/native/index.native213.js +104 -2
- package/dist/native/index.native214.js +71 -361
- package/dist/native/index.native215.js +78 -826
- package/dist/native/index.native216.js +7 -38
- package/dist/native/index.native218.js +366 -67
- package/dist/native/index.native219.js +826 -34
- package/dist/native/index.native22.js +1 -1
- package/dist/native/index.native220.js +38 -14
- package/dist/native/index.native221.js +2 -21
- package/dist/native/index.native222.js +70 -2
- package/dist/native/index.native223.js +34 -19
- package/dist/native/index.native224.js +13 -31
- package/dist/native/index.native225.js +20 -6
- package/dist/native/index.native226.js +2 -18
- package/dist/native/index.native227.js +19 -27
- package/dist/native/index.native228.js +32 -7
- package/dist/native/index.native229.js +7 -11
- package/dist/native/index.native23.js +1 -1
- package/dist/native/index.native230.js +3 -12
- package/dist/native/index.native231.js +45 -8
- package/dist/native/index.native232.js +15 -14
- package/dist/native/index.native233.js +25 -78
- package/dist/native/index.native234.js +8 -4
- package/dist/native/index.native235.js +11 -2
- package/dist/native/index.native236.js +13 -2
- package/dist/native/index.native237.js +10 -2
- package/dist/native/index.native238.js +16 -14
- package/dist/native/index.native239.js +81 -5
- package/dist/native/index.native24.js +1 -1
- package/dist/native/index.native240.js +2 -79
- package/dist/native/index.native241.js +4 -0
- package/dist/native/index.native242.js +4 -0
- package/dist/native/index.native243.js +7 -0
- package/dist/native/index.native244.js +81 -0
- package/dist/native/index.native245.js +17 -0
- package/dist/native/index.native25.js +1 -1
- package/dist/native/index.native26.js +1 -1
- package/dist/native/index.native27.js +1 -1
- package/dist/native/index.native28.js +5 -5
- package/dist/native/index.native29.js +6 -6
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +5 -5
- package/dist/native/index.native31.js +5 -5
- package/dist/native/index.native32.js +5 -5
- package/dist/native/index.native33.js +5 -5
- package/dist/native/index.native34.js +6 -6
- package/dist/native/index.native35.js +5 -5
- package/dist/native/index.native36.js +5 -5
- package/dist/native/index.native37.js +2 -2
- package/dist/native/index.native38.js +5 -5
- package/dist/native/index.native39.js +5 -5
- package/dist/native/index.native4.js +2 -2
- package/dist/native/index.native40.js +6 -6
- package/dist/native/index.native41.js +2 -2
- package/dist/native/index.native42.js +5 -5
- package/dist/native/index.native43.js +1 -1
- package/dist/native/index.native44.js +2 -2
- package/dist/native/index.native45.js +1 -1
- package/dist/native/index.native46.js +1 -1
- package/dist/native/index.native47.js +1 -1
- package/dist/native/index.native48.js +3 -3
- package/dist/native/index.native49.js +1 -1
- package/dist/native/index.native5.js +2 -2
- package/dist/native/index.native50.js +4 -4
- package/dist/native/index.native51.js +4 -4
- package/dist/native/index.native52.js +3 -3
- package/dist/native/index.native53.js +2 -2
- package/dist/native/index.native55.js +4 -4
- package/dist/native/index.native56.js +3 -3
- package/dist/native/index.native57.js +4 -4
- package/dist/native/index.native58.js +5 -5
- package/dist/native/index.native59.js +5 -5
- package/dist/native/index.native6.js +1 -1
- package/dist/native/index.native60.js +5 -5
- package/dist/native/index.native62.js +47 -19
- package/dist/native/index.native63.js +84 -10
- package/dist/native/index.native64.js +20 -36
- package/dist/native/index.native65.js +10 -30
- package/dist/native/index.native66.js +36 -65
- package/dist/native/index.native67.js +26 -20
- package/dist/native/index.native68.js +63 -15
- package/dist/native/index.native69.js +23 -22
- package/dist/native/index.native7.js +2 -2
- package/dist/native/index.native70.js +15 -6
- package/dist/native/index.native71.js +22 -46
- package/dist/native/index.native72.js +7 -19
- package/dist/native/index.native73.js +47 -48
- package/dist/native/index.native74.js +17 -36
- package/dist/native/index.native75.js +45 -310
- package/dist/native/index.native76.js +37 -17
- package/dist/native/index.native77.js +323 -125
- package/dist/native/index.native78.js +13 -65
- package/dist/native/index.native79.js +129 -4
- package/dist/native/index.native80.js +86 -54
- package/dist/native/index.native81.js +5 -154
- package/dist/native/index.native82.js +47 -34
- package/dist/native/index.native83.js +153 -6
- package/dist/native/index.native84.js +41 -8
- package/dist/native/index.native85.js +7 -7
- package/dist/native/index.native86.js +7 -30
- package/dist/native/index.native87.js +8 -17
- package/dist/native/index.native88.js +32 -42
- package/dist/native/index.native89.js +18 -3
- package/dist/native/index.native90.js +42 -44
- package/dist/native/index.native91.js +3 -24
- package/dist/native/index.native92.js +43 -8
- package/dist/native/index.native93.js +22 -27
- package/dist/native/index.native94.js +8 -40
- package/dist/native/index.native95.js +24 -48
- package/dist/native/index.native96.js +21 -80
- package/dist/native/index.native97.js +15 -24
- package/dist/native/index.native98.js +27 -158
- package/dist/native/index.native99.js +39 -46
- package/dist/native-types/actions/authenticateWithJWT.d.ts +64 -0
- package/dist/native-types/actions/cancelMfaVerification.d.ts +19 -0
- package/dist/native-types/actions/createDelegation.d.ts +18 -0
- package/dist/native-types/actions/createEvmEip7702Delegation.d.ts +27 -0
- package/dist/native-types/actions/createEvmEoaAccount.d.ts +12 -0
- package/dist/native-types/actions/createEvmSmartAccount.d.ts +25 -0
- package/dist/native-types/actions/createKeyExportIframe.d.ts +148 -0
- package/dist/native-types/actions/createSolanaAccount.d.ts +12 -0
- package/dist/native-types/actions/createSpendPermission.d.ts +36 -0
- package/dist/native-types/actions/executeSwap.d.ts +105 -0
- package/dist/native-types/actions/exportEvmAccount.d.ts +18 -0
- package/dist/native-types/actions/exportSolanaAccount.d.ts +17 -0
- package/dist/native-types/actions/fetchWithX402.d.ts +27 -0
- package/dist/native-types/actions/getAccessToken.d.ts +11 -0
- package/dist/native-types/actions/getAccessTokenExpiration.d.ts +9 -0
- package/dist/native-types/actions/getCurrentUser.d.ts +9 -0
- package/dist/native-types/actions/getCurrentUserSync.d.ts +9 -0
- package/dist/native-types/actions/getEvmEip7702DelegationOperation.d.ts +12 -0
- package/dist/native-types/actions/getMfaConfig.d.ts +17 -0
- package/dist/native-types/actions/getProjectConfig.d.ts +13 -0
- package/dist/native-types/actions/getSwapPrice.d.ts +85 -0
- package/dist/native-types/actions/getUserOperation.d.ts +18 -0
- package/dist/native-types/actions/initialize.d.ts +11 -0
- package/dist/native-types/actions/initiateMfaEnrollment.d.ts +61 -0
- package/dist/native-types/actions/initiateMfaVerification.d.ts +27 -0
- package/dist/native-types/actions/isSignedIn.d.ts +12 -0
- package/dist/native-types/actions/linkApple.d.ts +7 -0
- package/dist/native-types/actions/linkEmail.d.ts +8 -0
- package/dist/native-types/actions/linkGoogle.d.ts +5 -0
- package/dist/native-types/actions/linkOAuth.d.ts +8 -0
- package/dist/native-types/actions/linkSms.d.ts +8 -0
- package/dist/native-types/actions/linkTelegram.d.ts +5 -0
- package/dist/native-types/actions/listSpendPermissions.d.ts +32 -0
- package/dist/native-types/actions/onAuthStateChange.d.ts +16 -0
- package/dist/native-types/actions/onOAuthStateChange.d.ts +6 -0
- package/dist/native-types/actions/recordMfaEnrollmentPrompted.d.ts +18 -0
- package/dist/native-types/actions/revokeDelegation.d.ts +12 -0
- package/dist/native-types/actions/revokeSpendPermission.d.ts +34 -0
- package/dist/native-types/actions/sendEvmEoaUsdc.d.ts +32 -0
- package/dist/native-types/actions/sendEvmSmartAccountUsdc.d.ts +37 -0
- package/dist/native-types/actions/sendEvmTransaction.d.ts +30 -0
- package/dist/native-types/actions/sendSolanaTransaction.d.ts +6 -0
- package/dist/native-types/actions/sendSolanaUsdc.d.ts +60 -0
- package/dist/native-types/actions/sendUsdc.d.ts +79 -0
- package/dist/native-types/actions/sendUserOperation.d.ts +29 -0
- package/dist/native-types/actions/signEvmHash.d.ts +15 -0
- package/dist/native-types/actions/signEvmMessage.d.ts +19 -0
- package/dist/native-types/actions/signEvmTransaction.d.ts +27 -0
- package/dist/native-types/actions/signEvmTypedData.d.ts +50 -0
- package/dist/native-types/actions/signInWithEmail.d.ts +12 -0
- package/dist/native-types/actions/signInWithOAuth.d.ts +40 -0
- package/dist/native-types/actions/signInWithSms.d.ts +12 -0
- package/dist/native-types/actions/signOut.d.ts +8 -0
- package/dist/native-types/actions/signSolanaMessage.d.ts +20 -0
- package/dist/native-types/actions/signSolanaTransaction.d.ts +18 -0
- package/dist/native-types/actions/submitMfaEnrollment.d.ts +37 -0
- package/dist/native-types/actions/submitMfaVerification.d.ts +30 -0
- package/dist/native-types/actions/verifyEmailOTP.d.ts +13 -0
- package/dist/native-types/actions/verifyOAuth.d.ts +36 -0
- package/dist/native-types/actions/verifySmsOTP.d.ts +13 -0
- package/dist/native-types/actions/verifyTelegramOAuth.d.ts +6 -0
- package/dist/native-types/actions/waitForEvmEip7702Delegation.d.ts +34 -0
- package/dist/native-types/auth/authManager.d.ts +115 -0
- package/dist/native-types/auth/createAuthManager.d.ts +9 -0
- package/dist/native-types/auth/customAuthManager.d.ts +46 -0
- package/dist/native-types/auth/oAuthManager.d.ts +28 -0
- package/dist/native-types/auth/toAuthState.d.ts +15 -0
- package/dist/native-types/auth/types.d.ts +81 -0
- package/dist/native-types/auth/withAuth.d.ts +14 -0
- package/dist/native-types/constants.d.ts +3 -0
- package/dist/native-types/eip1193/createCDPEmbeddedWallet.d.ts +75 -0
- package/dist/native-types/eip1193/createProvider.d.ts +39 -0
- package/dist/native-types/eip1193/errors.d.ts +105 -0
- package/dist/native-types/eip1193/eventEmitter.d.ts +29 -0
- package/dist/native-types/eip1193/handlers/createEOAHandlers.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/createSmartAccountHandlers.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/eoa/handleAccounts.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/eoa/handleEthSign.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/eoa/handleGetCallsStatus.d.ts +8 -0
- package/dist/native-types/eip1193/handlers/eoa/handleGetCapabilities.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/eoa/handlePersonalSign.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/eoa/handleRequestAccounts.d.ts +10 -0
- package/dist/native-types/eip1193/handlers/eoa/handleSendCalls.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/eoa/handleSendTransaction.d.ts +9 -0
- package/dist/native-types/eip1193/handlers/eoa/handleSignTypedData.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/shared/handleChainId.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/shared/handleDisconnect.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/shared/handleSwitchEthereumChain.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleAccounts.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleEthSign.d.ts +8 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleGetCallsStatus.d.ts +8 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleGetCapabilities.d.ts +6 -0
- package/dist/native-types/eip1193/handlers/smart-account/handlePersonalSign.d.ts +8 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleRequestAccounts.d.ts +10 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleSendCalls.d.ts +7 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleSendTransaction.d.ts +9 -0
- package/dist/native-types/eip1193/handlers/smart-account/handleSignTypedData.d.ts +8 -0
- package/dist/native-types/eip1193/handlers/types.d.ts +3 -0
- package/dist/native-types/eip1193/types.d.ts +99 -0
- package/dist/native-types/errors.d.ts +90 -1
- package/dist/native-types/index.d.ts +3 -0
- package/dist/native-types/index.native.d.ts +8 -0
- package/dist/native-types/index.web.d.ts +8 -0
- package/dist/native-types/mfa/protectedActions.d.ts +41 -0
- package/dist/native-types/mfa/state.d.ts +95 -0
- package/dist/native-types/mfa/utils.d.ts +59 -0
- package/dist/native-types/mfa/withMfa.d.ts +45 -0
- package/dist/native-types/mocks/config.d.ts +11 -0
- package/dist/native-types/mocks/mockAuthManager.d.ts +86 -0
- package/dist/native-types/mocks/mockOAuthManager.d.ts +28 -0
- package/dist/native-types/mocks/user.d.ts +30 -0
- package/dist/native-types/platform/native/appleAuthRegistry.d.ts +23 -0
- package/dist/native-types/platform/native/attestation.d.ts +16 -0
- package/dist/native-types/platform/native/attestationRegistry.d.ts +28 -0
- package/dist/native-types/platform/native/crypto.d.ts +4 -0
- package/dist/native-types/platform/native/deviceInfo.d.ts +3 -0
- package/dist/native-types/platform/native/deviceInfoRegistry.d.ts +24 -0
- package/dist/native-types/platform/native/secureStorage.d.ts +6 -0
- package/dist/native-types/platform/native/storage.d.ts +7 -0
- package/dist/native-types/platform/registry.d.ts +61 -0
- package/dist/native-types/platform/types.d.ts +270 -0
- package/dist/native-types/platform/web/crypto.d.ts +4 -0
- package/dist/native-types/platform/web/storage.d.ts +4 -0
- package/dist/native-types/secureIframe/data.d.ts +15 -0
- package/dist/native-types/secureIframe/types.d.ts +69 -0
- package/dist/native-types/secureIframe/utils.d.ts +66 -0
- package/dist/native-types/shared/base64.d.ts +14 -0
- package/dist/native-types/shared/completeAuthFlow.d.ts +9 -0
- package/dist/native-types/shared/createEvmAccountIfNeeded.d.ts +9 -0
- package/dist/native-types/shared/createSolanaAccountIfNeeded.d.ts +8 -0
- package/dist/native-types/shared/initiateSignIn.d.ts +13 -0
- package/dist/native-types/shared/textEncoding.d.ts +14 -0
- package/dist/native-types/shared/types.d.ts +5 -0
- package/dist/native-types/shared/utils.d.ts +33 -0
- package/dist/native-types/shared/validators.d.ts +8 -0
- package/dist/native-types/shared/verifyOTP.d.ts +8 -0
- package/dist/native-types/solana-kit/toTransactionSigner.d.ts +7 -0
- package/dist/native-types/spend-permissions/toSpendPermission.d.ts +7 -0
- package/dist/native-types/spend-permissions/types.d.ts +27 -0
- package/dist/native-types/state.d.ts +66 -0
- package/dist/native-types/swap/errors.d.ts +8 -0
- package/dist/native-types/swap/resolveAccount.d.ts +11 -0
- package/dist/native-types/swap/validation.d.ts +20 -0
- package/dist/native-types/types.d.ts +376 -2
- package/dist/native-types/utils/validatePhoneNumber.d.ts +25 -0
- package/dist/native-types/version.d.ts +5 -1
- package/dist/native-types/viem/factory.d.ts +6 -0
- package/dist/native-types/viem/signAndWrapTypedData.d.ts +107 -0
- package/dist/native-types/viem/toViemAccount.d.ts +15 -0
- package/dist/types/actions/authenticateWithJWT.d.ts +64 -0
- package/dist/types/actions/cancelMfaVerification.d.ts +19 -0
- package/dist/types/actions/createDelegation.d.ts +18 -0
- package/dist/types/actions/createEvmEip7702Delegation.d.ts +27 -0
- package/dist/types/actions/createEvmEoaAccount.d.ts +12 -0
- package/dist/types/actions/createEvmSmartAccount.d.ts +25 -0
- package/dist/types/actions/createKeyExportIframe.d.ts +148 -0
- package/dist/types/actions/createSolanaAccount.d.ts +12 -0
- package/dist/types/actions/createSpendPermission.d.ts +36 -0
- package/dist/types/actions/executeSwap.d.ts +105 -0
- package/dist/types/actions/exportEvmAccount.d.ts +18 -0
- package/dist/types/actions/exportSolanaAccount.d.ts +17 -0
- package/dist/types/actions/fetchWithX402.d.ts +27 -0
- package/dist/types/actions/getAccessToken.d.ts +11 -0
- package/dist/types/actions/getAccessTokenExpiration.d.ts +9 -0
- package/dist/types/actions/getCurrentUser.d.ts +9 -0
- package/dist/types/actions/getCurrentUserSync.d.ts +9 -0
- package/dist/types/actions/getEvmEip7702DelegationOperation.d.ts +12 -0
- package/dist/types/actions/getMfaConfig.d.ts +17 -0
- package/dist/types/actions/getProjectConfig.d.ts +13 -0
- package/dist/types/actions/getSwapPrice.d.ts +85 -0
- package/dist/types/actions/getUserOperation.d.ts +18 -0
- package/dist/types/actions/initialize.d.ts +11 -0
- package/dist/types/actions/initiateMfaEnrollment.d.ts +61 -0
- package/dist/types/actions/initiateMfaVerification.d.ts +27 -0
- package/dist/types/actions/isSignedIn.d.ts +12 -0
- package/dist/types/actions/linkApple.d.ts +7 -0
- package/dist/types/actions/linkEmail.d.ts +8 -0
- package/dist/types/actions/linkGoogle.d.ts +5 -0
- package/dist/types/actions/linkOAuth.d.ts +8 -0
- package/dist/types/actions/linkSms.d.ts +8 -0
- package/dist/types/actions/linkTelegram.d.ts +5 -0
- package/dist/types/actions/listSpendPermissions.d.ts +32 -0
- package/dist/types/actions/onAuthStateChange.d.ts +16 -0
- package/dist/types/actions/onOAuthStateChange.d.ts +6 -0
- package/dist/types/actions/recordMfaEnrollmentPrompted.d.ts +18 -0
- package/dist/types/actions/revokeDelegation.d.ts +12 -0
- package/dist/types/actions/revokeSpendPermission.d.ts +34 -0
- package/dist/types/actions/sendEvmEoaUsdc.d.ts +32 -0
- package/dist/types/actions/sendEvmSmartAccountUsdc.d.ts +37 -0
- package/dist/types/actions/sendEvmTransaction.d.ts +30 -0
- package/dist/types/actions/sendSolanaTransaction.d.ts +6 -0
- package/dist/types/actions/sendSolanaUsdc.d.ts +60 -0
- package/dist/types/actions/sendUsdc.d.ts +79 -0
- package/dist/types/actions/sendUserOperation.d.ts +29 -0
- package/dist/types/actions/signEvmHash.d.ts +15 -0
- package/dist/types/actions/signEvmMessage.d.ts +19 -0
- package/dist/types/actions/signEvmTransaction.d.ts +27 -0
- package/dist/types/actions/signEvmTypedData.d.ts +50 -0
- package/dist/types/actions/signInWithEmail.d.ts +12 -0
- package/dist/types/actions/signInWithOAuth.d.ts +40 -0
- package/dist/types/actions/signInWithSms.d.ts +12 -0
- package/dist/types/actions/signOut.d.ts +8 -0
- package/dist/types/actions/signSolanaMessage.d.ts +20 -0
- package/dist/types/actions/signSolanaTransaction.d.ts +18 -0
- package/dist/types/actions/submitMfaEnrollment.d.ts +37 -0
- package/dist/types/actions/submitMfaVerification.d.ts +30 -0
- package/dist/types/actions/verifyEmailOTP.d.ts +13 -0
- package/dist/types/actions/verifyOAuth.d.ts +36 -0
- package/dist/types/actions/verifySmsOTP.d.ts +13 -0
- package/dist/types/actions/verifyTelegramOAuth.d.ts +6 -0
- package/dist/types/actions/waitForEvmEip7702Delegation.d.ts +34 -0
- package/dist/types/auth/authManager.d.ts +115 -0
- package/dist/types/auth/createAuthManager.d.ts +9 -0
- package/dist/types/auth/customAuthManager.d.ts +46 -0
- package/dist/types/auth/oAuthManager.d.ts +28 -0
- package/dist/types/auth/toAuthState.d.ts +15 -0
- package/dist/types/auth/types.d.ts +81 -0
- package/dist/types/auth/withAuth.d.ts +14 -0
- package/dist/types/constants.d.ts +3 -0
- package/dist/types/eip1193/createCDPEmbeddedWallet.d.ts +75 -0
- package/dist/types/eip1193/createProvider.d.ts +39 -0
- package/dist/types/eip1193/errors.d.ts +105 -0
- package/dist/types/eip1193/eventEmitter.d.ts +29 -0
- package/dist/types/eip1193/handlers/createEOAHandlers.d.ts +6 -0
- package/dist/types/eip1193/handlers/createSmartAccountHandlers.d.ts +6 -0
- package/dist/types/eip1193/handlers/eoa/handleAccounts.d.ts +6 -0
- package/dist/types/eip1193/handlers/eoa/handleEthSign.d.ts +7 -0
- package/dist/types/eip1193/handlers/eoa/handleGetCallsStatus.d.ts +8 -0
- package/dist/types/eip1193/handlers/eoa/handleGetCapabilities.d.ts +6 -0
- package/dist/types/eip1193/handlers/eoa/handlePersonalSign.d.ts +7 -0
- package/dist/types/eip1193/handlers/eoa/handleRequestAccounts.d.ts +10 -0
- package/dist/types/eip1193/handlers/eoa/handleSendCalls.d.ts +7 -0
- package/dist/types/eip1193/handlers/eoa/handleSendTransaction.d.ts +9 -0
- package/dist/types/eip1193/handlers/eoa/handleSignTypedData.d.ts +7 -0
- package/dist/types/eip1193/handlers/shared/handleChainId.d.ts +7 -0
- package/dist/types/eip1193/handlers/shared/handleDisconnect.d.ts +6 -0
- package/dist/types/eip1193/handlers/shared/handleSwitchEthereumChain.d.ts +6 -0
- package/dist/types/eip1193/handlers/smart-account/handleAccounts.d.ts +6 -0
- package/dist/types/eip1193/handlers/smart-account/handleEthSign.d.ts +8 -0
- package/dist/types/eip1193/handlers/smart-account/handleGetCallsStatus.d.ts +8 -0
- package/dist/types/eip1193/handlers/smart-account/handleGetCapabilities.d.ts +6 -0
- package/dist/types/eip1193/handlers/smart-account/handlePersonalSign.d.ts +8 -0
- package/dist/types/eip1193/handlers/smart-account/handleRequestAccounts.d.ts +10 -0
- package/dist/types/eip1193/handlers/smart-account/handleSendCalls.d.ts +7 -0
- package/dist/types/eip1193/handlers/smart-account/handleSendTransaction.d.ts +9 -0
- package/dist/types/eip1193/handlers/smart-account/handleSignTypedData.d.ts +8 -0
- package/dist/types/eip1193/handlers/types.d.ts +3 -0
- package/dist/types/eip1193/types.d.ts +99 -0
- package/dist/types/errors.d.ts +90 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.native.d.ts +8 -0
- package/dist/types/index.web.d.ts +8 -0
- package/dist/types/mfa/protectedActions.d.ts +41 -0
- package/dist/types/mfa/state.d.ts +95 -0
- package/dist/types/mfa/utils.d.ts +59 -0
- package/dist/types/mfa/withMfa.d.ts +45 -0
- package/dist/types/mocks/config.d.ts +11 -0
- package/dist/types/mocks/mockAuthManager.d.ts +86 -0
- package/dist/types/mocks/mockOAuthManager.d.ts +28 -0
- package/dist/types/mocks/user.d.ts +30 -0
- package/dist/types/platform/native/appleAuthRegistry.d.ts +23 -0
- package/dist/types/platform/native/attestation.d.ts +16 -0
- package/dist/types/platform/native/attestationRegistry.d.ts +28 -0
- package/dist/types/platform/native/crypto.d.ts +4 -0
- package/dist/types/platform/native/deviceInfo.d.ts +3 -0
- package/dist/types/platform/native/deviceInfoRegistry.d.ts +24 -0
- package/dist/types/platform/native/secureStorage.d.ts +6 -0
- package/dist/types/platform/native/storage.d.ts +7 -0
- package/dist/types/platform/registry.d.ts +61 -0
- package/dist/types/platform/types.d.ts +270 -0
- package/dist/types/platform/web/crypto.d.ts +4 -0
- package/dist/types/platform/web/storage.d.ts +4 -0
- package/dist/types/secureIframe/data.d.ts +15 -0
- package/dist/types/secureIframe/types.d.ts +69 -0
- package/dist/types/secureIframe/utils.d.ts +66 -0
- package/dist/types/shared/base64.d.ts +14 -0
- package/dist/types/shared/completeAuthFlow.d.ts +9 -0
- package/dist/types/shared/createEvmAccountIfNeeded.d.ts +9 -0
- package/dist/types/shared/createSolanaAccountIfNeeded.d.ts +8 -0
- package/dist/types/shared/initiateSignIn.d.ts +13 -0
- package/dist/types/shared/textEncoding.d.ts +14 -0
- package/dist/types/shared/types.d.ts +5 -0
- package/dist/types/shared/utils.d.ts +33 -0
- package/dist/types/shared/validators.d.ts +8 -0
- package/dist/types/shared/verifyOTP.d.ts +8 -0
- package/dist/types/solana-kit/toTransactionSigner.d.ts +7 -0
- package/dist/types/spend-permissions/toSpendPermission.d.ts +7 -0
- package/dist/types/spend-permissions/types.d.ts +27 -0
- package/dist/types/state.d.ts +66 -0
- package/dist/types/swap/errors.d.ts +8 -0
- package/dist/types/swap/resolveAccount.d.ts +11 -0
- package/dist/types/swap/validation.d.ts +20 -0
- package/dist/types/types.d.ts +376 -2
- package/dist/types/utils/validatePhoneNumber.d.ts +25 -0
- package/dist/types/version.d.ts +5 -1
- package/dist/types/viem/factory.d.ts +6 -0
- package/dist/types/viem/signAndWrapTypedData.d.ts +107 -0
- package/dist/types/viem/toViemAccount.d.ts +15 -0
- package/dist/web/index.web.js +133 -127
- package/dist/web/index.web10.js +1 -1
- package/dist/web/index.web100.js +157 -93
- package/dist/web/index.web101.js +30 -119
- package/dist/web/index.web102.js +24 -65
- package/dist/web/index.web103.js +72 -26
- package/dist/web/index.web104.js +9 -24
- package/dist/web/index.web105.js +96 -24
- package/dist/web/index.web106.js +113 -41
- package/dist/web/index.web107.js +69 -47
- package/dist/web/index.web108.js +26 -20
- package/dist/web/index.web109.js +24 -153
- package/dist/web/index.web11.js +1 -1
- package/dist/web/index.web110.js +24 -17
- package/dist/web/index.web111.js +63 -21
- package/dist/web/index.web112.js +47 -51
- package/dist/web/index.web113.js +20 -376
- package/dist/web/index.web114.js +152 -28
- package/dist/web/index.web115.js +374 -26
- package/dist/web/index.web116.js +1 -1
- package/dist/web/index.web117.js +1 -1
- package/dist/web/index.web119.js +28 -944
- package/dist/web/index.web12.js +3 -3
- package/dist/web/index.web120.js +29 -2
- package/dist/web/index.web121.js +13 -46
- package/dist/web/index.web122.js +22 -26
- package/dist/web/index.web123.js +48 -52
- package/dist/web/index.web124.js +944 -10
- package/dist/web/index.web125.js +2 -2
- package/dist/web/index.web126.js +49 -44
- package/dist/web/index.web127.js +26 -13
- package/dist/web/index.web128.js +4 -12
- package/dist/web/index.web129.js +12 -11
- package/dist/web/index.web13.js +1 -1
- package/dist/web/index.web130.js +11 -4
- package/dist/web/index.web131.js +2 -2
- package/dist/web/index.web133.js +3 -3
- package/dist/web/index.web134.js +4 -4
- package/dist/web/index.web135.js +1 -1
- package/dist/web/index.web137.js +4 -4
- package/dist/web/index.web138.js +2 -2
- package/dist/web/index.web139.js +1 -1
- package/dist/web/index.web14.js +1 -1
- package/dist/web/index.web140.js +4 -4
- package/dist/web/index.web141.js +4 -4
- package/dist/web/index.web143.js +3 -3
- package/dist/web/index.web145.js +3 -3
- package/dist/web/index.web146.js +2 -2
- package/dist/web/index.web147.js +4 -4
- package/dist/web/index.web148.js +2 -2
- package/dist/web/index.web149.js +2 -2
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web150.js +2 -2
- package/dist/web/index.web151.js +4 -4
- package/dist/web/index.web152.js +1 -1
- package/dist/web/index.web153.js +2 -2
- package/dist/web/index.web154.js +55 -2
- package/dist/web/index.web155.js +11 -2
- package/dist/web/index.web156.js +2 -14
- package/dist/web/index.web157.js +44 -55
- package/dist/web/index.web158.js +13 -6
- package/dist/web/index.web159.js +2 -22
- package/dist/web/index.web16.js +3 -3
- package/dist/web/index.web160.js +2 -18
- package/dist/web/index.web161.js +13 -45
- package/dist/web/index.web162.js +55 -3
- package/dist/web/index.web163.js +6 -3
- package/dist/web/index.web164.js +20 -33
- package/dist/web/index.web165.js +16 -11
- package/dist/web/index.web166.js +45 -4
- package/dist/web/index.web167.js +3 -28
- package/dist/web/index.web168.js +3 -6
- package/dist/web/index.web169.js +31 -29
- package/dist/web/index.web17.js +7 -7
- package/dist/web/index.web170.js +9 -9
- package/dist/web/index.web171.js +4 -55
- package/dist/web/index.web172.js +25 -39
- package/dist/web/index.web173.js +6 -127
- package/dist/web/index.web174.js +30 -102
- package/dist/web/index.web175.js +12 -6
- package/dist/web/index.web176.js +56 -3
- package/dist/web/index.web177.js +38 -74
- package/dist/web/index.web178.js +128 -2
- package/dist/web/index.web179.js +105 -2
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web180.js +6 -37
- package/dist/web/index.web181.js +3 -7
- package/dist/web/index.web182.js +76 -32
- package/dist/web/index.web183.js +2 -15
- package/dist/web/index.web184.js +2 -35
- package/dist/web/index.web185.js +36 -17
- package/dist/web/index.web186.js +6 -8
- package/dist/web/index.web187.js +33 -9
- package/dist/web/index.web188.js +14 -11
- package/dist/web/index.web189.js +33 -12
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web190.js +18 -5
- package/dist/web/index.web191.js +9 -5
- package/dist/web/index.web192.js +10 -10
- package/dist/web/index.web193.js +11 -20
- package/dist/web/index.web194.js +14 -10
- package/dist/web/index.web195.js +6 -20
- package/dist/web/index.web196.js +4 -93
- package/dist/web/index.web197.js +11 -21
- package/dist/web/index.web198.js +2 -118
- package/dist/web/index.web199.js +106 -101
- package/dist/web/index.web20.js +1 -1
- package/dist/web/index.web200.js +2 -79
- package/dist/web/index.web201.js +103 -78
- package/dist/web/index.web202.js +79 -2
- package/dist/web/index.web203.js +78 -108
- package/dist/web/index.web204.js +8 -2
- package/dist/web/index.web205.js +2 -8
- package/dist/web/index.web206.js +369 -2
- package/dist/web/index.web207.js +811 -353
- package/dist/web/index.web208.js +38 -826
- package/dist/web/index.web209.js +2 -39
- package/dist/web/index.web21.js +1 -1
- package/dist/web/index.web210.js +70 -2
- package/dist/web/index.web211.js +31 -66
- package/dist/web/index.web212.js +13 -33
- package/dist/web/index.web213.js +19 -13
- package/dist/web/index.web214.js +10 -21
- package/dist/web/index.web215.js +20 -2
- package/dist/web/index.web216.js +93 -19
- package/dist/web/index.web217.js +20 -32
- package/dist/web/index.web218.js +118 -7
- package/dist/web/index.web219.js +19 -16
- package/dist/web/index.web22.js +1 -1
- package/dist/web/index.web220.js +2 -28
- package/dist/web/index.web221.js +19 -7
- package/dist/web/index.web222.js +7 -11
- package/dist/web/index.web223.js +32 -12
- package/dist/web/index.web224.js +45 -8
- package/dist/web/index.web225.js +2 -15
- package/dist/web/index.web226.js +2 -81
- package/dist/web/index.web227.js +2 -47
- package/dist/web/index.web228.js +2 -4
- package/dist/web/index.web229.js +18 -2
- package/dist/web/index.web23.js +1 -1
- package/dist/web/index.web230.js +28 -2
- package/dist/web/index.web231.js +8 -2
- package/dist/web/index.web232.js +11 -5
- package/dist/web/index.web233.js +11 -77
- package/dist/web/index.web234.js +9 -14
- package/dist/web/index.web235.js +19 -0
- package/dist/web/index.web236.js +83 -0
- package/dist/web/index.web237.js +7 -0
- package/dist/web/index.web238.js +17 -0
- package/dist/web/index.web239.js +81 -0
- package/dist/web/index.web24.js +1 -1
- package/dist/web/index.web25.js +6 -6
- package/dist/web/index.web26.js +7 -7
- package/dist/web/index.web27.js +6 -6
- package/dist/web/index.web28.js +6 -6
- package/dist/web/index.web29.js +6 -6
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +6 -6
- package/dist/web/index.web31.js +7 -7
- package/dist/web/index.web32.js +6 -6
- package/dist/web/index.web33.js +6 -6
- package/dist/web/index.web34.js +2 -2
- package/dist/web/index.web35.js +6 -6
- package/dist/web/index.web36.js +6 -6
- package/dist/web/index.web37.js +7 -7
- package/dist/web/index.web38.js +2 -2
- package/dist/web/index.web39.js +6 -6
- package/dist/web/index.web40.js +1 -1
- package/dist/web/index.web41.js +2 -2
- package/dist/web/index.web42.js +1 -1
- package/dist/web/index.web43.js +1 -1
- package/dist/web/index.web44.js +1 -1
- package/dist/web/index.web45.js +4 -4
- package/dist/web/index.web46.js +1 -1
- package/dist/web/index.web47.js +4 -4
- package/dist/web/index.web48.js +4 -4
- package/dist/web/index.web49.js +3 -3
- package/dist/web/index.web5.js +1 -1
- package/dist/web/index.web50.js +2 -2
- package/dist/web/index.web52.js +4 -4
- package/dist/web/index.web53.js +3 -3
- package/dist/web/index.web54.js +4 -4
- package/dist/web/index.web55.js +6 -6
- package/dist/web/index.web56.js +6 -6
- package/dist/web/index.web57.js +6 -6
- package/dist/web/index.web59.js +47 -19
- package/dist/web/index.web60.js +85 -10
- package/dist/web/index.web61.js +20 -36
- package/dist/web/index.web62.js +10 -30
- package/dist/web/index.web63.js +36 -65
- package/dist/web/index.web64.js +26 -20
- package/dist/web/index.web65.js +63 -15
- package/dist/web/index.web66.js +23 -22
- package/dist/web/index.web67.js +15 -6
- package/dist/web/index.web68.js +22 -46
- package/dist/web/index.web69.js +7 -19
- package/dist/web/index.web70.js +47 -48
- package/dist/web/index.web71.js +17 -36
- package/dist/web/index.web72.js +45 -310
- package/dist/web/index.web73.js +37 -17
- package/dist/web/index.web74.js +323 -126
- package/dist/web/index.web75.js +13 -65
- package/dist/web/index.web76.js +130 -4
- package/dist/web/index.web77.js +86 -55
- package/dist/web/index.web78.js +5 -155
- package/dist/web/index.web79.js +55 -67
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web80.js +156 -34
- package/dist/web/index.web81.js +65 -87
- package/dist/web/index.web82.js +35 -43
- package/dist/web/index.web83.js +88 -30
- package/dist/web/index.web84.js +40 -15
- package/dist/web/index.web85.js +32 -42
- package/dist/web/index.web86.js +18 -3
- package/dist/web/index.web87.js +42 -44
- package/dist/web/index.web88.js +3 -24
- package/dist/web/index.web89.js +43 -8
- package/dist/web/index.web9.js +5 -5
- package/dist/web/index.web90.js +22 -27
- package/dist/web/index.web91.js +8 -40
- package/dist/web/index.web92.js +24 -48
- package/dist/web/index.web93.js +21 -81
- package/dist/web/index.web94.js +15 -24
- package/dist/web/index.web95.js +27 -158
- package/dist/web/index.web96.js +39 -46
- package/dist/web/index.web97.js +49 -26
- package/dist/web/index.web98.js +77 -68
- package/dist/web/index.web99.js +25 -8
- package/dist/web-types/actions/authenticateWithJWT.d.ts +64 -0
- package/dist/web-types/actions/cancelMfaVerification.d.ts +19 -0
- package/dist/web-types/actions/createDelegation.d.ts +18 -0
- package/dist/web-types/actions/createEvmEip7702Delegation.d.ts +27 -0
- package/dist/web-types/actions/createEvmEoaAccount.d.ts +12 -0
- package/dist/web-types/actions/createEvmSmartAccount.d.ts +25 -0
- package/dist/web-types/actions/createKeyExportIframe.d.ts +148 -0
- package/dist/web-types/actions/createSolanaAccount.d.ts +12 -0
- package/dist/web-types/actions/createSpendPermission.d.ts +36 -0
- package/dist/web-types/actions/executeSwap.d.ts +105 -0
- package/dist/web-types/actions/exportEvmAccount.d.ts +18 -0
- package/dist/web-types/actions/exportSolanaAccount.d.ts +17 -0
- package/dist/web-types/actions/fetchWithX402.d.ts +27 -0
- package/dist/web-types/actions/getAccessToken.d.ts +11 -0
- package/dist/web-types/actions/getAccessTokenExpiration.d.ts +9 -0
- package/dist/web-types/actions/getCurrentUser.d.ts +9 -0
- package/dist/web-types/actions/getCurrentUserSync.d.ts +9 -0
- package/dist/web-types/actions/getEvmEip7702DelegationOperation.d.ts +12 -0
- package/dist/web-types/actions/getMfaConfig.d.ts +17 -0
- package/dist/web-types/actions/getProjectConfig.d.ts +13 -0
- package/dist/web-types/actions/getSwapPrice.d.ts +85 -0
- package/dist/web-types/actions/getUserOperation.d.ts +18 -0
- package/dist/web-types/actions/initialize.d.ts +11 -0
- package/dist/web-types/actions/initiateMfaEnrollment.d.ts +61 -0
- package/dist/web-types/actions/initiateMfaVerification.d.ts +27 -0
- package/dist/web-types/actions/isSignedIn.d.ts +12 -0
- package/dist/web-types/actions/linkApple.d.ts +7 -0
- package/dist/web-types/actions/linkEmail.d.ts +8 -0
- package/dist/web-types/actions/linkGoogle.d.ts +5 -0
- package/dist/web-types/actions/linkOAuth.d.ts +8 -0
- package/dist/web-types/actions/linkSms.d.ts +8 -0
- package/dist/web-types/actions/linkTelegram.d.ts +5 -0
- package/dist/web-types/actions/listSpendPermissions.d.ts +32 -0
- package/dist/web-types/actions/onAuthStateChange.d.ts +16 -0
- package/dist/web-types/actions/onOAuthStateChange.d.ts +6 -0
- package/dist/web-types/actions/recordMfaEnrollmentPrompted.d.ts +18 -0
- package/dist/web-types/actions/revokeDelegation.d.ts +12 -0
- package/dist/web-types/actions/revokeSpendPermission.d.ts +34 -0
- package/dist/web-types/actions/sendEvmEoaUsdc.d.ts +32 -0
- package/dist/web-types/actions/sendEvmSmartAccountUsdc.d.ts +37 -0
- package/dist/web-types/actions/sendEvmTransaction.d.ts +30 -0
- package/dist/web-types/actions/sendSolanaTransaction.d.ts +6 -0
- package/dist/web-types/actions/sendSolanaUsdc.d.ts +60 -0
- package/dist/web-types/actions/sendUsdc.d.ts +79 -0
- package/dist/web-types/actions/sendUserOperation.d.ts +29 -0
- package/dist/web-types/actions/signEvmHash.d.ts +15 -0
- package/dist/web-types/actions/signEvmMessage.d.ts +19 -0
- package/dist/web-types/actions/signEvmTransaction.d.ts +27 -0
- package/dist/web-types/actions/signEvmTypedData.d.ts +50 -0
- package/dist/web-types/actions/signInWithEmail.d.ts +12 -0
- package/dist/web-types/actions/signInWithOAuth.d.ts +40 -0
- package/dist/web-types/actions/signInWithSms.d.ts +12 -0
- package/dist/web-types/actions/signOut.d.ts +8 -0
- package/dist/web-types/actions/signSolanaMessage.d.ts +20 -0
- package/dist/web-types/actions/signSolanaTransaction.d.ts +18 -0
- package/dist/web-types/actions/submitMfaEnrollment.d.ts +37 -0
- package/dist/web-types/actions/submitMfaVerification.d.ts +30 -0
- package/dist/web-types/actions/verifyEmailOTP.d.ts +13 -0
- package/dist/web-types/actions/verifyOAuth.d.ts +36 -0
- package/dist/web-types/actions/verifySmsOTP.d.ts +13 -0
- package/dist/web-types/actions/verifyTelegramOAuth.d.ts +6 -0
- package/dist/web-types/actions/waitForEvmEip7702Delegation.d.ts +34 -0
- package/dist/web-types/auth/authManager.d.ts +115 -0
- package/dist/web-types/auth/createAuthManager.d.ts +9 -0
- package/dist/web-types/auth/customAuthManager.d.ts +46 -0
- package/dist/web-types/auth/oAuthManager.d.ts +28 -0
- package/dist/web-types/auth/toAuthState.d.ts +15 -0
- package/dist/web-types/auth/types.d.ts +81 -0
- package/dist/web-types/auth/withAuth.d.ts +14 -0
- package/dist/web-types/constants.d.ts +3 -0
- package/dist/web-types/eip1193/createCDPEmbeddedWallet.d.ts +75 -0
- package/dist/web-types/eip1193/createProvider.d.ts +39 -0
- package/dist/web-types/eip1193/errors.d.ts +105 -0
- package/dist/web-types/eip1193/eventEmitter.d.ts +29 -0
- package/dist/web-types/eip1193/handlers/createEOAHandlers.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/createSmartAccountHandlers.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/eoa/handleAccounts.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/eoa/handleEthSign.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/eoa/handleGetCallsStatus.d.ts +8 -0
- package/dist/web-types/eip1193/handlers/eoa/handleGetCapabilities.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/eoa/handlePersonalSign.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/eoa/handleRequestAccounts.d.ts +10 -0
- package/dist/web-types/eip1193/handlers/eoa/handleSendCalls.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/eoa/handleSendTransaction.d.ts +9 -0
- package/dist/web-types/eip1193/handlers/eoa/handleSignTypedData.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/shared/handleChainId.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/shared/handleDisconnect.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/shared/handleSwitchEthereumChain.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleAccounts.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleEthSign.d.ts +8 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleGetCallsStatus.d.ts +8 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleGetCapabilities.d.ts +6 -0
- package/dist/web-types/eip1193/handlers/smart-account/handlePersonalSign.d.ts +8 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleRequestAccounts.d.ts +10 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleSendCalls.d.ts +7 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleSendTransaction.d.ts +9 -0
- package/dist/web-types/eip1193/handlers/smart-account/handleSignTypedData.d.ts +8 -0
- package/dist/web-types/eip1193/handlers/types.d.ts +3 -0
- package/dist/web-types/eip1193/types.d.ts +99 -0
- package/dist/web-types/errors.d.ts +90 -1
- package/dist/web-types/index.d.ts +3 -0
- package/dist/web-types/index.native.d.ts +8 -0
- package/dist/web-types/index.web.d.ts +8 -0
- package/dist/web-types/mfa/protectedActions.d.ts +41 -0
- package/dist/web-types/mfa/state.d.ts +95 -0
- package/dist/web-types/mfa/utils.d.ts +59 -0
- package/dist/web-types/mfa/withMfa.d.ts +45 -0
- package/dist/web-types/mocks/config.d.ts +11 -0
- package/dist/web-types/mocks/mockAuthManager.d.ts +86 -0
- package/dist/web-types/mocks/mockOAuthManager.d.ts +28 -0
- package/dist/web-types/mocks/user.d.ts +30 -0
- package/dist/web-types/platform/native/appleAuthRegistry.d.ts +23 -0
- package/dist/web-types/platform/native/attestation.d.ts +16 -0
- package/dist/web-types/platform/native/attestationRegistry.d.ts +28 -0
- package/dist/web-types/platform/native/crypto.d.ts +4 -0
- package/dist/web-types/platform/native/deviceInfo.d.ts +3 -0
- package/dist/web-types/platform/native/deviceInfoRegistry.d.ts +24 -0
- package/dist/web-types/platform/native/secureStorage.d.ts +6 -0
- package/dist/web-types/platform/native/storage.d.ts +7 -0
- package/dist/web-types/platform/registry.d.ts +61 -0
- package/dist/web-types/platform/types.d.ts +270 -0
- package/dist/web-types/platform/web/crypto.d.ts +4 -0
- package/dist/web-types/platform/web/storage.d.ts +4 -0
- package/dist/web-types/secureIframe/data.d.ts +15 -0
- package/dist/web-types/secureIframe/types.d.ts +69 -0
- package/dist/web-types/secureIframe/utils.d.ts +66 -0
- package/dist/web-types/shared/base64.d.ts +14 -0
- package/dist/web-types/shared/completeAuthFlow.d.ts +9 -0
- package/dist/web-types/shared/createEvmAccountIfNeeded.d.ts +9 -0
- package/dist/web-types/shared/createSolanaAccountIfNeeded.d.ts +8 -0
- package/dist/web-types/shared/initiateSignIn.d.ts +13 -0
- package/dist/web-types/shared/textEncoding.d.ts +14 -0
- package/dist/web-types/shared/types.d.ts +5 -0
- package/dist/web-types/shared/utils.d.ts +33 -0
- package/dist/web-types/shared/validators.d.ts +8 -0
- package/dist/web-types/shared/verifyOTP.d.ts +8 -0
- package/dist/web-types/solana-kit/toTransactionSigner.d.ts +7 -0
- package/dist/web-types/spend-permissions/toSpendPermission.d.ts +7 -0
- package/dist/web-types/spend-permissions/types.d.ts +27 -0
- package/dist/web-types/state.d.ts +66 -0
- package/dist/web-types/swap/errors.d.ts +8 -0
- package/dist/web-types/swap/resolveAccount.d.ts +11 -0
- package/dist/web-types/swap/validation.d.ts +20 -0
- package/dist/web-types/types.d.ts +376 -2
- package/dist/web-types/utils/validatePhoneNumber.d.ts +25 -0
- package/dist/web-types/version.d.ts +5 -1
- package/dist/web-types/viem/factory.d.ts +6 -0
- package/dist/web-types/viem/signAndWrapTypedData.d.ts +107 -0
- package/dist/web-types/viem/toViemAccount.d.ts +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { EvmSwapsNetwork } from '@coinbase/cdp-api-client';
|
|
2
|
+
import { EvmAddress, Hex, SwapFees } from '../types.js';
|
|
3
|
+
/** Request parameters for executing a token swap. */
|
|
4
|
+
export type ExecuteSwapOptions = {
|
|
5
|
+
/** The network on which to perform the swap. */
|
|
6
|
+
network: EvmSwapsNetwork;
|
|
7
|
+
/** The 0x-prefixed contract address of the token to sell. */
|
|
8
|
+
fromToken: EvmAddress;
|
|
9
|
+
/** The 0x-prefixed contract address of the token to buy. */
|
|
10
|
+
toToken: EvmAddress;
|
|
11
|
+
/** The amount of fromToken to sell, in atomic units. */
|
|
12
|
+
fromAmount: string;
|
|
13
|
+
/** Maximum slippage in basis points (100 = 1%). Default is 100. */
|
|
14
|
+
slippageBps?: number;
|
|
15
|
+
/** The taker account address. If omitted, auto-selected from the signed-in user's accounts. */
|
|
16
|
+
account?: EvmAddress;
|
|
17
|
+
/** Whether to use the CDP Paymaster for gas sponsorship. Only applicable for smart accounts; ignored for EOA. Cannot be used together with `paymasterUrl`. */
|
|
18
|
+
useCdpPaymaster?: boolean;
|
|
19
|
+
/** Custom paymaster URL for gas sponsorship. Only applicable for smart accounts; ignored for EOA. Cannot be used together with `useCdpPaymaster`. */
|
|
20
|
+
paymasterUrl?: string;
|
|
21
|
+
/** Optional idempotency key for safe retries. */
|
|
22
|
+
idempotencyKey?: string;
|
|
23
|
+
};
|
|
24
|
+
type SwapResultBase = {
|
|
25
|
+
/** The taker address. */
|
|
26
|
+
account: EvmAddress;
|
|
27
|
+
/** The network. */
|
|
28
|
+
network: EvmSwapsNetwork;
|
|
29
|
+
/** The fromToken address. */
|
|
30
|
+
fromToken: string;
|
|
31
|
+
/** The toToken address. */
|
|
32
|
+
toToken: string;
|
|
33
|
+
/** Amount of fromToken sold, in atomic units. */
|
|
34
|
+
fromAmount: string;
|
|
35
|
+
/** Expected output from the quote, in atomic units. */
|
|
36
|
+
toAmount: string;
|
|
37
|
+
/** Minimum guaranteed output, in atomic units. */
|
|
38
|
+
minToAmount: string;
|
|
39
|
+
/** Fees as quoted at execute time, or null. */
|
|
40
|
+
fees: SwapFees | null;
|
|
41
|
+
/**
|
|
42
|
+
* The estimated total network cost of the swap.
|
|
43
|
+
*
|
|
44
|
+
* On chains where there is no L1 data cost, it is calculated as gas * gasPrice. On chains where there is an L1 data cost, it is calculated as gas * gasPrice + L1 data cost.
|
|
45
|
+
*/
|
|
46
|
+
totalNetworkFee: string | null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Result of a successful swap execution for an EOA account.
|
|
50
|
+
*
|
|
51
|
+
* @interface
|
|
52
|
+
*/
|
|
53
|
+
export type ExecuteEvmEoaSwapResult = SwapResultBase & {
|
|
54
|
+
/** Always "evm-eoa". */
|
|
55
|
+
type: "evm-eoa";
|
|
56
|
+
/** The submitted transaction hash. */
|
|
57
|
+
transactionHash: Hex;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Result of a successful swap execution for a smart account.
|
|
61
|
+
*
|
|
62
|
+
* @interface
|
|
63
|
+
*/
|
|
64
|
+
export type ExecuteEvmSmartSwapResult = SwapResultBase & {
|
|
65
|
+
/** Always "evm-smart". */
|
|
66
|
+
type: "evm-smart";
|
|
67
|
+
/** The user operation hash. */
|
|
68
|
+
userOpHash: Hex;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Result of a successful swap execution, discriminated by account type.
|
|
72
|
+
*
|
|
73
|
+
* @see {@link ExecuteEvmEoaSwapResult}
|
|
74
|
+
* @see {@link ExecuteEvmSmartSwapResult}
|
|
75
|
+
*/
|
|
76
|
+
export type ExecuteSwapResult = ExecuteEvmEoaSwapResult | ExecuteEvmSmartSwapResult;
|
|
77
|
+
/**
|
|
78
|
+
* Executes a token swap on behalf of the signed-in user.
|
|
79
|
+
* The backend atomically quotes, signs Permit2 (if needed), simulates, and submits the transaction.
|
|
80
|
+
* Returns immediately with a transaction hash (EOA) or user operation hash (smart account).
|
|
81
|
+
*
|
|
82
|
+
* @param options - The swap execution parameters.
|
|
83
|
+
* @returns A discriminated union result with the transaction/operation hash and swap details.
|
|
84
|
+
* @throws An {@link InputValidationError} if parameters are invalid.
|
|
85
|
+
* @throws A {@link SwapError} for known failures (insufficient liquidity/balance/allowance, simulation failure).
|
|
86
|
+
* @throws An {@link APIError} for auth, network, or server errors.
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const result = await executeSwap({
|
|
90
|
+
* network: "base",
|
|
91
|
+
* fromToken: "0x4200000000000000000000000000000000000006",
|
|
92
|
+
* toToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
93
|
+
* fromAmount: "100000000000000000",
|
|
94
|
+
* slippageBps: 100,
|
|
95
|
+
* });
|
|
96
|
+
*
|
|
97
|
+
* if (result.type === "evm-eoa") {
|
|
98
|
+
* console.log("Transaction hash:", result.transactionHash);
|
|
99
|
+
* } else {
|
|
100
|
+
* console.log("User operation hash:", result.userOpHash);
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export declare const executeSwap: (options: ExecuteSwapOptions) => Promise<ExecuteSwapResult>;
|
|
105
|
+
export {};
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import { ExportEvmAccountOptions, ExportEvmAccountResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Exports an EVM account's private key.
|
|
4
|
+
*
|
|
5
|
+
* @param options - The options for the exporting.
|
|
6
|
+
* @param options.evmAccount - The EVM account to export. Found on the user object of the signed in user.
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript lines
|
|
9
|
+
* const result = await exportEvmAccount({
|
|
10
|
+
* evmAccount: "0x1234..."
|
|
11
|
+
* });
|
|
12
|
+
* ```
|
|
13
|
+
* @returns The result of the export.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated This function will be removed soon. Use `createEvmKeyExportIframe` instead for a more secure key export experience
|
|
16
|
+
* that never exposes the private key to your application's JavaScript context.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link createEvmKeyExportIframe}
|
|
19
|
+
*/
|
|
2
20
|
export declare const exportEvmAccount: (options: ExportEvmAccountOptions) => Promise<ExportEvmAccountResult>;
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
import { ExportSolanaAccountOptions, ExportSolanaAccountResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Exports the private key of a Solana account.
|
|
4
|
+
*
|
|
5
|
+
* @param options - The options for exporting the account.
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript lines
|
|
8
|
+
* const result = await exportSolanaAccount({
|
|
9
|
+
* solanaAccount: "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
|
|
10
|
+
* });
|
|
11
|
+
* ```
|
|
12
|
+
* @returns The result of the export.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated This function will be removed soon. Use `createSolanaKeyExportIframe` instead for a more secure key export experience
|
|
15
|
+
* that never exposes the private key to your application's JavaScript context.
|
|
16
|
+
*
|
|
17
|
+
* @see {@link createSolanaKeyExportIframe}
|
|
18
|
+
*/
|
|
2
19
|
export declare const exportSolanaAccount: (options: ExportSolanaAccountOptions) => Promise<ExportSolanaAccountResult>;
|
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import { EvmAddress } from '../types.js';
|
|
2
2
|
import { PaymentRequirementsSelector, X402Config, wrapFetchWithPayment } from 'x402-fetch';
|
|
3
|
+
/**
|
|
4
|
+
* Options for the fetchWithX402 function.
|
|
5
|
+
*/
|
|
3
6
|
export type FetchWithX402Options = {
|
|
7
|
+
/** The address of the account to use for the fetch function. */
|
|
4
8
|
address?: EvmAddress | string;
|
|
9
|
+
/** The fetch function to use for the fetch function. */
|
|
5
10
|
fetch?: typeof globalThis.fetch;
|
|
11
|
+
/** The maximum allowed payment amount in base units (defaults to 0.1 USDC) */
|
|
6
12
|
maxValue?: bigint;
|
|
13
|
+
/** A function that selects the payment requirements from the response */
|
|
7
14
|
paymentRequirementsSelector?: PaymentRequirementsSelector;
|
|
15
|
+
/** Optional configuration for X402 operations (e.g., custom RPC URLs) */
|
|
8
16
|
config?: X402Config;
|
|
9
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Return type for the fetchWithX402 function.
|
|
20
|
+
*/
|
|
10
21
|
export type FetchWithX402ReturnType = {
|
|
22
|
+
/** The wrapped fetch function with payment handling. */
|
|
11
23
|
fetchWithPayment: ReturnType<typeof wrapFetchWithPayment>;
|
|
12
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Hook that provides a wrapped fetch function with payment handling.
|
|
27
|
+
*
|
|
28
|
+
* @param options - Configuration object for the fetch function
|
|
29
|
+
* @param options.address - The address to use for the fetch function
|
|
30
|
+
* @returns A wrapped fetch function with payment handling
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx lines
|
|
34
|
+
* const { fetchWithPayment } = fetchWithX402();
|
|
35
|
+
* const response = await fetchWithPayment("https://x402-resource.com", {
|
|
36
|
+
* method: "GET",
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
13
40
|
export declare function fetchWithX402(options?: FetchWithX402Options): FetchWithX402ReturnType;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the access token for the current user.
|
|
3
|
+
*
|
|
4
|
+
* @param options - The options for getting the token.
|
|
5
|
+
* @param options.forceRefresh - Whether to force a refresh of the token.
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript lines
|
|
8
|
+
* const accessToken = await getAccessToken();
|
|
9
|
+
* ```
|
|
10
|
+
* @returns The access token for the current user, or null if no user is signed in.
|
|
11
|
+
*/
|
|
1
12
|
export declare const getAccessToken: (options?: {
|
|
2
13
|
forceRefresh: boolean;
|
|
3
14
|
}) => Promise<string | null>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the expiration time of the access token for the current user.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript lines
|
|
6
|
+
* const accessTokenExpiration = await getAccessTokenExpiration();
|
|
7
|
+
* ```
|
|
8
|
+
* @returns The expiration time of the access token for the current user, or null if no user is signed in.
|
|
9
|
+
*/
|
|
1
10
|
export declare const getAccessTokenExpiration: () => Promise<number | null>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { User } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Gets the currently signed-in user, if any.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript lines
|
|
7
|
+
* const user = await getCurrentUser();
|
|
8
|
+
* ```
|
|
9
|
+
* @returns The currently signed-in user, or null if no user is signed in.
|
|
10
|
+
*/
|
|
2
11
|
export declare const getCurrentUser: () => Promise<User | null>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { User } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Gets the currently signed-in user, if any.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript lines
|
|
7
|
+
* const user = getCurrentUserSync();
|
|
8
|
+
* ```
|
|
9
|
+
* @returns The currently signed-in user, or null if no user is signed in.
|
|
10
|
+
*/
|
|
2
11
|
export declare const getCurrentUserSync: () => User | null;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { EvmEip7702DelegationOperation } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Options for getting the status of an EIP-7702 delegation operation.
|
|
4
|
+
*/
|
|
2
5
|
export type GetEvmEip7702DelegationOperationOptions = {
|
|
6
|
+
/** The unique identifier for the delegation operation returned by createEvmEip7702Delegation. */
|
|
3
7
|
delegationOperationId: string;
|
|
4
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Returns the current status of an EIP-7702 delegation operation for an end user's EVM account.
|
|
11
|
+
* Use the delegationOperationId returned by createEvmEip7702Delegation to poll for operation completion.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Options containing the delegation operation ID.
|
|
14
|
+
* @returns The delegation operation status (PENDING, SUBMITTED, COMPLETED, or FAILED).
|
|
15
|
+
* @throws Error if the user is not signed in.
|
|
16
|
+
*/
|
|
5
17
|
export declare function getEvmEip7702DelegationOperation(options: GetEvmEip7702DelegationOperationOptions): Promise<EvmEip7702DelegationOperation>;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
import { MfaConfig } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Result of getMfaConfig.
|
|
4
|
+
*/
|
|
2
5
|
export type GetMfaConfigResult = MfaConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the MFA configuration for the current project.
|
|
8
|
+
* This endpoint returns information about whether MFA is enabled for the project
|
|
9
|
+
* and the configuration for TOTP authentication.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript lines
|
|
13
|
+
* const result = await getMfaConfig();
|
|
14
|
+
* if (result?.totpConfig?.enabled) {
|
|
15
|
+
* console.log("TOTP MFA is enabled for this project");
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @returns The MFA configuration for the project.
|
|
19
|
+
*/
|
|
3
20
|
export declare const getMfaConfig: () => Promise<GetMfaConfigResult>;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import { ProjectConfig } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Result of getProjectConfig.
|
|
4
|
+
*/
|
|
2
5
|
export type GetProjectConfigResult = ProjectConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the project configuration for the current project.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript lines
|
|
11
|
+
* const result = await getProjectConfig();
|
|
12
|
+
* console.log("Project name:", result.name);
|
|
13
|
+
* ```
|
|
14
|
+
* @returns The project configuration.
|
|
15
|
+
*/
|
|
3
16
|
export declare const getProjectConfig: () => Promise<GetProjectConfigResult>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EvmSwapsNetwork } from '@coinbase/cdp-api-client';
|
|
2
|
+
import { EvmAddress, SwapFees, SwapIssuesAllowance, SwapIssuesBalance } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Potential issues discovered during preflight checks that could prevent the swap from being executed successfully. Null if no issues were detected.
|
|
5
|
+
*/
|
|
6
|
+
export type SwapIssues = {
|
|
7
|
+
/**
|
|
8
|
+
* Details of the allowance that the `taker` must set in order to execute the swap successfully. Null if no allowance is required.
|
|
9
|
+
*/
|
|
10
|
+
allowance: SwapIssuesAllowance | null;
|
|
11
|
+
/**
|
|
12
|
+
* Details of the `fromToken` balance that the `taker` must hold. Null if the `taker` has a sufficient balance.
|
|
13
|
+
*/
|
|
14
|
+
balance: SwapIssuesBalance | null;
|
|
15
|
+
};
|
|
16
|
+
/** Request parameters for getting an indicative swap price. */
|
|
17
|
+
export type GetSwapPriceOptions = {
|
|
18
|
+
/** The network on which to perform the swap. */
|
|
19
|
+
network: EvmSwapsNetwork;
|
|
20
|
+
/** The 0x-prefixed contract address of the token to sell. */
|
|
21
|
+
fromToken: EvmAddress;
|
|
22
|
+
/** The 0x-prefixed contract address of the token to buy. */
|
|
23
|
+
toToken: EvmAddress;
|
|
24
|
+
/** The amount of fromToken to sell, in atomic units. */
|
|
25
|
+
fromAmount: string;
|
|
26
|
+
/** Maximum slippage in basis points (100 = 1%). Default is 100. */
|
|
27
|
+
slippageBps?: number;
|
|
28
|
+
/** The taker account address. If omitted, auto-selected from the signed-in user's accounts. */
|
|
29
|
+
account?: EvmAddress;
|
|
30
|
+
};
|
|
31
|
+
/** Returned when liquidity is available for the requested swap. */
|
|
32
|
+
export type GetSwapPriceResult = {
|
|
33
|
+
/** Always true when this type is returned. */
|
|
34
|
+
liquidityAvailable: true;
|
|
35
|
+
/** The network. */
|
|
36
|
+
network: EvmSwapsNetwork;
|
|
37
|
+
/** The fromToken address. */
|
|
38
|
+
fromToken: string;
|
|
39
|
+
/** The fromAmount in atomic units. */
|
|
40
|
+
fromAmount: string;
|
|
41
|
+
/** The toToken address. */
|
|
42
|
+
toToken: string;
|
|
43
|
+
/** Expected output at current market price, in atomic units. */
|
|
44
|
+
toAmount: string;
|
|
45
|
+
/** Minimum output after slippage, in atomic units. */
|
|
46
|
+
minToAmount: string;
|
|
47
|
+
/** Fees to be deducted in this transaction, or null. */
|
|
48
|
+
fees: SwapFees | null;
|
|
49
|
+
/** Preflight issues (e.g. insufficient allowance or balance) that may prevent execution, or null. */
|
|
50
|
+
issues: SwapIssues | null;
|
|
51
|
+
/**
|
|
52
|
+
* The estimated total network cost of the swap.
|
|
53
|
+
*
|
|
54
|
+
* On chains where there is no L1 data cost, it is calculated as gas * gasPrice. On chains where there is an L1 data cost, it is calculated as gas * gasPrice + L1 data cost.
|
|
55
|
+
*/
|
|
56
|
+
totalNetworkFee: string | null;
|
|
57
|
+
};
|
|
58
|
+
/** Returned when no swap route exists for the pair/amount. */
|
|
59
|
+
export type SwapUnavailableResult = {
|
|
60
|
+
/** Always false when this type is returned. */
|
|
61
|
+
liquidityAvailable: false;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Gets a non-binding indicative price for a token swap.
|
|
65
|
+
* Read-only operation — does not modify any on-chain state.
|
|
66
|
+
*
|
|
67
|
+
* @param options - The swap price request parameters.
|
|
68
|
+
* @returns Price estimate if liquidity is available, otherwise `{ liquidityAvailable: false }`.
|
|
69
|
+
* @throws An {@link InputValidationError} if parameters are invalid.
|
|
70
|
+
* @throws An Error if the response is missing required fields when liquidity is available.
|
|
71
|
+
* @example
|
|
72
|
+
* ```typescript
|
|
73
|
+
* const price = await getSwapPrice({
|
|
74
|
+
* network: "base",
|
|
75
|
+
* fromToken: "0x4200000000000000000000000000000000000006",
|
|
76
|
+
* toToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
77
|
+
* fromAmount: "100000000000000000",
|
|
78
|
+
* });
|
|
79
|
+
*
|
|
80
|
+
* if (price.liquidityAvailable) {
|
|
81
|
+
* console.log("Expected output:", price.toAmount);
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare const getSwapPrice: (options: GetSwapPriceOptions) => Promise<GetSwapPriceResult | SwapUnavailableResult>;
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import { GetUserOperationOptions, GetUserOperationResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Gets a user operation by its hash.
|
|
4
|
+
*
|
|
5
|
+
* @param options - The options for getting the user operation.
|
|
6
|
+
* @param options.userOperationHash - The user operation hash.
|
|
7
|
+
* @param options.evmSmartAccount - The EVM Smart Account that sent the user operation.
|
|
8
|
+
* @param options.network - The network the user operation was sent on.
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript lines
|
|
11
|
+
* const result = await getUserOperation({
|
|
12
|
+
* userOperationHash: "0x123...",
|
|
13
|
+
* evmSmartAccount: "0xabc...",
|
|
14
|
+
* network: "base-sepolia"
|
|
15
|
+
* });
|
|
16
|
+
* console.log("User Operation Status:", result.transactionHash);
|
|
17
|
+
* ```
|
|
18
|
+
* @returns The user operation details.
|
|
19
|
+
*/
|
|
2
20
|
export declare const getUserOperation: (options: GetUserOperationOptions) => Promise<GetUserOperationResult>;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { Config } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Initializes the core package. Must be called before using any other functions.
|
|
4
|
+
*
|
|
5
|
+
* @param config - The configuration for the core package.
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript lines
|
|
8
|
+
* await initialize({
|
|
9
|
+
* projectId: "your-project-id", // Your project ID from the CDP Portal
|
|
10
|
+
* });
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
2
13
|
export declare const initialize: (config: Config) => Promise<void>;
|
|
@@ -1,21 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request parameters for initiating TOTP MFA enrollment.
|
|
3
|
+
*/
|
|
1
4
|
export type InitiateTotpMfaOptions = {
|
|
5
|
+
/** The MFA method to use. */
|
|
2
6
|
mfaMethod: "totp";
|
|
7
|
+
/** Optional idempotency key for safe retries. */
|
|
3
8
|
idempotencyKey?: string;
|
|
4
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Request parameters for initiating SMS MFA enrollment.
|
|
12
|
+
*/
|
|
5
13
|
export type InitiateSmsMfaOptions = {
|
|
14
|
+
/** The MFA method to use. */
|
|
6
15
|
mfaMethod: "sms";
|
|
16
|
+
/**
|
|
17
|
+
* Phone number in E.164 format (e.g., +14155552671).
|
|
18
|
+
* You can use any phone number for SMS MFA, even if it differs from your SMS authentication phone number.
|
|
19
|
+
*/
|
|
7
20
|
phoneNumber: string;
|
|
21
|
+
/** Optional idempotency key for safe retries. */
|
|
8
22
|
idempotencyKey?: string;
|
|
9
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Request parameters for initiating MFA operations.
|
|
26
|
+
*/
|
|
10
27
|
export type InitiateMfaOptions = InitiateTotpMfaOptions | InitiateSmsMfaOptions;
|
|
28
|
+
/**
|
|
29
|
+
* Result of TOTP MFA enrollment initiation.
|
|
30
|
+
*/
|
|
11
31
|
export type InitiateTotpMfaResult = {
|
|
32
|
+
/** The MFA method that was initiated. */
|
|
12
33
|
method: "totp";
|
|
34
|
+
/** The otpauth:// URL for the authenticator app (for QR code generation). */
|
|
13
35
|
authUrl: string;
|
|
36
|
+
/** The base32-encoded TOTP secret (for manual entry). */
|
|
14
37
|
secret: string;
|
|
15
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Result of SMS MFA enrollment initiation.
|
|
41
|
+
*/
|
|
16
42
|
export type InitiateSmsMfaResult = {
|
|
43
|
+
/** The MFA method that was initiated. */
|
|
17
44
|
method: "sms";
|
|
45
|
+
/** Indicates SMS was sent successfully. */
|
|
18
46
|
success: boolean;
|
|
19
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* Result of initiateMfaEnrollment.
|
|
50
|
+
*/
|
|
20
51
|
export type InitiateMfaEnrollmentResult = InitiateTotpMfaResult | InitiateSmsMfaResult;
|
|
52
|
+
/**
|
|
53
|
+
* Initiates MFA enrollment for an end user.
|
|
54
|
+
*
|
|
55
|
+
* For TOTP, this generates a TOTP secret and returns an otpauth:// URL that can be scanned
|
|
56
|
+
* with an authenticator app like Google Authenticator. The secret must be verified within
|
|
57
|
+
* 5 minutes by calling submitMfaEnrollment.
|
|
58
|
+
*
|
|
59
|
+
* For SMS, this sends a 6-digit OTP code to the provided phone number. The OTP code must
|
|
60
|
+
* be verified within 5 minutes. You can use any phone number for SMS MFA, even if it differs
|
|
61
|
+
* from your SMS authentication phone number.
|
|
62
|
+
*
|
|
63
|
+
* @param options - The options for initiating MFA enrollment.
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript lines
|
|
66
|
+
* // TOTP enrollment
|
|
67
|
+
* const totpResult = await initiateMfaEnrollment({ mfaMethod: "totp" });
|
|
68
|
+
* // Display totpResult.authUrl as QR code or provide totpResult.secret for manual entry
|
|
69
|
+
* console.log("Scan this QR code:", totpResult.authUrl);
|
|
70
|
+
* console.log("Or enter this secret manually:", totpResult.secret);
|
|
71
|
+
*
|
|
72
|
+
* // SMS enrollment
|
|
73
|
+
* const smsResult = await initiateMfaEnrollment({
|
|
74
|
+
* mfaMethod: "sms",
|
|
75
|
+
* phoneNumber: "+14155552671"
|
|
76
|
+
* });
|
|
77
|
+
* console.log("SMS sent:", smsResult.success);
|
|
78
|
+
* // User receives SMS with 6-digit code
|
|
79
|
+
* ```
|
|
80
|
+
* @returns The result containing enrollment details specific to the method.
|
|
81
|
+
*/
|
|
21
82
|
export declare const initiateMfaEnrollment: (options: InitiateMfaOptions) => Promise<InitiateMfaEnrollmentResult>;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import { MfaMethod } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Request parameters for initiating MFA verification.
|
|
4
|
+
*/
|
|
2
5
|
export type InitiateMfaVerificationOptions = {
|
|
6
|
+
/** The MFA method to verify ("totp" or "sms"). */
|
|
3
7
|
mfaMethod: MfaMethod;
|
|
8
|
+
/** Optional idempotency key for safe retries. */
|
|
4
9
|
idempotencyKey?: string;
|
|
5
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Initiates an MFA verification flow for operations requiring MFA.
|
|
13
|
+
* This endpoint should be called when a user attempts a sensitive operation
|
|
14
|
+
* (like transaction signing) but doesn't have a valid MFA-verified session.
|
|
15
|
+
*
|
|
16
|
+
* For TOTP, this prepares a verification session.
|
|
17
|
+
* For SMS, this sends a 6-digit OTP code to the user's enrolled phone number.
|
|
18
|
+
*
|
|
19
|
+
* @param options - The options for initiating MFA verification.
|
|
20
|
+
* @param options.mfaMethod - The MFA method to verify ("totp" or "sms").
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript lines
|
|
23
|
+
* // TOTP verification
|
|
24
|
+
* await initiateMfaVerification({ mfaMethod: "totp" });
|
|
25
|
+
* // Prompt user for code from authenticator app
|
|
26
|
+
*
|
|
27
|
+
* // SMS verification
|
|
28
|
+
* await initiateMfaVerification({ mfaMethod: "sms" });
|
|
29
|
+
* // SMS sent to user's phone - prompt for code
|
|
30
|
+
* ```
|
|
31
|
+
* @returns A promise that resolves if MFA initiation is successful.
|
|
32
|
+
*/
|
|
6
33
|
export declare const initiateMfaVerification: (options: InitiateMfaVerificationOptions) => Promise<void>;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the user is currently signed in.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript lines
|
|
6
|
+
* const signedIn = await isSignedIn();
|
|
7
|
+
* if (signedIn) {
|
|
8
|
+
* console.log("User is signed in");
|
|
9
|
+
* }
|
|
10
|
+
* ```
|
|
11
|
+
* @returns Whether the user is currently signed in.
|
|
12
|
+
*/
|
|
1
13
|
export declare const isSignedIn: () => Promise<boolean>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links an Apple account to the current user.
|
|
3
|
+
*
|
|
4
|
+
* @param options - Optional options for the link operation.
|
|
5
|
+
* @param options.idempotencyKey - Optional idempotency key for safe retries.
|
|
6
|
+
* @returns The result of the link Apple initiation.
|
|
7
|
+
*/
|
|
1
8
|
export declare function linkApple(options?: {
|
|
2
9
|
idempotencyKey?: string;
|
|
3
10
|
}): Promise<void>;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links an email account to the current user.
|
|
3
|
+
*
|
|
4
|
+
* @param email - The email address to link.
|
|
5
|
+
* @param options - Optional options for the link operation.
|
|
6
|
+
* @param options.idempotencyKey - Optional idempotency key for safe retries.
|
|
7
|
+
* @returns The result of the link email initiation.
|
|
8
|
+
*/
|
|
1
9
|
export declare function linkEmail(email: string, options?: {
|
|
2
10
|
idempotencyKey?: string;
|
|
3
11
|
}): Promise<{
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { OAuth2ProviderType } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Links an OAuth account to the current user.
|
|
4
|
+
*
|
|
5
|
+
* @param providerType - The OAuth provider type (e.g., "google", "apple", "x", "telegram").
|
|
6
|
+
* @param options - Optional options for the link operation.
|
|
7
|
+
* @param options.idempotencyKey - Optional idempotency key for safe retries.
|
|
8
|
+
* @returns The result of the link OAuth initiation.
|
|
9
|
+
*/
|
|
2
10
|
export declare function linkOAuth(providerType: OAuth2ProviderType, options?: {
|
|
3
11
|
idempotencyKey?: string;
|
|
4
12
|
}): Promise<void>;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links a SMS account to the current user.
|
|
3
|
+
*
|
|
4
|
+
* @param phoneNumber - The phone number to link.
|
|
5
|
+
* @param options - Optional options for the link operation.
|
|
6
|
+
* @param options.idempotencyKey - Optional idempotency key for safe retries.
|
|
7
|
+
* @returns The result of the link SMS initiation.
|
|
8
|
+
*/
|
|
1
9
|
export declare function linkSms(phoneNumber: string, options?: {
|
|
2
10
|
idempotencyKey?: string;
|
|
3
11
|
}): Promise<{
|
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
import { SpendPermissionNetwork, SpendPermissionResponseObject } from '@coinbase/cdp-api-client';
|
|
2
2
|
import { EvmAddress } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Input for listing spend permissions.
|
|
5
|
+
*/
|
|
3
6
|
export type ListSpendPermissionsOptions = {
|
|
7
|
+
/** The EVM Smart Account to list spend permissions for. */
|
|
4
8
|
evmSmartAccount: EvmAddress;
|
|
9
|
+
/** The network to list spend permissions from. */
|
|
5
10
|
network: SpendPermissionNetwork;
|
|
11
|
+
/** The number of spend permissions to return per page. */
|
|
6
12
|
pageSize?: number;
|
|
13
|
+
/** The token for the next page of spend permissions. */
|
|
7
14
|
pageToken?: string;
|
|
8
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Result of listSpendPermissions.
|
|
18
|
+
*/
|
|
9
19
|
export type ListSpendPermissionsResult = {
|
|
20
|
+
/** The list of spend permissions. */
|
|
10
21
|
spendPermissions: SpendPermissionResponseObject[];
|
|
22
|
+
/** Whether there are more results available. */
|
|
11
23
|
hasNextPage: boolean;
|
|
24
|
+
/** The token for the next page (if any). */
|
|
12
25
|
nextPageToken?: string;
|
|
13
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Lists spend permissions for the user's EVM Smart Account.
|
|
29
|
+
*
|
|
30
|
+
* @param options - The options for listing spend permissions.
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript lines
|
|
33
|
+
* const result = await listSpendPermissions({
|
|
34
|
+
* evmSmartAccount: "0x1234...",
|
|
35
|
+
* network: "base-sepolia",
|
|
36
|
+
* pageSize: 10
|
|
37
|
+
* });
|
|
38
|
+
*
|
|
39
|
+
* console.log("Found", result.spendPermissions.length, "spend permissions");
|
|
40
|
+
* for (const permission of result.spendPermissions) {
|
|
41
|
+
* console.log("Permission:", permission.permissionHash, "Revoked:", permission.revoked);
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
* @returns The result of the spend permissions listing.
|
|
45
|
+
*/
|
|
14
46
|
export declare const listSpendPermissions: (options: ListSpendPermissionsOptions) => Promise<ListSpendPermissionsResult>;
|