@xyo-network/manifest-model 4.0.2 → 4.1.0

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.
@@ -0,0 +1,54 @@
1
+ import { Address } from '@xylabs/hex';
2
+ import { Payload } from '@xyo-network/payload-model';
3
+
4
+ type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>;
5
+ interface Manifest {
6
+ description?: string;
7
+ }
8
+ declare const isManifest: (value: unknown) => value is Manifest;
9
+ interface ConfigManifest {
10
+ accountPath?: string;
11
+ features?: string[];
12
+ labels?: Record<string, string | undefined>;
13
+ language?: string;
14
+ name: string;
15
+ os?: string;
16
+ schema: string;
17
+ }
18
+ interface NodeManifest extends ModuleManifest {
19
+ modules?: {
20
+ private?: (ModuleManifest | ModuleAlias)[];
21
+ public?: (ModuleManifest | ModuleAlias)[];
22
+ };
23
+ }
24
+ interface ModuleManifest extends Manifest {
25
+ config: ConfigManifest;
26
+ lazyStart?: boolean;
27
+ status?: {
28
+ address: Address;
29
+ children?: Record<Address, string | null>;
30
+ };
31
+ }
32
+ interface PackageManifest extends Manifest {
33
+ modules?: Record<ModuleAlias, ModuleManifest>;
34
+ nodes: NodeManifest[];
35
+ }
36
+
37
+ declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp";
38
+ type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema;
39
+ declare const PackageManifestPayloadSchema: "network.xyo.manifest.package";
40
+ type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema;
41
+ declare const ModuleManifestPayloadSchema: "network.xyo.module.manifest";
42
+ type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema;
43
+ declare const NodeManifestPayloadSchema: "network.xyo.node.manifest";
44
+ type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema;
45
+
46
+ interface NodeManifestPayload extends NodeManifest {
47
+ schema: NodeManifestPayloadSchema;
48
+ }
49
+ type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>;
50
+ type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>;
51
+ declare const isPackageManifestPayload: (x?: unknown | null) => x is PackageManifestPayload;
52
+
53
+ export { DappPackageManifestPayloadSchema, ModuleManifestPayloadSchema, NodeManifestPayloadSchema, PackageManifestPayloadSchema, isManifest, isPackageManifestPayload };
54
+ export type { ConfigManifest, Manifest, ModuleAlias, ModuleManifest, ModuleManifestPayload, NodeManifest, NodeManifestPayload, PackageManifest, PackageManifestPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/manifest-model",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,7 +21,7 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./schema/package": {
@@ -30,21 +30,21 @@
30
30
  "./package.json": "./package.json"
31
31
  },
32
32
  "module": "dist/neutral/index.mjs",
33
- "types": "dist/types/index.d.ts",
33
+ "types": "dist/neutral/index.d.ts",
34
34
  "scripts": {
35
35
  "gen-schema": "yarn typescript-json-schema src/Manifest.ts PackageManifest --required --out dist/PackageManifest.schema.json",
36
36
  "package-build": "yarn gen-schema && yarn package-build-only",
37
37
  "package-compile": "yarn gen-schema && yarn package-compile-only"
38
38
  },
39
39
  "dependencies": {
40
- "@xylabs/hex": "^4.12.33",
41
- "@xylabs/object": "^4.12.33",
42
- "@xyo-network/payload-model": "^4.0.2"
40
+ "@xylabs/hex": "^4.13.15",
41
+ "@xylabs/object": "^4.13.15",
42
+ "@xyo-network/payload-model": "^4.1.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^24.0.10",
46
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
47
- "@xylabs/tsconfig": "^6.5.12",
45
+ "@types/node": "^24.0.13",
46
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
47
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
48
48
  "typescript": "^5.8.3",
49
49
  "typescript-json-schema": "^0.65.1"
50
50
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes