@usesigil/kit 0.15.0 → 0.17.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 (627) hide show
  1. package/README.md +56 -0
  2. package/dist/advanced-analytics.d.ts +3 -2
  3. package/dist/advanced-analytics.d.ts.map +1 -1
  4. package/dist/advanced-analytics.js +9 -42
  5. package/dist/advanced-analytics.js.map +1 -1
  6. package/dist/agent-bootstrap.d.ts +117 -0
  7. package/dist/agent-bootstrap.d.ts.map +1 -0
  8. package/dist/agent-bootstrap.js +211 -0
  9. package/dist/agent-bootstrap.js.map +1 -0
  10. package/dist/agent-errors.d.ts +20 -4
  11. package/dist/agent-errors.d.ts.map +1 -1
  12. package/dist/agent-errors.js +947 -377
  13. package/dist/agent-errors.js.map +1 -1
  14. package/dist/audit-log.d.ts +101 -0
  15. package/dist/audit-log.d.ts.map +1 -0
  16. package/dist/audit-log.js +145 -0
  17. package/dist/audit-log.js.map +1 -0
  18. package/dist/build-unsigned.d.ts +152 -0
  19. package/dist/build-unsigned.d.ts.map +1 -0
  20. package/dist/build-unsigned.js +152 -0
  21. package/dist/build-unsigned.js.map +1 -0
  22. package/dist/caip2-network.d.ts +171 -0
  23. package/dist/caip2-network.d.ts.map +1 -0
  24. package/dist/caip2-network.js +202 -0
  25. package/dist/caip2-network.js.map +1 -0
  26. package/dist/canonical-encode.d.ts +59 -0
  27. package/dist/canonical-encode.d.ts.map +1 -0
  28. package/dist/canonical-encode.js +141 -0
  29. package/dist/canonical-encode.js.map +1 -0
  30. package/dist/cosign-helper.d.ts +264 -0
  31. package/dist/cosign-helper.d.ts.map +1 -0
  32. package/dist/cosign-helper.js +147 -0
  33. package/dist/cosign-helper.js.map +1 -0
  34. package/dist/create-vault.d.ts +102 -1
  35. package/dist/create-vault.d.ts.map +1 -1
  36. package/dist/create-vault.js +108 -9
  37. package/dist/create-vault.js.map +1 -1
  38. package/dist/dashboard/close-vault.d.ts +110 -0
  39. package/dist/dashboard/close-vault.d.ts.map +1 -0
  40. package/dist/dashboard/close-vault.js +165 -0
  41. package/dist/dashboard/close-vault.js.map +1 -0
  42. package/dist/dashboard/errors.d.ts +37 -0
  43. package/dist/dashboard/errors.d.ts.map +1 -1
  44. package/dist/dashboard/errors.js +81 -1
  45. package/dist/dashboard/errors.js.map +1 -1
  46. package/dist/dashboard/from-json.d.ts.map +1 -1
  47. package/dist/dashboard/from-json.js +1 -2
  48. package/dist/dashboard/from-json.js.map +1 -1
  49. package/dist/dashboard/index.d.ts +204 -31
  50. package/dist/dashboard/index.d.ts.map +1 -1
  51. package/dist/dashboard/index.js +290 -49
  52. package/dist/dashboard/index.js.map +1 -1
  53. package/dist/dashboard/mutations.d.ts +160 -10
  54. package/dist/dashboard/mutations.d.ts.map +1 -1
  55. package/dist/dashboard/mutations.js +584 -66
  56. package/dist/dashboard/mutations.js.map +1 -1
  57. package/dist/dashboard/post-assertion-validation.d.ts +88 -0
  58. package/dist/dashboard/post-assertion-validation.d.ts.map +1 -0
  59. package/dist/dashboard/post-assertion-validation.js +312 -0
  60. package/dist/dashboard/post-assertion-validation.js.map +1 -0
  61. package/dist/dashboard/reads.d.ts +92 -1
  62. package/dist/dashboard/reads.d.ts.map +1 -1
  63. package/dist/dashboard/reads.js +244 -26
  64. package/dist/dashboard/reads.js.map +1 -1
  65. package/dist/dashboard/types.d.ts +172 -21
  66. package/dist/dashboard/types.d.ts.map +1 -1
  67. package/dist/errors/agent-errors.generated.d.ts +21 -0
  68. package/dist/errors/agent-errors.generated.d.ts.map +1 -0
  69. package/dist/errors/agent-errors.generated.js +133 -0
  70. package/dist/errors/agent-errors.generated.js.map +1 -0
  71. package/dist/errors/codes.d.ts +21 -2
  72. package/dist/errors/codes.d.ts.map +1 -1
  73. package/dist/errors/codes.js +20 -1
  74. package/dist/errors/codes.js.map +1 -1
  75. package/dist/errors/context.d.ts +9 -1
  76. package/dist/errors/context.d.ts.map +1 -1
  77. package/dist/event-analytics.d.ts +1 -3
  78. package/dist/event-analytics.d.ts.map +1 -1
  79. package/dist/event-analytics.js +28 -81
  80. package/dist/event-analytics.js.map +1 -1
  81. package/dist/events.d.ts.map +1 -1
  82. package/dist/events.js +23 -13
  83. package/dist/events.js.map +1 -1
  84. package/dist/generated/accounts/agentSpendOverlay.d.ts +60 -0
  85. package/dist/generated/accounts/agentSpendOverlay.d.ts.map +1 -1
  86. package/dist/generated/accounts/agentSpendOverlay.js +6 -2
  87. package/dist/generated/accounts/agentSpendOverlay.js.map +1 -1
  88. package/dist/generated/accounts/agentVault.d.ts +168 -4
  89. package/dist/generated/accounts/agentVault.d.ts.map +1 -1
  90. package/dist/generated/accounts/agentVault.js +11 -3
  91. package/dist/generated/accounts/agentVault.js.map +1 -1
  92. package/dist/generated/accounts/auditLogRejected.d.ts +66 -0
  93. package/dist/generated/accounts/auditLogRejected.d.ts.map +1 -0
  94. package/dist/generated/accounts/auditLogRejected.js +68 -0
  95. package/dist/generated/accounts/auditLogRejected.js.map +1 -0
  96. package/dist/generated/accounts/auditLogSuccess.d.ts +78 -0
  97. package/dist/generated/accounts/auditLogSuccess.d.ts.map +1 -0
  98. package/dist/generated/accounts/auditLogSuccess.js +68 -0
  99. package/dist/generated/accounts/auditLogSuccess.js.map +1 -0
  100. package/dist/generated/accounts/index.d.ts +4 -4
  101. package/dist/generated/accounts/index.d.ts.map +1 -1
  102. package/dist/generated/accounts/index.js +4 -4
  103. package/dist/generated/accounts/index.js.map +1 -1
  104. package/dist/generated/accounts/pendingAgentGrant.d.ts +199 -0
  105. package/dist/generated/accounts/pendingAgentGrant.d.ts.map +1 -0
  106. package/dist/generated/accounts/pendingAgentGrant.js +75 -0
  107. package/dist/generated/accounts/pendingAgentGrant.js.map +1 -0
  108. package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts +76 -0
  109. package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts.map +1 -1
  110. package/dist/generated/accounts/pendingAgentPermissionsUpdate.js +9 -1
  111. package/dist/generated/accounts/pendingAgentPermissionsUpdate.js.map +1 -1
  112. package/dist/generated/accounts/pendingOwnershipTransfer.d.ts +131 -0
  113. package/dist/generated/accounts/pendingOwnershipTransfer.d.ts.map +1 -0
  114. package/dist/generated/accounts/pendingOwnershipTransfer.js +76 -0
  115. package/dist/generated/accounts/pendingOwnershipTransfer.js.map +1 -0
  116. package/dist/generated/accounts/pendingPolicyUpdate.d.ts +220 -4
  117. package/dist/generated/accounts/pendingPolicyUpdate.d.ts.map +1 -1
  118. package/dist/generated/accounts/pendingPolicyUpdate.js +25 -5
  119. package/dist/generated/accounts/pendingPolicyUpdate.js.map +1 -1
  120. package/dist/generated/accounts/policyConfig.d.ts +495 -34
  121. package/dist/generated/accounts/policyConfig.d.ts.map +1 -1
  122. package/dist/generated/accounts/policyConfig.js +34 -7
  123. package/dist/generated/accounts/policyConfig.js.map +1 -1
  124. package/dist/generated/accounts/postExecutionAssertions.d.ts +2 -2
  125. package/dist/generated/accounts/postExecutionAssertions.d.ts.map +1 -1
  126. package/dist/generated/accounts/postExecutionAssertions.js +3 -3
  127. package/dist/generated/accounts/sessionAuthority.d.ts +154 -12
  128. package/dist/generated/accounts/sessionAuthority.d.ts.map +1 -1
  129. package/dist/generated/accounts/sessionAuthority.js +12 -10
  130. package/dist/generated/accounts/sessionAuthority.js.map +1 -1
  131. package/dist/generated/accounts/spendTracker.d.ts +83 -3
  132. package/dist/generated/accounts/spendTracker.d.ts.map +1 -1
  133. package/dist/generated/accounts/spendTracker.js +14 -2
  134. package/dist/generated/accounts/spendTracker.js.map +1 -1
  135. package/dist/generated/errors/sigil.d.ts +160 -100
  136. package/dist/generated/errors/sigil.d.ts.map +1 -1
  137. package/dist/generated/errors/sigil.js +214 -124
  138. package/dist/generated/errors/sigil.js.map +1 -1
  139. package/dist/generated/event-discriminators.d.ts.map +1 -1
  140. package/dist/generated/event-discriminators.js +11 -13
  141. package/dist/generated/event-discriminators.js.map +1 -1
  142. package/dist/generated/instructions/acceptOwnershipTransfer.d.ts +142 -0
  143. package/dist/generated/instructions/acceptOwnershipTransfer.d.ts.map +1 -0
  144. package/dist/generated/instructions/acceptOwnershipTransfer.js +171 -0
  145. package/dist/generated/instructions/acceptOwnershipTransfer.js.map +1 -0
  146. package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts +142 -0
  147. package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts.map +1 -0
  148. package/dist/generated/instructions/acceptOwnershipTransferMultisig.js +171 -0
  149. package/dist/generated/instructions/acceptOwnershipTransferMultisig.js.map +1 -0
  150. package/dist/generated/instructions/applyAgentGrant.d.ts +100 -0
  151. package/dist/generated/instructions/applyAgentGrant.d.ts.map +1 -0
  152. package/dist/generated/instructions/{applyConstraintsUpdate.js → applyAgentGrant.js} +66 -42
  153. package/dist/generated/instructions/applyAgentGrant.js.map +1 -0
  154. package/dist/generated/instructions/applyAgentPermissionsUpdate.d.ts +31 -8
  155. package/dist/generated/instructions/applyAgentPermissionsUpdate.d.ts.map +1 -1
  156. package/dist/generated/instructions/applyAgentPermissionsUpdate.js +38 -2
  157. package/dist/generated/instructions/applyAgentPermissionsUpdate.js.map +1 -1
  158. package/dist/generated/instructions/applyPendingPolicy.d.ts +18 -7
  159. package/dist/generated/instructions/applyPendingPolicy.d.ts.map +1 -1
  160. package/dist/generated/instructions/applyPendingPolicy.js +38 -2
  161. package/dist/generated/instructions/applyPendingPolicy.js.map +1 -1
  162. package/dist/generated/instructions/cancelAgentGrant.d.ts +106 -0
  163. package/dist/generated/instructions/cancelAgentGrant.d.ts.map +1 -0
  164. package/dist/generated/instructions/{allocatePendingConstraintsPda.js → cancelAgentGrant.js} +54 -42
  165. package/dist/generated/instructions/cancelAgentGrant.js.map +1 -0
  166. package/dist/generated/instructions/cancelOwnershipTransfer.d.ts +121 -0
  167. package/dist/generated/instructions/cancelOwnershipTransfer.d.ts.map +1 -0
  168. package/dist/generated/instructions/{queueCloseConstraints.js → cancelOwnershipTransfer.js} +58 -44
  169. package/dist/generated/instructions/cancelOwnershipTransfer.js.map +1 -0
  170. package/dist/generated/instructions/closePostAssertions.d.ts +6 -1
  171. package/dist/generated/instructions/closePostAssertions.d.ts.map +1 -1
  172. package/dist/generated/instructions/closePostAssertions.js +11 -3
  173. package/dist/generated/instructions/closePostAssertions.js.map +1 -1
  174. package/dist/generated/instructions/closeVault.d.ts +40 -8
  175. package/dist/generated/instructions/closeVault.d.ts.map +1 -1
  176. package/dist/generated/instructions/closeVault.js +40 -2
  177. package/dist/generated/instructions/closeVault.js.map +1 -1
  178. package/dist/generated/instructions/createPostAssertions.d.ts +4 -0
  179. package/dist/generated/instructions/createPostAssertions.d.ts.map +1 -1
  180. package/dist/generated/instructions/createPostAssertions.js +2 -0
  181. package/dist/generated/instructions/createPostAssertions.js.map +1 -1
  182. package/dist/generated/instructions/depositFunds.d.ts +21 -10
  183. package/dist/generated/instructions/depositFunds.d.ts.map +1 -1
  184. package/dist/generated/instructions/depositFunds.js +37 -2
  185. package/dist/generated/instructions/depositFunds.js.map +1 -1
  186. package/dist/generated/instructions/finalizeSession.d.ts +49 -7
  187. package/dist/generated/instructions/finalizeSession.d.ts.map +1 -1
  188. package/dist/generated/instructions/finalizeSession.js +59 -2
  189. package/dist/generated/instructions/finalizeSession.js.map +1 -1
  190. package/dist/generated/instructions/freezeVault.d.ts +39 -5
  191. package/dist/generated/instructions/freezeVault.d.ts.map +1 -1
  192. package/dist/generated/instructions/freezeVault.js +77 -5
  193. package/dist/generated/instructions/freezeVault.js.map +1 -1
  194. package/dist/generated/instructions/index.d.ts +10 -14
  195. package/dist/generated/instructions/index.d.ts.map +1 -1
  196. package/dist/generated/instructions/index.js +10 -14
  197. package/dist/generated/instructions/index.js.map +1 -1
  198. package/dist/generated/instructions/initializeVault.d.ts +79 -13
  199. package/dist/generated/instructions/initializeVault.d.ts.map +1 -1
  200. package/dist/generated/instructions/initializeVault.js +57 -5
  201. package/dist/generated/instructions/initializeVault.js.map +1 -1
  202. package/dist/generated/instructions/initiateOwnershipTransfer.d.ts +106 -0
  203. package/dist/generated/instructions/initiateOwnershipTransfer.d.ts.map +1 -0
  204. package/dist/generated/instructions/initiateOwnershipTransfer.js +181 -0
  205. package/dist/generated/instructions/initiateOwnershipTransfer.js.map +1 -0
  206. package/dist/generated/instructions/pauseAgent.d.ts +49 -5
  207. package/dist/generated/instructions/pauseAgent.d.ts.map +1 -1
  208. package/dist/generated/instructions/pauseAgent.js +80 -5
  209. package/dist/generated/instructions/pauseAgent.js.map +1 -1
  210. package/dist/generated/instructions/promoteGraylistDestination.d.ts +56 -0
  211. package/dist/generated/instructions/promoteGraylistDestination.d.ts.map +1 -0
  212. package/dist/generated/instructions/{createInstructionConstraints.js → promoteGraylistDestination.js} +23 -40
  213. package/dist/generated/instructions/promoteGraylistDestination.js.map +1 -0
  214. package/dist/generated/instructions/queueAgentGrant.d.ts +113 -0
  215. package/dist/generated/instructions/queueAgentGrant.d.ts.map +1 -0
  216. package/dist/generated/instructions/queueAgentGrant.js +181 -0
  217. package/dist/generated/instructions/queueAgentGrant.js.map +1 -0
  218. package/dist/generated/instructions/queueAgentPermissionsUpdate.d.ts +8 -0
  219. package/dist/generated/instructions/queueAgentPermissionsUpdate.d.ts.map +1 -1
  220. package/dist/generated/instructions/queueAgentPermissionsUpdate.js +4 -0
  221. package/dist/generated/instructions/queueAgentPermissionsUpdate.js.map +1 -1
  222. package/dist/generated/instructions/queuePolicyUpdate.d.ts +40 -8
  223. package/dist/generated/instructions/queuePolicyUpdate.d.ts.map +1 -1
  224. package/dist/generated/instructions/queuePolicyUpdate.js +21 -5
  225. package/dist/generated/instructions/queuePolicyUpdate.js.map +1 -1
  226. package/dist/generated/instructions/reactivateVault.d.ts +71 -5
  227. package/dist/generated/instructions/reactivateVault.d.ts.map +1 -1
  228. package/dist/generated/instructions/reactivateVault.js +80 -5
  229. package/dist/generated/instructions/reactivateVault.js.map +1 -1
  230. package/dist/generated/instructions/recordAgentViolation.d.ts +89 -0
  231. package/dist/generated/instructions/recordAgentViolation.d.ts.map +1 -0
  232. package/dist/generated/instructions/recordAgentViolation.js +152 -0
  233. package/dist/generated/instructions/recordAgentViolation.js.map +1 -0
  234. package/dist/generated/instructions/registerAgent.d.ts +84 -6
  235. package/dist/generated/instructions/registerAgent.d.ts.map +1 -1
  236. package/dist/generated/instructions/registerAgent.js +81 -4
  237. package/dist/generated/instructions/registerAgent.js.map +1 -1
  238. package/dist/generated/instructions/revokeAgent.d.ts +49 -6
  239. package/dist/generated/instructions/revokeAgent.d.ts.map +1 -1
  240. package/dist/generated/instructions/revokeAgent.js +81 -4
  241. package/dist/generated/instructions/revokeAgent.js.map +1 -1
  242. package/dist/generated/instructions/setObserveOnly.d.ts +56 -0
  243. package/dist/generated/instructions/setObserveOnly.d.ts.map +1 -0
  244. package/dist/generated/instructions/setObserveOnly.js +111 -0
  245. package/dist/generated/instructions/setObserveOnly.js.map +1 -0
  246. package/dist/generated/instructions/unpauseAgent.d.ts +46 -5
  247. package/dist/generated/instructions/unpauseAgent.d.ts.map +1 -1
  248. package/dist/generated/instructions/unpauseAgent.js +80 -5
  249. package/dist/generated/instructions/unpauseAgent.js.map +1 -1
  250. package/dist/generated/instructions/validateAndAuthorize.d.ts +29 -0
  251. package/dist/generated/instructions/validateAndAuthorize.d.ts.map +1 -1
  252. package/dist/generated/instructions/validateAndAuthorize.js +4 -0
  253. package/dist/generated/instructions/validateAndAuthorize.js.map +1 -1
  254. package/dist/generated/instructions/withdrawFunds.d.ts +53 -11
  255. package/dist/generated/instructions/withdrawFunds.d.ts.map +1 -1
  256. package/dist/generated/instructions/withdrawFunds.js +51 -2
  257. package/dist/generated/instructions/withdrawFunds.js.map +1 -1
  258. package/dist/generated/programs/sigil.d.ts +79 -95
  259. package/dist/generated/programs/sigil.d.ts.map +1 -1
  260. package/dist/generated/programs/sigil.js +139 -187
  261. package/dist/generated/programs/sigil.js.map +1 -1
  262. package/dist/generated/types/actionAuthorized.d.ts +0 -2
  263. package/dist/generated/types/actionAuthorized.d.ts.map +1 -1
  264. package/dist/generated/types/actionAuthorized.js +0 -2
  265. package/dist/generated/types/actionAuthorized.js.map +1 -1
  266. package/dist/generated/types/agentAutoRevoked.d.ts +31 -0
  267. package/dist/generated/types/agentAutoRevoked.d.ts.map +1 -0
  268. package/dist/generated/types/{pdaAllocated.js → agentAutoRevoked.js} +12 -10
  269. package/dist/generated/types/agentAutoRevoked.js.map +1 -0
  270. package/dist/generated/types/agentEntry.d.ts +48 -0
  271. package/dist/generated/types/agentEntry.d.ts.map +1 -1
  272. package/dist/generated/types/agentEntry.js +4 -2
  273. package/dist/generated/types/agentEntry.js.map +1 -1
  274. package/dist/generated/types/agentGrantApplied.d.ts +38 -0
  275. package/dist/generated/types/agentGrantApplied.d.ts.map +1 -0
  276. package/dist/generated/types/agentGrantApplied.js +34 -0
  277. package/dist/generated/types/agentGrantApplied.js.map +1 -0
  278. package/dist/generated/types/agentGrantCancelled.d.ts +33 -0
  279. package/dist/generated/types/agentGrantCancelled.d.ts.map +1 -0
  280. package/dist/generated/types/agentGrantCancelled.js +28 -0
  281. package/dist/generated/types/agentGrantCancelled.js.map +1 -0
  282. package/dist/generated/types/agentGrantQueued.d.ts +38 -0
  283. package/dist/generated/types/agentGrantQueued.d.ts.map +1 -0
  284. package/dist/generated/types/agentGrantQueued.js +32 -0
  285. package/dist/generated/types/agentGrantQueued.js.map +1 -0
  286. package/dist/generated/types/auditEntry.d.ts +120 -0
  287. package/dist/generated/types/auditEntry.d.ts.map +1 -0
  288. package/dist/generated/types/auditEntry.js +34 -0
  289. package/dist/generated/types/auditEntry.js.map +1 -0
  290. package/dist/generated/types/destinationGraylistEntry.d.ts +32 -0
  291. package/dist/generated/types/destinationGraylistEntry.d.ts.map +1 -0
  292. package/dist/generated/types/destinationGraylistEntry.js +24 -0
  293. package/dist/generated/types/destinationGraylistEntry.js.map +1 -0
  294. package/dist/generated/types/graylistEntered.d.ts +31 -0
  295. package/dist/generated/types/graylistEntered.d.ts.map +1 -0
  296. package/dist/generated/types/graylistEntered.js +30 -0
  297. package/dist/generated/types/graylistEntered.js.map +1 -0
  298. package/dist/generated/types/graylistPromoted.d.ts +29 -0
  299. package/dist/generated/types/graylistPromoted.d.ts.map +1 -0
  300. package/dist/generated/types/graylistPromoted.js +28 -0
  301. package/dist/generated/types/graylistPromoted.js.map +1 -0
  302. package/dist/generated/types/index.d.ts +13 -21
  303. package/dist/generated/types/index.d.ts.map +1 -1
  304. package/dist/generated/types/index.js +13 -21
  305. package/dist/generated/types/index.js.map +1 -1
  306. package/dist/generated/types/observeOnlyChanged.d.ts +33 -0
  307. package/dist/generated/types/observeOnlyChanged.d.ts.map +1 -0
  308. package/dist/generated/types/observeOnlyChanged.js +32 -0
  309. package/dist/generated/types/observeOnlyChanged.js.map +1 -0
  310. package/dist/generated/types/ownershipTransferAccepted.d.ts +32 -0
  311. package/dist/generated/types/ownershipTransferAccepted.d.ts.map +1 -0
  312. package/dist/generated/types/ownershipTransferAccepted.js +30 -0
  313. package/dist/generated/types/ownershipTransferAccepted.js.map +1 -0
  314. package/dist/generated/types/ownershipTransferCancelled.d.ts +29 -0
  315. package/dist/generated/types/ownershipTransferCancelled.d.ts.map +1 -0
  316. package/dist/generated/types/ownershipTransferCancelled.js +28 -0
  317. package/dist/generated/types/ownershipTransferCancelled.js.map +1 -0
  318. package/dist/generated/types/ownershipTransferInitiated.d.ts +33 -0
  319. package/dist/generated/types/ownershipTransferInitiated.d.ts.map +1 -0
  320. package/dist/generated/types/ownershipTransferInitiated.js +30 -0
  321. package/dist/generated/types/ownershipTransferInitiated.js.map +1 -0
  322. package/dist/generated/types/perRecipientCounter.d.ts +61 -0
  323. package/dist/generated/types/perRecipientCounter.d.ts.map +1 -0
  324. package/dist/generated/types/perRecipientCounter.js +26 -0
  325. package/dist/generated/types/perRecipientCounter.js.map +1 -0
  326. package/dist/generated/types/postAssertionEntry.d.ts +14 -7
  327. package/dist/generated/types/postAssertionEntry.d.ts.map +1 -1
  328. package/dist/generated/types/postAssertionEntry.js +5 -7
  329. package/dist/generated/types/postAssertionEntry.js.map +1 -1
  330. package/dist/generated/types/postAssertionEntryZC.d.ts +53 -22
  331. package/dist/generated/types/postAssertionEntryZC.d.ts.map +1 -1
  332. package/dist/generated/types/postAssertionEntryZC.js +4 -6
  333. package/dist/generated/types/postAssertionEntryZC.js.map +1 -1
  334. package/dist/generated/types/sessionFinalized.d.ts +0 -4
  335. package/dist/generated/types/sessionFinalized.d.ts.map +1 -1
  336. package/dist/generated/types/sessionFinalized.js +0 -2
  337. package/dist/generated/types/sessionFinalized.js.map +1 -1
  338. package/dist/generated/types/vaultFrozen.d.ts +26 -0
  339. package/dist/generated/types/vaultFrozen.d.ts.map +1 -1
  340. package/dist/generated/types/vaultFrozen.js +5 -1
  341. package/dist/generated/types/vaultFrozen.js.map +1 -1
  342. package/dist/index.d.ts +35 -6
  343. package/dist/index.d.ts.map +1 -1
  344. package/dist/index.js +81 -7
  345. package/dist/index.js.map +1 -1
  346. package/dist/inscribe.d.ts +0 -4
  347. package/dist/inscribe.d.ts.map +1 -1
  348. package/dist/inscribe.js +0 -1
  349. package/dist/inscribe.js.map +1 -1
  350. package/dist/inspector.d.ts +0 -23
  351. package/dist/inspector.d.ts.map +1 -1
  352. package/dist/inspector.js +0 -52
  353. package/dist/inspector.js.map +1 -1
  354. package/dist/kit-adapter.d.ts +1 -1
  355. package/dist/kit-adapter.d.ts.map +1 -1
  356. package/dist/kit-adapter.js +1 -1
  357. package/dist/kit-adapter.js.map +1 -1
  358. package/dist/logger.d.ts +48 -0
  359. package/dist/logger.d.ts.map +1 -1
  360. package/dist/logger.js +36 -0
  361. package/dist/logger.js.map +1 -1
  362. package/dist/multisig-detection.d.ts +83 -0
  363. package/dist/multisig-detection.d.ts.map +1 -0
  364. package/dist/multisig-detection.js +128 -0
  365. package/dist/multisig-detection.js.map +1 -0
  366. package/dist/owner-transaction.d.ts +8 -0
  367. package/dist/owner-transaction.d.ts.map +1 -1
  368. package/dist/owner-transaction.js +1 -0
  369. package/dist/owner-transaction.js.map +1 -1
  370. package/dist/ownership-transfer.d.ts +79 -0
  371. package/dist/ownership-transfer.d.ts.map +1 -0
  372. package/dist/ownership-transfer.js +66 -0
  373. package/dist/ownership-transfer.js.map +1 -0
  374. package/dist/policy/compute-cosign-digest.d.ts +193 -0
  375. package/dist/policy/compute-cosign-digest.d.ts.map +1 -0
  376. package/dist/policy/compute-cosign-digest.js +318 -0
  377. package/dist/policy/compute-cosign-digest.js.map +1 -0
  378. package/dist/policy/compute-policy-preview-digest.d.ts +258 -0
  379. package/dist/policy/compute-policy-preview-digest.d.ts.map +1 -0
  380. package/dist/policy/compute-policy-preview-digest.js +351 -0
  381. package/dist/policy/compute-policy-preview-digest.js.map +1 -0
  382. package/dist/policy-attestation.d.ts +51 -0
  383. package/dist/policy-attestation.d.ts.map +1 -0
  384. package/dist/policy-attestation.js +43 -0
  385. package/dist/policy-attestation.js.map +1 -0
  386. package/dist/presets.d.ts +1 -7
  387. package/dist/presets.d.ts.map +1 -1
  388. package/dist/presets.js +0 -5
  389. package/dist/presets.js.map +1 -1
  390. package/dist/preview-create-vault.d.ts +280 -0
  391. package/dist/preview-create-vault.d.ts.map +1 -0
  392. package/dist/preview-create-vault.js +498 -0
  393. package/dist/preview-create-vault.js.map +1 -0
  394. package/dist/resolve-accounts.d.ts +75 -10
  395. package/dist/resolve-accounts.d.ts.map +1 -1
  396. package/dist/resolve-accounts.js +68 -32
  397. package/dist/resolve-accounts.js.map +1 -1
  398. package/dist/rpc-helpers.d.ts +29 -3
  399. package/dist/rpc-helpers.d.ts.map +1 -1
  400. package/dist/rpc-helpers.js +51 -12
  401. package/dist/rpc-helpers.js.map +1 -1
  402. package/dist/seal/intent-digest.d.ts +195 -0
  403. package/dist/seal/intent-digest.d.ts.map +1 -0
  404. package/dist/seal/intent-digest.js +372 -0
  405. package/dist/seal/intent-digest.js.map +1 -0
  406. package/dist/seal.d.ts +166 -3
  407. package/dist/seal.d.ts.map +1 -1
  408. package/dist/seal.js +428 -8
  409. package/dist/seal.js.map +1 -1
  410. package/dist/security-analytics.d.ts +3 -3
  411. package/dist/security-analytics.d.ts.map +1 -1
  412. package/dist/security-analytics.js +13 -128
  413. package/dist/security-analytics.js.map +1 -1
  414. package/dist/session-mint.d.ts +72 -0
  415. package/dist/session-mint.d.ts.map +1 -0
  416. package/dist/session-mint.js +59 -0
  417. package/dist/session-mint.js.map +1 -0
  418. package/dist/sigil.d.ts +0 -4
  419. package/dist/sigil.d.ts.map +1 -1
  420. package/dist/simulation.d.ts +19 -0
  421. package/dist/simulation.d.ts.map +1 -1
  422. package/dist/simulation.js +211 -138
  423. package/dist/simulation.js.map +1 -1
  424. package/dist/squads-detection.d.ts +135 -0
  425. package/dist/squads-detection.d.ts.map +1 -0
  426. package/dist/squads-detection.js +124 -0
  427. package/dist/squads-detection.js.map +1 -0
  428. package/dist/state-resolver.d.ts +0 -16
  429. package/dist/state-resolver.d.ts.map +1 -1
  430. package/dist/state-resolver.js +162 -97
  431. package/dist/state-resolver.js.map +1 -1
  432. package/dist/testing/devnet.d.ts +40 -1
  433. package/dist/testing/devnet.d.ts.map +1 -1
  434. package/dist/testing/devnet.js +333 -45
  435. package/dist/testing/devnet.js.map +1 -1
  436. package/dist/testing/errors/expect.d.ts +137 -0
  437. package/dist/testing/errors/expect.d.ts.map +1 -0
  438. package/dist/testing/errors/expect.js +372 -0
  439. package/dist/testing/errors/expect.js.map +1 -0
  440. package/dist/testing/errors/index.d.ts +3 -0
  441. package/dist/testing/errors/index.d.ts.map +1 -0
  442. package/dist/testing/errors/index.js +8 -0
  443. package/dist/testing/errors/index.js.map +1 -0
  444. package/dist/testing/errors/names.generated.d.ts +211 -0
  445. package/dist/testing/errors/names.generated.d.ts.map +1 -0
  446. package/dist/testing/errors/names.generated.js +206 -0
  447. package/dist/testing/errors/names.generated.js.map +1 -0
  448. package/dist/testing/index.d.ts +1 -0
  449. package/dist/testing/index.d.ts.map +1 -1
  450. package/dist/testing/index.js +8 -0
  451. package/dist/testing/index.js.map +1 -1
  452. package/dist/testing/mock-rpc.d.ts +16 -0
  453. package/dist/testing/mock-rpc.d.ts.map +1 -1
  454. package/dist/testing/mock-rpc.js +27 -0
  455. package/dist/testing/mock-rpc.js.map +1 -1
  456. package/dist/testing/mock-state.d.ts +2 -0
  457. package/dist/testing/mock-state.d.ts.map +1 -1
  458. package/dist/testing/mock-state.js +45 -6
  459. package/dist/testing/mock-state.js.map +1 -1
  460. package/dist/types.d.ts +5 -15
  461. package/dist/types.d.ts.map +1 -1
  462. package/dist/types.js +11 -69
  463. package/dist/types.js.map +1 -1
  464. package/dist/vault-analytics.d.ts +0 -2
  465. package/dist/vault-analytics.d.ts.map +1 -1
  466. package/dist/vault-analytics.js +1 -9
  467. package/dist/vault-analytics.js.map +1 -1
  468. package/package.json +12 -5
  469. package/dist/dashboard/constraint-reads.d.ts +0 -50
  470. package/dist/dashboard/constraint-reads.d.ts.map +0 -1
  471. package/dist/dashboard/constraint-reads.js +0 -119
  472. package/dist/dashboard/constraint-reads.js.map +0 -1
  473. package/dist/generated/accounts/escrowDeposit.d.ts +0 -50
  474. package/dist/generated/accounts/escrowDeposit.d.ts.map +0 -1
  475. package/dist/generated/accounts/escrowDeposit.js +0 -76
  476. package/dist/generated/accounts/escrowDeposit.js.map +0 -1
  477. package/dist/generated/accounts/instructionConstraints.d.ts +0 -46
  478. package/dist/generated/accounts/instructionConstraints.d.ts.map +0 -1
  479. package/dist/generated/accounts/instructionConstraints.js +0 -73
  480. package/dist/generated/accounts/instructionConstraints.js.map +0 -1
  481. package/dist/generated/accounts/pendingCloseConstraints.d.ts +0 -37
  482. package/dist/generated/accounts/pendingCloseConstraints.d.ts.map +0 -1
  483. package/dist/generated/accounts/pendingCloseConstraints.js +0 -66
  484. package/dist/generated/accounts/pendingCloseConstraints.js.map +0 -1
  485. package/dist/generated/accounts/pendingConstraintsUpdate.d.ts +0 -62
  486. package/dist/generated/accounts/pendingConstraintsUpdate.d.ts.map +0 -1
  487. package/dist/generated/accounts/pendingConstraintsUpdate.js +0 -75
  488. package/dist/generated/accounts/pendingConstraintsUpdate.js.map +0 -1
  489. package/dist/generated/instructions/allocateConstraintsPda.d.ts +0 -62
  490. package/dist/generated/instructions/allocateConstraintsPda.d.ts.map +0 -1
  491. package/dist/generated/instructions/allocateConstraintsPda.js +0 -134
  492. package/dist/generated/instructions/allocateConstraintsPda.js.map +0 -1
  493. package/dist/generated/instructions/allocatePendingConstraintsPda.d.ts +0 -66
  494. package/dist/generated/instructions/allocatePendingConstraintsPda.d.ts.map +0 -1
  495. package/dist/generated/instructions/allocatePendingConstraintsPda.js.map +0 -1
  496. package/dist/generated/instructions/applyCloseConstraints.d.ts +0 -59
  497. package/dist/generated/instructions/applyCloseConstraints.d.ts.map +0 -1
  498. package/dist/generated/instructions/applyCloseConstraints.js +0 -143
  499. package/dist/generated/instructions/applyCloseConstraints.js.map +0 -1
  500. package/dist/generated/instructions/applyConstraintsUpdate.d.ts +0 -62
  501. package/dist/generated/instructions/applyConstraintsUpdate.d.ts.map +0 -1
  502. package/dist/generated/instructions/applyConstraintsUpdate.js.map +0 -1
  503. package/dist/generated/instructions/cancelCloseConstraints.d.ts +0 -51
  504. package/dist/generated/instructions/cancelCloseConstraints.d.ts.map +0 -1
  505. package/dist/generated/instructions/cancelCloseConstraints.js +0 -115
  506. package/dist/generated/instructions/cancelCloseConstraints.js.map +0 -1
  507. package/dist/generated/instructions/cancelConstraintsUpdate.d.ts +0 -51
  508. package/dist/generated/instructions/cancelConstraintsUpdate.d.ts.map +0 -1
  509. package/dist/generated/instructions/cancelConstraintsUpdate.js +0 -115
  510. package/dist/generated/instructions/cancelConstraintsUpdate.js.map +0 -1
  511. package/dist/generated/instructions/closeSettledEscrow.d.ts +0 -72
  512. package/dist/generated/instructions/closeSettledEscrow.d.ts.map +0 -1
  513. package/dist/generated/instructions/closeSettledEscrow.js +0 -127
  514. package/dist/generated/instructions/closeSettledEscrow.js.map +0 -1
  515. package/dist/generated/instructions/createEscrow.d.ts +0 -131
  516. package/dist/generated/instructions/createEscrow.d.ts.map +0 -1
  517. package/dist/generated/instructions/createEscrow.js +0 -272
  518. package/dist/generated/instructions/createEscrow.js.map +0 -1
  519. package/dist/generated/instructions/createInstructionConstraints.d.ts +0 -68
  520. package/dist/generated/instructions/createInstructionConstraints.d.ts.map +0 -1
  521. package/dist/generated/instructions/createInstructionConstraints.js.map +0 -1
  522. package/dist/generated/instructions/extendPda.d.ts +0 -52
  523. package/dist/generated/instructions/extendPda.d.ts.map +0 -1
  524. package/dist/generated/instructions/extendPda.js +0 -86
  525. package/dist/generated/instructions/extendPda.js.map +0 -1
  526. package/dist/generated/instructions/queueCloseConstraints.d.ts +0 -66
  527. package/dist/generated/instructions/queueCloseConstraints.d.ts.map +0 -1
  528. package/dist/generated/instructions/queueCloseConstraints.js.map +0 -1
  529. package/dist/generated/instructions/queueConstraintsUpdate.d.ts +0 -75
  530. package/dist/generated/instructions/queueConstraintsUpdate.d.ts.map +0 -1
  531. package/dist/generated/instructions/queueConstraintsUpdate.js +0 -154
  532. package/dist/generated/instructions/queueConstraintsUpdate.js.map +0 -1
  533. package/dist/generated/instructions/refundEscrow.d.ts +0 -74
  534. package/dist/generated/instructions/refundEscrow.d.ts.map +0 -1
  535. package/dist/generated/instructions/refundEscrow.js +0 -142
  536. package/dist/generated/instructions/refundEscrow.js.map +0 -1
  537. package/dist/generated/instructions/settleEscrow.d.ts +0 -80
  538. package/dist/generated/instructions/settleEscrow.d.ts.map +0 -1
  539. package/dist/generated/instructions/settleEscrow.js +0 -173
  540. package/dist/generated/instructions/settleEscrow.js.map +0 -1
  541. package/dist/generated/types/accountConstraint.d.ts +0 -18
  542. package/dist/generated/types/accountConstraint.d.ts.map +0 -1
  543. package/dist/generated/types/accountConstraint.js +0 -24
  544. package/dist/generated/types/accountConstraint.js.map +0 -1
  545. package/dist/generated/types/accountConstraintZC.d.ts +0 -18
  546. package/dist/generated/types/accountConstraintZC.d.ts.map +0 -1
  547. package/dist/generated/types/accountConstraintZC.js +0 -26
  548. package/dist/generated/types/accountConstraintZC.js.map +0 -1
  549. package/dist/generated/types/closeConstraintsApplied.d.ts +0 -20
  550. package/dist/generated/types/closeConstraintsApplied.d.ts.map +0 -1
  551. package/dist/generated/types/closeConstraintsApplied.js +0 -24
  552. package/dist/generated/types/closeConstraintsApplied.js.map +0 -1
  553. package/dist/generated/types/closeConstraintsCancelled.d.ts +0 -16
  554. package/dist/generated/types/closeConstraintsCancelled.d.ts.map +0 -1
  555. package/dist/generated/types/closeConstraintsCancelled.js +0 -18
  556. package/dist/generated/types/closeConstraintsCancelled.js.map +0 -1
  557. package/dist/generated/types/closeConstraintsQueued.d.ts +0 -20
  558. package/dist/generated/types/closeConstraintsQueued.d.ts.map +0 -1
  559. package/dist/generated/types/closeConstraintsQueued.js +0 -24
  560. package/dist/generated/types/closeConstraintsQueued.js.map +0 -1
  561. package/dist/generated/types/constraintEntry.d.ts +0 -39
  562. package/dist/generated/types/constraintEntry.d.ts.map +0 -1
  563. package/dist/generated/types/constraintEntry.js +0 -31
  564. package/dist/generated/types/constraintEntry.js.map +0 -1
  565. package/dist/generated/types/constraintEntryZC.d.ts +0 -68
  566. package/dist/generated/types/constraintEntryZC.d.ts.map +0 -1
  567. package/dist/generated/types/constraintEntryZC.js +0 -49
  568. package/dist/generated/types/constraintEntryZC.js.map +0 -1
  569. package/dist/generated/types/constraintOperator.d.ts +0 -22
  570. package/dist/generated/types/constraintOperator.d.ts.map +0 -1
  571. package/dist/generated/types/constraintOperator.js +0 -28
  572. package/dist/generated/types/constraintOperator.js.map +0 -1
  573. package/dist/generated/types/constraintsChangeApplied.d.ts +0 -30
  574. package/dist/generated/types/constraintsChangeApplied.d.ts.map +0 -1
  575. package/dist/generated/types/constraintsChangeApplied.js +0 -32
  576. package/dist/generated/types/constraintsChangeApplied.js.map +0 -1
  577. package/dist/generated/types/constraintsChangeCancelled.d.ts +0 -16
  578. package/dist/generated/types/constraintsChangeCancelled.d.ts.map +0 -1
  579. package/dist/generated/types/constraintsChangeCancelled.js +0 -18
  580. package/dist/generated/types/constraintsChangeCancelled.js.map +0 -1
  581. package/dist/generated/types/constraintsChangeQueued.d.ts +0 -30
  582. package/dist/generated/types/constraintsChangeQueued.d.ts.map +0 -1
  583. package/dist/generated/types/constraintsChangeQueued.js +0 -32
  584. package/dist/generated/types/constraintsChangeQueued.js.map +0 -1
  585. package/dist/generated/types/dataConstraint.d.ts +0 -23
  586. package/dist/generated/types/dataConstraint.d.ts.map +0 -1
  587. package/dist/generated/types/dataConstraint.js +0 -27
  588. package/dist/generated/types/dataConstraint.js.map +0 -1
  589. package/dist/generated/types/dataConstraintZC.d.ts +0 -20
  590. package/dist/generated/types/dataConstraintZC.d.ts.map +0 -1
  591. package/dist/generated/types/dataConstraintZC.js +0 -30
  592. package/dist/generated/types/dataConstraintZC.js.map +0 -1
  593. package/dist/generated/types/discriminatorFormat.d.ts +0 -25
  594. package/dist/generated/types/discriminatorFormat.d.ts.map +0 -1
  595. package/dist/generated/types/discriminatorFormat.js +0 -31
  596. package/dist/generated/types/discriminatorFormat.js.map +0 -1
  597. package/dist/generated/types/escrowCreated.d.ts +0 -30
  598. package/dist/generated/types/escrowCreated.d.ts.map +0 -1
  599. package/dist/generated/types/escrowCreated.js +0 -34
  600. package/dist/generated/types/escrowCreated.js.map +0 -1
  601. package/dist/generated/types/escrowRefunded.d.ts +0 -26
  602. package/dist/generated/types/escrowRefunded.d.ts.map +0 -1
  603. package/dist/generated/types/escrowRefunded.js +0 -30
  604. package/dist/generated/types/escrowRefunded.js.map +0 -1
  605. package/dist/generated/types/escrowSettled.d.ts +0 -26
  606. package/dist/generated/types/escrowSettled.d.ts.map +0 -1
  607. package/dist/generated/types/escrowSettled.js +0 -30
  608. package/dist/generated/types/escrowSettled.js.map +0 -1
  609. package/dist/generated/types/escrowStatus.d.ts +0 -18
  610. package/dist/generated/types/escrowStatus.d.ts.map +0 -1
  611. package/dist/generated/types/escrowStatus.js +0 -24
  612. package/dist/generated/types/escrowStatus.js.map +0 -1
  613. package/dist/generated/types/instructionConstraintsCreated.d.ts +0 -34
  614. package/dist/generated/types/instructionConstraintsCreated.d.ts.map +0 -1
  615. package/dist/generated/types/instructionConstraintsCreated.js +0 -36
  616. package/dist/generated/types/instructionConstraintsCreated.js.map +0 -1
  617. package/dist/generated/types/pdaAllocated.d.ts +0 -24
  618. package/dist/generated/types/pdaAllocated.d.ts.map +0 -1
  619. package/dist/generated/types/pdaAllocated.js.map +0 -1
  620. package/dist/generated/types/pdaExtended.d.ts +0 -24
  621. package/dist/generated/types/pdaExtended.d.ts.map +0 -1
  622. package/dist/generated/types/pdaExtended.js +0 -28
  623. package/dist/generated/types/pdaExtended.js.map +0 -1
  624. package/dist/integrations/protocol-handler.d.ts +0 -59
  625. package/dist/integrations/protocol-handler.d.ts.map +0 -1
  626. package/dist/integrations/protocol-handler.js +0 -9
  627. package/dist/integrations/protocol-handler.js.map +0 -1
@@ -7,18 +7,18 @@
7
7
  */
8
8
  import { assertIsInstructionWithAccounts, containsBytes, fixEncoderSize, getBytesEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, SolanaError, } from "@solana/kit";
9
9
  import { addSelfFetchFunctions, addSelfPlanAndSendFunctions, } from "@solana/program-client-core";
10
- import { getAgentSpendOverlayCodec, getAgentVaultCodec, getEscrowDepositCodec, getInstructionConstraintsCodec, getPendingAgentPermissionsUpdateCodec, getPendingCloseConstraintsCodec, getPendingConstraintsUpdateCodec, getPendingPolicyUpdateCodec, getPolicyConfigCodec, getPostExecutionAssertionsCodec, getSessionAuthorityCodec, getSpendTrackerCodec, } from "../accounts/index.js";
11
- import { getAgentTransferInstructionAsync, getAllocateConstraintsPdaInstructionAsync, getAllocatePendingConstraintsPdaInstructionAsync, getApplyAgentPermissionsUpdateInstructionAsync, getApplyCloseConstraintsInstructionAsync, getApplyConstraintsUpdateInstructionAsync, getApplyPendingPolicyInstructionAsync, getCancelAgentPermissionsUpdateInstruction, getCancelCloseConstraintsInstructionAsync, getCancelConstraintsUpdateInstructionAsync, getCancelPendingPolicyInstructionAsync, getClosePostAssertionsInstructionAsync, getCloseSettledEscrowInstructionAsync, getCloseVaultInstructionAsync, getCreateEscrowInstructionAsync, getCreateInstructionConstraintsInstructionAsync, getCreatePostAssertionsInstructionAsync, getDepositFundsInstructionAsync, getExtendPdaInstruction, getFinalizeSessionInstructionAsync, getFreezeVaultInstruction, getInitializeVaultInstructionAsync, getPauseAgentInstruction, getQueueAgentPermissionsUpdateInstructionAsync, getQueueCloseConstraintsInstructionAsync, getQueueConstraintsUpdateInstructionAsync, getQueuePolicyUpdateInstructionAsync, getReactivateVaultInstruction, getRefundEscrowInstructionAsync, getRegisterAgentInstruction, getRevokeAgentInstruction, getSettleEscrowInstructionAsync, getUnpauseAgentInstruction, getValidateAndAuthorizeInstructionAsync, getWithdrawFundsInstructionAsync, parseAgentTransferInstruction, parseAllocateConstraintsPdaInstruction, parseAllocatePendingConstraintsPdaInstruction, parseApplyAgentPermissionsUpdateInstruction, parseApplyCloseConstraintsInstruction, parseApplyConstraintsUpdateInstruction, parseApplyPendingPolicyInstruction, parseCancelAgentPermissionsUpdateInstruction, parseCancelCloseConstraintsInstruction, parseCancelConstraintsUpdateInstruction, parseCancelPendingPolicyInstruction, parseClosePostAssertionsInstruction, parseCloseSettledEscrowInstruction, parseCloseVaultInstruction, parseCreateEscrowInstruction, parseCreateInstructionConstraintsInstruction, parseCreatePostAssertionsInstruction, parseDepositFundsInstruction, parseExtendPdaInstruction, parseFinalizeSessionInstruction, parseFreezeVaultInstruction, parseInitializeVaultInstruction, parsePauseAgentInstruction, parseQueueAgentPermissionsUpdateInstruction, parseQueueCloseConstraintsInstruction, parseQueueConstraintsUpdateInstruction, parseQueuePolicyUpdateInstruction, parseReactivateVaultInstruction, parseRefundEscrowInstruction, parseRegisterAgentInstruction, parseRevokeAgentInstruction, parseSettleEscrowInstruction, parseUnpauseAgentInstruction, parseValidateAndAuthorizeInstruction, parseWithdrawFundsInstruction, } from "../instructions/index.js";
12
- export const SIGIL_PROGRAM_ADDRESS = "4ZeVCqnjUgUtFrHHPG7jELUxvJeoVGHhGNgPrhBPwrHL";
10
+ import { getAgentSpendOverlayCodec, getAgentVaultCodec, getAuditLogRejectedCodec, getAuditLogSuccessCodec, getPendingAgentGrantCodec, getPendingAgentPermissionsUpdateCodec, getPendingOwnershipTransferCodec, getPendingPolicyUpdateCodec, getPolicyConfigCodec, getPostExecutionAssertionsCodec, getSessionAuthorityCodec, getSpendTrackerCodec, } from "../accounts/index.js";
11
+ import { getAcceptOwnershipTransferInstructionAsync, getAcceptOwnershipTransferMultisigInstructionAsync, getAgentTransferInstructionAsync, getApplyAgentGrantInstructionAsync, getApplyAgentPermissionsUpdateInstructionAsync, getApplyPendingPolicyInstructionAsync, getCancelAgentGrantInstructionAsync, getCancelAgentPermissionsUpdateInstruction, getCancelOwnershipTransferInstructionAsync, getCancelPendingPolicyInstructionAsync, getClosePostAssertionsInstructionAsync, getCloseVaultInstructionAsync, getCreatePostAssertionsInstructionAsync, getDepositFundsInstructionAsync, getFinalizeSessionInstructionAsync, getFreezeVaultInstructionAsync, getInitializeVaultInstructionAsync, getInitiateOwnershipTransferInstructionAsync, getPauseAgentInstructionAsync, getPromoteGraylistDestinationInstructionAsync, getQueueAgentGrantInstructionAsync, getQueueAgentPermissionsUpdateInstructionAsync, getQueuePolicyUpdateInstructionAsync, getReactivateVaultInstructionAsync, getRecordAgentViolationInstructionAsync, getRegisterAgentInstructionAsync, getRevokeAgentInstructionAsync, getSetObserveOnlyInstructionAsync, getUnpauseAgentInstructionAsync, getValidateAndAuthorizeInstructionAsync, getWithdrawFundsInstructionAsync, parseAcceptOwnershipTransferInstruction, parseAcceptOwnershipTransferMultisigInstruction, parseAgentTransferInstruction, parseApplyAgentGrantInstruction, parseApplyAgentPermissionsUpdateInstruction, parseApplyPendingPolicyInstruction, parseCancelAgentGrantInstruction, parseCancelAgentPermissionsUpdateInstruction, parseCancelOwnershipTransferInstruction, parseCancelPendingPolicyInstruction, parseClosePostAssertionsInstruction, parseCloseVaultInstruction, parseCreatePostAssertionsInstruction, parseDepositFundsInstruction, parseFinalizeSessionInstruction, parseFreezeVaultInstruction, parseInitializeVaultInstruction, parseInitiateOwnershipTransferInstruction, parsePauseAgentInstruction, parsePromoteGraylistDestinationInstruction, parseQueueAgentGrantInstruction, parseQueueAgentPermissionsUpdateInstruction, parseQueuePolicyUpdateInstruction, parseReactivateVaultInstruction, parseRecordAgentViolationInstruction, parseRegisterAgentInstruction, parseRevokeAgentInstruction, parseSetObserveOnlyInstruction, parseUnpauseAgentInstruction, parseValidateAndAuthorizeInstruction, parseWithdrawFundsInstruction, } from "../instructions/index.js";
12
+ export const SIGIL_PROGRAM_ADDRESS = "7FtAXUcrann7P5HoLG7vnWcVpozwj9nqcNm6bPwA1wuK";
13
13
  export var SigilAccount;
14
14
  (function (SigilAccount) {
15
15
  SigilAccount[SigilAccount["AgentSpendOverlay"] = 0] = "AgentSpendOverlay";
16
16
  SigilAccount[SigilAccount["AgentVault"] = 1] = "AgentVault";
17
- SigilAccount[SigilAccount["EscrowDeposit"] = 2] = "EscrowDeposit";
18
- SigilAccount[SigilAccount["InstructionConstraints"] = 3] = "InstructionConstraints";
19
- SigilAccount[SigilAccount["PendingAgentPermissionsUpdate"] = 4] = "PendingAgentPermissionsUpdate";
20
- SigilAccount[SigilAccount["PendingCloseConstraints"] = 5] = "PendingCloseConstraints";
21
- SigilAccount[SigilAccount["PendingConstraintsUpdate"] = 6] = "PendingConstraintsUpdate";
17
+ SigilAccount[SigilAccount["AuditLogRejected"] = 2] = "AuditLogRejected";
18
+ SigilAccount[SigilAccount["AuditLogSuccess"] = 3] = "AuditLogSuccess";
19
+ SigilAccount[SigilAccount["PendingAgentGrant"] = 4] = "PendingAgentGrant";
20
+ SigilAccount[SigilAccount["PendingAgentPermissionsUpdate"] = 5] = "PendingAgentPermissionsUpdate";
21
+ SigilAccount[SigilAccount["PendingOwnershipTransfer"] = 6] = "PendingOwnershipTransfer";
22
22
  SigilAccount[SigilAccount["PendingPolicyUpdate"] = 7] = "PendingPolicyUpdate";
23
23
  SigilAccount[SigilAccount["PolicyConfig"] = 8] = "PolicyConfig";
24
24
  SigilAccount[SigilAccount["PostExecutionAssertions"] = 9] = "PostExecutionAssertions";
@@ -33,20 +33,20 @@ export function identifySigilAccount(account) {
33
33
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([232, 220, 237, 164, 157, 9, 215, 194])), 0)) {
34
34
  return SigilAccount.AgentVault;
35
35
  }
36
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([56, 152, 208, 160, 159, 83, 6, 17])), 0)) {
37
- return SigilAccount.EscrowDeposit;
36
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([211, 117, 26, 31, 160, 74, 242, 204])), 0)) {
37
+ return SigilAccount.AuditLogRejected;
38
38
  }
39
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([183, 235, 149, 166, 174, 58, 98, 218])), 0)) {
40
- return SigilAccount.InstructionConstraints;
39
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([225, 112, 129, 30, 0, 111, 84, 75])), 0)) {
40
+ return SigilAccount.AuditLogSuccess;
41
+ }
42
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([164, 188, 119, 39, 18, 133, 78, 66])), 0)) {
43
+ return SigilAccount.PendingAgentGrant;
41
44
  }
42
45
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([137, 132, 60, 184, 171, 184, 194, 56])), 0)) {
43
46
  return SigilAccount.PendingAgentPermissionsUpdate;
44
47
  }
45
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([128, 154, 58, 181, 85, 163, 243, 233])), 0)) {
46
- return SigilAccount.PendingCloseConstraints;
47
- }
48
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([22, 206, 77, 208, 147, 121, 53, 174])), 0)) {
49
- return SigilAccount.PendingConstraintsUpdate;
48
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([205, 223, 35, 217, 245, 217, 152, 38])), 0)) {
49
+ return SigilAccount.PendingOwnershipTransfer;
50
50
  }
51
51
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([77, 255, 2, 51, 79, 237, 183, 239])), 0)) {
52
52
  return SigilAccount.PendingPolicyUpdate;
@@ -67,73 +67,66 @@ export function identifySigilAccount(account) {
67
67
  }
68
68
  export var SigilInstruction;
69
69
  (function (SigilInstruction) {
70
- SigilInstruction[SigilInstruction["AgentTransfer"] = 0] = "AgentTransfer";
71
- SigilInstruction[SigilInstruction["AllocateConstraintsPda"] = 1] = "AllocateConstraintsPda";
72
- SigilInstruction[SigilInstruction["AllocatePendingConstraintsPda"] = 2] = "AllocatePendingConstraintsPda";
73
- SigilInstruction[SigilInstruction["ApplyAgentPermissionsUpdate"] = 3] = "ApplyAgentPermissionsUpdate";
74
- SigilInstruction[SigilInstruction["ApplyCloseConstraints"] = 4] = "ApplyCloseConstraints";
75
- SigilInstruction[SigilInstruction["ApplyConstraintsUpdate"] = 5] = "ApplyConstraintsUpdate";
76
- SigilInstruction[SigilInstruction["ApplyPendingPolicy"] = 6] = "ApplyPendingPolicy";
70
+ SigilInstruction[SigilInstruction["AcceptOwnershipTransfer"] = 0] = "AcceptOwnershipTransfer";
71
+ SigilInstruction[SigilInstruction["AcceptOwnershipTransferMultisig"] = 1] = "AcceptOwnershipTransferMultisig";
72
+ SigilInstruction[SigilInstruction["AgentTransfer"] = 2] = "AgentTransfer";
73
+ SigilInstruction[SigilInstruction["ApplyAgentGrant"] = 3] = "ApplyAgentGrant";
74
+ SigilInstruction[SigilInstruction["ApplyAgentPermissionsUpdate"] = 4] = "ApplyAgentPermissionsUpdate";
75
+ SigilInstruction[SigilInstruction["ApplyPendingPolicy"] = 5] = "ApplyPendingPolicy";
76
+ SigilInstruction[SigilInstruction["CancelAgentGrant"] = 6] = "CancelAgentGrant";
77
77
  SigilInstruction[SigilInstruction["CancelAgentPermissionsUpdate"] = 7] = "CancelAgentPermissionsUpdate";
78
- SigilInstruction[SigilInstruction["CancelCloseConstraints"] = 8] = "CancelCloseConstraints";
79
- SigilInstruction[SigilInstruction["CancelConstraintsUpdate"] = 9] = "CancelConstraintsUpdate";
80
- SigilInstruction[SigilInstruction["CancelPendingPolicy"] = 10] = "CancelPendingPolicy";
81
- SigilInstruction[SigilInstruction["ClosePostAssertions"] = 11] = "ClosePostAssertions";
82
- SigilInstruction[SigilInstruction["CloseSettledEscrow"] = 12] = "CloseSettledEscrow";
83
- SigilInstruction[SigilInstruction["CloseVault"] = 13] = "CloseVault";
84
- SigilInstruction[SigilInstruction["CreateEscrow"] = 14] = "CreateEscrow";
85
- SigilInstruction[SigilInstruction["CreateInstructionConstraints"] = 15] = "CreateInstructionConstraints";
86
- SigilInstruction[SigilInstruction["CreatePostAssertions"] = 16] = "CreatePostAssertions";
87
- SigilInstruction[SigilInstruction["DepositFunds"] = 17] = "DepositFunds";
88
- SigilInstruction[SigilInstruction["ExtendPda"] = 18] = "ExtendPda";
89
- SigilInstruction[SigilInstruction["FinalizeSession"] = 19] = "FinalizeSession";
90
- SigilInstruction[SigilInstruction["FreezeVault"] = 20] = "FreezeVault";
91
- SigilInstruction[SigilInstruction["InitializeVault"] = 21] = "InitializeVault";
92
- SigilInstruction[SigilInstruction["PauseAgent"] = 22] = "PauseAgent";
93
- SigilInstruction[SigilInstruction["QueueAgentPermissionsUpdate"] = 23] = "QueueAgentPermissionsUpdate";
94
- SigilInstruction[SigilInstruction["QueueCloseConstraints"] = 24] = "QueueCloseConstraints";
95
- SigilInstruction[SigilInstruction["QueueConstraintsUpdate"] = 25] = "QueueConstraintsUpdate";
96
- SigilInstruction[SigilInstruction["QueuePolicyUpdate"] = 26] = "QueuePolicyUpdate";
97
- SigilInstruction[SigilInstruction["ReactivateVault"] = 27] = "ReactivateVault";
98
- SigilInstruction[SigilInstruction["RefundEscrow"] = 28] = "RefundEscrow";
99
- SigilInstruction[SigilInstruction["RegisterAgent"] = 29] = "RegisterAgent";
100
- SigilInstruction[SigilInstruction["RevokeAgent"] = 30] = "RevokeAgent";
101
- SigilInstruction[SigilInstruction["SettleEscrow"] = 31] = "SettleEscrow";
102
- SigilInstruction[SigilInstruction["UnpauseAgent"] = 32] = "UnpauseAgent";
103
- SigilInstruction[SigilInstruction["ValidateAndAuthorize"] = 33] = "ValidateAndAuthorize";
104
- SigilInstruction[SigilInstruction["WithdrawFunds"] = 34] = "WithdrawFunds";
78
+ SigilInstruction[SigilInstruction["CancelOwnershipTransfer"] = 8] = "CancelOwnershipTransfer";
79
+ SigilInstruction[SigilInstruction["CancelPendingPolicy"] = 9] = "CancelPendingPolicy";
80
+ SigilInstruction[SigilInstruction["ClosePostAssertions"] = 10] = "ClosePostAssertions";
81
+ SigilInstruction[SigilInstruction["CloseVault"] = 11] = "CloseVault";
82
+ SigilInstruction[SigilInstruction["CreatePostAssertions"] = 12] = "CreatePostAssertions";
83
+ SigilInstruction[SigilInstruction["DepositFunds"] = 13] = "DepositFunds";
84
+ SigilInstruction[SigilInstruction["FinalizeSession"] = 14] = "FinalizeSession";
85
+ SigilInstruction[SigilInstruction["FreezeVault"] = 15] = "FreezeVault";
86
+ SigilInstruction[SigilInstruction["InitializeVault"] = 16] = "InitializeVault";
87
+ SigilInstruction[SigilInstruction["InitiateOwnershipTransfer"] = 17] = "InitiateOwnershipTransfer";
88
+ SigilInstruction[SigilInstruction["PauseAgent"] = 18] = "PauseAgent";
89
+ SigilInstruction[SigilInstruction["PromoteGraylistDestination"] = 19] = "PromoteGraylistDestination";
90
+ SigilInstruction[SigilInstruction["QueueAgentGrant"] = 20] = "QueueAgentGrant";
91
+ SigilInstruction[SigilInstruction["QueueAgentPermissionsUpdate"] = 21] = "QueueAgentPermissionsUpdate";
92
+ SigilInstruction[SigilInstruction["QueuePolicyUpdate"] = 22] = "QueuePolicyUpdate";
93
+ SigilInstruction[SigilInstruction["ReactivateVault"] = 23] = "ReactivateVault";
94
+ SigilInstruction[SigilInstruction["RecordAgentViolation"] = 24] = "RecordAgentViolation";
95
+ SigilInstruction[SigilInstruction["RegisterAgent"] = 25] = "RegisterAgent";
96
+ SigilInstruction[SigilInstruction["RevokeAgent"] = 26] = "RevokeAgent";
97
+ SigilInstruction[SigilInstruction["SetObserveOnly"] = 27] = "SetObserveOnly";
98
+ SigilInstruction[SigilInstruction["UnpauseAgent"] = 28] = "UnpauseAgent";
99
+ SigilInstruction[SigilInstruction["ValidateAndAuthorize"] = 29] = "ValidateAndAuthorize";
100
+ SigilInstruction[SigilInstruction["WithdrawFunds"] = 30] = "WithdrawFunds";
105
101
  })(SigilInstruction || (SigilInstruction = {}));
106
102
  export function identifySigilInstruction(instruction) {
107
103
  const data = "data" in instruction ? instruction.data : instruction;
104
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([30, 187, 65, 5, 93, 131, 38, 208])), 0)) {
105
+ return SigilInstruction.AcceptOwnershipTransfer;
106
+ }
107
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([112, 147, 61, 110, 221, 182, 203, 99])), 0)) {
108
+ return SigilInstruction.AcceptOwnershipTransferMultisig;
109
+ }
108
110
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([199, 111, 151, 49, 124, 13, 150, 44])), 0)) {
109
111
  return SigilInstruction.AgentTransfer;
110
112
  }
111
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([55, 127, 43, 98, 168, 156, 152, 157])), 0)) {
112
- return SigilInstruction.AllocateConstraintsPda;
113
- }
114
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([211, 244, 224, 20, 224, 183, 236, 165])), 0)) {
115
- return SigilInstruction.AllocatePendingConstraintsPda;
113
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([236, 230, 108, 143, 155, 71, 185, 87])), 0)) {
114
+ return SigilInstruction.ApplyAgentGrant;
116
115
  }
117
116
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([234, 166, 205, 3, 28, 166, 221, 240])), 0)) {
118
117
  return SigilInstruction.ApplyAgentPermissionsUpdate;
119
118
  }
120
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([133, 184, 235, 88, 53, 237, 43, 145])), 0)) {
121
- return SigilInstruction.ApplyCloseConstraints;
122
- }
123
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([175, 103, 90, 155, 134, 91, 135, 242])), 0)) {
124
- return SigilInstruction.ApplyConstraintsUpdate;
125
- }
126
119
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([114, 212, 19, 227, 89, 199, 74, 62])), 0)) {
127
120
  return SigilInstruction.ApplyPendingPolicy;
128
121
  }
122
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([193, 182, 191, 195, 80, 150, 140, 196])), 0)) {
123
+ return SigilInstruction.CancelAgentGrant;
124
+ }
129
125
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([92, 232, 92, 115, 110, 238, 235, 55])), 0)) {
130
126
  return SigilInstruction.CancelAgentPermissionsUpdate;
131
127
  }
132
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([150, 125, 186, 114, 40, 105, 237, 184])), 0)) {
133
- return SigilInstruction.CancelCloseConstraints;
134
- }
135
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([169, 121, 85, 230, 154, 2, 78, 61])), 0)) {
136
- return SigilInstruction.CancelConstraintsUpdate;
128
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([2, 184, 195, 105, 138, 142, 154, 75])), 0)) {
129
+ return SigilInstruction.CancelOwnershipTransfer;
137
130
  }
138
131
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([153, 36, 104, 200, 50, 94, 207, 33])), 0)) {
139
132
  return SigilInstruction.CancelPendingPolicy;
@@ -141,27 +134,15 @@ export function identifySigilInstruction(instruction) {
141
134
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([226, 172, 252, 173, 29, 236, 59, 248])), 0)) {
142
135
  return SigilInstruction.ClosePostAssertions;
143
136
  }
144
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([169, 244, 164, 173, 181, 214, 139, 6])), 0)) {
145
- return SigilInstruction.CloseSettledEscrow;
146
- }
147
137
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([141, 103, 17, 126, 72, 75, 29, 29])), 0)) {
148
138
  return SigilInstruction.CloseVault;
149
139
  }
150
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([253, 215, 165, 116, 36, 108, 68, 80])), 0)) {
151
- return SigilInstruction.CreateEscrow;
152
- }
153
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([13, 182, 97, 5, 57, 136, 26, 152])), 0)) {
154
- return SigilInstruction.CreateInstructionConstraints;
155
- }
156
140
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([204, 21, 218, 182, 202, 140, 239, 63])), 0)) {
157
141
  return SigilInstruction.CreatePostAssertions;
158
142
  }
159
143
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([202, 39, 52, 211, 53, 20, 250, 88])), 0)) {
160
144
  return SigilInstruction.DepositFunds;
161
145
  }
162
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([13, 211, 140, 90, 104, 28, 141, 200])), 0)) {
163
- return SigilInstruction.ExtendPda;
164
- }
165
146
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([34, 148, 144, 47, 37, 130, 206, 161])), 0)) {
166
147
  return SigilInstruction.FinalizeSession;
167
148
  }
@@ -171,17 +152,20 @@ export function identifySigilInstruction(instruction) {
171
152
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([48, 191, 163, 44, 71, 129, 63, 164])), 0)) {
172
153
  return SigilInstruction.InitializeVault;
173
154
  }
155
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([22, 108, 197, 103, 223, 145, 132, 65])), 0)) {
156
+ return SigilInstruction.InitiateOwnershipTransfer;
157
+ }
174
158
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([148, 32, 1, 26, 147, 122, 178, 140])), 0)) {
175
159
  return SigilInstruction.PauseAgent;
176
160
  }
177
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([182, 37, 105, 181, 28, 195, 223, 167])), 0)) {
178
- return SigilInstruction.QueueAgentPermissionsUpdate;
161
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([227, 87, 73, 141, 202, 251, 202, 228])), 0)) {
162
+ return SigilInstruction.PromoteGraylistDestination;
179
163
  }
180
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([248, 124, 93, 115, 195, 88, 11, 109])), 0)) {
181
- return SigilInstruction.QueueCloseConstraints;
164
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([136, 162, 54, 49, 167, 254, 200, 26])), 0)) {
165
+ return SigilInstruction.QueueAgentGrant;
182
166
  }
183
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([247, 253, 233, 93, 233, 54, 53, 131])), 0)) {
184
- return SigilInstruction.QueueConstraintsUpdate;
167
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([182, 37, 105, 181, 28, 195, 223, 167])), 0)) {
168
+ return SigilInstruction.QueueAgentPermissionsUpdate;
185
169
  }
186
170
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([149, 18, 76, 197, 179, 193, 91, 77])), 0)) {
187
171
  return SigilInstruction.QueuePolicyUpdate;
@@ -189,8 +173,8 @@ export function identifySigilInstruction(instruction) {
189
173
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([245, 50, 143, 70, 114, 220, 25, 251])), 0)) {
190
174
  return SigilInstruction.ReactivateVault;
191
175
  }
192
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([107, 186, 89, 99, 26, 194, 23, 204])), 0)) {
193
- return SigilInstruction.RefundEscrow;
176
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([131, 113, 120, 227, 219, 36, 160, 109])), 0)) {
177
+ return SigilInstruction.RecordAgentViolation;
194
178
  }
195
179
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([135, 157, 66, 195, 2, 113, 175, 30])), 0)) {
196
180
  return SigilInstruction.RegisterAgent;
@@ -198,8 +182,8 @@ export function identifySigilInstruction(instruction) {
198
182
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([227, 60, 209, 125, 240, 117, 163, 73])), 0)) {
199
183
  return SigilInstruction.RevokeAgent;
200
184
  }
201
- if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([22, 135, 160, 194, 23, 186, 124, 110])), 0)) {
202
- return SigilInstruction.SettleEscrow;
185
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([36, 88, 141, 35, 179, 134, 54, 12])), 0)) {
186
+ return SigilInstruction.SetObserveOnly;
203
187
  }
204
188
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([46, 125, 165, 212, 241, 143, 190, 95])), 0)) {
205
189
  return SigilInstruction.UnpauseAgent;
@@ -215,46 +199,39 @@ export function identifySigilInstruction(instruction) {
215
199
  export function parseSigilInstruction(instruction) {
216
200
  const instructionType = identifySigilInstruction(instruction);
217
201
  switch (instructionType) {
218
- case SigilInstruction.AgentTransfer: {
219
- assertIsInstructionWithAccounts(instruction);
220
- return {
221
- instructionType: SigilInstruction.AgentTransfer,
222
- ...parseAgentTransferInstruction(instruction),
223
- };
224
- }
225
- case SigilInstruction.AllocateConstraintsPda: {
202
+ case SigilInstruction.AcceptOwnershipTransfer: {
226
203
  assertIsInstructionWithAccounts(instruction);
227
204
  return {
228
- instructionType: SigilInstruction.AllocateConstraintsPda,
229
- ...parseAllocateConstraintsPdaInstruction(instruction),
205
+ instructionType: SigilInstruction.AcceptOwnershipTransfer,
206
+ ...parseAcceptOwnershipTransferInstruction(instruction),
230
207
  };
231
208
  }
232
- case SigilInstruction.AllocatePendingConstraintsPda: {
209
+ case SigilInstruction.AcceptOwnershipTransferMultisig: {
233
210
  assertIsInstructionWithAccounts(instruction);
234
211
  return {
235
- instructionType: SigilInstruction.AllocatePendingConstraintsPda,
236
- ...parseAllocatePendingConstraintsPdaInstruction(instruction),
212
+ instructionType: SigilInstruction.AcceptOwnershipTransferMultisig,
213
+ ...parseAcceptOwnershipTransferMultisigInstruction(instruction),
237
214
  };
238
215
  }
239
- case SigilInstruction.ApplyAgentPermissionsUpdate: {
216
+ case SigilInstruction.AgentTransfer: {
240
217
  assertIsInstructionWithAccounts(instruction);
241
218
  return {
242
- instructionType: SigilInstruction.ApplyAgentPermissionsUpdate,
243
- ...parseApplyAgentPermissionsUpdateInstruction(instruction),
219
+ instructionType: SigilInstruction.AgentTransfer,
220
+ ...parseAgentTransferInstruction(instruction),
244
221
  };
245
222
  }
246
- case SigilInstruction.ApplyCloseConstraints: {
223
+ case SigilInstruction.ApplyAgentGrant: {
247
224
  assertIsInstructionWithAccounts(instruction);
248
225
  return {
249
- instructionType: SigilInstruction.ApplyCloseConstraints,
250
- ...parseApplyCloseConstraintsInstruction(instruction),
226
+ instructionType: SigilInstruction.ApplyAgentGrant,
227
+ ...parseApplyAgentGrantInstruction(instruction),
251
228
  };
252
229
  }
253
- case SigilInstruction.ApplyConstraintsUpdate: {
230
+ case SigilInstruction.ApplyAgentPermissionsUpdate: {
254
231
  assertIsInstructionWithAccounts(instruction);
255
232
  return {
256
- instructionType: SigilInstruction.ApplyConstraintsUpdate,
257
- ...parseApplyConstraintsUpdateInstruction(instruction),
233
+ instructionType: SigilInstruction.ApplyAgentPermissionsUpdate,
234
+ ...parseApplyAgentPermissionsUpdateInstruction(instruction),
258
235
  };
259
236
  }
260
237
  case SigilInstruction.ApplyPendingPolicy: {
@@ -264,25 +241,25 @@ export function parseSigilInstruction(instruction) {
264
241
  ...parseApplyPendingPolicyInstruction(instruction),
265
242
  };
266
243
  }
267
- case SigilInstruction.CancelAgentPermissionsUpdate: {
244
+ case SigilInstruction.CancelAgentGrant: {
268
245
  assertIsInstructionWithAccounts(instruction);
269
246
  return {
270
- instructionType: SigilInstruction.CancelAgentPermissionsUpdate,
271
- ...parseCancelAgentPermissionsUpdateInstruction(instruction),
247
+ instructionType: SigilInstruction.CancelAgentGrant,
248
+ ...parseCancelAgentGrantInstruction(instruction),
272
249
  };
273
250
  }
274
- case SigilInstruction.CancelCloseConstraints: {
251
+ case SigilInstruction.CancelAgentPermissionsUpdate: {
275
252
  assertIsInstructionWithAccounts(instruction);
276
253
  return {
277
- instructionType: SigilInstruction.CancelCloseConstraints,
278
- ...parseCancelCloseConstraintsInstruction(instruction),
254
+ instructionType: SigilInstruction.CancelAgentPermissionsUpdate,
255
+ ...parseCancelAgentPermissionsUpdateInstruction(instruction),
279
256
  };
280
257
  }
281
- case SigilInstruction.CancelConstraintsUpdate: {
258
+ case SigilInstruction.CancelOwnershipTransfer: {
282
259
  assertIsInstructionWithAccounts(instruction);
283
260
  return {
284
- instructionType: SigilInstruction.CancelConstraintsUpdate,
285
- ...parseCancelConstraintsUpdateInstruction(instruction),
261
+ instructionType: SigilInstruction.CancelOwnershipTransfer,
262
+ ...parseCancelOwnershipTransferInstruction(instruction),
286
263
  };
287
264
  }
288
265
  case SigilInstruction.CancelPendingPolicy: {
@@ -299,13 +276,6 @@ export function parseSigilInstruction(instruction) {
299
276
  ...parseClosePostAssertionsInstruction(instruction),
300
277
  };
301
278
  }
302
- case SigilInstruction.CloseSettledEscrow: {
303
- assertIsInstructionWithAccounts(instruction);
304
- return {
305
- instructionType: SigilInstruction.CloseSettledEscrow,
306
- ...parseCloseSettledEscrowInstruction(instruction),
307
- };
308
- }
309
279
  case SigilInstruction.CloseVault: {
310
280
  assertIsInstructionWithAccounts(instruction);
311
281
  return {
@@ -313,20 +283,6 @@ export function parseSigilInstruction(instruction) {
313
283
  ...parseCloseVaultInstruction(instruction),
314
284
  };
315
285
  }
316
- case SigilInstruction.CreateEscrow: {
317
- assertIsInstructionWithAccounts(instruction);
318
- return {
319
- instructionType: SigilInstruction.CreateEscrow,
320
- ...parseCreateEscrowInstruction(instruction),
321
- };
322
- }
323
- case SigilInstruction.CreateInstructionConstraints: {
324
- assertIsInstructionWithAccounts(instruction);
325
- return {
326
- instructionType: SigilInstruction.CreateInstructionConstraints,
327
- ...parseCreateInstructionConstraintsInstruction(instruction),
328
- };
329
- }
330
286
  case SigilInstruction.CreatePostAssertions: {
331
287
  assertIsInstructionWithAccounts(instruction);
332
288
  return {
@@ -341,13 +297,6 @@ export function parseSigilInstruction(instruction) {
341
297
  ...parseDepositFundsInstruction(instruction),
342
298
  };
343
299
  }
344
- case SigilInstruction.ExtendPda: {
345
- assertIsInstructionWithAccounts(instruction);
346
- return {
347
- instructionType: SigilInstruction.ExtendPda,
348
- ...parseExtendPdaInstruction(instruction),
349
- };
350
- }
351
300
  case SigilInstruction.FinalizeSession: {
352
301
  assertIsInstructionWithAccounts(instruction);
353
302
  return {
@@ -369,6 +318,13 @@ export function parseSigilInstruction(instruction) {
369
318
  ...parseInitializeVaultInstruction(instruction),
370
319
  };
371
320
  }
321
+ case SigilInstruction.InitiateOwnershipTransfer: {
322
+ assertIsInstructionWithAccounts(instruction);
323
+ return {
324
+ instructionType: SigilInstruction.InitiateOwnershipTransfer,
325
+ ...parseInitiateOwnershipTransferInstruction(instruction),
326
+ };
327
+ }
372
328
  case SigilInstruction.PauseAgent: {
373
329
  assertIsInstructionWithAccounts(instruction);
374
330
  return {
@@ -376,25 +332,25 @@ export function parseSigilInstruction(instruction) {
376
332
  ...parsePauseAgentInstruction(instruction),
377
333
  };
378
334
  }
379
- case SigilInstruction.QueueAgentPermissionsUpdate: {
335
+ case SigilInstruction.PromoteGraylistDestination: {
380
336
  assertIsInstructionWithAccounts(instruction);
381
337
  return {
382
- instructionType: SigilInstruction.QueueAgentPermissionsUpdate,
383
- ...parseQueueAgentPermissionsUpdateInstruction(instruction),
338
+ instructionType: SigilInstruction.PromoteGraylistDestination,
339
+ ...parsePromoteGraylistDestinationInstruction(instruction),
384
340
  };
385
341
  }
386
- case SigilInstruction.QueueCloseConstraints: {
342
+ case SigilInstruction.QueueAgentGrant: {
387
343
  assertIsInstructionWithAccounts(instruction);
388
344
  return {
389
- instructionType: SigilInstruction.QueueCloseConstraints,
390
- ...parseQueueCloseConstraintsInstruction(instruction),
345
+ instructionType: SigilInstruction.QueueAgentGrant,
346
+ ...parseQueueAgentGrantInstruction(instruction),
391
347
  };
392
348
  }
393
- case SigilInstruction.QueueConstraintsUpdate: {
349
+ case SigilInstruction.QueueAgentPermissionsUpdate: {
394
350
  assertIsInstructionWithAccounts(instruction);
395
351
  return {
396
- instructionType: SigilInstruction.QueueConstraintsUpdate,
397
- ...parseQueueConstraintsUpdateInstruction(instruction),
352
+ instructionType: SigilInstruction.QueueAgentPermissionsUpdate,
353
+ ...parseQueueAgentPermissionsUpdateInstruction(instruction),
398
354
  };
399
355
  }
400
356
  case SigilInstruction.QueuePolicyUpdate: {
@@ -411,11 +367,11 @@ export function parseSigilInstruction(instruction) {
411
367
  ...parseReactivateVaultInstruction(instruction),
412
368
  };
413
369
  }
414
- case SigilInstruction.RefundEscrow: {
370
+ case SigilInstruction.RecordAgentViolation: {
415
371
  assertIsInstructionWithAccounts(instruction);
416
372
  return {
417
- instructionType: SigilInstruction.RefundEscrow,
418
- ...parseRefundEscrowInstruction(instruction),
373
+ instructionType: SigilInstruction.RecordAgentViolation,
374
+ ...parseRecordAgentViolationInstruction(instruction),
419
375
  };
420
376
  }
421
377
  case SigilInstruction.RegisterAgent: {
@@ -432,11 +388,11 @@ export function parseSigilInstruction(instruction) {
432
388
  ...parseRevokeAgentInstruction(instruction),
433
389
  };
434
390
  }
435
- case SigilInstruction.SettleEscrow: {
391
+ case SigilInstruction.SetObserveOnly: {
436
392
  assertIsInstructionWithAccounts(instruction);
437
393
  return {
438
- instructionType: SigilInstruction.SettleEscrow,
439
- ...parseSettleEscrowInstruction(instruction),
394
+ instructionType: SigilInstruction.SetObserveOnly,
395
+ ...parseSetObserveOnlyInstruction(instruction),
440
396
  };
441
397
  }
442
398
  case SigilInstruction.UnpauseAgent: {
@@ -472,11 +428,11 @@ export function sigilProgram() {
472
428
  accounts: {
473
429
  agentSpendOverlay: addSelfFetchFunctions(client, getAgentSpendOverlayCodec()),
474
430
  agentVault: addSelfFetchFunctions(client, getAgentVaultCodec()),
475
- escrowDeposit: addSelfFetchFunctions(client, getEscrowDepositCodec()),
476
- instructionConstraints: addSelfFetchFunctions(client, getInstructionConstraintsCodec()),
431
+ auditLogRejected: addSelfFetchFunctions(client, getAuditLogRejectedCodec()),
432
+ auditLogSuccess: addSelfFetchFunctions(client, getAuditLogSuccessCodec()),
433
+ pendingAgentGrant: addSelfFetchFunctions(client, getPendingAgentGrantCodec()),
477
434
  pendingAgentPermissionsUpdate: addSelfFetchFunctions(client, getPendingAgentPermissionsUpdateCodec()),
478
- pendingCloseConstraints: addSelfFetchFunctions(client, getPendingCloseConstraintsCodec()),
479
- pendingConstraintsUpdate: addSelfFetchFunctions(client, getPendingConstraintsUpdateCodec()),
435
+ pendingOwnershipTransfer: addSelfFetchFunctions(client, getPendingOwnershipTransferCodec()),
480
436
  pendingPolicyUpdate: addSelfFetchFunctions(client, getPendingPolicyUpdateCodec()),
481
437
  policyConfig: addSelfFetchFunctions(client, getPolicyConfigCodec()),
482
438
  postExecutionAssertions: addSelfFetchFunctions(client, getPostExecutionAssertionsCodec()),
@@ -484,42 +440,38 @@ export function sigilProgram() {
484
440
  spendTracker: addSelfFetchFunctions(client, getSpendTrackerCodec()),
485
441
  },
486
442
  instructions: {
443
+ acceptOwnershipTransfer: (input) => addSelfPlanAndSendFunctions(client, getAcceptOwnershipTransferInstructionAsync(input)),
444
+ acceptOwnershipTransferMultisig: (input) => addSelfPlanAndSendFunctions(client, getAcceptOwnershipTransferMultisigInstructionAsync(input)),
487
445
  agentTransfer: (input) => addSelfPlanAndSendFunctions(client, getAgentTransferInstructionAsync(input)),
488
- allocateConstraintsPda: (input) => addSelfPlanAndSendFunctions(client, getAllocateConstraintsPdaInstructionAsync(input)),
489
- allocatePendingConstraintsPda: (input) => addSelfPlanAndSendFunctions(client, getAllocatePendingConstraintsPdaInstructionAsync(input)),
446
+ applyAgentGrant: (input) => addSelfPlanAndSendFunctions(client, getApplyAgentGrantInstructionAsync(input)),
490
447
  applyAgentPermissionsUpdate: (input) => addSelfPlanAndSendFunctions(client, getApplyAgentPermissionsUpdateInstructionAsync(input)),
491
- applyCloseConstraints: (input) => addSelfPlanAndSendFunctions(client, getApplyCloseConstraintsInstructionAsync(input)),
492
- applyConstraintsUpdate: (input) => addSelfPlanAndSendFunctions(client, getApplyConstraintsUpdateInstructionAsync(input)),
493
448
  applyPendingPolicy: (input) => addSelfPlanAndSendFunctions(client, getApplyPendingPolicyInstructionAsync(input)),
449
+ cancelAgentGrant: (input) => addSelfPlanAndSendFunctions(client, getCancelAgentGrantInstructionAsync(input)),
494
450
  cancelAgentPermissionsUpdate: (input) => addSelfPlanAndSendFunctions(client, getCancelAgentPermissionsUpdateInstruction(input)),
495
- cancelCloseConstraints: (input) => addSelfPlanAndSendFunctions(client, getCancelCloseConstraintsInstructionAsync(input)),
496
- cancelConstraintsUpdate: (input) => addSelfPlanAndSendFunctions(client, getCancelConstraintsUpdateInstructionAsync(input)),
451
+ cancelOwnershipTransfer: (input) => addSelfPlanAndSendFunctions(client, getCancelOwnershipTransferInstructionAsync(input)),
497
452
  cancelPendingPolicy: (input) => addSelfPlanAndSendFunctions(client, getCancelPendingPolicyInstructionAsync(input)),
498
453
  closePostAssertions: (input) => addSelfPlanAndSendFunctions(client, getClosePostAssertionsInstructionAsync(input)),
499
- closeSettledEscrow: (input) => addSelfPlanAndSendFunctions(client, getCloseSettledEscrowInstructionAsync(input)),
500
454
  closeVault: (input) => addSelfPlanAndSendFunctions(client, getCloseVaultInstructionAsync(input)),
501
- createEscrow: (input) => addSelfPlanAndSendFunctions(client, getCreateEscrowInstructionAsync(input)),
502
- createInstructionConstraints: (input) => addSelfPlanAndSendFunctions(client, getCreateInstructionConstraintsInstructionAsync(input)),
503
455
  createPostAssertions: (input) => addSelfPlanAndSendFunctions(client, getCreatePostAssertionsInstructionAsync(input)),
504
456
  depositFunds: (input) => addSelfPlanAndSendFunctions(client, getDepositFundsInstructionAsync(input)),
505
- extendPda: (input) => addSelfPlanAndSendFunctions(client, getExtendPdaInstruction(input)),
506
457
  finalizeSession: (input) => addSelfPlanAndSendFunctions(client, getFinalizeSessionInstructionAsync({
507
458
  ...input,
508
459
  payer: input.payer ?? client.payer,
509
460
  })),
510
- freezeVault: (input) => addSelfPlanAndSendFunctions(client, getFreezeVaultInstruction(input)),
461
+ freezeVault: (input) => addSelfPlanAndSendFunctions(client, getFreezeVaultInstructionAsync(input)),
511
462
  initializeVault: (input) => addSelfPlanAndSendFunctions(client, getInitializeVaultInstructionAsync(input)),
512
- pauseAgent: (input) => addSelfPlanAndSendFunctions(client, getPauseAgentInstruction(input)),
463
+ initiateOwnershipTransfer: (input) => addSelfPlanAndSendFunctions(client, getInitiateOwnershipTransferInstructionAsync(input)),
464
+ pauseAgent: (input) => addSelfPlanAndSendFunctions(client, getPauseAgentInstructionAsync(input)),
465
+ promoteGraylistDestination: (input) => addSelfPlanAndSendFunctions(client, getPromoteGraylistDestinationInstructionAsync(input)),
466
+ queueAgentGrant: (input) => addSelfPlanAndSendFunctions(client, getQueueAgentGrantInstructionAsync(input)),
513
467
  queueAgentPermissionsUpdate: (input) => addSelfPlanAndSendFunctions(client, getQueueAgentPermissionsUpdateInstructionAsync(input)),
514
- queueCloseConstraints: (input) => addSelfPlanAndSendFunctions(client, getQueueCloseConstraintsInstructionAsync(input)),
515
- queueConstraintsUpdate: (input) => addSelfPlanAndSendFunctions(client, getQueueConstraintsUpdateInstructionAsync(input)),
516
468
  queuePolicyUpdate: (input) => addSelfPlanAndSendFunctions(client, getQueuePolicyUpdateInstructionAsync(input)),
517
- reactivateVault: (input) => addSelfPlanAndSendFunctions(client, getReactivateVaultInstruction(input)),
518
- refundEscrow: (input) => addSelfPlanAndSendFunctions(client, getRefundEscrowInstructionAsync(input)),
519
- registerAgent: (input) => addSelfPlanAndSendFunctions(client, getRegisterAgentInstruction(input)),
520
- revokeAgent: (input) => addSelfPlanAndSendFunctions(client, getRevokeAgentInstruction(input)),
521
- settleEscrow: (input) => addSelfPlanAndSendFunctions(client, getSettleEscrowInstructionAsync(input)),
522
- unpauseAgent: (input) => addSelfPlanAndSendFunctions(client, getUnpauseAgentInstruction(input)),
469
+ reactivateVault: (input) => addSelfPlanAndSendFunctions(client, getReactivateVaultInstructionAsync(input)),
470
+ recordAgentViolation: (input) => addSelfPlanAndSendFunctions(client, getRecordAgentViolationInstructionAsync(input)),
471
+ registerAgent: (input) => addSelfPlanAndSendFunctions(client, getRegisterAgentInstructionAsync(input)),
472
+ revokeAgent: (input) => addSelfPlanAndSendFunctions(client, getRevokeAgentInstructionAsync(input)),
473
+ setObserveOnly: (input) => addSelfPlanAndSendFunctions(client, getSetObserveOnlyInstructionAsync(input)),
474
+ unpauseAgent: (input) => addSelfPlanAndSendFunctions(client, getUnpauseAgentInstructionAsync(input)),
523
475
  validateAndAuthorize: (input) => addSelfPlanAndSendFunctions(client, getValidateAndAuthorizeInstructionAsync(input)),
524
476
  withdrawFunds: (input) => addSelfPlanAndSendFunctions(client, getWithdrawFundsInstructionAsync(input)),
525
477
  },