import { ContentRelativeBinary, ContentRelativeText } from "./content_types.js"; import { z } from "zod"; //#region src/block_meta/block_meta.d.ts declare const BlockPlatform: z.ZodEnum<["windows-x64", "windows-aarch64", "macosx-x64", "macosx-aarch64", "linux-x64", "linux-aarch64"]>; type BlockPlatform = z.infer; /** * Static metadata a block author ships: title, descriptions, logos, social * links, and capability requirements. Parameterized by the carriers used for * long-string fields (`LongString`) and binary fields (`Binary`); the same * shape carries `package.json` form (loose strings), manifest form (relative * paths), and embedded form (inlined base64 or bytes). * * Forward-compatibility: the boundary zod schemas (`BlockPackMeta(...)` and * `organization`) use `.passthrough()` so that unknown sibling fields survive * parse/round-trip verbatim. A registry mutator that predates a new meta * field must not silently strip it (otherwise mark-stable / refresh-overview * / restore-overview would quietly undo publishes). Code consuming these * objects sees only the known fields listed below; the schemas guard the * round-trip behavior. Combined with the `require-latest @platforma-sdk/block-tools` * CI gate, this future-proofs every subsequent field addition. */ type BlockPackMeta = { title: string; description: string; longDescription?: LongString; changelog?: LongString; logo?: Binary; url?: string; docs?: string; support?: string; tags?: string[]; organization: { name: string; url: string; logo?: Binary; }; marketplaceRanking?: number; deprecated?: boolean; termsOfServiceUrl?: string; supportedPlatforms?: BlockPlatform[]; requiredCapabilities?: string[]; }; declare function BlockPackMeta(longString: LongStringType, binary: BinaryType): z.ZodObject<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; declare const BlockPackMetaDescriptionRaw: z.ZodObject<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; changelog: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; changelog: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; changelog: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-string">; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-string"; content: string; }, { type: "explicit-string"; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"explicit-base64">; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>, z.ZodObject<{ type: z.ZodLiteral<"relative">; path: z.ZodString; }, "strict", z.ZodTypeAny, { type: "relative"; path: string; }, { type: "relative"; path: string; }>, z.ZodObject<{ type: z.ZodLiteral<"absolute-file">; file: z.ZodString; }, "strict", z.ZodTypeAny, { type: "absolute-file"; file: string; }, { type: "absolute-file"; file: string; }>]>]>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; type BlockPackMetaDescriptionRaw = z.infer; declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodString; }, "strict", z.ZodTypeAny, { type: "explicit-base64"; mimeType: string; content: string; }, { type: "explicit-base64"; mimeType: string; content: string; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; type BlockPackMetaEmbeddedBase64 = z.infer; declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ title: z.ZodString; description: z.ZodString; longDescription: z.ZodOptional; changelog: z.ZodOptional; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; url: z.ZodOptional; docs: z.ZodOptional; support: z.ZodOptional>; tags: z.ZodOptional>; organization: z.ZodObject<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ name: z.ZodString; url: z.ZodString; logo: z.ZodOptional; mimeType: z.ZodString; content: z.ZodType, z.ZodTypeDef, Uint8Array>; }, "strict", z.ZodTypeAny, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }, { type: "explicit-bytes"; mimeType: string; content: Uint8Array; }>>; }, z.ZodTypeAny, "passthrough">>; /** * The order of blocks on the "marketplace" (higher values push block higher to the top of the list). * `undefined` value or absent field is treated exactly the same as number `0`. */ marketplaceRanking: z.ZodOptional; /** * If true, the block is deprecated and should not be used. */ deprecated: z.ZodOptional; /** * 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. */ termsOfServiceUrl: z.ZodOptional; /** * Supported operating systems. * If not provided, the block is supported on all operating systems. */ supportedPlatforms: z.ZodOptional, "many">>; /** * Runtime capabilities the block needs from the backend (e.g. * "wasm:v1"). Desktop refuses to install if any listed token is * missing from the backend's `serverInfo.capabilities`. * * Tokens follow the backend's `:` format defined in * `core/pl/platform/api/plapiserver/server_capabilities.go`. The * schema itself accepts loose strings (not an enum) so future * capabilities don't break Desktops that ship before each token is * added — the same forward-compat property `BlockPackMeta` itself * enjoys at the field level, applied recursively at the token level. */ requiredCapabilities: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>; type BlockPackMetaEmbeddedBytes = z.infer; //#endregion export { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform }; //# sourceMappingURL=block_meta.d.ts.map