UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

19 lines 1.32 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { DeleteV2CommentsCommentIdNotFoundError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { DeleteV2CommentsCommentIdRequest, DeleteV2CommentsCommentIdResponse } from "../models/operations/deletev2commentscommentid.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Delete a comment * * @remarks * Deletes a comment by ID. If deleting a comment at the head of a thread, all messages in the thread are also deleted. * * Required scopes: `comment:read-write`. */ export declare function commentsDelete(client: AttioCore, request: DeleteV2CommentsCommentIdRequest, options?: RequestOptions): APIPromise<Result<DeleteV2CommentsCommentIdResponse, DeleteV2CommentsCommentIdNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=commentsDelete.d.ts.map