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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +143 -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 +143 -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 +210 -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 +146 -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 +143 -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 +143 -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 +213 -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 +65 -0
  96. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  97. package/build/backend/models/infra-provider.schema.js +27 -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 +105 -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 +27 -0
  125. package/build/frontend/models/nodes.schema.js +3 -0
  126. package/package.json +1 -1
@@ -28,8 +28,8 @@ export declare namespace GetNodesUsageByRangeCommand {
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  date: Date;
30
30
  nodeName: string;
31
- total: number;
32
31
  nodeUuid: string;
32
+ total: number;
33
33
  totalDownload: number;
34
34
  totalUpload: number;
35
35
  humanReadableTotal: string;
@@ -38,8 +38,8 @@ export declare namespace GetNodesUsageByRangeCommand {
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
- total: number;
42
41
  nodeUuid: string;
42
+ total: number;
43
43
  totalDownload: number;
44
44
  totalUpload: number;
45
45
  humanReadableTotal: string;
@@ -50,8 +50,8 @@ export declare namespace GetNodesUsageByRangeCommand {
50
50
  response: {
51
51
  date: Date;
52
52
  nodeName: string;
53
- total: number;
54
53
  nodeUuid: string;
54
+ total: number;
55
55
  totalDownload: number;
56
56
  totalUpload: number;
57
57
  humanReadableTotal: string;
@@ -62,8 +62,8 @@ export declare namespace GetNodesUsageByRangeCommand {
62
62
  response: {
63
63
  date: string;
64
64
  nodeName: string;
65
- total: number;
66
65
  nodeUuid: string;
66
+ total: number;
67
67
  totalDownload: number;
68
68
  totalUpload: number;
69
69
  humanReadableTotal: string;
@@ -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,72 @@ 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
+ billingHistory: z.ZodObject<{
72
+ totalAmount: z.ZodNumber;
73
+ totalBills: z.ZodNumber;
74
+ }, "strip", z.ZodTypeAny, {
75
+ totalAmount: number;
76
+ totalBills: number;
77
+ }, {
78
+ totalAmount: number;
79
+ totalBills: number;
80
+ }>;
81
+ billingNodes: z.ZodArray<z.ZodObject<{
82
+ nodeUuid: z.ZodString;
83
+ name: z.ZodString;
84
+ countryCode: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ name: string;
87
+ countryCode: string;
88
+ nodeUuid: string;
89
+ }, {
90
+ name: string;
91
+ countryCode: string;
92
+ nodeUuid: string;
93
+ }>, "many">;
94
+ }, "strip", z.ZodTypeAny, {
95
+ uuid: string;
96
+ createdAt: Date;
97
+ updatedAt: Date;
98
+ name: string;
99
+ faviconLink: string | null;
100
+ loginUrl: string | null;
101
+ billingHistory: {
102
+ totalAmount: number;
103
+ totalBills: number;
104
+ };
105
+ billingNodes: {
106
+ name: string;
107
+ countryCode: string;
108
+ nodeUuid: string;
109
+ }[];
110
+ }, {
111
+ uuid: string;
112
+ createdAt: string;
113
+ updatedAt: string;
114
+ name: string;
115
+ faviconLink: string | null;
116
+ loginUrl: string | null;
117
+ billingHistory: {
118
+ totalAmount: number;
119
+ totalBills: number;
120
+ };
121
+ billingNodes: {
122
+ name: string;
123
+ countryCode: string;
124
+ nodeUuid: string;
125
+ }[];
126
+ }>>;
60
127
  }, "uuid"> & {
61
128
  name: z.ZodOptional<z.ZodString>;
62
129
  address: z.ZodOptional<z.ZodString>;
@@ -69,6 +136,7 @@ export declare namespace UpdateNodeCommand {
69
136
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
70
137
  activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
71
138
  activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
140
  }, "strip", z.ZodTypeAny, {
73
141
  uuid: string;
74
142
  name?: string | undefined;
@@ -82,6 +150,7 @@ export declare namespace UpdateNodeCommand {
82
150
  consumptionMultiplier?: number | undefined;
83
151
  activeConfigProfileUuid?: string | undefined;
84
152
  activeInbounds?: string[] | undefined;
153
+ providerUuid?: string | null | undefined;
85
154
  }, {
86
155
  uuid: string;
87
156
  name?: string | undefined;
@@ -95,6 +164,7 @@ export declare namespace UpdateNodeCommand {
95
164
  consumptionMultiplier?: number | undefined;
96
165
  activeConfigProfileUuid?: string | undefined;
97
166
  activeInbounds?: string[] | undefined;
167
+ providerUuid?: string | null | undefined;
98
168
  }>;
99
169
  type Request = z.infer<typeof RequestSchema>;
100
170
  const ResponseSchema: z.ZodObject<{
@@ -135,6 +205,7 @@ export declare namespace UpdateNodeCommand {
135
205
  network: z.ZodNullable<z.ZodString>;
136
206
  security: z.ZodNullable<z.ZodString>;
137
207
  port: z.ZodNullable<z.ZodNumber>;
208
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
138
209
  }, "strip", z.ZodTypeAny, {
139
210
  type: string;
140
211
  uuid: string;
@@ -143,6 +214,7 @@ export declare namespace UpdateNodeCommand {
143
214
  network: string | null;
144
215
  security: string | null;
145
216
  port: number | null;
217
+ rawInbound?: unknown;
146
218
  }, {
147
219
  type: string;
148
220
  uuid: string;
@@ -151,7 +223,72 @@ export declare namespace UpdateNodeCommand {
151
223
  network: string | null;
152
224
  security: string | null;
153
225
  port: number | null;
226
+ rawInbound?: unknown;
154
227
  }>, "many">>;
228
+ providerUuid: z.ZodNullable<z.ZodString>;
229
+ provider: z.ZodNullable<z.ZodObject<{
230
+ uuid: z.ZodString;
231
+ name: z.ZodString;
232
+ faviconLink: z.ZodNullable<z.ZodString>;
233
+ loginUrl: z.ZodNullable<z.ZodString>;
234
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
235
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
236
+ billingHistory: z.ZodObject<{
237
+ totalAmount: z.ZodNumber;
238
+ totalBills: z.ZodNumber;
239
+ }, "strip", z.ZodTypeAny, {
240
+ totalAmount: number;
241
+ totalBills: number;
242
+ }, {
243
+ totalAmount: number;
244
+ totalBills: number;
245
+ }>;
246
+ billingNodes: z.ZodArray<z.ZodObject<{
247
+ nodeUuid: z.ZodString;
248
+ name: z.ZodString;
249
+ countryCode: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ name: string;
252
+ countryCode: string;
253
+ nodeUuid: string;
254
+ }, {
255
+ name: string;
256
+ countryCode: string;
257
+ nodeUuid: string;
258
+ }>, "many">;
259
+ }, "strip", z.ZodTypeAny, {
260
+ uuid: string;
261
+ createdAt: Date;
262
+ updatedAt: Date;
263
+ name: string;
264
+ faviconLink: string | null;
265
+ loginUrl: string | null;
266
+ billingHistory: {
267
+ totalAmount: number;
268
+ totalBills: number;
269
+ };
270
+ billingNodes: {
271
+ name: string;
272
+ countryCode: string;
273
+ nodeUuid: string;
274
+ }[];
275
+ }, {
276
+ uuid: string;
277
+ createdAt: string;
278
+ updatedAt: string;
279
+ name: string;
280
+ faviconLink: string | null;
281
+ loginUrl: string | null;
282
+ billingHistory: {
283
+ totalAmount: number;
284
+ totalBills: number;
285
+ };
286
+ billingNodes: {
287
+ name: string;
288
+ countryCode: string;
289
+ nodeUuid: string;
290
+ }[];
291
+ }>>;
155
292
  }, "strip", z.ZodTypeAny, {
156
293
  uuid: string;
157
294
  createdAt: Date;
@@ -189,7 +326,26 @@ export declare namespace UpdateNodeCommand {
189
326
  network: string | null;
190
327
  security: string | null;
191
328
  port: number | null;
329
+ rawInbound?: unknown;
192
330
  }[] | null;
331
+ providerUuid: string | null;
332
+ provider: {
333
+ uuid: string;
334
+ createdAt: Date;
335
+ updatedAt: Date;
336
+ name: string;
337
+ faviconLink: string | null;
338
+ loginUrl: string | null;
339
+ billingHistory: {
340
+ totalAmount: number;
341
+ totalBills: number;
342
+ };
343
+ billingNodes: {
344
+ name: string;
345
+ countryCode: string;
346
+ nodeUuid: string;
347
+ }[];
348
+ } | null;
193
349
  }, {
194
350
  uuid: string;
195
351
  createdAt: string;
@@ -227,7 +383,26 @@ export declare namespace UpdateNodeCommand {
227
383
  network: string | null;
228
384
  security: string | null;
229
385
  port: number | null;
386
+ rawInbound?: unknown;
230
387
  }[] | null;
388
+ providerUuid: string | null;
389
+ provider: {
390
+ uuid: string;
391
+ createdAt: string;
392
+ updatedAt: string;
393
+ name: string;
394
+ faviconLink: string | null;
395
+ loginUrl: string | null;
396
+ billingHistory: {
397
+ totalAmount: number;
398
+ totalBills: number;
399
+ };
400
+ billingNodes: {
401
+ name: string;
402
+ countryCode: string;
403
+ nodeUuid: string;
404
+ }[];
405
+ } | null;
231
406
  }>;
232
407
  }, "strip", z.ZodTypeAny, {
233
408
  response: {
@@ -267,7 +442,26 @@ export declare namespace UpdateNodeCommand {
267
442
  network: string | null;
268
443
  security: string | null;
269
444
  port: number | null;
445
+ rawInbound?: unknown;
270
446
  }[] | null;
447
+ providerUuid: string | null;
448
+ provider: {
449
+ uuid: string;
450
+ createdAt: Date;
451
+ updatedAt: Date;
452
+ name: string;
453
+ faviconLink: string | null;
454
+ loginUrl: string | null;
455
+ billingHistory: {
456
+ totalAmount: number;
457
+ totalBills: number;
458
+ };
459
+ billingNodes: {
460
+ name: string;
461
+ countryCode: string;
462
+ nodeUuid: string;
463
+ }[];
464
+ } | null;
271
465
  };
272
466
  }, {
273
467
  response: {
@@ -307,7 +501,26 @@ export declare namespace UpdateNodeCommand {
307
501
  network: string | null;
308
502
  security: string | null;
309
503
  port: number | null;
504
+ rawInbound?: unknown;
310
505
  }[] | null;
506
+ providerUuid: string | null;
507
+ provider: {
508
+ uuid: string;
509
+ createdAt: string;
510
+ updatedAt: string;
511
+ name: string;
512
+ faviconLink: string | null;
513
+ loginUrl: string | null;
514
+ billingHistory: {
515
+ totalAmount: number;
516
+ totalBills: number;
517
+ };
518
+ billingNodes: {
519
+ name: string;
520
+ countryCode: string;
521
+ nodeUuid: string;
522
+ }[];
523
+ } | null;
311
524
  };
312
525
  }>;
313
526
  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