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

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 (223) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +18 -0
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +5 -0
  10. package/build/backend/api/controllers/users.d.ts +1 -0
  11. package/build/backend/api/controllers/users.d.ts.map +1 -1
  12. package/build/backend/api/controllers/users.js +1 -0
  13. package/build/backend/api/routes.d.ts +19 -0
  14. package/build/backend/api/routes.d.ts.map +1 -1
  15. package/build/backend/api/routes.js +19 -0
  16. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  17. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  18. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  20. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  22. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  24. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  25. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  26. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  27. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  28. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/create.command.js +13 -13
  30. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  31. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  32. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  33. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  34. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  35. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  36. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  37. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/update.command.js +10 -11
  39. package/build/backend/commands/index.d.ts +1 -0
  40. package/build/backend/commands/index.d.ts.map +1 -1
  41. package/build/backend/commands/index.js +1 -0
  42. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  43. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  44. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  45. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  46. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  47. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  48. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  49. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  50. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  51. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  52. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  53. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  54. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  55. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  56. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  57. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  58. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  59. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  60. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  61. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  62. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  63. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  64. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  65. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  66. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  67. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  68. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  69. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  70. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  71. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  72. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  73. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  74. package/build/backend/commands/infra-billing/index.js +28 -0
  75. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  76. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  77. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  78. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  79. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  80. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  81. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  82. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  83. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  84. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  85. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  86. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  87. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  88. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  89. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  90. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  91. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  92. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  93. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  94. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  95. package/build/backend/commands/internal-squads/index.js +2 -1
  96. package/build/backend/commands/nodes/actions/disable.command.d.ts +162 -64
  97. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  98. package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
  99. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  100. package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
  101. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  102. package/build/backend/commands/nodes/create.command.d.ts +183 -70
  103. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  104. package/build/backend/commands/nodes/create.command.js +7 -4
  105. package/build/backend/commands/nodes/get-all.command.d.ts +162 -64
  106. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  107. package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
  108. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  109. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  110. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  111. package/build/backend/commands/nodes/update.command.d.ts +257 -94
  112. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  113. package/build/backend/commands/nodes/update.command.js +9 -4
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  116. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  117. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  118. package/build/backend/commands/users/index.d.ts +1 -0
  119. package/build/backend/commands/users/index.d.ts.map +1 -1
  120. package/build/backend/commands/users/index.js +1 -0
  121. package/build/backend/constants/errors/errors.d.ts +105 -0
  122. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  123. package/build/backend/constants/errors/errors.js +105 -0
  124. package/build/backend/constants/events/events.d.ts +11 -0
  125. package/build/backend/constants/events/events.d.ts.map +1 -1
  126. package/build/backend/constants/events/events.js +10 -0
  127. package/build/backend/constants/headers/headers.contants.d.ts +3 -0
  128. package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
  129. package/build/backend/constants/headers/headers.contants.js +5 -0
  130. package/build/backend/constants/headers/index.d.ts +2 -0
  131. package/build/backend/constants/headers/index.d.ts.map +1 -0
  132. package/build/backend/constants/headers/index.js +17 -0
  133. package/build/backend/constants/index.d.ts +2 -0
  134. package/build/backend/constants/index.d.ts.map +1 -1
  135. package/build/backend/constants/index.js +2 -0
  136. package/build/backend/constants/messaging/index.d.ts +2 -0
  137. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  138. package/build/backend/constants/messaging/index.js +17 -0
  139. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  140. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  141. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  142. package/build/backend/constants/metrics/metric-names.constant.d.ts +16 -0
  143. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  144. package/build/backend/constants/metrics/metric-names.constant.js +16 -0
  145. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  146. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  147. package/build/backend/constants/templates/template-keys.js +1 -0
  148. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  149. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  150. package/build/backend/models/hosts.schema.d.ts +21 -6
  151. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  152. package/build/backend/models/hosts.schema.js +5 -2
  153. package/build/backend/models/index.d.ts +5 -1
  154. package/build/backend/models/index.d.ts.map +1 -1
  155. package/build/backend/models/index.js +5 -1
  156. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  157. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  158. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  159. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  160. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  161. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  162. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  163. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  164. package/build/backend/models/infra-billing-node.schema.js +34 -0
  165. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  166. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  167. package/build/backend/models/infra-provider.schema.js +41 -0
  168. package/build/backend/models/nodes.schema.d.ts +118 -44
  169. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  170. package/build/backend/models/nodes.schema.js +8 -2
  171. package/build/frontend/api/controllers/index.js +1 -0
  172. package/build/frontend/api/controllers/infra-billing.js +18 -0
  173. package/build/frontend/api/controllers/internal-squads.js +5 -0
  174. package/build/frontend/api/controllers/users.js +1 -0
  175. package/build/frontend/api/routes.js +19 -0
  176. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  177. package/build/frontend/commands/hosts/create.command.js +13 -13
  178. package/build/frontend/commands/hosts/update.command.js +10 -11
  179. package/build/frontend/commands/index.js +1 -0
  180. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  181. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  182. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  183. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  184. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  185. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  186. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  187. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  188. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  189. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  190. package/build/frontend/commands/infra-billing/index.js +28 -0
  191. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  192. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  193. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  194. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  195. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  196. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  197. package/build/frontend/commands/internal-squads/index.js +2 -1
  198. package/build/frontend/commands/nodes/create.command.js +7 -4
  199. package/build/frontend/commands/nodes/update.command.js +9 -4
  200. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  201. package/build/frontend/commands/users/index.js +1 -0
  202. package/build/frontend/constants/errors/errors.js +105 -0
  203. package/build/frontend/constants/events/events.js +10 -0
  204. package/build/frontend/constants/headers/headers.contants.js +5 -0
  205. package/build/frontend/constants/headers/index.js +17 -0
  206. package/build/frontend/constants/index.js +2 -0
  207. package/build/frontend/constants/messaging/index.js +17 -0
  208. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  209. package/build/frontend/constants/metrics/metric-names.constant.js +16 -0
  210. package/build/frontend/constants/templates/template-keys.js +1 -0
  211. package/build/frontend/models/hosts.schema.js +5 -2
  212. package/build/frontend/models/index.js +5 -1
  213. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  214. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  215. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  216. package/build/frontend/models/infra-provider.schema.js +41 -0
  217. package/build/frontend/models/nodes.schema.js +8 -2
  218. package/package.json +2 -2
  219. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  220. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  221. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  222. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  223. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -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"}
@@ -30,8 +30,17 @@ 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
+ 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 GetOneHostCommand {
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 GetOneHostCommand {
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 GetOneHostCommand {
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 GetOneHostCommand {
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":"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,17 @@ 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
+ 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
  }, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
28
37
  uuid: string;
29
38
  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,28 @@ 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
+ inbound: z.ZodObject<{
25
+ configProfileUuid: z.ZodNullable<z.ZodString>;
26
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ configProfileUuid: string | null;
29
+ configProfileInboundUuid: string | null;
30
+ }, {
31
+ configProfileUuid: string | null;
32
+ configProfileInboundUuid: string | null;
33
+ }>;
34
+ serverDescription: z.ZodNullable<z.ZodString>;
26
35
  }, "uuid"> & {
27
- configProfileUuid: z.ZodOptional<z.ZodString>;
28
- configProfileInboundUuid: z.ZodOptional<z.ZodString>;
36
+ inbound: z.ZodOptional<z.ZodObject<{
37
+ configProfileUuid: z.ZodString;
38
+ configProfileInboundUuid: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ configProfileUuid: string;
41
+ configProfileInboundUuid: string;
42
+ }, {
43
+ configProfileUuid: string;
44
+ configProfileInboundUuid: string;
45
+ }>>;
29
46
  remark: z.ZodOptional<z.ZodString>;
30
47
  address: z.ZodOptional<z.ZodString>;
31
48
  port: z.ZodOptional<z.ZodNumber>;
@@ -51,7 +68,6 @@ export declare namespace UpdateHostCommand {
51
68
  readonly RANDOM: "random";
52
69
  readonly RANDOMIZED: "randomized";
53
70
  }>>>;
54
- allowInsecure: z.ZodOptional<z.ZodBoolean>;
55
71
  isDisabled: z.ZodOptional<z.ZodBoolean>;
56
72
  securityLayer: z.ZodOptional<z.ZodNativeEnum<{
57
73
  readonly DEFAULT: "DEFAULT";
@@ -59,6 +75,7 @@ export declare namespace UpdateHostCommand {
59
75
  readonly NONE: "NONE";
60
76
  }>>;
61
77
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
78
+ serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
79
  }, "strip", z.ZodTypeAny, {
63
80
  uuid: string;
64
81
  path?: string | undefined;
@@ -72,9 +89,11 @@ export declare namespace UpdateHostCommand {
72
89
  isDisabled?: boolean | undefined;
73
90
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
74
91
  xHttpExtraParams?: unknown;
75
- configProfileUuid?: string | undefined;
76
- configProfileInboundUuid?: string | undefined;
77
- allowInsecure?: boolean | undefined;
92
+ inbound?: {
93
+ configProfileUuid: string;
94
+ configProfileInboundUuid: string;
95
+ } | undefined;
96
+ serverDescription?: string | null | undefined;
78
97
  }, {
79
98
  uuid: string;
80
99
  path?: string | undefined;
@@ -88,9 +107,11 @@ export declare namespace UpdateHostCommand {
88
107
  isDisabled?: boolean | undefined;
89
108
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
90
109
  xHttpExtraParams?: unknown;
91
- configProfileUuid?: string | undefined;
92
- configProfileInboundUuid?: string | undefined;
93
- allowInsecure?: boolean | undefined;
110
+ inbound?: {
111
+ configProfileUuid: string;
112
+ configProfileInboundUuid: string;
113
+ } | undefined;
114
+ serverDescription?: string | null | undefined;
94
115
  }>;
95
116
  type Request = z.infer<typeof RequestSchema>;
96
117
  const ResponseSchema: z.ZodObject<{
@@ -112,8 +133,17 @@ export declare namespace UpdateHostCommand {
112
133
  readonly NONE: "NONE";
113
134
  }>>;
114
135
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
115
- configProfileUuid: z.ZodNullable<z.ZodString>;
116
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
136
+ inbound: z.ZodObject<{
137
+ configProfileUuid: z.ZodNullable<z.ZodString>;
138
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ configProfileUuid: string | null;
141
+ configProfileInboundUuid: string | null;
142
+ }, {
143
+ configProfileUuid: string | null;
144
+ configProfileInboundUuid: string | null;
145
+ }>;
146
+ serverDescription: z.ZodNullable<z.ZodString>;
117
147
  }, "strip", z.ZodTypeAny, {
118
148
  path: string | null;
119
149
  uuid: string;
@@ -127,8 +157,11 @@ export declare namespace UpdateHostCommand {
127
157
  fingerprint: string | null;
128
158
  isDisabled: boolean;
129
159
  securityLayer: "DEFAULT" | "TLS" | "NONE";
130
- configProfileUuid: string | null;
131
- configProfileInboundUuid: string | null;
160
+ inbound: {
161
+ configProfileUuid: string | null;
162
+ configProfileInboundUuid: string | null;
163
+ };
164
+ serverDescription: string | null;
132
165
  xHttpExtraParams?: unknown;
133
166
  }, {
134
167
  path: string | null;
@@ -141,8 +174,11 @@ export declare namespace UpdateHostCommand {
141
174
  host: string | null;
142
175
  alpn: string | null;
143
176
  fingerprint: string | null;
144
- configProfileUuid: string | null;
145
- configProfileInboundUuid: string | null;
177
+ inbound: {
178
+ configProfileUuid: string | null;
179
+ configProfileInboundUuid: string | null;
180
+ };
181
+ serverDescription: string | null;
146
182
  isDisabled?: boolean | undefined;
147
183
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
148
184
  xHttpExtraParams?: unknown;
@@ -161,8 +197,11 @@ export declare namespace UpdateHostCommand {
161
197
  fingerprint: string | null;
162
198
  isDisabled: boolean;
163
199
  securityLayer: "DEFAULT" | "TLS" | "NONE";
164
- configProfileUuid: string | null;
165
- configProfileInboundUuid: string | null;
200
+ inbound: {
201
+ configProfileUuid: string | null;
202
+ configProfileInboundUuid: string | null;
203
+ };
204
+ serverDescription: string | null;
166
205
  xHttpExtraParams?: unknown;
167
206
  };
168
207
  }, {
@@ -177,8 +216,11 @@ export declare namespace UpdateHostCommand {
177
216
  host: string | null;
178
217
  alpn: string | null;
179
218
  fingerprint: string | null;
180
- configProfileUuid: string | null;
181
- configProfileInboundUuid: string | null;
219
+ inbound: {
220
+ configProfileUuid: string | null;
221
+ configProfileInboundUuid: string | null;
222
+ };
223
+ serverDescription: string | null;
182
224
  isDisabled?: boolean | undefined;
183
225
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
184
226
  xHttpExtraParams?: unknown;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4CxB,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,15 @@ 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
+ serverDescription: zod_1.z.optional(zod_1.z
50
+ .string()
51
+ .max(30, {
52
+ message: 'Server description must be less than 30 characters',
53
+ })
54
+ .nullable()),
56
55
  });
57
56
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
58
57
  response: models_1.HostsSchema,
@@ -3,6 +3,7 @@ export * from './auth';
3
3
  export * from './config-profiles';
4
4
  export * from './hosts';
5
5
  export * from './hwid';
6
+ export * from './infra-billing';
6
7
  export * from './internal-squads';
7
8
  export * from './keygen';
8
9
  export * from './nodes';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);