@xyo-network/manifest-model 2.73.4 → 2.74.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.
- package/dist/Payload.d.mts +45 -0
- package/dist/Payload.d.mts.map +1 -0
- package/dist/Payload.d.ts +45 -0
- package/dist/Payload.d.ts.map +1 -0
- package/dist/index.d.mts +2 -48
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +2 -48
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -19
- package/src/Payload.ts +1 -0
- package/types.d.ts +3 -0
- package/dist/docs.json +0 -1660
- package/tsup.config.ts +0 -16
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type ManifestPayloadSchema = 'network.xyo.manifest';
|
|
2
|
+
export declare const ManifestPayloadSchema: ManifestPayloadSchema;
|
|
3
|
+
export type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
4
|
+
export declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
5
|
+
export type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
6
|
+
export declare const NodeManifestPayloadSchema: NodeManifestPayloadSchema;
|
|
7
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
8
|
+
export interface Manifest {
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfigManifest {
|
|
12
|
+
accountPath?: string;
|
|
13
|
+
features?: string[];
|
|
14
|
+
labels?: Record<string, string | undefined>;
|
|
15
|
+
language?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
os?: string;
|
|
18
|
+
schema: string;
|
|
19
|
+
}
|
|
20
|
+
export interface NodeManifest extends ModuleManifest {
|
|
21
|
+
modules?: {
|
|
22
|
+
private?: ModuleManifest[];
|
|
23
|
+
public?: ModuleManifest[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface NodeManifestPayload extends NodeManifest {
|
|
27
|
+
schema: NodeManifestPayloadSchema;
|
|
28
|
+
}
|
|
29
|
+
export interface ModuleManifest extends Manifest {
|
|
30
|
+
config: ConfigManifest;
|
|
31
|
+
lazyStart?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ModuleManifestPayload extends ModuleManifest {
|
|
34
|
+
schema: ModuleManifestPayloadSchema | string;
|
|
35
|
+
}
|
|
36
|
+
export interface ManifestPayload {
|
|
37
|
+
modules?: Record<string, ModuleManifest>;
|
|
38
|
+
nodes: NodeManifest[];
|
|
39
|
+
payloads?: Record<string, Payload>;
|
|
40
|
+
schema: ManifestPayloadSchema;
|
|
41
|
+
}
|
|
42
|
+
export declare const isManifestPayload: (x: {
|
|
43
|
+
schema: string;
|
|
44
|
+
}) => x is ManifestPayload;
|
|
45
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../src/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAA;AAC1D,eAAO,MAAM,qBAAqB,EAAE,qBAA8C,CAAA;AAElF,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAA;AACvE,eAAO,MAAM,2BAA2B,EAAE,2BAA2D,CAAA;AAErG,MAAM,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AACnE,eAAO,MAAM,yBAAyB,EAAE,yBAAuD,CAAA;AAE/F,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,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,EAAE,CAAA;QAC1B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAA;KAC1B,CAAA;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,yBAAyB,CAAA;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAAA;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACxC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,MAAM,EAAE,qBAAqB,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB;;0BAAgE,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type ManifestPayloadSchema = 'network.xyo.manifest';
|
|
2
|
+
export declare const ManifestPayloadSchema: ManifestPayloadSchema;
|
|
3
|
+
export type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
4
|
+
export declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
5
|
+
export type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
6
|
+
export declare const NodeManifestPayloadSchema: NodeManifestPayloadSchema;
|
|
7
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
8
|
+
export interface Manifest {
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfigManifest {
|
|
12
|
+
accountPath?: string;
|
|
13
|
+
features?: string[];
|
|
14
|
+
labels?: Record<string, string | undefined>;
|
|
15
|
+
language?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
os?: string;
|
|
18
|
+
schema: string;
|
|
19
|
+
}
|
|
20
|
+
export interface NodeManifest extends ModuleManifest {
|
|
21
|
+
modules?: {
|
|
22
|
+
private?: ModuleManifest[];
|
|
23
|
+
public?: ModuleManifest[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface NodeManifestPayload extends NodeManifest {
|
|
27
|
+
schema: NodeManifestPayloadSchema;
|
|
28
|
+
}
|
|
29
|
+
export interface ModuleManifest extends Manifest {
|
|
30
|
+
config: ConfigManifest;
|
|
31
|
+
lazyStart?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ModuleManifestPayload extends ModuleManifest {
|
|
34
|
+
schema: ModuleManifestPayloadSchema | string;
|
|
35
|
+
}
|
|
36
|
+
export interface ManifestPayload {
|
|
37
|
+
modules?: Record<string, ModuleManifest>;
|
|
38
|
+
nodes: NodeManifest[];
|
|
39
|
+
payloads?: Record<string, Payload>;
|
|
40
|
+
schema: ManifestPayloadSchema;
|
|
41
|
+
}
|
|
42
|
+
export declare const isManifestPayload: (x: {
|
|
43
|
+
schema: string;
|
|
44
|
+
}) => x is ManifestPayload;
|
|
45
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../src/Payload.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAA;AAC1D,eAAO,MAAM,qBAAqB,EAAE,qBAA8C,CAAA;AAElF,MAAM,MAAM,2BAA2B,GAAG,6BAA6B,CAAA;AACvE,eAAO,MAAM,2BAA2B,EAAE,2BAA2D,CAAA;AAErG,MAAM,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AACnE,eAAO,MAAM,yBAAyB,EAAE,yBAAuD,CAAA;AAE/F,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,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,EAAE,CAAA;QAC1B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAA;KAC1B,CAAA;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,MAAM,EAAE,yBAAyB,CAAA;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAAA;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACxC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,MAAM,EAAE,qBAAqB,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB;;0BAAgE,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type ManifestPayloadSchema = 'network.xyo.manifest';
|
|
5
|
-
declare const ManifestPayloadSchema: ManifestPayloadSchema;
|
|
6
|
-
type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
7
|
-
declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
8
|
-
type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
9
|
-
declare const NodeManifestPayloadSchema: NodeManifestPayloadSchema;
|
|
10
|
-
|
|
11
|
-
interface Manifest {
|
|
12
|
-
description?: string;
|
|
13
|
-
}
|
|
14
|
-
interface ConfigManifest {
|
|
15
|
-
accountPath?: string;
|
|
16
|
-
features?: string[];
|
|
17
|
-
language?: string;
|
|
18
|
-
name: string;
|
|
19
|
-
os?: string;
|
|
20
|
-
schema: string;
|
|
21
|
-
}
|
|
22
|
-
interface NodeManifest extends ModuleManifest {
|
|
23
|
-
modules?: {
|
|
24
|
-
private?: ModuleManifest[];
|
|
25
|
-
public?: ModuleManifest[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
interface NodeManifestPayload extends NodeManifest {
|
|
29
|
-
schema: NodeManifestPayloadSchema;
|
|
30
|
-
}
|
|
31
|
-
interface ModuleManifest extends Manifest {
|
|
32
|
-
config: ConfigManifest;
|
|
33
|
-
lazyStart?: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface ModuleManifestPayload extends ModuleManifest {
|
|
36
|
-
schema: ModuleManifestPayloadSchema | string;
|
|
37
|
-
}
|
|
38
|
-
interface ManifestPayload {
|
|
39
|
-
modules?: Record<string, ModuleManifest>;
|
|
40
|
-
nodes: NodeManifest[];
|
|
41
|
-
payloads?: Record<string, Payload>;
|
|
42
|
-
schema: ManifestPayloadSchema;
|
|
43
|
-
}
|
|
44
|
-
declare const isManifestPayload: (x: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
45
|
-
schema: string;
|
|
46
|
-
}) => x is ManifestPayload;
|
|
47
|
-
|
|
48
|
-
export { ConfigManifest, Manifest, ManifestPayload, ManifestPayloadSchema, ModuleManifest, ModuleManifestPayload, ModuleManifestPayloadSchema, NodeManifest, NodeManifestPayload, NodeManifestPayloadSchema, isManifestPayload };
|
|
1
|
+
export * from './Payload';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type ManifestPayloadSchema = 'network.xyo.manifest';
|
|
5
|
-
declare const ManifestPayloadSchema: ManifestPayloadSchema;
|
|
6
|
-
type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
7
|
-
declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
8
|
-
type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
9
|
-
declare const NodeManifestPayloadSchema: NodeManifestPayloadSchema;
|
|
10
|
-
|
|
11
|
-
interface Manifest {
|
|
12
|
-
description?: string;
|
|
13
|
-
}
|
|
14
|
-
interface ConfigManifest {
|
|
15
|
-
accountPath?: string;
|
|
16
|
-
features?: string[];
|
|
17
|
-
language?: string;
|
|
18
|
-
name: string;
|
|
19
|
-
os?: string;
|
|
20
|
-
schema: string;
|
|
21
|
-
}
|
|
22
|
-
interface NodeManifest extends ModuleManifest {
|
|
23
|
-
modules?: {
|
|
24
|
-
private?: ModuleManifest[];
|
|
25
|
-
public?: ModuleManifest[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
interface NodeManifestPayload extends NodeManifest {
|
|
29
|
-
schema: NodeManifestPayloadSchema;
|
|
30
|
-
}
|
|
31
|
-
interface ModuleManifest extends Manifest {
|
|
32
|
-
config: ConfigManifest;
|
|
33
|
-
lazyStart?: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface ModuleManifestPayload extends ModuleManifest {
|
|
36
|
-
schema: ModuleManifestPayloadSchema | string;
|
|
37
|
-
}
|
|
38
|
-
interface ManifestPayload {
|
|
39
|
-
modules?: Record<string, ModuleManifest>;
|
|
40
|
-
nodes: NodeManifest[];
|
|
41
|
-
payloads?: Record<string, Payload>;
|
|
42
|
-
schema: ManifestPayloadSchema;
|
|
43
|
-
}
|
|
44
|
-
declare const isManifestPayload: (x: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
45
|
-
schema: string;
|
|
46
|
-
}) => x is ManifestPayload;
|
|
47
|
-
|
|
48
|
-
export { ConfigManifest, Manifest, ManifestPayload, ManifestPayloadSchema, ModuleManifest, ModuleManifestPayload, ModuleManifestPayloadSchema, NodeManifest, NodeManifestPayload, NodeManifestPayloadSchema, isManifestPayload };
|
|
1
|
+
export * from './Payload';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/Payload.ts"],"sourcesContent":["export * from './Payload'\n","export type ManifestPayloadSchema = 'network.xyo.manifest'\nexport const ManifestPayloadSchema: ManifestPayloadSchema = 'network.xyo.manifest'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n}\n\nexport interface ModuleManifestPayload extends ModuleManifest {\n schema: ModuleManifestPayloadSchema | string\n}\n\nexport interface ManifestPayload {\n modules?: Record<string, ModuleManifest>\n nodes: NodeManifest[]\n payloads?: Record<string, Payload>\n schema: ManifestPayloadSchema\n}\n\nexport const isManifestPayload = isPayloadOfSchemaType<ManifestPayload>(ManifestPayloadSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSA,2BAA+C;AARxC,IAAM,wBAA+C;AAGrD,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/Payload.ts"],"sourcesContent":["export * from './Payload'\n","export type ManifestPayloadSchema = 'network.xyo.manifest'\nexport const ManifestPayloadSchema: ManifestPayloadSchema = 'network.xyo.manifest'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n labels?: Record<string, string | undefined>\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n}\n\nexport interface ModuleManifestPayload extends ModuleManifest {\n schema: ModuleManifestPayloadSchema | string\n}\n\nexport interface ManifestPayload {\n modules?: Record<string, ModuleManifest>\n nodes: NodeManifest[]\n payloads?: Record<string, Payload>\n schema: ManifestPayloadSchema\n}\n\nexport const isManifestPayload = isPayloadOfSchemaType<ManifestPayload>(ManifestPayloadSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSA,2BAA+C;AARxC,IAAM,wBAA+C;AAGrD,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AA6C7D,IAAM,wBAAoB,4CAAuC,qBAAqB;","names":[]}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Payload.ts"],"sourcesContent":["export type ManifestPayloadSchema = 'network.xyo.manifest'\nexport const ManifestPayloadSchema: ManifestPayloadSchema = 'network.xyo.manifest'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n}\n\nexport interface ModuleManifestPayload extends ModuleManifest {\n schema: ModuleManifestPayloadSchema | string\n}\n\nexport interface ManifestPayload {\n modules?: Record<string, ModuleManifest>\n nodes: NodeManifest[]\n payloads?: Record<string, Payload>\n schema: ManifestPayloadSchema\n}\n\nexport const isManifestPayload = isPayloadOfSchemaType<ManifestPayload>(ManifestPayloadSchema)\n"],"mappings":";AASA,SAAS,6BAAsC;AARxC,IAAM,wBAA+C;AAGrD,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;
|
|
1
|
+
{"version":3,"sources":["../src/Payload.ts"],"sourcesContent":["export type ManifestPayloadSchema = 'network.xyo.manifest'\nexport const ManifestPayloadSchema: ManifestPayloadSchema = 'network.xyo.manifest'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n labels?: Record<string, string | undefined>\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n}\n\nexport interface ModuleManifestPayload extends ModuleManifest {\n schema: ModuleManifestPayloadSchema | string\n}\n\nexport interface ManifestPayload {\n modules?: Record<string, ModuleManifest>\n nodes: NodeManifest[]\n payloads?: Record<string, Payload>\n schema: ManifestPayloadSchema\n}\n\nexport const isManifestPayload = isPayloadOfSchemaType<ManifestPayload>(ManifestPayloadSchema)\n"],"mappings":";AASA,SAAS,6BAAsC;AARxC,IAAM,wBAA+C;AAGrD,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AA6C7D,IAAM,oBAAoB,sBAAuC,qBAAqB;","names":[]}
|
package/package.json
CHANGED
|
@@ -8,19 +8,13 @@
|
|
|
8
8
|
"email": "support@xyo.network",
|
|
9
9
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
10
10
|
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"package-compile": "tsup && publint",
|
|
13
|
-
"package-recompile": "tsup && publint"
|
|
14
|
-
},
|
|
15
11
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
16
12
|
"dependencies": {
|
|
17
|
-
"@xyo-network/payload-model": "~2.
|
|
13
|
+
"@xyo-network/payload-model": "~2.74.0"
|
|
18
14
|
},
|
|
19
15
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
21
|
-
"@xylabs/tsconfig": "^
|
|
22
|
-
"publint": "^0.2.2",
|
|
23
|
-
"tsup": "^7.2.0",
|
|
16
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.27",
|
|
17
|
+
"@xylabs/tsconfig": "^3.0.27",
|
|
24
18
|
"typescript": "^5.2.2"
|
|
25
19
|
},
|
|
26
20
|
"docs": "dist/docs.json",
|
|
@@ -36,18 +30,9 @@
|
|
|
36
30
|
"default": "./dist/index.mjs"
|
|
37
31
|
}
|
|
38
32
|
},
|
|
39
|
-
"./dist/docs.json": {
|
|
40
|
-
"default": "./dist/docs.json"
|
|
41
|
-
},
|
|
42
|
-
"./cjs": {
|
|
43
|
-
"default": "./dist/index.js"
|
|
44
|
-
},
|
|
45
33
|
"./docs": {
|
|
46
34
|
"default": "./dist/docs.json"
|
|
47
35
|
},
|
|
48
|
-
"./esm": {
|
|
49
|
-
"default": "./dist/index.mjs"
|
|
50
|
-
},
|
|
51
36
|
"./package.json": "./package.json"
|
|
52
37
|
},
|
|
53
38
|
"main": "dist/index.js",
|
|
@@ -63,5 +48,5 @@
|
|
|
63
48
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
64
49
|
},
|
|
65
50
|
"sideEffects": false,
|
|
66
|
-
"version": "2.
|
|
51
|
+
"version": "2.74.0"
|
|
67
52
|
}
|
package/src/Payload.ts
CHANGED
package/types.d.ts
ADDED