@klappay/types 4.1.0 → 5.1.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.
- package/dist/{chunk-WKIOAEJ3.mjs → chunk-UEXXRQL3.mjs} +110 -18
- package/dist/chunk-UEXXRQL3.mjs.map +1 -0
- package/dist/constants-Cs8wjvTI.d.mts +64 -0
- package/dist/constants-Cs8wjvTI.d.ts +64 -0
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +100 -17
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +3 -1
- package/dist/index.d.mts +326 -176
- package/dist/index.d.ts +326 -176
- package/dist/index.js +451 -325
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-WKIOAEJ3.mjs.map +0 -1
- package/dist/constants-021Ybu31.d.mts +0 -50
- package/dist/constants-021Ybu31.d.ts +0 -50
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { S as SplitAddress } from './constants-Cs8wjvTI.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 SplitAddressSchema, o as SwapAlternative, p as SwapAlternativeSchema, T as TOKEN_ADDRESSES, q as TOKEN_DECIMALS, r as TOKEN_DEPLOYMENTS, s as Token, t as TokenDeployment, u as TokenSchema, v as TronAddress, w as addressesEqual, x as getTokenDeployment, y as isEvmAddress, z as isPaymentDeploymentEnabled, B as isSplitAddress, D as isTronAddress, F as listSwapAlternatives, G as tronAddress } from './constants-Cs8wjvTI.mjs';
|
|
1
3
|
import { z } from 'zod';
|
|
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 EvmNetwork, N as NETWORK_EXPLORERS, g as NETWORK_LABELS, h as Network, i as NetworkSchema, O as OPERATIONAL_NETWORKS, j as OperationalNetwork, S as SwapAlternative, k as SwapAlternativeSchema, T as TOKEN_ADDRESSES, l as TOKEN_DECIMALS, m as TOKEN_DEPLOYMENTS, n as Token, o as TokenDeployment, p as TokenSchema, q as getTokenDeployment, r as isPaymentDeploymentEnabled, s as listSwapAlternatives } from './constants-021Ybu31.mjs';
|
|
3
4
|
|
|
4
5
|
declare const ErrorPayloadSchema: z.ZodObject<{
|
|
5
6
|
error: z.ZodObject<{
|
|
@@ -73,25 +74,25 @@ declare const ChargeFeePayerSchema: z.ZodEnum<["merchant", "payer"]>;
|
|
|
73
74
|
type ChargeFeePayer = z.infer<typeof ChargeFeePayerSchema>;
|
|
74
75
|
declare const CHARGE_EXPIRES_IN_MIN_SECONDS = 60;
|
|
75
76
|
declare const CHARGE_EXPIRES_IN_MAX_SECONDS = 3600;
|
|
76
|
-
declare const CHARGE_ACCEPTED_PAYMENTS_MAX =
|
|
77
|
+
declare const CHARGE_ACCEPTED_PAYMENTS_MAX = 18;
|
|
77
78
|
declare const AcceptedPaymentSchema: z.ZodObject<{
|
|
78
79
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
79
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
80
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
|
81
82
|
token: "USDC" | "USDT";
|
|
82
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
83
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
83
84
|
}, {
|
|
84
85
|
token: "USDC" | "USDT";
|
|
85
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
86
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
86
87
|
}>;
|
|
87
88
|
type AcceptedPayment = z.infer<typeof AcceptedPaymentSchema>;
|
|
88
89
|
declare const CHARGE_SPLIT_RECIPIENTS_MAX = 5;
|
|
89
90
|
declare const SplitRecipientSchema: z.ZodObject<{
|
|
90
|
-
address: z.ZodString
|
|
91
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
91
92
|
percent: z.ZodNumber;
|
|
92
93
|
label: z.ZodOptional<z.ZodString>;
|
|
93
94
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
address:
|
|
95
|
+
address: SplitAddress;
|
|
95
96
|
percent: number;
|
|
96
97
|
label?: string | undefined;
|
|
97
98
|
}, {
|
|
@@ -115,25 +116,25 @@ declare const SplitRecipientInputSchema: z.ZodObject<{
|
|
|
115
116
|
}>;
|
|
116
117
|
type SplitRecipientInput = z.infer<typeof SplitRecipientInputSchema>;
|
|
117
118
|
declare const CHARGE_AMOUNT_MAX = 999999999999;
|
|
118
|
-
declare const CreateChargeSchema: z.ZodObject<{
|
|
119
|
+
declare const CreateChargeSchema: z.ZodEffects<z.ZodObject<{
|
|
119
120
|
amount: z.ZodNumber;
|
|
120
121
|
feePayer: z.ZodDefault<z.ZodOptional<z.ZodEnum<["merchant", "payer"]>>>;
|
|
121
122
|
currency: z.ZodDefault<z.ZodLiteral<"USD">>;
|
|
122
123
|
acceptedPayments: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
123
124
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
124
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
125
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
125
126
|
}, "strip", z.ZodTypeAny, {
|
|
126
127
|
token: "USDC" | "USDT";
|
|
127
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
128
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
128
129
|
}, {
|
|
129
130
|
token: "USDC" | "USDT";
|
|
130
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
131
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
131
132
|
}>, "many">, {
|
|
132
133
|
token: "USDC" | "USDT";
|
|
133
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
134
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
134
135
|
}[], {
|
|
135
136
|
token: "USDC" | "USDT";
|
|
136
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
137
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
137
138
|
}[]>;
|
|
138
139
|
expiresIn: z.ZodNumber;
|
|
139
140
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -259,7 +260,7 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
259
260
|
currency: "USD";
|
|
260
261
|
acceptedPayments: {
|
|
261
262
|
token: "USDC" | "USDT";
|
|
262
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
263
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
263
264
|
}[];
|
|
264
265
|
expiresIn: number;
|
|
265
266
|
idempotencyKey?: string | undefined;
|
|
@@ -307,7 +308,107 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
307
308
|
amount: number;
|
|
308
309
|
acceptedPayments: {
|
|
309
310
|
token: "USDC" | "USDT";
|
|
310
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
311
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
312
|
+
}[];
|
|
313
|
+
expiresIn: number;
|
|
314
|
+
feePayer?: "merchant" | "payer" | undefined;
|
|
315
|
+
currency?: "USD" | undefined;
|
|
316
|
+
idempotencyKey?: string | undefined;
|
|
317
|
+
externalRef?: string | undefined;
|
|
318
|
+
source?: string | undefined;
|
|
319
|
+
metadata?: z.objectInputType<{
|
|
320
|
+
klappay: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
name: string;
|
|
327
|
+
quantity?: number | undefined;
|
|
328
|
+
imageUrl?: string | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
name: string;
|
|
331
|
+
quantity?: number | undefined;
|
|
332
|
+
imageUrl?: string | undefined;
|
|
333
|
+
}>, "many">>;
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
products?: {
|
|
336
|
+
name: string;
|
|
337
|
+
quantity?: number | undefined;
|
|
338
|
+
imageUrl?: string | undefined;
|
|
339
|
+
}[] | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
products?: {
|
|
342
|
+
name: string;
|
|
343
|
+
quantity?: number | undefined;
|
|
344
|
+
imageUrl?: string | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
}>>;
|
|
347
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
348
|
+
redirectUrl?: string | undefined;
|
|
349
|
+
splitRecipients?: {
|
|
350
|
+
percent: number;
|
|
351
|
+
recipientId: string;
|
|
352
|
+
label?: string | undefined;
|
|
353
|
+
}[] | undefined;
|
|
354
|
+
escrow?: {
|
|
355
|
+
releaserAddress?: string | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
}>, {
|
|
358
|
+
amount: number;
|
|
359
|
+
feePayer: "merchant" | "payer";
|
|
360
|
+
currency: "USD";
|
|
361
|
+
acceptedPayments: {
|
|
362
|
+
token: "USDC" | "USDT";
|
|
363
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
364
|
+
}[];
|
|
365
|
+
expiresIn: number;
|
|
366
|
+
idempotencyKey?: string | undefined;
|
|
367
|
+
externalRef?: string | undefined;
|
|
368
|
+
source?: string | undefined;
|
|
369
|
+
metadata?: z.objectOutputType<{
|
|
370
|
+
klappay: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
imageUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
name: string;
|
|
377
|
+
quantity?: number | undefined;
|
|
378
|
+
imageUrl?: string | undefined;
|
|
379
|
+
}, {
|
|
380
|
+
name: string;
|
|
381
|
+
quantity?: number | undefined;
|
|
382
|
+
imageUrl?: string | undefined;
|
|
383
|
+
}>, "many">>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
products?: {
|
|
386
|
+
name: string;
|
|
387
|
+
quantity?: number | undefined;
|
|
388
|
+
imageUrl?: string | undefined;
|
|
389
|
+
}[] | undefined;
|
|
390
|
+
}, {
|
|
391
|
+
products?: {
|
|
392
|
+
name: string;
|
|
393
|
+
quantity?: number | undefined;
|
|
394
|
+
imageUrl?: string | undefined;
|
|
395
|
+
}[] | undefined;
|
|
396
|
+
}>>;
|
|
397
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
398
|
+
redirectUrl?: string | undefined;
|
|
399
|
+
splitRecipients?: {
|
|
400
|
+
percent: number;
|
|
401
|
+
recipientId: string;
|
|
402
|
+
label?: string | undefined;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
escrow?: {
|
|
405
|
+
releaserAddress?: string | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
amount: number;
|
|
409
|
+
acceptedPayments: {
|
|
410
|
+
token: "USDC" | "USDT";
|
|
411
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
311
412
|
}[];
|
|
312
413
|
expiresIn: number;
|
|
313
414
|
feePayer?: "merchant" | "payer" | undefined;
|
|
@@ -371,33 +472,33 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
371
472
|
currency: z.ZodString;
|
|
372
473
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
373
474
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
374
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
475
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
375
476
|
}, "strip", z.ZodTypeAny, {
|
|
376
477
|
token: "USDC" | "USDT";
|
|
377
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
478
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
378
479
|
}, {
|
|
379
480
|
token: "USDC" | "USDT";
|
|
380
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
481
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
381
482
|
}>, "many">;
|
|
382
483
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
383
484
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
384
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
485
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
385
486
|
}, "strip", z.ZodTypeAny, {
|
|
386
487
|
token: "USDC" | "USDT";
|
|
387
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
488
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
388
489
|
}, {
|
|
389
490
|
token: "USDC" | "USDT";
|
|
390
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
491
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
391
492
|
}>, "many">;
|
|
392
493
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
393
|
-
token: z.ZodEnum<["ETH", "BNB", "
|
|
394
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
494
|
+
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
495
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
395
496
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
token: "ETH" | "BNB" | "
|
|
397
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
497
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
498
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
398
499
|
}, {
|
|
399
|
-
token: "ETH" | "BNB" | "
|
|
400
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
500
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
501
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
401
502
|
}>, "many">;
|
|
402
503
|
address: z.ZodString;
|
|
403
504
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -495,11 +596,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
495
596
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
496
597
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
497
598
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
498
|
-
address: z.ZodString
|
|
599
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
499
600
|
percent: z.ZodNumber;
|
|
500
601
|
label: z.ZodOptional<z.ZodString>;
|
|
501
602
|
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
address:
|
|
603
|
+
address: SplitAddress;
|
|
503
604
|
percent: number;
|
|
504
605
|
label?: string | undefined;
|
|
505
606
|
}, {
|
|
@@ -533,7 +634,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
533
634
|
currency: string;
|
|
534
635
|
acceptedPayments: {
|
|
535
636
|
token: "USDC" | "USDT";
|
|
536
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
637
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
537
638
|
}[];
|
|
538
639
|
externalRef: string | null;
|
|
539
640
|
source: string | null;
|
|
@@ -568,7 +669,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
568
669
|
}, z.ZodUnknown, "strip"> | null;
|
|
569
670
|
redirectUrl: string | null;
|
|
570
671
|
splitRecipients: {
|
|
571
|
-
address:
|
|
672
|
+
address: SplitAddress;
|
|
572
673
|
percent: number;
|
|
573
674
|
label?: string | undefined;
|
|
574
675
|
}[];
|
|
@@ -585,11 +686,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
585
686
|
isOverpaid: boolean;
|
|
586
687
|
paidWith: {
|
|
587
688
|
token: "USDC" | "USDT";
|
|
588
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
689
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
589
690
|
}[];
|
|
590
691
|
swapAlternatives: {
|
|
591
|
-
token: "ETH" | "BNB" | "
|
|
592
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
692
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
693
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
593
694
|
}[];
|
|
594
695
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
595
696
|
environment: "live" | "test";
|
|
@@ -612,7 +713,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
612
713
|
currency: string;
|
|
613
714
|
acceptedPayments: {
|
|
614
715
|
token: "USDC" | "USDT";
|
|
615
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
716
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
616
717
|
}[];
|
|
617
718
|
externalRef: string | null;
|
|
618
719
|
source: string | null;
|
|
@@ -664,11 +765,11 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
664
765
|
isOverpaid: boolean;
|
|
665
766
|
paidWith: {
|
|
666
767
|
token: "USDC" | "USDT";
|
|
667
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
768
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
668
769
|
}[];
|
|
669
770
|
swapAlternatives: {
|
|
670
|
-
token: "ETH" | "BNB" | "
|
|
671
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
771
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
772
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
672
773
|
}[];
|
|
673
774
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
674
775
|
environment: "live" | "test";
|
|
@@ -688,7 +789,7 @@ type Charge = z.infer<typeof ChargeSchema>;
|
|
|
688
789
|
declare const ListChargesSchema: z.ZodObject<{
|
|
689
790
|
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>>;
|
|
690
791
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
691
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
792
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
692
793
|
environment: z.ZodOptional<z.ZodEnum<["live", "test"]>>;
|
|
693
794
|
since: z.ZodOptional<z.ZodString>;
|
|
694
795
|
isOverpaid: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
@@ -700,7 +801,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
700
801
|
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
701
802
|
cursor?: string | undefined;
|
|
702
803
|
token?: "USDC" | "USDT" | undefined;
|
|
703
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
804
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
704
805
|
isOverpaid?: boolean | undefined;
|
|
705
806
|
environment?: "live" | "test" | undefined;
|
|
706
807
|
since?: string | undefined;
|
|
@@ -709,7 +810,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
709
810
|
limit?: number | undefined;
|
|
710
811
|
cursor?: string | undefined;
|
|
711
812
|
token?: "USDC" | "USDT" | undefined;
|
|
712
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
813
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
713
814
|
isOverpaid?: "true" | "false" | undefined;
|
|
714
815
|
environment?: "live" | "test" | undefined;
|
|
715
816
|
since?: string | undefined;
|
|
@@ -732,33 +833,33 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
732
833
|
currency: z.ZodString;
|
|
733
834
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
734
835
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
735
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
836
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
736
837
|
}, "strip", z.ZodTypeAny, {
|
|
737
838
|
token: "USDC" | "USDT";
|
|
738
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
839
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
739
840
|
}, {
|
|
740
841
|
token: "USDC" | "USDT";
|
|
741
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
842
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
742
843
|
}>, "many">;
|
|
743
844
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
744
845
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
745
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
846
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
746
847
|
}, "strip", z.ZodTypeAny, {
|
|
747
848
|
token: "USDC" | "USDT";
|
|
748
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
849
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
749
850
|
}, {
|
|
750
851
|
token: "USDC" | "USDT";
|
|
751
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
852
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
752
853
|
}>, "many">;
|
|
753
854
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
754
|
-
token: z.ZodEnum<["ETH", "BNB", "
|
|
755
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
855
|
+
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
856
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
756
857
|
}, "strip", z.ZodTypeAny, {
|
|
757
|
-
token: "ETH" | "BNB" | "
|
|
758
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
858
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
859
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
759
860
|
}, {
|
|
760
|
-
token: "ETH" | "BNB" | "
|
|
761
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
861
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
862
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
762
863
|
}>, "many">;
|
|
763
864
|
address: z.ZodString;
|
|
764
865
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -856,11 +957,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
856
957
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
857
958
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
858
959
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
859
|
-
address: z.ZodString
|
|
960
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
860
961
|
percent: z.ZodNumber;
|
|
861
962
|
label: z.ZodOptional<z.ZodString>;
|
|
862
963
|
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
address:
|
|
964
|
+
address: SplitAddress;
|
|
864
965
|
percent: number;
|
|
865
966
|
label?: string | undefined;
|
|
866
967
|
}, {
|
|
@@ -894,7 +995,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
894
995
|
currency: string;
|
|
895
996
|
acceptedPayments: {
|
|
896
997
|
token: "USDC" | "USDT";
|
|
897
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
998
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
898
999
|
}[];
|
|
899
1000
|
externalRef: string | null;
|
|
900
1001
|
source: string | null;
|
|
@@ -929,7 +1030,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
929
1030
|
}, z.ZodUnknown, "strip"> | null;
|
|
930
1031
|
redirectUrl: string | null;
|
|
931
1032
|
splitRecipients: {
|
|
932
|
-
address:
|
|
1033
|
+
address: SplitAddress;
|
|
933
1034
|
percent: number;
|
|
934
1035
|
label?: string | undefined;
|
|
935
1036
|
}[];
|
|
@@ -946,11 +1047,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
946
1047
|
isOverpaid: boolean;
|
|
947
1048
|
paidWith: {
|
|
948
1049
|
token: "USDC" | "USDT";
|
|
949
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1050
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
950
1051
|
}[];
|
|
951
1052
|
swapAlternatives: {
|
|
952
|
-
token: "ETH" | "BNB" | "
|
|
953
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1053
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1054
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
954
1055
|
}[];
|
|
955
1056
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
956
1057
|
environment: "live" | "test";
|
|
@@ -973,7 +1074,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
973
1074
|
currency: string;
|
|
974
1075
|
acceptedPayments: {
|
|
975
1076
|
token: "USDC" | "USDT";
|
|
976
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1077
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
977
1078
|
}[];
|
|
978
1079
|
externalRef: string | null;
|
|
979
1080
|
source: string | null;
|
|
@@ -1025,11 +1126,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1025
1126
|
isOverpaid: boolean;
|
|
1026
1127
|
paidWith: {
|
|
1027
1128
|
token: "USDC" | "USDT";
|
|
1028
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1129
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1029
1130
|
}[];
|
|
1030
1131
|
swapAlternatives: {
|
|
1031
|
-
token: "ETH" | "BNB" | "
|
|
1032
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1132
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1133
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1033
1134
|
}[];
|
|
1034
1135
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1035
1136
|
environment: "live" | "test";
|
|
@@ -1056,7 +1157,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1056
1157
|
currency: string;
|
|
1057
1158
|
acceptedPayments: {
|
|
1058
1159
|
token: "USDC" | "USDT";
|
|
1059
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1160
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1060
1161
|
}[];
|
|
1061
1162
|
externalRef: string | null;
|
|
1062
1163
|
source: string | null;
|
|
@@ -1091,7 +1192,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1091
1192
|
}, z.ZodUnknown, "strip"> | null;
|
|
1092
1193
|
redirectUrl: string | null;
|
|
1093
1194
|
splitRecipients: {
|
|
1094
|
-
address:
|
|
1195
|
+
address: SplitAddress;
|
|
1095
1196
|
percent: number;
|
|
1096
1197
|
label?: string | undefined;
|
|
1097
1198
|
}[];
|
|
@@ -1108,11 +1209,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1108
1209
|
isOverpaid: boolean;
|
|
1109
1210
|
paidWith: {
|
|
1110
1211
|
token: "USDC" | "USDT";
|
|
1111
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1212
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1112
1213
|
}[];
|
|
1113
1214
|
swapAlternatives: {
|
|
1114
|
-
token: "ETH" | "BNB" | "
|
|
1115
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1215
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1216
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1116
1217
|
}[];
|
|
1117
1218
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1118
1219
|
environment: "live" | "test";
|
|
@@ -1139,7 +1240,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1139
1240
|
currency: string;
|
|
1140
1241
|
acceptedPayments: {
|
|
1141
1242
|
token: "USDC" | "USDT";
|
|
1142
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1243
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1143
1244
|
}[];
|
|
1144
1245
|
externalRef: string | null;
|
|
1145
1246
|
source: string | null;
|
|
@@ -1191,11 +1292,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1191
1292
|
isOverpaid: boolean;
|
|
1192
1293
|
paidWith: {
|
|
1193
1294
|
token: "USDC" | "USDT";
|
|
1194
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1295
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1195
1296
|
}[];
|
|
1196
1297
|
swapAlternatives: {
|
|
1197
|
-
token: "ETH" | "BNB" | "
|
|
1198
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1298
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1299
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1199
1300
|
}[];
|
|
1200
1301
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1201
1302
|
environment: "live" | "test";
|
|
@@ -1217,31 +1318,31 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1217
1318
|
type PaginatedCharges = z.infer<typeof PaginatedChargesSchema>;
|
|
1218
1319
|
declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
1219
1320
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
1220
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1321
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
1221
1322
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1323
|
token?: "USDC" | "USDT" | undefined;
|
|
1223
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1324
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1224
1325
|
}, {
|
|
1225
1326
|
token?: "USDC" | "USDT" | undefined;
|
|
1226
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1327
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1227
1328
|
}>;
|
|
1228
1329
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
1229
1330
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
1230
1331
|
|
|
1231
1332
|
declare const CheckChargeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1232
1333
|
txHash: z.ZodOptional<z.ZodString>;
|
|
1233
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1334
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
1234
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1235
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1336
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1236
1337
|
txHash?: string | undefined;
|
|
1237
1338
|
}, {
|
|
1238
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1339
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1239
1340
|
txHash?: string | undefined;
|
|
1240
1341
|
}>, {
|
|
1241
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1342
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1242
1343
|
txHash?: string | undefined;
|
|
1243
1344
|
}, {
|
|
1244
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1345
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
1245
1346
|
txHash?: string | undefined;
|
|
1246
1347
|
}>;
|
|
1247
1348
|
type CheckChargeRequest = z.infer<typeof CheckChargeRequestSchema>;
|
|
@@ -1260,33 +1361,33 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1260
1361
|
currency: z.ZodString;
|
|
1261
1362
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
1262
1363
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1263
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1364
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1264
1365
|
}, "strip", z.ZodTypeAny, {
|
|
1265
1366
|
token: "USDC" | "USDT";
|
|
1266
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1367
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1267
1368
|
}, {
|
|
1268
1369
|
token: "USDC" | "USDT";
|
|
1269
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1370
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1270
1371
|
}>, "many">;
|
|
1271
1372
|
paidWith: z.ZodArray<z.ZodObject<{
|
|
1272
1373
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1273
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1374
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1274
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1275
1376
|
token: "USDC" | "USDT";
|
|
1276
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1377
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1277
1378
|
}, {
|
|
1278
1379
|
token: "USDC" | "USDT";
|
|
1279
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1380
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1280
1381
|
}>, "many">;
|
|
1281
1382
|
swapAlternatives: z.ZodArray<z.ZodObject<{
|
|
1282
|
-
token: z.ZodEnum<["ETH", "BNB", "
|
|
1283
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1383
|
+
token: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
1384
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1284
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1285
|
-
token: "ETH" | "BNB" | "
|
|
1286
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1386
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1387
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1287
1388
|
}, {
|
|
1288
|
-
token: "ETH" | "BNB" | "
|
|
1289
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1389
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1390
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1290
1391
|
}>, "many">;
|
|
1291
1392
|
address: z.ZodString;
|
|
1292
1393
|
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
@@ -1384,11 +1485,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1384
1485
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
1385
1486
|
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
1386
1487
|
splitRecipients: z.ZodArray<z.ZodObject<{
|
|
1387
|
-
address: z.ZodString
|
|
1488
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
1388
1489
|
percent: z.ZodNumber;
|
|
1389
1490
|
label: z.ZodOptional<z.ZodString>;
|
|
1390
1491
|
}, "strip", z.ZodTypeAny, {
|
|
1391
|
-
address:
|
|
1492
|
+
address: SplitAddress;
|
|
1392
1493
|
percent: number;
|
|
1393
1494
|
label?: string | undefined;
|
|
1394
1495
|
}, {
|
|
@@ -1417,17 +1518,17 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1417
1518
|
} & {
|
|
1418
1519
|
transactionSender: z.ZodNullable<z.ZodString>;
|
|
1419
1520
|
confirmationProgress: z.ZodNullable<z.ZodObject<{
|
|
1420
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1521
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1421
1522
|
blocksSeen: z.ZodNumber;
|
|
1422
1523
|
blocksRequired: z.ZodNumber;
|
|
1423
1524
|
percent: z.ZodNumber;
|
|
1424
1525
|
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1526
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1426
1527
|
percent: number;
|
|
1427
1528
|
blocksSeen: number;
|
|
1428
1529
|
blocksRequired: number;
|
|
1429
1530
|
}, {
|
|
1430
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1531
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1431
1532
|
percent: number;
|
|
1432
1533
|
blocksSeen: number;
|
|
1433
1534
|
blocksRequired: number;
|
|
@@ -1440,7 +1541,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1440
1541
|
currency: string;
|
|
1441
1542
|
acceptedPayments: {
|
|
1442
1543
|
token: "USDC" | "USDT";
|
|
1443
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1544
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1444
1545
|
}[];
|
|
1445
1546
|
externalRef: string | null;
|
|
1446
1547
|
source: string | null;
|
|
@@ -1475,7 +1576,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1475
1576
|
}, z.ZodUnknown, "strip"> | null;
|
|
1476
1577
|
redirectUrl: string | null;
|
|
1477
1578
|
splitRecipients: {
|
|
1478
|
-
address:
|
|
1579
|
+
address: SplitAddress;
|
|
1479
1580
|
percent: number;
|
|
1480
1581
|
label?: string | undefined;
|
|
1481
1582
|
}[];
|
|
@@ -1492,11 +1593,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1492
1593
|
isOverpaid: boolean;
|
|
1493
1594
|
paidWith: {
|
|
1494
1595
|
token: "USDC" | "USDT";
|
|
1495
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1596
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1496
1597
|
}[];
|
|
1497
1598
|
swapAlternatives: {
|
|
1498
|
-
token: "ETH" | "BNB" | "
|
|
1499
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1599
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1600
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1500
1601
|
}[];
|
|
1501
1602
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1502
1603
|
environment: "live" | "test";
|
|
@@ -1510,7 +1611,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1510
1611
|
lastActivityAt: string;
|
|
1511
1612
|
transactionSender: string | null;
|
|
1512
1613
|
confirmationProgress: {
|
|
1513
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1614
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1514
1615
|
percent: number;
|
|
1515
1616
|
blocksSeen: number;
|
|
1516
1617
|
blocksRequired: number;
|
|
@@ -1526,7 +1627,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1526
1627
|
currency: string;
|
|
1527
1628
|
acceptedPayments: {
|
|
1528
1629
|
token: "USDC" | "USDT";
|
|
1529
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1630
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1530
1631
|
}[];
|
|
1531
1632
|
externalRef: string | null;
|
|
1532
1633
|
source: string | null;
|
|
@@ -1578,11 +1679,11 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1578
1679
|
isOverpaid: boolean;
|
|
1579
1680
|
paidWith: {
|
|
1580
1681
|
token: "USDC" | "USDT";
|
|
1581
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1682
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1582
1683
|
}[];
|
|
1583
1684
|
swapAlternatives: {
|
|
1584
|
-
token: "ETH" | "BNB" | "
|
|
1585
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1685
|
+
token: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
1686
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1586
1687
|
}[];
|
|
1587
1688
|
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
1588
1689
|
environment: "live" | "test";
|
|
@@ -1596,7 +1697,7 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1596
1697
|
lastActivityAt: string;
|
|
1597
1698
|
transactionSender: string | null;
|
|
1598
1699
|
confirmationProgress: {
|
|
1599
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1700
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1600
1701
|
percent: number;
|
|
1601
1702
|
blocksSeen: number;
|
|
1602
1703
|
blocksRequired: number;
|
|
@@ -1608,17 +1709,17 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1608
1709
|
type CheckChargeResponse = z.infer<typeof CheckChargeResponseSchema>;
|
|
1609
1710
|
|
|
1610
1711
|
declare const ConfirmationProgressSchema: z.ZodObject<{
|
|
1611
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1712
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1612
1713
|
blocksSeen: z.ZodNumber;
|
|
1613
1714
|
blocksRequired: z.ZodNumber;
|
|
1614
1715
|
percent: z.ZodNumber;
|
|
1615
1716
|
}, "strip", z.ZodTypeAny, {
|
|
1616
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1717
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1617
1718
|
percent: number;
|
|
1618
1719
|
blocksSeen: number;
|
|
1619
1720
|
blocksRequired: number;
|
|
1620
1721
|
}, {
|
|
1621
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1722
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1622
1723
|
percent: number;
|
|
1623
1724
|
blocksSeen: number;
|
|
1624
1725
|
blocksRequired: number;
|
|
@@ -1793,7 +1894,7 @@ declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
|
1793
1894
|
}>;
|
|
1794
1895
|
declare const PendingDistributionSchema: z.ZodObject<{
|
|
1795
1896
|
splitAddress: z.ZodString;
|
|
1796
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1897
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1797
1898
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1798
1899
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1799
1900
|
address: z.ZodString;
|
|
@@ -1811,7 +1912,7 @@ declare const PendingDistributionSchema: z.ZodObject<{
|
|
|
1811
1912
|
graceEndsAt: z.ZodString;
|
|
1812
1913
|
}, "strip", z.ZodTypeAny, {
|
|
1813
1914
|
token: "USDC" | "USDT";
|
|
1814
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1915
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1815
1916
|
splitAddress: string;
|
|
1816
1917
|
recipients: {
|
|
1817
1918
|
address: string;
|
|
@@ -1823,7 +1924,7 @@ declare const PendingDistributionSchema: z.ZodObject<{
|
|
|
1823
1924
|
graceEndsAt: string;
|
|
1824
1925
|
}, {
|
|
1825
1926
|
token: "USDC" | "USDT";
|
|
1826
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1927
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1827
1928
|
splitAddress: string;
|
|
1828
1929
|
recipients: {
|
|
1829
1930
|
address: string;
|
|
@@ -1838,7 +1939,7 @@ type PendingDistribution = z.infer<typeof PendingDistributionSchema>;
|
|
|
1838
1939
|
declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
1839
1940
|
data: z.ZodArray<z.ZodObject<{
|
|
1840
1941
|
splitAddress: z.ZodString;
|
|
1841
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1942
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1842
1943
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1843
1944
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1844
1945
|
address: z.ZodString;
|
|
@@ -1856,7 +1957,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1856
1957
|
graceEndsAt: z.ZodString;
|
|
1857
1958
|
}, "strip", z.ZodTypeAny, {
|
|
1858
1959
|
token: "USDC" | "USDT";
|
|
1859
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1960
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1860
1961
|
splitAddress: string;
|
|
1861
1962
|
recipients: {
|
|
1862
1963
|
address: string;
|
|
@@ -1868,7 +1969,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1868
1969
|
graceEndsAt: string;
|
|
1869
1970
|
}, {
|
|
1870
1971
|
token: "USDC" | "USDT";
|
|
1871
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1972
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1872
1973
|
splitAddress: string;
|
|
1873
1974
|
recipients: {
|
|
1874
1975
|
address: string;
|
|
@@ -1884,7 +1985,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1884
1985
|
}, "strip", z.ZodTypeAny, {
|
|
1885
1986
|
data: {
|
|
1886
1987
|
token: "USDC" | "USDT";
|
|
1887
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1988
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1888
1989
|
splitAddress: string;
|
|
1889
1990
|
recipients: {
|
|
1890
1991
|
address: string;
|
|
@@ -1900,7 +2001,7 @@ declare const PaginatedPendingDistributionsSchema: z.ZodObject<{
|
|
|
1900
2001
|
}, {
|
|
1901
2002
|
data: {
|
|
1902
2003
|
token: "USDC" | "USDT";
|
|
1903
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2004
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1904
2005
|
splitAddress: string;
|
|
1905
2006
|
recipients: {
|
|
1906
2007
|
address: string;
|
|
@@ -1927,7 +2028,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1927
2028
|
type: z.ZodLiteral<"distribution.available">;
|
|
1928
2029
|
distribution: z.ZodObject<{
|
|
1929
2030
|
splitAddress: z.ZodString;
|
|
1930
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
2031
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
1931
2032
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
1932
2033
|
recipients: z.ZodArray<z.ZodObject<{
|
|
1933
2034
|
address: z.ZodString;
|
|
@@ -1945,7 +2046,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1945
2046
|
graceEndsAt: z.ZodString;
|
|
1946
2047
|
}, "strip", z.ZodTypeAny, {
|
|
1947
2048
|
token: "USDC" | "USDT";
|
|
1948
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2049
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1949
2050
|
splitAddress: string;
|
|
1950
2051
|
recipients: {
|
|
1951
2052
|
address: string;
|
|
@@ -1957,7 +2058,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1957
2058
|
graceEndsAt: string;
|
|
1958
2059
|
}, {
|
|
1959
2060
|
token: "USDC" | "USDT";
|
|
1960
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2061
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1961
2062
|
splitAddress: string;
|
|
1962
2063
|
recipients: {
|
|
1963
2064
|
address: string;
|
|
@@ -1972,7 +2073,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1972
2073
|
type: "distribution.available";
|
|
1973
2074
|
distribution: {
|
|
1974
2075
|
token: "USDC" | "USDT";
|
|
1975
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2076
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1976
2077
|
splitAddress: string;
|
|
1977
2078
|
recipients: {
|
|
1978
2079
|
address: string;
|
|
@@ -1987,7 +2088,7 @@ declare const PendingDistributionEventSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1987
2088
|
type: "distribution.available";
|
|
1988
2089
|
distribution: {
|
|
1989
2090
|
token: "USDC" | "USDT";
|
|
1990
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
2091
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
1991
2092
|
splitAddress: string;
|
|
1992
2093
|
recipients: {
|
|
1993
2094
|
address: string;
|
|
@@ -2096,13 +2197,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2096
2197
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2097
2198
|
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef", "escrowReleaserAddress"]>;
|
|
2098
2199
|
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">]>;
|
|
2200
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2100
2201
|
}, "strip", z.ZodTypeAny, {
|
|
2101
|
-
value: string | number | boolean | (string | number)[];
|
|
2202
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2102
2203
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2103
2204
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2104
2205
|
}, {
|
|
2105
|
-
value: string | number | boolean | (string | number)[];
|
|
2206
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2106
2207
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2107
2208
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2108
2209
|
}>, "many">>;
|
|
@@ -2140,7 +2241,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2140
2241
|
alias?: string | undefined;
|
|
2141
2242
|
}[];
|
|
2142
2243
|
filters: {
|
|
2143
|
-
value: string | number | boolean | (string | number)[];
|
|
2244
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2144
2245
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2145
2246
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2146
2247
|
}[];
|
|
@@ -2171,7 +2272,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2171
2272
|
granularity: "day" | "week" | "month" | "year";
|
|
2172
2273
|
})[] | undefined;
|
|
2173
2274
|
filters?: {
|
|
2174
|
-
value: string | number | boolean | (string | number)[];
|
|
2275
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2175
2276
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2176
2277
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2177
2278
|
}[] | undefined;
|
|
@@ -2233,13 +2334,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2233
2334
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2234
2335
|
field: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
2235
2336
|
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">]>;
|
|
2337
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2237
2338
|
}, "strip", z.ZodTypeAny, {
|
|
2238
|
-
value: string | number | boolean | (string | number)[];
|
|
2339
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2239
2340
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2240
2341
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2241
2342
|
}, {
|
|
2242
|
-
value: string | number | boolean | (string | number)[];
|
|
2343
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2243
2344
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2244
2345
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2245
2346
|
}>, "many">>;
|
|
@@ -2277,7 +2378,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2277
2378
|
alias?: string | undefined;
|
|
2278
2379
|
}[];
|
|
2279
2380
|
filters: {
|
|
2280
|
-
value: string | number | boolean | (string | number)[];
|
|
2381
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2281
2382
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2282
2383
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2283
2384
|
}[];
|
|
@@ -2308,7 +2409,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2308
2409
|
granularity: "day" | "week" | "month" | "year";
|
|
2309
2410
|
})[] | undefined;
|
|
2310
2411
|
filters?: {
|
|
2311
|
-
value: string | number | boolean | (string | number)[];
|
|
2412
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2312
2413
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2313
2414
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2314
2415
|
}[] | undefined;
|
|
@@ -2370,13 +2471,13 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2370
2471
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2371
2472
|
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
2372
2473
|
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">]>;
|
|
2474
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
2374
2475
|
}, "strip", z.ZodTypeAny, {
|
|
2375
|
-
value: string | number | boolean | (string | number)[];
|
|
2476
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2376
2477
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2377
2478
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2378
2479
|
}, {
|
|
2379
|
-
value: string | number | boolean | (string | number)[];
|
|
2480
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2380
2481
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2381
2482
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2382
2483
|
}>, "many">>;
|
|
@@ -2414,7 +2515,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2414
2515
|
alias?: string | undefined;
|
|
2415
2516
|
}[];
|
|
2416
2517
|
filters: {
|
|
2417
|
-
value: string | number | boolean | (string | number)[];
|
|
2518
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2418
2519
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2419
2520
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2420
2521
|
}[];
|
|
@@ -2445,7 +2546,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2445
2546
|
granularity: "day" | "week" | "month" | "year";
|
|
2446
2547
|
})[] | undefined;
|
|
2447
2548
|
filters?: {
|
|
2448
|
-
value: string | number | boolean | (string | number)[];
|
|
2549
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2449
2550
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2450
2551
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2451
2552
|
}[] | undefined;
|
|
@@ -2476,7 +2577,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2476
2577
|
alias?: string | undefined;
|
|
2477
2578
|
}[];
|
|
2478
2579
|
filters: {
|
|
2479
|
-
value: string | number | boolean | (string | number)[];
|
|
2580
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2480
2581
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2481
2582
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2482
2583
|
}[];
|
|
@@ -2507,7 +2608,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2507
2608
|
alias?: string | undefined;
|
|
2508
2609
|
}[];
|
|
2509
2610
|
filters: {
|
|
2510
|
-
value: string | number | boolean | (string | number)[];
|
|
2611
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2511
2612
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2512
2613
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2513
2614
|
}[];
|
|
@@ -2538,7 +2639,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2538
2639
|
alias?: string | undefined;
|
|
2539
2640
|
}[];
|
|
2540
2641
|
filters: {
|
|
2541
|
-
value: string | number | boolean | (string | number)[];
|
|
2642
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2542
2643
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2543
2644
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2544
2645
|
}[];
|
|
@@ -2569,7 +2670,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2569
2670
|
granularity: "day" | "week" | "month" | "year";
|
|
2570
2671
|
})[] | undefined;
|
|
2571
2672
|
filters?: {
|
|
2572
|
-
value: string | number | boolean | (string | number)[];
|
|
2673
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2573
2674
|
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId" | "escrowReleaserAddress";
|
|
2574
2675
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2575
2676
|
}[] | undefined;
|
|
@@ -2600,7 +2701,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2600
2701
|
granularity: "day" | "week" | "month" | "year";
|
|
2601
2702
|
})[] | undefined;
|
|
2602
2703
|
filters?: {
|
|
2603
|
-
value: string | number | boolean | (string | number)[];
|
|
2704
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2604
2705
|
field: "token" | "network" | "source" | "causedTransition";
|
|
2605
2706
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2606
2707
|
}[] | undefined;
|
|
@@ -2631,7 +2732,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2631
2732
|
granularity: "day" | "week" | "month" | "year";
|
|
2632
2733
|
})[] | undefined;
|
|
2633
2734
|
filters?: {
|
|
2634
|
-
value: string | number | boolean | (string | number)[];
|
|
2735
|
+
value: string | number | boolean | (string | number)[] | null;
|
|
2635
2736
|
field: "status" | "token" | "network" | "distributorAddress";
|
|
2636
2737
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
2637
2738
|
}[] | undefined;
|
|
@@ -2945,10 +3046,10 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2945
3046
|
type PaginatedWebhookDeliveries = z.infer<typeof PaginatedWebhookDeliveriesSchema>;
|
|
2946
3047
|
|
|
2947
3048
|
declare const CreateRecipientSchema: z.ZodObject<{
|
|
2948
|
-
address: z.ZodString
|
|
3049
|
+
address: z.ZodEffects<z.ZodString, SplitAddress, string>;
|
|
2949
3050
|
label: z.ZodOptional<z.ZodString>;
|
|
2950
3051
|
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
address:
|
|
3052
|
+
address: SplitAddress;
|
|
2952
3053
|
label?: string | undefined;
|
|
2953
3054
|
}, {
|
|
2954
3055
|
address: string;
|
|
@@ -2979,6 +3080,55 @@ declare const RecipientSchema: z.ZodObject<{
|
|
|
2979
3080
|
payout: boolean;
|
|
2980
3081
|
}>;
|
|
2981
3082
|
type Recipient = z.infer<typeof RecipientSchema>;
|
|
3083
|
+
declare const PaginatedRecipientsSchema: z.ZodObject<{
|
|
3084
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3085
|
+
id: z.ZodString;
|
|
3086
|
+
environment: z.ZodEnum<["live", "test"]>;
|
|
3087
|
+
address: z.ZodString;
|
|
3088
|
+
label: z.ZodNullable<z.ZodString>;
|
|
3089
|
+
payout: z.ZodBoolean;
|
|
3090
|
+
createdAt: z.ZodString;
|
|
3091
|
+
}, "strip", z.ZodTypeAny, {
|
|
3092
|
+
address: string;
|
|
3093
|
+
label: string | null;
|
|
3094
|
+
id: string;
|
|
3095
|
+
environment: "live" | "test";
|
|
3096
|
+
createdAt: string;
|
|
3097
|
+
payout: boolean;
|
|
3098
|
+
}, {
|
|
3099
|
+
address: string;
|
|
3100
|
+
label: string | null;
|
|
3101
|
+
id: string;
|
|
3102
|
+
environment: "live" | "test";
|
|
3103
|
+
createdAt: string;
|
|
3104
|
+
payout: boolean;
|
|
3105
|
+
}>, "many">;
|
|
3106
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3107
|
+
hasMore: z.ZodBoolean;
|
|
3108
|
+
}, "strip", z.ZodTypeAny, {
|
|
3109
|
+
data: {
|
|
3110
|
+
address: string;
|
|
3111
|
+
label: string | null;
|
|
3112
|
+
id: string;
|
|
3113
|
+
environment: "live" | "test";
|
|
3114
|
+
createdAt: string;
|
|
3115
|
+
payout: boolean;
|
|
3116
|
+
}[];
|
|
3117
|
+
nextCursor: string | null;
|
|
3118
|
+
hasMore: boolean;
|
|
3119
|
+
}, {
|
|
3120
|
+
data: {
|
|
3121
|
+
address: string;
|
|
3122
|
+
label: string | null;
|
|
3123
|
+
id: string;
|
|
3124
|
+
environment: "live" | "test";
|
|
3125
|
+
createdAt: string;
|
|
3126
|
+
payout: boolean;
|
|
3127
|
+
}[];
|
|
3128
|
+
nextCursor: string | null;
|
|
3129
|
+
hasMore: boolean;
|
|
3130
|
+
}>;
|
|
3131
|
+
type PaginatedRecipients = z.infer<typeof PaginatedRecipientsSchema>;
|
|
2982
3132
|
declare const SetRecipientPayoutSchema: z.ZodObject<{
|
|
2983
3133
|
payout: z.ZodBoolean;
|
|
2984
3134
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2988,7 +3138,7 @@ declare const SetRecipientPayoutSchema: z.ZodObject<{
|
|
|
2988
3138
|
}>;
|
|
2989
3139
|
type SetRecipientPayoutInput = z.infer<typeof SetRecipientPayoutSchema>;
|
|
2990
3140
|
|
|
2991
|
-
declare const TransactionSourceSchema: z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox"]>;
|
|
3141
|
+
declare const TransactionSourceSchema: z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox", "tron_watcher"]>;
|
|
2992
3142
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2993
3143
|
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed", "transfer.reclaimed"]>;
|
|
2994
3144
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
@@ -2997,9 +3147,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2997
3147
|
at: z.ZodString;
|
|
2998
3148
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2999
3149
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
3000
|
-
source: z.ZodOptional<z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox"]>>;
|
|
3150
|
+
source: z.ZodOptional<z.ZodEnum<["contract_watcher", "reconciliation_job", "sandbox", "tron_watcher"]>>;
|
|
3001
3151
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
3002
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
3152
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>>;
|
|
3003
3153
|
causedTransition: z.ZodOptional<z.ZodBoolean>;
|
|
3004
3154
|
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
3155
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3008,9 +3158,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
3008
3158
|
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
3009
3159
|
at: string;
|
|
3010
3160
|
token?: "USDC" | "USDT" | undefined;
|
|
3011
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
3161
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
3012
3162
|
amount?: number | undefined;
|
|
3013
|
-
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | undefined;
|
|
3163
|
+
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | "tron_watcher" | undefined;
|
|
3014
3164
|
txHash?: string | undefined;
|
|
3015
3165
|
causedTransition?: boolean | undefined;
|
|
3016
3166
|
attempts?: number | undefined;
|
|
@@ -3020,9 +3170,9 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
3020
3170
|
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
3021
3171
|
at: string;
|
|
3022
3172
|
token?: "USDC" | "USDT" | undefined;
|
|
3023
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
3173
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc" | undefined;
|
|
3024
3174
|
amount?: number | undefined;
|
|
3025
|
-
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | undefined;
|
|
3175
|
+
source?: "contract_watcher" | "reconciliation_job" | "sandbox" | "tron_watcher" | undefined;
|
|
3026
3176
|
txHash?: string | undefined;
|
|
3027
3177
|
causedTransition?: boolean | undefined;
|
|
3028
3178
|
attempts?: number | undefined;
|
|
@@ -3073,48 +3223,48 @@ type SandboxTriggerInput = z.infer<typeof SandboxTriggerSchema>;
|
|
|
3073
3223
|
declare const CapabilitiesSchema: z.ZodObject<{
|
|
3074
3224
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
3075
3225
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
3076
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3226
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3077
3227
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3228
|
token: "USDC" | "USDT";
|
|
3079
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3229
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3080
3230
|
}, {
|
|
3081
3231
|
token: "USDC" | "USDT";
|
|
3082
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3232
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3083
3233
|
}>, "many">;
|
|
3084
3234
|
}, "strip", z.ZodTypeAny, {
|
|
3085
3235
|
acceptedPayments: {
|
|
3086
3236
|
token: "USDC" | "USDT";
|
|
3087
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3237
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3088
3238
|
}[];
|
|
3089
3239
|
}, {
|
|
3090
3240
|
acceptedPayments: {
|
|
3091
3241
|
token: "USDC" | "USDT";
|
|
3092
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3242
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3093
3243
|
}[];
|
|
3094
3244
|
}>;
|
|
3095
3245
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
3096
3246
|
|
|
3097
3247
|
declare const CreateSwapQuoteSchema: z.ZodObject<{
|
|
3098
|
-
inputToken: z.ZodEnum<["ETH", "BNB", "
|
|
3099
|
-
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3248
|
+
inputToken: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
3249
|
+
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3100
3250
|
takerAddress: z.ZodString;
|
|
3101
3251
|
}, "strip", z.ZodTypeAny, {
|
|
3102
|
-
inputToken: "ETH" | "BNB" | "
|
|
3103
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3252
|
+
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3253
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3104
3254
|
takerAddress: string;
|
|
3105
3255
|
}, {
|
|
3106
|
-
inputToken: "ETH" | "BNB" | "
|
|
3107
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3256
|
+
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3257
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3108
3258
|
takerAddress: string;
|
|
3109
3259
|
}>;
|
|
3110
3260
|
type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
|
|
3111
3261
|
declare const SwapQuoteSchema: z.ZodObject<{
|
|
3112
|
-
inputToken: z.ZodEnum<["ETH", "BNB", "
|
|
3113
|
-
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3262
|
+
inputToken: z.ZodEnum<["ETH", "BNB", "POL", "AVAX", "BTC", "LINK", "ARB", "OP", "CBETH"]>;
|
|
3263
|
+
inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3114
3264
|
inputAmount: z.ZodNumber;
|
|
3115
3265
|
inputAmountExact: z.ZodOptional<z.ZodString>;
|
|
3116
3266
|
outputToken: z.ZodEnum<["USDC", "USDT"]>;
|
|
3117
|
-
outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
3267
|
+
outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb", "tron", "arc"]>;
|
|
3118
3268
|
outputAmount: z.ZodNumber;
|
|
3119
3269
|
outputAmountExact: z.ZodOptional<z.ZodString>;
|
|
3120
3270
|
fees: z.ZodObject<{
|
|
@@ -3156,11 +3306,11 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3156
3306
|
}>>>;
|
|
3157
3307
|
}, "strip", z.ZodTypeAny, {
|
|
3158
3308
|
expiresAt: string;
|
|
3159
|
-
inputToken: "ETH" | "BNB" | "
|
|
3160
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3309
|
+
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3310
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3161
3311
|
inputAmount: number;
|
|
3162
3312
|
outputToken: "USDC" | "USDT";
|
|
3163
|
-
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3313
|
+
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3164
3314
|
outputAmount: number;
|
|
3165
3315
|
fees: {
|
|
3166
3316
|
klappayFee: number;
|
|
@@ -3180,11 +3330,11 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3180
3330
|
} | null | undefined;
|
|
3181
3331
|
}, {
|
|
3182
3332
|
expiresAt: string;
|
|
3183
|
-
inputToken: "ETH" | "BNB" | "
|
|
3184
|
-
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3333
|
+
inputToken: "ETH" | "BNB" | "POL" | "AVAX" | "BTC" | "LINK" | "ARB" | "OP" | "CBETH";
|
|
3334
|
+
inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3185
3335
|
inputAmount: number;
|
|
3186
3336
|
outputToken: "USDC" | "USDT";
|
|
3187
|
-
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
3337
|
+
outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | "tron" | "arc";
|
|
3188
3338
|
outputAmount: number;
|
|
3189
3339
|
fees: {
|
|
3190
3340
|
klappayFee: number;
|
|
@@ -3205,4 +3355,4 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3205
3355
|
}>;
|
|
3206
3356
|
type SwapQuote = z.infer<typeof SwapQuoteSchema>;
|
|
3207
3357
|
|
|
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 };
|
|
3358
|
+
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, 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 };
|