@metamask/ramps-controller 20.2.0 → 21.0.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/CHANGELOG.md +30 -1
- package/dist/NeoBankService-method-action-types.d.ts +126 -0
- package/dist/NeoBankService-method-action-types.d.ts.map +1 -0
- package/dist/{TransakService-method-action-types.mjs → NeoBankService-method-action-types.js} +1 -1
- package/dist/NeoBankService-method-action-types.js.map +1 -0
- package/dist/NeoBankService.d.ts +191 -0
- package/dist/NeoBankService.d.ts.map +1 -0
- package/dist/NeoBankService.js +380 -0
- package/dist/NeoBankService.js.map +1 -0
- package/dist/{RampsController-method-action-types.d.mts → RampsController-method-action-types.d.ts} +93 -3
- package/dist/RampsController-method-action-types.d.ts.map +1 -0
- package/dist/{RampsController-method-action-types.mjs → RampsController-method-action-types.js} +1 -1
- package/dist/RampsController-method-action-types.js.map +1 -0
- package/dist/{RampsController.d.cts → RampsController.d.ts} +164 -17
- package/dist/RampsController.d.ts.map +1 -0
- package/dist/{RampsController.mjs → RampsController.js} +1064 -582
- package/dist/RampsController.js.map +1 -0
- package/dist/{RampsService-method-action-types.d.cts → RampsService-method-action-types.d.ts} +2 -2
- package/dist/RampsService-method-action-types.d.ts.map +1 -0
- package/dist/{RampsService-method-action-types.mjs → RampsService-method-action-types.js} +1 -1
- package/dist/RampsService-method-action-types.js.map +1 -0
- package/dist/{RampsService.d.mts → RampsService.d.ts} +5 -5
- package/dist/RampsService.d.ts.map +1 -0
- package/dist/{RampsService.mjs → RampsService.js} +159 -147
- package/dist/RampsService.js.map +1 -0
- package/dist/{RequestCache.d.cts → RequestCache.d.ts} +3 -3
- package/dist/RequestCache.d.ts.map +1 -0
- package/dist/{RequestCache.mjs → RequestCache.js} +1 -1
- package/dist/RequestCache.js.map +1 -0
- package/dist/{TransakService-method-action-types.d.cts → TransakService-method-action-types.d.ts} +2 -2
- package/dist/TransakService-method-action-types.d.ts.map +1 -0
- package/dist/TransakService-method-action-types.js +6 -0
- package/dist/TransakService-method-action-types.js.map +1 -0
- package/dist/{TransakService.d.mts → TransakService.d.ts} +6 -6
- package/dist/TransakService.d.ts.map +1 -0
- package/dist/TransakService.js +746 -0
- package/dist/TransakService.js.map +1 -0
- package/dist/autoramp-types.d.ts +22 -0
- package/dist/autoramp-types.d.ts.map +1 -0
- package/dist/autoramp-types.js +2 -0
- package/dist/autoramp-types.js.map +1 -0
- package/dist/autorampAccount.d.ts +126 -0
- package/dist/autorampAccount.d.ts.map +1 -0
- package/dist/autorampAccount.js +147 -0
- package/dist/autorampAccount.js.map +1 -0
- package/dist/{client-identity.d.cts → client-identity.d.ts} +1 -1
- package/dist/client-identity.d.ts.map +1 -0
- package/dist/{client-identity.mjs → client-identity.js} +1 -1
- package/dist/client-identity.js.map +1 -0
- package/dist/{errorNormalization.d.mts → errorNormalization.d.ts} +1 -1
- package/dist/errorNormalization.d.ts.map +1 -0
- package/dist/{errorNormalization.mjs → errorNormalization.js} +1 -1
- package/dist/errorNormalization.js.map +1 -0
- package/dist/{featureFlags.d.mts → featureFlags.d.ts} +2 -2
- package/dist/featureFlags.d.ts.map +1 -0
- package/dist/{featureFlags.mjs → featureFlags.js} +1 -1
- package/dist/featureFlags.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/{orderStatus.d.mts → orderStatus.d.ts} +2 -2
- package/dist/orderStatus.d.ts.map +1 -0
- package/dist/{orderStatus.mjs → orderStatus.js} +2 -2
- package/dist/orderStatus.js.map +1 -0
- package/dist/ownership-message.d.ts +22 -0
- package/dist/ownership-message.d.ts.map +1 -0
- package/dist/ownership-message.js +22 -0
- package/dist/ownership-message.js.map +1 -0
- package/dist/{paymentMethodMerge.d.cts → paymentMethodMerge.d.ts} +2 -2
- package/dist/paymentMethodMerge.d.ts.map +1 -0
- package/dist/{paymentMethodMerge.mjs → paymentMethodMerge.js} +1 -1
- package/dist/paymentMethodMerge.js.map +1 -0
- package/dist/{providerAvailability.d.mts → providerAvailability.d.ts} +2 -2
- package/dist/providerAvailability.d.ts.map +1 -0
- package/dist/{providerAvailability.mjs → providerAvailability.js} +1 -1
- package/dist/providerAvailability.js.map +1 -0
- package/dist/{quoteClassification.d.cts → quoteClassification.d.ts} +2 -2
- package/dist/quoteClassification.d.ts.map +1 -0
- package/dist/{quoteClassification.mjs → quoteClassification.js} +1 -1
- package/dist/quoteClassification.js.map +1 -0
- package/dist/{rampsErrorCodes.d.cts → rampsErrorCodes.d.ts} +2 -2
- package/dist/rampsErrorCodes.d.ts.map +1 -0
- package/dist/{rampsErrorCodes.mjs → rampsErrorCodes.js} +1 -1
- package/dist/rampsErrorCodes.js.map +1 -0
- package/dist/{selectors.d.mts → selectors.d.ts} +3 -3
- package/dist/selectors.d.ts.map +1 -0
- package/dist/{selectors.mjs → selectors.js} +2 -2
- package/dist/selectors.js.map +1 -0
- package/dist/{transakApiErrorUtils.d.cts → transakApiErrorUtils.d.ts} +1 -1
- package/dist/transakApiErrorUtils.d.ts.map +1 -0
- package/dist/{transakApiErrorUtils.mjs → transakApiErrorUtils.js} +3 -3
- package/dist/transakApiErrorUtils.js.map +1 -0
- package/dist/{transakErrorCodes.d.cts → transakErrorCodes.d.ts} +3 -3
- package/dist/transakErrorCodes.d.ts.map +1 -0
- package/dist/{transakErrorCodes.mjs → transakErrorCodes.js} +1 -1
- package/dist/transakErrorCodes.js.map +1 -0
- package/dist/wallet-registration-machine.d.ts +81 -0
- package/dist/wallet-registration-machine.d.ts.map +1 -0
- package/dist/wallet-registration-machine.js +139 -0
- package/dist/wallet-registration-machine.js.map +1 -0
- package/dist/wallet-registration-service.d.ts +144 -0
- package/dist/wallet-registration-service.d.ts.map +1 -0
- package/dist/wallet-registration-service.js +335 -0
- package/dist/wallet-registration-service.js.map +1 -0
- package/package.json +17 -21
- package/dist/RampsController-method-action-types.cjs +0 -7
- package/dist/RampsController-method-action-types.cjs.map +0 -1
- package/dist/RampsController-method-action-types.d.cts +0 -668
- package/dist/RampsController-method-action-types.d.cts.map +0 -1
- package/dist/RampsController-method-action-types.d.mts.map +0 -1
- package/dist/RampsController-method-action-types.mjs.map +0 -1
- package/dist/RampsController.cjs +0 -2429
- package/dist/RampsController.cjs.map +0 -1
- package/dist/RampsController.d.cts.map +0 -1
- package/dist/RampsController.d.mts +0 -821
- package/dist/RampsController.d.mts.map +0 -1
- package/dist/RampsController.mjs.map +0 -1
- package/dist/RampsService-method-action-types.cjs +0 -7
- package/dist/RampsService-method-action-types.cjs.map +0 -1
- package/dist/RampsService-method-action-types.d.cts.map +0 -1
- package/dist/RampsService-method-action-types.d.mts +0 -171
- package/dist/RampsService-method-action-types.d.mts.map +0 -1
- package/dist/RampsService-method-action-types.mjs.map +0 -1
- package/dist/RampsService.cjs +0 -708
- package/dist/RampsService.cjs.map +0 -1
- package/dist/RampsService.d.cts +0 -944
- package/dist/RampsService.d.cts.map +0 -1
- package/dist/RampsService.d.mts.map +0 -1
- package/dist/RampsService.mjs.map +0 -1
- package/dist/RequestCache.cjs +0 -103
- package/dist/RequestCache.cjs.map +0 -1
- package/dist/RequestCache.d.cts.map +0 -1
- package/dist/RequestCache.d.mts +0 -110
- package/dist/RequestCache.d.mts.map +0 -1
- package/dist/RequestCache.mjs.map +0 -1
- package/dist/TransakService-method-action-types.cjs +0 -7
- package/dist/TransakService-method-action-types.cjs.map +0 -1
- package/dist/TransakService-method-action-types.d.cts.map +0 -1
- package/dist/TransakService-method-action-types.d.mts +0 -140
- package/dist/TransakService-method-action-types.d.mts.map +0 -1
- package/dist/TransakService-method-action-types.mjs.map +0 -1
- package/dist/TransakService.cjs +0 -743
- package/dist/TransakService.cjs.map +0 -1
- package/dist/TransakService.d.cts +0 -370
- package/dist/TransakService.d.cts.map +0 -1
- package/dist/TransakService.d.mts.map +0 -1
- package/dist/TransakService.mjs +0 -734
- package/dist/TransakService.mjs.map +0 -1
- package/dist/client-identity.cjs +0 -28
- package/dist/client-identity.cjs.map +0 -1
- package/dist/client-identity.d.cts.map +0 -1
- package/dist/client-identity.d.mts +0 -24
- package/dist/client-identity.d.mts.map +0 -1
- package/dist/client-identity.mjs.map +0 -1
- package/dist/errorNormalization.cjs +0 -84
- package/dist/errorNormalization.cjs.map +0 -1
- package/dist/errorNormalization.d.cts +0 -56
- package/dist/errorNormalization.d.cts.map +0 -1
- package/dist/errorNormalization.d.mts.map +0 -1
- package/dist/errorNormalization.mjs.map +0 -1
- package/dist/featureFlags.cjs +0 -144
- package/dist/featureFlags.cjs.map +0 -1
- package/dist/featureFlags.d.cts +0 -82
- package/dist/featureFlags.d.cts.map +0 -1
- package/dist/featureFlags.d.mts.map +0 -1
- package/dist/featureFlags.mjs.map +0 -1
- package/dist/index.cjs +0 -63
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -26
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -26
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -14
- package/dist/index.mjs.map +0 -1
- package/dist/orderStatus.cjs +0 -34
- package/dist/orderStatus.cjs.map +0 -1
- package/dist/orderStatus.d.cts +0 -18
- package/dist/orderStatus.d.cts.map +0 -1
- package/dist/orderStatus.d.mts.map +0 -1
- package/dist/orderStatus.mjs.map +0 -1
- package/dist/paymentMethodMerge.cjs +0 -51
- package/dist/paymentMethodMerge.cjs.map +0 -1
- package/dist/paymentMethodMerge.d.cts.map +0 -1
- package/dist/paymentMethodMerge.d.mts +0 -26
- package/dist/paymentMethodMerge.d.mts.map +0 -1
- package/dist/paymentMethodMerge.mjs.map +0 -1
- package/dist/providerAvailability.cjs +0 -134
- package/dist/providerAvailability.cjs.map +0 -1
- package/dist/providerAvailability.d.cts +0 -101
- package/dist/providerAvailability.d.cts.map +0 -1
- package/dist/providerAvailability.d.mts.map +0 -1
- package/dist/providerAvailability.mjs.map +0 -1
- package/dist/quoteClassification.cjs +0 -44
- package/dist/quoteClassification.cjs.map +0 -1
- package/dist/quoteClassification.d.cts.map +0 -1
- package/dist/quoteClassification.d.mts +0 -33
- package/dist/quoteClassification.d.mts.map +0 -1
- package/dist/quoteClassification.mjs.map +0 -1
- package/dist/rampsErrorCodes.cjs +0 -11
- package/dist/rampsErrorCodes.cjs.map +0 -1
- package/dist/rampsErrorCodes.d.cts.map +0 -1
- package/dist/rampsErrorCodes.d.mts +0 -9
- package/dist/rampsErrorCodes.d.mts.map +0 -1
- package/dist/rampsErrorCodes.mjs.map +0 -1
- package/dist/selectors.cjs +0 -85
- package/dist/selectors.cjs.map +0 -1
- package/dist/selectors.d.cts +0 -78
- package/dist/selectors.d.cts.map +0 -1
- package/dist/selectors.d.mts.map +0 -1
- package/dist/selectors.mjs.map +0 -1
- package/dist/transakApiErrorUtils.cjs +0 -15
- package/dist/transakApiErrorUtils.cjs.map +0 -1
- package/dist/transakApiErrorUtils.d.cts.map +0 -1
- package/dist/transakApiErrorUtils.d.mts +0 -3
- package/dist/transakApiErrorUtils.d.mts.map +0 -1
- package/dist/transakApiErrorUtils.mjs.map +0 -1
- package/dist/transakErrorCodes.cjs +0 -14
- package/dist/transakErrorCodes.cjs.map +0 -1
- package/dist/transakErrorCodes.d.cts.map +0 -1
- package/dist/transakErrorCodes.d.mts +0 -12
- package/dist/transakErrorCodes.d.mts.map +0 -1
- package/dist/transakErrorCodes.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [21.0.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** Drop CommonJS support ([#9536](https://github.com/MetaMask/core/pull/9536))
|
|
15
|
+
- This package is now ESM-only, but can still be used in CommonJS projects via `require(esm)` in modern Node.js versions (22+), or dynamic imports in older Node.js versions.
|
|
16
|
+
- **BREAKING:** Bump minimum Node.js version to 22 ([#9976](https://github.com/MetaMask/core/pull/9976))
|
|
17
|
+
- **BREAKING:** Bump TypeScript target to ES2022 ([#10019](https://github.com/MetaMask/core/pull/10019))
|
|
18
|
+
- This package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
|
|
19
|
+
- Bump `@metamask/base-controller` from `^9.1.0` to `^10.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
20
|
+
- Bump `@metamask/controller-utils` from `^12.3.0` to `^13.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
21
|
+
- Bump `@metamask/messenger` from `^2.0.0` to `^3.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
22
|
+
- Bump `@metamask/profile-sync-controller` from `^30.0.0` to `^31.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
23
|
+
- Bump `@metamask/remote-feature-flag-controller` from `^6.1.1` to `^7.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
|
|
24
|
+
|
|
25
|
+
## [20.3.0]
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Add `NeoBankService` for MetaMask Ramp API neo-bank-proxy endpoints under the `/neobank` prefix on the Ramp API host, including messenger actions for `getAutoramp`, `registerPixAddress`, `getAutorampQuote`, `createAutoramp`, `getAutorampQuoteForAutoramp`, `attachAutorampQuote`, `getCustomerByExternalId`, `getMoonpayCustomerId`, `getWalletRegistrationStatus`, and `registerSelfHostedWallet`. Mutating POSTs do not retry (to avoid duplicate Pix/autoramp creates without a stable `Idempotency-Key`); GETs still retry 429/5xx/network errors. Optional `Idempotency-Key` is forwarded when callers supply one. Also exports `mapNeoBankAutorampToRemoteSnapshot`, `AutorampRemoteSnapshot`, and wallet-registration HTTP types (`WalletRegistrationError`, `RegistrationStatus`, `RegistrationOutcome`). ([#10031](https://github.com/MetaMask/core/pull/10031))
|
|
30
|
+
- Add `RampsController` autoramp last-seen cursor and Money Account wallet registration: persisted `autoramps` state, `createAutoramp` / `refreshAutoramp(s)` / `applyAutorampStatusFromPush`, `registerMoneyAccountWallet`, and `RampsController:autorampStatusChanged`. MoonPay remains the source of truth; hosts should call `refreshAutoramps` on resume to catch webhooks missed while the app was closed. Hosts must delegate `RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS` (`AuthenticationController:getSessionProfile`, `KeyringController:signPersonalMessage`, `RemoteFeatureFlagController:getState`) plus the NeoBank actions listed in `RAMPS_CONTROLLER_REQUIRED_SERVICE_ACTIONS`. ([#10032](https://github.com/MetaMask/core/pull/10032))
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- Bump `@metamask/remote-feature-flag-controller` from `^6.1.0` to `^6.1.1` ([#10129](https://github.com/MetaMask/core/pull/10129))
|
|
35
|
+
- Bump `@metamask/profile-sync-controller` from `^29.0.0` to `^30.0.0` ([#10139](https://github.com/MetaMask/core/pull/10139))
|
|
36
|
+
|
|
10
37
|
## [20.2.0]
|
|
11
38
|
|
|
12
39
|
### Added
|
|
@@ -546,7 +573,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
546
573
|
- Add `OnRampService` for interacting with the OnRamp API
|
|
547
574
|
- Add geolocation detection via IP address lookup
|
|
548
575
|
|
|
549
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@
|
|
576
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@21.0.0...HEAD
|
|
577
|
+
[21.0.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.3.0...@metamask/ramps-controller@21.0.0
|
|
578
|
+
[20.3.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.2.0...@metamask/ramps-controller@20.3.0
|
|
550
579
|
[20.2.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.1.0...@metamask/ramps-controller@20.2.0
|
|
551
580
|
[20.1.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.0.0...@metamask/ramps-controller@20.1.0
|
|
552
581
|
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@19.0.0...@metamask/ramps-controller@20.0.0
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto generated.
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
import type { NeoBankService } from './NeoBankService.js';
|
|
6
|
+
/**
|
|
7
|
+
* Fetches an autoramp account via neobank-proxy
|
|
8
|
+
* `GET /neobank/autoramps/{autoramp_id}` (MoonPay
|
|
9
|
+
* `GET /api/autoramps/{autoramp_id}`).
|
|
10
|
+
*
|
|
11
|
+
* @param autorampId - MoonPay / Ramp API autoramp id.
|
|
12
|
+
* @returns Remote snapshot for controller apply/refresh.
|
|
13
|
+
*/
|
|
14
|
+
export type NeoBankServiceGetAutorampAction = {
|
|
15
|
+
type: `NeoBankService:getAutoramp`;
|
|
16
|
+
handler: NeoBankService['getAutoramp'];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Registers a Pix address via neobank-proxy `POST /neobank/addresses/pix`.
|
|
20
|
+
* Body is forwarded as opaque JSON (MoonPay address schema).
|
|
21
|
+
*
|
|
22
|
+
* @param body - Pix address registration payload.
|
|
23
|
+
* @param options - Optional idempotency key.
|
|
24
|
+
* @returns Parsed proxy JSON response.
|
|
25
|
+
*/
|
|
26
|
+
export type NeoBankServiceRegisterPixAddressAction = {
|
|
27
|
+
type: `NeoBankService:registerPixAddress`;
|
|
28
|
+
handler: NeoBankService['registerPixAddress'];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Fetches an autoramp quote via neobank-proxy `GET /neobank/autoramps/quote`.
|
|
32
|
+
*
|
|
33
|
+
* @param query - Quote query params (forwarded as-is).
|
|
34
|
+
* @returns Parsed proxy JSON response.
|
|
35
|
+
*/
|
|
36
|
+
export type NeoBankServiceGetAutorampQuoteAction = {
|
|
37
|
+
type: `NeoBankService:getAutorampQuote`;
|
|
38
|
+
handler: NeoBankService['getAutorampQuote'];
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Creates an autoramp from a signed quote via neobank-proxy
|
|
42
|
+
* `POST /neobank/autoramps` (MoonPay `POST /api/autoramps`).
|
|
43
|
+
*
|
|
44
|
+
* @param body - CreateAutoramp / signed-quote payload (forwarded as-is).
|
|
45
|
+
* @param options - Optional idempotency key.
|
|
46
|
+
* @returns Remote snapshot for controller apply/refresh.
|
|
47
|
+
*/
|
|
48
|
+
export type NeoBankServiceCreateAutorampAction = {
|
|
49
|
+
type: `NeoBankService:createAutoramp`;
|
|
50
|
+
handler: NeoBankService['createAutoramp'];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Fetches a quote for an existing autoramp via neobank-proxy
|
|
54
|
+
* `GET /neobank/autoramps/{autoramp_id}/quote`.
|
|
55
|
+
*
|
|
56
|
+
* @param autorampId - Autoramp id.
|
|
57
|
+
* @param query - Quote query params (forwarded as-is).
|
|
58
|
+
* @returns Parsed proxy JSON response.
|
|
59
|
+
*/
|
|
60
|
+
export type NeoBankServiceGetAutorampQuoteForAutorampAction = {
|
|
61
|
+
type: `NeoBankService:getAutorampQuoteForAutoramp`;
|
|
62
|
+
handler: NeoBankService['getAutorampQuoteForAutoramp'];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Attaches a signed quote to an autoramp via neobank-proxy
|
|
66
|
+
* `POST /neobank/autoramps/{autoramp_id}/quotes`.
|
|
67
|
+
*
|
|
68
|
+
* @param autorampId - Autoramp id.
|
|
69
|
+
* @param body - Quote attachment payload (forwarded as-is).
|
|
70
|
+
* @param options - Optional idempotency key.
|
|
71
|
+
* @returns Parsed proxy JSON response.
|
|
72
|
+
*/
|
|
73
|
+
export type NeoBankServiceAttachAutorampQuoteAction = {
|
|
74
|
+
type: `NeoBankService:attachAutorampQuote`;
|
|
75
|
+
handler: NeoBankService['attachAutorampQuote'];
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Fetches a customer by partner external id via neobank-proxy
|
|
79
|
+
* `GET /neobank/customers/{external_id}/external`.
|
|
80
|
+
*
|
|
81
|
+
* @param externalId - Partner-assigned external customer id.
|
|
82
|
+
* @returns Parsed proxy JSON response.
|
|
83
|
+
*/
|
|
84
|
+
export type NeoBankServiceGetCustomerByExternalIdAction = {
|
|
85
|
+
type: `NeoBankService:getCustomerByExternalId`;
|
|
86
|
+
handler: NeoBankService['getCustomerByExternalId'];
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Resolves Iron's internal customer id via neobank-proxy customer lookup,
|
|
90
|
+
* using the MetaMask canonical profile id as the partner `external_id`.
|
|
91
|
+
*
|
|
92
|
+
* @returns Iron's internal customer id.
|
|
93
|
+
*/
|
|
94
|
+
export type NeoBankServiceGetMoonpayCustomerIdAction = {
|
|
95
|
+
type: `NeoBankService:getMoonpayCustomerId`;
|
|
96
|
+
handler: NeoBankService['getMoonpayCustomerId'];
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Checks whether a Monad Money Account address is already registered for the
|
|
100
|
+
* given Iron customer.
|
|
101
|
+
*
|
|
102
|
+
* @param params - Customer id and address to check.
|
|
103
|
+
* @param params.customerId - Iron / MoonPay customer UUID.
|
|
104
|
+
* @param params.address - Money Account address.
|
|
105
|
+
* @returns Active, disabled, or absent registration status.
|
|
106
|
+
*/
|
|
107
|
+
export type NeoBankServiceGetWalletRegistrationStatusAction = {
|
|
108
|
+
type: `NeoBankService:getWalletRegistrationStatus`;
|
|
109
|
+
handler: NeoBankService['getWalletRegistrationStatus'];
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Submits a signed Monad Money Account ownership proof via neobank-proxy
|
|
113
|
+
* `POST /neobank/addresses/crypto/selfhosted`.
|
|
114
|
+
*
|
|
115
|
+
* @param params - Signed ownership proof.
|
|
116
|
+
* @returns Registered wallet record.
|
|
117
|
+
*/
|
|
118
|
+
export type NeoBankServiceRegisterSelfHostedWalletAction = {
|
|
119
|
+
type: `NeoBankService:registerSelfHostedWallet`;
|
|
120
|
+
handler: NeoBankService['registerSelfHostedWallet'];
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Union of all NeoBankService action types.
|
|
124
|
+
*/
|
|
125
|
+
export type NeoBankServiceMethodActions = NeoBankServiceGetAutorampAction | NeoBankServiceRegisterPixAddressAction | NeoBankServiceGetAutorampQuoteAction | NeoBankServiceCreateAutorampAction | NeoBankServiceGetAutorampQuoteForAutorampAction | NeoBankServiceAttachAutorampQuoteAction | NeoBankServiceGetCustomerByExternalIdAction | NeoBankServiceGetMoonpayCustomerIdAction | NeoBankServiceGetWalletRegistrationStatusAction | NeoBankServiceRegisterSelfHostedWalletAction;
|
|
126
|
+
//# sourceMappingURL=NeoBankService-method-action-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService-method-action-types.d.ts","sourceRoot":"","sources":["../src/NeoBankService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CACxC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAC/C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE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":["../src/NeoBankService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { NeoBankService } from './NeoBankService.js';\n\n/**\n * Fetches an autoramp account via neobank-proxy\n * `GET /neobank/autoramps/{autoramp_id}` (MoonPay\n * `GET /api/autoramps/{autoramp_id}`).\n *\n * @param autorampId - MoonPay / Ramp API autoramp id.\n * @returns Remote snapshot for controller apply/refresh.\n */\nexport type NeoBankServiceGetAutorampAction = {\n type: `NeoBankService:getAutoramp`;\n handler: NeoBankService['getAutoramp'];\n};\n\n/**\n * Registers a Pix address via neobank-proxy `POST /neobank/addresses/pix`.\n * Body is forwarded as opaque JSON (MoonPay address schema).\n *\n * @param body - Pix address registration payload.\n * @param options - Optional idempotency key.\n * @returns Parsed proxy JSON response.\n */\nexport type NeoBankServiceRegisterPixAddressAction = {\n type: `NeoBankService:registerPixAddress`;\n handler: NeoBankService['registerPixAddress'];\n};\n\n/**\n * Fetches an autoramp quote via neobank-proxy `GET /neobank/autoramps/quote`.\n *\n * @param query - Quote query params (forwarded as-is).\n * @returns Parsed proxy JSON response.\n */\nexport type NeoBankServiceGetAutorampQuoteAction = {\n type: `NeoBankService:getAutorampQuote`;\n handler: NeoBankService['getAutorampQuote'];\n};\n\n/**\n * Creates an autoramp from a signed quote via neobank-proxy\n * `POST /neobank/autoramps` (MoonPay `POST /api/autoramps`).\n *\n * @param body - CreateAutoramp / signed-quote payload (forwarded as-is).\n * @param options - Optional idempotency key.\n * @returns Remote snapshot for controller apply/refresh.\n */\nexport type NeoBankServiceCreateAutorampAction = {\n type: `NeoBankService:createAutoramp`;\n handler: NeoBankService['createAutoramp'];\n};\n\n/**\n * Fetches a quote for an existing autoramp via neobank-proxy\n * `GET /neobank/autoramps/{autoramp_id}/quote`.\n *\n * @param autorampId - Autoramp id.\n * @param query - Quote query params (forwarded as-is).\n * @returns Parsed proxy JSON response.\n */\nexport type NeoBankServiceGetAutorampQuoteForAutorampAction = {\n type: `NeoBankService:getAutorampQuoteForAutoramp`;\n handler: NeoBankService['getAutorampQuoteForAutoramp'];\n};\n\n/**\n * Attaches a signed quote to an autoramp via neobank-proxy\n * `POST /neobank/autoramps/{autoramp_id}/quotes`.\n *\n * @param autorampId - Autoramp id.\n * @param body - Quote attachment payload (forwarded as-is).\n * @param options - Optional idempotency key.\n * @returns Parsed proxy JSON response.\n */\nexport type NeoBankServiceAttachAutorampQuoteAction = {\n type: `NeoBankService:attachAutorampQuote`;\n handler: NeoBankService['attachAutorampQuote'];\n};\n\n/**\n * Fetches a customer by partner external id via neobank-proxy\n * `GET /neobank/customers/{external_id}/external`.\n *\n * @param externalId - Partner-assigned external customer id.\n * @returns Parsed proxy JSON response.\n */\nexport type NeoBankServiceGetCustomerByExternalIdAction = {\n type: `NeoBankService:getCustomerByExternalId`;\n handler: NeoBankService['getCustomerByExternalId'];\n};\n\n/**\n * Resolves Iron's internal customer id via neobank-proxy customer lookup,\n * using the MetaMask canonical profile id as the partner `external_id`.\n *\n * @returns Iron's internal customer id.\n */\nexport type NeoBankServiceGetMoonpayCustomerIdAction = {\n type: `NeoBankService:getMoonpayCustomerId`;\n handler: NeoBankService['getMoonpayCustomerId'];\n};\n\n/**\n * Checks whether a Monad Money Account address is already registered for the\n * given Iron customer.\n *\n * @param params - Customer id and address to check.\n * @param params.customerId - Iron / MoonPay customer UUID.\n * @param params.address - Money Account address.\n * @returns Active, disabled, or absent registration status.\n */\nexport type NeoBankServiceGetWalletRegistrationStatusAction = {\n type: `NeoBankService:getWalletRegistrationStatus`;\n handler: NeoBankService['getWalletRegistrationStatus'];\n};\n\n/**\n * Submits a signed Monad Money Account ownership proof via neobank-proxy\n * `POST /neobank/addresses/crypto/selfhosted`.\n *\n * @param params - Signed ownership proof.\n * @returns Registered wallet record.\n */\nexport type NeoBankServiceRegisterSelfHostedWalletAction = {\n type: `NeoBankService:registerSelfHostedWallet`;\n handler: NeoBankService['registerSelfHostedWallet'];\n};\n\n/**\n * Union of all NeoBankService action types.\n */\nexport type NeoBankServiceMethodActions =\n | NeoBankServiceGetAutorampAction\n | NeoBankServiceRegisterPixAddressAction\n | NeoBankServiceGetAutorampQuoteAction\n | NeoBankServiceCreateAutorampAction\n | NeoBankServiceGetAutorampQuoteForAutorampAction\n | NeoBankServiceAttachAutorampQuoteAction\n | NeoBankServiceGetCustomerByExternalIdAction\n | NeoBankServiceGetMoonpayCustomerIdAction\n | NeoBankServiceGetWalletRegistrationStatusAction\n | NeoBankServiceRegisterSelfHostedWalletAction;\n"]}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { CreateServicePolicyOptions, ServicePolicy } from '@metamask/controller-utils';
|
|
2
|
+
import type { Messenger } from '@metamask/messenger';
|
|
3
|
+
import type { AuthenticationController } from '@metamask/profile-sync-controller';
|
|
4
|
+
import type { AutorampRemoteSnapshot } from './autoramp-types.js';
|
|
5
|
+
import type { NeoBankServiceMethodActions } from './NeoBankService-method-action-types.js';
|
|
6
|
+
import { RampsEnvironment } from './RampsService.js';
|
|
7
|
+
import type { RegistrationOutcome, RegistrationStatus } from './wallet-registration-service.js';
|
|
8
|
+
/**
|
|
9
|
+
* Name of the NeoBankService messenger namespace.
|
|
10
|
+
*/
|
|
11
|
+
export declare const serviceName = "NeoBankService";
|
|
12
|
+
/**
|
|
13
|
+
* Raw autoramp payload from the MetaMask Ramp API neo-bank proxy.
|
|
14
|
+
* Shape mirrors MoonPay Enterprise `GET /api/autoramps/{autoramp_id}`.
|
|
15
|
+
* The Ramp API handles partner auth / headers; the client only sends the
|
|
16
|
+
* MetaMask bearer token.
|
|
17
|
+
*/
|
|
18
|
+
export type NeoBankAutorampResponse = {
|
|
19
|
+
id: string;
|
|
20
|
+
customer_id?: string;
|
|
21
|
+
status: string;
|
|
22
|
+
/**
|
|
23
|
+
* Destination wallet when present on the proxy response.
|
|
24
|
+
* Field name may evolve with the Ramp API contract.
|
|
25
|
+
*/
|
|
26
|
+
wallet_address?: string;
|
|
27
|
+
recipient_account?: {
|
|
28
|
+
address?: string;
|
|
29
|
+
};
|
|
30
|
+
deposit_rails?: unknown[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Optional headers for neo-bank mutating requests.
|
|
34
|
+
*/
|
|
35
|
+
export type NeoBankRequestOptions = {
|
|
36
|
+
/**
|
|
37
|
+
* Forwarded as `Idempotency-Key` when set (MoonPay requires it on some POSTs;
|
|
38
|
+
* neobank-proxy generates one when omitted).
|
|
39
|
+
*/
|
|
40
|
+
idempotencyKey?: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Query string values accepted by neo-bank GET helpers.
|
|
44
|
+
*/
|
|
45
|
+
export type NeoBankQueryParams = Record<string, string | number | boolean | undefined | null>;
|
|
46
|
+
export type GetWalletRegistrationStatusParams = {
|
|
47
|
+
customerId: string;
|
|
48
|
+
address: string;
|
|
49
|
+
};
|
|
50
|
+
export type RegisterSelfHostedWalletParams = {
|
|
51
|
+
customerId: string;
|
|
52
|
+
address: string;
|
|
53
|
+
message: string;
|
|
54
|
+
signature: string;
|
|
55
|
+
/**
|
|
56
|
+
* Forwarded as `Idempotency-Key` on the neobank-proxy POST. Prefer a stable
|
|
57
|
+
* key across retries of the same ownership body.
|
|
58
|
+
*/
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Actions that {@link NeoBankService} exposes to other consumers.
|
|
63
|
+
*/
|
|
64
|
+
export type NeoBankServiceActions = NeoBankServiceMethodActions;
|
|
65
|
+
type AllowedActions = AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticationController.AuthenticationControllerGetSessionProfileAction;
|
|
66
|
+
export type NeoBankServiceEvents = never;
|
|
67
|
+
type AllowedEvents = never;
|
|
68
|
+
/**
|
|
69
|
+
* The messenger restricted to actions and events accessed by
|
|
70
|
+
* {@link NeoBankService}.
|
|
71
|
+
*/
|
|
72
|
+
export type NeoBankServiceMessenger = Messenger<typeof serviceName, NeoBankServiceActions | AllowedActions, NeoBankServiceEvents | AllowedEvents>;
|
|
73
|
+
/**
|
|
74
|
+
* Maps a Ramp API / MoonPay-shaped autoramp response into the local remote snapshot.
|
|
75
|
+
*
|
|
76
|
+
* @param response - Proxy response body.
|
|
77
|
+
* @returns Snapshot for the controller last-seen cursor.
|
|
78
|
+
*/
|
|
79
|
+
export declare function mapNeoBankAutorampToRemoteSnapshot(response: NeoBankAutorampResponse): AutorampRemoteSnapshot;
|
|
80
|
+
/**
|
|
81
|
+
* Client for MetaMask Ramp API neo-bank endpoints (MoonPay Enterprise proxy).
|
|
82
|
+
*
|
|
83
|
+
* Lives alongside {@link RampsService} and {@link TransakService}. Authentication
|
|
84
|
+
* and MoonPay partner headers are handled by the Ramp API; this service only
|
|
85
|
+
* attaches the MetaMask user bearer token.
|
|
86
|
+
*
|
|
87
|
+
* Paths use the neobank-proxy `/neobank` prefix on the on-ramp.api host.
|
|
88
|
+
*/
|
|
89
|
+
export declare class NeoBankService {
|
|
90
|
+
#private;
|
|
91
|
+
readonly name: typeof serviceName;
|
|
92
|
+
constructor({ messenger, environment, context, fetch: fetchFunction, policyOptions, baseUrlOverride, }: {
|
|
93
|
+
messenger: NeoBankServiceMessenger;
|
|
94
|
+
environment?: RampsEnvironment;
|
|
95
|
+
context: string;
|
|
96
|
+
fetch: typeof fetch;
|
|
97
|
+
policyOptions?: CreateServicePolicyOptions;
|
|
98
|
+
baseUrlOverride?: string;
|
|
99
|
+
});
|
|
100
|
+
/**
|
|
101
|
+
* Fetches an autoramp account via neobank-proxy
|
|
102
|
+
* `GET /neobank/autoramps/{autoramp_id}` (MoonPay
|
|
103
|
+
* `GET /api/autoramps/{autoramp_id}`).
|
|
104
|
+
*
|
|
105
|
+
* @param autorampId - MoonPay / Ramp API autoramp id.
|
|
106
|
+
* @returns Remote snapshot for controller apply/refresh.
|
|
107
|
+
*/
|
|
108
|
+
getAutoramp(autorampId: string): Promise<AutorampRemoteSnapshot>;
|
|
109
|
+
/**
|
|
110
|
+
* Registers a Pix address via neobank-proxy `POST /neobank/addresses/pix`.
|
|
111
|
+
* Body is forwarded as opaque JSON (MoonPay address schema).
|
|
112
|
+
*
|
|
113
|
+
* @param body - Pix address registration payload.
|
|
114
|
+
* @param options - Optional idempotency key.
|
|
115
|
+
* @returns Parsed proxy JSON response.
|
|
116
|
+
*/
|
|
117
|
+
registerPixAddress(body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Fetches an autoramp quote via neobank-proxy `GET /neobank/autoramps/quote`.
|
|
120
|
+
*
|
|
121
|
+
* @param query - Quote query params (forwarded as-is).
|
|
122
|
+
* @returns Parsed proxy JSON response.
|
|
123
|
+
*/
|
|
124
|
+
getAutorampQuote(query?: NeoBankQueryParams): Promise<unknown>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates an autoramp from a signed quote via neobank-proxy
|
|
127
|
+
* `POST /neobank/autoramps` (MoonPay `POST /api/autoramps`).
|
|
128
|
+
*
|
|
129
|
+
* @param body - CreateAutoramp / signed-quote payload (forwarded as-is).
|
|
130
|
+
* @param options - Optional idempotency key.
|
|
131
|
+
* @returns Remote snapshot for controller apply/refresh.
|
|
132
|
+
*/
|
|
133
|
+
createAutoramp(body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<AutorampRemoteSnapshot>;
|
|
134
|
+
/**
|
|
135
|
+
* Fetches a quote for an existing autoramp via neobank-proxy
|
|
136
|
+
* `GET /neobank/autoramps/{autoramp_id}/quote`.
|
|
137
|
+
*
|
|
138
|
+
* @param autorampId - Autoramp id.
|
|
139
|
+
* @param query - Quote query params (forwarded as-is).
|
|
140
|
+
* @returns Parsed proxy JSON response.
|
|
141
|
+
*/
|
|
142
|
+
getAutorampQuoteForAutoramp(autorampId: string, query?: NeoBankQueryParams): Promise<unknown>;
|
|
143
|
+
/**
|
|
144
|
+
* Attaches a signed quote to an autoramp via neobank-proxy
|
|
145
|
+
* `POST /neobank/autoramps/{autoramp_id}/quotes`.
|
|
146
|
+
*
|
|
147
|
+
* @param autorampId - Autoramp id.
|
|
148
|
+
* @param body - Quote attachment payload (forwarded as-is).
|
|
149
|
+
* @param options - Optional idempotency key.
|
|
150
|
+
* @returns Parsed proxy JSON response.
|
|
151
|
+
*/
|
|
152
|
+
attachAutorampQuote(autorampId: string, body: Record<string, unknown>, options?: NeoBankRequestOptions): Promise<unknown>;
|
|
153
|
+
/**
|
|
154
|
+
* Fetches a customer by partner external id via neobank-proxy
|
|
155
|
+
* `GET /neobank/customers/{external_id}/external`.
|
|
156
|
+
*
|
|
157
|
+
* @param externalId - Partner-assigned external customer id.
|
|
158
|
+
* @returns Parsed proxy JSON response.
|
|
159
|
+
*/
|
|
160
|
+
getCustomerByExternalId(externalId: string): Promise<unknown>;
|
|
161
|
+
/**
|
|
162
|
+
* Resolves Iron's internal customer id via neobank-proxy customer lookup,
|
|
163
|
+
* using the MetaMask canonical profile id as the partner `external_id`.
|
|
164
|
+
*
|
|
165
|
+
* @returns Iron's internal customer id.
|
|
166
|
+
*/
|
|
167
|
+
getMoonpayCustomerId(): Promise<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Checks whether a Monad Money Account address is already registered for the
|
|
170
|
+
* given Iron customer.
|
|
171
|
+
*
|
|
172
|
+
* @param params - Customer id and address to check.
|
|
173
|
+
* @param params.customerId - Iron / MoonPay customer UUID.
|
|
174
|
+
* @param params.address - Money Account address.
|
|
175
|
+
* @returns Active, disabled, or absent registration status.
|
|
176
|
+
*/
|
|
177
|
+
getWalletRegistrationStatus({ customerId, address, }: GetWalletRegistrationStatusParams): Promise<RegistrationStatus>;
|
|
178
|
+
/**
|
|
179
|
+
* Submits a signed Monad Money Account ownership proof via neobank-proxy
|
|
180
|
+
* `POST /neobank/addresses/crypto/selfhosted`.
|
|
181
|
+
*
|
|
182
|
+
* @param params - Signed ownership proof.
|
|
183
|
+
* @returns Registered wallet record.
|
|
184
|
+
*/
|
|
185
|
+
registerSelfHostedWallet(params: RegisterSelfHostedWalletParams): Promise<RegistrationOutcome>;
|
|
186
|
+
onRetry(listener: Parameters<ServicePolicy['onRetry']>[0]): ReturnType<ServicePolicy['onRetry']>;
|
|
187
|
+
onBreak(listener: Parameters<ServicePolicy['onBreak']>[0]): ReturnType<ServicePolicy['onBreak']>;
|
|
188
|
+
onDegraded(listener: Parameters<ServicePolicy['onDegraded']>[0]): ReturnType<ServicePolicy['onDegraded']>;
|
|
189
|
+
}
|
|
190
|
+
export {};
|
|
191
|
+
//# sourceMappingURL=NeoBankService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService.d.ts","sourceRoot":"","sources":["../src/NeoBankService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,aAAa,EACd,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAqB,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAExE,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAuB5C;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,iBAAiB,CAAC,EAAE;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,aAAa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