@dynamic-labs-sdk/react-hooks 1.28.0 → 1.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/dist/core.cjs +1 -1
  2. package/dist/core.esm.js +1 -1
  3. package/dist/exports/index.d.ts +17 -0
  4. package/dist/exports/index.d.ts.map +1 -1
  5. package/dist/foundation/useBaseState/useBaseState.d.ts +2 -2
  6. package/dist/foundation/useBaseState/useBaseState.d.ts.map +1 -1
  7. package/dist/hooks/wrappers/functions/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts +2 -1
  8. package/dist/hooks/wrappers/functions/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts.map +1 -1
  9. package/dist/hooks/wrappers/functions/useAddBusinessAccountMember/useAddBusinessAccountMember.d.ts +2 -5
  10. package/dist/hooks/wrappers/functions/useAddBusinessAccountMember/useAddBusinessAccountMember.d.ts.map +1 -1
  11. package/dist/hooks/wrappers/functions/useAddBusinessAccountSigner/useAddBusinessAccountSigner.d.ts +2 -10
  12. package/dist/hooks/wrappers/functions/useAddBusinessAccountSigner/useAddBusinessAccountSigner.d.ts.map +1 -1
  13. package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.d.ts.map +1 -1
  14. package/dist/hooks/wrappers/functions/useAddNetwork/useAddNetwork.d.ts +2 -4
  15. package/dist/hooks/wrappers/functions/useAddNetwork/useAddNetwork.d.ts.map +1 -1
  16. package/dist/hooks/wrappers/functions/useAddWalletToBusinessAccount/useAddWalletToBusinessAccount.d.ts +2 -8
  17. package/dist/hooks/wrappers/functions/useAddWalletToBusinessAccount/useAddWalletToBusinessAccount.d.ts.map +1 -1
  18. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts +2 -1
  19. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts.map +1 -1
  20. package/dist/hooks/wrappers/functions/useAttachFlowSource/useAttachFlowSource.d.ts +2 -1
  21. package/dist/hooks/wrappers/functions/useAttachFlowSource/useAttachFlowSource.d.ts.map +1 -1
  22. package/dist/hooks/wrappers/functions/useAuthenticateMfaRecoveryCode/useAuthenticateMfaRecoveryCode.d.ts +2 -5
  23. package/dist/hooks/wrappers/functions/useAuthenticateMfaRecoveryCode/useAuthenticateMfaRecoveryCode.d.ts.map +1 -1
  24. package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts +2 -5
  25. package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts.map +1 -1
  26. package/dist/hooks/wrappers/functions/useAuthenticateTotpMfaDevice/useAuthenticateTotpMfaDevice.d.ts +3 -6
  27. package/dist/hooks/wrappers/functions/useAuthenticateTotpMfaDevice/useAuthenticateTotpMfaDevice.d.ts.map +1 -1
  28. package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/index.d.ts +1 -1
  29. package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/index.d.ts.map +1 -1
  30. package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/useBackupWaasKeySharesToGoogleDrive.d.ts +2 -5
  31. package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/useBackupWaasKeySharesToGoogleDrive.d.ts.map +1 -1
  32. package/dist/hooks/wrappers/functions/useBroadcastFlow/useBroadcastFlow.d.ts +2 -1
  33. package/dist/hooks/wrappers/functions/useBroadcastFlow/useBroadcastFlow.d.ts.map +1 -1
  34. package/dist/hooks/wrappers/functions/useCancelFlow/useCancelFlow.d.ts +2 -1
  35. package/dist/hooks/wrappers/functions/useCancelFlow/useCancelFlow.d.ts.map +1 -1
  36. package/dist/hooks/wrappers/functions/useCheckStepUpAuth/useCheckStepUpAuth.d.ts +2 -1
  37. package/dist/hooks/wrappers/functions/useCheckStepUpAuth/useCheckStepUpAuth.d.ts.map +1 -1
  38. package/dist/hooks/wrappers/functions/useClaimYieldRewards/index.d.ts +2 -0
  39. package/dist/hooks/wrappers/functions/useClaimYieldRewards/index.d.ts.map +1 -0
  40. package/dist/hooks/wrappers/functions/useClaimYieldRewards/useClaimYieldRewards.d.ts +43 -0
  41. package/dist/hooks/wrappers/functions/useClaimYieldRewards/useClaimYieldRewards.d.ts.map +1 -0
  42. package/dist/hooks/wrappers/functions/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts +2 -3
  43. package/dist/hooks/wrappers/functions/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts.map +1 -1
  44. package/dist/hooks/wrappers/functions/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts +2 -1
  45. package/dist/hooks/wrappers/functions/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts.map +1 -1
  46. package/dist/hooks/wrappers/functions/useConfirmTransaction/useConfirmTransaction.d.ts +2 -1
  47. package/dist/hooks/wrappers/functions/useConfirmTransaction/useConfirmTransaction.d.ts.map +1 -1
  48. package/dist/hooks/wrappers/functions/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.d.ts +2 -4
  49. package/dist/hooks/wrappers/functions/useConnectAndVerifyWithWalletProvider/useConnectAndVerifyWithWalletProvider.d.ts.map +1 -1
  50. package/dist/hooks/wrappers/functions/useConnectWithWalletProvider/useConnectWithWalletProvider.d.ts +2 -5
  51. package/dist/hooks/wrappers/functions/useConnectWithWalletProvider/useConnectWithWalletProvider.d.ts.map +1 -1
  52. package/dist/hooks/wrappers/functions/useCreateBusinessAccount/useCreateBusinessAccount.d.ts +2 -5
  53. package/dist/hooks/wrappers/functions/useCreateBusinessAccount/useCreateBusinessAccount.d.ts.map +1 -1
  54. package/dist/hooks/wrappers/functions/useCreateCoinbaseExchangeTransfer/useCreateCoinbaseExchangeTransfer.d.ts +2 -1
  55. package/dist/hooks/wrappers/functions/useCreateCoinbaseExchangeTransfer/useCreateCoinbaseExchangeTransfer.d.ts.map +1 -1
  56. package/dist/hooks/wrappers/functions/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts +2 -1
  57. package/dist/hooks/wrappers/functions/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts.map +1 -1
  58. package/dist/hooks/wrappers/functions/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts +2 -1
  59. package/dist/hooks/wrappers/functions/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts.map +1 -1
  60. package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts +2 -1
  61. package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts.map +1 -1
  62. package/dist/hooks/wrappers/functions/useCreateNewMfaRecoveryCodes/useCreateNewMfaRecoveryCodes.d.ts +2 -1
  63. package/dist/hooks/wrappers/functions/useCreateNewMfaRecoveryCodes/useCreateNewMfaRecoveryCodes.d.ts.map +1 -1
  64. package/dist/hooks/wrappers/functions/useCreatePolicy/index.d.ts +3 -0
  65. package/dist/hooks/wrappers/functions/useCreatePolicy/index.d.ts.map +1 -0
  66. package/dist/hooks/wrappers/functions/useCreatePolicy/useCreatePolicy.d.ts +53 -0
  67. package/dist/hooks/wrappers/functions/useCreatePolicy/useCreatePolicy.d.ts.map +1 -0
  68. package/dist/hooks/wrappers/functions/useCreateWaasOfflineRecoveryShares/index.d.ts +1 -1
  69. package/dist/hooks/wrappers/functions/useCreateWaasOfflineRecoveryShares/index.d.ts.map +1 -1
  70. package/dist/hooks/wrappers/functions/useCreateWaasOfflineRecoveryShares/useCreateWaasOfflineRecoveryShares.d.ts +2 -6
  71. package/dist/hooks/wrappers/functions/useCreateWaasOfflineRecoveryShares/useCreateWaasOfflineRecoveryShares.d.ts.map +1 -1
  72. package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/index.d.ts +1 -1
  73. package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/index.d.ts.map +1 -1
  74. package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.d.ts +2 -5
  75. package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.d.ts.map +1 -1
  76. package/dist/hooks/wrappers/functions/useCreateWalletForBusinessAccount/index.d.ts +1 -1
  77. package/dist/hooks/wrappers/functions/useCreateWalletForBusinessAccount/index.d.ts.map +1 -1
  78. package/dist/hooks/wrappers/functions/useCreateWalletForBusinessAccount/useCreateWalletForBusinessAccount.d.ts +2 -10
  79. package/dist/hooks/wrappers/functions/useCreateWalletForBusinessAccount/useCreateWalletForBusinessAccount.d.ts.map +1 -1
  80. package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/index.d.ts +1 -1
  81. package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/index.d.ts.map +1 -1
  82. package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts +2 -5
  83. package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts.map +1 -1
  84. package/dist/hooks/wrappers/functions/useDeleteMfaDevice/useDeleteMfaDevice.d.ts +2 -4
  85. package/dist/hooks/wrappers/functions/useDeleteMfaDevice/useDeleteMfaDevice.d.ts.map +1 -1
  86. package/dist/hooks/wrappers/functions/useDeletePasskey/useDeletePasskey.d.ts +2 -3
  87. package/dist/hooks/wrappers/functions/useDeletePasskey/useDeletePasskey.d.ts.map +1 -1
  88. package/dist/hooks/wrappers/functions/useDeleteUser/useDeleteUser.d.ts +3 -2
  89. package/dist/hooks/wrappers/functions/useDeleteUser/useDeleteUser.d.ts.map +1 -1
  90. package/dist/hooks/wrappers/functions/useDepositToYieldVault/index.d.ts +2 -0
  91. package/dist/hooks/wrappers/functions/useDepositToYieldVault/index.d.ts.map +1 -0
  92. package/dist/hooks/wrappers/functions/useDepositToYieldVault/useDepositToYieldVault.d.ts +41 -0
  93. package/dist/hooks/wrappers/functions/useDepositToYieldVault/useDepositToYieldVault.d.ts.map +1 -0
  94. package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts +2 -1
  95. package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts.map +1 -1
  96. package/dist/hooks/wrappers/functions/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts +2 -3
  97. package/dist/hooks/wrappers/functions/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts.map +1 -1
  98. package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/index.d.ts +1 -1
  99. package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/index.d.ts.map +1 -1
  100. package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.d.ts +2 -4
  101. package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.d.ts.map +1 -1
  102. package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/index.d.ts +1 -1
  103. package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/index.d.ts.map +1 -1
  104. package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.d.ts +2 -5
  105. package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.d.ts.map +1 -1
  106. package/dist/hooks/wrappers/functions/useGetAccountPolicyLayer/index.d.ts +2 -0
  107. package/dist/hooks/wrappers/functions/useGetAccountPolicyLayer/index.d.ts.map +1 -0
  108. package/dist/hooks/wrappers/functions/useGetAccountPolicyLayer/useGetAccountPolicyLayer.d.ts +39 -0
  109. package/dist/hooks/wrappers/functions/useGetAccountPolicyLayer/useGetAccountPolicyLayer.d.ts.map +1 -0
  110. package/dist/hooks/wrappers/functions/useGetActiveNetworkData/useGetActiveNetworkData.d.ts +2 -3
  111. package/dist/hooks/wrappers/functions/useGetActiveNetworkData/useGetActiveNetworkData.d.ts.map +1 -1
  112. package/dist/hooks/wrappers/functions/useGetActiveNetworkId/useGetActiveNetworkId.d.ts +2 -3
  113. package/dist/hooks/wrappers/functions/useGetActiveNetworkId/useGetActiveNetworkId.d.ts.map +1 -1
  114. package/dist/hooks/wrappers/functions/useGetAvailableWalletProvidersData/useGetAvailableWalletProvidersData.d.ts +3 -1
  115. package/dist/hooks/wrappers/functions/useGetAvailableWalletProvidersData/useGetAvailableWalletProvidersData.d.ts.map +1 -1
  116. package/dist/hooks/wrappers/functions/useGetBalanceForAddress/useGetBalanceForAddress.d.ts +2 -3
  117. package/dist/hooks/wrappers/functions/useGetBalanceForAddress/useGetBalanceForAddress.d.ts.map +1 -1
  118. package/dist/hooks/wrappers/functions/useGetBusinessAccount/useGetBusinessAccount.d.ts +2 -5
  119. package/dist/hooks/wrappers/functions/useGetBusinessAccount/useGetBusinessAccount.d.ts.map +1 -1
  120. package/dist/hooks/wrappers/functions/useGetCoinbaseAccounts/useGetCoinbaseAccounts.d.ts +2 -1
  121. package/dist/hooks/wrappers/functions/useGetCoinbaseAccounts/useGetCoinbaseAccounts.d.ts.map +1 -1
  122. package/dist/hooks/wrappers/functions/useGetCoinbaseBuyUrl/useGetCoinbaseBuyUrl.d.ts +2 -1
  123. package/dist/hooks/wrappers/functions/useGetCoinbaseBuyUrl/useGetCoinbaseBuyUrl.d.ts.map +1 -1
  124. package/dist/hooks/wrappers/functions/useGetConnectedAddresses/useGetConnectedAddresses.d.ts +2 -3
  125. package/dist/hooks/wrappers/functions/useGetConnectedAddresses/useGetConnectedAddresses.d.ts.map +1 -1
  126. package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts +2 -1
  127. package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts.map +1 -1
  128. package/dist/hooks/wrappers/functions/useGetFlowQuote/useGetFlowQuote.d.ts +2 -1
  129. package/dist/hooks/wrappers/functions/useGetFlowQuote/useGetFlowQuote.d.ts.map +1 -1
  130. package/dist/hooks/wrappers/functions/useGetGoogleDriveBackupReadiness/useGetGoogleDriveBackupReadiness.d.ts +2 -1
  131. package/dist/hooks/wrappers/functions/useGetGoogleDriveBackupReadiness/useGetGoogleDriveBackupReadiness.d.ts.map +1 -1
  132. package/dist/hooks/wrappers/functions/useGetKrakenAccounts/useGetKrakenAccounts.d.ts +2 -1
  133. package/dist/hooks/wrappers/functions/useGetKrakenAccounts/useGetKrakenAccounts.d.ts.map +1 -1
  134. package/dist/hooks/wrappers/functions/useGetKrakenWhitelistedAddresses/useGetKrakenWhitelistedAddresses.d.ts +2 -1
  135. package/dist/hooks/wrappers/functions/useGetKrakenWhitelistedAddresses/useGetKrakenWhitelistedAddresses.d.ts.map +1 -1
  136. package/dist/hooks/wrappers/functions/useGetMfaDevices/useGetMfaDevices.d.ts +2 -1
  137. package/dist/hooks/wrappers/functions/useGetMfaDevices/useGetMfaDevices.d.ts.map +1 -1
  138. package/dist/hooks/wrappers/functions/useGetMfaMethods/useGetMfaMethods.d.ts +2 -1
  139. package/dist/hooks/wrappers/functions/useGetMfaMethods/useGetMfaMethods.d.ts.map +1 -1
  140. package/dist/hooks/wrappers/functions/useGetMfaRecoveryCodes/useGetMfaRecoveryCodes.d.ts +2 -1
  141. package/dist/hooks/wrappers/functions/useGetMfaRecoveryCodes/useGetMfaRecoveryCodes.d.ts.map +1 -1
  142. package/dist/hooks/wrappers/functions/useGetMoonPayCurrencies/useGetMoonPayCurrencies.d.ts +2 -1
  143. package/dist/hooks/wrappers/functions/useGetMoonPayCurrencies/useGetMoonPayCurrencies.d.ts.map +1 -1
  144. package/dist/hooks/wrappers/functions/useGetMoonPayUrl/index.d.ts +1 -1
  145. package/dist/hooks/wrappers/functions/useGetMoonPayUrl/index.d.ts.map +1 -1
  146. package/dist/hooks/wrappers/functions/useGetMoonPayUrl/useGetMoonPayUrl.d.ts +2 -1
  147. package/dist/hooks/wrappers/functions/useGetMoonPayUrl/useGetMoonPayUrl.d.ts.map +1 -1
  148. package/dist/hooks/wrappers/functions/useGetMultichainTokenBalances/useGetMultichainTokenBalances.d.ts +2 -1
  149. package/dist/hooks/wrappers/functions/useGetMultichainTokenBalances/useGetMultichainTokenBalances.d.ts.map +1 -1
  150. package/dist/hooks/wrappers/functions/useGetNativeBalance/useGetNativeBalance.d.ts +5 -3
  151. package/dist/hooks/wrappers/functions/useGetNativeBalance/useGetNativeBalance.d.ts.map +1 -1
  152. package/dist/hooks/wrappers/functions/useGetPasskeys/useGetPasskeys.d.ts +2 -1
  153. package/dist/hooks/wrappers/functions/useGetPasskeys/useGetPasskeys.d.ts.map +1 -1
  154. package/dist/hooks/wrappers/functions/useGetPolicy/index.d.ts +2 -0
  155. package/dist/hooks/wrappers/functions/useGetPolicy/index.d.ts.map +1 -0
  156. package/dist/hooks/wrappers/functions/useGetPolicy/useGetPolicy.d.ts +39 -0
  157. package/dist/hooks/wrappers/functions/useGetPolicy/useGetPolicy.d.ts.map +1 -0
  158. package/dist/hooks/wrappers/functions/useGetRegisteredDevices/useGetRegisteredDevices.d.ts +2 -1
  159. package/dist/hooks/wrappers/functions/useGetRegisteredDevices/useGetRegisteredDevices.d.ts.map +1 -1
  160. package/dist/hooks/wrappers/functions/useGetSignerPolicyLayer/index.d.ts +2 -0
  161. package/dist/hooks/wrappers/functions/useGetSignerPolicyLayer/index.d.ts.map +1 -0
  162. package/dist/hooks/wrappers/functions/useGetSignerPolicyLayer/useGetSignerPolicyLayer.d.ts +52 -0
  163. package/dist/hooks/wrappers/functions/useGetSignerPolicyLayer/useGetSignerPolicyLayer.d.ts.map +1 -0
  164. package/dist/hooks/wrappers/functions/useGetSwapQuote/useGetSwapQuote.d.ts +2 -1
  165. package/dist/hooks/wrappers/functions/useGetSwapQuote/useGetSwapQuote.d.ts.map +1 -1
  166. package/dist/hooks/wrappers/functions/useGetSwapStatus/index.d.ts +1 -1
  167. package/dist/hooks/wrappers/functions/useGetSwapStatus/index.d.ts.map +1 -1
  168. package/dist/hooks/wrappers/functions/useGetSwapStatus/useGetSwapStatus.d.ts +2 -1
  169. package/dist/hooks/wrappers/functions/useGetSwapStatus/useGetSwapStatus.d.ts.map +1 -1
  170. package/dist/hooks/wrappers/functions/useGetTokenBalances/useGetTokenBalances.d.ts +2 -1
  171. package/dist/hooks/wrappers/functions/useGetTokenBalances/useGetTokenBalances.d.ts.map +1 -1
  172. package/dist/hooks/wrappers/functions/useGetTransactionHistory/useGetTransactionHistory.d.ts +2 -1
  173. package/dist/hooks/wrappers/functions/useGetTransactionHistory/useGetTransactionHistory.d.ts.map +1 -1
  174. package/dist/hooks/wrappers/functions/useGetUserSocialAccounts/useGetUserSocialAccounts.d.ts +3 -1
  175. package/dist/hooks/wrappers/functions/useGetUserSocialAccounts/useGetUserSocialAccounts.d.ts.map +1 -1
  176. package/dist/hooks/wrappers/functions/useGetWalletAccounts/useGetWalletAccounts.d.ts +3 -1
  177. package/dist/hooks/wrappers/functions/useGetWalletAccounts/useGetWalletAccounts.d.ts.map +1 -1
  178. package/dist/hooks/wrappers/functions/useGetWalletConnectCatalog/useGetWalletConnectCatalog.d.ts +2 -1
  179. package/dist/hooks/wrappers/functions/useGetWalletConnectCatalog/useGetWalletConnectCatalog.d.ts.map +1 -1
  180. package/dist/hooks/wrappers/functions/useGetWalletConnectCatalogWalletByWalletProviderKey/useGetWalletConnectCatalogWalletByWalletProviderKey.d.ts +2 -1
  181. package/dist/hooks/wrappers/functions/useGetWalletConnectCatalogWalletByWalletProviderKey/useGetWalletConnectCatalogWalletByWalletProviderKey.d.ts.map +1 -1
  182. package/dist/hooks/wrappers/functions/useGetWalletOptionsCatalogue/useGetWalletOptionsCatalogue.d.ts +2 -1
  183. package/dist/hooks/wrappers/functions/useGetWalletOptionsCatalogue/useGetWalletOptionsCatalogue.d.ts.map +1 -1
  184. package/dist/hooks/wrappers/functions/useGetWalletPolicyLayer/index.d.ts +2 -0
  185. package/dist/hooks/wrappers/functions/useGetWalletPolicyLayer/index.d.ts.map +1 -0
  186. package/dist/hooks/wrappers/functions/useGetWalletPolicyLayer/useGetWalletPolicyLayer.d.ts +48 -0
  187. package/dist/hooks/wrappers/functions/useGetWalletPolicyLayer/useGetWalletPolicyLayer.d.ts.map +1 -0
  188. package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/useGetWalletProviderDataByKey.d.ts +2 -1
  189. package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/useGetWalletProviderDataByKey.d.ts.map +1 -1
  190. package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts +2 -1
  191. package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts.map +1 -1
  192. package/dist/hooks/wrappers/functions/useGetYieldDetails/useGetYieldDetails.d.ts +2 -1
  193. package/dist/hooks/wrappers/functions/useGetYieldDetails/useGetYieldDetails.d.ts.map +1 -1
  194. package/dist/hooks/wrappers/functions/useGetYieldPosition/useGetYieldPosition.d.ts +2 -1
  195. package/dist/hooks/wrappers/functions/useGetYieldPosition/useGetYieldPosition.d.ts.map +1 -1
  196. package/dist/hooks/wrappers/functions/useGetYieldRewards/useGetYieldRewards.d.ts +2 -1
  197. package/dist/hooks/wrappers/functions/useGetYieldRewards/useGetYieldRewards.d.ts.map +1 -1
  198. package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/index.d.ts +1 -1
  199. package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/index.d.ts.map +1 -1
  200. package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.d.ts +2 -5
  201. package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.d.ts.map +1 -1
  202. package/dist/hooks/wrappers/functions/useIsDeviceRegistrationRequired/useIsDeviceRegistrationRequired.d.ts +2 -1
  203. package/dist/hooks/wrappers/functions/useIsDeviceRegistrationRequired/useIsDeviceRegistrationRequired.d.ts.map +1 -1
  204. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts +2 -1
  205. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts.map +1 -1
  206. package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/useIsPendingRecoveryCodesAcknowledgment.d.ts +2 -1
  207. package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/useIsPendingRecoveryCodesAcknowledgment.d.ts.map +1 -1
  208. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts +2 -1
  209. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts.map +1 -1
  210. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts +2 -1
  211. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts.map +1 -1
  212. package/dist/hooks/wrappers/functions/useListBusinessAccounts/useListBusinessAccounts.d.ts +2 -1
  213. package/dist/hooks/wrappers/functions/useListBusinessAccounts/useListBusinessAccounts.d.ts.map +1 -1
  214. package/dist/hooks/wrappers/functions/useListYieldVaults/useListYieldVaults.d.ts +2 -1
  215. package/dist/hooks/wrappers/functions/useListYieldVaults/useListYieldVaults.d.ts.map +1 -1
  216. package/dist/hooks/wrappers/functions/useLogout/useLogout.d.ts +2 -1
  217. package/dist/hooks/wrappers/functions/useLogout/useLogout.d.ts.map +1 -1
  218. package/dist/hooks/wrappers/functions/useMergeUserAccounts/useMergeUserAccounts.d.ts +2 -1
  219. package/dist/hooks/wrappers/functions/useMergeUserAccounts/useMergeUserAccounts.d.ts.map +1 -1
  220. package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/index.d.ts +1 -1
  221. package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/index.d.ts.map +1 -1
  222. package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.d.ts +2 -8
  223. package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.d.ts.map +1 -1
  224. package/dist/hooks/wrappers/functions/useOnEvent/useOnEvent.d.ts.map +1 -1
  225. package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts.map +1 -1
  226. package/dist/hooks/wrappers/functions/useOnceEvent/useOnceEvent.d.ts.map +1 -1
  227. package/dist/hooks/wrappers/functions/usePrepareFlowSigning/usePrepareFlowSigning.d.ts +2 -1
  228. package/dist/hooks/wrappers/functions/usePrepareFlowSigning/usePrepareFlowSigning.d.ts.map +1 -1
  229. package/dist/hooks/wrappers/functions/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts +2 -6
  230. package/dist/hooks/wrappers/functions/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts.map +1 -1
  231. package/dist/hooks/wrappers/functions/useRefreshAuth/useRefreshAuth.d.ts +2 -1
  232. package/dist/hooks/wrappers/functions/useRefreshAuth/useRefreshAuth.d.ts.map +1 -1
  233. package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/index.d.ts +1 -1
  234. package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/index.d.ts.map +1 -1
  235. package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/useRefreshWaasWalletAccountShares.d.ts +2 -4
  236. package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/useRefreshWaasWalletAccountShares.d.ts.map +1 -1
  237. package/dist/hooks/wrappers/functions/useRegisterPasskey/useRegisterPasskey.d.ts +2 -3
  238. package/dist/hooks/wrappers/functions/useRegisterPasskey/useRegisterPasskey.d.ts.map +1 -1
  239. package/dist/hooks/wrappers/functions/useRegisterTotpMfaDevice/useRegisterTotpMfaDevice.d.ts +2 -1
  240. package/dist/hooks/wrappers/functions/useRegisterTotpMfaDevice/useRegisterTotpMfaDevice.d.ts.map +1 -1
  241. package/dist/hooks/wrappers/functions/useRemoveAccountPolicyRule/index.d.ts +3 -0
  242. package/dist/hooks/wrappers/functions/useRemoveAccountPolicyRule/index.d.ts.map +1 -0
  243. package/dist/hooks/wrappers/functions/useRemoveAccountPolicyRule/useRemoveAccountPolicyRule.d.ts +50 -0
  244. package/dist/hooks/wrappers/functions/useRemoveAccountPolicyRule/useRemoveAccountPolicyRule.d.ts.map +1 -0
  245. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountMember/useRemoveBusinessAccountMember.d.ts +2 -4
  246. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountMember/useRemoveBusinessAccountMember.d.ts.map +1 -1
  247. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountSigner/useRemoveBusinessAccountSigner.d.ts +2 -5
  248. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountSigner/useRemoveBusinessAccountSigner.d.ts.map +1 -1
  249. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountWallet/useRemoveBusinessAccountWallet.d.ts +2 -8
  250. package/dist/hooks/wrappers/functions/useRemoveBusinessAccountWallet/useRemoveBusinessAccountWallet.d.ts.map +1 -1
  251. package/dist/hooks/wrappers/functions/useRemovePolicyRules/index.d.ts +3 -0
  252. package/dist/hooks/wrappers/functions/useRemovePolicyRules/index.d.ts.map +1 -0
  253. package/dist/hooks/wrappers/functions/useRemovePolicyRules/useRemovePolicyRules.d.ts +52 -0
  254. package/dist/hooks/wrappers/functions/useRemovePolicyRules/useRemovePolicyRules.d.ts.map +1 -0
  255. package/dist/hooks/wrappers/functions/useRemoveSignerPolicyRule/index.d.ts +3 -0
  256. package/dist/hooks/wrappers/functions/useRemoveSignerPolicyRule/index.d.ts.map +1 -0
  257. package/dist/hooks/wrappers/functions/useRemoveSignerPolicyRule/useRemoveSignerPolicyRule.d.ts +52 -0
  258. package/dist/hooks/wrappers/functions/useRemoveSignerPolicyRule/useRemoveSignerPolicyRule.d.ts.map +1 -0
  259. package/dist/hooks/wrappers/functions/useRemoveWalletAccount/useRemoveWalletAccount.d.ts +2 -3
  260. package/dist/hooks/wrappers/functions/useRemoveWalletAccount/useRemoveWalletAccount.d.ts.map +1 -1
  261. package/dist/hooks/wrappers/functions/useRemoveWalletPolicyRule/index.d.ts +3 -0
  262. package/dist/hooks/wrappers/functions/useRemoveWalletPolicyRule/index.d.ts.map +1 -0
  263. package/dist/hooks/wrappers/functions/useRemoveWalletPolicyRule/useRemoveWalletPolicyRule.d.ts +52 -0
  264. package/dist/hooks/wrappers/functions/useRemoveWalletPolicyRule/useRemoveWalletPolicyRule.d.ts.map +1 -0
  265. package/dist/hooks/wrappers/functions/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts +2 -3
  266. package/dist/hooks/wrappers/functions/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts.map +1 -1
  267. package/dist/hooks/wrappers/functions/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts +2 -1
  268. package/dist/hooks/wrappers/functions/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts.map +1 -1
  269. package/dist/hooks/wrappers/functions/useRevokeRegisteredDevice/useRevokeRegisteredDevice.d.ts +4 -6
  270. package/dist/hooks/wrappers/functions/useRevokeRegisteredDevice/useRevokeRegisteredDevice.d.ts.map +1 -1
  271. package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/index.d.ts +1 -1
  272. package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/index.d.ts.map +1 -1
  273. package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.d.ts +2 -4
  274. package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.d.ts.map +1 -1
  275. package/dist/hooks/wrappers/functions/useScreenTransaction/index.d.ts +3 -0
  276. package/dist/hooks/wrappers/functions/useScreenTransaction/index.d.ts.map +1 -0
  277. package/dist/hooks/wrappers/functions/useScreenTransaction/useScreenTransaction.d.ts +57 -0
  278. package/dist/hooks/wrappers/functions/useScreenTransaction/useScreenTransaction.d.ts.map +1 -0
  279. package/dist/hooks/wrappers/functions/useSendEmailOTP/useSendEmailOTP.d.ts +2 -1
  280. package/dist/hooks/wrappers/functions/useSendEmailOTP/useSendEmailOTP.d.ts.map +1 -1
  281. package/dist/hooks/wrappers/functions/useSendSmsOTP/useSendSmsOTP.d.ts +2 -1
  282. package/dist/hooks/wrappers/functions/useSendSmsOTP/useSendSmsOTP.d.ts.map +1 -1
  283. package/dist/hooks/wrappers/functions/useSetDefaultMfaDevice/useSetDefaultMfaDevice.d.ts +2 -3
  284. package/dist/hooks/wrappers/functions/useSetDefaultMfaDevice/useSetDefaultMfaDevice.d.ts.map +1 -1
  285. package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/index.d.ts +1 -1
  286. package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/index.d.ts.map +1 -1
  287. package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/useSetWaasWalletAccountPassword.d.ts +2 -4
  288. package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/useSetWaasWalletAccountPassword.d.ts.map +1 -1
  289. package/dist/hooks/wrappers/functions/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts +2 -4
  290. package/dist/hooks/wrappers/functions/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts.map +1 -1
  291. package/dist/hooks/wrappers/functions/useSignInWithPasskey/useSignInWithPasskey.d.ts +2 -1
  292. package/dist/hooks/wrappers/functions/useSignInWithPasskey/useSignInWithPasskey.d.ts.map +1 -1
  293. package/dist/hooks/wrappers/functions/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts +2 -1
  294. package/dist/hooks/wrappers/functions/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts.map +1 -1
  295. package/dist/hooks/wrappers/functions/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts +2 -1
  296. package/dist/hooks/wrappers/functions/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts.map +1 -1
  297. package/dist/hooks/wrappers/functions/useSignMessage/useSignMessage.d.ts +2 -6
  298. package/dist/hooks/wrappers/functions/useSignMessage/useSignMessage.d.ts.map +1 -1
  299. package/dist/hooks/wrappers/functions/useSignSerializedTransaction/index.d.ts +2 -0
  300. package/dist/hooks/wrappers/functions/useSignSerializedTransaction/index.d.ts.map +1 -0
  301. package/dist/hooks/wrappers/functions/useSignSerializedTransaction/useSignSerializedTransaction.d.ts +50 -0
  302. package/dist/hooks/wrappers/functions/useSignSerializedTransaction/useSignSerializedTransaction.d.ts.map +1 -0
  303. package/dist/hooks/wrappers/functions/useSubmitFlowTransaction/useSubmitFlowTransaction.d.ts +2 -1
  304. package/dist/hooks/wrappers/functions/useSubmitFlowTransaction/useSubmitFlowTransaction.d.ts.map +1 -1
  305. package/dist/hooks/wrappers/functions/useSwitchActiveNetwork/useSwitchActiveNetwork.d.ts +2 -4
  306. package/dist/hooks/wrappers/functions/useSwitchActiveNetwork/useSwitchActiveNetwork.d.ts.map +1 -1
  307. package/dist/hooks/wrappers/functions/useTransferAmount/useTransferAmount.d.ts +2 -3
  308. package/dist/hooks/wrappers/functions/useTransferAmount/useTransferAmount.d.ts.map +1 -1
  309. package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/useTransferBusinessAccountOwnership.d.ts +2 -8
  310. package/dist/hooks/wrappers/functions/useTransferBusinessAccountOwnership/useTransferBusinessAccountOwnership.d.ts.map +1 -1
  311. package/dist/hooks/wrappers/functions/useTransferWalletAccount/useTransferWalletAccount.d.ts +2 -3
  312. package/dist/hooks/wrappers/functions/useTransferWalletAccount/useTransferWalletAccount.d.ts.map +1 -1
  313. package/dist/hooks/wrappers/functions/useUnlinkSocialAccount/useUnlinkSocialAccount.d.ts +2 -3
  314. package/dist/hooks/wrappers/functions/useUnlinkSocialAccount/useUnlinkSocialAccount.d.ts.map +1 -1
  315. package/dist/hooks/wrappers/functions/useUnlockWallet/useUnlockWallet.d.ts +2 -4
  316. package/dist/hooks/wrappers/functions/useUnlockWallet/useUnlockWallet.d.ts.map +1 -1
  317. package/dist/hooks/wrappers/functions/useUpdateBusinessAccount/useUpdateBusinessAccount.d.ts +2 -4
  318. package/dist/hooks/wrappers/functions/useUpdateBusinessAccount/useUpdateBusinessAccount.d.ts.map +1 -1
  319. package/dist/hooks/wrappers/functions/useUpdateBusinessAccountMemberRole/useUpdateBusinessAccountMemberRole.d.ts +2 -5
  320. package/dist/hooks/wrappers/functions/useUpdateBusinessAccountMemberRole/useUpdateBusinessAccountMemberRole.d.ts.map +1 -1
  321. package/dist/hooks/wrappers/functions/useUpdateUser/useUpdateUser.d.ts +2 -3
  322. package/dist/hooks/wrappers/functions/useUpdateUser/useUpdateUser.d.ts.map +1 -1
  323. package/dist/hooks/wrappers/functions/useUpdateWaasPassword/index.d.ts +1 -1
  324. package/dist/hooks/wrappers/functions/useUpdateWaasPassword/index.d.ts.map +1 -1
  325. package/dist/hooks/wrappers/functions/useUpdateWaasPassword/useUpdateWaasPassword.d.ts +2 -5
  326. package/dist/hooks/wrappers/functions/useUpdateWaasPassword/useUpdateWaasPassword.d.ts.map +1 -1
  327. package/dist/hooks/wrappers/functions/useUpsertAccountPolicyRule/index.d.ts +3 -0
  328. package/dist/hooks/wrappers/functions/useUpsertAccountPolicyRule/index.d.ts.map +1 -0
  329. package/dist/hooks/wrappers/functions/useUpsertAccountPolicyRule/useUpsertAccountPolicyRule.d.ts +53 -0
  330. package/dist/hooks/wrappers/functions/useUpsertAccountPolicyRule/useUpsertAccountPolicyRule.d.ts.map +1 -0
  331. package/dist/hooks/wrappers/functions/useUpsertSignerPolicyRule/index.d.ts +3 -0
  332. package/dist/hooks/wrappers/functions/useUpsertSignerPolicyRule/index.d.ts.map +1 -0
  333. package/dist/hooks/wrappers/functions/useUpsertSignerPolicyRule/useUpsertSignerPolicyRule.d.ts +54 -0
  334. package/dist/hooks/wrappers/functions/useUpsertSignerPolicyRule/useUpsertSignerPolicyRule.d.ts.map +1 -0
  335. package/dist/hooks/wrappers/functions/useUpsertWalletPolicyRule/index.d.ts +2 -0
  336. package/dist/hooks/wrappers/functions/useUpsertWalletPolicyRule/index.d.ts.map +1 -0
  337. package/dist/hooks/wrappers/functions/useUpsertWalletPolicyRule/useUpsertWalletPolicyRule.d.ts +52 -0
  338. package/dist/hooks/wrappers/functions/useUpsertWalletPolicyRule/useUpsertWalletPolicyRule.d.ts.map +1 -0
  339. package/dist/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.d.ts +2 -1
  340. package/dist/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.d.ts.map +1 -1
  341. package/dist/hooks/wrappers/functions/useVerifyWalletAccount/useVerifyWalletAccount.d.ts +2 -4
  342. package/dist/hooks/wrappers/functions/useVerifyWalletAccount/useVerifyWalletAccount.d.ts.map +1 -1
  343. package/dist/hooks/wrappers/functions/useWithdrawFromYieldVault/index.d.ts +2 -0
  344. package/dist/hooks/wrappers/functions/useWithdrawFromYieldVault/index.d.ts.map +1 -0
  345. package/dist/hooks/wrappers/functions/useWithdrawFromYieldVault/useWithdrawFromYieldVault.d.ts +41 -0
  346. package/dist/hooks/wrappers/functions/useWithdrawFromYieldVault/useWithdrawFromYieldVault.d.ts.map +1 -0
  347. package/dist/hooks/wrappers/state/useSessionExpiresAt/useSessionExpiresAt.d.ts +2 -1
  348. package/dist/hooks/wrappers/state/useSessionExpiresAt/useSessionExpiresAt.d.ts.map +1 -1
  349. package/dist/hooks/wrappers/state/useUser/useUser.d.ts +3 -1
  350. package/dist/hooks/wrappers/state/useUser/useUser.d.ts.map +1 -1
  351. package/dist/index.cjs +513 -1
  352. package/dist/index.cjs.map +1 -1
  353. package/dist/index.esm.js +499 -4
  354. package/dist/index.esm.js.map +1 -1
  355. package/dist/modules/DynamicContext/DynamicProvider.d.ts +12 -2
  356. package/dist/modules/DynamicContext/DynamicProvider.d.ts.map +1 -1
  357. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  358. package/dist/{useBaseState-M_pLmHLf.cjs → useBaseState-BNd25q_I.cjs} +12 -2
  359. package/dist/useBaseState-BNd25q_I.cjs.map +1 -0
  360. package/dist/{useBaseState-CIT5lFjP.esm.js → useBaseState-J0-SE2DJ.esm.js} +12 -2
  361. package/dist/useBaseState-J0-SE2DJ.esm.js.map +1 -0
  362. package/package.json +4 -4
  363. package/dist/useBaseState-CIT5lFjP.esm.js.map +0 -1
  364. package/dist/useBaseState-M_pLmHLf.cjs.map +0 -1
@@ -0,0 +1,54 @@
1
+ import { upsertSignerPolicyRule } from '@dynamic-labs-sdk/client/waas';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
3
+ import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
4
+ type UpsertSignerPolicyRuleVariables = Parameters<typeof upsertSignerPolicyRule>[0];
5
+ type UpsertSignerPolicyRuleResult = Awaited<ReturnType<typeof upsertSignerPolicyRule>>;
6
+ /**
7
+ * Parameters for {@link useUpsertSignerPolicyRule}: an optional override of
8
+ * the underlying react-query mutation options.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const params: UseUpsertSignerPolicyRuleParams = {
13
+ * mutateParams: { onSuccess: () => console.log('saved') },
14
+ * };
15
+ * ```
16
+ * @see useUpsertSignerPolicyRule
17
+ * @see upsertSignerPolicyRule
18
+ */
19
+ export type UseUpsertSignerPolicyRuleParams = {
20
+ /**
21
+ * Optional override of any react-query `UseMutationOptions`
22
+ * (`onSuccess`, `onError`, `retry`, etc.).
23
+ */
24
+ mutateParams?: NonNullable<UseBaseMutationParams<UpsertSignerPolicyRuleResult, UpsertSignerPolicyRuleVariables>['mutateParams']>;
25
+ };
26
+ /**
27
+ * Creates or updates a single rule on a signer's policy layer. Build `rule`
28
+ * with `buildAllowPolicyRule` / `buildDenyPolicyRule` — the enclave always
29
+ * mints the rule id.
30
+ *
31
+ * Wraps `upsertSignerPolicyRule` from `@dynamic-labs-sdk/client/waas`. Call
32
+ * `mutate({ rule, walletAccount })`; the resolved `data` is the signer-Layer
33
+ * as it stands after the rule is applied. On success, invalidates
34
+ * {@link useGetSignerPolicyLayer} so mounted consumers refetch the updated
35
+ * rules.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * const { mutate: upsertRule, isPending } = useUpsertSignerPolicyRule();
40
+ * <button
41
+ * onClick={() => upsertRule({ rule, walletAccount })}
42
+ * disabled={isPending}
43
+ * >
44
+ * Save rule
45
+ * </button>
46
+ * ```
47
+ *
48
+ * @returns A react-query mutation result whose `mutate`/`mutateAsync` upserts the rule; the resolved `data` is the signer-Layer after the rule is applied.
49
+ * @see upsertSignerPolicyRule
50
+ * @see UseUpsertSignerPolicyRuleParams
51
+ */
52
+ export declare const useUpsertSignerPolicyRule: ({ mutateParams, }?: UseUpsertSignerPolicyRuleParams) => UseMutationResult<UpsertSignerPolicyRuleResult, Error, UpsertSignerPolicyRuleVariables>;
53
+ export {};
54
+ //# sourceMappingURL=useUpsertSignerPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpsertSignerPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUpsertSignerPolicyRule/useUpsertSignerPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAIpF,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,KAAQ,iBAAiB,CACzD,4BAA4B,EAC5B,KAAK,EACL,+BAA+B,CAU7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useUpsertWalletPolicyRule, type UseUpsertWalletPolicyRuleParams, } from './useUpsertWalletPolicyRule';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUpsertWalletPolicyRule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { upsertWalletPolicyRule } from '@dynamic-labs-sdk/client/waas';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
3
+ import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
4
+ type UpsertWalletPolicyRuleVariables = Parameters<typeof upsertWalletPolicyRule>[0];
5
+ type UpsertWalletPolicyRuleResult = Awaited<ReturnType<typeof upsertWalletPolicyRule>>;
6
+ /**
7
+ * Parameters for {@link useUpsertWalletPolicyRule}: an optional override of
8
+ * the underlying react-query mutation options.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const params: UseUpsertWalletPolicyRuleParams = {
13
+ * mutateParams: { onSuccess: () => console.log('saved') },
14
+ * };
15
+ * ```
16
+ * @see useUpsertWalletPolicyRule
17
+ * @see upsertWalletPolicyRule
18
+ */
19
+ export type UseUpsertWalletPolicyRuleParams = {
20
+ /**
21
+ * Optional override of any react-query `UseMutationOptions`
22
+ * (`onSuccess`, `onError`, `retry`, etc.).
23
+ */
24
+ mutateParams?: NonNullable<UseBaseMutationParams<UpsertWalletPolicyRuleResult, UpsertWalletPolicyRuleVariables>['mutateParams']>;
25
+ };
26
+ /**
27
+ * Creates or updates a single rule on a wallet's policy layer.
28
+ *
29
+ * Wraps `upsertWalletPolicyRule` from `@dynamic-labs-sdk/client/waas`. Call
30
+ * `mutate({ rule, walletAccount })`; the resolved `data` is the wallet-Layer
31
+ * as it stands after the rule is applied. On success, invalidates
32
+ * {@link useGetWalletPolicyLayer} so mounted consumers refetch the updated
33
+ * rules.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * const { mutate: upsertRule, isPending } = useUpsertWalletPolicyRule();
38
+ * <button
39
+ * onClick={() => upsertRule({ rule, walletAccount })}
40
+ * disabled={isPending}
41
+ * >
42
+ * Save rule
43
+ * </button>
44
+ * ```
45
+ *
46
+ * @returns A react-query mutation result whose `mutate`/`mutateAsync` upserts the rule; the resolved `data` is the wallet-Layer after the rule is applied.
47
+ * @see upsertWalletPolicyRule
48
+ * @see UseUpsertWalletPolicyRuleParams
49
+ */
50
+ export declare const useUpsertWalletPolicyRule: ({ mutateParams, }?: UseUpsertWalletPolicyRuleParams) => UseMutationResult<UpsertWalletPolicyRuleResult, Error, UpsertWalletPolicyRuleVariables>;
51
+ export {};
52
+ //# sourceMappingURL=useUpsertWalletPolicyRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpsertWalletPolicyRule.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUpsertWalletPolicyRule/useUpsertWalletPolicyRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAIpF,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,KAAQ,iBAAiB,CACzD,4BAA4B,EAC5B,KAAK,EACL,+BAA+B,CAU7B,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { verifyOTP } from '@dynamic-labs-sdk/client';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
2
3
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
3
4
  type VerifyOTPVariables = Parameters<typeof verifyOTP>[0];
4
5
  type VerifyOTPResult = Awaited<ReturnType<typeof verifyOTP>>;
@@ -30,6 +31,6 @@ export type UseVerifyOTPParams = {
30
31
  * </button>
31
32
  * ```
32
33
  */
33
- export declare const useVerifyOTP: ({ mutateParams }?: UseVerifyOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, import("@dynamic-labs-sdk/client").VerifyOTPParams>;
34
+ export declare const useVerifyOTP: ({ mutateParams, }?: UseVerifyOTPParams) => UseMutationResult<VerifyOTPResult, Error, VerifyOTPVariables>;
34
35
  export {};
35
36
  //# sourceMappingURL=useVerifyOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVerifyOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,eAAe,EACf,kBAAkB,CACnB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,sBAAsB,kBAAkB,sKAI7D,CAAC"}
1
+ {"version":3,"file":"useVerifyOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,eAAe,EACf,kBAAkB,CACnB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,uBAEtB,kBAAkB,KAAQ,iBAAiB,CAC5C,eAAe,EACf,KAAK,EACL,kBAAkB,CAKhB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { verifyWalletAccount } from '@dynamic-labs-sdk/client';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
2
3
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
3
4
  type VerifyWalletAccountVariables = Parameters<typeof verifyWalletAccount>[0];
4
5
  type VerifyWalletAccountResult = Awaited<ReturnType<typeof verifyWalletAccount>>;
@@ -34,9 +35,6 @@ export type UseVerifyWalletAccountParams = {
34
35
  * </button>
35
36
  * ```
36
37
  */
37
- export declare const useVerifyWalletAccount: ({ mutateParams, }?: UseVerifyWalletAccountParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client/core").BaseWalletAccount<import("@dynamic-labs-sdk/client").Chain>, Error, {
38
- requestedScopes?: import("@dynamic-labs/sdk-api-core").TokenScope[];
39
- walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
40
- }>;
38
+ export declare const useVerifyWalletAccount: ({ mutateParams, }?: UseVerifyWalletAccountParams) => UseMutationResult<VerifyWalletAccountResult, Error, VerifyWalletAccountVariables>;
41
39
  export {};
42
40
  //# sourceMappingURL=useVerifyWalletAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVerifyWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyWalletAccount/useVerifyWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,4BAA4B,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9E,KAAK,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC;AAEjF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,yBAAyB,EACzB,4BAA4B,CAC7B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,sBAAsB,uBAEhC,4BAA4B;;;EAK3B,CAAC"}
1
+ {"version":3,"file":"useVerifyWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyWalletAccount/useVerifyWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,4BAA4B,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9E,KAAK,yBAAyB,GAAG,OAAO,CACtC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,yBAAyB,EACzB,4BAA4B,CAC7B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,sBAAsB,uBAEhC,4BAA4B,KAAQ,iBAAiB,CACtD,yBAAyB,EACzB,KAAK,EACL,4BAA4B,CAM1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useWithdrawFromYieldVault, type UseWithdrawFromYieldVaultParams, } from './useWithdrawFromYieldVault';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useWithdrawFromYieldVault/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { withdrawFromYieldVault } from '@dynamic-labs-sdk/client';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
3
+ import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
4
+ type WithdrawFromYieldVaultVariables = Parameters<typeof withdrawFromYieldVault>[0];
5
+ type WithdrawFromYieldVaultResult = Awaited<ReturnType<typeof withdrawFromYieldVault>>;
6
+ /**
7
+ * Parameters for {@link useWithdrawFromYieldVault}: optional react-query mutation options.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * const params: UseWithdrawFromYieldVaultParams = { mutateParams: { onSuccess } };
12
+ * ```
13
+ * @see useWithdrawFromYieldVault
14
+ * @see withdrawFromYieldVault
15
+ */
16
+ export type UseWithdrawFromYieldVaultParams = {
17
+ /**
18
+ * Optional override of any react-query `UseMutationOptions`
19
+ * (`onSuccess`, `onError`, `retry`, etc.).
20
+ */
21
+ mutateParams?: NonNullable<UseBaseMutationParams<WithdrawFromYieldVaultResult, WithdrawFromYieldVaultVariables>['mutateParams']>;
22
+ };
23
+ /**
24
+ * Wraps `withdrawFromYieldVault` from `@dynamic-labs-sdk/client`. Call
25
+ * `mutate({ amount, vaultId, walletAccount })` to withdraw from a vault (using a
26
+ * `vaultId` from {@link useListYieldVaults}); the resolved `data` is
27
+ * `{ transactionHash }`.
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * const { mutate: withdraw, data } = useWithdrawFromYieldVault();
32
+ * withdraw({ amount: '10.5', vaultId, walletAccount });
33
+ * ```
34
+ *
35
+ * @returns A react-query mutation whose `data` is the withdraw transaction hash.
36
+ * @see withdrawFromYieldVault
37
+ * @see UseWithdrawFromYieldVaultParams
38
+ */
39
+ export declare const useWithdrawFromYieldVault: ({ mutateParams, }?: UseWithdrawFromYieldVaultParams) => UseMutationResult<WithdrawFromYieldVaultResult, Error, WithdrawFromYieldVaultVariables>;
40
+ export {};
41
+ //# sourceMappingURL=useWithdrawFromYieldVault.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWithdrawFromYieldVault.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useWithdrawFromYieldVault/useWithdrawFromYieldVault.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAIpF,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,KAAQ,iBAAiB,CACzD,4BAA4B,EAC5B,KAAK,EACL,+BAA+B,CAa7B,CAAC"}
@@ -1,7 +1,8 @@
1
+ import type { UseQueryResult } from '@tanstack/react-query';
1
2
  /**
2
3
  * Returns the session expiration date, or null if no active session.
3
4
  *
4
5
  * Re-renders when the user changes (which includes session updates).
5
6
  */
6
- export declare const useSessionExpiresAt: () => import("@tanstack/react-query").UseQueryResult<Date | null, Error>;
7
+ export declare const useSessionExpiresAt: () => UseQueryResult<Date | null, Error>;
7
8
  //# sourceMappingURL=useSessionExpiresAt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSessionExpiresAt.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useSessionExpiresAt/useSessionExpiresAt.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,0EAM5B,CAAC"}
1
+ {"version":3,"file":"useSessionExpiresAt.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useSessionExpiresAt/useSessionExpiresAt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,cAAc,CAAC,IAAI,GAAG,IAAI,EAAE,KAAK,CAMpE,CAAC"}
@@ -1,7 +1,9 @@
1
+ import type { UseQueryResult } from '@tanstack/react-query';
2
+ import type { SdkUser } from '@dynamic-labs/sdk-api-core';
1
3
  /**
2
4
  * Returns the current authenticated user, or null if not authenticated.
3
5
  *
4
6
  * Re-renders when the user changes (login, logout, profile update).
5
7
  */
6
- export declare const useUser: () => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").SdkUser | null, Error>;
8
+ export declare const useUser: () => UseQueryResult<SdkUser | null, Error>;
7
9
  //# sourceMappingURL=useUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useUser/useUser.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,OAAO,kHAMhB,CAAC"}
1
+ {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useUser/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAI1D;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,cAAc,CAAC,OAAO,GAAG,IAAI,EAAE,KAAK,CAM3D,CAAC"}