@dynamic-labs-sdk/client 1.24.1 → 1.26.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/client/core/createCore/createCore.d.ts.map +1 -1
- package/dist/client/core/types/DynamicCore.d.ts +11 -0
- package/dist/client/core/types/DynamicCore.d.ts.map +1 -1
- package/dist/core.cjs +7 -7
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +6 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +6 -6
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/CoinbaseTransferMfaFailedError.d.ts +34 -0
- package/dist/errors/CoinbaseTransferMfaFailedError.d.ts.map +1 -0
- package/dist/errors/CoinbaseTransferMfaRequiredError.d.ts +37 -0
- package/dist/errors/CoinbaseTransferMfaRequiredError.d.ts.map +1 -0
- package/dist/errors/CoinbaseTravelRuleRequiredError.d.ts +55 -0
- package/dist/errors/CoinbaseTravelRuleRequiredError.d.ts.map +1 -0
- package/dist/errors/TransactionBroadcastError.d.ts +44 -0
- package/dist/errors/TransactionBroadcastError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +2 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +9 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +3 -1
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/exports/waasCore.d.ts +1 -1
- package/dist/exports/waasCore.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-nLBIQ_5p.native.esm.js → getNetworkProviderFromNetworkId-C5GtE2ef.native.esm.js} +29 -4
- package/dist/getNetworkProviderFromNetworkId-C5GtE2ef.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CIcatN8-.cjs → getNetworkProviderFromNetworkId-CSxvdrc9.cjs} +32 -2
- package/dist/{getNetworkProviderFromNetworkId-CYONf9-8.esm.js.map → getNetworkProviderFromNetworkId-CSxvdrc9.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CYONf9-8.esm.js → getNetworkProviderFromNetworkId-D7lIOS6I.esm.js} +27 -3
- package/dist/getNetworkProviderFromNetworkId-D7lIOS6I.esm.js.map +1 -0
- package/dist/{getSignedSessionId-B2kslh_k.esm.js → getSignedSessionId-B5Dijw-8.native.esm.js} +12 -3
- package/dist/{getSignedSessionId-DV0hK3Tu.native.esm.js.map → getSignedSessionId-B5Dijw-8.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DV0hK3Tu.native.esm.js → getSignedSessionId-BiL9k0nE.esm.js} +3 -3
- package/dist/getSignedSessionId-BiL9k0nE.esm.js.map +1 -0
- package/dist/{getSignedSessionId-NZ8ndqG1.cjs → getSignedSessionId-CpcQiZTF.cjs} +17 -2
- package/dist/getSignedSessionId-CpcQiZTF.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-DzKZXm5S.cjs → getWalletProviderByKey-BMJ9TcjM.cjs} +2 -2
- package/dist/{getWalletProviderByKey-DzKZXm5S.cjs.map → getWalletProviderByKey-BMJ9TcjM.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-DPZP397j.native.esm.js → getWalletProviderByKey-CBIrILYZ.native.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-DPZP397j.native.esm.js.map → getWalletProviderByKey-CBIrILYZ.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-Dh3JbMi6.esm.js → getWalletProviderByKey-CU8zmrf2.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-Dh3JbMi6.esm.js.map → getWalletProviderByKey-CU8zmrf2.esm.js.map} +1 -1
- package/dist/index.cjs +405 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +397 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +397 -8
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-BbhbghRE.esm.js → isDynamicWaasEnabled-CBvSRUgG.esm.js} +34 -3
- package/dist/isDynamicWaasEnabled-CBvSRUgG.esm.js.map +1 -0
- package/dist/{isDynamicWaasEnabled-BmB0lQJf.native.esm.js → isDynamicWaasEnabled-d82cX7j9.native.esm.js} +34 -3
- package/dist/isDynamicWaasEnabled-d82cX7j9.native.esm.js.map +1 -0
- package/dist/{isDynamicWaasEnabled-D2U3MRnA.cjs → isDynamicWaasEnabled-idmeju9B.cjs} +39 -2
- package/dist/isDynamicWaasEnabled-idmeju9B.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-DP0kk0tY.native.esm.js → isMfaRequiredForAction-1O_rFiPN.native.esm.js} +32 -3
- package/dist/isMfaRequiredForAction-1O_rFiPN.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-DBlmv1ew.esm.js → isMfaRequiredForAction-D1rhRlDu.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-DBlmv1ew.esm.js.map → isMfaRequiredForAction-D1rhRlDu.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-DCyorelQ.cjs → isMfaRequiredForAction-D5o4qznt.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-DCyorelQ.cjs.map → isMfaRequiredForAction-D5o4qznt.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-DygWGu6p.cjs → isUserOnboardingComplete-BfRUVwrT.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-DygWGu6p.cjs.map → isUserOnboardingComplete-BfRUVwrT.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-Ebw4x90F.native.esm.js → isUserOnboardingComplete-bR7jwdjO.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-Ebw4x90F.native.esm.js.map → isUserOnboardingComplete-bR7jwdjO.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-WzXFgdor.esm.js → isUserOnboardingComplete-k3nlisFA.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-WzXFgdor.esm.js.map → isUserOnboardingComplete-k3nlisFA.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-CzPWPaDr.cjs → migrateFromFireblocks-BcYmEZ3_.cjs} +3 -54
- package/dist/migrateFromFireblocks-BcYmEZ3_.cjs.map +1 -0
- package/dist/{migrateFromFireblocks-BkcGdF_B.esm.js → migrateFromFireblocks-Bm7eIfaa.esm.js} +4 -43
- package/dist/migrateFromFireblocks-Bm7eIfaa.esm.js.map +1 -0
- package/dist/migrateFromFireblocks-DVP5tGv_.native.esm.js +65 -0
- package/dist/migrateFromFireblocks-DVP5tGv_.native.esm.js.map +1 -0
- package/dist/modules/apiClient/utils/clientErrorMapper/clientErrorMapper.d.ts.map +1 -1
- package/dist/modules/auth/social/social.types.d.ts +1 -1
- package/dist/modules/auth/social/social.types.d.ts.map +1 -1
- package/dist/modules/funding/coinbase/coinbase.consts.d.ts +74 -0
- package/dist/modules/funding/coinbase/coinbase.consts.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/coinbase.types.d.ts +150 -1
- package/dist/modules/funding/coinbase/coinbase.types.d.ts.map +1 -1
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts +83 -0
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/index.d.ts +3 -0
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/index.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.d.ts +41 -0
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/index.d.ts +3 -0
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/index.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/index.d.ts +2 -0
- package/dist/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/index.d.ts.map +1 -0
- package/dist/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/parseCoinbaseTravelRuleMissingFields.d.ts +26 -0
- package/dist/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/parseCoinbaseTravelRuleMissingFields.d.ts.map +1 -0
- package/dist/modules/waas/broadcastWaasTransaction/broadcastWaasTransaction.d.ts +18 -0
- package/dist/modules/waas/broadcastWaasTransaction/broadcastWaasTransaction.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/createBusinessAccount/createBusinessAccount.d.ts +13 -1
- package/dist/modules/waas/businessAccounts/createBusinessAccount/createBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/getBusinessAccount/getBusinessAccount.d.ts +2 -1
- package/dist/modules/waas/businessAccounts/getBusinessAccount/getBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/listBusinessAccounts/listBusinessAccounts.d.ts +15 -2
- package/dist/modules/waas/businessAccounts/listBusinessAccounts/listBusinessAccounts.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts +32 -0
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.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/transactionBroadcastErrorMapper/transactionBroadcastErrorMapper.d.ts +8 -0
- package/dist/modules/waas/transactionBroadcastErrorMapper/transactionBroadcastErrorMapper.d.ts.map +1 -0
- package/dist/modules/waas/waas.types.d.ts +14 -0
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/index.d.ts +2 -1
- package/dist/modules/wallets/walletProviderRegistry/index.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/walletProviderRegistry.consts.d.ts +34 -0
- package/dist/modules/wallets/walletProviderRegistry/walletProviderRegistry.consts.d.ts.map +1 -0
- package/dist/modules/wallets/walletProviderRegistry/walletProviderRegistry.types.d.ts +5 -21
- package/dist/modules/wallets/walletProviderRegistry/walletProviderRegistry.types.d.ts.map +1 -1
- package/dist/services/appForeground/appForeground.types.d.ts +36 -0
- package/dist/services/appForeground/appForeground.types.d.ts.map +1 -0
- package/dist/services/appForeground/createAppForegroundSubscriber/createAppForegroundSubscriber.d.ts +12 -0
- package/dist/services/appForeground/createAppForegroundSubscriber/createAppForegroundSubscriber.d.ts.map +1 -0
- package/dist/services/appForeground/createAppForegroundSubscriber/index.d.ts +2 -0
- package/dist/services/appForeground/createAppForegroundSubscriber/index.d.ts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-B8tDJdXY.cjs → updateAuthFromVerifyResponse-CPOvKWih.cjs} +20 -26
- package/dist/updateAuthFromVerifyResponse-CPOvKWih.cjs.map +1 -0
- package/dist/{NativeModuleNotLinkedError-dFDBC524.native.esm.js → updateAuthFromVerifyResponse-CTfG6oZa.native.esm.js} +21 -56
- package/dist/updateAuthFromVerifyResponse-CTfG6oZa.native.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-C_yGmd99.esm.js → updateAuthFromVerifyResponse-CfqviWkz.esm.js} +20 -26
- package/dist/updateAuthFromVerifyResponse-CfqviWkz.esm.js.map +1 -0
- package/dist/utils/assertChainName/assertChainName.d.ts +15 -0
- package/dist/utils/assertChainName/assertChainName.d.ts.map +1 -0
- package/dist/utils/assertChainName/index.d.ts +2 -0
- package/dist/utils/assertChainName/index.d.ts.map +1 -0
- package/dist/waas.cjs +75 -35
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +75 -37
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +75 -36
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +138 -12
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +135 -9
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +351 -8
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/NativeModuleNotLinkedError-dFDBC524.native.esm.js.map +0 -1
- package/dist/consumeMfaTokenIfRequiredForAction-DdGzQwQQ.esm.js +0 -12
- package/dist/consumeMfaTokenIfRequiredForAction-DdGzQwQQ.esm.js.map +0 -1
- package/dist/consumeMfaTokenIfRequiredForAction-IsOFRL68.cjs +0 -17
- package/dist/consumeMfaTokenIfRequiredForAction-IsOFRL68.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CIcatN8-.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-nLBIQ_5p.native.esm.js.map +0 -1
- package/dist/getSignedSessionId-B2kslh_k.esm.js.map +0 -1
- package/dist/getSignedSessionId-NZ8ndqG1.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-BbhbghRE.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-BmB0lQJf.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-D2U3MRnA.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-DP0kk0tY.native.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-BkcGdF_B.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-C1yQ4dm7.native.esm.js +0 -321
- package/dist/migrateFromFireblocks-C1yQ4dm7.native.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-CzPWPaDr.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-B8tDJdXY.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-C_yGmd99.esm.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Chain } from '../../../chain';
|
|
2
|
+
import type { CoinbaseAccount } from '../coinbase.types';
|
|
3
|
+
/**
|
|
4
|
+
* Parameters for {@link getCoinbaseAccounts}: optional filters for the Coinbase accounts returned.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const params: GetCoinbaseAccountsParams = { chainName: 'EVM', networkId: 1 };
|
|
9
|
+
* ```
|
|
10
|
+
* @see getCoinbaseAccounts
|
|
11
|
+
* @see CoinbaseAccount
|
|
12
|
+
*/
|
|
13
|
+
export type GetCoinbaseAccountsParams = {
|
|
14
|
+
/**
|
|
15
|
+
* Optional chain filter
|
|
16
|
+
* @notInstrumented
|
|
17
|
+
*/
|
|
18
|
+
chainName?: Chain;
|
|
19
|
+
/**
|
|
20
|
+
* Optional network ID filter
|
|
21
|
+
*/
|
|
22
|
+
networkId?: number;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Gets the Coinbase accounts (balances) for the authenticated user.
|
|
26
|
+
*
|
|
27
|
+
* @param [params] GetCoinbaseAccountsParams - Optional filters for the accounts.
|
|
28
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
29
|
+
* @returns A promise resolving to an array of Coinbase accounts with balances.
|
|
30
|
+
* @throws {InvalidParamError} When chainName is not a valid ChainEnum value or networkId is a non-integer or negative number.
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* const accounts = await getCoinbaseAccounts({ chainName: 'EVM' });
|
|
34
|
+
* console.log(accounts[0].balances);
|
|
35
|
+
* ```
|
|
36
|
+
* @see createCoinbaseExchangeTransfer
|
|
37
|
+
* @see GetCoinbaseAccountsParams
|
|
38
|
+
* @notInstrumented
|
|
39
|
+
*/
|
|
40
|
+
export declare const getCoinbaseAccounts: (params?: GetCoinbaseAccountsParams, client?: import("../../../../exports").DynamicClient) => Promise<CoinbaseAccount[]>;
|
|
41
|
+
//# sourceMappingURL=getCoinbaseAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCoinbaseAccounts.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,YACrB,yBAAyB,2DAEjC,OAAO,CAAC,eAAe,EAAE,CAyB3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/coinbase/getCoinbaseAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CoinbaseTravelRuleMissingField } from '../../coinbase.types';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts the list of missing Travel Rule fields from a Coinbase
|
|
4
|
+
* `unknown_transfer_error` message, pairing each field with its user-facing
|
|
5
|
+
* description. Returns an empty array if the message doesn't contain a
|
|
6
|
+
* recognizable Travel Rule field list (i.e. this isn't a Travel Rule error).
|
|
7
|
+
*
|
|
8
|
+
* @param params.message - The raw `error` string from Coinbase's response body.
|
|
9
|
+
* @returns The missing fields, or an empty array if none were found.
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const missingFields = parseCoinbaseTravelRuleMissingFields({
|
|
13
|
+
* message: 'Incomplete travel rules information provided. Param: [BENEFICIARY_NAME, IS_SELF]',
|
|
14
|
+
* });
|
|
15
|
+
* // [
|
|
16
|
+
* // { name: 'BENEFICIARY_NAME', description: "The recipient's full legal name." },
|
|
17
|
+
* // { name: 'IS_SELF', description: 'Whether the destination wallet also belongs to you.' },
|
|
18
|
+
* // ]
|
|
19
|
+
* ```
|
|
20
|
+
* @see CoinbaseTravelRuleRequiredError
|
|
21
|
+
* @notInstrumented
|
|
22
|
+
*/
|
|
23
|
+
export declare const parseCoinbaseTravelRuleMissingFields: ({ message, }: {
|
|
24
|
+
message: string;
|
|
25
|
+
}) => CoinbaseTravelRuleMissingField[];
|
|
26
|
+
//# sourceMappingURL=parseCoinbaseTravelRuleMissingFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseCoinbaseTravelRuleMissingFields.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/funding/coinbase/utils/parseCoinbaseTravelRuleMissingFields/parseCoinbaseTravelRuleMissingFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAc9B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oCAAoC,iBAE9C;IACD,OAAO,EAAE,MAAM,CAAC;CACjB,KAAG,8BAA8B,EAejC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../client/types/DynamicClient';
|
|
2
|
+
import type { WalletAccount } from '../../wallets/walletAccount';
|
|
3
|
+
import type { WaasTransactionBroadcastEncoding, WaasTransactionBroadcastResult } from '../waas.types';
|
|
4
|
+
type BroadcastWaasTransactionParams = {
|
|
5
|
+
encoding: WaasTransactionBroadcastEncoding;
|
|
6
|
+
networkId: string;
|
|
7
|
+
signedTransaction: string;
|
|
8
|
+
skipPreflight?: boolean;
|
|
9
|
+
walletAccount: WalletAccount;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Broadcasts an already-signed v3 WaaS transaction through the Dynamic API.
|
|
13
|
+
*
|
|
14
|
+
* @notInstrumented
|
|
15
|
+
*/
|
|
16
|
+
export declare const broadcastWaasTransaction: ({ encoding, networkId, signedTransaction, skipPreflight, walletAccount, }: BroadcastWaasTransactionParams, client: DynamicClient) => Promise<WaasTransactionBroadcastResult>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=broadcastWaasTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcastWaasTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/broadcastWaasTransaction/broadcastWaasTransaction.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EACV,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,eAAe,CAAC;AAEvB,KAAK,8BAA8B,GAAG;IACpC,QAAQ,EAAE,gCAAgC,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,8EAOhC,8BAA8B,UACzB,aAAa,KACpB,OAAO,CAAC,8BAA8B,CA8CxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB,gDACU,eAAe,WACpD,aAAa,KACpB,OAAO,CAAC,qBAAqB,CA4B/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKpE,OAAO,KAAK,EAEV,yBAAyB,EACzB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,eAAe,GAAG;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,0FAQhC,eAAe,2DAEjB,OAAO,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CA0DhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addWalletToBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addWalletToBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,eAAe,GAAG;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,oCACJ,eAAe,WACxC,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAoB/B,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
1
2
|
import type { BusinessAccount } from '../businessAccounts.types';
|
|
2
3
|
type CreateBusinessAccountParams = {
|
|
4
|
+
/**
|
|
5
|
+
* Optional developer-supplied label for the account. Not unique — multiple
|
|
6
|
+
* accounts may share the same value — so use it to group accounts or map
|
|
7
|
+
* them to an ID in your own system (a common B2B2B2C pattern). It's metadata,
|
|
8
|
+
* never an internal key.
|
|
9
|
+
*/
|
|
10
|
+
externalRef?: string;
|
|
11
|
+
/** Arbitrary key-value metadata to store alongside the account. */
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
3
13
|
name?: string;
|
|
4
14
|
};
|
|
5
15
|
/**
|
|
@@ -7,10 +17,12 @@ type CreateBusinessAccountParams = {
|
|
|
7
17
|
*
|
|
8
18
|
* @param [params] - Optional parameters for the business account.
|
|
9
19
|
* @param [params.name] - Optional name for the business account.
|
|
20
|
+
* @param [params.externalRef] - Optional developer-supplied label (not unique; accounts may share one).
|
|
21
|
+
* @param [params.metadata] - Optional arbitrary key-value metadata.
|
|
10
22
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
11
23
|
* @returns The created business account.
|
|
12
24
|
* @notInstrumented
|
|
13
25
|
*/
|
|
14
|
-
export declare const createBusinessAccount: (params?: CreateBusinessAccountParams, client?:
|
|
26
|
+
export declare const createBusinessAccount: (params?: CreateBusinessAccountParams, client?: DynamicClient) => Promise<BusinessAccount>;
|
|
15
27
|
export {};
|
|
16
28
|
//# sourceMappingURL=createBusinessAccount.d.ts.map
|
package/dist/modules/waas/businessAccounts/createBusinessAccount/createBusinessAccount.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/createBusinessAccount/createBusinessAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/createBusinessAccount/createBusinessAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,KAAK,2BAA2B,GAAG;IACjC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,YACvB,2BAA2B,WAC5B,aAAa,KACpB,OAAO,CAAC,eAAe,CAczB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
1
2
|
import type { BusinessAccountDetail } from '../businessAccounts.types';
|
|
2
3
|
type GetBusinessAccountParams = {
|
|
3
4
|
businessAccountId: string;
|
|
@@ -10,6 +11,6 @@ type GetBusinessAccountParams = {
|
|
|
10
11
|
* @returns The business account with its members, signers, and wallets.
|
|
11
12
|
* @notInstrumented
|
|
12
13
|
*/
|
|
13
|
-
export declare const getBusinessAccount: ({ businessAccountId }: GetBusinessAccountParams, client?:
|
|
14
|
+
export declare const getBusinessAccount: ({ businessAccountId }: GetBusinessAccountParams, client?: DynamicClient) => Promise<BusinessAccountDetail>;
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=getBusinessAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/getBusinessAccount/getBusinessAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBusinessAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/getBusinessAccount/getBusinessAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,wBAAwB,GAAG;IAC9B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,0BACN,wBAAwB,WACvC,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAU/B,CAAC"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
1
2
|
import type { BusinessAccountList } from '../businessAccounts.types';
|
|
3
|
+
type ListBusinessAccountsParams = {
|
|
4
|
+
/**
|
|
5
|
+
* Filter to business accounts whose `externalRef` is one of these values.
|
|
6
|
+
* externalRef is not unique, so each value may match multiple accounts —
|
|
7
|
+
* the result is always the full array of matches (the caller is a member of).
|
|
8
|
+
*/
|
|
9
|
+
externalRefs?: string[];
|
|
10
|
+
};
|
|
2
11
|
/**
|
|
3
|
-
* Lists
|
|
12
|
+
* Lists the business accounts the current user is a member of, scoped to the
|
|
13
|
+
* active project environment. Optionally filter by `externalRefs`.
|
|
4
14
|
*
|
|
15
|
+
* @param [params] - Optional filters.
|
|
16
|
+
* @param [params.externalRefs] - Return only accounts whose externalRef is in this list.
|
|
5
17
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6
18
|
* @returns A paginated list of business accounts.
|
|
7
19
|
* @notInstrumented
|
|
8
20
|
*/
|
|
9
|
-
export declare const listBusinessAccounts: (client?:
|
|
21
|
+
export declare const listBusinessAccounts: (params?: ListBusinessAccountsParams, client?: DynamicClient) => Promise<BusinessAccountList>;
|
|
22
|
+
export {};
|
|
10
23
|
//# sourceMappingURL=listBusinessAccounts.d.ts.map
|
package/dist/modules/waas/businessAccounts/listBusinessAccounts/listBusinessAccounts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listBusinessAccounts.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccounts/listBusinessAccounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listBusinessAccounts.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccounts/listBusinessAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,KAAK,0BAA0B,GAAG;IAChC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,YACtB,0BAA0B,WAC3B,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAU7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,2BAA2B,kCACP,kBAAkB,WACzC,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAc/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,2BAA2B,8CACK,kBAAkB,WACrD,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAe/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
+
import type { BusinessAccountDetail } from '../businessAccounts.types';
|
|
3
|
+
type RemoveBusinessAccountWalletParams = {
|
|
4
|
+
businessAccountId: string;
|
|
5
|
+
walletId: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Removes a wallet from a business account (owner-/admin-only). The wallet and
|
|
9
|
+
* all its associated signer rows are detached from the account. The backend
|
|
10
|
+
* refuses to remove the last wallet on a business account.
|
|
11
|
+
*
|
|
12
|
+
* @param params.businessAccountId - The business account the wallet belongs to.
|
|
13
|
+
* @param params.walletId - The wallet to remove (`BusinessAccountWallet.id`).
|
|
14
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
|
+
* @returns The updated business account detail.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const detail = await getBusinessAccount({ businessAccountId });
|
|
20
|
+
* await removeBusinessAccountWallet({
|
|
21
|
+
* businessAccountId,
|
|
22
|
+
* walletId: detail.wallets[0].id,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see addWalletToBusinessAccount
|
|
27
|
+
* @see getBusinessAccount
|
|
28
|
+
* @notInstrumented
|
|
29
|
+
*/
|
|
30
|
+
export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountDetail>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=removeBusinessAccountWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeBusinessAccountWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,iCAAiC,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,2BAA2B,oCACL,iCAAiC,WAC1D,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAkB/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,KAAK,sCAAsC,GAAG;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gCAAgC,0CACJ,sCAAsC,WACrE,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAsB/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,oFAAoF;AACpF,KAAK,cAAc,GAAG,OAAO,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;AAElE,KAAK,qCAAqC,GAAG;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAQF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,+BAA+B,wCACL,qCAAqC,WAClE,aAAa,KACpB,OAAO,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,2BAA2B,CAAC;AAEnC,oFAAoF;AACpF,KAAK,cAAc,GAAG,OAAO,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;AAElE,KAAK,qCAAqC,GAAG;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAQF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,+BAA+B,wCACL,qCAAqC,WAClE,aAAa,KACpB,OAAO,CAAC,qBAAqB,CAe/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,uBAAuB;AACvB,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,uBAAuB;AACvB,eAAO,MAAM,gBAAgB,EAAE,gBAyE9B,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;AAMzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
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;AAMzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,uBAAuB;AACvB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YA2nB7B,CAAC"}
|
package/dist/modules/waas/transactionBroadcastErrorMapper/transactionBroadcastErrorMapper.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ErrorMapper } from '../../apiClient/apiClient.types';
|
|
2
|
+
/**
|
|
3
|
+
* Maps structured WaaS broadcast API failures to a public SDK error.
|
|
4
|
+
*
|
|
5
|
+
* @notInstrumented
|
|
6
|
+
*/
|
|
7
|
+
export declare const transactionBroadcastErrorMapper: ErrorMapper;
|
|
8
|
+
//# sourceMappingURL=transactionBroadcastErrorMapper.d.ts.map
|
package/dist/modules/waas/transactionBroadcastErrorMapper/transactionBroadcastErrorMapper.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionBroadcastErrorMapper.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/transactionBroadcastErrorMapper/transactionBroadcastErrorMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAoBnE;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,WA6C7C,CAAC"}
|
|
@@ -19,12 +19,26 @@ export type WalletCreationRequirement = {
|
|
|
19
19
|
bitcoinConfig?: WalletCreationBitcoinConfig;
|
|
20
20
|
chain: Chain;
|
|
21
21
|
};
|
|
22
|
+
export type WaasTransactionBroadcastEncoding = 'base64' | 'hex';
|
|
23
|
+
export type WaasTransactionBroadcastResult = {
|
|
24
|
+
attempts: number;
|
|
25
|
+
broadcastId: string;
|
|
26
|
+
status: 'already_known' | 'submitted';
|
|
27
|
+
transactionId: string;
|
|
28
|
+
};
|
|
22
29
|
export type WaasProvider = {
|
|
23
30
|
backupKeySharesToGoogleDrive: (args: {
|
|
24
31
|
googleDriveAccessToken?: string;
|
|
25
32
|
password?: string;
|
|
26
33
|
walletAccount: WalletAccount;
|
|
27
34
|
}) => Promise<void>;
|
|
35
|
+
broadcastTransaction: (args: {
|
|
36
|
+
encoding: WaasTransactionBroadcastEncoding;
|
|
37
|
+
networkId: string;
|
|
38
|
+
signedTransaction: string;
|
|
39
|
+
skipPreflight?: boolean;
|
|
40
|
+
walletAccount: WalletAccount;
|
|
41
|
+
}) => Promise<WaasTransactionBroadcastResult>;
|
|
28
42
|
createWalletAccount(args?: {
|
|
29
43
|
bitcoinConfig?: WalletCreationBitcoinConfig;
|
|
30
44
|
businessAccountId?: string;
|
|
@@ -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,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACpB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,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,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,IAAI,EAAE;QACrB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC,yBAAyB,EAAE,CAAC,IAAI,EAAE;QAChC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC,YAAY,EAAE,CAAC,IAAI,EAAE;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACjC,cAAc,EAAE,CAAC,IAAI,EAAE;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAC7C,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { getWalletProviderRegistry } from './getWalletProviderRegistry';
|
|
2
|
-
export { WalletProviderPriority
|
|
2
|
+
export { WalletProviderPriority } from './walletProviderRegistry.consts';
|
|
3
|
+
export type { WalletProviderRegistry, WalletProviderRegistryEntry, } from './walletProviderRegistry.types';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProviderRegistry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProviderRegistry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EACV,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Priority values used when registering a {@link WalletProvider} in the
|
|
3
|
+
* {@link WalletProviderRegistry}. Higher values are checked first when looking
|
|
4
|
+
* for a provider.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const priority = WalletProviderPriority.WALLET_SDK;
|
|
9
|
+
* ```
|
|
10
|
+
* @see WalletProviderRegistry
|
|
11
|
+
*/
|
|
12
|
+
export declare const WalletProviderPriority: {
|
|
13
|
+
/**
|
|
14
|
+
* Highest priority should be used by wallet providers that implement
|
|
15
|
+
* the most reliable wallet integration.
|
|
16
|
+
* example: The SDK provided by the wallet provider.
|
|
17
|
+
*/
|
|
18
|
+
readonly WALLET_SDK: 100;
|
|
19
|
+
/**
|
|
20
|
+
* Medium priority should be used by wallet providers that implement
|
|
21
|
+
* a wallet integration via some reliable standard.
|
|
22
|
+
* example: A wallet provider that uses EIP6963 announcement.
|
|
23
|
+
*/
|
|
24
|
+
readonly WALLET_SELF_ANNOUNCEMENT_STANDARD: 50;
|
|
25
|
+
/**
|
|
26
|
+
* Low priority should be used by wallet providers that implement
|
|
27
|
+
* a wallet integration on a less reliable standard.
|
|
28
|
+
* example: A wallet provider that uses window.ethereum, where the
|
|
29
|
+
* window key can be overridden by other extensions.
|
|
30
|
+
*/
|
|
31
|
+
readonly WINDOW_INJECT: 20;
|
|
32
|
+
};
|
|
33
|
+
export type WalletProviderPriority = (typeof WalletProviderPriority)[keyof typeof WalletProviderPriority];
|
|
34
|
+
//# sourceMappingURL=walletProviderRegistry.consts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletProviderRegistry.consts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProviderRegistry/walletProviderRegistry.consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;IACjC;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;CAEK,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { WalletProvider } from '../walletProvider/walletProvider.types';
|
|
2
|
+
import type { WalletProviderPriority } from './walletProviderRegistry.consts';
|
|
3
|
+
export type { WalletProviderPriority };
|
|
2
4
|
/**
|
|
3
5
|
* A single entry in the wallet provider registry — the registered
|
|
4
6
|
* `WalletProvider` together with the priority it was registered at. Returned
|
|
@@ -10,27 +12,9 @@ export type WalletProviderRegistryEntry = {
|
|
|
10
12
|
priority: number;
|
|
11
13
|
walletProvider: WalletProvider;
|
|
12
14
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* the most reliable wallet integration.
|
|
17
|
-
* example: The SDK provided by the wallet provider.
|
|
18
|
-
*/
|
|
19
|
-
WALLET_SDK = 100,
|
|
20
|
-
/**
|
|
21
|
-
* Medium priority should be used by wallet providers that implement
|
|
22
|
-
* a wallet integration via some reliable standard.
|
|
23
|
-
* example: A wallet provider that uses EIP6963 announcement.
|
|
24
|
-
*/
|
|
25
|
-
WALLET_SELF_ANNOUNCEMENT_STANDARD = 50,
|
|
26
|
-
/**
|
|
27
|
-
* Low priority should be used by wallet providers that implement
|
|
28
|
-
* a wallet integration on a less reliable standard.
|
|
29
|
-
* example: A wallet provider that uses window.ethereum, where the
|
|
30
|
-
* window key can be overridden by other extensions.
|
|
31
|
-
*/
|
|
32
|
-
WINDOW_INJECT = 20
|
|
33
|
-
}
|
|
15
|
+
/**
|
|
16
|
+
* Registry of wallet providers and their registration priorities.
|
|
17
|
+
*/
|
|
34
18
|
export type WalletProviderRegistry = {
|
|
35
19
|
/**
|
|
36
20
|
* Retrieves a wallet provider by its key.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletProviderRegistry.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProviderRegistry/walletProviderRegistry.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"walletProviderRegistry.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProviderRegistry/walletProviderRegistry.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,cAAc,GAAG,SAAS,CAAC;IACtD;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,2BAA2B,EAAE,CAAC;IACzD;;;OAGG;IACH,aAAa,EAAE,MAAM,cAAc,EAAE,CAAC;IACtC;;;OAGG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE;QACf,QAAQ,EAAE,sBAAsB,CAAC;QACjC,cAAc,EAAE,cAAc,CAAC;KAChC,KAAK,IAAI,CAAC;IACX;;;OAGG;IACH,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribes to "the app returned to the foreground" and returns an
|
|
3
|
+
* unsubscribe function. Used to re-check connections/state that platform
|
|
4
|
+
* focus events can't reliably signal (e.g. React Native, where
|
|
5
|
+
* `window.addEventListener('focus', …)` never fires).
|
|
6
|
+
*
|
|
7
|
+
* Both platform implementations (web and React Native) honor:
|
|
8
|
+
* - The listener is never invoked synchronously at subscribe time, even if
|
|
9
|
+
* the app is already in the foreground.
|
|
10
|
+
* - It fires only on the transition INTO the foreground -- never for the
|
|
11
|
+
* already-foregrounded initial state, and never for a transition away
|
|
12
|
+
* from the foreground.
|
|
13
|
+
* - Registering the same listener reference twice results in it firing
|
|
14
|
+
* twice per transition; there is no de-duplication.
|
|
15
|
+
* - The returned unsubscribe function is safe to call more than once.
|
|
16
|
+
*
|
|
17
|
+
* Deliberately shaped as a single subscribe-and-return-unsubscribe function
|
|
18
|
+
* rather than the `on`/`off` pair used by the `logger` and
|
|
19
|
+
* `crossTabBroadcast` core services -- there is exactly one event to
|
|
20
|
+
* observe here, so an event-name/emitter shape would add indirection
|
|
21
|
+
* without buying anything. Do not "consistency-fix" this to `on`/`off`;
|
|
22
|
+
* existing consumers rely on the returned unsubscribe function.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const unsubscribe = subscribeToAppForeground(() => {
|
|
27
|
+
* console.log('App returned to the foreground');
|
|
28
|
+
* });
|
|
29
|
+
* // Later, when no longer needed:
|
|
30
|
+
* unsubscribe();
|
|
31
|
+
* ```
|
|
32
|
+
* @see createAppForegroundSubscriber
|
|
33
|
+
* @see DynamicCore
|
|
34
|
+
*/
|
|
35
|
+
export type SubscribeToAppForeground = (listener: () => void) => () => void;
|
|
36
|
+
//# sourceMappingURL=appForeground.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appForeground.types.d.ts","sourceRoot":"","sources":["../../../src/services/appForeground/appForeground.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC"}
|
package/dist/services/appForeground/createAppForegroundSubscriber/createAppForegroundSubscriber.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SubscribeToAppForeground } from '../appForeground.types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a subscriber for "the app returned to the foreground" events.
|
|
4
|
+
*
|
|
5
|
+
* This is the default (web) implementation. React Native builds resolve
|
|
6
|
+
* `createAppForegroundSubscriber.native.ts` instead, which uses `AppState`
|
|
7
|
+
* since there is no `document` on device.
|
|
8
|
+
*
|
|
9
|
+
* @notInstrumented
|
|
10
|
+
*/
|
|
11
|
+
export declare const createAppForegroundSubscriber: () => SubscribeToAppForeground;
|
|
12
|
+
//# sourceMappingURL=createAppForegroundSubscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAppForegroundSubscriber.d.ts","sourceRoot":"","sources":["../../../../src/services/appForeground/createAppForegroundSubscriber/createAppForegroundSubscriber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,QAAO,wBA+BhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/appForeground/createAppForegroundSubscriber/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|