/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * OpenAPI spec version: 1.0.0 */ import type { CreateWebhookBody, DeleteWebhook200, Error, GetWebhookDeliveries200, GetWebhookDeliveriesParams, GetWebhooks200, GetWebhooksParams, UpdateWebhookBody, ValidationError, WebhookDelivery, WebhookResponse, WebhookWithSecret } from '../model'; /** * Create a webhook endpoint. The response includes the full secret which is only visible on creation and when rotated. * @summary Create a new webhook */ export type createWebhookResponse201 = { data: WebhookWithSecret; status: 201; }; export type createWebhookResponse400 = { data: Error; status: 400; }; export type createWebhookResponse401 = { data: Error; status: 401; }; export type createWebhookResponse403 = { data: Error; status: 403; }; export type createWebhookResponse404 = { data: Error; status: 404; }; export type createWebhookResponse422 = { data: ValidationError; status: 422; }; export type createWebhookResponse500 = { data: Error; status: 500; }; export type createWebhookResponseSuccess = (createWebhookResponse201) & { headers: Headers; }; export type createWebhookResponseError = (createWebhookResponse400 | createWebhookResponse401 | createWebhookResponse403 | createWebhookResponse404 | createWebhookResponse422 | createWebhookResponse500) & { headers: Headers; }; export type createWebhookResponse = (createWebhookResponseSuccess | createWebhookResponseError); export declare const getCreateWebhookUrl: () => string; export declare const createWebhook: (createWebhookBody: CreateWebhookBody, options?: RequestInit) => Promise; /** * Retrieve a paginated list of webhooks for the entity. Secrets are masked in the response. * @summary List all webhooks */ export type getWebhooksResponse200 = { data: GetWebhooks200; status: 200; }; export type getWebhooksResponse400 = { data: Error; status: 400; }; export type getWebhooksResponse401 = { data: Error; status: 401; }; export type getWebhooksResponse403 = { data: Error; status: 403; }; export type getWebhooksResponse404 = { data: Error; status: 404; }; export type getWebhooksResponse500 = { data: Error; status: 500; }; export type getWebhooksResponseSuccess = (getWebhooksResponse200) & { headers: Headers; }; export type getWebhooksResponseError = (getWebhooksResponse400 | getWebhooksResponse401 | getWebhooksResponse403 | getWebhooksResponse404 | getWebhooksResponse500) & { headers: Headers; }; export type getWebhooksResponse = (getWebhooksResponseSuccess | getWebhooksResponseError); export declare const getGetWebhooksUrl: (params?: GetWebhooksParams) => string; export declare const getWebhooks: (params?: GetWebhooksParams, options?: RequestInit) => Promise; /** * Retrieve a single webhook. The secret is masked in the response. * @summary Get a webhook by ID */ export type getWebhookByIdResponse200 = { data: WebhookResponse; status: 200; }; export type getWebhookByIdResponse401 = { data: Error; status: 401; }; export type getWebhookByIdResponse403 = { data: Error; status: 403; }; export type getWebhookByIdResponse404 = { data: Error; status: 404; }; export type getWebhookByIdResponse500 = { data: Error; status: 500; }; export type getWebhookByIdResponseSuccess = (getWebhookByIdResponse200) & { headers: Headers; }; export type getWebhookByIdResponseError = (getWebhookByIdResponse401 | getWebhookByIdResponse403 | getWebhookByIdResponse404 | getWebhookByIdResponse500) & { headers: Headers; }; export type getWebhookByIdResponse = (getWebhookByIdResponseSuccess | getWebhookByIdResponseError); export declare const getGetWebhookByIdUrl: (id: string) => string; export declare const getWebhookById: (id: string, options?: RequestInit) => Promise; /** * Update webhook URL, events, active status, or description. * @summary Update a webhook */ export type updateWebhookResponse200 = { data: WebhookResponse; status: 200; }; export type updateWebhookResponse400 = { data: Error; status: 400; }; export type updateWebhookResponse401 = { data: Error; status: 401; }; export type updateWebhookResponse403 = { data: Error; status: 403; }; export type updateWebhookResponse404 = { data: Error; status: 404; }; export type updateWebhookResponse422 = { data: ValidationError; status: 422; }; export type updateWebhookResponse500 = { data: Error; status: 500; }; export type updateWebhookResponseSuccess = (updateWebhookResponse200) & { headers: Headers; }; export type updateWebhookResponseError = (updateWebhookResponse400 | updateWebhookResponse401 | updateWebhookResponse403 | updateWebhookResponse404 | updateWebhookResponse422 | updateWebhookResponse500) & { headers: Headers; }; export type updateWebhookResponse = (updateWebhookResponseSuccess | updateWebhookResponseError); export declare const getUpdateWebhookUrl: (id: string) => string; export declare const updateWebhook: (id: string, updateWebhookBody: UpdateWebhookBody, options?: RequestInit) => Promise; /** * Permanently delete a webhook endpoint. Pending deliveries will be cancelled. * @summary Delete a webhook */ export type deleteWebhookResponse200 = { data: DeleteWebhook200; status: 200; }; export type deleteWebhookResponse400 = { data: Error; status: 400; }; export type deleteWebhookResponse401 = { data: Error; status: 401; }; export type deleteWebhookResponse403 = { data: Error; status: 403; }; export type deleteWebhookResponse404 = { data: Error; status: 404; }; export type deleteWebhookResponse422 = { data: ValidationError; status: 422; }; export type deleteWebhookResponse500 = { data: Error; status: 500; }; export type deleteWebhookResponseSuccess = (deleteWebhookResponse200) & { headers: Headers; }; export type deleteWebhookResponseError = (deleteWebhookResponse400 | deleteWebhookResponse401 | deleteWebhookResponse403 | deleteWebhookResponse404 | deleteWebhookResponse422 | deleteWebhookResponse500) & { headers: Headers; }; export type deleteWebhookResponse = (deleteWebhookResponseSuccess | deleteWebhookResponseError); export declare const getDeleteWebhookUrl: (id: string) => string; export declare const deleteWebhook: (id: string, options?: RequestInit) => Promise; /** * Send a test event to the webhook endpoint to verify connectivity. * @summary Test a webhook */ export type testWebhookResponse200 = { data: WebhookDelivery; status: 200; }; export type testWebhookResponse400 = { data: Error; status: 400; }; export type testWebhookResponse401 = { data: Error; status: 401; }; export type testWebhookResponse403 = { data: Error; status: 403; }; export type testWebhookResponse404 = { data: Error; status: 404; }; export type testWebhookResponse422 = { data: ValidationError; status: 422; }; export type testWebhookResponse500 = { data: Error; status: 500; }; export type testWebhookResponseSuccess = (testWebhookResponse200) & { headers: Headers; }; export type testWebhookResponseError = (testWebhookResponse400 | testWebhookResponse401 | testWebhookResponse403 | testWebhookResponse404 | testWebhookResponse422 | testWebhookResponse500) & { headers: Headers; }; export type testWebhookResponse = (testWebhookResponseSuccess | testWebhookResponseError); export declare const getTestWebhookUrl: (id: string) => string; export declare const testWebhook: (id: string, options?: RequestInit) => Promise; /** * Retrieve a paginated list of delivery attempts for a specific webhook. * @summary List webhook deliveries */ export type getWebhookDeliveriesResponse200 = { data: GetWebhookDeliveries200; status: 200; }; export type getWebhookDeliveriesResponse400 = { data: Error; status: 400; }; export type getWebhookDeliveriesResponse401 = { data: Error; status: 401; }; export type getWebhookDeliveriesResponse403 = { data: Error; status: 403; }; export type getWebhookDeliveriesResponse404 = { data: Error; status: 404; }; export type getWebhookDeliveriesResponse500 = { data: Error; status: 500; }; export type getWebhookDeliveriesResponseSuccess = (getWebhookDeliveriesResponse200) & { headers: Headers; }; export type getWebhookDeliveriesResponseError = (getWebhookDeliveriesResponse400 | getWebhookDeliveriesResponse401 | getWebhookDeliveriesResponse403 | getWebhookDeliveriesResponse404 | getWebhookDeliveriesResponse500) & { headers: Headers; }; export type getWebhookDeliveriesResponse = (getWebhookDeliveriesResponseSuccess | getWebhookDeliveriesResponseError); export declare const getGetWebhookDeliveriesUrl: (id: string, params?: GetWebhookDeliveriesParams) => string; export declare const getWebhookDeliveries: (id: string, params?: GetWebhookDeliveriesParams, options?: RequestInit) => Promise; /** * Generate a new signing secret for the webhook. The previous secret is immediately invalidated. * @summary Rotate webhook secret */ export type rotateWebhookSecretResponse200 = { data: WebhookWithSecret; status: 200; }; export type rotateWebhookSecretResponse400 = { data: Error; status: 400; }; export type rotateWebhookSecretResponse401 = { data: Error; status: 401; }; export type rotateWebhookSecretResponse403 = { data: Error; status: 403; }; export type rotateWebhookSecretResponse404 = { data: Error; status: 404; }; export type rotateWebhookSecretResponse422 = { data: ValidationError; status: 422; }; export type rotateWebhookSecretResponse500 = { data: Error; status: 500; }; export type rotateWebhookSecretResponseSuccess = (rotateWebhookSecretResponse200) & { headers: Headers; }; export type rotateWebhookSecretResponseError = (rotateWebhookSecretResponse400 | rotateWebhookSecretResponse401 | rotateWebhookSecretResponse403 | rotateWebhookSecretResponse404 | rotateWebhookSecretResponse422 | rotateWebhookSecretResponse500) & { headers: Headers; }; export type rotateWebhookSecretResponse = (rotateWebhookSecretResponseSuccess | rotateWebhookSecretResponseError); export declare const getRotateWebhookSecretUrl: (id: string) => string; export declare const rotateWebhookSecret: (id: string, options?: RequestInit) => Promise; //# sourceMappingURL=webhooks.d.ts.map