@metamask-previews/ramps-controller 20.0.0-preview-eb263b0ee → 20.2.0-preview-c61613ed2
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 +45 -2
- package/dist/NeoBankService-method-action-types.cjs +7 -0
- package/dist/NeoBankService-method-action-types.cjs.map +1 -0
- package/dist/NeoBankService-method-action-types.d.cts +126 -0
- package/dist/NeoBankService-method-action-types.d.cts.map +1 -0
- package/dist/NeoBankService-method-action-types.d.mts +126 -0
- package/dist/NeoBankService-method-action-types.d.mts.map +1 -0
- package/dist/NeoBankService-method-action-types.mjs +6 -0
- package/dist/NeoBankService-method-action-types.mjs.map +1 -0
- package/dist/NeoBankService.cjs +381 -0
- package/dist/NeoBankService.cjs.map +1 -0
- package/dist/NeoBankService.d.cts +191 -0
- package/dist/NeoBankService.d.cts.map +1 -0
- package/dist/NeoBankService.d.mts +191 -0
- package/dist/NeoBankService.d.mts.map +1 -0
- package/dist/NeoBankService.mjs +373 -0
- package/dist/NeoBankService.mjs.map +1 -0
- package/dist/RampsController-method-action-types.cjs.map +1 -1
- package/dist/RampsController-method-action-types.d.cts +153 -1
- package/dist/RampsController-method-action-types.d.cts.map +1 -1
- package/dist/RampsController-method-action-types.d.mts +153 -1
- package/dist/RampsController-method-action-types.d.mts.map +1 -1
- package/dist/RampsController-method-action-types.mjs.map +1 -1
- package/dist/RampsController.cjs +699 -4
- package/dist/RampsController.cjs.map +1 -1
- package/dist/RampsController.d.cts +284 -8
- package/dist/RampsController.d.cts.map +1 -1
- package/dist/RampsController.d.mts +284 -8
- package/dist/RampsController.d.mts.map +1 -1
- package/dist/RampsController.mjs +699 -4
- package/dist/RampsController.mjs.map +1 -1
- package/dist/RampsService.cjs +14 -3
- package/dist/RampsService.cjs.map +1 -1
- package/dist/RampsService.d.cts +5 -5
- package/dist/RampsService.d.cts.map +1 -1
- package/dist/RampsService.d.mts +5 -5
- package/dist/RampsService.d.mts.map +1 -1
- package/dist/RampsService.mjs +14 -3
- package/dist/RampsService.mjs.map +1 -1
- package/dist/TransakService.cjs +15 -3
- package/dist/TransakService.cjs.map +1 -1
- package/dist/TransakService.d.cts +3 -1
- package/dist/TransakService.d.cts.map +1 -1
- package/dist/TransakService.d.mts +3 -1
- package/dist/TransakService.d.mts.map +1 -1
- package/dist/TransakService.mjs +15 -3
- package/dist/TransakService.mjs.map +1 -1
- package/dist/autoramp-syncing/constants.cjs +26 -0
- package/dist/autoramp-syncing/constants.cjs.map +1 -0
- package/dist/autoramp-syncing/constants.d.cts +23 -0
- package/dist/autoramp-syncing/constants.d.cts.map +1 -0
- package/dist/autoramp-syncing/constants.d.mts +23 -0
- package/dist/autoramp-syncing/constants.d.mts.map +1 -0
- package/dist/autoramp-syncing/constants.mjs +23 -0
- package/dist/autoramp-syncing/constants.mjs.map +1 -0
- package/dist/autoramp-syncing/controller-integration.cjs +305 -0
- package/dist/autoramp-syncing/controller-integration.cjs.map +1 -0
- package/dist/autoramp-syncing/controller-integration.d.cts +38 -0
- package/dist/autoramp-syncing/controller-integration.d.cts.map +1 -0
- package/dist/autoramp-syncing/controller-integration.d.mts +38 -0
- package/dist/autoramp-syncing/controller-integration.d.mts.map +1 -0
- package/dist/autoramp-syncing/controller-integration.mjs +298 -0
- package/dist/autoramp-syncing/controller-integration.mjs.map +1 -0
- package/dist/autoramp-syncing/format-utils.cjs +106 -0
- package/dist/autoramp-syncing/format-utils.cjs.map +1 -0
- package/dist/autoramp-syncing/format-utils.d.cts +46 -0
- package/dist/autoramp-syncing/format-utils.d.cts.map +1 -0
- package/dist/autoramp-syncing/format-utils.d.mts +46 -0
- package/dist/autoramp-syncing/format-utils.d.mts.map +1 -0
- package/dist/autoramp-syncing/format-utils.mjs +97 -0
- package/dist/autoramp-syncing/format-utils.mjs.map +1 -0
- package/dist/autoramp-syncing/index.cjs +23 -0
- package/dist/autoramp-syncing/index.cjs.map +1 -0
- package/dist/autoramp-syncing/index.d.cts +6 -0
- package/dist/autoramp-syncing/index.d.cts.map +1 -0
- package/dist/autoramp-syncing/index.d.mts +6 -0
- package/dist/autoramp-syncing/index.d.mts.map +1 -0
- package/dist/autoramp-syncing/index.mjs +5 -0
- package/dist/autoramp-syncing/index.mjs.map +1 -0
- package/dist/autoramp-syncing/sync-utils.cjs +35 -0
- package/dist/autoramp-syncing/sync-utils.cjs.map +1 -0
- package/dist/autoramp-syncing/sync-utils.d.cts +12 -0
- package/dist/autoramp-syncing/sync-utils.d.cts.map +1 -0
- package/dist/autoramp-syncing/sync-utils.d.mts +12 -0
- package/dist/autoramp-syncing/sync-utils.d.mts.map +1 -0
- package/dist/autoramp-syncing/sync-utils.mjs +31 -0
- package/dist/autoramp-syncing/sync-utils.mjs.map +1 -0
- package/dist/autoramp-syncing/types.cjs +3 -0
- package/dist/autoramp-syncing/types.cjs.map +1 -0
- package/dist/autoramp-syncing/types.d.cts +57 -0
- package/dist/autoramp-syncing/types.d.cts.map +1 -0
- package/dist/autoramp-syncing/types.d.mts +57 -0
- package/dist/autoramp-syncing/types.d.mts.map +1 -0
- package/dist/autoramp-syncing/types.mjs +2 -0
- package/dist/autoramp-syncing/types.mjs.map +1 -0
- package/dist/autorampAccount.cjs +153 -0
- package/dist/autorampAccount.cjs.map +1 -0
- package/dist/autorampAccount.d.cts +145 -0
- package/dist/autorampAccount.d.cts.map +1 -0
- package/dist/autorampAccount.d.mts +145 -0
- package/dist/autorampAccount.d.mts.map +1 -0
- package/dist/autorampAccount.mjs +145 -0
- package/dist/autorampAccount.mjs.map +1 -0
- package/dist/client-identity.cjs +28 -0
- package/dist/client-identity.cjs.map +1 -0
- package/dist/client-identity.d.cts +24 -0
- package/dist/client-identity.d.cts.map +1 -0
- package/dist/client-identity.d.mts +24 -0
- package/dist/client-identity.d.mts.map +1 -0
- package/dist/client-identity.mjs +24 -0
- package/dist/client-identity.mjs.map +1 -0
- package/dist/index.cjs +35 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +16 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/ownership-message.cjs +26 -0
- package/dist/ownership-message.cjs.map +1 -0
- package/dist/ownership-message.d.cts +22 -0
- package/dist/ownership-message.d.cts.map +1 -0
- package/dist/ownership-message.d.mts +22 -0
- package/dist/ownership-message.d.mts.map +1 -0
- package/dist/ownership-message.mjs +22 -0
- package/dist/ownership-message.mjs.map +1 -0
- package/dist/paymentMethodMerge.cjs +51 -0
- package/dist/paymentMethodMerge.cjs.map +1 -0
- package/dist/paymentMethodMerge.d.cts +26 -0
- package/dist/paymentMethodMerge.d.cts.map +1 -0
- package/dist/paymentMethodMerge.d.mts +26 -0
- package/dist/paymentMethodMerge.d.mts.map +1 -0
- package/dist/paymentMethodMerge.mjs +46 -0
- package/dist/paymentMethodMerge.mjs.map +1 -0
- package/dist/providerAvailability.cjs +39 -8
- package/dist/providerAvailability.cjs.map +1 -1
- package/dist/providerAvailability.d.cts +30 -5
- package/dist/providerAvailability.d.cts.map +1 -1
- package/dist/providerAvailability.d.mts +30 -5
- package/dist/providerAvailability.d.mts.map +1 -1
- package/dist/providerAvailability.mjs +37 -7
- package/dist/providerAvailability.mjs.map +1 -1
- package/dist/wallet-registration-machine.cjs +144 -0
- package/dist/wallet-registration-machine.cjs.map +1 -0
- package/dist/wallet-registration-machine.d.cts +81 -0
- package/dist/wallet-registration-machine.d.cts.map +1 -0
- package/dist/wallet-registration-machine.d.mts +81 -0
- package/dist/wallet-registration-machine.d.mts.map +1 -0
- package/dist/wallet-registration-machine.mjs +139 -0
- package/dist/wallet-registration-machine.mjs.map +1 -0
- package/dist/wallet-registration-service.cjs +334 -0
- package/dist/wallet-registration-service.cjs.map +1 -0
- package/dist/wallet-registration-service.d.cts +143 -0
- package/dist/wallet-registration-service.d.cts.map +1 -0
- package/dist/wallet-registration-service.d.mts +143 -0
- package/dist/wallet-registration-service.d.mts.map +1 -0
- package/dist/wallet-registration-service.mjs +327 -0
- package/dist/wallet-registration-service.mjs.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,13 +9,54 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
- Add the `
|
|
12
|
+
- Add `RampsController.createAutoramp(request, options?)` method and the `RampsController:createAutoramp` messenger action (plus the exported `RampsControllerCreateAutorampAction` and `CreateAutorampRequest` types). It resolves the MoonPay `customer_id` from Profile Sync (`AuthenticationController:getSessionProfile`) via `NeoBankService:getCustomerByExternalId`, injects it into the request (overwriting any caller-supplied `customer_id`), forwards the body to `NeoBankService:createAutoramp`, and applies the returned snapshot to local state. Throws when the wallet is not signed in or no MoonPay customer is mapped to the external id. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
13
|
+
- Add the exported `RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS` constant listing the other-controller actions (`AuthenticationController:getSessionProfile`, `KeyringController:signPersonalMessage`) that hosts must delegate to the `RampsController` messenger to enable autoramp creation and Money Account wallet registration. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
14
|
+
- Add NeoBankService Pix / autoramp quote client methods and messenger actions, targeting the neobank-proxy `/neobank` prefix on the Ramp API host: `registerPixAddress`, `getAutorampQuote`, `createAutoramp`, `getAutorampQuoteForAutoramp`, `attachAutorampQuote`, and `getCustomerByExternalId`. Pix/quote helpers return parsed proxy JSON; `createAutoramp` maps autoramp-shaped responses via `mapNeoBankAutorampToRemoteSnapshot` (same as `getAutoramp`). Optional `Idempotency-Key` is supported on mutating calls. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
15
|
+
- Add `RampsController.registerMoneyAccountWallet({ address })` method and the `RampsController:registerMoneyAccountWallet` messenger action (moved from `@metamask/kyc-controller`). Resolves the MoonPay Iron customer id via Profile Sync → neobank-proxy external-id lookup, signs the Monad ownership message via `KeyringController:signPersonalMessage`, and registers the self-hosted wallet through the neobank-proxy — including `409` disambiguation, transient-failure reconciliation, and UTC date rollover re-signing ([#9850](https://github.com/MetaMask/core/pull/9850), [#9847](https://github.com/MetaMask/core/pull/9847), [#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
16
|
+
- Add `lookupUnavailable` to the exported `MoneyAccountWalletRegistrationResult` union. `RampsController.registerMoneyAccountWallet` returns `{ type: 'lookupUnavailable', error }` when the self-hosted address list cannot be fetched or parsed, instead of throwing, so callers do not treat a failed lookup as unregistered. ([#9930](https://github.com/MetaMask/core/pull/9930))
|
|
17
|
+
- Add `NeoBankService.getMoonpayCustomerId`, `NeoBankService.getWalletRegistrationStatus`, and `NeoBankService.registerSelfHostedWallet` methods and messenger actions, targeting the transparent neobank routes (`GET /neobank/customers/{external_id}/external`, `GET /neobank/addresses/crypto/{customer_id}`, `POST /neobank/addresses/crypto/selfhosted`) with client-side Monad filtering, `Idempotency-Key` support, and upstream error bodies mirrored 1:1. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
18
|
+
- Export the wallet registration types (`SelfHostedRegistration`, `RegistrationStatus`, `RegistrationOutcome`, `WalletRegistrationError`, `WalletRegistrationErrorKind`, `MoneyAccountWalletRegistrationResult`) and `buildOwnershipMessage` (moved from `@metamask/kyc-controller`). ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Point `NeoBankService.getAutoramp` at `GET /neobank/autoramps/{id}` (neobank-proxy global `/neobank` prefix) instead of `/api/v2/autoramps/{id}`, so Core matches the proxy that ships. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Keep the local `customerId` / `walletAddress` when a remote autoramp snapshot omits or blanks them. The proxy sends empty identity fields on partial status pushes, and `applyAutorampRemoteStatus` / `mapNeoBankAutorampToRemoteSnapshot` treated those as a clear, wiping valid local values during refresh-on-load and websocket pushes. ([#9861](https://github.com/MetaMask/core/pull/9861), [#9853](https://github.com/MetaMask/core/pull/9853), [#9930](https://github.com/MetaMask/core/pull/9930))
|
|
27
|
+
|
|
28
|
+
## [20.2.0]
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Add optional `clientProduct` and `clientVersion` constructor options on `RampsService` and `TransakService`, sent on every on-ramp API fetch as `clientProduct` / `clientVersion` query params so the API can evaluate version-gated feature flags per client. Identity travels in the URL (not headers) because the on-ramp CDN cache key is the URL. Also exports the `RampsClientIdentity` type, the `addRampsClientIdentityParams` helper, and the param name constants. ([#9983](https://github.com/MetaMask/core/pull/9983))
|
|
33
|
+
|
|
34
|
+
## [20.1.0]
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- Add `getPaymentMethodsForContext(options)` and `RampsController:getPaymentMethodsForContext` messenger action for context-scoped payment-method retrieval aligned with `getQuotes` provider resolution ([#9801](https://github.com/MetaMask/core/pull/9801))
|
|
39
|
+
- Supports explicit `providers`, selected-provider (UB2) context, and headless auto-select / restrict paths, including `moneyHeadlessAllProviders` widening with allowlist pick-survivor intersection.
|
|
40
|
+
- Request-only by default (`updateState` unset/false): does not mutate Buy `paymentMethods.data` / `.selected`.
|
|
41
|
+
- Fans out per contributing provider and dedupes by canonical payment id, keeping the first-seen entry. Payment-method metadata is provider-invariant: the API serves it from a per-region catalog and the `provider` query narrows that catalog by id-set membership without rewriting fields, so colliding entries carry identical values.
|
|
42
|
+
- Returns a single provider's payment-method list unchanged; deduping applies only to multi-provider fan-out.
|
|
43
|
+
- Normalizes stored region codes before stateful context writes while keeping missing-region checks fail-closed.
|
|
44
|
+
- Partial provider failures still return methods from successful fetches.
|
|
45
|
+
- Throws when `updateState: true` resolves more than one provider, before any payment-method fetch is issued. The shared Buy catalog has one slot per region, token, and selected provider, so a fan-out write cannot be ordered against a concurrent one. Callers wanting a multi-provider catalog must pass `updateState: false` and read the returned `methods`.
|
|
46
|
+
- Export `normalizeRampsAssetId()` so consuming clients can canonicalize CAIP-19 asset ids the way the Ramps API expects instead of maintaining duplicate copies of the rule ([#9801](https://github.com/MetaMask/core/pull/9801))
|
|
47
|
+
- Lowercases `eip155` asset ids, matching the namespace case-insensitively, and passes other namespaces through verbatim so case-sensitive references (Solana base58, bitcoin bech32) are preserved.
|
|
13
48
|
- Export `TERMINAL_ORDER_STATUSES` and `isTerminalOrderStatus()` so consuming clients can share the controller's terminal order status set instead of maintaining duplicate copies. ([#9679](https://github.com/MetaMask/core/pull/9679))
|
|
14
49
|
|
|
15
50
|
### Changed
|
|
16
51
|
|
|
17
52
|
- Preserve backend provider ranking metadata in `RampsService.getProviders` and `RampsController.getProviders` responses. ([#9955](https://github.com/MetaMask/core/pull/9955))
|
|
18
53
|
- Bump `@metamask/remote-feature-flag-controller` from `^5.0.0` to `^6.0.0` ([#9945](https://github.com/MetaMask/core/pull/9945))
|
|
54
|
+
- Bump `@metamask/remote-feature-flag-controller` from `^5.0.0` to `^6.1.0` ([#9945](https://github.com/MetaMask/core/pull/9945), [#9980](https://github.com/MetaMask/core/pull/9980))
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
|
|
58
|
+
- `providerServesAsset()` and `getProvidersServingAsset()` no longer lowercase non-EVM CAIP-19 asset references when matching a provider's `supportedCryptoCurrencies` ([#9801](https://github.com/MetaMask/core/pull/9801))
|
|
59
|
+
- Solana base58 and bitcoin bech32 references are case-sensitive, so lowercasing both sides could report a provider as serving an asset it does not serve. EVM ids still match regardless of checksum casing.
|
|
19
60
|
|
|
20
61
|
## [20.0.0]
|
|
21
62
|
|
|
@@ -523,7 +564,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
523
564
|
- Add `OnRampService` for interacting with the OnRamp API
|
|
524
565
|
- Add geolocation detection via IP address lookup
|
|
525
566
|
|
|
526
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.
|
|
567
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.2.0...HEAD
|
|
568
|
+
[20.2.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.1.0...@metamask/ramps-controller@20.2.0
|
|
569
|
+
[20.1.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@20.0.0...@metamask/ramps-controller@20.1.0
|
|
527
570
|
[20.0.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@19.0.0...@metamask/ramps-controller@20.0.0
|
|
528
571
|
[19.0.0]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@18.0.1...@metamask/ramps-controller@19.0.0
|
|
529
572
|
[18.0.1]: https://github.com/MetaMask/core/compare/@metamask/ramps-controller@18.0.0...@metamask/ramps-controller@18.0.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService-method-action-types.cjs","sourceRoot":"","sources":["../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,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto generated.
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
import type { NeoBankService } from "./NeoBankService.cjs";
|
|
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.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService-method-action-types.d.cts","sourceRoot":"","sources":["../src/NeoBankService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,6BAA4B;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,+BAA+B,CAAC;IACtC,OAAO,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,cAAc,CAAC,6BAA6B,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,IAAI,EAAE,oCAAoC,CAAC;IAC3C,OAAO,EAAE,cAAc,CAAC,qBAAqB,CAAC,CAAC;CAChD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,cAAc,CAAC,yBAAyB,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,qCAAqC,CAAC;IAC5C,OAAO,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAC;CACjD,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,cAAc,CAAC,6BAA6B,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,+BAA+B,GAC/B,sCAAsC,GACtC,oCAAoC,GACpC,kCAAkC,GAClC,+CAA+C,GAC/C,uCAAuC,GACvC,2CAA2C,GAC3C,wCAAwC,GACxC,+CAA+C,GAC/C,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto generated.
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
import type { NeoBankService } from "./NeoBankService.mjs";
|
|
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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService-method-action-types.d.mts","sourceRoot":"","sources":["../src/NeoBankService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,6BAA4B;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,+BAA+B,CAAC;IACtC,OAAO,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,cAAc,CAAC,6BAA6B,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,IAAI,EAAE,oCAAoC,CAAC;IAC3C,OAAO,EAAE,cAAc,CAAC,qBAAqB,CAAC,CAAC;CAChD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,cAAc,CAAC,yBAAyB,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,qCAAqC,CAAC;IAC5C,OAAO,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAC;CACjD,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,cAAc,CAAC,6BAA6B,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,+BAA+B,GAC/B,sCAAsC,GACtC,oCAAoC,GACpC,kCAAkC,GAClC,+CAA+C,GAC/C,uCAAuC,GACvC,2CAA2C,GAC3C,wCAAwC,GACxC,+CAA+C,GAC/C,4CAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeoBankService-method-action-types.mjs","sourceRoot":"","sources":["../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"]}
|