@klappay/types 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -81,6 +81,12 @@ type Token = z.infer<typeof TokenSchema>;
81
81
  declare const TOKEN_DECIMALS = 6;
82
82
  declare const TOKEN_ADDRESSES: Record<Token, Partial<Record<Network, Partial<Record<Environment, `0x${string}`>>>>>;
83
83
 
84
+ declare const AltTokenSchema: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
85
+ type AltToken = z.infer<typeof AltTokenSchema>;
86
+ declare const ALT_TOKEN_DECIMALS: Record<AltToken, number>;
87
+ declare const ALT_TOKEN_ADDRESSES: Record<Network, Partial<Record<AltToken, 'native' | `0x${string}`>>>;
88
+ declare function listAltTokensForNetworks(networks: readonly Network[]): AltToken[];
89
+
84
90
  declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
85
91
  type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
86
92
  declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
@@ -380,6 +386,7 @@ declare const ChargeSchema: z.ZodObject<{
380
386
  token: "USDC" | "USDT";
381
387
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
382
388
  }>, "many">;
389
+ swapAlternatives: z.ZodArray<z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>, "many">;
383
390
  address: z.ZodString;
384
391
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
385
392
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -546,6 +553,7 @@ declare const ChargeSchema: z.ZodObject<{
546
553
  token: "USDC" | "USDT";
547
554
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
548
555
  }[];
556
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
549
557
  settlementStatus: "pending" | "completed" | "failed" | null;
550
558
  environment: "live" | "test";
551
559
  apiKeyId: string | null;
@@ -609,6 +617,7 @@ declare const ChargeSchema: z.ZodObject<{
609
617
  token: "USDC" | "USDT";
610
618
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
611
619
  }[];
620
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
612
621
  settlementStatus: "pending" | "completed" | "failed" | null;
613
622
  environment: "live" | "test";
614
623
  apiKeyId: string | null;
@@ -679,6 +688,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
679
688
  token: "USDC" | "USDT";
680
689
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
681
690
  }>, "many">;
691
+ swapAlternatives: z.ZodArray<z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>, "many">;
682
692
  address: z.ZodString;
683
693
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
684
694
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -845,6 +855,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
845
855
  token: "USDC" | "USDT";
846
856
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
847
857
  }[];
858
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
848
859
  settlementStatus: "pending" | "completed" | "failed" | null;
849
860
  environment: "live" | "test";
850
861
  apiKeyId: string | null;
@@ -908,6 +919,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
908
919
  token: "USDC" | "USDT";
909
920
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
910
921
  }[];
922
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
911
923
  settlementStatus: "pending" | "completed" | "failed" | null;
912
924
  environment: "live" | "test";
913
925
  apiKeyId: string | null;
@@ -975,6 +987,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
975
987
  token: "USDC" | "USDT";
976
988
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
977
989
  }[];
990
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
978
991
  settlementStatus: "pending" | "completed" | "failed" | null;
979
992
  environment: "live" | "test";
980
993
  apiKeyId: string | null;
@@ -1042,6 +1055,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
1042
1055
  token: "USDC" | "USDT";
1043
1056
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1044
1057
  }[];
1058
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
1045
1059
  settlementStatus: "pending" | "completed" | "failed" | null;
1046
1060
  environment: "live" | "test";
1047
1061
  apiKeyId: string | null;
@@ -2512,4 +2526,99 @@ declare const CapabilitiesSchema: z.ZodObject<{
2512
2526
  }>;
2513
2527
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
2514
2528
 
2515
- 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 CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, 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, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, 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, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, 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 };
2529
+ declare const CreateSwapQuoteSchema: z.ZodObject<{
2530
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2531
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2532
+ takerAddress: z.ZodString;
2533
+ }, "strip", z.ZodTypeAny, {
2534
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2535
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2536
+ takerAddress: string;
2537
+ }, {
2538
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2539
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2540
+ takerAddress: string;
2541
+ }>;
2542
+ type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
2543
+ declare const SwapQuoteSchema: z.ZodObject<{
2544
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2545
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2546
+ inputAmount: z.ZodNumber;
2547
+ outputToken: z.ZodEnum<["USDC", "USDT"]>;
2548
+ outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2549
+ outputAmount: z.ZodNumber;
2550
+ fees: z.ZodObject<{
2551
+ klappayFee: z.ZodNumber;
2552
+ zeroExFee: z.ZodNullable<z.ZodNumber>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ klappayFee: number;
2555
+ zeroExFee: number | null;
2556
+ }, {
2557
+ klappayFee: number;
2558
+ zeroExFee: number | null;
2559
+ }>;
2560
+ expiresAt: z.ZodString;
2561
+ transaction: z.ZodObject<{
2562
+ to: z.ZodString;
2563
+ data: z.ZodString;
2564
+ value: z.ZodString;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ value: string;
2567
+ data: string;
2568
+ to: string;
2569
+ }, {
2570
+ value: string;
2571
+ data: string;
2572
+ to: string;
2573
+ }>;
2574
+ permit2: z.ZodOptional<z.ZodObject<{
2575
+ eip712: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ eip712: Record<string, unknown>;
2578
+ }, {
2579
+ eip712: Record<string, unknown>;
2580
+ }>>;
2581
+ }, "strip", z.ZodTypeAny, {
2582
+ expiresAt: string;
2583
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2584
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2585
+ inputAmount: number;
2586
+ outputToken: "USDC" | "USDT";
2587
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2588
+ outputAmount: number;
2589
+ fees: {
2590
+ klappayFee: number;
2591
+ zeroExFee: number | null;
2592
+ };
2593
+ transaction: {
2594
+ value: string;
2595
+ data: string;
2596
+ to: string;
2597
+ };
2598
+ permit2?: {
2599
+ eip712: Record<string, unknown>;
2600
+ } | undefined;
2601
+ }, {
2602
+ expiresAt: string;
2603
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2604
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2605
+ inputAmount: number;
2606
+ outputToken: "USDC" | "USDT";
2607
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2608
+ outputAmount: number;
2609
+ fees: {
2610
+ klappayFee: number;
2611
+ zeroExFee: number | null;
2612
+ };
2613
+ transaction: {
2614
+ value: string;
2615
+ data: string;
2616
+ to: string;
2617
+ };
2618
+ permit2?: {
2619
+ eip712: Record<string, unknown>;
2620
+ } | undefined;
2621
+ }>;
2622
+ type SwapQuote = z.infer<typeof SwapQuoteSchema>;
2623
+
2624
+ export { ALT_TOKEN_ADDRESSES, ALT_TOKEN_DECIMALS, API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type AltToken, AltTokenSchema, 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, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, 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, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, 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, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, 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, listAltTokensForNetworks, paginatedSchema };
package/dist/index.d.ts CHANGED
@@ -81,6 +81,12 @@ type Token = z.infer<typeof TokenSchema>;
81
81
  declare const TOKEN_DECIMALS = 6;
82
82
  declare const TOKEN_ADDRESSES: Record<Token, Partial<Record<Network, Partial<Record<Environment, `0x${string}`>>>>>;
83
83
 
84
+ declare const AltTokenSchema: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
85
+ type AltToken = z.infer<typeof AltTokenSchema>;
86
+ declare const ALT_TOKEN_DECIMALS: Record<AltToken, number>;
87
+ declare const ALT_TOKEN_ADDRESSES: Record<Network, Partial<Record<AltToken, 'native' | `0x${string}`>>>;
88
+ declare function listAltTokensForNetworks(networks: readonly Network[]): AltToken[];
89
+
84
90
  declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
85
91
  type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
86
92
  declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
@@ -380,6 +386,7 @@ declare const ChargeSchema: z.ZodObject<{
380
386
  token: "USDC" | "USDT";
381
387
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
382
388
  }>, "many">;
389
+ swapAlternatives: z.ZodArray<z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>, "many">;
383
390
  address: z.ZodString;
384
391
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
385
392
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -546,6 +553,7 @@ declare const ChargeSchema: z.ZodObject<{
546
553
  token: "USDC" | "USDT";
547
554
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
548
555
  }[];
556
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
549
557
  settlementStatus: "pending" | "completed" | "failed" | null;
550
558
  environment: "live" | "test";
551
559
  apiKeyId: string | null;
@@ -609,6 +617,7 @@ declare const ChargeSchema: z.ZodObject<{
609
617
  token: "USDC" | "USDT";
610
618
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
611
619
  }[];
620
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
612
621
  settlementStatus: "pending" | "completed" | "failed" | null;
613
622
  environment: "live" | "test";
614
623
  apiKeyId: string | null;
@@ -679,6 +688,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
679
688
  token: "USDC" | "USDT";
680
689
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
681
690
  }>, "many">;
691
+ swapAlternatives: z.ZodArray<z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>, "many">;
682
692
  address: z.ZodString;
683
693
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
684
694
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -845,6 +855,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
845
855
  token: "USDC" | "USDT";
846
856
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
847
857
  }[];
858
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
848
859
  settlementStatus: "pending" | "completed" | "failed" | null;
849
860
  environment: "live" | "test";
850
861
  apiKeyId: string | null;
@@ -908,6 +919,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
908
919
  token: "USDC" | "USDT";
909
920
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
910
921
  }[];
922
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
911
923
  settlementStatus: "pending" | "completed" | "failed" | null;
912
924
  environment: "live" | "test";
913
925
  apiKeyId: string | null;
@@ -975,6 +987,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
975
987
  token: "USDC" | "USDT";
976
988
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
977
989
  }[];
990
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
978
991
  settlementStatus: "pending" | "completed" | "failed" | null;
979
992
  environment: "live" | "test";
980
993
  apiKeyId: string | null;
@@ -1042,6 +1055,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
1042
1055
  token: "USDC" | "USDT";
1043
1056
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1044
1057
  }[];
1058
+ swapAlternatives: ("ETH" | "BNB" | "MATIC" | "AVAX" | "BTC")[];
1045
1059
  settlementStatus: "pending" | "completed" | "failed" | null;
1046
1060
  environment: "live" | "test";
1047
1061
  apiKeyId: string | null;
@@ -2512,4 +2526,99 @@ declare const CapabilitiesSchema: z.ZodObject<{
2512
2526
  }>;
2513
2527
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
2514
2528
 
2515
- 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 CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, 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, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, 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, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, 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 };
2529
+ declare const CreateSwapQuoteSchema: z.ZodObject<{
2530
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2531
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2532
+ takerAddress: z.ZodString;
2533
+ }, "strip", z.ZodTypeAny, {
2534
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2535
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2536
+ takerAddress: string;
2537
+ }, {
2538
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2539
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2540
+ takerAddress: string;
2541
+ }>;
2542
+ type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
2543
+ declare const SwapQuoteSchema: z.ZodObject<{
2544
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2545
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2546
+ inputAmount: z.ZodNumber;
2547
+ outputToken: z.ZodEnum<["USDC", "USDT"]>;
2548
+ outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2549
+ outputAmount: z.ZodNumber;
2550
+ fees: z.ZodObject<{
2551
+ klappayFee: z.ZodNumber;
2552
+ zeroExFee: z.ZodNullable<z.ZodNumber>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ klappayFee: number;
2555
+ zeroExFee: number | null;
2556
+ }, {
2557
+ klappayFee: number;
2558
+ zeroExFee: number | null;
2559
+ }>;
2560
+ expiresAt: z.ZodString;
2561
+ transaction: z.ZodObject<{
2562
+ to: z.ZodString;
2563
+ data: z.ZodString;
2564
+ value: z.ZodString;
2565
+ }, "strip", z.ZodTypeAny, {
2566
+ value: string;
2567
+ data: string;
2568
+ to: string;
2569
+ }, {
2570
+ value: string;
2571
+ data: string;
2572
+ to: string;
2573
+ }>;
2574
+ permit2: z.ZodOptional<z.ZodObject<{
2575
+ eip712: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ eip712: Record<string, unknown>;
2578
+ }, {
2579
+ eip712: Record<string, unknown>;
2580
+ }>>;
2581
+ }, "strip", z.ZodTypeAny, {
2582
+ expiresAt: string;
2583
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2584
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2585
+ inputAmount: number;
2586
+ outputToken: "USDC" | "USDT";
2587
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2588
+ outputAmount: number;
2589
+ fees: {
2590
+ klappayFee: number;
2591
+ zeroExFee: number | null;
2592
+ };
2593
+ transaction: {
2594
+ value: string;
2595
+ data: string;
2596
+ to: string;
2597
+ };
2598
+ permit2?: {
2599
+ eip712: Record<string, unknown>;
2600
+ } | undefined;
2601
+ }, {
2602
+ expiresAt: string;
2603
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2604
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2605
+ inputAmount: number;
2606
+ outputToken: "USDC" | "USDT";
2607
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2608
+ outputAmount: number;
2609
+ fees: {
2610
+ klappayFee: number;
2611
+ zeroExFee: number | null;
2612
+ };
2613
+ transaction: {
2614
+ value: string;
2615
+ data: string;
2616
+ to: string;
2617
+ };
2618
+ permit2?: {
2619
+ eip712: Record<string, unknown>;
2620
+ } | undefined;
2621
+ }>;
2622
+ type SwapQuote = z.infer<typeof SwapQuoteSchema>;
2623
+
2624
+ export { ALT_TOKEN_ADDRESSES, ALT_TOKEN_DECIMALS, API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type AltToken, AltTokenSchema, 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, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, 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, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, 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, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, 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, listAltTokensForNetworks, paginatedSchema };