UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

42 lines 988 B
/** * WebhooksService * AUTO-GENERATED - Do not edit manually * * Webhook configuration - receive real-time event notifications */ import { request } from '../core/request.js'; export class WebhooksService { /** * List webhooks * Webhook configuration - receive real-time event notifications */ static async list(options) { return await request({ method: 'GET', url: '/webhooks', query: options, }); } /** * Get a single webhook */ static async get(id) { return await request({ method: 'GET', url: '/webhooks/{id}', path: { id }, }); } /** * Update an existing webhook */ static async update(id, data) { return await request({ method: 'PATCH', url: '/webhooks/{id}', path: { id }, body: data, }); } } //# sourceMappingURL=WebhooksService.js.map