@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.1

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 (260) hide show
  1. package/build/backend/api/controllers/auth.d.ts +2 -0
  2. package/build/backend/api/controllers/auth.d.ts.map +1 -1
  3. package/build/backend/api/controllers/auth.js +2 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +1 -1
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
  6. package/build/backend/api/controllers/infra-billing.js +1 -5
  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/subscription.d.ts +1 -0
  11. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  12. package/build/backend/api/controllers/subscription.js +1 -0
  13. package/build/backend/api/controllers/system.d.ts +1 -0
  14. package/build/backend/api/controllers/system.d.ts.map +1 -1
  15. package/build/backend/api/controllers/system.js +1 -0
  16. package/build/backend/api/routes.d.ts +9 -1
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +9 -1
  19. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  20. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/api-tokens/create.command.js +0 -1
  22. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  23. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  24. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  25. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  26. package/build/backend/commands/auth/get-status.command.js +3 -0
  27. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  28. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  29. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  30. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  31. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  33. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  34. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  35. package/build/backend/commands/auth/oauth2/index.js +2 -0
  36. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +36 -10
  37. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +36 -10
  39. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  40. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +36 -10
  41. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +36 -10
  43. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +36 -10
  45. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/create.command.d.ts +60 -19
  47. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/create.command.js +14 -13
  49. package/build/backend/commands/hosts/get-all.command.d.ts +36 -10
  50. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  51. package/build/backend/commands/hosts/get-one.command.d.ts +36 -10
  52. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  53. package/build/backend/commands/hosts/reorder.command.d.ts +12 -2
  54. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/update.command.d.ts +72 -21
  56. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/update.command.js +11 -11
  58. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  59. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  60. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  61. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  62. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  63. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  64. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +59 -0
  65. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  66. package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
  67. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  68. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  69. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  70. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  71. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  72. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  73. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  74. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  75. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  76. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  77. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  78. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  79. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
  80. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
  82. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  83. package/build/backend/commands/infra-billing/index.d.ts +7 -0
  84. package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
  85. package/build/backend/commands/infra-billing/index.js +7 -0
  86. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  87. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  89. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +59 -0
  90. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  91. package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
  92. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  93. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  94. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  95. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  96. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  97. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  98. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  99. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  100. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  101. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  102. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  103. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  104. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  105. package/build/backend/commands/internal-squads/index.js +2 -1
  106. package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
  107. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  108. package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
  109. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  110. package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
  111. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  112. package/build/backend/commands/nodes/create.command.d.ts +158 -107
  113. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  114. package/build/backend/commands/nodes/create.command.js +6 -4
  115. package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
  116. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  117. package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
  118. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  119. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  120. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  121. package/build/backend/commands/nodes/update.command.d.ts +212 -134
  122. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/update.command.js +8 -4
  124. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +361 -0
  125. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  126. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  127. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  128. package/build/backend/commands/subscription/index.d.ts +1 -0
  129. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  130. package/build/backend/commands/subscription/index.js +1 -0
  131. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  132. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  133. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  134. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  135. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  136. package/build/backend/commands/system/index.d.ts +1 -0
  137. package/build/backend/commands/system/index.d.ts.map +1 -1
  138. package/build/backend/commands/system/index.js +1 -0
  139. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  140. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/create-user.command.js +2 -4
  142. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  143. package/build/backend/constants/errors/errors.d.ts +85 -0
  144. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  145. package/build/backend/constants/errors/errors.js +85 -0
  146. package/build/backend/constants/events/events.d.ts +11 -0
  147. package/build/backend/constants/events/events.d.ts.map +1 -1
  148. package/build/backend/constants/events/events.js +10 -0
  149. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  150. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  151. package/build/backend/constants/headers/headers.constants.js +5 -0
  152. package/build/backend/constants/headers/index.d.ts +2 -0
  153. package/build/backend/constants/headers/index.d.ts.map +1 -0
  154. package/build/backend/constants/headers/index.js +17 -0
  155. package/build/backend/constants/index.d.ts +3 -0
  156. package/build/backend/constants/index.d.ts.map +1 -1
  157. package/build/backend/constants/index.js +3 -0
  158. package/build/backend/constants/messaging/index.d.ts +2 -0
  159. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  160. package/build/backend/constants/messaging/index.js +17 -0
  161. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  162. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  163. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  164. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  165. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  166. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  167. package/build/backend/constants/oauth2/index.d.ts +2 -0
  168. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  169. package/build/backend/constants/oauth2/index.js +17 -0
  170. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  171. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  172. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  173. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  174. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  175. package/build/backend/constants/templates/template-keys.js +1 -0
  176. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  177. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  178. package/build/backend/models/api-tokens.schema.js +0 -1
  179. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  180. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  181. package/build/backend/models/hosts.schema.d.ts +24 -6
  182. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  183. package/build/backend/models/hosts.schema.js +6 -2
  184. package/build/backend/models/index.d.ts +4 -1
  185. package/build/backend/models/index.d.ts.map +1 -1
  186. package/build/backend/models/index.js +4 -1
  187. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  188. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  189. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  190. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  191. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  192. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  193. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  194. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  195. package/build/backend/models/infra-billing-node.schema.js +34 -0
  196. package/build/backend/models/infra-provider.schema.d.ts +63 -0
  197. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  198. package/build/backend/models/infra-provider.schema.js +24 -1
  199. package/build/backend/models/nodes.schema.d.ts +96 -63
  200. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  201. package/build/backend/models/nodes.schema.js +6 -3
  202. package/build/frontend/api/controllers/auth.js +2 -0
  203. package/build/frontend/api/controllers/infra-billing.js +1 -5
  204. package/build/frontend/api/controllers/internal-squads.js +5 -0
  205. package/build/frontend/api/controllers/subscription.js +1 -0
  206. package/build/frontend/api/controllers/system.js +1 -0
  207. package/build/frontend/api/routes.js +9 -1
  208. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  209. package/build/frontend/commands/auth/get-status.command.js +3 -0
  210. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  211. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  212. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  213. package/build/frontend/commands/hosts/create.command.js +14 -13
  214. package/build/frontend/commands/hosts/update.command.js +11 -11
  215. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  216. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  217. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +1 -1
  218. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  219. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  220. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  221. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  222. package/build/frontend/commands/infra-billing/index.js +7 -0
  223. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  224. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +1 -1
  225. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  226. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  227. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  228. package/build/frontend/commands/internal-squads/index.js +2 -1
  229. package/build/frontend/commands/nodes/create.command.js +6 -4
  230. package/build/frontend/commands/nodes/update.command.js +8 -4
  231. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  232. package/build/frontend/commands/subscription/index.js +1 -0
  233. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  234. package/build/frontend/commands/system/index.js +1 -0
  235. package/build/frontend/commands/users/create-user.command.js +2 -4
  236. package/build/frontend/constants/errors/errors.js +85 -0
  237. package/build/frontend/constants/events/events.js +10 -0
  238. package/build/frontend/constants/headers/headers.constants.js +5 -0
  239. package/build/frontend/constants/headers/index.js +17 -0
  240. package/build/frontend/constants/index.js +3 -0
  241. package/build/frontend/constants/messaging/index.js +17 -0
  242. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  243. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  244. package/build/frontend/constants/oauth2/index.js +17 -0
  245. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  246. package/build/frontend/constants/templates/template-keys.js +1 -0
  247. package/build/frontend/models/api-tokens.schema.js +0 -1
  248. package/build/frontend/models/hosts.schema.js +6 -2
  249. package/build/frontend/models/index.js +4 -1
  250. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  251. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  252. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  253. package/build/frontend/models/infra-provider.schema.js +24 -1
  254. package/build/frontend/models/nodes.schema.js +6 -3
  255. package/package.json +2 -2
  256. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  257. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  258. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  259. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  260. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -22,8 +22,18 @@ export declare namespace GetAllHostsCommand {
22
22
  readonly NONE: "NONE";
23
23
  }>>;
24
24
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
25
- configProfileUuid: z.ZodNullable<z.ZodString>;
26
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
25
+ muxParams: z.ZodNullable<z.ZodUnknown>;
26
+ inbound: z.ZodObject<{
27
+ configProfileUuid: z.ZodNullable<z.ZodString>;
28
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ configProfileUuid: string | null;
31
+ configProfileInboundUuid: string | null;
32
+ }, {
33
+ configProfileUuid: string | null;
34
+ configProfileInboundUuid: string | null;
35
+ }>;
36
+ serverDescription: z.ZodNullable<z.ZodString>;
27
37
  }, "strip", z.ZodTypeAny, {
28
38
  path: string | null;
29
39
  uuid: string;
@@ -37,9 +47,13 @@ export declare namespace GetAllHostsCommand {
37
47
  fingerprint: string | null;
38
48
  isDisabled: boolean;
39
49
  securityLayer: "DEFAULT" | "TLS" | "NONE";
40
- configProfileUuid: string | null;
41
- configProfileInboundUuid: string | null;
50
+ inbound: {
51
+ configProfileUuid: string | null;
52
+ configProfileInboundUuid: string | null;
53
+ };
54
+ serverDescription: string | null;
42
55
  xHttpExtraParams?: unknown;
56
+ muxParams?: unknown;
43
57
  }, {
44
58
  path: string | null;
45
59
  uuid: string;
@@ -51,11 +65,15 @@ export declare namespace GetAllHostsCommand {
51
65
  host: string | null;
52
66
  alpn: string | null;
53
67
  fingerprint: string | null;
54
- configProfileUuid: string | null;
55
- configProfileInboundUuid: string | null;
68
+ inbound: {
69
+ configProfileUuid: string | null;
70
+ configProfileInboundUuid: string | null;
71
+ };
72
+ serverDescription: string | null;
56
73
  isDisabled?: boolean | undefined;
57
74
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
58
75
  xHttpExtraParams?: unknown;
76
+ muxParams?: unknown;
59
77
  }>, "many">;
60
78
  }, "strip", z.ZodTypeAny, {
61
79
  response: {
@@ -71,9 +89,13 @@ export declare namespace GetAllHostsCommand {
71
89
  fingerprint: string | null;
72
90
  isDisabled: boolean;
73
91
  securityLayer: "DEFAULT" | "TLS" | "NONE";
74
- configProfileUuid: string | null;
75
- configProfileInboundUuid: string | null;
92
+ inbound: {
93
+ configProfileUuid: string | null;
94
+ configProfileInboundUuid: string | null;
95
+ };
96
+ serverDescription: string | null;
76
97
  xHttpExtraParams?: unknown;
98
+ muxParams?: unknown;
77
99
  }[];
78
100
  }, {
79
101
  response: {
@@ -87,11 +109,15 @@ export declare namespace GetAllHostsCommand {
87
109
  host: string | null;
88
110
  alpn: string | null;
89
111
  fingerprint: string | null;
90
- configProfileUuid: string | null;
91
- configProfileInboundUuid: string | null;
112
+ inbound: {
113
+ configProfileUuid: string | null;
114
+ configProfileInboundUuid: string | null;
115
+ };
116
+ serverDescription: string | null;
92
117
  isDisabled?: boolean | undefined;
93
118
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
94
119
  xHttpExtraParams?: unknown;
120
+ muxParams?: unknown;
95
121
  }[];
96
122
  }>;
97
123
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -30,8 +30,18 @@ export declare namespace GetOneHostCommand {
30
30
  readonly NONE: "NONE";
31
31
  }>>;
32
32
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
33
- configProfileUuid: z.ZodNullable<z.ZodString>;
34
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
33
+ muxParams: z.ZodNullable<z.ZodUnknown>;
34
+ inbound: z.ZodObject<{
35
+ configProfileUuid: z.ZodNullable<z.ZodString>;
36
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ configProfileUuid: string | null;
39
+ configProfileInboundUuid: string | null;
40
+ }, {
41
+ configProfileUuid: string | null;
42
+ configProfileInboundUuid: string | null;
43
+ }>;
44
+ serverDescription: z.ZodNullable<z.ZodString>;
35
45
  }, "strip", z.ZodTypeAny, {
36
46
  path: string | null;
37
47
  uuid: string;
@@ -45,9 +55,13 @@ export declare namespace GetOneHostCommand {
45
55
  fingerprint: string | null;
46
56
  isDisabled: boolean;
47
57
  securityLayer: "DEFAULT" | "TLS" | "NONE";
48
- configProfileUuid: string | null;
49
- configProfileInboundUuid: string | null;
58
+ inbound: {
59
+ configProfileUuid: string | null;
60
+ configProfileInboundUuid: string | null;
61
+ };
62
+ serverDescription: string | null;
50
63
  xHttpExtraParams?: unknown;
64
+ muxParams?: unknown;
51
65
  }, {
52
66
  path: string | null;
53
67
  uuid: string;
@@ -59,11 +73,15 @@ export declare namespace GetOneHostCommand {
59
73
  host: string | null;
60
74
  alpn: string | null;
61
75
  fingerprint: string | null;
62
- configProfileUuid: string | null;
63
- configProfileInboundUuid: string | null;
76
+ inbound: {
77
+ configProfileUuid: string | null;
78
+ configProfileInboundUuid: string | null;
79
+ };
80
+ serverDescription: string | null;
64
81
  isDisabled?: boolean | undefined;
65
82
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
66
83
  xHttpExtraParams?: unknown;
84
+ muxParams?: unknown;
67
85
  }>;
68
86
  }, "strip", z.ZodTypeAny, {
69
87
  response: {
@@ -79,9 +97,13 @@ export declare namespace GetOneHostCommand {
79
97
  fingerprint: string | null;
80
98
  isDisabled: boolean;
81
99
  securityLayer: "DEFAULT" | "TLS" | "NONE";
82
- configProfileUuid: string | null;
83
- configProfileInboundUuid: string | null;
100
+ inbound: {
101
+ configProfileUuid: string | null;
102
+ configProfileInboundUuid: string | null;
103
+ };
104
+ serverDescription: string | null;
84
105
  xHttpExtraParams?: unknown;
106
+ muxParams?: unknown;
85
107
  };
86
108
  }, {
87
109
  response: {
@@ -95,11 +117,15 @@ export declare namespace GetOneHostCommand {
95
117
  host: string | null;
96
118
  alpn: string | null;
97
119
  fingerprint: string | null;
98
- configProfileUuid: string | null;
99
- configProfileInboundUuid: string | null;
120
+ inbound: {
121
+ configProfileUuid: string | null;
122
+ configProfileInboundUuid: string | null;
123
+ };
124
+ serverDescription: string | null;
100
125
  isDisabled?: boolean | undefined;
101
126
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
102
127
  xHttpExtraParams?: unknown;
128
+ muxParams?: unknown;
103
129
  };
104
130
  }>;
105
131
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -22,8 +22,18 @@ export declare namespace ReorderHostCommand {
22
22
  readonly NONE: "NONE";
23
23
  }>>;
24
24
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
25
- configProfileUuid: z.ZodNullable<z.ZodString>;
26
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
25
+ muxParams: z.ZodNullable<z.ZodUnknown>;
26
+ inbound: z.ZodObject<{
27
+ configProfileUuid: z.ZodNullable<z.ZodString>;
28
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ configProfileUuid: string | null;
31
+ configProfileInboundUuid: string | null;
32
+ }, {
33
+ configProfileUuid: string | null;
34
+ configProfileInboundUuid: string | null;
35
+ }>;
36
+ serverDescription: z.ZodNullable<z.ZodString>;
27
37
  }, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
28
38
  uuid: string;
29
39
  viewPosition: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -21,11 +21,29 @@ export declare namespace UpdateHostCommand {
21
21
  readonly NONE: "NONE";
22
22
  }>>;
23
23
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
24
- configProfileUuid: z.ZodNullable<z.ZodString>;
25
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
24
+ muxParams: z.ZodNullable<z.ZodUnknown>;
25
+ inbound: z.ZodObject<{
26
+ configProfileUuid: z.ZodNullable<z.ZodString>;
27
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ configProfileUuid: string | null;
30
+ configProfileInboundUuid: string | null;
31
+ }, {
32
+ configProfileUuid: string | null;
33
+ configProfileInboundUuid: string | null;
34
+ }>;
35
+ serverDescription: z.ZodNullable<z.ZodString>;
26
36
  }, "uuid"> & {
27
- configProfileUuid: z.ZodOptional<z.ZodString>;
28
- configProfileInboundUuid: z.ZodOptional<z.ZodString>;
37
+ inbound: z.ZodOptional<z.ZodObject<{
38
+ configProfileUuid: z.ZodString;
39
+ configProfileInboundUuid: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ configProfileUuid: string;
42
+ configProfileInboundUuid: string;
43
+ }, {
44
+ configProfileUuid: string;
45
+ configProfileInboundUuid: string;
46
+ }>>;
29
47
  remark: z.ZodOptional<z.ZodString>;
30
48
  address: z.ZodOptional<z.ZodString>;
31
49
  port: z.ZodOptional<z.ZodNumber>;
@@ -51,7 +69,6 @@ export declare namespace UpdateHostCommand {
51
69
  readonly RANDOM: "random";
52
70
  readonly RANDOMIZED: "randomized";
53
71
  }>>>;
54
- allowInsecure: z.ZodOptional<z.ZodBoolean>;
55
72
  isDisabled: z.ZodOptional<z.ZodBoolean>;
56
73
  securityLayer: z.ZodOptional<z.ZodNativeEnum<{
57
74
  readonly DEFAULT: "DEFAULT";
@@ -59,6 +76,8 @@ export declare namespace UpdateHostCommand {
59
76
  readonly NONE: "NONE";
60
77
  }>>;
61
78
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
79
+ muxParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
80
+ serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
81
  }, "strip", z.ZodTypeAny, {
63
82
  uuid: string;
64
83
  path?: string | undefined;
@@ -72,9 +91,12 @@ export declare namespace UpdateHostCommand {
72
91
  isDisabled?: boolean | undefined;
73
92
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
74
93
  xHttpExtraParams?: unknown;
75
- configProfileUuid?: string | undefined;
76
- configProfileInboundUuid?: string | undefined;
77
- allowInsecure?: boolean | undefined;
94
+ muxParams?: unknown;
95
+ inbound?: {
96
+ configProfileUuid: string;
97
+ configProfileInboundUuid: string;
98
+ } | undefined;
99
+ serverDescription?: string | null | undefined;
78
100
  }, {
79
101
  uuid: string;
80
102
  path?: string | undefined;
@@ -88,9 +110,12 @@ export declare namespace UpdateHostCommand {
88
110
  isDisabled?: boolean | undefined;
89
111
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
90
112
  xHttpExtraParams?: unknown;
91
- configProfileUuid?: string | undefined;
92
- configProfileInboundUuid?: string | undefined;
93
- allowInsecure?: boolean | undefined;
113
+ muxParams?: unknown;
114
+ inbound?: {
115
+ configProfileUuid: string;
116
+ configProfileInboundUuid: string;
117
+ } | undefined;
118
+ serverDescription?: string | null | undefined;
94
119
  }>;
95
120
  type Request = z.infer<typeof RequestSchema>;
96
121
  const ResponseSchema: z.ZodObject<{
@@ -112,8 +137,18 @@ export declare namespace UpdateHostCommand {
112
137
  readonly NONE: "NONE";
113
138
  }>>;
114
139
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
115
- configProfileUuid: z.ZodNullable<z.ZodString>;
116
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
140
+ muxParams: z.ZodNullable<z.ZodUnknown>;
141
+ inbound: z.ZodObject<{
142
+ configProfileUuid: z.ZodNullable<z.ZodString>;
143
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ configProfileUuid: string | null;
146
+ configProfileInboundUuid: string | null;
147
+ }, {
148
+ configProfileUuid: string | null;
149
+ configProfileInboundUuid: string | null;
150
+ }>;
151
+ serverDescription: z.ZodNullable<z.ZodString>;
117
152
  }, "strip", z.ZodTypeAny, {
118
153
  path: string | null;
119
154
  uuid: string;
@@ -127,9 +162,13 @@ export declare namespace UpdateHostCommand {
127
162
  fingerprint: string | null;
128
163
  isDisabled: boolean;
129
164
  securityLayer: "DEFAULT" | "TLS" | "NONE";
130
- configProfileUuid: string | null;
131
- configProfileInboundUuid: string | null;
165
+ inbound: {
166
+ configProfileUuid: string | null;
167
+ configProfileInboundUuid: string | null;
168
+ };
169
+ serverDescription: string | null;
132
170
  xHttpExtraParams?: unknown;
171
+ muxParams?: unknown;
133
172
  }, {
134
173
  path: string | null;
135
174
  uuid: string;
@@ -141,11 +180,15 @@ export declare namespace UpdateHostCommand {
141
180
  host: string | null;
142
181
  alpn: string | null;
143
182
  fingerprint: string | null;
144
- configProfileUuid: string | null;
145
- configProfileInboundUuid: string | null;
183
+ inbound: {
184
+ configProfileUuid: string | null;
185
+ configProfileInboundUuid: string | null;
186
+ };
187
+ serverDescription: string | null;
146
188
  isDisabled?: boolean | undefined;
147
189
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
148
190
  xHttpExtraParams?: unknown;
191
+ muxParams?: unknown;
149
192
  }>;
150
193
  }, "strip", z.ZodTypeAny, {
151
194
  response: {
@@ -161,9 +204,13 @@ export declare namespace UpdateHostCommand {
161
204
  fingerprint: string | null;
162
205
  isDisabled: boolean;
163
206
  securityLayer: "DEFAULT" | "TLS" | "NONE";
164
- configProfileUuid: string | null;
165
- configProfileInboundUuid: string | null;
207
+ inbound: {
208
+ configProfileUuid: string | null;
209
+ configProfileInboundUuid: string | null;
210
+ };
211
+ serverDescription: string | null;
166
212
  xHttpExtraParams?: unknown;
213
+ muxParams?: unknown;
167
214
  };
168
215
  }, {
169
216
  response: {
@@ -177,11 +224,15 @@ export declare namespace UpdateHostCommand {
177
224
  host: string | null;
178
225
  alpn: string | null;
179
226
  fingerprint: string | null;
180
- configProfileUuid: string | null;
181
- configProfileInboundUuid: string | null;
227
+ inbound: {
228
+ configProfileUuid: string | null;
229
+ configProfileInboundUuid: string | null;
230
+ };
231
+ serverDescription: string | null;
182
232
  isDisabled?: boolean | undefined;
183
233
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
184
234
  xHttpExtraParams?: unknown;
235
+ muxParams?: unknown;
185
236
  };
186
237
  }>;
187
238
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/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,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2CxB,CAAC;IACH,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/hosts/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,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6CxB,CAAC;IACH,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"}
@@ -13,17 +13,11 @@ var UpdateHostCommand;
13
13
  UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
14
14
  uuid: true,
15
15
  }).extend({
16
- configProfileUuid: zod_1.z
17
- .string({
18
- invalid_type_error: 'Config Profile UUID must be a string',
16
+ inbound: zod_1.z
17
+ .object({
18
+ configProfileUuid: zod_1.z.string().uuid(),
19
+ configProfileInboundUuid: zod_1.z.string().uuid(),
19
20
  })
20
- .uuid('Config Profile UUID must be a valid UUID')
21
- .optional(),
22
- configProfileInboundUuid: zod_1.z
23
- .string({
24
- invalid_type_error: 'Inbound UUID must be a string',
25
- })
26
- .uuid('Inbound UUID must be a valid UUID')
27
21
  .optional(),
28
22
  remark: zod_1.z
29
23
  .string({
@@ -49,10 +43,16 @@ var UpdateHostCommand;
49
43
  host: zod_1.z.optional(zod_1.z.string()),
50
44
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
51
45
  fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
52
- allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
53
46
  isDisabled: zod_1.z.optional(zod_1.z.boolean()),
54
47
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
55
48
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
49
+ muxParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
50
+ serverDescription: zod_1.z.optional(zod_1.z
51
+ .string()
52
+ .max(30, {
53
+ message: 'Server description must be less than 30 characters',
54
+ })
55
+ .nullable()),
56
56
  });
57
57
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
58
58
  response: models_1.HostsSchema,
@@ -0,0 +1,125 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateInfraBillingHistoryRecordCommand {
3
+ const url: "/api/infra-billing/history";
4
+ const TSQ_url: "/api/infra-billing/history";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ providerUuid: z.ZodString;
8
+ amount: z.ZodNumber;
9
+ billedAt: z.ZodEffects<z.ZodString, Date, string>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ providerUuid: string;
12
+ amount: number;
13
+ billedAt: Date;
14
+ }, {
15
+ providerUuid: string;
16
+ amount: number;
17
+ billedAt: string;
18
+ }>;
19
+ type Request = z.infer<typeof RequestSchema>;
20
+ const ResponseSchema: z.ZodObject<{
21
+ response: z.ZodObject<{
22
+ records: z.ZodArray<z.ZodObject<{
23
+ uuid: z.ZodString;
24
+ providerUuid: z.ZodString;
25
+ amount: z.ZodNumber;
26
+ billedAt: z.ZodEffects<z.ZodString, Date, string>;
27
+ provider: z.ZodObject<Omit<{
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
+ }, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
35
+ uuid: string;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ }, {
39
+ uuid: string;
40
+ name: string;
41
+ faviconLink: string | null;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ uuid: string;
45
+ provider: {
46
+ uuid: string;
47
+ name: string;
48
+ faviconLink: string | null;
49
+ };
50
+ providerUuid: string;
51
+ amount: number;
52
+ billedAt: Date;
53
+ }, {
54
+ uuid: string;
55
+ provider: {
56
+ uuid: string;
57
+ name: string;
58
+ faviconLink: string | null;
59
+ };
60
+ providerUuid: string;
61
+ amount: number;
62
+ billedAt: string;
63
+ }>, "many">;
64
+ total: z.ZodNumber;
65
+ }, "strip", z.ZodTypeAny, {
66
+ total: number;
67
+ records: {
68
+ uuid: string;
69
+ provider: {
70
+ uuid: string;
71
+ name: string;
72
+ faviconLink: string | null;
73
+ };
74
+ providerUuid: string;
75
+ amount: number;
76
+ billedAt: Date;
77
+ }[];
78
+ }, {
79
+ total: number;
80
+ records: {
81
+ uuid: string;
82
+ provider: {
83
+ uuid: string;
84
+ name: string;
85
+ faviconLink: string | null;
86
+ };
87
+ providerUuid: string;
88
+ amount: number;
89
+ billedAt: string;
90
+ }[];
91
+ }>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ response: {
94
+ total: number;
95
+ records: {
96
+ uuid: string;
97
+ provider: {
98
+ uuid: string;
99
+ name: string;
100
+ faviconLink: string | null;
101
+ };
102
+ providerUuid: string;
103
+ amount: number;
104
+ billedAt: Date;
105
+ }[];
106
+ };
107
+ }, {
108
+ response: {
109
+ total: number;
110
+ records: {
111
+ uuid: string;
112
+ provider: {
113
+ uuid: string;
114
+ name: string;
115
+ faviconLink: string | null;
116
+ };
117
+ providerUuid: string;
118
+ amount: number;
119
+ billedAt: string;
120
+ }[];
121
+ };
122
+ }>;
123
+ type Response = z.infer<typeof ResponseSchema>;
124
+ }
125
+ //# sourceMappingURL=create-bill-record.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bill-record.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-bill-record.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,8BAAgD,CAAC;IAC1D,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInfraBillingHistoryRecordCommand = 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 CreateInfraBillingHistoryRecordCommand;
9
+ (function (CreateInfraBillingHistoryRecordCommand) {
10
+ CreateInfraBillingHistoryRecordCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_HISTORY;
11
+ CreateInfraBillingHistoryRecordCommand.TSQ_url = CreateInfraBillingHistoryRecordCommand.url;
12
+ CreateInfraBillingHistoryRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY, 'post', 'Create infra billing history');
13
+ CreateInfraBillingHistoryRecordCommand.RequestSchema = zod_1.z.object({
14
+ providerUuid: zod_1.z.string().uuid(),
15
+ amount: zod_1.z.number().min(0, 'Amount must be greater than 0'),
16
+ billedAt: 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
+ .describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
23
+ });
24
+ CreateInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
25
+ response: zod_1.z.object({
26
+ records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
27
+ total: zod_1.z.number(),
28
+ }),
29
+ });
30
+ })(CreateInfraBillingHistoryRecordCommand || (exports.CreateInfraBillingHistoryRecordCommand = CreateInfraBillingHistoryRecordCommand = {}));