@dynamic-labs-sdk/client 0.24.1 → 0.25.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-B5NwKSKU.native.esm.js +1177 -0
- package/dist/InvalidParamError-B5NwKSKU.native.esm.js.map +1 -0
- package/dist/{InvalidParamError-Bq5zAFj4.esm.js → InvalidParamError-BiVmL7nM.esm.js} +4 -4
- package/dist/InvalidParamError-BiVmL7nM.esm.js.map +1 -0
- package/dist/{InvalidParamError-9IR2C0up.cjs.js → InvalidParamError-D-d-UfBL.cjs.js} +5 -5
- package/dist/InvalidParamError-D-d-UfBL.cjs.js.map +1 -0
- package/dist/{NotWaasWalletAccountError-DpRIY6Pd.cjs.js → NotWaasWalletAccountError-BJaemI4V.cjs.js} +3 -3
- package/dist/{NotWaasWalletAccountError-DpRIY6Pd.cjs.js.map → NotWaasWalletAccountError-BJaemI4V.cjs.js.map} +1 -1
- package/dist/NotWaasWalletAccountError-BX5lUnKT.native.esm.js +50 -0
- package/dist/NotWaasWalletAccountError-BX5lUnKT.native.esm.js.map +1 -0
- package/dist/{NotWaasWalletAccountError-CIJRq-EG.esm.js → NotWaasWalletAccountError-Bo4VhW4n.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-CIJRq-EG.esm.js.map → NotWaasWalletAccountError-Bo4VhW4n.esm.js.map} +1 -1
- package/dist/client/core/createCore/createCore.d.ts.map +1 -1
- package/dist/client/core/types/DynamicCore.d.ts +4 -0
- package/dist/client/core/types/DynamicCore.d.ts.map +1 -1
- package/dist/client/types/DynamicClientConfig.d.ts +10 -0
- package/dist/client/types/DynamicClientConfig.d.ts.map +1 -1
- package/dist/core.cjs.js +5 -5
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.esm.js +5 -5
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +377 -0
- package/dist/core.native.esm.js.map +1 -0
- package/dist/errors/APIError/APIError.d.ts.map +1 -1
- package/dist/errors/InvalidParamError.d.ts.map +1 -1
- package/dist/errors/InvalidStorageValue.d.ts.map +1 -1
- package/dist/errors/InvalidWalletProviderKeyError.d.ts.map +1 -1
- package/dist/errors/MethodNotImplementedError.d.ts.map +1 -1
- package/dist/errors/MissingSocialUrlParamError.d.ts.map +1 -1
- package/dist/errors/NoSmartWalletAccountSignerFoundError.d.ts.map +1 -1
- package/dist/errors/UnavailableInServerSideError.d.ts.map +1 -1
- package/dist/errors/ValueMustBeDefinedError.d.ts.map +1 -1
- package/dist/errors/WalletAccountAlreadyVerifiedError.d.ts.map +1 -1
- package/dist/exports/index.d.ts +4 -4
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-C4aba1hS.esm.js → getNetworkProviderFromNetworkId-5dK99mQR.esm.js} +5 -5
- package/dist/getNetworkProviderFromNetworkId-5dK99mQR.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-COxYamJy.cjs.js → getNetworkProviderFromNetworkId-Cl2XDWo9.cjs.js} +5 -5
- package/dist/getNetworkProviderFromNetworkId-Cl2XDWo9.cjs.js.map +1 -0
- package/dist/getNetworkProviderFromNetworkId-DWOYr3uv.native.esm.js +1302 -0
- package/dist/getNetworkProviderFromNetworkId-DWOYr3uv.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-D7uV3dw0.cjs.js → getSignedSessionId-BbhZjeRt.cjs.js} +3 -3
- package/dist/{getSignedSessionId-D7uV3dw0.cjs.js.map → getSignedSessionId-BbhZjeRt.cjs.js.map} +1 -1
- package/dist/{getSignedSessionId-_vjv5TNw.esm.js → getSignedSessionId-DakTrfSz.esm.js} +3 -3
- package/dist/{getSignedSessionId-_vjv5TNw.esm.js.map → getSignedSessionId-DakTrfSz.esm.js.map} +1 -1
- package/dist/getSignedSessionId-Dk3_TQLq.native.esm.js +67 -0
- package/dist/getSignedSessionId-Dk3_TQLq.native.esm.js.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-Df_wN20i.cjs.js → getVerifiedCredentialForWalletAccount-BDvkZbtb.cjs.js} +3 -3
- package/dist/getVerifiedCredentialForWalletAccount-BDvkZbtb.cjs.js.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-Y-aJ2rY7.esm.js → getVerifiedCredentialForWalletAccount-ByUSFAHs.esm.js} +2 -2
- package/dist/getVerifiedCredentialForWalletAccount-ByUSFAHs.esm.js.map +1 -0
- package/dist/getVerifiedCredentialForWalletAccount-Dhqf6Tdl.native.esm.js +783 -0
- package/dist/getVerifiedCredentialForWalletAccount-Dhqf6Tdl.native.esm.js.map +1 -0
- package/dist/index.cjs.js +73 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +73 -49
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +7000 -0
- package/dist/index.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-cfGmMd_g.cjs.js → isMfaRequiredForAction-CYrluCK-.cjs.js} +2 -2
- package/dist/{isMfaRequiredForAction-cfGmMd_g.cjs.js.map → isMfaRequiredForAction-CYrluCK-.cjs.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-Cc6jkbY5.esm.js → isMfaRequiredForAction-SFbQW5j5.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-Cc6jkbY5.esm.js.map → isMfaRequiredForAction-SFbQW5j5.esm.js.map} +1 -1
- package/dist/isMfaRequiredForAction-y15A_lhP.native.esm.js +89 -0
- package/dist/isMfaRequiredForAction-y15A_lhP.native.esm.js.map +1 -0
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +0 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/extractSessionId/extractSessionId.d.ts.map +1 -1
- package/dist/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/buildOAuthUrl.d.ts.map +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.d.ts.map +1 -1
- package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +34 -6
- package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +11 -3
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/checkout.types.d.ts +1 -0
- package/dist/modules/checkout/checkout.types.d.ts.map +1 -1
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +7 -3
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/instrumentation/setInstrumentationEnabled/setInstrumentationEnabled.d.ts.map +1 -1
- package/dist/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.d.ts.map +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWallet/shouldFilterWallet.d.ts.map +1 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +0 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +0 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
- package/dist/modules/user/updateUser/updateUser.d.ts +0 -1
- package/dist/modules/user/updateUser/updateUser.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts.map +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.d.ts.map +1 -1
- package/dist/modules/wallets/utils/assertWalletProviderMethodDefined/assertWalletProviderMethodDefined.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts.map +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts.map +1 -1
- package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts.map +1 -1
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts.map +1 -1
- package/dist/services/keychain/createIndexedDBKeychainService/KeyNotFoundError.d.ts.map +1 -1
- package/dist/services/keychain/createIndexedDBKeychainService/createIndexedDBKeychainService.d.ts.map +1 -1
- package/dist/services/keychain/createIndexedDBKeychainService/utils/deleteIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createIndexedDBKeychainService/utils/getIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createIndexedDBKeychainService/utils/setIndexedDBItem.d.ts.map +1 -1
- package/dist/services/logger/createLogger/createLogger.d.ts.map +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts.map +1 -1
- package/dist/services/realtime/realtime.types.d.ts +1 -0
- package/dist/services/realtime/realtime.types.d.ts.map +1 -1
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts.map +1 -1
- package/dist/services/runtimeServices/createRuntimeServices/createRuntimeServices.d.ts.map +1 -1
- package/dist/services/storage/createStorage/formatForStorage/isValidDateISOString/isValidDateISOString.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/assertDefined/assertDefined.d.ts.map +1 -1
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts.map +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts.map +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts.map +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts.map +1 -1
- package/dist/utils/isErrorWithCode/isErrorWithCode.d.ts.map +1 -1
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/observable/createObservableState/createObservableState.d.ts.map +1 -1
- package/dist/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts.map +1 -1
- package/dist/utils/retryOnFail/InvalidRetryOnFailCallError.d.ts.map +1 -1
- package/dist/utils/setCookie/setCookie.d.ts.map +1 -1
- package/dist/waas.cjs.js +4 -4
- package/dist/waas.esm.js +3 -3
- package/dist/waas.native.esm.js +506 -0
- package/dist/waas.native.esm.js.map +1 -0
- package/dist/waasCore.cjs.js +7 -5
- package/dist/waasCore.cjs.js.map +1 -1
- package/dist/waasCore.esm.js +6 -4
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +253 -0
- package/dist/waasCore.native.esm.js.map +1 -0
- package/package.json +8 -4
- package/dist/InvalidParamError-9IR2C0up.cjs.js.map +0 -1
- package/dist/InvalidParamError-Bq5zAFj4.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-C4aba1hS.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-COxYamJy.cjs.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-Df_wN20i.cjs.js.map +0 -1
- package/dist/getVerifiedCredentialForWalletAccount-Y-aJ2rY7.esm.js.map +0 -1
package/dist/{isMfaRequiredForAction-cfGmMd_g.cjs.js → isMfaRequiredForAction-CYrluCK-.cjs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
1
|
+
const require_InvalidParamError = require('./InvalidParamError-D-d-UfBL.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-CYrluCK-.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-CYrluCK-.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-Cc6jkbY5.esm.js → isMfaRequiredForAction-SFbQW5j5.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-BiVmL7nM.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-SFbQW5j5.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMfaRequiredForAction-
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-SFbQW5j5.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"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { F as getDefaultClient, k as assertDefined, u as __createApiClient_wrapped, w as instrumentFunction, z as getCore } from "./InvalidParamError-B5NwKSKU.native.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
|
|
4
|
+
/**
|
|
5
|
+
* Consumes and clears the current MFA token from the client state.
|
|
6
|
+
*
|
|
7
|
+
* This function retrieves the MFA token obtained from a successful MFA authentication,
|
|
8
|
+
* and removes it from the client, to prevent it from being used again.
|
|
9
|
+
*
|
|
10
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
11
|
+
* @returns The MFA token that was consumed.
|
|
12
|
+
* @throws Error if no MFA token is found.
|
|
13
|
+
* @instrumented
|
|
14
|
+
*/
|
|
15
|
+
const consumeMfaToken = (client = getDefaultClient()) => {
|
|
16
|
+
const core = getCore(client);
|
|
17
|
+
const mfaToken = core.state.get().mfaToken;
|
|
18
|
+
assertDefined(mfaToken, "No MFA token found");
|
|
19
|
+
core.state.set({ mfaToken: null });
|
|
20
|
+
return mfaToken;
|
|
21
|
+
};
|
|
22
|
+
const __consumeMfaToken_impl = consumeMfaToken;
|
|
23
|
+
const __consumeMfaToken_wrapped = instrumentFunction({
|
|
24
|
+
fn: __consumeMfaToken_impl,
|
|
25
|
+
functionName: "consumeMfaToken",
|
|
26
|
+
getCore: () => {
|
|
27
|
+
try {
|
|
28
|
+
return getCore(getDefaultClient());
|
|
29
|
+
} catch {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/modules/mfa/getMfaMethods/getMfaMethods.ts
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the available MFA methods for the current user.
|
|
39
|
+
*
|
|
40
|
+
* This function fetches information about which multi-factor authentication
|
|
41
|
+
* methods are available and configured for the user's account.
|
|
42
|
+
*
|
|
43
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
44
|
+
* @returns A promise that resolves to the user's MFA methods configuration.
|
|
45
|
+
* @instrumented
|
|
46
|
+
*/
|
|
47
|
+
const getMfaMethods = async (client = getDefaultClient()) => {
|
|
48
|
+
const core = getCore(client);
|
|
49
|
+
return await __createApiClient_wrapped({}, client).getUserMfaMethods({
|
|
50
|
+
environmentId: core.environmentId,
|
|
51
|
+
verifiedOnly: true
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const __getMfaMethods_impl = getMfaMethods;
|
|
55
|
+
const __getMfaMethods_wrapped = instrumentFunction({
|
|
56
|
+
fn: __getMfaMethods_impl,
|
|
57
|
+
functionName: "getMfaMethods",
|
|
58
|
+
getCore: () => {
|
|
59
|
+
try {
|
|
60
|
+
return getCore(getDefaultClient());
|
|
61
|
+
} catch {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts
|
|
69
|
+
/**
|
|
70
|
+
* Checks if MFA is required for a specific action.
|
|
71
|
+
*
|
|
72
|
+
* This function determines whether multi-factor authentication is required
|
|
73
|
+
* for the specified action based on project settings and user configuration.
|
|
74
|
+
*
|
|
75
|
+
* @param params.mfaAction - The action to check MFA requirements for.
|
|
76
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
77
|
+
* @returns A promise that resolves to true if MFA is required for the action, false otherwise.
|
|
78
|
+
* @not-instrumented
|
|
79
|
+
*/
|
|
80
|
+
const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()) => {
|
|
81
|
+
const projectSettings = client.projectSettings;
|
|
82
|
+
if (!projectSettings?.security?.mfa?.actions?.some((action) => action.action === mfaAction && action.required)) return false;
|
|
83
|
+
if (projectSettings?.security?.mfa?.required) return true;
|
|
84
|
+
return (await __getMfaMethods_wrapped(client)).userHasVerifiedMfaMethods;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { __getMfaMethods_wrapped as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
|
|
89
|
+
//# sourceMappingURL=isMfaRequiredForAction-y15A_lhP.native.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isMfaRequiredForAction-y15A_lhP.native.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeJwt.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/decodeJwt/decodeJwt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"decodeJwt.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/decodeJwt/decodeJwt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,UA4BvC,CAAC"}
|
|
@@ -12,7 +12,6 @@ type SignInWithExternalJwtParams = {
|
|
|
12
12
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
13
|
* @returns A promise that resolves to the authentication response from the server.
|
|
14
14
|
* @instrumented
|
|
15
|
-
|
|
16
15
|
* @redact-params
|
|
17
16
|
*/
|
|
18
17
|
export declare const signInWithExternalJwt: ({ externalJwt, sessionPublicKey }?: SignInWithExternalJwtParams, client?: import("../../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signInWithExternalJwt.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.ts"],"names":[],"mappings":"AAKA,KAAK,2BAA2B,GAAG;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"signInWithExternalJwt.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.ts"],"names":[],"mappings":"AAKA,KAAK,2BAA2B,GAAG;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,uCACG,2BAA2B,uHAiB/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractSessionId.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/extractSessionId/extractSessionId.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"extractSessionId.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/extractSessionId/extractSessionId.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAAM,GAAG,IASzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setLongTimeout.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"setLongTimeout.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,cAAc,aACf,MAAM,IAAI,SACb,MAAM,KACZ,YAyBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addOAuthUrlParams.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAOzE,KAAK,wBAAwB,GAAG;IAC9B;KACC;IACD,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF;GACG;
|
|
1
|
+
{"version":3,"file":"addOAuthUrlParams.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAOzE,KAAK,wBAAwB,GAAG;IAC9B;KACC;IACD,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF;GACG;AAEH,eAAO,MAAM,iBAAiB,aAClB,QAAQ,WACT,GAAG,YACH,wBAAwB,KAChC,GAmCF,CAAC"}
|
package/dist/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/buildOAuthUrl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildOAuthUrl.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/buildOAuthUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAUvE,KAAK,QAAQ,GAAG;IACd;KACC;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IAEd,4CAA4C;IAC5C,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF;GACG;
|
|
1
|
+
{"version":3,"file":"buildOAuthUrl.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/buildOAuthUrl/buildOAuthUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAUvE,KAAK,QAAQ,GAAG;IACd;KACC;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IAEd,4CAA4C;IAC5C,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF;GACG;AAEH,eAAO,MAAM,aAAa,SAElB,WAAW,YAGP,YAAY,KACrB,OAAO,CAAC,QAAQ,CAgDlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeDynamicOauthParamsFromUrl.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts"],"names":[],"mappings":"AAAA,wBAAwB;
|
|
1
|
+
{"version":3,"file":"removeDynamicOauthParamsFromUrl.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts"],"names":[],"mappings":"AAAA,wBAAwB;AAExB,eAAO,MAAM,+BAA+B,QAAS,MAAM,WAO1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeScopes.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"normalizeScopes.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,eAAe,WAAY,MAAM,EAAE,KAAG,MAAM,EAExD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseElevatedAccessToken.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"parseElevatedAccessToken.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,wBAAwB,UAC5B,MAAM,QACR,IAAI,KACR,yBAAyB,GAAG,IAgC9B,CAAC"}
|
package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts
CHANGED
|
@@ -1,18 +1,46 @@
|
|
|
1
1
|
import type { Chain } from '../../chain';
|
|
2
|
-
import type { CheckoutTransaction } from '../checkout.types';
|
|
3
|
-
|
|
2
|
+
import type { CheckoutSupportedExchangeProvider, CheckoutTransaction } from '../checkout.types';
|
|
3
|
+
type AttachCheckoutTransactionSourceWalletParams = {
|
|
4
|
+
/** The address of the user's wallet. */
|
|
4
5
|
fromAddress: string;
|
|
6
|
+
/** The network id for the token that the user is paying with. */
|
|
5
7
|
fromChainId: string;
|
|
8
|
+
/** The chain name of the user's wallet. */
|
|
6
9
|
fromChainName: Chain;
|
|
10
|
+
/** @defaultValue `'wallet'` */
|
|
11
|
+
sourceType?: 'wallet';
|
|
7
12
|
transactionId: string;
|
|
8
13
|
};
|
|
14
|
+
type AttachCheckoutTransactionSourceExchangeParams = {
|
|
15
|
+
/**
|
|
16
|
+
* The exchange provider key (e.g. `'coinbase'`).
|
|
17
|
+
* The backend uses this to look up the exchange configuration,
|
|
18
|
+
* generate a buy URL, and create the exchange source record.
|
|
19
|
+
*/
|
|
20
|
+
exchangeProvider: CheckoutSupportedExchangeProvider;
|
|
21
|
+
sourceType: 'exchange';
|
|
22
|
+
transactionId: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Parameters for {@link attachCheckoutTransactionSource}.
|
|
26
|
+
*
|
|
27
|
+
* This is a discriminated union on `sourceType`:
|
|
28
|
+
* - `'wallet'` (default) — requires `fromAddress`, `fromChainId`, `fromChainName`
|
|
29
|
+
* - `'exchange'` — requires `exchangeProvider`
|
|
30
|
+
*/
|
|
31
|
+
export type AttachCheckoutTransactionSourceParams = AttachCheckoutTransactionSourceWalletParams | AttachCheckoutTransactionSourceExchangeParams;
|
|
9
32
|
/**
|
|
10
|
-
* Attaches a
|
|
33
|
+
* Attaches a payment source to a checkout transaction.
|
|
34
|
+
*
|
|
35
|
+
* For exchange sources, the backend generates the buy URL and creates the
|
|
36
|
+
* exchange source record. The response includes `exchangeSource.metadata.url`
|
|
37
|
+
* which can be embedded in an iframe for the user to complete payment.
|
|
11
38
|
*
|
|
12
39
|
* @param params AttachCheckoutTransactionSourceParams - The source details to attach.
|
|
13
40
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
14
|
-
* @returns The updated checkout transaction
|
|
15
|
-
|
|
41
|
+
* @returns The updated checkout transaction (with exchangeSource if sourceType is 'exchange')
|
|
42
|
+
* @instrumented
|
|
16
43
|
*/
|
|
17
|
-
export declare const attachCheckoutTransactionSource: (
|
|
44
|
+
export declare const attachCheckoutTransactionSource: (params: AttachCheckoutTransactionSourceParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
|
|
45
|
+
export {};
|
|
18
46
|
//# sourceMappingURL=attachCheckoutTransactionSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EACV,iCAAiC,EACjC,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAG3B,KAAK,2CAA2C,GAAG;IACjD,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,aAAa,EAAE,KAAK,CAAC;IACrB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,6CAA6C,GAAG;IACnD;;;;OAIG;IACH,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qCAAqC,GAC7C,2CAA2C,GAC3C,6CAA6C,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+BAA+B,WAClC,qCAAqC,wDAE5C,OAAO,CAAC,mBAAmB,CA0B7B,CAAC"}
|
package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts
CHANGED
|
@@ -2,12 +2,20 @@ import type { CheckoutTransaction } from '@dynamic-labs/sdk-api-core';
|
|
|
2
2
|
import type { DynamicClient } from '../../../client/types';
|
|
3
3
|
export type BroadcastCheckoutTransactionParams = {
|
|
4
4
|
transactionId: string;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The on-chain transaction hash. Required for wallet sources, optional
|
|
7
|
+
* for exchange sources (the user may not have it).
|
|
8
|
+
*/
|
|
9
|
+
txHash?: string;
|
|
6
10
|
};
|
|
7
11
|
/**
|
|
8
|
-
* Records
|
|
12
|
+
* Records that a checkout transaction has been broadcasted.
|
|
9
13
|
*
|
|
10
|
-
*
|
|
14
|
+
* For wallet sources, pass the `txHash` from the on-chain transaction.
|
|
15
|
+
* For exchange sources, `txHash` can be omitted — the user confirms
|
|
16
|
+
* they completed the payment and the transaction moves to `broadcasted`.
|
|
17
|
+
*
|
|
18
|
+
* @param params BroadcastCheckoutTransactionParams - The transaction ID and optional tx hash.
|
|
11
19
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
20
|
* @returns The updated checkout transaction
|
|
13
21
|
* @instrumented
|
package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broadcastCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"broadcastCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,8BACZ,kCAAkC,WACrD,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAU7B,CAAC"}
|
|
@@ -4,4 +4,5 @@ export type CheckoutExecutionState = `${CheckoutExecutionStateEnum}`;
|
|
|
4
4
|
export type CheckoutSettlementState = `${CheckoutSettlementStateEnum}`;
|
|
5
5
|
export type CheckoutRiskState = `${CheckoutRiskStateEnum}`;
|
|
6
6
|
export type CheckoutSourceType = `${CheckoutSourceTypeEnum}`;
|
|
7
|
+
export type CheckoutSupportedExchangeProvider = 'coinbase';
|
|
7
8
|
//# sourceMappingURL=checkout.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.types.d.ts","sourceRoot":"","sources":["../../../src/modules/checkout/checkout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,MAAM,sBAAsB,GAAG,GAAG,0BAA0B,EAAE,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,GAAG,2BAA2B,EAAE,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,GAAG,qBAAqB,EAAE,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,GAAG,sBAAsB,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"checkout.types.d.ts","sourceRoot":"","sources":["../../../src/modules/checkout/checkout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,MAAM,sBAAsB,GAAG,GAAG,0BAA0B,EAAE,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,GAAG,2BAA2B,EAAE,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,GAAG,qBAAqB,EAAE,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,GAAG,sBAAsB,EAAE,CAAC;AAE7D,MAAM,MAAM,iCAAiC,GAAG,UAAU,CAAC"}
|
|
@@ -2,10 +2,14 @@ export type TrackCheckoutTransactionParams = {
|
|
|
2
2
|
transactionId: string;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
* Subscribes to realtime
|
|
5
|
+
* Subscribes to realtime `checkoutTransactionExecutionStateChanged` and
|
|
6
|
+
* `checkoutTransactionSettlementStateChanged` events for an existing
|
|
7
|
+
* checkout transaction.
|
|
6
8
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
+
* This is only needed after a page refresh to re-establish the subscription.
|
|
10
|
+
* Transactions created with {@link createCheckoutTransaction} are automatically
|
|
11
|
+
* subscribed — calling this again for those is unnecessary unless the page
|
|
12
|
+
* has been reloaded.
|
|
9
13
|
*
|
|
10
14
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
11
15
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,sBAChB,8BAA8B,wDAEhD,OAAO,CAAC,IAAI,CAA8D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCheckoutSessionTokenStorageKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts"],"names":[],"mappings":"AAIA,wBAAwB;
|
|
1
|
+
{"version":3,"file":"createCheckoutSessionTokenStorageKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts"],"names":[],"mappings":"AAIA,wBAAwB;AAExB,eAAO,MAAM,oCAAoC,kBAAmB,MAAM,oEAKzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeToCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"subscribeToCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,OAAO,cAAc,CAAC;AAgBtB,MAAM,MAAM,oCAAoC,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AAEH,eAAO,MAAM,8BAA8B,sBACtB,oCAAoC,UAC/C,aAAa,KACpB,OAAO,CAAC,IAAI,CA4Dd,CAAC"}
|
package/dist/modules/instrumentation/setInstrumentationEnabled/setInstrumentationEnabled.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setInstrumentationEnabled.d.ts","sourceRoot":"","sources":["../../../../src/modules/instrumentation/setInstrumentationEnabled/setInstrumentationEnabled.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"setInstrumentationEnabled.d.ts","sourceRoot":"","sources":["../../../../src/modules/instrumentation/setInstrumentationEnabled/setInstrumentationEnabled.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;;GAOG;AAEH,eAAO,MAAM,yBAAyB,YAC3B,OAAO,WACR,aAAa,SAGtB,CAAC"}
|
package/dist/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyMigrationError.d.ts","sourceRoot":"","sources":["../../../../src/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,iBAAkB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"KeyMigrationError.d.ts","sourceRoot":"","sources":["../../../../src/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,iBAAkB,SAAQ,SAAS;gBAElC,iBAAiB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM;CASjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shouldFilterWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWallet/shouldFilterWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAWhC,CAAC;AAEF;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"shouldFilterWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWallet/shouldFilterWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAWhC,CAAC;AAEF;;;;;;;GAOG;AAEH,eAAO,MAAM,kBAAkB,cAClB,MAAM,UACT,YAAY,KACnB,OAkCF,CAAC"}
|
|
@@ -11,7 +11,6 @@ export type SendEmailOTPParams = {
|
|
|
11
11
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
12
|
* @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
|
|
13
13
|
* @instrumented
|
|
14
|
-
|
|
15
14
|
* @redact-params
|
|
16
15
|
*/
|
|
17
16
|
export declare const sendEmailOTP: ({ email }: SendEmailOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAazB,CAAC"}
|
|
@@ -12,7 +12,6 @@ export type SendSmsOTPParams = {
|
|
|
12
12
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
13
13
|
* @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
|
|
14
14
|
* @instrumented
|
|
15
|
-
|
|
16
15
|
* @redact-params
|
|
17
16
|
*/
|
|
18
17
|
export declare const sendSmsOTP: ({ isoCountryCode, phoneNumber }: SendSmsOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAiBzB,CAAC"}
|
|
@@ -14,7 +14,6 @@ type UpdateUserParams = {
|
|
|
14
14
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
15
|
* @returns A promise that resolves to OTP verification details if verification is required, or undefined.
|
|
16
16
|
* @instrumented
|
|
17
|
-
|
|
18
17
|
* @redact-params
|
|
19
18
|
*/
|
|
20
19
|
export declare const updateUser: ({ userFields }: UpdateUserParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/updateUser/updateUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/updateUser/updateUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,mBACL,gBAAgB,wDAE/B,OAAO,CAAC,eAAe,GAAG,SAAS,CA4BrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAQzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,kBACZ,sBAAsB,UAC7B,aAAa,
|
|
1
|
+
{"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAQzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,kBACZ,sBAAsB,UAC7B,aAAa,wBAuBtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,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,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,
|
|
1
|
+
{"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,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,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAqX7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWaasChainNameFromChain.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,wBAAwB;
|
|
1
|
+
{"version":3,"file":"getWaasChainNameFromChain.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,wBAAwB;AAExB,eAAO,MAAM,yBAAyB,UAAW,KAAK,KAAG,MAExD,CAAC"}
|
package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBaseNetworkProvider.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACZ,MAAM,0CAA0C,CAAC;AAElD,oBAAoB;
|
|
1
|
+
{"version":3,"file":"createBaseNetworkProvider.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACZ,MAAM,0CAA0C,CAAC;AAElD,oBAAoB;AAEpB,eAAO,MAAM,yBAAyB,GAAI,MAAM,SAAS,KAAK,iBACrD,MAAM,eACA,WAAW,KACvB,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,YAAY,CAW/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSdkChainFromApiChainName.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C;;;GAGG;
|
|
1
|
+
{"version":3,"file":"getSdkChainFromApiChainName.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C;;;GAGG;AAEH,eAAO,MAAM,2BAA2B,cAC3B,MAAM,KAChB,KAAK,GAAG,IAQV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertWalletProviderMethodDefined.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/assertWalletProviderMethodDefined/assertWalletProviderMethodDefined.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAEhF;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"assertWalletProviderMethodDefined.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/assertWalletProviderMethodDefined/assertWalletProviderMethodDefined.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAEhF;;;;;;;;;;;;;;;GAeG;AAEH,wBAAgB,iCAAiC,CAC/C,CAAC,SAAS,MAAM,cAAc,EAE9B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,CAAC,GACZ,OAAO,CAAC,cAAc,IAAI,cAAc,GACzC,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAOlC"}
|
package/dist/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllProvidersFromWindow.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"getAllProvidersFromWindow.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,yBAAyB,GAAI,CAAC,kBAAkB,MAAM,KAAG,CAAC,EAmCtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInjectedProviderFromWindow.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.ts"],"names":[],"mappings":"AACA,wBAAwB;
|
|
1
|
+
{"version":3,"file":"getInjectedProviderFromWindow.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.ts"],"names":[],"mappings":"AACA,wBAAwB;AAExB,eAAO,MAAM,6BAA6B,GAAI,CAAC,kBACvC,MAAM,KACX,CAAC,GAAG,IA4BN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSameAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/isSameAddress/isSameAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,wBAAwB;
|
|
1
|
+
{"version":3,"file":"isSameAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/isSameAddress/isSameAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,wBAAwB;AAExB,eAAO,MAAM,aAAa,SAAU,MAAM,SAAS,MAAM,SAAS,KAAK,YACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/normalizeAddress/normalizeAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,wBAAwB;
|
|
1
|
+
{"version":3,"file":"normalizeAddress.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/utils/normalizeAddress/normalizeAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,wBAAwB;AAExB,eAAO,MAAM,gBAAgB,YAAa,MAAM,SAAS,KAAK,WAmB7D,CAAC"}
|
package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitWalletProviderKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIhE,KAAK,4BAA4B,GAAG;IAClC,6BAA6B,EAAE,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,wBAAwB;
|
|
1
|
+
{"version":3,"file":"splitWalletProviderKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIhE,KAAK,4BAA4B,GAAG;IAClC,6BAA6B,EAAE,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,wBAAwB;AAExB,eAAO,MAAM,sBAAsB,sBACd,MAAM,KACxB,4BAmBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/createInstrumentation/createInstrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EAGtB,MAAM,0BAA0B,CAAC;AAElC,KAAK,2BAA2B,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACzC,CAAC;
|
|
1
|
+
{"version":3,"file":"createInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/createInstrumentation/createInstrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EAGtB,MAAM,0BAA0B,CAAC;AAElC,KAAK,2BAA2B,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACzC,CAAC;AASF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,qBAAqB,8BAE/B,2BAA2B,KAAQ,eA0BrC,CAAC"}
|
package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractParams.d.ts","sourceRoot":"","sources":["../../../../../src/services/instrumentation/instrumentFunction/extractParams/extractParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;
|
|
1
|
+
{"version":3,"file":"extractParams.d.ts","sourceRoot":"","sources":["../../../../../src/services/instrumentation/instrumentFunction/extractParams/extractParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,aAAa,SAAU,OAAO,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAuBrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyNotFoundError.d.ts","sourceRoot":"","sources":["../../../../src/services/keychain/createIndexedDBKeychainService/KeyNotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,gBAAiB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"KeyNotFoundError.d.ts","sourceRoot":"","sources":["../../../../src/services/keychain/createIndexedDBKeychainService/KeyNotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,gBAAiB,SAAQ,SAAS;gBAEjC,OAAO,EAAE,MAAM;CAS5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIndexedDBKeychainService.d.ts","sourceRoot":"","sources":["../../../../src/services/keychain/createIndexedDBKeychainService/createIndexedDBKeychainService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,KAAK,oCAAoC,GAAG;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,oBAAoB;AACpB,eAAO,MAAM,8BAA8B,YAChC,oCAAoC,KAC5C,
|
|
1
|
+
{"version":3,"file":"createIndexedDBKeychainService.d.ts","sourceRoot":"","sources":["../../../../src/services/keychain/createIndexedDBKeychainService/createIndexedDBKeychainService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,KAAK,oCAAoC,GAAG;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,oBAAoB;AACpB,eAAO,MAAM,8BAA8B,YAChC,oCAAoC,KAC5C,eAmIF,CAAC"}
|
package/dist/services/keychain/createIndexedDBKeychainService/utils/deleteIndexedDBItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/deleteIndexedDBItem.ts"],"names":[],"mappings":"AAEA,wBAAwB;
|
|
1
|
+
{"version":3,"file":"deleteIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/deleteIndexedDBItem.ts"],"names":[],"mappings":"AAEA,wBAAwB;AAExB,eAAO,MAAM,mBAAmB,OAC1B,WAAW,WACN,MAAM,KACd,OAAO,CAAC,IAAI,CAQX,CAAC"}
|
package/dist/services/keychain/createIndexedDBKeychainService/utils/getIndexedDBItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/getIndexedDBItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAwB;
|
|
1
|
+
{"version":3,"file":"getIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/getIndexedDBItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAwB;AAExB,eAAO,MAAM,gBAAgB,OACvB,WAAW,WACN,MAAM,KACd,OAAO,CAAC,SAAS,GAAG,SAAS,CAQ5B,CAAC"}
|
package/dist/services/keychain/createIndexedDBKeychainService/utils/setIndexedDBItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/setIndexedDBItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAwB;
|
|
1
|
+
{"version":3,"file":"setIndexedDBItem.d.ts","sourceRoot":"","sources":["../../../../../src/services/keychain/createIndexedDBKeychainService/utils/setIndexedDBItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAwB;AAExB,eAAO,MAAM,gBAAgB,OACvB,WAAW,SACR,SAAS,KACf,OAAO,CAAC,IAAI,CAQX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLogger.d.ts","sourceRoot":"","sources":["../../../../src/services/logger/createLogger/createLogger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAsB,MAAM,iBAAiB,CAAC;AAE5E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAAa,mBAAmB,KAAQ,
|
|
1
|
+
{"version":3,"file":"createLogger.d.ts","sourceRoot":"","sources":["../../../../src/services/logger/createLogger/createLogger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAsB,MAAM,iBAAiB,CAAC;AAE5E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAAa,mBAAmB,KAAQ,MAmDhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRealtimeService.d.ts","sourceRoot":"","sources":["../../../../src/services/realtime/createRealtimeService/createRealtimeService.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAIV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAgB3B;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB,QAAO,
|
|
1
|
+
{"version":3,"file":"createRealtimeService.d.ts","sourceRoot":"","sources":["../../../../src/services/realtime/createRealtimeService/createRealtimeService.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAIV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAgB3B;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB,QAAO,eA8LxC,CAAC"}
|
|
@@ -38,6 +38,7 @@ export type RealtimeChannelSchema<T> = {
|
|
|
38
38
|
export type RealtimeService = {
|
|
39
39
|
connect: (params: {
|
|
40
40
|
client: DynamicClient;
|
|
41
|
+
headers?: Record<string, string>;
|
|
41
42
|
}) => Promise<void>;
|
|
42
43
|
disconnect: () => void;
|
|
43
44
|
getConnectionState: () => RealtimeConnectionState;
|