@metamask-previews/ramps-controller 20.2.0-preview-6ed11f88f → 20.2.0-preview-2d576f0c9

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.
Files changed (142) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/NeoBankService-method-action-types.cjs +7 -0
  3. package/dist/NeoBankService-method-action-types.cjs.map +1 -0
  4. package/dist/NeoBankService-method-action-types.d.cts +126 -0
  5. package/dist/NeoBankService-method-action-types.d.cts.map +1 -0
  6. package/dist/NeoBankService-method-action-types.d.mts +126 -0
  7. package/dist/NeoBankService-method-action-types.d.mts.map +1 -0
  8. package/dist/NeoBankService-method-action-types.mjs +6 -0
  9. package/dist/NeoBankService-method-action-types.mjs.map +1 -0
  10. package/dist/NeoBankService.cjs +387 -0
  11. package/dist/NeoBankService.cjs.map +1 -0
  12. package/dist/NeoBankService.d.cts +191 -0
  13. package/dist/NeoBankService.d.cts.map +1 -0
  14. package/dist/NeoBankService.d.mts +191 -0
  15. package/dist/NeoBankService.d.mts.map +1 -0
  16. package/dist/NeoBankService.mjs +379 -0
  17. package/dist/NeoBankService.mjs.map +1 -0
  18. package/dist/RampsController-method-action-types.cjs.map +1 -1
  19. package/dist/RampsController-method-action-types.d.cts +104 -3
  20. package/dist/RampsController-method-action-types.d.cts.map +1 -1
  21. package/dist/RampsController-method-action-types.d.mts +104 -3
  22. package/dist/RampsController-method-action-types.d.mts.map +1 -1
  23. package/dist/RampsController-method-action-types.mjs.map +1 -1
  24. package/dist/RampsController.cjs +585 -26
  25. package/dist/RampsController.cjs.map +1 -1
  26. package/dist/RampsController.d.cts +215 -10
  27. package/dist/RampsController.d.cts.map +1 -1
  28. package/dist/RampsController.d.mts +215 -10
  29. package/dist/RampsController.d.mts.map +1 -1
  30. package/dist/RampsController.mjs +584 -25
  31. package/dist/RampsController.mjs.map +1 -1
  32. package/dist/RampsService.cjs.map +1 -1
  33. package/dist/RampsService.d.cts +6 -0
  34. package/dist/RampsService.d.cts.map +1 -1
  35. package/dist/RampsService.d.mts +6 -0
  36. package/dist/RampsService.d.mts.map +1 -1
  37. package/dist/RampsService.mjs.map +1 -1
  38. package/dist/TransakService.cjs +3 -10
  39. package/dist/TransakService.cjs.map +1 -1
  40. package/dist/TransakService.d.cts +1 -3
  41. package/dist/TransakService.d.cts.map +1 -1
  42. package/dist/TransakService.d.mts +1 -3
  43. package/dist/TransakService.d.mts.map +1 -1
  44. package/dist/TransakService.mjs +3 -10
  45. package/dist/TransakService.mjs.map +1 -1
  46. package/dist/autoramp-types.cjs +3 -0
  47. package/dist/autoramp-types.cjs.map +1 -0
  48. package/dist/autoramp-types.d.cts +22 -0
  49. package/dist/autoramp-types.d.cts.map +1 -0
  50. package/dist/autoramp-types.d.mts +22 -0
  51. package/dist/autoramp-types.d.mts.map +1 -0
  52. package/dist/autoramp-types.mjs +2 -0
  53. package/dist/autoramp-types.mjs.map +1 -0
  54. package/dist/autorampAccount.cjs +155 -0
  55. package/dist/autorampAccount.cjs.map +1 -0
  56. package/dist/autorampAccount.d.cts +126 -0
  57. package/dist/autorampAccount.d.cts.map +1 -0
  58. package/dist/autorampAccount.d.mts +126 -0
  59. package/dist/autorampAccount.d.mts.map +1 -0
  60. package/dist/autorampAccount.mjs +147 -0
  61. package/dist/autorampAccount.mjs.map +1 -0
  62. package/dist/index.cjs +36 -1
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.cts +14 -3
  65. package/dist/index.d.cts.map +1 -1
  66. package/dist/index.d.mts +14 -3
  67. package/dist/index.d.mts.map +1 -1
  68. package/dist/index.mjs +6 -1
  69. package/dist/index.mjs.map +1 -1
  70. package/dist/order-syncing/constants.cjs +26 -0
  71. package/dist/order-syncing/constants.cjs.map +1 -0
  72. package/dist/order-syncing/constants.d.cts +23 -0
  73. package/dist/order-syncing/constants.d.cts.map +1 -0
  74. package/dist/order-syncing/constants.d.mts +23 -0
  75. package/dist/order-syncing/constants.d.mts.map +1 -0
  76. package/dist/order-syncing/constants.mjs +23 -0
  77. package/dist/order-syncing/constants.mjs.map +1 -0
  78. package/dist/order-syncing/controller-integration.cjs +365 -0
  79. package/dist/order-syncing/controller-integration.cjs.map +1 -0
  80. package/dist/order-syncing/controller-integration.d.cts +86 -0
  81. package/dist/order-syncing/controller-integration.d.cts.map +1 -0
  82. package/dist/order-syncing/controller-integration.d.mts +86 -0
  83. package/dist/order-syncing/controller-integration.d.mts.map +1 -0
  84. package/dist/order-syncing/controller-integration.mjs +359 -0
  85. package/dist/order-syncing/controller-integration.mjs.map +1 -0
  86. package/dist/order-syncing/index.cjs +24 -0
  87. package/dist/order-syncing/index.cjs.map +1 -0
  88. package/dist/order-syncing/index.d.cts +7 -0
  89. package/dist/order-syncing/index.d.cts.map +1 -0
  90. package/dist/order-syncing/index.d.mts +7 -0
  91. package/dist/order-syncing/index.d.mts.map +1 -0
  92. package/dist/order-syncing/index.mjs +5 -0
  93. package/dist/order-syncing/index.mjs.map +1 -0
  94. package/dist/order-syncing/sync-utils.cjs +31 -0
  95. package/dist/order-syncing/sync-utils.cjs.map +1 -0
  96. package/dist/order-syncing/sync-utils.d.cts +9 -0
  97. package/dist/order-syncing/sync-utils.d.cts.map +1 -0
  98. package/dist/order-syncing/sync-utils.d.mts +9 -0
  99. package/dist/order-syncing/sync-utils.d.mts.map +1 -0
  100. package/dist/order-syncing/sync-utils.mjs +27 -0
  101. package/dist/order-syncing/sync-utils.mjs.map +1 -0
  102. package/dist/order-syncing/types.cjs +3 -0
  103. package/dist/order-syncing/types.cjs.map +1 -0
  104. package/dist/order-syncing/types.d.cts +66 -0
  105. package/dist/order-syncing/types.d.cts.map +1 -0
  106. package/dist/order-syncing/types.d.mts +66 -0
  107. package/dist/order-syncing/types.d.mts.map +1 -0
  108. package/dist/order-syncing/types.mjs +2 -0
  109. package/dist/order-syncing/types.mjs.map +1 -0
  110. package/dist/order-syncing/utils.cjs +151 -0
  111. package/dist/order-syncing/utils.cjs.map +1 -0
  112. package/dist/order-syncing/utils.d.cts +73 -0
  113. package/dist/order-syncing/utils.d.cts.map +1 -0
  114. package/dist/order-syncing/utils.d.mts +73 -0
  115. package/dist/order-syncing/utils.d.mts.map +1 -0
  116. package/dist/order-syncing/utils.mjs +144 -0
  117. package/dist/order-syncing/utils.mjs.map +1 -0
  118. package/dist/ownership-message.cjs +26 -0
  119. package/dist/ownership-message.cjs.map +1 -0
  120. package/dist/ownership-message.d.cts +22 -0
  121. package/dist/ownership-message.d.cts.map +1 -0
  122. package/dist/ownership-message.d.mts +22 -0
  123. package/dist/ownership-message.d.mts.map +1 -0
  124. package/dist/ownership-message.mjs +22 -0
  125. package/dist/ownership-message.mjs.map +1 -0
  126. package/dist/wallet-registration-machine.cjs +144 -0
  127. package/dist/wallet-registration-machine.cjs.map +1 -0
  128. package/dist/wallet-registration-machine.d.cts +81 -0
  129. package/dist/wallet-registration-machine.d.cts.map +1 -0
  130. package/dist/wallet-registration-machine.d.mts +81 -0
  131. package/dist/wallet-registration-machine.d.mts.map +1 -0
  132. package/dist/wallet-registration-machine.mjs +139 -0
  133. package/dist/wallet-registration-machine.mjs.map +1 -0
  134. package/dist/wallet-registration-service.cjs +351 -0
  135. package/dist/wallet-registration-service.cjs.map +1 -0
  136. package/dist/wallet-registration-service.d.cts +144 -0
  137. package/dist/wallet-registration-service.d.cts.map +1 -0
  138. package/dist/wallet-registration-service.d.mts +144 -0
  139. package/dist/wallet-registration-service.d.mts.map +1 -0
  140. package/dist/wallet-registration-service.mjs +344 -0
  141. package/dist/wallet-registration-service.mjs.map +1 -0
  142. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -7,9 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - 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))
13
+
14
+ - 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))
15
+ - Add V2 ramps order syncing with User Storage ([#9474](https://github.com/MetaMask/core/pull/9474))
16
+ - Synchronize orders across clients for the same SRP using timestamp-based last-write-wins conflict resolution, soft-delete tombstones, and incremental add/update/delete pushes
17
+ - Feature key: `rampsOrders`; hosts call `RampsController:syncOrdersWithUserStorage` on unlock when Backup & Sync + ramps syncing are enabled
18
+ - Persist optional `lastUpdatedAt` on local `RampsOrder` entries for LWW (not returned by the V2 API)
19
+ - Strip `paymentDetails` from remote payloads (PII stays local-only)
20
+ - Soft deletes use remote tombstones; retention matches contact sync (no remote purge/compaction)
21
+ - Mid-sync local mutations coalesce into a follow-up full sync pass so uploads are not dropped during `performBatchSetStorage`
22
+ - Polling via `getOrder` → `addOrder` stamps `lastUpdatedAt` so status refreshes participate in LWW
23
+ - Normalize ISO and numeric-string `createdAt` values from Portfolio and older clients to epoch milliseconds
24
+ - Optional `onOrderSyncErroneousSituation` (full sync and incremental push/delete) and `trace` callbacks
25
+ - 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))
26
+
10
27
  ### Changed
11
28
 
12
- - Add an optional fee-exclusion argument to native Transak buy quotes while preserving fee exclusion as the default. ([#9317](https://github.com/MetaMask/core/pull/9317))
29
+ - **BREAKING:** `RampsControllerMessenger` now requires these actions to be delegated for order syncing ([#9474](https://github.com/MetaMask/core/pull/9474)):
30
+ - `UserStorageController:getState`
31
+ - `UserStorageController:performGetStorageAllFeatureEntries`
32
+ - `UserStorageController:performBatchSetStorage`
33
+ - `AuthenticationController:isSignedIn`
13
34
 
14
35
  ## [20.2.0]
15
36
 
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * This file is auto generated.
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=NeoBankService-method-action-types.cjs.map
@@ -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,C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A4C,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,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,GAClC,+CAA+C,GAC/C,uCAAuC,GACvC,2CAA2C,GAC3C,wCAAwC,GACxC,+CAA+C,GAC/C,4CAA4C,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is auto generated.
3
+ * Do not edit manually.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=NeoBankService-method-action-types.mjs.map
@@ -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"]}