@otim/utils 0.0.4 → 0.0.6

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 (467) hide show
  1. package/dist/api/index.d.mts +1858 -7
  2. package/dist/api/index.d.mts.map +1 -0
  3. package/dist/api/index.d.ts +1857 -6
  4. package/dist/api/index.d.ts.map +1 -1
  5. package/dist/api/index.js +1514 -1994
  6. package/dist/api/index.js.map +1 -7
  7. package/dist/api/index.mjs +1394 -1962
  8. package/dist/api/index.mjs.map +1 -7
  9. package/dist/api-urls-B-GTEiT3.d.mts +49 -0
  10. package/dist/api-urls-B-GTEiT3.d.mts.map +1 -0
  11. package/dist/api-urls-Cd20DG4i.js +171 -0
  12. package/dist/api-urls-Cd20DG4i.js.map +1 -0
  13. package/dist/api-urls-DJcIKBCy.mjs +135 -0
  14. package/dist/api-urls-DJcIKBCy.mjs.map +1 -0
  15. package/dist/api-urls-SKeIQMoZ.d.ts +49 -0
  16. package/dist/api-urls-SKeIQMoZ.d.ts.map +1 -0
  17. package/dist/chains/index.d.mts +13568 -16
  18. package/dist/chains/index.d.mts.map +1 -0
  19. package/dist/chains/index.d.ts +13567 -15
  20. package/dist/chains/index.d.ts.map +1 -1
  21. package/dist/chains/index.js +3615 -424
  22. package/dist/chains/index.js.map +1 -7
  23. package/dist/chains/index.mjs +3561 -440
  24. package/dist/chains/index.mjs.map +1 -7
  25. package/dist/chunk-kSYXY2_d.js +34 -0
  26. package/dist/client-factory-7xUSPC9I.mjs +42 -0
  27. package/dist/client-factory-7xUSPC9I.mjs.map +1 -0
  28. package/dist/client-factory-C3A4RPdj.d.ts +22 -0
  29. package/dist/client-factory-C3A4RPdj.d.ts.map +1 -0
  30. package/dist/client-factory-CTI_Nt35.js +49 -0
  31. package/dist/client-factory-CTI_Nt35.js.map +1 -0
  32. package/dist/client-factory-DOL0ZTWy.d.mts +22 -0
  33. package/dist/client-factory-DOL0ZTWy.d.mts.map +1 -0
  34. package/dist/constants.d.mts +14 -24
  35. package/dist/constants.d.mts.map +1 -0
  36. package/dist/constants.d.ts +13 -23
  37. package/dist/constants.d.ts.map +1 -1
  38. package/dist/constants.js +31 -46
  39. package/dist/constants.js.map +1 -7
  40. package/dist/constants.mjs +22 -26
  41. package/dist/constants.mjs.map +1 -7
  42. package/dist/date-CFzrYcjE.js +536 -0
  43. package/dist/date-CFzrYcjE.js.map +1 -0
  44. package/dist/date-gBac-Om9.mjs +313 -0
  45. package/dist/date-gBac-Om9.mjs.map +1 -0
  46. package/dist/defineProperty-DbMdhrDE.js +49 -0
  47. package/dist/defineProperty-DzhmunJg.mjs +43 -0
  48. package/dist/formatters/index.d.mts +1 -2
  49. package/dist/formatters/index.d.ts +1 -2
  50. package/dist/formatters/index.js +0 -19
  51. package/dist/formatters/index.mjs +1 -1
  52. package/dist/helpers/index.d.mts +562 -19
  53. package/dist/helpers/index.d.mts.map +1 -0
  54. package/dist/helpers/index.d.ts +561 -18
  55. package/dist/helpers/index.d.ts.map +1 -1
  56. package/dist/helpers/index.js +106 -1344
  57. package/dist/helpers/index.mjs +3 -1315
  58. package/dist/helpers-BNiSxjGq.mjs +895 -0
  59. package/dist/helpers-BNiSxjGq.mjs.map +1 -0
  60. package/dist/helpers-DoC7Xl12.js +1291 -0
  61. package/dist/helpers-DoC7Xl12.js.map +1 -0
  62. package/dist/index-Bv0kUz4w.d.ts +540 -0
  63. package/dist/index-Bv0kUz4w.d.ts.map +1 -0
  64. package/dist/index-DartTKk2.d.mts +540 -0
  65. package/dist/index-DartTKk2.d.mts.map +1 -0
  66. package/dist/index.d.mts +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +0 -2
  69. package/dist/index.mjs +1 -1
  70. package/dist/instructions/index.d.mts +687 -6
  71. package/dist/instructions/index.d.mts.map +1 -0
  72. package/dist/instructions/index.d.ts +686 -5
  73. package/dist/instructions/index.d.ts.map +1 -1
  74. package/dist/instructions/index.js +1912 -1091
  75. package/dist/instructions/index.js.map +1 -7
  76. package/dist/instructions/index.mjs +1887 -1058
  77. package/dist/instructions/index.mjs.map +1 -7
  78. package/dist/payments/index.d.mts +322 -16
  79. package/dist/payments/index.d.mts.map +1 -0
  80. package/dist/payments/index.d.ts +321 -15
  81. package/dist/payments/index.d.ts.map +1 -1
  82. package/dist/payments/index.js +616 -1258
  83. package/dist/payments/index.js.map +1 -7
  84. package/dist/payments/index.mjs +594 -1236
  85. package/dist/payments/index.mjs.map +1 -7
  86. package/dist/schemas/index.d.mts +2 -10
  87. package/dist/schemas/index.d.ts +2 -10
  88. package/dist/schemas/index.js +350 -393
  89. package/dist/schemas/index.js.map +1 -7
  90. package/dist/schemas/index.mjs +283 -371
  91. package/dist/schemas/index.mjs.map +1 -7
  92. package/dist/server/index.d.mts +354 -3
  93. package/dist/server/index.d.mts.map +1 -0
  94. package/dist/server/index.d.ts +353 -2
  95. package/dist/server/index.d.ts.map +1 -1
  96. package/dist/server/index.js +248 -435
  97. package/dist/server/index.js.map +1 -7
  98. package/dist/server/index.mjs +199 -404
  99. package/dist/server/index.mjs.map +1 -7
  100. package/dist/server/react.d.mts +16 -0
  101. package/dist/server/react.d.mts.map +1 -0
  102. package/dist/server/react.d.ts +16 -0
  103. package/dist/server/react.d.ts.map +1 -0
  104. package/dist/server/react.js +30 -0
  105. package/dist/server/react.js.map +1 -0
  106. package/dist/server/react.mjs +28 -0
  107. package/dist/server/react.mjs.map +1 -0
  108. package/dist/wallet/wagmi/index.d.mts +23 -2
  109. package/dist/wallet/wagmi/index.d.mts.map +1 -0
  110. package/dist/wallet/wagmi/index.d.ts +22 -1
  111. package/dist/wallet/wagmi/index.d.ts.map +1 -1
  112. package/dist/wallet/wagmi/index.js +86 -417
  113. package/dist/wallet/wagmi/index.js.map +1 -7
  114. package/dist/wallet/wagmi/index.mjs +82 -418
  115. package/dist/wallet/wagmi/index.mjs.map +1 -7
  116. package/package.json +39 -28
  117. package/dist/api/api.d.mts +0 -18
  118. package/dist/api/api.d.ts +0 -18
  119. package/dist/api/api.d.ts.map +0 -1
  120. package/dist/api/core/error.d.mts +0 -74
  121. package/dist/api/core/error.d.ts +0 -74
  122. package/dist/api/core/error.d.ts.map +0 -1
  123. package/dist/api/core/index.d.mts +0 -4
  124. package/dist/api/core/index.d.ts +0 -4
  125. package/dist/api/core/index.d.ts.map +0 -1
  126. package/dist/api/core/instance.d.mts +0 -13
  127. package/dist/api/core/instance.d.ts +0 -13
  128. package/dist/api/core/instance.d.ts.map +0 -1
  129. package/dist/api/core/service.d.mts +0 -51
  130. package/dist/api/core/service.d.ts +0 -51
  131. package/dist/api/core/service.d.ts.map +0 -1
  132. package/dist/api/schemas/account.d.mts +0 -44
  133. package/dist/api/schemas/account.d.ts +0 -44
  134. package/dist/api/schemas/account.d.ts.map +0 -1
  135. package/dist/api/schemas/activity.d.mts +0 -277
  136. package/dist/api/schemas/activity.d.ts +0 -277
  137. package/dist/api/schemas/activity.d.ts.map +0 -1
  138. package/dist/api/schemas/auth.d.mts +0 -127
  139. package/dist/api/schemas/auth.d.ts +0 -127
  140. package/dist/api/schemas/auth.d.ts.map +0 -1
  141. package/dist/api/schemas/chain.d.mts +0 -15
  142. package/dist/api/schemas/chain.d.ts +0 -15
  143. package/dist/api/schemas/chain.d.ts.map +0 -1
  144. package/dist/api/schemas/config.d.mts +0 -33
  145. package/dist/api/schemas/config.d.ts +0 -33
  146. package/dist/api/schemas/config.d.ts.map +0 -1
  147. package/dist/api/schemas/contacts.d.mts +0 -27
  148. package/dist/api/schemas/contacts.d.ts +0 -27
  149. package/dist/api/schemas/contacts.d.ts.map +0 -1
  150. package/dist/api/schemas/index.d.mts +0 -12
  151. package/dist/api/schemas/index.d.ts +0 -12
  152. package/dist/api/schemas/index.d.ts.map +0 -1
  153. package/dist/api/schemas/instruction.d.mts +0 -446
  154. package/dist/api/schemas/instruction.d.ts +0 -446
  155. package/dist/api/schemas/instruction.d.ts.map +0 -1
  156. package/dist/api/schemas/integration.d.mts +0 -166
  157. package/dist/api/schemas/integration.d.ts +0 -166
  158. package/dist/api/schemas/integration.d.ts.map +0 -1
  159. package/dist/api/schemas/operating-account.d.mts +0 -11
  160. package/dist/api/schemas/operating-account.d.ts +0 -11
  161. package/dist/api/schemas/operating-account.d.ts.map +0 -1
  162. package/dist/api/schemas/payments.d.mts +0 -234
  163. package/dist/api/schemas/payments.d.ts +0 -234
  164. package/dist/api/schemas/payments.d.ts.map +0 -1
  165. package/dist/api/schemas/transaction.d.mts +0 -37
  166. package/dist/api/schemas/transaction.d.ts +0 -37
  167. package/dist/api/schemas/transaction.d.ts.map +0 -1
  168. package/dist/api/services/account.d.mts +0 -8
  169. package/dist/api/services/account.d.ts +0 -8
  170. package/dist/api/services/account.d.ts.map +0 -1
  171. package/dist/api/services/activity.d.mts +0 -7
  172. package/dist/api/services/activity.d.ts +0 -7
  173. package/dist/api/services/activity.d.ts.map +0 -1
  174. package/dist/api/services/auth.d.mts +0 -12
  175. package/dist/api/services/auth.d.ts +0 -12
  176. package/dist/api/services/auth.d.ts.map +0 -1
  177. package/dist/api/services/base.d.mts +0 -10
  178. package/dist/api/services/base.d.ts +0 -10
  179. package/dist/api/services/base.d.ts.map +0 -1
  180. package/dist/api/services/config.d.mts +0 -10
  181. package/dist/api/services/config.d.ts +0 -10
  182. package/dist/api/services/config.d.ts.map +0 -1
  183. package/dist/api/services/contacts.d.mts +0 -8
  184. package/dist/api/services/contacts.d.ts +0 -8
  185. package/dist/api/services/contacts.d.ts.map +0 -1
  186. package/dist/api/services/developer.d.mts +0 -6
  187. package/dist/api/services/developer.d.ts +0 -6
  188. package/dist/api/services/developer.d.ts.map +0 -1
  189. package/dist/api/services/index.d.mts +0 -13
  190. package/dist/api/services/index.d.ts +0 -13
  191. package/dist/api/services/index.d.ts.map +0 -1
  192. package/dist/api/services/instruction.d.mts +0 -12
  193. package/dist/api/services/instruction.d.ts +0 -12
  194. package/dist/api/services/instruction.d.ts.map +0 -1
  195. package/dist/api/services/integration.d.mts +0 -8
  196. package/dist/api/services/integration.d.ts +0 -8
  197. package/dist/api/services/integration.d.ts.map +0 -1
  198. package/dist/api/services/operating-account.d.mts +0 -8
  199. package/dist/api/services/operating-account.d.ts +0 -8
  200. package/dist/api/services/operating-account.d.ts.map +0 -1
  201. package/dist/api/services/payments.d.mts +0 -14
  202. package/dist/api/services/payments.d.ts +0 -14
  203. package/dist/api/services/payments.d.ts.map +0 -1
  204. package/dist/api/services/transaction.d.mts +0 -8
  205. package/dist/api/services/transaction.d.ts +0 -8
  206. package/dist/api/services/transaction.d.ts.map +0 -1
  207. package/dist/api/services/uniswap-token-list-service.d.mts +0 -66
  208. package/dist/api/services/uniswap-token-list-service.d.ts +0 -66
  209. package/dist/api/services/uniswap-token-list-service.d.ts.map +0 -1
  210. package/dist/api/utils/index.d.mts +0 -2
  211. package/dist/api/utils/index.d.ts +0 -2
  212. package/dist/api/utils/index.d.ts.map +0 -1
  213. package/dist/api/utils/pagination.d.mts +0 -32
  214. package/dist/api/utils/pagination.d.ts +0 -32
  215. package/dist/api/utils/pagination.d.ts.map +0 -1
  216. package/dist/chains/config/all-chains.d.mts +0 -4243
  217. package/dist/chains/config/all-chains.d.ts +0 -4243
  218. package/dist/chains/config/all-chains.d.ts.map +0 -1
  219. package/dist/chains/config/custom-chains.d.mts +0 -49
  220. package/dist/chains/config/custom-chains.d.ts +0 -49
  221. package/dist/chains/config/custom-chains.d.ts.map +0 -1
  222. package/dist/chains/config/mainnet-chains.d.mts +0 -1063
  223. package/dist/chains/config/mainnet-chains.d.ts +0 -1063
  224. package/dist/chains/config/mainnet-chains.d.ts.map +0 -1
  225. package/dist/chains/config/supported-chains.d.mts +0 -2172
  226. package/dist/chains/config/supported-chains.d.ts +0 -2172
  227. package/dist/chains/config/supported-chains.d.ts.map +0 -1
  228. package/dist/chains/config/testnet-chains.d.mts +0 -1110
  229. package/dist/chains/config/testnet-chains.d.ts +0 -1110
  230. package/dist/chains/config/testnet-chains.d.ts.map +0 -1
  231. package/dist/chains/lambda/chain-mapping.d.mts +0 -55
  232. package/dist/chains/lambda/chain-mapping.d.ts +0 -55
  233. package/dist/chains/lambda/chain-mapping.d.ts.map +0 -1
  234. package/dist/chains/lambda/index.d.mts +0 -2
  235. package/dist/chains/lambda/index.d.ts +0 -2
  236. package/dist/chains/lambda/index.d.ts.map +0 -1
  237. package/dist/chains/tokens/chain-tokens.d.mts +0 -6
  238. package/dist/chains/tokens/chain-tokens.d.ts +0 -6
  239. package/dist/chains/tokens/chain-tokens.d.ts.map +0 -1
  240. package/dist/chains/tokens/token-addresses.d.mts +0 -8
  241. package/dist/chains/tokens/token-addresses.d.ts +0 -8
  242. package/dist/chains/tokens/token-addresses.d.ts.map +0 -1
  243. package/dist/chains/tokens/token-metadata.d.mts +0 -5
  244. package/dist/chains/tokens/token-metadata.d.ts +0 -5
  245. package/dist/chains/tokens/token-metadata.d.ts.map +0 -1
  246. package/dist/chains/types.d.mts +0 -23
  247. package/dist/chains/types.d.ts +0 -23
  248. package/dist/chains/types.d.ts.map +0 -1
  249. package/dist/chains/utils/filter-tokens.d.mts +0 -3
  250. package/dist/chains/utils/filter-tokens.d.ts +0 -3
  251. package/dist/chains/utils/filter-tokens.d.ts.map +0 -1
  252. package/dist/chains/utils/stablecoin.d.mts +0 -7
  253. package/dist/chains/utils/stablecoin.d.ts +0 -7
  254. package/dist/chains/utils/stablecoin.d.ts.map +0 -1
  255. package/dist/chains/utils/token-maps.d.mts +0 -10
  256. package/dist/chains/utils/token-maps.d.ts +0 -10
  257. package/dist/chains/utils/token-maps.d.ts.map +0 -1
  258. package/dist/env.d.mts +0 -17
  259. package/dist/env.d.ts +0 -17
  260. package/dist/env.d.ts.map +0 -1
  261. package/dist/formatters/index.d.ts.map +0 -1
  262. package/dist/formatters/index.js.map +0 -7
  263. package/dist/formatters/index.mjs.map +0 -7
  264. package/dist/helpers/address.d.mts +0 -7
  265. package/dist/helpers/address.d.ts +0 -7
  266. package/dist/helpers/address.d.ts.map +0 -1
  267. package/dist/helpers/blockchain.d.mts +0 -41
  268. package/dist/helpers/blockchain.d.ts +0 -41
  269. package/dist/helpers/blockchain.d.ts.map +0 -1
  270. package/dist/helpers/date.d.mts +0 -70
  271. package/dist/helpers/date.d.ts +0 -70
  272. package/dist/helpers/date.d.ts.map +0 -1
  273. package/dist/helpers/datetime.d.mts +0 -57
  274. package/dist/helpers/datetime.d.ts +0 -57
  275. package/dist/helpers/datetime.d.ts.map +0 -1
  276. package/dist/helpers/domain.d.mts +0 -2
  277. package/dist/helpers/domain.d.ts +0 -2
  278. package/dist/helpers/domain.d.ts.map +0 -1
  279. package/dist/helpers/index.js.map +0 -7
  280. package/dist/helpers/index.mjs.map +0 -7
  281. package/dist/helpers/intl.d.mts +0 -20
  282. package/dist/helpers/intl.d.ts +0 -20
  283. package/dist/helpers/intl.d.ts.map +0 -1
  284. package/dist/helpers/logger.d.mts +0 -26
  285. package/dist/helpers/logger.d.ts +0 -26
  286. package/dist/helpers/logger.d.ts.map +0 -1
  287. package/dist/helpers/mask-options.d.mts +0 -10
  288. package/dist/helpers/mask-options.d.ts +0 -10
  289. package/dist/helpers/mask-options.d.ts.map +0 -1
  290. package/dist/helpers/num-formatter.d.mts +0 -3
  291. package/dist/helpers/num-formatter.d.ts +0 -3
  292. package/dist/helpers/num-formatter.d.ts.map +0 -1
  293. package/dist/helpers/polling.d.mts +0 -39
  294. package/dist/helpers/polling.d.ts +0 -39
  295. package/dist/helpers/polling.d.ts.map +0 -1
  296. package/dist/helpers/random.d.mts +0 -10
  297. package/dist/helpers/random.d.ts +0 -10
  298. package/dist/helpers/random.d.ts.map +0 -1
  299. package/dist/helpers/sdk-loader.d.mts +0 -25
  300. package/dist/helpers/sdk-loader.d.ts +0 -25
  301. package/dist/helpers/sdk-loader.d.ts.map +0 -1
  302. package/dist/helpers/signatures.d.mts +0 -17
  303. package/dist/helpers/signatures.d.ts +0 -17
  304. package/dist/helpers/signatures.d.ts.map +0 -1
  305. package/dist/helpers/string.d.mts +0 -17
  306. package/dist/helpers/string.d.ts +0 -17
  307. package/dist/helpers/string.d.ts.map +0 -1
  308. package/dist/helpers/types.d.mts +0 -39
  309. package/dist/helpers/types.d.ts +0 -39
  310. package/dist/helpers/types.d.ts.map +0 -1
  311. package/dist/helpers/url.d.mts +0 -11
  312. package/dist/helpers/url.d.ts +0 -11
  313. package/dist/helpers/url.d.ts.map +0 -1
  314. package/dist/helpers/window.d.mts +0 -37
  315. package/dist/helpers/window.d.ts +0 -37
  316. package/dist/helpers/window.d.ts.map +0 -1
  317. package/dist/helpers/zod.d.mts +0 -51
  318. package/dist/helpers/zod.d.ts +0 -51
  319. package/dist/helpers/zod.d.ts.map +0 -1
  320. package/dist/index.d.ts.map +0 -1
  321. package/dist/index.js.map +0 -7
  322. package/dist/index.mjs.map +0 -7
  323. package/dist/instructions/actions/index.d.mts +0 -5
  324. package/dist/instructions/actions/index.d.ts +0 -5
  325. package/dist/instructions/actions/index.d.ts.map +0 -1
  326. package/dist/instructions/actions/refuel/index.d.mts +0 -15
  327. package/dist/instructions/actions/refuel/index.d.ts +0 -15
  328. package/dist/instructions/actions/refuel/index.d.ts.map +0 -1
  329. package/dist/instructions/actions/swap/index.d.mts +0 -19
  330. package/dist/instructions/actions/swap/index.d.ts +0 -19
  331. package/dist/instructions/actions/swap/index.d.ts.map +0 -1
  332. package/dist/instructions/actions/sweep/index.d.mts +0 -16
  333. package/dist/instructions/actions/sweep/index.d.ts +0 -16
  334. package/dist/instructions/actions/sweep/index.d.ts.map +0 -1
  335. package/dist/instructions/actions/transfer/index.d.mts +0 -13
  336. package/dist/instructions/actions/transfer/index.d.ts +0 -13
  337. package/dist/instructions/actions/transfer/index.d.ts.map +0 -1
  338. package/dist/instructions/activate.d.mts +0 -84
  339. package/dist/instructions/activate.d.ts +0 -84
  340. package/dist/instructions/activate.d.ts.map +0 -1
  341. package/dist/instructions/build.d.mts +0 -146
  342. package/dist/instructions/build.d.ts +0 -146
  343. package/dist/instructions/build.d.ts.map +0 -1
  344. package/dist/instructions/constants.d.mts +0 -9
  345. package/dist/instructions/constants.d.ts +0 -9
  346. package/dist/instructions/constants.d.ts.map +0 -1
  347. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +0 -609
  348. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +0 -609
  349. package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +0 -1
  350. package/dist/instructions/types.d.mts +0 -289
  351. package/dist/instructions/types.d.ts +0 -289
  352. package/dist/instructions/types.d.ts.map +0 -1
  353. package/dist/payments/action-names.d.mts +0 -16
  354. package/dist/payments/action-names.d.ts +0 -16
  355. package/dist/payments/action-names.d.ts.map +0 -1
  356. package/dist/payments/actions/index.d.mts +0 -5
  357. package/dist/payments/actions/index.d.ts +0 -5
  358. package/dist/payments/actions/index.d.ts.map +0 -1
  359. package/dist/payments/actions/sweep-cctp.d.mts +0 -15
  360. package/dist/payments/actions/sweep-cctp.d.ts +0 -15
  361. package/dist/payments/actions/sweep-cctp.d.ts.map +0 -1
  362. package/dist/payments/actions/sweep-erc20.d.mts +0 -12
  363. package/dist/payments/actions/sweep-erc20.d.ts +0 -12
  364. package/dist/payments/actions/sweep-erc20.d.ts.map +0 -1
  365. package/dist/payments/actions/sweep-uniswap-v3.d.mts +0 -17
  366. package/dist/payments/actions/sweep-uniswap-v3.d.ts +0 -17
  367. package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +0 -1
  368. package/dist/payments/actions/sweep.d.mts +0 -12
  369. package/dist/payments/actions/sweep.d.ts +0 -12
  370. package/dist/payments/actions/sweep.d.ts.map +0 -1
  371. package/dist/payments/build.d.mts +0 -28
  372. package/dist/payments/build.d.ts +0 -28
  373. package/dist/payments/build.d.ts.map +0 -1
  374. package/dist/payments/chain-token-config-builder.d.mts +0 -10
  375. package/dist/payments/chain-token-config-builder.d.ts +0 -10
  376. package/dist/payments/chain-token-config-builder.d.ts.map +0 -1
  377. package/dist/payments/comprehensive-payment-request.d.mts +0 -26
  378. package/dist/payments/comprehensive-payment-request.d.ts +0 -26
  379. package/dist/payments/comprehensive-payment-request.d.ts.map +0 -1
  380. package/dist/payments/config/cctp.d.mts +0 -14
  381. package/dist/payments/config/cctp.d.ts +0 -14
  382. package/dist/payments/config/cctp.d.ts.map +0 -1
  383. package/dist/payments/config/index.d.mts +0 -3
  384. package/dist/payments/config/index.d.ts +0 -3
  385. package/dist/payments/config/index.d.ts.map +0 -1
  386. package/dist/payments/config/tokens.d.mts +0 -14
  387. package/dist/payments/config/tokens.d.ts +0 -14
  388. package/dist/payments/config/tokens.d.ts.map +0 -1
  389. package/dist/payments/instruction-registry.d.mts +0 -19
  390. package/dist/payments/instruction-registry.d.ts +0 -19
  391. package/dist/payments/instruction-registry.d.ts.map +0 -1
  392. package/dist/payments/payment-metadata-builder.d.mts +0 -56
  393. package/dist/payments/payment-metadata-builder.d.ts +0 -56
  394. package/dist/payments/payment-metadata-builder.d.ts.map +0 -1
  395. package/dist/payments/payment-metadata.d.mts +0 -15
  396. package/dist/payments/payment-metadata.d.ts +0 -15
  397. package/dist/payments/payment-metadata.d.ts.map +0 -1
  398. package/dist/payments/payment-request-token-resolver.d.mts +0 -25
  399. package/dist/payments/payment-request-token-resolver.d.ts +0 -25
  400. package/dist/payments/payment-request-token-resolver.d.ts.map +0 -1
  401. package/dist/payments/types.d.mts +0 -40
  402. package/dist/payments/types.d.ts +0 -40
  403. package/dist/payments/types.d.ts.map +0 -1
  404. package/dist/payments/validation.d.mts +0 -19
  405. package/dist/payments/validation.d.ts +0 -19
  406. package/dist/payments/validation.d.ts.map +0 -1
  407. package/dist/schemas/account.d.mts +0 -9
  408. package/dist/schemas/account.d.ts +0 -9
  409. package/dist/schemas/account.d.ts.map +0 -1
  410. package/dist/schemas/brand.d.mts +0 -7
  411. package/dist/schemas/brand.d.ts +0 -7
  412. package/dist/schemas/brand.d.ts.map +0 -1
  413. package/dist/schemas/contact.d.mts +0 -18
  414. package/dist/schemas/contact.d.ts +0 -18
  415. package/dist/schemas/contact.d.ts.map +0 -1
  416. package/dist/schemas/index.d.ts.map +0 -1
  417. package/dist/schemas/instruction.d.mts +0 -248
  418. package/dist/schemas/instruction.d.ts +0 -248
  419. package/dist/schemas/instruction.d.ts.map +0 -1
  420. package/dist/schemas/misc.d.mts +0 -36
  421. package/dist/schemas/misc.d.ts +0 -36
  422. package/dist/schemas/misc.d.ts.map +0 -1
  423. package/dist/schemas/payment.d.mts +0 -64
  424. package/dist/schemas/payment.d.ts +0 -64
  425. package/dist/schemas/payment.d.ts.map +0 -1
  426. package/dist/schemas/token.d.mts +0 -17
  427. package/dist/schemas/token.d.ts +0 -17
  428. package/dist/schemas/token.d.ts.map +0 -1
  429. package/dist/schemas/transaction.d.mts +0 -65
  430. package/dist/schemas/transaction.d.ts +0 -65
  431. package/dist/schemas/transaction.d.ts.map +0 -1
  432. package/dist/schemas/user.d.mts +0 -24
  433. package/dist/schemas/user.d.ts +0 -24
  434. package/dist/schemas/user.d.ts.map +0 -1
  435. package/dist/server/client.d.mts +0 -3
  436. package/dist/server/client.d.ts +0 -3
  437. package/dist/server/client.d.ts.map +0 -1
  438. package/dist/server/routes/account.d.mts +0 -4
  439. package/dist/server/routes/account.d.ts +0 -4
  440. package/dist/server/routes/account.d.ts.map +0 -1
  441. package/dist/server/routes/auth.d.mts +0 -28
  442. package/dist/server/routes/auth.d.ts +0 -28
  443. package/dist/server/routes/auth.d.ts.map +0 -1
  444. package/dist/server/routes/bridge.d.mts +0 -254
  445. package/dist/server/routes/bridge.d.ts +0 -254
  446. package/dist/server/routes/bridge.d.ts.map +0 -1
  447. package/dist/server/routes/config.d.mts +0 -3
  448. package/dist/server/routes/config.d.ts +0 -3
  449. package/dist/server/routes/config.d.ts.map +0 -1
  450. package/dist/server/routes/index.d.mts +0 -8
  451. package/dist/server/routes/index.d.ts +0 -8
  452. package/dist/server/routes/index.d.ts.map +0 -1
  453. package/dist/server/routes/instruction.d.mts +0 -4
  454. package/dist/server/routes/instruction.d.ts +0 -4
  455. package/dist/server/routes/instruction.d.ts.map +0 -1
  456. package/dist/server/routes/integration.d.mts +0 -4
  457. package/dist/server/routes/integration.d.ts +0 -4
  458. package/dist/server/routes/integration.d.ts.map +0 -1
  459. package/dist/server/routes/payments.d.mts +0 -5
  460. package/dist/server/routes/payments.d.ts +0 -5
  461. package/dist/server/routes/payments.d.ts.map +0 -1
  462. package/dist/server/routes/verify.d.mts +0 -3
  463. package/dist/server/routes/verify.d.ts +0 -3
  464. package/dist/server/routes/verify.d.ts.map +0 -1
  465. package/dist/wallet/wagmi/config.d.mts +0 -18
  466. package/dist/wallet/wagmi/config.d.ts +0 -18
  467. package/dist/wallet/wagmi/config.d.ts.map +0 -1
@@ -1,26 +0,0 @@
1
- interface LoggerOptions {
2
- context?: string;
3
- data?: unknown;
4
- }
5
- interface ErrorLogOptions {
6
- context?: string;
7
- operation?: string;
8
- metadata?: Record<string, unknown>;
9
- }
10
- declare class Logger {
11
- private isDevelopment;
12
- debug(message: string, options?: LoggerOptions): void;
13
- info(message: string, options?: LoggerOptions): void;
14
- warn(message: string, options?: LoggerOptions): void;
15
- error(message: string, options?: LoggerOptions): void;
16
- /**
17
- * Log errors with context - useful for non-API errors
18
- * For API errors, use the existing getErrorMessage from @otim/utils/api
19
- */
20
- logError(error: unknown, options?: ErrorLogOptions): void;
21
- private buildPrefix;
22
- private log;
23
- }
24
- export declare const logger: Logger;
25
- export {};
26
- //# sourceMappingURL=logger.d.ts.map
@@ -1,26 +0,0 @@
1
- interface LoggerOptions {
2
- context?: string;
3
- data?: unknown;
4
- }
5
- interface ErrorLogOptions {
6
- context?: string;
7
- operation?: string;
8
- metadata?: Record<string, unknown>;
9
- }
10
- declare class Logger {
11
- private isDevelopment;
12
- debug(message: string, options?: LoggerOptions): void;
13
- info(message: string, options?: LoggerOptions): void;
14
- warn(message: string, options?: LoggerOptions): void;
15
- error(message: string, options?: LoggerOptions): void;
16
- /**
17
- * Log errors with context - useful for non-API errors
18
- * For API errors, use the existing getErrorMessage from @otim/utils/api
19
- */
20
- logError(error: unknown, options?: ErrorLogOptions): void;
21
- private buildPrefix;
22
- private log;
23
- }
24
- export declare const logger: Logger;
25
- export {};
26
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/helpers/logger.ts"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,cAAM,MAAM;IACV,OAAO,CAAC,aAAa,CAAgC;IAErD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAMrD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIpD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIpD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIrD;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,IAAI;IA6B7D,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,GAAG;CAqBZ;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { MaskitoOptions } from "@maskito/core";
2
- export declare const postalCodeMaskOptions: MaskitoOptions;
3
- export declare const dateMaskOptions: Required<MaskitoOptions>;
4
- export declare const timeOptions: Required<MaskitoOptions>;
5
- export declare const timeOptionsWithoutMeridiem: Required<MaskitoOptions>;
6
- export declare const timeMaskOptionsHHMM: Required<MaskitoOptions>;
7
- export declare const formatUUID: (value: string) => string;
8
- export declare const uuidMaskOptions: MaskitoOptions;
9
- export declare const usdCurrencyMaskOptions: MaskitoOptions;
10
- //# sourceMappingURL=mask-options.d.ts.map
@@ -1,10 +0,0 @@
1
- import type { MaskitoOptions } from "@maskito/core";
2
- export declare const postalCodeMaskOptions: MaskitoOptions;
3
- export declare const dateMaskOptions: Required<MaskitoOptions>;
4
- export declare const timeOptions: Required<MaskitoOptions>;
5
- export declare const timeOptionsWithoutMeridiem: Required<MaskitoOptions>;
6
- export declare const timeMaskOptionsHHMM: Required<MaskitoOptions>;
7
- export declare const formatUUID: (value: string) => string;
8
- export declare const uuidMaskOptions: MaskitoOptions;
9
- export declare const usdCurrencyMaskOptions: MaskitoOptions;
10
- //# sourceMappingURL=mask-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask-options.d.ts","sourceRoot":"","sources":["../../src/helpers/mask-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAqBpD,eAAO,MAAM,qBAAqB,EAAE,cAMnC,CAAC;AAEF,eAAO,MAAM,eAAe,0BAG1B,CAAC;AAEH,eAAO,MAAM,WAAW,0BAEtB,CAAC;AAEH,eAAO,MAAM,0BAA0B,0BAErC,CAAC;AAEH,eAAO,MAAM,mBAAmB,0BAE9B,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAmF1C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAE7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cA8BpC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const numFormatter: (num: number, round?: number) => string | number;
2
- export declare const formatNumberAsUSStandard: (num: number) => string;
3
- //# sourceMappingURL=num-formatter.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare const numFormatter: (num: number, round?: number) => string | number;
2
- export declare const formatNumberAsUSStandard: (num: number) => string;
3
- //# sourceMappingURL=num-formatter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"num-formatter.d.ts","sourceRoot":"","sources":["../../src/helpers/num-formatter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,oBAkBvD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,WAInD,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { Nullable } from "./types";
2
- /**
3
- * Configuration for polling behavior
4
- */
5
- export interface PollingConfig {
6
- intervalMs?: number;
7
- onComplete?: () => void;
8
- }
9
- /**
10
- * Manages polling for emergent window completion status.
11
- * Generic utility that can be used for any async polling scenario.
12
- * Follows Single Responsibility Principle - only handles polling logic.
13
- */
14
- export declare class PollingManager {
15
- private emergentWindow;
16
- private pollIntervalId;
17
- private config;
18
- constructor(config?: PollingConfig);
19
- /**
20
- * Starts polling for the given check function
21
- *
22
- * @param emergentWindow - The emergent window to monitor (optional)
23
- * @param checkFn - Function that returns true when polling should stop
24
- */
25
- start(emergentWindow: Nullable<Window>, checkFn: () => Promise<boolean>): void;
26
- /**
27
- * Stops polling and cleans up resources
28
- */
29
- stop(): void;
30
- /**
31
- * Finalizes polling by closing emergent window, stopping interval, and returning focus
32
- */
33
- finalize(): void;
34
- /**
35
- * Cleans up resources
36
- */
37
- dispose(): void;
38
- }
39
- //# sourceMappingURL=polling.d.ts.map
@@ -1,39 +0,0 @@
1
- import type { Nullable } from "./types";
2
- /**
3
- * Configuration for polling behavior
4
- */
5
- export interface PollingConfig {
6
- intervalMs?: number;
7
- onComplete?: () => void;
8
- }
9
- /**
10
- * Manages polling for emergent window completion status.
11
- * Generic utility that can be used for any async polling scenario.
12
- * Follows Single Responsibility Principle - only handles polling logic.
13
- */
14
- export declare class PollingManager {
15
- private emergentWindow;
16
- private pollIntervalId;
17
- private config;
18
- constructor(config?: PollingConfig);
19
- /**
20
- * Starts polling for the given check function
21
- *
22
- * @param emergentWindow - The emergent window to monitor (optional)
23
- * @param checkFn - Function that returns true when polling should stop
24
- */
25
- start(emergentWindow: Nullable<Window>, checkFn: () => Promise<boolean>): void;
26
- /**
27
- * Stops polling and cleans up resources
28
- */
29
- stop(): void;
30
- /**
31
- * Finalizes polling by closing emergent window, stopping interval, and returning focus
32
- */
33
- finalize(): void;
34
- /**
35
- * Cleans up resources
36
- */
37
- dispose(): void;
38
- }
39
- //# sourceMappingURL=polling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polling.d.ts","sourceRoot":"","sources":["../../src/helpers/polling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAUD;;;;GAIG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,GAAE,aAAkB;IAItC;;;;;OAKG;IACH,KAAK,CACH,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,EAChC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAC9B,IAAI;IAqBP;;OAEG;IACH,IAAI,IAAI,IAAI;IAOZ;;OAEG;IACH,QAAQ,IAAI,IAAI;IAOhB;;OAEG;IACH,OAAO,IAAI,IAAI;CAGhB"}
@@ -1,10 +0,0 @@
1
- interface Range {
2
- min: number;
3
- max: number;
4
- }
5
- interface GenerateRandom extends Range {
6
- value: string;
7
- }
8
- export declare const randomNumber: (opts: GenerateRandom) => number;
9
- export {};
10
- //# sourceMappingURL=random.d.ts.map
@@ -1,10 +0,0 @@
1
- interface Range {
2
- min: number;
3
- max: number;
4
- }
5
- interface GenerateRandom extends Range {
6
- value: string;
7
- }
8
- export declare const randomNumber: (opts: GenerateRandom) => number;
9
- export {};
10
- //# sourceMappingURL=random.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/helpers/random.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,cAAe,SAAQ,KAAK;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,cAAc,KAAG,MAWnD,CAAC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Configuration for loading external SDK scripts
3
- */
4
- export interface SdkLoaderConfig {
5
- src: string;
6
- name: string;
7
- timeout?: number;
8
- }
9
- /**
10
- * Generic SDK loader utility for loading third-party scripts
11
- * Follows Single Responsibility Principle - only handles script loading
12
- *
13
- * @param config - SDK loader configuration
14
- * @returns Promise that resolves when SDK is loaded
15
- * @throws Error if SDK fails to load or times out
16
- */
17
- export declare function loadExternalSdk(config: SdkLoaderConfig): Promise<void>;
18
- /**
19
- * Checks if a script with the given src is already loaded
20
- *
21
- * @param src - Script source URL to check
22
- * @returns true if script is already in the DOM
23
- */
24
- export declare function isScriptLoaded(src: string): boolean;
25
- //# sourceMappingURL=sdk-loader.d.ts.map
@@ -1,25 +0,0 @@
1
- /**
2
- * Configuration for loading external SDK scripts
3
- */
4
- export interface SdkLoaderConfig {
5
- src: string;
6
- name: string;
7
- timeout?: number;
8
- }
9
- /**
10
- * Generic SDK loader utility for loading third-party scripts
11
- * Follows Single Responsibility Principle - only handles script loading
12
- *
13
- * @param config - SDK loader configuration
14
- * @returns Promise that resolves when SDK is loaded
15
- * @throws Error if SDK fails to load or times out
16
- */
17
- export declare function loadExternalSdk(config: SdkLoaderConfig): Promise<void>;
18
- /**
19
- * Checks if a script with the given src is already loaded
20
- *
21
- * @param src - Script source URL to check
22
- * @returns true if script is already in the DOM
23
- */
24
- export declare function isScriptLoaded(src: string): boolean;
25
- //# sourceMappingURL=sdk-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk-loader.d.ts","sourceRoot":"","sources":["../../src/helpers/sdk-loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAOD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC5E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAYnD"}
@@ -1,17 +0,0 @@
1
- /**
2
- * EIP-2098 Signature format (compact)
3
- */
4
- export interface EIP2098Signature {
5
- yParity: number;
6
- r: `0x${string}`;
7
- s: `0x${string}`;
8
- }
9
- /**
10
- * Converts a standard signature to EIP-2098 format
11
- */
12
- export declare const formatSignatureToEIP2098: (signature: {
13
- v: string;
14
- r: string;
15
- s: string;
16
- }) => EIP2098Signature;
17
- //# sourceMappingURL=signatures.d.ts.map
@@ -1,17 +0,0 @@
1
- /**
2
- * EIP-2098 Signature format (compact)
3
- */
4
- export interface EIP2098Signature {
5
- yParity: number;
6
- r: `0x${string}`;
7
- s: `0x${string}`;
8
- }
9
- /**
10
- * Converts a standard signature to EIP-2098 format
11
- */
12
- export declare const formatSignatureToEIP2098: (signature: {
13
- v: string;
14
- r: string;
15
- s: string;
16
- }) => EIP2098Signature;
17
- //# sourceMappingURL=signatures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/helpers/signatures.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACjB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,WAAW;IAClD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,KAAG,gBAkBH,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { Optional } from "./types";
2
- /**
3
- * Capitalizes the first letter of a string
4
- *
5
- * @param str – The string to capitalize
6
- * @returns The string with first letter capitalized, or undefined if input is
7
- * nullish
8
- */
9
- export declare const capitalize: (str?: string) => Optional<string>;
10
- /**
11
- * Converts a string to title case (capitalizes first letter, lowercase rest)
12
- *
13
- * @param str – The string to convert
14
- * @returns The string in title case, or undefined if input is nullish
15
- */
16
- export declare const toTitleCase: (str?: string) => Optional<string>;
17
- //# sourceMappingURL=string.d.ts.map
@@ -1,17 +0,0 @@
1
- import type { Optional } from "./types";
2
- /**
3
- * Capitalizes the first letter of a string
4
- *
5
- * @param str – The string to capitalize
6
- * @returns The string with first letter capitalized, or undefined if input is
7
- * nullish
8
- */
9
- export declare const capitalize: (str?: string) => Optional<string>;
10
- /**
11
- * Converts a string to title case (capitalizes first letter, lowercase rest)
12
- *
13
- * @param str – The string to convert
14
- * @returns The string in title case, or undefined if input is nullish
15
- */
16
- export declare const toTitleCase: (str?: string) => Optional<string>;
17
- //# sourceMappingURL=string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/helpers/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,QAAQ,CAAC,MAAM,CAGxD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,QAAQ,CAAC,MAAM,CAGzD,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { z, ZodObject } from "zod";
2
- export type Nullable<T> = T | null;
3
- export type Nullish<T> = T | null | undefined;
4
- export type Optional<T> = T | undefined;
5
- export type Any = any;
6
- export type NumberOrString = number | string;
7
- export type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
8
- export type NonEmptyArray<T> = [T, ...T[]];
9
- export interface DataRecord {
10
- [value: string]: Nullish<DataRecord | string | number | boolean>;
11
- }
12
- export interface Input<T> {
13
- input: T;
14
- }
15
- export type ZodCustom<Values extends object> = ZodObject<{
16
- [P in keyof Values]: z.ZodType<Values[P]>;
17
- }>;
18
- export declare const isError: (value: unknown) => value is Error;
19
- export declare const isFunction: (value: unknown) => value is (...args: unknown[]) => unknown;
20
- export declare const isObject: (value: unknown) => value is Record<string, unknown>;
21
- export declare const isNumber: (value: unknown) => value is number;
22
- export declare const isString: (value: unknown) => value is string;
23
- export declare const isUndefined: (value: unknown) => value is undefined;
24
- export declare const isBoolean: (value: unknown) => value is boolean;
25
- /**
26
- * Safely extracts a string from an unknown value.
27
- * @param value - The value to extract from
28
- * @param fallback - Optional fallback value if extraction fails
29
- * @returns The extracted string or fallback/undefined
30
- */
31
- export declare const extractString: (value: unknown, fallback?: string) => Optional<string>;
32
- /**
33
- * Safely extracts a number from an unknown value.
34
- * Handles both number and string representations.
35
- * @param value - The value to extract from
36
- * @returns The extracted number or undefined
37
- */
38
- export declare const extractNumber: (value: unknown) => Optional<number>;
39
- //# sourceMappingURL=types.d.ts.map
@@ -1,39 +0,0 @@
1
- import type { z, ZodObject } from "zod";
2
- export type Nullable<T> = T | null;
3
- export type Nullish<T> = T | null | undefined;
4
- export type Optional<T> = T | undefined;
5
- export type Any = any;
6
- export type NumberOrString = number | string;
7
- export type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
8
- export type NonEmptyArray<T> = [T, ...T[]];
9
- export interface DataRecord {
10
- [value: string]: Nullish<DataRecord | string | number | boolean>;
11
- }
12
- export interface Input<T> {
13
- input: T;
14
- }
15
- export type ZodCustom<Values extends object> = ZodObject<{
16
- [P in keyof Values]: z.ZodType<Values[P]>;
17
- }>;
18
- export declare const isError: (value: unknown) => value is Error;
19
- export declare const isFunction: (value: unknown) => value is (...args: unknown[]) => unknown;
20
- export declare const isObject: (value: unknown) => value is Record<string, unknown>;
21
- export declare const isNumber: (value: unknown) => value is number;
22
- export declare const isString: (value: unknown) => value is string;
23
- export declare const isUndefined: (value: unknown) => value is undefined;
24
- export declare const isBoolean: (value: unknown) => value is boolean;
25
- /**
26
- * Safely extracts a string from an unknown value.
27
- * @param value - The value to extract from
28
- * @param fallback - Optional fallback value if extraction fails
29
- * @returns The extracted string or fallback/undefined
30
- */
31
- export declare const extractString: (value: unknown, fallback?: string) => Optional<string>;
32
- /**
33
- * Safely extracts a number from an unknown value.
34
- * Handles both number and string representations.
35
- * @param value - The value to extract from
36
- * @returns The extracted number or undefined
37
- */
38
- export declare const extractNumber: (value: unknown) => Optional<number>;
39
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAExC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACnC,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAExC,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC;AAEtB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,WAAW,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,WAAW,CAAC,GACpE,WAAW,CAAC;AAEd,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,SAAS,CAAC,MAAM,SAAS,MAAM,IAAI,SAAS,CAAC;KACtD,CAAC,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC1C,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,KAC1B,CAAC;AAEzB,eAAO,MAAM,UAAU,GACrB,OAAO,OAAO,KACb,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAsC,CAAC;AAE3E,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAC5B,CAAC;AAE9C,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACxB,CAAC;AAE5B,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACxB,CAAC;AAE5B,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,SACxB,CAAC;AAE/B,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,OACxB,CAAC;AAE7B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,OAAO,EACd,WAAW,MAAM,KAChB,QAAQ,CAAC,MAAM,CAEjB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,QAAQ,CAAC,MAAM,CAW7D,CAAC"}
@@ -1,11 +0,0 @@
1
- export type QueryParams = Record<string, string | number | boolean | null | undefined>;
2
- /**
3
- * Builds a query string from a params object, skipping undefined/null values.
4
- * Encodes using encodeURIComponent. Returns empty string if no params.
5
- */
6
- export declare function buildQueryString(params: QueryParams): string;
7
- /**
8
- * Build a URL by combining a base path with optional query params.
9
- */
10
- export declare function buildUrl(path: string, params?: QueryParams): string;
11
- //# sourceMappingURL=url.d.ts.map
@@ -1,11 +0,0 @@
1
- export type QueryParams = Record<string, string | number | boolean | null | undefined>;
2
- /**
3
- * Builds a query string from a params object, skipping undefined/null values.
4
- * Encodes using encodeURIComponent. Returns empty string if no params.
5
- */
6
- export declare function buildQueryString(params: QueryParams): string;
7
- /**
8
- * Build a URL by combining a base path with optional query params.
9
- */
10
- export declare function buildUrl(path: string, params?: QueryParams): string;
11
- //# sourceMappingURL=url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/helpers/url.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAC9B,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAC7C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAQ5D;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAGnE"}
@@ -1,37 +0,0 @@
1
- import type { Nullable } from "./types";
2
- export declare const isClient: () => boolean;
3
- /**
4
- * Configuration for emergent window
5
- */
6
- export interface EmergentWindowConfig {
7
- width?: number;
8
- height?: number;
9
- name?: string;
10
- }
11
- /**
12
- * Opens an emergent window centered on the screen.
13
- * Used for authentication flows and external integrations.
14
- *
15
- * @param url - The URL to open in the emergent window
16
- * @param config - Optional configuration for the window
17
- * @returns The opened window or null if it failed
18
- */
19
- export declare function openCenteredEmergentWindow(url: string, config?: EmergentWindowConfig): Nullable<Window>;
20
- /**
21
- * Closes an emergent window safely
22
- *
23
- * @param emergentWindow - The emergent window to close
24
- */
25
- export declare function closeEmergentWindow(emergentWindow: Nullable<Window>): void;
26
- /**
27
- * Returns focus to the main window
28
- */
29
- export declare function focusMainWindow(): void;
30
- /**
31
- * Performs a client-side redirect to the specified path
32
- *
33
- * @param path - The path to redirect to
34
- * @param fallbackPath - Optional fallback path if the main path is empty
35
- */
36
- export declare function performRedirect(path: string, fallbackPath?: string): void;
37
- //# sourceMappingURL=window.d.ts.map
@@ -1,37 +0,0 @@
1
- import type { Nullable } from "./types";
2
- export declare const isClient: () => boolean;
3
- /**
4
- * Configuration for emergent window
5
- */
6
- export interface EmergentWindowConfig {
7
- width?: number;
8
- height?: number;
9
- name?: string;
10
- }
11
- /**
12
- * Opens an emergent window centered on the screen.
13
- * Used for authentication flows and external integrations.
14
- *
15
- * @param url - The URL to open in the emergent window
16
- * @param config - Optional configuration for the window
17
- * @returns The opened window or null if it failed
18
- */
19
- export declare function openCenteredEmergentWindow(url: string, config?: EmergentWindowConfig): Nullable<Window>;
20
- /**
21
- * Closes an emergent window safely
22
- *
23
- * @param emergentWindow - The emergent window to close
24
- */
25
- export declare function closeEmergentWindow(emergentWindow: Nullable<Window>): void;
26
- /**
27
- * Returns focus to the main window
28
- */
29
- export declare function focusMainWindow(): void;
30
- /**
31
- * Performs a client-side redirect to the specified path
32
- *
33
- * @param path - The path to redirect to
34
- * @param fallbackPath - Optional fallback path if the main path is empty
35
- */
36
- export declare function performRedirect(path: string, fallbackPath?: string): void;
37
- //# sourceMappingURL=window.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../src/helpers/window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,eAAO,MAAM,QAAQ,QAAO,OACiC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,oBAAyB,GAChC,QAAQ,CAAC,MAAM,CAAC,CAgDlB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAU1E;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAWtC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,YAAY,GAAE,MAAY,GACzB,IAAI,CAKN"}
@@ -1,51 +0,0 @@
1
- import type { ZodObject, ZodTypeAny } from "zod";
2
- import { z } from "zod";
3
- export type Validator<T> = (data: T, ctx: z.RefinementCtx) => void;
4
- export declare const composeValidators: <T>(validators: Validator<T>[]) => (data: T, ctx: z.RefinementCtx) => void;
5
- /**
6
- * creates a time unit validator for fields stored as JSON strings.
7
- * validates both the JSON format and the minimum seconds requirement.
8
- *
9
- * @param fieldName – the name of the field for error messages
10
- * @param options – configuration options
11
- * @param options.minSeconds – minimum seconds required (default: 60)
12
- * @param options.allowZero – whether to allow 0 seconds for "None" option (default: false)
13
- * @param options.useHumanReadable – whether to use human-readable time in error messages (default: true)
14
- */
15
- export declare const createTimeUnitValidator: (fieldName: string, options?: {
16
- minSeconds?: number;
17
- allowZero?: boolean;
18
- useHumanReadable?: boolean;
19
- }) => z.ZodOptional<z.ZodString>;
20
- /**
21
- * Parse the input values using the provided schema. If the input values are
22
- * invalid, throw a ResolverError.
23
- * @param values - The input values to parse.
24
- * @param schema - The schema to use to parse the input values.
25
- * @param error - The error code to use if the input values are invalid.
26
- * @returns The parsed input values.
27
- * @throws ResolverError if the input values are invalid.
28
- */
29
- export declare const parseSchema: <Values, Schema extends ZodTypeAny = ZodObject<{ [P in keyof Values]: z.ZodType<Values[P]>; }>>(values: Values, schema: Schema) => z.infer<Schema>;
30
- /**
31
- * Creates a permissive decimal string schema that allows empty strings.
32
- * Converts undefined/null values to empty strings, preventing "expected string, received undefined" errors.
33
- * Useful for form fields where validation happens in a refine step.
34
- */
35
- export declare const formDecimalStringSchema: () => z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
36
- /**
37
- * Creates a hex string schema with preprocessing that defaults to DEFAULT_ADDRESS.
38
- * Converts undefined/null/empty values to DEFAULT_ADDRESS before validation.
39
- * Useful for form fields that expect hex addresses.
40
- */
41
- export declare const formHexStringSchema: () => z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
42
- /**
43
- * Filters out Zod internal errors that shouldn't be shown to users.
44
- * Only returns user-friendly validation messages.
45
- *
46
- * @param errors - Array of error messages from Zod validation, or a single error string
47
- * @param fieldValue - The field value being validated
48
- * @returns User-friendly error message or undefined
49
- */
50
- export declare const getDisplayableZodError: (errors: string[] | string | undefined, fieldValue: unknown) => string | undefined;
51
- //# sourceMappingURL=zod.d.ts.map
@@ -1,51 +0,0 @@
1
- import type { ZodObject, ZodTypeAny } from "zod";
2
- import { z } from "zod";
3
- export type Validator<T> = (data: T, ctx: z.RefinementCtx) => void;
4
- export declare const composeValidators: <T>(validators: Validator<T>[]) => (data: T, ctx: z.RefinementCtx) => void;
5
- /**
6
- * creates a time unit validator for fields stored as JSON strings.
7
- * validates both the JSON format and the minimum seconds requirement.
8
- *
9
- * @param fieldName – the name of the field for error messages
10
- * @param options – configuration options
11
- * @param options.minSeconds – minimum seconds required (default: 60)
12
- * @param options.allowZero – whether to allow 0 seconds for "None" option (default: false)
13
- * @param options.useHumanReadable – whether to use human-readable time in error messages (default: true)
14
- */
15
- export declare const createTimeUnitValidator: (fieldName: string, options?: {
16
- minSeconds?: number;
17
- allowZero?: boolean;
18
- useHumanReadable?: boolean;
19
- }) => z.ZodOptional<z.ZodString>;
20
- /**
21
- * Parse the input values using the provided schema. If the input values are
22
- * invalid, throw a ResolverError.
23
- * @param values - The input values to parse.
24
- * @param schema - The schema to use to parse the input values.
25
- * @param error - The error code to use if the input values are invalid.
26
- * @returns The parsed input values.
27
- * @throws ResolverError if the input values are invalid.
28
- */
29
- export declare const parseSchema: <Values, Schema extends ZodTypeAny = ZodObject<{ [P in keyof Values]: z.ZodType<Values[P]>; }>>(values: Values, schema: Schema) => z.infer<Schema>;
30
- /**
31
- * Creates a permissive decimal string schema that allows empty strings.
32
- * Converts undefined/null values to empty strings, preventing "expected string, received undefined" errors.
33
- * Useful for form fields where validation happens in a refine step.
34
- */
35
- export declare const formDecimalStringSchema: () => z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
36
- /**
37
- * Creates a hex string schema with preprocessing that defaults to DEFAULT_ADDRESS.
38
- * Converts undefined/null/empty values to DEFAULT_ADDRESS before validation.
39
- * Useful for form fields that expect hex addresses.
40
- */
41
- export declare const formHexStringSchema: () => z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
42
- /**
43
- * Filters out Zod internal errors that shouldn't be shown to users.
44
- * Only returns user-friendly validation messages.
45
- *
46
- * @param errors - Array of error messages from Zod validation, or a single error string
47
- * @param fieldValue - The field value being validated
48
- * @returns User-friendly error message or undefined
49
- */
50
- export declare const getDisplayableZodError: (errors: string[] | string | undefined, fieldValue: unknown) => string | undefined;
51
- //# sourceMappingURL=zod.d.ts.map