@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
@@ -40,6 +40,7 @@ export declare namespace UpdateNodeCommand {
40
40
  network: z.ZodNullable<z.ZodString>;
41
41
  security: z.ZodNullable<z.ZodString>;
42
42
  port: z.ZodNullable<z.ZodNumber>;
43
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
43
44
  }, "strip", z.ZodTypeAny, {
44
45
  type: string;
45
46
  uuid: string;
@@ -48,6 +49,7 @@ export declare namespace UpdateNodeCommand {
48
49
  network: string | null;
49
50
  security: string | null;
50
51
  port: number | null;
52
+ rawInbound?: unknown;
51
53
  }, {
52
54
  type: string;
53
55
  uuid: string;
@@ -56,7 +58,31 @@ export declare namespace UpdateNodeCommand {
56
58
  network: string | null;
57
59
  security: string | null;
58
60
  port: number | null;
61
+ rawInbound?: unknown;
59
62
  }>, "many">>;
63
+ providerUuid: z.ZodNullable<z.ZodString>;
64
+ provider: z.ZodNullable<z.ZodObject<{
65
+ uuid: z.ZodString;
66
+ name: z.ZodString;
67
+ faviconLink: z.ZodNullable<z.ZodString>;
68
+ loginUrl: z.ZodNullable<z.ZodString>;
69
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
70
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ uuid: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
75
+ name: string;
76
+ faviconLink: string | null;
77
+ loginUrl: string | null;
78
+ }, {
79
+ uuid: string;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ name: string;
83
+ faviconLink: string | null;
84
+ loginUrl: string | null;
85
+ }>>;
60
86
  }, "uuid"> & {
61
87
  name: z.ZodOptional<z.ZodString>;
62
88
  address: z.ZodOptional<z.ZodString>;
@@ -69,6 +95,7 @@ export declare namespace UpdateNodeCommand {
69
95
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
70
96
  activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
71
97
  activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
99
  }, "strip", z.ZodTypeAny, {
73
100
  uuid: string;
74
101
  name?: string | undefined;
@@ -82,6 +109,7 @@ export declare namespace UpdateNodeCommand {
82
109
  consumptionMultiplier?: number | undefined;
83
110
  activeConfigProfileUuid?: string | undefined;
84
111
  activeInbounds?: string[] | undefined;
112
+ providerUuid?: string | null | undefined;
85
113
  }, {
86
114
  uuid: string;
87
115
  name?: string | undefined;
@@ -95,6 +123,7 @@ export declare namespace UpdateNodeCommand {
95
123
  consumptionMultiplier?: number | undefined;
96
124
  activeConfigProfileUuid?: string | undefined;
97
125
  activeInbounds?: string[] | undefined;
126
+ providerUuid?: string | null | undefined;
98
127
  }>;
99
128
  type Request = z.infer<typeof RequestSchema>;
100
129
  const ResponseSchema: z.ZodObject<{
@@ -135,6 +164,7 @@ export declare namespace UpdateNodeCommand {
135
164
  network: z.ZodNullable<z.ZodString>;
136
165
  security: z.ZodNullable<z.ZodString>;
137
166
  port: z.ZodNullable<z.ZodNumber>;
167
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
138
168
  }, "strip", z.ZodTypeAny, {
139
169
  type: string;
140
170
  uuid: string;
@@ -143,6 +173,7 @@ export declare namespace UpdateNodeCommand {
143
173
  network: string | null;
144
174
  security: string | null;
145
175
  port: number | null;
176
+ rawInbound?: unknown;
146
177
  }, {
147
178
  type: string;
148
179
  uuid: string;
@@ -151,7 +182,31 @@ export declare namespace UpdateNodeCommand {
151
182
  network: string | null;
152
183
  security: string | null;
153
184
  port: number | null;
185
+ rawInbound?: unknown;
154
186
  }>, "many">>;
187
+ providerUuid: z.ZodNullable<z.ZodString>;
188
+ provider: z.ZodNullable<z.ZodObject<{
189
+ uuid: z.ZodString;
190
+ name: z.ZodString;
191
+ faviconLink: z.ZodNullable<z.ZodString>;
192
+ loginUrl: z.ZodNullable<z.ZodString>;
193
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
194
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ uuid: string;
197
+ createdAt: Date;
198
+ updatedAt: Date;
199
+ name: string;
200
+ faviconLink: string | null;
201
+ loginUrl: string | null;
202
+ }, {
203
+ uuid: string;
204
+ createdAt: string;
205
+ updatedAt: string;
206
+ name: string;
207
+ faviconLink: string | null;
208
+ loginUrl: string | null;
209
+ }>>;
155
210
  }, "strip", z.ZodTypeAny, {
156
211
  uuid: string;
157
212
  createdAt: Date;
@@ -189,7 +244,17 @@ export declare namespace UpdateNodeCommand {
189
244
  network: string | null;
190
245
  security: string | null;
191
246
  port: number | null;
247
+ rawInbound?: unknown;
192
248
  }[] | null;
249
+ providerUuid: string | null;
250
+ provider: {
251
+ uuid: string;
252
+ createdAt: Date;
253
+ updatedAt: Date;
254
+ name: string;
255
+ faviconLink: string | null;
256
+ loginUrl: string | null;
257
+ } | null;
193
258
  }, {
194
259
  uuid: string;
195
260
  createdAt: string;
@@ -227,7 +292,17 @@ export declare namespace UpdateNodeCommand {
227
292
  network: string | null;
228
293
  security: string | null;
229
294
  port: number | null;
295
+ rawInbound?: unknown;
230
296
  }[] | null;
297
+ providerUuid: string | null;
298
+ provider: {
299
+ uuid: string;
300
+ createdAt: string;
301
+ updatedAt: string;
302
+ name: string;
303
+ faviconLink: string | null;
304
+ loginUrl: string | null;
305
+ } | null;
231
306
  }>;
232
307
  }, "strip", z.ZodTypeAny, {
233
308
  response: {
@@ -267,7 +342,17 @@ export declare namespace UpdateNodeCommand {
267
342
  network: string | null;
268
343
  security: string | null;
269
344
  port: number | null;
345
+ rawInbound?: unknown;
270
346
  }[] | null;
347
+ providerUuid: string | null;
348
+ provider: {
349
+ uuid: string;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ name: string;
353
+ faviconLink: string | null;
354
+ loginUrl: string | null;
355
+ } | null;
271
356
  };
272
357
  }, {
273
358
  response: {
@@ -307,7 +392,17 @@ export declare namespace UpdateNodeCommand {
307
392
  network: string | null;
308
393
  security: string | null;
309
394
  port: number | null;
395
+ rawInbound?: unknown;
310
396
  }[] | null;
397
+ providerUuid: string | null;
398
+ provider: {
399
+ uuid: string;
400
+ createdAt: string;
401
+ updatedAt: string;
402
+ name: string;
403
+ faviconLink: string | null;
404
+ loginUrl: string | null;
405
+ } | null;
311
406
  };
312
407
  }>;
313
408
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmCxB,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"}
1
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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"}
@@ -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,114 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetUserAccessibleNodesCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ uuid: string;
10
+ }, {
11
+ uuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ userUuid: z.ZodString;
17
+ activeNodes: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ nodeName: z.ZodString;
20
+ countryCode: z.ZodString;
21
+ configProfileUuid: z.ZodString;
22
+ configProfileName: z.ZodString;
23
+ activeSquads: z.ZodArray<z.ZodObject<{
24
+ squadName: z.ZodString;
25
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ activeInbounds: string[];
28
+ squadName: string;
29
+ }, {
30
+ activeInbounds: string[];
31
+ squadName: string;
32
+ }>, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ uuid: string;
35
+ countryCode: string;
36
+ nodeName: string;
37
+ configProfileUuid: string;
38
+ configProfileName: string;
39
+ activeSquads: {
40
+ activeInbounds: string[];
41
+ squadName: string;
42
+ }[];
43
+ }, {
44
+ uuid: string;
45
+ countryCode: string;
46
+ nodeName: string;
47
+ configProfileUuid: string;
48
+ configProfileName: string;
49
+ activeSquads: {
50
+ activeInbounds: string[];
51
+ squadName: string;
52
+ }[];
53
+ }>, "many">;
54
+ }, "strip", z.ZodTypeAny, {
55
+ userUuid: string;
56
+ activeNodes: {
57
+ uuid: string;
58
+ countryCode: string;
59
+ nodeName: string;
60
+ configProfileUuid: string;
61
+ configProfileName: string;
62
+ activeSquads: {
63
+ activeInbounds: string[];
64
+ squadName: string;
65
+ }[];
66
+ }[];
67
+ }, {
68
+ userUuid: string;
69
+ activeNodes: {
70
+ uuid: string;
71
+ countryCode: string;
72
+ nodeName: string;
73
+ configProfileUuid: string;
74
+ configProfileName: string;
75
+ activeSquads: {
76
+ activeInbounds: string[];
77
+ squadName: string;
78
+ }[];
79
+ }[];
80
+ }>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ response: {
83
+ userUuid: string;
84
+ activeNodes: {
85
+ uuid: string;
86
+ countryCode: string;
87
+ nodeName: string;
88
+ configProfileUuid: string;
89
+ configProfileName: string;
90
+ activeSquads: {
91
+ activeInbounds: string[];
92
+ squadName: string;
93
+ }[];
94
+ }[];
95
+ };
96
+ }, {
97
+ response: {
98
+ userUuid: string;
99
+ activeNodes: {
100
+ uuid: string;
101
+ countryCode: string;
102
+ nodeName: string;
103
+ configProfileUuid: string;
104
+ configProfileName: string;
105
+ activeSquads: {
106
+ activeInbounds: string[];
107
+ squadName: string;
108
+ }[];
109
+ }[];
110
+ };
111
+ }>;
112
+ type Response = z.infer<typeof ResponseSchema>;
113
+ }
114
+ //# sourceMappingURL=get-user-accessible-nodes.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -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 = {}));
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
33
33
  date: Date;
34
34
  nodeName: string;
35
35
  userUuid: string;
36
- total: number;
37
36
  nodeUuid: string;
37
+ total: number;
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
41
  userUuid: string;
42
- total: number;
43
42
  nodeUuid: string;
43
+ total: number;
44
44
  }>, "many">;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  date: Date;
48
48
  nodeName: string;
49
49
  userUuid: string;
50
- total: number;
51
50
  nodeUuid: string;
51
+ total: number;
52
52
  }[];
53
53
  }, {
54
54
  response: {
55
55
  date: string;
56
56
  nodeName: string;
57
57
  userUuid: string;
58
- total: number;
59
58
  nodeUuid: string;
59
+ total: number;
60
60
  }[];
61
61
  }>;
62
62
  type Response = z.infer<typeof ResponseSchema>;
@@ -5,6 +5,7 @@ export * from './create-user.command';
5
5
  export * from './delete-user.command';
6
6
  export * from './get-all-users.command';
7
7
  export * from './get-by';
8
+ export * from './get-user-accessible-nodes.command';
8
9
  export * from './get-user-by-uuid.command';
9
10
  export * from './get-user-usage-by-range.command';
10
11
  export * from './tags';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,4BAA4B,CAAC;AAE3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,QAAQ,CAAC;AAEvB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAElD,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
@@ -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);
@@ -649,5 +649,40 @@ export declare const ERRORS: {
649
649
  readonly message: "Config profile inbound not found in specified profile";
650
650
  readonly httpCode: 404;
651
651
  };
652
+ readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
653
+ readonly code: "A125";
654
+ readonly message: "Get user accessible nodes error";
655
+ readonly httpCode: 500;
656
+ };
657
+ readonly GET_INFRA_PROVIDERS_ERROR: {
658
+ readonly code: "A126";
659
+ readonly message: "Get infra providers error";
660
+ readonly httpCode: 500;
661
+ };
662
+ readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
663
+ readonly code: "A127";
664
+ readonly message: "Get infra provider by UUID error";
665
+ readonly httpCode: 500;
666
+ };
667
+ readonly INFRA_PROVIDER_NOT_FOUND: {
668
+ readonly code: "A128";
669
+ readonly message: "Infra provider not found";
670
+ readonly httpCode: 404;
671
+ };
672
+ readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
673
+ readonly code: "A129";
674
+ readonly message: "Delete infra provider by UUID error";
675
+ readonly httpCode: 500;
676
+ };
677
+ readonly CREATE_INFRA_PROVIDER_ERROR: {
678
+ readonly code: "A130";
679
+ readonly message: "Create infra provider error";
680
+ readonly httpCode: 500;
681
+ };
682
+ readonly UPDATE_INFRA_PROVIDER_ERROR: {
683
+ readonly code: "A131";
684
+ readonly message: "Update infra provider error";
685
+ readonly httpCode: 500;
686
+ };
652
687
  };
653
688
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkW3B,CAAC"}
@@ -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
  };
@@ -7,6 +7,7 @@ export declare const ConfigProfileInboundsSchema: z.ZodObject<{
7
7
  network: z.ZodNullable<z.ZodString>;
8
8
  security: z.ZodNullable<z.ZodString>;
9
9
  port: z.ZodNullable<z.ZodNumber>;
10
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  type: string;
12
13
  uuid: string;
@@ -15,6 +16,7 @@ export declare const ConfigProfileInboundsSchema: z.ZodObject<{
15
16
  network: string | null;
16
17
  security: string | null;
17
18
  port: number | null;
19
+ rawInbound?: unknown;
18
20
  }, {
19
21
  type: string;
20
22
  uuid: string;
@@ -23,5 +25,6 @@ export declare const ConfigProfileInboundsSchema: z.ZodObject<{
23
25
  network: string | null;
24
26
  security: string | null;
25
27
  port: number | null;
28
+ rawInbound?: unknown;
26
29
  }>;
27
30
  //# sourceMappingURL=config-profile-inbounds.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-profile-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC"}
1
+ {"version":3,"file":"config-profile-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtC,CAAC"}
@@ -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
  });
@@ -11,6 +11,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
11
11
  network: z.ZodNullable<z.ZodString>;
12
12
  security: z.ZodNullable<z.ZodString>;
13
13
  port: z.ZodNullable<z.ZodNumber>;
14
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
14
15
  }, "strip", z.ZodTypeAny, {
15
16
  type: string;
16
17
  uuid: string;
@@ -19,6 +20,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
19
20
  network: string | null;
20
21
  security: string | null;
21
22
  port: number | null;
23
+ rawInbound?: unknown;
22
24
  }, {
23
25
  type: string;
24
26
  uuid: string;
@@ -27,6 +29,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
27
29
  network: string | null;
28
30
  security: string | null;
29
31
  port: number | null;
32
+ rawInbound?: unknown;
30
33
  }>, "many">;
31
34
  nodes: z.ZodArray<z.ZodObject<{
32
35
  uuid: z.ZodString;
@@ -52,6 +55,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
52
55
  network: string | null;
53
56
  security: string | null;
54
57
  port: number | null;
58
+ rawInbound?: unknown;
55
59
  }[];
56
60
  nodes: {
57
61
  uuid: string;
@@ -72,6 +76,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
72
76
  network: string | null;
73
77
  security: string | null;
74
78
  port: number | null;
79
+ rawInbound?: unknown;
75
80
  }[];
76
81
  nodes: {
77
82
  uuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
1
+ {"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
@@ -8,6 +8,7 @@ export * from './extented-users.schema';
8
8
  export * from './happ.schema';
9
9
  export * from './hosts.schema';
10
10
  export * from './hwid-user-device.schema';
11
+ export * from './infra-provider.schema';
11
12
  export * from './internal-squad.schema';
12
13
  export * from './last-connected-node.schema';
13
14
  export * from './nodes.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
@@ -24,6 +24,7 @@ __exportStar(require("./extented-users.schema"), exports);
24
24
  __exportStar(require("./happ.schema"), exports);
25
25
  __exportStar(require("./hosts.schema"), exports);
26
26
  __exportStar(require("./hwid-user-device.schema"), exports);
27
+ __exportStar(require("./infra-provider.schema"), exports);
27
28
  __exportStar(require("./internal-squad.schema"), exports);
28
29
  __exportStar(require("./last-connected-node.schema"), exports);
29
30
  __exportStar(require("./nodes.schema"), exports);