@nosana/types 2.20.1 → 2.24.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 (55) hide show
  1. package/dist/Common/index.d.ts +29 -7
  2. package/dist/Common/index.d.ts.map +1 -1
  3. package/dist/Common/index.js +6 -0
  4. package/dist/Common/index.js.map +1 -1
  5. package/dist/Jobs/Flows/index.d.ts +9 -5
  6. package/dist/Jobs/Flows/index.d.ts.map +1 -1
  7. package/dist/Jobs/JobDefinition/args/expose.d.ts +17 -2
  8. package/dist/Jobs/JobDefinition/args/expose.d.ts.map +1 -1
  9. package/dist/Jobs/JobDefinition/args/expose.js.map +1 -1
  10. package/dist/Jobs/JobDefinition/args/index.d.ts +38 -0
  11. package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
  12. package/dist/Jobs/JobDefinition/args/index.js +660 -41
  13. package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
  14. package/dist/Jobs/JobDefinition/args/output.d.ts +2 -0
  15. package/dist/Jobs/JobDefinition/args/output.d.ts.map +1 -0
  16. package/dist/Jobs/JobDefinition/args/output.js +2 -0
  17. package/dist/Jobs/JobDefinition/args/output.js.map +1 -0
  18. package/dist/Jobs/JobDefinition/args/required_vram.d.ts +2 -0
  19. package/dist/Jobs/JobDefinition/args/required_vram.d.ts.map +1 -0
  20. package/dist/Jobs/JobDefinition/args/required_vram.js +2 -0
  21. package/dist/Jobs/JobDefinition/args/required_vram.js.map +1 -0
  22. package/dist/Jobs/JobDefinition/args/trusted_execution_env.d.ts +6 -0
  23. package/dist/Jobs/JobDefinition/args/trusted_execution_env.d.ts.map +1 -0
  24. package/dist/Jobs/JobDefinition/args/trusted_execution_env.js +5 -0
  25. package/dist/Jobs/JobDefinition/args/trusted_execution_env.js.map +1 -0
  26. package/dist/Jobs/JobDefinition/index.d.ts +8 -4
  27. package/dist/Jobs/JobDefinition/index.d.ts.map +1 -1
  28. package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -2
  29. package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
  30. package/dist/Jobs/JobDefinition/logistics/index.js +10 -10
  31. package/dist/Jobs/JobDefinition/meta/index.d.ts +1 -1
  32. package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
  33. package/dist/Jobs/JobDefinition/meta/index.js +2 -48
  34. package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
  35. package/dist/Jobs/JobDefinition/operations/index.d.ts +18 -3
  36. package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
  37. package/dist/Jobs/JobDefinition/operations/index.js +759 -201
  38. package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
  39. package/dist/Jobs/JobDefinition/operations/rules.d.ts +1 -0
  40. package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -1
  41. package/dist/Jobs/JobDefinition/operations/rules.js +3 -0
  42. package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -1
  43. package/dist/Jobs/index.d.ts +2 -2
  44. package/dist/Jobs/index.d.ts.map +1 -1
  45. package/dist/Jobs/index.js +450 -215
  46. package/dist/Jobs/index.js.map +1 -1
  47. package/dist/Schemas/job.js +198 -85
  48. package/dist/Schemas/job.js.map +1 -1
  49. package/dist/Schemas/node.d.ts +57 -17
  50. package/dist/Schemas/node.d.ts.map +1 -1
  51. package/dist/Schemas/nodeOpenApi.d.ts.map +1 -1
  52. package/dist/Schemas/nodeOpenApi.js +206 -79
  53. package/dist/Schemas/nodeOpenApi.js.map +1 -1
  54. package/openapi/node.openapi.json +211 -79
  55. package/package.json +2 -2
@@ -3,14 +3,20 @@ import * as __typia_transform__validateReport from "typia/lib/internal/_validate
3
3
  import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
4
  import typia from "typia";
5
5
  export * from "./rules.js";
6
- export const validateOperation = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _io22(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ export const validateOperation = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type || "vm/run" === input.type || "cvm/run" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io21(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _io23(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
7
7
  if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
8
8
  return true;
9
9
  const value = input[key];
10
10
  if (undefined === value)
11
11
  return true;
12
12
  return false;
13
- })); const _io1 = (input, _exceptionable = true) => "string" === typeof input.image && (null !== input.aliases && (undefined === input.aliases || "string" === typeof input.aliases || Array.isArray(input.aliases) && input.aliases.every((elem, _index1) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index2) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index3) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose)) || (Array.isArray(input.expose) && ((() => {
13
+ })); const _io1 = (input, _exceptionable = true) => "string" === typeof input.image && (null !== input.aliases && (undefined === input.aliases || "string" === typeof input.aliases || Array.isArray(input.aliases) && input.aliases.every((elem, _index1) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index2) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index3) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
14
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
15
+ if (!match)
16
+ return false;
17
+ const a = Number(match[1]), b = Number(match[2]);
18
+ return a < b;
19
+ })()) || (Array.isArray(input.expose) && ((() => {
14
20
  if (!Array.isArray(input.expose))
15
21
  return true;
16
22
  const numbers = new Set();
@@ -45,8 +51,14 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
45
51
  }
46
52
  }
47
53
  return true;
48
- })() && input.expose.every((elem, _index4) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index5) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index6) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io17(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
49
- if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
54
+ })() && input.expose.every((elem, _index4) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
55
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
56
+ if (!match)
57
+ return false;
58
+ const a = Number(match[1]), b = Number(match[2]);
59
+ return a < b;
60
+ })()) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (undefined === input.output || "string" === typeof input.output) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index5) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (undefined === input.required_vram || "number" === typeof input.required_vram) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index6) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io17(input.authentication, true && _exceptionable)) && (undefined === input.trusted_execution_env || "SEV-SNP" === input.trusted_execution_env || "SEV-GUEST" === input.trusted_execution_env) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
61
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "output", "entrypoint", "env", "restart_policy", "required_vram", "private", "resources", "authentication", "trusted_execution_env"].some(prop => key === prop))
50
62
  return true;
51
63
  const value = input[key];
52
64
  if (undefined === value)
@@ -66,7 +78,13 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
66
78
  if (undefined === value)
67
79
  return true;
68
80
  return false;
69
- })); const _io4 = (input, _exceptionable = true) => "number" === typeof input.port && (undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type) && (undefined === input.health_checks || Array.isArray(input.health_checks) && input.health_checks.every((elem, _index7) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
81
+ })); const _io4 = (input, _exceptionable = true) => ("number" === typeof input.port || "string" === typeof input.port && (typeof input.port === "string" && (() => {
82
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.port);
83
+ if (!match)
84
+ return false;
85
+ const a = Number(match[1]), b = Number(match[2]);
86
+ return a < b;
87
+ })())) && (undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type) && (undefined === input.health_checks || Array.isArray(input.health_checks) && input.health_checks.every((elem, _index7) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
70
88
  if (["port", "type", "health_checks"].some(prop => key === prop))
71
89
  return true;
72
90
  const value = input[key];
@@ -167,19 +185,73 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
167
185
  if (undefined === value)
168
186
  return true;
169
187
  return false;
170
- })); const _io19 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
188
+ })); const _io19 = (input, _exceptionable = true) => "string" === typeof input.image && (undefined === input.cpu || "number" === typeof input.cpu) && (undefined === input.memory || "string" === typeof input.memory || "number" === typeof input.memory) && (undefined === input.disk || "string" === typeof input.disk || "number" === typeof input.disk) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index12) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
189
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
190
+ if (!match)
191
+ return false;
192
+ const a = Number(match[1]), b = Number(match[2]);
193
+ return a < b;
194
+ })()) || (Array.isArray(input.expose) && ((() => {
195
+ if (!Array.isArray(input.expose))
196
+ return true;
197
+ const numbers = new Set();
198
+ const ranges = [];
199
+ for (const el of input.expose) {
200
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
201
+ continue;
202
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
203
+ continue;
204
+ const port = typeof el === "object" ? el.port : el;
205
+ if (typeof port === "number") {
206
+ if (numbers.has(port))
207
+ return false;
208
+ numbers.add(port);
209
+ }
210
+ else if (typeof port === "string") {
211
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
212
+ if (!match)
213
+ return false;
214
+ const start = Number(match[1]), end = Number(match[2]);
215
+ for (const [rStart, rEnd] of ranges) {
216
+ if (start <= rEnd && end >= rStart)
217
+ return false;
218
+ }
219
+ ranges.push([start, end]);
220
+ }
221
+ }
222
+ for (const port of numbers) {
223
+ for (const [start, end] of ranges) {
224
+ if (port >= start && port <= end)
225
+ return false;
226
+ }
227
+ }
228
+ return true;
229
+ })() && input.expose.every((elem, _index13) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
230
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
231
+ if (!match)
232
+ return false;
233
+ const a = Number(match[1]), b = Number(match[2]);
234
+ return a < b;
235
+ })()) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
236
+ if (["image", "cpu", "memory", "disk", "gpu", "cmd", "env", "expose", "private", "restart_policy"].some(prop => key === prop))
237
+ return true;
238
+ const value = input[key];
239
+ if (undefined === value)
240
+ return true;
241
+ return false;
242
+ })); const _io20 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
171
243
  if (["name"].some(prop => key === prop))
172
244
  return true;
173
245
  const value = input[key];
174
246
  if (undefined === value)
175
247
  return true;
176
248
  return false;
177
- })); const _io20 = (input, _exceptionable = true) => Object.keys(input).every(key => {
249
+ })); const _io21 = (input, _exceptionable = true) => Object.keys(input).every(key => {
178
250
  const value = input[key];
179
251
  if (undefined === value)
180
252
  return true;
181
- return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io21(value, true && _exceptionable));
182
- }); const _io21 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
253
+ return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io22(value, true && _exceptionable));
254
+ }); const _io22 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
183
255
  const seen = new Set();
184
256
  for (const v of input.logType) {
185
257
  if (seen.has(v))
@@ -187,14 +259,14 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
187
259
  seen.add(v);
188
260
  }
189
261
  return true;
190
- })() && input.logType.every((elem, _index12) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
262
+ })() && input.logType.every((elem, _index14) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
191
263
  if (["regex", "logType"].some(prop => key === prop))
192
264
  return true;
193
265
  const value = input[key];
194
266
  if (undefined === value)
195
267
  return true;
196
268
  return false;
197
- })); const _io22 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (undefined === input.depends_on || Array.isArray(input.depends_on) && input.depends_on.every((elem, _index13) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
269
+ })); const _io23 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (undefined === input.depends_on || Array.isArray(input.depends_on) && input.depends_on.every((elem, _index15) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
198
270
  if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
199
271
  return true;
200
272
  const value = input[key];
@@ -229,15 +301,19 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
229
301
  else
230
302
  return _io10(input, true && _exceptionable);
231
303
  })(); const _iu3 = (input, _exceptionable = true) => (() => {
232
- if (undefined !== input.image)
233
- return _io1(input, true && _exceptionable);
234
- else if (undefined !== input.name)
235
- return _io19(input, true && _exceptionable);
304
+ if (undefined !== input.name)
305
+ return _io20(input, true && _exceptionable);
236
306
  else
237
- return false;
238
- })(); const _vo0 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || _report(_exceptionable, {
307
+ return (() => {
308
+ if (_io1(input, false && _exceptionable))
309
+ return _io1(input, true && _exceptionable);
310
+ if (_io19(input, false && _exceptionable))
311
+ return _io19(input, true && _exceptionable);
312
+ return false;
313
+ })();
314
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || "vm/run" === input.type || "cvm/run" === input.type || _report(_exceptionable, {
239
315
  path: _path + ".type",
240
- expected: "(\"container/create-volume\" | \"container/run\")",
316
+ expected: "(\"container/create-volume\" | \"container/run\" | \"cvm/run\" | \"vm/run\")",
241
317
  value: input.type
242
318
  }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes(".") || _report(_exceptionable, {
243
319
  path: _path + ".id",
@@ -249,17 +325,17 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
249
325
  value: input.id
250
326
  }), ("object" === typeof input.args && null !== input.args || _report(_exceptionable, {
251
327
  path: _path + ".args",
252
- expected: "(ContainerCreateVolume | ContainerRun)",
328
+ expected: "(ContainerCreateVolume | ContainerRun | VmRunArgs)",
253
329
  value: input.args
254
330
  })) && _vu3(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
255
331
  path: _path + ".args",
256
- expected: "(ContainerCreateVolume | ContainerRun)",
332
+ expected: "(ContainerCreateVolume | ContainerRun | VmRunArgs)",
257
333
  value: input.args
258
334
  }), undefined === input.results || ("object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) || _report(_exceptionable, {
259
335
  path: _path + ".results",
260
336
  expected: "(OperationResults | undefined)",
261
337
  value: input.results
262
- })) && _vo20(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
338
+ })) && _vo21(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
263
339
  path: _path + ".results",
264
340
  expected: "(OperationResults | undefined)",
265
341
  value: input.results
@@ -267,7 +343,7 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
267
343
  path: _path + ".execution",
268
344
  expected: "(Execution | undefined)",
269
345
  value: input.execution
270
- })) && _vo22(input.execution, _path + ".execution", true && _exceptionable) || _report(_exceptionable, {
346
+ })) && _vo23(input.execution, _path + ".execution", true && _exceptionable) || _report(_exceptionable, {
271
347
  path: _path + ".execution",
272
348
  expected: "(Execution | undefined)",
273
349
  value: input.execution
@@ -299,8 +375,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
299
375
  path: _path + ".aliases",
300
376
  expected: "(Aliases | string | undefined)",
301
377
  value: input.aliases
302
- })) && input.aliases.map((elem, _index14) => "string" === typeof elem || _report(_exceptionable, {
303
- path: _path + ".aliases[" + _index14 + "]",
378
+ })) && input.aliases.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
379
+ path: _path + ".aliases[" + _index16 + "]",
304
380
  expected: "string",
305
381
  value: elem
306
382
  })).every(flag => flag) || _report(_exceptionable, {
@@ -315,8 +391,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
315
391
  path: _path + ".cmd",
316
392
  expected: "(CMDArray | string | undefined)",
317
393
  value: input.cmd
318
- })) && input.cmd.map((elem, _index15) => "string" === typeof elem || _report(_exceptionable, {
319
- path: _path + ".cmd[" + _index15 + "]",
394
+ })) && input.cmd.map((elem, _index17) => "string" === typeof elem || _report(_exceptionable, {
395
+ path: _path + ".cmd[" + _index17 + "]",
320
396
  expected: "string",
321
397
  value: elem
322
398
  })).every(flag => flag) || _report(_exceptionable, {
@@ -327,12 +403,12 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
327
403
  path: _path + ".volumes",
328
404
  expected: "(Array<Volume> | undefined)",
329
405
  value: input.volumes
330
- })) && input.volumes.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
331
- path: _path + ".volumes[" + _index16 + "]",
406
+ })) && input.volumes.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
407
+ path: _path + ".volumes[" + _index18 + "]",
332
408
  expected: "Volume",
333
409
  value: elem
334
- })) && _vo2(elem, _path + ".volumes[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
335
- path: _path + ".volumes[" + _index16 + "]",
410
+ })) && _vo2(elem, _path + ".volumes[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
411
+ path: _path + ".volumes[" + _index18 + "]",
336
412
  expected: "Volume",
337
413
  value: elem
338
414
  })).every(flag => flag) || _report(_exceptionable, {
@@ -341,11 +417,17 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
341
417
  value: input.volumes
342
418
  }), (null !== input.expose || _report(_exceptionable, {
343
419
  path: _path + ".expose",
344
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
420
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
345
421
  value: input.expose
346
- })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || _report(_exceptionable, {
422
+ })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
423
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
424
+ if (!match)
425
+ return false;
426
+ const a = Number(match[1]), b = Number(match[2]);
427
+ return a < b;
428
+ })() || _report(_exceptionable, {
347
429
  path: _path + ".expose",
348
- expected: "string & TagBase<__type>",
430
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
349
431
  value: input.expose
350
432
  })) || (Array.isArray(input.expose) && (((() => {
351
433
  if (!Array.isArray(input.expose))
@@ -386,33 +468,39 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
386
468
  path: _path + ".expose",
387
469
  expected: "Array<> & TagBase<__type>",
388
470
  value: input.expose
389
- })) && input.expose.map((elem, _index17) => (null !== elem || _report(_exceptionable, {
390
- path: _path + ".expose[" + _index17 + "]",
391
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
471
+ })) && input.expose.map((elem, _index19) => (null !== elem || _report(_exceptionable, {
472
+ path: _path + ".expose[" + _index19 + "]",
473
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
392
474
  value: elem
393
475
  })) && (undefined !== elem || _report(_exceptionable, {
394
- path: _path + ".expose[" + _index17 + "]",
395
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
476
+ path: _path + ".expose[" + _index19 + "]",
477
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
396
478
  value: elem
397
- })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
398
- path: _path + ".expose[" + _index17 + "]",
399
- expected: "string & TagBase<__type>",
479
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
480
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
481
+ if (!match)
482
+ return false;
483
+ const a = Number(match[1]), b = Number(match[2]);
484
+ return a < b;
485
+ })() || _report(_exceptionable, {
486
+ path: _path + ".expose[" + _index19 + "]",
487
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
400
488
  value: elem
401
489
  })) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
402
- path: _path + ".expose[" + _index17 + "]",
403
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
490
+ path: _path + ".expose[" + _index19 + "]",
491
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
404
492
  value: elem
405
- })) && _vu1(elem, _path + ".expose[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
406
- path: _path + ".expose[" + _index17 + "]",
407
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
493
+ })) && _vu1(elem, _path + ".expose[" + _index19 + "]", true && _exceptionable) || _report(_exceptionable, {
494
+ path: _path + ".expose[" + _index19 + "]",
495
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
408
496
  value: elem
409
497
  }))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
410
498
  path: _path + ".expose",
411
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
499
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
412
500
  value: input.expose
413
501
  })) || _report(_exceptionable, {
414
502
  path: _path + ".expose",
415
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
503
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
416
504
  value: input.expose
417
505
  })), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
418
506
  path: _path + ".gpu",
@@ -422,6 +510,10 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
422
510
  path: _path + ".work_dir",
423
511
  expected: "(string | undefined)",
424
512
  value: input.work_dir
513
+ }), undefined === input.output || "string" === typeof input.output || _report(_exceptionable, {
514
+ path: _path + ".output",
515
+ expected: "(string | undefined)",
516
+ value: input.output
425
517
  }), (null !== input.entrypoint || _report(_exceptionable, {
426
518
  path: _path + ".entrypoint",
427
519
  expected: "(CMDArray | string | undefined)",
@@ -430,8 +522,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
430
522
  path: _path + ".entrypoint",
431
523
  expected: "(CMDArray | string | undefined)",
432
524
  value: input.entrypoint
433
- })) && input.entrypoint.map((elem, _index18) => "string" === typeof elem || _report(_exceptionable, {
434
- path: _path + ".entrypoint[" + _index18 + "]",
525
+ })) && input.entrypoint.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
526
+ path: _path + ".entrypoint[" + _index20 + "]",
435
527
  expected: "string",
436
528
  value: elem
437
529
  })).every(flag => flag) || _report(_exceptionable, {
@@ -448,17 +540,21 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
448
540
  value: input.env
449
541
  }), (null !== input.restart_policy || _report(_exceptionable, {
450
542
  path: _path + ".restart_policy",
451
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
543
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
452
544
  value: input.restart_policy
453
545
  })) && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || ("object" === typeof input.restart_policy && null !== input.restart_policy || _report(_exceptionable, {
454
546
  path: _path + ".restart_policy",
455
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
547
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
456
548
  value: input.restart_policy
457
549
  })) && _vo9(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
458
550
  path: _path + ".restart_policy",
459
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
551
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
460
552
  value: input.restart_policy
461
- })), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
553
+ })), undefined === input.required_vram || "number" === typeof input.required_vram || _report(_exceptionable, {
554
+ path: _path + ".required_vram",
555
+ expected: "(number | undefined)",
556
+ value: input.required_vram
557
+ }), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
462
558
  path: _path + "[\"private\"]",
463
559
  expected: "(boolean | undefined)",
464
560
  value: input["private"]
@@ -466,20 +562,20 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
466
562
  path: _path + ".resources",
467
563
  expected: "(Resources | undefined)",
468
564
  value: input.resources
469
- })) && input.resources.map((elem, _index19) => (null !== elem || _report(_exceptionable, {
470
- path: _path + ".resources[" + _index19 + "]",
565
+ })) && input.resources.map((elem, _index21) => (null !== elem || _report(_exceptionable, {
566
+ path: _path + ".resources[" + _index21 + "]",
471
567
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
472
568
  value: elem
473
569
  })) && (undefined !== elem || _report(_exceptionable, {
474
- path: _path + ".resources[" + _index19 + "]",
570
+ path: _path + ".resources[" + _index21 + "]",
475
571
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
476
572
  value: elem
477
573
  })) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
478
- path: _path + ".resources[" + _index19 + "]",
574
+ path: _path + ".resources[" + _index21 + "]",
479
575
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
480
576
  value: elem
481
- })) && _vu2(elem, _path + ".resources[" + _index19 + "]", true && _exceptionable) || _report(_exceptionable, {
482
- path: _path + ".resources[" + _index19 + "]",
577
+ })) && _vu2(elem, _path + ".resources[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
578
+ path: _path + ".resources[" + _index21 + "]",
483
579
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
484
580
  value: elem
485
581
  }))).every(flag => flag) || _report(_exceptionable, {
@@ -494,8 +590,12 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
494
590
  path: _path + ".authentication",
495
591
  expected: "(Authentication | undefined)",
496
592
  value: input.authentication
593
+ }), undefined === input.trusted_execution_env || "SEV-SNP" === input.trusted_execution_env || "SEV-GUEST" === input.trusted_execution_env || _report(_exceptionable, {
594
+ path: _path + ".trusted_execution_env",
595
+ expected: "(\"SEV-GUEST\" | \"SEV-SNP\" | undefined)",
596
+ value: input.trusted_execution_env
497
597
  }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
498
- if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
598
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "output", "entrypoint", "env", "restart_policy", "required_vram", "private", "resources", "authentication", "trusted_execution_env"].some(prop => key === prop))
499
599
  return true;
500
600
  const value = input[key];
501
601
  if (undefined === value)
@@ -562,9 +662,19 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
562
662
  "Please remove the property next time."
563
663
  ].join("\n")
564
664
  });
565
- }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
665
+ }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || "string" === typeof input.port && (typeof input.port === "string" && (() => {
666
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.port);
667
+ if (!match)
668
+ return false;
669
+ const a = Number(match[1]), b = Number(match[2]);
670
+ return a < b;
671
+ })() || _report(_exceptionable, {
566
672
  path: _path + ".port",
567
- expected: "number",
673
+ expected: "string & TagBase<__type>",
674
+ value: input.port
675
+ })) || _report(_exceptionable, {
676
+ path: _path + ".port",
677
+ expected: "((string & TagBase<__type>) | number)",
568
678
  value: input.port
569
679
  }), undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type || _report(_exceptionable, {
570
680
  path: _path + ".type",
@@ -574,12 +684,12 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
574
684
  path: _path + ".health_checks",
575
685
  expected: "(Array<HealthCheck> | undefined)",
576
686
  value: input.health_checks
577
- })) && input.health_checks.map((elem, _index20) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
578
- path: _path + ".health_checks[" + _index20 + "]",
687
+ })) && input.health_checks.map((elem, _index22) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
688
+ path: _path + ".health_checks[" + _index22 + "]",
579
689
  expected: "(HttpHealthCheck | WebSocketHealthCheck)",
580
690
  value: elem
581
- })) && _vu0(elem, _path + ".health_checks[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
582
- path: _path + ".health_checks[" + _index20 + "]",
691
+ })) && _vu0(elem, _path + ".health_checks[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
692
+ path: _path + ".health_checks[" + _index22 + "]",
583
693
  expected: "(HttpHealthCheck | WebSocketHealthCheck)",
584
694
  value: elem
585
695
  })).every(flag => flag) || _report(_exceptionable, {
@@ -736,8 +846,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
736
846
  path: _path + ".files",
737
847
  expected: "(Array<string> | undefined)",
738
848
  value: input.files
739
- })) && input.files.map((elem, _index21) => "string" === typeof elem || _report(_exceptionable, {
740
- path: _path + ".files[" + _index21 + "]",
849
+ })) && input.files.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
850
+ path: _path + ".files[" + _index23 + "]",
741
851
  expected: "string",
742
852
  value: elem
743
853
  })).every(flag => flag) || _report(_exceptionable, {
@@ -852,13 +962,13 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
852
962
  path: _path + ".buckets",
853
963
  expected: "Array<__type>",
854
964
  value: input.buckets
855
- })) && input.buckets.map((elem, _index22) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
856
- path: _path + ".buckets[" + _index22 + "]",
857
- expected: "__type.o5",
965
+ })) && input.buckets.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
966
+ path: _path + ".buckets[" + _index24 + "]",
967
+ expected: "__type.o6",
858
968
  value: elem
859
- })) && _vo14(elem, _path + ".buckets[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
860
- path: _path + ".buckets[" + _index22 + "]",
861
- expected: "__type.o5",
969
+ })) && _vo14(elem, _path + ".buckets[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
970
+ path: _path + ".buckets[" + _index24 + "]",
971
+ expected: "__type.o6",
862
972
  value: elem
863
973
  })).every(flag => flag) || _report(_exceptionable, {
864
974
  path: _path + ".buckets",
@@ -904,8 +1014,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
904
1014
  path: _path + ".files",
905
1015
  expected: "(Array<string> | undefined)",
906
1016
  value: input.files
907
- })) && input.files.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
908
- path: _path + ".files[" + _index23 + "]",
1017
+ })) && input.files.map((elem, _index25) => "string" === typeof elem || _report(_exceptionable, {
1018
+ path: _path + ".files[" + _index25 + "]",
909
1019
  expected: "string",
910
1020
  value: elem
911
1021
  })).every(flag => flag) || _report(_exceptionable, {
@@ -948,8 +1058,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
948
1058
  path: _path + ".files",
949
1059
  expected: "(Array<string> | undefined)",
950
1060
  value: input.files
951
- })) && input.files.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
952
- path: _path + ".files[" + _index24 + "]",
1061
+ })) && input.files.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
1062
+ path: _path + ".files[" + _index26 + "]",
953
1063
  expected: "string",
954
1064
  value: elem
955
1065
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1060,7 +1170,170 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1060
1170
  "Please remove the property next time."
1061
1171
  ].join("\n")
1062
1172
  });
1063
- }).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
1173
+ }).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
1174
+ path: _path + ".image",
1175
+ expected: "string",
1176
+ value: input.image
1177
+ }), undefined === input.cpu || "number" === typeof input.cpu || _report(_exceptionable, {
1178
+ path: _path + ".cpu",
1179
+ expected: "(number | undefined)",
1180
+ value: input.cpu
1181
+ }), undefined === input.memory || "string" === typeof input.memory || "number" === typeof input.memory || _report(_exceptionable, {
1182
+ path: _path + ".memory",
1183
+ expected: "(number | string | undefined)",
1184
+ value: input.memory
1185
+ }), undefined === input.disk || "string" === typeof input.disk || "number" === typeof input.disk || _report(_exceptionable, {
1186
+ path: _path + ".disk",
1187
+ expected: "(number | string | undefined)",
1188
+ value: input.disk
1189
+ }), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
1190
+ path: _path + ".gpu",
1191
+ expected: "(boolean | undefined)",
1192
+ value: input.gpu
1193
+ }), (null !== input.cmd || _report(_exceptionable, {
1194
+ path: _path + ".cmd",
1195
+ expected: "(Array<string> | string | undefined)",
1196
+ value: input.cmd
1197
+ })) && (undefined === input.cmd || "string" === typeof input.cmd || (Array.isArray(input.cmd) || _report(_exceptionable, {
1198
+ path: _path + ".cmd",
1199
+ expected: "(Array<string> | string | undefined)",
1200
+ value: input.cmd
1201
+ })) && input.cmd.map((elem, _index27) => "string" === typeof elem || _report(_exceptionable, {
1202
+ path: _path + ".cmd[" + _index27 + "]",
1203
+ expected: "string",
1204
+ value: elem
1205
+ })).every(flag => flag) || _report(_exceptionable, {
1206
+ path: _path + ".cmd",
1207
+ expected: "(Array<string> | string | undefined)",
1208
+ value: input.cmd
1209
+ })), undefined === input.env || ("object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) || _report(_exceptionable, {
1210
+ path: _path + ".env",
1211
+ expected: "(Env | undefined)",
1212
+ value: input.env
1213
+ })) && _vo8(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
1214
+ path: _path + ".env",
1215
+ expected: "(Env | undefined)",
1216
+ value: input.env
1217
+ }), (null !== input.expose || _report(_exceptionable, {
1218
+ path: _path + ".expose",
1219
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1220
+ value: input.expose
1221
+ })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
1222
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
1223
+ if (!match)
1224
+ return false;
1225
+ const a = Number(match[1]), b = Number(match[2]);
1226
+ return a < b;
1227
+ })() || _report(_exceptionable, {
1228
+ path: _path + ".expose",
1229
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
1230
+ value: input.expose
1231
+ })) || (Array.isArray(input.expose) && (((() => {
1232
+ if (!Array.isArray(input.expose))
1233
+ return true;
1234
+ const numbers = new Set();
1235
+ const ranges = [];
1236
+ for (const el of input.expose) {
1237
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
1238
+ continue;
1239
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
1240
+ continue;
1241
+ const port = typeof el === "object" ? el.port : el;
1242
+ if (typeof port === "number") {
1243
+ if (numbers.has(port))
1244
+ return false;
1245
+ numbers.add(port);
1246
+ }
1247
+ else if (typeof port === "string") {
1248
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
1249
+ if (!match)
1250
+ return false;
1251
+ const start = Number(match[1]), end = Number(match[2]);
1252
+ for (const [rStart, rEnd] of ranges) {
1253
+ if (start <= rEnd && end >= rStart)
1254
+ return false;
1255
+ }
1256
+ ranges.push([start, end]);
1257
+ }
1258
+ }
1259
+ for (const port of numbers) {
1260
+ for (const [start, end] of ranges) {
1261
+ if (port >= start && port <= end)
1262
+ return false;
1263
+ }
1264
+ }
1265
+ return true;
1266
+ })() || _report(_exceptionable, {
1267
+ path: _path + ".expose",
1268
+ expected: "Array<> & TagBase<__type>",
1269
+ value: input.expose
1270
+ })) && input.expose.map((elem, _index28) => (null !== elem || _report(_exceptionable, {
1271
+ path: _path + ".expose[" + _index28 + "]",
1272
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1273
+ value: elem
1274
+ })) && (undefined !== elem || _report(_exceptionable, {
1275
+ path: _path + ".expose[" + _index28 + "]",
1276
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1277
+ value: elem
1278
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
1279
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
1280
+ if (!match)
1281
+ return false;
1282
+ const a = Number(match[1]), b = Number(match[2]);
1283
+ return a < b;
1284
+ })() || _report(_exceptionable, {
1285
+ path: _path + ".expose[" + _index28 + "]",
1286
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
1287
+ value: elem
1288
+ })) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1289
+ path: _path + ".expose[" + _index28 + "]",
1290
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1291
+ value: elem
1292
+ })) && _vu1(elem, _path + ".expose[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
1293
+ path: _path + ".expose[" + _index28 + "]",
1294
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1295
+ value: elem
1296
+ }))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
1297
+ path: _path + ".expose",
1298
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1299
+ value: input.expose
1300
+ })) || _report(_exceptionable, {
1301
+ path: _path + ".expose",
1302
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1303
+ value: input.expose
1304
+ })), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
1305
+ path: _path + "[\"private\"]",
1306
+ expected: "(boolean | undefined)",
1307
+ value: input["private"]
1308
+ }), (null !== input.restart_policy || _report(_exceptionable, {
1309
+ path: _path + ".restart_policy",
1310
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1311
+ value: input.restart_policy
1312
+ })) && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || ("object" === typeof input.restart_policy && null !== input.restart_policy || _report(_exceptionable, {
1313
+ path: _path + ".restart_policy",
1314
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1315
+ value: input.restart_policy
1316
+ })) && _vo9(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
1317
+ path: _path + ".restart_policy",
1318
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1319
+ value: input.restart_policy
1320
+ })), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1321
+ if (["image", "cpu", "memory", "disk", "gpu", "cmd", "env", "expose", "private", "restart_policy"].some(prop => key === prop))
1322
+ return true;
1323
+ const value = input[key];
1324
+ if (undefined === value)
1325
+ return true;
1326
+ return _report(_exceptionable, {
1327
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1328
+ expected: "undefined",
1329
+ value: value,
1330
+ description: [
1331
+ `The property \`${key}\` is not defined in the object type.`,
1332
+ "",
1333
+ "Please remove the property next time."
1334
+ ].join("\n")
1335
+ });
1336
+ }).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
1064
1337
  path: _path + ".name",
1065
1338
  expected: "string",
1066
1339
  value: input.name
@@ -1080,7 +1353,7 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1080
1353
  "Please remove the property next time."
1081
1354
  ].join("\n")
1082
1355
  });
1083
- }).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1356
+ }).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1084
1357
  const value = input[key];
1085
1358
  if (undefined === value)
1086
1359
  return true;
@@ -1096,12 +1369,12 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1096
1369
  path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1097
1370
  expected: "(OperationResult | string)",
1098
1371
  value: value
1099
- })) && _vo21(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
1372
+ })) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
1100
1373
  path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1101
1374
  expected: "(OperationResult | string)",
1102
1375
  value: value
1103
1376
  }));
1104
- }).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
1377
+ }).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
1105
1378
  path: _path + ".regex",
1106
1379
  expected: "string",
1107
1380
  value: input.regex
@@ -1121,8 +1394,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1121
1394
  path: _path + ".logType",
1122
1395
  expected: "Array<> & UniqueLogTypeTag",
1123
1396
  value: input.logType
1124
- })) && input.logType.map((elem, _index25) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
1125
- path: _path + ".logType[" + _index25 + "]",
1397
+ })) && input.logType.map((elem, _index29) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
1398
+ path: _path + ".logType[" + _index29 + "]",
1126
1399
  expected: "(\"nodeerr\" | \"stderr\" | \"stdin\" | \"stdout\")",
1127
1400
  value: elem
1128
1401
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -1145,7 +1418,7 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1145
1418
  "Please remove the property next time."
1146
1419
  ].join("\n")
1147
1420
  });
1148
- }).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
1421
+ }).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
1149
1422
  path: _path + ".group",
1150
1423
  expected: "(string | undefined)",
1151
1424
  value: input.group
@@ -1157,8 +1430,8 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1157
1430
  path: _path + ".depends_on",
1158
1431
  expected: "(Array<string> | undefined)",
1159
1432
  value: input.depends_on
1160
- })) && input.depends_on.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
1161
- path: _path + ".depends_on[" + _index26 + "]",
1433
+ })) && input.depends_on.map((elem, _index30) => "string" === typeof elem || _report(_exceptionable, {
1434
+ path: _path + ".depends_on[" + _index30 + "]",
1162
1435
  expected: "string",
1163
1436
  value: elem
1164
1437
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1221,16 +1494,20 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1221
1494
  else
1222
1495
  return _vo10(input, _path, true && _exceptionable);
1223
1496
  })(); const _vu3 = (input, _path, _exceptionable = true) => (() => {
1224
- if (undefined !== input.image)
1225
- return _vo1(input, _path, true && _exceptionable);
1226
- else if (undefined !== input.name)
1227
- return _vo19(input, _path, true && _exceptionable);
1497
+ if (undefined !== input.name)
1498
+ return _vo20(input, _path, true && _exceptionable);
1228
1499
  else
1229
- return _report(_exceptionable, {
1230
- path: _path,
1231
- expected: "(ContainerRun | ContainerCreateVolume)",
1232
- value: input
1233
- });
1500
+ return (() => {
1501
+ if (_vo1(input, _path, false && _exceptionable))
1502
+ return _vo1(input, _path, true && _exceptionable);
1503
+ if (_vo19(input, _path, false && _exceptionable))
1504
+ return _vo19(input, _path, true && _exceptionable);
1505
+ return _report(_exceptionable, {
1506
+ path: _path,
1507
+ expected: "(ContainerRun | VmRunArgs)",
1508
+ value: input
1509
+ });
1510
+ })();
1234
1511
  })(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
1235
1512
  if (false === __is(input)) {
1236
1513
  errors = [];
@@ -1259,14 +1536,20 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1259
1536
  data: input
1260
1537
  };
1261
1538
  }); })();
1262
- export const validateOps = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _io22(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1539
+ export const validateOps = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type || "vm/run" === input.type || "cvm/run" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io21(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _io23(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1263
1540
  if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
1264
1541
  return true;
1265
1542
  const value = input[key];
1266
1543
  if (undefined === value)
1267
1544
  return true;
1268
1545
  return false;
1269
- })); const _io1 = (input, _exceptionable = true) => "string" === typeof input.image && (null !== input.aliases && (undefined === input.aliases || "string" === typeof input.aliases || Array.isArray(input.aliases) && input.aliases.every((elem, _index2) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index3) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index4) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose)) || (Array.isArray(input.expose) && ((() => {
1546
+ })); const _io1 = (input, _exceptionable = true) => "string" === typeof input.image && (null !== input.aliases && (undefined === input.aliases || "string" === typeof input.aliases || Array.isArray(input.aliases) && input.aliases.every((elem, _index2) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index3) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index4) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
1547
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
1548
+ if (!match)
1549
+ return false;
1550
+ const a = Number(match[1]), b = Number(match[2]);
1551
+ return a < b;
1552
+ })()) || (Array.isArray(input.expose) && ((() => {
1270
1553
  if (!Array.isArray(input.expose))
1271
1554
  return true;
1272
1555
  const numbers = new Set();
@@ -1301,8 +1584,14 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1301
1584
  }
1302
1585
  }
1303
1586
  return true;
1304
- })() && input.expose.every((elem, _index5) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index6) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index7) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io17(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1305
- if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
1587
+ })() && input.expose.every((elem, _index5) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
1588
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
1589
+ if (!match)
1590
+ return false;
1591
+ const a = Number(match[1]), b = Number(match[2]);
1592
+ return a < b;
1593
+ })()) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (undefined === input.output || "string" === typeof input.output) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index6) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (undefined === input.required_vram || "number" === typeof input.required_vram) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index7) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu2(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io17(input.authentication, true && _exceptionable)) && (undefined === input.trusted_execution_env || "SEV-SNP" === input.trusted_execution_env || "SEV-GUEST" === input.trusted_execution_env) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1594
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "output", "entrypoint", "env", "restart_policy", "required_vram", "private", "resources", "authentication", "trusted_execution_env"].some(prop => key === prop))
1306
1595
  return true;
1307
1596
  const value = input[key];
1308
1597
  if (undefined === value)
@@ -1322,7 +1611,13 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1322
1611
  if (undefined === value)
1323
1612
  return true;
1324
1613
  return false;
1325
- })); const _io4 = (input, _exceptionable = true) => "number" === typeof input.port && (undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type) && (undefined === input.health_checks || Array.isArray(input.health_checks) && input.health_checks.every((elem, _index8) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1614
+ })); const _io4 = (input, _exceptionable = true) => ("number" === typeof input.port || "string" === typeof input.port && (typeof input.port === "string" && (() => {
1615
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.port);
1616
+ if (!match)
1617
+ return false;
1618
+ const a = Number(match[1]), b = Number(match[2]);
1619
+ return a < b;
1620
+ })())) && (undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type) && (undefined === input.health_checks || Array.isArray(input.health_checks) && input.health_checks.every((elem, _index8) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1326
1621
  if (["port", "type", "health_checks"].some(prop => key === prop))
1327
1622
  return true;
1328
1623
  const value = input[key];
@@ -1423,19 +1718,73 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1423
1718
  if (undefined === value)
1424
1719
  return true;
1425
1720
  return false;
1426
- })); const _io19 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1721
+ })); const _io19 = (input, _exceptionable = true) => "string" === typeof input.image && (undefined === input.cpu || "number" === typeof input.cpu) && (undefined === input.memory || "string" === typeof input.memory || "number" === typeof input.memory) && (undefined === input.disk || "string" === typeof input.disk || "number" === typeof input.disk) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index13) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.expose && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
1722
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
1723
+ if (!match)
1724
+ return false;
1725
+ const a = Number(match[1]), b = Number(match[2]);
1726
+ return a < b;
1727
+ })()) || (Array.isArray(input.expose) && ((() => {
1728
+ if (!Array.isArray(input.expose))
1729
+ return true;
1730
+ const numbers = new Set();
1731
+ const ranges = [];
1732
+ for (const el of input.expose) {
1733
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
1734
+ continue;
1735
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
1736
+ continue;
1737
+ const port = typeof el === "object" ? el.port : el;
1738
+ if (typeof port === "number") {
1739
+ if (numbers.has(port))
1740
+ return false;
1741
+ numbers.add(port);
1742
+ }
1743
+ else if (typeof port === "string") {
1744
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
1745
+ if (!match)
1746
+ return false;
1747
+ const start = Number(match[1]), end = Number(match[2]);
1748
+ for (const [rStart, rEnd] of ranges) {
1749
+ if (start <= rEnd && end >= rStart)
1750
+ return false;
1751
+ }
1752
+ ranges.push([start, end]);
1753
+ }
1754
+ }
1755
+ for (const port of numbers) {
1756
+ for (const [start, end] of ranges) {
1757
+ if (port >= start && port <= end)
1758
+ return false;
1759
+ }
1760
+ }
1761
+ return true;
1762
+ })() && input.expose.every((elem, _index14) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
1763
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
1764
+ if (!match)
1765
+ return false;
1766
+ const a = Number(match[1]), b = Number(match[2]);
1767
+ return a < b;
1768
+ })()) || "object" === typeof elem && null !== elem && _iu1(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _iu1(input.expose, true && _exceptionable)))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io9(input.restart_policy, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1769
+ if (["image", "cpu", "memory", "disk", "gpu", "cmd", "env", "expose", "private", "restart_policy"].some(prop => key === prop))
1770
+ return true;
1771
+ const value = input[key];
1772
+ if (undefined === value)
1773
+ return true;
1774
+ return false;
1775
+ })); const _io20 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1427
1776
  if (["name"].some(prop => key === prop))
1428
1777
  return true;
1429
1778
  const value = input[key];
1430
1779
  if (undefined === value)
1431
1780
  return true;
1432
1781
  return false;
1433
- })); const _io20 = (input, _exceptionable = true) => Object.keys(input).every(key => {
1782
+ })); const _io21 = (input, _exceptionable = true) => Object.keys(input).every(key => {
1434
1783
  const value = input[key];
1435
1784
  if (undefined === value)
1436
1785
  return true;
1437
- return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io21(value, true && _exceptionable));
1438
- }); const _io21 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
1786
+ return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io22(value, true && _exceptionable));
1787
+ }); const _io22 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
1439
1788
  const seen = new Set();
1440
1789
  for (const v of input.logType) {
1441
1790
  if (seen.has(v))
@@ -1443,14 +1792,14 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1443
1792
  seen.add(v);
1444
1793
  }
1445
1794
  return true;
1446
- })() && input.logType.every((elem, _index13) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
1795
+ })() && input.logType.every((elem, _index15) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
1447
1796
  if (["regex", "logType"].some(prop => key === prop))
1448
1797
  return true;
1449
1798
  const value = input[key];
1450
1799
  if (undefined === value)
1451
1800
  return true;
1452
1801
  return false;
1453
- })); const _io22 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (undefined === input.depends_on || Array.isArray(input.depends_on) && input.depends_on.every((elem, _index14) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1802
+ })); const _io23 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (undefined === input.depends_on || Array.isArray(input.depends_on) && input.depends_on.every((elem, _index16) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1454
1803
  if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
1455
1804
  return true;
1456
1805
  const value = input[key];
@@ -1485,15 +1834,19 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1485
1834
  else
1486
1835
  return _io10(input, true && _exceptionable);
1487
1836
  })(); const _iu3 = (input, _exceptionable = true) => (() => {
1488
- if (undefined !== input.image)
1489
- return _io1(input, true && _exceptionable);
1490
- else if (undefined !== input.name)
1491
- return _io19(input, true && _exceptionable);
1837
+ if (undefined !== input.name)
1838
+ return _io20(input, true && _exceptionable);
1492
1839
  else
1493
- return false;
1494
- })(); const _vo0 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || _report(_exceptionable, {
1840
+ return (() => {
1841
+ if (_io1(input, false && _exceptionable))
1842
+ return _io1(input, true && _exceptionable);
1843
+ if (_io19(input, false && _exceptionable))
1844
+ return _io19(input, true && _exceptionable);
1845
+ return false;
1846
+ })();
1847
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || "vm/run" === input.type || "cvm/run" === input.type || _report(_exceptionable, {
1495
1848
  path: _path + ".type",
1496
- expected: "(\"container/create-volume\" | \"container/run\")",
1849
+ expected: "(\"container/create-volume\" | \"container/run\" | \"cvm/run\" | \"vm/run\")",
1497
1850
  value: input.type
1498
1851
  }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes(".") || _report(_exceptionable, {
1499
1852
  path: _path + ".id",
@@ -1505,17 +1858,17 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1505
1858
  value: input.id
1506
1859
  }), ("object" === typeof input.args && null !== input.args || _report(_exceptionable, {
1507
1860
  path: _path + ".args",
1508
- expected: "(ContainerCreateVolume | ContainerRun)",
1861
+ expected: "(ContainerCreateVolume | ContainerRun | VmRunArgs)",
1509
1862
  value: input.args
1510
1863
  })) && _vu3(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
1511
1864
  path: _path + ".args",
1512
- expected: "(ContainerCreateVolume | ContainerRun)",
1865
+ expected: "(ContainerCreateVolume | ContainerRun | VmRunArgs)",
1513
1866
  value: input.args
1514
1867
  }), undefined === input.results || ("object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) || _report(_exceptionable, {
1515
1868
  path: _path + ".results",
1516
1869
  expected: "(OperationResults | undefined)",
1517
1870
  value: input.results
1518
- })) && _vo20(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
1871
+ })) && _vo21(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
1519
1872
  path: _path + ".results",
1520
1873
  expected: "(OperationResults | undefined)",
1521
1874
  value: input.results
@@ -1523,7 +1876,7 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1523
1876
  path: _path + ".execution",
1524
1877
  expected: "(Execution | undefined)",
1525
1878
  value: input.execution
1526
- })) && _vo22(input.execution, _path + ".execution", true && _exceptionable) || _report(_exceptionable, {
1879
+ })) && _vo23(input.execution, _path + ".execution", true && _exceptionable) || _report(_exceptionable, {
1527
1880
  path: _path + ".execution",
1528
1881
  expected: "(Execution | undefined)",
1529
1882
  value: input.execution
@@ -1555,8 +1908,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1555
1908
  path: _path + ".aliases",
1556
1909
  expected: "(Aliases | string | undefined)",
1557
1910
  value: input.aliases
1558
- })) && input.aliases.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
1559
- path: _path + ".aliases[" + _index16 + "]",
1911
+ })) && input.aliases.map((elem, _index18) => "string" === typeof elem || _report(_exceptionable, {
1912
+ path: _path + ".aliases[" + _index18 + "]",
1560
1913
  expected: "string",
1561
1914
  value: elem
1562
1915
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1571,8 +1924,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1571
1924
  path: _path + ".cmd",
1572
1925
  expected: "(CMDArray | string | undefined)",
1573
1926
  value: input.cmd
1574
- })) && input.cmd.map((elem, _index17) => "string" === typeof elem || _report(_exceptionable, {
1575
- path: _path + ".cmd[" + _index17 + "]",
1927
+ })) && input.cmd.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
1928
+ path: _path + ".cmd[" + _index19 + "]",
1576
1929
  expected: "string",
1577
1930
  value: elem
1578
1931
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1583,12 +1936,12 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1583
1936
  path: _path + ".volumes",
1584
1937
  expected: "(Array<Volume> | undefined)",
1585
1938
  value: input.volumes
1586
- })) && input.volumes.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1587
- path: _path + ".volumes[" + _index18 + "]",
1939
+ })) && input.volumes.map((elem, _index20) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1940
+ path: _path + ".volumes[" + _index20 + "]",
1588
1941
  expected: "Volume",
1589
1942
  value: elem
1590
- })) && _vo2(elem, _path + ".volumes[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
1591
- path: _path + ".volumes[" + _index18 + "]",
1943
+ })) && _vo2(elem, _path + ".volumes[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
1944
+ path: _path + ".volumes[" + _index20 + "]",
1592
1945
  expected: "Volume",
1593
1946
  value: elem
1594
1947
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1597,11 +1950,17 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1597
1950
  value: input.volumes
1598
1951
  }), (null !== input.expose || _report(_exceptionable, {
1599
1952
  path: _path + ".expose",
1600
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
1953
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1601
1954
  value: input.expose
1602
- })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || _report(_exceptionable, {
1955
+ })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
1956
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
1957
+ if (!match)
1958
+ return false;
1959
+ const a = Number(match[1]), b = Number(match[2]);
1960
+ return a < b;
1961
+ })() || _report(_exceptionable, {
1603
1962
  path: _path + ".expose",
1604
- expected: "string & TagBase<__type>",
1963
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
1605
1964
  value: input.expose
1606
1965
  })) || (Array.isArray(input.expose) && (((() => {
1607
1966
  if (!Array.isArray(input.expose))
@@ -1642,33 +2001,39 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1642
2001
  path: _path + ".expose",
1643
2002
  expected: "Array<> & TagBase<__type>",
1644
2003
  value: input.expose
1645
- })) && input.expose.map((elem, _index19) => (null !== elem || _report(_exceptionable, {
1646
- path: _path + ".expose[" + _index19 + "]",
1647
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
2004
+ })) && input.expose.map((elem, _index21) => (null !== elem || _report(_exceptionable, {
2005
+ path: _path + ".expose[" + _index21 + "]",
2006
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1648
2007
  value: elem
1649
2008
  })) && (undefined !== elem || _report(_exceptionable, {
1650
- path: _path + ".expose[" + _index19 + "]",
1651
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
2009
+ path: _path + ".expose[" + _index21 + "]",
2010
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1652
2011
  value: elem
1653
- })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
1654
- path: _path + ".expose[" + _index19 + "]",
1655
- expected: "string & TagBase<__type>",
2012
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
2013
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
2014
+ if (!match)
2015
+ return false;
2016
+ const a = Number(match[1]), b = Number(match[2]);
2017
+ return a < b;
2018
+ })() || _report(_exceptionable, {
2019
+ path: _path + ".expose[" + _index21 + "]",
2020
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
1656
2021
  value: elem
1657
2022
  })) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1658
- path: _path + ".expose[" + _index19 + "]",
1659
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
2023
+ path: _path + ".expose[" + _index21 + "]",
2024
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1660
2025
  value: elem
1661
- })) && _vu1(elem, _path + ".expose[" + _index19 + "]", true && _exceptionable) || _report(_exceptionable, {
1662
- path: _path + ".expose[" + _index19 + "]",
1663
- expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
2026
+ })) && _vu1(elem, _path + ".expose[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
2027
+ path: _path + ".expose[" + _index21 + "]",
2028
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
1664
2029
  value: elem
1665
2030
  }))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
1666
2031
  path: _path + ".expose",
1667
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
2032
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1668
2033
  value: input.expose
1669
2034
  })) || _report(_exceptionable, {
1670
2035
  path: _path + ".expose",
1671
- expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
2036
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
1672
2037
  value: input.expose
1673
2038
  })), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
1674
2039
  path: _path + ".gpu",
@@ -1678,6 +2043,10 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1678
2043
  path: _path + ".work_dir",
1679
2044
  expected: "(string | undefined)",
1680
2045
  value: input.work_dir
2046
+ }), undefined === input.output || "string" === typeof input.output || _report(_exceptionable, {
2047
+ path: _path + ".output",
2048
+ expected: "(string | undefined)",
2049
+ value: input.output
1681
2050
  }), (null !== input.entrypoint || _report(_exceptionable, {
1682
2051
  path: _path + ".entrypoint",
1683
2052
  expected: "(CMDArray | string | undefined)",
@@ -1686,8 +2055,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1686
2055
  path: _path + ".entrypoint",
1687
2056
  expected: "(CMDArray | string | undefined)",
1688
2057
  value: input.entrypoint
1689
- })) && input.entrypoint.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
1690
- path: _path + ".entrypoint[" + _index20 + "]",
2058
+ })) && input.entrypoint.map((elem, _index22) => "string" === typeof elem || _report(_exceptionable, {
2059
+ path: _path + ".entrypoint[" + _index22 + "]",
1691
2060
  expected: "string",
1692
2061
  value: elem
1693
2062
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1704,17 +2073,21 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1704
2073
  value: input.env
1705
2074
  }), (null !== input.restart_policy || _report(_exceptionable, {
1706
2075
  path: _path + ".restart_policy",
1707
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
2076
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1708
2077
  value: input.restart_policy
1709
2078
  })) && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || ("object" === typeof input.restart_policy && null !== input.restart_policy || _report(_exceptionable, {
1710
2079
  path: _path + ".restart_policy",
1711
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
2080
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1712
2081
  value: input.restart_policy
1713
2082
  })) && _vo9(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
1714
2083
  path: _path + ".restart_policy",
1715
- expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
2084
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
1716
2085
  value: input.restart_policy
1717
- })), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
2086
+ })), undefined === input.required_vram || "number" === typeof input.required_vram || _report(_exceptionable, {
2087
+ path: _path + ".required_vram",
2088
+ expected: "(number | undefined)",
2089
+ value: input.required_vram
2090
+ }), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
1718
2091
  path: _path + "[\"private\"]",
1719
2092
  expected: "(boolean | undefined)",
1720
2093
  value: input["private"]
@@ -1722,20 +2095,20 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1722
2095
  path: _path + ".resources",
1723
2096
  expected: "(Resources | undefined)",
1724
2097
  value: input.resources
1725
- })) && input.resources.map((elem, _index21) => (null !== elem || _report(_exceptionable, {
1726
- path: _path + ".resources[" + _index21 + "]",
2098
+ })) && input.resources.map((elem, _index23) => (null !== elem || _report(_exceptionable, {
2099
+ path: _path + ".resources[" + _index23 + "]",
1727
2100
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1728
2101
  value: elem
1729
2102
  })) && (undefined !== elem || _report(_exceptionable, {
1730
- path: _path + ".resources[" + _index21 + "]",
2103
+ path: _path + ".resources[" + _index23 + "]",
1731
2104
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1732
2105
  value: elem
1733
2106
  })) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1734
- path: _path + ".resources[" + _index21 + "]",
2107
+ path: _path + ".resources[" + _index23 + "]",
1735
2108
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1736
2109
  value: elem
1737
- })) && _vu2(elem, _path + ".resources[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
1738
- path: _path + ".resources[" + _index21 + "]",
2110
+ })) && _vu2(elem, _path + ".resources[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
2111
+ path: _path + ".resources[" + _index23 + "]",
1739
2112
  expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1740
2113
  value: elem
1741
2114
  }))).every(flag => flag) || _report(_exceptionable, {
@@ -1750,8 +2123,12 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1750
2123
  path: _path + ".authentication",
1751
2124
  expected: "(Authentication | undefined)",
1752
2125
  value: input.authentication
2126
+ }), undefined === input.trusted_execution_env || "SEV-SNP" === input.trusted_execution_env || "SEV-GUEST" === input.trusted_execution_env || _report(_exceptionable, {
2127
+ path: _path + ".trusted_execution_env",
2128
+ expected: "(\"SEV-GUEST\" | \"SEV-SNP\" | undefined)",
2129
+ value: input.trusted_execution_env
1753
2130
  }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1754
- if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
2131
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "output", "entrypoint", "env", "restart_policy", "required_vram", "private", "resources", "authentication", "trusted_execution_env"].some(prop => key === prop))
1755
2132
  return true;
1756
2133
  const value = input[key];
1757
2134
  if (undefined === value)
@@ -1818,9 +2195,19 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1818
2195
  "Please remove the property next time."
1819
2196
  ].join("\n")
1820
2197
  });
1821
- }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
2198
+ }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || "string" === typeof input.port && (typeof input.port === "string" && (() => {
2199
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.port);
2200
+ if (!match)
2201
+ return false;
2202
+ const a = Number(match[1]), b = Number(match[2]);
2203
+ return a < b;
2204
+ })() || _report(_exceptionable, {
1822
2205
  path: _path + ".port",
1823
- expected: "number",
2206
+ expected: "string & TagBase<__type>",
2207
+ value: input.port
2208
+ })) || _report(_exceptionable, {
2209
+ path: _path + ".port",
2210
+ expected: "((string & TagBase<__type>) | number)",
1824
2211
  value: input.port
1825
2212
  }), undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type || _report(_exceptionable, {
1826
2213
  path: _path + ".type",
@@ -1830,12 +2217,12 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1830
2217
  path: _path + ".health_checks",
1831
2218
  expected: "(Array<HealthCheck> | undefined)",
1832
2219
  value: input.health_checks
1833
- })) && input.health_checks.map((elem, _index22) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1834
- path: _path + ".health_checks[" + _index22 + "]",
2220
+ })) && input.health_checks.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2221
+ path: _path + ".health_checks[" + _index24 + "]",
1835
2222
  expected: "(HttpHealthCheck | WebSocketHealthCheck)",
1836
2223
  value: elem
1837
- })) && _vu0(elem, _path + ".health_checks[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
1838
- path: _path + ".health_checks[" + _index22 + "]",
2224
+ })) && _vu0(elem, _path + ".health_checks[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
2225
+ path: _path + ".health_checks[" + _index24 + "]",
1839
2226
  expected: "(HttpHealthCheck | WebSocketHealthCheck)",
1840
2227
  value: elem
1841
2228
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1992,8 +2379,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1992
2379
  path: _path + ".files",
1993
2380
  expected: "(Array<string> | undefined)",
1994
2381
  value: input.files
1995
- })) && input.files.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
1996
- path: _path + ".files[" + _index23 + "]",
2382
+ })) && input.files.map((elem, _index25) => "string" === typeof elem || _report(_exceptionable, {
2383
+ path: _path + ".files[" + _index25 + "]",
1997
2384
  expected: "string",
1998
2385
  value: elem
1999
2386
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2108,13 +2495,13 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2108
2495
  path: _path + ".buckets",
2109
2496
  expected: "Array<__type>",
2110
2497
  value: input.buckets
2111
- })) && input.buckets.map((elem, _index24) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2112
- path: _path + ".buckets[" + _index24 + "]",
2113
- expected: "__type.o5",
2498
+ })) && input.buckets.map((elem, _index26) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2499
+ path: _path + ".buckets[" + _index26 + "]",
2500
+ expected: "__type.o6",
2114
2501
  value: elem
2115
- })) && _vo14(elem, _path + ".buckets[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
2116
- path: _path + ".buckets[" + _index24 + "]",
2117
- expected: "__type.o5",
2502
+ })) && _vo14(elem, _path + ".buckets[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
2503
+ path: _path + ".buckets[" + _index26 + "]",
2504
+ expected: "__type.o6",
2118
2505
  value: elem
2119
2506
  })).every(flag => flag) || _report(_exceptionable, {
2120
2507
  path: _path + ".buckets",
@@ -2160,8 +2547,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2160
2547
  path: _path + ".files",
2161
2548
  expected: "(Array<string> | undefined)",
2162
2549
  value: input.files
2163
- })) && input.files.map((elem, _index25) => "string" === typeof elem || _report(_exceptionable, {
2164
- path: _path + ".files[" + _index25 + "]",
2550
+ })) && input.files.map((elem, _index27) => "string" === typeof elem || _report(_exceptionable, {
2551
+ path: _path + ".files[" + _index27 + "]",
2165
2552
  expected: "string",
2166
2553
  value: elem
2167
2554
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2204,8 +2591,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2204
2591
  path: _path + ".files",
2205
2592
  expected: "(Array<string> | undefined)",
2206
2593
  value: input.files
2207
- })) && input.files.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
2208
- path: _path + ".files[" + _index26 + "]",
2594
+ })) && input.files.map((elem, _index28) => "string" === typeof elem || _report(_exceptionable, {
2595
+ path: _path + ".files[" + _index28 + "]",
2209
2596
  expected: "string",
2210
2597
  value: elem
2211
2598
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2316,7 +2703,170 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2316
2703
  "Please remove the property next time."
2317
2704
  ].join("\n")
2318
2705
  });
2319
- }).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
2706
+ }).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
2707
+ path: _path + ".image",
2708
+ expected: "string",
2709
+ value: input.image
2710
+ }), undefined === input.cpu || "number" === typeof input.cpu || _report(_exceptionable, {
2711
+ path: _path + ".cpu",
2712
+ expected: "(number | undefined)",
2713
+ value: input.cpu
2714
+ }), undefined === input.memory || "string" === typeof input.memory || "number" === typeof input.memory || _report(_exceptionable, {
2715
+ path: _path + ".memory",
2716
+ expected: "(number | string | undefined)",
2717
+ value: input.memory
2718
+ }), undefined === input.disk || "string" === typeof input.disk || "number" === typeof input.disk || _report(_exceptionable, {
2719
+ path: _path + ".disk",
2720
+ expected: "(number | string | undefined)",
2721
+ value: input.disk
2722
+ }), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
2723
+ path: _path + ".gpu",
2724
+ expected: "(boolean | undefined)",
2725
+ value: input.gpu
2726
+ }), (null !== input.cmd || _report(_exceptionable, {
2727
+ path: _path + ".cmd",
2728
+ expected: "(Array<string> | string | undefined)",
2729
+ value: input.cmd
2730
+ })) && (undefined === input.cmd || "string" === typeof input.cmd || (Array.isArray(input.cmd) || _report(_exceptionable, {
2731
+ path: _path + ".cmd",
2732
+ expected: "(Array<string> | string | undefined)",
2733
+ value: input.cmd
2734
+ })) && input.cmd.map((elem, _index29) => "string" === typeof elem || _report(_exceptionable, {
2735
+ path: _path + ".cmd[" + _index29 + "]",
2736
+ expected: "string",
2737
+ value: elem
2738
+ })).every(flag => flag) || _report(_exceptionable, {
2739
+ path: _path + ".cmd",
2740
+ expected: "(Array<string> | string | undefined)",
2741
+ value: input.cmd
2742
+ })), undefined === input.env || ("object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) || _report(_exceptionable, {
2743
+ path: _path + ".env",
2744
+ expected: "(Env | undefined)",
2745
+ value: input.env
2746
+ })) && _vo8(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
2747
+ path: _path + ".env",
2748
+ expected: "(Env | undefined)",
2749
+ value: input.env
2750
+ }), (null !== input.expose || _report(_exceptionable, {
2751
+ path: _path + ".expose",
2752
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
2753
+ value: input.expose
2754
+ })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || typeof input.expose === "string" && (() => {
2755
+ const match = /^([0-9]+)-([0-9]+)$/.exec(input.expose);
2756
+ if (!match)
2757
+ return false;
2758
+ const a = Number(match[1]), b = Number(match[2]);
2759
+ return a < b;
2760
+ })() || _report(_exceptionable, {
2761
+ path: _path + ".expose",
2762
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
2763
+ value: input.expose
2764
+ })) || (Array.isArray(input.expose) && (((() => {
2765
+ if (!Array.isArray(input.expose))
2766
+ return true;
2767
+ const numbers = new Set();
2768
+ const ranges = [];
2769
+ for (const el of input.expose) {
2770
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
2771
+ continue;
2772
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
2773
+ continue;
2774
+ const port = typeof el === "object" ? el.port : el;
2775
+ if (typeof port === "number") {
2776
+ if (numbers.has(port))
2777
+ return false;
2778
+ numbers.add(port);
2779
+ }
2780
+ else if (typeof port === "string") {
2781
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
2782
+ if (!match)
2783
+ return false;
2784
+ const start = Number(match[1]), end = Number(match[2]);
2785
+ for (const [rStart, rEnd] of ranges) {
2786
+ if (start <= rEnd && end >= rStart)
2787
+ return false;
2788
+ }
2789
+ ranges.push([start, end]);
2790
+ }
2791
+ }
2792
+ for (const port of numbers) {
2793
+ for (const [start, end] of ranges) {
2794
+ if (port >= start && port <= end)
2795
+ return false;
2796
+ }
2797
+ }
2798
+ return true;
2799
+ })() || _report(_exceptionable, {
2800
+ path: _path + ".expose",
2801
+ expected: "Array<> & TagBase<__type>",
2802
+ value: input.expose
2803
+ })) && input.expose.map((elem, _index30) => (null !== elem || _report(_exceptionable, {
2804
+ path: _path + ".expose[" + _index30 + "]",
2805
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
2806
+ value: elem
2807
+ })) && (undefined !== elem || _report(_exceptionable, {
2808
+ path: _path + ".expose[" + _index30 + "]",
2809
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
2810
+ value: elem
2811
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || typeof elem === "string" && (() => {
2812
+ const match = /^([0-9]+)-([0-9]+)$/.exec(elem);
2813
+ if (!match)
2814
+ return false;
2815
+ const a = Number(match[1]), b = Number(match[2]);
2816
+ return a < b;
2817
+ })() || _report(_exceptionable, {
2818
+ path: _path + ".expose[" + _index30 + "]",
2819
+ expected: "(string & (TagBase<__type> | TagBase<__type>))",
2820
+ value: elem
2821
+ })) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2822
+ path: _path + ".expose[" + _index30 + "]",
2823
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
2824
+ value: elem
2825
+ })) && _vu1(elem, _path + ".expose[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
2826
+ path: _path + ".expose[" + _index30 + "]",
2827
+ expected: "((__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number)",
2828
+ value: elem
2829
+ }))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
2830
+ path: _path + ".expose",
2831
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
2832
+ value: input.expose
2833
+ })) || _report(_exceptionable, {
2834
+ path: _path + ".expose",
2835
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & (TagBase<__type> | TagBase<__type>)) | ExposedPort | number | undefined)",
2836
+ value: input.expose
2837
+ })), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
2838
+ path: _path + "[\"private\"]",
2839
+ expected: "(boolean | undefined)",
2840
+ value: input["private"]
2841
+ }), (null !== input.restart_policy || _report(_exceptionable, {
2842
+ path: _path + ".restart_policy",
2843
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
2844
+ value: input.restart_policy
2845
+ })) && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || ("object" === typeof input.restart_policy && null !== input.restart_policy || _report(_exceptionable, {
2846
+ path: _path + ".restart_policy",
2847
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
2848
+ value: input.restart_policy
2849
+ })) && _vo9(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
2850
+ path: _path + ".restart_policy",
2851
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o5 | undefined)",
2852
+ value: input.restart_policy
2853
+ })), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2854
+ if (["image", "cpu", "memory", "disk", "gpu", "cmd", "env", "expose", "private", "restart_policy"].some(prop => key === prop))
2855
+ return true;
2856
+ const value = input[key];
2857
+ if (undefined === value)
2858
+ return true;
2859
+ return _report(_exceptionable, {
2860
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2861
+ expected: "undefined",
2862
+ value: value,
2863
+ description: [
2864
+ `The property \`${key}\` is not defined in the object type.`,
2865
+ "",
2866
+ "Please remove the property next time."
2867
+ ].join("\n")
2868
+ });
2869
+ }).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
2320
2870
  path: _path + ".name",
2321
2871
  expected: "string",
2322
2872
  value: input.name
@@ -2336,7 +2886,7 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2336
2886
  "Please remove the property next time."
2337
2887
  ].join("\n")
2338
2888
  });
2339
- }).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
2889
+ }).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
2340
2890
  const value = input[key];
2341
2891
  if (undefined === value)
2342
2892
  return true;
@@ -2352,12 +2902,12 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2352
2902
  path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2353
2903
  expected: "(OperationResult | string)",
2354
2904
  value: value
2355
- })) && _vo21(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
2905
+ })) && _vo22(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
2356
2906
  path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2357
2907
  expected: "(OperationResult | string)",
2358
2908
  value: value
2359
2909
  }));
2360
- }).every(flag => flag)].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
2910
+ }).every(flag => flag)].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
2361
2911
  path: _path + ".regex",
2362
2912
  expected: "string",
2363
2913
  value: input.regex
@@ -2377,8 +2927,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2377
2927
  path: _path + ".logType",
2378
2928
  expected: "Array<> & UniqueLogTypeTag",
2379
2929
  value: input.logType
2380
- })) && input.logType.map((elem, _index27) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
2381
- path: _path + ".logType[" + _index27 + "]",
2930
+ })) && input.logType.map((elem, _index31) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
2931
+ path: _path + ".logType[" + _index31 + "]",
2382
2932
  expected: "(\"nodeerr\" | \"stderr\" | \"stdin\" | \"stdout\")",
2383
2933
  value: elem
2384
2934
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -2401,7 +2951,7 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2401
2951
  "Please remove the property next time."
2402
2952
  ].join("\n")
2403
2953
  });
2404
- }).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
2954
+ }).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
2405
2955
  path: _path + ".group",
2406
2956
  expected: "(string | undefined)",
2407
2957
  value: input.group
@@ -2413,8 +2963,8 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2413
2963
  path: _path + ".depends_on",
2414
2964
  expected: "(Array<string> | undefined)",
2415
2965
  value: input.depends_on
2416
- })) && input.depends_on.map((elem, _index28) => "string" === typeof elem || _report(_exceptionable, {
2417
- path: _path + ".depends_on[" + _index28 + "]",
2966
+ })) && input.depends_on.map((elem, _index32) => "string" === typeof elem || _report(_exceptionable, {
2967
+ path: _path + ".depends_on[" + _index32 + "]",
2418
2968
  expected: "string",
2419
2969
  value: elem
2420
2970
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2477,16 +3027,20 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2477
3027
  else
2478
3028
  return _vo10(input, _path, true && _exceptionable);
2479
3029
  })(); const _vu3 = (input, _path, _exceptionable = true) => (() => {
2480
- if (undefined !== input.image)
2481
- return _vo1(input, _path, true && _exceptionable);
2482
- else if (undefined !== input.name)
2483
- return _vo19(input, _path, true && _exceptionable);
3030
+ if (undefined !== input.name)
3031
+ return _vo20(input, _path, true && _exceptionable);
2484
3032
  else
2485
- return _report(_exceptionable, {
2486
- path: _path,
2487
- expected: "(ContainerRun | ContainerCreateVolume)",
2488
- value: input
2489
- });
3033
+ return (() => {
3034
+ if (_vo1(input, _path, false && _exceptionable))
3035
+ return _vo1(input, _path, true && _exceptionable);
3036
+ if (_vo19(input, _path, false && _exceptionable))
3037
+ return _vo19(input, _path, true && _exceptionable);
3038
+ return _report(_exceptionable, {
3039
+ path: _path,
3040
+ expected: "(ContainerRun | VmRunArgs)",
3041
+ value: input
3042
+ });
3043
+ })();
2490
3044
  })(); const __is = (input, _exceptionable = true) => Array.isArray(input) && (Array.isArray(input) && (() => {
2491
3045
  const seen = new Set();
2492
3046
  for (const it of input) {
@@ -2497,13 +3051,13 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2497
3051
  seen.add(it.id);
2498
3052
  }
2499
3053
  return true;
2500
- })() && input.every((elem, _index1) => "object" === typeof elem && null !== elem && _io0(elem, true))); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
3054
+ })() && (Array.isArray(input) && input.every(op => !(op?.args?.gpu === true && op?.args?.trusted_execution_env !== undefined))) && input.every((elem, _index1) => "object" === typeof elem && null !== elem && _io0(elem, true))); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
2501
3055
  if (false === __is(input)) {
2502
3056
  errors = [];
2503
3057
  _report = __typia_transform__validateReport._validateReport(errors);
2504
3058
  ((input, _path, _exceptionable = true) => (Array.isArray(input) || _report(true, {
2505
3059
  path: _path + "",
2506
- expected: "(Ops & UniqueById)",
3060
+ expected: "(Ops & UniqueById & GpuTeeConflict)",
2507
3061
  value: input
2508
3062
  })) && ((Array.isArray(input) && (() => {
2509
3063
  const seen = new Set();
@@ -2519,17 +3073,21 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
2519
3073
  path: _path + "",
2520
3074
  expected: "Array<> & UniqueById",
2521
3075
  value: input
2522
- })) && input.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(true, {
2523
- path: _path + "[" + _index15 + "]",
3076
+ })) && (Array.isArray(input) && input.every(op => !(op?.args?.gpu === true && op?.args?.trusted_execution_env !== undefined)) || _report(_exceptionable, {
3077
+ path: _path + "",
3078
+ expected: "Array<> & GpuTeeConflict",
3079
+ value: input
3080
+ })) && input.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(true, {
3081
+ path: _path + "[" + _index17 + "]",
2524
3082
  expected: "Operation<keyof OperationArgsMap>",
2525
3083
  value: elem
2526
- })) && _vo0(elem, _path + "[" + _index15 + "]", true) || _report(true, {
2527
- path: _path + "[" + _index15 + "]",
3084
+ })) && _vo0(elem, _path + "[" + _index17 + "]", true) || _report(true, {
3085
+ path: _path + "[" + _index17 + "]",
2528
3086
  expected: "Operation<keyof OperationArgsMap>",
2529
3087
  value: elem
2530
3088
  })).every(flag => flag)) || _report(true, {
2531
3089
  path: _path + "",
2532
- expected: "(Ops & UniqueById)",
3090
+ expected: "(Ops & UniqueById & GpuTeeConflict)",
2533
3091
  value: input
2534
3092
  }))(input, "$input", true);
2535
3093
  const success = 0 === errors.length;