@xyo-network/manifest-model 3.18.9 → 4.0.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/neutral/index.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// src/Manifest.ts
|
|
2
|
+
import { isObject } from "@xylabs/object";
|
|
3
|
+
var isManifest = (value) => {
|
|
4
|
+
return isObject(value);
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// src/Payload.ts
|
|
2
8
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
3
9
|
var DappPackageManifestPayloadSchema = "network.xyo.manifest.package.dapp";
|
|
@@ -10,6 +16,7 @@ export {
|
|
|
10
16
|
ModuleManifestPayloadSchema,
|
|
11
17
|
NodeManifestPayloadSchema,
|
|
12
18
|
PackageManifestPayloadSchema,
|
|
19
|
+
isManifest,
|
|
13
20
|
isPackageManifestPayload
|
|
14
21
|
};
|
|
15
22
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["export const DappPackageManifestPayloadSchema = 'network.xyo.manifest.package.dapp' as const\nexport type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema\n\nexport const PackageManifestPayloadSchema = 'network.xyo.manifest.package' as const\nexport type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema\n\nexport const ModuleManifestPayloadSchema = 'network.xyo.module.manifest' as const\nexport type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema\n\nexport const NodeManifestPayloadSchema = 'network.xyo.node.manifest' as const\nexport type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema\n\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type {\n ModuleManifest, NodeManifest, PackageManifest,\n} from './Manifest.ts'\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>\n\nexport type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>\n\nexport const isPackageManifestPayload = isPayloadOfSchemaType<PackageManifestPayload>(PackageManifestPayloadSchema)\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../src/Manifest.ts","../../src/Payload.ts"],"sourcesContent":["import type { Address } from '@xylabs/hex'\nimport { isObject } from '@xylabs/object'\n\nexport type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>\n\nexport interface Manifest {\n description?: string\n}\n\nexport const isManifest = (value: unknown): value is Manifest => {\n return isObject(value)\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 | ModuleAlias)[]\n public?: (ModuleManifest | ModuleAlias)[]\n }\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n status?: {\n address: Address\n children?: Record<Address, string | null>\n }\n}\n\nexport interface PackageManifest extends Manifest {\n modules?: Record<ModuleAlias, ModuleManifest>\n nodes: NodeManifest[]\n}\n","export const DappPackageManifestPayloadSchema = 'network.xyo.manifest.package.dapp' as const\nexport type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema\n\nexport const PackageManifestPayloadSchema = 'network.xyo.manifest.package' as const\nexport type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema\n\nexport const ModuleManifestPayloadSchema = 'network.xyo.module.manifest' as const\nexport type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema\n\nexport const NodeManifestPayloadSchema = 'network.xyo.node.manifest' as const\nexport type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema\n\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type {\n ModuleManifest, NodeManifest, PackageManifest,\n} from './Manifest.ts'\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>\n\nexport type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>\n\nexport const isPackageManifestPayload = isPayloadOfSchemaType<PackageManifestPayload>(PackageManifestPayloadSchema)\n"],"mappings":";AACA,SAAS,gBAAgB;AAQlB,IAAM,aAAa,CAAC,UAAsC;AAC/D,SAAO,SAAS,KAAK;AACvB;;;ACEA,SAAS,6BAA6B;AAb/B,IAAM,mCAAmC;AAGzC,IAAM,+BAA+B;AAGrC,IAAM,8BAA8B;AAGpC,IAAM,4BAA4B;AAkBlC,IAAM,2BAA2B,sBAA8C,4BAA4B;","names":[]}
|
package/dist/types/Manifest.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>;
|
|
|
3
3
|
export interface Manifest {
|
|
4
4
|
description?: string;
|
|
5
5
|
}
|
|
6
|
+
export declare const isManifest: (value: unknown) => value is Manifest;
|
|
6
7
|
export interface ConfigManifest {
|
|
7
8
|
accountPath?: string;
|
|
8
9
|
features?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG1C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,iCAAiC,CAAC,CAAA;AAE5E,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,QAEpD,CAAA;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/manifest-model",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -37,13 +37,14 @@
|
|
|
37
37
|
"package-compile": "yarn gen-schema && yarn package-compile-only"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@xylabs/hex": "^4.
|
|
41
|
-
"@
|
|
40
|
+
"@xylabs/hex": "^4.12.30",
|
|
41
|
+
"@xylabs/object": "^4.12.30",
|
|
42
|
+
"@xyo-network/payload-model": "^4.0.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^24.0.
|
|
45
|
-
"@xylabs/ts-scripts-yarn3": "^6.5.
|
|
46
|
-
"@xylabs/tsconfig": "^6.5.
|
|
45
|
+
"@types/node": "^24.0.10",
|
|
46
|
+
"@xylabs/ts-scripts-yarn3": "^6.5.12",
|
|
47
|
+
"@xylabs/tsconfig": "^6.5.12",
|
|
47
48
|
"typescript": "^5.8.3",
|
|
48
49
|
"typescript-json-schema": "^0.65.1"
|
|
49
50
|
},
|
package/src/Manifest.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import { isObject } from '@xylabs/object'
|
|
2
3
|
|
|
3
4
|
export type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>
|
|
4
5
|
|
|
@@ -6,6 +7,10 @@ export interface Manifest {
|
|
|
6
7
|
description?: string
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
export const isManifest = (value: unknown): value is Manifest => {
|
|
11
|
+
return isObject(value)
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
export interface ConfigManifest {
|
|
10
15
|
accountPath?: string
|
|
11
16
|
features?: string[]
|