@dynamic-labs-sdk/client 0.23.2 → 0.23.4
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-B2Zg4cNy.cjs.js → InvalidParamError-D2mY6bDm.cjs.js} +4 -4
- package/dist/{InvalidParamError-B2Zg4cNy.cjs.js.map → InvalidParamError-D2mY6bDm.cjs.js.map} +1 -1
- package/dist/{InvalidParamError-CMLuCl4V.esm.js → InvalidParamError-DQNvDHoJ.esm.js} +3 -3
- package/dist/{InvalidParamError-CMLuCl4V.esm.js.map → InvalidParamError-DQNvDHoJ.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-Cc-JW6v2.esm.js → NotWaasWalletAccountError-BycDPZE7.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-Cc-JW6v2.esm.js.map → NotWaasWalletAccountError-BycDPZE7.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-CDTnlyoi.cjs.js → NotWaasWalletAccountError-DKt-e0jp.cjs.js} +3 -3
- package/dist/{NotWaasWalletAccountError-CDTnlyoi.cjs.js.map → NotWaasWalletAccountError-DKt-e0jp.cjs.js.map} +1 -1
- package/dist/core.cjs.js +5 -5
- package/dist/core.esm.js +5 -5
- package/dist/{getNetworkProviderFromNetworkId--laFFnCw.cjs.js → getNetworkProviderFromNetworkId-BZ0Yi99m.cjs.js} +10 -3
- package/dist/getNetworkProviderFromNetworkId-BZ0Yi99m.cjs.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DZT4uwvK.esm.js → getNetworkProviderFromNetworkId-Ck4qXPsJ.esm.js} +5 -4
- package/dist/getNetworkProviderFromNetworkId-Ck4qXPsJ.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BxIa5aIJ.esm.js → getSignedSessionId-lg-rT8W_.esm.js} +3 -3
- package/dist/{getSignedSessionId-BxIa5aIJ.esm.js.map → getSignedSessionId-lg-rT8W_.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DAiBb3Cs.cjs.js → getSignedSessionId-oiCgC33U.cjs.js} +3 -3
- package/dist/{getSignedSessionId-DAiBb3Cs.cjs.js.map → getSignedSessionId-oiCgC33U.cjs.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-CxDYYgVI.cjs.js → getVerifiedCredentialForWalletAccount-6iZSd5T2.cjs.js} +3 -3
- package/dist/{getVerifiedCredentialForWalletAccount-CxDYYgVI.cjs.js.map → getVerifiedCredentialForWalletAccount-6iZSd5T2.cjs.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-ppy36Ru3.esm.js → getVerifiedCredentialForWalletAccount-C2m6GufK.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-ppy36Ru3.esm.js.map → getVerifiedCredentialForWalletAccount-C2m6GufK.esm.js.map} +1 -1
- package/dist/index.cjs.js +64 -42
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +64 -42
- package/dist/index.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-x-QgXEWm.cjs.js → isMfaRequiredForAction-DRetUSWZ.cjs.js} +2 -2
- package/dist/{isMfaRequiredForAction-x-QgXEWm.cjs.js.map → isMfaRequiredForAction-DRetUSWZ.cjs.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-CriARzkK.esm.js → isMfaRequiredForAction-DqZS12dt.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CriARzkK.esm.js.map → isMfaRequiredForAction-DqZS12dt.esm.js.map} +1 -1
- package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +14 -2
- package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +3 -2
- package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/initializeClient/consts.d.ts +1 -0
- package/dist/modules/initializeClient/consts.d.ts.map +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/user/refreshUser/refreshUser.d.ts +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs.js +4 -4
- package/dist/waas.esm.js +3 -3
- package/dist/waasCore.cjs.js +4 -4
- package/dist/waasCore.esm.js +3 -3
- package/package.json +3 -3
- package/dist/getNetworkProviderFromNetworkId--laFFnCw.cjs.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DZT4uwvK.esm.js.map +0 -1
package/dist/{isMfaRequiredForAction-x-QgXEWm.cjs.js → isMfaRequiredForAction-DRetUSWZ.cjs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
1
|
+
const require_InvalidParamError = require('./InvalidParamError-D2mY6bDm.cjs.js');
|
|
2
2
|
|
|
3
3
|
//#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
|
|
4
4
|
/**
|
|
@@ -103,4 +103,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
|
|
|
103
103
|
return isMfaRequiredForAction;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
//# sourceMappingURL=isMfaRequiredForAction-
|
|
106
|
+
//# sourceMappingURL=isMfaRequiredForAction-DRetUSWZ.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-DRetUSWZ.cjs.js","names":["getDefaultClient","getMfaMethods"],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n * @instrumented\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n * @instrumented\n */\nexport const getMfaMethods = async (client = getDefaultClient()) => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const userMfaMethods = await apiClient.getUserMfaMethods({\n environmentId: core.environmentId,\n verifiedOnly: true,\n });\n\n return userMfaMethods;\n};\n","import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { getMfaMethods } from '../getMfaMethods';\n\ntype IsMfaRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/**\n * Checks if MFA is required for a specific action.\n *\n * This function determines whether multi-factor authentication is required\n * for the specified action based on project settings and user configuration.\n *\n * @param params.mfaAction - The action to check MFA requirements for.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to true if MFA is required for the action, false otherwise.\n * @not-instrumented\n */\nexport const isMfaRequiredForAction = async (\n { mfaAction }: IsMfaRequiredForActionParams,\n client = getDefaultClient()\n) => {\n const projectSettings = client.projectSettings;\n\n const isRequiredForAction = projectSettings?.security?.mfa?.actions?.some(\n (action) => action.action === mfaAction && action.required\n );\n\n // if mfa is not required for the action, return false\n // no matter if general mfa is set to required or not\n if (!isRequiredForAction) {\n return false;\n }\n\n const isMfaMethodRequired = projectSettings?.security?.mfa?.required;\n\n // if mfa is required for the action and also set as required in general, return true\n if (isMfaMethodRequired) {\n return true;\n }\n\n const mfaMethods = await getMfaMethods(client);\n // if general mfa is optional, but user has registered methods,\n // then it should be required for the action\n return mfaMethods.userHasVerifiedMfaMethods;\n};\n"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,4CAAU,KAAA;;;AAK1C,yCAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CCTC,MAAM,OAAA,kCAAe,OAAO;QAG1B,MAFe,oDAAK,EAAa,EAAA,OAAA,CAEjC,kBAAA;;EAEF,cAAO;EACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJD,MAAa,yBAAyB,OACpC,EAAE,aACF,SAASA,4CAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAMC,wBAAc,OAAO,EAG5B"}
|
package/dist/{isMfaRequiredForAction-CriARzkK.esm.js → isMfaRequiredForAction-DqZS12dt.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as getDefaultClient, k as assertDefined, u as __createApiClient_wrapped, w as instrumentFunction, z as getCore } from "./InvalidParamError-
|
|
1
|
+
import { F as getDefaultClient, k as assertDefined, u as __createApiClient_wrapped, w as instrumentFunction, z as getCore } from "./InvalidParamError-DQNvDHoJ.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
|
|
4
4
|
/**
|
|
@@ -86,4 +86,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
|
|
|
86
86
|
|
|
87
87
|
//#endregion
|
|
88
88
|
export { __getMfaMethods_wrapped as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
|
|
89
|
-
//# sourceMappingURL=isMfaRequiredForAction-
|
|
89
|
+
//# sourceMappingURL=isMfaRequiredForAction-DqZS12dt.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-DqZS12dt.esm.js","names":["getMfaMethods"],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n * @instrumented\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n * @instrumented\n */\nexport const getMfaMethods = async (client = getDefaultClient()) => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const userMfaMethods = await apiClient.getUserMfaMethods({\n environmentId: core.environmentId,\n verifiedOnly: true,\n });\n\n return userMfaMethods;\n};\n","import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { getMfaMethods } from '../getMfaMethods';\n\ntype IsMfaRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/**\n * Checks if MFA is required for a specific action.\n *\n * This function determines whether multi-factor authentication is required\n * for the specified action based on project settings and user configuration.\n *\n * @param params.mfaAction - The action to check MFA requirements for.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to true if MFA is required for the action, false otherwise.\n * @not-instrumented\n */\nexport const isMfaRequiredForAction = async (\n { mfaAction }: IsMfaRequiredForActionParams,\n client = getDefaultClient()\n) => {\n const projectSettings = client.projectSettings;\n\n const isRequiredForAction = projectSettings?.security?.mfa?.actions?.some(\n (action) => action.action === mfaAction && action.required\n );\n\n // if mfa is not required for the action, return false\n // no matter if general mfa is set to required or not\n if (!isRequiredForAction) {\n return false;\n }\n\n const isMfaMethodRequired = projectSettings?.security?.mfa?.required;\n\n // if mfa is required for the action and also set as required in general, return true\n if (isMfaMethodRequired) {\n return true;\n }\n\n const mfaMethods = await getMfaMethods(client);\n // if general mfa is optional, but user has registered methods,\n // then it should be required for the action\n return mfaMethods.userHasVerifiedMfaMethods;\n};\n"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CCTC,MAAM,OAAA,QAAe,OAAO;QAG1B,MAFe,0BAAK,EAAa,EAAA,OAAA,CAEjC,kBAAA;;EAEF,cAAO;EACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJD,MAAa,yBAAyB,OACpC,EAAE,aACF,SAAS,kBAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAMA,wBAAc,OAAO,EAG5B"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { CheckoutTransaction } from '../checkout.types';
|
|
2
2
|
export type PrepareCheckoutTransactionParams = {
|
|
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;
|
|
3
15
|
transactionId: string;
|
|
4
16
|
};
|
|
5
17
|
/**
|
|
@@ -10,7 +22,7 @@ export type PrepareCheckoutTransactionParams = {
|
|
|
10
22
|
* @param params PrepareCheckoutTransactionParams - The transaction to prepare.
|
|
11
23
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
24
|
* @returns The updated checkout transaction
|
|
13
|
-
|
|
25
|
+
* @instrumented
|
|
14
26
|
*/
|
|
15
|
-
export declare const prepareCheckoutTransaction: ({ transactionId }: PrepareCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
|
|
27
|
+
export declare const prepareCheckoutTransaction: ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId, }: PrepareCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
|
|
16
28
|
//# sourceMappingURL=prepareCheckoutTransaction.d.ts.map
|
package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gFAKlC,gCAAgC,wDAElC,OAAO,CAAC,mBAAmB,CAa7B,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { WalletAccount } from '../../wallets/walletAccount';
|
|
2
2
|
import type { CheckoutTransaction } from '../checkout.types';
|
|
3
|
+
import type { PrepareCheckoutTransactionParams } from '../prepareCheckoutTransaction';
|
|
3
4
|
export type SubmitCheckoutTransactionParams = {
|
|
4
5
|
onStepChange?: (step: 'approval' | 'transaction') => void;
|
|
5
6
|
transactionId: string;
|
|
6
7
|
walletAccount: WalletAccount;
|
|
7
|
-
};
|
|
8
|
+
} & PrepareCheckoutTransactionParams;
|
|
8
9
|
/**
|
|
9
10
|
* Prepares, signs, and broadcasts a checkout transaction in one call.
|
|
10
11
|
*
|
|
@@ -19,5 +20,5 @@ export type SubmitCheckoutTransactionParams = {
|
|
|
19
20
|
* @returns The broadcasted checkout transaction
|
|
20
21
|
* @instrumented
|
|
21
22
|
*/
|
|
22
|
-
export declare const submitCheckoutTransaction: ({ onStepChange, transactionId, walletAccount, }: SubmitCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
|
|
23
|
+
export declare const submitCheckoutTransaction: ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount, }: SubmitCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
|
|
23
24
|
//# sourceMappingURL=submitCheckoutTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAGtF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,gCAAgC,CAAC;AAErC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,6GAOjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CA0B7B,CAAC"}
|
|
@@ -2,4 +2,5 @@ export declare const REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY = "refresh-user-
|
|
|
2
2
|
export declare const INITIALIZE_STORAGE_SYNC_TRACKER_KEY = "initialize-storage-sync";
|
|
3
3
|
export declare const FETCH_PROJECT_SETTINGS_TRACKER_KEY = "fetch-project-settings";
|
|
4
4
|
export declare const GENERATE_SESSION_KEYS_TRACKER_KEY = "generate-session-keys";
|
|
5
|
+
export declare const REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY = "refresh-user-state-from-valid-token";
|
|
5
6
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0CAA0C,mCACrB,CAAC;AAEnC,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAE7E,eAAO,MAAM,kCAAkC,2BAA2B,CAAC;AAE3E,eAAO,MAAM,iCAAiC,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0CAA0C,mCACrB,CAAC;AAEnC,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAE7E,eAAO,MAAM,kCAAkC,2BAA2B,CAAC;AAE3E,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AAEzE,eAAO,MAAM,+CAA+C,wCACrB,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
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
14
|
*/
|
|
15
15
|
export declare const initializeClient: (client?: import("../../exports").DynamicClient) => Promise<void>;
|
|
16
16
|
//# sourceMappingURL=initializeClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,mEA6J5B,CAAC"}
|
|
@@ -7,7 +7,7 @@ import type { SdkUser } from '@dynamic-labs/sdk-api-core';
|
|
|
7
7
|
*
|
|
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
11
|
*/
|
|
12
12
|
export declare const refreshUser: (client?: import("../../../exports").DynamicClient) => Promise<SdkUser>;
|
|
13
13
|
//# sourceMappingURL=refreshUser.d.ts.map
|