@long2ice/relayx-backend 0.0.2 → 0.0.3
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/dist/app.d.ts +462 -435
- package/dist/generated/prisma/zod/index.d.ts +9 -6
- package/dist/routes/admin/plan.d.ts +3 -0
- package/dist/routes/admin/tunnel.d.ts +0 -151
- package/dist/routes/admin/user_plan.d.ts +149 -0
- package/dist/routes/plan.d.ts +2 -0
- package/dist/routes/tunnel.d.ts +25 -151
- package/dist/routes/user.d.ts +150 -0
- package/dist/schemas/request.d.ts +2 -10
- package/dist/schemas/response.d.ts +11 -8
- package/dist/services/plan.d.ts +4 -0
- package/dist/services/tunnel.d.ts +8 -7
- package/package.json +1 -1
package/dist/routes/user.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
22
22
|
max_tunnels: number | null;
|
|
23
23
|
description: string | null;
|
|
24
24
|
original_price: number | null;
|
|
25
|
+
whitelist_limit: number | null;
|
|
25
26
|
allow_custom_in_node_group: boolean;
|
|
26
27
|
allow_custom_out_node_group: boolean;
|
|
27
28
|
all_in_node_groups: boolean;
|
|
@@ -39,6 +40,155 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
39
40
|
plan_id: number;
|
|
40
41
|
traffic_used: number;
|
|
41
42
|
max_tunnels: number | null;
|
|
43
|
+
whitelist_ips: string | number | boolean | {
|
|
44
|
+
[x: string]: string | number | boolean | /*elided*/ any | {
|
|
45
|
+
[x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
46
|
+
length: number;
|
|
47
|
+
toString: null;
|
|
48
|
+
toLocaleString: null;
|
|
49
|
+
pop: null;
|
|
50
|
+
push: {};
|
|
51
|
+
concat: {};
|
|
52
|
+
join: {};
|
|
53
|
+
reverse: null;
|
|
54
|
+
shift: null;
|
|
55
|
+
slice: {};
|
|
56
|
+
sort: {};
|
|
57
|
+
splice: {};
|
|
58
|
+
unshift: {};
|
|
59
|
+
indexOf: {};
|
|
60
|
+
lastIndexOf: {};
|
|
61
|
+
every: {};
|
|
62
|
+
some: {};
|
|
63
|
+
forEach: {};
|
|
64
|
+
map: {};
|
|
65
|
+
filter: {};
|
|
66
|
+
reduce: {};
|
|
67
|
+
reduceRight: {};
|
|
68
|
+
find: {};
|
|
69
|
+
findIndex: {};
|
|
70
|
+
fill: {};
|
|
71
|
+
copyWithin: {};
|
|
72
|
+
entries: null;
|
|
73
|
+
keys: null;
|
|
74
|
+
values: null;
|
|
75
|
+
includes: {};
|
|
76
|
+
flatMap: {};
|
|
77
|
+
flat: {};
|
|
78
|
+
at: {};
|
|
79
|
+
[Symbol.iterator]: null;
|
|
80
|
+
readonly [Symbol.unscopables]: {
|
|
81
|
+
[x: number]: boolean | undefined;
|
|
82
|
+
length?: boolean | undefined;
|
|
83
|
+
toString?: boolean | undefined;
|
|
84
|
+
toLocaleString?: boolean | undefined;
|
|
85
|
+
pop?: boolean | undefined;
|
|
86
|
+
push?: boolean | undefined;
|
|
87
|
+
concat?: boolean | undefined;
|
|
88
|
+
join?: boolean | undefined;
|
|
89
|
+
reverse?: boolean | undefined;
|
|
90
|
+
shift?: boolean | undefined;
|
|
91
|
+
slice?: boolean | undefined;
|
|
92
|
+
sort?: boolean | undefined;
|
|
93
|
+
splice?: boolean | undefined;
|
|
94
|
+
unshift?: boolean | undefined;
|
|
95
|
+
indexOf?: boolean | undefined;
|
|
96
|
+
lastIndexOf?: boolean | undefined;
|
|
97
|
+
every?: boolean | undefined;
|
|
98
|
+
some?: boolean | undefined;
|
|
99
|
+
forEach?: boolean | undefined;
|
|
100
|
+
map?: boolean | undefined;
|
|
101
|
+
filter?: boolean | undefined;
|
|
102
|
+
reduce?: boolean | undefined;
|
|
103
|
+
reduceRight?: boolean | undefined;
|
|
104
|
+
find?: boolean | undefined;
|
|
105
|
+
findIndex?: boolean | undefined;
|
|
106
|
+
fill?: boolean | undefined;
|
|
107
|
+
copyWithin?: boolean | undefined;
|
|
108
|
+
entries?: boolean | undefined;
|
|
109
|
+
keys?: boolean | undefined;
|
|
110
|
+
values?: boolean | undefined;
|
|
111
|
+
includes?: boolean | undefined;
|
|
112
|
+
flatMap?: boolean | undefined;
|
|
113
|
+
flat?: boolean | undefined;
|
|
114
|
+
at?: boolean | undefined;
|
|
115
|
+
};
|
|
116
|
+
} | null | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
[x: number]: string | number | boolean | {
|
|
119
|
+
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
120
|
+
} | /*elided*/ any | null;
|
|
121
|
+
length: number;
|
|
122
|
+
toString: null;
|
|
123
|
+
toLocaleString: null;
|
|
124
|
+
pop: null;
|
|
125
|
+
push: {};
|
|
126
|
+
concat: {};
|
|
127
|
+
join: {};
|
|
128
|
+
reverse: null;
|
|
129
|
+
shift: null;
|
|
130
|
+
slice: {};
|
|
131
|
+
sort: {};
|
|
132
|
+
splice: {};
|
|
133
|
+
unshift: {};
|
|
134
|
+
indexOf: {};
|
|
135
|
+
lastIndexOf: {};
|
|
136
|
+
every: {};
|
|
137
|
+
some: {};
|
|
138
|
+
forEach: {};
|
|
139
|
+
map: {};
|
|
140
|
+
filter: {};
|
|
141
|
+
reduce: {};
|
|
142
|
+
reduceRight: {};
|
|
143
|
+
find: {};
|
|
144
|
+
findIndex: {};
|
|
145
|
+
fill: {};
|
|
146
|
+
copyWithin: {};
|
|
147
|
+
entries: null;
|
|
148
|
+
keys: null;
|
|
149
|
+
values: null;
|
|
150
|
+
includes: {};
|
|
151
|
+
flatMap: {};
|
|
152
|
+
flat: {};
|
|
153
|
+
at: {};
|
|
154
|
+
[Symbol.iterator]: null;
|
|
155
|
+
readonly [Symbol.unscopables]: {
|
|
156
|
+
[x: number]: boolean | undefined;
|
|
157
|
+
length?: boolean | undefined;
|
|
158
|
+
toString?: boolean | undefined;
|
|
159
|
+
toLocaleString?: boolean | undefined;
|
|
160
|
+
pop?: boolean | undefined;
|
|
161
|
+
push?: boolean | undefined;
|
|
162
|
+
concat?: boolean | undefined;
|
|
163
|
+
join?: boolean | undefined;
|
|
164
|
+
reverse?: boolean | undefined;
|
|
165
|
+
shift?: boolean | undefined;
|
|
166
|
+
slice?: boolean | undefined;
|
|
167
|
+
sort?: boolean | undefined;
|
|
168
|
+
splice?: boolean | undefined;
|
|
169
|
+
unshift?: boolean | undefined;
|
|
170
|
+
indexOf?: boolean | undefined;
|
|
171
|
+
lastIndexOf?: boolean | undefined;
|
|
172
|
+
every?: boolean | undefined;
|
|
173
|
+
some?: boolean | undefined;
|
|
174
|
+
forEach?: boolean | undefined;
|
|
175
|
+
map?: boolean | undefined;
|
|
176
|
+
filter?: boolean | undefined;
|
|
177
|
+
reduce?: boolean | undefined;
|
|
178
|
+
reduceRight?: boolean | undefined;
|
|
179
|
+
find?: boolean | undefined;
|
|
180
|
+
findIndex?: boolean | undefined;
|
|
181
|
+
fill?: boolean | undefined;
|
|
182
|
+
copyWithin?: boolean | undefined;
|
|
183
|
+
entries?: boolean | undefined;
|
|
184
|
+
keys?: boolean | undefined;
|
|
185
|
+
values?: boolean | undefined;
|
|
186
|
+
includes?: boolean | undefined;
|
|
187
|
+
flatMap?: boolean | undefined;
|
|
188
|
+
flat?: boolean | undefined;
|
|
189
|
+
at?: boolean | undefined;
|
|
190
|
+
};
|
|
191
|
+
} | null;
|
|
42
192
|
expired_at: string | null;
|
|
43
193
|
} | null;
|
|
44
194
|
id: number;
|
|
@@ -64,7 +64,6 @@ export declare const TunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
64
64
|
listen_port: z.ZodNullable<z.ZodNumber>;
|
|
65
65
|
listen_protocol: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
66
66
|
is_port_used: z.ZodBoolean;
|
|
67
|
-
white_list: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
68
67
|
forward_addresses: z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>;
|
|
69
68
|
forward_addresses_protocol: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
70
69
|
order_by: z.ZodNumber;
|
|
@@ -79,7 +78,7 @@ export declare const TunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
79
78
|
in_node_group_id: z.ZodNumber;
|
|
80
79
|
out_node_group_id: z.ZodNullable<z.ZodNumber>;
|
|
81
80
|
user_id: z.ZodNumber;
|
|
82
|
-
}, "id" | "order_by" | "created_at" | "updated_at" | "user_id" | "listen_protocol" | "is_port_used" | "
|
|
81
|
+
}, "id" | "order_by" | "created_at" | "updated_at" | "user_id" | "listen_protocol" | "is_port_used" | "forward_addresses" | "forward_addresses_protocol" | "traffic" | "traffic_cost" | "stats"> & {
|
|
83
82
|
forward_addresses: z.ZodArray<z.ZodObject<{
|
|
84
83
|
address: z.ZodString;
|
|
85
84
|
weight: z.ZodNumber;
|
|
@@ -148,7 +147,6 @@ export declare const TunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
148
147
|
username?: string | null | undefined;
|
|
149
148
|
password?: string | null | undefined;
|
|
150
149
|
} | null>;
|
|
151
|
-
white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
152
150
|
}, "strip", z.ZodTypeAny, {
|
|
153
151
|
name: string;
|
|
154
152
|
load_balance_type: "round" | "rand" | "fifo" | "hash" | "ll" | "lc";
|
|
@@ -162,7 +160,6 @@ export declare const TunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
162
160
|
username?: string | null | undefined;
|
|
163
161
|
password?: string | null | undefined;
|
|
164
162
|
} | null;
|
|
165
|
-
white_list: string[] | null;
|
|
166
163
|
forward_addresses: {
|
|
167
164
|
weight: number;
|
|
168
165
|
address: string;
|
|
@@ -196,7 +193,6 @@ export declare const TunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
196
193
|
username?: string | null | undefined;
|
|
197
194
|
password?: string | null | undefined;
|
|
198
195
|
} | null;
|
|
199
|
-
white_list: string[] | null;
|
|
200
196
|
forward_addresses: {
|
|
201
197
|
weight: number;
|
|
202
198
|
address: string;
|
|
@@ -906,7 +902,6 @@ export declare const AdminTunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
906
902
|
listen_port: z.ZodNullable<z.ZodNumber>;
|
|
907
903
|
listen_protocol: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
908
904
|
is_port_used: z.ZodBoolean;
|
|
909
|
-
white_list: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
910
905
|
forward_addresses: z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>;
|
|
911
906
|
forward_addresses_protocol: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
912
907
|
order_by: z.ZodNumber;
|
|
@@ -921,7 +916,7 @@ export declare const AdminTunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
921
916
|
in_node_group_id: z.ZodNumber;
|
|
922
917
|
out_node_group_id: z.ZodNullable<z.ZodNumber>;
|
|
923
918
|
user_id: z.ZodNumber;
|
|
924
|
-
}, "id" | "order_by" | "created_at" | "updated_at" | "user_id" | "listen_protocol" | "is_port_used" | "
|
|
919
|
+
}, "id" | "order_by" | "created_at" | "updated_at" | "user_id" | "listen_protocol" | "is_port_used" | "forward_addresses" | "forward_addresses_protocol" | "traffic" | "traffic_cost" | "stats"> & {
|
|
925
920
|
forward_addresses: z.ZodArray<z.ZodObject<{
|
|
926
921
|
address: z.ZodString;
|
|
927
922
|
weight: z.ZodNumber;
|
|
@@ -990,7 +985,6 @@ export declare const AdminTunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
990
985
|
username?: string | null | undefined;
|
|
991
986
|
password?: string | null | undefined;
|
|
992
987
|
} | null>;
|
|
993
|
-
white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
994
988
|
} & {
|
|
995
989
|
user_id: z.ZodNumber;
|
|
996
990
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1007,7 +1001,6 @@ export declare const AdminTunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
1007
1001
|
username?: string | null | undefined;
|
|
1008
1002
|
password?: string | null | undefined;
|
|
1009
1003
|
} | null;
|
|
1010
|
-
white_list: string[] | null;
|
|
1011
1004
|
forward_addresses: {
|
|
1012
1005
|
weight: number;
|
|
1013
1006
|
address: string;
|
|
@@ -1042,7 +1035,6 @@ export declare const AdminTunnelRequestSchema: z.ZodObject<Omit<{
|
|
|
1042
1035
|
username?: string | null | undefined;
|
|
1043
1036
|
password?: string | null | undefined;
|
|
1044
1037
|
} | null;
|
|
1045
|
-
white_list: string[] | null;
|
|
1046
1038
|
forward_addresses: {
|
|
1047
1039
|
weight: number;
|
|
1048
1040
|
address: string;
|
|
@@ -19,7 +19,6 @@ export declare const TunnelResponseSchemaItem: z.ZodObject<{
|
|
|
19
19
|
in_node_group_id: z.ZodNumber;
|
|
20
20
|
out_node_group_id: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
} & {
|
|
22
|
-
white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
23
22
|
user: z.ZodObject<Pick<{
|
|
24
23
|
status: z.ZodEnum<["active", "inactive"]>;
|
|
25
24
|
id: z.ZodNumber;
|
|
@@ -179,7 +178,6 @@ export declare const TunnelResponseSchemaItem: z.ZodObject<{
|
|
|
179
178
|
password: string;
|
|
180
179
|
} | null;
|
|
181
180
|
is_port_used: boolean;
|
|
182
|
-
white_list: string[] | null;
|
|
183
181
|
forward_addresses: {
|
|
184
182
|
weight: number;
|
|
185
183
|
address: string;
|
|
@@ -245,7 +243,6 @@ export declare const TunnelResponseSchemaItem: z.ZodObject<{
|
|
|
245
243
|
password: string;
|
|
246
244
|
} | null;
|
|
247
245
|
is_port_used: boolean;
|
|
248
|
-
white_list: string[] | null;
|
|
249
246
|
forward_addresses: {
|
|
250
247
|
weight: number;
|
|
251
248
|
address: string;
|
|
@@ -310,7 +307,6 @@ export declare const TunnelResponseSchema: z.ZodObject<{
|
|
|
310
307
|
in_node_group_id: z.ZodNumber;
|
|
311
308
|
out_node_group_id: z.ZodNullable<z.ZodNumber>;
|
|
312
309
|
} & {
|
|
313
|
-
white_list: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
314
310
|
user: z.ZodObject<Pick<{
|
|
315
311
|
status: z.ZodEnum<["active", "inactive"]>;
|
|
316
312
|
id: z.ZodNumber;
|
|
@@ -470,7 +466,6 @@ export declare const TunnelResponseSchema: z.ZodObject<{
|
|
|
470
466
|
password: string;
|
|
471
467
|
} | null;
|
|
472
468
|
is_port_used: boolean;
|
|
473
|
-
white_list: string[] | null;
|
|
474
469
|
forward_addresses: {
|
|
475
470
|
weight: number;
|
|
476
471
|
address: string;
|
|
@@ -536,7 +531,6 @@ export declare const TunnelResponseSchema: z.ZodObject<{
|
|
|
536
531
|
password: string;
|
|
537
532
|
} | null;
|
|
538
533
|
is_port_used: boolean;
|
|
539
|
-
white_list: string[] | null;
|
|
540
534
|
forward_addresses: {
|
|
541
535
|
weight: number;
|
|
542
536
|
address: string;
|
|
@@ -605,7 +599,6 @@ export declare const TunnelResponseSchema: z.ZodObject<{
|
|
|
605
599
|
password: string;
|
|
606
600
|
} | null;
|
|
607
601
|
is_port_used: boolean;
|
|
608
|
-
white_list: string[] | null;
|
|
609
602
|
forward_addresses: {
|
|
610
603
|
weight: number;
|
|
611
604
|
address: string;
|
|
@@ -674,7 +667,6 @@ export declare const TunnelResponseSchema: z.ZodObject<{
|
|
|
674
667
|
password: string;
|
|
675
668
|
} | null;
|
|
676
669
|
is_port_used: boolean;
|
|
677
|
-
white_list: string[] | null;
|
|
678
670
|
forward_addresses: {
|
|
679
671
|
weight: number;
|
|
680
672
|
address: string;
|
|
@@ -1476,6 +1468,7 @@ export declare const UserPlanResponseSchemaItem: z.ZodObject<{
|
|
|
1476
1468
|
traffic: z.ZodNullable<z.ZodNumber>;
|
|
1477
1469
|
traffic_used: z.ZodNumber;
|
|
1478
1470
|
max_tunnels: z.ZodNullable<z.ZodNumber>;
|
|
1471
|
+
whitelist_ips: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
1479
1472
|
expired_at: z.ZodNullable<z.ZodDate>;
|
|
1480
1473
|
created_at: z.ZodDate;
|
|
1481
1474
|
updated_at: z.ZodDate;
|
|
@@ -1517,6 +1510,7 @@ export declare const UserPlanResponseSchemaItem: z.ZodObject<{
|
|
|
1517
1510
|
traffic: z.ZodNullable<z.ZodNumber>;
|
|
1518
1511
|
ip_limit: z.ZodNullable<z.ZodNumber>;
|
|
1519
1512
|
bandwidth_limit: z.ZodNullable<z.ZodNumber>;
|
|
1513
|
+
whitelist_limit: z.ZodNullable<z.ZodNumber>;
|
|
1520
1514
|
allow_custom_in_node_group: z.ZodBoolean;
|
|
1521
1515
|
allow_custom_out_node_group: z.ZodBoolean;
|
|
1522
1516
|
all_in_node_groups: z.ZodBoolean;
|
|
@@ -1551,6 +1545,7 @@ export declare const UserPlanResponseSchemaItem: z.ZodObject<{
|
|
|
1551
1545
|
};
|
|
1552
1546
|
traffic_used: number;
|
|
1553
1547
|
max_tunnels: number | null;
|
|
1548
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1554
1549
|
expired_at: Date | null;
|
|
1555
1550
|
}, {
|
|
1556
1551
|
id: number;
|
|
@@ -1569,6 +1564,7 @@ export declare const UserPlanResponseSchemaItem: z.ZodObject<{
|
|
|
1569
1564
|
};
|
|
1570
1565
|
traffic_used: number;
|
|
1571
1566
|
max_tunnels: number | null;
|
|
1567
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1572
1568
|
expired_at: Date | null;
|
|
1573
1569
|
}>;
|
|
1574
1570
|
export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
@@ -1578,6 +1574,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1578
1574
|
traffic: z.ZodNullable<z.ZodNumber>;
|
|
1579
1575
|
traffic_used: z.ZodNumber;
|
|
1580
1576
|
max_tunnels: z.ZodNullable<z.ZodNumber>;
|
|
1577
|
+
whitelist_ips: z.ZodNullable<z.ZodType<import("../generated/prisma/client/runtime/library").JsonValue, z.ZodTypeDef, import("../generated/prisma/client/runtime/library").JsonValue>>;
|
|
1581
1578
|
expired_at: z.ZodNullable<z.ZodDate>;
|
|
1582
1579
|
created_at: z.ZodDate;
|
|
1583
1580
|
updated_at: z.ZodDate;
|
|
@@ -1619,6 +1616,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1619
1616
|
traffic: z.ZodNullable<z.ZodNumber>;
|
|
1620
1617
|
ip_limit: z.ZodNullable<z.ZodNumber>;
|
|
1621
1618
|
bandwidth_limit: z.ZodNullable<z.ZodNumber>;
|
|
1619
|
+
whitelist_limit: z.ZodNullable<z.ZodNumber>;
|
|
1622
1620
|
allow_custom_in_node_group: z.ZodBoolean;
|
|
1623
1621
|
allow_custom_out_node_group: z.ZodBoolean;
|
|
1624
1622
|
all_in_node_groups: z.ZodBoolean;
|
|
@@ -1653,6 +1651,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1653
1651
|
};
|
|
1654
1652
|
traffic_used: number;
|
|
1655
1653
|
max_tunnels: number | null;
|
|
1654
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1656
1655
|
expired_at: Date | null;
|
|
1657
1656
|
}, {
|
|
1658
1657
|
id: number;
|
|
@@ -1671,6 +1670,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1671
1670
|
};
|
|
1672
1671
|
traffic_used: number;
|
|
1673
1672
|
max_tunnels: number | null;
|
|
1673
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1674
1674
|
expired_at: Date | null;
|
|
1675
1675
|
}>, "many">;
|
|
1676
1676
|
total: z.ZodNumber;
|
|
@@ -1692,6 +1692,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1692
1692
|
};
|
|
1693
1693
|
traffic_used: number;
|
|
1694
1694
|
max_tunnels: number | null;
|
|
1695
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1695
1696
|
expired_at: Date | null;
|
|
1696
1697
|
}[];
|
|
1697
1698
|
total: number;
|
|
@@ -1713,6 +1714,7 @@ export declare const UserPlanResponseSchema: z.ZodObject<{
|
|
|
1713
1714
|
};
|
|
1714
1715
|
traffic_used: number;
|
|
1715
1716
|
max_tunnels: number | null;
|
|
1717
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue;
|
|
1716
1718
|
expired_at: Date | null;
|
|
1717
1719
|
}[];
|
|
1718
1720
|
total: number;
|
|
@@ -2103,6 +2105,7 @@ export declare const PlanSummaryResponseSchema: z.ZodArray<z.ZodObject<Pick<{
|
|
|
2103
2105
|
traffic: z.ZodNullable<z.ZodNumber>;
|
|
2104
2106
|
ip_limit: z.ZodNullable<z.ZodNumber>;
|
|
2105
2107
|
bandwidth_limit: z.ZodNullable<z.ZodNumber>;
|
|
2108
|
+
whitelist_limit: z.ZodNullable<z.ZodNumber>;
|
|
2106
2109
|
allow_custom_in_node_group: z.ZodBoolean;
|
|
2107
2110
|
allow_custom_out_node_group: z.ZodBoolean;
|
|
2108
2111
|
all_in_node_groups: z.ZodBoolean;
|
package/dist/services/plan.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class PlanService {
|
|
|
28
28
|
max_tunnels: number | null;
|
|
29
29
|
description: string | null;
|
|
30
30
|
original_price: number | null;
|
|
31
|
+
whitelist_limit: number | null;
|
|
31
32
|
allow_custom_in_node_group: boolean;
|
|
32
33
|
allow_custom_out_node_group: boolean;
|
|
33
34
|
all_in_node_groups: boolean;
|
|
@@ -46,6 +47,7 @@ export declare class PlanService {
|
|
|
46
47
|
plan_id: number;
|
|
47
48
|
traffic_used: number;
|
|
48
49
|
max_tunnels: number | null;
|
|
50
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue | null;
|
|
49
51
|
expired_at: Date | null;
|
|
50
52
|
}) | null>;
|
|
51
53
|
checkUserPlan(user: User): Promise<{
|
|
@@ -63,6 +65,7 @@ export declare class PlanService {
|
|
|
63
65
|
max_tunnels: number | null;
|
|
64
66
|
description: string | null;
|
|
65
67
|
original_price: number | null;
|
|
68
|
+
whitelist_limit: number | null;
|
|
66
69
|
allow_custom_in_node_group: boolean;
|
|
67
70
|
allow_custom_out_node_group: boolean;
|
|
68
71
|
all_in_node_groups: boolean;
|
|
@@ -81,6 +84,7 @@ export declare class PlanService {
|
|
|
81
84
|
plan_id: number;
|
|
82
85
|
traffic_used: number;
|
|
83
86
|
max_tunnels: number | null;
|
|
87
|
+
whitelist_ips: import("../generated/prisma/client/runtime/library").JsonValue | null;
|
|
84
88
|
expired_at: Date | null;
|
|
85
89
|
}>;
|
|
86
90
|
renewUsersPlan(): Promise<void>;
|
|
@@ -56,7 +56,6 @@ export declare class TunnelService {
|
|
|
56
56
|
listen_ip: string | null;
|
|
57
57
|
listen_port: number | null;
|
|
58
58
|
is_port_used: boolean;
|
|
59
|
-
white_list: Prisma.JsonValue | null;
|
|
60
59
|
ip_type: import("../generated/prisma/client").$Enums.IpType;
|
|
61
60
|
ip_limit: number | null;
|
|
62
61
|
bandwidth_limit: number | null;
|
|
@@ -119,6 +118,7 @@ export declare class TunnelService {
|
|
|
119
118
|
max_tunnels: number | null;
|
|
120
119
|
description: string | null;
|
|
121
120
|
original_price: number | null;
|
|
121
|
+
whitelist_limit: number | null;
|
|
122
122
|
allow_custom_in_node_group: boolean;
|
|
123
123
|
allow_custom_out_node_group: boolean;
|
|
124
124
|
all_in_node_groups: boolean;
|
|
@@ -137,6 +137,7 @@ export declare class TunnelService {
|
|
|
137
137
|
plan_id: number;
|
|
138
138
|
traffic_used: number;
|
|
139
139
|
max_tunnels: number | null;
|
|
140
|
+
whitelist_ips: Prisma.JsonValue | null;
|
|
140
141
|
expired_at: Date | null;
|
|
141
142
|
}) | null;
|
|
142
143
|
} & {
|
|
@@ -296,7 +297,6 @@ export declare class TunnelService {
|
|
|
296
297
|
listen_port: number | null;
|
|
297
298
|
listen_protocol: Prisma.JsonValue | null;
|
|
298
299
|
is_port_used: boolean;
|
|
299
|
-
white_list: Prisma.JsonValue | null;
|
|
300
300
|
forward_addresses: Prisma.JsonValue;
|
|
301
301
|
forward_addresses_protocol: Prisma.JsonValue | null;
|
|
302
302
|
ip_type: import("../generated/prisma/client").$Enums.IpType;
|
|
@@ -359,6 +359,7 @@ export declare class TunnelService {
|
|
|
359
359
|
max_tunnels: number | null;
|
|
360
360
|
description: string | null;
|
|
361
361
|
original_price: number | null;
|
|
362
|
+
whitelist_limit: number | null;
|
|
362
363
|
allow_custom_in_node_group: boolean;
|
|
363
364
|
allow_custom_out_node_group: boolean;
|
|
364
365
|
all_in_node_groups: boolean;
|
|
@@ -377,6 +378,7 @@ export declare class TunnelService {
|
|
|
377
378
|
plan_id: number;
|
|
378
379
|
traffic_used: number;
|
|
379
380
|
max_tunnels: number | null;
|
|
381
|
+
whitelist_ips: Prisma.JsonValue | null;
|
|
380
382
|
expired_at: Date | null;
|
|
381
383
|
}) | null;
|
|
382
384
|
} & {
|
|
@@ -490,7 +492,6 @@ export declare class TunnelService {
|
|
|
490
492
|
listen_port: number | null;
|
|
491
493
|
listen_protocol: Prisma.JsonValue | null;
|
|
492
494
|
is_port_used: boolean;
|
|
493
|
-
white_list: Prisma.JsonValue | null;
|
|
494
495
|
forward_addresses: Prisma.JsonValue;
|
|
495
496
|
forward_addresses_protocol: Prisma.JsonValue | null;
|
|
496
497
|
ip_type: import("../generated/prisma/client").$Enums.IpType;
|
|
@@ -648,7 +649,7 @@ export declare class TunnelService {
|
|
|
648
649
|
};
|
|
649
650
|
name: string;
|
|
650
651
|
bypass: string | undefined;
|
|
651
|
-
admission: string
|
|
652
|
+
admission: string;
|
|
652
653
|
handler: {
|
|
653
654
|
type: string;
|
|
654
655
|
chain: string | undefined;
|
|
@@ -696,7 +697,7 @@ export declare class TunnelService {
|
|
|
696
697
|
};
|
|
697
698
|
name: string;
|
|
698
699
|
bypass: string | undefined;
|
|
699
|
-
admission: string
|
|
700
|
+
admission: string;
|
|
700
701
|
handler: {
|
|
701
702
|
type: string;
|
|
702
703
|
chain: string | undefined;
|
|
@@ -954,7 +955,7 @@ export declare class TunnelService {
|
|
|
954
955
|
};
|
|
955
956
|
name: string;
|
|
956
957
|
bypass: string | undefined;
|
|
957
|
-
admission: string
|
|
958
|
+
admission: string;
|
|
958
959
|
handler: {
|
|
959
960
|
type: string;
|
|
960
961
|
chain: string | undefined;
|
|
@@ -1002,7 +1003,7 @@ export declare class TunnelService {
|
|
|
1002
1003
|
};
|
|
1003
1004
|
name: string;
|
|
1004
1005
|
bypass: string | undefined;
|
|
1005
|
-
admission: string
|
|
1006
|
+
admission: string;
|
|
1006
1007
|
handler: {
|
|
1007
1008
|
type: string;
|
|
1008
1009
|
chain: string | undefined;
|