@xyo-network/manifest-model 5.3.26 → 5.3.29
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 +3 -35
- package/dist/neutral/Manifest.d.ts.map +1 -1
- package/dist/neutral/Manifest.zod.d.ts +2 -0
- package/dist/neutral/Manifest.zod.d.ts.map +1 -0
- package/dist/neutral/ManifestZod.d.ts +573 -0
- package/dist/neutral/ManifestZod.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +1 -0
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +84 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +14 -12
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
__moduleAlias: true;
|
|
5
|
-
}>;
|
|
6
|
-
export interface Manifest {
|
|
7
|
-
description?: string;
|
|
8
|
-
}
|
|
1
|
+
export type { AuthoredDappPackageManifest, AuthoredModuleManifest, AuthoredNodeManifest, AuthoredPackageManifest, ConfigManifest, Manifest, ModuleAlias, ModuleManifest, NodeManifest, PackageManifest, } from './ManifestZod.ts';
|
|
2
|
+
export { AuthoredDappPackageManifestZod, AuthoredModuleManifestZod, AuthoredNodeManifestZod, AuthoredPackageManifestZod, ConfigManifestZod, ExternalManifestZod, ExternalModuleRequestZod, ManifestZod, ModuleAliasZodSchema, ModuleManifestReferenceZod, ModuleManifestStatusZod, ModuleManifestZod, NodeManifestZod, PackageManifestZod, } from './ManifestZod.ts';
|
|
3
|
+
import type { Manifest } from './ManifestZod.ts';
|
|
9
4
|
export declare const isManifest: (value: unknown) => value is Manifest;
|
|
10
|
-
export 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: Schema;
|
|
18
|
-
}
|
|
19
|
-
export interface NodeManifest extends ModuleManifest {
|
|
20
|
-
modules?: {
|
|
21
|
-
private?: (ModuleManifest | ModuleAlias)[];
|
|
22
|
-
public?: (ModuleManifest | ModuleAlias)[];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface ModuleManifest extends Manifest {
|
|
26
|
-
config: ConfigManifest;
|
|
27
|
-
lazyStart?: boolean;
|
|
28
|
-
status?: {
|
|
29
|
-
address: Address;
|
|
30
|
-
children?: Record<Address, string | null>;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface PackageManifest extends Manifest {
|
|
34
|
-
modules?: Record<ModuleAlias, ModuleManifest>;
|
|
35
|
-
nodes: NodeManifest[];
|
|
36
|
-
}
|
|
37
5
|
//# sourceMappingURL=Manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/Manifest.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,eAAe,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,EACX,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAGhD,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,QAEpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Manifest.zod.d.ts","sourceRoot":"","sources":["../../src/Manifest.zod.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
import type { Brand } from '@xylabs/sdk-js';
|
|
2
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const asBrandedZod: <TBrand, TSchema extends z.ZodType<string>>(schema: TSchema) => z.ZodType<Brand<string, TBrand>, Brand<string, TBrand>>;
|
|
5
|
+
export type ModuleAlias = Brand<string, {
|
|
6
|
+
__moduleAlias: true;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const ModuleAliasZodSchema: z.ZodType<Brand<string, {
|
|
9
|
+
__moduleAlias: true;
|
|
10
|
+
}>, Brand<string, {
|
|
11
|
+
__moduleAlias: true;
|
|
12
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
13
|
+
__moduleAlias: true;
|
|
14
|
+
}>, Brand<string, {
|
|
15
|
+
__moduleAlias: true;
|
|
16
|
+
}>>>;
|
|
17
|
+
export declare const ManifestZod: z.ZodObject<{
|
|
18
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const ConfigManifestZod: z.ZodObject<{
|
|
22
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
23
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
25
|
+
language: z.ZodOptional<z.ZodString>;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
os: z.ZodOptional<z.ZodString>;
|
|
28
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
export declare const ModuleManifestStatusZod: z.ZodObject<{
|
|
31
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
32
|
+
readonly __hex: true;
|
|
33
|
+
} & {
|
|
34
|
+
readonly __address: true;
|
|
35
|
+
}, Lowercase<string> & {
|
|
36
|
+
readonly __hex: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly __address: true;
|
|
39
|
+
}>;
|
|
40
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
41
|
+
readonly __hex: true;
|
|
42
|
+
} & {
|
|
43
|
+
readonly __address: true;
|
|
44
|
+
}, Lowercase<string> & {
|
|
45
|
+
readonly __hex: true;
|
|
46
|
+
} & {
|
|
47
|
+
readonly __address: true;
|
|
48
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const ModuleManifestZod: z.ZodObject<{
|
|
51
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
52
|
+
description: z.ZodOptional<z.ZodString>;
|
|
53
|
+
config: z.ZodObject<{
|
|
54
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
55
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
57
|
+
language: z.ZodOptional<z.ZodString>;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
os: z.ZodOptional<z.ZodString>;
|
|
60
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
65
|
+
readonly __hex: true;
|
|
66
|
+
} & {
|
|
67
|
+
readonly __address: true;
|
|
68
|
+
}, Lowercase<string> & {
|
|
69
|
+
readonly __hex: true;
|
|
70
|
+
} & {
|
|
71
|
+
readonly __address: true;
|
|
72
|
+
}>;
|
|
73
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
74
|
+
readonly __hex: true;
|
|
75
|
+
} & {
|
|
76
|
+
readonly __address: true;
|
|
77
|
+
}, Lowercase<string> & {
|
|
78
|
+
readonly __hex: true;
|
|
79
|
+
} & {
|
|
80
|
+
readonly __address: true;
|
|
81
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export declare const ModuleManifestReferenceZod: z.ZodUnion<readonly [z.ZodObject<{
|
|
85
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
87
|
+
config: z.ZodObject<{
|
|
88
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
89
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
91
|
+
language: z.ZodOptional<z.ZodString>;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
os: z.ZodOptional<z.ZodString>;
|
|
94
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
95
|
+
}, z.core.$loose>;
|
|
96
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
99
|
+
readonly __hex: true;
|
|
100
|
+
} & {
|
|
101
|
+
readonly __address: true;
|
|
102
|
+
}, Lowercase<string> & {
|
|
103
|
+
readonly __hex: true;
|
|
104
|
+
} & {
|
|
105
|
+
readonly __address: true;
|
|
106
|
+
}>;
|
|
107
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
108
|
+
readonly __hex: true;
|
|
109
|
+
} & {
|
|
110
|
+
readonly __address: true;
|
|
111
|
+
}, Lowercase<string> & {
|
|
112
|
+
readonly __hex: true;
|
|
113
|
+
} & {
|
|
114
|
+
readonly __address: true;
|
|
115
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
}, z.core.$strip>, z.ZodType<Brand<string, {
|
|
118
|
+
__moduleAlias: true;
|
|
119
|
+
}>, Brand<string, {
|
|
120
|
+
__moduleAlias: true;
|
|
121
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
122
|
+
__moduleAlias: true;
|
|
123
|
+
}>, Brand<string, {
|
|
124
|
+
__moduleAlias: true;
|
|
125
|
+
}>>>]>;
|
|
126
|
+
export declare const NodeManifestZod: z.ZodObject<{
|
|
127
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
129
|
+
config: z.ZodObject<{
|
|
130
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
131
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
133
|
+
language: z.ZodOptional<z.ZodString>;
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
os: z.ZodOptional<z.ZodString>;
|
|
136
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
137
|
+
}, z.core.$loose>;
|
|
138
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
141
|
+
readonly __hex: true;
|
|
142
|
+
} & {
|
|
143
|
+
readonly __address: true;
|
|
144
|
+
}, Lowercase<string> & {
|
|
145
|
+
readonly __hex: true;
|
|
146
|
+
} & {
|
|
147
|
+
readonly __address: true;
|
|
148
|
+
}>;
|
|
149
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
150
|
+
readonly __hex: true;
|
|
151
|
+
} & {
|
|
152
|
+
readonly __address: true;
|
|
153
|
+
}, Lowercase<string> & {
|
|
154
|
+
readonly __hex: true;
|
|
155
|
+
} & {
|
|
156
|
+
readonly __address: true;
|
|
157
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
modules: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
private: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
161
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
162
|
+
description: z.ZodOptional<z.ZodString>;
|
|
163
|
+
config: z.ZodObject<{
|
|
164
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
165
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
166
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
167
|
+
language: z.ZodOptional<z.ZodString>;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
os: z.ZodOptional<z.ZodString>;
|
|
170
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
171
|
+
}, z.core.$loose>;
|
|
172
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
175
|
+
readonly __hex: true;
|
|
176
|
+
} & {
|
|
177
|
+
readonly __address: true;
|
|
178
|
+
}, Lowercase<string> & {
|
|
179
|
+
readonly __hex: true;
|
|
180
|
+
} & {
|
|
181
|
+
readonly __address: true;
|
|
182
|
+
}>;
|
|
183
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
184
|
+
readonly __hex: true;
|
|
185
|
+
} & {
|
|
186
|
+
readonly __address: true;
|
|
187
|
+
}, Lowercase<string> & {
|
|
188
|
+
readonly __hex: true;
|
|
189
|
+
} & {
|
|
190
|
+
readonly __address: true;
|
|
191
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>, z.ZodType<Brand<string, {
|
|
194
|
+
__moduleAlias: true;
|
|
195
|
+
}>, Brand<string, {
|
|
196
|
+
__moduleAlias: true;
|
|
197
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
198
|
+
__moduleAlias: true;
|
|
199
|
+
}>, Brand<string, {
|
|
200
|
+
__moduleAlias: true;
|
|
201
|
+
}>>>]>>>;
|
|
202
|
+
public: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
203
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
204
|
+
description: z.ZodOptional<z.ZodString>;
|
|
205
|
+
config: z.ZodObject<{
|
|
206
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
207
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
209
|
+
language: z.ZodOptional<z.ZodString>;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
os: z.ZodOptional<z.ZodString>;
|
|
212
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
213
|
+
}, z.core.$loose>;
|
|
214
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
217
|
+
readonly __hex: true;
|
|
218
|
+
} & {
|
|
219
|
+
readonly __address: true;
|
|
220
|
+
}, Lowercase<string> & {
|
|
221
|
+
readonly __hex: true;
|
|
222
|
+
} & {
|
|
223
|
+
readonly __address: true;
|
|
224
|
+
}>;
|
|
225
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
226
|
+
readonly __hex: true;
|
|
227
|
+
} & {
|
|
228
|
+
readonly __address: true;
|
|
229
|
+
}, Lowercase<string> & {
|
|
230
|
+
readonly __hex: true;
|
|
231
|
+
} & {
|
|
232
|
+
readonly __address: true;
|
|
233
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
}, z.core.$strip>, z.ZodType<Brand<string, {
|
|
236
|
+
__moduleAlias: true;
|
|
237
|
+
}>, Brand<string, {
|
|
238
|
+
__moduleAlias: true;
|
|
239
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
240
|
+
__moduleAlias: true;
|
|
241
|
+
}>, Brand<string, {
|
|
242
|
+
__moduleAlias: true;
|
|
243
|
+
}>>>]>>>;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export declare const PackageManifestZod: z.ZodObject<{
|
|
247
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
248
|
+
description: z.ZodOptional<z.ZodString>;
|
|
249
|
+
modules: z.ZodOptional<z.ZodRecord<z.ZodType<Brand<string, {
|
|
250
|
+
__moduleAlias: true;
|
|
251
|
+
}>, Brand<string, {
|
|
252
|
+
__moduleAlias: true;
|
|
253
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
254
|
+
__moduleAlias: true;
|
|
255
|
+
}>, Brand<string, {
|
|
256
|
+
__moduleAlias: true;
|
|
257
|
+
}>>>, z.ZodObject<{
|
|
258
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
259
|
+
description: z.ZodOptional<z.ZodString>;
|
|
260
|
+
config: z.ZodObject<{
|
|
261
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
262
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
263
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
264
|
+
language: z.ZodOptional<z.ZodString>;
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
os: z.ZodOptional<z.ZodString>;
|
|
267
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
268
|
+
}, z.core.$loose>;
|
|
269
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
272
|
+
readonly __hex: true;
|
|
273
|
+
} & {
|
|
274
|
+
readonly __address: true;
|
|
275
|
+
}, Lowercase<string> & {
|
|
276
|
+
readonly __hex: true;
|
|
277
|
+
} & {
|
|
278
|
+
readonly __address: true;
|
|
279
|
+
}>;
|
|
280
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
281
|
+
readonly __hex: true;
|
|
282
|
+
} & {
|
|
283
|
+
readonly __address: true;
|
|
284
|
+
}, Lowercase<string> & {
|
|
285
|
+
readonly __hex: true;
|
|
286
|
+
} & {
|
|
287
|
+
readonly __address: true;
|
|
288
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
292
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
293
|
+
description: z.ZodOptional<z.ZodString>;
|
|
294
|
+
config: z.ZodObject<{
|
|
295
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
296
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
298
|
+
language: z.ZodOptional<z.ZodString>;
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
os: z.ZodOptional<z.ZodString>;
|
|
301
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
302
|
+
}, z.core.$loose>;
|
|
303
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
306
|
+
readonly __hex: true;
|
|
307
|
+
} & {
|
|
308
|
+
readonly __address: true;
|
|
309
|
+
}, Lowercase<string> & {
|
|
310
|
+
readonly __hex: true;
|
|
311
|
+
} & {
|
|
312
|
+
readonly __address: true;
|
|
313
|
+
}>;
|
|
314
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
315
|
+
readonly __hex: true;
|
|
316
|
+
} & {
|
|
317
|
+
readonly __address: true;
|
|
318
|
+
}, Lowercase<string> & {
|
|
319
|
+
readonly __hex: true;
|
|
320
|
+
} & {
|
|
321
|
+
readonly __address: true;
|
|
322
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
modules: z.ZodOptional<z.ZodObject<{
|
|
325
|
+
private: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
326
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
327
|
+
description: z.ZodOptional<z.ZodString>;
|
|
328
|
+
config: z.ZodObject<{
|
|
329
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
330
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
331
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
332
|
+
language: z.ZodOptional<z.ZodString>;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
os: z.ZodOptional<z.ZodString>;
|
|
335
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
336
|
+
}, z.core.$loose>;
|
|
337
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
340
|
+
readonly __hex: true;
|
|
341
|
+
} & {
|
|
342
|
+
readonly __address: true;
|
|
343
|
+
}, Lowercase<string> & {
|
|
344
|
+
readonly __hex: true;
|
|
345
|
+
} & {
|
|
346
|
+
readonly __address: true;
|
|
347
|
+
}>;
|
|
348
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
349
|
+
readonly __hex: true;
|
|
350
|
+
} & {
|
|
351
|
+
readonly __address: true;
|
|
352
|
+
}, Lowercase<string> & {
|
|
353
|
+
readonly __hex: true;
|
|
354
|
+
} & {
|
|
355
|
+
readonly __address: true;
|
|
356
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
357
|
+
}, z.core.$strip>>;
|
|
358
|
+
}, z.core.$strip>, z.ZodType<Brand<string, {
|
|
359
|
+
__moduleAlias: true;
|
|
360
|
+
}>, Brand<string, {
|
|
361
|
+
__moduleAlias: true;
|
|
362
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
363
|
+
__moduleAlias: true;
|
|
364
|
+
}>, Brand<string, {
|
|
365
|
+
__moduleAlias: true;
|
|
366
|
+
}>>>]>>>;
|
|
367
|
+
public: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
368
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
369
|
+
description: z.ZodOptional<z.ZodString>;
|
|
370
|
+
config: z.ZodObject<{
|
|
371
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
372
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
373
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
374
|
+
language: z.ZodOptional<z.ZodString>;
|
|
375
|
+
name: z.ZodString;
|
|
376
|
+
os: z.ZodOptional<z.ZodString>;
|
|
377
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
378
|
+
}, z.core.$loose>;
|
|
379
|
+
lazyStart: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
381
|
+
address: z.ZodCustom<Lowercase<string> & {
|
|
382
|
+
readonly __hex: true;
|
|
383
|
+
} & {
|
|
384
|
+
readonly __address: true;
|
|
385
|
+
}, Lowercase<string> & {
|
|
386
|
+
readonly __hex: true;
|
|
387
|
+
} & {
|
|
388
|
+
readonly __address: true;
|
|
389
|
+
}>;
|
|
390
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodCustom<Lowercase<string> & {
|
|
391
|
+
readonly __hex: true;
|
|
392
|
+
} & {
|
|
393
|
+
readonly __address: true;
|
|
394
|
+
}, Lowercase<string> & {
|
|
395
|
+
readonly __hex: true;
|
|
396
|
+
} & {
|
|
397
|
+
readonly __address: true;
|
|
398
|
+
}>, z.ZodNullable<z.ZodString>>>;
|
|
399
|
+
}, z.core.$strip>>;
|
|
400
|
+
}, z.core.$strip>, z.ZodType<Brand<string, {
|
|
401
|
+
__moduleAlias: true;
|
|
402
|
+
}>, Brand<string, {
|
|
403
|
+
__moduleAlias: true;
|
|
404
|
+
}>, z.core.$ZodTypeInternals<Brand<string, {
|
|
405
|
+
__moduleAlias: true;
|
|
406
|
+
}>, Brand<string, {
|
|
407
|
+
__moduleAlias: true;
|
|
408
|
+
}>>>]>>>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
export declare const AuthoredModuleManifestZod: z.ZodObject<{
|
|
413
|
+
config: z.ZodObject<{
|
|
414
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
415
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
416
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
417
|
+
language: z.ZodOptional<z.ZodString>;
|
|
418
|
+
name: z.ZodString;
|
|
419
|
+
os: z.ZodOptional<z.ZodString>;
|
|
420
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
421
|
+
}, z.core.$loose>;
|
|
422
|
+
description: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
export declare const AuthoredNodeManifestZod: z.ZodObject<{
|
|
425
|
+
config: z.ZodObject<{
|
|
426
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
427
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
429
|
+
language: z.ZodOptional<z.ZodString>;
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
os: z.ZodOptional<z.ZodString>;
|
|
432
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
433
|
+
}, z.core.$loose>;
|
|
434
|
+
description: z.ZodOptional<z.ZodString>;
|
|
435
|
+
modules: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
private: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
|
+
config: z.ZodObject<{
|
|
438
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
439
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
441
|
+
language: z.ZodOptional<z.ZodString>;
|
|
442
|
+
name: z.ZodString;
|
|
443
|
+
os: z.ZodOptional<z.ZodString>;
|
|
444
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
445
|
+
}, z.core.$loose>;
|
|
446
|
+
description: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strict>>>;
|
|
448
|
+
public: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
config: z.ZodObject<{
|
|
450
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
451
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
452
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
453
|
+
language: z.ZodOptional<z.ZodString>;
|
|
454
|
+
name: z.ZodString;
|
|
455
|
+
os: z.ZodOptional<z.ZodString>;
|
|
456
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
457
|
+
}, z.core.$loose>;
|
|
458
|
+
description: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strict>>>;
|
|
460
|
+
}, z.core.$strict>>;
|
|
461
|
+
name: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
export declare const AuthoredPackageManifestZod: z.ZodObject<{
|
|
464
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
465
|
+
description: z.ZodOptional<z.ZodString>;
|
|
466
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
467
|
+
config: z.ZodObject<{
|
|
468
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
469
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
471
|
+
language: z.ZodOptional<z.ZodString>;
|
|
472
|
+
name: z.ZodString;
|
|
473
|
+
os: z.ZodOptional<z.ZodString>;
|
|
474
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
475
|
+
}, z.core.$loose>;
|
|
476
|
+
description: z.ZodOptional<z.ZodString>;
|
|
477
|
+
modules: z.ZodOptional<z.ZodObject<{
|
|
478
|
+
private: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
479
|
+
config: z.ZodObject<{
|
|
480
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
481
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
482
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
483
|
+
language: z.ZodOptional<z.ZodString>;
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
os: z.ZodOptional<z.ZodString>;
|
|
486
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
487
|
+
}, z.core.$loose>;
|
|
488
|
+
description: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strict>>>;
|
|
490
|
+
public: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
491
|
+
config: z.ZodObject<{
|
|
492
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
493
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
495
|
+
language: z.ZodOptional<z.ZodString>;
|
|
496
|
+
name: z.ZodString;
|
|
497
|
+
os: z.ZodOptional<z.ZodString>;
|
|
498
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
499
|
+
}, z.core.$loose>;
|
|
500
|
+
description: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strict>>>;
|
|
502
|
+
}, z.core.$strict>>;
|
|
503
|
+
name: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, z.core.$strict>>;
|
|
505
|
+
schema: z.ZodLiteral<"network.xyo.manifest">;
|
|
506
|
+
}, z.core.$strict>;
|
|
507
|
+
export declare const ExternalModuleRequestZod: z.ZodObject<{
|
|
508
|
+
name: z.ZodString;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
export declare const ExternalManifestZod: z.ZodObject<{
|
|
511
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
512
|
+
name: z.ZodString;
|
|
513
|
+
}, z.core.$strict>>;
|
|
514
|
+
}, z.core.$strict>;
|
|
515
|
+
export declare const AuthoredDappPackageManifestZod: z.ZodObject<{
|
|
516
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
517
|
+
description: z.ZodOptional<z.ZodString>;
|
|
518
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
519
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
520
|
+
name: z.ZodString;
|
|
521
|
+
}, z.core.$strict>>;
|
|
522
|
+
}, z.core.$strict>>;
|
|
523
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
524
|
+
config: z.ZodObject<{
|
|
525
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
526
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
528
|
+
language: z.ZodOptional<z.ZodString>;
|
|
529
|
+
name: z.ZodString;
|
|
530
|
+
os: z.ZodOptional<z.ZodString>;
|
|
531
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
532
|
+
}, z.core.$loose>;
|
|
533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
534
|
+
modules: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
private: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
536
|
+
config: z.ZodObject<{
|
|
537
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
538
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
540
|
+
language: z.ZodOptional<z.ZodString>;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
os: z.ZodOptional<z.ZodString>;
|
|
543
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
544
|
+
}, z.core.$loose>;
|
|
545
|
+
description: z.ZodOptional<z.ZodString>;
|
|
546
|
+
}, z.core.$strict>>>;
|
|
547
|
+
public: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
548
|
+
config: z.ZodObject<{
|
|
549
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
550
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
551
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
552
|
+
language: z.ZodOptional<z.ZodString>;
|
|
553
|
+
name: z.ZodString;
|
|
554
|
+
os: z.ZodOptional<z.ZodString>;
|
|
555
|
+
schema: z.ZodCustom<Schema, Schema>;
|
|
556
|
+
}, z.core.$loose>;
|
|
557
|
+
description: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strict>>>;
|
|
559
|
+
}, z.core.$strict>>;
|
|
560
|
+
name: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, z.core.$strict>>;
|
|
562
|
+
schema: z.ZodLiteral<"network.xyo.manifest.package.dapp">;
|
|
563
|
+
}, z.core.$strict>;
|
|
564
|
+
export type Manifest = z.infer<typeof ManifestZod>;
|
|
565
|
+
export type ConfigManifest = z.infer<typeof ConfigManifestZod>;
|
|
566
|
+
export type ModuleManifest = z.infer<typeof ModuleManifestZod>;
|
|
567
|
+
export type NodeManifest = z.infer<typeof NodeManifestZod>;
|
|
568
|
+
export type PackageManifest = z.infer<typeof PackageManifestZod>;
|
|
569
|
+
export type AuthoredModuleManifest = z.infer<typeof AuthoredModuleManifestZod>;
|
|
570
|
+
export type AuthoredNodeManifest = z.infer<typeof AuthoredNodeManifestZod>;
|
|
571
|
+
export type AuthoredPackageManifest = z.infer<typeof AuthoredPackageManifestZod>;
|
|
572
|
+
export type AuthoredDappPackageManifest = z.infer<typeof AuthoredDappPackageManifestZod>;
|
|
573
|
+
//# sourceMappingURL=ManifestZod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManifestZod.d.ts","sourceRoot":"","sources":["../../src/ManifestZod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,YAAY,GAAI,MAAM,EAAE,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,QAAQ,OAAO,KACmB,CAAC,CAAC,OAAO,CAC/G,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,EACrB,KAAK,CAAC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/dist/neutral/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,7 +1,74 @@
|
|
|
1
|
+
// src/ManifestZod.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var isString = (value) => typeof value === "string";
|
|
4
|
+
var asBrandedZod = (schema) => {
|
|
5
|
+
return schema.transform((value) => value);
|
|
6
|
+
};
|
|
7
|
+
var ModuleAliasZodSchema = asBrandedZod(z.string());
|
|
8
|
+
var ManifestZod = z.object({
|
|
9
|
+
$schema: z.string().optional(),
|
|
10
|
+
description: z.string().optional()
|
|
11
|
+
});
|
|
12
|
+
var ConfigManifestZod = z.object({
|
|
13
|
+
accountPath: z.string().optional(),
|
|
14
|
+
features: z.array(z.string()).optional(),
|
|
15
|
+
labels: z.record(z.string(), z.string().optional()).optional(),
|
|
16
|
+
language: z.string().optional(),
|
|
17
|
+
name: z.string(),
|
|
18
|
+
os: z.string().optional(),
|
|
19
|
+
schema: z.custom(isString)
|
|
20
|
+
}).loose();
|
|
21
|
+
var ModuleManifestStatusZod = z.object({
|
|
22
|
+
address: z.custom(isString),
|
|
23
|
+
children: z.record(z.custom(isString), z.string().nullable()).optional()
|
|
24
|
+
});
|
|
25
|
+
var ModuleManifestZod = ManifestZod.extend({
|
|
26
|
+
config: ConfigManifestZod,
|
|
27
|
+
lazyStart: z.boolean().optional(),
|
|
28
|
+
status: ModuleManifestStatusZod.optional()
|
|
29
|
+
});
|
|
30
|
+
var ModuleManifestReferenceZod = z.union([ModuleManifestZod, ModuleAliasZodSchema]);
|
|
31
|
+
var NodeManifestZod = ModuleManifestZod.extend({
|
|
32
|
+
modules: z.object({
|
|
33
|
+
private: z.array(ModuleManifestReferenceZod).optional(),
|
|
34
|
+
public: z.array(ModuleManifestReferenceZod).optional()
|
|
35
|
+
}).optional()
|
|
36
|
+
});
|
|
37
|
+
var PackageManifestZod = ManifestZod.extend({
|
|
38
|
+
modules: z.record(ModuleAliasZodSchema, ModuleManifestZod).optional(),
|
|
39
|
+
nodes: z.array(NodeManifestZod)
|
|
40
|
+
});
|
|
41
|
+
var AuthoredModuleManifestBaseZod = z.object({
|
|
42
|
+
config: ConfigManifestZod,
|
|
43
|
+
description: z.string().optional()
|
|
44
|
+
}).strict();
|
|
45
|
+
var AuthoredModuleManifestZod = AuthoredModuleManifestBaseZod;
|
|
46
|
+
var AuthoredNodeManifestZod = AuthoredModuleManifestBaseZod.extend({
|
|
47
|
+
modules: z.object({
|
|
48
|
+
private: z.array(AuthoredModuleManifestBaseZod).optional(),
|
|
49
|
+
public: z.array(AuthoredModuleManifestBaseZod).optional()
|
|
50
|
+
}).strict().optional(),
|
|
51
|
+
name: z.string().optional()
|
|
52
|
+
}).strict();
|
|
53
|
+
var AuthoredPackageManifestZod = z.object({
|
|
54
|
+
$schema: z.string().optional(),
|
|
55
|
+
description: z.string().optional(),
|
|
56
|
+
nodes: z.array(AuthoredNodeManifestZod),
|
|
57
|
+
schema: z.literal("network.xyo.manifest")
|
|
58
|
+
}).strict();
|
|
59
|
+
var ExternalModuleRequestZod = z.object({ name: z.string() }).strict();
|
|
60
|
+
var ExternalManifestZod = z.object({ modules: z.array(ExternalModuleRequestZod) }).strict();
|
|
61
|
+
var AuthoredDappPackageManifestZod = z.object({
|
|
62
|
+
$schema: z.string().optional(),
|
|
63
|
+
description: z.string().optional(),
|
|
64
|
+
external: ExternalManifestZod.optional(),
|
|
65
|
+
nodes: z.array(AuthoredNodeManifestZod),
|
|
66
|
+
schema: z.literal("network.xyo.manifest.package.dapp")
|
|
67
|
+
}).strict();
|
|
68
|
+
|
|
1
69
|
// src/Manifest.ts
|
|
2
|
-
import { isObject } from "@xylabs/sdk-js";
|
|
3
70
|
var isManifest = (value) => {
|
|
4
|
-
return
|
|
71
|
+
return ManifestZod.safeParse(value).success;
|
|
5
72
|
};
|
|
6
73
|
|
|
7
74
|
// src/Payload.ts
|
|
@@ -12,10 +79,25 @@ var ModuleManifestPayloadSchema = asSchema("network.xyo.module.manifest", true);
|
|
|
12
79
|
var NodeManifestPayloadSchema = asSchema("network.xyo.node.manifest", true);
|
|
13
80
|
var isPackageManifestPayload = isPayloadOfSchemaType(PackageManifestPayloadSchema);
|
|
14
81
|
export {
|
|
82
|
+
AuthoredDappPackageManifestZod,
|
|
83
|
+
AuthoredModuleManifestZod,
|
|
84
|
+
AuthoredNodeManifestZod,
|
|
85
|
+
AuthoredPackageManifestZod,
|
|
86
|
+
ConfigManifestZod,
|
|
15
87
|
DappPackageManifestPayloadSchema,
|
|
88
|
+
ExternalManifestZod,
|
|
89
|
+
ExternalModuleRequestZod,
|
|
90
|
+
ManifestZod,
|
|
91
|
+
ModuleAliasZodSchema,
|
|
16
92
|
ModuleManifestPayloadSchema,
|
|
93
|
+
ModuleManifestReferenceZod,
|
|
94
|
+
ModuleManifestStatusZod,
|
|
95
|
+
ModuleManifestZod,
|
|
17
96
|
NodeManifestPayloadSchema,
|
|
97
|
+
NodeManifestZod,
|
|
18
98
|
PackageManifestPayloadSchema,
|
|
99
|
+
PackageManifestZod,
|
|
100
|
+
asBrandedZod,
|
|
19
101
|
isManifest,
|
|
20
102
|
isPackageManifestPayload
|
|
21
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Manifest.ts","../../src/Payload.ts"],"sourcesContent":["import type { Address, Brand } from '@xylabs/sdk-js'\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/ManifestZod.ts","../../src/Manifest.ts","../../src/Payload.ts"],"sourcesContent":["import type { Address, Brand } from '@xylabs/sdk-js'\nimport type { Schema } from '@xyo-network/payload-model'\nimport { z } from 'zod'\n\nconst isString = (value: unknown): value is string => typeof value === 'string'\n\nexport const asBrandedZod = <TBrand, TSchema extends z.ZodType<string>>(schema: TSchema) => {\n return schema.transform((value): Brand<string, TBrand> => value as Brand<string, TBrand>) as unknown as z.ZodType<\n Brand<string, TBrand>,\n Brand<string, TBrand>\n >\n}\n\nexport type ModuleAlias = Brand<string, { __moduleAlias: true }>\nexport const ModuleAliasZodSchema = asBrandedZod<{ __moduleAlias: true }, z.ZodString>(z.string())\n\nexport const ManifestZod = z.object({\n $schema: z.string().optional(),\n description: z.string().optional(),\n})\n\nexport const ConfigManifestZod = z.object({\n accountPath: z.string().optional(),\n features: z.array(z.string()).optional(),\n labels: z.record(z.string(), z.string().optional()).optional(),\n language: z.string().optional(),\n name: z.string(),\n os: z.string().optional(),\n schema: z.custom<Schema>(isString),\n}).loose()\n\nexport const ModuleManifestStatusZod = z.object({\n address: z.custom<Address>(isString),\n children: z.record(z.custom<Address>(isString), z.string().nullable()).optional(),\n})\n\nexport const ModuleManifestZod = ManifestZod.extend({\n config: ConfigManifestZod,\n lazyStart: z.boolean().optional(),\n status: ModuleManifestStatusZod.optional(),\n})\n\nexport const ModuleManifestReferenceZod = z.union([ModuleManifestZod, ModuleAliasZodSchema])\n\nexport const NodeManifestZod = ModuleManifestZod.extend({\n modules: z.object({\n private: z.array(ModuleManifestReferenceZod).optional(),\n public: z.array(ModuleManifestReferenceZod).optional(),\n }).optional(),\n})\n\nexport const PackageManifestZod = ManifestZod.extend({\n modules: z.record(ModuleAliasZodSchema, ModuleManifestZod).optional(),\n nodes: z.array(NodeManifestZod),\n})\n\nconst AuthoredModuleManifestBaseZod = z.object({\n config: ConfigManifestZod,\n description: z.string().optional(),\n}).strict()\n\nexport const AuthoredModuleManifestZod = AuthoredModuleManifestBaseZod\n\nexport const AuthoredNodeManifestZod = AuthoredModuleManifestBaseZod.extend({\n modules: z.object({\n private: z.array(AuthoredModuleManifestBaseZod).optional(),\n public: z.array(AuthoredModuleManifestBaseZod).optional(),\n }).strict().optional(),\n name: z.string().optional(),\n}).strict()\n\nexport const AuthoredPackageManifestZod = z.object({\n $schema: z.string().optional(),\n description: z.string().optional(),\n nodes: z.array(AuthoredNodeManifestZod),\n schema: z.literal('network.xyo.manifest'),\n}).strict()\n\nexport const ExternalModuleRequestZod = z.object({ name: z.string() }).strict()\n\nexport const ExternalManifestZod = z.object({ modules: z.array(ExternalModuleRequestZod) }).strict()\n\nexport const AuthoredDappPackageManifestZod = z.object({\n $schema: z.string().optional(),\n description: z.string().optional(),\n external: ExternalManifestZod.optional(),\n nodes: z.array(AuthoredNodeManifestZod),\n schema: z.literal('network.xyo.manifest.package.dapp'),\n}).strict()\n\nexport type Manifest = z.infer<typeof ManifestZod>\nexport type ConfigManifest = z.infer<typeof ConfigManifestZod>\nexport type ModuleManifest = z.infer<typeof ModuleManifestZod>\nexport type NodeManifest = z.infer<typeof NodeManifestZod>\nexport type PackageManifest = z.infer<typeof PackageManifestZod>\nexport type AuthoredModuleManifest = z.infer<typeof AuthoredModuleManifestZod>\nexport type AuthoredNodeManifest = z.infer<typeof AuthoredNodeManifestZod>\nexport type AuthoredPackageManifest = z.infer<typeof AuthoredPackageManifestZod>\nexport type AuthoredDappPackageManifest = z.infer<typeof AuthoredDappPackageManifestZod>\n","export type {\n AuthoredDappPackageManifest,\n AuthoredModuleManifest,\n AuthoredNodeManifest,\n AuthoredPackageManifest,\n ConfigManifest,\n Manifest,\n ModuleAlias,\n ModuleManifest,\n NodeManifest,\n PackageManifest,\n} from './ManifestZod.ts'\nexport {\n AuthoredDappPackageManifestZod,\n AuthoredModuleManifestZod,\n AuthoredNodeManifestZod,\n AuthoredPackageManifestZod,\n ConfigManifestZod,\n ExternalManifestZod,\n ExternalModuleRequestZod,\n ManifestZod,\n ModuleAliasZodSchema,\n ModuleManifestReferenceZod,\n ModuleManifestStatusZod,\n ModuleManifestZod,\n NodeManifestZod,\n PackageManifestZod,\n} from './ManifestZod.ts'\nimport type { Manifest } from './ManifestZod.ts'\nimport { ManifestZod } from './ManifestZod.ts'\n\nexport const isManifest = (value: unknown): value is Manifest => {\n return ManifestZod.safeParse(value).success\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":";AAEA,SAAS,SAAS;AAElB,IAAM,WAAW,CAAC,UAAoC,OAAO,UAAU;AAEhE,IAAM,eAAe,CAA4C,WAAoB;AAC1F,SAAO,OAAO,UAAU,CAAC,UAAiC,KAA8B;AAI1F;AAGO,IAAM,uBAAuB,aAAmD,EAAE,OAAO,CAAC;AAE1F,IAAM,cAAc,EAAE,OAAO;AAAA,EAClC,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;AA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BAA6B,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.
|
|
3
|
+
"version": "5.3.29",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,24 +36,26 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"
|
|
39
|
+
"zod": "^4.3.6",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.29"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@opentelemetry/api": "^1.9.1",
|
|
43
|
-
"@
|
|
44
|
-
"@xylabs/
|
|
45
|
-
"@xylabs/ts-scripts-
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/
|
|
48
|
-
"
|
|
44
|
+
"@xylabs/sdk-js": "^5.0.95",
|
|
45
|
+
"@xylabs/ts-scripts-common": "~7.8.4",
|
|
46
|
+
"@xylabs/ts-scripts-pnpm": "~7.8.4",
|
|
47
|
+
"@xylabs/tsconfig": "~7.8.4",
|
|
48
|
+
"@xylabs/vitest-extended": "~5.0.95",
|
|
49
|
+
"@xylabs/vitest-matchers": "~5.0.95",
|
|
49
50
|
"axios": "^1.14.0",
|
|
50
|
-
"
|
|
51
|
+
"pako": "~2.1.0",
|
|
51
52
|
"typescript": "~5.9.3",
|
|
52
|
-
"
|
|
53
|
+
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
54
|
+
"vitest": "~4.1.2",
|
|
55
|
+
"@xyo-network/manifest-test": "~5.3.29"
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
|
55
|
-
"@xylabs/sdk-js": "^5"
|
|
56
|
-
"zod": "^4"
|
|
58
|
+
"@xylabs/sdk-js": "^5"
|
|
57
59
|
},
|
|
58
60
|
"publishConfig": {
|
|
59
61
|
"access": "public"
|