@nosana/types 0.1.12 → 0.1.18
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/Diagnostics/reason.d.ts +3 -2
- package/dist/Jobs/Diagnostics/state.d.ts +10 -4
- package/dist/Jobs/Flows/index.d.ts +9 -4
- package/dist/Jobs/JobDefinition/meta/index.d.ts +1 -1
- package/dist/Jobs/index.js +184 -154
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +85 -10
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
package/dist/Jobs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./Diagnostics/index.js";
|
|
|
6
6
|
export * from "./Flows/index.js";
|
|
7
7
|
export * from "./JobDefinition/index.js";
|
|
8
8
|
export * from "./Logs/index.js";
|
|
9
|
-
export const validateJobDefinition = (() => { const _io0 = (input, _exceptionable = true) => "container" === input.type && "0.1" === input.version && (undefined === input.logistics || "object" === typeof input.logistics && null !== input.logistics && _io1(input.logistics, true && _exceptionable)) && (undefined === input.deployment_id || "string" === typeof input.deployment_id) && (undefined === input.meta || "object" === typeof input.meta && null !== input.meta && false === Array.isArray(input.meta) && _io4(input.meta, true && _exceptionable)) && (undefined === input.global || "object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) &&
|
|
9
|
+
export const validateJobDefinition = (() => { const _io0 = (input, _exceptionable = true) => "container" === input.type && "0.1" === input.version && (undefined === input.logistics || "object" === typeof input.logistics && null !== input.logistics && _io1(input.logistics, true && _exceptionable)) && (undefined === input.deployment_id || "string" === typeof input.deployment_id) && (undefined === input.meta || "object" === typeof input.meta && null !== input.meta && false === Array.isArray(input.meta) && _io4(input.meta, true && _exceptionable)) && (undefined === input.global || "object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && _io7(input.global, true && _exceptionable)) && (Array.isArray(input.ops) && (Array.isArray(input.ops) && (() => {
|
|
10
10
|
const seen = new Set();
|
|
11
11
|
for (const it of input.ops) {
|
|
12
12
|
if (typeof it?.id !== "string")
|
|
@@ -16,7 +16,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
16
16
|
seen.add(it.id);
|
|
17
17
|
}
|
|
18
18
|
return true;
|
|
19
|
-
})() && input.ops.every((elem, _index1) => "object" === typeof elem && null !== elem &&
|
|
19
|
+
})() && input.ops.every((elem, _index1) => "object" === typeof elem && null !== elem && _io10(elem, true && _exceptionable)))) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
20
20
|
if (["type", "version", "logistics", "deployment_id", "meta", "global", "ops"].some(prop => key === prop))
|
|
21
21
|
return true;
|
|
22
22
|
const value = input[key];
|
|
@@ -50,37 +50,42 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
50
50
|
const value = input[key];
|
|
51
51
|
if (undefined === value)
|
|
52
52
|
return true;
|
|
53
|
-
return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.every((elem, _index2) => "string" === typeof elem || "number" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
53
|
+
return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.every((elem, _index2) => "string" === typeof elem || "number" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value, true && _exceptionable)));
|
|
54
54
|
}); const _io5 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
55
55
|
const value = input[key];
|
|
56
56
|
if (undefined === value)
|
|
57
57
|
return true;
|
|
58
58
|
return "string" === typeof value || "number" === typeof value;
|
|
59
|
-
}); const _io6 = (input, _exceptionable = true) =>
|
|
59
|
+
}); const _io6 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
60
|
+
const value = input[key];
|
|
61
|
+
if (undefined === value)
|
|
62
|
+
return true;
|
|
63
|
+
return null !== value && undefined !== value && ("string" === typeof value || "number" === typeof value || Array.isArray(value) && value.every((elem, _index3) => "string" === typeof elem || "number" === typeof elem));
|
|
64
|
+
}); const _io7 = (input, _exceptionable = true) => (undefined === input.image || "string" === typeof input.image) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index4) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && _io9(input.variables, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
60
65
|
if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
|
|
61
66
|
return true;
|
|
62
67
|
const value = input[key];
|
|
63
68
|
if (undefined === value)
|
|
64
69
|
return true;
|
|
65
70
|
return false;
|
|
66
|
-
})); const
|
|
71
|
+
})); const _io8 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
67
72
|
const value = input[key];
|
|
68
73
|
if (undefined === value)
|
|
69
74
|
return true;
|
|
70
75
|
return "string" === typeof value;
|
|
71
|
-
}); const
|
|
76
|
+
}); const _io9 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
72
77
|
const value = input[key];
|
|
73
78
|
if (undefined === value)
|
|
74
79
|
return true;
|
|
75
80
|
return "string" === typeof value;
|
|
76
|
-
}); const
|
|
81
|
+
}); const _io10 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" "))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io29(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 => {
|
|
77
82
|
if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
|
|
78
83
|
return true;
|
|
79
84
|
const value = input[key];
|
|
80
85
|
if (undefined === value)
|
|
81
86
|
return true;
|
|
82
87
|
return false;
|
|
83
|
-
})); const
|
|
88
|
+
})); const _io11 = (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, _index5) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index6) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index7) => "object" === typeof elem && null !== elem && _io12(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) && ((() => {
|
|
84
89
|
if (!Array.isArray(input.expose))
|
|
85
90
|
return true;
|
|
86
91
|
const numbers = new Set();
|
|
@@ -115,136 +120,136 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
return true;
|
|
118
|
-
})() && input.expose.every((elem,
|
|
123
|
+
})() && input.expose.every((elem, _index8) => 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, _index9) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io8(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "on-failure" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io18(input.restart_policy, true && _exceptionable))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index10) => 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) && _io26(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
119
124
|
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
|
|
120
125
|
return true;
|
|
121
126
|
const value = input[key];
|
|
122
127
|
if (undefined === value)
|
|
123
128
|
return true;
|
|
124
129
|
return false;
|
|
125
|
-
})); const
|
|
130
|
+
})); const _io12 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.dest && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
126
131
|
if (["name", "dest"].some(prop => key === prop))
|
|
127
132
|
return true;
|
|
128
133
|
const value = input[key];
|
|
129
134
|
if (undefined === value)
|
|
130
135
|
return true;
|
|
131
136
|
return false;
|
|
132
|
-
})); const
|
|
137
|
+
})); const _io13 = (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 => {
|
|
133
138
|
if (["__spread__", "chunked"].some(prop => key === prop))
|
|
134
139
|
return true;
|
|
135
140
|
const value = input[key];
|
|
136
141
|
if (undefined === value)
|
|
137
142
|
return true;
|
|
138
143
|
return false;
|
|
139
|
-
})); const
|
|
144
|
+
})); const _io14 = (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, _index11) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
140
145
|
if (["port", "type", "health_checks"].some(prop => key === prop))
|
|
141
146
|
return true;
|
|
142
147
|
const value = input[key];
|
|
143
148
|
if (undefined === value)
|
|
144
149
|
return true;
|
|
145
150
|
return false;
|
|
146
|
-
})); const
|
|
151
|
+
})); const _io15 = (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) && _io16(input.headers, true && _exceptionable)) && true && "boolean" === typeof input.continuous && (5 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
147
152
|
if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
|
|
148
153
|
return true;
|
|
149
154
|
const value = input[key];
|
|
150
155
|
if (undefined === value)
|
|
151
156
|
return true;
|
|
152
157
|
return false;
|
|
153
|
-
})); const
|
|
158
|
+
})); const _io16 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
154
159
|
const value = input[key];
|
|
155
160
|
if (undefined === value)
|
|
156
161
|
return true;
|
|
157
162
|
return "string" === typeof value;
|
|
158
|
-
}); const
|
|
163
|
+
}); const _io17 = (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 => {
|
|
159
164
|
if (["type", "expected_response", "continuous"].some(prop => key === prop))
|
|
160
165
|
return true;
|
|
161
166
|
const value = input[key];
|
|
162
167
|
if (undefined === value)
|
|
163
168
|
return true;
|
|
164
169
|
return false;
|
|
165
|
-
})); const
|
|
170
|
+
})); const _io18 = (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 => {
|
|
166
171
|
if (["policy", "restart_tries"].some(prop => key === prop))
|
|
167
172
|
return true;
|
|
168
173
|
const value = input[key];
|
|
169
174
|
if (undefined === value)
|
|
170
175
|
return true;
|
|
171
176
|
return false;
|
|
172
|
-
})); const
|
|
177
|
+
})); const _io19 = (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, _index12) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io20(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
173
178
|
if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
|
|
174
179
|
return true;
|
|
175
180
|
const value = input[key];
|
|
176
181
|
if (undefined === value)
|
|
177
182
|
return true;
|
|
178
183
|
return false;
|
|
179
|
-
})); const
|
|
184
|
+
})); const _io20 = (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 => {
|
|
180
185
|
if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
|
|
181
186
|
return true;
|
|
182
187
|
const value = input[key];
|
|
183
188
|
if (undefined === value)
|
|
184
189
|
return true;
|
|
185
190
|
return false;
|
|
186
|
-
})); const
|
|
191
|
+
})); const _io21 = (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 && _io20(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
187
192
|
if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
188
193
|
return true;
|
|
189
194
|
const value = input[key];
|
|
190
195
|
if (undefined === value)
|
|
191
196
|
return true;
|
|
192
197
|
return false;
|
|
193
|
-
})); const
|
|
198
|
+
})); const _io22 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index13) => "object" === typeof elem && null !== elem && _io23(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 && _io20(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
194
199
|
if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
195
200
|
return true;
|
|
196
201
|
const value = input[key];
|
|
197
202
|
if (undefined === value)
|
|
198
203
|
return true;
|
|
199
204
|
return false;
|
|
200
|
-
})); const
|
|
205
|
+
})); const _io23 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index14) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
201
206
|
if (["url", "files"].some(prop => key === prop))
|
|
202
207
|
return true;
|
|
203
208
|
const value = input[key];
|
|
204
209
|
if (undefined === value)
|
|
205
210
|
return true;
|
|
206
211
|
return false;
|
|
207
|
-
})); const
|
|
212
|
+
})); const _io24 = (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, _index15) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
208
213
|
if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
|
|
209
214
|
return true;
|
|
210
215
|
const value = input[key];
|
|
211
216
|
if (undefined === value)
|
|
212
217
|
return true;
|
|
213
218
|
return false;
|
|
214
|
-
})); const
|
|
219
|
+
})); const _io25 = (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 => {
|
|
215
220
|
if (["type", "model", "target"].some(prop => key === prop))
|
|
216
221
|
return true;
|
|
217
222
|
const value = input[key];
|
|
218
223
|
if (undefined === value)
|
|
219
224
|
return true;
|
|
220
225
|
return false;
|
|
221
|
-
})); const
|
|
226
|
+
})); const _io26 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io27(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
222
227
|
if (["docker"].some(prop => key === prop))
|
|
223
228
|
return true;
|
|
224
229
|
const value = input[key];
|
|
225
230
|
if (undefined === value)
|
|
226
231
|
return true;
|
|
227
232
|
return false;
|
|
228
|
-
})); const
|
|
233
|
+
})); const _io27 = (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 => {
|
|
229
234
|
if (["username", "password", "email", "server"].some(prop => key === prop))
|
|
230
235
|
return true;
|
|
231
236
|
const value = input[key];
|
|
232
237
|
if (undefined === value)
|
|
233
238
|
return true;
|
|
234
239
|
return false;
|
|
235
|
-
})); const
|
|
240
|
+
})); const _io28 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
236
241
|
if (["name"].some(prop => key === prop))
|
|
237
242
|
return true;
|
|
238
243
|
const value = input[key];
|
|
239
244
|
if (undefined === value)
|
|
240
245
|
return true;
|
|
241
246
|
return false;
|
|
242
|
-
})); const
|
|
247
|
+
})); const _io29 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
243
248
|
const value = input[key];
|
|
244
249
|
if (undefined === value)
|
|
245
250
|
return true;
|
|
246
|
-
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value &&
|
|
247
|
-
}); const
|
|
251
|
+
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io30(value, true && _exceptionable));
|
|
252
|
+
}); const _io30 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
|
|
248
253
|
const seen = new Set();
|
|
249
254
|
for (const v of input.logType) {
|
|
250
255
|
if (seen.has(v))
|
|
@@ -252,21 +257,21 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
252
257
|
seen.add(v);
|
|
253
258
|
}
|
|
254
259
|
return true;
|
|
255
|
-
})() && input.logType.every((elem,
|
|
260
|
+
})() && input.logType.every((elem, _index16) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
256
261
|
if (["regex", "logType"].some(prop => key === prop))
|
|
257
262
|
return true;
|
|
258
263
|
const value = input[key];
|
|
259
264
|
if (undefined === value)
|
|
260
265
|
return true;
|
|
261
266
|
return false;
|
|
262
|
-
})); const
|
|
267
|
+
})); const _io31 = (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 => {
|
|
263
268
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
264
269
|
return true;
|
|
265
270
|
const value = input[key];
|
|
266
271
|
if (undefined === value)
|
|
267
272
|
return true;
|
|
268
273
|
return false;
|
|
269
|
-
})); const
|
|
274
|
+
})); const _io32 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index17) => "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 => {
|
|
270
275
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
271
276
|
return true;
|
|
272
277
|
const value = input[key];
|
|
@@ -275,43 +280,43 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
275
280
|
return false;
|
|
276
281
|
})); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
277
282
|
if ("http" === input.type)
|
|
278
|
-
return
|
|
283
|
+
return _io15(input, true && _exceptionable);
|
|
279
284
|
else if ("websocket" === input.type)
|
|
280
|
-
return
|
|
285
|
+
return _io17(input, true && _exceptionable);
|
|
281
286
|
else
|
|
282
287
|
return false;
|
|
283
288
|
})(); const _iu1 = (input, _exceptionable = true) => (() => {
|
|
284
289
|
if (undefined !== input.__spread__)
|
|
285
|
-
return _io12(input, true && _exceptionable);
|
|
286
|
-
else if (undefined !== input.port)
|
|
287
290
|
return _io13(input, true && _exceptionable);
|
|
291
|
+
else if (undefined !== input.port)
|
|
292
|
+
return _io14(input, true && _exceptionable);
|
|
288
293
|
else
|
|
289
294
|
return false;
|
|
290
295
|
})(); const _iu2 = (input, _exceptionable = true) => (() => {
|
|
291
296
|
if (undefined !== input.__spread__)
|
|
292
|
-
return
|
|
297
|
+
return _io13(input, true && _exceptionable);
|
|
293
298
|
else if (undefined !== input.bucket)
|
|
294
|
-
return _io20(input, true && _exceptionable);
|
|
295
|
-
else if (undefined !== input.buckets)
|
|
296
299
|
return _io21(input, true && _exceptionable);
|
|
300
|
+
else if (undefined !== input.buckets)
|
|
301
|
+
return _io22(input, true && _exceptionable);
|
|
297
302
|
else if ("HF" === input.type)
|
|
298
|
-
return _io23(input, true && _exceptionable);
|
|
299
|
-
else if ("Ollama" === input.type)
|
|
300
303
|
return _io24(input, true && _exceptionable);
|
|
304
|
+
else if ("Ollama" === input.type)
|
|
305
|
+
return _io25(input, true && _exceptionable);
|
|
301
306
|
else
|
|
302
|
-
return
|
|
307
|
+
return _io19(input, true && _exceptionable);
|
|
303
308
|
})(); const _iu3 = (input, _exceptionable = true) => (() => {
|
|
304
309
|
if (undefined !== input.image)
|
|
305
|
-
return
|
|
310
|
+
return _io11(input, true && _exceptionable);
|
|
306
311
|
else if (undefined !== input.name)
|
|
307
|
-
return
|
|
312
|
+
return _io28(input, true && _exceptionable);
|
|
308
313
|
else
|
|
309
314
|
return false;
|
|
310
315
|
})(); const _iu4 = (input, _exceptionable = true) => (() => {
|
|
311
|
-
if (Array.isArray(input.depends_on) && input.depends_on.every((elem,
|
|
312
|
-
return
|
|
316
|
+
if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index18) => "string" === typeof elem))
|
|
317
|
+
return _io32(input, true && _exceptionable);
|
|
313
318
|
else
|
|
314
|
-
return
|
|
319
|
+
return _io31(input, true && _exceptionable);
|
|
315
320
|
})(); const _vo0 = (input, _path, _exceptionable = true) => ["container" === input.type || _report(_exceptionable, {
|
|
316
321
|
path: _path + ".type",
|
|
317
322
|
expected: "\"container\"",
|
|
@@ -344,7 +349,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
344
349
|
path: _path + ".global",
|
|
345
350
|
expected: "(Global | undefined)",
|
|
346
351
|
value: input.global
|
|
347
|
-
})) &&
|
|
352
|
+
})) && _vo7(input.global, _path + ".global", true && _exceptionable) || _report(_exceptionable, {
|
|
348
353
|
path: _path + ".global",
|
|
349
354
|
expected: "(Global | undefined)",
|
|
350
355
|
value: input.global
|
|
@@ -366,12 +371,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
366
371
|
path: _path + ".ops",
|
|
367
372
|
expected: "Array<> & UniqueById",
|
|
368
373
|
value: input.ops
|
|
369
|
-
})) && input.ops.map((elem,
|
|
370
|
-
path: _path + ".ops[" +
|
|
374
|
+
})) && input.ops.map((elem, _index19) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
375
|
+
path: _path + ".ops[" + _index19 + "]",
|
|
371
376
|
expected: "Operation<keyof OperationArgsMap>",
|
|
372
377
|
value: elem
|
|
373
|
-
})) &&
|
|
374
|
-
path: _path + ".ops[" +
|
|
378
|
+
})) && _vo10(elem, _path + ".ops[" + _index19 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
379
|
+
path: _path + ".ops[" + _index19 + "]",
|
|
375
380
|
expected: "Operation<keyof OperationArgsMap>",
|
|
376
381
|
value: elem
|
|
377
382
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -494,19 +499,19 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
494
499
|
return true;
|
|
495
500
|
return (null !== value || _report(_exceptionable, {
|
|
496
501
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
497
|
-
expected: "(Array<string | number> | Record<string, string | number> | number | string | undefined)",
|
|
502
|
+
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
498
503
|
value: value
|
|
499
|
-
})) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem,
|
|
500
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
504
|
+
})) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem, _index20) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
505
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index20 + "]",
|
|
501
506
|
expected: "(number | string)",
|
|
502
507
|
value: elem
|
|
503
|
-
})).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
508
|
+
})).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
504
509
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
505
|
-
expected: "(Array<string | number> | Record<string, string | number> | number | string | undefined)",
|
|
510
|
+
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
506
511
|
value: value
|
|
507
512
|
})) || _report(_exceptionable, {
|
|
508
513
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
509
|
-
expected: "(Array<string | number> | Record<string, string | number> | number | string | undefined)",
|
|
514
|
+
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
510
515
|
value: value
|
|
511
516
|
}));
|
|
512
517
|
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
@@ -518,7 +523,32 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
518
523
|
expected: "(number | string)",
|
|
519
524
|
value: value
|
|
520
525
|
});
|
|
521
|
-
}).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [
|
|
526
|
+
}).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
527
|
+
const value = input[key];
|
|
528
|
+
if (undefined === value)
|
|
529
|
+
return true;
|
|
530
|
+
return (null !== value || _report(_exceptionable, {
|
|
531
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
532
|
+
expected: "(Array<string | number> | number | string)",
|
|
533
|
+
value: value
|
|
534
|
+
})) && (undefined !== value || _report(_exceptionable, {
|
|
535
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
536
|
+
expected: "(Array<string | number> | number | string)",
|
|
537
|
+
value: value
|
|
538
|
+
})) && ("string" === typeof value || "number" === typeof value || (Array.isArray(value) || _report(_exceptionable, {
|
|
539
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
540
|
+
expected: "(Array<string | number> | number | string)",
|
|
541
|
+
value: value
|
|
542
|
+
})) && value.map((elem, _index21) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
543
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index21 + "]",
|
|
544
|
+
expected: "(number | string)",
|
|
545
|
+
value: elem
|
|
546
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
547
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
548
|
+
expected: "(Array<string | number> | number | string)",
|
|
549
|
+
value: value
|
|
550
|
+
}));
|
|
551
|
+
}).every(flag => flag)].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
522
552
|
path: _path + ".image",
|
|
523
553
|
expected: "(string | undefined)",
|
|
524
554
|
value: input.image
|
|
@@ -534,8 +564,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
534
564
|
path: _path + ".entrypoint",
|
|
535
565
|
expected: "(CMDArray | string | undefined)",
|
|
536
566
|
value: input.entrypoint
|
|
537
|
-
})) && input.entrypoint.map((elem,
|
|
538
|
-
path: _path + ".entrypoint[" +
|
|
567
|
+
})) && input.entrypoint.map((elem, _index22) => "string" === typeof elem || _report(_exceptionable, {
|
|
568
|
+
path: _path + ".entrypoint[" + _index22 + "]",
|
|
539
569
|
expected: "string",
|
|
540
570
|
value: elem
|
|
541
571
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -546,7 +576,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
546
576
|
path: _path + ".env",
|
|
547
577
|
expected: "(Env | undefined)",
|
|
548
578
|
value: input.env
|
|
549
|
-
})) &&
|
|
579
|
+
})) && _vo8(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
550
580
|
path: _path + ".env",
|
|
551
581
|
expected: "(Env | undefined)",
|
|
552
582
|
value: input.env
|
|
@@ -558,7 +588,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
558
588
|
path: _path + ".variables",
|
|
559
589
|
expected: "(Variables | undefined)",
|
|
560
590
|
value: input.variables
|
|
561
|
-
})) &&
|
|
591
|
+
})) && _vo9(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
|
|
562
592
|
path: _path + ".variables",
|
|
563
593
|
expected: "(Variables | undefined)",
|
|
564
594
|
value: input.variables
|
|
@@ -578,7 +608,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
578
608
|
"Please remove the property next time."
|
|
579
609
|
].join("\n")
|
|
580
610
|
});
|
|
581
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
611
|
+
}).every(flag => flag))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
582
612
|
const value = input[key];
|
|
583
613
|
if (undefined === value)
|
|
584
614
|
return true;
|
|
@@ -587,7 +617,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
587
617
|
expected: "string",
|
|
588
618
|
value: value
|
|
589
619
|
});
|
|
590
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
620
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
591
621
|
const value = input[key];
|
|
592
622
|
if (undefined === value)
|
|
593
623
|
return true;
|
|
@@ -596,7 +626,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
596
626
|
expected: "string",
|
|
597
627
|
value: value
|
|
598
628
|
});
|
|
599
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
629
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || _report(_exceptionable, {
|
|
600
630
|
path: _path + ".type",
|
|
601
631
|
expected: "(\"container/create-volume\" | \"container/run\")",
|
|
602
632
|
value: input.type
|
|
@@ -620,7 +650,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
620
650
|
path: _path + ".results",
|
|
621
651
|
expected: "(OperationResults | undefined)",
|
|
622
652
|
value: input.results
|
|
623
|
-
})) &&
|
|
653
|
+
})) && _vo29(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
|
|
624
654
|
path: _path + ".results",
|
|
625
655
|
expected: "(OperationResults | undefined)",
|
|
626
656
|
value: input.results
|
|
@@ -648,7 +678,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
648
678
|
"Please remove the property next time."
|
|
649
679
|
].join("\n")
|
|
650
680
|
});
|
|
651
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
681
|
+
}).every(flag => flag))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
|
|
652
682
|
path: _path + ".image",
|
|
653
683
|
expected: "string",
|
|
654
684
|
value: input.image
|
|
@@ -660,8 +690,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
660
690
|
path: _path + ".aliases",
|
|
661
691
|
expected: "(Aliases | string | undefined)",
|
|
662
692
|
value: input.aliases
|
|
663
|
-
})) && input.aliases.map((elem,
|
|
664
|
-
path: _path + ".aliases[" +
|
|
693
|
+
})) && input.aliases.map((elem, _index23) => "string" === typeof elem || _report(_exceptionable, {
|
|
694
|
+
path: _path + ".aliases[" + _index23 + "]",
|
|
665
695
|
expected: "string",
|
|
666
696
|
value: elem
|
|
667
697
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -676,8 +706,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
676
706
|
path: _path + ".cmd",
|
|
677
707
|
expected: "(CMDArray | string | undefined)",
|
|
678
708
|
value: input.cmd
|
|
679
|
-
})) && input.cmd.map((elem,
|
|
680
|
-
path: _path + ".cmd[" +
|
|
709
|
+
})) && input.cmd.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
710
|
+
path: _path + ".cmd[" + _index24 + "]",
|
|
681
711
|
expected: "string",
|
|
682
712
|
value: elem
|
|
683
713
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -688,12 +718,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
688
718
|
path: _path + ".volumes",
|
|
689
719
|
expected: "(Array<Volume> | undefined)",
|
|
690
720
|
value: input.volumes
|
|
691
|
-
})) && input.volumes.map((elem,
|
|
692
|
-
path: _path + ".volumes[" +
|
|
721
|
+
})) && input.volumes.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
722
|
+
path: _path + ".volumes[" + _index25 + "]",
|
|
693
723
|
expected: "Volume",
|
|
694
724
|
value: elem
|
|
695
|
-
})) &&
|
|
696
|
-
path: _path + ".volumes[" +
|
|
725
|
+
})) && _vo12(elem, _path + ".volumes[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
726
|
+
path: _path + ".volumes[" + _index25 + "]",
|
|
697
727
|
expected: "Volume",
|
|
698
728
|
value: elem
|
|
699
729
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -747,24 +777,24 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
747
777
|
path: _path + ".expose",
|
|
748
778
|
expected: "Array<> & TagBase<__type>",
|
|
749
779
|
value: input.expose
|
|
750
|
-
})) && input.expose.map((elem,
|
|
751
|
-
path: _path + ".expose[" +
|
|
780
|
+
})) && input.expose.map((elem, _index26) => (null !== elem || _report(_exceptionable, {
|
|
781
|
+
path: _path + ".expose[" + _index26 + "]",
|
|
752
782
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
753
783
|
value: elem
|
|
754
784
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
755
|
-
path: _path + ".expose[" +
|
|
785
|
+
path: _path + ".expose[" + _index26 + "]",
|
|
756
786
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
757
787
|
value: elem
|
|
758
788
|
})) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
|
|
759
|
-
path: _path + ".expose[" +
|
|
789
|
+
path: _path + ".expose[" + _index26 + "]",
|
|
760
790
|
expected: "string & TagBase<__type>",
|
|
761
791
|
value: elem
|
|
762
792
|
})) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
763
|
-
path: _path + ".expose[" +
|
|
793
|
+
path: _path + ".expose[" + _index26 + "]",
|
|
764
794
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
765
795
|
value: elem
|
|
766
|
-
})) && _vu1(elem, _path + ".expose[" +
|
|
767
|
-
path: _path + ".expose[" +
|
|
796
|
+
})) && _vu1(elem, _path + ".expose[" + _index26 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
797
|
+
path: _path + ".expose[" + _index26 + "]",
|
|
768
798
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
769
799
|
value: elem
|
|
770
800
|
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
|
|
@@ -791,8 +821,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
791
821
|
path: _path + ".entrypoint",
|
|
792
822
|
expected: "(CMDArray | string | undefined)",
|
|
793
823
|
value: input.entrypoint
|
|
794
|
-
})) && input.entrypoint.map((elem,
|
|
795
|
-
path: _path + ".entrypoint[" +
|
|
824
|
+
})) && input.entrypoint.map((elem, _index27) => "string" === typeof elem || _report(_exceptionable, {
|
|
825
|
+
path: _path + ".entrypoint[" + _index27 + "]",
|
|
796
826
|
expected: "string",
|
|
797
827
|
value: elem
|
|
798
828
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -803,7 +833,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
803
833
|
path: _path + ".env",
|
|
804
834
|
expected: "(Env | undefined)",
|
|
805
835
|
value: input.env
|
|
806
|
-
})) &&
|
|
836
|
+
})) && _vo8(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
807
837
|
path: _path + ".env",
|
|
808
838
|
expected: "(Env | undefined)",
|
|
809
839
|
value: input.env
|
|
@@ -815,7 +845,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
815
845
|
path: _path + ".restart_policy",
|
|
816
846
|
expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
|
|
817
847
|
value: input.restart_policy
|
|
818
|
-
})) &&
|
|
848
|
+
})) && _vo18(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
|
|
819
849
|
path: _path + ".restart_policy",
|
|
820
850
|
expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
|
|
821
851
|
value: input.restart_policy
|
|
@@ -827,20 +857,20 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
827
857
|
path: _path + ".resources",
|
|
828
858
|
expected: "(Resources | undefined)",
|
|
829
859
|
value: input.resources
|
|
830
|
-
})) && input.resources.map((elem,
|
|
831
|
-
path: _path + ".resources[" +
|
|
860
|
+
})) && input.resources.map((elem, _index28) => (null !== elem || _report(_exceptionable, {
|
|
861
|
+
path: _path + ".resources[" + _index28 + "]",
|
|
832
862
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
833
863
|
value: elem
|
|
834
864
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
835
|
-
path: _path + ".resources[" +
|
|
865
|
+
path: _path + ".resources[" + _index28 + "]",
|
|
836
866
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
837
867
|
value: elem
|
|
838
868
|
})) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
839
|
-
path: _path + ".resources[" +
|
|
869
|
+
path: _path + ".resources[" + _index28 + "]",
|
|
840
870
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
841
871
|
value: elem
|
|
842
|
-
})) && _vu2(elem, _path + ".resources[" +
|
|
843
|
-
path: _path + ".resources[" +
|
|
872
|
+
})) && _vu2(elem, _path + ".resources[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
873
|
+
path: _path + ".resources[" + _index28 + "]",
|
|
844
874
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
845
875
|
value: elem
|
|
846
876
|
}))).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -851,7 +881,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
851
881
|
path: _path + ".authentication",
|
|
852
882
|
expected: "(Authentication | undefined)",
|
|
853
883
|
value: input.authentication
|
|
854
|
-
})) &&
|
|
884
|
+
})) && _vo26(input.authentication, _path + ".authentication", true && _exceptionable) || _report(_exceptionable, {
|
|
855
885
|
path: _path + ".authentication",
|
|
856
886
|
expected: "(Authentication | undefined)",
|
|
857
887
|
value: input.authentication
|
|
@@ -871,7 +901,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
871
901
|
"Please remove the property next time."
|
|
872
902
|
].join("\n")
|
|
873
903
|
});
|
|
874
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
904
|
+
}).every(flag => flag))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
875
905
|
path: _path + ".name",
|
|
876
906
|
expected: "string",
|
|
877
907
|
value: input.name
|
|
@@ -895,7 +925,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
895
925
|
"Please remove the property next time."
|
|
896
926
|
].join("\n")
|
|
897
927
|
});
|
|
898
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
928
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
|
|
899
929
|
path: _path + ".__spread__",
|
|
900
930
|
expected: "string & TagBase<__type>",
|
|
901
931
|
value: input.__spread__
|
|
@@ -923,7 +953,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
923
953
|
"Please remove the property next time."
|
|
924
954
|
].join("\n")
|
|
925
955
|
});
|
|
926
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
956
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
|
|
927
957
|
path: _path + ".port",
|
|
928
958
|
expected: "number",
|
|
929
959
|
value: input.port
|
|
@@ -935,12 +965,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
935
965
|
path: _path + ".health_checks",
|
|
936
966
|
expected: "(Array<HealthCheck> | undefined)",
|
|
937
967
|
value: input.health_checks
|
|
938
|
-
})) && input.health_checks.map((elem,
|
|
939
|
-
path: _path + ".health_checks[" +
|
|
968
|
+
})) && input.health_checks.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
969
|
+
path: _path + ".health_checks[" + _index29 + "]",
|
|
940
970
|
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
941
971
|
value: elem
|
|
942
|
-
})) && _vu0(elem, _path + ".health_checks[" +
|
|
943
|
-
path: _path + ".health_checks[" +
|
|
972
|
+
})) && _vu0(elem, _path + ".health_checks[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
973
|
+
path: _path + ".health_checks[" + _index29 + "]",
|
|
944
974
|
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
945
975
|
value: elem
|
|
946
976
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -963,7 +993,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
963
993
|
"Please remove the property next time."
|
|
964
994
|
].join("\n")
|
|
965
995
|
});
|
|
966
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
996
|
+
}).every(flag => flag))].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["http" === input.type || _report(_exceptionable, {
|
|
967
997
|
path: _path + ".type",
|
|
968
998
|
expected: "\"http\"",
|
|
969
999
|
value: input.type
|
|
@@ -983,7 +1013,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
983
1013
|
path: _path + ".headers",
|
|
984
1014
|
expected: "(Record<string, string> | undefined)",
|
|
985
1015
|
value: input.headers
|
|
986
|
-
})) &&
|
|
1016
|
+
})) && _vo16(input.headers, _path + ".headers", true && _exceptionable) || _report(_exceptionable, {
|
|
987
1017
|
path: _path + ".headers",
|
|
988
1018
|
expected: "(Record<string, string> | undefined)",
|
|
989
1019
|
value: input.headers
|
|
@@ -1007,7 +1037,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1007
1037
|
"Please remove the property next time."
|
|
1008
1038
|
].join("\n")
|
|
1009
1039
|
});
|
|
1010
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1040
|
+
}).every(flag => flag))].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1011
1041
|
const value = input[key];
|
|
1012
1042
|
if (undefined === value)
|
|
1013
1043
|
return true;
|
|
@@ -1016,7 +1046,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1016
1046
|
expected: "string",
|
|
1017
1047
|
value: value
|
|
1018
1048
|
});
|
|
1019
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1049
|
+
}).every(flag => flag)].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => ["websocket" === input.type || _report(_exceptionable, {
|
|
1020
1050
|
path: _path + ".type",
|
|
1021
1051
|
expected: "\"websocket\"",
|
|
1022
1052
|
value: input.type
|
|
@@ -1044,7 +1074,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1044
1074
|
"Please remove the property next time."
|
|
1045
1075
|
].join("\n")
|
|
1046
1076
|
});
|
|
1047
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1077
|
+
}).every(flag => flag))].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["on-failure" === input.policy || _report(_exceptionable, {
|
|
1048
1078
|
path: _path + ".policy",
|
|
1049
1079
|
expected: "\"on-failure\"",
|
|
1050
1080
|
value: input.policy
|
|
@@ -1068,7 +1098,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1068
1098
|
"Please remove the property next time."
|
|
1069
1099
|
].join("\n")
|
|
1070
1100
|
});
|
|
1071
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1101
|
+
}).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1072
1102
|
path: _path + ".type",
|
|
1073
1103
|
expected: "\"S3\"",
|
|
1074
1104
|
value: input.type
|
|
@@ -1088,8 +1118,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1088
1118
|
path: _path + ".files",
|
|
1089
1119
|
expected: "(Array<string> | undefined)",
|
|
1090
1120
|
value: input.files
|
|
1091
|
-
})) && input.files.map((elem,
|
|
1092
|
-
path: _path + ".files[" +
|
|
1121
|
+
})) && input.files.map((elem, _index30) => "string" === typeof elem || _report(_exceptionable, {
|
|
1122
|
+
path: _path + ".files[" + _index30 + "]",
|
|
1093
1123
|
expected: "string",
|
|
1094
1124
|
value: elem
|
|
1095
1125
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1100,7 +1130,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1100
1130
|
path: _path + ".IAM",
|
|
1101
1131
|
expected: "(S3Auth | undefined)",
|
|
1102
1132
|
value: input.IAM
|
|
1103
|
-
})) &&
|
|
1133
|
+
})) && _vo20(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1104
1134
|
path: _path + ".IAM",
|
|
1105
1135
|
expected: "(S3Auth | undefined)",
|
|
1106
1136
|
value: input.IAM
|
|
@@ -1120,7 +1150,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1120
1150
|
"Please remove the property next time."
|
|
1121
1151
|
].join("\n")
|
|
1122
1152
|
});
|
|
1123
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1153
|
+
}).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
|
|
1124
1154
|
path: _path + ".REGION",
|
|
1125
1155
|
expected: "string",
|
|
1126
1156
|
value: input.REGION
|
|
@@ -1148,7 +1178,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1148
1178
|
"Please remove the property next time."
|
|
1149
1179
|
].join("\n")
|
|
1150
1180
|
});
|
|
1151
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1181
|
+
}).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1152
1182
|
path: _path + ".type",
|
|
1153
1183
|
expected: "\"S3\"",
|
|
1154
1184
|
value: input.type
|
|
@@ -1172,7 +1202,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1172
1202
|
path: _path + ".IAM",
|
|
1173
1203
|
expected: "(S3Auth | undefined)",
|
|
1174
1204
|
value: input.IAM
|
|
1175
|
-
})) &&
|
|
1205
|
+
})) && _vo20(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1176
1206
|
path: _path + ".IAM",
|
|
1177
1207
|
expected: "(S3Auth | undefined)",
|
|
1178
1208
|
value: input.IAM
|
|
@@ -1192,7 +1222,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1192
1222
|
"Please remove the property next time."
|
|
1193
1223
|
].join("\n")
|
|
1194
1224
|
});
|
|
1195
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1225
|
+
}).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1196
1226
|
path: _path + ".type",
|
|
1197
1227
|
expected: "\"S3\"",
|
|
1198
1228
|
value: input.type
|
|
@@ -1204,12 +1234,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1204
1234
|
path: _path + ".buckets",
|
|
1205
1235
|
expected: "Array<__type>",
|
|
1206
1236
|
value: input.buckets
|
|
1207
|
-
})) && input.buckets.map((elem,
|
|
1208
|
-
path: _path + ".buckets[" +
|
|
1237
|
+
})) && input.buckets.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1238
|
+
path: _path + ".buckets[" + _index31 + "]",
|
|
1209
1239
|
expected: "__type.o5",
|
|
1210
1240
|
value: elem
|
|
1211
|
-
})) &&
|
|
1212
|
-
path: _path + ".buckets[" +
|
|
1241
|
+
})) && _vo23(elem, _path + ".buckets[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1242
|
+
path: _path + ".buckets[" + _index31 + "]",
|
|
1213
1243
|
expected: "__type.o5",
|
|
1214
1244
|
value: elem
|
|
1215
1245
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1228,7 +1258,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1228
1258
|
path: _path + ".IAM",
|
|
1229
1259
|
expected: "(S3Auth | undefined)",
|
|
1230
1260
|
value: input.IAM
|
|
1231
|
-
})) &&
|
|
1261
|
+
})) && _vo20(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1232
1262
|
path: _path + ".IAM",
|
|
1233
1263
|
expected: "(S3Auth | undefined)",
|
|
1234
1264
|
value: input.IAM
|
|
@@ -1248,7 +1278,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1248
1278
|
"Please remove the property next time."
|
|
1249
1279
|
].join("\n")
|
|
1250
1280
|
});
|
|
1251
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1281
|
+
}).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
1252
1282
|
path: _path + ".url",
|
|
1253
1283
|
expected: "string",
|
|
1254
1284
|
value: input.url
|
|
@@ -1256,8 +1286,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1256
1286
|
path: _path + ".files",
|
|
1257
1287
|
expected: "(Array<string> | undefined)",
|
|
1258
1288
|
value: input.files
|
|
1259
|
-
})) && input.files.map((elem,
|
|
1260
|
-
path: _path + ".files[" +
|
|
1289
|
+
})) && input.files.map((elem, _index32) => "string" === typeof elem || _report(_exceptionable, {
|
|
1290
|
+
path: _path + ".files[" + _index32 + "]",
|
|
1261
1291
|
expected: "string",
|
|
1262
1292
|
value: elem
|
|
1263
1293
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1280,7 +1310,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1280
1310
|
"Please remove the property next time."
|
|
1281
1311
|
].join("\n")
|
|
1282
1312
|
});
|
|
1283
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1313
|
+
}).every(flag => flag))].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
|
|
1284
1314
|
path: _path + ".type",
|
|
1285
1315
|
expected: "\"HF\"",
|
|
1286
1316
|
value: input.type
|
|
@@ -1300,8 +1330,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1300
1330
|
path: _path + ".files",
|
|
1301
1331
|
expected: "(Array<string> | undefined)",
|
|
1302
1332
|
value: input.files
|
|
1303
|
-
})) && input.files.map((elem,
|
|
1304
|
-
path: _path + ".files[" +
|
|
1333
|
+
})) && input.files.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
1334
|
+
path: _path + ".files[" + _index33 + "]",
|
|
1305
1335
|
expected: "string",
|
|
1306
1336
|
value: elem
|
|
1307
1337
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1328,7 +1358,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1328
1358
|
"Please remove the property next time."
|
|
1329
1359
|
].join("\n")
|
|
1330
1360
|
});
|
|
1331
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1361
|
+
}).every(flag => flag))].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
|
|
1332
1362
|
path: _path + ".type",
|
|
1333
1363
|
expected: "\"Ollama\"",
|
|
1334
1364
|
value: input.type
|
|
@@ -1356,11 +1386,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1356
1386
|
"Please remove the property next time."
|
|
1357
1387
|
].join("\n")
|
|
1358
1388
|
});
|
|
1359
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1389
|
+
}).every(flag => flag))].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
|
|
1360
1390
|
path: _path + ".docker",
|
|
1361
1391
|
expected: "(DockerAuth | undefined)",
|
|
1362
1392
|
value: input.docker
|
|
1363
|
-
})) &&
|
|
1393
|
+
})) && _vo27(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
|
|
1364
1394
|
path: _path + ".docker",
|
|
1365
1395
|
expected: "(DockerAuth | undefined)",
|
|
1366
1396
|
value: input.docker
|
|
@@ -1380,7 +1410,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1380
1410
|
"Please remove the property next time."
|
|
1381
1411
|
].join("\n")
|
|
1382
1412
|
});
|
|
1383
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1413
|
+
}).every(flag => flag))].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
1384
1414
|
path: _path + ".username",
|
|
1385
1415
|
expected: "(string | undefined)",
|
|
1386
1416
|
value: input.username
|
|
@@ -1412,7 +1442,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1412
1442
|
"Please remove the property next time."
|
|
1413
1443
|
].join("\n")
|
|
1414
1444
|
});
|
|
1415
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1445
|
+
}).every(flag => flag))].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1416
1446
|
path: _path + ".name",
|
|
1417
1447
|
expected: "string",
|
|
1418
1448
|
value: input.name
|
|
@@ -1432,7 +1462,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1432
1462
|
"Please remove the property next time."
|
|
1433
1463
|
].join("\n")
|
|
1434
1464
|
});
|
|
1435
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1465
|
+
}).every(flag => flag))].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1436
1466
|
const value = input[key];
|
|
1437
1467
|
if (undefined === value)
|
|
1438
1468
|
return true;
|
|
@@ -1448,12 +1478,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1448
1478
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1449
1479
|
expected: "(OperationResult | string)",
|
|
1450
1480
|
value: value
|
|
1451
|
-
})) &&
|
|
1481
|
+
})) && _vo30(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
1452
1482
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1453
1483
|
expected: "(OperationResult | string)",
|
|
1454
1484
|
value: value
|
|
1455
1485
|
}));
|
|
1456
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1486
|
+
}).every(flag => flag)].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
|
|
1457
1487
|
path: _path + ".regex",
|
|
1458
1488
|
expected: "string",
|
|
1459
1489
|
value: input.regex
|
|
@@ -1473,8 +1503,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1473
1503
|
path: _path + ".logType",
|
|
1474
1504
|
expected: "Array<> & UniqueLogTypeTag",
|
|
1475
1505
|
value: input.logType
|
|
1476
|
-
})) && input.logType.map((elem,
|
|
1477
|
-
path: _path + ".logType[" +
|
|
1506
|
+
})) && input.logType.map((elem, _index34) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
|
|
1507
|
+
path: _path + ".logType[" + _index34 + "]",
|
|
1478
1508
|
expected: "(\"nodeerr\" | \"stderr\" | \"stdin\" | \"stdout\")",
|
|
1479
1509
|
value: elem
|
|
1480
1510
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -1497,7 +1527,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1497
1527
|
"Please remove the property next time."
|
|
1498
1528
|
].join("\n")
|
|
1499
1529
|
});
|
|
1500
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1530
|
+
}).every(flag => flag))].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1501
1531
|
path: _path + ".group",
|
|
1502
1532
|
expected: "(string | undefined)",
|
|
1503
1533
|
value: input.group
|
|
@@ -1533,7 +1563,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1533
1563
|
"Please remove the property next time."
|
|
1534
1564
|
].join("\n")
|
|
1535
1565
|
});
|
|
1536
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1566
|
+
}).every(flag => flag))].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1537
1567
|
path: _path + ".group",
|
|
1538
1568
|
expected: "(string | undefined)",
|
|
1539
1569
|
value: input.group
|
|
@@ -1541,8 +1571,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1541
1571
|
path: _path + ".depends_on",
|
|
1542
1572
|
expected: "Array<string>",
|
|
1543
1573
|
value: input.depends_on
|
|
1544
|
-
})) && input.depends_on.map((elem,
|
|
1545
|
-
path: _path + ".depends_on[" +
|
|
1574
|
+
})) && input.depends_on.map((elem, _index35) => "string" === typeof elem || _report(_exceptionable, {
|
|
1575
|
+
path: _path + ".depends_on[" + _index35 + "]",
|
|
1546
1576
|
expected: "string",
|
|
1547
1577
|
value: elem
|
|
1548
1578
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1571,9 +1601,9 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1571
1601
|
});
|
|
1572
1602
|
}).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1573
1603
|
if ("http" === input.type)
|
|
1574
|
-
return
|
|
1604
|
+
return _vo15(input, _path, true && _exceptionable);
|
|
1575
1605
|
else if ("websocket" === input.type)
|
|
1576
|
-
return
|
|
1606
|
+
return _vo17(input, _path, true && _exceptionable);
|
|
1577
1607
|
else
|
|
1578
1608
|
return _report(_exceptionable, {
|
|
1579
1609
|
path: _path,
|
|
@@ -1582,9 +1612,9 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1582
1612
|
});
|
|
1583
1613
|
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1584
1614
|
if (undefined !== input.__spread__)
|
|
1585
|
-
return _vo12(input, _path, true && _exceptionable);
|
|
1586
|
-
else if (undefined !== input.port)
|
|
1587
1615
|
return _vo13(input, _path, true && _exceptionable);
|
|
1616
|
+
else if (undefined !== input.port)
|
|
1617
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
1588
1618
|
else
|
|
1589
1619
|
return _report(_exceptionable, {
|
|
1590
1620
|
path: _path,
|
|
@@ -1593,22 +1623,22 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1593
1623
|
});
|
|
1594
1624
|
})(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
|
1595
1625
|
if (undefined !== input.__spread__)
|
|
1596
|
-
return
|
|
1626
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
1597
1627
|
else if (undefined !== input.bucket)
|
|
1598
|
-
return _vo20(input, _path, true && _exceptionable);
|
|
1599
|
-
else if (undefined !== input.buckets)
|
|
1600
1628
|
return _vo21(input, _path, true && _exceptionable);
|
|
1629
|
+
else if (undefined !== input.buckets)
|
|
1630
|
+
return _vo22(input, _path, true && _exceptionable);
|
|
1601
1631
|
else if ("HF" === input.type)
|
|
1602
|
-
return _vo23(input, _path, true && _exceptionable);
|
|
1603
|
-
else if ("Ollama" === input.type)
|
|
1604
1632
|
return _vo24(input, _path, true && _exceptionable);
|
|
1633
|
+
else if ("Ollama" === input.type)
|
|
1634
|
+
return _vo25(input, _path, true && _exceptionable);
|
|
1605
1635
|
else
|
|
1606
|
-
return
|
|
1636
|
+
return _vo19(input, _path, true && _exceptionable);
|
|
1607
1637
|
})(); const _vu3 = (input, _path, _exceptionable = true) => (() => {
|
|
1608
1638
|
if (undefined !== input.image)
|
|
1609
|
-
return
|
|
1639
|
+
return _vo11(input, _path, true && _exceptionable);
|
|
1610
1640
|
else if (undefined !== input.name)
|
|
1611
|
-
return
|
|
1641
|
+
return _vo28(input, _path, true && _exceptionable);
|
|
1612
1642
|
else
|
|
1613
1643
|
return _report(_exceptionable, {
|
|
1614
1644
|
path: _path,
|
|
@@ -1616,10 +1646,10 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1616
1646
|
value: input
|
|
1617
1647
|
});
|
|
1618
1648
|
})(); const _vu4 = (input, _path, _exceptionable = true) => (() => {
|
|
1619
|
-
if (Array.isArray(input.depends_on) && input.depends_on.map((elem,
|
|
1620
|
-
return
|
|
1649
|
+
if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index36) => "string" === typeof elem).every(flag => flag))
|
|
1650
|
+
return _vo32(input, _path, true && _exceptionable);
|
|
1621
1651
|
else
|
|
1622
|
-
return
|
|
1652
|
+
return _vo31(input, _path, true && _exceptionable);
|
|
1623
1653
|
})(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
1624
1654
|
if (false === __is(input)) {
|
|
1625
1655
|
errors = [];
|