Initial Node.js SDK v1.0.0

This commit is contained in:
garfieldheron
2026-02-19 12:07:39 -05:00
commit 6c252b7495
24 changed files with 1837 additions and 0 deletions

29
dist/api/webhooks.d.ts vendored Normal file
View File

@@ -0,0 +1,29 @@
import { AxiosInstance } from 'axios';
import { WebhookEndpoint, CreateWebhookRequest, ListResponse, PaginationParams } from '../types';
/**
* Webhooks API client
*/
export declare class WebhooksClient {
private http;
constructor(http: AxiosInstance);
/**
* Create a new webhook endpoint
*/
create(params: CreateWebhookRequest, idempotencyKey?: string): Promise<WebhookEndpoint>;
/**
* Retrieve a webhook endpoint by ID
*/
retrieve(webhookId: string): Promise<WebhookEndpoint>;
/**
* List all webhook endpoints
*/
list(params?: PaginationParams): Promise<ListResponse<WebhookEndpoint>>;
/**
* Update a webhook endpoint
*/
update(webhookId: string, params: Partial<CreateWebhookRequest>): Promise<WebhookEndpoint>;
/**
* Delete a webhook endpoint
*/
delete(webhookId: string): Promise<void>;
}