Skip to content

craft-hub / environmentSourceCommandSchema

Variable: environmentSourceCommandSchema ​

const environmentSourceCommandSchema: ZodDiscriminatedUnion<[ZodObject<{ kind: ZodEnum<{ private: "private"; public: "public"; }>; operation: ZodLiteral<"connect">; providerId: ZodString; repository: ZodString; }, $strict>, ZodObject<{ credentials: ZodObject<{ token: ZodString; username: ZodString; }, $strict>; id: ZodUUID; operation: ZodLiteral<"authenticate">; }, $strict>, ZodObject<{ id: ZodUUID; operation: ZodLiteral<"cancel">; }, $strict>], "operation">

Defined in: packages/craft-hub/src/environment-sources.ts:19

Connection requests contain repository identities and transient authentication, never commands or target paths.

Released under the MIT License.