@xyo-network/manifest-model 3.0.6 → 3.0.8
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 +33 -0
- package/dist/neutral/Manifest.d.ts.map +1 -0
- package/dist/neutral/Payload.d.ts +19 -0
- package/dist/neutral/Payload.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +3 -55
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +32 -31
- package/src/Payload.ts +3 -1
- package/xy.config.ts +1 -3
|
@@ -0,0 +1,33 @@
|
|
|
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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,CAAA;CACtB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const DappPackageManifestPayloadSchema: "network.xyo.manifest.package.dapp";
|
|
2
|
+
export type DappPackageManifestPayloadSchema = typeof DappPackageManifestPayloadSchema;
|
|
3
|
+
export type PackageManifestPayloadSchema = 'network.xyo.manifest.package';
|
|
4
|
+
export declare const PackageManifestPayloadSchema: PackageManifestPayloadSchema;
|
|
5
|
+
export type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
6
|
+
export declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
7
|
+
export type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
8
|
+
export declare const NodeManifestPayloadSchema: 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("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PackageManifest & {
|
|
17
|
+
schema: "network.xyo.manifest.package";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,qCAA+C,CAAA;AAC5F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,MAAM,MAAM,4BAA4B,GAAG,8BAA8B,CAAA;AACzE,eAAO,MAAM,4BAA4B,EAAE,4BAA6D,CAAA;AAExG,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,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;;CAA8E,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ModuleAlias = Exclude<string, 'reserved-alias-value-8346534876'>;
|
|
6
|
-
interface Manifest {
|
|
7
|
-
description?: string;
|
|
8
|
-
}
|
|
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
|
-
type PackageManifestPayloadSchema = 'network.xyo.manifest.package';
|
|
40
|
-
declare const PackageManifestPayloadSchema: PackageManifestPayloadSchema;
|
|
41
|
-
type ModuleManifestPayloadSchema = 'network.xyo.module.manifest';
|
|
42
|
-
declare const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema;
|
|
43
|
-
type NodeManifestPayloadSchema = 'network.xyo.node.manifest';
|
|
44
|
-
declare const NodeManifestPayloadSchema: 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 _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & PackageManifest & {
|
|
52
|
-
schema: "network.xyo.manifest.package";
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export { type ConfigManifest, DappPackageManifestPayloadSchema, type Manifest, type ModuleAlias, type ModuleManifest, type ModuleManifestPayload, ModuleManifestPayloadSchema, type NodeManifest, type NodeManifestPayload, NodeManifestPayloadSchema, type PackageManifest, type PackageManifestPayload, PackageManifestPayloadSchema, isPackageManifestPayload };
|
|
1
|
+
export * from './Manifest.ts';
|
|
2
|
+
export * from './Payload.ts';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -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 type PackageManifestPayloadSchema = 'network.xyo.manifest.package'\nexport const PackageManifestPayloadSchema: PackageManifestPayloadSchema = 'network.xyo.manifest.package'\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 type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type {
|
|
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 type PackageManifestPayloadSchema = 'network.xyo.manifest.package'\nexport const PackageManifestPayloadSchema: PackageManifestPayloadSchema = 'network.xyo.manifest.package'\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 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":";AAaA,SAAS,6BAA6B;AAb/B,IAAM,mCAAmC;AAIzC,IAAM,+BAA6D;AAGnE,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AAiB7D,IAAM,2BAA2B,sBAA8C,4BAA4B;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/manifest-model",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://xyo.network"
|
|
7
|
-
},
|
|
3
|
+
"version": "3.0.8",
|
|
4
|
+
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
8
6
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
11
9
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"@xyo-network/payload-model": "^3.0.6"
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
16
13
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"typescript-json-schema": "^0.65.1"
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
18
|
+
"url": "https://xyo.network"
|
|
23
19
|
},
|
|
24
|
-
"
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
25
22
|
"exports": {
|
|
26
23
|
".": {
|
|
27
24
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -33,20 +30,24 @@
|
|
|
33
30
|
"./package.json": "./package.json"
|
|
34
31
|
},
|
|
35
32
|
"module": "dist/neutral/index.mjs",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"
|
|
33
|
+
"types": "dist/neutral/index.d.ts",
|
|
34
|
+
"scripts": {
|
|
35
|
+
"gen-schema": "yarn typescript-json-schema src/Manifest.ts PackageManifest --required --out dist/PackageManifest.schema.json",
|
|
36
|
+
"package-build": "yarn gen-schema && yarn package-build-only",
|
|
37
|
+
"package-compile": "yarn gen-schema && yarn package-compile-only"
|
|
40
38
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@xylabs/hex": "^4.0.3",
|
|
41
|
+
"@xyo-network/payload-model": "^3.0.8"
|
|
44
42
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^22.5.0",
|
|
45
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
46
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
47
|
+
"typescript": "^5.5.4",
|
|
48
|
+
"typescript-json-schema": "^0.65.1"
|
|
48
49
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
}
|
|
52
53
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -13,7 +13,9 @@ export const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo
|
|
|
13
13
|
import type { Payload } from '@xyo-network/payload-model'
|
|
14
14
|
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
15
15
|
|
|
16
|
-
import type {
|
|
16
|
+
import type {
|
|
17
|
+
ModuleManifest, NodeManifest, PackageManifest,
|
|
18
|
+
} from './Manifest.ts'
|
|
17
19
|
|
|
18
20
|
export interface NodeManifestPayload extends NodeManifest {
|
|
19
21
|
schema: NodeManifestPayloadSchema
|