import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuditRiskCia } from "./auditriskcia.js"; /** * Risk treatment strategy, or null if not set. */ export declare const Treatment: { readonly Accept: "ACCEPT"; readonly Avoid: "AVOID"; readonly Mitigate: "MITIGATE"; readonly Transfer: "TRANSFER"; }; /** * Risk treatment strategy, or null if not set. */ export type Treatment = ClosedEnum; /** * Treatment implementation status, or null if not set. */ export declare const TreatmentStatus: { readonly InProgress: "IN_PROGRESS"; readonly Done: "DONE"; }; /** * Treatment implementation status, or null if not set. */ export type TreatmentStatus = ClosedEnum; /** * Review status of the risk scenario, or null if not set. */ export declare const ReviewStatus: { readonly Approved: "APPROVED"; readonly Draft: "DRAFT"; readonly NotReviewed: "NOT_REVIEWED"; readonly AwaitingSubmission: "AWAITING_SUBMISSION"; readonly PendingApproval: "PENDING_APPROVAL"; readonly RequestedChanges: "REQUESTED_CHANGES"; }; /** * Review status of the risk scenario, or null if not set. */ export type ReviewStatus = ClosedEnum; /** * Risk owner information, or null if no owner assigned. */ export type AuditRiskOwner = { /** * Display name of the risk owner. */ displayName: string; /** * URL of the owner's profile image, or null if not available. */ imageUrl: string | null; }; /** * A risk record from the risk population. * * @remarks * * `id` and `riskId` are required. All other fields are optional to support customizable field visibility. * * Omitted keys mean the column is not in the response; `null` means the column is present but empty. */ export type AuditRisk = { /** * Unique identifier for the risk scenario version. */ id: string; /** * Custom risk ID (e.g., "RISK-001"), or null if not available. */ riskId: string | null; /** * Description of the risk scenario, or null if not available. */ riskScenario?: string | null | undefined; /** * Likelihood score of the risk, or null if not scored. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ likelihood?: number | null | undefined; /** * Impact score of the risk, or null if not scored. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ impact?: number | null | undefined; /** * Inherent risk score, or null if not scored. Defaults to the likelihood * impact product; when the organization scores risks by factors, this is the rolled-up factor score rounded to two decimals. */ inherentRisk?: number | null | undefined; /** * Risk treatment strategy, or null if not set. */ treatment?: Treatment | null | undefined; /** * Treatment implementation status, or null if not set. */ treatmentStatus?: TreatmentStatus | null | undefined; /** * Residual risk score after treatment, or null if not calculable. */ residualRisk?: number | null | undefined; /** * Review status of the risk scenario, or null if not set. */ reviewStatus?: ReviewStatus | null | undefined; /** * Risk owner information, or null if no owner assigned. */ owner?: AuditRiskOwner | null | undefined; /** * Risk category names, or empty array if not categorized. */ categories?: Array | undefined; /** * CIA triad categories, or empty array if not categorized. */ ciaCategories?: Array | undefined; /** * IDs of controls linked to this risk scenario, or empty array if none. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ linkedControlIds?: Array | undefined; /** * When the risk was identified, or null if not recorded. * * @remarks * ISO 8601 format. */ identified?: string | null | undefined; }; /** @internal */ export declare const Treatment$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const TreatmentStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ReviewStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AuditRiskOwner$inboundSchema: z.ZodType; export declare function auditRiskOwnerFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AuditRisk$inboundSchema: z.ZodType; export declare function auditRiskFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=auditrisk.d.ts.map