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 evidence for an information request * * @remarks * Retrieves a paginated list of all evidence attached to an information request, * enabling auditors to review evidence submitted by customers. * * 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. * * If the information request itself has been deleted, this endpoint returns a * 4xx HTTP error instead of its evidence. * * 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 evidence created, modified, shared, or deleted since that timestamp is returned * 4. Process updates, including soft-deletes (deletionDate !== null) * 5. Update your last sync timestamp to the current time * * Identifying evidence and files: * - Use `id` as the key for each evidence item, whatever its type. * - To recognize the same file across information requests, use the * * file key for the evidence type. UPLOADED_DOCUMENT uses `evidence.id`. * VANTA_DOCUMENT and VANTA_POLICY use `evidence.file.id`, which * identifies the source document or policy file. VANTA_TEST uses * `evidence.snapshotId` plus `evidence.fileType`. LINK, OBSERVATION, * and VANTA_TEST_SNAPSHOT evidence has no file. * - Do not use `file.url` as a key. It is a temporary download link. * * Rate limit: 50 requests / minute. */ export declare function auditsListInformationRequestEvidence(client: VantaCore, request: operations.ListInformationRequestEvidenceRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsListInformationRequestEvidence.d.ts.map