@zintrust/core 2.0.2 → 2.0.4

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.
Files changed (72) hide show
  1. package/README.md +1 -1
  2. package/package.json +89 -5
  3. package/src/auth-index.d.ts +8 -0
  4. package/src/auth-index.d.ts.map +1 -0
  5. package/src/auth-index.js +8 -0
  6. package/src/cli/scaffolding/GovernanceScaffolder.js +1 -1
  7. package/src/cli-index.d.ts +13 -0
  8. package/src/cli-index.d.ts.map +1 -0
  9. package/src/cli-index.js +11 -0
  10. package/src/cloudflare-index.d.ts +6 -0
  11. package/src/cloudflare-index.d.ts.map +1 -0
  12. package/src/cloudflare-index.js +5 -0
  13. package/src/config-index.d.ts +38 -0
  14. package/src/config-index.d.ts.map +1 -0
  15. package/src/config-index.js +23 -0
  16. package/src/constants-index.d.ts +7 -0
  17. package/src/constants-index.d.ts.map +1 -0
  18. package/src/constants-index.js +6 -0
  19. package/src/index.d.ts +0 -3
  20. package/src/index.d.ts.map +1 -1
  21. package/src/index.js +4 -5
  22. package/src/microservices-index.d.ts +7 -0
  23. package/src/microservices-index.d.ts.map +1 -0
  24. package/src/microservices-index.js +5 -0
  25. package/src/orm-index.d.ts +23 -0
  26. package/src/orm-index.d.ts.map +1 -0
  27. package/src/orm-index.js +18 -0
  28. package/src/proxy-index.d.ts +11 -0
  29. package/src/proxy-index.d.ts.map +1 -0
  30. package/src/proxy-index.js +10 -0
  31. package/src/redis-index.d.ts +6 -0
  32. package/src/redis-index.d.ts.map +1 -0
  33. package/src/redis-index.js +6 -0
  34. package/src/runtime-index.d.ts +105 -0
  35. package/src/runtime-index.d.ts.map +1 -0
  36. package/src/runtime-index.js +102 -0
  37. package/src/scripts-index.d.ts +8 -0
  38. package/src/scripts-index.d.ts.map +1 -0
  39. package/src/scripts-index.js +9 -0
  40. package/src/security-index.d.ts +23 -0
  41. package/src/security-index.d.ts.map +1 -0
  42. package/src/security-index.js +28 -0
  43. package/src/seeders-index.d.ts +8 -0
  44. package/src/seeders-index.d.ts.map +1 -0
  45. package/src/seeders-index.js +7 -0
  46. package/src/templates-index.d.ts +6 -0
  47. package/src/templates-index.d.ts.map +1 -0
  48. package/src/templates-index.js +6 -0
  49. package/src/testing-index.d.ts +7 -0
  50. package/src/testing-index.d.ts.map +1 -0
  51. package/src/testing-index.js +7 -0
  52. package/src/tools-broadcast-index.d.ts +9 -0
  53. package/src/tools-broadcast-index.d.ts.map +1 -0
  54. package/src/tools-broadcast-index.js +7 -0
  55. package/src/tools-http-index.d.ts +7 -0
  56. package/src/tools-http-index.d.ts.map +1 -0
  57. package/src/tools-http-index.js +5 -0
  58. package/src/tools-index.d.ts +29 -0
  59. package/src/tools-index.d.ts.map +1 -0
  60. package/src/tools-index.js +28 -0
  61. package/src/tools-mail-index.d.ts +17 -0
  62. package/src/tools-mail-index.d.ts.map +1 -0
  63. package/src/tools-mail-index.js +11 -0
  64. package/src/tools-notification-index.d.ts +12 -0
  65. package/src/tools-notification-index.d.ts.map +1 -0
  66. package/src/tools-notification-index.js +10 -0
  67. package/src/tools-queue-index.d.ts +22 -0
  68. package/src/tools-queue-index.d.ts.map +1 -0
  69. package/src/tools-queue-index.js +20 -0
  70. package/src/tools-storage-index.d.ts +14 -0
  71. package/src/tools-storage-index.d.ts.map +1 -0
  72. package/src/tools-storage-index.js +10 -0
@@ -0,0 +1,105 @@
1
+ /**
2
+ * ZinTrust Framework - Runtime-only entrypoint for production Workers
3
+ * Excludes CLI utilities, seeders, test helpers, scripts, tools, proxy, and templates
4
+ * Only includes core runtime primitives needed for request handling and boot-time setup
5
+ */
6
+ /**
7
+ * Framework version and build metadata
8
+ * Available at runtime for debugging and health checks
9
+ */
10
+ export declare const ZINTRUST_VERSION = "0.1.41";
11
+ export declare const ZINTRUST_BUILD_DATE = "__BUILD_DATE__";
12
+ export { Application } from './boot/Application';
13
+ export { Server } from './boot/Server';
14
+ export { AwsSigV4 } from './common/index';
15
+ export { ServiceContainer } from './container/ServiceContainer';
16
+ export { SignedRequest } from './security/SignedRequest';
17
+ export { Controller } from './http/Controller';
18
+ export { FileUpload } from './http/FileUpload';
19
+ export type { FileUploadOptions, IFileUploadHandler, UploadedFile } from './http/FileUpload';
20
+ export { Kernel } from './http/Kernel';
21
+ export { bodyParsingMiddleware } from './http/middleware/BodyParsingMiddleware';
22
+ export { fileUploadMiddleware } from './http/middleware/FileUploadMiddleware';
23
+ export { BodyParsers } from './http/parsers/BodyParsers';
24
+ export { MultipartParser } from './http/parsers/MultipartParser';
25
+ export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry';
26
+ export type { MultipartFieldValue, MultipartParseInput, MultipartParserProvider, ParsedMultipartData, } from './http/parsers/MultipartParserRegistry';
27
+ export { Request } from './http/Request';
28
+ export type { IRequest, ValidatedRequest } from './http/Request';
29
+ export { RequestContext } from './http/RequestContext';
30
+ export { Response } from './http/Response';
31
+ export type { IResponse } from './http/Response';
32
+ export { getValidatedBody, getValidatedHeaders, getValidatedParams, getValidatedQuery, hasValidatedBody, requireValidatedBody, ValidationHelper, } from './http/ValidationHelper';
33
+ export { BulletproofAuthMiddleware } from './middleware/BulletproofAuthMiddleware';
34
+ export { CsrfMiddleware } from './middleware/CsrfMiddleware';
35
+ export { ErrorHandlerMiddleware } from './middleware/ErrorHandlerMiddleware';
36
+ export { LoggingMiddleware } from './middleware/LoggingMiddleware';
37
+ export { MiddlewareStack } from './middleware/MiddlewareStack';
38
+ export type { Middleware } from './middleware/MiddlewareStack';
39
+ export { RateLimiter } from './middleware/RateLimiter';
40
+ export { SecurityMiddleware } from './middleware/SecurityMiddleware';
41
+ export { SessionMiddleware } from './middleware/SessionMiddleware';
42
+ export { ValidationMiddleware } from './middleware/ValidationMiddleware';
43
+ export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator';
44
+ export type { CreatePaginatorInput, PaginationLinks, PaginationQuery, Paginator as PaginatorType, } from './database/Paginator';
45
+ export { Database, DatabaseConnectionRegistry, Model, QueryBuilder, resetDatabase, useDatabase, useEnsureDbConnected, } from './orm-index.js';
46
+ export type { IDatabase, IModel, InsertResult, IQueryBuilder, IRelationship, ModelConfig, ModelStatic, PaginationOptions, } from './orm-index.js';
47
+ export { DateTime } from './time/DateTime';
48
+ export type { IDateTime } from './time/DateTime';
49
+ export { ValidationError } from './validation/ValidationError';
50
+ export type { FieldError } from './validation/ValidationError';
51
+ export { Schema, Validator } from './validation/Validator';
52
+ export type { ISchema, SchemaType } from './validation/Validator';
53
+ export { ErrorFactory } from './exceptions/ZintrustError';
54
+ export { detectRuntime } from './runtime/detectRuntime';
55
+ export { getKernel } from './runtime/getKernel';
56
+ export { PluginManager } from './runtime/PluginManager';
57
+ export { PluginRegistry } from './runtime/PluginRegistry';
58
+ export { detectCloudflareWorkers, detectRuntimePlatform, RUNTIME_PLATFORM, RuntimeServices, type RuntimeCrypto, type RuntimeEnvReader, type RuntimeFs, type RuntimePlatform, type RuntimeServices as RuntimeServicesType, type RuntimeTimers, } from './runtime/RuntimeServices';
59
+ export { StartupConfigFile, StartupConfigFileRegistry } from './runtime/StartupConfigFileRegistry';
60
+ export { useFileLoader } from './runtime/useFileLoader';
61
+ export { SystemTraceBridge } from './trace/SystemTraceBridge';
62
+ export { EventDispatcher } from './events/EventDispatcher';
63
+ export type { EventListener, EventMap, IEventDispatcher } from './events/EventDispatcher';
64
+ export { SessionManager } from './session/SessionManager';
65
+ export type { ISession, ISessionManager, SessionData, SessionManagerOptions, } from './session/SessionManager';
66
+ export { Env } from './config/env';
67
+ export { Logger } from './config/logger';
68
+ export type { LogSink } from './config/logger';
69
+ export { appConfig } from './config/app';
70
+ export type { AppConfig } from './config/app';
71
+ export { cacheConfig } from './config/cache';
72
+ export type { CacheConfig, CacheConfigOverrides } from './config/cache';
73
+ export { databaseConfig } from './config/database';
74
+ export type { DatabaseConfigOverrides, DatabaseConfig as DatabaseRuntimeConfig, } from './config/database';
75
+ export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration';
76
+ export { Cache, cache } from './cache/Cache';
77
+ export type { CacheDriver } from './cache/CacheDriver';
78
+ export { CacheDriverRegistry } from './cache/CacheDriverRegistry';
79
+ export { registerCachesFromRuntimeConfig } from './cache/CacheRuntimeRegistration';
80
+ export { createBaseDrivers, queueConfig } from './config/queue';
81
+ export type { QueueConfig, QueueConfigOverrides } from './config/queue';
82
+ export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
83
+ export { Queue, resolveLockPrefix } from './tools/queue/Queue';
84
+ export type { BullMQPayload, IQueueDriver, QueueMessage } from './tools/queue/Queue';
85
+ export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration';
86
+ export { Router } from './routes/Router';
87
+ export type { IRouter, RouteOptions } from './routes/Router';
88
+ export { normalizeRouteMeta, RouteRegistry } from './routes/RouteRegistry';
89
+ export type { RouteMeta, RouteMetaInput, RouteRegistration } from './routes/RouteRegistry';
90
+ export { generateSecureJobId, generateUuid, getString, Utilities, type UtilitiesType, } from './common/utility';
91
+ export { ContextLoader } from './common/ContextLoader';
92
+ export type { ContextLoaderBatchHandler, ContextLoaderBatchKey, ContextLoaderBatchResult, ContextLoaderContext, ContextLoaderInstance, ContextLoaderMode, ContextLoaderPlan, ContextLoaderResolver, } from './common/ContextLoader';
93
+ export { delay, ensureDirSafe } from './common/index';
94
+ export { RemoteSignedJson } from './common/RemoteSignedJson';
95
+ export type { RemoteSignedJsonSettings } from './common/RemoteSignedJson';
96
+ export { collect, Collection } from './collections/index';
97
+ export type { ICollection, PrimitiveKey } from './collections/index';
98
+ export * from './helper/index';
99
+ export * as NodeSingletons from './node-singletons/index';
100
+ export type { ProjectRuntimeModule, ServiceManifestEntry } from './microservices/ServiceManifest';
101
+ export { ProjectRuntime } from './runtime/ProjectRuntime';
102
+ export { nowIso } from './common/utility';
103
+ export type { SanitizerError } from './exceptions/ZintrustError';
104
+ export { randomBytes } from './node-singletons/crypto';
105
+ //# sourceMappingURL=runtime-index.d.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AO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC/E,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/F,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGrE,cAAc,eAAe,CAAC;AAG9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * ZinTrust Framework - Runtime-only entrypoint for production Workers
3
+ * Excludes CLI utilities, seeders, test helpers, scripts, tools, proxy, and templates
4
+ * Only includes core runtime primitives needed for request handling and boot-time setup
5
+ */
6
+ /**
7
+ * Framework version and build metadata
8
+ * Available at runtime for debugging and health checks
9
+ */
10
+ export const ZINTRUST_VERSION = '0.1.41';
11
+ export const ZINTRUST_BUILD_DATE = '__BUILD_DATE__'; // Replaced during build
12
+ // Core application and server primitives
13
+ export { Application } from './boot/Application.js';
14
+ export { Server } from './boot/Server.js';
15
+ export { AwsSigV4 } from './common/index.js';
16
+ export { ServiceContainer } from './container/ServiceContainer.js';
17
+ export { SignedRequest } from './security/SignedRequest.js';
18
+ // HTTP primitives for request handling
19
+ export { Controller } from './http/Controller.js';
20
+ export { FileUpload } from './http/FileUpload.js';
21
+ export { Kernel } from './http/Kernel.js';
22
+ export { bodyParsingMiddleware } from './http/middleware/BodyParsingMiddleware.js';
23
+ export { fileUploadMiddleware } from './http/middleware/FileUploadMiddleware.js';
24
+ export { BodyParsers } from './http/parsers/BodyParsers.js';
25
+ export { MultipartParser } from './http/parsers/MultipartParser.js';
26
+ export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry.js';
27
+ export { Request } from './http/Request.js';
28
+ export { RequestContext } from './http/RequestContext.js';
29
+ export { Response } from './http/Response.js';
30
+ export { getValidatedBody, getValidatedHeaders, getValidatedParams, getValidatedQuery, hasValidatedBody, requireValidatedBody, ValidationHelper, } from './http/ValidationHelper.js';
31
+ // Core middleware for request processing
32
+ export { BulletproofAuthMiddleware } from './middleware/BulletproofAuthMiddleware.js';
33
+ export { CsrfMiddleware } from './middleware/CsrfMiddleware.js';
34
+ export { ErrorHandlerMiddleware } from './middleware/ErrorHandlerMiddleware.js';
35
+ export { LoggingMiddleware } from './middleware/LoggingMiddleware.js';
36
+ export { MiddlewareStack } from './middleware/MiddlewareStack.js';
37
+ export { RateLimiter } from './middleware/RateLimiter.js';
38
+ export { SecurityMiddleware } from './middleware/SecurityMiddleware.js';
39
+ export { SessionMiddleware } from './middleware/SessionMiddleware.js';
40
+ export { ValidationMiddleware } from './middleware/ValidationMiddleware.js';
41
+ // Minimal ORM primitives for request handlers
42
+ export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator.js';
43
+ export { Database, DatabaseConnectionRegistry, Model, QueryBuilder, resetDatabase, useDatabase, useEnsureDbConnected, } from './orm-index.js';
44
+ // Time Utilities
45
+ export { DateTime } from './time/DateTime.js';
46
+ // Validation primitives
47
+ export { ValidationError } from './validation/ValidationError.js';
48
+ export { Schema, Validator } from './validation/Validator.js';
49
+ // Security primitives moved to @zintrust/core/security subpath
50
+ // Exceptions
51
+ export { ErrorFactory } from './exceptions/ZintrustError.js';
52
+ // Runtime services and detection
53
+ export { detectRuntime } from './runtime/detectRuntime.js';
54
+ export { getKernel } from './runtime/getKernel.js';
55
+ export { PluginManager } from './runtime/PluginManager.js';
56
+ export { PluginRegistry } from './runtime/PluginRegistry.js';
57
+ export { detectCloudflareWorkers, detectRuntimePlatform, RUNTIME_PLATFORM, RuntimeServices, } from './runtime/RuntimeServices.js';
58
+ export { StartupConfigFile, StartupConfigFileRegistry } from './runtime/StartupConfigFileRegistry.js';
59
+ export { useFileLoader } from './runtime/useFileLoader.js';
60
+ // Events
61
+ export { SystemTraceBridge } from './trace/SystemTraceBridge.js';
62
+ export { EventDispatcher } from './events/EventDispatcher.js';
63
+ // Sessions
64
+ export { SessionManager } from './session/SessionManager.js';
65
+ // Core config primitives
66
+ export { Env } from './config/env.js';
67
+ export { Logger } from './config/logger.js';
68
+ // Core runtime config
69
+ export { appConfig } from './config/app.js';
70
+ export { cacheConfig } from './config/cache.js';
71
+ export { databaseConfig } from './config/database.js';
72
+ export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration.js';
73
+ // Cache primitives
74
+ export { Cache, cache } from './cache/Cache.js';
75
+ export { CacheDriverRegistry } from './cache/CacheDriverRegistry.js';
76
+ export { registerCachesFromRuntimeConfig } from './cache/CacheRuntimeRegistration.js';
77
+ // Queue primitives
78
+ export { createBaseDrivers, queueConfig } from './config/queue.js';
79
+ export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
80
+ export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
81
+ export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration.js';
82
+ // Router primitives
83
+ export { Router } from './routes/Router.js';
84
+ export { normalizeRouteMeta, RouteRegistry } from './routes/RouteRegistry.js';
85
+ // Common utilities
86
+ export { generateSecureJobId, generateUuid, getString, Utilities, } from './common/utility.js';
87
+ export { ContextLoader } from './common/ContextLoader.js';
88
+ export { delay, ensureDirSafe } from './common/index.js';
89
+ export { RemoteSignedJson } from './common/RemoteSignedJson.js';
90
+ // Collections
91
+ export { collect, Collection } from './collections/index.js';
92
+ // Helper functions
93
+ export * from './helper/index.js';
94
+ // Node Singletons (cross-runtime wrappers for Node.js APIs)
95
+ export * as NodeSingletons from './node-singletons/index.js';
96
+ export { ProjectRuntime } from './runtime/ProjectRuntime.js';
97
+ // Utility functions
98
+ export { nowIso } from './common/utility.js';
99
+ export { randomBytes } from './node-singletons/crypto.js';
100
+ // Redis key manager moved to @zintrust/core/redis subpath
101
+ // NOTE: Node-only exports (like FileLogWriter, process) are intentionally not
102
+ // exported from this root entrypoint. Use the '@zintrust/core/node' subpath.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ZinTrust Scripts - Non-runtime entrypoint
3
+ * Contains script utilities and generators for development/admin use
4
+ */
5
+ export * from './scripts/GenerateEnvArtifacts';
6
+ export * from './scripts/TemplateImportsCheck';
7
+ export * from './scripts/TemplateSync';
8
+ //# sourceMappingURL=scripts-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scripts-index.d.ts","sourceRoot":"","sources":["../../src/scripts-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * ZinTrust Scripts - Non-runtime entrypoint
3
+ * Contains script utilities and generators for development/admin use
4
+ */
5
+ // Note: These are standalone scripts that can be executed directly
6
+ // They don't export named functions but can be imported as modules
7
+ export * from './scripts/GenerateEnvArtifacts.js';
8
+ export * from './scripts/TemplateImportsCheck.js';
9
+ export * from './scripts/TemplateSync.js';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * ZinTrust Security - Security primitives and crypto utilities
3
+ * Contains authentication, encryption, hashing, JWT, and security helpers
4
+ */
5
+ export { BulletproofDeviceStore } from './security/BulletproofDeviceStore';
6
+ export { CsrfTokenManager } from './security/CsrfTokenManager';
7
+ export type { CsrfTokenData, CsrfTokenManagerType, ICsrfTokenManager, } from './security/CsrfTokenManager';
8
+ export { EncryptedEnvelope } from './security/EncryptedEnvelope';
9
+ export { Encryptor } from './security/Encryptor';
10
+ export { Hash } from './security/Hash';
11
+ export { JwtManager } from './security/JwtManager';
12
+ export type { IJwtManager, JwtAlgorithm, JwtManagerType, JwtOptions, JwtPayload, } from './security/JwtManager';
13
+ export { JwtSessions } from './security/JwtSessions';
14
+ export { JwtVerifier } from './security/JwtVerifier';
15
+ export type { JwtVerifierAlgorithm, JwtVerifierFailure, JwtVerifierFailureReason, JwtVerifierJwk, JwtVerifierJwksDocument, JwtVerifierResult, JwtVerifierSuccess, JwtVerifierWithJwkInput, JwtVerifierWithJwksInput, } from './security/JwtVerifier';
16
+ export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker';
17
+ export type { IPasswordResetTokenBroker, IPasswordResetTokenStore, PasswordResetTokenBrokerOptions, PasswordResetTokenBrokerType, PasswordResetTokenRecord, } from './security/PasswordResetTokenBroker';
18
+ export { createSanitizer, Sanitizer, type SanitizerType } from './security/Sanitizer';
19
+ export { TokenRevocation } from './security/TokenRevocation';
20
+ export { Xss } from './security/Xss';
21
+ export { XssProtection } from './security/XssProtection';
22
+ export { SecurePayload, type SecurePayloadCoercionShape, type SecurePayloadCoercionType, type SecurePayloadDecodeOptions, type SecurePayloadDecryptor, type SecurePayloadPipeline, type SecurePayloadPipelineIssue, type SecurePayloadPipelineStage, } from './security/SecurePayload';
23
+ //# sourceMappingURL=security-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-index.d.ts","sourceRoot":"","sources":["../../src/security-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * ZinTrust Security - Security primitives and crypto utilities
3
+ * Contains authentication, encryption, hashing, JWT, and security helpers
4
+ */
5
+ // Device store for bulletproof auth
6
+ export { BulletproofDeviceStore } from './security/BulletproofDeviceStore.js';
7
+ // CSRF protection
8
+ export { CsrfTokenManager } from './security/CsrfTokenManager.js';
9
+ // Encryption
10
+ export { EncryptedEnvelope } from './security/EncryptedEnvelope.js';
11
+ export { Encryptor } from './security/Encryptor.js';
12
+ // Hashing
13
+ export { Hash } from './security/Hash.js';
14
+ // JWT management
15
+ export { JwtManager } from './security/JwtManager.js';
16
+ export { JwtSessions } from './security/JwtSessions.js';
17
+ export { JwtVerifier } from './security/JwtVerifier.js';
18
+ // Password reset tokens
19
+ export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker.js';
20
+ // Sanitization
21
+ export { createSanitizer, Sanitizer } from './security/Sanitizer.js';
22
+ // Token revocation
23
+ export { TokenRevocation } from './security/TokenRevocation.js';
24
+ // XSS protection
25
+ export { Xss } from './security/Xss.js';
26
+ export { XssProtection } from './security/XssProtection.js';
27
+ // Secure payload handling
28
+ export { SecurePayload, } from './security/SecurePayload.js';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * ZinTrust Seeders - Non-runtime entrypoint
3
+ * Contains database seeding utilities for development/admin use
4
+ */
5
+ export { SeederDiscovery } from './seeders/SeederDiscovery';
6
+ export { SeederLoader } from './seeders/SeederLoader';
7
+ export type { LoadedSeeder, SeederHandler } from './seeders/types';
8
+ //# sourceMappingURL=seeders-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seeders-index.d.ts","sourceRoot":"","sources":["../../src/seeders-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ZinTrust Seeders - Non-runtime entrypoint
3
+ * Contains database seeding utilities for development/admin use
4
+ */
5
+ // Seeders (for database seeding)
6
+ export { SeederDiscovery } from './seeders/SeederDiscovery.js';
7
+ export { SeederLoader } from './seeders/SeederLoader.js';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ZinTrust Templates - Template utilities
3
+ * Contains template rendering and generation utilities
4
+ */
5
+ export { MarkdownRenderer } from './tools/templates';
6
+ //# sourceMappingURL=templates-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-index.d.ts","sourceRoot":"","sources":["../../src/templates-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ZinTrust Templates - Template utilities
3
+ * Contains template rendering and generation utilities
4
+ */
5
+ // Templates
6
+ export { MarkdownRenderer } from './tools/templates/index.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ZinTrust Testing - Non-runtime entrypoint
3
+ * Contains test utilities and helpers for development use
4
+ */
5
+ export { TestEnvironment } from './testing/TestEnvironment';
6
+ export { TestHttp } from './testing/TestHttp';
7
+ //# sourceMappingURL=testing-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing-index.d.ts","sourceRoot":"","sources":["../../src/testing-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ZinTrust Testing - Non-runtime entrypoint
3
+ * Contains test utilities and helpers for development use
4
+ */
5
+ // Testing utilities
6
+ export { TestEnvironment } from './testing/TestEnvironment.js';
7
+ export { TestHttp } from './testing/TestHttp.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * ZinTrust Tools - Broadcast integration
3
+ * Contains broadcast utilities and real-time features
4
+ */
5
+ export { Broadcast } from './tools/broadcast/Broadcast';
6
+ export type { BroadcastPublishInput, BroadcastPublishResult } from './tools/broadcast/Broadcast';
7
+ export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry';
8
+ export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration';
9
+ //# sourceMappingURL=tools-broadcast-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-broadcast-index.d.ts","sourceRoot":"","sources":["../../src/tools-broadcast-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ZinTrust Tools - Broadcast integration
3
+ * Contains broadcast utilities and real-time features
4
+ */
5
+ export { Broadcast } from './tools/broadcast/Broadcast.js';
6
+ export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry.js';
7
+ export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * ZinTrust Tools - HTTP client integration
3
+ * Contains HTTP client utilities
4
+ */
5
+ export { HttpClient } from './tools/http/Http';
6
+ export type { IHttpRequest, IHttpResponse } from './tools/http/Http';
7
+ //# sourceMappingURL=tools-http-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-http-index.d.ts","sourceRoot":"","sources":["../../src/tools-http-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * ZinTrust Tools - HTTP client integration
3
+ * Contains HTTP client utilities
4
+ */
5
+ export { HttpClient } from './tools/http/Http.js';
@@ -0,0 +1,29 @@
1
+ /**
2
+ * ZinTrust Tools - Non-runtime entrypoint
3
+ * Contains all service integrations and optional drivers
4
+ */
5
+ export * from './tools-mail-index.js';
6
+ export { NotificationComposer } from './tools/notification/Composer';
7
+ export type { NotificationChannelHandler, NotificationComposeBuilder, NotificationComposeChannelResult, NotificationComposeError, NotificationComposeOptions, NotificationComposePolicy, NotificationComposeResult, } from './tools/notification/Composer';
8
+ export { sendSlackWebhook } from './tools/notification/drivers/Slack';
9
+ export { TermiiDriver } from './tools/notification/drivers/Termii';
10
+ export { sendSms } from './tools/notification/drivers/Twilio';
11
+ export { Notification } from './tools/notification/Notification';
12
+ export { NotificationRegistry } from './tools/notification/Registry';
13
+ export { GcsDriver } from './tools/storage/drivers/Gcs';
14
+ export type { GcsConfig } from './tools/storage/drivers/Gcs';
15
+ export { R2Driver } from './tools/storage/drivers/R2';
16
+ export type { R2Config } from './tools/storage/drivers/R2';
17
+ export { S3Driver } from './tools/storage/drivers/S3';
18
+ export type { S3Config } from './tools/storage/drivers/S3';
19
+ export { Storage } from './tools/storage/index';
20
+ export { LocalSignedUrl } from './tools/storage/LocalSignedUrl';
21
+ export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry';
22
+ export * from './tools-queue-index.js';
23
+ export { Broadcast } from './tools/broadcast/Broadcast';
24
+ export type { BroadcastPublishInput, BroadcastPublishResult } from './tools/broadcast/Broadcast';
25
+ export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry';
26
+ export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration';
27
+ export { HttpClient } from './tools/http/Http';
28
+ export type { IHttpRequest, IHttpResponse } from './tools/http/Http';
29
+ //# sourceMappingURL=tools-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-index.d.ts","sourceRoot":"","sources":["../../src/tools-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,2BAA2B,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAG7E,cAAc,4BAA4B,CAAC;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC;AAGtG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * ZinTrust Tools - Non-runtime entrypoint
3
+ * Contains all service integrations and optional drivers
4
+ */
5
+ // Mail
6
+ export * from './tools-mail-index.js';
7
+ // Notification
8
+ export { NotificationComposer } from './tools/notification/Composer.js';
9
+ export { sendSlackWebhook } from './tools/notification/drivers/Slack.js';
10
+ export { TermiiDriver } from './tools/notification/drivers/Termii.js';
11
+ export { sendSms } from './tools/notification/drivers/Twilio.js';
12
+ export { Notification } from './tools/notification/Notification.js';
13
+ export { NotificationRegistry } from './tools/notification/Registry.js';
14
+ // Storage
15
+ export { GcsDriver } from './tools/storage/drivers/Gcs.js';
16
+ export { R2Driver } from './tools/storage/drivers/R2.js';
17
+ export { S3Driver } from './tools/storage/drivers/S3.js';
18
+ export { Storage } from './tools/storage/index.js';
19
+ export { LocalSignedUrl } from './tools/storage/LocalSignedUrl.js';
20
+ export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry.js';
21
+ // Queue
22
+ export * from './tools-queue-index.js';
23
+ // Broadcast
24
+ export { Broadcast } from './tools/broadcast/Broadcast.js';
25
+ export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry.js';
26
+ export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration.js';
27
+ // HTTP client helpers
28
+ export { HttpClient } from './tools/http/Http.js';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ZinTrust Tools - Mail integration
3
+ * Contains mail drivers and mail-related utilities
4
+ */
5
+ export { Mail } from './tools/mail';
6
+ export type { SendMailInput, SendMailResult } from './tools/mail';
7
+ export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates';
8
+ export type { MailTemplate, MailTemplateRegistry } from './tools/mail/templates';
9
+ export { MailDriverRegistry } from './tools/mail/MailDriverRegistry';
10
+ export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration';
11
+ export { SmtpDriver } from './tools/mail/drivers/Smtp';
12
+ export type { SmtpConfig as SmtpDriverConfig } from './tools/mail/drivers/Smtp';
13
+ export { SendGridDriver } from './tools/mail/drivers/SendGrid';
14
+ export type { SendGridConfig, MailAddress as SendGridMailAddress, MailAttachment as SendGridMailAttachment, MailMessage as SendGridMailMessage, SendResult as SendGridSendResult, } from './tools/mail/drivers/SendGrid';
15
+ export { MailgunDriver } from './tools/mail/drivers/Mailgun';
16
+ export type { MailgunConfig, MailMessage as MailgunMessage, SendResult as MailgunResult, } from './tools/mail/drivers/Mailgun';
17
+ //# sourceMappingURL=tools-mail-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-mail-index.d.ts","sourceRoot":"","sources":["../../src/tools-mail-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EACV,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,cAAc,IAAI,sBAAsB,EACxC,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EACV,aAAa,EACb,WAAW,IAAI,cAAc,EAC7B,UAAU,IAAI,aAAa,GAC5B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ZinTrust Tools - Mail integration
3
+ * Contains mail drivers and mail-related utilities
4
+ */
5
+ export { Mail } from './tools/mail/index.js';
6
+ export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates/index.js';
7
+ export { MailDriverRegistry } from './tools/mail/MailDriverRegistry.js';
8
+ export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration.js';
9
+ export { SmtpDriver } from './tools/mail/drivers/Smtp.js';
10
+ export { SendGridDriver } from './tools/mail/drivers/SendGrid.js';
11
+ export { MailgunDriver } from './tools/mail/drivers/Mailgun.js';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * ZinTrust Tools - Notification integration
3
+ * Contains notification drivers and notification-related utilities
4
+ */
5
+ export { NotificationComposer } from './tools/notification/Composer';
6
+ export type { NotificationChannelHandler, NotificationComposeBuilder, NotificationComposeChannelResult, NotificationComposeError, NotificationComposeOptions, NotificationComposePolicy, NotificationComposeResult, } from './tools/notification/Composer';
7
+ export { sendSlackWebhook } from './tools/notification/drivers/Slack';
8
+ export { TermiiDriver } from './tools/notification/drivers/Termii';
9
+ export { sendSms } from './tools/notification/drivers/Twilio';
10
+ export { Notification } from './tools/notification/Notification';
11
+ export { NotificationRegistry } from './tools/notification/Registry';
12
+ //# sourceMappingURL=tools-notification-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-notification-index.d.ts","sourceRoot":"","sources":["../../src/tools-notification-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ZinTrust Tools - Notification integration
3
+ * Contains notification drivers and notification-related utilities
4
+ */
5
+ export { NotificationComposer } from './tools/notification/Composer.js';
6
+ export { sendSlackWebhook } from './tools/notification/drivers/Slack.js';
7
+ export { TermiiDriver } from './tools/notification/drivers/Termii.js';
8
+ export { sendSms } from './tools/notification/drivers/Twilio.js';
9
+ export { Notification } from './tools/notification/Notification.js';
10
+ export { NotificationRegistry } from './tools/notification/Registry.js';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * ZinTrust Tools - Queue integration
3
+ * Contains queue drivers and queue-related utilities
4
+ */
5
+ export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
6
+ export { RedisQueue } from './tools/queue/drivers/Redis';
7
+ export { IdempotencyManager } from './tools/queue/IdempotencyManager';
8
+ export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore';
9
+ export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner';
10
+ export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon';
11
+ export { JobStateTracker } from './tools/queue/JobStateTracker';
12
+ export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence';
13
+ export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider';
14
+ export { Queue, resolveLockPrefix } from './tools/queue/Queue';
15
+ export type { BullMQPayload, IQueueDriver, QueueMessage } from './tools/queue/Queue';
16
+ export { QueueDataRedactor } from './tools/queue/QueueDataRedactor';
17
+ export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics';
18
+ export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator';
19
+ export { QueueTracing } from './tools/queue/QueueTracing';
20
+ export { StalledJobMonitor } from './tools/queue/StalledJobMonitor';
21
+ export { TimeoutManager } from './tools/queue/TimeoutManager';
22
+ //# sourceMappingURL=tools-queue-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-queue-index.d.ts","sourceRoot":"","sources":["../../src/tools-queue-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,6CAA6C,EAC7C,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * ZinTrust Tools - Queue integration
3
+ * Contains queue drivers and queue-related utilities
4
+ */
5
+ export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
6
+ export { RedisQueue } from './tools/queue/drivers/Redis.js';
7
+ export { IdempotencyManager } from './tools/queue/IdempotencyManager.js';
8
+ export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore.js';
9
+ export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner.js';
10
+ export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon.js';
11
+ export { JobStateTracker } from './tools/queue/JobStateTracker.js';
12
+ export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence.js';
13
+ export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider.js';
14
+ export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
15
+ export { QueueDataRedactor } from './tools/queue/QueueDataRedactor.js';
16
+ export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics.js';
17
+ export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator.js';
18
+ export { QueueTracing } from './tools/queue/QueueTracing.js';
19
+ export { StalledJobMonitor } from './tools/queue/StalledJobMonitor.js';
20
+ export { TimeoutManager } from './tools/queue/TimeoutManager.js';