@nosana/types 2.2.16 → 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.
@@ -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,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;AAEjD,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;AAEnC,KAAK,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,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"}
@@ -0,0 +1,6 @@
1
+ import { type IValidation } from 'typia';
2
+ export type SSH = {
3
+ public_keys?: Array<string>;
4
+ };
5
+ export declare const validateSSH: (input: unknown) => IValidation<SSH>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/ssh/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,GAAG,GAAG;IAChB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,WAAW,CAAC,GAAG,CAC1B,CAAC"}
@@ -0,0 +1,68 @@
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 validateSSH = (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.public_keys || Array.isArray(input.public_keys) && input.public_keys.every((elem, _index1) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ if (["public_keys"].some(prop => key === prop))
7
+ return true;
8
+ const value = input[key];
9
+ if (undefined === value)
10
+ return true;
11
+ return false;
12
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.public_keys || (Array.isArray(input.public_keys) || _report(_exceptionable, {
13
+ path: _path + ".public_keys",
14
+ expected: "(Array<string> | undefined)",
15
+ value: input.public_keys
16
+ })) && input.public_keys.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
17
+ path: _path + ".public_keys[" + _index2 + "]",
18
+ expected: "string",
19
+ value: elem
20
+ })).every(flag => flag) || _report(_exceptionable, {
21
+ path: _path + ".public_keys",
22
+ expected: "(Array<string> | undefined)",
23
+ value: input.public_keys
24
+ }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
25
+ if (["public_keys"].some(prop => key === prop))
26
+ return true;
27
+ const value = input[key];
28
+ if (undefined === value)
29
+ return true;
30
+ return _report(_exceptionable, {
31
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
32
+ expected: "undefined",
33
+ value: value,
34
+ description: [
35
+ `The property \`${key}\` is not defined in the object type.`,
36
+ "",
37
+ "Please remove the property next time."
38
+ ].join("\n")
39
+ });
40
+ }).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 => {
41
+ if (false === __is(input)) {
42
+ errors = [];
43
+ _report = __typia_transform__validateReport._validateReport(errors);
44
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
45
+ path: _path + "",
46
+ expected: "SSH",
47
+ value: input
48
+ })) && _vo0(input, _path + "", true) || _report(true, {
49
+ path: _path + "",
50
+ expected: "SSH",
51
+ value: input
52
+ }))(input, "$input", true);
53
+ const success = 0 === errors.length;
54
+ return success ? {
55
+ success,
56
+ data: input
57
+ } : {
58
+ success,
59
+ errors,
60
+ data: input
61
+ };
62
+ }
63
+ return {
64
+ success: true,
65
+ data: input
66
+ };
67
+ }); })();
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/ssh/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,MAAM,CAAC,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACW,CAAC"}