@nosana/types 2.2.15 → 2.2.19
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/index.d.ts +17 -0
- package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/args/index.js +2365 -0
- package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/execution/index.d.ts +2 -0
- package/dist/Jobs/JobDefinition/execution/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/execution/index.js +136 -1
- package/dist/Jobs/JobDefinition/execution/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/global/index.d.ts +2 -0
- package/dist/Jobs/JobDefinition/global/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/global/index.js +127 -1
- package/dist/Jobs/JobDefinition/global/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/index.d.ts +3 -0
- package/dist/Jobs/JobDefinition/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/index.js +1 -0
- package/dist/Jobs/JobDefinition/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -0
- package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/logistics/index.js +133 -0
- package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/meta/index.d.ts +2 -0
- package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/meta/index.js +118 -1
- package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/operations/index.d.ts +13 -2
- package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/operations/index.js +2663 -2
- package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/operations/rules.d.ts +11 -0
- package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -0
- package/dist/Jobs/JobDefinition/operations/rules.js +20 -0
- package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -0
- package/dist/Jobs/JobDefinition/ssh/index.d.ts +6 -0
- package/dist/Jobs/JobDefinition/ssh/index.d.ts.map +1 -0
- package/dist/Jobs/JobDefinition/ssh/index.js +68 -0
- package/dist/Jobs/JobDefinition/ssh/index.js.map +1 -0
- package/dist/Jobs/index.d.ts +3 -19
- package/dist/Jobs/index.d.ts.map +1 -1
- package/dist/Jobs/index.js +207 -164
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +15 -0
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +2 -2
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) &&
|
|
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.ssh || "object" === typeof input.ssh && null !== input.ssh && false === Array.isArray(input.ssh) && _io4(input.ssh, true && _exceptionable)) && (undefined === input.meta || "object" === typeof input.meta && null !== input.meta && false === Array.isArray(input.meta) && _io5(input.meta, true && _exceptionable)) && (undefined === input.global || "object" === typeof input.global && null !== input.global && false === Array.isArray(input.global) && _io8(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,8 +16,8 @@ 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 &&
|
|
20
|
-
if (["type", "version", "logistics", "deployment_id", "meta", "global", "ops"].some(prop => key === prop))
|
|
19
|
+
})() && input.ops.every((elem, _index1) => "object" === typeof elem && null !== elem && _io11(elem, true && _exceptionable)))) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
20
|
+
if (["type", "version", "logistics", "deployment_id", "ssh", "meta", "global", "ops"].some(prop => key === prop))
|
|
21
21
|
return true;
|
|
22
22
|
const value = input[key];
|
|
23
23
|
if (undefined === value)
|
|
@@ -44,48 +44,55 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
44
44
|
if (undefined === value)
|
|
45
45
|
return true;
|
|
46
46
|
return false;
|
|
47
|
-
})); const _io4 = (input, _exceptionable = true) => (undefined === input.
|
|
47
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.public_keys || Array.isArray(input.public_keys) && input.public_keys.every((elem, _index2) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
48
|
+
if (["public_keys"].some(prop => key === prop))
|
|
49
|
+
return true;
|
|
50
|
+
const value = input[key];
|
|
51
|
+
if (undefined === value)
|
|
52
|
+
return true;
|
|
53
|
+
return false;
|
|
54
|
+
})); const _io5 = (input, _exceptionable = true) => (undefined === input.trigger || "string" === typeof input.trigger) && (undefined === input.system_resources || "object" === typeof input.system_resources && null !== input.system_resources && false === Array.isArray(input.system_resources) && _io6(input.system_resources, true && _exceptionable)) && Object.keys(input).every(key => {
|
|
48
55
|
if (["trigger", "system_resources"].some(prop => key === prop))
|
|
49
56
|
return true;
|
|
50
57
|
const value = input[key];
|
|
51
58
|
if (undefined === value)
|
|
52
59
|
return true;
|
|
53
|
-
return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.every((elem,
|
|
54
|
-
}); const
|
|
60
|
+
return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.every((elem, _index3) => "string" === typeof elem || "number" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io7(value, true && _exceptionable)));
|
|
61
|
+
}); const _io6 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
55
62
|
const value = input[key];
|
|
56
63
|
if (undefined === value)
|
|
57
64
|
return true;
|
|
58
65
|
return "string" === typeof value || "number" === typeof value;
|
|
59
|
-
}); const
|
|
66
|
+
}); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
60
67
|
const value = input[key];
|
|
61
68
|
if (undefined === value)
|
|
62
69
|
return true;
|
|
63
|
-
return null !== value && undefined !== value && ("string" === typeof value || "number" === typeof value || Array.isArray(value) && value.every((elem,
|
|
64
|
-
}); const
|
|
70
|
+
return null !== value && undefined !== value && ("string" === typeof value || "number" === typeof value || Array.isArray(value) && value.every((elem, _index4) => "string" === typeof elem || "number" === typeof elem));
|
|
71
|
+
}); const _io8 = (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, _index5) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io9(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) && _io10(input.variables, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
65
72
|
if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
|
|
66
73
|
return true;
|
|
67
74
|
const value = input[key];
|
|
68
75
|
if (undefined === value)
|
|
69
76
|
return true;
|
|
70
77
|
return false;
|
|
71
|
-
})); const
|
|
78
|
+
})); const _io9 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
72
79
|
const value = input[key];
|
|
73
80
|
if (undefined === value)
|
|
74
81
|
return true;
|
|
75
82
|
return "string" === typeof value;
|
|
76
|
-
}); const
|
|
83
|
+
}); const _io10 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
77
84
|
const value = input[key];
|
|
78
85
|
if (undefined === value)
|
|
79
86
|
return true;
|
|
80
87
|
return "string" === typeof value;
|
|
81
|
-
}); const
|
|
88
|
+
}); const _io11 = (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) && _io30(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 => {
|
|
82
89
|
if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
|
|
83
90
|
return true;
|
|
84
91
|
const value = input[key];
|
|
85
92
|
if (undefined === value)
|
|
86
93
|
return true;
|
|
87
94
|
return false;
|
|
88
|
-
})); const
|
|
95
|
+
})); const _io12 = (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, _index6) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index7) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index8) => "object" === typeof elem && null !== elem && _io13(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) && ((() => {
|
|
89
96
|
if (!Array.isArray(input.expose))
|
|
90
97
|
return true;
|
|
91
98
|
const numbers = new Set();
|
|
@@ -120,136 +127,136 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
120
127
|
}
|
|
121
128
|
}
|
|
122
129
|
return true;
|
|
123
|
-
})() && input.expose.every((elem,
|
|
130
|
+
})() && input.expose.every((elem, _index9) => 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, _index10) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io9(input.env, true && _exceptionable)) && (null !== input.restart_policy && (undefined === input.restart_policy || "on-failure" === input.restart_policy || "no" === input.restart_policy || "always" === input.restart_policy || "unless-stopped" === input.restart_policy || "object" === typeof input.restart_policy && null !== input.restart_policy && _io19(input.restart_policy, true && _exceptionable))) && (undefined === input["private"] || "boolean" === typeof input["private"]) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index11) => 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) && _io27(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
124
131
|
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "restart_policy", "private", "resources", "authentication"].some(prop => key === prop))
|
|
125
132
|
return true;
|
|
126
133
|
const value = input[key];
|
|
127
134
|
if (undefined === value)
|
|
128
135
|
return true;
|
|
129
136
|
return false;
|
|
130
|
-
})); const
|
|
137
|
+
})); const _io13 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.dest && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
131
138
|
if (["name", "dest"].some(prop => key === prop))
|
|
132
139
|
return true;
|
|
133
140
|
const value = input[key];
|
|
134
141
|
if (undefined === value)
|
|
135
142
|
return true;
|
|
136
143
|
return false;
|
|
137
|
-
})); const
|
|
144
|
+
})); const _io14 = (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 => {
|
|
138
145
|
if (["__spread__", "chunked"].some(prop => key === prop))
|
|
139
146
|
return true;
|
|
140
147
|
const value = input[key];
|
|
141
148
|
if (undefined === value)
|
|
142
149
|
return true;
|
|
143
150
|
return false;
|
|
144
|
-
})); const
|
|
151
|
+
})); const _io15 = (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, _index12) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
145
152
|
if (["port", "type", "health_checks"].some(prop => key === prop))
|
|
146
153
|
return true;
|
|
147
154
|
const value = input[key];
|
|
148
155
|
if (undefined === value)
|
|
149
156
|
return true;
|
|
150
157
|
return false;
|
|
151
|
-
})); const
|
|
158
|
+
})); const _io16 = (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) && _io17(input.headers, true && _exceptionable)) && true && "boolean" === typeof input.continuous && (5 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
152
159
|
if (["type", "path", "method", "expected_status", "headers", "body", "continuous"].some(prop => key === prop))
|
|
153
160
|
return true;
|
|
154
161
|
const value = input[key];
|
|
155
162
|
if (undefined === value)
|
|
156
163
|
return true;
|
|
157
164
|
return false;
|
|
158
|
-
})); const
|
|
165
|
+
})); const _io17 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
159
166
|
const value = input[key];
|
|
160
167
|
if (undefined === value)
|
|
161
168
|
return true;
|
|
162
169
|
return "string" === typeof value;
|
|
163
|
-
}); const
|
|
170
|
+
}); const _io18 = (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 => {
|
|
164
171
|
if (["type", "expected_response", "continuous"].some(prop => key === prop))
|
|
165
172
|
return true;
|
|
166
173
|
const value = input[key];
|
|
167
174
|
if (undefined === value)
|
|
168
175
|
return true;
|
|
169
176
|
return false;
|
|
170
|
-
})); const
|
|
177
|
+
})); const _io19 = (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 => {
|
|
171
178
|
if (["policy", "restart_tries"].some(prop => key === prop))
|
|
172
179
|
return true;
|
|
173
180
|
const value = input[key];
|
|
174
181
|
if (undefined === value)
|
|
175
182
|
return true;
|
|
176
183
|
return false;
|
|
177
|
-
})); const
|
|
184
|
+
})); const _io20 = (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, _index13) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io21(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
178
185
|
if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
|
|
179
186
|
return true;
|
|
180
187
|
const value = input[key];
|
|
181
188
|
if (undefined === value)
|
|
182
189
|
return true;
|
|
183
190
|
return false;
|
|
184
|
-
})); const
|
|
191
|
+
})); const _io21 = (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 => {
|
|
185
192
|
if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
|
|
186
193
|
return true;
|
|
187
194
|
const value = input[key];
|
|
188
195
|
if (undefined === value)
|
|
189
196
|
return true;
|
|
190
197
|
return false;
|
|
191
|
-
})); const
|
|
198
|
+
})); const _io22 = (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 && _io21(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
192
199
|
if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
193
200
|
return true;
|
|
194
201
|
const value = input[key];
|
|
195
202
|
if (undefined === value)
|
|
196
203
|
return true;
|
|
197
204
|
return false;
|
|
198
|
-
})); const
|
|
205
|
+
})); const _io23 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index14) => "object" === typeof elem && null !== elem && _io24(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 && _io21(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
199
206
|
if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
200
207
|
return true;
|
|
201
208
|
const value = input[key];
|
|
202
209
|
if (undefined === value)
|
|
203
210
|
return true;
|
|
204
211
|
return false;
|
|
205
|
-
})); const
|
|
212
|
+
})); const _io24 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index15) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
206
213
|
if (["url", "files"].some(prop => key === prop))
|
|
207
214
|
return true;
|
|
208
215
|
const value = input[key];
|
|
209
216
|
if (undefined === value)
|
|
210
217
|
return true;
|
|
211
218
|
return false;
|
|
212
|
-
})); const
|
|
219
|
+
})); const _io25 = (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, _index16) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
213
220
|
if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
|
|
214
221
|
return true;
|
|
215
222
|
const value = input[key];
|
|
216
223
|
if (undefined === value)
|
|
217
224
|
return true;
|
|
218
225
|
return false;
|
|
219
|
-
})); const
|
|
226
|
+
})); const _io26 = (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 => {
|
|
220
227
|
if (["type", "model", "target"].some(prop => key === prop))
|
|
221
228
|
return true;
|
|
222
229
|
const value = input[key];
|
|
223
230
|
if (undefined === value)
|
|
224
231
|
return true;
|
|
225
232
|
return false;
|
|
226
|
-
})); const
|
|
233
|
+
})); const _io27 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io28(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
227
234
|
if (["docker"].some(prop => key === prop))
|
|
228
235
|
return true;
|
|
229
236
|
const value = input[key];
|
|
230
237
|
if (undefined === value)
|
|
231
238
|
return true;
|
|
232
239
|
return false;
|
|
233
|
-
})); const
|
|
240
|
+
})); const _io28 = (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 => {
|
|
234
241
|
if (["username", "password", "email", "server"].some(prop => key === prop))
|
|
235
242
|
return true;
|
|
236
243
|
const value = input[key];
|
|
237
244
|
if (undefined === value)
|
|
238
245
|
return true;
|
|
239
246
|
return false;
|
|
240
|
-
})); const
|
|
247
|
+
})); const _io29 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
241
248
|
if (["name"].some(prop => key === prop))
|
|
242
249
|
return true;
|
|
243
250
|
const value = input[key];
|
|
244
251
|
if (undefined === value)
|
|
245
252
|
return true;
|
|
246
253
|
return false;
|
|
247
|
-
})); const
|
|
254
|
+
})); const _io30 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
248
255
|
const value = input[key];
|
|
249
256
|
if (undefined === value)
|
|
250
257
|
return true;
|
|
251
|
-
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value &&
|
|
252
|
-
}); const
|
|
258
|
+
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io31(value, true && _exceptionable));
|
|
259
|
+
}); const _io31 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
|
|
253
260
|
const seen = new Set();
|
|
254
261
|
for (const v of input.logType) {
|
|
255
262
|
if (seen.has(v))
|
|
@@ -257,21 +264,21 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
257
264
|
seen.add(v);
|
|
258
265
|
}
|
|
259
266
|
return true;
|
|
260
|
-
})() && input.logType.every((elem,
|
|
267
|
+
})() && input.logType.every((elem, _index17) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem))) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
261
268
|
if (["regex", "logType"].some(prop => key === prop))
|
|
262
269
|
return true;
|
|
263
270
|
const value = input[key];
|
|
264
271
|
if (undefined === value)
|
|
265
272
|
return true;
|
|
266
273
|
return false;
|
|
267
|
-
})); const
|
|
274
|
+
})); const _io32 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (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 => {
|
|
268
275
|
if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
269
276
|
return true;
|
|
270
277
|
const value = input[key];
|
|
271
278
|
if (undefined === value)
|
|
272
279
|
return true;
|
|
273
280
|
return false;
|
|
274
|
-
})); const
|
|
281
|
+
})); const _io33 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (undefined === input.timeout || "number" === typeof input.timeout) && (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index18) => "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 => {
|
|
275
282
|
if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
276
283
|
return true;
|
|
277
284
|
const value = input[key];
|
|
@@ -280,43 +287,43 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
280
287
|
return false;
|
|
281
288
|
})); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
282
289
|
if ("http" === input.type)
|
|
283
|
-
return
|
|
290
|
+
return _io16(input, true && _exceptionable);
|
|
284
291
|
else if ("websocket" === input.type)
|
|
285
|
-
return
|
|
292
|
+
return _io18(input, true && _exceptionable);
|
|
286
293
|
else
|
|
287
294
|
return false;
|
|
288
295
|
})(); const _iu1 = (input, _exceptionable = true) => (() => {
|
|
289
296
|
if (undefined !== input.__spread__)
|
|
290
|
-
return _io13(input, true && _exceptionable);
|
|
291
|
-
else if (undefined !== input.port)
|
|
292
297
|
return _io14(input, true && _exceptionable);
|
|
298
|
+
else if (undefined !== input.port)
|
|
299
|
+
return _io15(input, true && _exceptionable);
|
|
293
300
|
else
|
|
294
301
|
return false;
|
|
295
302
|
})(); const _iu2 = (input, _exceptionable = true) => (() => {
|
|
296
303
|
if (undefined !== input.__spread__)
|
|
297
|
-
return
|
|
304
|
+
return _io14(input, true && _exceptionable);
|
|
298
305
|
else if (undefined !== input.bucket)
|
|
299
|
-
return _io21(input, true && _exceptionable);
|
|
300
|
-
else if (undefined !== input.buckets)
|
|
301
306
|
return _io22(input, true && _exceptionable);
|
|
307
|
+
else if (undefined !== input.buckets)
|
|
308
|
+
return _io23(input, true && _exceptionable);
|
|
302
309
|
else if ("HF" === input.type)
|
|
303
|
-
return _io24(input, true && _exceptionable);
|
|
304
|
-
else if ("Ollama" === input.type)
|
|
305
310
|
return _io25(input, true && _exceptionable);
|
|
311
|
+
else if ("Ollama" === input.type)
|
|
312
|
+
return _io26(input, true && _exceptionable);
|
|
306
313
|
else
|
|
307
|
-
return
|
|
314
|
+
return _io20(input, true && _exceptionable);
|
|
308
315
|
})(); const _iu3 = (input, _exceptionable = true) => (() => {
|
|
309
316
|
if (undefined !== input.image)
|
|
310
|
-
return
|
|
317
|
+
return _io12(input, true && _exceptionable);
|
|
311
318
|
else if (undefined !== input.name)
|
|
312
|
-
return
|
|
319
|
+
return _io29(input, true && _exceptionable);
|
|
313
320
|
else
|
|
314
321
|
return false;
|
|
315
322
|
})(); const _iu4 = (input, _exceptionable = true) => (() => {
|
|
316
|
-
if (Array.isArray(input.depends_on) && input.depends_on.every((elem,
|
|
317
|
-
return
|
|
323
|
+
if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index19) => "string" === typeof elem))
|
|
324
|
+
return _io33(input, true && _exceptionable);
|
|
318
325
|
else
|
|
319
|
-
return
|
|
326
|
+
return _io32(input, true && _exceptionable);
|
|
320
327
|
})(); const _vo0 = (input, _path, _exceptionable = true) => ["container" === input.type || _report(_exceptionable, {
|
|
321
328
|
path: _path + ".type",
|
|
322
329
|
expected: "\"container\"",
|
|
@@ -337,11 +344,19 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
337
344
|
path: _path + ".deployment_id",
|
|
338
345
|
expected: "(string | undefined)",
|
|
339
346
|
value: input.deployment_id
|
|
347
|
+
}), undefined === input.ssh || ("object" === typeof input.ssh && null !== input.ssh && false === Array.isArray(input.ssh) || _report(_exceptionable, {
|
|
348
|
+
path: _path + ".ssh",
|
|
349
|
+
expected: "(SSH | undefined)",
|
|
350
|
+
value: input.ssh
|
|
351
|
+
})) && _vo4(input.ssh, _path + ".ssh", true && _exceptionable) || _report(_exceptionable, {
|
|
352
|
+
path: _path + ".ssh",
|
|
353
|
+
expected: "(SSH | undefined)",
|
|
354
|
+
value: input.ssh
|
|
340
355
|
}), undefined === input.meta || ("object" === typeof input.meta && null !== input.meta && false === Array.isArray(input.meta) || _report(_exceptionable, {
|
|
341
356
|
path: _path + ".meta",
|
|
342
357
|
expected: "(Meta | undefined)",
|
|
343
358
|
value: input.meta
|
|
344
|
-
})) &&
|
|
359
|
+
})) && _vo5(input.meta, _path + ".meta", true && _exceptionable) || _report(_exceptionable, {
|
|
345
360
|
path: _path + ".meta",
|
|
346
361
|
expected: "(Meta | undefined)",
|
|
347
362
|
value: input.meta
|
|
@@ -349,7 +364,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
349
364
|
path: _path + ".global",
|
|
350
365
|
expected: "(Global | undefined)",
|
|
351
366
|
value: input.global
|
|
352
|
-
})) &&
|
|
367
|
+
})) && _vo8(input.global, _path + ".global", true && _exceptionable) || _report(_exceptionable, {
|
|
353
368
|
path: _path + ".global",
|
|
354
369
|
expected: "(Global | undefined)",
|
|
355
370
|
value: input.global
|
|
@@ -371,12 +386,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
371
386
|
path: _path + ".ops",
|
|
372
387
|
expected: "Array<> & UniqueById",
|
|
373
388
|
value: input.ops
|
|
374
|
-
})) && input.ops.map((elem,
|
|
375
|
-
path: _path + ".ops[" +
|
|
389
|
+
})) && input.ops.map((elem, _index20) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
390
|
+
path: _path + ".ops[" + _index20 + "]",
|
|
376
391
|
expected: "Operation<keyof OperationArgsMap>",
|
|
377
392
|
value: elem
|
|
378
|
-
})) &&
|
|
379
|
-
path: _path + ".ops[" +
|
|
393
|
+
})) && _vo11(elem, _path + ".ops[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
394
|
+
path: _path + ".ops[" + _index20 + "]",
|
|
380
395
|
expected: "Operation<keyof OperationArgsMap>",
|
|
381
396
|
value: elem
|
|
382
397
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -384,7 +399,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
384
399
|
expected: "(Ops & UniqueById)",
|
|
385
400
|
value: input.ops
|
|
386
401
|
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
387
|
-
if (["type", "version", "logistics", "deployment_id", "meta", "global", "ops"].some(prop => key === prop))
|
|
402
|
+
if (["type", "version", "logistics", "deployment_id", "ssh", "meta", "global", "ops"].some(prop => key === prop))
|
|
388
403
|
return true;
|
|
389
404
|
const value = input[key];
|
|
390
405
|
if (undefined === value)
|
|
@@ -479,7 +494,35 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
479
494
|
"Please remove the property next time."
|
|
480
495
|
].join("\n")
|
|
481
496
|
});
|
|
482
|
-
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
497
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.public_keys || (Array.isArray(input.public_keys) || _report(_exceptionable, {
|
|
498
|
+
path: _path + ".public_keys",
|
|
499
|
+
expected: "(Array<string> | undefined)",
|
|
500
|
+
value: input.public_keys
|
|
501
|
+
})) && input.public_keys.map((elem, _index21) => "string" === typeof elem || _report(_exceptionable, {
|
|
502
|
+
path: _path + ".public_keys[" + _index21 + "]",
|
|
503
|
+
expected: "string",
|
|
504
|
+
value: elem
|
|
505
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
506
|
+
path: _path + ".public_keys",
|
|
507
|
+
expected: "(Array<string> | undefined)",
|
|
508
|
+
value: input.public_keys
|
|
509
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
510
|
+
if (["public_keys"].some(prop => key === prop))
|
|
511
|
+
return true;
|
|
512
|
+
const value = input[key];
|
|
513
|
+
if (undefined === value)
|
|
514
|
+
return true;
|
|
515
|
+
return _report(_exceptionable, {
|
|
516
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
517
|
+
expected: "undefined",
|
|
518
|
+
value: value,
|
|
519
|
+
description: [
|
|
520
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
521
|
+
"",
|
|
522
|
+
"Please remove the property next time."
|
|
523
|
+
].join("\n")
|
|
524
|
+
});
|
|
525
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.trigger || "string" === typeof input.trigger || _report(_exceptionable, {
|
|
483
526
|
path: _path + ".trigger",
|
|
484
527
|
expected: "(string | undefined)",
|
|
485
528
|
value: input.trigger
|
|
@@ -487,7 +530,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
487
530
|
path: _path + ".system_resources",
|
|
488
531
|
expected: "(Record<string, string | number> | undefined)",
|
|
489
532
|
value: input.system_resources
|
|
490
|
-
})) &&
|
|
533
|
+
})) && _vo6(input.system_resources, _path + ".system_resources", true && _exceptionable) || _report(_exceptionable, {
|
|
491
534
|
path: _path + ".system_resources",
|
|
492
535
|
expected: "(Record<string, string | number> | undefined)",
|
|
493
536
|
value: input.system_resources
|
|
@@ -501,11 +544,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
501
544
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
502
545
|
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
503
546
|
value: value
|
|
504
|
-
})) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem,
|
|
505
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
547
|
+
})) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem, _index22) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
548
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index22 + "]",
|
|
506
549
|
expected: "(number | string)",
|
|
507
550
|
value: elem
|
|
508
|
-
})).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
551
|
+
})).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo7(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
509
552
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
510
553
|
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
511
554
|
value: value
|
|
@@ -514,7 +557,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
514
557
|
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
515
558
|
value: value
|
|
516
559
|
}));
|
|
517
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
560
|
+
}).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
518
561
|
const value = input[key];
|
|
519
562
|
if (undefined === value)
|
|
520
563
|
return true;
|
|
@@ -523,7 +566,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
523
566
|
expected: "(number | string)",
|
|
524
567
|
value: value
|
|
525
568
|
});
|
|
526
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
569
|
+
}).every(flag => flag)].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
527
570
|
const value = input[key];
|
|
528
571
|
if (undefined === value)
|
|
529
572
|
return true;
|
|
@@ -539,8 +582,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
539
582
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
540
583
|
expected: "(Array<string | number> | number | string)",
|
|
541
584
|
value: value
|
|
542
|
-
})) && value.map((elem,
|
|
543
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
585
|
+
})) && value.map((elem, _index23) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
586
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index23 + "]",
|
|
544
587
|
expected: "(number | string)",
|
|
545
588
|
value: elem
|
|
546
589
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -548,7 +591,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
548
591
|
expected: "(Array<string | number> | number | string)",
|
|
549
592
|
value: value
|
|
550
593
|
}));
|
|
551
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
594
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
552
595
|
path: _path + ".image",
|
|
553
596
|
expected: "(string | undefined)",
|
|
554
597
|
value: input.image
|
|
@@ -564,8 +607,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
564
607
|
path: _path + ".entrypoint",
|
|
565
608
|
expected: "(CMDArray | string | undefined)",
|
|
566
609
|
value: input.entrypoint
|
|
567
|
-
})) && input.entrypoint.map((elem,
|
|
568
|
-
path: _path + ".entrypoint[" +
|
|
610
|
+
})) && input.entrypoint.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
611
|
+
path: _path + ".entrypoint[" + _index24 + "]",
|
|
569
612
|
expected: "string",
|
|
570
613
|
value: elem
|
|
571
614
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -576,7 +619,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
576
619
|
path: _path + ".env",
|
|
577
620
|
expected: "(Env | undefined)",
|
|
578
621
|
value: input.env
|
|
579
|
-
})) &&
|
|
622
|
+
})) && _vo9(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
580
623
|
path: _path + ".env",
|
|
581
624
|
expected: "(Env | undefined)",
|
|
582
625
|
value: input.env
|
|
@@ -588,7 +631,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
588
631
|
path: _path + ".variables",
|
|
589
632
|
expected: "(Variables | undefined)",
|
|
590
633
|
value: input.variables
|
|
591
|
-
})) &&
|
|
634
|
+
})) && _vo10(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
|
|
592
635
|
path: _path + ".variables",
|
|
593
636
|
expected: "(Variables | undefined)",
|
|
594
637
|
value: input.variables
|
|
@@ -608,7 +651,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
608
651
|
"Please remove the property next time."
|
|
609
652
|
].join("\n")
|
|
610
653
|
});
|
|
611
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
654
|
+
}).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
612
655
|
const value = input[key];
|
|
613
656
|
if (undefined === value)
|
|
614
657
|
return true;
|
|
@@ -617,7 +660,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
617
660
|
expected: "string",
|
|
618
661
|
value: value
|
|
619
662
|
});
|
|
620
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
663
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
621
664
|
const value = input[key];
|
|
622
665
|
if (undefined === value)
|
|
623
666
|
return true;
|
|
@@ -626,7 +669,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
626
669
|
expected: "string",
|
|
627
670
|
value: value
|
|
628
671
|
});
|
|
629
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
672
|
+
}).every(flag => flag)].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || _report(_exceptionable, {
|
|
630
673
|
path: _path + ".type",
|
|
631
674
|
expected: "(\"container/create-volume\" | \"container/run\")",
|
|
632
675
|
value: input.type
|
|
@@ -650,7 +693,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
650
693
|
path: _path + ".results",
|
|
651
694
|
expected: "(OperationResults | undefined)",
|
|
652
695
|
value: input.results
|
|
653
|
-
})) &&
|
|
696
|
+
})) && _vo30(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
|
|
654
697
|
path: _path + ".results",
|
|
655
698
|
expected: "(OperationResults | undefined)",
|
|
656
699
|
value: input.results
|
|
@@ -678,7 +721,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
678
721
|
"Please remove the property next time."
|
|
679
722
|
].join("\n")
|
|
680
723
|
});
|
|
681
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
724
|
+
}).every(flag => flag))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
|
|
682
725
|
path: _path + ".image",
|
|
683
726
|
expected: "string",
|
|
684
727
|
value: input.image
|
|
@@ -690,8 +733,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
690
733
|
path: _path + ".aliases",
|
|
691
734
|
expected: "(Aliases | string | undefined)",
|
|
692
735
|
value: input.aliases
|
|
693
|
-
})) && input.aliases.map((elem,
|
|
694
|
-
path: _path + ".aliases[" +
|
|
736
|
+
})) && input.aliases.map((elem, _index25) => "string" === typeof elem || _report(_exceptionable, {
|
|
737
|
+
path: _path + ".aliases[" + _index25 + "]",
|
|
695
738
|
expected: "string",
|
|
696
739
|
value: elem
|
|
697
740
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -706,8 +749,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
706
749
|
path: _path + ".cmd",
|
|
707
750
|
expected: "(CMDArray | string | undefined)",
|
|
708
751
|
value: input.cmd
|
|
709
|
-
})) && input.cmd.map((elem,
|
|
710
|
-
path: _path + ".cmd[" +
|
|
752
|
+
})) && input.cmd.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
|
|
753
|
+
path: _path + ".cmd[" + _index26 + "]",
|
|
711
754
|
expected: "string",
|
|
712
755
|
value: elem
|
|
713
756
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -718,12 +761,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
718
761
|
path: _path + ".volumes",
|
|
719
762
|
expected: "(Array<Volume> | undefined)",
|
|
720
763
|
value: input.volumes
|
|
721
|
-
})) && input.volumes.map((elem,
|
|
722
|
-
path: _path + ".volumes[" +
|
|
764
|
+
})) && input.volumes.map((elem, _index27) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
765
|
+
path: _path + ".volumes[" + _index27 + "]",
|
|
723
766
|
expected: "Volume",
|
|
724
767
|
value: elem
|
|
725
|
-
})) &&
|
|
726
|
-
path: _path + ".volumes[" +
|
|
768
|
+
})) && _vo13(elem, _path + ".volumes[" + _index27 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
769
|
+
path: _path + ".volumes[" + _index27 + "]",
|
|
727
770
|
expected: "Volume",
|
|
728
771
|
value: elem
|
|
729
772
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -777,24 +820,24 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
777
820
|
path: _path + ".expose",
|
|
778
821
|
expected: "Array<> & TagBase<__type>",
|
|
779
822
|
value: input.expose
|
|
780
|
-
})) && input.expose.map((elem,
|
|
781
|
-
path: _path + ".expose[" +
|
|
823
|
+
})) && input.expose.map((elem, _index28) => (null !== elem || _report(_exceptionable, {
|
|
824
|
+
path: _path + ".expose[" + _index28 + "]",
|
|
782
825
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
783
826
|
value: elem
|
|
784
827
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
785
|
-
path: _path + ".expose[" +
|
|
828
|
+
path: _path + ".expose[" + _index28 + "]",
|
|
786
829
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
787
830
|
value: elem
|
|
788
831
|
})) && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem) || _report(_exceptionable, {
|
|
789
|
-
path: _path + ".expose[" +
|
|
832
|
+
path: _path + ".expose[" + _index28 + "]",
|
|
790
833
|
expected: "string & TagBase<__type>",
|
|
791
834
|
value: elem
|
|
792
835
|
})) || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
793
|
-
path: _path + ".expose[" +
|
|
836
|
+
path: _path + ".expose[" + _index28 + "]",
|
|
794
837
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
795
838
|
value: elem
|
|
796
|
-
})) && _vu1(elem, _path + ".expose[" +
|
|
797
|
-
path: _path + ".expose[" +
|
|
839
|
+
})) && _vu1(elem, _path + ".expose[" + _index28 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
840
|
+
path: _path + ".expose[" + _index28 + "]",
|
|
798
841
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | ExposedPort | number)",
|
|
799
842
|
value: elem
|
|
800
843
|
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vu1(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
|
|
@@ -821,8 +864,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
821
864
|
path: _path + ".entrypoint",
|
|
822
865
|
expected: "(CMDArray | string | undefined)",
|
|
823
866
|
value: input.entrypoint
|
|
824
|
-
})) && input.entrypoint.map((elem,
|
|
825
|
-
path: _path + ".entrypoint[" +
|
|
867
|
+
})) && input.entrypoint.map((elem, _index29) => "string" === typeof elem || _report(_exceptionable, {
|
|
868
|
+
path: _path + ".entrypoint[" + _index29 + "]",
|
|
826
869
|
expected: "string",
|
|
827
870
|
value: elem
|
|
828
871
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -833,7 +876,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
833
876
|
path: _path + ".env",
|
|
834
877
|
expected: "(Env | undefined)",
|
|
835
878
|
value: input.env
|
|
836
|
-
})) &&
|
|
879
|
+
})) && _vo9(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
837
880
|
path: _path + ".env",
|
|
838
881
|
expected: "(Env | undefined)",
|
|
839
882
|
value: input.env
|
|
@@ -845,7 +888,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
845
888
|
path: _path + ".restart_policy",
|
|
846
889
|
expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
|
|
847
890
|
value: input.restart_policy
|
|
848
|
-
})) &&
|
|
891
|
+
})) && _vo19(input.restart_policy, _path + ".restart_policy", true && _exceptionable) || _report(_exceptionable, {
|
|
849
892
|
path: _path + ".restart_policy",
|
|
850
893
|
expected: "(\"always\" | \"no\" | \"on-failure\" | \"unless-stopped\" | __type.o4 | undefined)",
|
|
851
894
|
value: input.restart_policy
|
|
@@ -857,20 +900,20 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
857
900
|
path: _path + ".resources",
|
|
858
901
|
expected: "(Resources | undefined)",
|
|
859
902
|
value: input.resources
|
|
860
|
-
})) && input.resources.map((elem,
|
|
861
|
-
path: _path + ".resources[" +
|
|
903
|
+
})) && input.resources.map((elem, _index30) => (null !== elem || _report(_exceptionable, {
|
|
904
|
+
path: _path + ".resources[" + _index30 + "]",
|
|
862
905
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
863
906
|
value: elem
|
|
864
907
|
})) && (undefined !== elem || _report(_exceptionable, {
|
|
865
|
-
path: _path + ".resources[" +
|
|
908
|
+
path: _path + ".resources[" + _index30 + "]",
|
|
866
909
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
867
910
|
value: elem
|
|
868
911
|
})) && ("__remove-if-empty__" === elem || ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
869
|
-
path: _path + ".resources[" +
|
|
912
|
+
path: _path + ".resources[" + _index30 + "]",
|
|
870
913
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
871
914
|
value: elem
|
|
872
|
-
})) && _vu2(elem, _path + ".resources[" +
|
|
873
|
-
path: _path + ".resources[" +
|
|
915
|
+
})) && _vu2(elem, _path + ".resources[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
916
|
+
path: _path + ".resources[" + _index30 + "]",
|
|
874
917
|
expected: "(\"__remove-if-empty__\" | (__type & TagBase<__type>) | HFResource | OllamaResource | S3Base | S3WithBucket | S3WithBuckets)",
|
|
875
918
|
value: elem
|
|
876
919
|
}))).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -881,7 +924,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
881
924
|
path: _path + ".authentication",
|
|
882
925
|
expected: "(Authentication | undefined)",
|
|
883
926
|
value: input.authentication
|
|
884
|
-
})) &&
|
|
927
|
+
})) && _vo27(input.authentication, _path + ".authentication", true && _exceptionable) || _report(_exceptionable, {
|
|
885
928
|
path: _path + ".authentication",
|
|
886
929
|
expected: "(Authentication | undefined)",
|
|
887
930
|
value: input.authentication
|
|
@@ -901,7 +944,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
901
944
|
"Please remove the property next time."
|
|
902
945
|
].join("\n")
|
|
903
946
|
});
|
|
904
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
947
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
905
948
|
path: _path + ".name",
|
|
906
949
|
expected: "string",
|
|
907
950
|
value: input.name
|
|
@@ -925,7 +968,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
925
968
|
"Please remove the property next time."
|
|
926
969
|
].join("\n")
|
|
927
970
|
});
|
|
928
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
971
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
|
|
929
972
|
path: _path + ".__spread__",
|
|
930
973
|
expected: "string & TagBase<__type>",
|
|
931
974
|
value: input.__spread__
|
|
@@ -953,7 +996,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
953
996
|
"Please remove the property next time."
|
|
954
997
|
].join("\n")
|
|
955
998
|
});
|
|
956
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
999
|
+
}).every(flag => flag))].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["number" === typeof input.port || _report(_exceptionable, {
|
|
957
1000
|
path: _path + ".port",
|
|
958
1001
|
expected: "number",
|
|
959
1002
|
value: input.port
|
|
@@ -965,12 +1008,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
965
1008
|
path: _path + ".health_checks",
|
|
966
1009
|
expected: "(Array<HealthCheck> | undefined)",
|
|
967
1010
|
value: input.health_checks
|
|
968
|
-
})) && input.health_checks.map((elem,
|
|
969
|
-
path: _path + ".health_checks[" +
|
|
1011
|
+
})) && input.health_checks.map((elem, _index31) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1012
|
+
path: _path + ".health_checks[" + _index31 + "]",
|
|
970
1013
|
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
971
1014
|
value: elem
|
|
972
|
-
})) && _vu0(elem, _path + ".health_checks[" +
|
|
973
|
-
path: _path + ".health_checks[" +
|
|
1015
|
+
})) && _vu0(elem, _path + ".health_checks[" + _index31 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1016
|
+
path: _path + ".health_checks[" + _index31 + "]",
|
|
974
1017
|
expected: "(HttpHealthCheck | WebSocketHealthCheck)",
|
|
975
1018
|
value: elem
|
|
976
1019
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -993,7 +1036,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
993
1036
|
"Please remove the property next time."
|
|
994
1037
|
].join("\n")
|
|
995
1038
|
});
|
|
996
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1039
|
+
}).every(flag => flag))].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["http" === input.type || _report(_exceptionable, {
|
|
997
1040
|
path: _path + ".type",
|
|
998
1041
|
expected: "\"http\"",
|
|
999
1042
|
value: input.type
|
|
@@ -1013,7 +1056,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1013
1056
|
path: _path + ".headers",
|
|
1014
1057
|
expected: "(Record<string, string> | undefined)",
|
|
1015
1058
|
value: input.headers
|
|
1016
|
-
})) &&
|
|
1059
|
+
})) && _vo17(input.headers, _path + ".headers", true && _exceptionable) || _report(_exceptionable, {
|
|
1017
1060
|
path: _path + ".headers",
|
|
1018
1061
|
expected: "(Record<string, string> | undefined)",
|
|
1019
1062
|
value: input.headers
|
|
@@ -1037,7 +1080,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1037
1080
|
"Please remove the property next time."
|
|
1038
1081
|
].join("\n")
|
|
1039
1082
|
});
|
|
1040
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1083
|
+
}).every(flag => flag))].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1041
1084
|
const value = input[key];
|
|
1042
1085
|
if (undefined === value)
|
|
1043
1086
|
return true;
|
|
@@ -1046,7 +1089,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1046
1089
|
expected: "string",
|
|
1047
1090
|
value: value
|
|
1048
1091
|
});
|
|
1049
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1092
|
+
}).every(flag => flag)].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["websocket" === input.type || _report(_exceptionable, {
|
|
1050
1093
|
path: _path + ".type",
|
|
1051
1094
|
expected: "\"websocket\"",
|
|
1052
1095
|
value: input.type
|
|
@@ -1074,7 +1117,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1074
1117
|
"Please remove the property next time."
|
|
1075
1118
|
].join("\n")
|
|
1076
1119
|
});
|
|
1077
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1120
|
+
}).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["on-failure" === input.policy || _report(_exceptionable, {
|
|
1078
1121
|
path: _path + ".policy",
|
|
1079
1122
|
expected: "\"on-failure\"",
|
|
1080
1123
|
value: input.policy
|
|
@@ -1098,7 +1141,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1098
1141
|
"Please remove the property next time."
|
|
1099
1142
|
].join("\n")
|
|
1100
1143
|
});
|
|
1101
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1144
|
+
}).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1102
1145
|
path: _path + ".type",
|
|
1103
1146
|
expected: "\"S3\"",
|
|
1104
1147
|
value: input.type
|
|
@@ -1118,8 +1161,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1118
1161
|
path: _path + ".files",
|
|
1119
1162
|
expected: "(Array<string> | undefined)",
|
|
1120
1163
|
value: input.files
|
|
1121
|
-
})) && input.files.map((elem,
|
|
1122
|
-
path: _path + ".files[" +
|
|
1164
|
+
})) && input.files.map((elem, _index32) => "string" === typeof elem || _report(_exceptionable, {
|
|
1165
|
+
path: _path + ".files[" + _index32 + "]",
|
|
1123
1166
|
expected: "string",
|
|
1124
1167
|
value: elem
|
|
1125
1168
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1130,7 +1173,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1130
1173
|
path: _path + ".IAM",
|
|
1131
1174
|
expected: "(S3Auth | undefined)",
|
|
1132
1175
|
value: input.IAM
|
|
1133
|
-
})) &&
|
|
1176
|
+
})) && _vo21(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1134
1177
|
path: _path + ".IAM",
|
|
1135
1178
|
expected: "(S3Auth | undefined)",
|
|
1136
1179
|
value: input.IAM
|
|
@@ -1150,7 +1193,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1150
1193
|
"Please remove the property next time."
|
|
1151
1194
|
].join("\n")
|
|
1152
1195
|
});
|
|
1153
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1196
|
+
}).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
|
|
1154
1197
|
path: _path + ".REGION",
|
|
1155
1198
|
expected: "string",
|
|
1156
1199
|
value: input.REGION
|
|
@@ -1178,7 +1221,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1178
1221
|
"Please remove the property next time."
|
|
1179
1222
|
].join("\n")
|
|
1180
1223
|
});
|
|
1181
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1224
|
+
}).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1182
1225
|
path: _path + ".type",
|
|
1183
1226
|
expected: "\"S3\"",
|
|
1184
1227
|
value: input.type
|
|
@@ -1202,7 +1245,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1202
1245
|
path: _path + ".IAM",
|
|
1203
1246
|
expected: "(S3Auth | undefined)",
|
|
1204
1247
|
value: input.IAM
|
|
1205
|
-
})) &&
|
|
1248
|
+
})) && _vo21(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1206
1249
|
path: _path + ".IAM",
|
|
1207
1250
|
expected: "(S3Auth | undefined)",
|
|
1208
1251
|
value: input.IAM
|
|
@@ -1222,7 +1265,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1222
1265
|
"Please remove the property next time."
|
|
1223
1266
|
].join("\n")
|
|
1224
1267
|
});
|
|
1225
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1268
|
+
}).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
1226
1269
|
path: _path + ".type",
|
|
1227
1270
|
expected: "\"S3\"",
|
|
1228
1271
|
value: input.type
|
|
@@ -1234,12 +1277,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1234
1277
|
path: _path + ".buckets",
|
|
1235
1278
|
expected: "Array<__type>",
|
|
1236
1279
|
value: input.buckets
|
|
1237
|
-
})) && input.buckets.map((elem,
|
|
1238
|
-
path: _path + ".buckets[" +
|
|
1280
|
+
})) && input.buckets.map((elem, _index33) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
1281
|
+
path: _path + ".buckets[" + _index33 + "]",
|
|
1239
1282
|
expected: "__type.o5",
|
|
1240
1283
|
value: elem
|
|
1241
|
-
})) &&
|
|
1242
|
-
path: _path + ".buckets[" +
|
|
1284
|
+
})) && _vo24(elem, _path + ".buckets[" + _index33 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
1285
|
+
path: _path + ".buckets[" + _index33 + "]",
|
|
1243
1286
|
expected: "__type.o5",
|
|
1244
1287
|
value: elem
|
|
1245
1288
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1258,7 +1301,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1258
1301
|
path: _path + ".IAM",
|
|
1259
1302
|
expected: "(S3Auth | undefined)",
|
|
1260
1303
|
value: input.IAM
|
|
1261
|
-
})) &&
|
|
1304
|
+
})) && _vo21(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
1262
1305
|
path: _path + ".IAM",
|
|
1263
1306
|
expected: "(S3Auth | undefined)",
|
|
1264
1307
|
value: input.IAM
|
|
@@ -1278,7 +1321,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1278
1321
|
"Please remove the property next time."
|
|
1279
1322
|
].join("\n")
|
|
1280
1323
|
});
|
|
1281
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1324
|
+
}).every(flag => flag))].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
1282
1325
|
path: _path + ".url",
|
|
1283
1326
|
expected: "string",
|
|
1284
1327
|
value: input.url
|
|
@@ -1286,8 +1329,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1286
1329
|
path: _path + ".files",
|
|
1287
1330
|
expected: "(Array<string> | undefined)",
|
|
1288
1331
|
value: input.files
|
|
1289
|
-
})) && input.files.map((elem,
|
|
1290
|
-
path: _path + ".files[" +
|
|
1332
|
+
})) && input.files.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
1333
|
+
path: _path + ".files[" + _index34 + "]",
|
|
1291
1334
|
expected: "string",
|
|
1292
1335
|
value: elem
|
|
1293
1336
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1310,7 +1353,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1310
1353
|
"Please remove the property next time."
|
|
1311
1354
|
].join("\n")
|
|
1312
1355
|
});
|
|
1313
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1356
|
+
}).every(flag => flag))].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
|
|
1314
1357
|
path: _path + ".type",
|
|
1315
1358
|
expected: "\"HF\"",
|
|
1316
1359
|
value: input.type
|
|
@@ -1330,8 +1373,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1330
1373
|
path: _path + ".files",
|
|
1331
1374
|
expected: "(Array<string> | undefined)",
|
|
1332
1375
|
value: input.files
|
|
1333
|
-
})) && input.files.map((elem,
|
|
1334
|
-
path: _path + ".files[" +
|
|
1376
|
+
})) && input.files.map((elem, _index35) => "string" === typeof elem || _report(_exceptionable, {
|
|
1377
|
+
path: _path + ".files[" + _index35 + "]",
|
|
1335
1378
|
expected: "string",
|
|
1336
1379
|
value: elem
|
|
1337
1380
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1358,7 +1401,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1358
1401
|
"Please remove the property next time."
|
|
1359
1402
|
].join("\n")
|
|
1360
1403
|
});
|
|
1361
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1404
|
+
}).every(flag => flag))].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
|
|
1362
1405
|
path: _path + ".type",
|
|
1363
1406
|
expected: "\"Ollama\"",
|
|
1364
1407
|
value: input.type
|
|
@@ -1386,11 +1429,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1386
1429
|
"Please remove the property next time."
|
|
1387
1430
|
].join("\n")
|
|
1388
1431
|
});
|
|
1389
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1432
|
+
}).every(flag => flag))].every(flag => flag); const _vo27 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
|
|
1390
1433
|
path: _path + ".docker",
|
|
1391
1434
|
expected: "(DockerAuth | undefined)",
|
|
1392
1435
|
value: input.docker
|
|
1393
|
-
})) &&
|
|
1436
|
+
})) && _vo28(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
|
|
1394
1437
|
path: _path + ".docker",
|
|
1395
1438
|
expected: "(DockerAuth | undefined)",
|
|
1396
1439
|
value: input.docker
|
|
@@ -1410,7 +1453,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1410
1453
|
"Please remove the property next time."
|
|
1411
1454
|
].join("\n")
|
|
1412
1455
|
});
|
|
1413
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1456
|
+
}).every(flag => flag))].every(flag => flag); const _vo28 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
1414
1457
|
path: _path + ".username",
|
|
1415
1458
|
expected: "(string | undefined)",
|
|
1416
1459
|
value: input.username
|
|
@@ -1442,7 +1485,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1442
1485
|
"Please remove the property next time."
|
|
1443
1486
|
].join("\n")
|
|
1444
1487
|
});
|
|
1445
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1488
|
+
}).every(flag => flag))].every(flag => flag); const _vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1446
1489
|
path: _path + ".name",
|
|
1447
1490
|
expected: "string",
|
|
1448
1491
|
value: input.name
|
|
@@ -1462,7 +1505,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1462
1505
|
"Please remove the property next time."
|
|
1463
1506
|
].join("\n")
|
|
1464
1507
|
});
|
|
1465
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1508
|
+
}).every(flag => flag))].every(flag => flag); const _vo30 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1466
1509
|
const value = input[key];
|
|
1467
1510
|
if (undefined === value)
|
|
1468
1511
|
return true;
|
|
@@ -1478,12 +1521,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1478
1521
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1479
1522
|
expected: "(OperationResult | string)",
|
|
1480
1523
|
value: value
|
|
1481
|
-
})) &&
|
|
1524
|
+
})) && _vo31(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
1482
1525
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1483
1526
|
expected: "(OperationResult | string)",
|
|
1484
1527
|
value: value
|
|
1485
1528
|
}));
|
|
1486
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1529
|
+
}).every(flag => flag)].every(flag => flag); const _vo31 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
|
|
1487
1530
|
path: _path + ".regex",
|
|
1488
1531
|
expected: "string",
|
|
1489
1532
|
value: input.regex
|
|
@@ -1503,8 +1546,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1503
1546
|
path: _path + ".logType",
|
|
1504
1547
|
expected: "Array<> & UniqueLogTypeTag",
|
|
1505
1548
|
value: input.logType
|
|
1506
|
-
})) && input.logType.map((elem,
|
|
1507
|
-
path: _path + ".logType[" +
|
|
1549
|
+
})) && input.logType.map((elem, _index36) => "stdin" === elem || "stdout" === elem || "stderr" === elem || "nodeerr" === elem || _report(_exceptionable, {
|
|
1550
|
+
path: _path + ".logType[" + _index36 + "]",
|
|
1508
1551
|
expected: "(\"nodeerr\" | \"stderr\" | \"stdin\" | \"stdout\")",
|
|
1509
1552
|
value: elem
|
|
1510
1553
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
@@ -1527,7 +1570,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1527
1570
|
"Please remove the property next time."
|
|
1528
1571
|
].join("\n")
|
|
1529
1572
|
});
|
|
1530
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1573
|
+
}).every(flag => flag))].every(flag => flag); const _vo32 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1531
1574
|
path: _path + ".group",
|
|
1532
1575
|
expected: "(string | undefined)",
|
|
1533
1576
|
value: input.group
|
|
@@ -1567,7 +1610,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1567
1610
|
"Please remove the property next time."
|
|
1568
1611
|
].join("\n")
|
|
1569
1612
|
});
|
|
1570
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1613
|
+
}).every(flag => flag))].every(flag => flag); const _vo33 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1571
1614
|
path: _path + ".group",
|
|
1572
1615
|
expected: "(string | undefined)",
|
|
1573
1616
|
value: input.group
|
|
@@ -1579,8 +1622,8 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1579
1622
|
path: _path + ".depends_on",
|
|
1580
1623
|
expected: "Array<string>",
|
|
1581
1624
|
value: input.depends_on
|
|
1582
|
-
})) && input.depends_on.map((elem,
|
|
1583
|
-
path: _path + ".depends_on[" +
|
|
1625
|
+
})) && input.depends_on.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
1626
|
+
path: _path + ".depends_on[" + _index37 + "]",
|
|
1584
1627
|
expected: "string",
|
|
1585
1628
|
value: elem
|
|
1586
1629
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -1609,9 +1652,9 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1609
1652
|
});
|
|
1610
1653
|
}).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1611
1654
|
if ("http" === input.type)
|
|
1612
|
-
return
|
|
1655
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
1613
1656
|
else if ("websocket" === input.type)
|
|
1614
|
-
return
|
|
1657
|
+
return _vo18(input, _path, true && _exceptionable);
|
|
1615
1658
|
else
|
|
1616
1659
|
return _report(_exceptionable, {
|
|
1617
1660
|
path: _path,
|
|
@@ -1620,9 +1663,9 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1620
1663
|
});
|
|
1621
1664
|
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1622
1665
|
if (undefined !== input.__spread__)
|
|
1623
|
-
return _vo13(input, _path, true && _exceptionable);
|
|
1624
|
-
else if (undefined !== input.port)
|
|
1625
1666
|
return _vo14(input, _path, true && _exceptionable);
|
|
1667
|
+
else if (undefined !== input.port)
|
|
1668
|
+
return _vo15(input, _path, true && _exceptionable);
|
|
1626
1669
|
else
|
|
1627
1670
|
return _report(_exceptionable, {
|
|
1628
1671
|
path: _path,
|
|
@@ -1631,22 +1674,22 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1631
1674
|
});
|
|
1632
1675
|
})(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
|
1633
1676
|
if (undefined !== input.__spread__)
|
|
1634
|
-
return
|
|
1677
|
+
return _vo14(input, _path, true && _exceptionable);
|
|
1635
1678
|
else if (undefined !== input.bucket)
|
|
1636
|
-
return _vo21(input, _path, true && _exceptionable);
|
|
1637
|
-
else if (undefined !== input.buckets)
|
|
1638
1679
|
return _vo22(input, _path, true && _exceptionable);
|
|
1680
|
+
else if (undefined !== input.buckets)
|
|
1681
|
+
return _vo23(input, _path, true && _exceptionable);
|
|
1639
1682
|
else if ("HF" === input.type)
|
|
1640
|
-
return _vo24(input, _path, true && _exceptionable);
|
|
1641
|
-
else if ("Ollama" === input.type)
|
|
1642
1683
|
return _vo25(input, _path, true && _exceptionable);
|
|
1684
|
+
else if ("Ollama" === input.type)
|
|
1685
|
+
return _vo26(input, _path, true && _exceptionable);
|
|
1643
1686
|
else
|
|
1644
|
-
return
|
|
1687
|
+
return _vo20(input, _path, true && _exceptionable);
|
|
1645
1688
|
})(); const _vu3 = (input, _path, _exceptionable = true) => (() => {
|
|
1646
1689
|
if (undefined !== input.image)
|
|
1647
|
-
return
|
|
1690
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
1648
1691
|
else if (undefined !== input.name)
|
|
1649
|
-
return
|
|
1692
|
+
return _vo29(input, _path, true && _exceptionable);
|
|
1650
1693
|
else
|
|
1651
1694
|
return _report(_exceptionable, {
|
|
1652
1695
|
path: _path,
|
|
@@ -1654,10 +1697,10 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1654
1697
|
value: input
|
|
1655
1698
|
});
|
|
1656
1699
|
})(); const _vu4 = (input, _path, _exceptionable = true) => (() => {
|
|
1657
|
-
if (Array.isArray(input.depends_on) && input.depends_on.map((elem,
|
|
1658
|
-
return
|
|
1700
|
+
if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index38) => "string" === typeof elem).every(flag => flag))
|
|
1701
|
+
return _vo33(input, _path, true && _exceptionable);
|
|
1659
1702
|
else
|
|
1660
|
-
return
|
|
1703
|
+
return _vo32(input, _path, true && _exceptionable);
|
|
1661
1704
|
})(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
1662
1705
|
if (false === __is(input)) {
|
|
1663
1706
|
errors = [];
|