/**
 * @module queue
 *
 * Queue API client for managing message queues, messages, destinations, and dead letter queues.
 *
 * This module provides a complete client for the Agentuity Queue API, supporting:
 * - **Queue Management**: Create, read, update, and delete message queues
 * - **Message Operations**: Publish, consume, acknowledge, and manage messages
 * - **Destinations**: Configure webhook endpoints for automatic message delivery
 * - **Dead Letter Queue**: Handle failed messages that exceeded retry limits
 *
 * @example Basic Queue Operations
 * ```typescript
 * import { createQueue, publishMessage, receiveMessage, ackMessage } from '@agentuity/server';
 *
 * // Create a worker queue
 * const queue = await createQueue(client, {
 *   name: 'order-processing',
 *   queue_type: 'worker',
 * });
 *
 * // Publish a message
 * await publishMessage(client, 'order-processing', {
 *   payload: { orderId: 123 },
 * });
 *
 * // Receive and acknowledge a message
 * const message = await receiveMessage(client, 'order-processing');
 * if (message) {
 *   // Process the message...
 *   await ackMessage(client, 'order-processing', message.id);
 * }
 * ```
 *
 * @example Webhook Destinations
 * ```typescript
 * import { createDestination } from '@agentuity/server';
 *
 * // Messages are automatically delivered to this URL
 * await createDestination(client, 'order-processing', {
 *   destination_type: 'http',
 *   config: { url: 'https://api.example.com/webhook' },
 * });
 * ```
 */
// ============================================================================
// Types & Schemas
// ============================================================================
export { 
// Analytics types
AnalyticsGranularitySchema, AnalyticsOptionsSchema, BatchPublishMessagesRequestSchema, ConsumeMessagesRequestSchema, CreateDestinationRequestSchema, CreateQueueRequestSchema, CreateSourceRequestSchema, DeadLetterMessageSchema, DeliveryLogSchema, DestinationAnalyticsSchema, DestinationSchema, DestinationStatsSchema, DestinationTypeSchema, HttpDestinationConfigSchema, LatencyStatsSchema, ListDeliveryLogsRequestSchema, ListDlqRequestSchema, ListMessagesRequestSchema, ListQueuesRequestSchema, ListSourceEventsRequestSchema, MessageSchema, MessageStateSchema, OrgAnalyticsSchema, OrgAnalyticsSummarySchema, PublishMessageRequestSchema, QueueAnalyticsSchema, QueueApiOptionsSchema, QueueCurrentStatsSchema, QueuePeriodStatsSchema, QueueSchema, QueueSettingsSchema, QueueStatsSchema, QueueSummarySchema, QueueTypeSchema, 
// Consumer types
ConsumerSchema, 
// Source types
SourceAuthTypeSchema, SourceEventSchema, SourceSchema, SSEStatsEventSchema, StreamAnalyticsOptionsSchema, TimePeriodSchema, TimeSeriesDataSchema, TimeSeriesPointSchema, UpdateDestinationRequestSchema, UpdateQueueRequestSchema, UpdateSourceRequestSchema, WebSocketAuthRequestSchema, WebSocketAuthResponseSchema, WebSocketMessageSchema, } from "./types.js";
// ============================================================================
// Errors
// ============================================================================
export { DestinationAlreadyExistsError, DestinationNotFoundError, MessageNotFoundError, QueueError, QueueInvalidArgumentError, SourceAlreadyExistsError, SourceNotFoundError, } from "./util.js";
// Runtime queue service exports (preferred defaults for shared barrel)
export * from "./service.js";
// ============================================================================
// Queue Operations
// ============================================================================
export { createQueue, DeleteQueueResponseSchema, deleteQueue, getQueue, listQueues, pauseQueue, QueueResponseSchema, QueuesListResponseSchema, resumeQueue, updateQueue, } from "./queues.js";
// ============================================================================
// Message Operations
// ============================================================================
export { AckNackResponseSchema, ackMessage, BatchPublishResponseSchema, batchPublishMessages, consumeMessages, DeleteMessageResponseSchema, deleteMessage, getMessage, getMessageByOffset, getQueueHead, getQueueTail, listMessages, MessageResponseSchema, MessagesListResponseSchema, nackMessage, OffsetResponseSchema, publishMessage, ReceiveResponseSchema, receiveMessage, replayMessage, } from "./messages.js";
// ============================================================================
// Dead Letter Queue Operations
// ============================================================================
export { DeleteDlqResponseSchema, DlqListResponseSchema, deleteDeadLetterMessage, listDeadLetterMessages, purgeDeadLetter, ReplayDlqResponseSchema, replayDeadLetterMessage, } from "./dlq.js";
// ============================================================================
// Destination Operations
// ============================================================================
export { createDestination, DeleteDestinationResponseSchema, DeliveryLogsListResponseSchema, DestinationResponseSchema, DestinationsListResponseSchema, deleteDestination, listDestinationDeliveries, listDestinations, updateDestination, } from "./destinations.js";
// ============================================================================
// Source Operations
// ============================================================================
export { createSource, DeleteSourceResponseSchema, deleteSource, getSource, listSourceEvents, listSources, SourceEventsListResponseSchema, SourceResponseSchema, SourcesListResponseSchema, updateSource, } from "./sources.js";
// ============================================================================
// Consumer Operations
// ============================================================================
export { listConsumers, ConsumersListResponseSchema, } from "./consumers.js";
// ============================================================================
// Analytics Operations
// ============================================================================
export { getOrgAnalytics, getOrgTimeSeries, getQueueAnalytics, getQueueTimeSeries, OrgAnalyticsResponseSchema, TimeSeriesResponseSchema, QueueAnalyticsResponseSchema, streamOrgAnalytics, streamQueueAnalytics, } from "./analytics.js";
// ============================================================================
// WebSocket Operations
// ============================================================================
export { createQueueWebSocket, QueueWebSocketOptionsSchema, subscribeToQueue, SubscribeToQueueOptionsSchema, } from "./websocket.js";
// ============================================================================
// Validation Utilities
// ============================================================================
export { MAX_BATCH_SIZE, MAX_DESCRIPTION_LENGTH, MAX_IDEMPOTENCY_KEY_LENGTH, MAX_IN_FLIGHT, MAX_METADATA_SIZE, MAX_PARTITION_KEY_LENGTH, MAX_PAYLOAD_SIZE, MAX_QUEUE_NAME_LENGTH, MAX_RETRIES, MAX_SOURCE_NAME_LENGTH, MAX_VISIBILITY_TIMEOUT, MIN_QUEUE_NAME_LENGTH, validateBatchSize, validateDescription, validateDestinationConfig, validateDestinationId, validateIdempotencyKey, validateLimit, validateMaxInFlight, validateMaxRetries, validateMessageId, validateOffset, validatePartitionKey, validatePayload, validateQueueName, validateQueueType, validateSourceId, validateSourceName, validateTTL, validateVisibilityTimeout, validateWebhookUrl, } from "./validation.js";
//# sourceMappingURL=index.js.map