Skip to content

craft-hub / softwareCatalogItemSchema

Variable: softwareCatalogItemSchema ​

const softwareCatalogItemSchema: ZodObject<{ canInstall: ZodOptional<ZodBoolean>; canOpen: ZodOptional<ZodBoolean>; 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>>; status: ZodEnum<{ detected: "detected"; not-detected: "not-detected"; unknown: "unknown"; }>; title: ZodObject<{ en: ZodString; zh: ZodOptional<ZodString>; }, $strict>; url: ZodPipe<ZodString, ZodString>; }, $strict>

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

Display metadata combined with fresh local observations from a trusted adapter.

Released under the MIT License.