@xyo-network/manifest-model 5.2.25 → 5.3.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/Manifest.d.ts +2 -1
- package/dist/neutral/Manifest.d.ts.map +1 -1
- package/dist/neutral/Payload.d.ts +12 -4
- package/dist/neutral/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +5 -5
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/Manifest.ts +2 -1
- package/src/Payload.ts +5 -5
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Brand } from '@xylabs/sdk-js';
|
|
2
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
2
3
|
export type ModuleAlias = Brand<string, {
|
|
3
4
|
__moduleAlias: true;
|
|
4
5
|
}>;
|
|
@@ -13,7 +14,7 @@ export interface ConfigManifest {
|
|
|
13
14
|
language?: string;
|
|
14
15
|
name: string;
|
|
15
16
|
os?: string;
|
|
16
|
-
schema:
|
|
17
|
+
schema: Schema;
|
|
17
18
|
}
|
|
18
19
|
export interface NodeManifest extends ModuleManifest {
|
|
19
20
|
modules?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AAEhE,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"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
export declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp"
|
|
1
|
+
export declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp" & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
2
4
|
export type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema;
|
|
3
|
-
export declare const PackageManifestPayloadSchema: "network.xyo.manifest.package"
|
|
5
|
+
export declare const PackageManifestPayloadSchema: "network.xyo.manifest.package" & {
|
|
6
|
+
readonly __schema: true;
|
|
7
|
+
};
|
|
4
8
|
export type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema;
|
|
5
|
-
export declare const ModuleManifestPayloadSchema: "network.xyo.module.manifest"
|
|
9
|
+
export declare const ModuleManifestPayloadSchema: "network.xyo.module.manifest" & {
|
|
10
|
+
readonly __schema: true;
|
|
11
|
+
};
|
|
6
12
|
export type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema;
|
|
7
|
-
export declare const NodeManifestPayloadSchema: "network.xyo.node.manifest"
|
|
13
|
+
export declare const NodeManifestPayloadSchema: "network.xyo.node.manifest" & {
|
|
14
|
+
readonly __schema: true;
|
|
15
|
+
};
|
|
8
16
|
export type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema;
|
|
9
17
|
import type { Payload } from '@xyo-network/payload-model';
|
|
10
18
|
import type { ModuleManifest, NodeManifest, PackageManifest } from './Manifest.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;CAAsD,CAAA;AACnG,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,eAAO,MAAM,4BAA4B;;CAAiD,CAAA;AAC1F,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAA;AAE9E,eAAO,MAAM,2BAA2B;;CAAgD,CAAA;AACxF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,eAAO,MAAM,yBAAyB;;CAA8C,CAAA;AACpF,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,qDAA8E,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -5,11 +5,11 @@ var isManifest = (value) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/Payload.ts
|
|
8
|
-
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
9
|
-
var DappPackageManifestPayloadSchema = "network.xyo.manifest.package.dapp";
|
|
10
|
-
var PackageManifestPayloadSchema = "network.xyo.manifest.package";
|
|
11
|
-
var ModuleManifestPayloadSchema = "network.xyo.module.manifest";
|
|
12
|
-
var NodeManifestPayloadSchema = "network.xyo.node.manifest";
|
|
8
|
+
import { asSchema, isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
9
|
+
var DappPackageManifestPayloadSchema = asSchema("network.xyo.manifest.package.dapp", true);
|
|
10
|
+
var PackageManifestPayloadSchema = asSchema("network.xyo.manifest.package", true);
|
|
11
|
+
var ModuleManifestPayloadSchema = asSchema("network.xyo.module.manifest", true);
|
|
12
|
+
var NodeManifestPayloadSchema = asSchema("network.xyo.node.manifest", true);
|
|
13
13
|
var isPackageManifestPayload = isPayloadOfSchemaType(PackageManifestPayloadSchema);
|
|
14
14
|
export {
|
|
15
15
|
DappPackageManifestPayloadSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Manifest.ts","../../src/Payload.ts"],"sourcesContent":["import type { Address, Brand } from '@xylabs/sdk-js'\nimport { isObject } from '@xylabs/sdk-js'\n\nexport type ModuleAlias = Brand<string, { __moduleAlias: true }>\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:
|
|
1
|
+
{"version":3,"sources":["../../src/Manifest.ts","../../src/Payload.ts"],"sourcesContent":["import type { Address, Brand } from '@xylabs/sdk-js'\nimport { isObject } from '@xylabs/sdk-js'\nimport type { Schema } from '@xyo-network/payload-model'\n\nexport type ModuleAlias = Brand<string, { __moduleAlias: true }>\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: Schema\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 = asSchema('network.xyo.manifest.package.dapp', true)\nexport type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema\n\nexport const PackageManifestPayloadSchema = asSchema('network.xyo.manifest.package', true)\nexport type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema\n\nexport const ModuleManifestPayloadSchema = asSchema('network.xyo.module.manifest', true)\nexport type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema\n\nexport const NodeManifestPayloadSchema = asSchema('network.xyo.node.manifest', true)\nexport type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema\n\nimport type { Payload } from '@xyo-network/payload-model'\nimport { asSchema, 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;AASlB,IAAM,aAAa,CAAC,UAAsC;AAC/D,SAAO,SAAS,KAAK;AACvB;;;ACCA,SAAS,UAAU,6BAA6B;AAbzC,IAAM,mCAAmC,SAAS,qCAAqC,IAAI;AAG3F,IAAM,+BAA+B,SAAS,gCAAgC,IAAI;AAGlF,IAAM,8BAA8B,SAAS,+BAA+B,IAAI;AAGhF,IAAM,4BAA4B,SAAS,6BAA6B,IAAI;AAkB5E,IAAM,2BAA2B,sBAA8C,4BAA4B;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/manifest-model",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"!**/*.test.*"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/sdk-js": "~5.0.
|
|
40
|
-
"@xyo-network/payload-model": "~5.
|
|
39
|
+
"@xylabs/sdk-js": "~5.0.64",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "~25.0.
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "~7.2
|
|
45
|
-
"@xylabs/tsconfig": "~7.2
|
|
43
|
+
"@types/node": "~25.0.10",
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
45
|
+
"@xylabs/tsconfig": "~7.3.2",
|
|
46
46
|
"typescript": "~5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
package/src/Manifest.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Address, Brand } from '@xylabs/sdk-js'
|
|
2
2
|
import { isObject } from '@xylabs/sdk-js'
|
|
3
|
+
import type { Schema } from '@xyo-network/payload-model'
|
|
3
4
|
|
|
4
5
|
export type ModuleAlias = Brand<string, { __moduleAlias: true }>
|
|
5
6
|
|
|
@@ -18,7 +19,7 @@ export interface ConfigManifest {
|
|
|
18
19
|
language?: string
|
|
19
20
|
name: string
|
|
20
21
|
os?: string
|
|
21
|
-
schema:
|
|
22
|
+
schema: Schema
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export interface NodeManifest extends ModuleManifest {
|
package/src/Payload.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export const DappPackageManifestPayloadSchema = 'network.xyo.manifest.package.dapp'
|
|
1
|
+
export const DappPackageManifestPayloadSchema = asSchema('network.xyo.manifest.package.dapp', true)
|
|
2
2
|
export type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema
|
|
3
3
|
|
|
4
|
-
export const PackageManifestPayloadSchema = 'network.xyo.manifest.package'
|
|
4
|
+
export const PackageManifestPayloadSchema = asSchema('network.xyo.manifest.package', true)
|
|
5
5
|
export type PackageManifestPayloadSchema = typeof PackageManifestPayloadSchema
|
|
6
6
|
|
|
7
|
-
export const ModuleManifestPayloadSchema = 'network.xyo.module.manifest'
|
|
7
|
+
export const ModuleManifestPayloadSchema = asSchema('network.xyo.module.manifest', true)
|
|
8
8
|
export type ModuleManifestPayloadSchema = typeof ModuleManifestPayloadSchema
|
|
9
9
|
|
|
10
|
-
export const NodeManifestPayloadSchema = 'network.xyo.node.manifest'
|
|
10
|
+
export const NodeManifestPayloadSchema = asSchema('network.xyo.node.manifest', true)
|
|
11
11
|
export type NodeManifestPayloadSchema = typeof NodeManifestPayloadSchema
|
|
12
12
|
|
|
13
13
|
import type { Payload } from '@xyo-network/payload-model'
|
|
14
|
-
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
14
|
+
import { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
15
15
|
|
|
16
16
|
import type {
|
|
17
17
|
ModuleManifest, NodeManifest, PackageManifest,
|