UNPKG

attio-js

Version:

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

19 lines 1.18 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { PostV2WebhooksValidationTypeError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { PostV2WebhooksRequest, PostV2WebhooksResponse } from "../models/operations/postv2webhooks.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Create a webhook * * @remarks * Create a webhook and associated subscriptions. * * Required scopes: `webhook:read-write`. */ export declare function webhooksCreate(client: AttioCore, request: PostV2WebhooksRequest, options?: RequestOptions): APIPromise<Result<PostV2WebhooksResponse, PostV2WebhooksValidationTypeError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=webhooksCreate.d.ts.map