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

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 (199) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/internal-squads.d.ts +0 -4
  5. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  6. package/build/backend/api/controllers/internal-squads.js +0 -5
  7. package/build/backend/api/controllers/users.d.ts +0 -1
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +0 -1
  10. package/build/backend/api/routes.d.ts +0 -19
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +0 -19
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -26
  15. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -26
  17. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -26
  19. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -26
  21. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -26
  23. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/create.command.d.ts +19 -47
  25. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.js +13 -13
  27. package/build/backend/commands/hosts/get-all.command.d.ts +10 -26
  28. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
  30. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +21 -57
  34. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/update.command.js +11 -10
  36. package/build/backend/commands/index.d.ts +0 -1
  37. package/build/backend/commands/index.d.ts.map +1 -1
  38. package/build/backend/commands/index.js +0 -1
  39. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  40. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.d.ts → get-internal-squad-by-uuid..d.ts} +1 -1
  41. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
  42. package/build/backend/commands/internal-squads/index.d.ts +1 -2
  43. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  44. package/build/backend/commands/internal-squads/index.js +1 -2
  45. package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
  46. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  47. package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
  48. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  49. package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
  50. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/create.command.d.ts +70 -178
  52. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/create.command.js +4 -7
  54. package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
  55. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  56. package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
  57. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  58. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  59. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  60. package/build/backend/commands/nodes/update.command.d.ts +94 -251
  61. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  62. package/build/backend/commands/nodes/update.command.js +4 -9
  63. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  64. package/build/backend/commands/users/index.d.ts +0 -1
  65. package/build/backend/commands/users/index.d.ts.map +1 -1
  66. package/build/backend/commands/users/index.js +0 -1
  67. package/build/backend/constants/errors/errors.d.ts +0 -95
  68. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  69. package/build/backend/constants/errors/errors.js +0 -95
  70. package/build/backend/constants/events/events.d.ts +0 -11
  71. package/build/backend/constants/events/events.d.ts.map +1 -1
  72. package/build/backend/constants/events/events.js +0 -10
  73. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  74. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  75. package/build/backend/constants/templates/template-keys.js +0 -1
  76. package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
  77. package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
  78. package/build/backend/models/hosts.schema.d.ts +6 -18
  79. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  80. package/build/backend/models/hosts.schema.js +2 -4
  81. package/build/backend/models/index.d.ts +1 -5
  82. package/build/backend/models/index.d.ts.map +1 -1
  83. package/build/backend/models/index.js +1 -5
  84. package/build/backend/models/nodes.schema.d.ts +44 -115
  85. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  86. package/build/backend/models/nodes.schema.js +2 -7
  87. package/build/frontend/api/controllers/index.js +0 -1
  88. package/build/frontend/api/controllers/internal-squads.js +0 -5
  89. package/build/frontend/api/controllers/users.js +0 -1
  90. package/build/frontend/api/routes.js +0 -19
  91. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  92. package/build/frontend/commands/hosts/create.command.js +13 -13
  93. package/build/frontend/commands/hosts/update.command.js +11 -10
  94. package/build/frontend/commands/index.js +0 -1
  95. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  96. package/build/frontend/commands/internal-squads/index.js +1 -2
  97. package/build/frontend/commands/nodes/create.command.js +4 -7
  98. package/build/frontend/commands/nodes/update.command.js +4 -9
  99. package/build/frontend/commands/users/index.js +0 -1
  100. package/build/frontend/constants/errors/errors.js +0 -95
  101. package/build/frontend/constants/events/events.js +0 -10
  102. package/build/frontend/constants/templates/template-keys.js +0 -1
  103. package/build/frontend/models/hosts.schema.js +2 -4
  104. package/build/frontend/models/index.js +1 -5
  105. package/build/frontend/models/nodes.schema.js +2 -7
  106. package/package.json +1 -1
  107. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  108. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  109. package/build/backend/api/controllers/infra-billing.js +0 -18
  110. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  111. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  113. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
  114. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  115. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  116. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  117. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  118. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  119. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  120. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  121. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  122. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
  123. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  124. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  125. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  126. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  127. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  128. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  129. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  130. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  131. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
  132. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
  133. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  134. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  135. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  136. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  137. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  138. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  139. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  140. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  141. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  142. package/build/backend/commands/infra-billing/index.js +0 -28
  143. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
  144. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  145. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  146. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  147. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  148. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  149. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
  150. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
  151. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  152. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
  153. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
  154. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  155. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
  156. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
  157. package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
  158. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
  159. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  160. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  161. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  162. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
  163. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  164. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  165. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  166. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  167. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  168. package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
  169. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  170. package/build/backend/models/infra-billing-node.schema.js +0 -34
  171. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  172. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  173. package/build/backend/models/infra-provider.schema.js +0 -41
  174. package/build/frontend/api/controllers/infra-billing.js +0 -18
  175. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  176. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  177. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  178. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  179. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  180. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  181. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  182. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  183. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  184. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  185. package/build/frontend/commands/infra-billing/index.js +0 -28
  186. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  187. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  188. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  189. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  190. package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
  191. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  192. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  193. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  194. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  195. package/build/frontend/models/infra-provider.schema.js +0 -41
  196. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  197. /package/build/backend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
  198. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  199. /package/build/frontend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -31,84 +31,35 @@ export declare namespace UpdateNodeCommand {
31
31
  totalRam: z.ZodNullable<z.ZodString>;
32
32
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
33
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- configProfile: z.ZodObject<{
35
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
36
- activeInbounds: z.ZodArray<z.ZodObject<{
37
- uuid: z.ZodString;
38
- profileUuid: z.ZodString;
39
- tag: z.ZodString;
40
- type: z.ZodString;
41
- network: z.ZodNullable<z.ZodString>;
42
- security: z.ZodNullable<z.ZodString>;
43
- port: z.ZodNullable<z.ZodNumber>;
44
- rawInbound: z.ZodNullable<z.ZodUnknown>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: string;
47
- uuid: string;
48
- profileUuid: string;
49
- tag: string;
50
- network: string | null;
51
- security: string | null;
52
- port: number | null;
53
- rawInbound?: unknown;
54
- }, {
55
- type: string;
56
- uuid: string;
57
- profileUuid: string;
58
- tag: string;
59
- network: string | null;
60
- security: string | null;
61
- port: number | null;
62
- rawInbound?: unknown;
63
- }>, "many">;
64
- }, "strip", z.ZodTypeAny, {
65
- activeConfigProfileUuid: string | null;
66
- activeInbounds: {
67
- type: string;
68
- uuid: string;
69
- profileUuid: string;
70
- tag: string;
71
- network: string | null;
72
- security: string | null;
73
- port: number | null;
74
- rawInbound?: unknown;
75
- }[];
76
- }, {
77
- activeConfigProfileUuid: string | null;
78
- activeInbounds: {
79
- type: string;
80
- uuid: string;
81
- profileUuid: string;
82
- tag: string;
83
- network: string | null;
84
- security: string | null;
85
- port: number | null;
86
- rawInbound?: unknown;
87
- }[];
88
- }>;
89
- providerUuid: z.ZodNullable<z.ZodString>;
90
- provider: z.ZodNullable<z.ZodObject<{
34
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
35
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
91
36
  uuid: z.ZodString;
92
- name: z.ZodString;
93
- faviconLink: z.ZodNullable<z.ZodString>;
94
- loginUrl: z.ZodNullable<z.ZodString>;
95
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
96
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
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>;
97
44
  }, "strip", z.ZodTypeAny, {
45
+ type: string;
98
46
  uuid: string;
99
- createdAt: Date;
100
- updatedAt: Date;
101
- name: string;
102
- faviconLink: string | null;
103
- loginUrl: string | null;
47
+ profileUuid: string;
48
+ tag: string;
49
+ network: string | null;
50
+ security: string | null;
51
+ port: number | null;
52
+ rawInbound?: unknown;
104
53
  }, {
54
+ type: string;
105
55
  uuid: string;
106
- createdAt: string;
107
- updatedAt: string;
108
- name: string;
109
- faviconLink: string | null;
110
- loginUrl: string | null;
111
- }>>;
56
+ profileUuid: string;
57
+ tag: string;
58
+ network: string | null;
59
+ security: string | null;
60
+ port: number | null;
61
+ rawInbound?: unknown;
62
+ }>, "many">>;
112
63
  }, "uuid"> & {
113
64
  name: z.ZodOptional<z.ZodString>;
114
65
  address: z.ZodOptional<z.ZodString>;
@@ -119,17 +70,8 @@ export declare namespace UpdateNodeCommand {
119
70
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
120
71
  countryCode: z.ZodOptional<z.ZodString>;
121
72
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
122
- configProfile: z.ZodOptional<z.ZodObject<{
123
- activeConfigProfileUuid: z.ZodString;
124
- activeInbounds: z.ZodArray<z.ZodString, "many">;
125
- }, "strip", z.ZodTypeAny, {
126
- activeConfigProfileUuid: string;
127
- activeInbounds: string[];
128
- }, {
129
- activeConfigProfileUuid: string;
130
- activeInbounds: string[];
131
- }>>;
132
- providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
74
+ activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
75
  }, "strip", z.ZodTypeAny, {
134
76
  uuid: string;
135
77
  name?: string | undefined;
@@ -141,11 +83,8 @@ export declare namespace UpdateNodeCommand {
141
83
  trafficResetDay?: number | undefined;
142
84
  notifyPercent?: number | undefined;
143
85
  consumptionMultiplier?: number | undefined;
144
- configProfile?: {
145
- activeConfigProfileUuid: string;
146
- activeInbounds: string[];
147
- } | undefined;
148
- providerUuid?: string | null | undefined;
86
+ activeConfigProfileUuid?: string | undefined;
87
+ activeInbounds?: string[] | undefined;
149
88
  }, {
150
89
  uuid: string;
151
90
  name?: string | undefined;
@@ -157,11 +96,8 @@ export declare namespace UpdateNodeCommand {
157
96
  trafficResetDay?: number | undefined;
158
97
  notifyPercent?: number | undefined;
159
98
  consumptionMultiplier?: number | undefined;
160
- configProfile?: {
161
- activeConfigProfileUuid: string;
162
- activeInbounds: string[];
163
- } | undefined;
164
- providerUuid?: string | null | undefined;
99
+ activeConfigProfileUuid?: string | undefined;
100
+ activeInbounds?: string[] | undefined;
165
101
  }>;
166
102
  type Request = z.infer<typeof RequestSchema>;
167
103
  const ResponseSchema: z.ZodObject<{
@@ -193,84 +129,35 @@ export declare namespace UpdateNodeCommand {
193
129
  totalRam: z.ZodNullable<z.ZodString>;
194
130
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
195
131
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
196
- configProfile: z.ZodObject<{
197
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
198
- activeInbounds: z.ZodArray<z.ZodObject<{
199
- uuid: z.ZodString;
200
- profileUuid: z.ZodString;
201
- tag: z.ZodString;
202
- type: z.ZodString;
203
- network: z.ZodNullable<z.ZodString>;
204
- security: z.ZodNullable<z.ZodString>;
205
- port: z.ZodNullable<z.ZodNumber>;
206
- rawInbound: z.ZodNullable<z.ZodUnknown>;
207
- }, "strip", z.ZodTypeAny, {
208
- type: string;
209
- uuid: string;
210
- profileUuid: string;
211
- tag: string;
212
- network: string | null;
213
- security: string | null;
214
- port: number | null;
215
- rawInbound?: unknown;
216
- }, {
217
- type: string;
218
- uuid: string;
219
- profileUuid: string;
220
- tag: string;
221
- network: string | null;
222
- security: string | null;
223
- port: number | null;
224
- rawInbound?: unknown;
225
- }>, "many">;
226
- }, "strip", z.ZodTypeAny, {
227
- activeConfigProfileUuid: string | null;
228
- activeInbounds: {
229
- type: string;
230
- uuid: string;
231
- profileUuid: string;
232
- tag: string;
233
- network: string | null;
234
- security: string | null;
235
- port: number | null;
236
- rawInbound?: unknown;
237
- }[];
238
- }, {
239
- activeConfigProfileUuid: string | null;
240
- activeInbounds: {
241
- type: string;
242
- uuid: string;
243
- profileUuid: string;
244
- tag: string;
245
- network: string | null;
246
- security: string | null;
247
- port: number | null;
248
- rawInbound?: unknown;
249
- }[];
250
- }>;
251
- providerUuid: z.ZodNullable<z.ZodString>;
252
- provider: z.ZodNullable<z.ZodObject<{
132
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
133
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
253
134
  uuid: z.ZodString;
254
- name: z.ZodString;
255
- faviconLink: z.ZodNullable<z.ZodString>;
256
- loginUrl: z.ZodNullable<z.ZodString>;
257
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
258
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
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>;
259
142
  }, "strip", z.ZodTypeAny, {
143
+ type: string;
260
144
  uuid: string;
261
- createdAt: Date;
262
- updatedAt: Date;
263
- name: string;
264
- faviconLink: string | null;
265
- loginUrl: string | null;
145
+ profileUuid: string;
146
+ tag: string;
147
+ network: string | null;
148
+ security: string | null;
149
+ port: number | null;
150
+ rawInbound?: unknown;
266
151
  }, {
152
+ type: string;
267
153
  uuid: string;
268
- createdAt: string;
269
- updatedAt: string;
270
- name: string;
271
- faviconLink: string | null;
272
- loginUrl: string | null;
273
- }>>;
154
+ profileUuid: string;
155
+ tag: string;
156
+ network: string | null;
157
+ security: string | null;
158
+ port: number | null;
159
+ rawInbound?: unknown;
160
+ }>, "many">>;
274
161
  }, "strip", z.ZodTypeAny, {
275
162
  uuid: string;
276
163
  createdAt: Date;
@@ -299,28 +186,17 @@ export declare namespace UpdateNodeCommand {
299
186
  cpuCount: number | null;
300
187
  cpuModel: string | null;
301
188
  totalRam: string | null;
302
- configProfile: {
303
- activeConfigProfileUuid: string | null;
304
- activeInbounds: {
305
- type: string;
306
- uuid: string;
307
- profileUuid: string;
308
- tag: string;
309
- network: string | null;
310
- security: string | null;
311
- port: number | null;
312
- rawInbound?: unknown;
313
- }[];
314
- };
315
- providerUuid: string | null;
316
- provider: {
189
+ activeConfigProfileUuid: string | null;
190
+ activeInbounds: {
191
+ type: string;
317
192
  uuid: string;
318
- createdAt: Date;
319
- updatedAt: Date;
320
- name: string;
321
- faviconLink: string | null;
322
- loginUrl: string | null;
323
- } | null;
193
+ profileUuid: string;
194
+ tag: string;
195
+ network: string | null;
196
+ security: string | null;
197
+ port: number | null;
198
+ rawInbound?: unknown;
199
+ }[] | null;
324
200
  }, {
325
201
  uuid: string;
326
202
  createdAt: string;
@@ -349,28 +225,17 @@ export declare namespace UpdateNodeCommand {
349
225
  cpuCount: number | null;
350
226
  cpuModel: string | null;
351
227
  totalRam: string | null;
352
- configProfile: {
353
- activeConfigProfileUuid: string | null;
354
- activeInbounds: {
355
- type: string;
356
- uuid: string;
357
- profileUuid: string;
358
- tag: string;
359
- network: string | null;
360
- security: string | null;
361
- port: number | null;
362
- rawInbound?: unknown;
363
- }[];
364
- };
365
- providerUuid: string | null;
366
- provider: {
228
+ activeConfigProfileUuid: string | null;
229
+ activeInbounds: {
230
+ type: string;
367
231
  uuid: string;
368
- createdAt: string;
369
- updatedAt: string;
370
- name: string;
371
- faviconLink: string | null;
372
- loginUrl: string | null;
373
- } | null;
232
+ profileUuid: string;
233
+ tag: string;
234
+ network: string | null;
235
+ security: string | null;
236
+ port: number | null;
237
+ rawInbound?: unknown;
238
+ }[] | null;
374
239
  }>;
375
240
  }, "strip", z.ZodTypeAny, {
376
241
  response: {
@@ -401,28 +266,17 @@ export declare namespace UpdateNodeCommand {
401
266
  cpuCount: number | null;
402
267
  cpuModel: string | null;
403
268
  totalRam: string | null;
404
- configProfile: {
405
- activeConfigProfileUuid: string | null;
406
- activeInbounds: {
407
- type: string;
408
- uuid: string;
409
- profileUuid: string;
410
- tag: string;
411
- network: string | null;
412
- security: string | null;
413
- port: number | null;
414
- rawInbound?: unknown;
415
- }[];
416
- };
417
- providerUuid: string | null;
418
- provider: {
269
+ activeConfigProfileUuid: string | null;
270
+ activeInbounds: {
271
+ type: string;
419
272
  uuid: string;
420
- createdAt: Date;
421
- updatedAt: Date;
422
- name: string;
423
- faviconLink: string | null;
424
- loginUrl: string | null;
425
- } | null;
273
+ profileUuid: string;
274
+ tag: string;
275
+ network: string | null;
276
+ security: string | null;
277
+ port: number | null;
278
+ rawInbound?: unknown;
279
+ }[] | null;
426
280
  };
427
281
  }, {
428
282
  response: {
@@ -453,28 +307,17 @@ export declare namespace UpdateNodeCommand {
453
307
  cpuCount: number | null;
454
308
  cpuModel: string | null;
455
309
  totalRam: string | null;
456
- configProfile: {
457
- activeConfigProfileUuid: string | null;
458
- activeInbounds: {
459
- type: string;
460
- uuid: string;
461
- profileUuid: string;
462
- tag: string;
463
- network: string | null;
464
- security: string | null;
465
- port: number | null;
466
- rawInbound?: unknown;
467
- }[];
468
- };
469
- providerUuid: string | null;
470
- provider: {
310
+ activeConfigProfileUuid: string | null;
311
+ activeInbounds: {
312
+ type: string;
471
313
  uuid: string;
472
- createdAt: string;
473
- updatedAt: string;
474
- name: string;
475
- faviconLink: string | null;
476
- loginUrl: string | null;
477
- } | null;
314
+ profileUuid: string;
315
+ tag: string;
316
+ network: string | null;
317
+ security: string | null;
318
+ port: number | null;
319
+ rawInbound?: unknown;
320
+ }[] | null;
478
321
  };
479
322
  }>;
480
323
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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":"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"}
@@ -31,15 +31,10 @@ 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
- 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())),
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
+ })),
43
38
  });
44
39
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
45
40
  response: models_1.NodesSchema,
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
33
33
  date: Date;
34
34
  nodeName: string;
35
35
  userUuid: string;
36
- nodeUuid: string;
37
36
  total: number;
37
+ nodeUuid: string;
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
41
  userUuid: string;
42
- nodeUuid: string;
43
42
  total: number;
43
+ nodeUuid: string;
44
44
  }>, "many">;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  date: Date;
48
48
  nodeName: string;
49
49
  userUuid: string;
50
- nodeUuid: string;
51
50
  total: number;
51
+ nodeUuid: string;
52
52
  }[];
53
53
  }, {
54
54
  response: {
55
55
  date: string;
56
56
  nodeName: string;
57
57
  userUuid: string;
58
- nodeUuid: string;
59
58
  total: number;
59
+ nodeUuid: string;
60
60
  }[];
61
61
  }>;
62
62
  type Response = z.infer<typeof ResponseSchema>;
@@ -5,7 +5,6 @@ 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';
9
8
  export * from './get-user-by-uuid.command';
10
9
  export * from './get-user-usage-by-range.command';
11
10
  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,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAElD,cAAc,QAAQ,CAAC;AACvB,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,4BAA4B,CAAC;AAE3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,QAAQ,CAAC;AAEvB,cAAc,uBAAuB,CAAC"}
@@ -21,7 +21,6 @@ __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);
25
24
  __exportStar(require("./get-user-by-uuid.command"), exports);
26
25
  __exportStar(require("./get-user-usage-by-range.command"), exports);
27
26
  __exportStar(require("./tags"), exports);
@@ -649,100 +649,5 @@ 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
- };
687
- readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
688
- readonly code: "A132";
689
- readonly message: "Create infra billing history record error";
690
- readonly httpCode: 500;
691
- };
692
- readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
693
- readonly code: "A133";
694
- readonly message: "Get infra billing history records error";
695
- readonly httpCode: 500;
696
- };
697
- readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
698
- readonly code: "A134";
699
- readonly message: "Delete infra billing history record by UUID error";
700
- readonly httpCode: 500;
701
- };
702
- readonly GET_BILLING_NODES_ERROR: {
703
- readonly code: "A135";
704
- readonly message: "Get billing nodes error";
705
- readonly httpCode: 500;
706
- };
707
- readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
708
- readonly code: "A136";
709
- readonly message: "Update infra billing node error";
710
- readonly httpCode: 500;
711
- };
712
- readonly CREATE_INFRA_BILLING_NODE_ERROR: {
713
- readonly code: "A137";
714
- readonly message: "Create infra billing node error";
715
- readonly httpCode: 500;
716
- };
717
- readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
718
- readonly code: "A138";
719
- readonly message: "Delete infra billing node by UUID error";
720
- readonly httpCode: 500;
721
- };
722
- readonly GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
723
- readonly code: "A139";
724
- readonly message: "Get billing nodes for notifications error";
725
- readonly httpCode: 500;
726
- };
727
- readonly ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
728
- readonly code: "A140";
729
- readonly message: "Add users to internal squad error";
730
- readonly httpCode: 500;
731
- };
732
- readonly INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
733
- readonly code: "A141";
734
- readonly message: "Internal squad bulk actions error";
735
- readonly httpCode: 500;
736
- };
737
- readonly REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
738
- readonly code: "A142";
739
- readonly message: "Remove users from internal squad error";
740
- readonly httpCode: 500;
741
- };
742
- readonly DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
743
- readonly code: "A143";
744
- readonly message: "Delete config profile by UUID error";
745
- readonly httpCode: 500;
746
- };
747
652
  };
748
653
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Z3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,CAAC"}