@remnawave/backend-contract 2.0.0-alpha.28 → 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 -31
  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 -31
  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 -31
  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 -31
  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 -31
  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 -52
  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 -31
  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 -31
  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 -11
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +21 -63
  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 -21
  79. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  80. package/build/backend/models/hosts.schema.js +2 -5
  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 -5
  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
@@ -1,465 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace CreateInfraBillingNodeCommand {
3
- const url: "/api/infra-billing/nodes";
4
- const TSQ_url: "/api/infra-billing/nodes";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- providerUuid: z.ZodString;
8
- nodeUuid: z.ZodString;
9
- nextBillingAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
10
- }, "strip", z.ZodTypeAny, {
11
- nodeUuid: string;
12
- providerUuid: string;
13
- nextBillingAt?: Date | undefined;
14
- }, {
15
- nodeUuid: string;
16
- providerUuid: string;
17
- nextBillingAt?: string | undefined;
18
- }>;
19
- type Request = z.infer<typeof RequestSchema>;
20
- const ResponseSchema: z.ZodObject<{
21
- response: z.ZodObject<{
22
- totalBillingNodes: z.ZodNumber;
23
- billingNodes: z.ZodArray<z.ZodObject<{
24
- uuid: z.ZodString;
25
- nodeUuid: z.ZodString;
26
- providerUuid: z.ZodString;
27
- provider: z.ZodObject<Pick<{
28
- uuid: z.ZodString;
29
- name: z.ZodString;
30
- faviconLink: z.ZodNullable<z.ZodString>;
31
- loginUrl: z.ZodNullable<z.ZodString>;
32
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
35
- uuid: string;
36
- name: string;
37
- faviconLink: string | null;
38
- loginUrl: string | null;
39
- }, {
40
- uuid: string;
41
- name: string;
42
- faviconLink: string | null;
43
- loginUrl: string | null;
44
- }>;
45
- node: z.ZodObject<Pick<{
46
- uuid: z.ZodString;
47
- name: z.ZodString;
48
- address: z.ZodString;
49
- port: z.ZodNullable<z.ZodNumber>;
50
- isConnected: z.ZodBoolean;
51
- isDisabled: z.ZodBoolean;
52
- isConnecting: z.ZodBoolean;
53
- isNodeOnline: z.ZodBoolean;
54
- isXrayRunning: z.ZodBoolean;
55
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
56
- lastStatusMessage: z.ZodNullable<z.ZodString>;
57
- xrayVersion: z.ZodNullable<z.ZodString>;
58
- xrayUptime: z.ZodString;
59
- isTrafficTrackingActive: z.ZodBoolean;
60
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
61
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
62
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
63
- notifyPercent: z.ZodNullable<z.ZodNumber>;
64
- usersOnline: z.ZodNullable<z.ZodNumber>;
65
- viewPosition: z.ZodNumber;
66
- countryCode: z.ZodString;
67
- consumptionMultiplier: z.ZodNumber;
68
- cpuCount: z.ZodNullable<z.ZodNumber>;
69
- cpuModel: z.ZodNullable<z.ZodString>;
70
- totalRam: z.ZodNullable<z.ZodString>;
71
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
72
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
73
- configProfile: z.ZodObject<{
74
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
75
- activeInbounds: z.ZodArray<z.ZodObject<{
76
- uuid: z.ZodString;
77
- profileUuid: z.ZodString;
78
- tag: z.ZodString;
79
- type: z.ZodString;
80
- network: z.ZodNullable<z.ZodString>;
81
- security: z.ZodNullable<z.ZodString>;
82
- port: z.ZodNullable<z.ZodNumber>;
83
- rawInbound: z.ZodNullable<z.ZodUnknown>;
84
- }, "strip", z.ZodTypeAny, {
85
- type: string;
86
- uuid: string;
87
- profileUuid: string;
88
- tag: string;
89
- network: string | null;
90
- security: string | null;
91
- port: number | null;
92
- rawInbound?: unknown;
93
- }, {
94
- type: string;
95
- uuid: string;
96
- profileUuid: string;
97
- tag: string;
98
- network: string | null;
99
- security: string | null;
100
- port: number | null;
101
- rawInbound?: unknown;
102
- }>, "many">;
103
- }, "strip", z.ZodTypeAny, {
104
- activeConfigProfileUuid: string | null;
105
- activeInbounds: {
106
- type: string;
107
- uuid: string;
108
- profileUuid: string;
109
- tag: string;
110
- network: string | null;
111
- security: string | null;
112
- port: number | null;
113
- rawInbound?: unknown;
114
- }[];
115
- }, {
116
- activeConfigProfileUuid: string | null;
117
- activeInbounds: {
118
- type: string;
119
- uuid: string;
120
- profileUuid: string;
121
- tag: string;
122
- network: string | null;
123
- security: string | null;
124
- port: number | null;
125
- rawInbound?: unknown;
126
- }[];
127
- }>;
128
- providerUuid: z.ZodNullable<z.ZodString>;
129
- provider: z.ZodNullable<z.ZodObject<{
130
- uuid: z.ZodString;
131
- name: z.ZodString;
132
- faviconLink: z.ZodNullable<z.ZodString>;
133
- loginUrl: z.ZodNullable<z.ZodString>;
134
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
135
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
136
- }, "strip", z.ZodTypeAny, {
137
- uuid: string;
138
- createdAt: Date;
139
- updatedAt: Date;
140
- name: string;
141
- faviconLink: string | null;
142
- loginUrl: string | null;
143
- }, {
144
- uuid: string;
145
- createdAt: string;
146
- updatedAt: string;
147
- name: string;
148
- faviconLink: string | null;
149
- loginUrl: string | null;
150
- }>>;
151
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
152
- uuid: string;
153
- name: string;
154
- countryCode: string;
155
- }, {
156
- uuid: string;
157
- name: string;
158
- countryCode: string;
159
- }>;
160
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
161
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
162
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
163
- }, "strip", z.ZodTypeAny, {
164
- uuid: string;
165
- createdAt: Date;
166
- updatedAt: Date;
167
- nodeUuid: string;
168
- providerUuid: string;
169
- provider: {
170
- uuid: string;
171
- name: string;
172
- faviconLink: string | null;
173
- loginUrl: string | null;
174
- };
175
- node: {
176
- uuid: string;
177
- name: string;
178
- countryCode: string;
179
- };
180
- nextBillingAt: Date;
181
- }, {
182
- uuid: string;
183
- createdAt: string;
184
- updatedAt: string;
185
- nodeUuid: string;
186
- providerUuid: string;
187
- provider: {
188
- uuid: string;
189
- name: string;
190
- faviconLink: string | null;
191
- loginUrl: string | null;
192
- };
193
- node: {
194
- uuid: string;
195
- name: string;
196
- countryCode: string;
197
- };
198
- nextBillingAt: string;
199
- }>, "many">;
200
- availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
201
- uuid: z.ZodString;
202
- name: z.ZodString;
203
- address: z.ZodString;
204
- port: z.ZodNullable<z.ZodNumber>;
205
- isConnected: z.ZodBoolean;
206
- isDisabled: z.ZodBoolean;
207
- isConnecting: z.ZodBoolean;
208
- isNodeOnline: z.ZodBoolean;
209
- isXrayRunning: z.ZodBoolean;
210
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
211
- lastStatusMessage: z.ZodNullable<z.ZodString>;
212
- xrayVersion: z.ZodNullable<z.ZodString>;
213
- xrayUptime: z.ZodString;
214
- isTrafficTrackingActive: z.ZodBoolean;
215
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
216
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
217
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
218
- notifyPercent: z.ZodNullable<z.ZodNumber>;
219
- usersOnline: z.ZodNullable<z.ZodNumber>;
220
- viewPosition: z.ZodNumber;
221
- countryCode: z.ZodString;
222
- consumptionMultiplier: z.ZodNumber;
223
- cpuCount: z.ZodNullable<z.ZodNumber>;
224
- cpuModel: z.ZodNullable<z.ZodString>;
225
- totalRam: z.ZodNullable<z.ZodString>;
226
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
227
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
228
- configProfile: z.ZodObject<{
229
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
230
- activeInbounds: z.ZodArray<z.ZodObject<{
231
- uuid: z.ZodString;
232
- profileUuid: z.ZodString;
233
- tag: z.ZodString;
234
- type: z.ZodString;
235
- network: z.ZodNullable<z.ZodString>;
236
- security: z.ZodNullable<z.ZodString>;
237
- port: z.ZodNullable<z.ZodNumber>;
238
- rawInbound: z.ZodNullable<z.ZodUnknown>;
239
- }, "strip", z.ZodTypeAny, {
240
- type: string;
241
- uuid: string;
242
- profileUuid: string;
243
- tag: string;
244
- network: string | null;
245
- security: string | null;
246
- port: number | null;
247
- rawInbound?: unknown;
248
- }, {
249
- type: string;
250
- uuid: string;
251
- profileUuid: string;
252
- tag: string;
253
- network: string | null;
254
- security: string | null;
255
- port: number | null;
256
- rawInbound?: unknown;
257
- }>, "many">;
258
- }, "strip", z.ZodTypeAny, {
259
- activeConfigProfileUuid: string | null;
260
- activeInbounds: {
261
- type: string;
262
- uuid: string;
263
- profileUuid: string;
264
- tag: string;
265
- network: string | null;
266
- security: string | null;
267
- port: number | null;
268
- rawInbound?: unknown;
269
- }[];
270
- }, {
271
- activeConfigProfileUuid: string | null;
272
- activeInbounds: {
273
- type: string;
274
- uuid: string;
275
- profileUuid: string;
276
- tag: string;
277
- network: string | null;
278
- security: string | null;
279
- port: number | null;
280
- rawInbound?: unknown;
281
- }[];
282
- }>;
283
- providerUuid: z.ZodNullable<z.ZodString>;
284
- provider: z.ZodNullable<z.ZodObject<{
285
- uuid: z.ZodString;
286
- name: z.ZodString;
287
- faviconLink: z.ZodNullable<z.ZodString>;
288
- loginUrl: z.ZodNullable<z.ZodString>;
289
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
290
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
291
- }, "strip", z.ZodTypeAny, {
292
- uuid: string;
293
- createdAt: Date;
294
- updatedAt: Date;
295
- name: string;
296
- faviconLink: string | null;
297
- loginUrl: string | null;
298
- }, {
299
- uuid: string;
300
- createdAt: string;
301
- updatedAt: string;
302
- name: string;
303
- faviconLink: string | null;
304
- loginUrl: string | null;
305
- }>>;
306
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
307
- uuid: string;
308
- name: string;
309
- countryCode: string;
310
- }, {
311
- uuid: string;
312
- name: string;
313
- countryCode: string;
314
- }>, "many">;
315
- totalAvailableBillingNodes: z.ZodNumber;
316
- stats: z.ZodObject<{
317
- upcomingNodesCount: z.ZodNumber;
318
- currentMonthPayments: z.ZodNumber;
319
- totalSpent: z.ZodNumber;
320
- }, "strip", z.ZodTypeAny, {
321
- upcomingNodesCount: number;
322
- currentMonthPayments: number;
323
- totalSpent: number;
324
- }, {
325
- upcomingNodesCount: number;
326
- currentMonthPayments: number;
327
- totalSpent: number;
328
- }>;
329
- }, "strip", z.ZodTypeAny, {
330
- stats: {
331
- upcomingNodesCount: number;
332
- currentMonthPayments: number;
333
- totalSpent: number;
334
- };
335
- billingNodes: {
336
- uuid: string;
337
- createdAt: Date;
338
- updatedAt: Date;
339
- nodeUuid: string;
340
- providerUuid: string;
341
- provider: {
342
- uuid: string;
343
- name: string;
344
- faviconLink: string | null;
345
- loginUrl: string | null;
346
- };
347
- node: {
348
- uuid: string;
349
- name: string;
350
- countryCode: string;
351
- };
352
- nextBillingAt: Date;
353
- }[];
354
- totalBillingNodes: number;
355
- availableBillingNodes: {
356
- uuid: string;
357
- name: string;
358
- countryCode: string;
359
- }[];
360
- totalAvailableBillingNodes: number;
361
- }, {
362
- stats: {
363
- upcomingNodesCount: number;
364
- currentMonthPayments: number;
365
- totalSpent: number;
366
- };
367
- billingNodes: {
368
- uuid: string;
369
- createdAt: string;
370
- updatedAt: string;
371
- nodeUuid: string;
372
- providerUuid: string;
373
- provider: {
374
- uuid: string;
375
- name: string;
376
- faviconLink: string | null;
377
- loginUrl: string | null;
378
- };
379
- node: {
380
- uuid: string;
381
- name: string;
382
- countryCode: string;
383
- };
384
- nextBillingAt: string;
385
- }[];
386
- totalBillingNodes: number;
387
- availableBillingNodes: {
388
- uuid: string;
389
- name: string;
390
- countryCode: string;
391
- }[];
392
- totalAvailableBillingNodes: number;
393
- }>;
394
- }, "strip", z.ZodTypeAny, {
395
- response: {
396
- stats: {
397
- upcomingNodesCount: number;
398
- currentMonthPayments: number;
399
- totalSpent: number;
400
- };
401
- billingNodes: {
402
- uuid: string;
403
- createdAt: Date;
404
- updatedAt: Date;
405
- nodeUuid: string;
406
- providerUuid: string;
407
- provider: {
408
- uuid: string;
409
- name: string;
410
- faviconLink: string | null;
411
- loginUrl: string | null;
412
- };
413
- node: {
414
- uuid: string;
415
- name: string;
416
- countryCode: string;
417
- };
418
- nextBillingAt: Date;
419
- }[];
420
- totalBillingNodes: number;
421
- availableBillingNodes: {
422
- uuid: string;
423
- name: string;
424
- countryCode: string;
425
- }[];
426
- totalAvailableBillingNodes: number;
427
- };
428
- }, {
429
- response: {
430
- stats: {
431
- upcomingNodesCount: number;
432
- currentMonthPayments: number;
433
- totalSpent: number;
434
- };
435
- billingNodes: {
436
- uuid: string;
437
- createdAt: string;
438
- updatedAt: string;
439
- nodeUuid: string;
440
- providerUuid: string;
441
- provider: {
442
- uuid: string;
443
- name: string;
444
- faviconLink: string | null;
445
- loginUrl: string | null;
446
- };
447
- node: {
448
- uuid: string;
449
- name: string;
450
- countryCode: string;
451
- };
452
- nextBillingAt: string;
453
- }[];
454
- totalBillingNodes: number;
455
- availableBillingNodes: {
456
- uuid: string;
457
- name: string;
458
- countryCode: string;
459
- }[];
460
- totalAvailableBillingNodes: number;
461
- };
462
- }>;
463
- type Response = z.infer<typeof ResponseSchema>;
464
- }
465
- //# sourceMappingURL=create-billing-node.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateInfraBillingNodeCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- const api_1 = require("../../api");
7
- const constants_1 = require("../../constants");
8
- var CreateInfraBillingNodeCommand;
9
- (function (CreateInfraBillingNodeCommand) {
10
- CreateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_NODE;
11
- CreateInfraBillingNodeCommand.TSQ_url = CreateInfraBillingNodeCommand.url;
12
- CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node');
13
- CreateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
- providerUuid: zod_1.z.string().uuid(),
15
- nodeUuid: zod_1.z.string().uuid(),
16
- nextBillingAt: zod_1.z
17
- .string({
18
- invalid_type_error: 'Invalid date format',
19
- })
20
- .datetime({ message: 'Invalid date format', offset: true, local: true })
21
- .transform((str) => new Date(str))
22
- .optional()
23
- .describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
24
- });
25
- CreateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
26
- response: zod_1.z.object({
27
- totalBillingNodes: zod_1.z.number(),
28
- billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
29
- availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
30
- totalAvailableBillingNodes: zod_1.z.number(),
31
- stats: zod_1.z.object({
32
- upcomingNodesCount: zod_1.z.number(),
33
- currentMonthPayments: zod_1.z.number(),
34
- totalSpent: zod_1.z.number(),
35
- }),
36
- }),
37
- });
38
- })(CreateInfraBillingNodeCommand || (exports.CreateInfraBillingNodeCommand = CreateInfraBillingNodeCommand = {}));
@@ -1,123 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace CreateInfraProviderCommand {
3
- const url: "/api/infra-billing/providers";
4
- const TSQ_url: "/api/infra-billing/providers";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- name: z.ZodString;
8
- faviconLink: z.ZodOptional<z.ZodString>;
9
- loginUrl: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- name: string;
12
- faviconLink?: string | undefined;
13
- loginUrl?: string | undefined;
14
- }, {
15
- name: string;
16
- faviconLink?: string | undefined;
17
- loginUrl?: string | undefined;
18
- }>;
19
- type Request = z.infer<typeof RequestSchema>;
20
- const ResponseSchema: z.ZodObject<{
21
- response: z.ZodObject<{
22
- uuid: z.ZodString;
23
- name: z.ZodString;
24
- faviconLink: z.ZodNullable<z.ZodString>;
25
- loginUrl: z.ZodNullable<z.ZodString>;
26
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
- billingHistory: z.ZodObject<{
29
- totalAmount: z.ZodNumber;
30
- totalBills: z.ZodNumber;
31
- }, "strip", z.ZodTypeAny, {
32
- totalAmount: number;
33
- totalBills: number;
34
- }, {
35
- totalAmount: number;
36
- totalBills: number;
37
- }>;
38
- billingNodes: z.ZodArray<z.ZodObject<{
39
- nodeUuid: z.ZodString;
40
- name: z.ZodString;
41
- countryCode: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- name: string;
44
- countryCode: string;
45
- nodeUuid: string;
46
- }, {
47
- name: string;
48
- countryCode: string;
49
- nodeUuid: string;
50
- }>, "many">;
51
- }, "strip", z.ZodTypeAny, {
52
- uuid: string;
53
- createdAt: Date;
54
- updatedAt: Date;
55
- name: string;
56
- faviconLink: string | null;
57
- loginUrl: string | null;
58
- billingHistory: {
59
- totalAmount: number;
60
- totalBills: number;
61
- };
62
- billingNodes: {
63
- name: string;
64
- countryCode: string;
65
- nodeUuid: string;
66
- }[];
67
- }, {
68
- uuid: string;
69
- createdAt: string;
70
- updatedAt: string;
71
- name: string;
72
- faviconLink: string | null;
73
- loginUrl: string | null;
74
- billingHistory: {
75
- totalAmount: number;
76
- totalBills: number;
77
- };
78
- billingNodes: {
79
- name: string;
80
- countryCode: string;
81
- nodeUuid: string;
82
- }[];
83
- }>;
84
- }, "strip", z.ZodTypeAny, {
85
- response: {
86
- uuid: string;
87
- createdAt: Date;
88
- updatedAt: Date;
89
- name: string;
90
- faviconLink: string | null;
91
- loginUrl: string | null;
92
- billingHistory: {
93
- totalAmount: number;
94
- totalBills: number;
95
- };
96
- billingNodes: {
97
- name: string;
98
- countryCode: string;
99
- nodeUuid: string;
100
- }[];
101
- };
102
- }, {
103
- response: {
104
- uuid: string;
105
- createdAt: string;
106
- updatedAt: string;
107
- name: string;
108
- faviconLink: string | null;
109
- loginUrl: string | null;
110
- billingHistory: {
111
- totalAmount: number;
112
- totalBills: number;
113
- };
114
- billingNodes: {
115
- name: string;
116
- countryCode: string;
117
- nodeUuid: string;
118
- }[];
119
- };
120
- }>;
121
- type Response = z.infer<typeof ResponseSchema>;
122
- }
123
- //# sourceMappingURL=create-infra-provider.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAOxB,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,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateInfraProviderCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
- var CreateInfraProviderCommand;
9
- (function (CreateInfraProviderCommand) {
10
- CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
11
- CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
12
- CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
13
- CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
- name: zod_1.z
15
- .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(30, 'Name must be less than 30 characters'),
18
- faviconLink: zod_1.z.string().url().optional(),
19
- loginUrl: zod_1.z.string().url().optional(),
20
- });
21
- CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
22
- response: models_1.InfraProviderSchema,
23
- });
24
- })(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));