@dynamic-labs-sdk/client 1.32.0 → 1.33.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/{apiClient-Bwd6cllS.native.esm.js → apiClient-BbjPoAwE.native.esm.js} +46 -13
- package/dist/apiClient-BbjPoAwE.native.esm.js.map +1 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/core.cjs +97 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +78 -6
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +80 -8
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/UnexpectedConsentResponseError.d.ts +7 -0
- package/dist/errors/UnexpectedConsentResponseError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +10 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +2 -0
- 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/{getNetworkProviderFromNetworkId-5UBZwUg2.cjs → getNetworkProviderFromNetworkId-BXoTukxv.cjs} +105 -82
- package/dist/getNetworkProviderFromNetworkId-BXoTukxv.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DSsGkava.native.esm.js → getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js} +112 -89
- package/dist/getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-TTqmAiJh.esm.js → getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js} +106 -83
- package/dist/getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js.map +1 -0
- package/dist/{getSignedSessionId-DBUnRGjt.cjs → getSignedSessionId-2O_cJtIV.cjs} +3 -3
- package/dist/{getSignedSessionId-DBUnRGjt.cjs.map → getSignedSessionId-2O_cJtIV.cjs.map} +1 -1
- package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js → getSignedSessionId-Bk-8is5J.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-BkYhH1zc.native.esm.js.map → getSignedSessionId-Bk-8is5J.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DeeDyino.esm.js → getSignedSessionId-D_TknHwX.esm.js} +3 -3
- package/dist/{getSignedSessionId-DeeDyino.esm.js.map → getSignedSessionId-D_TknHwX.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js → getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js.map → getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs → getVerifiedCredentialForWalletAccount-upiwolAi.cjs} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs.map → getVerifiedCredentialForWalletAccount-upiwolAi.cjs.map} +1 -1
- package/dist/index.cjs +379 -638
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +375 -635
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +377 -637
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js → isMfaRequiredForAction-CHqeZeTS.esm.js} +3 -9
- package/dist/{isMfaRequiredForAction-BPEXPqSt.esm.js.map → isMfaRequiredForAction-CHqeZeTS.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js → isMfaRequiredForAction-D7b7mUT9.native.esm.js} +3 -9
- package/dist/{isMfaRequiredForAction-DfrEFvU2.native.esm.js.map → isMfaRequiredForAction-D7b7mUT9.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-62zh3W-2.cjs → isMfaRequiredForAction-DF65MJNN.cjs} +3 -9
- package/dist/{isMfaRequiredForAction-62zh3W-2.cjs.map → isMfaRequiredForAction-DF65MJNN.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-DtxIznZD.cjs → isUserOnboardingComplete-BAL-3zu7.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-DtxIznZD.cjs.map → isUserOnboardingComplete-BAL-3zu7.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js → isUserOnboardingComplete-CYpgo52t.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-BWrCHXXO.native.esm.js.map → isUserOnboardingComplete-CYpgo52t.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js → isUserOnboardingComplete-CpHVw8ee.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-Dmck83_2.esm.js.map → isUserOnboardingComplete-CpHVw8ee.esm.js.map} +1 -1
- package/dist/{logoutWithReason-DIc7cC6T.native.esm.js → logoutWithReason-Bd1qUh7l.native.esm.js} +3 -9
- package/dist/{logoutWithReason-DIc7cC6T.native.esm.js.map → logoutWithReason-Bd1qUh7l.native.esm.js.map} +1 -1
- package/dist/{logoutWithReason-yDqQ0UIt.cjs → logoutWithReason-CFjm8dbR.cjs} +58 -19
- package/dist/logoutWithReason-CFjm8dbR.cjs.map +1 -0
- package/dist/{logoutWithReason-x8mE7EAy.esm.js → logoutWithReason-CX9hGTPw.esm.js} +47 -20
- package/dist/logoutWithReason-CX9hGTPw.esm.js.map +1 -0
- package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js → migrateFromFireblocks-BLz9aHOY.native.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-BUhWQCqm.native.esm.js.map → migrateFromFireblocks-BLz9aHOY.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-qYPrnWF8.cjs → migrateFromFireblocks-BiZmnKp9.cjs} +2 -2
- package/dist/{migrateFromFireblocks-qYPrnWF8.cjs.map → migrateFromFireblocks-BiZmnKp9.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-BapjEhra.esm.js → migrateFromFireblocks-C8KXMXk-.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-BapjEhra.esm.js.map → migrateFromFireblocks-C8KXMXk-.esm.js.map} +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseAccounts/getCoinbaseAccounts.d.ts +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +95 -0
- package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +11 -4
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +15 -6
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +7 -3
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +115 -2
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts +27 -0
- package/dist/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/parseGovernedResponse.d.ts +34 -0
- package/dist/modules/waas/businessAccounts/parseGovernedResponse.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts +4 -3
- package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts +4 -3
- package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts +4 -3
- package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts +4 -3
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +16 -8
- package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/waas.types.d.ts +5 -2
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts +42 -0
- package/dist/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +7 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts +27 -0
- package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +4 -0
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts +3 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts +35 -0
- package/dist/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.d.ts.map +1 -0
- package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +7 -0
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
- package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts.map +1 -1
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts +27 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/getUriConnectionStarterChains.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts +2 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterChains/index.d.ts.map +1 -0
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +6 -5
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
- package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts +2 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/index.d.ts.map +1 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts +19 -0
- package/dist/services/instrumentation/resolveInstrumentationCore/resolveInstrumentationCore.d.ts.map +1 -0
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +4 -3
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts.map +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/isScreeningBlockedError/index.d.ts +2 -0
- package/dist/utils/isScreeningBlockedError/index.d.ts.map +1 -0
- package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts +24 -0
- package/dist/utils/isScreeningBlockedError/isScreeningBlockedError.d.ts.map +1 -0
- package/dist/{waas-DzcYsWU8.esm.js → waas-DjgZ-ghV.esm.js} +163 -32
- package/dist/waas-DjgZ-ghV.esm.js.map +1 -0
- package/dist/{waas-WID2Fy_N.cjs → waas-G-4JvdgJ.cjs} +167 -30
- package/dist/waas-G-4JvdgJ.cjs.map +1 -0
- package/dist/{waas-CyUrvkQr.native.esm.js → waas-oKD6ZDP9.native.esm.js} +163 -32
- package/dist/waas-oKD6ZDP9.native.esm.js.map +1 -0
- package/dist/waas.cjs +5 -4
- package/dist/waas.esm.js +5 -5
- package/dist/waas.native.esm.js +5 -5
- package/dist/waasCore.cjs +8 -6
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +8 -6
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +8 -6
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +6 -5
- package/dist/apiClient-Bwd6cllS.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-5UBZwUg2.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DSsGkava.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-TTqmAiJh.esm.js.map +0 -1
- package/dist/logoutWithReason-x8mE7EAy.esm.js.map +0 -1
- package/dist/logoutWithReason-yDqQ0UIt.cjs.map +0 -1
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +0 -18
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts.map +0 -1
- package/dist/waas-CyUrvkQr.native.esm.js.map +0 -1
- package/dist/waas-DzcYsWU8.esm.js.map +0 -1
- package/dist/waas-WID2Fy_N.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessAccounts.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/businessAccounts/businessAccounts.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG;IACpD,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,4BAA4B,EAAE,CAAC;CAC1C,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"businessAccounts.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/businessAccounts/businessAccounts.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAA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AAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;KACpC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/B,kBAAkB,EAAE,CAAC,MAAM,EAAE;QAC3B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACrC,oBAAoB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/isBusinessAccountActionRequired/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BusinessAccountActionRequired } from '../businessAccounts.types';
|
|
2
|
+
/**
|
|
3
|
+
* Narrows a governed mutation's result to the not-yet-authorized case.
|
|
4
|
+
*
|
|
5
|
+
* A governed action answers 202 with the bytes to sign, or with the proposal
|
|
6
|
+
* collecting approvals — neither is an error, so both come back as a value. Use
|
|
7
|
+
* this to tell them apart from the applied result.
|
|
8
|
+
*
|
|
9
|
+
* @param result - What a governed business-account mutation returned.
|
|
10
|
+
* @returns True when the action still needs a signature or approvals.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const result = await addWalletToBusinessAccount({ walletId });
|
|
15
|
+
* if (isBusinessAccountActionRequired(result)) {
|
|
16
|
+
* await signIntent(result.intent);
|
|
17
|
+
* return;
|
|
18
|
+
* }
|
|
19
|
+
* console.log(result.members.length);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link BusinessAccountActionRequired} for the shape this narrows to.
|
|
23
|
+
* @see {@link addWalletToBusinessAccount} for a governed mutation that can return it.
|
|
24
|
+
* @notInstrumented
|
|
25
|
+
*/
|
|
26
|
+
export declare const isBusinessAccountActionRequired: <T extends object>(result: BusinessAccountActionRequired | T) => result is BusinessAccountActionRequired;
|
|
27
|
+
//# sourceMappingURL=isBusinessAccountActionRequired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBusinessAccountActionRequired.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/isBusinessAccountActionRequired/isBusinessAccountActionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,MAAM,UACtD,6BAA6B,GAAG,CAAC,KACxC,MAAM,IAAI,6BAG8B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BusinessAccountActionRequired } from './businessAccounts.types';
|
|
2
|
+
type ParseGovernedResponseParams = {
|
|
3
|
+
fnName: string;
|
|
4
|
+
response: Response;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Reads a governed mutation's 202 body off the raw response, narrowed on
|
|
8
|
+
* `reason` + `intent` rather than cast outright: a malformed or unrecognized
|
|
9
|
+
* body would otherwise pass through as action-required, and the caller would
|
|
10
|
+
* sign or wait on data that does not exist.
|
|
11
|
+
*
|
|
12
|
+
* Shared by every governed business-account mutation, since the generated
|
|
13
|
+
* 200 mapper cannot run over this body — it assumes the ungoverned success
|
|
14
|
+
* shape and throws or returns garbage instead.
|
|
15
|
+
*
|
|
16
|
+
* @param params.fnName - The calling function's name, named in the thrown error.
|
|
17
|
+
* @param params.response - The raw fetch `Response` carrying the 202 body.
|
|
18
|
+
* @returns The governed-pending result: the intent to sign, or the proposal collecting approvals.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* if (response.raw.status === 202) {
|
|
23
|
+
* return parseGovernedResponse({ fnName: 'addBusinessAccountMember', response: response.raw });
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see addBusinessAccountMember
|
|
28
|
+
* @see removeBusinessAccountWallet
|
|
29
|
+
* @throws {UnexpectedConsentResponseError} When the 202 body has no recognized reason or no intent.
|
|
30
|
+
* @notInstrumented
|
|
31
|
+
*/
|
|
32
|
+
export declare const parseGovernedResponse: ({ fnName, response, }: ParseGovernedResponseParams) => Promise<BusinessAccountActionRequired>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=parseGovernedResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseGovernedResponse.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/businessAccounts/parseGovernedResponse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE9E,KAAK,2BAA2B,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,qBAAqB,0BAG/B,2BAA2B,KAAG,OAAO,CAAC,6BAA6B,CAYrE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountMember } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountMember } from '../businessAccounts.types';
|
|
3
3
|
type RemoveMemberParams = {
|
|
4
4
|
businessAccountId: string;
|
|
5
5
|
userId: string;
|
|
@@ -12,7 +12,7 @@ type RemoveMemberParams = {
|
|
|
12
12
|
* @param params.businessAccountId - The business account to remove the member from.
|
|
13
13
|
* @param params.userId - The id of the user to remove.
|
|
14
14
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
|
-
* @returns The removed member.
|
|
15
|
+
* @returns The removed member, or the outstanding action required.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -26,8 +26,9 @@ type RemoveMemberParams = {
|
|
|
26
26
|
*
|
|
27
27
|
* @see addBusinessAccountMember
|
|
28
28
|
* @see getBusinessAccount
|
|
29
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
29
30
|
* @notInstrumented
|
|
30
31
|
*/
|
|
31
|
-
export declare const removeBusinessAccountMember: ({ businessAccountId, userId }: RemoveMemberParams, client?: DynamicClient) => Promise<BusinessAccountMember>;
|
|
32
|
+
export declare const removeBusinessAccountMember: ({ businessAccountId, userId }: RemoveMemberParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
|
|
32
33
|
export {};
|
|
33
34
|
//# sourceMappingURL=removeBusinessAccountMember.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,2BAA2B,kCACP,kBAAkB,WACzC,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAyB/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountSigner } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountSigner } from '../businessAccounts.types';
|
|
3
3
|
type RemoveSignerParams = {
|
|
4
4
|
businessAccountId: string;
|
|
5
5
|
signerId: string;
|
|
@@ -15,7 +15,7 @@ type RemoveSignerParams = {
|
|
|
15
15
|
* @param params.walletId - The wallet the signer is attached to.
|
|
16
16
|
* @param params.signerId - The id of the signer to remove (`BusinessAccountSigner.id`).
|
|
17
17
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
18
|
-
* @returns The removed signer.
|
|
18
|
+
* @returns The removed signer, or the outstanding action required.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
@@ -30,8 +30,9 @@ type RemoveSignerParams = {
|
|
|
30
30
|
*
|
|
31
31
|
* @see addBusinessAccountSigner
|
|
32
32
|
* @see getBusinessAccount
|
|
33
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
33
34
|
* @notInstrumented
|
|
34
35
|
*/
|
|
35
|
-
export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountSigner>;
|
|
36
|
+
export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountSigner>;
|
|
36
37
|
export {};
|
|
37
38
|
//# sourceMappingURL=removeBusinessAccountSigner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,2BAA2B,8CACK,kBAAkB,WACrD,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA0B/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountDetail } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
|
|
3
3
|
type RemoveBusinessAccountWalletParams = {
|
|
4
4
|
businessAccountId: string;
|
|
5
5
|
walletId: string;
|
|
@@ -12,7 +12,7 @@ type RemoveBusinessAccountWalletParams = {
|
|
|
12
12
|
* @param params.businessAccountId - The business account the wallet belongs to.
|
|
13
13
|
* @param params.walletId - The wallet to remove (`BusinessAccountWallet.id`).
|
|
14
14
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
|
-
* @returns The updated business account detail.
|
|
15
|
+
* @returns The updated business account detail, or the outstanding action required.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -25,8 +25,9 @@ type RemoveBusinessAccountWalletParams = {
|
|
|
25
25
|
*
|
|
26
26
|
* @see addWalletToBusinessAccount
|
|
27
27
|
* @see getBusinessAccount
|
|
28
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
28
29
|
* @notInstrumented
|
|
29
30
|
*/
|
|
30
|
-
export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountDetail>;
|
|
31
|
+
export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
31
32
|
export {};
|
|
32
33
|
//# sourceMappingURL=removeBusinessAccountWallet.d.ts.map
|
|
@@ -1 +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,
|
|
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,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,iCAAiC,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,2BAA2B,oCACL,iCAAiC,WAC1D,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA+B/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type { BusinessAccountDetail } from '../businessAccounts.types';
|
|
2
|
+
import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
|
|
3
3
|
type TransferBusinessAccountOwnershipParams = {
|
|
4
4
|
businessAccountId: string;
|
|
5
5
|
newOwnerUserId: string;
|
|
@@ -12,7 +12,7 @@ type TransferBusinessAccountOwnershipParams = {
|
|
|
12
12
|
* @param params.businessAccountId - The business account whose ownership moves.
|
|
13
13
|
* @param params.newOwnerUserId - The member to promote to owner.
|
|
14
14
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
15
|
-
* @returns The updated business account detail.
|
|
15
|
+
* @returns The updated business account detail, or the outstanding action required.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
@@ -25,8 +25,9 @@ type TransferBusinessAccountOwnershipParams = {
|
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* @see getBusinessAccount
|
|
28
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
28
29
|
* @notInstrumented
|
|
29
30
|
*/
|
|
30
|
-
export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountDetail>;
|
|
31
|
+
export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
|
|
31
32
|
export {};
|
|
32
33
|
//# sourceMappingURL=transferBusinessAccountOwnership.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,sCAAsC,GAAG;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gCAAgC,0CACJ,sCAAsC,WACrE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAmC/D,CAAC"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import type { DynamicClient } from '../../../../client/types';
|
|
2
|
-
import type {
|
|
3
|
-
/**
|
|
4
|
-
|
|
2
|
+
import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, BusinessAccountMember } from '../businessAccounts.types';
|
|
3
|
+
/**
|
|
4
|
+
* Roles a member can be reassigned to: a built-in other than owner, or one this
|
|
5
|
+
* account defined. Ownership moves only via transferOwnership, which the API
|
|
6
|
+
* refuses `owner` to enforce — the open branch cannot express that exclusion.
|
|
7
|
+
*/
|
|
8
|
+
type AssignableRole = Exclude<BuiltInBusinessAccountMemberRole, 'owner'> | (string & {});
|
|
5
9
|
type UpdateBusinessAccountMemberRoleParams = {
|
|
6
10
|
businessAccountId: string;
|
|
7
11
|
role: AssignableRole;
|
|
8
12
|
userId: string;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
|
-
* Changes an existing member's role
|
|
12
|
-
*
|
|
15
|
+
* Changes an existing member's role (owner-/admin-only) to any role the account
|
|
16
|
+
* defines — a built-in or a custom one, including from one custom role to
|
|
17
|
+
* another. Owner is not assignable here — use
|
|
18
|
+
* `transferBusinessAccountOwnership` for that.
|
|
13
19
|
*
|
|
14
20
|
* @param params.businessAccountId - The business account the member belongs to.
|
|
15
21
|
* @param params.userId - The member whose role changes.
|
|
16
|
-
* @param params.role - The new role (`admin
|
|
22
|
+
* @param params.role - The new role: a built-in (`admin`, `viewer`) or a role
|
|
23
|
+
* this account defined.
|
|
17
24
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
18
|
-
* @returns The updated business account member.
|
|
25
|
+
* @returns The updated business account member, or the outstanding action required.
|
|
19
26
|
*
|
|
20
27
|
* @example
|
|
21
28
|
* ```ts
|
|
@@ -28,8 +35,9 @@ type UpdateBusinessAccountMemberRoleParams = {
|
|
|
28
35
|
*
|
|
29
36
|
* @see transferBusinessAccountOwnership
|
|
30
37
|
* @see addBusinessAccountMember
|
|
38
|
+
* @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
|
|
31
39
|
* @notInstrumented
|
|
32
40
|
*/
|
|
33
|
-
export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountMember>;
|
|
41
|
+
export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
|
|
34
42
|
export {};
|
|
35
43
|
//# sourceMappingURL=updateBusinessAccountMemberRole.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC;;;;GAIG;AACH,KAAK,cAAc,GACf,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,GAClD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,KAAK,qCAAqC,GAAG;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,+BAA+B,wCACL,qCAAqC,WAClE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA6B/D,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;AAOzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAQzC,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,
|
|
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;AAOzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAQzC,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,YAqxB7B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import type { Chain } from '../chain';
|
|
|
6
6
|
import type { LogoutReason } from '../auth/logoutReason';
|
|
7
7
|
import type { BaseWalletAccount, WalletAccount } from '../wallets/walletAccount';
|
|
8
8
|
import type { WalletProvider } from '../wallets/walletProvider';
|
|
9
|
-
import type { BusinessAccountSignerType, TargetIdentity } from './businessAccounts/businessAccounts.types';
|
|
9
|
+
import type { BusinessAccountActionRequired, BusinessAccountMutationIntent, BusinessAccountSignerType, TargetIdentity } from './businessAccounts/businessAccounts.types';
|
|
10
10
|
export type { ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
11
11
|
/**
|
|
12
12
|
* Contains the share sets returned for a WaaS wallet account.
|
|
@@ -144,6 +144,9 @@ export type WaasProvider = {
|
|
|
144
144
|
}) => Promise<void>;
|
|
145
145
|
reshareToNewSignerShareSet: (args: {
|
|
146
146
|
businessAccountId: string;
|
|
147
|
+
/** Signed proposal for a governed addSigner; opens the proposal. */
|
|
148
|
+
intent?: BusinessAccountMutationIntent;
|
|
149
|
+
intentSignature?: string;
|
|
147
150
|
password?: string;
|
|
148
151
|
signerType?: BusinessAccountSignerType;
|
|
149
152
|
targetSignerIdentity: TargetIdentity;
|
|
@@ -151,7 +154,7 @@ export type WaasProvider = {
|
|
|
151
154
|
walletAccount: WalletAccount;
|
|
152
155
|
}) => Promise<{
|
|
153
156
|
shareSetId: string;
|
|
154
|
-
}>;
|
|
157
|
+
} | BusinessAccountActionRequired>;
|
|
155
158
|
restoreUserShareForWalletAccount: (args: {
|
|
156
159
|
walletAccount: WalletAccount;
|
|
157
160
|
}) => Promise<void>;
|
|
@@ -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;AAClE,OAAO,KAAK,EACV,uBAAuB,IAAI,6BAA6B,EACxD,YAAY,IAAI,kBAAkB,EACnC,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACf,MAAM,2CAA2C,CAAC;AAEnD,YAAY,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE9C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AAEpE;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,KAAK,GAAG,KAAK,IACxD,iBAAiB,CAAC,MAAM,CAAC,GAAG;IAC1B,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2HAA2H;IAC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,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC;QAAE,SAAS,EAAE,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { DynamicClient } from '../../../client/types/DynamicClient';
|
|
2
|
+
import type { Chain } from '../../chain';
|
|
3
|
+
import type { WalletBookSchema } from '../../legacyWalletBook/legacyWalletBook.types';
|
|
4
|
+
import type { ConnectionOptionForWalletOption } from '../groupOptionsByWalletOption/groupOptionsByWalletOption';
|
|
5
|
+
import type { WalletConnectionOption } from '../walletOptionsCatalogue.types';
|
|
6
|
+
type BuildWalletBookConnectionOptionsParams = {
|
|
7
|
+
enabledChains: Set<Chain>;
|
|
8
|
+
excludedConnectionOptionTypes: Set<WalletConnectionOption['type']>;
|
|
9
|
+
walletBook: WalletBookSchema;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Builds every wallet-book-sourced connection option — WalletConnect,
|
|
13
|
+
* MetaMask SDK URI and in-app browser — narrowed to the chains this client
|
|
14
|
+
* has an extension for.
|
|
15
|
+
*
|
|
16
|
+
* Each URI-deeplink discriminator has its own builder with its own
|
|
17
|
+
* eligibility filter (WalletConnect requires `sign_v2`; MetaMask SDK URI
|
|
18
|
+
* does not), so excluding one discriminator never gates the other.
|
|
19
|
+
*
|
|
20
|
+
* WalletConnect options are emitted only on the chains with a registered
|
|
21
|
+
* `walletConnect` URI connection starter.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const options = buildWalletBookConnectionOptions(
|
|
26
|
+
* { enabledChains, excludedConnectionOptionTypes: new Set(), walletBook },
|
|
27
|
+
* client
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param params.enabledChains - Chains the client has an extension for.
|
|
32
|
+
* @param params.excludedConnectionOptionTypes - Connection types to drop.
|
|
33
|
+
* @param params.walletBook - The fetched wallet book.
|
|
34
|
+
* @param client - The Dynamic client instance.
|
|
35
|
+
* @returns Tagged wallet-book options paired with their wallet option keys.
|
|
36
|
+
* @see getWalletOptionsCatalogue
|
|
37
|
+
* @see filterConnectionOptionsByEnabledChains
|
|
38
|
+
* @notInstrumented
|
|
39
|
+
*/
|
|
40
|
+
export declare const buildWalletBookConnectionOptions: ({ enabledChains, excludedConnectionOptionTypes, walletBook, }: BuildWalletBookConnectionOptionsParams, client: DynamicClient) => ConnectionOptionForWalletOption[];
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=buildWalletBookConnectionOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildWalletBookConnectionOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletBookConnectionOptions/buildWalletBookConnectionOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAMtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0DAA0D,CAAC;AAChH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,KAAK,sCAAsC,GAAG;IAC5C,aAAa,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1B,6BAA6B,EAAE,GAAG,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,gCAAgC,kEAKxC,sCAAsC,UACjC,aAAa,KACpB,+BAA+B,EA2BjC,CAAC"}
|
package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { Chain } from '../../chain';
|
|
1
2
|
import type { WalletBookSchema } from '../../legacyWalletBook/legacyWalletBook.types';
|
|
2
3
|
import type { ConnectionOptionForWalletOption } from '../groupOptionsByWalletOption/groupOptionsByWalletOption';
|
|
3
4
|
type BuildWalletConnectOptionsParams = {
|
|
4
5
|
walletBook: WalletBookSchema;
|
|
6
|
+
walletConnectChains: Set<Chain>;
|
|
5
7
|
};
|
|
6
8
|
/**
|
|
7
9
|
* Builds the `walletConnect`-discriminator catalogue options from a fetched
|
|
@@ -17,10 +19,14 @@ type BuildWalletConnectOptionsParams = {
|
|
|
17
19
|
* discriminator via `excludedConnectionOptionTypes` doesn't accidentally
|
|
18
20
|
* gate the other.
|
|
19
21
|
*
|
|
22
|
+
* Chains a wallet book entry advertises without a registered WalletConnect
|
|
23
|
+
* starter are filtered out.
|
|
24
|
+
*
|
|
20
25
|
* @param params.walletBook - The fetched wallet book.
|
|
26
|
+
* @param params.walletConnectChains - Chains with a registered `walletConnect` URI connection starter.
|
|
21
27
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
22
28
|
* @notInstrumented
|
|
23
29
|
*/
|
|
24
|
-
export declare const buildWalletConnectOptions: ({ walletBook, }: BuildWalletConnectOptionsParams) => ConnectionOptionForWalletOption[];
|
|
30
|
+
export declare const buildWalletConnectOptions: ({ walletBook, walletConnectChains, }: BuildWalletConnectOptionsParams) => ConnectionOptionForWalletOption[];
|
|
25
31
|
export {};
|
|
26
32
|
//# sourceMappingURL=buildWalletConnectOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildWalletConnectOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildWalletConnectOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0DAA0D,CAAC;AAGhH,KAAK,+BAA+B,GAAG;IACrC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,mBAAmB,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,yBAAyB,yCAGnC,+BAA+B,KAAG,+BAA+B,EA0CnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildWalletOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"buildWalletOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kEAAkE,CAAC;AAE1H,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAEzC,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,2FAM3B,uBAAuB,KAAG,YA6B5B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Chain } from '../../chain';
|
|
2
|
+
import type { WalletConnectionOption } from '../walletOptionsCatalogue.types';
|
|
3
|
+
type DeriveSupportedChainsParams = {
|
|
4
|
+
connectionOptions: WalletConnectionOption[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Derives the chains a wallet option can be connected on from its connection
|
|
8
|
+
* options, deduped and sorted alphabetically so the order is stable
|
|
9
|
+
* regardless of how the connection options rank.
|
|
10
|
+
*
|
|
11
|
+
* Install-only wallet options have no connection options, so they support no
|
|
12
|
+
* chain until the wallet is installed.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const supportedChains = deriveSupportedChains({ connectionOptions });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param params.connectionOptions - The wallet option's connection options.
|
|
20
|
+
* @returns The chains supported by the wallet option.
|
|
21
|
+
* @see buildWalletOption
|
|
22
|
+
* @see WalletOption
|
|
23
|
+
* @notInstrumented
|
|
24
|
+
*/
|
|
25
|
+
export declare const deriveSupportedChains: ({ connectionOptions, }: DeriveSupportedChainsParams) => Chain[];
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=deriveSupportedChains.d.ts.map
|
package/dist/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deriveSupportedChains.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/deriveSupportedChains/deriveSupportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,2BAE/B,2BAA2B,KAAG,KAAK,EAQrC,CAAC"}
|
package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ import type { GetWalletOptionsCatalogueParams, WalletOptionsCatalogue } from '..
|
|
|
9
9
|
* client has an extension for — a wallet is only surfaced on chains the
|
|
10
10
|
* customer can actually connect on.
|
|
11
11
|
*
|
|
12
|
+
* WalletConnect surfaces require a registered `walletConnect` URI
|
|
13
|
+
* connection starter, so they only appear once a chain extension that can
|
|
14
|
+
* mint a WalletConnect URI is added to the client.
|
|
15
|
+
*
|
|
12
16
|
* Pass `excludedConnectionOptionTypes` to drop specific connection types
|
|
13
17
|
* from the catalogue (e.g. `['inAppBrowser']` on desktop). Wallets whose
|
|
14
18
|
* only connection was an excluded type fall through to the install-only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CAsEhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/isWalletExtensionInstalled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,YAAY,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { WalletOption } from '../walletOptionsCatalogue.types';
|
|
2
|
+
/**
|
|
3
|
+
* Parameters for {@link isWalletExtensionInstalled}.
|
|
4
|
+
*
|
|
5
|
+
* @description Describes the wallet option whose provider connections are inspected.
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* isWalletExtensionInstalled({ walletOption });
|
|
9
|
+
* ```
|
|
10
|
+
* @see isWalletExtensionInstalled
|
|
11
|
+
* @see WalletOption
|
|
12
|
+
*/
|
|
13
|
+
export type IsWalletExtensionInstalledParams = {
|
|
14
|
+
walletOption: WalletOption;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Returns true when the wallet option has any `withWalletProvider` connection
|
|
18
|
+
* option, meaning the wallet is available in the page through a browser
|
|
19
|
+
* extension, Wallet Standard announcement, window injection, or an SDK-backed
|
|
20
|
+
* provider registered by a chain extension.
|
|
21
|
+
*
|
|
22
|
+
* @description Detects whether a wallet option is available through a provider
|
|
23
|
+
* registered in the page.
|
|
24
|
+
* @param params.walletOption - The wallet option to inspect.
|
|
25
|
+
* @returns True when the wallet is available in the page.
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const isInstalled = isWalletExtensionInstalled({ walletOption });
|
|
29
|
+
* ```
|
|
30
|
+
* @see getWalletOptionsCatalogue
|
|
31
|
+
* @see WalletOption
|
|
32
|
+
* @notInstrumented
|
|
33
|
+
*/
|
|
34
|
+
export declare const isWalletExtensionInstalled: ({ walletOption, }: IsWalletExtensionInstalledParams) => boolean;
|
|
35
|
+
//# sourceMappingURL=isWalletExtensionInstalled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isWalletExtensionInstalled.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/isWalletExtensionInstalled/isWalletExtensionInstalled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,sBAEpC,gCAAgC,KAAG,OAGnC,CAAC"}
|
|
@@ -12,7 +12,7 @@ type SortWalletOptionsParams = {
|
|
|
12
12
|
* - `'relevance'` (default): bucket wallet options into three tiers, in
|
|
13
13
|
* this order:
|
|
14
14
|
* 1. **Installed provider** — user already has the wallet available
|
|
15
|
-
* (`withWalletProvider`
|
|
15
|
+
* (any `withWalletProvider` connection option).
|
|
16
16
|
* 2. **Connectable** — has at least one connection (URI deeplink
|
|
17
17
|
* or `inAppBrowser`) but no installed provider.
|
|
18
18
|
* 3. **Install-only** — no connection at all; only `installationUrls`.
|
|
@@ -126,6 +126,13 @@ export type WalletOption = {
|
|
|
126
126
|
name: string;
|
|
127
127
|
/** Brand color in hex (e.g. `"#f6851b"`). */
|
|
128
128
|
primaryColor?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Chains this wallet can be connected on, deduped from
|
|
131
|
+
* `connectionOptions` and sorted alphabetically. Empty for install-only
|
|
132
|
+
* wallet options, which carry no connection option until the wallet is
|
|
133
|
+
* installed.
|
|
134
|
+
*/
|
|
135
|
+
supportedChains: Chain[];
|
|
129
136
|
};
|
|
130
137
|
/**
|
|
131
138
|
* Controls how wallet options are ordered in the returned catalogue.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC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AC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE;QACT,gDAAgD;QAChD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,4DAA4D;QAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B,kCAAkC,GAClC,2BAA2B,GAC3B,4BAA4B,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;OAKG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,eAAe,EAAE,KAAK,EAAE,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;;;;;;;OASG;IACH,6BAA6B,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;IACjE;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,YAAY,EAAE,CAAC"}
|
package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveWalletConnectionOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AAGxG,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,6BAA6B,yBAClB,mCAAmC,UACjD,aAAa,KACpB,OAAO,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"resolveWalletConnectionOption.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AAGxG,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,6BAA6B,yBAClB,mCAAmC,UACjD,aAAa,KACpB,OAAO,CAAC,sBAAsB,CAmDhC,CAAC"}
|