@klappay/types 3.1.1 → 3.3.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/README.md +1 -1
- package/dist/index.d.mts +93 -1
- package/dist/index.d.ts +93 -1
- package/dist/index.js +280 -239
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +277 -239
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ for feeding an agent or MCP server.
|
|
|
68
68
|
| Doc | Covers |
|
|
69
69
|
|---|---|
|
|
70
70
|
| [Getting started](https://api.klappay.com/types/getting-started) | Install, what's in this package, typing vs. runtime validation |
|
|
71
|
-
| [Charges](https://api.klappay.com/types/charges) | `Charge`, `CreateChargeInput`, `AcceptedPayment`, `Capabilities` (`GET /v1/networks`), listing/pagination, `TimelineEvent` |
|
|
71
|
+
| [Charges](https://api.klappay.com/types/charges) | `Charge`, `CreateChargeInput`, `AcceptedPayment`, `Capabilities` (`GET /v1/networks`), listing/pagination, `TimelineEvent`, `CheckChargeRequestSchema` (on-demand check), `EscrowConfigSchema`/`ReleaseEscrowRequestSchema` (escrow, not yet usable) |
|
|
72
72
|
| [Webhooks](https://api.klappay.com/types/webhooks) | Every `WebhookEventType`, categories, `Webhook`, `WebhookPayload`, `TypedWebhookPayload` |
|
|
73
73
|
| [Sandbox](https://api.klappay.com/types/sandbox) | `SandboxTriggerInput`, `TriggerableChargeEvent` |
|
|
74
74
|
| [Distributions](https://api.klappay.com/types/distributions) | `PendingDistribution`, `PendingDistributionEvent` — the 0xSplits keeper feed |
|
package/dist/index.d.mts
CHANGED
|
@@ -243,6 +243,13 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
243
243
|
recipientId: string;
|
|
244
244
|
label?: string | undefined;
|
|
245
245
|
}[]>>;
|
|
246
|
+
escrow: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
releaserAddress: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
releaserAddress?: string | undefined;
|
|
250
|
+
}, {
|
|
251
|
+
releaserAddress?: string | undefined;
|
|
252
|
+
}>>;
|
|
246
253
|
}, "strip", z.ZodTypeAny, {
|
|
247
254
|
amount: number;
|
|
248
255
|
currency: "USD";
|
|
@@ -289,6 +296,9 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
289
296
|
recipientId: string;
|
|
290
297
|
label?: string | undefined;
|
|
291
298
|
}[] | undefined;
|
|
299
|
+
escrow?: {
|
|
300
|
+
releaserAddress?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
292
302
|
}, {
|
|
293
303
|
amount: number;
|
|
294
304
|
acceptedPayments: {
|
|
@@ -335,6 +345,9 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
335
345
|
recipientId: string;
|
|
336
346
|
label?: string | undefined;
|
|
337
347
|
}[] | undefined;
|
|
348
|
+
escrow?: {
|
|
349
|
+
releaserAddress?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
338
351
|
}>;
|
|
339
352
|
type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
|
|
340
353
|
type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
@@ -487,6 +500,16 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
487
500
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
488
501
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
489
502
|
lastActivityAt: z.ZodString;
|
|
503
|
+
escrow: z.ZodNullable<z.ZodObject<{
|
|
504
|
+
releaserAddress: z.ZodString;
|
|
505
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
506
|
+
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
releaserAddress: string;
|
|
508
|
+
releasedAt: string | null;
|
|
509
|
+
}, {
|
|
510
|
+
releaserAddress: string;
|
|
511
|
+
releasedAt: string | null;
|
|
512
|
+
}>>;
|
|
490
513
|
}, "strip", z.ZodTypeAny, {
|
|
491
514
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
492
515
|
address: string;
|
|
@@ -533,6 +556,10 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
533
556
|
percent: number;
|
|
534
557
|
label?: string | undefined;
|
|
535
558
|
}[];
|
|
559
|
+
escrow: {
|
|
560
|
+
releaserAddress: string;
|
|
561
|
+
releasedAt: string | null;
|
|
562
|
+
} | null;
|
|
536
563
|
id: string;
|
|
537
564
|
amountReceived: number | null;
|
|
538
565
|
isOverpaid: boolean;
|
|
@@ -600,6 +627,10 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
600
627
|
percent: number;
|
|
601
628
|
label?: string | undefined;
|
|
602
629
|
}[];
|
|
630
|
+
escrow: {
|
|
631
|
+
releaserAddress: string;
|
|
632
|
+
releasedAt: string | null;
|
|
633
|
+
} | null;
|
|
603
634
|
id: string;
|
|
604
635
|
amountReceived: number | null;
|
|
605
636
|
isOverpaid: boolean;
|
|
@@ -804,6 +835,16 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
804
835
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
805
836
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
806
837
|
lastActivityAt: z.ZodString;
|
|
838
|
+
escrow: z.ZodNullable<z.ZodObject<{
|
|
839
|
+
releaserAddress: z.ZodString;
|
|
840
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
releaserAddress: string;
|
|
843
|
+
releasedAt: string | null;
|
|
844
|
+
}, {
|
|
845
|
+
releaserAddress: string;
|
|
846
|
+
releasedAt: string | null;
|
|
847
|
+
}>>;
|
|
807
848
|
}, "strip", z.ZodTypeAny, {
|
|
808
849
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
809
850
|
address: string;
|
|
@@ -850,6 +891,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
850
891
|
percent: number;
|
|
851
892
|
label?: string | undefined;
|
|
852
893
|
}[];
|
|
894
|
+
escrow: {
|
|
895
|
+
releaserAddress: string;
|
|
896
|
+
releasedAt: string | null;
|
|
897
|
+
} | null;
|
|
853
898
|
id: string;
|
|
854
899
|
amountReceived: number | null;
|
|
855
900
|
isOverpaid: boolean;
|
|
@@ -917,6 +962,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
917
962
|
percent: number;
|
|
918
963
|
label?: string | undefined;
|
|
919
964
|
}[];
|
|
965
|
+
escrow: {
|
|
966
|
+
releaserAddress: string;
|
|
967
|
+
releasedAt: string | null;
|
|
968
|
+
} | null;
|
|
920
969
|
id: string;
|
|
921
970
|
amountReceived: number | null;
|
|
922
971
|
isOverpaid: boolean;
|
|
@@ -988,6 +1037,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
988
1037
|
percent: number;
|
|
989
1038
|
label?: string | undefined;
|
|
990
1039
|
}[];
|
|
1040
|
+
escrow: {
|
|
1041
|
+
releaserAddress: string;
|
|
1042
|
+
releasedAt: string | null;
|
|
1043
|
+
} | null;
|
|
991
1044
|
id: string;
|
|
992
1045
|
amountReceived: number | null;
|
|
993
1046
|
isOverpaid: boolean;
|
|
@@ -1059,6 +1112,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1059
1112
|
percent: number;
|
|
1060
1113
|
label?: string | undefined;
|
|
1061
1114
|
}[];
|
|
1115
|
+
escrow: {
|
|
1116
|
+
releaserAddress: string;
|
|
1117
|
+
releasedAt: string | null;
|
|
1118
|
+
} | null;
|
|
1062
1119
|
id: string;
|
|
1063
1120
|
amountReceived: number | null;
|
|
1064
1121
|
isOverpaid: boolean;
|
|
@@ -1098,6 +1155,41 @@ declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
|
1098
1155
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
1099
1156
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
1100
1157
|
|
|
1158
|
+
declare const CheckChargeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1159
|
+
txHash: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1161
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1163
|
+
txHash?: string | undefined;
|
|
1164
|
+
}, {
|
|
1165
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1166
|
+
txHash?: string | undefined;
|
|
1167
|
+
}>, {
|
|
1168
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1169
|
+
txHash?: string | undefined;
|
|
1170
|
+
}, {
|
|
1171
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1172
|
+
txHash?: string | undefined;
|
|
1173
|
+
}>;
|
|
1174
|
+
type CheckChargeRequest = z.infer<typeof CheckChargeRequestSchema>;
|
|
1175
|
+
|
|
1176
|
+
declare const EscrowConfigSchema: z.ZodObject<{
|
|
1177
|
+
releaserAddress: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
releaserAddress?: string | undefined;
|
|
1180
|
+
}, {
|
|
1181
|
+
releaserAddress?: string | undefined;
|
|
1182
|
+
}>;
|
|
1183
|
+
type EscrowConfig = z.infer<typeof EscrowConfigSchema>;
|
|
1184
|
+
declare const ReleaseEscrowRequestSchema: z.ZodObject<{
|
|
1185
|
+
signature: z.ZodString;
|
|
1186
|
+
}, "strip", z.ZodTypeAny, {
|
|
1187
|
+
signature: string;
|
|
1188
|
+
}, {
|
|
1189
|
+
signature: string;
|
|
1190
|
+
}>;
|
|
1191
|
+
type ReleaseEscrowRequest = z.infer<typeof ReleaseEscrowRequestSchema>;
|
|
1192
|
+
|
|
1101
1193
|
declare const CHECKOUT_PRODUCTS_MAX = 20;
|
|
1102
1194
|
declare const CheckoutProductSchema: z.ZodObject<{
|
|
1103
1195
|
name: z.ZodString;
|
|
@@ -2635,4 +2727,4 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
2635
2727
|
}>;
|
|
2636
2728
|
type SwapQuote = z.infer<typeof SwapQuoteSchema>;
|
|
2637
2729
|
|
|
2638
|
-
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 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 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 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 };
|
|
2730
|
+
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 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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -243,6 +243,13 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
243
243
|
recipientId: string;
|
|
244
244
|
label?: string | undefined;
|
|
245
245
|
}[]>>;
|
|
246
|
+
escrow: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
releaserAddress: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
releaserAddress?: string | undefined;
|
|
250
|
+
}, {
|
|
251
|
+
releaserAddress?: string | undefined;
|
|
252
|
+
}>>;
|
|
246
253
|
}, "strip", z.ZodTypeAny, {
|
|
247
254
|
amount: number;
|
|
248
255
|
currency: "USD";
|
|
@@ -289,6 +296,9 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
289
296
|
recipientId: string;
|
|
290
297
|
label?: string | undefined;
|
|
291
298
|
}[] | undefined;
|
|
299
|
+
escrow?: {
|
|
300
|
+
releaserAddress?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
292
302
|
}, {
|
|
293
303
|
amount: number;
|
|
294
304
|
acceptedPayments: {
|
|
@@ -335,6 +345,9 @@ declare const CreateChargeSchema: z.ZodObject<{
|
|
|
335
345
|
recipientId: string;
|
|
336
346
|
label?: string | undefined;
|
|
337
347
|
}[] | undefined;
|
|
348
|
+
escrow?: {
|
|
349
|
+
releaserAddress?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
338
351
|
}>;
|
|
339
352
|
type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
|
|
340
353
|
type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
@@ -487,6 +500,16 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
487
500
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
488
501
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
489
502
|
lastActivityAt: z.ZodString;
|
|
503
|
+
escrow: z.ZodNullable<z.ZodObject<{
|
|
504
|
+
releaserAddress: z.ZodString;
|
|
505
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
506
|
+
}, "strip", z.ZodTypeAny, {
|
|
507
|
+
releaserAddress: string;
|
|
508
|
+
releasedAt: string | null;
|
|
509
|
+
}, {
|
|
510
|
+
releaserAddress: string;
|
|
511
|
+
releasedAt: string | null;
|
|
512
|
+
}>>;
|
|
490
513
|
}, "strip", z.ZodTypeAny, {
|
|
491
514
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
492
515
|
address: string;
|
|
@@ -533,6 +556,10 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
533
556
|
percent: number;
|
|
534
557
|
label?: string | undefined;
|
|
535
558
|
}[];
|
|
559
|
+
escrow: {
|
|
560
|
+
releaserAddress: string;
|
|
561
|
+
releasedAt: string | null;
|
|
562
|
+
} | null;
|
|
536
563
|
id: string;
|
|
537
564
|
amountReceived: number | null;
|
|
538
565
|
isOverpaid: boolean;
|
|
@@ -600,6 +627,10 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
600
627
|
percent: number;
|
|
601
628
|
label?: string | undefined;
|
|
602
629
|
}[];
|
|
630
|
+
escrow: {
|
|
631
|
+
releaserAddress: string;
|
|
632
|
+
releasedAt: string | null;
|
|
633
|
+
} | null;
|
|
603
634
|
id: string;
|
|
604
635
|
amountReceived: number | null;
|
|
605
636
|
isOverpaid: boolean;
|
|
@@ -804,6 +835,16 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
804
835
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
805
836
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
806
837
|
lastActivityAt: z.ZodString;
|
|
838
|
+
escrow: z.ZodNullable<z.ZodObject<{
|
|
839
|
+
releaserAddress: z.ZodString;
|
|
840
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
releaserAddress: string;
|
|
843
|
+
releasedAt: string | null;
|
|
844
|
+
}, {
|
|
845
|
+
releaserAddress: string;
|
|
846
|
+
releasedAt: string | null;
|
|
847
|
+
}>>;
|
|
807
848
|
}, "strip", z.ZodTypeAny, {
|
|
808
849
|
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
809
850
|
address: string;
|
|
@@ -850,6 +891,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
850
891
|
percent: number;
|
|
851
892
|
label?: string | undefined;
|
|
852
893
|
}[];
|
|
894
|
+
escrow: {
|
|
895
|
+
releaserAddress: string;
|
|
896
|
+
releasedAt: string | null;
|
|
897
|
+
} | null;
|
|
853
898
|
id: string;
|
|
854
899
|
amountReceived: number | null;
|
|
855
900
|
isOverpaid: boolean;
|
|
@@ -917,6 +962,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
917
962
|
percent: number;
|
|
918
963
|
label?: string | undefined;
|
|
919
964
|
}[];
|
|
965
|
+
escrow: {
|
|
966
|
+
releaserAddress: string;
|
|
967
|
+
releasedAt: string | null;
|
|
968
|
+
} | null;
|
|
920
969
|
id: string;
|
|
921
970
|
amountReceived: number | null;
|
|
922
971
|
isOverpaid: boolean;
|
|
@@ -988,6 +1037,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
988
1037
|
percent: number;
|
|
989
1038
|
label?: string | undefined;
|
|
990
1039
|
}[];
|
|
1040
|
+
escrow: {
|
|
1041
|
+
releaserAddress: string;
|
|
1042
|
+
releasedAt: string | null;
|
|
1043
|
+
} | null;
|
|
991
1044
|
id: string;
|
|
992
1045
|
amountReceived: number | null;
|
|
993
1046
|
isOverpaid: boolean;
|
|
@@ -1059,6 +1112,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
1059
1112
|
percent: number;
|
|
1060
1113
|
label?: string | undefined;
|
|
1061
1114
|
}[];
|
|
1115
|
+
escrow: {
|
|
1116
|
+
releaserAddress: string;
|
|
1117
|
+
releasedAt: string | null;
|
|
1118
|
+
} | null;
|
|
1062
1119
|
id: string;
|
|
1063
1120
|
amountReceived: number | null;
|
|
1064
1121
|
isOverpaid: boolean;
|
|
@@ -1098,6 +1155,41 @@ declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
|
1098
1155
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
1099
1156
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
1100
1157
|
|
|
1158
|
+
declare const CheckChargeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1159
|
+
txHash: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
1161
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1163
|
+
txHash?: string | undefined;
|
|
1164
|
+
}, {
|
|
1165
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1166
|
+
txHash?: string | undefined;
|
|
1167
|
+
}>, {
|
|
1168
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1169
|
+
txHash?: string | undefined;
|
|
1170
|
+
}, {
|
|
1171
|
+
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
1172
|
+
txHash?: string | undefined;
|
|
1173
|
+
}>;
|
|
1174
|
+
type CheckChargeRequest = z.infer<typeof CheckChargeRequestSchema>;
|
|
1175
|
+
|
|
1176
|
+
declare const EscrowConfigSchema: z.ZodObject<{
|
|
1177
|
+
releaserAddress: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
releaserAddress?: string | undefined;
|
|
1180
|
+
}, {
|
|
1181
|
+
releaserAddress?: string | undefined;
|
|
1182
|
+
}>;
|
|
1183
|
+
type EscrowConfig = z.infer<typeof EscrowConfigSchema>;
|
|
1184
|
+
declare const ReleaseEscrowRequestSchema: z.ZodObject<{
|
|
1185
|
+
signature: z.ZodString;
|
|
1186
|
+
}, "strip", z.ZodTypeAny, {
|
|
1187
|
+
signature: string;
|
|
1188
|
+
}, {
|
|
1189
|
+
signature: string;
|
|
1190
|
+
}>;
|
|
1191
|
+
type ReleaseEscrowRequest = z.infer<typeof ReleaseEscrowRequestSchema>;
|
|
1192
|
+
|
|
1101
1193
|
declare const CHECKOUT_PRODUCTS_MAX = 20;
|
|
1102
1194
|
declare const CheckoutProductSchema: z.ZodObject<{
|
|
1103
1195
|
name: z.ZodString;
|
|
@@ -2635,4 +2727,4 @@ declare const SwapQuoteSchema: z.ZodObject<{
|
|
|
2635
2727
|
}>;
|
|
2636
2728
|
type SwapQuote = z.infer<typeof SwapQuoteSchema>;
|
|
2637
2729
|
|
|
2638
|
-
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 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 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 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 };
|
|
2730
|
+
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 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 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 };
|