@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,34 @@
|
|
|
1
|
+
import type { WaasChainEnum, WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
import type { PolicyRules, PolicyScope } from '../policies.types';
|
|
4
|
+
type GetPolicyParams = {
|
|
5
|
+
chain: WaasChainEnum;
|
|
6
|
+
chainIds?: number[];
|
|
7
|
+
scope: PolicyScope;
|
|
8
|
+
};
|
|
9
|
+
type GetPolicyResult = {
|
|
10
|
+
layerId: string;
|
|
11
|
+
rules: PolicyRules;
|
|
12
|
+
unmapped: WaasPolicyRule[];
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Fetches a policy layer and reads its `chain`/`chainIds` scope back into
|
|
17
|
+
* the {@link PolicyRules} sugar map (see {@link desugarPolicyRules}). A
|
|
18
|
+
* layer can hold rules for more than one chain, so entries are narrowed to
|
|
19
|
+
* `chain`/`chainIds` first — the same scoping {@link createPolicy} uses —
|
|
20
|
+
* to keep the `getPolicy` → edit → `createPolicy` round-trip safe for
|
|
21
|
+
* multi-chain wallets. Calls the SDK API directly (no MPC step), so a
|
|
22
|
+
* rejection surfaces as a thrown error.
|
|
23
|
+
*
|
|
24
|
+
* @param params.scope - Which policy layer to read — see {@link resolvePolicyScope}.
|
|
25
|
+
* @param params.chain - The chain to read rules for.
|
|
26
|
+
* @param params.chainIds - The chain ids to read rules for; omit to read the wildcard rule matching every chain id of `chain`.
|
|
27
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
28
|
+
* @returns The recognized rules as a {@link PolicyRules} map, whatever wasn't recognized within `chain`/`chainIds`, and the layer's id and last-updated timestamp.
|
|
29
|
+
* @throws Via {@link resolvePolicyScope}'s scope-resolution errors.
|
|
30
|
+
* @notInstrumented
|
|
31
|
+
*/
|
|
32
|
+
export declare const getPolicy: ({ chain, chainIds, scope }: GetPolicyParams, client?: DynamicClient) => Promise<GetPolicyResult>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=getPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicy.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getPolicy/getPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS,+BACQ,eAAe,WACnC,aAAa,KACpB,OAAO,CAAC,eAAe,CAmBzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getPolicy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
import type { ResolvedPolicyScope } from '../resolvePolicyScope';
|
|
4
|
+
type GetResolvedPolicyLayerParams = {
|
|
5
|
+
resolvedScope: ResolvedPolicyScope;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Fetches the policy layer a {@link ResolvedPolicyScope} points at. Shared
|
|
9
|
+
* by {@link createPolicy}, {@link getPolicy}, and {@link removePolicyRules}
|
|
10
|
+
* so the account/wallet/signer branch is written once.
|
|
11
|
+
*
|
|
12
|
+
* @notInstrumented
|
|
13
|
+
*/
|
|
14
|
+
export declare const getResolvedPolicyLayer: ({ resolvedScope }: GetResolvedPolicyLayerParams, client: DynamicClient) => Promise<WaasPolicyLayerResponse>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=getResolvedPolicyLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResolvedPolicyLayer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,4BAA4B,GAAG;IAClC,aAAa,EAAE,mBAAmB,CAAC;CACpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,sBACd,4BAA4B,UACvC,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAgCjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getResolvedPolicyLayer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
import type { WalletAccount } from '../../../wallets/walletAccount';
|
|
4
|
+
type GetSignerPolicyLayerParams = {
|
|
5
|
+
/** Targets a share set other than the caller's own. Omit to read the caller's own active share set. */
|
|
6
|
+
shareSetId?: string;
|
|
7
|
+
walletAccount: WalletAccount;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Fetches a signer's active policy rules (the signer-Layer) — the caller's
|
|
11
|
+
* own active share set by default, or another share set on the same wallet
|
|
12
|
+
* (e.g. a delegated share set) when `shareSetId` is given. Calls the SDK API
|
|
13
|
+
* directly (no MPC step), so a rejection surfaces as a thrown error.
|
|
14
|
+
*
|
|
15
|
+
* @param params.walletAccount - The wallet account whose signer-Layer to read.
|
|
16
|
+
* @param [params.shareSetId] - The share set to target; defaults to the caller's own.
|
|
17
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
18
|
+
* @returns The signer-Layer, including its current rules.
|
|
19
|
+
* @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
|
|
20
|
+
* @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
|
|
21
|
+
* @notInstrumented
|
|
22
|
+
*/
|
|
23
|
+
export declare const getSignerPolicyLayer: ({ shareSetId, walletAccount }: GetSignerPolicyLayerParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=getSignerPolicyLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignerPolicyLayer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAI1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,0BAA0B,GAAG;IAChC,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,kCACA,0BAA0B,WACjD,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAcjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getSignerPolicyLayer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WaasPolicyLayerResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
import type { WalletAccount } from '../../../wallets/walletAccount';
|
|
4
|
+
type GetWalletPolicyLayerParams = {
|
|
5
|
+
walletAccount: WalletAccount;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Fetches a wallet's active policy rules (the wallet-Layer). Calls the SDK
|
|
9
|
+
* API directly (no MPC step), so a rejection surfaces as a thrown error.
|
|
10
|
+
*
|
|
11
|
+
* @param params.walletAccount - The wallet account to read policy rules for.
|
|
12
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
|
+
* @returns The wallet-Layer, including its current rules.
|
|
14
|
+
* @throws {ValueMustBeDefinedError} When `walletAccount` has no `verifiedCredentialId` (it isn't a verified wallet account yet).
|
|
15
|
+
* @throws {APIError} When the SDK API request fails, for example an unauthorized, not-found, or server error response.
|
|
16
|
+
* @notInstrumented
|
|
17
|
+
*/
|
|
18
|
+
export declare const getWalletPolicyLayer: ({ walletAccount }: GetWalletPolicyLayerParams, client?: DynamicClient) => Promise<WaasPolicyLayerResponse>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=getWalletPolicyLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWalletPolicyLayer.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAI1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,KAAK,0BAA0B,GAAG;IAChC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,sBACZ,0BAA0B,WACrC,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAajC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/getWalletPolicyLayer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
/**
|
|
3
|
+
* Checks both the current `addresses` array and the legacy singular `address` field.
|
|
4
|
+
* @notInstrumented
|
|
5
|
+
*/
|
|
6
|
+
export declare const hasAddresses: (rule: WaasPolicyRule) => boolean;
|
|
7
|
+
//# sourceMappingURL=hasAddresses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasAddresses.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/hasAddresses/hasAddresses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAU,cAAc,KAAG,OAE9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/hasAddresses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasUnrecognizedFields.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAuBjE;;GAEG;AACH,eAAO,MAAM,qBAAqB,SAAU,cAAc,KAAG,OAML,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/hasUnrecognizedFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/isPolicyRuleDeletionMarker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRuleDeletionMarker } from '../policies.types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognizes a policy-Layer deletion marker — the enclave's stand-in for a
|
|
5
|
+
* rule it couldn't drop outright, kept so the removal stays attributable.
|
|
6
|
+
* Matches on the entry's exact key set, not field presence, since the read
|
|
7
|
+
* response types every entry as a live rule.
|
|
8
|
+
*
|
|
9
|
+
* @param entry - The raw policy-Layer rule entry to check.
|
|
10
|
+
* @returns Whether `entry` is a deletion marker rather than a live rule.
|
|
11
|
+
* @notInstrumented
|
|
12
|
+
*/
|
|
13
|
+
export declare const isPolicyRuleDeletionMarker: (entry: PolicyRuleDeletionMarker | WaasPolicyRule) => entry is PolicyRuleDeletionMarker;
|
|
14
|
+
//# sourceMappingURL=isPolicyRuleDeletionMarker.d.ts.map
|
package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPolicyRuleDeletionMarker.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AASlE;;;;;;;;;GASG;AAEH,eAAO,MAAM,0BAA0B,UAC9B,wBAAwB,GAAG,cAAc,KAC/C,KAAK,IAAI,wBASX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/matchExistingRules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
type MatchExistingRulesParams = {
|
|
3
|
+
builtRule: WaasPolicyRule;
|
|
4
|
+
consumedRuleIds: Set<string>;
|
|
5
|
+
existingRulesInScope: WaasPolicyRule[];
|
|
6
|
+
};
|
|
7
|
+
/** A rule that can be reused or superseded always has a `ruleId` — see the `matches` filter below. */
|
|
8
|
+
type MatchedRule = WaasPolicyRule & {
|
|
9
|
+
ruleId: string;
|
|
10
|
+
};
|
|
11
|
+
export type RuleMatch = {
|
|
12
|
+
/** The rule to upsert `builtRule` onto, if any existing rule covers one of its keys. */
|
|
13
|
+
reused: MatchedRule | undefined;
|
|
14
|
+
/** Rules fully absorbed into `builtRule` — safe to remove. */
|
|
15
|
+
superseded: MatchedRule[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Matches existing rules covering any of `builtRule`'s keys. Only rules
|
|
19
|
+
* being *absorbed* into it — i.e. no other match claims the same key — are
|
|
20
|
+
* superseded (safe to remove). Two matches claiming the SAME key (e.g. two
|
|
21
|
+
* hand-authored `denyAddresses` rules for this chain scope) are a
|
|
22
|
+
* legitimate duplicate, not one superseding the other, so are left alone
|
|
23
|
+
* rather than removed.
|
|
24
|
+
*
|
|
25
|
+
* @param params.builtRule - The newly built rule to match existing rules against.
|
|
26
|
+
* @param params.consumedRuleIds - `ruleId`s already reused or removed for a prior built rule this call, so none is touched twice.
|
|
27
|
+
* @param params.existingRulesInScope - The layer's rules already narrowed to the target chain scope.
|
|
28
|
+
* @returns The rule to reuse `builtRule`'s upsert onto (if any), and every rule it supersedes.
|
|
29
|
+
* @notInstrumented
|
|
30
|
+
*/
|
|
31
|
+
export declare const matchExistingRules: ({ builtRule, consumedRuleIds, existingRulesInScope, }: MatchExistingRulesParams) => RuleMatch;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=matchExistingRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchExistingRules.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/matchExistingRules/matchExistingRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMjE,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,cAAc,CAAC;IAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,EAAE,cAAc,EAAE,CAAC;CACxC,CAAC;AAEF,sGAAsG;AACtG,KAAK,WAAW,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG;IACtB,wFAAwF;IACxF,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,8DAA8D;IAC9D,UAAU,EAAE,WAAW,EAAE,CAAC;CAC3B,CAAC;AAKF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0DAI5B,wBAAwB,KAAG,SA2B7B,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { WaasChainEnum, WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRuleKind } from './policyRuleKinds';
|
|
3
|
+
/**
|
|
4
|
+
* The fields a caller supplies for a policy rule, minus `ruleType` — set
|
|
5
|
+
* instead via {@link buildAllowPolicyRule} or {@link buildDenyPolicyRule}.
|
|
6
|
+
*/
|
|
7
|
+
export type PolicyRuleInput = Omit<WaasPolicyRule, 'ruleType'>;
|
|
8
|
+
/**
|
|
9
|
+
* A value cap on a single transaction, in the smallest unit of the asset
|
|
10
|
+
* (e.g. wei). Omit `asset` to cap the chain's native asset.
|
|
11
|
+
*/
|
|
12
|
+
export type PolicyRuleMaxAmountPerTransaction = {
|
|
13
|
+
amount: string;
|
|
14
|
+
asset?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The chain scope every rule a {@link PolicyRules} key produces is stamped
|
|
18
|
+
* with — but not every kind's enforcement reads it back (some
|
|
19
|
+
* `operationRestrictions` kinds ignore it; see the `blockExport` rule
|
|
20
|
+
* builder).
|
|
21
|
+
*/
|
|
22
|
+
export type RuleKindContext = {
|
|
23
|
+
chain: WaasChainEnum;
|
|
24
|
+
chainIds: number[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The params every rule kind's `buildRule` takes — shared here so the
|
|
28
|
+
* individual builders and `RuleKindDefinition.buildRule` in
|
|
29
|
+
* `policyRuleKinds.ts` can't drift out of sync.
|
|
30
|
+
*/
|
|
31
|
+
export type BuildRuleParams = {
|
|
32
|
+
context: RuleKindContext;
|
|
33
|
+
rules: PolicyRules;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The declarative, sugared surface over a wallet's or signer's policy rules
|
|
37
|
+
* — one key per concern instead of a full {@link WaasPolicyRule}. Setting a
|
|
38
|
+
* key again replaces its rule rather than adding a second one.
|
|
39
|
+
*
|
|
40
|
+
* Deliberately excludes `valueLimit.totalLimit`, `contractAbi`,
|
|
41
|
+
* `functionName`, `argumentConstraints`, `blockClientSigning`,
|
|
42
|
+
* `blockRevocation`, and `disableBlockaidSecurityChecks` — the evaluator
|
|
43
|
+
* has no read site for these against a wallet/signer layer, so a shortcut
|
|
44
|
+
* would silently no-op. Use {@link upsertWalletPolicyRule} or
|
|
45
|
+
* {@link upsertSignerPolicyRule} directly instead.
|
|
46
|
+
*/
|
|
47
|
+
export type PolicyRules = {
|
|
48
|
+
/** Restricts transactions to only these addresses (default-deny of everything else). Combine freely with `maxAmountPerTransaction`, which is merged onto the same rule rather than emitting a second one. */
|
|
49
|
+
allowAddresses?: string[];
|
|
50
|
+
/** Blocks key-export operations, enforced wallet-wide — despite the rule carrying `chain`/`chainIds`, this is not scoped to them. */
|
|
51
|
+
blockExport?: boolean;
|
|
52
|
+
/** Denies these addresses, independent of `allowAddresses`. */
|
|
53
|
+
denyAddresses?: string[];
|
|
54
|
+
/** Caps the value of a single transaction. Merged onto the `allowAddresses` rule when both are given, otherwise stands alone. */
|
|
55
|
+
maxAmountPerTransaction?: PolicyRuleMaxAmountPerTransaction;
|
|
56
|
+
/**
|
|
57
|
+
* Overrides the default human-readable name a rule kind would otherwise get
|
|
58
|
+
* (e.g. `'Allowed addresses'`). When `allowAddresses` and
|
|
59
|
+
* `maxAmountPerTransaction` are merged onto one rule, `allowAddresses`'s
|
|
60
|
+
* name wins.
|
|
61
|
+
*/
|
|
62
|
+
names?: Partial<Record<PolicyRuleKind, string>>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* A policy-Layer deletion marker — the enclave's stand-in for a rule it
|
|
66
|
+
* removed but couldn't drop outright, kept so the removal stays
|
|
67
|
+
* attributable. Layer reads type every entry as a live rule, so a marker
|
|
68
|
+
* must be recognized structurally — see {@link isPolicyRuleDeletionMarker}.
|
|
69
|
+
*/
|
|
70
|
+
export type PolicyRuleDeletionMarker = {
|
|
71
|
+
deletedById: string;
|
|
72
|
+
deletedByType: string;
|
|
73
|
+
ruleId: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Identifies which policy layer a {@link PolicyRules} operation targets: a
|
|
77
|
+
* business account's account-Layer (by `businessAccountId`), a wallet's own
|
|
78
|
+
* wallet-Layer, or a specific share set's signer-Layer (by `walletId` +
|
|
79
|
+
* `shareSetId`, or by `shareSetId` alone when the owning wallet isn't
|
|
80
|
+
* already known). Resolved to a concrete API target by
|
|
81
|
+
* {@link resolvePolicyScope}.
|
|
82
|
+
*/
|
|
83
|
+
export type PolicyScope = {
|
|
84
|
+
businessAccountId: string;
|
|
85
|
+
} | {
|
|
86
|
+
shareSetId?: string;
|
|
87
|
+
walletId: string;
|
|
88
|
+
} | {
|
|
89
|
+
shareSetId: string;
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=policies.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policies.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/policies/policies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,6MAA6M;IAC7M,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,qIAAqI;IACrI,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,iIAAiI;IACjI,uBAAuB,CAAC,EAAE,iCAAiC,CAAC;IAC5D;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;CACjD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PolicyRuleKind } from './policyRuleKinds';
|
|
2
|
+
/**
|
|
3
|
+
* Each rule kind's name when the caller doesn't override it via
|
|
4
|
+
* `PolicyRules['names']`. Shared between the `build*Rule` functions and
|
|
5
|
+
* `desugarPolicyRules` so a rename can't drift the two out of sync — the
|
|
6
|
+
* same reason `RULE_KINDS` in `policyRuleKinds.ts` is a single table
|
|
7
|
+
* instead of parallel switches.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_POLICY_RULE_NAMES: Record<PolicyRuleKind, string>;
|
|
10
|
+
//# sourceMappingURL=policyRuleDefaultNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyRuleDefaultNames.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/policies/policyRuleDefaultNames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKpE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { BuildRuleParams, PolicyRules } from './policies.types';
|
|
3
|
+
export type { RuleKindContext } from './policies.types';
|
|
4
|
+
/**
|
|
5
|
+
* Kept as a data table, not parallel switches in
|
|
6
|
+
* `expandPolicyRules`/`desugarPolicyRules`, so the two can't drift out of sync.
|
|
7
|
+
*/
|
|
8
|
+
type RuleKindDefinition = {
|
|
9
|
+
/**
|
|
10
|
+
* Builds this kind's rule from the full sugar map, not just this key's
|
|
11
|
+
* own value, so a key can be absorbed into another kind's rule instead of
|
|
12
|
+
* emitting its own (see `allowAddresses` / `maxAmountPerTransaction`).
|
|
13
|
+
*/
|
|
14
|
+
buildRule: (params: BuildRuleParams) => WaasPolicyRule | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Recognizes an existing rule as this kind and reads its sugar value
|
|
17
|
+
* back. Undefined when it doesn't match, including when it carries a
|
|
18
|
+
* field outside the sugar vocabulary, so that data is never silently
|
|
19
|
+
* dropped.
|
|
20
|
+
*/
|
|
21
|
+
readRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** The four keys of {@link PolicyRules}, each of which produces its own rule. */
|
|
24
|
+
export declare const RULE_KIND_KEYS: readonly ["blockExport", "allowAddresses", "denyAddresses", "maxAmountPerTransaction"];
|
|
25
|
+
export type PolicyRuleKind = (typeof RULE_KIND_KEYS)[number];
|
|
26
|
+
/**
|
|
27
|
+
* The single source of truth {@link expandPolicyRules} and
|
|
28
|
+
* {@link desugarPolicyRules} both build on. Entries are alphabetized
|
|
29
|
+
* (enforced by lint), not grouped by relationship — `allowAddresses` and
|
|
30
|
+
* `maxAmountPerTransaction` cooperate (see their builders' comments) despite
|
|
31
|
+
* sitting apart here.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RULE_KINDS: Record<PolicyRuleKind, RuleKindDefinition>;
|
|
34
|
+
//# sourceMappingURL=policyRuleKinds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyRuleKinds.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/policies/policyRuleKinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMjE,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMrE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;GAGG;AACH,KAAK,kBAAkB,GAAG;IACxB;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,cAAc,GAAG,SAAS,CAAC;IACnE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,cAAc,wFAKjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAiBjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readAllowAddressesRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognizes an existing rule as `allowAddresses`, reading back a merged
|
|
5
|
+
* `maxAmountPerTransaction` cap too when the rule carries one.
|
|
6
|
+
* @notInstrumented
|
|
7
|
+
*/
|
|
8
|
+
export declare const readAllowAddressesRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
|
|
9
|
+
//# sourceMappingURL=readAllowAddressesRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readAllowAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,SAC3B,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAoBzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readBlockExportRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognizes an existing rule as `blockExport`.
|
|
5
|
+
* @notInstrumented
|
|
6
|
+
*/
|
|
7
|
+
export declare const readBlockExportRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
|
|
8
|
+
//# sourceMappingURL=readBlockExportRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readBlockExportRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readBlockExportRule/readBlockExportRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SACxB,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAUzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readCoveredRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
import { type PolicyRuleKind } from '../policyRuleKinds';
|
|
4
|
+
export type CoveredRule = {
|
|
5
|
+
keys: PolicyRuleKind[];
|
|
6
|
+
/** The rule kind whose builder owns this rule's `name` when kinds are merged (e.g. `allowAddresses` over `maxAmountPerTransaction`). */
|
|
7
|
+
kind: PolicyRuleKind;
|
|
8
|
+
values: Partial<PolicyRules>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Statically asserts every {@link PolicyRuleKind} is a {@link PolicyRules}
|
|
12
|
+
* key, so `objectKeys(values)` below is safe to widen to `PolicyRuleKind[]`
|
|
13
|
+
* without a runtime cast — fails to compile if a kind and its sugar key
|
|
14
|
+
* ever drift apart. Exported (unused otherwise) purely so `noUnusedLocals`
|
|
15
|
+
* leaves it alone; not part of this module's public surface.
|
|
16
|
+
*/
|
|
17
|
+
export type KindsCoverPolicyRules = PolicyRuleKind extends keyof PolicyRules ? true : never;
|
|
18
|
+
/**
|
|
19
|
+
* The sugar keys and values an existing rule structurally represents — a
|
|
20
|
+
* single rule can cover more than one key (see `allowAddresses` absorbing
|
|
21
|
+
* `maxAmountPerTransaction` in `policyRuleKinds.ts`). A rule carrying a
|
|
22
|
+
* per-rule `modifiableBySigner` grant is never matched here — treating it
|
|
23
|
+
* as covering keys would let a caller's batch reuse/replace/remove it and
|
|
24
|
+
* silently revoke that signer's edit permission (mirrors `desugarPolicyRules`).
|
|
25
|
+
*
|
|
26
|
+
* @param rule - The existing policy-layer rule to read.
|
|
27
|
+
* @returns The sugar keys and values the rule covers, or undefined when it matches no kind or carries a signer grant.
|
|
28
|
+
* @notInstrumented
|
|
29
|
+
*/
|
|
30
|
+
export declare const readCoveredRule: (rule: WaasPolicyRule) => CoveredRule | undefined;
|
|
31
|
+
//# sourceMappingURL=readCoveredRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readCoveredRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readCoveredRule/readCoveredRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,wIAAwI;IACxI,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,SAAS,MAAM,WAAW,GACxE,IAAI,GACJ,KAAK,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,SACpB,cAAc,KACnB,WAAW,GAAG,SAehB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readDenyAddressesRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognizes an existing rule as `denyAddresses`.
|
|
5
|
+
* @notInstrumented
|
|
6
|
+
*/
|
|
7
|
+
export declare const readDenyAddressesRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
|
|
8
|
+
//# sourceMappingURL=readDenyAddressesRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readDenyAddressesRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,SAC1B,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAUzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readMaxAmountPerTransactionRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { PolicyRules } from '../policies.types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognizes an existing rule as a standalone `maxAmountPerTransaction` cap.
|
|
5
|
+
* @notInstrumented
|
|
6
|
+
*/
|
|
7
|
+
export declare const readMaxAmountPerTransactionRule: (rule: WaasPolicyRule) => Partial<PolicyRules> | undefined;
|
|
8
|
+
//# sourceMappingURL=readMaxAmountPerTransactionRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readMaxAmountPerTransactionRule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,SACpC,cAAc,KACnB,OAAO,CAAC,WAAW,CAAC,GAAG,SAezB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readValueLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PolicyRuleMaxAmountPerTransaction } from '../policies.types';
|
|
2
|
+
/**
|
|
3
|
+
* Reads a stored `valueLimit` back into a {@link PolicyRuleMaxAmountPerTransaction}.
|
|
4
|
+
* @notInstrumented
|
|
5
|
+
*/
|
|
6
|
+
export declare const readValueLimit: ({ asset, maxPerCall, }: {
|
|
7
|
+
asset: string | null | undefined;
|
|
8
|
+
maxPerCall: string;
|
|
9
|
+
}) => PolicyRuleMaxAmountPerTransaction;
|
|
10
|
+
//# sourceMappingURL=readValueLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readValueLimit.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/readValueLimit/readValueLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,cAAc,2BAGxB;IACD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,KAAG,iCAGF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/policies/removeAccountPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|