@mintmoney/react 0.1.0-alpha.11 → 0.1.0-alpha.12

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 (87) hide show
  1. package/dist/esm/api/checkouts.js +9 -9
  2. package/dist/esm/api/generated.js +544 -592
  3. package/dist/esm/api/index.js +10 -10
  4. package/dist/esm/api/payments.js +17 -21
  5. package/dist/esm/api/types.js +8 -2
  6. package/dist/esm/api/types.js.map +1 -1
  7. package/dist/esm/checkout/container.js +2 -2
  8. package/dist/esm/checkout/index.js +18 -38
  9. package/dist/esm/checkout/modal.js +52 -63
  10. package/dist/esm/checkout/views/back.js +3 -7
  11. package/dist/esm/checkout/views/card-intent/details.js +4 -21
  12. package/dist/esm/checkout/views/crypto-intent/curreny.js +18 -43
  13. package/dist/esm/checkout/views/crypto-intent/curreny.js.map +1 -1
  14. package/dist/esm/checkout/views/crypto-intent/direct-details.js +16 -60
  15. package/dist/esm/checkout/views/crypto-intent/methods.js +19 -27
  16. package/dist/esm/checkout/views/crypto-intent/processing.js +31 -39
  17. package/dist/esm/checkout/views/crypto-intent/processing.js.map +1 -1
  18. package/dist/esm/checkout/views/crypto-intent/success.js +14 -32
  19. package/dist/esm/checkout/views/initial.js +24 -29
  20. package/dist/esm/checkout/views/method-select.js +10 -24
  21. package/dist/esm/components/buttons/index.js +11 -20
  22. package/dist/esm/components/icons/checkMark.js +4 -16
  23. package/dist/esm/components/icons/close.js +4 -19
  24. package/dist/esm/components/icons/index.js +1 -1
  25. package/dist/esm/components/index.js +1 -1
  26. package/dist/esm/components/lists/empty.js +2 -5
  27. package/dist/esm/components/lists/index.js +8 -47
  28. package/dist/esm/components/loading/index.js +6 -47
  29. package/dist/esm/components/modals/index.js +1 -1
  30. package/dist/esm/components/modals/modal-with-views.js +23 -62
  31. package/dist/esm/components/modals/modal.js +11 -67
  32. package/dist/esm/components/modals/use-modal-with-views.js +22 -25
  33. package/dist/esm/components/text/index.js +21 -21
  34. package/dist/esm/config.js +14 -5
  35. package/dist/esm/config.js.map +1 -1
  36. package/dist/esm/context.js +10 -18
  37. package/dist/esm/index.js +1 -1
  38. package/dist/esm/state/checkout/store.js +144 -144
  39. package/dist/esm/state/checkout/store.js.map +1 -1
  40. package/dist/esm/themes/default.js +55 -55
  41. package/dist/esm/themes/index.js +1 -1
  42. package/dist/esm/themes/types.js +1 -1
  43. package/dist/esm/utils/cn.js +1 -1
  44. package/dist/types/api/checkouts.d.ts +5 -5
  45. package/dist/types/api/generated.d.ts +835 -924
  46. package/dist/types/api/index.d.ts +1 -1
  47. package/dist/types/api/payments.d.ts +3 -10
  48. package/dist/types/api/types.d.ts +16 -14
  49. package/dist/types/api/types.d.ts.map +1 -1
  50. package/dist/types/checkout/container.d.ts +2 -12
  51. package/dist/types/checkout/index.d.ts +6 -10
  52. package/dist/types/checkout/modal.d.ts +5 -7
  53. package/dist/types/checkout/views/back.d.ts +3 -5
  54. package/dist/types/checkout/views/card-intent/details.d.ts +1 -1
  55. package/dist/types/checkout/views/crypto-intent/curreny.d.ts +1 -1
  56. package/dist/types/checkout/views/crypto-intent/curreny.d.ts.map +1 -1
  57. package/dist/types/checkout/views/crypto-intent/direct-details.d.ts +2 -4
  58. package/dist/types/checkout/views/crypto-intent/methods.d.ts +1 -1
  59. package/dist/types/checkout/views/crypto-intent/processing.d.ts +1 -1
  60. package/dist/types/checkout/views/crypto-intent/processing.d.ts.map +1 -1
  61. package/dist/types/checkout/views/crypto-intent/success.d.ts +3 -5
  62. package/dist/types/checkout/views/initial.d.ts +3 -5
  63. package/dist/types/checkout/views/method-select.d.ts +1 -1
  64. package/dist/types/components/buttons/index.d.ts +6 -16
  65. package/dist/types/components/icons/checkMark.d.ts +3 -5
  66. package/dist/types/components/icons/close.d.ts +3 -5
  67. package/dist/types/components/icons/index.d.ts +1 -1
  68. package/dist/types/components/index.d.ts +1 -1
  69. package/dist/types/components/lists/empty.d.ts +3 -5
  70. package/dist/types/components/lists/index.d.ts +9 -17
  71. package/dist/types/components/loading/index.d.ts +4 -4
  72. package/dist/types/components/modals/index.d.ts +1 -1
  73. package/dist/types/components/modals/modal-with-views.d.ts +18 -23
  74. package/dist/types/components/modals/modal.d.ts +9 -17
  75. package/dist/types/components/modals/use-modal-with-views.d.ts +6 -9
  76. package/dist/types/components/text/index.d.ts +7 -17
  77. package/dist/types/config.d.ts +16 -12
  78. package/dist/types/config.d.ts.map +1 -1
  79. package/dist/types/context.d.ts +4 -7
  80. package/dist/types/index.d.ts +1 -1
  81. package/dist/types/state/checkout/store.d.ts +51 -74
  82. package/dist/types/state/checkout/store.d.ts.map +1 -1
  83. package/dist/types/themes/default.d.ts +1 -1
  84. package/dist/types/themes/index.d.ts +1 -1
  85. package/dist/types/themes/types.d.ts +26 -25
  86. package/dist/types/utils/cn.d.ts +1 -1
  87. package/package.json +1 -1
@@ -1,756 +1,735 @@
1
1
  export interface HealthzListData {
2
- message: string;
2
+ message: string;
3
3
  }
4
4
  export interface OrganizationsCreatePayload {
5
- name: string;
6
- emailAddress: string;
5
+ name: string;
6
+ emailAddress: string;
7
7
  }
8
8
  export interface OrganizationsCreateData {
9
- data: {
10
- id: string;
11
- name: string;
12
- /** @format date-time */
13
- createdAt: string;
14
- /** @format date-time */
15
- updatedAt: string;
16
- };
17
- meta: {
18
- total: number;
19
- offset: number;
20
- limit: number;
21
- } | null;
22
- /** @default 200 */
23
- status?: number;
24
- error: string | null;
9
+ data: {
10
+ id: string;
11
+ name: string;
12
+ /** @format date-time */
13
+ createdAt: string;
14
+ /** @format date-time */
15
+ updatedAt: string;
16
+ };
17
+ meta: {
18
+ total: number;
19
+ offset: number;
20
+ limit: number;
21
+ } | null;
22
+ /** @default 200 */
23
+ status?: number;
24
+ error: string | null;
25
25
  }
26
26
  export interface AccountsMeListData {
27
- data: {
28
- id: string;
29
- emailAddress: string;
30
- organization: {
31
- id: string;
32
- name: string;
33
- /** @format date-time */
34
- createdAt: string;
35
- /** @format date-time */
36
- updatedAt: string;
27
+ data: {
28
+ id: string;
29
+ emailAddress: string;
30
+ organization: {
31
+ id: string;
32
+ name: string;
33
+ /** @format date-time */
34
+ createdAt: string;
35
+ /** @format date-time */
36
+ updatedAt: string;
37
+ };
38
+ /** @format date-time */
39
+ createdAt: string;
40
+ /** @format date-time */
41
+ updatedAt: string;
37
42
  };
38
- /** @format date-time */
39
- createdAt: string;
40
- /** @format date-time */
41
- updatedAt: string;
42
- };
43
- meta: {
44
- total: number;
45
- offset: number;
46
- limit: number;
47
- } | null;
48
- /** @default 200 */
49
- status?: number;
50
- error: string | null;
43
+ meta: {
44
+ total: number;
45
+ offset: number;
46
+ limit: number;
47
+ } | null;
48
+ /** @default 200 */
49
+ status?: number;
50
+ error: string | null;
51
51
  }
52
52
  export interface PaymentsCreatePayload {
53
- currency: string;
54
- checkout_id: string;
55
- order_id?: string | null;
56
- customer_id?: string;
57
- metadata?: Record<string, string | number>;
58
- line_items?: {
59
- name: string;
60
- quantity: number;
61
- image_url: string;
62
- price: number;
63
- }[];
64
- amount: number;
65
- }
66
- export interface PaymentsCreateData {
67
- data: {
68
- id: string;
69
53
  currency: string;
70
- /** @format date-time */
71
- created_at: string;
72
- /** @format date-time */
73
- updated_at: string;
74
54
  checkout_id: string;
75
- organization_id: string;
76
- status: "pending" | "confirming_payment" | "paid" | "failed";
77
- is_test: boolean;
78
- payment_attempt?: {
79
- payment_id: string;
80
- asset: string;
81
- amount: number;
82
- amount_formatted: number;
83
- chain: string;
84
- asset_address: string;
85
- destination_address: string;
86
- /** @format date-time */
87
- created_at: string;
88
- /** @format date-time */
89
- updated_at: string;
90
- required_confirmations: number;
91
- };
92
55
  order_id?: string | null;
93
56
  customer_id?: string;
94
57
  metadata?: Record<string, string | number>;
95
58
  line_items?: {
96
- name: string;
97
- quantity: number;
98
- image_url: string;
99
- price: number;
59
+ name: string;
60
+ quantity: number;
61
+ image_url: string;
62
+ price: number;
100
63
  }[];
101
64
  amount: number;
102
- };
103
- meta: {
104
- total: number;
105
- offset: number;
106
- limit: number;
107
- } | null;
108
- /** @default 200 */
109
- status?: number;
110
- error: string | null;
65
+ }
66
+ export interface PaymentsCreateData {
67
+ data: {
68
+ id: string;
69
+ currency: string;
70
+ /** @format date-time */
71
+ created_at: string;
72
+ /** @format date-time */
73
+ updated_at: string;
74
+ checkout_id: string;
75
+ organization_id: string;
76
+ status: "pending" | "confirming_payment" | "paid" | "failed";
77
+ is_test: boolean;
78
+ payment_attempt?: {
79
+ payment_id: string;
80
+ asset: string;
81
+ amount: number;
82
+ amount_formatted: number;
83
+ chain: string;
84
+ asset_address: string;
85
+ destination_address: string;
86
+ /** @format date-time */
87
+ created_at: string;
88
+ /** @format date-time */
89
+ updated_at: string;
90
+ required_confirmations: number;
91
+ };
92
+ order_id?: string | null;
93
+ customer_id?: string;
94
+ metadata?: Record<string, string | number>;
95
+ line_items?: {
96
+ name: string;
97
+ quantity: number;
98
+ image_url: string;
99
+ price: number;
100
+ }[];
101
+ amount: number;
102
+ };
103
+ meta: {
104
+ total: number;
105
+ offset: number;
106
+ limit: number;
107
+ } | null;
108
+ /** @default 200 */
109
+ status?: number;
110
+ error: string | null;
111
111
  }
112
112
  export interface PaymentsListParams {
113
- mode?: string;
114
- sort?: (any | string) & {
115
- field?: "created_at";
116
- order?: "asc" | "desc";
117
- };
118
- /** @default 10 */
119
- limit?: number;
120
- /** @default 0 */
121
- offset?: number;
113
+ mode?: string;
114
+ sort?: (any | string) & {
115
+ field?: "created_at";
116
+ order?: "asc" | "desc";
117
+ };
118
+ /** @default 10 */
119
+ limit?: number;
120
+ /** @default 0 */
121
+ offset?: number;
122
122
  }
123
123
  export interface PaymentsListData {
124
- data: {
125
- id: string;
126
- currency: string;
127
- /** @format date-time */
128
- created_at: string;
129
- /** @format date-time */
130
- updated_at: string;
131
- checkout_id: string;
132
- organization_id: string;
133
- status: "pending" | "confirming_payment" | "paid" | "failed";
134
- is_test: boolean;
135
- payment_attempt?: {
136
- payment_id: string;
137
- asset: string;
138
- amount: number;
139
- amount_formatted: number;
140
- chain: string;
141
- asset_address: string;
142
- destination_address: string;
143
- /** @format date-time */
144
- created_at: string;
145
- /** @format date-time */
146
- updated_at: string;
147
- required_confirmations: number;
148
- };
149
- order_id?: string | null;
150
- customer_id?: string;
151
- metadata?: Record<string, string | number>;
152
- line_items?: {
153
- name: string;
154
- quantity: number;
155
- image_url: string;
156
- price: number;
124
+ data: {
125
+ id: string;
126
+ currency: string;
127
+ /** @format date-time */
128
+ created_at: string;
129
+ /** @format date-time */
130
+ updated_at: string;
131
+ checkout_id: string;
132
+ organization_id: string;
133
+ status: "pending" | "confirming_payment" | "paid" | "failed";
134
+ is_test: boolean;
135
+ payment_attempt?: {
136
+ payment_id: string;
137
+ asset: string;
138
+ amount: number;
139
+ amount_formatted: number;
140
+ chain: string;
141
+ asset_address: string;
142
+ destination_address: string;
143
+ /** @format date-time */
144
+ created_at: string;
145
+ /** @format date-time */
146
+ updated_at: string;
147
+ required_confirmations: number;
148
+ };
149
+ order_id?: string | null;
150
+ customer_id?: string;
151
+ metadata?: Record<string, string | number>;
152
+ line_items?: {
153
+ name: string;
154
+ quantity: number;
155
+ image_url: string;
156
+ price: number;
157
+ }[];
158
+ amount: number;
157
159
  }[];
158
- amount: number;
159
- }[];
160
- meta: {
161
- total: number;
162
- offset: number;
163
- limit: number;
164
- } | null;
165
- /** @default 200 */
166
- status?: number;
167
- error: string | null;
160
+ meta: {
161
+ total: number;
162
+ offset: number;
163
+ limit: number;
164
+ } | null;
165
+ /** @default 200 */
166
+ status?: number;
167
+ error: string | null;
168
168
  }
169
169
  export interface PaymentsDetailData {
170
- data: {
171
- id: string;
172
- currency: string;
173
- /** @format date-time */
174
- created_at: string;
175
- /** @format date-time */
176
- updated_at: string;
177
- checkout_id: string;
178
- organization_id: string;
179
- status: "pending" | "confirming_payment" | "paid" | "failed";
180
- is_test: boolean;
181
- payment_attempt?: {
182
- payment_id: string;
183
- asset: string;
184
- amount: number;
185
- amount_formatted: number;
186
- chain: string;
187
- asset_address: string;
188
- destination_address: string;
189
- /** @format date-time */
190
- created_at: string;
191
- /** @format date-time */
192
- updated_at: string;
193
- required_confirmations: number;
170
+ data: {
171
+ id: string;
172
+ currency: string;
173
+ /** @format date-time */
174
+ created_at: string;
175
+ /** @format date-time */
176
+ updated_at: string;
177
+ checkout_id: string;
178
+ organization_id: string;
179
+ status: "pending" | "confirming_payment" | "paid" | "failed";
180
+ is_test: boolean;
181
+ payment_attempt?: {
182
+ payment_id: string;
183
+ asset: string;
184
+ amount: number;
185
+ amount_formatted: number;
186
+ chain: string;
187
+ asset_address: string;
188
+ destination_address: string;
189
+ /** @format date-time */
190
+ created_at: string;
191
+ /** @format date-time */
192
+ updated_at: string;
193
+ required_confirmations: number;
194
+ };
195
+ order_id?: string | null;
196
+ customer_id?: string;
197
+ metadata?: Record<string, string | number>;
198
+ line_items?: {
199
+ name: string;
200
+ quantity: number;
201
+ image_url: string;
202
+ price: number;
203
+ }[];
204
+ amount: number;
194
205
  };
195
- order_id?: string | null;
196
- customer_id?: string;
197
- metadata?: Record<string, string | number>;
198
- line_items?: {
199
- name: string;
200
- quantity: number;
201
- image_url: string;
202
- price: number;
203
- }[];
204
- amount: number;
205
- };
206
- meta: {
207
- total: number;
208
- offset: number;
209
- limit: number;
210
- } | null;
211
- /** @default 200 */
212
- status?: number;
213
- error: string | null;
206
+ meta: {
207
+ total: number;
208
+ offset: number;
209
+ limit: number;
210
+ } | null;
211
+ /** @default 200 */
212
+ status?: number;
213
+ error: string | null;
214
214
  }
215
215
  export interface PaymentsCryptoPayCreatePayload {
216
- asset: string;
217
- chain: string;
218
- address?: string;
219
- required_confirmations?: number;
220
- }
221
- export interface PaymentsCryptoPayCreateData {
222
- data: {
223
- payment_id: string;
224
216
  asset: string;
225
- amount: number;
226
- amount_formatted: number;
227
217
  chain: string;
228
- asset_address: string;
229
- destination_address: string;
230
- /** @format date-time */
231
- created_at: string;
232
- /** @format date-time */
233
- updated_at: string;
234
- required_confirmations: number;
235
- };
236
- meta: {
237
- total: number;
238
- offset: number;
239
- limit: number;
240
- } | null;
241
- /** @default 200 */
242
- status?: number;
243
- error: string | null;
218
+ address?: string;
219
+ required_confirmations?: number;
220
+ }
221
+ export interface PaymentsCryptoPayCreateData {
222
+ data: {
223
+ payment_id: string;
224
+ asset: string;
225
+ amount: number;
226
+ amount_formatted: number;
227
+ chain: string;
228
+ asset_address: string;
229
+ destination_address: string;
230
+ /** @format date-time */
231
+ created_at: string;
232
+ /** @format date-time */
233
+ updated_at: string;
234
+ required_confirmations: number;
235
+ };
236
+ meta: {
237
+ total: number;
238
+ offset: number;
239
+ limit: number;
240
+ } | null;
241
+ /** @default 200 */
242
+ status?: number;
243
+ error: string | null;
244
244
  }
245
245
  export interface ChainsListParams {
246
- search?: string;
247
- /** @default 10 */
248
- limit?: number;
249
- /** @default 0 */
250
- offset?: number;
246
+ search?: string;
247
+ /** @default 10 */
248
+ limit?: number;
249
+ /** @default 0 */
250
+ offset?: number;
251
251
  }
252
252
  export interface ChainsListData {
253
- data: {
254
- id: string;
255
- name: string;
256
- networkId: string;
257
- explorerUrl: string;
258
- rpcNodeUrl: string;
259
- logoUrl: string;
260
- nativeTokenDecimals: number;
261
- nativeTokenName: string;
262
- nativeTokenSymbol: string;
263
- nativeTokenLogoUrl: string;
264
- caip2: string;
265
- }[];
266
- meta: {
267
- total: number;
268
- offset: number;
269
- limit: number;
270
- } | null;
271
- /** @default 200 */
272
- status?: number;
273
- error: string | null;
253
+ data: {
254
+ id: string;
255
+ name: string;
256
+ networkId: string;
257
+ explorerUrl: string;
258
+ rpcNodeUrl: string;
259
+ logoUrl: string;
260
+ nativeTokenDecimals: number;
261
+ nativeTokenName: string;
262
+ nativeTokenSymbol: string;
263
+ nativeTokenLogoUrl: string;
264
+ caip2: string;
265
+ }[];
266
+ meta: {
267
+ total: number;
268
+ offset: number;
269
+ limit: number;
270
+ } | null;
271
+ /** @default 200 */
272
+ status?: number;
273
+ error: string | null;
274
274
  }
275
275
  export interface TokensListParams {
276
- chain?: string;
277
- search?: string;
278
- id?: string;
279
- token?: string;
280
- /** @default 10 */
281
- limit?: number;
282
- /** @default 0 */
283
- offset?: number;
276
+ chain?: string;
277
+ search?: string;
278
+ id?: string;
279
+ token?: string;
280
+ /** @default 10 */
281
+ limit?: number;
282
+ /** @default 0 */
283
+ offset?: number;
284
284
  }
285
285
  export interface TokensListData {
286
- data: {
287
- id: string;
288
- name: string;
289
- symbol: string;
290
- chain: {
291
- id: string;
292
- name: string;
293
- networkId: string;
294
- explorerUrl: string;
295
- rpcNodeUrl: string;
296
- logoUrl: string;
297
- nativeTokenDecimals: number;
298
- nativeTokenName: string;
299
- nativeTokenSymbol: string;
300
- nativeTokenLogoUrl: string;
301
- caip2: string;
302
- };
303
- caip21: string;
304
- contractAddress: string | null;
305
- decimals: number;
306
- isNative: boolean;
307
- logoUrl: string;
308
- }[];
309
- meta: {
310
- total: number;
311
- offset: number;
312
- limit: number;
313
- } | null;
314
- /** @default 200 */
315
- status?: number;
316
- error: string | null;
286
+ data: {
287
+ id: string;
288
+ name: string;
289
+ symbol: string;
290
+ chain: {
291
+ id: string;
292
+ name: string;
293
+ networkId: string;
294
+ explorerUrl: string;
295
+ rpcNodeUrl: string;
296
+ logoUrl: string;
297
+ nativeTokenDecimals: number;
298
+ nativeTokenName: string;
299
+ nativeTokenSymbol: string;
300
+ nativeTokenLogoUrl: string;
301
+ caip2: string;
302
+ };
303
+ caip21: string;
304
+ contractAddress: string | null;
305
+ decimals: number;
306
+ isNative: boolean;
307
+ logoUrl: string;
308
+ }[];
309
+ meta: {
310
+ total: number;
311
+ offset: number;
312
+ limit: number;
313
+ } | null;
314
+ /** @default 200 */
315
+ status?: number;
316
+ error: string | null;
317
317
  }
318
318
  export interface WebhooksCreatePayload {
319
- /** @format uri */
320
- webhook_url: string;
319
+ /** @format uri */
320
+ webhook_url: string;
321
321
  }
322
322
  export interface WebhooksCreateData {
323
- data: {
324
- id: string;
325
- organization_id: string;
326
- webhook_url: string;
327
- /** @format date-time */
328
- created_at: string;
329
- /** @format date-time */
330
- updated_at: string;
331
- webhook_secret: string;
332
- };
333
- meta: {
334
- total: number;
335
- offset: number;
336
- limit: number;
337
- } | null;
338
- /** @default 200 */
339
- status?: number;
340
- error: string | null;
323
+ data: {
324
+ id: string;
325
+ organization_id: string;
326
+ webhook_url: string;
327
+ /** @format date-time */
328
+ created_at: string;
329
+ /** @format date-time */
330
+ updated_at: string;
331
+ webhook_secret: string;
332
+ };
333
+ meta: {
334
+ total: number;
335
+ offset: number;
336
+ limit: number;
337
+ } | null;
338
+ /** @default 200 */
339
+ status?: number;
340
+ error: string | null;
341
341
  }
342
342
  export interface WebhooksListParams {
343
- webhookUrl?: string;
344
- sort?: (any | string) & {
345
- field?: "created_at";
346
- order?: "asc" | "desc";
347
- };
348
- /** @default 10 */
349
- limit?: number;
350
- /** @default 0 */
351
- offset?: number;
343
+ webhookUrl?: string;
344
+ sort?: (any | string) & {
345
+ field?: "created_at";
346
+ order?: "asc" | "desc";
347
+ };
348
+ /** @default 10 */
349
+ limit?: number;
350
+ /** @default 0 */
351
+ offset?: number;
352
352
  }
353
353
  export interface WebhooksListData {
354
- data: {
355
- id: string;
356
- organization_id: string;
357
- webhook_url: string;
358
- /** @format date-time */
359
- created_at: string;
360
- /** @format date-time */
361
- updated_at: string;
362
- webhook_secret: string;
363
- }[];
364
- meta: {
365
- total: number;
366
- offset: number;
367
- limit: number;
368
- } | null;
369
- /** @default 200 */
370
- status?: number;
371
- error: string | null;
354
+ data: {
355
+ id: string;
356
+ organization_id: string;
357
+ webhook_url: string;
358
+ /** @format date-time */
359
+ created_at: string;
360
+ /** @format date-time */
361
+ updated_at: string;
362
+ webhook_secret: string;
363
+ }[];
364
+ meta: {
365
+ total: number;
366
+ offset: number;
367
+ limit: number;
368
+ } | null;
369
+ /** @default 200 */
370
+ status?: number;
371
+ error: string | null;
372
372
  }
373
373
  export interface ApiKeysCreatePayload {
374
- name: string;
374
+ name: string;
375
375
  }
376
376
  export interface ApiKeysCreateData {
377
- data: {
378
- id: string;
379
- organization_id: string;
380
- name: string;
381
- /** @format date-time */
382
- created_at: string;
383
- /** @format date-time */
384
- updated_at: string;
385
- secret_key: string;
386
- public_key: string;
387
- allowed_origins: string[];
388
- };
389
- meta: {
390
- total: number;
391
- offset: number;
392
- limit: number;
393
- } | null;
394
- /** @default 200 */
395
- status?: number;
396
- error: string | null;
377
+ data: {
378
+ id: string;
379
+ organization_id: string;
380
+ name: string;
381
+ /** @format date-time */
382
+ created_at: string;
383
+ /** @format date-time */
384
+ updated_at: string;
385
+ secret_key: string;
386
+ public_key: string;
387
+ allowed_origins: string[];
388
+ };
389
+ meta: {
390
+ total: number;
391
+ offset: number;
392
+ limit: number;
393
+ } | null;
394
+ /** @default 200 */
395
+ status?: number;
396
+ error: string | null;
397
397
  }
398
398
  export interface ApiKeysListParams {
399
- name?: string;
400
- sort?: (any | string) & {
401
- field?: "created_at";
402
- order?: "asc" | "desc";
403
- };
404
- /** @default 10 */
405
- limit?: number;
406
- /** @default 0 */
407
- offset?: number;
399
+ name?: string;
400
+ sort?: (any | string) & {
401
+ field?: "created_at";
402
+ order?: "asc" | "desc";
403
+ };
404
+ /** @default 10 */
405
+ limit?: number;
406
+ /** @default 0 */
407
+ offset?: number;
408
408
  }
409
409
  export interface ApiKeysListData {
410
- data: {
411
- id: string;
412
- organization_id: string;
413
- name: string;
414
- /** @format date-time */
415
- created_at: string;
416
- /** @format date-time */
417
- updated_at: string;
418
- secret_key: string;
419
- public_key: string;
420
- allowed_origins: string[];
421
- }[];
422
- meta: {
423
- total: number;
424
- offset: number;
425
- limit: number;
426
- } | null;
427
- /** @default 200 */
428
- status?: number;
429
- error: string | null;
410
+ data: {
411
+ id: string;
412
+ organization_id: string;
413
+ name: string;
414
+ /** @format date-time */
415
+ created_at: string;
416
+ /** @format date-time */
417
+ updated_at: string;
418
+ secret_key: string;
419
+ public_key: string;
420
+ allowed_origins: string[];
421
+ }[];
422
+ meta: {
423
+ total: number;
424
+ offset: number;
425
+ limit: number;
426
+ } | null;
427
+ /** @default 200 */
428
+ status?: number;
429
+ error: string | null;
430
430
  }
431
431
  export interface ApiKeysDeleteData {
432
- data: {
433
- status: string;
434
- };
435
- meta: {
436
- total: number;
437
- offset: number;
438
- limit: number;
439
- } | null;
440
- /** @default 200 */
441
- status?: number;
442
- error: string | null;
432
+ data: {
433
+ status: string;
434
+ };
435
+ meta: {
436
+ total: number;
437
+ offset: number;
438
+ limit: number;
439
+ } | null;
440
+ /** @default 200 */
441
+ status?: number;
442
+ error: string | null;
443
443
  }
444
444
  export interface ApiKeysPartialUpdatePayload {
445
- name?: string;
446
- allowed_origins?: string[];
445
+ name?: string;
446
+ allowed_origins?: string[];
447
447
  }
448
448
  export interface ApiKeysPartialUpdateData {
449
- data: {
450
- id: string;
451
- organization_id: string;
452
- name: string;
453
- /** @format date-time */
454
- created_at: string;
455
- /** @format date-time */
456
- updated_at: string;
457
- secret_key: string;
458
- public_key: string;
459
- allowed_origins: string[];
460
- };
461
- meta: {
462
- total: number;
463
- offset: number;
464
- limit: number;
465
- } | null;
466
- /** @default 200 */
467
- status?: number;
468
- error: string | null;
449
+ data: {
450
+ id: string;
451
+ organization_id: string;
452
+ name: string;
453
+ /** @format date-time */
454
+ created_at: string;
455
+ /** @format date-time */
456
+ updated_at: string;
457
+ secret_key: string;
458
+ public_key: string;
459
+ allowed_origins: string[];
460
+ };
461
+ meta: {
462
+ total: number;
463
+ offset: number;
464
+ limit: number;
465
+ } | null;
466
+ /** @default 200 */
467
+ status?: number;
468
+ error: string | null;
469
469
  }
470
470
  export interface BlocksCreatePayload {
471
- caip2: string;
472
- blockNumber: number;
471
+ caip2: string;
472
+ blockNumber: number;
473
473
  }
474
474
  export interface BlocksCreateData {
475
- data: {
476
- status: string;
477
- };
478
- meta: {
479
- total: number;
480
- offset: number;
481
- limit: number;
482
- } | null;
483
- /** @default 200 */
484
- status?: number;
485
- error: string | null;
475
+ data: {
476
+ status: string;
477
+ };
478
+ meta: {
479
+ total: number;
480
+ offset: number;
481
+ limit: number;
482
+ } | null;
483
+ /** @default 200 */
484
+ status?: number;
485
+ error: string | null;
486
486
  }
487
487
  export interface AuthIdentifyStartCreatePayload {
488
- emailAddress: string;
488
+ emailAddress: string;
489
489
  }
490
490
  export interface AuthIdentifyStartCreateData {
491
- data: {
492
- publicKey: string;
493
- };
494
- meta: {
495
- total: number;
496
- offset: number;
497
- limit: number;
498
- } | null;
499
- /** @default 200 */
500
- status?: number;
501
- error: string | null;
491
+ data: {
492
+ publicKey: string;
493
+ };
494
+ meta: {
495
+ total: number;
496
+ offset: number;
497
+ limit: number;
498
+ } | null;
499
+ /** @default 200 */
500
+ status?: number;
501
+ error: string | null;
502
502
  }
503
503
  export interface AuthIdentifyVerifyCreatePayload {
504
- token: string;
505
- publicKey: string;
504
+ token: string;
505
+ publicKey: string;
506
506
  }
507
507
  export interface AuthIdentifyVerifyCreateData {
508
- data: {
509
- access_token: string;
510
- };
511
- meta: {
512
- total: number;
513
- offset: number;
514
- limit: number;
515
- } | null;
516
- /** @default 200 */
517
- status?: number;
518
- error: string | null;
519
- }
520
- export interface CheckoutsCreatePayload {
521
- name: string;
522
- checkout_config: {
523
- crypto?: {
524
- /** @default false */
525
- enabled?: boolean;
526
- assets?: {
527
- chain: string;
528
- asset: string;
529
- }[];
530
- };
531
- card?: {
532
- /** @default false */
533
- enabled?: boolean;
508
+ data: {
509
+ access_token: string;
534
510
  };
535
- };
536
- logo_url?: string;
511
+ meta: {
512
+ total: number;
513
+ offset: number;
514
+ limit: number;
515
+ } | null;
516
+ /** @default 200 */
517
+ status?: number;
518
+ error: string | null;
537
519
  }
538
- export interface CheckoutsCreateData {
539
- data: {
540
- id: string;
541
- organization_id: string;
520
+ export interface CheckoutsCreatePayload {
542
521
  name: string;
543
- /** @format date-time */
544
- created_at: string;
545
- /** @format date-time */
546
- updated_at: string;
547
522
  checkout_config: {
548
- crypto?: {
549
- /** @default false */
550
- enabled?: boolean;
551
- assets?: {
552
- chain: string;
553
- asset: string;
554
- chain_name: string;
555
- asset_name: string;
556
- }[];
557
- };
558
- card?: {
559
- /** @default false */
560
- enabled?: boolean;
561
- };
523
+ crypto?: {
524
+ /** @default false */
525
+ enabled?: boolean;
526
+ assets?: {
527
+ chain: string;
528
+ asset: string;
529
+ }[];
530
+ };
531
+ card?: {
532
+ /** @default false */
533
+ enabled?: boolean;
534
+ };
562
535
  };
563
- is_live: boolean;
564
536
  logo_url?: string;
565
- };
566
- meta: {
567
- total: number;
568
- offset: number;
569
- limit: number;
570
- } | null;
571
- /** @default 200 */
572
- status?: number;
573
- error: string | null;
537
+ }
538
+ export interface CheckoutsCreateData {
539
+ data: {
540
+ id: string;
541
+ organization_id: string;
542
+ name: string;
543
+ /** @format date-time */
544
+ created_at: string;
545
+ /** @format date-time */
546
+ updated_at: string;
547
+ checkout_config: {
548
+ crypto?: {
549
+ /** @default false */
550
+ enabled?: boolean;
551
+ assets?: {
552
+ chain: string;
553
+ asset: string;
554
+ chain_name: string;
555
+ asset_name: string;
556
+ }[];
557
+ };
558
+ card?: {
559
+ /** @default false */
560
+ enabled?: boolean;
561
+ };
562
+ };
563
+ is_live: boolean;
564
+ logo_url?: string;
565
+ };
566
+ meta: {
567
+ total: number;
568
+ offset: number;
569
+ limit: number;
570
+ } | null;
571
+ /** @default 200 */
572
+ status?: number;
573
+ error: string | null;
574
574
  }
575
575
  export interface CheckoutsDetailData {
576
- data: {
577
- id: string;
578
- organization_id: string;
579
- name: string;
580
- /** @format date-time */
581
- created_at: string;
582
- /** @format date-time */
583
- updated_at: string;
584
- checkout_config: {
585
- crypto?: {
586
- /** @default false */
587
- enabled?: boolean;
588
- assets?: {
589
- chain: string;
590
- asset: string;
591
- chain_name: string;
592
- asset_name: string;
593
- }[];
594
- };
595
- card?: {
596
- /** @default false */
597
- enabled?: boolean;
598
- };
576
+ data: {
577
+ id: string;
578
+ organization_id: string;
579
+ name: string;
580
+ /** @format date-time */
581
+ created_at: string;
582
+ /** @format date-time */
583
+ updated_at: string;
584
+ checkout_config: {
585
+ crypto?: {
586
+ /** @default false */
587
+ enabled?: boolean;
588
+ assets?: {
589
+ chain: string;
590
+ asset: string;
591
+ chain_name: string;
592
+ asset_name: string;
593
+ }[];
594
+ };
595
+ card?: {
596
+ /** @default false */
597
+ enabled?: boolean;
598
+ };
599
+ };
600
+ is_live: boolean;
601
+ logo_url?: string;
599
602
  };
600
- is_live: boolean;
601
- logo_url?: string;
602
- };
603
- meta: {
604
- total: number;
605
- offset: number;
606
- limit: number;
607
- } | null;
608
- /** @default 200 */
609
- status?: number;
610
- error: string | null;
603
+ meta: {
604
+ total: number;
605
+ offset: number;
606
+ limit: number;
607
+ } | null;
608
+ /** @default 200 */
609
+ status?: number;
610
+ error: string | null;
611
611
  }
612
612
  export interface CheckoutsPublishCreateData {
613
- data: {
614
- id: string;
615
- organization_id: string;
616
- name: string;
617
- /** @format date-time */
618
- created_at: string;
619
- /** @format date-time */
620
- updated_at: string;
621
- checkout_config: {
622
- crypto?: {
623
- /** @default false */
624
- enabled?: boolean;
625
- assets?: {
626
- chain: string;
627
- asset: string;
628
- chain_name: string;
629
- asset_name: string;
630
- }[];
631
- };
632
- card?: {
633
- /** @default false */
634
- enabled?: boolean;
635
- };
613
+ data: {
614
+ id: string;
615
+ organization_id: string;
616
+ name: string;
617
+ /** @format date-time */
618
+ created_at: string;
619
+ /** @format date-time */
620
+ updated_at: string;
621
+ checkout_config: {
622
+ crypto?: {
623
+ /** @default false */
624
+ enabled?: boolean;
625
+ assets?: {
626
+ chain: string;
627
+ asset: string;
628
+ chain_name: string;
629
+ asset_name: string;
630
+ }[];
631
+ };
632
+ card?: {
633
+ /** @default false */
634
+ enabled?: boolean;
635
+ };
636
+ };
637
+ is_live: boolean;
638
+ logo_url?: string;
636
639
  };
637
- is_live: boolean;
638
- logo_url?: string;
639
- };
640
- meta: {
641
- total: number;
642
- offset: number;
643
- limit: number;
644
- } | null;
645
- /** @default 200 */
646
- status?: number;
647
- error: string | null;
640
+ meta: {
641
+ total: number;
642
+ offset: number;
643
+ limit: number;
644
+ } | null;
645
+ /** @default 200 */
646
+ status?: number;
647
+ error: string | null;
648
648
  }
649
649
  export interface MerchantAccountsCreatePayload {
650
- chain: string;
651
- owner_address: string;
652
- withdraw_address: string;
653
- }
654
- export interface MerchantAccountsCreateData {
655
- data: {
656
- id: string;
657
- organization_id: string;
658
650
  chain: string;
659
- withdraw_address: string;
660
651
  owner_address: string;
661
- address: string;
662
- /** @format date-time */
663
- created_at: string;
664
- /** @format date-time */
665
- updated_at: string;
666
- };
667
- meta: {
668
- total: number;
669
- offset: number;
670
- limit: number;
671
- } | null;
672
- /** @default 200 */
673
- status?: number;
674
- error: string | null;
652
+ withdraw_address: string;
653
+ }
654
+ export interface MerchantAccountsCreateData {
655
+ data: {
656
+ id: string;
657
+ organization_id: string;
658
+ chain: string;
659
+ withdraw_address: string;
660
+ owner_address: string;
661
+ address: string;
662
+ /** @format date-time */
663
+ created_at: string;
664
+ /** @format date-time */
665
+ updated_at: string;
666
+ };
667
+ meta: {
668
+ total: number;
669
+ offset: number;
670
+ limit: number;
671
+ } | null;
672
+ /** @default 200 */
673
+ status?: number;
674
+ error: string | null;
675
675
  }
676
676
  export type QueryParamsType = Record<string | number, any>;
677
677
  export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
678
678
  export interface FullRequestParams extends Omit<RequestInit, "body"> {
679
- /** set parameter to `true` for call `securityWorker` for this request */
680
- secure?: boolean;
681
- /** request path */
682
- path: string;
683
- /** content type of request body */
684
- type?: ContentType;
685
- /** query params */
686
- query?: QueryParamsType;
687
- /** format of response (i.e. response.json() -> format: "json") */
688
- format?: ResponseFormat;
689
- /** request body */
690
- body?: unknown;
691
- /** base url */
692
- baseUrl?: string;
693
- /** request cancellation token */
694
- cancelToken?: CancelToken;
695
- }
696
- export type RequestParams = Omit<
697
- FullRequestParams,
698
- "body" | "method" | "query" | "path"
699
- >;
679
+ /** set parameter to `true` for call `securityWorker` for this request */
680
+ secure?: boolean;
681
+ /** request path */
682
+ path: string;
683
+ /** content type of request body */
684
+ type?: ContentType;
685
+ /** query params */
686
+ query?: QueryParamsType;
687
+ /** format of response (i.e. response.json() -> format: "json") */
688
+ format?: ResponseFormat;
689
+ /** request body */
690
+ body?: unknown;
691
+ /** base url */
692
+ baseUrl?: string;
693
+ /** request cancellation token */
694
+ cancelToken?: CancelToken;
695
+ }
696
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
700
697
  export interface ApiConfig<SecurityDataType = unknown> {
701
- baseUrl?: string;
702
- baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
703
- securityWorker?: (
704
- securityData: SecurityDataType | null,
705
- ) => Promise<RequestParams | void> | RequestParams | void;
706
- customFetch?: typeof fetch;
698
+ baseUrl?: string;
699
+ baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
700
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
701
+ customFetch?: typeof fetch;
707
702
  }
708
- export interface HttpResponse<D extends unknown, E extends unknown = unknown>
709
- extends Response {
710
- data: D;
711
- error: E;
703
+ export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
704
+ data: D;
705
+ error: E;
712
706
  }
713
707
  type CancelToken = Symbol | string | number;
714
708
  export declare enum ContentType {
715
- Json = "application/json",
716
- FormData = "multipart/form-data",
717
- UrlEncoded = "application/x-www-form-urlencoded",
718
- Text = "text/plain",
709
+ Json = "application/json",
710
+ FormData = "multipart/form-data",
711
+ UrlEncoded = "application/x-www-form-urlencoded",
712
+ Text = "text/plain"
719
713
  }
720
714
  export declare class HttpClient<SecurityDataType = unknown> {
721
- baseUrl: string;
722
- private securityData;
723
- private securityWorker?;
724
- private abortControllers;
725
- private customFetch;
726
- private baseApiParams;
727
- constructor(apiConfig?: ApiConfig<SecurityDataType>);
728
- setSecurityData: (data: SecurityDataType | null) => void;
729
- protected encodeQueryParam(key: string, value: any): string;
730
- protected addQueryParam(query: QueryParamsType, key: string): string;
731
- protected addArrayQueryParam(query: QueryParamsType, key: string): any;
732
- protected toQueryString(rawQuery?: QueryParamsType): string;
733
- protected addQueryParams(rawQuery?: QueryParamsType): string;
734
- private contentFormatters;
735
- protected mergeRequestParams(
736
- params1: RequestParams,
737
- params2?: RequestParams,
738
- ): RequestParams;
739
- protected createAbortSignal: (
740
- cancelToken: CancelToken,
741
- ) => AbortSignal | undefined;
742
- abortRequest: (cancelToken: CancelToken) => void;
743
- request: <T = any, E = any>({
744
- body,
745
- secure,
746
- path,
747
- type,
748
- query,
749
- format,
750
- baseUrl,
751
- cancelToken,
752
- ...params
753
- }: FullRequestParams) => Promise<HttpResponse<T, E>>;
715
+ baseUrl: string;
716
+ private securityData;
717
+ private securityWorker?;
718
+ private abortControllers;
719
+ private customFetch;
720
+ private baseApiParams;
721
+ constructor(apiConfig?: ApiConfig<SecurityDataType>);
722
+ setSecurityData: (data: SecurityDataType | null) => void;
723
+ protected encodeQueryParam(key: string, value: any): string;
724
+ protected addQueryParam(query: QueryParamsType, key: string): string;
725
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
726
+ protected toQueryString(rawQuery?: QueryParamsType): string;
727
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
728
+ private contentFormatters;
729
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
730
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
731
+ abortRequest: (cancelToken: CancelToken) => void;
732
+ request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
754
733
  }
755
734
  /**
756
735
  * @title Mint Money API
@@ -759,275 +738,207 @@ export declare class HttpClient<SecurityDataType = unknown> {
759
738
  *
760
739
  * API for the getmint.money platform
761
740
  */
762
- export declare class Api<
763
- SecurityDataType extends unknown,
764
- > extends HttpClient<SecurityDataType> {
765
- v1: {
766
- /**
767
- * No description
768
- *
769
- * @tags Health
770
- * @name HealthzList
771
- * @request GET:/v1/healthz
772
- * @response `200` `HealthzListData` Default Response
773
- */
774
- healthzList: (
775
- params?: RequestParams,
776
- ) => Promise<HttpResponse<HealthzListData, any>>;
777
- /**
778
- * @description Create a new organisation
779
- *
780
- * @tags Organisations
781
- * @name OrganizationsCreate
782
- * @request POST:/v1/organizations/
783
- * @response `201` `OrganizationsCreateData` Default Response
784
- */
785
- organizationsCreate: (
786
- data: OrganizationsCreatePayload,
787
- params?: RequestParams,
788
- ) => Promise<HttpResponse<OrganizationsCreateData, any>>;
789
- /**
790
- * @description Get account details for the current user
791
- *
792
- * @tags Account
793
- * @name AccountsMeList
794
- * @request GET:/v1/accounts/me
795
- * @response `200` `AccountsMeListData` Default Response
796
- */
797
- accountsMeList: (
798
- params?: RequestParams,
799
- ) => Promise<HttpResponse<AccountsMeListData, any>>;
800
- /**
801
- * @description Create a new on-chain payment
802
- *
803
- * @tags Payments
804
- * @name PaymentsCreate
805
- * @request POST:/v1/payments/
806
- * @response `201` `PaymentsCreateData` Default Response
807
- */
808
- paymentsCreate: (
809
- data: PaymentsCreatePayload,
810
- params?: RequestParams,
811
- ) => Promise<HttpResponse<PaymentsCreateData, any>>;
812
- /**
813
- * @description Fetch all payment by id
814
- *
815
- * @tags Payments
816
- * @name PaymentsList
817
- * @request GET:/v1/payments/
818
- * @response `200` `PaymentsListData` Default Response
819
- */
820
- paymentsList: (
821
- query: PaymentsListParams,
822
- params?: RequestParams,
823
- ) => Promise<HttpResponse<PaymentsListData, any>>;
824
- /**
825
- * @description Fetch a payment by id
826
- *
827
- * @tags Payments
828
- * @name PaymentsDetail
829
- * @request GET:/v1/payments/{paymentId}
830
- * @response `201` `PaymentsDetailData` Default Response
831
- */
832
- paymentsDetail: (
833
- paymentId: string,
834
- params?: RequestParams,
835
- ) => Promise<HttpResponse<PaymentsDetailData, any>>;
836
- /**
837
- * @description Add attempt to pay for a payment using cryptocurrency
838
- *
839
- * @tags Payments
840
- * @name PaymentsCryptoPayCreate
841
- * @request POST:/v1/payments/crypto-pay/{paymentId}
842
- * @response `201` `PaymentsCryptoPayCreateData` Default Response
843
- */
844
- paymentsCryptoPayCreate: (
845
- paymentId: string,
846
- data: PaymentsCryptoPayCreatePayload,
847
- params?: RequestParams,
848
- ) => Promise<HttpResponse<PaymentsCryptoPayCreateData, any>>;
849
- /**
850
- * @description Fetch the supported chains
851
- *
852
- * @tags Chain
853
- * @name ChainsList
854
- * @request GET:/v1/chains
855
- * @response `200` `ChainsListData` Default Response
856
- */
857
- chainsList: (
858
- query: ChainsListParams,
859
- params?: RequestParams,
860
- ) => Promise<HttpResponse<ChainsListData, any>>;
861
- /**
862
- * @description Fetch the supported tokens
863
- *
864
- * @tags Chain
865
- * @name TokensList
866
- * @request GET:/v1/tokens
867
- * @response `200` `TokensListData` Default Response
868
- */
869
- tokensList: (
870
- query: TokensListParams,
871
- params?: RequestParams,
872
- ) => Promise<HttpResponse<TokensListData, any>>;
873
- /**
874
- * @description Create a new endpoint for the organization
875
- *
876
- * @tags Webhooks
877
- * @name WebhooksCreate
878
- * @request POST:/v1/webhooks/
879
- * @response `201` `WebhooksCreateData` Default Response
880
- */
881
- webhooksCreate: (
882
- data: WebhooksCreatePayload,
883
- params?: RequestParams,
884
- ) => Promise<HttpResponse<WebhooksCreateData, any>>;
885
- /**
886
- * @description Fetch all WebhookUrls
887
- *
888
- * @tags Webhooks
889
- * @name WebhooksList
890
- * @request GET:/v1/webhooks/
891
- * @response `200` `WebhooksListData` Default Response
892
- */
893
- webhooksList: (
894
- query: WebhooksListParams,
895
- params?: RequestParams,
896
- ) => Promise<HttpResponse<WebhooksListData, any>>;
897
- /**
898
- * @description Create a new API key for the organization
899
- *
900
- * @tags ApiKeys
901
- * @name ApiKeysCreate
902
- * @request POST:/v1/api-keys/
903
- * @response `201` `ApiKeysCreateData` Default Response
904
- */
905
- apiKeysCreate: (
906
- data: ApiKeysCreatePayload,
907
- params?: RequestParams,
908
- ) => Promise<HttpResponse<ApiKeysCreateData, any>>;
909
- /**
910
- * @description Fetch all ApiKeys
911
- *
912
- * @tags ApiKeys
913
- * @name ApiKeysList
914
- * @request GET:/v1/api-keys/
915
- * @response `200` `ApiKeysListData` Default Response
916
- */
917
- apiKeysList: (
918
- query: ApiKeysListParams,
919
- params?: RequestParams,
920
- ) => Promise<HttpResponse<ApiKeysListData, any>>;
921
- /**
922
- * @description Delete an ApiKey
923
- *
924
- * @tags ApiKeys
925
- * @name ApiKeysDelete
926
- * @request DELETE:/v1/api-keys/{apiKeyId}
927
- * @response `200` `ApiKeysDeleteData` Default Response
928
- */
929
- apiKeysDelete: (
930
- apiKeyId: string,
931
- params?: RequestParams,
932
- ) => Promise<HttpResponse<ApiKeysDeleteData, any>>;
933
- /**
934
- * @description Patch an ApiKey
935
- *
936
- * @tags ApiKeys
937
- * @name ApiKeysPartialUpdate
938
- * @request PATCH:/v1/api-keys/{apiKeyId}
939
- * @response `201` `ApiKeysPartialUpdateData` Default Response
940
- */
941
- apiKeysPartialUpdate: (
942
- apiKeyId: string,
943
- data: ApiKeysPartialUpdatePayload,
944
- params?: RequestParams,
945
- ) => Promise<HttpResponse<ApiKeysPartialUpdateData, any>>;
946
- /**
947
- * @description Sync a specific block
948
- *
949
- * @tags Blocks
950
- * @name BlocksCreate
951
- * @request POST:/v1/blocks
952
- * @response `200` `BlocksCreateData` Default Response
953
- */
954
- blocksCreate: (
955
- data: BlocksCreatePayload,
956
- params?: RequestParams,
957
- ) => Promise<HttpResponse<BlocksCreateData, any>>;
958
- /**
959
- * @description Begin identity verification
960
- *
961
- * @tags Auth
962
- * @name AuthIdentifyStartCreate
963
- * @request POST:/v1/auth/identify/start
964
- * @response `200` `AuthIdentifyStartCreateData` Default Response
965
- */
966
- authIdentifyStartCreate: (
967
- data: AuthIdentifyStartCreatePayload,
968
- params?: RequestParams,
969
- ) => Promise<HttpResponse<AuthIdentifyStartCreateData, any>>;
970
- /**
971
- * @description Send identity verification
972
- *
973
- * @tags Auth
974
- * @name AuthIdentifyVerifyCreate
975
- * @request POST:/v1/auth/identify/verify
976
- * @response `200` `AuthIdentifyVerifyCreateData` Default Response
977
- */
978
- authIdentifyVerifyCreate: (
979
- data: AuthIdentifyVerifyCreatePayload,
980
- params?: RequestParams,
981
- ) => Promise<HttpResponse<AuthIdentifyVerifyCreateData, any>>;
982
- /**
983
- * @description Create a new checkout
984
- *
985
- * @tags Checkouts
986
- * @name CheckoutsCreate
987
- * @request POST:/v1/checkouts/
988
- * @response `201` `CheckoutsCreateData` Default Response
989
- */
990
- checkoutsCreate: (
991
- data: CheckoutsCreatePayload,
992
- params?: RequestParams,
993
- ) => Promise<HttpResponse<CheckoutsCreateData, any>>;
994
- /**
995
- * @description Get a checkout by id
996
- *
997
- * @tags Checkouts
998
- * @name CheckoutsDetail
999
- * @request GET:/v1/checkouts/{id}
1000
- * @response `200` `CheckoutsDetailData` Default Response
1001
- */
1002
- checkoutsDetail: (
1003
- id: string,
1004
- params?: RequestParams,
1005
- ) => Promise<HttpResponse<CheckoutsDetailData, any>>;
1006
- /**
1007
- * @description Publish a checkout by id
1008
- *
1009
- * @tags Checkouts
1010
- * @name CheckoutsPublishCreate
1011
- * @request POST:/v1/checkouts/{id}/publish
1012
- * @response `200` `CheckoutsPublishCreateData` Default Response
1013
- */
1014
- checkoutsPublishCreate: (
1015
- id: string,
1016
- params?: RequestParams,
1017
- ) => Promise<HttpResponse<CheckoutsPublishCreateData, any>>;
1018
- /**
1019
- * @description Create a new merchant account
1020
- *
1021
- * @tags Merchant Accounts
1022
- * @name MerchantAccountsCreate
1023
- * @request POST:/v1/merchant-accounts/
1024
- * @response `201` `MerchantAccountsCreateData` Default Response
1025
- */
1026
- merchantAccountsCreate: (
1027
- data: MerchantAccountsCreatePayload,
1028
- params?: RequestParams,
1029
- ) => Promise<HttpResponse<MerchantAccountsCreateData, any>>;
1030
- };
741
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
742
+ v1: {
743
+ /**
744
+ * No description
745
+ *
746
+ * @tags Health
747
+ * @name HealthzList
748
+ * @request GET:/v1/healthz
749
+ * @response `200` `HealthzListData` Default Response
750
+ */
751
+ healthzList: (params?: RequestParams) => Promise<HttpResponse<HealthzListData, any>>;
752
+ /**
753
+ * @description Create a new organisation
754
+ *
755
+ * @tags Organisations
756
+ * @name OrganizationsCreate
757
+ * @request POST:/v1/organizations/
758
+ * @response `201` `OrganizationsCreateData` Default Response
759
+ */
760
+ organizationsCreate: (data: OrganizationsCreatePayload, params?: RequestParams) => Promise<HttpResponse<OrganizationsCreateData, any>>;
761
+ /**
762
+ * @description Get account details for the current user
763
+ *
764
+ * @tags Account
765
+ * @name AccountsMeList
766
+ * @request GET:/v1/accounts/me
767
+ * @response `200` `AccountsMeListData` Default Response
768
+ */
769
+ accountsMeList: (params?: RequestParams) => Promise<HttpResponse<AccountsMeListData, any>>;
770
+ /**
771
+ * @description Create a new on-chain payment
772
+ *
773
+ * @tags Payments
774
+ * @name PaymentsCreate
775
+ * @request POST:/v1/payments/
776
+ * @response `201` `PaymentsCreateData` Default Response
777
+ */
778
+ paymentsCreate: (data: PaymentsCreatePayload, params?: RequestParams) => Promise<HttpResponse<PaymentsCreateData, any>>;
779
+ /**
780
+ * @description Fetch all payment by id
781
+ *
782
+ * @tags Payments
783
+ * @name PaymentsList
784
+ * @request GET:/v1/payments/
785
+ * @response `200` `PaymentsListData` Default Response
786
+ */
787
+ paymentsList: (query: PaymentsListParams, params?: RequestParams) => Promise<HttpResponse<PaymentsListData, any>>;
788
+ /**
789
+ * @description Fetch a payment by id
790
+ *
791
+ * @tags Payments
792
+ * @name PaymentsDetail
793
+ * @request GET:/v1/payments/{paymentId}
794
+ * @response `201` `PaymentsDetailData` Default Response
795
+ */
796
+ paymentsDetail: (paymentId: string, params?: RequestParams) => Promise<HttpResponse<PaymentsDetailData, any>>;
797
+ /**
798
+ * @description Add attempt to pay for a payment using cryptocurrency
799
+ *
800
+ * @tags Payments
801
+ * @name PaymentsCryptoPayCreate
802
+ * @request POST:/v1/payments/crypto-pay/{paymentId}
803
+ * @response `201` `PaymentsCryptoPayCreateData` Default Response
804
+ */
805
+ paymentsCryptoPayCreate: (paymentId: string, data: PaymentsCryptoPayCreatePayload, params?: RequestParams) => Promise<HttpResponse<PaymentsCryptoPayCreateData, any>>;
806
+ /**
807
+ * @description Fetch the supported chains
808
+ *
809
+ * @tags Chain
810
+ * @name ChainsList
811
+ * @request GET:/v1/chains
812
+ * @response `200` `ChainsListData` Default Response
813
+ */
814
+ chainsList: (query: ChainsListParams, params?: RequestParams) => Promise<HttpResponse<ChainsListData, any>>;
815
+ /**
816
+ * @description Fetch the supported tokens
817
+ *
818
+ * @tags Chain
819
+ * @name TokensList
820
+ * @request GET:/v1/tokens
821
+ * @response `200` `TokensListData` Default Response
822
+ */
823
+ tokensList: (query: TokensListParams, params?: RequestParams) => Promise<HttpResponse<TokensListData, any>>;
824
+ /**
825
+ * @description Create a new endpoint for the organization
826
+ *
827
+ * @tags Webhooks
828
+ * @name WebhooksCreate
829
+ * @request POST:/v1/webhooks/
830
+ * @response `201` `WebhooksCreateData` Default Response
831
+ */
832
+ webhooksCreate: (data: WebhooksCreatePayload, params?: RequestParams) => Promise<HttpResponse<WebhooksCreateData, any>>;
833
+ /**
834
+ * @description Fetch all WebhookUrls
835
+ *
836
+ * @tags Webhooks
837
+ * @name WebhooksList
838
+ * @request GET:/v1/webhooks/
839
+ * @response `200` `WebhooksListData` Default Response
840
+ */
841
+ webhooksList: (query: WebhooksListParams, params?: RequestParams) => Promise<HttpResponse<WebhooksListData, any>>;
842
+ /**
843
+ * @description Create a new API key for the organization
844
+ *
845
+ * @tags ApiKeys
846
+ * @name ApiKeysCreate
847
+ * @request POST:/v1/api-keys/
848
+ * @response `201` `ApiKeysCreateData` Default Response
849
+ */
850
+ apiKeysCreate: (data: ApiKeysCreatePayload, params?: RequestParams) => Promise<HttpResponse<ApiKeysCreateData, any>>;
851
+ /**
852
+ * @description Fetch all ApiKeys
853
+ *
854
+ * @tags ApiKeys
855
+ * @name ApiKeysList
856
+ * @request GET:/v1/api-keys/
857
+ * @response `200` `ApiKeysListData` Default Response
858
+ */
859
+ apiKeysList: (query: ApiKeysListParams, params?: RequestParams) => Promise<HttpResponse<ApiKeysListData, any>>;
860
+ /**
861
+ * @description Delete an ApiKey
862
+ *
863
+ * @tags ApiKeys
864
+ * @name ApiKeysDelete
865
+ * @request DELETE:/v1/api-keys/{apiKeyId}
866
+ * @response `200` `ApiKeysDeleteData` Default Response
867
+ */
868
+ apiKeysDelete: (apiKeyId: string, params?: RequestParams) => Promise<HttpResponse<ApiKeysDeleteData, any>>;
869
+ /**
870
+ * @description Patch an ApiKey
871
+ *
872
+ * @tags ApiKeys
873
+ * @name ApiKeysPartialUpdate
874
+ * @request PATCH:/v1/api-keys/{apiKeyId}
875
+ * @response `201` `ApiKeysPartialUpdateData` Default Response
876
+ */
877
+ apiKeysPartialUpdate: (apiKeyId: string, data: ApiKeysPartialUpdatePayload, params?: RequestParams) => Promise<HttpResponse<ApiKeysPartialUpdateData, any>>;
878
+ /**
879
+ * @description Sync a specific block
880
+ *
881
+ * @tags Blocks
882
+ * @name BlocksCreate
883
+ * @request POST:/v1/blocks
884
+ * @response `200` `BlocksCreateData` Default Response
885
+ */
886
+ blocksCreate: (data: BlocksCreatePayload, params?: RequestParams) => Promise<HttpResponse<BlocksCreateData, any>>;
887
+ /**
888
+ * @description Begin identity verification
889
+ *
890
+ * @tags Auth
891
+ * @name AuthIdentifyStartCreate
892
+ * @request POST:/v1/auth/identify/start
893
+ * @response `200` `AuthIdentifyStartCreateData` Default Response
894
+ */
895
+ authIdentifyStartCreate: (data: AuthIdentifyStartCreatePayload, params?: RequestParams) => Promise<HttpResponse<AuthIdentifyStartCreateData, any>>;
896
+ /**
897
+ * @description Send identity verification
898
+ *
899
+ * @tags Auth
900
+ * @name AuthIdentifyVerifyCreate
901
+ * @request POST:/v1/auth/identify/verify
902
+ * @response `200` `AuthIdentifyVerifyCreateData` Default Response
903
+ */
904
+ authIdentifyVerifyCreate: (data: AuthIdentifyVerifyCreatePayload, params?: RequestParams) => Promise<HttpResponse<AuthIdentifyVerifyCreateData, any>>;
905
+ /**
906
+ * @description Create a new checkout
907
+ *
908
+ * @tags Checkouts
909
+ * @name CheckoutsCreate
910
+ * @request POST:/v1/checkouts/
911
+ * @response `201` `CheckoutsCreateData` Default Response
912
+ */
913
+ checkoutsCreate: (data: CheckoutsCreatePayload, params?: RequestParams) => Promise<HttpResponse<CheckoutsCreateData, any>>;
914
+ /**
915
+ * @description Get a checkout by id
916
+ *
917
+ * @tags Checkouts
918
+ * @name CheckoutsDetail
919
+ * @request GET:/v1/checkouts/{id}
920
+ * @response `200` `CheckoutsDetailData` Default Response
921
+ */
922
+ checkoutsDetail: (id: string, params?: RequestParams) => Promise<HttpResponse<CheckoutsDetailData, any>>;
923
+ /**
924
+ * @description Publish a checkout by id
925
+ *
926
+ * @tags Checkouts
927
+ * @name CheckoutsPublishCreate
928
+ * @request POST:/v1/checkouts/{id}/publish
929
+ * @response `200` `CheckoutsPublishCreateData` Default Response
930
+ */
931
+ checkoutsPublishCreate: (id: string, params?: RequestParams) => Promise<HttpResponse<CheckoutsPublishCreateData, any>>;
932
+ /**
933
+ * @description Create a new merchant account
934
+ *
935
+ * @tags Merchant Accounts
936
+ * @name MerchantAccountsCreate
937
+ * @request POST:/v1/merchant-accounts/
938
+ * @response `201` `MerchantAccountsCreateData` Default Response
939
+ */
940
+ merchantAccountsCreate: (data: MerchantAccountsCreatePayload, params?: RequestParams) => Promise<HttpResponse<MerchantAccountsCreateData, any>>;
941
+ };
1031
942
  }
1032
943
  export {};
1033
- //# sourceMappingURL=generated.d.ts.map
944
+ //# sourceMappingURL=generated.d.ts.map