@dynamic-labs-sdk/client 1.9.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-YG7yXCq5.native.esm.js → InvalidParamError-BUpLSb5x.native.esm.js} +4 -2
- package/dist/{InvalidParamError-YG7yXCq5.native.esm.js.map → InvalidParamError-BUpLSb5x.native.esm.js.map} +1 -1
- package/dist/{InvalidParamError-DIPFT3sS.esm.js → InvalidParamError-BazEwozw.esm.js} +5 -2
- package/dist/{InvalidParamError-DIPFT3sS.esm.js.map → InvalidParamError-BazEwozw.esm.js.map} +1 -1
- package/dist/{InvalidParamError-C7LLi2cZ.cjs → InvalidParamError-CMesesy6.cjs} +6 -3
- package/dist/{InvalidParamError-C7LLi2cZ.cjs.map → InvalidParamError-CMesesy6.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-BWrDQFe8.esm.js → NotWaasWalletAccountError-CIjFmQ_l.esm.js} +2 -2
- package/dist/{NotWaasWalletAccountError-BWrDQFe8.esm.js.map → NotWaasWalletAccountError-CIjFmQ_l.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-C8ex1YA_.cjs → NotWaasWalletAccountError-D-yqOoH6.cjs} +2 -2
- package/dist/{NotWaasWalletAccountError-C8ex1YA_.cjs.map → NotWaasWalletAccountError-D-yqOoH6.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-Cd2o0wr0.native.esm.js → NotWaasWalletAccountError-DWXGDcpr.native.esm.js} +2 -2
- package/dist/{NotWaasWalletAccountError-Cd2o0wr0.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 +10 -10
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/FlowSessionTokenMissingError.d.ts +7 -0
- package/dist/errors/FlowSessionTokenMissingError.d.ts.map +1 -0
- package/dist/exports/index.d.ts +34 -18
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-D-wj5mPl.esm.js → getNetworkProviderFromNetworkId-BfBE-dei.esm.js} +18 -18
- package/dist/{getNetworkProviderFromNetworkId-D-wj5mPl.esm.js.map → getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-C46TeXs8.native.esm.js → getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js} +9 -8
- package/dist/getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CBGWQS_K.cjs → getNetworkProviderFromNetworkId-D4xzWb7w.cjs} +20 -20
- package/dist/{getNetworkProviderFromNetworkId-CBGWQS_K.cjs.map → getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map} +1 -1
- package/dist/{getSignedSessionId-Dy04984p.esm.js → getSignedSessionId-BWxWFaJW.esm.js} +3 -3
- package/dist/{getSignedSessionId-Dy04984p.esm.js.map → getSignedSessionId-BWxWFaJW.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-CCHKjoeP.cjs → getSignedSessionId-BimmHQvA.cjs} +3 -3
- package/dist/{getSignedSessionId-CCHKjoeP.cjs.map → getSignedSessionId-BimmHQvA.cjs.map} +1 -1
- package/dist/{getSignedSessionId-DdKTM3Rh.native.esm.js → getSignedSessionId-fwHlhBvt.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-DdKTM3Rh.native.esm.js.map → getSignedSessionId-fwHlhBvt.native.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-EnCRdI3w.native.esm.js → getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-EnCRdI3w.native.esm.js.map → getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-AhhyxkKQ.esm.js → getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-AhhyxkKQ.esm.js.map → getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map} +1 -1
- package/dist/{getWaasWalletProviderFromWalletAccount-5-EJK6a_.cjs → getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs} +3 -3
- package/dist/{getWaasWalletProviderFromWalletAccount-5-EJK6a_.cjs.map → getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BtIVDer3.cjs → getWalletProviderByKey-1zHjzqbz.cjs} +10 -10
- package/dist/getWalletProviderByKey-1zHjzqbz.cjs.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-BFCM2wnx.esm.js → getWalletProviderByKey-BXGcVzkf.esm.js} +10 -10
- package/dist/getWalletProviderByKey-BXGcVzkf.esm.js.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-Dsca691m.native.esm.js → getWalletProviderByKey-CAQkYCGi.native.esm.js} +11 -10
- package/dist/getWalletProviderByKey-CAQkYCGi.native.esm.js.map +1 -0
- package/dist/index.cjs +2572 -2204
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2538 -2178
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +2935 -2571
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-DAfjBLvz.native.esm.js → isMfaRequiredForAction-CPadAr7k.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-DAfjBLvz.native.esm.js.map → isMfaRequiredForAction-CPadAr7k.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-aX0vdwv-.cjs → isMfaRequiredForAction-CxWuGsmB.cjs} +3 -2
- package/dist/isMfaRequiredForAction-CxWuGsmB.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-BrmFODJQ.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/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts +8 -0
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +7 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.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/attachFlowSource/attachFlowSource.d.ts +45 -0
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts.map +1 -0
- package/dist/modules/flow/attachFlowSource/index.d.ts +3 -0
- package/dist/modules/flow/attachFlowSource/index.d.ts.map +1 -0
- 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/events.d.ts +27 -0
- package/dist/modules/flow/events.d.ts.map +1 -0
- package/dist/modules/flow/flow.types.d.ts +8 -0
- package/dist/modules/flow/flow.types.d.ts.map +1 -0
- package/dist/modules/flow/getFlow/getFlow.d.ts +15 -0
- package/dist/modules/flow/getFlow/getFlow.d.ts.map +1 -0
- package/dist/modules/flow/getFlow/index.d.ts +3 -0
- package/dist/modules/flow/getFlow/index.d.ts.map +1 -0
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +28 -0
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts.map +1 -0
- package/dist/modules/flow/getFlowQuote/index.d.ts +3 -0
- package/dist/modules/flow/getFlowQuote/index.d.ts.map +1 -0
- package/dist/modules/flow/prepareFlowSigning/index.d.ts +3 -0
- package/dist/modules/flow/prepareFlowSigning/index.d.ts.map +1 -0
- package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.d.ts +28 -0
- package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.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/flow/utils/clearFlowSessionToken/clearFlowSessionToken.d.ts +22 -0
- package/dist/modules/flow/utils/clearFlowSessionToken/clearFlowSessionToken.d.ts.map +1 -0
- package/dist/modules/flow/utils/clearFlowSessionToken/index.d.ts +3 -0
- package/dist/modules/flow/utils/clearFlowSessionToken/index.d.ts.map +1 -0
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts +14 -0
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts.map +1 -0
- package/dist/modules/flow/utils/createFlowApiClient/index.d.ts +2 -0
- package/dist/modules/flow/utils/createFlowApiClient/index.d.ts.map +1 -0
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts +3 -0
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts.map +1 -0
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/index.d.ts +2 -0
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/index.d.ts.map +1 -0
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/index.d.ts +3 -0
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/index.d.ts.map +1 -0
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.d.ts +16 -0
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.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-BMtIp1do.cjs → refreshAuth-CKcNynMk.cjs} +4 -4
- package/dist/{refreshAuth-BMtIp1do.cjs.map → refreshAuth-CKcNynMk.cjs.map} +1 -1
- package/dist/{refreshAuth-B2kFf0pl.native.esm.js → refreshAuth-Cl3adySI.native.esm.js} +3 -3
- package/dist/{refreshAuth-B2kFf0pl.native.esm.js.map → refreshAuth-Cl3adySI.native.esm.js.map} +1 -1
- package/dist/{refreshAuth-B8xd2JUm.esm.js → refreshAuth-DlQw3Dky.esm.js} +3 -3
- package/dist/{refreshAuth-B8xd2JUm.esm.js.map → refreshAuth-DlQw3Dky.esm.js.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +9 -9
- package/dist/waas.cjs.map +1 -1
- 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 +3 -3
- package/dist/getNetworkProviderFromNetworkId-C46TeXs8.native.esm.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-BFCM2wnx.esm.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-BtIVDer3.cjs.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-Dsca691m.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-BrmFODJQ.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-aX0vdwv-.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/getFlowQuote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/prepareFlowSigning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Flow } from '../flow.types';
|
|
2
|
+
export type PrepareFlowSigningParams = {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to assert the balance for the gas cost of the transaction.
|
|
5
|
+
* If true, the prepare signing request will fail if the balance is not sufficient for the gas cost.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
assertBalanceForGasCost?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to assert the balance for the transfer amount of the transaction.
|
|
11
|
+
* If true, the prepare signing request will fail if the balance is not sufficient for the transfer amount.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
assertBalanceForTransferAmount?: boolean;
|
|
15
|
+
flowId: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Prepares a flow transaction for signing
|
|
19
|
+
* This should be called immediately before triggering the flow signing.
|
|
20
|
+
* It will confirm the quote is still valid, the risk state is cleared, and the flow is ready to be signed.
|
|
21
|
+
*
|
|
22
|
+
* @param params PrepareFlowSigningParams - The flow to prepare.
|
|
23
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
24
|
+
* @returns The updated flow
|
|
25
|
+
* @instrumented
|
|
26
|
+
*/
|
|
27
|
+
export declare const prepareFlowSigning: ({ assertBalanceForGasCost, assertBalanceForTransferAmount, flowId, }: PrepareFlowSigningParams, client?: import("../../../exports").DynamicClient) => Promise<Flow>;
|
|
28
|
+
//# sourceMappingURL=prepareFlowSigning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareFlowSigning.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/prepareFlowSigning/prepareFlowSigning.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,yEAK1B,wBAAwB,wDAE1B,OAAO,CAAC,IAAI,CAuBd,CAAC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
export type ClearFlowSessionTokenParams = {
|
|
3
|
+
flowId: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Removes the locally stored flow session token for the given flow.
|
|
7
|
+
*
|
|
8
|
+
* The flow session token is the anonymous credential that authorizes
|
|
9
|
+
* mutations to a single in-flight flow. Once the flow has reached a
|
|
10
|
+
* terminal state (cancelled, expired, failed, completed) it can no
|
|
11
|
+
* longer be advanced, and the token is dead weight that should not be
|
|
12
|
+
* persisted in browser storage — leaving it around lets a later XSS payload
|
|
13
|
+
* exfiltrate a credential with no further use, and it can also confuse the
|
|
14
|
+
* SDK on subsequent loads into believing an active session exists.
|
|
15
|
+
*
|
|
16
|
+
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
17
|
+
* defense-in-depth.
|
|
18
|
+
*
|
|
19
|
+
* @not-instrumented
|
|
20
|
+
*/
|
|
21
|
+
export declare const clearFlowSessionToken: ({ flowId }: ClearFlowSessionTokenParams, client: DynamicClient) => Promise<void>;
|
|
22
|
+
//# sourceMappingURL=clearFlowSessionToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearFlowSessionToken.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/clearFlowSessionToken/clearFlowSessionToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,eACpB,2BAA2B,UAC/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAId,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/clearFlowSessionToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SDKApi } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
3
|
+
type CreateFlowApiClientParams = {
|
|
4
|
+
flowId: string;
|
|
5
|
+
};
|
|
6
|
+
type FlowApiClientResult = {
|
|
7
|
+
apiClient: SDKApi;
|
|
8
|
+
environmentId: string;
|
|
9
|
+
sessionToken: string;
|
|
10
|
+
};
|
|
11
|
+
/** @not-instrumented */
|
|
12
|
+
export declare const createFlowApiClient: ({ flowId }: CreateFlowApiClientParams, client: DynamicClient) => Promise<FlowApiClientResult>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=createFlowApiClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFlowApiClient.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,mBAAmB,eAClB,yBAAyB,UAC7B,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAiB7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/createFlowApiClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFlowSessionTokenStorageKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts"],"names":[],"mappings":"AAIA,wBAAwB;AAExB,eAAO,MAAM,gCAAgC,WAAY,MAAM,oEAK9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/createFlowSessionTokenStorageKey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/withFlowSessionTokenCleanupOn401/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,YAAY,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
export type WithFlowSessionTokenCleanupOn401Params<T> = {
|
|
3
|
+
call: () => Promise<T>;
|
|
4
|
+
flowId: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Flow mutation routes are guarded server-side only by session-token
|
|
8
|
+
* validation, so a 401 means the token is dead (revoked, expired, deleted,
|
|
9
|
+
* or invalid). Leaving a dead token in `localStorage` widens the XSS
|
|
10
|
+
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
11
|
+
* requests that are guaranteed to fail.
|
|
12
|
+
*
|
|
13
|
+
* @not-instrumented
|
|
14
|
+
*/
|
|
15
|
+
export declare const withFlowSessionTokenCleanupOn401: <T>({ call, flowId }: WithFlowSessionTokenCleanupOn401Params<T>, client: DynamicClient) => Promise<T>;
|
|
16
|
+
//# sourceMappingURL=withFlowSessionTokenCleanupOn401.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withFlowSessionTokenCleanupOn401.d.ts","sourceRoot":"","sources":["../../../../../src/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,MAAM,MAAM,sCAAsC,CAAC,CAAC,IAAI;IACtD,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,GAAU,CAAC,oBACpC,sCAAsC,CAAC,CAAC,CAAC,UACnD,aAAa,KACpB,OAAO,CAAC,CAAC,CAgBX,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
|
|
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
|
|
1
|
+
{"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
|
package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts
CHANGED
|
@@ -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
|
package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForClientInitialized.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.ts"],"names":[],"mappings":"AAGA
|
|
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"}
|
|
@@ -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
|
|
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
|
|
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"}
|
|
@@ -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
|
|
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
|
|
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
|
|
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"}
|
package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts
CHANGED
|
@@ -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
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
2
|
-
const
|
|
1
|
+
const require_InvalidParamError = require('./InvalidParamError-CMesesy6.cjs');
|
|
2
|
+
const require_getWalletProviderByKey = require('./getWalletProviderByKey-1zHjzqbz.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/modules/user/refreshAuth/refreshAuth.ts
|
|
5
5
|
/**
|
|
@@ -16,7 +16,7 @@ const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCred
|
|
|
16
16
|
const refreshAuth = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
17
17
|
const core = require_InvalidParamError.getCore(client);
|
|
18
18
|
const response = await require_InvalidParamError.createApiClient({}, client).refreshAuth({ environmentId: core.environmentId });
|
|
19
|
-
|
|
19
|
+
require_getWalletProviderByKey.updateAuthFromVerifyResponse({ response }, client);
|
|
20
20
|
return response;
|
|
21
21
|
};
|
|
22
22
|
const __refreshAuth_impl = refreshAuth;
|
|
@@ -40,4 +40,4 @@ Object.defineProperty(exports, '__refreshAuth_wrapped', {
|
|
|
40
40
|
return __refreshAuth_wrapped;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
//# sourceMappingURL=refreshAuth-
|
|
43
|
+
//# sourceMappingURL=refreshAuth-CKcNynMk.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { J as getDefaultClient, L as instrumentFunction, Q as getCore, b as createApiClient } from "./InvalidParamError-
|
|
2
|
-
import { r as updateAuthFromVerifyResponse } from "./
|
|
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";
|
|
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-Cl3adySI.native.esm.js.map
|
package/dist/{refreshAuth-B2kFf0pl.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 "./
|
|
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"}
|