@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
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFromFireblocks-BM6Iaii-.esm.js","names":["refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgD,UAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiB,mCACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAAC,qBAAqB,eAAe,CACvC,OAAM,IAAI,0BAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAAS,kBAAkB,KACgB;CAC3C,MAAM,YAAY,mBAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,sBAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAK,qBAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMA,sBAAY,OAAO;AAEzB,QAAO"}
1
+ {"version":3,"file":"migrateFromFireblocks-DbTnFE38.esm.js","names":["refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgD,UAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiB,mCACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAAC,qBAAqB,eAAe,CACvC,OAAM,IAAI,0BAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAAS,kBAAkB,KACgB;CAC3C,MAAM,YAAY,mBAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,sBAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAK,qBAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMA,sBAAY,OAAO;AAEzB,QAAO"}
@@ -1,5 +1,5 @@
1
- const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-DD_rZDrQ.cjs');
2
- const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-DnDhv_Uj.cjs');
1
+ const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-CePaJzru.cjs');
2
+ const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-DT4jhqkC.cjs');
3
3
 
4
4
  //#region src/errors/NotWaasWalletProviderError.ts
5
5
  var NotWaasWalletProviderError = class extends require_updateAuthFromVerifyResponse.BaseError {
@@ -79,4 +79,4 @@ Object.defineProperty(exports, 'migrateFromFireblocks', {
79
79
  return migrateFromFireblocks;
80
80
  }
81
81
  });
82
- //# sourceMappingURL=migrateFromFireblocks-Dg6igmRk.cjs.map
82
+ //# sourceMappingURL=migrateFromFireblocks-Dyh2dGWB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrateFromFireblocks-Dg6igmRk.cjs","names":["BaseError","getWalletProviderFromWalletAccount","isWaasWalletProvider","NotWaasWalletAccountError","getDefaultClient","getWalletProviders","NoWalletProviderFoundError","DYNAMIC_WAAS_METADATA","isWaasWalletProvider","refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgDA,+CAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiBC,wEACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAACC,0DAAqB,eAAe,CACvC,OAAM,IAAIC,uDAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAASC,uDAAkB,KACgB;CAC3C,MAAM,YAAYC,wDAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAIC,gEAA2B,EACnC,mBAAmBC,2DAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAKC,0DAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMC,mDAAY,OAAO;AAEzB,QAAO"}
1
+ {"version":3,"file":"migrateFromFireblocks-Dyh2dGWB.cjs","names":["BaseError","getWalletProviderFromWalletAccount","isWaasWalletProvider","NotWaasWalletAccountError","getDefaultClient","getWalletProviders","NoWalletProviderFoundError","DYNAMIC_WAAS_METADATA","isWaasWalletProvider","refreshAuth"],"sources":["../src/errors/NotWaasWalletProviderError.ts","../src/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.ts","../src/modules/waas/migrateFromFireblocks/migrateFromFireblocks.ts"],"sourcesContent":["import { BaseError } from './base';\n\ntype NotWaasWalletProviderErrorParams = {\n walletProviderKey: string;\n};\n\nexport class NotWaasWalletProviderError extends BaseError {\n constructor({ walletProviderKey }: NotWaasWalletProviderErrorParams) {\n super({\n cause: null,\n code: 'not_waas_wallet_provider_error',\n docsUrl: null,\n name: 'NotWaasWalletProviderError',\n shortMessage: `Wallet provider ${walletProviderKey} is not a Dynamic WaaS wallet provider`,\n });\n }\n}\n","import type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { NotWaasWalletAccountError } from '../../../errors/NotWaasWalletAccountError';\nimport { getWalletProviderFromWalletAccount } from '../../wallets/utils/getWalletProviderFromWalletAccount';\nimport type { WalletAccount } from '../../wallets/walletAccount';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\nimport type { WaasWalletProvider } from '../waas.types';\n\ntype GetWalletProviderFromWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getWaasWalletProviderFromWalletAccount = (\n { walletAccount }: GetWalletProviderFromWalletAccountParams,\n client: DynamicClient\n): WaasWalletProvider => {\n const walletProvider = getWalletProviderFromWalletAccount(\n { walletAccount },\n client\n );\n\n if (!isWaasWalletProvider(walletProvider)) {\n throw new NotWaasWalletAccountError({\n walletAddress: walletAccount.address,\n });\n }\n\n return walletProvider;\n};\n","import type { MigrateFromFireblocksResponse } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { NotWaasWalletProviderError } from '../../../errors/NotWaasWalletProviderError';\nimport { refreshAuth } from '../../user/refreshAuth';\nimport { getWalletProviders } from '../../wallets/getWalletProviders';\nimport { DYNAMIC_WAAS_METADATA } from '../constants';\nimport { isWaasWalletProvider } from '../isWaasWalletProvider';\n\ntype MigrateFromFireblocksParams = {\n /**\n * Optional SLIP-0044 coin types per chain name for BIP44 derivation off the\n * Fireblocks takeover xprv (e.g. `{ EVM: 1 }` for Sepolia).\n */\n coinTypes?: Record<string, number>;\n /**\n * The Fireblocks NCW device id whose key material is being migrated.\n */\n deviceId: string;\n /**\n * Required per-chain expected wallet address (the address Fireblocks held). Its\n * keys are the chains migration runs on, and the migration iframe verifies each\n * imported Dynamic address matches the value, so a wrong derivation fails loudly\n * instead of producing an unusable wallet.\n */\n expectedAddresses: Record<string, string>;\n /**\n * The Fireblocks-issued JWT authorizing the takeover.\n */\n jwt: string;\n /**\n * The password that encrypted the legacy Fireblocks NCW device storage.\n */\n password: string;\n /**\n * The serialized Fireblocks NCW device storage (the local key share backup).\n */\n storage: Record<string, string>;\n};\n\n/**\n * Migrates an existing Fireblocks NCW wallet into Dynamic's WaaS infrastructure.\n *\n * Migration is a single cross-chain operation: one call takes over the Fireblocks\n * key material and provisions Dynamic WaaS wallet accounts for every supported\n * chain. Because it is not per-chain, this resolves a single WaaS wallet provider\n * (any registered chain) and delegates the takeover to it.\n *\n * @param params.deviceId - The Fireblocks NCW device id being migrated.\n * @param params.jwt - The Fireblocks-issued JWT authorizing the takeover.\n * @param params.storage - The serialized Fireblocks NCW device storage.\n * @param params.password - The password that encrypted the legacy device storage.\n * @param params.expectedAddresses - Required per-chain expected address; its keys are the chains migration runs on, and each imported address is verified against it.\n * @param [params.coinTypes] - Optional SLIP-0044 coin types per chain name.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise resolving to the per-chain migration results.\n * @notInstrumented\n */\nexport const migrateFromFireblocks = async (\n {\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n }: MigrateFromFireblocksParams,\n client = getDefaultClient()\n): Promise<MigrateFromFireblocksResponse> => {\n const providers = getWalletProviders(client);\n\n if (providers.length === 0) {\n throw new NoWalletProviderFoundError({\n walletProviderKey: DYNAMIC_WAAS_METADATA.displayName,\n });\n }\n\n // Migration is cross-chain, so any registered WaaS provider can drive the\n // takeover. Resolve the first one rather than iterating per chain.\n const waasProvider = providers.find(isWaasWalletProvider);\n\n if (!waasProvider) {\n throw new NotWaasWalletProviderError({\n walletProviderKey: providers[0].key,\n });\n }\n\n const result = await waasProvider.migrateFromFireblocks({\n coinTypes,\n deviceId,\n expectedAddresses,\n jwt,\n password,\n storage,\n });\n\n await refreshAuth(client);\n\n return result;\n};\n"],"mappings":";;;;AAMA,IAAa,6BAAb,cAAgDA,+CAAU;CACxD,YAAY,EAAE,qBAAuD;AACnE,QAAM;GACJ,OAAO;GACP,MAAM;GACN,SAAS;GACT,MAAM;GACN,cAAc,mBAAmB,kBAAkB;GACpD,CAAC;;;;;;;ACFN,MAAa,0CACX,EAAE,iBACF,WACuB;CACvB,MAAM,iBAAiBC,wEACrB,EAAE,eAAe,EACjB,OACD;AAED,KAAI,CAACC,0DAAqB,eAAe,CACvC,OAAM,IAAIC,uDAA0B,EAClC,eAAe,cAAc,SAC9B,CAAC;AAGJ,QAAO;;;;;;;;;;;;;;;;;;;;;;;ACgCT,MAAa,wBAAwB,OACnC,EACE,WACA,UACA,mBACA,KACA,UACA,WAEF,SAASC,uDAAkB,KACgB;CAC3C,MAAM,YAAYC,wDAAmB,OAAO;AAE5C,KAAI,UAAU,WAAW,EACvB,OAAM,IAAIC,gEAA2B,EACnC,mBAAmBC,2DAAsB,aAC1C,CAAC;CAKJ,MAAM,eAAe,UAAU,KAAKC,0DAAqB;AAEzD,KAAI,CAAC,aACH,OAAM,IAAI,2BAA2B,EACnC,mBAAmB,UAAU,GAAG,KACjC,CAAC;CAGJ,MAAM,SAAS,MAAM,aAAa,sBAAsB;EACtD;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAEF,OAAMC,mDAAY,OAAO;AAEzB,QAAO"}
@@ -3,6 +3,7 @@ export type JwtPayload = {
3
3
  exp: number;
4
4
  iat: number;
5
5
  scope: string;
6
+ sessionPublicKey?: string;
6
7
  singleUse?: boolean;
7
8
  sub: string;
8
9
  };
@@ -21,7 +22,7 @@ export type JwtPayload = {
21
22
  * const payload = decodeJwt(jwt);
22
23
  * // Returns: { scopes: ['wallet:export'], exp: 1234567890, ... }
23
24
  * ```
24
- * @notInstrumented
25
+ * @notInstrumented
25
26
  */
26
27
  export declare const decodeJwt: (jwt: string) => JwtPayload;
27
28
  //# sourceMappingURL=decodeJwt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decodeJwt.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/decodeJwt/decodeJwt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,UA4BvC,CAAC"}
1
+ {"version":3,"file":"decodeJwt.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/decodeJwt/decodeJwt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,UA4BvC,CAAC"}
@@ -4,5 +4,5 @@
4
4
  * Surfaced in Datadog logout events so we can understand why users are being
5
5
  * signed out.
6
6
  */
7
- export type LogoutReason = 'user-intent' | 'token-expired' | 'keychain-migration-failed' | 'keychain-key-missing' | 'session-refresh-unauthorized' | 'user-refresh-failed' | 'user-deleted' | 'device-revoked' | 'all-devices-revoked' | 'business-account-ownership-transferred';
7
+ export type LogoutReason = 'user-intent' | 'token-expired' | 'keychain-migration-failed' | 'keychain-key-missing' | 'session-public-key-mismatch' | 'session-refresh-unauthorized' | 'user-refresh-failed' | 'user-deleted' | 'device-revoked' | 'all-devices-revoked' | 'business-account-ownership-transferred';
8
8
  //# sourceMappingURL=logoutReason.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logoutReason.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/logoutReason.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,eAAe,GACf,2BAA2B,GAC3B,sBAAsB,GACtB,8BAA8B,GAC9B,qBAAqB,GACrB,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,wCAAwC,CAAC"}
1
+ {"version":3,"file":"logoutReason.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/logoutReason.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,eAAe,GACf,2BAA2B,GAC3B,sBAAsB,GACtB,6BAA6B,GAC7B,8BAA8B,GAC9B,qBAAqB,GACrB,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,wCAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
1
+ {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gBAAgB,mEAuK5B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ /**
3
+ * Signs the user out when the local session key no longer matches the
4
+ * `sessionPublicKey` claim carried by the current token.
5
+ *
6
+ * The claim is captured once at sign-in and carried forward unchanged on
7
+ * every token refresh (it is not re-derived from the client's current
8
+ * session key). If the local session key is regenerated afterwards — e.g. a
9
+ * re-init racing a token refresh, or storage being partially cleared — every
10
+ * subsequent request keeps signing with the new key while asserting the
11
+ * stale claim, and is rejected server-side with `invalid_nonce_signature`
12
+ * forever, since retrying never re-syncs the claim. Signing out forces a
13
+ * fresh sign-in, which is the only flow that re-captures the claim from the
14
+ * client's current key.
15
+ * @notInstrumented
16
+ */
17
+ export declare const logoutIfSessionPublicKeyMismatched: (client: DynamicClient) => Promise<void>;
18
+ //# sourceMappingURL=logoutIfSessionPublicKeyMismatched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logoutIfSessionPublicKeyMismatched.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kCAAkC,WACrC,aAAa,kBA8BtB,CAAC"}
@@ -1,11 +1,11 @@
1
- import type { WalletAccount } from '../../../wallets/walletAccount';
1
+ import type { WaasWalletAccount } from '../../waas.types';
2
2
  import type { BusinessAccountSignerType, TargetIdentity } from '../businessAccounts.types';
3
3
  type AddSignerParams = {
4
4
  businessAccountId?: string;
5
5
  password?: string;
6
6
  signerType?: BusinessAccountSignerType;
7
7
  targetIdentity: TargetIdentity;
8
- walletAccount: WalletAccount;
8
+ walletAccount: WaasWalletAccount;
9
9
  walletId?: string;
10
10
  };
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"addBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKpE,OAAO,KAAK,EAEV,yBAAyB,EACzB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,eAAe,GAAG;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,0FAQhC,eAAe,2DAEjB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CA0DhC,CAAC"}
1
+ {"version":3,"file":"addBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,KAAK,EAEV,yBAAyB,EACzB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,eAAe,GAAG;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,0FAQhC,eAAe,2DAEjB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CA0DhC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { WaasShareSet, WaasWalletShareSetType } from '@dynamic-labs/sdk-api-core';
2
+ import type { WaasWalletAccount } from '../waas.types';
3
+ type GetWalletAccountShareSetsParams = {
4
+ walletAccount: WaasWalletAccount;
5
+ };
6
+ export type WalletAccountOwnShareSet = {
7
+ shareSetId: string;
8
+ shareSetType?: WaasWalletShareSetType;
9
+ };
10
+ export type WalletAccountShareSets = {
11
+ /** Other active share sets on the same wallet (e.g. a delegated share set); empty when there are none. */
12
+ others: WaasShareSet[];
13
+ /** This wallet account's own share set — the one this auth principal signs with. Undefined when the account carries no share set data. */
14
+ own?: WalletAccountOwnShareSet;
15
+ };
16
+ /**
17
+ * No network request. Share set ids rotate on refresh/reshare (stale ids are
18
+ * rejected server-side), so re-read rather than cache; non-WaaS accounts
19
+ * return `{ own: undefined, others: [] }` instead of throwing.
20
+ *
21
+ * @param params.walletAccount - The WaaS wallet account whose share sets to read.
22
+ * @returns The account's own share set (if any) and the wallet's other active share sets.
23
+ * @notInstrumented
24
+ */
25
+ export declare const getWalletAccountShareSets: ({ walletAccount, }: GetWalletAccountShareSetsParams) => WalletAccountShareSets;
26
+ export {};
27
+ //# sourceMappingURL=getWalletAccountShareSets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWalletAccountShareSets.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,KAAK,+BAA+B,GAAG;IACrC,aAAa,EAAE,iBAAiB,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,0GAA0G;IAC1G,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,0IAA0I;IAC1I,GAAG,CAAC,EAAE,wBAAwB,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,KAAG,sBAYpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getWalletAccountShareSets } from './getWalletAccountShareSets';
2
+ export type { WalletAccountOwnShareSet, WalletAccountShareSets, } from './getWalletAccountShareSets';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWalletAccountShareSets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EACV,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { JwtVerifiedCredential, WaasShareSet, WaasWalletShareSetType } from '@dynamic-labs/sdk-api-core';
2
+ import type { WalletAccount } from '../../wallets/walletAccount';
3
+ type InjectWaasVerifiedCredentialFieldsParams = {
4
+ verifiedCredential: JwtVerifiedCredential;
5
+ walletAccount: WalletAccount;
6
+ };
7
+ /**
8
+ * Layers the WaaS-only fields (business account ownership, share-set
9
+ * identity) onto an otherwise-generic `WalletAccount`, read from the same
10
+ * verified credential it was built from. Isolated into its own function,
11
+ * called on top of the assembled `WalletAccount`, rather than inlined into
12
+ * `convertVerifiedCredentialToWalletAccount` — that keeps the WaaS-only
13
+ * shape of the augmented result out of the wallets module, which builds
14
+ * only the generic `WalletAccount`.
15
+ *
16
+ * @notInstrumented
17
+ */
18
+ export declare const injectWaasVerifiedCredentialFields: ({ verifiedCredential, walletAccount, }: InjectWaasVerifiedCredentialFieldsParams) => WalletAccount & {
19
+ businessAccountId?: string;
20
+ otherShareSets?: WaasShareSet[];
21
+ shareSetId?: string;
22
+ shareSetType?: WaasWalletShareSetType;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=injectWaasVerifiedCredentialFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectWaasVerifiedCredentialFields.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,KAAK,wCAAwC,GAAG;IAC9C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,2CAG5C,wCAAwC,KAAG,aAAa,GAAG;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CAStC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type WaasPolicyLayerResponse, type WaasPolicyLayerRuleOperation } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ import type { ResolvedPolicyScope } from '../resolvePolicyScope';
4
+ type ApplyPolicyLayerBatchParams = {
5
+ operations: WaasPolicyLayerRuleOperation[];
6
+ resolvedScope: ResolvedPolicyScope;
7
+ };
8
+ /**
9
+ * Applies a batch of rule operations to the policy layer a
10
+ * {@link ResolvedPolicyScope} points at, atomically in one enclave cycle.
11
+ * Shared by {@link createPolicy} and {@link removePolicyRules} so the
12
+ * account-vs-wallet-vs-signer branch is written once.
13
+ *
14
+ * @notInstrumented
15
+ */
16
+ export declare const applyPolicyLayerBatch: ({ operations, resolvedScope }: ApplyPolicyLayerBatchParams, client: DynamicClient) => Promise<WaasPolicyLayerResponse>;
17
+ export {};
18
+ //# sourceMappingURL=applyPolicyLayerBatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyPolicyLayerBatch.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EAGlC,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,2BAA2B,GAAG;IACjC,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C,aAAa,EAAE,mBAAmB,CAAC;CACpC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,kCACD,2BAA2B,UAClD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CA4CjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { applyPolicyLayerBatch } from './applyPolicyLayerBatch';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/applyPolicyLayerBatch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { BuildRuleParams } from '../policies.types';
3
+ /**
4
+ * Builds the `allowAddresses` rule, absorbing a sibling
5
+ * `maxAmountPerTransaction` onto the same rule instead of letting it emit
6
+ * its own — see `buildMaxAmountPerTransactionRule`.
7
+ * @notInstrumented
8
+ */
9
+ export declare const buildAllowAddressesRule: ({ context: { chain, chainIds }, rules, }: BuildRuleParams) => WaasPolicyRule | undefined;
10
+ //# sourceMappingURL=buildAllowAddressesRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAllowAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,6CAGjC,eAAe,KAAG,cAAc,GAAG,SAcrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildAllowAddressesRule } from './buildAllowAddressesRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildAllowAddressesRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRuleInput } from '../policies.types';
3
+ /**
4
+ * Builds a policy rule that permits the described action.
5
+ *
6
+ * @param rule - The rule fields (name, chain, and any targeting/limit fields).
7
+ * @returns A `WaasPolicyRule` with `ruleType` set to `allow`.
8
+ * @notInstrumented
9
+ */
10
+ export declare const buildAllowPolicyRule: (rule: PolicyRuleInput) => WaasPolicyRule;
11
+ //# sourceMappingURL=buildAllowPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAllowPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,SAAU,eAAe,KAAG,cAG3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildAllowPolicyRule } from './buildAllowPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildAllowPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { BuildRuleParams } from '../policies.types';
3
+ /**
4
+ * Builds the `blockExport` rule. `deny`, not `allow`: an addressless
5
+ * allow-rule normalizes to an empty allowed-set, denying every transaction.
6
+ * `chain`/`chainIds` are stamped for consistency but the enforcement of a
7
+ * `blockExport` `operationRestrictions` rule is wallet-wide, ignoring them.
8
+ * @notInstrumented
9
+ */
10
+ export declare const buildBlockExportRule: ({ context: { chain, chainIds }, rules, }: BuildRuleParams) => WaasPolicyRule | undefined;
11
+ //# sourceMappingURL=buildBlockExportRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildBlockExportRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,6CAG9B,eAAe,KAAG,cAAc,GAAG,SAUrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildBlockExportRule } from './buildBlockExportRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildBlockExportRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { BuildRuleParams } from '../policies.types';
3
+ /**
4
+ * Builds the `denyAddresses` rule. Independent of `allowAddresses`.
5
+ * @notInstrumented
6
+ */
7
+ export declare const buildDenyAddressesRule: ({ context: { chain, chainIds }, rules, }: BuildRuleParams) => WaasPolicyRule | undefined;
8
+ //# sourceMappingURL=buildDenyAddressesRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDenyAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,6CAGhC,eAAe,KAAG,cAAc,GAAG,SAWrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildDenyAddressesRule } from './buildDenyAddressesRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildDenyAddressesRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRuleInput } from '../policies.types';
3
+ /**
4
+ * Builds a policy rule that blocks the described action.
5
+ *
6
+ * @param rule - The rule fields (name, chain, and any targeting/limit fields).
7
+ * @returns A `WaasPolicyRule` with `ruleType` set to `deny`.
8
+ * @notInstrumented
9
+ */
10
+ export declare const buildDenyPolicyRule: (rule: PolicyRuleInput) => WaasPolicyRule;
11
+ //# sourceMappingURL=buildDenyPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDenyPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,SAAU,eAAe,KAAG,cAG1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildDenyPolicyRule } from './buildDenyPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildDenyPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { BuildRuleParams } from '../policies.types';
3
+ /**
4
+ * Builds the standalone `maxAmountPerTransaction` rule. Only fires when
5
+ * `allowAddresses` didn't already absorb this cap onto its own rule. `deny`
6
+ * for the same reason as `blockExport`'s builder.
7
+ * @notInstrumented
8
+ */
9
+ export declare const buildMaxAmountPerTransactionRule: ({ context: { chain, chainIds }, rules, }: BuildRuleParams) => WaasPolicyRule | undefined;
10
+ //# sourceMappingURL=buildMaxAmountPerTransactionRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildMaxAmountPerTransactionRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,6CAG1C,eAAe,KAAG,cAAc,GAAG,SAYrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildMaxAmountPerTransactionRule } from './buildMaxAmountPerTransactionRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildMaxAmountPerTransactionRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type WaasChainEnum, type WaasPolicyLayerRuleOperation, type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ type BuildOperationForExistingRuleParams = {
4
+ chain: WaasChainEnum;
5
+ chainIds: number[];
6
+ existingRule: WaasPolicyRule;
7
+ rules: (keyof PolicyRules)[];
8
+ };
9
+ /**
10
+ * Builds the operation to remove or rebuild `existingRule` when the
11
+ * caller's requested keys touch it — outright removal when every key it
12
+ * covers is being removed, or an upsert of the rule rebuilt from its
13
+ * remaining keys when only some are. Returns undefined when none of the
14
+ * requested keys touch this rule, when it's outside the sugar vocabulary,
15
+ * or when it can't be identified without a `ruleId`.
16
+ *
17
+ * @param params.chain - The chain the rule to remove/rebuild applies to.
18
+ * @param params.chainIds - The chain ids the rule to remove/rebuild applies to.
19
+ * @param params.existingRule - The existing layer rule to check.
20
+ * @param params.rules - The sugar keys to remove.
21
+ * @returns The operation for this rule, or undefined when it isn't touched.
22
+ * @notInstrumented
23
+ */
24
+ export declare const buildOperationForExistingRule: ({ chain, chainIds, existingRule, rules, }: BuildOperationForExistingRuleParams) => WaasPolicyLayerRuleOperation | undefined;
25
+ export {};
26
+ //# sourceMappingURL=buildOperationForExistingRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildOperationForExistingRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,4BAA4B,EAEjC,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,KAAK,mCAAmC,GAAG;IACzC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,cAAc,CAAC;IAC7B,KAAK,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,8CAKvC,mCAAmC,KAAG,4BAA4B,GAAG,SA6CvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildOperationForExistingRule } from './buildOperationForExistingRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildOperationForExistingRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type WaasPolicyLayerRuleOperation, type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
2
+ import type { PolicyRules } from '../policies.types';
3
+ type BuildOperationsForRuleParams = {
4
+ builtRule: WaasPolicyRule;
5
+ consumedRuleIds: Set<string>;
6
+ existingRulesInScope: WaasPolicyRule[];
7
+ rules: PolicyRules;
8
+ };
9
+ /**
10
+ * Upserts `builtRule` onto the existing rule it reuses (if any), and
11
+ * removes every rule that rule superseded. Mutates `consumedRuleIds` so a
12
+ * later call for a different built rule never reuses or removes the same
13
+ * existing rule twice.
14
+ *
15
+ * @param params.builtRule - The newly built rule to turn into batch operations.
16
+ * @param params.consumedRuleIds - `ruleId`s already reused or removed for a prior built rule this call.
17
+ * @param params.existingRulesInScope - The layer's rules already narrowed to the target chain scope.
18
+ * @param params.rules - The caller's requested {@link PolicyRules} sugar map.
19
+ * @returns The batch operations for this built rule — one upsert, plus a remove per superseded rule.
20
+ * @notInstrumented
21
+ */
22
+ export declare const buildOperationsForRule: ({ builtRule, consumedRuleIds, existingRulesInScope, rules, }: BuildOperationsForRuleParams) => WaasPolicyLayerRuleOperation[];
23
+ export {};
24
+ //# sourceMappingURL=buildOperationsForRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildOperationsForRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,KAAK,4BAA4B,GAAG;IAClC,SAAS,EAAE,cAAc,CAAC;IAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,EAAE,cAAc,EAAE,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,iEAKhC,4BAA4B,KAAG,4BAA4B,EAgC7D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildOperationsForRule } from './buildOperationsForRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildOperationsForRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { PolicyRuleMaxAmountPerTransaction } from '../policies.types';
2
+ /**
3
+ * Turns a {@link PolicyRuleMaxAmountPerTransaction} into the `valueLimit` shape a rule stores it as.
4
+ * @notInstrumented
5
+ */
6
+ export declare const buildValueLimit: ({ amount, asset, }: PolicyRuleMaxAmountPerTransaction) => {
7
+ asset: string | undefined;
8
+ maxPerCall: string;
9
+ };
10
+ //# sourceMappingURL=buildValueLimit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildValueLimit.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildValueLimit/buildValueLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,eAAe,uBAGzB,iCAAiC;;;CAGlC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildValueLimit } from './buildValueLimit';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/buildValueLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,39 @@
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 CreatePolicyParams = {
5
+ chain: WaasChainEnum;
6
+ chainIds?: number[];
7
+ rules: PolicyRules;
8
+ scope: PolicyScope;
9
+ };
10
+ /**
11
+ * Creates or updates a wallet's, signer's, or business account's policy rules from the
12
+ * {@link PolicyRules} sugar map, in one atomic `batch` PATCH. Each key in
13
+ * `rules` maps to at most one underlying rule, so calling this twice with
14
+ * the same map updates that rule in place instead of duplicating it.
15
+ *
16
+ * Known race: no ETag / optimistic-concurrency check — concurrent calls for
17
+ * the same scope can both read-then-write and duplicate a rule.
18
+ *
19
+ * When more than one existing rule matches the same sugar key(s), only
20
+ * rules being absorbed into the newly built rule (i.e. no other match
21
+ * claims the same key) are removed. Two rules that duplicate the same key
22
+ * (e.g. two hand-authored `denyAddresses` rules for this chain scope) are
23
+ * left as-is rather than one being silently deleted — this call updates the
24
+ * lexicographically-smallest-`ruleId` match in place and leaves the rest
25
+ * untouched. A caller repeating this call will not converge on a single
26
+ * rule; the duplicate has to be removed by hand.
27
+ *
28
+ * @param params.scope - Which policy layer to update — see {@link resolvePolicyScope}.
29
+ * @param params.chain - The chain the rules apply to.
30
+ * @param params.chainIds - The chain ids the rules apply to; omit for a wildcard rule that matches every chain id of `chain`.
31
+ * @param params.rules - The desired rules, as a {@link PolicyRules} sugar map.
32
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
33
+ * @returns The policy layer as it stands after the batch is applied.
34
+ * @throws When `rules` produces no recognized keys, or via {@link resolvePolicyScope}'s scope-resolution errors.
35
+ * @notInstrumented
36
+ */
37
+ export declare const createPolicy: ({ chain, chainIds, rules, scope }: CreatePolicyParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
38
+ export {};
39
+ //# sourceMappingURL=createPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPolicy.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/createPolicy/createPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAE7B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIlE,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,YAAY,sCACY,kBAAkB,WAC7C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CA8CjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createPolicy } from './createPolicy';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/createPolicy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}