Skip to main content

Variable: ScanCreateRequestSchema

const ScanCreateRequestSchema: ZodObject<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodString;
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<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<ZodNullable<...>>;
formats: ZodOptional<ZodNullable<...>>;
issues_detected: ZodOptional<ZodNullable<...>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
file_path: ZodString;
modelscan_status: ZodString;
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodString;
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<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
model_uri: ZodString;
security_group_uuid: ZodString;
scan_origin: ZodString;
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<{
file_path: ZodString;
modelscan_status: ZodString;
blob_id: ZodString;
error_message: ZodOptional<...>;
formats: ZodOptional<...>;
issues_detected: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
file_path: ...;
modelscan_status: ...;
blob_id: ...;
error_message: ...;
formats: ...;
issues_detected: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
scanner_version: ZodString;
time_started: ZodString;
files: ZodArray<ZodObject<{
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<ZodString>>;
error_message: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/model-security.ts:149

Zod schema for creating a new model security scan.