@dynamic-labs-sdk/client 1.11.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 (117) hide show
  1. package/dist/{InvalidParamError-BazEwozw.esm.js → InvalidParamError-6N66SLG8.esm.js} +2 -2
  2. package/dist/{InvalidParamError-BazEwozw.esm.js.map → InvalidParamError-6N66SLG8.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-CMesesy6.cjs → InvalidParamError-Bgg4SDfm.cjs} +3 -3
  4. package/dist/{InvalidParamError-CMesesy6.cjs.map → InvalidParamError-Bgg4SDfm.cjs.map} +1 -1
  5. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js → InvalidParamError-CjC1BFSC.native.esm.js} +2 -2
  6. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js.map → InvalidParamError-CjC1BFSC.native.esm.js.map} +1 -1
  7. package/dist/core.cjs +5 -5
  8. package/dist/core.esm.js +5 -5
  9. package/dist/core.native.esm.js +5 -5
  10. package/dist/exports/index.d.ts +1 -1
  11. package/dist/exports/index.d.ts.map +1 -1
  12. package/dist/exports/waasCore.d.ts +1 -0
  13. package/dist/exports/waasCore.d.ts.map +1 -1
  14. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js → getNetworkProviderFromNetworkId--egxmnKm.esm.js} +3 -3
  15. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map → getNetworkProviderFromNetworkId--egxmnKm.esm.js.map} +1 -1
  16. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs → getNetworkProviderFromNetworkId-Afx6InoJ.cjs} +4 -4
  17. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map → getNetworkProviderFromNetworkId-Afx6InoJ.cjs.map} +1 -1
  18. package/dist/{getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js → getNetworkProviderFromNetworkId-BXBlKNF9.native.esm.js} +4 -4
  19. package/dist/{getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map → getNetworkProviderFromNetworkId-BXBlKNF9.native.esm.js.map} +1 -1
  20. package/dist/{getSignedSessionId-BWxWFaJW.esm.js → getSignedSessionId-CsawYVfU.esm.js} +3 -3
  21. package/dist/{getSignedSessionId-BWxWFaJW.esm.js.map → getSignedSessionId-CsawYVfU.esm.js.map} +1 -1
  22. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js → getSignedSessionId-DWb6By0V.native.esm.js} +3 -3
  23. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js.map → getSignedSessionId-DWb6By0V.native.esm.js.map} +1 -1
  24. package/dist/{getSignedSessionId-BimmHQvA.cjs → getSignedSessionId-Kf9jJ8g0.cjs} +3 -3
  25. package/dist/{getSignedSessionId-BimmHQvA.cjs.map → getSignedSessionId-Kf9jJ8g0.cjs.map} +1 -1
  26. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs → getWaasWalletProviderFromWalletAccount-BZuQj_tI.cjs} +4 -4
  27. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map → getWaasWalletProviderFromWalletAccount-BZuQj_tI.cjs.map} +1 -1
  28. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js → getWaasWalletProviderFromWalletAccount-ChxW7xBR.native.esm.js} +3 -3
  29. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map → getWaasWalletProviderFromWalletAccount-ChxW7xBR.native.esm.js.map} +1 -1
  30. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js → getWaasWalletProviderFromWalletAccount-D1U_Vmr3.esm.js} +3 -3
  31. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map → getWaasWalletProviderFromWalletAccount-D1U_Vmr3.esm.js.map} +1 -1
  32. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js → getWalletProviderByKey-Bq0kRpuN.native.esm.js} +2 -2
  33. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js.map → getWalletProviderByKey-Bq0kRpuN.native.esm.js.map} +1 -1
  34. package/dist/{getWalletProviderByKey-1zHjzqbz.cjs → getWalletProviderByKey-DRex9vzR.cjs} +3 -3
  35. package/dist/{getWalletProviderByKey-1zHjzqbz.cjs.map → getWalletProviderByKey-DRex9vzR.cjs.map} +1 -1
  36. package/dist/{getWalletProviderByKey-BXGcVzkf.esm.js → getWalletProviderByKey-OC_h7kSB.esm.js} +2 -2
  37. package/dist/{getWalletProviderByKey-BXGcVzkf.esm.js.map → getWalletProviderByKey-OC_h7kSB.esm.js.map} +1 -1
  38. package/dist/index.cjs +34 -8
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.esm.js +33 -7
  41. package/dist/index.esm.js.map +1 -1
  42. package/dist/index.native.esm.js +33 -7
  43. package/dist/index.native.esm.js.map +1 -1
  44. package/dist/isDynamicWaasEnabled-CEVTY3gQ.cjs +49 -0
  45. package/dist/isDynamicWaasEnabled-CEVTY3gQ.cjs.map +1 -0
  46. package/dist/isDynamicWaasEnabled-DDM_LAa0.native.esm.js +37 -0
  47. package/dist/isDynamicWaasEnabled-DDM_LAa0.native.esm.js.map +1 -0
  48. package/dist/isDynamicWaasEnabled-Di2FwljM.esm.js +37 -0
  49. package/dist/isDynamicWaasEnabled-Di2FwljM.esm.js.map +1 -0
  50. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js → isMfaRequiredForAction-BnAV59o-.esm.js} +2 -2
  51. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js.map → isMfaRequiredForAction-BnAV59o-.esm.js.map} +1 -1
  52. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js → isMfaRequiredForAction-CPhNpJQE.native.esm.js} +2 -2
  53. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js.map → isMfaRequiredForAction-CPhNpJQE.native.esm.js.map} +1 -1
  54. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs → isMfaRequiredForAction-DSo1ysdD.cjs} +2 -2
  55. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs.map → isMfaRequiredForAction-DSo1ysdD.cjs.map} +1 -1
  56. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
  57. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +2 -0
  58. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  59. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +2 -0
  60. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  61. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +2 -0
  62. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  63. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +2 -0
  64. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  65. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +3 -1
  66. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -1
  67. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +2 -0
  68. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  69. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +2 -0
  70. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  71. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +2 -0
  72. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
  73. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +2 -0
  74. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
  75. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +2 -0
  76. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts.map +1 -1
  77. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +2 -2
  78. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  79. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +2 -2
  80. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  81. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  82. package/dist/modules/waas/preconnectWaasIframe/index.d.ts +2 -0
  83. package/dist/modules/waas/preconnectWaasIframe/index.d.ts.map +1 -0
  84. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +13 -0
  85. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts.map +1 -0
  86. package/dist/preconnectWaasIframe-1BSQ7tHo.native.esm.js +31 -0
  87. package/dist/preconnectWaasIframe-1BSQ7tHo.native.esm.js.map +1 -0
  88. package/dist/preconnectWaasIframe-Cb9xM6kI.cjs +37 -0
  89. package/dist/preconnectWaasIframe-Cb9xM6kI.cjs.map +1 -0
  90. package/dist/preconnectWaasIframe-D2S_A0QT.esm.js +31 -0
  91. package/dist/preconnectWaasIframe-D2S_A0QT.esm.js.map +1 -0
  92. package/dist/{refreshAuth-Cl3adySI.native.esm.js → refreshAuth-C5bVvAAl.native.esm.js} +3 -3
  93. package/dist/{refreshAuth-Cl3adySI.native.esm.js.map → refreshAuth-C5bVvAAl.native.esm.js.map} +1 -1
  94. package/dist/{refreshAuth-CKcNynMk.cjs → refreshAuth-Ca_JABru.cjs} +3 -3
  95. package/dist/{refreshAuth-CKcNynMk.cjs.map → refreshAuth-Ca_JABru.cjs.map} +1 -1
  96. package/dist/{refreshAuth-DlQw3Dky.esm.js → refreshAuth-DwYi8x0J.esm.js} +3 -3
  97. package/dist/{refreshAuth-DlQw3Dky.esm.js.map → refreshAuth-DwYi8x0J.esm.js.map} +1 -1
  98. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  99. package/dist/waas.cjs +8 -25
  100. package/dist/waas.cjs.map +1 -1
  101. package/dist/waas.esm.js +6 -23
  102. package/dist/waas.esm.js.map +1 -1
  103. package/dist/waas.native.esm.js +6 -23
  104. package/dist/waas.native.esm.js.map +1 -1
  105. package/dist/waasCore.cjs +7 -4
  106. package/dist/waasCore.cjs.map +1 -1
  107. package/dist/waasCore.esm.js +7 -5
  108. package/dist/waasCore.esm.js.map +1 -1
  109. package/dist/waasCore.native.esm.js +7 -5
  110. package/dist/waasCore.native.esm.js.map +1 -1
  111. package/package.json +2 -2
  112. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js +0 -18
  113. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js.map +0 -1
  114. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs +0 -23
  115. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs.map +0 -1
  116. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js +0 -18
  117. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js.map +0 -1
@@ -16,6 +16,8 @@ export type TrackCheckoutTransactionParams = {
16
16
  * the realtime checkout transaction channel. Will be re-enabled once the
17
17
  * dashboard-api environment has the Ably wiring in place.
18
18
  *
19
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
20
+ *
19
21
  * @param params.transactionId - The ID of the checkout transaction to track.
20
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
21
23
  * @not-instrumented
@@ -1 +1 @@
1
- {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,WAE/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAKd,CAAC"}
1
+ {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,WAE/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAKd,CAAC"}
@@ -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"}
@@ -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"}
@@ -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"}
@@ -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-BUpLSb5x.native.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-CAQkYCGi.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-Cl3adySI.native.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-C5bVvAAl.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-Cl3adySI.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-CMesesy6.cjs');
2
- const require_getWalletProviderByKey = require('./getWalletProviderByKey-1zHjzqbz.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-CKcNynMk.cjs.map
43
+ //# sourceMappingURL=refreshAuth-Ca_JABru.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-CKcNynMk.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-BazEwozw.esm.js";
2
- import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-BXGcVzkf.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-DlQw3Dky.esm.js.map
38
+ //# sourceMappingURL=refreshAuth-DwYi8x0J.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth-DlQw3Dky.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"}