@klappay/types 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.mts +178 -1041
- package/dist/index.d.ts +178 -1041
- package/dist/index.js +133 -449
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -410
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,10 @@ type ErrorPayload = z.infer<typeof ErrorPayloadSchema>;
|
|
|
32
32
|
declare const EnvironmentSchema: z.ZodEnum<["live", "test"]>;
|
|
33
33
|
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
34
34
|
|
|
35
|
+
declare const ApiKeyScopeSchema: z.ZodEnum<["charges:read", "charges:write", "webhooks:read", "webhooks:write", "webhooks:manage_secret", "metrics:read", "metrics:charges:read", "metrics:transactions:read", "metrics:distributions:read", "sandbox:trigger"]>;
|
|
36
|
+
type ApiKeyScope = z.infer<typeof ApiKeyScopeSchema>;
|
|
37
|
+
declare const API_KEY_SCOPES: ["charges:read", "charges:write", "webhooks:read", "webhooks:write", "webhooks:manage_secret", "metrics:read", "metrics:charges:read", "metrics:transactions:read", "metrics:distributions:read", "sandbox:trigger"];
|
|
38
|
+
|
|
35
39
|
declare const NetworkSchema: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
36
40
|
type Network = z.infer<typeof NetworkSchema>;
|
|
37
41
|
declare const NETWORK_LABELS: Record<Network, string>;
|
|
@@ -75,14 +79,12 @@ type Token = z.infer<typeof TokenSchema>;
|
|
|
75
79
|
declare const TOKEN_DECIMALS = 6;
|
|
76
80
|
declare const TOKEN_ADDRESSES: Record<Token, Partial<Record<Network, Partial<Record<Environment, `0x${string}`>>>>>;
|
|
77
81
|
|
|
78
|
-
declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
82
|
+
declare const ChargeStatusSchema: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
79
83
|
type ChargeStatus = z.infer<typeof ChargeStatusSchema>;
|
|
80
84
|
declare const SettlementStatusSchema: z.ZodEnum<["pending", "completed", "failed"]>;
|
|
81
85
|
type SettlementStatus = z.infer<typeof SettlementStatusSchema>;
|
|
82
|
-
declare const ChargeModeSchema: z.ZodEnum<["standard", "continuous"]>;
|
|
83
|
-
type ChargeMode = z.infer<typeof ChargeModeSchema>;
|
|
84
86
|
declare const CHARGE_EXPIRES_IN_MIN_SECONDS = 60;
|
|
85
|
-
declare const CHARGE_EXPIRES_IN_MAX_SECONDS
|
|
87
|
+
declare const CHARGE_EXPIRES_IN_MAX_SECONDS = 3600;
|
|
86
88
|
declare const CHARGE_ACCEPTED_PAYMENTS_MAX = 14;
|
|
87
89
|
declare const AcceptedPaymentSchema: z.ZodObject<{
|
|
88
90
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
@@ -96,9 +98,8 @@ declare const AcceptedPaymentSchema: z.ZodObject<{
|
|
|
96
98
|
}>;
|
|
97
99
|
type AcceptedPayment = z.infer<typeof AcceptedPaymentSchema>;
|
|
98
100
|
declare const CHARGE_AMOUNT_MAX = 999999999999;
|
|
99
|
-
declare const CreateChargeSchema: z.
|
|
100
|
-
|
|
101
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
declare const CreateChargeSchema: z.ZodObject<{
|
|
102
|
+
amount: z.ZodNumber;
|
|
102
103
|
currency: z.ZodDefault<z.ZodLiteral<"USD">>;
|
|
103
104
|
acceptedPayments: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
104
105
|
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
@@ -116,59 +117,31 @@ declare const CreateChargeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
117
|
token: "USDC" | "USDT";
|
|
117
118
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
118
119
|
}[]>;
|
|
119
|
-
expiresIn: z.
|
|
120
|
+
expiresIn: z.ZodNumber;
|
|
120
121
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
121
122
|
externalRef: z.ZodOptional<z.ZodString>;
|
|
122
123
|
source: z.ZodOptional<z.ZodString>;
|
|
123
124
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
125
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
|
|
126
|
-
currency: "USD";
|
|
127
|
-
acceptedPayments: {
|
|
128
|
-
token: "USDC" | "USDT";
|
|
129
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
130
|
-
}[];
|
|
131
|
-
amount?: number | undefined;
|
|
132
|
-
expiresIn?: number | undefined;
|
|
133
|
-
idempotencyKey?: string | undefined;
|
|
134
|
-
externalRef?: string | undefined;
|
|
135
|
-
source?: string | undefined;
|
|
136
|
-
metadata?: Record<string, unknown> | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
acceptedPayments: {
|
|
139
|
-
token: "USDC" | "USDT";
|
|
140
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
141
|
-
}[];
|
|
142
|
-
mode?: "standard" | "continuous" | undefined;
|
|
143
|
-
amount?: number | undefined;
|
|
144
|
-
currency?: "USD" | undefined;
|
|
145
|
-
expiresIn?: number | undefined;
|
|
146
|
-
idempotencyKey?: string | undefined;
|
|
147
|
-
externalRef?: string | undefined;
|
|
148
|
-
source?: string | undefined;
|
|
149
|
-
metadata?: Record<string, unknown> | undefined;
|
|
150
|
-
}>, {
|
|
151
|
-
mode: "standard" | "continuous";
|
|
126
|
+
amount: number;
|
|
152
127
|
currency: "USD";
|
|
153
128
|
acceptedPayments: {
|
|
154
129
|
token: "USDC" | "USDT";
|
|
155
130
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
156
131
|
}[];
|
|
157
|
-
|
|
158
|
-
expiresIn?: number | undefined;
|
|
132
|
+
expiresIn: number;
|
|
159
133
|
idempotencyKey?: string | undefined;
|
|
160
134
|
externalRef?: string | undefined;
|
|
161
135
|
source?: string | undefined;
|
|
162
136
|
metadata?: Record<string, unknown> | undefined;
|
|
163
137
|
}, {
|
|
138
|
+
amount: number;
|
|
164
139
|
acceptedPayments: {
|
|
165
140
|
token: "USDC" | "USDT";
|
|
166
141
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
167
142
|
}[];
|
|
168
|
-
|
|
169
|
-
amount?: number | undefined;
|
|
143
|
+
expiresIn: number;
|
|
170
144
|
currency?: "USD" | undefined;
|
|
171
|
-
expiresIn?: number | undefined;
|
|
172
145
|
idempotencyKey?: string | undefined;
|
|
173
146
|
externalRef?: string | undefined;
|
|
174
147
|
source?: string | undefined;
|
|
@@ -178,8 +151,7 @@ type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
|
|
|
178
151
|
type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
179
152
|
declare const ChargeSchema: z.ZodObject<{
|
|
180
153
|
id: z.ZodString;
|
|
181
|
-
|
|
182
|
-
amount: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
amount: z.ZodNumber;
|
|
183
155
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
184
156
|
isOverpaid: z.ZodBoolean;
|
|
185
157
|
currency: z.ZodString;
|
|
@@ -204,7 +176,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
204
176
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
205
177
|
}>, "many">;
|
|
206
178
|
address: z.ZodString;
|
|
207
|
-
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
179
|
+
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
208
180
|
settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
|
|
209
181
|
environment: z.ZodEnum<["live", "test"]>;
|
|
210
182
|
apiKeyId: z.ZodNullable<z.ZodString>;
|
|
@@ -213,16 +185,13 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
213
185
|
source: z.ZodNullable<z.ZodString>;
|
|
214
186
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
215
187
|
createdAt: z.ZodString;
|
|
216
|
-
expiresAt: z.
|
|
188
|
+
expiresAt: z.ZodString;
|
|
217
189
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
218
190
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
219
191
|
lastActivityAt: z.ZodString;
|
|
220
|
-
pausedAt: z.ZodNullable<z.ZodString>;
|
|
221
|
-
canceledAt: z.ZodNullable<z.ZodString>;
|
|
222
192
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
224
|
-
|
|
225
|
-
amount: number | null;
|
|
193
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
194
|
+
amount: number;
|
|
226
195
|
currency: string;
|
|
227
196
|
acceptedPayments: {
|
|
228
197
|
token: "USDC" | "USDT";
|
|
@@ -244,16 +213,13 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
244
213
|
apiKeyId: string | null;
|
|
245
214
|
txHash: string | null;
|
|
246
215
|
createdAt: string;
|
|
247
|
-
expiresAt: string
|
|
216
|
+
expiresAt: string;
|
|
248
217
|
confirmedAt: string | null;
|
|
249
218
|
settledAt: string | null;
|
|
250
219
|
lastActivityAt: string;
|
|
251
|
-
pausedAt: string | null;
|
|
252
|
-
canceledAt: string | null;
|
|
253
220
|
}, {
|
|
254
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
255
|
-
|
|
256
|
-
amount: number | null;
|
|
221
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
222
|
+
amount: number;
|
|
257
223
|
currency: string;
|
|
258
224
|
acceptedPayments: {
|
|
259
225
|
token: "USDC" | "USDT";
|
|
@@ -275,16 +241,14 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
275
241
|
apiKeyId: string | null;
|
|
276
242
|
txHash: string | null;
|
|
277
243
|
createdAt: string;
|
|
278
|
-
expiresAt: string
|
|
244
|
+
expiresAt: string;
|
|
279
245
|
confirmedAt: string | null;
|
|
280
246
|
settledAt: string | null;
|
|
281
247
|
lastActivityAt: string;
|
|
282
|
-
pausedAt: string | null;
|
|
283
|
-
canceledAt: string | null;
|
|
284
248
|
}>;
|
|
285
249
|
type Charge = z.infer<typeof ChargeSchema>;
|
|
286
250
|
declare const ListChargesSchema: z.ZodObject<{
|
|
287
|
-
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
251
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>>;
|
|
288
252
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
289
253
|
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
290
254
|
environment: z.ZodOptional<z.ZodEnum<["live", "test"]>>;
|
|
@@ -295,7 +259,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
295
259
|
cursor: z.ZodOptional<z.ZodString>;
|
|
296
260
|
}, "strip", z.ZodTypeAny, {
|
|
297
261
|
limit: number;
|
|
298
|
-
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" |
|
|
262
|
+
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
299
263
|
cursor?: string | undefined;
|
|
300
264
|
token?: "USDC" | "USDT" | undefined;
|
|
301
265
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -303,7 +267,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
303
267
|
environment?: "live" | "test" | undefined;
|
|
304
268
|
since?: string | undefined;
|
|
305
269
|
}, {
|
|
306
|
-
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" |
|
|
270
|
+
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
307
271
|
limit?: number | undefined;
|
|
308
272
|
cursor?: string | undefined;
|
|
309
273
|
token?: "USDC" | "USDT" | undefined;
|
|
@@ -317,8 +281,7 @@ type ListChargesRequest = z.input<typeof ListChargesSchema>;
|
|
|
317
281
|
declare const PaginatedChargesSchema: z.ZodObject<{
|
|
318
282
|
data: z.ZodArray<z.ZodObject<{
|
|
319
283
|
id: z.ZodString;
|
|
320
|
-
|
|
321
|
-
amount: z.ZodNullable<z.ZodNumber>;
|
|
284
|
+
amount: z.ZodNumber;
|
|
322
285
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
323
286
|
isOverpaid: z.ZodBoolean;
|
|
324
287
|
currency: z.ZodString;
|
|
@@ -343,7 +306,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
343
306
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
344
307
|
}>, "many">;
|
|
345
308
|
address: z.ZodString;
|
|
346
|
-
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
309
|
+
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
347
310
|
settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
|
|
348
311
|
environment: z.ZodEnum<["live", "test"]>;
|
|
349
312
|
apiKeyId: z.ZodNullable<z.ZodString>;
|
|
@@ -352,16 +315,13 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
352
315
|
source: z.ZodNullable<z.ZodString>;
|
|
353
316
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
354
317
|
createdAt: z.ZodString;
|
|
355
|
-
expiresAt: z.
|
|
318
|
+
expiresAt: z.ZodString;
|
|
356
319
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
357
320
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
358
321
|
lastActivityAt: z.ZodString;
|
|
359
|
-
pausedAt: z.ZodNullable<z.ZodString>;
|
|
360
|
-
canceledAt: z.ZodNullable<z.ZodString>;
|
|
361
322
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
363
|
-
|
|
364
|
-
amount: number | null;
|
|
323
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
324
|
+
amount: number;
|
|
365
325
|
currency: string;
|
|
366
326
|
acceptedPayments: {
|
|
367
327
|
token: "USDC" | "USDT";
|
|
@@ -383,16 +343,13 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
383
343
|
apiKeyId: string | null;
|
|
384
344
|
txHash: string | null;
|
|
385
345
|
createdAt: string;
|
|
386
|
-
expiresAt: string
|
|
346
|
+
expiresAt: string;
|
|
387
347
|
confirmedAt: string | null;
|
|
388
348
|
settledAt: string | null;
|
|
389
349
|
lastActivityAt: string;
|
|
390
|
-
pausedAt: string | null;
|
|
391
|
-
canceledAt: string | null;
|
|
392
350
|
}, {
|
|
393
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
394
|
-
|
|
395
|
-
amount: number | null;
|
|
351
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
352
|
+
amount: number;
|
|
396
353
|
currency: string;
|
|
397
354
|
acceptedPayments: {
|
|
398
355
|
token: "USDC" | "USDT";
|
|
@@ -414,20 +371,17 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
414
371
|
apiKeyId: string | null;
|
|
415
372
|
txHash: string | null;
|
|
416
373
|
createdAt: string;
|
|
417
|
-
expiresAt: string
|
|
374
|
+
expiresAt: string;
|
|
418
375
|
confirmedAt: string | null;
|
|
419
376
|
settledAt: string | null;
|
|
420
377
|
lastActivityAt: string;
|
|
421
|
-
pausedAt: string | null;
|
|
422
|
-
canceledAt: string | null;
|
|
423
378
|
}>, "many">;
|
|
424
379
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
425
380
|
hasMore: z.ZodBoolean;
|
|
426
381
|
}, "strip", z.ZodTypeAny, {
|
|
427
382
|
data: {
|
|
428
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
429
|
-
|
|
430
|
-
amount: number | null;
|
|
383
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
384
|
+
amount: number;
|
|
431
385
|
currency: string;
|
|
432
386
|
acceptedPayments: {
|
|
433
387
|
token: "USDC" | "USDT";
|
|
@@ -449,20 +403,17 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
449
403
|
apiKeyId: string | null;
|
|
450
404
|
txHash: string | null;
|
|
451
405
|
createdAt: string;
|
|
452
|
-
expiresAt: string
|
|
406
|
+
expiresAt: string;
|
|
453
407
|
confirmedAt: string | null;
|
|
454
408
|
settledAt: string | null;
|
|
455
409
|
lastActivityAt: string;
|
|
456
|
-
pausedAt: string | null;
|
|
457
|
-
canceledAt: string | null;
|
|
458
410
|
}[];
|
|
459
411
|
nextCursor: string | null;
|
|
460
412
|
hasMore: boolean;
|
|
461
413
|
}, {
|
|
462
414
|
data: {
|
|
463
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
464
|
-
|
|
465
|
-
amount: number | null;
|
|
415
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
416
|
+
amount: number;
|
|
466
417
|
currency: string;
|
|
467
418
|
acceptedPayments: {
|
|
468
419
|
token: "USDC" | "USDT";
|
|
@@ -484,12 +435,10 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
484
435
|
apiKeyId: string | null;
|
|
485
436
|
txHash: string | null;
|
|
486
437
|
createdAt: string;
|
|
487
|
-
expiresAt: string
|
|
438
|
+
expiresAt: string;
|
|
488
439
|
confirmedAt: string | null;
|
|
489
440
|
settledAt: string | null;
|
|
490
441
|
lastActivityAt: string;
|
|
491
|
-
pausedAt: string | null;
|
|
492
|
-
canceledAt: string | null;
|
|
493
442
|
}[];
|
|
494
443
|
nextCursor: string | null;
|
|
495
444
|
hasMore: boolean;
|
|
@@ -508,130 +457,6 @@ declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
|
508
457
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
509
458
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
510
459
|
|
|
511
|
-
declare const PublicChargeSchema: z.ZodObject<{
|
|
512
|
-
id: z.ZodString;
|
|
513
|
-
mode: z.ZodEnum<["standard", "continuous"]>;
|
|
514
|
-
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid", "canceled"]>;
|
|
515
|
-
settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
|
|
516
|
-
amount: z.ZodNullable<z.ZodNumber>;
|
|
517
|
-
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
518
|
-
isOverpaid: z.ZodBoolean;
|
|
519
|
-
currency: z.ZodString;
|
|
520
|
-
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
521
|
-
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
522
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
523
|
-
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
token: "USDC" | "USDT";
|
|
525
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
526
|
-
}, {
|
|
527
|
-
token: "USDC" | "USDT";
|
|
528
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
529
|
-
}>, "many">;
|
|
530
|
-
paidWith: z.ZodArray<z.ZodObject<{
|
|
531
|
-
token: z.ZodEnum<["USDC", "USDT"]>;
|
|
532
|
-
network: z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>;
|
|
533
|
-
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
token: "USDC" | "USDT";
|
|
535
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
536
|
-
}, {
|
|
537
|
-
token: "USDC" | "USDT";
|
|
538
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
539
|
-
}>, "many">;
|
|
540
|
-
address: z.ZodString;
|
|
541
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
542
|
-
txHash: z.ZodNullable<z.ZodString>;
|
|
543
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
544
|
-
createdAt: z.ZodString;
|
|
545
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
546
|
-
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
547
|
-
settledAt: z.ZodNullable<z.ZodString>;
|
|
548
|
-
lastActivityAt: z.ZodString;
|
|
549
|
-
pausedAt: z.ZodNullable<z.ZodString>;
|
|
550
|
-
canceledAt: z.ZodNullable<z.ZodString>;
|
|
551
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | "canceled";
|
|
553
|
-
mode: "standard" | "continuous";
|
|
554
|
-
amount: number | null;
|
|
555
|
-
currency: string;
|
|
556
|
-
acceptedPayments: {
|
|
557
|
-
token: "USDC" | "USDT";
|
|
558
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
559
|
-
}[];
|
|
560
|
-
metadata: Record<string, unknown> | null;
|
|
561
|
-
id: string;
|
|
562
|
-
amountReceived: number | null;
|
|
563
|
-
isOverpaid: boolean;
|
|
564
|
-
paidWith: {
|
|
565
|
-
token: "USDC" | "USDT";
|
|
566
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
567
|
-
}[];
|
|
568
|
-
address: string;
|
|
569
|
-
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
570
|
-
environment: "live" | "test";
|
|
571
|
-
txHash: string | null;
|
|
572
|
-
createdAt: string;
|
|
573
|
-
expiresAt: string | null;
|
|
574
|
-
confirmedAt: string | null;
|
|
575
|
-
settledAt: string | null;
|
|
576
|
-
lastActivityAt: string;
|
|
577
|
-
pausedAt: string | null;
|
|
578
|
-
canceledAt: string | null;
|
|
579
|
-
}, {
|
|
580
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | "canceled";
|
|
581
|
-
mode: "standard" | "continuous";
|
|
582
|
-
amount: number | null;
|
|
583
|
-
currency: string;
|
|
584
|
-
acceptedPayments: {
|
|
585
|
-
token: "USDC" | "USDT";
|
|
586
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
587
|
-
}[];
|
|
588
|
-
metadata: Record<string, unknown> | null;
|
|
589
|
-
id: string;
|
|
590
|
-
amountReceived: number | null;
|
|
591
|
-
isOverpaid: boolean;
|
|
592
|
-
paidWith: {
|
|
593
|
-
token: "USDC" | "USDT";
|
|
594
|
-
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
595
|
-
}[];
|
|
596
|
-
address: string;
|
|
597
|
-
settlementStatus: "pending" | "completed" | "failed" | null;
|
|
598
|
-
environment: "live" | "test";
|
|
599
|
-
txHash: string | null;
|
|
600
|
-
createdAt: string;
|
|
601
|
-
expiresAt: string | null;
|
|
602
|
-
confirmedAt: string | null;
|
|
603
|
-
settledAt: string | null;
|
|
604
|
-
lastActivityAt: string;
|
|
605
|
-
pausedAt: string | null;
|
|
606
|
-
canceledAt: string | null;
|
|
607
|
-
}>;
|
|
608
|
-
type PublicCharge = z.infer<typeof PublicChargeSchema>;
|
|
609
|
-
declare const GetPublicChargeQuerySchema: z.ZodObject<{
|
|
610
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
611
|
-
}, "strip", z.ZodTypeAny, {
|
|
612
|
-
environment: "live" | "test";
|
|
613
|
-
}, {
|
|
614
|
-
environment: "live" | "test";
|
|
615
|
-
}>;
|
|
616
|
-
type GetPublicChargeQuery = z.infer<typeof GetPublicChargeQuerySchema>;
|
|
617
|
-
type GetPublicChargeQueryRequest = z.input<typeof GetPublicChargeQuerySchema>;
|
|
618
|
-
declare const GetPublicChargeQrCodeQuerySchema: z.ZodObject<{
|
|
619
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
620
|
-
} & {
|
|
621
|
-
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
622
|
-
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
623
|
-
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
environment: "live" | "test";
|
|
625
|
-
token?: "USDC" | "USDT" | undefined;
|
|
626
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
627
|
-
}, {
|
|
628
|
-
environment: "live" | "test";
|
|
629
|
-
token?: "USDC" | "USDT" | undefined;
|
|
630
|
-
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
631
|
-
}>;
|
|
632
|
-
type GetPublicChargeQrCodeQuery = z.infer<typeof GetPublicChargeQrCodeQuerySchema>;
|
|
633
|
-
type GetPublicChargeQrCodeQueryRequest = z.input<typeof GetPublicChargeQrCodeQuerySchema>;
|
|
634
|
-
|
|
635
460
|
declare const SplitDistributionStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
636
461
|
type SplitDistributionStatus = z.infer<typeof SplitDistributionStatusSchema>;
|
|
637
462
|
declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
@@ -869,7 +694,7 @@ declare const MetricsAggregationSchema: z.ZodEnum<["count", "sum", "avg", "min",
|
|
|
869
694
|
type MetricsAggregation = z.infer<typeof MetricsAggregationSchema>;
|
|
870
695
|
declare const MetricsFilterOperatorSchema: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
871
696
|
type MetricsFilterOperator = z.infer<typeof MetricsFilterOperatorSchema>;
|
|
872
|
-
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month"]>;
|
|
697
|
+
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
873
698
|
type MetricsDateGranularity = z.infer<typeof MetricsDateGranularitySchema>;
|
|
874
699
|
declare const MAX_METRICS_QUERY_DATE_RANGE_DAYS = 366;
|
|
875
700
|
declare const METRICS_QUERY_MAX_ROW_LIMIT = 1000;
|
|
@@ -877,11 +702,11 @@ declare const METRICS_QUERY_DEFAULT_ROW_LIMIT = 100;
|
|
|
877
702
|
declare const METRICS_QUERY_MAX_GROUP_BY = 3;
|
|
878
703
|
declare const METRICS_QUERY_MAX_FILTERS = 20;
|
|
879
704
|
declare const METRICS_QUERY_MAX_METRICS = 10;
|
|
880
|
-
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "
|
|
705
|
+
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
881
706
|
type ChargesQueryField = z.infer<typeof ChargesQueryFieldSchema>;
|
|
882
707
|
declare const ChargesMetricFieldSchema: z.ZodEnum<["amount", "amountReceived", "feePercent"]>;
|
|
883
708
|
type ChargesMetricField = z.infer<typeof ChargesMetricFieldSchema>;
|
|
884
|
-
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
709
|
+
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
885
710
|
type ChargesDateField = z.infer<typeof ChargesDateFieldSchema>;
|
|
886
711
|
declare const TransactionsQueryFieldSchema: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
887
712
|
type TransactionsQueryField = z.infer<typeof TransactionsQueryFieldSchema>;
|
|
@@ -889,49 +714,49 @@ declare const TransactionsMetricFieldSchema: z.ZodEnum<["amount"]>;
|
|
|
889
714
|
type TransactionsMetricField = z.infer<typeof TransactionsMetricFieldSchema>;
|
|
890
715
|
declare const TransactionsDateFieldSchema: z.ZodEnum<["detectedAt"]>;
|
|
891
716
|
type TransactionsDateField = z.infer<typeof TransactionsDateFieldSchema>;
|
|
892
|
-
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token"]>;
|
|
717
|
+
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
893
718
|
type DistributionsQueryField = z.infer<typeof DistributionsQueryFieldSchema>;
|
|
894
719
|
declare const DistributionsMetricFieldSchema: z.ZodEnum<["attempts"]>;
|
|
895
720
|
type DistributionsMetricField = z.infer<typeof DistributionsMetricFieldSchema>;
|
|
896
|
-
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
721
|
+
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
897
722
|
type DistributionsDateField = z.infer<typeof DistributionsDateFieldSchema>;
|
|
898
723
|
declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource", [z.ZodObject<{
|
|
899
724
|
resource: z.ZodLiteral<"charges">;
|
|
900
725
|
environment: z.ZodEnum<["live", "test"]>;
|
|
901
726
|
dateRange: z.ZodObject<{
|
|
902
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
727
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
903
728
|
from: z.ZodString;
|
|
904
729
|
to: z.ZodString;
|
|
905
730
|
}, "strip", z.ZodTypeAny, {
|
|
906
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
731
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
907
732
|
from: string;
|
|
908
733
|
to: string;
|
|
909
734
|
}, {
|
|
910
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
735
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
911
736
|
from: string;
|
|
912
737
|
to: string;
|
|
913
738
|
}>;
|
|
914
739
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
915
740
|
type: z.ZodLiteral<"field">;
|
|
916
|
-
field: z.ZodEnum<["status", "
|
|
741
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
917
742
|
}, "strip", z.ZodTypeAny, {
|
|
918
743
|
type: "field";
|
|
919
|
-
field: "status" | "
|
|
744
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
920
745
|
}, {
|
|
921
746
|
type: "field";
|
|
922
|
-
field: "status" | "
|
|
747
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
923
748
|
}>, z.ZodObject<{
|
|
924
749
|
type: z.ZodLiteral<"date_bucket">;
|
|
925
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
926
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
750
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
751
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
927
752
|
}, "strip", z.ZodTypeAny, {
|
|
928
753
|
type: "date_bucket";
|
|
929
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
930
|
-
granularity: "day" | "week" | "month";
|
|
754
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
755
|
+
granularity: "day" | "week" | "month" | "year";
|
|
931
756
|
}, {
|
|
932
757
|
type: "date_bucket";
|
|
933
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
934
|
-
granularity: "day" | "week" | "month";
|
|
758
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
759
|
+
granularity: "day" | "week" | "month" | "year";
|
|
935
760
|
}>]>, "many">>;
|
|
936
761
|
metrics: z.ZodArray<z.ZodObject<{
|
|
937
762
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -947,16 +772,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
947
772
|
alias?: string | undefined;
|
|
948
773
|
}>, "many">;
|
|
949
774
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
950
|
-
field: z.ZodEnum<["status", "
|
|
775
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
951
776
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
952
777
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
953
778
|
}, "strip", z.ZodTypeAny, {
|
|
954
779
|
value: string | number | boolean | (string | number)[];
|
|
955
|
-
field: "status" | "
|
|
780
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
956
781
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
957
782
|
}, {
|
|
958
783
|
value: string | number | boolean | (string | number)[];
|
|
959
|
-
field: "status" | "
|
|
784
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
960
785
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
961
786
|
}>, "many">>;
|
|
962
787
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -975,17 +800,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
975
800
|
environment: "live" | "test";
|
|
976
801
|
resource: "charges";
|
|
977
802
|
dateRange: {
|
|
978
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
803
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
979
804
|
from: string;
|
|
980
805
|
to: string;
|
|
981
806
|
};
|
|
982
807
|
groupBy: ({
|
|
983
808
|
type: "field";
|
|
984
|
-
field: "status" | "
|
|
809
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
985
810
|
} | {
|
|
986
811
|
type: "date_bucket";
|
|
987
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
988
|
-
granularity: "day" | "week" | "month";
|
|
812
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
813
|
+
granularity: "day" | "week" | "month" | "year";
|
|
989
814
|
})[];
|
|
990
815
|
metrics: {
|
|
991
816
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -994,7 +819,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
994
819
|
}[];
|
|
995
820
|
filters: {
|
|
996
821
|
value: string | number | boolean | (string | number)[];
|
|
997
|
-
field: "status" | "
|
|
822
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
998
823
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
999
824
|
}[];
|
|
1000
825
|
orderBy?: {
|
|
@@ -1005,7 +830,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1005
830
|
environment: "live" | "test";
|
|
1006
831
|
resource: "charges";
|
|
1007
832
|
dateRange: {
|
|
1008
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
833
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1009
834
|
from: string;
|
|
1010
835
|
to: string;
|
|
1011
836
|
};
|
|
@@ -1017,15 +842,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1017
842
|
limit?: number | undefined;
|
|
1018
843
|
groupBy?: ({
|
|
1019
844
|
type: "field";
|
|
1020
|
-
field: "status" | "
|
|
845
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1021
846
|
} | {
|
|
1022
847
|
type: "date_bucket";
|
|
1023
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1024
|
-
granularity: "day" | "week" | "month";
|
|
848
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
849
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1025
850
|
})[] | undefined;
|
|
1026
851
|
filters?: {
|
|
1027
852
|
value: string | number | boolean | (string | number)[];
|
|
1028
|
-
field: "status" | "
|
|
853
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1029
854
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1030
855
|
}[] | undefined;
|
|
1031
856
|
orderBy?: {
|
|
@@ -1060,15 +885,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1060
885
|
}>, z.ZodObject<{
|
|
1061
886
|
type: z.ZodLiteral<"date_bucket">;
|
|
1062
887
|
field: z.ZodEnum<["detectedAt"]>;
|
|
1063
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
888
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1064
889
|
}, "strip", z.ZodTypeAny, {
|
|
1065
890
|
type: "date_bucket";
|
|
1066
891
|
field: "detectedAt";
|
|
1067
|
-
granularity: "day" | "week" | "month";
|
|
892
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1068
893
|
}, {
|
|
1069
894
|
type: "date_bucket";
|
|
1070
895
|
field: "detectedAt";
|
|
1071
|
-
granularity: "day" | "week" | "month";
|
|
896
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1072
897
|
}>]>, "many">>;
|
|
1073
898
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1074
899
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1122,7 +947,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1122
947
|
} | {
|
|
1123
948
|
type: "date_bucket";
|
|
1124
949
|
field: "detectedAt";
|
|
1125
|
-
granularity: "day" | "week" | "month";
|
|
950
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1126
951
|
})[];
|
|
1127
952
|
metrics: {
|
|
1128
953
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1158,7 +983,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1158
983
|
} | {
|
|
1159
984
|
type: "date_bucket";
|
|
1160
985
|
field: "detectedAt";
|
|
1161
|
-
granularity: "day" | "week" | "month";
|
|
986
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1162
987
|
})[] | undefined;
|
|
1163
988
|
filters?: {
|
|
1164
989
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1173,39 +998,39 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1173
998
|
resource: z.ZodLiteral<"distributions">;
|
|
1174
999
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1175
1000
|
dateRange: z.ZodObject<{
|
|
1176
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1001
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1177
1002
|
from: z.ZodString;
|
|
1178
1003
|
to: z.ZodString;
|
|
1179
1004
|
}, "strip", z.ZodTypeAny, {
|
|
1180
|
-
field: "createdAt" | "completedAt";
|
|
1005
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1181
1006
|
from: string;
|
|
1182
1007
|
to: string;
|
|
1183
1008
|
}, {
|
|
1184
|
-
field: "createdAt" | "completedAt";
|
|
1009
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1185
1010
|
from: string;
|
|
1186
1011
|
to: string;
|
|
1187
1012
|
}>;
|
|
1188
1013
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1189
1014
|
type: z.ZodLiteral<"field">;
|
|
1190
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1015
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1191
1016
|
}, "strip", z.ZodTypeAny, {
|
|
1192
1017
|
type: "field";
|
|
1193
|
-
field: "status" | "token" | "network";
|
|
1018
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1194
1019
|
}, {
|
|
1195
1020
|
type: "field";
|
|
1196
|
-
field: "status" | "token" | "network";
|
|
1021
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1197
1022
|
}>, z.ZodObject<{
|
|
1198
1023
|
type: z.ZodLiteral<"date_bucket">;
|
|
1199
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1200
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
1024
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1025
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1201
1026
|
}, "strip", z.ZodTypeAny, {
|
|
1202
1027
|
type: "date_bucket";
|
|
1203
|
-
field: "createdAt" | "completedAt";
|
|
1204
|
-
granularity: "day" | "week" | "month";
|
|
1028
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1029
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1205
1030
|
}, {
|
|
1206
1031
|
type: "date_bucket";
|
|
1207
|
-
field: "createdAt" | "completedAt";
|
|
1208
|
-
granularity: "day" | "week" | "month";
|
|
1032
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1033
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1209
1034
|
}>]>, "many">>;
|
|
1210
1035
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1211
1036
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1221,16 +1046,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1221
1046
|
alias?: string | undefined;
|
|
1222
1047
|
}>, "many">;
|
|
1223
1048
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1224
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1049
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1225
1050
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
1226
1051
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
1227
1052
|
}, "strip", z.ZodTypeAny, {
|
|
1228
1053
|
value: string | number | boolean | (string | number)[];
|
|
1229
|
-
field: "status" | "token" | "network";
|
|
1054
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1230
1055
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1231
1056
|
}, {
|
|
1232
1057
|
value: string | number | boolean | (string | number)[];
|
|
1233
|
-
field: "status" | "token" | "network";
|
|
1058
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1234
1059
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1235
1060
|
}>, "many">>;
|
|
1236
1061
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1249,17 +1074,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1249
1074
|
environment: "live" | "test";
|
|
1250
1075
|
resource: "distributions";
|
|
1251
1076
|
dateRange: {
|
|
1252
|
-
field: "createdAt" | "completedAt";
|
|
1077
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1253
1078
|
from: string;
|
|
1254
1079
|
to: string;
|
|
1255
1080
|
};
|
|
1256
1081
|
groupBy: ({
|
|
1257
1082
|
type: "field";
|
|
1258
|
-
field: "status" | "token" | "network";
|
|
1083
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1259
1084
|
} | {
|
|
1260
1085
|
type: "date_bucket";
|
|
1261
|
-
field: "createdAt" | "completedAt";
|
|
1262
|
-
granularity: "day" | "week" | "month";
|
|
1086
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1087
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1263
1088
|
})[];
|
|
1264
1089
|
metrics: {
|
|
1265
1090
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1268,7 +1093,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1268
1093
|
}[];
|
|
1269
1094
|
filters: {
|
|
1270
1095
|
value: string | number | boolean | (string | number)[];
|
|
1271
|
-
field: "status" | "token" | "network";
|
|
1096
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1272
1097
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1273
1098
|
}[];
|
|
1274
1099
|
orderBy?: {
|
|
@@ -1279,7 +1104,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1279
1104
|
environment: "live" | "test";
|
|
1280
1105
|
resource: "distributions";
|
|
1281
1106
|
dateRange: {
|
|
1282
|
-
field: "createdAt" | "completedAt";
|
|
1107
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1283
1108
|
from: string;
|
|
1284
1109
|
to: string;
|
|
1285
1110
|
};
|
|
@@ -1291,15 +1116,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1291
1116
|
limit?: number | undefined;
|
|
1292
1117
|
groupBy?: ({
|
|
1293
1118
|
type: "field";
|
|
1294
|
-
field: "status" | "token" | "network";
|
|
1119
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1295
1120
|
} | {
|
|
1296
1121
|
type: "date_bucket";
|
|
1297
|
-
field: "createdAt" | "completedAt";
|
|
1298
|
-
granularity: "day" | "week" | "month";
|
|
1122
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1123
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1299
1124
|
})[] | undefined;
|
|
1300
1125
|
filters?: {
|
|
1301
1126
|
value: string | number | boolean | (string | number)[];
|
|
1302
|
-
field: "status" | "token" | "network";
|
|
1127
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1303
1128
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1304
1129
|
}[] | undefined;
|
|
1305
1130
|
orderBy?: {
|
|
@@ -1311,17 +1136,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1311
1136
|
environment: "live" | "test";
|
|
1312
1137
|
resource: "charges";
|
|
1313
1138
|
dateRange: {
|
|
1314
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1139
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1315
1140
|
from: string;
|
|
1316
1141
|
to: string;
|
|
1317
1142
|
};
|
|
1318
1143
|
groupBy: ({
|
|
1319
1144
|
type: "field";
|
|
1320
|
-
field: "status" | "
|
|
1145
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1321
1146
|
} | {
|
|
1322
1147
|
type: "date_bucket";
|
|
1323
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1324
|
-
granularity: "day" | "week" | "month";
|
|
1148
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1149
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1325
1150
|
})[];
|
|
1326
1151
|
metrics: {
|
|
1327
1152
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1330,7 +1155,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1330
1155
|
}[];
|
|
1331
1156
|
filters: {
|
|
1332
1157
|
value: string | number | boolean | (string | number)[];
|
|
1333
|
-
field: "status" | "
|
|
1158
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1334
1159
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1335
1160
|
}[];
|
|
1336
1161
|
orderBy?: {
|
|
@@ -1352,7 +1177,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1352
1177
|
} | {
|
|
1353
1178
|
type: "date_bucket";
|
|
1354
1179
|
field: "detectedAt";
|
|
1355
|
-
granularity: "day" | "week" | "month";
|
|
1180
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1356
1181
|
})[];
|
|
1357
1182
|
metrics: {
|
|
1358
1183
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1373,17 +1198,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1373
1198
|
environment: "live" | "test";
|
|
1374
1199
|
resource: "distributions";
|
|
1375
1200
|
dateRange: {
|
|
1376
|
-
field: "createdAt" | "completedAt";
|
|
1201
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1377
1202
|
from: string;
|
|
1378
1203
|
to: string;
|
|
1379
1204
|
};
|
|
1380
1205
|
groupBy: ({
|
|
1381
1206
|
type: "field";
|
|
1382
|
-
field: "status" | "token" | "network";
|
|
1207
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1383
1208
|
} | {
|
|
1384
1209
|
type: "date_bucket";
|
|
1385
|
-
field: "createdAt" | "completedAt";
|
|
1386
|
-
granularity: "day" | "week" | "month";
|
|
1210
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1211
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1387
1212
|
})[];
|
|
1388
1213
|
metrics: {
|
|
1389
1214
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1392,7 +1217,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1392
1217
|
}[];
|
|
1393
1218
|
filters: {
|
|
1394
1219
|
value: string | number | boolean | (string | number)[];
|
|
1395
|
-
field: "status" | "token" | "network";
|
|
1220
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1396
1221
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1397
1222
|
}[];
|
|
1398
1223
|
orderBy?: {
|
|
@@ -1403,7 +1228,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1403
1228
|
environment: "live" | "test";
|
|
1404
1229
|
resource: "charges";
|
|
1405
1230
|
dateRange: {
|
|
1406
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1231
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1407
1232
|
from: string;
|
|
1408
1233
|
to: string;
|
|
1409
1234
|
};
|
|
@@ -1415,15 +1240,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1415
1240
|
limit?: number | undefined;
|
|
1416
1241
|
groupBy?: ({
|
|
1417
1242
|
type: "field";
|
|
1418
|
-
field: "status" | "
|
|
1243
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1419
1244
|
} | {
|
|
1420
1245
|
type: "date_bucket";
|
|
1421
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1422
|
-
granularity: "day" | "week" | "month";
|
|
1246
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1247
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1423
1248
|
})[] | undefined;
|
|
1424
1249
|
filters?: {
|
|
1425
1250
|
value: string | number | boolean | (string | number)[];
|
|
1426
|
-
field: "status" | "
|
|
1251
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1427
1252
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1428
1253
|
}[] | undefined;
|
|
1429
1254
|
orderBy?: {
|
|
@@ -1450,7 +1275,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1450
1275
|
} | {
|
|
1451
1276
|
type: "date_bucket";
|
|
1452
1277
|
field: "detectedAt";
|
|
1453
|
-
granularity: "day" | "week" | "month";
|
|
1278
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1454
1279
|
})[] | undefined;
|
|
1455
1280
|
filters?: {
|
|
1456
1281
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1465,7 +1290,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1465
1290
|
environment: "live" | "test";
|
|
1466
1291
|
resource: "distributions";
|
|
1467
1292
|
dateRange: {
|
|
1468
|
-
field: "createdAt" | "completedAt";
|
|
1293
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1469
1294
|
from: string;
|
|
1470
1295
|
to: string;
|
|
1471
1296
|
};
|
|
@@ -1477,15 +1302,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1477
1302
|
limit?: number | undefined;
|
|
1478
1303
|
groupBy?: ({
|
|
1479
1304
|
type: "field";
|
|
1480
|
-
field: "status" | "token" | "network";
|
|
1305
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1481
1306
|
} | {
|
|
1482
1307
|
type: "date_bucket";
|
|
1483
|
-
field: "createdAt" | "completedAt";
|
|
1484
|
-
granularity: "day" | "week" | "month";
|
|
1308
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1309
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1485
1310
|
})[] | undefined;
|
|
1486
1311
|
filters?: {
|
|
1487
1312
|
value: string | number | boolean | (string | number)[];
|
|
1488
|
-
field: "status" | "token" | "network";
|
|
1313
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1489
1314
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1490
1315
|
}[] | undefined;
|
|
1491
1316
|
orderBy?: {
|
|
@@ -1497,26 +1322,21 @@ type MetricsQuery = z.infer<typeof MetricsQuerySchema>;
|
|
|
1497
1322
|
type MetricsQueryRequest = z.input<typeof MetricsQuerySchema>;
|
|
1498
1323
|
declare const MetricsQueryResultRowSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1499
1324
|
type MetricsQueryResultRow = z.infer<typeof MetricsQueryResultRowSchema>;
|
|
1500
|
-
declare const MetricsQueryScopeSchema: z.ZodEnum<["owner_admin", "member"]>;
|
|
1501
|
-
type MetricsQueryScope = z.infer<typeof MetricsQueryScopeSchema>;
|
|
1502
1325
|
declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
1503
1326
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
|
|
1504
1327
|
meta: z.ZodObject<{
|
|
1505
1328
|
resource: z.ZodEnum<["charges", "transactions", "distributions"]>;
|
|
1506
1329
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1507
|
-
scope: z.ZodEnum<["owner_admin", "member"]>;
|
|
1508
1330
|
rowCount: z.ZodNumber;
|
|
1509
1331
|
truncated: z.ZodBoolean;
|
|
1510
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1511
1333
|
environment: "live" | "test";
|
|
1512
1334
|
resource: "charges" | "transactions" | "distributions";
|
|
1513
|
-
scope: "owner_admin" | "member";
|
|
1514
1335
|
rowCount: number;
|
|
1515
1336
|
truncated: boolean;
|
|
1516
1337
|
}, {
|
|
1517
1338
|
environment: "live" | "test";
|
|
1518
1339
|
resource: "charges" | "transactions" | "distributions";
|
|
1519
|
-
scope: "owner_admin" | "member";
|
|
1520
1340
|
rowCount: number;
|
|
1521
1341
|
truncated: boolean;
|
|
1522
1342
|
}>;
|
|
@@ -1525,7 +1345,6 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1525
1345
|
meta: {
|
|
1526
1346
|
environment: "live" | "test";
|
|
1527
1347
|
resource: "charges" | "transactions" | "distributions";
|
|
1528
|
-
scope: "owner_admin" | "member";
|
|
1529
1348
|
rowCount: number;
|
|
1530
1349
|
truncated: boolean;
|
|
1531
1350
|
};
|
|
@@ -1534,232 +1353,28 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1534
1353
|
meta: {
|
|
1535
1354
|
environment: "live" | "test";
|
|
1536
1355
|
resource: "charges" | "transactions" | "distributions";
|
|
1537
|
-
scope: "owner_admin" | "member";
|
|
1538
1356
|
rowCount: number;
|
|
1539
1357
|
truncated: boolean;
|
|
1540
1358
|
};
|
|
1541
1359
|
}>;
|
|
1542
1360
|
type MetricsQueryResult = z.infer<typeof MetricsQueryResultSchema>;
|
|
1543
1361
|
|
|
1544
|
-
declare const ChargeWebhookEventTypeSchema: z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1545
|
-
declare const AccountWebhookEventTypeSchema: z.ZodEnum<["payout_address.changed", "api_key.created", "api_key.revoked", "webhook.created", "webhook.deleted", "webhook.secret_rotated", "fee_tier.updated", "member.removed", "member.role_changed", "member.invited"]>;
|
|
1362
|
+
declare const ChargeWebhookEventTypeSchema: z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
1546
1363
|
declare const WebhookDeliveryEventTypeSchema: z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>;
|
|
1547
|
-
declare const
|
|
1548
|
-
declare const WebhookEventTypeSchema: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid", "charge.paused", "charge.reactivated", "charge.contribution_received", "charge.contribution_settled", "charge.canceled", "charge.paid_after_cancel"]>, z.ZodEnum<["payout_address.changed", "api_key.created", "api_key.revoked", "webhook.created", "webhook.deleted", "webhook.secret_rotated", "fee_tier.updated", "member.removed", "member.role_changed", "member.invited"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>, z.ZodEnum<["auth.login", "auth.login_failed", "auth.suspicious_activity", "auth.email_verified", "auth.password_reset_requested", "auth.password_reset_completed", "auth.password_changed", "auth.email_change_requested", "auth.email_changed"]>]>;
|
|
1364
|
+
declare const WebhookEventTypeSchema: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>;
|
|
1549
1365
|
type WebhookEventType = z.infer<typeof WebhookEventTypeSchema>;
|
|
1550
|
-
declare const WebhookCategorySchema: z.ZodEnum<["payments", "
|
|
1366
|
+
declare const WebhookCategorySchema: z.ZodEnum<["payments", "webhooks"]>;
|
|
1551
1367
|
type WebhookCategory = z.infer<typeof WebhookCategorySchema>;
|
|
1552
|
-
declare const EVENT_CATEGORY_MAP: Record<"charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1368
|
+
declare const EVENT_CATEGORY_MAP: Record<"charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy", "payments" | "webhooks">;
|
|
1553
1369
|
declare const WEBHOOK_EVENT_CATEGORIES: Record<WebhookCategory, readonly WebhookEventType[]>;
|
|
1554
1370
|
declare const TriggerableChargeEventSchema: z.ZodEnum<["charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
1555
1371
|
type TriggerableChargeEvent = z.infer<typeof TriggerableChargeEventSchema>;
|
|
1556
|
-
declare const NonChargeTriggerableEventSchema: z.ZodUnion<[z.ZodEnum<["payout_address.changed", "api_key.created", "api_key.revoked", "webhook.created", "webhook.deleted", "webhook.secret_rotated", "fee_tier.updated", "member.removed", "member.role_changed", "member.invited"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>, z.ZodEnum<["auth.login", "auth.login_failed", "auth.suspicious_activity", "auth.email_verified", "auth.password_reset_requested", "auth.password_reset_completed", "auth.password_changed", "auth.email_change_requested", "auth.email_changed"]>]>;
|
|
1557
|
-
type NonChargeTriggerableEvent = z.infer<typeof NonChargeTriggerableEventSchema>;
|
|
1558
|
-
|
|
1559
|
-
declare const UserRoleSchema: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1560
|
-
type UserRole = z.infer<typeof UserRoleSchema>;
|
|
1561
|
-
declare const UpdateUserRoleSchema: z.ZodObject<{
|
|
1562
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1563
|
-
}, "strip", z.ZodTypeAny, {
|
|
1564
|
-
role: "member" | "owner" | "admin";
|
|
1565
|
-
}, {
|
|
1566
|
-
role: "member" | "owner" | "admin";
|
|
1567
|
-
}>;
|
|
1568
|
-
type UpdateUserRoleInput = z.infer<typeof UpdateUserRoleSchema>;
|
|
1569
|
-
declare const UserSchema: z.ZodObject<{
|
|
1570
|
-
id: z.ZodString;
|
|
1571
|
-
email: z.ZodString;
|
|
1572
|
-
name: z.ZodNullable<z.ZodString>;
|
|
1573
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1574
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
1575
|
-
createdAt: z.ZodString;
|
|
1576
|
-
}, "strip", z.ZodTypeAny, {
|
|
1577
|
-
id: string;
|
|
1578
|
-
createdAt: string;
|
|
1579
|
-
role: "member" | "owner" | "admin";
|
|
1580
|
-
email: string;
|
|
1581
|
-
name: string | null;
|
|
1582
|
-
emailVerifiedAt: string | null;
|
|
1583
|
-
}, {
|
|
1584
|
-
id: string;
|
|
1585
|
-
createdAt: string;
|
|
1586
|
-
role: "member" | "owner" | "admin";
|
|
1587
|
-
email: string;
|
|
1588
|
-
name: string | null;
|
|
1589
|
-
emailVerifiedAt: string | null;
|
|
1590
|
-
}>;
|
|
1591
|
-
type User = z.infer<typeof UserSchema>;
|
|
1592
|
-
declare const ListUsersSchema: z.ZodObject<{
|
|
1593
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
1594
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1595
|
-
}, "strip", z.ZodTypeAny, {
|
|
1596
|
-
limit: number;
|
|
1597
|
-
cursor?: string | undefined;
|
|
1598
|
-
}, {
|
|
1599
|
-
limit?: number | undefined;
|
|
1600
|
-
cursor?: string | undefined;
|
|
1601
|
-
}>;
|
|
1602
|
-
type ListUsersInput = z.infer<typeof ListUsersSchema>;
|
|
1603
|
-
type ListUsersRequest = z.input<typeof ListUsersSchema>;
|
|
1604
|
-
declare const PaginatedUsersSchema: z.ZodObject<{
|
|
1605
|
-
data: z.ZodArray<z.ZodObject<{
|
|
1606
|
-
id: z.ZodString;
|
|
1607
|
-
email: z.ZodString;
|
|
1608
|
-
name: z.ZodNullable<z.ZodString>;
|
|
1609
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1610
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
1611
|
-
createdAt: z.ZodString;
|
|
1612
|
-
}, "strip", z.ZodTypeAny, {
|
|
1613
|
-
id: string;
|
|
1614
|
-
createdAt: string;
|
|
1615
|
-
role: "member" | "owner" | "admin";
|
|
1616
|
-
email: string;
|
|
1617
|
-
name: string | null;
|
|
1618
|
-
emailVerifiedAt: string | null;
|
|
1619
|
-
}, {
|
|
1620
|
-
id: string;
|
|
1621
|
-
createdAt: string;
|
|
1622
|
-
role: "member" | "owner" | "admin";
|
|
1623
|
-
email: string;
|
|
1624
|
-
name: string | null;
|
|
1625
|
-
emailVerifiedAt: string | null;
|
|
1626
|
-
}>, "many">;
|
|
1627
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1628
|
-
hasMore: z.ZodBoolean;
|
|
1629
|
-
}, "strip", z.ZodTypeAny, {
|
|
1630
|
-
data: {
|
|
1631
|
-
id: string;
|
|
1632
|
-
createdAt: string;
|
|
1633
|
-
role: "member" | "owner" | "admin";
|
|
1634
|
-
email: string;
|
|
1635
|
-
name: string | null;
|
|
1636
|
-
emailVerifiedAt: string | null;
|
|
1637
|
-
}[];
|
|
1638
|
-
nextCursor: string | null;
|
|
1639
|
-
hasMore: boolean;
|
|
1640
|
-
}, {
|
|
1641
|
-
data: {
|
|
1642
|
-
id: string;
|
|
1643
|
-
createdAt: string;
|
|
1644
|
-
role: "member" | "owner" | "admin";
|
|
1645
|
-
email: string;
|
|
1646
|
-
name: string | null;
|
|
1647
|
-
emailVerifiedAt: string | null;
|
|
1648
|
-
}[];
|
|
1649
|
-
nextCursor: string | null;
|
|
1650
|
-
hasMore: boolean;
|
|
1651
|
-
}>;
|
|
1652
|
-
type PaginatedUsers = z.infer<typeof PaginatedUsersSchema>;
|
|
1653
1372
|
|
|
1654
|
-
type PayoutAddressChangedData = {
|
|
1655
|
-
organizationId: string;
|
|
1656
|
-
from: string | null;
|
|
1657
|
-
to: string;
|
|
1658
|
-
};
|
|
1659
|
-
type ApiKeyEventData = {
|
|
1660
|
-
apiKeyId: string;
|
|
1661
|
-
name: string;
|
|
1662
|
-
environment: z.infer<typeof EnvironmentSchema>;
|
|
1663
|
-
hint: string;
|
|
1664
|
-
};
|
|
1665
|
-
type WebhookConfigEventData = {
|
|
1666
|
-
webhookId: string;
|
|
1667
|
-
url: string;
|
|
1668
|
-
};
|
|
1669
1373
|
type WebhookHealthEventData = {
|
|
1670
1374
|
webhookId: string;
|
|
1671
1375
|
url: string;
|
|
1672
1376
|
failureRatio?: number;
|
|
1673
1377
|
};
|
|
1674
|
-
type FeeTierUpdatedData = {
|
|
1675
|
-
organizationId: string;
|
|
1676
|
-
previousFeePercent: number;
|
|
1677
|
-
newFeePercent: number;
|
|
1678
|
-
};
|
|
1679
|
-
type MemberEventData = {
|
|
1680
|
-
userId: string;
|
|
1681
|
-
email: string;
|
|
1682
|
-
role: z.infer<typeof UserRoleSchema>;
|
|
1683
|
-
};
|
|
1684
|
-
type MemberRoleChangedData = MemberEventData & {
|
|
1685
|
-
previousRole: z.infer<typeof UserRoleSchema>;
|
|
1686
|
-
};
|
|
1687
|
-
type MemberInvitedData = {
|
|
1688
|
-
organizationId: string;
|
|
1689
|
-
email: string;
|
|
1690
|
-
role: z.infer<typeof UserRoleSchema>;
|
|
1691
|
-
invitedByUserId: string;
|
|
1692
|
-
};
|
|
1693
|
-
type AuthLoginData = {
|
|
1694
|
-
userId: string;
|
|
1695
|
-
ipAddress: string | null;
|
|
1696
|
-
};
|
|
1697
|
-
type AuthLoginFailedData = {
|
|
1698
|
-
email: string;
|
|
1699
|
-
ipAddress: string | null;
|
|
1700
|
-
};
|
|
1701
|
-
type AuthSuspiciousActivityData = AuthLoginData & {
|
|
1702
|
-
previousIpAddress: string | null;
|
|
1703
|
-
};
|
|
1704
|
-
type AuthEmailVerifiedData = {
|
|
1705
|
-
userId: string;
|
|
1706
|
-
email: string;
|
|
1707
|
-
};
|
|
1708
|
-
type AuthPasswordResetRequestedData = {
|
|
1709
|
-
userId: string;
|
|
1710
|
-
email: string;
|
|
1711
|
-
};
|
|
1712
|
-
type AuthPasswordResetCompletedData = {
|
|
1713
|
-
userId: string;
|
|
1714
|
-
email: string;
|
|
1715
|
-
};
|
|
1716
|
-
type AuthPasswordChangedData = {
|
|
1717
|
-
userId: string;
|
|
1718
|
-
email: string;
|
|
1719
|
-
};
|
|
1720
|
-
type AuthEmailChangeRequestedData = {
|
|
1721
|
-
userId: string;
|
|
1722
|
-
email: string;
|
|
1723
|
-
newEmail: string;
|
|
1724
|
-
};
|
|
1725
|
-
type AuthEmailChangedData = {
|
|
1726
|
-
userId: string;
|
|
1727
|
-
previousEmail: string;
|
|
1728
|
-
newEmail: string;
|
|
1729
|
-
};
|
|
1730
|
-
type ChargePausedData = {
|
|
1731
|
-
chargeId: string;
|
|
1732
|
-
lastActivityAt: string;
|
|
1733
|
-
pausedAt: string;
|
|
1734
|
-
};
|
|
1735
|
-
type ChargeReactivatedData = {
|
|
1736
|
-
chargeId: string;
|
|
1737
|
-
reactivatedAt: string;
|
|
1738
|
-
};
|
|
1739
|
-
type ChargeContributionReceivedData = {
|
|
1740
|
-
chargeId: string;
|
|
1741
|
-
token: Token;
|
|
1742
|
-
network: Network;
|
|
1743
|
-
amount: number;
|
|
1744
|
-
txHash: string;
|
|
1745
|
-
payerAddress: string;
|
|
1746
|
-
};
|
|
1747
|
-
type ChargeContributionSettledData = {
|
|
1748
|
-
chargeId: string;
|
|
1749
|
-
token: Token;
|
|
1750
|
-
network: Network;
|
|
1751
|
-
amount: number;
|
|
1752
|
-
txHash: string;
|
|
1753
|
-
distributorAddress: string | null;
|
|
1754
|
-
};
|
|
1755
|
-
type ChargePaidAfterCancelData = {
|
|
1756
|
-
chargeId: string;
|
|
1757
|
-
token: Token;
|
|
1758
|
-
network: Network;
|
|
1759
|
-
amount: number;
|
|
1760
|
-
txHash: string;
|
|
1761
|
-
payerAddress: string;
|
|
1762
|
-
};
|
|
1763
1378
|
type WebhookEventDataMap = {
|
|
1764
1379
|
'charge.created': Charge;
|
|
1765
1380
|
'charge.partially_paid': Charge;
|
|
@@ -1769,34 +1384,9 @@ type WebhookEventDataMap = {
|
|
|
1769
1384
|
'charge.settled': Charge;
|
|
1770
1385
|
'charge.settlement_failed': Charge;
|
|
1771
1386
|
'charge.overpaid': Charge;
|
|
1772
|
-
'charge.paused': ChargePausedData;
|
|
1773
|
-
'charge.reactivated': ChargeReactivatedData;
|
|
1774
|
-
'charge.contribution_received': ChargeContributionReceivedData;
|
|
1775
|
-
'charge.contribution_settled': ChargeContributionSettledData;
|
|
1776
|
-
'charge.canceled': Charge;
|
|
1777
|
-
'charge.paid_after_cancel': ChargePaidAfterCancelData;
|
|
1778
|
-
'payout_address.changed': PayoutAddressChangedData;
|
|
1779
|
-
'api_key.created': ApiKeyEventData;
|
|
1780
|
-
'api_key.revoked': ApiKeyEventData;
|
|
1781
|
-
'webhook.created': WebhookConfigEventData;
|
|
1782
|
-
'webhook.deleted': WebhookConfigEventData;
|
|
1783
|
-
'webhook.secret_rotated': WebhookConfigEventData;
|
|
1784
1387
|
'webhook.delivery_failed': WebhookHealthEventData;
|
|
1785
1388
|
'webhook.delivery_recovered': WebhookHealthEventData;
|
|
1786
1389
|
'webhook.endpoint_unhealthy': WebhookHealthEventData;
|
|
1787
|
-
'fee_tier.updated': FeeTierUpdatedData;
|
|
1788
|
-
'auth.login': AuthLoginData;
|
|
1789
|
-
'auth.login_failed': AuthLoginFailedData;
|
|
1790
|
-
'auth.suspicious_activity': AuthSuspiciousActivityData;
|
|
1791
|
-
'auth.email_verified': AuthEmailVerifiedData;
|
|
1792
|
-
'auth.password_reset_requested': AuthPasswordResetRequestedData;
|
|
1793
|
-
'auth.password_reset_completed': AuthPasswordResetCompletedData;
|
|
1794
|
-
'auth.password_changed': AuthPasswordChangedData;
|
|
1795
|
-
'auth.email_change_requested': AuthEmailChangeRequestedData;
|
|
1796
|
-
'auth.email_changed': AuthEmailChangedData;
|
|
1797
|
-
'member.removed': MemberEventData;
|
|
1798
|
-
'member.role_changed': MemberRoleChangedData;
|
|
1799
|
-
'member.invited': MemberInvitedData;
|
|
1800
1390
|
};
|
|
1801
1391
|
type TypedWebhookPayload = {
|
|
1802
1392
|
[E in WebhookEventType]: {
|
|
@@ -1810,29 +1400,29 @@ type TypedWebhookPayload = {
|
|
|
1810
1400
|
declare const WEBHOOK_EVENTS_WILDCARD = "*";
|
|
1811
1401
|
declare const CreateWebhookSchema: z.ZodEffects<z.ZodObject<{
|
|
1812
1402
|
url: z.ZodString;
|
|
1813
|
-
events: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1814
|
-
eventCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<["payments", "
|
|
1815
|
-
excludeEvents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1403
|
+
events: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, z.ZodLiteral<"*">]>, "many">>;
|
|
1404
|
+
eventCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">>;
|
|
1405
|
+
excludeEvents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, "many">>;
|
|
1816
1406
|
}, "strip", z.ZodTypeAny, {
|
|
1817
1407
|
url: string;
|
|
1818
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1819
|
-
eventCategories: ("payments" | "
|
|
1820
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1408
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "*")[];
|
|
1409
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1410
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1821
1411
|
}, {
|
|
1822
1412
|
url: string;
|
|
1823
|
-
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1824
|
-
eventCategories?: ("payments" | "
|
|
1825
|
-
excludeEvents?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1413
|
+
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "*")[] | undefined;
|
|
1414
|
+
eventCategories?: ("payments" | "webhooks")[] | undefined;
|
|
1415
|
+
excludeEvents?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[] | undefined;
|
|
1826
1416
|
}>, {
|
|
1827
1417
|
url: string;
|
|
1828
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1829
|
-
eventCategories: ("payments" | "
|
|
1830
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1418
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "*")[];
|
|
1419
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1420
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1831
1421
|
}, {
|
|
1832
1422
|
url: string;
|
|
1833
|
-
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1834
|
-
eventCategories?: ("payments" | "
|
|
1835
|
-
excludeEvents?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1423
|
+
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "*")[] | undefined;
|
|
1424
|
+
eventCategories?: ("payments" | "webhooks")[] | undefined;
|
|
1425
|
+
excludeEvents?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[] | undefined;
|
|
1836
1426
|
}>;
|
|
1837
1427
|
type CreateWebhookInput = z.infer<typeof CreateWebhookSchema>;
|
|
1838
1428
|
type CreateWebhookRequest = z.input<typeof CreateWebhookSchema>;
|
|
@@ -1840,9 +1430,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1840
1430
|
id: z.ZodString;
|
|
1841
1431
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1842
1432
|
url: z.ZodString;
|
|
1843
|
-
events: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1844
|
-
eventCategories: z.ZodArray<z.ZodEnum<["payments", "
|
|
1845
|
-
excludeEvents: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1433
|
+
events: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, "many">;
|
|
1434
|
+
eventCategories: z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">;
|
|
1435
|
+
excludeEvents: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, "many">;
|
|
1846
1436
|
isWildcard: z.ZodBoolean;
|
|
1847
1437
|
secret: z.ZodString;
|
|
1848
1438
|
createdAt: z.ZodString;
|
|
@@ -1851,9 +1441,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1851
1441
|
environment: "live" | "test" | null;
|
|
1852
1442
|
createdAt: string;
|
|
1853
1443
|
url: string;
|
|
1854
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1855
|
-
eventCategories: ("payments" | "
|
|
1856
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1444
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1445
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1446
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1857
1447
|
isWildcard: boolean;
|
|
1858
1448
|
secret: string;
|
|
1859
1449
|
}, {
|
|
@@ -1861,9 +1451,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1861
1451
|
environment: "live" | "test" | null;
|
|
1862
1452
|
createdAt: string;
|
|
1863
1453
|
url: string;
|
|
1864
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1865
|
-
eventCategories: ("payments" | "
|
|
1866
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1454
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1455
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1456
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1867
1457
|
isWildcard: boolean;
|
|
1868
1458
|
secret: string;
|
|
1869
1459
|
}>;
|
|
@@ -1872,9 +1462,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1872
1462
|
id: z.ZodString;
|
|
1873
1463
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1874
1464
|
url: z.ZodString;
|
|
1875
|
-
events: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1876
|
-
eventCategories: z.ZodArray<z.ZodEnum<["payments", "
|
|
1877
|
-
excludeEvents: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1465
|
+
events: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, "many">;
|
|
1466
|
+
eventCategories: z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">;
|
|
1467
|
+
excludeEvents: z.ZodArray<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>, "many">;
|
|
1878
1468
|
isWildcard: z.ZodBoolean;
|
|
1879
1469
|
secret: z.ZodString;
|
|
1880
1470
|
createdAt: z.ZodString;
|
|
@@ -1885,9 +1475,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1885
1475
|
environment: "live" | "test" | null;
|
|
1886
1476
|
createdAt: string;
|
|
1887
1477
|
url: string;
|
|
1888
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1889
|
-
eventCategories: ("payments" | "
|
|
1890
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1478
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1479
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1480
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1891
1481
|
isWildcard: boolean;
|
|
1892
1482
|
hint: string;
|
|
1893
1483
|
}, {
|
|
@@ -1895,27 +1485,27 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1895
1485
|
environment: "live" | "test" | null;
|
|
1896
1486
|
createdAt: string;
|
|
1897
1487
|
url: string;
|
|
1898
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1899
|
-
eventCategories: ("payments" | "
|
|
1900
|
-
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1488
|
+
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1489
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1490
|
+
excludeEvents: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy")[];
|
|
1901
1491
|
isWildcard: boolean;
|
|
1902
1492
|
hint: string;
|
|
1903
1493
|
}>;
|
|
1904
1494
|
type WebhookListItem = z.infer<typeof WebhookListItemSchema>;
|
|
1905
1495
|
declare const WebhookPayloadSchema: z.ZodObject<{
|
|
1906
1496
|
id: z.ZodString;
|
|
1907
|
-
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1497
|
+
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>;
|
|
1908
1498
|
createdAt: z.ZodString;
|
|
1909
1499
|
data: z.ZodUnknown;
|
|
1910
1500
|
}, "strip", z.ZodTypeAny, {
|
|
1911
1501
|
id: string;
|
|
1912
1502
|
createdAt: string;
|
|
1913
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1503
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1914
1504
|
data?: unknown;
|
|
1915
1505
|
}, {
|
|
1916
1506
|
id: string;
|
|
1917
1507
|
createdAt: string;
|
|
1918
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1508
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1919
1509
|
data?: unknown;
|
|
1920
1510
|
}>;
|
|
1921
1511
|
type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
|
|
@@ -1924,7 +1514,7 @@ type WebhookDeliveryStatus = z.infer<typeof WebhookDeliveryStatusSchema>;
|
|
|
1924
1514
|
declare const WebhookDeliverySchema: z.ZodObject<{
|
|
1925
1515
|
id: z.ZodString;
|
|
1926
1516
|
webhookId: z.ZodString;
|
|
1927
|
-
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1517
|
+
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>;
|
|
1928
1518
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1929
1519
|
attempts: z.ZodNumber;
|
|
1930
1520
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1936,7 +1526,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1936
1526
|
id: string;
|
|
1937
1527
|
createdAt: string;
|
|
1938
1528
|
attempts: number;
|
|
1939
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1529
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1940
1530
|
webhookId: string;
|
|
1941
1531
|
responseCode: number | null;
|
|
1942
1532
|
nextRetryAt: string | null;
|
|
@@ -1946,7 +1536,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1946
1536
|
id: string;
|
|
1947
1537
|
createdAt: string;
|
|
1948
1538
|
attempts: number;
|
|
1949
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1539
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1950
1540
|
webhookId: string;
|
|
1951
1541
|
responseCode: number | null;
|
|
1952
1542
|
nextRetryAt: string | null;
|
|
@@ -1969,7 +1559,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1969
1559
|
data: z.ZodArray<z.ZodObject<{
|
|
1970
1560
|
id: z.ZodString;
|
|
1971
1561
|
webhookId: z.ZodString;
|
|
1972
|
-
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1562
|
+
event: z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>;
|
|
1973
1563
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1974
1564
|
attempts: z.ZodNumber;
|
|
1975
1565
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1981,7 +1571,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1981
1571
|
id: string;
|
|
1982
1572
|
createdAt: string;
|
|
1983
1573
|
attempts: number;
|
|
1984
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1574
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1985
1575
|
webhookId: string;
|
|
1986
1576
|
responseCode: number | null;
|
|
1987
1577
|
nextRetryAt: string | null;
|
|
@@ -1991,7 +1581,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1991
1581
|
id: string;
|
|
1992
1582
|
createdAt: string;
|
|
1993
1583
|
attempts: number;
|
|
1994
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1584
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
1995
1585
|
webhookId: string;
|
|
1996
1586
|
responseCode: number | null;
|
|
1997
1587
|
nextRetryAt: string | null;
|
|
@@ -2005,7 +1595,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2005
1595
|
id: string;
|
|
2006
1596
|
createdAt: string;
|
|
2007
1597
|
attempts: number;
|
|
2008
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1598
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
2009
1599
|
webhookId: string;
|
|
2010
1600
|
responseCode: number | null;
|
|
2011
1601
|
nextRetryAt: string | null;
|
|
@@ -2019,7 +1609,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2019
1609
|
id: string;
|
|
2020
1610
|
createdAt: string;
|
|
2021
1611
|
attempts: number;
|
|
2022
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1612
|
+
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy";
|
|
2023
1613
|
webhookId: string;
|
|
2024
1614
|
responseCode: number | null;
|
|
2025
1615
|
nextRetryAt: string | null;
|
|
@@ -2030,457 +1620,12 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2030
1620
|
}>;
|
|
2031
1621
|
type PaginatedWebhookDeliveries = z.infer<typeof PaginatedWebhookDeliveriesSchema>;
|
|
2032
1622
|
|
|
2033
|
-
declare const CreateApiKeySchema: z.ZodObject<{
|
|
2034
|
-
name: z.ZodString;
|
|
2035
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2036
|
-
}, "strip", z.ZodTypeAny, {
|
|
2037
|
-
environment: "live" | "test";
|
|
2038
|
-
name: string;
|
|
2039
|
-
}, {
|
|
2040
|
-
environment: "live" | "test";
|
|
2041
|
-
name: string;
|
|
2042
|
-
}>;
|
|
2043
|
-
type CreateApiKeyInput = z.infer<typeof CreateApiKeySchema>;
|
|
2044
|
-
declare const ApiKeySchema: z.ZodObject<{
|
|
2045
|
-
id: z.ZodString;
|
|
2046
|
-
name: z.ZodString;
|
|
2047
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2048
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2049
|
-
hint: z.ZodString;
|
|
2050
|
-
createdAt: z.ZodString;
|
|
2051
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
2052
|
-
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
2053
|
-
}, "strip", z.ZodTypeAny, {
|
|
2054
|
-
id: string;
|
|
2055
|
-
environment: "live" | "test";
|
|
2056
|
-
createdAt: string;
|
|
2057
|
-
name: string;
|
|
2058
|
-
hint: string;
|
|
2059
|
-
lastUsedAt: string | null;
|
|
2060
|
-
createdByUserId: string | null;
|
|
2061
|
-
key?: string | undefined;
|
|
2062
|
-
}, {
|
|
2063
|
-
id: string;
|
|
2064
|
-
environment: "live" | "test";
|
|
2065
|
-
createdAt: string;
|
|
2066
|
-
name: string;
|
|
2067
|
-
hint: string;
|
|
2068
|
-
lastUsedAt: string | null;
|
|
2069
|
-
createdByUserId: string | null;
|
|
2070
|
-
key?: string | undefined;
|
|
2071
|
-
}>;
|
|
2072
|
-
type ApiKey = z.infer<typeof ApiKeySchema>;
|
|
2073
|
-
declare const ListApiKeysSchema: z.ZodObject<{
|
|
2074
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
2075
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
2076
|
-
}, "strip", z.ZodTypeAny, {
|
|
2077
|
-
limit: number;
|
|
2078
|
-
cursor?: string | undefined;
|
|
2079
|
-
}, {
|
|
2080
|
-
limit?: number | undefined;
|
|
2081
|
-
cursor?: string | undefined;
|
|
2082
|
-
}>;
|
|
2083
|
-
type ListApiKeysInput = z.infer<typeof ListApiKeysSchema>;
|
|
2084
|
-
type ListApiKeysRequest = z.input<typeof ListApiKeysSchema>;
|
|
2085
|
-
declare const PaginatedApiKeysSchema: z.ZodObject<{
|
|
2086
|
-
data: z.ZodArray<z.ZodObject<{
|
|
2087
|
-
id: z.ZodString;
|
|
2088
|
-
name: z.ZodString;
|
|
2089
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2090
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2091
|
-
hint: z.ZodString;
|
|
2092
|
-
createdAt: z.ZodString;
|
|
2093
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
2094
|
-
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
2095
|
-
}, "strip", z.ZodTypeAny, {
|
|
2096
|
-
id: string;
|
|
2097
|
-
environment: "live" | "test";
|
|
2098
|
-
createdAt: string;
|
|
2099
|
-
name: string;
|
|
2100
|
-
hint: string;
|
|
2101
|
-
lastUsedAt: string | null;
|
|
2102
|
-
createdByUserId: string | null;
|
|
2103
|
-
key?: string | undefined;
|
|
2104
|
-
}, {
|
|
2105
|
-
id: string;
|
|
2106
|
-
environment: "live" | "test";
|
|
2107
|
-
createdAt: string;
|
|
2108
|
-
name: string;
|
|
2109
|
-
hint: string;
|
|
2110
|
-
lastUsedAt: string | null;
|
|
2111
|
-
createdByUserId: string | null;
|
|
2112
|
-
key?: string | undefined;
|
|
2113
|
-
}>, "many">;
|
|
2114
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2115
|
-
hasMore: z.ZodBoolean;
|
|
2116
|
-
}, "strip", z.ZodTypeAny, {
|
|
2117
|
-
data: {
|
|
2118
|
-
id: string;
|
|
2119
|
-
environment: "live" | "test";
|
|
2120
|
-
createdAt: string;
|
|
2121
|
-
name: string;
|
|
2122
|
-
hint: string;
|
|
2123
|
-
lastUsedAt: string | null;
|
|
2124
|
-
createdByUserId: string | null;
|
|
2125
|
-
key?: string | undefined;
|
|
2126
|
-
}[];
|
|
2127
|
-
nextCursor: string | null;
|
|
2128
|
-
hasMore: boolean;
|
|
2129
|
-
}, {
|
|
2130
|
-
data: {
|
|
2131
|
-
id: string;
|
|
2132
|
-
environment: "live" | "test";
|
|
2133
|
-
createdAt: string;
|
|
2134
|
-
name: string;
|
|
2135
|
-
hint: string;
|
|
2136
|
-
lastUsedAt: string | null;
|
|
2137
|
-
createdByUserId: string | null;
|
|
2138
|
-
key?: string | undefined;
|
|
2139
|
-
}[];
|
|
2140
|
-
nextCursor: string | null;
|
|
2141
|
-
hasMore: boolean;
|
|
2142
|
-
}>;
|
|
2143
|
-
type PaginatedApiKeys = z.infer<typeof PaginatedApiKeysSchema>;
|
|
2144
|
-
|
|
2145
|
-
declare const NormalizedEmailSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
2146
|
-
declare const SignupSchema: z.ZodObject<{
|
|
2147
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2148
|
-
password: z.ZodString;
|
|
2149
|
-
}, "strip", z.ZodTypeAny, {
|
|
2150
|
-
email: string;
|
|
2151
|
-
password: string;
|
|
2152
|
-
}, {
|
|
2153
|
-
email: string;
|
|
2154
|
-
password: string;
|
|
2155
|
-
}>;
|
|
2156
|
-
type SignupInput = z.infer<typeof SignupSchema>;
|
|
2157
|
-
declare const LoginSchema: z.ZodObject<{
|
|
2158
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2159
|
-
password: z.ZodString;
|
|
2160
|
-
}, "strip", z.ZodTypeAny, {
|
|
2161
|
-
email: string;
|
|
2162
|
-
password: string;
|
|
2163
|
-
}, {
|
|
2164
|
-
email: string;
|
|
2165
|
-
password: string;
|
|
2166
|
-
}>;
|
|
2167
|
-
type LoginInput = z.infer<typeof LoginSchema>;
|
|
2168
|
-
declare const VerifyEmailSchema: z.ZodObject<{
|
|
2169
|
-
token: z.ZodString;
|
|
2170
|
-
}, "strip", z.ZodTypeAny, {
|
|
2171
|
-
token: string;
|
|
2172
|
-
}, {
|
|
2173
|
-
token: string;
|
|
2174
|
-
}>;
|
|
2175
|
-
type VerifyEmailInput = z.infer<typeof VerifyEmailSchema>;
|
|
2176
|
-
declare const ForgotPasswordSchema: z.ZodObject<{
|
|
2177
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2178
|
-
}, "strip", z.ZodTypeAny, {
|
|
2179
|
-
email: string;
|
|
2180
|
-
}, {
|
|
2181
|
-
email: string;
|
|
2182
|
-
}>;
|
|
2183
|
-
type ForgotPasswordInput = z.infer<typeof ForgotPasswordSchema>;
|
|
2184
|
-
declare const ResetPasswordSchema: z.ZodObject<{
|
|
2185
|
-
token: z.ZodString;
|
|
2186
|
-
newPassword: z.ZodString;
|
|
2187
|
-
}, "strip", z.ZodTypeAny, {
|
|
2188
|
-
token: string;
|
|
2189
|
-
newPassword: string;
|
|
2190
|
-
}, {
|
|
2191
|
-
token: string;
|
|
2192
|
-
newPassword: string;
|
|
2193
|
-
}>;
|
|
2194
|
-
type ResetPasswordInput = z.infer<typeof ResetPasswordSchema>;
|
|
2195
|
-
declare const MessageResponseSchema: z.ZodObject<{
|
|
2196
|
-
message: z.ZodString;
|
|
2197
|
-
}, "strip", z.ZodTypeAny, {
|
|
2198
|
-
message: string;
|
|
2199
|
-
}, {
|
|
2200
|
-
message: string;
|
|
2201
|
-
}>;
|
|
2202
|
-
type MessageResponse = z.infer<typeof MessageResponseSchema>;
|
|
2203
|
-
declare const SelfUserSchema: z.ZodObject<Omit<{
|
|
2204
|
-
id: z.ZodString;
|
|
2205
|
-
email: z.ZodString;
|
|
2206
|
-
name: z.ZodNullable<z.ZodString>;
|
|
2207
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2208
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
2209
|
-
createdAt: z.ZodString;
|
|
2210
|
-
}, "createdAt" | "role">, "strip", z.ZodTypeAny, {
|
|
2211
|
-
id: string;
|
|
2212
|
-
email: string;
|
|
2213
|
-
name: string | null;
|
|
2214
|
-
emailVerifiedAt: string | null;
|
|
2215
|
-
}, {
|
|
2216
|
-
id: string;
|
|
2217
|
-
email: string;
|
|
2218
|
-
name: string | null;
|
|
2219
|
-
emailVerifiedAt: string | null;
|
|
2220
|
-
}>;
|
|
2221
|
-
type SelfUser = z.infer<typeof SelfUserSchema>;
|
|
2222
|
-
declare const AuthResponseSchema: z.ZodObject<{
|
|
2223
|
-
token: z.ZodString;
|
|
2224
|
-
user: z.ZodObject<Omit<{
|
|
2225
|
-
id: z.ZodString;
|
|
2226
|
-
email: z.ZodString;
|
|
2227
|
-
name: z.ZodNullable<z.ZodString>;
|
|
2228
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2229
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
2230
|
-
createdAt: z.ZodString;
|
|
2231
|
-
}, "createdAt" | "role">, "strip", z.ZodTypeAny, {
|
|
2232
|
-
id: string;
|
|
2233
|
-
email: string;
|
|
2234
|
-
name: string | null;
|
|
2235
|
-
emailVerifiedAt: string | null;
|
|
2236
|
-
}, {
|
|
2237
|
-
id: string;
|
|
2238
|
-
email: string;
|
|
2239
|
-
name: string | null;
|
|
2240
|
-
emailVerifiedAt: string | null;
|
|
2241
|
-
}>;
|
|
2242
|
-
}, "strip", z.ZodTypeAny, {
|
|
2243
|
-
token: string;
|
|
2244
|
-
user: {
|
|
2245
|
-
id: string;
|
|
2246
|
-
email: string;
|
|
2247
|
-
name: string | null;
|
|
2248
|
-
emailVerifiedAt: string | null;
|
|
2249
|
-
};
|
|
2250
|
-
}, {
|
|
2251
|
-
token: string;
|
|
2252
|
-
user: {
|
|
2253
|
-
id: string;
|
|
2254
|
-
email: string;
|
|
2255
|
-
name: string | null;
|
|
2256
|
-
emailVerifiedAt: string | null;
|
|
2257
|
-
};
|
|
2258
|
-
}>;
|
|
2259
|
-
type AuthResponse = z.infer<typeof AuthResponseSchema>;
|
|
2260
|
-
declare const ChangeNameSchema: z.ZodObject<{
|
|
2261
|
-
name: z.ZodString;
|
|
2262
|
-
}, "strip", z.ZodTypeAny, {
|
|
2263
|
-
name: string;
|
|
2264
|
-
}, {
|
|
2265
|
-
name: string;
|
|
2266
|
-
}>;
|
|
2267
|
-
type ChangeNameInput = z.infer<typeof ChangeNameSchema>;
|
|
2268
|
-
declare const ChangePasswordSchema: z.ZodObject<{
|
|
2269
|
-
currentPassword: z.ZodString;
|
|
2270
|
-
newPassword: z.ZodString;
|
|
2271
|
-
}, "strip", z.ZodTypeAny, {
|
|
2272
|
-
newPassword: string;
|
|
2273
|
-
currentPassword: string;
|
|
2274
|
-
}, {
|
|
2275
|
-
newPassword: string;
|
|
2276
|
-
currentPassword: string;
|
|
2277
|
-
}>;
|
|
2278
|
-
type ChangePasswordInput = z.infer<typeof ChangePasswordSchema>;
|
|
2279
|
-
declare const ChangeEmailSchema: z.ZodObject<{
|
|
2280
|
-
currentPassword: z.ZodString;
|
|
2281
|
-
newEmail: z.ZodEffects<z.ZodString, string, string>;
|
|
2282
|
-
}, "strip", z.ZodTypeAny, {
|
|
2283
|
-
currentPassword: string;
|
|
2284
|
-
newEmail: string;
|
|
2285
|
-
}, {
|
|
2286
|
-
currentPassword: string;
|
|
2287
|
-
newEmail: string;
|
|
2288
|
-
}>;
|
|
2289
|
-
type ChangeEmailInput = z.infer<typeof ChangeEmailSchema>;
|
|
2290
|
-
declare const ConfirmEmailChangeSchema: z.ZodObject<{
|
|
2291
|
-
token: z.ZodString;
|
|
2292
|
-
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
token: string;
|
|
2294
|
-
}, {
|
|
2295
|
-
token: string;
|
|
2296
|
-
}>;
|
|
2297
|
-
type ConfirmEmailChangeInput = z.infer<typeof ConfirmEmailChangeSchema>;
|
|
2298
|
-
|
|
2299
|
-
declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
2300
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2301
|
-
payoutAddress: z.ZodOptional<z.ZodString>;
|
|
2302
|
-
}, "strip", z.ZodTypeAny, {
|
|
2303
|
-
name?: string | undefined;
|
|
2304
|
-
payoutAddress?: string | undefined;
|
|
2305
|
-
}, {
|
|
2306
|
-
name?: string | undefined;
|
|
2307
|
-
payoutAddress?: string | undefined;
|
|
2308
|
-
}>;
|
|
2309
|
-
type UpdateOrganizationInput = z.infer<typeof UpdateOrganizationSchema>;
|
|
2310
|
-
declare const OrganizationSchema: z.ZodObject<{
|
|
2311
|
-
id: z.ZodString;
|
|
2312
|
-
name: z.ZodString;
|
|
2313
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2314
|
-
currentFeePercent: z.ZodNumber;
|
|
2315
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2316
|
-
createdAt: z.ZodString;
|
|
2317
|
-
}, "strip", z.ZodTypeAny, {
|
|
2318
|
-
id: string;
|
|
2319
|
-
createdAt: string;
|
|
2320
|
-
name: string;
|
|
2321
|
-
payoutAddress: string | null;
|
|
2322
|
-
currentFeePercent: number;
|
|
2323
|
-
feeUpdatedAt: string | null;
|
|
2324
|
-
}, {
|
|
2325
|
-
id: string;
|
|
2326
|
-
createdAt: string;
|
|
2327
|
-
name: string;
|
|
2328
|
-
payoutAddress: string | null;
|
|
2329
|
-
currentFeePercent: number;
|
|
2330
|
-
feeUpdatedAt: string | null;
|
|
2331
|
-
}>;
|
|
2332
|
-
type Organization = z.infer<typeof OrganizationSchema>;
|
|
2333
|
-
declare const OrganizationWithRoleSchema: z.ZodObject<{
|
|
2334
|
-
id: z.ZodString;
|
|
2335
|
-
name: z.ZodString;
|
|
2336
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2337
|
-
currentFeePercent: z.ZodNumber;
|
|
2338
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2339
|
-
createdAt: z.ZodString;
|
|
2340
|
-
} & {
|
|
2341
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2342
|
-
}, "strip", z.ZodTypeAny, {
|
|
2343
|
-
id: string;
|
|
2344
|
-
createdAt: string;
|
|
2345
|
-
role: "member" | "owner" | "admin";
|
|
2346
|
-
name: string;
|
|
2347
|
-
payoutAddress: string | null;
|
|
2348
|
-
currentFeePercent: number;
|
|
2349
|
-
feeUpdatedAt: string | null;
|
|
2350
|
-
}, {
|
|
2351
|
-
id: string;
|
|
2352
|
-
createdAt: string;
|
|
2353
|
-
role: "member" | "owner" | "admin";
|
|
2354
|
-
name: string;
|
|
2355
|
-
payoutAddress: string | null;
|
|
2356
|
-
currentFeePercent: number;
|
|
2357
|
-
feeUpdatedAt: string | null;
|
|
2358
|
-
}>;
|
|
2359
|
-
type OrganizationWithRole = z.infer<typeof OrganizationWithRoleSchema>;
|
|
2360
|
-
declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
2361
|
-
data: z.ZodArray<z.ZodObject<{
|
|
2362
|
-
id: z.ZodString;
|
|
2363
|
-
name: z.ZodString;
|
|
2364
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2365
|
-
currentFeePercent: z.ZodNumber;
|
|
2366
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2367
|
-
createdAt: z.ZodString;
|
|
2368
|
-
} & {
|
|
2369
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2370
|
-
}, "strip", z.ZodTypeAny, {
|
|
2371
|
-
id: string;
|
|
2372
|
-
createdAt: string;
|
|
2373
|
-
role: "member" | "owner" | "admin";
|
|
2374
|
-
name: string;
|
|
2375
|
-
payoutAddress: string | null;
|
|
2376
|
-
currentFeePercent: number;
|
|
2377
|
-
feeUpdatedAt: string | null;
|
|
2378
|
-
}, {
|
|
2379
|
-
id: string;
|
|
2380
|
-
createdAt: string;
|
|
2381
|
-
role: "member" | "owner" | "admin";
|
|
2382
|
-
name: string;
|
|
2383
|
-
payoutAddress: string | null;
|
|
2384
|
-
currentFeePercent: number;
|
|
2385
|
-
feeUpdatedAt: string | null;
|
|
2386
|
-
}>, "many">;
|
|
2387
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2388
|
-
hasMore: z.ZodBoolean;
|
|
2389
|
-
}, "strip", z.ZodTypeAny, {
|
|
2390
|
-
data: {
|
|
2391
|
-
id: string;
|
|
2392
|
-
createdAt: string;
|
|
2393
|
-
role: "member" | "owner" | "admin";
|
|
2394
|
-
name: string;
|
|
2395
|
-
payoutAddress: string | null;
|
|
2396
|
-
currentFeePercent: number;
|
|
2397
|
-
feeUpdatedAt: string | null;
|
|
2398
|
-
}[];
|
|
2399
|
-
nextCursor: string | null;
|
|
2400
|
-
hasMore: boolean;
|
|
2401
|
-
}, {
|
|
2402
|
-
data: {
|
|
2403
|
-
id: string;
|
|
2404
|
-
createdAt: string;
|
|
2405
|
-
role: "member" | "owner" | "admin";
|
|
2406
|
-
name: string;
|
|
2407
|
-
payoutAddress: string | null;
|
|
2408
|
-
currentFeePercent: number;
|
|
2409
|
-
feeUpdatedAt: string | null;
|
|
2410
|
-
}[];
|
|
2411
|
-
nextCursor: string | null;
|
|
2412
|
-
hasMore: boolean;
|
|
2413
|
-
}>;
|
|
2414
|
-
type PaginatedOrganizations = z.infer<typeof PaginatedOrganizationsSchema>;
|
|
2415
|
-
declare const ListOrganizationsSchema: z.ZodObject<{
|
|
2416
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
2417
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
2418
|
-
}, "strip", z.ZodTypeAny, {
|
|
2419
|
-
limit: number;
|
|
2420
|
-
cursor?: string | undefined;
|
|
2421
|
-
}, {
|
|
2422
|
-
limit?: number | undefined;
|
|
2423
|
-
cursor?: string | undefined;
|
|
2424
|
-
}>;
|
|
2425
|
-
type ListOrganizationsInput = z.infer<typeof ListOrganizationsSchema>;
|
|
2426
|
-
type ListOrganizationsRequest = z.input<typeof ListOrganizationsSchema>;
|
|
2427
|
-
|
|
2428
|
-
declare const InviteUserSchema: z.ZodObject<{
|
|
2429
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2430
|
-
role: z.ZodDefault<z.ZodEnum<["owner", "admin", "member"]>>;
|
|
2431
|
-
}, "strip", z.ZodTypeAny, {
|
|
2432
|
-
role: "member" | "owner" | "admin";
|
|
2433
|
-
email: string;
|
|
2434
|
-
}, {
|
|
2435
|
-
email: string;
|
|
2436
|
-
role?: "member" | "owner" | "admin" | undefined;
|
|
2437
|
-
}>;
|
|
2438
|
-
type InviteUserInput = z.infer<typeof InviteUserSchema>;
|
|
2439
|
-
type InviteUserRequest = z.input<typeof InviteUserSchema>;
|
|
2440
|
-
declare const AcceptInvitationSchema: z.ZodObject<{
|
|
2441
|
-
token: z.ZodString;
|
|
2442
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2443
|
-
}, "strip", z.ZodTypeAny, {
|
|
2444
|
-
token: string;
|
|
2445
|
-
password?: string | undefined;
|
|
2446
|
-
}, {
|
|
2447
|
-
token: string;
|
|
2448
|
-
password?: string | undefined;
|
|
2449
|
-
}>;
|
|
2450
|
-
type AcceptInvitationInput = z.infer<typeof AcceptInvitationSchema>;
|
|
2451
|
-
declare const InvitationSchema: z.ZodObject<{
|
|
2452
|
-
id: z.ZodString;
|
|
2453
|
-
organizationId: z.ZodString;
|
|
2454
|
-
email: z.ZodString;
|
|
2455
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2456
|
-
invitedByUserId: z.ZodString;
|
|
2457
|
-
expiresAt: z.ZodString;
|
|
2458
|
-
createdAt: z.ZodString;
|
|
2459
|
-
}, "strip", z.ZodTypeAny, {
|
|
2460
|
-
id: string;
|
|
2461
|
-
createdAt: string;
|
|
2462
|
-
expiresAt: string;
|
|
2463
|
-
role: "member" | "owner" | "admin";
|
|
2464
|
-
email: string;
|
|
2465
|
-
organizationId: string;
|
|
2466
|
-
invitedByUserId: string;
|
|
2467
|
-
}, {
|
|
2468
|
-
id: string;
|
|
2469
|
-
createdAt: string;
|
|
2470
|
-
expiresAt: string;
|
|
2471
|
-
role: "member" | "owner" | "admin";
|
|
2472
|
-
email: string;
|
|
2473
|
-
organizationId: string;
|
|
2474
|
-
invitedByUserId: string;
|
|
2475
|
-
}>;
|
|
2476
|
-
type Invitation = z.infer<typeof InvitationSchema>;
|
|
2477
|
-
|
|
2478
1623
|
declare const TransactionSourceSchema: z.ZodEnum<["moralis_webhook", "reconciliation_job", "sandbox"]>;
|
|
2479
1624
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2480
|
-
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "
|
|
1625
|
+
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2481
1626
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
2482
1627
|
declare const TimelineEventSchema: z.ZodObject<{
|
|
2483
|
-
type: z.ZodEnum<["charge.created", "charge.expired", "
|
|
1628
|
+
type: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2484
1629
|
at: z.ZodString;
|
|
2485
1630
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2486
1631
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2488,11 +1633,11 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2488
1633
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
2489
1634
|
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
2490
1635
|
causedTransition: z.ZodOptional<z.ZodBoolean>;
|
|
2491
|
-
event: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1636
|
+
event: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>]>>;
|
|
2492
1637
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2493
1638
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2494
1639
|
}, "strip", z.ZodTypeAny, {
|
|
2495
|
-
type: "charge.created" | "charge.expired" | "
|
|
1640
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2496
1641
|
at: string;
|
|
2497
1642
|
token?: "USDC" | "USDT" | undefined;
|
|
2498
1643
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2501,10 +1646,10 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2501
1646
|
txHash?: string | undefined;
|
|
2502
1647
|
causedTransition?: boolean | undefined;
|
|
2503
1648
|
attempts?: number | undefined;
|
|
2504
|
-
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1649
|
+
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | undefined;
|
|
2505
1650
|
responseCode?: number | null | undefined;
|
|
2506
1651
|
}, {
|
|
2507
|
-
type: "charge.created" | "charge.expired" | "
|
|
1652
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2508
1653
|
at: string;
|
|
2509
1654
|
token?: "USDC" | "USDT" | undefined;
|
|
2510
1655
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2513,7 +1658,7 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2513
1658
|
txHash?: string | undefined;
|
|
2514
1659
|
causedTransition?: boolean | undefined;
|
|
2515
1660
|
attempts?: number | undefined;
|
|
2516
|
-
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1661
|
+
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | undefined;
|
|
2517
1662
|
responseCode?: number | null | undefined;
|
|
2518
1663
|
}>;
|
|
2519
1664
|
type TimelineEvent = z.infer<typeof TimelineEventSchema>;
|
|
@@ -2556,14 +1701,6 @@ declare const SandboxTriggerSchema: z.ZodObject<{
|
|
|
2556
1701
|
amount?: number | undefined;
|
|
2557
1702
|
}>;
|
|
2558
1703
|
type SandboxTriggerInput = z.infer<typeof SandboxTriggerSchema>;
|
|
2559
|
-
declare const SandboxEventTriggerSchema: z.ZodObject<{
|
|
2560
|
-
event: z.ZodUnion<[z.ZodEnum<["payout_address.changed", "api_key.created", "api_key.revoked", "webhook.created", "webhook.deleted", "webhook.secret_rotated", "fee_tier.updated", "member.removed", "member.role_changed", "member.invited"]>, z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>, z.ZodEnum<["auth.login", "auth.login_failed", "auth.suspicious_activity", "auth.email_verified", "auth.password_reset_requested", "auth.password_reset_completed", "auth.password_changed", "auth.email_change_requested", "auth.email_changed"]>]>;
|
|
2561
|
-
}, "strip", z.ZodTypeAny, {
|
|
2562
|
-
event: "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed" | "auth.password_changed" | "auth.email_change_requested" | "auth.email_changed";
|
|
2563
|
-
}, {
|
|
2564
|
-
event: "payout_address.changed" | "api_key.created" | "api_key.revoked" | "webhook.created" | "webhook.deleted" | "webhook.secret_rotated" | "fee_tier.updated" | "member.removed" | "member.role_changed" | "member.invited" | "webhook.delivery_failed" | "webhook.delivery_recovered" | "webhook.endpoint_unhealthy" | "auth.login" | "auth.login_failed" | "auth.suspicious_activity" | "auth.email_verified" | "auth.password_reset_requested" | "auth.password_reset_completed" | "auth.password_changed" | "auth.email_change_requested" | "auth.email_changed";
|
|
2565
|
-
}>;
|
|
2566
|
-
type SandboxEventTriggerInput = z.infer<typeof SandboxEventTriggerSchema>;
|
|
2567
1704
|
|
|
2568
1705
|
declare const CapabilitiesSchema: z.ZodObject<{
|
|
2569
1706
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
@@ -2589,4 +1726,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
2589
1726
|
}>;
|
|
2590
1727
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
2591
1728
|
|
|
2592
|
-
export {
|
|
1729
|
+
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 };
|