/** * 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 * as zod from "zod"; /** * 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 declare const CreateWebhookHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const createWebhookBodyUrlMax = 2048; export declare const createWebhookBodyDescriptionMax = 500; export declare const createWebhookBodyActiveDefault = true; export declare const CreateWebhookBody: zod.ZodObject<{ url: zod.ZodURL; description: zod.ZodOptional; events: zod.ZodArray>; active: zod.ZodDefault; metadata: zod.ZodOptional>>; }, zod.z.core.$strip>; /** * Retrieve a paginated list of webhooks for the entity. Secrets are masked in the response. * @summary List all webhooks */ export declare const getWebhooksQueryLimitDefault = 10; export declare const getWebhooksQueryLimitMax = 100; export declare const GetWebhooksQueryParams: zod.ZodObject<{ limit: zod.ZodDefault; next_cursor: zod.ZodOptional; prev_cursor: zod.ZodOptional; include_total_count: zod.ZodOptional; }, zod.z.core.$strip>; export declare const GetWebhooksHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const getWebhooksResponseDataItemIdMax = 36; export declare const getWebhooksResponseDataItemEntityIdMax = 36; export declare const getWebhooksResponseDataItemUrlMax = 2048; export declare const getWebhooksResponseDataItemDescriptionMax = 500; export declare const getWebhooksResponseDataItemMetadataDefault: {}; export declare const GetWebhooksResponse: zod.ZodObject<{ data: zod.ZodArray>; events: zod.ZodArray>; active: zod.ZodBoolean; metadata: zod.ZodDefault>; created_at: zod.z.ZodISODateTime; updated_at: zod.z.ZodISODateTime; secret: zod.ZodString; }, zod.z.core.$strip>>; pagination: zod.ZodObject<{ total: zod.ZodNumber; next_cursor: zod.ZodNullable; prev_cursor: zod.ZodNullable; has_more: zod.ZodBoolean; }, zod.z.core.$strip>; }, zod.z.core.$strip>; /** * Retrieve a single webhook. The secret is masked in the response. * @summary Get a webhook by ID */ export declare const getWebhookByIdPathIdRegExp: RegExp; export declare const GetWebhookByIdParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const GetWebhookByIdHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const getWebhookByIdResponseIdMax = 36; export declare const getWebhookByIdResponseEntityIdMax = 36; export declare const getWebhookByIdResponseUrlMax = 2048; export declare const getWebhookByIdResponseDescriptionMax = 500; export declare const getWebhookByIdResponseMetadataDefault: {}; export declare const GetWebhookByIdResponse: zod.ZodObject<{ id: zod.ZodString; entity_id: zod.ZodString; url: zod.ZodString; description: zod.ZodOptional>; events: zod.ZodArray>; active: zod.ZodBoolean; metadata: zod.ZodDefault>; created_at: zod.z.ZodISODateTime; updated_at: zod.z.ZodISODateTime; secret: zod.ZodString; }, zod.z.core.$strip>; /** * Update webhook URL, events, active status, or description. * @summary Update a webhook */ export declare const updateWebhookPathIdRegExp: RegExp; export declare const UpdateWebhookParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const UpdateWebhookHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const updateWebhookBodyUrlMax = 2048; export declare const updateWebhookBodyDescriptionMax = 500; export declare const UpdateWebhookBody: zod.ZodObject<{ url: zod.ZodOptional; description: zod.ZodOptional>; events: zod.ZodOptional>>; active: zod.ZodOptional; metadata: zod.ZodOptional>>; }, zod.z.core.$strip>; export declare const updateWebhookResponseIdMax = 36; export declare const updateWebhookResponseEntityIdMax = 36; export declare const updateWebhookResponseUrlMax = 2048; export declare const updateWebhookResponseDescriptionMax = 500; export declare const updateWebhookResponseMetadataDefault: {}; export declare const UpdateWebhookResponse: zod.ZodObject<{ id: zod.ZodString; entity_id: zod.ZodString; url: zod.ZodString; description: zod.ZodOptional>; events: zod.ZodArray>; active: zod.ZodBoolean; metadata: zod.ZodDefault>; created_at: zod.z.ZodISODateTime; updated_at: zod.z.ZodISODateTime; secret: zod.ZodString; }, zod.z.core.$strip>; /** * Permanently delete a webhook endpoint. Pending deliveries will be cancelled. * @summary Delete a webhook */ export declare const deleteWebhookPathIdRegExp: RegExp; export declare const DeleteWebhookParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const DeleteWebhookHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const DeleteWebhookResponse: zod.ZodObject<{ success: zod.ZodBoolean; }, zod.z.core.$strip>; /** * Send a test event to the webhook endpoint to verify connectivity. * @summary Test a webhook */ export declare const testWebhookPathIdRegExp: RegExp; export declare const TestWebhookParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const TestWebhookHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const testWebhookResponseIdMax = 36; export declare const testWebhookResponseWebhookIdMax = 36; export declare const testWebhookResponseEntityIdMax = 36; export declare const testWebhookResponseEventTypeMax = 100; export declare const testWebhookResponseResponseStatusMin = -2147483648; export declare const testWebhookResponseResponseStatusMax = 2147483647; export declare const testWebhookResponseResponseBodyMax = 10000; export declare const testWebhookResponseErrorMessageMax = 2000; export declare const testWebhookResponseAttemptMin = -2147483648; export declare const testWebhookResponseAttemptMax = 2147483647; export declare const testWebhookResponseMaxAttemptsMin = -2147483648; export declare const testWebhookResponseMaxAttemptsMax = 2147483647; export declare const testWebhookResponseDurationMsMin = -2147483648; export declare const testWebhookResponseDurationMsMax = 2147483647; export declare const TestWebhookResponse: zod.ZodObject<{ id: zod.ZodString; webhook_id: zod.ZodString; entity_id: zod.ZodString; event_type: zod.ZodString; status: zod.ZodEnum<{ pending: "pending"; success: "success"; failed: "failed"; }>; request_body: zod.ZodRecord; response_status: zod.ZodOptional>; response_body: zod.ZodOptional>; error_message: zod.ZodOptional>; attempt: zod.ZodNumber; max_attempts: zod.ZodNumber; next_retry_at: zod.ZodOptional>; duration_ms: zod.ZodOptional>; created_at: zod.z.ZodISODateTime; completed_at: zod.ZodOptional>; }, zod.z.core.$strip>; /** * Retrieve a paginated list of delivery attempts for a specific webhook. * @summary List webhook deliveries */ export declare const getWebhookDeliveriesPathIdRegExp: RegExp; export declare const GetWebhookDeliveriesParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const getWebhookDeliveriesQueryLimitDefault = 10; export declare const getWebhookDeliveriesQueryLimitMax = 100; export declare const GetWebhookDeliveriesQueryParams: zod.ZodObject<{ limit: zod.ZodDefault; next_cursor: zod.ZodOptional; prev_cursor: zod.ZodOptional; include_total_count: zod.ZodOptional; }, zod.z.core.$strip>; export declare const GetWebhookDeliveriesHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const getWebhookDeliveriesResponseDataItemIdMax = 36; export declare const getWebhookDeliveriesResponseDataItemWebhookIdMax = 36; export declare const getWebhookDeliveriesResponseDataItemEntityIdMax = 36; export declare const getWebhookDeliveriesResponseDataItemEventTypeMax = 100; export declare const getWebhookDeliveriesResponseDataItemResponseStatusMin = -2147483648; export declare const getWebhookDeliveriesResponseDataItemResponseStatusMax = 2147483647; export declare const getWebhookDeliveriesResponseDataItemResponseBodyMax = 10000; export declare const getWebhookDeliveriesResponseDataItemErrorMessageMax = 2000; export declare const getWebhookDeliveriesResponseDataItemAttemptMin = -2147483648; export declare const getWebhookDeliveriesResponseDataItemAttemptMax = 2147483647; export declare const getWebhookDeliveriesResponseDataItemMaxAttemptsMin = -2147483648; export declare const getWebhookDeliveriesResponseDataItemMaxAttemptsMax = 2147483647; export declare const getWebhookDeliveriesResponseDataItemDurationMsMin = -2147483648; export declare const getWebhookDeliveriesResponseDataItemDurationMsMax = 2147483647; export declare const GetWebhookDeliveriesResponse: zod.ZodObject<{ data: zod.ZodArray; request_body: zod.ZodRecord; response_status: zod.ZodOptional>; response_body: zod.ZodOptional>; error_message: zod.ZodOptional>; attempt: zod.ZodNumber; max_attempts: zod.ZodNumber; next_retry_at: zod.ZodOptional>; duration_ms: zod.ZodOptional>; created_at: zod.z.ZodISODateTime; completed_at: zod.ZodOptional>; }, zod.z.core.$strip>>; pagination: zod.ZodObject<{ total: zod.ZodNumber; next_cursor: zod.ZodNullable; prev_cursor: zod.ZodNullable; has_more: zod.ZodBoolean; }, zod.z.core.$strip>; }, zod.z.core.$strip>; /** * Generate a new signing secret for the webhook. The previous secret is immediately invalidated. * @summary Rotate webhook secret */ export declare const rotateWebhookSecretPathIdRegExp: RegExp; export declare const RotateWebhookSecretParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const RotateWebhookSecretHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const rotateWebhookSecretResponseIdMax = 36; export declare const rotateWebhookSecretResponseEntityIdMax = 36; export declare const rotateWebhookSecretResponseUrlMax = 2048; export declare const rotateWebhookSecretResponseDescriptionMax = 500; export declare const rotateWebhookSecretResponseSecretMax = 64; export declare const rotateWebhookSecretResponseMetadataDefault: {}; export declare const RotateWebhookSecretResponse: zod.ZodObject<{ id: zod.ZodString; entity_id: zod.ZodString; url: zod.ZodString; description: zod.ZodOptional>; secret: zod.ZodString; events: zod.ZodArray>; active: zod.ZodBoolean; metadata: zod.ZodDefault>; created_at: zod.z.ZodISODateTime; updated_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>; //# sourceMappingURL=webhooks.d.ts.map