@halliday-sdk/payments 0.2.0 → 2.2.0

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.
@@ -0,0 +1,1899 @@
1
+ import { z, ZodError } from 'zod/v4';
2
+ import { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
3
+
4
+ declare const Amount: z.ZodString;
5
+ type Amount = z.infer<typeof Amount>;
6
+ declare const EVMTokenAddress: z.ZodString;
7
+ type EVMTokenAddress = z.infer<typeof EVMTokenAddress>;
8
+ declare const EVMAddress: z.ZodString;
9
+ type EVMAddress = z.infer<typeof EVMAddress>;
10
+ declare const SolTokenAddress: z.ZodString;
11
+ type SolTokenAddress = z.infer<typeof SolTokenAddress>;
12
+ declare const SolAddress: z.ZodString;
13
+ type SolAddress = z.infer<typeof SolAddress>;
14
+ declare const Address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
15
+ type Address = z.infer<typeof Address>;
16
+ declare const Fiat: z.ZodString;
17
+ type Fiat = z.infer<typeof Fiat>;
18
+ declare const FiatDetails: z.ZodObject<{
19
+ issuer: z.ZodString;
20
+ name: z.ZodString;
21
+ alias: z.ZodOptional<z.ZodString>;
22
+ symbol: z.ZodString;
23
+ decimals: z.ZodNumber;
24
+ }, z.core.$strip>;
25
+ type FiatDetails = z.infer<typeof FiatDetails>;
26
+ declare const Token: z.ZodString;
27
+ type Token = z.infer<typeof Token>;
28
+ declare const EVMTokenDetails: z.ZodObject<{
29
+ chain: z.ZodString;
30
+ address: z.ZodString;
31
+ name: z.ZodString;
32
+ symbol: z.ZodString;
33
+ decimals: z.ZodNumber;
34
+ alias: z.ZodOptional<z.ZodString>;
35
+ image_url: z.ZodOptional<z.ZodString>;
36
+ coingecko_id: z.ZodOptional<z.ZodString>;
37
+ wrapper: z.ZodOptional<z.ZodString>;
38
+ is_native: z.ZodOptional<z.ZodBoolean>;
39
+ }, z.core.$strip>;
40
+ type EVMTokenDetails = z.infer<typeof EVMTokenDetails>;
41
+ declare const SolTokenDetails: z.ZodObject<{
42
+ chain: z.ZodLiteral<"solana">;
43
+ address: z.ZodString;
44
+ name: z.ZodString;
45
+ symbol: z.ZodString;
46
+ decimals: z.ZodNumber;
47
+ alias: z.ZodOptional<z.ZodString>;
48
+ image_url: z.ZodOptional<z.ZodString>;
49
+ coingecko_id: z.ZodOptional<z.ZodString>;
50
+ wrapper: z.ZodOptional<z.ZodString>;
51
+ is_native: z.ZodOptional<z.ZodBoolean>;
52
+ }, z.core.$strip>;
53
+ type SolTokenDetails = z.infer<typeof SolTokenDetails>;
54
+ declare const TokenDetails: z.ZodUnion<readonly [z.ZodObject<{
55
+ chain: z.ZodString;
56
+ address: z.ZodString;
57
+ name: z.ZodString;
58
+ symbol: z.ZodString;
59
+ decimals: z.ZodNumber;
60
+ alias: z.ZodOptional<z.ZodString>;
61
+ image_url: z.ZodOptional<z.ZodString>;
62
+ coingecko_id: z.ZodOptional<z.ZodString>;
63
+ wrapper: z.ZodOptional<z.ZodString>;
64
+ is_native: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ chain: z.ZodLiteral<"solana">;
67
+ address: z.ZodString;
68
+ name: z.ZodString;
69
+ symbol: z.ZodString;
70
+ decimals: z.ZodNumber;
71
+ alias: z.ZodOptional<z.ZodString>;
72
+ image_url: z.ZodOptional<z.ZodString>;
73
+ coingecko_id: z.ZodOptional<z.ZodString>;
74
+ wrapper: z.ZodOptional<z.ZodString>;
75
+ is_native: z.ZodOptional<z.ZodBoolean>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ chain: z.ZodString;
78
+ address: z.ZodString;
79
+ name: z.ZodString;
80
+ symbol: z.ZodString;
81
+ decimals: z.ZodNumber;
82
+ alias: z.ZodOptional<z.ZodString>;
83
+ image_url: z.ZodOptional<z.ZodString>;
84
+ coingecko_id: z.ZodOptional<z.ZodString>;
85
+ wrapper: z.ZodOptional<z.ZodString>;
86
+ is_native: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>]>;
88
+ type TokenDetails = z.infer<typeof TokenDetails>;
89
+ declare const Asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
90
+ type Asset = z.infer<typeof Asset>;
91
+ declare const AssetDetails: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
92
+ chain: z.ZodString;
93
+ address: z.ZodString;
94
+ name: z.ZodString;
95
+ symbol: z.ZodString;
96
+ decimals: z.ZodNumber;
97
+ alias: z.ZodOptional<z.ZodString>;
98
+ image_url: z.ZodOptional<z.ZodString>;
99
+ coingecko_id: z.ZodOptional<z.ZodString>;
100
+ wrapper: z.ZodOptional<z.ZodString>;
101
+ is_native: z.ZodOptional<z.ZodBoolean>;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ chain: z.ZodLiteral<"solana">;
104
+ address: z.ZodString;
105
+ name: z.ZodString;
106
+ symbol: z.ZodString;
107
+ decimals: z.ZodNumber;
108
+ alias: z.ZodOptional<z.ZodString>;
109
+ image_url: z.ZodOptional<z.ZodString>;
110
+ coingecko_id: z.ZodOptional<z.ZodString>;
111
+ wrapper: z.ZodOptional<z.ZodString>;
112
+ is_native: z.ZodOptional<z.ZodBoolean>;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ chain: z.ZodString;
115
+ address: z.ZodString;
116
+ name: z.ZodString;
117
+ symbol: z.ZodString;
118
+ decimals: z.ZodNumber;
119
+ alias: z.ZodOptional<z.ZodString>;
120
+ image_url: z.ZodOptional<z.ZodString>;
121
+ coingecko_id: z.ZodOptional<z.ZodString>;
122
+ wrapper: z.ZodOptional<z.ZodString>;
123
+ is_native: z.ZodOptional<z.ZodBoolean>;
124
+ }, z.core.$strip>]>, z.ZodObject<{
125
+ issuer: z.ZodString;
126
+ name: z.ZodString;
127
+ alias: z.ZodOptional<z.ZodString>;
128
+ symbol: z.ZodString;
129
+ decimals: z.ZodNumber;
130
+ }, z.core.$strip>]>;
131
+ type AssetDetails = z.infer<typeof AssetDetails>;
132
+ declare const Realm: z.ZodDiscriminatedUnion<[z.ZodObject<{
133
+ type: z.ZodLiteral<"chain">;
134
+ chain: z.ZodString;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ type: z.ZodLiteral<"issuer">;
137
+ issuer: z.ZodString;
138
+ }, z.core.$strip>]>;
139
+ type Realm = z.infer<typeof Realm>;
140
+ declare const RampName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
141
+ type RampName = z.infer<typeof RampName>;
142
+ declare const RampType: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
143
+ ONRAMP: "ONRAMP";
144
+ OFFRAMP: "OFFRAMP";
145
+ }>>;
146
+ type RampType = z.infer<typeof RampType>;
147
+ declare const TransactionRequest: z.ZodObject<{
148
+ to: z.ZodString;
149
+ from: z.ZodOptional<z.ZodString>;
150
+ nonce: z.ZodOptional<z.ZodNumber>;
151
+ gasLimit: z.ZodOptional<z.ZodBigInt>;
152
+ gasPrice: z.ZodOptional<z.ZodBigInt>;
153
+ maxPriorityFeePerGas: z.ZodOptional<z.ZodBigInt>;
154
+ maxFeePerGas: z.ZodOptional<z.ZodBigInt>;
155
+ data: z.ZodOptional<z.ZodString>;
156
+ value: z.ZodOptional<z.ZodBigInt>;
157
+ chainId: z.ZodNumber;
158
+ }, z.core.$strip>;
159
+ type TransactionRequest = z.infer<typeof TransactionRequest>;
160
+ declare const TransactionReceipt: z.ZodObject<{
161
+ transactionHash: z.ZodOptional<z.ZodString>;
162
+ blockHash: z.ZodOptional<z.ZodString>;
163
+ blockNumber: z.ZodOptional<z.ZodNumber>;
164
+ from: z.ZodOptional<z.ZodString>;
165
+ to: z.ZodOptional<z.ZodString>;
166
+ rawReceipt: z.ZodAny;
167
+ }, z.core.$strip>;
168
+ type TransactionReceipt = z.infer<typeof TransactionReceipt>;
169
+ declare const EVMChainConfig: z.ZodObject<{
170
+ chain_id: z.ZodBigInt;
171
+ network: z.ZodString;
172
+ native_currency: z.ZodObject<{
173
+ name: z.ZodString;
174
+ symbol: z.ZodString;
175
+ decimals: z.ZodNumber;
176
+ }, z.core.$strip>;
177
+ rpc: z.ZodString;
178
+ image: z.ZodString;
179
+ is_testnet: z.ZodBoolean;
180
+ explorer: z.ZodString;
181
+ }, z.core.$strip>;
182
+ type EVMChainConfig = z.infer<typeof EVMChainConfig>;
183
+ declare const SolChainConfig: z.ZodObject<{
184
+ chain_id: z.ZodBigInt;
185
+ network: z.ZodString;
186
+ }, z.core.$strip>;
187
+ type SolChainConfig = z.infer<typeof SolChainConfig>;
188
+ declare const ChainConfig: z.ZodUnion<readonly [z.ZodObject<{
189
+ chain_id: z.ZodBigInt;
190
+ network: z.ZodString;
191
+ native_currency: z.ZodObject<{
192
+ name: z.ZodString;
193
+ symbol: z.ZodString;
194
+ decimals: z.ZodNumber;
195
+ }, z.core.$strip>;
196
+ rpc: z.ZodString;
197
+ image: z.ZodString;
198
+ is_testnet: z.ZodBoolean;
199
+ explorer: z.ZodString;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ chain_id: z.ZodBigInt;
202
+ network: z.ZodString;
203
+ }, z.core.$strip>]>;
204
+ type ChainConfig = z.infer<typeof ChainConfig>;
205
+ declare const OnrampMethod: z.ZodEnum<{
206
+ CREDIT_CARD: "CREDIT_CARD";
207
+ DEBIT_CARD: "DEBIT_CARD";
208
+ ACH: "ACH";
209
+ FIAT_BALANCE: "FIAT_BALANCE";
210
+ TOKEN_BALANCE: "TOKEN_BALANCE";
211
+ APPLE_PAY: "APPLE_PAY";
212
+ PAYPAL: "PAYPAL";
213
+ VENMO: "VENMO";
214
+ REVOLUT: "REVOLUT";
215
+ GOOGLE_PAY: "GOOGLE_PAY";
216
+ SEPA: "SEPA";
217
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
218
+ PIX: "PIX";
219
+ UPI: "UPI";
220
+ WIRE: "WIRE";
221
+ }>;
222
+ type OnrampMethod = z.infer<typeof OnrampMethod>;
223
+
224
+ /**
225
+ * Configuration options for response validation
226
+ */
227
+ interface ResponseValidationOptions {
228
+ /** Whether to enable response validation */
229
+ enabled: boolean;
230
+ /** Enable debug logging */
231
+ debug?: boolean;
232
+ }
233
+
234
+ /**
235
+ * The type of error that can occur in the payments API client.
236
+ * @enum {string}
237
+ * @readonly
238
+ */
239
+ declare enum ErrorCodes {
240
+ /**
241
+ * The error code for zod validation errors.
242
+ * @type {string}
243
+ */
244
+ VALIDATION_ERROR = "VALIDATION_ERROR",
245
+ /**
246
+ * The error code for Halliday Payments API business logic errors.
247
+ * @type {string}
248
+ */
249
+ API_ERROR = "API_ERROR",
250
+ /**
251
+ * The error code for server 500 errors.
252
+ * @type {string}
253
+ */
254
+ SERVER_ERROR = "SERVER_ERROR",
255
+ /**
256
+ * The error code for axios/network errors.
257
+ * @type {string}
258
+ */
259
+ NETWORK_ERROR = "NETWORK_ERROR",
260
+ /**
261
+ * The error code for unknown errors.
262
+ * @type {string}
263
+ */
264
+ UNKNOWN_ERROR = "UNKNOWN_ERROR"
265
+ }
266
+ /**
267
+ * Custom error class for the payments API client.
268
+ * @extends Error
269
+ * @property {string} name - HallidayPaymentsApiClientError.
270
+ * @property {ErrorCodes} code - The error code.
271
+ * @property {string} message - The message of the error.
272
+ * @property {string} validationMessage - The message from zod validation error.
273
+ * @property {ZodError["issues"]} validationIssues - The issues from zod validation error.
274
+ * @property {number} status - The HTTP request status.
275
+ * @property {string} statusText - The HTTP request status text.
276
+ * @property {Record<string, any>} reqHeaders - The HTTP request headers.
277
+ * @property {Record<string, any>} resHeaders - The HTTP response headers.
278
+ * @property {any} data - The response data from the server.
279
+ * @property {AxiosRequestConfig} config - The request configuration.
280
+ * @property {any} request - The request object.
281
+ * @property {AxiosResponse} response - The response object.
282
+ * @property {Error} error - The error object.
283
+ */
284
+ declare class PaymentsApiClientError extends Error {
285
+ name: string;
286
+ code: ErrorCodes;
287
+ message: string;
288
+ validationIssues: ZodError["issues"] | null;
289
+ validationMessage: ZodError["message"] | string | null;
290
+ status: number | null;
291
+ statusText: string | null;
292
+ reqHeaders: Record<string, any> | null;
293
+ resHeaders: Record<string, any> | null;
294
+ data: any | null;
295
+ config: AxiosRequestConfig | null;
296
+ request: any | null;
297
+ response: AxiosResponse | null;
298
+ error: Error | any;
299
+ constructor({ message, code, status, statusText, reqHeaders, resHeaders, data, config, request, response, error, validationIssues, validationMessage, }: {
300
+ message: string;
301
+ code: ErrorCodes;
302
+ status?: number;
303
+ statusText?: string;
304
+ reqHeaders?: Record<string, any>;
305
+ resHeaders?: Record<string, any>;
306
+ data?: any;
307
+ config?: AxiosRequestConfig;
308
+ request?: any;
309
+ response?: AxiosResponse;
310
+ error?: Error;
311
+ validationIssues?: ZodError["issues"] | null;
312
+ validationMessage?: ZodError["message"] | string | null;
313
+ });
314
+ static isPaymentsApiClientError(error: unknown): error is PaymentsApiClientError;
315
+ static parseValidationError({ message, error, }: {
316
+ message?: string;
317
+ error?: ZodError | Error;
318
+ }): PaymentsApiClientError;
319
+ static parseAxiosError(error: AxiosError): PaymentsApiClientError | null;
320
+ toJSON(): string;
321
+ }
322
+
323
+ declare const PaymentId: z.ZodString;
324
+ type PaymentId = z.infer<typeof PaymentId>;
325
+ declare const InputsAssetFilters: z.ZodObject<{
326
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
327
+ offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
328
+ sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
329
+ inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
330
+ outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
331
+ }, z.core.$strip>;
332
+ type InputsAssetFilters = z.input<typeof InputsAssetFilters>;
333
+ declare const OutputsAssetFilters: z.ZodObject<{
334
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
335
+ offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
336
+ sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
337
+ inputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
338
+ outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
339
+ }, z.core.$strip>;
340
+ type OutputsAssetFilters = z.input<typeof OutputsAssetFilters>;
341
+ declare const AssetFilters: z.ZodUnion<readonly [z.ZodObject<{
342
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
343
+ offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
344
+ sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
345
+ inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
346
+ outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
349
+ offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
350
+ sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
351
+ inputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
352
+ outputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
353
+ }, z.core.$strip>]>;
354
+ type AssetFilters = z.infer<typeof AssetFilters>;
355
+ declare const IPAddressOverride: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
356
+ declare const Feature: z.ZodEnum<{
357
+ BETA_EDGES: "BETA_EDGES";
358
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
359
+ ORG_EDGES: "ORG_EDGES";
360
+ }>;
361
+ type Feature = z.infer<typeof Feature>;
362
+ declare const RequestForQuotes: z.ZodObject<{
363
+ price_currency: z.ZodString;
364
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
365
+ onramp_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
366
+ CREDIT_CARD: "CREDIT_CARD";
367
+ DEBIT_CARD: "DEBIT_CARD";
368
+ ACH: "ACH";
369
+ FIAT_BALANCE: "FIAT_BALANCE";
370
+ TOKEN_BALANCE: "TOKEN_BALANCE";
371
+ APPLE_PAY: "APPLE_PAY";
372
+ PAYPAL: "PAYPAL";
373
+ VENMO: "VENMO";
374
+ REVOLUT: "REVOLUT";
375
+ GOOGLE_PAY: "GOOGLE_PAY";
376
+ SEPA: "SEPA";
377
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
378
+ PIX: "PIX";
379
+ UPI: "UPI";
380
+ WIRE: "WIRE";
381
+ }>>>;
382
+ customer_ip_address: z.ZodOptional<z.ZodString>;
383
+ customer_id: z.ZodOptional<z.ZodString>;
384
+ parent_payment_id: z.ZodOptional<z.ZodString>;
385
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
386
+ BETA_EDGES: "BETA_EDGES";
387
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
388
+ ORG_EDGES: "ORG_EDGES";
389
+ }>>>;
390
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
391
+ kind: z.ZodLiteral<"FIXED_INPUT">;
392
+ fixed_input_amount: z.ZodObject<{
393
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
394
+ amount: z.ZodString;
395
+ }, z.core.$strip>;
396
+ output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
397
+ }, z.core.$strip>]>;
398
+ }, z.core.$strip>;
399
+ type RequestForQuotes = z.infer<typeof RequestForQuotes>;
400
+ declare const Account: z.ZodEnum<{
401
+ USER: "USER";
402
+ DEST: "DEST";
403
+ HALLIDAY: "HALLIDAY";
404
+ SPW: "SPW";
405
+ REV_SHARE: "REV_SHARE";
406
+ BRIDGE: "BRIDGE";
407
+ }>;
408
+ type Account = z.infer<typeof Account>;
409
+ declare const ObservedStatus: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
410
+ type ObservedStatus = z.infer<typeof ObservedStatus>;
411
+ declare const ChangeAmount: z.ZodObject<{
412
+ account: z.ZodEnum<{
413
+ USER: "USER";
414
+ DEST: "DEST";
415
+ HALLIDAY: "HALLIDAY";
416
+ SPW: "SPW";
417
+ REV_SHARE: "REV_SHARE";
418
+ BRIDGE: "BRIDGE";
419
+ }>;
420
+ resource: z.ZodObject<{
421
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
422
+ property: z.ZodEnum<{
423
+ APPROVAL: "APPROVAL";
424
+ BALANCE: "BALANCE";
425
+ }>;
426
+ }, z.core.$strip>;
427
+ amount: z.ZodString;
428
+ }, z.core.$strip>;
429
+ type ChangeAmount = z.infer<typeof ChangeAmount>;
430
+ declare const Prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
431
+ type Prices = z.infer<typeof Prices>;
432
+ declare const Issue: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"amount">, z.ZodLiteral<"amount-downstream">]>;
434
+ given: z.ZodString;
435
+ limits: z.ZodObject<{
436
+ min: z.ZodOptional<z.ZodString>;
437
+ max: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strip>;
439
+ source: z.ZodString;
440
+ message: z.ZodString;
441
+ }, z.core.$strip>, z.ZodObject<{
442
+ kind: z.ZodLiteral<"geolocation">;
443
+ message: z.ZodString;
444
+ }, z.core.$strip>, z.ZodObject<{
445
+ kind: z.ZodLiteral<"provider">;
446
+ message: z.ZodString;
447
+ }, z.core.$strip>, z.ZodObject<{
448
+ kind: z.ZodLiteral<"other">;
449
+ message: z.ZodString;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ kind: z.ZodLiteral<"unknown">;
452
+ message: z.ZodString;
453
+ }, z.core.$strip>]>;
454
+ type Issue = z.infer<typeof Issue>;
455
+ declare const Failure: z.ZodObject<{
456
+ service_ids: z.ZodArray<z.ZodString>;
457
+ latency_seconds: z.ZodNumber;
458
+ issues: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
459
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"amount">, z.ZodLiteral<"amount-downstream">]>;
460
+ given: z.ZodString;
461
+ limits: z.ZodObject<{
462
+ min: z.ZodOptional<z.ZodString>;
463
+ max: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strip>;
465
+ source: z.ZodString;
466
+ message: z.ZodString;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ kind: z.ZodLiteral<"geolocation">;
469
+ message: z.ZodString;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ kind: z.ZodLiteral<"provider">;
472
+ message: z.ZodString;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ kind: z.ZodLiteral<"other">;
475
+ message: z.ZodString;
476
+ }, z.core.$strip>, z.ZodObject<{
477
+ kind: z.ZodLiteral<"unknown">;
478
+ message: z.ZodString;
479
+ }, z.core.$strip>]>>>;
480
+ }, z.core.$strip>;
481
+ type Failure = z.infer<typeof Failure>;
482
+ declare const RouteType: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
483
+ type RouteType = z.infer<typeof RouteType>;
484
+ declare const QuotedRoute: z.ZodObject<{
485
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
486
+ net_effect: z.ZodObject<{
487
+ consume: z.ZodArray<z.ZodObject<{
488
+ account: z.ZodEnum<{
489
+ USER: "USER";
490
+ DEST: "DEST";
491
+ HALLIDAY: "HALLIDAY";
492
+ SPW: "SPW";
493
+ REV_SHARE: "REV_SHARE";
494
+ BRIDGE: "BRIDGE";
495
+ }>;
496
+ resource: z.ZodObject<{
497
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
498
+ property: z.ZodEnum<{
499
+ APPROVAL: "APPROVAL";
500
+ BALANCE: "BALANCE";
501
+ }>;
502
+ }, z.core.$strip>;
503
+ amount: z.ZodString;
504
+ }, z.core.$strip>>;
505
+ produce: z.ZodArray<z.ZodObject<{
506
+ account: z.ZodEnum<{
507
+ USER: "USER";
508
+ DEST: "DEST";
509
+ HALLIDAY: "HALLIDAY";
510
+ SPW: "SPW";
511
+ REV_SHARE: "REV_SHARE";
512
+ BRIDGE: "BRIDGE";
513
+ }>;
514
+ resource: z.ZodObject<{
515
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
516
+ property: z.ZodEnum<{
517
+ APPROVAL: "APPROVAL";
518
+ BALANCE: "BALANCE";
519
+ }>;
520
+ }, z.core.$strip>;
521
+ amount: z.ZodString;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>;
524
+ pieces_info: z.ZodArray<z.ZodObject<{
525
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
526
+ }, z.core.$strip>>;
527
+ step_index: z.ZodOptional<z.ZodNumber>;
528
+ }, z.core.$strip>;
529
+ type QuotedRoute = z.infer<typeof QuotedRoute>;
530
+ declare const Quote: z.ZodObject<{
531
+ payment_id: z.ZodString;
532
+ output_amount: z.ZodObject<{
533
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
534
+ amount: z.ZodString;
535
+ }, z.core.$strip>;
536
+ onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
537
+ onramp_method: z.ZodOptional<z.ZodEnum<{
538
+ CREDIT_CARD: "CREDIT_CARD";
539
+ DEBIT_CARD: "DEBIT_CARD";
540
+ ACH: "ACH";
541
+ FIAT_BALANCE: "FIAT_BALANCE";
542
+ TOKEN_BALANCE: "TOKEN_BALANCE";
543
+ APPLE_PAY: "APPLE_PAY";
544
+ PAYPAL: "PAYPAL";
545
+ VENMO: "VENMO";
546
+ REVOLUT: "REVOLUT";
547
+ GOOGLE_PAY: "GOOGLE_PAY";
548
+ SEPA: "SEPA";
549
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
550
+ PIX: "PIX";
551
+ UPI: "UPI";
552
+ WIRE: "WIRE";
553
+ }>>;
554
+ fees: z.ZodObject<{
555
+ total_fees: z.ZodString;
556
+ conversion_fees: z.ZodString;
557
+ network_fees: z.ZodString;
558
+ business_fees: z.ZodString;
559
+ currency_symbol: z.ZodString;
560
+ }, z.core.$strip>;
561
+ route: z.ZodArray<z.ZodObject<{
562
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
563
+ net_effect: z.ZodObject<{
564
+ consume: z.ZodArray<z.ZodObject<{
565
+ account: z.ZodEnum<{
566
+ USER: "USER";
567
+ DEST: "DEST";
568
+ HALLIDAY: "HALLIDAY";
569
+ SPW: "SPW";
570
+ REV_SHARE: "REV_SHARE";
571
+ BRIDGE: "BRIDGE";
572
+ }>;
573
+ resource: z.ZodObject<{
574
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
575
+ property: z.ZodEnum<{
576
+ APPROVAL: "APPROVAL";
577
+ BALANCE: "BALANCE";
578
+ }>;
579
+ }, z.core.$strip>;
580
+ amount: z.ZodString;
581
+ }, z.core.$strip>>;
582
+ produce: z.ZodArray<z.ZodObject<{
583
+ account: z.ZodEnum<{
584
+ USER: "USER";
585
+ DEST: "DEST";
586
+ HALLIDAY: "HALLIDAY";
587
+ SPW: "SPW";
588
+ REV_SHARE: "REV_SHARE";
589
+ BRIDGE: "BRIDGE";
590
+ }>;
591
+ resource: z.ZodObject<{
592
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
593
+ property: z.ZodEnum<{
594
+ APPROVAL: "APPROVAL";
595
+ BALANCE: "BALANCE";
596
+ }>;
597
+ }, z.core.$strip>;
598
+ amount: z.ZodString;
599
+ }, z.core.$strip>>;
600
+ }, z.core.$strip>;
601
+ pieces_info: z.ZodArray<z.ZodObject<{
602
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
603
+ }, z.core.$strip>>;
604
+ step_index: z.ZodOptional<z.ZodNumber>;
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>;
607
+ type Quote = z.infer<typeof Quote>;
608
+ declare const FulfillmentRoute: z.ZodObject<{
609
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
610
+ net_effect: z.ZodObject<{
611
+ consume: z.ZodArray<z.ZodObject<{
612
+ account: z.ZodEnum<{
613
+ USER: "USER";
614
+ DEST: "DEST";
615
+ HALLIDAY: "HALLIDAY";
616
+ SPW: "SPW";
617
+ REV_SHARE: "REV_SHARE";
618
+ BRIDGE: "BRIDGE";
619
+ }>;
620
+ resource: z.ZodObject<{
621
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
622
+ property: z.ZodEnum<{
623
+ APPROVAL: "APPROVAL";
624
+ BALANCE: "BALANCE";
625
+ }>;
626
+ }, z.core.$strip>;
627
+ amount: z.ZodString;
628
+ }, z.core.$strip>>;
629
+ produce: z.ZodArray<z.ZodObject<{
630
+ account: z.ZodEnum<{
631
+ USER: "USER";
632
+ DEST: "DEST";
633
+ HALLIDAY: "HALLIDAY";
634
+ SPW: "SPW";
635
+ REV_SHARE: "REV_SHARE";
636
+ BRIDGE: "BRIDGE";
637
+ }>;
638
+ resource: z.ZodObject<{
639
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
640
+ property: z.ZodEnum<{
641
+ APPROVAL: "APPROVAL";
642
+ BALANCE: "BALANCE";
643
+ }>;
644
+ }, z.core.$strip>;
645
+ amount: z.ZodString;
646
+ }, z.core.$strip>>;
647
+ }, z.core.$strip>;
648
+ pieces_info: z.ZodArray<z.ZodObject<{
649
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
650
+ }, z.core.$strip>>;
651
+ step_index: z.ZodOptional<z.ZodNumber>;
652
+ status: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
653
+ transaction_hash: z.ZodOptional<z.ZodString>;
654
+ }, z.core.$strip>;
655
+ type FulfillmentRoute = z.infer<typeof FulfillmentRoute>;
656
+ declare const Fulfillment: z.ZodObject<{
657
+ onramp: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
658
+ output_amount: z.ZodOptional<z.ZodObject<{
659
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
660
+ amount: z.ZodString;
661
+ }, z.core.$strip>>;
662
+ onramp_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
663
+ CREDIT_CARD: "CREDIT_CARD";
664
+ DEBIT_CARD: "DEBIT_CARD";
665
+ ACH: "ACH";
666
+ FIAT_BALANCE: "FIAT_BALANCE";
667
+ TOKEN_BALANCE: "TOKEN_BALANCE";
668
+ APPLE_PAY: "APPLE_PAY";
669
+ PAYPAL: "PAYPAL";
670
+ VENMO: "VENMO";
671
+ REVOLUT: "REVOLUT";
672
+ GOOGLE_PAY: "GOOGLE_PAY";
673
+ SEPA: "SEPA";
674
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
675
+ PIX: "PIX";
676
+ UPI: "UPI";
677
+ WIRE: "WIRE";
678
+ }>>>;
679
+ fees: z.ZodOptional<z.ZodObject<{
680
+ total_fees: z.ZodString;
681
+ conversion_fees: z.ZodString;
682
+ network_fees: z.ZodString;
683
+ business_fees: z.ZodString;
684
+ currency_symbol: z.ZodString;
685
+ }, z.core.$strip>>;
686
+ route: z.ZodArray<z.ZodObject<{
687
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
688
+ net_effect: z.ZodObject<{
689
+ consume: z.ZodArray<z.ZodObject<{
690
+ account: z.ZodEnum<{
691
+ USER: "USER";
692
+ DEST: "DEST";
693
+ HALLIDAY: "HALLIDAY";
694
+ SPW: "SPW";
695
+ REV_SHARE: "REV_SHARE";
696
+ BRIDGE: "BRIDGE";
697
+ }>;
698
+ resource: z.ZodObject<{
699
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
700
+ property: z.ZodEnum<{
701
+ APPROVAL: "APPROVAL";
702
+ BALANCE: "BALANCE";
703
+ }>;
704
+ }, z.core.$strip>;
705
+ amount: z.ZodString;
706
+ }, z.core.$strip>>;
707
+ produce: z.ZodArray<z.ZodObject<{
708
+ account: z.ZodEnum<{
709
+ USER: "USER";
710
+ DEST: "DEST";
711
+ HALLIDAY: "HALLIDAY";
712
+ SPW: "SPW";
713
+ REV_SHARE: "REV_SHARE";
714
+ BRIDGE: "BRIDGE";
715
+ }>;
716
+ resource: z.ZodObject<{
717
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
718
+ property: z.ZodEnum<{
719
+ APPROVAL: "APPROVAL";
720
+ BALANCE: "BALANCE";
721
+ }>;
722
+ }, z.core.$strip>;
723
+ amount: z.ZodString;
724
+ }, z.core.$strip>>;
725
+ }, z.core.$strip>;
726
+ pieces_info: z.ZodArray<z.ZodObject<{
727
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
728
+ }, z.core.$strip>>;
729
+ step_index: z.ZodOptional<z.ZodNumber>;
730
+ status: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
731
+ transaction_hash: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$strip>>;
733
+ }, z.core.$strip>;
734
+ type Fulfillment = z.infer<typeof Fulfillment>;
735
+ declare const QuotesResponse: z.ZodObject<{
736
+ quote_request: z.ZodObject<{
737
+ price_currency: z.ZodString;
738
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
739
+ onramp_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
740
+ CREDIT_CARD: "CREDIT_CARD";
741
+ DEBIT_CARD: "DEBIT_CARD";
742
+ ACH: "ACH";
743
+ FIAT_BALANCE: "FIAT_BALANCE";
744
+ TOKEN_BALANCE: "TOKEN_BALANCE";
745
+ APPLE_PAY: "APPLE_PAY";
746
+ PAYPAL: "PAYPAL";
747
+ VENMO: "VENMO";
748
+ REVOLUT: "REVOLUT";
749
+ GOOGLE_PAY: "GOOGLE_PAY";
750
+ SEPA: "SEPA";
751
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
752
+ PIX: "PIX";
753
+ UPI: "UPI";
754
+ WIRE: "WIRE";
755
+ }>>>;
756
+ customer_ip_address: z.ZodOptional<z.ZodString>;
757
+ customer_id: z.ZodOptional<z.ZodString>;
758
+ parent_payment_id: z.ZodOptional<z.ZodString>;
759
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
760
+ BETA_EDGES: "BETA_EDGES";
761
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
762
+ ORG_EDGES: "ORG_EDGES";
763
+ }>>>;
764
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
765
+ kind: z.ZodLiteral<"FIXED_INPUT">;
766
+ fixed_input_amount: z.ZodObject<{
767
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
768
+ amount: z.ZodString;
769
+ }, z.core.$strip>;
770
+ output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
771
+ }, z.core.$strip>]>;
772
+ }, z.core.$strip>;
773
+ quotes: z.ZodArray<z.ZodObject<{
774
+ payment_id: z.ZodString;
775
+ output_amount: z.ZodObject<{
776
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
777
+ amount: z.ZodString;
778
+ }, z.core.$strip>;
779
+ onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
780
+ onramp_method: z.ZodOptional<z.ZodEnum<{
781
+ CREDIT_CARD: "CREDIT_CARD";
782
+ DEBIT_CARD: "DEBIT_CARD";
783
+ ACH: "ACH";
784
+ FIAT_BALANCE: "FIAT_BALANCE";
785
+ TOKEN_BALANCE: "TOKEN_BALANCE";
786
+ APPLE_PAY: "APPLE_PAY";
787
+ PAYPAL: "PAYPAL";
788
+ VENMO: "VENMO";
789
+ REVOLUT: "REVOLUT";
790
+ GOOGLE_PAY: "GOOGLE_PAY";
791
+ SEPA: "SEPA";
792
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
793
+ PIX: "PIX";
794
+ UPI: "UPI";
795
+ WIRE: "WIRE";
796
+ }>>;
797
+ fees: z.ZodObject<{
798
+ total_fees: z.ZodString;
799
+ conversion_fees: z.ZodString;
800
+ network_fees: z.ZodString;
801
+ business_fees: z.ZodString;
802
+ currency_symbol: z.ZodString;
803
+ }, z.core.$strip>;
804
+ route: z.ZodArray<z.ZodObject<{
805
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
806
+ net_effect: z.ZodObject<{
807
+ consume: z.ZodArray<z.ZodObject<{
808
+ account: z.ZodEnum<{
809
+ USER: "USER";
810
+ DEST: "DEST";
811
+ HALLIDAY: "HALLIDAY";
812
+ SPW: "SPW";
813
+ REV_SHARE: "REV_SHARE";
814
+ BRIDGE: "BRIDGE";
815
+ }>;
816
+ resource: z.ZodObject<{
817
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
818
+ property: z.ZodEnum<{
819
+ APPROVAL: "APPROVAL";
820
+ BALANCE: "BALANCE";
821
+ }>;
822
+ }, z.core.$strip>;
823
+ amount: z.ZodString;
824
+ }, z.core.$strip>>;
825
+ produce: z.ZodArray<z.ZodObject<{
826
+ account: z.ZodEnum<{
827
+ USER: "USER";
828
+ DEST: "DEST";
829
+ HALLIDAY: "HALLIDAY";
830
+ SPW: "SPW";
831
+ REV_SHARE: "REV_SHARE";
832
+ BRIDGE: "BRIDGE";
833
+ }>;
834
+ resource: z.ZodObject<{
835
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
836
+ property: z.ZodEnum<{
837
+ APPROVAL: "APPROVAL";
838
+ BALANCE: "BALANCE";
839
+ }>;
840
+ }, z.core.$strip>;
841
+ amount: z.ZodString;
842
+ }, z.core.$strip>>;
843
+ }, z.core.$strip>;
844
+ pieces_info: z.ZodArray<z.ZodObject<{
845
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
846
+ }, z.core.$strip>>;
847
+ step_index: z.ZodOptional<z.ZodNumber>;
848
+ }, z.core.$strip>>;
849
+ }, z.core.$strip>>;
850
+ current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
851
+ price_currency: z.ZodString;
852
+ state_token: z.ZodString;
853
+ quoted_at: z.ZodString;
854
+ accept_by: z.ZodString;
855
+ failures: z.ZodArray<z.ZodObject<{
856
+ service_ids: z.ZodArray<z.ZodString>;
857
+ latency_seconds: z.ZodNumber;
858
+ issues: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
859
+ kind: z.ZodUnion<readonly [z.ZodLiteral<"amount">, z.ZodLiteral<"amount-downstream">]>;
860
+ given: z.ZodString;
861
+ limits: z.ZodObject<{
862
+ min: z.ZodOptional<z.ZodString>;
863
+ max: z.ZodOptional<z.ZodString>;
864
+ }, z.core.$strip>;
865
+ source: z.ZodString;
866
+ message: z.ZodString;
867
+ }, z.core.$strip>, z.ZodObject<{
868
+ kind: z.ZodLiteral<"geolocation">;
869
+ message: z.ZodString;
870
+ }, z.core.$strip>, z.ZodObject<{
871
+ kind: z.ZodLiteral<"provider">;
872
+ message: z.ZodString;
873
+ }, z.core.$strip>, z.ZodObject<{
874
+ kind: z.ZodLiteral<"other">;
875
+ message: z.ZodString;
876
+ }, z.core.$strip>, z.ZodObject<{
877
+ kind: z.ZodLiteral<"unknown">;
878
+ message: z.ZodString;
879
+ }, z.core.$strip>]>>>;
880
+ }, z.core.$strip>>;
881
+ }, z.core.$strip>;
882
+ type QuotesResponse = z.infer<typeof QuotesResponse>;
883
+ declare const RequestForConfirmQuote: z.ZodObject<{
884
+ payment_id: z.ZodString;
885
+ state_token: z.ZodString;
886
+ owner_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
887
+ destination_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
888
+ client_redirect_url: z.ZodOptional<z.ZodString>;
889
+ }, z.core.$strip>;
890
+ type RequestForConfirmQuote = z.infer<typeof RequestForConfirmQuote>;
891
+ declare const DepositInfo: z.ZodObject<{
892
+ deposit_token: z.ZodString;
893
+ deposit_chain: z.ZodString;
894
+ deposit_amount: z.ZodString;
895
+ deposit_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
896
+ }, z.core.$strip>;
897
+ type DepositInfo = z.infer<typeof DepositInfo>;
898
+ declare const NextInstruction: z.ZodObject<{
899
+ type: z.ZodEnum<{
900
+ ONRAMP: "ONRAMP";
901
+ TRANSFER_IN: "TRANSFER_IN";
902
+ }>;
903
+ payment_id: z.ZodString;
904
+ funding_page_url: z.ZodURL;
905
+ deposit_info: z.ZodArray<z.ZodObject<{
906
+ deposit_token: z.ZodString;
907
+ deposit_chain: z.ZodString;
908
+ deposit_amount: z.ZodString;
909
+ deposit_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
910
+ }, z.core.$strip>>;
911
+ }, z.core.$strip>;
912
+ type NextInstruction = z.infer<typeof NextInstruction>;
913
+ declare const ConfirmQuoteResponse: z.ZodObject<{
914
+ payment_id: z.ZodString;
915
+ status: z.ZodEnum<{
916
+ COMPLETE: "COMPLETE";
917
+ FAILED: "FAILED";
918
+ PENDING: "PENDING";
919
+ EXPIRED: "EXPIRED";
920
+ WITHDRAWN: "WITHDRAWN";
921
+ TAINTED: "TAINTED";
922
+ }>;
923
+ funded: z.ZodBoolean;
924
+ created_at: z.ZodString;
925
+ updated_at: z.ZodString;
926
+ initiate_fund_by: z.ZodString;
927
+ completed_at: z.ZodOptional<z.ZodString>;
928
+ quote_request: z.ZodObject<{
929
+ price_currency: z.ZodString;
930
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
931
+ onramp_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
932
+ CREDIT_CARD: "CREDIT_CARD";
933
+ DEBIT_CARD: "DEBIT_CARD";
934
+ ACH: "ACH";
935
+ FIAT_BALANCE: "FIAT_BALANCE";
936
+ TOKEN_BALANCE: "TOKEN_BALANCE";
937
+ APPLE_PAY: "APPLE_PAY";
938
+ PAYPAL: "PAYPAL";
939
+ VENMO: "VENMO";
940
+ REVOLUT: "REVOLUT";
941
+ GOOGLE_PAY: "GOOGLE_PAY";
942
+ SEPA: "SEPA";
943
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
944
+ PIX: "PIX";
945
+ UPI: "UPI";
946
+ WIRE: "WIRE";
947
+ }>>>;
948
+ customer_ip_address: z.ZodOptional<z.ZodString>;
949
+ customer_id: z.ZodOptional<z.ZodString>;
950
+ parent_payment_id: z.ZodOptional<z.ZodString>;
951
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
952
+ BETA_EDGES: "BETA_EDGES";
953
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
954
+ ORG_EDGES: "ORG_EDGES";
955
+ }>>>;
956
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
957
+ kind: z.ZodLiteral<"FIXED_INPUT">;
958
+ fixed_input_amount: z.ZodObject<{
959
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
960
+ amount: z.ZodString;
961
+ }, z.core.$strip>;
962
+ output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
963
+ }, z.core.$strip>]>;
964
+ }, z.core.$strip>;
965
+ quoted: z.ZodObject<{
966
+ onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
967
+ output_amount: z.ZodObject<{
968
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
969
+ amount: z.ZodString;
970
+ }, z.core.$strip>;
971
+ onramp_method: z.ZodOptional<z.ZodEnum<{
972
+ CREDIT_CARD: "CREDIT_CARD";
973
+ DEBIT_CARD: "DEBIT_CARD";
974
+ ACH: "ACH";
975
+ FIAT_BALANCE: "FIAT_BALANCE";
976
+ TOKEN_BALANCE: "TOKEN_BALANCE";
977
+ APPLE_PAY: "APPLE_PAY";
978
+ PAYPAL: "PAYPAL";
979
+ VENMO: "VENMO";
980
+ REVOLUT: "REVOLUT";
981
+ GOOGLE_PAY: "GOOGLE_PAY";
982
+ SEPA: "SEPA";
983
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
984
+ PIX: "PIX";
985
+ UPI: "UPI";
986
+ WIRE: "WIRE";
987
+ }>>;
988
+ fees: z.ZodObject<{
989
+ total_fees: z.ZodString;
990
+ conversion_fees: z.ZodString;
991
+ network_fees: z.ZodString;
992
+ business_fees: z.ZodString;
993
+ currency_symbol: z.ZodString;
994
+ }, z.core.$strip>;
995
+ route: z.ZodArray<z.ZodObject<{
996
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
997
+ net_effect: z.ZodObject<{
998
+ consume: z.ZodArray<z.ZodObject<{
999
+ account: z.ZodEnum<{
1000
+ USER: "USER";
1001
+ DEST: "DEST";
1002
+ HALLIDAY: "HALLIDAY";
1003
+ SPW: "SPW";
1004
+ REV_SHARE: "REV_SHARE";
1005
+ BRIDGE: "BRIDGE";
1006
+ }>;
1007
+ resource: z.ZodObject<{
1008
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1009
+ property: z.ZodEnum<{
1010
+ APPROVAL: "APPROVAL";
1011
+ BALANCE: "BALANCE";
1012
+ }>;
1013
+ }, z.core.$strip>;
1014
+ amount: z.ZodString;
1015
+ }, z.core.$strip>>;
1016
+ produce: z.ZodArray<z.ZodObject<{
1017
+ account: z.ZodEnum<{
1018
+ USER: "USER";
1019
+ DEST: "DEST";
1020
+ HALLIDAY: "HALLIDAY";
1021
+ SPW: "SPW";
1022
+ REV_SHARE: "REV_SHARE";
1023
+ BRIDGE: "BRIDGE";
1024
+ }>;
1025
+ resource: z.ZodObject<{
1026
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1027
+ property: z.ZodEnum<{
1028
+ APPROVAL: "APPROVAL";
1029
+ BALANCE: "BALANCE";
1030
+ }>;
1031
+ }, z.core.$strip>;
1032
+ amount: z.ZodString;
1033
+ }, z.core.$strip>>;
1034
+ }, z.core.$strip>;
1035
+ pieces_info: z.ZodArray<z.ZodObject<{
1036
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1037
+ }, z.core.$strip>>;
1038
+ step_index: z.ZodOptional<z.ZodNumber>;
1039
+ }, z.core.$strip>>;
1040
+ }, z.core.$strip>;
1041
+ fulfilled: z.ZodObject<{
1042
+ onramp: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1043
+ output_amount: z.ZodOptional<z.ZodObject<{
1044
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1045
+ amount: z.ZodString;
1046
+ }, z.core.$strip>>;
1047
+ onramp_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1048
+ CREDIT_CARD: "CREDIT_CARD";
1049
+ DEBIT_CARD: "DEBIT_CARD";
1050
+ ACH: "ACH";
1051
+ FIAT_BALANCE: "FIAT_BALANCE";
1052
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1053
+ APPLE_PAY: "APPLE_PAY";
1054
+ PAYPAL: "PAYPAL";
1055
+ VENMO: "VENMO";
1056
+ REVOLUT: "REVOLUT";
1057
+ GOOGLE_PAY: "GOOGLE_PAY";
1058
+ SEPA: "SEPA";
1059
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1060
+ PIX: "PIX";
1061
+ UPI: "UPI";
1062
+ WIRE: "WIRE";
1063
+ }>>>;
1064
+ fees: z.ZodOptional<z.ZodObject<{
1065
+ total_fees: z.ZodString;
1066
+ conversion_fees: z.ZodString;
1067
+ network_fees: z.ZodString;
1068
+ business_fees: z.ZodString;
1069
+ currency_symbol: z.ZodString;
1070
+ }, z.core.$strip>>;
1071
+ route: z.ZodArray<z.ZodObject<{
1072
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
1073
+ net_effect: z.ZodObject<{
1074
+ consume: z.ZodArray<z.ZodObject<{
1075
+ account: z.ZodEnum<{
1076
+ USER: "USER";
1077
+ DEST: "DEST";
1078
+ HALLIDAY: "HALLIDAY";
1079
+ SPW: "SPW";
1080
+ REV_SHARE: "REV_SHARE";
1081
+ BRIDGE: "BRIDGE";
1082
+ }>;
1083
+ resource: z.ZodObject<{
1084
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1085
+ property: z.ZodEnum<{
1086
+ APPROVAL: "APPROVAL";
1087
+ BALANCE: "BALANCE";
1088
+ }>;
1089
+ }, z.core.$strip>;
1090
+ amount: z.ZodString;
1091
+ }, z.core.$strip>>;
1092
+ produce: z.ZodArray<z.ZodObject<{
1093
+ account: z.ZodEnum<{
1094
+ USER: "USER";
1095
+ DEST: "DEST";
1096
+ HALLIDAY: "HALLIDAY";
1097
+ SPW: "SPW";
1098
+ REV_SHARE: "REV_SHARE";
1099
+ BRIDGE: "BRIDGE";
1100
+ }>;
1101
+ resource: z.ZodObject<{
1102
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1103
+ property: z.ZodEnum<{
1104
+ APPROVAL: "APPROVAL";
1105
+ BALANCE: "BALANCE";
1106
+ }>;
1107
+ }, z.core.$strip>;
1108
+ amount: z.ZodString;
1109
+ }, z.core.$strip>>;
1110
+ }, z.core.$strip>;
1111
+ pieces_info: z.ZodArray<z.ZodObject<{
1112
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1113
+ }, z.core.$strip>>;
1114
+ step_index: z.ZodOptional<z.ZodNumber>;
1115
+ status: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
1116
+ transaction_hash: z.ZodOptional<z.ZodString>;
1117
+ }, z.core.$strip>>;
1118
+ }, z.core.$strip>;
1119
+ current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
1120
+ price_currency: z.ZodString;
1121
+ customer_id: z.ZodOptional<z.ZodString>;
1122
+ processing_addresses: z.ZodArray<z.ZodObject<{
1123
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1124
+ chain: z.ZodString;
1125
+ }, z.core.$strip>>;
1126
+ owner_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1127
+ destination_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1128
+ next_instruction: z.ZodOptional<z.ZodObject<{
1129
+ type: z.ZodEnum<{
1130
+ ONRAMP: "ONRAMP";
1131
+ TRANSFER_IN: "TRANSFER_IN";
1132
+ }>;
1133
+ payment_id: z.ZodString;
1134
+ funding_page_url: z.ZodURL;
1135
+ deposit_info: z.ZodArray<z.ZodObject<{
1136
+ deposit_token: z.ZodString;
1137
+ deposit_chain: z.ZodString;
1138
+ deposit_amount: z.ZodString;
1139
+ deposit_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1140
+ }, z.core.$strip>>;
1141
+ }, z.core.$strip>>;
1142
+ parent_payment_id: z.ZodOptional<z.ZodString>;
1143
+ }, z.core.$strip>;
1144
+ type ConfirmQuoteResponse = z.infer<typeof ConfirmQuoteResponse>;
1145
+ declare const PaymentStatus: z.ZodObject<{
1146
+ payment_id: z.ZodString;
1147
+ status: z.ZodEnum<{
1148
+ COMPLETE: "COMPLETE";
1149
+ FAILED: "FAILED";
1150
+ PENDING: "PENDING";
1151
+ EXPIRED: "EXPIRED";
1152
+ WITHDRAWN: "WITHDRAWN";
1153
+ TAINTED: "TAINTED";
1154
+ }>;
1155
+ funded: z.ZodBoolean;
1156
+ created_at: z.ZodString;
1157
+ updated_at: z.ZodString;
1158
+ initiate_fund_by: z.ZodString;
1159
+ completed_at: z.ZodOptional<z.ZodString>;
1160
+ quote_request: z.ZodObject<{
1161
+ price_currency: z.ZodString;
1162
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1163
+ onramp_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1164
+ CREDIT_CARD: "CREDIT_CARD";
1165
+ DEBIT_CARD: "DEBIT_CARD";
1166
+ ACH: "ACH";
1167
+ FIAT_BALANCE: "FIAT_BALANCE";
1168
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1169
+ APPLE_PAY: "APPLE_PAY";
1170
+ PAYPAL: "PAYPAL";
1171
+ VENMO: "VENMO";
1172
+ REVOLUT: "REVOLUT";
1173
+ GOOGLE_PAY: "GOOGLE_PAY";
1174
+ SEPA: "SEPA";
1175
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1176
+ PIX: "PIX";
1177
+ UPI: "UPI";
1178
+ WIRE: "WIRE";
1179
+ }>>>;
1180
+ customer_ip_address: z.ZodOptional<z.ZodString>;
1181
+ customer_id: z.ZodOptional<z.ZodString>;
1182
+ parent_payment_id: z.ZodOptional<z.ZodString>;
1183
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1184
+ BETA_EDGES: "BETA_EDGES";
1185
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
1186
+ ORG_EDGES: "ORG_EDGES";
1187
+ }>>>;
1188
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
1189
+ kind: z.ZodLiteral<"FIXED_INPUT">;
1190
+ fixed_input_amount: z.ZodObject<{
1191
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1192
+ amount: z.ZodString;
1193
+ }, z.core.$strip>;
1194
+ output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1195
+ }, z.core.$strip>]>;
1196
+ }, z.core.$strip>;
1197
+ quoted: z.ZodObject<{
1198
+ onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1199
+ output_amount: z.ZodObject<{
1200
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1201
+ amount: z.ZodString;
1202
+ }, z.core.$strip>;
1203
+ onramp_method: z.ZodOptional<z.ZodEnum<{
1204
+ CREDIT_CARD: "CREDIT_CARD";
1205
+ DEBIT_CARD: "DEBIT_CARD";
1206
+ ACH: "ACH";
1207
+ FIAT_BALANCE: "FIAT_BALANCE";
1208
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1209
+ APPLE_PAY: "APPLE_PAY";
1210
+ PAYPAL: "PAYPAL";
1211
+ VENMO: "VENMO";
1212
+ REVOLUT: "REVOLUT";
1213
+ GOOGLE_PAY: "GOOGLE_PAY";
1214
+ SEPA: "SEPA";
1215
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1216
+ PIX: "PIX";
1217
+ UPI: "UPI";
1218
+ WIRE: "WIRE";
1219
+ }>>;
1220
+ fees: z.ZodObject<{
1221
+ total_fees: z.ZodString;
1222
+ conversion_fees: z.ZodString;
1223
+ network_fees: z.ZodString;
1224
+ business_fees: z.ZodString;
1225
+ currency_symbol: z.ZodString;
1226
+ }, z.core.$strip>;
1227
+ route: z.ZodArray<z.ZodObject<{
1228
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
1229
+ net_effect: z.ZodObject<{
1230
+ consume: z.ZodArray<z.ZodObject<{
1231
+ account: z.ZodEnum<{
1232
+ USER: "USER";
1233
+ DEST: "DEST";
1234
+ HALLIDAY: "HALLIDAY";
1235
+ SPW: "SPW";
1236
+ REV_SHARE: "REV_SHARE";
1237
+ BRIDGE: "BRIDGE";
1238
+ }>;
1239
+ resource: z.ZodObject<{
1240
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1241
+ property: z.ZodEnum<{
1242
+ APPROVAL: "APPROVAL";
1243
+ BALANCE: "BALANCE";
1244
+ }>;
1245
+ }, z.core.$strip>;
1246
+ amount: z.ZodString;
1247
+ }, z.core.$strip>>;
1248
+ produce: z.ZodArray<z.ZodObject<{
1249
+ account: z.ZodEnum<{
1250
+ USER: "USER";
1251
+ DEST: "DEST";
1252
+ HALLIDAY: "HALLIDAY";
1253
+ SPW: "SPW";
1254
+ REV_SHARE: "REV_SHARE";
1255
+ BRIDGE: "BRIDGE";
1256
+ }>;
1257
+ resource: z.ZodObject<{
1258
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1259
+ property: z.ZodEnum<{
1260
+ APPROVAL: "APPROVAL";
1261
+ BALANCE: "BALANCE";
1262
+ }>;
1263
+ }, z.core.$strip>;
1264
+ amount: z.ZodString;
1265
+ }, z.core.$strip>>;
1266
+ }, z.core.$strip>;
1267
+ pieces_info: z.ZodArray<z.ZodObject<{
1268
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1269
+ }, z.core.$strip>>;
1270
+ step_index: z.ZodOptional<z.ZodNumber>;
1271
+ }, z.core.$strip>>;
1272
+ }, z.core.$strip>;
1273
+ fulfilled: z.ZodObject<{
1274
+ onramp: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1275
+ output_amount: z.ZodOptional<z.ZodObject<{
1276
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1277
+ amount: z.ZodString;
1278
+ }, z.core.$strip>>;
1279
+ onramp_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1280
+ CREDIT_CARD: "CREDIT_CARD";
1281
+ DEBIT_CARD: "DEBIT_CARD";
1282
+ ACH: "ACH";
1283
+ FIAT_BALANCE: "FIAT_BALANCE";
1284
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1285
+ APPLE_PAY: "APPLE_PAY";
1286
+ PAYPAL: "PAYPAL";
1287
+ VENMO: "VENMO";
1288
+ REVOLUT: "REVOLUT";
1289
+ GOOGLE_PAY: "GOOGLE_PAY";
1290
+ SEPA: "SEPA";
1291
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1292
+ PIX: "PIX";
1293
+ UPI: "UPI";
1294
+ WIRE: "WIRE";
1295
+ }>>>;
1296
+ fees: z.ZodOptional<z.ZodObject<{
1297
+ total_fees: z.ZodString;
1298
+ conversion_fees: z.ZodString;
1299
+ network_fees: z.ZodString;
1300
+ business_fees: z.ZodString;
1301
+ currency_symbol: z.ZodString;
1302
+ }, z.core.$strip>>;
1303
+ route: z.ZodArray<z.ZodObject<{
1304
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
1305
+ net_effect: z.ZodObject<{
1306
+ consume: z.ZodArray<z.ZodObject<{
1307
+ account: z.ZodEnum<{
1308
+ USER: "USER";
1309
+ DEST: "DEST";
1310
+ HALLIDAY: "HALLIDAY";
1311
+ SPW: "SPW";
1312
+ REV_SHARE: "REV_SHARE";
1313
+ BRIDGE: "BRIDGE";
1314
+ }>;
1315
+ resource: z.ZodObject<{
1316
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1317
+ property: z.ZodEnum<{
1318
+ APPROVAL: "APPROVAL";
1319
+ BALANCE: "BALANCE";
1320
+ }>;
1321
+ }, z.core.$strip>;
1322
+ amount: z.ZodString;
1323
+ }, z.core.$strip>>;
1324
+ produce: z.ZodArray<z.ZodObject<{
1325
+ account: z.ZodEnum<{
1326
+ USER: "USER";
1327
+ DEST: "DEST";
1328
+ HALLIDAY: "HALLIDAY";
1329
+ SPW: "SPW";
1330
+ REV_SHARE: "REV_SHARE";
1331
+ BRIDGE: "BRIDGE";
1332
+ }>;
1333
+ resource: z.ZodObject<{
1334
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1335
+ property: z.ZodEnum<{
1336
+ APPROVAL: "APPROVAL";
1337
+ BALANCE: "BALANCE";
1338
+ }>;
1339
+ }, z.core.$strip>;
1340
+ amount: z.ZodString;
1341
+ }, z.core.$strip>>;
1342
+ }, z.core.$strip>;
1343
+ pieces_info: z.ZodArray<z.ZodObject<{
1344
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1345
+ }, z.core.$strip>>;
1346
+ step_index: z.ZodOptional<z.ZodNumber>;
1347
+ status: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
1348
+ transaction_hash: z.ZodOptional<z.ZodString>;
1349
+ }, z.core.$strip>>;
1350
+ }, z.core.$strip>;
1351
+ current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
1352
+ price_currency: z.ZodString;
1353
+ customer_id: z.ZodOptional<z.ZodString>;
1354
+ processing_addresses: z.ZodArray<z.ZodObject<{
1355
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1356
+ chain: z.ZodString;
1357
+ }, z.core.$strip>>;
1358
+ owner_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1359
+ destination_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1360
+ next_instruction: z.ZodOptional<z.ZodObject<{
1361
+ type: z.ZodEnum<{
1362
+ ONRAMP: "ONRAMP";
1363
+ TRANSFER_IN: "TRANSFER_IN";
1364
+ }>;
1365
+ payment_id: z.ZodString;
1366
+ funding_page_url: z.ZodURL;
1367
+ deposit_info: z.ZodArray<z.ZodObject<{
1368
+ deposit_token: z.ZodString;
1369
+ deposit_chain: z.ZodString;
1370
+ deposit_amount: z.ZodString;
1371
+ deposit_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1372
+ }, z.core.$strip>>;
1373
+ }, z.core.$strip>>;
1374
+ parent_payment_id: z.ZodOptional<z.ZodString>;
1375
+ }, z.core.$strip>;
1376
+ type PaymentStatus = z.infer<typeof PaymentStatus>;
1377
+ declare const RequestForOnrampSession: z.ZodObject<{
1378
+ payment_id: z.ZodString;
1379
+ redirect_url: z.ZodOptional<z.ZodString>;
1380
+ }, z.core.$strip>;
1381
+ type RequestForOnrampSession = z.infer<typeof RequestForOnrampSession>;
1382
+ declare const OnrampSessionResponse: z.ZodObject<{
1383
+ funding_page_onramp_url: z.ZodString;
1384
+ client_redirect_url: z.ZodOptional<z.ZodString>;
1385
+ client_secret: z.ZodOptional<z.ZodString>;
1386
+ }, z.core.$strip>;
1387
+ type OnrampSessionResponse = z.infer<typeof OnrampSessionResponse>;
1388
+ declare const RequestForPaymentsHistory: z.ZodObject<{
1389
+ id_query: z.ZodOptional<z.ZodString>;
1390
+ pagination_key: z.ZodOptional<z.ZodString>;
1391
+ dest_address: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
1392
+ owner_address: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
1393
+ limit: z.ZodOptional<z.ZodNumber>;
1394
+ category: z.ZodOptional<z.ZodEnum<{
1395
+ ALL: "ALL";
1396
+ NEW_OR_FUNDED: "NEW_OR_FUNDED";
1397
+ }>>;
1398
+ }, z.core.$strip>;
1399
+ type RequestForPaymentsHistory = z.infer<typeof RequestForPaymentsHistory>;
1400
+ declare const PaymentHistoryResult: z.ZodObject<{
1401
+ payment_statuses: z.ZodArray<z.ZodObject<{
1402
+ payment_id: z.ZodString;
1403
+ status: z.ZodEnum<{
1404
+ COMPLETE: "COMPLETE";
1405
+ FAILED: "FAILED";
1406
+ PENDING: "PENDING";
1407
+ EXPIRED: "EXPIRED";
1408
+ WITHDRAWN: "WITHDRAWN";
1409
+ TAINTED: "TAINTED";
1410
+ }>;
1411
+ funded: z.ZodBoolean;
1412
+ created_at: z.ZodString;
1413
+ updated_at: z.ZodString;
1414
+ initiate_fund_by: z.ZodString;
1415
+ completed_at: z.ZodOptional<z.ZodString>;
1416
+ quote_request: z.ZodObject<{
1417
+ price_currency: z.ZodString;
1418
+ onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1419
+ onramp_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1420
+ CREDIT_CARD: "CREDIT_CARD";
1421
+ DEBIT_CARD: "DEBIT_CARD";
1422
+ ACH: "ACH";
1423
+ FIAT_BALANCE: "FIAT_BALANCE";
1424
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1425
+ APPLE_PAY: "APPLE_PAY";
1426
+ PAYPAL: "PAYPAL";
1427
+ VENMO: "VENMO";
1428
+ REVOLUT: "REVOLUT";
1429
+ GOOGLE_PAY: "GOOGLE_PAY";
1430
+ SEPA: "SEPA";
1431
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1432
+ PIX: "PIX";
1433
+ UPI: "UPI";
1434
+ WIRE: "WIRE";
1435
+ }>>>;
1436
+ customer_ip_address: z.ZodOptional<z.ZodString>;
1437
+ customer_id: z.ZodOptional<z.ZodString>;
1438
+ parent_payment_id: z.ZodOptional<z.ZodString>;
1439
+ features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1440
+ BETA_EDGES: "BETA_EDGES";
1441
+ ORG_BETA_EDGES: "ORG_BETA_EDGES";
1442
+ ORG_EDGES: "ORG_EDGES";
1443
+ }>>>;
1444
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
1445
+ kind: z.ZodLiteral<"FIXED_INPUT">;
1446
+ fixed_input_amount: z.ZodObject<{
1447
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1448
+ amount: z.ZodString;
1449
+ }, z.core.$strip>;
1450
+ output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1451
+ }, z.core.$strip>]>;
1452
+ }, z.core.$strip>;
1453
+ quoted: z.ZodObject<{
1454
+ onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1455
+ output_amount: z.ZodObject<{
1456
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1457
+ amount: z.ZodString;
1458
+ }, z.core.$strip>;
1459
+ onramp_method: z.ZodOptional<z.ZodEnum<{
1460
+ CREDIT_CARD: "CREDIT_CARD";
1461
+ DEBIT_CARD: "DEBIT_CARD";
1462
+ ACH: "ACH";
1463
+ FIAT_BALANCE: "FIAT_BALANCE";
1464
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1465
+ APPLE_PAY: "APPLE_PAY";
1466
+ PAYPAL: "PAYPAL";
1467
+ VENMO: "VENMO";
1468
+ REVOLUT: "REVOLUT";
1469
+ GOOGLE_PAY: "GOOGLE_PAY";
1470
+ SEPA: "SEPA";
1471
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1472
+ PIX: "PIX";
1473
+ UPI: "UPI";
1474
+ WIRE: "WIRE";
1475
+ }>>;
1476
+ fees: z.ZodObject<{
1477
+ total_fees: z.ZodString;
1478
+ conversion_fees: z.ZodString;
1479
+ network_fees: z.ZodString;
1480
+ business_fees: z.ZodString;
1481
+ currency_symbol: z.ZodString;
1482
+ }, z.core.$strip>;
1483
+ route: z.ZodArray<z.ZodObject<{
1484
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
1485
+ net_effect: z.ZodObject<{
1486
+ consume: z.ZodArray<z.ZodObject<{
1487
+ account: z.ZodEnum<{
1488
+ USER: "USER";
1489
+ DEST: "DEST";
1490
+ HALLIDAY: "HALLIDAY";
1491
+ SPW: "SPW";
1492
+ REV_SHARE: "REV_SHARE";
1493
+ BRIDGE: "BRIDGE";
1494
+ }>;
1495
+ resource: z.ZodObject<{
1496
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1497
+ property: z.ZodEnum<{
1498
+ APPROVAL: "APPROVAL";
1499
+ BALANCE: "BALANCE";
1500
+ }>;
1501
+ }, z.core.$strip>;
1502
+ amount: z.ZodString;
1503
+ }, z.core.$strip>>;
1504
+ produce: z.ZodArray<z.ZodObject<{
1505
+ account: z.ZodEnum<{
1506
+ USER: "USER";
1507
+ DEST: "DEST";
1508
+ HALLIDAY: "HALLIDAY";
1509
+ SPW: "SPW";
1510
+ REV_SHARE: "REV_SHARE";
1511
+ BRIDGE: "BRIDGE";
1512
+ }>;
1513
+ resource: z.ZodObject<{
1514
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1515
+ property: z.ZodEnum<{
1516
+ APPROVAL: "APPROVAL";
1517
+ BALANCE: "BALANCE";
1518
+ }>;
1519
+ }, z.core.$strip>;
1520
+ amount: z.ZodString;
1521
+ }, z.core.$strip>>;
1522
+ }, z.core.$strip>;
1523
+ pieces_info: z.ZodArray<z.ZodObject<{
1524
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1525
+ }, z.core.$strip>>;
1526
+ step_index: z.ZodOptional<z.ZodNumber>;
1527
+ }, z.core.$strip>>;
1528
+ }, z.core.$strip>;
1529
+ fulfilled: z.ZodObject<{
1530
+ onramp: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1531
+ output_amount: z.ZodOptional<z.ZodObject<{
1532
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1533
+ amount: z.ZodString;
1534
+ }, z.core.$strip>>;
1535
+ onramp_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1536
+ CREDIT_CARD: "CREDIT_CARD";
1537
+ DEBIT_CARD: "DEBIT_CARD";
1538
+ ACH: "ACH";
1539
+ FIAT_BALANCE: "FIAT_BALANCE";
1540
+ TOKEN_BALANCE: "TOKEN_BALANCE";
1541
+ APPLE_PAY: "APPLE_PAY";
1542
+ PAYPAL: "PAYPAL";
1543
+ VENMO: "VENMO";
1544
+ REVOLUT: "REVOLUT";
1545
+ GOOGLE_PAY: "GOOGLE_PAY";
1546
+ SEPA: "SEPA";
1547
+ FASTER_PAYMENTS: "FASTER_PAYMENTS";
1548
+ PIX: "PIX";
1549
+ UPI: "UPI";
1550
+ WIRE: "WIRE";
1551
+ }>>>;
1552
+ fees: z.ZodOptional<z.ZodObject<{
1553
+ total_fees: z.ZodString;
1554
+ conversion_fees: z.ZodString;
1555
+ network_fees: z.ZodString;
1556
+ business_fees: z.ZodString;
1557
+ currency_symbol: z.ZodString;
1558
+ }, z.core.$strip>>;
1559
+ route: z.ZodArray<z.ZodObject<{
1560
+ type: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
1561
+ net_effect: z.ZodObject<{
1562
+ consume: z.ZodArray<z.ZodObject<{
1563
+ account: z.ZodEnum<{
1564
+ USER: "USER";
1565
+ DEST: "DEST";
1566
+ HALLIDAY: "HALLIDAY";
1567
+ SPW: "SPW";
1568
+ REV_SHARE: "REV_SHARE";
1569
+ BRIDGE: "BRIDGE";
1570
+ }>;
1571
+ resource: z.ZodObject<{
1572
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1573
+ property: z.ZodEnum<{
1574
+ APPROVAL: "APPROVAL";
1575
+ BALANCE: "BALANCE";
1576
+ }>;
1577
+ }, z.core.$strip>;
1578
+ amount: z.ZodString;
1579
+ }, z.core.$strip>>;
1580
+ produce: z.ZodArray<z.ZodObject<{
1581
+ account: z.ZodEnum<{
1582
+ USER: "USER";
1583
+ DEST: "DEST";
1584
+ HALLIDAY: "HALLIDAY";
1585
+ SPW: "SPW";
1586
+ REV_SHARE: "REV_SHARE";
1587
+ BRIDGE: "BRIDGE";
1588
+ }>;
1589
+ resource: z.ZodObject<{
1590
+ asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1591
+ property: z.ZodEnum<{
1592
+ APPROVAL: "APPROVAL";
1593
+ BALANCE: "BALANCE";
1594
+ }>;
1595
+ }, z.core.$strip>;
1596
+ amount: z.ZodString;
1597
+ }, z.core.$strip>>;
1598
+ }, z.core.$strip>;
1599
+ pieces_info: z.ZodArray<z.ZodObject<{
1600
+ type: z.ZodUnion<readonly [z.ZodLiteral<"onramp">, z.ZodLiteral<"poll">, z.ZodLiteral<"bridge">, z.ZodLiteral<"rev_share">, z.ZodLiteral<"transfer_out">, z.ZodLiteral<"convert">]>;
1601
+ }, z.core.$strip>>;
1602
+ step_index: z.ZodOptional<z.ZodNumber>;
1603
+ status: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"COMPLETE">, z.ZodLiteral<"UNREACHABLE">, z.ZodLiteral<"FAILED">]>, z.ZodLiteral<"PENDING">]>;
1604
+ transaction_hash: z.ZodOptional<z.ZodString>;
1605
+ }, z.core.$strip>>;
1606
+ }, z.core.$strip>;
1607
+ current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
1608
+ price_currency: z.ZodString;
1609
+ customer_id: z.ZodOptional<z.ZodString>;
1610
+ processing_addresses: z.ZodArray<z.ZodObject<{
1611
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1612
+ chain: z.ZodString;
1613
+ }, z.core.$strip>>;
1614
+ owner_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1615
+ destination_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1616
+ next_instruction: z.ZodOptional<z.ZodObject<{
1617
+ type: z.ZodEnum<{
1618
+ ONRAMP: "ONRAMP";
1619
+ TRANSFER_IN: "TRANSFER_IN";
1620
+ }>;
1621
+ payment_id: z.ZodString;
1622
+ funding_page_url: z.ZodURL;
1623
+ deposit_info: z.ZodArray<z.ZodObject<{
1624
+ deposit_token: z.ZodString;
1625
+ deposit_chain: z.ZodString;
1626
+ deposit_amount: z.ZodString;
1627
+ deposit_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1628
+ }, z.core.$strip>>;
1629
+ }, z.core.$strip>>;
1630
+ parent_payment_id: z.ZodOptional<z.ZodString>;
1631
+ }, z.core.$strip>>;
1632
+ next_pagination_key: z.ZodNullable<z.ZodString>;
1633
+ }, z.core.$strip>;
1634
+ type PaymentHistoryResult = z.infer<typeof PaymentHistoryResult>;
1635
+ declare const RequestForBalance: z.ZodObject<{
1636
+ payment_id: z.ZodOptional<z.ZodString>;
1637
+ custom_queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
1638
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1639
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1640
+ chain: z.ZodString;
1641
+ address: z.ZodString;
1642
+ }, z.core.$strip>, z.ZodObject<{
1643
+ chain: z.ZodLiteral<"solana">;
1644
+ address: z.ZodString;
1645
+ }, z.core.$strip>, z.ZodObject<{
1646
+ chain: z.ZodString;
1647
+ address: z.ZodString;
1648
+ }, z.core.$strip>]>]>;
1649
+ }, z.core.$strip>>>;
1650
+ }, z.core.$strip>;
1651
+ type RequestForBalance = z.infer<typeof RequestForBalance>;
1652
+ declare const BalanceResponse: z.ZodObject<{
1653
+ balance_results: z.ZodArray<z.ZodObject<{
1654
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1655
+ token: z.ZodString;
1656
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
1657
+ kind: z.ZodLiteral<"amount">;
1658
+ amount: z.ZodString;
1659
+ }, z.core.$strip>, z.ZodObject<{
1660
+ kind: z.ZodLiteral<"error">;
1661
+ }, z.core.$strip>]>;
1662
+ }, z.core.$strip>>;
1663
+ }, z.core.$strip>;
1664
+ type BalanceResponse = z.infer<typeof BalanceResponse>;
1665
+ declare const RequestForPrices: z.ZodObject<{
1666
+ fiat: z.ZodString;
1667
+ tokens: z.ZodArray<z.ZodString>;
1668
+ }, z.core.$strip>;
1669
+ type RequestForPrices = z.infer<typeof RequestForPrices>;
1670
+ declare const TypedData: z.ZodString;
1671
+ type TypedData = z.infer<typeof TypedData>;
1672
+ declare const RequestForWithdrawAuthorization: z.ZodObject<{
1673
+ payment_id: z.ZodString;
1674
+ token_amounts: z.ZodArray<z.ZodObject<{
1675
+ token: z.ZodString;
1676
+ amount: z.ZodString;
1677
+ }, z.core.$strip>>;
1678
+ recipient_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1679
+ }, z.core.$strip>;
1680
+ type RequestForWithdrawAuthorization = z.infer<typeof RequestForWithdrawAuthorization>;
1681
+ declare const WithdrawAuthorizationResponse: z.ZodObject<{
1682
+ payment_id: z.ZodString;
1683
+ withdraw_authorization: z.ZodString;
1684
+ }, z.core.$strip>;
1685
+ type WithdrawAuthorizationResponse = z.infer<typeof WithdrawAuthorizationResponse>;
1686
+ declare const RequestForWithdraw: z.ZodObject<{
1687
+ payment_id: z.ZodString;
1688
+ token_amounts: z.ZodArray<z.ZodObject<{
1689
+ token: z.ZodString;
1690
+ amount: z.ZodString;
1691
+ }, z.core.$strip>>;
1692
+ recipient_address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1693
+ owner_signature: z.ZodString;
1694
+ }, z.core.$strip>;
1695
+ type RequestForWithdraw = z.infer<typeof RequestForWithdraw>;
1696
+ declare const WithdrawResponse: z.ZodObject<{
1697
+ payment_id: z.ZodString;
1698
+ transaction_hash: z.ZodString;
1699
+ }, z.core.$strip>;
1700
+ type WithdrawResponse = z.infer<typeof WithdrawResponse>;
1701
+
1702
+ /**
1703
+ * Metadata interface for API method decorators
1704
+ */
1705
+ interface MethodMetadata {
1706
+ /** Description of the API method */
1707
+ description: string;
1708
+ /** HTTP verb (GET, POST, PUT, DELETE, etc.) */
1709
+ httpVerb: "GET" | "POST" | "PUT" | "DELETE";
1710
+ /** API endpoint path (e.g., "/quotes", "/payments/session") */
1711
+ endpoint: string;
1712
+ /** Zod schema for request input validation */
1713
+ inputSchema?: z.ZodSchema;
1714
+ /** Zod schema for response output validation */
1715
+ outputSchema?: z.ZodSchema;
1716
+ }
1717
+ /**
1718
+ * @MethodMetadata decorator factory
1719
+ * - Attaches `config` to the prototype under MetadataKey.MethodMetadata
1720
+ * - Injects a static toJSON(methodName) on the constructor
1721
+ */
1722
+ declare const MethodMetadata: (config: MethodMetadata) => (target: object, propertyKey: string | symbol) => void;
1723
+
1724
+ /**
1725
+ * Configuration options for the PaymentsApiClient.
1726
+ */
1727
+ interface PaymentsApiClientOptions {
1728
+ /** Your API key for authentication */
1729
+ apiKey: string;
1730
+ /** Optional base URL for the API. Defaults to HALLIDAY_PAYMENTS_API_URL */
1731
+ baseUrl?: string;
1732
+ /** Response validation configuration */
1733
+ responseValidation?: ResponseValidationOptions;
1734
+ }
1735
+ /**
1736
+ * Payments API client for interacting with the Halliday Payments API.
1737
+ *
1738
+ * This client handles API requests including setting the required headers and
1739
+ * managing the API key for authentication. It also validates API responses
1740
+ * to help detect when the SDK version might be outdated.
1741
+ */
1742
+ declare class PaymentsApiClient {
1743
+ /**
1744
+ * Axios API client instance.
1745
+ * @private
1746
+ */
1747
+ private apiClient;
1748
+ /**
1749
+ * Creates an instance of PaymentsAPIClient.
1750
+ *
1751
+ * @param {PaymentsApiClientOptions} options The configuration options for the client.
1752
+ * @param {!string} options.apiKey {string} The API key for authentication.
1753
+ * @param {string=} options.baseUrl {string} (optional) The base URL for the API.
1754
+ * @param {ResponseValidationOptions=} options.responseValidation {@link ResponseValidationOptions} (optional) Response validation helps checking response data format from Halliday payments API
1755
+ * and notifies if changes detected. It is enabled by default, turn it off by:
1756
+ * @example
1757
+ * { apiKey: "YOUR_API_KEY", responseValidation: { enabled: false } }
1758
+ */
1759
+ constructor(options: PaymentsApiClientOptions);
1760
+ /**
1761
+ * Retrieves the supported chain configuration.
1762
+ *
1763
+ * @param {boolean} sandbox {boolean} Whether to retrieve chains in the sandbox environment.
1764
+ * @returns {Promise<Record<string, ChainConfig>>} A promise that resolves to a mapping from network to their {@link ChainConfig chain configurations}.
1765
+ * @throws {PaymentsApiClientError}
1766
+ * - {@link PaymentsApiClientError}
1767
+ */
1768
+ getChains: (sandbox?: boolean) => Promise<Record<string, ChainConfig>>;
1769
+ /**
1770
+ * Retrieves the asset details for all or the specified assets.
1771
+ *
1772
+ * @param {Asset[]=} assets {{@link Asset}[]} (optional) The assets to retrieve the details for.
1773
+ * @param {!boolean} sandbox {boolean} Whether to retrieve testnet assets in the response.
1774
+ * @returns {Promise<Record<Asset, AssetDetails>>} A promise that resolves to a mapping from {@link Asset asset} to {@link AssetDetails asset details}.
1775
+ * @throws {PaymentsApiClientError}
1776
+ * - {@link PaymentsApiClientError}
1777
+ */
1778
+ getAssetDetails: ({ assets, sandbox, }: {
1779
+ assets?: Asset[];
1780
+ sandbox: boolean;
1781
+ }) => Promise<Record<Asset, AssetDetails>>;
1782
+ /**
1783
+ * Retrieves the supported inputs for the specified filters.
1784
+ *
1785
+ * @param {AssetFilters} filters Filters to apply to the inputs.
1786
+ * @param {Asset[]=} filters.inputs {{@link Asset}[]} (optional) The input assets to be included in the response.
1787
+ * @param {!Asset[]} filters.outputs {{@link Asset}[]} The output assets to retrieve inputs for.
1788
+ * @param {!boolean} filters.sandbox {boolean} Whether to retrieve assets in the sandbox environment.
1789
+ * @param {RampName[]=} filters.onramps {{@link RampName}[]} (optional) The onramp providers that can be used to accept the inputs.
1790
+ * @param {RampName[]=} filters.offramps {{@link RampName}[]} (optional) The offramp providers that can be used to deliver the inputs.
1791
+ * @returns {Promise<Record<Asset, { fiats: Fiat[]; tokens: Token[] }>>} A mapping from output {@link Asset assets} to their corresponding input {@link Fiat fiats} and {@link Token tokens}.
1792
+ * @throws {PaymentsApiClientError}
1793
+ * - {@link PaymentsApiClientError}
1794
+ */
1795
+ getInputs: (filters: InputsAssetFilters) => Promise<Record<Asset, {
1796
+ fiats: Fiat[];
1797
+ tokens: Token[];
1798
+ }>>;
1799
+ /**
1800
+ * Retrieves the supported outputs for the specified filters.
1801
+ *
1802
+ * @param {AssetFilters} filters Filters to apply to the outputs.
1803
+ * @param {!Asset[]} filters.inputs {{@link Asset}[]} The input assets to retrieve outputs for.
1804
+ * @param {Asset[]=} filters.outputs {{@link Asset}[]} (optional) The output assets to be included in the response.
1805
+ * @param {!boolean} filters.sandbox {boolean} Whether to retrieve assets in the sandbox environment.
1806
+ * @param {RampName[]=} filters.onramps {{@link RampName}[]} (optional) The onramp providers that can be used to accept the inputs.
1807
+ * @param {RampName[]=} filters.offramps {{@link RampName}[]} (optional) The offramp providers that can be used to deliver the outputs.
1808
+ * @returns {Promise<Record<Asset, { fiats: Fiat[]; tokens: Token[] }>>} A mapping from input {@link Asset assets} to their corresponding output {@link Fiat fiats} and {@link Token tokens}.
1809
+ * @throws {PaymentsApiClientError}
1810
+ * - {@link PaymentsApiClientError}
1811
+ */
1812
+ getOutputs: (filters: OutputsAssetFilters) => Promise<Record<Asset, {
1813
+ fiats: Fiat[];
1814
+ tokens: Token[];
1815
+ }>>;
1816
+ /**
1817
+ * Retrieves quotes for the given input and output asset.
1818
+ *
1819
+ * @param {!RequestForQuotes} request {{@link RequestForQuotes}} The request for quotes.
1820
+ * @returns {Promise<QuotesResponse>} A promise that resolves to the {@link QuotesResponse quotes}.
1821
+ * @throws {PaymentsApiClientError}
1822
+ * - {@link PaymentsApiClientError}
1823
+ */
1824
+ getQuotes: (request: RequestForQuotes, signal?: AbortSignal) => Promise<QuotesResponse>;
1825
+ /**
1826
+ * Confirms a quote.
1827
+ *
1828
+ * @param {!RequestForConfirmQuote} request {{@link RequestForConfirmQuote}} The quote to accept.
1829
+ * @returns {Promise<ConfirmQuoteResponse>} A promise that resolves to the {@link ConfirmQuoteResponse accepted quote details}.
1830
+ * @throws {PaymentsApiClientError}
1831
+ * - {@link PaymentsApiClientError}
1832
+ */
1833
+ confirmQuote: (requestForConfirmQuote: RequestForConfirmQuote) => Promise<ConfirmQuoteResponse>;
1834
+ /**
1835
+ * Creates a onramp provider session for a given payment.
1836
+ *
1837
+ * @param {!RequestForOnrampSession} request {{@link RequestForOnrampSession}} The request for the payment session.
1838
+ * @returns {Promise<OnrampSessionResponse>} A promise that resolves to the {@link OnrampSessionResponse session}.
1839
+ * @throws {PaymentsApiClientError}
1840
+ * - {@link PaymentsApiClientError}
1841
+ */
1842
+ createPaymentSession: (request: RequestForOnrampSession) => Promise<OnrampSessionResponse>;
1843
+ /**
1844
+ * Retrieves the status of a given payment.
1845
+ *
1846
+ * @param {!PaymentId} payment_id {{@link PaymentId}} The payment ID of the payment to retrieve the status of.
1847
+ * @param {AbortSignal=} signal {{@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal AbortSignal}} (optional) Checkout {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortController AbortController} if need to abort the request.
1848
+ * @returns {Promise<PaymentStatus | null>} A promise that resolves to {@link PaymentStatus} or null if the request is aborted.
1849
+ * @throws {PaymentsApiClientError}
1850
+ * - {@link PaymentsApiClientError}
1851
+ */
1852
+ getStatus: (paymentId: PaymentId, signal?: AbortSignal) => Promise<PaymentStatus | null>;
1853
+ /**
1854
+ * Retrieves the payments history.
1855
+ *
1856
+ * @param {RequestForPaymentsHistory} request {{@link RequestForPaymentsHistory}} The request for the payments history.
1857
+ * @returns {Promise<PaymentHistoryResult>} A promise that resolves to the {@link PaymentHistoryResult history}.
1858
+ * @throws {PaymentsApiClientError}
1859
+ * - {@link PaymentsApiClientError}
1860
+ */
1861
+ getPaymentsHistory: (request: RequestForPaymentsHistory) => Promise<PaymentHistoryResult>;
1862
+ getBalance: (request: RequestForBalance) => Promise<BalanceResponse>;
1863
+ getPrices: (request: RequestForPrices) => Promise<Prices>;
1864
+ /**
1865
+ * Retrieves the withdraw payload for a given workflow.
1866
+ *
1867
+ * @param {RequestForWithdrawAuthorization} request {{@link RequestForWithdrawAuthorization}} The request for the withdraw authorization payload.
1868
+ * @returns {Promise<WithdrawAuthorizationResponse>} A promise that resolves to the {@link WithdrawAuthorizationResponse withdraw authorization payload}.
1869
+ * @throws {PaymentsApiClientError}
1870
+ * - {@link PaymentsApiClientError}
1871
+ */
1872
+ getWithdrawAuthorization: (request: RequestForWithdrawAuthorization) => Promise<WithdrawAuthorizationResponse>;
1873
+ /**
1874
+ * Submits the owner signature for a withdraw payload.
1875
+ *
1876
+ * @param {RequestForWithdraw} request {{@link RequestForWithdraw}} The request for the withdraw payload.
1877
+ * @returns {Promise<WithdrawResponse>} A promise that resolves to the {@link WithdrawResponse transaction ID}.
1878
+ * @throws {PaymentsApiClientError}
1879
+ * - {@link PaymentsApiClientError}
1880
+ */
1881
+ withdraw: (request: RequestForWithdraw) => Promise<WithdrawResponse>;
1882
+ /**
1883
+ * Returns the method metadata for a given method name.
1884
+ *
1885
+ * @param methodName The name of the method to get the method metadata for.
1886
+ * @returns The method metadata for the given method name.
1887
+ */
1888
+ static toJSON<T extends keyof PaymentsApiClient>(methodName: T): MethodMetadata | undefined;
1889
+ }
1890
+
1891
+ declare class HSON {
1892
+ static replacer: (_: any, value: any) => any;
1893
+ static reviver: (_: any, value: any) => any;
1894
+ static stringify(obj: any, space?: number | string): string;
1895
+ static parse(str: string): any;
1896
+ }
1897
+
1898
+ export { Account, Address, Amount, Asset, AssetDetails, AssetFilters, BalanceResponse, ChainConfig, ChangeAmount, ConfirmQuoteResponse, DepositInfo, EVMAddress, EVMChainConfig, EVMTokenAddress, EVMTokenDetails, ErrorCodes, Failure, Feature, Fiat, FiatDetails, Fulfillment, FulfillmentRoute, HSON, IPAddressOverride, InputsAssetFilters, Issue, NextInstruction, ObservedStatus, OnrampMethod, OnrampSessionResponse, OutputsAssetFilters, PaymentHistoryResult, PaymentId, PaymentStatus, PaymentsApiClientError, Prices, Quote, QuotedRoute, QuotesResponse, RampName, RampType, Realm, RequestForBalance, RequestForConfirmQuote, RequestForOnrampSession, RequestForPaymentsHistory, RequestForPrices, RequestForQuotes, RequestForWithdraw, RequestForWithdrawAuthorization, RouteType, SolAddress, SolChainConfig, SolTokenAddress, SolTokenDetails, Token, TokenDetails, TransactionReceipt, TransactionRequest, TypedData, WithdrawAuthorizationResponse, WithdrawResponse, PaymentsApiClient as default };
1899
+ export type { PaymentsApiClientOptions, ResponseValidationOptions };