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"; /** * Upsert a control's assessment within an audit * * @remarks * Records (upserts) an auditor's assessment state and justification for a * control within an IRL audit — the API equivalent of assessing a control in * the web app. Overwrites the assessment for this control in the chosen * audit segment. * * `segmentId` may be any segment on the audit, `PROGRAM` or `SYSTEM` (see * `segments` on the audit). It may be omitted only when the audit has * exactly one segment. The `assessmentState` must be valid for that * segment's framework (the request is rejected otherwise). The acting * auditor is identified by `auditorEmail`, which must belong to the audit * firm making the request. * * Returns 404 when the control is not part of the audit or the auditor email * does not resolve to a firm user. Returns 422 when `segmentId` is omitted * on an audit with more than one segment, when `segmentId` is not a segment * on this audit, or when the control is not assigned to that segment for * this audit. Applies to both Full and Controlled Audit View audits. * * Rate limit: 10 requests / minute. */ export declare function auditsUpsertAssessmentForControl(client: VantaCore, request: operations.UpsertAssessmentForControlRequest, options?: RequestOptions): APIPromise>; //# sourceMappingURL=auditsUpsertAssessmentForControl.d.ts.map