@remnawave/backend-contract 2.1.15 → 2.1.17
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/build/backend/commands/hosts/create.command.js +1 -1
- package/build/backend/commands/hosts/update.command.js +1 -1
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +35 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +5 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +28 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +4 -0
- package/build/frontend/commands/hosts/create.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +1 -1
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +5 -0
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +4 -0
- package/package.json +1 -1
@@ -58,7 +58,7 @@ var CreateHostCommand;
|
|
58
58
|
.describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
|
59
59
|
isHidden: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
60
60
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
61
|
-
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(
|
61
|
+
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
62
62
|
});
|
63
63
|
CreateHostCommand.ResponseSchema = zod_1.z.object({
|
64
64
|
response: models_1.HostsSchema,
|
@@ -63,7 +63,7 @@ var UpdateHostCommand;
|
|
63
63
|
.describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
|
64
64
|
isHidden: zod_1.z.optional(zod_1.z.boolean()),
|
65
65
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean()),
|
66
|
-
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(
|
66
|
+
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
67
67
|
});
|
68
68
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
69
69
|
response: models_1.HostsSchema,
|
@@ -26,6 +26,10 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
26
26
|
daysLeft: z.ZodNumber;
|
27
27
|
trafficUsed: z.ZodString;
|
28
28
|
trafficLimit: z.ZodString;
|
29
|
+
lifetimeTrafficUsed: z.ZodString;
|
30
|
+
trafficUsedBytes: z.ZodString;
|
31
|
+
trafficLimitBytes: z.ZodString;
|
32
|
+
lifetimeTrafficUsedBytes: z.ZodString;
|
29
33
|
username: z.ZodString;
|
30
34
|
expiresAt: z.ZodEffects<z.ZodString, Date, string>;
|
31
35
|
isActive: z.ZodBoolean;
|
@@ -41,23 +45,34 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
41
45
|
readonly WEEK: "WEEK";
|
42
46
|
readonly MONTH: "MONTH";
|
43
47
|
}>;
|
48
|
+
tag: z.ZodNullable<z.ZodString>;
|
44
49
|
}, "strip", z.ZodTypeAny, {
|
45
50
|
username: string;
|
51
|
+
tag: string | null;
|
46
52
|
shortUuid: string;
|
53
|
+
trafficLimitBytes: string;
|
47
54
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
55
|
+
trafficUsedBytes: string;
|
48
56
|
daysLeft: number;
|
49
57
|
trafficUsed: string;
|
50
58
|
trafficLimit: string;
|
59
|
+
lifetimeTrafficUsed: string;
|
60
|
+
lifetimeTrafficUsedBytes: string;
|
51
61
|
expiresAt: Date;
|
52
62
|
isActive: boolean;
|
53
63
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
54
64
|
}, {
|
55
65
|
username: string;
|
66
|
+
tag: string | null;
|
56
67
|
shortUuid: string;
|
68
|
+
trafficLimitBytes: string;
|
57
69
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
70
|
+
trafficUsedBytes: string;
|
58
71
|
daysLeft: number;
|
59
72
|
trafficUsed: string;
|
60
73
|
trafficLimit: string;
|
74
|
+
lifetimeTrafficUsed: string;
|
75
|
+
lifetimeTrafficUsedBytes: string;
|
61
76
|
expiresAt: string;
|
62
77
|
isActive: boolean;
|
63
78
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -244,11 +259,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
244
259
|
subscriptionUrl: string;
|
245
260
|
user: {
|
246
261
|
username: string;
|
262
|
+
tag: string | null;
|
247
263
|
shortUuid: string;
|
264
|
+
trafficLimitBytes: string;
|
248
265
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
266
|
+
trafficUsedBytes: string;
|
249
267
|
daysLeft: number;
|
250
268
|
trafficUsed: string;
|
251
269
|
trafficLimit: string;
|
270
|
+
lifetimeTrafficUsed: string;
|
271
|
+
lifetimeTrafficUsedBytes: string;
|
252
272
|
expiresAt: Date;
|
253
273
|
isActive: boolean;
|
254
274
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -304,11 +324,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
304
324
|
subscriptionUrl: string;
|
305
325
|
user: {
|
306
326
|
username: string;
|
327
|
+
tag: string | null;
|
307
328
|
shortUuid: string;
|
329
|
+
trafficLimitBytes: string;
|
308
330
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
331
|
+
trafficUsedBytes: string;
|
309
332
|
daysLeft: number;
|
310
333
|
trafficUsed: string;
|
311
334
|
trafficLimit: string;
|
335
|
+
lifetimeTrafficUsed: string;
|
336
|
+
lifetimeTrafficUsedBytes: string;
|
312
337
|
expiresAt: string;
|
313
338
|
isActive: boolean;
|
314
339
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -366,11 +391,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
366
391
|
subscriptionUrl: string;
|
367
392
|
user: {
|
368
393
|
username: string;
|
394
|
+
tag: string | null;
|
369
395
|
shortUuid: string;
|
396
|
+
trafficLimitBytes: string;
|
370
397
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
398
|
+
trafficUsedBytes: string;
|
371
399
|
daysLeft: number;
|
372
400
|
trafficUsed: string;
|
373
401
|
trafficLimit: string;
|
402
|
+
lifetimeTrafficUsed: string;
|
403
|
+
lifetimeTrafficUsedBytes: string;
|
374
404
|
expiresAt: Date;
|
375
405
|
isActive: boolean;
|
376
406
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -428,11 +458,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
428
458
|
subscriptionUrl: string;
|
429
459
|
user: {
|
430
460
|
username: string;
|
461
|
+
tag: string | null;
|
431
462
|
shortUuid: string;
|
463
|
+
trafficLimitBytes: string;
|
432
464
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
465
|
+
trafficUsedBytes: string;
|
433
466
|
daysLeft: number;
|
434
467
|
trafficUsed: string;
|
435
468
|
trafficLimit: string;
|
469
|
+
lifetimeTrafficUsed: string;
|
470
|
+
lifetimeTrafficUsedBytes: string;
|
436
471
|
expiresAt: string;
|
437
472
|
isActive: boolean;
|
438
473
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsFzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -27,6 +27,10 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
27
27
|
daysLeft: zod_1.z.number(),
|
28
28
|
trafficUsed: zod_1.z.string(),
|
29
29
|
trafficLimit: zod_1.z.string(),
|
30
|
+
lifetimeTrafficUsed: zod_1.z.string(),
|
31
|
+
trafficUsedBytes: zod_1.z.string(),
|
32
|
+
trafficLimitBytes: zod_1.z.string(),
|
33
|
+
lifetimeTrafficUsedBytes: zod_1.z.string(),
|
30
34
|
username: zod_1.z.string(),
|
31
35
|
expiresAt: zod_1.z
|
32
36
|
.string()
|
@@ -35,6 +39,7 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
35
39
|
isActive: zod_1.z.boolean(),
|
36
40
|
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
37
41
|
trafficLimitStrategy: zod_1.z.nativeEnum(constants_1.RESET_PERIODS),
|
42
|
+
tag: zod_1.z.nullable(zod_1.z.string()),
|
38
43
|
}),
|
39
44
|
subscriptionUrl: zod_1.z.string(),
|
40
45
|
rawHosts: zod_1.z.array(zod_1.z.object({
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts
CHANGED
@@ -19,6 +19,10 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
19
19
|
daysLeft: z.ZodNumber;
|
20
20
|
trafficUsed: z.ZodString;
|
21
21
|
trafficLimit: z.ZodString;
|
22
|
+
lifetimeTrafficUsed: z.ZodString;
|
23
|
+
trafficUsedBytes: z.ZodString;
|
24
|
+
trafficLimitBytes: z.ZodString;
|
25
|
+
lifetimeTrafficUsedBytes: z.ZodString;
|
22
26
|
username: z.ZodString;
|
23
27
|
expiresAt: z.ZodEffects<z.ZodString, Date, string>;
|
24
28
|
isActive: z.ZodBoolean;
|
@@ -37,20 +41,28 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
37
41
|
}, "strip", z.ZodTypeAny, {
|
38
42
|
username: string;
|
39
43
|
shortUuid: string;
|
44
|
+
trafficLimitBytes: string;
|
40
45
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
46
|
+
trafficUsedBytes: string;
|
41
47
|
daysLeft: number;
|
42
48
|
trafficUsed: string;
|
43
49
|
trafficLimit: string;
|
50
|
+
lifetimeTrafficUsed: string;
|
51
|
+
lifetimeTrafficUsedBytes: string;
|
44
52
|
expiresAt: Date;
|
45
53
|
isActive: boolean;
|
46
54
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
47
55
|
}, {
|
48
56
|
username: string;
|
49
57
|
shortUuid: string;
|
58
|
+
trafficLimitBytes: string;
|
50
59
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
60
|
+
trafficUsedBytes: string;
|
51
61
|
daysLeft: number;
|
52
62
|
trafficUsed: string;
|
53
63
|
trafficLimit: string;
|
64
|
+
lifetimeTrafficUsed: string;
|
65
|
+
lifetimeTrafficUsedBytes: string;
|
54
66
|
expiresAt: string;
|
55
67
|
isActive: boolean;
|
56
68
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -73,10 +85,14 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
73
85
|
user: {
|
74
86
|
username: string;
|
75
87
|
shortUuid: string;
|
88
|
+
trafficLimitBytes: string;
|
76
89
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
90
|
+
trafficUsedBytes: string;
|
77
91
|
daysLeft: number;
|
78
92
|
trafficUsed: string;
|
79
93
|
trafficLimit: string;
|
94
|
+
lifetimeTrafficUsed: string;
|
95
|
+
lifetimeTrafficUsedBytes: string;
|
80
96
|
expiresAt: Date;
|
81
97
|
isActive: boolean;
|
82
98
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -92,10 +108,14 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
92
108
|
user: {
|
93
109
|
username: string;
|
94
110
|
shortUuid: string;
|
111
|
+
trafficLimitBytes: string;
|
95
112
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
113
|
+
trafficUsedBytes: string;
|
96
114
|
daysLeft: number;
|
97
115
|
trafficUsed: string;
|
98
116
|
trafficLimit: string;
|
117
|
+
lifetimeTrafficUsed: string;
|
118
|
+
lifetimeTrafficUsedBytes: string;
|
99
119
|
expiresAt: string;
|
100
120
|
isActive: boolean;
|
101
121
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -113,10 +133,14 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
113
133
|
user: {
|
114
134
|
username: string;
|
115
135
|
shortUuid: string;
|
136
|
+
trafficLimitBytes: string;
|
116
137
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
138
|
+
trafficUsedBytes: string;
|
117
139
|
daysLeft: number;
|
118
140
|
trafficUsed: string;
|
119
141
|
trafficLimit: string;
|
142
|
+
lifetimeTrafficUsed: string;
|
143
|
+
lifetimeTrafficUsedBytes: string;
|
120
144
|
expiresAt: Date;
|
121
145
|
isActive: boolean;
|
122
146
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -134,10 +158,14 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
134
158
|
user: {
|
135
159
|
username: string;
|
136
160
|
shortUuid: string;
|
161
|
+
trafficLimitBytes: string;
|
137
162
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
163
|
+
trafficUsedBytes: string;
|
138
164
|
daysLeft: number;
|
139
165
|
trafficUsed: string;
|
140
166
|
trafficLimit: string;
|
167
|
+
lifetimeTrafficUsed: string;
|
168
|
+
lifetimeTrafficUsedBytes: string;
|
141
169
|
expiresAt: string;
|
142
170
|
isActive: boolean;
|
143
171
|
userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -22,6 +22,10 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
22
22
|
daysLeft: zod_1.z.number(),
|
23
23
|
trafficUsed: zod_1.z.string(),
|
24
24
|
trafficLimit: zod_1.z.string(),
|
25
|
+
lifetimeTrafficUsed: zod_1.z.string(),
|
26
|
+
trafficUsedBytes: zod_1.z.string(),
|
27
|
+
trafficLimitBytes: zod_1.z.string(),
|
28
|
+
lifetimeTrafficUsedBytes: zod_1.z.string(),
|
25
29
|
username: zod_1.z.string(),
|
26
30
|
expiresAt: zod_1.z
|
27
31
|
.string()
|
@@ -58,7 +58,7 @@ var CreateHostCommand;
|
|
58
58
|
.describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
|
59
59
|
isHidden: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
60
60
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
61
|
-
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(
|
61
|
+
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
62
62
|
});
|
63
63
|
CreateHostCommand.ResponseSchema = zod_1.z.object({
|
64
64
|
response: models_1.HostsSchema,
|
@@ -63,7 +63,7 @@ var UpdateHostCommand;
|
|
63
63
|
.describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
|
64
64
|
isHidden: zod_1.z.optional(zod_1.z.boolean()),
|
65
65
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean()),
|
66
|
-
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(
|
66
|
+
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
67
67
|
});
|
68
68
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
69
69
|
response: models_1.HostsSchema,
|
@@ -27,6 +27,10 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
27
27
|
daysLeft: zod_1.z.number(),
|
28
28
|
trafficUsed: zod_1.z.string(),
|
29
29
|
trafficLimit: zod_1.z.string(),
|
30
|
+
lifetimeTrafficUsed: zod_1.z.string(),
|
31
|
+
trafficUsedBytes: zod_1.z.string(),
|
32
|
+
trafficLimitBytes: zod_1.z.string(),
|
33
|
+
lifetimeTrafficUsedBytes: zod_1.z.string(),
|
30
34
|
username: zod_1.z.string(),
|
31
35
|
expiresAt: zod_1.z
|
32
36
|
.string()
|
@@ -35,6 +39,7 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
35
39
|
isActive: zod_1.z.boolean(),
|
36
40
|
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
37
41
|
trafficLimitStrategy: zod_1.z.nativeEnum(constants_1.RESET_PERIODS),
|
42
|
+
tag: zod_1.z.nullable(zod_1.z.string()),
|
38
43
|
}),
|
39
44
|
subscriptionUrl: zod_1.z.string(),
|
40
45
|
rawHosts: zod_1.z.array(zod_1.z.object({
|
@@ -22,6 +22,10 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
22
22
|
daysLeft: zod_1.z.number(),
|
23
23
|
trafficUsed: zod_1.z.string(),
|
24
24
|
trafficLimit: zod_1.z.string(),
|
25
|
+
lifetimeTrafficUsed: zod_1.z.string(),
|
26
|
+
trafficUsedBytes: zod_1.z.string(),
|
27
|
+
trafficLimitBytes: zod_1.z.string(),
|
28
|
+
lifetimeTrafficUsedBytes: zod_1.z.string(),
|
25
29
|
username: zod_1.z.string(),
|
26
30
|
expiresAt: zod_1.z
|
27
31
|
.string()
|