@remnawave/backend-contract 3.2.1 → 3.2.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/build/backend/api/controllers/snippets.d.ts +3 -0
- package/build/backend/api/controllers/snippets.d.ts.map +1 -1
- package/build/backend/api/controllers/snippets.js +4 -0
- package/build/backend/api/routes.d.ts +3 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +3 -0
- package/build/backend/commands/snippets/actions/index.d.ts +2 -0
- package/build/backend/commands/snippets/actions/index.d.ts.map +1 -0
- package/build/backend/commands/snippets/actions/index.js +17 -0
- package/build/backend/commands/snippets/actions/sync.command.d.ts +11 -0
- package/build/backend/commands/snippets/actions/sync.command.d.ts.map +1 -0
- package/build/backend/commands/snippets/actions/sync.command.js +19 -0
- package/build/backend/commands/snippets/index.d.ts +1 -0
- package/build/backend/commands/snippets/index.d.ts.map +1 -1
- package/build/backend/commands/snippets/index.js +1 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +2 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/extend-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +2 -2
- package/build/backend/commands/users/create-user.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +1 -1
- package/build/backend/commands/users/get-user-by-id.command.d.ts +1 -1
- package/build/backend/commands/users/get-users-stream.command.d.ts +1 -1
- package/build/backend/commands/users/get-users.command.d.ts +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +1 -1
- package/build/backend/commands/users/user.response.d.ts +1 -1
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/models/extended-users.schema.d.ts +1 -1
- package/build/backend/models/resolved-proxy-config.schema.d.ts +3 -0
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.js +1 -0
- package/build/backend/models/users.schema.d.ts +1 -1
- package/build/backend/models/users.schema.js +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +6 -6
- package/build/frontend/api/controllers/snippets.js +4 -0
- package/build/frontend/api/routes.js +3 -0
- package/build/frontend/commands/snippets/actions/index.js +17 -0
- package/build/frontend/commands/snippets/actions/sync.command.js +19 -0
- package/build/frontend/commands/snippets/index.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/resolved-proxy-config.schema.js +1 -0
- package/build/frontend/models/users.schema.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../../../api/controllers/snippets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../../../api/controllers/snippets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAIvD,eAAO,MAAM,eAAe;;;;;;;;CASlB,CAAC"}
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SNIPPETS_ROUTES = exports.SNIPPETS_CONTROLLER = void 0;
|
|
4
4
|
exports.SNIPPETS_CONTROLLER = 'snippets';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
5
6
|
exports.SNIPPETS_ROUTES = {
|
|
6
7
|
GET: '', // Get list of all snippets // get
|
|
7
8
|
CREATE: '', // Create new snippet // post
|
|
8
9
|
UPDATE: '', // Update snippet by name // patch
|
|
9
10
|
DELETE: '', // Delete snippet by name // delete
|
|
11
|
+
ACTIONS: {
|
|
12
|
+
SYNC: `${ACTIONS_ROUTE}/sync`, // post
|
|
13
|
+
},
|
|
10
14
|
};
|
|
@@ -231,6 +231,9 @@ export declare const REST_API: {
|
|
|
231
231
|
readonly CREATE: "/api/snippets/";
|
|
232
232
|
readonly UPDATE: "/api/snippets/";
|
|
233
233
|
readonly DELETE: "/api/snippets/";
|
|
234
|
+
readonly ACTIONS: {
|
|
235
|
+
readonly SYNC: "/api/snippets/actions/sync";
|
|
236
|
+
};
|
|
234
237
|
};
|
|
235
238
|
readonly EXTERNAL_SQUADS: {
|
|
236
239
|
readonly GET: "/api/external-squads/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAE9C,eAAO,MAAM,kBAAkB,EAAG,gBAAyB,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAG,uBAAgC,CAAC;AAC/D,eAAO,MAAM,YAAY,EAAG,wBAAiC,CAAC;AAC9D,eAAO,MAAM,WAAW,EAAG,uBAAgC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;;;qCAcD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;;kCAkBf,MAAM;qCAGH,MAAM;4CAEC,MAAM;wDAEM,MAAM;;u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ROUTES.UPDATE}`,
|
|
270
270
|
DELETE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.DELETE}`,
|
|
271
|
+
ACTIONS: {
|
|
272
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.ACTIONS.SYNC}`,
|
|
273
|
+
},
|
|
271
274
|
},
|
|
272
275
|
EXTERNAL_SQUADS: {
|
|
273
276
|
GET: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET}`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/snippets/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./sync.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SyncSnippetCommand {
|
|
3
|
+
const url: "/api/snippets/actions/sync";
|
|
4
|
+
const TSQ_url: "/api/snippets/actions/sync";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestBodySchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=sync.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../../../commands/snippets/actions/sync.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,iBAAiB;;qBAS5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncSnippetCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SyncSnippetCommand;
|
|
8
|
+
(function (SyncSnippetCommand) {
|
|
9
|
+
SyncSnippetCommand.url = api_1.REST_API.SNIPPETS.ACTIONS.SYNC;
|
|
10
|
+
SyncSnippetCommand.TSQ_url = SyncSnippetCommand.url;
|
|
11
|
+
SyncSnippetCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SNIPPETS_ROUTES.ACTIONS.SYNC, 'post', 'Sync snippet to affected config profiles', { scope: 'sync', kind: 'write' }, 'Trigger the sync of a snippet to all config profiles that reference it. Nodes which use affected config profiles will be restarted.');
|
|
12
|
+
SyncSnippetCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
name: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.min(2, 'Name must be at least 2 characters')
|
|
16
|
+
.max(255, 'Name must be less than 255 characters')
|
|
17
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
18
|
+
});
|
|
19
|
+
})(SyncSnippetCommand || (exports.SyncSnippetCommand = SyncSnippetCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actions"), exports);
|
|
17
18
|
__exportStar(require("./create-snippet.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-snippet.command"), exports);
|
|
19
20
|
__exportStar(require("./get-snippets.command"), exports);
|
package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
37
37
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
38
38
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
39
39
|
trojanPassword: z.ZodString;
|
|
40
|
-
vlessUuid: z.
|
|
40
|
+
vlessUuid: z.ZodGUID;
|
|
41
41
|
ssPassword: z.ZodString;
|
|
42
42
|
lastTriggeredThreshold: z.ZodInt;
|
|
43
43
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -171,6 +171,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
171
171
|
echConfigList: z.ZodNullable<z.ZodString>;
|
|
172
172
|
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
173
173
|
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
174
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
174
175
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
176
|
fingerprint: z.ZodString;
|
|
176
177
|
publicKey: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/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,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/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,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -33,7 +33,7 @@ export declare namespace DisableUserCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace EnableUserCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -36,7 +36,7 @@ export declare namespace ExtendUserCommand {
|
|
|
36
36
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
37
37
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
38
38
|
trojanPassword: z.ZodString;
|
|
39
|
-
vlessUuid: z.
|
|
39
|
+
vlessUuid: z.ZodGUID;
|
|
40
40
|
ssPassword: z.ZodString;
|
|
41
41
|
lastTriggeredThreshold: z.ZodInt;
|
|
42
42
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -37,7 +37,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
37
37
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
38
38
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
39
39
|
trojanPassword: z.ZodString;
|
|
40
|
-
vlessUuid: z.
|
|
40
|
+
vlessUuid: z.ZodGUID;
|
|
41
41
|
ssPassword: z.ZodString;
|
|
42
42
|
lastTriggeredThreshold: z.ZodInt;
|
|
43
43
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -13,7 +13,7 @@ export declare namespace CreateUserCommand {
|
|
|
13
13
|
}>>>;
|
|
14
14
|
shortUuid: z.ZodOptional<z.ZodString>;
|
|
15
15
|
trojanPassword: z.ZodOptional<z.ZodString>;
|
|
16
|
-
vlessUuid: z.ZodOptional<z.
|
|
16
|
+
vlessUuid: z.ZodOptional<z.ZodGUID>;
|
|
17
17
|
ssPassword: z.ZodOptional<z.ZodString>;
|
|
18
18
|
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
|
19
19
|
trafficLimitStrategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -61,7 +61,7 @@ export declare namespace CreateUserCommand {
|
|
|
61
61
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
62
62
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
63
63
|
trojanPassword: z.ZodString;
|
|
64
|
-
vlessUuid: z.
|
|
64
|
+
vlessUuid: z.ZodGUID;
|
|
65
65
|
ssPassword: z.ZodString;
|
|
66
66
|
lastTriggeredThreshold: z.ZodInt;
|
|
67
67
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -30,7 +30,7 @@ var CreateUserCommand;
|
|
|
30
30
|
.optional()
|
|
31
31
|
.describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
|
|
32
32
|
vlessUuid: zod_1.z
|
|
33
|
-
.
|
|
33
|
+
.guid('Invalid Vless UUID format')
|
|
34
34
|
.optional()
|
|
35
35
|
.describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
|
|
36
36
|
ssPassword: zod_1.z
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByIdCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -52,7 +52,7 @@ export declare namespace GetUsersStreamCommand {
|
|
|
52
52
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
53
53
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
54
54
|
trojanPassword: z.ZodString;
|
|
55
|
-
vlessUuid: z.
|
|
55
|
+
vlessUuid: z.ZodGUID;
|
|
56
56
|
ssPassword: z.ZodString;
|
|
57
57
|
lastTriggeredThreshold: z.ZodInt;
|
|
58
58
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -45,7 +45,7 @@ export declare namespace GetUsersCommand {
|
|
|
45
45
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
46
46
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
47
47
|
trojanPassword: z.ZodString;
|
|
48
|
-
vlessUuid: z.
|
|
48
|
+
vlessUuid: z.ZodGUID;
|
|
49
49
|
ssPassword: z.ZodString;
|
|
50
50
|
lastTriggeredThreshold: z.ZodInt;
|
|
51
51
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -54,7 +54,7 @@ export declare namespace UpdateUserCommand {
|
|
|
54
54
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
55
55
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
56
56
|
trojanPassword: z.ZodString;
|
|
57
|
-
vlessUuid: z.
|
|
57
|
+
vlessUuid: z.ZodGUID;
|
|
58
58
|
ssPassword: z.ZodString;
|
|
59
59
|
lastTriggeredThreshold: z.ZodInt;
|
|
60
60
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -26,7 +26,7 @@ export declare const UserResponseSchema: z.ZodObject<{
|
|
|
26
26
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
27
27
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
28
28
|
trojanPassword: z.ZodString;
|
|
29
|
-
vlessUuid: z.
|
|
29
|
+
vlessUuid: z.ZodGUID;
|
|
30
30
|
ssPassword: z.ZodString;
|
|
31
31
|
lastTriggeredThreshold: z.ZodInt;
|
|
32
32
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -1214,5 +1214,10 @@ export declare const ERRORS: {
|
|
|
1214
1214
|
readonly message: "Get stats digest error";
|
|
1215
1215
|
readonly httpCode: 500;
|
|
1216
1216
|
};
|
|
1217
|
+
readonly SYNC_SNIPPET_ERROR: {
|
|
1218
|
+
readonly code: "A237";
|
|
1219
|
+
readonly message: "Sync snippet error";
|
|
1220
|
+
readonly httpCode: 500;
|
|
1221
|
+
};
|
|
1217
1222
|
};
|
|
1218
1223
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkDN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,CAAC"}
|
|
@@ -25,7 +25,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
|
25
25
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
26
26
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
27
27
|
trojanPassword: z.ZodString;
|
|
28
|
-
vlessUuid: z.
|
|
28
|
+
vlessUuid: z.ZodGUID;
|
|
29
29
|
ssPassword: z.ZodString;
|
|
30
30
|
lastTriggeredThreshold: z.ZodInt;
|
|
31
31
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -85,6 +85,7 @@ export declare const TlsSecurityOptionsSchema: z.ZodObject<{
|
|
|
85
85
|
echConfigList: z.ZodNullable<z.ZodString>;
|
|
86
86
|
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
87
87
|
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
88
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
88
89
|
}, z.core.$strip>;
|
|
89
90
|
export declare const RealitySecurityOptionsSchema: z.ZodObject<{
|
|
90
91
|
fingerprint: z.ZodString;
|
|
@@ -206,6 +207,7 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
206
207
|
echConfigList: z.ZodNullable<z.ZodString>;
|
|
207
208
|
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
208
209
|
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
210
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
209
211
|
}, z.core.$strip>;
|
|
210
212
|
}, z.core.$strip>, z.ZodObject<{
|
|
211
213
|
security: z.ZodLiteral<"reality">;
|
|
@@ -342,6 +344,7 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
342
344
|
echConfigList: z.ZodNullable<z.ZodString>;
|
|
343
345
|
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
344
346
|
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
347
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
345
348
|
}, z.core.$strip>, z.ZodObject<{
|
|
346
349
|
fingerprint: z.ZodString;
|
|
347
350
|
publicKey: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEt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
87
|
echSockopt: zod_1.z.nullable(zod_1.z.unknown()),
|
|
88
|
+
cipherSuites: zod_1.z.string().nullable(),
|
|
88
89
|
});
|
|
89
90
|
exports.RealitySecurityOptionsSchema = zod_1.z.object({
|
|
90
91
|
fingerprint: zod_1.z.string(),
|
|
@@ -25,7 +25,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
25
25
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
26
26
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
27
27
|
trojanPassword: z.ZodString;
|
|
28
|
-
vlessUuid: z.
|
|
28
|
+
vlessUuid: z.ZodGUID;
|
|
29
29
|
ssPassword: z.ZodString;
|
|
30
30
|
lastTriggeredThreshold: z.ZodInt;
|
|
31
31
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
18
18
|
hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
|
|
19
19
|
externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
20
20
|
trojanPassword: zod_1.z.string(),
|
|
21
|
-
vlessUuid: zod_1.z.
|
|
21
|
+
vlessUuid: zod_1.z.guid(),
|
|
22
22
|
ssPassword: zod_1.z.string(),
|
|
23
23
|
lastTriggeredThreshold: zod_1.z.int(),
|
|
24
24
|
subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
|
|
@@ -43,7 +43,7 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
43
43
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
44
44
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
45
45
|
trojanPassword: z.ZodString;
|
|
46
|
-
vlessUuid: z.
|
|
46
|
+
vlessUuid: z.ZodGUID;
|
|
47
47
|
ssPassword: z.ZodString;
|
|
48
48
|
lastTriggeredThreshold: z.ZodInt;
|
|
49
49
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -102,7 +102,7 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
102
102
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
103
103
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
104
104
|
trojanPassword: z.ZodString;
|
|
105
|
-
vlessUuid: z.
|
|
105
|
+
vlessUuid: z.ZodGUID;
|
|
106
106
|
ssPassword: z.ZodString;
|
|
107
107
|
lastTriggeredThreshold: z.ZodInt;
|
|
108
108
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -441,7 +441,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
441
441
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
442
442
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
443
443
|
trojanPassword: z.ZodString;
|
|
444
|
-
vlessUuid: z.
|
|
444
|
+
vlessUuid: z.ZodGUID;
|
|
445
445
|
ssPassword: z.ZodString;
|
|
446
446
|
lastTriggeredThreshold: z.ZodInt;
|
|
447
447
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -532,7 +532,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
532
532
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
533
533
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
534
534
|
trojanPassword: z.ZodString;
|
|
535
|
-
vlessUuid: z.
|
|
535
|
+
vlessUuid: z.ZodGUID;
|
|
536
536
|
ssPassword: z.ZodString;
|
|
537
537
|
lastTriggeredThreshold: z.ZodInt;
|
|
538
538
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -590,7 +590,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
590
590
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
591
591
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
592
592
|
trojanPassword: z.ZodString;
|
|
593
|
-
vlessUuid: z.
|
|
593
|
+
vlessUuid: z.ZodGUID;
|
|
594
594
|
ssPassword: z.ZodString;
|
|
595
595
|
lastTriggeredThreshold: z.ZodInt;
|
|
596
596
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -924,7 +924,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
924
924
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
925
925
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
926
926
|
trojanPassword: z.ZodString;
|
|
927
|
-
vlessUuid: z.
|
|
927
|
+
vlessUuid: z.ZodGUID;
|
|
928
928
|
ssPassword: z.ZodString;
|
|
929
929
|
lastTriggeredThreshold: z.ZodInt;
|
|
930
930
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SNIPPETS_ROUTES = exports.SNIPPETS_CONTROLLER = void 0;
|
|
4
4
|
exports.SNIPPETS_CONTROLLER = 'snippets';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
5
6
|
exports.SNIPPETS_ROUTES = {
|
|
6
7
|
GET: '', // Get list of all snippets // get
|
|
7
8
|
CREATE: '', // Create new snippet // post
|
|
8
9
|
UPDATE: '', // Update snippet by name // patch
|
|
9
10
|
DELETE: '', // Delete snippet by name // delete
|
|
11
|
+
ACTIONS: {
|
|
12
|
+
SYNC: `${ACTIONS_ROUTE}/sync`, // post
|
|
13
|
+
},
|
|
10
14
|
};
|
|
@@ -268,6 +268,9 @@ exports.REST_API = {
|
|
|
268
268
|
CREATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.CREATE}`,
|
|
269
269
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.UPDATE}`,
|
|
270
270
|
DELETE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.DELETE}`,
|
|
271
|
+
ACTIONS: {
|
|
272
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.ACTIONS.SYNC}`,
|
|
273
|
+
},
|
|
271
274
|
},
|
|
272
275
|
EXTERNAL_SQUADS: {
|
|
273
276
|
GET: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET}`,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./sync.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncSnippetCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SyncSnippetCommand;
|
|
8
|
+
(function (SyncSnippetCommand) {
|
|
9
|
+
SyncSnippetCommand.url = api_1.REST_API.SNIPPETS.ACTIONS.SYNC;
|
|
10
|
+
SyncSnippetCommand.TSQ_url = SyncSnippetCommand.url;
|
|
11
|
+
SyncSnippetCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SNIPPETS_ROUTES.ACTIONS.SYNC, 'post', 'Sync snippet to affected config profiles', { scope: 'sync', kind: 'write' }, 'Trigger the sync of a snippet to all config profiles that reference it. Nodes which use affected config profiles will be restarted.');
|
|
12
|
+
SyncSnippetCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
name: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.min(2, 'Name must be at least 2 characters')
|
|
16
|
+
.max(255, 'Name must be less than 255 characters')
|
|
17
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
18
|
+
});
|
|
19
|
+
})(SyncSnippetCommand || (exports.SyncSnippetCommand = SyncSnippetCommand = {}));
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actions"), exports);
|
|
17
18
|
__exportStar(require("./create-snippet.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-snippet.command"), exports);
|
|
19
20
|
__exportStar(require("./get-snippets.command"), exports);
|
|
@@ -30,7 +30,7 @@ var CreateUserCommand;
|
|
|
30
30
|
.optional()
|
|
31
31
|
.describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
|
|
32
32
|
vlessUuid: zod_1.z
|
|
33
|
-
.
|
|
33
|
+
.guid('Invalid Vless UUID format')
|
|
34
34
|
.optional()
|
|
35
35
|
.describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
|
|
36
36
|
ssPassword: zod_1.z
|
|
@@ -85,6 +85,7 @@ exports.TlsSecurityOptionsSchema = zod_1.z.object({
|
|
|
85
85
|
echConfigList: zod_1.z.string().nullable(),
|
|
86
86
|
echForceQuery: zod_1.z.string().nullable(),
|
|
87
87
|
echSockopt: zod_1.z.nullable(zod_1.z.unknown()),
|
|
88
|
+
cipherSuites: zod_1.z.string().nullable(),
|
|
88
89
|
});
|
|
89
90
|
exports.RealitySecurityOptionsSchema = zod_1.z.object({
|
|
90
91
|
fingerprint: zod_1.z.string(),
|
|
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
18
18
|
hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
|
|
19
19
|
externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
20
20
|
trojanPassword: zod_1.z.string(),
|
|
21
|
-
vlessUuid: zod_1.z.
|
|
21
|
+
vlessUuid: zod_1.z.guid(),
|
|
22
22
|
ssPassword: zod_1.z.string(),
|
|
23
23
|
lastTriggeredThreshold: zod_1.z.int(),
|
|
24
24
|
subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
|
package/package.json
CHANGED