@polyester/sdk 0.36.0-devnet-20261118123359 → 0.36.0-devnet-20261118141710

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 (324) hide show
  1. package/CHANGELOG.md +56 -8
  2. package/dist/catalogs/index.d.ts +2 -2
  3. package/dist/catalogs/snapshot-validation.js +10 -1
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/catalogs/zipper-catalog.d.ts +2 -0
  6. package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
  7. package/dist/catalogs/zipper-catalog.js.map +1 -1
  8. package/dist/catalogs/zipper-supply.d.ts +2 -0
  9. package/dist/catalogs/zipper-supply.d.ts.map +1 -1
  10. package/dist/catalogs/zipper-supply.js +7 -5
  11. package/dist/catalogs/zipper-supply.js.map +1 -1
  12. package/dist/client.d.ts +2 -0
  13. package/dist/client.d.ts.map +1 -1
  14. package/dist/client.js +2 -0
  15. package/dist/client.js.map +1 -1
  16. package/dist/gen/ai/v1/assistant_pb.d.ts +679 -13
  17. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  18. package/dist/gen/ai/v1/assistant_pb.js +355 -97
  19. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  20. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +33 -4
  21. package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -1
  22. package/dist/gen/alerts/v1/price_alerts_pb.js +23 -2
  23. package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/activity_pb.d.ts +148 -0
  25. package/dist/gen/auth/v1/activity_pb.d.ts.map +1 -0
  26. package/dist/gen/auth/v1/activity_pb.js +40 -0
  27. package/dist/gen/auth/v1/activity_pb.js.map +1 -0
  28. package/dist/gen/auth/v1/api_keys_pb.d.ts +10 -4
  29. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/api_keys_pb.js +3 -1
  31. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/auth_pb.d.ts +61 -5
  33. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  34. package/dist/gen/auth/v1/auth_pb.js +23 -6
  35. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  36. package/dist/gen/auth/v1/mfa_pb.d.ts +140 -2
  37. package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
  38. package/dist/gen/auth/v1/mfa_pb.js +80 -8
  39. package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
  40. package/dist/gen/auth/v1/policies_pb.d.ts +18 -3
  41. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  42. package/dist/gen/auth/v1/policies_pb.js +18 -3
  43. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  44. package/dist/gen/auth/v1/social_verification_pb.d.ts +36 -15
  45. package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
  46. package/dist/gen/auth/v1/social_verification_pb.js +1 -1
  47. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  48. package/dist/gen/auth/v1/subaccounts_pb.d.ts +15 -1
  49. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  50. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  51. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  52. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +6 -2
  53. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  54. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  55. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +104 -6
  56. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  57. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +49 -3
  58. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  59. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +76 -3
  60. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
  61. package/dist/gen/chain/zipper/v1/zipper_pb.js +46 -2
  62. package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
  63. package/dist/gen/index.d.ts +3 -1
  64. package/dist/gen/index.js +4 -2
  65. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +21 -139
  66. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  67. package/dist/gen/ledger/read/v1/ledger_read_pb.js +16 -17
  68. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  69. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +236 -20
  70. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts.map +1 -1
  71. package/dist/gen/ledger/read/v1/statement_export_pb.js +44 -10
  72. package/dist/gen/ledger/read/v1/statement_export_pb.js.map +1 -1
  73. package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
  74. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  75. package/dist/gen/ledger/v1/catalog_pb.js +9 -1
  76. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  77. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +158 -7
  78. package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -1
  79. package/dist/gen/marketdata/v1/asset_info_pb.js +56 -6
  80. package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -1
  81. package/dist/gen/notifications/v1/notifications_pb.d.ts +45 -6
  82. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
  83. package/dist/gen/notifications/v1/notifications_pb.js +23 -5
  84. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
  85. package/dist/gen/orders/v1/orders_pb.d.ts +105 -29
  86. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  87. package/dist/gen/orders/v1/orders_pb.js +14 -2
  88. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  89. package/dist/gen/orders/v1/orders_read_pb.d.ts +50 -20
  90. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.js +1 -1
  92. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  93. package/dist/gen/polyester/api/options_pb.d.ts +11 -2
  94. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  95. package/dist/gen/polyester/api/options_pb.js +13 -3
  96. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  97. package/dist/gen/privatews/v1/private_ws_pb.d.ts +13 -3
  98. package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -1
  99. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
  100. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +126 -10
  101. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  102. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +14 -6
  103. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  104. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +665 -0
  105. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -0
  106. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +216 -0
  107. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -0
  108. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +166 -52
  109. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  110. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +50 -12
  111. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  112. package/dist/gen/system/v1/system_pb.d.ts +49 -2
  113. package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
  114. package/dist/gen/system/v1/system_pb.js +18 -6
  115. package/dist/gen/system/v1/system_pb.js.map +1 -1
  116. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +150 -71
  117. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  118. package/dist/gen/transfer/v1/internal_transfer_pb.js +56 -34
  119. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  120. package/dist/gen/triggers/v1/triggers_pb.d.ts +117 -16
  121. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  122. package/dist/gen/triggers/v1/triggers_pb.js +45 -2
  123. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  124. package/dist/index.d.ts +13 -9
  125. package/dist/services/account-activity/account-activity.d.ts +22 -0
  126. package/dist/services/account-activity/account-activity.d.ts.map +1 -0
  127. package/dist/services/account-activity/account-activity.js +32 -0
  128. package/dist/services/account-activity/account-activity.js.map +1 -0
  129. package/dist/services/account-activity/account-activity.schemas.d.ts +78 -0
  130. package/dist/services/account-activity/account-activity.schemas.d.ts.map +1 -0
  131. package/dist/services/account-activity/account-activity.schemas.js +44 -0
  132. package/dist/services/account-activity/account-activity.schemas.js.map +1 -0
  133. package/dist/services/account-activity/account-activity.types.d.ts +2 -0
  134. package/dist/services/account-activity/service.d.ts +8 -0
  135. package/dist/services/account-activity/service.d.ts.map +1 -0
  136. package/dist/services/account-activity/service.js +9 -0
  137. package/dist/services/account-activity/service.js.map +1 -0
  138. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  139. package/dist/services/address-book/address-book.schemas.js +2 -2
  140. package/dist/services/api-keys/api-keys.schemas.js +2 -2
  141. package/dist/services/assistant/assistant-events.schemas.d.ts +26 -26
  142. package/dist/services/assistant/assistant.codecs.d.ts +7 -2
  143. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  144. package/dist/services/assistant/assistant.codecs.js +18 -2
  145. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  146. package/dist/services/assistant/assistant.d.ts +29 -2
  147. package/dist/services/assistant/assistant.d.ts.map +1 -1
  148. package/dist/services/assistant/assistant.js +44 -2
  149. package/dist/services/assistant/assistant.js.map +1 -1
  150. package/dist/services/assistant/assistant.schemas.d.ts +111 -6
  151. package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
  152. package/dist/services/assistant/assistant.schemas.js +74 -6
  153. package/dist/services/assistant/assistant.schemas.js.map +1 -1
  154. package/dist/services/assistant/assistant.types.d.ts +3 -3
  155. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +3 -1
  156. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
  157. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
  158. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +24 -22
  159. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
  160. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -0
  161. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
  162. package/dist/services/balances/balances.d.ts +1 -13
  163. package/dist/services/balances/balances.d.ts.map +1 -1
  164. package/dist/services/balances/balances.js +1 -45
  165. package/dist/services/balances/balances.js.map +1 -1
  166. package/dist/services/balances/balances.schemas.d.ts +1 -67
  167. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  168. package/dist/services/balances/balances.schemas.js +1 -22
  169. package/dist/services/balances/balances.schemas.js.map +1 -1
  170. package/dist/services/balances/balances.types.d.ts +2 -2
  171. package/dist/services/changelog/changelog.schemas.d.ts +22 -22
  172. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  173. package/dist/services/claims/claims.schemas.d.ts +2 -2
  174. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +2 -2
  175. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  176. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts +11 -6
  177. package/dist/services/internal-transfers/internal-transfers.codecs.d.ts.map +1 -1
  178. package/dist/services/internal-transfers/internal-transfers.codecs.js +6 -6
  179. package/dist/services/internal-transfers/internal-transfers.codecs.js.map +1 -1
  180. package/dist/services/internal-transfers/internal-transfers.d.ts +17 -10
  181. package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
  182. package/dist/services/internal-transfers/internal-transfers.js +21 -10
  183. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  184. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +46 -34
  185. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  186. package/dist/services/internal-transfers/internal-transfers.schemas.js +23 -12
  187. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  188. package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
  189. package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
  190. package/dist/services/market-data/market-data.codecs.d.ts +8 -0
  191. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -0
  192. package/dist/services/market-data/market-data.codecs.js +7 -1
  193. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  194. package/dist/services/market-data/market-data.d.ts +3 -2
  195. package/dist/services/market-data/market-data.d.ts.map +1 -1
  196. package/dist/services/market-data/market-data.js +3 -2
  197. package/dist/services/market-data/market-data.js.map +1 -1
  198. package/dist/services/market-data/market-data.schemas.d.ts +332 -4
  199. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  200. package/dist/services/market-data/market-data.schemas.js +56 -8
  201. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  202. package/dist/services/market-data/market-data.types.d.ts +3 -2
  203. package/dist/services/notifications/notifications.codecs.d.ts +1 -1
  204. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
  205. package/dist/services/notifications/notifications.codecs.js +2 -1
  206. package/dist/services/notifications/notifications.codecs.js.map +1 -1
  207. package/dist/services/notifications/notifications.d.ts +4 -2
  208. package/dist/services/notifications/notifications.d.ts.map +1 -1
  209. package/dist/services/notifications/notifications.js +4 -2
  210. package/dist/services/notifications/notifications.js.map +1 -1
  211. package/dist/services/notifications/notifications.schemas.d.ts +50 -6
  212. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
  213. package/dist/services/notifications/notifications.schemas.js +5 -0
  214. package/dist/services/notifications/notifications.schemas.js.map +1 -1
  215. package/dist/services/orders/order-enums.codecs.d.ts +2 -0
  216. package/dist/services/orders/order-errors.schemas.d.ts +50 -5
  217. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  218. package/dist/services/orders/order-errors.schemas.js +13 -3
  219. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  220. package/dist/services/orders/orders-batch.schemas.d.ts +322 -82
  221. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  222. package/dist/services/orders/orders-input.schemas.d.ts +58 -11
  223. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  224. package/dist/services/orders/orders-input.schemas.js +1 -1
  225. package/dist/services/orders/orders-output.schemas.d.ts +16 -16
  226. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  227. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
  228. package/dist/services/policies/shared.codecs.js +12 -6
  229. package/dist/services/policies/shared.codecs.js.map +1 -1
  230. package/dist/services/policies/shared.d.ts +1 -1
  231. package/dist/services/policies/shared.js +1 -1
  232. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  233. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
  234. package/dist/services/price-alerts/price-alerts.d.ts +5 -2
  235. package/dist/services/price-alerts/price-alerts.d.ts.map +1 -1
  236. package/dist/services/price-alerts/price-alerts.js +5 -2
  237. package/dist/services/price-alerts/price-alerts.js.map +1 -1
  238. package/dist/services/price-alerts/price-alerts.schemas.js +1 -1
  239. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  240. package/dist/services/social-verification/social-verification.schemas.d.ts +9 -0
  241. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  242. package/dist/services/social-verification/social-verification.schemas.js +9 -2
  243. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  244. package/dist/services/statement-exports/statement-exports.codecs.d.ts +3 -2
  245. package/dist/services/statement-exports/statement-exports.codecs.d.ts.map +1 -1
  246. package/dist/services/statement-exports/statement-exports.codecs.js +2 -1
  247. package/dist/services/statement-exports/statement-exports.codecs.js.map +1 -1
  248. package/dist/services/statement-exports/statement-exports.d.ts +25 -10
  249. package/dist/services/statement-exports/statement-exports.d.ts.map +1 -1
  250. package/dist/services/statement-exports/statement-exports.js +33 -10
  251. package/dist/services/statement-exports/statement-exports.js.map +1 -1
  252. package/dist/services/statement-exports/statement-exports.schemas.d.ts +37 -9
  253. package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -1
  254. package/dist/services/statement-exports/statement-exports.schemas.js +24 -5
  255. package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -1
  256. package/dist/services/statement-exports/statement-exports.types.d.ts +2 -2
  257. package/dist/services/subaccounts/subaccounts.codecs.js +112 -38
  258. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  259. package/dist/services/subaccounts/subaccounts.js +1 -1
  260. package/dist/services/subaccounts/subaccounts.schemas.d.ts +25 -18
  261. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  262. package/dist/services/subaccounts/subaccounts.schemas.js +10 -3
  263. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  264. package/dist/services/system/system.d.ts +12 -1
  265. package/dist/services/system/system.d.ts.map +1 -1
  266. package/dist/services/system/system.js +5 -0
  267. package/dist/services/system/system.js.map +1 -1
  268. package/dist/services/system/system.schemas.d.ts +13 -13
  269. package/dist/services/system/system.types.d.ts +2 -2
  270. package/dist/services/trades/trades.schemas.d.ts +1 -1
  271. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts +8 -0
  272. package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts.map +1 -0
  273. package/dist/services/trading-withdraws/trading-withdraws.codecs.js +7 -1
  274. package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
  275. package/dist/services/trading-withdraws/trading-withdraws.d.ts +2 -1
  276. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  277. package/dist/services/trading-withdraws/trading-withdraws.js +2 -1
  278. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  279. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +15 -0
  280. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  281. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +16 -2
  282. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  283. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -1
  284. package/dist/services/transfers/transfers.schemas.d.ts +4 -4
  285. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  286. package/dist/services/triggers/triggers-output.schemas.d.ts +163 -45
  287. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  288. package/dist/services/triggers/triggers-output.schemas.js +13 -3
  289. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  290. package/dist/services/triggers/triggers.codecs.d.ts +10 -0
  291. package/dist/services/triggers/triggers.codecs.d.ts.map +1 -0
  292. package/dist/services/triggers/triggers.codecs.js +7 -1
  293. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  294. package/dist/services/triggers/triggers.d.ts +2 -2
  295. package/dist/services/triggers/triggers.js +2 -2
  296. package/dist/services/triggers/triggers.js.map +1 -1
  297. package/dist/services/zipper/zipper.d.ts.map +1 -1
  298. package/dist/services/zipper/zipper.js +13 -7
  299. package/dist/services/zipper/zipper.js.map +1 -1
  300. package/dist/services/zipper/zipper.schemas.d.ts +7 -2
  301. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  302. package/dist/services/zipper/zipper.schemas.js +29 -9
  303. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  304. package/dist/services/zipper/zipper.types.d.ts +2 -2
  305. package/dist/shared/catalog-config.d.ts +16 -2
  306. package/dist/shared/catalog-config.d.ts.map +1 -1
  307. package/dist/shared/catalog-config.js.map +1 -1
  308. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  309. package/dist/shared/connect-error-mapping.js +3 -1
  310. package/dist/shared/connect-error-mapping.js.map +1 -1
  311. package/dist/shared/error-detail.d.ts +10 -0
  312. package/dist/shared/error-detail.d.ts.map +1 -1
  313. package/dist/shared/error-detail.js.map +1 -1
  314. package/dist/shared/error-details/auth.js +6 -0
  315. package/dist/shared/error-details/auth.js.map +1 -1
  316. package/dist/shared/ledger-codes.d.ts +3 -1
  317. package/dist/shared/ledger-codes.d.ts.map +1 -1
  318. package/dist/shared/ledger-codes.js +6 -3
  319. package/dist/shared/ledger-codes.js.map +1 -1
  320. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  321. package/dist/wired-services.d.ts.map +1 -1
  322. package/dist/wired-services.js +3 -1
  323. package/dist/wired-services.js.map +1 -1
  324. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { AuthApiTransports } from "../../shared/transports.js";
2
2
  import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js";
3
3
  import { SubaccountResolver } from "../subaccount-resolver.js";
4
4
  import { SdkScales } from "../../shared/decimal-surface.js";
5
- import { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult } from "./internal-transfers.schemas.js";
5
+ import { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferBatchInput, GetInternalTransferInput, GetInternalTransferResult } from "./internal-transfers.schemas.js";
6
6
  //#region src/services/internal-transfers/internal-transfers.d.ts
7
7
  /**
8
8
  * Creates and reads authenticated Trading-to-Trading internal transfer requests.
@@ -15,17 +15,24 @@ declare class InternalTransfersService {
15
15
  */
16
16
  create(input: CreateInternalTransferInput, options?: PolyesterMutationOptions): Promise<CreateInternalTransferResult>;
17
17
  /**
18
- * Submits up to 10 transfers under one idempotency key and one MFA check. Every leg passes
19
- * the same checks as `create` first; if one fails, the batch is `"refused"`: nothing moves,
20
- * no step-up is used, the failing legs carry their `errorCode` and the rest are
21
- * `"not_submitted"`. Otherwise the legs run in order and are not atomic: a leg can be
22
- * `"refused"`, for example for insufficient balance, after earlier legs were accepted. Read
23
- * each leg's `status`; a `"pending"` leg is like a timed-out `create`: read it with `get` by
24
- * its `requestId`, or retry the batch with the same key and legs. Recent MFA covers the root
25
- * owner moving funds between its own accounts or to allowlisted destinations; any other leg
26
- * needs one fresh step-up for the whole batch.
18
+ * Moves up to 500 transfers together under one idempotency key and one MFA check: every leg
19
+ * is credited, or nothing moves. Every leg passes the same checks as `create` first; if one
20
+ * fails, or a source cannot cover its legs, the batch is `"refused"`: nothing moves, no
21
+ * step-up is used, the legs that caused it carry their `errorCode` and the rest are
22
+ * `"not_moved"`. `"accepted"` means every leg is credited. A batch whose outcome is not known
23
+ * within the request is `"processing"` and completes on its own: read it with `getBatch` by
24
+ * its `requestId`, or retry with the same key and legs. Recent MFA covers the root owner
25
+ * moving funds between its own accounts or to allowlisted destinations; any other leg needs
26
+ * one fresh step-up for the whole batch.
27
27
  */
28
28
  batchCreate(input: BatchCreateInternalTransfersInput, options?: PolyesterMutationOptions): Promise<BatchCreateInternalTransfersResult>;
29
+ /**
30
+ * Reads a batch's current status and every leg's state by the `requestId` `batchCreate`
31
+ * returned, for example to follow a `"processing"` batch. The caller must be allowed to read
32
+ * the transfers of every source account of the batch; any other batch is a
33
+ * `ResourceNotFoundError`. Does not submit or retry the batch and needs no step-up.
34
+ */
35
+ getBatch(input: GetInternalTransferBatchInput, options?: PolyesterRequestOptions): Promise<BatchCreateInternalTransfersResult>;
29
36
  /**
30
37
  * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or
31
38
  * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it
@@ -1 +1 @@
1
- {"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;cAkCa;;EASL,YAAA,YAAY,mBACZ,UAAU,gCACV,QAAQ;;;;EAaN,OACF,OAAO,6BACP,UAAU,2BACX,QAAQ;;;;;;;;;;;;EAsBL,YACF,OAAO,mCACP,UAAU,2BACX,QAAQ;;;;;;;;;EAwBL,IACF,OAAO,0BACP,UAAU,0BACX,QAAQ"}
1
+ {"version":3,"file":"internal-transfers.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"mappings":";;;;;;;;;cAoCa;;EASL,YAAA,YAAY,mBACZ,UAAU,gCACV,QAAQ;;;;EAaN,OACF,OAAO,6BACP,UAAU,2BACX,QAAQ;;;;;;;;;;;;EAsBL,YACF,OAAO,mCACP,UAAU,2BACX,QAAQ;;;;;;;EAsBL,SACF,OAAO,+BACP,UAAU,0BACX,QAAQ;;;;;;;;;EAiBL,IACF,OAAO,0BACP,UAAU,0BACX,QAAQ"}
@@ -3,7 +3,7 @@ import { removeUndefined } from "../../utils/remove-undefined.js";
3
3
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
4
  import { resolveAccountScope, resolveAccountScopedInput } from "../subaccount-resolver.js";
5
5
  import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
6
- import { BatchCreateInternalTransfersResultSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
6
+ import { BatchCreateInternalTransfersResultSchema, GetInternalTransferBatchInputSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
7
7
  import { createClient } from "@connectrpc/connect";
8
8
  //#region src/services/internal-transfers/internal-transfers.ts
9
9
  /**
@@ -35,15 +35,15 @@ var InternalTransfersService = class {
35
35
  return parse(this.#resultSchema, res);
36
36
  }
37
37
  /**
38
- * Submits up to 10 transfers under one idempotency key and one MFA check. Every leg passes
39
- * the same checks as `create` first; if one fails, the batch is `"refused"`: nothing moves,
40
- * no step-up is used, the failing legs carry their `errorCode` and the rest are
41
- * `"not_submitted"`. Otherwise the legs run in order and are not atomic: a leg can be
42
- * `"refused"`, for example for insufficient balance, after earlier legs were accepted. Read
43
- * each leg's `status`; a `"pending"` leg is like a timed-out `create`: read it with `get` by
44
- * its `requestId`, or retry the batch with the same key and legs. Recent MFA covers the root
45
- * owner moving funds between its own accounts or to allowlisted destinations; any other leg
46
- * needs one fresh step-up for the whole batch.
38
+ * Moves up to 500 transfers together under one idempotency key and one MFA check: every leg
39
+ * is credited, or nothing moves. Every leg passes the same checks as `create` first; if one
40
+ * fails, or a source cannot cover its legs, the batch is `"refused"`: nothing moves, no
41
+ * step-up is used, the legs that caused it carry their `errorCode` and the rest are
42
+ * `"not_moved"`. `"accepted"` means every leg is credited. A batch whose outcome is not known
43
+ * within the request is `"processing"` and completes on its own: read it with `getBatch` by
44
+ * its `requestId`, or retry with the same key and legs. Recent MFA covers the root owner
45
+ * moving funds between its own accounts or to allowlisted destinations; any other leg needs
46
+ * one fresh step-up for the whole batch.
47
47
  */
48
48
  async batchCreate(input, options) {
49
49
  await this.#scales.ready();
@@ -59,6 +59,17 @@ var InternalTransfersService = class {
59
59
  return parse(BatchCreateInternalTransfersResultSchema, res);
60
60
  }
61
61
  /**
62
+ * Reads a batch's current status and every leg's state by the `requestId` `batchCreate`
63
+ * returned, for example to follow a `"processing"` batch. The caller must be allowed to read
64
+ * the transfers of every source account of the batch; any other batch is a
65
+ * `ResourceNotFoundError`. Does not submit or retry the batch and needs no step-up.
66
+ */
67
+ async getBatch(input, options) {
68
+ const request = parse(GetInternalTransferBatchInputSchema, input);
69
+ const res = await this.#client.getInternalTransferBatch(request, toConnectCallOptions(options));
70
+ return parse(BatchCreateInternalTransfersResultSchema, res);
71
+ }
72
+ /**
62
73
  * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or
63
74
  * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it
64
75
  * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getAccountFlow`,
@@ -1 +1 @@
1
- {"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema","#batchInputSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n type SubaccountResolver,\n resolveAccountScope,\n resolveAccountScopedInput,\n} from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n BatchCreateInternalTransfersResultSchema,\n createBatchCreateInternalTransfersInputSchema,\n type BatchCreateInternalTransfersInput,\n type BatchCreateInternalTransfersResult,\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n GetInternalTransferInputSchema,\n GetInternalTransferResultSchema,\n type GetInternalTransferInput,\n type GetInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates and reads authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n #batchInputSchema: ReturnType<typeof createBatchCreateInternalTransfersInputSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n this.#batchInputSchema = createBatchCreateInternalTransfersInputSchema(scales);\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n\n /**\n * Submits up to 10 transfers under one idempotency key and one MFA check. Every leg passes\n * the same checks as `create` first; if one fails, the batch is `\"refused\"`: nothing moves,\n * no step-up is used, the failing legs carry their `errorCode` and the rest are\n * `\"not_submitted\"`. Otherwise the legs run in order and are not atomic: a leg can be\n * `\"refused\"`, for example for insufficient balance, after earlier legs were accepted. Read\n * each leg's `status`; a `\"pending\"` leg is like a timed-out `create`: read it with `get` by\n * its `requestId`, or retry the batch with the same key and legs. Recent MFA covers the root\n * owner moving funds between its own accounts or to allowlisted destinations; any other leg\n * needs one fresh step-up for the whole batch.\n */\n async batchCreate(\n input: BatchCreateInternalTransfersInput,\n options?: PolyesterMutationOptions,\n ): Promise<BatchCreateInternalTransfersResult> {\n await this.#scales.ready();\n const legs = Array.isArray(input?.legs)\n ? input.legs.map((leg) => ({\n ...leg,\n account: resolveAccountScope(leg?.account, this.#resolver),\n }))\n : input?.legs;\n const request = parse(this.#batchInputSchema, { ...input, legs });\n const res = await this.#client.batchCreateInternalTransfers(\n request,\n toConnectCallOptions(options),\n );\n return parse(BatchCreateInternalTransfersResultSchema, res);\n }\n\n /**\n * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or\n * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it\n * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getAccountFlow`,\n * whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible\n * transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.\n * Session JWT only; API keys are refused. Moves no money and needs no step-up.\n */\n async get(\n input: GetInternalTransferInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetInternalTransferResult> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetInternalTransferInputSchema, resolvedInput);\n const res = await this.#client.getInternalTransfer(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(GetInternalTransferResultSchema, res);\n }\n}\n"],"mappings":";;;;;;;;;;;AAkCA,IAAa,2BAAb,MAAsC;CAClC;CACA;CACA;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,QACF;EACE,KAAKA,UAAU,aAAaC,yBAA+B,WAAW,OAAO;EAC7E,KAAKC,YAAY;EACjB,KAAKC,UAAU;EACf,KAAKC,eAAe,wCAAwC,MAAM;EAClE,KAAKC,gBAAgB,yCAAyC;EAC9D,KAAKC,oBAAoB,8CAA8C,MAAM;CACjF;;;;CAKA,MAAM,OACF,OACA,SACqC;EACrC,MAAM,KAAKH,QAAQ,MAAM;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKD,SAAS;EACrE,MAAM,iBAAiB,MAAM,KAAKE,cAAc,aAAa;EAC7D,MAAM,MAAM,MAAM,KAAKJ,QAAQ,uBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,KAAKK,eAAe,GAAG;CACxC;;;;;;;;;;;;CAaA,MAAM,YACF,OACA,SAC2C;EAC3C,MAAM,KAAKF,QAAQ,MAAM;EACzB,MAAM,OAAO,MAAM,QAAQ,OAAO,IAAI,IAChC,MAAM,KAAK,KAAK,SAAS;GACrB,GAAG;GACH,SAAS,oBAAoB,KAAK,SAAS,KAAKD,SAAS;EAC7D,EAAE,IACF,OAAO;EACb,MAAM,UAAU,MAAM,KAAKI,mBAAmB;GAAE,GAAG;GAAO;EAAK,CAAC;EAChE,MAAM,MAAM,MAAM,KAAKN,QAAQ,6BAC3B,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,0CAA0C,GAAG;CAC9D;;;;;;;;;CAUA,MAAM,IACF,OACA,SACkC;EAClC,MAAM,gBAAgB,0BAA0B,OAAO,KAAKE,SAAS;EACrE,MAAM,UAAU,MAAM,gCAAgC,aAAa;EACnE,MAAM,MAAM,MAAM,KAAKF,QAAQ,oBAC3B,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,iCAAiC,GAAG;CACrD;AACJ"}
1
+ {"version":3,"file":"internal-transfers.js","names":["#client","Proto.InternalTransferService","#resolver","#scales","#inputSchema","#resultSchema","#batchInputSchema"],"sources":["../../../src/services/internal-transfers/internal-transfers.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport {\n type SubaccountResolver,\n resolveAccountScope,\n resolveAccountScopedInput,\n} from \"../subaccount-resolver.js\";\nimport type { SdkScales } from \"../../shared/decimal-surface.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n BatchCreateInternalTransfersResultSchema,\n createBatchCreateInternalTransfersInputSchema,\n type BatchCreateInternalTransfersInput,\n type BatchCreateInternalTransfersResult,\n createCreateInternalTransferInputSchema,\n createCreateInternalTransferResultSchema,\n type CreateInternalTransferInput,\n type CreateInternalTransferResult,\n GetInternalTransferBatchInputSchema,\n GetInternalTransferInputSchema,\n GetInternalTransferResultSchema,\n type GetInternalTransferBatchInput,\n type GetInternalTransferInput,\n type GetInternalTransferResult,\n} from \"./internal-transfers.schemas.js\";\n\n/**\n * Creates and reads authenticated Trading-to-Trading internal transfer requests.\n */\nexport class InternalTransfersService {\n #client: Client<typeof Proto.InternalTransferService>;\n #resolver?: SubaccountResolver;\n #scales: SdkScales;\n #inputSchema: ReturnType<typeof createCreateInternalTransferInputSchema>;\n #resultSchema: ReturnType<typeof createCreateInternalTransferResultSchema>;\n #batchInputSchema: ReturnType<typeof createBatchCreateInternalTransfersInputSchema>;\n\n constructor(\n transports: AuthApiTransports,\n resolver: SubaccountResolver | undefined,\n scales: SdkScales,\n ) {\n this.#client = createClient(Proto.InternalTransferService, transports.authApi);\n this.#resolver = resolver;\n this.#scales = scales;\n this.#inputSchema = createCreateInternalTransferInputSchema(scales);\n this.#resultSchema = createCreateInternalTransferResultSchema();\n this.#batchInputSchema = createBatchCreateInternalTransfersInputSchema(scales);\n }\n\n /**\n * Creates or returns an idempotent internal transfer from the resolved source account to a destination root account, subaccount, or smart-account address. The request carries asset id, a decimal quantity, and a stable idempotency key; the response includes request/transfer ids, the lifecycle `flowId`, resolved destination, and status. Rejections and failures, such as insufficient funds or a missing step-up, raise errors instead of returning a result.\n */\n async create(\n input: CreateInternalTransferInput,\n options?: PolyesterMutationOptions,\n ): Promise<CreateInternalTransferResult> {\n await this.#scales.ready();\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(this.#inputSchema, resolvedInput);\n const res = await this.#client.createInternalTransfer(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(this.#resultSchema, res);\n }\n\n /**\n * Moves up to 500 transfers together under one idempotency key and one MFA check: every leg\n * is credited, or nothing moves. Every leg passes the same checks as `create` first; if one\n * fails, or a source cannot cover its legs, the batch is `\"refused\"`: nothing moves, no\n * step-up is used, the legs that caused it carry their `errorCode` and the rest are\n * `\"not_moved\"`. `\"accepted\"` means every leg is credited. A batch whose outcome is not known\n * within the request is `\"processing\"` and completes on its own: read it with `getBatch` by\n * its `requestId`, or retry with the same key and legs. Recent MFA covers the root owner\n * moving funds between its own accounts or to allowlisted destinations; any other leg needs\n * one fresh step-up for the whole batch.\n */\n async batchCreate(\n input: BatchCreateInternalTransfersInput,\n options?: PolyesterMutationOptions,\n ): Promise<BatchCreateInternalTransfersResult> {\n await this.#scales.ready();\n const legs = Array.isArray(input?.legs)\n ? input.legs.map((leg) => ({\n ...leg,\n account: resolveAccountScope(leg?.account, this.#resolver),\n }))\n : input?.legs;\n const request = parse(this.#batchInputSchema, { ...input, legs });\n const res = await this.#client.batchCreateInternalTransfers(\n request,\n toConnectCallOptions(options),\n );\n return parse(BatchCreateInternalTransfersResultSchema, res);\n }\n\n /**\n * Reads a batch's current status and every leg's state by the `requestId` `batchCreate`\n * returned, for example to follow a `\"processing\"` batch. The caller must be allowed to read\n * the transfers of every source account of the batch; any other batch is a\n * `ResourceNotFoundError`. Does not submit or retry the batch and needs no step-up.\n */\n async getBatch(\n input: GetInternalTransferBatchInput,\n options?: PolyesterRequestOptions,\n ): Promise<BatchCreateInternalTransfersResult> {\n const request = parse(GetInternalTransferBatchInputSchema, input);\n const res = await this.#client.getInternalTransferBatch(\n request,\n toConnectCallOptions(options),\n );\n return parse(BatchCreateInternalTransfersResultSchema, res);\n }\n\n /**\n * Reads an accepted transfer of the resolved source account by exactly one of `requestId` or\n * `transferId`, and returns both IDs, the lifecycle `flowId` and the acceptance time. Use it\n * to reconcile a transfer without resubmitting it; pass `flowId` to `lifecycle.getAccountFlow`,\n * whose ledger settlement step carries the transfer ID. An unknown, pending or inaccessible\n * transfer is a `ResourceNotFoundError`, including briefly after a delegate is granted access.\n * Session JWT only; API keys are refused. Moves no money and needs no step-up.\n */\n async get(\n input: GetInternalTransferInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetInternalTransferResult> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetInternalTransferInputSchema, resolvedInput);\n const res = await this.#client.getInternalTransfer(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(GetInternalTransferResultSchema, res);\n }\n}\n"],"mappings":";;;;;;;;;;;AAoCA,IAAa,2BAAb,MAAsC;CAClC;CACA;CACA;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,QACF;EACE,KAAKA,UAAU,aAAaC,yBAA+B,WAAW,OAAO;EAC7E,KAAKC,YAAY;EACjB,KAAKC,UAAU;EACf,KAAKC,eAAe,wCAAwC,MAAM;EAClE,KAAKC,gBAAgB,yCAAyC;EAC9D,KAAKC,oBAAoB,8CAA8C,MAAM;CACjF;;;;CAKA,MAAM,OACF,OACA,SACqC;EACrC,MAAM,KAAKH,QAAQ,MAAM;EACzB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKD,SAAS;EACrE,MAAM,iBAAiB,MAAM,KAAKE,cAAc,aAAa;EAC7D,MAAM,MAAM,MAAM,KAAKJ,QAAQ,uBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,KAAKK,eAAe,GAAG;CACxC;;;;;;;;;;;;CAaA,MAAM,YACF,OACA,SAC2C;EAC3C,MAAM,KAAKF,QAAQ,MAAM;EACzB,MAAM,OAAO,MAAM,QAAQ,OAAO,IAAI,IAChC,MAAM,KAAK,KAAK,SAAS;GACrB,GAAG;GACH,SAAS,oBAAoB,KAAK,SAAS,KAAKD,SAAS;EAC7D,EAAE,IACF,OAAO;EACb,MAAM,UAAU,MAAM,KAAKI,mBAAmB;GAAE,GAAG;GAAO;EAAK,CAAC;EAChE,MAAM,MAAM,MAAM,KAAKN,QAAQ,6BAC3B,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,0CAA0C,GAAG;CAC9D;;;;;;;CAQA,MAAM,SACF,OACA,SAC2C;EAC3C,MAAM,UAAU,MAAM,qCAAqC,KAAK;EAChE,MAAM,MAAM,MAAM,KAAKA,QAAQ,yBAC3B,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,0CAA0C,GAAG;CAC9D;;;;;;;;;CAUA,MAAM,IACF,OACA,SACkC;EAClC,MAAM,gBAAgB,0BAA0B,OAAO,KAAKE,SAAS;EACrE,MAAM,UAAU,MAAM,gCAAgC,aAAa;EACnE,MAAM,MAAM,MAAM,KAAKF,QAAQ,oBAC3B,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,iCAAiC,GAAG;CACrD;AACJ"}
@@ -138,7 +138,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
138
138
  subaccountId: string | undefined;
139
139
  smartAccountAddress: string | undefined;
140
140
  }>]>, undefined>;
141
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "accepted" | "rejected">]>;
141
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "rejected" | "accepted">]>;
142
142
  /** Lifecycle flow ID for `lifecycle.getAccountFlow`; empty when the server did not return one. */
143
143
  readonly flowId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
144
144
  }, undefined>, v.TransformAction<{
@@ -157,7 +157,7 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
157
157
  subaccountId: string | undefined;
158
158
  smartAccountAddress: string | undefined;
159
159
  } | undefined;
160
- status: "unspecified" | "failed" | "accepted" | "rejected";
160
+ status: "unspecified" | "failed" | "rejected" | "accepted";
161
161
  flowId: string;
162
162
  }, {
163
163
  acceptedAtUnixMs: number;
@@ -174,15 +174,17 @@ declare function createCreateInternalTransferResultSchema(): v.SchemaWithPipe<re
174
174
  subaccountId: string | undefined;
175
175
  smartAccountAddress: string | undefined;
176
176
  } | undefined;
177
- status: "unspecified" | "failed" | "accepted" | "rejected";
177
+ status: "unspecified" | "failed" | "rejected" | "accepted";
178
178
  flowId: string;
179
179
  }>]>;
180
180
  type CreateInternalTransferResult = v.InferOutput<ReturnType<typeof createCreateInternalTransferResultSchema>>;
181
181
  declare function createBatchCreateInternalTransfersInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
182
182
  /**
183
- * Up to 10 transfers, run in order. Each leg debits its own `account` (the
184
- * resolved active account when omitted), and legs may repeat an asset, a source or a
185
- * destination. Each leg counts as one internal transfer against the rate limit.
183
+ * Up to 500 transfers, moved together, in order. Each leg debits its own `account`
184
+ * (the resolved active account when omitted). A batch debits at most 10 distinct
185
+ * source accounts and 50 distinct source account and asset pairs, and a source,
186
+ * destination and asset combination appears at most once; legs may otherwise repeat
187
+ * an asset, a source or a destination.
186
188
  */
187
189
  readonly legs: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
188
190
  readonly destination: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.StrictObjectSchema<{
@@ -250,7 +252,7 @@ declare function createBatchCreateInternalTransfersInputSchema(scales: SdkScales
250
252
  account?: "active" | "main" | {
251
253
  subaccountId: string;
252
254
  } | undefined;
253
- }[], 10, "A batch holds at most 10 legs.">]>;
255
+ }[], 500, "A batch holds at most 500 legs.">]>;
254
256
  /** Covers the whole batch; a retry must send the same legs in the same order. */
255
257
  readonly idempotencyKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
256
258
  }, undefined>, v.TransformAction<{
@@ -294,11 +296,12 @@ type BatchCreateInternalTransfersInput = v.InferInput<ReturnType<typeof createBa
294
296
  type InternalTransferBatchLegInput = BatchCreateInternalTransfersInput["legs"][number];
295
297
  declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
296
298
  readonly legIndex: v.NumberSchema<undefined>;
297
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "pending" | "accepted" | "not_submitted">]>;
298
- readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
299
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "credited" | "not_moved">]>;
300
+ /** Set once the batch is accepted for processing. */
299
301
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
302
+ /** Lifecycle flow ID for `lifecycle.getAccountFlow`; set once the leg is credited. */
300
303
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
301
- readonly acceptedAtTsNs: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
304
+ readonly creditedAtTsNs: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
302
305
  readonly assetId: v.NumberSchema<undefined>;
303
306
  readonly assetCode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
304
307
  readonly amountE18: v.OptionalSchema<v.ObjectSchema<{
@@ -322,11 +325,10 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
322
325
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
323
326
  }, undefined>, v.TransformAction<{
324
327
  legIndex: number;
325
- status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
326
- requestId?: string | undefined;
328
+ status: "unspecified" | "processing" | "credited" | "not_moved";
327
329
  transferId?: string | undefined;
328
330
  flowId?: string | undefined;
329
- acceptedAtTsNs: bigint;
331
+ creditedAtTsNs: bigint;
330
332
  assetId: number;
331
333
  assetCode?: string | undefined;
332
334
  amountE18?: {
@@ -341,14 +343,15 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
341
343
  errorCode: number;
342
344
  errorMessage?: string | undefined;
343
345
  }, {
344
- acceptedAtUnixMs: number | undefined;
345
- acceptedAtNs: string | undefined;
346
+ /** When the leg was credited; unset before. */
347
+ creditedAtUnixMs: number | undefined;
348
+ /** Exact credit time in nanoseconds since epoch, as a decimal string; unset before. */
349
+ creditedAtNs: string | undefined;
346
350
  quantity: string | undefined;
347
- /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
348
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
351
+ /** Why the leg caused its batch's refusal; unset for every other leg. */
352
+ errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "NOT_FOUND" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | undefined;
349
353
  legIndex: number;
350
- status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
351
- requestId?: string | undefined;
354
+ status: "unspecified" | "processing" | "credited" | "not_moved";
352
355
  transferId?: string | undefined;
353
356
  flowId?: string | undefined;
354
357
  assetId: number;
@@ -362,17 +365,21 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
362
365
  }>]>;
363
366
  type InternalTransferBatchLegResult = v.InferOutput<typeof InternalTransferBatchLegResultSchema>;
364
367
  declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
365
- /** Batch request ID; unset when the batch was refused. */
368
+ /**
369
+ * Batch request ID for `internalTransfers.getBatch`; unset when the batch was refused before
370
+ * it was accepted for processing.
371
+ */
366
372
  readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
367
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "submitted">]>;
373
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "accepted" | "refused">]>;
368
374
  /** One result per leg, in request order. */
369
375
  readonly legs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
370
376
  readonly legIndex: v.NumberSchema<undefined>;
371
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "pending" | "accepted" | "not_submitted">]>;
372
- readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
377
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "credited" | "not_moved">]>;
378
+ /** Set once the batch is accepted for processing. */
373
379
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
380
+ /** Lifecycle flow ID for `lifecycle.getAccountFlow`; set once the leg is credited. */
374
381
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
375
- readonly acceptedAtTsNs: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
382
+ readonly creditedAtTsNs: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
376
383
  readonly assetId: v.NumberSchema<undefined>;
377
384
  readonly assetCode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
378
385
  readonly amountE18: v.OptionalSchema<v.ObjectSchema<{
@@ -396,11 +403,10 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
396
403
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
397
404
  }, undefined>, v.TransformAction<{
398
405
  legIndex: number;
399
- status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
400
- requestId?: string | undefined;
406
+ status: "unspecified" | "processing" | "credited" | "not_moved";
401
407
  transferId?: string | undefined;
402
408
  flowId?: string | undefined;
403
- acceptedAtTsNs: bigint;
409
+ creditedAtTsNs: bigint;
404
410
  assetId: number;
405
411
  assetCode?: string | undefined;
406
412
  amountE18?: {
@@ -415,14 +421,15 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
415
421
  errorCode: number;
416
422
  errorMessage?: string | undefined;
417
423
  }, {
418
- acceptedAtUnixMs: number | undefined;
419
- acceptedAtNs: string | undefined;
424
+ /** When the leg was credited; unset before. */
425
+ creditedAtUnixMs: number | undefined;
426
+ /** Exact credit time in nanoseconds since epoch, as a decimal string; unset before. */
427
+ creditedAtNs: string | undefined;
420
428
  quantity: string | undefined;
421
- /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
422
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
429
+ /** Why the leg caused its batch's refusal; unset for every other leg. */
430
+ errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "NOT_FOUND" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | "BATCH_TOO_MANY_SOURCES" | undefined;
423
431
  legIndex: number;
424
- status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
425
- requestId?: string | undefined;
432
+ status: "unspecified" | "processing" | "credited" | "not_moved";
426
433
  transferId?: string | undefined;
427
434
  flowId?: string | undefined;
428
435
  assetId: number;
@@ -436,6 +443,11 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
436
443
  }>]>, undefined>, readonly []>;
437
444
  }, undefined>;
438
445
  type BatchCreateInternalTransfersResult = v.InferOutput<typeof BatchCreateInternalTransfersResultSchema>;
446
+ declare const GetInternalTransferBatchInputSchema: v.StrictObjectSchema<{
447
+ /** Batch `requestId` returned by `internalTransfers.batchCreate`. */
448
+ readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
449
+ }, undefined>;
450
+ type GetInternalTransferBatchInput = v.InferInput<typeof GetInternalTransferBatchInputSchema>;
439
451
  declare const GetInternalTransferInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
440
452
  readonly requestId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
441
453
  readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
@@ -488,5 +500,5 @@ declare const GetInternalTransferResultSchema: v.SchemaWithPipe<readonly [v.Obje
488
500
  }>]>;
489
501
  type GetInternalTransferResult = v.InferOutput<typeof GetInternalTransferResultSchema>;
490
502
  //#endregion
491
- export { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, BatchCreateInternalTransfersResultSchema, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferInputSchema, GetInternalTransferResult, GetInternalTransferResultSchema, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferDestination, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestination, ResolvedInternalTransferDestinationSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
503
+ export { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, BatchCreateInternalTransfersResultSchema, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferBatchInput, GetInternalTransferBatchInputSchema, GetInternalTransferInput, GetInternalTransferInputSchema, GetInternalTransferResult, GetInternalTransferResultSchema, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferDestination, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestination, ResolvedInternalTransferDestinationSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
492
504
  //# sourceMappingURL=internal-transfers.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-transfers.schemas.d.ts","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.schemas.ts"],"mappings":";;;;cA6Ba,wCAAsC,EAAA,yBAAA,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoCvC,8BAA8B,EAAE,kBACjC;iBAGK,wCAAwC,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAA;;;;;;;;;;;;;;;KA0B7D,8BAA8B,EAAE,WACxC,kBAAkB;cAYT,2CAAyC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;KAa1C,sCAAsC,EAAE,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AAE,WACxC,kBAAkB;cAYT,2CAAyC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;KAa1C,sCAAsC,EAAE,mBACzC;iBAGK,4CAAwC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyB5C,+BAA+B,EAAE,YACzC,kBAAkB;iBAMN,8CAA8C,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAA;;;;;;;;;;;;;;KA8CnE,oCAAoC,EAAE,WAC9C,kBAAkB;KAEV,gCAAgC;cAEtC,sCAAoC,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4B9B,iCAAiC,EAAE,mBACpC;cAGE,0CAAwC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAWzC,qCAAqC,EAAE,mBACxC;cAKE,qCAAmC,EAAA;;;;KAKpC,gCAAgC,EAAE,kBACnC;cAGE,gCAA8B,EAAA,yBAAA,EAAA,aAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqB/B,2BAA2B,EAAE,kBAAkB;cAE9C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;KAehC,4BAA4B,EAAE,mBAAmB"}
@@ -90,16 +90,18 @@ function createCreateInternalTransferResultSchema() {
90
90
  function createBatchCreateInternalTransfersInputSchema(scales) {
91
91
  return v.pipe(v.strictObject({
92
92
  /**
93
- * Up to 10 transfers, run in order. Each leg debits its own `account` (the
94
- * resolved active account when omitted), and legs may repeat an asset, a source or a
95
- * destination. Each leg counts as one internal transfer against the rate limit.
93
+ * Up to 500 transfers, moved together, in order. Each leg debits its own `account`
94
+ * (the resolved active account when omitted). A batch debits at most 10 distinct
95
+ * source accounts and 50 distinct source account and asset pairs, and a source,
96
+ * destination and asset combination appears at most once; legs may otherwise repeat
97
+ * an asset, a source or a destination.
96
98
  */
97
99
  legs: v.pipe(v.array(v.strictObject({
98
100
  ...AccountScopeInputEntries,
99
101
  destination: InternalTransferDestinationInputSchema,
100
102
  assetId: PositiveUint32InputSchema,
101
103
  quantity: v.string()
102
- })), v.minLength(1, "A batch needs at least one leg."), v.maxLength(10, `A batch holds at most 10 legs.`)),
104
+ })), v.minLength(1, "A batch needs at least one leg."), v.maxLength(500, `A batch holds at most 500 legs.`)),
103
105
  /** Covers the whole batch; a retry must send the same legs in the same order. */
104
106
  idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1))
105
107
  }), v.transform(({ legs, idempotencyKey }) => ({
@@ -118,32 +120,41 @@ function createBatchCreateInternalTransfersInputSchema(scales) {
118
120
  const InternalTransferBatchLegResultSchema = v.pipe(v.object({
119
121
  legIndex: v.number(),
120
122
  status: enumLabelSchema(InternalTransferBatchLegStatusCodec.protoToOutput),
121
- requestId: OptionalResponseStringSchema,
123
+ /** Set once the batch is accepted for processing. */
122
124
  transferId: OptionalResponseStringSchema,
125
+ /** Lifecycle flow ID for `lifecycle.getAccountFlow`; set once the leg is credited. */
123
126
  flowId: OptionalResponseStringSchema,
124
- acceptedAtTsNs: v.optional(v.bigint(), 0n),
127
+ creditedAtTsNs: v.optional(v.bigint(), 0n),
125
128
  assetId: v.number(),
126
129
  assetCode: OptionalResponseStringSchema,
127
130
  amountE18: v.optional(U128Schema),
128
131
  destination: v.optional(ResolvedInternalTransferDestinationSchema),
129
132
  errorCode: v.optional(v.number(), 0),
130
133
  errorMessage: OptionalResponseStringSchema
131
- }), v.transform(({ acceptedAtTsNs, amountE18, errorCode, ...leg }) => ({
134
+ }), v.transform(({ creditedAtTsNs, amountE18, errorCode, ...leg }) => ({
132
135
  ...leg,
133
- acceptedAtUnixMs: acceptedAtTsNs ? tsNsToMs(acceptedAtTsNs) : void 0,
134
- acceptedAtNs: acceptedAtTsNs ? acceptedAtTsNs.toString() : void 0,
136
+ /** When the leg was credited; unset before. */
137
+ creditedAtUnixMs: creditedAtTsNs ? tsNsToMs(creditedAtTsNs) : void 0,
138
+ /** Exact credit time in nanoseconds since epoch, as a decimal string; unset before. */
139
+ creditedAtNs: creditedAtTsNs ? creditedAtTsNs.toString() : void 0,
135
140
  quantity: amountE18 ? scaledToDecimalOutput(fromU128(amountE18), 18) : void 0,
136
- /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
141
+ /** Why the leg caused its batch's refusal; unset for every other leg. */
137
142
  errorCode: errorCode ? internalTransferErrorCodeName(errorCode) : void 0
138
143
  })));
139
144
  const BatchCreateInternalTransfersResultSchema = v.object({
140
- /** Batch request ID; unset when the batch was refused. */
145
+ /**
146
+ * Batch request ID for `internalTransfers.getBatch`; unset when the batch was refused before
147
+ * it was accepted for processing.
148
+ */
141
149
  requestId: OptionalResponseStringSchema,
142
150
  status: enumLabelSchema(InternalTransferBatchStatusCodec.protoToOutput),
143
151
  /** One result per leg, in request order. */
144
152
  legs: v.optional(v.array(InternalTransferBatchLegResultSchema), [])
145
153
  });
146
154
  const TransferLookupIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
155
+ const GetInternalTransferBatchInputSchema = v.strictObject({
156
+ /** Batch `requestId` returned by `internalTransfers.batchCreate`. */
157
+ requestId: TransferLookupIdSchema });
147
158
  const GetInternalTransferInputSchema = v.pipe(v.union([v.strictObject({
148
159
  ...AccountScopeInputEntries,
149
160
  requestId: TransferLookupIdSchema
@@ -172,6 +183,6 @@ const GetInternalTransferResultSchema = v.pipe(v.object({
172
183
  acceptedAtNs: acceptedAtTsNs.toString()
173
184
  })));
174
185
  //#endregion
175
- export { BatchCreateInternalTransfersResultSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestinationSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
186
+ export { BatchCreateInternalTransfersResultSchema, GetInternalTransferBatchInputSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, InternalTransferDestinationInputSchema, ResolvedInternalTransferDestinationSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema };
176
187
 
177
188
  //# sourceMappingURL=internal-transfers.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-transfers.schemas.js","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.schemas.ts"],"sourcesContent":["import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { PositiveUint32InputSchema } from \"../shared.js\";\nimport * as v from \"valibot\";\nimport type * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport { idInputSchema, U128Schema } from \"../../shared/schemas.js\";\nimport { tsNsToMs } from \"../../utils/time.js\";\nimport {\n E18_SCALE,\n quantityInputToE18,\n scaledToDecimalOutput,\n type SdkScales,\n} from \"../../shared/decimal-surface.js\";\nimport {\n InternalTransferBatchLegStatusCodec,\n InternalTransferBatchStatusCodec,\n InternalTransferDestinationCodec,\n InternalTransferStatusCodec,\n internalTransferErrorCodeName,\n} from \"./internal-transfers.codecs.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n accountScopeToSubaccountIdOrZero,\n} from \"../../shared/account-scope.js\";\nimport { fromU128, toU128 } from \"../../utils/u128.js\";\n\nconst IdSchema = idInputSchema;\n\nexport const InternalTransferDestinationInputSchema = v.pipe(\n v.variant(\"type\", [\n v.strictObject({\n type: v.literal(\"account\"),\n accountId: IdSchema(\"accountId\"),\n }),\n v.strictObject({\n type: v.literal(\"subaccount\"),\n subaccountId: IdSchema(\"subaccountId\"),\n }),\n v.strictObject({\n type: v.literal(\"smartAccountAddress\"),\n address: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n ]),\n v.transform((destination) => {\n switch (destination.type) {\n case \"account\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.account,\n value: destination.accountId,\n } as const;\n case \"subaccount\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.subaccount,\n value: destination.subaccountId,\n } as const;\n case \"smartAccountAddress\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.smartAccountAddress,\n value: destination.address,\n } as const;\n }\n }),\n);\n\nexport type InternalTransferDestination = v.InferInput<\n typeof InternalTransferDestinationInputSchema\n>;\n\nexport function createCreateInternalTransferInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ account, quantity, ...input }) =>\n ({\n ...input,\n amountE18: toU128(\n quantityInputToE18({\n scales,\n assetId: input.assetId,\n quantity,\n }),\n ),\n subaccountId: accountScopeToSubaccountId(account),\n }) satisfies MessageInitShape<typeof Proto.CreateInternalTransferRequestSchema>,\n ),\n );\n}\n\nexport type CreateInternalTransferInput = v.InferInput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\nexport type CreateInternalTransferRequest = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\n\nconst NonEmptyResponseStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst OptionalResponseStringSchema = v.pipe(\n v.optional(v.pipe(v.string(), v.trim())),\n v.transform((value) => (value ? value : undefined)),\n);\n\nexport const ResolvedInternalTransferDestinationSchema = v.pipe(\n v.object({\n rootAccountPublicId: OptionalResponseStringSchema,\n subaccountPublicId: OptionalResponseStringSchema,\n smartAccountAddress: OptionalResponseStringSchema,\n }),\n v.transform(({ rootAccountPublicId, subaccountPublicId, smartAccountAddress }) => ({\n rootAccountId: rootAccountPublicId,\n subaccountId: subaccountPublicId,\n smartAccountAddress,\n })),\n);\n\nexport type ResolvedInternalTransferDestination = v.InferOutput<\n typeof ResolvedInternalTransferDestinationSchema\n>;\n\nexport function createCreateInternalTransferResultSchema() {\n return v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n assetId: v.number(),\n assetCode: NonEmptyResponseStringSchema,\n uAssetId: NonEmptyResponseStringSchema,\n amountE18: U128Schema,\n destination: v.optional(ResolvedInternalTransferDestinationSchema),\n status: enumLabelSchema(InternalTransferStatusCodec.protoToOutput),\n /** Lifecycle flow ID for `lifecycle.getAccountFlow`; empty when the server did not return one. */\n flowId: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n }),\n v.transform(({ acceptedAtTsNs, amountE18, ...result }) => ({\n ...result,\n acceptedAtUnixMs: tsNsToMs(acceptedAtTsNs),\n /** Exact acceptance time in nanoseconds since epoch, as a decimal string. */\n acceptedAtNs: acceptedAtTsNs.toString(),\n quantity: scaledToDecimalOutput(fromU128(amountE18), E18_SCALE),\n })),\n );\n}\n\nexport type CreateInternalTransferResult = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferResultSchema>\n>;\n\n/** The most legs one batch may carry. */\nexport const MAX_INTERNAL_TRANSFER_BATCH_LEGS = 10;\n\nexport function createBatchCreateInternalTransfersInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n /**\n * Up to 10 transfers, run in order. Each leg debits its own `account` (the\n * resolved active account when omitted), and legs may repeat an asset, a source or a\n * destination. Each leg counts as one internal transfer against the rate limit.\n */\n legs: v.pipe(\n v.array(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n }),\n ),\n v.minLength(1, \"A batch needs at least one leg.\"),\n v.maxLength(\n MAX_INTERNAL_TRANSFER_BATCH_LEGS,\n `A batch holds at most ${MAX_INTERNAL_TRANSFER_BATCH_LEGS} legs.`,\n ),\n ),\n /** Covers the whole batch; a retry must send the same legs in the same order. */\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ legs, idempotencyKey }) =>\n ({\n idempotencyKey,\n legs: legs.map(({ account, quantity, ...leg }) => ({\n ...leg,\n subaccountId: accountScopeToSubaccountIdOrZero(account),\n amountE18: toU128(\n quantityInputToE18({ scales, assetId: leg.assetId, quantity }),\n ),\n })),\n }) satisfies MessageInitShape<\n typeof Proto.BatchCreateInternalTransfersRequestSchema\n >,\n ),\n );\n}\n\nexport type BatchCreateInternalTransfersInput = v.InferInput<\n ReturnType<typeof createBatchCreateInternalTransfersInputSchema>\n>;\nexport type InternalTransferBatchLegInput = BatchCreateInternalTransfersInput[\"legs\"][number];\n\nconst InternalTransferBatchLegResultSchema = v.pipe(\n v.object({\n legIndex: v.number(),\n status: enumLabelSchema(InternalTransferBatchLegStatusCodec.protoToOutput),\n requestId: OptionalResponseStringSchema,\n transferId: OptionalResponseStringSchema,\n flowId: OptionalResponseStringSchema,\n acceptedAtTsNs: v.optional(v.bigint(), 0n),\n assetId: v.number(),\n assetCode: OptionalResponseStringSchema,\n amountE18: v.optional(U128Schema),\n destination: v.optional(ResolvedInternalTransferDestinationSchema),\n errorCode: v.optional(v.number(), 0),\n errorMessage: OptionalResponseStringSchema,\n }),\n v.transform(({ acceptedAtTsNs, amountE18, errorCode, ...leg }) => ({\n ...leg,\n acceptedAtUnixMs: acceptedAtTsNs ? tsNsToMs(acceptedAtTsNs) : undefined,\n acceptedAtNs: acceptedAtTsNs ? acceptedAtTsNs.toString() : undefined,\n quantity: amountE18 ? scaledToDecimalOutput(fromU128(amountE18), E18_SCALE) : undefined,\n /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */\n errorCode: errorCode ? internalTransferErrorCodeName(errorCode) : undefined,\n })),\n);\n\nexport type InternalTransferBatchLegResult = v.InferOutput<\n typeof InternalTransferBatchLegResultSchema\n>;\n\nexport const BatchCreateInternalTransfersResultSchema = v.object({\n /** Batch request ID; unset when the batch was refused. */\n requestId: OptionalResponseStringSchema,\n status: enumLabelSchema(InternalTransferBatchStatusCodec.protoToOutput),\n /** One result per leg, in request order. */\n legs: v.optional(v.array(InternalTransferBatchLegResultSchema), []),\n});\n\nexport type BatchCreateInternalTransfersResult = v.InferOutput<\n typeof BatchCreateInternalTransfersResultSchema\n>;\n\nconst TransferLookupIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\n\nexport const GetInternalTransferInputSchema = v.pipe(\n v.union(\n [\n v.strictObject({ ...AccountScopeInputEntries, requestId: TransferLookupIdSchema }),\n v.strictObject({ ...AccountScopeInputEntries, transferId: TransferLookupIdSchema }),\n ],\n \"Pass exactly one of requestId or transferId.\",\n ),\n v.transform(\n ({ account, ...selector }) =>\n ({\n subaccountId: accountScopeToSubaccountId(account),\n identifier:\n \"requestId\" in selector\n ? { case: \"requestId\", value: selector.requestId }\n : { case: \"transferId\", value: selector.transferId },\n }) satisfies MessageInitShape<typeof Proto.GetInternalTransferRequestSchema>,\n ),\n);\n\n/** Selects an accepted transfer by exactly one of its `requestId` or `transferId`. */\nexport type GetInternalTransferInput = v.InferInput<typeof GetInternalTransferInputSchema>;\n\nexport const GetInternalTransferResultSchema = v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n flowId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n }),\n v.transform(({ acceptedAtTsNs, ...result }) => ({\n ...result,\n acceptedAtUnixMs: tsNsToMs(acceptedAtTsNs),\n /** Exact acceptance time in nanoseconds since epoch, as a decimal string. */\n acceptedAtNs: acceptedAtTsNs.toString(),\n })),\n);\n\nexport type GetInternalTransferResult = v.InferOutput<typeof GetInternalTransferResultSchema>;\n"],"mappings":";;;;;;;;;;AA2BA,MAAM,WAAW;AAEjB,MAAa,y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AAS,GAAG,gBACV;CACG,cAAc,2BAA2B,OAAO;CAChD,YACI,eAAe,WACT;EAAE,MAAM;EAAa,OAAO,SAAS;CAAU,IAC/C;EAAE,MAAM;EAAc,OAAO,SAAS;CAAW;AAC/D,EACR,CACJ;AAKA,MAAa,kCAAkC,EAAE,KAC7C,EAAE,OAAO;CACL,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,gBAAgB,EAAE,OAAO;AAC7B,CAAC,GACD,EAAE,WAAW,EAAE,gBAAgB,GAAG,cAAc;CAC5C,GAAG;CACH,kBAAkB,SAAS,cAAc;;CAEzC,cAAc,eAAe,SAAS;AAC1C,EAAE,CACN"}
1
+ {"version":3,"file":"internal-transfers.schemas.js","names":[],"sources":["../../../src/services/internal-transfers/internal-transfers.schemas.ts"],"sourcesContent":["import type { MessageInitShape } from \"@bufbuild/protobuf\";\nimport { PositiveUint32InputSchema } from \"../shared.js\";\nimport * as v from \"valibot\";\nimport type * as Proto from \"../../gen/transfer/v1/internal_transfer_pb.js\";\nimport { idInputSchema, U128Schema } from \"../../shared/schemas.js\";\nimport { tsNsToMs } from \"../../utils/time.js\";\nimport {\n E18_SCALE,\n quantityInputToE18,\n scaledToDecimalOutput,\n type SdkScales,\n} from \"../../shared/decimal-surface.js\";\nimport {\n InternalTransferBatchLegStatusCodec,\n InternalTransferBatchStatusCodec,\n InternalTransferDestinationCodec,\n InternalTransferStatusCodec,\n internalTransferErrorCodeName,\n} from \"./internal-transfers.codecs.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n accountScopeToSubaccountIdOrZero,\n} from \"../../shared/account-scope.js\";\nimport { fromU128, toU128 } from \"../../utils/u128.js\";\n\nconst IdSchema = idInputSchema;\n\nexport const InternalTransferDestinationInputSchema = v.pipe(\n v.variant(\"type\", [\n v.strictObject({\n type: v.literal(\"account\"),\n accountId: IdSchema(\"accountId\"),\n }),\n v.strictObject({\n type: v.literal(\"subaccount\"),\n subaccountId: IdSchema(\"subaccountId\"),\n }),\n v.strictObject({\n type: v.literal(\"smartAccountAddress\"),\n address: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n ]),\n v.transform((destination) => {\n switch (destination.type) {\n case \"account\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.account,\n value: destination.accountId,\n } as const;\n case \"subaccount\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.subaccount,\n value: destination.subaccountId,\n } as const;\n case \"smartAccountAddress\":\n return {\n case: InternalTransferDestinationCodec.inputToProtoCase.smartAccountAddress,\n value: destination.address,\n } as const;\n }\n }),\n);\n\nexport type InternalTransferDestination = v.InferInput<\n typeof InternalTransferDestinationInputSchema\n>;\n\nexport function createCreateInternalTransferInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ account, quantity, ...input }) =>\n ({\n ...input,\n amountE18: toU128(\n quantityInputToE18({\n scales,\n assetId: input.assetId,\n quantity,\n }),\n ),\n subaccountId: accountScopeToSubaccountId(account),\n }) satisfies MessageInitShape<typeof Proto.CreateInternalTransferRequestSchema>,\n ),\n );\n}\n\nexport type CreateInternalTransferInput = v.InferInput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\nexport type CreateInternalTransferRequest = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferInputSchema>\n>;\n\nconst NonEmptyResponseStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst OptionalResponseStringSchema = v.pipe(\n v.optional(v.pipe(v.string(), v.trim())),\n v.transform((value) => (value ? value : undefined)),\n);\n\nexport const ResolvedInternalTransferDestinationSchema = v.pipe(\n v.object({\n rootAccountPublicId: OptionalResponseStringSchema,\n subaccountPublicId: OptionalResponseStringSchema,\n smartAccountAddress: OptionalResponseStringSchema,\n }),\n v.transform(({ rootAccountPublicId, subaccountPublicId, smartAccountAddress }) => ({\n rootAccountId: rootAccountPublicId,\n subaccountId: subaccountPublicId,\n smartAccountAddress,\n })),\n);\n\nexport type ResolvedInternalTransferDestination = v.InferOutput<\n typeof ResolvedInternalTransferDestinationSchema\n>;\n\nexport function createCreateInternalTransferResultSchema() {\n return v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n assetId: v.number(),\n assetCode: NonEmptyResponseStringSchema,\n uAssetId: NonEmptyResponseStringSchema,\n amountE18: U128Schema,\n destination: v.optional(ResolvedInternalTransferDestinationSchema),\n status: enumLabelSchema(InternalTransferStatusCodec.protoToOutput),\n /** Lifecycle flow ID for `lifecycle.getAccountFlow`; empty when the server did not return one. */\n flowId: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n }),\n v.transform(({ acceptedAtTsNs, amountE18, ...result }) => ({\n ...result,\n acceptedAtUnixMs: tsNsToMs(acceptedAtTsNs),\n /** Exact acceptance time in nanoseconds since epoch, as a decimal string. */\n acceptedAtNs: acceptedAtTsNs.toString(),\n quantity: scaledToDecimalOutput(fromU128(amountE18), E18_SCALE),\n })),\n );\n}\n\nexport type CreateInternalTransferResult = v.InferOutput<\n ReturnType<typeof createCreateInternalTransferResultSchema>\n>;\n\n/** The most legs one batch may carry. */\nexport const MAX_INTERNAL_TRANSFER_BATCH_LEGS = 500;\n\nexport function createBatchCreateInternalTransfersInputSchema(scales: SdkScales) {\n return v.pipe(\n v.strictObject({\n /**\n * Up to 500 transfers, moved together, in order. Each leg debits its own `account`\n * (the resolved active account when omitted). A batch debits at most 10 distinct\n * source accounts and 50 distinct source account and asset pairs, and a source,\n * destination and asset combination appears at most once; legs may otherwise repeat\n * an asset, a source or a destination.\n */\n legs: v.pipe(\n v.array(\n v.strictObject({\n ...AccountScopeInputEntries,\n destination: InternalTransferDestinationInputSchema,\n assetId: PositiveUint32InputSchema,\n quantity: v.string(),\n }),\n ),\n v.minLength(1, \"A batch needs at least one leg.\"),\n v.maxLength(\n MAX_INTERNAL_TRANSFER_BATCH_LEGS,\n `A batch holds at most ${MAX_INTERNAL_TRANSFER_BATCH_LEGS} legs.`,\n ),\n ),\n /** Covers the whole batch; a retry must send the same legs in the same order. */\n idempotencyKey: v.pipe(v.string(), v.trim(), v.minLength(1)),\n }),\n v.transform(\n ({ legs, idempotencyKey }) =>\n ({\n idempotencyKey,\n legs: legs.map(({ account, quantity, ...leg }) => ({\n ...leg,\n subaccountId: accountScopeToSubaccountIdOrZero(account),\n amountE18: toU128(\n quantityInputToE18({ scales, assetId: leg.assetId, quantity }),\n ),\n })),\n }) satisfies MessageInitShape<\n typeof Proto.BatchCreateInternalTransfersRequestSchema\n >,\n ),\n );\n}\n\nexport type BatchCreateInternalTransfersInput = v.InferInput<\n ReturnType<typeof createBatchCreateInternalTransfersInputSchema>\n>;\nexport type InternalTransferBatchLegInput = BatchCreateInternalTransfersInput[\"legs\"][number];\n\nconst InternalTransferBatchLegResultSchema = v.pipe(\n v.object({\n legIndex: v.number(),\n status: enumLabelSchema(InternalTransferBatchLegStatusCodec.protoToOutput),\n /** Set once the batch is accepted for processing. */\n transferId: OptionalResponseStringSchema,\n /** Lifecycle flow ID for `lifecycle.getAccountFlow`; set once the leg is credited. */\n flowId: OptionalResponseStringSchema,\n creditedAtTsNs: v.optional(v.bigint(), 0n),\n assetId: v.number(),\n assetCode: OptionalResponseStringSchema,\n amountE18: v.optional(U128Schema),\n destination: v.optional(ResolvedInternalTransferDestinationSchema),\n errorCode: v.optional(v.number(), 0),\n errorMessage: OptionalResponseStringSchema,\n }),\n v.transform(({ creditedAtTsNs, amountE18, errorCode, ...leg }) => ({\n ...leg,\n /** When the leg was credited; unset before. */\n creditedAtUnixMs: creditedAtTsNs ? tsNsToMs(creditedAtTsNs) : undefined,\n /** Exact credit time in nanoseconds since epoch, as a decimal string; unset before. */\n creditedAtNs: creditedAtTsNs ? creditedAtTsNs.toString() : undefined,\n quantity: amountE18 ? scaledToDecimalOutput(fromU128(amountE18), E18_SCALE) : undefined,\n /** Why the leg caused its batch's refusal; unset for every other leg. */\n errorCode: errorCode ? internalTransferErrorCodeName(errorCode) : undefined,\n })),\n);\n\nexport type InternalTransferBatchLegResult = v.InferOutput<\n typeof InternalTransferBatchLegResultSchema\n>;\n\nexport const BatchCreateInternalTransfersResultSchema = v.object({\n /**\n * Batch request ID for `internalTransfers.getBatch`; unset when the batch was refused before\n * it was accepted for processing.\n */\n requestId: OptionalResponseStringSchema,\n status: enumLabelSchema(InternalTransferBatchStatusCodec.protoToOutput),\n /** One result per leg, in request order. */\n legs: v.optional(v.array(InternalTransferBatchLegResultSchema), []),\n});\n\nexport type BatchCreateInternalTransfersResult = v.InferOutput<\n typeof BatchCreateInternalTransfersResultSchema\n>;\n\nconst TransferLookupIdSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\n\nexport const GetInternalTransferBatchInputSchema = v.strictObject({\n /** Batch `requestId` returned by `internalTransfers.batchCreate`. */\n requestId: TransferLookupIdSchema,\n});\n\nexport type GetInternalTransferBatchInput = v.InferInput<\n typeof GetInternalTransferBatchInputSchema\n>;\n\nexport const GetInternalTransferInputSchema = v.pipe(\n v.union(\n [\n v.strictObject({ ...AccountScopeInputEntries, requestId: TransferLookupIdSchema }),\n v.strictObject({ ...AccountScopeInputEntries, transferId: TransferLookupIdSchema }),\n ],\n \"Pass exactly one of requestId or transferId.\",\n ),\n v.transform(\n ({ account, ...selector }) =>\n ({\n subaccountId: accountScopeToSubaccountId(account),\n identifier:\n \"requestId\" in selector\n ? { case: \"requestId\", value: selector.requestId }\n : { case: \"transferId\", value: selector.transferId },\n }) satisfies MessageInitShape<typeof Proto.GetInternalTransferRequestSchema>,\n ),\n);\n\n/** Selects an accepted transfer by exactly one of its `requestId` or `transferId`. */\nexport type GetInternalTransferInput = v.InferInput<typeof GetInternalTransferInputSchema>;\n\nexport const GetInternalTransferResultSchema = v.pipe(\n v.object({\n requestId: NonEmptyResponseStringSchema,\n transferId: NonEmptyResponseStringSchema,\n flowId: NonEmptyResponseStringSchema,\n acceptedAtTsNs: v.bigint(),\n }),\n v.transform(({ acceptedAtTsNs, ...result }) => ({\n ...result,\n acceptedAtUnixMs: tsNsToMs(acceptedAtTsNs),\n /** Exact acceptance time in nanoseconds since epoch, as a decimal string. */\n acceptedAtNs: acceptedAtTsNs.toString(),\n })),\n);\n\nexport type GetInternalTransferResult = v.InferOutput<typeof GetInternalTransferResultSchema>;\n"],"mappings":";;;;;;;;;;AA2BA,MAAM,WAAW;AAEjB,MAAa,yCAAyC,EAAE,KACpD,EAAE,QAAQ,QAAQ;CACd,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,SAAS;EACzB,WAAW,SAAS,WAAW;CACnC,CAAC;CACD,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,YAAY;EAC5B,cAAc,SAAS,cAAc;CACzC,CAAC;CACD,EAAE,aAAa;EACX,MAAM,EAAE,QAAQ,qBAAqB;EACrC,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;CACxD,CAAC;AACL,CAAC,GACD,EAAE,WAAW,gBAAgB;CACzB,QAAQ,YAAY,MAApB;EACI,KAAK,WACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;EACJ,KAAK,cACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;EACJ,KAAK,uBACD,OAAO;GACH,MAAM,iCAAiC,iBAAiB;GACxD,OAAO,YAAY;EACvB;CACR;AACJ,CAAC,CACL;AAMA,SAAgB,wCAAwC,QAAmB;CACvE,OAAO,EAAE,KACL,EAAE,aAAa;EACX,GAAG;EACH,aAAa;EACb,SAAS;EACT,UAAU,EAAE,OAAO;EACnB,gBAAgB,EAAE,KAAK,EAAE,OAAO,GAAG,EAA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WAAW;CACX,QAAQ,gBAAgB,iCAAiC,aAAa;;CAEtE,MAAM,EAAE,SAAS,EAAE,MAAM,oCAAoC,GAAG,CAAC,CAAC;AACtE,CAAC;AAMD,MAAM,yBAAyB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;AAE1E,MAAa,sCAAsC,EAAE,aAAa;;AAE9D,WAAW,uBACf,CAAC;AAMD,MAAa,iCAAiC,EAAE,KAC5C,EAAE,MACE,CACI,EAAE,aAAa;CAAE,GAAG;CAA0B,WAAW;AAAuB,CAAC,GACjF,EAAE,aAAa;CAAE,GAAG;CAA0B,YAAY;AAAuB,CAAC,CACtF,GACA,8CACJ,GACA,EAAE,WACG,EAAE,SAAS,GAAG,gBACV;CACG,cAAc,2BAA2B,OAAO;CAChD,YACI,eAAe,WACT;EAAE,MAAM;EAAa,OAAO,SAAS;CAAU,IAC/C;EAAE,MAAM;EAAc,OAAO,SAAS;CAAW;AAC/D,EACR,CACJ;AAKA,MAAa,kCAAkC,EAAE,KAC7C,EAAE,OAAO;CACL,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,gBAAgB,EAAE,OAAO;AAC7B,CAAC,GACD,EAAE,WAAW,EAAE,gBAAgB,GAAG,cAAc;CAC5C,GAAG;CACH,kBAAkB,SAAS,cAAc;;CAEzC,cAAc,eAAe,SAAS;AAC1C,EAAE,CACN"}
@@ -1,3 +1,3 @@
1
- import { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferDestination, ResolvedInternalTransferDestination } from "./internal-transfers.schemas.js";
1
+ import { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferBatchInput, GetInternalTransferInput, GetInternalTransferResult, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferDestination, ResolvedInternalTransferDestination } from "./internal-transfers.schemas.js";
2
2
  import { InternalTransferBatchLegStatus, InternalTransferBatchStatus, InternalTransferErrorCode, InternalTransferStatus } from "./internal-transfers.codecs.js";
3
- export type { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferInput, GetInternalTransferResult, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferBatchLegStatus, InternalTransferBatchStatus, InternalTransferDestination, InternalTransferErrorCode, InternalTransferStatus, ResolvedInternalTransferDestination };
3
+ export type { BatchCreateInternalTransfersInput, BatchCreateInternalTransfersResult, CreateInternalTransferInput, CreateInternalTransferResult, GetInternalTransferBatchInput, GetInternalTransferInput, GetInternalTransferResult, InternalTransferBatchLegInput, InternalTransferBatchLegResult, InternalTransferBatchLegStatus, InternalTransferBatchStatus, InternalTransferDestination, InternalTransferErrorCode, InternalTransferStatus, ResolvedInternalTransferDestination };