@remnawave/backend-contract 2.0.0-alpha.34 → 2.0.0-alpha.36
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/api-tokens/create.command.d.ts +0 -3
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +0 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
- package/build/backend/commands/api-tokens/find.command.d.ts.map +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/constants/headers/{headers.contants.d.ts → headers.constants.d.ts} +1 -1
- package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
- package/build/backend/constants/headers/index.d.ts +1 -1
- package/build/backend/constants/headers/index.d.ts.map +1 -1
- package/build/backend/constants/headers/index.js +1 -1
- package/build/backend/models/api-tokens.schema.d.ts +0 -3
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +0 -1
- package/build/backend/models/infra-provider.schema.js +1 -1
- package/build/frontend/commands/api-tokens/create.command.js +0 -1
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/constants/headers/index.js +1 -1
- package/build/frontend/models/api-tokens.schema.js +0 -1
- package/build/frontend/models/infra-provider.schema.js +1 -1
- package/package.json +1 -1
- package/build/backend/constants/headers/headers.contants.d.ts.map +0 -1
- /package/build/backend/constants/headers/{headers.contants.js → headers.constants.js} +0 -0
- /package/build/frontend/constants/headers/{headers.contants.js → headers.constants.js} +0 -0
@@ -5,13 +5,10 @@ export declare namespace CreateApiTokenCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
tokenName: z.ZodString;
|
8
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
10
9
|
tokenName: string;
|
11
|
-
tokenDescription: string | null;
|
12
10
|
}, {
|
13
11
|
tokenName: string;
|
14
|
-
tokenDescription: string | null;
|
15
12
|
}>;
|
16
13
|
type Request = z.infer<typeof RequestSchema>;
|
17
14
|
const ResponseSchema: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gBAA6B,CAAC;IACvC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gBAA6B,CAAC;IACvC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -11,7 +11,6 @@ var CreateApiTokenCommand;
|
|
11
11
|
CreateApiTokenCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.API_TOKENS_ROUTES.CREATE, 'post', 'Create a new API token', 'This endpoint is forbidden to use via "API-key". It can only be used with an admin JWT-token.');
|
12
12
|
CreateApiTokenCommand.RequestSchema = zod_1.z.object({
|
13
13
|
tokenName: zod_1.z.string(),
|
14
|
-
tokenDescription: zod_1.z.string().nullable(),
|
15
14
|
});
|
16
15
|
CreateApiTokenCommand.ResponseSchema = zod_1.z.object({
|
17
16
|
response: zod_1.z.object({
|
@@ -9,19 +9,16 @@ export declare namespace FindAllApiTokensCommand {
|
|
9
9
|
uuid: z.ZodString;
|
10
10
|
token: z.ZodString;
|
11
11
|
tokenName: z.ZodString;
|
12
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
13
12
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
14
13
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
15
14
|
}, "strip", z.ZodTypeAny, {
|
16
15
|
tokenName: string;
|
17
|
-
tokenDescription: string | null;
|
18
16
|
token: string;
|
19
17
|
uuid: string;
|
20
18
|
createdAt: Date;
|
21
19
|
updatedAt: Date;
|
22
20
|
}, {
|
23
21
|
tokenName: string;
|
24
|
-
tokenDescription: string | null;
|
25
22
|
token: string;
|
26
23
|
uuid: string;
|
27
24
|
createdAt: string;
|
@@ -43,7 +40,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
43
40
|
}, "strip", z.ZodTypeAny, {
|
44
41
|
apiKeys: {
|
45
42
|
tokenName: string;
|
46
|
-
tokenDescription: string | null;
|
47
43
|
token: string;
|
48
44
|
uuid: string;
|
49
45
|
createdAt: Date;
|
@@ -57,7 +53,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
57
53
|
}, {
|
58
54
|
apiKeys: {
|
59
55
|
tokenName: string;
|
60
|
-
tokenDescription: string | null;
|
61
56
|
token: string;
|
62
57
|
uuid: string;
|
63
58
|
createdAt: string;
|
@@ -73,7 +68,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
73
68
|
response: {
|
74
69
|
apiKeys: {
|
75
70
|
tokenName: string;
|
76
|
-
tokenDescription: string | null;
|
77
71
|
token: string;
|
78
72
|
uuid: string;
|
79
73
|
createdAt: Date;
|
@@ -89,7 +83,6 @@ export declare namespace FindAllApiTokensCommand {
|
|
89
83
|
response: {
|
90
84
|
apiKeys: {
|
91
85
|
tokenName: string;
|
92
|
-
tokenDescription: string | null;
|
93
86
|
token: string;
|
94
87
|
uuid: string;
|
95
88
|
createdAt: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"find.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/find.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gBAA0B,CAAC;IACpC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc
|
1
|
+
{"version":3,"file":"find.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/find.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gBAA0B,CAAC;IACpC,MAAM,OAAO,gBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -754,5 +754,10 @@ export declare const ERRORS: {
|
|
754
754
|
readonly message: "This name is reserved by Remnawave. Please use a different name.";
|
755
755
|
readonly httpCode: 400;
|
756
756
|
};
|
757
|
+
readonly UPDATE_CONFIG_PROFILE_ERROR: {
|
758
|
+
readonly code: "A146";
|
759
|
+
readonly message: "Update config profile error";
|
760
|
+
readonly httpCode: 500;
|
761
|
+
};
|
757
762
|
};
|
758
763
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6a3B,CAAC"}
|
@@ -725,4 +725,9 @@ exports.ERRORS = {
|
|
725
725
|
message: 'This name is reserved by Remnawave. Please use a different name.',
|
726
726
|
httpCode: 400,
|
727
727
|
},
|
728
|
+
UPDATE_CONFIG_PROFILE_ERROR: {
|
729
|
+
code: 'A146',
|
730
|
+
message: 'Update config profile error',
|
731
|
+
httpCode: 500,
|
732
|
+
},
|
728
733
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"headers.constants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './headers.
|
1
|
+
export * from './headers.constants';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
@@ -14,4 +14,4 @@ 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("./headers.
|
17
|
+
__exportStar(require("./headers.constants"), exports);
|
@@ -3,19 +3,16 @@ export declare const ApiTokensSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
4
4
|
token: z.ZodString;
|
5
5
|
tokenName: z.ZodString;
|
6
|
-
tokenDescription: z.ZodNullable<z.ZodString>;
|
7
6
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
7
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
10
9
|
tokenName: string;
|
11
|
-
tokenDescription: string | null;
|
12
10
|
token: string;
|
13
11
|
uuid: string;
|
14
12
|
createdAt: Date;
|
15
13
|
updatedAt: Date;
|
16
14
|
}, {
|
17
15
|
tokenName: string;
|
18
|
-
tokenDescription: string | null;
|
19
16
|
token: string;
|
20
17
|
uuid: string;
|
21
18
|
createdAt: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
1
|
+
{"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAa1B,CAAC"}
|
@@ -20,7 +20,7 @@ exports.InfraProviderSchema = zod_1.z.object({
|
|
20
20
|
totalBills: zod_1.z.number(),
|
21
21
|
}),
|
22
22
|
billingNodes: zod_1.z.array(zod_1.z.object({
|
23
|
-
nodeUuid: zod_1.z.string(),
|
23
|
+
nodeUuid: zod_1.z.string().uuid(),
|
24
24
|
name: zod_1.z.string(),
|
25
25
|
countryCode: zod_1.z.string(),
|
26
26
|
})),
|
@@ -11,7 +11,6 @@ var CreateApiTokenCommand;
|
|
11
11
|
CreateApiTokenCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.API_TOKENS_ROUTES.CREATE, 'post', 'Create a new API token', 'This endpoint is forbidden to use via "API-key". It can only be used with an admin JWT-token.');
|
12
12
|
CreateApiTokenCommand.RequestSchema = zod_1.z.object({
|
13
13
|
tokenName: zod_1.z.string(),
|
14
|
-
tokenDescription: zod_1.z.string().nullable(),
|
15
14
|
});
|
16
15
|
CreateApiTokenCommand.ResponseSchema = zod_1.z.object({
|
17
16
|
response: zod_1.z.object({
|
@@ -725,4 +725,9 @@ exports.ERRORS = {
|
|
725
725
|
message: 'This name is reserved by Remnawave. Please use a different name.',
|
726
726
|
httpCode: 400,
|
727
727
|
},
|
728
|
+
UPDATE_CONFIG_PROFILE_ERROR: {
|
729
|
+
code: 'A146',
|
730
|
+
message: 'Update config profile error',
|
731
|
+
httpCode: 500,
|
732
|
+
},
|
728
733
|
};
|
@@ -14,4 +14,4 @@ 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("./headers.
|
17
|
+
__exportStar(require("./headers.constants"), exports);
|
@@ -20,7 +20,7 @@ exports.InfraProviderSchema = zod_1.z.object({
|
|
20
20
|
totalBills: zod_1.z.number(),
|
21
21
|
}),
|
22
22
|
billingNodes: zod_1.z.array(zod_1.z.object({
|
23
|
-
nodeUuid: zod_1.z.string(),
|
23
|
+
nodeUuid: zod_1.z.string().uuid(),
|
24
24
|
name: zod_1.z.string(),
|
25
25
|
countryCode: zod_1.z.string(),
|
26
26
|
})),
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"headers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
|
File without changes
|
File without changes
|