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"; }>;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<"remove">;revision:ZodString; },$strict>],"operation">
Defined in: packages/craft-hub/src/software-sources.ts:31
Mutations accept source locations or preview tokens, never catalog contents from the browser.