Skip to content

craft-hub / softwareInstallationRunSchema

Variable: softwareInstallationRunSchema ​

const softwareInstallationRunSchema: ZodObject<{ createdAt: ZodISODateTime; id: ZodString; items: ZodArray<ZodObject<{ log: ZodString; message: ZodOptional<ZodString>; progress: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{ phase: ZodLiteral<...>; }, $strict>, ZodObject<{ percent: ZodOptional<...>; phase: ZodLiteral<...>; resource: ZodOptional<...>; }, $strict>, ZodObject<{ phase: ZodLiteral<...>; }, $strict>], "phase">>; softwareId: ZodString; state: ZodEnum<{ cancelled: "cancelled"; failed: "failed"; installed: "installed"; interrupted: "interrupted"; manual: "manual"; queued: "queued"; running: "running"; skipped: "skipped"; }>; title: ZodObject<{ en: ZodString; zh: ZodOptional<ZodString>; }, $strict>; }, $strict>>; planId: ZodString; retryOf: ZodOptional<ZodString>; sourceId: ZodString; state: ZodEnum<{ cancelled: "cancelled"; cancelling: "cancelling"; completed: "completed"; failed: "failed"; interrupted: "interrupted"; queued: "queued"; running: "running"; waiting: "waiting"; }>; updatedAt: ZodISODateTime; version: ZodLiteral<1>; }, $strict>

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

Bounded adapter-owned progress; log text is rendered as text, never executed.

Released under the MIT License.