@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.
Files changed (43) hide show
  1. package/dist/Jobs/JobDefinition/args/index.d.ts +17 -0
  2. package/dist/Jobs/JobDefinition/args/index.d.ts.map +1 -1
  3. package/dist/Jobs/JobDefinition/args/index.js +2365 -0
  4. package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
  5. package/dist/Jobs/JobDefinition/execution/index.d.ts +2 -0
  6. package/dist/Jobs/JobDefinition/execution/index.d.ts.map +1 -1
  7. package/dist/Jobs/JobDefinition/execution/index.js +136 -1
  8. package/dist/Jobs/JobDefinition/execution/index.js.map +1 -1
  9. package/dist/Jobs/JobDefinition/global/index.d.ts +2 -0
  10. package/dist/Jobs/JobDefinition/global/index.d.ts.map +1 -1
  11. package/dist/Jobs/JobDefinition/global/index.js +127 -1
  12. package/dist/Jobs/JobDefinition/global/index.js.map +1 -1
  13. package/dist/Jobs/JobDefinition/index.d.ts +3 -0
  14. package/dist/Jobs/JobDefinition/index.d.ts.map +1 -1
  15. package/dist/Jobs/JobDefinition/index.js +1 -0
  16. package/dist/Jobs/JobDefinition/index.js.map +1 -1
  17. package/dist/Jobs/JobDefinition/logistics/index.d.ts +2 -0
  18. package/dist/Jobs/JobDefinition/logistics/index.d.ts.map +1 -1
  19. package/dist/Jobs/JobDefinition/logistics/index.js +133 -0
  20. package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -1
  21. package/dist/Jobs/JobDefinition/meta/index.d.ts +2 -0
  22. package/dist/Jobs/JobDefinition/meta/index.d.ts.map +1 -1
  23. package/dist/Jobs/JobDefinition/meta/index.js +118 -1
  24. package/dist/Jobs/JobDefinition/meta/index.js.map +1 -1
  25. package/dist/Jobs/JobDefinition/operations/index.d.ts +13 -2
  26. package/dist/Jobs/JobDefinition/operations/index.d.ts.map +1 -1
  27. package/dist/Jobs/JobDefinition/operations/index.js +2663 -2
  28. package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
  29. package/dist/Jobs/JobDefinition/operations/rules.d.ts +11 -0
  30. package/dist/Jobs/JobDefinition/operations/rules.d.ts.map +1 -0
  31. package/dist/Jobs/JobDefinition/operations/rules.js +20 -0
  32. package/dist/Jobs/JobDefinition/operations/rules.js.map +1 -0
  33. package/dist/Jobs/JobDefinition/ssh/index.d.ts +6 -0
  34. package/dist/Jobs/JobDefinition/ssh/index.d.ts.map +1 -0
  35. package/dist/Jobs/JobDefinition/ssh/index.js +68 -0
  36. package/dist/Jobs/JobDefinition/ssh/index.js.map +1 -0
  37. package/dist/Jobs/index.d.ts +3 -19
  38. package/dist/Jobs/index.d.ts.map +1 -1
  39. package/dist/Jobs/index.js +207 -164
  40. package/dist/Jobs/index.js.map +1 -1
  41. package/dist/Schemas/job.js +15 -0
  42. package/dist/Schemas/job.js.map +1 -1
  43. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":"AAaA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/args/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAehD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,UA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwC0B,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  type GroupDependencies = {
2
3
  depends_on?: never;
3
4
  stop_if_dependent_stops?: never;
@@ -9,5 +10,6 @@ export type Execution = {
9
10
  group?: string;
10
11
  timeout?: number;
11
12
  } & GroupDependencies;
13
+ export declare const validateExecution: (input: unknown) => IValidation<Execution>;
12
14
  export {};
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACG;IACA,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAGJ,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACG;IACA,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAGJ,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,iBAAiB,CAAA;AAErB,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,SAAS,CAChC,CAAC"}
@@ -1,2 +1,137 @@
1
- export {};
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
5
+ export const validateExecution = (() => { const _io0 = (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 => {
6
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return false;
12
+ })); const _io1 = (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, _index1) => "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 => {
13
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
14
+ return true;
15
+ const value = input[key];
16
+ if (undefined === value)
17
+ return true;
18
+ return false;
19
+ })); const _iu0 = (input, _exceptionable = true) => (() => {
20
+ if (Array.isArray(input.depends_on) && input.depends_on.every((elem, _index2) => "string" === typeof elem))
21
+ return _io1(input, true && _exceptionable);
22
+ else
23
+ return _io0(input, true && _exceptionable);
24
+ })(); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
25
+ path: _path + ".group",
26
+ expected: "(string | undefined)",
27
+ value: input.group
28
+ }), undefined === input.timeout || "number" === typeof input.timeout || _report(_exceptionable, {
29
+ path: _path + ".timeout",
30
+ expected: "(number | undefined)",
31
+ value: input.timeout
32
+ }), (null !== input.depends_on || _report(_exceptionable, {
33
+ path: _path + ".depends_on",
34
+ expected: "undefined",
35
+ value: input.depends_on
36
+ })) && (undefined === input.depends_on || _report(_exceptionable, {
37
+ path: _path + ".depends_on",
38
+ expected: "undefined",
39
+ value: input.depends_on
40
+ })), (null !== input.stop_if_dependent_stops || _report(_exceptionable, {
41
+ path: _path + ".stop_if_dependent_stops",
42
+ expected: "undefined",
43
+ value: input.stop_if_dependent_stops
44
+ })) && (undefined === input.stop_if_dependent_stops || _report(_exceptionable, {
45
+ path: _path + ".stop_if_dependent_stops",
46
+ expected: "undefined",
47
+ value: input.stop_if_dependent_stops
48
+ })), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
49
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
50
+ return true;
51
+ const value = input[key];
52
+ if (undefined === value)
53
+ return true;
54
+ return _report(_exceptionable, {
55
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
56
+ expected: "undefined",
57
+ value: value,
58
+ description: [
59
+ `The property \`${key}\` is not defined in the object type.`,
60
+ "",
61
+ "Please remove the property next time."
62
+ ].join("\n")
63
+ });
64
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.group || "string" === typeof input.group || _report(_exceptionable, {
65
+ path: _path + ".group",
66
+ expected: "(string | undefined)",
67
+ value: input.group
68
+ }), undefined === input.timeout || "number" === typeof input.timeout || _report(_exceptionable, {
69
+ path: _path + ".timeout",
70
+ expected: "(number | undefined)",
71
+ value: input.timeout
72
+ }), (Array.isArray(input.depends_on) || _report(_exceptionable, {
73
+ path: _path + ".depends_on",
74
+ expected: "Array<string>",
75
+ value: input.depends_on
76
+ })) && input.depends_on.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
77
+ path: _path + ".depends_on[" + _index3 + "]",
78
+ expected: "string",
79
+ value: elem
80
+ })).every(flag => flag) || _report(_exceptionable, {
81
+ path: _path + ".depends_on",
82
+ expected: "Array<string>",
83
+ value: input.depends_on
84
+ }), undefined === input.stop_if_dependent_stops || "boolean" === typeof input.stop_if_dependent_stops || _report(_exceptionable, {
85
+ path: _path + ".stop_if_dependent_stops",
86
+ expected: "(boolean | undefined)",
87
+ value: input.stop_if_dependent_stops
88
+ }), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
89
+ if (["group", "timeout", "depends_on", "stop_if_dependent_stops"].some(prop => key === prop))
90
+ return true;
91
+ const value = input[key];
92
+ if (undefined === value)
93
+ return true;
94
+ return _report(_exceptionable, {
95
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
96
+ expected: "undefined",
97
+ value: value,
98
+ description: [
99
+ `The property \`${key}\` is not defined in the object type.`,
100
+ "",
101
+ "Please remove the property next time."
102
+ ].join("\n")
103
+ });
104
+ }).every(flag => flag))].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
105
+ if (Array.isArray(input.depends_on) && input.depends_on.map((elem, _index4) => "string" === typeof elem).every(flag => flag))
106
+ return _vo1(input, _path, true && _exceptionable);
107
+ else
108
+ return _vo0(input, _path, true && _exceptionable);
109
+ })(); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _iu0(input, true); let errors; let _report; return __typia_transform__createStandardSchema._createStandardSchema(input => {
110
+ if (false === __is(input)) {
111
+ errors = [];
112
+ _report = __typia_transform__validateReport._validateReport(errors);
113
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
114
+ path: _path + "",
115
+ expected: "({ group?: string | undefined; timeout?: number | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; timeout?: number | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
116
+ value: input
117
+ })) && _vu0(input, _path + "", true) || _report(true, {
118
+ path: _path + "",
119
+ expected: "({ group?: string | undefined; timeout?: number | undefined; } & { depends_on: string[]; stop_if_dependent_stops?: boolean | undefined; } | { group?: string | undefined; timeout?: number | undefined; } & { depends_on?: undefined; stop_if_dependent_stops?: undefined; })",
120
+ value: input
121
+ }))(input, "$input", true);
122
+ const success = 0 === errors.length;
123
+ return success ? {
124
+ success,
125
+ data: input
126
+ } : {
127
+ success,
128
+ errors,
129
+ data: input
130
+ };
131
+ }
132
+ return {
133
+ success: true,
134
+ data: input
135
+ };
136
+ }); })();
2
137
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/execution/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAiBhD,MAAM,CAAC,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  import type { CMDArray, CMDString, Env, GPU, Image, Variables, WorkDir } from "../args/index.js";
2
3
  export interface Global {
3
4
  image?: Image;
@@ -7,4 +8,5 @@ export interface Global {
7
8
  work_dir?: WorkDir;
8
9
  variables?: Variables;
9
10
  }
11
+ export declare const validateGlobal: (input: unknown) => IValidation<Global>;
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjG,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjG,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,MAAM,CAC7B,CAAC"}
@@ -1,2 +1,128 @@
1
- export {};
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
5
+ export const validateGlobal = (() => { const _io0 = (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, _index1) => "string" === typeof elem))) && (undefined === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io1(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) && _io2(input.variables, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return false;
12
+ })); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
13
+ const value = input[key];
14
+ if (undefined === value)
15
+ return true;
16
+ return "string" === 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 "string" === typeof value;
22
+ }); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
23
+ path: _path + ".image",
24
+ expected: "(string | undefined)",
25
+ value: input.image
26
+ }), undefined === input.gpu || "boolean" === typeof input.gpu || _report(_exceptionable, {
27
+ path: _path + ".gpu",
28
+ expected: "(boolean | undefined)",
29
+ value: input.gpu
30
+ }), (null !== input.entrypoint || _report(_exceptionable, {
31
+ path: _path + ".entrypoint",
32
+ expected: "(CMDArray | string | undefined)",
33
+ value: input.entrypoint
34
+ })) && (undefined === input.entrypoint || "string" === typeof input.entrypoint || (Array.isArray(input.entrypoint) || _report(_exceptionable, {
35
+ path: _path + ".entrypoint",
36
+ expected: "(CMDArray | string | undefined)",
37
+ value: input.entrypoint
38
+ })) && input.entrypoint.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
39
+ path: _path + ".entrypoint[" + _index2 + "]",
40
+ expected: "string",
41
+ value: elem
42
+ })).every(flag => flag) || _report(_exceptionable, {
43
+ path: _path + ".entrypoint",
44
+ expected: "(CMDArray | string | undefined)",
45
+ value: input.entrypoint
46
+ })), undefined === input.env || ("object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) || _report(_exceptionable, {
47
+ path: _path + ".env",
48
+ expected: "(Env | undefined)",
49
+ value: input.env
50
+ })) && _vo1(input.env, _path + ".env", true && _exceptionable) || _report(_exceptionable, {
51
+ path: _path + ".env",
52
+ expected: "(Env | undefined)",
53
+ value: input.env
54
+ }), undefined === input.work_dir || "string" === typeof input.work_dir || _report(_exceptionable, {
55
+ path: _path + ".work_dir",
56
+ expected: "(string | undefined)",
57
+ value: input.work_dir
58
+ }), undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || _report(_exceptionable, {
59
+ path: _path + ".variables",
60
+ expected: "(Variables | undefined)",
61
+ value: input.variables
62
+ })) && _vo2(input.variables, _path + ".variables", true && _exceptionable) || _report(_exceptionable, {
63
+ path: _path + ".variables",
64
+ expected: "(Variables | undefined)",
65
+ value: input.variables
66
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
67
+ if (["image", "gpu", "entrypoint", "env", "work_dir", "variables"].some(prop => key === prop))
68
+ return true;
69
+ const value = input[key];
70
+ if (undefined === value)
71
+ return true;
72
+ return _report(_exceptionable, {
73
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
74
+ expected: "undefined",
75
+ value: value,
76
+ description: [
77
+ `The property \`${key}\` is not defined in the object type.`,
78
+ "",
79
+ "Please remove the property next time."
80
+ ].join("\n")
81
+ });
82
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
83
+ const value = input[key];
84
+ if (undefined === value)
85
+ return true;
86
+ return "string" === typeof value || _report(_exceptionable, {
87
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
88
+ expected: "string",
89
+ value: value
90
+ });
91
+ }).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
92
+ const value = input[key];
93
+ if (undefined === value)
94
+ return true;
95
+ return "string" === typeof value || _report(_exceptionable, {
96
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
97
+ expected: "string",
98
+ value: value
99
+ });
100
+ }).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 => {
101
+ if (false === __is(input)) {
102
+ errors = [];
103
+ _report = __typia_transform__validateReport._validateReport(errors);
104
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
105
+ path: _path + "",
106
+ expected: "Global",
107
+ value: input
108
+ })) && _vo0(input, _path + "", true) || _report(true, {
109
+ path: _path + "",
110
+ expected: "Global",
111
+ value: input
112
+ }))(input, "$input", true);
113
+ const success = 0 === errors.length;
114
+ return success ? {
115
+ success,
116
+ data: input
117
+ } : {
118
+ success,
119
+ errors,
120
+ data: input
121
+ };
122
+ }
123
+ return {
124
+ success: true,
125
+ data: input
126
+ };
127
+ }); })();
2
128
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/global/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAYhD,MAAM,CAAC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -3,6 +3,7 @@ import type { Global } from "./global/index.js";
3
3
  import type { Logistics } from "./logistics/index.js";
4
4
  import type { Meta } from "./meta/index.js";
5
5
  import type { Ops } from "./operations/index.js";
6
+ import type { SSH } from "./ssh/index.js";
6
7
  export * from "./args/index.js";
7
8
  export * from "./execution/index.js";
8
9
  export * from "./global/index.js";
@@ -10,6 +11,7 @@ export * from "./logistics/index.js";
10
11
  export * from "./meta/index.js";
11
12
  export * from "./operations/index.js";
12
13
  export * from "./results/index.js";
14
+ export * from "./ssh/index.js";
13
15
  type Version = "0.1";
14
16
  type JobType = "container";
15
17
  export type JobDefinition = {
@@ -17,6 +19,7 @@ export type JobDefinition = {
17
19
  type: JobType;
18
20
  logistics?: Logistics;
19
21
  deployment_id?: DeploymentId;
22
+ ssh?: SSH;
20
23
  meta?: Meta;
21
24
  global?: Global;
22
25
  ops: Ops;
@@ -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,OA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;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,KAAK,OAAO,GAAG,KAAK,CAAA;AACpB,KAAK,OAAO,GAAG,WAAW,CAAC;AAE3B,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,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"}
@@ -5,4 +5,5 @@ export * from "./logistics/index.js";
5
5
  export * from "./meta/index.js";
6
6
  export * from "./operations/index.js";
7
7
  export * from "./results/index.js";
8
+ export * from "./ssh/index.js";
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Jobs/JobDefinition/index.ts"],"names":[],"mappings":"AAMA,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Jobs/JobDefinition/index.ts"],"names":[],"mappings":"AAOA,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"}
@@ -1,3 +1,4 @@
1
+ import { type IValidation } from "typia";
1
2
  /**
2
3
  * api - we receive and send via an endpoint endpoint
3
4
  * api-listen - we create an endpoint to listen for incoming requests
@@ -18,5 +19,6 @@ export interface Logistics {
18
19
  send: Logistic;
19
20
  receive: Logistic;
20
21
  }
22
+ export declare const validateLogistics: (input: unknown) => IValidation<Logistics>;
21
23
  export {};
22
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":"AAAA;;;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;IACf,OAAO,EAAE,QAAQ,CAAC;CACnB"}
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;IACf,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,SAAS,CAChC,CAAC"}
@@ -1,3 +1,7 @@
1
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
2
+ import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
3
+ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
+ import typia from "typia";
1
5
  /**
2
6
  * api - we receive and send via an endpoint endpoint
3
7
  * api-listen - we create an endpoint to listen for incoming requests
@@ -6,4 +10,133 @@ export const LogisticType = {
6
10
  API: 'api',
7
11
  API_LISTEN: 'api-listen',
8
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)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
14
+ if (["send", "receive"].some(prop => key === prop))
15
+ return true;
16
+ const value = input[key];
17
+ if (undefined === value)
18
+ return true;
19
+ return false;
20
+ })); const _io1 = (input, _exceptionable = true) => ("api" === input.type || "api-listen" === input.type) && ("object" === typeof input.args && null !== input.args && false === Array.isArray(input.args) && _io2(input.args, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
21
+ if (["type", "args"].some(prop => key === prop))
22
+ return true;
23
+ const value = input[key];
24
+ if (undefined === value)
25
+ return true;
26
+ return false;
27
+ })); const _io2 = (input, _exceptionable = true) => (undefined === input.endpoint || "string" === typeof input.endpoint) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
28
+ if (["endpoint"].some(prop => key === prop))
29
+ return true;
30
+ const value = input[key];
31
+ if (undefined === value)
32
+ return true;
33
+ return false;
34
+ })); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.send && null !== input.send || _report(_exceptionable, {
35
+ path: _path + ".send",
36
+ expected: "Logistic",
37
+ value: input.send
38
+ })) && _vo1(input.send, _path + ".send", true && _exceptionable) || _report(_exceptionable, {
39
+ path: _path + ".send",
40
+ expected: "Logistic",
41
+ value: input.send
42
+ }), ("object" === typeof input.receive && null !== input.receive || _report(_exceptionable, {
43
+ path: _path + ".receive",
44
+ expected: "Logistic",
45
+ value: input.receive
46
+ })) && _vo1(input.receive, _path + ".receive", true && _exceptionable) || _report(_exceptionable, {
47
+ path: _path + ".receive",
48
+ expected: "Logistic",
49
+ value: input.receive
50
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
51
+ if (["send", "receive"].some(prop => key === prop))
52
+ return true;
53
+ const value = input[key];
54
+ if (undefined === value)
55
+ return true;
56
+ return _report(_exceptionable, {
57
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
58
+ expected: "undefined",
59
+ value: value,
60
+ description: [
61
+ `The property \`${key}\` is not defined in the object type.`,
62
+ "",
63
+ "Please remove the property next time."
64
+ ].join("\n")
65
+ });
66
+ }).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["api" === input.type || "api-listen" === input.type || _report(_exceptionable, {
67
+ path: _path + ".type",
68
+ expected: "(\"api\" | \"api-listen\")",
69
+ value: input.type
70
+ }), ("object" === typeof input.args && null !== input.args && false === Array.isArray(input.args) || _report(_exceptionable, {
71
+ path: _path + ".args",
72
+ expected: "Partial<__type>",
73
+ value: input.args
74
+ })) && _vo2(input.args, _path + ".args", true && _exceptionable) || _report(_exceptionable, {
75
+ path: _path + ".args",
76
+ expected: "Partial<__type>",
77
+ value: input.args
78
+ }), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
79
+ if (["type", "args"].some(prop => key === prop))
80
+ return true;
81
+ const value = input[key];
82
+ if (undefined === value)
83
+ return true;
84
+ return _report(_exceptionable, {
85
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
86
+ expected: "undefined",
87
+ value: value,
88
+ description: [
89
+ `The property \`${key}\` is not defined in the object type.`,
90
+ "",
91
+ "Please remove the property next time."
92
+ ].join("\n")
93
+ });
94
+ }).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.endpoint || "string" === typeof input.endpoint || _report(_exceptionable, {
95
+ path: _path + ".endpoint",
96
+ expected: "(string | undefined)",
97
+ value: input.endpoint
98
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
99
+ if (["endpoint"].some(prop => key === prop))
100
+ return true;
101
+ const value = input[key];
102
+ if (undefined === value)
103
+ return true;
104
+ return _report(_exceptionable, {
105
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
106
+ expected: "undefined",
107
+ value: value,
108
+ description: [
109
+ `The property \`${key}\` is not defined in the object type.`,
110
+ "",
111
+ "Please remove the property next time."
112
+ ].join("\n")
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 => {
115
+ if (false === __is(input)) {
116
+ errors = [];
117
+ _report = __typia_transform__validateReport._validateReport(errors);
118
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
119
+ path: _path + "",
120
+ expected: "Logistics",
121
+ value: input
122
+ })) && _vo0(input, _path + "", true) || _report(true, {
123
+ path: _path + "",
124
+ expected: "Logistics",
125
+ value: input
126
+ }))(input, "$input", true);
127
+ const success = 0 === errors.length;
128
+ return success ? {
129
+ success,
130
+ data: input
131
+ } : {
132
+ success,
133
+ errors,
134
+ data: input
135
+ };
136
+ }
137
+ return {
138
+ success: true,
139
+ data: input
140
+ };
141
+ }); })();
9
142
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/logistics/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;CAChB,CAAC;AAgBX,MAAM,CAAC,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}
@@ -1,6 +1,8 @@
1
+ import { type IValidation } from "typia";
1
2
  export type Meta = {
2
3
  trigger?: string;
3
4
  system_resources?: Record<string, string | number>;
4
5
  [key: string]: string | number | Record<string, string | number | Array<string | number>> | Array<string | number> | undefined;
5
6
  };
7
+ export declare const validateMeta: (input: unknown) => IValidation<Meta>;
6
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":"AACA,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,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAChI,CAAA"}
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,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAChI,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,IAAI,CAC3B,CAAC"}