@dynamic-labs-sdk/client 0.2.4 → 0.4.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-DQv6ejTe.cjs.js → InvalidParamError-C5YtT7LQ.cjs.js} +2 -2
- package/dist/{InvalidParamError-DQv6ejTe.cjs.js.map → InvalidParamError-C5YtT7LQ.cjs.js.map} +1 -1
- package/dist/{InvalidParamError-Cigi7zsS.esm.js → InvalidParamError-c8UAEGKA.esm.js} +2 -2
- package/dist/{InvalidParamError-Cigi7zsS.esm.js.map → InvalidParamError-c8UAEGKA.esm.js.map} +1 -1
- package/dist/NotWaasWalletAccountError-D0YXdfTu.esm.js +37 -0
- package/dist/NotWaasWalletAccountError-D0YXdfTu.esm.js.map +1 -0
- package/dist/{NotWaasWalletAccountError-zV4xv0h6.cjs.js → NotWaasWalletAccountError-DUvIdb2w.cjs.js} +13 -11
- package/dist/NotWaasWalletAccountError-DUvIdb2w.cjs.js.map +1 -0
- package/dist/{constants-B3wr3A32.cjs.js → constants-BbG0v26E.cjs.js} +39 -6
- package/dist/constants-BbG0v26E.cjs.js.map +1 -0
- package/dist/{constants-DQfjH5fu.esm.js → constants-hy8OYHwt.esm.js} +21 -6
- package/dist/constants-hy8OYHwt.esm.js.map +1 -0
- package/dist/core.cjs.js +5 -5
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/errors/NetworkAddingUnavailableError.d.ts +11 -0
- package/dist/errors/NetworkAddingUnavailableError.d.ts.map +1 -0
- package/dist/errors/NetworkNotAddedError.d.ts +14 -0
- package/dist/errors/NetworkNotAddedError.d.ts.map +1 -0
- package/dist/exports/index.d.ts +4 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +1 -0
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DKrjrs7X.cjs.js → getNetworkProviderFromNetworkId-CTKZxd1T.cjs.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-DKrjrs7X.cjs.js.map → getNetworkProviderFromNetworkId-CTKZxd1T.cjs.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-Bccco0Dv.esm.js → getNetworkProviderFromNetworkId-vL_E8aHC.esm.js} +5 -5
- package/dist/getNetworkProviderFromNetworkId-vL_E8aHC.esm.js.map +1 -0
- package/dist/{getSignedSessionId-D7cjzDUp.esm.js → getSignedSessionId-BhFfSHeA.esm.js} +3 -3
- package/dist/{getSignedSessionId-D7cjzDUp.esm.js.map → getSignedSessionId-BhFfSHeA.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-B9i1VIX7.cjs.js → getSignedSessionId-QJpJQ_Jz.cjs.js} +3 -3
- package/dist/{getSignedSessionId-B9i1VIX7.cjs.js.map → getSignedSessionId-QJpJQ_Jz.cjs.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-CR5wGUFK.cjs.js → getVerifiedCredentialForWalletAccount-DAb9lFwa.cjs.js} +85 -12
- package/dist/getVerifiedCredentialForWalletAccount-DAb9lFwa.cjs.js.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-cVOVjcUI.esm.js → getVerifiedCredentialForWalletAccount-c_lbXWMG.esm.js} +61 -12
- package/dist/getVerifiedCredentialForWalletAccount-c_lbXWMG.esm.js.map +1 -0
- package/dist/index.cjs.js +174 -64
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +173 -67
- package/dist/index.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-YAISA589.esm.js → isMfaRequiredForAction-BgevGq0s.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-YAISA589.esm.js.map → isMfaRequiredForAction-BgevGq0s.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-Bwphi7AF.cjs.js → isMfaRequiredForAction-CAwdzRA9.cjs.js} +2 -2
- package/dist/{isMfaRequiredForAction-Bwphi7AF.cjs.js.map → isMfaRequiredForAction-CAwdzRA9.cjs.js.map} +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.d.ts.map +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/index.d.ts +2 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/index.d.ts.map +1 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts +11 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts.map +1 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/index.d.ts +2 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/index.d.ts.map +1 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts +12 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts.map +1 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/index.d.ts +2 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/index.d.ts.map +1 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.d.ts +12 -0
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.d.ts.map +1 -0
- package/dist/modules/user/refreshAuth/index.d.ts +2 -0
- package/dist/modules/user/refreshAuth/index.d.ts.map +1 -0
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts +12 -0
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -0
- package/dist/modules/user/refreshUser/refreshUser.d.ts +5 -4
- package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.d.ts +15 -1
- package/dist/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.d.ts.map +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts +9 -0
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts.map +1 -0
- package/dist/modules/waas/findWaasWalletProviderByChain/index.d.ts +2 -0
- package/dist/modules/waas/findWaasWalletProviderByChain/index.d.ts.map +1 -0
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/index.d.ts +2 -0
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/index.d.ts.map +1 -0
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts +12 -0
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts.map +1 -0
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/index.d.ts +2 -0
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/index.d.ts.map +1 -0
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts +3 -0
- package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts.map +1 -0
- package/dist/modules/waas/waas.types.d.ts +6 -1
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/constants.d.ts.map +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +14 -0
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/disconnectWalletAccount/index.d.ts +2 -0
- package/dist/modules/wallets/disconnectWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/networks/addNetwork/addNetwork.d.ts +21 -0
- package/dist/modules/wallets/networks/addNetwork/addNetwork.d.ts.map +1 -0
- package/dist/modules/wallets/networks/addNetwork/index.d.ts +2 -0
- package/dist/modules/wallets/networks/addNetwork/index.d.ts.map +1 -0
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts +2 -2
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs.js +35 -33
- package/dist/waas.cjs.js.map +1 -1
- package/dist/waas.esm.js +29 -28
- package/dist/waas.esm.js.map +1 -1
- package/dist/waasCore.cjs.js +23 -13
- package/dist/waasCore.cjs.js.map +1 -1
- package/dist/waasCore.esm.js +19 -9
- package/dist/waasCore.esm.js.map +1 -1
- package/package.json +5 -4
- package/dist/NotWaasWalletAccountError-CbHIr6GK.esm.js +0 -35
- package/dist/NotWaasWalletAccountError-CbHIr6GK.esm.js.map +0 -1
- package/dist/NotWaasWalletAccountError-zV4xv0h6.cjs.js.map +0 -1
- package/dist/constants-8IkZb4R4.esm.js +0 -14
- package/dist/constants-8IkZb4R4.esm.js.map +0 -1
- package/dist/constants-B3wr3A32.cjs.js.map +0 -1
- package/dist/constants-Bj3GZ9o6.cjs.js +0 -31
- package/dist/constants-Bj3GZ9o6.cjs.js.map +0 -1
- package/dist/constants-DQfjH5fu.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-Bccco0Dv.esm.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-CR5wGUFK.cjs.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-cVOVjcUI.esm.js.map +0 -1
package/dist/{isMfaRequiredForAction-YAISA589.esm.js → isMfaRequiredForAction-BgevGq0s.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as getDefaultClient, D as getCore, c as createApiClient, v as assertDefined } from "./constants-hy8OYHwt.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/bufferToHex/bufferToHex.ts
|
|
4
4
|
/**
|
|
@@ -66,4 +66,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
|
|
|
66
66
|
|
|
67
67
|
//#endregion
|
|
68
68
|
export { bufferToHex as i, getMfaMethods as n, consumeMfaToken as r, isMfaRequiredForAction as t };
|
|
69
|
-
//# sourceMappingURL=isMfaRequiredForAction-
|
|
69
|
+
//# sourceMappingURL=isMfaRequiredForAction-BgevGq0s.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-BgevGq0s.esm.js","names":[],"sources":["../src/utils/bufferToHex/bufferToHex.ts","../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["/**\n * Converts an ArrayBuffer to a hex-encoded string\n */\nexport const bufferToHex = (buffer: ArrayBufferLike) =>\n [...new Uint8Array(buffer)]\n .map((x) => x.toString(16).padStart(2, '0'))\n .join('');\n","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 */\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 */\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 */\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":";;;;;;AAGA,MAAa,eAAe,WAC1B,CAAC,GAAG,IAAI,WAAW,OAAO,CAAC,CACxB,KAAK,MAAM,EAAE,SAAS,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAC3C,KAAK,GAAG;;;;;;;;;;;;;;ACQb,MAAa,mBAAmB,SAAS,kBAAkB,KAAK;CAC9D,MAAM,OAAO,QAAQ,OAAO;CAE5B,MAAM,WAAW,KAAK,MAAM,KAAK,CAAC;AAElC,eAAc,UAAU,qBAAqB;AAE7C,MAAK,MAAM,IAAI,EACb,UAAU,MACX,CAAC;AAEF,QAAO;;;;;;;;;;;;;;ACZT,MAAa,gBAAgB,OAAO,SAAS,kBAAkB,KAAK;CAClE,MAAM,OAAO,QAAQ,OAAO;AAQ5B,QALuB,MAFL,gBAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;ACDJ,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,MAAM,cAAc,OAAO,EAG5B"}
|
package/dist/{isMfaRequiredForAction-Bwphi7AF.cjs.js → isMfaRequiredForAction-CAwdzRA9.cjs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_constants = require('./constants-
|
|
1
|
+
const require_constants = require('./constants-BbG0v26E.cjs.js');
|
|
2
2
|
|
|
3
3
|
//#region src/utils/bufferToHex/bufferToHex.ts
|
|
4
4
|
/**
|
|
@@ -89,4 +89,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
|
|
|
89
89
|
return isMfaRequiredForAction;
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
//# sourceMappingURL=isMfaRequiredForAction-
|
|
92
|
+
//# sourceMappingURL=isMfaRequiredForAction-CAwdzRA9.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-CAwdzRA9.cjs.js","names":["getDefaultClient","getCore","getDefaultClient","getCore","createApiClient","getDefaultClient"],"sources":["../src/utils/bufferToHex/bufferToHex.ts","../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["/**\n * Converts an ArrayBuffer to a hex-encoded string\n */\nexport const bufferToHex = (buffer: ArrayBufferLike) =>\n [...new Uint8Array(buffer)]\n .map((x) => x.toString(16).padStart(2, '0'))\n .join('');\n","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 */\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 */\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 */\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":";;;;;;AAGA,MAAa,eAAe,WAC1B,CAAC,GAAG,IAAI,WAAW,OAAO,CAAC,CACxB,KAAK,MAAM,EAAE,SAAS,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAC3C,KAAK,GAAG;;;;;;;;;;;;;;ACQb,MAAa,mBAAmB,SAASA,oCAAkB,KAAK;CAC9D,MAAM,OAAOC,0BAAQ,OAAO;CAE5B,MAAM,WAAW,KAAK,MAAM,KAAK,CAAC;AAElC,iCAAc,UAAU,qBAAqB;AAE7C,MAAK,MAAM,IAAI,EACb,UAAU,MACX,CAAC;AAEF,QAAO;;;;;;;;;;;;;;ACZT,MAAa,gBAAgB,OAAO,SAASC,oCAAkB,KAAK;CAClE,MAAM,OAAOC,0BAAQ,OAAO;AAQ5B,QALuB,MAFLC,kCAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;ACDJ,MAAa,yBAAyB,OACpC,EAAE,aACF,SAASC,oCAAkB,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,MAAM,cAAc,OAAO,EAG5B"}
|
package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAuthFromVerifyResponse.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"updateAuthFromVerifyResponse.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAO3D,KAAK,kCAAkC,GAAG;IACxC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,4BAA4B,iBACzB,kCAAkC,UACxC,aAAa,SA8CtB,CAAC"}
|
|
@@ -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":"AAmBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,mEAwG5B,CAAC"}
|
package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletConnectCatalog.d.ts","sourceRoot":"","sources":["../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getWalletConnectCatalog.d.ts","sourceRoot":"","sources":["../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAG5E;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,yDAEjC,OAAO,CAAC,oBAAoB,CAI9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WalletBookSchema } from '../../legacyWalletBook.types';
|
|
2
|
+
import type { WalletConnectCatalogGroup } from '../getWalletConnectCatalog.types';
|
|
3
|
+
type TransformGroupParams = {
|
|
4
|
+
group: WalletBookSchema['groups'][string];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
8
|
+
*/
|
|
9
|
+
export declare const transformGroup: ({ group, }: TransformGroupParams) => WalletConnectCatalogGroup;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=transformGroup.d.ts.map
|
package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformGroup.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAElF,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,eAExB,oBAAoB,KAAG,yBASzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WalletBookSchema } from '../../legacyWalletBook.types';
|
|
2
|
+
import type { WalletConnectCatalogWallet } from '../getWalletConnectCatalog.types';
|
|
3
|
+
type TransformWalletParams = {
|
|
4
|
+
wallet: WalletBookSchema['wallets'][string];
|
|
5
|
+
walletKey: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
9
|
+
*/
|
|
10
|
+
export declare const transformWallet: ({ wallet, walletKey, }: TransformWalletParams) => WalletConnectCatalogWallet;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=transformWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,2BAGzB,qBAAqB,KAAG,0BAuB1B,CAAC"}
|
package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WalletBookSchema } from '../../legacyWalletBook.types';
|
|
2
|
+
import type { WalletConnectCatalog } from '../getWalletConnectCatalog.types';
|
|
3
|
+
type TransformWalletBookParams = {
|
|
4
|
+
walletBook: WalletBookSchema;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
8
|
+
* Filters out embedded wallets and injected-only wallets.
|
|
9
|
+
*/
|
|
10
|
+
export declare const transformWalletBook: ({ walletBook, }: TransformWalletBookParams) => WalletConnectCatalog;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=transformWalletBook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformWalletBook.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,kCAAkC,CAAC;AAK1C,KAAK,yBAAyB,GAAG;IAC/B,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,oBAE7B,yBAAyB,KAAG,oBAkB9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
/**
|
|
3
|
+
* Refreshes the current user's data from the server.
|
|
4
|
+
*
|
|
5
|
+
* This function fetches the latest user information and token from the backend
|
|
6
|
+
* updating the local user and token states with any changes.
|
|
7
|
+
*
|
|
8
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
|
+
* @returns A promise that resolves to the verify response.
|
|
10
|
+
*/
|
|
11
|
+
export declare const refreshAuth: (client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
|
|
12
|
+
//# sourceMappingURL=refreshAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { SdkUser } from '@dynamic-labs/sdk-api-core';
|
|
1
2
|
/**
|
|
2
3
|
* Refreshes the current user's data from the server.
|
|
3
4
|
*
|
|
4
|
-
* This function fetches the latest user information from the backend
|
|
5
|
-
*
|
|
5
|
+
* This function fetches the latest authenticated user information from the backend
|
|
6
|
+
* and updates the local user state.
|
|
6
7
|
*
|
|
7
8
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8
|
-
* @returns A promise that resolves
|
|
9
|
+
* @returns A promise that resolves to the authenticated user.
|
|
9
10
|
*/
|
|
10
|
-
export declare const refreshUser: (client?: import("../../../exports").DynamicClient) => Promise<
|
|
11
|
+
export declare const refreshUser: (client?: import("../../../exports").DynamicClient) => Promise<SdkUser>;
|
|
11
12
|
//# sourceMappingURL=refreshUser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"
|
|
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;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAmT7B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
1
2
|
import type { Chain } from '../../chain';
|
|
2
3
|
type CreateWaasWalletAccountsParams = {
|
|
3
4
|
/**
|
|
@@ -6,6 +7,17 @@ type CreateWaasWalletAccountsParams = {
|
|
|
6
7
|
* for that chain.
|
|
7
8
|
*/
|
|
8
9
|
chains: Chain[];
|
|
10
|
+
/**
|
|
11
|
+
* The optional password to use for the wallet accounts.
|
|
12
|
+
* It's used to encrypt the user shares.
|
|
13
|
+
* The same password must be used for all waas wallet accounts created for the same user.
|
|
14
|
+
*/
|
|
15
|
+
password?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The threshold signature scheme to use for the wallet accounts.
|
|
18
|
+
* If not provided, TWO_OF_TWO will be used.
|
|
19
|
+
*/
|
|
20
|
+
thresholdSignatureScheme?: ThresholdSignatureScheme;
|
|
9
21
|
};
|
|
10
22
|
/**
|
|
11
23
|
* Creates wallet accounts for the specified chains.
|
|
@@ -21,9 +33,11 @@ type CreateWaasWalletAccountsParams = {
|
|
|
21
33
|
* ```
|
|
22
34
|
*
|
|
23
35
|
* @param params.chains - The chains to create wallet accounts for.
|
|
36
|
+
* @param params.password - The optional password to use for the wallet accounts.
|
|
37
|
+
* @param params.thresholdSignatureScheme - The threshold signature scheme to use for the wallet accounts. (Default: TWO_OF_TWO)
|
|
24
38
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
25
39
|
* @returns A promise that resolves when all wallet accounts are created.
|
|
26
40
|
*/
|
|
27
|
-
export declare const createWaasWalletAccounts: ({ chains }: CreateWaasWalletAccountsParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
|
|
41
|
+
export declare const createWaasWalletAccounts: ({ chains, password, thresholdSignatureScheme, }: CreateWaasWalletAccountsParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
|
|
28
42
|
export {};
|
|
29
43
|
//# sourceMappingURL=createWaasWalletAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWaasWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createWaasWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAO3F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOzC,KAAK,8BAA8B,GAAG;IACpC;;;;OAIG;IACH,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACrD,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,oDAKhC,8BAA8B,wDAEhC,OAAO,CAAC,IAAI,CAuDd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../client/types/DynamicClient';
|
|
2
|
+
import type { Chain } from '../../chain';
|
|
3
|
+
import type { WaasWalletProvider } from '../waas.types';
|
|
4
|
+
type FindWaasWalletProviderByChainParams = {
|
|
5
|
+
chain: Chain;
|
|
6
|
+
};
|
|
7
|
+
export declare const findWaasWalletProviderByChain: ({ chain }: FindWaasWalletProviderByChainParams, client: DynamicClient) => WaasWalletProvider | null;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=findWaasWalletProviderByChain.d.ts.map
|
package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findWaasWalletProviderByChain.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,KAAK,mCAAmC,GAAG;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,6BAA6B,cAC7B,mCAAmC,UACtC,aAAa,KACpB,kBAAkB,GAAG,IAkBvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/findWaasWalletProviderByChain/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWaasWalletProviderByChain.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"getWaasWalletProviderByChain.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,4BAA4B,cAC5B,kCAAkC,UACrC,aAAa,KACpB,kBAgBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/isPasswordRequiredForWaasWallets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
|
package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the user Waas wallets are password protected.
|
|
3
|
+
*
|
|
4
|
+
* If the user's Waas wallets are password protected, it means that user's will have to be prompted for a
|
|
5
|
+
* password for the first wallet action that happens on each session.
|
|
6
|
+
* The password is also required for creating any new Waas wallets.
|
|
7
|
+
*
|
|
8
|
+
* @param client - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
|
+
* @returns True if the user has any password protected Waas wallets, false otherwise
|
|
10
|
+
*/
|
|
11
|
+
export declare const isPasswordRequiredForWaasWallets: (client?: import("../../../exports").DynamicClient) => boolean;
|
|
12
|
+
//# sourceMappingURL=isPasswordRequiredForWaasWallets.d.ts.map
|
package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPasswordRequiredForWaasWallets.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,gCAAgC,yDAE1C,OAUF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/restoreUserSharesForAllWalletAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restoreUserSharesForAllWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,eAAO,MAAM,qCAAqC,WACxC,aAAa,kBAwBtB,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { DynamicWalletClient, ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import type { WalletAccount } from '../wallets/walletAccount';
|
|
3
3
|
import type { WalletProvider } from '../wallets/walletProvider';
|
|
4
|
+
export type { ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
4
5
|
export type WaasProvider = {
|
|
5
6
|
backupKeySharesToGoogleDrive: (args: {
|
|
6
7
|
password?: string;
|
|
7
8
|
walletAccount: WalletAccount;
|
|
8
9
|
}) => Promise<void>;
|
|
9
10
|
createWalletAccount(args?: {
|
|
10
|
-
|
|
11
|
+
password?: string;
|
|
12
|
+
thresholdSignatureScheme?: ThresholdSignatureScheme;
|
|
11
13
|
}): Promise<{
|
|
12
14
|
accountAddress: string;
|
|
13
15
|
publicKeyHex: string;
|
|
@@ -35,6 +37,9 @@ export type WaasProvider = {
|
|
|
35
37
|
password?: string;
|
|
36
38
|
walletAccount: WalletAccount;
|
|
37
39
|
}) => Promise<void>;
|
|
40
|
+
restoreUserShareForWalletAccount: (args: {
|
|
41
|
+
walletAccount: WalletAccount;
|
|
42
|
+
}) => Promise<void>;
|
|
38
43
|
revokeDelegation: (args: {
|
|
39
44
|
password?: string;
|
|
40
45
|
walletAccount: WalletAccount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waas.types.d.ts","sourceRoot":"","sources":["../../../src/modules/waas/waas.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG;IACzB,4BAA4B,EAAE,CAAC,IAAI,EAAE;QACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,mBAAmB,CAAC,IAAI,CAAC,EAAE;QACzB,wBAAwB,EAAE,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"waas.types.d.ts","sourceRoot":"","sources":["../../../src/modules/waas/waas.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CAyEpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../client/types';
|
|
2
|
+
import type { WalletAccount } from '../walletAccount';
|
|
3
|
+
type DisconnectWalletAccountParams = {
|
|
4
|
+
walletAccount: WalletAccount;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* This function disconnects the specified wallet account with the wallet provider.
|
|
8
|
+
*
|
|
9
|
+
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
10
|
+
* it is only responsible for terminating the connection with the wallet provider.
|
|
11
|
+
*/
|
|
12
|
+
export declare const disconnectWalletAccount: ({ walletAccount }: DisconnectWalletAccountParams, client: DynamicClient) => Promise<void>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=disconnectWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disconnectWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,sBACf,6BAA6B,UACxC,aAAa,KACpB,OAAO,CAAC,IAAI,CAiBd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WalletAccount } from '../../walletAccount';
|
|
2
|
+
import type { NetworkData } from '../networkProvider/networkProvider.types';
|
|
3
|
+
type AddNetworkParams = {
|
|
4
|
+
networkData: NetworkData;
|
|
5
|
+
walletAccount: WalletAccount;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Adds a network to the wallet provider.
|
|
9
|
+
*
|
|
10
|
+
* This function requests that the wallet provider add a network
|
|
11
|
+
* to its list of available networks.
|
|
12
|
+
*
|
|
13
|
+
* @param params.networkData - The network configuration data to add to the wallet.
|
|
14
|
+
* @param params.walletAccount - The wallet account to add the network for.
|
|
15
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
|
+
* @returns A promise that resolves when the network addition is complete.
|
|
17
|
+
* @throws NetworkAddingUnavailableError If the wallet provider doesn't support adding networks.
|
|
18
|
+
*/
|
|
19
|
+
export declare const addNetwork: ({ networkData, walletAccount }: AddNetworkParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=addNetwork.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/addNetwork/addNetwork.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAE5E,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,mCACW,gBAAgB,wEAmBjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/addNetwork/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -5,8 +5,8 @@ type RemoveWalletAccountParams = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Removes a wallet account from the current session or user (if authenticated).
|
|
7
7
|
*
|
|
8
|
-
* This function disconnects and removes the specified wallet account,
|
|
9
|
-
* updating
|
|
8
|
+
* This function both disconnects and removes the specified wallet account,
|
|
9
|
+
* updating local state and server records (if there is an authenticated user).
|
|
10
10
|
* For verified wallets, it will unlink them from the user's account.
|
|
11
11
|
*
|
|
12
12
|
* @param params.walletAccount - The wallet account to remove.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,sBACX,yBAAyB,wDAE3C,OAAO,CAAC,IAAI,CAuBd,CAAC"}
|