@dynamic-labs-sdk/client 1.10.0 → 1.12.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.
Files changed (165) hide show
  1. package/dist/{InvalidParamError-BmFmxeXx.esm.js → InvalidParamError-6N66SLG8.esm.js} +5 -2
  2. package/dist/{InvalidParamError-BmFmxeXx.esm.js.map → InvalidParamError-6N66SLG8.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-CGZRSAOn.cjs → InvalidParamError-Bgg4SDfm.cjs} +6 -3
  4. package/dist/{InvalidParamError-CGZRSAOn.cjs.map → InvalidParamError-Bgg4SDfm.cjs.map} +1 -1
  5. package/dist/{InvalidParamError-BxBgwLQB.native.esm.js → InvalidParamError-CjC1BFSC.native.esm.js} +4 -2
  6. package/dist/{InvalidParamError-BxBgwLQB.native.esm.js.map → InvalidParamError-CjC1BFSC.native.esm.js.map} +1 -1
  7. package/dist/client/types/DynamicClient.d.ts +3 -0
  8. package/dist/client/types/DynamicClient.d.ts.map +1 -1
  9. package/dist/core.cjs +5 -5
  10. package/dist/core.esm.js +5 -5
  11. package/dist/core.native.esm.js +5 -5
  12. package/dist/exports/index.d.ts +7 -1
  13. package/dist/exports/index.d.ts.map +1 -1
  14. package/dist/exports/waasCore.d.ts +1 -0
  15. package/dist/exports/waasCore.d.ts.map +1 -1
  16. package/dist/{getNetworkProviderFromNetworkId-CsAg0JU7.esm.js → getNetworkProviderFromNetworkId--egxmnKm.esm.js} +3 -3
  17. package/dist/{getNetworkProviderFromNetworkId-CsAg0JU7.esm.js.map → getNetworkProviderFromNetworkId--egxmnKm.esm.js.map} +1 -1
  18. package/dist/{getNetworkProviderFromNetworkId-2wYAIZ6w.cjs → getNetworkProviderFromNetworkId-Afx6InoJ.cjs} +4 -4
  19. package/dist/{getNetworkProviderFromNetworkId-2wYAIZ6w.cjs.map → getNetworkProviderFromNetworkId-Afx6InoJ.cjs.map} +1 -1
  20. package/dist/{getNetworkProviderFromNetworkId-CxGbMwFL.native.esm.js → getNetworkProviderFromNetworkId-BXBlKNF9.native.esm.js} +5 -4
  21. package/dist/getNetworkProviderFromNetworkId-BXBlKNF9.native.esm.js.map +1 -0
  22. package/dist/{getSignedSessionId-E9JM9zum.esm.js → getSignedSessionId-CsawYVfU.esm.js} +3 -3
  23. package/dist/{getSignedSessionId-E9JM9zum.esm.js.map → getSignedSessionId-CsawYVfU.esm.js.map} +1 -1
  24. package/dist/{getSignedSessionId-BZHJglv0.native.esm.js → getSignedSessionId-DWb6By0V.native.esm.js} +3 -3
  25. package/dist/{getSignedSessionId-BZHJglv0.native.esm.js.map → getSignedSessionId-DWb6By0V.native.esm.js.map} +1 -1
  26. package/dist/{getSignedSessionId-E3o2_FL7.cjs → getSignedSessionId-Kf9jJ8g0.cjs} +3 -3
  27. package/dist/{getSignedSessionId-E3o2_FL7.cjs.map → getSignedSessionId-Kf9jJ8g0.cjs.map} +1 -1
  28. package/dist/{getWaasWalletProviderFromWalletAccount-BaxUhLEp.cjs → getWaasWalletProviderFromWalletAccount-BZuQj_tI.cjs} +4 -4
  29. package/dist/{getWaasWalletProviderFromWalletAccount-BaxUhLEp.cjs.map → getWaasWalletProviderFromWalletAccount-BZuQj_tI.cjs.map} +1 -1
  30. package/dist/{getWaasWalletProviderFromWalletAccount-CeoFLRbo.native.esm.js → getWaasWalletProviderFromWalletAccount-ChxW7xBR.native.esm.js} +3 -3
  31. package/dist/{getWaasWalletProviderFromWalletAccount-CeoFLRbo.native.esm.js.map → getWaasWalletProviderFromWalletAccount-ChxW7xBR.native.esm.js.map} +1 -1
  32. package/dist/{getWaasWalletProviderFromWalletAccount-CXv6xEJZ.esm.js → getWaasWalletProviderFromWalletAccount-D1U_Vmr3.esm.js} +3 -3
  33. package/dist/{getWaasWalletProviderFromWalletAccount-CXv6xEJZ.esm.js.map → getWaasWalletProviderFromWalletAccount-D1U_Vmr3.esm.js.map} +1 -1
  34. package/dist/{getWalletProviderByKey-C5w8qJ0f.native.esm.js → getWalletProviderByKey-Bq0kRpuN.native.esm.js} +3 -2
  35. package/dist/getWalletProviderByKey-Bq0kRpuN.native.esm.js.map +1 -0
  36. package/dist/{getWalletProviderByKey-DMNpwDEn.cjs → getWalletProviderByKey-DRex9vzR.cjs} +3 -3
  37. package/dist/{getWalletProviderByKey-DMNpwDEn.cjs.map → getWalletProviderByKey-DRex9vzR.cjs.map} +1 -1
  38. package/dist/{getWalletProviderByKey-AQmQQpmk.esm.js → getWalletProviderByKey-OC_h7kSB.esm.js} +2 -2
  39. package/dist/{getWalletProviderByKey-AQmQQpmk.esm.js.map → getWalletProviderByKey-OC_h7kSB.esm.js.map} +1 -1
  40. package/dist/index.cjs +185 -23
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.esm.js +182 -23
  43. package/dist/index.esm.js.map +1 -1
  44. package/dist/index.native.esm.js +182 -23
  45. package/dist/index.native.esm.js.map +1 -1
  46. package/dist/isDynamicWaasEnabled-CEVTY3gQ.cjs +49 -0
  47. package/dist/isDynamicWaasEnabled-CEVTY3gQ.cjs.map +1 -0
  48. package/dist/isDynamicWaasEnabled-DDM_LAa0.native.esm.js +37 -0
  49. package/dist/isDynamicWaasEnabled-DDM_LAa0.native.esm.js.map +1 -0
  50. package/dist/isDynamicWaasEnabled-Di2FwljM.esm.js +37 -0
  51. package/dist/isDynamicWaasEnabled-Di2FwljM.esm.js.map +1 -0
  52. package/dist/{isMfaRequiredForAction-BNgq1huY.esm.js → isMfaRequiredForAction-BnAV59o-.esm.js} +3 -2
  53. package/dist/isMfaRequiredForAction-BnAV59o-.esm.js.map +1 -0
  54. package/dist/{isMfaRequiredForAction-BmJKVaMQ.native.esm.js → isMfaRequiredForAction-CPhNpJQE.native.esm.js} +2 -2
  55. package/dist/{isMfaRequiredForAction-BmJKVaMQ.native.esm.js.map → isMfaRequiredForAction-CPhNpJQE.native.esm.js.map} +1 -1
  56. package/dist/{isMfaRequiredForAction-C9Fw0v_g.cjs → isMfaRequiredForAction-DSo1ysdD.cjs} +3 -2
  57. package/dist/isMfaRequiredForAction-DSo1ysdD.cjs.map +1 -0
  58. package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts +1 -0
  59. package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts.map +1 -1
  60. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts +1 -0
  61. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts.map +1 -1
  62. package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts +1 -0
  63. package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts.map +1 -1
  64. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
  65. package/dist/modules/balances/getBalances/getBalances.d.ts +1 -0
  66. package/dist/modules/balances/getBalances/getBalances.d.ts.map +1 -1
  67. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +1 -0
  68. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts.map +1 -1
  69. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +2 -0
  70. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  71. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +2 -0
  72. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  73. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +2 -0
  74. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  75. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +2 -0
  76. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  77. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +3 -1
  78. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -1
  79. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +2 -0
  80. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  81. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +2 -0
  82. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  83. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +2 -0
  84. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
  85. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +2 -0
  86. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
  87. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +2 -0
  88. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts.map +1 -1
  89. package/dist/modules/clientEvents/clientEvents.d.ts +2 -0
  90. package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
  91. package/dist/modules/flow/broadcastFlow/broadcastFlow.d.ts +24 -0
  92. package/dist/modules/flow/broadcastFlow/broadcastFlow.d.ts.map +1 -0
  93. package/dist/modules/flow/broadcastFlow/index.d.ts +3 -0
  94. package/dist/modules/flow/broadcastFlow/index.d.ts.map +1 -0
  95. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts +14 -0
  96. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -0
  97. package/dist/modules/flow/cancelFlow/index.d.ts +3 -0
  98. package/dist/modules/flow/cancelFlow/index.d.ts.map +1 -0
  99. package/dist/modules/flow/submitFlowTransaction/index.d.ts +3 -0
  100. package/dist/modules/flow/submitFlowTransaction/index.d.ts.map +1 -0
  101. package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.d.ts +24 -0
  102. package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.d.ts.map +1 -0
  103. package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts +1 -0
  104. package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts.map +1 -1
  105. package/dist/modules/initializeClient/initializeClient.d.ts +1 -0
  106. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  107. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +1 -0
  108. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
  109. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +2 -2
  110. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  111. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +2 -2
  112. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  113. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  114. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -0
  115. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  116. package/dist/modules/user/refreshUser/refreshUser.d.ts +1 -0
  117. package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
  118. package/dist/modules/waas/preconnectWaasIframe/index.d.ts +2 -0
  119. package/dist/modules/waas/preconnectWaasIframe/index.d.ts.map +1 -0
  120. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +13 -0
  121. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts.map +1 -0
  122. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +1 -0
  123. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts.map +1 -1
  124. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +1 -0
  125. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  126. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +1 -0
  127. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -1
  128. package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -0
  129. package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts.map +1 -1
  130. package/dist/preconnectWaasIframe-1BSQ7tHo.native.esm.js +31 -0
  131. package/dist/preconnectWaasIframe-1BSQ7tHo.native.esm.js.map +1 -0
  132. package/dist/preconnectWaasIframe-Cb9xM6kI.cjs +37 -0
  133. package/dist/preconnectWaasIframe-Cb9xM6kI.cjs.map +1 -0
  134. package/dist/preconnectWaasIframe-D2S_A0QT.esm.js +31 -0
  135. package/dist/preconnectWaasIframe-D2S_A0QT.esm.js.map +1 -0
  136. package/dist/{refreshAuth-CVUpYNs6.native.esm.js → refreshAuth-C5bVvAAl.native.esm.js} +3 -3
  137. package/dist/{refreshAuth-CVUpYNs6.native.esm.js.map → refreshAuth-C5bVvAAl.native.esm.js.map} +1 -1
  138. package/dist/{refreshAuth-DfcR3CWf.cjs → refreshAuth-Ca_JABru.cjs} +3 -3
  139. package/dist/{refreshAuth-DfcR3CWf.cjs.map → refreshAuth-Ca_JABru.cjs.map} +1 -1
  140. package/dist/{refreshAuth-D8dU3BLP.esm.js → refreshAuth-DwYi8x0J.esm.js} +3 -3
  141. package/dist/{refreshAuth-D8dU3BLP.esm.js.map → refreshAuth-DwYi8x0J.esm.js.map} +1 -1
  142. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  143. package/dist/waas.cjs +8 -25
  144. package/dist/waas.cjs.map +1 -1
  145. package/dist/waas.esm.js +6 -23
  146. package/dist/waas.esm.js.map +1 -1
  147. package/dist/waas.native.esm.js +6 -23
  148. package/dist/waas.native.esm.js.map +1 -1
  149. package/dist/waasCore.cjs +7 -4
  150. package/dist/waasCore.cjs.map +1 -1
  151. package/dist/waasCore.esm.js +7 -5
  152. package/dist/waasCore.esm.js.map +1 -1
  153. package/dist/waasCore.native.esm.js +7 -5
  154. package/dist/waasCore.native.esm.js.map +1 -1
  155. package/package.json +2 -2
  156. package/dist/NotWaasWalletAccountError-CkH85cm5.native.esm.js +0 -18
  157. package/dist/NotWaasWalletAccountError-CkH85cm5.native.esm.js.map +0 -1
  158. package/dist/NotWaasWalletAccountError-DO313zza.esm.js +0 -18
  159. package/dist/NotWaasWalletAccountError-DO313zza.esm.js.map +0 -1
  160. package/dist/NotWaasWalletAccountError-cIj987D7.cjs +0 -23
  161. package/dist/NotWaasWalletAccountError-cIj987D7.cjs.map +0 -1
  162. package/dist/getNetworkProviderFromNetworkId-CxGbMwFL.native.esm.js.map +0 -1
  163. package/dist/getWalletProviderByKey-C5w8qJ0f.native.esm.js.map +0 -1
  164. package/dist/isMfaRequiredForAction-BNgq1huY.esm.js.map +0 -1
  165. package/dist/isMfaRequiredForAction-C9Fw0v_g.cjs.map +0 -1
@@ -11,6 +11,8 @@ export type RequiresConversionParams = {
11
11
  * Returns `false` when the from token already matches a settlement token, so no
12
12
  * conversion is needed.
13
13
  *
14
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
15
+ *
14
16
  * @param params - The from token details and the checkout's settlement config.
15
17
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
18
  * @returns Whether a token conversion is required
@@ -1 +1 @@
1
- {"version":3,"file":"requiresConversion.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/requiresConversion/requiresConversion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,oBACZ,wBAAwB,2DAExC,OAAO,CAAC,OAAO,CA4BjB,CAAC"}
1
+ {"version":3,"file":"requiresConversion.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/requiresConversion/requiresConversion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,oBACZ,wBAAwB,2DAExC,OAAO,CAAC,OAAO,CA4BjB,CAAC"}
@@ -11,6 +11,7 @@ import type { DynamicEvents, EmitEventParams, OffEventParams, OnEventParams, Onc
11
11
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
12
  * @returns A function that can be called to remove the listener.
13
13
  * @not-instrumented
14
+ * @hook Event listeners are error-prone to wire up by hand with useEffect.
14
15
  */
15
16
  export declare const onEvent: <E extends keyof DynamicEvents>({ event, listener }: OnEventParams<E>, client?: DynamicClient) => () => void;
16
17
  /**
@@ -36,6 +37,7 @@ export declare const offEvent: <E extends keyof DynamicEvents>({ event, listener
36
37
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
37
38
  * @returns A function that can be called to remove the listener before it fires.
38
39
  * @not-instrumented
40
+ * @hook Event listeners are error-prone to wire up by hand with useEffect.
39
41
  */
40
42
  export declare const onceEvent: <E extends keyof DynamicEvents>({ event, listener }: OnceEventParams<E>, client?: DynamicClient) => () => void;
41
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"clientEvents.d.ts","sourceRoot":"","sources":["../../../src/modules/clientEvents/clientEvents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC9B,aAAa,CAAC,CAAC,CAAC,uCAUtC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC/B,cAAc,CAAC,CAAC,CAAC,iCAMvC,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,uBAChC,eAAe,CAAC,CAAC,CAAC,uCAUxC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,mBACpC,eAAe,CAAC,CAAC,CAAC,UAC3B,aAAa,SAKtB,CAAC"}
1
+ {"version":3,"file":"clientEvents.d.ts","sourceRoot":"","sources":["../../../src/modules/clientEvents/clientEvents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC9B,aAAa,CAAC,CAAC,CAAC,uCAUtC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC/B,cAAc,CAAC,CAAC,CAAC,iCAMvC,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,uBAChC,eAAe,CAAC,CAAC,CAAC,uCAUxC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,mBACpC,eAAe,CAAC,CAAC,CAAC,UAC3B,aAAa,SAKtB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { Flow } from '../flow.types';
3
+ export type BroadcastFlowParams = {
4
+ flowId: string;
5
+ /**
6
+ * The on-chain transaction hash. Required for wallet sources, optional
7
+ * for exchange sources (the user may not have it).
8
+ */
9
+ txHash?: string;
10
+ };
11
+ /**
12
+ * Records that a flow transaction has been broadcasted.
13
+ *
14
+ * For wallet sources, pass the `txHash` from the on-chain transaction.
15
+ * For exchange sources, `txHash` can be omitted — the user confirms
16
+ * they completed the payment and the flow moves to `broadcasted`.
17
+ *
18
+ * @param params BroadcastFlowParams - The flow ID and optional tx hash.
19
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
+ * @returns The updated flow
21
+ * @instrumented
22
+ */
23
+ export declare const broadcastFlow: ({ flowId, txHash }: BroadcastFlowParams, client?: DynamicClient) => Promise<Flow>;
24
+ //# sourceMappingURL=broadcastFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"broadcastFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/broadcastFlow/broadcastFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,uBACJ,mBAAmB,WAC/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAmBd,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { broadcastFlow } from './broadcastFlow';
2
+ export type { BroadcastFlowParams } from './broadcastFlow';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/broadcastFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Flow } from '../flow.types';
2
+ export type CancelFlowParams = {
3
+ flowId: string;
4
+ };
5
+ /**
6
+ * Cancels a flow before it has been broadcasted
7
+ *
8
+ * @param params CancelFlowParams - The flow to cancel.
9
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
+ * @returns The cancelled flow
11
+ * @instrumented
12
+ */
13
+ export declare const cancelFlow: ({ flowId }: CancelFlowParams, client?: import("../../../exports").DynamicClient) => Promise<Flow>;
14
+ //# sourceMappingURL=cancelFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancelFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/cancelFlow/cancelFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAK1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,eACT,gBAAgB,wDAE3B,OAAO,CAAC,IAAI,CAsBd,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { cancelFlow } from './cancelFlow';
2
+ export type { CancelFlowParams } from './cancelFlow';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/cancelFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { submitFlowTransaction } from './submitFlowTransaction';
2
+ export type { SubmitFlowTransactionParams } from './submitFlowTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/submitFlowTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ import type { Flow } from '../flow.types';
3
+ import { type PrepareFlowSigningParams } from '../prepareFlowSigning';
4
+ export type SubmitFlowTransactionParams = {
5
+ flowId: string;
6
+ onStepChange?: (step: 'approval' | 'transaction') => void;
7
+ walletAccount: WalletAccount;
8
+ } & PrepareFlowSigningParams;
9
+ /**
10
+ * Prepares, signs, and broadcasts a flow transaction in one call.
11
+ *
12
+ * Orchestrates the full submission flow:
13
+ * 1. Calls prepareFlowSigning to advance to signing state and lock the quote
14
+ * 2. Ensures the wallet is on the correct network for the transaction
15
+ * 3. Delegates on-chain signing to the wallet provider's executeSwapTransaction method
16
+ * 4. Calls broadcastFlow with the resulting txHash
17
+ *
18
+ * @param params SubmitFlowTransactionParams - The flow ID, wallet account, and optional step callback.
19
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
+ * @returns The broadcasted flow
21
+ * @instrumented
22
+ */
23
+ export declare const submitFlowTransaction: ({ onStepChange, flowId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount, }: SubmitFlowTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<Flow>;
24
+ //# sourceMappingURL=submitFlowTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitFlowTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/submitFlowTransaction/submitFlowTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,wBAAwB,CAAC;AAE7B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,sGAO7B,2BAA2B,wDAE7B,OAAO,CAAC,IAAI,CAuBd,CAAC"}
@@ -13,6 +13,7 @@ type AddCoinbaseOnrampOrderEventListenerParams = {
13
13
  * @throws {ValueMustBeDefinedError} If the window is not available.
14
14
  * @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
15
15
  * @not-instrumented
16
+ * @hook Event listeners are error-prone to wire up by hand with useEffect.
16
17
  */
17
18
  export declare const addCoinbaseOnrampOrderEventListener: ({ listener }: AddCoinbaseOnrampOrderEventListenerParams, client?: import("../../../../exports").DynamicClient) => VoidFunction;
18
19
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"addCoinbaseOnrampOrderEventListener.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.ts"],"names":[],"mappings":"AAMA,KAAK,yCAAyC,GAAG;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9B,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,IAAI,CAAC;CACZ,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,iBAChC,yCAAyC,2DAEtD,YA6CF,CAAC"}
1
+ {"version":3,"file":"addCoinbaseOnrampOrderEventListener.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.ts"],"names":[],"mappings":"AAMA,KAAK,yCAAyC,GAAG;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9B,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,IAAI,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mCAAmC,iBAChC,yCAAyC,2DAEtD,YA6CF,CAAC"}
@@ -11,6 +11,7 @@
11
11
  * @returns A promise that resolves when initialization is complete.
12
12
  * @throws ClientAlreadyInitializedError If the client is already initialized.
13
13
  * @instrumented
14
+ * @noHook Client lifecycle management is not exposed as a React hook.
14
15
  */
15
16
  export declare const initializeClient: (client?: import("../../exports").DynamicClient) => Promise<void>;
16
17
  //# sourceMappingURL=initializeClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
1
+ {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * @returns a promise that resolves once the client is fully initialized.
6
6
  * @not-instrumented
7
+ * @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
7
8
  */
8
9
  export declare const waitForClientInitialized: (client?: import("../../../exports").DynamicClient) => Promise<void>;
9
10
  //# sourceMappingURL=waitForClientInitialized.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"waitForClientInitialized.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,sEAIpC,CAAC"}
1
+ {"version":3,"file":"waitForClientInitialized.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,sEAIpC,CAAC"}
@@ -10,8 +10,8 @@ export type SendEmailOTPParams = {
10
10
  * @param params.email - The email address to send the OTP to.
11
11
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
12
  * @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
13
- * @instrumented
14
- * @redact-params
13
+ * @instrumented
14
+ * @redact-params
15
15
  */
16
16
  export declare const sendEmailOTP: ({ email }: SendEmailOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
17
17
  //# sourceMappingURL=sendEmailOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAazB,CAAC"}
1
+ {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAgBzB,CAAC"}
@@ -11,8 +11,8 @@ export type SendSmsOTPParams = {
11
11
  * @param params.phoneNumber - The phone number to send the OTP to.
12
12
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
13
  * @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
14
- * @instrumented
15
- * @redact-params
14
+ * @instrumented
15
+ * @redact-params
16
16
  */
17
17
  export declare const sendSmsOTP: ({ isoCountryCode, phoneNumber }: SendSmsOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
18
18
  //# sourceMappingURL=sendSmsOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAiBzB,CAAC"}
1
+ {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAoBzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAqBxB,CAAC"}
1
+ {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAwBxB,CAAC"}
@@ -12,6 +12,7 @@ export declare const PROJECT_SETTINGS_EXPIRATION_TIME: number;
12
12
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
13
  * @returns A promise that resolves to the updated project settings.
14
14
  * @not-instrumented
15
+ * @noHook Internal settings fetch that is not part of the public hook surface.
15
16
  */
16
17
  export declare const fetchProjectSettings: (client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").ProjectSettings | null>;
17
18
  //# sourceMappingURL=fetchProjectSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,6HA4ChC,CAAC"}
1
+ {"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,6HA4ChC,CAAC"}
@@ -8,6 +8,7 @@ import type { SdkUser } from '@dynamic-labs/sdk-api-core';
8
8
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
9
  * @returns A promise that resolves to the authenticated user.
10
10
  * @instrumented
11
+ * @noHook Low-level refresh primitive that is not exposed as a React hook.
11
12
  */
12
13
  export declare const refreshUser: (client?: import("../../../exports").DynamicClient) => Promise<SdkUser>;
13
14
  //# sourceMappingURL=refreshUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
1
+ {"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { preconnectWaasIframe } from './preconnectWaasIframe';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/preconnectWaasIframe/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ /**
3
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
4
+ * iframe origin so the iframe mounted after authentication completes loads on
5
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
6
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
7
+ * Dynamic WaaS is not enabled.
8
+ *
9
+ * @param client - The Dynamic client instance.
10
+ * @not-instrumented
11
+ */
12
+ export declare const preconnectWaasIframe: (client: DynamicClient) => void;
13
+ //# sourceMappingURL=preconnectWaasIframe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,WAAY,aAAa,KAAG,IAiB5D,CAAC"}
@@ -10,6 +10,7 @@ import type { WalletAccount } from '../walletAccount';
10
10
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
11
  * @returns An array of wallet accounts associated with the session.
12
12
  * @not-instrumented
13
+ * @hook Exposed as a hook so consumers get the reactive list of wallet accounts.
13
14
  */
14
15
  export declare const getWalletAccounts: (client?: import("../../../exports").DynamicClient) => WalletAccount[];
15
16
  //# sourceMappingURL=getWalletAccounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,yDAE3B,aAAa,EAKf,CAAC"}
1
+ {"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,yDAE3B,aAAa,EAKf,CAAC"}
@@ -7,6 +7,7 @@ type GetBalanceParams = Parameters<typeof getNativeBalance>[0];
7
7
  * `getMultichainTokenBalances`).
8
8
  *
9
9
  * @not-instrumented
10
+ * @noHook Deprecated; the replacement is exposed via its own hook.
10
11
  */
11
12
  export declare const getBalance: (params: GetBalanceParams, client?: import("../../../../exports").DynamicClient) => ReturnType<typeof getNativeBalance>;
12
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D;;;;;;;GAOG;AAGH,eAAO,MAAM,UAAU,WACb,gBAAgB,2DAEvB,UAAU,CAAC,OAAO,gBAAgB,CAAqC,CAAC"}
1
+ {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D;;;;;;;;GAQG;AAGH,eAAO,MAAM,UAAU,WACb,gBAAgB,2DAEvB,UAAU,CAAC,OAAO,gBAAgB,CAAqC,CAAC"}
@@ -5,6 +5,7 @@ type SelectPrimaryWalletAccountParams = {
5
5
  /**
6
6
  * Make the wallet account provided as the primary wallet account.
7
7
  * @instrumented
8
+ * @noHook The primary-wallet concept is discouraged and not exposed as a hook.
8
9
  */
9
10
  export declare const selectPrimaryWalletAccount: ({ walletAccount }: SelectPrimaryWalletAccountParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
10
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"selectPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,sBAClB,gCAAgC,2DAElD,OAAO,CAAC,IAAI,CAiCd,CAAC"}
1
+ {"version":3,"file":"selectPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,sBAClB,gCAAgC,2DAElD,OAAO,CAAC,IAAI,CAiCd,CAAC"}
@@ -13,6 +13,7 @@ export type OnWalletProviderEventParams<E extends Extract<keyof WalletProviderEv
13
13
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
14
14
  * @returns A function that can be called to remove the listener.
15
15
  * @not-instrumented
16
+ * @hook Event listeners are error-prone to wire up by hand with useEffect.
16
17
  */
17
18
  export declare const onWalletProviderEvent: <E extends Extract<keyof WalletProviderEvents, string>>({ callback, event, walletProviderKey }: OnWalletProviderEventParams<E>, client?: import("../../../../../exports").DynamicClient) => () => void;
18
19
  //# sourceMappingURL=onWalletProviderEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onWalletProviderEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,IACnD;IACF,QAAQ,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC;IACT,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAChC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,0CAEb,2BAA2B,CAAC,CAAC,CAAC,wEAevE,CAAC"}
1
+ {"version":3,"file":"onWalletProviderEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,IACnD;IACF,QAAQ,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC;IACT,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAChC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,0CAEb,2BAA2B,CAAC,CAAC,CAAC,wEAevE,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { N as isCookieEnabled, Q as getCore, r as DEFAULT_WAAS_BASE_API_URL } from "./InvalidParamError-CjC1BFSC.native.esm.js";
2
+ import { t as isDynamicWaasEnabled } from "./isDynamicWaasEnabled-DDM_LAa0.native.esm.js";
3
+ import { preconnectWaasIframe } from "@dynamic-labs-wallet/browser-wallet-client";
4
+
5
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
6
+ /**
7
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
8
+ * iframe origin so the iframe mounted after authentication completes loads on
9
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
10
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
11
+ * Dynamic WaaS is not enabled.
12
+ *
13
+ * @param client - The Dynamic client instance.
14
+ * @not-instrumented
15
+ */
16
+ const preconnectWaasIframe$1 = (client) => {
17
+ const core = getCore(client);
18
+ try {
19
+ if (!isDynamicWaasEnabled(client)) return;
20
+ preconnectWaasIframe({
21
+ authMode: isCookieEnabled(client) ? "cookie" : "header",
22
+ baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
23
+ });
24
+ } catch (error) {
25
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
26
+ }
27
+ };
28
+
29
+ //#endregion
30
+ export { preconnectWaasIframe$1 as t };
31
+ //# sourceMappingURL=preconnectWaasIframe-1BSQ7tHo.native.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-1BSQ7tHo.native.esm.js","names":["preconnectWaasIframe"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAaA,0BAAwB,WAAgC;CACnE,MAAM,OAAO,QAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAAC,qBAAqB,OAAO,CAAE;AAEnC,uBAA2B;GACzB,UAAW,gBAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAc,2BAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -0,0 +1,37 @@
1
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DSo1ysdD.cjs');
2
+ const require_InvalidParamError = require('./InvalidParamError-Bgg4SDfm.cjs');
3
+ const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-CEVTY3gQ.cjs');
4
+ let _dynamic_labs_wallet_browser_wallet_client = require("@dynamic-labs-wallet/browser-wallet-client");
5
+
6
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
7
+ /**
8
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
9
+ * iframe origin so the iframe mounted after authentication completes loads on
10
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
11
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
12
+ * Dynamic WaaS is not enabled.
13
+ *
14
+ * @param client - The Dynamic client instance.
15
+ * @not-instrumented
16
+ */
17
+ const preconnectWaasIframe = (client) => {
18
+ const core = require_InvalidParamError.getCore(client);
19
+ try {
20
+ if (!require_isDynamicWaasEnabled.isDynamicWaasEnabled(client)) return;
21
+ (0, _dynamic_labs_wallet_browser_wallet_client.preconnectWaasIframe)({
22
+ authMode: require_InvalidParamError.isCookieEnabled(client) ? "cookie" : "header",
23
+ baseApiUrl: (core.apiBaseUrl || require_InvalidParamError.DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
24
+ });
25
+ } catch (error) {
26
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
27
+ }
28
+ };
29
+
30
+ //#endregion
31
+ Object.defineProperty(exports, 'preconnectWaasIframe', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return preconnectWaasIframe;
35
+ }
36
+ });
37
+ //# sourceMappingURL=preconnectWaasIframe-Cb9xM6kI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-Cb9xM6kI.cjs","names":["getCore","isDynamicWaasEnabled","isCookieEnabled","DEFAULT_WAAS_BASE_API_URL"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,MAAa,wBAAwB,WAAgC;CACnE,MAAM,OAAOA,kCAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAACC,kDAAqB,OAAO,CAAE;AAEnC,uEAA2B;GACzB,UAAWC,0CAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAcC,qDAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -0,0 +1,31 @@
1
+ import { U as isCookieEnabled, ct as getCore, r as DEFAULT_WAAS_BASE_API_URL } from "./InvalidParamError-6N66SLG8.esm.js";
2
+ import { t as isDynamicWaasEnabled } from "./isDynamicWaasEnabled-Di2FwljM.esm.js";
3
+ import { preconnectWaasIframe } from "@dynamic-labs-wallet/browser-wallet-client";
4
+
5
+ //#region src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts
6
+ /**
7
+ * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet
8
+ * iframe origin so the iframe mounted after authentication completes loads on
9
+ * a hot connection. Called when an auth flow starts (OTP send/verify, social
10
+ * callback). Safe to call repeatedly; no-op on React Native / SSR and when
11
+ * Dynamic WaaS is not enabled.
12
+ *
13
+ * @param client - The Dynamic client instance.
14
+ * @not-instrumented
15
+ */
16
+ const preconnectWaasIframe$1 = (client) => {
17
+ const core = getCore(client);
18
+ try {
19
+ if (!isDynamicWaasEnabled(client)) return;
20
+ preconnectWaasIframe({
21
+ authMode: isCookieEnabled(client) ? "cookie" : "header",
22
+ baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace("/api/v0", "")
23
+ });
24
+ } catch (error) {
25
+ core.logger.warn("[preconnectWaasIframe] skipped", error);
26
+ }
27
+ };
28
+
29
+ //#endregion
30
+ export { preconnectWaasIframe$1 as t };
31
+ //# sourceMappingURL=preconnectWaasIframe-D2S_A0QT.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preconnectWaasIframe-D2S_A0QT.esm.js","names":["preconnectWaasIframe"],"sources":["../src/modules/waas/preconnectWaasIframe/preconnectWaasIframe.ts"],"sourcesContent":["import type { AuthMode } from '@dynamic-labs-wallet/browser-wallet-client';\nimport { preconnectWaasIframe as preconnectWaasIframeOrigin } from '@dynamic-labs-wallet/browser-wallet-client';\n\nimport { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { isCookieEnabled } from '../../projectSettings/isCookieEnabled';\nimport { DEFAULT_WAAS_BASE_API_URL } from '../constants';\nimport { isDynamicWaasEnabled } from '../isDynamicWaasEnabled';\n\n/**\n * Warms the browser's connection (DNS + TCP + TLS) to the embedded-wallet\n * iframe origin so the iframe mounted after authentication completes loads on\n * a hot connection. Called when an auth flow starts (OTP send/verify, social\n * callback). Safe to call repeatedly; no-op on React Native / SSR and when\n * Dynamic WaaS is not enabled.\n *\n * @param client - The Dynamic client instance.\n * @not-instrumented\n */\nexport const preconnectWaasIframe = (client: DynamicClient): void => {\n const core = getCore(client);\n try {\n if (!isDynamicWaasEnabled(client)) return;\n\n preconnectWaasIframeOrigin({\n authMode: (isCookieEnabled(client) ? 'cookie' : 'header') as AuthMode,\n baseApiUrl: (core.apiBaseUrl || DEFAULT_WAAS_BASE_API_URL).replace(\n '/api/v0',\n ''\n ),\n });\n } catch (error) {\n // Best-effort: never break the auth flow (also swallows the assertion\n // from isDynamicWaasEnabled when project settings are not loaded yet).\n core.logger.warn('[preconnectWaasIframe] skipped', error);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAaA,0BAAwB,WAAgC;CACnE,MAAM,OAAO,QAAQ,OAAO;AAC5B,KAAI;AACF,MAAI,CAAC,qBAAqB,OAAO,CAAE;AAEnC,uBAA2B;GACzB,UAAW,gBAAgB,OAAO,GAAG,WAAW;GAChD,aAAa,KAAK,cAAc,2BAA2B,QACzD,WACA,GACD;GACF,CAAC;UACK,OAAO;AAGd,OAAK,OAAO,KAAK,kCAAkC,MAAM"}
@@ -1,5 +1,5 @@
1
- import { J as getDefaultClient, L as instrumentFunction, Q as getCore, b as createApiClient } from "./InvalidParamError-BxBgwLQB.native.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-C5w8qJ0f.native.esm.js";
1
+ import { J as getDefaultClient, L as instrumentFunction, Q as getCore, b as createApiClient } from "./InvalidParamError-CjC1BFSC.native.esm.js";
2
+ import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-Bq0kRpuN.native.esm.js";
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -35,4 +35,4 @@ const __refreshAuth_wrapped = instrumentFunction({
35
35
 
36
36
  //#endregion
37
37
  export { __refreshAuth_wrapped as t };
38
- //# sourceMappingURL=refreshAuth-CVUpYNs6.native.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-C5bVvAAl.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-CVUpYNs6.native.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-C5bVvAAl.native.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
@@ -1,5 +1,5 @@
1
- const require_InvalidParamError = require('./InvalidParamError-CGZRSAOn.cjs');
2
- const require_getWalletProviderByKey = require('./getWalletProviderByKey-DMNpwDEn.cjs');
1
+ const require_InvalidParamError = require('./InvalidParamError-Bgg4SDfm.cjs');
2
+ const require_getWalletProviderByKey = require('./getWalletProviderByKey-DRex9vzR.cjs');
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -40,4 +40,4 @@ Object.defineProperty(exports, '__refreshAuth_wrapped', {
40
40
  return __refreshAuth_wrapped;
41
41
  }
42
42
  });
43
- //# sourceMappingURL=refreshAuth-DfcR3CWf.cjs.map
43
+ //# sourceMappingURL=refreshAuth-Ca_JABru.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-DfcR3CWf.cjs","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,4CAAY;CAElB,MAAM,OAAA,kCAAW,OAAM;wBACN,0CAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,6DAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-Ca_JABru.cjs","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,4CAAY;CAElB,MAAM,OAAA,kCAAW,OAAM;wBACN,0CAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,6DAAA,EAAA,UAAA,EAAA,OAAA"}
@@ -1,5 +1,5 @@
1
- import { A as createApiClient, ct as getCore, it as getDefaultClient, q as instrumentFunction } from "./InvalidParamError-BmFmxeXx.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-AQmQQpmk.esm.js";
1
+ import { A as createApiClient, ct as getCore, it as getDefaultClient, q as instrumentFunction } from "./InvalidParamError-6N66SLG8.esm.js";
2
+ import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-OC_h7kSB.esm.js";
3
3
 
4
4
  //#region src/modules/user/refreshAuth/refreshAuth.ts
5
5
  /**
@@ -35,4 +35,4 @@ const __refreshAuth_wrapped = instrumentFunction({
35
35
 
36
36
  //#endregion
37
37
  export { __refreshAuth_wrapped as t };
38
- //# sourceMappingURL=refreshAuth-D8dU3BLP.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-DwYi8x0J.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-D8dU3BLP.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}
1
+ {"version":3,"file":"refreshAuth-DwYi8x0J.esm.js","names":[],"sources":["../src/modules/user/refreshAuth/refreshAuth.ts"],"sourcesContent":["import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';\n\nimport { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\nimport { updateAuthFromVerifyResponse } from '../../auth/updateAuthFromVerifyResponse';\n\n/**\n * Refreshes the current user's data from the server.\n *\n * This function fetches the latest user information and token from the backend\n * updating the local user and token states with any changes.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the verify response.\n * @instrumented\n * @redact-params\n */\nexport const refreshAuth = async (\n client = getDefaultClient()\n): Promise<VerifyResponse> => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const response = await apiClient.refreshAuth({\n environmentId: core.environmentId,\n });\n\n updateAuthFromVerifyResponse({ response }, client);\n\n return response;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAE,cAAa,OACb,SAAM,kBAAY;CAElB,MAAM,OAAA,QAAW,OAAM;wBACN,gBAAK,EAAa,EAAA,OAAA,eAGnC,eAAA,KAAA;AAGD,8BAAA,EAAA,UAAA,EAAA,OAAA"}