@dynamic-labs-sdk/client 1.28.0 → 1.30.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/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/ScreeningNotRequiredError.d.ts +23 -0
- package/dist/errors/ScreeningNotRequiredError.d.ts.map +1 -0
- package/dist/errors/base/BaseError.d.ts.map +1 -1
- package/dist/exports/core.d.ts +2 -1
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +10 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +26 -2
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js → getNetworkProviderFromNetworkId-BUjaD1Hl.native.esm.js} +7 -7
- package/dist/getNetworkProviderFromNetworkId-BUjaD1Hl.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js → getNetworkProviderFromNetworkId-ChdEfI2Q.esm.js} +6 -6
- package/dist/getNetworkProviderFromNetworkId-ChdEfI2Q.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs → getNetworkProviderFromNetworkId-wbWC24tw.cjs} +2 -2
- package/dist/getNetworkProviderFromNetworkId-wbWC24tw.cjs.map +1 -0
- package/dist/{getSignedSessionId-BncZzHdQ.esm.js → getSignedSessionId-CAcYlAuB.esm.js} +3 -3
- package/dist/getSignedSessionId-CAcYlAuB.esm.js.map +1 -0
- package/dist/{getSignedSessionId-gwqj9h2p.cjs → getSignedSessionId-Ccdmqz-E.cjs} +3 -3
- package/dist/getSignedSessionId-Ccdmqz-E.cjs.map +1 -0
- package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js → getSignedSessionId-GpNy9mNZ.native.esm.js} +3 -3
- package/dist/getSignedSessionId-GpNy9mNZ.native.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-CnpXHkmq.cjs → getWalletProviderByKey-BapuuI8t.cjs} +2 -2
- package/dist/getWalletProviderByKey-BapuuI8t.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js → getWalletProviderByKey-Bo8REwtt.native.esm.js} +4 -2
- package/dist/getWalletProviderByKey-Bo8REwtt.native.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js → getWalletProviderByKey-D678OktF.esm.js} +2 -2
- package/dist/getWalletProviderByKey-D678OktF.esm.js.map +1 -0
- package/dist/index.cjs +351 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +349 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +349 -10
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js → isDynamicWaasEnabled-6Fvh5fsA.native.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js.map → isDynamicWaasEnabled-6Fvh5fsA.native.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs → isDynamicWaasEnabled-BPEtdwZI.cjs} +2 -2
- package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs.map → isDynamicWaasEnabled-BPEtdwZI.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js → isDynamicWaasEnabled-CIJILHSm.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js.map → isDynamicWaasEnabled-CIJILHSm.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BjRiou3K.cjs → isMfaRequiredForAction-DjZ5p_og.cjs} +2 -2
- package/dist/isMfaRequiredForAction-DjZ5p_og.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js → isMfaRequiredForAction-WvmXGQKP.native.esm.js} +2 -2
- package/dist/isMfaRequiredForAction-WvmXGQKP.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js → isMfaRequiredForAction-h3H3j2fJ.esm.js} +2 -2
- package/dist/isMfaRequiredForAction-h3H3j2fJ.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js → isUserOnboardingComplete-BYM3G09A.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js.map → isUserOnboardingComplete-BYM3G09A.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs → isUserOnboardingComplete-CxIX-dC1.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs.map → isUserOnboardingComplete-CxIX-dC1.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js → isUserOnboardingComplete-HLRIFAZb.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js.map → isUserOnboardingComplete-HLRIFAZb.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js → migrateFromFireblocks-4jrfIkDp.native.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js.map → migrateFromFireblocks-4jrfIkDp.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js → migrateFromFireblocks-R-aPmpUZ.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js.map → migrateFromFireblocks-R-aPmpUZ.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-Dg6igmRk.cjs → migrateFromFireblocks-mA-hvJcQ.cjs} +3 -3
- package/dist/{migrateFromFireblocks-Dg6igmRk.cjs.map → migrateFromFireblocks-mA-hvJcQ.cjs.map} +1 -1
- package/dist/modules/apiClient/createApiClient.d.ts +2 -1
- package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
- package/dist/modules/apiClient/createBaseApiClient.d.ts.map +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts.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/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +2 -1
- package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +2 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/initializeAuth/initializeAuth.d.ts.map +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
- package/dist/modules/auth/logout/logout.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/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +3 -2
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -2
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +2 -2
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +2 -2
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts +2 -2
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +2 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts.map +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
- package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts +2 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutTransactionChannelSchema/createCheckoutTransactionChannelSchema.d.ts +9 -7
- package/dist/modules/checkout/utils/createCheckoutTransactionChannelSchema/createCheckoutTransactionChannelSchema.d.ts.map +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +2 -2
- package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
- package/dist/modules/crossTabEventSync/setupCrossTabEventSync/setupCrossTabEventSync.d.ts +1 -1
- package/dist/modules/crossTabEventSync/setupCrossTabEventSync/setupCrossTabEventSync.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts.map +1 -1
- package/dist/modules/extension/hasExtension/hasExtension.d.ts +1 -1
- package/dist/modules/extension/hasExtension/hasExtension.d.ts.map +1 -1
- package/dist/modules/extension/registerExtension/registerExtension.d.ts +1 -1
- package/dist/modules/extension/registerExtension/registerExtension.d.ts.map +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts +2 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.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/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts +2 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts.map +1 -1
- package/dist/modules/instrumentation/setInstrumentationEnabled/setInstrumentationEnabled.d.ts.map +1 -1
- package/dist/modules/mfa/acknowledgeRecoveryCodes/acknowledgeRecoveryCodes.d.ts +3 -2
- package/dist/modules/mfa/acknowledgeRecoveryCodes/acknowledgeRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +2 -2
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts.map +1 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +2 -2
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts.map +1 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +2 -2
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +2 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/deleteMfaDevice/deleteMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/deleteMfaDevice/deleteMfaDevice.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +3 -2
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +3 -2
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +3 -2
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts.map +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts.map +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts.map +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +2 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/mfa/setDefaultMfaDevice/setDefaultMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/setDefaultMfaDevice/setDefaultMfaDevice.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +2 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts +2 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +2 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts +4 -3
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts +4 -3
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts +5 -3
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts.map +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts.map +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts.map +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts.map +1 -1
- package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts +4 -3
- package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts.map +1 -1
- package/dist/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.d.ts.map +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
- package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts +1 -1
- package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +6 -5
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/createWalletForBusinessAccount/createWalletForBusinessAccount.d.ts +6 -5
- package/dist/modules/waas/businessAccounts/createWalletForBusinessAccount/createWalletForBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/createWaasOfflineRecoveryShares/createWaasOfflineRecoveryShares.d.ts.map +1 -1
- package/dist/modules/waas/exportWaasClientKeyshares/exportWaasClientKeyshares.d.ts +1 -1
- package/dist/modules/waas/exportWaasClientKeyshares/exportWaasClientKeyshares.d.ts.map +1 -1
- package/dist/modules/waas/exportWaasPrivateKey/exportWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKey/exportWaasPrivateKey.d.ts.map +1 -1
- package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.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/importWaasPrivateKey/importWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/importWaasPrivateKey/importWaasPrivateKey.d.ts.map +1 -1
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +26 -0
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -0
- package/dist/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.d.ts +1 -1
- package/dist/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.d.ts.map +1 -1
- 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 +12 -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/refreshWaasWalletAccountShares/refreshWaasWalletAccountShares.d.ts +1 -1
- package/dist/modules/waas/refreshWaasWalletAccountShares/refreshWaasWalletAccountShares.d.ts.map +1 -1
- package/dist/modules/waas/setWaasWalletAccountPassword/setWaasWalletAccountPassword.d.ts +1 -1
- package/dist/modules/waas/setWaasWalletAccountPassword/setWaasWalletAccountPassword.d.ts.map +1 -1
- package/dist/modules/waas/shouldAutoCreateWalletForChain/shouldAutoCreateWalletForChain.d.ts +1 -1
- package/dist/modules/waas/shouldAutoCreateWalletForChain/shouldAutoCreateWalletForChain.d.ts.map +1 -1
- 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 +24 -0
- package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts.map +1 -0
- package/dist/modules/waas/updateWaasPassword/updateWaasPassword.d.ts +1 -1
- package/dist/modules/waas/updateWaasPassword/updateWaasPassword.d.ts.map +1 -1
- 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/assertWalletAccountSigningAvailability/assertWalletAccountSigningAvailability.d.ts +1 -1
- package/dist/modules/wallets/assertWalletAccountSigningAvailability/assertWalletAccountSigningAvailability.d.ts.map +1 -1
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +2 -1
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
- package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts.map +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +4 -3
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts +2 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviders/getWalletProviders.d.ts +3 -2
- package/dist/modules/wallets/getWalletProviders/getWalletProviders.d.ts.map +1 -1
- package/dist/modules/wallets/isExternalWalletScreeningEnabled/index.d.ts +2 -0
- package/dist/modules/wallets/isExternalWalletScreeningEnabled/index.d.ts.map +1 -0
- package/dist/modules/wallets/isExternalWalletScreeningEnabled/isExternalWalletScreeningEnabled.d.ts +28 -0
- package/dist/modules/wallets/isExternalWalletScreeningEnabled/isExternalWalletScreeningEnabled.d.ts.map +1 -0
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts.map +1 -1
- package/dist/modules/wallets/networks/addNetwork/addNetwork.d.ts +1 -1
- package/dist/modules/wallets/networks/addNetwork/addNetwork.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkData/getActiveNetworkData.d.ts +5 -3
- package/dist/modules/wallets/networks/getActiveNetworkData/getActiveNetworkData.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkId/getActiveNetworkId.d.ts +5 -4
- package/dist/modules/wallets/networks/getActiveNetworkId/getActiveNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.d.ts +4 -3
- package/dist/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +4 -3
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -1
- package/dist/modules/wallets/networks/isProgrammaticNetworkSwitchAvailable/isProgrammaticNetworkSwitchAvailable.d.ts +1 -1
- package/dist/modules/wallets/networks/isProgrammaticNetworkSwitchAvailable/isProgrammaticNetworkSwitchAvailable.d.ts.map +1 -1
- package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts.map +1 -1
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts +5 -4
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/screenTransaction/index.d.ts +2 -0
- package/dist/modules/wallets/screenTransaction/index.d.ts.map +1 -0
- package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts +47 -0
- package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts.map +1 -0
- package/dist/modules/wallets/signMessage/signMessage.d.ts +4 -3
- package/dist/modules/wallets/signMessage/signMessage.d.ts.map +1 -1
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts +5 -3
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts +2 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/removeUnverifiedWalletAccount/removeUnverifiedWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/removeUnverifiedWalletAccount/removeUnverifiedWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatSignInMessage/formatSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/formatSignInMessage/formatSignInMessage.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts +2 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +2 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts +2 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.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 +8 -7
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/index.d.ts +1 -0
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/index.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/offWalletProviderEvent/offWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/events/offWalletProviderEvent/offWalletProviderEvent.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +2 -2
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/index.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/index.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +15 -1
- package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts +3 -2
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts.map +1 -1
- package/dist/modules/yield/claimYieldRewards/claimYieldRewards.d.ts +43 -0
- package/dist/modules/yield/claimYieldRewards/claimYieldRewards.d.ts.map +1 -0
- package/dist/modules/yield/claimYieldRewards/index.d.ts +3 -0
- package/dist/modules/yield/claimYieldRewards/index.d.ts.map +1 -0
- package/dist/modules/yield/depositToYieldVault/depositToYieldVault.d.ts +66 -0
- package/dist/modules/yield/depositToYieldVault/depositToYieldVault.d.ts.map +1 -0
- package/dist/modules/yield/depositToYieldVault/index.d.ts +3 -0
- package/dist/modules/yield/depositToYieldVault/index.d.ts.map +1 -0
- package/dist/modules/yield/utils/executeYieldTransaction/executeYieldTransaction.d.ts +40 -0
- package/dist/modules/yield/utils/executeYieldTransaction/executeYieldTransaction.d.ts.map +1 -0
- package/dist/modules/yield/utils/executeYieldTransaction/index.d.ts +3 -0
- package/dist/modules/yield/utils/executeYieldTransaction/index.d.ts.map +1 -0
- package/dist/modules/yield/withdrawFromYieldVault/index.d.ts +3 -0
- package/dist/modules/yield/withdrawFromYieldVault/index.d.ts.map +1 -0
- package/dist/modules/yield/withdrawFromYieldVault/withdrawFromYieldVault.d.ts +57 -0
- package/dist/modules/yield/withdrawFromYieldVault/withdrawFromYieldVault.d.ts.map +1 -0
- package/dist/modules/yield/yield.types.d.ts +27 -1
- package/dist/modules/yield/yield.types.d.ts.map +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts.map +1 -1
- package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts.map +1 -1
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts +2 -2
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts.map +1 -1
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-DcwFCD-Y.esm.js → updateAuthFromVerifyResponse-CFIyg2PR.esm.js} +62 -37
- package/dist/updateAuthFromVerifyResponse-CFIyg2PR.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js → updateAuthFromVerifyResponse-Cc1OH9i1.native.esm.js} +60 -37
- package/dist/updateAuthFromVerifyResponse-Cc1OH9i1.native.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-DD_rZDrQ.cjs → updateAuthFromVerifyResponse-Dvd40QfL.cjs} +67 -36
- package/dist/updateAuthFromVerifyResponse-Dvd40QfL.cjs.map +1 -0
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts +2 -2
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts.map +1 -1
- package/dist/utils/bufferToHex/bufferToHex.d.ts +1 -1
- package/dist/utils/bufferToHex/bufferToHex.d.ts.map +1 -1
- package/dist/utils/compressRawPublicKey/compressRawPublicKey.d.ts +2 -2
- package/dist/utils/compressRawPublicKey/compressRawPublicKey.d.ts.map +1 -1
- package/dist/utils/createTranslateRejection/createTranslateRejection.d.ts +1 -1
- package/dist/utils/createTranslateRejection/createTranslateRejection.d.ts.map +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts.map +1 -1
- package/dist/utils/encodeBase64Url/encodeBase64Url.d.ts +1 -1
- package/dist/utils/encodeBase64Url/encodeBase64Url.d.ts.map +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts.map +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts.map +1 -1
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/isServerSideRendering/isServerSideRendering.d.ts +1 -1
- package/dist/utils/isServerSideRendering/isServerSideRendering.d.ts.map +1 -1
- 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/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts +2 -2
- package/dist/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts.map +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts +5 -3
- package/dist/utils/p256Keygen/p256Keygen.d.ts.map +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts.map +1 -1
- package/dist/utils/randomString/randomString.d.ts.map +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts.map +1 -1
- package/dist/utils/setCookie/setCookie.d.ts +1 -1
- package/dist/utils/setCookie/setCookie.d.ts.map +1 -1
- 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.cjs.map +1 -1
- package/dist/waasCore.esm.js +6 -6
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +6 -6
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +4 -4
- package/dist/getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DBjVmBmy.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-OhoRrL_X.cjs.map +0 -1
- package/dist/getSignedSessionId-BncZzHdQ.esm.js.map +0 -1
- package/dist/getSignedSessionId-Dwqj_Cxx.native.esm.js.map +0 -1
- package/dist/getSignedSessionId-gwqj9h2p.cjs.map +0 -1
- package/dist/getWalletProviderByKey-C9TWlmDD.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-CnpXHkmq.cjs.map +0 -1
- package/dist/getWalletProviderByKey-Dh1slnTF.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-BJGirRfD.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-BjRiou3K.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-D5rzx59E.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
|
@@ -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"}
|
|
@@ -16,7 +16,7 @@ type ImportWaasPrivateKeyParams = {
|
|
|
16
16
|
* @param [params.thresholdSignatureScheme] - Optional threshold signature scheme configuration. Default is TWO_OF_TWO.
|
|
17
17
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
18
18
|
* @returns A promise that resolves when the private key is successfully imported.
|
|
19
|
-
|
|
19
|
+
* @notInstrumented
|
|
20
20
|
*/
|
|
21
21
|
export declare const importWaasPrivateKey: ({ chain, privateKey, thresholdSignatureScheme }: ImportWaasPrivateKeyParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
|
|
22
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importWaasPrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/importWaasPrivateKey/importWaasPrivateKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAG3F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,oDACkB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"importWaasPrivateKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/importWaasPrivateKey/importWaasPrivateKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAG3F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,oDACkB,0BAA0B,wDAE1E,OAAO,CAAC,IAAI,CAOd,CAAC"}
|
package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
type WaasVerifiedCredentialFields = {
|
|
8
|
+
businessAccountId?: string;
|
|
9
|
+
otherShareSets?: WaasShareSet[];
|
|
10
|
+
shareSetId?: string;
|
|
11
|
+
shareSetType?: WaasWalletShareSetType;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Layers the WaaS-only fields (business account ownership, share-set
|
|
15
|
+
* identity) onto an otherwise-generic `WalletAccount`, read from the same
|
|
16
|
+
* verified credential it was built from. Isolated into its own function,
|
|
17
|
+
* called on top of the assembled `WalletAccount`, rather than inlined into
|
|
18
|
+
* `convertVerifiedCredentialToWalletAccount` — that keeps the WaaS-only
|
|
19
|
+
* shape of the augmented result out of the wallets module, which builds
|
|
20
|
+
* only the generic `WalletAccount`.
|
|
21
|
+
*
|
|
22
|
+
* @notInstrumented
|
|
23
|
+
*/
|
|
24
|
+
export declare const injectWaasVerifiedCredentialFields: ({ verifiedCredential, walletAccount, }: InjectWaasVerifiedCredentialFieldsParams) => WalletAccount & WaasVerifiedCredentialFields;
|
|
25
|
+
export {};
|
|
26
|
+
//# 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,KAAK,4BAA4B,GAAG;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,2CAG5C,wCAAwC,KAAG,aAAa,GAAG,4BAQ5D,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8
8
|
* @returns True if Dynamic WaaS is enabled, false otherwise.
|
|
9
|
-
|
|
9
|
+
* @notInstrumented
|
|
10
10
|
*/
|
|
11
11
|
export declare const isDynamicWaasEnabled: (client?: import("../../../exports").DynamicClient) => boolean;
|
|
12
12
|
//# sourceMappingURL=isDynamicWaasEnabled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDynamicWaasEnabled.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"isDynamicWaasEnabled.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,yDAAkC,OAYlE,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,12 @@
|
|
|
1
|
+
import type { PolicyRuleMaxAmountPerTransaction } from '../policies.types';
|
|
2
|
+
type BuildValueLimitResult = {
|
|
3
|
+
asset: string | undefined;
|
|
4
|
+
maxPerCall: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Turns a {@link PolicyRuleMaxAmountPerTransaction} into the `valueLimit` shape a rule stores it as.
|
|
8
|
+
* @notInstrumented
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildValueLimit: ({ amount, asset, }: PolicyRuleMaxAmountPerTransaction) => BuildValueLimitResult;
|
|
11
|
+
export {};
|
|
12
|
+
//# 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,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,uBAGzB,iCAAiC,KAAG,qBAGrC,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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRuleDeletionMarker, PolicyRules } from '../policies.types';
|
|
3
|
+
type DesugarPolicyRulesParams = {
|
|
4
|
+
entries: (PolicyRuleDeletionMarker | WaasPolicyRule)[];
|
|
5
|
+
};
|
|
6
|
+
type DesugarPolicyRulesResult = {
|
|
7
|
+
rules: PolicyRules;
|
|
8
|
+
unmapped: WaasPolicyRule[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Reverses {@link expandPolicyRules} using {@link findMatchedRuleKind}'s
|
|
12
|
+
* same rule-kind table, skipping deletion markers. A kind claims at most
|
|
13
|
+
* one rule; extra matches, out-of-vocabulary fields, and per-rule
|
|
14
|
+
* `modifiableBySigner` grants (no sugar representation) all go to
|
|
15
|
+
* `unmapped` instead of being dropped.
|
|
16
|
+
*
|
|
17
|
+
* @param params.entries - The policy-Layer's rule entries, as returned in `layerContent.rules`.
|
|
18
|
+
* @returns The recognized rules as a {@link PolicyRules} map, plus whatever wasn't recognized.
|
|
19
|
+
* @notInstrumented
|
|
20
|
+
*/
|
|
21
|
+
export declare const desugarPolicyRules: ({ entries, }: DesugarPolicyRulesParams) => DesugarPolicyRulesResult;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=desugarPolicyRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desugarPolicyRules.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAI/E,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,CAAC,wBAAwB,GAAG,cAAc,CAAC,EAAE,CAAC;CACxD,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,iBAE5B,wBAAwB,KAAG,wBAwC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/desugarPolicyRules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WaasChainEnum, WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
type ExpandPolicyRulesParams = {
|
|
4
|
+
chain: WaasChainEnum;
|
|
5
|
+
chainIds?: number[];
|
|
6
|
+
rules: PolicyRules;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Expands the {@link PolicyRules} sugar map into `WaasPolicyRule[]` for one
|
|
10
|
+
* chain scope. Omitting `chainIds` (or passing an empty array) builds a
|
|
11
|
+
* wildcard rule matching every chain id of `chain`.
|
|
12
|
+
*
|
|
13
|
+
* @param params.rules - The sugar map describing the desired rules.
|
|
14
|
+
* @param params.chain - The chain these rules apply to.
|
|
15
|
+
* @param params.chainIds - The chain ids these rules apply to; omit for a wildcard rule that matches every chain id of `chain`.
|
|
16
|
+
* @returns The expanded `WaasPolicyRule[]`, without `ruleId`.
|
|
17
|
+
* @throws When expansion would produce an `allow` rule with a value limit and no addresses — that empties the allowed set and denies every transaction on the chain.
|
|
18
|
+
* @notInstrumented
|
|
19
|
+
*/
|
|
20
|
+
export declare const expandPolicyRules: ({ chain, chainIds, rules, }: ExpandPolicyRulesParams) => WaasPolicyRule[];
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=expandPolicyRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandPolicyRules.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/expandPolicyRules/expandPolicyRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIhF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,gCAI3B,uBAAuB,KAAG,cAAc,EAqB1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/expandPolicyRules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
type FillOmittedRuleValuesParams = {
|
|
4
|
+
existingRulesInScope: WaasPolicyRule[];
|
|
5
|
+
rules: PolicyRules;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A key the caller omitted can be silently dropped if it's merged into the
|
|
9
|
+
* same rule as a key they DID supply (e.g. re-saving only `allowAddresses`
|
|
10
|
+
* when the existing rule also carries `maxAmountPerTransaction`) — carries
|
|
11
|
+
* it forward so a partial re-save never erases a restriction the caller
|
|
12
|
+
* didn't ask to remove.
|
|
13
|
+
*
|
|
14
|
+
* Rules are visited in the same lexicographically-smallest-`ruleId` order
|
|
15
|
+
* `matchExistingRules` reuses, and only the first rule to cover a given key
|
|
16
|
+
* fills it — so when duplicate rules cover the same omitted key, the value
|
|
17
|
+
* always comes from the rule that will actually be upserted.
|
|
18
|
+
*
|
|
19
|
+
* @param params.existingRulesInScope - The layer's rules already narrowed to the target chain scope.
|
|
20
|
+
* @param params.rules - The caller's requested {@link PolicyRules} sugar map.
|
|
21
|
+
* @returns `rules`, with any key a partially-requested existing rule also covers filled in from that rule's current value.
|
|
22
|
+
* @notInstrumented
|
|
23
|
+
*/
|
|
24
|
+
export declare const fillOmittedRuleValues: ({ existingRulesInScope, rules, }: FillOmittedRuleValuesParams) => PolicyRules;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=fillOmittedRuleValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fillOmittedRuleValues.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrD,KAAK,2BAA2B,GAAG;IACjC,oBAAoB,EAAE,cAAc,EAAE,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAWF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,qBAAqB,qCAG/B,2BAA2B,KAAG,WAqBhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/fillOmittedRuleValues/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
import { type PolicyRuleKind } from '../policyRuleKinds';
|
|
4
|
+
export type FindMatchedRuleKindParams = {
|
|
5
|
+
claimedKinds: ReadonlySet<PolicyRuleKind>;
|
|
6
|
+
entry: WaasPolicyRule;
|
|
7
|
+
};
|
|
8
|
+
export type MatchedRuleKind = {
|
|
9
|
+
kind: PolicyRuleKind;
|
|
10
|
+
readResult: Partial<PolicyRules>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Finds the first {@link RULE_KINDS} entry that recognizes `entry` as its
|
|
14
|
+
* kind without colliding with an already-claimed key. Must check every key
|
|
15
|
+
* `readRule` would populate, not just this kind's own key — allowAddresses'
|
|
16
|
+
* `readRule` also populates `maxAmountPerTransaction` when the rule carries
|
|
17
|
+
* a merged cap, so accepting it while that key is already claimed would
|
|
18
|
+
* overwrite an earlier standalone cap.
|
|
19
|
+
* @notInstrumented
|
|
20
|
+
*/
|
|
21
|
+
export declare const findMatchedRuleKind: ({ claimedKinds, entry, }: FindMatchedRuleKindParams) => MatchedRuleKind | undefined;
|
|
22
|
+
//# sourceMappingURL=findMatchedRuleKind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findMatchedRuleKind.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAwB5B,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC1C,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,6BAG7B,yBAAyB,KAAG,eAAe,GAAG,SAYhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/findMatchedRuleKind/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
type GetAccountPolicyLayerParams = {
|
|
4
|
+
businessAccountId: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Fetches a business account's active policy rules (the account-Layer).
|
|
8
|
+
* BA owner/admin only. Calls the SDK API directly (no MPC step), so a
|
|
9
|
+
* rejection surfaces as a thrown error.
|
|
10
|
+
*
|
|
11
|
+
* @param params.businessAccountId - The business account to read policy rules for.
|
|
12
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
|
+
* @returns The account-Layer, including its current rules.
|
|
14
|
+
* @notInstrumented
|
|
15
|
+
*/
|
|
16
|
+
export declare const getAccountPolicyLayer: ({ businessAccountId }: GetAccountPolicyLayerParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=getAccountPolicyLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccountPolicyLayer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAI1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,0BACT,2BAA2B,WAC1C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAQjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getAccountPolicyLayer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|