@remnawave/backend-contract 2.1.8 → 2.1.10
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/config-profiles/update-config-profile.command.d.ts +6 -7
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/update-config-profile.command.js +7 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +6 -3
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +7 -1
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +7 -1
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +7 -1
- package/build/frontend/constants/errors/errors.js +10 -0
- package/package.json +1 -1
@@ -5,17 +5,16 @@ export declare namespace UpdateConfigProfileCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
|
-
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
9
|
+
config: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
10
11
|
uuid: string;
|
11
|
-
|
12
|
-
|
13
|
-
};
|
12
|
+
name?: string | undefined;
|
13
|
+
config?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
14
14
|
}, {
|
15
15
|
uuid: string;
|
16
|
-
|
17
|
-
|
18
|
-
};
|
16
|
+
name?: string | undefined;
|
17
|
+
config?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
19
18
|
}>;
|
20
19
|
type Request = z.infer<typeof RequestSchema>;
|
21
20
|
const ResponseSchema: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-config-profile.command.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/update-config-profile.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-config-profile.command.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/update-config-profile.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAYxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -12,7 +12,13 @@ var UpdateConfigProfileCommand;
|
|
12
12
|
UpdateConfigProfileCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.UPDATE, 'patch', 'Update Core Config in specific config profile');
|
13
13
|
UpdateConfigProfileCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid('UUID must be a valid UUID'),
|
15
|
-
|
15
|
+
name: zod_1.z
|
16
|
+
.string()
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
18
|
+
.max(20, 'Name must be less than 20 characters')
|
19
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes')
|
20
|
+
.optional(),
|
21
|
+
config: zod_1.z.object({}).passthrough().optional(),
|
16
22
|
});
|
17
23
|
UpdateConfigProfileCommand.ResponseSchema = zod_1.z.object({
|
18
24
|
response: models_1.ConfigProfileSchema,
|
@@ -5,13 +5,16 @@ export declare namespace UpdateInternalSquadCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
|
-
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
9
|
+
inbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
10
|
-
inbounds: string[];
|
11
11
|
uuid: string;
|
12
|
+
inbounds?: string[] | undefined;
|
13
|
+
name?: string | undefined;
|
12
14
|
}, {
|
13
|
-
inbounds: string[];
|
14
15
|
uuid: string;
|
16
|
+
inbounds?: string[] | undefined;
|
17
|
+
name?: string | undefined;
|
15
18
|
}>;
|
16
19
|
type Request = z.infer<typeof RequestSchema>;
|
17
20
|
const ResponseSchema: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-internal-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/update-internal-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-internal-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/update-internal-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAYxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -12,7 +12,13 @@ var UpdateInternalSquadCommand;
|
|
12
12
|
UpdateInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.UPDATE, 'patch', 'Update internal squad');
|
13
13
|
UpdateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
15
|
-
|
15
|
+
name: zod_1.z
|
16
|
+
.string()
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
18
|
+
.max(20, 'Name must be less than 20 characters')
|
19
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes')
|
20
|
+
.optional(),
|
21
|
+
inbounds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
16
22
|
});
|
17
23
|
UpdateInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
18
24
|
response: models_1.InternalSquadSchema,
|
@@ -784,5 +784,15 @@ export declare const ERRORS: {
|
|
784
784
|
readonly message: "Get all host tags error";
|
785
785
|
readonly httpCode: 500;
|
786
786
|
};
|
787
|
+
readonly NAME_OR_CONFIG_REQUIRED: {
|
788
|
+
readonly code: "A152";
|
789
|
+
readonly message: "Name or config is required";
|
790
|
+
readonly httpCode: 400;
|
791
|
+
};
|
792
|
+
readonly NAME_OR_INBOUNDS_REQUIRED: {
|
793
|
+
readonly code: "A153";
|
794
|
+
readonly message: "Name or inbounds is required";
|
795
|
+
readonly httpCode: 400;
|
796
|
+
};
|
787
797
|
};
|
788
798
|
//# 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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgd3B,CAAC"}
|
@@ -755,4 +755,14 @@ exports.ERRORS = {
|
|
755
755
|
message: 'Get all host tags error',
|
756
756
|
httpCode: 500,
|
757
757
|
},
|
758
|
+
NAME_OR_CONFIG_REQUIRED: {
|
759
|
+
code: 'A152',
|
760
|
+
message: 'Name or config is required',
|
761
|
+
httpCode: 400,
|
762
|
+
},
|
763
|
+
NAME_OR_INBOUNDS_REQUIRED: {
|
764
|
+
code: 'A153',
|
765
|
+
message: 'Name or inbounds is required',
|
766
|
+
httpCode: 400,
|
767
|
+
},
|
758
768
|
};
|
@@ -12,7 +12,13 @@ var UpdateConfigProfileCommand;
|
|
12
12
|
UpdateConfigProfileCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.UPDATE, 'patch', 'Update Core Config in specific config profile');
|
13
13
|
UpdateConfigProfileCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid('UUID must be a valid UUID'),
|
15
|
-
|
15
|
+
name: zod_1.z
|
16
|
+
.string()
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
18
|
+
.max(20, 'Name must be less than 20 characters')
|
19
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes')
|
20
|
+
.optional(),
|
21
|
+
config: zod_1.z.object({}).passthrough().optional(),
|
16
22
|
});
|
17
23
|
UpdateConfigProfileCommand.ResponseSchema = zod_1.z.object({
|
18
24
|
response: models_1.ConfigProfileSchema,
|
@@ -12,7 +12,13 @@ var UpdateInternalSquadCommand;
|
|
12
12
|
UpdateInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.UPDATE, 'patch', 'Update internal squad');
|
13
13
|
UpdateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
15
|
-
|
15
|
+
name: zod_1.z
|
16
|
+
.string()
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
18
|
+
.max(20, 'Name must be less than 20 characters')
|
19
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes')
|
20
|
+
.optional(),
|
21
|
+
inbounds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
16
22
|
});
|
17
23
|
UpdateInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
18
24
|
response: models_1.InternalSquadSchema,
|
@@ -755,4 +755,14 @@ exports.ERRORS = {
|
|
755
755
|
message: 'Get all host tags error',
|
756
756
|
httpCode: 500,
|
757
757
|
},
|
758
|
+
NAME_OR_CONFIG_REQUIRED: {
|
759
|
+
code: 'A152',
|
760
|
+
message: 'Name or config is required',
|
761
|
+
httpCode: 400,
|
762
|
+
},
|
763
|
+
NAME_OR_INBOUNDS_REQUIRED: {
|
764
|
+
code: 'A153',
|
765
|
+
message: 'Name or inbounds is required',
|
766
|
+
httpCode: 400,
|
767
|
+
},
|
758
768
|
};
|