@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,433 +1,390 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/schemas/index.ts
21
- var schemas_exports = {};
22
- __export(schemas_exports, {
23
- AccountType: () => AccountType,
24
- ContactSchema: () => ContactSchema,
25
- ContactsSchema: () => ContactsSchema,
26
- DATE_ISO_8601_REGEX: () => DATE_ISO_8601_REGEX,
27
- DATE_REGEX: () => DATE_REGEX,
28
- DATE_STANDARD_REGEX: () => DATE_STANDARD_REGEX,
29
- InstructionAction: () => InstructionAction,
30
- InstructionScheduleRepeatType: () => InstructionScheduleRepeatType,
31
- InstructionScheduleRetryType: () => InstructionScheduleRetryType,
32
- InstructionScheduleStartType: () => InstructionScheduleStartType,
33
- InstructionState: () => InstructionState,
34
- InstructionViewTimescale: () => InstructionViewTimescale,
35
- PaymentSource: () => PaymentSource,
36
- PaymentStatus: () => PaymentStatus,
37
- PaymentsSchema: () => PaymentsSchema,
38
- Sort: () => Sort,
39
- TIME_REGEX: () => TIME_REGEX,
40
- TimeUnit: () => TimeUnit,
41
- Token: () => Token,
42
- TokenValues: () => TokenValues,
43
- addressSchema: () => addressSchema,
44
- assertInstructionAction: () => assertInstructionAction,
45
- assertToken: () => assertToken,
46
- assertsOptionalToken: () => assertsOptionalToken,
47
- bigintSchema: () => bigintSchema,
48
- dateISO8601Schema: () => dateISO8601Schema,
49
- dateSchema: () => dateSchema,
50
- dateStandardSchema: () => dateStandardSchema,
51
- decimalStringSchema: () => decimalStringSchema,
52
- eip2098SignatureSchema: () => eip2098SignatureSchema,
53
- entityIdSchema: () => entityIdSchema,
54
- hexStringSchema: () => hexStringSchema,
55
- instructionActionSchema: () => instructionActionSchema,
56
- instructionActionValues: () => instructionActionValues,
57
- instructionExecutionStateSchema: () => instructionExecutionStateSchema,
58
- instructionIdSchema: () => instructionIdSchema,
59
- instructionScheduleRepeatSchema: () => instructionScheduleRepeatSchema,
60
- instructionScheduleRepeatValues: () => instructionScheduleRepeatValues,
61
- instructionScheduleRetrySchema: () => instructionScheduleRetrySchema,
62
- instructionScheduleRetryValues: () => instructionScheduleRetryValues,
63
- instructionScheduleStartSchema: () => instructionScheduleStartSchema,
64
- instructionScheduleStartValues: () => instructionScheduleStartValues,
65
- instructionSchema: () => instructionSchema,
66
- instructionStateSchema: () => instructionStateSchema,
67
- instructionStateValues: () => instructionStateValues,
68
- instructionSummariesByDateSchema: () => instructionSummariesByDateSchema,
69
- instructionSummariesSchema: () => instructionSummariesSchema,
70
- instructionSummarySchema: () => instructionSummarySchema,
71
- instructionViewTimescaleValues: () => instructionViewTimescaleValues,
72
- instructionsSchema: () => instructionsSchema,
73
- nonEmptyStringSchema: () => nonEmptyStringSchema,
74
- numberSchema: () => numberSchema,
75
- paymentRequestSourceValues: () => paymentRequestSourceValues,
76
- paymentSchema: () => paymentSchema,
77
- regexSchema: () => regexSchema,
78
- sortValues: () => sortValues,
79
- timeSchema: () => timeSchema,
80
- timeUnitSchema: () => timeUnitSchema,
81
- timeUnitValues: () => timeUnitValues,
82
- tokenSchema: () => tokenSchema,
83
- transactionSchema: () => transactionSchema,
84
- transactionWithValidAmountSchema: () => transactionWithValidAmountSchema,
85
- transactionsSchema: () => transactionsSchema,
86
- userPreferencesSchema: () => userPreferencesSchema,
87
- userSchema: () => userSchema,
88
- vrsSchema: () => vrsSchema
89
- });
90
- module.exports = __toCommonJS(schemas_exports);
1
+ const require_chunk = require('../chunk-kSYXY2_d.js');
2
+ let zod = require("zod");
91
3
 
92
- // src/schemas/account.ts
93
- var AccountType = {
94
- Otim: "otim",
95
- Bank: "bank",
96
- Ephemeral: "ephemeral",
97
- Custodian: "custodian",
98
- Wallet: "wallet"
4
+ //#region src/schemas/account.ts
5
+ const AccountType = {
6
+ Otim: "otim",
7
+ Bank: "bank",
8
+ Ephemeral: "ephemeral",
9
+ Custodian: "custodian",
10
+ Wallet: "wallet"
11
+ };
12
+ const AccountConnectionStatus = {
13
+ Connected: "connected",
14
+ Disconnected: "disconnected",
15
+ Connecting: "connecting",
16
+ Reconnecting: "reconnecting"
99
17
  };
100
18
 
101
- // src/schemas/contact.ts
102
- var import_zod = require("zod");
103
- var ContactSchema = import_zod.z.object({
104
- userId: import_zod.z.string(),
105
- name: import_zod.z.string(),
106
- address: import_zod.z.string(),
107
- createdAt: import_zod.z.string(),
108
- updatedAt: import_zod.z.string()
19
+ //#endregion
20
+ //#region src/schemas/contact.ts
21
+ const ContactSchema = zod.z.object({
22
+ userId: zod.z.string(),
23
+ name: zod.z.string(),
24
+ address: zod.z.string(),
25
+ createdAt: zod.z.string(),
26
+ updatedAt: zod.z.string()
109
27
  });
110
- var ContactsSchema = import_zod.z.array(ContactSchema);
111
-
112
- // src/schemas/instruction.ts
113
- var import_zod3 = require("zod");
28
+ const ContactsSchema = zod.z.array(ContactSchema);
114
29
 
115
- // src/schemas/misc.ts
116
- var import_zod2 = require("zod");
117
- var DATE_REGEX = /^(19|20)\d{2}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;
118
- var DATE_ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
119
- var DATE_STANDARD_REGEX = /^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d{2}$/;
120
- var TIME_REGEX = /^(0[1-9]|1[0-2]):[0-5][0-9]:[0-5][0-9] (AM|PM)$/;
121
- var regexSchema = (regex, message) => import_zod2.z.string().regex(regex, message);
122
- var nonEmptyStringSchema = import_zod2.z.string().min(1);
123
- var numberSchema = import_zod2.z.union([
124
- import_zod2.z.number().finite(),
125
- import_zod2.z.string().regex(/^-?\d*\.?\d+(?:[eE][-+]?\d+)?$/).transform(Number)
126
- ]);
127
- var decimalStringSchema = import_zod2.z.string().regex(/^-?\d*\.?\d+$/).refine((val) => !isNaN(parseFloat(val)), {
128
- message: "Must be a valid decimal number"
129
- });
130
- var bigintSchema = import_zod2.z.union([
131
- import_zod2.z.bigint(),
132
- import_zod2.z.string().regex(/^-?\d+$/).transform(BigInt)
133
- ]);
134
- var hexStringSchema = import_zod2.z.string().startsWith("0x").transform((val) => val);
135
- var dateSchema = regexSchema(DATE_REGEX);
136
- var dateISO8601Schema = regexSchema(DATE_ISO_8601_REGEX);
137
- var dateStandardSchema = regexSchema(DATE_STANDARD_REGEX);
138
- var timeSchema = regexSchema(TIME_REGEX);
139
- var Sort = {
140
- Asc: "asc",
141
- Desc: "desc"
30
+ //#endregion
31
+ //#region src/schemas/misc.ts
32
+ const DATE_REGEX = /^(19|20)\d{2}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;
33
+ const DATE_ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
34
+ const DATE_STANDARD_REGEX = /^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d{2}$/;
35
+ const TIME_REGEX = /^(0[1-9]|1[0-2]):[0-5][0-9]:[0-5][0-9] (AM|PM)$/;
36
+ const regexSchema = (regex, message) => zod.z.string().regex(regex, message);
37
+ const nonEmptyStringSchema = zod.z.string().min(1);
38
+ const numberSchema = zod.z.union([zod.z.number().finite(), zod.z.string().regex(/^-?\d*\.?\d+(?:[eE][-+]?\d+)?$/).transform(Number)]);
39
+ const decimalStringSchema = zod.z.string().regex(/^-?\d*\.?\d+$/).refine((val) => !isNaN(parseFloat(val)), { message: "Must be a valid decimal number" });
40
+ const bigintSchema = zod.z.union([zod.z.bigint(), zod.z.string().regex(/^-?\d+$/).transform(BigInt)]);
41
+ const hexStringSchema = zod.z.string().startsWith("0x").transform((val) => val);
42
+ const chainIdSchema = zod.z.number().positive();
43
+ const dateSchema = regexSchema(DATE_REGEX);
44
+ const dateISO8601Schema = regexSchema(DATE_ISO_8601_REGEX);
45
+ const dateStandardSchema = regexSchema(DATE_STANDARD_REGEX);
46
+ const timeSchema = regexSchema(TIME_REGEX);
47
+ const Sort = {
48
+ Asc: "asc",
49
+ Desc: "desc"
142
50
  };
143
- var sortValues = Object.values(Sort);
144
- var vrsSchema = import_zod2.z.object({
145
- v: import_zod2.z.number(),
146
- r: import_zod2.z.string(),
147
- s: import_zod2.z.string()
51
+ const sortValues = Object.values(Sort);
52
+ const vrsSchema = zod.z.object({
53
+ v: zod.z.number(),
54
+ r: zod.z.string(),
55
+ s: zod.z.string()
148
56
  });
149
- var eip2098SignatureSchema = import_zod2.z.object({
150
- yParity: import_zod2.z.number(),
151
- r: import_zod2.z.string(),
152
- s: import_zod2.z.string()
57
+ const eip2098SignatureSchema = zod.z.object({
58
+ yParity: zod.z.number(),
59
+ r: zod.z.string(),
60
+ s: zod.z.string()
153
61
  });
154
62
 
155
- // src/schemas/instruction.ts
156
- var instructionIdSchema = hexStringSchema;
157
- var InstructionState = {
158
- PendingActivation: "PendingActivation",
159
- Active: "Active",
160
- PendingDeactivation: "PendingDeactivation",
161
- Deactivated: "Deactivated",
162
- Errored: "Errored",
163
- Completed: "Completed",
164
- UserNotDelegated: "UserNotDelegated",
165
- InFlight: "InFlight",
166
- NotifyUser: "NotifyUser"
63
+ //#endregion
64
+ //#region src/schemas/instruction.ts
65
+ const instructionIdSchema = hexStringSchema;
66
+ const InstructionState = {
67
+ PendingActivation: "PendingActivation",
68
+ Active: "Active",
69
+ PendingDeactivation: "PendingDeactivation",
70
+ Deactivated: "Deactivated",
71
+ Errored: "Errored",
72
+ Completed: "Completed",
73
+ UserNotDelegated: "UserNotDelegated",
74
+ InFlight: "InFlight",
75
+ NotifyUser: "NotifyUser"
167
76
  };
168
- var instructionStateValues = Object.values(InstructionState);
169
- var instructionStateSchema = import_zod3.z.enum(instructionStateValues);
170
- var InstructionAction = {
171
- RefuelERC20: "refuelERC20",
172
- Refuel: "refuel",
173
- Transfer: "transfer",
174
- TransferERC20: "transferERC20",
175
- UniswapV3ExactInput: "uniswapV3ExactInput",
176
- Sweep: "sweep",
177
- SweepERC20: "sweepERC20",
178
- SweepCCTP: "sweepCCTP",
179
- SweepUniswapV3: "sweepUniswapV3",
180
- SweepDepositAccount: "sweepDepositAccount",
181
- SweepDepositAccountERC20: "sweepDepositAccountERC20",
182
- DeactivateInstruction: "deactivateInstruction",
183
- SweepSkipCCTPDepositAccount: "sweepSkipCCTPDepositAccount"
77
+ const instructionStateValues = Object.values(InstructionState);
78
+ const instructionStateSchema = zod.z.enum(instructionStateValues);
79
+ const InstructionAction = {
80
+ Refuel: "Refuel",
81
+ RefuelERC20: "RefuelERC20",
82
+ Transfer: "Transfer",
83
+ TransferERC20: "TransferERC20",
84
+ TransferCCTP: "TransferCCTP",
85
+ UniswapV3ExactInput: "UniswapV3ExactInput",
86
+ Sweep: "Sweep",
87
+ SweepERC20: "SweepERC20",
88
+ SweepCCTP: "SweepCCTP",
89
+ SweepUniswapV3: "SweepUniswapV3",
90
+ DeactivateInstruction: "DeactivateInstruction",
91
+ SweepSkipCCTPDepositAccount: "SweepSkipCCTPDepositAccount",
92
+ DepositERC4626: "DepositERC4626",
93
+ SweepDepositERC4626: "SweepDepositERC4626",
94
+ WithdrawERC4626: "WithdrawERC4626",
95
+ SweepWithdrawERC4626: "SweepWithdrawERC4626",
96
+ SweepDepositAccount: "SweepDepositAccount",
97
+ SweepDepositAccountERC20: "SweepDepositAccountERC20",
98
+ CallOnce: "CallOnce"
184
99
  };
185
- var instructionActionValues = Object.values(InstructionAction);
186
- var instructionActionSchema = import_zod3.z.enum(instructionActionValues);
187
- var InstructionScheduleStartType = {
188
- Now: "now",
189
- DateTime: "datetime"
100
+ const instructionActionValues = Object.values(InstructionAction);
101
+ const instructionActionSchema = zod.z.enum(instructionActionValues);
102
+ const InstructionScheduleStartType = {
103
+ Now: "now",
104
+ DateTime: "datetime"
190
105
  };
191
- var instructionScheduleStartValues = Object.values(
192
- InstructionScheduleStartType
193
- );
194
- var baseStartSchema = import_zod3.z.object({
195
- type: import_zod3.z.enum(instructionScheduleStartValues)
106
+ const instructionScheduleStartValues = Object.values(InstructionScheduleStartType);
107
+ const baseStartSchema = zod.z.object({ type: zod.z.enum(instructionScheduleStartValues) });
108
+ const nowStartSchema = baseStartSchema.extend({ type: zod.z.literal(InstructionScheduleStartType.Now) });
109
+ const dateTimeStartSchema = baseStartSchema.extend({
110
+ type: zod.z.literal(InstructionScheduleStartType.DateTime),
111
+ startDate: dateStandardSchema,
112
+ startTime: zod.z.string()
196
113
  });
197
- var nowStartSchema = baseStartSchema.extend({
198
- type: import_zod3.z.literal(InstructionScheduleStartType.Now)
199
- });
200
- var dateTimeStartSchema = baseStartSchema.extend({
201
- type: import_zod3.z.literal(InstructionScheduleStartType.DateTime),
202
- startDate: dateStandardSchema,
203
- startTime: import_zod3.z.string()
204
- });
205
- var instructionScheduleStartSchema = import_zod3.z.discriminatedUnion("type", [
206
- nowStartSchema,
207
- dateTimeStartSchema
208
- ]);
209
- var InstructionScheduleRepeatType = {
210
- UntilDeactivated: "until-deactivated",
211
- MaxExecutions: "max-executions"
114
+ const instructionScheduleStartSchema = zod.z.discriminatedUnion("type", [nowStartSchema, dateTimeStartSchema]);
115
+ const InstructionScheduleRepeatType = {
116
+ UntilDeactivated: "until-deactivated",
117
+ MaxExecutions: "max-executions"
212
118
  };
213
- var instructionScheduleRepeatValues = Object.values(
214
- InstructionScheduleRepeatType
215
- );
216
- var baseRepeatSchema = import_zod3.z.object({});
217
- var untilDeactivatedRepeatSchema = baseRepeatSchema.extend({
218
- type: import_zod3.z.literal(InstructionScheduleRepeatType.UntilDeactivated)
219
- });
220
- var maxExecutionsRepeatSchema = baseRepeatSchema.extend({
221
- type: import_zod3.z.literal(InstructionScheduleRepeatType.MaxExecutions),
222
- maxExecutions: numberSchema
119
+ const instructionScheduleRepeatValues = Object.values(InstructionScheduleRepeatType);
120
+ const baseRepeatSchema = zod.z.object({});
121
+ const untilDeactivatedRepeatSchema = baseRepeatSchema.extend({ type: zod.z.literal(InstructionScheduleRepeatType.UntilDeactivated) });
122
+ const maxExecutionsRepeatSchema = baseRepeatSchema.extend({
123
+ type: zod.z.literal(InstructionScheduleRepeatType.MaxExecutions),
124
+ maxExecutions: numberSchema
223
125
  });
224
- var instructionScheduleRepeatSchema = import_zod3.z.discriminatedUnion("type", [
225
- untilDeactivatedRepeatSchema,
226
- maxExecutionsRepeatSchema
227
- ]);
228
- var InstructionScheduleRetryType = {
229
- UntilDeactivated: "until-deactivated",
230
- TimeLimited: "time-limited"
126
+ const instructionScheduleRepeatSchema = zod.z.discriminatedUnion("type", [untilDeactivatedRepeatSchema, maxExecutionsRepeatSchema]);
127
+ const InstructionScheduleRetryType = {
128
+ UntilDeactivated: "until-deactivated",
129
+ TimeLimited: "time-limited"
231
130
  };
232
- var instructionScheduleRetryValues = Object.values(
233
- InstructionScheduleRetryType
234
- );
235
- var baseRetrySchema = import_zod3.z.object({});
236
- var untilDeactivatedRetrySchema = baseRetrySchema.extend({
237
- type: import_zod3.z.literal(InstructionScheduleRetryType.UntilDeactivated)
131
+ const instructionScheduleRetryValues = Object.values(InstructionScheduleRetryType);
132
+ const baseRetrySchema = zod.z.object({});
133
+ const untilDeactivatedRetrySchema = baseRetrySchema.extend({ type: zod.z.literal(InstructionScheduleRetryType.UntilDeactivated) });
134
+ const timeLimitedRetrySchema = baseRetrySchema.extend({
135
+ type: zod.z.literal(InstructionScheduleRetryType.TimeLimited),
136
+ retryCount: numberSchema
238
137
  });
239
- var timeLimitedRetrySchema = baseRetrySchema.extend({
240
- type: import_zod3.z.literal(InstructionScheduleRetryType.TimeLimited),
241
- retryCount: numberSchema
242
- });
243
- var instructionScheduleRetrySchema = import_zod3.z.discriminatedUnion("type", [
244
- untilDeactivatedRetrySchema,
245
- timeLimitedRetrySchema
246
- ]);
247
- var TimeUnit = {
248
- None: "none",
249
- Second: "second",
250
- Minute: "minute",
251
- Hour: "hour",
252
- Day: "day",
253
- Week: "week",
254
- Month: "month"
138
+ const instructionScheduleRetrySchema = zod.z.discriminatedUnion("type", [untilDeactivatedRetrySchema, timeLimitedRetrySchema]);
139
+ const TimeUnit = {
140
+ None: "none",
141
+ Second: "second",
142
+ Minute: "minute",
143
+ Hour: "hour",
144
+ Day: "day",
145
+ Week: "week",
146
+ Month: "month"
255
147
  };
256
- var timeUnitValues = Object.values(TimeUnit);
257
- var timeUnitSchema = import_zod3.z.enum(timeUnitValues);
258
- var instructionExecutionStateSchema = import_zod3.z.object({
259
- executionStatus: instructionStateSchema.optional(),
260
- executionCounter: import_zod3.z.number().int().optional(),
261
- lastExecuted: import_zod3.z.number().int().optional()
148
+ const timeUnitValues = Object.values(TimeUnit);
149
+ const timeUnitSchema = zod.z.enum(timeUnitValues);
150
+ const instructionExecutionStateRawSchema = zod.z.object({
151
+ execution_status: instructionStateSchema.optional(),
152
+ execution_counter: zod.z.number().int().optional(),
153
+ last_executed: zod.z.number().int().optional()
262
154
  });
263
- var instructionSchema = import_zod3.z.object({
264
- instructionId: hexStringSchema,
265
- createdAt: import_zod3.z.number().optional(),
266
- startAt: import_zod3.z.string().nullish(),
267
- interval: import_zod3.z.number().nullish(),
268
- timeout: import_zod3.z.number().nullish(),
269
- maxExecutions: import_zod3.z.number().nullish(),
270
- executionState: instructionExecutionStateSchema.optional(),
271
- actionName: import_zod3.z.string().optional(),
272
- arguments: import_zod3.z.any(),
273
- nickname: import_zod3.z.string().nullish(),
274
- lastInstructedValue: import_zod3.z.string().optional(),
275
- lastErrorCode: import_zod3.z.number().nullish(),
276
- lastErrorMessage: import_zod3.z.string().nullish(),
277
- totalInstructedValue: import_zod3.z.string().optional(),
278
- instructedTokenAddress: hexStringSchema.nullish(),
279
- chainId: import_zod3.z.number().nullish(),
280
- chain: import_zod3.z.string().optional()
155
+ const instructionExecutionStateSchema = instructionExecutionStateRawSchema.transform((data) => ({
156
+ executionStatus: data.execution_status,
157
+ executionCounter: data.execution_counter,
158
+ lastExecuted: data.last_executed
159
+ }));
160
+ const instructionSchema = zod.z.object({
161
+ instructionId: hexStringSchema,
162
+ createdAt: zod.z.number().optional(),
163
+ startAt: zod.z.string().nullish(),
164
+ interval: zod.z.number().nullish(),
165
+ timeout: zod.z.number().nullish(),
166
+ maxExecutions: zod.z.number().nullish(),
167
+ executionState: instructionExecutionStateSchema,
168
+ actionName: zod.z.string().optional(),
169
+ arguments: zod.z.any(),
170
+ nickname: zod.z.string().nullish(),
171
+ lastInstructedValue: zod.z.string().optional(),
172
+ lastErrorCode: zod.z.number().nullish(),
173
+ lastErrorMessage: zod.z.string().nullish(),
174
+ totalInstructedValue: zod.z.string().optional(),
175
+ instructedTokenAddress: hexStringSchema.nullish(),
176
+ chainId: zod.z.number().nullish(),
177
+ chain: zod.z.string().optional()
281
178
  });
282
- var instructionsSchema = import_zod3.z.array(instructionSchema);
283
- var instructionSummarySchema = import_zod3.z.object({
284
- instructionId: hexStringSchema,
285
- chainId: import_zod3.z.number().int(),
286
- executionCount: import_zod3.z.number().int(),
287
- onTimeCount: import_zod3.z.number().int(),
288
- lateCount: import_zod3.z.number().int(),
289
- wasActivatedDuring: import_zod3.z.boolean(),
290
- amount: import_zod3.z.number().default(0),
291
- instructedValue: import_zod3.z.string().nullish().default("0"),
292
- instructedTokenAddress: import_zod3.z.string().nullish().default(null)
179
+ const instructionsSchema = zod.z.array(instructionSchema);
180
+ const instructionSummarySchema = zod.z.object({
181
+ instructionId: hexStringSchema,
182
+ chainId: zod.z.number().int(),
183
+ executionCount: zod.z.number().int(),
184
+ onTimeCount: zod.z.number().int(),
185
+ lateCount: zod.z.number().int(),
186
+ wasActivatedDuring: zod.z.boolean(),
187
+ amount: zod.z.number().default(0),
188
+ instructedValue: zod.z.string().nullish().default("0"),
189
+ instructedTokenAddress: zod.z.string().nullish().default(null)
293
190
  });
294
- var instructionSummariesSchema = import_zod3.z.array(instructionSummarySchema);
295
- var instructionSummariesByDateSchema = import_zod3.z.record(
296
- import_zod3.z.string(),
297
- instructionSummariesSchema
298
- );
299
- var InstructionViewTimescale = {
300
- Days: "days",
301
- Hours: "hours",
302
- Minutes: "minutes",
303
- Seconds: "seconds"
191
+ const instructionSummariesSchema = zod.z.array(instructionSummarySchema);
192
+ const instructionSummariesByDateSchema = zod.z.record(zod.z.string(), instructionSummariesSchema);
193
+ const InstructionViewTimescale = {
194
+ Days: "days",
195
+ Hours: "hours",
196
+ Minutes: "minutes",
197
+ Seconds: "seconds"
304
198
  };
305
- var instructionViewTimescaleValues = Object.values(
306
- InstructionViewTimescale
307
- );
199
+ const instructionViewTimescaleValues = Object.values(InstructionViewTimescale);
308
200
  function assertInstructionAction(action) {
309
- if (!instructionActionValues.includes(action)) {
310
- throw new Error(`Invalid instruction action: ${action}`);
311
- }
201
+ if (!instructionActionValues.includes(action)) throw new Error(`Invalid instruction action: ${action}`);
312
202
  }
313
203
 
314
- // src/schemas/payment.ts
315
- var import_zod4 = require("zod");
316
- var PaymentStatus = {
317
- Due: "due",
318
- NotDue: "not-due",
319
- Paid: "paid"
204
+ //#endregion
205
+ //#region src/schemas/payment.ts
206
+ const PaymentStatus = {
207
+ Due: "due",
208
+ NotDue: "not-due",
209
+ Paid: "paid"
320
210
  };
321
- var PaymentSource = {
322
- Bill: "Bill",
323
- Stripe: "Stripe",
324
- Clio: "Clio",
325
- QuickBooks: "QuickBooks"
211
+ const PaymentSource = {
212
+ Bill: "Bill",
213
+ Stripe: "Stripe",
214
+ Clio: "Clio",
215
+ QuickBooks: "QuickBooks"
326
216
  };
327
- var paymentRequestSourceValues = [
328
- PaymentSource.Bill,
329
- PaymentSource.Stripe,
330
- PaymentSource.Clio,
331
- PaymentSource.QuickBooks
217
+ const paymentRequestSourceValues = [
218
+ PaymentSource.Bill,
219
+ PaymentSource.Stripe,
220
+ PaymentSource.Clio,
221
+ PaymentSource.QuickBooks
332
222
  ];
333
- var paymentSchema = import_zod4.z.object({
334
- id: import_zod4.z.string(),
335
- fromUserId: import_zod4.z.string().nullable().optional(),
336
- toUserId: import_zod4.z.string().nullable().optional(),
337
- payerAddress: import_zod4.z.string().nullable().optional(),
338
- ephemeralWalletAddress: import_zod4.z.string(),
339
- ephemeralWalletId: import_zod4.z.string().optional(),
340
- instructions: import_zod4.z.object({
341
- ids: import_zod4.z.array(import_zod4.z.string()),
342
- completionIds: import_zod4.z.array(import_zod4.z.string())
343
- }).optional(),
344
- metadata: import_zod4.z.record(import_zod4.z.string(), import_zod4.z.unknown()).optional(),
345
- // UI-derived fields
346
- status: import_zod4.z.union([
347
- import_zod4.z.literal(PaymentStatus.Due),
348
- import_zod4.z.literal(PaymentStatus.NotDue),
349
- import_zod4.z.literal(PaymentStatus.Paid)
350
- ]),
351
- dueDate: import_zod4.z.string(),
352
- amountDue: import_zod4.z.number(),
353
- note: import_zod4.z.string().nullable().optional(),
354
- address: import_zod4.z.string().nullable().optional(),
355
- addedOn: import_zod4.z.string(),
356
- source: import_zod4.z.union([
357
- import_zod4.z.literal(PaymentSource.Bill),
358
- import_zod4.z.literal(PaymentSource.Stripe),
359
- import_zod4.z.literal(PaymentSource.Clio),
360
- import_zod4.z.literal(PaymentSource.QuickBooks)
361
- ]).nullish(),
362
- attachmentUrl: import_zod4.z.string().url().nullable().optional(),
363
- attachmentName: import_zod4.z.string().nullable().optional(),
364
- fromAccountAddress: import_zod4.z.string().nullable().optional()
223
+ const paymentSchema = zod.z.object({
224
+ id: zod.z.string(),
225
+ fromUserId: zod.z.string().nullable().optional(),
226
+ toUserId: zod.z.string().nullable().optional(),
227
+ payerAddress: zod.z.string().nullable().optional(),
228
+ ephemeralWalletAddress: zod.z.string(),
229
+ ephemeralWalletId: zod.z.string().optional(),
230
+ instructions: zod.z.object({
231
+ ids: zod.z.array(zod.z.string()),
232
+ completionIds: zod.z.array(zod.z.string())
233
+ }).optional(),
234
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
235
+ status: zod.z.union([
236
+ zod.z.literal(PaymentStatus.Due),
237
+ zod.z.literal(PaymentStatus.NotDue),
238
+ zod.z.literal(PaymentStatus.Paid)
239
+ ]),
240
+ dueDate: zod.z.string(),
241
+ amountDue: zod.z.number(),
242
+ note: zod.z.string().nullable().optional(),
243
+ address: zod.z.string().nullable().optional(),
244
+ addedOn: zod.z.string(),
245
+ source: zod.z.union([
246
+ zod.z.literal(PaymentSource.Bill),
247
+ zod.z.literal(PaymentSource.Stripe),
248
+ zod.z.literal(PaymentSource.Clio),
249
+ zod.z.literal(PaymentSource.QuickBooks)
250
+ ]).nullish(),
251
+ attachmentUrl: zod.z.string().url().nullable().optional(),
252
+ attachmentName: zod.z.string().nullable().optional(),
253
+ fromAccountAddress: zod.z.string().nullable().optional()
365
254
  });
366
- var PaymentsSchema = import_zod4.z.array(paymentSchema);
255
+ const PaymentsSchema = zod.z.array(paymentSchema);
367
256
 
368
- // src/schemas/token.ts
369
- var import_zod5 = require("zod");
370
- var Token = {
371
- ETH: "ETH",
372
- USDC: "USDC",
373
- USDT: "USDT"
257
+ //#endregion
258
+ //#region src/schemas/token.ts
259
+ const Token = {
260
+ ETH: "ETH",
261
+ USDC: "USDC",
262
+ USDT: "USDT"
374
263
  };
375
- var TokenValues = Object.values(Token);
376
- var tokenSchema = import_zod5.z.enum(TokenValues);
264
+ const TokenValues = Object.values(Token);
265
+ const tokenSchema = zod.z.enum(TokenValues);
377
266
  function assertToken(token) {
378
- if (!TokenValues.includes(token)) {
379
- throw new Error(`Invalid token: ${token}`);
380
- }
267
+ if (!TokenValues.includes(token)) throw new Error(`Invalid token: ${token}`);
381
268
  }
382
269
  function assertsOptionalToken(token) {
383
- if (token !== void 0) {
384
- assertToken(token);
385
- }
270
+ if (token !== void 0) assertToken(token);
386
271
  }
387
272
 
388
- // src/schemas/transaction.ts
389
- var import_zod6 = require("zod");
390
- var transactionSchema = import_zod6.z.object({
391
- instructionId: instructionIdSchema,
392
- transactionHash: hexStringSchema.optional(),
393
- blockHash: import_zod6.z.string().nullable(),
394
- transactionStatus: import_zod6.z.string(),
395
- error: import_zod6.z.string().nullish(),
396
- startedAt: import_zod6.z.string(),
397
- startedAtBlock: import_zod6.z.number(),
398
- finishedAt: import_zod6.z.string().nullable(),
399
- finishedAtBlock: import_zod6.z.number().nullable(),
400
- amount: import_zod6.z.object({ value: import_zod6.z.number(), token: import_zod6.z.string() }).nullish(),
401
- instructedValue: import_zod6.z.string(),
402
- instructedTokenAddress: import_zod6.z.string().nullable(),
403
- executionNum: import_zod6.z.number(),
404
- chainId: import_zod6.z.number().nullish(),
405
- chain: import_zod6.z.string().optional()
406
- });
407
- var transactionWithValidAmountSchema = transactionSchema.extend({
408
- amount: import_zod6.z.object({
409
- value: import_zod6.z.number(),
410
- token: import_zod6.z.string()
411
- })
273
+ //#endregion
274
+ //#region src/schemas/transaction.ts
275
+ const transactionSchema = zod.z.object({
276
+ instructionId: instructionIdSchema,
277
+ transactionHash: hexStringSchema.optional(),
278
+ blockHash: zod.z.string().nullable(),
279
+ transactionStatus: zod.z.string(),
280
+ error: zod.z.string().nullish(),
281
+ startedAt: zod.z.string(),
282
+ startedAtBlock: zod.z.number(),
283
+ finishedAt: zod.z.string().nullable(),
284
+ finishedAtBlock: zod.z.number().nullable(),
285
+ amount: zod.z.object({
286
+ value: zod.z.number(),
287
+ token: zod.z.string()
288
+ }).nullish(),
289
+ instructedValue: zod.z.string(),
290
+ instructedTokenAddress: zod.z.string().nullable(),
291
+ executionNum: zod.z.number(),
292
+ chainId: zod.z.number().nullish(),
293
+ chain: zod.z.string().optional()
412
294
  });
413
- var transactionsSchema = import_zod6.z.array(transactionSchema);
295
+ const transactionWithValidAmountSchema = transactionSchema.extend({ amount: zod.z.object({
296
+ value: zod.z.number(),
297
+ token: zod.z.string()
298
+ }) });
299
+ const transactionsSchema = zod.z.array(transactionSchema);
414
300
 
415
- // src/schemas/user.ts
416
- var import_zod7 = require("zod");
417
- var entityIdSchema = import_zod7.z.string().uuid();
418
- var addressSchema = import_zod7.z.string().regex(/^0x[a-fA-F0-9]{40}$/).transform((v) => v.toLowerCase());
419
- var userPreferencesSchema = import_zod7.z.object({
420
- chainId: import_zod7.z.number().optional(),
421
- tokenSymbol: import_zod7.z.string().optional(),
422
- localCurrency: import_zod7.z.string().optional()
301
+ //#endregion
302
+ //#region src/schemas/user.ts
303
+ const entityIdSchema = zod.z.string().uuid();
304
+ const addressSchema = zod.z.string().regex(/^0x[a-fA-F0-9]{40}$/).transform((v) => v.toLowerCase());
305
+ const userPreferencesSchema = zod.z.object({
306
+ chainId: zod.z.number().optional(),
307
+ tokenSymbol: zod.z.string().optional(),
308
+ localCurrency: zod.z.string().optional()
423
309
  });
424
- var userSchema = import_zod7.z.object({
425
- id: entityIdSchema,
426
- address: addressSchema,
427
- createdAt: import_zod7.z.string(),
428
- updatedAt: import_zod7.z.string(),
429
- preferences: userPreferencesSchema.optional(),
430
- isDeveloper: import_zod7.z.boolean(),
431
- developerPublicKey: import_zod7.z.string().nullable().optional()
310
+ const userSchema = zod.z.object({
311
+ id: entityIdSchema,
312
+ address: addressSchema,
313
+ email: zod.z.string().email().nullable().optional(),
314
+ createdAt: zod.z.string(),
315
+ updatedAt: zod.z.string(),
316
+ preferences: userPreferencesSchema.optional(),
317
+ isDeveloper: zod.z.boolean(),
318
+ developerPublicKey: zod.z.string().nullable().optional()
432
319
  });
433
- //# sourceMappingURL=index.js.map
320
+
321
+ //#endregion
322
+ exports.AccountConnectionStatus = AccountConnectionStatus;
323
+ exports.AccountType = AccountType;
324
+ exports.ContactSchema = ContactSchema;
325
+ exports.ContactsSchema = ContactsSchema;
326
+ exports.DATE_ISO_8601_REGEX = DATE_ISO_8601_REGEX;
327
+ exports.DATE_REGEX = DATE_REGEX;
328
+ exports.DATE_STANDARD_REGEX = DATE_STANDARD_REGEX;
329
+ exports.InstructionAction = InstructionAction;
330
+ exports.InstructionScheduleRepeatType = InstructionScheduleRepeatType;
331
+ exports.InstructionScheduleRetryType = InstructionScheduleRetryType;
332
+ exports.InstructionScheduleStartType = InstructionScheduleStartType;
333
+ exports.InstructionState = InstructionState;
334
+ exports.InstructionViewTimescale = InstructionViewTimescale;
335
+ exports.PaymentSource = PaymentSource;
336
+ exports.PaymentStatus = PaymentStatus;
337
+ exports.PaymentsSchema = PaymentsSchema;
338
+ exports.Sort = Sort;
339
+ exports.TIME_REGEX = TIME_REGEX;
340
+ exports.TimeUnit = TimeUnit;
341
+ exports.Token = Token;
342
+ exports.TokenValues = TokenValues;
343
+ exports.addressSchema = addressSchema;
344
+ exports.assertInstructionAction = assertInstructionAction;
345
+ exports.assertToken = assertToken;
346
+ exports.assertsOptionalToken = assertsOptionalToken;
347
+ exports.bigintSchema = bigintSchema;
348
+ exports.chainIdSchema = chainIdSchema;
349
+ exports.dateISO8601Schema = dateISO8601Schema;
350
+ exports.dateSchema = dateSchema;
351
+ exports.dateStandardSchema = dateStandardSchema;
352
+ exports.decimalStringSchema = decimalStringSchema;
353
+ exports.eip2098SignatureSchema = eip2098SignatureSchema;
354
+ exports.entityIdSchema = entityIdSchema;
355
+ exports.hexStringSchema = hexStringSchema;
356
+ exports.instructionActionSchema = instructionActionSchema;
357
+ exports.instructionActionValues = instructionActionValues;
358
+ exports.instructionExecutionStateSchema = instructionExecutionStateSchema;
359
+ exports.instructionIdSchema = instructionIdSchema;
360
+ exports.instructionScheduleRepeatSchema = instructionScheduleRepeatSchema;
361
+ exports.instructionScheduleRepeatValues = instructionScheduleRepeatValues;
362
+ exports.instructionScheduleRetrySchema = instructionScheduleRetrySchema;
363
+ exports.instructionScheduleRetryValues = instructionScheduleRetryValues;
364
+ exports.instructionScheduleStartSchema = instructionScheduleStartSchema;
365
+ exports.instructionScheduleStartValues = instructionScheduleStartValues;
366
+ exports.instructionSchema = instructionSchema;
367
+ exports.instructionStateSchema = instructionStateSchema;
368
+ exports.instructionStateValues = instructionStateValues;
369
+ exports.instructionSummariesByDateSchema = instructionSummariesByDateSchema;
370
+ exports.instructionSummariesSchema = instructionSummariesSchema;
371
+ exports.instructionSummarySchema = instructionSummarySchema;
372
+ exports.instructionViewTimescaleValues = instructionViewTimescaleValues;
373
+ exports.instructionsSchema = instructionsSchema;
374
+ exports.nonEmptyStringSchema = nonEmptyStringSchema;
375
+ exports.numberSchema = numberSchema;
376
+ exports.paymentRequestSourceValues = paymentRequestSourceValues;
377
+ exports.paymentSchema = paymentSchema;
378
+ exports.regexSchema = regexSchema;
379
+ exports.sortValues = sortValues;
380
+ exports.timeSchema = timeSchema;
381
+ exports.timeUnitSchema = timeUnitSchema;
382
+ exports.timeUnitValues = timeUnitValues;
383
+ exports.tokenSchema = tokenSchema;
384
+ exports.transactionSchema = transactionSchema;
385
+ exports.transactionWithValidAmountSchema = transactionWithValidAmountSchema;
386
+ exports.transactionsSchema = transactionsSchema;
387
+ exports.userPreferencesSchema = userPreferencesSchema;
388
+ exports.userSchema = userSchema;
389
+ exports.vrsSchema = vrsSchema;
390
+ //# sourceMappingURL=index.js.map