@debridge-finance/borderless-validation-sdk 0.0.1 → 0.0.2

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 (286) hide show
  1. package/README.md +164 -0
  2. package/dist/cjs/helpers/address.js +53 -18
  3. package/dist/cjs/helpers/address.js.map +1 -1
  4. package/dist/cjs/helpers/evm-action.js +3 -3
  5. package/dist/cjs/helpers/evm-action.js.map +1 -1
  6. package/dist/cjs/helpers/evm-dln-hook-pack.js +87 -0
  7. package/dist/cjs/helpers/evm-dln-hook-pack.js.map +1 -0
  8. package/dist/cjs/helpers/evm-gas-compensation-tx.js +102 -0
  9. package/dist/cjs/helpers/evm-gas-compensation-tx.js.map +1 -0
  10. package/dist/cjs/helpers/evm-intent-id.js +27 -13
  11. package/dist/cjs/helpers/evm-intent-id.js.map +1 -1
  12. package/dist/cjs/helpers/evm-trade-amounts.js +36 -1
  13. package/dist/cjs/helpers/evm-trade-amounts.js.map +1 -1
  14. package/dist/cjs/helpers/gas-compensation.js +36 -0
  15. package/dist/cjs/helpers/gas-compensation.js.map +1 -0
  16. package/dist/cjs/helpers/hex.js +24 -0
  17. package/dist/cjs/helpers/hex.js.map +1 -0
  18. package/dist/cjs/helpers/placeholder.js +174 -0
  19. package/dist/cjs/helpers/placeholder.js.map +1 -0
  20. package/dist/cjs/helpers/sets.js +13 -0
  21. package/dist/cjs/helpers/sets.js.map +1 -0
  22. package/dist/cjs/types/enums.js +32 -2
  23. package/dist/cjs/types/enums.js.map +1 -1
  24. package/dist/cjs/types/request.js +36 -3
  25. package/dist/cjs/types/request.js.map +1 -1
  26. package/dist/cjs/types/response.js +125 -5
  27. package/dist/cjs/types/response.js.map +1 -1
  28. package/dist/cjs/types/validation.js +81 -10
  29. package/dist/cjs/types/validation.js.map +1 -1
  30. package/dist/cjs/validations/compensation-hook.js +203 -0
  31. package/dist/cjs/validations/compensation-hook.js.map +1 -0
  32. package/dist/cjs/validations/evm-caveats.js +4 -14
  33. package/dist/cjs/validations/evm-caveats.js.map +1 -1
  34. package/dist/cjs/validations/evm-op-budget.js +13 -10
  35. package/dist/cjs/validations/evm-op-budget.js.map +1 -1
  36. package/dist/cjs/validations/evm-op-hook.js +410 -3
  37. package/dist/cjs/validations/evm-op-hook.js.map +1 -1
  38. package/dist/cjs/validations/evm-op-wrap.js +10 -7
  39. package/dist/cjs/validations/evm-op-wrap.js.map +1 -1
  40. package/dist/cjs/validations/evm-required-actions.js +7 -9
  41. package/dist/cjs/validations/evm-required-actions.js.map +1 -1
  42. package/dist/cjs/validations/evm-sign712-metamask.js +17 -94
  43. package/dist/cjs/validations/evm-sign712-metamask.js.map +1 -1
  44. package/dist/cjs/validations/evm-sign712-shared.js +116 -0
  45. package/dist/cjs/validations/evm-sign712-shared.js.map +1 -0
  46. package/dist/cjs/validations/evm-sign7702.js +34 -22
  47. package/dist/cjs/validations/evm-sign7702.js.map +1 -1
  48. package/dist/cjs/validations/hooks-common.js +252 -37
  49. package/dist/cjs/validations/hooks-common.js.map +1 -1
  50. package/dist/cjs/validations/intent-destinations.js +197 -0
  51. package/dist/cjs/validations/intent-destinations.js.map +1 -0
  52. package/dist/cjs/validations/intent-tokens.js +347 -0
  53. package/dist/cjs/validations/intent-tokens.js.map +1 -0
  54. package/dist/cjs/validations/intent.js +288 -0
  55. package/dist/cjs/validations/intent.js.map +1 -0
  56. package/dist/cjs/validations/required-actions.js +7 -7
  57. package/dist/cjs/validations/required-actions.js.map +1 -1
  58. package/dist/cjs/validations/solana-hook.js +33 -22
  59. package/dist/cjs/validations/solana-hook.js.map +1 -1
  60. package/dist/cjs/validations/solana-op-budget.js +56 -18
  61. package/dist/cjs/validations/solana-op-budget.js.map +1 -1
  62. package/dist/cjs/validations/solana-op-wrap.js +46 -13
  63. package/dist/cjs/validations/solana-op-wrap.js.map +1 -1
  64. package/dist/cjs/validations/solana-required-actions.js +3 -3
  65. package/dist/cjs/validations/solana-required-actions.js.map +1 -1
  66. package/dist/cjs/validations/solana-transaction.js +5 -5
  67. package/dist/cjs/validations/solana-transaction.js.map +1 -1
  68. package/dist/cjs/validations/trade-grouping.js +139 -1
  69. package/dist/cjs/validations/trade-grouping.js.map +1 -1
  70. package/dist/cjs/validations/trades.js +168 -40
  71. package/dist/cjs/validations/trades.js.map +1 -1
  72. package/dist/cjs/validator.js +11 -16
  73. package/dist/cjs/validator.js.map +1 -1
  74. package/dist/cjs/whitelists/environment-config.js +47 -28
  75. package/dist/cjs/whitelists/environment-config.js.map +1 -1
  76. package/dist/cjs/whitelists/evm/caveat-enforcers.js +21 -5
  77. package/dist/cjs/whitelists/evm/caveat-enforcers.js.map +1 -1
  78. package/dist/cjs/whitelists/evm/delegation-manager.js +7 -2
  79. package/dist/cjs/whitelists/evm/delegation-manager.js.map +1 -1
  80. package/dist/cjs/whitelists/evm/eip7702-delegation.js +7 -2
  81. package/dist/cjs/whitelists/evm/eip7702-delegation.js.map +1 -1
  82. package/dist/cjs/whitelists/evm/index.js +14 -1
  83. package/dist/cjs/whitelists/evm/index.js.map +1 -1
  84. package/dist/cjs/whitelists/evm/metamask-delegation-chains.js +16 -0
  85. package/dist/cjs/whitelists/evm/metamask-delegation-chains.js.map +1 -0
  86. package/dist/cjs/whitelists/evm/permit2.js +16 -12
  87. package/dist/cjs/whitelists/evm/permit2.js.map +1 -1
  88. package/dist/cjs/whitelists/evm/weth.js +16 -5
  89. package/dist/cjs/whitelists/evm/weth.js.map +1 -1
  90. package/dist/cjs/whitelists/solana/intent-signature.js +0 -1
  91. package/dist/cjs/whitelists/solana/intent-signature.js.map +1 -1
  92. package/dist/cjs/whitelists/subscription-to-chain-id.js +10 -0
  93. package/dist/cjs/whitelists/subscription-to-chain-id.js.map +1 -1
  94. package/dist/cjs/whitelists/types.js +13 -3
  95. package/dist/cjs/whitelists/types.js.map +1 -1
  96. package/dist/esm/helpers/address.js +48 -17
  97. package/dist/esm/helpers/address.js.map +1 -1
  98. package/dist/esm/helpers/evm-action.js +3 -3
  99. package/dist/esm/helpers/evm-action.js.map +1 -1
  100. package/dist/esm/helpers/evm-dln-hook-pack.js +82 -0
  101. package/dist/esm/helpers/evm-dln-hook-pack.js.map +1 -0
  102. package/dist/esm/helpers/evm-gas-compensation-tx.js +99 -0
  103. package/dist/esm/helpers/evm-gas-compensation-tx.js.map +1 -0
  104. package/dist/esm/helpers/evm-intent-id.js +27 -13
  105. package/dist/esm/helpers/evm-intent-id.js.map +1 -1
  106. package/dist/esm/helpers/evm-trade-amounts.js +36 -1
  107. package/dist/esm/helpers/evm-trade-amounts.js.map +1 -1
  108. package/dist/esm/helpers/gas-compensation.js +33 -0
  109. package/dist/esm/helpers/gas-compensation.js.map +1 -0
  110. package/dist/esm/helpers/hex.js +20 -0
  111. package/dist/esm/helpers/hex.js.map +1 -0
  112. package/dist/esm/helpers/placeholder.js +168 -0
  113. package/dist/esm/helpers/placeholder.js.map +1 -0
  114. package/dist/esm/helpers/sets.js +10 -0
  115. package/dist/esm/helpers/sets.js.map +1 -0
  116. package/dist/esm/types/enums.js +31 -1
  117. package/dist/esm/types/enums.js.map +1 -1
  118. package/dist/esm/types/request.js +37 -4
  119. package/dist/esm/types/request.js.map +1 -1
  120. package/dist/esm/types/response.js +124 -4
  121. package/dist/esm/types/response.js.map +1 -1
  122. package/dist/esm/types/validation.js +81 -10
  123. package/dist/esm/types/validation.js.map +1 -1
  124. package/dist/esm/validations/compensation-hook.js +200 -0
  125. package/dist/esm/validations/compensation-hook.js.map +1 -0
  126. package/dist/esm/validations/evm-caveats.js +4 -14
  127. package/dist/esm/validations/evm-caveats.js.map +1 -1
  128. package/dist/esm/validations/evm-op-budget.js +13 -10
  129. package/dist/esm/validations/evm-op-budget.js.map +1 -1
  130. package/dist/esm/validations/evm-op-hook.js +409 -2
  131. package/dist/esm/validations/evm-op-hook.js.map +1 -1
  132. package/dist/esm/validations/evm-op-wrap.js +10 -7
  133. package/dist/esm/validations/evm-op-wrap.js.map +1 -1
  134. package/dist/esm/validations/evm-required-actions.js +7 -9
  135. package/dist/esm/validations/evm-required-actions.js.map +1 -1
  136. package/dist/esm/validations/evm-sign712-metamask.js +17 -94
  137. package/dist/esm/validations/evm-sign712-metamask.js.map +1 -1
  138. package/dist/esm/validations/evm-sign712-shared.js +110 -0
  139. package/dist/esm/validations/evm-sign712-shared.js.map +1 -0
  140. package/dist/esm/validations/evm-sign7702.js +33 -22
  141. package/dist/esm/validations/evm-sign7702.js.map +1 -1
  142. package/dist/esm/validations/hooks-common.js +251 -38
  143. package/dist/esm/validations/hooks-common.js.map +1 -1
  144. package/dist/esm/validations/intent-destinations.js +194 -0
  145. package/dist/esm/validations/intent-destinations.js.map +1 -0
  146. package/dist/esm/validations/intent-tokens.js +344 -0
  147. package/dist/esm/validations/intent-tokens.js.map +1 -0
  148. package/dist/esm/validations/intent.js +285 -0
  149. package/dist/esm/validations/intent.js.map +1 -0
  150. package/dist/esm/validations/required-actions.js +7 -7
  151. package/dist/esm/validations/required-actions.js.map +1 -1
  152. package/dist/esm/validations/solana-hook.js +35 -24
  153. package/dist/esm/validations/solana-hook.js.map +1 -1
  154. package/dist/esm/validations/solana-op-budget.js +56 -18
  155. package/dist/esm/validations/solana-op-budget.js.map +1 -1
  156. package/dist/esm/validations/solana-op-wrap.js +47 -14
  157. package/dist/esm/validations/solana-op-wrap.js.map +1 -1
  158. package/dist/esm/validations/solana-required-actions.js +3 -3
  159. package/dist/esm/validations/solana-required-actions.js.map +1 -1
  160. package/dist/esm/validations/solana-transaction.js +7 -7
  161. package/dist/esm/validations/solana-transaction.js.map +1 -1
  162. package/dist/esm/validations/trade-grouping.js +139 -1
  163. package/dist/esm/validations/trade-grouping.js.map +1 -1
  164. package/dist/esm/validations/trades.js +169 -41
  165. package/dist/esm/validations/trades.js.map +1 -1
  166. package/dist/esm/validator.js +11 -16
  167. package/dist/esm/validator.js.map +1 -1
  168. package/dist/esm/whitelists/environment-config.js +47 -28
  169. package/dist/esm/whitelists/environment-config.js.map +1 -1
  170. package/dist/esm/whitelists/evm/caveat-enforcers.js +20 -4
  171. package/dist/esm/whitelists/evm/caveat-enforcers.js.map +1 -1
  172. package/dist/esm/whitelists/evm/delegation-manager.js +6 -1
  173. package/dist/esm/whitelists/evm/delegation-manager.js.map +1 -1
  174. package/dist/esm/whitelists/evm/eip7702-delegation.js +6 -1
  175. package/dist/esm/whitelists/evm/eip7702-delegation.js.map +1 -1
  176. package/dist/esm/whitelists/evm/index.js +4 -4
  177. package/dist/esm/whitelists/evm/index.js.map +1 -1
  178. package/dist/esm/whitelists/evm/metamask-delegation-chains.js +13 -0
  179. package/dist/esm/whitelists/evm/metamask-delegation-chains.js.map +1 -0
  180. package/dist/esm/whitelists/evm/permit2.js +9 -5
  181. package/dist/esm/whitelists/evm/permit2.js.map +1 -1
  182. package/dist/esm/whitelists/evm/weth.js +16 -5
  183. package/dist/esm/whitelists/evm/weth.js.map +1 -1
  184. package/dist/esm/whitelists/solana/intent-signature.js +0 -1
  185. package/dist/esm/whitelists/solana/intent-signature.js.map +1 -1
  186. package/dist/esm/whitelists/subscription-to-chain-id.js +9 -0
  187. package/dist/esm/whitelists/subscription-to-chain-id.js.map +1 -1
  188. package/dist/esm/whitelists/types.js +14 -5
  189. package/dist/esm/whitelists/types.js.map +1 -1
  190. package/dist/types/helpers/address.d.ts +7 -7
  191. package/dist/types/helpers/address.d.ts.map +1 -1
  192. package/dist/types/helpers/evm-dln-hook-pack.d.ts +19 -0
  193. package/dist/types/helpers/evm-dln-hook-pack.d.ts.map +1 -0
  194. package/dist/types/helpers/evm-gas-compensation-tx.d.ts +13 -0
  195. package/dist/types/helpers/evm-gas-compensation-tx.d.ts.map +1 -0
  196. package/dist/types/helpers/evm-intent-id.d.ts.map +1 -1
  197. package/dist/types/helpers/evm-trade-amounts.d.ts +2 -2
  198. package/dist/types/helpers/evm-trade-amounts.d.ts.map +1 -1
  199. package/dist/types/helpers/gas-compensation.d.ts +10 -0
  200. package/dist/types/helpers/gas-compensation.d.ts.map +1 -0
  201. package/dist/types/helpers/hex.d.ts +3 -0
  202. package/dist/types/helpers/hex.d.ts.map +1 -0
  203. package/dist/types/helpers/placeholder.d.ts +41 -0
  204. package/dist/types/helpers/placeholder.d.ts.map +1 -0
  205. package/dist/types/helpers/sets.d.ts +2 -0
  206. package/dist/types/helpers/sets.d.ts.map +1 -0
  207. package/dist/types/types/enums.d.ts +24 -1
  208. package/dist/types/types/enums.d.ts.map +1 -1
  209. package/dist/types/types/request.d.ts +21 -11
  210. package/dist/types/types/request.d.ts.map +1 -1
  211. package/dist/types/types/response.d.ts +1015 -17
  212. package/dist/types/types/response.d.ts.map +1 -1
  213. package/dist/types/types/validation.d.ts +73 -11
  214. package/dist/types/types/validation.d.ts.map +1 -1
  215. package/dist/types/validations/compensation-hook.d.ts +3 -0
  216. package/dist/types/validations/compensation-hook.d.ts.map +1 -0
  217. package/dist/types/validations/evm-caveats.d.ts.map +1 -1
  218. package/dist/types/validations/evm-op-budget.d.ts +2 -2
  219. package/dist/types/validations/evm-op-budget.d.ts.map +1 -1
  220. package/dist/types/validations/evm-op-hook.d.ts +4 -2
  221. package/dist/types/validations/evm-op-hook.d.ts.map +1 -1
  222. package/dist/types/validations/evm-op-wrap.d.ts +2 -2
  223. package/dist/types/validations/evm-op-wrap.d.ts.map +1 -1
  224. package/dist/types/validations/evm-required-actions.d.ts +2 -2
  225. package/dist/types/validations/evm-required-actions.d.ts.map +1 -1
  226. package/dist/types/validations/evm-sign712-metamask.d.ts.map +1 -1
  227. package/dist/types/validations/evm-sign712-shared.d.ts +7 -0
  228. package/dist/types/validations/evm-sign712-shared.d.ts.map +1 -0
  229. package/dist/types/validations/evm-sign7702.d.ts +2 -1
  230. package/dist/types/validations/evm-sign7702.d.ts.map +1 -1
  231. package/dist/types/validations/hooks-common.d.ts +1 -0
  232. package/dist/types/validations/hooks-common.d.ts.map +1 -1
  233. package/dist/types/validations/intent-destinations.d.ts +4 -0
  234. package/dist/types/validations/intent-destinations.d.ts.map +1 -0
  235. package/dist/types/validations/intent-tokens.d.ts +4 -0
  236. package/dist/types/validations/intent-tokens.d.ts.map +1 -0
  237. package/dist/types/validations/intent.d.ts +5 -0
  238. package/dist/types/validations/intent.d.ts.map +1 -0
  239. package/dist/types/validations/required-actions.d.ts +2 -1
  240. package/dist/types/validations/required-actions.d.ts.map +1 -1
  241. package/dist/types/validations/solana-hook.d.ts +4 -2
  242. package/dist/types/validations/solana-hook.d.ts.map +1 -1
  243. package/dist/types/validations/solana-op-budget.d.ts +2 -2
  244. package/dist/types/validations/solana-op-budget.d.ts.map +1 -1
  245. package/dist/types/validations/solana-op-wrap.d.ts +2 -2
  246. package/dist/types/validations/solana-op-wrap.d.ts.map +1 -1
  247. package/dist/types/validations/solana-required-actions.d.ts +2 -2
  248. package/dist/types/validations/solana-required-actions.d.ts.map +1 -1
  249. package/dist/types/validations/solana-transaction.d.ts +3 -3
  250. package/dist/types/validations/solana-transaction.d.ts.map +1 -1
  251. package/dist/types/validations/trade-grouping.d.ts +6 -2
  252. package/dist/types/validations/trade-grouping.d.ts.map +1 -1
  253. package/dist/types/validations/trades.d.ts.map +1 -1
  254. package/dist/types/validator.d.ts.map +1 -1
  255. package/dist/types/whitelists/environment-config.d.ts.map +1 -1
  256. package/dist/types/whitelists/evm/caveat-enforcers.d.ts +8 -0
  257. package/dist/types/whitelists/evm/caveat-enforcers.d.ts.map +1 -1
  258. package/dist/types/whitelists/evm/delegation-manager.d.ts +2 -0
  259. package/dist/types/whitelists/evm/delegation-manager.d.ts.map +1 -1
  260. package/dist/types/whitelists/evm/eip7702-delegation.d.ts +2 -0
  261. package/dist/types/whitelists/evm/eip7702-delegation.d.ts.map +1 -1
  262. package/dist/types/whitelists/evm/index.d.ts +4 -4
  263. package/dist/types/whitelists/evm/index.d.ts.map +1 -1
  264. package/dist/types/whitelists/evm/metamask-delegation-chains.d.ts +3 -0
  265. package/dist/types/whitelists/evm/metamask-delegation-chains.d.ts.map +1 -0
  266. package/dist/types/whitelists/evm/permit2.d.ts +1 -0
  267. package/dist/types/whitelists/evm/permit2.d.ts.map +1 -1
  268. package/dist/types/whitelists/evm/weth.d.ts.map +1 -1
  269. package/dist/types/whitelists/solana/intent-signature.d.ts.map +1 -1
  270. package/dist/types/whitelists/subscription-to-chain-id.d.ts +1 -0
  271. package/dist/types/whitelists/subscription-to-chain-id.d.ts.map +1 -1
  272. package/dist/types/whitelists/types.d.ts +1 -1
  273. package/dist/types/whitelists/types.d.ts.map +1 -1
  274. package/package.json +4 -3
  275. package/dist/cjs/helpers/constants.js +0 -6
  276. package/dist/cjs/helpers/constants.js.map +0 -1
  277. package/dist/cjs/validations/evm-op-gas-compensation.js +0 -152
  278. package/dist/cjs/validations/evm-op-gas-compensation.js.map +0 -1
  279. package/dist/esm/helpers/constants.js +0 -3
  280. package/dist/esm/helpers/constants.js.map +0 -1
  281. package/dist/esm/validations/evm-op-gas-compensation.js +0 -149
  282. package/dist/esm/validations/evm-op-gas-compensation.js.map +0 -1
  283. package/dist/types/helpers/constants.d.ts +0 -2
  284. package/dist/types/helpers/constants.d.ts.map +0 -1
  285. package/dist/types/validations/evm-op-gas-compensation.d.ts +0 -3
  286. package/dist/types/validations/evm-op-gas-compensation.d.ts.map +0 -1
@@ -60,7 +60,7 @@ export declare const ResponseSrcChainTokenOutSchema: z.ZodObject<{
60
60
  decimals: z.ZodNumber;
61
61
  amount: z.ZodString;
62
62
  maxRefundAmount: z.ZodOptional<z.ZodString>;
63
- approximateUsdValue: z.ZodNumber;
63
+ approximateUsdValue: z.ZodOptional<z.ZodNumber>;
64
64
  }, z.core.$strip>;
65
65
  export declare const ResponseDstChainTokenOutSchema: z.ZodObject<{
66
66
  chainId: z.ZodNumber;
@@ -101,7 +101,7 @@ export declare const ResponseTradeSchema: z.ZodObject<{
101
101
  decimals: z.ZodNumber;
102
102
  amount: z.ZodString;
103
103
  maxRefundAmount: z.ZodOptional<z.ZodString>;
104
- approximateUsdValue: z.ZodNumber;
104
+ approximateUsdValue: z.ZodOptional<z.ZodNumber>;
105
105
  }, z.core.$strip>>;
106
106
  dstChainTokenOut: z.ZodObject<{
107
107
  chainId: z.ZodNumber;
@@ -144,7 +144,7 @@ export declare const ResponseTradeSchema: z.ZodObject<{
144
144
  dstChainTokenOutRecipient: z.ZodOptional<z.ZodString>;
145
145
  dstChainAuthorityAddress: z.ZodOptional<z.ZodString>;
146
146
  relatedIntentId: z.ZodOptional<z.ZodString>;
147
- prependedOperatingExpenseCost: z.ZodString;
147
+ prependedOperatingExpenseCost: z.ZodOptional<z.ZodString>;
148
148
  userPoints: z.ZodNumber;
149
149
  integratorPoints: z.ZodNumber;
150
150
  actualUserPoints: z.ZodOptional<z.ZodNumber>;
@@ -222,15 +222,54 @@ export declare const ResponseIntentSchema: z.ZodObject<{
222
222
  destinationChainIds: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodLiteral<"any">]>;
223
223
  }, z.core.$strip>>>;
224
224
  }, z.core.$strip>;
225
+ /**
226
+ * Intent-scope only — payload for `Transaction` actions inside
227
+ * `response.trades[].intents[].requiredActions[]`. The chain is implicit
228
+ * (it equals the parent intent's chainId), so no `chainId` field is present.
229
+ * The hook-scope counterpart carries an explicit `chainId` —
230
+ * see {@link EvmDirectTransactionDataSchema}.
231
+ */
225
232
  export declare const EvmTransactionDataSchema: z.ZodObject<{
226
233
  to: z.ZodString;
227
234
  data: z.ZodString;
228
235
  value: z.ZodString;
229
236
  }, z.core.$strip>;
237
+ /**
238
+ * Hook-scope only — payload for `Transaction` actions inside
239
+ * `response.preHooks[].requiredActions[]` and
240
+ * `response.postHooks[].requiredActions[]` (Direct hooks with eager-only
241
+ * placeholders), and the inner `transaction` field of
242
+ * `EvmProvidePlaceholdersData`. Carries `chainId` explicitly because hooks
243
+ * are not bound to a single intent's chain.
244
+ */
245
+ export declare const EvmDirectTransactionDataSchema: z.ZodObject<{
246
+ to: z.ZodString;
247
+ data: z.ZodString;
248
+ value: z.ZodString;
249
+ chainId: z.ZodNumber;
250
+ }, z.core.$strip>;
251
+ /**
252
+ * Both scopes (intent and hook) — payload for `Sign7702Authorization`
253
+ * actions. Encodes the EIP-7702 delegation parameters that the user signs
254
+ * to delegate their EOA to a smart-contract wallet implementation.
255
+ */
230
256
  export declare const EvmSign7702AuthorizationDataSchema: z.ZodObject<{
231
257
  contractAddress: z.ZodString;
232
258
  nonce: z.ZodNumber;
233
259
  }, z.core.$strip>;
260
+ /**
261
+ * Generic EIP-712 typed-data payload. Reused by several action types:
262
+ * - `Sign712MetaMaskCaveats` — both intent-scope and hook-scope (Delegated
263
+ * hooks with eager-only placeholders). Encodes the MetaMask delegation
264
+ * message, including caveats inside `message`.
265
+ * - `Sign712` — intent-scope only. Encodes the user's intent signature.
266
+ * - `Permit` / `Permit2` — intent-scope only. Encodes the EIP-2612 / Permit2
267
+ * approval payload.
268
+ *
269
+ * The hook-scope variant with deferred placeholders extends this shape with
270
+ * an extra `placeholders[]` field — see
271
+ * {@link EvmCaveatsWithPlaceholdersDataSchema}.
272
+ */
234
273
  export declare const EvmSign712DataSchema: z.ZodObject<{
235
274
  domain: z.ZodObject<{
236
275
  name: z.ZodString;
@@ -245,6 +284,70 @@ export declare const EvmSign712DataSchema: z.ZodObject<{
245
284
  primaryType: z.ZodString;
246
285
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
247
286
  }, z.core.$strip>;
287
+ /**
288
+ * Deferred-placeholder descriptor used inside hook-scope action payloads
289
+ * ({@link EvmCaveatsWithPlaceholdersDataSchema} and
290
+ * {@link EvmProvidePlaceholdersDataSchema}). Each item names a placeholder
291
+ * whose value the client must supply at submit time.
292
+ */
293
+ export declare const EvmActionPlaceholderItemSchema: z.ZodObject<{
294
+ nameVariable: z.ZodString;
295
+ }, z.core.$strip>;
296
+ /**
297
+ * Hook-scope only — payload for `Sign712MetaMaskCaveatsWithPlaceholders`
298
+ * actions emitted for Delegated EVM hooks that declare deferred
299
+ * placeholders. Extends the standard EIP-712 typed-data shape with a
300
+ * `placeholders[]` list whose values the client supplies at submit time;
301
+ * the corresponding markers remain in place inside the typed data until
302
+ * substitution.
303
+ */
304
+ export declare const EvmCaveatsWithPlaceholdersDataSchema: z.ZodObject<{
305
+ domain: z.ZodObject<{
306
+ name: z.ZodString;
307
+ version: z.ZodOptional<z.ZodString>;
308
+ chainId: z.ZodOptional<z.ZodNumber>;
309
+ verifyingContract: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>;
311
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
312
+ name: z.ZodString;
313
+ type: z.ZodString;
314
+ }, z.core.$strip>>>;
315
+ primaryType: z.ZodString;
316
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
317
+ placeholders: z.ZodArray<z.ZodObject<{
318
+ nameVariable: z.ZodString;
319
+ }, z.core.$strip>>;
320
+ }, z.core.$strip>;
321
+ /**
322
+ * Hook-scope only — payload for `ProvidePlaceholders` actions emitted for
323
+ * Direct EVM hooks that declare deferred placeholders. Carries the embedded
324
+ * transaction (with explicit `chainId`) and a `placeholders[]` list whose
325
+ * values the client must supply at submit time. No off-chain signature is
326
+ * required — the client substitutes the placeholders into the transaction
327
+ * data and broadcasts the resulting transaction on-chain.
328
+ */
329
+ export declare const EvmProvidePlaceholdersDataSchema: z.ZodObject<{
330
+ transaction: z.ZodObject<{
331
+ to: z.ZodString;
332
+ data: z.ZodString;
333
+ value: z.ZodString;
334
+ chainId: z.ZodNumber;
335
+ }, z.core.$strip>;
336
+ placeholders: z.ZodArray<z.ZodObject<{
337
+ nameVariable: z.ZodString;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$strip>;
340
+ /**
341
+ * Optional `details` payload that supplements an EVM action's `data`.
342
+ * Different action types populate different subsets:
343
+ * - `Sign712MetaMaskCaveats` / `Sign712MetaMaskCaveatsWithPlaceholders` —
344
+ * `transactionCalls` lists the underlying transaction(s) wrapped by the
345
+ * delegation. In hook-scope this is always exactly one entry — the hook
346
+ * transaction itself.
347
+ * - `Transaction` with `actions: [Budget]`, `Permit`, `Permit2` —
348
+ * `allowanceHolder`, `tokenAddress`, `permit2Contract` describe the
349
+ * approved spender / token / Permit2 router.
350
+ */
248
351
  export declare const EvmActionDetailsSchema: z.ZodObject<{
249
352
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
353
  to: z.ZodString;
@@ -291,6 +394,13 @@ export declare const EvmCostItemSchema: z.ZodObject<{
291
394
  maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
292
395
  }, z.core.$strip>>;
293
396
  }, z.core.$strip>;
397
+ /**
398
+ * Single EVM `requiredAction` element. The same shape is used in both
399
+ * intent-scope (`response.trades[].intents[].requiredActions[]`) and
400
+ * hook-scope (`response.preHooks[].requiredActions[]`,
401
+ * `response.postHooks[].requiredActions[]`); the action `type` and `data`
402
+ * shape determine which scope a given action belongs to.
403
+ */
294
404
  export declare const EvmRequiredActionSchema: z.ZodObject<{
295
405
  actionId: z.ZodString;
296
406
  type: z.ZodEnum<typeof EvmActionKind>;
@@ -299,6 +409,11 @@ export declare const EvmRequiredActionSchema: z.ZodObject<{
299
409
  to: z.ZodString;
300
410
  data: z.ZodString;
301
411
  value: z.ZodString;
412
+ chainId: z.ZodNumber;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ to: z.ZodString;
415
+ data: z.ZodString;
416
+ value: z.ZodString;
302
417
  }, z.core.$strip>, z.ZodObject<{
303
418
  contractAddress: z.ZodString;
304
419
  nonce: z.ZodNumber;
@@ -315,6 +430,32 @@ export declare const EvmRequiredActionSchema: z.ZodObject<{
315
430
  }, z.core.$strip>>>;
316
431
  primaryType: z.ZodString;
317
432
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
433
+ placeholders: z.ZodArray<z.ZodObject<{
434
+ nameVariable: z.ZodString;
435
+ }, z.core.$strip>>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ domain: z.ZodObject<{
438
+ name: z.ZodString;
439
+ version: z.ZodOptional<z.ZodString>;
440
+ chainId: z.ZodOptional<z.ZodNumber>;
441
+ verifyingContract: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>;
443
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
444
+ name: z.ZodString;
445
+ type: z.ZodString;
446
+ }, z.core.$strip>>>;
447
+ primaryType: z.ZodString;
448
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ transaction: z.ZodObject<{
451
+ to: z.ZodString;
452
+ data: z.ZodString;
453
+ value: z.ZodString;
454
+ chainId: z.ZodNumber;
455
+ }, z.core.$strip>;
456
+ placeholders: z.ZodArray<z.ZodObject<{
457
+ nameVariable: z.ZodString;
458
+ }, z.core.$strip>>;
318
459
  }, z.core.$strip>]>;
319
460
  details: z.ZodOptional<z.ZodObject<{
320
461
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -346,12 +487,28 @@ export declare const EvmRequiredActionSchema: z.ZodObject<{
346
487
  }, z.core.$strip>>;
347
488
  description: z.ZodString;
348
489
  }, z.core.$strip>;
490
+ /**
491
+ * Both scopes (intent and hook) — payload for `Transaction` and
492
+ * `SignTransaction` actions. Carries a base64-encoded Solana transaction.
493
+ * The shape is identical in intent-scope and hook-scope for Solana: there
494
+ * is no Direct/Delegated split for Solana hooks.
495
+ */
349
496
  export declare const SolanaTransactionDataSchema: z.ZodObject<{
350
497
  data: z.ZodString;
351
498
  }, z.core.$strip>;
499
+ /**
500
+ * Intent-scope only — payload for `Sign` actions. Carries a UTF-8 string
501
+ * the user signs to authorize the intent.
502
+ */
352
503
  export declare const SolanaSignDataSchema: z.ZodObject<{
353
504
  data: z.ZodString;
354
505
  }, z.core.$strip>;
506
+ /**
507
+ * Single Solana `requiredAction` element. The same shape is used in both
508
+ * intent-scope (`response.trades[].intents[].requiredActions[]`) and
509
+ * hook-scope (`response.preHooks[].requiredActions[]`,
510
+ * `response.postHooks[].requiredActions[]`).
511
+ */
355
512
  export declare const SolanaRequiredActionSchema: z.ZodObject<{
356
513
  actionId: z.ZodString;
357
514
  type: z.ZodEnum<typeof SolanaActionKind>;
@@ -383,6 +540,11 @@ export declare const ResponseRequiredActionSchema: z.ZodUnion<readonly [z.ZodObj
383
540
  to: z.ZodString;
384
541
  data: z.ZodString;
385
542
  value: z.ZodString;
543
+ chainId: z.ZodNumber;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ to: z.ZodString;
546
+ data: z.ZodString;
547
+ value: z.ZodString;
386
548
  }, z.core.$strip>, z.ZodObject<{
387
549
  contractAddress: z.ZodString;
388
550
  nonce: z.ZodNumber;
@@ -399,6 +561,32 @@ export declare const ResponseRequiredActionSchema: z.ZodUnion<readonly [z.ZodObj
399
561
  }, z.core.$strip>>>;
400
562
  primaryType: z.ZodString;
401
563
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
564
+ placeholders: z.ZodArray<z.ZodObject<{
565
+ nameVariable: z.ZodString;
566
+ }, z.core.$strip>>;
567
+ }, z.core.$strip>, z.ZodObject<{
568
+ domain: z.ZodObject<{
569
+ name: z.ZodString;
570
+ version: z.ZodOptional<z.ZodString>;
571
+ chainId: z.ZodOptional<z.ZodNumber>;
572
+ verifyingContract: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>;
574
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
575
+ name: z.ZodString;
576
+ type: z.ZodString;
577
+ }, z.core.$strip>>>;
578
+ primaryType: z.ZodString;
579
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ transaction: z.ZodObject<{
582
+ to: z.ZodString;
583
+ data: z.ZodString;
584
+ value: z.ZodString;
585
+ chainId: z.ZodNumber;
586
+ }, z.core.$strip>;
587
+ placeholders: z.ZodArray<z.ZodObject<{
588
+ nameVariable: z.ZodString;
589
+ }, z.core.$strip>>;
402
590
  }, z.core.$strip>]>;
403
591
  details: z.ZodOptional<z.ZodObject<{
404
592
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -461,6 +649,11 @@ export declare const ResponseIntentPayloadSchema: z.ZodObject<{
461
649
  to: z.ZodString;
462
650
  data: z.ZodString;
463
651
  value: z.ZodString;
652
+ chainId: z.ZodNumber;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ to: z.ZodString;
655
+ data: z.ZodString;
656
+ value: z.ZodString;
464
657
  }, z.core.$strip>, z.ZodObject<{
465
658
  contractAddress: z.ZodString;
466
659
  nonce: z.ZodNumber;
@@ -477,6 +670,32 @@ export declare const ResponseIntentPayloadSchema: z.ZodObject<{
477
670
  }, z.core.$strip>>>;
478
671
  primaryType: z.ZodString;
479
672
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
673
+ placeholders: z.ZodArray<z.ZodObject<{
674
+ nameVariable: z.ZodString;
675
+ }, z.core.$strip>>;
676
+ }, z.core.$strip>, z.ZodObject<{
677
+ domain: z.ZodObject<{
678
+ name: z.ZodString;
679
+ version: z.ZodOptional<z.ZodString>;
680
+ chainId: z.ZodOptional<z.ZodNumber>;
681
+ verifyingContract: z.ZodOptional<z.ZodString>;
682
+ }, z.core.$strip>;
683
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
684
+ name: z.ZodString;
685
+ type: z.ZodString;
686
+ }, z.core.$strip>>>;
687
+ primaryType: z.ZodString;
688
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
689
+ }, z.core.$strip>, z.ZodObject<{
690
+ transaction: z.ZodObject<{
691
+ to: z.ZodString;
692
+ data: z.ZodString;
693
+ value: z.ZodString;
694
+ chainId: z.ZodNumber;
695
+ }, z.core.$strip>;
696
+ placeholders: z.ZodArray<z.ZodObject<{
697
+ nameVariable: z.ZodString;
698
+ }, z.core.$strip>>;
480
699
  }, z.core.$strip>]>;
481
700
  details: z.ZodOptional<z.ZodObject<{
482
701
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -586,7 +805,7 @@ export declare const AccumulativeTokenOutputSchema: z.ZodObject<{
586
805
  approximateUsdValue: z.ZodNumber;
587
806
  }, z.core.$strip>;
588
807
  export declare const ResponseHookPayloadSchema: z.ZodObject<{
589
- requiredActions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
808
+ requiredActions: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
590
809
  actionId: z.ZodString;
591
810
  type: z.ZodEnum<typeof EvmActionKind>;
592
811
  actions: z.ZodArray<z.ZodEnum<typeof EvmActionOperation>>;
@@ -594,6 +813,11 @@ export declare const ResponseHookPayloadSchema: z.ZodObject<{
594
813
  to: z.ZodString;
595
814
  data: z.ZodString;
596
815
  value: z.ZodString;
816
+ chainId: z.ZodNumber;
817
+ }, z.core.$strip>, z.ZodObject<{
818
+ to: z.ZodString;
819
+ data: z.ZodString;
820
+ value: z.ZodString;
597
821
  }, z.core.$strip>, z.ZodObject<{
598
822
  contractAddress: z.ZodString;
599
823
  nonce: z.ZodNumber;
@@ -610,6 +834,32 @@ export declare const ResponseHookPayloadSchema: z.ZodObject<{
610
834
  }, z.core.$strip>>>;
611
835
  primaryType: z.ZodString;
612
836
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
837
+ placeholders: z.ZodArray<z.ZodObject<{
838
+ nameVariable: z.ZodString;
839
+ }, z.core.$strip>>;
840
+ }, z.core.$strip>, z.ZodObject<{
841
+ domain: z.ZodObject<{
842
+ name: z.ZodString;
843
+ version: z.ZodOptional<z.ZodString>;
844
+ chainId: z.ZodOptional<z.ZodNumber>;
845
+ verifyingContract: z.ZodOptional<z.ZodString>;
846
+ }, z.core.$strip>;
847
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
848
+ name: z.ZodString;
849
+ type: z.ZodString;
850
+ }, z.core.$strip>>>;
851
+ primaryType: z.ZodString;
852
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
853
+ }, z.core.$strip>, z.ZodObject<{
854
+ transaction: z.ZodObject<{
855
+ to: z.ZodString;
856
+ data: z.ZodString;
857
+ value: z.ZodString;
858
+ chainId: z.ZodNumber;
859
+ }, z.core.$strip>;
860
+ placeholders: z.ZodArray<z.ZodObject<{
861
+ nameVariable: z.ZodString;
862
+ }, z.core.$strip>>;
613
863
  }, z.core.$strip>]>;
614
864
  details: z.ZodOptional<z.ZodObject<{
615
865
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -662,7 +912,221 @@ export declare const ResponseHookPayloadSchema: z.ZodObject<{
662
912
  }, z.core.$strip>>;
663
913
  }, z.core.$strip>>;
664
914
  description: z.ZodString;
665
- }, z.core.$strip>]>>;
915
+ }, z.core.$strip>]>>>, z.ZodTransform<({
916
+ actionId: string;
917
+ type: EvmActionKind;
918
+ actions: EvmActionOperation[];
919
+ data: {
920
+ to: string;
921
+ data: string;
922
+ value: string;
923
+ } | {
924
+ to: string;
925
+ data: string;
926
+ value: string;
927
+ chainId: number;
928
+ } | {
929
+ contractAddress: string;
930
+ nonce: number;
931
+ } | {
932
+ domain: {
933
+ name: string;
934
+ version?: string | undefined;
935
+ chainId?: number | undefined;
936
+ verifyingContract?: string | undefined;
937
+ };
938
+ types: Record<string, {
939
+ name: string;
940
+ type: string;
941
+ }[]>;
942
+ primaryType: string;
943
+ message: Record<string, unknown>;
944
+ } | {
945
+ domain: {
946
+ name: string;
947
+ version?: string | undefined;
948
+ chainId?: number | undefined;
949
+ verifyingContract?: string | undefined;
950
+ };
951
+ types: Record<string, {
952
+ name: string;
953
+ type: string;
954
+ }[]>;
955
+ primaryType: string;
956
+ message: Record<string, unknown>;
957
+ placeholders: {
958
+ nameVariable: string;
959
+ }[];
960
+ } | {
961
+ transaction: {
962
+ to: string;
963
+ data: string;
964
+ value: string;
965
+ chainId: number;
966
+ };
967
+ placeholders: {
968
+ nameVariable: string;
969
+ }[];
970
+ };
971
+ actionCosts: {
972
+ costChainId: number;
973
+ costTokenAddress: string;
974
+ amount: string;
975
+ approximateUsdValue: number;
976
+ type: CostItemType;
977
+ feeBps?: number | undefined;
978
+ details?: {
979
+ originalChainId: number;
980
+ } | undefined;
981
+ networkDetails?: {
982
+ gasLimit?: string | undefined;
983
+ gasPrice?: string | undefined;
984
+ baseFee?: string | undefined;
985
+ maxFeePerGas?: string | undefined;
986
+ maxPriorityFeePerGas?: string | undefined;
987
+ } | undefined;
988
+ }[];
989
+ description: string;
990
+ details?: {
991
+ transactionCalls?: {
992
+ to: string;
993
+ data: string;
994
+ value: string;
995
+ }[] | undefined;
996
+ allowanceHolder?: string | undefined;
997
+ tokenAddress?: string | undefined;
998
+ permit2Contract?: string | undefined;
999
+ } | undefined;
1000
+ } | {
1001
+ actionId: string;
1002
+ type: SolanaActionKind;
1003
+ actions: SolanaActionOperation[];
1004
+ data: {
1005
+ data: string;
1006
+ } | {
1007
+ data: string;
1008
+ };
1009
+ actionCosts: {
1010
+ costChainId: number;
1011
+ costTokenAddress: string;
1012
+ amount: string;
1013
+ approximateUsdValue: number;
1014
+ type: CostItemType;
1015
+ feeBps?: number | undefined;
1016
+ details?: {
1017
+ originalChainId: number;
1018
+ } | undefined;
1019
+ }[];
1020
+ description: string;
1021
+ details?: undefined;
1022
+ })[], ({
1023
+ actionId: string;
1024
+ type: EvmActionKind;
1025
+ actions: EvmActionOperation[];
1026
+ data: {
1027
+ to: string;
1028
+ data: string;
1029
+ value: string;
1030
+ } | {
1031
+ to: string;
1032
+ data: string;
1033
+ value: string;
1034
+ chainId: number;
1035
+ } | {
1036
+ contractAddress: string;
1037
+ nonce: number;
1038
+ } | {
1039
+ domain: {
1040
+ name: string;
1041
+ version?: string | undefined;
1042
+ chainId?: number | undefined;
1043
+ verifyingContract?: string | undefined;
1044
+ };
1045
+ types: Record<string, {
1046
+ name: string;
1047
+ type: string;
1048
+ }[]>;
1049
+ primaryType: string;
1050
+ message: Record<string, unknown>;
1051
+ } | {
1052
+ domain: {
1053
+ name: string;
1054
+ version?: string | undefined;
1055
+ chainId?: number | undefined;
1056
+ verifyingContract?: string | undefined;
1057
+ };
1058
+ types: Record<string, {
1059
+ name: string;
1060
+ type: string;
1061
+ }[]>;
1062
+ primaryType: string;
1063
+ message: Record<string, unknown>;
1064
+ placeholders: {
1065
+ nameVariable: string;
1066
+ }[];
1067
+ } | {
1068
+ transaction: {
1069
+ to: string;
1070
+ data: string;
1071
+ value: string;
1072
+ chainId: number;
1073
+ };
1074
+ placeholders: {
1075
+ nameVariable: string;
1076
+ }[];
1077
+ };
1078
+ actionCosts: {
1079
+ costChainId: number;
1080
+ costTokenAddress: string;
1081
+ amount: string;
1082
+ approximateUsdValue: number;
1083
+ type: CostItemType;
1084
+ feeBps?: number | undefined;
1085
+ details?: {
1086
+ originalChainId: number;
1087
+ } | undefined;
1088
+ networkDetails?: {
1089
+ gasLimit?: string | undefined;
1090
+ gasPrice?: string | undefined;
1091
+ baseFee?: string | undefined;
1092
+ maxFeePerGas?: string | undefined;
1093
+ maxPriorityFeePerGas?: string | undefined;
1094
+ } | undefined;
1095
+ }[];
1096
+ description: string;
1097
+ details?: {
1098
+ transactionCalls?: {
1099
+ to: string;
1100
+ data: string;
1101
+ value: string;
1102
+ }[] | undefined;
1103
+ allowanceHolder?: string | undefined;
1104
+ tokenAddress?: string | undefined;
1105
+ permit2Contract?: string | undefined;
1106
+ } | undefined;
1107
+ } | {
1108
+ actionId: string;
1109
+ type: SolanaActionKind;
1110
+ actions: SolanaActionOperation[];
1111
+ data: {
1112
+ data: string;
1113
+ } | {
1114
+ data: string;
1115
+ };
1116
+ actionCosts: {
1117
+ costChainId: number;
1118
+ costTokenAddress: string;
1119
+ amount: string;
1120
+ approximateUsdValue: number;
1121
+ type: CostItemType;
1122
+ feeBps?: number | undefined;
1123
+ details?: {
1124
+ originalChainId: number;
1125
+ } | undefined;
1126
+ }[];
1127
+ description: string;
1128
+ details?: undefined;
1129
+ })[] | undefined>>;
666
1130
  hook: z.ZodObject<{
667
1131
  chainId: z.ZodNumber;
668
1132
  from: z.ZodString;
@@ -672,15 +1136,18 @@ export declare const ResponseHookPayloadSchema: z.ZodObject<{
672
1136
  isAtomic: z.ZodBoolean;
673
1137
  placeHolders: z.ZodArray<z.ZodObject<{
674
1138
  nameVariable: z.ZodString;
675
- tokenAddress: z.ZodString;
676
- address: z.ZodString;
1139
+ tokenAddress: z.ZodOptional<z.ZodString>;
1140
+ address: z.ZodOptional<z.ZodString>;
677
1141
  additionalAmount: z.ZodOptional<z.ZodString>;
1142
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").PlaceholderType>>;
678
1143
  }, z.core.$strip>>;
679
1144
  gasCompensationInfo: z.ZodOptional<z.ZodObject<{
680
1145
  tokenAddress: z.ZodString;
681
1146
  chainId: z.ZodNumber;
682
1147
  sender: z.ZodString;
683
1148
  }, z.core.$strip>>;
1149
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").BundleHookType>>;
1150
+ gasLimit: z.ZodOptional<z.ZodString>;
684
1151
  }, z.core.$strip>;
685
1152
  }, z.core.$strip>;
686
1153
  export declare const BundleCreationResponseSchema: z.ZodObject<{
@@ -709,7 +1176,7 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
709
1176
  decimals: z.ZodNumber;
710
1177
  amount: z.ZodString;
711
1178
  maxRefundAmount: z.ZodOptional<z.ZodString>;
712
- approximateUsdValue: z.ZodNumber;
1179
+ approximateUsdValue: z.ZodOptional<z.ZodNumber>;
713
1180
  }, z.core.$strip>>;
714
1181
  dstChainTokenOut: z.ZodObject<{
715
1182
  chainId: z.ZodNumber;
@@ -752,7 +1219,7 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
752
1219
  dstChainTokenOutRecipient: z.ZodOptional<z.ZodString>;
753
1220
  dstChainAuthorityAddress: z.ZodOptional<z.ZodString>;
754
1221
  relatedIntentId: z.ZodOptional<z.ZodString>;
755
- prependedOperatingExpenseCost: z.ZodString;
1222
+ prependedOperatingExpenseCost: z.ZodOptional<z.ZodString>;
756
1223
  userPoints: z.ZodNumber;
757
1224
  integratorPoints: z.ZodNumber;
758
1225
  actualUserPoints: z.ZodOptional<z.ZodNumber>;
@@ -776,6 +1243,11 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
776
1243
  to: z.ZodString;
777
1244
  data: z.ZodString;
778
1245
  value: z.ZodString;
1246
+ chainId: z.ZodNumber;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ to: z.ZodString;
1249
+ data: z.ZodString;
1250
+ value: z.ZodString;
779
1251
  }, z.core.$strip>, z.ZodObject<{
780
1252
  contractAddress: z.ZodString;
781
1253
  nonce: z.ZodNumber;
@@ -792,6 +1264,32 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
792
1264
  }, z.core.$strip>>>;
793
1265
  primaryType: z.ZodString;
794
1266
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1267
+ placeholders: z.ZodArray<z.ZodObject<{
1268
+ nameVariable: z.ZodString;
1269
+ }, z.core.$strip>>;
1270
+ }, z.core.$strip>, z.ZodObject<{
1271
+ domain: z.ZodObject<{
1272
+ name: z.ZodString;
1273
+ version: z.ZodOptional<z.ZodString>;
1274
+ chainId: z.ZodOptional<z.ZodNumber>;
1275
+ verifyingContract: z.ZodOptional<z.ZodString>;
1276
+ }, z.core.$strip>;
1277
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1278
+ name: z.ZodString;
1279
+ type: z.ZodString;
1280
+ }, z.core.$strip>>>;
1281
+ primaryType: z.ZodString;
1282
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1283
+ }, z.core.$strip>, z.ZodObject<{
1284
+ transaction: z.ZodObject<{
1285
+ to: z.ZodString;
1286
+ data: z.ZodString;
1287
+ value: z.ZodString;
1288
+ chainId: z.ZodNumber;
1289
+ }, z.core.$strip>;
1290
+ placeholders: z.ZodArray<z.ZodObject<{
1291
+ nameVariable: z.ZodString;
1292
+ }, z.core.$strip>>;
795
1293
  }, z.core.$strip>]>;
796
1294
  details: z.ZodOptional<z.ZodObject<{
797
1295
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -887,7 +1385,7 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
887
1385
  }, z.core.$strip>;
888
1386
  }, z.core.$strip>>;
889
1387
  preHooks: z.ZodArray<z.ZodObject<{
890
- requiredActions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1388
+ requiredActions: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
891
1389
  actionId: z.ZodString;
892
1390
  type: z.ZodEnum<typeof EvmActionKind>;
893
1391
  actions: z.ZodArray<z.ZodEnum<typeof EvmActionOperation>>;
@@ -895,6 +1393,11 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
895
1393
  to: z.ZodString;
896
1394
  data: z.ZodString;
897
1395
  value: z.ZodString;
1396
+ chainId: z.ZodNumber;
1397
+ }, z.core.$strip>, z.ZodObject<{
1398
+ to: z.ZodString;
1399
+ data: z.ZodString;
1400
+ value: z.ZodString;
898
1401
  }, z.core.$strip>, z.ZodObject<{
899
1402
  contractAddress: z.ZodString;
900
1403
  nonce: z.ZodNumber;
@@ -911,6 +1414,32 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
911
1414
  }, z.core.$strip>>>;
912
1415
  primaryType: z.ZodString;
913
1416
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1417
+ placeholders: z.ZodArray<z.ZodObject<{
1418
+ nameVariable: z.ZodString;
1419
+ }, z.core.$strip>>;
1420
+ }, z.core.$strip>, z.ZodObject<{
1421
+ domain: z.ZodObject<{
1422
+ name: z.ZodString;
1423
+ version: z.ZodOptional<z.ZodString>;
1424
+ chainId: z.ZodOptional<z.ZodNumber>;
1425
+ verifyingContract: z.ZodOptional<z.ZodString>;
1426
+ }, z.core.$strip>;
1427
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1428
+ name: z.ZodString;
1429
+ type: z.ZodString;
1430
+ }, z.core.$strip>>>;
1431
+ primaryType: z.ZodString;
1432
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ transaction: z.ZodObject<{
1435
+ to: z.ZodString;
1436
+ data: z.ZodString;
1437
+ value: z.ZodString;
1438
+ chainId: z.ZodNumber;
1439
+ }, z.core.$strip>;
1440
+ placeholders: z.ZodArray<z.ZodObject<{
1441
+ nameVariable: z.ZodString;
1442
+ }, z.core.$strip>>;
914
1443
  }, z.core.$strip>]>;
915
1444
  details: z.ZodOptional<z.ZodObject<{
916
1445
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -963,7 +1492,221 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
963
1492
  }, z.core.$strip>>;
964
1493
  }, z.core.$strip>>;
965
1494
  description: z.ZodString;
966
- }, z.core.$strip>]>>;
1495
+ }, z.core.$strip>]>>>, z.ZodTransform<({
1496
+ actionId: string;
1497
+ type: EvmActionKind;
1498
+ actions: EvmActionOperation[];
1499
+ data: {
1500
+ to: string;
1501
+ data: string;
1502
+ value: string;
1503
+ } | {
1504
+ to: string;
1505
+ data: string;
1506
+ value: string;
1507
+ chainId: number;
1508
+ } | {
1509
+ contractAddress: string;
1510
+ nonce: number;
1511
+ } | {
1512
+ domain: {
1513
+ name: string;
1514
+ version?: string | undefined;
1515
+ chainId?: number | undefined;
1516
+ verifyingContract?: string | undefined;
1517
+ };
1518
+ types: Record<string, {
1519
+ name: string;
1520
+ type: string;
1521
+ }[]>;
1522
+ primaryType: string;
1523
+ message: Record<string, unknown>;
1524
+ } | {
1525
+ domain: {
1526
+ name: string;
1527
+ version?: string | undefined;
1528
+ chainId?: number | undefined;
1529
+ verifyingContract?: string | undefined;
1530
+ };
1531
+ types: Record<string, {
1532
+ name: string;
1533
+ type: string;
1534
+ }[]>;
1535
+ primaryType: string;
1536
+ message: Record<string, unknown>;
1537
+ placeholders: {
1538
+ nameVariable: string;
1539
+ }[];
1540
+ } | {
1541
+ transaction: {
1542
+ to: string;
1543
+ data: string;
1544
+ value: string;
1545
+ chainId: number;
1546
+ };
1547
+ placeholders: {
1548
+ nameVariable: string;
1549
+ }[];
1550
+ };
1551
+ actionCosts: {
1552
+ costChainId: number;
1553
+ costTokenAddress: string;
1554
+ amount: string;
1555
+ approximateUsdValue: number;
1556
+ type: CostItemType;
1557
+ feeBps?: number | undefined;
1558
+ details?: {
1559
+ originalChainId: number;
1560
+ } | undefined;
1561
+ networkDetails?: {
1562
+ gasLimit?: string | undefined;
1563
+ gasPrice?: string | undefined;
1564
+ baseFee?: string | undefined;
1565
+ maxFeePerGas?: string | undefined;
1566
+ maxPriorityFeePerGas?: string | undefined;
1567
+ } | undefined;
1568
+ }[];
1569
+ description: string;
1570
+ details?: {
1571
+ transactionCalls?: {
1572
+ to: string;
1573
+ data: string;
1574
+ value: string;
1575
+ }[] | undefined;
1576
+ allowanceHolder?: string | undefined;
1577
+ tokenAddress?: string | undefined;
1578
+ permit2Contract?: string | undefined;
1579
+ } | undefined;
1580
+ } | {
1581
+ actionId: string;
1582
+ type: SolanaActionKind;
1583
+ actions: SolanaActionOperation[];
1584
+ data: {
1585
+ data: string;
1586
+ } | {
1587
+ data: string;
1588
+ };
1589
+ actionCosts: {
1590
+ costChainId: number;
1591
+ costTokenAddress: string;
1592
+ amount: string;
1593
+ approximateUsdValue: number;
1594
+ type: CostItemType;
1595
+ feeBps?: number | undefined;
1596
+ details?: {
1597
+ originalChainId: number;
1598
+ } | undefined;
1599
+ }[];
1600
+ description: string;
1601
+ details?: undefined;
1602
+ })[], ({
1603
+ actionId: string;
1604
+ type: EvmActionKind;
1605
+ actions: EvmActionOperation[];
1606
+ data: {
1607
+ to: string;
1608
+ data: string;
1609
+ value: string;
1610
+ } | {
1611
+ to: string;
1612
+ data: string;
1613
+ value: string;
1614
+ chainId: number;
1615
+ } | {
1616
+ contractAddress: string;
1617
+ nonce: number;
1618
+ } | {
1619
+ domain: {
1620
+ name: string;
1621
+ version?: string | undefined;
1622
+ chainId?: number | undefined;
1623
+ verifyingContract?: string | undefined;
1624
+ };
1625
+ types: Record<string, {
1626
+ name: string;
1627
+ type: string;
1628
+ }[]>;
1629
+ primaryType: string;
1630
+ message: Record<string, unknown>;
1631
+ } | {
1632
+ domain: {
1633
+ name: string;
1634
+ version?: string | undefined;
1635
+ chainId?: number | undefined;
1636
+ verifyingContract?: string | undefined;
1637
+ };
1638
+ types: Record<string, {
1639
+ name: string;
1640
+ type: string;
1641
+ }[]>;
1642
+ primaryType: string;
1643
+ message: Record<string, unknown>;
1644
+ placeholders: {
1645
+ nameVariable: string;
1646
+ }[];
1647
+ } | {
1648
+ transaction: {
1649
+ to: string;
1650
+ data: string;
1651
+ value: string;
1652
+ chainId: number;
1653
+ };
1654
+ placeholders: {
1655
+ nameVariable: string;
1656
+ }[];
1657
+ };
1658
+ actionCosts: {
1659
+ costChainId: number;
1660
+ costTokenAddress: string;
1661
+ amount: string;
1662
+ approximateUsdValue: number;
1663
+ type: CostItemType;
1664
+ feeBps?: number | undefined;
1665
+ details?: {
1666
+ originalChainId: number;
1667
+ } | undefined;
1668
+ networkDetails?: {
1669
+ gasLimit?: string | undefined;
1670
+ gasPrice?: string | undefined;
1671
+ baseFee?: string | undefined;
1672
+ maxFeePerGas?: string | undefined;
1673
+ maxPriorityFeePerGas?: string | undefined;
1674
+ } | undefined;
1675
+ }[];
1676
+ description: string;
1677
+ details?: {
1678
+ transactionCalls?: {
1679
+ to: string;
1680
+ data: string;
1681
+ value: string;
1682
+ }[] | undefined;
1683
+ allowanceHolder?: string | undefined;
1684
+ tokenAddress?: string | undefined;
1685
+ permit2Contract?: string | undefined;
1686
+ } | undefined;
1687
+ } | {
1688
+ actionId: string;
1689
+ type: SolanaActionKind;
1690
+ actions: SolanaActionOperation[];
1691
+ data: {
1692
+ data: string;
1693
+ } | {
1694
+ data: string;
1695
+ };
1696
+ actionCosts: {
1697
+ costChainId: number;
1698
+ costTokenAddress: string;
1699
+ amount: string;
1700
+ approximateUsdValue: number;
1701
+ type: CostItemType;
1702
+ feeBps?: number | undefined;
1703
+ details?: {
1704
+ originalChainId: number;
1705
+ } | undefined;
1706
+ }[];
1707
+ description: string;
1708
+ details?: undefined;
1709
+ })[] | undefined>>;
967
1710
  hook: z.ZodObject<{
968
1711
  chainId: z.ZodNumber;
969
1712
  from: z.ZodString;
@@ -973,19 +1716,22 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
973
1716
  isAtomic: z.ZodBoolean;
974
1717
  placeHolders: z.ZodArray<z.ZodObject<{
975
1718
  nameVariable: z.ZodString;
976
- tokenAddress: z.ZodString;
977
- address: z.ZodString;
1719
+ tokenAddress: z.ZodOptional<z.ZodString>;
1720
+ address: z.ZodOptional<z.ZodString>;
978
1721
  additionalAmount: z.ZodOptional<z.ZodString>;
1722
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").PlaceholderType>>;
979
1723
  }, z.core.$strip>>;
980
1724
  gasCompensationInfo: z.ZodOptional<z.ZodObject<{
981
1725
  tokenAddress: z.ZodString;
982
1726
  chainId: z.ZodNumber;
983
1727
  sender: z.ZodString;
984
1728
  }, z.core.$strip>>;
1729
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").BundleHookType>>;
1730
+ gasLimit: z.ZodOptional<z.ZodString>;
985
1731
  }, z.core.$strip>;
986
1732
  }, z.core.$strip>>;
987
1733
  postHooks: z.ZodArray<z.ZodObject<{
988
- requiredActions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1734
+ requiredActions: z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
989
1735
  actionId: z.ZodString;
990
1736
  type: z.ZodEnum<typeof EvmActionKind>;
991
1737
  actions: z.ZodArray<z.ZodEnum<typeof EvmActionOperation>>;
@@ -993,6 +1739,11 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
993
1739
  to: z.ZodString;
994
1740
  data: z.ZodString;
995
1741
  value: z.ZodString;
1742
+ chainId: z.ZodNumber;
1743
+ }, z.core.$strip>, z.ZodObject<{
1744
+ to: z.ZodString;
1745
+ data: z.ZodString;
1746
+ value: z.ZodString;
996
1747
  }, z.core.$strip>, z.ZodObject<{
997
1748
  contractAddress: z.ZodString;
998
1749
  nonce: z.ZodNumber;
@@ -1009,6 +1760,32 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
1009
1760
  }, z.core.$strip>>>;
1010
1761
  primaryType: z.ZodString;
1011
1762
  message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1763
+ placeholders: z.ZodArray<z.ZodObject<{
1764
+ nameVariable: z.ZodString;
1765
+ }, z.core.$strip>>;
1766
+ }, z.core.$strip>, z.ZodObject<{
1767
+ domain: z.ZodObject<{
1768
+ name: z.ZodString;
1769
+ version: z.ZodOptional<z.ZodString>;
1770
+ chainId: z.ZodOptional<z.ZodNumber>;
1771
+ verifyingContract: z.ZodOptional<z.ZodString>;
1772
+ }, z.core.$strip>;
1773
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1774
+ name: z.ZodString;
1775
+ type: z.ZodString;
1776
+ }, z.core.$strip>>>;
1777
+ primaryType: z.ZodString;
1778
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1779
+ }, z.core.$strip>, z.ZodObject<{
1780
+ transaction: z.ZodObject<{
1781
+ to: z.ZodString;
1782
+ data: z.ZodString;
1783
+ value: z.ZodString;
1784
+ chainId: z.ZodNumber;
1785
+ }, z.core.$strip>;
1786
+ placeholders: z.ZodArray<z.ZodObject<{
1787
+ nameVariable: z.ZodString;
1788
+ }, z.core.$strip>>;
1012
1789
  }, z.core.$strip>]>;
1013
1790
  details: z.ZodOptional<z.ZodObject<{
1014
1791
  transactionCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1061,7 +1838,221 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
1061
1838
  }, z.core.$strip>>;
1062
1839
  }, z.core.$strip>>;
1063
1840
  description: z.ZodString;
1064
- }, z.core.$strip>]>>;
1841
+ }, z.core.$strip>]>>>, z.ZodTransform<({
1842
+ actionId: string;
1843
+ type: EvmActionKind;
1844
+ actions: EvmActionOperation[];
1845
+ data: {
1846
+ to: string;
1847
+ data: string;
1848
+ value: string;
1849
+ } | {
1850
+ to: string;
1851
+ data: string;
1852
+ value: string;
1853
+ chainId: number;
1854
+ } | {
1855
+ contractAddress: string;
1856
+ nonce: number;
1857
+ } | {
1858
+ domain: {
1859
+ name: string;
1860
+ version?: string | undefined;
1861
+ chainId?: number | undefined;
1862
+ verifyingContract?: string | undefined;
1863
+ };
1864
+ types: Record<string, {
1865
+ name: string;
1866
+ type: string;
1867
+ }[]>;
1868
+ primaryType: string;
1869
+ message: Record<string, unknown>;
1870
+ } | {
1871
+ domain: {
1872
+ name: string;
1873
+ version?: string | undefined;
1874
+ chainId?: number | undefined;
1875
+ verifyingContract?: string | undefined;
1876
+ };
1877
+ types: Record<string, {
1878
+ name: string;
1879
+ type: string;
1880
+ }[]>;
1881
+ primaryType: string;
1882
+ message: Record<string, unknown>;
1883
+ placeholders: {
1884
+ nameVariable: string;
1885
+ }[];
1886
+ } | {
1887
+ transaction: {
1888
+ to: string;
1889
+ data: string;
1890
+ value: string;
1891
+ chainId: number;
1892
+ };
1893
+ placeholders: {
1894
+ nameVariable: string;
1895
+ }[];
1896
+ };
1897
+ actionCosts: {
1898
+ costChainId: number;
1899
+ costTokenAddress: string;
1900
+ amount: string;
1901
+ approximateUsdValue: number;
1902
+ type: CostItemType;
1903
+ feeBps?: number | undefined;
1904
+ details?: {
1905
+ originalChainId: number;
1906
+ } | undefined;
1907
+ networkDetails?: {
1908
+ gasLimit?: string | undefined;
1909
+ gasPrice?: string | undefined;
1910
+ baseFee?: string | undefined;
1911
+ maxFeePerGas?: string | undefined;
1912
+ maxPriorityFeePerGas?: string | undefined;
1913
+ } | undefined;
1914
+ }[];
1915
+ description: string;
1916
+ details?: {
1917
+ transactionCalls?: {
1918
+ to: string;
1919
+ data: string;
1920
+ value: string;
1921
+ }[] | undefined;
1922
+ allowanceHolder?: string | undefined;
1923
+ tokenAddress?: string | undefined;
1924
+ permit2Contract?: string | undefined;
1925
+ } | undefined;
1926
+ } | {
1927
+ actionId: string;
1928
+ type: SolanaActionKind;
1929
+ actions: SolanaActionOperation[];
1930
+ data: {
1931
+ data: string;
1932
+ } | {
1933
+ data: string;
1934
+ };
1935
+ actionCosts: {
1936
+ costChainId: number;
1937
+ costTokenAddress: string;
1938
+ amount: string;
1939
+ approximateUsdValue: number;
1940
+ type: CostItemType;
1941
+ feeBps?: number | undefined;
1942
+ details?: {
1943
+ originalChainId: number;
1944
+ } | undefined;
1945
+ }[];
1946
+ description: string;
1947
+ details?: undefined;
1948
+ })[], ({
1949
+ actionId: string;
1950
+ type: EvmActionKind;
1951
+ actions: EvmActionOperation[];
1952
+ data: {
1953
+ to: string;
1954
+ data: string;
1955
+ value: string;
1956
+ } | {
1957
+ to: string;
1958
+ data: string;
1959
+ value: string;
1960
+ chainId: number;
1961
+ } | {
1962
+ contractAddress: string;
1963
+ nonce: number;
1964
+ } | {
1965
+ domain: {
1966
+ name: string;
1967
+ version?: string | undefined;
1968
+ chainId?: number | undefined;
1969
+ verifyingContract?: string | undefined;
1970
+ };
1971
+ types: Record<string, {
1972
+ name: string;
1973
+ type: string;
1974
+ }[]>;
1975
+ primaryType: string;
1976
+ message: Record<string, unknown>;
1977
+ } | {
1978
+ domain: {
1979
+ name: string;
1980
+ version?: string | undefined;
1981
+ chainId?: number | undefined;
1982
+ verifyingContract?: string | undefined;
1983
+ };
1984
+ types: Record<string, {
1985
+ name: string;
1986
+ type: string;
1987
+ }[]>;
1988
+ primaryType: string;
1989
+ message: Record<string, unknown>;
1990
+ placeholders: {
1991
+ nameVariable: string;
1992
+ }[];
1993
+ } | {
1994
+ transaction: {
1995
+ to: string;
1996
+ data: string;
1997
+ value: string;
1998
+ chainId: number;
1999
+ };
2000
+ placeholders: {
2001
+ nameVariable: string;
2002
+ }[];
2003
+ };
2004
+ actionCosts: {
2005
+ costChainId: number;
2006
+ costTokenAddress: string;
2007
+ amount: string;
2008
+ approximateUsdValue: number;
2009
+ type: CostItemType;
2010
+ feeBps?: number | undefined;
2011
+ details?: {
2012
+ originalChainId: number;
2013
+ } | undefined;
2014
+ networkDetails?: {
2015
+ gasLimit?: string | undefined;
2016
+ gasPrice?: string | undefined;
2017
+ baseFee?: string | undefined;
2018
+ maxFeePerGas?: string | undefined;
2019
+ maxPriorityFeePerGas?: string | undefined;
2020
+ } | undefined;
2021
+ }[];
2022
+ description: string;
2023
+ details?: {
2024
+ transactionCalls?: {
2025
+ to: string;
2026
+ data: string;
2027
+ value: string;
2028
+ }[] | undefined;
2029
+ allowanceHolder?: string | undefined;
2030
+ tokenAddress?: string | undefined;
2031
+ permit2Contract?: string | undefined;
2032
+ } | undefined;
2033
+ } | {
2034
+ actionId: string;
2035
+ type: SolanaActionKind;
2036
+ actions: SolanaActionOperation[];
2037
+ data: {
2038
+ data: string;
2039
+ } | {
2040
+ data: string;
2041
+ };
2042
+ actionCosts: {
2043
+ costChainId: number;
2044
+ costTokenAddress: string;
2045
+ amount: string;
2046
+ approximateUsdValue: number;
2047
+ type: CostItemType;
2048
+ feeBps?: number | undefined;
2049
+ details?: {
2050
+ originalChainId: number;
2051
+ } | undefined;
2052
+ }[];
2053
+ description: string;
2054
+ details?: undefined;
2055
+ })[] | undefined>>;
1065
2056
  hook: z.ZodObject<{
1066
2057
  chainId: z.ZodNumber;
1067
2058
  from: z.ZodString;
@@ -1071,15 +2062,18 @@ export declare const BundleCreationResponseSchema: z.ZodObject<{
1071
2062
  isAtomic: z.ZodBoolean;
1072
2063
  placeHolders: z.ZodArray<z.ZodObject<{
1073
2064
  nameVariable: z.ZodString;
1074
- tokenAddress: z.ZodString;
1075
- address: z.ZodString;
2065
+ tokenAddress: z.ZodOptional<z.ZodString>;
2066
+ address: z.ZodOptional<z.ZodString>;
1076
2067
  additionalAmount: z.ZodOptional<z.ZodString>;
2068
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").PlaceholderType>>;
1077
2069
  }, z.core.$strip>>;
1078
2070
  gasCompensationInfo: z.ZodOptional<z.ZodObject<{
1079
2071
  tokenAddress: z.ZodString;
1080
2072
  chainId: z.ZodNumber;
1081
2073
  sender: z.ZodString;
1082
2074
  }, z.core.$strip>>;
2075
+ type: z.ZodOptional<z.ZodEnum<typeof import("./enums").BundleHookType>>;
2076
+ gasLimit: z.ZodOptional<z.ZodString>;
1083
2077
  }, z.core.$strip>;
1084
2078
  }, z.core.$strip>>;
1085
2079
  accumulativeTokenInput: z.ZodArray<z.ZodObject<{
@@ -1124,8 +2118,12 @@ export type ResponseGiveToken = z.infer<typeof ResponseGiveTokenSchema>;
1124
2118
  export type ResponseTakeToken = z.infer<typeof ResponseTakeTokenSchema>;
1125
2119
  export type EvmRequiredAction = z.infer<typeof EvmRequiredActionSchema>;
1126
2120
  export type EvmTransactionData = z.infer<typeof EvmTransactionDataSchema>;
2121
+ export type EvmDirectTransactionData = z.infer<typeof EvmDirectTransactionDataSchema>;
1127
2122
  export type EvmSign7702AuthorizationData = z.infer<typeof EvmSign7702AuthorizationDataSchema>;
1128
2123
  export type EvmSign712Data = z.infer<typeof EvmSign712DataSchema>;
2124
+ export type EvmCaveatsWithPlaceholdersData = z.infer<typeof EvmCaveatsWithPlaceholdersDataSchema>;
2125
+ export type EvmProvidePlaceholdersData = z.infer<typeof EvmProvidePlaceholdersDataSchema>;
2126
+ export type EvmActionPlaceholderItem = z.infer<typeof EvmActionPlaceholderItemSchema>;
1129
2127
  export type EvmActionDetails = z.infer<typeof EvmActionDetailsSchema>;
1130
2128
  export type SolanaRequiredAction = z.infer<typeof SolanaRequiredActionSchema>;
1131
2129
  export type SolanaTransactionData = z.infer<typeof SolanaTransactionDataSchema>;