@klappay/types 3.7.0 → 3.8.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/index.d.mts +106 -11
- package/dist/index.d.ts +106 -11
- package/dist/index.js +237 -194
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +235 -194
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -69,6 +69,8 @@ declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confi
|
|
|
69
69
|
type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
|
|
70
70
|
declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
|
|
71
71
|
type SettlementStatus = z.infer<typeof SettlementStatusSchema>;
|
|
72
|
+
declare const ChargeFeePayerSchema: z.ZodEnum<["merchant", "payer"]>;
|
|
73
|
+
type ChargeFeePayer = z.infer<typeof ChargeFeePayerSchema>;
|
|
72
74
|
declare const CHARGE_EXPIRES_IN_MIN_SECONDS = 60;
|
|
73
75
|
declare const CHARGE_EXPIRES_IN_MAX_SECONDS = 3600;
|
|
74
76
|
declare const CHARGE_ACCEPTED_PAYMENTS_MAX = 14;
|
|
@@ -115,6 +117,7 @@ type SplitRecipientInput = z.infer<typeof SplitRecipientInputSchema>;
|
|
|
115
117
|
declare const CHARGE_AMOUNT_MAX = 999999999999;
|
|
116
118
|
declare const CreateChargeSchema: z.ZodObject<{
|
|
117
119
|
amount: z.ZodNumber;
|
|
120
|
+
feePayer: z.ZodDefault<z.ZodOptional<z.ZodEnum<["merchant", "payer"]>>>;
|
|
118
121
|
currency: z.ZodDefault<z.ZodLiteral<"USD">>;
|
|
119
122
|
acceptedPayments: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
120
123
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
@@ -252,6 +255,7 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
252
255
|
}>>;
|
|
253
256
|
}, "strip", z.ZodTypeAny, {
|
|
254
257
|
amount: number;
|
|
258
|
+
feePayer: "merchant" | "payer";
|
|
255
259
|
currency: "USD";
|
|
256
260
|
acceptedPayments: {
|
|
257
261
|
token: "USDC" | "USDT";
|
|
@@ -306,6 +310,7 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
306
310
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
307
311
|
}[];
|
|
308
312
|
expiresIn: number;
|
|
313
|
+
feePayer?: "merchant" | "payer" | undefined;
|
|
309
314
|
currency?: "USD" | undefined;
|
|
310
315
|
idempotencyKey?: string | undefined;
|
|
311
316
|
externalRef?: string | undefined;
|
|
@@ -354,6 +359,10 @@ type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
|
354
359
|
declare const ChargeSchema: z.ZodObject<{
|
|
355
360
|
id: z.ZodString;
|
|
356
361
|
amount: z.ZodNumber;
|
|
362
|
+
feePayer: z.ZodEnum<["merchant", "payer"]>;
|
|
363
|
+
feePercent: z.ZodNumber;
|
|
364
|
+
feeAmount: z.ZodNumber;
|
|
365
|
+
merchantAmount: z.ZodNumber;
|
|
357
366
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
358
367
|
isOverpaid: z.ZodBoolean;
|
|
359
368
|
currency: z.ZodString;
|
|
@@ -517,6 +526,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
517
526
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
518
527
|
address: string;
|
|
519
528
|
amount: number;
|
|
529
|
+
feePayer: "merchant" | "payer";
|
|
520
530
|
currency: string;
|
|
521
531
|
acceptedPayments: {
|
|
522
532
|
token: "USDC" | "USDT";
|
|
@@ -565,6 +575,9 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
565
575
|
refundedAt: string | null;
|
|
566
576
|
} | null;
|
|
567
577
|
id: string;
|
|
578
|
+
feePercent: number;
|
|
579
|
+
feeAmount: number;
|
|
580
|
+
merchantAmount: number;
|
|
568
581
|
amountReceived: number | null;
|
|
569
582
|
isOverpaid: boolean;
|
|
570
583
|
paidWith: {
|
|
@@ -589,6 +602,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
589
602
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
590
603
|
address: string;
|
|
591
604
|
amount: number;
|
|
605
|
+
feePayer: "merchant" | "payer";
|
|
592
606
|
currency: string;
|
|
593
607
|
acceptedPayments: {
|
|
594
608
|
token: "USDC" | "USDT";
|
|
@@ -637,6 +651,9 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
637
651
|
refundedAt: string | null;
|
|
638
652
|
} | null;
|
|
639
653
|
id: string;
|
|
654
|
+
feePercent: number;
|
|
655
|
+
feeAmount: number;
|
|
656
|
+
merchantAmount: number;
|
|
640
657
|
amountReceived: number | null;
|
|
641
658
|
isOverpaid: boolean;
|
|
642
659
|
paidWith: {
|
|
@@ -694,6 +711,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
694
711
|
data: z.ZodArray<z.ZodObject<{
|
|
695
712
|
id: z.ZodString;
|
|
696
713
|
amount: z.ZodNumber;
|
|
714
|
+
feePayer: z.ZodEnum<["merchant", "payer"]>;
|
|
715
|
+
feePercent: z.ZodNumber;
|
|
716
|
+
feeAmount: z.ZodNumber;
|
|
717
|
+
merchantAmount: z.ZodNumber;
|
|
697
718
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
698
719
|
isOverpaid: z.ZodBoolean;
|
|
699
720
|
currency: z.ZodString;
|
|
@@ -857,6 +878,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
857
878
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
858
879
|
address: string;
|
|
859
880
|
amount: number;
|
|
881
|
+
feePayer: "merchant" | "payer";
|
|
860
882
|
currency: string;
|
|
861
883
|
acceptedPayments: {
|
|
862
884
|
token: "USDC" | "USDT";
|
|
@@ -905,6 +927,9 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
905
927
|
refundedAt: string | null;
|
|
906
928
|
} | null;
|
|
907
929
|
id: string;
|
|
930
|
+
feePercent: number;
|
|
931
|
+
feeAmount: number;
|
|
932
|
+
merchantAmount: number;
|
|
908
933
|
amountReceived: number | null;
|
|
909
934
|
isOverpaid: boolean;
|
|
910
935
|
paidWith: {
|
|
@@ -929,6 +954,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
929
954
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
930
955
|
address: string;
|
|
931
956
|
amount: number;
|
|
957
|
+
feePayer: "merchant" | "payer";
|
|
932
958
|
currency: string;
|
|
933
959
|
acceptedPayments: {
|
|
934
960
|
token: "USDC" | "USDT";
|
|
@@ -977,6 +1003,9 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
977
1003
|
refundedAt: string | null;
|
|
978
1004
|
} | null;
|
|
979
1005
|
id: string;
|
|
1006
|
+
feePercent: number;
|
|
1007
|
+
feeAmount: number;
|
|
1008
|
+
merchantAmount: number;
|
|
980
1009
|
amountReceived: number | null;
|
|
981
1010
|
isOverpaid: boolean;
|
|
982
1011
|
paidWith: {
|
|
@@ -1005,6 +1034,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1005
1034
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
1006
1035
|
address: string;
|
|
1007
1036
|
amount: number;
|
|
1037
|
+
feePayer: "merchant" | "payer";
|
|
1008
1038
|
currency: string;
|
|
1009
1039
|
acceptedPayments: {
|
|
1010
1040
|
token: "USDC" | "USDT";
|
|
@@ -1053,6 +1083,9 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1053
1083
|
refundedAt: string | null;
|
|
1054
1084
|
} | null;
|
|
1055
1085
|
id: string;
|
|
1086
|
+
feePercent: number;
|
|
1087
|
+
feeAmount: number;
|
|
1088
|
+
merchantAmount: number;
|
|
1056
1089
|
amountReceived: number | null;
|
|
1057
1090
|
isOverpaid: boolean;
|
|
1058
1091
|
paidWith: {
|
|
@@ -1081,6 +1114,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1081
1114
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
1082
1115
|
address: string;
|
|
1083
1116
|
amount: number;
|
|
1117
|
+
feePayer: "merchant" | "payer";
|
|
1084
1118
|
currency: string;
|
|
1085
1119
|
acceptedPayments: {
|
|
1086
1120
|
token: "USDC" | "USDT";
|
|
@@ -1129,6 +1163,9 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1129
1163
|
refundedAt: string | null;
|
|
1130
1164
|
} | null;
|
|
1131
1165
|
id: string;
|
|
1166
|
+
feePercent: number;
|
|
1167
|
+
feeAmount: number;
|
|
1168
|
+
merchantAmount: number;
|
|
1132
1169
|
amountReceived: number | null;
|
|
1133
1170
|
isOverpaid: boolean;
|
|
1134
1171
|
paidWith: {
|
|
@@ -1187,6 +1224,10 @@ type CheckChargeRequest = z.infer<typeof CheckChargeRequestSchema>;
|
|
|
1187
1224
|
declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
1188
1225
|
id: z.ZodString;
|
|
1189
1226
|
amount: z.ZodNumber;
|
|
1227
|
+
feePayer: z.ZodEnum<["merchant", "payer"]>;
|
|
1228
|
+
feePercent: z.ZodNumber;
|
|
1229
|
+
feeAmount: z.ZodNumber;
|
|
1230
|
+
merchantAmount: z.ZodNumber;
|
|
1190
1231
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
1191
1232
|
isOverpaid: z.ZodBoolean;
|
|
1192
1233
|
currency: z.ZodString;
|
|
@@ -1348,10 +1389,27 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1348
1389
|
}>>;
|
|
1349
1390
|
} & {
|
|
1350
1391
|
transactionSender: z.ZodNullable<z.ZodString>;
|
|
1392
|
+
confirmationProgress: z.ZodNullable<z.ZodObject<{
|
|
1393
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1394
|
+
blocksSeen: z.ZodNumber;
|
|
1395
|
+
blocksRequired: z.ZodNumber;
|
|
1396
|
+
percent: z.ZodNumber;
|
|
1397
|
+
}, "strip", z.ZodTypeAny, {
|
|
1398
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1399
|
+
percent: number;
|
|
1400
|
+
blocksSeen: number;
|
|
1401
|
+
blocksRequired: number;
|
|
1402
|
+
}, {
|
|
1403
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1404
|
+
percent: number;
|
|
1405
|
+
blocksSeen: number;
|
|
1406
|
+
blocksRequired: number;
|
|
1407
|
+
}>>;
|
|
1351
1408
|
}, "strip", z.ZodTypeAny, {
|
|
1352
1409
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
1353
1410
|
address: string;
|
|
1354
1411
|
amount: number;
|
|
1412
|
+
feePayer: "merchant" | "payer";
|
|
1355
1413
|
currency: string;
|
|
1356
1414
|
acceptedPayments: {
|
|
1357
1415
|
token: "USDC" | "USDT";
|
|
@@ -1400,6 +1458,9 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1400
1458
|
refundedAt: string | null;
|
|
1401
1459
|
} | null;
|
|
1402
1460
|
id: string;
|
|
1461
|
+
feePercent: number;
|
|
1462
|
+
feeAmount: number;
|
|
1463
|
+
merchantAmount: number;
|
|
1403
1464
|
amountReceived: number | null;
|
|
1404
1465
|
isOverpaid: boolean;
|
|
1405
1466
|
paidWith: {
|
|
@@ -1421,10 +1482,17 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1421
1482
|
settledAt: string | null;
|
|
1422
1483
|
lastActivityAt: string;
|
|
1423
1484
|
transactionSender: string | null;
|
|
1485
|
+
confirmationProgress: {
|
|
1486
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1487
|
+
percent: number;
|
|
1488
|
+
blocksSeen: number;
|
|
1489
|
+
blocksRequired: number;
|
|
1490
|
+
} | null;
|
|
1424
1491
|
}, {
|
|
1425
1492
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
1426
1493
|
address: string;
|
|
1427
1494
|
amount: number;
|
|
1495
|
+
feePayer: "merchant" | "payer";
|
|
1428
1496
|
currency: string;
|
|
1429
1497
|
acceptedPayments: {
|
|
1430
1498
|
token: "USDC" | "USDT";
|
|
@@ -1473,6 +1541,9 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1473
1541
|
refundedAt: string | null;
|
|
1474
1542
|
} | null;
|
|
1475
1543
|
id: string;
|
|
1544
|
+
feePercent: number;
|
|
1545
|
+
feeAmount: number;
|
|
1546
|
+
merchantAmount: number;
|
|
1476
1547
|
amountReceived: number | null;
|
|
1477
1548
|
isOverpaid: boolean;
|
|
1478
1549
|
paidWith: {
|
|
@@ -1494,9 +1565,33 @@ declare const CheckChargeResponseSchema: z.ZodObject<{
|
|
|
1494
1565
|
settledAt: string | null;
|
|
1495
1566
|
lastActivityAt: string;
|
|
1496
1567
|
transactionSender: string | null;
|
|
1568
|
+
confirmationProgress: {
|
|
1569
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1570
|
+
percent: number;
|
|
1571
|
+
blocksSeen: number;
|
|
1572
|
+
blocksRequired: number;
|
|
1573
|
+
} | null;
|
|
1497
1574
|
}>;
|
|
1498
1575
|
type CheckChargeResponse = z.infer<typeof CheckChargeResponseSchema>;
|
|
1499
1576
|
|
|
1577
|
+
declare const ConfirmationProgressSchema: z.ZodObject<{
|
|
1578
|
+
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
1579
|
+
blocksSeen: z.ZodNumber;
|
|
1580
|
+
blocksRequired: z.ZodNumber;
|
|
1581
|
+
percent: z.ZodNumber;
|
|
1582
|
+
}, "strip", z.ZodTypeAny, {
|
|
1583
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1584
|
+
percent: number;
|
|
1585
|
+
blocksSeen: number;
|
|
1586
|
+
blocksRequired: number;
|
|
1587
|
+
}, {
|
|
1588
|
+
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
1589
|
+
percent: number;
|
|
1590
|
+
blocksSeen: number;
|
|
1591
|
+
blocksRequired: number;
|
|
1592
|
+
}>;
|
|
1593
|
+
type ConfirmationProgress = z.infer<typeof ConfirmationProgressSchema>;
|
|
1594
|
+
|
|
1500
1595
|
declare const EscrowConfigSchema: z.ZodObject<{
|
|
1501
1596
|
releaserAddress: z.ZodOptional<z.ZodString>;
|
|
1502
1597
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1958,11 +2053,11 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1958
2053
|
alias: z.ZodOptional<z.ZodString>;
|
|
1959
2054
|
}, "strip", z.ZodTypeAny, {
|
|
1960
2055
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1961
|
-
field?: "amount" | "
|
|
2056
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
1962
2057
|
alias?: string | undefined;
|
|
1963
2058
|
}, {
|
|
1964
2059
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
1965
|
-
field?: "amount" | "
|
|
2060
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
1966
2061
|
alias?: string | undefined;
|
|
1967
2062
|
}>, "many">;
|
|
1968
2063
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -2008,7 +2103,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2008
2103
|
})[];
|
|
2009
2104
|
metrics: {
|
|
2010
2105
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
2011
|
-
field?: "amount" | "
|
|
2106
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
2012
2107
|
alias?: string | undefined;
|
|
2013
2108
|
}[];
|
|
2014
2109
|
filters: {
|
|
@@ -2030,7 +2125,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2030
2125
|
};
|
|
2031
2126
|
metrics: {
|
|
2032
2127
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
2033
|
-
field?: "amount" | "
|
|
2128
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
2034
2129
|
alias?: string | undefined;
|
|
2035
2130
|
}[];
|
|
2036
2131
|
limit?: number | undefined;
|
|
@@ -2344,7 +2439,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2344
2439
|
})[];
|
|
2345
2440
|
metrics: {
|
|
2346
2441
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
2347
|
-
field?: "amount" | "
|
|
2442
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
2348
2443
|
alias?: string | undefined;
|
|
2349
2444
|
}[];
|
|
2350
2445
|
filters: {
|
|
@@ -2428,7 +2523,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
2428
2523
|
};
|
|
2429
2524
|
metrics: {
|
|
2430
2525
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
2431
|
-
field?: "amount" | "
|
|
2526
|
+
field?: "amount" | "feePercent" | "amountReceived" | "escrowFeePercent" | undefined;
|
|
2432
2527
|
alias?: string | undefined;
|
|
2433
2528
|
}[];
|
|
2434
2529
|
limit?: number | undefined;
|
|
@@ -2862,10 +2957,10 @@ type SetRecipientPayoutInput = z.infer<typeof SetRecipientPayoutSchema>;
|
|
|
2862
2957
|
|
|
2863
2958
|
declare const TransactionSourceSchema: z.ZodEnum<["moralis_webhook", "reconciliation_job", "sandbox"]>;
|
|
2864
2959
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2865
|
-
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2960
|
+
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed", "transfer.reclaimed"]>;
|
|
2866
2961
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
2867
2962
|
declare const TimelineEventSchema: z.ZodObject<{
|
|
2868
|
-
type: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2963
|
+
type: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed", "transfer.reclaimed"]>;
|
|
2869
2964
|
at: z.ZodString;
|
|
2870
2965
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2871
2966
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2877,7 +2972,7 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2877
2972
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2878
2973
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2879
2974
|
}, "strip", z.ZodTypeAny, {
|
|
2880
|
-
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2975
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
2881
2976
|
at: string;
|
|
2882
2977
|
token?: "USDC" | "USDT" | undefined;
|
|
2883
2978
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2889,7 +2984,7 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2889
2984
|
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "charge.escrow_released" | "charge.escrow_refunded" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | undefined;
|
|
2890
2985
|
responseCode?: number | null | undefined;
|
|
2891
2986
|
}, {
|
|
2892
|
-
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2987
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed" | "transfer.reclaimed";
|
|
2893
2988
|
at: string;
|
|
2894
2989
|
token?: "USDC" | "USDT" | undefined;
|
|
2895
2990
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -3061,4 +3156,4 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
3061
3156
|
}>;
|
|
3062
3157
|
type SwapQuote = z.infer<typeof SwapQuoteSchema>;
|
|
3063
3158
|
|
|
3064
|
-
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, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CheckChargeRequest, CheckChargeRequestSchema, type CheckChargeResponse, CheckChargeResponseSchema, type CheckoutProduct, CheckoutProductSchema, 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 };
|
|
3159
|
+
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 };
|