UNPKG

attio-js

Version:

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

19 lines 1.23 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { DeleteV2WebhooksWebhookIdNotFoundError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { DeleteV2WebhooksWebhookIdRequest, DeleteV2WebhooksWebhookIdResponse } from "../models/operations/deletev2webhookswebhookid.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Delete a webhook * * @remarks * Delete a webhook by ID. * * Required scopes: `webhook:read-write`. */ export declare function webhooksDelete(client: AttioCore, request: DeleteV2WebhooksWebhookIdRequest, options?: RequestOptions): APIPromise<Result<DeleteV2WebhooksWebhookIdResponse, DeleteV2WebhooksWebhookIdNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=webhooksDelete.d.ts.map