@ixo/editor 7.17.1 → 7.19.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 (343) hide show
  1. package/README.md +6 -0
  2. package/dist/{BidConfig-PKO3SHPM.js → BidConfig-TQXBUKGD.js} +10 -10
  3. package/dist/{BidFlowDetail-56UM43KU.js → BidFlowDetail-3BKTJXXA.js} +20 -17
  4. package/dist/{BidFlowDetail-56UM43KU.js.map → BidFlowDetail-3BKTJXXA.js.map} +1 -1
  5. package/dist/{CalendarEventCreateConfig-MCNRXHUN.js → CalendarEventCreateConfig-U7NFXBME.js} +11 -11
  6. package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js → CalendarEventCreateFlowDetail-ERQXISWY.js} +12 -12
  7. package/dist/{CalendarEventListConfig-G3ENMMOL.js → CalendarEventListConfig-FMZXJEPI.js} +11 -11
  8. package/dist/{CalendarEventListFlowDetail-454HM6LH.js → CalendarEventListFlowDetail-DXOUHADW.js} +5 -5
  9. package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js → CalendarEventUpdateConfig-C43L7PHE.js} +11 -11
  10. package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js → CalendarEventUpdateFlowDetail-M6Z3TM3W.js} +12 -12
  11. package/dist/{ClaimConfig-XZWF6MXM.js → ClaimConfig-XLFL3IWC.js} +10 -10
  12. package/dist/{ClaimFlowDetail-TLD7WGZD.js → ClaimFlowDetail-CLEBNXGP.js} +20 -17
  13. package/dist/{ClaimFlowDetail-TLD7WGZD.js.map → ClaimFlowDetail-CLEBNXGP.js.map} +1 -1
  14. package/dist/{CollectionLifecycleConfig-DRQU52FG.js → CollectionLifecycleConfig-556UBJ2I.js} +4 -4
  15. package/dist/{CollectionLifecycleFlowDetail-W44R544P.js → CollectionLifecycleFlowDetail-JYNRCJ5S.js} +19 -16
  16. package/dist/{CollectionLifecycleFlowDetail-W44R544P.js.map → CollectionLifecycleFlowDetail-JYNRCJ5S.js.map} +1 -1
  17. package/dist/{CollectionUsersConfig-CTRSFWNE.js → CollectionUsersConfig-6P22QEYH.js} +10 -10
  18. package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js → CollectionUsersFlowDetail-75KV4MLK.js} +23 -20
  19. package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js.map → CollectionUsersFlowDetail-75KV4MLK.js.map} +1 -1
  20. package/dist/{CredentialStoreConfig-UUIJPIMZ.js → CredentialStoreConfig-G476HYFO.js} +8 -8
  21. package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js → CredentialStoreFlowDetail-PHFJWDQ6.js} +7 -7
  22. package/dist/{DesignPodFlowDetail-I7APOS5J.js → DesignPodFlowDetail-QE7XKTQ2.js} +5 -5
  23. package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js → DomainCardPreviewFlowDetail-YN6CBAIF.js} +7 -7
  24. package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js → DomainIndexerLookupFlowDetail-QGCPCVQU.js} +5 -5
  25. package/dist/{DomainSignFlowDetail-746C7LNN.js → DomainSignFlowDetail-DHJPC6PO.js} +8 -8
  26. package/dist/{DomainSingleSelectionConfig-IINRDF2X.js → DomainSingleSelectionConfig-EJTQIOGS.js} +4 -4
  27. package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js → DomainSingleSelectionFlowDetail-3FNDUQNQ.js} +5 -5
  28. package/dist/{EmailSendConfig-LKBUVEOZ.js → EmailSendConfig-ZCXQK3SV.js} +10 -10
  29. package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js → EntityCreateOracleFlowDetail-C6MV65OC.js} +7 -7
  30. package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js → EntitySingleSelectionFlowDetail-55TDSVSD.js} +5 -5
  31. package/dist/{EntityTransferFlowDetail-WAMV7YFS.js → EntityTransferFlowDetail-FT4IU4H6.js} +7 -7
  32. package/dist/{EvalEngineConfig-JP3LJWWU.js → EvalEngineConfig-NATHCR6D.js} +13 -13
  33. package/dist/{EvalEngineFlowDetail-BUUKGGSD.js → EvalEngineFlowDetail-K4UUV3SQ.js} +9 -9
  34. package/dist/{EvaluateBidConfig-CXSCBM3X.js → EvaluateBidConfig-UYCRRF2T.js} +10 -10
  35. package/dist/{EvaluateBidFlowDetail-56FBHYK5.js → EvaluateBidFlowDetail-FQP74NYF.js} +21 -18
  36. package/dist/{EvaluateBidFlowDetail-56FBHYK5.js.map → EvaluateBidFlowDetail-FQP74NYF.js.map} +1 -1
  37. package/dist/{EvaluateClaimConfig-XNRJJV4U.js → EvaluateClaimConfig-QVBOPMX2.js} +10 -10
  38. package/dist/{EvaluateClaimFlowDetail-4664ORTM.js → EvaluateClaimFlowDetail-7UDCX4G5.js} +20 -17
  39. package/dist/{EvaluateClaimFlowDetail-4664ORTM.js.map → EvaluateClaimFlowDetail-7UDCX4G5.js.map} +1 -1
  40. package/dist/{FormSubmitFlowDetail-CXG5R3WY.js → FormSubmitFlowDetail-7EGYHASY.js} +7 -7
  41. package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js → GovernanceAuthzExecFlowDetail-H4E53YQ4.js} +12 -12
  42. package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js} +10 -10
  43. package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js} +10 -10
  44. package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js → GovernanceChainVoteFlowDetail-GDYO5YNZ.js} +9 -9
  45. package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js → GovernanceConfigFlowDetail-EAX44S7P.js} +5 -5
  46. package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js → GovernanceContractExecuteFlowDetail-JAEBWT5F.js} +9 -9
  47. package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js} +9 -9
  48. package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js} +8 -8
  49. package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js → GovernanceContractMigrateFlowDetail-EA5BNLXK.js} +9 -9
  50. package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js} +8 -8
  51. package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js → GovernanceCustomMessageFlowDetail-SQJKIYUU.js} +9 -9
  52. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js} +9 -9
  53. package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js → GovernanceDaoAdminExecFlowDetail-RST73GEG.js} +11 -11
  54. package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js} +9 -9
  55. package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js → GovernanceDaoJoinFlowDetail-P54XEJBK.js} +9 -9
  56. package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js} +8 -8
  57. package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js} +10 -10
  58. package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js} +8 -8
  59. package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js → GovernanceMemberProposalConfig-T6V4XMD5.js} +5 -5
  60. package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js → GovernanceMemberProposalFlowDetail-QV4GZGCL.js} +9 -9
  61. package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js → GovernanceNftBurnFlowDetail-LWZXYELU.js} +8 -8
  62. package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js} +8 -8
  63. package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js → GovernanceNftTransferFlowDetail-M3FZ44DR.js} +9 -9
  64. package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js → GovernanceSettingsProposalConfig-LWZSLPOP.js} +6 -6
  65. package/dist/GovernanceSettingsProposalFlowDetail-XPNZHMRM.js +291 -0
  66. package/dist/GovernanceSettingsProposalFlowDetail-XPNZHMRM.js.map +1 -0
  67. package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js → GovernanceStakingStakeFlowDetail-YTSU64YA.js} +8 -8
  68. package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js} +8 -8
  69. package/dist/GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js +202 -0
  70. package/dist/GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js.map +1 -0
  71. package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js → GovernanceTransactionMintFlowDetail-JMRKVSSC.js} +9 -9
  72. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js} +8 -8
  73. package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js → GovernanceTransactionSendFundsConfig-2ZZGBB66.js} +5 -5
  74. package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js} +12 -12
  75. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js} +10 -10
  76. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js} +8 -8
  77. package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js} +9 -9
  78. package/dist/{HarvestConfig-FFARBTWA.js → HarvestConfig-TUREICJM.js} +9 -9
  79. package/dist/{HarvestFlowDetail-EXFUJCC5.js → HarvestFlowDetail-6VDHMIIR.js} +7 -7
  80. package/dist/{HttpRequestConfig-JXWZ4XZ5.js → HttpRequestConfig-NZP4M72G.js} +8 -8
  81. package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js → HttpRequestFlowDetail-VKPVV3EW.js} +5 -5
  82. package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js → IdentityCreateFlowDetail-PRX37M4E.js} +13 -13
  83. package/dist/{IidCreateFlowDetail-6V3HVZTJ.js → IidCreateFlowDetail-SHBEMN4T.js} +13 -13
  84. package/dist/{KycVerifyConfig-6F55N6UR.js → KycVerifyConfig-E5LO2HWP.js} +8 -8
  85. package/dist/{KycVerifyFlowDetail-H3R2KQT5.js → KycVerifyFlowDetail-ECXG4G2V.js} +13 -13
  86. package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js → ListDomainFlowsFlowDetail-R4O5E22G.js} +5 -5
  87. package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js → LoadBatchesFlowDetail-D5A3BXLP.js} +7 -7
  88. package/dist/{MatrixDmConfig-RFZBU7NL.js → MatrixDmConfig-TWT476MT.js} +4 -4
  89. package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js → MatrixRegisterFlowDetail-SNEQV5XD.js} +7 -7
  90. package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js → MemberMultiSelectFlowDetail-AFSBDTLU.js} +5 -5
  91. package/dist/{OracleConfig-H736YKGE.js → OracleConfig-YA235M4B.js} +8 -8
  92. package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js → OracleConfigureOracleFlowDetail-FG7W6KQV.js} +13 -13
  93. package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js → OracleContractFlowDetail-6WOJ2XM2.js} +7 -7
  94. package/dist/{OracleDeployFlowDetail-W2LFK23M.js → OracleDeployFlowDetail-MV46JHSL.js} +7 -7
  95. package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js → OracleDeploySetupFlowDetail-O4OY5VBH.js} +7 -7
  96. package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js → OracleDeployStartFlowDetail-TLKREH6F.js} +7 -7
  97. package/dist/{OracleFlowDetail-LQGZ2U2F.js → OracleFlowDetail-VEH2AEPI.js} +7 -7
  98. package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js → OraclePromptFlowDetail-3VVAWBXP.js} +7 -7
  99. package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js → OracleStoreConfigFlowDetail-F6BIC2MI.js} +7 -7
  100. package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js} +13 -13
  101. package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js → OracleStoreSecretsFlowDetail-Q7BB6VPM.js} +13 -13
  102. package/dist/{ProposalCreateConfig-7YYMB5EH.js → ProposalCreateConfig-PD2HANKW.js} +12 -12
  103. package/dist/{ProposalCreateFlowDetail-EU2NNZRS.js → ProposalCreateFlowDetail-H5TB6CRI.js} +64 -44
  104. package/dist/ProposalCreateFlowDetail-H5TB6CRI.js.map +1 -0
  105. package/dist/{ProposalVoteConfig-U5DF2WWT.js → ProposalVoteConfig-CGDNREKQ.js} +10 -10
  106. package/dist/{ProposalVoteFlowDetail-66B6H75V.js → ProposalVoteFlowDetail-BNIZNLJ3.js} +8 -8
  107. package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js → ProtocolSelectFlowDetail-X34GCQXS.js} +4 -4
  108. package/dist/{RetireConfig-4QOIAETV.js → RetireConfig-XCYWEMCM.js} +9 -9
  109. package/dist/{RetireFlowDetail-YQLPDYC4.js → RetireFlowDetail-J2VJGNU3.js} +7 -7
  110. package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js → SandboxProvisionFlowDetail-DTCXKMFO.js} +7 -7
  111. package/dist/{WalletFundConfig-UEQ3TKIO.js → WalletFundConfig-MU6JRK2X.js} +5 -5
  112. package/dist/{WalletFundFlowDetail-767QZKZM.js → WalletFundFlowDetail-7YJDOYVS.js} +8 -8
  113. package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js → WalletGenerateAndFundFlowDetail-CME4JE3R.js} +5 -5
  114. package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js → WalletGenerateFlowDetail-3KTVG2V4.js} +5 -5
  115. package/dist/{XeroContactCreateConfig-HXSGZD7Q.js → XeroContactCreateConfig-4VKYUIJQ.js} +11 -11
  116. package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js → XeroContactCreateFlowDetail-JRJ5I4CD.js} +12 -12
  117. package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js → XeroInvoiceCreateConfig-ULKQXCNS.js} +11 -11
  118. package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js → XeroInvoiceCreateFlowDetail-DTOFRV4L.js} +14 -14
  119. package/dist/{XeroInvoiceListConfig-DEZSXEVD.js → XeroInvoiceListConfig-PPXFYVVK.js} +11 -11
  120. package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js → XeroInvoiceListFlowDetail-RPE7NCMF.js} +5 -5
  121. package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js → XeroPaymentCreateConfig-EIYSLLZK.js} +8 -8
  122. package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js → XeroPaymentCreateFlowDetail-MMLHUXLS.js} +13 -13
  123. package/dist/action-manifest.json +5089 -543
  124. package/dist/{chunk-7LI5YJAE.js → chunk-2GIBQPNN.js} +2 -2
  125. package/dist/{chunk-GVNMIIMQ.js → chunk-3PUDS5PV.js} +133 -4
  126. package/dist/chunk-3PUDS5PV.js.map +1 -0
  127. package/dist/{chunk-EIDAXWST.js → chunk-45KKBVIM.js} +2 -2
  128. package/dist/{chunk-4Y66NZYT.js → chunk-6NH4PDTY.js} +43 -1
  129. package/dist/chunk-6NH4PDTY.js.map +1 -0
  130. package/dist/{chunk-U57CCGM4.js → chunk-6S4TEGYI.js} +2 -2
  131. package/dist/{chunk-KXTRAHCF.js → chunk-7C2WFOG2.js} +1034 -105
  132. package/dist/chunk-7C2WFOG2.js.map +1 -0
  133. package/dist/{chunk-NBDFKF6H.js → chunk-7UJMOJBH.js} +2 -2
  134. package/dist/{chunk-5NJA7YNR.js → chunk-A34Z7KJC.js} +2 -2
  135. package/dist/chunk-AKRAO7H6.js +24 -0
  136. package/dist/chunk-AKRAO7H6.js.map +1 -0
  137. package/dist/{chunk-IZRTWKW3.js → chunk-AW6YLUSS.js} +2 -2
  138. package/dist/{chunk-DDFGCFUF.js → chunk-B7X6QSZ7.js} +17 -6
  139. package/dist/chunk-B7X6QSZ7.js.map +1 -0
  140. package/dist/{chunk-TSXHPGXB.js → chunk-BH5JRBU4.js} +2 -2
  141. package/dist/{chunk-HNZQKYXU.js → chunk-DRPCLFT2.js} +4 -3
  142. package/dist/{chunk-HNZQKYXU.js.map → chunk-DRPCLFT2.js.map} +1 -1
  143. package/dist/{chunk-AO5TGK5A.js → chunk-GMEYEPGZ.js} +2 -2
  144. package/dist/chunk-HVL25AOI.js +55 -0
  145. package/dist/chunk-HVL25AOI.js.map +1 -0
  146. package/dist/{chunk-ICKOVZDM.js → chunk-IJUGKKMY.js} +2 -2
  147. package/dist/{chunk-3JJJGENW.js → chunk-IY7QJKBL.js} +2 -2
  148. package/dist/{chunk-DKQM4R2N.js → chunk-JD25JVOX.js} +2 -2
  149. package/dist/{chunk-TK3JNKME.js → chunk-L56HTYJR.js} +1 -1
  150. package/dist/chunk-L56HTYJR.js.map +1 -0
  151. package/dist/{chunk-7TT4RM2M.js → chunk-L6ZHO7T4.js} +2 -2
  152. package/dist/{chunk-VNRY7ABX.js → chunk-LUUZ3SG6.js} +3 -3
  153. package/dist/chunk-LUUZ3SG6.js.map +1 -0
  154. package/dist/{chunk-6SWOXRMF.js → chunk-NDD5CJZB.js} +2 -2
  155. package/dist/{chunk-WUWAC5S6.js → chunk-Q2FDVC3Z.js} +3 -3
  156. package/dist/{chunk-Z7QWH42V.js → chunk-QUGMNWDO.js} +2 -2
  157. package/dist/{chunk-OF3LB65M.js → chunk-RIHEX7HK.js} +2 -2
  158. package/dist/{chunk-SYOPQ3JE.js → chunk-RZXGA5XL.js} +9 -7
  159. package/dist/{chunk-SYOPQ3JE.js.map → chunk-RZXGA5XL.js.map} +1 -1
  160. package/dist/chunk-SUIL2KJT.js +190 -0
  161. package/dist/chunk-SUIL2KJT.js.map +1 -0
  162. package/dist/{chunk-TMQA4RSG.js → chunk-SXCEELAR.js} +3 -3
  163. package/dist/{chunk-WAM3FJJL.js → chunk-T3GM5CRM.js} +3 -3
  164. package/dist/chunk-VSVM2MPJ.js +149 -0
  165. package/dist/chunk-VSVM2MPJ.js.map +1 -0
  166. package/dist/{chunk-GNXZSPZ5.js → chunk-WBTL6EX4.js} +4 -4
  167. package/dist/{chunk-OCAYEGI2.js → chunk-WKYPC2IS.js} +1 -1
  168. package/dist/chunk-WKYPC2IS.js.map +1 -0
  169. package/dist/{chunk-XLBKC3EL.js → chunk-WY4JOYIF.js} +2 -2
  170. package/dist/{chunk-JRY6LLK6.js → chunk-X6U4GFNS.js} +3 -3
  171. package/dist/chunk-X6U4GFNS.js.map +1 -0
  172. package/dist/{chunk-PNHXP67T.js → chunk-XGICKRWF.js} +601 -55
  173. package/dist/chunk-XGICKRWF.js.map +1 -0
  174. package/dist/{chunk-EGZGY3OM.js → chunk-XKDMDEUI.js} +2953 -1203
  175. package/dist/chunk-XKDMDEUI.js.map +1 -0
  176. package/dist/{chunk-AOLCNPGV.js → chunk-YQ2KFBAT.js} +2 -2
  177. package/dist/{chunk-EVHWLO2C.js → chunk-YQWE5CZP.js} +169 -6
  178. package/dist/chunk-YQWE5CZP.js.map +1 -0
  179. package/dist/{chunk-OG56C7DD.js → chunk-YRWVRQXG.js} +2 -2
  180. package/dist/{chunk-OV4KVTZI.js → chunk-Z46UWMKG.js} +2 -2
  181. package/dist/{chunk-T4KY7UF7.js → chunk-ZAZDJGPW.js} +2 -2
  182. package/dist/{chunk-5DOXIPDH.js → chunk-ZCKNE7BN.js} +2 -2
  183. package/dist/{connections-Ch8YM5VH.d.ts → connections-Bb8EVlWA.d.ts} +19 -10
  184. package/dist/core/index.cjs +1853 -173
  185. package/dist/core/index.cjs.map +1 -1
  186. package/dist/core/index.d.ts +346 -6
  187. package/dist/core/index.js +44 -10
  188. package/dist/core/index.js.map +1 -1
  189. package/dist/{graphql-client-CQ4fit1Q.d.ts → graphql-client-Dukm5Usv.d.ts} +2 -2
  190. package/dist/index.d.ts +3 -3
  191. package/dist/index.js +30 -24
  192. package/dist/index.js.map +1 -1
  193. package/dist/mantine/index.d.ts +3 -3
  194. package/dist/mantine/index.js +29 -23
  195. package/dist/mantine/index.js.map +1 -1
  196. package/dist/{types-C62gQYvE.d.ts → types-D0TryOYl.d.ts} +693 -6
  197. package/package.json +1 -1
  198. package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js +0 -164
  199. package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js.map +0 -1
  200. package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js +0 -110
  201. package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js.map +0 -1
  202. package/dist/ProposalCreateFlowDetail-EU2NNZRS.js.map +0 -1
  203. package/dist/chunk-4Y66NZYT.js.map +0 -1
  204. package/dist/chunk-DDFGCFUF.js.map +0 -1
  205. package/dist/chunk-DP5X7SLN.js +0 -315
  206. package/dist/chunk-DP5X7SLN.js.map +0 -1
  207. package/dist/chunk-EGZGY3OM.js.map +0 -1
  208. package/dist/chunk-EVHWLO2C.js.map +0 -1
  209. package/dist/chunk-GVNMIIMQ.js.map +0 -1
  210. package/dist/chunk-JRY6LLK6.js.map +0 -1
  211. package/dist/chunk-KXTRAHCF.js.map +0 -1
  212. package/dist/chunk-OCAYEGI2.js.map +0 -1
  213. package/dist/chunk-PNHXP67T.js.map +0 -1
  214. package/dist/chunk-TK3JNKME.js.map +0 -1
  215. package/dist/chunk-VNRY7ABX.js.map +0 -1
  216. /package/dist/{BidConfig-PKO3SHPM.js.map → BidConfig-TQXBUKGD.js.map} +0 -0
  217. /package/dist/{CalendarEventCreateConfig-MCNRXHUN.js.map → CalendarEventCreateConfig-U7NFXBME.js.map} +0 -0
  218. /package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js.map → CalendarEventCreateFlowDetail-ERQXISWY.js.map} +0 -0
  219. /package/dist/{CalendarEventListConfig-G3ENMMOL.js.map → CalendarEventListConfig-FMZXJEPI.js.map} +0 -0
  220. /package/dist/{CalendarEventListFlowDetail-454HM6LH.js.map → CalendarEventListFlowDetail-DXOUHADW.js.map} +0 -0
  221. /package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js.map → CalendarEventUpdateConfig-C43L7PHE.js.map} +0 -0
  222. /package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js.map → CalendarEventUpdateFlowDetail-M6Z3TM3W.js.map} +0 -0
  223. /package/dist/{ClaimConfig-XZWF6MXM.js.map → ClaimConfig-XLFL3IWC.js.map} +0 -0
  224. /package/dist/{CollectionLifecycleConfig-DRQU52FG.js.map → CollectionLifecycleConfig-556UBJ2I.js.map} +0 -0
  225. /package/dist/{CollectionUsersConfig-CTRSFWNE.js.map → CollectionUsersConfig-6P22QEYH.js.map} +0 -0
  226. /package/dist/{CredentialStoreConfig-UUIJPIMZ.js.map → CredentialStoreConfig-G476HYFO.js.map} +0 -0
  227. /package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js.map → CredentialStoreFlowDetail-PHFJWDQ6.js.map} +0 -0
  228. /package/dist/{DesignPodFlowDetail-I7APOS5J.js.map → DesignPodFlowDetail-QE7XKTQ2.js.map} +0 -0
  229. /package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js.map → DomainCardPreviewFlowDetail-YN6CBAIF.js.map} +0 -0
  230. /package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js.map → DomainIndexerLookupFlowDetail-QGCPCVQU.js.map} +0 -0
  231. /package/dist/{DomainSignFlowDetail-746C7LNN.js.map → DomainSignFlowDetail-DHJPC6PO.js.map} +0 -0
  232. /package/dist/{DomainSingleSelectionConfig-IINRDF2X.js.map → DomainSingleSelectionConfig-EJTQIOGS.js.map} +0 -0
  233. /package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js.map → DomainSingleSelectionFlowDetail-3FNDUQNQ.js.map} +0 -0
  234. /package/dist/{EmailSendConfig-LKBUVEOZ.js.map → EmailSendConfig-ZCXQK3SV.js.map} +0 -0
  235. /package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js.map → EntityCreateOracleFlowDetail-C6MV65OC.js.map} +0 -0
  236. /package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js.map → EntitySingleSelectionFlowDetail-55TDSVSD.js.map} +0 -0
  237. /package/dist/{EntityTransferFlowDetail-WAMV7YFS.js.map → EntityTransferFlowDetail-FT4IU4H6.js.map} +0 -0
  238. /package/dist/{EvalEngineConfig-JP3LJWWU.js.map → EvalEngineConfig-NATHCR6D.js.map} +0 -0
  239. /package/dist/{EvalEngineFlowDetail-BUUKGGSD.js.map → EvalEngineFlowDetail-K4UUV3SQ.js.map} +0 -0
  240. /package/dist/{EvaluateBidConfig-CXSCBM3X.js.map → EvaluateBidConfig-UYCRRF2T.js.map} +0 -0
  241. /package/dist/{EvaluateClaimConfig-XNRJJV4U.js.map → EvaluateClaimConfig-QVBOPMX2.js.map} +0 -0
  242. /package/dist/{FormSubmitFlowDetail-CXG5R3WY.js.map → FormSubmitFlowDetail-7EGYHASY.js.map} +0 -0
  243. /package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js.map → GovernanceAuthzExecFlowDetail-H4E53YQ4.js.map} +0 -0
  244. /package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js.map → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js.map} +0 -0
  245. /package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js.map → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js.map} +0 -0
  246. /package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js.map → GovernanceChainVoteFlowDetail-GDYO5YNZ.js.map} +0 -0
  247. /package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js.map → GovernanceConfigFlowDetail-EAX44S7P.js.map} +0 -0
  248. /package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js.map → GovernanceContractExecuteFlowDetail-JAEBWT5F.js.map} +0 -0
  249. /package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js.map → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js.map} +0 -0
  250. /package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js.map → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js.map} +0 -0
  251. /package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js.map → GovernanceContractMigrateFlowDetail-EA5BNLXK.js.map} +0 -0
  252. /package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js.map → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js.map} +0 -0
  253. /package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js.map → GovernanceCustomMessageFlowDetail-SQJKIYUU.js.map} +0 -0
  254. /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js.map} +0 -0
  255. /package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js.map → GovernanceDaoAdminExecFlowDetail-RST73GEG.js.map} +0 -0
  256. /package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js.map → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js.map} +0 -0
  257. /package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js.map → GovernanceDaoJoinFlowDetail-P54XEJBK.js.map} +0 -0
  258. /package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js.map → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js.map} +0 -0
  259. /package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js.map → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js.map} +0 -0
  260. /package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js.map → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js.map} +0 -0
  261. /package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js.map → GovernanceMemberProposalConfig-T6V4XMD5.js.map} +0 -0
  262. /package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js.map → GovernanceMemberProposalFlowDetail-QV4GZGCL.js.map} +0 -0
  263. /package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js.map → GovernanceNftBurnFlowDetail-LWZXYELU.js.map} +0 -0
  264. /package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js.map → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js.map} +0 -0
  265. /package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js.map → GovernanceNftTransferFlowDetail-M3FZ44DR.js.map} +0 -0
  266. /package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js.map → GovernanceSettingsProposalConfig-LWZSLPOP.js.map} +0 -0
  267. /package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js.map → GovernanceStakingStakeFlowDetail-YTSU64YA.js.map} +0 -0
  268. /package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js.map → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js.map} +0 -0
  269. /package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js.map → GovernanceTransactionMintFlowDetail-JMRKVSSC.js.map} +0 -0
  270. /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js.map} +0 -0
  271. /package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js.map → GovernanceTransactionSendFundsConfig-2ZZGBB66.js.map} +0 -0
  272. /package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js.map → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js.map} +0 -0
  273. /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js.map → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js.map} +0 -0
  274. /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js.map} +0 -0
  275. /package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js.map → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js.map} +0 -0
  276. /package/dist/{HarvestConfig-FFARBTWA.js.map → HarvestConfig-TUREICJM.js.map} +0 -0
  277. /package/dist/{HarvestFlowDetail-EXFUJCC5.js.map → HarvestFlowDetail-6VDHMIIR.js.map} +0 -0
  278. /package/dist/{HttpRequestConfig-JXWZ4XZ5.js.map → HttpRequestConfig-NZP4M72G.js.map} +0 -0
  279. /package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js.map → HttpRequestFlowDetail-VKPVV3EW.js.map} +0 -0
  280. /package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js.map → IdentityCreateFlowDetail-PRX37M4E.js.map} +0 -0
  281. /package/dist/{IidCreateFlowDetail-6V3HVZTJ.js.map → IidCreateFlowDetail-SHBEMN4T.js.map} +0 -0
  282. /package/dist/{KycVerifyConfig-6F55N6UR.js.map → KycVerifyConfig-E5LO2HWP.js.map} +0 -0
  283. /package/dist/{KycVerifyFlowDetail-H3R2KQT5.js.map → KycVerifyFlowDetail-ECXG4G2V.js.map} +0 -0
  284. /package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js.map → ListDomainFlowsFlowDetail-R4O5E22G.js.map} +0 -0
  285. /package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js.map → LoadBatchesFlowDetail-D5A3BXLP.js.map} +0 -0
  286. /package/dist/{MatrixDmConfig-RFZBU7NL.js.map → MatrixDmConfig-TWT476MT.js.map} +0 -0
  287. /package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js.map → MatrixRegisterFlowDetail-SNEQV5XD.js.map} +0 -0
  288. /package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js.map → MemberMultiSelectFlowDetail-AFSBDTLU.js.map} +0 -0
  289. /package/dist/{OracleConfig-H736YKGE.js.map → OracleConfig-YA235M4B.js.map} +0 -0
  290. /package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js.map → OracleConfigureOracleFlowDetail-FG7W6KQV.js.map} +0 -0
  291. /package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js.map → OracleContractFlowDetail-6WOJ2XM2.js.map} +0 -0
  292. /package/dist/{OracleDeployFlowDetail-W2LFK23M.js.map → OracleDeployFlowDetail-MV46JHSL.js.map} +0 -0
  293. /package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js.map → OracleDeploySetupFlowDetail-O4OY5VBH.js.map} +0 -0
  294. /package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js.map → OracleDeployStartFlowDetail-TLKREH6F.js.map} +0 -0
  295. /package/dist/{OracleFlowDetail-LQGZ2U2F.js.map → OracleFlowDetail-VEH2AEPI.js.map} +0 -0
  296. /package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js.map → OraclePromptFlowDetail-3VVAWBXP.js.map} +0 -0
  297. /package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js.map → OracleStoreConfigFlowDetail-F6BIC2MI.js.map} +0 -0
  298. /package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js.map → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js.map} +0 -0
  299. /package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js.map → OracleStoreSecretsFlowDetail-Q7BB6VPM.js.map} +0 -0
  300. /package/dist/{ProposalCreateConfig-7YYMB5EH.js.map → ProposalCreateConfig-PD2HANKW.js.map} +0 -0
  301. /package/dist/{ProposalVoteConfig-U5DF2WWT.js.map → ProposalVoteConfig-CGDNREKQ.js.map} +0 -0
  302. /package/dist/{ProposalVoteFlowDetail-66B6H75V.js.map → ProposalVoteFlowDetail-BNIZNLJ3.js.map} +0 -0
  303. /package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js.map → ProtocolSelectFlowDetail-X34GCQXS.js.map} +0 -0
  304. /package/dist/{RetireConfig-4QOIAETV.js.map → RetireConfig-XCYWEMCM.js.map} +0 -0
  305. /package/dist/{RetireFlowDetail-YQLPDYC4.js.map → RetireFlowDetail-J2VJGNU3.js.map} +0 -0
  306. /package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js.map → SandboxProvisionFlowDetail-DTCXKMFO.js.map} +0 -0
  307. /package/dist/{WalletFundConfig-UEQ3TKIO.js.map → WalletFundConfig-MU6JRK2X.js.map} +0 -0
  308. /package/dist/{WalletFundFlowDetail-767QZKZM.js.map → WalletFundFlowDetail-7YJDOYVS.js.map} +0 -0
  309. /package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js.map → WalletGenerateAndFundFlowDetail-CME4JE3R.js.map} +0 -0
  310. /package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js.map → WalletGenerateFlowDetail-3KTVG2V4.js.map} +0 -0
  311. /package/dist/{XeroContactCreateConfig-HXSGZD7Q.js.map → XeroContactCreateConfig-4VKYUIJQ.js.map} +0 -0
  312. /package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js.map → XeroContactCreateFlowDetail-JRJ5I4CD.js.map} +0 -0
  313. /package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js.map → XeroInvoiceCreateConfig-ULKQXCNS.js.map} +0 -0
  314. /package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js.map → XeroInvoiceCreateFlowDetail-DTOFRV4L.js.map} +0 -0
  315. /package/dist/{XeroInvoiceListConfig-DEZSXEVD.js.map → XeroInvoiceListConfig-PPXFYVVK.js.map} +0 -0
  316. /package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js.map → XeroInvoiceListFlowDetail-RPE7NCMF.js.map} +0 -0
  317. /package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js.map → XeroPaymentCreateConfig-EIYSLLZK.js.map} +0 -0
  318. /package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js.map → XeroPaymentCreateFlowDetail-MMLHUXLS.js.map} +0 -0
  319. /package/dist/{chunk-7LI5YJAE.js.map → chunk-2GIBQPNN.js.map} +0 -0
  320. /package/dist/{chunk-EIDAXWST.js.map → chunk-45KKBVIM.js.map} +0 -0
  321. /package/dist/{chunk-U57CCGM4.js.map → chunk-6S4TEGYI.js.map} +0 -0
  322. /package/dist/{chunk-NBDFKF6H.js.map → chunk-7UJMOJBH.js.map} +0 -0
  323. /package/dist/{chunk-5NJA7YNR.js.map → chunk-A34Z7KJC.js.map} +0 -0
  324. /package/dist/{chunk-IZRTWKW3.js.map → chunk-AW6YLUSS.js.map} +0 -0
  325. /package/dist/{chunk-TSXHPGXB.js.map → chunk-BH5JRBU4.js.map} +0 -0
  326. /package/dist/{chunk-AO5TGK5A.js.map → chunk-GMEYEPGZ.js.map} +0 -0
  327. /package/dist/{chunk-ICKOVZDM.js.map → chunk-IJUGKKMY.js.map} +0 -0
  328. /package/dist/{chunk-3JJJGENW.js.map → chunk-IY7QJKBL.js.map} +0 -0
  329. /package/dist/{chunk-DKQM4R2N.js.map → chunk-JD25JVOX.js.map} +0 -0
  330. /package/dist/{chunk-7TT4RM2M.js.map → chunk-L6ZHO7T4.js.map} +0 -0
  331. /package/dist/{chunk-6SWOXRMF.js.map → chunk-NDD5CJZB.js.map} +0 -0
  332. /package/dist/{chunk-WUWAC5S6.js.map → chunk-Q2FDVC3Z.js.map} +0 -0
  333. /package/dist/{chunk-Z7QWH42V.js.map → chunk-QUGMNWDO.js.map} +0 -0
  334. /package/dist/{chunk-OF3LB65M.js.map → chunk-RIHEX7HK.js.map} +0 -0
  335. /package/dist/{chunk-TMQA4RSG.js.map → chunk-SXCEELAR.js.map} +0 -0
  336. /package/dist/{chunk-WAM3FJJL.js.map → chunk-T3GM5CRM.js.map} +0 -0
  337. /package/dist/{chunk-GNXZSPZ5.js.map → chunk-WBTL6EX4.js.map} +0 -0
  338. /package/dist/{chunk-XLBKC3EL.js.map → chunk-WY4JOYIF.js.map} +0 -0
  339. /package/dist/{chunk-AOLCNPGV.js.map → chunk-YQ2KFBAT.js.map} +0 -0
  340. /package/dist/{chunk-OG56C7DD.js.map → chunk-YRWVRQXG.js.map} +0 -0
  341. /package/dist/{chunk-OV4KVTZI.js.map → chunk-Z46UWMKG.js.map} +0 -0
  342. /package/dist/{chunk-T4KY7UF7.js.map → chunk-ZAZDJGPW.js.map} +0 -0
  343. /package/dist/{chunk-5DOXIPDH.js.map → chunk-ZCKNE7BN.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  isBlankInputValue,
9
9
  parseMaybeJsonObject
10
- } from "./chunk-HNZQKYXU.js";
10
+ } from "./chunk-DRPCLFT2.js";
11
11
  import {
12
12
  buildRubricEnvelope,
13
13
  composeCollectionDescription,
@@ -15,7 +15,7 @@ import {
15
15
  parseEvalRubricInputs,
16
16
  validateRubric,
17
17
  validateRubricShape
18
- } from "./chunk-OG56C7DD.js";
18
+ } from "./chunk-YRWVRQXG.js";
19
19
  import {
20
20
  USDC_INJ_DISPLAY_TOKEN,
21
21
  coinLabel,
@@ -48,7 +48,7 @@ import {
48
48
  readDesignPodState,
49
49
  sameDesignPodActor,
50
50
  updateDesignPodControl
51
- } from "./chunk-7TT4RM2M.js";
51
+ } from "./chunk-L6ZHO7T4.js";
52
52
  import {
53
53
  extractDid
54
54
  } from "./chunk-EBFFDDAS.js";
@@ -70,7 +70,7 @@ import {
70
70
  resolveActionType,
71
71
  sendDirectMessage,
72
72
  sha256Digest
73
- } from "./chunk-4Y66NZYT.js";
73
+ } from "./chunk-6NH4PDTY.js";
74
74
  import {
75
75
  isYMapLike
76
76
  } from "./chunk-NCSGIRRQ.js";
@@ -1091,6 +1091,63 @@ async function readCollection(handlers, params) {
1091
1091
  return void 0;
1092
1092
  }
1093
1093
 
1094
+ // src/core/lib/actionRegistry/effectBoundary.ts
1095
+ var EFFECT_OUTCOME_UNKNOWN_CODE = "EFFECT_OUTCOME_UNKNOWN";
1096
+ var ActionEffectNotStartedError = class extends Error {
1097
+ constructor(message) {
1098
+ super(message);
1099
+ this.effectNotStarted = true;
1100
+ this.name = "ActionEffectNotStartedError";
1101
+ }
1102
+ };
1103
+ function isEffectNotStartedError(error) {
1104
+ return !!error && typeof error === "object" && error.effectNotStarted === true;
1105
+ }
1106
+ function trackPort(value, onTouch, seen) {
1107
+ if (!value || typeof value !== "object" || Array.isArray(value)) return value;
1108
+ const target = value;
1109
+ const cached2 = seen.get(target);
1110
+ if (cached2) return cached2;
1111
+ const proxy = new Proxy(target, {
1112
+ get(obj, prop) {
1113
+ const raw = Reflect.get(obj, prop);
1114
+ const descriptor = Reflect.getOwnPropertyDescriptor(obj, prop);
1115
+ if (descriptor && !descriptor.configurable && descriptor.writable === false) {
1116
+ if (typeof raw === "function") onTouch();
1117
+ return raw;
1118
+ }
1119
+ if (typeof raw === "function") {
1120
+ return (...args) => {
1121
+ onTouch();
1122
+ return Reflect.apply(raw, obj, args);
1123
+ };
1124
+ }
1125
+ return trackPort(raw, onTouch, seen);
1126
+ }
1127
+ });
1128
+ seen.set(target, proxy);
1129
+ return proxy;
1130
+ }
1131
+ function trackActionEffectPorts(ctx, onTouch) {
1132
+ const seen = /* @__PURE__ */ new WeakMap();
1133
+ const services = trackPort(ctx.services, onTouch, seen);
1134
+ const handlers = ctx.handlers ? trackPort(ctx.handlers, onTouch, seen) : ctx.handlers;
1135
+ const { editor, runEventLog, ...rest } = ctx;
1136
+ return {
1137
+ ...rest,
1138
+ services,
1139
+ handlers,
1140
+ get editor() {
1141
+ if (editor) onTouch();
1142
+ return editor;
1143
+ },
1144
+ get runEventLog() {
1145
+ if (runEventLog) onTouch();
1146
+ return runEventLog;
1147
+ }
1148
+ };
1149
+ }
1150
+
1094
1151
  // src/core/lib/actionRegistry/actions/collectionUsers/index.ts
1095
1152
  var COLLECTION_USERS_ACTION_TYPE = "qi/collection.users";
1096
1153
  var COLLECTION_USERS_MAX_GRANTS_PER_TX = 40;
@@ -2980,6 +3037,67 @@ register(
2980
3037
  }
2981
3038
  );
2982
3039
 
3040
+ // src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
3041
+ var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
3042
+ var AUTO_VOTES = /* @__PURE__ */ new Set(["yes", "no", "abstain"]);
3043
+ function autoVoteFromInputs(inputs) {
3044
+ const raw = inputs?.voteOnSubmission;
3045
+ const vote = raw === true ? "yes" : String(raw ?? "").trim().toLowerCase();
3046
+ return AUTO_VOTES.has(vote) ? { vote } : null;
3047
+ }
3048
+ function isGroupExecution(inputs) {
3049
+ return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
3050
+ }
3051
+ function requireGroupExecutionParams(inputs) {
3052
+ const coreAddress = String(inputs.groupCoreAddress || "").trim();
3053
+ if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
3054
+ const title = String(inputs.proposalTitle || "").trim();
3055
+ if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
3056
+ const description = String(inputs.proposalDescription || "").trim();
3057
+ if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
3058
+ return { coreAddress, title, description };
3059
+ }
3060
+ async function proposeGroupExecution(ctx, params) {
3061
+ const handlers = ctx.handlers;
3062
+ if (!handlers?.createGroupExecutionProposal) {
3063
+ throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
3064
+ }
3065
+ const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent, autoVote } = params;
3066
+ const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
3067
+ coreAddress,
3068
+ title,
3069
+ description,
3070
+ msgs,
3071
+ ...autoVote ? { autoVote } : {}
3072
+ });
3073
+ if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
3074
+ throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
3075
+ }
3076
+ return {
3077
+ output: {
3078
+ ...expectedOutput,
3079
+ groupExecution: true,
3080
+ groupCoreAddress: coreAddress,
3081
+ groupProposalId: String(proposalId),
3082
+ groupProposalContractAddress: String(proposalContractAddress || ""),
3083
+ proposalTitle: title,
3084
+ proposalDescription: description
3085
+ },
3086
+ completion: {
3087
+ state: "awaiting_readback",
3088
+ readBack: {
3089
+ kind: GROUP_PROPOSAL_READBACK_KIND,
3090
+ proposalId: String(proposalId),
3091
+ proposalContractAddress: String(proposalContractAddress || ""),
3092
+ coreAddress,
3093
+ expectedOutput,
3094
+ ...completionEvent ? { completionEvent } : {},
3095
+ ...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
3096
+ }
3097
+ }
3098
+ };
3099
+ }
3100
+
2983
3101
  // src/core/lib/actionRegistry/actions/governance/_shared.ts
2984
3102
  var GOVERNANCE_REQUIRED_FIELDS = {
2985
3103
  "qi/governance.authz.exec": ["authzExecActionType"],
@@ -3007,6 +3125,15 @@ var GOVERNANCE_REQUIRED_FIELDS = {
3007
3125
  "qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
3008
3126
  "qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent"],
3009
3127
  "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired"],
3128
+ "qi/governance.submission-policy": [],
3129
+ "qi/governance.dao.pause": ["pauseHours"],
3130
+ "qi/governance.nft.active-threshold": ["thresholdType"],
3131
+ "qi/governance.delegation.setup": [],
3132
+ "qi/governance.rewards.create": ["denom", "emissionMode"],
3133
+ "qi/governance.proposal-module.add": ["kind", "votingPeriodSeconds"],
3134
+ "qi/governance.approver.setup": ["approvalModule"],
3135
+ "qi/governance.rewards.fund": ["distributionId", "amount"],
3136
+ "qi/governance.rewards.withdraw": ["distributionId"],
3010
3137
  "qi/governance.transaction.mint": ["recipient", "amount"],
3011
3138
  "qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
3012
3139
  "qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
@@ -3038,8 +3165,40 @@ var GOVERNANCE_FIELDS = {
3038
3165
  "qi/governance.nft.transfer": ["collection", "tokenId", "recipient", "executeSmartContract", "smartContractMsg"],
3039
3166
  "qi/governance.staking.stake": ["stakeType", "validator", "toValidator", "amount"],
3040
3167
  "qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
3041
- "qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent", "allowRevoting"],
3042
- "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy"],
3168
+ "qi/governance.settings-proposal": [
3169
+ "votingPeriodHours",
3170
+ "quorumPercent",
3171
+ "thresholdPercent",
3172
+ "allowRevoting",
3173
+ "vetoEnabled",
3174
+ "vetoer",
3175
+ "vetoTimelockHours",
3176
+ "vetoEarlyExecute",
3177
+ "vetoBeforePassed"
3178
+ ],
3179
+ "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy", "policyMode", "daoMembers", "allowlist", "denylist"],
3180
+ "qi/governance.submission-policy": ["allowlistAdd", "allowlistRemove", "denylistAdd", "denylistRemove", "setDaoMembers"],
3181
+ "qi/governance.dao.pause": ["pauseHours"],
3182
+ "qi/governance.nft.active-threshold": ["thresholdType", "thresholdValue"],
3183
+ "qi/governance.delegation.setup": ["vpCapPercent", "validityBlocks", "maxDelegations"],
3184
+ "qi/governance.rewards.create": ["denomType", "denom", "emissionMode", "amount", "periodSeconds", "continuous", "openFunding", "withdrawDestination"],
3185
+ "qi/governance.proposal-module.add": [
3186
+ "kind",
3187
+ "approvalRequired",
3188
+ "approver",
3189
+ "thresholdPercent",
3190
+ "quorumPercent",
3191
+ "votingPeriodSeconds",
3192
+ "allowRevoting",
3193
+ "anyoneCanPropose",
3194
+ "depositAmount",
3195
+ "depositDenom",
3196
+ "depositRefundPolicy",
3197
+ "label"
3198
+ ],
3199
+ "qi/governance.approver.setup": ["approvalModule", "votingPeriodSeconds", "thresholdPercent"],
3200
+ "qi/governance.rewards.fund": ["distributionId", "amount"],
3201
+ "qi/governance.rewards.withdraw": ["distributionId"],
3043
3202
  "qi/governance.transaction.mint": ["recipient", "amount"],
3044
3203
  "qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
3045
3204
  "qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
@@ -3047,8 +3206,39 @@ var GOVERNANCE_FIELDS = {
3047
3206
  "qi/governance.transaction.withdraw-token-swap": ["tokenSwapContractAddress"],
3048
3207
  "qi/governance.validator.actions": ["validatorActionType", "createMsg", "editMsg"]
3049
3208
  };
3050
- var BOOLEAN_FIELDS = /* @__PURE__ */ new Set(["adding", "automaticallyAddCw20s", "automaticallyAddCw721s", "executeSmartContract", "anyoneCanPropose", "depositRequired", "allowRevoting"]);
3051
- var NUMBER_FIELDS = /* @__PURE__ */ new Set(["codeId", "vote", "votingPeriodHours", "quorumPercent", "thresholdPercent"]);
3209
+ var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
3210
+ "adding",
3211
+ "automaticallyAddCw20s",
3212
+ "automaticallyAddCw721s",
3213
+ "executeSmartContract",
3214
+ "anyoneCanPropose",
3215
+ "depositRequired",
3216
+ "allowRevoting",
3217
+ "vetoEnabled",
3218
+ "vetoEarlyExecute",
3219
+ "vetoBeforePassed",
3220
+ "daoMembers",
3221
+ "setDaoMembers",
3222
+ "continuous",
3223
+ "openFunding",
3224
+ "approvalRequired"
3225
+ ]);
3226
+ var NUMBER_FIELDS = /* @__PURE__ */ new Set([
3227
+ "codeId",
3228
+ "vote",
3229
+ "votingPeriodHours",
3230
+ "quorumPercent",
3231
+ "thresholdPercent",
3232
+ "vetoTimelockHours",
3233
+ "pauseHours",
3234
+ "thresholdValue",
3235
+ "vpCapPercent",
3236
+ "validityBlocks",
3237
+ "maxDelegations",
3238
+ "periodSeconds",
3239
+ "distributionId",
3240
+ "votingPeriodSeconds"
3241
+ ]);
3052
3242
  var ARRAY_FIELDS = /* @__PURE__ */ new Set(["funds", "msgs", "toAdd", "toRemove", "members"]);
3053
3243
  var OBJECT_FIELDS = /* @__PURE__ */ new Set(["value"]);
3054
3244
  function governanceProperty(name) {
@@ -3062,7 +3252,12 @@ function governanceInputSchema(type, extraFields = {}, requiredOverride) {
3062
3252
  const properties = {
3063
3253
  coreAddress: { type: "string", description: "DAO core contract address." },
3064
3254
  title: { type: "string", description: "Proposal title voters see." },
3065
- description: { type: "string", description: "Long-form proposal description voters see." }
3255
+ description: { type: "string", description: "Long-form proposal description voters see." },
3256
+ voteOnSubmission: {
3257
+ type: "string",
3258
+ enum: ["", "yes", "no", "abstain"],
3259
+ description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
3260
+ }
3066
3261
  };
3067
3262
  for (const field of GOVERNANCE_FIELDS[type] || []) properties[field] = governanceProperty(field);
3068
3263
  Object.assign(properties, extraFields);
@@ -3110,13 +3305,15 @@ function registerGovernanceProposalAction(spec) {
3110
3305
  const { preProposalContractAddress } = await handlers.getPreProposalContractAddress({ coreAddress });
3111
3306
  const { groupContractAddress } = await handlers.getGroupContractAddress({ coreAddress });
3112
3307
  const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
3308
+ const autoVote = autoVoteFromInputs(inputs);
3113
3309
  const proposalId = await handlers.createProposal({
3114
3310
  preProposalContractAddress,
3115
3311
  title,
3116
3312
  description,
3117
3313
  actions,
3118
3314
  coreAddress,
3119
- groupContractAddress
3315
+ groupContractAddress,
3316
+ ...autoVote ? { autoVote } : {}
3120
3317
  });
3121
3318
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
3122
3319
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -3155,6 +3352,10 @@ function registerGovernanceProposalAction(spec) {
3155
3352
  }
3156
3353
  });
3157
3354
  }
3355
+ function parseAddressList(value) {
3356
+ const list = Array.isArray(value) ? value : typeof value === "string" ? value.split(/[\s,;]+/) : [];
3357
+ return [...new Set(list.map((v) => String(v ?? "").trim()).filter(Boolean))];
3358
+ }
3158
3359
 
3159
3360
  // src/core/lib/actionRegistry/actions/governance/memberProposal.ts
3160
3361
  var VALID_OPERATIONS = ["add", "remove", "update-weight"];
@@ -3244,7 +3445,8 @@ registerAction({
3244
3445
  description,
3245
3446
  actions: [updateMembersAction],
3246
3447
  coreAddress,
3247
- groupContractAddress
3448
+ groupContractAddress,
3449
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
3248
3450
  });
3249
3451
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
3250
3452
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -3265,6 +3467,8 @@ registerAction({
3265
3467
  });
3266
3468
 
3267
3469
  // src/core/lib/actionRegistry/actions/governance/settingsProposal.ts
3470
+ var isTrue = (value) => value === true || value === "true";
3471
+ var isFalse = (value) => value === false || value === "false";
3268
3472
  function clampPercent(value, label, { allowZero = false } = {}) {
3269
3473
  const n = Number(value);
3270
3474
  if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
@@ -3288,7 +3492,13 @@ registerAction({
3288
3492
  { path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
3289
3493
  { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
3290
3494
  { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
3291
- { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" }
3495
+ { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" },
3496
+ {
3497
+ path: "vetoConfigured",
3498
+ displayName: "Veto Configured",
3499
+ type: "string",
3500
+ description: "'true' when the proposal sets a veto, 'false' when it clears one, 'unchanged' otherwise"
3501
+ }
3292
3502
  ],
3293
3503
  // Mirrors run()'s throw-preamble (there is no inputSchema to declare
3294
3504
  // requiredness on): coreAddress and the three numeric voting settings.
@@ -3331,6 +3541,15 @@ registerAction({
3331
3541
  proposalDurationUnits: "hours",
3332
3542
  allowRevoting
3333
3543
  };
3544
+ if (isTrue(inputs.vetoEnabled)) {
3545
+ const vetoer = String(inputs.vetoer || "").trim();
3546
+ if (!vetoer) throw new Error("vetoer is required when the veto is enabled");
3547
+ const timelockHours = Number(inputs.vetoTimelockHours);
3548
+ if (!Number.isFinite(timelockHours) || timelockHours <= 0) throw new Error("vetoTimelockHours must be a positive number");
3549
+ Object.assign(data, { veto: { vetoer, timelockHours, earlyExecute: isTrue(inputs.vetoEarlyExecute), vetoBeforePassed: isTrue(inputs.vetoBeforePassed) } });
3550
+ } else if (isFalse(inputs.vetoEnabled)) {
3551
+ Object.assign(data, { veto: null });
3552
+ }
3334
3553
  const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
3335
3554
  const title = String(inputs.title || "").trim() || "Update governance settings";
3336
3555
  const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
@@ -3343,7 +3562,8 @@ registerAction({
3343
3562
  description,
3344
3563
  actions: [updateVotingConfigAction],
3345
3564
  coreAddress,
3346
- groupContractAddress
3565
+ groupContractAddress,
3566
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
3347
3567
  });
3348
3568
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
3349
3569
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -3356,7 +3576,8 @@ registerAction({
3356
3576
  status: "open",
3357
3577
  proposalContractAddress: proposalContractAddress || "",
3358
3578
  coreAddress,
3359
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
3579
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
3580
+ vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
3360
3581
  }
3361
3582
  };
3362
3583
  }
@@ -3383,6 +3604,14 @@ registerGovernanceProposalAction({
3383
3604
  }
3384
3605
  refundPolicy = policy;
3385
3606
  }
3607
+ const policyMode = String(inputs.policyMode || "").trim();
3608
+ if (policyMode && policyMode !== "anyone" && policyMode !== "specific") throw new Error("policyMode must be 'anyone' or 'specific'");
3609
+ const submissionPolicy = policyMode ? {
3610
+ mode: policyMode,
3611
+ daoMembers: inputs.daoMembers === void 0 ? true : inputs.daoMembers === true || inputs.daoMembers === "true",
3612
+ allowlist: parseAddressList(inputs.allowlist),
3613
+ denylist: parseAddressList(inputs.denylist)
3614
+ } : void 0;
3386
3615
  return [
3387
3616
  {
3388
3617
  type: "UpdatePreProposeConfig",
@@ -3390,7 +3619,8 @@ registerGovernanceProposalAction({
3390
3619
  depositRequired,
3391
3620
  // Deposit token fixed to the chain's native IXO (uixo) for now.
3392
3621
  depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
3393
- anyoneCanPropose
3622
+ anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
3623
+ ...submissionPolicy ? { submissionPolicy } : {}
3394
3624
  }
3395
3625
  }
3396
3626
  ];
@@ -3414,6 +3644,37 @@ registerGovernanceProposalAction({
3414
3644
  ]
3415
3645
  });
3416
3646
 
3647
+ // src/core/lib/actionRegistry/actions/governance/submissionPolicy.ts
3648
+ registerGovernanceProposalAction({
3649
+ type: "qi/governance.submission-policy",
3650
+ can: "governance/submission-policy",
3651
+ buildActions: (inputs) => {
3652
+ const allowlistAdd = parseAddressList(inputs.allowlistAdd);
3653
+ const allowlistRemove = parseAddressList(inputs.allowlistRemove);
3654
+ const denylistAdd = parseAddressList(inputs.denylistAdd);
3655
+ const denylistRemove = parseAddressList(inputs.denylistRemove);
3656
+ const setDaoMembers = inputs.setDaoMembers === true || inputs.setDaoMembers === "true" ? true : inputs.setDaoMembers === false || inputs.setDaoMembers === "false" ? false : null;
3657
+ if (!allowlistAdd.length && !allowlistRemove.length && !denylistAdd.length && !denylistRemove.length && setDaoMembers === null) {
3658
+ throw new Error("Nothing to change \u2014 add or remove at least one address, or set whether members may propose");
3659
+ }
3660
+ return [{ type: "UpdateSubmissionPolicy", data: { allowlistAdd, allowlistRemove, denylistAdd, denylistRemove, setDaoMembers } }];
3661
+ },
3662
+ defaultTitle: () => "Update who may submit proposals",
3663
+ defaultDescription: () => "Changes the allow and deny lists for proposal submission once the proposal passes; the proposal deposit is untouched.",
3664
+ buildExtraOutput: (inputs) => ({
3665
+ allowlistAdd: parseAddressList(inputs.allowlistAdd).join(","),
3666
+ allowlistRemove: parseAddressList(inputs.allowlistRemove).join(","),
3667
+ denylistAdd: parseAddressList(inputs.denylistAdd).join(","),
3668
+ denylistRemove: parseAddressList(inputs.denylistRemove).join(",")
3669
+ }),
3670
+ extraOutputSchema: [
3671
+ { path: "allowlistAdd", displayName: "Allowlist Added", type: "string", description: "Addresses gaining the right to propose" },
3672
+ { path: "allowlistRemove", displayName: "Allowlist Removed", type: "string", description: "Addresses losing the right to propose" },
3673
+ { path: "denylistAdd", displayName: "Denylist Added", type: "string", description: "Addresses blocked from proposing" },
3674
+ { path: "denylistRemove", displayName: "Denylist Removed", type: "string", description: "Addresses unblocked" }
3675
+ ]
3676
+ });
3677
+
3417
3678
  // src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
3418
3679
  registerAction({
3419
3680
  type: "qi/governance.transaction.send-funds",
@@ -3481,7 +3742,8 @@ registerAction({
3481
3742
  description,
3482
3743
  actions: [spendAction],
3483
3744
  coreAddress,
3484
- groupContractAddress
3745
+ groupContractAddress,
3746
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
3485
3747
  });
3486
3748
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
3487
3749
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -4038,6 +4300,664 @@ registerGovernanceProposalAction({
4038
4300
  extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
4039
4301
  });
4040
4302
 
4303
+ // src/core/lib/actionRegistry/actions/governance/daoUpgrade.ts
4304
+ var isTrue2 = (value) => value === true || value === "true";
4305
+ var OUTPUT_SCHEMA = [
4306
+ { path: "status", displayName: "Upgrade Status", type: "string", description: "'up-to-date', 'core-migrated', 'proposal-open', 'proposal-executed' or 'partial'" },
4307
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4308
+ { path: "targetVersion", displayName: "Target Version", type: "string", description: "The DAO DAO generation upgraded to" },
4309
+ { path: "coreMigrated", displayName: "Core Migrated", type: "string", description: "'true' when this run migrated the core contract" },
4310
+ { path: "coreTransactionHash", displayName: "Core Migration Tx", type: "string", description: "Transaction hash of the direct core migration, when one was signed" },
4311
+ { path: "proposalId", displayName: "Proposal ID", type: "string", description: "The on-chain proposal migrating the governance modules, when one was created" },
4312
+ { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the upgrade proposal lives on" },
4313
+ { path: "proposalTitle", displayName: "Proposal Title", type: "string", description: "The proposal name voters see on-chain" },
4314
+ { path: "proposalDescription", displayName: "Proposal Description", type: "string", description: "The long-form description voters see on-chain" },
4315
+ { path: "migratedModules", displayName: "Migrated Modules", type: "string", description: "Comma-separated list of the modules the proposal migrates" },
4316
+ { path: "skippedModules", displayName: "Skipped Modules", type: "string", description: "Comma-separated list of modules left as they are, with the reason" },
4317
+ { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of this run" }
4318
+ ];
4319
+ function summarizePlan(plan) {
4320
+ const migrated = (plan.messages.proposalStep?.items || []).filter((item) => item.kind !== "remove-hook").map((item) => `${item.contract} ${item.fromVersion}\u2192${item.toVersion}${item.kind === "swap" ? " (replaced)" : ""}`).join(", ");
4321
+ const skipped = plan.messages.skipped.map((entry) => `${entry.contract} (${entry.reason})`).join(", ");
4322
+ return { migrated, skipped };
4323
+ }
4324
+ registerAction({
4325
+ type: "qi/governance.dao.upgrade",
4326
+ can: "governance.dao/upgrade",
4327
+ sideEffect: true,
4328
+ executionOwner: "human",
4329
+ proof: { fields: ["status"] },
4330
+ done: doneWhenCompleted,
4331
+ defaultRequiresConfirmation: true,
4332
+ requiredCapability: "flow/block/execute",
4333
+ inputSchema: {
4334
+ type: "object",
4335
+ required: ["coreAddress"],
4336
+ additionalProperties: false,
4337
+ properties: {
4338
+ coreAddress: { type: "string", description: "DAO core contract address." },
4339
+ migrateVotingModule: { type: "boolean", description: "Also migrate the voting module (cw4 migrations bundle the required RemoveHook)." },
4340
+ skipCoreMigration: { type: "boolean", description: "Leave the core contract at its current version and only propose the module migrations." },
4341
+ title: { type: "string", description: "Proposal title voters see." },
4342
+ description: { type: "string", description: "Long-form proposal description voters see." }
4343
+ }
4344
+ },
4345
+ outputSchema: OUTPUT_SCHEMA,
4346
+ run: async (inputs, ctx) => {
4347
+ const handlers = ctx.handlers;
4348
+ if (!handlers) throw new Error("Handlers not available");
4349
+ if (!handlers.getDaoUpgradePlan || !handlers.executeTransaction || !handlers.createProposal) {
4350
+ throw new Error("DAO upgrade handlers not available on this host");
4351
+ }
4352
+ const coreAddress = String(inputs.coreAddress || "").trim();
4353
+ if (!coreAddress) throw new Error("coreAddress is required");
4354
+ const migrateVotingModule = isTrue2(inputs.migrateVotingModule);
4355
+ const plan = await handlers.getDaoUpgradePlan({ coreAddress, migrateVotingModule });
4356
+ const createdAt = (/* @__PURE__ */ new Date()).toISOString();
4357
+ const { migrated, skipped } = summarizePlan(plan);
4358
+ const blocking = plan.issues.filter((issue) => issue.severity === "blocking");
4359
+ if (blocking.length) throw new Error(blocking.map((issue) => issue.message).join(" "));
4360
+ const base = {
4361
+ coreAddress,
4362
+ targetVersion: plan.targetVersion,
4363
+ coreMigrated: "false",
4364
+ coreTransactionHash: "",
4365
+ proposalId: "",
4366
+ proposalContractAddress: "",
4367
+ proposalTitle: "",
4368
+ proposalDescription: "",
4369
+ migratedModules: migrated,
4370
+ skippedModules: skipped,
4371
+ createdAt
4372
+ };
4373
+ if (plan.isUpToDate) {
4374
+ return { output: { ...base, status: "up-to-date" } };
4375
+ }
4376
+ let coreTransactionHash = "";
4377
+ const coreStep = plan.messages.coreStep;
4378
+ if (coreStep && plan.canSignCore && !isTrue2(inputs.skipCoreMigration)) {
4379
+ const result = await handlers.executeTransaction({
4380
+ messages: [coreStep.message],
4381
+ memo: `Migrate DAO core ${coreAddress} to DAO DAO v${plan.targetVersion}`
4382
+ });
4383
+ coreTransactionHash = String(result?.transactionHash || "");
4384
+ if (!coreTransactionHash) throw new Error("The core migration returned no transaction hash \u2014 check the wallet and try again.");
4385
+ }
4386
+ const proposalStep = plan.messages.proposalStep;
4387
+ if (!proposalStep) {
4388
+ if (!coreTransactionHash) {
4389
+ throw new Error(plan.issues.map((issue) => issue.message).join(" ") || "Nothing in this upgrade can be executed by the connected wallet.");
4390
+ }
4391
+ return { output: { ...base, status: "core-migrated", coreMigrated: "true", coreTransactionHash } };
4392
+ }
4393
+ const title = String(inputs.title || "").trim() || proposalStep.title;
4394
+ const description = String(inputs.description || "").trim() || proposalStep.description;
4395
+ const proposalId = await handlers.createProposal({
4396
+ preProposalContractAddress: plan.preProposalContractAddress,
4397
+ title,
4398
+ description,
4399
+ actions: proposalStep.actions,
4400
+ coreAddress,
4401
+ groupContractAddress: plan.groupContractAddress
4402
+ });
4403
+ if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
4404
+ throw new Error("Upgrade proposal creation returned no proposal id. Check the handler logs.");
4405
+ }
4406
+ const proposalContractAddress = String(plan.version.proposal?.address || "");
4407
+ const expectedOutput = {
4408
+ ...base,
4409
+ status: "proposal-executed",
4410
+ coreMigrated: coreTransactionHash ? "true" : "false",
4411
+ coreTransactionHash,
4412
+ proposalId: String(proposalId),
4413
+ proposalContractAddress,
4414
+ proposalTitle: title,
4415
+ proposalDescription: description
4416
+ };
4417
+ return {
4418
+ output: { ...expectedOutput, status: "proposal-open" },
4419
+ completion: {
4420
+ state: "awaiting_readback",
4421
+ readBack: {
4422
+ kind: GROUP_PROPOSAL_READBACK_KIND,
4423
+ proposalId: String(proposalId),
4424
+ proposalContractAddress,
4425
+ coreAddress,
4426
+ expectedOutput
4427
+ }
4428
+ },
4429
+ topicRecords: ctx.topic ? [
4430
+ {
4431
+ type: "org.ixo.topic.proposal-receipt",
4432
+ id: sha256Digest({ topicId: ctx.topic.topicId, proposalContractAddress, proposalId }),
4433
+ version: 1,
4434
+ value: {
4435
+ event: "created",
4436
+ actionType: "qi/governance.dao.upgrade",
4437
+ proposalId: String(proposalId),
4438
+ proposalContractAddress,
4439
+ coreAddress,
4440
+ proposalTitle: title,
4441
+ proposalDescriptionDigest: sha256Digest(description),
4442
+ createdAt
4443
+ }
4444
+ }
4445
+ ] : void 0
4446
+ };
4447
+ }
4448
+ });
4449
+
4450
+ // src/core/lib/actionRegistry/actions/governance/veto.ts
4451
+ registerAction({
4452
+ type: "qi/governance.veto",
4453
+ can: "governance/veto",
4454
+ sideEffect: true,
4455
+ executionOwner: "human",
4456
+ proof: { fields: ["transactionHash"] },
4457
+ done: doneWhenCompleted,
4458
+ defaultRequiresConfirmation: true,
4459
+ requiredCapability: "flow/block/execute",
4460
+ inputSchema: {
4461
+ type: "object",
4462
+ required: ["coreAddress", "proposalId"],
4463
+ additionalProperties: false,
4464
+ properties: {
4465
+ coreAddress: { type: "string", description: "DAO core contract address." },
4466
+ proposalId: { type: ["string", "number"], description: "The proposal to veto." }
4467
+ }
4468
+ },
4469
+ outputSchema: [
4470
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the veto transaction" },
4471
+ { path: "proposalId", displayName: "Proposal ID", type: "string", description: "The vetoed proposal" },
4472
+ { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the veto was sent to" },
4473
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4474
+ { path: "status", displayName: "Proposal Status", type: "string", description: "'vetoed' once the veto transaction landed" },
4475
+ { path: "vetoedAt", displayName: "Vetoed At", type: "string", description: "ISO timestamp of the veto" }
4476
+ ],
4477
+ run: async (inputs, ctx) => {
4478
+ const handlers = ctx.handlers;
4479
+ if (!handlers) throw new Error("Handlers not available");
4480
+ if (!handlers.getProposalContractAddress || !handlers.vetoProposal) throw new Error("Veto handlers not available on this host");
4481
+ const coreAddress = String(inputs.coreAddress || "").trim();
4482
+ if (!coreAddress) throw new Error("coreAddress is required");
4483
+ const proposalId = Number(inputs.proposalId);
4484
+ if (!Number.isInteger(proposalId) || proposalId <= 0) throw new Error("proposalId must be a positive whole number");
4485
+ const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
4486
+ if (!proposalContractAddress) throw new Error(`No proposal module found for ${coreAddress}`);
4487
+ const { transactionHash } = await handlers.vetoProposal({ proposalContractAddress, proposalId });
4488
+ if (!transactionHash) throw new Error("The veto returned no transaction hash. Check the handler logs.");
4489
+ return {
4490
+ output: {
4491
+ transactionHash,
4492
+ proposalId: String(proposalId),
4493
+ proposalContractAddress,
4494
+ coreAddress,
4495
+ status: "vetoed",
4496
+ vetoedAt: (/* @__PURE__ */ new Date()).toISOString()
4497
+ }
4498
+ };
4499
+ }
4500
+ });
4501
+
4502
+ // src/core/lib/actionRegistry/actions/governance/daoPause.ts
4503
+ registerGovernanceProposalAction({
4504
+ type: "qi/governance.dao.pause",
4505
+ can: "governance/dao-pause",
4506
+ buildActions: (inputs) => {
4507
+ const coreAddress = String(inputs.coreAddress || "").trim();
4508
+ if (!coreAddress) throw new Error("coreAddress is required");
4509
+ const hours = Number(inputs.pauseHours);
4510
+ if (!Number.isFinite(hours) || hours <= 0) throw new Error("pauseHours must be a positive number of hours");
4511
+ const seconds = Math.round(hours * 3600);
4512
+ return [{ type: "Execute", data: { address: coreAddress, message: JSON.stringify({ pause: { duration: { time: seconds } } }), funds: [] } }];
4513
+ },
4514
+ defaultTitle: (inputs) => `Pause the group for ${Number(inputs.pauseHours) || "?"} hours`,
4515
+ defaultDescription: () => "Once this proposal passes the group executes nothing until the pause ends; proposing and voting continue.",
4516
+ buildExtraOutput: (inputs) => ({ pauseSeconds: String(Math.round((Number(inputs.pauseHours) || 0) * 3600)) }),
4517
+ extraOutputSchema: [{ path: "pauseSeconds", displayName: "Pause Seconds", type: "string", description: "The pause duration submitted, in seconds" }]
4518
+ });
4519
+
4520
+ // src/core/lib/actionRegistry/actions/governance/daoUnpause.ts
4521
+ registerAction({
4522
+ type: "qi/governance.dao.unpause",
4523
+ can: "governance/dao-unpause",
4524
+ sideEffect: true,
4525
+ executionOwner: "human",
4526
+ proof: { fields: ["transactionHash"] },
4527
+ done: doneWhenCompleted,
4528
+ defaultRequiresConfirmation: true,
4529
+ requiredCapability: "flow/block/execute",
4530
+ inputSchema: {
4531
+ type: "object",
4532
+ required: ["coreAddress"],
4533
+ additionalProperties: false,
4534
+ properties: {
4535
+ coreAddress: { type: "string", description: "DAO core contract address." }
4536
+ }
4537
+ },
4538
+ outputSchema: [
4539
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the unpause transaction" },
4540
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4541
+ { path: "unpausedAt", displayName: "Unpaused At", type: "string", description: "ISO timestamp of the unpause" }
4542
+ ],
4543
+ run: async (inputs, ctx) => {
4544
+ const handlers = ctx.handlers;
4545
+ if (!handlers) throw new Error("Handlers not available");
4546
+ if (!handlers.unpauseDao) throw new Error("Unpause handler not available on this host");
4547
+ const coreAddress = String(inputs.coreAddress || "").trim();
4548
+ if (!coreAddress) throw new Error("coreAddress is required");
4549
+ const { transactionHash } = await handlers.unpauseDao({ coreAddress });
4550
+ if (!transactionHash) throw new Error("The unpause returned no transaction hash. Check the handler logs.");
4551
+ return { output: { transactionHash, coreAddress, unpausedAt: (/* @__PURE__ */ new Date()).toISOString() } };
4552
+ }
4553
+ });
4554
+
4555
+ // src/core/lib/actionRegistry/actions/governance/nftActiveThreshold.ts
4556
+ registerGovernanceProposalAction({
4557
+ type: "qi/governance.nft.active-threshold",
4558
+ can: "governance/nft-active-threshold",
4559
+ buildActions: (inputs) => {
4560
+ const thresholdType = String(inputs.thresholdType || "none").trim();
4561
+ if (!["none", "count", "percent"].includes(thresholdType)) throw new Error("thresholdType must be 'none', 'count' or 'percent'");
4562
+ const value = Number(inputs.thresholdValue);
4563
+ if (thresholdType === "count" && (!Number.isInteger(value) || value <= 0)) throw new Error("thresholdValue must be a whole number greater than 0 for a count threshold");
4564
+ if (thresholdType === "percent" && (!Number.isFinite(value) || value <= 0 || value > 100))
4565
+ throw new Error("thresholdValue must be between 0 and 100 for a percentage threshold");
4566
+ return [{ type: "UpdateActiveThreshold", data: thresholdType === "none" ? { thresholdType } : { thresholdType, thresholdValue: value } }];
4567
+ },
4568
+ defaultTitle: (inputs) => String(inputs.thresholdType || "none") === "none" ? "Remove the active threshold" : `Set the active threshold to ${inputs.thresholdValue}${String(inputs.thresholdType) === "percent" ? "%" : " staked"}`,
4569
+ defaultDescription: () => "Changes how much of the collection must be staked before this group accepts new proposals.",
4570
+ buildExtraOutput: (inputs) => ({ thresholdType: String(inputs.thresholdType || "none"), thresholdValue: String(inputs.thresholdValue ?? "") }),
4571
+ extraOutputSchema: [
4572
+ { path: "thresholdType", displayName: "Threshold Type", type: "string", description: "none, count or percent" },
4573
+ { path: "thresholdValue", displayName: "Threshold Value", type: "string", description: "The submitted count or percentage" }
4574
+ ]
4575
+ });
4576
+
4577
+ // src/core/lib/actionRegistry/actions/governance/delegationSetup.ts
4578
+ registerGovernanceProposalAction({
4579
+ type: "qi/governance.delegation.setup",
4580
+ can: "governance/delegation-setup",
4581
+ buildActions: (inputs) => {
4582
+ const optional = (value, label, max) => {
4583
+ if (value === void 0 || value === null || value === "") return null;
4584
+ const n = Number(value);
4585
+ if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max)
4586
+ throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
4587
+ return n;
4588
+ };
4589
+ const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
4590
+ const validityBlocks = optional(inputs.validityBlocks, "validityBlocks");
4591
+ const maxDelegations = optional(inputs.maxDelegations, "maxDelegations");
4592
+ return [{ type: "DelegationSetup", data: { vpCapPercent, validityBlocks, maxDelegations } }];
4593
+ },
4594
+ defaultTitle: () => "Enable vote delegation",
4595
+ defaultDescription: () => "Members will be able to delegate a share of their voting power to registered delegates; delegators can still vote themselves, which overrides the delegate for that proposal.",
4596
+ buildExtraOutput: (inputs) => ({
4597
+ vpCapPercent: String(inputs.vpCapPercent ?? ""),
4598
+ validityBlocks: String(inputs.validityBlocks ?? ""),
4599
+ maxDelegations: String(inputs.maxDelegations ?? "")
4600
+ }),
4601
+ extraOutputSchema: [
4602
+ { path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
4603
+ { path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
4604
+ { path: "maxDelegations", displayName: "Max Delegations", type: "string", description: "The submitted per-member delegation limit" }
4605
+ ]
4606
+ });
4607
+
4608
+ // src/core/lib/actionRegistry/actions/governance/delegation.ts
4609
+ var KINDS = [
4610
+ { type: "qi/governance.delegation.register", can: "governance/delegation-register", action: "register", needsDelegate: false, needsPercent: false },
4611
+ { type: "qi/governance.delegation.unregister", can: "governance/delegation-unregister", action: "unregister", needsDelegate: false, needsPercent: false },
4612
+ { type: "qi/governance.delegation.delegate", can: "governance/delegation-delegate", action: "delegate", needsDelegate: true, needsPercent: true },
4613
+ { type: "qi/governance.delegation.undelegate", can: "governance/delegation-undelegate", action: "undelegate", needsDelegate: true, needsPercent: false }
4614
+ ];
4615
+ for (const kind of KINDS) {
4616
+ registerAction({
4617
+ type: kind.type,
4618
+ can: kind.can,
4619
+ sideEffect: true,
4620
+ executionOwner: "human",
4621
+ proof: { fields: ["transactionHash"] },
4622
+ done: doneWhenCompleted,
4623
+ defaultRequiresConfirmation: true,
4624
+ requiredCapability: "flow/block/execute",
4625
+ inputSchema: {
4626
+ type: "object",
4627
+ required: ["coreAddress", ...kind.needsDelegate ? ["delegate"] : [], ...kind.needsPercent ? ["percent"] : []],
4628
+ additionalProperties: false,
4629
+ properties: {
4630
+ coreAddress: { type: "string", description: "DAO core contract address." },
4631
+ ...kind.needsDelegate ? { delegate: { type: "string", description: "The delegate's address or DID." } } : {},
4632
+ ...kind.needsPercent ? { percent: { type: ["number", "string"], description: "Share of your voting power to delegate, 0\u2013100." } } : {}
4633
+ }
4634
+ },
4635
+ outputSchema: [
4636
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the delegation transaction" },
4637
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4638
+ { path: "delegationModuleAddress", displayName: "Delegation Module", type: "string", description: "The dao_vote_delegation contract" },
4639
+ { path: "action", displayName: "Action", type: "string", description: "register | unregister | delegate | undelegate" },
4640
+ { path: "delegate", displayName: "Delegate", type: "string", description: "The delegate involved, when any" },
4641
+ { path: "percent", displayName: "Percent", type: "string", description: "The delegated share, when any" }
4642
+ ],
4643
+ run: async (inputs, ctx) => {
4644
+ const handlers = ctx.handlers;
4645
+ if (!handlers) throw new Error("Handlers not available");
4646
+ if (!handlers.delegationExecute) throw new Error("Delegation handlers not available on this host");
4647
+ const coreAddress = String(inputs.coreAddress || "").trim();
4648
+ if (!coreAddress) throw new Error("coreAddress is required");
4649
+ const delegate = String(inputs.delegate || "").trim();
4650
+ if (kind.needsDelegate && !delegate) throw new Error("delegate is required");
4651
+ const percent = kind.needsPercent ? Number(inputs.percent) : void 0;
4652
+ if (kind.needsPercent && (!Number.isFinite(percent) || percent <= 0 || percent > 100)) throw new Error("percent must be between 0 and 100");
4653
+ const { transactionHash, delegationModuleAddress } = await handlers.delegationExecute({
4654
+ coreAddress,
4655
+ action: kind.action,
4656
+ ...kind.needsDelegate ? { delegate } : {},
4657
+ ...kind.needsPercent ? { percent } : {}
4658
+ });
4659
+ if (!transactionHash) throw new Error("The delegation transaction returned no hash. Check the handler logs.");
4660
+ return {
4661
+ output: {
4662
+ transactionHash,
4663
+ coreAddress,
4664
+ delegationModuleAddress,
4665
+ action: kind.action,
4666
+ ...kind.needsDelegate ? { delegate } : {},
4667
+ ...kind.needsPercent ? { percent: String(percent) } : {}
4668
+ }
4669
+ };
4670
+ }
4671
+ });
4672
+ }
4673
+
4674
+ // src/core/lib/actionRegistry/actions/governance/rewards.ts
4675
+ registerGovernanceProposalAction({
4676
+ type: "qi/governance.rewards.create",
4677
+ can: "governance/rewards-create",
4678
+ buildActions: (inputs) => {
4679
+ const denomType = String(inputs.denomType || "native");
4680
+ if (denomType !== "native" && denomType !== "cw20") throw new Error("denomType must be 'native' or 'cw20'");
4681
+ const denom = String(inputs.denom || "").trim();
4682
+ if (!denom) throw new Error("denom is required");
4683
+ const emissionMode = String(inputs.emissionMode || "linear");
4684
+ if (!["linear", "immediate", "paused"].includes(emissionMode)) throw new Error("emissionMode must be 'linear', 'immediate' or 'paused'");
4685
+ const amount = inputs.amount === void 0 || inputs.amount === null || inputs.amount === "" ? null : String(inputs.amount);
4686
+ const periodSeconds = inputs.periodSeconds === void 0 || inputs.periodSeconds === null || inputs.periodSeconds === "" ? null : Number(inputs.periodSeconds);
4687
+ if (emissionMode === "linear") {
4688
+ if (!amount || !/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0 for a linear emission");
4689
+ if (!Number.isInteger(periodSeconds) || periodSeconds <= 0) throw new Error("periodSeconds must be a whole number greater than 0 for a linear emission");
4690
+ }
4691
+ const bool2 = (v) => v === void 0 || v === null || v === "" ? null : v === true || v === "true";
4692
+ return [
4693
+ {
4694
+ type: "RewardsCreate",
4695
+ data: {
4696
+ denomType,
4697
+ denom,
4698
+ emissionMode,
4699
+ amount,
4700
+ periodSeconds,
4701
+ continuous: bool2(inputs.continuous),
4702
+ openFunding: bool2(inputs.openFunding),
4703
+ withdrawDestination: inputs.withdrawDestination ? String(inputs.withdrawDestination) : null
4704
+ }
4705
+ }
4706
+ ];
4707
+ },
4708
+ defaultTitle: (inputs) => `Create a ${String(inputs.denom || "")} reward distribution`,
4709
+ defaultDescription: () => "Members share the rewards in proportion to their voting power.",
4710
+ buildExtraOutput: (inputs) => ({ denom: String(inputs.denom || ""), emissionMode: String(inputs.emissionMode || "linear") }),
4711
+ extraOutputSchema: [
4712
+ { path: "denom", displayName: "Denom", type: "string", description: "The reward denom" },
4713
+ { path: "emissionMode", displayName: "Emission", type: "string", description: "linear | immediate | paused" }
4714
+ ]
4715
+ });
4716
+ var requireId = (value) => {
4717
+ const id = Number(value);
4718
+ if (!Number.isInteger(id) || id < 0) throw new Error("distributionId must be a whole number");
4719
+ return id;
4720
+ };
4721
+ registerGovernanceProposalAction({
4722
+ type: "qi/governance.rewards.fund",
4723
+ can: "governance/rewards-fund",
4724
+ buildActions: (inputs) => {
4725
+ const id = requireId(inputs.distributionId);
4726
+ const amount = String(inputs.amount ?? "").trim();
4727
+ if (!/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0");
4728
+ return [{ type: "RewardsFund", data: { id, amount } }];
4729
+ },
4730
+ defaultTitle: (inputs) => `Fund reward distribution #${String(inputs.distributionId ?? "")}`,
4731
+ defaultDescription: () => "Moves funds from the treasury into the reward distribution.",
4732
+ buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? ""), amount: String(inputs.amount ?? "") }),
4733
+ extraOutputSchema: [
4734
+ { path: "distributionId", displayName: "Distribution", type: "string", description: "The funded distribution id" },
4735
+ { path: "amount", displayName: "Amount", type: "string", description: "Base units funded" }
4736
+ ]
4737
+ });
4738
+ registerGovernanceProposalAction({
4739
+ type: "qi/governance.rewards.withdraw",
4740
+ can: "governance/rewards-withdraw",
4741
+ buildActions: (inputs) => [{ type: "RewardsWithdraw", data: { id: requireId(inputs.distributionId) } }],
4742
+ defaultTitle: (inputs) => `Withdraw undistributed rewards from #${String(inputs.distributionId ?? "")}`,
4743
+ defaultDescription: () => "Returns funds that were not yet distributed to the withdraw destination.",
4744
+ buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? "") }),
4745
+ extraOutputSchema: [{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution withdrawn from" }]
4746
+ });
4747
+ registerAction({
4748
+ type: "qi/governance.rewards.claim",
4749
+ can: "governance/rewards-claim",
4750
+ sideEffect: true,
4751
+ executionOwner: "human",
4752
+ proof: { fields: ["transactionHash"] },
4753
+ done: doneWhenCompleted,
4754
+ defaultRequiresConfirmation: true,
4755
+ requiredCapability: "flow/block/execute",
4756
+ inputSchema: {
4757
+ type: "object",
4758
+ required: ["coreAddress", "distributionId"],
4759
+ additionalProperties: false,
4760
+ properties: {
4761
+ coreAddress: { type: "string", description: "DAO core contract address." },
4762
+ distributionId: { type: ["number", "string"], description: "The distribution to claim from." }
4763
+ }
4764
+ },
4765
+ outputSchema: [
4766
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the claim transaction" },
4767
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4768
+ { path: "distributorAddress", displayName: "Distributor", type: "string", description: "The dao_rewards_distributor contract" },
4769
+ { path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution claimed from" }
4770
+ ],
4771
+ run: async (inputs, ctx) => {
4772
+ const handlers = ctx.handlers;
4773
+ if (!handlers) throw new Error("Handlers not available");
4774
+ if (!handlers.rewardsClaim) throw new Error("Rewards handlers not available on this host");
4775
+ const coreAddress = String(inputs.coreAddress || "").trim();
4776
+ if (!coreAddress) throw new Error("coreAddress is required");
4777
+ const id = requireId(inputs.distributionId);
4778
+ const { transactionHash, distributorAddress } = await handlers.rewardsClaim({ coreAddress, id });
4779
+ if (!transactionHash) throw new Error("The claim returned no transaction hash. Check the handler logs.");
4780
+ return { output: { transactionHash, coreAddress, distributorAddress, distributionId: String(id) } };
4781
+ }
4782
+ });
4783
+
4784
+ // src/core/lib/actionRegistry/actions/governance/approval.ts
4785
+ var optionalNumber = (value, label, max) => {
4786
+ if (value === void 0 || value === null || value === "") return null;
4787
+ const n = Number(value);
4788
+ if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
4789
+ return n;
4790
+ };
4791
+ var bool = (v) => v === void 0 || v === null || v === "" ? void 0 : v === true || v === "true";
4792
+ registerGovernanceProposalAction({
4793
+ type: "qi/governance.proposal-module.add",
4794
+ can: "governance/proposal-module-add",
4795
+ buildActions: (inputs) => {
4796
+ const kind = String(inputs.kind || "single");
4797
+ if (kind !== "single" && kind !== "multiple") throw new Error("kind must be 'single' or 'multiple'");
4798
+ const votingPeriodSeconds = Number(inputs.votingPeriodSeconds);
4799
+ if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
4800
+ const approvalRequired = bool(inputs.approvalRequired) === true;
4801
+ const approver = String(inputs.approver || "").trim();
4802
+ if (approvalRequired && !approver) throw new Error("approver is required when approvalRequired is on");
4803
+ const refund = String(inputs.depositRefundPolicy || "always");
4804
+ if (!["always", "only_passed", "never"].includes(refund)) throw new Error("depositRefundPolicy must be 'always', 'only_passed' or 'never'");
4805
+ return [
4806
+ {
4807
+ type: "AddProposalModule",
4808
+ data: {
4809
+ kind,
4810
+ approvalRequired,
4811
+ approver: approvalRequired ? approver : null,
4812
+ thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100),
4813
+ quorumPercent: optionalNumber(inputs.quorumPercent, "quorumPercent", 100),
4814
+ votingPeriodSeconds,
4815
+ allowRevoting: bool(inputs.allowRevoting) !== false,
4816
+ anyoneCanPropose: bool(inputs.anyoneCanPropose) === true,
4817
+ depositAmount: inputs.depositAmount ? String(inputs.depositAmount) : null,
4818
+ depositDenom: inputs.depositDenom ? String(inputs.depositDenom) : null,
4819
+ depositRefundPolicy: refund,
4820
+ label: inputs.label ? String(inputs.label) : void 0
4821
+ }
4822
+ }
4823
+ ];
4824
+ },
4825
+ defaultTitle: (inputs) => `Add a ${String(inputs.kind || "single") === "multiple" ? "multiple-choice" : "single-choice"} proposal module${bool(inputs.approvalRequired) ? " with approval" : ""}`,
4826
+ defaultDescription: () => "Proposals submitted to the new module follow its own voting rules.",
4827
+ buildExtraOutput: (inputs) => ({ kind: String(inputs.kind || "single"), approvalRequired: String(bool(inputs.approvalRequired) === true) }),
4828
+ extraOutputSchema: [
4829
+ { path: "kind", displayName: "Kind", type: "string", description: "single | multiple" },
4830
+ { path: "approvalRequired", displayName: "Approval Required", type: "string", description: "'true' when submissions wait for an approver" }
4831
+ ]
4832
+ });
4833
+ registerGovernanceProposalAction({
4834
+ type: "qi/governance.approver.setup",
4835
+ can: "governance/approver-setup",
4836
+ buildActions: (inputs) => {
4837
+ const approvalModule = String(inputs.approvalModule || "").trim();
4838
+ if (!approvalModule) throw new Error("approvalModule (the child POD's approval module address) is required");
4839
+ const votingPeriodSeconds = inputs.votingPeriodSeconds ? Number(inputs.votingPeriodSeconds) : 604800;
4840
+ if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
4841
+ return [{ type: "ApproverSetup", data: { approvalModule, votingPeriodSeconds, thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100) } }];
4842
+ },
4843
+ defaultTitle: (inputs) => `Become the approver for ${String(inputs.approvalModule || "")}`,
4844
+ defaultDescription: () => "Each submission on the child POD's approval module becomes an approve/reject proposal here.",
4845
+ buildExtraOutput: (inputs) => ({ approvalModule: String(inputs.approvalModule || "") }),
4846
+ extraOutputSchema: [{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The child POD's approval module" }]
4847
+ });
4848
+ registerAction({
4849
+ type: "qi/governance.approval.review",
4850
+ can: "governance/approval-review",
4851
+ sideEffect: true,
4852
+ executionOwner: "human",
4853
+ proof: { fields: ["transactionHash"] },
4854
+ done: doneWhenCompleted,
4855
+ defaultRequiresConfirmation: true,
4856
+ requiredCapability: "flow/block/execute",
4857
+ inputSchema: {
4858
+ type: "object",
4859
+ required: ["coreAddress", "approvalModule", "approvalId", "decision"],
4860
+ additionalProperties: false,
4861
+ properties: {
4862
+ coreAddress: { type: "string", description: "DAO core contract address." },
4863
+ approvalModule: { type: "string", description: "The approval pre-propose module holding the submission." },
4864
+ approvalId: { type: ["number", "string"], description: "The submission id." },
4865
+ decision: { type: "string", enum: ["approve", "reject"], description: "approve | reject" }
4866
+ }
4867
+ },
4868
+ outputSchema: [
4869
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the review transaction" },
4870
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4871
+ { path: "approvalModule", displayName: "Approval Module", type: "string", description: "The approval module" },
4872
+ { path: "approvalId", displayName: "Submission", type: "string", description: "The reviewed submission id" },
4873
+ { path: "decision", displayName: "Decision", type: "string", description: "approve | reject" }
4874
+ ],
4875
+ run: async (inputs, ctx) => {
4876
+ const handlers = ctx.handlers;
4877
+ if (!handlers) throw new Error("Handlers not available");
4878
+ if (!handlers.reviewSubmission) throw new Error("Approval handlers not available on this host");
4879
+ const coreAddress = String(inputs.coreAddress || "").trim();
4880
+ if (!coreAddress) throw new Error("coreAddress is required");
4881
+ const approvalModule = String(inputs.approvalModule || "").trim();
4882
+ if (!approvalModule) throw new Error("approvalModule is required");
4883
+ const approvalId = Number(inputs.approvalId);
4884
+ if (!Number.isInteger(approvalId) || approvalId < 0) throw new Error("approvalId must be a whole number");
4885
+ const decision = String(inputs.decision);
4886
+ if (decision !== "approve" && decision !== "reject") throw new Error("decision must be 'approve' or 'reject'");
4887
+ const { transactionHash } = await handlers.reviewSubmission({ approvalModule, approvalId, decision });
4888
+ if (!transactionHash) throw new Error("The review returned no transaction hash. Check the handler logs.");
4889
+ return { output: { transactionHash, coreAddress, approvalModule, approvalId: String(approvalId), decision } };
4890
+ }
4891
+ });
4892
+ function parseOptions(value) {
4893
+ if (Array.isArray(value))
4894
+ return value.map(
4895
+ (o) => typeof o === "string" ? { title: o } : { title: String(o?.title ?? ""), description: o?.description ? String(o.description) : void 0 }
4896
+ );
4897
+ const text = String(value ?? "").trim();
4898
+ if (!text) return [];
4899
+ if (text.startsWith("[")) {
4900
+ try {
4901
+ return parseOptions(JSON.parse(text));
4902
+ } catch {
4903
+ throw new Error("options must be a JSON array of { title, description } or one option per line");
4904
+ }
4905
+ }
4906
+ return text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((line) => {
4907
+ const [title, ...rest] = line.split(/\s+[-–—]\s+|:\s+/);
4908
+ return { title: title.trim(), description: rest.length ? rest.join(" ").trim() : void 0 };
4909
+ });
4910
+ }
4911
+ registerAction({
4912
+ type: "qi/governance.proposal.create-multiple",
4913
+ can: "governance/proposal-create-multiple",
4914
+ sideEffect: true,
4915
+ executionOwner: "human",
4916
+ proof: { fields: ["transactionHash"] },
4917
+ done: doneWhenCompleted,
4918
+ defaultRequiresConfirmation: true,
4919
+ requiredCapability: "flow/block/execute",
4920
+ inputSchema: {
4921
+ type: "object",
4922
+ required: ["coreAddress", "title", "options"],
4923
+ additionalProperties: false,
4924
+ properties: {
4925
+ coreAddress: { type: "string", description: "DAO core contract address." },
4926
+ proposalModule: { type: "string", description: "The multiple-choice proposal module; blank = the first one on the POD." },
4927
+ title: { type: "string", description: "Proposal title." },
4928
+ description: { type: "string", description: "Proposal description." },
4929
+ options: { type: ["array", "string"], description: 'JSON array of { title, description }, or one option per line ("Title - description").' }
4930
+ }
4931
+ },
4932
+ outputSchema: [
4933
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the propose transaction" },
4934
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
4935
+ { path: "proposalModule", displayName: "Proposal Module", type: "string", description: "The multiple-choice module the proposal went to" },
4936
+ { path: "optionCount", displayName: "Options", type: "string", description: "Number of options submitted" }
4937
+ ],
4938
+ run: async (inputs, ctx) => {
4939
+ const handlers = ctx.handlers;
4940
+ if (!handlers) throw new Error("Handlers not available");
4941
+ if (!handlers.createMultipleChoiceProposal) throw new Error("Multiple-choice proposal handler not available on this host");
4942
+ const coreAddress = String(inputs.coreAddress || "").trim();
4943
+ if (!coreAddress) throw new Error("coreAddress is required");
4944
+ const title = String(inputs.title || "").trim();
4945
+ if (!title) throw new Error("title is required");
4946
+ const options = parseOptions(inputs.options).filter((o) => o.title);
4947
+ if (options.length < 2) throw new Error("At least two options are required");
4948
+ if (options.length > 10) throw new Error("At most 10 options are allowed");
4949
+ const { transactionHash, proposalModule } = await handlers.createMultipleChoiceProposal({
4950
+ coreAddress,
4951
+ proposalModule: inputs.proposalModule ? String(inputs.proposalModule) : void 0,
4952
+ title,
4953
+ description: String(inputs.description || ""),
4954
+ options
4955
+ });
4956
+ if (!transactionHash) throw new Error("The proposal returned no transaction hash. Check the handler logs.");
4957
+ return { output: { transactionHash, coreAddress, proposalModule, optionCount: String(options.length) } };
4958
+ }
4959
+ });
4960
+
4041
4961
  // src/core/lib/actionRegistry/actions/governance/nftBurn.ts
4042
4962
  registerGovernanceProposalAction({
4043
4963
  type: "qi/governance.nft.burn",
@@ -4383,7 +5303,7 @@ var INPUT_PROPERTIES = {
4383
5303
  headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
4384
5304
  body: { description: "Request body for a mutating HTTP request." }
4385
5305
  };
4386
- var OUTPUT_SCHEMA = [
5306
+ var OUTPUT_SCHEMA2 = [
4387
5307
  { path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
4388
5308
  { path: "status", displayName: "HTTP Status", type: "number" },
4389
5309
  { path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
@@ -4438,7 +5358,7 @@ registerAction({
4438
5358
  properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
4439
5359
  },
4440
5360
  getMissingInputs: missingEndpoint,
4441
- outputSchema: OUTPUT_SCHEMA,
5361
+ outputSchema: OUTPUT_SCHEMA2,
4442
5362
  run: async (rawInputs, ctx) => {
4443
5363
  const inputs = normalizeHttpInputs(rawInputs);
4444
5364
  const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
@@ -4509,7 +5429,7 @@ registerAction({
4509
5429
  }
4510
5430
  },
4511
5431
  getMissingInputs: missingEndpoint,
4512
- outputSchema: OUTPUT_SCHEMA,
5432
+ outputSchema: OUTPUT_SCHEMA2,
4513
5433
  run: async (rawInputs, ctx) => {
4514
5434
  const inputs = normalizeHttpInputs(rawInputs);
4515
5435
  const service = ctx.services.http;
@@ -4937,60 +5857,6 @@ registerAction({
4937
5857
  }
4938
5858
  });
4939
5859
 
4940
- // src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
4941
- var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
4942
- function isGroupExecution(inputs) {
4943
- return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
4944
- }
4945
- function requireGroupExecutionParams(inputs) {
4946
- const coreAddress = String(inputs.groupCoreAddress || "").trim();
4947
- if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
4948
- const title = String(inputs.proposalTitle || "").trim();
4949
- if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
4950
- const description = String(inputs.proposalDescription || "").trim();
4951
- if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
4952
- return { coreAddress, title, description };
4953
- }
4954
- async function proposeGroupExecution(ctx, params) {
4955
- const handlers = ctx.handlers;
4956
- if (!handlers?.createGroupExecutionProposal) {
4957
- throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
4958
- }
4959
- const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
4960
- const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
4961
- coreAddress,
4962
- title,
4963
- description,
4964
- msgs
4965
- });
4966
- if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
4967
- throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
4968
- }
4969
- return {
4970
- output: {
4971
- ...expectedOutput,
4972
- groupExecution: true,
4973
- groupCoreAddress: coreAddress,
4974
- groupProposalId: String(proposalId),
4975
- groupProposalContractAddress: String(proposalContractAddress || ""),
4976
- proposalTitle: title,
4977
- proposalDescription: description
4978
- },
4979
- completion: {
4980
- state: "awaiting_readback",
4981
- readBack: {
4982
- kind: GROUP_PROPOSAL_READBACK_KIND,
4983
- proposalId: String(proposalId),
4984
- proposalContractAddress: String(proposalContractAddress || ""),
4985
- coreAddress,
4986
- expectedOutput,
4987
- ...completionEvent ? { completionEvent } : {},
4988
- ...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
4989
- }
4990
- }
4991
- };
4992
- }
4993
-
4994
5860
  // src/core/lib/actionRegistry/actions/bid/bid.ts
4995
5861
  function normalizeBidRole(role) {
4996
5862
  const normalized = String(role || "").trim().toLowerCase();
@@ -5048,6 +5914,7 @@ registerAction({
5048
5914
  if (isGroupExecution(inputs)) {
5049
5915
  const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
5050
5916
  return proposeGroupExecution(ctx, {
5917
+ autoVote: autoVoteFromInputs(inputs),
5051
5918
  coreAddress,
5052
5919
  title,
5053
5920
  description,
@@ -5212,6 +6079,7 @@ registerAction({
5212
6079
  maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
5213
6080
  });
5214
6081
  return proposeGroupExecution(ctx, {
6082
+ autoVote: autoVoteFromInputs(inputs),
5215
6083
  coreAddress,
5216
6084
  title,
5217
6085
  description,
@@ -5224,6 +6092,7 @@ registerAction({
5224
6092
  const reason = String(inputs.reason || "").trim();
5225
6093
  if (!reason) throw new Error("reason is required when decision is reject");
5226
6094
  return proposeGroupExecution(ctx, {
6095
+ autoVote: autoVoteFromInputs(inputs),
5227
6096
  coreAddress,
5228
6097
  title,
5229
6098
  description,
@@ -5424,6 +6293,7 @@ registerAction({
5424
6293
  const claimId2 = String(prepared?.claimId || "").trim();
5425
6294
  if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
5426
6295
  return proposeGroupExecution(ctx, {
6296
+ autoVote: autoVoteFromInputs(inputs),
5427
6297
  coreAddress,
5428
6298
  title,
5429
6299
  description,
@@ -5599,6 +6469,9 @@ registerAction({
5599
6469
  // the full vocabulary (e.g. returning [] to hide the static baseline).
5600
6470
  dynamicResolutionMode: "replace",
5601
6471
  proof: { fields: ["claimId"] },
6472
+ // The pending-work snapshot `done` folds over is refreshed on the completed
6473
+ // step by the flow detail and by completion reconciliation.
6474
+ mutableOutputPaths: ["pendingClaimCount", "pendingCheckedAt", "collectionClosed"],
5602
6475
  done: evaluateClaimDone,
5603
6476
  // Repeatable: an evaluator processes many claims over the flow's life. Done
5604
6477
  // is a snapshot ("no pending claims as of the last check") that reopens when
@@ -5808,6 +6681,7 @@ registerAction({
5808
6681
  } catch {
5809
6682
  }
5810
6683
  return proposeGroupExecution(ctx, {
6684
+ autoVote: autoVoteFromInputs(inputs),
5811
6685
  coreAddress,
5812
6686
  title,
5813
6687
  description,
@@ -5975,6 +6849,9 @@ registerAction({
5975
6849
  can: "proposal/create",
5976
6850
  sideEffect: true,
5977
6851
  proof: { fields: ["proposalId"] },
6852
+ // The flow detail syncs the on-chain status (and, once executed, the
6853
+ // proposal module address) into the completed step's output.
6854
+ mutableOutputPaths: ["status", "proposalContractAddress"],
5978
6855
  done: doneWhenCompleted,
5979
6856
  defaultRequiresConfirmation: true,
5980
6857
  requiredCapability: "flow/block/execute",
@@ -5985,7 +6862,12 @@ registerAction({
5985
6862
  coreAddress: { type: "string", description: "The DAO core contract address." },
5986
6863
  title: { type: "string", description: "The proposal title." },
5987
6864
  description: { type: "string", description: "The proposal description." },
5988
- actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." }
6865
+ actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." },
6866
+ voteOnSubmission: {
6867
+ type: "string",
6868
+ enum: ["", "yes", "no", "abstain"],
6869
+ description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
6870
+ }
5989
6871
  }
5990
6872
  },
5991
6873
  outputSchema: [
@@ -6030,13 +6912,15 @@ registerAction({
6030
6912
  const { proposalContractAddress } = await handlers.getProposalContractAddress({
6031
6913
  coreAddress
6032
6914
  });
6915
+ const autoVote = autoVoteFromInputs(inputs);
6033
6916
  const params = {
6034
6917
  preProposalContractAddress,
6035
6918
  title,
6036
6919
  description,
6037
6920
  actions: actions.length > 0 ? actions : void 0,
6038
6921
  coreAddress,
6039
- groupContractAddress
6922
+ groupContractAddress,
6923
+ ...autoVote ? { autoVote } : {}
6040
6924
  };
6041
6925
  const proposalId = await handlers.createProposal(params);
6042
6926
  return {
@@ -6840,14 +7724,14 @@ registerAction({
6840
7724
  { path: "sentAt", displayName: "Sent At", type: "string", description: "Timestamp when the message was sent" }
6841
7725
  ],
6842
7726
  run: async (inputs, ctx) => {
6843
- const matrixClient = ctx.editor?.getMatrixClient?.();
6844
- if (!matrixClient) {
6845
- throw new Error("Matrix client not available");
6846
- }
6847
7727
  const targetDid = String(inputs.targetDid || "").trim();
6848
7728
  const message = String(inputs.message || "").trim();
6849
7729
  if (!targetDid) throw new Error("Recipient DID is required");
6850
7730
  if (!message) throw new Error("Message is required");
7731
+ const matrixClient = ctx.editor?.getMatrixClient?.();
7732
+ if (!matrixClient) {
7733
+ throw new ActionEffectNotStartedError("Matrix client not available");
7734
+ }
6851
7735
  const result = await sendDirectMessage(matrixClient, targetDid, message);
6852
7736
  return {
6853
7737
  output: {
@@ -8211,6 +9095,7 @@ registerAction({
8211
9095
  params: createParams
8212
9096
  });
8213
9097
  return proposeGroupExecution(ctx, {
9098
+ autoVote: autoVoteFromInputs(inputs),
8214
9099
  coreAddress,
8215
9100
  title,
8216
9101
  description,
@@ -8279,6 +9164,7 @@ registerAction({
8279
9164
  params: { ...inputs, collectionId, adminAddress }
8280
9165
  });
8281
9166
  return proposeGroupExecution(ctx, {
9167
+ autoVote: autoVoteFromInputs(inputs),
8282
9168
  coreAddress,
8283
9169
  title,
8284
9170
  description,
@@ -8651,6 +9537,7 @@ registerAction({
8651
9537
  msgs.push(...prepared.msgs || []);
8652
9538
  }
8653
9539
  return proposeGroupExecution(ctx, {
9540
+ autoVote: autoVoteFromInputs(inputs),
8654
9541
  coreAddress,
8655
9542
  title,
8656
9543
  description,
@@ -9565,6 +10452,7 @@ registerAction({
9565
10452
 
9566
10453
  // src/core/lib/actionRegistry/actions/decisionRequest/index.ts
9567
10454
  var DECISION_REQUEST_ACTION_TYPE = "qi/decision.request";
10455
+ var DECISION_DECIDING_STATUS = "deciding";
9568
10456
  var DECISION_REQUEST_ERROR_CODES = {
9569
10457
  paymentRequired: "payment_required",
9570
10458
  pending: "decision_pending",
@@ -9602,7 +10490,12 @@ var DECISION_REQUEST_OUTPUT_SCHEMA = [
9602
10490
  { path: "claimId", displayName: "Claim ID", type: "string", description: "The oracle's id for the submitted claim." },
9603
10491
  { path: "verdict", displayName: "Verdict", type: "string", description: "approve, partial, reject or review." },
9604
10492
  { path: "receiptCid", displayName: "Receipt CID", type: "string", description: "CID of the oracle's signed decision receipt, when one was minted." },
9605
- { path: "status", displayName: "Decision status", type: "string", description: "decided, pending_review, unusable or invalid_facts." },
10493
+ {
10494
+ path: "status",
10495
+ displayName: "Decision status",
10496
+ type: "string",
10497
+ description: "decided, pending_review, unusable or invalid_facts; deciding while the oracle has not decided yet."
10498
+ },
9606
10499
  { path: "oracleDid", displayName: "Oracle DID", type: "string", description: "The oracle that decided the claim." },
9607
10500
  { path: "protocolDid", displayName: "Protocol DID", type: "string", description: "The protocol the claim was submitted under." },
9608
10501
  { path: "paidAmount", displayName: "Paid (upay)", type: "string", description: "What this decision cost, in upay (1 PAY = 1,000,000 upay); empty when it was free." },
@@ -9652,8 +10545,27 @@ function decisionAttemptOf(ctx) {
9652
10545
  const value = ctx.runtime ? ctx.runtime.get(ctx.nodeId)?.[ATTEMPT_FIELD] : void 0;
9653
10546
  return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : 0;
9654
10547
  }
10548
+ var PRE_SUBMIT_CODES = [
10549
+ DECISION_REQUEST_ERROR_CODES.sourceSetupRequired,
10550
+ DECISION_REQUEST_ERROR_CODES.oracleUntrusted,
10551
+ DECISION_REQUEST_ERROR_CODES.fileRejected,
10552
+ DECISION_REQUEST_ERROR_CODES.fileUnreadable,
10553
+ DECISION_REQUEST_ERROR_CODES.uploadFailed
10554
+ ];
10555
+ function notSent(message) {
10556
+ return new ActionEffectNotStartedError(message);
10557
+ }
10558
+ async function beforeSubmit(call) {
10559
+ try {
10560
+ return await call();
10561
+ } catch (error) {
10562
+ const message = error instanceof Error ? error.message : String(error);
10563
+ if (PRE_SUBMIT_CODES.some((code) => message.includes(`[${code}]`))) throw notSent(message);
10564
+ throw error;
10565
+ }
10566
+ }
9655
10567
  var decisionRequestDone = {
9656
- isDone: (state) => state.state === "completed" && typeof state.output?.claimId === "string" && state.output.claimId.trim().length > 0,
10568
+ isDone: (state) => state.state === "completed" && typeof state.output?.claimId === "string" && state.output.claimId.trim().length > 0 && state.output.status !== DECISION_DECIDING_STATUS,
9657
10569
  reopenable: true,
9658
10570
  standingDoneRequiresFold: true
9659
10571
  };
@@ -9688,25 +10600,27 @@ registerAction({
9688
10600
  const oracleDid = String(inputs.oracleDid || "").trim();
9689
10601
  const apiUrl = String(inputs.apiUrl || "").trim();
9690
10602
  const protocolDid = String(inputs.protocolDid || "").trim();
9691
- if (!oracleDid || !apiUrl) throw new Error("No oracle selected. Pick the evaluation oracle that should decide this claim.");
9692
- if (!protocolDid) throw new Error("No protocol selected. Pick the protocol this claim is submitted under.");
10603
+ if (!oracleDid || !apiUrl) throw notSent("No oracle selected. Pick the evaluation oracle that should decide this claim.");
10604
+ if (!protocolDid) throw notSent("No protocol selected. Pick the protocol this claim is submitted under.");
9693
10605
  const formMode = inputs.answersMode === "form" || !!ctx.pendingInvocation;
9694
10606
  const answers = formMode ? formAnswersOf(inputs, ctx) : parseDecisionAnswers(inputs.answers);
9695
10607
  const service = ctx.services.decisions;
9696
- if (!service) throw new Error("decisions service not configured (ctx.services.decisions is undefined)");
10608
+ if (!service) throw notSent("decisions service not configured (ctx.services.decisions is undefined)");
9697
10609
  console.log(`${LOG2} step 1/2 ensureSource`, { oracleDid });
9698
- const { sourceId } = await service.ensureSource({ oracleDid, apiUrl, protocolDid });
9699
- if (!sourceId) throw new Error("[step 1/2 source] the oracle returned no source id");
10610
+ const { sourceId } = await beforeSubmit(() => service.ensureSource({ oracleDid, apiUrl, protocolDid }));
10611
+ if (!sourceId) throw notSent("[step 1/2 source] the oracle returned no source id");
9700
10612
  const attempt = decisionAttemptOf(ctx);
9701
10613
  console.log(`${LOG2} step 2/2 submitClaim`, { oracleDid, protocolDid, attempt });
9702
- const result = await service.submitClaim({
9703
- oracleDid,
9704
- apiUrl,
9705
- sourceId,
9706
- protocolDid,
9707
- answers,
9708
- idempotencyKey: decisionIdempotencyKey(ctx, { oracleDid, protocolDid, answers }, attempt)
9709
- });
10614
+ const result = await beforeSubmit(
10615
+ () => service.submitClaim({
10616
+ oracleDid,
10617
+ apiUrl,
10618
+ sourceId,
10619
+ protocolDid,
10620
+ answers,
10621
+ idempotencyKey: decisionIdempotencyKey(ctx, { oracleDid, protocolDid, answers }, attempt)
10622
+ })
10623
+ );
9710
10624
  switch (result.status) {
9711
10625
  case "decided":
9712
10626
  return {
@@ -9722,22 +10636,33 @@ registerAction({
9722
10636
  }
9723
10637
  };
9724
10638
  case "pending":
9725
- throw new Error(
9726
- `[${DECISION_REQUEST_ERROR_CODES.pending}] The oracle is still deciding claim ${result.claimId}. Run this step again to keep waiting.${result.payment ? ` paid=${result.payment.amount}` : ""}`
9727
- );
10639
+ return {
10640
+ output: {
10641
+ claimId: result.claimId,
10642
+ verdict: "",
10643
+ receiptCid: "",
10644
+ status: DECISION_DECIDING_STATUS,
10645
+ oracleDid,
10646
+ protocolDid,
10647
+ paidAmount: result.payment?.amount ?? "",
10648
+ paymentTx: result.payment?.transaction ?? ""
10649
+ },
10650
+ completion: {
10651
+ state: "awaiting_readback",
10652
+ readBack: { kind: DECISION_REQUEST_ACTION_TYPE, correlationId: result.claimId, claimStatus: result.claimStatus, oracleDid, protocolDid }
10653
+ }
10654
+ };
9728
10655
  case "payment_required":
9729
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentRequired}] ${result.message}`);
10656
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRequired}] ${result.message}`);
9730
10657
  case "payment_approval_required":
9731
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentApprovalRequired}] This oracle charges for its decisions. amount=${result.amount} fundingUrl=${result.fundingUrl}`);
10658
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentApprovalRequired}] This oracle charges for its decisions. amount=${result.amount} fundingUrl=${result.fundingUrl}`);
9732
10659
  case "payment_refused":
9733
- throw new Error(
9734
- `[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`
9735
- );
10660
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`);
9736
10661
  case "payments_unavailable":
9737
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentsUnavailable}] Decisions can't be paid for on this network yet.`);
10662
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentsUnavailable}] Decisions can't be paid for on this network yet.`);
9738
10663
  case "failed":
9739
10664
  ctx.runtime?.update(ctx.nodeId, { [ATTEMPT_FIELD]: attempt + 1 });
9740
- throw new Error(`The oracle could not decide claim ${result.claimId}: ${result.message}`);
10665
+ throw notSent(`The oracle could not decide claim ${result.claimId}: ${result.message}`);
9741
10666
  default:
9742
10667
  throw new Error(result.message || "The decision request failed");
9743
10668
  }
@@ -13202,6 +14127,10 @@ export {
13202
14127
  buildPendingClaimSnapshot,
13203
14128
  readPendingClaimSnapshot,
13204
14129
  samePendingClaimSnapshot,
14130
+ EFFECT_OUTCOME_UNKNOWN_CODE,
14131
+ ActionEffectNotStartedError,
14132
+ isEffectNotStartedError,
14133
+ trackActionEffectPorts,
13205
14134
  COLLECTION_CREATE_ACTION_TYPE,
13206
14135
  COLLECTION_USERS_MAX_GRANTS_PER_TX,
13207
14136
  collectionUsersBatchCount,
@@ -13242,4 +14171,4 @@ export {
13242
14171
  formatCoin,
13243
14172
  formatCoinAmount
13244
14173
  };
13245
- //# sourceMappingURL=chunk-KXTRAHCF.js.map
14174
+ //# sourceMappingURL=chunk-7C2WFOG2.js.map