@dynamic-labs-sdk/react-hooks 1.12.0 → 1.12.1

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 (111) hide show
  1. package/dist/exports/index.d.ts +15 -15
  2. package/dist/exports/index.d.ts.map +1 -1
  3. package/dist/hooks/wrappers/functions/useActiveNetworkId/index.d.ts +3 -0
  4. package/dist/hooks/wrappers/functions/{useConsumeMfaToken → useActiveNetworkId}/index.d.ts.map +1 -1
  5. package/dist/hooks/wrappers/functions/useActiveNetworkId/useActiveNetworkId.d.ts +21 -0
  6. package/dist/hooks/wrappers/functions/useActiveNetworkId/useActiveNetworkId.d.ts.map +1 -0
  7. package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/index.d.ts +3 -0
  8. package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/index.d.ts.map +1 -0
  9. package/dist/hooks/wrappers/functions/{useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts → useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.d.ts} +4 -4
  10. package/dist/hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener/useAddCoinbaseOnrampOrderEventListener.d.ts.map +1 -0
  11. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/index.d.ts +3 -0
  12. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/index.d.ts.map +1 -0
  13. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts +19 -0
  14. package/dist/hooks/wrappers/functions/useAssertWalletAccountSigningAvailability/useAssertWalletAccountSigningAvailability.d.ts.map +1 -0
  15. package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMFA/index.d.ts +3 -0
  16. package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa → useAuthenticatePasskeyMFA}/index.d.ts.map +1 -1
  17. package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts → useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts} +9 -9
  18. package/dist/hooks/wrappers/functions/{useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts.map → useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.d.ts.map} +1 -1
  19. package/dist/hooks/wrappers/functions/useConnectedAddresses/index.d.ts +3 -0
  20. package/dist/hooks/wrappers/functions/useConnectedAddresses/index.d.ts.map +1 -0
  21. package/dist/hooks/wrappers/functions/useConnectedAddresses/useConnectedAddresses.d.ts +21 -0
  22. package/dist/hooks/wrappers/functions/useConnectedAddresses/useConnectedAddresses.d.ts.map +1 -0
  23. package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/index.d.ts +2 -0
  24. package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/index.d.ts.map +1 -0
  25. package/dist/hooks/wrappers/functions/{useKrakenExchangeTransfer/useKrakenExchangeTransfer.d.ts → useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts} +4 -4
  26. package/dist/hooks/wrappers/functions/useCreateKrakenExchangeTransfer/useCreateKrakenExchangeTransfer.d.ts.map +1 -0
  27. package/dist/hooks/wrappers/functions/useFlow/index.d.ts +3 -0
  28. package/dist/hooks/wrappers/functions/useFlow/index.d.ts.map +1 -0
  29. package/dist/hooks/wrappers/functions/useFlow/useFlow.d.ts +30 -0
  30. package/dist/hooks/wrappers/functions/useFlow/useFlow.d.ts.map +1 -0
  31. package/dist/hooks/wrappers/functions/useFlowQuote/index.d.ts +3 -0
  32. package/dist/hooks/wrappers/functions/{useVerifyOtp → useFlowQuote}/index.d.ts.map +1 -1
  33. package/dist/hooks/wrappers/functions/{useGetFlowQuote/useGetFlowQuote.d.ts → useFlowQuote/useFlowQuote.d.ts} +4 -4
  34. package/dist/hooks/wrappers/functions/useFlowQuote/useFlowQuote.d.ts.map +1 -0
  35. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/index.d.ts +3 -0
  36. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/index.d.ts.map +1 -0
  37. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts +19 -0
  38. package/dist/hooks/wrappers/functions/useIsMfaRequiredForAction/useIsMfaRequiredForAction.d.ts.map +1 -0
  39. package/dist/hooks/wrappers/functions/useOnEvent/index.d.ts +2 -0
  40. package/dist/hooks/wrappers/functions/useOnEvent/index.d.ts.map +1 -0
  41. package/dist/hooks/wrappers/functions/{useEvent/useEvent.d.ts → useOnEvent/useOnEvent.d.ts} +2 -2
  42. package/dist/hooks/wrappers/functions/useOnEvent/useOnEvent.d.ts.map +1 -0
  43. package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/index.d.ts +2 -0
  44. package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/index.d.ts.map +1 -0
  45. package/dist/hooks/wrappers/functions/{useWalletProviderEvent/useWalletProviderEvent.d.ts → useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts} +3 -3
  46. package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts.map +1 -0
  47. package/dist/hooks/wrappers/functions/useOnceEvent/useOnceEvent.d.ts +1 -1
  48. package/dist/hooks/wrappers/functions/useSendEmailOTP/index.d.ts +3 -0
  49. package/dist/hooks/wrappers/functions/{useNetworksData → useSendEmailOTP}/index.d.ts.map +1 -1
  50. package/dist/hooks/wrappers/functions/{useSendEmailOtp/useSendEmailOtp.d.ts → useSendEmailOTP/useSendEmailOTP.d.ts} +10 -10
  51. package/dist/hooks/wrappers/functions/{useSendEmailOtp/useSendEmailOtp.d.ts.map → useSendEmailOTP/useSendEmailOTP.d.ts.map} +1 -1
  52. package/dist/hooks/wrappers/functions/useSendSmsOTP/index.d.ts +3 -0
  53. package/dist/hooks/wrappers/functions/{useSendSmsOtp → useSendSmsOTP}/index.d.ts.map +1 -1
  54. package/dist/hooks/wrappers/functions/{useSendSmsOtp/useSendSmsOtp.d.ts → useSendSmsOTP/useSendSmsOTP.d.ts} +10 -10
  55. package/dist/hooks/wrappers/functions/{useSendSmsOtp/useSendSmsOtp.d.ts.map → useSendSmsOTP/useSendSmsOTP.d.ts.map} +1 -1
  56. package/dist/hooks/wrappers/functions/useVerifyOTP/index.d.ts +3 -0
  57. package/dist/hooks/wrappers/functions/useVerifyOTP/index.d.ts.map +1 -0
  58. package/dist/hooks/wrappers/functions/{useVerifyOtp/useVerifyOtp.d.ts → useVerifyOTP/useVerifyOTP.d.ts} +10 -10
  59. package/dist/hooks/wrappers/functions/{useVerifyOtp/useVerifyOtp.d.ts.map → useVerifyOTP/useVerifyOTP.d.ts.map} +1 -1
  60. package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/index.d.ts +3 -0
  61. package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/index.d.ts.map +1 -0
  62. package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.d.ts +19 -0
  63. package/dist/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.d.ts.map +1 -0
  64. package/dist/index.cjs +119 -152
  65. package/dist/index.cjs.map +1 -1
  66. package/dist/index.esm.js +106 -139
  67. package/dist/index.esm.js.map +1 -1
  68. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  69. package/package.json +4 -4
  70. package/dist/hooks/wrappers/functions/useAuthenticatePasskeyMfa/index.d.ts +0 -3
  71. package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/index.d.ts +0 -3
  72. package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/index.d.ts.map +0 -1
  73. package/dist/hooks/wrappers/functions/useCoinbaseOnrampOrderEventListener/useCoinbaseOnrampOrderEventListener.d.ts.map +0 -1
  74. package/dist/hooks/wrappers/functions/useConsumeMfaToken/index.d.ts +0 -3
  75. package/dist/hooks/wrappers/functions/useConsumeMfaToken/useConsumeMfaToken.d.ts +0 -27
  76. package/dist/hooks/wrappers/functions/useConsumeMfaToken/useConsumeMfaToken.d.ts.map +0 -1
  77. package/dist/hooks/wrappers/functions/useEvent/index.d.ts +0 -2
  78. package/dist/hooks/wrappers/functions/useEvent/index.d.ts.map +0 -1
  79. package/dist/hooks/wrappers/functions/useEvent/useEvent.d.ts.map +0 -1
  80. package/dist/hooks/wrappers/functions/useGetFlow/index.d.ts +0 -3
  81. package/dist/hooks/wrappers/functions/useGetFlow/index.d.ts.map +0 -1
  82. package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts +0 -27
  83. package/dist/hooks/wrappers/functions/useGetFlow/useGetFlow.d.ts.map +0 -1
  84. package/dist/hooks/wrappers/functions/useGetFlowQuote/index.d.ts +0 -3
  85. package/dist/hooks/wrappers/functions/useGetFlowQuote/index.d.ts.map +0 -1
  86. package/dist/hooks/wrappers/functions/useGetFlowQuote/useGetFlowQuote.d.ts.map +0 -1
  87. package/dist/hooks/wrappers/functions/useIsCaptchaRequired/index.d.ts +0 -2
  88. package/dist/hooks/wrappers/functions/useIsCaptchaRequired/index.d.ts.map +0 -1
  89. package/dist/hooks/wrappers/functions/useIsCaptchaRequired/useIsCaptchaRequired.d.ts +0 -13
  90. package/dist/hooks/wrappers/functions/useIsCaptchaRequired/useIsCaptchaRequired.d.ts.map +0 -1
  91. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts +0 -2
  92. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts.map +0 -1
  93. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts +0 -13
  94. package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts.map +0 -1
  95. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts +0 -2
  96. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts.map +0 -1
  97. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts +0 -14
  98. package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts.map +0 -1
  99. package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/index.d.ts +0 -2
  100. package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/index.d.ts.map +0 -1
  101. package/dist/hooks/wrappers/functions/useKrakenExchangeTransfer/useKrakenExchangeTransfer.d.ts.map +0 -1
  102. package/dist/hooks/wrappers/functions/useNetworksData/index.d.ts +0 -2
  103. package/dist/hooks/wrappers/functions/useNetworksData/useNetworksData.d.ts +0 -7
  104. package/dist/hooks/wrappers/functions/useNetworksData/useNetworksData.d.ts.map +0 -1
  105. package/dist/hooks/wrappers/functions/useSendEmailOtp/index.d.ts +0 -3
  106. package/dist/hooks/wrappers/functions/useSendEmailOtp/index.d.ts.map +0 -1
  107. package/dist/hooks/wrappers/functions/useSendSmsOtp/index.d.ts +0 -3
  108. package/dist/hooks/wrappers/functions/useVerifyOtp/index.d.ts +0 -3
  109. package/dist/hooks/wrappers/functions/useWalletProviderEvent/index.d.ts +0 -2
  110. package/dist/hooks/wrappers/functions/useWalletProviderEvent/index.d.ts.map +0 -1
  111. package/dist/hooks/wrappers/functions/useWalletProviderEvent/useWalletProviderEvent.d.ts.map +0 -1
@@ -1,34 +1,34 @@
1
1
  import { sendEmailOTP } from '@dynamic-labs-sdk/client';
2
2
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
3
- type SendEmailOtpVariables = Parameters<typeof sendEmailOTP>[0];
4
- type SendEmailOtpResult = Awaited<ReturnType<typeof sendEmailOTP>>;
5
- export type UseSendEmailOtpParams = {
3
+ type SendEmailOTPVariables = Parameters<typeof sendEmailOTP>[0];
4
+ type SendEmailOTPResult = Awaited<ReturnType<typeof sendEmailOTP>>;
5
+ export type UseSendEmailOTPParams = {
6
6
  /**
7
7
  * Optional override of any react-query `UseMutationOptions`
8
8
  * (`onSuccess`, `onError`, `retry`, etc.).
9
9
  */
10
- mutateParams?: UseBaseMutationParams<SendEmailOtpResult, SendEmailOtpVariables>['mutateParams'];
10
+ mutateParams?: UseBaseMutationParams<SendEmailOTPResult, SendEmailOTPVariables>['mutateParams'];
11
11
  };
12
12
  /**
13
13
  * Sends a one-time password to an email address.
14
14
  *
15
15
  * Wraps `sendEmailOTP` from `@dynamic-labs-sdk/client`. Call
16
16
  * `mutate({ email })` to dispatch the code; the resolved `data` is the
17
- * `OTPVerification` payload to hand to {@link useVerifyOtp} once the user
17
+ * `OTPVerification` payload to hand to {@link useVerifyOTP} once the user
18
18
  * enters the code they received.
19
19
  *
20
20
  * @example
21
21
  * ```tsx
22
- * const { mutate: sendEmailOtp, data: otpVerification, isPending } =
23
- * useSendEmailOtp();
22
+ * const { mutate: sendEmailOTP, data: otpVerification, isPending } =
23
+ * useSendEmailOTP();
24
24
  * <button
25
- * onClick={() => sendEmailOtp({ email: 'velma@mystery.inc' })}
25
+ * onClick={() => sendEmailOTP({ email: 'velma@mystery.inc' })}
26
26
  * disabled={isPending}
27
27
  * >
28
28
  * Email me a code
29
29
  * </button>
30
30
  * ```
31
31
  */
32
- export declare const useSendEmailOtp: ({ mutateParams }?: UseSendEmailOtpParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification, Error, import("../../../../../../client/src/modules/otp/sendEmailOTP/sendEmailOTP").SendEmailOTPParams>;
32
+ export declare const useSendEmailOTP: ({ mutateParams }?: UseSendEmailOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification, Error, import("../../../../../../client/src/modules/otp/sendEmailOTP/sendEmailOTP").SendEmailOTPParams>;
33
33
  export {};
34
- //# sourceMappingURL=useSendEmailOtp.d.ts.map
34
+ //# sourceMappingURL=useSendEmailOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSendEmailOtp.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendEmailOtp/useSendEmailOtp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,KAAK,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,kBAAkB,EAClB,qBAAqB,CACtB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,sBAAsB,qBAAqB,kNAInE,CAAC"}
1
+ {"version":3,"file":"useSendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendEmailOTP/useSendEmailOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,KAAK,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,kBAAkB,EAClB,qBAAqB,CACtB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,sBAAsB,qBAAqB,kNAInE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { useSendSmsOTP } from './useSendSmsOTP';
2
+ export type { UseSendSmsOTPParams } from './useSendSmsOTP';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendSmsOtp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendSmsOTP/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { sendSmsOTP } from '@dynamic-labs-sdk/client';
2
2
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
3
- type SendSmsOtpVariables = Parameters<typeof sendSmsOTP>[0];
4
- type SendSmsOtpResult = Awaited<ReturnType<typeof sendSmsOTP>>;
5
- export type UseSendSmsOtpParams = {
3
+ type SendSmsOTPVariables = Parameters<typeof sendSmsOTP>[0];
4
+ type SendSmsOTPResult = Awaited<ReturnType<typeof sendSmsOTP>>;
5
+ export type UseSendSmsOTPParams = {
6
6
  /**
7
7
  * Optional override of any react-query `UseMutationOptions`
8
8
  * (`onSuccess`, `onError`, `retry`, etc.).
9
9
  */
10
- mutateParams?: UseBaseMutationParams<SendSmsOtpResult, SendSmsOtpVariables>['mutateParams'];
10
+ mutateParams?: UseBaseMutationParams<SendSmsOTPResult, SendSmsOTPVariables>['mutateParams'];
11
11
  };
12
12
  /**
13
13
  * Sends a one-time password to a phone number via SMS.
@@ -15,15 +15,15 @@ export type UseSendSmsOtpParams = {
15
15
  * Wraps `sendSmsOTP` from `@dynamic-labs-sdk/client`. Call
16
16
  * `mutate({ isoCountryCode, phoneNumber })` to dispatch the code; the
17
17
  * resolved `data` is the `OTPVerification` payload to hand to
18
- * {@link useVerifyOtp} once the user enters the code they received.
18
+ * {@link useVerifyOTP} once the user enters the code they received.
19
19
  *
20
20
  * @example
21
21
  * ```tsx
22
- * const { mutate: sendSmsOtp, data: otpVerification, isPending } =
23
- * useSendSmsOtp();
22
+ * const { mutate: sendSmsOTP, data: otpVerification, isPending } =
23
+ * useSendSmsOTP();
24
24
  * <button
25
25
  * onClick={() =>
26
- * sendSmsOtp({ isoCountryCode: 'US', phoneNumber: '5550100' })
26
+ * sendSmsOTP({ isoCountryCode: 'US', phoneNumber: '5550100' })
27
27
  * }
28
28
  * disabled={isPending}
29
29
  * >
@@ -31,6 +31,6 @@ export type UseSendSmsOtpParams = {
31
31
  * </button>
32
32
  * ```
33
33
  */
34
- export declare const useSendSmsOtp: ({ mutateParams }?: UseSendSmsOtpParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification, Error, import("../../../../../../client/src/modules/otp/sendSmsOTP/sendSmsOTP").SendSmsOTPParams>;
34
+ export declare const useSendSmsOTP: ({ mutateParams }?: UseSendSmsOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification, Error, import("../../../../../../client/src/modules/otp/sendSmsOTP/sendSmsOTP").SendSmsOTPParams>;
35
35
  export {};
36
- //# sourceMappingURL=useSendSmsOtp.d.ts.map
36
+ //# sourceMappingURL=useSendSmsOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSendSmsOtp.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendSmsOtp/useSendSmsOtp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5D,KAAK,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gBAAgB,EAChB,mBAAmB,CACpB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,sBAAsB,mBAAmB,4MAI/D,CAAC"}
1
+ {"version":3,"file":"useSendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSendSmsOTP/useSendSmsOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5D,KAAK,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gBAAgB,EAChB,mBAAmB,CACpB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,sBAAsB,mBAAmB,4MAI/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { useVerifyOTP } from './useVerifyOTP';
2
+ export type { UseVerifyOTPParams } from './useVerifyOTP';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyOTP/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,35 +1,35 @@
1
1
  import { verifyOTP } from '@dynamic-labs-sdk/client';
2
2
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
3
- type VerifyOtpVariables = Parameters<typeof verifyOTP>[0];
4
- type VerifyOtpResult = Awaited<ReturnType<typeof verifyOTP>>;
5
- export type UseVerifyOtpParams = {
3
+ type VerifyOTPVariables = Parameters<typeof verifyOTP>[0];
4
+ type VerifyOTPResult = Awaited<ReturnType<typeof verifyOTP>>;
5
+ export type UseVerifyOTPParams = {
6
6
  /**
7
7
  * Optional override of any react-query `UseMutationOptions`
8
8
  * (`onSuccess`, `onError`, `retry`, etc.).
9
9
  */
10
- mutateParams?: UseBaseMutationParams<VerifyOtpResult, VerifyOtpVariables>['mutateParams'];
10
+ mutateParams?: UseBaseMutationParams<VerifyOTPResult, VerifyOTPVariables>['mutateParams'];
11
11
  };
12
12
  /**
13
13
  * Verifies a one-time password the user received via email or SMS.
14
14
  *
15
15
  * Wraps `verifyOTP` from `@dynamic-labs-sdk/client`. Call
16
16
  * `mutate({ otpVerification, verificationToken })` with the
17
- * `OTPVerification` returned by {@link useSendEmailOtp} /
18
- * {@link useSendSmsOtp} and the code the user entered. A single hook
17
+ * `OTPVerification` returned by {@link useSendEmailOTP} /
18
+ * {@link useSendSmsOTP} and the code the user entered. A single hook
19
19
  * covers both flows — `verifyOTP` resolves sign-in vs. user-update
20
20
  * internally based on the current session.
21
21
  *
22
22
  * @example
23
23
  * ```tsx
24
- * const { mutate: verifyOtp, isPending } = useVerifyOtp();
24
+ * const { mutate: verifyOTP, isPending } = useVerifyOTP();
25
25
  * <button
26
- * onClick={() => verifyOtp({ otpVerification, verificationToken: code })}
26
+ * onClick={() => verifyOTP({ otpVerification, verificationToken: code })}
27
27
  * disabled={isPending}
28
28
  * >
29
29
  * Verify
30
30
  * </button>
31
31
  * ```
32
32
  */
33
- export declare const useVerifyOtp: ({ mutateParams }?: UseVerifyOtpParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, import("../../../../../../client/src/modules/otp/verifyOTP/verifyOTP").VerifyOTPParams>;
33
+ export declare const useVerifyOTP: ({ mutateParams }?: UseVerifyOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, import("../../../../../../client/src/modules/otp/verifyOTP/verifyOTP").VerifyOTPParams>;
34
34
  export {};
35
- //# sourceMappingURL=useVerifyOtp.d.ts.map
35
+ //# 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,0MAI7D,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;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,0MAI7D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { useWalletConnectCatalogWalletByWalletProviderKey } from './useWalletConnectCatalogWalletByWalletProviderKey';
2
+ export type { UseWalletConnectCatalogWalletByWalletProviderKeyParams } from './useWalletConnectCatalogWalletByWalletProviderKey';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gDAAgD,EAAE,MAAM,oDAAoD,CAAC;AACtH,YAAY,EAAE,sDAAsD,EAAE,MAAM,oDAAoD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { getWalletConnectCatalogWalletByWalletProviderKey } from '@dynamic-labs-sdk/client';
2
+ import type { UseBaseQueryParams } from '../../../../foundation/useBaseQuery';
3
+ type WalletConnectCatalogWalletByWalletProviderKeyResult = Awaited<ReturnType<typeof getWalletConnectCatalogWalletByWalletProviderKey>>;
4
+ type WalletConnectCatalogWalletByWalletProviderKeyArgs = Parameters<typeof getWalletConnectCatalogWalletByWalletProviderKey>[0];
5
+ export type UseWalletConnectCatalogWalletByWalletProviderKeyParams = WalletConnectCatalogWalletByWalletProviderKeyArgs & {
6
+ /**
7
+ * Optional override of any react-query `UseQueryOptions` (retry,
8
+ * staleTime, refetchInterval, etc.).
9
+ */
10
+ queryParams?: UseBaseQueryParams<WalletConnectCatalogWalletByWalletProviderKeyResult>['queryParams'];
11
+ };
12
+ /**
13
+ * Returns the WalletConnect catalog wallet for the given wallet provider key.
14
+ *
15
+ * Wraps `getWalletConnectCatalogWalletByWalletProviderKey` from `@dynamic-labs-sdk/client`.
16
+ */
17
+ export declare const useWalletConnectCatalogWalletByWalletProviderKey: ({ queryParams, ...args }: UseWalletConnectCatalogWalletByWalletProviderKeyParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-sdk/client").WalletConnectCatalogWallet | undefined, Error>;
18
+ export {};
19
+ //# sourceMappingURL=useWalletConnectCatalogWalletByWalletProviderKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWalletConnectCatalogWalletByWalletProviderKey.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useWalletConnectCatalogWalletByWalletProviderKey/useWalletConnectCatalogWalletByWalletProviderKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gDAAgD,EAAE,MAAM,0BAA0B,CAAC;AAE5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,KAAK,mDAAmD,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,gDAAgD,CAAC,CAAC,CAAC;AACxI,KAAK,iDAAiD,GAAG,UAAU,CAAC,OAAO,gDAAgD,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhI,MAAM,MAAM,sDAAsD,GAAG,iDAAiD,GAAG;IACvH;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,mDAAmD,CAAC,CAAC,aAAa,CAAC,CAAC;CACtG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gDAAgD,6BAA8B,sDAAsD,qIAK7I,CAAC"}