@klappay/types 5.0.0 → 5.1.1
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.
- package/dist/{chunk-VTX32VJN.mjs → chunk-VL7W6KNP.mjs} +68 -10
- package/dist/chunk-VL7W6KNP.mjs.map +1 -0
- package/dist/{constants-Di4Qr6af.d.mts → constants-DpqgXUf_.d.mts} +22 -9
- package/dist/{constants-Di4Qr6af.d.ts → constants-DpqgXUf_.d.ts} +22 -9
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +52 -9
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +3 -1
- package/dist/index.d.mts +305 -153
- package/dist/index.d.ts +305 -153
- package/dist/index.js +413 -314
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +349 -306
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-VTX32VJN.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { S as SplitAddress } from './constants-DpqgXUf_.mjs';
|
|
2
|
+
export { A as ALT_TOKEN_ADDRESSES, a as ALT_TOKEN_DECIMALS, b as AltToken, c as AltTokenSchema, C as CHAIN_IDS, E as EVM_NETWORKS, d as Environment, e as EnvironmentSchema, f as EvmAddress, g as EvmNetwork, N as NETWORK_EXPLORERS, h as NETWORK_FAMILIES, i as NETWORK_LABELS, j as Network, k as NetworkFamily, l as NetworkSchema, O as OPERATIONAL_NETWORKS, m as OperationalNetwork, n as SwapAlternative, o as SwapAlternativeSchema, T as TOKEN_ADDRESSES, p as TOKEN_DECIMALS, q as TOKEN_DEPLOYMENTS, r as Token, s as TokenDeployment, t as TokenSchema, u as TronAddress, v as addressesEqual, w as getTokenDeployment, x as isEvmAddress, y as isPaymentDeploymentEnabled, z as isSplitAddress, B as isTronAddress, D as listSwapAlternatives, F as tronAddress } from './constants-DpqgXUf_.mjs';
|
|
1
3
|
import { z } from 'zod';
|
|
2
|
-
|
|
4
|
+
|
|
5
|
+
declare const SplitAddressSchema: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
3
6
|
|
|
4
7
|
declare const ErrorPayloadSchema: z.ZodObject<{
|
|
5
8
|
error: z.ZodObject<{
|
|
@@ -73,25 +76,25 @@ declare const ChargeFeePayerSchema: z.ZodEnum<["merchant", "payer"]>;
|
|
|
73
76
|
type ChargeFeePayer = z.infer<typeof ChargeFeePayerSchema>;
|
|
74
77
|
declare const CHARGE_EXPIRES_IN_MIN_SECONDS = 60;
|
|
75
78
|
declare const CHARGE_EXPIRES_IN_MAX_SECONDS = 3600;
|
|
76
|
-
declare const CHARGE_ACCEPTED_PAYMENTS_MAX =
|
|
79
|
+
declare const CHARGE_ACCEPTED_PAYMENTS_MAX = 18;
|
|
77
80
|
declare const AcceptedPaymentSchema: z.ZodObject<{
|
|
78
81
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
79
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
82
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
80
83
|
}, "strip", z.ZodTypeAny, {
|
|
81
84
|
token: "USDC" | "USDT";
|
|
82
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
85
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
83
86
|
}, {
|
|
84
87
|
token: "USDC" | "USDT";
|
|
85
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
88
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
86
89
|
}>;
|
|
87
90
|
type AcceptedPayment = z.infer<typeof AcceptedPaymentSchema>;
|
|
88
91
|
declare const CHARGE_SPLIT_RECIPIENTS_MAX = 5;
|
|
89
92
|
declare const SplitRecipientSchema: z.ZodObject<{
|
|
90
|
-
address: z.ZodString
|
|
93
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
91
94
|
percent: z.ZodNumber;
|
|
92
95
|
label: z.ZodOptional<z.ZodString>;
|
|
93
96
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
address:
|
|
97
|
+
address: SplitAddress;
|
|
95
98
|
percent: number;
|
|
96
99
|
label?: string | undefined;
|
|
97
100
|
}, {
|
|
@@ -115,25 +118,25 @@ declare const SplitRecipientInputSchema: z.ZodObject<{
|
|
|
115
118
|
}>;
|
|
116
119
|
type SplitRecipientInput = z.infer<typeof SplitRecipientInputSchema>;
|
|
117
120
|
declare const CHARGE_AMOUNT_MAX = 999999999999;
|
|
118
|
-
declare const CreateChargeSchema: z.ZodObject<{
|
|
121
|
+
declare const CreateChargeSchema: z.ZodEffects<z.ZodObject<{
|
|
119
122
|
amount: z.ZodNumber;
|
|
120
123
|
feePayer: z.ZodDefault<z.ZodOptional<z.ZodEnum<["merchant", "payer"]>>>;
|
|
121
124
|
currency: z.ZodDefault<z.ZodLiteral<"USD">>;
|
|
122
125
|
acceptedPayments: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
123
126
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
124
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
127
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
125
128
|
}, "strip", z.ZodTypeAny, {
|
|
126
129
|
token: "USDC" | "USDT";
|
|
127
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
130
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
128
131
|
}, {
|
|
129
132
|
token: "USDC" | "USDT";
|
|
130
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
133
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
131
134
|
}>, "many">, {
|
|
132
135
|
token: "USDC" | "USDT";
|
|
133
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
136
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
134
137
|
}[], {
|
|
135
138
|
token: "USDC" | "USDT";
|
|
136
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
139
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
137
140
|
}[]>;
|
|
138
141
|
expiresIn: z.ZodNumber;
|
|
139
142
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -259,7 +262,107 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
259
262
|
currency: "USD";
|
|
260
263
|
acceptedPayments: {
|
|
261
264
|
token: "USDC" | "USDT";
|
|
262
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
265
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
266
|
+
}[];
|
|
267
|
+
expiresIn: number;
|
|
268
|
+
idempotencyKey?: string | undefined;
|
|
269
|
+
externalRef?: string | undefined;
|
|
270
|
+
source?: string | undefined;
|
|
271
|
+
metadata?: z.objectOutputType<{
|
|
272
|
+
klappay: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
|
+
name: z.ZodString;
|
|
275
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
name: string;
|
|
279
|
+
quantity?: number | undefined;
|
|
280
|
+
imageUrl?: string | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
name: string;
|
|
283
|
+
quantity?: number | undefined;
|
|
284
|
+
imageUrl?: string | undefined;
|
|
285
|
+
}>, "many">>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
products?: {
|
|
288
|
+
name: string;
|
|
289
|
+
quantity?: number | undefined;
|
|
290
|
+
imageUrl?: string | undefined;
|
|
291
|
+
}[] | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
products?: {
|
|
294
|
+
name: string;
|
|
295
|
+
quantity?: number | undefined;
|
|
296
|
+
imageUrl?: string | undefined;
|
|
297
|
+
}[] | undefined;
|
|
298
|
+
}>>;
|
|
299
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
300
|
+
redirectUrl?: string | undefined;
|
|
301
|
+
splitRecipients?: {
|
|
302
|
+
percent: number;
|
|
303
|
+
recipientId: string;
|
|
304
|
+
label?: string | undefined;
|
|
305
|
+
}[] | undefined;
|
|
306
|
+
escrow?: {
|
|
307
|
+
releaserAddress?: string | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
amount: number;
|
|
311
|
+
acceptedPayments: {
|
|
312
|
+
token: "USDC" | "USDT";
|
|
313
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
314
|
+
}[];
|
|
315
|
+
expiresIn: number;
|
|
316
|
+
feePayer?: "merchant" | "payer" | undefined;
|
|
317
|
+
currency?: "USD" | undefined;
|
|
318
|
+
idempotencyKey?: string | undefined;
|
|
319
|
+
externalRef?: string | undefined;
|
|
320
|
+
source?: string | undefined;
|
|
321
|
+
metadata?: z.objectInputType<{
|
|
322
|
+
klappay: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
324
|
+
name: z.ZodString;
|
|
325
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
name: string;
|
|
329
|
+
quantity?: number | undefined;
|
|
330
|
+
imageUrl?: string | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
name: string;
|
|
333
|
+
quantity?: number | undefined;
|
|
334
|
+
imageUrl?: string | undefined;
|
|
335
|
+
}>, "many">>;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
products?: {
|
|
338
|
+
name: string;
|
|
339
|
+
quantity?: number | undefined;
|
|
340
|
+
imageUrl?: string | undefined;
|
|
341
|
+
}[] | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
products?: {
|
|
344
|
+
name: string;
|
|
345
|
+
quantity?: number | undefined;
|
|
346
|
+
imageUrl?: string | undefined;
|
|
347
|
+
}[] | undefined;
|
|
348
|
+
}>>;
|
|
349
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
350
|
+
redirectUrl?: string | undefined;
|
|
351
|
+
splitRecipients?: {
|
|
352
|
+
percent: number;
|
|
353
|
+
recipientId: string;
|
|
354
|
+
label?: string | undefined;
|
|
355
|
+
}[] | undefined;
|
|
356
|
+
escrow?: {
|
|
357
|
+
releaserAddress?: string | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
}>, {
|
|
360
|
+
amount: number;
|
|
361
|
+
feePayer: "merchant" | "payer";
|
|
362
|
+
currency: "USD";
|
|
363
|
+
acceptedPayments: {
|
|
364
|
+
token: "USDC" | "USDT";
|
|
365
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
263
366
|
}[];
|
|
264
367
|
expiresIn: number;
|
|
265
368
|
idempotencyKey?: string | undefined;
|
|
@@ -307,7 +410,7 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
307
410
|
amount: number;
|
|
308
411
|
acceptedPayments: {
|
|
309
412
|
token: "USDC" | "USDT";
|
|
310
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
413
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
311
414
|
}[];
|
|
312
415
|
expiresIn: number;
|
|
313
416
|
feePayer?: "merchant" | "payer" | undefined;
|
|
@@ -371,33 +474,33 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
371
474
|
currency: z.ZodString;
|
|
372
475
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
373
476
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
374
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
477
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
375
478
|
}, "strip", z.ZodTypeAny, {
|
|
376
479
|
token: "USDC" | "USDT";
|
|
377
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
480
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
378
481
|
}, {
|
|
379
482
|
token: "USDC" | "USDT";
|
|
380
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
483
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
381
484
|
}>, "many">;
|
|
382
485
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
383
486
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
384
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
487
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
385
488
|
}, "strip", z.ZodTypeAny, {
|
|
386
489
|
token: "USDC" | "USDT";
|
|
387
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
490
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
388
491
|
}, {
|
|
389
492
|
token: "USDC" | "USDT";
|
|
390
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
493
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
391
494
|
}>, "many">;
|
|
392
495
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
393
496
|
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
394
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
497
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
395
498
|
}, "strip", z.ZodTypeAny, {
|
|
396
499
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
397
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
500
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
398
501
|
}, {
|
|
399
502
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
400
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
503
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
401
504
|
}>, "many">;
|
|
402
505
|
address: z.ZodString;
|
|
403
506
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -495,11 +598,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
495
598
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
496
599
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
497
600
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
498
|
-
address: z.ZodString
|
|
601
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
499
602
|
percent: z.ZodNumber;
|
|
500
603
|
label: z.ZodOptional<z.ZodString>;
|
|
501
604
|
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
address:
|
|
605
|
+
address: SplitAddress;
|
|
503
606
|
percent: number;
|
|
504
607
|
label?: string | undefined;
|
|
505
608
|
}, {
|
|
@@ -533,7 +636,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
533
636
|
currency: string;
|
|
534
637
|
acceptedPayments: {
|
|
535
638
|
token: "USDC" | "USDT";
|
|
536
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
639
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
537
640
|
}[];
|
|
538
641
|
externalRef: string | null;
|
|
539
642
|
source: string | null;
|
|
@@ -568,7 +671,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
568
671
|
}, z.ZodUnknown, "strip"> | null;
|
|
569
672
|
redirectUrl: string | null;
|
|
570
673
|
splitRecipients: {
|
|
571
|
-
address:
|
|
674
|
+
address: SplitAddress;
|
|
572
675
|
percent: number;
|
|
573
676
|
label?: string | undefined;
|
|
574
677
|
}[];
|
|
@@ -585,11 +688,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
585
688
|
isOverpaid: boolean;
|
|
586
689
|
paidWith: {
|
|
587
690
|
token: "USDC" | "USDT";
|
|
588
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
691
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
589
692
|
}[];
|
|
590
693
|
swapAlternatives: {
|
|
591
694
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
592
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
695
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
593
696
|
}[];
|
|
594
697
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
595
698
|
environment: "live" | "test";
|
|
@@ -612,7 +715,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
612
715
|
currency: string;
|
|
613
716
|
acceptedPayments: {
|
|
614
717
|
token: "USDC" | "USDT";
|
|
615
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
718
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
616
719
|
}[];
|
|
617
720
|
externalRef: string | null;
|
|
618
721
|
source: string | null;
|
|
@@ -664,11 +767,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
664
767
|
isOverpaid: boolean;
|
|
665
768
|
paidWith: {
|
|
666
769
|
token: "USDC" | "USDT";
|
|
667
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
770
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
668
771
|
}[];
|
|
669
772
|
swapAlternatives: {
|
|
670
773
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
671
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
774
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
672
775
|
}[];
|
|
673
776
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
674
777
|
environment: "live" | "test";
|
|
@@ -688,7 +791,7 @@ type Charge = z.infer<typeof ChargeSchema>;
|
|
|
688
791
|
declare const ListChargesSchema: z.ZodObject<{
|
|
689
792
|
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>>;
|
|
690
793
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
691
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
794
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
692
795
|
environment: z.ZodOptional<z.ZodEnum<["live", "test"]>>;
|
|
693
796
|
since: z.ZodOptional<z.ZodString>;
|
|
694
797
|
isOverpaid: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
@@ -700,7 +803,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
700
803
|
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
701
804
|
cursor?: string | undefined;
|
|
702
805
|
token?: "USDC" | "USDT" | undefined;
|
|
703
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
806
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
704
807
|
isOverpaid?: boolean | undefined;
|
|
705
808
|
environment?: "live" | "test" | undefined;
|
|
706
809
|
since?: string | undefined;
|
|
@@ -709,7 +812,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
709
812
|
limit?: number | undefined;
|
|
710
813
|
cursor?: string | undefined;
|
|
711
814
|
token?: "USDC" | "USDT" | undefined;
|
|
712
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
815
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
713
816
|
isOverpaid?: "true" | "false" | undefined;
|
|
714
817
|
environment?: "live" | "test" | undefined;
|
|
715
818
|
since?: string | undefined;
|
|
@@ -732,33 +835,33 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
732
835
|
currency: z.ZodString;
|
|
733
836
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
734
837
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
735
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
838
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
736
839
|
}, "strip", z.ZodTypeAny, {
|
|
737
840
|
token: "USDC" | "USDT";
|
|
738
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
841
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
739
842
|
}, {
|
|
740
843
|
token: "USDC" | "USDT";
|
|
741
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
844
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
742
845
|
}>, "many">;
|
|
743
846
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
744
847
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
745
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
848
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
746
849
|
}, "strip", z.ZodTypeAny, {
|
|
747
850
|
token: "USDC" | "USDT";
|
|
748
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
851
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
749
852
|
}, {
|
|
750
853
|
token: "USDC" | "USDT";
|
|
751
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
854
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
752
855
|
}>, "many">;
|
|
753
856
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
754
857
|
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
755
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
858
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
756
859
|
}, "strip", z.ZodTypeAny, {
|
|
757
860
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
758
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
861
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
759
862
|
}, {
|
|
760
863
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
761
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
864
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
762
865
|
}>, "many">;
|
|
763
866
|
address: z.ZodString;
|
|
764
867
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -856,11 +959,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
856
959
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
857
960
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
858
961
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
859
|
-
address: z.ZodString
|
|
962
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
860
963
|
percent: z.ZodNumber;
|
|
861
964
|
label: z.ZodOptional<z.ZodString>;
|
|
862
965
|
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
address:
|
|
966
|
+
address: SplitAddress;
|
|
864
967
|
percent: number;
|
|
865
968
|
label?: string | undefined;
|
|
866
969
|
}, {
|
|
@@ -894,7 +997,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
894
997
|
currency: string;
|
|
895
998
|
acceptedPayments: {
|
|
896
999
|
token: "USDC" | "USDT";
|
|
897
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1000
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
898
1001
|
}[];
|
|
899
1002
|
externalRef: string | null;
|
|
900
1003
|
source: string | null;
|
|
@@ -929,7 +1032,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
929
1032
|
}, z.ZodUnknown, "strip"> | null;
|
|
930
1033
|
redirectUrl: string | null;
|
|
931
1034
|
splitRecipients: {
|
|
932
|
-
address:
|
|
1035
|
+
address: SplitAddress;
|
|
933
1036
|
percent: number;
|
|
934
1037
|
label?: string | undefined;
|
|
935
1038
|
}[];
|
|
@@ -946,11 +1049,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
946
1049
|
isOverpaid: boolean;
|
|
947
1050
|
paidWith: {
|
|
948
1051
|
token: "USDC" | "USDT";
|
|
949
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1052
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
950
1053
|
}[];
|
|
951
1054
|
swapAlternatives: {
|
|
952
1055
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
953
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1056
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
954
1057
|
}[];
|
|
955
1058
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
956
1059
|
environment: "live" | "test";
|
|
@@ -973,7 +1076,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
973
1076
|
currency: string;
|
|
974
1077
|
acceptedPayments: {
|
|
975
1078
|
token: "USDC" | "USDT";
|
|
976
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1079
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
977
1080
|
}[];
|
|
978
1081
|
externalRef: string | null;
|
|
979
1082
|
source: string | null;
|
|
@@ -1025,11 +1128,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1025
1128
|
isOverpaid: boolean;
|
|
1026
1129
|
paidWith: {
|
|
1027
1130
|
token: "USDC" | "USDT";
|
|
1028
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1131
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1029
1132
|
}[];
|
|
1030
1133
|
swapAlternatives: {
|
|
1031
1134
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1032
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1135
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1033
1136
|
}[];
|
|
1034
1137
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1035
1138
|
environment: "live" | "test";
|
|
@@ -1056,7 +1159,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1056
1159
|
currency: string;
|
|
1057
1160
|
acceptedPayments: {
|
|
1058
1161
|
token: "USDC" | "USDT";
|
|
1059
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1162
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1060
1163
|
}[];
|
|
1061
1164
|
externalRef: string | null;
|
|
1062
1165
|
source: string | null;
|
|
@@ -1091,7 +1194,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1091
1194
|
}, z.ZodUnknown, "strip"> | null;
|
|
1092
1195
|
redirectUrl: string | null;
|
|
1093
1196
|
splitRecipients: {
|
|
1094
|
-
address:
|
|
1197
|
+
address: SplitAddress;
|
|
1095
1198
|
percent: number;
|
|
1096
1199
|
label?: string | undefined;
|
|
1097
1200
|
}[];
|
|
@@ -1108,11 +1211,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1108
1211
|
isOverpaid: boolean;
|
|
1109
1212
|
paidWith: {
|
|
1110
1213
|
token: "USDC" | "USDT";
|
|
1111
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1214
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1112
1215
|
}[];
|
|
1113
1216
|
swapAlternatives: {
|
|
1114
1217
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1115
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1218
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1116
1219
|
}[];
|
|
1117
1220
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1118
1221
|
environment: "live" | "test";
|
|
@@ -1139,7 +1242,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1139
1242
|
currency: string;
|
|
1140
1243
|
acceptedPayments: {
|
|
1141
1244
|
token: "USDC" | "USDT";
|
|
1142
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1245
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1143
1246
|
}[];
|
|
1144
1247
|
externalRef: string | null;
|
|
1145
1248
|
source: string | null;
|
|
@@ -1191,11 +1294,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1191
1294
|
isOverpaid: boolean;
|
|
1192
1295
|
paidWith: {
|
|
1193
1296
|
token: "USDC" | "USDT";
|
|
1194
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1297
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1195
1298
|
}[];
|
|
1196
1299
|
swapAlternatives: {
|
|
1197
1300
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1198
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1301
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1199
1302
|
}[];
|
|
1200
1303
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1201
1304
|
environment: "live" | "test";
|
|
@@ -1217,31 +1320,31 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1217
1320
|
type PaginatedCharges = z.infer<typeof PaginatedChargesSchema>;
|
|
1218
1321
|
declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
1219
1322
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
1220
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1323
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
1221
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1325
|
token?: "USDC" | "USDT" | undefined;
|
|
1223
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1326
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1224
1327
|
}, {
|
|
1225
1328
|
token?: "USDC" | "USDT" | undefined;
|
|
1226
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1329
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1227
1330
|
}>;
|
|
1228
1331
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
1229
1332
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
1230
1333
|
|
|
1231
1334
|
declare const CheckChargeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1232
1335
|
txHash: z.ZodOptional<z.ZodString>;
|
|
1233
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1336
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
1234
1337
|
}, "strip", z.ZodTypeAny, {
|
|
1235
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1338
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1236
1339
|
txHash?: string | undefined;
|
|
1237
1340
|
}, {
|
|
1238
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1341
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1239
1342
|
txHash?: string | undefined;
|
|
1240
1343
|
}>, {
|
|
1241
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1344
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1242
1345
|
txHash?: string | undefined;
|
|
1243
1346
|
}, {
|
|
1244
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1347
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1245
1348
|
txHash?: string | undefined;
|
|
1246
1349
|
}>;
|
|
1247
1350
|
type CheckChargeRequest = z.infer<typeof CheckChargeRequestSchema>;
|
|
@@ -1260,33 +1363,33 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1260
1363
|
currency: z.ZodString;
|
|
1261
1364
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
1262
1365
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1263
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1366
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1264
1367
|
}, "strip", z.ZodTypeAny, {
|
|
1265
1368
|
token: "USDC" | "USDT";
|
|
1266
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1369
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1267
1370
|
}, {
|
|
1268
1371
|
token: "USDC" | "USDT";
|
|
1269
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1372
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1270
1373
|
}>, "many">;
|
|
1271
1374
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
1272
1375
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1273
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1376
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1274
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1275
1378
|
token: "USDC" | "USDT";
|
|
1276
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1379
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1277
1380
|
}, {
|
|
1278
1381
|
token: "USDC" | "USDT";
|
|
1279
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1382
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1280
1383
|
}>, "many">;
|
|
1281
1384
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
1282
1385
|
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
1283
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1386
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1284
1387
|
}, "strip", z.ZodTypeAny, {
|
|
1285
1388
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1286
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1389
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1287
1390
|
}, {
|
|
1288
1391
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1289
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1392
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1290
1393
|
}>, "many">;
|
|
1291
1394
|
address: z.ZodString;
|
|
1292
1395
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -1384,11 +1487,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1384
1487
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
1385
1488
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
1386
1489
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
1387
|
-
address: z.ZodString
|
|
1490
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
1388
1491
|
percent: z.ZodNumber;
|
|
1389
1492
|
label: z.ZodOptional<z.ZodString>;
|
|
1390
1493
|
}, "strip", z.ZodTypeAny, {
|
|
1391
|
-
address:
|
|
1494
|
+
address: SplitAddress;
|
|
1392
1495
|
percent: number;
|
|
1393
1496
|
label?: string | undefined;
|
|
1394
1497
|
}, {
|
|
@@ -1417,17 +1520,17 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1417
1520
|
} & {
|
|
1418
1521
|
transactionSender: z.ZodNullable<z.ZodString>;
|
|
1419
1522
|
confirmationProgress: z.ZodNullable<z.ZodObject<{
|
|
1420
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1523
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1421
1524
|
blocksSeen: z.ZodNumber;
|
|
1422
1525
|
blocksRequired: z.ZodNumber;
|
|
1423
1526
|
percent: z.ZodNumber;
|
|
1424
1527
|
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1528
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1426
1529
|
percent: number;
|
|
1427
1530
|
blocksSeen: number;
|
|
1428
1531
|
blocksRequired: number;
|
|
1429
1532
|
}, {
|
|
1430
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1533
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1431
1534
|
percent: number;
|
|
1432
1535
|
blocksSeen: number;
|
|
1433
1536
|
blocksRequired: number;
|
|
@@ -1440,7 +1543,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1440
1543
|
currency: string;
|
|
1441
1544
|
acceptedPayments: {
|
|
1442
1545
|
token: "USDC" | "USDT";
|
|
1443
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1546
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1444
1547
|
}[];
|
|
1445
1548
|
externalRef: string | null;
|
|
1446
1549
|
source: string | null;
|
|
@@ -1475,7 +1578,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1475
1578
|
}, z.ZodUnknown, "strip"> | null;
|
|
1476
1579
|
redirectUrl: string | null;
|
|
1477
1580
|
splitRecipients: {
|
|
1478
|
-
address:
|
|
1581
|
+
address: SplitAddress;
|
|
1479
1582
|
percent: number;
|
|
1480
1583
|
label?: string | undefined;
|
|
1481
1584
|
}[];
|
|
@@ -1492,11 +1595,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1492
1595
|
isOverpaid: boolean;
|
|
1493
1596
|
paidWith: {
|
|
1494
1597
|
token: "USDC" | "USDT";
|
|
1495
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1598
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1496
1599
|
}[];
|
|
1497
1600
|
swapAlternatives: {
|
|
1498
1601
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1499
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1602
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1500
1603
|
}[];
|
|
1501
1604
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1502
1605
|
environment: "live" | "test";
|
|
@@ -1510,7 +1613,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1510
1613
|
lastActivityAt: string;
|
|
1511
1614
|
transactionSender: string | null;
|
|
1512
1615
|
confirmationProgress: {
|
|
1513
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1616
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1514
1617
|
percent: number;
|
|
1515
1618
|
blocksSeen: number;
|
|
1516
1619
|
blocksRequired: number;
|
|
@@ -1526,7 +1629,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1526
1629
|
currency: string;
|
|
1527
1630
|
acceptedPayments: {
|
|
1528
1631
|
token: "USDC" | "USDT";
|
|
1529
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1632
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1530
1633
|
}[];
|
|
1531
1634
|
externalRef: string | null;
|
|
1532
1635
|
source: string | null;
|
|
@@ -1578,11 +1681,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1578
1681
|
isOverpaid: boolean;
|
|
1579
1682
|
paidWith: {
|
|
1580
1683
|
token: "USDC" | "USDT";
|
|
1581
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1684
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1582
1685
|
}[];
|
|
1583
1686
|
swapAlternatives: {
|
|
1584
1687
|
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1585
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1688
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1586
1689
|
}[];
|
|
1587
1690
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1588
1691
|
environment: "live" | "test";
|
|
@@ -1596,7 +1699,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1596
1699
|
lastActivityAt: string;
|
|
1597
1700
|
transactionSender: string | null;
|
|
1598
1701
|
confirmationProgress: {
|
|
1599
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1702
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1600
1703
|
percent: number;
|
|
1601
1704
|
blocksSeen: number;
|
|
1602
1705
|
blocksRequired: number;
|
|
@@ -1608,17 +1711,17 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1608
1711
|
type CheckChargeResponse = z.infer<typeof CheckChargeResponseSchema>;
|
|
1609
1712
|
|
|
1610
1713
|
declare const ConfirmationProgressSchema: z.ZodObject<{
|
|
1611
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1714
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1612
1715
|
blocksSeen: z.ZodNumber;
|
|
1613
1716
|
blocksRequired: z.ZodNumber;
|
|
1614
1717
|
percent: z.ZodNumber;
|
|
1615
1718
|
}, "strip", z.ZodTypeAny, {
|
|
1616
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1719
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1617
1720
|
percent: number;
|
|
1618
1721
|
blocksSeen: number;
|
|
1619
1722
|
blocksRequired: number;
|
|
1620
1723
|
}, {
|
|
1621
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1724
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1622
1725
|
percent: number;
|
|
1623
1726
|
blocksSeen: number;
|
|
1624
1727
|
blocksRequired: number;
|
|
@@ -1793,7 +1896,7 @@ declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
|
1793
1896
|
}>;
|
|
1794
1897
|
declare const PendingDistributionSchema: z.ZodObject<{
|
|
1795
1898
|
splitAddress: z.ZodString;
|
|
1796
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1899
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1797
1900
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1798
1901
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1799
1902
|
address: z.ZodString;
|
|
@@ -1811,7 +1914,7 @@ declare const PendingDistributionSchema: z.ZodObject<{
|
|
|
1811
1914
|
graceEndsAt: z.ZodString;
|
|
1812
1915
|
}, "strip", z.ZodTypeAny, {
|
|
1813
1916
|
token: "USDC" | "USDT";
|
|
1814
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1917
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1815
1918
|
splitAddress: string;
|
|
1816
1919
|
recipients: {
|
|
1817
1920
|
address: string;
|
|
@@ -1823,7 +1926,7 @@ declare const PendingDistributionSchema: z.ZodObject<{
|
|
|
1823
1926
|
graceEndsAt: string;
|
|
1824
1927
|
}, {
|
|
1825
1928
|
token: "USDC" | "USDT";
|
|
1826
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1929
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1827
1930
|
splitAddress: string;
|
|
1828
1931
|
recipients: {
|
|
1829
1932
|
address: string;
|
|
@@ -1838,7 +1941,7 @@ type PendingDistribution = z.infer<typeof PendingDistributionSchema>;
|
|
|
1838
1941
|
declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
1839
1942
|
data: z.ZodArray<z.ZodObject<{
|
|
1840
1943
|
splitAddress: z.ZodString;
|
|
1841
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1944
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1842
1945
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1843
1946
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1844
1947
|
address: z.ZodString;
|
|
@@ -1856,7 +1959,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1856
1959
|
graceEndsAt: z.ZodString;
|
|
1857
1960
|
}, "strip", z.ZodTypeAny, {
|
|
1858
1961
|
token: "USDC" | "USDT";
|
|
1859
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1962
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1860
1963
|
splitAddress: string;
|
|
1861
1964
|
recipients: {
|
|
1862
1965
|
address: string;
|
|
@@ -1868,7 +1971,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1868
1971
|
graceEndsAt: string;
|
|
1869
1972
|
}, {
|
|
1870
1973
|
token: "USDC" | "USDT";
|
|
1871
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1974
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1872
1975
|
splitAddress: string;
|
|
1873
1976
|
recipients: {
|
|
1874
1977
|
address: string;
|
|
@@ -1884,7 +1987,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1884
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1885
1988
|
data: {
|
|
1886
1989
|
token: "USDC" | "USDT";
|
|
1887
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1990
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1888
1991
|
splitAddress: string;
|
|
1889
1992
|
recipients: {
|
|
1890
1993
|
address: string;
|
|
@@ -1900,7 +2003,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1900
2003
|
}, {
|
|
1901
2004
|
data: {
|
|
1902
2005
|
token: "USDC" | "USDT";
|
|
1903
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2006
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1904
2007
|
splitAddress: string;
|
|
1905
2008
|
recipients: {
|
|
1906
2009
|
address: string;
|
|
@@ -1927,7 +2030,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1927
2030
|
type: z.ZodLiteral<"distribution.available">;
|
|
1928
2031
|
distribution: z.ZodObject<{
|
|
1929
2032
|
splitAddress: z.ZodString;
|
|
1930
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
2033
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1931
2034
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1932
2035
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1933
2036
|
address: z.ZodString;
|
|
@@ -1945,7 +2048,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1945
2048
|
graceEndsAt: z.ZodString;
|
|
1946
2049
|
}, "strip", z.ZodTypeAny, {
|
|
1947
2050
|
token: "USDC" | "USDT";
|
|
1948
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2051
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1949
2052
|
splitAddress: string;
|
|
1950
2053
|
recipients: {
|
|
1951
2054
|
address: string;
|
|
@@ -1957,7 +2060,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1957
2060
|
graceEndsAt: string;
|
|
1958
2061
|
}, {
|
|
1959
2062
|
token: "USDC" | "USDT";
|
|
1960
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2063
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1961
2064
|
splitAddress: string;
|
|
1962
2065
|
recipients: {
|
|
1963
2066
|
address: string;
|
|
@@ -1972,7 +2075,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1972
2075
|
type: "distribution.available";
|
|
1973
2076
|
distribution: {
|
|
1974
2077
|
token: "USDC" | "USDT";
|
|
1975
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2078
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1976
2079
|
splitAddress: string;
|
|
1977
2080
|
recipients: {
|
|
1978
2081
|
address: string;
|
|
@@ -1987,7 +2090,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1987
2090
|
type: "distribution.available";
|
|
1988
2091
|
distribution: {
|
|
1989
2092
|
token: "USDC" | "USDT";
|
|
1990
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2093
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1991
2094
|
splitAddress: string;
|
|
1992
2095
|
recipients: {
|
|
1993
2096
|
address: string;
|
|
@@ -2096,13 +2199,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2096
2199
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2097
2200
|
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef", "escrowReleaserAddress"]>;
|
|
2098
2201
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
2099
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2202
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2100
2203
|
}, "strip", z.ZodTypeAny, {
|
|
2101
|
-
value: string | number | boolean | (string | number)[];
|
|
2204
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2102
2205
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2103
2206
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2104
2207
|
}, {
|
|
2105
|
-
value: string | number | boolean | (string | number)[];
|
|
2208
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2106
2209
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2107
2210
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2108
2211
|
}>, "many">>;
|
|
@@ -2140,7 +2243,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2140
2243
|
alias?: string | undefined;
|
|
2141
2244
|
}[];
|
|
2142
2245
|
filters: {
|
|
2143
|
-
value: string | number | boolean | (string | number)[];
|
|
2246
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2144
2247
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2145
2248
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2146
2249
|
}[];
|
|
@@ -2171,7 +2274,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2171
2274
|
granularity: "day" | "week" | "month" | "year";
|
|
2172
2275
|
})[] | undefined;
|
|
2173
2276
|
filters?: {
|
|
2174
|
-
value: string | number | boolean | (string | number)[];
|
|
2277
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2175
2278
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2176
2279
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2177
2280
|
}[] | undefined;
|
|
@@ -2233,13 +2336,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2233
2336
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2234
2337
|
field: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
2235
2338
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
2236
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2339
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2237
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2238
|
-
value: string | number | boolean | (string | number)[];
|
|
2341
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2239
2342
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2240
2343
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2241
2344
|
}, {
|
|
2242
|
-
value: string | number | boolean | (string | number)[];
|
|
2345
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2243
2346
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2244
2347
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2245
2348
|
}>, "many">>;
|
|
@@ -2277,7 +2380,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2277
2380
|
alias?: string | undefined;
|
|
2278
2381
|
}[];
|
|
2279
2382
|
filters: {
|
|
2280
|
-
value: string | number | boolean | (string | number)[];
|
|
2383
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2281
2384
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2282
2385
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2283
2386
|
}[];
|
|
@@ -2308,7 +2411,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2308
2411
|
granularity: "day" | "week" | "month" | "year";
|
|
2309
2412
|
})[] | undefined;
|
|
2310
2413
|
filters?: {
|
|
2311
|
-
value: string | number | boolean | (string | number)[];
|
|
2414
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2312
2415
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2313
2416
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2314
2417
|
}[] | undefined;
|
|
@@ -2370,13 +2473,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2370
2473
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2371
2474
|
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
2372
2475
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
2373
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2476
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2374
2477
|
}, "strip", z.ZodTypeAny, {
|
|
2375
|
-
value: string | number | boolean | (string | number)[];
|
|
2478
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2376
2479
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2377
2480
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2378
2481
|
}, {
|
|
2379
|
-
value: string | number | boolean | (string | number)[];
|
|
2482
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2380
2483
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2381
2484
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2382
2485
|
}>, "many">>;
|
|
@@ -2414,7 +2517,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2414
2517
|
alias?: string | undefined;
|
|
2415
2518
|
}[];
|
|
2416
2519
|
filters: {
|
|
2417
|
-
value: string | number | boolean | (string | number)[];
|
|
2520
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2418
2521
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2419
2522
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2420
2523
|
}[];
|
|
@@ -2445,7 +2548,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2445
2548
|
granularity: "day" | "week" | "month" | "year";
|
|
2446
2549
|
})[] | undefined;
|
|
2447
2550
|
filters?: {
|
|
2448
|
-
value: string | number | boolean | (string | number)[];
|
|
2551
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2449
2552
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2450
2553
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2451
2554
|
}[] | undefined;
|
|
@@ -2476,7 +2579,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2476
2579
|
alias?: string | undefined;
|
|
2477
2580
|
}[];
|
|
2478
2581
|
filters: {
|
|
2479
|
-
value: string | number | boolean | (string | number)[];
|
|
2582
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2480
2583
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2481
2584
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2482
2585
|
}[];
|
|
@@ -2507,7 +2610,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2507
2610
|
alias?: string | undefined;
|
|
2508
2611
|
}[];
|
|
2509
2612
|
filters: {
|
|
2510
|
-
value: string | number | boolean | (string | number)[];
|
|
2613
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2511
2614
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2512
2615
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2513
2616
|
}[];
|
|
@@ -2538,7 +2641,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2538
2641
|
alias?: string | undefined;
|
|
2539
2642
|
}[];
|
|
2540
2643
|
filters: {
|
|
2541
|
-
value: string | number | boolean | (string | number)[];
|
|
2644
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2542
2645
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2543
2646
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2544
2647
|
}[];
|
|
@@ -2569,7 +2672,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2569
2672
|
granularity: "day" | "week" | "month" | "year";
|
|
2570
2673
|
})[] | undefined;
|
|
2571
2674
|
filters?: {
|
|
2572
|
-
value: string | number | boolean | (string | number)[];
|
|
2675
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2573
2676
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2574
2677
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2575
2678
|
}[] | undefined;
|
|
@@ -2600,7 +2703,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2600
2703
|
granularity: "day" | "week" | "month" | "year";
|
|
2601
2704
|
})[] | undefined;
|
|
2602
2705
|
filters?: {
|
|
2603
|
-
value: string | number | boolean | (string | number)[];
|
|
2706
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2604
2707
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2605
2708
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2606
2709
|
}[] | undefined;
|
|
@@ -2631,7 +2734,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2631
2734
|
granularity: "day" | "week" | "month" | "year";
|
|
2632
2735
|
})[] | undefined;
|
|
2633
2736
|
filters?: {
|
|
2634
|
-
value: string | number | boolean | (string | number)[];
|
|
2737
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2635
2738
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2636
2739
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2637
2740
|
}[] | undefined;
|
|
@@ -2945,10 +3048,10 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2945
3048
|
type PaginatedWebhookDeliveries = z.infer<typeof PaginatedWebhookDeliveriesSchema>;
|
|
2946
3049
|
|
|
2947
3050
|
declare const CreateRecipientSchema: z.ZodObject<{
|
|
2948
|
-
address: z.ZodString
|
|
3051
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
2949
3052
|
label: z.ZodOptional<z.ZodString>;
|
|
2950
3053
|
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
address:
|
|
3054
|
+
address: SplitAddress;
|
|
2952
3055
|
label?: string | undefined;
|
|
2953
3056
|
}, {
|
|
2954
3057
|
address: string;
|
|
@@ -2979,6 +3082,55 @@ declare const RecipientSchema: z.ZodObject<{
|
|
|
2979
3082
|
payout: boolean;
|
|
2980
3083
|
}>;
|
|
2981
3084
|
type Recipient = z.infer<typeof RecipientSchema>;
|
|
3085
|
+
declare const PaginatedRecipientsSchema: z.ZodObject<{
|
|
3086
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3087
|
+
id: z.ZodString;
|
|
3088
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
3089
|
+
address: z.ZodString;
|
|
3090
|
+
label: z.ZodNullable<z.ZodString>;
|
|
3091
|
+
payout: z.ZodBoolean;
|
|
3092
|
+
createdAt: z.ZodString;
|
|
3093
|
+
}, "strip", z.ZodTypeAny, {
|
|
3094
|
+
address: string;
|
|
3095
|
+
label: string | null;
|
|
3096
|
+
id: string;
|
|
3097
|
+
environment: "live" | "test";
|
|
3098
|
+
createdAt: string;
|
|
3099
|
+
payout: boolean;
|
|
3100
|
+
}, {
|
|
3101
|
+
address: string;
|
|
3102
|
+
label: string | null;
|
|
3103
|
+
id: string;
|
|
3104
|
+
environment: "live" | "test";
|
|
3105
|
+
createdAt: string;
|
|
3106
|
+
payout: boolean;
|
|
3107
|
+
}>, "many">;
|
|
3108
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3109
|
+
hasMore: z.ZodBoolean;
|
|
3110
|
+
}, "strip", z.ZodTypeAny, {
|
|
3111
|
+
data: {
|
|
3112
|
+
address: string;
|
|
3113
|
+
label: string | null;
|
|
3114
|
+
id: string;
|
|
3115
|
+
environment: "live" | "test";
|
|
3116
|
+
createdAt: string;
|
|
3117
|
+
payout: boolean;
|
|
3118
|
+
}[];
|
|
3119
|
+
nextCursor: string | null;
|
|
3120
|
+
hasMore: boolean;
|
|
3121
|
+
}, {
|
|
3122
|
+
data: {
|
|
3123
|
+
address: string;
|
|
3124
|
+
label: string | null;
|
|
3125
|
+
id: string;
|
|
3126
|
+
environment: "live" | "test";
|
|
3127
|
+
createdAt: string;
|
|
3128
|
+
payout: boolean;
|
|
3129
|
+
}[];
|
|
3130
|
+
nextCursor: string | null;
|
|
3131
|
+
hasMore: boolean;
|
|
3132
|
+
}>;
|
|
3133
|
+
type PaginatedRecipients = z.infer<typeof PaginatedRecipientsSchema>;
|
|
2982
3134
|
declare const SetRecipientPayoutSchema: z.ZodObject<{
|
|
2983
3135
|
payout: z.ZodBoolean;
|
|
2984
3136
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2988,7 +3140,7 @@ declare const SetRecipientPayoutSchema: z.ZodObject<{
|
|
|
2988
3140
|
}>;
|
|
2989
3141
|
type SetRecipientPayoutInput = z.infer<typeof SetRecipientPayoutSchema>;
|
|
2990
3142
|
|
|
2991
|
-
declare const TransactionSourceSchema: z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox"]>;
|
|
3143
|
+
declare const TransactionSourceSchema: z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox", "tron_watcher"]>;
|
|
2992
3144
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2993
3145
|
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed", "transfer.reclaimed"]>;
|
|
2994
3146
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
@@ -2997,9 +3149,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2997
3149
|
at: z.ZodString;
|
|
2998
3150
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2999
3151
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
3000
|
-
source: z.ZodOptional<z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox"]>>;
|
|
3152
|
+
source: z.ZodOptional<z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox", "tron_watcher"]>>;
|
|
3001
3153
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
3002
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
3154
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
3003
3155
|
causedTransition: z.ZodOptional<z.ZodBoolean>;
|
|
3004
3156
|
event: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid", "charge.escrow_released", "charge.escrow_refunded"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>>;
|
|
3005
3157
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3008,9 +3160,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
3008
3160
|
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
3009
3161
|
at: string;
|
|
3010
3162
|
token?: "USDC" | "USDT" | undefined;
|
|
3011
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
3163
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
3012
3164
|
amount?: number | undefined;
|
|
3013
|
-
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | undefined;
|
|
3165
|
+
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | "tron_watcher" | undefined;
|
|
3014
3166
|
txHash?: string | undefined;
|
|
3015
3167
|
causedTransition?: boolean | undefined;
|
|
3016
3168
|
attempts?: number | undefined;
|
|
@@ -3020,9 +3172,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
3020
3172
|
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
3021
3173
|
at: string;
|
|
3022
3174
|
token?: "USDC" | "USDT" | undefined;
|
|
3023
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
3175
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
3024
3176
|
amount?: number | undefined;
|
|
3025
|
-
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | undefined;
|
|
3177
|
+
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | "tron_watcher" | undefined;
|
|
3026
3178
|
txHash?: string | undefined;
|
|
3027
3179
|
causedTransition?: boolean | undefined;
|
|
3028
3180
|
attempts?: number | undefined;
|
|
@@ -3073,48 +3225,48 @@ type SandboxTriggerInput = z.infer<typeof SandboxTriggerSchema>;
|
|
|
3073
3225
|
declare const CapabilitiesSchema: z.ZodObject<{
|
|
3074
3226
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
3075
3227
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
3076
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3228
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3077
3229
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3230
|
token: "USDC" | "USDT";
|
|
3079
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3231
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3080
3232
|
}, {
|
|
3081
3233
|
token: "USDC" | "USDT";
|
|
3082
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3234
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3083
3235
|
}>, "many">;
|
|
3084
3236
|
}, "strip", z.ZodTypeAny, {
|
|
3085
3237
|
acceptedPayments: {
|
|
3086
3238
|
token: "USDC" | "USDT";
|
|
3087
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3239
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3088
3240
|
}[];
|
|
3089
3241
|
}, {
|
|
3090
3242
|
acceptedPayments: {
|
|
3091
3243
|
token: "USDC" | "USDT";
|
|
3092
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3244
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3093
3245
|
}[];
|
|
3094
3246
|
}>;
|
|
3095
3247
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
3096
3248
|
|
|
3097
3249
|
declare const CreateSwapQuoteSchema: z.ZodObject<{
|
|
3098
3250
|
inputToken: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
3099
|
-
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3251
|
+
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3100
3252
|
takerAddress: z.ZodString;
|
|
3101
3253
|
}, "strip", z.ZodTypeAny, {
|
|
3102
3254
|
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3103
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3255
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3104
3256
|
takerAddress: string;
|
|
3105
3257
|
}, {
|
|
3106
3258
|
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3107
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3259
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3108
3260
|
takerAddress: string;
|
|
3109
3261
|
}>;
|
|
3110
3262
|
type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
|
|
3111
3263
|
declare const SwapQuoteSchema: z.ZodObject<{
|
|
3112
3264
|
inputToken: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
3113
|
-
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3265
|
+
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3114
3266
|
inputAmount: z.ZodNumber;
|
|
3115
3267
|
inputAmountExact: z.ZodOptional<z.ZodString>;
|
|
3116
3268
|
outputToken: z.ZodEnum<["USDC", "USDT"]>;
|
|
3117
|
-
outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3269
|
+
outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3118
3270
|
outputAmount: z.ZodNumber;
|
|
3119
3271
|
outputAmountExact: z.ZodOptional<z.ZodString>;
|
|
3120
3272
|
fees: z.ZodObject<{
|
|
@@ -3157,10 +3309,10 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3157
3309
|
}, "strip", z.ZodTypeAny, {
|
|
3158
3310
|
expiresAt: string;
|
|
3159
3311
|
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3160
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3312
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3161
3313
|
inputAmount: number;
|
|
3162
3314
|
outputToken: "USDC" | "USDT";
|
|
3163
|
-
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3315
|
+
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3164
3316
|
outputAmount: number;
|
|
3165
3317
|
fees: {
|
|
3166
3318
|
klappayFee: number;
|
|
@@ -3181,10 +3333,10 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3181
3333
|
}, {
|
|
3182
3334
|
expiresAt: string;
|
|
3183
3335
|
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3184
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3336
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3185
3337
|
inputAmount: number;
|
|
3186
3338
|
outputToken: "USDC" | "USDT";
|
|
3187
|
-
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3339
|
+
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3188
3340
|
outputAmount: number;
|
|
3189
3341
|
fees: {
|
|
3190
3342
|
klappayFee: number;
|
|
@@ -3205,4 +3357,4 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3205
3357
|
}>;
|
|
3206
3358
|
type SwapQuote = z.infer<typeof SwapQuoteSchema>;
|
|
3207
3359
|
|
|
3208
|
-
export { API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type ApiKeyScope, ApiKeyScopeSchema, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, CHARGE_SPLIT_RECIPIENTS_MAX, CHECKOUT_PRODUCTS_MAX, CONFLICTING_SCOPE_PAIRS, type Capabilities, CapabilitiesSchema, type Charge, type ChargeFeePayer, ChargeFeePayerSchema, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CheckChargeRequest, CheckChargeRequestSchema, type CheckChargeResponse, CheckChargeResponseSchema, type CheckoutProduct, CheckoutProductSchema, type ConfirmationProgress, ConfirmationProgressSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateRecipientInput, type CreateRecipientRequest, CreateRecipientSchema, type CreateSwapQuoteInput, CreateSwapQuoteSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, type ErrorPayload, ErrorPayloadSchema, type EscrowConfig, EscrowConfigSchema, type GetChargeQrCodeQuery, type GetChargeQrCodeQueryRequest, GetChargeQrCodeQuerySchema, type Health, HealthSchema, type KlappayCheckoutMetadata, KlappayCheckoutMetadataSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type ListenPendingDistributionsQuery, ListenPendingDistributionsQuerySchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, MetadataWithKlappaySchema, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsResource, MetricsResourceSchema, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedCharges, PaginatedChargesSchema, type PaginatedPendingDistributions, PaginatedPendingDistributionsSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type Recipient, RecipientSchema, type RefundEscrowRequest, RefundEscrowRequestSchema, type ReleaseEscrowRequest, ReleaseEscrowRequestSchema, type SandboxTriggerInput, SandboxTriggerSchema, type SetRecipientPayoutInput, SetRecipientPayoutSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, type SplitRecipientInput, SplitRecipientInputSchema, SplitRecipientSchema, type SwapQuote, SwapQuoteSchema, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, findConflictingScopes, paginatedSchema };
|
|
3360
|
+
export { API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type ApiKeyScope, ApiKeyScopeSchema, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, CHARGE_SPLIT_RECIPIENTS_MAX, CHECKOUT_PRODUCTS_MAX, CONFLICTING_SCOPE_PAIRS, type Capabilities, CapabilitiesSchema, type Charge, type ChargeFeePayer, ChargeFeePayerSchema, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CheckChargeRequest, CheckChargeRequestSchema, type CheckChargeResponse, CheckChargeResponseSchema, type CheckoutProduct, CheckoutProductSchema, type ConfirmationProgress, ConfirmationProgressSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateRecipientInput, type CreateRecipientRequest, CreateRecipientSchema, type CreateSwapQuoteInput, CreateSwapQuoteSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, type ErrorPayload, ErrorPayloadSchema, type EscrowConfig, EscrowConfigSchema, type GetChargeQrCodeQuery, type GetChargeQrCodeQueryRequest, GetChargeQrCodeQuerySchema, type Health, HealthSchema, type KlappayCheckoutMetadata, KlappayCheckoutMetadataSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type ListenPendingDistributionsQuery, ListenPendingDistributionsQuerySchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, MetadataWithKlappaySchema, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsResource, MetricsResourceSchema, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedCharges, PaginatedChargesSchema, type PaginatedPendingDistributions, PaginatedPendingDistributionsSchema, type PaginatedRecipients, PaginatedRecipientsSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type Recipient, RecipientSchema, type RefundEscrowRequest, RefundEscrowRequestSchema, type ReleaseEscrowRequest, ReleaseEscrowRequestSchema, type SandboxTriggerInput, SandboxTriggerSchema, type SetRecipientPayoutInput, SetRecipientPayoutSchema, type SettlementStatus, SettlementStatusSchema, SplitAddress, SplitAddressSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, type SplitRecipientInput, SplitRecipientInputSchema, SplitRecipientSchema, type SwapQuote, SwapQuoteSchema, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, findConflictingScopes, paginatedSchema };
|