@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
@@ -13,23 +13,39 @@ export declare namespace CreateNodeCommand {
13
13
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
14
14
  countryCode: z.ZodDefault<z.ZodString>;
15
15
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
16
- activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
17
- activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ configProfile: z.ZodObject<{
17
+ activeConfigProfileUuid: z.ZodString;
18
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ activeConfigProfileUuid: string;
21
+ activeInbounds: string[];
22
+ }, {
23
+ activeConfigProfileUuid: string;
24
+ activeInbounds: string[];
25
+ }>;
26
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
27
  }, "strip", z.ZodTypeAny, {
19
28
  name: string;
20
29
  countryCode: string;
21
30
  address: string;
22
31
  isTrafficTrackingActive: boolean;
32
+ configProfile: {
33
+ activeConfigProfileUuid: string;
34
+ activeInbounds: string[];
35
+ };
23
36
  port?: number | undefined;
24
37
  trafficLimitBytes?: number | undefined;
25
38
  trafficResetDay?: number | undefined;
26
39
  notifyPercent?: number | undefined;
27
40
  consumptionMultiplier?: number | undefined;
28
- activeConfigProfileUuid?: string | undefined;
29
- activeInbounds?: string[] | undefined;
41
+ providerUuid?: string | null | undefined;
30
42
  }, {
31
43
  name: string;
32
44
  address: string;
45
+ configProfile: {
46
+ activeConfigProfileUuid: string;
47
+ activeInbounds: string[];
48
+ };
33
49
  port?: number | undefined;
34
50
  countryCode?: string | undefined;
35
51
  trafficLimitBytes?: number | undefined;
@@ -37,8 +53,7 @@ export declare namespace CreateNodeCommand {
37
53
  trafficResetDay?: number | undefined;
38
54
  notifyPercent?: number | undefined;
39
55
  consumptionMultiplier?: number | undefined;
40
- activeConfigProfileUuid?: string | undefined;
41
- activeInbounds?: string[] | undefined;
56
+ providerUuid?: string | null | undefined;
42
57
  }>;
43
58
  type Request = z.infer<typeof RequestSchema>;
44
59
  const ResponseSchema: z.ZodObject<{
@@ -55,6 +70,7 @@ export declare namespace CreateNodeCommand {
55
70
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
56
71
  lastStatusMessage: z.ZodNullable<z.ZodString>;
57
72
  xrayVersion: z.ZodNullable<z.ZodString>;
73
+ nodeVersion: z.ZodNullable<z.ZodString>;
58
74
  xrayUptime: z.ZodString;
59
75
  isTrafficTrackingActive: z.ZodBoolean;
60
76
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -70,35 +86,84 @@ export declare namespace CreateNodeCommand {
70
86
  totalRam: z.ZodNullable<z.ZodString>;
71
87
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
72
88
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
73
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
74
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
89
+ configProfile: z.ZodObject<{
90
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
91
+ activeInbounds: z.ZodArray<z.ZodObject<{
92
+ uuid: z.ZodString;
93
+ profileUuid: z.ZodString;
94
+ tag: z.ZodString;
95
+ type: z.ZodString;
96
+ network: z.ZodNullable<z.ZodString>;
97
+ security: z.ZodNullable<z.ZodString>;
98
+ port: z.ZodNullable<z.ZodNumber>;
99
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ uuid: string;
103
+ profileUuid: string;
104
+ tag: string;
105
+ network: string | null;
106
+ security: string | null;
107
+ port: number | null;
108
+ rawInbound?: unknown;
109
+ }, {
110
+ type: string;
111
+ uuid: string;
112
+ profileUuid: string;
113
+ tag: string;
114
+ network: string | null;
115
+ security: string | null;
116
+ port: number | null;
117
+ rawInbound?: unknown;
118
+ }>, "many">;
119
+ }, "strip", z.ZodTypeAny, {
120
+ activeConfigProfileUuid: string | null;
121
+ activeInbounds: {
122
+ type: string;
123
+ uuid: string;
124
+ profileUuid: string;
125
+ tag: string;
126
+ network: string | null;
127
+ security: string | null;
128
+ port: number | null;
129
+ rawInbound?: unknown;
130
+ }[];
131
+ }, {
132
+ activeConfigProfileUuid: string | null;
133
+ activeInbounds: {
134
+ type: string;
135
+ uuid: string;
136
+ profileUuid: string;
137
+ tag: string;
138
+ network: string | null;
139
+ security: string | null;
140
+ port: number | null;
141
+ rawInbound?: unknown;
142
+ }[];
143
+ }>;
144
+ providerUuid: z.ZodNullable<z.ZodString>;
145
+ provider: z.ZodNullable<z.ZodObject<{
75
146
  uuid: z.ZodString;
76
- profileUuid: z.ZodString;
77
- tag: z.ZodString;
78
- type: z.ZodString;
79
- network: z.ZodNullable<z.ZodString>;
80
- security: z.ZodNullable<z.ZodString>;
81
- port: z.ZodNullable<z.ZodNumber>;
82
- rawInbound: z.ZodNullable<z.ZodUnknown>;
147
+ name: z.ZodString;
148
+ faviconLink: z.ZodNullable<z.ZodString>;
149
+ loginUrl: z.ZodNullable<z.ZodString>;
150
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
151
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
83
152
  }, "strip", z.ZodTypeAny, {
84
- type: string;
85
153
  uuid: string;
86
- profileUuid: string;
87
- tag: string;
88
- network: string | null;
89
- security: string | null;
90
- port: number | null;
91
- rawInbound?: unknown;
154
+ createdAt: Date;
155
+ updatedAt: Date;
156
+ name: string;
157
+ faviconLink: string | null;
158
+ loginUrl: string | null;
92
159
  }, {
93
- type: string;
94
160
  uuid: string;
95
- profileUuid: string;
96
- tag: string;
97
- network: string | null;
98
- security: string | null;
99
- port: number | null;
100
- rawInbound?: unknown;
101
- }>, "many">>;
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ name: string;
164
+ faviconLink: string | null;
165
+ loginUrl: string | null;
166
+ }>>;
102
167
  }, "strip", z.ZodTypeAny, {
103
168
  uuid: string;
104
169
  createdAt: Date;
@@ -117,6 +182,7 @@ export declare namespace CreateNodeCommand {
117
182
  lastStatusChange: Date | null;
118
183
  lastStatusMessage: string | null;
119
184
  xrayVersion: string | null;
185
+ nodeVersion: string | null;
120
186
  xrayUptime: string;
121
187
  isTrafficTrackingActive: boolean;
122
188
  trafficResetDay: number | null;
@@ -127,17 +193,28 @@ export declare namespace CreateNodeCommand {
127
193
  cpuCount: number | null;
128
194
  cpuModel: string | null;
129
195
  totalRam: string | null;
130
- activeConfigProfileUuid: string | null;
131
- activeInbounds: {
132
- type: string;
196
+ configProfile: {
197
+ activeConfigProfileUuid: string | null;
198
+ activeInbounds: {
199
+ type: string;
200
+ uuid: string;
201
+ profileUuid: string;
202
+ tag: string;
203
+ network: string | null;
204
+ security: string | null;
205
+ port: number | null;
206
+ rawInbound?: unknown;
207
+ }[];
208
+ };
209
+ providerUuid: string | null;
210
+ provider: {
133
211
  uuid: string;
134
- profileUuid: string;
135
- tag: string;
136
- network: string | null;
137
- security: string | null;
138
- port: number | null;
139
- rawInbound?: unknown;
140
- }[] | null;
212
+ createdAt: Date;
213
+ updatedAt: Date;
214
+ name: string;
215
+ faviconLink: string | null;
216
+ loginUrl: string | null;
217
+ } | null;
141
218
  }, {
142
219
  uuid: string;
143
220
  createdAt: string;
@@ -156,6 +233,7 @@ export declare namespace CreateNodeCommand {
156
233
  lastStatusChange: string | null;
157
234
  lastStatusMessage: string | null;
158
235
  xrayVersion: string | null;
236
+ nodeVersion: string | null;
159
237
  xrayUptime: string;
160
238
  isTrafficTrackingActive: boolean;
161
239
  trafficResetDay: number | null;
@@ -166,17 +244,28 @@ export declare namespace CreateNodeCommand {
166
244
  cpuCount: number | null;
167
245
  cpuModel: string | null;
168
246
  totalRam: string | null;
169
- activeConfigProfileUuid: string | null;
170
- activeInbounds: {
171
- type: string;
247
+ configProfile: {
248
+ activeConfigProfileUuid: string | null;
249
+ activeInbounds: {
250
+ type: string;
251
+ uuid: string;
252
+ profileUuid: string;
253
+ tag: string;
254
+ network: string | null;
255
+ security: string | null;
256
+ port: number | null;
257
+ rawInbound?: unknown;
258
+ }[];
259
+ };
260
+ providerUuid: string | null;
261
+ provider: {
172
262
  uuid: string;
173
- profileUuid: string;
174
- tag: string;
175
- network: string | null;
176
- security: string | null;
177
- port: number | null;
178
- rawInbound?: unknown;
179
- }[] | null;
263
+ createdAt: string;
264
+ updatedAt: string;
265
+ name: string;
266
+ faviconLink: string | null;
267
+ loginUrl: string | null;
268
+ } | null;
180
269
  }>;
181
270
  }, "strip", z.ZodTypeAny, {
182
271
  response: {
@@ -197,6 +286,7 @@ export declare namespace CreateNodeCommand {
197
286
  lastStatusChange: Date | null;
198
287
  lastStatusMessage: string | null;
199
288
  xrayVersion: string | null;
289
+ nodeVersion: string | null;
200
290
  xrayUptime: string;
201
291
  isTrafficTrackingActive: boolean;
202
292
  trafficResetDay: number | null;
@@ -207,17 +297,28 @@ export declare namespace CreateNodeCommand {
207
297
  cpuCount: number | null;
208
298
  cpuModel: string | null;
209
299
  totalRam: string | null;
210
- activeConfigProfileUuid: string | null;
211
- activeInbounds: {
212
- type: string;
300
+ configProfile: {
301
+ activeConfigProfileUuid: string | null;
302
+ activeInbounds: {
303
+ type: string;
304
+ uuid: string;
305
+ profileUuid: string;
306
+ tag: string;
307
+ network: string | null;
308
+ security: string | null;
309
+ port: number | null;
310
+ rawInbound?: unknown;
311
+ }[];
312
+ };
313
+ providerUuid: string | null;
314
+ provider: {
213
315
  uuid: string;
214
- profileUuid: string;
215
- tag: string;
216
- network: string | null;
217
- security: string | null;
218
- port: number | null;
219
- rawInbound?: unknown;
220
- }[] | null;
316
+ createdAt: Date;
317
+ updatedAt: Date;
318
+ name: string;
319
+ faviconLink: string | null;
320
+ loginUrl: string | null;
321
+ } | null;
221
322
  };
222
323
  }, {
223
324
  response: {
@@ -238,6 +339,7 @@ export declare namespace CreateNodeCommand {
238
339
  lastStatusChange: string | null;
239
340
  lastStatusMessage: string | null;
240
341
  xrayVersion: string | null;
342
+ nodeVersion: string | null;
241
343
  xrayUptime: string;
242
344
  isTrafficTrackingActive: boolean;
243
345
  trafficResetDay: number | null;
@@ -248,17 +350,28 @@ export declare namespace CreateNodeCommand {
248
350
  cpuCount: number | null;
249
351
  cpuModel: string | null;
250
352
  totalRam: string | null;
251
- activeConfigProfileUuid: string | null;
252
- activeInbounds: {
253
- type: string;
353
+ configProfile: {
354
+ activeConfigProfileUuid: string | null;
355
+ activeInbounds: {
356
+ type: string;
357
+ uuid: string;
358
+ profileUuid: string;
359
+ tag: string;
360
+ network: string | null;
361
+ security: string | null;
362
+ port: number | null;
363
+ rawInbound?: unknown;
364
+ }[];
365
+ };
366
+ providerUuid: string | null;
367
+ provider: {
254
368
  uuid: string;
255
- profileUuid: string;
256
- tag: string;
257
- network: string | null;
258
- security: string | null;
259
- port: number | null;
260
- rawInbound?: unknown;
261
- }[] | null;
369
+ createdAt: string;
370
+ updatedAt: string;
371
+ name: string;
372
+ faviconLink: string | null;
373
+ loginUrl: string | null;
374
+ } | null;
262
375
  };
263
376
  }>;
264
377
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
1
+ {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,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,10 +35,13 @@ var CreateNodeCommand;
35
35
  .number()
36
36
  .min(0.1, 'Consumption multiplier must be greater than 0')
37
37
  .transform((n) => Number(n.toFixed(1)))),
38
- activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
39
- activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
40
- invalid_type_error: 'Active inbounds must be an array of UUIDs',
41
- })),
38
+ configProfile: zod_1.z.object({
39
+ activeConfigProfileUuid: zod_1.z.string().uuid(),
40
+ activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
41
+ invalid_type_error: 'Config profile inbound UUID must be an array of UUIDs',
42
+ }),
43
+ }),
44
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
42
45
  });
43
46
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
44
47
  response: models_1.NodesSchema,