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

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 +31 -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 +31 -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 +31 -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 +31 -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 +31 -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 +52 -19
  47. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/create.command.js +13 -13
  49. package/build/backend/commands/hosts/get-all.command.d.ts +31 -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 +31 -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 +11 -2
  54. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  56. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/update.command.js +10 -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 +354 -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 +67 -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 +21 -6
  182. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  183. package/build/backend/models/hosts.schema.js +5 -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 +13 -13
  214. package/build/frontend/commands/hosts/update.command.js +10 -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 +67 -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 +5 -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
@@ -30,8 +30,17 @@ export declare namespace BulkDisableHostsCommand {
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
+ inbound: z.ZodObject<{
34
+ configProfileUuid: z.ZodNullable<z.ZodString>;
35
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ configProfileUuid: string | null;
38
+ configProfileInboundUuid: string | null;
39
+ }, {
40
+ configProfileUuid: string | null;
41
+ configProfileInboundUuid: string | null;
42
+ }>;
43
+ serverDescription: z.ZodNullable<z.ZodString>;
35
44
  }, "strip", z.ZodTypeAny, {
36
45
  path: string | null;
37
46
  uuid: string;
@@ -45,8 +54,11 @@ export declare namespace BulkDisableHostsCommand {
45
54
  fingerprint: string | null;
46
55
  isDisabled: boolean;
47
56
  securityLayer: "DEFAULT" | "TLS" | "NONE";
48
- configProfileUuid: string | null;
49
- configProfileInboundUuid: string | null;
57
+ inbound: {
58
+ configProfileUuid: string | null;
59
+ configProfileInboundUuid: string | null;
60
+ };
61
+ serverDescription: string | null;
50
62
  xHttpExtraParams?: unknown;
51
63
  }, {
52
64
  path: string | null;
@@ -59,8 +71,11 @@ export declare namespace BulkDisableHostsCommand {
59
71
  host: string | null;
60
72
  alpn: string | null;
61
73
  fingerprint: string | null;
62
- configProfileUuid: string | null;
63
- configProfileInboundUuid: string | null;
74
+ inbound: {
75
+ configProfileUuid: string | null;
76
+ configProfileInboundUuid: string | null;
77
+ };
78
+ serverDescription: string | null;
64
79
  isDisabled?: boolean | undefined;
65
80
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
66
81
  xHttpExtraParams?: unknown;
@@ -79,8 +94,11 @@ export declare namespace BulkDisableHostsCommand {
79
94
  fingerprint: string | null;
80
95
  isDisabled: boolean;
81
96
  securityLayer: "DEFAULT" | "TLS" | "NONE";
82
- configProfileUuid: string | null;
83
- configProfileInboundUuid: string | null;
97
+ inbound: {
98
+ configProfileUuid: string | null;
99
+ configProfileInboundUuid: string | null;
100
+ };
101
+ serverDescription: string | null;
84
102
  xHttpExtraParams?: unknown;
85
103
  }[];
86
104
  }, {
@@ -95,8 +113,11 @@ export declare namespace BulkDisableHostsCommand {
95
113
  host: string | null;
96
114
  alpn: string | null;
97
115
  fingerprint: string | null;
98
- configProfileUuid: string | null;
99
- configProfileInboundUuid: string | null;
116
+ inbound: {
117
+ configProfileUuid: string | null;
118
+ configProfileInboundUuid: string | null;
119
+ };
120
+ serverDescription: string | null;
100
121
  isDisabled?: boolean | undefined;
101
122
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
102
123
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"disable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/disable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAAoC,CAAC;IAC9C,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,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":"disable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/disable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAAoC,CAAC;IAC9C,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,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"}
@@ -30,8 +30,17 @@ export declare namespace BulkEnableHostsCommand {
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
+ inbound: z.ZodObject<{
34
+ configProfileUuid: z.ZodNullable<z.ZodString>;
35
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ configProfileUuid: string | null;
38
+ configProfileInboundUuid: string | null;
39
+ }, {
40
+ configProfileUuid: string | null;
41
+ configProfileInboundUuid: string | null;
42
+ }>;
43
+ serverDescription: z.ZodNullable<z.ZodString>;
35
44
  }, "strip", z.ZodTypeAny, {
36
45
  path: string | null;
37
46
  uuid: string;
@@ -45,8 +54,11 @@ export declare namespace BulkEnableHostsCommand {
45
54
  fingerprint: string | null;
46
55
  isDisabled: boolean;
47
56
  securityLayer: "DEFAULT" | "TLS" | "NONE";
48
- configProfileUuid: string | null;
49
- configProfileInboundUuid: string | null;
57
+ inbound: {
58
+ configProfileUuid: string | null;
59
+ configProfileInboundUuid: string | null;
60
+ };
61
+ serverDescription: string | null;
50
62
  xHttpExtraParams?: unknown;
51
63
  }, {
52
64
  path: string | null;
@@ -59,8 +71,11 @@ export declare namespace BulkEnableHostsCommand {
59
71
  host: string | null;
60
72
  alpn: string | null;
61
73
  fingerprint: string | null;
62
- configProfileUuid: string | null;
63
- configProfileInboundUuid: string | null;
74
+ inbound: {
75
+ configProfileUuid: string | null;
76
+ configProfileInboundUuid: string | null;
77
+ };
78
+ serverDescription: string | null;
64
79
  isDisabled?: boolean | undefined;
65
80
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
66
81
  xHttpExtraParams?: unknown;
@@ -79,8 +94,11 @@ export declare namespace BulkEnableHostsCommand {
79
94
  fingerprint: string | null;
80
95
  isDisabled: boolean;
81
96
  securityLayer: "DEFAULT" | "TLS" | "NONE";
82
- configProfileUuid: string | null;
83
- configProfileInboundUuid: string | null;
97
+ inbound: {
98
+ configProfileUuid: string | null;
99
+ configProfileInboundUuid: string | null;
100
+ };
101
+ serverDescription: string | null;
84
102
  xHttpExtraParams?: unknown;
85
103
  }[];
86
104
  }, {
@@ -95,8 +113,11 @@ export declare namespace BulkEnableHostsCommand {
95
113
  host: string | null;
96
114
  alpn: string | null;
97
115
  fingerprint: string | null;
98
- configProfileUuid: string | null;
99
- configProfileInboundUuid: string | null;
116
+ inbound: {
117
+ configProfileUuid: string | null;
118
+ configProfileInboundUuid: string | null;
119
+ };
120
+ serverDescription: string | null;
100
121
  isDisabled?: boolean | undefined;
101
122
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
102
123
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,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":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,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"}
@@ -36,8 +36,17 @@ export declare namespace SetInboundToManyHostsCommand {
36
36
  readonly NONE: "NONE";
37
37
  }>>;
38
38
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
39
- configProfileUuid: z.ZodNullable<z.ZodString>;
40
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
39
+ inbound: z.ZodObject<{
40
+ configProfileUuid: z.ZodNullable<z.ZodString>;
41
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ configProfileUuid: string | null;
44
+ configProfileInboundUuid: string | null;
45
+ }, {
46
+ configProfileUuid: string | null;
47
+ configProfileInboundUuid: string | null;
48
+ }>;
49
+ serverDescription: z.ZodNullable<z.ZodString>;
41
50
  }, "strip", z.ZodTypeAny, {
42
51
  path: string | null;
43
52
  uuid: string;
@@ -51,8 +60,11 @@ export declare namespace SetInboundToManyHostsCommand {
51
60
  fingerprint: string | null;
52
61
  isDisabled: boolean;
53
62
  securityLayer: "DEFAULT" | "TLS" | "NONE";
54
- configProfileUuid: string | null;
55
- configProfileInboundUuid: string | null;
63
+ inbound: {
64
+ configProfileUuid: string | null;
65
+ configProfileInboundUuid: string | null;
66
+ };
67
+ serverDescription: string | null;
56
68
  xHttpExtraParams?: unknown;
57
69
  }, {
58
70
  path: string | null;
@@ -65,8 +77,11 @@ export declare namespace SetInboundToManyHostsCommand {
65
77
  host: string | null;
66
78
  alpn: string | null;
67
79
  fingerprint: string | null;
68
- configProfileUuid: string | null;
69
- configProfileInboundUuid: string | null;
80
+ inbound: {
81
+ configProfileUuid: string | null;
82
+ configProfileInboundUuid: string | null;
83
+ };
84
+ serverDescription: string | null;
70
85
  isDisabled?: boolean | undefined;
71
86
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
72
87
  xHttpExtraParams?: unknown;
@@ -85,8 +100,11 @@ export declare namespace SetInboundToManyHostsCommand {
85
100
  fingerprint: string | null;
86
101
  isDisabled: boolean;
87
102
  securityLayer: "DEFAULT" | "TLS" | "NONE";
88
- configProfileUuid: string | null;
89
- configProfileInboundUuid: string | null;
103
+ inbound: {
104
+ configProfileUuid: string | null;
105
+ configProfileInboundUuid: string | null;
106
+ };
107
+ serverDescription: string | null;
90
108
  xHttpExtraParams?: unknown;
91
109
  }[];
92
110
  }, {
@@ -101,8 +119,11 @@ export declare namespace SetInboundToManyHostsCommand {
101
119
  host: string | null;
102
120
  alpn: string | null;
103
121
  fingerprint: string | null;
104
- configProfileUuid: string | null;
105
- configProfileInboundUuid: string | null;
122
+ inbound: {
123
+ configProfileUuid: string | null;
124
+ configProfileInboundUuid: string | null;
125
+ };
126
+ serverDescription: string | null;
106
127
  isDisabled?: boolean | undefined;
107
128
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
108
129
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"set-inbound-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-inbound-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,GAAG,+BAAkC,CAAC;IAC5C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAIxB,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":"set-inbound-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-inbound-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,GAAG,+BAAkC,CAAC;IAC5C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAIxB,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"}
@@ -33,8 +33,17 @@ export declare namespace SetPortToManyHostsCommand {
33
33
  readonly NONE: "NONE";
34
34
  }>>;
35
35
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
36
- configProfileUuid: z.ZodNullable<z.ZodString>;
37
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
36
+ inbound: z.ZodObject<{
37
+ configProfileUuid: z.ZodNullable<z.ZodString>;
38
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ configProfileUuid: string | null;
41
+ configProfileInboundUuid: string | null;
42
+ }, {
43
+ configProfileUuid: string | null;
44
+ configProfileInboundUuid: string | null;
45
+ }>;
46
+ serverDescription: z.ZodNullable<z.ZodString>;
38
47
  }, "strip", z.ZodTypeAny, {
39
48
  path: string | null;
40
49
  uuid: string;
@@ -48,8 +57,11 @@ export declare namespace SetPortToManyHostsCommand {
48
57
  fingerprint: string | null;
49
58
  isDisabled: boolean;
50
59
  securityLayer: "DEFAULT" | "TLS" | "NONE";
51
- configProfileUuid: string | null;
52
- configProfileInboundUuid: string | null;
60
+ inbound: {
61
+ configProfileUuid: string | null;
62
+ configProfileInboundUuid: string | null;
63
+ };
64
+ serverDescription: string | null;
53
65
  xHttpExtraParams?: unknown;
54
66
  }, {
55
67
  path: string | null;
@@ -62,8 +74,11 @@ export declare namespace SetPortToManyHostsCommand {
62
74
  host: string | null;
63
75
  alpn: string | null;
64
76
  fingerprint: string | null;
65
- configProfileUuid: string | null;
66
- configProfileInboundUuid: string | null;
77
+ inbound: {
78
+ configProfileUuid: string | null;
79
+ configProfileInboundUuid: string | null;
80
+ };
81
+ serverDescription: string | null;
67
82
  isDisabled?: boolean | undefined;
68
83
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
69
84
  xHttpExtraParams?: unknown;
@@ -82,8 +97,11 @@ export declare namespace SetPortToManyHostsCommand {
82
97
  fingerprint: string | null;
83
98
  isDisabled: boolean;
84
99
  securityLayer: "DEFAULT" | "TLS" | "NONE";
85
- configProfileUuid: string | null;
86
- configProfileInboundUuid: string | null;
100
+ inbound: {
101
+ configProfileUuid: string | null;
102
+ configProfileInboundUuid: string | null;
103
+ };
104
+ serverDescription: string | null;
87
105
  xHttpExtraParams?: unknown;
88
106
  }[];
89
107
  }, {
@@ -98,8 +116,11 @@ export declare namespace SetPortToManyHostsCommand {
98
116
  host: string | null;
99
117
  alpn: string | null;
100
118
  fingerprint: string | null;
101
- configProfileUuid: string | null;
102
- configProfileInboundUuid: string | null;
119
+ inbound: {
120
+ configProfileUuid: string | null;
121
+ configProfileInboundUuid: string | null;
122
+ };
123
+ serverDescription: string | null;
103
124
  isDisabled?: boolean | undefined;
104
125
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
105
126
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"set-port-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-port-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAA+B,CAAC;IACzC,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,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":"set-port-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-port-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAA+B,CAAC;IACzC,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,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"}
@@ -4,8 +4,16 @@ export declare namespace CreateHostCommand {
4
4
  const TSQ_url: "/api/hosts/";
5
5
  const endpointDetails: import("../../constants").EndpointDetails;
6
6
  const RequestSchema: z.ZodObject<{
7
- configProfileUuid: z.ZodOptional<z.ZodString>;
8
- configProfileInboundUuid: z.ZodOptional<z.ZodString>;
7
+ inbound: z.ZodObject<{
8
+ configProfileUuid: z.ZodString;
9
+ configProfileInboundUuid: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ configProfileUuid: string;
12
+ configProfileInboundUuid: string;
13
+ }, {
14
+ configProfileUuid: string;
15
+ configProfileInboundUuid: string;
16
+ }>;
9
17
  remark: z.ZodString;
10
18
  address: z.ZodString;
11
19
  port: z.ZodNumber;
@@ -31,7 +39,6 @@ export declare namespace CreateHostCommand {
31
39
  readonly RANDOM: "random";
32
40
  readonly RANDOMIZED: "randomized";
33
41
  }>>>;
34
- allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
35
42
  isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
36
43
  securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
37
44
  readonly DEFAULT: "DEFAULT";
@@ -39,10 +46,15 @@ export declare namespace CreateHostCommand {
39
46
  readonly NONE: "NONE";
40
47
  }>>>;
41
48
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
49
+ serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
50
  }, "strip", z.ZodTypeAny, {
43
51
  port: number;
44
52
  remark: string;
45
53
  address: string;
54
+ inbound: {
55
+ configProfileUuid: string;
56
+ configProfileInboundUuid: string;
57
+ };
46
58
  path?: string | undefined;
47
59
  sni?: string | undefined;
48
60
  host?: string | undefined;
@@ -51,13 +63,15 @@ export declare namespace CreateHostCommand {
51
63
  isDisabled?: boolean | undefined;
52
64
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
53
65
  xHttpExtraParams?: unknown;
54
- configProfileUuid?: string | undefined;
55
- configProfileInboundUuid?: string | undefined;
56
- allowInsecure?: boolean | undefined;
66
+ serverDescription?: string | null | undefined;
57
67
  }, {
58
68
  port: number;
59
69
  remark: string;
60
70
  address: string;
71
+ inbound: {
72
+ configProfileUuid: string;
73
+ configProfileInboundUuid: string;
74
+ };
61
75
  path?: string | undefined;
62
76
  sni?: string | undefined;
63
77
  host?: string | undefined;
@@ -66,9 +80,7 @@ export declare namespace CreateHostCommand {
66
80
  isDisabled?: boolean | undefined;
67
81
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
68
82
  xHttpExtraParams?: unknown;
69
- configProfileUuid?: string | undefined;
70
- configProfileInboundUuid?: string | undefined;
71
- allowInsecure?: boolean | undefined;
83
+ serverDescription?: string | null | undefined;
72
84
  }>;
73
85
  type Request = z.infer<typeof RequestSchema>;
74
86
  const ResponseSchema: z.ZodObject<{
@@ -90,8 +102,17 @@ export declare namespace CreateHostCommand {
90
102
  readonly NONE: "NONE";
91
103
  }>>;
92
104
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
93
- configProfileUuid: z.ZodNullable<z.ZodString>;
94
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
105
+ inbound: z.ZodObject<{
106
+ configProfileUuid: z.ZodNullable<z.ZodString>;
107
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ configProfileUuid: string | null;
110
+ configProfileInboundUuid: string | null;
111
+ }, {
112
+ configProfileUuid: string | null;
113
+ configProfileInboundUuid: string | null;
114
+ }>;
115
+ serverDescription: z.ZodNullable<z.ZodString>;
95
116
  }, "strip", z.ZodTypeAny, {
96
117
  path: string | null;
97
118
  uuid: string;
@@ -105,8 +126,11 @@ export declare namespace CreateHostCommand {
105
126
  fingerprint: string | null;
106
127
  isDisabled: boolean;
107
128
  securityLayer: "DEFAULT" | "TLS" | "NONE";
108
- configProfileUuid: string | null;
109
- configProfileInboundUuid: string | null;
129
+ inbound: {
130
+ configProfileUuid: string | null;
131
+ configProfileInboundUuid: string | null;
132
+ };
133
+ serverDescription: string | null;
110
134
  xHttpExtraParams?: unknown;
111
135
  }, {
112
136
  path: string | null;
@@ -119,8 +143,11 @@ export declare namespace CreateHostCommand {
119
143
  host: string | null;
120
144
  alpn: string | null;
121
145
  fingerprint: string | null;
122
- configProfileUuid: string | null;
123
- configProfileInboundUuid: string | null;
146
+ inbound: {
147
+ configProfileUuid: string | null;
148
+ configProfileInboundUuid: string | null;
149
+ };
150
+ serverDescription: string | null;
124
151
  isDisabled?: boolean | undefined;
125
152
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
126
153
  xHttpExtraParams?: unknown;
@@ -139,8 +166,11 @@ export declare namespace CreateHostCommand {
139
166
  fingerprint: string | null;
140
167
  isDisabled: boolean;
141
168
  securityLayer: "DEFAULT" | "TLS" | "NONE";
142
- configProfileUuid: string | null;
143
- configProfileInboundUuid: string | null;
169
+ inbound: {
170
+ configProfileUuid: string | null;
171
+ configProfileInboundUuid: string | null;
172
+ };
173
+ serverDescription: string | null;
144
174
  xHttpExtraParams?: unknown;
145
175
  };
146
176
  }, {
@@ -155,8 +185,11 @@ export declare namespace CreateHostCommand {
155
185
  host: string | null;
156
186
  alpn: string | null;
157
187
  fingerprint: string | null;
158
- configProfileUuid: string | null;
159
- configProfileInboundUuid: string | null;
188
+ inbound: {
189
+ configProfileUuid: string | null;
190
+ configProfileInboundUuid: string | null;
191
+ };
192
+ serverDescription: string | null;
160
193
  isDisabled?: boolean | undefined;
161
194
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
162
195
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,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":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwCxB,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"}
@@ -11,21 +11,16 @@ var CreateHostCommand;
11
11
  CreateHostCommand.TSQ_url = CreateHostCommand.url;
12
12
  CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
13
13
  CreateHostCommand.RequestSchema = zod_1.z.object({
14
- configProfileUuid: zod_1.z
15
- .string({
16
- invalid_type_error: 'Config Profile UUID must be a string',
17
- })
18
- .uuid('Config Profile UUID must be a valid UUID')
19
- .optional(),
20
- configProfileInboundUuid: zod_1.z
21
- .string({
22
- invalid_type_error: 'Inbound UUID must be a string',
23
- })
24
- .uuid('Inbound UUID must be a valid UUID')
25
- .optional(),
14
+ inbound: zod_1.z.object({
15
+ configProfileUuid: zod_1.z.string().uuid(),
16
+ configProfileInboundUuid: zod_1.z.string().uuid(),
17
+ }),
26
18
  remark: zod_1.z
27
19
  .string({
28
20
  invalid_type_error: 'Remark must be a string',
21
+ })
22
+ .min(1, {
23
+ message: 'Remark must be at least 1 character',
29
24
  })
30
25
  .max(40, {
31
26
  message: 'Remark must be less than 40 characters',
@@ -43,10 +38,15 @@ var CreateHostCommand;
43
38
  host: zod_1.z.string().optional(),
44
39
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
45
40
  fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
46
- allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
47
41
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
48
42
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
49
43
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
44
+ serverDescription: zod_1.z.optional(zod_1.z
45
+ .string()
46
+ .max(30, {
47
+ message: 'Server description must be less than 30 characters',
48
+ })
49
+ .nullable()),
50
50
  });
51
51
  CreateHostCommand.ResponseSchema = zod_1.z.object({
52
52
  response: models_1.HostsSchema,
@@ -22,8 +22,17 @@ 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
+ 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>;
27
36
  }, "strip", z.ZodTypeAny, {
28
37
  path: string | null;
29
38
  uuid: string;
@@ -37,8 +46,11 @@ export declare namespace GetAllHostsCommand {
37
46
  fingerprint: string | null;
38
47
  isDisabled: boolean;
39
48
  securityLayer: "DEFAULT" | "TLS" | "NONE";
40
- configProfileUuid: string | null;
41
- configProfileInboundUuid: string | null;
49
+ inbound: {
50
+ configProfileUuid: string | null;
51
+ configProfileInboundUuid: string | null;
52
+ };
53
+ serverDescription: string | null;
42
54
  xHttpExtraParams?: unknown;
43
55
  }, {
44
56
  path: string | null;
@@ -51,8 +63,11 @@ export declare namespace GetAllHostsCommand {
51
63
  host: string | null;
52
64
  alpn: string | null;
53
65
  fingerprint: string | null;
54
- configProfileUuid: string | null;
55
- configProfileInboundUuid: string | null;
66
+ inbound: {
67
+ configProfileUuid: string | null;
68
+ configProfileInboundUuid: string | null;
69
+ };
70
+ serverDescription: string | null;
56
71
  isDisabled?: boolean | undefined;
57
72
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
58
73
  xHttpExtraParams?: unknown;
@@ -71,8 +86,11 @@ export declare namespace GetAllHostsCommand {
71
86
  fingerprint: string | null;
72
87
  isDisabled: boolean;
73
88
  securityLayer: "DEFAULT" | "TLS" | "NONE";
74
- configProfileUuid: string | null;
75
- configProfileInboundUuid: string | null;
89
+ inbound: {
90
+ configProfileUuid: string | null;
91
+ configProfileInboundUuid: string | null;
92
+ };
93
+ serverDescription: string | null;
76
94
  xHttpExtraParams?: unknown;
77
95
  }[];
78
96
  }, {
@@ -87,8 +105,11 @@ export declare namespace GetAllHostsCommand {
87
105
  host: string | null;
88
106
  alpn: string | null;
89
107
  fingerprint: string | null;
90
- configProfileUuid: string | null;
91
- configProfileInboundUuid: string | null;
108
+ inbound: {
109
+ configProfileUuid: string | null;
110
+ configProfileInboundUuid: string | null;
111
+ };
112
+ serverDescription: string | null;
92
113
  isDisabled?: boolean | undefined;
93
114
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
94
115
  xHttpExtraParams?: unknown;
@@ -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"}