@metamask-previews/ramps-controller 20.2.0-preview-8bfa290fb → 20.2.0-preview-ec24abb79

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 (88) hide show
  1. package/CHANGELOG.md +2 -4
  2. package/dist/RampsController-method-action-types.cjs.map +1 -1
  3. package/dist/RampsController-method-action-types.d.cts +3 -91
  4. package/dist/RampsController-method-action-types.d.cts.map +1 -1
  5. package/dist/RampsController-method-action-types.d.mts +3 -91
  6. package/dist/RampsController-method-action-types.d.mts.map +1 -1
  7. package/dist/RampsController-method-action-types.mjs.map +1 -1
  8. package/dist/RampsController.cjs +6 -374
  9. package/dist/RampsController.cjs.map +1 -1
  10. package/dist/RampsController.d.cts +8 -153
  11. package/dist/RampsController.d.cts.map +1 -1
  12. package/dist/RampsController.d.mts +8 -153
  13. package/dist/RampsController.d.mts.map +1 -1
  14. package/dist/RampsController.mjs +5 -373
  15. package/dist/RampsController.mjs.map +1 -1
  16. package/dist/TransakService.cjs +10 -3
  17. package/dist/TransakService.cjs.map +1 -1
  18. package/dist/TransakService.d.cts +3 -1
  19. package/dist/TransakService.d.cts.map +1 -1
  20. package/dist/TransakService.d.mts +3 -1
  21. package/dist/TransakService.d.mts.map +1 -1
  22. package/dist/TransakService.mjs +10 -3
  23. package/dist/TransakService.mjs.map +1 -1
  24. package/dist/index.cjs +1 -20
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +3 -12
  27. package/dist/index.d.cts.map +1 -1
  28. package/dist/index.d.mts +3 -12
  29. package/dist/index.d.mts.map +1 -1
  30. package/dist/index.mjs +1 -5
  31. package/dist/index.mjs.map +1 -1
  32. package/package.json +1 -1
  33. package/dist/NeoBankService-method-action-types.cjs +0 -7
  34. package/dist/NeoBankService-method-action-types.cjs.map +0 -1
  35. package/dist/NeoBankService-method-action-types.d.cts +0 -126
  36. package/dist/NeoBankService-method-action-types.d.cts.map +0 -1
  37. package/dist/NeoBankService-method-action-types.d.mts +0 -126
  38. package/dist/NeoBankService-method-action-types.d.mts.map +0 -1
  39. package/dist/NeoBankService-method-action-types.mjs +0 -6
  40. package/dist/NeoBankService-method-action-types.mjs.map +0 -1
  41. package/dist/NeoBankService.cjs +0 -387
  42. package/dist/NeoBankService.cjs.map +0 -1
  43. package/dist/NeoBankService.d.cts +0 -191
  44. package/dist/NeoBankService.d.cts.map +0 -1
  45. package/dist/NeoBankService.d.mts +0 -191
  46. package/dist/NeoBankService.d.mts.map +0 -1
  47. package/dist/NeoBankService.mjs +0 -379
  48. package/dist/NeoBankService.mjs.map +0 -1
  49. package/dist/autoramp-types.cjs +0 -3
  50. package/dist/autoramp-types.cjs.map +0 -1
  51. package/dist/autoramp-types.d.cts +0 -22
  52. package/dist/autoramp-types.d.cts.map +0 -1
  53. package/dist/autoramp-types.d.mts +0 -22
  54. package/dist/autoramp-types.d.mts.map +0 -1
  55. package/dist/autoramp-types.mjs +0 -2
  56. package/dist/autoramp-types.mjs.map +0 -1
  57. package/dist/autorampAccount.cjs +0 -155
  58. package/dist/autorampAccount.cjs.map +0 -1
  59. package/dist/autorampAccount.d.cts +0 -126
  60. package/dist/autorampAccount.d.cts.map +0 -1
  61. package/dist/autorampAccount.d.mts +0 -126
  62. package/dist/autorampAccount.d.mts.map +0 -1
  63. package/dist/autorampAccount.mjs +0 -147
  64. package/dist/autorampAccount.mjs.map +0 -1
  65. package/dist/ownership-message.cjs +0 -26
  66. package/dist/ownership-message.cjs.map +0 -1
  67. package/dist/ownership-message.d.cts +0 -22
  68. package/dist/ownership-message.d.cts.map +0 -1
  69. package/dist/ownership-message.d.mts +0 -22
  70. package/dist/ownership-message.d.mts.map +0 -1
  71. package/dist/ownership-message.mjs +0 -22
  72. package/dist/ownership-message.mjs.map +0 -1
  73. package/dist/wallet-registration-machine.cjs +0 -144
  74. package/dist/wallet-registration-machine.cjs.map +0 -1
  75. package/dist/wallet-registration-machine.d.cts +0 -81
  76. package/dist/wallet-registration-machine.d.cts.map +0 -1
  77. package/dist/wallet-registration-machine.d.mts +0 -81
  78. package/dist/wallet-registration-machine.d.mts.map +0 -1
  79. package/dist/wallet-registration-machine.mjs +0 -139
  80. package/dist/wallet-registration-machine.mjs.map +0 -1
  81. package/dist/wallet-registration-service.cjs +0 -351
  82. package/dist/wallet-registration-service.cjs.map +0 -1
  83. package/dist/wallet-registration-service.d.cts +0 -144
  84. package/dist/wallet-registration-service.d.cts.map +0 -1
  85. package/dist/wallet-registration-service.d.mts +0 -144
  86. package/dist/wallet-registration-service.d.mts.map +0 -1
  87. package/dist/wallet-registration-service.mjs +0 -344
  88. package/dist/wallet-registration-service.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/ramps-controller",
3
- "version": "20.2.0-preview-8bfa290fb",
3
+ "version": "20.2.0-preview-ec24abb79",
4
4
  "description": "A controller for managing cryptocurrency on/off ramps functionality",
5
5
  "keywords": [
6
6
  "Ethereum",
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,126 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,126 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
1
- /**
2
- * This file is auto generated.
3
- * Do not edit manually.
4
- */
5
- export {};
6
- //# sourceMappingURL=NeoBankService-method-action-types.mjs.map
@@ -1 +0,0 @@
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"]}