@long2ice/relayx-backend 0.0.2 → 0.0.4
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 +381 -347
- package/dist/generated/prisma/zod/index.d.ts +9 -6
- package/dist/routes/admin/node.d.ts +1 -0
- package/dist/routes/admin/plan.d.ts +3 -0
- package/dist/routes/admin/tunnel.d.ts +2 -151
- package/dist/routes/admin/user_plan.d.ts +149 -0
- package/dist/routes/node.d.ts +1 -0
- package/dist/routes/plan.d.ts +2 -0
- package/dist/routes/tunnel.d.ts +28 -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/node.d.ts +1 -0
- package/dist/services/plan.d.ts +4 -0
- package/dist/services/stackauth.d.ts +5 -0
- package/dist/services/tunnel.d.ts +10 -7
- package/package.json +2 -2
package/dist/routes/tunnel.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
46
46
|
};
|
|
47
47
|
in_node_group: {
|
|
48
48
|
name: string;
|
|
49
|
+
id: number;
|
|
49
50
|
connect_ip: string | null;
|
|
50
51
|
admission: boolean;
|
|
51
52
|
traffic_rate: number;
|
|
@@ -55,6 +56,7 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
55
56
|
};
|
|
56
57
|
out_node_group: {
|
|
57
58
|
name: string;
|
|
59
|
+
id: number;
|
|
58
60
|
traffic_rate: number;
|
|
59
61
|
} | null;
|
|
60
62
|
name: string;
|
|
@@ -70,155 +72,6 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
70
72
|
listen_ip: string | null;
|
|
71
73
|
listen_port: number | null;
|
|
72
74
|
is_port_used: boolean;
|
|
73
|
-
white_list: string | number | boolean | {
|
|
74
|
-
[x: string]: string | number | boolean | /*elided*/ any | {
|
|
75
|
-
[x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
76
|
-
length: number;
|
|
77
|
-
toString: null;
|
|
78
|
-
toLocaleString: null;
|
|
79
|
-
pop: null;
|
|
80
|
-
push: {};
|
|
81
|
-
concat: {};
|
|
82
|
-
join: {};
|
|
83
|
-
reverse: null;
|
|
84
|
-
shift: null;
|
|
85
|
-
slice: {};
|
|
86
|
-
sort: {};
|
|
87
|
-
splice: {};
|
|
88
|
-
unshift: {};
|
|
89
|
-
indexOf: {};
|
|
90
|
-
lastIndexOf: {};
|
|
91
|
-
every: {};
|
|
92
|
-
some: {};
|
|
93
|
-
forEach: {};
|
|
94
|
-
map: {};
|
|
95
|
-
filter: {};
|
|
96
|
-
reduce: {};
|
|
97
|
-
reduceRight: {};
|
|
98
|
-
find: {};
|
|
99
|
-
findIndex: {};
|
|
100
|
-
fill: {};
|
|
101
|
-
copyWithin: {};
|
|
102
|
-
entries: null;
|
|
103
|
-
keys: null;
|
|
104
|
-
values: null;
|
|
105
|
-
includes: {};
|
|
106
|
-
flatMap: {};
|
|
107
|
-
flat: {};
|
|
108
|
-
at: {};
|
|
109
|
-
[Symbol.iterator]: null;
|
|
110
|
-
readonly [Symbol.unscopables]: {
|
|
111
|
-
[x: number]: boolean | undefined;
|
|
112
|
-
length?: boolean | undefined;
|
|
113
|
-
toString?: boolean | undefined;
|
|
114
|
-
toLocaleString?: boolean | undefined;
|
|
115
|
-
pop?: boolean | undefined;
|
|
116
|
-
push?: boolean | undefined;
|
|
117
|
-
concat?: boolean | undefined;
|
|
118
|
-
join?: boolean | undefined;
|
|
119
|
-
reverse?: boolean | undefined;
|
|
120
|
-
shift?: boolean | undefined;
|
|
121
|
-
slice?: boolean | undefined;
|
|
122
|
-
sort?: boolean | undefined;
|
|
123
|
-
splice?: boolean | undefined;
|
|
124
|
-
unshift?: boolean | undefined;
|
|
125
|
-
indexOf?: boolean | undefined;
|
|
126
|
-
lastIndexOf?: boolean | undefined;
|
|
127
|
-
every?: boolean | undefined;
|
|
128
|
-
some?: boolean | undefined;
|
|
129
|
-
forEach?: boolean | undefined;
|
|
130
|
-
map?: boolean | undefined;
|
|
131
|
-
filter?: boolean | undefined;
|
|
132
|
-
reduce?: boolean | undefined;
|
|
133
|
-
reduceRight?: boolean | undefined;
|
|
134
|
-
find?: boolean | undefined;
|
|
135
|
-
findIndex?: boolean | undefined;
|
|
136
|
-
fill?: boolean | undefined;
|
|
137
|
-
copyWithin?: boolean | undefined;
|
|
138
|
-
entries?: boolean | undefined;
|
|
139
|
-
keys?: boolean | undefined;
|
|
140
|
-
values?: boolean | undefined;
|
|
141
|
-
includes?: boolean | undefined;
|
|
142
|
-
flatMap?: boolean | undefined;
|
|
143
|
-
flat?: boolean | undefined;
|
|
144
|
-
at?: boolean | undefined;
|
|
145
|
-
};
|
|
146
|
-
} | null | undefined;
|
|
147
|
-
} | {
|
|
148
|
-
[x: number]: string | number | boolean | {
|
|
149
|
-
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
150
|
-
} | /*elided*/ any | null;
|
|
151
|
-
length: number;
|
|
152
|
-
toString: null;
|
|
153
|
-
toLocaleString: null;
|
|
154
|
-
pop: null;
|
|
155
|
-
push: {};
|
|
156
|
-
concat: {};
|
|
157
|
-
join: {};
|
|
158
|
-
reverse: null;
|
|
159
|
-
shift: null;
|
|
160
|
-
slice: {};
|
|
161
|
-
sort: {};
|
|
162
|
-
splice: {};
|
|
163
|
-
unshift: {};
|
|
164
|
-
indexOf: {};
|
|
165
|
-
lastIndexOf: {};
|
|
166
|
-
every: {};
|
|
167
|
-
some: {};
|
|
168
|
-
forEach: {};
|
|
169
|
-
map: {};
|
|
170
|
-
filter: {};
|
|
171
|
-
reduce: {};
|
|
172
|
-
reduceRight: {};
|
|
173
|
-
find: {};
|
|
174
|
-
findIndex: {};
|
|
175
|
-
fill: {};
|
|
176
|
-
copyWithin: {};
|
|
177
|
-
entries: null;
|
|
178
|
-
keys: null;
|
|
179
|
-
values: null;
|
|
180
|
-
includes: {};
|
|
181
|
-
flatMap: {};
|
|
182
|
-
flat: {};
|
|
183
|
-
at: {};
|
|
184
|
-
[Symbol.iterator]: null;
|
|
185
|
-
readonly [Symbol.unscopables]: {
|
|
186
|
-
[x: number]: boolean | undefined;
|
|
187
|
-
length?: boolean | undefined;
|
|
188
|
-
toString?: boolean | undefined;
|
|
189
|
-
toLocaleString?: boolean | undefined;
|
|
190
|
-
pop?: boolean | undefined;
|
|
191
|
-
push?: boolean | undefined;
|
|
192
|
-
concat?: boolean | undefined;
|
|
193
|
-
join?: boolean | undefined;
|
|
194
|
-
reverse?: boolean | undefined;
|
|
195
|
-
shift?: boolean | undefined;
|
|
196
|
-
slice?: boolean | undefined;
|
|
197
|
-
sort?: boolean | undefined;
|
|
198
|
-
splice?: boolean | undefined;
|
|
199
|
-
unshift?: boolean | undefined;
|
|
200
|
-
indexOf?: boolean | undefined;
|
|
201
|
-
lastIndexOf?: boolean | undefined;
|
|
202
|
-
every?: boolean | undefined;
|
|
203
|
-
some?: boolean | undefined;
|
|
204
|
-
forEach?: boolean | undefined;
|
|
205
|
-
map?: boolean | undefined;
|
|
206
|
-
filter?: boolean | undefined;
|
|
207
|
-
reduce?: boolean | undefined;
|
|
208
|
-
reduceRight?: boolean | undefined;
|
|
209
|
-
find?: boolean | undefined;
|
|
210
|
-
findIndex?: boolean | undefined;
|
|
211
|
-
fill?: boolean | undefined;
|
|
212
|
-
copyWithin?: boolean | undefined;
|
|
213
|
-
entries?: boolean | undefined;
|
|
214
|
-
keys?: boolean | undefined;
|
|
215
|
-
values?: boolean | undefined;
|
|
216
|
-
includes?: boolean | undefined;
|
|
217
|
-
flatMap?: boolean | undefined;
|
|
218
|
-
flat?: boolean | undefined;
|
|
219
|
-
at?: boolean | undefined;
|
|
220
|
-
};
|
|
221
|
-
} | null;
|
|
222
75
|
ip_type: import("../generated/prisma/client").$Enums.IpType;
|
|
223
76
|
ip_limit: number | null;
|
|
224
77
|
bandwidth_limit: number | null;
|
|
@@ -412,7 +265,6 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
412
265
|
username?: string | null | undefined;
|
|
413
266
|
password?: string | null | undefined;
|
|
414
267
|
} | null;
|
|
415
|
-
white_list: string[] | null;
|
|
416
268
|
forward_addresses: {
|
|
417
269
|
weight: number;
|
|
418
270
|
address: string;
|
|
@@ -517,7 +369,6 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
517
369
|
username?: string | null | undefined;
|
|
518
370
|
password?: string | null | undefined;
|
|
519
371
|
} | null;
|
|
520
|
-
white_list: string[] | null;
|
|
521
372
|
forward_addresses: {
|
|
522
373
|
weight: number;
|
|
523
374
|
address: string;
|
|
@@ -632,6 +483,32 @@ declare const app: import("hono/hono-base").HonoBase<{
|
|
|
632
483
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
633
484
|
};
|
|
634
485
|
};
|
|
486
|
+
} & {
|
|
487
|
+
"/whitelist": {
|
|
488
|
+
$get: {
|
|
489
|
+
input: {};
|
|
490
|
+
output: {
|
|
491
|
+
whitelist_ips: string[];
|
|
492
|
+
whitelist_limit: number | null;
|
|
493
|
+
my_ip: string;
|
|
494
|
+
};
|
|
495
|
+
outputFormat: "json";
|
|
496
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
} & {
|
|
500
|
+
"/whitelist": {
|
|
501
|
+
$put: {
|
|
502
|
+
input: {
|
|
503
|
+
json: {
|
|
504
|
+
whitelist_ips: string[];
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
output: null;
|
|
508
|
+
outputFormat: "body";
|
|
509
|
+
status: 204;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
635
512
|
} & {
|
|
636
513
|
"/:id/test": {
|
|
637
514
|
$get: {
|
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/node.d.ts
CHANGED
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>;
|
|
@@ -13,6 +13,11 @@ export interface UpdateUserRequest {
|
|
|
13
13
|
export interface UserMeResponse {
|
|
14
14
|
id: string;
|
|
15
15
|
primary_email: string;
|
|
16
|
+
primary_email_verified: boolean;
|
|
17
|
+
is_restricted: boolean;
|
|
18
|
+
restricted_reason: string;
|
|
19
|
+
restricted_by_admin: boolean;
|
|
20
|
+
restricted_by_admin_reason: string;
|
|
16
21
|
}
|
|
17
22
|
export declare class StackAuthService {
|
|
18
23
|
private readonly http;
|