@milaboratories/pl-model-middle-layer 1.21.0 → 1.22.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/block_meta/block_components.cjs +19 -26
- package/dist/block_meta/block_components.cjs.map +1 -1
- package/dist/block_meta/block_components.d.ts +46 -428
- package/dist/block_meta/block_components.d.ts.map +1 -1
- package/dist/block_meta/block_components.js +19 -23
- package/dist/block_meta/block_components.js.map +1 -1
- package/dist/block_meta/block_description.cjs +5 -3
- package/dist/block_meta/block_description.cjs.map +1 -1
- package/dist/block_meta/block_description.d.ts +402 -914
- package/dist/block_meta/block_description.d.ts.map +1 -1
- package/dist/block_meta/block_description.js +5 -3
- package/dist/block_meta/block_description.js.map +1 -1
- package/dist/block_meta/block_id.d.ts +4 -4
- package/dist/block_meta/block_manifest.cjs +10 -1
- package/dist/block_meta/block_manifest.cjs.map +1 -1
- package/dist/block_meta/block_manifest.d.ts +1045 -1623
- package/dist/block_meta/block_manifest.d.ts.map +1 -1
- package/dist/block_meta/block_manifest.js +11 -2
- package/dist/block_meta/block_manifest.js.map +1 -1
- package/dist/block_meta/block_meta.cjs.map +1 -1
- package/dist/block_meta/block_meta.d.ts +164 -246
- package/dist/block_meta/block_meta.d.ts.map +1 -1
- package/dist/block_meta/block_meta.js.map +1 -1
- package/dist/block_meta/content_types.cjs +25 -77
- package/dist/block_meta/content_types.cjs.map +1 -1
- package/dist/block_meta/content_types.d.ts +71 -387
- package/dist/block_meta/content_types.d.ts.map +1 -1
- package/dist/block_meta/content_types.js +26 -64
- package/dist/block_meta/content_types.js.map +1 -1
- package/dist/block_meta/index.d.ts +3 -3
- package/dist/block_registry/block_pack_spec.d.ts +16 -16
- package/dist/block_registry/overview.d.ts +1534 -1534
- package/dist/block_registry/registry_spec.d.ts +12 -12
- package/dist/index.cjs +1 -18
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/src/block_meta/block_components.ts +67 -42
- package/src/block_meta/block_description.ts +18 -3
- package/src/block_meta/block_manifest.ts +14 -3
- package/src/block_meta/block_meta.ts +40 -6
- package/src/block_meta/content_types.ts +149 -207
|
@@ -1,91 +1,53 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/block_meta/content_types.ts
|
|
3
|
-
const
|
|
3
|
+
const absPathRegex = new RegExp(`^(/|[A-Z]:\\\\)`);
|
|
4
|
+
const contentExplicitStringSchema = z.object({
|
|
4
5
|
type: z.literal("explicit-string"),
|
|
5
|
-
content: z.string()
|
|
6
|
+
content: z.string()
|
|
6
7
|
}).strict();
|
|
7
8
|
const ContentExplicitBase64 = z.object({
|
|
8
9
|
type: z.literal("explicit-base64"),
|
|
9
|
-
mimeType: z.string().regex(/\w+\/[-+.\w]+/)
|
|
10
|
-
content: z.string().base64()
|
|
10
|
+
mimeType: z.string().regex(/\w+\/[-+.\w]+/),
|
|
11
|
+
content: z.string().base64()
|
|
12
|
+
}).strict();
|
|
13
|
+
const ContentExplicitBytes = z.object({
|
|
14
|
+
type: z.literal("explicit-bytes"),
|
|
15
|
+
mimeType: z.string().regex(/\w+\/[-+.\w]+/),
|
|
16
|
+
content: z.instanceof(Uint8Array)
|
|
11
17
|
}).strict();
|
|
12
18
|
const ContentRelative = z.object({
|
|
13
19
|
type: z.literal("relative"),
|
|
14
|
-
path: z.string()
|
|
20
|
+
path: z.string()
|
|
15
21
|
}).strict();
|
|
16
|
-
const
|
|
17
|
-
const ContentAbsoluteFile = z.object({
|
|
22
|
+
const contentAbsoluteFileSchema = z.object({
|
|
18
23
|
type: z.literal("absolute-file"),
|
|
19
|
-
file: z.string().regex(absPathRegex, "path to file must be absolute")
|
|
20
|
-
}).strict();
|
|
21
|
-
const ContentAbsoluteUrl = z.object({
|
|
22
|
-
type: z.literal("absolute-url"),
|
|
23
|
-
url: z.string().url().describe("Global URL to reach the requested file")
|
|
24
|
+
file: z.string().regex(absPathRegex, "path to file must be absolute")
|
|
24
25
|
}).strict();
|
|
25
|
-
const ContentExplicitBytes = z.object({
|
|
26
|
-
type: z.literal("explicit-bytes"),
|
|
27
|
-
mimeType: z.string().regex(/\w+\/[-+.\w]+/).describe("MIME type to interpret content"),
|
|
28
|
-
content: z.instanceof(Uint8Array).describe("Raw content")
|
|
29
|
-
}).strict();
|
|
30
|
-
const ContentAbsoluteFolder = z.object({
|
|
31
|
-
type: z.literal("absolute-folder"),
|
|
32
|
-
folder: z.string().regex(absPathRegex, "path to folder must be absolute").describe("Absolute address of the folder in local file system")
|
|
33
|
-
}).strict();
|
|
34
|
-
const ContentAny = z.discriminatedUnion("type", [
|
|
35
|
-
ContentExplicitString,
|
|
36
|
-
ContentExplicitBase64,
|
|
37
|
-
ContentRelative,
|
|
38
|
-
ContentAbsoluteFile,
|
|
39
|
-
ContentAbsoluteUrl
|
|
40
|
-
]);
|
|
41
|
-
const ContentExplicitOrRelative = z.discriminatedUnion("type", [
|
|
42
|
-
ContentExplicitString,
|
|
43
|
-
ContentExplicitBase64,
|
|
44
|
-
ContentRelative
|
|
45
|
-
]);
|
|
46
|
-
const ContentAnyLocal = z.discriminatedUnion("type", [
|
|
47
|
-
ContentExplicitString,
|
|
48
|
-
ContentExplicitBase64,
|
|
49
|
-
ContentRelative,
|
|
50
|
-
ContentAbsoluteFile
|
|
51
|
-
]);
|
|
52
|
-
const ContentAnyRemote = z.discriminatedUnion("type", [
|
|
53
|
-
ContentExplicitString,
|
|
54
|
-
ContentExplicitBase64,
|
|
55
|
-
ContentRelative,
|
|
56
|
-
ContentAbsoluteUrl
|
|
57
|
-
]);
|
|
58
|
-
const ContentAnyBinaryLocal = z.discriminatedUnion("type", [
|
|
59
|
-
ContentExplicitBase64,
|
|
60
|
-
ContentRelative,
|
|
61
|
-
ContentAbsoluteFile
|
|
62
|
-
]);
|
|
63
|
-
const ContentAnyTextLocal = z.discriminatedUnion("type", [
|
|
64
|
-
ContentExplicitString,
|
|
65
|
-
ContentRelative,
|
|
66
|
-
ContentAbsoluteFile
|
|
67
|
-
]);
|
|
68
|
-
const ContentAbsoluteBinaryRemote = z.discriminatedUnion("type", [ContentExplicitBase64, ContentAbsoluteUrl]);
|
|
69
|
-
const ContentAbsoluteBinaryLocal = z.discriminatedUnion("type", [ContentExplicitBase64, ContentAbsoluteFile]);
|
|
70
|
-
const ContentAbsoluteTextRemote = z.discriminatedUnion("type", [ContentExplicitString, ContentAbsoluteUrl]);
|
|
71
|
-
const ContentAbsoluteTextLocal = z.discriminatedUnion("type", [ContentExplicitString, ContentAbsoluteFile]);
|
|
72
26
|
const ContentRelativeBinary = z.discriminatedUnion("type", [ContentExplicitBase64, ContentRelative]);
|
|
73
|
-
const ContentRelativeText = z.discriminatedUnion("type", [
|
|
27
|
+
const ContentRelativeText = z.discriminatedUnion("type", [contentExplicitStringSchema, ContentRelative]);
|
|
74
28
|
const DescriptionContentBinary = z.union([z.string().startsWith("file:").transform((value) => ({
|
|
75
29
|
type: "relative",
|
|
76
30
|
path: value.slice(5)
|
|
77
|
-
})),
|
|
31
|
+
})), z.discriminatedUnion("type", [
|
|
32
|
+
ContentExplicitBase64,
|
|
33
|
+
ContentRelative,
|
|
34
|
+
contentAbsoluteFileSchema
|
|
35
|
+
])]);
|
|
78
36
|
const DescriptionContentText = z.union([z.string().transform((value) => {
|
|
79
37
|
if (value.startsWith("file:")) return {
|
|
80
38
|
type: "relative",
|
|
81
39
|
path: value.slice(5)
|
|
82
40
|
};
|
|
83
|
-
|
|
41
|
+
return {
|
|
84
42
|
type: "explicit-string",
|
|
85
43
|
content: value
|
|
86
44
|
};
|
|
87
|
-
}),
|
|
45
|
+
}), z.discriminatedUnion("type", [
|
|
46
|
+
contentExplicitStringSchema,
|
|
47
|
+
ContentRelative,
|
|
48
|
+
contentAbsoluteFileSchema
|
|
49
|
+
])]);
|
|
88
50
|
//#endregion
|
|
89
|
-
export {
|
|
51
|
+
export { ContentExplicitBase64, ContentExplicitBytes, ContentRelative, ContentRelativeBinary, ContentRelativeText, DescriptionContentBinary, DescriptionContentText };
|
|
90
52
|
|
|
91
53
|
//# sourceMappingURL=content_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content_types.js","names":[],"sources":["../../src/block_meta/content_types.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n//
|
|
1
|
+
{"version":3,"file":"content_types.js","names":[],"sources":["../../src/block_meta/content_types.ts"],"sourcesContent":["import { z } from \"zod\";\n\n//\n// Canonical content types. TypeScript is the source of truth. The zod\n// schemas below are boundary validators pegged to these types via\n// `satisfies`; they exist only to parse external data (`package.json`,\n// registry manifests, registry overview files).\n//\n\n/** Inlined plain string (e.g. a short text snippet or markdown body). */\nexport type ContentExplicitString = {\n type: \"explicit-string\";\n content: string;\n};\n\n/** Inlined binary blob carried as base64 (e.g. a serialized logo image). */\nexport type ContentExplicitBase64 = {\n type: \"explicit-base64\";\n /** MIME type used to interpret `content`. */\n mimeType: string;\n /** Base64-encoded binary payload. */\n content: string;\n};\n\n/** Inlined binary blob carried as raw bytes. Wire form only; not used in JSON. */\nexport type ContentExplicitBytes = {\n type: \"explicit-bytes\";\n /** MIME type used to interpret `content`. */\n mimeType: string;\n content: Uint8Array;\n};\n\n/** Reference to a file by path relative to the carrying structure. */\nexport type ContentRelative = {\n type: \"relative\";\n path: string;\n};\n\n/** Reference to a file at an absolute local path. */\nexport type ContentAbsoluteFile = {\n type: \"absolute-file\";\n file: string;\n};\n\n/**\n * Reference to a folder at an absolute local path. Used for UI bundles\n * delivered as folders; the desktop \"add block\" dialog reads such folders on\n * demand instead of pulling every UI bundle eagerly.\n */\nexport type ContentAbsoluteFolder = {\n type: \"absolute-folder\";\n folder: string;\n};\n\n/** Reference to a file by remote URL (e.g. served from the registry). */\nexport type ContentAbsoluteUrl = {\n type: \"absolute-url\";\n url: string;\n};\n\n/** Canonical union of every content carrier shape used across the platform. */\nexport type Content =\n | ContentExplicitString\n | ContentExplicitBase64\n | ContentExplicitBytes\n | ContentRelative\n | ContentAbsoluteFile\n | ContentAbsoluteFolder\n | ContentAbsoluteUrl;\n\n//\n// Slot-specific content unions. Each names a set of carriers allowed in a\n// particular stage of the pipeline (boundary input, manifest, resolved).\n//\n\n/** Inlined or relative-path content (text/binary inlined, or relative path). */\nexport type ContentExplicitOrRelative =\n | ContentExplicitString\n | ContentExplicitBase64\n | ContentRelative;\n\n/** Any locally-resolvable content (inlined, relative path, or absolute file). */\nexport type ContentAnyLocal =\n | ContentExplicitString\n | ContentExplicitBase64\n | ContentRelative\n | ContentAbsoluteFile;\n\n/** Text content available locally (inlined, relative path, or absolute file). */\nexport type ContentAnyTextLocal = ContentExplicitString | ContentRelative | ContentAbsoluteFile;\n\n/** Binary content available locally (inlined base64, relative path, or absolute file). */\nexport type ContentAnyBinaryLocal = ContentExplicitBase64 | ContentRelative | ContentAbsoluteFile;\n\n/** Binary content fully resolved (inlined base64 or absolute file). */\nexport type ContentAbsoluteBinaryLocal = ContentExplicitBase64 | ContentAbsoluteFile;\n\n/** Text content fully resolved (inlined string or absolute file). */\nexport type ContentAbsoluteTextLocal = ContentExplicitString | ContentAbsoluteFile;\n\n/** Binary content in manifest form (inlined base64 or path relative to the manifest). */\nexport type ContentRelativeBinary = ContentExplicitBase64 | ContentRelative;\n\n/** Text content in manifest form (inlined string or path relative to the manifest). */\nexport type ContentRelativeText = ContentExplicitString | ContentRelative;\n\n//\n// Zod schemas — boundary validators only. The TS types above are the source\n// of truth; each schema is pegged via `satisfies z.ZodType<T>`. Only the\n// schemas referenced by sibling boundary files (`block_meta.ts`,\n// `block_manifest.ts`) are exported.\n//\n\nconst absPathRegex = new RegExp(`^(/|[A-Z]:\\\\\\\\)`);\n\nconst contentExplicitStringSchema = z\n .object({\n type: z.literal(\"explicit-string\"),\n content: z.string(),\n })\n .strict() satisfies z.ZodType<ContentExplicitString>;\n\nexport const ContentExplicitBase64 = z\n .object({\n type: z.literal(\"explicit-base64\"),\n mimeType: z.string().regex(/\\w+\\/[-+.\\w]+/),\n content: z.string().base64(),\n })\n .strict() satisfies z.ZodType<ContentExplicitBase64>;\n\nexport const ContentExplicitBytes = z\n .object({\n type: z.literal(\"explicit-bytes\"),\n mimeType: z.string().regex(/\\w+\\/[-+.\\w]+/),\n content: z.instanceof(Uint8Array),\n })\n .strict() satisfies z.ZodType<ContentExplicitBytes>;\n\nexport const ContentRelative = z\n .object({\n type: z.literal(\"relative\"),\n path: z.string(),\n })\n .strict() satisfies z.ZodType<ContentRelative>;\n\nconst contentAbsoluteFileSchema = z\n .object({\n type: z.literal(\"absolute-file\"),\n file: z.string().regex(absPathRegex, \"path to file must be absolute\"),\n })\n .strict() satisfies z.ZodType<ContentAbsoluteFile>;\n\nexport const ContentRelativeBinary = z.discriminatedUnion(\"type\", [\n ContentExplicitBase64,\n ContentRelative,\n]) satisfies z.ZodType<ContentRelativeBinary>;\n\nexport const ContentRelativeText = z.discriminatedUnion(\"type\", [\n contentExplicitStringSchema,\n ContentRelative,\n]) satisfies z.ZodType<ContentRelativeText>;\n\n//\n// Boundary normalizing transforms — parse the loose forms authors write in\n// `package.json`. Bare strings with the `file:` prefix become a\n// `ContentRelative`; bare strings without the prefix become a\n// `ContentExplicitString` (text only).\n//\n\nexport const DescriptionContentBinary = z.union([\n z\n .string()\n .startsWith(\"file:\")\n .transform<ContentRelativeBinary>((value) => ({\n type: \"relative\",\n path: value.slice(5),\n })),\n z.discriminatedUnion(\"type\", [ContentExplicitBase64, ContentRelative, contentAbsoluteFileSchema]),\n]) satisfies z.ZodType<ContentAnyBinaryLocal, z.ZodTypeDef, any>;\n\nexport const DescriptionContentText = z.union([\n z.string().transform<ContentRelativeText>((value) => {\n if (value.startsWith(\"file:\")) return { type: \"relative\", path: value.slice(5) };\n return { type: \"explicit-string\", content: value };\n }),\n z.discriminatedUnion(\"type\", [\n contentExplicitStringSchema,\n ContentRelative,\n contentAbsoluteFileSchema,\n ]),\n]) satisfies z.ZodType<ContentAnyTextLocal, z.ZodTypeDef, any>;\n"],"mappings":";;AAiHA,MAAM,eAAe,IAAI,OAAO,kBAAkB;AAElD,MAAM,8BAA8B,EACjC,OAAO;CACN,MAAM,EAAE,QAAQ,kBAAkB;CAClC,SAAS,EAAE,QAAQ;CACpB,CAAC,CACD,QAAQ;AAEX,MAAa,wBAAwB,EAClC,OAAO;CACN,MAAM,EAAE,QAAQ,kBAAkB;CAClC,UAAU,EAAE,QAAQ,CAAC,MAAM,gBAAgB;CAC3C,SAAS,EAAE,QAAQ,CAAC,QAAQ;CAC7B,CAAC,CACD,QAAQ;AAEX,MAAa,uBAAuB,EACjC,OAAO;CACN,MAAM,EAAE,QAAQ,iBAAiB;CACjC,UAAU,EAAE,QAAQ,CAAC,MAAM,gBAAgB;CAC3C,SAAS,EAAE,WAAW,WAAW;CAClC,CAAC,CACD,QAAQ;AAEX,MAAa,kBAAkB,EAC5B,OAAO;CACN,MAAM,EAAE,QAAQ,WAAW;CAC3B,MAAM,EAAE,QAAQ;CACjB,CAAC,CACD,QAAQ;AAEX,MAAM,4BAA4B,EAC/B,OAAO;CACN,MAAM,EAAE,QAAQ,gBAAgB;CAChC,MAAM,EAAE,QAAQ,CAAC,MAAM,cAAc,gCAAgC;CACtE,CAAC,CACD,QAAQ;AAEX,MAAa,wBAAwB,EAAE,mBAAmB,QAAQ,CAChE,uBACA,gBACD,CAAC;AAEF,MAAa,sBAAsB,EAAE,mBAAmB,QAAQ,CAC9D,6BACA,gBACD,CAAC;AASF,MAAa,2BAA2B,EAAE,MAAM,CAC9C,EACG,QAAQ,CACR,WAAW,QAAQ,CACnB,WAAkC,WAAW;CAC5C,MAAM;CACN,MAAM,MAAM,MAAM,EAAE;CACrB,EAAE,EACL,EAAE,mBAAmB,QAAQ;CAAC;CAAuB;CAAiB;CAA0B,CAAC,CAClG,CAAC;AAEF,MAAa,yBAAyB,EAAE,MAAM,CAC5C,EAAE,QAAQ,CAAC,WAAgC,UAAU;AACnD,KAAI,MAAM,WAAW,QAAQ,CAAE,QAAO;EAAE,MAAM;EAAY,MAAM,MAAM,MAAM,EAAE;EAAE;AAChF,QAAO;EAAE,MAAM;EAAmB,SAAS;EAAO;EAClD,EACF,EAAE,mBAAmB,QAAQ;CAC3B;CACA;CACA;CACD,CAAC,CACH,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ContentType, ContextType } from "./common.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Content, ContentAbsoluteBinaryLocal, ContentAbsoluteFile, ContentAbsoluteFolder, ContentAbsoluteTextLocal, ContentAbsoluteUrl, ContentAnyBinaryLocal, ContentAnyLocal, ContentAnyTextLocal, ContentExplicitBase64, ContentExplicitBytes, ContentExplicitOrRelative, ContentExplicitString, ContentRelative, ContentRelativeBinary, ContentRelativeText, DescriptionContentBinary, DescriptionContentText } from "./content_types.js";
|
|
3
3
|
import { SemVer } from "./semver.js";
|
|
4
4
|
import { addPrefixToRelative, mapRemoteToAbsolute } from "./content_conversion.js";
|
|
5
5
|
import { BlockPackId, BlockPackIdNoVersion, blockPackIdEquals, blockPackIdNoVersionEquals, blockPackIdNoVersionToString, blockPackIdToString } from "./block_id.js";
|
|
6
|
-
import { BlockComponents,
|
|
6
|
+
import { BlockComponents, BlockComponentsDescriptionRaw, Workflow, WorkflowSchemaV1, WorkflowV1 } from "./block_components.js";
|
|
7
7
|
import { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform } from "./block_meta.js";
|
|
8
|
-
import { BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
8
|
+
import { BlockPackDescription, BlockPackDescriptionFromPackageJsonRaw, BlockPackDescriptionRaw, CreateBlockPackDescriptionSchema, FeatureFlags, overrideDescriptionVersion } from "./block_description.js";
|
|
9
9
|
import { BlockComponentsManifest, BlockPackDescriptionManifest, BlockPackManifest, BlockPackManifestFile, BlockPackMetaManifest, ManifestFileInfo, Sha256Schema, overrideManifestVersion } from "./block_manifest.js";
|
|
@@ -46,27 +46,27 @@ declare const BlockPackFromRegistryV1: z.ZodObject<{
|
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
version: z.ZodString;
|
|
48
48
|
}, "strict", z.ZodTypeAny, {
|
|
49
|
-
name: string;
|
|
50
49
|
organization: string;
|
|
50
|
+
name: string;
|
|
51
51
|
version: string;
|
|
52
52
|
}, {
|
|
53
|
-
name: string;
|
|
54
53
|
organization: string;
|
|
54
|
+
name: string;
|
|
55
55
|
version: string;
|
|
56
56
|
}>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
type: "from-registry-v1";
|
|
59
59
|
id: {
|
|
60
|
-
name: string;
|
|
61
60
|
organization: string;
|
|
61
|
+
name: string;
|
|
62
62
|
version: string;
|
|
63
63
|
};
|
|
64
64
|
registryUrl: string;
|
|
65
65
|
}, {
|
|
66
66
|
type: "from-registry-v1";
|
|
67
67
|
id: {
|
|
68
|
-
name: string;
|
|
69
68
|
organization: string;
|
|
69
|
+
name: string;
|
|
70
70
|
version: string;
|
|
71
71
|
};
|
|
72
72
|
registryUrl: string;
|
|
@@ -83,20 +83,20 @@ declare const BlockPackFromRegistryV2: z.ZodObject<{
|
|
|
83
83
|
name: z.ZodString;
|
|
84
84
|
version: z.ZodString;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
name: string;
|
|
87
86
|
organization: string;
|
|
87
|
+
name: string;
|
|
88
88
|
version: string;
|
|
89
89
|
}, {
|
|
90
|
-
name: string;
|
|
91
90
|
organization: string;
|
|
91
|
+
name: string;
|
|
92
92
|
version: string;
|
|
93
93
|
}>;
|
|
94
94
|
channel: z.ZodOptional<z.ZodString>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
type: "from-registry-v2";
|
|
97
97
|
id: {
|
|
98
|
-
name: string;
|
|
99
98
|
organization: string;
|
|
99
|
+
name: string;
|
|
100
100
|
version: string;
|
|
101
101
|
};
|
|
102
102
|
registryUrl: string;
|
|
@@ -104,8 +104,8 @@ declare const BlockPackFromRegistryV2: z.ZodObject<{
|
|
|
104
104
|
}, {
|
|
105
105
|
type: "from-registry-v2";
|
|
106
106
|
id: {
|
|
107
|
-
name: string;
|
|
108
107
|
organization: string;
|
|
108
|
+
name: string;
|
|
109
109
|
version: string;
|
|
110
110
|
};
|
|
111
111
|
registryUrl: string;
|
|
@@ -145,27 +145,27 @@ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
145
145
|
name: z.ZodString;
|
|
146
146
|
version: z.ZodString;
|
|
147
147
|
}, "strict", z.ZodTypeAny, {
|
|
148
|
-
name: string;
|
|
149
148
|
organization: string;
|
|
149
|
+
name: string;
|
|
150
150
|
version: string;
|
|
151
151
|
}, {
|
|
152
|
-
name: string;
|
|
153
152
|
organization: string;
|
|
153
|
+
name: string;
|
|
154
154
|
version: string;
|
|
155
155
|
}>;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
type: "from-registry-v1";
|
|
158
158
|
id: {
|
|
159
|
-
name: string;
|
|
160
159
|
organization: string;
|
|
160
|
+
name: string;
|
|
161
161
|
version: string;
|
|
162
162
|
};
|
|
163
163
|
registryUrl: string;
|
|
164
164
|
}, {
|
|
165
165
|
type: "from-registry-v1";
|
|
166
166
|
id: {
|
|
167
|
-
name: string;
|
|
168
167
|
organization: string;
|
|
168
|
+
name: string;
|
|
169
169
|
version: string;
|
|
170
170
|
};
|
|
171
171
|
registryUrl: string;
|
|
@@ -177,20 +177,20 @@ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
177
177
|
name: z.ZodString;
|
|
178
178
|
version: z.ZodString;
|
|
179
179
|
}, "strict", z.ZodTypeAny, {
|
|
180
|
-
name: string;
|
|
181
180
|
organization: string;
|
|
181
|
+
name: string;
|
|
182
182
|
version: string;
|
|
183
183
|
}, {
|
|
184
|
-
name: string;
|
|
185
184
|
organization: string;
|
|
185
|
+
name: string;
|
|
186
186
|
version: string;
|
|
187
187
|
}>;
|
|
188
188
|
channel: z.ZodOptional<z.ZodString>;
|
|
189
189
|
}, "strip", z.ZodTypeAny, {
|
|
190
190
|
type: "from-registry-v2";
|
|
191
191
|
id: {
|
|
192
|
-
name: string;
|
|
193
192
|
organization: string;
|
|
193
|
+
name: string;
|
|
194
194
|
version: string;
|
|
195
195
|
};
|
|
196
196
|
registryUrl: string;
|
|
@@ -198,8 +198,8 @@ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
198
198
|
}, {
|
|
199
199
|
type: "from-registry-v2";
|
|
200
200
|
id: {
|
|
201
|
-
name: string;
|
|
202
201
|
organization: string;
|
|
202
|
+
name: string;
|
|
203
203
|
version: string;
|
|
204
204
|
};
|
|
205
205
|
registryUrl: string;
|