@dynamic-labs-sdk/client 1.16.1 → 1.17.1
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/core.cjs +53 -53
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +5 -5
- package/dist/core.native.esm.js +5 -5
- package/dist/exports/index.d.ts +2 -2
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +2 -1
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/exports/waasCore.d.ts +3 -2
- package/dist/exports/waasCore.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-D79icjmX.native.esm.js → getNetworkProviderFromNetworkId-Bfg-NkNJ.native.esm.js} +12 -4
- package/dist/getNetworkProviderFromNetworkId-Bfg-NkNJ.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-BHxkTbiJ.cjs → getNetworkProviderFromNetworkId-CS4r9hi7.cjs} +43 -44
- package/dist/{getNetworkProviderFromNetworkId-BHxkTbiJ.cjs.map → getNetworkProviderFromNetworkId-CS4r9hi7.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-BPeOK1Xx.esm.js → getNetworkProviderFromNetworkId-pknqqhk1.esm.js} +2 -3
- package/dist/{getNetworkProviderFromNetworkId-BPeOK1Xx.esm.js.map → getNetworkProviderFromNetworkId-pknqqhk1.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DzjHW7Rw.esm.js → getSignedSessionId-CUw7LJ35.esm.js} +3 -3
- package/dist/{getSignedSessionId-DzjHW7Rw.esm.js.map → getSignedSessionId-CUw7LJ35.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-Dh4Df1mY.native.esm.js → getSignedSessionId-Cl3PEqa8.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-Dh4Df1mY.native.esm.js.map → getSignedSessionId-Cl3PEqa8.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-BjSUL8Br.cjs → getSignedSessionId-cMGkmojJ.cjs} +11 -11
- package/dist/{getSignedSessionId-BjSUL8Br.cjs.map → getSignedSessionId-cMGkmojJ.cjs.map} +1 -1
- package/dist/getWalletProviderByKey-24co0tBE.native.esm.js +20 -0
- package/dist/getWalletProviderByKey-24co0tBE.native.esm.js.map +1 -0
- package/dist/getWalletProviderByKey-CP9Te5Sz.cjs +31 -0
- package/dist/getWalletProviderByKey-CP9Te5Sz.cjs.map +1 -0
- package/dist/getWalletProviderByKey-lQVfIGFi.esm.js +20 -0
- package/dist/getWalletProviderByKey-lQVfIGFi.esm.js.map +1 -0
- package/dist/index.cjs +560 -541
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +29 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +29 -28
- package/dist/index.native.esm.js.map +1 -1
- package/dist/isDynamicWaasEnabled-BXe0VyI4.native.esm.js +70 -0
- package/dist/isDynamicWaasEnabled-BXe0VyI4.native.esm.js.map +1 -0
- package/dist/isDynamicWaasEnabled-BYaqAOml.esm.js +70 -0
- package/dist/isDynamicWaasEnabled-BYaqAOml.esm.js.map +1 -0
- package/dist/isDynamicWaasEnabled-BwP1oowd.cjs +88 -0
- package/dist/isDynamicWaasEnabled-BwP1oowd.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-3fWX5MEF.cjs → isMfaRequiredForAction-Btejc5g3.cjs} +38 -29
- package/dist/isMfaRequiredForAction-Btejc5g3.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-CkX6CfJf.esm.js → isMfaRequiredForAction-CqEcCTIe.esm.js} +11 -2
- package/dist/isMfaRequiredForAction-CqEcCTIe.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-CBW-d9C6.native.esm.js → isMfaRequiredForAction-Demz9zlH.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CBW-d9C6.native.esm.js.map → isMfaRequiredForAction-Demz9zlH.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-D0JrQGvR.cjs → isUserOnboardingComplete-C86NDY7I.cjs} +13 -13
- package/dist/{isUserOnboardingComplete-D0JrQGvR.cjs.map → isUserOnboardingComplete-C86NDY7I.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-C4_b3pDb.esm.js → isUserOnboardingComplete-CBrAH0ZF.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-C4_b3pDb.esm.js.map → isUserOnboardingComplete-CBrAH0ZF.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-m6E6GbB0.native.esm.js → isUserOnboardingComplete-Cr-YTpcU.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-m6E6GbB0.native.esm.js.map → isUserOnboardingComplete-Cr-YTpcU.native.esm.js.map} +1 -1
- package/dist/migrateFromFireblocks-B_q8Oawb.cjs +82 -0
- package/dist/migrateFromFireblocks-B_q8Oawb.cjs.map +1 -0
- package/dist/migrateFromFireblocks-Bbx2wHZD.esm.js +65 -0
- package/dist/migrateFromFireblocks-Bbx2wHZD.esm.js.map +1 -0
- package/dist/migrateFromFireblocks-D-J6-gRo.native.esm.js +65 -0
- package/dist/migrateFromFireblocks-D-J6-gRo.native.esm.js.map +1 -0
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/migrateFromFireblocks/index.d.ts +2 -0
- package/dist/modules/waas/migrateFromFireblocks/index.d.ts.map +1 -0
- package/dist/modules/waas/migrateFromFireblocks/migrateFromFireblocks.d.ts +52 -0
- package/dist/modules/waas/migrateFromFireblocks/migrateFromFireblocks.d.ts.map +1 -0
- package/dist/modules/waas/waas.types.d.ts +9 -1
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/events.d.ts +2 -1
- package/dist/modules/wallets/walletProviderRegistry/events.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{InvalidParamError-DCpeZMBr.cjs → updateAuthFromVerifyResponse-CElYpi97.cjs} +291 -9
- package/dist/updateAuthFromVerifyResponse-CElYpi97.cjs.map +1 -0
- package/dist/{InvalidParamError-5AXtm6Zp.native.esm.js → updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js} +457 -4
- package/dist/updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js.map +1 -0
- package/dist/{InvalidParamError-PQ2Xen_o.esm.js → updateAuthFromVerifyResponse-azIi_3FB.esm.js} +237 -3
- package/dist/updateAuthFromVerifyResponse-azIi_3FB.esm.js.map +1 -0
- package/dist/waas.cjs +53 -67
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +5 -20
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +5 -20
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +40 -23
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +23 -7
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +23 -7
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/InvalidParamError-5AXtm6Zp.native.esm.js.map +0 -1
- package/dist/InvalidParamError-DCpeZMBr.cjs.map +0 -1
- package/dist/InvalidParamError-PQ2Xen_o.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-D79icjmX.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-BxyUZBpT.cjs +0 -19
- package/dist/getWaasWalletProviderFromWalletAccount-BxyUZBpT.cjs.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-Ca0SiNEz.native.esm.js +0 -14
- package/dist/getWaasWalletProviderFromWalletAccount-Ca0SiNEz.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-CupLo7EC.esm.js +0 -14
- package/dist/getWaasWalletProviderFromWalletAccount-CupLo7EC.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-B6vtKHJy.esm.js +0 -255
- package/dist/getWalletProviderByKey-B6vtKHJy.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-DIFBlGlR.cjs +0 -321
- package/dist/getWalletProviderByKey-DIFBlGlR.cjs.map +0 -1
- package/dist/getWalletProviderByKey-Dh2qnBmw.native.esm.js +0 -474
- package/dist/getWalletProviderByKey-Dh2qnBmw.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-A8Humh0r.cjs +0 -49
- package/dist/isDynamicWaasEnabled-A8Humh0r.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-BmWqrgz1.esm.js +0 -37
- package/dist/isDynamicWaasEnabled-BmWqrgz1.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-Djp4QuBw.native.esm.js +0 -37
- package/dist/isDynamicWaasEnabled-Djp4QuBw.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-3fWX5MEF.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-CkX6CfJf.esm.js.map +0 -1
- package/dist/refreshAuth-BKeW1dSq.cjs +0 -43
- package/dist/refreshAuth-BKeW1dSq.cjs.map +0 -1
- package/dist/refreshAuth-Cykyxvpz.native.esm.js +0 -38
- package/dist/refreshAuth-Cykyxvpz.native.esm.js.map +0 -1
- package/dist/refreshAuth-LzA2xxNC.esm.js +0 -38
- package/dist/refreshAuth-LzA2xxNC.esm.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { A as NoWalletProviderFoundError, f as getWalletProviders } from "./updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
|
|
4
|
+
/** @notInstrumented */
|
|
5
|
+
const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
|
|
6
|
+
return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
|
|
11
|
+
/** @notInstrumented */
|
|
12
|
+
const getWalletProviderByKey = ({ walletProviderKey }, client) => {
|
|
13
|
+
const walletProvider = getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
|
|
14
|
+
if (!walletProvider) throw new NoWalletProviderFoundError({ walletProviderKey });
|
|
15
|
+
return walletProvider;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getVerifiedCredentialForWalletAccount as n, getWalletProviderByKey as t };
|
|
20
|
+
//# sourceMappingURL=getWalletProviderByKey-24co0tBE.native.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWalletProviderByKey-24co0tBE.native.esm.js","names":["walletProvider"],"sources":["../src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts","../src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts"],"sourcesContent":["import type { DynamicClient } from '../../../../client/types/DynamicClient';\nimport type { WalletAccount } from '../../walletAccount';\n\ntype GetVerifiedCredentialForWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getVerifiedCredentialForWalletAccount = (\n { walletAccount }: GetVerifiedCredentialForWalletAccountParams,\n client: DynamicClient\n) => {\n return client.user?.verifiedCredentials.find(\n (vc) => vc.id === walletAccount.verifiedCredentialId\n );\n};\n","import type { DynamicClient } from '../../../client/types';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { getWalletProviders } from '../getWalletProviders';\n\ntype GetWalletProviderByKeyParams = {\n walletProviderKey: string;\n};\n\n/** @notInstrumented */\nexport const getWalletProviderByKey = (\n { walletProviderKey }: GetWalletProviderByKeyParams,\n client: DynamicClient\n) => {\n const walletProviders = getWalletProviders(client);\n\n const walletProvider = walletProviders.find(\n (walletProvider) => walletProvider.key === walletProviderKey\n );\n\n if (!walletProvider) {\n throw new NoWalletProviderFoundError({ walletProviderKey });\n }\n\n return walletProvider;\n};\n"],"mappings":";;;;AAQA,MAAa,yCACX,EAAE,iBACF,WACG;AACH,QAAO,OAAO,MAAM,oBAAoB,MACrC,OAAO,GAAG,OAAO,cAAc,qBACjC;;;;;;ACLH,MAAa,0BACX,EAAE,qBACF,WACG;CAGH,MAAM,iBAFkB,mBAAmB,OAAO,CAEX,MACpC,qBAAmBA,iBAAe,QAAQ,kBAC5C;AAED,KAAI,CAAC,eACH,OAAM,IAAI,2BAA2B,EAAE,mBAAmB,CAAC;AAG7D,QAAO"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-CElYpi97.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
|
|
4
|
+
/** @notInstrumented */
|
|
5
|
+
const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
|
|
6
|
+
return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
|
|
11
|
+
/** @notInstrumented */
|
|
12
|
+
const getWalletProviderByKey = ({ walletProviderKey }, client) => {
|
|
13
|
+
const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
|
|
14
|
+
if (!walletProvider) throw new require_updateAuthFromVerifyResponse.NoWalletProviderFoundError({ walletProviderKey });
|
|
15
|
+
return walletProvider;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, 'getVerifiedCredentialForWalletAccount', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return getVerifiedCredentialForWalletAccount;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, 'getWalletProviderByKey', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return getWalletProviderByKey;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=getWalletProviderByKey-CP9Te5Sz.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWalletProviderByKey-CP9Te5Sz.cjs","names":["getWalletProviders","walletProvider","NoWalletProviderFoundError"],"sources":["../src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts","../src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts"],"sourcesContent":["import type { DynamicClient } from '../../../../client/types/DynamicClient';\nimport type { WalletAccount } from '../../walletAccount';\n\ntype GetVerifiedCredentialForWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getVerifiedCredentialForWalletAccount = (\n { walletAccount }: GetVerifiedCredentialForWalletAccountParams,\n client: DynamicClient\n) => {\n return client.user?.verifiedCredentials.find(\n (vc) => vc.id === walletAccount.verifiedCredentialId\n );\n};\n","import type { DynamicClient } from '../../../client/types';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { getWalletProviders } from '../getWalletProviders';\n\ntype GetWalletProviderByKeyParams = {\n walletProviderKey: string;\n};\n\n/** @notInstrumented */\nexport const getWalletProviderByKey = (\n { walletProviderKey }: GetWalletProviderByKeyParams,\n client: DynamicClient\n) => {\n const walletProviders = getWalletProviders(client);\n\n const walletProvider = walletProviders.find(\n (walletProvider) => walletProvider.key === walletProviderKey\n );\n\n if (!walletProvider) {\n throw new NoWalletProviderFoundError({ walletProviderKey });\n }\n\n return walletProvider;\n};\n"],"mappings":";;;;AAQA,MAAa,yCACX,EAAE,iBACF,WACG;AACH,QAAO,OAAO,MAAM,oBAAoB,MACrC,OAAO,GAAG,OAAO,cAAc,qBACjC;;;;;;ACLH,MAAa,0BACX,EAAE,qBACF,WACG;CAGH,MAAM,iBAFkBA,wDAAmB,OAAO,CAEX,MACpC,qBAAmBC,iBAAe,QAAQ,kBAC5C;AAED,KAAI,CAAC,eACH,OAAM,IAAIC,gEAA2B,EAAE,mBAAmB,CAAC;AAG7D,QAAO"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { A as NoWalletProviderFoundError, f as getWalletProviders } from "./updateAuthFromVerifyResponse-azIi_3FB.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
|
|
4
|
+
/** @notInstrumented */
|
|
5
|
+
const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
|
|
6
|
+
return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
|
|
11
|
+
/** @notInstrumented */
|
|
12
|
+
const getWalletProviderByKey = ({ walletProviderKey }, client) => {
|
|
13
|
+
const walletProvider = getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
|
|
14
|
+
if (!walletProvider) throw new NoWalletProviderFoundError({ walletProviderKey });
|
|
15
|
+
return walletProvider;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getVerifiedCredentialForWalletAccount as n, getWalletProviderByKey as t };
|
|
20
|
+
//# sourceMappingURL=getWalletProviderByKey-lQVfIGFi.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWalletProviderByKey-lQVfIGFi.esm.js","names":["walletProvider"],"sources":["../src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts","../src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts"],"sourcesContent":["import type { DynamicClient } from '../../../../client/types/DynamicClient';\nimport type { WalletAccount } from '../../walletAccount';\n\ntype GetVerifiedCredentialForWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getVerifiedCredentialForWalletAccount = (\n { walletAccount }: GetVerifiedCredentialForWalletAccountParams,\n client: DynamicClient\n) => {\n return client.user?.verifiedCredentials.find(\n (vc) => vc.id === walletAccount.verifiedCredentialId\n );\n};\n","import type { DynamicClient } from '../../../client/types';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { getWalletProviders } from '../getWalletProviders';\n\ntype GetWalletProviderByKeyParams = {\n walletProviderKey: string;\n};\n\n/** @notInstrumented */\nexport const getWalletProviderByKey = (\n { walletProviderKey }: GetWalletProviderByKeyParams,\n client: DynamicClient\n) => {\n const walletProviders = getWalletProviders(client);\n\n const walletProvider = walletProviders.find(\n (walletProvider) => walletProvider.key === walletProviderKey\n );\n\n if (!walletProvider) {\n throw new NoWalletProviderFoundError({ walletProviderKey });\n }\n\n return walletProvider;\n};\n"],"mappings":";;;;AAQA,MAAa,yCACX,EAAE,iBACF,WACG;AACH,QAAO,OAAO,MAAM,oBAAoB,MACrC,OAAO,GAAG,OAAO,cAAc,qBACjC;;;;;;ACLH,MAAa,0BACX,EAAE,qBACF,WACG;CAGH,MAAM,iBAFkB,mBAAmB,OAAO,CAEX,MACpC,qBAAmBA,iBAAe,QAAQ,kBAC5C;AAED,KAAI,CAAC,eACH,OAAM,IAAI,2BAA2B,EAAE,mBAAmB,CAAC;AAG7D,QAAO"}
|