@coinbase/cdp-core 0.0.60 → 0.0.61
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 +64 -0
- package/dist/esm/index.native.js +59 -56
- package/dist/esm/index.native10.js +4 -4
- package/dist/esm/index.native100.js +364 -7
- package/dist/esm/index.native101.js +54 -3
- package/dist/esm/index.native102.js +10 -19
- package/dist/esm/index.native103.js +2 -9
- package/dist/esm/index.native104.js +45 -8
- package/dist/esm/index.native105.js +13 -71
- package/dist/esm/index.native106.js +2 -19
- package/dist/esm/index.native107.js +4 -3
- package/dist/esm/index.native108.js +18 -4
- package/dist/esm/index.native109.js +7 -4
- package/dist/esm/index.native11.js +3 -3
- package/dist/esm/index.native110.js +3 -4
- package/dist/esm/index.native111.js +14 -14
- package/dist/esm/index.native112.js +8 -52
- package/dist/esm/index.native113.js +6 -16
- package/dist/esm/index.native114.js +70 -19
- package/dist/esm/index.native115.js +18 -8
- package/dist/esm/index.native116.js +3 -30
- package/dist/esm/index.native117.js +4 -7
- package/dist/esm/index.native118.js +4 -20
- package/dist/esm/index.native119.js +4 -54
- package/dist/esm/index.native12.js +3 -3
- package/dist/esm/index.native120.js +19 -10
- package/dist/esm/index.native121.js +53 -2
- package/dist/esm/index.native122.js +18 -45
- package/dist/esm/index.native123.js +20 -13
- package/dist/esm/index.native124.js +8 -4
- package/dist/esm/index.native125.js +31 -2
- package/dist/esm/index.native126.js +7 -20
- package/dist/esm/index.native127.js +21 -5
- package/dist/esm/index.native128.js +15 -42
- package/dist/esm/index.native129.js +5 -20
- package/dist/esm/index.native13.js +3 -3
- package/dist/esm/index.native130.js +47 -79
- package/dist/esm/index.native131.js +18 -102
- package/dist/esm/index.native132.js +79 -32
- package/dist/esm/index.native133.js +103 -6
- package/dist/esm/index.native134.js +30 -18
- package/dist/esm/index.native135.js +7 -10
- package/dist/esm/index.native136.js +5 -20
- package/dist/esm/index.native137.js +75 -90
- package/dist/esm/index.native138.js +4 -21
- package/dist/esm/index.native139.js +20 -117
- package/dist/esm/index.native14.js +3 -3
- package/dist/esm/index.native140.js +10 -79
- package/dist/esm/index.native141.js +19 -46
- package/dist/esm/index.native142.js +94 -4
- package/dist/esm/index.native143.js +21 -2
- package/dist/esm/index.native144.js +115 -106
- package/dist/esm/index.native145.js +47 -2
- package/dist/esm/index.native148.js +1 -1
- package/dist/esm/index.native149.js +1 -1
- package/dist/esm/index.native15.js +3 -3
- package/dist/esm/index.native152.js +1 -1
- package/dist/esm/index.native156.js +2 -18
- package/dist/esm/index.native157.js +109 -28
- package/dist/esm/index.native158.js +2 -8
- package/dist/esm/index.native159.js +18 -11
- package/dist/esm/index.native16.js +25 -24
- package/dist/esm/index.native160.js +28 -13
- package/dist/esm/index.native161.js +8 -10
- package/dist/esm/index.native162.js +11 -17
- package/dist/esm/index.native163.js +12 -80
- package/dist/esm/index.native164.js +9 -14
- package/dist/esm/index.native165.js +17 -2
- package/dist/esm/index.native166.js +81 -2
- package/dist/esm/index.native167.js +15 -2
- package/dist/esm/index.native168.js +2 -79
- package/dist/esm/index.native169.js +4 -0
- package/dist/esm/index.native17.js +18 -116
- package/dist/esm/index.native170.js +4 -0
- package/dist/esm/index.native171.js +81 -0
- package/dist/esm/index.native18.js +116 -32
- package/dist/esm/index.native19.js +32 -47
- package/dist/esm/index.native2.js +2 -2
- package/dist/esm/index.native20.js +45 -146
- package/dist/esm/index.native21.js +145 -28
- package/dist/esm/index.native22.js +31 -27
- package/dist/esm/index.native23.js +28 -3
- package/dist/esm/index.native24.js +3 -58
- package/dist/esm/index.native25.js +60 -2
- package/dist/esm/index.native26.js +2 -90
- package/dist/esm/index.native27.js +8 -15
- package/dist/esm/index.native28.js +56 -17
- package/dist/esm/index.native29.js +66 -105
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +15 -60
- package/dist/esm/index.native31.js +16 -13
- package/dist/esm/index.native32.js +127 -42
- package/dist/esm/index.native33.js +58 -150
- package/dist/esm/index.native34.js +13 -42
- package/dist/esm/index.native35.js +42 -41
- package/dist/esm/index.native36.js +152 -48
- package/dist/esm/index.native37.js +39 -68
- package/dist/esm/index.native38.js +40 -25
- package/dist/esm/index.native39.js +47 -158
- package/dist/esm/index.native40.js +71 -46
- package/dist/esm/index.native41.js +26 -17
- package/dist/esm/index.native42.js +155 -68
- package/dist/esm/index.native43.js +44 -947
- package/dist/esm/index.native44.js +18 -2
- package/dist/esm/index.native45.js +72 -49
- package/dist/esm/index.native46.js +950 -27
- package/dist/esm/index.native47.js +2 -2
- package/dist/esm/index.native48.js +49 -376
- package/dist/esm/index.native49.js +27 -28
- package/dist/esm/index.native50.js +2 -29
- package/dist/esm/index.native51.js +373 -13
- package/dist/esm/index.native52.js +28 -22
- package/dist/esm/index.native53.js +28 -50
- package/dist/esm/index.native54.js +19 -2
- package/dist/esm/index.native55.js +20 -63
- package/dist/esm/index.native56.js +37 -351
- package/dist/esm/index.native59.js +1 -1
- package/dist/esm/index.native7.js +276 -225
- package/dist/esm/index.native74.js +1 -1
- package/dist/esm/index.native75.js +1 -1
- package/dist/esm/index.native78.js +2 -2
- package/dist/esm/index.native8.js +5 -5
- package/dist/esm/index.native80.js +1 -1
- package/dist/esm/index.native9.js +4 -4
- package/dist/esm/index.native92.js +1 -1
- package/dist/esm/index.native93.js +1 -1
- package/dist/esm/index.native98.js +2 -7
- package/dist/esm/index.native99.js +64 -17
- package/dist/esm/index.web.js +58 -55
- package/dist/esm/index.web10.js +3 -3
- package/dist/esm/index.web100.js +5 -2
- package/dist/esm/index.web101.js +54 -44
- package/dist/esm/index.web102.js +10 -13
- package/dist/esm/index.web103.js +2 -2
- package/dist/esm/index.web104.js +45 -5
- package/dist/esm/index.web105.js +13 -18
- package/dist/esm/index.web106.js +2 -8
- package/dist/esm/index.web107.js +4 -3
- package/dist/esm/index.web108.js +13 -14
- package/dist/esm/index.web109.js +7 -8
- package/dist/esm/index.web11.js +3 -3
- package/dist/esm/index.web110.js +3 -7
- package/dist/esm/index.web111.js +18 -70
- package/dist/esm/index.web112.js +8 -18
- package/dist/esm/index.web113.js +7 -3
- package/dist/esm/index.web114.js +71 -4
- package/dist/esm/index.web115.js +18 -4
- package/dist/esm/index.web116.js +3 -4
- package/dist/esm/index.web117.js +4 -19
- package/dist/esm/index.web118.js +4 -52
- package/dist/esm/index.web119.js +4 -17
- package/dist/esm/index.web12.js +3 -3
- package/dist/esm/index.web120.js +12 -13
- package/dist/esm/index.web121.js +52 -8
- package/dist/esm/index.web122.js +17 -30
- package/dist/esm/index.web123.js +20 -7
- package/dist/esm/index.web124.js +8 -20
- package/dist/esm/index.web125.js +28 -18
- package/dist/esm/index.web126.js +8 -5
- package/dist/esm/index.web127.js +17 -44
- package/dist/esm/index.web128.js +18 -17
- package/dist/esm/index.web129.js +5 -80
- package/dist/esm/index.web13.js +3 -3
- package/dist/esm/index.web130.js +43 -99
- package/dist/esm/index.web131.js +18 -31
- package/dist/esm/index.web132.js +79 -6
- package/dist/esm/index.web133.js +104 -2
- package/dist/esm/index.web134.js +31 -107
- package/dist/esm/index.web135.js +7 -2
- package/dist/esm/index.web136.js +1 -1
- package/dist/esm/index.web138.js +2 -21
- package/dist/esm/index.web139.js +109 -10
- package/dist/esm/index.web14.js +3 -3
- package/dist/esm/index.web140.js +2 -20
- package/dist/esm/index.web141.js +20 -93
- package/dist/esm/index.web142.js +9 -20
- package/dist/esm/index.web143.js +16 -114
- package/dist/esm/index.web144.js +91 -44
- package/dist/esm/index.web145.js +21 -8
- package/dist/esm/index.web146.js +118 -2
- package/dist/esm/index.web147.js +42 -373
- package/dist/esm/index.web148.js +38 -832
- package/dist/esm/index.web149.js +2 -39
- package/dist/esm/index.web15.js +25 -24
- package/dist/esm/index.web150.js +70 -2
- package/dist/esm/index.web151.js +31 -66
- package/dist/esm/index.web152.js +19 -33
- package/dist/esm/index.web153.js +7 -20
- package/dist/esm/index.web154.js +2 -5
- package/dist/esm/index.web155.js +377 -17
- package/dist/esm/index.web156.js +833 -28
- package/dist/esm/index.web157.js +5 -8
- package/dist/esm/index.web158.js +18 -11
- package/dist/esm/index.web159.js +28 -13
- package/dist/esm/index.web16.js +18 -116
- package/dist/esm/index.web160.js +8 -10
- package/dist/esm/index.web161.js +11 -17
- package/dist/esm/index.web162.js +12 -80
- package/dist/esm/index.web163.js +9 -14
- package/dist/esm/index.web164.js +17 -2
- package/dist/esm/index.web165.js +81 -2
- package/dist/esm/index.web166.js +15 -2
- package/dist/esm/index.web167.js +2 -79
- package/dist/esm/index.web168.js +4 -0
- package/dist/esm/index.web169.js +4 -0
- package/dist/esm/index.web17.js +116 -32
- package/dist/esm/index.web170.js +81 -0
- package/dist/esm/index.web18.js +32 -47
- package/dist/esm/index.web19.js +45 -146
- package/dist/esm/index.web20.js +145 -28
- package/dist/esm/index.web21.js +32 -3
- package/dist/esm/index.web22.js +3 -58
- package/dist/esm/index.web23.js +60 -2
- package/dist/esm/index.web24.js +2 -90
- package/dist/esm/index.web25.js +8 -15
- package/dist/esm/index.web26.js +56 -17
- package/dist/esm/index.web27.js +66 -105
- package/dist/esm/index.web28.js +15 -60
- package/dist/esm/index.web29.js +16 -13
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +127 -42
- package/dist/esm/index.web31.js +59 -26
- package/dist/esm/index.web32.js +13 -151
- package/dist/esm/index.web33.js +42 -44
- package/dist/esm/index.web34.js +28 -41
- package/dist/esm/index.web35.js +152 -48
- package/dist/esm/index.web36.js +39 -68
- package/dist/esm/index.web37.js +40 -25
- package/dist/esm/index.web38.js +47 -158
- package/dist/esm/index.web39.js +71 -46
- package/dist/esm/index.web40.js +26 -17
- package/dist/esm/index.web41.js +155 -68
- package/dist/esm/index.web42.js +44 -947
- package/dist/esm/index.web43.js +18 -2
- package/dist/esm/index.web44.js +72 -49
- package/dist/esm/index.web45.js +950 -27
- package/dist/esm/index.web46.js +2 -377
- package/dist/esm/index.web47.js +52 -2
- package/dist/esm/index.web48.js +27 -65
- package/dist/esm/index.web49.js +189 -177
- package/dist/esm/index.web50.js +2 -4
- package/dist/esm/index.web51.js +65 -28
- package/dist/esm/index.web52.js +364 -28
- package/dist/esm/index.web53.js +2 -17
- package/dist/esm/index.web54.js +28 -22
- package/dist/esm/index.web55.js +28 -50
- package/dist/esm/index.web56.js +17 -2
- package/dist/esm/index.web57.js +23 -2
- package/dist/esm/index.web58.js +49 -16
- package/dist/esm/index.web59.js +2 -46
- package/dist/esm/index.web6.js +276 -225
- package/dist/esm/index.web60.js +2 -14
- package/dist/esm/index.web61.js +16 -54
- package/dist/esm/index.web62.js +45 -6
- package/dist/esm/index.web63.js +13 -21
- package/dist/esm/index.web64.js +55 -11
- package/dist/esm/index.web65.js +6 -3
- package/dist/esm/index.web66.js +21 -3
- package/dist/esm/index.web67.js +11 -34
- package/dist/esm/index.web68.js +3 -12
- package/dist/esm/index.web69.js +3 -4
- package/dist/esm/index.web7.js +5 -5
- package/dist/esm/index.web70.js +31 -25
- package/dist/esm/index.web71.js +12 -6
- package/dist/esm/index.web72.js +4 -42
- package/dist/esm/index.web73.js +27 -54
- package/dist/esm/index.web74.js +6 -127
- package/dist/esm/index.web75.js +40 -21
- package/dist/esm/index.web76.js +53 -10
- package/dist/esm/index.web77.js +125 -102
- package/dist/esm/index.web78.js +23 -6
- package/dist/esm/index.web79.js +13 -3
- package/dist/esm/index.web8.js +4 -4
- package/dist/esm/index.web80.js +104 -14
- package/dist/esm/index.web81.js +6 -34
- package/dist/esm/index.web82.js +3 -79
- package/dist/esm/index.web83.js +15 -2
- package/dist/esm/index.web84.js +35 -2
- package/dist/esm/index.web85.js +77 -11
- package/dist/esm/index.web86.js +2 -38
- package/dist/esm/index.web87.js +2 -7
- package/dist/esm/index.web88.js +10 -32
- package/dist/esm/index.web89.js +37 -8
- package/dist/esm/index.web9.js +4 -4
- package/dist/esm/index.web90.js +5 -9
- package/dist/esm/index.web91.js +34 -11
- package/dist/esm/index.web92.js +8 -13
- package/dist/esm/index.web93.js +9 -17
- package/dist/esm/index.web94.js +11 -5
- package/dist/esm/index.web95.js +14 -5
- package/dist/esm/index.web96.js +18 -10
- package/dist/esm/index.web97.js +5 -4
- package/dist/esm/index.web98.js +5 -55
- package/dist/esm/index.web99.js +10 -10
- package/dist/native/index.native.js +59 -56
- package/dist/native/index.native10.js +4 -4
- package/dist/native/index.native100.js +364 -7
- package/dist/native/index.native101.js +54 -3
- package/dist/native/index.native102.js +10 -19
- package/dist/native/index.native103.js +2 -9
- package/dist/native/index.native104.js +45 -8
- package/dist/native/index.native105.js +13 -71
- package/dist/native/index.native106.js +2 -19
- package/dist/native/index.native107.js +4 -3
- package/dist/native/index.native108.js +18 -4
- package/dist/native/index.native109.js +7 -4
- package/dist/native/index.native11.js +3 -3
- package/dist/native/index.native110.js +3 -4
- package/dist/native/index.native111.js +14 -14
- package/dist/native/index.native112.js +8 -52
- package/dist/native/index.native113.js +6 -16
- package/dist/native/index.native114.js +70 -19
- package/dist/native/index.native115.js +18 -8
- package/dist/native/index.native116.js +3 -30
- package/dist/native/index.native117.js +4 -7
- package/dist/native/index.native118.js +4 -20
- package/dist/native/index.native119.js +4 -54
- package/dist/native/index.native12.js +3 -3
- package/dist/native/index.native120.js +19 -10
- package/dist/native/index.native121.js +53 -2
- package/dist/native/index.native122.js +18 -45
- package/dist/native/index.native123.js +20 -13
- package/dist/native/index.native124.js +8 -4
- package/dist/native/index.native125.js +31 -2
- package/dist/native/index.native126.js +7 -20
- package/dist/native/index.native127.js +21 -5
- package/dist/native/index.native128.js +15 -42
- package/dist/native/index.native129.js +5 -20
- package/dist/native/index.native13.js +3 -3
- package/dist/native/index.native130.js +47 -79
- package/dist/native/index.native131.js +18 -102
- package/dist/native/index.native132.js +79 -32
- package/dist/native/index.native133.js +103 -6
- package/dist/native/index.native134.js +30 -18
- package/dist/native/index.native135.js +7 -10
- package/dist/native/index.native136.js +5 -20
- package/dist/native/index.native137.js +75 -90
- package/dist/native/index.native138.js +4 -21
- package/dist/native/index.native139.js +20 -117
- package/dist/native/index.native14.js +3 -3
- package/dist/native/index.native140.js +10 -79
- package/dist/native/index.native141.js +19 -46
- package/dist/native/index.native142.js +94 -4
- package/dist/native/index.native143.js +21 -2
- package/dist/native/index.native144.js +115 -106
- package/dist/native/index.native145.js +47 -2
- package/dist/native/index.native148.js +1 -1
- package/dist/native/index.native149.js +1 -1
- package/dist/native/index.native15.js +3 -3
- package/dist/native/index.native152.js +1 -1
- package/dist/native/index.native156.js +2 -18
- package/dist/native/index.native157.js +109 -28
- package/dist/native/index.native158.js +2 -8
- package/dist/native/index.native159.js +18 -11
- package/dist/native/index.native16.js +25 -24
- package/dist/native/index.native160.js +28 -13
- package/dist/native/index.native161.js +8 -10
- package/dist/native/index.native162.js +11 -17
- package/dist/native/index.native163.js +12 -80
- package/dist/native/index.native164.js +9 -14
- package/dist/native/index.native165.js +17 -2
- package/dist/native/index.native166.js +81 -2
- package/dist/native/index.native167.js +15 -2
- package/dist/native/index.native168.js +2 -79
- package/dist/native/index.native169.js +4 -0
- package/dist/native/index.native17.js +18 -116
- package/dist/native/index.native170.js +4 -0
- package/dist/native/index.native171.js +81 -0
- package/dist/native/index.native18.js +116 -32
- package/dist/native/index.native19.js +32 -47
- package/dist/native/index.native2.js +2 -2
- package/dist/native/index.native20.js +45 -146
- package/dist/native/index.native21.js +145 -28
- package/dist/native/index.native22.js +31 -27
- package/dist/native/index.native23.js +28 -3
- package/dist/native/index.native24.js +3 -58
- package/dist/native/index.native25.js +60 -2
- package/dist/native/index.native26.js +2 -90
- package/dist/native/index.native27.js +8 -15
- package/dist/native/index.native28.js +56 -17
- package/dist/native/index.native29.js +66 -105
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +15 -60
- package/dist/native/index.native31.js +16 -13
- package/dist/native/index.native32.js +127 -42
- package/dist/native/index.native33.js +58 -150
- package/dist/native/index.native34.js +13 -42
- package/dist/native/index.native35.js +42 -41
- package/dist/native/index.native36.js +152 -48
- package/dist/native/index.native37.js +39 -68
- package/dist/native/index.native38.js +40 -25
- package/dist/native/index.native39.js +47 -158
- package/dist/native/index.native40.js +71 -46
- package/dist/native/index.native41.js +26 -17
- package/dist/native/index.native42.js +155 -68
- package/dist/native/index.native43.js +44 -947
- package/dist/native/index.native44.js +18 -2
- package/dist/native/index.native45.js +72 -49
- package/dist/native/index.native46.js +950 -27
- package/dist/native/index.native47.js +2 -2
- package/dist/native/index.native48.js +49 -376
- package/dist/native/index.native49.js +27 -28
- package/dist/native/index.native50.js +2 -29
- package/dist/native/index.native51.js +373 -13
- package/dist/native/index.native52.js +28 -22
- package/dist/native/index.native53.js +28 -50
- package/dist/native/index.native54.js +19 -2
- package/dist/native/index.native55.js +20 -63
- package/dist/native/index.native56.js +37 -351
- package/dist/native/index.native59.js +1 -1
- package/dist/native/index.native7.js +276 -225
- package/dist/native/index.native74.js +1 -1
- package/dist/native/index.native75.js +1 -1
- package/dist/native/index.native78.js +2 -2
- package/dist/native/index.native8.js +5 -5
- package/dist/native/index.native80.js +1 -1
- package/dist/native/index.native9.js +4 -4
- package/dist/native/index.native92.js +1 -1
- package/dist/native/index.native93.js +1 -1
- package/dist/native/index.native98.js +2 -7
- package/dist/native/index.native99.js +64 -17
- package/dist/native-types/auth/authManager.d.ts +12 -12
- package/dist/native-types/auth/createAuthManager.d.ts +2 -0
- package/dist/native-types/auth/customAuthManager.d.ts +9 -0
- package/dist/native-types/core.d.ts +2 -1
- package/dist/native-types/types.d.ts +12 -0
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/auth/authManager.d.ts +12 -12
- package/dist/types/auth/createAuthManager.d.ts +2 -0
- package/dist/types/auth/customAuthManager.d.ts +9 -0
- package/dist/types/core.d.ts +2 -1
- package/dist/types/types.d.ts +12 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +58 -55
- package/dist/web/index.web10.js +3 -3
- package/dist/web/index.web100.js +5 -2
- package/dist/web/index.web101.js +54 -44
- package/dist/web/index.web102.js +10 -13
- package/dist/web/index.web103.js +2 -2
- package/dist/web/index.web104.js +45 -5
- package/dist/web/index.web105.js +13 -18
- package/dist/web/index.web106.js +2 -8
- package/dist/web/index.web107.js +4 -3
- package/dist/web/index.web108.js +13 -14
- package/dist/web/index.web109.js +7 -8
- package/dist/web/index.web11.js +3 -3
- package/dist/web/index.web110.js +3 -7
- package/dist/web/index.web111.js +18 -70
- package/dist/web/index.web112.js +8 -18
- package/dist/web/index.web113.js +7 -3
- package/dist/web/index.web114.js +71 -4
- package/dist/web/index.web115.js +18 -4
- package/dist/web/index.web116.js +3 -4
- package/dist/web/index.web117.js +4 -19
- package/dist/web/index.web118.js +4 -52
- package/dist/web/index.web119.js +4 -17
- package/dist/web/index.web12.js +3 -3
- package/dist/web/index.web120.js +12 -13
- package/dist/web/index.web121.js +52 -8
- package/dist/web/index.web122.js +17 -30
- package/dist/web/index.web123.js +20 -7
- package/dist/web/index.web124.js +8 -20
- package/dist/web/index.web125.js +28 -18
- package/dist/web/index.web126.js +8 -5
- package/dist/web/index.web127.js +17 -44
- package/dist/web/index.web128.js +18 -17
- package/dist/web/index.web129.js +5 -80
- package/dist/web/index.web13.js +3 -3
- package/dist/web/index.web130.js +43 -99
- package/dist/web/index.web131.js +18 -31
- package/dist/web/index.web132.js +79 -6
- package/dist/web/index.web133.js +104 -2
- package/dist/web/index.web134.js +31 -107
- package/dist/web/index.web135.js +7 -2
- package/dist/web/index.web136.js +1 -1
- package/dist/web/index.web138.js +2 -21
- package/dist/web/index.web139.js +109 -10
- package/dist/web/index.web14.js +3 -3
- package/dist/web/index.web140.js +2 -20
- package/dist/web/index.web141.js +20 -93
- package/dist/web/index.web142.js +9 -20
- package/dist/web/index.web143.js +16 -114
- package/dist/web/index.web144.js +91 -44
- package/dist/web/index.web145.js +21 -8
- package/dist/web/index.web146.js +118 -2
- package/dist/web/index.web147.js +42 -373
- package/dist/web/index.web148.js +38 -832
- package/dist/web/index.web149.js +2 -39
- package/dist/web/index.web15.js +25 -24
- package/dist/web/index.web150.js +70 -2
- package/dist/web/index.web151.js +31 -66
- package/dist/web/index.web152.js +19 -33
- package/dist/web/index.web153.js +7 -20
- package/dist/web/index.web154.js +2 -5
- package/dist/web/index.web155.js +377 -17
- package/dist/web/index.web156.js +833 -28
- package/dist/web/index.web157.js +5 -8
- package/dist/web/index.web158.js +18 -11
- package/dist/web/index.web159.js +28 -13
- package/dist/web/index.web16.js +18 -116
- package/dist/web/index.web160.js +8 -10
- package/dist/web/index.web161.js +11 -17
- package/dist/web/index.web162.js +12 -80
- package/dist/web/index.web163.js +9 -14
- package/dist/web/index.web164.js +17 -2
- package/dist/web/index.web165.js +81 -2
- package/dist/web/index.web166.js +15 -2
- package/dist/web/index.web167.js +2 -79
- package/dist/web/index.web168.js +4 -0
- package/dist/web/index.web169.js +4 -0
- package/dist/web/index.web17.js +116 -32
- package/dist/web/index.web170.js +81 -0
- package/dist/web/index.web18.js +32 -47
- package/dist/web/index.web19.js +45 -146
- package/dist/web/index.web20.js +145 -28
- package/dist/web/index.web21.js +32 -3
- package/dist/web/index.web22.js +3 -58
- package/dist/web/index.web23.js +60 -2
- package/dist/web/index.web24.js +2 -90
- package/dist/web/index.web25.js +8 -15
- package/dist/web/index.web26.js +56 -17
- package/dist/web/index.web27.js +66 -105
- package/dist/web/index.web28.js +15 -60
- package/dist/web/index.web29.js +16 -13
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +127 -42
- package/dist/web/index.web31.js +59 -26
- package/dist/web/index.web32.js +13 -151
- package/dist/web/index.web33.js +42 -44
- package/dist/web/index.web34.js +28 -41
- package/dist/web/index.web35.js +152 -48
- package/dist/web/index.web36.js +39 -68
- package/dist/web/index.web37.js +40 -25
- package/dist/web/index.web38.js +47 -158
- package/dist/web/index.web39.js +71 -46
- package/dist/web/index.web40.js +26 -17
- package/dist/web/index.web41.js +155 -68
- package/dist/web/index.web42.js +44 -947
- package/dist/web/index.web43.js +18 -2
- package/dist/web/index.web44.js +72 -49
- package/dist/web/index.web45.js +950 -27
- package/dist/web/index.web46.js +2 -377
- package/dist/web/index.web47.js +52 -2
- package/dist/web/index.web48.js +27 -65
- package/dist/web/index.web49.js +189 -177
- package/dist/web/index.web50.js +2 -4
- package/dist/web/index.web51.js +65 -28
- package/dist/web/index.web52.js +364 -28
- package/dist/web/index.web53.js +2 -17
- package/dist/web/index.web54.js +28 -22
- package/dist/web/index.web55.js +28 -50
- package/dist/web/index.web56.js +17 -2
- package/dist/web/index.web57.js +23 -2
- package/dist/web/index.web58.js +49 -16
- package/dist/web/index.web59.js +2 -46
- package/dist/web/index.web6.js +276 -225
- package/dist/web/index.web60.js +2 -14
- package/dist/web/index.web61.js +16 -54
- package/dist/web/index.web62.js +45 -6
- package/dist/web/index.web63.js +13 -21
- package/dist/web/index.web64.js +55 -11
- package/dist/web/index.web65.js +6 -3
- package/dist/web/index.web66.js +21 -3
- package/dist/web/index.web67.js +11 -34
- package/dist/web/index.web68.js +3 -12
- package/dist/web/index.web69.js +3 -4
- package/dist/web/index.web7.js +5 -5
- package/dist/web/index.web70.js +31 -25
- package/dist/web/index.web71.js +12 -6
- package/dist/web/index.web72.js +4 -42
- package/dist/web/index.web73.js +27 -54
- package/dist/web/index.web74.js +6 -127
- package/dist/web/index.web75.js +40 -21
- package/dist/web/index.web76.js +53 -10
- package/dist/web/index.web77.js +125 -102
- package/dist/web/index.web78.js +23 -6
- package/dist/web/index.web79.js +13 -3
- package/dist/web/index.web8.js +4 -4
- package/dist/web/index.web80.js +104 -14
- package/dist/web/index.web81.js +6 -34
- package/dist/web/index.web82.js +3 -79
- package/dist/web/index.web83.js +15 -2
- package/dist/web/index.web84.js +35 -2
- package/dist/web/index.web85.js +77 -11
- package/dist/web/index.web86.js +2 -38
- package/dist/web/index.web87.js +2 -7
- package/dist/web/index.web88.js +10 -32
- package/dist/web/index.web89.js +37 -8
- package/dist/web/index.web9.js +4 -4
- package/dist/web/index.web90.js +5 -9
- package/dist/web/index.web91.js +34 -11
- package/dist/web/index.web92.js +8 -13
- package/dist/web/index.web93.js +9 -17
- package/dist/web/index.web94.js +11 -5
- package/dist/web/index.web95.js +14 -5
- package/dist/web/index.web96.js +18 -10
- package/dist/web/index.web97.js +5 -4
- package/dist/web/index.web98.js +5 -55
- package/dist/web/index.web99.js +10 -10
- package/dist/web-types/auth/authManager.d.ts +12 -12
- package/dist/web-types/auth/createAuthManager.d.ts +2 -0
- package/dist/web-types/auth/customAuthManager.d.ts +9 -0
- package/dist/web-types/core.d.ts +2 -1
- package/dist/web-types/types.d.ts +12 -0
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { version as o } from "./index.
|
|
1
|
+
import { version as o } from "./index.native106.js";
|
|
2
2
|
let r = {
|
|
3
3
|
getDocsUrl: ({ docsBaseUrl: s, docsPath: t = "", docsSlug: e }) => t ? `${s ?? "https://viem.sh"}${t}${e ? `#${e}` : ""}` : void 0,
|
|
4
4
|
version: `viem@${o}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NegativeOffsetError as o, PositionOutOfBoundsError as e, RecursiveReadLimitExceededError as n } from "./index.
|
|
1
|
+
import { NegativeOffsetError as o, PositionOutOfBoundsError as e, RecursiveReadLimitExceededError as n } from "./index.native128.js";
|
|
2
2
|
const h = {
|
|
3
3
|
bytes: new Uint8Array(),
|
|
4
4
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index.
|
|
2
|
-
import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index.
|
|
1
|
+
import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index.native131.js";
|
|
2
|
+
import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index.native132.js";
|
|
3
3
|
const R = BigInt(0), f = BigInt(1), j = BigInt(2), q = BigInt(7), v = BigInt(256), z = BigInt(113), _ = [], g = [], B = [];
|
|
4
4
|
for (let n = 0, t = f, s = 1, i = 0; n < 24; n++) {
|
|
5
5
|
[s, i] = [i, (2 * s + 3 * i) % 5], _.push(2 * (5 * i + s)), g.push((n + 1) * (n + 2) / 2 % 64);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createSpendPermissionWithEndUserAccount as a } from "@coinbase/cdp-api-client";
|
|
2
|
-
import { Analytics as o } from "./index.
|
|
3
|
-
import "./index.
|
|
4
|
-
import { withAuth as i } from "./index.
|
|
5
|
-
import { toSpendPermission as m } from "./index.
|
|
6
|
-
import { getConfig as t, getCoreAuthManager as c } from "./index.
|
|
2
|
+
import { Analytics as o } from "./index.native25.js";
|
|
3
|
+
import "./index.native26.js";
|
|
4
|
+
import { withAuth as i } from "./index.native31.js";
|
|
5
|
+
import { toSpendPermission as m } from "./index.native37.js";
|
|
6
|
+
import { getConfig as t, getCoreAuthManager as c } from "./index.native23.js";
|
|
7
7
|
const h = async (e) => (o.sendActionCallEvent({ name: "create_spend_permission" }), t().useMock ? {
|
|
8
8
|
userOperationHash: "0x1234567890123456789012345678901234567890123456789012345678901234"
|
|
9
9
|
} : i(e, c(), async ({ user: n, walletSecretId: s }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { listSpendPermissionsWithEndUserAccount as a } from "@coinbase/cdp-api-client";
|
|
2
|
-
import { Analytics as i } from "./index.
|
|
3
|
-
import "./index.
|
|
4
|
-
import { withAuth as o } from "./index.
|
|
5
|
-
import { getConfig as r, getCoreAuthManager as m } from "./index.
|
|
2
|
+
import { Analytics as i } from "./index.native25.js";
|
|
3
|
+
import "./index.native26.js";
|
|
4
|
+
import { withAuth as o } from "./index.native31.js";
|
|
5
|
+
import { getConfig as r, getCoreAuthManager as m } from "./index.native23.js";
|
|
6
6
|
const k = async (e) => (i.sendActionCallEvent({ name: "list_spend_permissions" }), r().useMock ? {
|
|
7
7
|
spendPermissions: [
|
|
8
8
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { commitmentToVersionedHash as i } from "./index.
|
|
1
|
+
import { commitmentToVersionedHash as i } from "./index.native135.js";
|
|
2
2
|
function r(o) {
|
|
3
3
|
const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
|
|
4
4
|
for (const m of t)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { blobsToCommitments as f } from "./index.native90.js";
|
|
2
2
|
import { blobsToProofs as l } from "./index.native91.js";
|
|
3
|
-
import { toBlobs as p } from "./index.
|
|
3
|
+
import { toBlobs as p } from "./index.native134.js";
|
|
4
4
|
function k(t) {
|
|
5
5
|
const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
|
|
6
6
|
for (let o = 0; o < s.length; o++)
|
|
@@ -1,21 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { getVersion as n } from "./index.native136.js";
|
|
2
|
+
class s extends Error {
|
|
3
|
+
constructor(r, e = {}) {
|
|
4
|
+
const a = (() => {
|
|
5
|
+
if (e.cause instanceof s) {
|
|
6
|
+
if (e.cause.details)
|
|
7
|
+
return e.cause.details;
|
|
8
|
+
if (e.cause.shortMessage)
|
|
9
|
+
return e.cause.shortMessage;
|
|
10
|
+
}
|
|
11
|
+
return e.cause && "details" in e.cause && typeof e.cause.details == "string" ? e.cause.details : e.cause?.message ? e.cause.message : e.details;
|
|
12
|
+
})(), u = e.cause instanceof s && e.cause.docsPath || e.docsPath, c = `https://oxlib.sh${u ?? ""}`, l = [
|
|
13
|
+
r || "An error occurred.",
|
|
14
|
+
...e.metaMessages ? ["", ...e.metaMessages] : [],
|
|
15
|
+
...a || u ? [
|
|
16
|
+
"",
|
|
17
|
+
a ? `Details: ${a}` : void 0,
|
|
18
|
+
u ? `See: ${c}` : void 0
|
|
19
|
+
] : []
|
|
20
|
+
].filter((d) => typeof d == "string").join(`
|
|
21
|
+
`);
|
|
22
|
+
super(l, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0,
|
|
26
|
+
value: void 0
|
|
27
|
+
}), Object.defineProperty(this, "docs", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
configurable: !0,
|
|
30
|
+
writable: !0,
|
|
31
|
+
value: void 0
|
|
32
|
+
}), Object.defineProperty(this, "docsPath", {
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
configurable: !0,
|
|
35
|
+
writable: !0,
|
|
36
|
+
value: void 0
|
|
37
|
+
}), Object.defineProperty(this, "shortMessage", {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0,
|
|
41
|
+
value: void 0
|
|
42
|
+
}), Object.defineProperty(this, "cause", {
|
|
43
|
+
enumerable: !0,
|
|
44
|
+
configurable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
value: void 0
|
|
47
|
+
}), Object.defineProperty(this, "name", {
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
value: "BaseError"
|
|
52
|
+
}), Object.defineProperty(this, "version", {
|
|
53
|
+
enumerable: !0,
|
|
54
|
+
configurable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
value: `ox@${n()}`
|
|
57
|
+
}), this.cause = e.cause, this.details = a, this.docs = c, this.docsPath = u, this.shortMessage = r;
|
|
17
58
|
}
|
|
59
|
+
walk(r) {
|
|
60
|
+
return i(this, r);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function i(t, r) {
|
|
64
|
+
return r?.(t) ? t : t && typeof t == "object" && "cause" in t && t.cause ? i(t.cause, r) : r ? null : t;
|
|
18
65
|
}
|
|
19
66
|
export {
|
|
20
|
-
|
|
67
|
+
s as BaseError
|
|
21
68
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AuthState, IAuthManager } from './types.js';
|
|
1
|
+
import { AuthState, IAuthManager, WalletSecret } from './types.js';
|
|
2
2
|
import { OnAuthStateChangeFn, User } from '../types.js';
|
|
3
3
|
export declare class AuthManager implements IAuthManager {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
protected projectId: string;
|
|
5
|
+
protected authState: AuthState | null;
|
|
6
|
+
protected walletSecret: WalletSecret | null;
|
|
7
|
+
protected authStateChangeCallbacks: OnAuthStateChangeFn[];
|
|
8
|
+
protected initPromise: Promise<void> | null;
|
|
9
|
+
protected refreshTimeout: NodeJS.Timeout | null;
|
|
10
10
|
constructor(projectId: string);
|
|
11
11
|
getUser(): Promise<User | null>;
|
|
12
12
|
isSignedIn(): Promise<boolean>;
|
|
@@ -24,11 +24,11 @@ export declare class AuthManager implements IAuthManager {
|
|
|
24
24
|
setAuthState(authState: AuthState): Promise<void>;
|
|
25
25
|
clearAuthState(): Promise<void>;
|
|
26
26
|
ensureInitialized(): Promise<void>;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
protected _doInitialize(): Promise<void>;
|
|
28
|
+
protected shouldRefreshToken(): boolean;
|
|
29
|
+
protected refreshAccessToken(): Promise<void>;
|
|
30
|
+
protected scheduleTokenRefresh(): void;
|
|
31
|
+
protected cancelTokenRefresh(): void;
|
|
30
32
|
private shouldRefreshWalletSecret;
|
|
31
33
|
private refreshWalletSecret;
|
|
32
|
-
private scheduleTokenRefresh;
|
|
33
|
-
private cancelTokenRefresh;
|
|
34
34
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AuthManager } from './authManager.js';
|
|
2
|
+
export declare const CUSTOM_AUTH_REFRESH_BUFFER_MS: number;
|
|
3
|
+
export declare class CustomAuthManager extends AuthManager {
|
|
4
|
+
getToken(): Promise<string | null>;
|
|
5
|
+
protected _doInitialize(): Promise<void>;
|
|
6
|
+
protected shouldRefreshToken(): boolean;
|
|
7
|
+
protected refreshAccessToken(): Promise<void>;
|
|
8
|
+
protected scheduleTokenRefresh(): void;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OAuth2ProviderType } from '@coinbase/cdp-api-client';
|
|
2
|
-
import { Config, User, SignInWithEmailOptions, SignInWithEmailResult, SignInWithSmsOptions, SignInWithSmsResult, VerifySmsOTPOptions, VerifySmsOTPResult, SignEvmHashOptions, SignEvmHashResult, VerifyEmailOTPOptions, VerifyEmailOTPResult, VerifyOAuthOptions, OnAuthStateChangeFn, SendEvmTransactionResult, SignEvmTransactionOptions, SignEvmTransactionResult, SignSolanaTransactionOptions, SignSolanaTransactionResult, SignEvmTypedDataOptions, SignEvmTypedDataResult, SignEvmMessageOptions, SignSolanaMessageOptions, SignSolanaMessageResult, ExportEvmAccountResult, SendEvmTransactionOptions, SendSolanaTransactionOptions, SendSolanaTransactionResult, ExportEvmAccountOptions, ExportSolanaAccountOptions, ExportSolanaAccountResult, SendUserOperationOptions, SendUserOperationResult, GetUserOperationOptions, GetUserOperationResult, OnOAuthStateChangeFn, VerifyOAuthResult } from './types.js';
|
|
2
|
+
import { Config, User, SignInWithEmailOptions, SignInWithEmailResult, SignInWithSmsOptions, SignInWithSmsResult, VerifySmsOTPOptions, VerifySmsOTPResult, SignEvmHashOptions, SignEvmHashResult, VerifyEmailOTPOptions, VerifyEmailOTPResult, VerifyOAuthOptions, AuthenticateWithJWTResult, OnAuthStateChangeFn, SendEvmTransactionResult, SignEvmTransactionOptions, SignEvmTransactionResult, SignSolanaTransactionOptions, SignSolanaTransactionResult, SignEvmTypedDataOptions, SignEvmTypedDataResult, SignEvmMessageOptions, SignSolanaMessageOptions, SignSolanaMessageResult, ExportEvmAccountResult, SendEvmTransactionOptions, SendSolanaTransactionOptions, SendSolanaTransactionResult, ExportEvmAccountOptions, ExportSolanaAccountOptions, ExportSolanaAccountResult, SendUserOperationOptions, SendUserOperationResult, GetUserOperationOptions, GetUserOperationResult, OnOAuthStateChangeFn, VerifyOAuthResult } from './types.js';
|
|
3
3
|
export declare const initialize: (config: Config) => Promise<void>;
|
|
4
4
|
export declare const signInWithEmail: (options: SignInWithEmailOptions) => Promise<SignInWithEmailResult>;
|
|
5
5
|
export declare const signInWithSms: (options: SignInWithSmsOptions) => Promise<SignInWithSmsResult>;
|
|
@@ -7,6 +7,7 @@ export declare const signInWithOAuth: (providerType: OAuth2ProviderType) => Prom
|
|
|
7
7
|
export declare const verifyEmailOTP: (options: VerifyEmailOTPOptions) => Promise<VerifyEmailOTPResult>;
|
|
8
8
|
export declare const verifySmsOTP: (options: VerifySmsOTPOptions) => Promise<VerifySmsOTPResult>;
|
|
9
9
|
export declare const verifyOAuth: (options: VerifyOAuthOptions) => Promise<VerifyOAuthResult>;
|
|
10
|
+
export declare const authenticateWithJWT: () => Promise<AuthenticateWithJWTResult>;
|
|
10
11
|
export declare const getCurrentUser: () => Promise<User | null>;
|
|
11
12
|
export declare const isSignedIn: () => Promise<boolean>;
|
|
12
13
|
export declare const signOut: () => Promise<void>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, OAuth2ProviderType, OAuth2Authentication } from '@coinbase/cdp-api-client';
|
|
2
2
|
import { TransactionSerializableEIP1559 } from 'viem';
|
|
3
3
|
export { APIError, type APIErrorType, ErrorType, HttpErrorType, SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, OAuth2ProviderType, };
|
|
4
|
+
export declare class CustomAuthError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
export type CustomAuth = {
|
|
8
|
+
getJwt: () => Promise<string | undefined>;
|
|
9
|
+
};
|
|
4
10
|
export type BaseConfig = {
|
|
5
11
|
projectId: string;
|
|
12
|
+
customAuth?: CustomAuth;
|
|
6
13
|
useMock?: boolean;
|
|
7
14
|
debugging?: boolean;
|
|
8
15
|
basePath?: string;
|
|
@@ -101,6 +108,11 @@ export type VerifyOAuthResult = {
|
|
|
101
108
|
message: string;
|
|
102
109
|
isNewUser: boolean;
|
|
103
110
|
};
|
|
111
|
+
export type AuthenticateWithJWTResult = {
|
|
112
|
+
user: User;
|
|
113
|
+
message: string;
|
|
114
|
+
isNewUser: boolean;
|
|
115
|
+
};
|
|
104
116
|
export type OnAuthStateChangeFn = (user: User | null) => void;
|
|
105
117
|
export type SignEvmHashOptions = {
|
|
106
118
|
evmAccount: EvmAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.61";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AuthState, IAuthManager } from './types.js';
|
|
1
|
+
import { AuthState, IAuthManager, WalletSecret } from './types.js';
|
|
2
2
|
import { OnAuthStateChangeFn, User } from '../types.js';
|
|
3
3
|
export declare class AuthManager implements IAuthManager {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
protected projectId: string;
|
|
5
|
+
protected authState: AuthState | null;
|
|
6
|
+
protected walletSecret: WalletSecret | null;
|
|
7
|
+
protected authStateChangeCallbacks: OnAuthStateChangeFn[];
|
|
8
|
+
protected initPromise: Promise<void> | null;
|
|
9
|
+
protected refreshTimeout: NodeJS.Timeout | null;
|
|
10
10
|
constructor(projectId: string);
|
|
11
11
|
getUser(): Promise<User | null>;
|
|
12
12
|
isSignedIn(): Promise<boolean>;
|
|
@@ -24,11 +24,11 @@ export declare class AuthManager implements IAuthManager {
|
|
|
24
24
|
setAuthState(authState: AuthState): Promise<void>;
|
|
25
25
|
clearAuthState(): Promise<void>;
|
|
26
26
|
ensureInitialized(): Promise<void>;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
protected _doInitialize(): Promise<void>;
|
|
28
|
+
protected shouldRefreshToken(): boolean;
|
|
29
|
+
protected refreshAccessToken(): Promise<void>;
|
|
30
|
+
protected scheduleTokenRefresh(): void;
|
|
31
|
+
protected cancelTokenRefresh(): void;
|
|
30
32
|
private shouldRefreshWalletSecret;
|
|
31
33
|
private refreshWalletSecret;
|
|
32
|
-
private scheduleTokenRefresh;
|
|
33
|
-
private cancelTokenRefresh;
|
|
34
34
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AuthManager } from './authManager.js';
|
|
2
|
+
export declare const CUSTOM_AUTH_REFRESH_BUFFER_MS: number;
|
|
3
|
+
export declare class CustomAuthManager extends AuthManager {
|
|
4
|
+
getToken(): Promise<string | null>;
|
|
5
|
+
protected _doInitialize(): Promise<void>;
|
|
6
|
+
protected shouldRefreshToken(): boolean;
|
|
7
|
+
protected refreshAccessToken(): Promise<void>;
|
|
8
|
+
protected scheduleTokenRefresh(): void;
|
|
9
|
+
}
|
package/dist/types/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OAuth2ProviderType } from '@coinbase/cdp-api-client';
|
|
2
|
-
import { Config, User, SignInWithEmailOptions, SignInWithEmailResult, SignInWithSmsOptions, SignInWithSmsResult, VerifySmsOTPOptions, VerifySmsOTPResult, SignEvmHashOptions, SignEvmHashResult, VerifyEmailOTPOptions, VerifyEmailOTPResult, VerifyOAuthOptions, OnAuthStateChangeFn, SendEvmTransactionResult, SignEvmTransactionOptions, SignEvmTransactionResult, SignSolanaTransactionOptions, SignSolanaTransactionResult, SignEvmTypedDataOptions, SignEvmTypedDataResult, SignEvmMessageOptions, SignSolanaMessageOptions, SignSolanaMessageResult, ExportEvmAccountResult, SendEvmTransactionOptions, SendSolanaTransactionOptions, SendSolanaTransactionResult, ExportEvmAccountOptions, ExportSolanaAccountOptions, ExportSolanaAccountResult, SendUserOperationOptions, SendUserOperationResult, GetUserOperationOptions, GetUserOperationResult, OnOAuthStateChangeFn, VerifyOAuthResult } from './types.js';
|
|
2
|
+
import { Config, User, SignInWithEmailOptions, SignInWithEmailResult, SignInWithSmsOptions, SignInWithSmsResult, VerifySmsOTPOptions, VerifySmsOTPResult, SignEvmHashOptions, SignEvmHashResult, VerifyEmailOTPOptions, VerifyEmailOTPResult, VerifyOAuthOptions, AuthenticateWithJWTResult, OnAuthStateChangeFn, SendEvmTransactionResult, SignEvmTransactionOptions, SignEvmTransactionResult, SignSolanaTransactionOptions, SignSolanaTransactionResult, SignEvmTypedDataOptions, SignEvmTypedDataResult, SignEvmMessageOptions, SignSolanaMessageOptions, SignSolanaMessageResult, ExportEvmAccountResult, SendEvmTransactionOptions, SendSolanaTransactionOptions, SendSolanaTransactionResult, ExportEvmAccountOptions, ExportSolanaAccountOptions, ExportSolanaAccountResult, SendUserOperationOptions, SendUserOperationResult, GetUserOperationOptions, GetUserOperationResult, OnOAuthStateChangeFn, VerifyOAuthResult } from './types.js';
|
|
3
3
|
export declare const initialize: (config: Config) => Promise<void>;
|
|
4
4
|
export declare const signInWithEmail: (options: SignInWithEmailOptions) => Promise<SignInWithEmailResult>;
|
|
5
5
|
export declare const signInWithSms: (options: SignInWithSmsOptions) => Promise<SignInWithSmsResult>;
|
|
@@ -7,6 +7,7 @@ export declare const signInWithOAuth: (providerType: OAuth2ProviderType) => Prom
|
|
|
7
7
|
export declare const verifyEmailOTP: (options: VerifyEmailOTPOptions) => Promise<VerifyEmailOTPResult>;
|
|
8
8
|
export declare const verifySmsOTP: (options: VerifySmsOTPOptions) => Promise<VerifySmsOTPResult>;
|
|
9
9
|
export declare const verifyOAuth: (options: VerifyOAuthOptions) => Promise<VerifyOAuthResult>;
|
|
10
|
+
export declare const authenticateWithJWT: () => Promise<AuthenticateWithJWTResult>;
|
|
10
11
|
export declare const getCurrentUser: () => Promise<User | null>;
|
|
11
12
|
export declare const isSignedIn: () => Promise<boolean>;
|
|
12
13
|
export declare const signOut: () => Promise<void>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, OAuth2ProviderType, OAuth2Authentication } from '@coinbase/cdp-api-client';
|
|
2
2
|
import { TransactionSerializableEIP1559 } from 'viem';
|
|
3
3
|
export { APIError, type APIErrorType, ErrorType, HttpErrorType, SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, OAuth2ProviderType, };
|
|
4
|
+
export declare class CustomAuthError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
export type CustomAuth = {
|
|
8
|
+
getJwt: () => Promise<string | undefined>;
|
|
9
|
+
};
|
|
4
10
|
export type BaseConfig = {
|
|
5
11
|
projectId: string;
|
|
12
|
+
customAuth?: CustomAuth;
|
|
6
13
|
useMock?: boolean;
|
|
7
14
|
debugging?: boolean;
|
|
8
15
|
basePath?: string;
|
|
@@ -101,6 +108,11 @@ export type VerifyOAuthResult = {
|
|
|
101
108
|
message: string;
|
|
102
109
|
isNewUser: boolean;
|
|
103
110
|
};
|
|
111
|
+
export type AuthenticateWithJWTResult = {
|
|
112
|
+
user: User;
|
|
113
|
+
message: string;
|
|
114
|
+
isNewUser: boolean;
|
|
115
|
+
};
|
|
104
116
|
export type OnAuthStateChangeFn = (user: User | null) => void;
|
|
105
117
|
export type SignEvmHashOptions = {
|
|
106
118
|
evmAccount: EvmAddress;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.61";
|
package/dist/web/index.web.js
CHANGED
|
@@ -2,22 +2,23 @@ import { setPlatformServices as r } from "./index.web2.js";
|
|
|
2
2
|
import { webCrypto as o } from "./index.web3.js";
|
|
3
3
|
import { webOAuth as e } from "./index.web4.js";
|
|
4
4
|
import { webStorage as t } from "./index.web5.js";
|
|
5
|
-
import { exportEvmAccount as g, exportSolanaAccount as l, getAccessToken as
|
|
6
|
-
import { createSpendPermission as
|
|
7
|
-
import { listSpendPermissions as
|
|
8
|
-
import { APIError as j, ErrorType as q, HttpErrorType as F, OAuth2ProviderType as
|
|
9
|
-
import { revokeSpendPermission as
|
|
10
|
-
import { linkGoogle as
|
|
11
|
-
import { linkSms as
|
|
12
|
-
import { linkEmail as
|
|
13
|
-
import { linkOAuth as
|
|
14
|
-
import { linkApple as
|
|
15
|
-
import { AuthManager as
|
|
5
|
+
import { authenticateWithJWT as E, exportEvmAccount as g, exportSolanaAccount as l, getAccessToken as u, getAccessTokenExpiration as d, getCurrentUser as h, getUserOperation as A, initialize as S, isSignedIn as x, onAuthStateChange as T, onOAuthStateChange as v, sendEvmTransaction as O, sendSolanaTransaction as y, sendUserOperation as P, signEvmHash as k, signEvmMessage as W, signEvmTransaction as C, signEvmTypedData as I, signInWithEmail as w, signInWithOAuth as D, signInWithSms as R, signOut as U, signSolanaMessage as b, signSolanaTransaction as M, verifyEmailOTP as N, verifyOAuth as B, verifySmsOTP as H } from "./index.web6.js";
|
|
6
|
+
import { createSpendPermission as _ } from "./index.web7.js";
|
|
7
|
+
import { listSpendPermissions as G } from "./index.web8.js";
|
|
8
|
+
import { APIError as j, ErrorType as q, HttpErrorType as F, OAuth2ProviderType as K, SendEvmTransactionWithEndUserAccountBodyNetwork as L, SendSolanaTransactionWithEndUserAccountBodyNetwork as Q } from "@coinbase/cdp-api-client";
|
|
9
|
+
import { revokeSpendPermission as Y } from "./index.web9.js";
|
|
10
|
+
import { linkGoogle as $ } from "./index.web10.js";
|
|
11
|
+
import { linkSms as or } from "./index.web11.js";
|
|
12
|
+
import { linkEmail as tr } from "./index.web12.js";
|
|
13
|
+
import { linkOAuth as ir } from "./index.web13.js";
|
|
14
|
+
import { linkApple as sr } from "./index.web14.js";
|
|
15
|
+
import { AuthManager as pr } from "./index.web15.js";
|
|
16
|
+
import { CustomAuthError as fr } from "./index.web16.js";
|
|
17
|
+
import { toViemAccount as gr } from "./index.web17.js";
|
|
18
|
+
import { InputValidationError as ur, ModuleResolutionError as dr } from "./index.web18.js";
|
|
19
|
+
import { createCDPEmbeddedWallet as Ar } from "./index.web19.js";
|
|
20
|
+
import { EIP1193ProviderError as xr, STANDARD_ERROR_CODES as Tr } from "./index.web20.js";
|
|
16
21
|
import "viem";
|
|
17
|
-
import { toViemAccount as cr } from "./index.web16.js";
|
|
18
|
-
import { InputValidationError as gr, ModuleResolutionError as lr } from "./index.web17.js";
|
|
19
|
-
import { createCDPEmbeddedWallet as dr } from "./index.web18.js";
|
|
20
|
-
import { EIP1193ProviderError as ur, STANDARD_ERROR_CODES as Ar } from "./index.web19.js";
|
|
21
22
|
import "zustand";
|
|
22
23
|
r({
|
|
23
24
|
crypto: o,
|
|
@@ -26,50 +27,52 @@ r({
|
|
|
26
27
|
});
|
|
27
28
|
export {
|
|
28
29
|
j as APIError,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
pr as AuthManager,
|
|
31
|
+
fr as CustomAuthError,
|
|
32
|
+
xr as EIP1193ProviderError,
|
|
31
33
|
q as ErrorType,
|
|
32
34
|
F as HttpErrorType,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
ur as InputValidationError,
|
|
36
|
+
dr as ModuleResolutionError,
|
|
37
|
+
K as OAuth2ProviderType,
|
|
38
|
+
Tr as STANDARD_ERROR_CODES,
|
|
39
|
+
L as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
40
|
+
Q as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
41
|
+
E as authenticateWithJWT,
|
|
42
|
+
Ar as createCDPEmbeddedWallet,
|
|
43
|
+
_ as createSpendPermission,
|
|
41
44
|
g as exportEvmAccount,
|
|
42
45
|
l as exportSolanaAccount,
|
|
43
|
-
|
|
46
|
+
u as getAccessToken,
|
|
44
47
|
d as getAccessTokenExpiration,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
h as getCurrentUser,
|
|
49
|
+
A as getUserOperation,
|
|
50
|
+
S as initialize,
|
|
48
51
|
x as isSignedIn,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
52
|
+
sr as linkApple,
|
|
53
|
+
tr as linkEmail,
|
|
54
|
+
$ as linkGoogle,
|
|
55
|
+
ir as linkOAuth,
|
|
56
|
+
or as linkSms,
|
|
57
|
+
G as listSpendPermissions,
|
|
58
|
+
T as onAuthStateChange,
|
|
59
|
+
v as onOAuthStateChange,
|
|
60
|
+
Y as revokeSpendPermission,
|
|
61
|
+
O as sendEvmTransaction,
|
|
62
|
+
y as sendSolanaTransaction,
|
|
63
|
+
P as sendUserOperation,
|
|
64
|
+
k as signEvmHash,
|
|
65
|
+
W as signEvmMessage,
|
|
66
|
+
C as signEvmTransaction,
|
|
67
|
+
I as signEvmTypedData,
|
|
68
|
+
w as signInWithEmail,
|
|
69
|
+
D as signInWithOAuth,
|
|
70
|
+
R as signInWithSms,
|
|
71
|
+
U as signOut,
|
|
72
|
+
b as signSolanaMessage,
|
|
73
|
+
M as signSolanaTransaction,
|
|
74
|
+
gr as toViemAccount,
|
|
75
|
+
N as verifyEmailOTP,
|
|
76
|
+
B as verifyOAuth,
|
|
77
|
+
H as verifySmsOTP
|
|
75
78
|
};
|
package/dist/web/index.web10.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { initiateAuthentication as o } from "@coinbase/cdp-api-client";
|
|
2
|
-
import { Analytics as e } from "./index.
|
|
3
|
-
import "./index.
|
|
2
|
+
import { Analytics as e } from "./index.web23.js";
|
|
3
|
+
import "./index.web24.js";
|
|
4
4
|
import { getPlatformOAuth as i } from "./index.web2.js";
|
|
5
|
-
import { getCoreAuthManager as n, getConfig as r } from "./index.
|
|
5
|
+
import { getCoreAuthManager as n, getConfig as r } from "./index.web34.js";
|
|
6
6
|
async function u() {
|
|
7
7
|
if (e.sendActionCallEvent({ name: "link_google" }), !await n().isSignedIn())
|
|
8
8
|
throw new Error("User must be signed in to link a Google account");
|