@dynamic-labs-sdk/client 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{InvalidParamError-BxBgwLQB.native.esm.js → InvalidParamError-BUpLSb5x.native.esm.js} +4 -2
- package/dist/{InvalidParamError-BxBgwLQB.native.esm.js.map → InvalidParamError-BUpLSb5x.native.esm.js.map} +1 -1
- package/dist/{InvalidParamError-BmFmxeXx.esm.js → InvalidParamError-BazEwozw.esm.js} +5 -2
- package/dist/{InvalidParamError-BmFmxeXx.esm.js.map → InvalidParamError-BazEwozw.esm.js.map} +1 -1
- package/dist/{InvalidParamError-CGZRSAOn.cjs → InvalidParamError-CMesesy6.cjs} +6 -3
- package/dist/{InvalidParamError-CGZRSAOn.cjs.map → InvalidParamError-CMesesy6.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-DO313zza.esm.js → NotWaasWalletAccountError-CIjFmQ_l.esm.js} +2 -2
- package/dist/{NotWaasWalletAccountError-DO313zza.esm.js.map → NotWaasWalletAccountError-CIjFmQ_l.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-cIj987D7.cjs → NotWaasWalletAccountError-D-yqOoH6.cjs} +2 -2
- package/dist/{NotWaasWalletAccountError-cIj987D7.cjs.map → NotWaasWalletAccountError-D-yqOoH6.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-CkH85cm5.native.esm.js → NotWaasWalletAccountError-DWXGDcpr.native.esm.js} +2 -2
- package/dist/{NotWaasWalletAccountError-CkH85cm5.native.esm.js.map → NotWaasWalletAccountError-DWXGDcpr.native.esm.js.map} +1 -1
- package/dist/client/types/DynamicClient.d.ts +3 -0
- package/dist/client/types/DynamicClient.d.ts.map +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +5 -5
- package/dist/exports/index.d.ts +6 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CsAg0JU7.esm.js → getNetworkProviderFromNetworkId-BfBE-dei.esm.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-CsAg0JU7.esm.js.map → getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CxGbMwFL.native.esm.js → getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js} +5 -4
- package/dist/getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-2wYAIZ6w.cjs → getNetworkProviderFromNetworkId-D4xzWb7w.cjs} +4 -4
- package/dist/{getNetworkProviderFromNetworkId-2wYAIZ6w.cjs.map → getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map} +1 -1
- package/dist/{getSignedSessionId-E9JM9zum.esm.js → getSignedSessionId-BWxWFaJW.esm.js} +3 -3
- package/dist/{getSignedSessionId-E9JM9zum.esm.js.map → getSignedSessionId-BWxWFaJW.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-E3o2_FL7.cjs → getSignedSessionId-BimmHQvA.cjs} +3 -3
- package/dist/{getSignedSessionId-E3o2_FL7.cjs.map → getSignedSessionId-BimmHQvA.cjs.map} +1 -1
- package/dist/{getSignedSessionId-BZHJglv0.native.esm.js → getSignedSessionId-fwHlhBvt.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-BZHJglv0.native.esm.js.map → getSignedSessionId-fwHlhBvt.native.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-CeoFLRbo.native.esm.js → getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-CeoFLRbo.native.esm.js.map → getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-CXv6xEJZ.esm.js → getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-CXv6xEJZ.esm.js.map → getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-BaxUhLEp.cjs → getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-BaxUhLEp.cjs.map → getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-DMNpwDEn.cjs → getWalletProviderByKey-1zHjzqbz.cjs} +3 -3
- package/dist/{getWalletProviderByKey-DMNpwDEn.cjs.map → getWalletProviderByKey-1zHjzqbz.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-AQmQQpmk.esm.js → getWalletProviderByKey-BXGcVzkf.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-AQmQQpmk.esm.js.map → getWalletProviderByKey-BXGcVzkf.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-C5w8qJ0f.native.esm.js → getWalletProviderByKey-CAQkYCGi.native.esm.js} +3 -2
- package/dist/getWalletProviderByKey-CAQkYCGi.native.esm.js.map +1 -0
- package/dist/index.cjs +157 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +155 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +155 -22
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-BmJKVaMQ.native.esm.js → isMfaRequiredForAction-CPadAr7k.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-BmJKVaMQ.native.esm.js.map → isMfaRequiredForAction-CPadAr7k.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-C9Fw0v_g.cjs → isMfaRequiredForAction-CxWuGsmB.cjs} +3 -2
- package/dist/isMfaRequiredForAction-CxWuGsmB.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-BNgq1huY.esm.js → isMfaRequiredForAction-DZVNUtPY.esm.js} +3 -2
- package/dist/isMfaRequiredForAction-DZVNUtPY.esm.js.map +1 -0
- package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts +1 -0
- package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts +1 -0
- package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts +1 -0
- package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts.map +1 -1
- package/dist/modules/balances/getBalances/getBalances.d.ts +1 -0
- package/dist/modules/balances/getBalances/getBalances.d.ts.map +1 -1
- package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +1 -0
- package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts.map +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +2 -0
- package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
- package/dist/modules/flow/broadcastFlow/broadcastFlow.d.ts +24 -0
- package/dist/modules/flow/broadcastFlow/broadcastFlow.d.ts.map +1 -0
- package/dist/modules/flow/broadcastFlow/index.d.ts +3 -0
- package/dist/modules/flow/broadcastFlow/index.d.ts.map +1 -0
- package/dist/modules/flow/cancelFlow/cancelFlow.d.ts +14 -0
- package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -0
- package/dist/modules/flow/cancelFlow/index.d.ts +3 -0
- package/dist/modules/flow/cancelFlow/index.d.ts.map +1 -0
- package/dist/modules/flow/submitFlowTransaction/index.d.ts +3 -0
- package/dist/modules/flow/submitFlowTransaction/index.d.ts.map +1 -0
- package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.d.ts +24 -0
- package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts +1 -0
- package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts.map +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts +1 -0
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +1 -0
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -0
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
- package/dist/modules/user/refreshUser/refreshUser.d.ts +1 -0
- package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +1 -0
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +1 -0
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +1 -0
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -0
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts.map +1 -1
- package/dist/{refreshAuth-DfcR3CWf.cjs → refreshAuth-CKcNynMk.cjs} +3 -3
- package/dist/{refreshAuth-DfcR3CWf.cjs.map → refreshAuth-CKcNynMk.cjs.map} +1 -1
- package/dist/{refreshAuth-CVUpYNs6.native.esm.js → refreshAuth-Cl3adySI.native.esm.js} +3 -3
- package/dist/{refreshAuth-CVUpYNs6.native.esm.js.map → refreshAuth-Cl3adySI.native.esm.js.map} +1 -1
- package/dist/{refreshAuth-D8dU3BLP.esm.js → refreshAuth-DlQw3Dky.esm.js} +3 -3
- package/dist/{refreshAuth-D8dU3BLP.esm.js.map → refreshAuth-DlQw3Dky.esm.js.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +5 -5
- package/dist/waas.esm.js +4 -4
- package/dist/waas.native.esm.js +4 -4
- package/dist/waasCore.cjs +4 -4
- package/dist/waasCore.esm.js +4 -4
- package/dist/waasCore.native.esm.js +4 -4
- package/package.json +2 -2
- package/dist/getNetworkProviderFromNetworkId-CxGbMwFL.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-C5w8qJ0f.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-BNgq1huY.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-C9Fw0v_g.cjs.map +0 -1
package/dist/{refreshAuth-CVUpYNs6.native.esm.js.map → refreshAuth-Cl3adySI.native.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { A as createApiClient, ct as getCore, it as getDefaultClient, q as instrumentFunction } from "./InvalidParamError-
|
|
2
|
-
import { r as updateAuthFromVerifyResponse } from "./getWalletProviderByKey-
|
|
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";
|
|
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-
|
|
38
|
+
//# sourceMappingURL=refreshAuth-DlQw3Dky.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth-
|
|
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"}
|