@klappay/types 1.1.2 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.mts +197 -1016
- package/dist/index.d.ts +197 -1016
- package/dist/index.js +140 -437
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +138 -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,70 +117,44 @@ 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>>;
|
|
125
|
+
redirectUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
124
126
|
}, "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";
|
|
127
|
+
amount: number;
|
|
152
128
|
currency: "USD";
|
|
153
129
|
acceptedPayments: {
|
|
154
130
|
token: "USDC" | "USDT";
|
|
155
131
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
156
132
|
}[];
|
|
157
|
-
|
|
158
|
-
expiresIn?: number | undefined;
|
|
133
|
+
expiresIn: number;
|
|
159
134
|
idempotencyKey?: string | undefined;
|
|
160
135
|
externalRef?: string | undefined;
|
|
161
136
|
source?: string | undefined;
|
|
162
137
|
metadata?: Record<string, unknown> | undefined;
|
|
138
|
+
redirectUrl?: string | undefined;
|
|
163
139
|
}, {
|
|
140
|
+
amount: number;
|
|
164
141
|
acceptedPayments: {
|
|
165
142
|
token: "USDC" | "USDT";
|
|
166
143
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
167
144
|
}[];
|
|
168
|
-
|
|
169
|
-
amount?: number | undefined;
|
|
145
|
+
expiresIn: number;
|
|
170
146
|
currency?: "USD" | undefined;
|
|
171
|
-
expiresIn?: number | undefined;
|
|
172
147
|
idempotencyKey?: string | undefined;
|
|
173
148
|
externalRef?: string | undefined;
|
|
174
149
|
source?: string | undefined;
|
|
175
150
|
metadata?: Record<string, unknown> | undefined;
|
|
151
|
+
redirectUrl?: string | undefined;
|
|
176
152
|
}>;
|
|
177
153
|
type CreateChargeInput = z.infer<typeof CreateChargeSchema>;
|
|
178
154
|
type CreateChargeRequest = z.input<typeof CreateChargeSchema>;
|
|
179
155
|
declare const ChargeSchema: z.ZodObject<{
|
|
180
156
|
id: z.ZodString;
|
|
181
|
-
|
|
182
|
-
amount: z.ZodNullable<z.ZodNumber>;
|
|
157
|
+
amount: z.ZodNumber;
|
|
183
158
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
184
159
|
isOverpaid: z.ZodBoolean;
|
|
185
160
|
currency: z.ZodString;
|
|
@@ -204,7 +179,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
204
179
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
205
180
|
}>, "many">;
|
|
206
181
|
address: z.ZodString;
|
|
207
|
-
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
182
|
+
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
208
183
|
settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
|
|
209
184
|
environment: z.ZodEnum<["live", "test"]>;
|
|
210
185
|
apiKeyId: z.ZodNullable<z.ZodString>;
|
|
@@ -212,17 +187,16 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
212
187
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
213
188
|
source: z.ZodNullable<z.ZodString>;
|
|
214
189
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
190
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
191
|
+
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
215
192
|
createdAt: z.ZodString;
|
|
216
|
-
expiresAt: z.
|
|
193
|
+
expiresAt: z.ZodString;
|
|
217
194
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
218
195
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
219
196
|
lastActivityAt: z.ZodString;
|
|
220
|
-
pausedAt: z.ZodNullable<z.ZodString>;
|
|
221
|
-
canceledAt: z.ZodNullable<z.ZodString>;
|
|
222
197
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
224
|
-
|
|
225
|
-
amount: number | null;
|
|
198
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
199
|
+
amount: number;
|
|
226
200
|
currency: string;
|
|
227
201
|
acceptedPayments: {
|
|
228
202
|
token: "USDC" | "USDT";
|
|
@@ -231,6 +205,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
231
205
|
externalRef: string | null;
|
|
232
206
|
source: string | null;
|
|
233
207
|
metadata: Record<string, unknown> | null;
|
|
208
|
+
redirectUrl: string | null;
|
|
234
209
|
id: string;
|
|
235
210
|
amountReceived: number | null;
|
|
236
211
|
isOverpaid: boolean;
|
|
@@ -243,17 +218,15 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
243
218
|
environment: "live" | "test";
|
|
244
219
|
apiKeyId: string | null;
|
|
245
220
|
txHash: string | null;
|
|
221
|
+
checkoutUrl: string | null;
|
|
246
222
|
createdAt: string;
|
|
247
|
-
expiresAt: string
|
|
223
|
+
expiresAt: string;
|
|
248
224
|
confirmedAt: string | null;
|
|
249
225
|
settledAt: string | null;
|
|
250
226
|
lastActivityAt: string;
|
|
251
|
-
pausedAt: string | null;
|
|
252
|
-
canceledAt: string | null;
|
|
253
227
|
}, {
|
|
254
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
255
|
-
|
|
256
|
-
amount: number | null;
|
|
228
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
229
|
+
amount: number;
|
|
257
230
|
currency: string;
|
|
258
231
|
acceptedPayments: {
|
|
259
232
|
token: "USDC" | "USDT";
|
|
@@ -262,6 +235,7 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
262
235
|
externalRef: string | null;
|
|
263
236
|
source: string | null;
|
|
264
237
|
metadata: Record<string, unknown> | null;
|
|
238
|
+
redirectUrl: string | null;
|
|
265
239
|
id: string;
|
|
266
240
|
amountReceived: number | null;
|
|
267
241
|
isOverpaid: boolean;
|
|
@@ -274,17 +248,16 @@ declare const ChargeSchema: z.ZodObject<{
|
|
|
274
248
|
environment: "live" | "test";
|
|
275
249
|
apiKeyId: string | null;
|
|
276
250
|
txHash: string | null;
|
|
251
|
+
checkoutUrl: string | null;
|
|
277
252
|
createdAt: string;
|
|
278
|
-
expiresAt: string
|
|
253
|
+
expiresAt: string;
|
|
279
254
|
confirmedAt: string | null;
|
|
280
255
|
settledAt: string | null;
|
|
281
256
|
lastActivityAt: string;
|
|
282
|
-
pausedAt: string | null;
|
|
283
|
-
canceledAt: string | null;
|
|
284
257
|
}>;
|
|
285
258
|
type Charge = z.infer<typeof ChargeSchema>;
|
|
286
259
|
declare const ListChargesSchema: z.ZodObject<{
|
|
287
|
-
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
260
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>>;
|
|
288
261
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
289
262
|
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
290
263
|
environment: z.ZodOptional<z.ZodEnum<["live", "test"]>>;
|
|
@@ -295,7 +268,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
295
268
|
cursor: z.ZodOptional<z.ZodString>;
|
|
296
269
|
}, "strip", z.ZodTypeAny, {
|
|
297
270
|
limit: number;
|
|
298
|
-
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" |
|
|
271
|
+
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
299
272
|
cursor?: string | undefined;
|
|
300
273
|
token?: "USDC" | "USDT" | undefined;
|
|
301
274
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -303,7 +276,7 @@ declare const ListChargesSchema: z.ZodObject<{
|
|
|
303
276
|
environment?: "live" | "test" | undefined;
|
|
304
277
|
since?: string | undefined;
|
|
305
278
|
}, {
|
|
306
|
-
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" |
|
|
279
|
+
status?: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid" | undefined;
|
|
307
280
|
limit?: number | undefined;
|
|
308
281
|
cursor?: string | undefined;
|
|
309
282
|
token?: "USDC" | "USDT" | undefined;
|
|
@@ -317,8 +290,7 @@ type ListChargesRequest = z.input<typeof ListChargesSchema>;
|
|
|
317
290
|
declare const PaginatedChargesSchema: z.ZodObject<{
|
|
318
291
|
data: z.ZodArray<z.ZodObject<{
|
|
319
292
|
id: z.ZodString;
|
|
320
|
-
|
|
321
|
-
amount: z.ZodNullable<z.ZodNumber>;
|
|
293
|
+
amount: z.ZodNumber;
|
|
322
294
|
amountReceived: z.ZodNullable<z.ZodNumber>;
|
|
323
295
|
isOverpaid: z.ZodBoolean;
|
|
324
296
|
currency: z.ZodString;
|
|
@@ -343,7 +315,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
343
315
|
network: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb";
|
|
344
316
|
}>, "many">;
|
|
345
317
|
address: z.ZodString;
|
|
346
|
-
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"
|
|
318
|
+
status: z.ZodEnum<["pending", "partially_paid", "confirmed", "expired", "underpaid"]>;
|
|
347
319
|
settlementStatus: z.ZodNullable<z.ZodEnum<["pending", "completed", "failed"]>>;
|
|
348
320
|
environment: z.ZodEnum<["live", "test"]>;
|
|
349
321
|
apiKeyId: z.ZodNullable<z.ZodString>;
|
|
@@ -351,17 +323,16 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
351
323
|
externalRef: z.ZodNullable<z.ZodString>;
|
|
352
324
|
source: z.ZodNullable<z.ZodString>;
|
|
353
325
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
326
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
327
|
+
checkoutUrl: z.ZodNullable<z.ZodString>;
|
|
354
328
|
createdAt: z.ZodString;
|
|
355
|
-
expiresAt: z.
|
|
329
|
+
expiresAt: z.ZodString;
|
|
356
330
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
357
331
|
settledAt: z.ZodNullable<z.ZodString>;
|
|
358
332
|
lastActivityAt: z.ZodString;
|
|
359
|
-
pausedAt: z.ZodNullable<z.ZodString>;
|
|
360
|
-
canceledAt: z.ZodNullable<z.ZodString>;
|
|
361
333
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
363
|
-
|
|
364
|
-
amount: number | null;
|
|
334
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
335
|
+
amount: number;
|
|
365
336
|
currency: string;
|
|
366
337
|
acceptedPayments: {
|
|
367
338
|
token: "USDC" | "USDT";
|
|
@@ -370,6 +341,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
370
341
|
externalRef: string | null;
|
|
371
342
|
source: string | null;
|
|
372
343
|
metadata: Record<string, unknown> | null;
|
|
344
|
+
redirectUrl: string | null;
|
|
373
345
|
id: string;
|
|
374
346
|
amountReceived: number | null;
|
|
375
347
|
isOverpaid: boolean;
|
|
@@ -382,17 +354,15 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
382
354
|
environment: "live" | "test";
|
|
383
355
|
apiKeyId: string | null;
|
|
384
356
|
txHash: string | null;
|
|
357
|
+
checkoutUrl: string | null;
|
|
385
358
|
createdAt: string;
|
|
386
|
-
expiresAt: string
|
|
359
|
+
expiresAt: string;
|
|
387
360
|
confirmedAt: string | null;
|
|
388
361
|
settledAt: string | null;
|
|
389
362
|
lastActivityAt: string;
|
|
390
|
-
pausedAt: string | null;
|
|
391
|
-
canceledAt: string | null;
|
|
392
363
|
}, {
|
|
393
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
394
|
-
|
|
395
|
-
amount: number | null;
|
|
364
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
365
|
+
amount: number;
|
|
396
366
|
currency: string;
|
|
397
367
|
acceptedPayments: {
|
|
398
368
|
token: "USDC" | "USDT";
|
|
@@ -401,6 +371,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
401
371
|
externalRef: string | null;
|
|
402
372
|
source: string | null;
|
|
403
373
|
metadata: Record<string, unknown> | null;
|
|
374
|
+
redirectUrl: string | null;
|
|
404
375
|
id: string;
|
|
405
376
|
amountReceived: number | null;
|
|
406
377
|
isOverpaid: boolean;
|
|
@@ -413,21 +384,19 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
413
384
|
environment: "live" | "test";
|
|
414
385
|
apiKeyId: string | null;
|
|
415
386
|
txHash: string | null;
|
|
387
|
+
checkoutUrl: string | null;
|
|
416
388
|
createdAt: string;
|
|
417
|
-
expiresAt: string
|
|
389
|
+
expiresAt: string;
|
|
418
390
|
confirmedAt: string | null;
|
|
419
391
|
settledAt: string | null;
|
|
420
392
|
lastActivityAt: string;
|
|
421
|
-
pausedAt: string | null;
|
|
422
|
-
canceledAt: string | null;
|
|
423
393
|
}>, "many">;
|
|
424
394
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
425
395
|
hasMore: z.ZodBoolean;
|
|
426
396
|
}, "strip", z.ZodTypeAny, {
|
|
427
397
|
data: {
|
|
428
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
429
|
-
|
|
430
|
-
amount: number | null;
|
|
398
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
399
|
+
amount: number;
|
|
431
400
|
currency: string;
|
|
432
401
|
acceptedPayments: {
|
|
433
402
|
token: "USDC" | "USDT";
|
|
@@ -436,6 +405,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
436
405
|
externalRef: string | null;
|
|
437
406
|
source: string | null;
|
|
438
407
|
metadata: Record<string, unknown> | null;
|
|
408
|
+
redirectUrl: string | null;
|
|
439
409
|
id: string;
|
|
440
410
|
amountReceived: number | null;
|
|
441
411
|
isOverpaid: boolean;
|
|
@@ -448,21 +418,19 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
448
418
|
environment: "live" | "test";
|
|
449
419
|
apiKeyId: string | null;
|
|
450
420
|
txHash: string | null;
|
|
421
|
+
checkoutUrl: string | null;
|
|
451
422
|
createdAt: string;
|
|
452
|
-
expiresAt: string
|
|
423
|
+
expiresAt: string;
|
|
453
424
|
confirmedAt: string | null;
|
|
454
425
|
settledAt: string | null;
|
|
455
426
|
lastActivityAt: string;
|
|
456
|
-
pausedAt: string | null;
|
|
457
|
-
canceledAt: string | null;
|
|
458
427
|
}[];
|
|
459
428
|
nextCursor: string | null;
|
|
460
429
|
hasMore: boolean;
|
|
461
430
|
}, {
|
|
462
431
|
data: {
|
|
463
|
-
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid"
|
|
464
|
-
|
|
465
|
-
amount: number | null;
|
|
432
|
+
status: "pending" | "partially_paid" | "confirmed" | "expired" | "underpaid";
|
|
433
|
+
amount: number;
|
|
466
434
|
currency: string;
|
|
467
435
|
acceptedPayments: {
|
|
468
436
|
token: "USDC" | "USDT";
|
|
@@ -471,6 +439,7 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
471
439
|
externalRef: string | null;
|
|
472
440
|
source: string | null;
|
|
473
441
|
metadata: Record<string, unknown> | null;
|
|
442
|
+
redirectUrl: string | null;
|
|
474
443
|
id: string;
|
|
475
444
|
amountReceived: number | null;
|
|
476
445
|
isOverpaid: boolean;
|
|
@@ -483,13 +452,12 @@ declare const PaginatedChargesSchema: z.ZodObject<{
|
|
|
483
452
|
environment: "live" | "test";
|
|
484
453
|
apiKeyId: string | null;
|
|
485
454
|
txHash: string | null;
|
|
455
|
+
checkoutUrl: string | null;
|
|
486
456
|
createdAt: string;
|
|
487
|
-
expiresAt: string
|
|
457
|
+
expiresAt: string;
|
|
488
458
|
confirmedAt: string | null;
|
|
489
459
|
settledAt: string | null;
|
|
490
460
|
lastActivityAt: string;
|
|
491
|
-
pausedAt: string | null;
|
|
492
|
-
canceledAt: string | null;
|
|
493
461
|
}[];
|
|
494
462
|
nextCursor: string | null;
|
|
495
463
|
hasMore: boolean;
|
|
@@ -508,105 +476,6 @@ declare const GetChargeQrCodeQuerySchema: z.ZodObject<{
|
|
|
508
476
|
type GetChargeQrCodeQuery = z.infer<typeof GetChargeQrCodeQuerySchema>;
|
|
509
477
|
type GetChargeQrCodeQueryRequest = z.input<typeof GetChargeQrCodeQuerySchema>;
|
|
510
478
|
|
|
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
479
|
declare const SplitDistributionStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>;
|
|
611
480
|
type SplitDistributionStatus = z.infer<typeof SplitDistributionStatusSchema>;
|
|
612
481
|
declare const PendingDistributionRecipientSchema: z.ZodObject<{
|
|
@@ -844,7 +713,7 @@ declare const MetricsAggregationSchema: z.ZodEnum<["count", "sum", "avg", "min",
|
|
|
844
713
|
type MetricsAggregation = z.infer<typeof MetricsAggregationSchema>;
|
|
845
714
|
declare const MetricsFilterOperatorSchema: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
846
715
|
type MetricsFilterOperator = z.infer<typeof MetricsFilterOperatorSchema>;
|
|
847
|
-
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month"]>;
|
|
716
|
+
declare const MetricsDateGranularitySchema: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
848
717
|
type MetricsDateGranularity = z.infer<typeof MetricsDateGranularitySchema>;
|
|
849
718
|
declare const MAX_METRICS_QUERY_DATE_RANGE_DAYS = 366;
|
|
850
719
|
declare const METRICS_QUERY_MAX_ROW_LIMIT = 1000;
|
|
@@ -852,11 +721,11 @@ declare const METRICS_QUERY_DEFAULT_ROW_LIMIT = 100;
|
|
|
852
721
|
declare const METRICS_QUERY_MAX_GROUP_BY = 3;
|
|
853
722
|
declare const METRICS_QUERY_MAX_FILTERS = 20;
|
|
854
723
|
declare const METRICS_QUERY_MAX_METRICS = 10;
|
|
855
|
-
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "
|
|
724
|
+
declare const ChargesQueryFieldSchema: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
856
725
|
type ChargesQueryField = z.infer<typeof ChargesQueryFieldSchema>;
|
|
857
726
|
declare const ChargesMetricFieldSchema: z.ZodEnum<["amount", "amountReceived", "feePercent"]>;
|
|
858
727
|
type ChargesMetricField = z.infer<typeof ChargesMetricFieldSchema>;
|
|
859
|
-
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
728
|
+
declare const ChargesDateFieldSchema: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
860
729
|
type ChargesDateField = z.infer<typeof ChargesDateFieldSchema>;
|
|
861
730
|
declare const TransactionsQueryFieldSchema: z.ZodEnum<["network", "token", "source", "causedTransition"]>;
|
|
862
731
|
type TransactionsQueryField = z.infer<typeof TransactionsQueryFieldSchema>;
|
|
@@ -864,49 +733,49 @@ declare const TransactionsMetricFieldSchema: z.ZodEnum<["amount"]>;
|
|
|
864
733
|
type TransactionsMetricField = z.infer<typeof TransactionsMetricFieldSchema>;
|
|
865
734
|
declare const TransactionsDateFieldSchema: z.ZodEnum<["detectedAt"]>;
|
|
866
735
|
type TransactionsDateField = z.infer<typeof TransactionsDateFieldSchema>;
|
|
867
|
-
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token"]>;
|
|
736
|
+
declare const DistributionsQueryFieldSchema: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
868
737
|
type DistributionsQueryField = z.infer<typeof DistributionsQueryFieldSchema>;
|
|
869
738
|
declare const DistributionsMetricFieldSchema: z.ZodEnum<["attempts"]>;
|
|
870
739
|
type DistributionsMetricField = z.infer<typeof DistributionsMetricFieldSchema>;
|
|
871
|
-
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
740
|
+
declare const DistributionsDateFieldSchema: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
872
741
|
type DistributionsDateField = z.infer<typeof DistributionsDateFieldSchema>;
|
|
873
742
|
declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource", [z.ZodObject<{
|
|
874
743
|
resource: z.ZodLiteral<"charges">;
|
|
875
744
|
environment: z.ZodEnum<["live", "test"]>;
|
|
876
745
|
dateRange: z.ZodObject<{
|
|
877
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
746
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
878
747
|
from: z.ZodString;
|
|
879
748
|
to: z.ZodString;
|
|
880
749
|
}, "strip", z.ZodTypeAny, {
|
|
881
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
750
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
882
751
|
from: string;
|
|
883
752
|
to: string;
|
|
884
753
|
}, {
|
|
885
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
754
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
886
755
|
from: string;
|
|
887
756
|
to: string;
|
|
888
757
|
}>;
|
|
889
758
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
890
759
|
type: z.ZodLiteral<"field">;
|
|
891
|
-
field: z.ZodEnum<["status", "
|
|
760
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
892
761
|
}, "strip", z.ZodTypeAny, {
|
|
893
762
|
type: "field";
|
|
894
|
-
field: "status" | "
|
|
763
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
895
764
|
}, {
|
|
896
765
|
type: "field";
|
|
897
|
-
field: "status" | "
|
|
766
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
898
767
|
}>, z.ZodObject<{
|
|
899
768
|
type: z.ZodLiteral<"date_bucket">;
|
|
900
|
-
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt"]>;
|
|
901
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
769
|
+
field: z.ZodEnum<["createdAt", "confirmedAt", "lastActivityAt", "expiresAt"]>;
|
|
770
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
902
771
|
}, "strip", z.ZodTypeAny, {
|
|
903
772
|
type: "date_bucket";
|
|
904
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
905
|
-
granularity: "day" | "week" | "month";
|
|
773
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
774
|
+
granularity: "day" | "week" | "month" | "year";
|
|
906
775
|
}, {
|
|
907
776
|
type: "date_bucket";
|
|
908
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
909
|
-
granularity: "day" | "week" | "month";
|
|
777
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
778
|
+
granularity: "day" | "week" | "month" | "year";
|
|
910
779
|
}>]>, "many">>;
|
|
911
780
|
metrics: z.ZodArray<z.ZodObject<{
|
|
912
781
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -922,16 +791,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
922
791
|
alias?: string | undefined;
|
|
923
792
|
}>, "many">;
|
|
924
793
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
925
|
-
field: z.ZodEnum<["status", "
|
|
794
|
+
field: z.ZodEnum<["status", "source", "apiKeyId", "currency", "isOverpaid", "externalRef"]>;
|
|
926
795
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
927
796
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
928
797
|
}, "strip", z.ZodTypeAny, {
|
|
929
798
|
value: string | number | boolean | (string | number)[];
|
|
930
|
-
field: "status" | "
|
|
799
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
931
800
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
932
801
|
}, {
|
|
933
802
|
value: string | number | boolean | (string | number)[];
|
|
934
|
-
field: "status" | "
|
|
803
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
935
804
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
936
805
|
}>, "many">>;
|
|
937
806
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -950,17 +819,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
950
819
|
environment: "live" | "test";
|
|
951
820
|
resource: "charges";
|
|
952
821
|
dateRange: {
|
|
953
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
822
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
954
823
|
from: string;
|
|
955
824
|
to: string;
|
|
956
825
|
};
|
|
957
826
|
groupBy: ({
|
|
958
827
|
type: "field";
|
|
959
|
-
field: "status" | "
|
|
828
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
960
829
|
} | {
|
|
961
830
|
type: "date_bucket";
|
|
962
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
963
|
-
granularity: "day" | "week" | "month";
|
|
831
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
832
|
+
granularity: "day" | "week" | "month" | "year";
|
|
964
833
|
})[];
|
|
965
834
|
metrics: {
|
|
966
835
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -969,7 +838,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
969
838
|
}[];
|
|
970
839
|
filters: {
|
|
971
840
|
value: string | number | boolean | (string | number)[];
|
|
972
|
-
field: "status" | "
|
|
841
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
973
842
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
974
843
|
}[];
|
|
975
844
|
orderBy?: {
|
|
@@ -980,7 +849,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
980
849
|
environment: "live" | "test";
|
|
981
850
|
resource: "charges";
|
|
982
851
|
dateRange: {
|
|
983
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
852
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
984
853
|
from: string;
|
|
985
854
|
to: string;
|
|
986
855
|
};
|
|
@@ -992,15 +861,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
992
861
|
limit?: number | undefined;
|
|
993
862
|
groupBy?: ({
|
|
994
863
|
type: "field";
|
|
995
|
-
field: "status" | "
|
|
864
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
996
865
|
} | {
|
|
997
866
|
type: "date_bucket";
|
|
998
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
999
|
-
granularity: "day" | "week" | "month";
|
|
867
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
868
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1000
869
|
})[] | undefined;
|
|
1001
870
|
filters?: {
|
|
1002
871
|
value: string | number | boolean | (string | number)[];
|
|
1003
|
-
field: "status" | "
|
|
872
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1004
873
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1005
874
|
}[] | undefined;
|
|
1006
875
|
orderBy?: {
|
|
@@ -1035,15 +904,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1035
904
|
}>, z.ZodObject<{
|
|
1036
905
|
type: z.ZodLiteral<"date_bucket">;
|
|
1037
906
|
field: z.ZodEnum<["detectedAt"]>;
|
|
1038
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
907
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1039
908
|
}, "strip", z.ZodTypeAny, {
|
|
1040
909
|
type: "date_bucket";
|
|
1041
910
|
field: "detectedAt";
|
|
1042
|
-
granularity: "day" | "week" | "month";
|
|
911
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1043
912
|
}, {
|
|
1044
913
|
type: "date_bucket";
|
|
1045
914
|
field: "detectedAt";
|
|
1046
|
-
granularity: "day" | "week" | "month";
|
|
915
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1047
916
|
}>]>, "many">>;
|
|
1048
917
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1049
918
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1097,7 +966,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1097
966
|
} | {
|
|
1098
967
|
type: "date_bucket";
|
|
1099
968
|
field: "detectedAt";
|
|
1100
|
-
granularity: "day" | "week" | "month";
|
|
969
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1101
970
|
})[];
|
|
1102
971
|
metrics: {
|
|
1103
972
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1133,7 +1002,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1133
1002
|
} | {
|
|
1134
1003
|
type: "date_bucket";
|
|
1135
1004
|
field: "detectedAt";
|
|
1136
|
-
granularity: "day" | "week" | "month";
|
|
1005
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1137
1006
|
})[] | undefined;
|
|
1138
1007
|
filters?: {
|
|
1139
1008
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1148,39 +1017,39 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1148
1017
|
resource: z.ZodLiteral<"distributions">;
|
|
1149
1018
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1150
1019
|
dateRange: z.ZodObject<{
|
|
1151
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1020
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1152
1021
|
from: z.ZodString;
|
|
1153
1022
|
to: z.ZodString;
|
|
1154
1023
|
}, "strip", z.ZodTypeAny, {
|
|
1155
|
-
field: "createdAt" | "completedAt";
|
|
1024
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1156
1025
|
from: string;
|
|
1157
1026
|
to: string;
|
|
1158
1027
|
}, {
|
|
1159
|
-
field: "createdAt" | "completedAt";
|
|
1028
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1160
1029
|
from: string;
|
|
1161
1030
|
to: string;
|
|
1162
1031
|
}>;
|
|
1163
1032
|
groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1164
1033
|
type: z.ZodLiteral<"field">;
|
|
1165
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1034
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1166
1035
|
}, "strip", z.ZodTypeAny, {
|
|
1167
1036
|
type: "field";
|
|
1168
|
-
field: "status" | "token" | "network";
|
|
1037
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1169
1038
|
}, {
|
|
1170
1039
|
type: "field";
|
|
1171
|
-
field: "status" | "token" | "network";
|
|
1040
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1172
1041
|
}>, z.ZodObject<{
|
|
1173
1042
|
type: z.ZodLiteral<"date_bucket">;
|
|
1174
|
-
field: z.ZodEnum<["createdAt", "completedAt"]>;
|
|
1175
|
-
granularity: z.ZodEnum<["day", "week", "month"]>;
|
|
1043
|
+
field: z.ZodEnum<["createdAt", "processingStartedAt", "completedAt"]>;
|
|
1044
|
+
granularity: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
1176
1045
|
}, "strip", z.ZodTypeAny, {
|
|
1177
1046
|
type: "date_bucket";
|
|
1178
|
-
field: "createdAt" | "completedAt";
|
|
1179
|
-
granularity: "day" | "week" | "month";
|
|
1047
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1048
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1180
1049
|
}, {
|
|
1181
1050
|
type: "date_bucket";
|
|
1182
|
-
field: "createdAt" | "completedAt";
|
|
1183
|
-
granularity: "day" | "week" | "month";
|
|
1051
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1052
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1184
1053
|
}>]>, "many">>;
|
|
1185
1054
|
metrics: z.ZodArray<z.ZodObject<{
|
|
1186
1055
|
aggregation: z.ZodEnum<["count", "sum", "avg", "min", "max"]>;
|
|
@@ -1196,16 +1065,16 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1196
1065
|
alias?: string | undefined;
|
|
1197
1066
|
}>, "many">;
|
|
1198
1067
|
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1199
|
-
field: z.ZodEnum<["status", "network", "token"]>;
|
|
1068
|
+
field: z.ZodEnum<["status", "network", "token", "distributorAddress"]>;
|
|
1200
1069
|
operator: z.ZodEnum<["eq", "neq", "in", "gt", "gte", "lt", "lte"]>;
|
|
1201
1070
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
1202
1071
|
}, "strip", z.ZodTypeAny, {
|
|
1203
1072
|
value: string | number | boolean | (string | number)[];
|
|
1204
|
-
field: "status" | "token" | "network";
|
|
1073
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1205
1074
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1206
1075
|
}, {
|
|
1207
1076
|
value: string | number | boolean | (string | number)[];
|
|
1208
|
-
field: "status" | "token" | "network";
|
|
1077
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1209
1078
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1210
1079
|
}>, "many">>;
|
|
1211
1080
|
orderBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -1224,17 +1093,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1224
1093
|
environment: "live" | "test";
|
|
1225
1094
|
resource: "distributions";
|
|
1226
1095
|
dateRange: {
|
|
1227
|
-
field: "createdAt" | "completedAt";
|
|
1096
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1228
1097
|
from: string;
|
|
1229
1098
|
to: string;
|
|
1230
1099
|
};
|
|
1231
1100
|
groupBy: ({
|
|
1232
1101
|
type: "field";
|
|
1233
|
-
field: "status" | "token" | "network";
|
|
1102
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1234
1103
|
} | {
|
|
1235
1104
|
type: "date_bucket";
|
|
1236
|
-
field: "createdAt" | "completedAt";
|
|
1237
|
-
granularity: "day" | "week" | "month";
|
|
1105
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1106
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1238
1107
|
})[];
|
|
1239
1108
|
metrics: {
|
|
1240
1109
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1243,7 +1112,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1243
1112
|
}[];
|
|
1244
1113
|
filters: {
|
|
1245
1114
|
value: string | number | boolean | (string | number)[];
|
|
1246
|
-
field: "status" | "token" | "network";
|
|
1115
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1247
1116
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1248
1117
|
}[];
|
|
1249
1118
|
orderBy?: {
|
|
@@ -1254,7 +1123,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1254
1123
|
environment: "live" | "test";
|
|
1255
1124
|
resource: "distributions";
|
|
1256
1125
|
dateRange: {
|
|
1257
|
-
field: "createdAt" | "completedAt";
|
|
1126
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1258
1127
|
from: string;
|
|
1259
1128
|
to: string;
|
|
1260
1129
|
};
|
|
@@ -1266,15 +1135,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1266
1135
|
limit?: number | undefined;
|
|
1267
1136
|
groupBy?: ({
|
|
1268
1137
|
type: "field";
|
|
1269
|
-
field: "status" | "token" | "network";
|
|
1138
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1270
1139
|
} | {
|
|
1271
1140
|
type: "date_bucket";
|
|
1272
|
-
field: "createdAt" | "completedAt";
|
|
1273
|
-
granularity: "day" | "week" | "month";
|
|
1141
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1142
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1274
1143
|
})[] | undefined;
|
|
1275
1144
|
filters?: {
|
|
1276
1145
|
value: string | number | boolean | (string | number)[];
|
|
1277
|
-
field: "status" | "token" | "network";
|
|
1146
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1278
1147
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1279
1148
|
}[] | undefined;
|
|
1280
1149
|
orderBy?: {
|
|
@@ -1286,17 +1155,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1286
1155
|
environment: "live" | "test";
|
|
1287
1156
|
resource: "charges";
|
|
1288
1157
|
dateRange: {
|
|
1289
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1158
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1290
1159
|
from: string;
|
|
1291
1160
|
to: string;
|
|
1292
1161
|
};
|
|
1293
1162
|
groupBy: ({
|
|
1294
1163
|
type: "field";
|
|
1295
|
-
field: "status" | "
|
|
1164
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1296
1165
|
} | {
|
|
1297
1166
|
type: "date_bucket";
|
|
1298
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1299
|
-
granularity: "day" | "week" | "month";
|
|
1167
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1168
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1300
1169
|
})[];
|
|
1301
1170
|
metrics: {
|
|
1302
1171
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1305,7 +1174,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1305
1174
|
}[];
|
|
1306
1175
|
filters: {
|
|
1307
1176
|
value: string | number | boolean | (string | number)[];
|
|
1308
|
-
field: "status" | "
|
|
1177
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1309
1178
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1310
1179
|
}[];
|
|
1311
1180
|
orderBy?: {
|
|
@@ -1327,7 +1196,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1327
1196
|
} | {
|
|
1328
1197
|
type: "date_bucket";
|
|
1329
1198
|
field: "detectedAt";
|
|
1330
|
-
granularity: "day" | "week" | "month";
|
|
1199
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1331
1200
|
})[];
|
|
1332
1201
|
metrics: {
|
|
1333
1202
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1348,17 +1217,17 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1348
1217
|
environment: "live" | "test";
|
|
1349
1218
|
resource: "distributions";
|
|
1350
1219
|
dateRange: {
|
|
1351
|
-
field: "createdAt" | "completedAt";
|
|
1220
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1352
1221
|
from: string;
|
|
1353
1222
|
to: string;
|
|
1354
1223
|
};
|
|
1355
1224
|
groupBy: ({
|
|
1356
1225
|
type: "field";
|
|
1357
|
-
field: "status" | "token" | "network";
|
|
1226
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1358
1227
|
} | {
|
|
1359
1228
|
type: "date_bucket";
|
|
1360
|
-
field: "createdAt" | "completedAt";
|
|
1361
|
-
granularity: "day" | "week" | "month";
|
|
1229
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1230
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1362
1231
|
})[];
|
|
1363
1232
|
metrics: {
|
|
1364
1233
|
aggregation: "count" | "sum" | "avg" | "min" | "max";
|
|
@@ -1367,7 +1236,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1367
1236
|
}[];
|
|
1368
1237
|
filters: {
|
|
1369
1238
|
value: string | number | boolean | (string | number)[];
|
|
1370
|
-
field: "status" | "token" | "network";
|
|
1239
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1371
1240
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1372
1241
|
}[];
|
|
1373
1242
|
orderBy?: {
|
|
@@ -1378,7 +1247,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1378
1247
|
environment: "live" | "test";
|
|
1379
1248
|
resource: "charges";
|
|
1380
1249
|
dateRange: {
|
|
1381
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1250
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1382
1251
|
from: string;
|
|
1383
1252
|
to: string;
|
|
1384
1253
|
};
|
|
@@ -1390,15 +1259,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1390
1259
|
limit?: number | undefined;
|
|
1391
1260
|
groupBy?: ({
|
|
1392
1261
|
type: "field";
|
|
1393
|
-
field: "status" | "
|
|
1262
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1394
1263
|
} | {
|
|
1395
1264
|
type: "date_bucket";
|
|
1396
|
-
field: "createdAt" | "confirmedAt" | "lastActivityAt";
|
|
1397
|
-
granularity: "day" | "week" | "month";
|
|
1265
|
+
field: "createdAt" | "expiresAt" | "confirmedAt" | "lastActivityAt";
|
|
1266
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1398
1267
|
})[] | undefined;
|
|
1399
1268
|
filters?: {
|
|
1400
1269
|
value: string | number | boolean | (string | number)[];
|
|
1401
|
-
field: "status" | "
|
|
1270
|
+
field: "status" | "currency" | "externalRef" | "source" | "isOverpaid" | "apiKeyId";
|
|
1402
1271
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1403
1272
|
}[] | undefined;
|
|
1404
1273
|
orderBy?: {
|
|
@@ -1425,7 +1294,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1425
1294
|
} | {
|
|
1426
1295
|
type: "date_bucket";
|
|
1427
1296
|
field: "detectedAt";
|
|
1428
|
-
granularity: "day" | "week" | "month";
|
|
1297
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1429
1298
|
})[] | undefined;
|
|
1430
1299
|
filters?: {
|
|
1431
1300
|
value: string | number | boolean | (string | number)[];
|
|
@@ -1440,7 +1309,7 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1440
1309
|
environment: "live" | "test";
|
|
1441
1310
|
resource: "distributions";
|
|
1442
1311
|
dateRange: {
|
|
1443
|
-
field: "createdAt" | "completedAt";
|
|
1312
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1444
1313
|
from: string;
|
|
1445
1314
|
to: string;
|
|
1446
1315
|
};
|
|
@@ -1452,15 +1321,15 @@ declare const MetricsQuerySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"resource
|
|
|
1452
1321
|
limit?: number | undefined;
|
|
1453
1322
|
groupBy?: ({
|
|
1454
1323
|
type: "field";
|
|
1455
|
-
field: "status" | "token" | "network";
|
|
1324
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1456
1325
|
} | {
|
|
1457
1326
|
type: "date_bucket";
|
|
1458
|
-
field: "createdAt" | "completedAt";
|
|
1459
|
-
granularity: "day" | "week" | "month";
|
|
1327
|
+
field: "createdAt" | "processingStartedAt" | "completedAt";
|
|
1328
|
+
granularity: "day" | "week" | "month" | "year";
|
|
1460
1329
|
})[] | undefined;
|
|
1461
1330
|
filters?: {
|
|
1462
1331
|
value: string | number | boolean | (string | number)[];
|
|
1463
|
-
field: "status" | "token" | "network";
|
|
1332
|
+
field: "status" | "token" | "network" | "distributorAddress";
|
|
1464
1333
|
operator: "eq" | "neq" | "in" | "gt" | "gte" | "lt" | "lte";
|
|
1465
1334
|
}[] | undefined;
|
|
1466
1335
|
orderBy?: {
|
|
@@ -1472,26 +1341,21 @@ type MetricsQuery = z.infer<typeof MetricsQuerySchema>;
|
|
|
1472
1341
|
type MetricsQueryRequest = z.input<typeof MetricsQuerySchema>;
|
|
1473
1342
|
declare const MetricsQueryResultRowSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1474
1343
|
type MetricsQueryResultRow = z.infer<typeof MetricsQueryResultRowSchema>;
|
|
1475
|
-
declare const MetricsQueryScopeSchema: z.ZodEnum<["owner_admin", "member"]>;
|
|
1476
|
-
type MetricsQueryScope = z.infer<typeof MetricsQueryScopeSchema>;
|
|
1477
1344
|
declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
1478
1345
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
|
|
1479
1346
|
meta: z.ZodObject<{
|
|
1480
1347
|
resource: z.ZodEnum<["charges", "transactions", "distributions"]>;
|
|
1481
1348
|
environment: z.ZodEnum<["live", "test"]>;
|
|
1482
|
-
scope: z.ZodEnum<["owner_admin", "member"]>;
|
|
1483
1349
|
rowCount: z.ZodNumber;
|
|
1484
1350
|
truncated: z.ZodBoolean;
|
|
1485
1351
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1352
|
environment: "live" | "test";
|
|
1487
1353
|
resource: "charges" | "transactions" | "distributions";
|
|
1488
|
-
scope: "owner_admin" | "member";
|
|
1489
1354
|
rowCount: number;
|
|
1490
1355
|
truncated: boolean;
|
|
1491
1356
|
}, {
|
|
1492
1357
|
environment: "live" | "test";
|
|
1493
1358
|
resource: "charges" | "transactions" | "distributions";
|
|
1494
|
-
scope: "owner_admin" | "member";
|
|
1495
1359
|
rowCount: number;
|
|
1496
1360
|
truncated: boolean;
|
|
1497
1361
|
}>;
|
|
@@ -1500,7 +1364,6 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1500
1364
|
meta: {
|
|
1501
1365
|
environment: "live" | "test";
|
|
1502
1366
|
resource: "charges" | "transactions" | "distributions";
|
|
1503
|
-
scope: "owner_admin" | "member";
|
|
1504
1367
|
rowCount: number;
|
|
1505
1368
|
truncated: boolean;
|
|
1506
1369
|
};
|
|
@@ -1509,232 +1372,28 @@ declare const MetricsQueryResultSchema: z.ZodObject<{
|
|
|
1509
1372
|
meta: {
|
|
1510
1373
|
environment: "live" | "test";
|
|
1511
1374
|
resource: "charges" | "transactions" | "distributions";
|
|
1512
|
-
scope: "owner_admin" | "member";
|
|
1513
1375
|
rowCount: number;
|
|
1514
1376
|
truncated: boolean;
|
|
1515
1377
|
};
|
|
1516
1378
|
}>;
|
|
1517
1379
|
type MetricsQueryResult = z.infer<typeof MetricsQueryResultSchema>;
|
|
1518
1380
|
|
|
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"]>;
|
|
1381
|
+
declare const ChargeWebhookEventTypeSchema: z.ZodEnum<["charge.created", "charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
1521
1382
|
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"]>]>;
|
|
1383
|
+
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
1384
|
type WebhookEventType = z.infer<typeof WebhookEventTypeSchema>;
|
|
1525
|
-
declare const WebhookCategorySchema: z.ZodEnum<["payments", "
|
|
1385
|
+
declare const WebhookCategorySchema: z.ZodEnum<["payments", "webhooks"]>;
|
|
1526
1386
|
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" | "
|
|
1387
|
+
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
1388
|
declare const WEBHOOK_EVENT_CATEGORIES: Record<WebhookCategory, readonly WebhookEventType[]>;
|
|
1529
1389
|
declare const TriggerableChargeEventSchema: z.ZodEnum<["charge.partially_paid", "charge.confirmed", "charge.expired", "charge.underpaid", "charge.settled", "charge.settlement_failed", "charge.overpaid"]>;
|
|
1530
1390
|
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
1391
|
|
|
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
1392
|
type WebhookHealthEventData = {
|
|
1645
1393
|
webhookId: string;
|
|
1646
1394
|
url: string;
|
|
1647
1395
|
failureRatio?: number;
|
|
1648
1396
|
};
|
|
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
1397
|
type WebhookEventDataMap = {
|
|
1739
1398
|
'charge.created': Charge;
|
|
1740
1399
|
'charge.partially_paid': Charge;
|
|
@@ -1744,34 +1403,9 @@ type WebhookEventDataMap = {
|
|
|
1744
1403
|
'charge.settled': Charge;
|
|
1745
1404
|
'charge.settlement_failed': Charge;
|
|
1746
1405
|
'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
1406
|
'webhook.delivery_failed': WebhookHealthEventData;
|
|
1760
1407
|
'webhook.delivery_recovered': WebhookHealthEventData;
|
|
1761
1408
|
'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
1409
|
};
|
|
1776
1410
|
type TypedWebhookPayload = {
|
|
1777
1411
|
[E in WebhookEventType]: {
|
|
@@ -1785,29 +1419,29 @@ type TypedWebhookPayload = {
|
|
|
1785
1419
|
declare const WEBHOOK_EVENTS_WILDCARD = "*";
|
|
1786
1420
|
declare const CreateWebhookSchema: z.ZodEffects<z.ZodObject<{
|
|
1787
1421
|
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"
|
|
1422
|
+
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">>;
|
|
1423
|
+
eventCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">>;
|
|
1424
|
+
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
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1792
1426
|
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" | "
|
|
1427
|
+
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" | "*")[];
|
|
1428
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1429
|
+
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
1430
|
}, {
|
|
1797
1431
|
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" | "
|
|
1432
|
+
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;
|
|
1433
|
+
eventCategories?: ("payments" | "webhooks")[] | undefined;
|
|
1434
|
+
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
1435
|
}>, {
|
|
1802
1436
|
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" | "
|
|
1437
|
+
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" | "*")[];
|
|
1438
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1439
|
+
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
1440
|
}, {
|
|
1807
1441
|
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" | "
|
|
1442
|
+
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;
|
|
1443
|
+
eventCategories?: ("payments" | "webhooks")[] | undefined;
|
|
1444
|
+
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
1445
|
}>;
|
|
1812
1446
|
type CreateWebhookInput = z.infer<typeof CreateWebhookSchema>;
|
|
1813
1447
|
type CreateWebhookRequest = z.input<typeof CreateWebhookSchema>;
|
|
@@ -1815,9 +1449,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1815
1449
|
id: z.ZodString;
|
|
1816
1450
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1817
1451
|
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"
|
|
1452
|
+
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">;
|
|
1453
|
+
eventCategories: z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">;
|
|
1454
|
+
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
1455
|
isWildcard: z.ZodBoolean;
|
|
1822
1456
|
secret: z.ZodString;
|
|
1823
1457
|
createdAt: z.ZodString;
|
|
@@ -1826,9 +1460,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1826
1460
|
environment: "live" | "test" | null;
|
|
1827
1461
|
createdAt: string;
|
|
1828
1462
|
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" | "
|
|
1463
|
+
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")[];
|
|
1464
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1465
|
+
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
1466
|
isWildcard: boolean;
|
|
1833
1467
|
secret: string;
|
|
1834
1468
|
}, {
|
|
@@ -1836,9 +1470,9 @@ declare const WebhookSchema: z.ZodObject<{
|
|
|
1836
1470
|
environment: "live" | "test" | null;
|
|
1837
1471
|
createdAt: string;
|
|
1838
1472
|
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" | "
|
|
1473
|
+
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")[];
|
|
1474
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1475
|
+
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
1476
|
isWildcard: boolean;
|
|
1843
1477
|
secret: string;
|
|
1844
1478
|
}>;
|
|
@@ -1847,9 +1481,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1847
1481
|
id: z.ZodString;
|
|
1848
1482
|
environment: z.ZodNullable<z.ZodEnum<["live", "test"]>>;
|
|
1849
1483
|
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"
|
|
1484
|
+
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">;
|
|
1485
|
+
eventCategories: z.ZodArray<z.ZodEnum<["payments", "webhooks"]>, "many">;
|
|
1486
|
+
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
1487
|
isWildcard: z.ZodBoolean;
|
|
1854
1488
|
secret: z.ZodString;
|
|
1855
1489
|
createdAt: z.ZodString;
|
|
@@ -1860,9 +1494,9 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1860
1494
|
environment: "live" | "test" | null;
|
|
1861
1495
|
createdAt: string;
|
|
1862
1496
|
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" | "
|
|
1497
|
+
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")[];
|
|
1498
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1499
|
+
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
1500
|
isWildcard: boolean;
|
|
1867
1501
|
hint: string;
|
|
1868
1502
|
}, {
|
|
@@ -1870,27 +1504,27 @@ declare const WebhookListItemSchema: z.ZodObject<Omit<{
|
|
|
1870
1504
|
environment: "live" | "test" | null;
|
|
1871
1505
|
createdAt: string;
|
|
1872
1506
|
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" | "
|
|
1507
|
+
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")[];
|
|
1508
|
+
eventCategories: ("payments" | "webhooks")[];
|
|
1509
|
+
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
1510
|
isWildcard: boolean;
|
|
1877
1511
|
hint: string;
|
|
1878
1512
|
}>;
|
|
1879
1513
|
type WebhookListItem = z.infer<typeof WebhookListItemSchema>;
|
|
1880
1514
|
declare const WebhookPayloadSchema: z.ZodObject<{
|
|
1881
1515
|
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"
|
|
1516
|
+
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
1517
|
createdAt: z.ZodString;
|
|
1884
1518
|
data: z.ZodUnknown;
|
|
1885
1519
|
}, "strip", z.ZodTypeAny, {
|
|
1886
1520
|
id: string;
|
|
1887
1521
|
createdAt: string;
|
|
1888
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1522
|
+
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
1523
|
data?: unknown;
|
|
1890
1524
|
}, {
|
|
1891
1525
|
id: string;
|
|
1892
1526
|
createdAt: string;
|
|
1893
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1527
|
+
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
1528
|
data?: unknown;
|
|
1895
1529
|
}>;
|
|
1896
1530
|
type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
|
|
@@ -1899,7 +1533,7 @@ type WebhookDeliveryStatus = z.infer<typeof WebhookDeliveryStatusSchema>;
|
|
|
1899
1533
|
declare const WebhookDeliverySchema: z.ZodObject<{
|
|
1900
1534
|
id: z.ZodString;
|
|
1901
1535
|
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"
|
|
1536
|
+
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
1537
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1904
1538
|
attempts: z.ZodNumber;
|
|
1905
1539
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1911,7 +1545,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1911
1545
|
id: string;
|
|
1912
1546
|
createdAt: string;
|
|
1913
1547
|
attempts: number;
|
|
1914
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1548
|
+
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
1549
|
webhookId: string;
|
|
1916
1550
|
responseCode: number | null;
|
|
1917
1551
|
nextRetryAt: string | null;
|
|
@@ -1921,7 +1555,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
1921
1555
|
id: string;
|
|
1922
1556
|
createdAt: string;
|
|
1923
1557
|
attempts: number;
|
|
1924
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1558
|
+
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
1559
|
webhookId: string;
|
|
1926
1560
|
responseCode: number | null;
|
|
1927
1561
|
nextRetryAt: string | null;
|
|
@@ -1944,7 +1578,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1944
1578
|
data: z.ZodArray<z.ZodObject<{
|
|
1945
1579
|
id: z.ZodString;
|
|
1946
1580
|
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"
|
|
1581
|
+
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
1582
|
status: z.ZodEnum<["pending", "delivered", "failed"]>;
|
|
1949
1583
|
attempts: z.ZodNumber;
|
|
1950
1584
|
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1956,7 +1590,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1956
1590
|
id: string;
|
|
1957
1591
|
createdAt: string;
|
|
1958
1592
|
attempts: number;
|
|
1959
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1593
|
+
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
1594
|
webhookId: string;
|
|
1961
1595
|
responseCode: number | null;
|
|
1962
1596
|
nextRetryAt: string | null;
|
|
@@ -1966,7 +1600,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1966
1600
|
id: string;
|
|
1967
1601
|
createdAt: string;
|
|
1968
1602
|
attempts: number;
|
|
1969
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1603
|
+
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
1604
|
webhookId: string;
|
|
1971
1605
|
responseCode: number | null;
|
|
1972
1606
|
nextRetryAt: string | null;
|
|
@@ -1980,7 +1614,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1980
1614
|
id: string;
|
|
1981
1615
|
createdAt: string;
|
|
1982
1616
|
attempts: number;
|
|
1983
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1617
|
+
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
1618
|
webhookId: string;
|
|
1985
1619
|
responseCode: number | null;
|
|
1986
1620
|
nextRetryAt: string | null;
|
|
@@ -1994,7 +1628,7 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
1994
1628
|
id: string;
|
|
1995
1629
|
createdAt: string;
|
|
1996
1630
|
attempts: number;
|
|
1997
|
-
event: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1631
|
+
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
1632
|
webhookId: string;
|
|
1999
1633
|
responseCode: number | null;
|
|
2000
1634
|
nextRetryAt: string | null;
|
|
@@ -2005,457 +1639,12 @@ declare const PaginatedWebhookDeliveriesSchema: z.ZodObject<{
|
|
|
2005
1639
|
}>;
|
|
2006
1640
|
type PaginatedWebhookDeliveries = z.infer<typeof PaginatedWebhookDeliveriesSchema>;
|
|
2007
1641
|
|
|
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
1642
|
declare const TransactionSourceSchema: z.ZodEnum<["moralis_webhook", "reconciliation_job", "sandbox"]>;
|
|
2454
1643
|
type TransactionSource = z.infer<typeof TransactionSourceSchema>;
|
|
2455
|
-
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "
|
|
1644
|
+
declare const TimelineEventTypeSchema: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2456
1645
|
type TimelineEventType = z.infer<typeof TimelineEventTypeSchema>;
|
|
2457
1646
|
declare const TimelineEventSchema: z.ZodObject<{
|
|
2458
|
-
type: z.ZodEnum<["charge.created", "charge.expired", "
|
|
1647
|
+
type: z.ZodEnum<["charge.created", "charge.expired", "transaction.detected", "split.distributed", "webhook.dispatched", "webhook.delivered", "webhook.failed"]>;
|
|
2459
1648
|
at: z.ZodString;
|
|
2460
1649
|
txHash: z.ZodOptional<z.ZodString>;
|
|
2461
1650
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2463,11 +1652,11 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2463
1652
|
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT"]>>;
|
|
2464
1653
|
network: z.ZodOptional<z.ZodEnum<["base", "optimism", "polygon", "ethereum", "arbitrum", "avalanche", "bnb"]>>;
|
|
2465
1654
|
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"
|
|
1655
|
+
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
1656
|
responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2468
1657
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2469
1658
|
}, "strip", z.ZodTypeAny, {
|
|
2470
|
-
type: "charge.created" | "charge.expired" | "
|
|
1659
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2471
1660
|
at: string;
|
|
2472
1661
|
token?: "USDC" | "USDT" | undefined;
|
|
2473
1662
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2476,10 +1665,10 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2476
1665
|
txHash?: string | undefined;
|
|
2477
1666
|
causedTransition?: boolean | undefined;
|
|
2478
1667
|
attempts?: number | undefined;
|
|
2479
|
-
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1668
|
+
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
1669
|
responseCode?: number | null | undefined;
|
|
2481
1670
|
}, {
|
|
2482
|
-
type: "charge.created" | "charge.expired" | "
|
|
1671
|
+
type: "charge.created" | "charge.expired" | "transaction.detected" | "split.distributed" | "webhook.dispatched" | "webhook.delivered" | "webhook.failed";
|
|
2483
1672
|
at: string;
|
|
2484
1673
|
token?: "USDC" | "USDT" | undefined;
|
|
2485
1674
|
network?: "base" | "optimism" | "polygon" | "ethereum" | "arbitrum" | "avalanche" | "bnb" | undefined;
|
|
@@ -2488,7 +1677,7 @@ declare const TimelineEventSchema: z.ZodObject<{
|
|
|
2488
1677
|
txHash?: string | undefined;
|
|
2489
1678
|
causedTransition?: boolean | undefined;
|
|
2490
1679
|
attempts?: number | undefined;
|
|
2491
|
-
event?: "charge.created" | "charge.partially_paid" | "charge.confirmed" | "charge.expired" | "charge.underpaid" | "charge.settled" | "charge.settlement_failed" | "charge.overpaid" | "
|
|
1680
|
+
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
1681
|
responseCode?: number | null | undefined;
|
|
2493
1682
|
}>;
|
|
2494
1683
|
type TimelineEvent = z.infer<typeof TimelineEventSchema>;
|
|
@@ -2531,14 +1720,6 @@ declare const SandboxTriggerSchema: z.ZodObject<{
|
|
|
2531
1720
|
amount?: number | undefined;
|
|
2532
1721
|
}>;
|
|
2533
1722
|
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
1723
|
|
|
2543
1724
|
declare const CapabilitiesSchema: z.ZodObject<{
|
|
2544
1725
|
acceptedPayments: z.ZodArray<z.ZodObject<{
|
|
@@ -2564,4 +1745,4 @@ declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
2564
1745
|
}>;
|
|
2565
1746
|
type Capabilities = z.infer<typeof CapabilitiesSchema>;
|
|
2566
1747
|
|
|
2567
|
-
export {
|
|
1748
|
+
export { API_KEY_SCOPES, type AcceptedPayment, AcceptedPaymentSchema, type ApiKeyScope, ApiKeyScopeSchema, CHARGE_ACCEPTED_PAYMENTS_MAX, CHARGE_AMOUNT_MAX, CHARGE_EXPIRES_IN_MAX_SECONDS, CHARGE_EXPIRES_IN_MIN_SECONDS, type Capabilities, CapabilitiesSchema, type Charge, ChargeSchema, type ChargeStatus, ChargeStatusSchema, ChargeWebhookEventTypeSchema, type ChargesDateField, ChargesDateFieldSchema, type ChargesMetricField, ChargesMetricFieldSchema, type ChargesQueryField, ChargesQueryFieldSchema, type CreateChargeInput, type CreateChargeRequest, CreateChargeSchema, type CreateWebhookInput, type CreateWebhookRequest, CreateWebhookSchema, type DistributionsDateField, DistributionsDateFieldSchema, type DistributionsMetricField, DistributionsMetricFieldSchema, type DistributionsQueryField, DistributionsQueryFieldSchema, EVENT_CATEGORY_MAP, EVM_NETWORKS, type Environment, EnvironmentSchema, type ErrorPayload, ErrorPayloadSchema, type EvmNetwork, type GetChargeQrCodeQuery, type GetChargeQrCodeQueryRequest, GetChargeQrCodeQuerySchema, type Health, HealthSchema, type ListChargesInput, type ListChargesRequest, ListChargesSchema, type ListWebhookDeliveriesInput, type ListWebhookDeliveriesRequest, ListWebhookDeliveriesSchema, type ListenPendingDistributionsQuery, ListenPendingDistributionsQuerySchema, MAX_METRICS_QUERY_DATE_RANGE_DAYS, METRICS_QUERY_DEFAULT_ROW_LIMIT, METRICS_QUERY_MAX_FILTERS, METRICS_QUERY_MAX_GROUP_BY, METRICS_QUERY_MAX_METRICS, METRICS_QUERY_MAX_ROW_LIMIT, type MetricsAggregation, MetricsAggregationSchema, type MetricsDateGranularity, MetricsDateGranularitySchema, type MetricsFilterOperator, MetricsFilterOperatorSchema, type MetricsQuery, type MetricsQueryRequest, type MetricsQueryResult, type MetricsQueryResultRow, MetricsQueryResultRowSchema, MetricsQueryResultSchema, MetricsQuerySchema, type MetricsResource, MetricsResourceSchema, NETWORK_EXPLORERS, NETWORK_LABELS, type Network, NetworkSchema, OPERATIONAL_NETWORKS, type OperationalNetwork, PAGINATION_LIMIT_DEFAULT, PAGINATION_LIMIT_MAX, PAGINATION_LIMIT_MIN, type PaginatedCharges, PaginatedChargesSchema, type PaginatedPendingDistributions, PaginatedPendingDistributionsSchema, type PaginatedWebhookDeliveries, PaginatedWebhookDeliveriesSchema, type PaginationQuery, type PaginationQueryRequest, PaginationQuerySchema, type PendingDistribution, type PendingDistributionEvent, PendingDistributionEventSchema, PendingDistributionRecipientSchema, PendingDistributionSchema, type SandboxTriggerInput, SandboxTriggerSchema, type SettlementStatus, SettlementStatusSchema, type SplitDistributionStatus, SplitDistributionStatusSchema, TOKEN_ADDRESSES, TOKEN_DECIMALS, type TimelineEvent, TimelineEventSchema, type TimelineEventType, TimelineEventTypeSchema, type Token, TokenSchema, type TransactionSource, TransactionSourceSchema, type TransactionsDateField, TransactionsDateFieldSchema, type TransactionsMetricField, TransactionsMetricFieldSchema, type TransactionsQueryField, TransactionsQueryFieldSchema, type TriggerableChargeEvent, TriggerableChargeEventSchema, type TypedWebhookPayload, WEBHOOK_EVENTS_WILDCARD, WEBHOOK_EVENT_CATEGORIES, type Webhook, type WebhookCategory, WebhookCategorySchema, type WebhookDelivery, WebhookDeliveryEventTypeSchema, WebhookDeliverySchema, type WebhookDeliveryStatus, WebhookDeliveryStatusSchema, type WebhookEventDataMap, type WebhookEventType, WebhookEventTypeSchema, type WebhookHealthEventData, type WebhookListItem, WebhookListItemSchema, type WebhookPayload, WebhookPayloadSchema, WebhookSchema, paginatedSchema };
|