@nosana/types 2.20.1 → 2.24.3
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/Common/index.d.ts +29 -7
- package/dist/Common/index.d.ts.map +1 -1
- package/dist/Common/index.js +6 -0
- package/dist/Common/index.js.map +1 -1
- package/dist/Jobs/Flows/index.d.ts +9 -5
- package/dist/Jobs/Flows/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/args/expose.d.ts +17 -2
- package/dist/Jobs/JobDefinition/args/expose.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/args/expose.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/index.d.ts +38 -0
- package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/args/index.js +660 -41
- package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/output.d.ts +2 -0
- package/dist/Jobs/JobDefinition/args/output.d.ts.map +1 -0
- package/dist/Jobs/JobDefinition/args/output.js +2 -0
- package/dist/Jobs/JobDefinition/args/output.js.map +1 -0
- package/dist/Jobs/JobDefinition/args/required_vram.d.ts +2 -0
- package/dist/Jobs/JobDefinition/args/required_vram.d.ts.map +1 -0
- package/dist/Jobs/JobDefinition/args/required_vram.js +2 -0
- package/dist/Jobs/JobDefinition/args/required_vram.js.map +1 -0
- package/dist/Jobs/JobDefinition/args/trusted_execution_env.d.ts +6 -0
- package/dist/Jobs/JobDefinition/args/trusted_execution_env.d.ts.map +1 -0
- package/dist/Jobs/JobDefinition/args/trusted_execution_env.js +5 -0
- package/dist/Jobs/JobDefinition/args/trusted_execution_env.js.map +1 -0
- package/dist/Jobs/JobDefinition/index.d.ts +8 -4
- package/dist/Jobs/JobDefinition/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -2
- package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/logistics/index.js +10 -10
- package/dist/Jobs/JobDefinition/meta/index.d.ts +1 -1
- package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/meta/index.js +2 -48
- package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/operations/index.d.ts +18 -3
- package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/operations/index.js +759 -201
- package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/operations/rules.d.ts +1 -0
- package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -1
- package/dist/Jobs/JobDefinition/operations/rules.js +3 -0
- package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -1
- package/dist/Jobs/index.d.ts +2 -2
- package/dist/Jobs/index.d.ts.map +1 -1
- package/dist/Jobs/index.js +450 -215
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/job.js +198 -85
- package/dist/Schemas/job.js.map +1 -1
- package/dist/Schemas/node.d.ts +57 -17
- package/dist/Schemas/node.d.ts.map +1 -1
- package/dist/Schemas/nodeOpenApi.d.ts.map +1 -1
- package/dist/Schemas/nodeOpenApi.js +206 -79
- package/dist/Schemas/nodeOpenApi.js.map +1 -1
- package/openapi/node.openapi.json +211 -79
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAkBhD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACz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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gPAJmC,EAC9C;;;;;;IAGU,CAAC;;;;iDAJD,EAAG;;;;;;;;;;gDAUN,CAAE,SAAQ,CAAE;;;;;YAEqB,CAAC;;;;;;;;;gBAWpB,CAAC;;YAEF,CAAC;QACpB,CAAC;;;;;YAI2B,CAAC;QAC1B,CAAC;;IAA8B,CAAC;;;;;;;;;;;;0KA/BU,EAC9C;;;;;;IAGU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oNAJmC,EAC9C;;;;;;IAGU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiH8B,CAAC;AAC1C,MAAM,CAAC,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/output.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/output.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required_vram.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/required_vram.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required_vram.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/required_vram.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trusted_execution_env.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/trusted_execution_env.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trusted_execution_env.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/trusted_execution_env.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,WAAW;CAChB,CAAC"}
|
|
@@ -12,11 +12,15 @@ export * from "./meta/index.js";
|
|
|
12
12
|
export * from "./operations/index.js";
|
|
13
13
|
export * from "./results/index.js";
|
|
14
14
|
export * from "./ssh/index.js";
|
|
15
|
-
type Version = "0.1";
|
|
16
|
-
type JobType = "container";
|
|
17
15
|
export type JobDefinition = {
|
|
18
|
-
version:
|
|
19
|
-
|
|
16
|
+
version: string;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated The execution environment is no longer derived from the job
|
|
19
|
+
* definition — it is the node operator's `--vm`/`--cvm` choice. Retained as
|
|
20
|
+
* an optional, unvalidated field so type-less jobs and legacy jobs still
|
|
21
|
+
* carrying `'container' | 'vm' | 'cvm'` continue to validate. Do not read it.
|
|
22
|
+
*/
|
|
23
|
+
type?: string;
|
|
20
24
|
logistics?: Logistics;
|
|
21
25
|
deployment_id?: DeploymentId;
|
|
22
26
|
ssh?: SSH;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Jobs/JobDefinition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Jobs/JobDefinition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAE1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,GAAG,CAAC;CACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ export type Logistic = {
|
|
|
16
16
|
args: LogisticArgs;
|
|
17
17
|
};
|
|
18
18
|
export interface Logistics {
|
|
19
|
-
send
|
|
20
|
-
receive
|
|
19
|
+
send?: Logistic;
|
|
20
|
+
receive?: Logistic;
|
|
21
21
|
}
|
|
22
22
|
export declare const validateLogistics: (input: unknown) => IValidation<Logistics>;
|
|
23
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAC1E,KAAK,YAAY,GAAG,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAC1E,KAAK,YAAY,GAAG,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,SAAS,CAChC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const LogisticType = {
|
|
|
10
10
|
API: 'api',
|
|
11
11
|
API_LISTEN: 'api-listen',
|
|
12
12
|
};
|
|
13
|
-
export const validateLogistics = (() => { const _io0 = (input, _exceptionable = true) => "object" === typeof input.send && null !== input.send && _io1(input.send, true && _exceptionable) && ("object" === typeof input.receive && null !== input.receive && _io1(input.receive, true && _exceptionable)) && (
|
|
13
|
+
export const validateLogistics = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.send || "object" === typeof input.send && null !== input.send && _io1(input.send, true && _exceptionable)) && (undefined === input.receive || "object" === typeof input.receive && null !== input.receive && _io1(input.receive, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14
14
|
if (["send", "receive"].some(prop => key === prop))
|
|
15
15
|
return true;
|
|
16
16
|
const value = input[key];
|
|
@@ -31,23 +31,23 @@ export const validateLogistics = (() => { const _io0 = (input, _exceptionable =
|
|
|
31
31
|
if (undefined === value)
|
|
32
32
|
return true;
|
|
33
33
|
return false;
|
|
34
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.send && null !== input.send || _report(_exceptionable, {
|
|
34
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.send || ("object" === typeof input.send && null !== input.send || _report(_exceptionable, {
|
|
35
35
|
path: _path + ".send",
|
|
36
|
-
expected: "Logistic",
|
|
36
|
+
expected: "(Logistic | undefined)",
|
|
37
37
|
value: input.send
|
|
38
38
|
})) && _vo1(input.send, _path + ".send", true && _exceptionable) || _report(_exceptionable, {
|
|
39
39
|
path: _path + ".send",
|
|
40
|
-
expected: "Logistic",
|
|
40
|
+
expected: "(Logistic | undefined)",
|
|
41
41
|
value: input.send
|
|
42
|
-
}), ("object" === typeof input.receive && null !== input.receive || _report(_exceptionable, {
|
|
42
|
+
}), undefined === input.receive || ("object" === typeof input.receive && null !== input.receive || _report(_exceptionable, {
|
|
43
43
|
path: _path + ".receive",
|
|
44
|
-
expected: "Logistic",
|
|
44
|
+
expected: "(Logistic | undefined)",
|
|
45
45
|
value: input.receive
|
|
46
46
|
})) && _vo1(input.receive, _path + ".receive", true && _exceptionable) || _report(_exceptionable, {
|
|
47
47
|
path: _path + ".receive",
|
|
48
|
-
expected: "Logistic",
|
|
48
|
+
expected: "(Logistic | undefined)",
|
|
49
49
|
value: input.receive
|
|
50
|
-
}),
|
|
50
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
51
51
|
if (["send", "receive"].some(prop => key === prop))
|
|
52
52
|
return true;
|
|
53
53
|
const value = input[key];
|
|
@@ -111,11 +111,11 @@ export const validateLogistics = (() => { const _io0 = (input, _exceptionable =
|
|
|
111
111
|
"Please remove the property next time."
|
|
112
112
|
].join("\n")
|
|
113
113
|
});
|
|
114
|
-
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
114
|
+
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
115
115
|
if (false === __is(input)) {
|
|
116
116
|
errors = [];
|
|
117
117
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
118
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
118
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
119
119
|
path: _path + "",
|
|
120
120
|
expected: "Logistics",
|
|
121
121
|
value: input
|
|
@@ -2,7 +2,7 @@ import { type IValidation } from "typia";
|
|
|
2
2
|
export type Meta = {
|
|
3
3
|
trigger?: string;
|
|
4
4
|
system_resources?: Record<string, string | number>;
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: unknown;
|
|
6
6
|
};
|
|
7
7
|
export declare const validateMeta: (input: unknown) => IValidation<Meta>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,IAAI,CAC3B,CAAC"}
|
|
@@ -8,17 +8,12 @@ export const validateMeta = (() => { const _io0 = (input, _exceptionable = true)
|
|
|
8
8
|
const value = input[key];
|
|
9
9
|
if (undefined === value)
|
|
10
10
|
return true;
|
|
11
|
-
return
|
|
11
|
+
return true;
|
|
12
12
|
}); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
13
13
|
const value = input[key];
|
|
14
14
|
if (undefined === value)
|
|
15
15
|
return true;
|
|
16
16
|
return "string" === typeof value || "number" === typeof value;
|
|
17
|
-
}); const _io2 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
18
|
-
const value = input[key];
|
|
19
|
-
if (undefined === value)
|
|
20
|
-
return true;
|
|
21
|
-
return null !== value && undefined !== value && ("string" === typeof value || "number" === typeof value || Array.isArray(value) && value.every((elem, _index2) => "string" === typeof elem || "number" === typeof elem));
|
|
22
17
|
}); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.trigger || "string" === typeof input.trigger || _report(_exceptionable, {
|
|
23
18
|
path: _path + ".trigger",
|
|
24
19
|
expected: "(string | undefined)",
|
|
@@ -37,23 +32,7 @@ export const validateMeta = (() => { const _io0 = (input, _exceptionable = true)
|
|
|
37
32
|
const value = input[key];
|
|
38
33
|
if (undefined === value)
|
|
39
34
|
return true;
|
|
40
|
-
return
|
|
41
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
42
|
-
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
43
|
-
value: value
|
|
44
|
-
})) && (undefined === value || "string" === typeof value || "number" === typeof value || (Array.isArray(value) && value.map((elem, _index3) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
45
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index3 + "]",
|
|
46
|
-
expected: "(number | string)",
|
|
47
|
-
value: elem
|
|
48
|
-
})).every(flag => flag) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
49
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
50
|
-
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
51
|
-
value: value
|
|
52
|
-
})) || _report(_exceptionable, {
|
|
53
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
54
|
-
expected: "(Array<string | number> | Record<string, string | number | (string | number)[]> | number | string | undefined)",
|
|
55
|
-
value: value
|
|
56
|
-
}));
|
|
35
|
+
return true;
|
|
57
36
|
}).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
58
37
|
const value = input[key];
|
|
59
38
|
if (undefined === value)
|
|
@@ -63,31 +42,6 @@ export const validateMeta = (() => { const _io0 = (input, _exceptionable = true)
|
|
|
63
42
|
expected: "(number | string)",
|
|
64
43
|
value: value
|
|
65
44
|
});
|
|
66
|
-
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
67
|
-
const value = input[key];
|
|
68
|
-
if (undefined === value)
|
|
69
|
-
return true;
|
|
70
|
-
return (null !== value || _report(_exceptionable, {
|
|
71
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
72
|
-
expected: "(Array<string | number> | number | string)",
|
|
73
|
-
value: value
|
|
74
|
-
})) && (undefined !== value || _report(_exceptionable, {
|
|
75
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
76
|
-
expected: "(Array<string | number> | number | string)",
|
|
77
|
-
value: value
|
|
78
|
-
})) && ("string" === typeof value || "number" === typeof value || (Array.isArray(value) || _report(_exceptionable, {
|
|
79
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
80
|
-
expected: "(Array<string | number> | number | string)",
|
|
81
|
-
value: value
|
|
82
|
-
})) && value.map((elem, _index4) => "string" === typeof elem || "number" === typeof elem || _report(_exceptionable, {
|
|
83
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index4 + "]",
|
|
84
|
-
expected: "(number | string)",
|
|
85
|
-
value: elem
|
|
86
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
87
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
88
|
-
expected: "(Array<string | number> | number | string)",
|
|
89
|
-
value: value
|
|
90
|
-
}));
|
|
91
45
|
}).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
|
|
92
46
|
if (false === __is(input)) {
|
|
93
47
|
errors = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,MAAM,CAAC,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/meta/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,MAAM,CAAC,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { type IValidation, tags } from "typia";
|
|
2
|
-
import type { ContainerCreateVolume, ContainerRun } from "../args/index.js";
|
|
2
|
+
import type { ContainerCreateVolume, ContainerRun, VmRunArgs } from "../args/index.js";
|
|
3
3
|
import type { Execution } from "../execution/index.js";
|
|
4
4
|
import type { OperationResults } from "../results/index.js";
|
|
5
|
-
import { OPERATION_ID_VALIDATE, OPS_UNIQUE_BY_ID_VALIDATE } from "./rules.js";
|
|
5
|
+
import { GPU_TEE_CONFLICT_VALIDATE, OPERATION_ID_VALIDATE, OPS_UNIQUE_BY_ID_VALIDATE } from "./rules.js";
|
|
6
6
|
export * from "./rules.js";
|
|
7
7
|
export type OperationArgsMap = {
|
|
8
8
|
'container/run': ContainerRun;
|
|
9
9
|
'container/create-volume': ContainerCreateVolume;
|
|
10
|
+
'vm/run': VmRunArgs;
|
|
11
|
+
'cvm/run': VmRunArgs;
|
|
10
12
|
};
|
|
11
13
|
export type OperationType = keyof OperationArgsMap;
|
|
12
14
|
export type Ops = Array<Operation<OperationType>>;
|
|
@@ -17,7 +19,20 @@ export type UniqueById = tags.TagBase<{
|
|
|
17
19
|
validate: typeof OPS_UNIQUE_BY_ID_VALIDATE;
|
|
18
20
|
message: 'ops[*].id must be unique';
|
|
19
21
|
}>;
|
|
20
|
-
|
|
22
|
+
/**
|
|
23
|
+
* An op's args cannot set both `gpu` and `trusted_execution_env`.
|
|
24
|
+
*
|
|
25
|
+
* Checked across the ops array because typia does not apply `target: 'object'`
|
|
26
|
+
* tags to an object type, so the rule cannot sit on `ContainerRun` itself.
|
|
27
|
+
*/
|
|
28
|
+
export type GpuTeeConflict = tags.TagBase<{
|
|
29
|
+
kind: 'gpuTeeConflict';
|
|
30
|
+
target: 'array';
|
|
31
|
+
value: 'gpuTeeConflict';
|
|
32
|
+
validate: typeof GPU_TEE_CONFLICT_VALIDATE;
|
|
33
|
+
message: 'Cannot set both gpu and trusted_execution_env at the same time';
|
|
34
|
+
}>;
|
|
35
|
+
export type OpsWithRule = Ops & UniqueById & GpuTeeConflict;
|
|
21
36
|
export type OperationId = string & tags.TagBase<{
|
|
22
37
|
kind: 'operationId';
|
|
23
38
|
target: 'string';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEzG,cAAc,YAAY,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,YAAY,CAAC;IAC9B,yBAAyB,EAAE,qBAAqB,CAAC;IACjD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,IAAI,CAA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