@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.
- package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewHost.kt +8 -3
- package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewModule.kt +27 -0
- package/dist/core.cjs +30 -7
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +30 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +32 -9
- package/dist/core.native.esm.js.map +1 -1
- package/dist/exports/waas.d.ts +26 -2
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js} +2 -2
- package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js.map → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs → getNetworkProviderFromNetworkId-BsmqXKF_.cjs} +2 -2
- package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs.map → getNetworkProviderFromNetworkId-BsmqXKF_.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js → getNetworkProviderFromNetworkId-DReHSnab.native.esm.js} +7 -7
- package/dist/getNetworkProviderFromNetworkId-DReHSnab.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BncZzHdQ.esm.js → getSignedSessionId-CLvqM34v.esm.js} +3 -3
- package/dist/{getSignedSessionId-BncZzHdQ.esm.js.map → getSignedSessionId-CLvqM34v.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-gwqj9h2p.cjs → getSignedSessionId-CcV_jWux.cjs} +3 -3
- package/dist/{getSignedSessionId-gwqj9h2p.cjs.map → getSignedSessionId-CcV_jWux.cjs.map} +1 -1
- package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js → getSignedSessionId-DdslNjRv.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js.map → getSignedSessionId-DdslNjRv.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-CnpXHkmq.cjs → getWalletProviderByKey-BMsrnfN2.cjs} +2 -2
- package/dist/{getWalletProviderByKey-CnpXHkmq.cjs.map → getWalletProviderByKey-BMsrnfN2.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js → getWalletProviderByKey-BtcGKhh6.native.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js.map → getWalletProviderByKey-BtcGKhh6.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js → getWalletProviderByKey-FfQmRcK1.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js.map → getWalletProviderByKey-FfQmRcK1.esm.js.map} +1 -1
- package/dist/index.cjs +41 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +41 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +44 -9
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js → isDynamicWaasEnabled-B8e0N7Bb.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js.map → isDynamicWaasEnabled-B8e0N7Bb.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs → isDynamicWaasEnabled-DT4jhqkC.cjs} +2 -2
- package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs.map → isDynamicWaasEnabled-DT4jhqkC.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js → isDynamicWaasEnabled-GTkHpRu6.native.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js.map → isDynamicWaasEnabled-GTkHpRu6.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BjRiou3K.cjs → isMfaRequiredForAction-9ZrKcsTN.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-BjRiou3K.cjs.map → isMfaRequiredForAction-9ZrKcsTN.cjs.map} +1 -1
- package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js → isMfaRequiredForAction-DRqf4xyv.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js.map → isMfaRequiredForAction-DRqf4xyv.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js → isMfaRequiredForAction-e4Bdq2tD.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js.map → isMfaRequiredForAction-e4Bdq2tD.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js → isUserOnboardingComplete-Bq_7_Fck.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js.map → isUserOnboardingComplete-Bq_7_Fck.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs → isUserOnboardingComplete-DINsEIfi.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs.map → isUserOnboardingComplete-DINsEIfi.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js → isUserOnboardingComplete-DKt0bwXg.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js.map → isUserOnboardingComplete-DKt0bwXg.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js → migrateFromFireblocks-3naM4iCQ.native.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js.map → migrateFromFireblocks-3naM4iCQ.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js → migrateFromFireblocks-DbTnFE38.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js.map → migrateFromFireblocks-DbTnFE38.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-Dg6igmRk.cjs → migrateFromFireblocks-Dyh2dGWB.cjs} +3 -3
- package/dist/{migrateFromFireblocks-Dg6igmRk.cjs.map → migrateFromFireblocks-Dyh2dGWB.cjs.map} +1 -1
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +2 -1
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts.map +1 -1
- package/dist/modules/auth/logoutReason.d.ts +1 -1
- package/dist/modules/auth/logoutReason.d.ts.map +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts +18 -0
- package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +2 -2
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts +27 -0
- package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts.map +1 -0
- package/dist/modules/waas/getWalletAccountShareSets/index.d.ts +3 -0
- package/dist/modules/waas/getWalletAccountShareSets/index.d.ts.map +1 -0
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +25 -0
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -0
- package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts +18 -0
- package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts.map +1 -0
- package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts +2 -0
- package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts +10 -0
- package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts +11 -0
- package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts +11 -0
- package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts +8 -0
- package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts +11 -0
- package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts +10 -0
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts +26 -0
- package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts +24 -0
- package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts +10 -0
- package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts.map +1 -0
- package/dist/modules/waas/policies/buildValueLimit/index.d.ts +2 -0
- package/dist/modules/waas/policies/buildValueLimit/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts +39 -0
- package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts.map +1 -0
- package/dist/modules/waas/policies/createPolicy/index.d.ts +2 -0
- package/dist/modules/waas/policies/createPolicy/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts +23 -0
- package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts.map +1 -0
- package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts +2 -0
- package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts +22 -0
- package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts.map +1 -0
- package/dist/modules/waas/policies/expandPolicyRules/index.d.ts +2 -0
- package/dist/modules/waas/policies/expandPolicyRules/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts +26 -0
- package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts.map +1 -0
- package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts +2 -0
- package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts +22 -0
- package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts.map +1 -0
- package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts +3 -0
- package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts +18 -0
- package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts.map +1 -0
- package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts +2 -0
- package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts +34 -0
- package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts.map +1 -0
- package/dist/modules/waas/policies/getPolicy/index.d.ts +2 -0
- package/dist/modules/waas/policies/getPolicy/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts +16 -0
- package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts.map +1 -0
- package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts +2 -0
- package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts +25 -0
- package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts.map +1 -0
- package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts +2 -0
- package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts +20 -0
- package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts.map +1 -0
- package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts +2 -0
- package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts +7 -0
- package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts.map +1 -0
- package/dist/modules/waas/policies/hasAddresses/index.d.ts +2 -0
- package/dist/modules/waas/policies/hasAddresses/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts +6 -0
- package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts.map +1 -0
- package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts +2 -0
- package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts +2 -0
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts +14 -0
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map +1 -0
- package/dist/modules/waas/policies/matchExistingRules/index.d.ts +3 -0
- package/dist/modules/waas/policies/matchExistingRules/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts +33 -0
- package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts.map +1 -0
- package/dist/modules/waas/policies/policies.types.d.ts +91 -0
- package/dist/modules/waas/policies/policies.types.d.ts.map +1 -0
- package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts +10 -0
- package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts.map +1 -0
- package/dist/modules/waas/policies/policyRuleKinds.d.ts +34 -0
- package/dist/modules/waas/policies/policyRuleKinds.d.ts.map +1 -0
- package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts +9 -0
- package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/readBlockExportRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/readBlockExportRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts +8 -0
- package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/readCoveredRule/index.d.ts +3 -0
- package/dist/modules/waas/policies/readCoveredRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts +31 -0
- package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts +8 -0
- package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts +8 -0
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/readValueLimit/index.d.ts +2 -0
- package/dist/modules/waas/policies/readValueLimit/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts +10 -0
- package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts +20 -0
- package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/removePolicyRules/index.d.ts +2 -0
- package/dist/modules/waas/policies/removePolicyRules/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts +30 -0
- package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts +25 -0
- package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts +22 -0
- package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts +3 -0
- package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts +31 -0
- package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts.map +1 -0
- package/dist/modules/waas/policies/resolveRuleName/index.d.ts +2 -0
- package/dist/modules/waas/policies/resolveRuleName/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts +20 -0
- package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts.map +1 -0
- package/dist/modules/waas/policies/sameChainIds/index.d.ts +2 -0
- package/dist/modules/waas/policies/sameChainIds/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts +14 -0
- package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts.map +1 -0
- package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts +2 -0
- package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts +12 -0
- package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts +24 -0
- package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts +28 -0
- package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts +2 -0
- package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts.map +1 -0
- package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts +25 -0
- package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts.map +1 -0
- package/dist/modules/waas/signSerializedTransaction/index.d.ts +2 -0
- package/dist/modules/waas/signSerializedTransaction/index.d.ts.map +1 -0
- package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts +23 -0
- package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts.map +1 -0
- package/dist/modules/waas/waas.types.d.ts +22 -1
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts +0 -2
- package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +1 -0
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-DcwFCD-Y.esm.js → updateAuthFromVerifyResponse-B42kkGLd.esm.js} +38 -15
- package/dist/updateAuthFromVerifyResponse-B42kkGLd.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-DD_rZDrQ.cjs → updateAuthFromVerifyResponse-CePaJzru.cjs} +43 -14
- package/dist/updateAuthFromVerifyResponse-CePaJzru.cjs.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js → updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js} +38 -15
- package/dist/updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js.map +1 -0
- package/dist/utils/objectKeys/index.d.ts +2 -0
- package/dist/utils/objectKeys/index.d.ts.map +1 -0
- package/dist/utils/objectKeys/objectKeys.d.ts +8 -0
- package/dist/utils/objectKeys/objectKeys.d.ts.map +1 -0
- package/dist/waas.cjs +1198 -4
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +1176 -7
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +1176 -7
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +6 -6
- package/dist/waasCore.esm.js +6 -6
- package/dist/waasCore.native.esm.js +6 -6
- package/package.json +4 -4
- package/dist/getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-DD_rZDrQ.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-DcwFCD-Y.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js.map +0 -1
package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js.map → migrateFromFireblocks-DbTnFE38.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrateFromFireblocks-
|
|
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-
|
|
2
|
-
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-
|
|
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-
|
|
82
|
+
//# sourceMappingURL=migrateFromFireblocks-Dyh2dGWB.cjs.map
|
package/dist/{migrateFromFireblocks-Dg6igmRk.cjs.map → migrateFromFireblocks-Dyh2dGWB.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrateFromFireblocks-
|
|
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
|
-
|
|
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":"
|
|
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"}
|
package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
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:
|
|
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":"
|
|
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 @@
|
|
|
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"}
|
package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|
package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|