Skip to main content

Variable: ModelProtectionItemSchema

const ModelProtectionItemSchema: ZodObject<{
severity: ZodOptional<ZodString>;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>>;
toxic-category-list: ZodOptional<ZodArray<ZodObject<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">>, "many">>;
name: ZodOptional<ZodString>;
action: ZodOptional<ZodString>;
topic-list: ZodOptional<ZodArray<ZodObject<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<{
topic_name: ZodString;
topic_id: ZodString;
revision: ZodNumber;
severity: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, ZodTypeAny, "passthrough">>, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, ZodTypeAny, "passthrough">>, "many">>;
options: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
severity: ZodOptional<ZodString>;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>>;
toxic-category-list: ZodOptional<ZodArray<ZodObject<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ...;
moderate: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ...;
moderate: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">>, "many">>;
name: ZodOptional<ZodString>;
action: ZodOptional<ZodString>;
topic-list: ZodOptional<ZodArray<ZodObject<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>;
}, ZodTypeAny, "passthrough">>, "many">>;
options: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
severity: ZodOptional<ZodString>;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ZodOptional<ZodString>;
moderate: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>>;
toxic-category-list: ZodOptional<ZodArray<ZodObject<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ZodOptional<...>;
moderate: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
high: ...;
moderate: ...;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ...;
moderate: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
category: ZodString;
action: ZodString;
severity-by-confidence: ZodOptional<ZodObject<{
high: ...;
moderate: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">>, "many">>;
name: ZodOptional<ZodString>;
action: ZodOptional<ZodString>;
topic-list: ZodOptional<ZodArray<ZodObject<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<{
topic_name: ...;
topic_id: ...;
revision: ...;
severity: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
action: ZodString;
topic: ZodNullable<ZodArray<ZodObject<..., ..., ..., ..., ...>, "many">>;
}, ZodTypeAny, "passthrough">>, "many">>;
options: ZodOptional<ZodArray<ZodUnknown, "many">>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/mgmt-security-profile.ts:177

Zod schema for a model-protection array item.