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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/internal-squads.d.ts +0 -4
  5. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  6. package/build/backend/api/controllers/internal-squads.js +0 -5
  7. package/build/backend/api/controllers/users.d.ts +0 -1
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +0 -1
  10. package/build/backend/api/routes.d.ts +0 -19
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +0 -19
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -26
  15. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -26
  17. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -26
  19. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -26
  21. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -26
  23. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/create.command.d.ts +19 -47
  25. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.js +13 -13
  27. package/build/backend/commands/hosts/get-all.command.d.ts +10 -26
  28. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
  30. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +21 -57
  34. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/update.command.js +11 -10
  36. package/build/backend/commands/index.d.ts +0 -1
  37. package/build/backend/commands/index.d.ts.map +1 -1
  38. package/build/backend/commands/index.js +0 -1
  39. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  40. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.d.ts → get-internal-squad-by-uuid..d.ts} +1 -1
  41. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
  42. package/build/backend/commands/internal-squads/index.d.ts +1 -2
  43. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  44. package/build/backend/commands/internal-squads/index.js +1 -2
  45. package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
  46. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  47. package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
  48. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  49. package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
  50. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/create.command.d.ts +70 -178
  52. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/create.command.js +4 -7
  54. package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
  55. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  56. package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
  57. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  58. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  59. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  60. package/build/backend/commands/nodes/update.command.d.ts +94 -251
  61. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  62. package/build/backend/commands/nodes/update.command.js +4 -9
  63. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  64. package/build/backend/commands/users/index.d.ts +0 -1
  65. package/build/backend/commands/users/index.d.ts.map +1 -1
  66. package/build/backend/commands/users/index.js +0 -1
  67. package/build/backend/constants/errors/errors.d.ts +0 -95
  68. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  69. package/build/backend/constants/errors/errors.js +0 -95
  70. package/build/backend/constants/events/events.d.ts +0 -11
  71. package/build/backend/constants/events/events.d.ts.map +1 -1
  72. package/build/backend/constants/events/events.js +0 -10
  73. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  74. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  75. package/build/backend/constants/templates/template-keys.js +0 -1
  76. package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
  77. package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
  78. package/build/backend/models/hosts.schema.d.ts +6 -18
  79. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  80. package/build/backend/models/hosts.schema.js +2 -4
  81. package/build/backend/models/index.d.ts +1 -5
  82. package/build/backend/models/index.d.ts.map +1 -1
  83. package/build/backend/models/index.js +1 -5
  84. package/build/backend/models/nodes.schema.d.ts +44 -115
  85. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  86. package/build/backend/models/nodes.schema.js +2 -7
  87. package/build/frontend/api/controllers/index.js +0 -1
  88. package/build/frontend/api/controllers/internal-squads.js +0 -5
  89. package/build/frontend/api/controllers/users.js +0 -1
  90. package/build/frontend/api/routes.js +0 -19
  91. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  92. package/build/frontend/commands/hosts/create.command.js +13 -13
  93. package/build/frontend/commands/hosts/update.command.js +11 -10
  94. package/build/frontend/commands/index.js +0 -1
  95. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  96. package/build/frontend/commands/internal-squads/index.js +1 -2
  97. package/build/frontend/commands/nodes/create.command.js +4 -7
  98. package/build/frontend/commands/nodes/update.command.js +4 -9
  99. package/build/frontend/commands/users/index.js +0 -1
  100. package/build/frontend/constants/errors/errors.js +0 -95
  101. package/build/frontend/constants/events/events.js +0 -10
  102. package/build/frontend/constants/templates/template-keys.js +0 -1
  103. package/build/frontend/models/hosts.schema.js +2 -4
  104. package/build/frontend/models/index.js +1 -5
  105. package/build/frontend/models/nodes.schema.js +2 -7
  106. package/package.json +1 -1
  107. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  108. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  109. package/build/backend/api/controllers/infra-billing.js +0 -18
  110. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  111. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  113. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
  114. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  115. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  116. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  117. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  118. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  119. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  120. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  121. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  122. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
  123. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  124. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  125. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  126. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  127. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  128. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  129. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  130. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  131. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
  132. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
  133. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  134. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  135. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  136. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  137. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  138. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  139. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  140. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  141. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  142. package/build/backend/commands/infra-billing/index.js +0 -28
  143. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
  144. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  145. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  146. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  147. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  148. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  149. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
  150. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
  151. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  152. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
  153. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
  154. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  155. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
  156. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
  157. package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
  158. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
  159. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  160. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  161. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  162. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
  163. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  164. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  165. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  166. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  167. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  168. package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
  169. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  170. package/build/backend/models/infra-billing-node.schema.js +0 -34
  171. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  172. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  173. package/build/backend/models/infra-provider.schema.js +0 -41
  174. package/build/frontend/api/controllers/infra-billing.js +0 -18
  175. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  176. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  177. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  178. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  179. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  180. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  181. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  182. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
  183. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  184. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  185. package/build/frontend/commands/infra-billing/index.js +0 -28
  186. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  187. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  188. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
  189. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
  190. package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
  191. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  192. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  193. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  194. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  195. package/build/frontend/models/infra-provider.schema.js +0 -41
  196. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  197. /package/build/backend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
  198. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
  199. /package/build/frontend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -4,16 +4,8 @@ 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
- 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
- }>;
7
+ configProfileUuid: z.ZodOptional<z.ZodString>;
8
+ configProfileInboundUuid: z.ZodOptional<z.ZodString>;
17
9
  remark: z.ZodString;
18
10
  address: z.ZodString;
19
11
  port: z.ZodNumber;
@@ -39,6 +31,7 @@ export declare namespace CreateHostCommand {
39
31
  readonly RANDOM: "random";
40
32
  readonly RANDOMIZED: "randomized";
41
33
  }>>>;
34
+ allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
35
  isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
43
36
  securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
44
37
  readonly DEFAULT: "DEFAULT";
@@ -46,15 +39,10 @@ export declare namespace CreateHostCommand {
46
39
  readonly NONE: "NONE";
47
40
  }>>>;
48
41
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
49
- serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
42
  }, "strip", z.ZodTypeAny, {
51
43
  port: number;
52
44
  remark: string;
53
45
  address: string;
54
- inbound: {
55
- configProfileUuid: string;
56
- configProfileInboundUuid: string;
57
- };
58
46
  path?: string | undefined;
59
47
  sni?: string | undefined;
60
48
  host?: string | undefined;
@@ -63,15 +51,13 @@ export declare namespace CreateHostCommand {
63
51
  isDisabled?: boolean | undefined;
64
52
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
65
53
  xHttpExtraParams?: unknown;
66
- serverDescription?: string | null | undefined;
54
+ configProfileUuid?: string | undefined;
55
+ configProfileInboundUuid?: string | undefined;
56
+ allowInsecure?: boolean | undefined;
67
57
  }, {
68
58
  port: number;
69
59
  remark: string;
70
60
  address: string;
71
- inbound: {
72
- configProfileUuid: string;
73
- configProfileInboundUuid: string;
74
- };
75
61
  path?: string | undefined;
76
62
  sni?: string | undefined;
77
63
  host?: string | undefined;
@@ -80,7 +66,9 @@ export declare namespace CreateHostCommand {
80
66
  isDisabled?: boolean | undefined;
81
67
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
82
68
  xHttpExtraParams?: unknown;
83
- serverDescription?: string | null | undefined;
69
+ configProfileUuid?: string | undefined;
70
+ configProfileInboundUuid?: string | undefined;
71
+ allowInsecure?: boolean | undefined;
84
72
  }>;
85
73
  type Request = z.infer<typeof RequestSchema>;
86
74
  const ResponseSchema: z.ZodObject<{
@@ -102,16 +90,8 @@ export declare namespace CreateHostCommand {
102
90
  readonly NONE: "NONE";
103
91
  }>>;
104
92
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
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
- }>;
93
+ configProfileUuid: z.ZodNullable<z.ZodString>;
94
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
115
95
  }, "strip", z.ZodTypeAny, {
116
96
  path: string | null;
117
97
  uuid: string;
@@ -125,10 +105,8 @@ export declare namespace CreateHostCommand {
125
105
  fingerprint: string | null;
126
106
  isDisabled: boolean;
127
107
  securityLayer: "DEFAULT" | "TLS" | "NONE";
128
- inbound: {
129
- configProfileUuid: string | null;
130
- configProfileInboundUuid: string | null;
131
- };
108
+ configProfileUuid: string | null;
109
+ configProfileInboundUuid: string | null;
132
110
  xHttpExtraParams?: unknown;
133
111
  }, {
134
112
  path: string | null;
@@ -141,10 +119,8 @@ export declare namespace CreateHostCommand {
141
119
  host: string | null;
142
120
  alpn: string | null;
143
121
  fingerprint: string | null;
144
- inbound: {
145
- configProfileUuid: string | null;
146
- configProfileInboundUuid: string | null;
147
- };
122
+ configProfileUuid: string | null;
123
+ configProfileInboundUuid: string | null;
148
124
  isDisabled?: boolean | undefined;
149
125
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
150
126
  xHttpExtraParams?: unknown;
@@ -163,10 +139,8 @@ export declare namespace CreateHostCommand {
163
139
  fingerprint: string | null;
164
140
  isDisabled: boolean;
165
141
  securityLayer: "DEFAULT" | "TLS" | "NONE";
166
- inbound: {
167
- configProfileUuid: string | null;
168
- configProfileInboundUuid: string | null;
169
- };
142
+ configProfileUuid: string | null;
143
+ configProfileInboundUuid: string | null;
170
144
  xHttpExtraParams?: unknown;
171
145
  };
172
146
  }, {
@@ -181,10 +155,8 @@ export declare namespace CreateHostCommand {
181
155
  host: string | null;
182
156
  alpn: string | null;
183
157
  fingerprint: string | null;
184
- inbound: {
185
- configProfileUuid: string | null;
186
- configProfileInboundUuid: string | null;
187
- };
158
+ configProfileUuid: string | null;
159
+ configProfileInboundUuid: string | null;
188
160
  isDisabled?: boolean | undefined;
189
161
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
190
162
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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"}
@@ -11,16 +11,21 @@ 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
- inbound: zod_1.z.object({
15
- configProfileUuid: zod_1.z.string().uuid(),
16
- configProfileInboundUuid: zod_1.z.string().uuid(),
17
- }),
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(),
18
26
  remark: zod_1.z
19
27
  .string({
20
28
  invalid_type_error: 'Remark must be a string',
21
- })
22
- .min(1, {
23
- message: 'Remark must be at least 1 character',
24
29
  })
25
30
  .max(40, {
26
31
  message: 'Remark must be less than 40 characters',
@@ -38,15 +43,10 @@ var CreateHostCommand;
38
43
  host: zod_1.z.string().optional(),
39
44
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
40
45
  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)),
41
47
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
42
48
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
43
49
  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,16 +22,8 @@ export declare namespace GetAllHostsCommand {
22
22
  readonly NONE: "NONE";
23
23
  }>>;
24
24
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
25
- inbound: z.ZodObject<{
26
- configProfileUuid: z.ZodNullable<z.ZodString>;
27
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- configProfileUuid: string | null;
30
- configProfileInboundUuid: string | null;
31
- }, {
32
- configProfileUuid: string | null;
33
- configProfileInboundUuid: string | null;
34
- }>;
25
+ configProfileUuid: z.ZodNullable<z.ZodString>;
26
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
35
27
  }, "strip", z.ZodTypeAny, {
36
28
  path: string | null;
37
29
  uuid: string;
@@ -45,10 +37,8 @@ export declare namespace GetAllHostsCommand {
45
37
  fingerprint: string | null;
46
38
  isDisabled: boolean;
47
39
  securityLayer: "DEFAULT" | "TLS" | "NONE";
48
- inbound: {
49
- configProfileUuid: string | null;
50
- configProfileInboundUuid: string | null;
51
- };
40
+ configProfileUuid: string | null;
41
+ configProfileInboundUuid: string | null;
52
42
  xHttpExtraParams?: unknown;
53
43
  }, {
54
44
  path: string | null;
@@ -61,10 +51,8 @@ export declare namespace GetAllHostsCommand {
61
51
  host: string | null;
62
52
  alpn: string | null;
63
53
  fingerprint: string | null;
64
- inbound: {
65
- configProfileUuid: string | null;
66
- configProfileInboundUuid: string | null;
67
- };
54
+ configProfileUuid: string | null;
55
+ configProfileInboundUuid: string | null;
68
56
  isDisabled?: boolean | undefined;
69
57
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
70
58
  xHttpExtraParams?: unknown;
@@ -83,10 +71,8 @@ export declare namespace GetAllHostsCommand {
83
71
  fingerprint: string | null;
84
72
  isDisabled: boolean;
85
73
  securityLayer: "DEFAULT" | "TLS" | "NONE";
86
- inbound: {
87
- configProfileUuid: string | null;
88
- configProfileInboundUuid: string | null;
89
- };
74
+ configProfileUuid: string | null;
75
+ configProfileInboundUuid: string | null;
90
76
  xHttpExtraParams?: unknown;
91
77
  }[];
92
78
  }, {
@@ -101,10 +87,8 @@ export declare namespace GetAllHostsCommand {
101
87
  host: string | null;
102
88
  alpn: string | null;
103
89
  fingerprint: string | null;
104
- inbound: {
105
- configProfileUuid: string | null;
106
- configProfileInboundUuid: string | null;
107
- };
90
+ configProfileUuid: string | null;
91
+ configProfileInboundUuid: string | null;
108
92
  isDisabled?: boolean | undefined;
109
93
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
110
94
  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,16 +30,8 @@ export declare namespace GetOneHostCommand {
30
30
  readonly NONE: "NONE";
31
31
  }>>;
32
32
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
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
- }>;
33
+ configProfileUuid: z.ZodNullable<z.ZodString>;
34
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
43
35
  }, "strip", z.ZodTypeAny, {
44
36
  path: string | null;
45
37
  uuid: string;
@@ -53,10 +45,8 @@ export declare namespace GetOneHostCommand {
53
45
  fingerprint: string | null;
54
46
  isDisabled: boolean;
55
47
  securityLayer: "DEFAULT" | "TLS" | "NONE";
56
- inbound: {
57
- configProfileUuid: string | null;
58
- configProfileInboundUuid: string | null;
59
- };
48
+ configProfileUuid: string | null;
49
+ configProfileInboundUuid: string | null;
60
50
  xHttpExtraParams?: unknown;
61
51
  }, {
62
52
  path: string | null;
@@ -69,10 +59,8 @@ export declare namespace GetOneHostCommand {
69
59
  host: string | null;
70
60
  alpn: string | null;
71
61
  fingerprint: string | null;
72
- inbound: {
73
- configProfileUuid: string | null;
74
- configProfileInboundUuid: string | null;
75
- };
62
+ configProfileUuid: string | null;
63
+ configProfileInboundUuid: string | null;
76
64
  isDisabled?: boolean | undefined;
77
65
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
78
66
  xHttpExtraParams?: unknown;
@@ -91,10 +79,8 @@ export declare namespace GetOneHostCommand {
91
79
  fingerprint: string | null;
92
80
  isDisabled: boolean;
93
81
  securityLayer: "DEFAULT" | "TLS" | "NONE";
94
- inbound: {
95
- configProfileUuid: string | null;
96
- configProfileInboundUuid: string | null;
97
- };
82
+ configProfileUuid: string | null;
83
+ configProfileInboundUuid: string | null;
98
84
  xHttpExtraParams?: unknown;
99
85
  };
100
86
  }, {
@@ -109,10 +95,8 @@ export declare namespace GetOneHostCommand {
109
95
  host: string | null;
110
96
  alpn: string | null;
111
97
  fingerprint: string | null;
112
- inbound: {
113
- configProfileUuid: string | null;
114
- configProfileInboundUuid: string | null;
115
- };
98
+ configProfileUuid: string | null;
99
+ configProfileInboundUuid: string | null;
116
100
  isDisabled?: boolean | undefined;
117
101
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
118
102
  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,16 +22,8 @@ export declare namespace ReorderHostCommand {
22
22
  readonly NONE: "NONE";
23
23
  }>>;
24
24
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
25
- inbound: z.ZodObject<{
26
- configProfileUuid: z.ZodNullable<z.ZodString>;
27
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- configProfileUuid: string | null;
30
- configProfileInboundUuid: string | null;
31
- }, {
32
- configProfileUuid: string | null;
33
- configProfileInboundUuid: string | null;
34
- }>;
25
+ configProfileUuid: z.ZodNullable<z.ZodString>;
26
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
35
27
  }, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
36
28
  uuid: string;
37
29
  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,27 +21,11 @@ export declare namespace UpdateHostCommand {
21
21
  readonly NONE: "NONE";
22
22
  }>>;
23
23
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
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
- }>;
24
+ configProfileUuid: z.ZodNullable<z.ZodString>;
25
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
34
26
  }, "uuid"> & {
35
- inbound: z.ZodOptional<z.ZodObject<{
36
- configProfileUuid: z.ZodString;
37
- configProfileInboundUuid: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- configProfileUuid: string;
40
- configProfileInboundUuid: string;
41
- }, {
42
- configProfileUuid: string;
43
- configProfileInboundUuid: string;
44
- }>>;
27
+ configProfileUuid: z.ZodOptional<z.ZodString>;
28
+ configProfileInboundUuid: z.ZodOptional<z.ZodString>;
45
29
  remark: z.ZodOptional<z.ZodString>;
46
30
  address: z.ZodOptional<z.ZodString>;
47
31
  port: z.ZodOptional<z.ZodNumber>;
@@ -67,6 +51,7 @@ export declare namespace UpdateHostCommand {
67
51
  readonly RANDOM: "random";
68
52
  readonly RANDOMIZED: "randomized";
69
53
  }>>>;
54
+ allowInsecure: z.ZodOptional<z.ZodBoolean>;
70
55
  isDisabled: z.ZodOptional<z.ZodBoolean>;
71
56
  securityLayer: z.ZodOptional<z.ZodNativeEnum<{
72
57
  readonly DEFAULT: "DEFAULT";
@@ -74,7 +59,6 @@ export declare namespace UpdateHostCommand {
74
59
  readonly NONE: "NONE";
75
60
  }>>;
76
61
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
77
- serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
62
  }, "strip", z.ZodTypeAny, {
79
63
  uuid: string;
80
64
  path?: string | undefined;
@@ -88,11 +72,9 @@ export declare namespace UpdateHostCommand {
88
72
  isDisabled?: boolean | undefined;
89
73
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
90
74
  xHttpExtraParams?: unknown;
91
- inbound?: {
92
- configProfileUuid: string;
93
- configProfileInboundUuid: string;
94
- } | undefined;
95
- serverDescription?: string | null | undefined;
75
+ configProfileUuid?: string | undefined;
76
+ configProfileInboundUuid?: string | undefined;
77
+ allowInsecure?: boolean | undefined;
96
78
  }, {
97
79
  uuid: string;
98
80
  path?: string | undefined;
@@ -106,11 +88,9 @@ export declare namespace UpdateHostCommand {
106
88
  isDisabled?: boolean | undefined;
107
89
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
108
90
  xHttpExtraParams?: unknown;
109
- inbound?: {
110
- configProfileUuid: string;
111
- configProfileInboundUuid: string;
112
- } | undefined;
113
- serverDescription?: string | null | undefined;
91
+ configProfileUuid?: string | undefined;
92
+ configProfileInboundUuid?: string | undefined;
93
+ allowInsecure?: boolean | undefined;
114
94
  }>;
115
95
  type Request = z.infer<typeof RequestSchema>;
116
96
  const ResponseSchema: z.ZodObject<{
@@ -132,16 +112,8 @@ export declare namespace UpdateHostCommand {
132
112
  readonly NONE: "NONE";
133
113
  }>>;
134
114
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
135
- inbound: z.ZodObject<{
136
- configProfileUuid: z.ZodNullable<z.ZodString>;
137
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
138
- }, "strip", z.ZodTypeAny, {
139
- configProfileUuid: string | null;
140
- configProfileInboundUuid: string | null;
141
- }, {
142
- configProfileUuid: string | null;
143
- configProfileInboundUuid: string | null;
144
- }>;
115
+ configProfileUuid: z.ZodNullable<z.ZodString>;
116
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
145
117
  }, "strip", z.ZodTypeAny, {
146
118
  path: string | null;
147
119
  uuid: string;
@@ -155,10 +127,8 @@ export declare namespace UpdateHostCommand {
155
127
  fingerprint: string | null;
156
128
  isDisabled: boolean;
157
129
  securityLayer: "DEFAULT" | "TLS" | "NONE";
158
- inbound: {
159
- configProfileUuid: string | null;
160
- configProfileInboundUuid: string | null;
161
- };
130
+ configProfileUuid: string | null;
131
+ configProfileInboundUuid: string | null;
162
132
  xHttpExtraParams?: unknown;
163
133
  }, {
164
134
  path: string | null;
@@ -171,10 +141,8 @@ export declare namespace UpdateHostCommand {
171
141
  host: string | null;
172
142
  alpn: string | null;
173
143
  fingerprint: string | null;
174
- inbound: {
175
- configProfileUuid: string | null;
176
- configProfileInboundUuid: string | null;
177
- };
144
+ configProfileUuid: string | null;
145
+ configProfileInboundUuid: string | null;
178
146
  isDisabled?: boolean | undefined;
179
147
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
180
148
  xHttpExtraParams?: unknown;
@@ -193,10 +161,8 @@ export declare namespace UpdateHostCommand {
193
161
  fingerprint: string | null;
194
162
  isDisabled: boolean;
195
163
  securityLayer: "DEFAULT" | "TLS" | "NONE";
196
- inbound: {
197
- configProfileUuid: string | null;
198
- configProfileInboundUuid: string | null;
199
- };
164
+ configProfileUuid: string | null;
165
+ configProfileInboundUuid: string | null;
200
166
  xHttpExtraParams?: unknown;
201
167
  };
202
168
  }, {
@@ -211,10 +177,8 @@ export declare namespace UpdateHostCommand {
211
177
  host: string | null;
212
178
  alpn: string | null;
213
179
  fingerprint: string | null;
214
- inbound: {
215
- configProfileUuid: string | null;
216
- configProfileInboundUuid: string | null;
217
- };
180
+ configProfileUuid: string | null;
181
+ configProfileInboundUuid: string | null;
218
182
  isDisabled?: boolean | undefined;
219
183
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
220
184
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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"}
@@ -13,11 +13,17 @@ var UpdateHostCommand;
13
13
  UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
14
14
  uuid: true,
15
15
  }).extend({
16
- inbound: zod_1.z
17
- .object({
18
- configProfileUuid: zod_1.z.string().uuid(),
19
- configProfileInboundUuid: zod_1.z.string().uuid(),
16
+ configProfileUuid: zod_1.z
17
+ .string({
18
+ invalid_type_error: 'Config Profile UUID must be a string',
20
19
  })
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')
21
27
  .optional(),
22
28
  remark: zod_1.z
23
29
  .string({
@@ -43,15 +49,10 @@ var UpdateHostCommand;
43
49
  host: zod_1.z.optional(zod_1.z.string()),
44
50
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
45
51
  fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
52
+ allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
46
53
  isDisabled: zod_1.z.optional(zod_1.z.boolean()),
47
54
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
48
55
  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()),
55
56
  });
56
57
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
57
58
  response: models_1.HostsSchema,
@@ -3,7 +3,6 @@ export * from './auth';
3
3
  export * from './config-profiles';
4
4
  export * from './hosts';
5
5
  export * from './hwid';
6
- export * from './infra-billing';
7
6
  export * from './internal-squads';
8
7
  export * from './keygen';
9
8
  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,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"}
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"}
@@ -19,7 +19,6 @@ __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);
23
22
  __exportStar(require("./internal-squads"), exports);
24
23
  __exportStar(require("./keygen"), exports);
25
24
  __exportStar(require("./nodes"), exports);
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
13
13
  CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(20, 'Name must be less than 20 characters')
16
+ .min(6, 'Name must be at least 6 characters')
17
+ .max(16, 'Name must be less than 16 characters')
18
18
  .regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
19
19
  inbounds: zod_1.z.array(zod_1.z.string().uuid()),
20
20
  });
@@ -139,4 +139,4 @@ export declare namespace GetInternalSquadByUuidCommand {
139
139
  }>;
140
140
  type Response = z.infer<typeof ResponseSchema>;
141
141
  }
142
- //# sourceMappingURL=get-internal-squad-by-uuid.d.ts.map
142
+ //# sourceMappingURL=get-internal-squad-by-uuid..d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-internal-squad-by-uuid..d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/get-internal-squad-by-uuid..ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAuC,CAAC;IACjD,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,7 +1,6 @@
1
- export * from './bulk-actions';
2
1
  export * from './create-internal-squad.command';
3
2
  export * from './delete-internal-squad.command';
4
- export * from './get-internal-squad-by-uuid';
3
+ export * from './get-internal-squad-by-uuid.';
5
4
  export * from './get-internal-squads.command';
6
5
  export * from './update-internal-squad.command';
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
@@ -14,9 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bulk-actions"), exports);
18
17
  __exportStar(require("./create-internal-squad.command"), exports);
19
18
  __exportStar(require("./delete-internal-squad.command"), exports);
20
- __exportStar(require("./get-internal-squad-by-uuid"), exports);
19
+ __exportStar(require("./get-internal-squad-by-uuid."), exports);
21
20
  __exportStar(require("./get-internal-squads.command"), exports);
22
21
  __exportStar(require("./update-internal-squad.command"), exports);