UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

80 lines 2.18 kB
import type { webhooks } from '../models/webhooks.js'; import type { webhooks_create } from '../models/webhooks_create.js'; import type { webhooks_update } from '../models/webhooks_update.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class WebhookService { /** * List webhooks * Retrieve a paginated list of webhooks * @returns any Successful response * @throws ApiError */ static getWebhooks({ limit, offset, sort, }: { /** * Maximum number of items to return */ limit?: number; /** * Number of items to skip */ offset?: number; /** * Sort order (e.g., created_at:desc) */ sort?: string; }): CancelablePromise<{ data?: Array<webhooks>; pagination?: { limit?: number; offset?: number; total?: number; }; }>; /** * Create webhook * Create a new webhook * @returns webhooks Successfully created * @throws ApiError */ static postWebhooks({ requestBody, }: { requestBody: webhooks_create; }): CancelablePromise<webhooks>; /** * Get webhook * Retrieve a specific webhook by ID * @returns webhooks Successful response * @throws ApiError */ static getWebhooks1({ webhookId, }: { /** * The webhook ID */ webhookId: string; }): CancelablePromise<webhooks>; /** * Update webhook * Update a specific webhook * @returns webhooks Successfully updated * @throws ApiError */ static patchWebhooks({ webhookId, requestBody, }: { /** * The webhook ID */ webhookId: string; requestBody: webhooks_update; }): CancelablePromise<webhooks>; /** * Delete webhook * Delete a specific webhook * @returns void * @throws ApiError */ static deleteWebhooks({ webhookId, }: { /** * The webhook ID */ webhookId: string; }): CancelablePromise<void>; } //# sourceMappingURL=WebhookService.d.ts.map