@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.
Files changed (42) hide show
  1. package/dist/block_meta/block_components.cjs +19 -26
  2. package/dist/block_meta/block_components.cjs.map +1 -1
  3. package/dist/block_meta/block_components.d.ts +46 -428
  4. package/dist/block_meta/block_components.d.ts.map +1 -1
  5. package/dist/block_meta/block_components.js +19 -23
  6. package/dist/block_meta/block_components.js.map +1 -1
  7. package/dist/block_meta/block_description.cjs +5 -3
  8. package/dist/block_meta/block_description.cjs.map +1 -1
  9. package/dist/block_meta/block_description.d.ts +402 -914
  10. package/dist/block_meta/block_description.d.ts.map +1 -1
  11. package/dist/block_meta/block_description.js +5 -3
  12. package/dist/block_meta/block_description.js.map +1 -1
  13. package/dist/block_meta/block_id.d.ts +4 -4
  14. package/dist/block_meta/block_manifest.cjs +10 -1
  15. package/dist/block_meta/block_manifest.cjs.map +1 -1
  16. package/dist/block_meta/block_manifest.d.ts +1045 -1623
  17. package/dist/block_meta/block_manifest.d.ts.map +1 -1
  18. package/dist/block_meta/block_manifest.js +11 -2
  19. package/dist/block_meta/block_manifest.js.map +1 -1
  20. package/dist/block_meta/block_meta.cjs.map +1 -1
  21. package/dist/block_meta/block_meta.d.ts +164 -246
  22. package/dist/block_meta/block_meta.d.ts.map +1 -1
  23. package/dist/block_meta/block_meta.js.map +1 -1
  24. package/dist/block_meta/content_types.cjs +25 -77
  25. package/dist/block_meta/content_types.cjs.map +1 -1
  26. package/dist/block_meta/content_types.d.ts +71 -387
  27. package/dist/block_meta/content_types.d.ts.map +1 -1
  28. package/dist/block_meta/content_types.js +26 -64
  29. package/dist/block_meta/content_types.js.map +1 -1
  30. package/dist/block_meta/index.d.ts +3 -3
  31. package/dist/block_registry/block_pack_spec.d.ts +16 -16
  32. package/dist/block_registry/overview.d.ts +1534 -1534
  33. package/dist/block_registry/registry_spec.d.ts +12 -12
  34. package/dist/index.cjs +1 -18
  35. package/dist/index.d.ts +4 -4
  36. package/dist/index.js +3 -3
  37. package/package.json +2 -2
  38. package/src/block_meta/block_components.ts +67 -42
  39. package/src/block_meta/block_description.ts +18 -3
  40. package/src/block_meta/block_manifest.ts +14 -3
  41. package/src/block_meta/block_meta.ts +40 -6
  42. package/src/block_meta/content_types.ts +149 -207
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.d.ts","names":[],"sources":["../../src/block_meta/block_manifest.ts"],"mappings":";;;;;cAQa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACxB,uBAAA,GAA0B,CAAA,CAAE,KAAA,QAAa,uBAAA;AAAA,cAExC,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACtB,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,qBAAA;;cAGtC,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQlB,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,cAElC,qBAAA;AAAA,iBAEG,uBAAA;EAAoC,WAAA;IAAe,EAAA,EAAI,WAAA;EAAA;AAAA,EAAA,CACrE,QAAA,EAAU,CAAA,EACV,UAAA,WACC,CAAA"}
@@ -1,11 +1,20 @@
1
1
  import { ContentRelative, ContentRelativeBinary, ContentRelativeText } from "./content_types.js";
2
- import { BlockComponents } from "./block_components.js";
2
+ import { WorkflowSchemaV1 } from "./block_components.js";
3
3
  import { BlockPackMeta } from "./block_meta.js";
4
4
  import { CreateBlockPackDescriptionSchema } from "./block_description.js";
5
5
  import { z } from "zod";
6
6
  import { toMerged } from "es-toolkit";
7
7
  //#region src/block_meta/block_manifest.ts
8
- const BlockComponentsManifest = BlockComponents(ContentRelative, ContentRelative);
8
+ /**
9
+ * Block-components shape stored in a manifest. The consolidator always writes
10
+ * the wrapped `{type: "workflow-v1", main: ...}` form, so the manifest schema
11
+ * accepts the wrapped form only.
12
+ */
13
+ const BlockComponentsManifest = z.object({
14
+ workflow: WorkflowSchemaV1(ContentRelative),
15
+ model: ContentRelative,
16
+ ui: ContentRelative
17
+ });
9
18
  const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);
10
19
  /** Block description to be used in block manifest */
11
20
  const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(BlockComponentsManifest, BlockPackMetaManifest);
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.js","names":[],"sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { BlockComponents } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport const BlockComponentsManifest = BlockComponents(ContentRelative, ContentRelative);\nexport type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;AAQA,MAAa,0BAA0B,gBAAgB,iBAAiB,gBAAgB;AAGxF,MAAa,wBAAwB,cAAc,qBAAqB,sBAAsB;;AAI9F,MAAa,+BAA+B,iCAC1C,yBACA,sBACD;AAGD,MAAa,eAAe,EACzB,QAAQ,CACR,MAAM,cAAc,CACpB,aAAa,CACb,OAAO,GAAG;AAEb,MAAa,mBAAmB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ;CAChB,MAAM,EAAE,QAAQ,CAAC,KAAK;CACtB,QAAQ;CACT,CAAC;AAGF,MAAa,oBAAoB,EAC9B,OAAO;CACN,QAAQ,EAAE,QAAQ,KAAK;CACvB,aAAa;CACb,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,OAAO,EAAE,MAAM,iBAAiB;CACjC,CAAC,CACD,aAAa;AAGhB,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;AACH,QAAO,SAAS,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,EAAE,CAAC"}
1
+ {"version":3,"file":"block_manifest.js","names":[],"sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { BlockComponents } from \"./block_components\";\nimport { WorkflowSchemaV1 } from \"./block_components\";\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from \"./content_types\";\nimport { CreateBlockPackDescriptionSchema } from \"./block_description\";\nimport { BlockPackMeta } from \"./block_meta\";\nimport { toMerged } from \"es-toolkit\";\nimport type { BlockPackId } from \"./block_id\";\n\nexport type BlockComponentsManifest = BlockComponents<ContentRelative, ContentRelative>;\n\n/**\n * Block-components shape stored in a manifest. The consolidator always writes\n * the wrapped `{type: \"workflow-v1\", main: ...}` form, so the manifest schema\n * accepts the wrapped form only.\n */\nexport const BlockComponentsManifest = z.object({\n workflow: WorkflowSchemaV1(ContentRelative),\n model: ContentRelative,\n ui: ContentRelative,\n}) satisfies z.ZodType<BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest,\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema,\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z\n .object({\n schema: z.literal(\"v2\"),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo),\n })\n .passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = \"manifest.json\";\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string,\n): T {\n return toMerged(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,iBAAiB,gBAAgB;CAC3C,OAAO;CACP,IAAI;CACL,CAAC;AAEF,MAAa,wBAAwB,cAAc,qBAAqB,sBAAsB;;AAI9F,MAAa,+BAA+B,iCAC1C,yBACA,sBACD;AAGD,MAAa,eAAe,EACzB,QAAQ,CACR,MAAM,cAAc,CACpB,aAAa,CACb,OAAO,GAAG;AAEb,MAAa,mBAAmB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ;CAChB,MAAM,EAAE,QAAQ,CAAC,KAAK;CACtB,QAAQ;CACT,CAAC;AAGF,MAAa,oBAAoB,EAC9B,OAAO;CACN,QAAQ,EAAE,QAAQ,KAAK;CACvB,aAAa;CACb,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,OAAO,EAAE,MAAM,iBAAiB;CACjC,CAAC,CACD,aAAa;AAGhB,MAAa,wBAAwB;AAErC,SAAgB,wBACd,UACA,YACG;AACH,QAAO,SAAS,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.cjs","names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` preserves unknown sibling keys through `parse`/round-trip.\n // Without it, a block-tools version that predates a newly-added meta field\n // would strip that field on every registry-mutating command (mark-stable,\n // refresh-registry, restore-overview-from-snapshot) — silently undoing\n // publishes. Combined with the `require-latest @platforma-sdk/block-tools`\n // CI gate, this future-proofs the schema for all subsequent field additions.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbedded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F,MAAa,6BAA6B,cAAcH,IAAAA,EAAE,QAAQ,EAAEI,sBAAAA,qBAAqB"}
1
+ {"version":3,"file":"block_meta.cjs","names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from \"./content_types\";\n\nexport const BlockPlatform = z.enum([\n \"windows-x64\",\n \"windows-aarch64\",\n \"macosx-x64\",\n \"macosx-aarch64\",\n \"linux-x64\",\n \"linux-aarch64\",\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\n/**\n * Static metadata a block author ships: title, descriptions, logos, social\n * links, and capability requirements. Parameterized by the carriers used for\n * long-string fields (`LongString`) and binary fields (`Binary`); the same\n * shape carries `package.json` form (loose strings), manifest form (relative\n * paths), and embedded form (inlined base64 or bytes).\n *\n * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and\n * `organization`) use `.passthrough()` so that unknown sibling fields survive\n * parse/round-trip verbatim. A registry mutator that predates a new meta\n * field must not silently strip it (otherwise mark-stable / refresh-overview\n * / restore-overview would quietly undo publishes). Code consuming these\n * objects sees only the known fields listed below; the schemas guard the\n * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools`\n * CI gate, this future-proofs every subsequent field addition.\n */\nexport type BlockPackMeta<LongString, Binary> = {\n title: string;\n description: string;\n longDescription?: LongString;\n changelog?: LongString;\n logo?: Binary;\n url?: string;\n docs?: string;\n support?: string;\n tags?: string[];\n organization: {\n name: string;\n url: string;\n logo?: Binary;\n };\n marketplaceRanking?: number;\n deprecated?: boolean;\n termsOfServiceUrl?: string;\n supportedPlatforms?: BlockPlatform[];\n requiredCapabilities?: string[];\n};\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z\n .object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z\n .object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n })\n .passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n /**\n * Runtime capabilities the block needs from the backend (e.g.\n * \"wasm:v1\"). Desktop refuses to install if any listed token is\n * missing from the backend's `serverInfo.capabilities`.\n *\n * Tokens follow the backend's `<feature>:<version>` format defined in\n * `core/pl/platform/api/plapiserver/server_capabilities.go`. The\n * schema itself accepts loose strings (not an enum) so future\n * capabilities don't break Desktops that ship before each token is\n * added — the same forward-compat property `BlockPackMeta` itself\n * enjoys at the field level, applied recursively at the token level.\n */\n requiredCapabilities: z.array(z.string()).optional(),\n })\n .passthrough();\n // `.passthrough()` is intentional — see forward-compat note on\n // `BlockPackMeta` type above.\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(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