import { VantaCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { VantaError } from "../models/errors/vantaerror.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * List risks for an audit * * @remarks * Retrieves risk population data for an audit. * * This endpoint provides access to the risk records visible to auditors * during an audit engagement. Risk data is scoped to a specific risk * assessment snapshot identified by the `snapshotId` parameter. * * Supports filtering by: * - `search`: Searches risk scenario descriptions (case-insensitive) * * Results are sorted by identified date (newest first) by default. * Use `orderBy` and `orderDirection` to customize sorting. * Sort parameters must remain consistent across paginated requests. * * Uses cursor-based pagination. To paginate: * 1. Make initial request with desired `pageSize` * 2. Check `results.pageInfo.hasNextPage` * 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request * * Supports audits with one or more program segments. * Audits with system segments are not supported by this endpoint. * * Only Controlled Audit View (CAV) audits are supported. Full Audit View * audits are rejected with 403. Returns 403 if the customer has not made * this population page visible to auditors. Also returns 403 if the * snapshot is not shared with auditors, and 404 if the snapshot does not * exist. Use snapshot IDs from `GET /audits/{auditId}/risks/snapshots`, * which lists only snapshots shared with auditors. * * Rate limit: 10 requests / minute. */ export declare function auditsListAuditRisks(client: VantaCore, request: operations.ListAuditRisksRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsListAuditRisks.d.ts.map