UNPKG

attio-js

Version:

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

19 lines 1.19 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { GetV2WebhooksWebhookIdNotFoundError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { GetV2WebhooksWebhookIdRequest, GetV2WebhooksWebhookIdResponse } from "../models/operations/getv2webhookswebhookid.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Get a webhook * * @remarks * Get a single webhook. * * Required scopes: `webhook:read`. */ export declare function webhooksGet(client: AttioCore, request: GetV2WebhooksWebhookIdRequest, options?: RequestOptions): APIPromise<Result<GetV2WebhooksWebhookIdResponse, GetV2WebhooksWebhookIdNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=webhooksGet.d.ts.map