Variable: ScanCreateRequestSchema
const ScanCreateRequestSchema: ZodObject<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodOptional<ZodNullable<ZodNativeEnum<{
MODEL_SECURITY_SDK: "MODEL_SECURITY_SDK";
MODEL_SECURITY_API: "MODEL_SECURITY_API";
MODEL_SECURITY_FRONTEND: "MODEL_SECURITY_FRONTEND";
HUGGING_FACE: "HUGGING_FACE";
}>>>;
allow_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
ignore_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
labels: ZodOptional<ZodNullable<ZodArray<ZodObject<{
key: ZodString;
value: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">>, "many">>>;
model_author: ZodOptional<ZodNullable<ZodString>>;
model_name: ZodOptional<ZodNullable<ZodString>>;
model_version: ZodOptional<ZodNullable<ZodString>>;
scan_details: ZodOptional<ZodNullable<ZodObject<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ZodOptional<ZodNullable<...>>;
size_bytes: ZodOptional<ZodNullable<...>>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<{
SCANNED: ...;
SKIPPED: ...;
ERROR: ...;
}>;
blob_id: ZodString;
error_message: ZodOptional<ZodNullable<...>>;
formats: ZodOptional<ZodNullable<...>>;
issues_detected: ZodOptional<ZodNullable<...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<{
UNKNOWN_ERROR: "UNKNOWN_ERROR";
SCAN_ERROR: "SCAN_ERROR";
INVALID_RESPONSE: "INVALID_RESPONSE";
ACCESS_DENIED: "ACCESS_DENIED";
MISSING_CREDENTIALS: "MISSING_CREDENTIALS";
NO_SUCH_KEY: "NO_SUCH_KEY";
NO_SUCH_BUCKET: "NO_SUCH_BUCKET";
INVALID_BUCKET_NAME: "INVALID_BUCKET_NAME";
INTERNAL_ERROR: "INTERNAL_ERROR";
SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
INVALID_OBJECT_STATE: "INVALID_OBJECT_STATE";
UNKNOWN_REMOTE_SERVICE_ERROR: "UNKNOWN_REMOTE_SERVICE_ERROR";
UNSUPPORTED_REMOTE_STORAGE: "UNSUPPORTED_REMOTE_STORAGE";
MISSING_ARTIFACTS: "MISSING_ARTIFACTS";
WORKER_ERROR: "WORKER_ERROR";
POLICY_EVAL_ERROR: "POLICY_EVAL_ERROR";
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
SCAN_DATA_PENDING: "SCAN_DATA_PENDING";
}>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<{
UNKNOWN_ERROR: ...;
SCAN_ERROR: ...;
INVALID_RESPONSE: ...;
ACCESS_DENIED: ...;
MISSING_CREDENTIALS: ...;
NO_SUCH_KEY: ...;
NO_SUCH_BUCKET: ...;
INVALID_BUCKET_NAME: ...;
INTERNAL_ERROR: ...;
SERVICE_UNAVAILABLE: ...;
INVALID_OBJECT_STATE: ...;
UNKNOWN_REMOTE_SERVICE_ERROR: ...;
UNSUPPORTED_REMOTE_STORAGE: ...;
MISSING_ARTIFACTS: ...;
WORKER_ERROR: ...;
POLICY_EVAL_ERROR: ...;
RESOURCE_NOT_FOUND: ...;
SCAN_DATA_PENDING: ...;
}>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<{
UNKNOWN_ERROR: ...;
SCAN_ERROR: ...;
INVALID_RESPONSE: ...;
ACCESS_DENIED: ...;
MISSING_CREDENTIALS: ...;
NO_SUCH_KEY: ...;
NO_SUCH_BUCKET: ...;
INVALID_BUCKET_NAME: ...;
INTERNAL_ERROR: ...;
SERVICE_UNAVAILABLE: ...;
INVALID_OBJECT_STATE: ...;
UNKNOWN_REMOTE_SERVICE_ERROR: ...;
UNSUPPORTED_REMOTE_STORAGE: ...;
MISSING_ARTIFACTS: ...;
WORKER_ERROR: ...;
POLICY_EVAL_ERROR: ...;
RESOURCE_NOT_FOUND: ...;
SCAN_DATA_PENDING: ...;
}>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodOptional<ZodNullable<ZodNativeEnum<{
MODEL_SECURITY_SDK: "MODEL_SECURITY_SDK";
MODEL_SECURITY_API: "MODEL_SECURITY_API";
MODEL_SECURITY_FRONTEND: "MODEL_SECURITY_FRONTEND";
HUGGING_FACE: "HUGGING_FACE";
}>>>;
allow_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
ignore_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
labels: ZodOptional<ZodNullable<ZodArray<ZodObject<{
key: ZodString;
value: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">>, "many">>>;
model_author: ZodOptional<ZodNullable<ZodString>>;
model_name: ZodOptional<ZodNullable<ZodString>>;
model_version: ZodOptional<ZodNullable<ZodString>>;
scan_details: ZodOptional<ZodNullable<ZodObject<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<{
UNKNOWN_ERROR: ...;
SCAN_ERROR: ...;
INVALID_RESPONSE: ...;
ACCESS_DENIED: ...;
MISSING_CREDENTIALS: ...;
NO_SUCH_KEY: ...;
NO_SUCH_BUCKET: ...;
INVALID_BUCKET_NAME: ...;
INTERNAL_ERROR: ...;
SERVICE_UNAVAILABLE: ...;
INVALID_OBJECT_STATE: ...;
UNKNOWN_REMOTE_SERVICE_ERROR: ...;
UNSUPPORTED_REMOTE_STORAGE: ...;
MISSING_ARTIFACTS: ...;
WORKER_ERROR: ...;
POLICY_EVAL_ERROR: ...;
RESOURCE_NOT_FOUND: ...;
SCAN_DATA_PENDING: ...;
}>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<...>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<...>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodOptional<ZodNullable<ZodNativeEnum<{
MODEL_SECURITY_SDK: "MODEL_SECURITY_SDK";
MODEL_SECURITY_API: "MODEL_SECURITY_API";
MODEL_SECURITY_FRONTEND: "MODEL_SECURITY_FRONTEND";
HUGGING_FACE: "HUGGING_FACE";
}>>>;
allow_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
ignore_patterns: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
labels: ZodOptional<ZodNullable<ZodArray<ZodObject<{
key: ZodString;
value: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
key: ZodString;
value: ZodString;
}, ZodTypeAny, "passthrough">>, "many">>>;
model_author: ZodOptional<ZodNullable<ZodString>>;
model_name: ZodOptional<ZodNullable<ZodString>>;
model_version: ZodOptional<ZodNullable<ZodString>>;
scan_details: ZodOptional<ZodNullable<ZodObject<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ZodOptional<...>;
size_bytes: ZodOptional<...>;
file_path: ZodString;
modelscan_status: ZodNativeEnum<...>;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<{
UNKNOWN_ERROR: ...;
SCAN_ERROR: ...;
INVALID_RESPONSE: ...;
ACCESS_DENIED: ...;
MISSING_CREDENTIALS: ...;
NO_SUCH_KEY: ...;
NO_SUCH_BUCKET: ...;
INVALID_BUCKET_NAME: ...;
INTERNAL_ERROR: ...;
SERVICE_UNAVAILABLE: ...;
INVALID_OBJECT_STATE: ...;
UNKNOWN_REMOTE_SERVICE_ERROR: ...;
UNSUPPORTED_REMOTE_STORAGE: ...;
MISSING_ARTIFACTS: ...;
WORKER_ERROR: ...;
POLICY_EVAL_ERROR: ...;
RESOURCE_NOT_FOUND: ...;
SCAN_DATA_PENDING: ...;
}>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<...>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
sha256: ...;
size_bytes: ...;
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">;
total_files_scanned: ZodNumber;
total_files_skipped: ZodNumber;
model_formats: ZodArray<ZodString, "many">;
model_size_bytes: ZodNumber;
scan_duration_ms: ZodNumber;
error_code: ZodOptional<ZodNullable<ZodNativeEnum<...>>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">>;
Defined in: src/models/model-security.ts:159
Zod schema for creating a new model security scan.