@dynamic-labs-sdk/client 1.33.2 → 1.33.4
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/dist/{apiClient-B0eCQXEJ.native.esm.js → apiClient-BGh68_e6.native.esm.js} +3 -3
- package/dist/{apiClient-B0eCQXEJ.native.esm.js.map → apiClient-BGh68_e6.native.esm.js.map} +1 -1
- package/dist/core.cjs +5 -78
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +6 -77
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +8 -79
- package/dist/core.native.esm.js.map +1 -1
- package/dist/exports/core.d.ts +0 -2
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +13 -1
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CgxCy8qP.esm.js → getNetworkProviderFromNetworkId-BqiVs3Ni.esm.js} +2 -2
- package/dist/{getNetworkProviderFromNetworkId-CgxCy8qP.esm.js.map → getNetworkProviderFromNetworkId-BqiVs3Ni.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DaxDzIv4.cjs → getNetworkProviderFromNetworkId-C_bqlRFD.cjs} +2 -2
- package/dist/{getNetworkProviderFromNetworkId-DaxDzIv4.cjs.map → getNetworkProviderFromNetworkId-C_bqlRFD.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-OXG2gPby.native.esm.js → getNetworkProviderFromNetworkId-TczZgKDH.native.esm.js} +8 -8
- package/dist/getNetworkProviderFromNetworkId-TczZgKDH.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-DdMeCIV-.esm.js → getSignedSessionId-DRJW9tb8.esm.js} +3 -3
- package/dist/{getSignedSessionId-DdMeCIV-.esm.js.map → getSignedSessionId-DRJW9tb8.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-KiBgLtda.cjs → getSignedSessionId-Dc6_q9ph.cjs} +3 -3
- package/dist/{getSignedSessionId-KiBgLtda.cjs.map → getSignedSessionId-Dc6_q9ph.cjs.map} +1 -1
- package/dist/{getSignedSessionId-B2s2UuwJ.native.esm.js → getSignedSessionId-h-zAmDnk.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-B2s2UuwJ.native.esm.js.map → getSignedSessionId-h-zAmDnk.native.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-DzZ-0SaQ.esm.js → getVerifiedCredentialForWalletAccount-BWtWpYjd.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-DzZ-0SaQ.esm.js.map → getVerifiedCredentialForWalletAccount-BWtWpYjd.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-y2drOcyb.cjs → getVerifiedCredentialForWalletAccount-CgI__iTv.cjs} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-y2drOcyb.cjs.map → getVerifiedCredentialForWalletAccount-CgI__iTv.cjs.map} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +10 -10
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-By7uHgpn.cjs → isMfaRequiredForAction-Aov24tU3.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-By7uHgpn.cjs.map → isMfaRequiredForAction-Aov24tU3.cjs.map} +1 -1
- package/dist/{isMfaRequiredForAction-CXuuO-wy.native.esm.js → isMfaRequiredForAction-FW_GM4tb.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CXuuO-wy.native.esm.js.map → isMfaRequiredForAction-FW_GM4tb.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BLegdReE.esm.js → isMfaRequiredForAction-mcAjTfRu.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-BLegdReE.esm.js.map → isMfaRequiredForAction-mcAjTfRu.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-Bvh4NLBz.esm.js → isUserOnboardingComplete-BTvFsIW7.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-Bvh4NLBz.esm.js.map → isUserOnboardingComplete-BTvFsIW7.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-hn1rWlA-.native.esm.js → isUserOnboardingComplete-BzEm_9UF.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-hn1rWlA-.native.esm.js.map → isUserOnboardingComplete-BzEm_9UF.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-DMefkHRY.cjs → isUserOnboardingComplete-Deq_CabI.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-DMefkHRY.cjs.map → isUserOnboardingComplete-Deq_CabI.cjs.map} +1 -1
- package/dist/{logoutWithReason-c1DmyRBx.cjs → logoutWithReason-BqgbyO5j.cjs} +30 -4
- package/dist/logoutWithReason-BqgbyO5j.cjs.map +1 -0
- package/dist/{logoutWithReason-B-cf-dUs.esm.js → logoutWithReason-Demgc354.esm.js} +25 -5
- package/dist/logoutWithReason-Demgc354.esm.js.map +1 -0
- package/dist/{logoutWithReason-C4AgSbjv.native.esm.js → logoutWithReason-rupibyb3.native.esm.js} +24 -4
- package/dist/logoutWithReason-rupibyb3.native.esm.js.map +1 -0
- package/dist/{migrateFromFireblocks-RCqy2qOG.cjs → migrateFromFireblocks-C1El-Dce.cjs} +2 -2
- package/dist/{migrateFromFireblocks-RCqy2qOG.cjs.map → migrateFromFireblocks-C1El-Dce.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-B0pkwAaK.native.esm.js → migrateFromFireblocks-Cc6JO6e2.native.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-B0pkwAaK.native.esm.js.map → migrateFromFireblocks-Cc6JO6e2.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-B76sFd7a.esm.js → migrateFromFireblocks-DSgWzuHJ.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-B76sFd7a.esm.js.map → migrateFromFireblocks-DSgWzuHJ.esm.js.map} +1 -1
- package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts +20 -0
- package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts.map +1 -0
- package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts +2 -0
- package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts.map +1 -0
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +39 -6
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +9 -3
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +10 -3
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts +43 -0
- package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +249 -0
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts +45 -0
- package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts +41 -0
- package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts +39 -0
- package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts +30 -0
- package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts +26 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts +21 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts +26 -0
- package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts +11 -2
- package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts +11 -2
- package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts +12 -4
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/resendFields.d.ts +39 -0
- package/dist/modules/waas/businessAccounts/resendFields.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts +49 -0
- package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts +11 -2
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +11 -2
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts +29 -0
- package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts +29 -0
- package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/createResilientIndexedDbStore/createResilientIndexedDbStore.d.ts +44 -0
- package/dist/services/resilientIndexedDbStore/createResilientIndexedDbStore/createResilientIndexedDbStore.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/createResilientIndexedDbStore/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/createResilientIndexedDbStore/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/errors/TransactionNotCompletedError.d.ts +5 -0
- package/dist/services/resilientIndexedDbStore/errors/TransactionNotCompletedError.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/resilientIndexedDbStore.types.d.ts +79 -0
- package/dist/services/resilientIndexedDbStore/resilientIndexedDbStore.types.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/applyMutation/applyMutation.d.ts +29 -0
- package/dist/services/resilientIndexedDbStore/utils/applyMutation/applyMutation.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/applyMutation/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/applyMutation/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/constants.d.ts +24 -0
- package/dist/services/resilientIndexedDbStore/utils/constants.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/createTombstoneStore/createTombstoneStore.d.ts +61 -0
- package/dist/services/resilientIndexedDbStore/utils/createTombstoneStore/createTombstoneStore.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/createTombstoneStore/index.d.ts +3 -0
- package/dist/services/resilientIndexedDbStore/utils/createTombstoneStore/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/createWorkQueue/createWorkQueue.d.ts +60 -0
- package/dist/services/resilientIndexedDbStore/utils/createWorkQueue/createWorkQueue.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/createWorkQueue/index.d.ts +3 -0
- package/dist/services/resilientIndexedDbStore/utils/createWorkQueue/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/deleteRecord/deleteRecord.d.ts +35 -0
- package/dist/services/resilientIndexedDbStore/utils/deleteRecord/deleteRecord.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/deleteRecord/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/deleteRecord/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getBackoffDelay/getBackoffDelay.d.ts +22 -0
- package/dist/services/resilientIndexedDbStore/utils/getBackoffDelay/getBackoffDelay.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getBackoffDelay/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/getBackoffDelay/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecord/getRecord.d.ts +32 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecord/getRecord.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecord/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecord/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecordKey/getRecordKey.d.ts +27 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecordKey/getRecordKey.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecordKey/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/getRecordKey/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getTransactionError/getTransactionError.d.ts +28 -0
- package/dist/services/resilientIndexedDbStore/utils/getTransactionError/getTransactionError.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/getTransactionError/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/getTransactionError/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/isPermanentWriteError/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/isPermanentWriteError/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/isPermanentWriteError/isPermanentWriteError.d.ts +20 -0
- package/dist/services/resilientIndexedDbStore/utils/isPermanentWriteError/isPermanentWriteError.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/openDatabase/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/openDatabase/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/openDatabase/openDatabase.d.ts +31 -0
- package/dist/services/resilientIndexedDbStore/utils/openDatabase/openDatabase.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/putRecord/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/putRecord/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/putRecord/putRecord.d.ts +37 -0
- package/dist/services/resilientIndexedDbStore/utils/putRecord/putRecord.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/readStoredValue/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/readStoredValue/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/readStoredValue/readStoredValue.d.ts +42 -0
- package/dist/services/resilientIndexedDbStore/utils/readStoredValue/readStoredValue.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/replayTombstones/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/replayTombstones/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/replayTombstones/replayTombstones.d.ts +31 -0
- package/dist/services/resilientIndexedDbStore/utils/replayTombstones/replayTombstones.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/runWithTimeout/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/runWithTimeout/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/runWithTimeout/runWithTimeout.d.ts +34 -0
- package/dist/services/resilientIndexedDbStore/utils/runWithTimeout/runWithTimeout.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/withDatabase/index.d.ts +2 -0
- package/dist/services/resilientIndexedDbStore/utils/withDatabase/index.d.ts.map +1 -0
- package/dist/services/resilientIndexedDbStore/utils/withDatabase/withDatabase.d.ts +39 -0
- package/dist/services/resilientIndexedDbStore/utils/withDatabase/withDatabase.d.ts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts.map +1 -1
- package/dist/utils/retryOnFetchError/retryOnFetchError.d.ts.map +1 -1
- package/dist/utils/waitForDelay/index.d.ts +2 -0
- package/dist/utils/waitForDelay/index.d.ts.map +1 -0
- package/dist/utils/waitForDelay/waitForDelay.d.ts +21 -0
- package/dist/utils/waitForDelay/waitForDelay.d.ts.map +1 -0
- package/dist/{waas-H5xyBfTI.esm.js → waas-BAcC_ZEU.esm.js} +688 -26
- package/dist/waas-BAcC_ZEU.esm.js.map +1 -0
- package/dist/{waas-DIlnOHm6.native.esm.js → waas-BnBxnaH4.native.esm.js} +688 -26
- package/dist/waas-BnBxnaH4.native.esm.js.map +1 -0
- package/dist/{waas-7vSYuH3H.cjs → waas-EJACWt9Q.cjs} +764 -24
- package/dist/waas-EJACWt9Q.cjs.map +1 -0
- package/dist/waas.cjs +18 -5
- package/dist/waas.esm.js +5 -5
- package/dist/waas.native.esm.js +5 -5
- package/dist/waasCore.cjs +5 -5
- package/dist/waasCore.esm.js +5 -5
- package/dist/waasCore.native.esm.js +5 -5
- package/package.json +3 -4
- package/dist/getNetworkProviderFromNetworkId-OXG2gPby.native.esm.js.map +0 -1
- package/dist/logoutWithReason-B-cf-dUs.esm.js.map +0 -1
- package/dist/logoutWithReason-C4AgSbjv.native.esm.js.map +0 -1
- package/dist/logoutWithReason-c1DmyRBx.cjs.map +0 -1
- package/dist/waas-7vSYuH3H.cjs.map +0 -1
- package/dist/waas-DIlnOHm6.native.esm.js.map +0 -1
- package/dist/waas-H5xyBfTI.esm.js.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountActionRequired, BusinessAccountSigner } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountSigner, SignedBusinessAccountIntent } from '../businessAccounts.types';
|
|
3
3
|
type RemoveSignerParams = {
|
|
4
|
+
autoExecute?: boolean;
|
|
4
5
|
businessAccountId: string;
|
|
6
|
+
signed?: SignedBusinessAccountIntent;
|
|
5
7
|
signerId: string;
|
|
6
8
|
walletId: string;
|
|
7
9
|
};
|
|
@@ -11,9 +13,16 @@ type RemoveSignerParams = {
|
|
|
11
13
|
* identity can no longer sign for that wallet. The backend refuses to remove
|
|
12
14
|
* the last remaining signer on a wallet.
|
|
13
15
|
*
|
|
16
|
+
* When the account governs `removeSignerFromWallet`, nothing is written and
|
|
17
|
+
* the 202 body is returned instead. Resend with `signed` (from
|
|
18
|
+
* `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
|
|
19
|
+
*
|
|
14
20
|
* @param params.businessAccountId - The business account the wallet belongs to.
|
|
15
21
|
* @param params.walletId - The wallet the signer is attached to.
|
|
16
22
|
* @param params.signerId - The id of the signer to remove (`BusinessAccountSigner.id`).
|
|
23
|
+
* @param [params.autoExecute] - Whether to apply on the completing approval.
|
|
24
|
+
* Only meaningful on the first call.
|
|
25
|
+
* @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
|
|
17
26
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
18
27
|
* @returns The removed signer, or the outstanding action required.
|
|
19
28
|
*
|
|
@@ -33,6 +42,6 @@ type RemoveSignerParams = {
|
|
|
33
42
|
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
34
43
|
* @notInstrumented
|
|
35
44
|
*/
|
|
36
|
-
export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountSigner>;
|
|
45
|
+
export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId, autoExecute, signed }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountSigner>;
|
|
37
46
|
export {};
|
|
38
47
|
//# sourceMappingURL=removeBusinessAccountSigner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,mEAC0B,kBAAkB,WAC1E,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA8B/D,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountDetail, SignedBusinessAccountIntent } from '../businessAccounts.types';
|
|
3
3
|
type RemoveBusinessAccountWalletParams = {
|
|
4
|
+
autoExecute?: boolean;
|
|
4
5
|
businessAccountId: string;
|
|
6
|
+
signed?: SignedBusinessAccountIntent;
|
|
5
7
|
walletId: string;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
10
|
* Removes a wallet from a business account (owner-/admin-only). The wallet and
|
|
9
|
-
* all its associated signer rows are detached from the account.
|
|
10
|
-
*
|
|
11
|
+
* all its associated signer rows are detached from the account.
|
|
12
|
+
*
|
|
13
|
+
* When the account governs `removeWallet`, nothing is written and the 202
|
|
14
|
+
* body is returned instead. Resend with `signed` (from
|
|
15
|
+
* `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
|
|
11
16
|
*
|
|
12
17
|
* @param params.businessAccountId - The business account the wallet belongs to.
|
|
13
18
|
* @param params.walletId - The wallet to remove (`BusinessAccountWallet.id`).
|
|
19
|
+
* @param [params.autoExecute] - Whether to apply on the completing approval.
|
|
20
|
+
* Only meaningful on the first call.
|
|
21
|
+
* @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
|
|
14
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
23
|
* @returns The updated business account detail, or the outstanding action required.
|
|
16
24
|
*
|
|
@@ -28,6 +36,6 @@ type RemoveBusinessAccountWalletParams = {
|
|
|
28
36
|
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
29
37
|
* @notInstrumented
|
|
30
38
|
*/
|
|
31
|
-
export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
39
|
+
export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId, autoExecute, signed }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
32
40
|
export {};
|
|
33
41
|
//# sourceMappingURL=removeBusinessAccountWallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeBusinessAccountWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"removeBusinessAccountWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,iCAAiC,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,2BAA2B,yDACgB,iCAAiC,WAC/E,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAmC/D,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SignedBusinessAccountIntent } from './businessAccounts.types';
|
|
2
|
+
type ResendFieldsParams = {
|
|
3
|
+
autoExecute?: boolean;
|
|
4
|
+
signed?: SignedBusinessAccountIntent;
|
|
5
|
+
};
|
|
6
|
+
/** The fields `resendFields` produces, shaped to match every generated
|
|
7
|
+
* governed-mutation request body's `autoExecute`/`intent`/`intentSignature`
|
|
8
|
+
* fields. */
|
|
9
|
+
type ResendFieldsResult = {
|
|
10
|
+
autoExecute?: boolean;
|
|
11
|
+
intent?: Record<string, object>;
|
|
12
|
+
intentSignature?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The `autoExecute`/`intent`/`intentSignature` fields shared by every governed
|
|
16
|
+
* mutation's request body.
|
|
17
|
+
*
|
|
18
|
+
* `autoExecute` is read only on the first call — once an intent is signed, it
|
|
19
|
+
* carries its own copy and the server ignores whatever this call sends, so an
|
|
20
|
+
* approver's consent can't be overridden after the fact.
|
|
21
|
+
*
|
|
22
|
+
* @param [params.autoExecute] - Whether to apply immediately on the completing
|
|
23
|
+
* approval. Only meaningful on the first (unsigned) call.
|
|
24
|
+
* @param [params.signed] - A previously-signed intent, to resend past
|
|
25
|
+
* `INTENT_REQUIRED`.
|
|
26
|
+
* @returns The fields to spread into a governed mutation's SDK request body.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const body = { businessAccountId, ...resendFields({ signed }) };
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @see {@link SignedBusinessAccountIntent} for what `signed` carries.
|
|
34
|
+
* @see {@link parseGovernedResponse} for reading the `intent` back off a 202.
|
|
35
|
+
* @notInstrumented
|
|
36
|
+
*/
|
|
37
|
+
export declare const resendFields: ({ autoExecute, signed, }: ResendFieldsParams) => ResendFieldsResult;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=resendFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resendFields.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/businessAccounts/resendFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE5E,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;cAEc;AACd,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,YAAY,6BAGtB,kBAAkB,KAAG,kBAWtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/setBusinessAccountGovernance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountGovernance, BusinessAccountMutationVersion, SignedBusinessAccountIntent } from '../businessAccounts.types';
|
|
3
|
+
type SetGovernanceParams = {
|
|
4
|
+
autoExecute?: boolean;
|
|
5
|
+
businessAccountId: string;
|
|
6
|
+
governance: BusinessAccountGovernance;
|
|
7
|
+
signed?: SignedBusinessAccountIntent;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Replaces the account's entire governance section. Wholesale, not a merge —
|
|
11
|
+
* an action left out of `governance` is refused rather than read as "delete
|
|
12
|
+
* its requirements"; send it back with its existing requirements (or an
|
|
13
|
+
* empty array) to keep or clear it.
|
|
14
|
+
*
|
|
15
|
+
* `setGovernance` is itself always governed at the capability-table floor
|
|
16
|
+
* (owner-only today), so the 202 path applies here too: nothing is written
|
|
17
|
+
* and the 202 body is returned instead. Resend with `signed` (from
|
|
18
|
+
* `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
|
|
19
|
+
*
|
|
20
|
+
* @param params.businessAccountId - The business account whose governance changes.
|
|
21
|
+
* @param params.governance - The full governance section to write, keyed by
|
|
22
|
+
* governed action. Read the current value with `getBusinessAccountGovernance`
|
|
23
|
+
* first if you're changing only one action.
|
|
24
|
+
* @param [params.autoExecute] - Whether to apply on the completing approval.
|
|
25
|
+
* Only meaningful on the first call.
|
|
26
|
+
* @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
|
|
27
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
28
|
+
* @returns The new document version, or the outstanding action required.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const current = await getBusinessAccountGovernance({ businessAccountId });
|
|
33
|
+
* await setBusinessAccountGovernance({
|
|
34
|
+
* businessAccountId,
|
|
35
|
+
* governance: {
|
|
36
|
+
* ...current,
|
|
37
|
+
* addMember: [{ id: 'one-admin', schemaVersion: 1, requiredApprovals: 1, eligibleApproverRoles: ['admin'] }],
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link getBusinessAccountGovernance} for reading the current section first.
|
|
43
|
+
* @see {@link defineBusinessAccountRole} for defining a role governance can name.
|
|
44
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
45
|
+
* @notInstrumented
|
|
46
|
+
*/
|
|
47
|
+
export declare const setBusinessAccountGovernance: ({ businessAccountId, governance, autoExecute, signed }: SetGovernanceParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMutationVersion>;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=setBusinessAccountGovernance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setBusinessAccountGovernance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,mBAAmB,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,yBAAyB,CAAC;IACtC,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,4BAA4B,2DACiB,mBAAmB,WACnE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,8BAA8B,CA8BxE,CAAC"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountDetail, SignedBusinessAccountIntent } from '../businessAccounts.types';
|
|
3
3
|
type TransferBusinessAccountOwnershipParams = {
|
|
4
|
+
autoExecute?: boolean;
|
|
4
5
|
businessAccountId: string;
|
|
5
6
|
newOwnerUserId: string;
|
|
7
|
+
signed?: SignedBusinessAccountIntent;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
10
|
* Transfers ownership of a business account to another member. Owner-only: the
|
|
9
11
|
* `newOwnerUserId` must already be a member, is promoted to owner, and the
|
|
10
12
|
* current owner is atomically demoted to admin.
|
|
11
13
|
*
|
|
14
|
+
* When the account governs `transferOwnership`, nothing is written and the
|
|
15
|
+
* 202 body is returned instead. Resend with `signed` (from
|
|
16
|
+
* `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
|
|
17
|
+
*
|
|
12
18
|
* @param params.businessAccountId - The business account whose ownership moves.
|
|
13
19
|
* @param params.newOwnerUserId - The member to promote to owner.
|
|
20
|
+
* @param [params.autoExecute] - Whether to apply on the completing approval.
|
|
21
|
+
* Only meaningful on the first call.
|
|
22
|
+
* @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
|
|
14
23
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
24
|
* @returns The updated business account detail, or the outstanding action required.
|
|
16
25
|
*
|
|
@@ -28,6 +37,6 @@ type TransferBusinessAccountOwnershipParams = {
|
|
|
28
37
|
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
29
38
|
* @notInstrumented
|
|
30
39
|
*/
|
|
31
|
-
export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
40
|
+
export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId, autoExecute, signed }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
32
41
|
export {};
|
|
33
42
|
//# sourceMappingURL=transferBusinessAccountOwnership.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,sCAAsC,GAAG;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gCAAgC,+DACiB,sCAAsC,WAC1F,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAsC/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, BusinessAccountMember } from '../businessAccounts.types';
|
|
2
|
+
import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, BusinessAccountMember, SignedBusinessAccountIntent } from '../businessAccounts.types';
|
|
3
3
|
/**
|
|
4
4
|
* Roles a member can be reassigned to: a built-in other than owner, or one this
|
|
5
5
|
* account defined. Ownership moves only via transferOwnership, which the API
|
|
@@ -7,8 +7,10 @@ import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, B
|
|
|
7
7
|
*/
|
|
8
8
|
type AssignableRole = Exclude<BuiltInBusinessAccountMemberRole, 'owner'> | (string & {});
|
|
9
9
|
type UpdateBusinessAccountMemberRoleParams = {
|
|
10
|
+
autoExecute?: boolean;
|
|
10
11
|
businessAccountId: string;
|
|
11
12
|
role: AssignableRole;
|
|
13
|
+
signed?: SignedBusinessAccountIntent;
|
|
12
14
|
userId: string;
|
|
13
15
|
};
|
|
14
16
|
/**
|
|
@@ -17,10 +19,17 @@ type UpdateBusinessAccountMemberRoleParams = {
|
|
|
17
19
|
* another. Owner is not assignable here — use
|
|
18
20
|
* `transferBusinessAccountOwnership` for that.
|
|
19
21
|
*
|
|
22
|
+
* When the account governs `updateMemberRole`, nothing is written and the
|
|
23
|
+
* 202 body is returned instead. Resend with `signed` (from
|
|
24
|
+
* `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
|
|
25
|
+
*
|
|
20
26
|
* @param params.businessAccountId - The business account the member belongs to.
|
|
21
27
|
* @param params.userId - The member whose role changes.
|
|
22
28
|
* @param params.role - The new role: a built-in (`admin`, `viewer`) or a role
|
|
23
29
|
* this account defined.
|
|
30
|
+
* @param [params.autoExecute] - Whether to apply on the completing approval.
|
|
31
|
+
* Only meaningful on the first call.
|
|
32
|
+
* @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
|
|
24
33
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
25
34
|
* @returns The updated business account member, or the outstanding action required.
|
|
26
35
|
*
|
|
@@ -38,6 +47,6 @@ type UpdateBusinessAccountMemberRoleParams = {
|
|
|
38
47
|
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
39
48
|
* @notInstrumented
|
|
40
49
|
*/
|
|
41
|
-
export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
|
|
50
|
+
export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role, autoExecute, signed }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
|
|
42
51
|
export {};
|
|
43
52
|
//# sourceMappingURL=updateBusinessAccountMemberRole.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC;;;;GAIG;AACH,KAAK,cAAc,GACf,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,GAClD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,KAAK,qCAAqC,GAAG;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,+BAA+B,6DACgB,qCAAqC,WACvF,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA8B/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
import type { BusinessAccountProposal } from '../businessAccounts.types';
|
|
3
|
+
type VetoProposalParams = {
|
|
4
|
+
businessAccountId: string;
|
|
5
|
+
proposalId: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Vetoes a pending proposal — terminal: a vetoed proposal can never be
|
|
9
|
+
* approved or executed afterward. Gated on its own scope
|
|
10
|
+
* (`business_account:proposal:veto`), distinct from approving one, so a
|
|
11
|
+
* caller with only approve-scoped access cannot veto instead.
|
|
12
|
+
*
|
|
13
|
+
* @param params.businessAccountId - The business account the proposal belongs to.
|
|
14
|
+
* @param params.proposalId - The proposal to veto.
|
|
15
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
|
+
* @returns The proposal, now `status: 'vetoed'`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* await vetoBusinessAccountProposal({ businessAccountId, proposalId });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link approveBusinessAccountProposal} for consenting to a proposal instead.
|
|
24
|
+
* @see {@link BusinessAccountProposal} for the returned shape.
|
|
25
|
+
* @notInstrumented
|
|
26
|
+
*/
|
|
27
|
+
export declare const vetoBusinessAccountProposal: ({ businessAccountId, proposalId }: VetoProposalParams, client?: DynamicClient) => Promise<BusinessAccountProposal>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=vetoBusinessAccountProposal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vetoBusinessAccountProposal.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,2BAA2B,sCACH,kBAAkB,WAC7C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAejC,CAAC"}
|
package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
import type { BusinessAccountProposal } from '../businessAccounts.types';
|
|
3
|
+
type WithdrawApprovalParams = {
|
|
4
|
+
businessAccountId: string;
|
|
5
|
+
proposalId: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Withdraws this session's own approval from a proposal still collecting
|
|
9
|
+
* them. The approval row is kept with `revokedAt` set rather than deleted —
|
|
10
|
+
* consent is recorded as given and taken back, not erased — so approving
|
|
11
|
+
* again afterward reuses the same row.
|
|
12
|
+
*
|
|
13
|
+
* @param params.businessAccountId - The business account the proposal belongs to.
|
|
14
|
+
* @param params.proposalId - The proposal to withdraw this session's approval from.
|
|
15
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
|
+
* @returns The proposal, with this approval's count no longer contributing.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* await withdrawBusinessAccountProposalApproval({ businessAccountId, proposalId });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link approveBusinessAccountProposal} for approving (or re-approving) instead.
|
|
24
|
+
* @see {@link BusinessAccountProposalApprovalRecord} for what `revokedAt` looks like once set.
|
|
25
|
+
* @notInstrumented
|
|
26
|
+
*/
|
|
27
|
+
export declare const withdrawBusinessAccountProposalApproval: ({ businessAccountId, proposalId }: WithdrawApprovalParams, client?: DynamicClient) => Promise<BusinessAccountProposal>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=withdrawBusinessAccountProposalApproval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawBusinessAccountProposalApproval.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,KAAK,sBAAsB,GAAG;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uCAAuC,sCACf,sBAAsB,WACjD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAYjC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { CreateResilientIndexedDbStoreParams, ResilientIndexedDbStore } from '../resilientIndexedDbStore.types';
|
|
2
|
+
/**
|
|
3
|
+
* Key/value store backed by IndexedDB that keeps working while the browser
|
|
4
|
+
* closes its IndexedDB connections, as mobile WebKit does under memory
|
|
5
|
+
* pressure. A read is answered from the queued mutations this instance holds
|
|
6
|
+
* and otherwise from IndexedDB, and reports `unavailable` rather than `absent`
|
|
7
|
+
* when the database does not answer within the budget. Writes are stable
|
|
8
|
+
* because they are queued and retried with backoff, and a deletion is also
|
|
9
|
+
* kept in the storage service until IndexedDB acknowledges it, so it survives
|
|
10
|
+
* a reload. Values are structured cloned and never serialized, which is what
|
|
11
|
+
* lets them hold browser owned handles such as a non-extractable `CryptoKey`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const store = createResilientIndexedDbStore<StoredKey>({
|
|
16
|
+
* dbName: 'dynamic_keychain',
|
|
17
|
+
* keyPath: 'keyName',
|
|
18
|
+
* storage,
|
|
19
|
+
* storeName: 'keys',
|
|
20
|
+
* });
|
|
21
|
+
*
|
|
22
|
+
* store.set({ value: storedKey });
|
|
23
|
+
*
|
|
24
|
+
* const result = await store.get({ key: 'session' });
|
|
25
|
+
*
|
|
26
|
+
* if (result.status === 'found') {
|
|
27
|
+
* await crypto.subtle.sign(algorithm, result.value.privateKey, data);
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param params.dbName - Name of the IndexedDB database backing the store.
|
|
32
|
+
* @param params.keyPath - Property of a value that holds its key.
|
|
33
|
+
* @param params.logger - Reports degraded storage.
|
|
34
|
+
* @param params.readTimeoutMs - How long a read waits before reporting unavailability.
|
|
35
|
+
* @param params.storage - Persists deletions that IndexedDB has not acknowledged.
|
|
36
|
+
* @param params.storeName - Name of the object store inside the database.
|
|
37
|
+
* @returns A store exposing get, set, remove, and waitUntilIdle.
|
|
38
|
+
* @see readStoredValue
|
|
39
|
+
* @see createWorkQueue
|
|
40
|
+
* @see replayTombstones
|
|
41
|
+
* @notInstrumented
|
|
42
|
+
*/
|
|
43
|
+
export declare const createResilientIndexedDbStore: <TValue>({ dbName, keyPath, logger, readTimeoutMs, storage, storeName, }: CreateResilientIndexedDbStoreParams) => ResilientIndexedDbStore<TValue>;
|
|
44
|
+
//# sourceMappingURL=createResilientIndexedDbStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createResilientIndexedDbStore.d.ts","sourceRoot":"","sources":["../../../../src/services/resilientIndexedDbStore/createResilientIndexedDbStore/createResilientIndexedDbStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mCAAmC,EACnC,uBAAuB,EAGxB,MAAM,kCAAkC,CAAC;AAQ1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,6BAA6B,GAAI,MAAM,mEAOjD,mCAAmC,KAAG,uBAAuB,CAAC,MAAM,CA2DtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/resilientIndexedDbStore/createResilientIndexedDbStore/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionNotCompletedError.d.ts","sourceRoot":"","sources":["../../../../src/services/resilientIndexedDbStore/errors/TransactionNotCompletedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,4BAA6B,SAAQ,SAAS;;CAU1D"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Logger } from '../logger';
|
|
2
|
+
import type { Storage } from '../storage/storage.types';
|
|
3
|
+
/**
|
|
4
|
+
* Where a store keeps its records. The key path is the property of a value
|
|
5
|
+
* that holds its key, since records are written to IndexedDB as they are and
|
|
6
|
+
* are never wrapped, which keeps values readable by anything that opens the
|
|
7
|
+
* same database.
|
|
8
|
+
*/
|
|
9
|
+
export type StoreDatabaseConfig = {
|
|
10
|
+
dbName: string;
|
|
11
|
+
keyPath: string;
|
|
12
|
+
storeName: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Outcome of a store read. `unavailable` distinguishes "IndexedDB never became
|
|
16
|
+
* readable within the budget" from "the value is genuinely not stored", so
|
|
17
|
+
* callers can fail loudly instead of treating an outage as missing data.
|
|
18
|
+
*/
|
|
19
|
+
export type StoreReadResult<TValue> = {
|
|
20
|
+
status: 'absent';
|
|
21
|
+
} | {
|
|
22
|
+
status: 'found';
|
|
23
|
+
value: TValue;
|
|
24
|
+
} | {
|
|
25
|
+
status: 'unavailable';
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A change that still has to reach IndexedDB. Reads are never modelled as
|
|
29
|
+
* mutations: a read is awaited by its caller and has no durability
|
|
30
|
+
* requirement, so queueing it would only add latency.
|
|
31
|
+
*/
|
|
32
|
+
export type StoreMutation<TValue> = {
|
|
33
|
+
key: string;
|
|
34
|
+
type: 'delete';
|
|
35
|
+
} | {
|
|
36
|
+
key: string;
|
|
37
|
+
type: 'set';
|
|
38
|
+
value: TValue;
|
|
39
|
+
};
|
|
40
|
+
export type ResilientIndexedDbStore<TValue> = {
|
|
41
|
+
/** Reads a value, waiting for IndexedDB within the read budget. */
|
|
42
|
+
get: (params: {
|
|
43
|
+
key: string;
|
|
44
|
+
}) => Promise<StoreReadResult<TValue>>;
|
|
45
|
+
/**
|
|
46
|
+
* Forgets a value. Resolves once the deletion is durably recorded so it
|
|
47
|
+
* survives a reload; the IndexedDB delete continues in the background.
|
|
48
|
+
*
|
|
49
|
+
* @throws When the deletion cannot be recorded durably, since it would not
|
|
50
|
+
* survive a reload.
|
|
51
|
+
*/
|
|
52
|
+
remove: (params: {
|
|
53
|
+
key: string;
|
|
54
|
+
}) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Stores a value under the key it carries in the store's key path.
|
|
57
|
+
* Persisted asynchronously, never throws.
|
|
58
|
+
*/
|
|
59
|
+
set: (params: {
|
|
60
|
+
value: TValue;
|
|
61
|
+
}) => void;
|
|
62
|
+
/** Resolves once every mutation the store can persist has been written. */
|
|
63
|
+
waitUntilIdle: () => Promise<void>;
|
|
64
|
+
};
|
|
65
|
+
export type CreateResilientIndexedDbStoreParams = {
|
|
66
|
+
/** Name of the IndexedDB database backing the store. */
|
|
67
|
+
dbName: string;
|
|
68
|
+
/** Property of a value that holds its key. */
|
|
69
|
+
keyPath: string;
|
|
70
|
+
/** Reports degraded storage. The store works without it. */
|
|
71
|
+
logger?: Logger;
|
|
72
|
+
/** Upper bound for how long a read waits before reporting unavailability. */
|
|
73
|
+
readTimeoutMs?: number;
|
|
74
|
+
/** Persists deletions that IndexedDB has not acknowledged. */
|
|
75
|
+
storage: Storage;
|
|
76
|
+
/** Name of the object store inside the database. */
|
|
77
|
+
storeName: string;
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=resilientIndexedDbStore.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resilientIndexedDbStore.types.d.ts","sourceRoot":"","sources":["../../../src/services/resilientIndexedDbStore/resilientIndexedDbStore.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,CAAC,MAAM,IAC9B;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,GACpB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC;AAE9B;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,MAAM,IAC5B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC/B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,MAAM,MAAM,uBAAuB,CAAC,MAAM,IAAI;IAC5C,mEAAmE;IACnE,GAAG,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAEnE;;;;;;OAMG;IACH,MAAM,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;OAGG;IACH,GAAG,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAEzC,2EAA2E;IAC3E,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC;IAEf,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAEhB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,8DAA8D;IAC9D,OAAO,EAAE,OAAO,CAAC;IAEjB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { StoreDatabaseConfig, StoreMutation } from '../../resilientIndexedDbStore.types';
|
|
2
|
+
type ApplyMutationParams<TValue> = {
|
|
3
|
+
/** Where the store keeps its records. */
|
|
4
|
+
database: StoreDatabaseConfig;
|
|
5
|
+
/** The mutation to persist. */
|
|
6
|
+
mutation: StoreMutation<TValue>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Writes a single queued mutation to IndexedDB.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await applyMutation({
|
|
14
|
+
* database,
|
|
15
|
+
* mutation: { key: 'session', type: 'delete' },
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param params.database - Where the store keeps its records.
|
|
20
|
+
* @param params.mutation - The mutation to persist.
|
|
21
|
+
* @returns A promise that resolves once the mutation has landed.
|
|
22
|
+
* @throws When IndexedDB rejects the write, so the caller can retry it.
|
|
23
|
+
* @see createWorkQueue
|
|
24
|
+
* @see withDatabase
|
|
25
|
+
* @notInstrumented
|
|
26
|
+
*/
|
|
27
|
+
export declare const applyMutation: <TValue>({ database, mutation, }: ApplyMutationParams<TValue>) => Promise<void>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=applyMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyMutation.d.ts","sourceRoot":"","sources":["../../../../../src/services/resilientIndexedDbStore/utils/applyMutation/applyMutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAK7C,KAAK,mBAAmB,CAAC,MAAM,IAAI;IACjC,yCAAyC;IACzC,QAAQ,EAAE,mBAAmB,CAAC;IAE9B,+BAA+B;IAC/B,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,2BAGjC,mBAAmB,CAAC,MAAM,CAAC,KAAG,OAAO,CAAC,IAAI,CAsB5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/services/resilientIndexedDbStore/utils/applyMutation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upper bound for how long a read may wait for IndexedDB to become available
|
|
3
|
+
* before it resolves as unavailable. A user is usually blocked on this, so the
|
|
4
|
+
* budget is short enough to keep an interaction responsive.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_READ_TIMEOUT_MS = 3000;
|
|
7
|
+
/**
|
|
8
|
+
* How long a single open-and-operate attempt against IndexedDB may take. An
|
|
9
|
+
* open blocked by another connection, and a request on a connection the
|
|
10
|
+
* browser closed, settle neither way, so every attempt needs a boundary of its
|
|
11
|
+
* own for the read budget and the queue worker to mean anything.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DATABASE_OPERATION_TIMEOUT_MS = 3000;
|
|
14
|
+
/**
|
|
15
|
+
* How long one queued task may occupy the single worker. Bounds work that is
|
|
16
|
+
* not an IndexedDB operation, such as reading pending deletions from the
|
|
17
|
+
* storage service, so no task can hold back the mutations behind it.
|
|
18
|
+
*/
|
|
19
|
+
export declare const QUEUED_TASK_TIMEOUT_MS = 10000;
|
|
20
|
+
/** Delay before the first retry of an IndexedDB operation. */
|
|
21
|
+
export declare const INITIAL_BACKOFF_MS = 50;
|
|
22
|
+
/** Ceiling for the exponential backoff between IndexedDB retries. */
|
|
23
|
+
export declare const MAX_BACKOFF_MS = 1000;
|
|
24
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/services/resilientIndexedDbStore/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,OAAQ,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,qEAAqE;AACrE,eAAO,MAAM,cAAc,OAAQ,CAAC"}
|