English
craft-hub / softwareSourceCommandSchema
Variable: softwareSourceCommandSchema
constsoftwareSourceCommandSchema:ZodDiscriminatedUnion<[ZodObject<{input:ZodObject<{branch:ZodDefault<ZodString>;catalogPath:ZodDefault<ZodString>;id:ZodOptional<ZodString>;localPath:ZodOptional<ZodString>;mode:ZodEnum<{local:"local";remote:"remote"; }>;refreshPolicy:ZodOptional<ZodDiscriminatedUnion<[ZodObject<{mode: ...; },$strict>,ZodObject<{intervalMinutes: ...;mode: ...; },$strict>,ZodObject<{mode: ...;time: ...;timeZone: ...; },$strict>],"mode">>;repository:ZodOptional<ZodString>; },$strict>;operation:ZodLiteral<"preview">; },$strict>,ZodObject<{operation:ZodLiteral<"apply">;previewId:ZodUUID; },$strict>,ZodObject<{id:ZodString;operation:ZodLiteral<"refresh">; },$strict>,ZodObject<{id:ZodString;operation:ZodLiteral<"configure-refresh">;refreshPolicy:ZodDiscriminatedUnion<[ZodObject<{mode:ZodLiteral<"manual">; },$strict>,ZodObject<{intervalMinutes:ZodNumber;mode:ZodLiteral<"interval">; },$strict>,ZodObject<{mode:ZodLiteral<"daily">;time:ZodString;timeZone:ZodString; },$strict>],"mode">;revision:ZodString; },$strict>,ZodObject<{id:ZodString;operation:ZodLiteral<"remove">;revision:ZodString; },$strict>],"operation">
Defined in: packages/craft-hub/src/software-sources.ts:37
Mutations accept source locations or preview tokens, never catalog contents from the browser.