@klappay/types 2.0.1 → 2.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/README.md CHANGED
@@ -57,7 +57,11 @@ API itself (open the API's base URL in a browser once you have access).
57
57
  Full docs (with search and navigation) are published at
58
58
  [api.klappay.com/types](https://api.klappay.com/types) — generated from
59
59
  this same package's `docs/` source, so they never drift from what's
60
- actually exported.
60
+ actually exported. The site also publishes
61
+ [`llms.txt`](https://api.klappay.com/types/llms.txt) and
62
+ [`llms-full.txt`](https://api.klappay.com/types/llms-full.txt) — plain-
63
+ text, LLM-friendly versions of these docs, regenerated on every deploy,
64
+ for feeding an agent or MCP server.
61
65
 
62
66
  | Doc | Covers |
63
67
  |---|---|
package/dist/index.d.mts CHANGED
@@ -97,6 +97,21 @@ declare const AcceptedPaymentSchema: z.ZodObject<{
97
97
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
98
98
  }>;
99
99
  type AcceptedPayment = z.infer<typeof AcceptedPaymentSchema>;
100
+ declare const CHARGE_SPLIT_RECIPIENTS_MAX = 5;
101
+ declare const SplitRecipientSchema: z.ZodObject<{
102
+ address: z.ZodString;
103
+ percent: z.ZodNumber;
104
+ label: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ address: string;
107
+ percent: number;
108
+ label?: string | undefined;
109
+ }, {
110
+ address: string;
111
+ percent: number;
112
+ label?: string | undefined;
113
+ }>;
114
+ type SplitRecipient = z.infer<typeof SplitRecipientSchema>;
100
115
  declare const CHARGE_AMOUNT_MAX = 999999999999;
101
116
  declare const CreateChargeSchema: z.ZodObject<{
102
117
  amount: z.ZodNumber;
@@ -123,6 +138,27 @@ declare const CreateChargeSchema: z.ZodObject<{
123
138
  source: z.ZodOptional<z.ZodString>;
124
139
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
125
140
  redirectUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
141
+ splitRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
142
+ address: z.ZodString;
143
+ percent: z.ZodNumber;
144
+ label: z.ZodOptional<z.ZodString>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ address: string;
147
+ percent: number;
148
+ label?: string | undefined;
149
+ }, {
150
+ address: string;
151
+ percent: number;
152
+ label?: string | undefined;
153
+ }>, "many">, {
154
+ address: string;
155
+ percent: number;
156
+ label?: string | undefined;
157
+ }[], {
158
+ address: string;
159
+ percent: number;
160
+ label?: string | undefined;
161
+ }[]>>;
126
162
  }, "strip", z.ZodTypeAny, {
127
163
  amount: number;
128
164
  currency: "USD";
@@ -136,6 +172,11 @@ declare const CreateChargeSchema: z.ZodObject<{
136
172
  source?: string | undefined;
137
173
  metadata?: Record<string, unknown> | undefined;
138
174
  redirectUrl?: string | undefined;
175
+ splitRecipients?: {
176
+ address: string;
177
+ percent: number;
178
+ label?: string | undefined;
179
+ }[] | undefined;
139
180
  }, {
140
181
  amount: number;
141
182
  acceptedPayments: {
@@ -149,6 +190,11 @@ declare const CreateChargeSchema: z.ZodObject<{
149
190
  source?: string | undefined;
150
191
  metadata?: Record<string, unknown> | undefined;
151
192
  redirectUrl?: string | undefined;
193
+ splitRecipients?: {
194
+ address: string;
195
+ percent: number;
196
+ label?: string | undefined;
197
+ }[] | undefined;
152
198
  }>;
153
199
  type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
154
200
  type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
@@ -189,6 +235,19 @@ declare const ChargeSchema: z.ZodObject<{
189
235
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
236
  redirectUrl: z.ZodNullable<z.ZodString>;
191
237
  checkoutUrl: z.ZodNullable<z.ZodString>;
238
+ splitRecipients: z.ZodArray<z.ZodObject<{
239
+ address: z.ZodString;
240
+ percent: z.ZodNumber;
241
+ label: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ address: string;
244
+ percent: number;
245
+ label?: string | undefined;
246
+ }, {
247
+ address: string;
248
+ percent: number;
249
+ label?: string | undefined;
250
+ }>, "many">;
192
251
  createdAt: z.ZodString;
193
252
  expiresAt: z.ZodString;
194
253
  confirmedAt: z.ZodNullable<z.ZodString>;
@@ -196,6 +255,7 @@ declare const ChargeSchema: z.ZodObject<{
196
255
  lastActivityAt: z.ZodString;
197
256
  }, "strip", z.ZodTypeAny, {
198
257
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
258
+ address: string;
199
259
  amount: number;
200
260
  currency: string;
201
261
  acceptedPayments: {
@@ -206,6 +266,11 @@ declare const ChargeSchema: z.ZodObject<{
206
266
  source: string | null;
207
267
  metadata: Record<string, unknown> | null;
208
268
  redirectUrl: string | null;
269
+ splitRecipients: {
270
+ address: string;
271
+ percent: number;
272
+ label?: string | undefined;
273
+ }[];
209
274
  id: string;
210
275
  amountReceived: number | null;
211
276
  isOverpaid: boolean;
@@ -213,7 +278,6 @@ declare const ChargeSchema: z.ZodObject<{
213
278
  token: "USDC" | "USDT";
214
279
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
215
280
  }[];
216
- address: string;
217
281
  settlementStatus: "pending" | "completed" | "failed" | null;
218
282
  environment: "live" | "test";
219
283
  apiKeyId: string | null;
@@ -226,6 +290,7 @@ declare const ChargeSchema: z.ZodObject<{
226
290
  lastActivityAt: string;
227
291
  }, {
228
292
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
293
+ address: string;
229
294
  amount: number;
230
295
  currency: string;
231
296
  acceptedPayments: {
@@ -236,6 +301,11 @@ declare const ChargeSchema: z.ZodObject<{
236
301
  source: string | null;
237
302
  metadata: Record<string, unknown> | null;
238
303
  redirectUrl: string | null;
304
+ splitRecipients: {
305
+ address: string;
306
+ percent: number;
307
+ label?: string | undefined;
308
+ }[];
239
309
  id: string;
240
310
  amountReceived: number | null;
241
311
  isOverpaid: boolean;
@@ -243,7 +313,6 @@ declare const ChargeSchema: z.ZodObject<{
243
313
  token: "USDC" | "USDT";
244
314
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
245
315
  }[];
246
- address: string;
247
316
  settlementStatus: "pending" | "completed" | "failed" | null;
248
317
  environment: "live" | "test";
249
318
  apiKeyId: string | null;
@@ -325,6 +394,19 @@ declare const PaginatedChargesSchema: z.ZodObject<{
325
394
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
326
395
  redirectUrl: z.ZodNullable<z.ZodString>;
327
396
  checkoutUrl: z.ZodNullable<z.ZodString>;
397
+ splitRecipients: z.ZodArray<z.ZodObject<{
398
+ address: z.ZodString;
399
+ percent: z.ZodNumber;
400
+ label: z.ZodOptional<z.ZodString>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ address: string;
403
+ percent: number;
404
+ label?: string | undefined;
405
+ }, {
406
+ address: string;
407
+ percent: number;
408
+ label?: string | undefined;
409
+ }>, "many">;
328
410
  createdAt: z.ZodString;
329
411
  expiresAt: z.ZodString;
330
412
  confirmedAt: z.ZodNullable<z.ZodString>;
@@ -332,6 +414,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
332
414
  lastActivityAt: z.ZodString;
333
415
  }, "strip", z.ZodTypeAny, {
334
416
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
417
+ address: string;
335
418
  amount: number;
336
419
  currency: string;
337
420
  acceptedPayments: {
@@ -342,6 +425,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
342
425
  source: string | null;
343
426
  metadata: Record<string, unknown> | null;
344
427
  redirectUrl: string | null;
428
+ splitRecipients: {
429
+ address: string;
430
+ percent: number;
431
+ label?: string | undefined;
432
+ }[];
345
433
  id: string;
346
434
  amountReceived: number | null;
347
435
  isOverpaid: boolean;
@@ -349,7 +437,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
349
437
  token: "USDC" | "USDT";
350
438
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
351
439
  }[];
352
- address: string;
353
440
  settlementStatus: "pending" | "completed" | "failed" | null;
354
441
  environment: "live" | "test";
355
442
  apiKeyId: string | null;
@@ -362,6 +449,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
362
449
  lastActivityAt: string;
363
450
  }, {
364
451
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
452
+ address: string;
365
453
  amount: number;
366
454
  currency: string;
367
455
  acceptedPayments: {
@@ -372,6 +460,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
372
460
  source: string | null;
373
461
  metadata: Record<string, unknown> | null;
374
462
  redirectUrl: string | null;
463
+ splitRecipients: {
464
+ address: string;
465
+ percent: number;
466
+ label?: string | undefined;
467
+ }[];
375
468
  id: string;
376
469
  amountReceived: number | null;
377
470
  isOverpaid: boolean;
@@ -379,7 +472,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
379
472
  token: "USDC" | "USDT";
380
473
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
381
474
  }[];
382
- address: string;
383
475
  settlementStatus: "pending" | "completed" | "failed" | null;
384
476
  environment: "live" | "test";
385
477
  apiKeyId: string | null;
@@ -396,6 +488,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
396
488
  }, "strip", z.ZodTypeAny, {
397
489
  data: {
398
490
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
491
+ address: string;
399
492
  amount: number;
400
493
  currency: string;
401
494
  acceptedPayments: {
@@ -406,6 +499,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
406
499
  source: string | null;
407
500
  metadata: Record<string, unknown> | null;
408
501
  redirectUrl: string | null;
502
+ splitRecipients: {
503
+ address: string;
504
+ percent: number;
505
+ label?: string | undefined;
506
+ }[];
409
507
  id: string;
410
508
  amountReceived: number | null;
411
509
  isOverpaid: boolean;
@@ -413,7 +511,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
413
511
  token: "USDC" | "USDT";
414
512
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
415
513
  }[];
416
- address: string;
417
514
  settlementStatus: "pending" | "completed" | "failed" | null;
418
515
  environment: "live" | "test";
419
516
  apiKeyId: string | null;
@@ -430,6 +527,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
430
527
  }, {
431
528
  data: {
432
529
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
530
+ address: string;
433
531
  amount: number;
434
532
  currency: string;
435
533
  acceptedPayments: {
@@ -440,6 +538,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
440
538
  source: string | null;
441
539
  metadata: Record<string, unknown> | null;
442
540
  redirectUrl: string | null;
541
+ splitRecipients: {
542
+ address: string;
543
+ percent: number;
544
+ label?: string | undefined;
545
+ }[];
443
546
  id: string;
444
547
  amountReceived: number | null;
445
548
  isOverpaid: boolean;
@@ -447,7 +550,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
447
550
  token: "USDC" | "USDT";
448
551
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
449
552
  }[];
450
- address: string;
451
553
  settlementStatus: "pending" | "completed" | "failed" | null;
452
554
  environment: "live" | "test";
453
555
  apiKeyId: string | null;
@@ -1745,4 +1847,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
1745
1847
  }>;
1746
1848
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
1747
1849
 
1748
- 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, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, 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 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, 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 SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, 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, paginatedSchema };
1850
+ 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, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, 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 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, 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 SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, 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, paginatedSchema };
package/dist/index.d.ts CHANGED
@@ -97,6 +97,21 @@ declare const AcceptedPaymentSchema: z.ZodObject<{
97
97
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
98
98
  }>;
99
99
  type AcceptedPayment = z.infer<typeof AcceptedPaymentSchema>;
100
+ declare const CHARGE_SPLIT_RECIPIENTS_MAX = 5;
101
+ declare const SplitRecipientSchema: z.ZodObject<{
102
+ address: z.ZodString;
103
+ percent: z.ZodNumber;
104
+ label: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ address: string;
107
+ percent: number;
108
+ label?: string | undefined;
109
+ }, {
110
+ address: string;
111
+ percent: number;
112
+ label?: string | undefined;
113
+ }>;
114
+ type SplitRecipient = z.infer<typeof SplitRecipientSchema>;
100
115
  declare const CHARGE_AMOUNT_MAX = 999999999999;
101
116
  declare const CreateChargeSchema: z.ZodObject<{
102
117
  amount: z.ZodNumber;
@@ -123,6 +138,27 @@ declare const CreateChargeSchema: z.ZodObject<{
123
138
  source: z.ZodOptional<z.ZodString>;
124
139
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
125
140
  redirectUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
141
+ splitRecipients: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
142
+ address: z.ZodString;
143
+ percent: z.ZodNumber;
144
+ label: z.ZodOptional<z.ZodString>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ address: string;
147
+ percent: number;
148
+ label?: string | undefined;
149
+ }, {
150
+ address: string;
151
+ percent: number;
152
+ label?: string | undefined;
153
+ }>, "many">, {
154
+ address: string;
155
+ percent: number;
156
+ label?: string | undefined;
157
+ }[], {
158
+ address: string;
159
+ percent: number;
160
+ label?: string | undefined;
161
+ }[]>>;
126
162
  }, "strip", z.ZodTypeAny, {
127
163
  amount: number;
128
164
  currency: "USD";
@@ -136,6 +172,11 @@ declare const CreateChargeSchema: z.ZodObject<{
136
172
  source?: string | undefined;
137
173
  metadata?: Record<string, unknown> | undefined;
138
174
  redirectUrl?: string | undefined;
175
+ splitRecipients?: {
176
+ address: string;
177
+ percent: number;
178
+ label?: string | undefined;
179
+ }[] | undefined;
139
180
  }, {
140
181
  amount: number;
141
182
  acceptedPayments: {
@@ -149,6 +190,11 @@ declare const CreateChargeSchema: z.ZodObject<{
149
190
  source?: string | undefined;
150
191
  metadata?: Record<string, unknown> | undefined;
151
192
  redirectUrl?: string | undefined;
193
+ splitRecipients?: {
194
+ address: string;
195
+ percent: number;
196
+ label?: string | undefined;
197
+ }[] | undefined;
152
198
  }>;
153
199
  type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
154
200
  type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
@@ -189,6 +235,19 @@ declare const ChargeSchema: z.ZodObject<{
189
235
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
236
  redirectUrl: z.ZodNullable<z.ZodString>;
191
237
  checkoutUrl: z.ZodNullable<z.ZodString>;
238
+ splitRecipients: z.ZodArray<z.ZodObject<{
239
+ address: z.ZodString;
240
+ percent: z.ZodNumber;
241
+ label: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ address: string;
244
+ percent: number;
245
+ label?: string | undefined;
246
+ }, {
247
+ address: string;
248
+ percent: number;
249
+ label?: string | undefined;
250
+ }>, "many">;
192
251
  createdAt: z.ZodString;
193
252
  expiresAt: z.ZodString;
194
253
  confirmedAt: z.ZodNullable<z.ZodString>;
@@ -196,6 +255,7 @@ declare const ChargeSchema: z.ZodObject<{
196
255
  lastActivityAt: z.ZodString;
197
256
  }, "strip", z.ZodTypeAny, {
198
257
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
258
+ address: string;
199
259
  amount: number;
200
260
  currency: string;
201
261
  acceptedPayments: {
@@ -206,6 +266,11 @@ declare const ChargeSchema: z.ZodObject<{
206
266
  source: string | null;
207
267
  metadata: Record<string, unknown> | null;
208
268
  redirectUrl: string | null;
269
+ splitRecipients: {
270
+ address: string;
271
+ percent: number;
272
+ label?: string | undefined;
273
+ }[];
209
274
  id: string;
210
275
  amountReceived: number | null;
211
276
  isOverpaid: boolean;
@@ -213,7 +278,6 @@ declare const ChargeSchema: z.ZodObject<{
213
278
  token: "USDC" | "USDT";
214
279
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
215
280
  }[];
216
- address: string;
217
281
  settlementStatus: "pending" | "completed" | "failed" | null;
218
282
  environment: "live" | "test";
219
283
  apiKeyId: string | null;
@@ -226,6 +290,7 @@ declare const ChargeSchema: z.ZodObject<{
226
290
  lastActivityAt: string;
227
291
  }, {
228
292
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
293
+ address: string;
229
294
  amount: number;
230
295
  currency: string;
231
296
  acceptedPayments: {
@@ -236,6 +301,11 @@ declare const ChargeSchema: z.ZodObject<{
236
301
  source: string | null;
237
302
  metadata: Record<string, unknown> | null;
238
303
  redirectUrl: string | null;
304
+ splitRecipients: {
305
+ address: string;
306
+ percent: number;
307
+ label?: string | undefined;
308
+ }[];
239
309
  id: string;
240
310
  amountReceived: number | null;
241
311
  isOverpaid: boolean;
@@ -243,7 +313,6 @@ declare const ChargeSchema: z.ZodObject<{
243
313
  token: "USDC" | "USDT";
244
314
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
245
315
  }[];
246
- address: string;
247
316
  settlementStatus: "pending" | "completed" | "failed" | null;
248
317
  environment: "live" | "test";
249
318
  apiKeyId: string | null;
@@ -325,6 +394,19 @@ declare const PaginatedChargesSchema: z.ZodObject<{
325
394
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
326
395
  redirectUrl: z.ZodNullable<z.ZodString>;
327
396
  checkoutUrl: z.ZodNullable<z.ZodString>;
397
+ splitRecipients: z.ZodArray<z.ZodObject<{
398
+ address: z.ZodString;
399
+ percent: z.ZodNumber;
400
+ label: z.ZodOptional<z.ZodString>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ address: string;
403
+ percent: number;
404
+ label?: string | undefined;
405
+ }, {
406
+ address: string;
407
+ percent: number;
408
+ label?: string | undefined;
409
+ }>, "many">;
328
410
  createdAt: z.ZodString;
329
411
  expiresAt: z.ZodString;
330
412
  confirmedAt: z.ZodNullable<z.ZodString>;
@@ -332,6 +414,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
332
414
  lastActivityAt: z.ZodString;
333
415
  }, "strip", z.ZodTypeAny, {
334
416
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
417
+ address: string;
335
418
  amount: number;
336
419
  currency: string;
337
420
  acceptedPayments: {
@@ -342,6 +425,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
342
425
  source: string | null;
343
426
  metadata: Record<string, unknown> | null;
344
427
  redirectUrl: string | null;
428
+ splitRecipients: {
429
+ address: string;
430
+ percent: number;
431
+ label?: string | undefined;
432
+ }[];
345
433
  id: string;
346
434
  amountReceived: number | null;
347
435
  isOverpaid: boolean;
@@ -349,7 +437,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
349
437
  token: "USDC" | "USDT";
350
438
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
351
439
  }[];
352
- address: string;
353
440
  settlementStatus: "pending" | "completed" | "failed" | null;
354
441
  environment: "live" | "test";
355
442
  apiKeyId: string | null;
@@ -362,6 +449,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
362
449
  lastActivityAt: string;
363
450
  }, {
364
451
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
452
+ address: string;
365
453
  amount: number;
366
454
  currency: string;
367
455
  acceptedPayments: {
@@ -372,6 +460,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
372
460
  source: string | null;
373
461
  metadata: Record<string, unknown> | null;
374
462
  redirectUrl: string | null;
463
+ splitRecipients: {
464
+ address: string;
465
+ percent: number;
466
+ label?: string | undefined;
467
+ }[];
375
468
  id: string;
376
469
  amountReceived: number | null;
377
470
  isOverpaid: boolean;
@@ -379,7 +472,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
379
472
  token: "USDC" | "USDT";
380
473
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
381
474
  }[];
382
- address: string;
383
475
  settlementStatus: "pending" | "completed" | "failed" | null;
384
476
  environment: "live" | "test";
385
477
  apiKeyId: string | null;
@@ -396,6 +488,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
396
488
  }, "strip", z.ZodTypeAny, {
397
489
  data: {
398
490
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
491
+ address: string;
399
492
  amount: number;
400
493
  currency: string;
401
494
  acceptedPayments: {
@@ -406,6 +499,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
406
499
  source: string | null;
407
500
  metadata: Record<string, unknown> | null;
408
501
  redirectUrl: string | null;
502
+ splitRecipients: {
503
+ address: string;
504
+ percent: number;
505
+ label?: string | undefined;
506
+ }[];
409
507
  id: string;
410
508
  amountReceived: number | null;
411
509
  isOverpaid: boolean;
@@ -413,7 +511,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
413
511
  token: "USDC" | "USDT";
414
512
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
415
513
  }[];
416
- address: string;
417
514
  settlementStatus: "pending" | "completed" | "failed" | null;
418
515
  environment: "live" | "test";
419
516
  apiKeyId: string | null;
@@ -430,6 +527,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
430
527
  }, {
431
528
  data: {
432
529
  status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
530
+ address: string;
433
531
  amount: number;
434
532
  currency: string;
435
533
  acceptedPayments: {
@@ -440,6 +538,11 @@ declare const PaginatedChargesSchema: z.ZodObject<{
440
538
  source: string | null;
441
539
  metadata: Record<string, unknown> | null;
442
540
  redirectUrl: string | null;
541
+ splitRecipients: {
542
+ address: string;
543
+ percent: number;
544
+ label?: string | undefined;
545
+ }[];
443
546
  id: string;
444
547
  amountReceived: number | null;
445
548
  isOverpaid: boolean;
@@ -447,7 +550,6 @@ declare const PaginatedChargesSchema: z.ZodObject<{
447
550
  token: "USDC" | "USDT";
448
551
  network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
449
552
  }[];
450
- address: string;
451
553
  settlementStatus: "pending" | "completed" | "failed" | null;
452
554
  environment: "live" | "test";
453
555
  apiKeyId: string | null;
@@ -1745,4 +1847,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
1745
1847
  }>;
1746
1848
  type Capabilities = z.infer<typeof CapabilitiesSchema>;
1747
1849
 
1748
- 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, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, 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 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, 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 SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, 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, paginatedSchema };
1850
+ 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, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, 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 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, 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 SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, type SplitRecipient, 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, paginatedSchema };