@coinbase/cdp-core 0.0.84 → 0.0.86

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.
Files changed (1054) hide show
  1. package/dist/esm/index.native.js +147 -121
  2. package/dist/esm/index.native10.js +40 -459
  3. package/dist/esm/index.native100.js +87 -21
  4. package/dist/esm/index.native101.js +14 -10
  5. package/dist/esm/index.native102.js +20 -102
  6. package/dist/esm/index.native103.js +50 -6
  7. package/dist/esm/index.native104.js +377 -3
  8. package/dist/esm/index.native105.js +28 -14
  9. package/dist/esm/index.native106.js +28 -34
  10. package/dist/esm/index.native107.js +2 -81
  11. package/dist/esm/index.native108.js +66 -2
  12. package/dist/esm/index.native109.js +365 -2
  13. package/dist/esm/index.native11.js +12 -36
  14. package/dist/esm/index.native110.js +949 -11
  15. package/dist/esm/index.native111.js +2 -38
  16. package/dist/esm/index.native112.js +48 -5
  17. package/dist/esm/index.native113.js +27 -34
  18. package/dist/esm/index.native114.js +12 -8
  19. package/dist/esm/index.native115.js +11 -10
  20. package/dist/esm/index.native116.js +54 -11
  21. package/dist/esm/index.native117.js +10 -13
  22. package/dist/esm/index.native118.js +2 -19
  23. package/dist/esm/index.native119.js +45 -6
  24. package/dist/esm/index.native12.js +11 -40
  25. package/dist/esm/index.native120.js +13 -4
  26. package/dist/esm/index.native121.js +4 -10
  27. package/dist/esm/index.native122.js +7 -2
  28. package/dist/esm/index.native123.js +44 -62
  29. package/dist/esm/index.native124.js +35 -365
  30. package/dist/esm/index.native125.js +66 -53
  31. package/dist/esm/index.native126.js +13 -10
  32. package/dist/esm/index.native127.js +28 -2
  33. package/dist/esm/index.native128.js +8 -45
  34. package/dist/esm/index.native129.js +3 -13
  35. package/dist/esm/index.native13.js +21 -19
  36. package/dist/esm/index.native130.js +28 -2
  37. package/dist/esm/index.native131.js +9 -35
  38. package/dist/esm/index.native132.js +7 -67
  39. package/dist/esm/index.native133.js +79 -4
  40. package/dist/esm/index.native134.js +20 -11
  41. package/dist/esm/index.native135.js +3 -7
  42. package/dist/esm/index.native136.js +14 -3
  43. package/dist/esm/index.native137.js +4 -19
  44. package/dist/esm/index.native138.js +13 -8
  45. package/dist/esm/index.native139.js +19 -7
  46. package/dist/esm/index.native14.js +13 -5
  47. package/dist/esm/index.native140.js +55 -66
  48. package/dist/esm/index.native141.js +17 -18
  49. package/dist/esm/index.native142.js +23 -3
  50. package/dist/esm/index.native143.js +8 -4
  51. package/dist/esm/index.native144.js +41 -4
  52. package/dist/esm/index.native145.js +7 -4
  53. package/dist/esm/index.native146.js +11 -10
  54. package/dist/esm/index.native147.js +2 -53
  55. package/dist/esm/index.native148.js +2 -18
  56. package/dist/esm/index.native149.js +16 -22
  57. package/dist/esm/index.native15.js +11 -44
  58. package/dist/esm/index.native150.js +45 -8
  59. package/dist/esm/index.native151.js +13 -33
  60. package/dist/esm/index.native152.js +55 -7
  61. package/dist/esm/index.native153.js +6 -20
  62. package/dist/esm/index.native154.js +18 -17
  63. package/dist/esm/index.native155.js +4 -5
  64. package/dist/esm/index.native156.js +3 -47
  65. package/dist/esm/index.native157.js +32 -17
  66. package/dist/esm/index.native158.js +11 -78
  67. package/dist/esm/index.native159.js +4 -103
  68. package/dist/esm/index.native16.js +10 -16
  69. package/dist/esm/index.native160.js +27 -31
  70. package/dist/esm/index.native161.js +6 -6
  71. package/dist/esm/index.native162.js +41 -19
  72. package/dist/esm/index.native163.js +55 -9
  73. package/dist/esm/index.native164.js +126 -18
  74. package/dist/esm/index.native165.js +24 -94
  75. package/dist/esm/index.native166.js +12 -20
  76. package/dist/esm/index.native167.js +98 -111
  77. package/dist/esm/index.native168.js +6 -4
  78. package/dist/esm/index.native169.js +3 -79
  79. package/dist/esm/index.native17.js +52 -15
  80. package/dist/esm/index.native170.js +14 -3
  81. package/dist/esm/index.native171.js +29 -41
  82. package/dist/esm/index.native172.js +78 -7
  83. package/dist/esm/index.native173.js +2 -2
  84. package/dist/esm/index.native174.js +2 -378
  85. package/dist/esm/index.native175.js +37 -835
  86. package/dist/esm/index.native176.js +6 -38
  87. package/dist/esm/index.native177.js +35 -2
  88. package/dist/esm/index.native178.js +8 -69
  89. package/dist/esm/index.native179.js +10 -34
  90. package/dist/esm/index.native18.js +6 -16
  91. package/dist/esm/index.native180.js +11 -20
  92. package/dist/esm/index.native181.js +14 -5
  93. package/dist/esm/index.native182.js +17 -16
  94. package/dist/esm/index.native183.js +6 -28
  95. package/dist/esm/index.native184.js +4 -7
  96. package/dist/esm/index.native185.js +11 -11
  97. package/dist/esm/index.native186.js +103 -12
  98. package/dist/esm/index.native187.js +77 -8
  99. package/dist/esm/index.native188.js +76 -13
  100. package/dist/esm/index.native189.js +19 -79
  101. package/dist/esm/index.native19.js +4 -16
  102. package/dist/esm/index.native190.js +10 -2
  103. package/dist/esm/index.native191.js +18 -107
  104. package/dist/esm/index.native192.js +94 -2
  105. package/dist/esm/index.native193.js +21 -15
  106. package/dist/esm/index.native194.js +118 -2
  107. package/dist/esm/index.native195.js +2 -2
  108. package/dist/esm/index.native196.js +109 -2
  109. package/dist/esm/index.native197.js +2 -79
  110. package/dist/esm/index.native198.js +41 -0
  111. package/dist/esm/index.native199.js +4 -0
  112. package/dist/esm/index.native2.js +2 -2
  113. package/dist/esm/index.native20.js +12 -16
  114. package/dist/esm/index.native200.js +72 -0
  115. package/dist/esm/index.native201.js +37 -0
  116. package/dist/esm/index.native202.js +23 -0
  117. package/dist/esm/index.native203.js +10 -0
  118. package/dist/esm/index.native204.js +4 -0
  119. package/dist/esm/index.native205.js +380 -0
  120. package/dist/esm/index.native206.js +838 -0
  121. package/dist/esm/index.native207.js +4 -0
  122. package/dist/esm/index.native208.js +23 -0
  123. package/dist/esm/index.native209.js +49 -0
  124. package/dist/esm/index.native21.js +4 -26
  125. package/dist/esm/index.native210.js +22 -0
  126. package/dist/esm/index.native211.js +35 -0
  127. package/dist/esm/index.native212.js +9 -0
  128. package/dist/esm/index.native213.js +20 -0
  129. package/dist/esm/index.native214.js +30 -0
  130. package/dist/esm/index.native215.js +10 -0
  131. package/dist/esm/index.native216.js +13 -0
  132. package/dist/esm/index.native217.js +15 -0
  133. package/dist/esm/index.native218.js +12 -0
  134. package/dist/esm/index.native219.js +19 -0
  135. package/dist/esm/index.native22.js +4 -57
  136. package/dist/esm/index.native220.js +83 -0
  137. package/dist/esm/index.native221.js +4 -0
  138. package/dist/esm/index.native222.js +4 -0
  139. package/dist/esm/index.native223.js +4 -0
  140. package/dist/esm/index.native224.js +6 -0
  141. package/dist/esm/index.native225.js +17 -0
  142. package/dist/esm/index.native226.js +7 -0
  143. package/dist/esm/index.native227.js +81 -0
  144. package/dist/esm/index.native23.js +7 -29
  145. package/dist/esm/index.native24.js +7 -27
  146. package/dist/esm/index.native25.js +26 -28
  147. package/dist/esm/index.native26.js +30 -28
  148. package/dist/esm/index.native27.js +26 -113
  149. package/dist/esm/index.native28.js +26 -19
  150. package/dist/esm/index.native29.js +26 -26
  151. package/dist/esm/index.native3.js +1 -1
  152. package/dist/esm/index.native30.js +25 -61
  153. package/dist/esm/index.native31.js +34 -17
  154. package/dist/esm/index.native32.js +27 -11
  155. package/dist/esm/index.native33.js +36 -17
  156. package/dist/esm/index.native34.js +25 -7
  157. package/dist/esm/index.native35.js +40 -47
  158. package/dist/esm/index.native36.js +46 -12
  159. package/dist/esm/index.native37.js +37 -48
  160. package/dist/esm/index.native38.js +42 -23
  161. package/dist/esm/index.native39.js +23 -277
  162. package/dist/esm/index.native4.js +2 -2
  163. package/dist/esm/index.native40.js +6 -18
  164. package/dist/esm/index.native41.js +41 -119
  165. package/dist/esm/index.native42.js +16 -70
  166. package/dist/esm/index.native43.js +20 -6
  167. package/dist/esm/index.native44.js +18 -45
  168. package/dist/esm/index.native45.js +20 -148
  169. package/dist/esm/index.native46.js +21 -28
  170. package/dist/esm/index.native47.js +29 -29
  171. package/dist/esm/index.native48.js +59 -3
  172. package/dist/esm/index.native49.js +33 -8
  173. package/dist/esm/index.native5.js +1 -1
  174. package/dist/esm/index.native50.js +28 -65
  175. package/dist/esm/index.native51.js +30 -88
  176. package/dist/esm/index.native52.js +29 -23
  177. package/dist/esm/index.native53.js +116 -17
  178. package/dist/esm/index.native54.js +20 -137
  179. package/dist/esm/index.native55.js +31 -61
  180. package/dist/esm/index.native56.js +63 -27
  181. package/dist/esm/index.native57.js +25 -42
  182. package/dist/esm/index.native58.js +16 -152
  183. package/dist/esm/index.native59.js +22 -42
  184. package/dist/esm/index.native60.js +8 -33
  185. package/dist/esm/index.native61.js +48 -9
  186. package/dist/esm/index.native62.js +13 -40
  187. package/dist/esm/index.native63.js +48 -48
  188. package/dist/esm/index.native64.js +38 -72
  189. package/dist/esm/index.native65.js +274 -23
  190. package/dist/esm/index.native66.js +17 -158
  191. package/dist/esm/index.native67.js +130 -46
  192. package/dist/esm/index.native68.js +71 -19
  193. package/dist/esm/index.native69.js +6 -72
  194. package/dist/esm/index.native70.js +54 -950
  195. package/dist/esm/index.native71.js +156 -2
  196. package/dist/esm/index.native72.js +28 -50
  197. package/dist/esm/index.native73.js +31 -27
  198. package/dist/esm/index.native74.js +17 -81
  199. package/dist/esm/index.native75.js +42 -15
  200. package/dist/esm/index.native76.js +41 -22
  201. package/dist/esm/index.native77.js +24 -51
  202. package/dist/esm/index.native78.js +7 -375
  203. package/dist/esm/index.native79.js +29 -29
  204. package/dist/esm/index.native80.js +40 -28
  205. package/dist/esm/index.native81.js +42 -2
  206. package/dist/esm/index.native82.js +3 -2
  207. package/dist/esm/index.native83.js +48 -17
  208. package/dist/esm/index.native84.js +78 -43
  209. package/dist/esm/index.native85.js +25 -13
  210. package/dist/esm/index.native86.js +158 -54
  211. package/dist/esm/index.native87.js +47 -6
  212. package/dist/esm/index.native88.js +19 -22
  213. package/dist/esm/index.native89.js +72 -11
  214. package/dist/esm/index.native9.js +1 -1
  215. package/dist/esm/index.native90.js +8 -3
  216. package/dist/esm/index.native91.js +94 -3
  217. package/dist/esm/index.native92.js +134 -32
  218. package/dist/esm/index.native93.js +65 -10
  219. package/dist/esm/index.native94.js +27 -5
  220. package/dist/esm/index.native95.js +42 -29
  221. package/dist/esm/index.native96.js +64 -6
  222. package/dist/esm/index.native97.js +45 -41
  223. package/dist/esm/index.native98.js +20 -55
  224. package/dist/esm/index.native99.js +151 -126
  225. package/dist/esm/index.web.js +166 -140
  226. package/dist/esm/index.web10.js +12 -36
  227. package/dist/esm/index.web100.js +20 -127
  228. package/dist/esm/index.web101.js +149 -20
  229. package/dist/esm/index.web102.js +14 -10
  230. package/dist/esm/index.web103.js +20 -102
  231. package/dist/esm/index.web104.js +50 -6
  232. package/dist/esm/index.web105.js +377 -3
  233. package/dist/esm/index.web106.js +28 -14
  234. package/dist/esm/index.web107.js +28 -34
  235. package/dist/esm/index.web108.js +2 -81
  236. package/dist/esm/index.web109.js +66 -2
  237. package/dist/esm/index.web11.js +11 -40
  238. package/dist/esm/index.web110.js +365 -2
  239. package/dist/esm/index.web111.js +949 -11
  240. package/dist/esm/index.web112.js +2 -38
  241. package/dist/esm/index.web113.js +48 -5
  242. package/dist/esm/index.web114.js +27 -34
  243. package/dist/esm/index.web115.js +12 -8
  244. package/dist/esm/index.web116.js +11 -10
  245. package/dist/esm/index.web117.js +54 -11
  246. package/dist/esm/index.web118.js +10 -13
  247. package/dist/esm/index.web119.js +2 -19
  248. package/dist/esm/index.web12.js +21 -19
  249. package/dist/esm/index.web120.js +45 -6
  250. package/dist/esm/index.web121.js +13 -4
  251. package/dist/esm/index.web122.js +4 -10
  252. package/dist/esm/index.web123.js +7 -2
  253. package/dist/esm/index.web124.js +44 -62
  254. package/dist/esm/index.web125.js +14 -364
  255. package/dist/esm/index.web126.js +27 -53
  256. package/dist/esm/index.web127.js +7 -10
  257. package/dist/esm/index.web128.js +4 -2
  258. package/dist/esm/index.web129.js +28 -44
  259. package/dist/esm/index.web13.js +13 -5
  260. package/dist/esm/index.web130.js +8 -13
  261. package/dist/esm/index.web131.js +8 -2
  262. package/dist/esm/index.web132.js +80 -4
  263. package/dist/esm/index.web133.js +21 -11
  264. package/dist/esm/index.web134.js +3 -7
  265. package/dist/esm/index.web135.js +15 -3
  266. package/dist/esm/index.web136.js +4 -19
  267. package/dist/esm/index.web137.js +14 -8
  268. package/dist/esm/index.web138.js +19 -7
  269. package/dist/esm/index.web139.js +56 -66
  270. package/dist/esm/index.web14.js +11 -44
  271. package/dist/esm/index.web140.js +17 -18
  272. package/dist/esm/index.web141.js +23 -3
  273. package/dist/esm/index.web142.js +8 -4
  274. package/dist/esm/index.web143.js +42 -4
  275. package/dist/esm/index.web144.js +7 -4
  276. package/dist/esm/index.web145.js +11 -10
  277. package/dist/esm/index.web146.js +2 -53
  278. package/dist/esm/index.web147.js +2 -18
  279. package/dist/esm/index.web148.js +16 -22
  280. package/dist/esm/index.web149.js +45 -8
  281. package/dist/esm/index.web15.js +10 -16
  282. package/dist/esm/index.web150.js +13 -33
  283. package/dist/esm/index.web151.js +55 -7
  284. package/dist/esm/index.web152.js +6 -20
  285. package/dist/esm/index.web153.js +18 -17
  286. package/dist/esm/index.web154.js +4 -5
  287. package/dist/esm/index.web155.js +3 -47
  288. package/dist/esm/index.web156.js +32 -17
  289. package/dist/esm/index.web157.js +11 -78
  290. package/dist/esm/index.web158.js +4 -103
  291. package/dist/esm/index.web159.js +27 -31
  292. package/dist/esm/index.web16.js +52 -15
  293. package/dist/esm/index.web160.js +6 -6
  294. package/dist/esm/index.web161.js +42 -4
  295. package/dist/esm/index.web162.js +53 -18
  296. package/dist/esm/index.web163.js +127 -9
  297. package/dist/esm/index.web164.js +24 -20
  298. package/dist/esm/index.web165.js +11 -92
  299. package/dist/esm/index.web166.js +105 -21
  300. package/dist/esm/index.web167.js +7 -118
  301. package/dist/esm/index.web168.js +3 -79
  302. package/dist/esm/index.web169.js +14 -3
  303. package/dist/esm/index.web17.js +6 -16
  304. package/dist/esm/index.web170.js +29 -41
  305. package/dist/esm/index.web171.js +78 -38
  306. package/dist/esm/index.web172.js +2 -2
  307. package/dist/esm/index.web173.js +2 -70
  308. package/dist/esm/index.web174.js +37 -34
  309. package/dist/esm/index.web175.js +5 -19
  310. package/dist/esm/index.web176.js +34 -7
  311. package/dist/esm/index.web177.js +9 -2
  312. package/dist/esm/index.web178.js +10 -377
  313. package/dist/esm/index.web179.js +11 -835
  314. package/dist/esm/index.web18.js +4 -16
  315. package/dist/esm/index.web180.js +14 -5
  316. package/dist/esm/index.web181.js +19 -2
  317. package/dist/esm/index.web182.js +5 -108
  318. package/dist/esm/index.web183.js +5 -2
  319. package/dist/esm/index.web184.js +10 -17
  320. package/dist/esm/index.web185.js +103 -27
  321. package/dist/esm/index.web186.js +78 -7
  322. package/dist/esm/index.web187.js +80 -11
  323. package/dist/esm/index.web188.js +19 -11
  324. package/dist/esm/index.web189.js +10 -10
  325. package/dist/esm/index.web19.js +12 -16
  326. package/dist/esm/index.web190.js +20 -17
  327. package/dist/esm/index.web191.js +89 -76
  328. package/dist/esm/index.web192.js +21 -15
  329. package/dist/esm/index.web193.js +118 -2
  330. package/dist/esm/index.web194.js +2 -2
  331. package/dist/esm/index.web195.js +109 -2
  332. package/dist/esm/index.web196.js +2 -79
  333. package/dist/esm/index.web197.js +10 -0
  334. package/dist/esm/index.web198.js +4 -0
  335. package/dist/esm/index.web199.js +380 -0
  336. package/dist/esm/index.web2.js +2 -2
  337. package/dist/esm/index.web20.js +4 -26
  338. package/dist/esm/index.web200.js +838 -0
  339. package/dist/esm/index.web201.js +41 -0
  340. package/dist/esm/index.web202.js +4 -0
  341. package/dist/esm/index.web203.js +72 -0
  342. package/dist/esm/index.web204.js +37 -0
  343. package/dist/esm/index.web205.js +23 -0
  344. package/dist/esm/index.web206.js +49 -0
  345. package/dist/esm/index.web207.js +4 -0
  346. package/dist/esm/index.web208.js +23 -0
  347. package/dist/esm/index.web209.js +22 -0
  348. package/dist/esm/index.web21.js +4 -57
  349. package/dist/esm/index.web210.js +35 -0
  350. package/dist/esm/index.web211.js +9 -0
  351. package/dist/esm/index.web212.js +20 -0
  352. package/dist/esm/index.web213.js +30 -0
  353. package/dist/esm/index.web214.js +10 -0
  354. package/dist/esm/index.web215.js +13 -0
  355. package/dist/esm/index.web216.js +15 -0
  356. package/dist/esm/index.web217.js +12 -0
  357. package/dist/esm/index.web218.js +19 -0
  358. package/dist/esm/index.web219.js +83 -0
  359. package/dist/esm/index.web22.js +7 -29
  360. package/dist/esm/index.web220.js +4 -0
  361. package/dist/esm/index.web221.js +4 -0
  362. package/dist/esm/index.web222.js +4 -0
  363. package/dist/esm/index.web223.js +6 -0
  364. package/dist/esm/index.web224.js +17 -0
  365. package/dist/esm/index.web225.js +7 -0
  366. package/dist/esm/index.web226.js +81 -0
  367. package/dist/esm/index.web23.js +7 -27
  368. package/dist/esm/index.web24.js +27 -28
  369. package/dist/esm/index.web25.js +31 -28
  370. package/dist/esm/index.web26.js +27 -113
  371. package/dist/esm/index.web27.js +27 -19
  372. package/dist/esm/index.web28.js +27 -26
  373. package/dist/esm/index.web29.js +26 -61
  374. package/dist/esm/index.web3.js +1 -1
  375. package/dist/esm/index.web30.js +35 -17
  376. package/dist/esm/index.web31.js +28 -11
  377. package/dist/esm/index.web32.js +37 -17
  378. package/dist/esm/index.web33.js +25 -7
  379. package/dist/esm/index.web34.js +41 -47
  380. package/dist/esm/index.web35.js +47 -12
  381. package/dist/esm/index.web36.js +37 -48
  382. package/dist/esm/index.web37.js +42 -23
  383. package/dist/esm/index.web38.js +23 -277
  384. package/dist/esm/index.web39.js +6 -18
  385. package/dist/esm/index.web40.js +41 -119
  386. package/dist/esm/index.web41.js +16 -70
  387. package/dist/esm/index.web42.js +20 -6
  388. package/dist/esm/index.web43.js +18 -45
  389. package/dist/esm/index.web44.js +20 -148
  390. package/dist/esm/index.web45.js +20 -67
  391. package/dist/esm/index.web46.js +32 -35
  392. package/dist/esm/index.web47.js +56 -79
  393. package/dist/esm/index.web48.js +34 -28
  394. package/dist/esm/index.web49.js +28 -32
  395. package/dist/esm/index.web5.js +1 -1
  396. package/dist/esm/index.web50.js +30 -3
  397. package/dist/esm/index.web51.js +30 -9
  398. package/dist/esm/index.web52.js +113 -61
  399. package/dist/esm/index.web53.js +20 -88
  400. package/dist/esm/index.web54.js +30 -23
  401. package/dist/esm/index.web55.js +64 -17
  402. package/dist/esm/index.web56.js +25 -137
  403. package/dist/esm/index.web57.js +16 -60
  404. package/dist/esm/index.web58.js +22 -27
  405. package/dist/esm/index.web59.js +8 -42
  406. package/dist/esm/index.web60.js +47 -152
  407. package/dist/esm/index.web61.js +12 -42
  408. package/dist/esm/index.web62.js +47 -31
  409. package/dist/esm/index.web63.js +38 -8
  410. package/dist/esm/index.web64.js +266 -30
  411. package/dist/esm/index.web65.js +18 -48
  412. package/dist/esm/index.web66.js +128 -68
  413. package/dist/esm/index.web67.js +69 -24
  414. package/dist/esm/index.web68.js +6 -159
  415. package/dist/esm/index.web69.js +55 -47
  416. package/dist/esm/index.web70.js +154 -22
  417. package/dist/esm/index.web71.js +67 -72
  418. package/dist/esm/index.web72.js +35 -951
  419. package/dist/esm/index.web73.js +90 -2
  420. package/dist/esm/index.web74.js +28 -50
  421. package/dist/esm/index.web75.js +31 -27
  422. package/dist/esm/index.web76.js +17 -16
  423. package/dist/esm/index.web77.js +42 -21
  424. package/dist/esm/index.web78.js +42 -50
  425. package/dist/esm/index.web79.js +22 -375
  426. package/dist/esm/index.web8.js +1 -1
  427. package/dist/esm/index.web80.js +8 -28
  428. package/dist/esm/index.web81.js +29 -29
  429. package/dist/esm/index.web82.js +41 -2
  430. package/dist/esm/index.web83.js +42 -2
  431. package/dist/esm/index.web84.js +3 -18
  432. package/dist/esm/index.web85.js +48 -45
  433. package/dist/esm/index.web86.js +81 -13
  434. package/dist/esm/index.web87.js +24 -54
  435. package/dist/esm/index.web88.js +159 -6
  436. package/dist/esm/index.web89.js +44 -18
  437. package/dist/esm/index.web9.js +40 -460
  438. package/dist/esm/index.web90.js +25 -12
  439. package/dist/esm/index.web91.js +72 -3
  440. package/dist/esm/index.web92.js +8 -3
  441. package/dist/esm/index.web93.js +94 -33
  442. package/dist/esm/index.web94.js +134 -10
  443. package/dist/esm/index.web95.js +68 -4
  444. package/dist/esm/index.web96.js +27 -29
  445. package/dist/esm/index.web97.js +42 -7
  446. package/dist/esm/index.web98.js +63 -41
  447. package/dist/esm/index.web99.js +46 -55
  448. package/dist/native/index.native.js +147 -121
  449. package/dist/native/index.native10.js +40 -459
  450. package/dist/native/index.native100.js +87 -21
  451. package/dist/native/index.native101.js +14 -10
  452. package/dist/native/index.native102.js +20 -102
  453. package/dist/native/index.native103.js +50 -6
  454. package/dist/native/index.native104.js +377 -3
  455. package/dist/native/index.native105.js +28 -14
  456. package/dist/native/index.native106.js +28 -34
  457. package/dist/native/index.native107.js +2 -81
  458. package/dist/native/index.native108.js +66 -2
  459. package/dist/native/index.native109.js +365 -2
  460. package/dist/native/index.native11.js +12 -36
  461. package/dist/native/index.native110.js +949 -11
  462. package/dist/native/index.native111.js +2 -38
  463. package/dist/native/index.native112.js +48 -5
  464. package/dist/native/index.native113.js +27 -34
  465. package/dist/native/index.native114.js +12 -8
  466. package/dist/native/index.native115.js +11 -10
  467. package/dist/native/index.native116.js +54 -11
  468. package/dist/native/index.native117.js +10 -13
  469. package/dist/native/index.native118.js +2 -19
  470. package/dist/native/index.native119.js +45 -6
  471. package/dist/native/index.native12.js +11 -40
  472. package/dist/native/index.native120.js +13 -4
  473. package/dist/native/index.native121.js +4 -10
  474. package/dist/native/index.native122.js +7 -2
  475. package/dist/native/index.native123.js +44 -62
  476. package/dist/native/index.native124.js +35 -365
  477. package/dist/native/index.native125.js +66 -53
  478. package/dist/native/index.native126.js +13 -10
  479. package/dist/native/index.native127.js +28 -2
  480. package/dist/native/index.native128.js +8 -45
  481. package/dist/native/index.native129.js +3 -13
  482. package/dist/native/index.native13.js +21 -19
  483. package/dist/native/index.native130.js +28 -2
  484. package/dist/native/index.native131.js +9 -35
  485. package/dist/native/index.native132.js +7 -67
  486. package/dist/native/index.native133.js +79 -4
  487. package/dist/native/index.native134.js +20 -11
  488. package/dist/native/index.native135.js +3 -7
  489. package/dist/native/index.native136.js +14 -3
  490. package/dist/native/index.native137.js +4 -19
  491. package/dist/native/index.native138.js +13 -8
  492. package/dist/native/index.native139.js +19 -7
  493. package/dist/native/index.native14.js +13 -5
  494. package/dist/native/index.native140.js +55 -66
  495. package/dist/native/index.native141.js +17 -18
  496. package/dist/native/index.native142.js +23 -3
  497. package/dist/native/index.native143.js +8 -4
  498. package/dist/native/index.native144.js +41 -4
  499. package/dist/native/index.native145.js +7 -4
  500. package/dist/native/index.native146.js +11 -10
  501. package/dist/native/index.native147.js +2 -53
  502. package/dist/native/index.native148.js +2 -18
  503. package/dist/native/index.native149.js +16 -22
  504. package/dist/native/index.native15.js +11 -44
  505. package/dist/native/index.native150.js +45 -8
  506. package/dist/native/index.native151.js +13 -33
  507. package/dist/native/index.native152.js +55 -7
  508. package/dist/native/index.native153.js +6 -20
  509. package/dist/native/index.native154.js +18 -17
  510. package/dist/native/index.native155.js +4 -5
  511. package/dist/native/index.native156.js +3 -47
  512. package/dist/native/index.native157.js +32 -17
  513. package/dist/native/index.native158.js +11 -78
  514. package/dist/native/index.native159.js +4 -103
  515. package/dist/native/index.native16.js +10 -16
  516. package/dist/native/index.native160.js +27 -31
  517. package/dist/native/index.native161.js +6 -6
  518. package/dist/native/index.native162.js +41 -19
  519. package/dist/native/index.native163.js +55 -9
  520. package/dist/native/index.native164.js +126 -18
  521. package/dist/native/index.native165.js +24 -94
  522. package/dist/native/index.native166.js +12 -20
  523. package/dist/native/index.native167.js +98 -111
  524. package/dist/native/index.native168.js +6 -4
  525. package/dist/native/index.native169.js +3 -79
  526. package/dist/native/index.native17.js +52 -15
  527. package/dist/native/index.native170.js +14 -3
  528. package/dist/native/index.native171.js +29 -41
  529. package/dist/native/index.native172.js +78 -7
  530. package/dist/native/index.native173.js +2 -2
  531. package/dist/native/index.native174.js +2 -378
  532. package/dist/native/index.native175.js +37 -835
  533. package/dist/native/index.native176.js +6 -38
  534. package/dist/native/index.native177.js +35 -2
  535. package/dist/native/index.native178.js +8 -69
  536. package/dist/native/index.native179.js +10 -34
  537. package/dist/native/index.native18.js +6 -16
  538. package/dist/native/index.native180.js +11 -20
  539. package/dist/native/index.native181.js +14 -5
  540. package/dist/native/index.native182.js +17 -16
  541. package/dist/native/index.native183.js +6 -28
  542. package/dist/native/index.native184.js +4 -7
  543. package/dist/native/index.native185.js +11 -11
  544. package/dist/native/index.native186.js +103 -12
  545. package/dist/native/index.native187.js +77 -8
  546. package/dist/native/index.native188.js +76 -13
  547. package/dist/native/index.native189.js +19 -79
  548. package/dist/native/index.native19.js +4 -16
  549. package/dist/native/index.native190.js +10 -2
  550. package/dist/native/index.native191.js +18 -107
  551. package/dist/native/index.native192.js +94 -2
  552. package/dist/native/index.native193.js +21 -15
  553. package/dist/native/index.native194.js +118 -2
  554. package/dist/native/index.native195.js +2 -2
  555. package/dist/native/index.native196.js +109 -2
  556. package/dist/native/index.native197.js +2 -79
  557. package/dist/native/index.native198.js +41 -0
  558. package/dist/native/index.native199.js +4 -0
  559. package/dist/native/index.native2.js +2 -2
  560. package/dist/native/index.native20.js +12 -16
  561. package/dist/native/index.native200.js +72 -0
  562. package/dist/native/index.native201.js +37 -0
  563. package/dist/native/index.native202.js +23 -0
  564. package/dist/native/index.native203.js +10 -0
  565. package/dist/native/index.native204.js +4 -0
  566. package/dist/native/index.native205.js +380 -0
  567. package/dist/native/index.native206.js +838 -0
  568. package/dist/native/index.native207.js +4 -0
  569. package/dist/native/index.native208.js +23 -0
  570. package/dist/native/index.native209.js +49 -0
  571. package/dist/native/index.native21.js +4 -26
  572. package/dist/native/index.native210.js +22 -0
  573. package/dist/native/index.native211.js +35 -0
  574. package/dist/native/index.native212.js +9 -0
  575. package/dist/native/index.native213.js +20 -0
  576. package/dist/native/index.native214.js +30 -0
  577. package/dist/native/index.native215.js +10 -0
  578. package/dist/native/index.native216.js +13 -0
  579. package/dist/native/index.native217.js +15 -0
  580. package/dist/native/index.native218.js +12 -0
  581. package/dist/native/index.native219.js +19 -0
  582. package/dist/native/index.native22.js +4 -57
  583. package/dist/native/index.native220.js +83 -0
  584. package/dist/native/index.native221.js +4 -0
  585. package/dist/native/index.native222.js +4 -0
  586. package/dist/native/index.native223.js +4 -0
  587. package/dist/native/index.native224.js +6 -0
  588. package/dist/native/index.native225.js +17 -0
  589. package/dist/native/index.native226.js +7 -0
  590. package/dist/native/index.native227.js +81 -0
  591. package/dist/native/index.native23.js +7 -29
  592. package/dist/native/index.native24.js +7 -27
  593. package/dist/native/index.native25.js +26 -28
  594. package/dist/native/index.native26.js +30 -28
  595. package/dist/native/index.native27.js +26 -113
  596. package/dist/native/index.native28.js +26 -19
  597. package/dist/native/index.native29.js +26 -26
  598. package/dist/native/index.native3.js +1 -1
  599. package/dist/native/index.native30.js +25 -61
  600. package/dist/native/index.native31.js +34 -17
  601. package/dist/native/index.native32.js +27 -11
  602. package/dist/native/index.native33.js +36 -17
  603. package/dist/native/index.native34.js +25 -7
  604. package/dist/native/index.native35.js +40 -47
  605. package/dist/native/index.native36.js +46 -12
  606. package/dist/native/index.native37.js +37 -48
  607. package/dist/native/index.native38.js +42 -23
  608. package/dist/native/index.native39.js +23 -277
  609. package/dist/native/index.native4.js +2 -2
  610. package/dist/native/index.native40.js +6 -18
  611. package/dist/native/index.native41.js +41 -119
  612. package/dist/native/index.native42.js +16 -70
  613. package/dist/native/index.native43.js +20 -6
  614. package/dist/native/index.native44.js +18 -45
  615. package/dist/native/index.native45.js +20 -148
  616. package/dist/native/index.native46.js +21 -28
  617. package/dist/native/index.native47.js +29 -29
  618. package/dist/native/index.native48.js +59 -3
  619. package/dist/native/index.native49.js +33 -8
  620. package/dist/native/index.native5.js +1 -1
  621. package/dist/native/index.native50.js +28 -65
  622. package/dist/native/index.native51.js +30 -88
  623. package/dist/native/index.native52.js +29 -23
  624. package/dist/native/index.native53.js +116 -17
  625. package/dist/native/index.native54.js +20 -137
  626. package/dist/native/index.native55.js +31 -61
  627. package/dist/native/index.native56.js +63 -27
  628. package/dist/native/index.native57.js +25 -42
  629. package/dist/native/index.native58.js +16 -152
  630. package/dist/native/index.native59.js +22 -42
  631. package/dist/native/index.native60.js +8 -33
  632. package/dist/native/index.native61.js +48 -9
  633. package/dist/native/index.native62.js +13 -40
  634. package/dist/native/index.native63.js +48 -48
  635. package/dist/native/index.native64.js +38 -72
  636. package/dist/native/index.native65.js +274 -23
  637. package/dist/native/index.native66.js +17 -158
  638. package/dist/native/index.native67.js +130 -46
  639. package/dist/native/index.native68.js +71 -19
  640. package/dist/native/index.native69.js +6 -72
  641. package/dist/native/index.native70.js +54 -950
  642. package/dist/native/index.native71.js +156 -2
  643. package/dist/native/index.native72.js +28 -50
  644. package/dist/native/index.native73.js +31 -27
  645. package/dist/native/index.native74.js +17 -81
  646. package/dist/native/index.native75.js +42 -15
  647. package/dist/native/index.native76.js +41 -22
  648. package/dist/native/index.native77.js +24 -51
  649. package/dist/native/index.native78.js +7 -375
  650. package/dist/native/index.native79.js +29 -29
  651. package/dist/native/index.native80.js +40 -28
  652. package/dist/native/index.native81.js +42 -2
  653. package/dist/native/index.native82.js +3 -2
  654. package/dist/native/index.native83.js +48 -17
  655. package/dist/native/index.native84.js +78 -43
  656. package/dist/native/index.native85.js +25 -13
  657. package/dist/native/index.native86.js +158 -54
  658. package/dist/native/index.native87.js +47 -6
  659. package/dist/native/index.native88.js +19 -22
  660. package/dist/native/index.native89.js +72 -11
  661. package/dist/native/index.native9.js +1 -1
  662. package/dist/native/index.native90.js +8 -3
  663. package/dist/native/index.native91.js +94 -3
  664. package/dist/native/index.native92.js +134 -32
  665. package/dist/native/index.native93.js +65 -10
  666. package/dist/native/index.native94.js +27 -5
  667. package/dist/native/index.native95.js +42 -29
  668. package/dist/native/index.native96.js +64 -6
  669. package/dist/native/index.native97.js +45 -41
  670. package/dist/native/index.native98.js +20 -55
  671. package/dist/native/index.native99.js +151 -126
  672. package/dist/native-types/actions/authenticateWithJWT.d.ts +4 -0
  673. package/dist/native-types/actions/createEvmEoaAccount.d.ts +4 -1
  674. package/dist/native-types/actions/createEvmSmartAccount.d.ts +1 -0
  675. package/dist/native-types/actions/createSolanaAccount.d.ts +4 -1
  676. package/dist/native-types/actions/createSpendPermission.d.ts +1 -0
  677. package/dist/native-types/actions/exportEvmAccount.d.ts +2 -0
  678. package/dist/native-types/actions/exportSolanaAccount.d.ts +2 -0
  679. package/dist/native-types/actions/getAccessToken.d.ts +3 -0
  680. package/dist/native-types/actions/getAccessTokenExpiration.d.ts +1 -0
  681. package/dist/native-types/actions/getCurrentUser.d.ts +2 -0
  682. package/dist/native-types/actions/getUserOperation.d.ts +2 -0
  683. package/dist/native-types/actions/initialize.d.ts +2 -0
  684. package/dist/native-types/actions/initiateMfaEnrollment.d.ts +2 -0
  685. package/dist/native-types/actions/initiateMfaVerification.d.ts +1 -0
  686. package/dist/native-types/actions/isSignedIn.d.ts +1 -0
  687. package/dist/native-types/actions/linkApple.d.ts +3 -1
  688. package/dist/native-types/actions/linkEmail.d.ts +3 -1
  689. package/dist/native-types/actions/linkOAuth.d.ts +3 -1
  690. package/dist/native-types/actions/linkSms.d.ts +3 -1
  691. package/dist/native-types/actions/onAuthStateChange.d.ts +2 -0
  692. package/dist/native-types/actions/onOAuthStateChange.d.ts +2 -0
  693. package/dist/native-types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  694. package/dist/native-types/actions/revokeSpendPermission.d.ts +1 -0
  695. package/dist/native-types/actions/sendEvmEoaUsdc.d.ts +1 -0
  696. package/dist/native-types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  697. package/dist/native-types/actions/sendEvmTransaction.d.ts +2 -0
  698. package/dist/native-types/actions/sendSolanaTransaction.d.ts +2 -0
  699. package/dist/native-types/actions/sendSolanaUsdc.d.ts +1 -0
  700. package/dist/native-types/actions/sendUsdc.d.ts +4 -0
  701. package/dist/native-types/actions/sendUserOperation.d.ts +2 -0
  702. package/dist/native-types/actions/signEvmHash.d.ts +2 -0
  703. package/dist/native-types/actions/signEvmMessage.d.ts +2 -0
  704. package/dist/native-types/actions/signEvmTransaction.d.ts +2 -0
  705. package/dist/native-types/actions/signEvmTypedData.d.ts +2 -0
  706. package/dist/native-types/actions/signInWithEmail.d.ts +2 -0
  707. package/dist/native-types/actions/signInWithOAuth.d.ts +4 -0
  708. package/dist/native-types/actions/signInWithSms.d.ts +2 -0
  709. package/dist/native-types/actions/signOut.d.ts +1 -0
  710. package/dist/native-types/actions/signSolanaMessage.d.ts +2 -0
  711. package/dist/native-types/actions/signSolanaTransaction.d.ts +2 -0
  712. package/dist/native-types/actions/submitMfaEnrollment.d.ts +1 -0
  713. package/dist/native-types/actions/submitMfaVerification.d.ts +1 -0
  714. package/dist/native-types/actions/verifyEmailOTP.d.ts +2 -0
  715. package/dist/native-types/actions/verifyOAuth.d.ts +2 -0
  716. package/dist/native-types/actions/verifySmsOTP.d.ts +2 -0
  717. package/dist/native-types/core.d.ts +27 -31
  718. package/dist/native-types/index.d.ts +2 -2
  719. package/dist/native-types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  720. package/dist/native-types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  721. package/dist/native-types/shared/initiateSignIn.d.ts +21 -0
  722. package/dist/native-types/shared/verifyOTP.d.ts +3 -0
  723. package/dist/native-types/types.d.ts +16 -0
  724. package/dist/native-types/version.d.ts +1 -1
  725. package/dist/types/actions/authenticateWithJWT.d.ts +4 -0
  726. package/dist/types/actions/createEvmEoaAccount.d.ts +4 -1
  727. package/dist/types/actions/createEvmSmartAccount.d.ts +1 -0
  728. package/dist/types/actions/createSolanaAccount.d.ts +4 -1
  729. package/dist/types/actions/createSpendPermission.d.ts +1 -0
  730. package/dist/types/actions/exportEvmAccount.d.ts +2 -0
  731. package/dist/types/actions/exportSolanaAccount.d.ts +2 -0
  732. package/dist/types/actions/getAccessToken.d.ts +3 -0
  733. package/dist/types/actions/getAccessTokenExpiration.d.ts +1 -0
  734. package/dist/types/actions/getCurrentUser.d.ts +2 -0
  735. package/dist/types/actions/getUserOperation.d.ts +2 -0
  736. package/dist/types/actions/initialize.d.ts +2 -0
  737. package/dist/types/actions/initiateMfaEnrollment.d.ts +2 -0
  738. package/dist/types/actions/initiateMfaVerification.d.ts +1 -0
  739. package/dist/types/actions/isSignedIn.d.ts +1 -0
  740. package/dist/types/actions/linkApple.d.ts +3 -1
  741. package/dist/types/actions/linkEmail.d.ts +3 -1
  742. package/dist/types/actions/linkOAuth.d.ts +3 -1
  743. package/dist/types/actions/linkSms.d.ts +3 -1
  744. package/dist/types/actions/onAuthStateChange.d.ts +2 -0
  745. package/dist/types/actions/onOAuthStateChange.d.ts +2 -0
  746. package/dist/types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  747. package/dist/types/actions/revokeSpendPermission.d.ts +1 -0
  748. package/dist/types/actions/sendEvmEoaUsdc.d.ts +1 -0
  749. package/dist/types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  750. package/dist/types/actions/sendEvmTransaction.d.ts +2 -0
  751. package/dist/types/actions/sendSolanaTransaction.d.ts +2 -0
  752. package/dist/types/actions/sendSolanaUsdc.d.ts +1 -0
  753. package/dist/types/actions/sendUsdc.d.ts +4 -0
  754. package/dist/types/actions/sendUserOperation.d.ts +2 -0
  755. package/dist/types/actions/signEvmHash.d.ts +2 -0
  756. package/dist/types/actions/signEvmMessage.d.ts +2 -0
  757. package/dist/types/actions/signEvmTransaction.d.ts +2 -0
  758. package/dist/types/actions/signEvmTypedData.d.ts +2 -0
  759. package/dist/types/actions/signInWithEmail.d.ts +2 -0
  760. package/dist/types/actions/signInWithOAuth.d.ts +4 -0
  761. package/dist/types/actions/signInWithSms.d.ts +2 -0
  762. package/dist/types/actions/signOut.d.ts +1 -0
  763. package/dist/types/actions/signSolanaMessage.d.ts +2 -0
  764. package/dist/types/actions/signSolanaTransaction.d.ts +2 -0
  765. package/dist/types/actions/submitMfaEnrollment.d.ts +1 -0
  766. package/dist/types/actions/submitMfaVerification.d.ts +1 -0
  767. package/dist/types/actions/verifyEmailOTP.d.ts +2 -0
  768. package/dist/types/actions/verifyOAuth.d.ts +2 -0
  769. package/dist/types/actions/verifySmsOTP.d.ts +2 -0
  770. package/dist/types/core.d.ts +27 -31
  771. package/dist/types/index.d.ts +2 -2
  772. package/dist/types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  773. package/dist/types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  774. package/dist/types/shared/initiateSignIn.d.ts +21 -0
  775. package/dist/types/shared/verifyOTP.d.ts +3 -0
  776. package/dist/types/types.d.ts +16 -0
  777. package/dist/types/version.d.ts +1 -1
  778. package/dist/web/index.web.js +166 -140
  779. package/dist/web/index.web10.js +12 -36
  780. package/dist/web/index.web100.js +20 -127
  781. package/dist/web/index.web101.js +149 -20
  782. package/dist/web/index.web102.js +14 -10
  783. package/dist/web/index.web103.js +20 -102
  784. package/dist/web/index.web104.js +50 -6
  785. package/dist/web/index.web105.js +377 -3
  786. package/dist/web/index.web106.js +28 -14
  787. package/dist/web/index.web107.js +28 -34
  788. package/dist/web/index.web108.js +2 -81
  789. package/dist/web/index.web109.js +66 -2
  790. package/dist/web/index.web11.js +11 -40
  791. package/dist/web/index.web110.js +365 -2
  792. package/dist/web/index.web111.js +949 -11
  793. package/dist/web/index.web112.js +2 -38
  794. package/dist/web/index.web113.js +48 -5
  795. package/dist/web/index.web114.js +27 -34
  796. package/dist/web/index.web115.js +12 -8
  797. package/dist/web/index.web116.js +11 -10
  798. package/dist/web/index.web117.js +54 -11
  799. package/dist/web/index.web118.js +10 -13
  800. package/dist/web/index.web119.js +2 -19
  801. package/dist/web/index.web12.js +21 -19
  802. package/dist/web/index.web120.js +45 -6
  803. package/dist/web/index.web121.js +13 -4
  804. package/dist/web/index.web122.js +4 -10
  805. package/dist/web/index.web123.js +7 -2
  806. package/dist/web/index.web124.js +44 -62
  807. package/dist/web/index.web125.js +14 -364
  808. package/dist/web/index.web126.js +27 -53
  809. package/dist/web/index.web127.js +7 -10
  810. package/dist/web/index.web128.js +4 -2
  811. package/dist/web/index.web129.js +28 -44
  812. package/dist/web/index.web13.js +13 -5
  813. package/dist/web/index.web130.js +8 -13
  814. package/dist/web/index.web131.js +8 -2
  815. package/dist/web/index.web132.js +80 -4
  816. package/dist/web/index.web133.js +21 -11
  817. package/dist/web/index.web134.js +3 -7
  818. package/dist/web/index.web135.js +15 -3
  819. package/dist/web/index.web136.js +4 -19
  820. package/dist/web/index.web137.js +14 -8
  821. package/dist/web/index.web138.js +19 -7
  822. package/dist/web/index.web139.js +56 -66
  823. package/dist/web/index.web14.js +11 -44
  824. package/dist/web/index.web140.js +17 -18
  825. package/dist/web/index.web141.js +23 -3
  826. package/dist/web/index.web142.js +8 -4
  827. package/dist/web/index.web143.js +42 -4
  828. package/dist/web/index.web144.js +7 -4
  829. package/dist/web/index.web145.js +11 -10
  830. package/dist/web/index.web146.js +2 -53
  831. package/dist/web/index.web147.js +2 -18
  832. package/dist/web/index.web148.js +16 -22
  833. package/dist/web/index.web149.js +45 -8
  834. package/dist/web/index.web15.js +10 -16
  835. package/dist/web/index.web150.js +13 -33
  836. package/dist/web/index.web151.js +55 -7
  837. package/dist/web/index.web152.js +6 -20
  838. package/dist/web/index.web153.js +18 -17
  839. package/dist/web/index.web154.js +4 -5
  840. package/dist/web/index.web155.js +3 -47
  841. package/dist/web/index.web156.js +32 -17
  842. package/dist/web/index.web157.js +11 -78
  843. package/dist/web/index.web158.js +4 -103
  844. package/dist/web/index.web159.js +27 -31
  845. package/dist/web/index.web16.js +52 -15
  846. package/dist/web/index.web160.js +6 -6
  847. package/dist/web/index.web161.js +42 -4
  848. package/dist/web/index.web162.js +53 -18
  849. package/dist/web/index.web163.js +127 -9
  850. package/dist/web/index.web164.js +24 -20
  851. package/dist/web/index.web165.js +11 -92
  852. package/dist/web/index.web166.js +105 -21
  853. package/dist/web/index.web167.js +7 -118
  854. package/dist/web/index.web168.js +3 -79
  855. package/dist/web/index.web169.js +14 -3
  856. package/dist/web/index.web17.js +6 -16
  857. package/dist/web/index.web170.js +29 -41
  858. package/dist/web/index.web171.js +78 -38
  859. package/dist/web/index.web172.js +2 -2
  860. package/dist/web/index.web173.js +2 -70
  861. package/dist/web/index.web174.js +37 -34
  862. package/dist/web/index.web175.js +5 -19
  863. package/dist/web/index.web176.js +34 -7
  864. package/dist/web/index.web177.js +9 -2
  865. package/dist/web/index.web178.js +10 -377
  866. package/dist/web/index.web179.js +11 -835
  867. package/dist/web/index.web18.js +4 -16
  868. package/dist/web/index.web180.js +14 -5
  869. package/dist/web/index.web181.js +19 -2
  870. package/dist/web/index.web182.js +5 -108
  871. package/dist/web/index.web183.js +5 -2
  872. package/dist/web/index.web184.js +10 -17
  873. package/dist/web/index.web185.js +103 -27
  874. package/dist/web/index.web186.js +78 -7
  875. package/dist/web/index.web187.js +80 -11
  876. package/dist/web/index.web188.js +19 -11
  877. package/dist/web/index.web189.js +10 -10
  878. package/dist/web/index.web19.js +12 -16
  879. package/dist/web/index.web190.js +20 -17
  880. package/dist/web/index.web191.js +89 -76
  881. package/dist/web/index.web192.js +21 -15
  882. package/dist/web/index.web193.js +118 -2
  883. package/dist/web/index.web194.js +2 -2
  884. package/dist/web/index.web195.js +109 -2
  885. package/dist/web/index.web196.js +2 -79
  886. package/dist/web/index.web197.js +10 -0
  887. package/dist/web/index.web198.js +4 -0
  888. package/dist/web/index.web199.js +380 -0
  889. package/dist/web/index.web2.js +2 -2
  890. package/dist/web/index.web20.js +4 -26
  891. package/dist/web/index.web200.js +838 -0
  892. package/dist/web/index.web201.js +41 -0
  893. package/dist/web/index.web202.js +4 -0
  894. package/dist/web/index.web203.js +72 -0
  895. package/dist/web/index.web204.js +37 -0
  896. package/dist/web/index.web205.js +23 -0
  897. package/dist/web/index.web206.js +49 -0
  898. package/dist/web/index.web207.js +4 -0
  899. package/dist/web/index.web208.js +23 -0
  900. package/dist/web/index.web209.js +22 -0
  901. package/dist/web/index.web21.js +4 -57
  902. package/dist/web/index.web210.js +35 -0
  903. package/dist/web/index.web211.js +9 -0
  904. package/dist/web/index.web212.js +20 -0
  905. package/dist/web/index.web213.js +30 -0
  906. package/dist/web/index.web214.js +10 -0
  907. package/dist/web/index.web215.js +13 -0
  908. package/dist/web/index.web216.js +15 -0
  909. package/dist/web/index.web217.js +12 -0
  910. package/dist/web/index.web218.js +19 -0
  911. package/dist/web/index.web219.js +83 -0
  912. package/dist/web/index.web22.js +7 -29
  913. package/dist/web/index.web220.js +4 -0
  914. package/dist/web/index.web221.js +4 -0
  915. package/dist/web/index.web222.js +4 -0
  916. package/dist/web/index.web223.js +6 -0
  917. package/dist/web/index.web224.js +17 -0
  918. package/dist/web/index.web225.js +7 -0
  919. package/dist/web/index.web226.js +81 -0
  920. package/dist/web/index.web23.js +7 -27
  921. package/dist/web/index.web24.js +27 -28
  922. package/dist/web/index.web25.js +31 -28
  923. package/dist/web/index.web26.js +27 -113
  924. package/dist/web/index.web27.js +27 -19
  925. package/dist/web/index.web28.js +27 -26
  926. package/dist/web/index.web29.js +26 -61
  927. package/dist/web/index.web3.js +1 -1
  928. package/dist/web/index.web30.js +35 -17
  929. package/dist/web/index.web31.js +28 -11
  930. package/dist/web/index.web32.js +37 -17
  931. package/dist/web/index.web33.js +25 -7
  932. package/dist/web/index.web34.js +41 -47
  933. package/dist/web/index.web35.js +47 -12
  934. package/dist/web/index.web36.js +37 -48
  935. package/dist/web/index.web37.js +42 -23
  936. package/dist/web/index.web38.js +23 -277
  937. package/dist/web/index.web39.js +6 -18
  938. package/dist/web/index.web40.js +41 -119
  939. package/dist/web/index.web41.js +16 -70
  940. package/dist/web/index.web42.js +20 -6
  941. package/dist/web/index.web43.js +18 -45
  942. package/dist/web/index.web44.js +20 -148
  943. package/dist/web/index.web45.js +20 -67
  944. package/dist/web/index.web46.js +32 -35
  945. package/dist/web/index.web47.js +56 -79
  946. package/dist/web/index.web48.js +34 -28
  947. package/dist/web/index.web49.js +28 -32
  948. package/dist/web/index.web5.js +1 -1
  949. package/dist/web/index.web50.js +30 -3
  950. package/dist/web/index.web51.js +30 -9
  951. package/dist/web/index.web52.js +113 -61
  952. package/dist/web/index.web53.js +20 -88
  953. package/dist/web/index.web54.js +30 -23
  954. package/dist/web/index.web55.js +64 -17
  955. package/dist/web/index.web56.js +25 -137
  956. package/dist/web/index.web57.js +16 -60
  957. package/dist/web/index.web58.js +22 -27
  958. package/dist/web/index.web59.js +8 -42
  959. package/dist/web/index.web60.js +47 -152
  960. package/dist/web/index.web61.js +12 -42
  961. package/dist/web/index.web62.js +47 -31
  962. package/dist/web/index.web63.js +38 -8
  963. package/dist/web/index.web64.js +266 -30
  964. package/dist/web/index.web65.js +18 -48
  965. package/dist/web/index.web66.js +128 -68
  966. package/dist/web/index.web67.js +69 -24
  967. package/dist/web/index.web68.js +6 -159
  968. package/dist/web/index.web69.js +55 -47
  969. package/dist/web/index.web70.js +154 -22
  970. package/dist/web/index.web71.js +67 -72
  971. package/dist/web/index.web72.js +35 -951
  972. package/dist/web/index.web73.js +90 -2
  973. package/dist/web/index.web74.js +28 -50
  974. package/dist/web/index.web75.js +31 -27
  975. package/dist/web/index.web76.js +17 -16
  976. package/dist/web/index.web77.js +42 -21
  977. package/dist/web/index.web78.js +42 -50
  978. package/dist/web/index.web79.js +22 -375
  979. package/dist/web/index.web8.js +1 -1
  980. package/dist/web/index.web80.js +8 -28
  981. package/dist/web/index.web81.js +29 -29
  982. package/dist/web/index.web82.js +41 -2
  983. package/dist/web/index.web83.js +42 -2
  984. package/dist/web/index.web84.js +3 -18
  985. package/dist/web/index.web85.js +48 -45
  986. package/dist/web/index.web86.js +81 -13
  987. package/dist/web/index.web87.js +24 -54
  988. package/dist/web/index.web88.js +159 -6
  989. package/dist/web/index.web89.js +44 -18
  990. package/dist/web/index.web9.js +40 -460
  991. package/dist/web/index.web90.js +25 -12
  992. package/dist/web/index.web91.js +72 -3
  993. package/dist/web/index.web92.js +8 -3
  994. package/dist/web/index.web93.js +94 -33
  995. package/dist/web/index.web94.js +134 -10
  996. package/dist/web/index.web95.js +68 -4
  997. package/dist/web/index.web96.js +27 -29
  998. package/dist/web/index.web97.js +42 -7
  999. package/dist/web/index.web98.js +63 -41
  1000. package/dist/web/index.web99.js +46 -55
  1001. package/dist/web-types/actions/authenticateWithJWT.d.ts +4 -0
  1002. package/dist/web-types/actions/createEvmEoaAccount.d.ts +4 -1
  1003. package/dist/web-types/actions/createEvmSmartAccount.d.ts +1 -0
  1004. package/dist/web-types/actions/createSolanaAccount.d.ts +4 -1
  1005. package/dist/web-types/actions/createSpendPermission.d.ts +1 -0
  1006. package/dist/web-types/actions/exportEvmAccount.d.ts +2 -0
  1007. package/dist/web-types/actions/exportSolanaAccount.d.ts +2 -0
  1008. package/dist/web-types/actions/getAccessToken.d.ts +3 -0
  1009. package/dist/web-types/actions/getAccessTokenExpiration.d.ts +1 -0
  1010. package/dist/web-types/actions/getCurrentUser.d.ts +2 -0
  1011. package/dist/web-types/actions/getUserOperation.d.ts +2 -0
  1012. package/dist/web-types/actions/initialize.d.ts +2 -0
  1013. package/dist/web-types/actions/initiateMfaEnrollment.d.ts +2 -0
  1014. package/dist/web-types/actions/initiateMfaVerification.d.ts +1 -0
  1015. package/dist/web-types/actions/isSignedIn.d.ts +1 -0
  1016. package/dist/web-types/actions/linkApple.d.ts +3 -1
  1017. package/dist/web-types/actions/linkEmail.d.ts +3 -1
  1018. package/dist/web-types/actions/linkOAuth.d.ts +3 -1
  1019. package/dist/web-types/actions/linkSms.d.ts +3 -1
  1020. package/dist/web-types/actions/onAuthStateChange.d.ts +2 -0
  1021. package/dist/web-types/actions/onOAuthStateChange.d.ts +2 -0
  1022. package/dist/web-types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  1023. package/dist/web-types/actions/revokeSpendPermission.d.ts +1 -0
  1024. package/dist/web-types/actions/sendEvmEoaUsdc.d.ts +1 -0
  1025. package/dist/web-types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  1026. package/dist/web-types/actions/sendEvmTransaction.d.ts +2 -0
  1027. package/dist/web-types/actions/sendSolanaTransaction.d.ts +2 -0
  1028. package/dist/web-types/actions/sendSolanaUsdc.d.ts +1 -0
  1029. package/dist/web-types/actions/sendUsdc.d.ts +4 -0
  1030. package/dist/web-types/actions/sendUserOperation.d.ts +2 -0
  1031. package/dist/web-types/actions/signEvmHash.d.ts +2 -0
  1032. package/dist/web-types/actions/signEvmMessage.d.ts +2 -0
  1033. package/dist/web-types/actions/signEvmTransaction.d.ts +2 -0
  1034. package/dist/web-types/actions/signEvmTypedData.d.ts +2 -0
  1035. package/dist/web-types/actions/signInWithEmail.d.ts +2 -0
  1036. package/dist/web-types/actions/signInWithOAuth.d.ts +4 -0
  1037. package/dist/web-types/actions/signInWithSms.d.ts +2 -0
  1038. package/dist/web-types/actions/signOut.d.ts +1 -0
  1039. package/dist/web-types/actions/signSolanaMessage.d.ts +2 -0
  1040. package/dist/web-types/actions/signSolanaTransaction.d.ts +2 -0
  1041. package/dist/web-types/actions/submitMfaEnrollment.d.ts +1 -0
  1042. package/dist/web-types/actions/submitMfaVerification.d.ts +1 -0
  1043. package/dist/web-types/actions/verifyEmailOTP.d.ts +2 -0
  1044. package/dist/web-types/actions/verifyOAuth.d.ts +2 -0
  1045. package/dist/web-types/actions/verifySmsOTP.d.ts +2 -0
  1046. package/dist/web-types/core.d.ts +27 -31
  1047. package/dist/web-types/index.d.ts +2 -2
  1048. package/dist/web-types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  1049. package/dist/web-types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  1050. package/dist/web-types/shared/initiateSignIn.d.ts +21 -0
  1051. package/dist/web-types/shared/verifyOTP.d.ts +3 -0
  1052. package/dist/web-types/types.d.ts +16 -0
  1053. package/dist/web-types/version.d.ts +1 -1
  1054. package/package.json +2 -2
@@ -1,6 +1,97 @@
1
- function e(t, { strict: r = !0 } = {}) {
2
- return !t || typeof t != "string" ? !1 : r ? /^0x[0-9a-fA-F]*$/.test(t) : t.startsWith("0x");
1
+ import "@coinbase/cdp-api-client";
2
+ import "./index.native2.js";
3
+ import "./index.native3.js";
4
+ import "jose";
5
+ import "viem";
6
+ import { getPlatformOAuth as h } from "./index.native8.js";
7
+ import "./index.native81.js";
8
+ import { verifyOAuth as u } from "./index.native16.js";
9
+ import "./index.native82.js";
10
+ import "@solana/web3.js";
11
+ import "bs58";
12
+ class C {
13
+ oauthFlowState = null;
14
+ oauthStateChangeCallbacks = [];
15
+ /**
16
+ * Adds a callback to be called when the OAuth state changes.
17
+ *
18
+ * @param callback - The function to call when the OAuth state changes.
19
+ */
20
+ async addOAuthStateChangeCallback(t) {
21
+ this.oauthStateChangeCallbacks.push(t), t(this.oauthFlowState);
22
+ }
23
+ /**
24
+ * Sets the OAuth flow state.
25
+ *
26
+ * @param oauthFlowState - The OAuth flow state.
27
+ */
28
+ async setOAuthFlowState(t) {
29
+ this.oauthFlowState = t, this.oauthStateChangeCallbacks.forEach((a) => a(this.oauthFlowState));
30
+ }
31
+ /**
32
+ * Clears the OAuth flow state.
33
+ */
34
+ async clearOAuthFlowState() {
35
+ this.oauthFlowState = null, this.oauthStateChangeCallbacks.forEach((t) => t(null));
36
+ }
37
+ /**
38
+ * Gets the OAuth flow state.
39
+ *
40
+ * @returns The OAuth flow state.
41
+ */
42
+ async getOAuthFlowState() {
43
+ return this.oauthFlowState;
44
+ }
45
+ /**
46
+ * Handles the OAuth code.
47
+ *
48
+ * @param url - The URL to handle.
49
+ * @returns A promise that resolves when the OAuth code is handled.
50
+ * @throws An error if the URL is required and not provided.
51
+ */
52
+ async handleOAuthCode(t) {
53
+ try {
54
+ const a = await h().getOAuthParams(t);
55
+ if (await h().cleanupOAuthParams(), !a)
56
+ return;
57
+ const { providerType: r, code: e, flowId: o, error: s, errorDescription: i } = a;
58
+ if (s || i) {
59
+ await this.setOAuthFlowState({
60
+ providerType: r,
61
+ status: "error",
62
+ errorDescription: s ?? i,
63
+ code: e,
64
+ flowId: o,
65
+ error: s
66
+ });
67
+ return;
68
+ }
69
+ if (!e || !r || !o)
70
+ return;
71
+ await this.setOAuthFlowState({
72
+ providerType: r,
73
+ status: "pending",
74
+ code: e,
75
+ flowId: o
76
+ }), await u({
77
+ code: e,
78
+ providerType: r,
79
+ flowId: o
80
+ }), await this.setOAuthFlowState({
81
+ providerType: r,
82
+ status: "success",
83
+ code: e,
84
+ flowId: o
85
+ });
86
+ } catch (a) {
87
+ const r = a instanceof Error ? a.message : "Unknown error";
88
+ await h().cleanupOAuthParams(), await this.setOAuthFlowState({
89
+ status: "error",
90
+ errorDescription: r
91
+ });
92
+ }
93
+ }
3
94
  }
4
95
  export {
5
- e as isHex
96
+ C as OAuthManager
6
97
  };
@@ -1,37 +1,139 @@
1
- import { SizeExceedsPaddingSizeError as d } from "./index.native93.js";
2
- function f(n, { dir: r, size: t = 32 } = {}) {
3
- return typeof n == "string" ? p(n, { dir: r, size: t }) : i(n, { dir: r, size: t });
4
- }
5
- function p(n, { dir: r, size: t = 32 } = {}) {
6
- if (t === null)
7
- return n;
8
- const e = n.replace("0x", "");
9
- if (e.length > t * 2)
10
- throw new d({
11
- size: Math.ceil(e.length / 2),
12
- targetSize: t,
13
- type: "hex"
14
- });
15
- return `0x${e[r === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
16
- }
17
- function i(n, { dir: r, size: t = 32 } = {}) {
18
- if (t === null)
19
- return n;
20
- if (n.length > t)
21
- throw new d({
22
- size: n.length,
23
- targetSize: t,
24
- type: "bytes"
1
+ import "@coinbase/cdp-api-client";
2
+ import "viem";
3
+ import { mockUser as e } from "./index.native79.js";
4
+ class n {
5
+ authState = null;
6
+ authStateChangeCallback = null;
7
+ /**
8
+ * Initializes the mock auth manager.
9
+ *
10
+ * @param _projectId - The project ID (unused in mock implementation).
11
+ */
12
+ constructor(t) {
13
+ }
14
+ /**
15
+ * Awaitable method whose promise only resolves when the auth manager is ready to be used.
16
+ *
17
+ * @returns A promise that resolves when the auth manager is ready to be used.
18
+ */
19
+ async ensureInitialized() {
20
+ return Promise.resolve();
21
+ }
22
+ /**
23
+ * Gets the current user, or null if there is no user signed in.
24
+ *
25
+ * @returns The current mock user if signed in, null otherwise.
26
+ */
27
+ getUser() {
28
+ return this.authState?.user ?? null;
29
+ }
30
+ /**
31
+ * Returns whether the user is signed in - i.e., whether there is an unexpired
32
+ * access token and user.
33
+ *
34
+ * @returns True if the mock user is signed in and token is not expired, false otherwise.
35
+ */
36
+ async isSignedIn() {
37
+ return this.authState ? Promise.resolve(this.authState.expiresAt > Date.now()) : Promise.resolve(!1);
38
+ }
39
+ /**
40
+ * Signs out the user, clearing all authentication state.
41
+ * In the mock implementation, this simply clears the local auth state.
42
+ */
43
+ async signOut() {
44
+ await this.clearAuthState();
45
+ }
46
+ /**
47
+ * Sets a callback to be called when the auth state changes.
48
+ * The callback is immediately called with the current auth state.
49
+ *
50
+ * @param callback - The function to call when the auth state changes.
51
+ * Will be called with the current user or null.
52
+ */
53
+ addAuthStateChangeCallback(t) {
54
+ this.authStateChangeCallback = t, t(this.authState?.user ?? null);
55
+ }
56
+ /**
57
+ * Gets the access token. For mock, this always returns a valid token if signed in.
58
+ * If the current token is expired, it will be refreshed automatically.
59
+ *
60
+ * @param options - The options for getting the token.
61
+ * @param options.forceRefresh - Whether to force a refresh of the token.
62
+ * @returns The mock access token if signed in, null otherwise.
63
+ */
64
+ async getToken(t) {
65
+ return this.authState ? ((t?.forceRefresh || this.authState.expiresAt <= Date.now()) && await this.refreshToken(), this.authState?.accessToken ?? null) : null;
66
+ }
67
+ /**
68
+ * Gets the expiration time of the access token, or null if the user is not signed in.
69
+ *
70
+ * @returns The expiration time of the access token.
71
+ */
72
+ async getTokenExpiration() {
73
+ return this.authState?.expiresAt ?? null;
74
+ }
75
+ /**
76
+ * Gets the currentlly registered wallet secret ID.
77
+ *
78
+ * @returns The wallet secret ID.
79
+ */
80
+ async getWalletSecretId() {
81
+ return "mock-wallet-secret-id";
82
+ }
83
+ /**
84
+ * Gets the X-Wallet-Auth header value.
85
+ *
86
+ * @param _options - The options for the request.
87
+ * @param _options.requestMethod - The HTTP method of the request.
88
+ * @param _options.requestHost - The host of the request.
89
+ * @param _options.requestPath - The path of the request.
90
+ * @param _options.requestData - The data of the request.
91
+ * @returns The X-Wallet-Auth header value.
92
+ */
93
+ async getXWalletAuth(t) {
94
+ if (!this.authState)
95
+ throw new Error("User not signed in");
96
+ return "x-wallet-auth";
97
+ }
98
+ /**
99
+ * Gets the authentication state.
100
+ *
101
+ * @returns The authentication state.
102
+ */
103
+ getAuthState() {
104
+ return this.authState;
105
+ }
106
+ /**
107
+ * Sets the authentication state.
108
+ * This will trigger the auth state change callback if one is registered.
109
+ *
110
+ * @param authState - The new authentication state to set.
111
+ */
112
+ async setAuthState(t) {
113
+ this.authState = t, this.authStateChangeCallback && this.authStateChangeCallback(this.authState?.user ?? null);
114
+ }
115
+ /**
116
+ * Clears the authentication state.
117
+ * This will trigger the auth state change callback if one is registered.
118
+ */
119
+ async clearAuthState() {
120
+ this.authState = null, this.authStateChangeCallback && this.authStateChangeCallback(null);
121
+ }
122
+ /**
123
+ * Refreshes the mock token.
124
+ * Only refreshes if there is an existing auth state (user is signed in).
125
+ * Sets a new mock token with a 24-hour expiration.
126
+ *
127
+ * @private
128
+ */
129
+ async refreshToken() {
130
+ this.authState && await this.setAuthState({
131
+ accessToken: "mock-access-token",
132
+ expiresAt: Date.now() + 1e3 * 60 * 60 * 24,
133
+ user: e
25
134
  });
26
- const e = new Uint8Array(t);
27
- for (let a = 0; a < t; a++) {
28
- const o = r === "right";
29
- e[o ? a : t - a - 1] = n[o ? a : n.length - a - 1];
30
135
  }
31
- return e;
32
136
  }
33
137
  export {
34
- f as pad,
35
- i as padBytes,
36
- p as padHex
138
+ n as MockAuthManager
37
139
  };
@@ -1,15 +1,70 @@
1
- import { BaseError as o } from "./index.native98.js";
2
- class d extends o {
3
- constructor({ offset: r, position: s, size: e }) {
4
- super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${r}" is out-of-bounds (size: ${e}).`, { name: "SliceOffsetOutOfBoundsError" });
1
+ import "@coinbase/cdp-api-client";
2
+ import "viem";
3
+ import "./index.native2.js";
4
+ import "./index.native3.js";
5
+ import "jose";
6
+ import { getPlatformOAuth as a } from "./index.native8.js";
7
+ import "./index.native81.js";
8
+ import { verifyOAuth as e } from "./index.native16.js";
9
+ import "./index.native82.js";
10
+ import "@solana/web3.js";
11
+ import "bs58";
12
+ class S {
13
+ oauthFlowState = null;
14
+ oauthStateChangeCallbacks = [];
15
+ /**
16
+ * Initializes the mock OAuth manager.
17
+ */
18
+ constructor() {
19
+ this.handleOAuthCode();
5
20
  }
6
- }
7
- class n extends o {
8
- constructor({ size: r, targetSize: s, type: e }) {
9
- super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
21
+ /**
22
+ * Gets the current user, or null if there is no user signed in.
23
+ *
24
+ * @returns The current mock user if signed in, null otherwise.
25
+ */
26
+ async getOAuthFlowState() {
27
+ return this.oauthFlowState ?? null;
28
+ }
29
+ /**
30
+ * Sets the OAuth flow state.
31
+ *
32
+ * @param oauthFlowState - The OAuth flow state to set.
33
+ */
34
+ async setOAuthFlowState(t) {
35
+ this.oauthFlowState = t, this.oauthStateChangeCallbacks.forEach((o) => o(this.oauthFlowState));
36
+ }
37
+ /**
38
+ * Adds a callback to be called when the OAuth state changes.
39
+ *
40
+ * @param callback - The function to call when the OAuth state changes.
41
+ */
42
+ async addOAuthStateChangeCallback(t) {
43
+ this.oauthStateChangeCallbacks.push(t), t(this.oauthFlowState);
44
+ }
45
+ /**
46
+ * Clears the OAuth flow state.
47
+ */
48
+ async clearOAuthFlowState() {
49
+ this.oauthFlowState = null, this.oauthStateChangeCallbacks.forEach((t) => t(null));
50
+ }
51
+ /**
52
+ * Awaitable method whose promise only resolves when the OAuth manager is ready to be used.
53
+ */
54
+ async handleOAuthCode() {
55
+ await a()?.cleanupOAuthParams(), await this.setOAuthFlowState({
56
+ providerType: "google",
57
+ status: "pending",
58
+ code: "mock-oauth-code",
59
+ flowId: "mock-flow-id"
60
+ }), await e({ code: "mock-oauth-code", providerType: "google", flowId: "mock-flow-id" }), await this.setOAuthFlowState({
61
+ providerType: "google",
62
+ status: "success",
63
+ code: "mock-oauth-code",
64
+ flowId: "mock-flow-id"
65
+ });
10
66
  }
11
67
  }
12
68
  export {
13
- n as SizeExceedsPaddingSizeError,
14
- d as SliceOffsetOutOfBoundsError
69
+ S as MockOAuthManager
15
70
  };
@@ -1,7 +1,29 @@
1
- import { isHex as r } from "./index.native91.js";
2
- function i(t) {
3
- return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
4
- }
1
+ import { initiateAuthentication as n } from "@coinbase/cdp-api-client";
2
+ import { getConfig as t, getCoreAuthManager as o } from "./index.native72.js";
3
+ const f = async (e, r) => {
4
+ if (t().useMock)
5
+ return "redirectUrl" in e ? {
6
+ authUrl: "mock-auth-url",
7
+ flowId: "mock-flow-id"
8
+ } : {
9
+ message: "Mock sign in initiated",
10
+ flowId: "mock-flow-id"
11
+ };
12
+ if (await o().isSignedIn())
13
+ throw new Error("User is already authenticated. Please sign out first.");
14
+ const i = await n(
15
+ t().projectId,
16
+ e,
17
+ r
18
+ );
19
+ return "authUrl" in i ? {
20
+ flowId: i.flowId,
21
+ authUrl: i.authUrl
22
+ } : {
23
+ flowId: i.flowId,
24
+ message: "message" in i ? i.message : ""
25
+ };
26
+ };
5
27
  export {
6
- i as size
28
+ f as initiateSignIn
7
29
  };
@@ -1,31 +1,44 @@
1
- import { SliceOffsetOutOfBoundsError as n } from "./index.native93.js";
2
- import { isHex as c } from "./index.native91.js";
3
- import { size as s } from "./index.native94.js";
4
- function O(e, f, i, { strict: o } = {}) {
5
- return c(e, { strict: !1 }) ? l(e, f, i, {
6
- strict: o
7
- }) : u(e, f, i, {
8
- strict: o
9
- });
10
- }
11
- function t(e, f, i) {
12
- if (s(e) !== i - f)
13
- throw new n({
14
- offset: i,
15
- position: "end",
16
- size: s(e)
17
- });
18
- }
19
- function u(e, f, i, { strict: o } = {}) {
20
- const r = e.slice(f, i);
21
- return o && t(r, f, i), r;
22
- }
23
- function l(e, f, i, { strict: o } = {}) {
24
- const r = `0x${e.replace("0x", "").slice(f * 2, i * 2)}`;
25
- return o && t(r, f, i), r;
26
- }
1
+ import { createEvmAccountIfNeeded as u } from "./index.native97.js";
2
+ import { createSolanaAccountIfNeeded as f } from "./index.native98.js";
3
+ import { toAuthState as g } from "./index.native77.js";
4
+ import { mockUser as n } from "./index.native79.js";
5
+ import { getConfig as s, getCoreAuthManager as o } from "./index.native72.js";
6
+ const h = async (r, c, i) => {
7
+ if (s().useMock)
8
+ return await o().setAuthState({
9
+ accessToken: "mock-access-token",
10
+ expiresAt: Date.now() + 1e3 * 60 * 60 * 24,
11
+ user: n
12
+ }), {
13
+ message: c,
14
+ user: n,
15
+ isNewUser: !1
16
+ };
17
+ const e = await i(s().projectId, r, r.idempotencyKey);
18
+ let t = g(
19
+ e.accessToken,
20
+ e.validUntil,
21
+ e.endUser
22
+ );
23
+ await o().setAuthState(t);
24
+ const a = s();
25
+ a.ethereum?.createOnLogin && (t = await u(
26
+ t,
27
+ e.accessToken,
28
+ e.validUntil,
29
+ a.ethereum.createOnLogin
30
+ )), a.solana?.createOnLogin && (t = await f(
31
+ t,
32
+ e.accessToken,
33
+ e.validUntil
34
+ ));
35
+ const m = o().getUser();
36
+ return {
37
+ message: e.message,
38
+ user: m,
39
+ isNewUser: e.isNewEndUser
40
+ };
41
+ };
27
42
  export {
28
- O as slice,
29
- u as sliceBytes,
30
- l as sliceHex
43
+ h as verifyOTP
31
44
  };
@@ -1,9 +1,67 @@
1
- function f(e, { dir: n = "left" } = {}) {
2
- let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
3
- for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
4
- i++;
5
- return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
1
+ import { AuthManager as a } from "./index.native65.js";
2
+ import { getConfig as o } from "./index.native72.js";
3
+ import { CustomAuthError as s } from "./index.native66.js";
4
+ const n = 60 * 60 * 1e3;
5
+ class l extends a {
6
+ /**
7
+ * Signs out the user, clearing all authentication state.
8
+ * For custom auth, we only clear local state without calling the CDP logout API,
9
+ * as authentication is managed by the external identity provider.
10
+ */
11
+ async signOut() {
12
+ await this.clearAuthState();
13
+ }
14
+ /**
15
+ * Gets the access token by calling the customAuth.getJwt callback.
16
+ * Returns null if the user is not signed in.
17
+ *
18
+ * @returns The access token from the custom auth provider.
19
+ */
20
+ async getToken() {
21
+ const e = o();
22
+ if (!e.customAuth)
23
+ return console.error("Custom auth configuration not found"), await this.clearAuthState(), null;
24
+ try {
25
+ const t = await e.customAuth.getJwt();
26
+ return t ? (this.authState && (this.authState.accessToken = t, this.authState.expiresAt = Date.now() + n), t) : (await this.clearAuthState(), null);
27
+ } catch (t) {
28
+ const r = new s(
29
+ t instanceof Error ? t.message : "Failed to get custom auth JWT"
30
+ );
31
+ return console.error(r), await this.clearAuthState(), null;
32
+ }
33
+ }
34
+ /**
35
+ * Internal async initialization logic for custom auth.
36
+ * No-op for custom auth since tokens are provided via customAuth.getJwt callback.
37
+ * Unlike standard CDP auth, custom auth doesn't need token refresh or OAuth handling.
38
+ */
39
+ async _doInitialize() {
40
+ }
41
+ /**
42
+ * Custom auth always fetches fresh tokens, so never needs to "refresh" in the traditional sense.
43
+ *
44
+ * @returns Always false since custom auth doesn't use token refresh logic.
45
+ */
46
+ shouldRefreshToken() {
47
+ return !1;
48
+ }
49
+ /**
50
+ * Custom auth doesn't use CDP's token refresh mechanism.
51
+ * Tokens are always provided fresh from the customAuth.getJwt callback.
52
+ * This method should never be called, but we override it as a defensive measure.
53
+ */
54
+ async refreshAccessToken() {
55
+ }
56
+ /**
57
+ * Custom auth provides fresh tokens on each request via customAuth.getJwt,
58
+ * so no scheduled refresh is needed. This method is a no-op for custom auth.
59
+ */
60
+ scheduleTokenRefresh() {
61
+ this.cancelTokenRefresh();
62
+ }
6
63
  }
7
64
  export {
8
- f as trim
65
+ n as CUSTOM_AUTH_REFRESH_BUFFER_MS,
66
+ l as CustomAuthManager
9
67
  };
@@ -1,45 +1,49 @@
1
- import { BaseError as l } from "./index.native98.js";
2
- import { createCursor as r } from "./index.native99.js";
3
- import { hexToBytes as g } from "./index.native86.js";
4
- import { bytesToHex as u } from "./index.native84.js";
5
- function m(n, e = "hex") {
6
- const i = s(n), h = r(new Uint8Array(i.length));
7
- return i.encode(h), e === "hex" ? u(h.bytes) : h.bytes;
8
- }
9
- function s(n) {
10
- return Array.isArray(n) ? p(n.map((e) => s(e))) : y(n);
11
- }
12
- function p(n) {
13
- const e = n.reduce((t, f) => t + f.length, 0), i = o(e);
14
- return {
15
- length: e <= 55 ? 1 + e : 1 + i + e,
16
- encode(t) {
17
- e <= 55 ? t.pushByte(192 + e) : (t.pushByte(247 + i), i === 1 ? t.pushUint8(e) : i === 2 ? t.pushUint16(e) : i === 3 ? t.pushUint24(e) : t.pushUint32(e));
18
- for (const { encode: f } of n)
19
- f(t);
1
+ import { createEndUserEvmAccount as w, createEndUserEvmSmartAccount as A } from "@coinbase/cdp-api-client";
2
+ import { toAuthState as f } from "./index.native77.js";
3
+ import { getCoreAuthManager as s, getConfig as o } from "./index.native72.js";
4
+ const p = async (r, n, a, u) => {
5
+ let e = r;
6
+ if (!r.user.evmAccountObjects || r.user.evmAccountObjects.length === 0)
7
+ try {
8
+ const t = await s().getWalletSecretId();
9
+ let c = await w(o().projectId, r.user.userId, {
10
+ walletSecretId: t
11
+ }), m = !1;
12
+ const d = o().ethereum;
13
+ if (d?.createOnLogin === "smart" && (m = d.enableSpendPermissions ?? !1), u === "smart") {
14
+ const i = c.evmAccountObjects?.[0]?.address;
15
+ if (!i)
16
+ throw new Error("No EVM account found to use as owner for smart account");
17
+ c = await A(
18
+ o().projectId,
19
+ r.user.userId,
20
+ {
21
+ owner: i,
22
+ enableSpendPermissions: m
23
+ }
24
+ );
25
+ }
26
+ e = f(n, a, c), await s().setAuthState(e);
27
+ } catch (t) {
28
+ throw new Error(`Failed to create EVM account: ${t}`);
20
29
  }
21
- };
22
- }
23
- function y(n) {
24
- const e = typeof n == "string" ? g(n) : n, i = o(e.length);
25
- return {
26
- length: e.length === 1 && e[0] < 128 ? 1 : e.length <= 55 ? 1 + e.length : 1 + i + e.length,
27
- encode(t) {
28
- e.length === 1 && e[0] < 128 ? t.pushBytes(e) : e.length <= 55 ? (t.pushByte(128 + e.length), t.pushBytes(e)) : (t.pushByte(183 + i), i === 1 ? t.pushUint8(e.length) : i === 2 ? t.pushUint16(e.length) : i === 3 ? t.pushUint24(e.length) : t.pushUint32(e.length), t.pushBytes(e));
30
+ if (u === "smart" && (!e.user.evmSmartAccountObjects || e.user.evmSmartAccountObjects.length === 0))
31
+ try {
32
+ const t = e.user.evmAccountObjects[0]?.address, c = await A(
33
+ o().projectId,
34
+ e.user.userId,
35
+ {
36
+ owner: t,
37
+ enableSpendPermissions: !1
38
+ // Defaulting to false until the feature is ready.
39
+ }
40
+ );
41
+ e = f(n, a, c), await s().setAuthState(e);
42
+ } catch (t) {
43
+ throw new Error(`Failed to create EVM Smart Account: ${t}`);
29
44
  }
30
- };
31
- }
32
- function o(n) {
33
- if (n < 2 ** 8)
34
- return 1;
35
- if (n < 2 ** 16)
36
- return 2;
37
- if (n < 2 ** 24)
38
- return 3;
39
- if (n < 2 ** 32)
40
- return 4;
41
- throw new l("Length is too large.");
42
- }
45
+ return e;
46
+ };
43
47
  export {
44
- m as toRlp
48
+ p as createEvmAccountIfNeeded
45
49
  };