@xyo-network/manifest-model 3.8.0 → 3.8.2

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.
@@ -1,3 +1,145 @@
1
- export * from './Manifest.ts';
2
- export * from './Payload.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xylabs_hex from '@xylabs/hex';
2
+ import { Address } from '@xylabs/hex';
3
+ import * as _xylabs_object from '@xylabs/object';
4
+ import { Payload } from '@xyo-network/payload-model';
5
+
6
+ type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>;
7
+ interface Manifest {
8
+ description?: string;
9
+ }
10
+ interface ConfigManifest {
11
+ accountPath?: string;
12
+ features?: string[];
13
+ labels?: Record<string, string | undefined>;
14
+ language?: string;
15
+ name: string;
16
+ os?: string;
17
+ schema: string;
18
+ }
19
+ interface NodeManifest extends ModuleManifest {
20
+ modules?: {
21
+ private?: (ModuleManifest | ModuleAlias)[];
22
+ public?: (ModuleManifest | ModuleAlias)[];
23
+ };
24
+ }
25
+ interface ModuleManifest extends Manifest {
26
+ config: ConfigManifest;
27
+ lazyStart?: boolean;
28
+ status?: {
29
+ address: Address;
30
+ children?: Record<Address, string | null>;
31
+ };
32
+ }
33
+ interface PackageManifest extends Manifest {
34
+ modules?: Record<ModuleAlias, ModuleManifest>;
35
+ nodes: NodeManifest[];
36
+ }
37
+
38
+ declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp";
39
+ type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema;
40
+ declare const PackageManifestPayloadSchema: "network.xyo.manifest.package";
41
+ type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema;
42
+ declare const ModuleManifestPayloadSchema: "network.xyo.module.manifest";
43
+ type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema;
44
+ declare const NodeManifestPayloadSchema: "network.xyo.node.manifest";
45
+ type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema;
46
+
47
+ interface NodeManifestPayload extends NodeManifest {
48
+ schema: NodeManifestPayloadSchema;
49
+ }
50
+ type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>;
51
+ type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>;
52
+ declare const isPackageManifestPayload: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
53
+ schema: "network.xyo.manifest.package";
54
+ modules?: {
55
+ [x: string]: {
56
+ config: {
57
+ accountPath?: string | undefined;
58
+ features?: string[] | undefined;
59
+ labels?: {
60
+ [x: string]: string | undefined;
61
+ } | undefined;
62
+ language?: string | undefined;
63
+ name: string;
64
+ os?: string | undefined;
65
+ schema: string;
66
+ };
67
+ lazyStart?: boolean | undefined;
68
+ status?: {
69
+ address: _xylabs_hex.Address;
70
+ children?: {
71
+ [x: Lowercase<string>]: string | null;
72
+ } | undefined;
73
+ } | undefined;
74
+ description?: string | undefined;
75
+ };
76
+ } | undefined;
77
+ nodes: {
78
+ modules?: {
79
+ private?: (string | {
80
+ config: {
81
+ accountPath?: string | undefined;
82
+ features?: string[] | undefined;
83
+ labels?: {
84
+ [x: string]: string | undefined;
85
+ } | undefined;
86
+ language?: string | undefined;
87
+ name: string;
88
+ os?: string | undefined;
89
+ schema: string;
90
+ };
91
+ lazyStart?: boolean | undefined;
92
+ status?: {
93
+ address: _xylabs_hex.Address;
94
+ children?: {
95
+ [x: Lowercase<string>]: string | null;
96
+ } | undefined;
97
+ } | undefined;
98
+ description?: string | undefined;
99
+ })[] | undefined;
100
+ public?: (string | {
101
+ config: {
102
+ accountPath?: string | undefined;
103
+ features?: string[] | undefined;
104
+ labels?: {
105
+ [x: string]: string | undefined;
106
+ } | undefined;
107
+ language?: string | undefined;
108
+ name: string;
109
+ os?: string | undefined;
110
+ schema: string;
111
+ };
112
+ lazyStart?: boolean | undefined;
113
+ status?: {
114
+ address: _xylabs_hex.Address;
115
+ children?: {
116
+ [x: Lowercase<string>]: string | null;
117
+ } | undefined;
118
+ } | undefined;
119
+ description?: string | undefined;
120
+ })[] | undefined;
121
+ } | undefined;
122
+ config: {
123
+ accountPath?: string | undefined;
124
+ features?: string[] | undefined;
125
+ labels?: {
126
+ [x: string]: string | undefined;
127
+ } | undefined;
128
+ language?: string | undefined;
129
+ name: string;
130
+ os?: string | undefined;
131
+ schema: string;
132
+ };
133
+ lazyStart?: boolean | undefined;
134
+ status?: {
135
+ address: _xylabs_hex.Address;
136
+ children?: {
137
+ [x: Lowercase<string>]: string | null;
138
+ } | undefined;
139
+ } | undefined;
140
+ description?: string | undefined;
141
+ }[];
142
+ description?: string | undefined;
143
+ }>;
144
+
145
+ export { type ConfigManifest, DappPackageManifestPayloadSchema, type Manifest, type ModuleAlias, type ModuleManifest, type ModuleManifestPayload, ModuleManifestPayloadSchema, type NodeManifest, type NodeManifestPayload, NodeManifestPayloadSchema, type PackageManifest, type PackageManifestPayload, PackageManifestPayloadSchema, isPackageManifestPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/manifest-model",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@xylabs/hex": "^4.5.1",
41
- "@xyo-network/payload-model": "^3.8.0"
41
+ "@xyo-network/payload-model": "^3.8.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/node": "^22.10.10",
45
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
46
- "@xylabs/tsconfig": "^4.2.6",
44
+ "@types/node": "^22.13.1",
45
+ "@xylabs/ts-scripts-yarn3": "^5.0.22",
46
+ "@xylabs/tsconfig": "^5.0.22",
47
47
  "typescript": "^5.7.3",
48
48
  "typescript-json-schema": "^0.65.1"
49
49
  },
@@ -1,33 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- export type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>;
3
- export interface Manifest {
4
- description?: string;
5
- }
6
- export interface ConfigManifest {
7
- accountPath?: string;
8
- features?: string[];
9
- labels?: Record<string, string | undefined>;
10
- language?: string;
11
- name: string;
12
- os?: string;
13
- schema: string;
14
- }
15
- export interface NodeManifest extends ModuleManifest {
16
- modules?: {
17
- private?: (ModuleManifest | ModuleAlias)[];
18
- public?: (ModuleManifest | ModuleAlias)[];
19
- };
20
- }
21
- export interface ModuleManifest extends Manifest {
22
- config: ConfigManifest;
23
- lazyStart?: boolean;
24
- status?: {
25
- address: Address;
26
- children?: Record<Address, string | null>;
27
- };
28
- }
29
- export interface PackageManifest extends Manifest {
30
- modules?: Record<ModuleAlias, ModuleManifest>;
31
- nodes: NodeManifest[];
32
- }
33
- //# sourceMappingURL=Manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,iCAAiC,CAAC,CAAA;AAE5E,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,CAAC,cAAc,GAAG,WAAW,CAAC,EAAE,CAAA;QAC1C,MAAM,CAAC,EAAE,CAAC,cAAc,GAAG,WAAW,CAAC,EAAE,CAAA;KAC1C,CAAA;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,OAAO,CAAA;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC,CAAA;KAC1C,CAAA;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,CAAA;IAC7C,KAAK,EAAE,YAAY,EAAE,CAAA;CACtB"}
@@ -1,108 +0,0 @@
1
- export declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp";
2
- export type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema;
3
- export declare const PackageManifestPayloadSchema: "network.xyo.manifest.package";
4
- export type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema;
5
- export declare const ModuleManifestPayloadSchema: "network.xyo.module.manifest";
6
- export type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema;
7
- export declare const NodeManifestPayloadSchema: "network.xyo.node.manifest";
8
- export type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema;
9
- import type { Payload } from '@xyo-network/payload-model';
10
- import type { ModuleManifest, NodeManifest, PackageManifest } from './Manifest.ts';
11
- export interface NodeManifestPayload extends NodeManifest {
12
- schema: NodeManifestPayloadSchema;
13
- }
14
- export type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>;
15
- export type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>;
16
- export declare const isPackageManifestPayload: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
17
- schema: "network.xyo.manifest.package";
18
- modules?: {
19
- [x: string]: {
20
- config: {
21
- accountPath?: string | undefined;
22
- features?: string[] | undefined;
23
- labels?: {
24
- [x: string]: string | undefined;
25
- } | undefined;
26
- language?: string | undefined;
27
- name: string;
28
- os?: string | undefined;
29
- schema: string;
30
- };
31
- lazyStart?: boolean | undefined;
32
- status?: {
33
- address: import("@xylabs/hex").Address;
34
- children?: {
35
- [x: Lowercase<string>]: string | null;
36
- } | undefined;
37
- } | undefined;
38
- description?: string | undefined;
39
- };
40
- } | undefined;
41
- nodes: {
42
- modules?: {
43
- private?: (string | {
44
- config: {
45
- accountPath?: string | undefined;
46
- features?: string[] | undefined;
47
- labels?: {
48
- [x: string]: string | undefined;
49
- } | undefined;
50
- language?: string | undefined;
51
- name: string;
52
- os?: string | undefined;
53
- schema: string;
54
- };
55
- lazyStart?: boolean | undefined;
56
- status?: {
57
- address: import("@xylabs/hex").Address;
58
- children?: {
59
- [x: Lowercase<string>]: string | null;
60
- } | undefined;
61
- } | undefined;
62
- description?: string | undefined;
63
- })[] | undefined;
64
- public?: (string | {
65
- config: {
66
- accountPath?: string | undefined;
67
- features?: string[] | undefined;
68
- labels?: {
69
- [x: string]: string | undefined;
70
- } | undefined;
71
- language?: string | undefined;
72
- name: string;
73
- os?: string | undefined;
74
- schema: string;
75
- };
76
- lazyStart?: boolean | undefined;
77
- status?: {
78
- address: import("@xylabs/hex").Address;
79
- children?: {
80
- [x: Lowercase<string>]: string | null;
81
- } | undefined;
82
- } | undefined;
83
- description?: string | undefined;
84
- })[] | undefined;
85
- } | undefined;
86
- config: {
87
- accountPath?: string | undefined;
88
- features?: string[] | undefined;
89
- labels?: {
90
- [x: string]: string | undefined;
91
- } | undefined;
92
- language?: string | undefined;
93
- name: string;
94
- os?: string | undefined;
95
- schema: string;
96
- };
97
- lazyStart?: boolean | undefined;
98
- status?: {
99
- address: import("@xylabs/hex").Address;
100
- children?: {
101
- [x: Lowercase<string>]: string | null;
102
- } | undefined;
103
- } | undefined;
104
- description?: string | undefined;
105
- }[];
106
- description?: string | undefined;
107
- }>;
108
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,EAAG,mCAA4C,CAAA;AAC5F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,eAAO,MAAM,4BAA4B,EAAG,8BAAuC,CAAA;AACnF,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAA;AAE9E,eAAO,MAAM,2BAA2B,EAAG,6BAAsC,CAAA;AACjF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,eAAO,MAAM,yBAAyB,EAAG,2BAAoC,CAAA;AAC7E,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EACV,cAAc,EAAE,YAAY,EAAE,eAAe,EAC9C,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,yBAAyB,CAAA;CAClC;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,cAAc,EAAE,2BAA2B,GAAG,yBAAyB,CAAC,CAAA;AAEpH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,eAAe,EAAE,4BAA4B,CAAC,CAAA;AAE3F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8E,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}