@remnawave/backend-contract 0.3.67 → 0.3.68
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/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts +3 -2
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +4 -4
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.js +10 -2
- package/build/backend/constants/subscription-template/template-type/request-template-type.constant.d.ts +2 -1
- package/build/backend/constants/subscription-template/template-type/request-template-type.constant.d.ts.map +1 -1
- package/build/backend/constants/subscription-template/template-type/request-template-type.constant.js +1 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +3 -0
- package/build/frontend/commands/users/get-all-users-v2.command.js +10 -2
- package/build/frontend/constants/subscription-template/template-type/request-template-type.constant.js +1 -0
- package/build/frontend/constants/templates/template-keys.js +3 -0
- package/package.json +1 -1
@@ -10,14 +10,15 @@ export declare namespace GetSubscriptionByShortUuidByClientTypeCommand {
|
|
10
10
|
readonly SINGBOX_LEGACY: "singbox-legacy";
|
11
11
|
readonly MIHOMO: "mihomo";
|
12
12
|
readonly XRAY_JSON: "json";
|
13
|
+
readonly V2RAY_JSON: "v2ray-json";
|
13
14
|
readonly CLASH: "clash";
|
14
15
|
}>;
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
16
17
|
shortUuid: string;
|
17
|
-
clientType: "stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "clash";
|
18
|
+
clientType: "stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "v2ray-json" | "clash";
|
18
19
|
}, {
|
19
20
|
shortUuid: string;
|
20
|
-
clientType: "stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "clash";
|
21
|
+
clientType: "stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "v2ray-json" | "clash";
|
21
22
|
}>;
|
22
23
|
type Request = z.infer<typeof RequestSchema>;
|
23
24
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-subscription-by-short-uuid-by-client-type.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid-by-client-type.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6CAA6C,CAAC;IACpD,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa
|
1
|
+
{"version":3,"file":"get-subscription-by-short-uuid-by-client-type.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-by-short-uuid-by-client-type.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6CAA6C,CAAC;IACpD,MAAM,GAAG,+BAA4B,CAAC;IACtC,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;;;;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;CACvD"}
|
@@ -3,8 +3,8 @@ export declare namespace GetAllUsersV2Command {
|
|
3
3
|
const url: "/api/users/v2";
|
4
4
|
const TSQ_url: "/api/users/v2";
|
5
5
|
const RequestQuerySchema: z.ZodObject<{
|
6
|
-
start: z.
|
7
|
-
size: z.
|
6
|
+
start: z.ZodDefault<z.ZodNumber>;
|
7
|
+
size: z.ZodDefault<z.ZodNumber>;
|
8
8
|
filters: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
9
9
|
id: z.ZodString;
|
10
10
|
value: z.ZodUnknown;
|
@@ -34,8 +34,8 @@ export declare namespace GetAllUsersV2Command {
|
|
34
34
|
desc: boolean;
|
35
35
|
}[], unknown>>;
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
37
|
-
start
|
38
|
-
size
|
37
|
+
start: number;
|
38
|
+
size: number;
|
39
39
|
filters?: {
|
40
40
|
id: string;
|
41
41
|
value?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiC7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -18,8 +18,16 @@ var GetAllUsersV2Command;
|
|
18
18
|
desc: zod_1.z.boolean(),
|
19
19
|
});
|
20
20
|
GetAllUsersV2Command.RequestQuerySchema = zod_1.z.object({
|
21
|
-
start: zod_1.z.coerce
|
22
|
-
|
21
|
+
start: zod_1.z.coerce
|
22
|
+
.number()
|
23
|
+
.default(0)
|
24
|
+
.describe('Start index (offset) of the users to return, default is 0'),
|
25
|
+
size: zod_1.z.coerce
|
26
|
+
.number()
|
27
|
+
.min(1, 'Size (limit) must be greater than 0')
|
28
|
+
.max(1000, 'Size (limit) must be less than 1000')
|
29
|
+
.describe('Number of users to return, no more than 1000')
|
30
|
+
.default(25),
|
23
31
|
filters: zod_1.z
|
24
32
|
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(FilterSchema))
|
25
33
|
.optional(),
|
@@ -4,9 +4,10 @@ export declare const REQUEST_TEMPLATE_TYPE: {
|
|
4
4
|
readonly SINGBOX_LEGACY: "singbox-legacy";
|
5
5
|
readonly MIHOMO: "mihomo";
|
6
6
|
readonly XRAY_JSON: "json";
|
7
|
+
readonly V2RAY_JSON: "v2ray-json";
|
7
8
|
readonly CLASH: "clash";
|
8
9
|
};
|
9
10
|
export type TRequestTemplateType = [keyof typeof REQUEST_TEMPLATE_TYPE][number];
|
10
|
-
export declare const REQUEST_TEMPLATE_TYPE_VALUES: ("stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "clash")[];
|
11
|
+
export declare const REQUEST_TEMPLATE_TYPE_VALUES: ("stash" | "singbox" | "singbox-legacy" | "mihomo" | "json" | "v2ray-json" | "clash")[];
|
11
12
|
export type TRequestTemplateTypeKeys = (typeof REQUEST_TEMPLATE_TYPE)[keyof typeof REQUEST_TEMPLATE_TYPE];
|
12
13
|
//# sourceMappingURL=request-template-type.constant.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-template-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/template-type/request-template-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB
|
1
|
+
{"version":3,"file":"request-template-type.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/subscription-template/template-type/request-template-type.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;CAQxB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,eAAO,MAAM,4BAA4B,yFAAuC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAChC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC"];
|
1
|
+
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID"];
|
2
2
|
export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
|
3
3
|
//# sourceMappingURL=template-keys.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,uHAShB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -18,8 +18,16 @@ var GetAllUsersV2Command;
|
|
18
18
|
desc: zod_1.z.boolean(),
|
19
19
|
});
|
20
20
|
GetAllUsersV2Command.RequestQuerySchema = zod_1.z.object({
|
21
|
-
start: zod_1.z.coerce
|
22
|
-
|
21
|
+
start: zod_1.z.coerce
|
22
|
+
.number()
|
23
|
+
.default(0)
|
24
|
+
.describe('Start index (offset) of the users to return, default is 0'),
|
25
|
+
size: zod_1.z.coerce
|
26
|
+
.number()
|
27
|
+
.min(1, 'Size (limit) must be greater than 0')
|
28
|
+
.max(1000, 'Size (limit) must be less than 1000')
|
29
|
+
.describe('Number of users to return, no more than 1000')
|
30
|
+
.default(25),
|
23
31
|
filters: zod_1.z
|
24
32
|
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(FilterSchema))
|
25
33
|
.optional(),
|