@metamask-previews/ramps-controller 20.0.0-preview-e57e5c3dc → 20.0.0-preview-c34a16a37
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 +16 -1
- 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 +335 -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 +327 -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 +109 -1
- package/dist/RampsController-method-action-types.d.cts.map +1 -1
- package/dist/RampsController-method-action-types.d.mts +109 -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 +463 -3
- package/dist/RampsController.cjs.map +1 -1
- package/dist/RampsController.d.cts +201 -5
- package/dist/RampsController.d.cts.map +1 -1
- package/dist/RampsController.d.mts +201 -5
- package/dist/RampsController.d.mts.map +1 -1
- package/dist/RampsController.mjs +462 -2
- package/dist/RampsController.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/index.cjs +30 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -1
- 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/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 +335 -0
- package/dist/wallet-registration-service.cjs.map +1 -0
- package/dist/wallet-registration-service.d.cts +144 -0
- package/dist/wallet-registration-service.d.cts.map +1 -0
- package/dist/wallet-registration-service.d.mts +144 -0
- package/dist/wallet-registration-service.d.mts.map +1 -0
- package/dist/wallet-registration-service.mjs +328 -0
- package/dist/wallet-registration-service.mjs.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
-
|
|
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))
|
|
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))
|
|
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))
|
|
15
|
+
- 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), [#9853](https://github.com/MetaMask/core/pull/9853))
|
|
16
|
+
- 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))
|
|
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))
|
|
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))
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Resolve autoramp / Money Account wallet-registration customer id only via Profile Sync + `NeoBankService:getCustomerByExternalId` (prefer `canonicalProfileId`, else `profileId`). Stop calling `KycController:getCustomerIdentity` from ramps; remove the local `KycControllerGetCustomerIdentityAction` type and drop that action from `RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS`. ([#9859](https://github.com/MetaMask/core/pull/9859), [#9853](https://github.com/MetaMask/core/pull/9853))
|
|
23
|
+
- 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))
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- 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))
|
|
13
28
|
|
|
14
29
|
## [20.0.0]
|
|
15
30
|
|
|
@@ -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"]}
|