/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { webhookWebhooksCreate } from "../funcs/webhookWebhooksCreate.js"; import { webhookWebhooksDelete } from "../funcs/webhookWebhooksDelete.js"; import { webhookWebhooksGet } from "../funcs/webhookWebhooksGet.js"; import { webhookWebhooksList } from "../funcs/webhookWebhooksList.js"; import { webhookWebhooksUpdate } from "../funcs/webhookWebhooksUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Webhooks extends ClientSDK { /** * List webhook subscriptions * * @remarks * List all webhook subscriptions */ async list( request: operations.WebhookWebhooksAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webhookWebhooksList( this, request, options, )); } /** * Create webhook subscription * * @remarks * Create a webhook subscription to receive events */ async create( request: components.CreateWebhookRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webhookWebhooksCreate( this, request, options, )); } /** * Get webhook subscription * * @remarks * Get the webhook subscription details */ async get( request: operations.WebhookWebhooksOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webhookWebhooksGet( this, request, options, )); } /** * Update webhook subscription * * @remarks * Update a webhook subscription */ async update( request: operations.WebhookWebhooksUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webhookWebhooksUpdate( this, request, options, )); } /** * Delete webhook subscription * * @remarks * Delete a webhook subscription */ async delete( request: operations.WebhookWebhooksDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(webhookWebhooksDelete( this, request, options, )); } }