Variable: IODetectedSchema
const IODetectedSchema: ZodObject<{
detection_entries: ZodOptional<ZodArray<ZodObject<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ZodOptional<ZodBoolean>;
url_cats: ZodOptional<ZodBoolean>;
dlp: ZodOptional<ZodBoolean>;
db_security: ZodOptional<ZodBoolean>;
toxic_content: ZodOptional<ZodBoolean>;
malicious_code: ZodOptional<ZodBoolean>;
agent: ZodOptional<ZodBoolean>;
topic_violation: ZodOptional<ZodBoolean>;
}, "passthrough", ZodTypeAny, objectOutputType<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ZodOptional<ZodUnknown>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_guardrails_details: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_guardrails_details: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>>;
masked_data: ZodOptional<ZodObject<{
data: ZodOptional<ZodString>;
pattern_detections: ZodOptional<ZodArray<..., ...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">>>;
masked_data: ZodOptional<ZodObject<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">>>;
masked_data: ZodOptional<ZodObject<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">>>;
}, ZodTypeAny, "passthrough">>, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
detection_entries: ZodOptional<ZodArray<ZodObject<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">>>;
masked_data: ZodOptional<ZodObject<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
masked_data: ZodOptional<ZodObject<{
data: ...;
pattern_detections: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
masked_data: ZodOptional<ZodObject<{
data: ...;
pattern_detections: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">>, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
detection_entries: ZodOptional<ZodArray<ZodObject<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ZodOptional<...>;
url_cats: ZodOptional<...>;
dlp: ZodOptional<...>;
db_security: ZodOptional<...>;
toxic_content: ZodOptional<...>;
malicious_code: ZodOptional<...>;
agent: ZodOptional<...>;
topic_violation: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, ZodTypeAny, "passthrough">>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
topic_guardrails_details: ...;
}, ZodTypeAny, "passthrough">>>;
masked_data: ZodOptional<ZodObject<{
data: ZodOptional<...>;
pattern_detections: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
data: ...;
pattern_detections: ...;
}, ZodTypeAny, "passthrough">>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
masked_data: ZodOptional<ZodObject<{
data: ...;
pattern_detections: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
tool_invoked: ZodOptional<ZodString>;
detections: ZodOptional<ZodObject<{
injection: ...;
url_cats: ...;
dlp: ...;
db_security: ...;
toxic_content: ...;
malicious_code: ...;
agent: ...;
topic_violation: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
threats: ZodOptional<ZodArray<ZodString, "many">>;
details: ZodOptional<ZodObject<{
topic_guardrails_details: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
masked_data: ZodOptional<ZodObject<{
data: ...;
pattern_detections: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
}, ZodTypeAny, "passthrough">>, "many">>;
}, ZodTypeAny, "passthrough">>;
Defined in: src/models/scan-response.ts:72
Zod schema for tool input/output detections.
Shape change vs prior SDK versions: this used to be a flag-style schema
with url_cats, dlp, etc. directly on it. The flags now live inside
ToolDetectionEntrySchema entries (one per tool invocation).