|
export interface ApiIndexTreeEntry { |
|
type: "file" | "directory" | "unknown"; |
|
size: number; |
|
path: string; |
|
oid: string; |
|
lfs?: { |
|
oid: string; |
|
size: number; |
|
|
|
pointerSize: number; |
|
}; |
|
lastCommit?: { |
|
date: string; |
|
id: string; |
|
title: string; |
|
}; |
|
security?: ApiFileScanResult; |
|
} |
|
|
|
export interface ApiFileScanResult { |
|
|
|
repositoryId: string; |
|
blobId: string; |
|
name: string; |
|
safe: boolean; |
|
avScan?: ApiAVScan; |
|
pickleImportScan?: ApiPickleImportScan; |
|
} |
|
|
|
interface ApiAVScan { |
|
virusFound: boolean; |
|
virusNames?: string[]; |
|
} |
|
|
|
type ApiSafetyLevel = "innocuous" | "suspicious" | "dangerous"; |
|
|
|
interface ApiPickleImport { |
|
module: string; |
|
name: string; |
|
safety: ApiSafetyLevel; |
|
} |
|
|
|
interface ApiPickleImportScan { |
|
highestSafetyLevel: ApiSafetyLevel; |
|
imports: ApiPickleImport[]; |
|
} |
|
|