Skip to content

craft-hub / softwareSourceCommandSchema

Variable: softwareSourceCommandSchema ​

const softwareSourceCommandSchema: 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.

Released under the MIT License.