@remnawave/backend-contract 2.0.0-alpha.1 → 2.0.0-alpha.11

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 (126) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +22 -0
  7. package/build/backend/api/controllers/users.d.ts +1 -0
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +1 -0
  10. package/build/backend/api/routes.d.ts +15 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +15 -0
  13. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +7 -0
  14. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
  15. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  16. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +7 -0
  17. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
  18. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +7 -0
  19. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
  20. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +9 -0
  21. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
  22. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +7 -0
  23. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
  24. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +7 -0
  25. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.d.ts +6 -6
  27. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  28. package/build/backend/commands/hosts/create.command.js +4 -2
  29. package/build/backend/commands/index.d.ts +1 -0
  30. package/build/backend/commands/index.d.ts.map +1 -1
  31. package/build/backend/commands/index.js +1 -0
  32. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  33. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  34. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  35. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  36. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  37. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  38. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  39. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  40. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  41. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  42. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  43. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  44. package/build/backend/commands/infra-billing/index.d.ts +6 -0
  45. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  46. package/build/backend/commands/infra-billing/index.js +21 -0
  47. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  48. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  49. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  50. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +7 -0
  51. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
  52. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  53. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +7 -0
  54. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -1
  55. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +9 -0
  56. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
  57. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +7 -0
  58. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
  59. package/build/backend/commands/nodes/actions/disable.command.d.ts +66 -0
  60. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  61. package/build/backend/commands/nodes/actions/enable.command.d.ts +66 -0
  62. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  63. package/build/backend/commands/nodes/actions/reorder.command.d.ts +92 -0
  64. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  65. package/build/backend/commands/nodes/create.command.d.ts +69 -0
  66. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  67. package/build/backend/commands/nodes/create.command.js +1 -0
  68. package/build/backend/commands/nodes/get-all.command.d.ts +66 -0
  69. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  70. package/build/backend/commands/nodes/get-one.command.d.ts +66 -0
  71. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  72. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  73. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  74. package/build/backend/commands/nodes/update.command.d.ts +95 -0
  75. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  76. package/build/backend/commands/nodes/update.command.js +1 -0
  77. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  78. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  79. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  80. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  81. package/build/backend/commands/users/index.d.ts +1 -0
  82. package/build/backend/commands/users/index.d.ts.map +1 -1
  83. package/build/backend/commands/users/index.js +1 -0
  84. package/build/backend/constants/errors/errors.d.ts +35 -0
  85. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  86. package/build/backend/constants/errors/errors.js +35 -0
  87. package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -0
  88. package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
  89. package/build/backend/models/config-profile-inbounds.schema.js +1 -0
  90. package/build/backend/models/config-profile.schema.d.ts +5 -0
  91. package/build/backend/models/config-profile.schema.d.ts.map +1 -1
  92. package/build/backend/models/index.d.ts +1 -0
  93. package/build/backend/models/index.d.ts.map +1 -1
  94. package/build/backend/models/index.js +1 -0
  95. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  96. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  97. package/build/backend/models/infra-provider.schema.js +41 -0
  98. package/build/backend/models/internal-squad.schema.d.ts +5 -0
  99. package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
  100. package/build/backend/models/nodes.schema.d.ts +46 -0
  101. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  102. package/build/backend/models/nodes.schema.js +3 -0
  103. package/build/frontend/api/controllers/index.js +1 -0
  104. package/build/frontend/api/controllers/infra-billing.js +22 -0
  105. package/build/frontend/api/controllers/users.js +1 -0
  106. package/build/frontend/api/routes.js +15 -0
  107. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  108. package/build/frontend/commands/hosts/create.command.js +4 -2
  109. package/build/frontend/commands/index.js +1 -0
  110. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  111. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  112. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  113. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  114. package/build/frontend/commands/infra-billing/index.js +21 -0
  115. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  116. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  117. package/build/frontend/commands/nodes/create.command.js +1 -0
  118. package/build/frontend/commands/nodes/update.command.js +1 -0
  119. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  120. package/build/frontend/commands/users/index.js +1 -0
  121. package/build/frontend/constants/errors/errors.js +35 -0
  122. package/build/frontend/models/config-profile-inbounds.schema.js +1 -0
  123. package/build/frontend/models/index.js +1 -0
  124. package/build/frontend/models/infra-provider.schema.js +41 -0
  125. package/build/frontend/models/nodes.schema.js +3 -0
  126. package/package.json +1 -1
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+ export declare const InfraProviderSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ name: z.ZodString;
5
+ faviconLink: z.ZodNullable<z.ZodString>;
6
+ loginUrl: z.ZodNullable<z.ZodString>;
7
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
8
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
9
+ billingHistory: z.ZodObject<{
10
+ totalAmount: z.ZodNumber;
11
+ totalBills: z.ZodNumber;
12
+ }, "strip", z.ZodTypeAny, {
13
+ totalAmount: number;
14
+ totalBills: number;
15
+ }, {
16
+ totalAmount: number;
17
+ totalBills: number;
18
+ }>;
19
+ billingNodes: z.ZodArray<z.ZodObject<{
20
+ nodeUuid: z.ZodString;
21
+ name: z.ZodString;
22
+ countryCode: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ countryCode: string;
26
+ nodeUuid: string;
27
+ }, {
28
+ name: string;
29
+ countryCode: string;
30
+ nodeUuid: string;
31
+ }>, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ uuid: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
39
+ billingHistory: {
40
+ totalAmount: number;
41
+ totalBills: number;
42
+ };
43
+ billingNodes: {
44
+ name: string;
45
+ countryCode: string;
46
+ nodeUuid: string;
47
+ }[];
48
+ }, {
49
+ uuid: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ name: string;
53
+ faviconLink: string | null;
54
+ loginUrl: string | null;
55
+ billingHistory: {
56
+ totalAmount: number;
57
+ totalBills: number;
58
+ };
59
+ billingNodes: {
60
+ name: string;
61
+ countryCode: string;
62
+ nodeUuid: string;
63
+ }[];
64
+ }>;
65
+ export declare const PartialInfraProviderSchema: z.ZodObject<{
66
+ uuid: z.ZodString;
67
+ name: z.ZodString;
68
+ faviconLink: z.ZodNullable<z.ZodString>;
69
+ loginUrl: z.ZodNullable<z.ZodString>;
70
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
71
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ uuid: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ name: string;
77
+ faviconLink: string | null;
78
+ loginUrl: string | null;
79
+ }, {
80
+ uuid: string;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ name: string;
84
+ faviconLink: string | null;
85
+ loginUrl: string | null;
86
+ }>;
87
+ //# sourceMappingURL=infra-provider.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.InfraProviderSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ name: zod_1.z.string(),
8
+ faviconLink: zod_1.z.nullable(zod_1.z.string()),
9
+ loginUrl: zod_1.z.nullable(zod_1.z.string()),
10
+ createdAt: zod_1.z
11
+ .string()
12
+ .datetime()
13
+ .transform((str) => new Date(str)),
14
+ updatedAt: zod_1.z
15
+ .string()
16
+ .datetime()
17
+ .transform((str) => new Date(str)),
18
+ billingHistory: zod_1.z.object({
19
+ totalAmount: zod_1.z.number(),
20
+ totalBills: zod_1.z.number(),
21
+ }),
22
+ billingNodes: zod_1.z.array(zod_1.z.object({
23
+ nodeUuid: zod_1.z.string(),
24
+ name: zod_1.z.string(),
25
+ countryCode: zod_1.z.string(),
26
+ })),
27
+ });
28
+ exports.PartialInfraProviderSchema = zod_1.z.object({
29
+ uuid: zod_1.z.string().uuid(),
30
+ name: zod_1.z.string(),
31
+ faviconLink: zod_1.z.nullable(zod_1.z.string()),
32
+ loginUrl: zod_1.z.nullable(zod_1.z.string()),
33
+ createdAt: zod_1.z
34
+ .string()
35
+ .datetime()
36
+ .transform((str) => new Date(str)),
37
+ updatedAt: zod_1.z
38
+ .string()
39
+ .datetime()
40
+ .transform((str) => new Date(str)),
41
+ });
@@ -20,6 +20,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
20
20
  network: z.ZodNullable<z.ZodString>;
21
21
  security: z.ZodNullable<z.ZodString>;
22
22
  port: z.ZodNullable<z.ZodNumber>;
23
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
23
24
  }, "strip", z.ZodTypeAny, {
24
25
  type: string;
25
26
  uuid: string;
@@ -28,6 +29,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
28
29
  network: string | null;
29
30
  security: string | null;
30
31
  port: number | null;
32
+ rawInbound?: unknown;
31
33
  }, {
32
34
  type: string;
33
35
  uuid: string;
@@ -36,6 +38,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
36
38
  network: string | null;
37
39
  security: string | null;
38
40
  port: number | null;
41
+ rawInbound?: unknown;
39
42
  }>, "many">;
40
43
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
41
44
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -48,6 +51,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
48
51
  network: string | null;
49
52
  security: string | null;
50
53
  port: number | null;
54
+ rawInbound?: unknown;
51
55
  }[];
52
56
  uuid: string;
53
57
  createdAt: Date;
@@ -66,6 +70,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
66
70
  network: string | null;
67
71
  security: string | null;
68
72
  port: number | null;
73
+ rawInbound?: unknown;
69
74
  }[];
70
75
  uuid: string;
71
76
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC"}
1
+ {"version":3,"file":"internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC"}
@@ -36,6 +36,7 @@ export declare const NodesSchema: z.ZodObject<{
36
36
  network: z.ZodNullable<z.ZodString>;
37
37
  security: z.ZodNullable<z.ZodString>;
38
38
  port: z.ZodNullable<z.ZodNumber>;
39
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
39
40
  }, "strip", z.ZodTypeAny, {
40
41
  type: string;
41
42
  uuid: string;
@@ -44,6 +45,7 @@ export declare const NodesSchema: z.ZodObject<{
44
45
  network: string | null;
45
46
  security: string | null;
46
47
  port: number | null;
48
+ rawInbound?: unknown;
47
49
  }, {
48
50
  type: string;
49
51
  uuid: string;
@@ -52,7 +54,31 @@ export declare const NodesSchema: z.ZodObject<{
52
54
  network: string | null;
53
55
  security: string | null;
54
56
  port: number | null;
57
+ rawInbound?: unknown;
55
58
  }>, "many">>;
59
+ providerUuid: z.ZodNullable<z.ZodString>;
60
+ provider: z.ZodNullable<z.ZodObject<{
61
+ uuid: z.ZodString;
62
+ name: z.ZodString;
63
+ faviconLink: z.ZodNullable<z.ZodString>;
64
+ loginUrl: z.ZodNullable<z.ZodString>;
65
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
66
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ uuid: string;
69
+ createdAt: Date;
70
+ updatedAt: Date;
71
+ name: string;
72
+ faviconLink: string | null;
73
+ loginUrl: string | null;
74
+ }, {
75
+ uuid: string;
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ name: string;
79
+ faviconLink: string | null;
80
+ loginUrl: string | null;
81
+ }>>;
56
82
  }, "strip", z.ZodTypeAny, {
57
83
  uuid: string;
58
84
  createdAt: Date;
@@ -90,7 +116,17 @@ export declare const NodesSchema: z.ZodObject<{
90
116
  network: string | null;
91
117
  security: string | null;
92
118
  port: number | null;
119
+ rawInbound?: unknown;
93
120
  }[] | null;
121
+ providerUuid: string | null;
122
+ provider: {
123
+ uuid: string;
124
+ createdAt: Date;
125
+ updatedAt: Date;
126
+ name: string;
127
+ faviconLink: string | null;
128
+ loginUrl: string | null;
129
+ } | null;
94
130
  }, {
95
131
  uuid: string;
96
132
  createdAt: string;
@@ -128,6 +164,16 @@ export declare const NodesSchema: z.ZodObject<{
128
164
  network: string | null;
129
165
  security: string | null;
130
166
  port: number | null;
167
+ rawInbound?: unknown;
131
168
  }[] | null;
169
+ providerUuid: string | null;
170
+ provider: {
171
+ uuid: string;
172
+ createdAt: string;
173
+ updatedAt: string;
174
+ name: string;
175
+ faviconLink: string | null;
176
+ loginUrl: string | null;
177
+ } | null;
132
178
  }>;
133
179
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
6
+ const infra_provider_schema_1 = require("./infra-provider.schema");
6
7
  exports.NodesSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.string().uuid(),
8
9
  name: zod_1.z.string(),
@@ -42,4 +43,6 @@ exports.NodesSchema = zod_1.z.object({
42
43
  .transform((str) => new Date(str)),
43
44
  activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
44
45
  activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
46
+ providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
+ provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
45
48
  });
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
4
+ exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
5
+ exports.INFRA_BILLING_ROUTES = {
6
+ GET_PROVIDERS: 'providers', // Get list of all providers // get
7
+ CREATE_PROVIDER: 'providers', // Create new provider // post
8
+ UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
9
+ DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
10
+ GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
11
+ GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
12
+ CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
13
+ UPDATE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
14
+ DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
15
+ GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
16
+ CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
17
+ DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
18
+ // GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
19
+ // GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
20
+ // GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
21
+ // `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
22
+ };
@@ -9,6 +9,7 @@ exports.USERS_ROUTES = {
9
9
  GET: '',
10
10
  DELETE: (uuid) => `${uuid}`,
11
11
  GET_BY_UUID: (uuid) => `${uuid}`,
12
+ ACCESSIBLE_NODES: (uuid) => `${uuid}/accessible-nodes`,
12
13
  ACTIONS: {
13
14
  ENABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/enable`,
14
15
  DISABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/disable`,
@@ -80,6 +80,7 @@ exports.REST_API = {
80
80
  GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET}`,
81
81
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE(uuid)}`,
82
82
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID(uuid)}`,
83
+ ACCESSIBLE_NODES: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACCESSIBLE_NODES(uuid)}`,
83
84
  ACTIONS: {
84
85
  DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.DISABLE(uuid)}`,
85
86
  ENABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ENABLE(uuid)}`,
@@ -178,4 +179,18 @@ exports.REST_API = {
178
179
  GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
179
180
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
180
181
  },
182
+ INFRA_BILLING: {
183
+ GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
184
+ CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
185
+ UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
186
+ DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
187
+ GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
188
+ GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
189
+ CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
190
+ UPDATE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(uuid)}`,
191
+ DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
192
+ GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
193
+ CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
194
+ DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
195
+ },
181
196
  };
@@ -13,8 +13,8 @@ var CreateConfigProfileCommand;
13
13
  CreateConfigProfileCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(6, 'Name must be at least 6 characters')
17
- .max(16, 'Name must be less than 16 characters')
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(20, 'Name must be less than 20 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  config: zod_1.z.object({}).passthrough(),
20
20
  });
@@ -15,12 +15,14 @@ var CreateHostCommand;
15
15
  .string({
16
16
  invalid_type_error: 'Config Profile UUID must be a string',
17
17
  })
18
- .uuid('Config Profile UUID must be a valid UUID'),
18
+ .uuid('Config Profile UUID must be a valid UUID')
19
+ .optional(),
19
20
  configProfileInboundUuid: zod_1.z
20
21
  .string({
21
22
  invalid_type_error: 'Inbound UUID must be a string',
22
23
  })
23
- .uuid('Inbound UUID must be a valid UUID'),
24
+ .uuid('Inbound UUID must be a valid UUID')
25
+ .optional(),
24
26
  remark: zod_1.z
25
27
  .string({
26
28
  invalid_type_error: 'Remark must be a string',
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInfraProviderCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var CreateInfraProviderCommand;
9
+ (function (CreateInfraProviderCommand) {
10
+ CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
11
+ CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
12
+ CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
13
+ CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
+ name: zod_1.z
15
+ .string()
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(30, 'Name must be less than 255 characters'),
18
+ faviconLink: zod_1.z.string().url().optional(),
19
+ loginUrl: zod_1.z.string().url().optional(),
20
+ });
21
+ CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
22
+ response: models_1.InfraProviderSchema,
23
+ });
24
+ })(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteInfraProviderByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ var DeleteInfraProviderByUuidCommand;
8
+ (function (DeleteInfraProviderByUuidCommand) {
9
+ DeleteInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_PROVIDER(':uuid');
10
+ DeleteInfraProviderByUuidCommand.TSQ_url = DeleteInfraProviderByUuidCommand.url;
11
+ DeleteInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid');
12
+ DeleteInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ });
15
+ DeleteInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ isDeleted: zod_1.z.boolean(),
18
+ }),
19
+ });
20
+ })(DeleteInfraProviderByUuidCommand || (exports.DeleteInfraProviderByUuidCommand = DeleteInfraProviderByUuidCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetInfraProviderByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetInfraProviderByUuidCommand;
9
+ (function (GetInfraProviderByUuidCommand) {
10
+ GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
11
+ GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
12
+ GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
13
+ GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.InfraProviderSchema,
18
+ });
19
+ })(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetInfraProvidersCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var GetInfraProvidersCommand;
9
+ (function (GetInfraProvidersCommand) {
10
+ GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
11
+ GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
12
+ GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
13
+ GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ total: zod_1.z.number(),
16
+ providers: zod_1.z.array(models_1.InfraProviderSchema),
17
+ }),
18
+ });
19
+ })(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
@@ -0,0 +1,21 @@
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("./create-infra-provider.command"), exports);
18
+ __exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
19
+ __exportStar(require("./get-infra-provider-by-uuid.command"), exports);
20
+ __exportStar(require("./get-infra-providers.command"), exports);
21
+ __exportStar(require("./update-infra-provider.command"), exports);
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateInfraProviderCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var UpdateInfraProviderCommand;
9
+ (function (UpdateInfraProviderCommand) {
10
+ UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
11
+ UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
12
+ UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
13
+ UpdateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ name: zod_1.z
16
+ .string()
17
+ .min(2, 'Name must be at least 2 characters')
18
+ .max(30, 'Name must be less than 255 characters')
19
+ .optional(),
20
+ faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
21
+ loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
22
+ });
23
+ UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
24
+ response: models_1.InfraProviderSchema,
25
+ });
26
+ })(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
13
13
  CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(6, 'Name must be at least 6 characters')
17
- .max(16, 'Name must be less than 16 characters')
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(20, 'Name must be less than 20 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  inbounds: zod_1.z.array(zod_1.z.string().uuid()),
20
20
  });
@@ -39,6 +39,7 @@ var CreateNodeCommand;
39
39
  activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
40
40
  invalid_type_error: 'Active inbounds must be an array of UUIDs',
41
41
  })),
42
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
42
43
  });
43
44
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
44
45
  response: models_1.NodesSchema,
@@ -35,6 +35,7 @@ var UpdateNodeCommand;
35
35
  activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
36
36
  invalid_type_error: 'Active inbounds must be an array of UUIDs',
37
37
  })),
38
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
38
39
  });
39
40
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
40
41
  response: models_1.NodesSchema,
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserAccessibleNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const api_1 = require("../../api");
7
+ var GetUserAccessibleNodesCommand;
8
+ (function (GetUserAccessibleNodesCommand) {
9
+ GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
10
+ GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
11
+ GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
12
+ GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ });
15
+ GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ userUuid: zod_1.z.string().uuid(),
18
+ activeNodes: zod_1.z.array(zod_1.z.object({
19
+ uuid: zod_1.z.string().uuid(),
20
+ nodeName: zod_1.z.string(),
21
+ countryCode: zod_1.z.string(),
22
+ configProfileUuid: zod_1.z.string().uuid(),
23
+ configProfileName: zod_1.z.string(),
24
+ activeSquads: zod_1.z.array(zod_1.z.object({
25
+ squadName: zod_1.z.string(),
26
+ activeInbounds: zod_1.z.array(zod_1.z.string()),
27
+ })),
28
+ })),
29
+ }),
30
+ });
31
+ })(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
@@ -21,6 +21,7 @@ __exportStar(require("./create-user.command"), exports);
21
21
  __exportStar(require("./delete-user.command"), exports);
22
22
  __exportStar(require("./get-all-users.command"), exports);
23
23
  __exportStar(require("./get-by"), exports);
24
+ __exportStar(require("./get-user-accessible-nodes.command"), exports);
24
25
  __exportStar(require("./get-user-by-uuid.command"), exports);
25
26
  __exportStar(require("./get-user-usage-by-range.command"), exports);
26
27
  __exportStar(require("./tags"), exports);
@@ -620,4 +620,39 @@ exports.ERRORS = {
620
620
  message: 'Config profile inbound not found in specified profile',
621
621
  httpCode: 404,
622
622
  },
623
+ GET_USER_ACCESSIBLE_NODES_ERROR: {
624
+ code: 'A125',
625
+ message: 'Get user accessible nodes error',
626
+ httpCode: 500,
627
+ },
628
+ GET_INFRA_PROVIDERS_ERROR: {
629
+ code: 'A126',
630
+ message: 'Get infra providers error',
631
+ httpCode: 500,
632
+ },
633
+ GET_INFRA_PROVIDER_BY_UUID_ERROR: {
634
+ code: 'A127',
635
+ message: 'Get infra provider by UUID error',
636
+ httpCode: 500,
637
+ },
638
+ INFRA_PROVIDER_NOT_FOUND: {
639
+ code: 'A128',
640
+ message: 'Infra provider not found',
641
+ httpCode: 404,
642
+ },
643
+ DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
644
+ code: 'A129',
645
+ message: 'Delete infra provider by UUID error',
646
+ httpCode: 500,
647
+ },
648
+ CREATE_INFRA_PROVIDER_ERROR: {
649
+ code: 'A130',
650
+ message: 'Create infra provider error',
651
+ httpCode: 500,
652
+ },
653
+ UPDATE_INFRA_PROVIDER_ERROR: {
654
+ code: 'A131',
655
+ message: 'Update infra provider error',
656
+ httpCode: 500,
657
+ },
623
658
  };
@@ -10,4 +10,5 @@ exports.ConfigProfileInboundsSchema = zod_1.z.object({
10
10
  network: zod_1.z.nullable(zod_1.z.string()),
11
11
  security: zod_1.z.nullable(zod_1.z.string()),
12
12
  port: zod_1.z.nullable(zod_1.z.number()),
13
+ rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
13
14
  });