@burdenoff/be-sdk 2026.516.2 → 2026.516.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +3 -3
- package/dist/cache/index.d.ts +2 -2
- package/dist/cache/index.js +2 -2
- package/dist/{chunk-6U2P4ANJ.js → chunk-5M3YVBTH.js} +5 -5
- package/dist/{chunk-6U2P4ANJ.js.map → chunk-5M3YVBTH.js.map} +1 -1
- package/dist/{chunk-RVB5QFZ4.js → chunk-6WYNQ26B.js} +4 -4
- package/dist/{chunk-RVB5QFZ4.js.map → chunk-6WYNQ26B.js.map} +1 -1
- package/dist/{chunk-5CAA3JST.js → chunk-CPO7ZXUQ.js} +3 -3
- package/dist/{chunk-5CAA3JST.js.map → chunk-CPO7ZXUQ.js.map} +1 -1
- package/dist/{chunk-24VR7PF3.js → chunk-HF3EFD7G.js} +2 -2
- package/dist/{chunk-24VR7PF3.js.map → chunk-HF3EFD7G.js.map} +1 -1
- package/dist/{chunk-V4RLPTTT.js → chunk-IFES3AQS.js} +3 -3
- package/dist/{chunk-V4RLPTTT.js.map → chunk-IFES3AQS.js.map} +1 -1
- package/dist/{chunk-SNW4BLF2.js → chunk-IPKUQS7K.js} +3 -3
- package/dist/{chunk-SNW4BLF2.js.map → chunk-IPKUQS7K.js.map} +1 -1
- package/dist/{chunk-Q6N74R6S.js → chunk-JO6XUKZ5.js} +3 -3
- package/dist/{chunk-Q6N74R6S.js.map → chunk-JO6XUKZ5.js.map} +1 -1
- package/dist/{chunk-7Y3RNUS3.js → chunk-NGA6NTFG.js} +4 -4
- package/dist/{chunk-7Y3RNUS3.js.map → chunk-NGA6NTFG.js.map} +1 -1
- package/dist/{chunk-RTQIRGVB.js → chunk-O6RHB2YP.js} +2 -2
- package/dist/chunk-O6RHB2YP.js.map +1 -0
- package/dist/{chunk-Z4IRLBWO.js → chunk-R3XPCYHM.js} +3 -3
- package/dist/{chunk-Z4IRLBWO.js.map → chunk-R3XPCYHM.js.map} +1 -1
- package/dist/{chunk-AQTNM2EY.js → chunk-RMDKB5O7.js} +3 -3
- package/dist/{chunk-AQTNM2EY.js.map → chunk-RMDKB5O7.js.map} +1 -1
- package/dist/{chunk-VKSB2K5E.js → chunk-SO57HNXV.js} +3 -4
- package/dist/chunk-SO57HNXV.js.map +1 -0
- package/dist/{chunk-U455UF4O.js → chunk-TXW7ZKA2.js} +5 -5
- package/dist/{chunk-U455UF4O.js.map → chunk-TXW7ZKA2.js.map} +1 -1
- package/dist/{chunk-75VTKG4Q.js → chunk-U2GLUZAO.js} +4 -6
- package/dist/chunk-U2GLUZAO.js.map +1 -0
- package/dist/{chunk-HIWTWIGQ.js → chunk-UIJWXPOQ.js} +7 -7
- package/dist/chunk-UIJWXPOQ.js.map +1 -0
- package/dist/{chunk-WBWM7UY7.js → chunk-UNPJMENC.js} +3 -3
- package/dist/{chunk-WBWM7UY7.js.map → chunk-UNPJMENC.js.map} +1 -1
- package/dist/{chunk-MQ6OE5QR.js → chunk-WCBKW3CL.js} +6 -11
- package/dist/chunk-WCBKW3CL.js.map +1 -0
- package/dist/{chunk-NGMEI42S.js → chunk-ZA3IGCDJ.js} +4 -4
- package/dist/chunk-ZA3IGCDJ.js.map +1 -0
- package/dist/database/index.js +3 -3
- package/dist/event-queue/index.d.ts +5 -5
- package/dist/event-queue/index.js +2 -2
- package/dist/export/index.d.ts +2 -2
- package/dist/export/index.js +5 -5
- package/dist/gateway/index.d.ts +2 -2
- package/dist/gateway/index.js +4 -4
- package/dist/gateway/security/index.js +1 -1
- package/dist/graph/index.d.ts +4 -4
- package/dist/graph/index.js +5 -5
- package/dist/{graph-emitter-Dp7UE1Yd.d.ts → graph-emitter-r5TylDBm.d.ts} +1 -2
- package/dist/{graphql-0_hoaeUf.d.ts → graphql-DH3L5Hj7.d.ts} +1 -1
- package/dist/{index-DlFDFyWD.d.ts → index-BVjR9llq.d.ts} +2 -2
- package/dist/{index-DJq060D-.d.ts → index-BZPEyVOl.d.ts} +3 -3
- package/dist/{index-tJYziwMs.d.ts → index-BqSh1K8I.d.ts} +3 -23
- package/dist/{index-D_Nc4UHi.d.ts → index-C7T0Xx19.d.ts} +8 -9
- package/dist/{index-CSPbpywb.d.ts → index-Caqvetqq.d.ts} +5 -10
- package/dist/{index-Bo58dlMU.d.ts → index-CygU_fXS.d.ts} +3 -3
- package/dist/{index-DYEts1R8.d.ts → index-DLyc5o_K.d.ts} +1 -1
- package/dist/{index-BMq3lFjj.d.ts → index-Dg4kH1VJ.d.ts} +1 -1
- package/dist/{index-zzKCairW.d.ts → index-DohaJRZP.d.ts} +2 -2
- package/dist/{index-RU_M5c74.d.ts → index-KA3gg4es.d.ts} +1 -1
- package/dist/{index-B6IwtUb1.d.ts → index-cnFnfIjk.d.ts} +1 -1
- package/dist/{index-TKcu5LDR.d.ts → index-fhOvuvlv.d.ts} +1 -1
- package/dist/index.d.ts +27 -27
- package/dist/index.js +87 -87
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +5 -5
- package/dist/instrumentation/index.d.ts +3 -3
- package/dist/layer/index.d.ts +2 -2
- package/dist/layer/index.js +2 -2
- package/dist/{layer-DDip18KY.d.ts → layer-CUu_cZ7d.d.ts} +1 -1
- package/dist/logger/index.d.ts +2 -2
- package/dist/notifications/index.d.ts +3 -3
- package/dist/notifications/index.js +3 -3
- package/dist/prisma/index.js +2 -2
- package/dist/rbac/index.d.ts +3 -3
- package/dist/rbac/index.js +3 -3
- package/dist/telemetry/index.d.ts +6 -6
- package/dist/telemetry/index.js.map +1 -1
- package/dist/temporal/index.d.ts +1 -1
- package/dist/temporal/index.js +2 -2
- package/dist/tracker/index.d.ts +4 -4
- package/dist/tracker/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-75VTKG4Q.js.map +0 -1
- package/dist/chunk-HIWTWIGQ.js.map +0 -1
- package/dist/chunk-MQ6OE5QR.js.map +0 -1
- package/dist/chunk-NGMEI42S.js.map +0 -1
- package/dist/chunk-RTQIRGVB.js.map +0 -1
- package/dist/chunk-VKSB2K5E.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/event-queue/index.ts","../src/event-queue/module-events.ts","../src/event-queue/events.ts"],"names":["createGraphEventEmitter","ModuleEventsService","productSource","subjectPrefix","loggerLabel","publisher","connected","connecting","config","moduleName","charAt","toUpperCase","slice","process","env","EventQueueFactory","createPublisherFromEnv","logger","info","MemoryEventPublisher","ensureConnected","connect","then","publish","subject","payload","data","buildPayload","type","action","id","userId","tenantId","workspaceId","correlationId","metadata","timestamp","Date","toISOString","buildSubject","entityType","normalizedType","replace","_match","p1","offset","toLowerCase","publishCreated","publishUpdated","publishDeleted","publishCustom","publishBulkCreated","_entityType","items","close","disconnect","healthCheck","result","isHealthy","status","healthy","message","error","createModuleEventsService","EventPriority","EventsModule","client","context","createStream","name","subjects","options","debug","mutation","variables","input","maxMessages","maxBytes","maxAge","storageType","replicas","response","query","getStreamInfo","deleteStream","purgeStream","sequence","purgedCount","createConsumer","streamName","consumerName","queueGroup","durableName","startPosition","ackMode","maxDeliver","ackWait","deleteConsumer","ackMessage","nakMessage","getConsumerInfo","createPublisher","stream","consumer","createConsumerFromEnv","MemoryEventConsumer"],"mappings":";;;;;;;AAAA,IAAA,mBAAA,GAAA;;;;;;;;;;;;;;;;AAAAA,EAAAA,uBAAAA,EAAAA,MAAAA,wBAAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;;;;;;;;;;;;ACsFO,IAAMC,sBAAN,MAAMA;EAtFb;;;AAuFmBC,EAAAA,aAAAA;AACAC,EAAAA,aAAAA;AACAC,EAAAA,WAAAA;AACTC,EAAAA,SAAAA;EACAC,SAAAA,GAAY,KAAA;EACZC,UAAAA,GAAmC,IAAA;AAE3C,EAAA,WAAA,CAAYC,MAAAA,EAA4B;AACtC,IAAA,IAAA,CAAKN,gBAAgBM,MAAAA,CAAOC,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n * This module provides a complete abstraction over event queue systems (NATS, RabbitMQ, Kafka, SQS, etc.)\n * allowing the application to publish and consume events without direct dependency on any specific queue implementation.\n *\n * Usage:\n *\n * // Publishing events (workspaces-backend)\n * import { createPublisher } from './utils/event-queue';\n *\n * const publisher = createPublisher();\n * await publisher.connect();\n *\n * await publisher.publish({\n * subject: 'workspace.created',\n * data: { workspaceId: '123', name: 'My Workspace' },\n * metadata: { userId: 'user-123', source: 'api' }\n * });\n *\n * // Consuming events (workspaces-workers)\n * import { createConsumer } from './core/event-queue';\n *\n * const consumer = createConsumer('WORKSPACE_EVENTS', 'workspace-consumer');\n * await consumer.connect();\n *\n * await consumer.subscribe({\n * subject: 'workspace.*',\n * handler: async (event) => {\n * logger.log('Received event:', event.data);\n * await event.ack();\n * }\n * });\n */\n// Import factory for use in convenience functions\nimport { EventQueueFactory } from './factory/EventQueueFactory.js';\n// Import implementations for use in convenience functions\nimport { MemoryEventPublisher, MemoryEventConsumer } from './implementations/memory/MemoryEventQueue.js';\n// Import interfaces for type annotations\nimport type { IEventConsumer } from './interfaces/IEventConsumer.js';\nimport type { IEventPublisher } from './interfaces/IEventPublisher.js';\n\n// Export interfaces\nexport type { IEventQueue } from './interfaces/IEventQueue.js';\nexport type { IEventPublisher, PublishOptions } from './interfaces/IEventPublisher.js';\nexport type { IEventConsumer, ISubscription } from './interfaces/IEventConsumer.js';\n\n// Export types\nexport type {\n EventMessage,\n EventMetadata,\n AcknowledgeableEvent,\n EventHandler,\n StreamConfig,\n SubscriptionOptions,\n ConsumerOptions,\n} from './types/events.js';\n\nexport { QueueType } from './types/config.js';\n\nexport type {\n BaseQueueConfig,\n PublisherConfig,\n ConsumerConfig,\n EventQueueHealthCheckResult,\n QueueStatistics,\n} from './types/config.js';\n\n// Backwards compatibility alias\nexport type { EventQueueHealthCheckResult as HealthCheckResult } from './types/config.js';\n\n// Export factory\nexport { EventQueueFactory } from './factory/EventQueueFactory.js';\n\n// Export Redis Streams implementations\nexport {\n RedisStreamsEventPublisher,\n RedisStreamsEventConsumer,\n RedisStreamsConnection,\n streamKey as redisStreamKey,\n dlqKey as redisDlqKey,\n} from './implementations/redis-streams/index.js';\n\n// Export Memory implementations (for development/testing or fallback)\nexport {\n MemoryEventBus,\n MemoryEventQueue,\n MemoryEventPublisher,\n MemoryEventConsumer,\n createMemoryPublisher,\n createMemoryConsumer,\n createGraphEventEmitter as createMemoryGraphEventEmitter,\n} from './implementations/memory/MemoryEventQueue.js';\n\n// Export Graph Event Emitter (Redis Streams-backed).\nexport {\n GraphEventEmitterImpl,\n getGraphEventEmitter,\n createGraphEventEmitter,\n resetGraphEventEmitter,\n} from './graph-emitter.js';\nexport type { GraphEventEmitter, EntityEventType, EntityEventRbacMetadata } from './graph-emitter.js';\n\n// Export Module Events Service\nexport { ModuleEventsService, createModuleEventsService } from './module-events.js';\nexport type { ModuleEventPayload, BulkEventPayload, ModuleEventsConfig } from './module-events.js';\n\n// Export high-level Events Module (GraphQL-based event publishing)\nexport { EventsModule } from './events.js';\nexport {\n EventPriority,\n type PublishEventOptions,\n type SubscribeOptions,\n type EventMessage as GraphQLEventMessage,\n type PublishResult,\n type StreamInfo,\n} from './events.js';\n\n/**\n * Create an event publisher from environment configuration.\n *\n * Backend resolution:\n * - `REDIS_URL` set → Redis Streams (the only supported backend since\n * the NATS retirement on 2026-05-16).\n * - `REDIS_URL` unset → in-memory (dev/test fallback).\n */\nexport function createPublisher(): IEventPublisher {\n if (process.env['REDIS_URL']) {\n return EventQueueFactory.createPublisherFromEnv();\n }\n return new MemoryEventPublisher();\n}\n\n/**\n * Create an event consumer from environment configuration.\n */\nexport function createConsumer(stream: string, consumer: string): IEventConsumer {\n if (process.env['REDIS_URL']) {\n return EventQueueFactory.createConsumerFromEnv(stream, consumer);\n }\n return new MemoryEventConsumer(stream, consumer);\n}\n","/**\n * Module Events Service\n *\n * Generic event publishing service that modules can configure to publish\n * domain-specific events to NATS JetStream.\n *\n * @module event-queue/module-events\n * @category Events\n *\n * @example\n * ```typescript\n * import { createModuleEventsService } from '@burdenoff/be-sdk/event-queue';\n *\n * // Create a configured event service for the tags module\n * const tagsEventsService = createModuleEventsService({\n * moduleName: 'tags',\n * entityTypes: ['Tag', 'Vocabulary', 'Assignment'],\n * });\n *\n * // Publish events\n * await tagsEventsService.publishCreated('Tag', tagId, tagData, userId);\n * await tagsEventsService.publishUpdated('Vocabulary', vocabId, vocabData, userId);\n * ```\n */\nimport { logger } from '../logger/index.js';\nimport type { IEventPublisher } from './interfaces/IEventPublisher.js';\nimport { MemoryEventPublisher } from './implementations/memory/MemoryEventQueue.js';\nimport { EventQueueFactory } from './factory/EventQueueFactory.js';\n\n/**\n * Event payload structure for module events\n */\nexport interface ModuleEventPayload {\n /** Entity ID */\n id: string;\n /** Entity type (e.g., 'UniversalTag', 'UniversalTagVocabulary') */\n type: string;\n /** Action performed */\n action: 'created' | 'updated' | 'deleted' | 'assigned' | 'removed' | string;\n /** Entity data */\n data: Record<string, unknown>;\n /** Event metadata */\n metadata: {\n tenantId?: string;\n workspaceId?: string;\n userId: string;\n timestamp: string;\n productSource: string;\n correlationId?: string;\n };\n}\n\n/**\n * Bulk event payload structure\n */\nexport interface BulkEventPayload {\n /** Items in the bulk operation */\n items: Array<{ id: string; data: Record<string, unknown> }>;\n /** Event metadata */\n metadata: {\n tenantId?: string;\n workspaceId?: string;\n userId: string;\n timestamp: string;\n productSource: string;\n };\n}\n\n/**\n * Configuration for module events service\n */\nexport interface ModuleEventsConfig {\n /** Module name (used as productSource and in subject prefixes) */\n moduleName: string;\n /** Subject prefix override (defaults to moduleName) */\n subjectPrefix?: string;\n /** Custom logger label */\n loggerLabel?: string;\n}\n\n/**\n * Generic Module Events Service\n *\n * Provides a consistent interface for publishing domain events across all modules.\n * Automatically falls back to in-memory publisher when NATS is not configured.\n */\nexport class ModuleEventsService {\n private readonly productSource: string;\n private readonly subjectPrefix: string;\n private readonly loggerLabel: string;\n private publisher: IEventPublisher;\n private connected = false;\n private connecting: Promise<void> | null = null;\n\n constructor(config: ModuleEventsConfig) {\n this.productSource = config.moduleName;\n this.subjectPrefix = config.subjectPrefix || config.moduleName;\n this.loggerLabel =\n config.loggerLabel || `${config.moduleName.charAt(0).toUpperCase()}${config.moduleName.slice(1)}EventsService`;\n\n // Initialize publisher based on environment\n if (process.env['REDIS_URL']) {\n this.publisher = EventQueueFactory.createPublisherFromEnv();\n logger.info(`[${this.loggerLabel}] Using Redis Streams publisher`);\n } else {\n this.publisher = new MemoryEventPublisher();\n logger.info(`[${this.loggerLabel}] Using in-memory publisher (REDIS_URL not configured)`);\n }\n }\n\n /**\n * Ensure publisher is connected before publishing\n */\n private async ensureConnected(): Promise<void> {\n if (this.connected) {\n return;\n }\n\n if (this.connecting) {\n await this.connecting;\n return;\n }\n\n this.connecting = this.publisher.connect().then(() => {\n this.connected = true;\n this.connecting = null;\n logger.info(`[${this.loggerLabel}] Publisher connected`);\n });\n\n await this.connecting;\n }\n\n /**\n * Publish an event to the queue\n */\n private async publish(subject: string, payload: unknown): Promise<void> {\n await this.ensureConnected();\n await this.publisher.publish({\n subject,\n data: payload as Record<string, unknown>,\n });\n }\n\n /**\n * Build event payload\n */\n private buildPayload(\n type: string,\n action: string,\n id: string,\n data: Record<string, unknown>,\n userId: string,\n tenantId?: string,\n workspaceId?: string,\n correlationId?: string\n ): ModuleEventPayload {\n return {\n id,\n type,\n action,\n data,\n metadata: {\n tenantId,\n workspaceId,\n userId,\n timestamp: new Date().toISOString(),\n productSource: this.productSource,\n ...(correlationId && { correlationId }),\n },\n };\n }\n\n /**\n * Build subject string\n */\n private buildSubject(entityType: string, action: string): string {\n // Convert entityType from PascalCase to lowercase (e.g., UniversalTag -> tag)\n const normalizedType = entityType\n .replace(/^Universal/, '')\n .replace(/([A-Z])/g, (_match, p1, offset) => (offset > 0 ? '_' : '') + (p1 as string).toLowerCase())\n .replace(/^_/, '');\n return `${this.subjectPrefix}.${normalizedType}.${action}`;\n }\n\n /**\n * Publish entity created event\n */\n async publishCreated(\n entityType: string,\n id: string,\n data: Record<string, unknown>,\n userId: string,\n tenantId?: string,\n workspaceId?: string\n ): Promise<void> {\n const payload = this.buildPayload(entityType, 'created', id, data, userId, tenantId, workspaceId);\n await this.publish(this.buildSubject(entityType, 'created'), payload);\n }\n\n /**\n * Publish entity updated event\n */\n async publishUpdated(\n entityType: string,\n id: string,\n data: Record<string, unknown>,\n userId: string,\n tenantId?: string,\n workspaceId?: string\n ): Promise<void> {\n const payload = this.buildPayload(entityType, 'updated', id, data, userId, tenantId, workspaceId);\n await this.publish(this.buildSubject(entityType, 'updated'), payload);\n }\n\n /**\n * Publish entity deleted event\n */\n async publishDeleted(\n entityType: string,\n id: string,\n userId: string,\n tenantId?: string,\n workspaceId?: string\n ): Promise<void> {\n const payload = this.buildPayload(entityType, 'deleted', id, {}, userId, tenantId, workspaceId);\n await this.publish(this.buildSubject(entityType, 'deleted'), payload);\n }\n\n /**\n * Publish custom action event\n */\n async publishCustom(\n entityType: string,\n action: string,\n id: string,\n data: Record<string, unknown>,\n userId: string,\n tenantId?: string,\n workspaceId?: string\n ): Promise<void> {\n const payload = this.buildPayload(entityType, action, id, data, userId, tenantId, workspaceId);\n await this.publish(this.buildSubject(entityType, action), payload);\n }\n\n /**\n * Publish bulk created event\n */\n async publishBulkCreated(\n _entityType: string,\n items: Array<{ id: string; data: Record<string, unknown> }>,\n userId: string,\n tenantId?: string,\n workspaceId?: string\n ): Promise<void> {\n const payload: BulkEventPayload = {\n items,\n metadata: {\n tenantId,\n workspaceId,\n userId,\n timestamp: new Date().toISOString(),\n productSource: this.productSource,\n },\n };\n await this.publish(`${this.subjectPrefix}.bulk.created`, payload);\n }\n\n /**\n * Close event queue connection\n */\n async close(): Promise<void> {\n if (this.connected) {\n await this.publisher.disconnect();\n this.connected = false;\n logger.info(`[${this.loggerLabel}] Publisher disconnected`);\n }\n }\n\n /**\n * Get health check status\n */\n async healthCheck(): Promise<{ healthy: boolean; message: string }> {\n const result = await this.publisher.healthCheck();\n const isHealthy = result.status === 'healthy';\n return {\n healthy: isHealthy,\n message: result.error || (isHealthy ? 'Healthy' : 'Unhealthy'),\n };\n }\n}\n\n/**\n * Create a module events service instance\n */\nexport function createModuleEventsService(config: ModuleEventsConfig): ModuleEventsService {\n return new ModuleEventsService(config);\n}\n","/**\n * Events Module\n * Helpers for sending events to the Redis Streams event queue\n */\n\nimport type { BurdenoffGraphQLClient } from '../client/graphql.js';\nimport type { SDKContext } from '../types/index.js';\nimport { logger } from '../logger/index.js';\n\nexport enum EventPriority {\n LOW = 'low',\n NORMAL = 'normal',\n HIGH = 'high',\n CRITICAL = 'critical',\n}\n\nexport interface PublishEventOptions {\n /** Event subject/topic */\n subject: string;\n /** Event payload */\n data: Record<string, unknown>;\n /** Event priority */\n priority?: EventPriority;\n /** Event metadata */\n metadata?: Record<string, unknown>;\n /** Delay delivery by milliseconds */\n delay?: number;\n /** Message ID (for deduplication) */\n messageId?: string;\n /** Workspace context */\n workspaceId?: string;\n /** Organization context */\n organizationId?: string;\n}\n\nexport interface SubscribeOptions {\n /** Subject pattern to subscribe to */\n subject: string;\n /** Queue group name */\n queueGroup?: string;\n /** Durable consumer name */\n durableName?: string;\n /** Start from specific position */\n startPosition?: 'first' | 'last' | 'new';\n /** Acknowledge mode */\n ackMode?: 'explicit' | 'auto';\n /** Max messages to deliver */\n maxDeliver?: number;\n /** Acknowledgment timeout in milliseconds */\n ackWait?: number;\n}\n\nexport interface EventMessage {\n id: string;\n subject: string;\n data: Record<string, unknown>;\n priority: EventPriority;\n metadata?: Record<string, unknown>;\n workspaceId?: string;\n organizationId?: string;\n publishedAt: string;\n publishedBy?: string;\n}\n\nexport interface PublishResult {\n messageId: string;\n subject: string;\n sequence: number;\n timestamp: string;\n}\n\nexport interface StreamInfo {\n name: string;\n subjects: string[];\n messageCount: number;\n byteCount: number;\n firstSequence: number;\n lastSequence: number;\n consumerCount: number;\n}\n\n/**\n * Events Module\n */\nexport class EventsModule {\n constructor(\n private client: BurdenoffGraphQLClient,\n private context: SDKContext\n ) {}\n\n /**\n * Create stream\n */\n public async createStream(\n name: string,\n subjects: string[],\n options?: {\n maxMessages?: number;\n maxBytes?: number;\n maxAge?: number;\n storageType?: 'file' | 'memory';\n replicas?: number;\n }\n ): Promise<StreamInfo> {\n logger.debug('[Events] Creating stream', { name, subjects });\n\n const mutation = `\n mutation CreateStream($input: CreateStreamInput!) {\n createStream(input: $input) {\n name\n subjects\n messageCount\n byteCount\n firstSequence\n lastSequence\n consumerCount\n }\n }\n `;\n\n const variables = {\n input: {\n name,\n subjects,\n maxMessages: options?.maxMessages,\n maxBytes: options?.maxBytes,\n maxAge: options?.maxAge,\n storageType: options?.storageType || 'file',\n replicas: options?.replicas || 1,\n },\n };\n\n const response = await this.client.query<{ createStream: StreamInfo }>(mutation, variables, this.context);\n\n logger.info('[Events] Stream created', { name });\n\n return response.createStream;\n }\n\n /**\n * Get stream info\n */\n public async getStreamInfo(name: string): Promise<StreamInfo> {\n logger.debug('[Events] Getting stream info', { name });\n\n const query = `\n query GetStreamInfo($name: String!) {\n getStreamInfo(name: $name) {\n name\n subjects\n messageCount\n byteCount\n firstSequence\n lastSequence\n consumerCount\n }\n }\n `;\n\n const response = await this.client.query<{ getStreamInfo: StreamInfo }>(query, { name }, this.context);\n\n return response.getStreamInfo;\n }\n\n /**\n * Delete stream\n */\n public async deleteStream(name: string): Promise<boolean> {\n logger.debug('[Events] Deleting stream', { name });\n\n const mutation = `\n mutation DeleteStream($name: String!) {\n deleteStream(name: $name) {\n success\n }\n }\n `;\n\n await this.client.query(mutation, { name }, this.context);\n\n logger.info('[Events] Stream deleted', { name });\n\n return true;\n }\n\n /**\n * Purge stream messages\n */\n public async purgeStream(name: string, options?: { subject?: string; sequence?: number }): Promise<number> {\n logger.debug('[Events] Purging stream', { name, options });\n\n const mutation = `\n mutation PurgeStream($name: String!, $subject: String, $sequence: Int) {\n purgeStream(name: $name, subject: $subject, sequence: $sequence) {\n purgedCount\n }\n }\n `;\n\n const response = await this.client.query<{ purgeStream: { purgedCount: number } }>(\n mutation,\n { name, subject: options?.subject, sequence: options?.sequence },\n this.context\n );\n\n logger.info('[Events] Stream purged', { name, purgedCount: response.purgeStream.purgedCount });\n\n return response.purgeStream.purgedCount;\n }\n\n /**\n * Create consumer\n */\n public async createConsumer(\n streamName: string,\n consumerName: string,\n options: SubscribeOptions\n ): Promise<{ name: string; pending: number }> {\n logger.debug('[Events] Creating consumer', { streamName, consumerName });\n\n const mutation = `\n mutation CreateConsumer($input: CreateConsumerInput!) {\n createConsumer(input: $input) {\n name\n pending\n }\n }\n `;\n\n const variables = {\n input: {\n streamName,\n consumerName,\n subject: options.subject,\n queueGroup: options.queueGroup,\n durableName: options.durableName,\n startPosition: options.startPosition || 'last',\n ackMode: options.ackMode || 'explicit',\n maxDeliver: options.maxDeliver || 5,\n ackWait: options.ackWait || 30000,\n },\n };\n\n const response = await this.client.query<{ createConsumer: { name: string; pending: number } }>(\n mutation,\n variables,\n this.context\n );\n\n logger.info('[Events] Consumer created', { consumerName });\n\n return response.createConsumer;\n }\n\n /**\n * Delete consumer\n */\n public async deleteConsumer(streamName: string, consumerName: string): Promise<boolean> {\n logger.debug('[Events] Deleting consumer', { streamName, consumerName });\n\n const mutation = `\n mutation DeleteConsumer($streamName: String!, $consumerName: String!) {\n deleteConsumer(streamName: $streamName, consumerName: $consumerName) {\n success\n }\n }\n `;\n\n await this.client.query(mutation, { streamName, consumerName }, this.context);\n\n logger.info('[Events] Consumer deleted', { consumerName });\n\n return true;\n }\n\n /**\n * Acknowledge message\n */\n public async ackMessage(streamName: string, consumerName: string, sequence: number): Promise<boolean> {\n logger.debug('[Events] Acknowledging message', { streamName, consumerName, sequence });\n\n const mutation = `\n mutation AckMessage($streamName: String!, $consumerName: String!, $sequence: Int!) {\n ackMessage(streamName: $streamName, consumerName: $consumerName, sequence: $sequence) {\n success\n }\n }\n `;\n\n await this.client.query(mutation, { streamName, consumerName, sequence }, this.context);\n\n return true;\n }\n\n /**\n * Negative acknowledge message (requeue)\n */\n public async nakMessage(streamName: string, consumerName: string, sequence: number): Promise<boolean> {\n logger.debug('[Events] Negative acknowledging message', { streamName, consumerName, sequence });\n\n const mutation = `\n mutation NakMessage($streamName: String!, $consumerName: String!, $sequence: Int!) {\n nakMessage(streamName: $streamName, consumerName: $consumerName, sequence: $sequence) {\n success\n }\n }\n `;\n\n await this.client.query(mutation, { streamName, consumerName, sequence }, this.context);\n\n return true;\n }\n\n /**\n * Get consumer info\n */\n public async getConsumerInfo(\n streamName: string,\n consumerName: string\n ): Promise<{\n name: string;\n pending: number;\n redelivered: number;\n numAckPending: number;\n }> {\n logger.debug('[Events] Getting consumer info', { streamName, consumerName });\n\n const query = `\n query GetConsumerInfo($streamName: String!, $consumerName: String!) {\n getConsumerInfo(streamName: $streamName, consumerName: $consumerName) {\n name\n pending\n redelivered\n numAckPending\n }\n }\n `;\n\n const response = await this.client.query<{\n getConsumerInfo: {\n name: string;\n pending: number;\n redelivered: number;\n numAckPending: number;\n };\n }>(query, { streamName, consumerName }, this.context);\n\n return response.getConsumerInfo;\n }\n}\n"]}
|
|
@@ -72,14 +72,14 @@ function buildInternalGatewayUrl(layer) {
|
|
|
72
72
|
__name(buildInternalGatewayUrl, "buildInternalGatewayUrl");
|
|
73
73
|
var DEFAULT_LAYER_RESOURCES = {
|
|
74
74
|
wspace: {
|
|
75
|
-
|
|
75
|
+
eventQueueUrl: "redis://wspace-shared-valkey:6379",
|
|
76
76
|
valkeyUrl: "valkey://wspace-valkey:6379",
|
|
77
77
|
temporalAddress: "wspace-temporal:7233",
|
|
78
78
|
temporalNamespace: "wspace-default",
|
|
79
79
|
rbacGatewayUrl: buildInternalGatewayUrl("wspace")
|
|
80
80
|
},
|
|
81
81
|
global: {
|
|
82
|
-
|
|
82
|
+
eventQueueUrl: "redis://global-shared-valkey:6379",
|
|
83
83
|
valkeyUrl: "valkey://global-valkey:6379",
|
|
84
84
|
temporalAddress: "global-temporal:7233",
|
|
85
85
|
temporalNamespace: "global-default",
|
|
@@ -99,5 +99,5 @@ var DEFAULT_GATEWAY_RETRY_CONFIG = {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
export { DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS };
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-ZA3IGCDJ.js.map
|
|
103
|
+
//# sourceMappingURL=chunk-ZA3IGCDJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/layer.ts"],"names":["DEFAULT_GATEWAY_ROUTING","wspace","layer","internalGateway","host","port","graphqlPath","crossLayerGateway","global","DEFAULT_LAYER_STREAMS","name","subjects","description","buildInternalGatewayUrl","routing","protocol","DEFAULT_LAYER_RESOURCES","eventQueueUrl","valkeyUrl","temporalAddress","temporalNamespace","rbacGatewayUrl","DEFAULT_CIRCUIT_BREAKER_CONFIG","failureThreshold","resetTimeout","failureWindow","DEFAULT_GATEWAY_RETRY_CONFIG","maxAttempts","initialDelay","maxDelay","backoffMultiplier"],"mappings":";;;AA8IO,IAAMA,uBAAAA,GAAsE;EACjFC,MAAAA,EAAQ;IACNC,KAAAA,EAAO,QAAA;IACPC,eAAAA,EAAiB;MACfC,IAAAA,EAAM,oBAAA;MACNC,IAAAA,EAAM,IAAA;MACNC,WAAAA,EAAa;AACf,KAAA;IACAC,iBAAAA,EAAmB;MACjBH,IAAAA,EAAM,uBAAA;MACNC,IAAAA,EAAM,GAAA;MACNC,WAAAA,EAAa;AACf;AACF,GAAA;EACAE,MAAAA,EAAQ;IACNN,KAAAA,EAAO,QAAA;IACPC,eAAAA,EAAiB;MACfC,IAAAA,EAAM,oBAAA;MACNC,IAAAA,EAAM,IAAA;MACNC,WAAAA,EAAa;AACf,KAAA;IACAC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,mCAAA;IACfC,SAAAA,EAAW,6BAAA;IACXC,eAAAA,EAAiB,sBAAA;IACjBC,iBAAAA,EAAmB,gBAAA;AACnBC,IAAAA,cAAAA,EAAgBR,wBAAwB,QAAA;AAC1C;AACF;AA4BO,IAAMS,8BAAAA,GAAuD;EAClEC,gBAAAA,EAAkB,CAAA;EAClBC,YAAAA,EAAc,GAAA;EACdC,aAAAA,EAAe;AACjB;AAkCO,IAAMC,4BAAAA,GAAmD;EAC9DC,WAAAA,EAAa,CAAA;EACbC,YAAAA,EAAc,GAAA;EACdC,QAAAA,EAAU,GAAA;EACVC,iBAAAA,EAAmB;AACrB","file":"chunk-ZA3IGCDJ.js","sourcesContent":["/**\n * Layer Type Definitions for Burdenoff Backend SDK\n *\n * This module defines types for the layer-aware architecture,\n * supporting wspace (workspace) and global (tenant) service layers.\n *\n * @module types/layer\n * @category Configuration\n */\n\n/**\n * Service layer types\n * - wspace: Workspace layer services (product-specific operations)\n * - global: Global/tenant layer services (cross-product services)\n */\nexport type ServiceLayer = 'wspace' | 'global';\n\n/**\n * Layer configuration for a service\n */\nexport interface LayerConfig {\n /**\n * Layer type this service belongs to\n * @example 'wspace' or 'global'\n */\n layer: ServiceLayer;\n\n /**\n * Service name (e.g., 'wspace-tags-svc', 'global-auth-svc')\n */\n serviceName: string;\n\n /**\n * Service identity for bypass headers\n * Used for M2M authentication\n * @default serviceName\n */\n serviceIdentity?: string;\n}\n\n/**\n * Gateway configuration per layer\n */\nexport interface LayerGatewayConfig {\n /**\n * Internal gateway URL (same layer int-gateway)\n * - wspace services use: wspace-int-gateway\n * - global services use: global-int-gateway\n */\n internalGatewayUrl: string;\n\n /**\n * Cross-layer gateway URL (cross layer public-gateway)\n * - wspace services use: global-public-gateway\n * - global services use: wspace-public-gateway\n */\n crossLayerGatewayUrl: string;\n}\n\n/**\n * Resource URLs per layer\n */\nexport interface LayerResourceUrls {\n /**\n * Event queue (Redis Streams) URL for the layer\n */\n eventQueueUrl: string;\n\n /**\n * Valkey/Redis URL for the layer\n */\n valkeyUrl: string;\n\n /**\n * Temporal server address for the layer\n */\n temporalAddress: string;\n\n /**\n * Temporal namespace for the layer\n */\n temporalNamespace: string;\n\n /**\n * RBAC gateway URL (for permission checks)\n */\n rbacGatewayUrl: string;\n}\n\n/**\n * Complete layer configuration including gateways and resources\n */\nexport interface LayerFullConfig extends LayerConfig {\n /**\n * Gateway configuration\n */\n gateways: LayerGatewayConfig;\n\n /**\n * Resource URLs\n */\n resources: LayerResourceUrls;\n}\n\n/**\n * Gateway routing rules by layer\n * Defines which gateway to use for same-layer vs cross-layer communication\n */\nexport interface GatewayRoutingConfig {\n /**\n * Layer this config applies to\n */\n layer: ServiceLayer;\n\n /**\n * Internal gateway for same-layer M2M calls\n */\n internalGateway: {\n /** Gateway host (without protocol) */\n host: string;\n /** Gateway port */\n port: number;\n /** GraphQL endpoint path */\n graphqlPath: string;\n };\n\n /**\n * Public gateway for cross-layer calls\n */\n crossLayerGateway: {\n /** Gateway host (without protocol) */\n host: string;\n /** Gateway port */\n port: number;\n /** GraphQL endpoint path */\n graphqlPath: string;\n };\n}\n\n/**\n * Default gateway routing configuration\n */\nexport const DEFAULT_GATEWAY_ROUTING: Record<ServiceLayer, GatewayRoutingConfig> = {\n wspace: {\n layer: 'wspace',\n internalGateway: {\n host: 'wspace-int-gateway',\n port: 4001,\n graphqlPath: '/workspaces/graphql',\n },\n crossLayerGateway: {\n host: 'global-public-gateway',\n port: 4000,\n graphqlPath: '/global/graphql',\n },\n },\n global: {\n layer: 'global',\n internalGateway: {\n host: 'global-int-gateway',\n port: 4002,\n graphqlPath: '/global/graphql',\n },\n crossLayerGateway: {\n host: 'wspace-public-gateway',\n port: 4003,\n graphqlPath: '/workspaces/graphql',\n },\n },\n};\n\n/**\n * Default stream configurations per layer\n */\nexport const DEFAULT_LAYER_STREAMS: Record<\n ServiceLayer,\n Array<{ name: string; subjects: string[]; description?: string }>\n> = {\n wspace: [\n {\n name: 'WSPACE_EVENTS',\n subjects: ['wspace.>'],\n description: 'Workspace layer events stream',\n },\n {\n name: 'WSPACE_GRAPH_EVENTS',\n subjects: ['graph.>'],\n description: 'Workspace layer graph events stream (captures all graph entity events)',\n },\n ],\n global: [\n {\n name: 'GLOBAL_EVENTS',\n subjects: ['global.>'],\n description: 'Global layer events stream',\n },\n {\n name: 'GLOBAL_GRAPH_EVENTS',\n subjects: ['graph.>'],\n description: 'Global layer graph events stream (captures all graph entity events)',\n },\n ],\n};\n\n/**\n * Build internal gateway URL for a layer\n * Uses HTTP for internal K8s communication (mTLS via Istio service mesh)\n */\nfunction buildInternalGatewayUrl(layer: ServiceLayer): string {\n const routing = DEFAULT_GATEWAY_ROUTING[layer];\n const { host, port, graphqlPath } = routing.internalGateway;\n // Internal K8s services use plain HTTP with mTLS handled by Istio\n const protocol = 'http';\n return `${protocol}://${host}:${port}${graphqlPath}`;\n}\n\n/**\n * Default resource URLs per layer\n *\n * Note: Internal K8s service communication uses plain HTTP with mTLS via Istio.\n * External traffic uses HTTPS via ingress gateway.\n */\nexport const DEFAULT_LAYER_RESOURCES: Record<ServiceLayer, LayerResourceUrls> = {\n wspace: {\n eventQueueUrl: 'redis://wspace-shared-valkey:6379',\n valkeyUrl: 'valkey://wspace-valkey:6379',\n temporalAddress: 'wspace-temporal:7233',\n temporalNamespace: 'wspace-default',\n rbacGatewayUrl: buildInternalGatewayUrl('wspace'),\n },\n global: {\n eventQueueUrl: 'redis://global-shared-valkey:6379',\n valkeyUrl: 'valkey://global-valkey:6379',\n temporalAddress: 'global-temporal:7233',\n temporalNamespace: 'global-default',\n rbacGatewayUrl: buildInternalGatewayUrl('global'),\n },\n};\n\n/**\n * Circuit breaker configuration for gateway client\n */\nexport interface CircuitBreakerConfig {\n /**\n * Number of failures before opening circuit\n * @default 5\n */\n failureThreshold: number;\n\n /**\n * Time in milliseconds to wait before attempting to close circuit\n * @default 30000 (30 seconds)\n */\n resetTimeout: number;\n\n /**\n * Time window in milliseconds for counting failures\n * @default 60000 (60 seconds)\n */\n failureWindow: number;\n}\n\n/**\n * Default circuit breaker configuration\n */\nexport const DEFAULT_CIRCUIT_BREAKER_CONFIG: CircuitBreakerConfig = {\n failureThreshold: 5,\n resetTimeout: 30000,\n failureWindow: 60000,\n};\n\n/**\n * Retry configuration for gateway client\n */\nexport interface GatewayRetryConfig {\n /**\n * Maximum number of retry attempts\n * @default 3\n */\n maxAttempts: number;\n\n /**\n * Initial delay in milliseconds before first retry\n * @default 1000 (1 second)\n */\n initialDelay: number;\n\n /**\n * Maximum delay in milliseconds between retries\n * @default 10000 (10 seconds)\n */\n maxDelay: number;\n\n /**\n * Backoff multiplier for exponential backoff\n * @default 2\n */\n backoffMultiplier: number;\n}\n\n/**\n * Default retry configuration\n */\nexport const DEFAULT_GATEWAY_RETRY_CONFIG: GatewayRetryConfig = {\n maxAttempts: 3,\n initialDelay: 1000,\n maxDelay: 10000,\n backoffMultiplier: 2,\n};\n\n/**\n * Headers automatically added by gateway client for M2M calls\n */\nexport interface GatewayRequestHeaders {\n /**\n * Actor ID making the request\n */\n 'x-actor-id'?: string;\n\n /**\n * Actor type\n */\n 'x-actor-type'?: 'user' | 'app' | 'service' | 'super_admin';\n\n /**\n * Workspace ID for the request context\n */\n 'x-workspace-id'?: string;\n\n /**\n * Service identity for bypass validation\n */\n 'x-service-identity'?: string;\n\n /**\n * Call type indicator\n */\n 'x-call-type'?: 'internal' | 'cross-layer';\n\n /**\n * Permission bypass flag\n */\n 'x-bypass-permission'?: string;\n\n /**\n * RBAC bypass flag (set by gateway)\n */\n 'x-rbac-bypass'?: 'true' | 'false';\n\n /**\n * Bypass source (set by gateway)\n */\n 'x-bypass-source'?: string;\n\n /**\n * Bypass timestamp (set by gateway)\n */\n 'x-bypass-timestamp'?: string;\n}\n"]}
|
package/dist/database/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DatabaseModule, closeClickHouseConnection, createTable, executeQuery, getClickHouseClient, getClickHouseStats, insertData, testClickHouseConnection } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { DatabaseModule, closeClickHouseConnection, createTable, executeQuery, getClickHouseClient, getClickHouseStats, insertData, testClickHouseConnection } from '../chunk-CPO7ZXUQ.js';
|
|
2
|
+
import '../chunk-O6RHB2YP.js';
|
|
3
|
+
import '../chunk-ZA3IGCDJ.js';
|
|
4
4
|
import '../chunk-CBZNP6RF.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgeableEvent, B as BaseQueueConfig, a as BulkEventPayload, C as ConsumerConfig, b as
|
|
2
|
-
export { E as EntityEventRbacMetadata, a as EntityEventType, b as GraphEventEmitter, G as GraphEventEmitterImpl,
|
|
3
|
-
import '../layer-
|
|
4
|
-
import '../graphql-
|
|
1
|
+
export { A as AcknowledgeableEvent, B as BaseQueueConfig, a as BulkEventPayload, C as ConsumerConfig, b as ConsumerOptions, c as EventHandler, d as EventMessage, e as EventMetadata, f as EventPriority, g as EventQueueFactory, h as EventQueueHealthCheckResult, E as EventsModule, j as GraphQLEventMessage, h as HealthCheckResult, k as IEventConsumer, I as IEventPublisher, l as IEventQueue, m as ISubscription, M as MemoryEventBus, n as MemoryEventConsumer, o as MemoryEventPublisher, p as MemoryEventQueue, q as ModuleEventPayload, r as ModuleEventsConfig, s as ModuleEventsService, P as PublishEventOptions, t as PublishOptions, u as PublishResult, v as PublisherConfig, Q as QueueStatistics, w as QueueType, R as RedisStreamsConnection, x as RedisStreamsEventConsumer, y as RedisStreamsEventPublisher, S as StreamConfig, z as StreamInfo, D as SubscribeOptions, F as SubscriptionOptions, G as createConsumer, H as createMemoryConsumer, J as createMemoryGraphEventEmitter, K as createMemoryPublisher, L as createModuleEventsService, N as createPublisher, O as redisDlqKey, T as redisStreamKey } from '../index-C7T0Xx19.js';
|
|
2
|
+
export { E as EntityEventRbacMetadata, a as EntityEventType, b as GraphEventEmitter, G as GraphEventEmitterImpl, c as createGraphEventEmitter, g as getGraphEventEmitter, r as resetGraphEventEmitter } from '../graph-emitter-r5TylDBm.js';
|
|
3
|
+
import '../layer-CUu_cZ7d.js';
|
|
4
|
+
import '../graphql-DH3L5Hj7.js';
|
|
5
5
|
import 'graphql-request';
|
|
6
|
-
import '../index-
|
|
6
|
+
import '../index-Caqvetqq.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { EventPriority, EventsModule, ModuleEventsService, createConsumer, createModuleEventsService, createPublisher } from '../chunk-
|
|
2
|
-
export { GraphEventEmitterImpl, MemoryEventBus, MemoryEventConsumer, MemoryEventPublisher, MemoryEventQueue,
|
|
1
|
+
export { EventPriority, EventsModule, ModuleEventsService, createConsumer, createModuleEventsService, createPublisher } from '../chunk-WCBKW3CL.js';
|
|
2
|
+
export { GraphEventEmitterImpl, MemoryEventBus, MemoryEventConsumer, MemoryEventPublisher, MemoryEventQueue, createGraphEventEmitter2 as createGraphEventEmitter, createMemoryConsumer, createGraphEventEmitter as createMemoryGraphEventEmitter, createMemoryPublisher, getGraphEventEmitter, resetGraphEventEmitter } from '../chunk-SO57HNXV.js';
|
|
3
3
|
export { EventQueueFactory, QueueType, RedisStreamsEventConsumer, RedisStreamsEventPublisher } from '../chunk-TM5RQ6P2.js';
|
|
4
4
|
export { RedisStreamsConnection, dlqKey as redisDlqKey, streamKey as redisStreamKey } from '../chunk-MVHOP4IG.js';
|
|
5
5
|
import '../chunk-CBZNP6RF.js';
|
package/dist/export/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { B as BaseModuleExporter, C as CSVConversionOptions, E as ExportActorType, a as ExportConfig, b as ExportFetchOptions, c as ExportFetchResult, d as ExportFormat, e as ExportFormatEnum, f as ExportFormatGql, g as ExportJob, h as ExportJobResult, j as ExportJobStatus, k as ExportOptions, l as ExportProgress, m as ExportResult, n as ExportableModule, P as PaginateQueryFn, o as PaginateResult, p as PaginatedQueryOptions, q as PaginatedResult, r as PaginationParams, s as PaginationService, T as TriggerExportJobParams, t as convertToCSV, u as csvToJSON, v as estimateCSVSize, w as getCSVHeaders, x as parseCSV, y as triggerExportJob } from '../index-
|
|
2
|
-
import '../layer-
|
|
1
|
+
export { B as BaseModuleExporter, C as CSVConversionOptions, E as ExportActorType, a as ExportConfig, b as ExportFetchOptions, c as ExportFetchResult, d as ExportFormat, e as ExportFormatEnum, f as ExportFormatGql, g as ExportJob, h as ExportJobResult, j as ExportJobStatus, k as ExportOptions, l as ExportProgress, m as ExportResult, n as ExportableModule, P as PaginateQueryFn, o as PaginateResult, p as PaginatedQueryOptions, q as PaginatedResult, r as PaginationParams, s as PaginationService, T as TriggerExportJobParams, t as convertToCSV, u as csvToJSON, v as estimateCSVSize, w as getCSVHeaders, x as parseCSV, y as triggerExportJob } from '../index-Dg4kH1VJ.js';
|
|
2
|
+
import '../layer-CUu_cZ7d.js';
|
package/dist/export/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { BaseModuleExporter, PaginationService, convertToCSV, csvToJSON, estimateCSVSize, getCSVHeaders, parseCSV, triggerExportJob } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { BaseModuleExporter, PaginationService, convertToCSV, csvToJSON, estimateCSVSize, getCSVHeaders, parseCSV, triggerExportJob } from '../chunk-IPKUQS7K.js';
|
|
2
|
+
import '../chunk-TXW7ZKA2.js';
|
|
3
|
+
import '../chunk-HF3EFD7G.js';
|
|
4
|
+
import '../chunk-UIJWXPOQ.js';
|
|
5
|
+
import '../chunk-ZA3IGCDJ.js';
|
|
6
6
|
import '../chunk-CBZNP6RF.js';
|
|
7
7
|
import '../chunk-XE4OXN2W.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/gateway/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CircuitBreakerStats, a as CircuitState, G as GatewayClient, b as GatewayClientConfig, c as GatewayClientHealth, d as GatewayError, e as GatewayErrorType, f as GraphQLError, g as GraphQLRequestOptions, h as GraphQLResponse, I as ICircuitBreaker, j as IGatewayClient, R as RequestContext, k as createGatewayClient, l as createGatewayClientFromEnv } from '../index-
|
|
1
|
+
export { C as CircuitBreakerStats, a as CircuitState, G as GatewayClient, b as GatewayClientConfig, c as GatewayClientHealth, d as GatewayError, e as GatewayErrorType, f as GraphQLError, g as GraphQLRequestOptions, h as GraphQLResponse, I as ICircuitBreaker, j as IGatewayClient, R as RequestContext, k as createGatewayClient, l as createGatewayClientFromEnv } from '../index-KA3gg4es.js';
|
|
2
2
|
export { i as Security } from '../index-UhkH2eaB.js';
|
|
3
|
-
import '../layer-
|
|
3
|
+
import '../layer-CUu_cZ7d.js';
|
|
4
4
|
import 'graphql-yoga';
|
package/dist/gateway/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CircuitState, GatewayClient, GatewayError, GatewayErrorType, createGatewayClient, createGatewayClientFromEnv } from '../chunk-
|
|
2
|
-
export { security_exports as Security } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { CircuitState, GatewayClient, GatewayError, GatewayErrorType, createGatewayClient, createGatewayClientFromEnv } from '../chunk-TXW7ZKA2.js';
|
|
2
|
+
export { security_exports as Security } from '../chunk-HF3EFD7G.js';
|
|
3
|
+
import '../chunk-UIJWXPOQ.js';
|
|
4
|
+
import '../chunk-ZA3IGCDJ.js';
|
|
5
5
|
import '../chunk-CBZNP6RF.js';
|
|
6
6
|
import '../chunk-XE4OXN2W.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-
|
|
1
|
+
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-HF3EFD7G.js';
|
|
2
2
|
import '../../chunk-CBZNP6RF.js';
|
|
3
3
|
import '../../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../graphql-
|
|
2
|
-
import '../index-
|
|
3
|
-
export { A as AUDIT_FIELDS, C as CreateEdgeOptions, a as CreateNodeOptions, D as DefineEntityConfigOptions, b as DefineGraphConfigOptions, c as DefineRelationshipConfigOptions, E as EdgeDocument, d as EntityDefinition, e as EntityEventContext, f as EntityEventData, g as EntityEventHook, h as EntityFetcher, j as EntityGraphConfig, k as EntityRbacConfig, l as EntityVertex, m as ExtractedEntityData, n as ExtractedRelationshipData, F as FieldMapper, o as GenericEntityConfig, p as GenericEntityRbacConfig, q as GenericGraphConfig, r as GenericRelationshipConfig, s as GraphEdge, t as GraphEntityConfig, u as GraphEntityExport, v as GraphEvent, w as GraphEventOptions, x as GraphEventPublishOptions, y as GraphEventType, z as GraphEventsHelper, B as GraphEventsHelperConfig, H as GraphEventsPublisher, I as GraphExportResponse, J as GraphExportService, K as GraphExportServiceConfig, G as GraphModule, L as GraphNode, M as GraphRegistry, N as GraphRelationshipData, O as GraphRelationshipExport, P as GraphSchema, Q as GraphValidationError, R as GraphValidationResult, S as InitializeGraphOptions, T as ModuleGraph, U as ModuleGraphConfig, V as ModuleGraphDefinition, W as PrismaGraphIntegration, X as PrismaGraphIntegrationOptions, Y as ProductFacet, Z as QueryGraphOptions, _ as RelationshipDefinition, $ as RelationshipEventData, a0 as RelationshipExportData, a1 as RelationshipFetcher, a2 as RelationshipGraphConfig, a3 as SOFT_DELETE_FIELDS, a4 as STANDARD_FIELDS, a5 as SearchFacets, a6 as SearchFilters, a7 as SearchResponse, a8 as SearchResult, a9 as TENANT_FIELDS, aa as TraverseDirection, ab as TraverseOptions, ac as TraverseResult, ad as TypeFacet, ae as ValidationErrorType, af as createEntityEvent, ag as createGraphEventsHelper, ah as createGraphExportService, ai as createPrismaGraphIntegration, aj as createRelationshipEvent, ak as createRelationshipFromEntity, al as defineEntity, am as defineGraphConfig, an as defineModuleGraph, ao as defineRelationship, ap as extractEntityTitle, aq as extractMinimalFields, ar as getCollectionForEntity, as as getGraphEventsPublisher, at as getGraphStats, au as initializeGraph, av as isGraphInitialized, aw as parseRelationship, ax as shouldSyncEntity, ay as shouldSyncRelationship } from '../index-
|
|
1
|
+
import '../graphql-DH3L5Hj7.js';
|
|
2
|
+
import '../index-Caqvetqq.js';
|
|
3
|
+
export { A as AUDIT_FIELDS, C as CreateEdgeOptions, a as CreateNodeOptions, D as DefineEntityConfigOptions, b as DefineGraphConfigOptions, c as DefineRelationshipConfigOptions, E as EdgeDocument, d as EntityDefinition, e as EntityEventContext, f as EntityEventData, g as EntityEventHook, h as EntityFetcher, j as EntityGraphConfig, k as EntityRbacConfig, l as EntityVertex, m as ExtractedEntityData, n as ExtractedRelationshipData, F as FieldMapper, o as GenericEntityConfig, p as GenericEntityRbacConfig, q as GenericGraphConfig, r as GenericRelationshipConfig, s as GraphEdge, t as GraphEntityConfig, u as GraphEntityExport, v as GraphEvent, w as GraphEventOptions, x as GraphEventPublishOptions, y as GraphEventType, z as GraphEventsHelper, B as GraphEventsHelperConfig, H as GraphEventsPublisher, I as GraphExportResponse, J as GraphExportService, K as GraphExportServiceConfig, G as GraphModule, L as GraphNode, M as GraphRegistry, N as GraphRelationshipData, O as GraphRelationshipExport, P as GraphSchema, Q as GraphValidationError, R as GraphValidationResult, S as InitializeGraphOptions, T as ModuleGraph, U as ModuleGraphConfig, V as ModuleGraphDefinition, W as PrismaGraphIntegration, X as PrismaGraphIntegrationOptions, Y as ProductFacet, Z as QueryGraphOptions, _ as RelationshipDefinition, $ as RelationshipEventData, a0 as RelationshipExportData, a1 as RelationshipFetcher, a2 as RelationshipGraphConfig, a3 as SOFT_DELETE_FIELDS, a4 as STANDARD_FIELDS, a5 as SearchFacets, a6 as SearchFilters, a7 as SearchResponse, a8 as SearchResult, a9 as TENANT_FIELDS, aa as TraverseDirection, ab as TraverseOptions, ac as TraverseResult, ad as TypeFacet, ae as ValidationErrorType, af as createEntityEvent, ag as createGraphEventsHelper, ah as createGraphExportService, ai as createPrismaGraphIntegration, aj as createRelationshipEvent, ak as createRelationshipFromEntity, al as defineEntity, am as defineGraphConfig, an as defineModuleGraph, ao as defineRelationship, ap as extractEntityTitle, aq as extractMinimalFields, ar as getCollectionForEntity, as as getGraphEventsPublisher, at as getGraphStats, au as initializeGraph, av as isGraphInitialized, aw as parseRelationship, ax as shouldSyncEntity, ay as shouldSyncRelationship } from '../index-CygU_fXS.js';
|
|
4
4
|
export { E as EntityEventType, G as GraphEventEmitter, a as GraphMiddlewareConfig, b as addGraphExtension } from '../prisma-extension-krXnYnrN.js';
|
|
5
5
|
import 'graphql-request';
|
|
6
6
|
import '../client-CSjIrYKS.js';
|
|
7
7
|
import '@prisma/adapter-pg';
|
|
8
8
|
import 'pg';
|
|
9
|
-
import '../graph-emitter-
|
|
9
|
+
import '../graph-emitter-r5TylDBm.js';
|
package/dist/graph/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { AUDIT_FIELDS, GraphEventsPublisher, GraphExportService, GraphModule, SOFT_DELETE_FIELDS, STANDARD_FIELDS, TENANT_FIELDS, createGraphEventsHelper, createGraphExportService, createPrismaGraphIntegration, createRelationshipFromEntity, defineEntity, defineGraphConfig, defineModuleGraph, defineRelationship, getGraphEventsPublisher, getGraphStats, initializeGraph, isGraphInitialized } from '../chunk-
|
|
1
|
+
export { AUDIT_FIELDS, GraphEventsPublisher, GraphExportService, GraphModule, SOFT_DELETE_FIELDS, STANDARD_FIELDS, TENANT_FIELDS, createGraphEventsHelper, createGraphExportService, createPrismaGraphIntegration, createRelationshipFromEntity, defineEntity, defineGraphConfig, defineModuleGraph, defineRelationship, getGraphEventsPublisher, getGraphStats, initializeGraph, isGraphInitialized } from '../chunk-NGA6NTFG.js';
|
|
2
2
|
export { GraphRegistry, addGraphExtension, createEntityEvent, createRelationshipEvent, extractEntityTitle, extractMinimalFields, getCollectionForEntity, parseRelationship, shouldSyncEntity, shouldSyncRelationship } from '../chunk-TKBD2ONF.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-WCBKW3CL.js';
|
|
4
|
+
import '../chunk-SO57HNXV.js';
|
|
5
5
|
import '../chunk-TM5RQ6P2.js';
|
|
6
6
|
import '../chunk-MVHOP4IG.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-O6RHB2YP.js';
|
|
8
|
+
import '../chunk-ZA3IGCDJ.js';
|
|
9
9
|
import '../chunk-CBZNP6RF.js';
|
|
10
10
|
import '../chunk-XE4OXN2W.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -42,7 +42,6 @@ declare class GraphEventEmitterImpl implements GraphEventEmitter {
|
|
|
42
42
|
}
|
|
43
43
|
declare function getGraphEventEmitter(): GraphEventEmitter;
|
|
44
44
|
declare function createGraphEventEmitter(): GraphEventEmitter;
|
|
45
|
-
declare const NatsGraphEventEmitter: typeof GraphEventEmitterImpl;
|
|
46
45
|
declare function resetGraphEventEmitter(): Promise<void>;
|
|
47
46
|
|
|
48
|
-
export { type EntityEventRbacMetadata as E, GraphEventEmitterImpl as G,
|
|
47
|
+
export { type EntityEventRbacMetadata as E, GraphEventEmitterImpl as G, type EntityEventType as a, type GraphEventEmitter as b, createGraphEventEmitter as c, getGraphEventEmitter as g, resetGraphEventEmitter as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LayerConfig, S as ServiceLayer, a as LayerFullConfig, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, d as LayerGatewayConfig, e as LayerResourceUrls } from './layer-
|
|
1
|
+
import { L as LayerConfig, S as ServiceLayer, a as LayerFullConfig, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, d as LayerGatewayConfig, e as LayerResourceUrls } from './layer-CUu_cZ7d.js';
|
|
2
2
|
|
|
3
3
|
declare class LayerManager {
|
|
4
4
|
private config;
|
|
@@ -13,7 +13,7 @@ declare class LayerManager {
|
|
|
13
13
|
getServiceIdentity(): string;
|
|
14
14
|
getInternalGatewayUrl(): string;
|
|
15
15
|
getCrossLayerGatewayUrl(): string;
|
|
16
|
-
|
|
16
|
+
getEventQueueUrl(): string;
|
|
17
17
|
getValkeyUrl(): string;
|
|
18
18
|
getTemporalAddress(): string;
|
|
19
19
|
getTemporalNamespace(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
2
|
-
import { S as SDKContext } from './index-
|
|
3
|
-
import { N as NotificationType } from './index-
|
|
1
|
+
import { B as BurdenoffGraphQLClient } from './graphql-DH3L5Hj7.js';
|
|
2
|
+
import { S as SDKContext } from './index-Caqvetqq.js';
|
|
3
|
+
import { N as NotificationType } from './index-DohaJRZP.js';
|
|
4
4
|
|
|
5
5
|
declare enum ActivityType {
|
|
6
6
|
CREATE = "create",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ServiceLayer } from './layer-
|
|
1
|
+
import { S as ServiceLayer } from './layer-CUu_cZ7d.js';
|
|
2
2
|
|
|
3
3
|
interface DatabaseConfig {
|
|
4
4
|
url: string;
|
|
@@ -41,22 +41,6 @@ interface ClickHouseConfig {
|
|
|
41
41
|
maxConnections?: number;
|
|
42
42
|
compression?: boolean;
|
|
43
43
|
}
|
|
44
|
-
interface NATSConfig {
|
|
45
|
-
url?: string;
|
|
46
|
-
servers?: string | string[];
|
|
47
|
-
user?: string;
|
|
48
|
-
password?: string;
|
|
49
|
-
token?: string;
|
|
50
|
-
creds?: string;
|
|
51
|
-
credsFile?: string;
|
|
52
|
-
maxReconnectAttempts?: number;
|
|
53
|
-
reconnectTimeWait?: number;
|
|
54
|
-
tls?: {
|
|
55
|
-
certFile?: string;
|
|
56
|
-
keyFile?: string;
|
|
57
|
-
caFile?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
44
|
interface MetricsConfig {
|
|
61
45
|
enabled?: boolean;
|
|
62
46
|
port?: number;
|
|
@@ -92,8 +76,6 @@ interface AnalyticsConfig {
|
|
|
92
76
|
samplingRate?: number;
|
|
93
77
|
}
|
|
94
78
|
interface EventQueueConfig {
|
|
95
|
-
nats?: NATSConfig;
|
|
96
|
-
useNATSPubSub?: boolean;
|
|
97
79
|
defaultStreams?: {
|
|
98
80
|
name: string;
|
|
99
81
|
subjects: string[];
|
|
@@ -129,7 +111,6 @@ interface InitializedSDKState {
|
|
|
129
111
|
valkey?: unknown;
|
|
130
112
|
clickhouse?: unknown;
|
|
131
113
|
eventPublisher?: unknown;
|
|
132
|
-
nats?: unknown;
|
|
133
114
|
layerManager?: unknown;
|
|
134
115
|
gatewayClient?: unknown;
|
|
135
116
|
graphSyncEnabled: boolean;
|
|
@@ -153,7 +134,6 @@ type index_InitializedSDKState = InitializedSDKState;
|
|
|
153
134
|
type index_LayerInitConfig = LayerInitConfig;
|
|
154
135
|
type index_LoggingConfig = LoggingConfig;
|
|
155
136
|
type index_MetricsConfig = MetricsConfig;
|
|
156
|
-
type index_NATSConfig = NATSConfig;
|
|
157
137
|
type index_ObservabilityConfig = ObservabilityConfig;
|
|
158
138
|
type index_OpenTelemetryConfig = OpenTelemetryConfig;
|
|
159
139
|
type index_SDKCacheConfig = SDKCacheConfig;
|
|
@@ -163,7 +143,7 @@ declare const index_initializeBurdenoffSDK: typeof initializeBurdenoffSDK;
|
|
|
163
143
|
declare const index_isSDKInitialized: typeof isSDKInitialized;
|
|
164
144
|
declare const index_resetSDK: typeof resetSDK;
|
|
165
145
|
declare namespace index {
|
|
166
|
-
export { type index_AnalyticsConfig as AnalyticsConfig, type index_BurdenoffSDKInitConfig as BurdenoffSDKInitConfig, type index_ClickHouseConfig as ClickHouseConfig, type index_DatabaseConfig as DatabaseConfig, type index_EventQueueConfig as EventQueueConfig, type index_GraphSyncConfig as GraphSyncConfig, type index_InitializedSDKState as InitializedSDKState, type index_LayerInitConfig as LayerInitConfig, type index_LoggingConfig as LoggingConfig, type index_MetricsConfig as MetricsConfig, type
|
|
146
|
+
export { type index_AnalyticsConfig as AnalyticsConfig, type index_BurdenoffSDKInitConfig as BurdenoffSDKInitConfig, type index_ClickHouseConfig as ClickHouseConfig, type index_DatabaseConfig as DatabaseConfig, type index_EventQueueConfig as EventQueueConfig, type index_GraphSyncConfig as GraphSyncConfig, type index_InitializedSDKState as InitializedSDKState, type index_LayerInitConfig as LayerInitConfig, type index_LoggingConfig as LoggingConfig, type index_MetricsConfig as MetricsConfig, type index_ObservabilityConfig as ObservabilityConfig, type index_OpenTelemetryConfig as OpenTelemetryConfig, type index_SDKCacheConfig as SDKCacheConfig, type index_SDKValkeyCacheConfig as SDKValkeyCacheConfig, index_getSDKState as getSDKState, index_initializeBurdenoffSDK as initializeBurdenoffSDK, index_isSDKInitialized as isSDKInitialized, index_resetSDK as resetSDK };
|
|
167
147
|
}
|
|
168
148
|
|
|
169
|
-
export { type AnalyticsConfig as A, type BurdenoffSDKInitConfig as B, type ClickHouseConfig as C, type DatabaseConfig as D, type EventQueueConfig as E, type GraphSyncConfig as G, type InitializedSDKState as I, type LayerInitConfig as L, type MetricsConfig as M, type
|
|
149
|
+
export { type AnalyticsConfig as A, type BurdenoffSDKInitConfig as B, type ClickHouseConfig as C, type DatabaseConfig as D, type EventQueueConfig as E, type GraphSyncConfig as G, type InitializedSDKState as I, type LayerInitConfig as L, type MetricsConfig as M, type ObservabilityConfig as O, type SDKCacheConfig as S, type LoggingConfig as a, type OpenTelemetryConfig as b, type SDKValkeyCacheConfig as c, initializeBurdenoffSDK as d, isSDKInitialized as e, getSDKState as g, index as i, resetSDK as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ServiceLayer } from './layer-
|
|
2
|
-
import { E as EntityEventRbacMetadata, a as EntityEventType$1, b as GraphEventEmitter$1, G as GraphEventEmitterImpl,
|
|
3
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
4
|
-
import { S as SDKContext } from './index-
|
|
1
|
+
import { S as ServiceLayer } from './layer-CUu_cZ7d.js';
|
|
2
|
+
import { E as EntityEventRbacMetadata, a as EntityEventType$1, b as GraphEventEmitter$1, G as GraphEventEmitterImpl, c as createGraphEventEmitter$1, g as getGraphEventEmitter, r as resetGraphEventEmitter } from './graph-emitter-r5TylDBm.js';
|
|
3
|
+
import { B as BurdenoffGraphQLClient } from './graphql-DH3L5Hj7.js';
|
|
4
|
+
import { S as SDKContext } from './index-Caqvetqq.js';
|
|
5
5
|
|
|
6
6
|
interface EventMessage$1<T = unknown> {
|
|
7
7
|
id: string;
|
|
@@ -41,7 +41,7 @@ interface StreamConfig {
|
|
|
41
41
|
maxConsumers?: number;
|
|
42
42
|
duplicateWindow?: number;
|
|
43
43
|
}
|
|
44
|
-
interface
|
|
44
|
+
interface ConsumerOptions {
|
|
45
45
|
name: string;
|
|
46
46
|
stream: string;
|
|
47
47
|
filterSubject?: string;
|
|
@@ -623,6 +623,7 @@ type index_AcknowledgeableEvent<T = unknown> = AcknowledgeableEvent<T>;
|
|
|
623
623
|
type index_BaseQueueConfig = BaseQueueConfig;
|
|
624
624
|
type index_BulkEventPayload = BulkEventPayload;
|
|
625
625
|
type index_ConsumerConfig = ConsumerConfig;
|
|
626
|
+
type index_ConsumerOptions = ConsumerOptions;
|
|
626
627
|
declare const index_EntityEventRbacMetadata: typeof EntityEventRbacMetadata;
|
|
627
628
|
type index_EventHandler<T = unknown> = EventHandler<T>;
|
|
628
629
|
type index_EventMetadata = EventMetadata;
|
|
@@ -650,8 +651,6 @@ type index_ModuleEventPayload = ModuleEventPayload;
|
|
|
650
651
|
type index_ModuleEventsConfig = ModuleEventsConfig;
|
|
651
652
|
type index_ModuleEventsService = ModuleEventsService;
|
|
652
653
|
declare const index_ModuleEventsService: typeof ModuleEventsService;
|
|
653
|
-
type index_NATSConsumerOptions = NATSConsumerOptions;
|
|
654
|
-
declare const index_NatsGraphEventEmitter: typeof NatsGraphEventEmitter;
|
|
655
654
|
type index_PublishEventOptions = PublishEventOptions;
|
|
656
655
|
type index_PublishOptions = PublishOptions;
|
|
657
656
|
type index_PublishResult = PublishResult;
|
|
@@ -677,7 +676,7 @@ declare const index_createPublisher: typeof createPublisher;
|
|
|
677
676
|
declare const index_getGraphEventEmitter: typeof getGraphEventEmitter;
|
|
678
677
|
declare const index_resetGraphEventEmitter: typeof resetGraphEventEmitter;
|
|
679
678
|
declare namespace index {
|
|
680
|
-
export { type index_AcknowledgeableEvent as AcknowledgeableEvent, type index_BaseQueueConfig as BaseQueueConfig, type index_BulkEventPayload as BulkEventPayload, type index_ConsumerConfig as ConsumerConfig, index_EntityEventRbacMetadata as EntityEventRbacMetadata, EntityEventType$1 as EntityEventType, type index_EventHandler as EventHandler, type EventMessage$1 as EventMessage, type index_EventMetadata as EventMetadata, index_EventPriority as EventPriority, index_EventQueueFactory as EventQueueFactory, type index_EventQueueHealthCheckResult as EventQueueHealthCheckResult, index_EventsModule as EventsModule, GraphEventEmitter$1 as GraphEventEmitter, index_GraphEventEmitterImpl as GraphEventEmitterImpl, type EventMessage as GraphQLEventMessage, type EventQueueHealthCheckResult as HealthCheckResult, type index_IEventConsumer as IEventConsumer, type index_IEventPublisher as IEventPublisher, type index_IEventQueue as IEventQueue, type index_ISubscription as ISubscription, index_MemoryEventBus as MemoryEventBus, index_MemoryEventConsumer as MemoryEventConsumer, index_MemoryEventPublisher as MemoryEventPublisher, index_MemoryEventQueue as MemoryEventQueue, type index_ModuleEventPayload as ModuleEventPayload, type index_ModuleEventsConfig as ModuleEventsConfig, index_ModuleEventsService as ModuleEventsService, type
|
|
679
|
+
export { type index_AcknowledgeableEvent as AcknowledgeableEvent, type index_BaseQueueConfig as BaseQueueConfig, type index_BulkEventPayload as BulkEventPayload, type index_ConsumerConfig as ConsumerConfig, type index_ConsumerOptions as ConsumerOptions, index_EntityEventRbacMetadata as EntityEventRbacMetadata, EntityEventType$1 as EntityEventType, type index_EventHandler as EventHandler, type EventMessage$1 as EventMessage, type index_EventMetadata as EventMetadata, index_EventPriority as EventPriority, index_EventQueueFactory as EventQueueFactory, type index_EventQueueHealthCheckResult as EventQueueHealthCheckResult, index_EventsModule as EventsModule, GraphEventEmitter$1 as GraphEventEmitter, index_GraphEventEmitterImpl as GraphEventEmitterImpl, type EventMessage as GraphQLEventMessage, type EventQueueHealthCheckResult as HealthCheckResult, type index_IEventConsumer as IEventConsumer, type index_IEventPublisher as IEventPublisher, type index_IEventQueue as IEventQueue, type index_ISubscription as ISubscription, index_MemoryEventBus as MemoryEventBus, index_MemoryEventConsumer as MemoryEventConsumer, index_MemoryEventPublisher as MemoryEventPublisher, index_MemoryEventQueue as MemoryEventQueue, type index_ModuleEventPayload as ModuleEventPayload, type index_ModuleEventsConfig as ModuleEventsConfig, index_ModuleEventsService as ModuleEventsService, type index_PublishEventOptions as PublishEventOptions, type index_PublishOptions as PublishOptions, type index_PublishResult as PublishResult, type index_PublisherConfig as PublisherConfig, type index_QueueStatistics as QueueStatistics, index_QueueType as QueueType, index_RedisStreamsConnection as RedisStreamsConnection, index_RedisStreamsEventConsumer as RedisStreamsEventConsumer, index_RedisStreamsEventPublisher as RedisStreamsEventPublisher, type index_StreamConfig as StreamConfig, type index_StreamInfo as StreamInfo, type index_SubscribeOptions as SubscribeOptions, type index_SubscriptionOptions as SubscriptionOptions, index_createConsumer as createConsumer, createGraphEventEmitter$1 as createGraphEventEmitter, index_createMemoryConsumer as createMemoryConsumer, createGraphEventEmitter as createMemoryGraphEventEmitter, index_createMemoryPublisher as createMemoryPublisher, index_createModuleEventsService as createModuleEventsService, index_createPublisher as createPublisher, index_getGraphEventEmitter as getGraphEventEmitter, dlqKey as redisDlqKey, streamKey as redisStreamKey, index_resetGraphEventEmitter as resetGraphEventEmitter };
|
|
681
680
|
}
|
|
682
681
|
|
|
683
|
-
export { type AcknowledgeableEvent as A, type BaseQueueConfig as B, type ConsumerConfig as C, type
|
|
682
|
+
export { type AcknowledgeableEvent as A, type BaseQueueConfig as B, type ConsumerConfig as C, type SubscribeOptions as D, EventsModule as E, type SubscriptionOptions as F, createConsumer as G, createMemoryConsumer as H, type IEventPublisher as I, createGraphEventEmitter as J, createMemoryPublisher as K, createModuleEventsService as L, MemoryEventBus as M, createPublisher as N, dlqKey as O, type PublishEventOptions as P, type QueueStatistics as Q, RedisStreamsConnection as R, type StreamConfig as S, streamKey as T, type BulkEventPayload as a, type ConsumerOptions as b, type EventHandler as c, type EventMessage$1 as d, type EventMetadata as e, EventPriority as f, EventQueueFactory as g, type EventQueueHealthCheckResult as h, index as i, type EventMessage as j, type IEventConsumer as k, type IEventQueue as l, type ISubscription as m, MemoryEventConsumer as n, MemoryEventPublisher as o, MemoryEventQueue as p, type ModuleEventPayload as q, type ModuleEventsConfig as r, ModuleEventsService as s, type PublishOptions as t, type PublishResult as u, type PublisherConfig as v, QueueType as w, RedisStreamsEventConsumer as x, RedisStreamsEventPublisher as y, type StreamInfo as z };
|
|
@@ -4,7 +4,7 @@ interface SDKConfig {
|
|
|
4
4
|
timeout?: number;
|
|
5
5
|
retry?: RetryConfig;
|
|
6
6
|
logger?: LoggerConfig;
|
|
7
|
-
|
|
7
|
+
eventQueue?: EventQueueSDKConfig;
|
|
8
8
|
temporalModuleType?: 'workspace' | 'tenant';
|
|
9
9
|
temporalAddress?: string;
|
|
10
10
|
temporalNamespace?: string;
|
|
@@ -37,20 +37,15 @@ interface SDKContext {
|
|
|
37
37
|
productId?: string;
|
|
38
38
|
[key: string]: unknown;
|
|
39
39
|
}
|
|
40
|
-
interface
|
|
40
|
+
interface EventQueueSDKConfig {
|
|
41
41
|
url?: string;
|
|
42
|
-
servers?: string[];
|
|
43
|
-
user?: string;
|
|
44
42
|
password?: string;
|
|
45
|
-
token?: string;
|
|
46
|
-
creds?: string;
|
|
47
|
-
credsFile?: string;
|
|
48
43
|
maxReconnectAttempts?: number;
|
|
49
44
|
reconnectTimeWait?: number;
|
|
50
45
|
name?: string;
|
|
51
46
|
autoConnect?: boolean;
|
|
52
47
|
}
|
|
53
|
-
interface
|
|
48
|
+
interface EventQueueHealthStatus {
|
|
54
49
|
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
55
50
|
connected: boolean;
|
|
56
51
|
url?: string;
|
|
@@ -64,7 +59,7 @@ interface TemporalHealthStatus {
|
|
|
64
59
|
details?: Record<string, unknown>;
|
|
65
60
|
}
|
|
66
61
|
interface SDKHealthStatus {
|
|
67
|
-
|
|
62
|
+
eventQueue: EventQueueHealthStatus;
|
|
68
63
|
temporal: TemporalHealthStatus;
|
|
69
64
|
}
|
|
70
65
|
interface SDKShutdownOptions {
|
|
@@ -72,4 +67,4 @@ interface SDKShutdownOptions {
|
|
|
72
67
|
force?: boolean;
|
|
73
68
|
}
|
|
74
69
|
|
|
75
|
-
export type {
|
|
70
|
+
export type { EventQueueHealthStatus as E, LoggerConfig as L, SDKContext as S, TemporalHealthStatus as T, SDKConfig as a, SDKHealthStatus as b, SDKShutdownOptions as c, EventQueueSDKConfig as d, LoggerTransport as e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
2
|
-
import { S as SDKContext } from './index-
|
|
1
|
+
import { B as BurdenoffGraphQLClient } from './graphql-DH3L5Hj7.js';
|
|
2
|
+
import { S as SDKContext } from './index-Caqvetqq.js';
|
|
3
3
|
import { P as PrismaClientBase } from './client-CSjIrYKS.js';
|
|
4
|
-
import { G as GraphEventEmitterImpl, E as EntityEventRbacMetadata } from './graph-emitter-
|
|
4
|
+
import { G as GraphEventEmitterImpl, E as EntityEventRbacMetadata } from './graph-emitter-r5TylDBm.js';
|
|
5
5
|
import { G as GraphEventEmitter, E as EntityEventType, a as GraphMiddlewareConfig, b as addGraphExtension } from './prisma-extension-krXnYnrN.js';
|
|
6
6
|
|
|
7
7
|
type GraphEventType = 'entity.created' | 'entity.updated' | 'entity.deleted' | 'relationship.created' | 'relationship.updated' | 'relationship.deleted';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
2
|
-
import { S as SDKContext } from './index-
|
|
1
|
+
import { B as BurdenoffGraphQLClient } from './graphql-DH3L5Hj7.js';
|
|
2
|
+
import { S as SDKContext } from './index-Caqvetqq.js';
|
|
3
3
|
|
|
4
4
|
declare enum NotificationChannel$1 {
|
|
5
5
|
EMAIL = "EMAIL",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as GatewayRequestHeaders, S as ServiceLayer, C as CircuitBreakerConfig, g as GatewayRetryConfig } from './layer-
|
|
1
|
+
import { f as GatewayRequestHeaders, S as ServiceLayer, C as CircuitBreakerConfig, g as GatewayRetryConfig } from './layer-CUu_cZ7d.js';
|
|
2
2
|
import { i as index$1 } from './index-UhkH2eaB.js';
|
|
3
3
|
|
|
4
4
|
interface GatewayClientConfig {
|