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 * as errors from "../models/errors/index.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"; /** * Start an auditor file upload * * @remarks * Starts an upload of a file an auditor provides for the customer, such as * instructions or a template, on an information request. This does not upload * customer evidence. Use this three-step flow: * * 1. Call this endpoint with `email`, `filename` and `contentType` to receive * * an `uploadId`, a temporary `url` and form `fields`. * 2. POST the file to `url` as `multipart/form-data` before `transferExpiresAt`. * * Copy every returned field name and value unchanged, then append the file * under `file` as the final part. Do not hard-code the field names or send * your Vanta bearer token to this URL. Let your HTTP client set the * multipart Content-Type header and boundary. Wait for a 2xx response; * the response body may be empty. * 3. POST `{ "uploadId": "" }` to * * `/v1/audits/{auditId}/information-requests/{requestId}/auditor-files/uploads/finalize` * and complete finalization before `finalizationExpiresAt`. * * The file is attached only after finalization succeeds. Each upload accepts * one file up to 50MB, inclusive. The auditor identified * by `email` is credited as the uploader and must be an active user in your * firm with access to the audit. A completed audit returns 409. * * Each application is limited to 10 unfinished auditor file uploads per * customer, across all audits and requests. Uploads count toward this limit * until they are finalized, fail, or expire. Starting another upload at this * limit returns 429, even if the earlier file transfers have succeeded. * Repeating this start operation creates a new upload; it does not recover * an earlier upload whose response was lost. * * Rate limit: 10 requests / minute. */ export declare function auditsInitiateInformationRequestAuditorFileUpload(client: VantaCore, request: operations.InitiateInformationRequestAuditorFileUploadRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsInitiateInformationRequestAuditorFileUpload.d.ts.map