UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

48 lines 1.38 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { webhooksCreateWebhook } from "../funcs/webhooksCreateWebhook.js"; import { webhooksDeleteWebhook } from "../funcs/webhooksDeleteWebhook.js"; import { webhooksGetWebhook } from "../funcs/webhooksGetWebhook.js"; import { webhooksGetWebhooks } from "../funcs/webhooksGetWebhooks.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export class Webhooks extends ClientSDK { /** * Creates a webhook * * @remarks * Creates a webhook */ async createWebhook(request, options) { return unwrapAsync(webhooksCreateWebhook(this, request, options)); } /** * Get a list of webhooks * * @remarks * Get a list of webhooks */ async getWebhooks(request, options) { return unwrapAsync(webhooksGetWebhooks(this, request, options)); } /** * Get a webhook * * @remarks * Get a webhook */ async getWebhook(request, options) { return unwrapAsync(webhooksGetWebhook(this, request, options)); } /** * Deletes a webhook * * @remarks * Deletes a webhook */ async deleteWebhook(request, options) { return unwrapAsync(webhooksDeleteWebhook(this, request, options)); } } //# sourceMappingURL=webhooks.js.map