@klappay/types 3.0.0 → 3.0.2

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,23 @@ 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 const SwapAlternativeSchema: z.ZodObject<{
89
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
90
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
93
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
94
+ }, {
95
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
96
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
97
+ }>;
98
+ type SwapAlternative = z.infer<typeof SwapAlternativeSchema>;
99
+ declare function listSwapAlternatives(networks: readonly Network[]): SwapAlternative[];
100
+
84
101
  declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
85
102
  type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
86
103
  declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
@@ -380,6 +397,16 @@ declare const ChargeSchema: z.ZodObject<{
380
397
  token: "USDC" | "USDT";
381
398
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
382
399
  }>, "many">;
400
+ swapAlternatives: z.ZodArray<z.ZodObject<{
401
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
402
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
405
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
406
+ }, {
407
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
408
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
409
+ }>, "many">;
383
410
  address: z.ZodString;
384
411
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
385
412
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -546,6 +573,10 @@ declare const ChargeSchema: z.ZodObject<{
546
573
  token: "USDC" | "USDT";
547
574
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
548
575
  }[];
576
+ swapAlternatives: {
577
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
578
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
579
+ }[];
549
580
  settlementStatus: "pending" | "completed" | "failed" | null;
550
581
  environment: "live" | "test";
551
582
  apiKeyId: string | null;
@@ -609,6 +640,10 @@ declare const ChargeSchema: z.ZodObject<{
609
640
  token: "USDC" | "USDT";
610
641
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
611
642
  }[];
643
+ swapAlternatives: {
644
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
645
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
646
+ }[];
612
647
  settlementStatus: "pending" | "completed" | "failed" | null;
613
648
  environment: "live" | "test";
614
649
  apiKeyId: string | null;
@@ -679,6 +714,16 @@ declare const PaginatedChargesSchema: z.ZodObject<{
679
714
  token: "USDC" | "USDT";
680
715
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
681
716
  }>, "many">;
717
+ swapAlternatives: z.ZodArray<z.ZodObject<{
718
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
719
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
722
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
723
+ }, {
724
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
725
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
726
+ }>, "many">;
682
727
  address: z.ZodString;
683
728
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
684
729
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -845,6 +890,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
845
890
  token: "USDC" | "USDT";
846
891
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
847
892
  }[];
893
+ swapAlternatives: {
894
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
895
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
896
+ }[];
848
897
  settlementStatus: "pending" | "completed" | "failed" | null;
849
898
  environment: "live" | "test";
850
899
  apiKeyId: string | null;
@@ -908,6 +957,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
908
957
  token: "USDC" | "USDT";
909
958
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
910
959
  }[];
960
+ swapAlternatives: {
961
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
962
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
963
+ }[];
911
964
  settlementStatus: "pending" | "completed" | "failed" | null;
912
965
  environment: "live" | "test";
913
966
  apiKeyId: string | null;
@@ -975,6 +1028,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
975
1028
  token: "USDC" | "USDT";
976
1029
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
977
1030
  }[];
1031
+ swapAlternatives: {
1032
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
1033
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1034
+ }[];
978
1035
  settlementStatus: "pending" | "completed" | "failed" | null;
979
1036
  environment: "live" | "test";
980
1037
  apiKeyId: string | null;
@@ -1042,6 +1099,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
1042
1099
  token: "USDC" | "USDT";
1043
1100
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1044
1101
  }[];
1102
+ swapAlternatives: {
1103
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
1104
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1105
+ }[];
1045
1106
  settlementStatus: "pending" | "completed" | "failed" | null;
1046
1107
  environment: "live" | "test";
1047
1108
  apiKeyId: string | null;
@@ -2512,4 +2573,99 @@ declare const CapabilitiesSchema: z.ZodObject<{
2512
2573
  }>;
2513
2574
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
2514
2575
 
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 };
2576
+ declare const CreateSwapQuoteSchema: z.ZodObject<{
2577
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2578
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2579
+ takerAddress: z.ZodString;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2582
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2583
+ takerAddress: string;
2584
+ }, {
2585
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2586
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2587
+ takerAddress: string;
2588
+ }>;
2589
+ type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
2590
+ declare const SwapQuoteSchema: z.ZodObject<{
2591
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2592
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2593
+ inputAmount: z.ZodNumber;
2594
+ outputToken: z.ZodEnum<["USDC", "USDT"]>;
2595
+ outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2596
+ outputAmount: z.ZodNumber;
2597
+ fees: z.ZodObject<{
2598
+ klappayFee: z.ZodNumber;
2599
+ zeroExFee: z.ZodNullable<z.ZodNumber>;
2600
+ }, "strip", z.ZodTypeAny, {
2601
+ klappayFee: number;
2602
+ zeroExFee: number | null;
2603
+ }, {
2604
+ klappayFee: number;
2605
+ zeroExFee: number | null;
2606
+ }>;
2607
+ expiresAt: z.ZodString;
2608
+ transaction: z.ZodObject<{
2609
+ to: z.ZodString;
2610
+ data: z.ZodString;
2611
+ value: z.ZodString;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ value: string;
2614
+ data: string;
2615
+ to: string;
2616
+ }, {
2617
+ value: string;
2618
+ data: string;
2619
+ to: string;
2620
+ }>;
2621
+ permit2: z.ZodOptional<z.ZodObject<{
2622
+ eip712: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ eip712: Record<string, unknown>;
2625
+ }, {
2626
+ eip712: Record<string, unknown>;
2627
+ }>>;
2628
+ }, "strip", z.ZodTypeAny, {
2629
+ expiresAt: string;
2630
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2631
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2632
+ inputAmount: number;
2633
+ outputToken: "USDC" | "USDT";
2634
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2635
+ outputAmount: number;
2636
+ fees: {
2637
+ klappayFee: number;
2638
+ zeroExFee: number | null;
2639
+ };
2640
+ transaction: {
2641
+ value: string;
2642
+ data: string;
2643
+ to: string;
2644
+ };
2645
+ permit2?: {
2646
+ eip712: Record<string, unknown>;
2647
+ } | undefined;
2648
+ }, {
2649
+ expiresAt: string;
2650
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2651
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2652
+ inputAmount: number;
2653
+ outputToken: "USDC" | "USDT";
2654
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2655
+ outputAmount: number;
2656
+ fees: {
2657
+ klappayFee: number;
2658
+ zeroExFee: number | null;
2659
+ };
2660
+ transaction: {
2661
+ value: string;
2662
+ data: string;
2663
+ to: string;
2664
+ };
2665
+ permit2?: {
2666
+ eip712: Record<string, unknown>;
2667
+ } | undefined;
2668
+ }>;
2669
+ type SwapQuote = z.infer<typeof SwapQuoteSchema>;
2670
+
2671
+ 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 SwapAlternative, SwapAlternativeSchema, 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, listSwapAlternatives, paginatedSchema };
package/dist/index.d.ts CHANGED
@@ -81,6 +81,23 @@ 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 const SwapAlternativeSchema: z.ZodObject<{
89
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
90
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
93
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
94
+ }, {
95
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
96
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
97
+ }>;
98
+ type SwapAlternative = z.infer<typeof SwapAlternativeSchema>;
99
+ declare function listSwapAlternatives(networks: readonly Network[]): SwapAlternative[];
100
+
84
101
  declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
85
102
  type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
86
103
  declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
@@ -380,6 +397,16 @@ declare const ChargeSchema: z.ZodObject<{
380
397
  token: "USDC" | "USDT";
381
398
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
382
399
  }>, "many">;
400
+ swapAlternatives: z.ZodArray<z.ZodObject<{
401
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
402
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
405
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
406
+ }, {
407
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
408
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
409
+ }>, "many">;
383
410
  address: z.ZodString;
384
411
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
385
412
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -546,6 +573,10 @@ declare const ChargeSchema: z.ZodObject<{
546
573
  token: "USDC" | "USDT";
547
574
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
548
575
  }[];
576
+ swapAlternatives: {
577
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
578
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
579
+ }[];
549
580
  settlementStatus: "pending" | "completed" | "failed" | null;
550
581
  environment: "live" | "test";
551
582
  apiKeyId: string | null;
@@ -609,6 +640,10 @@ declare const ChargeSchema: z.ZodObject<{
609
640
  token: "USDC" | "USDT";
610
641
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
611
642
  }[];
643
+ swapAlternatives: {
644
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
645
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
646
+ }[];
612
647
  settlementStatus: "pending" | "completed" | "failed" | null;
613
648
  environment: "live" | "test";
614
649
  apiKeyId: string | null;
@@ -679,6 +714,16 @@ declare const PaginatedChargesSchema: z.ZodObject<{
679
714
  token: "USDC" | "USDT";
680
715
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
681
716
  }>, "many">;
717
+ swapAlternatives: z.ZodArray<z.ZodObject<{
718
+ token: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
719
+ network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
722
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
723
+ }, {
724
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
725
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
726
+ }>, "many">;
682
727
  address: z.ZodString;
683
728
  status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
684
729
  settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
@@ -845,6 +890,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
845
890
  token: "USDC" | "USDT";
846
891
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
847
892
  }[];
893
+ swapAlternatives: {
894
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
895
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
896
+ }[];
848
897
  settlementStatus: "pending" | "completed" | "failed" | null;
849
898
  environment: "live" | "test";
850
899
  apiKeyId: string | null;
@@ -908,6 +957,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
908
957
  token: "USDC" | "USDT";
909
958
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
910
959
  }[];
960
+ swapAlternatives: {
961
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
962
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
963
+ }[];
911
964
  settlementStatus: "pending" | "completed" | "failed" | null;
912
965
  environment: "live" | "test";
913
966
  apiKeyId: string | null;
@@ -975,6 +1028,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
975
1028
  token: "USDC" | "USDT";
976
1029
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
977
1030
  }[];
1031
+ swapAlternatives: {
1032
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
1033
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1034
+ }[];
978
1035
  settlementStatus: "pending" | "completed" | "failed" | null;
979
1036
  environment: "live" | "test";
980
1037
  apiKeyId: string | null;
@@ -1042,6 +1099,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
1042
1099
  token: "USDC" | "USDT";
1043
1100
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1044
1101
  }[];
1102
+ swapAlternatives: {
1103
+ token: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
1104
+ network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
1105
+ }[];
1045
1106
  settlementStatus: "pending" | "completed" | "failed" | null;
1046
1107
  environment: "live" | "test";
1047
1108
  apiKeyId: string | null;
@@ -2512,4 +2573,99 @@ declare const CapabilitiesSchema: z.ZodObject<{
2512
2573
  }>;
2513
2574
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
2514
2575
 
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 };
2576
+ declare const CreateSwapQuoteSchema: z.ZodObject<{
2577
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2578
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2579
+ takerAddress: z.ZodString;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2582
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2583
+ takerAddress: string;
2584
+ }, {
2585
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2586
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2587
+ takerAddress: string;
2588
+ }>;
2589
+ type CreateSwapQuoteInput = z.infer<typeof CreateSwapQuoteSchema>;
2590
+ declare const SwapQuoteSchema: z.ZodObject<{
2591
+ inputToken: z.ZodEnum<["ETH", "BNB", "MATIC", "AVAX", "BTC"]>;
2592
+ inputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2593
+ inputAmount: z.ZodNumber;
2594
+ outputToken: z.ZodEnum<["USDC", "USDT"]>;
2595
+ outputNetwork: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
2596
+ outputAmount: z.ZodNumber;
2597
+ fees: z.ZodObject<{
2598
+ klappayFee: z.ZodNumber;
2599
+ zeroExFee: z.ZodNullable<z.ZodNumber>;
2600
+ }, "strip", z.ZodTypeAny, {
2601
+ klappayFee: number;
2602
+ zeroExFee: number | null;
2603
+ }, {
2604
+ klappayFee: number;
2605
+ zeroExFee: number | null;
2606
+ }>;
2607
+ expiresAt: z.ZodString;
2608
+ transaction: z.ZodObject<{
2609
+ to: z.ZodString;
2610
+ data: z.ZodString;
2611
+ value: z.ZodString;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ value: string;
2614
+ data: string;
2615
+ to: string;
2616
+ }, {
2617
+ value: string;
2618
+ data: string;
2619
+ to: string;
2620
+ }>;
2621
+ permit2: z.ZodOptional<z.ZodObject<{
2622
+ eip712: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ eip712: Record<string, unknown>;
2625
+ }, {
2626
+ eip712: Record<string, unknown>;
2627
+ }>>;
2628
+ }, "strip", z.ZodTypeAny, {
2629
+ expiresAt: string;
2630
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2631
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2632
+ inputAmount: number;
2633
+ outputToken: "USDC" | "USDT";
2634
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2635
+ outputAmount: number;
2636
+ fees: {
2637
+ klappayFee: number;
2638
+ zeroExFee: number | null;
2639
+ };
2640
+ transaction: {
2641
+ value: string;
2642
+ data: string;
2643
+ to: string;
2644
+ };
2645
+ permit2?: {
2646
+ eip712: Record<string, unknown>;
2647
+ } | undefined;
2648
+ }, {
2649
+ expiresAt: string;
2650
+ inputToken: "ETH" | "BNB" | "MATIC" | "AVAX" | "BTC";
2651
+ inputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2652
+ inputAmount: number;
2653
+ outputToken: "USDC" | "USDT";
2654
+ outputNetwork: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
2655
+ outputAmount: number;
2656
+ fees: {
2657
+ klappayFee: number;
2658
+ zeroExFee: number | null;
2659
+ };
2660
+ transaction: {
2661
+ value: string;
2662
+ data: string;
2663
+ to: string;
2664
+ };
2665
+ permit2?: {
2666
+ eip712: Record<string, unknown>;
2667
+ } | undefined;
2668
+ }>;
2669
+ type SwapQuote = z.infer<typeof SwapQuoteSchema>;
2670
+
2671
+ 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 SwapAlternative, SwapAlternativeSchema, 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, listSwapAlternatives, paginatedSchema };