Skip to main content

Variable: CustomRuleCreateRequestSchema

const CustomRuleCreateRequestSchema: ZodObject<{
name: ZodString;
description: ZodOptional<ZodString>;
compatible_sources: ZodArray<ZodEnum<["LOCAL", "HUGGING_FACE", "S3", "GCS", "AZURE", "ARTIFACTORY", "GITLAB", "ALL"]>, "many">;
condition: ZodType<CustomRuleCondition, ZodTypeDef, CustomRuleCondition>;
violation_message: ZodString;
remediation_message: ZodOptional<ZodNullable<ZodString>>;
rule_action: ZodOptional<ZodEnum<["FAIL", "PASS"]>>;
}, "strict", ZodTypeAny, {
name: string;
description?: string;
compatible_sources: (
| "HUGGING_FACE"
| "LOCAL"
| "S3"
| "GCS"
| "AZURE"
| "ARTIFACTORY"
| "GITLAB"
| "ALL")[];
condition: CustomRuleCondition;
violation_message: string;
remediation_message?: string | null;
rule_action?: "FAIL" | "PASS";
}, {
name: string;
description?: string;
compatible_sources: (
| "HUGGING_FACE"
| "LOCAL"
| "S3"
| "GCS"
| "AZURE"
| "ARTIFACTORY"
| "GITLAB"
| "ALL")[];
condition: CustomRuleCondition;
violation_message: string;
remediation_message?: string | null;
rule_action?: "FAIL" | "PASS";
}>;

Defined in: src/models/model-security-custom-rules.ts:55

Custom rule creation body; defaults remain server-owned.