finite-state-sdk
Version:
The Finite State SDK.
48 lines (47 loc) • 1.43 kB
TypeScript
import { UploadMethod } from "./fs/types";
interface LaunchBinaryUploadProcessing {
key: string;
}
export type CreateNewAssetVersionAndUploadBinaryResponseType = {
launchBinaryUploadProcessing: LaunchBinaryUploadProcessing;
};
export interface CompleteTestResultUploadResponse {
completeTestResultUpload: {
key: string;
};
}
export interface LaunchBinaryUploadProcessingResponse {
launchBinaryUploadProcessing: LaunchBinaryUploadProcessing;
}
export type createNewAssetVersionAndUploadBinaryParams = {
assetId: string;
version: string;
filePath: string;
createdByUserId?: string;
businessUnitId?: string;
productId?: string;
artifactDescription?: string;
quickScan?: boolean;
uploadMethod?: UploadMethod;
};
export interface CreateNewAssetVersionParams {
assetId: string;
version: string;
filePath: string;
artifactDescription?: string;
testType: string;
createdByUserId?: string;
businessUnitId?: string;
productId?: string;
uploadMethod?: UploadMethod;
}
export interface Context {
asset: string;
products?: string[];
businessUnits: string[];
}
export type ReportType = "CSV" | "PDF";
export type CsvReportSubtype = "ALL_FINDINGS" | "ALL_COMPONENTS" | "EXPLOIT_INTELLIGENCE";
export type PdfReportSubtype = "RISK_SUMMARY";
export type ReportSubtype = CsvReportSubtype | PdfReportSubtype;
export * from "./fs/types";