Skip to content

craft-hub / softwareCatalogManifestSchema

Variable: softwareCatalogManifestSchema ​

const softwareCatalogManifestSchema: ZodObject<{ items: ZodArray<ZodObject<{ description: ZodOptional<ZodString>; downloadUrl: ZodOptional<ZodPipe<ZodString, ZodString>>; group: ZodObject<{ id: ZodString; title: ZodObject<{ en: ZodString; zh: ZodOptional<ZodString>; }, $strict>; }, $strict>; iconScale: ZodOptional<ZodNumber>; iconStyle: ZodOptional<ZodEnum<{ original: "original"; rounded: "rounded"; }>>; iconUrl: ZodOptional<ZodPipe<ZodString, ZodString>>; id: ZodString; installation: ZodObject<{ kind: ZodEnum<{ brew-cask: "brew-cask"; brew-formula: "brew-formula"; download: "download"; manual: "manual"; }>; packageId: ZodOptional<ZodString>; }, $strict>; macosIconUrl: ZodOptional<ZodPipe<ZodString, ZodString>>; platforms: ZodOptional<ZodArray<ZodEnum<{ linux: "linux"; macos: "macos"; windows: "windows"; }>>>; repositoryUrl: ZodOptional<ZodPipe<ZodString, ZodString>>; title: ZodObject<{ en: ZodString; zh: ZodOptional<ZodString>; }, $strict>; url: ZodPipe<ZodString, ZodString>; }, $strict>>; revision: ZodString; source: ZodObject<{ id: ZodString; title: ZodString; url: ZodOptional<ZodPipe<ZodString, ZodString>>; }, $strict>; version: ZodLiteral<1>; }, $strict>

Defined in: packages/craft-hub/src/software-catalog.ts:47

Versioned parsed cache; revision is the SHA-256 of its ordered version/source/items JSON.

Released under the MIT License.