@nosana/types 2.2.15 → 2.2.16

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 (32) hide show
  1. package/dist/Jobs/JobDefinition/args/index.d.ts +17 -0
  2. package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
  3. package/dist/Jobs/JobDefinition/args/index.js +2365 -0
  4. package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
  5. package/dist/Jobs/JobDefinition/execution/index.d.ts +2 -0
  6. package/dist/Jobs/JobDefinition/execution/index.d.ts.map +1 -1
  7. package/dist/Jobs/JobDefinition/execution/index.js +136 -1
  8. package/dist/Jobs/JobDefinition/execution/index.js.map +1 -1
  9. package/dist/Jobs/JobDefinition/global/index.d.ts +2 -0
  10. package/dist/Jobs/JobDefinition/global/index.d.ts.map +1 -1
  11. package/dist/Jobs/JobDefinition/global/index.js +127 -1
  12. package/dist/Jobs/JobDefinition/global/index.js.map +1 -1
  13. package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -0
  14. package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
  15. package/dist/Jobs/JobDefinition/logistics/index.js +133 -0
  16. package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -1
  17. package/dist/Jobs/JobDefinition/meta/index.d.ts +2 -0
  18. package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
  19. package/dist/Jobs/JobDefinition/meta/index.js +118 -1
  20. package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
  21. package/dist/Jobs/JobDefinition/operations/index.d.ts +13 -2
  22. package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
  23. package/dist/Jobs/JobDefinition/operations/index.js +2663 -2
  24. package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
  25. package/dist/Jobs/JobDefinition/operations/rules.d.ts +11 -0
  26. package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -0
  27. package/dist/Jobs/JobDefinition/operations/rules.js +20 -0
  28. package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -0
  29. package/dist/Jobs/index.d.ts +3 -19
  30. package/dist/Jobs/index.d.ts.map +1 -1
  31. package/dist/Jobs/index.js.map +1 -1
  32. package/package.json +2 -2
@@ -1,3 +1,7 @@
1
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
2
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
3
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
4
+ import typia from "typia";
1
5
  export * from "./aliases.js";
2
6
  export * from "./authentication.js";
3
7
  export * from "./cmd.js";
@@ -12,4 +16,2365 @@ export * from "./restart_policy.js";
12
16
  export * from "./variables.js";
13
17
  export * from "./volumes.js";
14
18
  export * from "./work_dir.js";
19
+ export const validateImage = (() => { const __is = (input, _exceptionable = true) => "string" === typeof input; let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
20
+ if (false === __is(input)) {
21
+ errors = [];
22
+ _report = __typia_transform__validateReport._validateReport(errors);
23
+ ((input, _path, _exceptionable = true) => "string" === typeof input || _report(true, {
24
+ path: _path + "",
25
+ expected: "string",
26
+ value: input
27
+ }))(input, "$input", true);
28
+ const success = 0 === errors.length;
29
+ return success ? {
30
+ success,
31
+ data: input
32
+ } : {
33
+ success,
34
+ errors,
35
+ data: input
36
+ };
37
+ }
38
+ return {
39
+ success: true,
40
+ data: input
41
+ };
42
+ }); })();
43
+ export const validateAliases = (() => { const __is = (input, _exceptionable = true) => null !== input && undefined !== input && ("string" === typeof input || Array.isArray(input) && input.every((elem, _index1) => "string" === typeof elem)); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
44
+ if (false === __is(input)) {
45
+ errors = [];
46
+ _report = __typia_transform__validateReport._validateReport(errors);
47
+ ((input, _path, _exceptionable = true) => (null !== input || _report(true, {
48
+ path: _path + "",
49
+ expected: "(Aliases | string)",
50
+ value: input
51
+ })) && (undefined !== input || _report(true, {
52
+ path: _path + "",
53
+ expected: "(Aliases | string)",
54
+ value: input
55
+ })) && ("string" === typeof input || (Array.isArray(input) || _report(true, {
56
+ path: _path + "",
57
+ expected: "(Aliases | string)",
58
+ value: input
59
+ })) && input.map((elem, _index2) => "string" === typeof elem || _report(true, {
60
+ path: _path + "[" + _index2 + "]",
61
+ expected: "string",
62
+ value: elem
63
+ })).every(flag => flag) || _report(true, {
64
+ path: _path + "",
65
+ expected: "(Aliases | string)",
66
+ value: input
67
+ })))(input, "$input", true);
68
+ const success = 0 === errors.length;
69
+ return success ? {
70
+ success,
71
+ data: input
72
+ } : {
73
+ success,
74
+ errors,
75
+ data: input
76
+ };
77
+ }
78
+ return {
79
+ success: true,
80
+ data: input
81
+ };
82
+ }); })();
83
+ export const validateCmd = (() => { const __is = (input, _exceptionable = true) => null !== input && undefined !== input && ("string" === typeof input || Array.isArray(input) && input.every((elem, _index1) => "string" === typeof elem)); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
84
+ if (false === __is(input)) {
85
+ errors = [];
86
+ _report = __typia_transform__validateReport._validateReport(errors);
87
+ ((input, _path, _exceptionable = true) => (null !== input || _report(true, {
88
+ path: _path + "",
89
+ expected: "(CMDArray | string)",
90
+ value: input
91
+ })) && (undefined !== input || _report(true, {
92
+ path: _path + "",
93
+ expected: "(CMDArray | string)",
94
+ value: input
95
+ })) && ("string" === typeof input || (Array.isArray(input) || _report(true, {
96
+ path: _path + "",
97
+ expected: "(CMDArray | string)",
98
+ value: input
99
+ })) && input.map((elem, _index2) => "string" === typeof elem || _report(true, {
100
+ path: _path + "[" + _index2 + "]",
101
+ expected: "string",
102
+ value: elem
103
+ })).every(flag => flag) || _report(true, {
104
+ path: _path + "",
105
+ expected: "(CMDArray | string)",
106
+ value: input
107
+ })))(input, "$input", true);
108
+ const success = 0 === errors.length;
109
+ return success ? {
110
+ success,
111
+ data: input
112
+ } : {
113
+ success,
114
+ errors,
115
+ data: input
116
+ };
117
+ }
118
+ return {
119
+ success: true,
120
+ data: input
121
+ };
122
+ }); })();
123
+ export const validateVolumes = (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.dest && (2 === Object.keys(input).length || Object.keys(input).every(key => {
124
+ if (["name", "dest"].some(prop => key === prop))
125
+ return true;
126
+ const value = input[key];
127
+ if (undefined === value)
128
+ return true;
129
+ return false;
130
+ })); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
131
+ path: _path + ".name",
132
+ expected: "string",
133
+ value: input.name
134
+ }), "string" === typeof input.dest || _report(_exceptionable, {
135
+ path: _path + ".dest",
136
+ expected: "string",
137
+ value: input.dest
138
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
139
+ if (["name", "dest"].some(prop => key === prop))
140
+ return true;
141
+ const value = input[key];
142
+ if (undefined === value)
143
+ return true;
144
+ return _report(_exceptionable, {
145
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
146
+ expected: "undefined",
147
+ value: value,
148
+ description: [
149
+ `The property \`${key}\` is not defined in the object type.`,
150
+ "",
151
+ "Please remove the property next time."
152
+ ].join("\n")
153
+ });
154
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => Array.isArray(input) && input.every((elem, _index1) => "object" === typeof elem && null !== elem && _io0(elem, true)); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
155
+ if (false === __is(input)) {
156
+ errors = [];
157
+ _report = __typia_transform__validateReport._validateReport(errors);
158
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || _report(true, {
159
+ path: _path + "",
160
+ expected: "Array<Volume>",
161
+ value: input
162
+ })) && input.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(true, {
163
+ path: _path + "[" + _index2 + "]",
164
+ expected: "Volume",
165
+ value: elem
166
+ })) && _vo0(elem, _path + "[" + _index2 + "]", true) || _report(true, {
167
+ path: _path + "[" + _index2 + "]",
168
+ expected: "Volume",
169
+ value: elem
170
+ })).every(flag => flag) || _report(true, {
171
+ path: _path + "",
172
+ expected: "Array<Volume>",
173
+ value: input
174
+ }))(input, "$input", true);
175
+ const success = 0 === errors.length;
176
+ return success ? {
177
+ success,
178
+ data: input
179
+ } : {
180
+ success,
181
+ errors,
182
+ data: input
183
+ };
184
+ }
185
+ return {
186
+ success: true,
187
+ data: input
188
+ };
189
+ }); })();
190
+ export const validateExpose = (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__)) && (undefined === input.chunked || "boolean" === typeof input.chunked) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
191
+ if (["__spread__", "chunked"].some(prop => key === prop))
192
+ return true;
193
+ const value = input[key];
194
+ if (undefined === value)
195
+ return true;
196
+ return false;
197
+ })); const _io1 = (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, _index2) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
198
+ if (["port", "type", "health_checks"].some(prop => key === prop))
199
+ return true;
200
+ const value = input[key];
201
+ if (undefined === value)
202
+ return true;
203
+ return false;
204
+ })); const _io2 = (input, _exceptionable = true) => "http" === input.type && "string" === typeof input.path && ("GET" === input.method || "POST" === input.method || "PUT" === input.method || "DELETE" === input.method) && "number" === typeof input.expected_status && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io3(input.headers, true && _exceptionable)) && true && "boolean" === typeof input.continuous && (5 === Object.keys(input).length || Object.keys(input).every(key => {
205
+ if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
206
+ return true;
207
+ const value = input[key];
208
+ if (undefined === value)
209
+ return true;
210
+ return false;
211
+ })); const _io3 = (input, _exceptionable = true) => Object.keys(input).every(key => {
212
+ const value = input[key];
213
+ if (undefined === value)
214
+ return true;
215
+ return "string" === typeof value;
216
+ }); const _io4 = (input, _exceptionable = true) => "websocket" === input.type && "string" === typeof input.expected_response && "boolean" === typeof input.continuous && (3 === Object.keys(input).length || Object.keys(input).every(key => {
217
+ if (["type", "expected_response", "continuous"].some(prop => key === prop))
218
+ return true;
219
+ const value = input[key];
220
+ if (undefined === value)
221
+ return true;
222
+ return false;
223
+ })); const _iu0 = (input, _exceptionable = true) => (() => {
224
+ if ("http" === input.type)
225
+ return _io2(input, true && _exceptionable);
226
+ else if ("websocket" === input.type)
227
+ return _io4(input, true && _exceptionable);
228
+ else
229
+ return false;
230
+ })(); const _iu1 = (input, _exceptionable = true) => (() => {
231
+ if (undefined !== input.__spread__)
232
+ return _io0(input, true && _exceptionable);
233
+ else if (undefined !== input.port)
234
+ return _io1(input, true && _exceptionable);
235
+ else
236
+ return false;
237
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
238
+ path: _path + ".__spread__",
239
+ expected: "string & TagBase<__type>",
240
+ value: input.__spread__
241
+ })) || _report(_exceptionable, {
242
+ path: _path + ".__spread__",
243
+ expected: "(string & TagBase<__type>)",
244
+ value: input.__spread__
245
+ }), undefined === input.chunked || "boolean" === typeof input.chunked || _report(_exceptionable, {
246
+ path: _path + ".chunked",
247
+ expected: "(boolean | undefined)",
248
+ value: input.chunked
249
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
250
+ if (["__spread__", "chunked"].some(prop => key === prop))
251
+ return true;
252
+ const value = input[key];
253
+ if (undefined === value)
254
+ return true;
255
+ return _report(_exceptionable, {
256
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
257
+ expected: "undefined",
258
+ value: value,
259
+ description: [
260
+ `The property \`${key}\` is not defined in the object type.`,
261
+ "",
262
+ "Please remove the property next time."
263
+ ].join("\n")
264
+ });
265
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
266
+ path: _path + ".port",
267
+ expected: "number",
268
+ value: input.port
269
+ }), undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type || _report(_exceptionable, {
270
+ path: _path + ".type",
271
+ expected: "(\"api\" | \"none\" | \"web\" | \"webapi\" | \"websocket\" | undefined)",
272
+ value: input.type
273
+ }), undefined === input.health_checks || (Array.isArray(input.health_checks) || _report(_exceptionable, {
274
+ path: _path + ".health_checks",
275
+ expected: "(Array<HealthCheck> | undefined)",
276
+ value: input.health_checks
277
+ })) && input.health_checks.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
278
+ path: _path + ".health_checks[" + _index4 + "]",
279
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
280
+ value: elem
281
+ })) && _vu0(elem, _path + ".health_checks[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
282
+ path: _path + ".health_checks[" + _index4 + "]",
283
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
284
+ value: elem
285
+ })).every(flag => flag) || _report(_exceptionable, {
286
+ path: _path + ".health_checks",
287
+ expected: "(Array<HealthCheck> | undefined)",
288
+ value: input.health_checks
289
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
290
+ if (["port", "type", "health_checks"].some(prop => key === prop))
291
+ return true;
292
+ const value = input[key];
293
+ if (undefined === value)
294
+ return true;
295
+ return _report(_exceptionable, {
296
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
297
+ expected: "undefined",
298
+ value: value,
299
+ description: [
300
+ `The property \`${key}\` is not defined in the object type.`,
301
+ "",
302
+ "Please remove the property next time."
303
+ ].join("\n")
304
+ });
305
+ }).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["http" === input.type || _report(_exceptionable, {
306
+ path: _path + ".type",
307
+ expected: "\"http\"",
308
+ value: input.type
309
+ }), "string" === typeof input.path || _report(_exceptionable, {
310
+ path: _path + ".path",
311
+ expected: "string",
312
+ value: input.path
313
+ }), "GET" === input.method || "POST" === input.method || "PUT" === input.method || "DELETE" === input.method || _report(_exceptionable, {
314
+ path: _path + ".method",
315
+ expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
316
+ value: input.method
317
+ }), "number" === typeof input.expected_status || _report(_exceptionable, {
318
+ path: _path + ".expected_status",
319
+ expected: "number",
320
+ value: input.expected_status
321
+ }), undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || _report(_exceptionable, {
322
+ path: _path + ".headers",
323
+ expected: "(Record<string, string> | undefined)",
324
+ value: input.headers
325
+ })) && _vo3(input.headers, _path + ".headers", true && _exceptionable) || _report(_exceptionable, {
326
+ path: _path + ".headers",
327
+ expected: "(Record<string, string> | undefined)",
328
+ value: input.headers
329
+ }), true, "boolean" === typeof input.continuous || _report(_exceptionable, {
330
+ path: _path + ".continuous",
331
+ expected: "boolean",
332
+ value: input.continuous
333
+ }), 5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
334
+ if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
335
+ return true;
336
+ const value = input[key];
337
+ if (undefined === value)
338
+ return true;
339
+ return _report(_exceptionable, {
340
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
341
+ expected: "undefined",
342
+ value: value,
343
+ description: [
344
+ `The property \`${key}\` is not defined in the object type.`,
345
+ "",
346
+ "Please remove the property next time."
347
+ ].join("\n")
348
+ });
349
+ }).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
350
+ const value = input[key];
351
+ if (undefined === value)
352
+ return true;
353
+ return "string" === typeof value || _report(_exceptionable, {
354
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
355
+ expected: "string",
356
+ value: value
357
+ });
358
+ }).every(flag => flag)].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["websocket" === input.type || _report(_exceptionable, {
359
+ path: _path + ".type",
360
+ expected: "\"websocket\"",
361
+ value: input.type
362
+ }), "string" === typeof input.expected_response || _report(_exceptionable, {
363
+ path: _path + ".expected_response",
364
+ expected: "string",
365
+ value: input.expected_response
366
+ }), "boolean" === typeof input.continuous || _report(_exceptionable, {
367
+ path: _path + ".continuous",
368
+ expected: "boolean",
369
+ value: input.continuous
370
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
371
+ if (["type", "expected_response", "continuous"].some(prop => key === prop))
372
+ return true;
373
+ const value = input[key];
374
+ if (undefined === value)
375
+ return true;
376
+ return _report(_exceptionable, {
377
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
378
+ expected: "undefined",
379
+ value: value,
380
+ description: [
381
+ `The property \`${key}\` is not defined in the object type.`,
382
+ "",
383
+ "Please remove the property next time."
384
+ ].join("\n")
385
+ });
386
+ }).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
387
+ if ("http" === input.type)
388
+ return _vo2(input, _path, true && _exceptionable);
389
+ else if ("websocket" === input.type)
390
+ return _vo4(input, _path, true && _exceptionable);
391
+ else
392
+ return _report(_exceptionable, {
393
+ path: _path,
394
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
395
+ value: input
396
+ });
397
+ })(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
398
+ if (undefined !== input.__spread__)
399
+ return _vo0(input, _path, true && _exceptionable);
400
+ else if (undefined !== input.port)
401
+ return _vo1(input, _path, true && _exceptionable);
402
+ else
403
+ return _report(_exceptionable, {
404
+ path: _path,
405
+ expected: "(__type | ExposedPort)",
406
+ value: input
407
+ });
408
+ })(); const __is = (input, _exceptionable = true) => null !== input && undefined !== input && ("number" === typeof input || "string" === typeof input && (typeof input === "string" && /^%%(ops|global).[^%]+%%$/.test(input)) || (Array.isArray(input) && ((() => {
409
+ if (!Array.isArray(input))
410
+ return true;
411
+ const numbers = new Set();
412
+ const ranges = [];
413
+ for (const el of input) {
414
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
415
+ continue;
416
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
417
+ continue;
418
+ const port = typeof el === "object" ? el.port : el;
419
+ if (typeof port === "number") {
420
+ if (numbers.has(port))
421
+ return false;
422
+ numbers.add(port);
423
+ }
424
+ else if (typeof port === "string") {
425
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
426
+ if (!match)
427
+ return false;
428
+ const start = Number(match[1]), end = Number(match[2]);
429
+ for (const [rStart, rEnd] of ranges) {
430
+ if (start <= rEnd && end >= rStart)
431
+ return false;
432
+ }
433
+ ranges.push([start, end]);
434
+ }
435
+ }
436
+ for (const port of numbers) {
437
+ for (const [start, end] of ranges) {
438
+ if (port >= start && port <= end)
439
+ return false;
440
+ }
441
+ }
442
+ return true;
443
+ })() && input.every((elem, _index1) => 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)))) || "object" === typeof input && null !== input && _iu1(input, true))); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
444
+ if (false === __is(input)) {
445
+ errors = [];
446
+ _report = __typia_transform__validateReport._validateReport(errors);
447
+ ((input, _path, _exceptionable = true) => (null !== input || _report(true, {
448
+ path: _path + "",
449
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
450
+ value: input
451
+ })) && (undefined !== input || _report(true, {
452
+ path: _path + "",
453
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
454
+ value: input
455
+ })) && ("number" === typeof input || "string" === typeof input && (typeof input === "string" && /^%%(ops|global).[^%]+%%$/.test(input) || _report(true, {
456
+ path: _path + "",
457
+ expected: "string & TagBase<__type>",
458
+ value: input
459
+ })) || (Array.isArray(input) && (((() => {
460
+ if (!Array.isArray(input))
461
+ return true;
462
+ const numbers = new Set();
463
+ const ranges = [];
464
+ for (const el of input) {
465
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
466
+ continue;
467
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
468
+ continue;
469
+ const port = typeof el === "object" ? el.port : el;
470
+ if (typeof port === "number") {
471
+ if (numbers.has(port))
472
+ return false;
473
+ numbers.add(port);
474
+ }
475
+ else if (typeof port === "string") {
476
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
477
+ if (!match)
478
+ return false;
479
+ const start = Number(match[1]), end = Number(match[2]);
480
+ for (const [rStart, rEnd] of ranges) {
481
+ if (start <= rEnd && end >= rStart)
482
+ return false;
483
+ }
484
+ ranges.push([start, end]);
485
+ }
486
+ }
487
+ for (const port of numbers) {
488
+ for (const [start, end] of ranges) {
489
+ if (port >= start && port <= end)
490
+ return false;
491
+ }
492
+ }
493
+ return true;
494
+ })() || _report(_exceptionable, {
495
+ path: _path + "",
496
+ expected: "Array<> & TagBase<__type>",
497
+ value: input
498
+ })) && input.map((elem, _index3) => (null !== elem || _report(true, {
499
+ path: _path + "[" + _index3 + "]",
500
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
501
+ value: elem
502
+ })) && (undefined !== elem || _report(true, {
503
+ path: _path + "[" + _index3 + "]",
504
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
505
+ value: elem
506
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
507
+ path: _path + "[" + _index3 + "]",
508
+ expected: "string & TagBase<__type>",
509
+ value: elem
510
+ })) || ("object" === typeof elem && null !== elem || _report(true, {
511
+ path: _path + "[" + _index3 + "]",
512
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
513
+ value: elem
514
+ })) && _vu1(elem, _path + "[" + _index3 + "]", true) || _report(true, {
515
+ path: _path + "[" + _index3 + "]",
516
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
517
+ value: elem
518
+ }))).every(flag => flag)) || "object" === typeof input && null !== input && _vu1(input, _path + "", true) || _report(true, {
519
+ path: _path + "",
520
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
521
+ value: input
522
+ })) || _report(true, {
523
+ path: _path + "",
524
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
525
+ value: input
526
+ })))(input, "$input", true);
527
+ const success = 0 === errors.length;
528
+ return success ? {
529
+ success,
530
+ data: input
531
+ } : {
532
+ success,
533
+ errors,
534
+ data: input
535
+ };
536
+ }
537
+ return {
538
+ success: true,
539
+ data: input
540
+ };
541
+ }); })();
542
+ export const validateGPU = (() => { const __is = (input, _exceptionable = true) => "boolean" === typeof input; let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
543
+ if (false === __is(input)) {
544
+ errors = [];
545
+ _report = __typia_transform__validateReport._validateReport(errors);
546
+ ((input, _path, _exceptionable = true) => "boolean" === typeof input || _report(true, {
547
+ path: _path + "",
548
+ expected: "boolean",
549
+ value: input
550
+ }))(input, "$input", true);
551
+ const success = 0 === errors.length;
552
+ return success ? {
553
+ success,
554
+ data: input
555
+ } : {
556
+ success,
557
+ errors,
558
+ data: input
559
+ };
560
+ }
561
+ return {
562
+ success: true,
563
+ data: input
564
+ };
565
+ }); })();
566
+ export const validateWorkDir = (() => { const __is = (input, _exceptionable = true) => "string" === typeof input; let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
567
+ if (false === __is(input)) {
568
+ errors = [];
569
+ _report = __typia_transform__validateReport._validateReport(errors);
570
+ ((input, _path, _exceptionable = true) => "string" === typeof input || _report(true, {
571
+ path: _path + "",
572
+ expected: "string",
573
+ value: input
574
+ }))(input, "$input", true);
575
+ const success = 0 === errors.length;
576
+ return success ? {
577
+ success,
578
+ data: input
579
+ } : {
580
+ success,
581
+ errors,
582
+ data: input
583
+ };
584
+ }
585
+ return {
586
+ success: true,
587
+ data: input
588
+ };
589
+ }); })();
590
+ export const validateEnv = (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
591
+ const value = input[key];
592
+ if (undefined === value)
593
+ return true;
594
+ return "string" === typeof value;
595
+ }); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
596
+ const value = input[key];
597
+ if (undefined === value)
598
+ return true;
599
+ return "string" === typeof value || _report(_exceptionable, {
600
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
601
+ expected: "string",
602
+ value: value
603
+ });
604
+ }).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
605
+ if (false === __is(input)) {
606
+ errors = [];
607
+ _report = __typia_transform__validateReport._validateReport(errors);
608
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
609
+ path: _path + "",
610
+ expected: "Env",
611
+ value: input
612
+ })) && _vo0(input, _path + "", true) || _report(true, {
613
+ path: _path + "",
614
+ expected: "Env",
615
+ value: input
616
+ }))(input, "$input", true);
617
+ const success = 0 === errors.length;
618
+ return success ? {
619
+ success,
620
+ data: input
621
+ } : {
622
+ success,
623
+ errors,
624
+ data: input
625
+ };
626
+ }
627
+ return {
628
+ success: true,
629
+ data: input
630
+ };
631
+ }); })();
632
+ export const validateRestartPolicy = (() => { const _io0 = (input, _exceptionable = true) => "on-failure" === input.policy && (undefined === input.restart_tries || "number" === typeof input.restart_tries) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
633
+ if (["policy", "restart_tries"].some(prop => key === prop))
634
+ return true;
635
+ const value = input[key];
636
+ if (undefined === value)
637
+ return true;
638
+ return false;
639
+ })); const _vo0 = (input, _path, _exceptionable = true) => ["on-failure" === input.policy || _report(_exceptionable, {
640
+ path: _path + ".policy",
641
+ expected: "\"on-failure\"",
642
+ value: input.policy
643
+ }), undefined === input.restart_tries || "number" === typeof input.restart_tries || _report(_exceptionable, {
644
+ path: _path + ".restart_tries",
645
+ expected: "(number | undefined)",
646
+ value: input.restart_tries
647
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
648
+ if (["policy", "restart_tries"].some(prop => key === prop))
649
+ return true;
650
+ const value = input[key];
651
+ if (undefined === value)
652
+ return true;
653
+ return _report(_exceptionable, {
654
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
655
+ expected: "undefined",
656
+ value: value,
657
+ description: [
658
+ `The property \`${key}\` is not defined in the object type.`,
659
+ "",
660
+ "Please remove the property next time."
661
+ ].join("\n")
662
+ });
663
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => null !== input && undefined !== input && ("on-failure" === input || "no" === input || "always" === input || "unless-stopped" === input || "object" === typeof input && null !== input && _io0(input, true)); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
664
+ if (false === __is(input)) {
665
+ errors = [];
666
+ _report = __typia_transform__validateReport._validateReport(errors);
667
+ ((input, _path, _exceptionable = true) => (null !== input || _report(true, {
668
+ path: _path + "",
669
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type)",
670
+ value: input
671
+ })) && (undefined !== input || _report(true, {
672
+ path: _path + "",
673
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type)",
674
+ value: input
675
+ })) && ("on-failure" === input || "no" === input || "always" === input || "unless-stopped" === input || ("object" === typeof input && null !== input || _report(true, {
676
+ path: _path + "",
677
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type)",
678
+ value: input
679
+ })) && _vo0(input, _path + "", true) || _report(true, {
680
+ path: _path + "",
681
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type)",
682
+ value: input
683
+ })))(input, "$input", true);
684
+ const success = 0 === errors.length;
685
+ return success ? {
686
+ success,
687
+ data: input
688
+ } : {
689
+ success,
690
+ errors,
691
+ data: input
692
+ };
693
+ }
694
+ return {
695
+ success: true,
696
+ data: input
697
+ };
698
+ }); })();
699
+ export const validatePrivate = (() => { const __is = (input, _exceptionable = true) => "boolean" === typeof input; let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
700
+ if (false === __is(input)) {
701
+ errors = [];
702
+ _report = __typia_transform__validateReport._validateReport(errors);
703
+ ((input, _path, _exceptionable = true) => "boolean" === typeof input || _report(true, {
704
+ path: _path + "",
705
+ expected: "boolean",
706
+ value: input
707
+ }))(input, "$input", true);
708
+ const success = 0 === errors.length;
709
+ return success ? {
710
+ success,
711
+ data: input
712
+ } : {
713
+ success,
714
+ errors,
715
+ data: input
716
+ };
717
+ }
718
+ return {
719
+ success: true,
720
+ data: input
721
+ };
722
+ }); })();
723
+ export const validateResources = (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__)) && (undefined === input.chunked || "boolean" === typeof input.chunked) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
724
+ if (["__spread__", "chunked"].some(prop => key === prop))
725
+ return true;
726
+ const value = input[key];
727
+ if (undefined === value)
728
+ return true;
729
+ return false;
730
+ })); const _io1 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index2) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io2(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
731
+ if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
732
+ return true;
733
+ const value = input[key];
734
+ if (undefined === value)
735
+ return true;
736
+ return false;
737
+ })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.REGION && "string" === typeof input.ACCESS_KEY_ID && "string" === typeof input.SECRET_ACCESS_KEY && (3 === Object.keys(input).length || Object.keys(input).every(key => {
738
+ if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
739
+ return true;
740
+ const value = input[key];
741
+ if (undefined === value)
742
+ return true;
743
+ return false;
744
+ })); const _io3 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && "string" === typeof input.bucket && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io2(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
745
+ if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
746
+ return true;
747
+ const value = input[key];
748
+ if (undefined === value)
749
+ return true;
750
+ return false;
751
+ })); const _io4 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index3) => "object" === typeof elem && null !== elem && _io5(elem, true && _exceptionable))) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io2(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
752
+ if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
753
+ return true;
754
+ const value = input[key];
755
+ if (undefined === value)
756
+ return true;
757
+ return false;
758
+ })); const _io5 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index4) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
759
+ if (["url", "files"].some(prop => key === prop))
760
+ return true;
761
+ const value = input[key];
762
+ if (undefined === value)
763
+ return true;
764
+ return false;
765
+ })); const _io6 = (input, _exceptionable = true) => "HF" === input.type && "string" === typeof input.target && "string" === typeof input.repo && (undefined === input.revision || "string" === typeof input.revision) && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index5) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
766
+ if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
767
+ return true;
768
+ const value = input[key];
769
+ if (undefined === value)
770
+ return true;
771
+ return false;
772
+ })); const _io7 = (input, _exceptionable = true) => "Ollama" === input.type && "string" === typeof input.model && (undefined === input.target || "string" === typeof input.target) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
773
+ if (["type", "model", "target"].some(prop => key === prop))
774
+ return true;
775
+ const value = input[key];
776
+ if (undefined === value)
777
+ return true;
778
+ return false;
779
+ })); const _iu0 = (input, _exceptionable = true) => (() => {
780
+ if (undefined !== input.__spread__)
781
+ return _io0(input, true && _exceptionable);
782
+ else if (undefined !== input.bucket)
783
+ return _io3(input, true && _exceptionable);
784
+ else if (undefined !== input.buckets)
785
+ return _io4(input, true && _exceptionable);
786
+ else if ("HF" === input.type)
787
+ return _io6(input, true && _exceptionable);
788
+ else if ("Ollama" === input.type)
789
+ return _io7(input, true && _exceptionable);
790
+ else
791
+ return _io1(input, true && _exceptionable);
792
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
793
+ path: _path + ".__spread__",
794
+ expected: "string & TagBase<__type>",
795
+ value: input.__spread__
796
+ })) || _report(_exceptionable, {
797
+ path: _path + ".__spread__",
798
+ expected: "(string & TagBase<__type>)",
799
+ value: input.__spread__
800
+ }), undefined === input.chunked || "boolean" === typeof input.chunked || _report(_exceptionable, {
801
+ path: _path + ".chunked",
802
+ expected: "(boolean | undefined)",
803
+ value: input.chunked
804
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
805
+ if (["__spread__", "chunked"].some(prop => key === prop))
806
+ return true;
807
+ const value = input[key];
808
+ if (undefined === value)
809
+ return true;
810
+ return _report(_exceptionable, {
811
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
812
+ expected: "undefined",
813
+ value: value,
814
+ description: [
815
+ `The property \`${key}\` is not defined in the object type.`,
816
+ "",
817
+ "Please remove the property next time."
818
+ ].join("\n")
819
+ });
820
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
821
+ path: _path + ".type",
822
+ expected: "\"S3\"",
823
+ value: input.type
824
+ }), "string" === typeof input.target || _report(_exceptionable, {
825
+ path: _path + ".target",
826
+ expected: "string",
827
+ value: input.target
828
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
829
+ path: _path + ".url",
830
+ expected: "(string | undefined)",
831
+ value: input.url
832
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
833
+ path: _path + ".allowWrite",
834
+ expected: "(boolean | undefined)",
835
+ value: input.allowWrite
836
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
837
+ path: _path + ".files",
838
+ expected: "(Array<string> | undefined)",
839
+ value: input.files
840
+ })) && input.files.map((elem, _index7) => "string" === typeof elem || _report(_exceptionable, {
841
+ path: _path + ".files[" + _index7 + "]",
842
+ expected: "string",
843
+ value: elem
844
+ })).every(flag => flag) || _report(_exceptionable, {
845
+ path: _path + ".files",
846
+ expected: "(Array<string> | undefined)",
847
+ value: input.files
848
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
849
+ path: _path + ".IAM",
850
+ expected: "(S3Auth | undefined)",
851
+ value: input.IAM
852
+ })) && _vo2(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
853
+ path: _path + ".IAM",
854
+ expected: "(S3Auth | undefined)",
855
+ value: input.IAM
856
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
857
+ if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
858
+ return true;
859
+ const value = input[key];
860
+ if (undefined === value)
861
+ return true;
862
+ return _report(_exceptionable, {
863
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
864
+ expected: "undefined",
865
+ value: value,
866
+ description: [
867
+ `The property \`${key}\` is not defined in the object type.`,
868
+ "",
869
+ "Please remove the property next time."
870
+ ].join("\n")
871
+ });
872
+ }).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
873
+ path: _path + ".REGION",
874
+ expected: "string",
875
+ value: input.REGION
876
+ }), "string" === typeof input.ACCESS_KEY_ID || _report(_exceptionable, {
877
+ path: _path + ".ACCESS_KEY_ID",
878
+ expected: "string",
879
+ value: input.ACCESS_KEY_ID
880
+ }), "string" === typeof input.SECRET_ACCESS_KEY || _report(_exceptionable, {
881
+ path: _path + ".SECRET_ACCESS_KEY",
882
+ expected: "string",
883
+ value: input.SECRET_ACCESS_KEY
884
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
885
+ if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
886
+ return true;
887
+ const value = input[key];
888
+ if (undefined === value)
889
+ return true;
890
+ return _report(_exceptionable, {
891
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
892
+ expected: "undefined",
893
+ value: value,
894
+ description: [
895
+ `The property \`${key}\` is not defined in the object type.`,
896
+ "",
897
+ "Please remove the property next time."
898
+ ].join("\n")
899
+ });
900
+ }).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
901
+ path: _path + ".type",
902
+ expected: "\"S3\"",
903
+ value: input.type
904
+ }), "string" === typeof input.target || _report(_exceptionable, {
905
+ path: _path + ".target",
906
+ expected: "string",
907
+ value: input.target
908
+ }), "string" === typeof input.bucket || _report(_exceptionable, {
909
+ path: _path + ".bucket",
910
+ expected: "string",
911
+ value: input.bucket
912
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
913
+ path: _path + ".url",
914
+ expected: "(string | undefined)",
915
+ value: input.url
916
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
917
+ path: _path + ".allowWrite",
918
+ expected: "(boolean | undefined)",
919
+ value: input.allowWrite
920
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
921
+ path: _path + ".IAM",
922
+ expected: "(S3Auth | undefined)",
923
+ value: input.IAM
924
+ })) && _vo2(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
925
+ path: _path + ".IAM",
926
+ expected: "(S3Auth | undefined)",
927
+ value: input.IAM
928
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
929
+ if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
930
+ return true;
931
+ const value = input[key];
932
+ if (undefined === value)
933
+ return true;
934
+ return _report(_exceptionable, {
935
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
936
+ expected: "undefined",
937
+ value: value,
938
+ description: [
939
+ `The property \`${key}\` is not defined in the object type.`,
940
+ "",
941
+ "Please remove the property next time."
942
+ ].join("\n")
943
+ });
944
+ }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
945
+ path: _path + ".type",
946
+ expected: "\"S3\"",
947
+ value: input.type
948
+ }), "string" === typeof input.target || _report(_exceptionable, {
949
+ path: _path + ".target",
950
+ expected: "string",
951
+ value: input.target
952
+ }), (Array.isArray(input.buckets) || _report(_exceptionable, {
953
+ path: _path + ".buckets",
954
+ expected: "Array<__type>",
955
+ value: input.buckets
956
+ })) && input.buckets.map((elem, _index8) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
957
+ path: _path + ".buckets[" + _index8 + "]",
958
+ expected: "__type.o2",
959
+ value: elem
960
+ })) && _vo5(elem, _path + ".buckets[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
961
+ path: _path + ".buckets[" + _index8 + "]",
962
+ expected: "__type.o2",
963
+ value: elem
964
+ })).every(flag => flag) || _report(_exceptionable, {
965
+ path: _path + ".buckets",
966
+ expected: "Array<__type>",
967
+ value: input.buckets
968
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
969
+ path: _path + ".url",
970
+ expected: "(string | undefined)",
971
+ value: input.url
972
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
973
+ path: _path + ".allowWrite",
974
+ expected: "(boolean | undefined)",
975
+ value: input.allowWrite
976
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
977
+ path: _path + ".IAM",
978
+ expected: "(S3Auth | undefined)",
979
+ value: input.IAM
980
+ })) && _vo2(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
981
+ path: _path + ".IAM",
982
+ expected: "(S3Auth | undefined)",
983
+ value: input.IAM
984
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
985
+ if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
986
+ return true;
987
+ const value = input[key];
988
+ if (undefined === value)
989
+ return true;
990
+ return _report(_exceptionable, {
991
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
992
+ expected: "undefined",
993
+ value: value,
994
+ description: [
995
+ `The property \`${key}\` is not defined in the object type.`,
996
+ "",
997
+ "Please remove the property next time."
998
+ ].join("\n")
999
+ });
1000
+ }).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
1001
+ path: _path + ".url",
1002
+ expected: "string",
1003
+ value: input.url
1004
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
1005
+ path: _path + ".files",
1006
+ expected: "(Array<string> | undefined)",
1007
+ value: input.files
1008
+ })) && input.files.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
1009
+ path: _path + ".files[" + _index9 + "]",
1010
+ expected: "string",
1011
+ value: elem
1012
+ })).every(flag => flag) || _report(_exceptionable, {
1013
+ path: _path + ".files",
1014
+ expected: "(Array<string> | undefined)",
1015
+ value: input.files
1016
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1017
+ if (["url", "files"].some(prop => key === prop))
1018
+ return true;
1019
+ const value = input[key];
1020
+ if (undefined === value)
1021
+ return true;
1022
+ return _report(_exceptionable, {
1023
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1024
+ expected: "undefined",
1025
+ value: value,
1026
+ description: [
1027
+ `The property \`${key}\` is not defined in the object type.`,
1028
+ "",
1029
+ "Please remove the property next time."
1030
+ ].join("\n")
1031
+ });
1032
+ }).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
1033
+ path: _path + ".type",
1034
+ expected: "\"HF\"",
1035
+ value: input.type
1036
+ }), "string" === typeof input.target || _report(_exceptionable, {
1037
+ path: _path + ".target",
1038
+ expected: "string",
1039
+ value: input.target
1040
+ }), "string" === typeof input.repo || _report(_exceptionable, {
1041
+ path: _path + ".repo",
1042
+ expected: "string",
1043
+ value: input.repo
1044
+ }), undefined === input.revision || "string" === typeof input.revision || _report(_exceptionable, {
1045
+ path: _path + ".revision",
1046
+ expected: "(string | undefined)",
1047
+ value: input.revision
1048
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
1049
+ path: _path + ".files",
1050
+ expected: "(Array<string> | undefined)",
1051
+ value: input.files
1052
+ })) && input.files.map((elem, _index10) => "string" === typeof elem || _report(_exceptionable, {
1053
+ path: _path + ".files[" + _index10 + "]",
1054
+ expected: "string",
1055
+ value: elem
1056
+ })).every(flag => flag) || _report(_exceptionable, {
1057
+ path: _path + ".files",
1058
+ expected: "(Array<string> | undefined)",
1059
+ value: input.files
1060
+ }), undefined === input.accessToken || "string" === typeof input.accessToken || _report(_exceptionable, {
1061
+ path: _path + ".accessToken",
1062
+ expected: "(string | undefined)",
1063
+ value: input.accessToken
1064
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1065
+ if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
1066
+ return true;
1067
+ const value = input[key];
1068
+ if (undefined === value)
1069
+ return true;
1070
+ return _report(_exceptionable, {
1071
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1072
+ expected: "undefined",
1073
+ value: value,
1074
+ description: [
1075
+ `The property \`${key}\` is not defined in the object type.`,
1076
+ "",
1077
+ "Please remove the property next time."
1078
+ ].join("\n")
1079
+ });
1080
+ }).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
1081
+ path: _path + ".type",
1082
+ expected: "\"Ollama\"",
1083
+ value: input.type
1084
+ }), "string" === typeof input.model || _report(_exceptionable, {
1085
+ path: _path + ".model",
1086
+ expected: "string",
1087
+ value: input.model
1088
+ }), undefined === input.target || "string" === typeof input.target || _report(_exceptionable, {
1089
+ path: _path + ".target",
1090
+ expected: "(string | undefined)",
1091
+ value: input.target
1092
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1093
+ if (["type", "model", "target"].some(prop => key === prop))
1094
+ return true;
1095
+ const value = input[key];
1096
+ if (undefined === value)
1097
+ return true;
1098
+ return _report(_exceptionable, {
1099
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1100
+ expected: "undefined",
1101
+ value: value,
1102
+ description: [
1103
+ `The property \`${key}\` is not defined in the object type.`,
1104
+ "",
1105
+ "Please remove the property next time."
1106
+ ].join("\n")
1107
+ });
1108
+ }).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1109
+ if (undefined !== input.__spread__)
1110
+ return _vo0(input, _path, true && _exceptionable);
1111
+ else if (undefined !== input.bucket)
1112
+ return _vo3(input, _path, true && _exceptionable);
1113
+ else if (undefined !== input.buckets)
1114
+ return _vo4(input, _path, true && _exceptionable);
1115
+ else if ("HF" === input.type)
1116
+ return _vo6(input, _path, true && _exceptionable);
1117
+ else if ("Ollama" === input.type)
1118
+ return _vo7(input, _path, true && _exceptionable);
1119
+ else
1120
+ return _vo1(input, _path, true && _exceptionable);
1121
+ })(); const __is = (input, _exceptionable = true) => Array.isArray(input) && input.every((elem, _index1) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu0(elem, true))); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
1122
+ if (false === __is(input)) {
1123
+ errors = [];
1124
+ _report = __typia_transform__validateReport._validateReport(errors);
1125
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || _report(true, {
1126
+ path: _path + "",
1127
+ expected: "Resources",
1128
+ value: input
1129
+ })) && input.map((elem, _index6) => (null !== elem || _report(true, {
1130
+ path: _path + "[" + _index6 + "]",
1131
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1132
+ value: elem
1133
+ })) && (undefined !== elem || _report(true, {
1134
+ path: _path + "[" + _index6 + "]",
1135
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1136
+ value: elem
1137
+ })) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(true, {
1138
+ path: _path + "[" + _index6 + "]",
1139
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1140
+ value: elem
1141
+ })) && _vu0(elem, _path + "[" + _index6 + "]", true) || _report(true, {
1142
+ path: _path + "[" + _index6 + "]",
1143
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1144
+ value: elem
1145
+ }))).every(flag => flag) || _report(true, {
1146
+ path: _path + "",
1147
+ expected: "Resources",
1148
+ value: input
1149
+ }))(input, "$input", true);
1150
+ const success = 0 === errors.length;
1151
+ return success ? {
1152
+ success,
1153
+ data: input
1154
+ } : {
1155
+ success,
1156
+ errors,
1157
+ data: input
1158
+ };
1159
+ }
1160
+ return {
1161
+ success: true,
1162
+ data: input
1163
+ };
1164
+ }); })();
1165
+ export const validateAuthentication = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io1(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1166
+ if (["docker"].some(prop => key === prop))
1167
+ return true;
1168
+ const value = input[key];
1169
+ if (undefined === value)
1170
+ return true;
1171
+ return false;
1172
+ })); const _io1 = (input, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.server || "string" === typeof input.server) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1173
+ if (["username", "password", "email", "server"].some(prop => key === prop))
1174
+ return true;
1175
+ const value = input[key];
1176
+ if (undefined === value)
1177
+ return true;
1178
+ return false;
1179
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
1180
+ path: _path + ".docker",
1181
+ expected: "(DockerAuth | undefined)",
1182
+ value: input.docker
1183
+ })) && _vo1(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
1184
+ path: _path + ".docker",
1185
+ expected: "(DockerAuth | undefined)",
1186
+ value: input.docker
1187
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1188
+ if (["docker"].some(prop => key === prop))
1189
+ return true;
1190
+ const value = input[key];
1191
+ if (undefined === value)
1192
+ return true;
1193
+ return _report(_exceptionable, {
1194
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1195
+ expected: "undefined",
1196
+ value: value,
1197
+ description: [
1198
+ `The property \`${key}\` is not defined in the object type.`,
1199
+ "",
1200
+ "Please remove the property next time."
1201
+ ].join("\n")
1202
+ });
1203
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
1204
+ path: _path + ".username",
1205
+ expected: "(string | undefined)",
1206
+ value: input.username
1207
+ }), undefined === input.password || "string" === typeof input.password || _report(_exceptionable, {
1208
+ path: _path + ".password",
1209
+ expected: "(string | undefined)",
1210
+ value: input.password
1211
+ }), undefined === input.email || "string" === typeof input.email || _report(_exceptionable, {
1212
+ path: _path + ".email",
1213
+ expected: "(string | undefined)",
1214
+ value: input.email
1215
+ }), undefined === input.server || "string" === typeof input.server || _report(_exceptionable, {
1216
+ path: _path + ".server",
1217
+ expected: "(string | undefined)",
1218
+ value: input.server
1219
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1220
+ if (["username", "password", "email", "server"].some(prop => key === prop))
1221
+ return true;
1222
+ const value = input[key];
1223
+ if (undefined === value)
1224
+ return true;
1225
+ return _report(_exceptionable, {
1226
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1227
+ expected: "undefined",
1228
+ value: value,
1229
+ description: [
1230
+ `The property \`${key}\` is not defined in the object type.`,
1231
+ "",
1232
+ "Please remove the property next time."
1233
+ ].join("\n")
1234
+ });
1235
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
1236
+ if (false === __is(input)) {
1237
+ errors = [];
1238
+ _report = __typia_transform__validateReport._validateReport(errors);
1239
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
1240
+ path: _path + "",
1241
+ expected: "Authentication",
1242
+ value: input
1243
+ })) && _vo0(input, _path + "", true) || _report(true, {
1244
+ path: _path + "",
1245
+ expected: "Authentication",
1246
+ value: input
1247
+ }))(input, "$input", true);
1248
+ const success = 0 === errors.length;
1249
+ return success ? {
1250
+ success,
1251
+ data: input
1252
+ } : {
1253
+ success,
1254
+ errors,
1255
+ data: input
1256
+ };
1257
+ }
1258
+ return {
1259
+ success: true,
1260
+ data: input
1261
+ };
1262
+ }); })();
1263
+ export const validateVariables = (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
1264
+ const value = input[key];
1265
+ if (undefined === value)
1266
+ return true;
1267
+ return "string" === typeof value;
1268
+ }); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1269
+ const value = input[key];
1270
+ if (undefined === value)
1271
+ return true;
1272
+ return "string" === typeof value || _report(_exceptionable, {
1273
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1274
+ expected: "string",
1275
+ value: value
1276
+ });
1277
+ }).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
1278
+ if (false === __is(input)) {
1279
+ errors = [];
1280
+ _report = __typia_transform__validateReport._validateReport(errors);
1281
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
1282
+ path: _path + "",
1283
+ expected: "Variables",
1284
+ value: input
1285
+ })) && _vo0(input, _path + "", true) || _report(true, {
1286
+ path: _path + "",
1287
+ expected: "Variables",
1288
+ value: input
1289
+ }))(input, "$input", true);
1290
+ const success = 0 === errors.length;
1291
+ return success ? {
1292
+ success,
1293
+ data: input
1294
+ } : {
1295
+ success,
1296
+ errors,
1297
+ data: input
1298
+ };
1299
+ }
1300
+ return {
1301
+ success: true,
1302
+ data: input
1303
+ };
1304
+ }); })();
1305
+ export const validateContainerRun = (() => { const _io0 = (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 && _io1(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) && ((() => {
1306
+ if (!Array.isArray(input.expose))
1307
+ return true;
1308
+ const numbers = new Set();
1309
+ const ranges = [];
1310
+ for (const el of input.expose) {
1311
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
1312
+ continue;
1313
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
1314
+ continue;
1315
+ const port = typeof el === "object" ? el.port : el;
1316
+ if (typeof port === "number") {
1317
+ if (numbers.has(port))
1318
+ return false;
1319
+ numbers.add(port);
1320
+ }
1321
+ else if (typeof port === "string") {
1322
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
1323
+ if (!match)
1324
+ return false;
1325
+ const start = Number(match[1]), end = Number(match[2]);
1326
+ for (const [rStart, rEnd] of ranges) {
1327
+ if (start <= rEnd && end >= rStart)
1328
+ return false;
1329
+ }
1330
+ ranges.push([start, end]);
1331
+ }
1332
+ }
1333
+ for (const port of numbers) {
1334
+ for (const [start, end] of ranges) {
1335
+ if (port >= start && port <= end)
1336
+ return false;
1337
+ }
1338
+ }
1339
+ return true;
1340
+ })() && 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) && _io7(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 && _io8(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) && _io16(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1341
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
1342
+ return true;
1343
+ const value = input[key];
1344
+ if (undefined === value)
1345
+ return true;
1346
+ return false;
1347
+ })); const _io1 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.dest && (2 === Object.keys(input).length || Object.keys(input).every(key => {
1348
+ if (["name", "dest"].some(prop => key === prop))
1349
+ return true;
1350
+ const value = input[key];
1351
+ if (undefined === value)
1352
+ return true;
1353
+ return false;
1354
+ })); const _io2 = (input, _exceptionable = true) => "string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__)) && (undefined === input.chunked || "boolean" === typeof input.chunked) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1355
+ if (["__spread__", "chunked"].some(prop => key === prop))
1356
+ return true;
1357
+ const value = input[key];
1358
+ if (undefined === value)
1359
+ return true;
1360
+ return false;
1361
+ })); const _io3 = (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 => {
1362
+ if (["port", "type", "health_checks"].some(prop => key === prop))
1363
+ return true;
1364
+ const value = input[key];
1365
+ if (undefined === value)
1366
+ return true;
1367
+ return false;
1368
+ })); const _io4 = (input, _exceptionable = true) => "http" === input.type && "string" === typeof input.path && ("GET" === input.method || "POST" === input.method || "PUT" === input.method || "DELETE" === input.method) && "number" === typeof input.expected_status && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io5(input.headers, true && _exceptionable)) && true && "boolean" === typeof input.continuous && (5 === Object.keys(input).length || Object.keys(input).every(key => {
1369
+ if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
1370
+ return true;
1371
+ const value = input[key];
1372
+ if (undefined === value)
1373
+ return true;
1374
+ return false;
1375
+ })); const _io5 = (input, _exceptionable = true) => Object.keys(input).every(key => {
1376
+ const value = input[key];
1377
+ if (undefined === value)
1378
+ return true;
1379
+ return "string" === typeof value;
1380
+ }); const _io6 = (input, _exceptionable = true) => "websocket" === input.type && "string" === typeof input.expected_response && "boolean" === typeof input.continuous && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1381
+ if (["type", "expected_response", "continuous"].some(prop => key === prop))
1382
+ return true;
1383
+ const value = input[key];
1384
+ if (undefined === value)
1385
+ return true;
1386
+ return false;
1387
+ })); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
1388
+ const value = input[key];
1389
+ if (undefined === value)
1390
+ return true;
1391
+ return "string" === typeof value;
1392
+ }); const _io8 = (input, _exceptionable = true) => "on-failure" === input.policy && (undefined === input.restart_tries || "number" === typeof input.restart_tries) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1393
+ if (["policy", "restart_tries"].some(prop => key === prop))
1394
+ return true;
1395
+ const value = input[key];
1396
+ if (undefined === value)
1397
+ return true;
1398
+ return false;
1399
+ })); const _io9 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index8) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io10(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
1400
+ if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
1401
+ return true;
1402
+ const value = input[key];
1403
+ if (undefined === value)
1404
+ return true;
1405
+ return false;
1406
+ })); const _io10 = (input, _exceptionable = true) => "string" === typeof input.REGION && "string" === typeof input.ACCESS_KEY_ID && "string" === typeof input.SECRET_ACCESS_KEY && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1407
+ if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
1408
+ return true;
1409
+ const value = input[key];
1410
+ if (undefined === value)
1411
+ return true;
1412
+ return false;
1413
+ })); const _io11 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && "string" === typeof input.bucket && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io10(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1414
+ if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
1415
+ return true;
1416
+ const value = input[key];
1417
+ if (undefined === value)
1418
+ return true;
1419
+ return false;
1420
+ })); const _io12 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index9) => "object" === typeof elem && null !== elem && _io13(elem, true && _exceptionable))) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.allowWrite || "boolean" === typeof input.allowWrite) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io10(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1421
+ if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
1422
+ return true;
1423
+ const value = input[key];
1424
+ if (undefined === value)
1425
+ return true;
1426
+ return false;
1427
+ })); const _io13 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index10) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
1428
+ if (["url", "files"].some(prop => key === prop))
1429
+ return true;
1430
+ const value = input[key];
1431
+ if (undefined === value)
1432
+ return true;
1433
+ return false;
1434
+ })); const _io14 = (input, _exceptionable = true) => "HF" === input.type && "string" === typeof input.target && "string" === typeof input.repo && (undefined === input.revision || "string" === typeof input.revision) && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index11) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1435
+ if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
1436
+ return true;
1437
+ const value = input[key];
1438
+ if (undefined === value)
1439
+ return true;
1440
+ return false;
1441
+ })); const _io15 = (input, _exceptionable = true) => "Ollama" === input.type && "string" === typeof input.model && (undefined === input.target || "string" === typeof input.target) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
1442
+ if (["type", "model", "target"].some(prop => key === prop))
1443
+ return true;
1444
+ const value = input[key];
1445
+ if (undefined === value)
1446
+ return true;
1447
+ return false;
1448
+ })); const _io16 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io17(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1449
+ if (["docker"].some(prop => key === prop))
1450
+ return true;
1451
+ const value = input[key];
1452
+ if (undefined === value)
1453
+ return true;
1454
+ return false;
1455
+ })); const _io17 = (input, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.server || "string" === typeof input.server) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
1456
+ if (["username", "password", "email", "server"].some(prop => key === prop))
1457
+ return true;
1458
+ const value = input[key];
1459
+ if (undefined === value)
1460
+ return true;
1461
+ return false;
1462
+ })); const _iu0 = (input, _exceptionable = true) => (() => {
1463
+ if ("http" === input.type)
1464
+ return _io4(input, true && _exceptionable);
1465
+ else if ("websocket" === input.type)
1466
+ return _io6(input, true && _exceptionable);
1467
+ else
1468
+ return false;
1469
+ })(); const _iu1 = (input, _exceptionable = true) => (() => {
1470
+ if (undefined !== input.__spread__)
1471
+ return _io2(input, true && _exceptionable);
1472
+ else if (undefined !== input.port)
1473
+ return _io3(input, true && _exceptionable);
1474
+ else
1475
+ return false;
1476
+ })(); const _iu2 = (input, _exceptionable = true) => (() => {
1477
+ if (undefined !== input.__spread__)
1478
+ return _io2(input, true && _exceptionable);
1479
+ else if (undefined !== input.bucket)
1480
+ return _io11(input, true && _exceptionable);
1481
+ else if (undefined !== input.buckets)
1482
+ return _io12(input, true && _exceptionable);
1483
+ else if ("HF" === input.type)
1484
+ return _io14(input, true && _exceptionable);
1485
+ else if ("Ollama" === input.type)
1486
+ return _io15(input, true && _exceptionable);
1487
+ else
1488
+ return _io9(input, true && _exceptionable);
1489
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
1490
+ path: _path + ".image",
1491
+ expected: "string",
1492
+ value: input.image
1493
+ }), (null !== input.aliases || _report(_exceptionable, {
1494
+ path: _path + ".aliases",
1495
+ expected: "(Aliases | string | undefined)",
1496
+ value: input.aliases
1497
+ })) && (undefined === input.aliases || "string" === typeof input.aliases || (Array.isArray(input.aliases) || _report(_exceptionable, {
1498
+ path: _path + ".aliases",
1499
+ expected: "(Aliases | string | undefined)",
1500
+ value: input.aliases
1501
+ })) && input.aliases.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
1502
+ path: _path + ".aliases[" + _index12 + "]",
1503
+ expected: "string",
1504
+ value: elem
1505
+ })).every(flag => flag) || _report(_exceptionable, {
1506
+ path: _path + ".aliases",
1507
+ expected: "(Aliases | string | undefined)",
1508
+ value: input.aliases
1509
+ })), (null !== input.cmd || _report(_exceptionable, {
1510
+ path: _path + ".cmd",
1511
+ expected: "(CMDArray | string | undefined)",
1512
+ value: input.cmd
1513
+ })) && (undefined === input.cmd || "string" === typeof input.cmd || (Array.isArray(input.cmd) || _report(_exceptionable, {
1514
+ path: _path + ".cmd",
1515
+ expected: "(CMDArray | string | undefined)",
1516
+ value: input.cmd
1517
+ })) && input.cmd.map((elem, _index13) => "string" === typeof elem || _report(_exceptionable, {
1518
+ path: _path + ".cmd[" + _index13 + "]",
1519
+ expected: "string",
1520
+ value: elem
1521
+ })).every(flag => flag) || _report(_exceptionable, {
1522
+ path: _path + ".cmd",
1523
+ expected: "(CMDArray | string | undefined)",
1524
+ value: input.cmd
1525
+ })), undefined === input.volumes || (Array.isArray(input.volumes) || _report(_exceptionable, {
1526
+ path: _path + ".volumes",
1527
+ expected: "(Array<Volume> | undefined)",
1528
+ value: input.volumes
1529
+ })) && input.volumes.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1530
+ path: _path + ".volumes[" + _index14 + "]",
1531
+ expected: "Volume",
1532
+ value: elem
1533
+ })) && _vo1(elem, _path + ".volumes[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
1534
+ path: _path + ".volumes[" + _index14 + "]",
1535
+ expected: "Volume",
1536
+ value: elem
1537
+ })).every(flag => flag) || _report(_exceptionable, {
1538
+ path: _path + ".volumes",
1539
+ expected: "(Array<Volume> | undefined)",
1540
+ value: input.volumes
1541
+ }), (null !== input.expose || _report(_exceptionable, {
1542
+ path: _path + ".expose",
1543
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
1544
+ value: input.expose
1545
+ })) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || _report(_exceptionable, {
1546
+ path: _path + ".expose",
1547
+ expected: "string & TagBase<__type>",
1548
+ value: input.expose
1549
+ })) || (Array.isArray(input.expose) && (((() => {
1550
+ if (!Array.isArray(input.expose))
1551
+ return true;
1552
+ const numbers = new Set();
1553
+ const ranges = [];
1554
+ for (const el of input.expose) {
1555
+ if (typeof el === "string" && /^%%(ops|global).[^%]+%%$/.test(el))
1556
+ continue;
1557
+ if (el && typeof el === "object" && !Array.isArray(el) && el.__spread__)
1558
+ continue;
1559
+ const port = typeof el === "object" ? el.port : el;
1560
+ if (typeof port === "number") {
1561
+ if (numbers.has(port))
1562
+ return false;
1563
+ numbers.add(port);
1564
+ }
1565
+ else if (typeof port === "string") {
1566
+ const match = /^([0-9]+)-([0-9]+)$/.exec(port);
1567
+ if (!match)
1568
+ return false;
1569
+ const start = Number(match[1]), end = Number(match[2]);
1570
+ for (const [rStart, rEnd] of ranges) {
1571
+ if (start <= rEnd && end >= rStart)
1572
+ return false;
1573
+ }
1574
+ ranges.push([start, end]);
1575
+ }
1576
+ }
1577
+ for (const port of numbers) {
1578
+ for (const [start, end] of ranges) {
1579
+ if (port >= start && port <= end)
1580
+ return false;
1581
+ }
1582
+ }
1583
+ return true;
1584
+ })() || _report(_exceptionable, {
1585
+ path: _path + ".expose",
1586
+ expected: "Array<> & TagBase<__type>",
1587
+ value: input.expose
1588
+ })) && input.expose.map((elem, _index15) => (null !== elem || _report(_exceptionable, {
1589
+ path: _path + ".expose[" + _index15 + "]",
1590
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
1591
+ value: elem
1592
+ })) && (undefined !== elem || _report(_exceptionable, {
1593
+ path: _path + ".expose[" + _index15 + "]",
1594
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
1595
+ value: elem
1596
+ })) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
1597
+ path: _path + ".expose[" + _index15 + "]",
1598
+ expected: "string & TagBase<__type>",
1599
+ value: elem
1600
+ })) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1601
+ path: _path + ".expose[" + _index15 + "]",
1602
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
1603
+ value: elem
1604
+ })) && _vu1(elem, _path + ".expose[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
1605
+ path: _path + ".expose[" + _index15 + "]",
1606
+ expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
1607
+ value: elem
1608
+ }))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
1609
+ path: _path + ".expose",
1610
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
1611
+ value: input.expose
1612
+ })) || _report(_exceptionable, {
1613
+ path: _path + ".expose",
1614
+ expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
1615
+ value: input.expose
1616
+ })), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
1617
+ path: _path + ".gpu",
1618
+ expected: "(boolean | undefined)",
1619
+ value: input.gpu
1620
+ }), undefined === input.work_dir || "string" === typeof input.work_dir || _report(_exceptionable, {
1621
+ path: _path + ".work_dir",
1622
+ expected: "(string | undefined)",
1623
+ value: input.work_dir
1624
+ }), (null !== input.entrypoint || _report(_exceptionable, {
1625
+ path: _path + ".entrypoint",
1626
+ expected: "(CMDArray | string | undefined)",
1627
+ value: input.entrypoint
1628
+ })) && (undefined === input.entrypoint || "string" === typeof input.entrypoint || (Array.isArray(input.entrypoint) || _report(_exceptionable, {
1629
+ path: _path + ".entrypoint",
1630
+ expected: "(CMDArray | string | undefined)",
1631
+ value: input.entrypoint
1632
+ })) && input.entrypoint.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
1633
+ path: _path + ".entrypoint[" + _index16 + "]",
1634
+ expected: "string",
1635
+ value: elem
1636
+ })).every(flag => flag) || _report(_exceptionable, {
1637
+ path: _path + ".entrypoint",
1638
+ expected: "(CMDArray | string | undefined)",
1639
+ value: input.entrypoint
1640
+ })), undefined === input.env || ("object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) || _report(_exceptionable, {
1641
+ path: _path + ".env",
1642
+ expected: "(Env | undefined)",
1643
+ value: input.env
1644
+ })) && _vo7(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
1645
+ path: _path + ".env",
1646
+ expected: "(Env | undefined)",
1647
+ value: input.env
1648
+ }), (null !== input.restart_policy || _report(_exceptionable, {
1649
+ path: _path + ".restart_policy",
1650
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
1651
+ value: input.restart_policy
1652
+ })) && (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, {
1653
+ path: _path + ".restart_policy",
1654
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
1655
+ value: input.restart_policy
1656
+ })) && _vo8(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
1657
+ path: _path + ".restart_policy",
1658
+ expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
1659
+ value: input.restart_policy
1660
+ })), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
1661
+ path: _path + "[\"private\"]",
1662
+ expected: "(boolean | undefined)",
1663
+ value: input["private"]
1664
+ }), undefined === input.resources || (Array.isArray(input.resources) || _report(_exceptionable, {
1665
+ path: _path + ".resources",
1666
+ expected: "(Resources | undefined)",
1667
+ value: input.resources
1668
+ })) && input.resources.map((elem, _index17) => (null !== elem || _report(_exceptionable, {
1669
+ path: _path + ".resources[" + _index17 + "]",
1670
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1671
+ value: elem
1672
+ })) && (undefined !== elem || _report(_exceptionable, {
1673
+ path: _path + ".resources[" + _index17 + "]",
1674
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1675
+ value: elem
1676
+ })) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1677
+ path: _path + ".resources[" + _index17 + "]",
1678
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1679
+ value: elem
1680
+ })) && _vu2(elem, _path + ".resources[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
1681
+ path: _path + ".resources[" + _index17 + "]",
1682
+ expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
1683
+ value: elem
1684
+ }))).every(flag => flag) || _report(_exceptionable, {
1685
+ path: _path + ".resources",
1686
+ expected: "(Resources | undefined)",
1687
+ value: input.resources
1688
+ }), undefined === input.authentication || ("object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) || _report(_exceptionable, {
1689
+ path: _path + ".authentication",
1690
+ expected: "(Authentication | undefined)",
1691
+ value: input.authentication
1692
+ })) && _vo16(input.authentication, _path + ".authentication", true && _exceptionable) || _report(_exceptionable, {
1693
+ path: _path + ".authentication",
1694
+ expected: "(Authentication | undefined)",
1695
+ value: input.authentication
1696
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1697
+ if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
1698
+ return true;
1699
+ const value = input[key];
1700
+ if (undefined === value)
1701
+ return true;
1702
+ return _report(_exceptionable, {
1703
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1704
+ expected: "undefined",
1705
+ value: value,
1706
+ description: [
1707
+ `The property \`${key}\` is not defined in the object type.`,
1708
+ "",
1709
+ "Please remove the property next time."
1710
+ ].join("\n")
1711
+ });
1712
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
1713
+ path: _path + ".name",
1714
+ expected: "string",
1715
+ value: input.name
1716
+ }), "string" === typeof input.dest || _report(_exceptionable, {
1717
+ path: _path + ".dest",
1718
+ expected: "string",
1719
+ value: input.dest
1720
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1721
+ if (["name", "dest"].some(prop => key === prop))
1722
+ return true;
1723
+ const value = input[key];
1724
+ if (undefined === value)
1725
+ return true;
1726
+ return _report(_exceptionable, {
1727
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1728
+ expected: "undefined",
1729
+ value: value,
1730
+ description: [
1731
+ `The property \`${key}\` is not defined in the object type.`,
1732
+ "",
1733
+ "Please remove the property next time."
1734
+ ].join("\n")
1735
+ });
1736
+ }).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
1737
+ path: _path + ".__spread__",
1738
+ expected: "string & TagBase<__type>",
1739
+ value: input.__spread__
1740
+ })) || _report(_exceptionable, {
1741
+ path: _path + ".__spread__",
1742
+ expected: "(string & TagBase<__type>)",
1743
+ value: input.__spread__
1744
+ }), undefined === input.chunked || "boolean" === typeof input.chunked || _report(_exceptionable, {
1745
+ path: _path + ".chunked",
1746
+ expected: "(boolean | undefined)",
1747
+ value: input.chunked
1748
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1749
+ if (["__spread__", "chunked"].some(prop => key === prop))
1750
+ return true;
1751
+ const value = input[key];
1752
+ if (undefined === value)
1753
+ return true;
1754
+ return _report(_exceptionable, {
1755
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1756
+ expected: "undefined",
1757
+ value: value,
1758
+ description: [
1759
+ `The property \`${key}\` is not defined in the object type.`,
1760
+ "",
1761
+ "Please remove the property next time."
1762
+ ].join("\n")
1763
+ });
1764
+ }).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
1765
+ path: _path + ".port",
1766
+ expected: "number",
1767
+ value: input.port
1768
+ }), undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type || _report(_exceptionable, {
1769
+ path: _path + ".type",
1770
+ expected: "(\"api\" | \"none\" | \"web\" | \"webapi\" | \"websocket\" | undefined)",
1771
+ value: input.type
1772
+ }), undefined === input.health_checks || (Array.isArray(input.health_checks) || _report(_exceptionable, {
1773
+ path: _path + ".health_checks",
1774
+ expected: "(Array<HealthCheck> | undefined)",
1775
+ value: input.health_checks
1776
+ })) && input.health_checks.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1777
+ path: _path + ".health_checks[" + _index18 + "]",
1778
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
1779
+ value: elem
1780
+ })) && _vu0(elem, _path + ".health_checks[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
1781
+ path: _path + ".health_checks[" + _index18 + "]",
1782
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
1783
+ value: elem
1784
+ })).every(flag => flag) || _report(_exceptionable, {
1785
+ path: _path + ".health_checks",
1786
+ expected: "(Array<HealthCheck> | undefined)",
1787
+ value: input.health_checks
1788
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1789
+ if (["port", "type", "health_checks"].some(prop => key === prop))
1790
+ return true;
1791
+ const value = input[key];
1792
+ if (undefined === value)
1793
+ return true;
1794
+ return _report(_exceptionable, {
1795
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1796
+ expected: "undefined",
1797
+ value: value,
1798
+ description: [
1799
+ `The property \`${key}\` is not defined in the object type.`,
1800
+ "",
1801
+ "Please remove the property next time."
1802
+ ].join("\n")
1803
+ });
1804
+ }).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["http" === input.type || _report(_exceptionable, {
1805
+ path: _path + ".type",
1806
+ expected: "\"http\"",
1807
+ value: input.type
1808
+ }), "string" === typeof input.path || _report(_exceptionable, {
1809
+ path: _path + ".path",
1810
+ expected: "string",
1811
+ value: input.path
1812
+ }), "GET" === input.method || "POST" === input.method || "PUT" === input.method || "DELETE" === input.method || _report(_exceptionable, {
1813
+ path: _path + ".method",
1814
+ expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
1815
+ value: input.method
1816
+ }), "number" === typeof input.expected_status || _report(_exceptionable, {
1817
+ path: _path + ".expected_status",
1818
+ expected: "number",
1819
+ value: input.expected_status
1820
+ }), undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || _report(_exceptionable, {
1821
+ path: _path + ".headers",
1822
+ expected: "(Record<string, string> | undefined)",
1823
+ value: input.headers
1824
+ })) && _vo5(input.headers, _path + ".headers", true && _exceptionable) || _report(_exceptionable, {
1825
+ path: _path + ".headers",
1826
+ expected: "(Record<string, string> | undefined)",
1827
+ value: input.headers
1828
+ }), true, "boolean" === typeof input.continuous || _report(_exceptionable, {
1829
+ path: _path + ".continuous",
1830
+ expected: "boolean",
1831
+ value: input.continuous
1832
+ }), 5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1833
+ if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
1834
+ return true;
1835
+ const value = input[key];
1836
+ if (undefined === value)
1837
+ return true;
1838
+ return _report(_exceptionable, {
1839
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1840
+ expected: "undefined",
1841
+ value: value,
1842
+ description: [
1843
+ `The property \`${key}\` is not defined in the object type.`,
1844
+ "",
1845
+ "Please remove the property next time."
1846
+ ].join("\n")
1847
+ });
1848
+ }).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1849
+ const value = input[key];
1850
+ if (undefined === value)
1851
+ return true;
1852
+ return "string" === typeof value || _report(_exceptionable, {
1853
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1854
+ expected: "string",
1855
+ value: value
1856
+ });
1857
+ }).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["websocket" === input.type || _report(_exceptionable, {
1858
+ path: _path + ".type",
1859
+ expected: "\"websocket\"",
1860
+ value: input.type
1861
+ }), "string" === typeof input.expected_response || _report(_exceptionable, {
1862
+ path: _path + ".expected_response",
1863
+ expected: "string",
1864
+ value: input.expected_response
1865
+ }), "boolean" === typeof input.continuous || _report(_exceptionable, {
1866
+ path: _path + ".continuous",
1867
+ expected: "boolean",
1868
+ value: input.continuous
1869
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1870
+ if (["type", "expected_response", "continuous"].some(prop => key === prop))
1871
+ return true;
1872
+ const value = input[key];
1873
+ if (undefined === value)
1874
+ return true;
1875
+ return _report(_exceptionable, {
1876
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1877
+ expected: "undefined",
1878
+ value: value,
1879
+ description: [
1880
+ `The property \`${key}\` is not defined in the object type.`,
1881
+ "",
1882
+ "Please remove the property next time."
1883
+ ].join("\n")
1884
+ });
1885
+ }).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1886
+ const value = input[key];
1887
+ if (undefined === value)
1888
+ return true;
1889
+ return "string" === typeof value || _report(_exceptionable, {
1890
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1891
+ expected: "string",
1892
+ value: value
1893
+ });
1894
+ }).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["on-failure" === input.policy || _report(_exceptionable, {
1895
+ path: _path + ".policy",
1896
+ expected: "\"on-failure\"",
1897
+ value: input.policy
1898
+ }), undefined === input.restart_tries || "number" === typeof input.restart_tries || _report(_exceptionable, {
1899
+ path: _path + ".restart_tries",
1900
+ expected: "(number | undefined)",
1901
+ value: input.restart_tries
1902
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1903
+ if (["policy", "restart_tries"].some(prop => key === prop))
1904
+ return true;
1905
+ const value = input[key];
1906
+ if (undefined === value)
1907
+ return true;
1908
+ return _report(_exceptionable, {
1909
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1910
+ expected: "undefined",
1911
+ value: value,
1912
+ description: [
1913
+ `The property \`${key}\` is not defined in the object type.`,
1914
+ "",
1915
+ "Please remove the property next time."
1916
+ ].join("\n")
1917
+ });
1918
+ }).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
1919
+ path: _path + ".type",
1920
+ expected: "\"S3\"",
1921
+ value: input.type
1922
+ }), "string" === typeof input.target || _report(_exceptionable, {
1923
+ path: _path + ".target",
1924
+ expected: "string",
1925
+ value: input.target
1926
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
1927
+ path: _path + ".url",
1928
+ expected: "(string | undefined)",
1929
+ value: input.url
1930
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
1931
+ path: _path + ".allowWrite",
1932
+ expected: "(boolean | undefined)",
1933
+ value: input.allowWrite
1934
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
1935
+ path: _path + ".files",
1936
+ expected: "(Array<string> | undefined)",
1937
+ value: input.files
1938
+ })) && input.files.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
1939
+ path: _path + ".files[" + _index19 + "]",
1940
+ expected: "string",
1941
+ value: elem
1942
+ })).every(flag => flag) || _report(_exceptionable, {
1943
+ path: _path + ".files",
1944
+ expected: "(Array<string> | undefined)",
1945
+ value: input.files
1946
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
1947
+ path: _path + ".IAM",
1948
+ expected: "(S3Auth | undefined)",
1949
+ value: input.IAM
1950
+ })) && _vo10(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
1951
+ path: _path + ".IAM",
1952
+ expected: "(S3Auth | undefined)",
1953
+ value: input.IAM
1954
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1955
+ if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
1956
+ return true;
1957
+ const value = input[key];
1958
+ if (undefined === value)
1959
+ return true;
1960
+ return _report(_exceptionable, {
1961
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1962
+ expected: "undefined",
1963
+ value: value,
1964
+ description: [
1965
+ `The property \`${key}\` is not defined in the object type.`,
1966
+ "",
1967
+ "Please remove the property next time."
1968
+ ].join("\n")
1969
+ });
1970
+ }).every(flag => flag))].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
1971
+ path: _path + ".REGION",
1972
+ expected: "string",
1973
+ value: input.REGION
1974
+ }), "string" === typeof input.ACCESS_KEY_ID || _report(_exceptionable, {
1975
+ path: _path + ".ACCESS_KEY_ID",
1976
+ expected: "string",
1977
+ value: input.ACCESS_KEY_ID
1978
+ }), "string" === typeof input.SECRET_ACCESS_KEY || _report(_exceptionable, {
1979
+ path: _path + ".SECRET_ACCESS_KEY",
1980
+ expected: "string",
1981
+ value: input.SECRET_ACCESS_KEY
1982
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
1983
+ if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
1984
+ return true;
1985
+ const value = input[key];
1986
+ if (undefined === value)
1987
+ return true;
1988
+ return _report(_exceptionable, {
1989
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
1990
+ expected: "undefined",
1991
+ value: value,
1992
+ description: [
1993
+ `The property \`${key}\` is not defined in the object type.`,
1994
+ "",
1995
+ "Please remove the property next time."
1996
+ ].join("\n")
1997
+ });
1998
+ }).every(flag => flag))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
1999
+ path: _path + ".type",
2000
+ expected: "\"S3\"",
2001
+ value: input.type
2002
+ }), "string" === typeof input.target || _report(_exceptionable, {
2003
+ path: _path + ".target",
2004
+ expected: "string",
2005
+ value: input.target
2006
+ }), "string" === typeof input.bucket || _report(_exceptionable, {
2007
+ path: _path + ".bucket",
2008
+ expected: "string",
2009
+ value: input.bucket
2010
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
2011
+ path: _path + ".url",
2012
+ expected: "(string | undefined)",
2013
+ value: input.url
2014
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
2015
+ path: _path + ".allowWrite",
2016
+ expected: "(boolean | undefined)",
2017
+ value: input.allowWrite
2018
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
2019
+ path: _path + ".IAM",
2020
+ expected: "(S3Auth | undefined)",
2021
+ value: input.IAM
2022
+ })) && _vo10(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
2023
+ path: _path + ".IAM",
2024
+ expected: "(S3Auth | undefined)",
2025
+ value: input.IAM
2026
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2027
+ if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
2028
+ return true;
2029
+ const value = input[key];
2030
+ if (undefined === value)
2031
+ return true;
2032
+ return _report(_exceptionable, {
2033
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2034
+ expected: "undefined",
2035
+ value: value,
2036
+ description: [
2037
+ `The property \`${key}\` is not defined in the object type.`,
2038
+ "",
2039
+ "Please remove the property next time."
2040
+ ].join("\n")
2041
+ });
2042
+ }).every(flag => flag))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
2043
+ path: _path + ".type",
2044
+ expected: "\"S3\"",
2045
+ value: input.type
2046
+ }), "string" === typeof input.target || _report(_exceptionable, {
2047
+ path: _path + ".target",
2048
+ expected: "string",
2049
+ value: input.target
2050
+ }), (Array.isArray(input.buckets) || _report(_exceptionable, {
2051
+ path: _path + ".buckets",
2052
+ expected: "Array<__type>",
2053
+ value: input.buckets
2054
+ })) && input.buckets.map((elem, _index20) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2055
+ path: _path + ".buckets[" + _index20 + "]",
2056
+ expected: "__type.o5",
2057
+ value: elem
2058
+ })) && _vo13(elem, _path + ".buckets[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
2059
+ path: _path + ".buckets[" + _index20 + "]",
2060
+ expected: "__type.o5",
2061
+ value: elem
2062
+ })).every(flag => flag) || _report(_exceptionable, {
2063
+ path: _path + ".buckets",
2064
+ expected: "Array<__type>",
2065
+ value: input.buckets
2066
+ }), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
2067
+ path: _path + ".url",
2068
+ expected: "(string | undefined)",
2069
+ value: input.url
2070
+ }), undefined === input.allowWrite || "boolean" === typeof input.allowWrite || _report(_exceptionable, {
2071
+ path: _path + ".allowWrite",
2072
+ expected: "(boolean | undefined)",
2073
+ value: input.allowWrite
2074
+ }), undefined === input.IAM || ("object" === typeof input.IAM && null !== input.IAM || _report(_exceptionable, {
2075
+ path: _path + ".IAM",
2076
+ expected: "(S3Auth | undefined)",
2077
+ value: input.IAM
2078
+ })) && _vo10(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
2079
+ path: _path + ".IAM",
2080
+ expected: "(S3Auth | undefined)",
2081
+ value: input.IAM
2082
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2083
+ if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
2084
+ return true;
2085
+ const value = input[key];
2086
+ if (undefined === value)
2087
+ return true;
2088
+ return _report(_exceptionable, {
2089
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2090
+ expected: "undefined",
2091
+ value: value,
2092
+ description: [
2093
+ `The property \`${key}\` is not defined in the object type.`,
2094
+ "",
2095
+ "Please remove the property next time."
2096
+ ].join("\n")
2097
+ });
2098
+ }).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
2099
+ path: _path + ".url",
2100
+ expected: "string",
2101
+ value: input.url
2102
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
2103
+ path: _path + ".files",
2104
+ expected: "(Array<string> | undefined)",
2105
+ value: input.files
2106
+ })) && input.files.map((elem, _index21) => "string" === typeof elem || _report(_exceptionable, {
2107
+ path: _path + ".files[" + _index21 + "]",
2108
+ expected: "string",
2109
+ value: elem
2110
+ })).every(flag => flag) || _report(_exceptionable, {
2111
+ path: _path + ".files",
2112
+ expected: "(Array<string> | undefined)",
2113
+ value: input.files
2114
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2115
+ if (["url", "files"].some(prop => key === prop))
2116
+ return true;
2117
+ const value = input[key];
2118
+ if (undefined === value)
2119
+ return true;
2120
+ return _report(_exceptionable, {
2121
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2122
+ expected: "undefined",
2123
+ value: value,
2124
+ description: [
2125
+ `The property \`${key}\` is not defined in the object type.`,
2126
+ "",
2127
+ "Please remove the property next time."
2128
+ ].join("\n")
2129
+ });
2130
+ }).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
2131
+ path: _path + ".type",
2132
+ expected: "\"HF\"",
2133
+ value: input.type
2134
+ }), "string" === typeof input.target || _report(_exceptionable, {
2135
+ path: _path + ".target",
2136
+ expected: "string",
2137
+ value: input.target
2138
+ }), "string" === typeof input.repo || _report(_exceptionable, {
2139
+ path: _path + ".repo",
2140
+ expected: "string",
2141
+ value: input.repo
2142
+ }), undefined === input.revision || "string" === typeof input.revision || _report(_exceptionable, {
2143
+ path: _path + ".revision",
2144
+ expected: "(string | undefined)",
2145
+ value: input.revision
2146
+ }), undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
2147
+ path: _path + ".files",
2148
+ expected: "(Array<string> | undefined)",
2149
+ value: input.files
2150
+ })) && input.files.map((elem, _index22) => "string" === typeof elem || _report(_exceptionable, {
2151
+ path: _path + ".files[" + _index22 + "]",
2152
+ expected: "string",
2153
+ value: elem
2154
+ })).every(flag => flag) || _report(_exceptionable, {
2155
+ path: _path + ".files",
2156
+ expected: "(Array<string> | undefined)",
2157
+ value: input.files
2158
+ }), undefined === input.accessToken || "string" === typeof input.accessToken || _report(_exceptionable, {
2159
+ path: _path + ".accessToken",
2160
+ expected: "(string | undefined)",
2161
+ value: input.accessToken
2162
+ }), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2163
+ if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
2164
+ return true;
2165
+ const value = input[key];
2166
+ if (undefined === value)
2167
+ return true;
2168
+ return _report(_exceptionable, {
2169
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2170
+ expected: "undefined",
2171
+ value: value,
2172
+ description: [
2173
+ `The property \`${key}\` is not defined in the object type.`,
2174
+ "",
2175
+ "Please remove the property next time."
2176
+ ].join("\n")
2177
+ });
2178
+ }).every(flag => flag))].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
2179
+ path: _path + ".type",
2180
+ expected: "\"Ollama\"",
2181
+ value: input.type
2182
+ }), "string" === typeof input.model || _report(_exceptionable, {
2183
+ path: _path + ".model",
2184
+ expected: "string",
2185
+ value: input.model
2186
+ }), undefined === input.target || "string" === typeof input.target || _report(_exceptionable, {
2187
+ path: _path + ".target",
2188
+ expected: "(string | undefined)",
2189
+ value: input.target
2190
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2191
+ if (["type", "model", "target"].some(prop => key === prop))
2192
+ return true;
2193
+ const value = input[key];
2194
+ if (undefined === value)
2195
+ return true;
2196
+ return _report(_exceptionable, {
2197
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2198
+ expected: "undefined",
2199
+ value: value,
2200
+ description: [
2201
+ `The property \`${key}\` is not defined in the object type.`,
2202
+ "",
2203
+ "Please remove the property next time."
2204
+ ].join("\n")
2205
+ });
2206
+ }).every(flag => flag))].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
2207
+ path: _path + ".docker",
2208
+ expected: "(DockerAuth | undefined)",
2209
+ value: input.docker
2210
+ })) && _vo17(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
2211
+ path: _path + ".docker",
2212
+ expected: "(DockerAuth | undefined)",
2213
+ value: input.docker
2214
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2215
+ if (["docker"].some(prop => key === prop))
2216
+ return true;
2217
+ const value = input[key];
2218
+ if (undefined === value)
2219
+ return true;
2220
+ return _report(_exceptionable, {
2221
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2222
+ expected: "undefined",
2223
+ value: value,
2224
+ description: [
2225
+ `The property \`${key}\` is not defined in the object type.`,
2226
+ "",
2227
+ "Please remove the property next time."
2228
+ ].join("\n")
2229
+ });
2230
+ }).every(flag => flag))].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
2231
+ path: _path + ".username",
2232
+ expected: "(string | undefined)",
2233
+ value: input.username
2234
+ }), undefined === input.password || "string" === typeof input.password || _report(_exceptionable, {
2235
+ path: _path + ".password",
2236
+ expected: "(string | undefined)",
2237
+ value: input.password
2238
+ }), undefined === input.email || "string" === typeof input.email || _report(_exceptionable, {
2239
+ path: _path + ".email",
2240
+ expected: "(string | undefined)",
2241
+ value: input.email
2242
+ }), undefined === input.server || "string" === typeof input.server || _report(_exceptionable, {
2243
+ path: _path + ".server",
2244
+ expected: "(string | undefined)",
2245
+ value: input.server
2246
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2247
+ if (["username", "password", "email", "server"].some(prop => key === prop))
2248
+ return true;
2249
+ const value = input[key];
2250
+ if (undefined === value)
2251
+ return true;
2252
+ return _report(_exceptionable, {
2253
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2254
+ expected: "undefined",
2255
+ value: value,
2256
+ description: [
2257
+ `The property \`${key}\` is not defined in the object type.`,
2258
+ "",
2259
+ "Please remove the property next time."
2260
+ ].join("\n")
2261
+ });
2262
+ }).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
2263
+ if ("http" === input.type)
2264
+ return _vo4(input, _path, true && _exceptionable);
2265
+ else if ("websocket" === input.type)
2266
+ return _vo6(input, _path, true && _exceptionable);
2267
+ else
2268
+ return _report(_exceptionable, {
2269
+ path: _path,
2270
+ expected: "(HttpHealthCheck | WebSocketHealthCheck)",
2271
+ value: input
2272
+ });
2273
+ })(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
2274
+ if (undefined !== input.__spread__)
2275
+ return _vo2(input, _path, true && _exceptionable);
2276
+ else if (undefined !== input.port)
2277
+ return _vo3(input, _path, true && _exceptionable);
2278
+ else
2279
+ return _report(_exceptionable, {
2280
+ path: _path,
2281
+ expected: "(__type | ExposedPort)",
2282
+ value: input
2283
+ });
2284
+ })(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
2285
+ if (undefined !== input.__spread__)
2286
+ return _vo2(input, _path, true && _exceptionable);
2287
+ else if (undefined !== input.bucket)
2288
+ return _vo11(input, _path, true && _exceptionable);
2289
+ else if (undefined !== input.buckets)
2290
+ return _vo12(input, _path, true && _exceptionable);
2291
+ else if ("HF" === input.type)
2292
+ return _vo14(input, _path, true && _exceptionable);
2293
+ else if ("Ollama" === input.type)
2294
+ return _vo15(input, _path, true && _exceptionable);
2295
+ else
2296
+ return _vo9(input, _path, true && _exceptionable);
2297
+ })(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
2298
+ if (false === __is(input)) {
2299
+ errors = [];
2300
+ _report = __typia_transform__validateReport._validateReport(errors);
2301
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
2302
+ path: _path + "",
2303
+ expected: "ContainerRun",
2304
+ value: input
2305
+ })) && _vo0(input, _path + "", true) || _report(true, {
2306
+ path: _path + "",
2307
+ expected: "ContainerRun",
2308
+ value: input
2309
+ }))(input, "$input", true);
2310
+ const success = 0 === errors.length;
2311
+ return success ? {
2312
+ success,
2313
+ data: input
2314
+ } : {
2315
+ success,
2316
+ errors,
2317
+ data: input
2318
+ };
2319
+ }
2320
+ return {
2321
+ success: true,
2322
+ data: input
2323
+ };
2324
+ }); })();
2325
+ export const validateContainerCreateVolume = (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2326
+ if (["name"].some(prop => key === prop))
2327
+ return true;
2328
+ const value = input[key];
2329
+ if (undefined === value)
2330
+ return true;
2331
+ return false;
2332
+ })); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
2333
+ path: _path + ".name",
2334
+ expected: "string",
2335
+ value: input.name
2336
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2337
+ if (["name"].some(prop => key === prop))
2338
+ return true;
2339
+ const value = input[key];
2340
+ if (undefined === value)
2341
+ return true;
2342
+ return _report(_exceptionable, {
2343
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2344
+ expected: "undefined",
2345
+ value: value,
2346
+ description: [
2347
+ `The property \`${key}\` is not defined in the object type.`,
2348
+ "",
2349
+ "Please remove the property next time."
2350
+ ].join("\n")
2351
+ });
2352
+ }).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
2353
+ if (false === __is(input)) {
2354
+ errors = [];
2355
+ _report = __typia_transform__validateReport._validateReport(errors);
2356
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
2357
+ path: _path + "",
2358
+ expected: "ContainerCreateVolume",
2359
+ value: input
2360
+ })) && _vo0(input, _path + "", true) || _report(true, {
2361
+ path: _path + "",
2362
+ expected: "ContainerCreateVolume",
2363
+ value: input
2364
+ }))(input, "$input", true);
2365
+ const success = 0 === errors.length;
2366
+ return success ? {
2367
+ success,
2368
+ data: input
2369
+ } : {
2370
+ success,
2371
+ errors,
2372
+ data: input
2373
+ };
2374
+ }
2375
+ return {
2376
+ success: true,
2377
+ data: input
2378
+ };
2379
+ }); })();
15
2380
  //# sourceMappingURL=index.js.map