mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
refactor: trim hook install schema exports
This commit is contained in:
@@ -68,7 +68,7 @@ export const HookMappingSchema = z
|
||||
.strict()
|
||||
.optional();
|
||||
|
||||
export const InternalHookHandlerSchema = z
|
||||
const InternalHookHandlerSchema = z
|
||||
.object({
|
||||
event: z.string(),
|
||||
module: SafeRelativeModulePathSchema,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const InstallSourceSchema = z.union([
|
||||
const InstallSourceSchema = z.union([
|
||||
z.literal("npm"),
|
||||
z.literal("archive"),
|
||||
z.literal("path"),
|
||||
@@ -8,7 +8,7 @@ export const InstallSourceSchema = z.union([
|
||||
z.literal("git"),
|
||||
]);
|
||||
|
||||
export const PluginInstallSourceSchema = z.union([InstallSourceSchema, z.literal("marketplace")]);
|
||||
const PluginInstallSourceSchema = z.union([InstallSourceSchema, z.literal("marketplace")]);
|
||||
|
||||
export const InstallRecordShape = {
|
||||
source: InstallSourceSchema,
|
||||
|
||||
Reference in New Issue
Block a user