@klappay/types 1.1.2 → 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 -1016
- package/dist/index.d.ts +178 -1016
- package/dist/index.js +133 -437
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -400
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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,105 +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
|
-
|
|
610
460
|
declare const SplitDistributionStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
611
461
|
type SplitDistributionStatus = z.infer<typeof SplitDistributionStatusSchema>;
|
|
612
462
|
declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
@@ -844,7 +694,7 @@ declare const MetricsAggregationSchema: z.ZodEnum<["count", "sum", "avg", "min",
|
|
|
844
694
|
type MetricsAggregation = z.infer<typeof MetricsAggregationSchema>;
|
|
845
695
|
declare const MetricsFilterOperatorSchema: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
846
696
|
type MetricsFilterOperator = z.infer<typeof MetricsFilterOperatorSchema>;
|
|
847
|
-
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month"]>;
|
|
697
|
+
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
848
698
|
type MetricsDateGranularity = z.infer<typeof MetricsDateGranularitySchema>;
|
|
849
699
|
declare const MAX_METRICS_QUERY_DATE_RANGE_DAYS = 366;
|
|
850
700
|
declare const METRICS_QUERY_MAX_ROW_LIMIT = 1000;
|
|
@@ -852,11 +702,11 @@ declare const METRICS_QUERY_DEFAULT_ROW_LIMIT = 100;
|
|
|
852
702
|
declare const METRICS_QUERY_MAX_GROUP_BY = 3;
|
|
853
703
|
declare const METRICS_QUERY_MAX_FILTERS = 20;
|
|
854
704
|
declare const METRICS_QUERY_MAX_METRICS = 10;
|
|
855
|
-
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "
|
|
705
|
+
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
856
706
|
type ChargesQueryField = z.infer<typeof ChargesQueryFieldSchema>;
|
|
857
707
|
declare const ChargesMetricFieldSchema: z.ZodEnum<["amount", "amountReceived", "feePercent"]>;
|
|
858
708
|
type ChargesMetricField = z.infer<typeof ChargesMetricFieldSchema>;
|
|
859
|
-
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
709
|
+
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
860
710
|
type ChargesDateField = z.infer<typeof ChargesDateFieldSchema>;
|
|
861
711
|
declare const TransactionsQueryFieldSchema: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
862
712
|
type TransactionsQueryField = z.infer<typeof TransactionsQueryFieldSchema>;
|
|
@@ -864,49 +714,49 @@ declare const TransactionsMetricFieldSchema: z.ZodEnum<["amount"]>;
|
|
|
864
714
|
type TransactionsMetricField = z.infer<typeof TransactionsMetricFieldSchema>;
|
|
865
715
|
declare const TransactionsDateFieldSchema: z.ZodEnum<["detectedAt"]>;
|
|
866
716
|
type TransactionsDateField = z.infer<typeof TransactionsDateFieldSchema>;
|
|
867
|
-
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token"]>;
|
|
717
|
+
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
868
718
|
type DistributionsQueryField = z.infer<typeof DistributionsQueryFieldSchema>;
|
|
869
719
|
declare const DistributionsMetricFieldSchema: z.ZodEnum<["attempts"]>;
|
|
870
720
|
type DistributionsMetricField = z.infer<typeof DistributionsMetricFieldSchema>;
|
|
871
|
-
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
721
|
+
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
872
722
|
type DistributionsDateField = z.infer<typeof DistributionsDateFieldSchema>;
|
|
873
723
|
declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource", [z.ZodObject<{
|
|
874
724
|
resource: z.ZodLiteral<"charges">;
|
|
875
725
|
environment: z.ZodEnum<["live", "test"]>;
|
|
876
726
|
dateRange: z.ZodObject<{
|
|
877
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
727
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
878
728
|
from: z.ZodString;
|
|
879
729
|
to: z.ZodString;
|
|
880
730
|
}, "strip", z.ZodTypeAny, {
|
|
881
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
731
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
882
732
|
from: string;
|
|
883
733
|
to: string;
|
|
884
734
|
}, {
|
|
885
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
735
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
886
736
|
from: string;
|
|
887
737
|
to: string;
|
|
888
738
|
}>;
|
|
889
739
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
890
740
|
type: z.ZodLiteral<"field">;
|
|
891
|
-
field: z.ZodEnum<["status", "
|
|
741
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
892
742
|
}, "strip", z.ZodTypeAny, {
|
|
893
743
|
type: "field";
|
|
894
|
-
field: "status" | "
|
|
744
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
895
745
|
}, {
|
|
896
746
|
type: "field";
|
|
897
|
-
field: "status" | "
|
|
747
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
898
748
|
}>, z.ZodObject<{
|
|
899
749
|
type: z.ZodLiteral<"date_bucket">;
|
|
900
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
901
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
750
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
751
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
902
752
|
}, "strip", z.ZodTypeAny, {
|
|
903
753
|
type: "date_bucket";
|
|
904
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
905
|
-
granularity: "day" | "week" | "month";
|
|
754
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
755
|
+
granularity: "day" | "week" | "month" | "year";
|
|
906
756
|
}, {
|
|
907
757
|
type: "date_bucket";
|
|
908
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
909
|
-
granularity: "day" | "week" | "month";
|
|
758
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
759
|
+
granularity: "day" | "week" | "month" | "year";
|
|
910
760
|
}>]>, "many">>;
|
|
911
761
|
metrics: z.ZodArray<z.ZodObject<{
|
|
912
762
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -922,16 +772,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
922
772
|
alias?: string | undefined;
|
|
923
773
|
}>, "many">;
|
|
924
774
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
925
|
-
field: z.ZodEnum<["status", "
|
|
775
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
926
776
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
927
777
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
928
778
|
}, "strip", z.ZodTypeAny, {
|
|
929
779
|
value: string | number | boolean | (string | number)[];
|
|
930
|
-
field: "status" | "
|
|
780
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
931
781
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
932
782
|
}, {
|
|
933
783
|
value: string | number | boolean | (string | number)[];
|
|
934
|
-
field: "status" | "
|
|
784
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
935
785
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
936
786
|
}>, "many">>;
|
|
937
787
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -950,17 +800,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
950
800
|
environment: "live" | "test";
|
|
951
801
|
resource: "charges";
|
|
952
802
|
dateRange: {
|
|
953
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
803
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
954
804
|
from: string;
|
|
955
805
|
to: string;
|
|
956
806
|
};
|
|
957
807
|
groupBy: ({
|
|
958
808
|
type: "field";
|
|
959
|
-
field: "status" | "
|
|
809
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
960
810
|
} | {
|
|
961
811
|
type: "date_bucket";
|
|
962
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
963
|
-
granularity: "day" | "week" | "month";
|
|
812
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
813
|
+
granularity: "day" | "week" | "month" | "year";
|
|
964
814
|
})[];
|
|
965
815
|
metrics: {
|
|
966
816
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -969,7 +819,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
969
819
|
}[];
|
|
970
820
|
filters: {
|
|
971
821
|
value: string | number | boolean | (string | number)[];
|
|
972
|
-
field: "status" | "
|
|
822
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
973
823
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
974
824
|
}[];
|
|
975
825
|
orderBy?: {
|
|
@@ -980,7 +830,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
980
830
|
environment: "live" | "test";
|
|
981
831
|
resource: "charges";
|
|
982
832
|
dateRange: {
|
|
983
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
833
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
984
834
|
from: string;
|
|
985
835
|
to: string;
|
|
986
836
|
};
|
|
@@ -992,15 +842,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
992
842
|
limit?: number | undefined;
|
|
993
843
|
groupBy?: ({
|
|
994
844
|
type: "field";
|
|
995
|
-
field: "status" | "
|
|
845
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
996
846
|
} | {
|
|
997
847
|
type: "date_bucket";
|
|
998
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
999
|
-
granularity: "day" | "week" | "month";
|
|
848
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
849
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1000
850
|
})[] | undefined;
|
|
1001
851
|
filters?: {
|
|
1002
852
|
value: string | number | boolean | (string | number)[];
|
|
1003
|
-
field: "status" | "
|
|
853
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1004
854
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1005
855
|
}[] | undefined;
|
|
1006
856
|
orderBy?: {
|
|
@@ -1035,15 +885,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1035
885
|
}>, z.ZodObject<{
|
|
1036
886
|
type: z.ZodLiteral<"date_bucket">;
|
|
1037
887
|
field: z.ZodEnum<["detectedAt"]>;
|
|
1038
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
888
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1039
889
|
}, "strip", z.ZodTypeAny, {
|
|
1040
890
|
type: "date_bucket";
|
|
1041
891
|
field: "detectedAt";
|
|
1042
|
-
granularity: "day" | "week" | "month";
|
|
892
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1043
893
|
}, {
|
|
1044
894
|
type: "date_bucket";
|
|
1045
895
|
field: "detectedAt";
|
|
1046
|
-
granularity: "day" | "week" | "month";
|
|
896
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1047
897
|
}>]>, "many">>;
|
|
1048
898
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1049
899
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1097,7 +947,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1097
947
|
} | {
|
|
1098
948
|
type: "date_bucket";
|
|
1099
949
|
field: "detectedAt";
|
|
1100
|
-
granularity: "day" | "week" | "month";
|
|
950
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1101
951
|
})[];
|
|
1102
952
|
metrics: {
|
|
1103
953
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1133,7 +983,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1133
983
|
} | {
|
|
1134
984
|
type: "date_bucket";
|
|
1135
985
|
field: "detectedAt";
|
|
1136
|
-
granularity: "day" | "week" | "month";
|
|
986
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1137
987
|
})[] | undefined;
|
|
1138
988
|
filters?: {
|
|
1139
989
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1148,39 +998,39 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1148
998
|
resource: z.ZodLiteral<"distributions">;
|
|
1149
999
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1150
1000
|
dateRange: z.ZodObject<{
|
|
1151
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1001
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1152
1002
|
from: z.ZodString;
|
|
1153
1003
|
to: z.ZodString;
|
|
1154
1004
|
}, "strip", z.ZodTypeAny, {
|
|
1155
|
-
field: "createdAt" | "completedAt";
|
|
1005
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1156
1006
|
from: string;
|
|
1157
1007
|
to: string;
|
|
1158
1008
|
}, {
|
|
1159
|
-
field: "createdAt" | "completedAt";
|
|
1009
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1160
1010
|
from: string;
|
|
1161
1011
|
to: string;
|
|
1162
1012
|
}>;
|
|
1163
1013
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1164
1014
|
type: z.ZodLiteral<"field">;
|
|
1165
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1015
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1166
1016
|
}, "strip", z.ZodTypeAny, {
|
|
1167
1017
|
type: "field";
|
|
1168
|
-
field: "status" | "token" | "network";
|
|
1018
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1169
1019
|
}, {
|
|
1170
1020
|
type: "field";
|
|
1171
|
-
field: "status" | "token" | "network";
|
|
1021
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1172
1022
|
}>, z.ZodObject<{
|
|
1173
1023
|
type: z.ZodLiteral<"date_bucket">;
|
|
1174
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1175
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
1024
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1025
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1176
1026
|
}, "strip", z.ZodTypeAny, {
|
|
1177
1027
|
type: "date_bucket";
|
|
1178
|
-
field: "createdAt" | "completedAt";
|
|
1179
|
-
granularity: "day" | "week" | "month";
|
|
1028
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1029
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1180
1030
|
}, {
|
|
1181
1031
|
type: "date_bucket";
|
|
1182
|
-
field: "createdAt" | "completedAt";
|
|
1183
|
-
granularity: "day" | "week" | "month";
|
|
1032
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1033
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1184
1034
|
}>]>, "many">>;
|
|
1185
1035
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1186
1036
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1196,16 +1046,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1196
1046
|
alias?: string | undefined;
|
|
1197
1047
|
}>, "many">;
|
|
1198
1048
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1199
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1049
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1200
1050
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
1201
1051
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
1202
1052
|
}, "strip", z.ZodTypeAny, {
|
|
1203
1053
|
value: string | number | boolean | (string | number)[];
|
|
1204
|
-
field: "status" | "token" | "network";
|
|
1054
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1205
1055
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1206
1056
|
}, {
|
|
1207
1057
|
value: string | number | boolean | (string | number)[];
|
|
1208
|
-
field: "status" | "token" | "network";
|
|
1058
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1209
1059
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1210
1060
|
}>, "many">>;
|
|
1211
1061
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1224,17 +1074,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1224
1074
|
environment: "live" | "test";
|
|
1225
1075
|
resource: "distributions";
|
|
1226
1076
|
dateRange: {
|
|
1227
|
-
field: "createdAt" | "completedAt";
|
|
1077
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1228
1078
|
from: string;
|
|
1229
1079
|
to: string;
|
|
1230
1080
|
};
|
|
1231
1081
|
groupBy: ({
|
|
1232
1082
|
type: "field";
|
|
1233
|
-
field: "status" | "token" | "network";
|
|
1083
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1234
1084
|
} | {
|
|
1235
1085
|
type: "date_bucket";
|
|
1236
|
-
field: "createdAt" | "completedAt";
|
|
1237
|
-
granularity: "day" | "week" | "month";
|
|
1086
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1087
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1238
1088
|
})[];
|
|
1239
1089
|
metrics: {
|
|
1240
1090
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1243,7 +1093,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1243
1093
|
}[];
|
|
1244
1094
|
filters: {
|
|
1245
1095
|
value: string | number | boolean | (string | number)[];
|
|
1246
|
-
field: "status" | "token" | "network";
|
|
1096
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1247
1097
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1248
1098
|
}[];
|
|
1249
1099
|
orderBy?: {
|
|
@@ -1254,7 +1104,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1254
1104
|
environment: "live" | "test";
|
|
1255
1105
|
resource: "distributions";
|
|
1256
1106
|
dateRange: {
|
|
1257
|
-
field: "createdAt" | "completedAt";
|
|
1107
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1258
1108
|
from: string;
|
|
1259
1109
|
to: string;
|
|
1260
1110
|
};
|
|
@@ -1266,15 +1116,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1266
1116
|
limit?: number | undefined;
|
|
1267
1117
|
groupBy?: ({
|
|
1268
1118
|
type: "field";
|
|
1269
|
-
field: "status" | "token" | "network";
|
|
1119
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1270
1120
|
} | {
|
|
1271
1121
|
type: "date_bucket";
|
|
1272
|
-
field: "createdAt" | "completedAt";
|
|
1273
|
-
granularity: "day" | "week" | "month";
|
|
1122
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1123
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1274
1124
|
})[] | undefined;
|
|
1275
1125
|
filters?: {
|
|
1276
1126
|
value: string | number | boolean | (string | number)[];
|
|
1277
|
-
field: "status" | "token" | "network";
|
|
1127
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1278
1128
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1279
1129
|
}[] | undefined;
|
|
1280
1130
|
orderBy?: {
|
|
@@ -1286,17 +1136,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1286
1136
|
environment: "live" | "test";
|
|
1287
1137
|
resource: "charges";
|
|
1288
1138
|
dateRange: {
|
|
1289
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1139
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1290
1140
|
from: string;
|
|
1291
1141
|
to: string;
|
|
1292
1142
|
};
|
|
1293
1143
|
groupBy: ({
|
|
1294
1144
|
type: "field";
|
|
1295
|
-
field: "status" | "
|
|
1145
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1296
1146
|
} | {
|
|
1297
1147
|
type: "date_bucket";
|
|
1298
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1299
|
-
granularity: "day" | "week" | "month";
|
|
1148
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1149
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1300
1150
|
})[];
|
|
1301
1151
|
metrics: {
|
|
1302
1152
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1305,7 +1155,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1305
1155
|
}[];
|
|
1306
1156
|
filters: {
|
|
1307
1157
|
value: string | number | boolean | (string | number)[];
|
|
1308
|
-
field: "status" | "
|
|
1158
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1309
1159
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1310
1160
|
}[];
|
|
1311
1161
|
orderBy?: {
|
|
@@ -1327,7 +1177,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1327
1177
|
} | {
|
|
1328
1178
|
type: "date_bucket";
|
|
1329
1179
|
field: "detectedAt";
|
|
1330
|
-
granularity: "day" | "week" | "month";
|
|
1180
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1331
1181
|
})[];
|
|
1332
1182
|
metrics: {
|
|
1333
1183
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1348,17 +1198,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1348
1198
|
environment: "live" | "test";
|
|
1349
1199
|
resource: "distributions";
|
|
1350
1200
|
dateRange: {
|
|
1351
|
-
field: "createdAt" | "completedAt";
|
|
1201
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1352
1202
|
from: string;
|
|
1353
1203
|
to: string;
|
|
1354
1204
|
};
|
|
1355
1205
|
groupBy: ({
|
|
1356
1206
|
type: "field";
|
|
1357
|
-
field: "status" | "token" | "network";
|
|
1207
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1358
1208
|
} | {
|
|
1359
1209
|
type: "date_bucket";
|
|
1360
|
-
field: "createdAt" | "completedAt";
|
|
1361
|
-
granularity: "day" | "week" | "month";
|
|
1210
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1211
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1362
1212
|
})[];
|
|
1363
1213
|
metrics: {
|
|
1364
1214
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1367,7 +1217,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1367
1217
|
}[];
|
|
1368
1218
|
filters: {
|
|
1369
1219
|
value: string | number | boolean | (string | number)[];
|
|
1370
|
-
field: "status" | "token" | "network";
|
|
1220
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1371
1221
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1372
1222
|
}[];
|
|
1373
1223
|
orderBy?: {
|
|
@@ -1378,7 +1228,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1378
1228
|
environment: "live" | "test";
|
|
1379
1229
|
resource: "charges";
|
|
1380
1230
|
dateRange: {
|
|
1381
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1231
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1382
1232
|
from: string;
|
|
1383
1233
|
to: string;
|
|
1384
1234
|
};
|
|
@@ -1390,15 +1240,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1390
1240
|
limit?: number | undefined;
|
|
1391
1241
|
groupBy?: ({
|
|
1392
1242
|
type: "field";
|
|
1393
|
-
field: "status" | "
|
|
1243
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1394
1244
|
} | {
|
|
1395
1245
|
type: "date_bucket";
|
|
1396
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1397
|
-
granularity: "day" | "week" | "month";
|
|
1246
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1247
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1398
1248
|
})[] | undefined;
|
|
1399
1249
|
filters?: {
|
|
1400
1250
|
value: string | number | boolean | (string | number)[];
|
|
1401
|
-
field: "status" | "
|
|
1251
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1402
1252
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1403
1253
|
}[] | undefined;
|
|
1404
1254
|
orderBy?: {
|
|
@@ -1425,7 +1275,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1425
1275
|
} | {
|
|
1426
1276
|
type: "date_bucket";
|
|
1427
1277
|
field: "detectedAt";
|
|
1428
|
-
granularity: "day" | "week" | "month";
|
|
1278
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1429
1279
|
})[] | undefined;
|
|
1430
1280
|
filters?: {
|
|
1431
1281
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1440,7 +1290,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1440
1290
|
environment: "live" | "test";
|
|
1441
1291
|
resource: "distributions";
|
|
1442
1292
|
dateRange: {
|
|
1443
|
-
field: "createdAt" | "completedAt";
|
|
1293
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1444
1294
|
from: string;
|
|
1445
1295
|
to: string;
|
|
1446
1296
|
};
|
|
@@ -1452,15 +1302,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1452
1302
|
limit?: number | undefined;
|
|
1453
1303
|
groupBy?: ({
|
|
1454
1304
|
type: "field";
|
|
1455
|
-
field: "status" | "token" | "network";
|
|
1305
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1456
1306
|
} | {
|
|
1457
1307
|
type: "date_bucket";
|
|
1458
|
-
field: "createdAt" | "completedAt";
|
|
1459
|
-
granularity: "day" | "week" | "month";
|
|
1308
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1309
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1460
1310
|
})[] | undefined;
|
|
1461
1311
|
filters?: {
|
|
1462
1312
|
value: string | number | boolean | (string | number)[];
|
|
1463
|
-
field: "status" | "token" | "network";
|
|
1313
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1464
1314
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1465
1315
|
}[] | undefined;
|
|
1466
1316
|
orderBy?: {
|
|
@@ -1472,26 +1322,21 @@ type MetricsQuery = z.infer<typeof MetricsQuerySchema>;
|
|
|
1472
1322
|
type MetricsQueryRequest = z.input<typeof MetricsQuerySchema>;
|
|
1473
1323
|
declare const MetricsQueryResultRowSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1474
1324
|
type MetricsQueryResultRow = z.infer<typeof MetricsQueryResultRowSchema>;
|
|
1475
|
-
declare const MetricsQueryScopeSchema: z.ZodEnum<["owner_admin", "member"]>;
|
|
1476
|
-
type MetricsQueryScope = z.infer<typeof MetricsQueryScopeSchema>;
|
|
1477
1325
|
declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
1478
1326
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
|
|
1479
1327
|
meta: z.ZodObject<{
|
|
1480
1328
|
resource: z.ZodEnum<["charges", "transactions", "distributions"]>;
|
|
1481
1329
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1482
|
-
scope: z.ZodEnum<["owner_admin", "member"]>;
|
|
1483
1330
|
rowCount: z.ZodNumber;
|
|
1484
1331
|
truncated: z.ZodBoolean;
|
|
1485
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1333
|
environment: "live" | "test";
|
|
1487
1334
|
resource: "charges" | "transactions" | "distributions";
|
|
1488
|
-
scope: "owner_admin" | "member";
|
|
1489
1335
|
rowCount: number;
|
|
1490
1336
|
truncated: boolean;
|
|
1491
1337
|
}, {
|
|
1492
1338
|
environment: "live" | "test";
|
|
1493
1339
|
resource: "charges" | "transactions" | "distributions";
|
|
1494
|
-
scope: "owner_admin" | "member";
|
|
1495
1340
|
rowCount: number;
|
|
1496
1341
|
truncated: boolean;
|
|
1497
1342
|
}>;
|
|
@@ -1500,7 +1345,6 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1500
1345
|
meta: {
|
|
1501
1346
|
environment: "live" | "test";
|
|
1502
1347
|
resource: "charges" | "transactions" | "distributions";
|
|
1503
|
-
scope: "owner_admin" | "member";
|
|
1504
1348
|
rowCount: number;
|
|
1505
1349
|
truncated: boolean;
|
|
1506
1350
|
};
|
|
@@ -1509,232 +1353,28 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1509
1353
|
meta: {
|
|
1510
1354
|
environment: "live" | "test";
|
|
1511
1355
|
resource: "charges" | "transactions" | "distributions";
|
|
1512
|
-
scope: "owner_admin" | "member";
|
|
1513
1356
|
rowCount: number;
|
|
1514
1357
|
truncated: boolean;
|
|
1515
1358
|
};
|
|
1516
1359
|
}>;
|
|
1517
1360
|
type MetricsQueryResult = z.infer<typeof MetricsQueryResultSchema>;
|
|
1518
1361
|
|
|
1519
|
-
declare const ChargeWebhookEventTypeSchema: z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"
|
|
1520
|
-
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"]>;
|
|
1521
1363
|
declare const WebhookDeliveryEventTypeSchema: z.ZodEnum<["webhook.delivery_failed", "webhook.delivery_recovered", "webhook.endpoint_unhealthy"]>;
|
|
1522
|
-
declare const
|
|
1523
|
-
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"]>]>;
|
|
1524
1365
|
type WebhookEventType = z.infer<typeof WebhookEventTypeSchema>;
|
|
1525
|
-
declare const WebhookCategorySchema: z.ZodEnum<["payments", "
|
|
1366
|
+
declare const WebhookCategorySchema: z.ZodEnum<["payments", "webhooks"]>;
|
|
1526
1367
|
type WebhookCategory = z.infer<typeof WebhookCategorySchema>;
|
|
1527
|
-
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">;
|
|
1528
1369
|
declare const WEBHOOK_EVENT_CATEGORIES: Record<WebhookCategory, readonly WebhookEventType[]>;
|
|
1529
1370
|
declare const TriggerableChargeEventSchema: z.ZodEnum<["charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
1530
1371
|
type TriggerableChargeEvent = z.infer<typeof TriggerableChargeEventSchema>;
|
|
1531
|
-
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"]>]>;
|
|
1532
|
-
type NonChargeTriggerableEvent = z.infer<typeof NonChargeTriggerableEventSchema>;
|
|
1533
|
-
|
|
1534
|
-
declare const UserRoleSchema: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1535
|
-
type UserRole = z.infer<typeof UserRoleSchema>;
|
|
1536
|
-
declare const UpdateUserRoleSchema: z.ZodObject<{
|
|
1537
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1538
|
-
}, "strip", z.ZodTypeAny, {
|
|
1539
|
-
role: "member" | "owner" | "admin";
|
|
1540
|
-
}, {
|
|
1541
|
-
role: "member" | "owner" | "admin";
|
|
1542
|
-
}>;
|
|
1543
|
-
type UpdateUserRoleInput = z.infer<typeof UpdateUserRoleSchema>;
|
|
1544
|
-
declare const UserSchema: z.ZodObject<{
|
|
1545
|
-
id: z.ZodString;
|
|
1546
|
-
email: z.ZodString;
|
|
1547
|
-
name: z.ZodNullable<z.ZodString>;
|
|
1548
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1549
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
1550
|
-
createdAt: z.ZodString;
|
|
1551
|
-
}, "strip", z.ZodTypeAny, {
|
|
1552
|
-
id: string;
|
|
1553
|
-
createdAt: string;
|
|
1554
|
-
role: "member" | "owner" | "admin";
|
|
1555
|
-
email: string;
|
|
1556
|
-
name: string | null;
|
|
1557
|
-
emailVerifiedAt: string | null;
|
|
1558
|
-
}, {
|
|
1559
|
-
id: string;
|
|
1560
|
-
createdAt: string;
|
|
1561
|
-
role: "member" | "owner" | "admin";
|
|
1562
|
-
email: string;
|
|
1563
|
-
name: string | null;
|
|
1564
|
-
emailVerifiedAt: string | null;
|
|
1565
|
-
}>;
|
|
1566
|
-
type User = z.infer<typeof UserSchema>;
|
|
1567
|
-
declare const ListUsersSchema: z.ZodObject<{
|
|
1568
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
1569
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1570
|
-
}, "strip", z.ZodTypeAny, {
|
|
1571
|
-
limit: number;
|
|
1572
|
-
cursor?: string | undefined;
|
|
1573
|
-
}, {
|
|
1574
|
-
limit?: number | undefined;
|
|
1575
|
-
cursor?: string | undefined;
|
|
1576
|
-
}>;
|
|
1577
|
-
type ListUsersInput = z.infer<typeof ListUsersSchema>;
|
|
1578
|
-
type ListUsersRequest = z.input<typeof ListUsersSchema>;
|
|
1579
|
-
declare const PaginatedUsersSchema: z.ZodObject<{
|
|
1580
|
-
data: z.ZodArray<z.ZodObject<{
|
|
1581
|
-
id: z.ZodString;
|
|
1582
|
-
email: z.ZodString;
|
|
1583
|
-
name: z.ZodNullable<z.ZodString>;
|
|
1584
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1585
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
1586
|
-
createdAt: z.ZodString;
|
|
1587
|
-
}, "strip", z.ZodTypeAny, {
|
|
1588
|
-
id: string;
|
|
1589
|
-
createdAt: string;
|
|
1590
|
-
role: "member" | "owner" | "admin";
|
|
1591
|
-
email: string;
|
|
1592
|
-
name: string | null;
|
|
1593
|
-
emailVerifiedAt: string | null;
|
|
1594
|
-
}, {
|
|
1595
|
-
id: string;
|
|
1596
|
-
createdAt: string;
|
|
1597
|
-
role: "member" | "owner" | "admin";
|
|
1598
|
-
email: string;
|
|
1599
|
-
name: string | null;
|
|
1600
|
-
emailVerifiedAt: string | null;
|
|
1601
|
-
}>, "many">;
|
|
1602
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1603
|
-
hasMore: z.ZodBoolean;
|
|
1604
|
-
}, "strip", z.ZodTypeAny, {
|
|
1605
|
-
data: {
|
|
1606
|
-
id: string;
|
|
1607
|
-
createdAt: string;
|
|
1608
|
-
role: "member" | "owner" | "admin";
|
|
1609
|
-
email: string;
|
|
1610
|
-
name: string | null;
|
|
1611
|
-
emailVerifiedAt: string | null;
|
|
1612
|
-
}[];
|
|
1613
|
-
nextCursor: string | null;
|
|
1614
|
-
hasMore: boolean;
|
|
1615
|
-
}, {
|
|
1616
|
-
data: {
|
|
1617
|
-
id: string;
|
|
1618
|
-
createdAt: string;
|
|
1619
|
-
role: "member" | "owner" | "admin";
|
|
1620
|
-
email: string;
|
|
1621
|
-
name: string | null;
|
|
1622
|
-
emailVerifiedAt: string | null;
|
|
1623
|
-
}[];
|
|
1624
|
-
nextCursor: string | null;
|
|
1625
|
-
hasMore: boolean;
|
|
1626
|
-
}>;
|
|
1627
|
-
type PaginatedUsers = z.infer<typeof PaginatedUsersSchema>;
|
|
1628
1372
|
|
|
1629
|
-
type PayoutAddressChangedData = {
|
|
1630
|
-
organizationId: string;
|
|
1631
|
-
from: string | null;
|
|
1632
|
-
to: string;
|
|
1633
|
-
};
|
|
1634
|
-
type ApiKeyEventData = {
|
|
1635
|
-
apiKeyId: string;
|
|
1636
|
-
name: string;
|
|
1637
|
-
environment: z.infer<typeof EnvironmentSchema>;
|
|
1638
|
-
hint: string;
|
|
1639
|
-
};
|
|
1640
|
-
type WebhookConfigEventData = {
|
|
1641
|
-
webhookId: string;
|
|
1642
|
-
url: string;
|
|
1643
|
-
};
|
|
1644
1373
|
type WebhookHealthEventData = {
|
|
1645
1374
|
webhookId: string;
|
|
1646
1375
|
url: string;
|
|
1647
1376
|
failureRatio?: number;
|
|
1648
1377
|
};
|
|
1649
|
-
type FeeTierUpdatedData = {
|
|
1650
|
-
organizationId: string;
|
|
1651
|
-
previousFeePercent: number;
|
|
1652
|
-
newFeePercent: number;
|
|
1653
|
-
};
|
|
1654
|
-
type MemberEventData = {
|
|
1655
|
-
userId: string;
|
|
1656
|
-
email: string;
|
|
1657
|
-
role: z.infer<typeof UserRoleSchema>;
|
|
1658
|
-
};
|
|
1659
|
-
type MemberRoleChangedData = MemberEventData & {
|
|
1660
|
-
previousRole: z.infer<typeof UserRoleSchema>;
|
|
1661
|
-
};
|
|
1662
|
-
type MemberInvitedData = {
|
|
1663
|
-
organizationId: string;
|
|
1664
|
-
email: string;
|
|
1665
|
-
role: z.infer<typeof UserRoleSchema>;
|
|
1666
|
-
invitedByUserId: string;
|
|
1667
|
-
};
|
|
1668
|
-
type AuthLoginData = {
|
|
1669
|
-
userId: string;
|
|
1670
|
-
ipAddress: string | null;
|
|
1671
|
-
};
|
|
1672
|
-
type AuthLoginFailedData = {
|
|
1673
|
-
email: string;
|
|
1674
|
-
ipAddress: string | null;
|
|
1675
|
-
};
|
|
1676
|
-
type AuthSuspiciousActivityData = AuthLoginData & {
|
|
1677
|
-
previousIpAddress: string | null;
|
|
1678
|
-
};
|
|
1679
|
-
type AuthEmailVerifiedData = {
|
|
1680
|
-
userId: string;
|
|
1681
|
-
email: string;
|
|
1682
|
-
};
|
|
1683
|
-
type AuthPasswordResetRequestedData = {
|
|
1684
|
-
userId: string;
|
|
1685
|
-
email: string;
|
|
1686
|
-
};
|
|
1687
|
-
type AuthPasswordResetCompletedData = {
|
|
1688
|
-
userId: string;
|
|
1689
|
-
email: string;
|
|
1690
|
-
};
|
|
1691
|
-
type AuthPasswordChangedData = {
|
|
1692
|
-
userId: string;
|
|
1693
|
-
email: string;
|
|
1694
|
-
};
|
|
1695
|
-
type AuthEmailChangeRequestedData = {
|
|
1696
|
-
userId: string;
|
|
1697
|
-
email: string;
|
|
1698
|
-
newEmail: string;
|
|
1699
|
-
};
|
|
1700
|
-
type AuthEmailChangedData = {
|
|
1701
|
-
userId: string;
|
|
1702
|
-
previousEmail: string;
|
|
1703
|
-
newEmail: string;
|
|
1704
|
-
};
|
|
1705
|
-
type ChargePausedData = {
|
|
1706
|
-
chargeId: string;
|
|
1707
|
-
lastActivityAt: string;
|
|
1708
|
-
pausedAt: string;
|
|
1709
|
-
};
|
|
1710
|
-
type ChargeReactivatedData = {
|
|
1711
|
-
chargeId: string;
|
|
1712
|
-
reactivatedAt: string;
|
|
1713
|
-
};
|
|
1714
|
-
type ChargeContributionReceivedData = {
|
|
1715
|
-
chargeId: string;
|
|
1716
|
-
token: Token;
|
|
1717
|
-
network: Network;
|
|
1718
|
-
amount: number;
|
|
1719
|
-
txHash: string;
|
|
1720
|
-
payerAddress: string;
|
|
1721
|
-
};
|
|
1722
|
-
type ChargeContributionSettledData = {
|
|
1723
|
-
chargeId: string;
|
|
1724
|
-
token: Token;
|
|
1725
|
-
network: Network;
|
|
1726
|
-
amount: number;
|
|
1727
|
-
txHash: string;
|
|
1728
|
-
distributorAddress: string | null;
|
|
1729
|
-
};
|
|
1730
|
-
type ChargePaidAfterCancelData = {
|
|
1731
|
-
chargeId: string;
|
|
1732
|
-
token: Token;
|
|
1733
|
-
network: Network;
|
|
1734
|
-
amount: number;
|
|
1735
|
-
txHash: string;
|
|
1736
|
-
payerAddress: string;
|
|
1737
|
-
};
|
|
1738
1378
|
type WebhookEventDataMap = {
|
|
1739
1379
|
'charge.created': Charge;
|
|
1740
1380
|
'charge.partially_paid': Charge;
|
|
@@ -1744,34 +1384,9 @@ type WebhookEventDataMap = {
|
|
|
1744
1384
|
'charge.settled': Charge;
|
|
1745
1385
|
'charge.settlement_failed': Charge;
|
|
1746
1386
|
'charge.overpaid': Charge;
|
|
1747
|
-
'charge.paused': ChargePausedData;
|
|
1748
|
-
'charge.reactivated': ChargeReactivatedData;
|
|
1749
|
-
'charge.contribution_received': ChargeContributionReceivedData;
|
|
1750
|
-
'charge.contribution_settled': ChargeContributionSettledData;
|
|
1751
|
-
'charge.canceled': Charge;
|
|
1752
|
-
'charge.paid_after_cancel': ChargePaidAfterCancelData;
|
|
1753
|
-
'payout_address.changed': PayoutAddressChangedData;
|
|
1754
|
-
'api_key.created': ApiKeyEventData;
|
|
1755
|
-
'api_key.revoked': ApiKeyEventData;
|
|
1756
|
-
'webhook.created': WebhookConfigEventData;
|
|
1757
|
-
'webhook.deleted': WebhookConfigEventData;
|
|
1758
|
-
'webhook.secret_rotated': WebhookConfigEventData;
|
|
1759
1387
|
'webhook.delivery_failed': WebhookHealthEventData;
|
|
1760
1388
|
'webhook.delivery_recovered': WebhookHealthEventData;
|
|
1761
1389
|
'webhook.endpoint_unhealthy': WebhookHealthEventData;
|
|
1762
|
-
'fee_tier.updated': FeeTierUpdatedData;
|
|
1763
|
-
'auth.login': AuthLoginData;
|
|
1764
|
-
'auth.login_failed': AuthLoginFailedData;
|
|
1765
|
-
'auth.suspicious_activity': AuthSuspiciousActivityData;
|
|
1766
|
-
'auth.email_verified': AuthEmailVerifiedData;
|
|
1767
|
-
'auth.password_reset_requested': AuthPasswordResetRequestedData;
|
|
1768
|
-
'auth.password_reset_completed': AuthPasswordResetCompletedData;
|
|
1769
|
-
'auth.password_changed': AuthPasswordChangedData;
|
|
1770
|
-
'auth.email_change_requested': AuthEmailChangeRequestedData;
|
|
1771
|
-
'auth.email_changed': AuthEmailChangedData;
|
|
1772
|
-
'member.removed': MemberEventData;
|
|
1773
|
-
'member.role_changed': MemberRoleChangedData;
|
|
1774
|
-
'member.invited': MemberInvitedData;
|
|
1775
1390
|
};
|
|
1776
1391
|
type TypedWebhookPayload = {
|
|
1777
1392
|
[E in WebhookEventType]: {
|
|
@@ -1785,29 +1400,29 @@ type TypedWebhookPayload = {
|
|
|
1785
1400
|
declare const WEBHOOK_EVENTS_WILDCARD = "*";
|
|
1786
1401
|
declare const CreateWebhookSchema: z.ZodEffects<z.ZodObject<{
|
|
1787
1402
|
url: z.ZodString;
|
|
1788
|
-
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"
|
|
1789
|
-
eventCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<["payments", "
|
|
1790
|
-
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">>;
|
|
1791
1406
|
}, "strip", z.ZodTypeAny, {
|
|
1792
1407
|
url: string;
|
|
1793
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1794
|
-
eventCategories: ("payments" | "
|
|
1795
|
-
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")[];
|
|
1796
1411
|
}, {
|
|
1797
1412
|
url: string;
|
|
1798
|
-
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1799
|
-
eventCategories?: ("payments" | "
|
|
1800
|
-
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;
|
|
1801
1416
|
}>, {
|
|
1802
1417
|
url: string;
|
|
1803
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1804
|
-
eventCategories: ("payments" | "
|
|
1805
|
-
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")[];
|
|
1806
1421
|
}, {
|
|
1807
1422
|
url: string;
|
|
1808
|
-
events?: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1809
|
-
eventCategories?: ("payments" | "
|
|
1810
|
-
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;
|
|
1811
1426
|
}>;
|
|
1812
1427
|
type CreateWebhookInput = z.infer<typeof CreateWebhookSchema>;
|
|
1813
1428
|
type CreateWebhookRequest = z.input<typeof CreateWebhookSchema>;
|
|
@@ -1815,9 +1430,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1815
1430
|
id: z.ZodString;
|
|
1816
1431
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1817
1432
|
url: z.ZodString;
|
|
1818
|
-
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"
|
|
1819
|
-
eventCategories: z.ZodArray<z.ZodEnum<["payments", "
|
|
1820
|
-
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">;
|
|
1821
1436
|
isWildcard: z.ZodBoolean;
|
|
1822
1437
|
secret: z.ZodString;
|
|
1823
1438
|
createdAt: z.ZodString;
|
|
@@ -1826,9 +1441,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1826
1441
|
environment: "live" | "test" | null;
|
|
1827
1442
|
createdAt: string;
|
|
1828
1443
|
url: string;
|
|
1829
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1830
|
-
eventCategories: ("payments" | "
|
|
1831
|
-
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")[];
|
|
1832
1447
|
isWildcard: boolean;
|
|
1833
1448
|
secret: string;
|
|
1834
1449
|
}, {
|
|
@@ -1836,9 +1451,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1836
1451
|
environment: "live" | "test" | null;
|
|
1837
1452
|
createdAt: string;
|
|
1838
1453
|
url: string;
|
|
1839
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1840
|
-
eventCategories: ("payments" | "
|
|
1841
|
-
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")[];
|
|
1842
1457
|
isWildcard: boolean;
|
|
1843
1458
|
secret: string;
|
|
1844
1459
|
}>;
|
|
@@ -1847,9 +1462,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1847
1462
|
id: z.ZodString;
|
|
1848
1463
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1849
1464
|
url: z.ZodString;
|
|
1850
|
-
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"
|
|
1851
|
-
eventCategories: z.ZodArray<z.ZodEnum<["payments", "
|
|
1852
|
-
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">;
|
|
1853
1468
|
isWildcard: z.ZodBoolean;
|
|
1854
1469
|
secret: z.ZodString;
|
|
1855
1470
|
createdAt: z.ZodString;
|
|
@@ -1860,9 +1475,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1860
1475
|
environment: "live" | "test" | null;
|
|
1861
1476
|
createdAt: string;
|
|
1862
1477
|
url: string;
|
|
1863
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1864
|
-
eventCategories: ("payments" | "
|
|
1865
|
-
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")[];
|
|
1866
1481
|
isWildcard: boolean;
|
|
1867
1482
|
hint: string;
|
|
1868
1483
|
}, {
|
|
@@ -1870,27 +1485,27 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1870
1485
|
environment: "live" | "test" | null;
|
|
1871
1486
|
createdAt: string;
|
|
1872
1487
|
url: string;
|
|
1873
|
-
events: ("charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1874
|
-
eventCategories: ("payments" | "
|
|
1875
|
-
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")[];
|
|
1876
1491
|
isWildcard: boolean;
|
|
1877
1492
|
hint: string;
|
|
1878
1493
|
}>;
|
|
1879
1494
|
type WebhookListItem = z.infer<typeof WebhookListItemSchema>;
|
|
1880
1495
|
declare const WebhookPayloadSchema: z.ZodObject<{
|
|
1881
1496
|
id: z.ZodString;
|
|
1882
|
-
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"]>]>;
|
|
1883
1498
|
createdAt: z.ZodString;
|
|
1884
1499
|
data: z.ZodUnknown;
|
|
1885
1500
|
}, "strip", z.ZodTypeAny, {
|
|
1886
1501
|
id: string;
|
|
1887
1502
|
createdAt: string;
|
|
1888
|
-
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";
|
|
1889
1504
|
data?: unknown;
|
|
1890
1505
|
}, {
|
|
1891
1506
|
id: string;
|
|
1892
1507
|
createdAt: string;
|
|
1893
|
-
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";
|
|
1894
1509
|
data?: unknown;
|
|
1895
1510
|
}>;
|
|
1896
1511
|
type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
|
|
@@ -1899,7 +1514,7 @@ type WebhookDeliveryStatus = z.infer<typeof WebhookDeliveryStatusSchema>;
|
|
|
1899
1514
|
declare const WebhookDeliverySchema: z.ZodObject<{
|
|
1900
1515
|
id: z.ZodString;
|
|
1901
1516
|
webhookId: z.ZodString;
|
|
1902
|
-
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"]>]>;
|
|
1903
1518
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1904
1519
|
attempts: z.ZodNumber;
|
|
1905
1520
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1911,7 +1526,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1911
1526
|
id: string;
|
|
1912
1527
|
createdAt: string;
|
|
1913
1528
|
attempts: number;
|
|
1914
|
-
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";
|
|
1915
1530
|
webhookId: string;
|
|
1916
1531
|
responseCode: number | null;
|
|
1917
1532
|
nextRetryAt: string | null;
|
|
@@ -1921,7 +1536,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1921
1536
|
id: string;
|
|
1922
1537
|
createdAt: string;
|
|
1923
1538
|
attempts: number;
|
|
1924
|
-
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";
|
|
1925
1540
|
webhookId: string;
|
|
1926
1541
|
responseCode: number | null;
|
|
1927
1542
|
nextRetryAt: string | null;
|
|
@@ -1944,7 +1559,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1944
1559
|
data: z.ZodArray<z.ZodObject<{
|
|
1945
1560
|
id: z.ZodString;
|
|
1946
1561
|
webhookId: z.ZodString;
|
|
1947
|
-
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"]>]>;
|
|
1948
1563
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1949
1564
|
attempts: z.ZodNumber;
|
|
1950
1565
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1956,7 +1571,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1956
1571
|
id: string;
|
|
1957
1572
|
createdAt: string;
|
|
1958
1573
|
attempts: number;
|
|
1959
|
-
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";
|
|
1960
1575
|
webhookId: string;
|
|
1961
1576
|
responseCode: number | null;
|
|
1962
1577
|
nextRetryAt: string | null;
|
|
@@ -1966,7 +1581,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1966
1581
|
id: string;
|
|
1967
1582
|
createdAt: string;
|
|
1968
1583
|
attempts: number;
|
|
1969
|
-
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";
|
|
1970
1585
|
webhookId: string;
|
|
1971
1586
|
responseCode: number | null;
|
|
1972
1587
|
nextRetryAt: string | null;
|
|
@@ -1980,7 +1595,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1980
1595
|
id: string;
|
|
1981
1596
|
createdAt: string;
|
|
1982
1597
|
attempts: number;
|
|
1983
|
-
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";
|
|
1984
1599
|
webhookId: string;
|
|
1985
1600
|
responseCode: number | null;
|
|
1986
1601
|
nextRetryAt: string | null;
|
|
@@ -1994,7 +1609,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1994
1609
|
id: string;
|
|
1995
1610
|
createdAt: string;
|
|
1996
1611
|
attempts: number;
|
|
1997
|
-
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";
|
|
1998
1613
|
webhookId: string;
|
|
1999
1614
|
responseCode: number | null;
|
|
2000
1615
|
nextRetryAt: string | null;
|
|
@@ -2005,457 +1620,12 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2005
1620
|
}>;
|
|
2006
1621
|
type PaginatedWebhookDeliveries = z.infer<typeof PaginatedWebhookDeliveriesSchema>;
|
|
2007
1622
|
|
|
2008
|
-
declare const CreateApiKeySchema: z.ZodObject<{
|
|
2009
|
-
name: z.ZodString;
|
|
2010
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2011
|
-
}, "strip", z.ZodTypeAny, {
|
|
2012
|
-
environment: "live" | "test";
|
|
2013
|
-
name: string;
|
|
2014
|
-
}, {
|
|
2015
|
-
environment: "live" | "test";
|
|
2016
|
-
name: string;
|
|
2017
|
-
}>;
|
|
2018
|
-
type CreateApiKeyInput = z.infer<typeof CreateApiKeySchema>;
|
|
2019
|
-
declare const ApiKeySchema: z.ZodObject<{
|
|
2020
|
-
id: z.ZodString;
|
|
2021
|
-
name: z.ZodString;
|
|
2022
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2023
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2024
|
-
hint: z.ZodString;
|
|
2025
|
-
createdAt: z.ZodString;
|
|
2026
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
2027
|
-
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
2028
|
-
}, "strip", z.ZodTypeAny, {
|
|
2029
|
-
id: string;
|
|
2030
|
-
environment: "live" | "test";
|
|
2031
|
-
createdAt: string;
|
|
2032
|
-
name: string;
|
|
2033
|
-
hint: string;
|
|
2034
|
-
lastUsedAt: string | null;
|
|
2035
|
-
createdByUserId: string | null;
|
|
2036
|
-
key?: string | undefined;
|
|
2037
|
-
}, {
|
|
2038
|
-
id: string;
|
|
2039
|
-
environment: "live" | "test";
|
|
2040
|
-
createdAt: string;
|
|
2041
|
-
name: string;
|
|
2042
|
-
hint: string;
|
|
2043
|
-
lastUsedAt: string | null;
|
|
2044
|
-
createdByUserId: string | null;
|
|
2045
|
-
key?: string | undefined;
|
|
2046
|
-
}>;
|
|
2047
|
-
type ApiKey = z.infer<typeof ApiKeySchema>;
|
|
2048
|
-
declare const ListApiKeysSchema: z.ZodObject<{
|
|
2049
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
2050
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
2051
|
-
}, "strip", z.ZodTypeAny, {
|
|
2052
|
-
limit: number;
|
|
2053
|
-
cursor?: string | undefined;
|
|
2054
|
-
}, {
|
|
2055
|
-
limit?: number | undefined;
|
|
2056
|
-
cursor?: string | undefined;
|
|
2057
|
-
}>;
|
|
2058
|
-
type ListApiKeysInput = z.infer<typeof ListApiKeysSchema>;
|
|
2059
|
-
type ListApiKeysRequest = z.input<typeof ListApiKeysSchema>;
|
|
2060
|
-
declare const PaginatedApiKeysSchema: z.ZodObject<{
|
|
2061
|
-
data: z.ZodArray<z.ZodObject<{
|
|
2062
|
-
id: z.ZodString;
|
|
2063
|
-
name: z.ZodString;
|
|
2064
|
-
environment: z.ZodEnum<["live", "test"]>;
|
|
2065
|
-
key: z.ZodOptional<z.ZodString>;
|
|
2066
|
-
hint: z.ZodString;
|
|
2067
|
-
createdAt: z.ZodString;
|
|
2068
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
2069
|
-
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
2070
|
-
}, "strip", z.ZodTypeAny, {
|
|
2071
|
-
id: string;
|
|
2072
|
-
environment: "live" | "test";
|
|
2073
|
-
createdAt: string;
|
|
2074
|
-
name: string;
|
|
2075
|
-
hint: string;
|
|
2076
|
-
lastUsedAt: string | null;
|
|
2077
|
-
createdByUserId: string | null;
|
|
2078
|
-
key?: string | undefined;
|
|
2079
|
-
}, {
|
|
2080
|
-
id: string;
|
|
2081
|
-
environment: "live" | "test";
|
|
2082
|
-
createdAt: string;
|
|
2083
|
-
name: string;
|
|
2084
|
-
hint: string;
|
|
2085
|
-
lastUsedAt: string | null;
|
|
2086
|
-
createdByUserId: string | null;
|
|
2087
|
-
key?: string | undefined;
|
|
2088
|
-
}>, "many">;
|
|
2089
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2090
|
-
hasMore: z.ZodBoolean;
|
|
2091
|
-
}, "strip", z.ZodTypeAny, {
|
|
2092
|
-
data: {
|
|
2093
|
-
id: string;
|
|
2094
|
-
environment: "live" | "test";
|
|
2095
|
-
createdAt: string;
|
|
2096
|
-
name: string;
|
|
2097
|
-
hint: string;
|
|
2098
|
-
lastUsedAt: string | null;
|
|
2099
|
-
createdByUserId: string | null;
|
|
2100
|
-
key?: string | undefined;
|
|
2101
|
-
}[];
|
|
2102
|
-
nextCursor: string | null;
|
|
2103
|
-
hasMore: boolean;
|
|
2104
|
-
}, {
|
|
2105
|
-
data: {
|
|
2106
|
-
id: string;
|
|
2107
|
-
environment: "live" | "test";
|
|
2108
|
-
createdAt: string;
|
|
2109
|
-
name: string;
|
|
2110
|
-
hint: string;
|
|
2111
|
-
lastUsedAt: string | null;
|
|
2112
|
-
createdByUserId: string | null;
|
|
2113
|
-
key?: string | undefined;
|
|
2114
|
-
}[];
|
|
2115
|
-
nextCursor: string | null;
|
|
2116
|
-
hasMore: boolean;
|
|
2117
|
-
}>;
|
|
2118
|
-
type PaginatedApiKeys = z.infer<typeof PaginatedApiKeysSchema>;
|
|
2119
|
-
|
|
2120
|
-
declare const NormalizedEmailSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
2121
|
-
declare const SignupSchema: z.ZodObject<{
|
|
2122
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2123
|
-
password: z.ZodString;
|
|
2124
|
-
}, "strip", z.ZodTypeAny, {
|
|
2125
|
-
email: string;
|
|
2126
|
-
password: string;
|
|
2127
|
-
}, {
|
|
2128
|
-
email: string;
|
|
2129
|
-
password: string;
|
|
2130
|
-
}>;
|
|
2131
|
-
type SignupInput = z.infer<typeof SignupSchema>;
|
|
2132
|
-
declare const LoginSchema: z.ZodObject<{
|
|
2133
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2134
|
-
password: z.ZodString;
|
|
2135
|
-
}, "strip", z.ZodTypeAny, {
|
|
2136
|
-
email: string;
|
|
2137
|
-
password: string;
|
|
2138
|
-
}, {
|
|
2139
|
-
email: string;
|
|
2140
|
-
password: string;
|
|
2141
|
-
}>;
|
|
2142
|
-
type LoginInput = z.infer<typeof LoginSchema>;
|
|
2143
|
-
declare const VerifyEmailSchema: z.ZodObject<{
|
|
2144
|
-
token: z.ZodString;
|
|
2145
|
-
}, "strip", z.ZodTypeAny, {
|
|
2146
|
-
token: string;
|
|
2147
|
-
}, {
|
|
2148
|
-
token: string;
|
|
2149
|
-
}>;
|
|
2150
|
-
type VerifyEmailInput = z.infer<typeof VerifyEmailSchema>;
|
|
2151
|
-
declare const ForgotPasswordSchema: z.ZodObject<{
|
|
2152
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2153
|
-
}, "strip", z.ZodTypeAny, {
|
|
2154
|
-
email: string;
|
|
2155
|
-
}, {
|
|
2156
|
-
email: string;
|
|
2157
|
-
}>;
|
|
2158
|
-
type ForgotPasswordInput = z.infer<typeof ForgotPasswordSchema>;
|
|
2159
|
-
declare const ResetPasswordSchema: z.ZodObject<{
|
|
2160
|
-
token: z.ZodString;
|
|
2161
|
-
newPassword: z.ZodString;
|
|
2162
|
-
}, "strip", z.ZodTypeAny, {
|
|
2163
|
-
token: string;
|
|
2164
|
-
newPassword: string;
|
|
2165
|
-
}, {
|
|
2166
|
-
token: string;
|
|
2167
|
-
newPassword: string;
|
|
2168
|
-
}>;
|
|
2169
|
-
type ResetPasswordInput = z.infer<typeof ResetPasswordSchema>;
|
|
2170
|
-
declare const MessageResponseSchema: z.ZodObject<{
|
|
2171
|
-
message: z.ZodString;
|
|
2172
|
-
}, "strip", z.ZodTypeAny, {
|
|
2173
|
-
message: string;
|
|
2174
|
-
}, {
|
|
2175
|
-
message: string;
|
|
2176
|
-
}>;
|
|
2177
|
-
type MessageResponse = z.infer<typeof MessageResponseSchema>;
|
|
2178
|
-
declare const SelfUserSchema: z.ZodObject<Omit<{
|
|
2179
|
-
id: z.ZodString;
|
|
2180
|
-
email: z.ZodString;
|
|
2181
|
-
name: z.ZodNullable<z.ZodString>;
|
|
2182
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2183
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
2184
|
-
createdAt: z.ZodString;
|
|
2185
|
-
}, "createdAt" | "role">, "strip", z.ZodTypeAny, {
|
|
2186
|
-
id: string;
|
|
2187
|
-
email: string;
|
|
2188
|
-
name: string | null;
|
|
2189
|
-
emailVerifiedAt: string | null;
|
|
2190
|
-
}, {
|
|
2191
|
-
id: string;
|
|
2192
|
-
email: string;
|
|
2193
|
-
name: string | null;
|
|
2194
|
-
emailVerifiedAt: string | null;
|
|
2195
|
-
}>;
|
|
2196
|
-
type SelfUser = z.infer<typeof SelfUserSchema>;
|
|
2197
|
-
declare const AuthResponseSchema: z.ZodObject<{
|
|
2198
|
-
token: z.ZodString;
|
|
2199
|
-
user: z.ZodObject<Omit<{
|
|
2200
|
-
id: z.ZodString;
|
|
2201
|
-
email: z.ZodString;
|
|
2202
|
-
name: z.ZodNullable<z.ZodString>;
|
|
2203
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2204
|
-
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
2205
|
-
createdAt: z.ZodString;
|
|
2206
|
-
}, "createdAt" | "role">, "strip", z.ZodTypeAny, {
|
|
2207
|
-
id: string;
|
|
2208
|
-
email: string;
|
|
2209
|
-
name: string | null;
|
|
2210
|
-
emailVerifiedAt: string | null;
|
|
2211
|
-
}, {
|
|
2212
|
-
id: string;
|
|
2213
|
-
email: string;
|
|
2214
|
-
name: string | null;
|
|
2215
|
-
emailVerifiedAt: string | null;
|
|
2216
|
-
}>;
|
|
2217
|
-
}, "strip", z.ZodTypeAny, {
|
|
2218
|
-
token: string;
|
|
2219
|
-
user: {
|
|
2220
|
-
id: string;
|
|
2221
|
-
email: string;
|
|
2222
|
-
name: string | null;
|
|
2223
|
-
emailVerifiedAt: string | null;
|
|
2224
|
-
};
|
|
2225
|
-
}, {
|
|
2226
|
-
token: string;
|
|
2227
|
-
user: {
|
|
2228
|
-
id: string;
|
|
2229
|
-
email: string;
|
|
2230
|
-
name: string | null;
|
|
2231
|
-
emailVerifiedAt: string | null;
|
|
2232
|
-
};
|
|
2233
|
-
}>;
|
|
2234
|
-
type AuthResponse = z.infer<typeof AuthResponseSchema>;
|
|
2235
|
-
declare const ChangeNameSchema: z.ZodObject<{
|
|
2236
|
-
name: z.ZodString;
|
|
2237
|
-
}, "strip", z.ZodTypeAny, {
|
|
2238
|
-
name: string;
|
|
2239
|
-
}, {
|
|
2240
|
-
name: string;
|
|
2241
|
-
}>;
|
|
2242
|
-
type ChangeNameInput = z.infer<typeof ChangeNameSchema>;
|
|
2243
|
-
declare const ChangePasswordSchema: z.ZodObject<{
|
|
2244
|
-
currentPassword: z.ZodString;
|
|
2245
|
-
newPassword: z.ZodString;
|
|
2246
|
-
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
newPassword: string;
|
|
2248
|
-
currentPassword: string;
|
|
2249
|
-
}, {
|
|
2250
|
-
newPassword: string;
|
|
2251
|
-
currentPassword: string;
|
|
2252
|
-
}>;
|
|
2253
|
-
type ChangePasswordInput = z.infer<typeof ChangePasswordSchema>;
|
|
2254
|
-
declare const ChangeEmailSchema: z.ZodObject<{
|
|
2255
|
-
currentPassword: z.ZodString;
|
|
2256
|
-
newEmail: z.ZodEffects<z.ZodString, string, string>;
|
|
2257
|
-
}, "strip", z.ZodTypeAny, {
|
|
2258
|
-
currentPassword: string;
|
|
2259
|
-
newEmail: string;
|
|
2260
|
-
}, {
|
|
2261
|
-
currentPassword: string;
|
|
2262
|
-
newEmail: string;
|
|
2263
|
-
}>;
|
|
2264
|
-
type ChangeEmailInput = z.infer<typeof ChangeEmailSchema>;
|
|
2265
|
-
declare const ConfirmEmailChangeSchema: z.ZodObject<{
|
|
2266
|
-
token: z.ZodString;
|
|
2267
|
-
}, "strip", z.ZodTypeAny, {
|
|
2268
|
-
token: string;
|
|
2269
|
-
}, {
|
|
2270
|
-
token: string;
|
|
2271
|
-
}>;
|
|
2272
|
-
type ConfirmEmailChangeInput = z.infer<typeof ConfirmEmailChangeSchema>;
|
|
2273
|
-
|
|
2274
|
-
declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
2275
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2276
|
-
payoutAddress: z.ZodOptional<z.ZodString>;
|
|
2277
|
-
}, "strip", z.ZodTypeAny, {
|
|
2278
|
-
name?: string | undefined;
|
|
2279
|
-
payoutAddress?: string | undefined;
|
|
2280
|
-
}, {
|
|
2281
|
-
name?: string | undefined;
|
|
2282
|
-
payoutAddress?: string | undefined;
|
|
2283
|
-
}>;
|
|
2284
|
-
type UpdateOrganizationInput = z.infer<typeof UpdateOrganizationSchema>;
|
|
2285
|
-
declare const OrganizationSchema: z.ZodObject<{
|
|
2286
|
-
id: z.ZodString;
|
|
2287
|
-
name: z.ZodString;
|
|
2288
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2289
|
-
currentFeePercent: z.ZodNumber;
|
|
2290
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2291
|
-
createdAt: z.ZodString;
|
|
2292
|
-
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
id: string;
|
|
2294
|
-
createdAt: string;
|
|
2295
|
-
name: string;
|
|
2296
|
-
payoutAddress: string | null;
|
|
2297
|
-
currentFeePercent: number;
|
|
2298
|
-
feeUpdatedAt: string | null;
|
|
2299
|
-
}, {
|
|
2300
|
-
id: string;
|
|
2301
|
-
createdAt: string;
|
|
2302
|
-
name: string;
|
|
2303
|
-
payoutAddress: string | null;
|
|
2304
|
-
currentFeePercent: number;
|
|
2305
|
-
feeUpdatedAt: string | null;
|
|
2306
|
-
}>;
|
|
2307
|
-
type Organization = z.infer<typeof OrganizationSchema>;
|
|
2308
|
-
declare const OrganizationWithRoleSchema: z.ZodObject<{
|
|
2309
|
-
id: z.ZodString;
|
|
2310
|
-
name: z.ZodString;
|
|
2311
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2312
|
-
currentFeePercent: z.ZodNumber;
|
|
2313
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2314
|
-
createdAt: z.ZodString;
|
|
2315
|
-
} & {
|
|
2316
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2317
|
-
}, "strip", z.ZodTypeAny, {
|
|
2318
|
-
id: string;
|
|
2319
|
-
createdAt: string;
|
|
2320
|
-
role: "member" | "owner" | "admin";
|
|
2321
|
-
name: string;
|
|
2322
|
-
payoutAddress: string | null;
|
|
2323
|
-
currentFeePercent: number;
|
|
2324
|
-
feeUpdatedAt: string | null;
|
|
2325
|
-
}, {
|
|
2326
|
-
id: string;
|
|
2327
|
-
createdAt: string;
|
|
2328
|
-
role: "member" | "owner" | "admin";
|
|
2329
|
-
name: string;
|
|
2330
|
-
payoutAddress: string | null;
|
|
2331
|
-
currentFeePercent: number;
|
|
2332
|
-
feeUpdatedAt: string | null;
|
|
2333
|
-
}>;
|
|
2334
|
-
type OrganizationWithRole = z.infer<typeof OrganizationWithRoleSchema>;
|
|
2335
|
-
declare const PaginatedOrganizationsSchema: z.ZodObject<{
|
|
2336
|
-
data: z.ZodArray<z.ZodObject<{
|
|
2337
|
-
id: z.ZodString;
|
|
2338
|
-
name: z.ZodString;
|
|
2339
|
-
payoutAddress: z.ZodNullable<z.ZodString>;
|
|
2340
|
-
currentFeePercent: z.ZodNumber;
|
|
2341
|
-
feeUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2342
|
-
createdAt: z.ZodString;
|
|
2343
|
-
} & {
|
|
2344
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2345
|
-
}, "strip", z.ZodTypeAny, {
|
|
2346
|
-
id: string;
|
|
2347
|
-
createdAt: string;
|
|
2348
|
-
role: "member" | "owner" | "admin";
|
|
2349
|
-
name: string;
|
|
2350
|
-
payoutAddress: string | null;
|
|
2351
|
-
currentFeePercent: number;
|
|
2352
|
-
feeUpdatedAt: string | null;
|
|
2353
|
-
}, {
|
|
2354
|
-
id: string;
|
|
2355
|
-
createdAt: string;
|
|
2356
|
-
role: "member" | "owner" | "admin";
|
|
2357
|
-
name: string;
|
|
2358
|
-
payoutAddress: string | null;
|
|
2359
|
-
currentFeePercent: number;
|
|
2360
|
-
feeUpdatedAt: string | null;
|
|
2361
|
-
}>, "many">;
|
|
2362
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2363
|
-
hasMore: z.ZodBoolean;
|
|
2364
|
-
}, "strip", z.ZodTypeAny, {
|
|
2365
|
-
data: {
|
|
2366
|
-
id: string;
|
|
2367
|
-
createdAt: string;
|
|
2368
|
-
role: "member" | "owner" | "admin";
|
|
2369
|
-
name: string;
|
|
2370
|
-
payoutAddress: string | null;
|
|
2371
|
-
currentFeePercent: number;
|
|
2372
|
-
feeUpdatedAt: string | null;
|
|
2373
|
-
}[];
|
|
2374
|
-
nextCursor: string | null;
|
|
2375
|
-
hasMore: boolean;
|
|
2376
|
-
}, {
|
|
2377
|
-
data: {
|
|
2378
|
-
id: string;
|
|
2379
|
-
createdAt: string;
|
|
2380
|
-
role: "member" | "owner" | "admin";
|
|
2381
|
-
name: string;
|
|
2382
|
-
payoutAddress: string | null;
|
|
2383
|
-
currentFeePercent: number;
|
|
2384
|
-
feeUpdatedAt: string | null;
|
|
2385
|
-
}[];
|
|
2386
|
-
nextCursor: string | null;
|
|
2387
|
-
hasMore: boolean;
|
|
2388
|
-
}>;
|
|
2389
|
-
type PaginatedOrganizations = z.infer<typeof PaginatedOrganizationsSchema>;
|
|
2390
|
-
declare const ListOrganizationsSchema: z.ZodObject<{
|
|
2391
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
2392
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
2393
|
-
}, "strip", z.ZodTypeAny, {
|
|
2394
|
-
limit: number;
|
|
2395
|
-
cursor?: string | undefined;
|
|
2396
|
-
}, {
|
|
2397
|
-
limit?: number | undefined;
|
|
2398
|
-
cursor?: string | undefined;
|
|
2399
|
-
}>;
|
|
2400
|
-
type ListOrganizationsInput = z.infer<typeof ListOrganizationsSchema>;
|
|
2401
|
-
type ListOrganizationsRequest = z.input<typeof ListOrganizationsSchema>;
|
|
2402
|
-
|
|
2403
|
-
declare const InviteUserSchema: z.ZodObject<{
|
|
2404
|
-
email: z.ZodEffects<z.ZodString, string, string>;
|
|
2405
|
-
role: z.ZodDefault<z.ZodEnum<["owner", "admin", "member"]>>;
|
|
2406
|
-
}, "strip", z.ZodTypeAny, {
|
|
2407
|
-
role: "member" | "owner" | "admin";
|
|
2408
|
-
email: string;
|
|
2409
|
-
}, {
|
|
2410
|
-
email: string;
|
|
2411
|
-
role?: "member" | "owner" | "admin" | undefined;
|
|
2412
|
-
}>;
|
|
2413
|
-
type InviteUserInput = z.infer<typeof InviteUserSchema>;
|
|
2414
|
-
type InviteUserRequest = z.input<typeof InviteUserSchema>;
|
|
2415
|
-
declare const AcceptInvitationSchema: z.ZodObject<{
|
|
2416
|
-
token: z.ZodString;
|
|
2417
|
-
password: z.ZodOptional<z.ZodString>;
|
|
2418
|
-
}, "strip", z.ZodTypeAny, {
|
|
2419
|
-
token: string;
|
|
2420
|
-
password?: string | undefined;
|
|
2421
|
-
}, {
|
|
2422
|
-
token: string;
|
|
2423
|
-
password?: string | undefined;
|
|
2424
|
-
}>;
|
|
2425
|
-
type AcceptInvitationInput = z.infer<typeof AcceptInvitationSchema>;
|
|
2426
|
-
declare const InvitationSchema: z.ZodObject<{
|
|
2427
|
-
id: z.ZodString;
|
|
2428
|
-
organizationId: z.ZodString;
|
|
2429
|
-
email: z.ZodString;
|
|
2430
|
-
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2431
|
-
invitedByUserId: z.ZodString;
|
|
2432
|
-
expiresAt: z.ZodString;
|
|
2433
|
-
createdAt: z.ZodString;
|
|
2434
|
-
}, "strip", z.ZodTypeAny, {
|
|
2435
|
-
id: string;
|
|
2436
|
-
createdAt: string;
|
|
2437
|
-
expiresAt: string;
|
|
2438
|
-
role: "member" | "owner" | "admin";
|
|
2439
|
-
email: string;
|
|
2440
|
-
organizationId: string;
|
|
2441
|
-
invitedByUserId: string;
|
|
2442
|
-
}, {
|
|
2443
|
-
id: string;
|
|
2444
|
-
createdAt: string;
|
|
2445
|
-
expiresAt: string;
|
|
2446
|
-
role: "member" | "owner" | "admin";
|
|
2447
|
-
email: string;
|
|
2448
|
-
organizationId: string;
|
|
2449
|
-
invitedByUserId: string;
|
|
2450
|
-
}>;
|
|
2451
|
-
type Invitation = z.infer<typeof InvitationSchema>;
|
|
2452
|
-
|
|
2453
1623
|
declare const TransactionSourceSchema: z.ZodEnum<["moralis_webhook", "reconciliation_job", "sandbox"]>;
|
|
2454
1624
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2455
|
-
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"]>;
|
|
2456
1626
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
2457
1627
|
declare const TimelineEventSchema: z.ZodObject<{
|
|
2458
|
-
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"]>;
|
|
2459
1629
|
at: z.ZodString;
|
|
2460
1630
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2461
1631
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2463,11 +1633,11 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2463
1633
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
2464
1634
|
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
2465
1635
|
causedTransition: z.ZodOptional<z.ZodBoolean>;
|
|
2466
|
-
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"]>]>>;
|
|
2467
1637
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2468
1638
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2469
1639
|
}, "strip", z.ZodTypeAny, {
|
|
2470
|
-
type: "charge.created" | "charge.expired" | "
|
|
1640
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2471
1641
|
at: string;
|
|
2472
1642
|
token?: "USDC" | "USDT" | undefined;
|
|
2473
1643
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2476,10 +1646,10 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2476
1646
|
txHash?: string | undefined;
|
|
2477
1647
|
causedTransition?: boolean | undefined;
|
|
2478
1648
|
attempts?: number | undefined;
|
|
2479
|
-
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;
|
|
2480
1650
|
responseCode?: number | null | undefined;
|
|
2481
1651
|
}, {
|
|
2482
|
-
type: "charge.created" | "charge.expired" | "
|
|
1652
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2483
1653
|
at: string;
|
|
2484
1654
|
token?: "USDC" | "USDT" | undefined;
|
|
2485
1655
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2488,7 +1658,7 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2488
1658
|
txHash?: string | undefined;
|
|
2489
1659
|
causedTransition?: boolean | undefined;
|
|
2490
1660
|
attempts?: number | undefined;
|
|
2491
|
-
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;
|
|
2492
1662
|
responseCode?: number | null | undefined;
|
|
2493
1663
|
}>;
|
|
2494
1664
|
type TimelineEvent = z.infer<typeof TimelineEventSchema>;
|
|
@@ -2531,14 +1701,6 @@ declare const SandboxTriggerSchema: z.ZodObject<{
|
|
|
2531
1701
|
amount?: number | undefined;
|
|
2532
1702
|
}>;
|
|
2533
1703
|
type SandboxTriggerInput = z.infer<typeof SandboxTriggerSchema>;
|
|
2534
|
-
declare const SandboxEventTriggerSchema: z.ZodObject<{
|
|
2535
|
-
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"]>]>;
|
|
2536
|
-
}, "strip", z.ZodTypeAny, {
|
|
2537
|
-
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";
|
|
2538
|
-
}, {
|
|
2539
|
-
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";
|
|
2540
|
-
}>;
|
|
2541
|
-
type SandboxEventTriggerInput = z.infer<typeof SandboxEventTriggerSchema>;
|
|
2542
1704
|
|
|
2543
1705
|
declare const CapabilitiesSchema: z.ZodObject<{
|
|
2544
1706
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
@@ -2564,4 +1726,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
2564
1726
|
}>;
|
|
2565
1727
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
2566
1728
|
|
|
2567
|
-
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 };
|