@remnawave/backend-contract 0.3.32 → 0.3.34

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.
Files changed (35) hide show
  1. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +32 -0
  2. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +1 -0
  3. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +22 -0
  4. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +32 -0
  5. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +1 -0
  6. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +22 -0
  7. package/build/backend/commands/inbounds/bulk/index.d.ts +5 -0
  8. package/build/backend/commands/inbounds/bulk/index.d.ts.map +1 -0
  9. package/build/backend/commands/inbounds/bulk/index.js +20 -0
  10. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +32 -0
  11. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +1 -0
  12. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +22 -0
  13. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +32 -0
  14. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +1 -0
  15. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +22 -0
  16. package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +0 -5
  17. package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +1 -1
  18. package/build/backend/commands/inbounds/index.d.ts +1 -0
  19. package/build/backend/commands/inbounds/index.d.ts.map +1 -1
  20. package/build/backend/commands/inbounds/index.js +1 -0
  21. package/build/backend/constants/errors/errors.d.ts +10 -0
  22. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  23. package/build/backend/constants/errors/errors.js +10 -0
  24. package/build/backend/models/full-inbounds.schema.d.ts +0 -3
  25. package/build/backend/models/full-inbounds.schema.d.ts.map +1 -1
  26. package/build/backend/models/full-inbounds.schema.js +0 -1
  27. package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +22 -0
  28. package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +22 -0
  29. package/build/frontend/commands/inbounds/bulk/index.js +20 -0
  30. package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +22 -0
  31. package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +22 -0
  32. package/build/frontend/commands/inbounds/index.js +1 -0
  33. package/build/frontend/constants/errors/errors.js +10 -0
  34. package/build/frontend/models/full-inbounds.schema.js +0 -1
  35. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace AddInboundToNodesCommand {
3
+ const url: "/api/inbounds/bulk/add-to-nodes";
4
+ const TSQ_url: "/api/inbounds/bulk/add-to-nodes";
5
+ const RequestSchema: z.ZodObject<{
6
+ inboundUuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ inboundUuid: string;
9
+ }, {
10
+ inboundUuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ isSuccess: z.ZodBoolean;
16
+ }, "strip", z.ZodTypeAny, {
17
+ isSuccess: boolean;
18
+ }, {
19
+ isSuccess: boolean;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ response: {
23
+ isSuccess: boolean;
24
+ };
25
+ }, {
26
+ response: {
27
+ isSuccess: boolean;
28
+ };
29
+ }>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
32
+ //# sourceMappingURL=add-inbound-to-nodes.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-inbound-to-nodes.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/add-inbound-to-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,mCAA8C,CAAC;IACxD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddInboundToNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var AddInboundToNodesCommand;
7
+ (function (AddInboundToNodesCommand) {
8
+ AddInboundToNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_NODES;
9
+ AddInboundToNodesCommand.TSQ_url = AddInboundToNodesCommand.url;
10
+ AddInboundToNodesCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ AddInboundToNodesCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(AddInboundToNodesCommand || (exports.AddInboundToNodesCommand = AddInboundToNodesCommand = {}));
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace AddInboundToUsersCommand {
3
+ const url: "/api/inbounds/bulk/add-to-users";
4
+ const TSQ_url: "/api/inbounds/bulk/add-to-users";
5
+ const RequestSchema: z.ZodObject<{
6
+ inboundUuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ inboundUuid: string;
9
+ }, {
10
+ inboundUuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ isSuccess: z.ZodBoolean;
16
+ }, "strip", z.ZodTypeAny, {
17
+ isSuccess: boolean;
18
+ }, {
19
+ isSuccess: boolean;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ response: {
23
+ isSuccess: boolean;
24
+ };
25
+ }, {
26
+ response: {
27
+ isSuccess: boolean;
28
+ };
29
+ }>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
32
+ //# sourceMappingURL=add-inbound-to-users.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-inbound-to-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/add-inbound-to-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,mCAA8C,CAAC;IACxD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddInboundToUsersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var AddInboundToUsersCommand;
7
+ (function (AddInboundToUsersCommand) {
8
+ AddInboundToUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_USERS;
9
+ AddInboundToUsersCommand.TSQ_url = AddInboundToUsersCommand.url;
10
+ AddInboundToUsersCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ AddInboundToUsersCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(AddInboundToUsersCommand || (exports.AddInboundToUsersCommand = AddInboundToUsersCommand = {}));
@@ -0,0 +1,5 @@
1
+ export * from './add-inbound-to-nodes.command';
2
+ export * from './add-inbound-to-users.command';
3
+ export * from './remove-inbound-from-nodes.command';
4
+ export * from './remove-inbound-from-users.command';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,20 @@
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("./add-inbound-to-nodes.command"), exports);
18
+ __exportStar(require("./add-inbound-to-users.command"), exports);
19
+ __exportStar(require("./remove-inbound-from-nodes.command"), exports);
20
+ __exportStar(require("./remove-inbound-from-users.command"), exports);
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RemoveInboundFromNodesCommand {
3
+ const url: "/api/inbounds/bulk/remove-from-nodes";
4
+ const TSQ_url: "/api/inbounds/bulk/remove-from-nodes";
5
+ const RequestSchema: z.ZodObject<{
6
+ inboundUuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ inboundUuid: string;
9
+ }, {
10
+ inboundUuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ isSuccess: z.ZodBoolean;
16
+ }, "strip", z.ZodTypeAny, {
17
+ isSuccess: boolean;
18
+ }, {
19
+ isSuccess: boolean;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ response: {
23
+ isSuccess: boolean;
24
+ };
25
+ }, {
26
+ response: {
27
+ isSuccess: boolean;
28
+ };
29
+ }>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
32
+ //# sourceMappingURL=remove-inbound-from-nodes.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-inbound-from-nodes.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/remove-inbound-from-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,wCAAmD,CAAC;IAC7D,MAAM,OAAO,wCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveInboundFromNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var RemoveInboundFromNodesCommand;
7
+ (function (RemoveInboundFromNodesCommand) {
8
+ RemoveInboundFromNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_NODES;
9
+ RemoveInboundFromNodesCommand.TSQ_url = RemoveInboundFromNodesCommand.url;
10
+ RemoveInboundFromNodesCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ RemoveInboundFromNodesCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(RemoveInboundFromNodesCommand || (exports.RemoveInboundFromNodesCommand = RemoveInboundFromNodesCommand = {}));
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RemoveInboundFromUsersCommand {
3
+ const url: "/api/inbounds/bulk/remove-from-users";
4
+ const TSQ_url: "/api/inbounds/bulk/remove-from-users";
5
+ const RequestSchema: z.ZodObject<{
6
+ inboundUuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ inboundUuid: string;
9
+ }, {
10
+ inboundUuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ isSuccess: z.ZodBoolean;
16
+ }, "strip", z.ZodTypeAny, {
17
+ isSuccess: boolean;
18
+ }, {
19
+ isSuccess: boolean;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ response: {
23
+ isSuccess: boolean;
24
+ };
25
+ }, {
26
+ response: {
27
+ isSuccess: boolean;
28
+ };
29
+ }>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
32
+ //# sourceMappingURL=remove-inbound-from-users.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-inbound-from-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/remove-inbound-from-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,wCAAmD,CAAC;IAC7D,MAAM,OAAO,wCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveInboundFromUsersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var RemoveInboundFromUsersCommand;
7
+ (function (RemoveInboundFromUsersCommand) {
8
+ RemoveInboundFromUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_USERS;
9
+ RemoveInboundFromUsersCommand.TSQ_url = RemoveInboundFromUsersCommand.url;
10
+ RemoveInboundFromUsersCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ RemoveInboundFromUsersCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(RemoveInboundFromUsersCommand || (exports.RemoveInboundFromUsersCommand = RemoveInboundFromUsersCommand = {}));
@@ -7,7 +7,6 @@ export declare namespace GetFullInboundsCommand {
7
7
  uuid: z.ZodString;
8
8
  tag: z.ZodString;
9
9
  type: z.ZodString;
10
- protocol: z.ZodString;
11
10
  port: z.ZodNumber;
12
11
  network: z.ZodNullable<z.ZodString>;
13
12
  security: z.ZodNullable<z.ZodString>;
@@ -44,7 +43,6 @@ export declare namespace GetFullInboundsCommand {
44
43
  uuid: string;
45
44
  type: string;
46
45
  tag: string;
47
- protocol: string;
48
46
  port: number;
49
47
  network: string | null;
50
48
  security: string | null;
@@ -63,7 +61,6 @@ export declare namespace GetFullInboundsCommand {
63
61
  uuid: string;
64
62
  type: string;
65
63
  tag: string;
66
- protocol: string;
67
64
  port: number;
68
65
  network: string | null;
69
66
  security: string | null;
@@ -84,7 +81,6 @@ export declare namespace GetFullInboundsCommand {
84
81
  uuid: string;
85
82
  type: string;
86
83
  tag: string;
87
- protocol: string;
88
84
  port: number;
89
85
  network: string | null;
90
86
  security: string | null;
@@ -105,7 +101,6 @@ export declare namespace GetFullInboundsCommand {
105
101
  uuid: string;
106
102
  type: string;
107
103
  tag: string;
108
- protocol: string;
109
104
  port: number;
110
105
  network: string | null;
111
106
  security: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-full-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../commands/inbounds/get-full-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,sBAAsC,CAAC;IAChD,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-full-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../commands/inbounds/get-full-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,sBAAsC,CAAC;IAChD,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,3 +1,4 @@
1
+ export * from './bulk';
1
2
  export * from './get-full-inbounds.command';
2
3
  export * from './get-inbounds.command';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/inbounds/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/inbounds/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
@@ -14,5 +14,6 @@ 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("./bulk"), exports);
17
18
  __exportStar(require("./get-full-inbounds.command"), exports);
18
19
  __exportStar(require("./get-inbounds.command"), exports);
@@ -389,5 +389,15 @@ export declare const ERRORS: {
389
389
  readonly message: "Update subscription settings error";
390
390
  readonly httpCode: 500;
391
391
  };
392
+ readonly ADD_INBOUND_TO_USERS_ERROR: {
393
+ readonly code: "A074";
394
+ readonly message: "Add inbound to users error";
395
+ readonly httpCode: 500;
396
+ };
397
+ readonly REMOVE_INBOUND_FROM_USERS_ERROR: {
398
+ readonly code: "A075";
399
+ readonly message: "Remove inbound from users error";
400
+ readonly httpCode: 500;
401
+ };
392
402
  };
393
403
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE3B,CAAC"}
@@ -360,4 +360,14 @@ exports.ERRORS = {
360
360
  message: 'Update subscription settings error',
361
361
  httpCode: 500,
362
362
  },
363
+ ADD_INBOUND_TO_USERS_ERROR: {
364
+ code: 'A074',
365
+ message: 'Add inbound to users error',
366
+ httpCode: 500,
367
+ },
368
+ REMOVE_INBOUND_FROM_USERS_ERROR: {
369
+ code: 'A075',
370
+ message: 'Remove inbound from users error',
371
+ httpCode: 500,
372
+ },
363
373
  };
@@ -3,7 +3,6 @@ export declare const FullInboundsSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  tag: z.ZodString;
5
5
  type: z.ZodString;
6
- protocol: z.ZodString;
7
6
  port: z.ZodNumber;
8
7
  network: z.ZodNullable<z.ZodString>;
9
8
  security: z.ZodNullable<z.ZodString>;
@@ -40,7 +39,6 @@ export declare const FullInboundsSchema: z.ZodObject<{
40
39
  uuid: string;
41
40
  type: string;
42
41
  tag: string;
43
- protocol: string;
44
42
  port: number;
45
43
  network: string | null;
46
44
  security: string | null;
@@ -59,7 +57,6 @@ export declare const FullInboundsSchema: z.ZodObject<{
59
57
  uuid: string;
60
58
  type: string;
61
59
  tag: string;
62
- protocol: string;
63
60
  port: number;
64
61
  network: string | null;
65
62
  security: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"full-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/full-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB7B,CAAC"}
1
+ {"version":3,"file":"full-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/full-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB7B,CAAC"}
@@ -6,7 +6,6 @@ exports.FullInboundsSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.string().uuid(),
7
7
  tag: zod_1.z.string(),
8
8
  type: zod_1.z.string(),
9
- protocol: zod_1.z.string(),
10
9
  port: zod_1.z.number(),
11
10
  network: zod_1.z.string().nullable(),
12
11
  security: zod_1.z.string().nullable(),
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddInboundToNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var AddInboundToNodesCommand;
7
+ (function (AddInboundToNodesCommand) {
8
+ AddInboundToNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_NODES;
9
+ AddInboundToNodesCommand.TSQ_url = AddInboundToNodesCommand.url;
10
+ AddInboundToNodesCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ AddInboundToNodesCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(AddInboundToNodesCommand || (exports.AddInboundToNodesCommand = AddInboundToNodesCommand = {}));
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddInboundToUsersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var AddInboundToUsersCommand;
7
+ (function (AddInboundToUsersCommand) {
8
+ AddInboundToUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_USERS;
9
+ AddInboundToUsersCommand.TSQ_url = AddInboundToUsersCommand.url;
10
+ AddInboundToUsersCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ AddInboundToUsersCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(AddInboundToUsersCommand || (exports.AddInboundToUsersCommand = AddInboundToUsersCommand = {}));
@@ -0,0 +1,20 @@
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("./add-inbound-to-nodes.command"), exports);
18
+ __exportStar(require("./add-inbound-to-users.command"), exports);
19
+ __exportStar(require("./remove-inbound-from-nodes.command"), exports);
20
+ __exportStar(require("./remove-inbound-from-users.command"), exports);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveInboundFromNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var RemoveInboundFromNodesCommand;
7
+ (function (RemoveInboundFromNodesCommand) {
8
+ RemoveInboundFromNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_NODES;
9
+ RemoveInboundFromNodesCommand.TSQ_url = RemoveInboundFromNodesCommand.url;
10
+ RemoveInboundFromNodesCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ RemoveInboundFromNodesCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(RemoveInboundFromNodesCommand || (exports.RemoveInboundFromNodesCommand = RemoveInboundFromNodesCommand = {}));
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveInboundFromUsersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ var RemoveInboundFromUsersCommand;
7
+ (function (RemoveInboundFromUsersCommand) {
8
+ RemoveInboundFromUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_USERS;
9
+ RemoveInboundFromUsersCommand.TSQ_url = RemoveInboundFromUsersCommand.url;
10
+ RemoveInboundFromUsersCommand.RequestSchema = zod_1.z.object({
11
+ inboundUuid: zod_1.z
12
+ .string({
13
+ invalid_type_error: 'Inbound UUID must be a string',
14
+ })
15
+ .uuid('Inbound UUID must be a valid UUID'),
16
+ });
17
+ RemoveInboundFromUsersCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ isSuccess: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ })(RemoveInboundFromUsersCommand || (exports.RemoveInboundFromUsersCommand = RemoveInboundFromUsersCommand = {}));
@@ -14,5 +14,6 @@ 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("./bulk"), exports);
17
18
  __exportStar(require("./get-full-inbounds.command"), exports);
18
19
  __exportStar(require("./get-inbounds.command"), exports);
@@ -360,4 +360,14 @@ exports.ERRORS = {
360
360
  message: 'Update subscription settings error',
361
361
  httpCode: 500,
362
362
  },
363
+ ADD_INBOUND_TO_USERS_ERROR: {
364
+ code: 'A074',
365
+ message: 'Add inbound to users error',
366
+ httpCode: 500,
367
+ },
368
+ REMOVE_INBOUND_FROM_USERS_ERROR: {
369
+ code: 'A075',
370
+ message: 'Remove inbound from users error',
371
+ httpCode: 500,
372
+ },
363
373
  };
@@ -6,7 +6,6 @@ exports.FullInboundsSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.string().uuid(),
7
7
  tag: zod_1.z.string(),
8
8
  type: zod_1.z.string(),
9
- protocol: zod_1.z.string(),
10
9
  port: zod_1.z.number(),
11
10
  network: zod_1.z.string().nullable(),
12
11
  security: zod_1.z.string().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",