UNPKG

attio-js

Version:

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

68 lines 1.89 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { webhooksCreate } from "../funcs/webhooksCreate.js"; import { webhooksDelete } from "../funcs/webhooksDelete.js"; import { webhooksGet } from "../funcs/webhooksGet.js"; import { webhooksList } from "../funcs/webhooksList.js"; import { webhooksPartialUpdate } from "../funcs/webhooksPartialUpdate.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export class Webhooks extends ClientSDK { /** * List webhooks * * @remarks * Get all of the webhooks in your workspace. * * Required scopes: `webhook:read`. */ async list(request, options) { return unwrapAsync(webhooksList(this, request, options)); } /** * Create a webhook * * @remarks * Create a webhook and associated subscriptions. * * Required scopes: `webhook:read-write`. */ async create(request, options) { return unwrapAsync(webhooksCreate(this, request, options)); } /** * Get a webhook * * @remarks * Get a single webhook. * * Required scopes: `webhook:read`. */ async get(request, options) { return unwrapAsync(webhooksGet(this, request, options)); } /** * Update a webhook * * @remarks * Update a webhook and associated subscriptions. * * Required scopes: `webhook:read-write`. */ async partialUpdate(request, options) { return unwrapAsync(webhooksPartialUpdate(this, request, options)); } /** * Delete a webhook * * @remarks * Delete a webhook by ID. * * Required scopes: `webhook:read-write`. */ async delete(request, options) { return unwrapAsync(webhooksDelete(this, request, options)); } } //# sourceMappingURL=webhooks.js.map