@metamask-previews/ramps-controller 20.2.0-preview-e0510042f → 20.2.0-preview-fe4b3be11

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 (108) hide show
  1. package/CHANGELOG.md +3 -4
  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 +91 -8
  20. package/dist/RampsController-method-action-types.d.cts.map +1 -1
  21. package/dist/RampsController-method-action-types.d.mts +91 -8
  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 +375 -20
  25. package/dist/RampsController.cjs.map +1 -1
  26. package/dist/RampsController.d.cts +153 -14
  27. package/dist/RampsController.d.cts.map +1 -1
  28. package/dist/RampsController.d.mts +153 -14
  29. package/dist/RampsController.d.mts.map +1 -1
  30. package/dist/RampsController.mjs +374 -19
  31. package/dist/RampsController.mjs.map +1 -1
  32. package/dist/RampsService-method-action-types.cjs.map +1 -1
  33. package/dist/RampsService-method-action-types.d.cts +0 -1
  34. package/dist/RampsService-method-action-types.d.cts.map +1 -1
  35. package/dist/RampsService-method-action-types.d.mts +0 -1
  36. package/dist/RampsService-method-action-types.d.mts.map +1 -1
  37. package/dist/RampsService-method-action-types.mjs.map +1 -1
  38. package/dist/RampsService.cjs +0 -4
  39. package/dist/RampsService.cjs.map +1 -1
  40. package/dist/RampsService.d.cts +0 -23
  41. package/dist/RampsService.d.cts.map +1 -1
  42. package/dist/RampsService.d.mts +0 -23
  43. package/dist/RampsService.d.mts.map +1 -1
  44. package/dist/RampsService.mjs +0 -4
  45. package/dist/RampsService.mjs.map +1 -1
  46. package/dist/TransakService-method-action-types.cjs.map +1 -1
  47. package/dist/TransakService-method-action-types.d.cts +2 -10
  48. package/dist/TransakService-method-action-types.d.cts.map +1 -1
  49. package/dist/TransakService-method-action-types.d.mts +2 -10
  50. package/dist/TransakService-method-action-types.d.mts.map +1 -1
  51. package/dist/TransakService-method-action-types.mjs.map +1 -1
  52. package/dist/TransakService.cjs +5 -45
  53. package/dist/TransakService.cjs.map +1 -1
  54. package/dist/TransakService.d.cts +3 -15
  55. package/dist/TransakService.d.cts.map +1 -1
  56. package/dist/TransakService.d.mts +3 -15
  57. package/dist/TransakService.d.mts.map +1 -1
  58. package/dist/TransakService.mjs +5 -45
  59. package/dist/TransakService.mjs.map +1 -1
  60. package/dist/autoramp-types.cjs +3 -0
  61. package/dist/autoramp-types.cjs.map +1 -0
  62. package/dist/autoramp-types.d.cts +22 -0
  63. package/dist/autoramp-types.d.cts.map +1 -0
  64. package/dist/autoramp-types.d.mts +22 -0
  65. package/dist/autoramp-types.d.mts.map +1 -0
  66. package/dist/autoramp-types.mjs +2 -0
  67. package/dist/autoramp-types.mjs.map +1 -0
  68. package/dist/autorampAccount.cjs +155 -0
  69. package/dist/autorampAccount.cjs.map +1 -0
  70. package/dist/autorampAccount.d.cts +126 -0
  71. package/dist/autorampAccount.d.cts.map +1 -0
  72. package/dist/autorampAccount.d.mts +126 -0
  73. package/dist/autorampAccount.d.mts.map +1 -0
  74. package/dist/autorampAccount.mjs +147 -0
  75. package/dist/autorampAccount.mjs.map +1 -0
  76. package/dist/index.cjs +20 -1
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +13 -4
  79. package/dist/index.d.cts.map +1 -1
  80. package/dist/index.d.mts +13 -4
  81. package/dist/index.d.mts.map +1 -1
  82. package/dist/index.mjs +5 -1
  83. package/dist/index.mjs.map +1 -1
  84. package/dist/ownership-message.cjs +26 -0
  85. package/dist/ownership-message.cjs.map +1 -0
  86. package/dist/ownership-message.d.cts +22 -0
  87. package/dist/ownership-message.d.cts.map +1 -0
  88. package/dist/ownership-message.d.mts +22 -0
  89. package/dist/ownership-message.d.mts.map +1 -0
  90. package/dist/ownership-message.mjs +22 -0
  91. package/dist/ownership-message.mjs.map +1 -0
  92. package/dist/wallet-registration-machine.cjs +144 -0
  93. package/dist/wallet-registration-machine.cjs.map +1 -0
  94. package/dist/wallet-registration-machine.d.cts +81 -0
  95. package/dist/wallet-registration-machine.d.cts.map +1 -0
  96. package/dist/wallet-registration-machine.d.mts +81 -0
  97. package/dist/wallet-registration-machine.d.mts.map +1 -0
  98. package/dist/wallet-registration-machine.mjs +139 -0
  99. package/dist/wallet-registration-machine.mjs.map +1 -0
  100. package/dist/wallet-registration-service.cjs +351 -0
  101. package/dist/wallet-registration-service.cjs.map +1 -0
  102. package/dist/wallet-registration-service.d.cts +144 -0
  103. package/dist/wallet-registration-service.d.cts.map +1 -0
  104. package/dist/wallet-registration-service.d.mts +144 -0
  105. package/dist/wallet-registration-service.d.mts.map +1 -0
  106. package/dist/wallet-registration-service.mjs +344 -0
  107. package/dist/wallet-registration-service.mjs.map +1 -0
  108. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,10 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
- - Add an `isFeeExcludedFromFiat` option to `getQuotes` so callers naming one provider can request quotes whose fees are charged on top of the requested fiat amount rather than taken out of it. Multi-provider and default requests remain fee-inclusive so unlike fee modes are not ranked together. ([#9317](https://github.com/MetaMask/core/pull/9317))
13
- - Add optional `extraFee` and `feeMode` fields to ramps quotes, including the requested and effective fee mode reported by the ramps API. ([#9317](https://github.com/MetaMask/core/pull/9317))
14
- - Add an optional sixth `isFeeExcludedFromFiat` argument to `RampsController.transakGetBuyQuote` and `TransakService.getBuyQuote`. Transak native quotes validate fee-on-top principal arithmetic before reporting it as effective, and retain the stable CAIP request identifiers as `requestedAssetId` and `requestedChainId` because the Transak response exposes display codes only. Existing callers remain fee-inclusive by default. ([#9317](https://github.com/MetaMask/core/pull/9317))
15
- - Document `isFeeExcludedFromFiat` as a supported `extraParams` key on `createWidgetUrl` and `generatePaymentWidgetUrl`, so a flow priced fee-on-top can make the Transak widget charge in the same fee mode as the quote the user was shown. Neither method sends it by default: a flow priced fee-inclusive that set it would charge the user more than the amount on screen. Requires the ramps API widget-url proxy to allowlist the parameter, otherwise the proxy rejects the session request. ([#9317](https://github.com/MetaMask/core/pull/9317))
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))
16
15
 
17
16
  ## [20.2.0]
18
17
 
@@ -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,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,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"]}