@dynamic-labs-sdk/client 1.28.0 → 1.29.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 (279) hide show
  1. package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewHost.kt +8 -3
  2. package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewModule.kt +27 -0
  3. package/dist/core.cjs +30 -7
  4. package/dist/core.cjs.map +1 -1
  5. package/dist/core.esm.js +30 -7
  6. package/dist/core.esm.js.map +1 -1
  7. package/dist/core.native.esm.js +32 -9
  8. package/dist/core.native.esm.js.map +1 -1
  9. package/dist/exports/waas.d.ts +26 -2
  10. package/dist/exports/waas.d.ts.map +1 -1
  11. package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js} +2 -2
  12. package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js.map → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js.map} +1 -1
  13. package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs → getNetworkProviderFromNetworkId-BsmqXKF_.cjs} +2 -2
  14. package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs.map → getNetworkProviderFromNetworkId-BsmqXKF_.cjs.map} +1 -1
  15. package/dist/{getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js → getNetworkProviderFromNetworkId-DReHSnab.native.esm.js} +7 -7
  16. package/dist/getNetworkProviderFromNetworkId-DReHSnab.native.esm.js.map +1 -0
  17. package/dist/{getSignedSessionId-BncZzHdQ.esm.js → getSignedSessionId-CLvqM34v.esm.js} +3 -3
  18. package/dist/{getSignedSessionId-BncZzHdQ.esm.js.map → getSignedSessionId-CLvqM34v.esm.js.map} +1 -1
  19. package/dist/{getSignedSessionId-gwqj9h2p.cjs → getSignedSessionId-CcV_jWux.cjs} +3 -3
  20. package/dist/{getSignedSessionId-gwqj9h2p.cjs.map → getSignedSessionId-CcV_jWux.cjs.map} +1 -1
  21. package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js → getSignedSessionId-DdslNjRv.native.esm.js} +3 -3
  22. package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js.map → getSignedSessionId-DdslNjRv.native.esm.js.map} +1 -1
  23. package/dist/{getWalletProviderByKey-CnpXHkmq.cjs → getWalletProviderByKey-BMsrnfN2.cjs} +2 -2
  24. package/dist/{getWalletProviderByKey-CnpXHkmq.cjs.map → getWalletProviderByKey-BMsrnfN2.cjs.map} +1 -1
  25. package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js → getWalletProviderByKey-BtcGKhh6.native.esm.js} +2 -2
  26. package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js.map → getWalletProviderByKey-BtcGKhh6.native.esm.js.map} +1 -1
  27. package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js → getWalletProviderByKey-FfQmRcK1.esm.js} +2 -2
  28. package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js.map → getWalletProviderByKey-FfQmRcK1.esm.js.map} +1 -1
  29. package/dist/index.cjs +41 -6
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.esm.js +41 -6
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/index.native.esm.js +44 -9
  34. package/dist/index.native.esm.js.map +1 -1
  35. package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js → isDynamicWaasEnabled-B8e0N7Bb.esm.js} +2 -2
  36. package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js.map → isDynamicWaasEnabled-B8e0N7Bb.esm.js.map} +1 -1
  37. package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs → isDynamicWaasEnabled-DT4jhqkC.cjs} +2 -2
  38. package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs.map → isDynamicWaasEnabled-DT4jhqkC.cjs.map} +1 -1
  39. package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js → isDynamicWaasEnabled-GTkHpRu6.native.esm.js} +2 -2
  40. package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js.map → isDynamicWaasEnabled-GTkHpRu6.native.esm.js.map} +1 -1
  41. package/dist/{isMfaRequiredForAction-BjRiou3K.cjs → isMfaRequiredForAction-9ZrKcsTN.cjs} +2 -2
  42. package/dist/{isMfaRequiredForAction-BjRiou3K.cjs.map → isMfaRequiredForAction-9ZrKcsTN.cjs.map} +1 -1
  43. package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js → isMfaRequiredForAction-DRqf4xyv.esm.js} +2 -2
  44. package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js.map → isMfaRequiredForAction-DRqf4xyv.esm.js.map} +1 -1
  45. package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js → isMfaRequiredForAction-e4Bdq2tD.native.esm.js} +2 -2
  46. package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js.map → isMfaRequiredForAction-e4Bdq2tD.native.esm.js.map} +1 -1
  47. package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js → isUserOnboardingComplete-Bq_7_Fck.esm.js} +3 -3
  48. package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js.map → isUserOnboardingComplete-Bq_7_Fck.esm.js.map} +1 -1
  49. package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs → isUserOnboardingComplete-DINsEIfi.cjs} +3 -3
  50. package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs.map → isUserOnboardingComplete-DINsEIfi.cjs.map} +1 -1
  51. package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js → isUserOnboardingComplete-DKt0bwXg.native.esm.js} +3 -3
  52. package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js.map → isUserOnboardingComplete-DKt0bwXg.native.esm.js.map} +1 -1
  53. package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js → migrateFromFireblocks-3naM4iCQ.native.esm.js} +3 -3
  54. package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js.map → migrateFromFireblocks-3naM4iCQ.native.esm.js.map} +1 -1
  55. package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js → migrateFromFireblocks-DbTnFE38.esm.js} +3 -3
  56. package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js.map → migrateFromFireblocks-DbTnFE38.esm.js.map} +1 -1
  57. package/dist/{migrateFromFireblocks-Dg6igmRk.cjs → migrateFromFireblocks-Dyh2dGWB.cjs} +3 -3
  58. package/dist/{migrateFromFireblocks-Dg6igmRk.cjs.map → migrateFromFireblocks-Dyh2dGWB.cjs.map} +1 -1
  59. package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +2 -1
  60. package/dist/modules/auth/decodeJwt/decodeJwt.d.ts.map +1 -1
  61. package/dist/modules/auth/logoutReason.d.ts +1 -1
  62. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  63. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  64. package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts +18 -0
  65. package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts.map +1 -0
  66. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +2 -2
  67. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
  68. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts +27 -0
  69. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts.map +1 -0
  70. package/dist/modules/waas/getWalletAccountShareSets/index.d.ts +3 -0
  71. package/dist/modules/waas/getWalletAccountShareSets/index.d.ts.map +1 -0
  72. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +25 -0
  73. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -0
  74. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts +18 -0
  75. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts.map +1 -0
  76. package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts +2 -0
  77. package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts.map +1 -0
  78. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts +10 -0
  79. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts.map +1 -0
  80. package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts +2 -0
  81. package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts.map +1 -0
  82. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts +11 -0
  83. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts.map +1 -0
  84. package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts +2 -0
  85. package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts.map +1 -0
  86. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts +11 -0
  87. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts.map +1 -0
  88. package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts +2 -0
  89. package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts.map +1 -0
  90. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts +8 -0
  91. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts.map +1 -0
  92. package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts +2 -0
  93. package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts.map +1 -0
  94. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts +11 -0
  95. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts.map +1 -0
  96. package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts +2 -0
  97. package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts.map +1 -0
  98. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts +10 -0
  99. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts.map +1 -0
  100. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts +2 -0
  101. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts.map +1 -0
  102. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts +26 -0
  103. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts.map +1 -0
  104. package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts +2 -0
  105. package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts.map +1 -0
  106. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts +24 -0
  107. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts.map +1 -0
  108. package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts +2 -0
  109. package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts.map +1 -0
  110. package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts +10 -0
  111. package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts.map +1 -0
  112. package/dist/modules/waas/policies/buildValueLimit/index.d.ts +2 -0
  113. package/dist/modules/waas/policies/buildValueLimit/index.d.ts.map +1 -0
  114. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts +39 -0
  115. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts.map +1 -0
  116. package/dist/modules/waas/policies/createPolicy/index.d.ts +2 -0
  117. package/dist/modules/waas/policies/createPolicy/index.d.ts.map +1 -0
  118. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts +23 -0
  119. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts.map +1 -0
  120. package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts +2 -0
  121. package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts.map +1 -0
  122. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts +22 -0
  123. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts.map +1 -0
  124. package/dist/modules/waas/policies/expandPolicyRules/index.d.ts +2 -0
  125. package/dist/modules/waas/policies/expandPolicyRules/index.d.ts.map +1 -0
  126. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts +26 -0
  127. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts.map +1 -0
  128. package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts +2 -0
  129. package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts.map +1 -0
  130. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts +22 -0
  131. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts.map +1 -0
  132. package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts +3 -0
  133. package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts.map +1 -0
  134. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts +18 -0
  135. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts.map +1 -0
  136. package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts +2 -0
  137. package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts.map +1 -0
  138. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts +34 -0
  139. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts.map +1 -0
  140. package/dist/modules/waas/policies/getPolicy/index.d.ts +2 -0
  141. package/dist/modules/waas/policies/getPolicy/index.d.ts.map +1 -0
  142. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts +16 -0
  143. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts.map +1 -0
  144. package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts +2 -0
  145. package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts.map +1 -0
  146. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts +25 -0
  147. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts.map +1 -0
  148. package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts +2 -0
  149. package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts.map +1 -0
  150. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts +20 -0
  151. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts.map +1 -0
  152. package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts +2 -0
  153. package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts.map +1 -0
  154. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts +7 -0
  155. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts.map +1 -0
  156. package/dist/modules/waas/policies/hasAddresses/index.d.ts +2 -0
  157. package/dist/modules/waas/policies/hasAddresses/index.d.ts.map +1 -0
  158. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts +6 -0
  159. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts.map +1 -0
  160. package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts +2 -0
  161. package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts.map +1 -0
  162. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts +2 -0
  163. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts.map +1 -0
  164. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts +14 -0
  165. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map +1 -0
  166. package/dist/modules/waas/policies/matchExistingRules/index.d.ts +3 -0
  167. package/dist/modules/waas/policies/matchExistingRules/index.d.ts.map +1 -0
  168. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts +33 -0
  169. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts.map +1 -0
  170. package/dist/modules/waas/policies/policies.types.d.ts +91 -0
  171. package/dist/modules/waas/policies/policies.types.d.ts.map +1 -0
  172. package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts +10 -0
  173. package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts.map +1 -0
  174. package/dist/modules/waas/policies/policyRuleKinds.d.ts +34 -0
  175. package/dist/modules/waas/policies/policyRuleKinds.d.ts.map +1 -0
  176. package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts +2 -0
  177. package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts.map +1 -0
  178. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts +9 -0
  179. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts.map +1 -0
  180. package/dist/modules/waas/policies/readBlockExportRule/index.d.ts +2 -0
  181. package/dist/modules/waas/policies/readBlockExportRule/index.d.ts.map +1 -0
  182. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts +8 -0
  183. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts.map +1 -0
  184. package/dist/modules/waas/policies/readCoveredRule/index.d.ts +3 -0
  185. package/dist/modules/waas/policies/readCoveredRule/index.d.ts.map +1 -0
  186. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts +31 -0
  187. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts.map +1 -0
  188. package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts +2 -0
  189. package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts.map +1 -0
  190. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts +8 -0
  191. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts.map +1 -0
  192. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts +2 -0
  193. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts.map +1 -0
  194. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts +8 -0
  195. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts.map +1 -0
  196. package/dist/modules/waas/policies/readValueLimit/index.d.ts +2 -0
  197. package/dist/modules/waas/policies/readValueLimit/index.d.ts.map +1 -0
  198. package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts +10 -0
  199. package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts.map +1 -0
  200. package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts +2 -0
  201. package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts.map +1 -0
  202. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts +20 -0
  203. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts.map +1 -0
  204. package/dist/modules/waas/policies/removePolicyRules/index.d.ts +2 -0
  205. package/dist/modules/waas/policies/removePolicyRules/index.d.ts.map +1 -0
  206. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts +30 -0
  207. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts.map +1 -0
  208. package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts +2 -0
  209. package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts.map +1 -0
  210. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts +25 -0
  211. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts.map +1 -0
  212. package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts +2 -0
  213. package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts.map +1 -0
  214. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts +22 -0
  215. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts.map +1 -0
  216. package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts +3 -0
  217. package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts.map +1 -0
  218. package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts +31 -0
  219. package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts.map +1 -0
  220. package/dist/modules/waas/policies/resolveRuleName/index.d.ts +2 -0
  221. package/dist/modules/waas/policies/resolveRuleName/index.d.ts.map +1 -0
  222. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts +20 -0
  223. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts.map +1 -0
  224. package/dist/modules/waas/policies/sameChainIds/index.d.ts +2 -0
  225. package/dist/modules/waas/policies/sameChainIds/index.d.ts.map +1 -0
  226. package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts +14 -0
  227. package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts.map +1 -0
  228. package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts +2 -0
  229. package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts.map +1 -0
  230. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts +12 -0
  231. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts.map +1 -0
  232. package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts +2 -0
  233. package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts.map +1 -0
  234. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts +24 -0
  235. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts.map +1 -0
  236. package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts +2 -0
  237. package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts.map +1 -0
  238. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts +28 -0
  239. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts.map +1 -0
  240. package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts +2 -0
  241. package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts.map +1 -0
  242. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts +25 -0
  243. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts.map +1 -0
  244. package/dist/modules/waas/signSerializedTransaction/index.d.ts +2 -0
  245. package/dist/modules/waas/signSerializedTransaction/index.d.ts.map +1 -0
  246. package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts +23 -0
  247. package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts.map +1 -0
  248. package/dist/modules/waas/waas.types.d.ts +22 -1
  249. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  250. package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
  251. package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts +0 -2
  252. package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts.map +1 -1
  253. package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +1 -0
  254. package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts.map +1 -1
  255. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  256. package/dist/{updateAuthFromVerifyResponse-DcwFCD-Y.esm.js → updateAuthFromVerifyResponse-B42kkGLd.esm.js} +38 -15
  257. package/dist/updateAuthFromVerifyResponse-B42kkGLd.esm.js.map +1 -0
  258. package/dist/{updateAuthFromVerifyResponse-DD_rZDrQ.cjs → updateAuthFromVerifyResponse-CePaJzru.cjs} +43 -14
  259. package/dist/updateAuthFromVerifyResponse-CePaJzru.cjs.map +1 -0
  260. package/dist/{updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js → updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js} +38 -15
  261. package/dist/updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js.map +1 -0
  262. package/dist/utils/objectKeys/index.d.ts +2 -0
  263. package/dist/utils/objectKeys/index.d.ts.map +1 -0
  264. package/dist/utils/objectKeys/objectKeys.d.ts +8 -0
  265. package/dist/utils/objectKeys/objectKeys.d.ts.map +1 -0
  266. package/dist/waas.cjs +1198 -4
  267. package/dist/waas.cjs.map +1 -1
  268. package/dist/waas.esm.js +1176 -7
  269. package/dist/waas.esm.js.map +1 -1
  270. package/dist/waas.native.esm.js +1176 -7
  271. package/dist/waas.native.esm.js.map +1 -1
  272. package/dist/waasCore.cjs +6 -6
  273. package/dist/waasCore.esm.js +6 -6
  274. package/dist/waasCore.native.esm.js +6 -6
  275. package/package.json +4 -4
  276. package/dist/getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js.map +0 -1
  277. package/dist/updateAuthFromVerifyResponse-DD_rZDrQ.cjs.map +0 -1
  278. package/dist/updateAuthFromVerifyResponse-DcwFCD-Y.esm.js.map +0 -1
  279. package/dist/updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ /**
4
+ * Recognizes an existing rule as `allowAddresses`, reading back a merged
5
+ * `maxAmountPerTransaction` cap too when the rule carries one.
6
+ * @notInstrumented
7
+ */
8
+ export declare const readAllowAddressesRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
9
+ //# sourceMappingURL=readAllowAddressesRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readAllowAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,SAC3B,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAoBzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { readBlockExportRule } from './readBlockExportRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readBlockExportRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ /**
4
+ * Recognizes an existing rule as `blockExport`.
5
+ * @notInstrumented
6
+ */
7
+ export declare const readBlockExportRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
8
+ //# sourceMappingURL=readBlockExportRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readBlockExportRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readBlockExportRule/readBlockExportRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SACxB,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAUzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { readCoveredRule } from './readCoveredRule';
2
+ export type { CoveredRule } from './readCoveredRule';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readCoveredRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ import { type PolicyRuleKind } from '../policyRuleKinds';
4
+ export type CoveredRule = {
5
+ keys: PolicyRuleKind[];
6
+ /** The rule kind whose builder owns this rule's `name` when kinds are merged (e.g. `allowAddresses` over `maxAmountPerTransaction`). */
7
+ kind: PolicyRuleKind;
8
+ values: Partial<PolicyRules>;
9
+ };
10
+ /**
11
+ * Statically asserts every {@link PolicyRuleKind} is a {@link PolicyRules}
12
+ * key, so `objectKeys(values)` below is safe to widen to `PolicyRuleKind[]`
13
+ * without a runtime cast — fails to compile if a kind and its sugar key
14
+ * ever drift apart. Exported (unused otherwise) purely so `noUnusedLocals`
15
+ * leaves it alone; not part of this module's public surface.
16
+ */
17
+ export type KindsCoverPolicyRules = PolicyRuleKind extends keyof PolicyRules ? true : never;
18
+ /**
19
+ * The sugar keys and values an existing rule structurally represents — a
20
+ * single rule can cover more than one key (see `allowAddresses` absorbing
21
+ * `maxAmountPerTransaction` in `policyRuleKinds.ts`). A rule carrying a
22
+ * per-rule `modifiableBySigner` grant is never matched here — treating it
23
+ * as covering keys would let a caller's batch reuse/replace/remove it and
24
+ * silently revoke that signer's edit permission (mirrors `desugarPolicyRules`).
25
+ *
26
+ * @param rule - The existing policy-layer rule to read.
27
+ * @returns The sugar keys and values the rule covers, or undefined when it matches no kind or carries a signer grant.
28
+ * @notInstrumented
29
+ */
30
+ export declare const readCoveredRule: (rule: WaasPolicyRule) => CoveredRule | undefined;
31
+ //# sourceMappingURL=readCoveredRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readCoveredRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readCoveredRule/readCoveredRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,wIAAwI;IACxI,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,SAAS,MAAM,WAAW,GACxE,IAAI,GACJ,KAAK,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,SACpB,cAAc,KACnB,WAAW,GAAG,SAehB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { readDenyAddressesRule } from './readDenyAddressesRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readDenyAddressesRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ /**
4
+ * Recognizes an existing rule as `denyAddresses`.
5
+ * @notInstrumented
6
+ */
7
+ export declare const readDenyAddressesRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
8
+ //# sourceMappingURL=readDenyAddressesRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readDenyAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,SAC1B,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAUzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { readMaxAmountPerTransactionRule } from './readMaxAmountPerTransactionRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readMaxAmountPerTransactionRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ /**
4
+ * Recognizes an existing rule as a standalone `maxAmountPerTransaction` cap.
5
+ * @notInstrumented
6
+ */
7
+ export declare const readMaxAmountPerTransactionRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
8
+ //# sourceMappingURL=readMaxAmountPerTransactionRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readMaxAmountPerTransactionRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,SACpC,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAezB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { readValueLimit } from './readValueLimit';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readValueLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { PolicyRuleMaxAmountPerTransaction } from '../policies.types';
2
+ /**
3
+ * Reads a stored `valueLimit` back into a {@link PolicyRuleMaxAmountPerTransaction}.
4
+ * @notInstrumented
5
+ */
6
+ export declare const readValueLimit: ({ asset, maxPerCall, }: {
7
+ asset: string | null | undefined;
8
+ maxPerCall: string;
9
+ }) => PolicyRuleMaxAmountPerTransaction;
10
+ //# sourceMappingURL=readValueLimit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readValueLimit.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readValueLimit/readValueLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,cAAc,2BAGxB;IACD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,KAAG,iCAGF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { removeAccountPolicyRule } from './removeAccountPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeAccountPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ type RemoveAccountPolicyRuleParams = {
4
+ businessAccountId: string;
5
+ ruleId: string;
6
+ };
7
+ /**
8
+ * Removes a single rule from a business account's account-Layer. BA
9
+ * owner/admin only. Calls the SDK API directly (no MPC step), so a
10
+ * rejection surfaces as a thrown error.
11
+ *
12
+ * @param params.businessAccountId - The business account to remove the rule from.
13
+ * @param params.ruleId - The id of the rule to remove.
14
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
+ * @returns The account-Layer as it stands after the rule is removed.
16
+ * @notInstrumented
17
+ */
18
+ export declare const removeAccountPolicyRule: ({ businessAccountId, ruleId }: RemoveAccountPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
19
+ export {};
20
+ //# sourceMappingURL=removeAccountPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeAccountPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,KAAK,6BAA6B,GAAG;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,kCACH,6BAA6B,WACpD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAYjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { removePolicyRules } from './removePolicyRules';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removePolicyRules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { type WaasChainEnum, type WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { PolicyRules, PolicyScope } from '../policies.types';
4
+ type RemovePolicyRulesParams = {
5
+ chain: WaasChainEnum;
6
+ chainIds?: number[];
7
+ rules: (keyof PolicyRules)[];
8
+ scope: PolicyScope;
9
+ };
10
+ /**
11
+ * Removes the rules behind one or more {@link PolicyRules} keys from a
12
+ * policy layer, in one atomic `batch` PATCH. For every existing rule the
13
+ * given keys touch, either removes it outright or — when it also covers a
14
+ * key the caller didn't ask to remove (e.g. an
15
+ * `allowAddresses`+`maxAmountPerTransaction` rule with only the cap
16
+ * removed) — rebuilds it from the remaining keys so that restriction
17
+ * survives.
18
+ *
19
+ * @param params.scope - Which policy layer to update — see {@link resolvePolicyScope}.
20
+ * @param params.chain - The chain the rules to remove apply to.
21
+ * @param params.chainIds - The chain ids the rules to remove apply to; omit to target the wildcard rule that matches every chain id of `chain`.
22
+ * @param params.rules - The sugar keys to remove.
23
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
+ * @returns The policy layer as it stands after the batch is applied.
25
+ * @throws When none of the given keys match an existing rule for this chain scope, or via {@link resolvePolicyScope}'s scope-resolution errors.
26
+ * @notInstrumented
27
+ */
28
+ export declare const removePolicyRules: ({ chain, chainIds, rules, scope }: RemovePolicyRulesParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
29
+ export {};
30
+ //# sourceMappingURL=removePolicyRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removePolicyRules.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removePolicyRules/removePolicyRules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIlE,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAC;IAC7B,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,sCACO,uBAAuB,WAClD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAmCjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { removeSignerPolicyRule } from './removeSignerPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeSignerPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { WalletAccount } from '../../../wallets/walletAccount';
4
+ type RemoveSignerPolicyRuleParams = {
5
+ ruleId: string;
6
+ /** Omit to target the caller's own active share set. */
7
+ shareSetId?: string;
8
+ walletAccount: WalletAccount;
9
+ };
10
+ /**
11
+ * Removes a single rule from a signer's policy layer. Calls the SDK API
12
+ * directly (no MPC step), so a rejection surfaces as a thrown error.
13
+ *
14
+ * @param params.walletAccount - The wallet account whose signer-Layer to update.
15
+ * @param params.ruleId - The id of the rule to remove.
16
+ * @param [params.shareSetId] - The share set to target; defaults to the caller's own. Only the wallet's own owner may target another share set.
17
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
18
+ * @returns The signer-Layer as it stands after the rule is removed.
19
+ * @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
20
+ * @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
21
+ * @notInstrumented
22
+ */
23
+ export declare const removeSignerPolicyRule: ({ ruleId, shareSetId, walletAccount }: RemoveSignerPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
24
+ export {};
25
+ //# sourceMappingURL=removeSignerPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeSignerPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,4BAA4B,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,0CACM,4BAA4B,WAC3D,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAkBjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { removeWalletPolicyRule } from './removeWalletPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeWalletPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { type WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { WalletAccount } from '../../../wallets/walletAccount';
4
+ type RemoveWalletPolicyRuleParams = {
5
+ ruleId: string;
6
+ walletAccount: WalletAccount;
7
+ };
8
+ /**
9
+ * Removes a single rule from a wallet's policy layer. Calls the SDK API
10
+ * directly (no MPC step), so a rejection surfaces as a thrown error.
11
+ *
12
+ * @param params.walletAccount - The wallet account to remove the rule from.
13
+ * @param params.ruleId - The id of the rule to remove.
14
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
+ * @returns The wallet-Layer as it stands after the rule is removed.
16
+ * @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
17
+ * @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
18
+ * @notInstrumented
19
+ */
20
+ export declare const removeWalletPolicyRule: ({ ruleId, walletAccount }: RemoveWalletPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
21
+ export {};
22
+ //# sourceMappingURL=removeWalletPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeWalletPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,4BAA4B,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,8BACN,4BAA4B,WAC/C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAiBjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { resolvePolicyScope } from './resolvePolicyScope';
2
+ export type { ResolvedPolicyScope } from './resolvePolicyScope';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/resolvePolicyScope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { PolicyScope } from '../policies.types';
3
+ type ResolvePolicyScopeParams = {
4
+ scope: PolicyScope;
5
+ };
6
+ /** The concrete policy-Layer a {@link PolicyScope} resolves to, and the ids needed to call the SDK API for it. */
7
+ export type ResolvedPolicyScope = {
8
+ businessAccountId: string;
9
+ target: 'account';
10
+ } | {
11
+ target: 'wallet';
12
+ walletId: string;
13
+ } | {
14
+ shareSetId?: string;
15
+ target: 'signer';
16
+ walletId: string;
17
+ };
18
+ /**
19
+ * Resolves a {@link PolicyScope} to its concrete policy layer. When only a
20
+ * `shareSetId` is given, the owning wallet is found locally by scanning the
21
+ * client's own wallet accounts — no network request.
22
+ *
23
+ * @param params.scope - The scope to resolve.
24
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
25
+ * @returns The concrete target (`account`, `wallet`, or `signer`) plus the ids needed to call the SDK API.
26
+ * @throws When a `shareSetId`-only scope doesn't match any of the client's wallet accounts.
27
+ * @notInstrumented
28
+ */
29
+ export declare const resolvePolicyScope: ({ scope }: ResolvePolicyScopeParams, client?: DynamicClient) => ResolvedPolicyScope;
30
+ export {};
31
+ //# sourceMappingURL=resolvePolicyScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePolicyScope.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAOrD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,kHAAkH;AAClH,MAAM,MAAM,mBAAmB,GAC3B;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAChD;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,cAClB,wBAAwB,WAC3B,aAAa,KACpB,mBAmCF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { resolveRuleName } from './resolveRuleName';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/resolveRuleName/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ type ResolveRuleNameParams = {
4
+ builtRule: WaasPolicyRule;
5
+ reused: WaasPolicyRule | undefined;
6
+ rules: PolicyRules;
7
+ };
8
+ /**
9
+ * Keeps the reused rule's label unless the caller overrides it or its
10
+ * name-owning kind changed.
11
+ *
12
+ * @param params.builtRule - The newly built rule about to be upserted.
13
+ * @param params.reused - The existing rule `builtRule` is upserted onto, if any.
14
+ * @param params.rules - The caller's requested {@link PolicyRules} sugar map.
15
+ * @returns The name to use for the upserted rule.
16
+ * @notInstrumented
17
+ */
18
+ export declare const resolveRuleName: ({ builtRule, reused, rules, }: ResolveRuleNameParams) => string;
19
+ export {};
20
+ //# sourceMappingURL=resolveRuleName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRuleName.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/resolveRuleName/resolveRuleName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,cAAc,CAAC;IAC1B,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,kCAIzB,qBAAqB,KAAG,MAY1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { sameChainIds } from './sameChainIds';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/sameChainIds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ type SameChainIdsParams = {
2
+ existing: number[] | undefined;
3
+ requested: number[];
4
+ };
5
+ /**
6
+ * Whether two chainIds arrays describe the same set, regardless of order.
7
+ * Shared by {@link createPolicy} and {@link removePolicyRules} to keep their
8
+ * existing-rule lookups consistent.
9
+ *
10
+ * @notInstrumented
11
+ */
12
+ export declare const sameChainIds: ({ existing, requested, }: SameChainIdsParams) => boolean;
13
+ export {};
14
+ //# sourceMappingURL=sameChainIds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sameChainIds.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/sameChainIds/sameChainIds.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,6BAGtB,kBAAkB,KAAG,OAOvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { sortRulesByRuleId } from './sortRulesByRuleId';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/sortRulesByRuleId/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ /**
3
+ * Sorts rules by `ruleId` ascending (a rule missing one sorts first, as `''`)
4
+ * — the deterministic order {@link matchExistingRules} picks its reuse
5
+ * target from, so every caller agrees on which duplicate rule wins.
6
+ *
7
+ * @param rules - The rules to sort.
8
+ * @returns A new array, sorted by `ruleId` ascending.
9
+ * @notInstrumented
10
+ */
11
+ export declare const sortRulesByRuleId: (rules: WaasPolicyRule[]) => WaasPolicyRule[];
12
+ //# sourceMappingURL=sortRulesByRuleId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortRulesByRuleId.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,UAAW,cAAc,EAAE,KAAG,cAAc,EAQtE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { upsertAccountPolicyRule } from './upsertAccountPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertAccountPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type WaasPolicyLayerResponse, type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ type UpsertAccountPolicyRuleParams = {
4
+ businessAccountId: string;
5
+ rule: WaasPolicyRule;
6
+ };
7
+ /**
8
+ * Creates or updates a single rule on a business account's account-Layer
9
+ * (rules applied to every wallet in the account). Build `rule` with
10
+ * {@link buildAllowPolicyRule} / {@link buildDenyPolicyRule}. Omit
11
+ * `rule.ruleId` to create a new rule (the enclave mints one for you); pass
12
+ * an existing `ruleId` to update it in place. BA owner/admin only. Calls
13
+ * the SDK API directly (no MPC step), so a rejection surfaces as a thrown
14
+ * error.
15
+ *
16
+ * @param params.businessAccountId - The business account to apply the rule to.
17
+ * @param params.rule - The rule to create or update.
18
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
19
+ * @returns The account-Layer as it stands after the rule is applied.
20
+ * @notInstrumented
21
+ */
22
+ export declare const upsertAccountPolicyRule: ({ businessAccountId, rule }: UpsertAccountPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
23
+ export {};
24
+ //# sourceMappingURL=upsertAccountPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsertAccountPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,KAAK,6BAA6B,GAAG;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,gCACL,6BAA6B,WAClD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAYjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { upsertSignerPolicyRule } from './upsertSignerPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertSignerPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type WaasPolicyLayerResponse, type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { WalletAccount } from '../../../wallets/walletAccount';
4
+ type UpsertSignerPolicyRuleParams = {
5
+ rule: WaasPolicyRule;
6
+ /** Omit to target the caller's own active share set. */
7
+ shareSetId?: string;
8
+ walletAccount: WalletAccount;
9
+ };
10
+ /**
11
+ * Creates or updates a single rule on a signer's policy layer. Build `rule`
12
+ * with {@link buildAllowPolicyRule} / {@link buildDenyPolicyRule}. Omit
13
+ * `rule.ruleId` to create a new rule (the enclave mints one for you); pass an
14
+ * existing `ruleId` to update it in place. Calls the SDK API directly (no MPC
15
+ * step), so a rejection surfaces as a thrown error.
16
+ *
17
+ * @param params.walletAccount - The wallet account whose signer-Layer to update.
18
+ * @param params.rule - The rule to create or update.
19
+ * @param [params.shareSetId] - The share set to target; defaults to the caller's own. Only the wallet's own owner may target another share set.
20
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
21
+ * @returns The signer-Layer as it stands after the rule is applied.
22
+ * @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
23
+ * @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
24
+ * @notInstrumented
25
+ */
26
+ export declare const upsertSignerPolicyRule: ({ rule, shareSetId, walletAccount }: UpsertSignerPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
27
+ export {};
28
+ //# sourceMappingURL=upsertSignerPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsertSignerPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,wCACI,4BAA4B,WACzD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAkBjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { upsertWalletPolicyRule } from './upsertWalletPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertWalletPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type WaasPolicyLayerResponse, type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { WalletAccount } from '../../../wallets/walletAccount';
4
+ type UpsertWalletPolicyRuleParams = {
5
+ rule: WaasPolicyRule;
6
+ walletAccount: WalletAccount;
7
+ };
8
+ /**
9
+ * Creates or updates a single rule on a wallet's policy layer. Build `rule`
10
+ * with {@link buildAllowPolicyRule} / {@link buildDenyPolicyRule}. Omit
11
+ * `rule.ruleId` to create a new rule (the enclave mints one for you); pass an
12
+ * existing `ruleId` to update it in place. Calls the SDK API directly (no MPC
13
+ * step), so a rejection surfaces as a thrown error.
14
+ *
15
+ * @param params.walletAccount - The wallet account to apply the rule to.
16
+ * @param params.rule - The rule to create or update.
17
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
18
+ * @returns The wallet-Layer as it stands after the rule is applied.
19
+ * @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
20
+ * @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
21
+ * @notInstrumented
22
+ */
23
+ export declare const upsertWalletPolicyRule: ({ rule, walletAccount }: UpsertWalletPolicyRuleParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
24
+ export {};
25
+ //# sourceMappingURL=upsertWalletPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsertWalletPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,4BACR,4BAA4B,WAC7C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAiBjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { signSerializedTransaction } from './signSerializedTransaction';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/signSerializedTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { DynamicClient } from '../../../client/types/DynamicClient';
2
+ import type { WalletAccount } from '../../wallets/walletAccount';
3
+ type SignSerializedTransactionParams = {
4
+ chainId?: string;
5
+ serializedTransaction: string;
6
+ walletAccount: WalletAccount;
7
+ };
8
+ /**
9
+ * No gas estimation, balance check, or broadcast — unlike `transferAmount`.
10
+ * Useful for exercising WaaS policy enforcement in isolation.
11
+ *
12
+ * @param params.walletAccount - The wallet account to sign with.
13
+ * @param params.serializedTransaction - The raw serialized transaction (e.g. viem's `serializeTransaction`).
14
+ * @param [params.chainId] - The chain id, if required by the target chain's signer.
15
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
+ * @returns The raw signature.
17
+ * @notInstrumented
18
+ */
19
+ export declare const signSerializedTransaction: ({ chainId, serializedTransaction, walletAccount }: SignSerializedTransactionParams, client?: DynamicClient) => Promise<{
20
+ signature: string;
21
+ }>;
22
+ export {};
23
+ //# sourceMappingURL=signSerializedTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSerializedTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/signSerializedTransaction/signSerializedTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,KAAK,+BAA+B,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,sDACe,+BAA+B,WAC1E,aAAa,KACpB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAW/B,CAAC"}