@coinbase/cdp-core 0.0.97 → 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/README.md +2 -1
- package/dist/esm/index.native.js +130 -118
- package/dist/esm/index.native100.js +47 -93
- package/dist/esm/index.native101.js +79 -135
- package/dist/esm/index.native102.js +24 -66
- package/dist/esm/index.native103.js +157 -24
- package/dist/esm/index.native104.js +48 -24
- package/dist/esm/index.native105.js +22 -24
- package/dist/esm/index.native106.js +71 -63
- package/dist/esm/index.native107.js +9 -47
- package/dist/esm/index.native108.js +93 -19
- package/dist/esm/index.native109.js +134 -150
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native110.js +64 -373
- package/dist/esm/index.native111.js +26 -28
- package/dist/esm/index.native112.js +24 -29
- package/dist/esm/index.native113.js +23 -89
- package/dist/esm/index.native114.js +67 -2
- package/dist/esm/index.native115.js +46 -65
- package/dist/esm/index.native116.js +21 -365
- package/dist/esm/index.native117.js +151 -15
- package/dist/esm/index.native118.js +87 -20
- package/dist/esm/index.native119.js +363 -37
- package/dist/esm/index.native12.js +6 -6
- package/dist/esm/index.native120.js +2 -947
- package/dist/esm/index.native121.js +66 -2
- package/dist/esm/index.native122.js +364 -49
- package/dist/esm/index.native123.js +16 -26
- package/dist/esm/index.native124.js +22 -13
- package/dist/esm/index.native125.js +49 -26
- package/dist/esm/index.native126.js +28 -7
- package/dist/esm/index.native127.js +28 -3
- package/dist/esm/index.native128.js +943 -26
- package/dist/esm/index.native129.js +2 -9
- package/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native130.js +49 -7
- package/dist/esm/index.native131.js +25 -78
- package/dist/esm/index.native132.js +4 -27
- package/dist/esm/index.native133.js +54 -3
- package/dist/esm/index.native134.js +10 -14
- package/dist/esm/index.native135.js +2 -5
- package/dist/esm/index.native136.js +45 -14
- package/dist/esm/index.native137.js +13 -19
- package/dist/esm/index.native138.js +10 -58
- package/dist/esm/index.native139.js +11 -17
- package/dist/esm/index.native14.js +1 -1
- package/dist/esm/index.native140.js +5 -24
- package/dist/esm/index.native141.js +47 -8
- package/dist/esm/index.native142.js +35 -42
- package/dist/esm/index.native143.js +67 -7
- package/dist/esm/index.native144.js +2 -21
- package/dist/esm/index.native145.js +2 -35
- package/dist/esm/index.native146.js +13 -67
- package/dist/esm/index.native147.js +25 -10
- package/dist/esm/index.native148.js +7 -11
- package/dist/esm/index.native149.js +3 -4
- package/dist/esm/index.native15.js +3 -3
- package/dist/esm/index.native150.js +26 -53
- package/dist/esm/index.native151.js +8 -10
- package/dist/esm/index.native152.js +8 -2
- package/dist/esm/index.native153.js +80 -45
- package/dist/esm/index.native154.js +27 -13
- package/dist/esm/index.native155.js +4 -5
- package/dist/esm/index.native156.js +14 -47
- package/dist/esm/index.native157.js +5 -2
- package/dist/esm/index.native158.js +14 -2
- package/dist/esm/index.native159.js +19 -13
- package/dist/esm/index.native16.js +1 -1
- package/dist/esm/index.native160.js +57 -52
- package/dist/esm/index.native161.js +17 -6
- package/dist/esm/index.native162.js +22 -20
- package/dist/esm/index.native163.js +8 -17
- package/dist/esm/index.native164.js +39 -43
- package/dist/esm/index.native165.js +7 -3
- package/dist/esm/index.native166.js +20 -3
- package/dist/esm/index.native167.js +13 -34
- package/dist/esm/index.native168.js +53 -10
- package/dist/esm/index.native169.js +6 -4
- package/dist/esm/index.native17.js +1 -1
- package/dist/esm/index.native170.js +21 -28
- package/dist/esm/index.native171.js +17 -6
- package/dist/esm/index.native172.js +42 -29
- package/dist/esm/index.native173.js +3 -12
- package/dist/esm/index.native174.js +3 -55
- package/dist/esm/index.native175.js +32 -40
- package/dist/esm/index.native176.js +11 -126
- package/dist/esm/index.native177.js +4 -104
- package/dist/esm/index.native178.js +28 -6
- package/dist/esm/index.native179.js +7 -3
- package/dist/esm/index.native18.js +1 -1
- package/dist/esm/index.native180.js +30 -76
- package/dist/esm/index.native181.js +13 -2
- package/dist/esm/index.native182.js +56 -2
- package/dist/esm/index.native183.js +39 -34
- package/dist/esm/index.native184.js +126 -5
- package/dist/esm/index.native185.js +101 -31
- package/dist/esm/index.native186.js +6 -14
- package/dist/esm/index.native187.js +3 -35
- package/dist/esm/index.native188.js +77 -17
- package/dist/esm/index.native189.js +2 -9
- package/dist/esm/index.native19.js +3 -3
- package/dist/esm/index.native190.js +2 -11
- package/dist/esm/index.native191.js +37 -11
- package/dist/esm/index.native192.js +6 -13
- package/dist/esm/index.native193.js +34 -5
- package/dist/esm/index.native194.js +15 -5
- package/dist/esm/index.native195.js +34 -10
- package/dist/esm/index.native196.js +17 -102
- package/dist/esm/index.native197.js +8 -78
- package/dist/esm/index.native198.js +10 -78
- 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 -47
- package/dist/esm/index.native203.js +10 -20
- package/dist/esm/index.native204.js +2 -10
- package/dist/esm/index.native205.js +107 -18
- package/dist/esm/index.native206.js +2 -94
- package/dist/esm/index.native207.js +20 -20
- package/dist/esm/index.native208.js +9 -117
- package/dist/esm/index.native209.js +20 -39
- package/dist/esm/index.native21.js +1 -1
- package/dist/esm/index.native210.js +94 -2
- package/dist/esm/index.native211.js +21 -70
- package/dist/esm/index.native212.js +117 -34
- package/dist/esm/index.native213.js +101 -12
- package/dist/esm/index.native214.js +78 -7
- package/dist/esm/index.native215.js +79 -2
- package/dist/esm/index.native216.js +7 -368
- package/dist/esm/index.native217.js +2 -827
- package/dist/esm/index.native218.js +364 -16
- package/dist/esm/index.native219.js +827 -2
- package/dist/esm/index.native22.js +1 -1
- package/dist/esm/index.native220.js +38 -19
- package/dist/esm/index.native221.js +2 -33
- package/dist/esm/index.native222.js +69 -6
- package/dist/esm/index.native223.js +34 -3
- package/dist/esm/index.native224.js +14 -17
- package/dist/esm/index.native225.js +20 -27
- package/dist/esm/index.native226.js +2 -8
- package/dist/esm/index.native227.js +19 -10
- package/dist/esm/index.native228.js +32 -12
- package/dist/esm/index.native229.js +6 -9
- package/dist/esm/index.native23.js +1 -1
- package/dist/esm/index.native230.js +2 -15
- package/dist/esm/index.native231.js +45 -79
- package/dist/esm/index.native232.js +18 -2
- package/dist/esm/index.native233.js +28 -2
- package/dist/esm/index.native234.js +8 -2
- package/dist/esm/index.native235.js +11 -5
- package/dist/esm/index.native236.js +12 -14
- package/dist/esm/index.native237.js +8 -77
- package/dist/esm/index.native238.js +19 -0
- package/dist/esm/index.native239.js +83 -0
- package/dist/esm/index.native24.js +1 -1
- package/dist/esm/index.native240.js +4 -0
- 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 +14 -13
- 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 +20 -31
- package/dist/esm/index.native56.js +16 -36
- package/dist/esm/index.native57.js +32 -37
- package/dist/esm/index.native58.js +32 -34
- package/dist/esm/index.native59.js +37 -115
- package/dist/esm/index.native6.js +11 -12
- package/dist/esm/index.native60.js +39 -19
- package/dist/esm/index.native61.js +116 -10
- package/dist/esm/index.native62.js +48 -36
- package/dist/esm/index.native63.js +80 -26
- package/dist/esm/index.native64.js +19 -64
- package/dist/esm/index.native65.js +10 -24
- package/dist/esm/index.native66.js +36 -17
- package/dist/esm/index.native67.js +29 -22
- package/dist/esm/index.native68.js +63 -6
- package/dist/esm/index.native69.js +24 -47
- package/dist/esm/index.native7.js +2 -2
- package/dist/esm/index.native70.js +16 -19
- package/dist/esm/index.native71.js +23 -48
- package/dist/esm/index.native72.js +7 -38
- package/dist/esm/index.native73.js +46 -312
- package/dist/esm/index.native74.js +18 -17
- package/dist/esm/index.native75.js +47 -130
- package/dist/esm/index.native76.js +38 -70
- package/dist/esm/index.native77.js +329 -6
- package/dist/esm/index.native78.js +17 -53
- package/dist/esm/index.native79.js +124 -148
- package/dist/esm/index.native80.js +86 -41
- package/dist/esm/index.native81.js +5 -7
- package/dist/esm/index.native82.js +54 -8
- package/dist/esm/index.native83.js +152 -28
- package/dist/esm/index.native84.js +39 -15
- package/dist/esm/index.native85.js +9 -42
- package/dist/esm/index.native86.js +9 -3
- package/dist/esm/index.native87.js +6 -41
- package/dist/esm/index.native88.js +32 -24
- package/dist/esm/index.native89.js +17 -8
- package/dist/esm/index.native90.js +42 -29
- package/dist/esm/index.native91.js +3 -41
- package/dist/esm/index.native92.js +42 -47
- package/dist/esm/index.native93.js +20 -77
- package/dist/esm/index.native94.js +8 -25
- package/dist/esm/index.native95.js +21 -156
- package/dist/esm/index.native96.js +21 -47
- package/dist/esm/index.native97.js +17 -20
- package/dist/esm/index.native98.js +26 -70
- package/dist/esm/index.native99.js +40 -8
- package/dist/esm/index.web.js +138 -128
- package/dist/esm/index.web10.js +1 -1
- package/dist/esm/index.web100.js +157 -66
- package/dist/esm/index.web101.js +48 -27
- package/dist/esm/index.web102.js +28 -24
- package/dist/esm/index.web103.js +73 -24
- package/dist/esm/index.web104.js +8 -64
- package/dist/esm/index.web105.js +93 -44
- package/dist/esm/index.web106.js +137 -21
- package/dist/esm/index.web107.js +66 -150
- package/dist/esm/index.web108.js +26 -376
- package/dist/esm/index.web109.js +24 -29
- package/dist/esm/index.web11.js +1 -1
- package/dist/esm/index.web110.js +22 -27
- package/dist/esm/index.web111.js +61 -13
- package/dist/esm/index.web112.js +47 -23
- package/dist/esm/index.web113.js +20 -50
- package/dist/esm/index.web114.js +155 -2
- package/dist/esm/index.web115.js +349 -38
- package/dist/esm/index.web116.js +2 -367
- package/dist/esm/index.web117.js +64 -11
- package/dist/esm/index.web118.js +364 -11
- 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 +5 -5
- package/dist/esm/index.web129.js +11 -46
- package/dist/esm/index.web13.js +1 -1
- package/dist/esm/index.web130.js +11 -4
- package/dist/esm/index.web131.js +5 -15
- package/dist/esm/index.web132.js +44 -25
- package/dist/esm/index.web133.js +14 -7
- package/dist/esm/index.web134.js +28 -3
- package/dist/esm/index.web135.js +7 -28
- package/dist/esm/index.web136.js +3 -8
- package/dist/esm/index.web137.js +28 -7
- package/dist/esm/index.web138.js +8 -80
- package/dist/esm/index.web139.js +7 -28
- package/dist/esm/index.web14.js +1 -1
- package/dist/esm/index.web140.js +80 -3
- package/dist/esm/index.web141.js +21 -8
- package/dist/esm/index.web142.js +3 -4
- package/dist/esm/index.web143.js +7 -6
- package/dist/esm/index.web144.js +4 -19
- package/dist/esm/index.web145.js +7 -54
- package/dist/esm/index.web146.js +19 -17
- package/dist/esm/index.web147.js +56 -18
- package/dist/esm/index.web148.js +17 -8
- package/dist/esm/index.web149.js +19 -38
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web150.js +8 -7
- package/dist/esm/index.web151.js +39 -17
- package/dist/esm/index.web152.js +8 -2
- package/dist/esm/index.web153.js +21 -2
- package/dist/esm/index.web154.js +50 -99
- package/dist/esm/index.web155.js +10 -78
- package/dist/esm/index.web156.js +2 -79
- package/dist/esm/index.web157.js +44 -21
- package/dist/esm/index.web158.js +13 -32
- package/dist/esm/index.web159.js +2 -13
- package/dist/esm/index.web16.js +3 -3
- package/dist/esm/index.web160.js +2 -5
- package/dist/esm/index.web161.js +13 -55
- package/dist/esm/index.web162.js +52 -52
- package/dist/esm/index.web163.js +6 -3
- package/dist/esm/index.web164.js +20 -33
- package/dist/esm/index.web165.js +16 -44
- package/dist/esm/index.web166.js +45 -13
- package/dist/esm/index.web167.js +3 -6
- package/dist/esm/index.web168.js +3 -104
- package/dist/esm/index.web169.js +33 -16
- package/dist/esm/index.web17.js +7 -7
- package/dist/esm/index.web170.js +12 -8
- package/dist/esm/index.web171.js +4 -10
- package/dist/esm/index.web172.js +28 -11
- package/dist/esm/index.web173.js +6 -13
- package/dist/esm/index.web174.js +32 -3
- package/dist/esm/index.web175.js +12 -6
- package/dist/esm/index.web176.js +54 -41
- package/dist/esm/index.web177.js +38 -74
- package/dist/esm/index.web178.js +127 -14
- package/dist/esm/index.web179.js +104 -18
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web180.js +6 -20
- package/dist/esm/index.web181.js +3 -10
- package/dist/esm/index.web182.js +76 -17
- package/dist/esm/index.web183.js +2 -94
- package/dist/esm/index.web184.js +2 -21
- package/dist/esm/index.web185.js +34 -114
- package/dist/esm/index.web186.js +5 -11
- package/dist/esm/index.web187.js +32 -26
- package/dist/esm/index.web188.js +14 -127
- package/dist/esm/index.web189.js +34 -6
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web190.js +19 -3
- package/dist/esm/index.web191.js +9 -2
- package/dist/esm/index.web192.js +11 -2
- package/dist/esm/index.web193.js +11 -37
- package/dist/esm/index.web194.js +13 -6
- package/dist/esm/index.web195.js +5 -34
- package/dist/esm/index.web196.js +5 -35
- package/dist/esm/index.web197.js +10 -5
- package/dist/esm/index.web198.js +2 -5
- package/dist/esm/index.web199.js +108 -10
- package/dist/esm/index.web2.js +2 -2
- package/dist/esm/index.web20.js +1 -1
- package/dist/esm/index.web200.js +2 -109
- package/dist/esm/index.web201.js +104 -2
- package/dist/esm/index.web202.js +79 -2
- package/dist/esm/index.web203.js +78 -38
- package/dist/esm/index.web204.js +8 -2
- package/dist/esm/index.web205.js +2 -70
- package/dist/esm/index.web206.js +364 -30
- package/dist/esm/index.web207.js +826 -14
- package/dist/esm/index.web208.js +38 -7
- package/dist/esm/index.web21.js +1 -1
- package/dist/esm/index.web210.js +67 -366
- package/dist/esm/index.web211.js +34 -826
- package/dist/esm/index.web212.js +12 -44
- package/dist/esm/index.web213.js +19 -18
- package/dist/esm/index.web214.js +10 -2
- package/dist/esm/index.web215.js +20 -7
- package/dist/esm/index.web216.js +91 -30
- package/dist/esm/index.web217.js +21 -18
- package/dist/esm/index.web218.js +116 -26
- package/dist/esm/index.web219.js +20 -7
- package/dist/esm/index.web22.js +1 -1
- package/dist/esm/index.web220.js +2 -11
- package/dist/esm/index.web221.js +18 -11
- package/dist/esm/index.web222.js +6 -9
- package/dist/esm/index.web223.js +32 -16
- package/dist/esm/index.web224.js +45 -79
- package/dist/esm/index.web225.js +3 -20
- package/dist/esm/index.web226.js +2 -4
- package/dist/esm/index.web227.js +2 -2
- package/dist/esm/index.web228.js +2 -2
- package/dist/esm/index.web229.js +18 -2
- package/dist/esm/index.web23.js +1 -1
- package/dist/esm/index.web230.js +28 -5
- package/dist/esm/index.web231.js +7 -78
- package/dist/esm/index.web232.js +11 -15
- package/dist/esm/index.web233.js +15 -0
- package/dist/esm/index.web234.js +12 -0
- 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 +17 -16
- 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 +20 -31
- package/dist/esm/index.web53.js +16 -37
- package/dist/esm/index.web54.js +32 -38
- package/dist/esm/index.web55.js +33 -35
- package/dist/esm/index.web56.js +38 -115
- package/dist/esm/index.web57.js +40 -19
- package/dist/esm/index.web58.js +116 -10
- package/dist/esm/index.web59.js +48 -36
- package/dist/esm/index.web60.js +81 -26
- package/dist/esm/index.web61.js +19 -64
- package/dist/esm/index.web62.js +10 -24
- package/dist/esm/index.web63.js +36 -17
- package/dist/esm/index.web64.js +29 -22
- package/dist/esm/index.web65.js +63 -6
- package/dist/esm/index.web66.js +24 -47
- package/dist/esm/index.web67.js +16 -19
- package/dist/esm/index.web68.js +23 -48
- package/dist/esm/index.web69.js +7 -38
- package/dist/esm/index.web70.js +46 -312
- package/dist/esm/index.web71.js +18 -17
- package/dist/esm/index.web72.js +47 -131
- package/dist/esm/index.web73.js +38 -70
- package/dist/esm/index.web74.js +329 -6
- package/dist/esm/index.web75.js +17 -54
- package/dist/esm/index.web76.js +125 -149
- package/dist/esm/index.web77.js +80 -61
- package/dist/esm/index.web78.js +7 -35
- package/dist/esm/index.web79.js +49 -83
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web80.js +150 -36
- package/dist/esm/index.web81.js +65 -29
- package/dist/esm/index.web82.js +35 -18
- package/dist/esm/index.web83.js +90 -42
- package/dist/esm/index.web84.js +43 -3
- package/dist/esm/index.web85.js +28 -40
- package/dist/esm/index.web86.js +17 -23
- package/dist/esm/index.web87.js +42 -9
- package/dist/esm/index.web88.js +3 -29
- package/dist/esm/index.web89.js +43 -40
- package/dist/esm/index.web9.js +5 -5
- package/dist/esm/index.web90.js +24 -49
- package/dist/esm/index.web91.js +8 -81
- package/dist/esm/index.web92.js +23 -24
- package/dist/esm/index.web93.js +21 -159
- package/dist/esm/index.web94.js +15 -46
- package/dist/esm/index.web95.js +28 -25
- package/dist/esm/index.web96.js +40 -72
- package/dist/esm/index.web97.js +49 -9
- package/dist/esm/index.web98.js +74 -88
- package/dist/esm/index.web99.js +25 -136
- package/dist/native/index.native.js +130 -118
- package/dist/native/index.native100.js +47 -93
- package/dist/native/index.native101.js +79 -135
- package/dist/native/index.native102.js +24 -66
- package/dist/native/index.native103.js +157 -24
- package/dist/native/index.native104.js +48 -24
- package/dist/native/index.native105.js +22 -24
- package/dist/native/index.native106.js +71 -63
- package/dist/native/index.native107.js +9 -47
- package/dist/native/index.native108.js +93 -19
- package/dist/native/index.native109.js +134 -150
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native110.js +64 -373
- package/dist/native/index.native111.js +26 -28
- package/dist/native/index.native112.js +24 -29
- package/dist/native/index.native113.js +23 -89
- package/dist/native/index.native114.js +67 -2
- package/dist/native/index.native115.js +46 -65
- package/dist/native/index.native116.js +21 -365
- package/dist/native/index.native117.js +151 -15
- package/dist/native/index.native118.js +87 -20
- package/dist/native/index.native119.js +363 -37
- package/dist/native/index.native12.js +6 -6
- package/dist/native/index.native120.js +2 -947
- package/dist/native/index.native121.js +66 -2
- package/dist/native/index.native122.js +364 -49
- package/dist/native/index.native123.js +16 -26
- package/dist/native/index.native124.js +22 -13
- package/dist/native/index.native125.js +49 -26
- package/dist/native/index.native126.js +28 -7
- package/dist/native/index.native127.js +28 -3
- package/dist/native/index.native128.js +943 -26
- package/dist/native/index.native129.js +2 -9
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native130.js +49 -7
- package/dist/native/index.native131.js +25 -78
- package/dist/native/index.native132.js +4 -27
- package/dist/native/index.native133.js +54 -3
- package/dist/native/index.native134.js +10 -14
- package/dist/native/index.native135.js +2 -5
- package/dist/native/index.native136.js +45 -14
- package/dist/native/index.native137.js +13 -19
- package/dist/native/index.native138.js +10 -58
- package/dist/native/index.native139.js +11 -17
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native140.js +5 -24
- package/dist/native/index.native141.js +47 -8
- package/dist/native/index.native142.js +35 -42
- package/dist/native/index.native143.js +67 -7
- package/dist/native/index.native144.js +2 -21
- package/dist/native/index.native145.js +2 -35
- package/dist/native/index.native146.js +13 -67
- package/dist/native/index.native147.js +25 -10
- package/dist/native/index.native148.js +7 -11
- package/dist/native/index.native149.js +3 -4
- package/dist/native/index.native15.js +3 -3
- package/dist/native/index.native150.js +26 -53
- package/dist/native/index.native151.js +8 -10
- package/dist/native/index.native152.js +8 -2
- package/dist/native/index.native153.js +80 -45
- package/dist/native/index.native154.js +27 -13
- package/dist/native/index.native155.js +4 -5
- package/dist/native/index.native156.js +14 -47
- package/dist/native/index.native157.js +5 -2
- package/dist/native/index.native158.js +14 -2
- package/dist/native/index.native159.js +19 -13
- package/dist/native/index.native16.js +1 -1
- package/dist/native/index.native160.js +57 -52
- package/dist/native/index.native161.js +17 -6
- package/dist/native/index.native162.js +22 -20
- package/dist/native/index.native163.js +8 -17
- package/dist/native/index.native164.js +39 -43
- package/dist/native/index.native165.js +7 -3
- package/dist/native/index.native166.js +20 -3
- package/dist/native/index.native167.js +13 -34
- package/dist/native/index.native168.js +53 -10
- package/dist/native/index.native169.js +6 -4
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native170.js +21 -28
- package/dist/native/index.native171.js +17 -6
- package/dist/native/index.native172.js +42 -29
- package/dist/native/index.native173.js +3 -12
- package/dist/native/index.native174.js +3 -55
- package/dist/native/index.native175.js +32 -40
- package/dist/native/index.native176.js +11 -126
- package/dist/native/index.native177.js +4 -104
- package/dist/native/index.native178.js +28 -6
- package/dist/native/index.native179.js +7 -3
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +30 -76
- package/dist/native/index.native181.js +13 -2
- package/dist/native/index.native182.js +56 -2
- package/dist/native/index.native183.js +39 -34
- package/dist/native/index.native184.js +126 -5
- package/dist/native/index.native185.js +101 -31
- package/dist/native/index.native186.js +6 -14
- package/dist/native/index.native187.js +3 -35
- package/dist/native/index.native188.js +77 -17
- package/dist/native/index.native189.js +2 -9
- package/dist/native/index.native19.js +3 -3
- package/dist/native/index.native190.js +2 -11
- package/dist/native/index.native191.js +37 -11
- package/dist/native/index.native192.js +6 -13
- package/dist/native/index.native193.js +34 -5
- package/dist/native/index.native194.js +15 -5
- package/dist/native/index.native195.js +34 -10
- package/dist/native/index.native196.js +17 -102
- package/dist/native/index.native197.js +8 -78
- package/dist/native/index.native198.js +10 -78
- 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 -47
- package/dist/native/index.native203.js +10 -20
- package/dist/native/index.native204.js +2 -10
- package/dist/native/index.native205.js +107 -18
- package/dist/native/index.native206.js +2 -94
- package/dist/native/index.native207.js +20 -20
- package/dist/native/index.native208.js +9 -117
- package/dist/native/index.native209.js +20 -39
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native210.js +94 -2
- package/dist/native/index.native211.js +21 -70
- package/dist/native/index.native212.js +117 -34
- package/dist/native/index.native213.js +101 -12
- package/dist/native/index.native214.js +78 -7
- package/dist/native/index.native215.js +79 -2
- package/dist/native/index.native216.js +7 -368
- package/dist/native/index.native217.js +2 -827
- package/dist/native/index.native218.js +364 -16
- package/dist/native/index.native219.js +827 -2
- package/dist/native/index.native22.js +1 -1
- package/dist/native/index.native220.js +38 -19
- package/dist/native/index.native221.js +2 -33
- package/dist/native/index.native222.js +69 -6
- package/dist/native/index.native223.js +34 -3
- package/dist/native/index.native224.js +14 -17
- package/dist/native/index.native225.js +20 -27
- package/dist/native/index.native226.js +2 -8
- package/dist/native/index.native227.js +19 -10
- package/dist/native/index.native228.js +32 -12
- package/dist/native/index.native229.js +6 -9
- package/dist/native/index.native23.js +1 -1
- package/dist/native/index.native230.js +2 -15
- package/dist/native/index.native231.js +45 -79
- package/dist/native/index.native232.js +18 -2
- package/dist/native/index.native233.js +28 -2
- package/dist/native/index.native234.js +8 -2
- package/dist/native/index.native235.js +11 -5
- package/dist/native/index.native236.js +12 -14
- package/dist/native/index.native237.js +8 -77
- package/dist/native/index.native238.js +19 -0
- package/dist/native/index.native239.js +83 -0
- package/dist/native/index.native24.js +1 -1
- package/dist/native/index.native240.js +4 -0
- 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 +14 -13
- 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 +20 -31
- package/dist/native/index.native56.js +16 -36
- package/dist/native/index.native57.js +32 -37
- package/dist/native/index.native58.js +32 -34
- package/dist/native/index.native59.js +37 -115
- package/dist/native/index.native6.js +11 -12
- package/dist/native/index.native60.js +39 -19
- package/dist/native/index.native61.js +116 -10
- package/dist/native/index.native62.js +48 -36
- package/dist/native/index.native63.js +80 -26
- package/dist/native/index.native64.js +19 -64
- package/dist/native/index.native65.js +10 -24
- package/dist/native/index.native66.js +36 -17
- package/dist/native/index.native67.js +29 -22
- package/dist/native/index.native68.js +63 -6
- package/dist/native/index.native69.js +24 -47
- package/dist/native/index.native7.js +2 -2
- package/dist/native/index.native70.js +16 -19
- package/dist/native/index.native71.js +23 -48
- package/dist/native/index.native72.js +7 -38
- package/dist/native/index.native73.js +46 -312
- package/dist/native/index.native74.js +18 -17
- package/dist/native/index.native75.js +47 -130
- package/dist/native/index.native76.js +38 -70
- package/dist/native/index.native77.js +329 -6
- package/dist/native/index.native78.js +17 -53
- package/dist/native/index.native79.js +124 -148
- package/dist/native/index.native80.js +86 -41
- package/dist/native/index.native81.js +5 -7
- package/dist/native/index.native82.js +54 -8
- package/dist/native/index.native83.js +152 -28
- package/dist/native/index.native84.js +39 -15
- package/dist/native/index.native85.js +9 -42
- package/dist/native/index.native86.js +9 -3
- package/dist/native/index.native87.js +6 -41
- package/dist/native/index.native88.js +32 -24
- package/dist/native/index.native89.js +17 -8
- package/dist/native/index.native90.js +42 -29
- package/dist/native/index.native91.js +3 -41
- package/dist/native/index.native92.js +42 -47
- package/dist/native/index.native93.js +20 -77
- package/dist/native/index.native94.js +8 -25
- package/dist/native/index.native95.js +21 -156
- package/dist/native/index.native96.js +21 -47
- package/dist/native/index.native97.js +17 -20
- package/dist/native/index.native98.js +26 -70
- package/dist/native/index.native99.js +40 -8
- 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 +26 -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 +16 -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 +61 -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 +5 -0
- package/dist/native-types/index.native.d.ts +11 -0
- package/dist/native-types/index.web.d.ts +10 -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 +30 -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 +377 -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 +26 -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 +16 -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 +61 -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 +5 -0
- package/dist/types/index.native.d.ts +11 -0
- package/dist/types/index.web.d.ts +10 -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 +30 -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 +377 -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 +138 -128
- package/dist/web/index.web10.js +1 -1
- package/dist/web/index.web100.js +157 -66
- package/dist/web/index.web101.js +48 -27
- package/dist/web/index.web102.js +28 -24
- package/dist/web/index.web103.js +73 -24
- package/dist/web/index.web104.js +8 -64
- package/dist/web/index.web105.js +93 -44
- package/dist/web/index.web106.js +137 -21
- package/dist/web/index.web107.js +66 -150
- package/dist/web/index.web108.js +26 -376
- package/dist/web/index.web109.js +24 -29
- package/dist/web/index.web11.js +1 -1
- package/dist/web/index.web110.js +22 -27
- package/dist/web/index.web111.js +61 -13
- package/dist/web/index.web112.js +47 -23
- package/dist/web/index.web113.js +20 -50
- package/dist/web/index.web114.js +155 -2
- package/dist/web/index.web115.js +349 -38
- package/dist/web/index.web116.js +2 -367
- package/dist/web/index.web117.js +64 -11
- package/dist/web/index.web118.js +364 -11
- 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 +5 -5
- package/dist/web/index.web129.js +11 -46
- package/dist/web/index.web13.js +1 -1
- package/dist/web/index.web130.js +11 -4
- package/dist/web/index.web131.js +5 -15
- package/dist/web/index.web132.js +44 -25
- package/dist/web/index.web133.js +14 -7
- package/dist/web/index.web134.js +28 -3
- package/dist/web/index.web135.js +7 -28
- package/dist/web/index.web136.js +3 -8
- package/dist/web/index.web137.js +28 -7
- package/dist/web/index.web138.js +8 -80
- package/dist/web/index.web139.js +7 -28
- package/dist/web/index.web14.js +1 -1
- package/dist/web/index.web140.js +80 -3
- package/dist/web/index.web141.js +21 -8
- package/dist/web/index.web142.js +3 -4
- package/dist/web/index.web143.js +7 -6
- package/dist/web/index.web144.js +4 -19
- package/dist/web/index.web145.js +7 -54
- package/dist/web/index.web146.js +19 -17
- package/dist/web/index.web147.js +56 -18
- package/dist/web/index.web148.js +17 -8
- package/dist/web/index.web149.js +19 -38
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web150.js +8 -7
- package/dist/web/index.web151.js +39 -17
- package/dist/web/index.web152.js +8 -2
- package/dist/web/index.web153.js +21 -2
- package/dist/web/index.web154.js +50 -99
- package/dist/web/index.web155.js +10 -78
- package/dist/web/index.web156.js +2 -79
- package/dist/web/index.web157.js +44 -21
- package/dist/web/index.web158.js +13 -32
- package/dist/web/index.web159.js +2 -13
- package/dist/web/index.web16.js +3 -3
- package/dist/web/index.web160.js +2 -5
- package/dist/web/index.web161.js +13 -55
- package/dist/web/index.web162.js +52 -52
- package/dist/web/index.web163.js +6 -3
- package/dist/web/index.web164.js +20 -33
- package/dist/web/index.web165.js +16 -44
- package/dist/web/index.web166.js +45 -13
- package/dist/web/index.web167.js +3 -6
- package/dist/web/index.web168.js +3 -104
- package/dist/web/index.web169.js +33 -16
- package/dist/web/index.web17.js +7 -7
- package/dist/web/index.web170.js +12 -8
- package/dist/web/index.web171.js +4 -10
- package/dist/web/index.web172.js +28 -11
- package/dist/web/index.web173.js +6 -13
- package/dist/web/index.web174.js +32 -3
- package/dist/web/index.web175.js +12 -6
- package/dist/web/index.web176.js +54 -41
- package/dist/web/index.web177.js +38 -74
- package/dist/web/index.web178.js +127 -14
- package/dist/web/index.web179.js +104 -18
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web180.js +6 -20
- package/dist/web/index.web181.js +3 -10
- package/dist/web/index.web182.js +76 -17
- package/dist/web/index.web183.js +2 -94
- package/dist/web/index.web184.js +2 -21
- package/dist/web/index.web185.js +34 -114
- package/dist/web/index.web186.js +5 -11
- package/dist/web/index.web187.js +32 -26
- package/dist/web/index.web188.js +14 -127
- package/dist/web/index.web189.js +34 -6
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web190.js +19 -3
- package/dist/web/index.web191.js +9 -2
- package/dist/web/index.web192.js +11 -2
- package/dist/web/index.web193.js +11 -37
- package/dist/web/index.web194.js +13 -6
- package/dist/web/index.web195.js +5 -34
- package/dist/web/index.web196.js +5 -35
- package/dist/web/index.web197.js +10 -5
- package/dist/web/index.web198.js +2 -5
- package/dist/web/index.web199.js +108 -10
- package/dist/web/index.web2.js +2 -2
- package/dist/web/index.web20.js +1 -1
- package/dist/web/index.web200.js +2 -109
- package/dist/web/index.web201.js +104 -2
- package/dist/web/index.web202.js +79 -2
- package/dist/web/index.web203.js +78 -38
- package/dist/web/index.web204.js +8 -2
- package/dist/web/index.web205.js +2 -70
- package/dist/web/index.web206.js +364 -30
- package/dist/web/index.web207.js +826 -14
- package/dist/web/index.web208.js +38 -7
- package/dist/web/index.web21.js +1 -1
- package/dist/web/index.web210.js +67 -366
- package/dist/web/index.web211.js +34 -826
- package/dist/web/index.web212.js +12 -44
- package/dist/web/index.web213.js +19 -18
- package/dist/web/index.web214.js +10 -2
- package/dist/web/index.web215.js +20 -7
- package/dist/web/index.web216.js +91 -30
- package/dist/web/index.web217.js +21 -18
- package/dist/web/index.web218.js +116 -26
- package/dist/web/index.web219.js +20 -7
- package/dist/web/index.web22.js +1 -1
- package/dist/web/index.web220.js +2 -11
- package/dist/web/index.web221.js +18 -11
- package/dist/web/index.web222.js +6 -9
- package/dist/web/index.web223.js +32 -16
- package/dist/web/index.web224.js +45 -79
- package/dist/web/index.web225.js +3 -20
- package/dist/web/index.web226.js +2 -4
- package/dist/web/index.web227.js +2 -2
- package/dist/web/index.web228.js +2 -2
- package/dist/web/index.web229.js +18 -2
- package/dist/web/index.web23.js +1 -1
- package/dist/web/index.web230.js +28 -5
- package/dist/web/index.web231.js +7 -78
- package/dist/web/index.web232.js +11 -15
- package/dist/web/index.web233.js +15 -0
- package/dist/web/index.web234.js +12 -0
- 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 +17 -16
- 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 +20 -31
- package/dist/web/index.web53.js +16 -37
- package/dist/web/index.web54.js +32 -38
- package/dist/web/index.web55.js +33 -35
- package/dist/web/index.web56.js +38 -115
- package/dist/web/index.web57.js +40 -19
- package/dist/web/index.web58.js +116 -10
- package/dist/web/index.web59.js +48 -36
- package/dist/web/index.web60.js +81 -26
- package/dist/web/index.web61.js +19 -64
- package/dist/web/index.web62.js +10 -24
- package/dist/web/index.web63.js +36 -17
- package/dist/web/index.web64.js +29 -22
- package/dist/web/index.web65.js +63 -6
- package/dist/web/index.web66.js +24 -47
- package/dist/web/index.web67.js +16 -19
- package/dist/web/index.web68.js +23 -48
- package/dist/web/index.web69.js +7 -38
- package/dist/web/index.web70.js +46 -312
- package/dist/web/index.web71.js +18 -17
- package/dist/web/index.web72.js +47 -131
- package/dist/web/index.web73.js +38 -70
- package/dist/web/index.web74.js +329 -6
- package/dist/web/index.web75.js +17 -54
- package/dist/web/index.web76.js +125 -149
- package/dist/web/index.web77.js +80 -61
- package/dist/web/index.web78.js +7 -35
- package/dist/web/index.web79.js +49 -83
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web80.js +150 -36
- package/dist/web/index.web81.js +65 -29
- package/dist/web/index.web82.js +35 -18
- package/dist/web/index.web83.js +90 -42
- package/dist/web/index.web84.js +43 -3
- package/dist/web/index.web85.js +28 -40
- package/dist/web/index.web86.js +17 -23
- package/dist/web/index.web87.js +42 -9
- package/dist/web/index.web88.js +3 -29
- package/dist/web/index.web89.js +43 -40
- package/dist/web/index.web9.js +5 -5
- package/dist/web/index.web90.js +24 -49
- package/dist/web/index.web91.js +8 -81
- package/dist/web/index.web92.js +23 -24
- package/dist/web/index.web93.js +21 -159
- package/dist/web/index.web94.js +15 -46
- package/dist/web/index.web95.js +28 -25
- package/dist/web/index.web96.js +40 -72
- package/dist/web/index.web97.js +49 -9
- package/dist/web/index.web98.js +74 -88
- package/dist/web/index.web99.js +25 -136
- 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 +26 -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 +16 -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 +61 -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 +5 -0
- package/dist/web-types/index.native.d.ts +11 -0
- package/dist/web-types/index.web.d.ts +10 -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 +30 -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 +377 -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 +3 -7
|
@@ -1,71 +1,341 @@
|
|
|
1
1
|
import { KeyPair } from '../shared/types.js';
|
|
2
2
|
import { OAuthFlowState, TelegramAuthData } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Platform-specific cryptographic operations interface.
|
|
5
|
+
* Provides abstractions for crypto operations that may differ between platforms.
|
|
6
|
+
*/
|
|
3
7
|
export interface PlatformCrypto {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a secp256r1 key pair for cryptographic operations.
|
|
10
|
+
*
|
|
11
|
+
* @returns A secp256r1 key pair with private key and base64-encoded public key.
|
|
12
|
+
*/
|
|
4
13
|
createKeyPair(): Promise<KeyPair>;
|
|
14
|
+
/**
|
|
15
|
+
* Creates an RSA key pair that allows private key export.
|
|
16
|
+
* Used for operations that require access to the raw private key for encryption/decryption.
|
|
17
|
+
*
|
|
18
|
+
* @returns An RSA key pair with exportable private key and base64-encoded public key.
|
|
19
|
+
*/
|
|
5
20
|
createExportKeyPair(): Promise<KeyPair>;
|
|
21
|
+
/**
|
|
22
|
+
* Computes a SHA-256 hash of the given data.
|
|
23
|
+
*
|
|
24
|
+
* @param data - The data to hash.
|
|
25
|
+
* @returns Promise that resolves to the hex-encoded hash.
|
|
26
|
+
*/
|
|
6
27
|
hash(data: Uint8Array): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Generates a cryptographically secure random identifier.
|
|
30
|
+
*
|
|
31
|
+
* @returns A random string suitable for use as an identifier.
|
|
32
|
+
*/
|
|
7
33
|
generateRandomId(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Generates a cryptographically secure random salt.
|
|
36
|
+
*
|
|
37
|
+
* @returns A random bigint salt.
|
|
38
|
+
*/
|
|
8
39
|
generateRandomSalt(): bigint;
|
|
40
|
+
/**
|
|
41
|
+
* Decrypts data using a private key with RSA-OAEP algorithm.
|
|
42
|
+
*
|
|
43
|
+
* @param privateKey - The private key to use for decryption.
|
|
44
|
+
* @param encryptedData - Base64-encoded encrypted data.
|
|
45
|
+
* @returns Promise that resolves to the decrypted string.
|
|
46
|
+
*/
|
|
9
47
|
decryptWithPrivateKey(privateKey: CryptoKey, encryptedData: string): Promise<ArrayBuffer>;
|
|
10
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Platform-specific storage operations interface.
|
|
51
|
+
* Provides abstractions for persistent storage that may differ between platforms.
|
|
52
|
+
*/
|
|
11
53
|
export interface PlatformStorage {
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a value from storage.
|
|
56
|
+
*
|
|
57
|
+
* @param key - The storage key.
|
|
58
|
+
* @returns Promise that resolves to the stored value or null if not found.
|
|
59
|
+
*/
|
|
12
60
|
getItem(key: string): Promise<string | null>;
|
|
61
|
+
/**
|
|
62
|
+
* Stores a value in storage.
|
|
63
|
+
*
|
|
64
|
+
* @param key - The storage key.
|
|
65
|
+
* @param value - The value to store.
|
|
66
|
+
* @returns Promise that resolves when the value is stored.
|
|
67
|
+
*/
|
|
13
68
|
setItem(key: string, value: string): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Removes a value from storage.
|
|
71
|
+
*
|
|
72
|
+
* @param key - The storage key.
|
|
73
|
+
* @returns Promise that resolves when the value is removed.
|
|
74
|
+
*/
|
|
14
75
|
removeItem(key: string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Clears all values from storage.
|
|
78
|
+
*
|
|
79
|
+
* @returns Promise that resolves when storage is cleared.
|
|
80
|
+
*/
|
|
15
81
|
clear(): Promise<void>;
|
|
16
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Platform-specific secure storage operations interface.
|
|
85
|
+
* Provides abstractions for secure storage that may only be available on certain platforms.
|
|
86
|
+
* On native platforms, this typically uses the device's secure enclave (e.g., iOS Keychain, Android Keystore).
|
|
87
|
+
* On web platforms, this is typically unavailable due to browser security limitations.
|
|
88
|
+
*/
|
|
17
89
|
export interface PlatformSecureStorage {
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves a value from secure storage.
|
|
92
|
+
*
|
|
93
|
+
* @param key - The storage key.
|
|
94
|
+
* @returns Promise that resolves to the stored value or null if not found.
|
|
95
|
+
*/
|
|
18
96
|
getItem(key: string): Promise<string | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Stores a value in secure storage.
|
|
99
|
+
*
|
|
100
|
+
* @param key - The storage key.
|
|
101
|
+
* @param value - The value to store.
|
|
102
|
+
* @returns Promise that resolves when the value is stored.
|
|
103
|
+
*/
|
|
19
104
|
setItem(key: string, value: string): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Removes a value from secure storage.
|
|
107
|
+
*
|
|
108
|
+
* @param key - The storage key.
|
|
109
|
+
* @returns Promise that resolves when the value is removed.
|
|
110
|
+
*/
|
|
20
111
|
removeItem(key: string): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* Clears all values from secure storage.
|
|
114
|
+
*
|
|
115
|
+
* @returns Promise that resolves when storage is cleared.
|
|
116
|
+
*/
|
|
21
117
|
clear(): Promise<void>;
|
|
22
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Credential returned by a native Apple Sign In flow.
|
|
121
|
+
*/
|
|
23
122
|
export interface AppleNativeCredential {
|
|
123
|
+
/** The JSON Web Token (JWT) that securely communicates information about the user. */
|
|
24
124
|
identityToken: string;
|
|
125
|
+
/** A short-lived token used to interact with Apple's servers. */
|
|
25
126
|
authorizationCode?: string;
|
|
127
|
+
/** The user's email address, provided only on first sign-in. */
|
|
26
128
|
email?: string | null;
|
|
27
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Platform-specific OAuth operations interface.
|
|
132
|
+
* Provides abstractions for OAuth operations that may differ between platforms.
|
|
133
|
+
*/
|
|
28
134
|
export interface PlatformOAuth {
|
|
29
135
|
initiateOAuthFlow(authUrl: string): void;
|
|
30
136
|
getRedirectUrl(): string;
|
|
31
137
|
getOAuthParams(url?: string): OAuthFlowState | null;
|
|
32
138
|
cleanupOAuthParams(): void;
|
|
33
139
|
openTelegramOAuthPopup?(authUrl: string): Promise<TelegramAuthData | null>;
|
|
140
|
+
/** Triggers a native Apple Sign In sheet (iOS only). */
|
|
34
141
|
signInWithAppleNative?(): Promise<AppleNativeCredential>;
|
|
35
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Result of an attestation operation.
|
|
145
|
+
*/
|
|
36
146
|
export interface AttestationResult {
|
|
147
|
+
/** Base64-encoded attestation object (iOS) or integrity token (Android) */
|
|
37
148
|
attestation: string;
|
|
149
|
+
/** Platform identifier (bundle ID for iOS, package name for Android) */
|
|
38
150
|
appIdentifier: string;
|
|
151
|
+
/** Platform type: "ios" or "android" */
|
|
39
152
|
platform: "ios" | "android";
|
|
153
|
+
/** Key ID (iOS only - generated by DCAppAttestService) */
|
|
40
154
|
keyId?: string;
|
|
41
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Result of an assertion generation operation.
|
|
158
|
+
*/
|
|
42
159
|
export interface AssertionResult {
|
|
160
|
+
/** Base64-encoded assertion */
|
|
43
161
|
assertion: string;
|
|
162
|
+
/** Key ID used to generate the assertion (iOS) */
|
|
44
163
|
keyId?: string;
|
|
45
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Configuration for attestation operations.
|
|
167
|
+
*/
|
|
46
168
|
export interface AttestationConfig {
|
|
169
|
+
/** Google Cloud project number for Android Play Integrity. */
|
|
47
170
|
cloudProjectNumber?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Whether to force re-attestation even if a key is already registered.
|
|
173
|
+
* Clears the existing key and performs fresh attestation.
|
|
174
|
+
* Useful for testing or recovering from an invalid key state.
|
|
175
|
+
*
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
48
178
|
force?: boolean;
|
|
49
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Platform-specific device attestation operations interface.
|
|
182
|
+
* Provides abstractions for iOS App Attest and Android Play Integrity APIs.
|
|
183
|
+
*
|
|
184
|
+
* This is optional and only available on native mobile platforms (iOS 14+, Android 6.0+).
|
|
185
|
+
* Allows apps to prove they are legitimate instances running on genuine devices.
|
|
186
|
+
*
|
|
187
|
+
* iOS Flow (Assertion-based):
|
|
188
|
+
* 1. Check if keyId exists locally (getStoredKeyId)
|
|
189
|
+
* 2. If no keyId: attest(challenge) - Generate key + attestation
|
|
190
|
+
* 3. Register attestation with backend (stores public key server-side)
|
|
191
|
+
* 4. storeKeyId() - Persist key ID locally
|
|
192
|
+
* 5. generateAssertion() - Create signed assertions per-request using keyId
|
|
193
|
+
*
|
|
194
|
+
* Android Flow (Play Integrity):
|
|
195
|
+
* 1. initialize(config) - Required: Set up Play Integrity provider with cloudProjectNumber
|
|
196
|
+
* 2. generateAssertion() - Generate fresh tokens per-request (no attestation/registration needed)
|
|
197
|
+
*/
|
|
50
198
|
export interface PlatformAttestation {
|
|
199
|
+
/**
|
|
200
|
+
* Whether device attestation is enabled for the current project.
|
|
201
|
+
*/
|
|
51
202
|
isEnabled: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Google Cloud project number for Android Play Integrity.
|
|
205
|
+
*/
|
|
52
206
|
cloudProjectNumber?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Initialize the attestation service.
|
|
209
|
+
*
|
|
210
|
+
* Android: Initializes the Play Integrity token provider (cloudProjectNumber required).
|
|
211
|
+
* iOS: Performs attestation registration with the CDP backend if not already registered.
|
|
212
|
+
* Fetches a challenge, attests the app with Apple, registers the public key, and
|
|
213
|
+
* confirms registration locally. Returns early if already registered.
|
|
214
|
+
*
|
|
215
|
+
* @param config - Platform-specific configuration (cloudProjectNumber required for Android).
|
|
216
|
+
* @returns Promise that resolves when initialization is complete.
|
|
217
|
+
* @throws Error if initialization or iOS registration fails.
|
|
218
|
+
*/
|
|
53
219
|
initialize(config?: AttestationConfig): Promise<void>;
|
|
220
|
+
/**
|
|
221
|
+
* Attest a key with a server-provided challenge (iOS only).
|
|
222
|
+
*
|
|
223
|
+
* iOS: Generates a key pair in Secure Enclave, creates attestation object
|
|
224
|
+
* Android: Not used - Android skips attestation and uses Play Integrity tokens directly
|
|
225
|
+
*
|
|
226
|
+
* The result should be sent to the CDP backend's /attestation/register
|
|
227
|
+
* endpoint which verifies the attestation and stores the public key.
|
|
228
|
+
*
|
|
229
|
+
* @param challenge - Server-provided challenge (base64-encoded).
|
|
230
|
+
* @returns Promise that resolves to attestation result.
|
|
231
|
+
* @throws Error if attestation fails or is not supported.
|
|
232
|
+
*/
|
|
54
233
|
attest(challenge: string): Promise<AttestationResult>;
|
|
234
|
+
/**
|
|
235
|
+
* Mark attestation as successfully registered with the backend (iOS only).
|
|
236
|
+
*
|
|
237
|
+
* Call this only after the backend confirms the attestation exchange succeeded.
|
|
238
|
+
* Stores a local flag so the app can avoid re-attesting on subsequent launches.
|
|
239
|
+
*
|
|
240
|
+
* @param keyId - The key ID that was registered with the backend.
|
|
241
|
+
* @returns Promise that resolves when registration is confirmed.
|
|
242
|
+
*/
|
|
55
243
|
confirmRegistration(keyId: string): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Get the registered key ID (iOS only).
|
|
246
|
+
*
|
|
247
|
+
* Returns the key ID if attestation was successfully registered with the backend.
|
|
248
|
+
* Returns null if attestation hasn't been performed or registration wasn't confirmed.
|
|
249
|
+
*
|
|
250
|
+
* @returns Promise that resolves to the registered key ID, or null if not found.
|
|
251
|
+
*/
|
|
56
252
|
getRegisteredKeyId(): Promise<string | null>;
|
|
253
|
+
/**
|
|
254
|
+
* Clear all attestation state, allowing re-attestation with a new key.
|
|
255
|
+
*
|
|
256
|
+
* This should be called when:
|
|
257
|
+
* - Backend returns "Attestation key not found" (public key lost)
|
|
258
|
+
* - User explicitly requests re-attestation
|
|
259
|
+
* - Testing/debugging scenarios
|
|
260
|
+
*
|
|
261
|
+
* Important: After clearing, you MUST call initialize() again to perform
|
|
262
|
+
* fresh attestation. Until then, generateAssertion() will fail on iOS.
|
|
263
|
+
*
|
|
264
|
+
* @returns Promise that resolves when attestation state is cleared.
|
|
265
|
+
* @throws Error if clearing is not supported.
|
|
266
|
+
*/
|
|
57
267
|
clearAttestation(): Promise<void>;
|
|
268
|
+
/**
|
|
269
|
+
* Generate an assertion for an API request.
|
|
270
|
+
*
|
|
271
|
+
* Returns null if attestation is not yet enabled for this project (i.e. the project
|
|
272
|
+
* config has not confirmed this app's bundle ID is registered). Callers should skip
|
|
273
|
+
* adding assertion headers when null is returned.
|
|
274
|
+
*
|
|
275
|
+
* iOS: Creates a cryptographic assertion using the attested key
|
|
276
|
+
* Android: Generates a fresh Play Integrity token
|
|
277
|
+
*
|
|
278
|
+
* On failure, retries initialization once (in case no key is registered yet), then
|
|
279
|
+
* propagates the error if the retry also fails.
|
|
280
|
+
*
|
|
281
|
+
* @param clientData - Client data to include in assertion (base64-encoded).
|
|
282
|
+
* @returns Promise that resolves to assertion result, or null if attestation is disabled.
|
|
283
|
+
* @throws Error if assertion generation fails after a single retry.
|
|
284
|
+
*/
|
|
58
285
|
generateAssertion(clientData: string): Promise<AssertionResult | null>;
|
|
59
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Platform-specific device information operations interface.
|
|
289
|
+
* Provides abstractions for device information that may differ between platforms.
|
|
290
|
+
*/
|
|
60
291
|
export interface PlatformDeviceInfo {
|
|
292
|
+
/**
|
|
293
|
+
* Returns the app bundle ID (iOS) or package name (Android) for the running app.
|
|
294
|
+
* Used to match against project config attestation entries.
|
|
295
|
+
* Optional — only provided on native platforms.
|
|
296
|
+
*/
|
|
61
297
|
getAppBundleId?(): string | undefined;
|
|
298
|
+
/**
|
|
299
|
+
* Returns the current platform ("ios" or "android").
|
|
300
|
+
* Used to populate the User-Agent header on native platforms.
|
|
301
|
+
* Optional — only provided on native platforms.
|
|
302
|
+
*/
|
|
62
303
|
getPlatform?(): "ios" | "android" | undefined;
|
|
63
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* Combined interface for all platform-specific services.
|
|
307
|
+
* This is the main interface that platform implementations must provide.
|
|
308
|
+
*/
|
|
64
309
|
export interface PlatformServices {
|
|
310
|
+
/**
|
|
311
|
+
* Cryptographic operations for the platform.
|
|
312
|
+
*/
|
|
65
313
|
crypto: PlatformCrypto;
|
|
314
|
+
/**
|
|
315
|
+
* Storage operations for the platform.
|
|
316
|
+
*/
|
|
66
317
|
storage: PlatformStorage;
|
|
318
|
+
/**
|
|
319
|
+
* Secure storage operations for the platform.
|
|
320
|
+
* This is optional and may not be available on all platforms (e.g., web browsers).
|
|
321
|
+
* When available, it provides access to platform-specific secure storage mechanisms
|
|
322
|
+
* such as iOS Keychain or Android Keystore.
|
|
323
|
+
*/
|
|
67
324
|
secureStorage?: PlatformSecureStorage;
|
|
325
|
+
/**
|
|
326
|
+
* OAuth operations for the platform.
|
|
327
|
+
*/
|
|
68
328
|
oauth: PlatformOAuth;
|
|
329
|
+
/**
|
|
330
|
+
* Device attestation operations for the platform.
|
|
331
|
+
* This is optional and only available on native mobile platforms (iOS 14+, Android 6.0+).
|
|
332
|
+
* Provides access to iOS App Attest and Android Play Integrity APIs for proving
|
|
333
|
+
* that requests come from legitimate app instances on genuine devices.
|
|
334
|
+
*/
|
|
69
335
|
attestation?: PlatformAttestation;
|
|
336
|
+
/**
|
|
337
|
+
* Device information for the platform.
|
|
338
|
+
* Optional — only provided on native platforms.
|
|
339
|
+
*/
|
|
70
340
|
deviceInfo?: PlatformDeviceInfo;
|
|
71
341
|
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { SecureIframeTheme } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The prefix for the secure iframe event types.
|
|
4
|
+
*/
|
|
2
5
|
export declare const SECURE_IFRAME_EVENT_TYPE_PREFIX = "CDP_WEB_SECURE_IFRAME_";
|
|
6
|
+
/**
|
|
7
|
+
* The base type of event for the secure iframe.
|
|
8
|
+
*/
|
|
3
9
|
export declare const SECURE_IFRAME_EVENT_TYPE: {
|
|
4
10
|
readonly INIT: "CDP_WEB_SECURE_IFRAME_INIT";
|
|
5
11
|
readonly LISTENING: "CDP_WEB_SECURE_IFRAME_LISTENING";
|
|
6
12
|
readonly STATUS: "CDP_WEB_SECURE_IFRAME_STATUS";
|
|
7
13
|
readonly THEME: "CDP_WEB_SECURE_IFRAME_THEME";
|
|
8
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* The type of event for the secure iframe key export.
|
|
17
|
+
*/
|
|
9
18
|
export declare const SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE: {
|
|
10
19
|
readonly GET_PRIVATE_KEY: "CDP_WEB_SECURE_IFRAME_GET_PRIVATE_KEY";
|
|
11
20
|
readonly INIT: "CDP_WEB_SECURE_IFRAME_INIT";
|
|
@@ -13,5 +22,11 @@ export declare const SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE: {
|
|
|
13
22
|
readonly STATUS: "CDP_WEB_SECURE_IFRAME_STATUS";
|
|
14
23
|
readonly THEME: "CDP_WEB_SECURE_IFRAME_THEME";
|
|
15
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* The default base path for the secure iframe.
|
|
27
|
+
*/
|
|
16
28
|
export declare const DEFAULT_SECURE_IFRAME_BASE_PATH = "https://secure-wallet.cdp.coinbase.com";
|
|
29
|
+
/**
|
|
30
|
+
* The default theme for the secure iframe.
|
|
31
|
+
*/
|
|
17
32
|
export declare const DEFAULT_SECURE_IFRAME_THEME: SecureIframeTheme;
|
|
@@ -1,49 +1,103 @@
|
|
|
1
1
|
import { SECURE_IFRAME_EVENT_TYPE, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE } from './data.js';
|
|
2
2
|
import { AuthManager } from '../auth/authManager.js';
|
|
3
|
+
/**
|
|
4
|
+
* The theme for the secure iframe.
|
|
5
|
+
* Colors should be hex strings (with or without alpha) or the string "transparent".
|
|
6
|
+
*/
|
|
3
7
|
export type SecureIframeTheme = {
|
|
8
|
+
/** The background color of the page. */
|
|
4
9
|
pageBg: string;
|
|
10
|
+
/** The background color of the button. */
|
|
5
11
|
buttonBg: string;
|
|
12
|
+
/** The background color of the button when hovered. */
|
|
6
13
|
buttonBgHover: string;
|
|
14
|
+
/** The background color of the button when pressed. */
|
|
7
15
|
buttonBgPressed: string;
|
|
16
|
+
/** The background color of the button when focused. */
|
|
8
17
|
buttonBgFocus: string;
|
|
18
|
+
/** The border color of the button. */
|
|
9
19
|
buttonBorder: string;
|
|
20
|
+
/** The border color of the button when hovered. */
|
|
10
21
|
buttonBorderHover: string;
|
|
22
|
+
/** The border color of the button when pressed. */
|
|
11
23
|
buttonBorderPressed: string;
|
|
24
|
+
/** The ring color of the button when focused. */
|
|
12
25
|
buttonBorderFocus: string;
|
|
26
|
+
/** The inner ring color of the button when focused. */
|
|
13
27
|
buttonBorderFocusInset: string;
|
|
28
|
+
/** The text color of the button. */
|
|
14
29
|
buttonText: string;
|
|
30
|
+
/** The text color of the button when hovered. */
|
|
15
31
|
buttonTextHover: string;
|
|
32
|
+
/** The text color of the button when pressed. */
|
|
16
33
|
buttonTextPressed: string;
|
|
34
|
+
/** The text color of the button when focused. */
|
|
17
35
|
buttonTextFocus: string;
|
|
36
|
+
/** The border radius of the button. */
|
|
18
37
|
buttonBorderRadius: number;
|
|
38
|
+
/** The font size of the button. */
|
|
19
39
|
buttonFontSize: number;
|
|
40
|
+
/** The font weight of the button. */
|
|
20
41
|
buttonFontWeight: number;
|
|
42
|
+
/** The size of the button. */
|
|
21
43
|
buttonSize: "xs" | "sm" | "md" | "lg";
|
|
44
|
+
/** The URL of the font to use for the button. Must be a google webfont URL. */
|
|
22
45
|
fontUrl: string;
|
|
46
|
+
/** The font family to use for the button. */
|
|
23
47
|
fontFamily: string;
|
|
24
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* The authentication state for the secure iframe. This is provided by the parent window.
|
|
51
|
+
*/
|
|
25
52
|
export type SecureIframeAuthState = Parameters<AuthManager["setAuthState"]>[0];
|
|
53
|
+
/**
|
|
54
|
+
* The type of account/chain for the secure iframe operations.
|
|
55
|
+
*/
|
|
26
56
|
export type SecureIframeChainType = "evm" | "solana";
|
|
57
|
+
/**
|
|
58
|
+
* Shared context data required for secure iframe operations.
|
|
59
|
+
*/
|
|
27
60
|
export type SecureIframeContext = {
|
|
28
61
|
authState: SecureIframeAuthState;
|
|
29
62
|
theme?: SecureIframeTheme;
|
|
30
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* The type of event for the secure iframe.
|
|
66
|
+
*/
|
|
31
67
|
export type SecureIframeEventType = typeof SECURE_IFRAME_EVENT_TYPE;
|
|
68
|
+
/**
|
|
69
|
+
* The message sent to the secure iframe to initialize it.
|
|
70
|
+
*/
|
|
32
71
|
export type SecureIframeInitMessage = {
|
|
33
72
|
type: SecureIframeEventType["INIT"];
|
|
34
73
|
payload: SecureIframeContext;
|
|
35
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* The message sent to the secure iframe to update the theme.
|
|
77
|
+
*/
|
|
36
78
|
export type SecureIframeThemeMessage = {
|
|
37
79
|
type: SecureIframeEventType["THEME"];
|
|
38
80
|
payload: {
|
|
39
81
|
theme: Partial<SecureIframeTheme>;
|
|
40
82
|
};
|
|
41
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* The messages sent to the secure iframe from the parent window.
|
|
86
|
+
*/
|
|
42
87
|
export type SecureIframeIncomingMessage = SecureIframeInitMessage | SecureIframeThemeMessage;
|
|
88
|
+
/**
|
|
89
|
+
* The message sent from the secure iframe to the parent window to indicate that it is ready to receive events.
|
|
90
|
+
*/
|
|
43
91
|
export type SecureIframeListeningMessage = {
|
|
44
92
|
type: SecureIframeEventType["LISTENING"];
|
|
45
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* The status of the secure iframe.
|
|
96
|
+
*/
|
|
46
97
|
export type SecureIframeStatus = "ready" | "success" | "error" | "expiring" | "expired";
|
|
98
|
+
/**
|
|
99
|
+
* The message sent from the secure iframe to the parent window to indicate the status of the private key retrieval.
|
|
100
|
+
*/
|
|
47
101
|
export type SecureIframeStatusMessage = {
|
|
48
102
|
type: SecureIframeEventType["STATUS"];
|
|
49
103
|
payload: {
|
|
@@ -51,8 +105,17 @@ export type SecureIframeStatusMessage = {
|
|
|
51
105
|
message?: string;
|
|
52
106
|
};
|
|
53
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* The messages sent from the secure iframe to the parent window.
|
|
110
|
+
*/
|
|
54
111
|
export type SecureIframeOutgoingMessage = SecureIframeListeningMessage | SecureIframeStatusMessage;
|
|
112
|
+
/**
|
|
113
|
+
* The type of event for the secure iframe key export.
|
|
114
|
+
*/
|
|
55
115
|
export type SecureIframeKeyExportEventType = typeof SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE;
|
|
116
|
+
/**
|
|
117
|
+
* The message sent to the secure iframe to trigger fetching the private key.
|
|
118
|
+
*/
|
|
56
119
|
export type SecureIframeGetPrivateKeyMessage = {
|
|
57
120
|
type: SecureIframeKeyExportEventType["GET_PRIVATE_KEY"];
|
|
58
121
|
payload: SecureIframeContext & {
|
|
@@ -60,5 +123,11 @@ export type SecureIframeGetPrivateKeyMessage = {
|
|
|
60
123
|
type: SecureIframeChainType;
|
|
61
124
|
};
|
|
62
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* The messages sent to the secure iframe from the parent window for key export.
|
|
128
|
+
*/
|
|
63
129
|
export type SecureIframeKeyExportIncomingMessage = SecureIframeIncomingMessage | SecureIframeGetPrivateKeyMessage;
|
|
130
|
+
/**
|
|
131
|
+
* The messages sent from the secure iframe to the parent window for key export.
|
|
132
|
+
*/
|
|
64
133
|
export type SecureIframeKeyExportOutgoingMessage = SecureIframeOutgoingMessage;
|
|
@@ -1,15 +1,81 @@
|
|
|
1
1
|
import { SecureIframeKeyExportIncomingMessage, SecureIframeKeyExportOutgoingMessage, SecureIframeTheme } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Options for building a key export iframe URL.
|
|
4
|
+
*/
|
|
2
5
|
export interface BuildKeyExportIframeUrlOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The project ID for authentication.
|
|
8
|
+
*/
|
|
3
9
|
projectId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The base path of the secure iframe.
|
|
12
|
+
*
|
|
13
|
+
* @default "https://secure-wallet.cdp.coinbase.com"
|
|
14
|
+
*/
|
|
4
15
|
basePath?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The label for the button displayed in the iframe.
|
|
18
|
+
*/
|
|
5
19
|
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The label to display when the key is copied successfully.
|
|
22
|
+
*/
|
|
6
23
|
copiedLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to show an icon in the button.
|
|
26
|
+
*
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
7
29
|
icon?: boolean;
|
|
8
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Validates that the function is called in a browser environment.
|
|
33
|
+
*
|
|
34
|
+
* @throws Error if the function is not called in a browser environment.
|
|
35
|
+
*/
|
|
9
36
|
export declare function validateSecureIframeEnvironment(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Builds the URL for the key export secure iframe with query parameters.
|
|
39
|
+
*
|
|
40
|
+
* @param options - The options for building the URL.
|
|
41
|
+
* @returns The complete iframe URL.
|
|
42
|
+
*/
|
|
10
43
|
export declare function buildKeyExportIframeUrl(options: BuildKeyExportIframeUrlOptions): string;
|
|
44
|
+
/**
|
|
45
|
+
* Sends a message to the secure iframe.
|
|
46
|
+
*
|
|
47
|
+
* @param iframe - The iframe element to send the message to.
|
|
48
|
+
* @param message - The message to send.
|
|
49
|
+
*/
|
|
11
50
|
export declare function sendSecureIframeMessage(iframe: HTMLIFrameElement | null, message: SecureIframeKeyExportIncomingMessage): void;
|
|
51
|
+
/**
|
|
52
|
+
* Extracts the origin from a URL string.
|
|
53
|
+
*
|
|
54
|
+
* @param url - The URL to extract the origin from.
|
|
55
|
+
* @returns The origin string, or empty string if parsing fails.
|
|
56
|
+
*/
|
|
12
57
|
export declare function getSecureIframeOrigin(url: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* Creates an iframe element inside the target container.
|
|
60
|
+
*
|
|
61
|
+
* @param target - Either a CSS selector string or an HTMLElement container.
|
|
62
|
+
* If a string, will query for an element and create an iframe inside it.
|
|
63
|
+
* If an HTMLElement, will create an iframe inside it.
|
|
64
|
+
* @returns The iframe element.
|
|
65
|
+
* @throws InputValidationError if target is an iframe element, selector resolves to an iframe, or selector doesn't match any element.
|
|
66
|
+
*/
|
|
13
67
|
export declare function createIframe(target: string | HTMLElement): HTMLIFrameElement;
|
|
68
|
+
/**
|
|
69
|
+
* Calculates the height of the secure iframe based on button size and font size.
|
|
70
|
+
*
|
|
71
|
+
* @param theme - Optional theme with buttonSize and buttonFontSize.
|
|
72
|
+
* @returns The calculated height in pixels.
|
|
73
|
+
*/
|
|
14
74
|
export declare function calculateSecureIframeHeight(theme?: Partial<SecureIframeTheme>): number;
|
|
75
|
+
/**
|
|
76
|
+
* Checks if the message is a key export message.
|
|
77
|
+
*
|
|
78
|
+
* @param {unknown} message - The message to check.
|
|
79
|
+
* @returns {boolean} True if the message is a key export message, false otherwise.
|
|
80
|
+
*/
|
|
15
81
|
export declare const isSecureIframeKeyExportMessage: (message: unknown) => message is SecureIframeKeyExportIncomingMessage | SecureIframeKeyExportOutgoingMessage;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic base64 encoding function.
|
|
3
|
+
* Uses native btoa() when available, falls back to manual implementation.
|
|
4
|
+
*
|
|
5
|
+
* @param data - The Uint8Array to encode.
|
|
6
|
+
* @returns The base64-encoded string.
|
|
7
|
+
*/
|
|
1
8
|
export declare function encodeBase64(data: Uint8Array): string;
|
|
9
|
+
/**
|
|
10
|
+
* Platform-agnostic base64 decoding function.
|
|
11
|
+
* Uses native atob() when available, falls back to manual implementation.
|
|
12
|
+
*
|
|
13
|
+
* @param base64 - The base64-encoded string to decode.
|
|
14
|
+
* @returns The decoded Uint8Array.
|
|
15
|
+
*/
|
|
2
16
|
export declare function decodeBase64(base64: string): Uint8Array;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { EndUser } from '@coinbase/cdp-api-client';
|
|
2
|
+
/**
|
|
3
|
+
* Completes the authentication flow after a successful auth response.
|
|
4
|
+
* Sets the auth state and creates any accounts configured for auto-creation on login.
|
|
5
|
+
*
|
|
6
|
+
* @param authResponse - The authentication response containing access token, expiry, and end user.
|
|
7
|
+
* @param authResponse.accessToken - The access token.
|
|
8
|
+
* @param authResponse.validUntil - The expiry date of the access token in ISO 8601 format.
|
|
9
|
+
* @param authResponse.endUser - The authenticated end user.
|
|
10
|
+
*/
|
|
2
11
|
export declare const completeAuthFlow: (authResponse: {
|
|
3
12
|
accessToken: string;
|
|
4
13
|
validUntil: string;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import { AuthState } from '../auth/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an EVM account if needed based on configuration.
|
|
4
|
+
*
|
|
5
|
+
* @param authState - The current authentication state
|
|
6
|
+
* @param accessToken - The access token or custom auth JWT
|
|
7
|
+
* @param validUntil - The valid until date and time
|
|
8
|
+
* @param accountType - The type of EVM account to create ("eoa" or "smart")
|
|
9
|
+
* @returns The updated authentication state
|
|
10
|
+
*/
|
|
2
11
|
export declare const createEvmAccountIfNeeded: (authState: AuthState, accessToken: string, validUntil: string, accountType: "eoa" | "smart") => Promise<AuthState>;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
import { AuthState } from '../auth/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Solana account if needed based on configuration.
|
|
4
|
+
*
|
|
5
|
+
* @param authState - The current authentication state
|
|
6
|
+
* @param accessToken - The access token or custom auth JWT
|
|
7
|
+
* @param validUntil - The valid until date and time
|
|
8
|
+
* @returns The updated authentication state
|
|
9
|
+
*/
|
|
2
10
|
export declare const createSolanaAccountIfNeeded: (authState: AuthState, accessToken: string, validUntil: string) => Promise<AuthState>;
|