@long2ice/relayx-backend 0.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.
Files changed (88) hide show
  1. package/README.md +13 -0
  2. package/dist/app.d.ts +8592 -0
  3. package/dist/bullmq/index.d.ts +1 -0
  4. package/dist/bullmq/jobs.d.ts +34 -0
  5. package/dist/bullmq/queue.d.ts +6 -0
  6. package/dist/bullmq/queuedash.d.ts +12 -0
  7. package/dist/bullmq/worker.d.ts +1 -0
  8. package/dist/config.d.ts +16 -0
  9. package/dist/db.d.ts +3 -0
  10. package/dist/generated/prisma/zod/index.d.ts +2289 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/middlewares/auth.d.ts +3 -0
  13. package/dist/middlewares/ip.d.ts +2 -0
  14. package/dist/middlewares/license.d.ts +2 -0
  15. package/dist/middlewares/plan.d.ts +2 -0
  16. package/dist/routes/admin/license.d.ts +90 -0
  17. package/dist/routes/admin/node.d.ts +919 -0
  18. package/dist/routes/admin/node_group.d.ts +2115 -0
  19. package/dist/routes/admin/pay.d.ts +261 -0
  20. package/dist/routes/admin/plan.d.ts +198 -0
  21. package/dist/routes/admin/plan_coupon.d.ts +92 -0
  22. package/dist/routes/admin/stats.d.ts +77 -0
  23. package/dist/routes/admin/system_config.d.ts +68 -0
  24. package/dist/routes/admin/ticket.d.ts +113 -0
  25. package/dist/routes/admin/topup.d.ts +88 -0
  26. package/dist/routes/admin/topup_activity.d.ts +84 -0
  27. package/dist/routes/admin/tunnel.d.ts +566 -0
  28. package/dist/routes/admin/user.d.ts +299 -0
  29. package/dist/routes/admin/user_plan.d.ts +109 -0
  30. package/dist/routes/bot.d.ts +13 -0
  31. package/dist/routes/dns_provider.d.ts +240 -0
  32. package/dist/routes/health.d.ts +3 -0
  33. package/dist/routes/in_node_group_dns.d.ts +132 -0
  34. package/dist/routes/license.d.ts +50 -0
  35. package/dist/routes/node.d.ts +148 -0
  36. package/dist/routes/node_group.d.ts +1498 -0
  37. package/dist/routes/pay.d.ts +34 -0
  38. package/dist/routes/plan.d.ts +148 -0
  39. package/dist/routes/plan_coupon.d.ts +22 -0
  40. package/dist/routes/system_config.d.ts +87 -0
  41. package/dist/routes/ticket.d.ts +129 -0
  42. package/dist/routes/topup.d.ts +93 -0
  43. package/dist/routes/tunnel.d.ts +742 -0
  44. package/dist/routes/user.d.ts +293 -0
  45. package/dist/schemas/context.d.ts +9 -0
  46. package/dist/schemas/license.d.ts +7 -0
  47. package/dist/schemas/request.d.ts +1181 -0
  48. package/dist/schemas/response.d.ts +2439 -0
  49. package/dist/schemas/socket.io.d.ts +33 -0
  50. package/dist/schemas/tunnel.d.ts +10 -0
  51. package/dist/services/dns/cloudflare.d.ts +12 -0
  52. package/dist/services/dns/huawei.d.ts +12 -0
  53. package/dist/services/dns/index.d.ts +4 -0
  54. package/dist/services/dns/interface.d.ts +8 -0
  55. package/dist/services/dns_provider.d.ts +46 -0
  56. package/dist/services/email.d.ts +11 -0
  57. package/dist/services/fernet.d.ts +2 -0
  58. package/dist/services/in_node_group_dns.d.ts +65 -0
  59. package/dist/services/license.d.ts +87 -0
  60. package/dist/services/logger.d.ts +7 -0
  61. package/dist/services/node.d.ts +39 -0
  62. package/dist/services/node_group.d.ts +75 -0
  63. package/dist/services/notify.d.ts +44 -0
  64. package/dist/services/order.d.ts +3 -0
  65. package/dist/services/pay.d.ts +6 -0
  66. package/dist/services/plan.d.ts +119 -0
  67. package/dist/services/plan_coupon.d.ts +16 -0
  68. package/dist/services/redis.d.ts +59 -0
  69. package/dist/services/stackauth.d.ts +25 -0
  70. package/dist/services/sysinfo.d.ts +7 -0
  71. package/dist/services/system_config.d.ts +7 -0
  72. package/dist/services/telegram.d.ts +8 -0
  73. package/dist/services/ticket.d.ts +134 -0
  74. package/dist/services/topup.d.ts +37 -0
  75. package/dist/services/topup_activity.d.ts +21 -0
  76. package/dist/services/tunnel.d.ts +1235 -0
  77. package/dist/services/user.d.ts +25 -0
  78. package/dist/socket-io/events.d.ts +13 -0
  79. package/dist/socket-io/handlers/disconnect.d.ts +2 -0
  80. package/dist/socket-io/handlers/listen.d.ts +3 -0
  81. package/dist/socket-io/handlers/register.d.ts +2 -0
  82. package/dist/socket-io/handlers/sysinfo.d.ts +2 -0
  83. package/dist/socket-io/index.d.ts +3 -0
  84. package/dist/socket-io/utils.d.ts +8 -0
  85. package/dist/utils/date.d.ts +1 -0
  86. package/dist/utils/ip.d.ts +2 -0
  87. package/dist/utils/uuid.d.ts +1 -0
  88. package/package.json +82 -0
@@ -0,0 +1,2439 @@
1
+ import { NotifyType } from "../services/notify";
2
+ import { z } from "zod";
3
+ export declare const TunnelResponseSchemaItem: z.ZodObject<{
4
+ name: z.ZodString;
5
+ id: z.ZodNumber;
6
+ load_balance_type: z.ZodEnum<["round", "rand", "fifo", "hash", "ll", "lc"]>;
7
+ order_by: z.ZodNumber;
8
+ user_id: z.ZodNumber;
9
+ status: z.ZodEnum<["active", "inactive"]>;
10
+ tunnel_type: z.ZodEnum<["tcp", "mtcp", "udp", "relayx", "mtls", "mwss", "wss", "tls", "quic"]>;
11
+ category: z.ZodEnum<["port_forward", "remote_port_forward"]>;
12
+ listen_ip: z.ZodNullable<z.ZodString>;
13
+ listen_port: z.ZodNullable<z.ZodNumber>;
14
+ is_port_used: z.ZodBoolean;
15
+ ip_type: z.ZodEnum<["auto", "ipv4", "ipv6"]>;
16
+ ip_limit: z.ZodNullable<z.ZodNumber>;
17
+ bandwidth_limit: z.ZodNullable<z.ZodNumber>;
18
+ proxy_protocol: z.ZodBoolean;
19
+ in_node_group_id: z.ZodNumber;
20
+ out_node_group_id: z.ZodNullable<z.ZodNumber>;
21
+ } & {
22
+ white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
23
+ user: z.ZodObject<Pick<{
24
+ status: z.ZodEnum<["active", "inactive"]>;
25
+ id: z.ZodNumber;
26
+ super_admin: z.ZodBoolean;
27
+ email: z.ZodString;
28
+ balance: z.ZodNumber;
29
+ tg_id: z.ZodNullable<z.ZodString>;
30
+ uid: z.ZodNullable<z.ZodString>;
31
+ note: z.ZodNullable<z.ZodString>;
32
+ parent_id: z.ZodNullable<z.ZodNumber>;
33
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
34
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
35
+ auto_renew: z.ZodBoolean;
36
+ api_key: z.ZodString;
37
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
38
+ created_at: z.ZodDate;
39
+ updated_at: z.ZodDate;
40
+ }, "email">, "strip", z.ZodTypeAny, {
41
+ email: string;
42
+ }, {
43
+ email: string;
44
+ }>;
45
+ created_at: z.ZodString;
46
+ updated_at: z.ZodString;
47
+ in_node_group: z.ZodObject<{
48
+ name: z.ZodString;
49
+ traffic_rate: z.ZodNumber;
50
+ connect_ip: z.ZodNullable<z.ZodString>;
51
+ admission: z.ZodBoolean;
52
+ nodes: z.ZodArray<z.ZodObject<{
53
+ connect_ip: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ connect_ip: string;
56
+ }, {
57
+ connect_ip: string;
58
+ }>, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ name: string;
61
+ connect_ip: string | null;
62
+ admission: boolean;
63
+ traffic_rate: number;
64
+ nodes: {
65
+ connect_ip: string;
66
+ }[];
67
+ }, {
68
+ name: string;
69
+ connect_ip: string | null;
70
+ admission: boolean;
71
+ traffic_rate: number;
72
+ nodes: {
73
+ connect_ip: string;
74
+ }[];
75
+ }>;
76
+ out_node_group: z.ZodObject<{
77
+ name: z.ZodString;
78
+ traffic_rate: z.ZodNumber;
79
+ }, "strip", z.ZodTypeAny, {
80
+ name: string;
81
+ traffic_rate: number;
82
+ }, {
83
+ name: string;
84
+ traffic_rate: number;
85
+ }>;
86
+ out_ports: z.ZodRecord<z.ZodString, z.ZodNumber>;
87
+ forward_addresses: z.ZodArray<z.ZodObject<{
88
+ address: z.ZodString;
89
+ weight: z.ZodNumber;
90
+ host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ weight: number;
93
+ address: string;
94
+ host?: string | null | undefined;
95
+ }, {
96
+ weight: number;
97
+ address: string;
98
+ host?: string | null | undefined;
99
+ }>, "many">;
100
+ traffic: z.ZodNumber;
101
+ traffic_cost: z.ZodNumber;
102
+ tunnel_chains: z.ZodArray<z.ZodObject<{
103
+ node_group_id: z.ZodNumber;
104
+ node_type: z.ZodNativeEnum<{
105
+ in: "in";
106
+ out: "out";
107
+ }>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ node_type: "in" | "out";
110
+ node_group_id: number;
111
+ }, {
112
+ node_type: "in" | "out";
113
+ node_group_id: number;
114
+ }>, "many">;
115
+ listen_protocol: z.ZodNullable<z.ZodObject<{
116
+ type: z.ZodString;
117
+ username: z.ZodString;
118
+ password: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ type: string;
121
+ username: string;
122
+ password: string;
123
+ }, {
124
+ type: string;
125
+ username: string;
126
+ password: string;
127
+ }>>;
128
+ forward_addresses_protocol: z.ZodNullable<z.ZodObject<{
129
+ type: z.ZodString;
130
+ username: z.ZodString;
131
+ password: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: string;
134
+ username: string;
135
+ password: string;
136
+ }, {
137
+ type: string;
138
+ username: string;
139
+ password: string;
140
+ }>>;
141
+ stats: z.ZodNullable<z.ZodObject<{
142
+ totalConns: z.ZodNumber;
143
+ currentConns: z.ZodNumber;
144
+ inputBytes: z.ZodNumber;
145
+ outputBytes: z.ZodNumber;
146
+ totalErrs: z.ZodNumber;
147
+ }, "strip", z.ZodTypeAny, {
148
+ totalConns: number;
149
+ currentConns: number;
150
+ inputBytes: number;
151
+ outputBytes: number;
152
+ totalErrs: number;
153
+ }, {
154
+ totalConns: number;
155
+ currentConns: number;
156
+ inputBytes: number;
157
+ outputBytes: number;
158
+ totalErrs: number;
159
+ }>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ name: string;
162
+ id: number;
163
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
164
+ order_by: number;
165
+ created_at: string;
166
+ updated_at: string;
167
+ user_id: number;
168
+ user: {
169
+ email: string;
170
+ };
171
+ status: "active" | "inactive";
172
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
173
+ category: "port_forward" | "remote_port_forward";
174
+ listen_ip: string | null;
175
+ listen_port: number | null;
176
+ listen_protocol: {
177
+ type: string;
178
+ username: string;
179
+ password: string;
180
+ } | null;
181
+ is_port_used: boolean;
182
+ white_list: string[] | null;
183
+ forward_addresses: {
184
+ weight: number;
185
+ address: string;
186
+ host?: string | null | undefined;
187
+ }[];
188
+ forward_addresses_protocol: {
189
+ type: string;
190
+ username: string;
191
+ password: string;
192
+ } | null;
193
+ ip_type: "auto" | "ipv4" | "ipv6";
194
+ ip_limit: number | null;
195
+ bandwidth_limit: number | null;
196
+ traffic: number;
197
+ traffic_cost: number;
198
+ stats: {
199
+ totalConns: number;
200
+ currentConns: number;
201
+ inputBytes: number;
202
+ outputBytes: number;
203
+ totalErrs: number;
204
+ } | null;
205
+ proxy_protocol: boolean;
206
+ in_node_group_id: number;
207
+ out_node_group_id: number | null;
208
+ in_node_group: {
209
+ name: string;
210
+ connect_ip: string | null;
211
+ admission: boolean;
212
+ traffic_rate: number;
213
+ nodes: {
214
+ connect_ip: string;
215
+ }[];
216
+ };
217
+ out_node_group: {
218
+ name: string;
219
+ traffic_rate: number;
220
+ };
221
+ tunnel_chains: {
222
+ node_type: "in" | "out";
223
+ node_group_id: number;
224
+ }[];
225
+ out_ports: Record<string, number>;
226
+ }, {
227
+ name: string;
228
+ id: number;
229
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
230
+ order_by: number;
231
+ created_at: string;
232
+ updated_at: string;
233
+ user_id: number;
234
+ user: {
235
+ email: string;
236
+ };
237
+ status: "active" | "inactive";
238
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
239
+ category: "port_forward" | "remote_port_forward";
240
+ listen_ip: string | null;
241
+ listen_port: number | null;
242
+ listen_protocol: {
243
+ type: string;
244
+ username: string;
245
+ password: string;
246
+ } | null;
247
+ is_port_used: boolean;
248
+ white_list: string[] | null;
249
+ forward_addresses: {
250
+ weight: number;
251
+ address: string;
252
+ host?: string | null | undefined;
253
+ }[];
254
+ forward_addresses_protocol: {
255
+ type: string;
256
+ username: string;
257
+ password: string;
258
+ } | null;
259
+ ip_type: "auto" | "ipv4" | "ipv6";
260
+ ip_limit: number | null;
261
+ bandwidth_limit: number | null;
262
+ traffic: number;
263
+ traffic_cost: number;
264
+ stats: {
265
+ totalConns: number;
266
+ currentConns: number;
267
+ inputBytes: number;
268
+ outputBytes: number;
269
+ totalErrs: number;
270
+ } | null;
271
+ proxy_protocol: boolean;
272
+ in_node_group_id: number;
273
+ out_node_group_id: number | null;
274
+ in_node_group: {
275
+ name: string;
276
+ connect_ip: string | null;
277
+ admission: boolean;
278
+ traffic_rate: number;
279
+ nodes: {
280
+ connect_ip: string;
281
+ }[];
282
+ };
283
+ out_node_group: {
284
+ name: string;
285
+ traffic_rate: number;
286
+ };
287
+ tunnel_chains: {
288
+ node_type: "in" | "out";
289
+ node_group_id: number;
290
+ }[];
291
+ out_ports: Record<string, number>;
292
+ }>;
293
+ export declare const TunnelResponseSchema: z.ZodObject<{
294
+ data: z.ZodArray<z.ZodObject<{
295
+ name: z.ZodString;
296
+ id: z.ZodNumber;
297
+ load_balance_type: z.ZodEnum<["round", "rand", "fifo", "hash", "ll", "lc"]>;
298
+ order_by: z.ZodNumber;
299
+ user_id: z.ZodNumber;
300
+ status: z.ZodEnum<["active", "inactive"]>;
301
+ tunnel_type: z.ZodEnum<["tcp", "mtcp", "udp", "relayx", "mtls", "mwss", "wss", "tls", "quic"]>;
302
+ category: z.ZodEnum<["port_forward", "remote_port_forward"]>;
303
+ listen_ip: z.ZodNullable<z.ZodString>;
304
+ listen_port: z.ZodNullable<z.ZodNumber>;
305
+ is_port_used: z.ZodBoolean;
306
+ ip_type: z.ZodEnum<["auto", "ipv4", "ipv6"]>;
307
+ ip_limit: z.ZodNullable<z.ZodNumber>;
308
+ bandwidth_limit: z.ZodNullable<z.ZodNumber>;
309
+ proxy_protocol: z.ZodBoolean;
310
+ in_node_group_id: z.ZodNumber;
311
+ out_node_group_id: z.ZodNullable<z.ZodNumber>;
312
+ } & {
313
+ white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
314
+ user: z.ZodObject<Pick<{
315
+ status: z.ZodEnum<["active", "inactive"]>;
316
+ id: z.ZodNumber;
317
+ super_admin: z.ZodBoolean;
318
+ email: z.ZodString;
319
+ balance: z.ZodNumber;
320
+ tg_id: z.ZodNullable<z.ZodString>;
321
+ uid: z.ZodNullable<z.ZodString>;
322
+ note: z.ZodNullable<z.ZodString>;
323
+ parent_id: z.ZodNullable<z.ZodNumber>;
324
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
325
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
326
+ auto_renew: z.ZodBoolean;
327
+ api_key: z.ZodString;
328
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
329
+ created_at: z.ZodDate;
330
+ updated_at: z.ZodDate;
331
+ }, "email">, "strip", z.ZodTypeAny, {
332
+ email: string;
333
+ }, {
334
+ email: string;
335
+ }>;
336
+ created_at: z.ZodString;
337
+ updated_at: z.ZodString;
338
+ in_node_group: z.ZodObject<{
339
+ name: z.ZodString;
340
+ traffic_rate: z.ZodNumber;
341
+ connect_ip: z.ZodNullable<z.ZodString>;
342
+ admission: z.ZodBoolean;
343
+ nodes: z.ZodArray<z.ZodObject<{
344
+ connect_ip: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ connect_ip: string;
347
+ }, {
348
+ connect_ip: string;
349
+ }>, "many">;
350
+ }, "strip", z.ZodTypeAny, {
351
+ name: string;
352
+ connect_ip: string | null;
353
+ admission: boolean;
354
+ traffic_rate: number;
355
+ nodes: {
356
+ connect_ip: string;
357
+ }[];
358
+ }, {
359
+ name: string;
360
+ connect_ip: string | null;
361
+ admission: boolean;
362
+ traffic_rate: number;
363
+ nodes: {
364
+ connect_ip: string;
365
+ }[];
366
+ }>;
367
+ out_node_group: z.ZodObject<{
368
+ name: z.ZodString;
369
+ traffic_rate: z.ZodNumber;
370
+ }, "strip", z.ZodTypeAny, {
371
+ name: string;
372
+ traffic_rate: number;
373
+ }, {
374
+ name: string;
375
+ traffic_rate: number;
376
+ }>;
377
+ out_ports: z.ZodRecord<z.ZodString, z.ZodNumber>;
378
+ forward_addresses: z.ZodArray<z.ZodObject<{
379
+ address: z.ZodString;
380
+ weight: z.ZodNumber;
381
+ host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ weight: number;
384
+ address: string;
385
+ host?: string | null | undefined;
386
+ }, {
387
+ weight: number;
388
+ address: string;
389
+ host?: string | null | undefined;
390
+ }>, "many">;
391
+ traffic: z.ZodNumber;
392
+ traffic_cost: z.ZodNumber;
393
+ tunnel_chains: z.ZodArray<z.ZodObject<{
394
+ node_group_id: z.ZodNumber;
395
+ node_type: z.ZodNativeEnum<{
396
+ in: "in";
397
+ out: "out";
398
+ }>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ node_type: "in" | "out";
401
+ node_group_id: number;
402
+ }, {
403
+ node_type: "in" | "out";
404
+ node_group_id: number;
405
+ }>, "many">;
406
+ listen_protocol: z.ZodNullable<z.ZodObject<{
407
+ type: z.ZodString;
408
+ username: z.ZodString;
409
+ password: z.ZodString;
410
+ }, "strip", z.ZodTypeAny, {
411
+ type: string;
412
+ username: string;
413
+ password: string;
414
+ }, {
415
+ type: string;
416
+ username: string;
417
+ password: string;
418
+ }>>;
419
+ forward_addresses_protocol: z.ZodNullable<z.ZodObject<{
420
+ type: z.ZodString;
421
+ username: z.ZodString;
422
+ password: z.ZodString;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: string;
425
+ username: string;
426
+ password: string;
427
+ }, {
428
+ type: string;
429
+ username: string;
430
+ password: string;
431
+ }>>;
432
+ stats: z.ZodNullable<z.ZodObject<{
433
+ totalConns: z.ZodNumber;
434
+ currentConns: z.ZodNumber;
435
+ inputBytes: z.ZodNumber;
436
+ outputBytes: z.ZodNumber;
437
+ totalErrs: z.ZodNumber;
438
+ }, "strip", z.ZodTypeAny, {
439
+ totalConns: number;
440
+ currentConns: number;
441
+ inputBytes: number;
442
+ outputBytes: number;
443
+ totalErrs: number;
444
+ }, {
445
+ totalConns: number;
446
+ currentConns: number;
447
+ inputBytes: number;
448
+ outputBytes: number;
449
+ totalErrs: number;
450
+ }>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ name: string;
453
+ id: number;
454
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
455
+ order_by: number;
456
+ created_at: string;
457
+ updated_at: string;
458
+ user_id: number;
459
+ user: {
460
+ email: string;
461
+ };
462
+ status: "active" | "inactive";
463
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
464
+ category: "port_forward" | "remote_port_forward";
465
+ listen_ip: string | null;
466
+ listen_port: number | null;
467
+ listen_protocol: {
468
+ type: string;
469
+ username: string;
470
+ password: string;
471
+ } | null;
472
+ is_port_used: boolean;
473
+ white_list: string[] | null;
474
+ forward_addresses: {
475
+ weight: number;
476
+ address: string;
477
+ host?: string | null | undefined;
478
+ }[];
479
+ forward_addresses_protocol: {
480
+ type: string;
481
+ username: string;
482
+ password: string;
483
+ } | null;
484
+ ip_type: "auto" | "ipv4" | "ipv6";
485
+ ip_limit: number | null;
486
+ bandwidth_limit: number | null;
487
+ traffic: number;
488
+ traffic_cost: number;
489
+ stats: {
490
+ totalConns: number;
491
+ currentConns: number;
492
+ inputBytes: number;
493
+ outputBytes: number;
494
+ totalErrs: number;
495
+ } | null;
496
+ proxy_protocol: boolean;
497
+ in_node_group_id: number;
498
+ out_node_group_id: number | null;
499
+ in_node_group: {
500
+ name: string;
501
+ connect_ip: string | null;
502
+ admission: boolean;
503
+ traffic_rate: number;
504
+ nodes: {
505
+ connect_ip: string;
506
+ }[];
507
+ };
508
+ out_node_group: {
509
+ name: string;
510
+ traffic_rate: number;
511
+ };
512
+ tunnel_chains: {
513
+ node_type: "in" | "out";
514
+ node_group_id: number;
515
+ }[];
516
+ out_ports: Record<string, number>;
517
+ }, {
518
+ name: string;
519
+ id: number;
520
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
521
+ order_by: number;
522
+ created_at: string;
523
+ updated_at: string;
524
+ user_id: number;
525
+ user: {
526
+ email: string;
527
+ };
528
+ status: "active" | "inactive";
529
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
530
+ category: "port_forward" | "remote_port_forward";
531
+ listen_ip: string | null;
532
+ listen_port: number | null;
533
+ listen_protocol: {
534
+ type: string;
535
+ username: string;
536
+ password: string;
537
+ } | null;
538
+ is_port_used: boolean;
539
+ white_list: string[] | null;
540
+ forward_addresses: {
541
+ weight: number;
542
+ address: string;
543
+ host?: string | null | undefined;
544
+ }[];
545
+ forward_addresses_protocol: {
546
+ type: string;
547
+ username: string;
548
+ password: string;
549
+ } | null;
550
+ ip_type: "auto" | "ipv4" | "ipv6";
551
+ ip_limit: number | null;
552
+ bandwidth_limit: number | null;
553
+ traffic: number;
554
+ traffic_cost: number;
555
+ stats: {
556
+ totalConns: number;
557
+ currentConns: number;
558
+ inputBytes: number;
559
+ outputBytes: number;
560
+ totalErrs: number;
561
+ } | null;
562
+ proxy_protocol: boolean;
563
+ in_node_group_id: number;
564
+ out_node_group_id: number | null;
565
+ in_node_group: {
566
+ name: string;
567
+ connect_ip: string | null;
568
+ admission: boolean;
569
+ traffic_rate: number;
570
+ nodes: {
571
+ connect_ip: string;
572
+ }[];
573
+ };
574
+ out_node_group: {
575
+ name: string;
576
+ traffic_rate: number;
577
+ };
578
+ tunnel_chains: {
579
+ node_type: "in" | "out";
580
+ node_group_id: number;
581
+ }[];
582
+ out_ports: Record<string, number>;
583
+ }>, "many">;
584
+ total: z.ZodNumber;
585
+ }, "strip", z.ZodTypeAny, {
586
+ data: {
587
+ name: string;
588
+ id: number;
589
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
590
+ order_by: number;
591
+ created_at: string;
592
+ updated_at: string;
593
+ user_id: number;
594
+ user: {
595
+ email: string;
596
+ };
597
+ status: "active" | "inactive";
598
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
599
+ category: "port_forward" | "remote_port_forward";
600
+ listen_ip: string | null;
601
+ listen_port: number | null;
602
+ listen_protocol: {
603
+ type: string;
604
+ username: string;
605
+ password: string;
606
+ } | null;
607
+ is_port_used: boolean;
608
+ white_list: string[] | null;
609
+ forward_addresses: {
610
+ weight: number;
611
+ address: string;
612
+ host?: string | null | undefined;
613
+ }[];
614
+ forward_addresses_protocol: {
615
+ type: string;
616
+ username: string;
617
+ password: string;
618
+ } | null;
619
+ ip_type: "auto" | "ipv4" | "ipv6";
620
+ ip_limit: number | null;
621
+ bandwidth_limit: number | null;
622
+ traffic: number;
623
+ traffic_cost: number;
624
+ stats: {
625
+ totalConns: number;
626
+ currentConns: number;
627
+ inputBytes: number;
628
+ outputBytes: number;
629
+ totalErrs: number;
630
+ } | null;
631
+ proxy_protocol: boolean;
632
+ in_node_group_id: number;
633
+ out_node_group_id: number | null;
634
+ in_node_group: {
635
+ name: string;
636
+ connect_ip: string | null;
637
+ admission: boolean;
638
+ traffic_rate: number;
639
+ nodes: {
640
+ connect_ip: string;
641
+ }[];
642
+ };
643
+ out_node_group: {
644
+ name: string;
645
+ traffic_rate: number;
646
+ };
647
+ tunnel_chains: {
648
+ node_type: "in" | "out";
649
+ node_group_id: number;
650
+ }[];
651
+ out_ports: Record<string, number>;
652
+ }[];
653
+ total: number;
654
+ }, {
655
+ data: {
656
+ name: string;
657
+ id: number;
658
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
659
+ order_by: number;
660
+ created_at: string;
661
+ updated_at: string;
662
+ user_id: number;
663
+ user: {
664
+ email: string;
665
+ };
666
+ status: "active" | "inactive";
667
+ tunnel_type: "tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic";
668
+ category: "port_forward" | "remote_port_forward";
669
+ listen_ip: string | null;
670
+ listen_port: number | null;
671
+ listen_protocol: {
672
+ type: string;
673
+ username: string;
674
+ password: string;
675
+ } | null;
676
+ is_port_used: boolean;
677
+ white_list: string[] | null;
678
+ forward_addresses: {
679
+ weight: number;
680
+ address: string;
681
+ host?: string | null | undefined;
682
+ }[];
683
+ forward_addresses_protocol: {
684
+ type: string;
685
+ username: string;
686
+ password: string;
687
+ } | null;
688
+ ip_type: "auto" | "ipv4" | "ipv6";
689
+ ip_limit: number | null;
690
+ bandwidth_limit: number | null;
691
+ traffic: number;
692
+ traffic_cost: number;
693
+ stats: {
694
+ totalConns: number;
695
+ currentConns: number;
696
+ inputBytes: number;
697
+ outputBytes: number;
698
+ totalErrs: number;
699
+ } | null;
700
+ proxy_protocol: boolean;
701
+ in_node_group_id: number;
702
+ out_node_group_id: number | null;
703
+ in_node_group: {
704
+ name: string;
705
+ connect_ip: string | null;
706
+ admission: boolean;
707
+ traffic_rate: number;
708
+ nodes: {
709
+ connect_ip: string;
710
+ }[];
711
+ };
712
+ out_node_group: {
713
+ name: string;
714
+ traffic_rate: number;
715
+ };
716
+ tunnel_chains: {
717
+ node_type: "in" | "out";
718
+ node_group_id: number;
719
+ }[];
720
+ out_ports: Record<string, number>;
721
+ }[];
722
+ total: number;
723
+ }>;
724
+ export declare const TunnelTrafficResponseSchema: z.ZodArray<z.ZodObject<{
725
+ traffic: z.ZodNumber;
726
+ traffic_cost: z.ZodNumber;
727
+ date: z.ZodString;
728
+ }, "strip", z.ZodTypeAny, {
729
+ traffic: number;
730
+ traffic_cost: number;
731
+ date: string;
732
+ }, {
733
+ traffic: number;
734
+ traffic_cost: number;
735
+ date: string;
736
+ }>, "many">;
737
+ export declare const TunnelSummaryResponseSchema: z.ZodArray<z.ZodObject<{
738
+ status: z.ZodNativeEnum<{
739
+ active: "active";
740
+ inactive: "inactive";
741
+ }>;
742
+ count: z.ZodNumber;
743
+ }, "strip", z.ZodTypeAny, {
744
+ status: "active" | "inactive";
745
+ count: number;
746
+ }, {
747
+ status: "active" | "inactive";
748
+ count: number;
749
+ }>, "many">;
750
+ export declare const PaymentResponseSchemaItem: z.ZodObject<Omit<{
751
+ method: z.ZodEnum<["epay", "bepusdt", "heleket"]>;
752
+ status: z.ZodEnum<["active", "inactive"]>;
753
+ id: z.ZodNumber;
754
+ fixed_fee: z.ZodNullable<z.ZodNumber>;
755
+ percent_fee: z.ZodNullable<z.ZodNumber>;
756
+ name: z.ZodString;
757
+ url: z.ZodString;
758
+ config: z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>;
759
+ type: z.ZodNullable<z.ZodString>;
760
+ order_by: z.ZodNumber;
761
+ created_at: z.ZodDate;
762
+ updated_at: z.ZodDate;
763
+ }, "config"> & {
764
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ name: string;
767
+ id: number;
768
+ order_by: number;
769
+ created_at: Date;
770
+ updated_at: Date;
771
+ status: "active" | "inactive";
772
+ type: string | null;
773
+ fixed_fee: number | null;
774
+ percent_fee: number | null;
775
+ url: string;
776
+ config: Record<string, any>;
777
+ method: "epay" | "bepusdt" | "heleket";
778
+ }, {
779
+ name: string;
780
+ id: number;
781
+ order_by: number;
782
+ created_at: Date;
783
+ updated_at: Date;
784
+ status: "active" | "inactive";
785
+ type: string | null;
786
+ fixed_fee: number | null;
787
+ percent_fee: number | null;
788
+ url: string;
789
+ config: Record<string, any>;
790
+ method: "epay" | "bepusdt" | "heleket";
791
+ }>;
792
+ export declare const PaymentResponseSchema: z.ZodObject<{
793
+ data: z.ZodArray<z.ZodObject<Omit<{
794
+ method: z.ZodEnum<["epay", "bepusdt", "heleket"]>;
795
+ status: z.ZodEnum<["active", "inactive"]>;
796
+ id: z.ZodNumber;
797
+ fixed_fee: z.ZodNullable<z.ZodNumber>;
798
+ percent_fee: z.ZodNullable<z.ZodNumber>;
799
+ name: z.ZodString;
800
+ url: z.ZodString;
801
+ config: z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>;
802
+ type: z.ZodNullable<z.ZodString>;
803
+ order_by: z.ZodNumber;
804
+ created_at: z.ZodDate;
805
+ updated_at: z.ZodDate;
806
+ }, "config"> & {
807
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ name: string;
810
+ id: number;
811
+ order_by: number;
812
+ created_at: Date;
813
+ updated_at: Date;
814
+ status: "active" | "inactive";
815
+ type: string | null;
816
+ fixed_fee: number | null;
817
+ percent_fee: number | null;
818
+ url: string;
819
+ config: Record<string, any>;
820
+ method: "epay" | "bepusdt" | "heleket";
821
+ }, {
822
+ name: string;
823
+ id: number;
824
+ order_by: number;
825
+ created_at: Date;
826
+ updated_at: Date;
827
+ status: "active" | "inactive";
828
+ type: string | null;
829
+ fixed_fee: number | null;
830
+ percent_fee: number | null;
831
+ url: string;
832
+ config: Record<string, any>;
833
+ method: "epay" | "bepusdt" | "heleket";
834
+ }>, "many">;
835
+ total: z.ZodNumber;
836
+ }, "strip", z.ZodTypeAny, {
837
+ data: {
838
+ name: string;
839
+ id: number;
840
+ order_by: number;
841
+ created_at: Date;
842
+ updated_at: Date;
843
+ status: "active" | "inactive";
844
+ type: string | null;
845
+ fixed_fee: number | null;
846
+ percent_fee: number | null;
847
+ url: string;
848
+ config: Record<string, any>;
849
+ method: "epay" | "bepusdt" | "heleket";
850
+ }[];
851
+ total: number;
852
+ }, {
853
+ data: {
854
+ name: string;
855
+ id: number;
856
+ order_by: number;
857
+ created_at: Date;
858
+ updated_at: Date;
859
+ status: "active" | "inactive";
860
+ type: string | null;
861
+ fixed_fee: number | null;
862
+ percent_fee: number | null;
863
+ url: string;
864
+ config: Record<string, any>;
865
+ method: "epay" | "bepusdt" | "heleket";
866
+ }[];
867
+ total: number;
868
+ }>;
869
+ export declare const NodeGroupResponseSchemaItem: z.ZodObject<Omit<{
870
+ node_type: z.ZodEnum<["in", "out"]>;
871
+ load_balance_type: z.ZodEnum<["round", "rand", "fifo", "hash", "ll", "lc"]>;
872
+ bypass_type: z.ZodEnum<["whitelist", "blacklist"]>;
873
+ id: z.ZodNumber;
874
+ token: z.ZodString;
875
+ name: z.ZodString;
876
+ port_range: z.ZodNullable<z.ZodString>;
877
+ connect_ip: z.ZodNullable<z.ZodString>;
878
+ allow_listen_protocol: z.ZodBoolean;
879
+ allow_tunnel_types: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
880
+ bypass_list: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
881
+ admission: z.ZodBoolean;
882
+ block_protocols: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
883
+ traffic_rate: z.ZodNumber;
884
+ need_out_node_group: z.ZodBoolean;
885
+ allow_out_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
886
+ allow_in_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
887
+ order_by: z.ZodNumber;
888
+ created_at: z.ZodDate;
889
+ updated_at: z.ZodDate;
890
+ user_id: z.ZodNumber;
891
+ }, "allow_tunnel_types" | "bypass_list" | "block_protocols" | "allow_out_node_groups" | "allow_in_node_groups"> & {
892
+ allow_tunnel_types: z.ZodArray<z.ZodNativeEnum<{
893
+ tcp: "tcp";
894
+ mtcp: "mtcp";
895
+ udp: "udp";
896
+ relayx: "relayx";
897
+ mtls: "mtls";
898
+ mwss: "mwss";
899
+ wss: "wss";
900
+ tls: "tls";
901
+ quic: "quic";
902
+ }>, "many">;
903
+ allow_out_node_groups: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
904
+ allow_in_node_groups: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
905
+ block_protocols: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
906
+ bypass_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ name: string;
909
+ id: number;
910
+ token: string;
911
+ port_range: string | null;
912
+ connect_ip: string | null;
913
+ node_type: "in" | "out";
914
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
915
+ allow_listen_protocol: boolean;
916
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
917
+ bypass_type: "whitelist" | "blacklist";
918
+ bypass_list: string[] | null;
919
+ admission: boolean;
920
+ block_protocols: string[] | null;
921
+ traffic_rate: number;
922
+ need_out_node_group: boolean;
923
+ allow_out_node_groups: number[] | null;
924
+ allow_in_node_groups: number[] | null;
925
+ order_by: number;
926
+ created_at: Date;
927
+ updated_at: Date;
928
+ user_id: number;
929
+ }, {
930
+ name: string;
931
+ id: number;
932
+ token: string;
933
+ port_range: string | null;
934
+ connect_ip: string | null;
935
+ node_type: "in" | "out";
936
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
937
+ allow_listen_protocol: boolean;
938
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
939
+ bypass_type: "whitelist" | "blacklist";
940
+ bypass_list: string[] | null;
941
+ admission: boolean;
942
+ block_protocols: string[] | null;
943
+ traffic_rate: number;
944
+ need_out_node_group: boolean;
945
+ allow_out_node_groups: number[] | null;
946
+ allow_in_node_groups: number[] | null;
947
+ order_by: number;
948
+ created_at: Date;
949
+ updated_at: Date;
950
+ user_id: number;
951
+ }>;
952
+ export declare const NodeGroupResponseSchema: z.ZodObject<{
953
+ data: z.ZodArray<z.ZodObject<Omit<{
954
+ node_type: z.ZodEnum<["in", "out"]>;
955
+ load_balance_type: z.ZodEnum<["round", "rand", "fifo", "hash", "ll", "lc"]>;
956
+ bypass_type: z.ZodEnum<["whitelist", "blacklist"]>;
957
+ id: z.ZodNumber;
958
+ token: z.ZodString;
959
+ name: z.ZodString;
960
+ port_range: z.ZodNullable<z.ZodString>;
961
+ connect_ip: z.ZodNullable<z.ZodString>;
962
+ allow_listen_protocol: z.ZodBoolean;
963
+ allow_tunnel_types: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
964
+ bypass_list: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
965
+ admission: z.ZodBoolean;
966
+ block_protocols: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
967
+ traffic_rate: z.ZodNumber;
968
+ need_out_node_group: z.ZodBoolean;
969
+ allow_out_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
970
+ allow_in_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
971
+ order_by: z.ZodNumber;
972
+ created_at: z.ZodDate;
973
+ updated_at: z.ZodDate;
974
+ user_id: z.ZodNumber;
975
+ }, "allow_tunnel_types" | "bypass_list" | "block_protocols" | "allow_out_node_groups" | "allow_in_node_groups"> & {
976
+ allow_tunnel_types: z.ZodArray<z.ZodNativeEnum<{
977
+ tcp: "tcp";
978
+ mtcp: "mtcp";
979
+ udp: "udp";
980
+ relayx: "relayx";
981
+ mtls: "mtls";
982
+ mwss: "mwss";
983
+ wss: "wss";
984
+ tls: "tls";
985
+ quic: "quic";
986
+ }>, "many">;
987
+ allow_out_node_groups: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
988
+ allow_in_node_groups: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
989
+ block_protocols: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
990
+ bypass_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ name: string;
993
+ id: number;
994
+ token: string;
995
+ port_range: string | null;
996
+ connect_ip: string | null;
997
+ node_type: "in" | "out";
998
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
999
+ allow_listen_protocol: boolean;
1000
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1001
+ bypass_type: "whitelist" | "blacklist";
1002
+ bypass_list: string[] | null;
1003
+ admission: boolean;
1004
+ block_protocols: string[] | null;
1005
+ traffic_rate: number;
1006
+ need_out_node_group: boolean;
1007
+ allow_out_node_groups: number[] | null;
1008
+ allow_in_node_groups: number[] | null;
1009
+ order_by: number;
1010
+ created_at: Date;
1011
+ updated_at: Date;
1012
+ user_id: number;
1013
+ }, {
1014
+ name: string;
1015
+ id: number;
1016
+ token: string;
1017
+ port_range: string | null;
1018
+ connect_ip: string | null;
1019
+ node_type: "in" | "out";
1020
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
1021
+ allow_listen_protocol: boolean;
1022
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1023
+ bypass_type: "whitelist" | "blacklist";
1024
+ bypass_list: string[] | null;
1025
+ admission: boolean;
1026
+ block_protocols: string[] | null;
1027
+ traffic_rate: number;
1028
+ need_out_node_group: boolean;
1029
+ allow_out_node_groups: number[] | null;
1030
+ allow_in_node_groups: number[] | null;
1031
+ order_by: number;
1032
+ created_at: Date;
1033
+ updated_at: Date;
1034
+ user_id: number;
1035
+ }>, "many">;
1036
+ total: z.ZodNumber;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ data: {
1039
+ name: string;
1040
+ id: number;
1041
+ token: string;
1042
+ port_range: string | null;
1043
+ connect_ip: string | null;
1044
+ node_type: "in" | "out";
1045
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
1046
+ allow_listen_protocol: boolean;
1047
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1048
+ bypass_type: "whitelist" | "blacklist";
1049
+ bypass_list: string[] | null;
1050
+ admission: boolean;
1051
+ block_protocols: string[] | null;
1052
+ traffic_rate: number;
1053
+ need_out_node_group: boolean;
1054
+ allow_out_node_groups: number[] | null;
1055
+ allow_in_node_groups: number[] | null;
1056
+ order_by: number;
1057
+ created_at: Date;
1058
+ updated_at: Date;
1059
+ user_id: number;
1060
+ }[];
1061
+ total: number;
1062
+ }, {
1063
+ data: {
1064
+ name: string;
1065
+ id: number;
1066
+ token: string;
1067
+ port_range: string | null;
1068
+ connect_ip: string | null;
1069
+ node_type: "in" | "out";
1070
+ load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
1071
+ allow_listen_protocol: boolean;
1072
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1073
+ bypass_type: "whitelist" | "blacklist";
1074
+ bypass_list: string[] | null;
1075
+ admission: boolean;
1076
+ block_protocols: string[] | null;
1077
+ traffic_rate: number;
1078
+ need_out_node_group: boolean;
1079
+ allow_out_node_groups: number[] | null;
1080
+ allow_in_node_groups: number[] | null;
1081
+ order_by: number;
1082
+ created_at: Date;
1083
+ updated_at: Date;
1084
+ user_id: number;
1085
+ }[];
1086
+ total: number;
1087
+ }>;
1088
+ export declare const SystemConfigResponseSchema: z.ZodRecord<z.ZodNativeEnum<{
1089
+ MIN_TOPUP_AMOUNT: "MIN_TOPUP_AMOUNT";
1090
+ NOTICE: "NOTICE";
1091
+ NOTICE_POPUP: "NOTICE_POPUP";
1092
+ NOTICE_POPUP_INTERVAL_HOURS: "NOTICE_POPUP_INTERVAL_HOURS";
1093
+ SITE_NAME: "SITE_NAME";
1094
+ SITE_DESCRIPTION: "SITE_DESCRIPTION";
1095
+ ALLOW_REGISTER: "ALLOW_REGISTER";
1096
+ LOGO_URL: "LOGO_URL";
1097
+ HIDE_NODE_STATUS: "HIDE_NODE_STATUS";
1098
+ AUTO_UPDATE_AGENT: "AUTO_UPDATE_AGENT";
1099
+ CHATWOOT_BASE_URL: "CHATWOOT_BASE_URL";
1100
+ CHATWOOT_TOKEN: "CHATWOOT_TOKEN";
1101
+ TUNNEL_TRAFFIC_RETENTION_DAYS: "TUNNEL_TRAFFIC_RETENTION_DAYS";
1102
+ HIDE_FOOTER: "HIDE_FOOTER";
1103
+ HIDE_DOCS: "HIDE_DOCS";
1104
+ LANDING_PAGE_URL: "LANDING_PAGE_URL";
1105
+ REFERRAL_COMMISSION_RATE: "REFERRAL_COMMISSION_RATE";
1106
+ REFERRAL_FIRST_ONLY: "REFERRAL_FIRST_ONLY";
1107
+ REFERRAL_MODE: "REFERRAL_MODE";
1108
+ OBSERVER_PERIOD: "OBSERVER_PERIOD";
1109
+ EMAIL_PROVIDER: "EMAIL_PROVIDER";
1110
+ SMTP_HOST: "SMTP_HOST";
1111
+ SMTP_PORT: "SMTP_PORT";
1112
+ SMTP_SECURE: "SMTP_SECURE";
1113
+ SMTP_USER: "SMTP_USER";
1114
+ SMTP_PASS: "SMTP_PASS";
1115
+ SMTP_FROM: "SMTP_FROM";
1116
+ RESEND_API_KEY: "RESEND_API_KEY";
1117
+ RESEND_FROM: "RESEND_FROM";
1118
+ }>, z.ZodAny>;
1119
+ export declare const AdminStatsResponseSchema: z.ZodObject<{
1120
+ user: z.ZodArray<z.ZodObject<{
1121
+ status: z.ZodNativeEnum<{
1122
+ active: "active";
1123
+ inactive: "inactive";
1124
+ }>;
1125
+ count: z.ZodNumber;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ status: "active" | "inactive";
1128
+ count: number;
1129
+ }, {
1130
+ status: "active" | "inactive";
1131
+ count: number;
1132
+ }>, "many">;
1133
+ node: z.ZodArray<z.ZodObject<{
1134
+ status: z.ZodNativeEnum<{
1135
+ active: "active";
1136
+ inactive: "inactive";
1137
+ }>;
1138
+ count: z.ZodNumber;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ status: "active" | "inactive";
1141
+ count: number;
1142
+ }, {
1143
+ status: "active" | "inactive";
1144
+ count: number;
1145
+ }>, "many">;
1146
+ node_group: z.ZodArray<z.ZodObject<{
1147
+ node_type: z.ZodNativeEnum<{
1148
+ in: "in";
1149
+ out: "out";
1150
+ }>;
1151
+ count: z.ZodNumber;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ node_type: "in" | "out";
1154
+ count: number;
1155
+ }, {
1156
+ node_type: "in" | "out";
1157
+ count: number;
1158
+ }>, "many">;
1159
+ topup_order: z.ZodArray<z.ZodObject<{
1160
+ date: z.ZodString;
1161
+ total: z.ZodNumber;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ date: string;
1164
+ total: number;
1165
+ }, {
1166
+ date: string;
1167
+ total: number;
1168
+ }>, "many">;
1169
+ plan: z.ZodArray<z.ZodObject<{
1170
+ status: z.ZodNativeEnum<{
1171
+ active: "active";
1172
+ inactive: "inactive";
1173
+ }>;
1174
+ count: z.ZodNumber;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ status: "active" | "inactive";
1177
+ count: number;
1178
+ }, {
1179
+ status: "active" | "inactive";
1180
+ count: number;
1181
+ }>, "many">;
1182
+ topup: z.ZodArray<z.ZodObject<{
1183
+ date: z.ZodString;
1184
+ total: z.ZodNumber;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ date: string;
1187
+ total: number;
1188
+ }, {
1189
+ date: string;
1190
+ total: number;
1191
+ }>, "many">;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ user: {
1194
+ status: "active" | "inactive";
1195
+ count: number;
1196
+ }[];
1197
+ topup: {
1198
+ date: string;
1199
+ total: number;
1200
+ }[];
1201
+ plan: {
1202
+ status: "active" | "inactive";
1203
+ count: number;
1204
+ }[];
1205
+ node: {
1206
+ status: "active" | "inactive";
1207
+ count: number;
1208
+ }[];
1209
+ node_group: {
1210
+ node_type: "in" | "out";
1211
+ count: number;
1212
+ }[];
1213
+ topup_order: {
1214
+ date: string;
1215
+ total: number;
1216
+ }[];
1217
+ }, {
1218
+ user: {
1219
+ status: "active" | "inactive";
1220
+ count: number;
1221
+ }[];
1222
+ topup: {
1223
+ date: string;
1224
+ total: number;
1225
+ }[];
1226
+ plan: {
1227
+ status: "active" | "inactive";
1228
+ count: number;
1229
+ }[];
1230
+ node: {
1231
+ status: "active" | "inactive";
1232
+ count: number;
1233
+ }[];
1234
+ node_group: {
1235
+ node_type: "in" | "out";
1236
+ count: number;
1237
+ }[];
1238
+ topup_order: {
1239
+ date: string;
1240
+ total: number;
1241
+ }[];
1242
+ }>;
1243
+ export declare const TopupOrderResponseSchema: z.ZodObject<{
1244
+ data: z.ZodArray<z.ZodObject<{
1245
+ status: z.ZodEnum<["pending", "success", "cancelled"]>;
1246
+ id: z.ZodNumber;
1247
+ user_id: z.ZodNumber;
1248
+ price: z.ZodNumber;
1249
+ balance: z.ZodNumber;
1250
+ bonus: z.ZodNumber;
1251
+ payment_id: z.ZodNumber;
1252
+ pay_url: z.ZodString;
1253
+ order_id: z.ZodString;
1254
+ trade_id: z.ZodNullable<z.ZodString>;
1255
+ created_at: z.ZodDate;
1256
+ updated_at: z.ZodDate;
1257
+ } & {
1258
+ payment: z.ZodObject<Pick<{
1259
+ method: z.ZodEnum<["epay", "bepusdt", "heleket"]>;
1260
+ status: z.ZodEnum<["active", "inactive"]>;
1261
+ id: z.ZodNumber;
1262
+ fixed_fee: z.ZodNullable<z.ZodNumber>;
1263
+ percent_fee: z.ZodNullable<z.ZodNumber>;
1264
+ name: z.ZodString;
1265
+ url: z.ZodString;
1266
+ config: z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>;
1267
+ type: z.ZodNullable<z.ZodString>;
1268
+ order_by: z.ZodNumber;
1269
+ created_at: z.ZodDate;
1270
+ updated_at: z.ZodDate;
1271
+ }, "name">, "strip", z.ZodTypeAny, {
1272
+ name: string;
1273
+ }, {
1274
+ name: string;
1275
+ }>;
1276
+ user: z.ZodObject<Pick<{
1277
+ status: z.ZodEnum<["active", "inactive"]>;
1278
+ id: z.ZodNumber;
1279
+ super_admin: z.ZodBoolean;
1280
+ email: z.ZodString;
1281
+ balance: z.ZodNumber;
1282
+ tg_id: z.ZodNullable<z.ZodString>;
1283
+ uid: z.ZodNullable<z.ZodString>;
1284
+ note: z.ZodNullable<z.ZodString>;
1285
+ parent_id: z.ZodNullable<z.ZodNumber>;
1286
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
1287
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
1288
+ auto_renew: z.ZodBoolean;
1289
+ api_key: z.ZodString;
1290
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1291
+ created_at: z.ZodDate;
1292
+ updated_at: z.ZodDate;
1293
+ }, "email">, "strip", z.ZodTypeAny, {
1294
+ email: string;
1295
+ }, {
1296
+ email: string;
1297
+ }>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ id: number;
1300
+ created_at: Date;
1301
+ updated_at: Date;
1302
+ user_id: number;
1303
+ user: {
1304
+ email: string;
1305
+ };
1306
+ balance: number;
1307
+ status: "pending" | "success" | "cancelled";
1308
+ price: number;
1309
+ bonus: number;
1310
+ payment_id: number;
1311
+ pay_url: string;
1312
+ order_id: string;
1313
+ trade_id: string | null;
1314
+ payment: {
1315
+ name: string;
1316
+ };
1317
+ }, {
1318
+ id: number;
1319
+ created_at: Date;
1320
+ updated_at: Date;
1321
+ user_id: number;
1322
+ user: {
1323
+ email: string;
1324
+ };
1325
+ balance: number;
1326
+ status: "pending" | "success" | "cancelled";
1327
+ price: number;
1328
+ bonus: number;
1329
+ payment_id: number;
1330
+ pay_url: string;
1331
+ order_id: string;
1332
+ trade_id: string | null;
1333
+ payment: {
1334
+ name: string;
1335
+ };
1336
+ }>, "many">;
1337
+ total: z.ZodNumber;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ data: {
1340
+ id: number;
1341
+ created_at: Date;
1342
+ updated_at: Date;
1343
+ user_id: number;
1344
+ user: {
1345
+ email: string;
1346
+ };
1347
+ balance: number;
1348
+ status: "pending" | "success" | "cancelled";
1349
+ price: number;
1350
+ bonus: number;
1351
+ payment_id: number;
1352
+ pay_url: string;
1353
+ order_id: string;
1354
+ trade_id: string | null;
1355
+ payment: {
1356
+ name: string;
1357
+ };
1358
+ }[];
1359
+ total: number;
1360
+ }, {
1361
+ data: {
1362
+ id: number;
1363
+ created_at: Date;
1364
+ updated_at: Date;
1365
+ user_id: number;
1366
+ user: {
1367
+ email: string;
1368
+ };
1369
+ balance: number;
1370
+ status: "pending" | "success" | "cancelled";
1371
+ price: number;
1372
+ bonus: number;
1373
+ payment_id: number;
1374
+ pay_url: string;
1375
+ order_id: string;
1376
+ trade_id: string | null;
1377
+ payment: {
1378
+ name: string;
1379
+ };
1380
+ }[];
1381
+ total: number;
1382
+ }>;
1383
+ export declare const TopupOrderStatsResponseSchema: z.ZodArray<z.ZodObject<{
1384
+ date: z.ZodString;
1385
+ total: z.ZodNumber;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ date: string;
1388
+ total: number;
1389
+ }, {
1390
+ date: string;
1391
+ total: number;
1392
+ }>, "many">;
1393
+ export declare const OrderStatsResponseSchema: z.ZodArray<z.ZodObject<{
1394
+ date: z.ZodString;
1395
+ total: z.ZodNumber;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ date: string;
1398
+ total: number;
1399
+ }, {
1400
+ date: string;
1401
+ total: number;
1402
+ }>, "many">;
1403
+ export declare const LicenseResponseSchema: z.ZodObject<{
1404
+ expired_at: z.ZodString;
1405
+ created_at: z.ZodString;
1406
+ site_url: z.ZodString;
1407
+ type: z.ZodOptional<z.ZodEnum<["personal", "business"]>>;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ created_at: string;
1410
+ expired_at: string;
1411
+ site_url: string;
1412
+ type?: "personal" | "business" | undefined;
1413
+ }, {
1414
+ created_at: string;
1415
+ expired_at: string;
1416
+ site_url: string;
1417
+ type?: "personal" | "business" | undefined;
1418
+ }>;
1419
+ export declare const NodeGroupSummaryResponseSchema: z.ZodObject<Pick<{
1420
+ node_type: z.ZodEnum<["in", "out"]>;
1421
+ load_balance_type: z.ZodEnum<["round", "rand", "fifo", "hash", "ll", "lc"]>;
1422
+ bypass_type: z.ZodEnum<["whitelist", "blacklist"]>;
1423
+ id: z.ZodNumber;
1424
+ token: z.ZodString;
1425
+ name: z.ZodString;
1426
+ port_range: z.ZodNullable<z.ZodString>;
1427
+ connect_ip: z.ZodNullable<z.ZodString>;
1428
+ allow_listen_protocol: z.ZodBoolean;
1429
+ allow_tunnel_types: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1430
+ bypass_list: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1431
+ admission: z.ZodBoolean;
1432
+ block_protocols: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1433
+ traffic_rate: z.ZodNumber;
1434
+ need_out_node_group: z.ZodBoolean;
1435
+ allow_out_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1436
+ allow_in_node_groups: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1437
+ order_by: z.ZodNumber;
1438
+ created_at: z.ZodDate;
1439
+ updated_at: z.ZodDate;
1440
+ user_id: z.ZodNumber;
1441
+ }, "name" | "id" | "node_type" | "admission" | "traffic_rate" | "need_out_node_group"> & {
1442
+ allow_tunnel_types: z.ZodArray<z.ZodNativeEnum<{
1443
+ tcp: "tcp";
1444
+ mtcp: "mtcp";
1445
+ udp: "udp";
1446
+ relayx: "relayx";
1447
+ mtls: "mtls";
1448
+ mwss: "mwss";
1449
+ wss: "wss";
1450
+ tls: "tls";
1451
+ quic: "quic";
1452
+ }>, "many">;
1453
+ node_count: z.ZodNumber;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ name: string;
1456
+ id: number;
1457
+ node_type: "in" | "out";
1458
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1459
+ admission: boolean;
1460
+ traffic_rate: number;
1461
+ need_out_node_group: boolean;
1462
+ node_count: number;
1463
+ }, {
1464
+ name: string;
1465
+ id: number;
1466
+ node_type: "in" | "out";
1467
+ allow_tunnel_types: ("tcp" | "mtcp" | "udp" | "relayx" | "mtls" | "mwss" | "wss" | "tls" | "quic")[];
1468
+ admission: boolean;
1469
+ traffic_rate: number;
1470
+ need_out_node_group: boolean;
1471
+ node_count: number;
1472
+ }>;
1473
+ export declare const UserPlanResponseSchemaItem: z.ZodObject<{
1474
+ id: z.ZodNumber;
1475
+ user_id: z.ZodNumber;
1476
+ traffic: z.ZodNullable<z.ZodNumber>;
1477
+ traffic_used: z.ZodNumber;
1478
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1479
+ expired_at: z.ZodNullable<z.ZodDate>;
1480
+ created_at: z.ZodDate;
1481
+ updated_at: z.ZodDate;
1482
+ plan_id: z.ZodNumber;
1483
+ } & {
1484
+ user: z.ZodObject<Pick<{
1485
+ status: z.ZodEnum<["active", "inactive"]>;
1486
+ id: z.ZodNumber;
1487
+ super_admin: z.ZodBoolean;
1488
+ email: z.ZodString;
1489
+ balance: z.ZodNumber;
1490
+ tg_id: z.ZodNullable<z.ZodString>;
1491
+ uid: z.ZodNullable<z.ZodString>;
1492
+ note: z.ZodNullable<z.ZodString>;
1493
+ parent_id: z.ZodNullable<z.ZodNumber>;
1494
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
1495
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
1496
+ auto_renew: z.ZodBoolean;
1497
+ api_key: z.ZodString;
1498
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1499
+ created_at: z.ZodDate;
1500
+ updated_at: z.ZodDate;
1501
+ }, "id" | "email">, "strip", z.ZodTypeAny, {
1502
+ id: number;
1503
+ email: string;
1504
+ }, {
1505
+ id: number;
1506
+ email: string;
1507
+ }>;
1508
+ plan: z.ZodObject<Pick<{
1509
+ billing_cycle: z.ZodEnum<["month", "quarter", "half_year", "year", "lifetime"]>;
1510
+ status: z.ZodEnum<["active", "inactive"]>;
1511
+ id: z.ZodNumber;
1512
+ name: z.ZodString;
1513
+ description: z.ZodNullable<z.ZodString>;
1514
+ original_price: z.ZodNullable<z.ZodNumber>;
1515
+ price: z.ZodNumber;
1516
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1517
+ traffic: z.ZodNullable<z.ZodNumber>;
1518
+ ip_limit: z.ZodNullable<z.ZodNumber>;
1519
+ bandwidth_limit: z.ZodNullable<z.ZodNumber>;
1520
+ allow_custom_in_node_group: z.ZodBoolean;
1521
+ allow_custom_out_node_group: z.ZodBoolean;
1522
+ all_in_node_groups: z.ZodBoolean;
1523
+ all_out_node_groups: z.ZodBoolean;
1524
+ setup_fee: z.ZodNullable<z.ZodNumber>;
1525
+ renewable: z.ZodBoolean;
1526
+ stock: z.ZodNullable<z.ZodNumber>;
1527
+ order_by: z.ZodNumber;
1528
+ created_at: z.ZodDate;
1529
+ updated_at: z.ZodDate;
1530
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
1531
+ name: string;
1532
+ id: number;
1533
+ }, {
1534
+ name: string;
1535
+ id: number;
1536
+ }>;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ id: number;
1539
+ created_at: Date;
1540
+ updated_at: Date;
1541
+ user_id: number;
1542
+ user: {
1543
+ id: number;
1544
+ email: string;
1545
+ };
1546
+ traffic: number | null;
1547
+ plan_id: number;
1548
+ plan: {
1549
+ name: string;
1550
+ id: number;
1551
+ };
1552
+ traffic_used: number;
1553
+ max_tunnels: number | null;
1554
+ expired_at: Date | null;
1555
+ }, {
1556
+ id: number;
1557
+ created_at: Date;
1558
+ updated_at: Date;
1559
+ user_id: number;
1560
+ user: {
1561
+ id: number;
1562
+ email: string;
1563
+ };
1564
+ traffic: number | null;
1565
+ plan_id: number;
1566
+ plan: {
1567
+ name: string;
1568
+ id: number;
1569
+ };
1570
+ traffic_used: number;
1571
+ max_tunnels: number | null;
1572
+ expired_at: Date | null;
1573
+ }>;
1574
+ export declare const UserPlanResponseSchema: z.ZodObject<{
1575
+ data: z.ZodArray<z.ZodObject<{
1576
+ id: z.ZodNumber;
1577
+ user_id: z.ZodNumber;
1578
+ traffic: z.ZodNullable<z.ZodNumber>;
1579
+ traffic_used: z.ZodNumber;
1580
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1581
+ expired_at: z.ZodNullable<z.ZodDate>;
1582
+ created_at: z.ZodDate;
1583
+ updated_at: z.ZodDate;
1584
+ plan_id: z.ZodNumber;
1585
+ } & {
1586
+ user: z.ZodObject<Pick<{
1587
+ status: z.ZodEnum<["active", "inactive"]>;
1588
+ id: z.ZodNumber;
1589
+ super_admin: z.ZodBoolean;
1590
+ email: z.ZodString;
1591
+ balance: z.ZodNumber;
1592
+ tg_id: z.ZodNullable<z.ZodString>;
1593
+ uid: z.ZodNullable<z.ZodString>;
1594
+ note: z.ZodNullable<z.ZodString>;
1595
+ parent_id: z.ZodNullable<z.ZodNumber>;
1596
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
1597
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
1598
+ auto_renew: z.ZodBoolean;
1599
+ api_key: z.ZodString;
1600
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1601
+ created_at: z.ZodDate;
1602
+ updated_at: z.ZodDate;
1603
+ }, "id" | "email">, "strip", z.ZodTypeAny, {
1604
+ id: number;
1605
+ email: string;
1606
+ }, {
1607
+ id: number;
1608
+ email: string;
1609
+ }>;
1610
+ plan: z.ZodObject<Pick<{
1611
+ billing_cycle: z.ZodEnum<["month", "quarter", "half_year", "year", "lifetime"]>;
1612
+ status: z.ZodEnum<["active", "inactive"]>;
1613
+ id: z.ZodNumber;
1614
+ name: z.ZodString;
1615
+ description: z.ZodNullable<z.ZodString>;
1616
+ original_price: z.ZodNullable<z.ZodNumber>;
1617
+ price: z.ZodNumber;
1618
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1619
+ traffic: z.ZodNullable<z.ZodNumber>;
1620
+ ip_limit: z.ZodNullable<z.ZodNumber>;
1621
+ bandwidth_limit: z.ZodNullable<z.ZodNumber>;
1622
+ allow_custom_in_node_group: z.ZodBoolean;
1623
+ allow_custom_out_node_group: z.ZodBoolean;
1624
+ all_in_node_groups: z.ZodBoolean;
1625
+ all_out_node_groups: z.ZodBoolean;
1626
+ setup_fee: z.ZodNullable<z.ZodNumber>;
1627
+ renewable: z.ZodBoolean;
1628
+ stock: z.ZodNullable<z.ZodNumber>;
1629
+ order_by: z.ZodNumber;
1630
+ created_at: z.ZodDate;
1631
+ updated_at: z.ZodDate;
1632
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
1633
+ name: string;
1634
+ id: number;
1635
+ }, {
1636
+ name: string;
1637
+ id: number;
1638
+ }>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ id: number;
1641
+ created_at: Date;
1642
+ updated_at: Date;
1643
+ user_id: number;
1644
+ user: {
1645
+ id: number;
1646
+ email: string;
1647
+ };
1648
+ traffic: number | null;
1649
+ plan_id: number;
1650
+ plan: {
1651
+ name: string;
1652
+ id: number;
1653
+ };
1654
+ traffic_used: number;
1655
+ max_tunnels: number | null;
1656
+ expired_at: Date | null;
1657
+ }, {
1658
+ id: number;
1659
+ created_at: Date;
1660
+ updated_at: Date;
1661
+ user_id: number;
1662
+ user: {
1663
+ id: number;
1664
+ email: string;
1665
+ };
1666
+ traffic: number | null;
1667
+ plan_id: number;
1668
+ plan: {
1669
+ name: string;
1670
+ id: number;
1671
+ };
1672
+ traffic_used: number;
1673
+ max_tunnels: number | null;
1674
+ expired_at: Date | null;
1675
+ }>, "many">;
1676
+ total: z.ZodNumber;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ data: {
1679
+ id: number;
1680
+ created_at: Date;
1681
+ updated_at: Date;
1682
+ user_id: number;
1683
+ user: {
1684
+ id: number;
1685
+ email: string;
1686
+ };
1687
+ traffic: number | null;
1688
+ plan_id: number;
1689
+ plan: {
1690
+ name: string;
1691
+ id: number;
1692
+ };
1693
+ traffic_used: number;
1694
+ max_tunnels: number | null;
1695
+ expired_at: Date | null;
1696
+ }[];
1697
+ total: number;
1698
+ }, {
1699
+ data: {
1700
+ id: number;
1701
+ created_at: Date;
1702
+ updated_at: Date;
1703
+ user_id: number;
1704
+ user: {
1705
+ id: number;
1706
+ email: string;
1707
+ };
1708
+ traffic: number | null;
1709
+ plan_id: number;
1710
+ plan: {
1711
+ name: string;
1712
+ id: number;
1713
+ };
1714
+ traffic_used: number;
1715
+ max_tunnels: number | null;
1716
+ expired_at: Date | null;
1717
+ }[];
1718
+ total: number;
1719
+ }>;
1720
+ export declare const UserPlanRequestSchema: z.ZodObject<{
1721
+ user_id: z.ZodNumber;
1722
+ plan_id: z.ZodNumber;
1723
+ expired_at: z.ZodNullable<z.ZodDate>;
1724
+ traffic: z.ZodNullable<z.ZodNumber>;
1725
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ user_id: number;
1728
+ traffic: number | null;
1729
+ plan_id: number;
1730
+ max_tunnels: number | null;
1731
+ expired_at: Date | null;
1732
+ }, {
1733
+ user_id: number;
1734
+ traffic: number | null;
1735
+ plan_id: number;
1736
+ max_tunnels: number | null;
1737
+ expired_at: Date | null;
1738
+ }>;
1739
+ export declare const UserPlanUpdateRequestSchema: z.ZodObject<{
1740
+ expired_at: z.ZodNullable<z.ZodDate>;
1741
+ plan_id: z.ZodNumber;
1742
+ traffic_used: z.ZodNumber;
1743
+ traffic: z.ZodNullable<z.ZodNumber>;
1744
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ traffic: number | null;
1747
+ plan_id: number;
1748
+ traffic_used: number;
1749
+ max_tunnels: number | null;
1750
+ expired_at: Date | null;
1751
+ }, {
1752
+ traffic: number | null;
1753
+ plan_id: number;
1754
+ traffic_used: number;
1755
+ max_tunnels: number | null;
1756
+ expired_at: Date | null;
1757
+ }>;
1758
+ export declare const NodeResponseSchemaItem: z.ZodObject<{
1759
+ status: z.ZodEnum<["active", "inactive"]>;
1760
+ id: z.ZodNumber;
1761
+ weight: z.ZodNumber;
1762
+ node_id: z.ZodString;
1763
+ connect_ip: z.ZodString;
1764
+ version: z.ZodString;
1765
+ backup: z.ZodBoolean;
1766
+ order_by: z.ZodNumber;
1767
+ custom_line: z.ZodNullable<z.ZodString>;
1768
+ dns_status: z.ZodBoolean;
1769
+ node_group_id: z.ZodNumber;
1770
+ } & {
1771
+ node_group: z.ZodObject<{
1772
+ name: z.ZodString;
1773
+ traffic_rate: z.ZodNumber;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ name: string;
1776
+ traffic_rate: number;
1777
+ }, {
1778
+ name: string;
1779
+ traffic_rate: number;
1780
+ }>;
1781
+ created_at: z.ZodString;
1782
+ updated_at: z.ZodString;
1783
+ last_active: z.ZodNullable<z.ZodString>;
1784
+ upgradeable: z.ZodBoolean;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ id: number;
1787
+ connect_ip: string;
1788
+ order_by: number;
1789
+ created_at: string;
1790
+ updated_at: string;
1791
+ status: "active" | "inactive";
1792
+ weight: number;
1793
+ node_id: string;
1794
+ version: string;
1795
+ backup: boolean;
1796
+ custom_line: string | null;
1797
+ dns_status: boolean;
1798
+ node_group_id: number;
1799
+ node_group: {
1800
+ name: string;
1801
+ traffic_rate: number;
1802
+ };
1803
+ last_active: string | null;
1804
+ upgradeable: boolean;
1805
+ }, {
1806
+ id: number;
1807
+ connect_ip: string;
1808
+ order_by: number;
1809
+ created_at: string;
1810
+ updated_at: string;
1811
+ status: "active" | "inactive";
1812
+ weight: number;
1813
+ node_id: string;
1814
+ version: string;
1815
+ backup: boolean;
1816
+ custom_line: string | null;
1817
+ dns_status: boolean;
1818
+ node_group_id: number;
1819
+ node_group: {
1820
+ name: string;
1821
+ traffic_rate: number;
1822
+ };
1823
+ last_active: string | null;
1824
+ upgradeable: boolean;
1825
+ }>;
1826
+ export declare const NodeResponseSchema: z.ZodObject<{
1827
+ data: z.ZodArray<z.ZodObject<{
1828
+ status: z.ZodEnum<["active", "inactive"]>;
1829
+ id: z.ZodNumber;
1830
+ weight: z.ZodNumber;
1831
+ node_id: z.ZodString;
1832
+ connect_ip: z.ZodString;
1833
+ version: z.ZodString;
1834
+ backup: z.ZodBoolean;
1835
+ order_by: z.ZodNumber;
1836
+ custom_line: z.ZodNullable<z.ZodString>;
1837
+ dns_status: z.ZodBoolean;
1838
+ node_group_id: z.ZodNumber;
1839
+ } & {
1840
+ node_group: z.ZodObject<{
1841
+ name: z.ZodString;
1842
+ traffic_rate: z.ZodNumber;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ name: string;
1845
+ traffic_rate: number;
1846
+ }, {
1847
+ name: string;
1848
+ traffic_rate: number;
1849
+ }>;
1850
+ created_at: z.ZodString;
1851
+ updated_at: z.ZodString;
1852
+ last_active: z.ZodNullable<z.ZodString>;
1853
+ upgradeable: z.ZodBoolean;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ id: number;
1856
+ connect_ip: string;
1857
+ order_by: number;
1858
+ created_at: string;
1859
+ updated_at: string;
1860
+ status: "active" | "inactive";
1861
+ weight: number;
1862
+ node_id: string;
1863
+ version: string;
1864
+ backup: boolean;
1865
+ custom_line: string | null;
1866
+ dns_status: boolean;
1867
+ node_group_id: number;
1868
+ node_group: {
1869
+ name: string;
1870
+ traffic_rate: number;
1871
+ };
1872
+ last_active: string | null;
1873
+ upgradeable: boolean;
1874
+ }, {
1875
+ id: number;
1876
+ connect_ip: string;
1877
+ order_by: number;
1878
+ created_at: string;
1879
+ updated_at: string;
1880
+ status: "active" | "inactive";
1881
+ weight: number;
1882
+ node_id: string;
1883
+ version: string;
1884
+ backup: boolean;
1885
+ custom_line: string | null;
1886
+ dns_status: boolean;
1887
+ node_group_id: number;
1888
+ node_group: {
1889
+ name: string;
1890
+ traffic_rate: number;
1891
+ };
1892
+ last_active: string | null;
1893
+ upgradeable: boolean;
1894
+ }>, "many">;
1895
+ total: z.ZodNumber;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ data: {
1898
+ id: number;
1899
+ connect_ip: string;
1900
+ order_by: number;
1901
+ created_at: string;
1902
+ updated_at: string;
1903
+ status: "active" | "inactive";
1904
+ weight: number;
1905
+ node_id: string;
1906
+ version: string;
1907
+ backup: boolean;
1908
+ custom_line: string | null;
1909
+ dns_status: boolean;
1910
+ node_group_id: number;
1911
+ node_group: {
1912
+ name: string;
1913
+ traffic_rate: number;
1914
+ };
1915
+ last_active: string | null;
1916
+ upgradeable: boolean;
1917
+ }[];
1918
+ total: number;
1919
+ }, {
1920
+ data: {
1921
+ id: number;
1922
+ connect_ip: string;
1923
+ order_by: number;
1924
+ created_at: string;
1925
+ updated_at: string;
1926
+ status: "active" | "inactive";
1927
+ weight: number;
1928
+ node_id: string;
1929
+ version: string;
1930
+ backup: boolean;
1931
+ custom_line: string | null;
1932
+ dns_status: boolean;
1933
+ node_group_id: number;
1934
+ node_group: {
1935
+ name: string;
1936
+ traffic_rate: number;
1937
+ };
1938
+ last_active: string | null;
1939
+ upgradeable: boolean;
1940
+ }[];
1941
+ total: number;
1942
+ }>;
1943
+ export declare const UserResponseSchemaItem: z.ZodObject<Omit<{
1944
+ status: z.ZodEnum<["active", "inactive"]>;
1945
+ id: z.ZodNumber;
1946
+ super_admin: z.ZodBoolean;
1947
+ email: z.ZodString;
1948
+ balance: z.ZodNumber;
1949
+ tg_id: z.ZodNullable<z.ZodString>;
1950
+ uid: z.ZodNullable<z.ZodString>;
1951
+ note: z.ZodNullable<z.ZodString>;
1952
+ parent_id: z.ZodNullable<z.ZodNumber>;
1953
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
1954
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
1955
+ auto_renew: z.ZodBoolean;
1956
+ api_key: z.ZodString;
1957
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
1958
+ created_at: z.ZodDate;
1959
+ updated_at: z.ZodDate;
1960
+ }, "notify_subscriptions"> & {
1961
+ notify_subscriptions: z.ZodArray<z.ZodNativeEnum<typeof NotifyType>, "many">;
1962
+ }, "strip", z.ZodTypeAny, {
1963
+ id: number;
1964
+ created_at: Date;
1965
+ updated_at: Date;
1966
+ super_admin: boolean;
1967
+ email: string;
1968
+ balance: number;
1969
+ tg_id: string | null;
1970
+ uid: string | null;
1971
+ note: string | null;
1972
+ parent_id: number | null;
1973
+ referral_commission_rate: number | null;
1974
+ referral_first_only: boolean | null;
1975
+ auto_renew: boolean;
1976
+ api_key: string;
1977
+ notify_subscriptions: NotifyType[];
1978
+ status: "active" | "inactive";
1979
+ }, {
1980
+ id: number;
1981
+ created_at: Date;
1982
+ updated_at: Date;
1983
+ super_admin: boolean;
1984
+ email: string;
1985
+ balance: number;
1986
+ tg_id: string | null;
1987
+ uid: string | null;
1988
+ note: string | null;
1989
+ parent_id: number | null;
1990
+ referral_commission_rate: number | null;
1991
+ referral_first_only: boolean | null;
1992
+ auto_renew: boolean;
1993
+ api_key: string;
1994
+ notify_subscriptions: NotifyType[];
1995
+ status: "active" | "inactive";
1996
+ }>;
1997
+ export declare const UserResponseSchema: z.ZodObject<{
1998
+ data: z.ZodArray<z.ZodObject<Omit<{
1999
+ status: z.ZodEnum<["active", "inactive"]>;
2000
+ id: z.ZodNumber;
2001
+ super_admin: z.ZodBoolean;
2002
+ email: z.ZodString;
2003
+ balance: z.ZodNumber;
2004
+ tg_id: z.ZodNullable<z.ZodString>;
2005
+ uid: z.ZodNullable<z.ZodString>;
2006
+ note: z.ZodNullable<z.ZodString>;
2007
+ parent_id: z.ZodNullable<z.ZodNumber>;
2008
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
2009
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
2010
+ auto_renew: z.ZodBoolean;
2011
+ api_key: z.ZodString;
2012
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
2013
+ created_at: z.ZodDate;
2014
+ updated_at: z.ZodDate;
2015
+ }, "notify_subscriptions"> & {
2016
+ notify_subscriptions: z.ZodArray<z.ZodNativeEnum<typeof NotifyType>, "many">;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ id: number;
2019
+ created_at: Date;
2020
+ updated_at: Date;
2021
+ super_admin: boolean;
2022
+ email: string;
2023
+ balance: number;
2024
+ tg_id: string | null;
2025
+ uid: string | null;
2026
+ note: string | null;
2027
+ parent_id: number | null;
2028
+ referral_commission_rate: number | null;
2029
+ referral_first_only: boolean | null;
2030
+ auto_renew: boolean;
2031
+ api_key: string;
2032
+ notify_subscriptions: NotifyType[];
2033
+ status: "active" | "inactive";
2034
+ }, {
2035
+ id: number;
2036
+ created_at: Date;
2037
+ updated_at: Date;
2038
+ super_admin: boolean;
2039
+ email: string;
2040
+ balance: number;
2041
+ tg_id: string | null;
2042
+ uid: string | null;
2043
+ note: string | null;
2044
+ parent_id: number | null;
2045
+ referral_commission_rate: number | null;
2046
+ referral_first_only: boolean | null;
2047
+ auto_renew: boolean;
2048
+ api_key: string;
2049
+ notify_subscriptions: NotifyType[];
2050
+ status: "active" | "inactive";
2051
+ }>, "many">;
2052
+ total: z.ZodNumber;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ data: {
2055
+ id: number;
2056
+ created_at: Date;
2057
+ updated_at: Date;
2058
+ super_admin: boolean;
2059
+ email: string;
2060
+ balance: number;
2061
+ tg_id: string | null;
2062
+ uid: string | null;
2063
+ note: string | null;
2064
+ parent_id: number | null;
2065
+ referral_commission_rate: number | null;
2066
+ referral_first_only: boolean | null;
2067
+ auto_renew: boolean;
2068
+ api_key: string;
2069
+ notify_subscriptions: NotifyType[];
2070
+ status: "active" | "inactive";
2071
+ }[];
2072
+ total: number;
2073
+ }, {
2074
+ data: {
2075
+ id: number;
2076
+ created_at: Date;
2077
+ updated_at: Date;
2078
+ super_admin: boolean;
2079
+ email: string;
2080
+ balance: number;
2081
+ tg_id: string | null;
2082
+ uid: string | null;
2083
+ note: string | null;
2084
+ parent_id: number | null;
2085
+ referral_commission_rate: number | null;
2086
+ referral_first_only: boolean | null;
2087
+ auto_renew: boolean;
2088
+ api_key: string;
2089
+ notify_subscriptions: NotifyType[];
2090
+ status: "active" | "inactive";
2091
+ }[];
2092
+ total: number;
2093
+ }>;
2094
+ export declare const PlanSummaryResponseSchema: z.ZodArray<z.ZodObject<Pick<{
2095
+ billing_cycle: z.ZodEnum<["month", "quarter", "half_year", "year", "lifetime"]>;
2096
+ status: z.ZodEnum<["active", "inactive"]>;
2097
+ id: z.ZodNumber;
2098
+ name: z.ZodString;
2099
+ description: z.ZodNullable<z.ZodString>;
2100
+ original_price: z.ZodNullable<z.ZodNumber>;
2101
+ price: z.ZodNumber;
2102
+ max_tunnels: z.ZodNullable<z.ZodNumber>;
2103
+ traffic: z.ZodNullable<z.ZodNumber>;
2104
+ ip_limit: z.ZodNullable<z.ZodNumber>;
2105
+ bandwidth_limit: z.ZodNullable<z.ZodNumber>;
2106
+ allow_custom_in_node_group: z.ZodBoolean;
2107
+ allow_custom_out_node_group: z.ZodBoolean;
2108
+ all_in_node_groups: z.ZodBoolean;
2109
+ all_out_node_groups: z.ZodBoolean;
2110
+ setup_fee: z.ZodNullable<z.ZodNumber>;
2111
+ renewable: z.ZodBoolean;
2112
+ stock: z.ZodNullable<z.ZodNumber>;
2113
+ order_by: z.ZodNumber;
2114
+ created_at: z.ZodDate;
2115
+ updated_at: z.ZodDate;
2116
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
2117
+ name: string;
2118
+ id: number;
2119
+ }, {
2120
+ name: string;
2121
+ id: number;
2122
+ }>, "many">;
2123
+ export declare const BalanceLogResponseSchema: z.ZodObject<{
2124
+ data: z.ZodArray<z.ZodObject<{
2125
+ type: z.ZodEnum<["topup", "plan", "referral"]>;
2126
+ id: z.ZodNumber;
2127
+ user_id: z.ZodNumber;
2128
+ balance: z.ZodNumber;
2129
+ amount: z.ZodNumber;
2130
+ updated_at: z.ZodDate;
2131
+ } & {
2132
+ user: z.ZodObject<Pick<{
2133
+ status: z.ZodEnum<["active", "inactive"]>;
2134
+ id: z.ZodNumber;
2135
+ super_admin: z.ZodBoolean;
2136
+ email: z.ZodString;
2137
+ balance: z.ZodNumber;
2138
+ tg_id: z.ZodNullable<z.ZodString>;
2139
+ uid: z.ZodNullable<z.ZodString>;
2140
+ note: z.ZodNullable<z.ZodString>;
2141
+ parent_id: z.ZodNullable<z.ZodNumber>;
2142
+ referral_commission_rate: z.ZodNullable<z.ZodNumber>;
2143
+ referral_first_only: z.ZodNullable<z.ZodBoolean>;
2144
+ auto_renew: z.ZodBoolean;
2145
+ api_key: z.ZodString;
2146
+ notify_subscriptions: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
2147
+ created_at: z.ZodDate;
2148
+ updated_at: z.ZodDate;
2149
+ }, "email">, "strip", z.ZodTypeAny, {
2150
+ email: string;
2151
+ }, {
2152
+ email: string;
2153
+ }>;
2154
+ created_at: z.ZodString;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ id: number;
2157
+ created_at: string;
2158
+ updated_at: Date;
2159
+ user_id: number;
2160
+ user: {
2161
+ email: string;
2162
+ };
2163
+ balance: number;
2164
+ amount: number;
2165
+ type: "topup" | "plan" | "referral";
2166
+ }, {
2167
+ id: number;
2168
+ created_at: string;
2169
+ updated_at: Date;
2170
+ user_id: number;
2171
+ user: {
2172
+ email: string;
2173
+ };
2174
+ balance: number;
2175
+ amount: number;
2176
+ type: "topup" | "plan" | "referral";
2177
+ }>, "many">;
2178
+ total: z.ZodNumber;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ data: {
2181
+ id: number;
2182
+ created_at: string;
2183
+ updated_at: Date;
2184
+ user_id: number;
2185
+ user: {
2186
+ email: string;
2187
+ };
2188
+ balance: number;
2189
+ amount: number;
2190
+ type: "topup" | "plan" | "referral";
2191
+ }[];
2192
+ total: number;
2193
+ }, {
2194
+ data: {
2195
+ id: number;
2196
+ created_at: string;
2197
+ updated_at: Date;
2198
+ user_id: number;
2199
+ user: {
2200
+ email: string;
2201
+ };
2202
+ balance: number;
2203
+ amount: number;
2204
+ type: "topup" | "plan" | "referral";
2205
+ }[];
2206
+ total: number;
2207
+ }>;
2208
+ export declare const ReferralInfoResponseSchema: z.ZodObject<{
2209
+ referral_url: z.ZodString;
2210
+ commission_rate: z.ZodNumber;
2211
+ referral_count: z.ZodNumber;
2212
+ total_earnings: z.ZodNumber;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ referral_url: string;
2215
+ commission_rate: number;
2216
+ referral_count: number;
2217
+ total_earnings: number;
2218
+ }, {
2219
+ referral_url: string;
2220
+ commission_rate: number;
2221
+ referral_count: number;
2222
+ total_earnings: number;
2223
+ }>;
2224
+ export declare const ReferralStatsResponseSchema: z.ZodArray<z.ZodObject<{
2225
+ date: z.ZodString;
2226
+ referral_count: z.ZodNumber;
2227
+ earnings: z.ZodNumber;
2228
+ }, "strip", z.ZodTypeAny, {
2229
+ date: string;
2230
+ referral_count: number;
2231
+ earnings: number;
2232
+ }, {
2233
+ date: string;
2234
+ referral_count: number;
2235
+ earnings: number;
2236
+ }>, "many">;
2237
+ export declare const TunnelStatsResponseSchemaItem: z.ZodObject<{
2238
+ id: z.ZodNumber;
2239
+ name: z.ZodString;
2240
+ in_node_group: z.ZodObject<{
2241
+ id: z.ZodNumber;
2242
+ name: z.ZodString;
2243
+ }, "strip", z.ZodTypeAny, {
2244
+ name: string;
2245
+ id: number;
2246
+ }, {
2247
+ name: string;
2248
+ id: number;
2249
+ }>;
2250
+ out_node_group: z.ZodNullable<z.ZodObject<{
2251
+ id: z.ZodNumber;
2252
+ name: z.ZodString;
2253
+ }, "strip", z.ZodTypeAny, {
2254
+ name: string;
2255
+ id: number;
2256
+ }, {
2257
+ name: string;
2258
+ id: number;
2259
+ }>>;
2260
+ stats: z.ZodNullable<z.ZodObject<{
2261
+ totalConns: z.ZodNumber;
2262
+ currentConns: z.ZodNumber;
2263
+ inputBytes: z.ZodNumber;
2264
+ outputBytes: z.ZodNumber;
2265
+ totalErrs: z.ZodNumber;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ totalConns: number;
2268
+ currentConns: number;
2269
+ inputBytes: number;
2270
+ outputBytes: number;
2271
+ totalErrs: number;
2272
+ }, {
2273
+ totalConns: number;
2274
+ currentConns: number;
2275
+ inputBytes: number;
2276
+ outputBytes: number;
2277
+ totalErrs: number;
2278
+ }>>;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ name: string;
2281
+ id: number;
2282
+ stats: {
2283
+ totalConns: number;
2284
+ currentConns: number;
2285
+ inputBytes: number;
2286
+ outputBytes: number;
2287
+ totalErrs: number;
2288
+ } | null;
2289
+ in_node_group: {
2290
+ name: string;
2291
+ id: number;
2292
+ };
2293
+ out_node_group: {
2294
+ name: string;
2295
+ id: number;
2296
+ } | null;
2297
+ }, {
2298
+ name: string;
2299
+ id: number;
2300
+ stats: {
2301
+ totalConns: number;
2302
+ currentConns: number;
2303
+ inputBytes: number;
2304
+ outputBytes: number;
2305
+ totalErrs: number;
2306
+ } | null;
2307
+ in_node_group: {
2308
+ name: string;
2309
+ id: number;
2310
+ };
2311
+ out_node_group: {
2312
+ name: string;
2313
+ id: number;
2314
+ } | null;
2315
+ }>;
2316
+ export declare const TunnelStatsResponseSchema: z.ZodObject<{
2317
+ data: z.ZodArray<z.ZodObject<{
2318
+ id: z.ZodNumber;
2319
+ name: z.ZodString;
2320
+ in_node_group: z.ZodObject<{
2321
+ id: z.ZodNumber;
2322
+ name: z.ZodString;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ name: string;
2325
+ id: number;
2326
+ }, {
2327
+ name: string;
2328
+ id: number;
2329
+ }>;
2330
+ out_node_group: z.ZodNullable<z.ZodObject<{
2331
+ id: z.ZodNumber;
2332
+ name: z.ZodString;
2333
+ }, "strip", z.ZodTypeAny, {
2334
+ name: string;
2335
+ id: number;
2336
+ }, {
2337
+ name: string;
2338
+ id: number;
2339
+ }>>;
2340
+ stats: z.ZodNullable<z.ZodObject<{
2341
+ totalConns: z.ZodNumber;
2342
+ currentConns: z.ZodNumber;
2343
+ inputBytes: z.ZodNumber;
2344
+ outputBytes: z.ZodNumber;
2345
+ totalErrs: z.ZodNumber;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ totalConns: number;
2348
+ currentConns: number;
2349
+ inputBytes: number;
2350
+ outputBytes: number;
2351
+ totalErrs: number;
2352
+ }, {
2353
+ totalConns: number;
2354
+ currentConns: number;
2355
+ inputBytes: number;
2356
+ outputBytes: number;
2357
+ totalErrs: number;
2358
+ }>>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ name: string;
2361
+ id: number;
2362
+ stats: {
2363
+ totalConns: number;
2364
+ currentConns: number;
2365
+ inputBytes: number;
2366
+ outputBytes: number;
2367
+ totalErrs: number;
2368
+ } | null;
2369
+ in_node_group: {
2370
+ name: string;
2371
+ id: number;
2372
+ };
2373
+ out_node_group: {
2374
+ name: string;
2375
+ id: number;
2376
+ } | null;
2377
+ }, {
2378
+ name: string;
2379
+ id: number;
2380
+ stats: {
2381
+ totalConns: number;
2382
+ currentConns: number;
2383
+ inputBytes: number;
2384
+ outputBytes: number;
2385
+ totalErrs: number;
2386
+ } | null;
2387
+ in_node_group: {
2388
+ name: string;
2389
+ id: number;
2390
+ };
2391
+ out_node_group: {
2392
+ name: string;
2393
+ id: number;
2394
+ } | null;
2395
+ }>, "many">;
2396
+ total: z.ZodNumber;
2397
+ }, "strip", z.ZodTypeAny, {
2398
+ data: {
2399
+ name: string;
2400
+ id: number;
2401
+ stats: {
2402
+ totalConns: number;
2403
+ currentConns: number;
2404
+ inputBytes: number;
2405
+ outputBytes: number;
2406
+ totalErrs: number;
2407
+ } | null;
2408
+ in_node_group: {
2409
+ name: string;
2410
+ id: number;
2411
+ };
2412
+ out_node_group: {
2413
+ name: string;
2414
+ id: number;
2415
+ } | null;
2416
+ }[];
2417
+ total: number;
2418
+ }, {
2419
+ data: {
2420
+ name: string;
2421
+ id: number;
2422
+ stats: {
2423
+ totalConns: number;
2424
+ currentConns: number;
2425
+ inputBytes: number;
2426
+ outputBytes: number;
2427
+ totalErrs: number;
2428
+ } | null;
2429
+ in_node_group: {
2430
+ name: string;
2431
+ id: number;
2432
+ };
2433
+ out_node_group: {
2434
+ name: string;
2435
+ id: number;
2436
+ } | null;
2437
+ }[];
2438
+ total: number;
2439
+ }>;