@nosana/types 2.2.19 → 2.3.1

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.
@@ -4,4 +4,20 @@ export declare const NosanaNetwork: {
4
4
  readonly LOCALNET: "localnet";
5
5
  };
6
6
  export type NosanaNetwork = (typeof NosanaNetwork)[keyof typeof NosanaNetwork];
7
+ /**
8
+ * The NOS token mint address per network. Single source of truth for all
9
+ * packages; localnet uses the devnet mint (pre-baked in @nosana/localnet).
10
+ */
11
+ export declare const NOS_MINT_ADDRESSES: Record<NosanaNetwork, string>;
12
+ /**
13
+ * Nosana program addresses per network. Single source of truth for all
14
+ * packages; localnet runs the devnet programs (pre-baked in @nosana/localnet).
15
+ */
16
+ export declare const NOSANA_PROGRAM_ADDRESSES: Record<NosanaNetwork, {
17
+ jobs: string;
18
+ rewards: string;
19
+ stake: string;
20
+ pools: string;
21
+ merkleDistributor: string;
22
+ }>;
7
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Common/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Common/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAInD,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,aAAa,EACb;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAuBO,CAAC"}
@@ -3,4 +3,40 @@ export const NosanaNetwork = {
3
3
  DEVNET: 'devnet',
4
4
  LOCALNET: 'localnet',
5
5
  };
6
+ /**
7
+ * The NOS token mint address per network. Single source of truth for all
8
+ * packages; localnet uses the devnet mint (pre-baked in @nosana/localnet).
9
+ */
10
+ export const NOS_MINT_ADDRESSES = {
11
+ [NosanaNetwork.MAINNET]: 'nosXBVoaCTtYdLvKY6Csb4AC8JCdQKKAaWYtx2ZMoo7',
12
+ [NosanaNetwork.DEVNET]: 'devr1BGQndEW5k5zfvG5FsLyZv1Ap73vNgAHcQ9sUVP',
13
+ [NosanaNetwork.LOCALNET]: 'devr1BGQndEW5k5zfvG5FsLyZv1Ap73vNgAHcQ9sUVP',
14
+ };
15
+ /**
16
+ * Nosana program addresses per network. Single source of truth for all
17
+ * packages; localnet runs the devnet programs (pre-baked in @nosana/localnet).
18
+ */
19
+ export const NOSANA_PROGRAM_ADDRESSES = {
20
+ [NosanaNetwork.MAINNET]: {
21
+ jobs: 'nosJhNRqr2bc9g1nfGDcXXTXvYUmxD4cVwy2pMWhrYM',
22
+ rewards: 'nosRB8DUV67oLNrL45bo2pFLrmsWPiewe2Lk2DRNYCp',
23
+ stake: 'nosScmHY2uR24Zh751PmGj9ww9QRNHewh9H59AfrTJE',
24
+ pools: 'nosPdZrfDzND1LAR28FLMDEATUPK53K8xbRBXAirevD',
25
+ merkleDistributor: 'merkp8F8f5EgYSYKadk3YiuQQdo3JPdnJWKviaaF425',
26
+ },
27
+ [NosanaNetwork.DEVNET]: {
28
+ jobs: 'nosJTmGQxvwXy23vng5UjkTbfv91Bzf9jEuro78dAGR',
29
+ rewards: 'nosRB8DUV67oLNrL45bo2pFLrmsWPiewe2Lk2DRNYCp',
30
+ stake: 'nosScmHY2uR24Zh751PmGj9ww9QRNHewh9H59AfrTJE',
31
+ pools: 'nosPdZrfDzND1LAR28FLMDEATUPK53K8xbRBXAirevD',
32
+ merkleDistributor: 'merkp8F8f5EgYSYKadk3YiuQQdo3JPdnJWKviaaF425',
33
+ },
34
+ [NosanaNetwork.LOCALNET]: {
35
+ jobs: 'nosJTmGQxvwXy23vng5UjkTbfv91Bzf9jEuro78dAGR',
36
+ rewards: 'nosRB8DUV67oLNrL45bo2pFLrmsWPiewe2Lk2DRNYCp',
37
+ stake: 'nosScmHY2uR24Zh751PmGj9ww9QRNHewh9H59AfrTJE',
38
+ pools: 'nosPdZrfDzND1LAR28FLMDEATUPK53K8xbRBXAirevD',
39
+ merkleDistributor: 'merkp8F8f5EgYSYKadk3YiuQQdo3JPdnJWKviaaF425',
40
+ },
41
+ };
6
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Common/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Common/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAkC;IAC/D,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,6CAA6C;IACtE,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,6CAA6C;IACrE,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,6CAA6C;CAC/D,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GASjC;IACF,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;QACvB,IAAI,EAAE,6CAA6C;QACnD,OAAO,EAAE,6CAA6C;QACtD,KAAK,EAAE,6CAA6C;QACpD,KAAK,EAAE,6CAA6C;QACpD,iBAAiB,EAAE,6CAA6C;KACjE;IACD,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;QACtB,IAAI,EAAE,6CAA6C;QACnD,OAAO,EAAE,6CAA6C;QACtD,KAAK,EAAE,6CAA6C;QACpD,KAAK,EAAE,6CAA6C;QACpD,iBAAiB,EAAE,6CAA6C;KACjE;IACD,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE;QACxB,IAAI,EAAE,6CAA6C;QACnD,OAAO,EAAE,6CAA6C;QACtD,KAAK,EAAE,6CAA6C;QACpD,KAAK,EAAE,6CAA6C;QACpD,iBAAiB,EAAE,6CAA6C;KACjE;CACO,CAAC"}
@@ -23,7 +23,7 @@ export type OperationId = string & tags.TagBase<{
23
23
  target: 'string';
24
24
  value: 'operationId';
25
25
  validate: typeof OPERATION_ID_VALIDATE;
26
- message: 'ops[*].id must be a string and not contain spaces';
26
+ message: 'ops[*].id must be a string and not contain spaces or full stops';
27
27
  }>;
28
28
  export type Operation<T extends OperationType> = {
29
29
  type: OperationType;
@@ -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;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE9E,cAAc,YAAY,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC7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AI;IAC/C,IAAI,EAAE,aAAa,CAAC;IACpB,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,CAC9B,KAAK,EAAE,OAAO,KACX,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CACe,CAAC;AAEzD,eAAO,MAAM,WAAW,EAAE,CACxB,KAAK,EAAE,OAAO,KACX,WAAW,CAAC,WAAW,CACe,CAAC"}
@@ -3,7 +3,7 @@ import * as __typia_transform__validateReport from "typia/lib/internal/_validate
3
3
  import * as __typia_transform__createStandardSchema from "typia/lib/internal/_createStandardSchema.js";
4
4
  import typia from "typia";
5
5
  export * from "./rules.js";
6
- export const validateOperation = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" "))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
6
+ export const validateOperation = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
7
7
  if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
8
8
  return true;
9
9
  const value = input[key];
@@ -251,7 +251,7 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
251
251
  path: _path + ".type",
252
252
  expected: "(\"container/create-volume\" | \"container/run\")",
253
253
  value: input.type
254
- }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") || _report(_exceptionable, {
254
+ }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes(".") || _report(_exceptionable, {
255
255
  path: _path + ".id",
256
256
  expected: "string & TagBase<__type>",
257
257
  value: input.id
@@ -1316,7 +1316,7 @@ export const validateOperation = (() => { const _io0 = (input, _exceptionable =
1316
1316
  data: input
1317
1317
  };
1318
1318
  }); })();
1319
- export const validateOps = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" "))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1319
+ export const validateOps = (() => { const _io0 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io20(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
1320
1320
  if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
1321
1321
  return true;
1322
1322
  const value = input[key];
@@ -1564,7 +1564,7 @@ export const validateOps = (() => { const _io0 = (input, _exceptionable = true)
1564
1564
  path: _path + ".type",
1565
1565
  expected: "(\"container/create-volume\" | \"container/run\")",
1566
1566
  value: input.type
1567
- }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") || _report(_exceptionable, {
1567
+ }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes(".") || _report(_exceptionable, {
1568
1568
  path: _path + ".id",
1569
1569
  expected: "string & TagBase<__type>",
1570
1570
  value: input.id
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAMtD,cAAc,YAAY,CAAC;AAsC3B,MAAM,CAAC,MAAM,iBAAiB;;;;;;;w4BA5CpB,EAAG;;;;;;;;;;4CAU6B,CAAE,SAC5C,CACA;;;;;QAKoB,CAAC;;;;;;;;;YAgBN,CAAC;;QACd,CAAC;IAEI,CAAC;;;;;QAKE,CAAC;IAAW,CAAC;;AAGC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uNA3CS,EAAG;;;;;;IAET,CAAC;;AAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAH9C,EAAG;;;;;;;;;;gDAU6B,CAAE,SAC5C,CACA;;;;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,EAAE;;;;;YAEvC,CAAC;;QAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiDC,CAAC"}
@@ -6,6 +6,6 @@
6
6
  * rule never triggers the typia transform — which is only applied by the `tsc`
7
7
  * build, not by vitest.
8
8
  */
9
- export declare const OPERATION_ID_VALIDATE: "typeof $input === \"string\" && !$input.includes(\" \")";
9
+ export declare const OPERATION_ID_VALIDATE: "typeof $input === \"string\" && !$input.includes(\" \") && !$input.includes(\".\")";
10
10
  export declare const OPS_UNIQUE_BY_ID_VALIDATE: "Array.isArray($input) && (()=>{\n const seen = new Set();\n for (const it of $input) {\n if (typeof it?.id !== \"string\") return false;\n if (seen.has(it.id)) return false;\n seen.add(it.id);\n }\n return true;\n })()";
11
11
  //# sourceMappingURL=rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,eAAO,MAAM,qBAAqB,2DAC8B,CAAC;AAEjE,eAAO,MAAM,yBAAyB,0PAQtB,CAAC"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,eAAO,MAAM,qBAAqB,sFACuD,CAAC;AAE1F,eAAO,MAAM,yBAAyB,0PAQtB,CAAC"}
@@ -7,7 +7,7 @@
7
7
  * build, not by vitest.
8
8
  */
9
9
  // Operation ID – mirrors @nosana/sdk/src/types/job.ts
10
- export const OPERATION_ID_VALIDATE = `typeof $input === "string" && !$input.includes(" ")`;
10
+ export const OPERATION_ID_VALIDATE = `typeof $input === "string" && !$input.includes(" ") && !$input.includes(".")`;
11
11
  export const OPS_UNIQUE_BY_ID_VALIDATE = `Array.isArray($input) && (()=>{
12
12
  const seen = new Set();
13
13
  for (const it of $input) {
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAChC,qDAA8D,CAAC;AAEjE,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;OAQzB,CAAC"}
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/Jobs/JobDefinition/operations/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAChC,8EAAuF,CAAC;AAE1F,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;OAQzB,CAAC"}
@@ -85,7 +85,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
85
85
  if (undefined === value)
86
86
  return true;
87
87
  return "string" === typeof value;
88
- }); const _io11 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" "))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io30(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
88
+ }); const _io11 = (input, _exceptionable = true) => ("container/run" === input.type || "container/create-volume" === input.type) && ("string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes("."))) && ("object" === typeof input.args && null !== input.args && _iu3(input.args, true && _exceptionable)) && (undefined === input.results || "object" === typeof input.results && null !== input.results && false === Array.isArray(input.results) && _io30(input.results, true && _exceptionable)) && (undefined === input.execution || "object" === typeof input.execution && null !== input.execution && false === Array.isArray(input.execution) && _iu4(input.execution, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
89
89
  if (["type", "id", "args", "results", "execution"].some(prop => key === prop))
90
90
  return true;
91
91
  const value = input[key];
@@ -673,7 +673,7 @@ export const validateJobDefinition = (() => { const _io0 = (input, _exceptionabl
673
673
  path: _path + ".type",
674
674
  expected: "(\"container/create-volume\" | \"container/run\")",
675
675
  value: input.type
676
- }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") || _report(_exceptionable, {
676
+ }), "string" === typeof input.id && (typeof input.id === "string" && !input.id.includes(" ") && !input.id.includes(".") || _report(_exceptionable, {
677
677
  path: _path + ".id",
678
678
  expected: "string & TagBase<__type>",
679
679
  value: input.id
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@nosana/types",
3
- "version": "2.2.19",
3
+ "version": "2.3.1",
4
4
  "author": "Nosana",
5
5
  "description": "Nosana Types Module",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/nosana-ci/nosana-kit.git",
11
+ "directory": "packages/types"
12
+ },
8
13
  "main": "./dist/index.js",
9
14
  "types": "./dist/index.d.ts",
10
15
  "files": [
@@ -39,7 +44,7 @@
39
44
  "husky": "^9.1.7",
40
45
  "openapi-typescript": "^7.10.1",
41
46
  "ts-patch": "^3.3.0",
42
- "typescript": "^5.7.0",
47
+ "typescript": "^5.9.3",
43
48
  "vitest": "^4.0.13"
44
49
  },
45
50
  "dependencies": {
@@ -49,5 +54,5 @@
49
54
  "engines": {
50
55
  "node": ">=20.18.0"
51
56
  },
52
- "gitHead": "de410bc6214c019ea464ae2ce7f869fa92e45b3d"
57
+ "gitHead": "f0557eb71c17043450f159a72d67967a6045c74a"
53
58
  }