@rhinestone/sdk 2.0.0-beta.9 → 2.1.0

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 (615) hide show
  1. package/README.md +2 -2
  2. package/dist/src/accounts/adapter.d.ts +31 -0
  3. package/dist/src/accounts/adapter.d.ts.map +1 -0
  4. package/dist/src/accounts/adapters/eoa.d.ts +4 -0
  5. package/dist/src/accounts/adapters/eoa.d.ts.map +1 -0
  6. package/dist/src/accounts/adapters/eoa.js +45 -0
  7. package/dist/src/accounts/adapters/hca.d.ts +5 -0
  8. package/dist/src/accounts/adapters/hca.d.ts.map +1 -0
  9. package/dist/src/accounts/adapters/hca.js +121 -0
  10. package/dist/src/accounts/adapters/kernel.d.ts +9 -0
  11. package/dist/src/accounts/adapters/kernel.d.ts.map +1 -0
  12. package/dist/src/accounts/adapters/kernel.js +159 -0
  13. package/dist/src/accounts/adapters/nexus.d.ts +16 -0
  14. package/dist/src/accounts/adapters/nexus.d.ts.map +1 -0
  15. package/dist/src/accounts/adapters/nexus.js +212 -0
  16. package/dist/src/accounts/adapters/safe.d.ts +6 -0
  17. package/dist/src/accounts/adapters/safe.d.ts.map +1 -0
  18. package/dist/src/accounts/adapters/safe.js +194 -0
  19. package/dist/src/accounts/adapters/shared.d.ts +9 -0
  20. package/dist/src/accounts/adapters/shared.d.ts.map +1 -0
  21. package/dist/src/accounts/adapters/shared.js +62 -0
  22. package/dist/src/accounts/adapters/startale.d.ts +14 -0
  23. package/dist/src/accounts/adapters/startale.d.ts.map +1 -0
  24. package/dist/src/accounts/adapters/startale.js +165 -0
  25. package/dist/src/accounts/construction.d.ts +25 -0
  26. package/dist/src/accounts/construction.d.ts.map +1 -0
  27. package/dist/src/accounts/construction.js +34 -0
  28. package/dist/src/accounts/deployment.d.ts +12 -0
  29. package/dist/src/accounts/deployment.d.ts.map +1 -0
  30. package/dist/src/accounts/deployment.js +33 -0
  31. package/dist/src/accounts/erc7579-calls.d.ts +4 -0
  32. package/dist/src/accounts/erc7579-calls.d.ts.map +1 -0
  33. package/dist/src/accounts/erc7579-calls.js +57 -0
  34. package/dist/src/accounts/error.d.ts +3 -10
  35. package/dist/src/accounts/error.d.ts.map +1 -1
  36. package/dist/src/accounts/error.js +5 -11
  37. package/dist/src/accounts/legacy.d.ts +14 -0
  38. package/dist/src/accounts/legacy.d.ts.map +1 -0
  39. package/dist/src/accounts/legacy.js +40 -0
  40. package/dist/src/accounts/registry.d.ts +4 -0
  41. package/dist/src/accounts/registry.d.ts.map +1 -0
  42. package/dist/src/accounts/registry.js +22 -0
  43. package/dist/src/accounts/types.d.ts +131 -0
  44. package/dist/src/accounts/types.d.ts.map +1 -0
  45. package/dist/src/accounts/types.js +1 -0
  46. package/dist/src/accounts/wallet-account.d.ts +3 -0
  47. package/dist/src/accounts/wallet-account.d.ts.map +1 -0
  48. package/dist/src/accounts/wallet-account.js +12 -0
  49. package/dist/src/actions/deploy.d.ts +4 -0
  50. package/dist/src/actions/deploy.d.ts.map +1 -0
  51. package/dist/src/actions/deploy.js +8 -0
  52. package/dist/src/actions/ecdsa.d.ts +2 -2
  53. package/dist/src/actions/ecdsa.d.ts.map +1 -1
  54. package/dist/src/actions/ecdsa.js +12 -65
  55. package/dist/src/actions/index.d.ts +2 -16
  56. package/dist/src/actions/index.d.ts.map +1 -1
  57. package/dist/src/actions/index.js +3 -49
  58. package/dist/src/actions/mfa.d.ts +1 -1
  59. package/dist/src/actions/mfa.d.ts.map +1 -1
  60. package/dist/src/actions/mfa.js +30 -10
  61. package/dist/src/actions/modules.d.ts +4 -0
  62. package/dist/src/actions/modules.d.ts.map +1 -0
  63. package/dist/src/actions/modules.js +22 -0
  64. package/dist/src/actions/ownable.d.ts +6 -0
  65. package/dist/src/actions/ownable.d.ts.map +1 -0
  66. package/dist/src/actions/ownable.js +63 -0
  67. package/dist/src/actions/passkeys.d.ts +2 -2
  68. package/dist/src/actions/passkeys.d.ts.map +1 -1
  69. package/dist/src/actions/passkeys.js +23 -78
  70. package/dist/src/actions/recovery.d.ts +58 -24
  71. package/dist/src/actions/recovery.d.ts.map +1 -1
  72. package/dist/src/actions/recovery.js +107 -162
  73. package/dist/src/actions/runtime.d.ts +17 -0
  74. package/dist/src/actions/runtime.d.ts.map +1 -0
  75. package/dist/src/actions/runtime.js +182 -0
  76. package/dist/src/actions/smart-sessions.d.ts +30 -6
  77. package/dist/src/actions/smart-sessions.d.ts.map +1 -1
  78. package/dist/src/actions/smart-sessions.js +69 -18
  79. package/dist/src/actions/webauthn.d.ts +6 -0
  80. package/dist/src/actions/webauthn.d.ts.map +1 -0
  81. package/dist/src/actions/webauthn.js +67 -0
  82. package/dist/src/api/account.d.ts +265 -0
  83. package/dist/src/api/account.d.ts.map +1 -0
  84. package/dist/src/api/account.js +638 -0
  85. package/dist/src/api/accounts.d.ts +12 -0
  86. package/dist/src/api/accounts.d.ts.map +1 -0
  87. package/dist/src/api/accounts.js +17 -0
  88. package/dist/src/api/compose-types.d.ts +147 -0
  89. package/dist/src/api/compose-types.d.ts.map +1 -0
  90. package/dist/src/api/compose-types.js +1 -0
  91. package/dist/src/api/compose.d.ts +6 -0
  92. package/dist/src/api/compose.d.ts.map +1 -0
  93. package/dist/src/api/compose.js +772 -0
  94. package/dist/src/api/direct-signing.d.ts +27 -0
  95. package/dist/src/api/direct-signing.d.ts.map +1 -0
  96. package/dist/src/api/direct-signing.js +191 -0
  97. package/dist/src/api/project-mappers.d.ts +7 -0
  98. package/dist/src/api/project-mappers.d.ts.map +1 -0
  99. package/dist/src/api/project-mappers.js +23 -0
  100. package/dist/src/api/queries/app-fees.d.ts +4 -0
  101. package/dist/src/api/queries/app-fees.d.ts.map +1 -0
  102. package/dist/src/api/queries/app-fees.js +3 -0
  103. package/dist/src/api/queries/portfolio.d.ts +9 -0
  104. package/dist/src/api/queries/portfolio.d.ts.map +1 -0
  105. package/dist/src/api/queries/portfolio.js +28 -0
  106. package/dist/src/api/queries/session.d.ts +8 -0
  107. package/dist/src/api/queries/session.d.ts.map +1 -0
  108. package/dist/src/api/queries/session.js +15 -0
  109. package/dist/src/api/sdk.d.ts +80 -0
  110. package/dist/src/api/sdk.d.ts.map +1 -0
  111. package/dist/src/api/sdk.js +103 -0
  112. package/dist/src/api/signer-selection.d.ts +20 -0
  113. package/dist/src/api/signer-selection.d.ts.map +1 -0
  114. package/dist/src/api/signer-selection.js +159 -0
  115. package/dist/src/calls/normalize.d.ts +9 -0
  116. package/dist/src/calls/normalize.d.ts.map +1 -0
  117. package/dist/src/calls/normalize.js +17 -0
  118. package/dist/src/calls/resolve.d.ts +3 -0
  119. package/dist/src/calls/resolve.d.ts.map +1 -0
  120. package/dist/src/calls/resolve.js +15 -0
  121. package/dist/src/calls/types.d.ts +25 -0
  122. package/dist/src/calls/types.d.ts.map +1 -0
  123. package/dist/src/calls/types.js +1 -0
  124. package/dist/src/chains/caip2.d.ts +10 -0
  125. package/dist/src/chains/caip2.d.ts.map +1 -0
  126. package/dist/src/chains/caip2.js +85 -0
  127. package/dist/src/chains/catalog.d.ts +5 -0
  128. package/dist/src/chains/catalog.d.ts.map +1 -0
  129. package/dist/src/chains/catalog.js +41 -0
  130. package/dist/src/chains/errors.d.ts +15 -0
  131. package/dist/src/chains/errors.d.ts.map +1 -0
  132. package/dist/src/chains/errors.js +21 -0
  133. package/dist/src/{orchestrator/destinations.d.ts → chains/non-evm.d.ts} +9 -6
  134. package/dist/src/chains/non-evm.d.ts.map +1 -0
  135. package/dist/src/chains/non-evm.js +30 -0
  136. package/dist/src/chains/tokens.d.ts +4 -0
  137. package/dist/src/chains/tokens.d.ts.map +1 -0
  138. package/dist/src/chains/tokens.js +22 -0
  139. package/dist/src/chains/types.d.ts +25 -0
  140. package/dist/src/chains/types.d.ts.map +1 -0
  141. package/dist/src/chains/types.js +1 -0
  142. package/dist/src/clients/bundler/client.d.ts +10 -0
  143. package/dist/src/clients/bundler/client.d.ts.map +1 -0
  144. package/dist/src/clients/bundler/client.js +85 -0
  145. package/dist/src/clients/bundler/endpoints.d.ts +3 -0
  146. package/dist/src/clients/bundler/endpoints.d.ts.map +1 -0
  147. package/dist/src/clients/bundler/endpoints.js +18 -0
  148. package/dist/src/clients/bundler/port.d.ts +22 -0
  149. package/dist/src/clients/bundler/port.d.ts.map +1 -0
  150. package/dist/src/clients/bundler/port.js +1 -0
  151. package/dist/src/clients/json-rpc.d.ts +20 -0
  152. package/dist/src/clients/json-rpc.d.ts.map +1 -0
  153. package/dist/src/clients/json-rpc.js +56 -0
  154. package/dist/src/clients/orchestrator/auth.d.ts +7 -0
  155. package/dist/src/clients/orchestrator/auth.d.ts.map +1 -0
  156. package/dist/src/clients/orchestrator/auth.js +27 -0
  157. package/dist/src/clients/orchestrator/chain-catalog.d.ts +36 -0
  158. package/dist/src/clients/orchestrator/chain-catalog.d.ts.map +1 -0
  159. package/dist/src/clients/orchestrator/chain-catalog.js +67 -0
  160. package/dist/src/clients/orchestrator/client.d.ts +13 -0
  161. package/dist/src/clients/orchestrator/client.d.ts.map +1 -0
  162. package/dist/src/clients/orchestrator/client.js +97 -0
  163. package/dist/src/clients/orchestrator/errors.d.ts +238 -0
  164. package/dist/src/clients/orchestrator/errors.d.ts.map +1 -0
  165. package/dist/src/clients/orchestrator/errors.js +525 -0
  166. package/dist/src/clients/orchestrator/fetch.d.ts +7 -0
  167. package/dist/src/clients/orchestrator/fetch.d.ts.map +1 -0
  168. package/dist/src/clients/orchestrator/fetch.js +37 -0
  169. package/dist/src/clients/orchestrator/mappers.d.ts +9 -0
  170. package/dist/src/clients/orchestrator/mappers.d.ts.map +1 -0
  171. package/dist/src/clients/orchestrator/mappers.js +198 -0
  172. package/dist/src/clients/orchestrator/port.d.ts +26 -0
  173. package/dist/src/clients/orchestrator/port.d.ts.map +1 -0
  174. package/dist/src/clients/orchestrator/port.js +1 -0
  175. package/dist/src/{orchestrator/types.d.ts → clients/orchestrator/public.d.ts} +113 -43
  176. package/dist/src/clients/orchestrator/public.d.ts.map +1 -0
  177. package/dist/src/clients/orchestrator/public.js +14 -0
  178. package/dist/src/clients/orchestrator/types.d.ts +144 -0
  179. package/dist/src/clients/orchestrator/types.d.ts.map +1 -0
  180. package/dist/src/clients/orchestrator/types.js +1 -0
  181. package/dist/src/clients/orchestrator/wire.d.ts +19 -0
  182. package/dist/src/clients/orchestrator/wire.d.ts.map +1 -0
  183. package/dist/src/clients/orchestrator/wire.gen.d.ts +6463 -0
  184. package/dist/src/clients/orchestrator/wire.gen.d.ts.map +1 -0
  185. package/dist/src/clients/orchestrator/wire.gen.js +1 -0
  186. package/dist/src/clients/orchestrator/wire.js +1 -0
  187. package/dist/src/clients/paymaster/client.d.ts +8 -0
  188. package/dist/src/clients/paymaster/client.d.ts.map +1 -0
  189. package/dist/src/clients/paymaster/client.js +38 -0
  190. package/dist/src/clients/paymaster/endpoints.d.ts +3 -0
  191. package/dist/src/clients/paymaster/endpoints.d.ts.map +1 -0
  192. package/dist/src/clients/paymaster/endpoints.js +16 -0
  193. package/dist/src/clients/paymaster/port.d.ts +17 -0
  194. package/dist/src/clients/paymaster/port.d.ts.map +1 -0
  195. package/dist/src/clients/paymaster/port.js +1 -0
  196. package/dist/src/clients/rpc/client.d.ts +6 -0
  197. package/dist/src/clients/rpc/client.d.ts.map +1 -0
  198. package/dist/src/clients/rpc/client.js +66 -0
  199. package/dist/src/clients/rpc/compatibility.d.ts +12 -0
  200. package/dist/src/clients/rpc/compatibility.d.ts.map +1 -0
  201. package/dist/src/clients/rpc/compatibility.js +16 -0
  202. package/dist/src/clients/rpc/port.d.ts +13 -0
  203. package/dist/src/clients/rpc/port.d.ts.map +1 -0
  204. package/dist/src/clients/rpc/port.js +1 -0
  205. package/dist/src/clients/rpc/providers.d.ts +3 -0
  206. package/dist/src/clients/rpc/providers.d.ts.map +1 -0
  207. package/dist/src/clients/rpc/providers.js +8 -0
  208. package/dist/src/clients/rpc/transport.d.ts +4 -0
  209. package/dist/src/clients/rpc/transport.d.ts.map +1 -0
  210. package/dist/src/clients/rpc/transport.js +5 -0
  211. package/dist/src/clients/rpc/types.d.ts +23 -0
  212. package/dist/src/clients/rpc/types.d.ts.map +1 -0
  213. package/dist/src/clients/rpc/types.js +1 -0
  214. package/dist/src/config/account-runtime.d.ts +7 -0
  215. package/dist/src/config/account-runtime.d.ts.map +1 -0
  216. package/dist/src/config/account-runtime.js +36 -0
  217. package/dist/src/config/account.d.ts +767 -0
  218. package/dist/src/config/account.d.ts.map +1 -0
  219. package/dist/src/config/account.js +10 -0
  220. package/dist/src/config/defaults.d.ts +14 -0
  221. package/dist/src/config/defaults.d.ts.map +1 -0
  222. package/dist/src/config/defaults.js +26 -0
  223. package/dist/src/config/input.d.ts +59 -0
  224. package/dist/src/config/input.d.ts.map +1 -0
  225. package/dist/src/config/input.js +1 -0
  226. package/dist/src/config/legacy.d.ts +22 -0
  227. package/dist/src/config/legacy.d.ts.map +1 -0
  228. package/dist/src/config/legacy.js +23 -0
  229. package/dist/src/config/resolve.d.ts +13 -0
  230. package/dist/src/config/resolve.d.ts.map +1 -0
  231. package/dist/src/config/resolve.js +200 -0
  232. package/dist/src/config/resolved.d.ts +77 -0
  233. package/dist/src/config/resolved.d.ts.map +1 -0
  234. package/dist/src/config/resolved.js +1 -0
  235. package/dist/src/config/validate.d.ts +3 -0
  236. package/dist/src/config/validate.d.ts.map +1 -0
  237. package/dist/src/config/validate.js +6 -0
  238. package/dist/src/{execution/error.d.ts → errors/execution.d.ts} +47 -9
  239. package/dist/src/errors/execution.d.ts.map +1 -0
  240. package/dist/src/errors/execution.js +131 -0
  241. package/dist/src/errors/index.d.ts +6 -4
  242. package/dist/src/errors/index.d.ts.map +1 -1
  243. package/dist/src/errors/index.js +7 -6
  244. package/dist/src/index.d.ts +14 -84
  245. package/dist/src/index.d.ts.map +1 -1
  246. package/dist/src/index.js +9 -293
  247. package/dist/src/jwt-server/jcs.d.ts +1 -1
  248. package/dist/src/jwt-server/jcs.js +4 -2
  249. package/dist/src/modules/erc7579-abi.d.ts +4 -0
  250. package/dist/src/modules/erc7579-abi.d.ts.map +1 -0
  251. package/dist/src/modules/erc7579-abi.js +12 -0
  252. package/dist/src/modules/intent-executor.d.ts +6 -0
  253. package/dist/src/modules/intent-executor.d.ts.map +1 -0
  254. package/dist/src/modules/intent-executor.js +13 -0
  255. package/dist/src/modules/legacy-core.d.ts +29 -0
  256. package/dist/src/modules/legacy-core.d.ts.map +1 -0
  257. package/dist/src/modules/legacy-core.js +80 -0
  258. package/dist/src/modules/normalize.d.ts +4 -0
  259. package/dist/src/modules/normalize.d.ts.map +1 -0
  260. package/dist/src/modules/normalize.js +15 -0
  261. package/dist/src/modules/plan.d.ts +16 -0
  262. package/dist/src/modules/plan.d.ts.map +1 -0
  263. package/dist/src/modules/plan.js +51 -0
  264. package/dist/src/modules/read-core.d.ts +62 -0
  265. package/dist/src/modules/read-core.d.ts.map +1 -0
  266. package/dist/src/modules/read-core.js +206 -0
  267. package/dist/src/modules/types.d.ts +46 -0
  268. package/dist/src/modules/types.d.ts.map +1 -0
  269. package/dist/src/modules/types.js +1 -0
  270. package/dist/src/modules/validators/capabilities.d.ts +4 -0
  271. package/dist/src/modules/validators/capabilities.d.ts.map +1 -0
  272. package/dist/src/modules/validators/capabilities.js +58 -0
  273. package/dist/src/modules/validators/contribution.d.ts +4 -0
  274. package/dist/src/modules/validators/contribution.d.ts.map +1 -0
  275. package/dist/src/modules/validators/contribution.js +64 -0
  276. package/dist/src/modules/validators/definition.d.ts +3 -0
  277. package/dist/src/modules/validators/definition.d.ts.map +1 -0
  278. package/dist/src/modules/validators/definition.js +68 -0
  279. package/dist/src/modules/validators/ens.d.ts +5 -0
  280. package/dist/src/modules/validators/ens.d.ts.map +1 -0
  281. package/dist/src/modules/validators/ens.js +34 -0
  282. package/dist/src/modules/validators/k1.d.ts +2 -0
  283. package/dist/src/modules/validators/k1.d.ts.map +1 -0
  284. package/dist/src/modules/validators/k1.js +1 -0
  285. package/dist/src/modules/validators/multi-factor.d.ts +18 -0
  286. package/dist/src/modules/validators/multi-factor.d.ts.map +1 -0
  287. package/dist/src/modules/validators/multi-factor.js +79 -0
  288. package/dist/src/modules/validators/ownable.d.ts +26 -0
  289. package/dist/src/modules/validators/ownable.d.ts.map +1 -0
  290. package/dist/src/modules/validators/ownable.js +84 -0
  291. package/dist/src/modules/validators/permissions.d.ts +2 -1
  292. package/dist/src/modules/validators/permissions.d.ts.map +1 -1
  293. package/dist/src/modules/validators/permissions.js +192 -18
  294. package/dist/src/modules/validators/policies/claim/arbiters.d.ts +19 -0
  295. package/dist/src/modules/validators/policies/claim/arbiters.d.ts.map +1 -0
  296. package/dist/src/modules/validators/policies/claim/arbiters.js +82 -0
  297. package/dist/src/modules/validators/resolve.d.ts +5 -0
  298. package/dist/src/modules/validators/resolve.d.ts.map +1 -0
  299. package/dist/src/modules/validators/resolve.js +22 -0
  300. package/dist/src/modules/validators/signer-id.d.ts +5 -0
  301. package/dist/src/modules/validators/signer-id.d.ts.map +1 -0
  302. package/dist/src/modules/validators/signer-id.js +8 -0
  303. package/dist/src/modules/validators/smart-session-signature-types.d.ts +35 -0
  304. package/dist/src/modules/validators/smart-session-signature-types.d.ts.map +1 -0
  305. package/dist/src/modules/validators/smart-session-signature-types.js +1 -0
  306. package/dist/src/modules/validators/smart-sessions/authorization.d.ts +99 -0
  307. package/dist/src/modules/validators/smart-sessions/authorization.d.ts.map +1 -0
  308. package/dist/src/modules/validators/smart-sessions/authorization.js +101 -0
  309. package/dist/src/modules/validators/smart-sessions/calls.d.ts +19 -0
  310. package/dist/src/modules/validators/smart-sessions/calls.d.ts.map +1 -0
  311. package/dist/src/modules/validators/smart-sessions/calls.js +85 -0
  312. package/dist/src/modules/validators/smart-sessions/cross-chain-permits.d.ts +4 -0
  313. package/dist/src/modules/validators/smart-sessions/cross-chain-permits.d.ts.map +1 -0
  314. package/dist/src/modules/validators/smart-sessions/cross-chain-permits.js +77 -0
  315. package/dist/src/modules/validators/smart-sessions/digest.d.ts +5 -0
  316. package/dist/src/modules/validators/smart-sessions/digest.d.ts.map +1 -0
  317. package/dist/src/modules/validators/smart-sessions/digest.js +30 -0
  318. package/dist/src/modules/validators/smart-sessions/mock-signature.d.ts +10 -0
  319. package/dist/src/modules/validators/smart-sessions/mock-signature.d.ts.map +1 -0
  320. package/dist/src/modules/validators/smart-sessions/mock-signature.js +31 -0
  321. package/dist/src/modules/validators/smart-sessions/module.d.ts +11 -0
  322. package/dist/src/modules/validators/smart-sessions/module.d.ts.map +1 -0
  323. package/dist/src/modules/validators/smart-sessions/module.js +18 -0
  324. package/dist/src/modules/validators/smart-sessions/policies/addresses.d.ts +23 -0
  325. package/dist/src/modules/validators/smart-sessions/policies/addresses.d.ts.map +1 -0
  326. package/dist/src/modules/validators/smart-sessions/policies/addresses.js +29 -0
  327. package/dist/src/modules/validators/smart-sessions/policies/claim.d.ts +10 -0
  328. package/dist/src/modules/validators/smart-sessions/policies/claim.d.ts.map +1 -0
  329. package/dist/src/modules/validators/smart-sessions/policies/claim.js +106 -0
  330. package/dist/src/modules/validators/smart-sessions/policies/encode.d.ts +4 -0
  331. package/dist/src/modules/validators/smart-sessions/policies/encode.d.ts.map +1 -0
  332. package/dist/src/modules/validators/smart-sessions/policies/encode.js +197 -0
  333. package/dist/src/modules/validators/smart-sessions/resolve.d.ts +16 -0
  334. package/dist/src/modules/validators/smart-sessions/resolve.d.ts.map +1 -0
  335. package/dist/src/modules/validators/smart-sessions/resolve.js +120 -0
  336. package/dist/src/modules/validators/smart-sessions/signature.d.ts +14 -0
  337. package/dist/src/modules/validators/smart-sessions/signature.d.ts.map +1 -0
  338. package/dist/src/modules/validators/smart-sessions/signature.js +167 -0
  339. package/dist/src/modules/validators/smart-sessions/state.d.ts +19 -0
  340. package/dist/src/modules/validators/smart-sessions/state.d.ts.map +1 -0
  341. package/dist/src/modules/validators/smart-sessions/state.js +42 -0
  342. package/dist/src/modules/validators/smart-sessions/types.d.ts +227 -0
  343. package/dist/src/modules/validators/smart-sessions/types.d.ts.map +1 -0
  344. package/dist/src/modules/validators/smart-sessions/types.js +1 -0
  345. package/dist/src/modules/validators/social-recovery.d.ts +16 -0
  346. package/dist/src/modules/validators/social-recovery.d.ts.map +1 -0
  347. package/dist/src/modules/validators/social-recovery.js +17 -0
  348. package/dist/src/modules/validators/types.d.ts +143 -0
  349. package/dist/src/modules/validators/types.d.ts.map +1 -0
  350. package/dist/src/modules/validators/types.js +1 -0
  351. package/dist/src/modules/validators/webauthn.d.ts +54 -0
  352. package/dist/src/modules/validators/webauthn.d.ts.map +1 -0
  353. package/dist/src/modules/validators/webauthn.js +159 -0
  354. package/dist/src/signing/context.d.ts +25 -0
  355. package/dist/src/signing/context.d.ts.map +1 -0
  356. package/dist/src/signing/context.js +163 -0
  357. package/dist/src/signing/contribution.d.ts +13 -0
  358. package/dist/src/signing/contribution.d.ts.map +1 -0
  359. package/dist/src/signing/contribution.js +83 -0
  360. package/dist/src/signing/eip7702.d.ts +41 -0
  361. package/dist/src/signing/eip7702.d.ts.map +1 -0
  362. package/dist/src/signing/eip7702.js +215 -0
  363. package/dist/src/signing/error.d.ts +27 -0
  364. package/dist/src/signing/error.d.ts.map +1 -0
  365. package/dist/src/signing/error.js +25 -0
  366. package/dist/src/signing/execute.d.ts +17 -0
  367. package/dist/src/signing/execute.d.ts.map +1 -0
  368. package/dist/src/signing/execute.js +138 -0
  369. package/dist/src/signing/intent-plans/assemble.d.ts +15 -0
  370. package/dist/src/signing/intent-plans/assemble.d.ts.map +1 -0
  371. package/dist/src/signing/intent-plans/assemble.js +96 -0
  372. package/dist/src/signing/intent-plans/independent.d.ts +48 -0
  373. package/dist/src/signing/intent-plans/independent.d.ts.map +1 -0
  374. package/dist/src/signing/intent-plans/independent.js +150 -0
  375. package/dist/src/signing/intent-plans/plan.d.ts +14 -0
  376. package/dist/src/signing/intent-plans/plan.d.ts.map +1 -0
  377. package/dist/src/signing/intent-plans/plan.js +187 -0
  378. package/dist/src/signing/intent-plans/types.d.ts +63 -0
  379. package/dist/src/signing/intent-plans/types.d.ts.map +1 -0
  380. package/dist/src/signing/intent-plans/types.js +1 -0
  381. package/dist/src/signing/message.d.ts +28 -0
  382. package/dist/src/signing/message.d.ts.map +1 -0
  383. package/dist/src/signing/message.js +90 -0
  384. package/dist/src/signing/passkeys.d.ts +28 -0
  385. package/dist/src/signing/passkeys.d.ts.map +1 -0
  386. package/dist/src/signing/passkeys.js +17 -0
  387. package/dist/src/signing/plan.d.ts +35 -0
  388. package/dist/src/signing/plan.d.ts.map +1 -0
  389. package/dist/src/signing/plan.js +377 -0
  390. package/dist/src/signing/protocols/erc6492.d.ts +11 -0
  391. package/dist/src/signing/protocols/erc6492.d.ts.map +1 -0
  392. package/dist/src/signing/protocols/erc6492.js +24 -0
  393. package/dist/src/signing/protocols/erc7739.d.ts +17 -0
  394. package/dist/src/signing/protocols/erc7739.d.ts.map +1 -0
  395. package/dist/src/signing/protocols/erc7739.js +84 -0
  396. package/dist/src/signing/session-enable.d.ts +35 -0
  397. package/dist/src/signing/session-enable.d.ts.map +1 -0
  398. package/dist/src/signing/session-enable.js +62 -0
  399. package/dist/src/signing/signers/compatibility.d.ts +4 -0
  400. package/dist/src/signing/signers/compatibility.d.ts.map +1 -0
  401. package/dist/src/signing/signers/compatibility.js +51 -0
  402. package/dist/src/signing/signers/ecdsa.d.ts +14 -0
  403. package/dist/src/signing/signers/ecdsa.d.ts.map +1 -0
  404. package/dist/src/signing/signers/ecdsa.js +54 -0
  405. package/dist/src/signing/signers/registry.d.ts +7 -0
  406. package/dist/src/signing/signers/registry.d.ts.map +1 -0
  407. package/dist/src/signing/signers/registry.js +33 -0
  408. package/dist/src/signing/signers/types.d.ts +16 -0
  409. package/dist/src/signing/signers/types.d.ts.map +1 -0
  410. package/dist/src/signing/signers/types.js +1 -0
  411. package/dist/src/signing/signers/wallet-chain.d.ts +9 -0
  412. package/dist/src/signing/signers/wallet-chain.d.ts.map +1 -0
  413. package/dist/src/signing/signers/wallet-chain.js +15 -0
  414. package/dist/src/signing/signers/webauthn.d.ts +11 -0
  415. package/dist/src/signing/signers/webauthn.d.ts.map +1 -0
  416. package/dist/src/signing/signers/webauthn.js +14 -0
  417. package/dist/src/signing/typed-data.d.ts +39 -0
  418. package/dist/src/signing/typed-data.d.ts.map +1 -0
  419. package/dist/src/signing/typed-data.js +135 -0
  420. package/dist/src/signing/types.d.ts +346 -0
  421. package/dist/src/signing/types.d.ts.map +1 -0
  422. package/dist/src/signing/types.js +1 -0
  423. package/dist/src/signing/user-operation.d.ts +23 -0
  424. package/dist/src/signing/user-operation.d.ts.map +1 -0
  425. package/dist/src/signing/user-operation.js +61 -0
  426. package/dist/src/smart-sessions/index.d.ts +16 -0
  427. package/dist/src/smart-sessions/index.d.ts.map +1 -0
  428. package/dist/src/smart-sessions/index.js +45 -0
  429. package/dist/src/transactions/intents/account.d.ts +15 -0
  430. package/dist/src/transactions/intents/account.d.ts.map +1 -0
  431. package/dist/src/transactions/intents/account.js +48 -0
  432. package/dist/src/transactions/intents/compatibility.d.ts +4 -0
  433. package/dist/src/transactions/intents/compatibility.d.ts.map +1 -0
  434. package/dist/src/transactions/intents/compatibility.js +19 -0
  435. package/dist/src/transactions/intents/normalize.d.ts +5 -0
  436. package/dist/src/transactions/intents/normalize.d.ts.map +1 -0
  437. package/dist/src/transactions/intents/normalize.js +48 -0
  438. package/dist/src/transactions/intents/prepare.d.ts +7 -0
  439. package/dist/src/transactions/intents/prepare.d.ts.map +1 -0
  440. package/dist/src/transactions/intents/prepare.js +249 -0
  441. package/dist/src/transactions/intents/quotes.d.ts +3 -0
  442. package/dist/src/transactions/intents/quotes.d.ts.map +1 -0
  443. package/dist/src/transactions/intents/quotes.js +11 -0
  444. package/dist/src/transactions/intents/request.d.ts +11 -0
  445. package/dist/src/transactions/intents/request.d.ts.map +1 -0
  446. package/dist/src/transactions/intents/request.js +55 -0
  447. package/dist/src/transactions/intents/send.d.ts +3 -0
  448. package/dist/src/transactions/intents/send.d.ts.map +1 -0
  449. package/dist/src/transactions/intents/send.js +22 -0
  450. package/dist/src/transactions/intents/session-signing.d.ts +7 -0
  451. package/dist/src/transactions/intents/session-signing.d.ts.map +1 -0
  452. package/dist/src/transactions/intents/session-signing.js +363 -0
  453. package/dist/src/transactions/intents/sessions.d.ts +17 -0
  454. package/dist/src/transactions/intents/sessions.d.ts.map +1 -0
  455. package/dist/src/transactions/intents/sessions.js +85 -0
  456. package/dist/src/transactions/intents/sign-transaction.d.ts +10 -0
  457. package/dist/src/transactions/intents/sign-transaction.d.ts.map +1 -0
  458. package/dist/src/transactions/intents/sign-transaction.js +386 -0
  459. package/dist/src/transactions/intents/split.d.ts +13 -0
  460. package/dist/src/transactions/intents/split.d.ts.map +1 -0
  461. package/dist/src/transactions/intents/split.js +3 -0
  462. package/dist/src/transactions/intents/status-policy.d.ts +13 -0
  463. package/dist/src/transactions/intents/status-policy.d.ts.map +1 -0
  464. package/dist/src/transactions/intents/status-policy.js +39 -0
  465. package/dist/src/transactions/intents/status.d.ts +4 -0
  466. package/dist/src/transactions/intents/status.d.ts.map +1 -0
  467. package/dist/src/transactions/intents/status.js +50 -0
  468. package/dist/src/transactions/intents/submit.d.ts +3 -0
  469. package/dist/src/transactions/intents/submit.d.ts.map +1 -0
  470. package/dist/src/transactions/intents/submit.js +32 -0
  471. package/dist/src/transactions/intents/types.d.ts +136 -0
  472. package/dist/src/transactions/intents/types.d.ts.map +1 -0
  473. package/dist/src/transactions/intents/types.js +1 -0
  474. package/dist/src/transactions/user-operations/hash.d.ts +5 -0
  475. package/dist/src/transactions/user-operations/hash.d.ts.map +1 -0
  476. package/dist/src/transactions/user-operations/hash.js +9 -0
  477. package/dist/src/transactions/user-operations/nonce.d.ts +18 -0
  478. package/dist/src/transactions/user-operations/nonce.d.ts.map +1 -0
  479. package/dist/src/transactions/user-operations/nonce.js +43 -0
  480. package/dist/src/transactions/user-operations/prepare.d.ts +12 -0
  481. package/dist/src/transactions/user-operations/prepare.d.ts.map +1 -0
  482. package/dist/src/transactions/user-operations/prepare.js +136 -0
  483. package/dist/src/transactions/user-operations/reconstruct.d.ts +28 -0
  484. package/dist/src/transactions/user-operations/reconstruct.d.ts.map +1 -0
  485. package/dist/src/transactions/user-operations/reconstruct.js +52 -0
  486. package/dist/src/transactions/user-operations/send.d.ts +3 -0
  487. package/dist/src/transactions/user-operations/send.d.ts.map +1 -0
  488. package/dist/src/transactions/user-operations/send.js +8 -0
  489. package/dist/src/transactions/user-operations/sign.d.ts +3 -0
  490. package/dist/src/transactions/user-operations/sign.d.ts.map +1 -0
  491. package/dist/src/transactions/user-operations/sign.js +14 -0
  492. package/dist/src/transactions/user-operations/status.d.ts +4 -0
  493. package/dist/src/transactions/user-operations/status.d.ts.map +1 -0
  494. package/dist/src/transactions/user-operations/status.js +37 -0
  495. package/dist/src/transactions/user-operations/submit.d.ts +3 -0
  496. package/dist/src/transactions/user-operations/submit.d.ts.map +1 -0
  497. package/dist/src/transactions/user-operations/submit.js +8 -0
  498. package/dist/src/transactions/user-operations/types.d.ts +68 -0
  499. package/dist/src/transactions/user-operations/types.d.ts.map +1 -0
  500. package/dist/src/transactions/user-operations/types.js +1 -0
  501. package/dist/src/transactions/user-operations/validator-account.d.ts +5 -0
  502. package/dist/src/transactions/user-operations/validator-account.d.ts.map +1 -0
  503. package/dist/src/transactions/user-operations/validator-account.js +26 -0
  504. package/dist/src/utils/index.d.ts +68 -4
  505. package/dist/src/utils/index.d.ts.map +1 -1
  506. package/dist/src/utils/index.js +113 -51
  507. package/package.json +10 -11
  508. package/dist/src/accounts/index.d.ts +0 -51
  509. package/dist/src/accounts/index.d.ts.map +0 -1
  510. package/dist/src/accounts/index.js +0 -589
  511. package/dist/src/accounts/json-rpc/index.d.ts +0 -5
  512. package/dist/src/accounts/json-rpc/index.d.ts.map +0 -1
  513. package/dist/src/accounts/json-rpc/index.js +0 -19
  514. package/dist/src/accounts/json-rpc/providers.d.ts +0 -5
  515. package/dist/src/accounts/json-rpc/providers.d.ts.map +0 -1
  516. package/dist/src/accounts/json-rpc/providers.js +0 -16
  517. package/dist/src/accounts/kernel.d.ts +0 -27
  518. package/dist/src/accounts/kernel.d.ts.map +0 -1
  519. package/dist/src/accounts/kernel.js +0 -272
  520. package/dist/src/accounts/nexus.d.ts +0 -33
  521. package/dist/src/accounts/nexus.d.ts.map +0 -1
  522. package/dist/src/accounts/nexus.js +0 -444
  523. package/dist/src/accounts/safe.d.ts +0 -33
  524. package/dist/src/accounts/safe.d.ts.map +0 -1
  525. package/dist/src/accounts/safe.js +0 -343
  526. package/dist/src/accounts/signing/common.d.ts +0 -32
  527. package/dist/src/accounts/signing/common.d.ts.map +0 -1
  528. package/dist/src/accounts/signing/common.js +0 -184
  529. package/dist/src/accounts/signing/message.d.ts +0 -7
  530. package/dist/src/accounts/signing/message.d.ts.map +0 -1
  531. package/dist/src/accounts/signing/message.js +0 -45
  532. package/dist/src/accounts/signing/passkeys.d.ts +0 -36
  533. package/dist/src/accounts/signing/passkeys.d.ts.map +0 -1
  534. package/dist/src/accounts/signing/passkeys.js +0 -119
  535. package/dist/src/accounts/signing/typedData.d.ts +0 -5
  536. package/dist/src/accounts/signing/typedData.d.ts.map +0 -1
  537. package/dist/src/accounts/signing/typedData.js +0 -33
  538. package/dist/src/accounts/startale.d.ts +0 -26
  539. package/dist/src/accounts/startale.d.ts.map +0 -1
  540. package/dist/src/accounts/startale.js +0 -191
  541. package/dist/src/accounts/utils.d.ts +0 -33
  542. package/dist/src/accounts/utils.d.ts.map +0 -1
  543. package/dist/src/accounts/utils.js +0 -202
  544. package/dist/src/auth/provider.d.ts +0 -7
  545. package/dist/src/auth/provider.d.ts.map +0 -1
  546. package/dist/src/auth/provider.js +0 -38
  547. package/dist/src/execution/compact.d.ts +0 -5
  548. package/dist/src/execution/compact.d.ts.map +0 -1
  549. package/dist/src/execution/compact.js +0 -4
  550. package/dist/src/execution/error.d.ts.map +0 -1
  551. package/dist/src/execution/error.js +0 -85
  552. package/dist/src/execution/index.d.ts +0 -42
  553. package/dist/src/execution/index.d.ts.map +0 -1
  554. package/dist/src/execution/index.js +0 -202
  555. package/dist/src/execution/utils.d.ts +0 -127
  556. package/dist/src/execution/utils.d.ts.map +0 -1
  557. package/dist/src/execution/utils.js +0 -1116
  558. package/dist/src/modules/abi/smart-sessions.d.ts +0 -104
  559. package/dist/src/modules/abi/smart-sessions.d.ts.map +0 -1
  560. package/dist/src/modules/abi/smart-sessions.js +0 -128
  561. package/dist/src/modules/chain-abstraction.d.ts +0 -5
  562. package/dist/src/modules/chain-abstraction.d.ts.map +0 -1
  563. package/dist/src/modules/chain-abstraction.js +0 -3
  564. package/dist/src/modules/common.d.ts +0 -30
  565. package/dist/src/modules/common.d.ts.map +0 -1
  566. package/dist/src/modules/common.js +0 -30
  567. package/dist/src/modules/index.d.ts +0 -11
  568. package/dist/src/modules/index.d.ts.map +0 -1
  569. package/dist/src/modules/index.js +0 -90
  570. package/dist/src/modules/legacy.d.ts +0 -10
  571. package/dist/src/modules/legacy.d.ts.map +0 -1
  572. package/dist/src/modules/legacy.js +0 -62
  573. package/dist/src/modules/read.d.ts +0 -10
  574. package/dist/src/modules/read.d.ts.map +0 -1
  575. package/dist/src/modules/read.js +0 -171
  576. package/dist/src/modules/validators/core.d.ts +0 -31
  577. package/dist/src/modules/validators/core.d.ts.map +0 -1
  578. package/dist/src/modules/validators/core.js +0 -266
  579. package/dist/src/modules/validators/index.d.ts +0 -4
  580. package/dist/src/modules/validators/index.d.ts.map +0 -1
  581. package/dist/src/modules/validators/index.js +0 -3
  582. package/dist/src/modules/validators/smart-sessions.d.ts +0 -196
  583. package/dist/src/modules/validators/smart-sessions.d.ts.map +0 -1
  584. package/dist/src/modules/validators/smart-sessions.js +0 -772
  585. package/dist/src/orchestrator/caip2.d.ts +0 -13
  586. package/dist/src/orchestrator/caip2.d.ts.map +0 -1
  587. package/dist/src/orchestrator/caip2.js +0 -52
  588. package/dist/src/orchestrator/client.d.ts +0 -29
  589. package/dist/src/orchestrator/client.d.ts.map +0 -1
  590. package/dist/src/orchestrator/client.js +0 -293
  591. package/dist/src/orchestrator/consts.d.ts +0 -6
  592. package/dist/src/orchestrator/consts.d.ts.map +0 -1
  593. package/dist/src/orchestrator/consts.js +0 -5
  594. package/dist/src/orchestrator/destinations.d.ts.map +0 -1
  595. package/dist/src/orchestrator/destinations.js +0 -36
  596. package/dist/src/orchestrator/error.d.ts +0 -97
  597. package/dist/src/orchestrator/error.d.ts.map +0 -1
  598. package/dist/src/orchestrator/error.js +0 -173
  599. package/dist/src/orchestrator/index.d.ts +0 -12
  600. package/dist/src/orchestrator/index.d.ts.map +0 -1
  601. package/dist/src/orchestrator/index.js +0 -10
  602. package/dist/src/orchestrator/registry.d.ts +0 -17
  603. package/dist/src/orchestrator/registry.d.ts.map +0 -1
  604. package/dist/src/orchestrator/registry.js +0 -100
  605. package/dist/src/orchestrator/types.d.ts.map +0 -1
  606. package/dist/src/orchestrator/types.js +0 -15
  607. package/dist/src/orchestrator/utils.d.ts +0 -3
  608. package/dist/src/orchestrator/utils.d.ts.map +0 -1
  609. package/dist/src/orchestrator/utils.js +0 -22
  610. package/dist/src/types.d.ts +0 -466
  611. package/dist/src/types.d.ts.map +0 -1
  612. package/dist/src/utils/walletClient.d.ts +0 -34
  613. package/dist/src/utils/walletClient.d.ts.map +0 -1
  614. package/dist/src/utils/walletClient.js +0 -117
  615. /package/dist/src/{types.js → accounts/adapter.js} +0 -0
@@ -0,0 +1,767 @@
1
+ import type { Abi, AbiFunction, Account, Address, Chain, Hex } from 'viem';
2
+ import type { WebAuthnAccount } from 'viem/account-abstraction';
3
+ import type { AccountType } from '../accounts/types.js';
4
+ import type { NonEvmAddress, NonEvmChain } from '../chains/non-evm.js';
5
+ import type { AppFeeRate, AuxiliaryFunds, ProtocolFeeRate, SettlementLayerFilter } from '../clients/orchestrator/public.js';
6
+ declare const MODULE_TYPE_VALIDATOR = "validator";
7
+ declare const MODULE_TYPE_EXECUTOR = "executor";
8
+ declare const MODULE_TYPE_FALLBACK = "fallback";
9
+ declare const MODULE_TYPE_HOOK = "hook";
10
+ type ModuleType = typeof MODULE_TYPE_VALIDATOR | typeof MODULE_TYPE_EXECUTOR | typeof MODULE_TYPE_FALLBACK | typeof MODULE_TYPE_HOOK;
11
+ interface AuthProvider {
12
+ getHeaders(): Promise<Record<string, string>>;
13
+ getSubmitHeaders(intentInput: unknown, isSponsored: boolean): Promise<Record<string, string>>;
14
+ }
15
+ interface SafeAccount {
16
+ type: 'safe';
17
+ version?: '1.4.1';
18
+ adapter?: '1.0.0' | '2.0.0';
19
+ nonce?: bigint;
20
+ }
21
+ interface NexusAccount {
22
+ type: 'nexus';
23
+ version?: '1.2.0' | '1.2.1';
24
+ salt?: Hex;
25
+ }
26
+ interface KernelAccount {
27
+ type: 'kernel';
28
+ version?: '3.3';
29
+ salt?: Hex;
30
+ }
31
+ interface StartaleAccount {
32
+ type: 'startale';
33
+ salt?: Hex;
34
+ }
35
+ interface HcaAccount {
36
+ type: 'hca';
37
+ factory?: Address;
38
+ }
39
+ interface EoaAccount {
40
+ type: 'eoa';
41
+ }
42
+ type AccountProviderConfig = SafeAccount | NexusAccount | KernelAccount | StartaleAccount | HcaAccount | EoaAccount;
43
+ interface OwnableValidatorConfig {
44
+ type: 'ecdsa';
45
+ accounts: Account[];
46
+ threshold?: number;
47
+ module?: Address;
48
+ }
49
+ interface ENSValidatorConfig {
50
+ type: 'ens';
51
+ /** Each owner with an optional expiry. Omit `expiration` to never expire. */
52
+ owners: {
53
+ account: Account;
54
+ expiration?: Date;
55
+ }[];
56
+ threshold?: number;
57
+ }
58
+ interface WebauthnValidatorConfig {
59
+ type: 'passkey';
60
+ accounts: WebAuthnAccount[];
61
+ threshold?: number;
62
+ module?: Address;
63
+ }
64
+ interface MultiFactorValidatorConfig {
65
+ type: 'multi-factor';
66
+ validators: (OwnableValidatorConfig | ENSValidatorConfig | WebauthnValidatorConfig)[];
67
+ threshold?: number;
68
+ module?: Address;
69
+ }
70
+ type ProviderConfig = {
71
+ type: 'custom';
72
+ urls: Record<number, string>;
73
+ };
74
+ type BundlerConfig = {
75
+ type: 'pimlico' | 'biconomy';
76
+ apiKey: string;
77
+ } | {
78
+ type: 'custom';
79
+ url: string | Record<number, string>;
80
+ };
81
+ type PaymasterConfig = {
82
+ type: 'pimlico' | 'biconomy';
83
+ apiKey: string;
84
+ } | {
85
+ type: 'custom';
86
+ url: string | Record<number, string>;
87
+ };
88
+ type OwnerSet = OwnableValidatorConfig | ENSValidatorConfig | WebauthnValidatorConfig | MultiFactorValidatorConfig;
89
+ interface SudoPolicy {
90
+ type: 'sudo';
91
+ }
92
+ interface UniversalActionPolicy {
93
+ type: 'universal-action';
94
+ valueLimitPerUse?: bigint;
95
+ rules: [UniversalActionPolicyParamRule, ...UniversalActionPolicyParamRule[]];
96
+ }
97
+ interface UniversalActionPolicyParamRule {
98
+ condition: UniversalActionPolicyParamCondition;
99
+ calldataOffset: bigint;
100
+ usageLimit?: bigint;
101
+ referenceValue: Hex | bigint;
102
+ }
103
+ type UniversalActionPolicyParamCondition = 'equal' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'notEqual' | 'inRange';
104
+ type ArgPolicyExpression = {
105
+ type: 'rule';
106
+ rule: UniversalActionPolicyParamRule;
107
+ } | {
108
+ type: 'not';
109
+ child: ArgPolicyExpression;
110
+ } | {
111
+ type: 'and';
112
+ left: ArgPolicyExpression;
113
+ right: ArgPolicyExpression;
114
+ } | {
115
+ type: 'or';
116
+ left: ArgPolicyExpression;
117
+ right: ArgPolicyExpression;
118
+ };
119
+ interface ArgPolicy {
120
+ type: 'arg-policy';
121
+ valueLimitPerUse?: bigint;
122
+ expression: ArgPolicyExpression;
123
+ }
124
+ interface SpendingLimitsPolicy {
125
+ type: 'spending-limits';
126
+ limits: {
127
+ token: Address;
128
+ amount: bigint;
129
+ }[];
130
+ }
131
+ interface TimeFramePolicy {
132
+ type: 'time-frame';
133
+ validUntil: number;
134
+ validAfter: number;
135
+ }
136
+ interface UsageLimitPolicy {
137
+ type: 'usage-limit';
138
+ limit: bigint;
139
+ }
140
+ interface ValueLimitPolicy {
141
+ type: 'value-limit';
142
+ limit: bigint;
143
+ }
144
+ interface IntentExecutionPolicy {
145
+ type: 'intent-execution';
146
+ }
147
+ interface Permit2ClaimPolicy {
148
+ type: 'permit2';
149
+ /** Whitelisted Permit2 spender addresses */
150
+ spenders?: Address[];
151
+ /** Permitted input tokens per origin chain */
152
+ sourceTokens?: {
153
+ chain: Chain;
154
+ address: Address;
155
+ }[];
156
+ /** Permitted output tokens per destination chain */
157
+ destinationTokens?: {
158
+ chain: Chain;
159
+ address: Address;
160
+ }[];
161
+ /** Permitted recipients per destination chain (use `'any'` to allow all) */
162
+ recipients?: {
163
+ chain: Chain;
164
+ address: Address | 'any';
165
+ }[];
166
+ /** Enforce that the destination recipient is the smart account */
167
+ recipientIsAccount?: boolean;
168
+ /** Bounds for the Permit2 signature deadline */
169
+ permitDeadline?: {
170
+ min?: bigint;
171
+ max?: bigint;
172
+ };
173
+ /** Bounds for the mandate target fill deadline, per destination chain */
174
+ fillDeadline?: {
175
+ chain: Chain;
176
+ min?: bigint;
177
+ max?: bigint;
178
+ }[];
179
+ }
180
+ /**
181
+ * Settlement layers supported by the cross-chain session abstraction.
182
+ * Each value maps to one or more Permit2 arbiter addresses from the SDK's
183
+ * bundled arbiter allow-set — devs pick a layer, the SDK resolves it to the
184
+ * on-chain arbiter whitelist.
185
+ *
186
+ * The set is intentionally narrower than the orchestrator's broader
187
+ * `SettlementLayer` union (which also names intent-executor-backed
188
+ * bridges like `CCTP`, `RHINO`, ...). Once the params-bearing
189
+ * intent-executor policy lands in smart-sessions-v2 (see
190
+ * `rhinestonewtf/smart-sessions-v2#46`), this union grows to cover those
191
+ * layers via the same selector interface.
192
+ */
193
+ type CrossChainSettlementLayer = 'SAME_CHAIN' | 'ECO' | 'ACROSS';
194
+ /**
195
+ * A high-level permit that authorises a session key to move funds
196
+ * between two chains via Permit2 arbiter settlement. The SDK expands
197
+ * one `CrossChainPermit` into a {@link Permit2ClaimPolicy} (claim-side)
198
+ * plus optional {@link SpendingLimitsPolicy} / {@link TimeFramePolicy}
199
+ * entries on the fallback action — the claim policy itself doesn't
200
+ * enforce amounts or expiry on-chain, so we lift those guarantees into
201
+ * action-level policies that do.
202
+ *
203
+ * Resolved from {@link CrossChainPermissionInput} by the SDK; consumers
204
+ * normally set `SessionDefinition.crossChainPermits` with the input shape,
205
+ * not this one. Exported as a low-level escape hatch.
206
+ */
207
+ interface CrossChainPermit {
208
+ /**
209
+ * Allowed source legs: chain + token (+ optional max amount cap).
210
+ * Omit for no source-token restriction (any token on any chain may be
211
+ * pulled) — only the arbiter whitelist, deadline, and bridge-to-self
212
+ * flag then constrain the source side.
213
+ */
214
+ from?: {
215
+ chain: Chain;
216
+ token: Address;
217
+ maxAmount?: bigint;
218
+ }[];
219
+ /**
220
+ * Allowed destination legs: chain + token (+ optional recipient pin).
221
+ * Omit for no destination-token restriction. Note `recipientIsAccount`
222
+ * still constrains the destination recipient even when `to` is absent.
223
+ */
224
+ to?: {
225
+ chain: Chain;
226
+ token: Address;
227
+ recipient?: Address | 'any';
228
+ }[];
229
+ /** Upper bound on the permit deadline (Permit2 deadline) — unix seconds */
230
+ validUntil?: bigint;
231
+ /** Lower bound on the permit deadline — unix seconds */
232
+ validAfter?: bigint;
233
+ /** Per-destination fill-deadline windows — unix seconds */
234
+ fillDeadline?: {
235
+ chain: Chain;
236
+ min?: bigint;
237
+ max?: bigint;
238
+ }[];
239
+ /**
240
+ * Enforce bridge-to-self (the destination recipient must be the smart
241
+ * account). Defaults to `true` when resolved from
242
+ * {@link CrossChainPermissionInput}.
243
+ */
244
+ recipientIsAccount?: boolean;
245
+ /**
246
+ * Settlement layers this session is permitted to use. Omit (or pass
247
+ * `[]`) for any supported layer — the SDK resolves to the union of
248
+ * every arbiter in its bundled allow-set.
249
+ */
250
+ settlementLayers?: CrossChainSettlementLayer[];
251
+ }
252
+ interface FromLeg {
253
+ chain: Chain;
254
+ token: Address;
255
+ maxAmount?: bigint;
256
+ }
257
+ interface ToLeg {
258
+ chain: Chain;
259
+ token: Address;
260
+ recipient?: Address | 'any';
261
+ }
262
+ /**
263
+ * Ergonomic input for a cross-chain session permit. Set on
264
+ * `SessionDefinition.crossChainPermits`; token fields are per-chain ERC-20
265
+ * addresses (v2 no longer accepts symbols) and the SDK resolves `Date`s to
266
+ * on-chain deadlines, then expands
267
+ * each entry into a {@link Permit2ClaimPolicy} (claim-side) plus optional
268
+ * {@link SpendingLimitsPolicy} / {@link TimeFramePolicy} guardrails.
269
+ */
270
+ interface CrossChainPermissionInput {
271
+ /**
272
+ * Source chain + token (+ optional max amount cap). Pass a single leg
273
+ * or an array for multi-leg permits. Omit for no source-token
274
+ * restriction (any token on any chain may be pulled) — the arbiter
275
+ * whitelist, deadline, and bridge-to-self flag still apply.
276
+ */
277
+ from?: FromLeg | FromLeg[];
278
+ /**
279
+ * Destination chain + token (+ optional recipient pin). Pass a single
280
+ * leg or an array for fan-out destinations. Omit for no
281
+ * destination-token restriction; `recipientIsAccount` still constrains
282
+ * the recipient.
283
+ */
284
+ to?: ToLeg | ToLeg[];
285
+ /** Upper bound on the permit deadline. */
286
+ validUntil?: Date;
287
+ /** Lower bound on the permit deadline. */
288
+ validAfter?: Date;
289
+ /** Per-destination fill-deadline windows. */
290
+ fillDeadline?: {
291
+ chain: Chain;
292
+ min?: Date;
293
+ max?: Date;
294
+ }[];
295
+ /**
296
+ * Allow the destination recipient to differ from the smart account
297
+ * (the sponsor funding the cross-chain transfer). Defaults to
298
+ * `false`, which enforces bridge-to-self on-chain — the safer default
299
+ * since it prevents a compromised session key from routing funds to
300
+ * an attacker-controlled address. Set to `true` to opt out explicitly.
301
+ */
302
+ allowRecipientNotAccount?: boolean;
303
+ /**
304
+ * Settlement layers this session is permitted to use. Omit (or pass
305
+ * `[]`) to allow **any of the supported settlement layers** — the SDK
306
+ * resolves to the union of every arbiter in its bundled allow-set. Pass
307
+ * a subset (e.g. `['ECO']`) to narrow.
308
+ */
309
+ settlementLayers?: CrossChainSettlementLayer[];
310
+ }
311
+ type Policy = SudoPolicy | UniversalActionPolicy | ArgPolicy | SpendingLimitsPolicy | TimeFramePolicy | UsageLimitPolicy | ValueLimitPolicy | IntentExecutionPolicy;
312
+ /** @internal */
313
+ interface FallbackAction {
314
+ policies?: Policy[];
315
+ }
316
+ /** @internal */
317
+ interface ScopedAction {
318
+ target: Address;
319
+ selector: Hex;
320
+ policies?: Policy[];
321
+ }
322
+ /** @internal */
323
+ type Action = FallbackAction | ScopedAction;
324
+ /** Extract function names from an ABI. */
325
+ type FunctionNames<TAbi extends Abi> = Extract<TAbi[number], {
326
+ type: 'function';
327
+ }>['name'];
328
+ /** Pull the AbiFunction entry for a given name (union if overloaded). */
329
+ type GetFunction<TAbi extends Abi, TName extends string> = Extract<TAbi[number], {
330
+ type: 'function';
331
+ name: TName;
332
+ }>;
333
+ /**
334
+ * Map a Solidity type string to the TypeScript value a developer provides as
335
+ * `value` in a param constraint. Dynamic types resolve to `never` so the
336
+ * compiler prevents rules on params the on-chain policy cannot compare.
337
+ */
338
+ type AbiTypeToValue<T extends string> = T extends 'address' ? Address : T extends 'bool' ? boolean : T extends `uint${string}` ? bigint : T extends `int${string}` ? bigint : T extends `bytes${infer N}` ? N extends '' ? never : Hex : never;
339
+ type ParamValue<TFn extends AbiFunction, TParamName extends string> = AbiTypeToValue<Extract<TFn['inputs'][number], {
340
+ name: TParamName;
341
+ }>['type']>;
342
+ type NamedInputs<TFn extends AbiFunction> = Extract<TFn['inputs'][number], {
343
+ name: string;
344
+ }>;
345
+ type ParamConstraint<TValue> = {
346
+ condition: UniversalActionPolicyParamCondition;
347
+ value: TValue;
348
+ usageLimit?: bigint;
349
+ anyOf?: never;
350
+ } | {
351
+ anyOf: readonly [TValue, ...TValue[]];
352
+ condition?: never;
353
+ value?: never;
354
+ usageLimit?: never;
355
+ };
356
+ type IsERC20TransferLike<TFn extends AbiFunction> = TFn['name'] extends 'approve' | 'increaseAllowance' | 'transfer' ? TFn['inputs'] extends readonly [{
357
+ type: 'address';
358
+ }, {
359
+ type: 'uint256';
360
+ }] ? true : false : TFn['name'] extends 'transferFrom' ? TFn['inputs'] extends readonly [
361
+ {
362
+ type: 'address';
363
+ },
364
+ {
365
+ type: 'address';
366
+ },
367
+ {
368
+ type: 'uint256';
369
+ }
370
+ ] ? true : false : false;
371
+ type IsPayable<TFn extends AbiFunction> = TFn['stateMutability'] extends 'payable' ? true : false;
372
+ type SpendingLimitField<TFn extends AbiFunction> = IsERC20TransferLike<TFn> extends true ? {
373
+ spendingLimit?: {
374
+ token: Address;
375
+ amount: bigint;
376
+ };
377
+ } : {
378
+ spendingLimit?: never;
379
+ };
380
+ type ValueLimitField<TFn extends AbiFunction> = IsPayable<TFn> extends true ? {
381
+ valueLimit?: bigint;
382
+ } : {
383
+ valueLimit?: never;
384
+ };
385
+ type PermissionFunctionConfig<TFn extends AbiFunction> = {
386
+ /** `valueLimitPerUse` embedded in universal/arg-policy `ActionConfig`. */
387
+ valueLimitPerUse?: bigint;
388
+ params?: {
389
+ [K in NamedInputs<TFn>['name']]?: ParamConstraint<ParamValue<TFn, K>>;
390
+ };
391
+ /**
392
+ * Per-action call cap. Emits a standalone `usage-limit` policy.
393
+ * Counter is scoped to this single action — `transfer.maxUses=10` and
394
+ * `approve.maxUses=10` are independent counters.
395
+ */
396
+ maxUses?: bigint;
397
+ /**
398
+ * Upper bound on `block.timestamp`. Pairs with `validAfter` into one
399
+ * `time-frame` policy. If only one of the two is set, the other defaults to
400
+ * "always passes" (validAfter=0 / validUntil=year-2100).
401
+ */
402
+ validUntil?: Date;
403
+ /** Lower bound on `block.timestamp`. See `validUntil`. */
404
+ validAfter?: Date;
405
+ } & SpendingLimitField<TFn> & ValueLimitField<TFn>;
406
+ interface Permission<TAbi extends Abi = Abi> {
407
+ abi: TAbi;
408
+ address: Address;
409
+ functions: {
410
+ [K in FunctionNames<TAbi>]?: PermissionFunctionConfig<GetFunction<TAbi, K> & AbiFunction>;
411
+ };
412
+ }
413
+ type PermissionsForAbis<TAbis extends readonly Abi[]> = {
414
+ [K in keyof TAbis]: TAbis[K] extends Abi ? Permission<TAbis[K]> : never;
415
+ };
416
+ /**
417
+ * Per-session override for SmartSession policy singleton addresses.
418
+ *
419
+ * Defaults are the latest canonical V2 deployments. Provide a partial map to
420
+ * pin one or more policies to non-default addresses — primarily for backwards
421
+ * compatibility with accounts that already enabled sessions against the
422
+ * previous V1 deployments.
423
+ *
424
+ * Resolved addresses are baked into `Session.actions[i].actionPolicies[j].policy`
425
+ * at construction time, so this only needs to be set on `SessionDefinition` —
426
+ * downstream consumers read the already-resolved values off the `Session`.
427
+ */
428
+ interface SessionPolicyAddresses {
429
+ sudo?: Address;
430
+ universalAction?: Address;
431
+ argPolicy?: Address;
432
+ spendingLimits?: Address;
433
+ timeFrame?: Address;
434
+ usageLimit?: Address;
435
+ valueLimit?: Address;
436
+ }
437
+ interface SessionDefinition<TAbis extends readonly Abi[] = readonly Abi[]> {
438
+ chain: Chain;
439
+ owners: OwnerSet;
440
+ permissions?: readonly [...PermissionsForAbis<TAbis>];
441
+ claimPolicies?: readonly Permit2ClaimPolicy[];
442
+ /**
443
+ * Cross-chain permits expanded by the SDK into matching
444
+ * {@link Permit2ClaimPolicy} (claim-side) plus action-level
445
+ * {@link SpendingLimitsPolicy} / {@link TimeFramePolicy} guardrails.
446
+ * See {@link CrossChainPermissionInput}.
447
+ */
448
+ crossChainPermits?: readonly CrossChainPermissionInput[];
449
+ /**
450
+ * Override one or more SmartSession policy addresses. Defaults to the latest
451
+ * V2 deployments. Use to pin to V1 deployments for an account that already
452
+ * has sessions enabled against them.
453
+ */
454
+ policyAddresses?: SessionPolicyAddresses;
455
+ }
456
+ type SessionInput<TAbis extends readonly Abi[] = readonly Abi[]> = Omit<SessionDefinition<TAbis>, 'chain'>;
457
+ interface ResolvedERC7739Content {
458
+ appDomainSeparator: Hex;
459
+ contentNames: readonly string[];
460
+ }
461
+ interface ResolvedPolicy {
462
+ policy: Address;
463
+ initData: Hex;
464
+ }
465
+ interface ResolvedERC7739Policies {
466
+ allowedERC7739Content: readonly ResolvedERC7739Content[];
467
+ erc1271Policies: readonly ResolvedPolicy[];
468
+ }
469
+ interface ResolvedAction {
470
+ actionTargetSelector: Hex;
471
+ actionTarget: Address;
472
+ actionPolicies: readonly ResolvedPolicy[];
473
+ }
474
+ interface Session {
475
+ chain: Chain;
476
+ owners: OwnerSet;
477
+ hasExplicitPermissions: boolean;
478
+ permissionId: Hex;
479
+ sessionValidator: Address;
480
+ sessionValidatorInitData: Hex;
481
+ salt: Hex;
482
+ erc7739Policies: ResolvedERC7739Policies;
483
+ actions: readonly ResolvedAction[];
484
+ claimPolicies: readonly Permit2ClaimPolicy[];
485
+ }
486
+ interface ModuleInput {
487
+ type: ModuleType;
488
+ address: Address;
489
+ initData?: Hex;
490
+ deInitData?: Hex;
491
+ additionalContext?: Hex;
492
+ }
493
+ /**
494
+ * Social recovery configuration.
495
+ *
496
+ * Guardians can rotate the account's validator configuration without the
497
+ * current owner's approval, and there is no timelock. Prefer several trusted
498
+ * guardians with a `threshold` above 1.
499
+ */
500
+ interface Recovery {
501
+ guardians: Account[];
502
+ /** Guardian signatures required to recover. Defaults to `1`. */
503
+ threshold?: number;
504
+ }
505
+ interface RhinestoneAccountConfig {
506
+ account?: AccountProviderConfig;
507
+ owners?: OwnerSet;
508
+ sessions?: {
509
+ enabled: boolean;
510
+ module?: Address;
511
+ compatibilityFallback?: Address;
512
+ };
513
+ recovery?: Recovery;
514
+ eoa?: Account;
515
+ modules?: ModuleInput[];
516
+ initData?: {
517
+ address: Address;
518
+ factory: Address;
519
+ factoryData: Hex;
520
+ intentExecutorInstalled: boolean;
521
+ } | {
522
+ address: Address;
523
+ };
524
+ }
525
+ interface ApiKeyAuth {
526
+ mode: 'apiKey';
527
+ apiKey: string;
528
+ }
529
+ interface JwtAuth {
530
+ mode: 'experimental_jwt';
531
+ /** Static access token, or async getter for refreshable tokens. */
532
+ accessToken: string | (() => Promise<string>);
533
+ /**
534
+ * Called when submitting a sponsored intent. Receives the raw intent
535
+ * input object and must return a signed intent_extension_token JWT.
536
+ */
537
+ getIntentExtensionToken?: (intentInput: unknown) => Promise<string>;
538
+ }
539
+ type AuthConfig = ApiKeyAuth | JwtAuth;
540
+ interface RhinestoneSDKConfigBase {
541
+ provider?: ProviderConfig;
542
+ bundler?: BundlerConfig;
543
+ paymaster?: PaymasterConfig;
544
+ /**
545
+ * @internal
546
+ * Optional orchestrator URL override for internal testing - do not use
547
+ */
548
+ endpointUrl?: string;
549
+ /**
550
+ * @internal
551
+ * Optional intent executor address override for internal testing - do not use
552
+ */
553
+ useDevContracts?: boolean;
554
+ /**
555
+ * Optional custom headers sent with every orchestrator request.
556
+ */
557
+ headers?: Record<string, string>;
558
+ }
559
+ type RhinestoneSDKConfig = RhinestoneSDKConfigBase & ({
560
+ /** @deprecated Use `auth` instead. Still supported for backward compatibility. */
561
+ apiKey: string;
562
+ } | {
563
+ auth: AuthConfig;
564
+ });
565
+ type RhinestoneConfig = RhinestoneAccountConfig & Partial<RhinestoneSDKConfig> & {
566
+ /** @internal Resolved auth provider — set by RhinestoneSDK, not by users. */
567
+ _authProvider?: AuthProvider;
568
+ };
569
+ type TokenSymbol = 'ETH' | 'WETH' | 'USDC' | 'USDT' | 'USDT0';
570
+ interface CalldataInput {
571
+ to: Address;
572
+ data?: Hex;
573
+ value?: bigint;
574
+ }
575
+ interface CallResolveContext {
576
+ config: RhinestoneConfig;
577
+ chain: Chain;
578
+ accountAddress: Address;
579
+ }
580
+ interface LazyCallInput {
581
+ resolve: (context: CallResolveContext) => Promise<CalldataInput | CalldataInput[]>;
582
+ }
583
+ type CallInput = CalldataInput | LazyCallInput;
584
+ interface Call {
585
+ to: Address;
586
+ data: Hex;
587
+ value: bigint;
588
+ }
589
+ type SourceCallProvidedFunds = {
590
+ token: Address;
591
+ amount: bigint;
592
+ };
593
+ type SourceCallInput = CallInput & {
594
+ provides?: SourceCallProvidedFunds[];
595
+ };
596
+ interface TokenRequestWithAmount {
597
+ address: Address;
598
+ amount: bigint;
599
+ }
600
+ interface TokenRequestWithoutAmount {
601
+ address: Address;
602
+ amount?: undefined;
603
+ }
604
+ type TokenRequest = TokenRequestWithAmount | TokenRequestWithoutAmount;
605
+ type TokenRequests = [TokenRequestWithoutAmount] | TokenRequestWithAmount[];
606
+ interface NonEvmTokenRequestWithAmount {
607
+ address: NonEvmAddress;
608
+ amount: bigint;
609
+ }
610
+ interface NonEvmTokenRequestWithoutAmount {
611
+ address: NonEvmAddress;
612
+ amount?: undefined;
613
+ }
614
+ type NonEvmTokenRequest = NonEvmTokenRequestWithAmount | NonEvmTokenRequestWithoutAmount;
615
+ type NonEvmTokenRequests = [NonEvmTokenRequestWithoutAmount] | NonEvmTokenRequestWithAmount[];
616
+ export type SimpleTokenList = Address[];
617
+ export type ChainTokenMap = Record<number, SimpleTokenList>;
618
+ export type ExactInputConfig = {
619
+ chain: Chain;
620
+ address: Address;
621
+ amount?: bigint;
622
+ };
623
+ type SourceAssetInput = SimpleTokenList | ChainTokenMap | ExactInputConfig[];
624
+ type OwnerSignerSet = {
625
+ type: 'owner';
626
+ kind: 'ecdsa';
627
+ accounts: Account[];
628
+ module?: Address;
629
+ } | {
630
+ type: 'owner';
631
+ kind: 'passkey';
632
+ accounts: WebAuthnAccount[];
633
+ module?: Address;
634
+ } | {
635
+ type: 'owner';
636
+ kind: 'multi-factor';
637
+ validators: ({
638
+ type: 'ecdsa';
639
+ id: number | Hex;
640
+ accounts: Account[];
641
+ } | {
642
+ type: 'passkey';
643
+ id: number | Hex;
644
+ accounts: WebAuthnAccount[];
645
+ })[];
646
+ module?: Address;
647
+ };
648
+ interface SessionEnableData {
649
+ userSignature: Hex;
650
+ hashesAndChainIds: {
651
+ chainId: bigint;
652
+ sessionDigest: Hex;
653
+ }[];
654
+ sessionToEnableIndex: number;
655
+ }
656
+ interface ChainSessionConfig {
657
+ session: Session;
658
+ enableData?: SessionEnableData;
659
+ }
660
+ interface SingleSessionSignerSet {
661
+ type: 'session';
662
+ session: Session;
663
+ enableData?: SessionEnableData;
664
+ }
665
+ interface PerChainSessionSignerSet {
666
+ type: 'session';
667
+ sessions: Record<number, ChainSessionConfig>;
668
+ }
669
+ type SessionSignerSet = SingleSessionSignerSet | PerChainSessionSignerSet;
670
+ /**
671
+ * Signs with the account's recovery guardians instead of its owners.
672
+ *
673
+ * Only valid for UserOperations: the social recovery validator rejects
674
+ * ERC-1271 signatures and the intent flow entirely, and it accepts a single
675
+ * `execute` call targeting an installed validator.
676
+ */
677
+ interface GuardiansSignerSet {
678
+ type: 'guardians';
679
+ guardians: Account[];
680
+ }
681
+ type SignerSet = OwnerSignerSet | SessionSignerSet | GuardiansSignerSet;
682
+ type Sponsorship = boolean | {
683
+ gas: boolean;
684
+ bridging: boolean;
685
+ swaps: boolean;
686
+ /**
687
+ * Sponsor the Rhinestone protocol fee (`protocolFees`) from the
688
+ * integrator's sponsorship balance instead of charging the user, without
689
+ * the sponsorship surcharge. Defaults to `false` in the object form; the
690
+ * `sponsored: true` shorthand enables it along with the other categories.
691
+ */
692
+ protocolFees?: boolean;
693
+ };
694
+ interface BaseTransaction {
695
+ calls?: CallInput[];
696
+ /**
697
+ * Per-chain executions to run on the source side, before the claim.
698
+ * Keyed by chain ID (must be present in `sourceChains`, or equal the
699
+ * target chain for same-chain transactions). Bundled into the intent
700
+ * at routing time and covered by the user's mandate signature.
701
+ *
702
+ * Caveat: only executes if the orchestrator creates an element on the
703
+ * matching chain — i.e. when the intent actually moves tokens from
704
+ * that source. Sponsored / no-op fills with no source movement skip
705
+ * the source element entirely, and `sourceCalls` keyed on that chain
706
+ * are silently dropped.
707
+ */
708
+ sourceCalls?: Record<number, SourceCallInput[]>;
709
+ gasLimit?: bigint;
710
+ signers?: SignerSet;
711
+ sponsored?: Sponsorship;
712
+ eip7702InitSignature?: Hex;
713
+ sourceAssets?: SourceAssetInput;
714
+ appFees?: AppFeeRate;
715
+ /**
716
+ * Rhinestone protocol fee rate in basis points of the input value (0–10000 =
717
+ * 0–100%). Collected alongside `appFees` in one batched transfer and always
718
+ * accrues to Rhinestone. Sponsor it via `sponsored.protocolFees` to charge
719
+ * the integrator's sponsorship balance instead of the user.
720
+ */
721
+ protocolFees?: ProtocolFeeRate;
722
+ settlementLayers?: SettlementLayerFilter;
723
+ auxiliaryFunds?: AuxiliaryFunds;
724
+ experimental_accountOverride?: {
725
+ setupOps?: {
726
+ to: Address;
727
+ data: Hex;
728
+ }[];
729
+ };
730
+ }
731
+ interface SameChainTransaction extends BaseTransaction {
732
+ chain: Chain;
733
+ tokenRequests?: TokenRequests;
734
+ recipient?: RhinestoneAccountConfig | Address;
735
+ /**
736
+ * Absolute unix timestamp (seconds) overriding the on-chain fill deadline
737
+ * (default 2 min). Same-chain only — the field lives on this type precisely
738
+ * because the orchestrator honors it only on the same-chain (tokenless)
739
+ * route; cross-chain transactions cannot set it. Must be between
740
+ * `now + 120s` and `now + 86400s` (24h); out-of-range values are rejected
741
+ * by the orchestrator with a `400`. When honored, the quoted `expiresAt`
742
+ * and the bundle claim/nonce expiry track this value automatically.
743
+ */
744
+ customDeadline?: number;
745
+ }
746
+ interface CrossChainEvmTransaction extends BaseTransaction {
747
+ sourceChains?: Chain[];
748
+ targetChain: Chain;
749
+ tokenRequests?: TokenRequests;
750
+ recipient?: RhinestoneAccountConfig | Address;
751
+ }
752
+ interface CrossChainNonEvmTransaction extends BaseTransaction {
753
+ sourceChains?: Chain[];
754
+ targetChain: NonEvmChain;
755
+ tokenRequests?: NonEvmTokenRequests;
756
+ recipient?: NonEvmAddress;
757
+ }
758
+ type CrossChainTransaction = CrossChainEvmTransaction | CrossChainNonEvmTransaction;
759
+ interface UserOperationTransaction {
760
+ calls: CallInput[];
761
+ gasLimit?: bigint;
762
+ signers?: SignerSet;
763
+ chain: Chain;
764
+ }
765
+ type Transaction = SameChainTransaction | CrossChainTransaction;
766
+ export type { AccountType, SafeAccount, NexusAccount, KernelAccount, StartaleAccount, HcaAccount, EoaAccount, RhinestoneAccountConfig, RhinestoneSDKConfig, RhinestoneConfig, AccountProviderConfig, ProviderConfig, BundlerConfig, PaymasterConfig, Transaction, UserOperationTransaction, TokenSymbol, CalldataInput, LazyCallInput, CallInput, SourceCallProvidedFunds, SourceCallInput, CallResolveContext, Call, Sponsorship, TokenRequest, TokenRequests, NonEvmTokenRequest, NonEvmTokenRequests, SourceAssetInput, OwnerSet, OwnableValidatorConfig, ENSValidatorConfig, WebauthnValidatorConfig, MultiFactorValidatorConfig, SignerSet, GuardiansSignerSet, Recovery, ChainSessionConfig, SingleSessionSignerSet, PerChainSessionSignerSet, SessionSignerSet, SessionDefinition, SessionInput, SessionEnableData, Session, ModuleType, ModuleInput, Action, ScopedAction, FallbackAction, Permission, PermissionsForAbis, PermissionFunctionConfig, ParamConstraint, ResolvedAction, ResolvedERC7739Content, ResolvedERC7739Policies, ResolvedPolicy, Policy, Permit2ClaimPolicy, CrossChainPermit, CrossChainPermissionInput, FromLeg, ToLeg, CrossChainSettlementLayer, UniversalActionPolicyParamCondition, ArgPolicyExpression, SessionPolicyAddresses, ApiKeyAuth, JwtAuth, AuthConfig, };
767
+ //# sourceMappingURL=account.d.ts.map