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 information requests for an audit * * @remarks * Retrieves a paginated list of all information requests for an audit, enabling * external audit management systems to display and track evidence requests. * * This endpoint always includes soft-deleted records (where `deletionDate !== null`). * Clients should check the `deletionDate` field to identify and handle deleted records * appropriately in their systems. * * This is the only endpoint that returns a deleted information request. No * webhook fires when a request is deleted. Endpoints under * `/audits/{auditId}/information-requests/{requestId}` return a 4xx HTTP error * for a deleted request. To confirm deletion, check the request's `deletionDate` * in this list. Deleting a request does not set `deletionDate` on its comments * or evidence or send delete events for them. Once this list confirms the * request was deleted, treat its comments and evidence as deleted too. * * This endpoint supports delta synchronization via the `changedSinceDate` parameter, * allowing efficient polling for changes without retrieving the entire dataset. * * Pagination usage: * 1. Make initial request with desired `pageSize` * 2. Check `results.pageInfo.hasNextPage` to see if more data exists * 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request * 4. Repeat until `hasNextPage` is false * * Delta sync usage: * 1. Store the timestamp of your last sync * 2. Pass that timestamp as `changedSinceDate` * 3. Only requests created, modified, or deleted since that timestamp are returned * 4. Process updates and soft-deletes by checking the `deletionDate` field * 5. Update your last sync timestamp to the current time * * `segmentIds` on each returned request is resolved against the audit's * current scope. A scope-only change (a segment leaving or joining the audit * without the request row being written) is not a delta-sync event. Re-fetch * without `changedSinceDate`, or GET by id, to see the current projection. * * Rate limit: 50 requests / minute. */ export declare function auditsListInformationRequests(client: VantaCore, request: operations.ListInformationRequestsRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsListInformationRequests.d.ts.map