@nosana/types 0.1.2 → 0.1.4
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/logistics/index.d.ts +9 -5
- package/dist/Jobs/JobDefinition/logistics/index.js +1 -1
- package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/meta/index.d.ts +2 -1
- package/dist/Jobs/index.js +144 -97
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +20 -2
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
* api - we receive and send via an endpoint endpoint
|
|
3
3
|
* api-listen - we create an endpoint to listen for incoming requests
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const LogisticType: {
|
|
6
6
|
readonly API: "api";
|
|
7
7
|
readonly API_LISTEN: "api-listen";
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
10
|
-
type
|
|
9
|
+
export type LogisticType = typeof LogisticType[keyof typeof LogisticType];
|
|
10
|
+
type LogisticArgs = Partial<{
|
|
11
11
|
endpoint: string;
|
|
12
12
|
}>;
|
|
13
|
+
export type Logistic = {
|
|
14
|
+
type: LogisticType;
|
|
15
|
+
args: LogisticArgs;
|
|
16
|
+
};
|
|
13
17
|
export interface Logistics {
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
send: Logistic;
|
|
19
|
+
receive: Logistic;
|
|
16
20
|
}
|
|
17
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC"}
|
package/dist/Jobs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import typia from "typia";
|
|
|
5
5
|
export * from "./Flows/index.js";
|
|
6
6
|
export * from "./JobDefinition/index.js";
|
|
7
7
|
export * from "./Logs/index.js";
|
|
8
|
-
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) &&
|
|
8
|
+
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) && _io6(input.global, true && _exceptionable)) && (Array.isArray(input.ops) && (Array.isArray(input.ops) && (() => {
|
|
9
9
|
const seen = new Set();
|
|
10
10
|
for (const it of input.ops) {
|
|
11
11
|
if (typeof it?.id !== "string")
|
|
@@ -15,64 +15,71 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
15
15
|
seen.add(it.id);
|
|
16
16
|
}
|
|
17
17
|
return true;
|
|
18
|
-
})() && input.ops.every((elem, _index1) => "object" === typeof elem && null !== elem &&
|
|
18
|
+
})() && input.ops.every((elem, _index1) => "object" === typeof elem && null !== elem && _io9(elem, true && _exceptionable)))) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
19
19
|
if (["type", "version", "logistics", "deployment_id", "meta", "global", "ops"].some(prop => key === prop))
|
|
20
20
|
return true;
|
|
21
21
|
const value = input[key];
|
|
22
22
|
if (undefined === value)
|
|
23
23
|
return true;
|
|
24
24
|
return false;
|
|
25
|
-
})); const _io1 = (input, _exceptionable = true) =>
|
|
25
|
+
})); const _io1 = (input, _exceptionable = true) => "object" === typeof input.send && null !== input.send && _io2(input.send, true && _exceptionable) && ("object" === typeof input.receive && null !== input.receive && _io2(input.receive, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
26
|
+
if (["send", "receive"].some(prop => key === prop))
|
|
27
|
+
return true;
|
|
28
|
+
const value = input[key];
|
|
29
|
+
if (undefined === value)
|
|
30
|
+
return true;
|
|
31
|
+
return false;
|
|
32
|
+
})); const _io2 = (input, _exceptionable = true) => ("api" === input.type || "api-listen" === input.type) && ("object" === typeof input.args && null !== input.args && false === Array.isArray(input.args) && _io3(input.args, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
26
33
|
if (["type", "args"].some(prop => key === prop))
|
|
27
34
|
return true;
|
|
28
35
|
const value = input[key];
|
|
29
36
|
if (undefined === value)
|
|
30
37
|
return true;
|
|
31
38
|
return false;
|
|
32
|
-
})); const
|
|
39
|
+
})); const _io3 = (input, _exceptionable = true) => (undefined === input.endpoint || "string" === typeof input.endpoint) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
33
40
|
if (["endpoint"].some(prop => key === prop))
|
|
34
41
|
return true;
|
|
35
42
|
const value = input[key];
|
|
36
43
|
if (undefined === value)
|
|
37
44
|
return true;
|
|
38
45
|
return false;
|
|
39
|
-
})); const
|
|
46
|
+
})); const _io4 = (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) && _io5(input.system_resources, true && _exceptionable)) && Object.keys(input).every(key => {
|
|
40
47
|
if (["trigger", "system_resources"].some(prop => key === prop))
|
|
41
48
|
return true;
|
|
42
49
|
const value = input[key];
|
|
43
50
|
if (undefined === value)
|
|
44
51
|
return true;
|
|
45
|
-
return "string" === typeof value || "number" === typeof value;
|
|
46
|
-
}); const
|
|
52
|
+
return null !== value && (undefined === value || "string" === typeof value || "number" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io5(value, true && _exceptionable));
|
|
53
|
+
}); const _io5 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
47
54
|
const value = input[key];
|
|
48
55
|
if (undefined === value)
|
|
49
56
|
return true;
|
|
50
57
|
return "string" === typeof value || "number" === typeof value;
|
|
51
|
-
}); const
|
|
58
|
+
}); const _io6 = (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, _index2) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io7(input.env, true && _exceptionable)) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && _io8(input.variables, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
52
59
|
if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
|
|
53
60
|
return true;
|
|
54
61
|
const value = input[key];
|
|
55
62
|
if (undefined === value)
|
|
56
63
|
return true;
|
|
57
64
|
return false;
|
|
58
|
-
})); const
|
|
65
|
+
})); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
59
66
|
const value = input[key];
|
|
60
67
|
if (undefined === value)
|
|
61
68
|
return true;
|
|
62
69
|
return "string" === typeof value;
|
|
63
|
-
}); const
|
|
70
|
+
}); const _io8 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
64
71
|
const value = input[key];
|
|
65
72
|
if (undefined === value)
|
|
66
73
|
return true;
|
|
67
74
|
return "string" === typeof value;
|
|
68
|
-
}); const
|
|
75
|
+
}); const _io9 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && "string" === typeof input.id && ("object" === typeof input.args && null !== input.args && _iu1(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io23(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu2(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
69
76
|
if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
|
|
70
77
|
return true;
|
|
71
78
|
const value = input[key];
|
|
72
79
|
if (undefined === value)
|
|
73
80
|
return true;
|
|
74
81
|
return false;
|
|
75
|
-
})); const
|
|
82
|
+
})); const _io10 = (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, _index3) => "string" === typeof elem))) && (null !== input.cmd && (undefined === input.cmd || "string" === typeof input.cmd || Array.isArray(input.cmd) && input.cmd.every((elem, _index4) => "string" === typeof elem))) && (undefined === input.volumes || Array.isArray(input.volumes) && input.volumes.every((elem, _index5) => "object" === typeof elem && null !== elem && _io11(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) && ((() => {
|
|
76
83
|
if (!Array.isArray(input.expose))
|
|
77
84
|
return true;
|
|
78
85
|
const numbers = new Set();
|
|
@@ -107,103 +114,103 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
107
114
|
}
|
|
108
115
|
}
|
|
109
116
|
return true;
|
|
110
|
-
})() && input.expose.every((elem, _index6) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem &&
|
|
117
|
+
})() && input.expose.every((elem, _index6) => null !== elem && undefined !== elem && ("number" === typeof elem || "string" === typeof elem && (typeof elem === "string" && /^%%(ops|global).[^%]+%%$/.test(elem)) || "object" === typeof elem && null !== elem && _io12(elem, true && _exceptionable)))) || "object" === typeof input.expose && null !== input.expose && _io12(input.expose, true && _exceptionable)))) && (undefined === input.gpu || "boolean" === typeof input.gpu) && (undefined === input.work_dir || "string" === typeof input.work_dir) && (null !== input.entrypoint && (undefined === input.entrypoint || "string" === typeof input.entrypoint || Array.isArray(input.entrypoint) && input.entrypoint.every((elem, _index7) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io7(input.env, true && _exceptionable)) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every((elem, _index8) => null !== elem && undefined !== elem && ("__remove-if-empty__" === elem || "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable)))) && (undefined === input.authentication || "object" === typeof input.authentication && null !== input.authentication && false === Array.isArray(input.authentication) && _io20(input.authentication, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
111
118
|
if (["image", "aliases", "cmd", "volumes", "expose", "gpu", "work_dir", "entrypoint", "env", "resources", "authentication"].some(prop => key === prop))
|
|
112
119
|
return true;
|
|
113
120
|
const value = input[key];
|
|
114
121
|
if (undefined === value)
|
|
115
122
|
return true;
|
|
116
123
|
return false;
|
|
117
|
-
})); const
|
|
124
|
+
})); const _io11 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.dest && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
118
125
|
if (["name", "dest"].some(prop => key === prop))
|
|
119
126
|
return true;
|
|
120
127
|
const value = input[key];
|
|
121
128
|
if (undefined === value)
|
|
122
129
|
return true;
|
|
123
130
|
return false;
|
|
124
|
-
})); const
|
|
131
|
+
})); const _io12 = (input, _exceptionable = true) => "string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
125
132
|
if (["__spread__"].some(prop => key === prop))
|
|
126
133
|
return true;
|
|
127
134
|
const value = input[key];
|
|
128
135
|
if (undefined === value)
|
|
129
136
|
return true;
|
|
130
137
|
return false;
|
|
131
|
-
})); const
|
|
138
|
+
})); const _io13 = (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, _index9) => "string" === typeof elem)) && (undefined === input.IAM || "object" === typeof input.IAM && null !== input.IAM && _io14(input.IAM, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
132
139
|
if (["type", "target", "url", "allowWrite", "files", "IAM"].some(prop => key === prop))
|
|
133
140
|
return true;
|
|
134
141
|
const value = input[key];
|
|
135
142
|
if (undefined === value)
|
|
136
143
|
return true;
|
|
137
144
|
return false;
|
|
138
|
-
})); const
|
|
145
|
+
})); const _io14 = (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 => {
|
|
139
146
|
if (["REGION", "ACCESS_KEY_ID", "SECRET_ACCESS_KEY"].some(prop => key === prop))
|
|
140
147
|
return true;
|
|
141
148
|
const value = input[key];
|
|
142
149
|
if (undefined === value)
|
|
143
150
|
return true;
|
|
144
151
|
return false;
|
|
145
|
-
})); const
|
|
152
|
+
})); const _io15 = (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 && _io14(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
146
153
|
if (["type", "target", "bucket", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
147
154
|
return true;
|
|
148
155
|
const value = input[key];
|
|
149
156
|
if (undefined === value)
|
|
150
157
|
return true;
|
|
151
158
|
return false;
|
|
152
|
-
})); const
|
|
159
|
+
})); const _io16 = (input, _exceptionable = true) => "S3" === input.type && "string" === typeof input.target && (Array.isArray(input.buckets) && input.buckets.every((elem, _index10) => "object" === typeof elem && null !== elem && _io17(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 && _io14(input.IAM, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
153
160
|
if (["type", "target", "buckets", "url", "allowWrite", "IAM"].some(prop => key === prop))
|
|
154
161
|
return true;
|
|
155
162
|
const value = input[key];
|
|
156
163
|
if (undefined === value)
|
|
157
164
|
return true;
|
|
158
165
|
return false;
|
|
159
|
-
})); const
|
|
166
|
+
})); const _io17 = (input, _exceptionable = true) => "string" === typeof input.url && (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index11) => "string" === typeof elem)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
160
167
|
if (["url", "files"].some(prop => key === prop))
|
|
161
168
|
return true;
|
|
162
169
|
const value = input[key];
|
|
163
170
|
if (undefined === value)
|
|
164
171
|
return true;
|
|
165
172
|
return false;
|
|
166
|
-
})); const
|
|
173
|
+
})); const _io18 = (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, _index12) => "string" === typeof elem)) && (undefined === input.accessToken || "string" === typeof input.accessToken) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
167
174
|
if (["type", "target", "repo", "revision", "files", "accessToken"].some(prop => key === prop))
|
|
168
175
|
return true;
|
|
169
176
|
const value = input[key];
|
|
170
177
|
if (undefined === value)
|
|
171
178
|
return true;
|
|
172
179
|
return false;
|
|
173
|
-
})); const
|
|
180
|
+
})); const _io19 = (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 => {
|
|
174
181
|
if (["type", "model", "target"].some(prop => key === prop))
|
|
175
182
|
return true;
|
|
176
183
|
const value = input[key];
|
|
177
184
|
if (undefined === value)
|
|
178
185
|
return true;
|
|
179
186
|
return false;
|
|
180
|
-
})); const
|
|
187
|
+
})); const _io20 = (input, _exceptionable = true) => (undefined === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io21(input.docker, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
181
188
|
if (["docker"].some(prop => key === prop))
|
|
182
189
|
return true;
|
|
183
190
|
const value = input[key];
|
|
184
191
|
if (undefined === value)
|
|
185
192
|
return true;
|
|
186
193
|
return false;
|
|
187
|
-
})); const
|
|
194
|
+
})); const _io21 = (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 => {
|
|
188
195
|
if (["username", "password", "email", "server"].some(prop => key === prop))
|
|
189
196
|
return true;
|
|
190
197
|
const value = input[key];
|
|
191
198
|
if (undefined === value)
|
|
192
199
|
return true;
|
|
193
200
|
return false;
|
|
194
|
-
})); const
|
|
201
|
+
})); const _io22 = (input, _exceptionable = true) => "string" === typeof input.name && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
195
202
|
if (["name"].some(prop => key === prop))
|
|
196
203
|
return true;
|
|
197
204
|
const value = input[key];
|
|
198
205
|
if (undefined === value)
|
|
199
206
|
return true;
|
|
200
207
|
return false;
|
|
201
|
-
})); const
|
|
208
|
+
})); const _io23 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
202
209
|
const value = input[key];
|
|
203
210
|
if (undefined === value)
|
|
204
211
|
return true;
|
|
205
|
-
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value &&
|
|
206
|
-
}); const
|
|
212
|
+
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _io24(value, true && _exceptionable));
|
|
213
|
+
}); const _io24 = (input, _exceptionable = true) => "string" === typeof input.regex && (Array.isArray(input.logType) && (Array.isArray(input.logType) && input.logType.length >= 1 && input.logType.length <= 4 && (() => {
|
|
207
214
|
const seen = new Set();
|
|
208
215
|
for (const v of input.logType) {
|
|
209
216
|
if (seen.has(v))
|
|
@@ -218,14 +225,14 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
218
225
|
if (undefined === value)
|
|
219
226
|
return true;
|
|
220
227
|
return false;
|
|
221
|
-
})); const
|
|
228
|
+
})); const _io25 = (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 => {
|
|
222
229
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
223
230
|
return true;
|
|
224
231
|
const value = input[key];
|
|
225
232
|
if (undefined === value)
|
|
226
233
|
return true;
|
|
227
234
|
return false;
|
|
228
|
-
})); const
|
|
235
|
+
})); const _io26 = (input, _exceptionable = true) => (undefined === input.group || "string" === typeof input.group) && (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index14) => "string" === typeof elem)) && (undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
229
236
|
if (["group", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
|
|
230
237
|
return true;
|
|
231
238
|
const value = input[key];
|
|
@@ -234,29 +241,29 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
234
241
|
return false;
|
|
235
242
|
})); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
236
243
|
if (undefined !== input.__spread__)
|
|
237
|
-
return
|
|
244
|
+
return _io12(input, true && _exceptionable);
|
|
238
245
|
else if (undefined !== input.bucket)
|
|
239
|
-
return _io14(input, true && _exceptionable);
|
|
240
|
-
else if (undefined !== input.buckets)
|
|
241
246
|
return _io15(input, true && _exceptionable);
|
|
247
|
+
else if (undefined !== input.buckets)
|
|
248
|
+
return _io16(input, true && _exceptionable);
|
|
242
249
|
else if ("HF" === input.type)
|
|
243
|
-
return _io17(input, true && _exceptionable);
|
|
244
|
-
else if ("Ollama" === input.type)
|
|
245
250
|
return _io18(input, true && _exceptionable);
|
|
251
|
+
else if ("Ollama" === input.type)
|
|
252
|
+
return _io19(input, true && _exceptionable);
|
|
246
253
|
else
|
|
247
|
-
return
|
|
254
|
+
return _io13(input, true && _exceptionable);
|
|
248
255
|
})(); const _iu1 = (input, _exceptionable = true) => (() => {
|
|
249
256
|
if (undefined !== input.image)
|
|
250
|
-
return
|
|
257
|
+
return _io10(input, true && _exceptionable);
|
|
251
258
|
else if (undefined !== input.name)
|
|
252
|
-
return
|
|
259
|
+
return _io22(input, true && _exceptionable);
|
|
253
260
|
else
|
|
254
261
|
return false;
|
|
255
262
|
})(); const _iu2 = (input, _exceptionable = true) => (() => {
|
|
256
263
|
if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index15) => "string" === typeof elem))
|
|
257
|
-
return
|
|
264
|
+
return _io26(input, true && _exceptionable);
|
|
258
265
|
else
|
|
259
|
-
return
|
|
266
|
+
return _io25(input, true && _exceptionable);
|
|
260
267
|
})(); const _vo0 = (input, _path, _exceptionable = true) => ["container" === input.type || _report(_exceptionable, {
|
|
261
268
|
path: _path + ".type",
|
|
262
269
|
expected: "\"container\"",
|
|
@@ -281,7 +288,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
281
288
|
path: _path + ".meta",
|
|
282
289
|
expected: "(Meta | undefined)",
|
|
283
290
|
value: input.meta
|
|
284
|
-
})) &&
|
|
291
|
+
})) && _vo4(input.meta, _path + ".meta", true && _exceptionable) || _report(_exceptionable, {
|
|
285
292
|
path: _path + ".meta",
|
|
286
293
|
expected: "(Meta | undefined)",
|
|
287
294
|
value: input.meta
|
|
@@ -289,7 +296,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
289
296
|
path: _path + ".global",
|
|
290
297
|
expected: "(Global | undefined)",
|
|
291
298
|
value: input.global
|
|
292
|
-
})) &&
|
|
299
|
+
})) && _vo6(input.global, _path + ".global", true && _exceptionable) || _report(_exceptionable, {
|
|
293
300
|
path: _path + ".global",
|
|
294
301
|
expected: "(Global | undefined)",
|
|
295
302
|
value: input.global
|
|
@@ -315,7 +322,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
315
322
|
path: _path + ".ops[" + _index16 + "]",
|
|
316
323
|
expected: "Operation<keyof OperationArgsMap>",
|
|
317
324
|
value: elem
|
|
318
|
-
})) &&
|
|
325
|
+
})) && _vo9(elem, _path + ".ops[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
319
326
|
path: _path + ".ops[" + _index16 + "]",
|
|
320
327
|
expected: "Operation<keyof OperationArgsMap>",
|
|
321
328
|
value: elem
|
|
@@ -339,7 +346,39 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
339
346
|
"Please remove the property next time."
|
|
340
347
|
].join("\n")
|
|
341
348
|
});
|
|
342
|
-
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["
|
|
349
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.send && null !== input.send || _report(_exceptionable, {
|
|
350
|
+
path: _path + ".send",
|
|
351
|
+
expected: "Logistic",
|
|
352
|
+
value: input.send
|
|
353
|
+
})) && _vo2(input.send, _path + ".send", true && _exceptionable) || _report(_exceptionable, {
|
|
354
|
+
path: _path + ".send",
|
|
355
|
+
expected: "Logistic",
|
|
356
|
+
value: input.send
|
|
357
|
+
}), ("object" === typeof input.receive && null !== input.receive || _report(_exceptionable, {
|
|
358
|
+
path: _path + ".receive",
|
|
359
|
+
expected: "Logistic",
|
|
360
|
+
value: input.receive
|
|
361
|
+
})) && _vo2(input.receive, _path + ".receive", true && _exceptionable) || _report(_exceptionable, {
|
|
362
|
+
path: _path + ".receive",
|
|
363
|
+
expected: "Logistic",
|
|
364
|
+
value: input.receive
|
|
365
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
366
|
+
if (["send", "receive"].some(prop => key === prop))
|
|
367
|
+
return true;
|
|
368
|
+
const value = input[key];
|
|
369
|
+
if (undefined === value)
|
|
370
|
+
return true;
|
|
371
|
+
return _report(_exceptionable, {
|
|
372
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
373
|
+
expected: "undefined",
|
|
374
|
+
value: value,
|
|
375
|
+
description: [
|
|
376
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
377
|
+
"",
|
|
378
|
+
"Please remove the property next time."
|
|
379
|
+
].join("\n")
|
|
380
|
+
});
|
|
381
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["api" === input.type || "api-listen" === input.type || _report(_exceptionable, {
|
|
343
382
|
path: _path + ".type",
|
|
344
383
|
expected: "(\"api\" | \"api-listen\")",
|
|
345
384
|
value: input.type
|
|
@@ -347,7 +386,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
347
386
|
path: _path + ".args",
|
|
348
387
|
expected: "Partial<__type>",
|
|
349
388
|
value: input.args
|
|
350
|
-
})) &&
|
|
389
|
+
})) && _vo3(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
|
|
351
390
|
path: _path + ".args",
|
|
352
391
|
expected: "Partial<__type>",
|
|
353
392
|
value: input.args
|
|
@@ -367,7 +406,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
367
406
|
"Please remove the property next time."
|
|
368
407
|
].join("\n")
|
|
369
408
|
});
|
|
370
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
409
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.endpoint || "string" === typeof input.endpoint || _report(_exceptionable, {
|
|
371
410
|
path: _path + ".endpoint",
|
|
372
411
|
expected: "(string | undefined)",
|
|
373
412
|
value: input.endpoint
|
|
@@ -387,7 +426,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
387
426
|
"Please remove the property next time."
|
|
388
427
|
].join("\n")
|
|
389
428
|
});
|
|
390
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
429
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.trigger || "string" === typeof input.trigger || _report(_exceptionable, {
|
|
391
430
|
path: _path + ".trigger",
|
|
392
431
|
expected: "(string | undefined)",
|
|
393
432
|
value: input.trigger
|
|
@@ -395,7 +434,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
395
434
|
path: _path + ".system_resources",
|
|
396
435
|
expected: "(Record<string, string | number> | undefined)",
|
|
397
436
|
value: input.system_resources
|
|
398
|
-
})) &&
|
|
437
|
+
})) && _vo5(input.system_resources, _path + ".system_resources", true && _exceptionable) || _report(_exceptionable, {
|
|
399
438
|
path: _path + ".system_resources",
|
|
400
439
|
expected: "(Record<string, string | number> | undefined)",
|
|
401
440
|
value: input.system_resources
|
|
@@ -405,12 +444,20 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
405
444
|
const value = input[key];
|
|
406
445
|
if (undefined === value)
|
|
407
446
|
return true;
|
|
408
|
-
return
|
|
447
|
+
return (null !== value || _report(_exceptionable, {
|
|
409
448
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
410
|
-
expected: "(number | string)",
|
|
449
|
+
expected: "(Record<string, string | number> | number | string | undefined)",
|
|
411
450
|
value: value
|
|
412
|
-
})
|
|
413
|
-
|
|
451
|
+
})) && (undefined === value || "string" === typeof value || "number" === typeof value || ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
452
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
453
|
+
expected: "(Record<string, string | number> | number | string | undefined)",
|
|
454
|
+
value: value
|
|
455
|
+
})) && _vo5(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
456
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
457
|
+
expected: "(Record<string, string | number> | number | string | undefined)",
|
|
458
|
+
value: value
|
|
459
|
+
}));
|
|
460
|
+
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
414
461
|
const value = input[key];
|
|
415
462
|
if (undefined === value)
|
|
416
463
|
return true;
|
|
@@ -419,7 +466,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
419
466
|
expected: "(number | string)",
|
|
420
467
|
value: value
|
|
421
468
|
});
|
|
422
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
469
|
+
}).every(flag => flag)].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
423
470
|
path: _path + ".image",
|
|
424
471
|
expected: "(string | undefined)",
|
|
425
472
|
value: input.image
|
|
@@ -447,7 +494,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
447
494
|
path: _path + ".env",
|
|
448
495
|
expected: "(Env | undefined)",
|
|
449
496
|
value: input.env
|
|
450
|
-
})) &&
|
|
497
|
+
})) && _vo7(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
451
498
|
path: _path + ".env",
|
|
452
499
|
expected: "(Env | undefined)",
|
|
453
500
|
value: input.env
|
|
@@ -459,7 +506,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
459
506
|
path: _path + ".variables",
|
|
460
507
|
expected: "(Variables | undefined)",
|
|
461
508
|
value: input.variables
|
|
462
|
-
})) &&
|
|
509
|
+
})) && _vo8(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
|
|
463
510
|
path: _path + ".variables",
|
|
464
511
|
expected: "(Variables | undefined)",
|
|
465
512
|
value: input.variables
|
|
@@ -479,7 +526,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
479
526
|
"Please remove the property next time."
|
|
480
527
|
].join("\n")
|
|
481
528
|
});
|
|
482
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
529
|
+
}).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
483
530
|
const value = input[key];
|
|
484
531
|
if (undefined === value)
|
|
485
532
|
return true;
|
|
@@ -488,7 +535,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
488
535
|
expected: "string",
|
|
489
536
|
value: value
|
|
490
537
|
});
|
|
491
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
538
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
492
539
|
const value = input[key];
|
|
493
540
|
if (undefined === value)
|
|
494
541
|
return true;
|
|
@@ -497,7 +544,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
497
544
|
expected: "string",
|
|
498
545
|
value: value
|
|
499
546
|
});
|
|
500
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
547
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["container/run" === input.type || "container/create-volume" === input.type || _report(_exceptionable, {
|
|
501
548
|
path: _path + ".type",
|
|
502
549
|
expected: "(\"container/create-volume\" | \"container/run\")",
|
|
503
550
|
value: input.type
|
|
@@ -517,7 +564,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
517
564
|
path: _path + ".results",
|
|
518
565
|
expected: "(OperationResults | undefined)",
|
|
519
566
|
value: input.results
|
|
520
|
-
})) &&
|
|
567
|
+
})) && _vo23(input.results, _path + ".results", true && _exceptionable) || _report(_exceptionable, {
|
|
521
568
|
path: _path + ".results",
|
|
522
569
|
expected: "(OperationResults | undefined)",
|
|
523
570
|
value: input.results
|
|
@@ -545,7 +592,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
545
592
|
"Please remove the property next time."
|
|
546
593
|
].join("\n")
|
|
547
594
|
});
|
|
548
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
595
|
+
}).every(flag => flag))].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.image || _report(_exceptionable, {
|
|
549
596
|
path: _path + ".image",
|
|
550
597
|
expected: "string",
|
|
551
598
|
value: input.image
|
|
@@ -589,7 +636,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
589
636
|
path: _path + ".volumes[" + _index20 + "]",
|
|
590
637
|
expected: "Volume",
|
|
591
638
|
value: elem
|
|
592
|
-
})) &&
|
|
639
|
+
})) && _vo11(elem, _path + ".volumes[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
593
640
|
path: _path + ".volumes[" + _index20 + "]",
|
|
594
641
|
expected: "Volume",
|
|
595
642
|
value: elem
|
|
@@ -660,11 +707,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
660
707
|
path: _path + ".expose[" + _index21 + "]",
|
|
661
708
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
662
709
|
value: elem
|
|
663
|
-
})) &&
|
|
710
|
+
})) && _vo12(elem, _path + ".expose[" + _index21 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
664
711
|
path: _path + ".expose[" + _index21 + "]",
|
|
665
712
|
expected: "((__type & TagBase<__type>) | (string & TagBase<__type>) | number)",
|
|
666
713
|
value: elem
|
|
667
|
-
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose &&
|
|
714
|
+
}))).every(flag => flag)) || "object" === typeof input.expose && null !== input.expose && _vo12(input.expose, _path + ".expose", true && _exceptionable) || _report(_exceptionable, {
|
|
668
715
|
path: _path + ".expose",
|
|
669
716
|
expected: "((Array<ExposeBase> & TagBase<__type>) | (__type & TagBase<__type>) | (string & TagBase<__type>) | number | undefined)",
|
|
670
717
|
value: input.expose
|
|
@@ -700,7 +747,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
700
747
|
path: _path + ".env",
|
|
701
748
|
expected: "(Env | undefined)",
|
|
702
749
|
value: input.env
|
|
703
|
-
})) &&
|
|
750
|
+
})) && _vo7(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
|
|
704
751
|
path: _path + ".env",
|
|
705
752
|
expected: "(Env | undefined)",
|
|
706
753
|
value: input.env
|
|
@@ -732,7 +779,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
732
779
|
path: _path + ".authentication",
|
|
733
780
|
expected: "(Authentication | undefined)",
|
|
734
781
|
value: input.authentication
|
|
735
|
-
})) &&
|
|
782
|
+
})) && _vo20(input.authentication, _path + ".authentication", true && _exceptionable) || _report(_exceptionable, {
|
|
736
783
|
path: _path + ".authentication",
|
|
737
784
|
expected: "(Authentication | undefined)",
|
|
738
785
|
value: input.authentication
|
|
@@ -752,7 +799,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
752
799
|
"Please remove the property next time."
|
|
753
800
|
].join("\n")
|
|
754
801
|
});
|
|
755
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
802
|
+
}).every(flag => flag))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
756
803
|
path: _path + ".name",
|
|
757
804
|
expected: "string",
|
|
758
805
|
value: input.name
|
|
@@ -776,7 +823,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
776
823
|
"Please remove the property next time."
|
|
777
824
|
].join("\n")
|
|
778
825
|
});
|
|
779
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
826
|
+
}).every(flag => flag))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.__spread__ && (typeof input.__spread__ === "string" && /^%%(ops|global).[^%]+%%$/.test(input.__spread__) || _report(_exceptionable, {
|
|
780
827
|
path: _path + ".__spread__",
|
|
781
828
|
expected: "string & TagBase<__type>",
|
|
782
829
|
value: input.__spread__
|
|
@@ -800,7 +847,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
800
847
|
"Please remove the property next time."
|
|
801
848
|
].join("\n")
|
|
802
849
|
});
|
|
803
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
850
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
804
851
|
path: _path + ".type",
|
|
805
852
|
expected: "\"S3\"",
|
|
806
853
|
value: input.type
|
|
@@ -832,7 +879,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
832
879
|
path: _path + ".IAM",
|
|
833
880
|
expected: "(S3Auth | undefined)",
|
|
834
881
|
value: input.IAM
|
|
835
|
-
})) &&
|
|
882
|
+
})) && _vo14(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
836
883
|
path: _path + ".IAM",
|
|
837
884
|
expected: "(S3Auth | undefined)",
|
|
838
885
|
value: input.IAM
|
|
@@ -852,7 +899,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
852
899
|
"Please remove the property next time."
|
|
853
900
|
].join("\n")
|
|
854
901
|
});
|
|
855
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
902
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.REGION || _report(_exceptionable, {
|
|
856
903
|
path: _path + ".REGION",
|
|
857
904
|
expected: "string",
|
|
858
905
|
value: input.REGION
|
|
@@ -880,7 +927,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
880
927
|
"Please remove the property next time."
|
|
881
928
|
].join("\n")
|
|
882
929
|
});
|
|
883
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
930
|
+
}).every(flag => flag))].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
884
931
|
path: _path + ".type",
|
|
885
932
|
expected: "\"S3\"",
|
|
886
933
|
value: input.type
|
|
@@ -904,7 +951,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
904
951
|
path: _path + ".IAM",
|
|
905
952
|
expected: "(S3Auth | undefined)",
|
|
906
953
|
value: input.IAM
|
|
907
|
-
})) &&
|
|
954
|
+
})) && _vo14(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
908
955
|
path: _path + ".IAM",
|
|
909
956
|
expected: "(S3Auth | undefined)",
|
|
910
957
|
value: input.IAM
|
|
@@ -924,7 +971,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
924
971
|
"Please remove the property next time."
|
|
925
972
|
].join("\n")
|
|
926
973
|
});
|
|
927
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
974
|
+
}).every(flag => flag))].every(flag => flag); const _vo16 = (input, _path, _exceptionable = true) => ["S3" === input.type || _report(_exceptionable, {
|
|
928
975
|
path: _path + ".type",
|
|
929
976
|
expected: "\"S3\"",
|
|
930
977
|
value: input.type
|
|
@@ -940,7 +987,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
940
987
|
path: _path + ".buckets[" + _index25 + "]",
|
|
941
988
|
expected: "__type.o4",
|
|
942
989
|
value: elem
|
|
943
|
-
})) &&
|
|
990
|
+
})) && _vo17(elem, _path + ".buckets[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
944
991
|
path: _path + ".buckets[" + _index25 + "]",
|
|
945
992
|
expected: "__type.o4",
|
|
946
993
|
value: elem
|
|
@@ -960,7 +1007,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
960
1007
|
path: _path + ".IAM",
|
|
961
1008
|
expected: "(S3Auth | undefined)",
|
|
962
1009
|
value: input.IAM
|
|
963
|
-
})) &&
|
|
1010
|
+
})) && _vo14(input.IAM, _path + ".IAM", true && _exceptionable) || _report(_exceptionable, {
|
|
964
1011
|
path: _path + ".IAM",
|
|
965
1012
|
expected: "(S3Auth | undefined)",
|
|
966
1013
|
value: input.IAM
|
|
@@ -980,7 +1027,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
980
1027
|
"Please remove the property next time."
|
|
981
1028
|
].join("\n")
|
|
982
1029
|
});
|
|
983
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1030
|
+
}).every(flag => flag))].every(flag => flag); const _vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
984
1031
|
path: _path + ".url",
|
|
985
1032
|
expected: "string",
|
|
986
1033
|
value: input.url
|
|
@@ -1012,7 +1059,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1012
1059
|
"Please remove the property next time."
|
|
1013
1060
|
].join("\n")
|
|
1014
1061
|
});
|
|
1015
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1062
|
+
}).every(flag => flag))].every(flag => flag); const _vo18 = (input, _path, _exceptionable = true) => ["HF" === input.type || _report(_exceptionable, {
|
|
1016
1063
|
path: _path + ".type",
|
|
1017
1064
|
expected: "\"HF\"",
|
|
1018
1065
|
value: input.type
|
|
@@ -1060,7 +1107,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1060
1107
|
"Please remove the property next time."
|
|
1061
1108
|
].join("\n")
|
|
1062
1109
|
});
|
|
1063
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1110
|
+
}).every(flag => flag))].every(flag => flag); const _vo19 = (input, _path, _exceptionable = true) => ["Ollama" === input.type || _report(_exceptionable, {
|
|
1064
1111
|
path: _path + ".type",
|
|
1065
1112
|
expected: "\"Ollama\"",
|
|
1066
1113
|
value: input.type
|
|
@@ -1088,11 +1135,11 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1088
1135
|
"Please remove the property next time."
|
|
1089
1136
|
].join("\n")
|
|
1090
1137
|
});
|
|
1091
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1138
|
+
}).every(flag => flag))].every(flag => flag); const _vo20 = (input, _path, _exceptionable = true) => [undefined === input.docker || ("object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) || _report(_exceptionable, {
|
|
1092
1139
|
path: _path + ".docker",
|
|
1093
1140
|
expected: "(DockerAuth | undefined)",
|
|
1094
1141
|
value: input.docker
|
|
1095
|
-
})) &&
|
|
1142
|
+
})) && _vo21(input.docker, _path + ".docker", true && _exceptionable) || _report(_exceptionable, {
|
|
1096
1143
|
path: _path + ".docker",
|
|
1097
1144
|
expected: "(DockerAuth | undefined)",
|
|
1098
1145
|
value: input.docker
|
|
@@ -1112,7 +1159,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1112
1159
|
"Please remove the property next time."
|
|
1113
1160
|
].join("\n")
|
|
1114
1161
|
});
|
|
1115
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1162
|
+
}).every(flag => flag))].every(flag => flag); const _vo21 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
1116
1163
|
path: _path + ".username",
|
|
1117
1164
|
expected: "(string | undefined)",
|
|
1118
1165
|
value: input.username
|
|
@@ -1144,7 +1191,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1144
1191
|
"Please remove the property next time."
|
|
1145
1192
|
].join("\n")
|
|
1146
1193
|
});
|
|
1147
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1194
|
+
}).every(flag => flag))].every(flag => flag); const _vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
1148
1195
|
path: _path + ".name",
|
|
1149
1196
|
expected: "string",
|
|
1150
1197
|
value: input.name
|
|
@@ -1164,7 +1211,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1164
1211
|
"Please remove the property next time."
|
|
1165
1212
|
].join("\n")
|
|
1166
1213
|
});
|
|
1167
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1214
|
+
}).every(flag => flag))].every(flag => flag); const _vo23 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
1168
1215
|
const value = input[key];
|
|
1169
1216
|
if (undefined === value)
|
|
1170
1217
|
return true;
|
|
@@ -1180,12 +1227,12 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1180
1227
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1181
1228
|
expected: "(OperationResult | string)",
|
|
1182
1229
|
value: value
|
|
1183
|
-
})) &&
|
|
1230
|
+
})) && _vo24(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
1184
1231
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1185
1232
|
expected: "(OperationResult | string)",
|
|
1186
1233
|
value: value
|
|
1187
1234
|
}));
|
|
1188
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
1235
|
+
}).every(flag => flag)].every(flag => flag); const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.regex || _report(_exceptionable, {
|
|
1189
1236
|
path: _path + ".regex",
|
|
1190
1237
|
expected: "string",
|
|
1191
1238
|
value: input.regex
|
|
@@ -1229,7 +1276,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1229
1276
|
"Please remove the property next time."
|
|
1230
1277
|
].join("\n")
|
|
1231
1278
|
});
|
|
1232
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1279
|
+
}).every(flag => flag))].every(flag => flag); const _vo25 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1233
1280
|
path: _path + ".group",
|
|
1234
1281
|
expected: "(string | undefined)",
|
|
1235
1282
|
value: input.group
|
|
@@ -1265,7 +1312,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1265
1312
|
"Please remove the property next time."
|
|
1266
1313
|
].join("\n")
|
|
1267
1314
|
});
|
|
1268
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
1315
|
+
}).every(flag => flag))].every(flag => flag); const _vo26 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
|
|
1269
1316
|
path: _path + ".group",
|
|
1270
1317
|
expected: "(string | undefined)",
|
|
1271
1318
|
value: input.group
|
|
@@ -1303,22 +1350,22 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1303
1350
|
});
|
|
1304
1351
|
}).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
1305
1352
|
if (undefined !== input.__spread__)
|
|
1306
|
-
return
|
|
1353
|
+
return _vo12(input, _path, true && _exceptionable);
|
|
1307
1354
|
else if (undefined !== input.bucket)
|
|
1308
|
-
return _vo14(input, _path, true && _exceptionable);
|
|
1309
|
-
else if (undefined !== input.buckets)
|
|
1310
1355
|
return _vo15(input, _path, true && _exceptionable);
|
|
1356
|
+
else if (undefined !== input.buckets)
|
|
1357
|
+
return _vo16(input, _path, true && _exceptionable);
|
|
1311
1358
|
else if ("HF" === input.type)
|
|
1312
|
-
return _vo17(input, _path, true && _exceptionable);
|
|
1313
|
-
else if ("Ollama" === input.type)
|
|
1314
1359
|
return _vo18(input, _path, true && _exceptionable);
|
|
1360
|
+
else if ("Ollama" === input.type)
|
|
1361
|
+
return _vo19(input, _path, true && _exceptionable);
|
|
1315
1362
|
else
|
|
1316
|
-
return
|
|
1363
|
+
return _vo13(input, _path, true && _exceptionable);
|
|
1317
1364
|
})(); const _vu1 = (input, _path, _exceptionable = true) => (() => {
|
|
1318
1365
|
if (undefined !== input.image)
|
|
1319
|
-
return
|
|
1366
|
+
return _vo10(input, _path, true && _exceptionable);
|
|
1320
1367
|
else if (undefined !== input.name)
|
|
1321
|
-
return
|
|
1368
|
+
return _vo22(input, _path, true && _exceptionable);
|
|
1322
1369
|
else
|
|
1323
1370
|
return _report(_exceptionable, {
|
|
1324
1371
|
path: _path,
|
|
@@ -1327,9 +1374,9 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
|
|
|
1327
1374
|
});
|
|
1328
1375
|
})(); const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
|
1329
1376
|
if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index30) => "string" === typeof elem).every(flag => flag))
|
|
1330
|
-
return
|
|
1377
|
+
return _vo26(input, _path, true && _exceptionable);
|
|
1331
1378
|
else
|
|
1332
|
-
return
|
|
1379
|
+
return _vo25(input, _path, true && _exceptionable);
|
|
1333
1380
|
})(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
1334
1381
|
if (false === __is(input)) {
|
|
1335
1382
|
errors = [];
|
package/dist/Jobs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA7BD,EAAE;;;qBAGV,EAAE;;;;;IAIT,CAAC;;AACP,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Jobs/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAwB/B,MAAM,CAAC,MAAM,qBAAqB,yvBA7BD,EAAE;;;qBAGV,EAAE;;;;;IAIT,CAAC;;AACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;04BARH,EAAG;;;;;;;;;;4CAgBJ,CAAE,SAAQ,CAAE;;;;;QAOrB,CAAC;;;;;;;;;YAMwR,CAAC;;QAAoD,CAAC;IAAW,CAAC;;;;;QAA0J,CAAC;IAAW,CAAC;;AAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uNA5B7e,EAAG;;;;;;IAM1C,CAAC;;AACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CARwB,EAAE;;;yBAGV,EAAE;;;;;QAIT,CAAC;;IACP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDARH,EAAG;;;;;;;;;;gDAgBJ,CAAE,SAAQ,CAAE;;;;;YAOrB,CAAC;;;;;;;;;gBAMwR,CAAC;;YAAoD,CAAC;QAAW,CAAC;;;;;YAA0J,CAAC;QAAW,CAAC;;IAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2GA5B7e,EAAG;;;;;;QAM1C,CAAC;;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqB+E,CAAC"}
|
package/dist/Schemas/job.js
CHANGED
|
@@ -41,10 +41,25 @@ export const jobSchemas = {
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
Logistics: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
send: {
|
|
47
|
+
$ref: "#/components/schemas/Logistic"
|
|
48
|
+
},
|
|
49
|
+
receive: {
|
|
50
|
+
$ref: "#/components/schemas/Logistic"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
required: [
|
|
54
|
+
"send",
|
|
55
|
+
"receive"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
Logistic: {
|
|
44
59
|
type: "object",
|
|
45
60
|
properties: {
|
|
46
61
|
type: {
|
|
47
|
-
$ref: "#/components/schemas/
|
|
62
|
+
$ref: "#/components/schemas/LogisticType"
|
|
48
63
|
},
|
|
49
64
|
args: {
|
|
50
65
|
$ref: "#/components/schemas/Partial__type"
|
|
@@ -55,7 +70,7 @@ export const jobSchemas = {
|
|
|
55
70
|
"args"
|
|
56
71
|
]
|
|
57
72
|
},
|
|
58
|
-
|
|
73
|
+
LogisticType: {
|
|
59
74
|
type: "string",
|
|
60
75
|
"enum": [
|
|
61
76
|
"api",
|
|
@@ -91,6 +106,9 @@ export const jobSchemas = {
|
|
|
91
106
|
},
|
|
92
107
|
{
|
|
93
108
|
type: "number"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
$ref: "#/components/schemas/Recordstringstringnumber"
|
|
94
112
|
}
|
|
95
113
|
]
|
|
96
114
|
}
|
package/dist/Schemas/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0D,CAAC"}
|
package/package.json
CHANGED