UNPKG

attio-js

Version:

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

54 lines 2.11 kB
import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { DeleteV2WebhooksWebhookIdRequest, DeleteV2WebhooksWebhookIdResponse } from "../models/operations/deletev2webhookswebhookid.js"; import { GetV2WebhooksRequest, GetV2WebhooksResponse } from "../models/operations/getv2webhooks.js"; import { GetV2WebhooksWebhookIdRequest, GetV2WebhooksWebhookIdResponse } from "../models/operations/getv2webhookswebhookid.js"; import { PatchV2WebhooksWebhookIdRequest, PatchV2WebhooksWebhookIdResponse } from "../models/operations/patchv2webhookswebhookid.js"; import { PostV2WebhooksRequest, PostV2WebhooksResponse } from "../models/operations/postv2webhooks.js"; export declare class Webhooks extends ClientSDK { /** * List webhooks * * @remarks * Get all of the webhooks in your workspace. * * Required scopes: `webhook:read`. */ list(request: GetV2WebhooksRequest, options?: RequestOptions): Promise<GetV2WebhooksResponse>; /** * Create a webhook * * @remarks * Create a webhook and associated subscriptions. * * Required scopes: `webhook:read-write`. */ create(request: PostV2WebhooksRequest, options?: RequestOptions): Promise<PostV2WebhooksResponse>; /** * Get a webhook * * @remarks * Get a single webhook. * * Required scopes: `webhook:read`. */ get(request: GetV2WebhooksWebhookIdRequest, options?: RequestOptions): Promise<GetV2WebhooksWebhookIdResponse>; /** * Update a webhook * * @remarks * Update a webhook and associated subscriptions. * * Required scopes: `webhook:read-write`. */ partialUpdate(request: PatchV2WebhooksWebhookIdRequest, options?: RequestOptions): Promise<PatchV2WebhooksWebhookIdResponse>; /** * Delete a webhook * * @remarks * Delete a webhook by ID. * * Required scopes: `webhook:read-write`. */ delete(request: DeleteV2WebhooksWebhookIdRequest, options?: RequestOptions): Promise<DeleteV2WebhooksWebhookIdResponse>; } //# sourceMappingURL=webhooks.d.ts.map