@remnawave/backend-contract 2.0.0-alpha.3 → 2.0.0-alpha.30

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 (211) 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 +18 -0
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +5 -0
  10. package/build/backend/api/controllers/users.d.ts +1 -0
  11. package/build/backend/api/controllers/users.d.ts.map +1 -1
  12. package/build/backend/api/controllers/users.js +1 -0
  13. package/build/backend/api/routes.d.ts +19 -0
  14. package/build/backend/api/routes.d.ts.map +1 -1
  15. package/build/backend/api/routes.js +19 -0
  16. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  17. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  18. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  20. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  22. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  24. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  25. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  26. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  27. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  28. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/create.command.js +13 -13
  30. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  31. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  32. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  33. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  34. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  35. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  36. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  37. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/update.command.js +10 -11
  39. package/build/backend/commands/index.d.ts +1 -0
  40. package/build/backend/commands/index.d.ts.map +1 -1
  41. package/build/backend/commands/index.js +1 -0
  42. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  43. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  44. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  45. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  46. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  47. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  48. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  49. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  50. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  51. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  52. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  53. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  54. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  55. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  56. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  57. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  58. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  59. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  60. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  61. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  62. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  63. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  64. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  65. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  66. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  67. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  68. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  69. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  70. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  71. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  72. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  73. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  74. package/build/backend/commands/infra-billing/index.js +28 -0
  75. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  76. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  77. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  78. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  79. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  80. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  81. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  82. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  83. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  84. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  85. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  86. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  87. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  88. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  89. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  90. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  91. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  92. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  93. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  94. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  95. package/build/backend/commands/internal-squads/index.js +2 -1
  96. package/build/backend/commands/nodes/actions/disable.command.d.ts +162 -64
  97. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  98. package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
  99. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  100. package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
  101. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  102. package/build/backend/commands/nodes/create.command.d.ts +183 -70
  103. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  104. package/build/backend/commands/nodes/create.command.js +7 -4
  105. package/build/backend/commands/nodes/get-all.command.d.ts +162 -64
  106. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  107. package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
  108. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  109. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  110. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  111. package/build/backend/commands/nodes/update.command.d.ts +257 -94
  112. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  113. package/build/backend/commands/nodes/update.command.js +9 -4
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  116. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  117. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  118. package/build/backend/commands/users/index.d.ts +1 -0
  119. package/build/backend/commands/users/index.d.ts.map +1 -1
  120. package/build/backend/commands/users/index.js +1 -0
  121. package/build/backend/constants/errors/errors.d.ts +95 -0
  122. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  123. package/build/backend/constants/errors/errors.js +95 -0
  124. package/build/backend/constants/events/events.d.ts +11 -0
  125. package/build/backend/constants/events/events.d.ts.map +1 -1
  126. package/build/backend/constants/events/events.js +10 -0
  127. package/build/backend/constants/headers/headers.contants.d.ts +3 -0
  128. package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
  129. package/build/backend/constants/headers/headers.contants.js +5 -0
  130. package/build/backend/constants/headers/index.d.ts +2 -0
  131. package/build/backend/constants/headers/index.d.ts.map +1 -0
  132. package/build/backend/constants/headers/index.js +17 -0
  133. package/build/backend/constants/index.d.ts +1 -0
  134. package/build/backend/constants/index.d.ts.map +1 -1
  135. package/build/backend/constants/index.js +1 -0
  136. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  137. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  138. package/build/backend/constants/templates/template-keys.js +1 -0
  139. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  140. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  141. package/build/backend/models/hosts.schema.d.ts +21 -6
  142. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  143. package/build/backend/models/hosts.schema.js +5 -2
  144. package/build/backend/models/index.d.ts +5 -1
  145. package/build/backend/models/index.d.ts.map +1 -1
  146. package/build/backend/models/index.js +5 -1
  147. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  148. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  149. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  150. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  151. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  152. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  153. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  154. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  155. package/build/backend/models/infra-billing-node.schema.js +34 -0
  156. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  157. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  158. package/build/backend/models/infra-provider.schema.js +41 -0
  159. package/build/backend/models/nodes.schema.d.ts +118 -44
  160. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  161. package/build/backend/models/nodes.schema.js +8 -2
  162. package/build/frontend/api/controllers/index.js +1 -0
  163. package/build/frontend/api/controllers/infra-billing.js +18 -0
  164. package/build/frontend/api/controllers/internal-squads.js +5 -0
  165. package/build/frontend/api/controllers/users.js +1 -0
  166. package/build/frontend/api/routes.js +19 -0
  167. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  168. package/build/frontend/commands/hosts/create.command.js +13 -13
  169. package/build/frontend/commands/hosts/update.command.js +10 -11
  170. package/build/frontend/commands/index.js +1 -0
  171. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  172. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  173. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  174. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  175. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  176. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  177. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  178. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  179. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  180. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  181. package/build/frontend/commands/infra-billing/index.js +28 -0
  182. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  183. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  184. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  185. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  186. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  187. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  188. package/build/frontend/commands/internal-squads/index.js +2 -1
  189. package/build/frontend/commands/nodes/create.command.js +7 -4
  190. package/build/frontend/commands/nodes/update.command.js +9 -4
  191. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  192. package/build/frontend/commands/users/index.js +1 -0
  193. package/build/frontend/constants/errors/errors.js +95 -0
  194. package/build/frontend/constants/events/events.js +10 -0
  195. package/build/frontend/constants/headers/headers.contants.js +5 -0
  196. package/build/frontend/constants/headers/index.js +17 -0
  197. package/build/frontend/constants/index.js +1 -0
  198. package/build/frontend/constants/templates/template-keys.js +1 -0
  199. package/build/frontend/models/hosts.schema.js +5 -2
  200. package/build/frontend/models/index.js +5 -1
  201. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  202. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  203. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  204. package/build/frontend/models/infra-provider.schema.js +41 -0
  205. package/build/frontend/models/nodes.schema.js +8 -2
  206. package/package.json +1 -1
  207. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  208. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  209. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  210. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  211. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -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;
@@ -16,6 +16,7 @@ export declare namespace UpdateNodeCommand {
16
16
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
17
17
  lastStatusMessage: z.ZodNullable<z.ZodString>;
18
18
  xrayVersion: z.ZodNullable<z.ZodString>;
19
+ nodeVersion: z.ZodNullable<z.ZodString>;
19
20
  xrayUptime: z.ZodString;
20
21
  isTrafficTrackingActive: z.ZodBoolean;
21
22
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -31,35 +32,84 @@ export declare namespace UpdateNodeCommand {
31
32
  totalRam: z.ZodNullable<z.ZodString>;
32
33
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
34
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
35
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
35
+ configProfile: z.ZodObject<{
36
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
37
+ activeInbounds: z.ZodArray<z.ZodObject<{
38
+ uuid: z.ZodString;
39
+ profileUuid: z.ZodString;
40
+ tag: z.ZodString;
41
+ type: z.ZodString;
42
+ network: z.ZodNullable<z.ZodString>;
43
+ security: z.ZodNullable<z.ZodString>;
44
+ port: z.ZodNullable<z.ZodNumber>;
45
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: string;
48
+ uuid: string;
49
+ profileUuid: string;
50
+ tag: string;
51
+ network: string | null;
52
+ security: string | null;
53
+ port: number | null;
54
+ rawInbound?: unknown;
55
+ }, {
56
+ type: string;
57
+ uuid: string;
58
+ profileUuid: string;
59
+ tag: string;
60
+ network: string | null;
61
+ security: string | null;
62
+ port: number | null;
63
+ rawInbound?: unknown;
64
+ }>, "many">;
65
+ }, "strip", z.ZodTypeAny, {
66
+ activeConfigProfileUuid: string | null;
67
+ activeInbounds: {
68
+ type: string;
69
+ uuid: string;
70
+ profileUuid: string;
71
+ tag: string;
72
+ network: string | null;
73
+ security: string | null;
74
+ port: number | null;
75
+ rawInbound?: unknown;
76
+ }[];
77
+ }, {
78
+ activeConfigProfileUuid: string | null;
79
+ activeInbounds: {
80
+ type: string;
81
+ uuid: string;
82
+ profileUuid: string;
83
+ tag: string;
84
+ network: string | null;
85
+ security: string | null;
86
+ port: number | null;
87
+ rawInbound?: unknown;
88
+ }[];
89
+ }>;
90
+ providerUuid: z.ZodNullable<z.ZodString>;
91
+ provider: z.ZodNullable<z.ZodObject<{
36
92
  uuid: z.ZodString;
37
- profileUuid: z.ZodString;
38
- tag: z.ZodString;
39
- type: z.ZodString;
40
- network: z.ZodNullable<z.ZodString>;
41
- security: z.ZodNullable<z.ZodString>;
42
- port: z.ZodNullable<z.ZodNumber>;
43
- rawInbound: z.ZodNullable<z.ZodUnknown>;
93
+ name: z.ZodString;
94
+ faviconLink: z.ZodNullable<z.ZodString>;
95
+ loginUrl: z.ZodNullable<z.ZodString>;
96
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
97
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
44
98
  }, "strip", z.ZodTypeAny, {
45
- type: string;
46
99
  uuid: string;
47
- profileUuid: string;
48
- tag: string;
49
- network: string | null;
50
- security: string | null;
51
- port: number | null;
52
- rawInbound?: unknown;
100
+ createdAt: Date;
101
+ updatedAt: Date;
102
+ name: string;
103
+ faviconLink: string | null;
104
+ loginUrl: string | null;
53
105
  }, {
54
- type: string;
55
106
  uuid: string;
56
- profileUuid: string;
57
- tag: string;
58
- network: string | null;
59
- security: string | null;
60
- port: number | null;
61
- rawInbound?: unknown;
62
- }>, "many">>;
107
+ createdAt: string;
108
+ updatedAt: string;
109
+ name: string;
110
+ faviconLink: string | null;
111
+ loginUrl: string | null;
112
+ }>>;
63
113
  }, "uuid"> & {
64
114
  name: z.ZodOptional<z.ZodString>;
65
115
  address: z.ZodOptional<z.ZodString>;
@@ -70,8 +120,17 @@ export declare namespace UpdateNodeCommand {
70
120
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
71
121
  countryCode: z.ZodOptional<z.ZodString>;
72
122
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
73
- activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
74
- activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ configProfile: z.ZodOptional<z.ZodObject<{
124
+ activeConfigProfileUuid: z.ZodString;
125
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ activeConfigProfileUuid: string;
128
+ activeInbounds: string[];
129
+ }, {
130
+ activeConfigProfileUuid: string;
131
+ activeInbounds: string[];
132
+ }>>;
133
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
134
  }, "strip", z.ZodTypeAny, {
76
135
  uuid: string;
77
136
  name?: string | undefined;
@@ -83,8 +142,11 @@ export declare namespace UpdateNodeCommand {
83
142
  trafficResetDay?: number | undefined;
84
143
  notifyPercent?: number | undefined;
85
144
  consumptionMultiplier?: number | undefined;
86
- activeConfigProfileUuid?: string | undefined;
87
- activeInbounds?: string[] | undefined;
145
+ configProfile?: {
146
+ activeConfigProfileUuid: string;
147
+ activeInbounds: string[];
148
+ } | undefined;
149
+ providerUuid?: string | null | undefined;
88
150
  }, {
89
151
  uuid: string;
90
152
  name?: string | undefined;
@@ -96,8 +158,11 @@ export declare namespace UpdateNodeCommand {
96
158
  trafficResetDay?: number | undefined;
97
159
  notifyPercent?: number | undefined;
98
160
  consumptionMultiplier?: number | undefined;
99
- activeConfigProfileUuid?: string | undefined;
100
- activeInbounds?: string[] | undefined;
161
+ configProfile?: {
162
+ activeConfigProfileUuid: string;
163
+ activeInbounds: string[];
164
+ } | undefined;
165
+ providerUuid?: string | null | undefined;
101
166
  }>;
102
167
  type Request = z.infer<typeof RequestSchema>;
103
168
  const ResponseSchema: z.ZodObject<{
@@ -114,6 +179,7 @@ export declare namespace UpdateNodeCommand {
114
179
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
115
180
  lastStatusMessage: z.ZodNullable<z.ZodString>;
116
181
  xrayVersion: z.ZodNullable<z.ZodString>;
182
+ nodeVersion: z.ZodNullable<z.ZodString>;
117
183
  xrayUptime: z.ZodString;
118
184
  isTrafficTrackingActive: z.ZodBoolean;
119
185
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -129,35 +195,84 @@ export declare namespace UpdateNodeCommand {
129
195
  totalRam: z.ZodNullable<z.ZodString>;
130
196
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
131
197
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
132
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
133
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
198
+ configProfile: z.ZodObject<{
199
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
200
+ activeInbounds: z.ZodArray<z.ZodObject<{
201
+ uuid: z.ZodString;
202
+ profileUuid: z.ZodString;
203
+ tag: z.ZodString;
204
+ type: z.ZodString;
205
+ network: z.ZodNullable<z.ZodString>;
206
+ security: z.ZodNullable<z.ZodString>;
207
+ port: z.ZodNullable<z.ZodNumber>;
208
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: string;
211
+ uuid: string;
212
+ profileUuid: string;
213
+ tag: string;
214
+ network: string | null;
215
+ security: string | null;
216
+ port: number | null;
217
+ rawInbound?: unknown;
218
+ }, {
219
+ type: string;
220
+ uuid: string;
221
+ profileUuid: string;
222
+ tag: string;
223
+ network: string | null;
224
+ security: string | null;
225
+ port: number | null;
226
+ rawInbound?: unknown;
227
+ }>, "many">;
228
+ }, "strip", z.ZodTypeAny, {
229
+ activeConfigProfileUuid: string | null;
230
+ activeInbounds: {
231
+ type: string;
232
+ uuid: string;
233
+ profileUuid: string;
234
+ tag: string;
235
+ network: string | null;
236
+ security: string | null;
237
+ port: number | null;
238
+ rawInbound?: unknown;
239
+ }[];
240
+ }, {
241
+ activeConfigProfileUuid: string | null;
242
+ activeInbounds: {
243
+ type: string;
244
+ uuid: string;
245
+ profileUuid: string;
246
+ tag: string;
247
+ network: string | null;
248
+ security: string | null;
249
+ port: number | null;
250
+ rawInbound?: unknown;
251
+ }[];
252
+ }>;
253
+ providerUuid: z.ZodNullable<z.ZodString>;
254
+ provider: z.ZodNullable<z.ZodObject<{
134
255
  uuid: z.ZodString;
135
- profileUuid: z.ZodString;
136
- tag: z.ZodString;
137
- type: z.ZodString;
138
- network: z.ZodNullable<z.ZodString>;
139
- security: z.ZodNullable<z.ZodString>;
140
- port: z.ZodNullable<z.ZodNumber>;
141
- rawInbound: z.ZodNullable<z.ZodUnknown>;
256
+ name: z.ZodString;
257
+ faviconLink: z.ZodNullable<z.ZodString>;
258
+ loginUrl: z.ZodNullable<z.ZodString>;
259
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
260
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
142
261
  }, "strip", z.ZodTypeAny, {
143
- type: string;
144
262
  uuid: string;
145
- profileUuid: string;
146
- tag: string;
147
- network: string | null;
148
- security: string | null;
149
- port: number | null;
150
- rawInbound?: unknown;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ name: string;
266
+ faviconLink: string | null;
267
+ loginUrl: string | null;
151
268
  }, {
152
- type: string;
153
269
  uuid: string;
154
- profileUuid: string;
155
- tag: string;
156
- network: string | null;
157
- security: string | null;
158
- port: number | null;
159
- rawInbound?: unknown;
160
- }>, "many">>;
270
+ createdAt: string;
271
+ updatedAt: string;
272
+ name: string;
273
+ faviconLink: string | null;
274
+ loginUrl: string | null;
275
+ }>>;
161
276
  }, "strip", z.ZodTypeAny, {
162
277
  uuid: string;
163
278
  createdAt: Date;
@@ -176,6 +291,7 @@ export declare namespace UpdateNodeCommand {
176
291
  lastStatusChange: Date | null;
177
292
  lastStatusMessage: string | null;
178
293
  xrayVersion: string | null;
294
+ nodeVersion: string | null;
179
295
  xrayUptime: string;
180
296
  isTrafficTrackingActive: boolean;
181
297
  trafficResetDay: number | null;
@@ -186,17 +302,28 @@ export declare namespace UpdateNodeCommand {
186
302
  cpuCount: number | null;
187
303
  cpuModel: string | null;
188
304
  totalRam: string | null;
189
- activeConfigProfileUuid: string | null;
190
- activeInbounds: {
191
- type: string;
305
+ configProfile: {
306
+ activeConfigProfileUuid: string | null;
307
+ activeInbounds: {
308
+ type: string;
309
+ uuid: string;
310
+ profileUuid: string;
311
+ tag: string;
312
+ network: string | null;
313
+ security: string | null;
314
+ port: number | null;
315
+ rawInbound?: unknown;
316
+ }[];
317
+ };
318
+ providerUuid: string | null;
319
+ provider: {
192
320
  uuid: string;
193
- profileUuid: string;
194
- tag: string;
195
- network: string | null;
196
- security: string | null;
197
- port: number | null;
198
- rawInbound?: unknown;
199
- }[] | null;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ name: string;
324
+ faviconLink: string | null;
325
+ loginUrl: string | null;
326
+ } | null;
200
327
  }, {
201
328
  uuid: string;
202
329
  createdAt: string;
@@ -215,6 +342,7 @@ export declare namespace UpdateNodeCommand {
215
342
  lastStatusChange: string | null;
216
343
  lastStatusMessage: string | null;
217
344
  xrayVersion: string | null;
345
+ nodeVersion: string | null;
218
346
  xrayUptime: string;
219
347
  isTrafficTrackingActive: boolean;
220
348
  trafficResetDay: number | null;
@@ -225,17 +353,28 @@ export declare namespace UpdateNodeCommand {
225
353
  cpuCount: number | null;
226
354
  cpuModel: string | null;
227
355
  totalRam: string | null;
228
- activeConfigProfileUuid: string | null;
229
- activeInbounds: {
230
- type: string;
356
+ configProfile: {
357
+ activeConfigProfileUuid: string | null;
358
+ activeInbounds: {
359
+ type: string;
360
+ uuid: string;
361
+ profileUuid: string;
362
+ tag: string;
363
+ network: string | null;
364
+ security: string | null;
365
+ port: number | null;
366
+ rawInbound?: unknown;
367
+ }[];
368
+ };
369
+ providerUuid: string | null;
370
+ provider: {
231
371
  uuid: string;
232
- profileUuid: string;
233
- tag: string;
234
- network: string | null;
235
- security: string | null;
236
- port: number | null;
237
- rawInbound?: unknown;
238
- }[] | null;
372
+ createdAt: string;
373
+ updatedAt: string;
374
+ name: string;
375
+ faviconLink: string | null;
376
+ loginUrl: string | null;
377
+ } | null;
239
378
  }>;
240
379
  }, "strip", z.ZodTypeAny, {
241
380
  response: {
@@ -256,6 +395,7 @@ export declare namespace UpdateNodeCommand {
256
395
  lastStatusChange: Date | null;
257
396
  lastStatusMessage: string | null;
258
397
  xrayVersion: string | null;
398
+ nodeVersion: string | null;
259
399
  xrayUptime: string;
260
400
  isTrafficTrackingActive: boolean;
261
401
  trafficResetDay: number | null;
@@ -266,17 +406,28 @@ export declare namespace UpdateNodeCommand {
266
406
  cpuCount: number | null;
267
407
  cpuModel: string | null;
268
408
  totalRam: string | null;
269
- activeConfigProfileUuid: string | null;
270
- activeInbounds: {
271
- type: string;
409
+ configProfile: {
410
+ activeConfigProfileUuid: string | null;
411
+ activeInbounds: {
412
+ type: string;
413
+ uuid: string;
414
+ profileUuid: string;
415
+ tag: string;
416
+ network: string | null;
417
+ security: string | null;
418
+ port: number | null;
419
+ rawInbound?: unknown;
420
+ }[];
421
+ };
422
+ providerUuid: string | null;
423
+ provider: {
272
424
  uuid: string;
273
- profileUuid: string;
274
- tag: string;
275
- network: string | null;
276
- security: string | null;
277
- port: number | null;
278
- rawInbound?: unknown;
279
- }[] | null;
425
+ createdAt: Date;
426
+ updatedAt: Date;
427
+ name: string;
428
+ faviconLink: string | null;
429
+ loginUrl: string | null;
430
+ } | null;
280
431
  };
281
432
  }, {
282
433
  response: {
@@ -297,6 +448,7 @@ export declare namespace UpdateNodeCommand {
297
448
  lastStatusChange: string | null;
298
449
  lastStatusMessage: string | null;
299
450
  xrayVersion: string | null;
451
+ nodeVersion: string | null;
300
452
  xrayUptime: string;
301
453
  isTrafficTrackingActive: boolean;
302
454
  trafficResetDay: number | null;
@@ -307,17 +459,28 @@ export declare namespace UpdateNodeCommand {
307
459
  cpuCount: number | null;
308
460
  cpuModel: string | null;
309
461
  totalRam: string | null;
310
- activeConfigProfileUuid: string | null;
311
- activeInbounds: {
312
- type: string;
462
+ configProfile: {
463
+ activeConfigProfileUuid: string | null;
464
+ activeInbounds: {
465
+ type: string;
466
+ uuid: string;
467
+ profileUuid: string;
468
+ tag: string;
469
+ network: string | null;
470
+ security: string | null;
471
+ port: number | null;
472
+ rawInbound?: unknown;
473
+ }[];
474
+ };
475
+ providerUuid: string | null;
476
+ provider: {
313
477
  uuid: string;
314
- profileUuid: string;
315
- tag: string;
316
- network: string | null;
317
- security: string | null;
318
- port: number | null;
319
- rawInbound?: unknown;
320
- }[] | null;
478
+ createdAt: string;
479
+ updatedAt: string;
480
+ name: string;
481
+ faviconLink: string | null;
482
+ loginUrl: string | null;
483
+ } | null;
321
484
  };
322
485
  }>;
323
486
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCxB,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"}
@@ -31,10 +31,15 @@ var UpdateNodeCommand;
31
31
  .number()
32
32
  .min(0.1, 'Consumption multiplier must be greater than 0')
33
33
  .transform((n) => Number(n.toFixed(1)))),
34
- activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
35
- activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
36
- invalid_type_error: 'Active inbounds must be an array of UUIDs',
37
- })),
34
+ configProfile: zod_1.z
35
+ .object({
36
+ activeConfigProfileUuid: zod_1.z.string().uuid(),
37
+ activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
38
+ invalid_type_error: 'Must be an array of UUIDs',
39
+ }),
40
+ })
41
+ .optional(),
42
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
38
43
  });
39
44
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
40
45
  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"}