@nosana/types 0.1.4 → 0.1.6
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.
- package/dist/Jobs/JobDefinition/args/expose.d.ts +34 -1
- package/dist/Jobs/JobDefinition/args/expose.js +11 -1
- package/dist/Jobs/JobDefinition/args/expose.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/index.d.ts +3 -0
- package/dist/Jobs/JobDefinition/args/index.js +1 -0
- package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/private.d.ts +1 -0
- package/dist/Jobs/JobDefinition/args/private.js +2 -0
- package/dist/Jobs/JobDefinition/args/private.js.map +1 -0
- package/dist/Jobs/index.js +303 -116
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +117 -0
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,6 +39,39 @@ export type UniqueExposedPorts = Array<ExposeBase> & tags.TagBase<{
|
|
|
39
39
|
`;
|
|
40
40
|
message: 'Exposed ports must be unique, number ports must not fall within any defined port range, and port ranges must not overlap or be adjacent.';
|
|
41
41
|
}>;
|
|
42
|
+
export declare const ServiceType: {
|
|
43
|
+
readonly WEB: "web";
|
|
44
|
+
readonly API: "api";
|
|
45
|
+
readonly WEBAPI: "webapi";
|
|
46
|
+
readonly WEBSOCKET: "websocket";
|
|
47
|
+
readonly NONE: "none";
|
|
48
|
+
};
|
|
49
|
+
export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
|
|
50
|
+
export declare const HealthCheckType: {
|
|
51
|
+
readonly HTTP: "http";
|
|
52
|
+
readonly WEBSOCKET: "websocket";
|
|
53
|
+
};
|
|
54
|
+
export type HealthCheckType = typeof HealthCheckType[keyof typeof HealthCheckType];
|
|
55
|
+
export type HttpHealthCheck = {
|
|
56
|
+
type: typeof HealthCheckType.HTTP;
|
|
57
|
+
path: string;
|
|
58
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
59
|
+
expected_status: number;
|
|
60
|
+
headers?: Record<string, string>;
|
|
61
|
+
body?: unknown;
|
|
62
|
+
continuous: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type WebSocketHealthCheck = {
|
|
65
|
+
type: typeof HealthCheckType.WEBSOCKET;
|
|
66
|
+
expected_response: string;
|
|
67
|
+
continuous: boolean;
|
|
68
|
+
};
|
|
69
|
+
export type HealthCheck = HttpHealthCheck | WebSocketHealthCheck;
|
|
42
70
|
export type Port = number;
|
|
43
|
-
export type
|
|
71
|
+
export type ExposedPort = {
|
|
72
|
+
port: number;
|
|
73
|
+
type?: ServiceType;
|
|
74
|
+
health_checks?: HealthCheck[];
|
|
75
|
+
};
|
|
76
|
+
export type ExposeBase = Port | ExposedPort | LiteralString | SpreadMarker;
|
|
44
77
|
export type Expose = ExposeBase | UniqueExposedPorts;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export const ServiceType = {
|
|
2
|
+
WEB: 'web',
|
|
3
|
+
API: 'api',
|
|
4
|
+
WEBAPI: 'webapi',
|
|
5
|
+
WEBSOCKET: 'websocket',
|
|
6
|
+
NONE: 'none',
|
|
7
|
+
};
|
|
8
|
+
export const HealthCheckType = {
|
|
9
|
+
HTTP: 'http',
|
|
10
|
+
WEBSOCKET: 'websocket',
|
|
11
|
+
};
|
|
2
12
|
//# sourceMappingURL=expose.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expose.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/expose.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"expose.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/expose.ts"],"names":[],"mappings":"AA4CA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;CACJ,CAAC;AAKX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -5,6 +5,7 @@ import type { Env } from "./env.js";
|
|
|
5
5
|
import type { Expose } from "./expose.js";
|
|
6
6
|
import type { GPU } from "./gpu.js";
|
|
7
7
|
import type { Image } from "./image.js";
|
|
8
|
+
import type { Private } from "./private.js";
|
|
8
9
|
import type { Resources } from "./resources.js";
|
|
9
10
|
import type { Volume } from "./volumes.js";
|
|
10
11
|
import type { WorkDir } from "./work_dir.js";
|
|
@@ -16,6 +17,7 @@ export * from "./expose.js";
|
|
|
16
17
|
export * from "./gpu.js";
|
|
17
18
|
export * from "./image.js";
|
|
18
19
|
export * from "./literals.js";
|
|
20
|
+
export * from "./private.js";
|
|
19
21
|
export * from "./resources.js";
|
|
20
22
|
export * from "./variables.js";
|
|
21
23
|
export * from "./volumes.js";
|
|
@@ -30,6 +32,7 @@ export interface ContainerRun {
|
|
|
30
32
|
work_dir?: WorkDir;
|
|
31
33
|
entrypoint?: CMDString | CMDArray;
|
|
32
34
|
env?: Env;
|
|
35
|
+
private?: Private;
|
|
33
36
|
resources?: Resources;
|
|
34
37
|
authentication?: Authentication;
|
|
35
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"AAYA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Private = boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/private.ts"],"names":[],"mappings":""}
|
package/dist/Jobs/index.js
CHANGED
|
@@ -72,7 +72,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
72
72
|
if (undefined === value)
|
|
73
73
|
return true;
|
|
74
74
|
return "string" === typeof value;
|
|
75
|
-
}); const _io9 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && "string" === typeof input.id && ("object" === typeof input.args && null !== input.args &&
|
|
75
|
+
}); const _io9 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && "string" === typeof input.id && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io27(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
76
76
|
if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
|
|
77
77
|
return true;
|
|
78
78
|
const value = input[key];
|
|
@@ -114,8 +114,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return true;
|
|
117
|
-
})() && input.expose.every((elem, _index6) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem &&
|
|
118
|
-
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "resources", "authentication"].some(prop => key === prop))
|
|
117
|
+
})() && input.expose.every((elem, _index6) => 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, _index7) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io7(input.env, true && _exceptionable)) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index8) => 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) && _io24(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
118
|
+
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "private", "resources", "authentication"].some(prop => key === prop))
|
|
119
119
|
return true;
|
|
120
120
|
const value = input[key];
|
|
121
121
|
if (undefined === value)
|
|
@@ -135,82 +135,108 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
135
135
|
if (undefined === value)
|
|
136
136
|
return true;
|
|
137
137
|
return false;
|
|
138
|
-
})); const _io13 = (input, _exceptionable = true) => "
|
|
138
|
+
})); const _io13 = (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, _index9) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
139
|
+
if (["port", "type", "health_checks"].some(prop => key === prop))
|
|
140
|
+
return true;
|
|
141
|
+
const value = input[key];
|
|
142
|
+
if (undefined === value)
|
|
143
|
+
return true;
|
|
144
|
+
return false;
|
|
145
|
+
})); const _io14 = (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) && _io15(input.headers, true && _exceptionable)) && true && "boolean" === typeof input.continuous && (5 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
146
|
+
if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
|
|
147
|
+
return true;
|
|
148
|
+
const value = input[key];
|
|
149
|
+
if (undefined === value)
|
|
150
|
+
return true;
|
|
151
|
+
return false;
|
|
152
|
+
})); const _io15 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
153
|
+
const value = input[key];
|
|
154
|
+
if (undefined === value)
|
|
155
|
+
return true;
|
|
156
|
+
return "string" === typeof value;
|
|
157
|
+
}); const _io16 = (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 => {
|
|
158
|
+
if (["type", "expected_response", "continuous"].some(prop => key === prop))
|
|
159
|
+
return true;
|
|
160
|
+
const value = input[key];
|
|
161
|
+
if (undefined === value)
|
|
162
|
+
return true;
|
|
163
|
+
return false;
|
|
164
|
+
})); const _io17 = (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, _index10) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io18(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
139
165
|
if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
|
|
140
166
|
return true;
|
|
141
167
|
const value = input[key];
|
|
142
168
|
if (undefined === value)
|
|
143
169
|
return true;
|
|
144
170
|
return false;
|
|
145
|
-
})); const
|
|
171
|
+
})); const _io18 = (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 => {
|
|
146
172
|
if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
|
|
147
173
|
return true;
|
|
148
174
|
const value = input[key];
|
|
149
175
|
if (undefined === value)
|
|
150
176
|
return true;
|
|
151
177
|
return false;
|
|
152
|
-
})); const
|
|
178
|
+
})); const _io19 = (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 && _io18(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
153
179
|
if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
154
180
|
return true;
|
|
155
181
|
const value = input[key];
|
|
156
182
|
if (undefined === value)
|
|
157
183
|
return true;
|
|
158
184
|
return false;
|
|
159
|
-
})); const
|
|
185
|
+
})); const _io20 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index11) => "object" === typeof elem && null !== elem && _io21(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 && _io18(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
160
186
|
if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
161
187
|
return true;
|
|
162
188
|
const value = input[key];
|
|
163
189
|
if (undefined === value)
|
|
164
190
|
return true;
|
|
165
191
|
return false;
|
|
166
|
-
})); const
|
|
192
|
+
})); const _io21 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index12) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
167
193
|
if (["url", "files"].some(prop => key === prop))
|
|
168
194
|
return true;
|
|
169
195
|
const value = input[key];
|
|
170
196
|
if (undefined === value)
|
|
171
197
|
return true;
|
|
172
198
|
return false;
|
|
173
|
-
})); const
|
|
199
|
+
})); const _io22 = (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, _index13) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
174
200
|
if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
|
|
175
201
|
return true;
|
|
176
202
|
const value = input[key];
|
|
177
203
|
if (undefined === value)
|
|
178
204
|
return true;
|
|
179
205
|
return false;
|
|
180
|
-
})); const
|
|
206
|
+
})); const _io23 = (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 => {
|
|
181
207
|
if (["type", "model", "target"].some(prop => key === prop))
|
|
182
208
|
return true;
|
|
183
209
|
const value = input[key];
|
|
184
210
|
if (undefined === value)
|
|
185
211
|
return true;
|
|
186
212
|
return false;
|
|
187
|
-
})); const
|
|
213
|
+
})); const _io24 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io25(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
188
214
|
if (["docker"].some(prop => key === prop))
|
|
189
215
|
return true;
|
|
190
216
|
const value = input[key];
|
|
191
217
|
if (undefined === value)
|
|
192
218
|
return true;
|
|
193
219
|
return false;
|
|
194
|
-
})); const
|
|
220
|
+
})); const _io25 = (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 => {
|
|
195
221
|
if (["username", "password", "email", "server"].some(prop => key === prop))
|
|
196
222
|
return true;
|
|
197
223
|
const value = input[key];
|
|
198
224
|
if (undefined === value)
|
|
199
225
|
return true;
|
|
200
226
|
return false;
|
|
201
|
-
})); const
|
|
227
|
+
})); const _io26 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
202
228
|
if (["name"].some(prop => key === prop))
|
|
203
229
|
return true;
|
|
204
230
|
const value = input[key];
|
|
205
231
|
if (undefined === value)
|
|
206
232
|
return true;
|
|
207
233
|
return false;
|
|
208
|
-
})); const
|
|
234
|
+
})); const _io27 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
209
235
|
const value = input[key];
|
|
210
236
|
if (undefined === value)
|
|
211
237
|
return true;
|
|
212
|
-
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value &&
|
|
213
|
-
}); const
|
|
238
|
+
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io28(value, true && _exceptionable));
|
|
239
|
+
}); const _io28 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
|
|
214
240
|
const seen = new Set();
|
|
215
241
|
for (const v of input.logType) {
|
|
216
242
|
if (seen.has(v))
|
|
@@ -218,21 +244,21 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
218
244
|
seen.add(v);
|
|
219
245
|
}
|
|
220
246
|
return true;
|
|
221
|
-
})() && input.logType.every((elem,
|
|
247
|
+
})() && input.logType.every((elem, _index14) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
222
248
|
if (["regex", "logType"].some(prop => key === prop))
|
|
223
249
|
return true;
|
|
224
250
|
const value = input[key];
|
|
225
251
|
if (undefined === value)
|
|
226
252
|
return true;
|
|
227
253
|
return false;
|
|
228
|
-
})); const
|
|
254
|
+
})); const _io29 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (null !== input.depends_on && undefined === input.depends_on) && (null !== input.stop_if_dependent_stops && undefined === input.stop_if_dependent_stops) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
229
255
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
230
256
|
return true;
|
|
231
257
|
const value = input[key];
|
|
232
258
|
if (undefined === value)
|
|
233
259
|
return true;
|
|
234
260
|
return false;
|
|
235
|
-
})); const
|
|
261
|
+
})); const _io30 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index15) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
236
262
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
237
263
|
return true;
|
|
238
264
|
const value = input[key];
|
|
@@ -240,30 +266,44 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
240
266
|
return true;
|
|
241
267
|
return false;
|
|
242
268
|
})); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
269
|
+
if ("http" === input.type)
|
|
270
|
+
return _io14(input, true && _exceptionable);
|
|
271
|
+
else if ("websocket" === input.type)
|
|
272
|
+
return _io16(input, true && _exceptionable);
|
|
273
|
+
else
|
|
274
|
+
return false;
|
|
275
|
+
})(); const _iu1 = (input, _exceptionable = true) => (() => {
|
|
276
|
+
if (undefined !== input.__spread__)
|
|
277
|
+
return _io12(input, true && _exceptionable);
|
|
278
|
+
else if (undefined !== input.port)
|
|
279
|
+
return _io13(input, true && _exceptionable);
|
|
280
|
+
else
|
|
281
|
+
return false;
|
|
282
|
+
})(); const _iu2 = (input, _exceptionable = true) => (() => {
|
|
243
283
|
if (undefined !== input.__spread__)
|
|
244
284
|
return _io12(input, true && _exceptionable);
|
|
245
285
|
else if (undefined !== input.bucket)
|
|
246
|
-
return
|
|
286
|
+
return _io19(input, true && _exceptionable);
|
|
247
287
|
else if (undefined !== input.buckets)
|
|
248
|
-
return
|
|
288
|
+
return _io20(input, true && _exceptionable);
|
|
249
289
|
else if ("HF" === input.type)
|
|
250
|
-
return
|
|
290
|
+
return _io22(input, true && _exceptionable);
|
|
251
291
|
else if ("Ollama" === input.type)
|
|
252
|
-
return
|
|
292
|
+
return _io23(input, true && _exceptionable);
|
|
253
293
|
else
|
|
254
|
-
return
|
|
255
|
-
})(); const
|
|
294
|
+
return _io17(input, true && _exceptionable);
|
|
295
|
+
})(); const _iu3 = (input, _exceptionable = true) => (() => {
|
|
256
296
|
if (undefined !== input.image)
|
|
257
297
|
return _io10(input, true && _exceptionable);
|
|
258
298
|
else if (undefined !== input.name)
|
|
259
|
-
return
|
|
299
|
+
return _io26(input, true && _exceptionable);
|
|
260
300
|
else
|
|
261
301
|
return false;
|
|
262
|
-
})(); const
|
|
263
|
-
if (Array.isArray(input.depends_on) && input.depends_on.every((elem,
|
|
264
|
-
return
|
|
302
|
+
})(); const _iu4 = (input, _exceptionable = true) => (() => {
|
|
303
|
+
if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index16) => "string" === typeof elem))
|
|
304
|
+
return _io30(input, true && _exceptionable);
|
|
265
305
|
else
|
|
266
|
-
return
|
|
306
|
+
return _io29(input, true && _exceptionable);
|
|
267
307
|
})(); const _vo0 = (input, _path, _exceptionable = true) => ["container" === input.type || _report(_exceptionable, {
|
|
268
308
|
path: _path + ".type",
|
|
269
309
|
expected: "\"container\"",
|
|
@@ -318,12 +358,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
318
358
|
path: _path + ".ops",
|
|
319
359
|
expected: "Array<> & UniqueById",
|
|
320
360
|
value: input.ops
|
|
321
|
-
})) && input.ops.map((elem,
|
|
322
|
-
path: _path + ".ops[" +
|
|
361
|
+
})) && input.ops.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
362
|
+
path: _path + ".ops[" + _index17 + "]",
|
|
323
363
|
expected: "Operation<keyof OperationArgsMap>",
|
|
324
364
|
value: elem
|
|
325
|
-
})) && _vo9(elem, _path + ".ops[" +
|
|
326
|
-
path: _path + ".ops[" +
|
|
365
|
+
})) && _vo9(elem, _path + ".ops[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
366
|
+
path: _path + ".ops[" + _index17 + "]",
|
|
327
367
|
expected: "Operation<keyof OperationArgsMap>",
|
|
328
368
|
value: elem
|
|
329
369
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -482,8 +522,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
482
522
|
path: _path + ".entrypoint",
|
|
483
523
|
expected: "(CMDArray | string | undefined)",
|
|
484
524
|
value: input.entrypoint
|
|
485
|
-
})) && input.entrypoint.map((elem,
|
|
486
|
-
path: _path + ".entrypoint[" +
|
|
525
|
+
})) && input.entrypoint.map((elem, _index18) => "string" === typeof elem || _report(_exceptionable, {
|
|
526
|
+
path: _path + ".entrypoint[" + _index18 + "]",
|
|
487
527
|
expected: "string",
|
|
488
528
|
value: elem
|
|
489
529
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -556,7 +596,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
556
596
|
path: _path + ".args",
|
|
557
597
|
expected: "(ContainerCreateVolume | ContainerRun)",
|
|
558
598
|
value: input.args
|
|
559
|
-
})) &&
|
|
599
|
+
})) && _vu3(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
|
|
560
600
|
path: _path + ".args",
|
|
561
601
|
expected: "(ContainerCreateVolume | ContainerRun)",
|
|
562
602
|
value: input.args
|
|
@@ -564,7 +604,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
564
604
|
path: _path + ".results",
|
|
565
605
|
expected: "(OperationResults | undefined)",
|
|
566
606
|
value: input.results
|
|
567
|
-
})) &&
|
|
607
|
+
})) && _vo27(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
|
|
568
608
|
path: _path + ".results",
|
|
569
609
|
expected: "(OperationResults | undefined)",
|
|
570
610
|
value: input.results
|
|
@@ -572,7 +612,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
572
612
|
path: _path + ".execution",
|
|
573
613
|
expected: "(undefined | { group?: string | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
|
|
574
614
|
value: input.execution
|
|
575
|
-
})) &&
|
|
615
|
+
})) && _vu4(input.execution, _path + ".execution", true && _exceptionable) || _report(_exceptionable, {
|
|
576
616
|
path: _path + ".execution",
|
|
577
617
|
expected: "(undefined | { group?: string | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
|
|
578
618
|
value: input.execution
|
|
@@ -604,8 +644,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
604
644
|
path: _path + ".aliases",
|
|
605
645
|
expected: "(Aliases | string | undefined)",
|
|
606
646
|
value: input.aliases
|
|
607
|
-
})) && input.aliases.map((elem,
|
|
608
|
-
path: _path + ".aliases[" +
|
|
647
|
+
})) && input.aliases.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
648
|
+
path: _path + ".aliases[" + _index19 + "]",
|
|
609
649
|
expected: "string",
|
|
610
650
|
value: elem
|
|
611
651
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -620,8 +660,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
620
660
|
path: _path + ".cmd",
|
|
621
661
|
expected: "(CMDArray | string | undefined)",
|
|
622
662
|
value: input.cmd
|
|
623
|
-
})) && input.cmd.map((elem,
|
|
624
|
-
path: _path + ".cmd[" +
|
|
663
|
+
})) && input.cmd.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
664
|
+
path: _path + ".cmd[" + _index20 + "]",
|
|
625
665
|
expected: "string",
|
|
626
666
|
value: elem
|
|
627
667
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -632,12 +672,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
632
672
|
path: _path + ".volumes",
|
|
633
673
|
expected: "(Array<Volume> | undefined)",
|
|
634
674
|
value: input.volumes
|
|
635
|
-
})) && input.volumes.map((elem,
|
|
636
|
-
path: _path + ".volumes[" +
|
|
675
|
+
})) && input.volumes.map((elem, _index21) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
676
|
+
path: _path + ".volumes[" + _index21 + "]",
|
|
637
677
|
expected: "Volume",
|
|
638
678
|
value: elem
|
|
639
|
-
})) && _vo11(elem, _path + ".volumes[" +
|
|
640
|
-
path: _path + ".volumes[" +
|
|
679
|
+
})) && _vo11(elem, _path + ".volumes[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
680
|
+
path: _path + ".volumes[" + _index21 + "]",
|
|
641
681
|
expected: "Volume",
|
|
642
682
|
value: elem
|
|
643
683
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -646,7 +686,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
646
686
|
value: input.volumes
|
|
647
687
|
}), (null !== input.expose || _report(_exceptionable, {
|
|
648
688
|
path: _path + ".expose",
|
|
649
|
-
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | number | undefined)",
|
|
689
|
+
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
|
|
650
690
|
value: input.expose
|
|
651
691
|
})) && (undefined === input.expose || "number" === typeof input.expose || "string" === typeof input.expose && (typeof input.expose === "string" && /^%%(ops|global).[^%]+%%$/.test(input.expose) || _report(_exceptionable, {
|
|
652
692
|
path: _path + ".expose",
|
|
@@ -691,33 +731,33 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
691
731
|
path: _path + ".expose",
|
|
692
732
|
expected: "Array<> & TagBase<__type>",
|
|
693
733
|
value: input.expose
|
|
694
|
-
})) && input.expose.map((elem,
|
|
695
|
-
path: _path + ".expose[" +
|
|
696
|
-
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
734
|
+
})) && input.expose.map((elem, _index22) => (null !== elem || _report(_exceptionable, {
|
|
735
|
+
path: _path + ".expose[" + _index22 + "]",
|
|
736
|
+
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
697
737
|
value: elem
|
|
698
738
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
699
|
-
path: _path + ".expose[" +
|
|
700
|
-
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
739
|
+
path: _path + ".expose[" + _index22 + "]",
|
|
740
|
+
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
701
741
|
value: elem
|
|
702
742
|
})) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
|
|
703
|
-
path: _path + ".expose[" +
|
|
743
|
+
path: _path + ".expose[" + _index22 + "]",
|
|
704
744
|
expected: "string & TagBase<__type>",
|
|
705
745
|
value: elem
|
|
706
746
|
})) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
707
|
-
path: _path + ".expose[" +
|
|
708
|
-
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
747
|
+
path: _path + ".expose[" + _index22 + "]",
|
|
748
|
+
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
709
749
|
value: elem
|
|
710
|
-
})) &&
|
|
711
|
-
path: _path + ".expose[" +
|
|
712
|
-
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
750
|
+
})) && _vu1(elem, _path + ".expose[" + _index22 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
751
|
+
path: _path + ".expose[" + _index22 + "]",
|
|
752
|
+
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
713
753
|
value: elem
|
|
714
|
-
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose &&
|
|
754
|
+
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
|
|
715
755
|
path: _path + ".expose",
|
|
716
|
-
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | number | undefined)",
|
|
756
|
+
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
|
|
717
757
|
value: input.expose
|
|
718
758
|
})) || _report(_exceptionable, {
|
|
719
759
|
path: _path + ".expose",
|
|
720
|
-
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | number | undefined)",
|
|
760
|
+
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number | undefined)",
|
|
721
761
|
value: input.expose
|
|
722
762
|
})), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
|
|
723
763
|
path: _path + ".gpu",
|
|
@@ -735,8 +775,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
735
775
|
path: _path + ".entrypoint",
|
|
736
776
|
expected: "(CMDArray | string | undefined)",
|
|
737
777
|
value: input.entrypoint
|
|
738
|
-
})) && input.entrypoint.map((elem,
|
|
739
|
-
path: _path + ".entrypoint[" +
|
|
778
|
+
})) && input.entrypoint.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
779
|
+
path: _path + ".entrypoint[" + _index23 + "]",
|
|
740
780
|
expected: "string",
|
|
741
781
|
value: elem
|
|
742
782
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -751,24 +791,28 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
751
791
|
path: _path + ".env",
|
|
752
792
|
expected: "(Env | undefined)",
|
|
753
793
|
value: input.env
|
|
794
|
+
}), undefined === input["private"] || "boolean" === typeof input["private"] || _report(_exceptionable, {
|
|
795
|
+
path: _path + "[\"private\"]",
|
|
796
|
+
expected: "(boolean | undefined)",
|
|
797
|
+
value: input["private"]
|
|
754
798
|
}), undefined === input.resources || (Array.isArray(input.resources) || _report(_exceptionable, {
|
|
755
799
|
path: _path + ".resources",
|
|
756
800
|
expected: "(Resources | undefined)",
|
|
757
801
|
value: input.resources
|
|
758
|
-
})) && input.resources.map((elem,
|
|
759
|
-
path: _path + ".resources[" +
|
|
802
|
+
})) && input.resources.map((elem, _index24) => (null !== elem || _report(_exceptionable, {
|
|
803
|
+
path: _path + ".resources[" + _index24 + "]",
|
|
760
804
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
761
805
|
value: elem
|
|
762
806
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
763
|
-
path: _path + ".resources[" +
|
|
807
|
+
path: _path + ".resources[" + _index24 + "]",
|
|
764
808
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
765
809
|
value: elem
|
|
766
810
|
})) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
767
|
-
path: _path + ".resources[" +
|
|
811
|
+
path: _path + ".resources[" + _index24 + "]",
|
|
768
812
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
769
813
|
value: elem
|
|
770
|
-
})) &&
|
|
771
|
-
path: _path + ".resources[" +
|
|
814
|
+
})) && _vu2(elem, _path + ".resources[" + _index24 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
815
|
+
path: _path + ".resources[" + _index24 + "]",
|
|
772
816
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
773
817
|
value: elem
|
|
774
818
|
}))).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -779,12 +823,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
779
823
|
path: _path + ".authentication",
|
|
780
824
|
expected: "(Authentication | undefined)",
|
|
781
825
|
value: input.authentication
|
|
782
|
-
})) &&
|
|
826
|
+
})) && _vo24(input.authentication, _path + ".authentication", true && _exceptionable) || _report(_exceptionable, {
|
|
783
827
|
path: _path + ".authentication",
|
|
784
828
|
expected: "(Authentication | undefined)",
|
|
785
829
|
value: input.authentication
|
|
786
830
|
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
787
|
-
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "resources", "authentication"].some(prop => key === prop))
|
|
831
|
+
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "private", "resources", "authentication"].some(prop => key === prop))
|
|
788
832
|
return true;
|
|
789
833
|
const value = input[key];
|
|
790
834
|
if (undefined === value)
|
|
@@ -847,7 +891,128 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
847
891
|
"Please remove the property next time."
|
|
848
892
|
].join("\n")
|
|
849
893
|
});
|
|
850
|
-
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["
|
|
894
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
|
|
895
|
+
path: _path + ".port",
|
|
896
|
+
expected: "number",
|
|
897
|
+
value: input.port
|
|
898
|
+
}), undefined === input.type || "api" === input.type || "web" === input.type || "websocket" === input.type || "webapi" === input.type || "none" === input.type || _report(_exceptionable, {
|
|
899
|
+
path: _path + ".type",
|
|
900
|
+
expected: "(\"api\" | \"none\" | \"web\" | \"webapi\" | \"websocket\" | undefined)",
|
|
901
|
+
value: input.type
|
|
902
|
+
}), undefined === input.health_checks || (Array.isArray(input.health_checks) || _report(_exceptionable, {
|
|
903
|
+
path: _path + ".health_checks",
|
|
904
|
+
expected: "(Array<HealthCheck> | undefined)",
|
|
905
|
+
value: input.health_checks
|
|
906
|
+
})) && input.health_checks.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
907
|
+
path: _path + ".health_checks[" + _index25 + "]",
|
|
908
|
+
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
909
|
+
value: elem
|
|
910
|
+
})) && _vu0(elem, _path + ".health_checks[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
911
|
+
path: _path + ".health_checks[" + _index25 + "]",
|
|
912
|
+
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
913
|
+
value: elem
|
|
914
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
915
|
+
path: _path + ".health_checks",
|
|
916
|
+
expected: "(Array<HealthCheck> | undefined)",
|
|
917
|
+
value: input.health_checks
|
|
918
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
919
|
+
if (["port", "type", "health_checks"].some(prop => key === prop))
|
|
920
|
+
return true;
|
|
921
|
+
const value = input[key];
|
|
922
|
+
if (undefined === value)
|
|
923
|
+
return true;
|
|
924
|
+
return _report(_exceptionable, {
|
|
925
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
926
|
+
expected: "undefined",
|
|
927
|
+
value: value,
|
|
928
|
+
description: [
|
|
929
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
930
|
+
"",
|
|
931
|
+
"Please remove the property next time."
|
|
932
|
+
].join("\n")
|
|
933
|
+
});
|
|
934
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["http" === input.type || _report(_exceptionable, {
|
|
935
|
+
path: _path + ".type",
|
|
936
|
+
expected: "\"http\"",
|
|
937
|
+
value: input.type
|
|
938
|
+
}), "string" === typeof input.path || _report(_exceptionable, {
|
|
939
|
+
path: _path + ".path",
|
|
940
|
+
expected: "string",
|
|
941
|
+
value: input.path
|
|
942
|
+
}), "GET" === input.method || "POST" === input.method || "PUT" === input.method || "DELETE" === input.method || _report(_exceptionable, {
|
|
943
|
+
path: _path + ".method",
|
|
944
|
+
expected: "(\"DELETE\" | \"GET\" | \"POST\" | \"PUT\")",
|
|
945
|
+
value: input.method
|
|
946
|
+
}), "number" === typeof input.expected_status || _report(_exceptionable, {
|
|
947
|
+
path: _path + ".expected_status",
|
|
948
|
+
expected: "number",
|
|
949
|
+
value: input.expected_status
|
|
950
|
+
}), undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || _report(_exceptionable, {
|
|
951
|
+
path: _path + ".headers",
|
|
952
|
+
expected: "(Record<string, string> | undefined)",
|
|
953
|
+
value: input.headers
|
|
954
|
+
})) && _vo15(input.headers, _path + ".headers", true && _exceptionable) || _report(_exceptionable, {
|
|
955
|
+
path: _path + ".headers",
|
|
956
|
+
expected: "(Record<string, string> | undefined)",
|
|
957
|
+
value: input.headers
|
|
958
|
+
}), true, "boolean" === typeof input.continuous || _report(_exceptionable, {
|
|
959
|
+
path: _path + ".continuous",
|
|
960
|
+
expected: "boolean",
|
|
961
|
+
value: input.continuous
|
|
962
|
+
}), 5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
963
|
+
if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
|
|
964
|
+
return true;
|
|
965
|
+
const value = input[key];
|
|
966
|
+
if (undefined === value)
|
|
967
|
+
return true;
|
|
968
|
+
return _report(_exceptionable, {
|
|
969
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
970
|
+
expected: "undefined",
|
|
971
|
+
value: value,
|
|
972
|
+
description: [
|
|
973
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
974
|
+
"",
|
|
975
|
+
"Please remove the property next time."
|
|
976
|
+
].join("\n")
|
|
977
|
+
});
|
|
978
|
+
}).every(flag => flag))].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
979
|
+
const value = input[key];
|
|
980
|
+
if (undefined === value)
|
|
981
|
+
return true;
|
|
982
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
983
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
984
|
+
expected: "string",
|
|
985
|
+
value: value
|
|
986
|
+
});
|
|
987
|
+
}).every(flag => flag)].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["websocket" === input.type || _report(_exceptionable, {
|
|
988
|
+
path: _path + ".type",
|
|
989
|
+
expected: "\"websocket\"",
|
|
990
|
+
value: input.type
|
|
991
|
+
}), "string" === typeof input.expected_response || _report(_exceptionable, {
|
|
992
|
+
path: _path + ".expected_response",
|
|
993
|
+
expected: "string",
|
|
994
|
+
value: input.expected_response
|
|
995
|
+
}), "boolean" === typeof input.continuous || _report(_exceptionable, {
|
|
996
|
+
path: _path + ".continuous",
|
|
997
|
+
expected: "boolean",
|
|
998
|
+
value: input.continuous
|
|
999
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
1000
|
+
if (["type", "expected_response", "continuous"].some(prop => key === prop))
|
|
1001
|
+
return true;
|
|
1002
|
+
const value = input[key];
|
|
1003
|
+
if (undefined === value)
|
|
1004
|
+
return true;
|
|
1005
|
+
return _report(_exceptionable, {
|
|
1006
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1007
|
+
expected: "undefined",
|
|
1008
|
+
value: value,
|
|
1009
|
+
description: [
|
|
1010
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1011
|
+
"",
|
|
1012
|
+
"Please remove the property next time."
|
|
1013
|
+
].join("\n")
|
|
1014
|
+
});
|
|
1015
|
+
}).every(flag => flag))].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
851
1016
|
path: _path + ".type",
|
|
852
1017
|
expected: "\"S3\"",
|
|
853
1018
|
value: input.type
|
|
@@ -867,8 +1032,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
867
1032
|
path: _path + ".files",
|
|
868
1033
|
expected: "(Array<string> | undefined)",
|
|
869
1034
|
value: input.files
|
|
870
|
-
})) && input.files.map((elem,
|
|
871
|
-
path: _path + ".files[" +
|
|
1035
|
+
})) && input.files.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
|
|
1036
|
+
path: _path + ".files[" + _index26 + "]",
|
|
872
1037
|
expected: "string",
|
|
873
1038
|
value: elem
|
|
874
1039
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -879,7 +1044,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
879
1044
|
path: _path + ".IAM",
|
|
880
1045
|
expected: "(S3Auth | undefined)",
|
|
881
1046
|
value: input.IAM
|
|
882
|
-
})) &&
|
|
1047
|
+
})) && _vo18(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
883
1048
|
path: _path + ".IAM",
|
|
884
1049
|
expected: "(S3Auth | undefined)",
|
|
885
1050
|
value: input.IAM
|
|
@@ -899,7 +1064,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
899
1064
|
"Please remove the property next time."
|
|
900
1065
|
].join("\n")
|
|
901
1066
|
});
|
|
902
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1067
|
+
}).every(flag => flag))].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
|
|
903
1068
|
path: _path + ".REGION",
|
|
904
1069
|
expected: "string",
|
|
905
1070
|
value: input.REGION
|
|
@@ -927,7 +1092,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
927
1092
|
"Please remove the property next time."
|
|
928
1093
|
].join("\n")
|
|
929
1094
|
});
|
|
930
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1095
|
+
}).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
931
1096
|
path: _path + ".type",
|
|
932
1097
|
expected: "\"S3\"",
|
|
933
1098
|
value: input.type
|
|
@@ -951,7 +1116,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
951
1116
|
path: _path + ".IAM",
|
|
952
1117
|
expected: "(S3Auth | undefined)",
|
|
953
1118
|
value: input.IAM
|
|
954
|
-
})) &&
|
|
1119
|
+
})) && _vo18(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
955
1120
|
path: _path + ".IAM",
|
|
956
1121
|
expected: "(S3Auth | undefined)",
|
|
957
1122
|
value: input.IAM
|
|
@@ -971,7 +1136,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
971
1136
|
"Please remove the property next time."
|
|
972
1137
|
].join("\n")
|
|
973
1138
|
});
|
|
974
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1139
|
+
}).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
975
1140
|
path: _path + ".type",
|
|
976
1141
|
expected: "\"S3\"",
|
|
977
1142
|
value: input.type
|
|
@@ -983,12 +1148,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
983
1148
|
path: _path + ".buckets",
|
|
984
1149
|
expected: "Array<__type>",
|
|
985
1150
|
value: input.buckets
|
|
986
|
-
})) && input.buckets.map((elem,
|
|
987
|
-
path: _path + ".buckets[" +
|
|
1151
|
+
})) && input.buckets.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1152
|
+
path: _path + ".buckets[" + _index27 + "]",
|
|
988
1153
|
expected: "__type.o4",
|
|
989
1154
|
value: elem
|
|
990
|
-
})) &&
|
|
991
|
-
path: _path + ".buckets[" +
|
|
1155
|
+
})) && _vo21(elem, _path + ".buckets[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1156
|
+
path: _path + ".buckets[" + _index27 + "]",
|
|
992
1157
|
expected: "__type.o4",
|
|
993
1158
|
value: elem
|
|
994
1159
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1007,7 +1172,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1007
1172
|
path: _path + ".IAM",
|
|
1008
1173
|
expected: "(S3Auth | undefined)",
|
|
1009
1174
|
value: input.IAM
|
|
1010
|
-
})) &&
|
|
1175
|
+
})) && _vo18(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1011
1176
|
path: _path + ".IAM",
|
|
1012
1177
|
expected: "(S3Auth | undefined)",
|
|
1013
1178
|
value: input.IAM
|
|
@@ -1027,7 +1192,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1027
1192
|
"Please remove the property next time."
|
|
1028
1193
|
].join("\n")
|
|
1029
1194
|
});
|
|
1030
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1195
|
+
}).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
1031
1196
|
path: _path + ".url",
|
|
1032
1197
|
expected: "string",
|
|
1033
1198
|
value: input.url
|
|
@@ -1035,8 +1200,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1035
1200
|
path: _path + ".files",
|
|
1036
1201
|
expected: "(Array<string> | undefined)",
|
|
1037
1202
|
value: input.files
|
|
1038
|
-
})) && input.files.map((elem,
|
|
1039
|
-
path: _path + ".files[" +
|
|
1203
|
+
})) && input.files.map((elem, _index28) => "string" === typeof elem || _report(_exceptionable, {
|
|
1204
|
+
path: _path + ".files[" + _index28 + "]",
|
|
1040
1205
|
expected: "string",
|
|
1041
1206
|
value: elem
|
|
1042
1207
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1059,7 +1224,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1059
1224
|
"Please remove the property next time."
|
|
1060
1225
|
].join("\n")
|
|
1061
1226
|
});
|
|
1062
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1227
|
+
}).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
|
|
1063
1228
|
path: _path + ".type",
|
|
1064
1229
|
expected: "\"HF\"",
|
|
1065
1230
|
value: input.type
|
|
@@ -1079,8 +1244,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1079
1244
|
path: _path + ".files",
|
|
1080
1245
|
expected: "(Array<string> | undefined)",
|
|
1081
1246
|
value: input.files
|
|
1082
|
-
})) && input.files.map((elem,
|
|
1083
|
-
path: _path + ".files[" +
|
|
1247
|
+
})) && input.files.map((elem, _index29) => "string" === typeof elem || _report(_exceptionable, {
|
|
1248
|
+
path: _path + ".files[" + _index29 + "]",
|
|
1084
1249
|
expected: "string",
|
|
1085
1250
|
value: elem
|
|
1086
1251
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1107,7 +1272,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1107
1272
|
"Please remove the property next time."
|
|
1108
1273
|
].join("\n")
|
|
1109
1274
|
});
|
|
1110
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1275
|
+
}).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
|
|
1111
1276
|
path: _path + ".type",
|
|
1112
1277
|
expected: "\"Ollama\"",
|
|
1113
1278
|
value: input.type
|
|
@@ -1135,11 +1300,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1135
1300
|
"Please remove the property next time."
|
|
1136
1301
|
].join("\n")
|
|
1137
1302
|
});
|
|
1138
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1303
|
+
}).every(flag => flag))].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
|
|
1139
1304
|
path: _path + ".docker",
|
|
1140
1305
|
expected: "(DockerAuth | undefined)",
|
|
1141
1306
|
value: input.docker
|
|
1142
|
-
})) &&
|
|
1307
|
+
})) && _vo25(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
|
|
1143
1308
|
path: _path + ".docker",
|
|
1144
1309
|
expected: "(DockerAuth | undefined)",
|
|
1145
1310
|
value: input.docker
|
|
@@ -1159,7 +1324,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1159
1324
|
"Please remove the property next time."
|
|
1160
1325
|
].join("\n")
|
|
1161
1326
|
});
|
|
1162
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1327
|
+
}).every(flag => flag))].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
1163
1328
|
path: _path + ".username",
|
|
1164
1329
|
expected: "(string | undefined)",
|
|
1165
1330
|
value: input.username
|
|
@@ -1191,7 +1356,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1191
1356
|
"Please remove the property next time."
|
|
1192
1357
|
].join("\n")
|
|
1193
1358
|
});
|
|
1194
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1359
|
+
}).every(flag => flag))].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1195
1360
|
path: _path + ".name",
|
|
1196
1361
|
expected: "string",
|
|
1197
1362
|
value: input.name
|
|
@@ -1211,7 +1376,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1211
1376
|
"Please remove the property next time."
|
|
1212
1377
|
].join("\n")
|
|
1213
1378
|
});
|
|
1214
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1379
|
+
}).every(flag => flag))].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1215
1380
|
const value = input[key];
|
|
1216
1381
|
if (undefined === value)
|
|
1217
1382
|
return true;
|
|
@@ -1227,12 +1392,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1227
1392
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1228
1393
|
expected: "(OperationResult | string)",
|
|
1229
1394
|
value: value
|
|
1230
|
-
})) &&
|
|
1395
|
+
})) && _vo28(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
1231
1396
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1232
1397
|
expected: "(OperationResult | string)",
|
|
1233
1398
|
value: value
|
|
1234
1399
|
}));
|
|
1235
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1400
|
+
}).every(flag => flag)].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
|
|
1236
1401
|
path: _path + ".regex",
|
|
1237
1402
|
expected: "string",
|
|
1238
1403
|
value: input.regex
|
|
@@ -1252,8 +1417,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1252
1417
|
path: _path + ".logType",
|
|
1253
1418
|
expected: "Array<> & UniqueLogTypeTag",
|
|
1254
1419
|
value: input.logType
|
|
1255
|
-
})) && input.logType.map((elem,
|
|
1256
|
-
path: _path + ".logType[" +
|
|
1420
|
+
})) && input.logType.map((elem, _index30) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
|
|
1421
|
+
path: _path + ".logType[" + _index30 + "]",
|
|
1257
1422
|
expected: "(\"nodeerr\" | \"stderr\" | \"stdin\" | \"stdout\")",
|
|
1258
1423
|
value: elem
|
|
1259
1424
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -1276,7 +1441,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1276
1441
|
"Please remove the property next time."
|
|
1277
1442
|
].join("\n")
|
|
1278
1443
|
});
|
|
1279
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1444
|
+
}).every(flag => flag))].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1280
1445
|
path: _path + ".group",
|
|
1281
1446
|
expected: "(string | undefined)",
|
|
1282
1447
|
value: input.group
|
|
@@ -1312,7 +1477,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1312
1477
|
"Please remove the property next time."
|
|
1313
1478
|
].join("\n")
|
|
1314
1479
|
});
|
|
1315
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1480
|
+
}).every(flag => flag))].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1316
1481
|
path: _path + ".group",
|
|
1317
1482
|
expected: "(string | undefined)",
|
|
1318
1483
|
value: input.group
|
|
@@ -1320,8 +1485,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1320
1485
|
path: _path + ".depends_on",
|
|
1321
1486
|
expected: "Array<string>",
|
|
1322
1487
|
value: input.depends_on
|
|
1323
|
-
})) && input.depends_on.map((elem,
|
|
1324
|
-
path: _path + ".depends_on[" +
|
|
1488
|
+
})) && input.depends_on.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
1489
|
+
path: _path + ".depends_on[" + _index31 + "]",
|
|
1325
1490
|
expected: "string",
|
|
1326
1491
|
value: elem
|
|
1327
1492
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1349,34 +1514,56 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1349
1514
|
].join("\n")
|
|
1350
1515
|
});
|
|
1351
1516
|
}).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1517
|
+
if ("http" === input.type)
|
|
1518
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
1519
|
+
else if ("websocket" === input.type)
|
|
1520
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
1521
|
+
else
|
|
1522
|
+
return _report(_exceptionable, {
|
|
1523
|
+
path: _path,
|
|
1524
|
+
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
1525
|
+
value: input
|
|
1526
|
+
});
|
|
1527
|
+
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1528
|
+
if (undefined !== input.__spread__)
|
|
1529
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
1530
|
+
else if (undefined !== input.port)
|
|
1531
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
1532
|
+
else
|
|
1533
|
+
return _report(_exceptionable, {
|
|
1534
|
+
path: _path,
|
|
1535
|
+
expected: "(__type | ExposedPort)",
|
|
1536
|
+
value: input
|
|
1537
|
+
});
|
|
1538
|
+
})(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
|
1352
1539
|
if (undefined !== input.__spread__)
|
|
1353
1540
|
return _vo12(input, _path, true && _exceptionable);
|
|
1354
1541
|
else if (undefined !== input.bucket)
|
|
1355
|
-
return
|
|
1542
|
+
return _vo19(input, _path, true && _exceptionable);
|
|
1356
1543
|
else if (undefined !== input.buckets)
|
|
1357
|
-
return
|
|
1544
|
+
return _vo20(input, _path, true && _exceptionable);
|
|
1358
1545
|
else if ("HF" === input.type)
|
|
1359
|
-
return
|
|
1546
|
+
return _vo22(input, _path, true && _exceptionable);
|
|
1360
1547
|
else if ("Ollama" === input.type)
|
|
1361
|
-
return
|
|
1548
|
+
return _vo23(input, _path, true && _exceptionable);
|
|
1362
1549
|
else
|
|
1363
|
-
return
|
|
1364
|
-
})(); const
|
|
1550
|
+
return _vo17(input, _path, true && _exceptionable);
|
|
1551
|
+
})(); const _vu3 = (input, _path, _exceptionable = true) => (() => {
|
|
1365
1552
|
if (undefined !== input.image)
|
|
1366
1553
|
return _vo10(input, _path, true && _exceptionable);
|
|
1367
1554
|
else if (undefined !== input.name)
|
|
1368
|
-
return
|
|
1555
|
+
return _vo26(input, _path, true && _exceptionable);
|
|
1369
1556
|
else
|
|
1370
1557
|
return _report(_exceptionable, {
|
|
1371
1558
|
path: _path,
|
|
1372
1559
|
expected: "(ContainerRun | ContainerCreateVolume)",
|
|
1373
1560
|
value: input
|
|
1374
1561
|
});
|
|
1375
|
-
})(); const
|
|
1376
|
-
if (Array.isArray(input.depends_on) && input.depends_on.map((elem,
|
|
1377
|
-
return
|
|
1562
|
+
})(); const _vu4 = (input, _path, _exceptionable = true) => (() => {
|
|
1563
|
+
if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index32) => "string" === typeof elem).every(flag => flag))
|
|
1564
|
+
return _vo30(input, _path, true && _exceptionable);
|
|
1378
1565
|
else
|
|
1379
|
-
return
|
|
1566
|
+
return _vo29(input, _path, true && _exceptionable);
|
|
1380
1567
|
})(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
1381
1568
|
if (false === __is(input)) {
|
|
1382
1569
|
errors = [];
|
package/dist/Jobs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA7BD,EAAE;;;qBAGV,EAAE;;;;;IAIT,CAAC;;AACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;04BARH,EAAG;;;;;;;;;;4CAgBJ,CAAE,SAAQ,CAAE;;;;;QAOrB,CAAC;;;;;;;;;YAMwR,CAAC;;QAAoD,CAAC;IAAW,CAAC;;;;;QAA0J,CAAC;IAAW,CAAC;;AAA8B,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA7BD,EAAE;;;qBAGV,EAAE;;;;;IAIT,CAAC;;AACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;04BARH,EAAG;;;;;;;;;;4CAgBJ,CAAE,SAAQ,CAAE;;;;;QAOrB,CAAC;;;;;;;;;YAMwR,CAAC;;QAAoD,CAAC;IAAW,CAAC;;;;;QAA0J,CAAC;IAAW,CAAC;;AAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uNA5B7e,EAAG;;;;;;IAM1C,CAAC;;AACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CARwB,EAAE;;;yBAGV,EAAE;;;;;QAIT,CAAC;;IACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDARH,EAAG;;;;;;;;;;gDAgBJ,CAAE,SAAQ,CAAE;;;;;YAOrB,CAAC;;;;;;;;;gBAMwR,CAAC;;YAAoD,CAAC;QAAW,CAAC;;;;;YAA0J,CAAC;QAAW,CAAC;;IAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2GA5B7e,EAAG;;;;;;QAM1C,CAAC;;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqB+E,CAAC"}
|
package/dist/Schemas/job.js
CHANGED
|
@@ -282,6 +282,9 @@ export const jobSchemas = {
|
|
|
282
282
|
"__spread__"
|
|
283
283
|
]
|
|
284
284
|
},
|
|
285
|
+
{
|
|
286
|
+
$ref: "#/components/schemas/ExposedPort"
|
|
287
|
+
},
|
|
285
288
|
{
|
|
286
289
|
$ref: "#/components/schemas/UniqueExposedPorts"
|
|
287
290
|
}
|
|
@@ -306,6 +309,9 @@ export const jobSchemas = {
|
|
|
306
309
|
env: {
|
|
307
310
|
$ref: "#/components/schemas/Env"
|
|
308
311
|
},
|
|
312
|
+
"private": {
|
|
313
|
+
type: "boolean"
|
|
314
|
+
},
|
|
309
315
|
resources: {
|
|
310
316
|
$ref: "#/components/schemas/Resources"
|
|
311
317
|
},
|
|
@@ -341,6 +347,114 @@ export const jobSchemas = {
|
|
|
341
347
|
LiteralString: {
|
|
342
348
|
type: "string"
|
|
343
349
|
},
|
|
350
|
+
ExposedPort: {
|
|
351
|
+
type: "object",
|
|
352
|
+
properties: {
|
|
353
|
+
port: {
|
|
354
|
+
type: "number"
|
|
355
|
+
},
|
|
356
|
+
type: {
|
|
357
|
+
type: "string",
|
|
358
|
+
"enum": [
|
|
359
|
+
"api",
|
|
360
|
+
"web",
|
|
361
|
+
"websocket",
|
|
362
|
+
"webapi",
|
|
363
|
+
"none"
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
health_checks: {
|
|
367
|
+
type: "array",
|
|
368
|
+
items: {
|
|
369
|
+
$ref: "#/components/schemas/HealthCheck"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
required: [
|
|
374
|
+
"port"
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
HealthCheck: {
|
|
378
|
+
oneOf: [
|
|
379
|
+
{
|
|
380
|
+
$ref: "#/components/schemas/HttpHealthCheck"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
$ref: "#/components/schemas/WebSocketHealthCheck"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
HttpHealthCheck: {
|
|
388
|
+
type: "object",
|
|
389
|
+
properties: {
|
|
390
|
+
type: {
|
|
391
|
+
type: "string",
|
|
392
|
+
"enum": [
|
|
393
|
+
"http"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
path: {
|
|
397
|
+
type: "string"
|
|
398
|
+
},
|
|
399
|
+
method: {
|
|
400
|
+
type: "string",
|
|
401
|
+
"enum": [
|
|
402
|
+
"GET",
|
|
403
|
+
"POST",
|
|
404
|
+
"PUT",
|
|
405
|
+
"DELETE"
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
expected_status: {
|
|
409
|
+
type: "number"
|
|
410
|
+
},
|
|
411
|
+
headers: {
|
|
412
|
+
$ref: "#/components/schemas/Recordstringstring"
|
|
413
|
+
},
|
|
414
|
+
body: {},
|
|
415
|
+
continuous: {
|
|
416
|
+
type: "boolean"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
required: [
|
|
420
|
+
"type",
|
|
421
|
+
"path",
|
|
422
|
+
"method",
|
|
423
|
+
"expected_status",
|
|
424
|
+
"continuous"
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
Recordstringstring: {
|
|
428
|
+
type: "object",
|
|
429
|
+
properties: {},
|
|
430
|
+
required: [],
|
|
431
|
+
description: "Construct a type with a set of properties K of type T",
|
|
432
|
+
additionalProperties: {
|
|
433
|
+
type: "string"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
WebSocketHealthCheck: {
|
|
437
|
+
type: "object",
|
|
438
|
+
properties: {
|
|
439
|
+
type: {
|
|
440
|
+
type: "string",
|
|
441
|
+
"enum": [
|
|
442
|
+
"websocket"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
expected_response: {
|
|
446
|
+
type: "string"
|
|
447
|
+
},
|
|
448
|
+
continuous: {
|
|
449
|
+
type: "boolean"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
required: [
|
|
453
|
+
"type",
|
|
454
|
+
"expected_response",
|
|
455
|
+
"continuous"
|
|
456
|
+
]
|
|
457
|
+
},
|
|
344
458
|
UniqueExposedPorts: {
|
|
345
459
|
type: "array",
|
|
346
460
|
items: {
|
|
@@ -365,6 +479,9 @@ export const jobSchemas = {
|
|
|
365
479
|
required: [
|
|
366
480
|
"__spread__"
|
|
367
481
|
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
$ref: "#/components/schemas/ExposedPort"
|
|
368
485
|
}
|
|
369
486
|
]
|
|
370
487
|
},
|
package/dist/Schemas/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0D,CAAC"}
|
package/package.json
CHANGED