@zintrust/core 3.1.1 → 3.1.2
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/package.json +15 -10
- package/src/auth/LoginFlow.d.ts +1 -1
- package/src/auth-index.d.ts +3 -3
- package/src/boot/Application.d.ts +1 -1
- package/src/boot/Server.d.ts +3 -3
- package/src/boot/registry/registerRoute.d.ts +1 -1
- package/src/boot/registry/runtime.d.ts +2 -2
- package/src/boot/registry/type.d.ts +3 -3
- package/src/boot/registry/worker.d.ts +1 -1
- package/src/bootstrap/service-manifest.d.ts +1 -1
- package/src/cache/Cache.d.ts +1 -1
- package/src/cache/CacheDriverRegistry.d.ts +2 -2
- package/src/cache/CacheRuntimeRegistration.d.ts +1 -1
- package/src/cache/drivers/KVDriver.d.ts +1 -1
- package/src/cache/drivers/KVRemoteDriver.d.ts +1 -1
- package/src/cache/drivers/MemoryDriver.d.ts +1 -1
- package/src/cache/drivers/MongoDriver.d.ts +1 -1
- package/src/cache/drivers/RedisDriver.d.ts +1 -1
- package/src/cli/cloudflare/CloudflareSecretSync.js +1 -1
- package/src/cli/cloudflare/CloudflareWranglerDevEnv.js +1 -1
- package/src/cli/commands/AddCommand.d.ts +2 -2
- package/src/cli/commands/BroadcastWorkCommand.d.ts +1 -1
- package/src/cli/commands/BroadcastWorkCommand.js +1 -1
- package/src/cli/commands/BulletproofKeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/ConfigCommand.d.ts +1 -1
- package/src/cli/commands/ContainerComposeLifecycle.js +1 -1
- package/src/cli/commands/ContainerProxiesCommand.d.ts +1 -1
- package/src/cli/commands/ContainerProxiesCommand.js +2 -2
- package/src/cli/commands/ContainerWorkersCommand.d.ts +1 -1
- package/src/cli/commands/ContainerWorkersCommand.js +2 -2
- package/src/cli/commands/CreateCommand.d.ts +1 -1
- package/src/cli/commands/D1LearnCommand.d.ts +1 -1
- package/src/cli/commands/D1MigrateCommand.d.ts +1 -1
- package/src/cli/commands/D1ProxyCommand.d.ts +1 -1
- package/src/cli/commands/D1ProxyCommand.js +2 -2
- package/src/cli/commands/DbSeedCommand.d.ts +1 -1
- package/src/cli/commands/DebugCommand.d.ts +1 -1
- package/src/cli/commands/DeployCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerProxiesCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerProxiesCommand.js +1 -1
- package/src/cli/commands/DeployContainerWorkersCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerWorkersCommand.js +1 -1
- package/src/cli/commands/DeployContainersProxyCommand.d.ts +1 -1
- package/src/cli/commands/DockerCommand.d.ts +1 -1
- package/src/cli/commands/DockerCommand.js +1 -1
- package/src/cli/commands/DockerPushCommand.d.ts +1 -1
- package/src/cli/commands/DoctorArchitectureCommand.d.ts +1 -1
- package/src/cli/commands/EmailProxyCommand.d.ts +1 -1
- package/src/cli/commands/EmailProxyCommand.js +2 -2
- package/src/cli/commands/EnvKeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/FixCommand.d.ts +1 -1
- package/src/cli/commands/InitContainerCommand.d.ts +1 -1
- package/src/cli/commands/InitContainersProxyCommand.d.ts +1 -1
- package/src/cli/commands/InitEcosystemCommand.d.ts +1 -1
- package/src/cli/commands/InitProducerCommand.d.ts +1 -1
- package/src/cli/commands/InitProxyCommand.d.ts +1 -1
- package/src/cli/commands/JwtDevCommand.d.ts +1 -1
- package/src/cli/commands/KeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/KvProxyCommand.d.ts +1 -1
- package/src/cli/commands/KvProxyCommand.js +2 -2
- package/src/cli/commands/LogsCleanupCommand.d.ts +1 -1
- package/src/cli/commands/LogsCommand.d.ts +1 -1
- package/src/cli/commands/MakeMailTemplateCommand.d.ts +1 -1
- package/src/cli/commands/MakeNotificationTemplateCommand.d.ts +1 -1
- package/src/cli/commands/MigrateCommand.d.ts +1 -1
- package/src/cli/commands/MigrateWorkerCommand.d.ts +1 -1
- package/src/cli/commands/MongoDBProxyCommand.js +1 -1
- package/src/cli/commands/MySqlProxyCommand.d.ts +1 -1
- package/src/cli/commands/MySqlProxyCommand.js +2 -2
- package/src/cli/commands/NewCommand.d.ts +1 -1
- package/src/cli/commands/NotificationWorkCommand.d.ts +1 -1
- package/src/cli/commands/NotificationWorkCommand.js +1 -1
- package/src/cli/commands/PluginCommand.d.ts +1 -1
- package/src/cli/commands/PostgresProxyCommand.d.ts +1 -1
- package/src/cli/commands/PostgresProxyCommand.js +2 -2
- package/src/cli/commands/PrepareCommand.d.ts +1 -1
- package/src/cli/commands/ProxyCommand.d.ts +8 -8
- package/src/cli/commands/PublishCommand.d.ts +1 -1
- package/src/cli/commands/PutCommand.d.ts +1 -1
- package/src/cli/commands/QACommand.d.ts +1 -1
- package/src/cli/commands/QueueCommand.d.ts +1 -1
- package/src/cli/commands/QueueCommand.js +2 -2
- package/src/cli/commands/QueueRecoveryCommand.d.ts +1 -1
- package/src/cli/commands/QueueWorkCommandUtils.d.ts +1 -1
- package/src/cli/commands/RedisProxyCommand.d.ts +1 -1
- package/src/cli/commands/RedisProxyCommand.js +1 -1
- package/src/cli/commands/RedisRpcCommand.d.ts +1 -1
- package/src/cli/commands/RedisRpcCommand.js +1 -1
- package/src/cli/commands/ResourceControlCommand.d.ts +1 -1
- package/src/cli/commands/RoutesCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleListCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleListCommand.js +1 -1
- package/src/cli/commands/ScheduleRunCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleRunCommand.js +1 -1
- package/src/cli/commands/ScheduleStartCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleStartCommand.js +1 -1
- package/src/cli/commands/SecretsCommand.d.ts +1 -1
- package/src/cli/commands/SimulateCommand.d.ts +1 -1
- package/src/cli/commands/SmtpProxyCommand.d.ts +1 -1
- package/src/cli/commands/SmtpProxyCommand.js +1 -1
- package/src/cli/commands/SqlProxyCommandUtils.d.ts +1 -1
- package/src/cli/commands/SqlProxyCommandUtils.js +1 -1
- package/src/cli/commands/SqlServerProxyCommand.js +1 -1
- package/src/cli/commands/StartCommand.d.ts +1 -1
- package/src/cli/commands/StartCommand.js +1 -1
- package/src/cli/commands/TemplatesCommand.d.ts +1 -1
- package/src/cli/commands/TraceCommand.d.ts +1 -1
- package/src/cli/commands/TraceCommand.js +2 -2
- package/src/cli/commands/TraceCommands.d.ts +1 -1
- package/src/cli/commands/UpgradeCommand.d.ts +1 -1
- package/src/cli/commands/WorkerCommands.d.ts +1 -1
- package/src/cli/commands/WranglerDevVarsCommand.d.ts +1 -1
- package/src/cli/commands/WranglerProxyCommandUtils.d.ts +1 -1
- package/src/cli/commands/WranglerProxyCommandUtils.js +2 -2
- package/src/cli/commands/createKindWorkCommand.d.ts +2 -2
- package/src/cli/commands/createKindWorkCommand.js +1 -1
- package/src/cli/commands/index.d.ts +27 -27
- package/src/cli/commands/index.js +27 -27
- package/src/cli/config/ConfigManager.d.ts +1 -1
- package/src/cli/config/ConfigManager.js +1 -1
- package/src/cli/config/ConfigValidator.d.ts +1 -1
- package/src/cli/config/ConfigValidator.js +1 -1
- package/src/cli/config/index.d.ts +3 -3
- package/src/cli/config/index.js +3 -3
- package/src/cli/d1/LocalD1Resolver.d.ts +1 -1
- package/src/cli/d1/LocalD1Resolver.js +2 -2
- package/src/cli/d1/WranglerD1.d.ts +1 -1
- package/src/cli/index.d.ts +18 -18
- package/src/cli/scaffolding/ControllerGenerator.js +2 -2
- package/src/cli/scaffolding/FactoryGenerator.js +1 -1
- package/src/cli/scaffolding/FeatureScaffolder.js +5 -5
- package/src/cli/scaffolding/GovernanceScaffolder.js +4 -4
- package/src/cli/scaffolding/MigrationGenerator.js +2 -2
- package/src/cli/scaffolding/ModelGenerator.js +1 -1
- package/src/cli/scaffolding/ProjectScaffolder.js +2 -2
- package/src/cli/scaffolding/RequestFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/ResponseFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/RouteGenerator.js +1 -1
- package/src/cli/scaffolding/SeederGenerator.js +7 -7
- package/src/cli/scaffolding/ServiceIntegrationTestGenerator.js +2 -2
- package/src/cli/scaffolding/ServiceRequestFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/ServiceScaffolder.js +1 -1
- package/src/cli/scaffolding/TemplateGenerator.js +1 -1
- package/src/cli/scaffolding/WorkflowGenerator.js +1 -1
- package/src/cli/scaffolding/index.d.ts +33 -33
- package/src/cli/scaffolding/index.js +17 -17
- package/src/cli/services/VersionChecker.d.ts +1 -1
- package/src/cli/utils/DatabaseCliUtils.d.ts +2 -2
- package/src/cli-index.d.ts +11 -11
- package/src/cli.d.ts +8 -8
- package/src/cloudflare-index.d.ts +1 -1
- package/src/collections/index.d.ts +2 -2
- package/src/common/ExternalServiceUtils.d.ts +1 -1
- package/src/common/HealthRoutes.d.ts +1 -1
- package/src/common/index.d.ts +1 -1
- package/src/config/SecretsManager.d.ts +1 -1
- package/src/config/StartupConfigValidator.d.ts +1 -1
- package/src/config/app.d.ts +1 -1
- package/src/config/broadcast.d.ts +2 -2
- package/src/config/cache.d.ts +1 -1
- package/src/config/cloudflare.d.ts +2 -2
- package/src/config/database.d.ts +1 -1
- package/src/config/env.d.ts +1 -1
- package/src/config/features.d.ts +1 -1
- package/src/config/index.d.ts +31 -31
- package/src/config/logger.d.ts +1 -1
- package/src/config/mail.d.ts +1 -1
- package/src/config/middleware.d.ts +3 -3
- package/src/config/notification.d.ts +1 -1
- package/src/config/queue.d.ts +1 -1
- package/src/config/redis.d.ts +2 -2
- package/src/config/storage.d.ts +1 -1
- package/src/config/type.d.ts +2 -2
- package/src/config/workers.d.ts +2 -2
- package/src/config-index.d.ts +35 -35
- package/src/constants-index.d.ts +2 -2
- package/src/database-index.d.ts +13 -13
- package/src/errors-index.d.ts +2 -2
- package/src/events/index.d.ts +2 -2
- package/src/health/StartupHealthChecks.d.ts +1 -1
- package/src/helper/index.d.ts +1 -1
- package/src/http/Controller.d.ts +2 -2
- package/src/http/FileUpload.d.ts +2 -2
- package/src/http/Kernel.d.ts +7 -7
- package/src/http/Request.d.ts +3 -3
- package/src/http/RequestContext.d.ts +1 -1
- package/src/http/Response.d.ts +1 -1
- package/src/http/ValidationHelper.d.ts +1 -1
- package/src/http/error-pages/ErrorPageRenderer.d.ts +1 -1
- package/src/http/middleware/BodyParsingMiddleware.d.ts +2 -2
- package/src/http/middleware/FileUploadMiddleware.d.ts +1 -1
- package/src/http/parsers/MultipartParser.d.ts +1 -1
- package/src/http/parsers/MultipartParserRegistry.d.ts +2 -2
- package/src/http/validated.d.ts +1 -1
- package/src/http-index.d.ts +8 -8
- package/src/index.d.ts +215 -215
- package/src/index.js +3 -3
- package/src/lang-index.d.ts +1 -1
- package/src/logger-index.d.ts +1 -1
- package/src/mail-index.d.ts +7 -7
- package/src/microservices/MicroserviceGenerator.js +1 -1
- package/src/microservices/RequestTracingMiddleware.d.ts +2 -2
- package/src/microservices/ServiceAuthMiddleware.d.ts +2 -2
- package/src/microservices/ServiceHealthMonitor.d.ts +2 -2
- package/src/microservices/ServiceManifest.d.ts +1 -1
- package/src/microservices-index.d.ts +2 -2
- package/src/middleware/AuthMiddleware.d.ts +2 -2
- package/src/middleware/BulletproofAuthMiddleware.d.ts +5 -5
- package/src/middleware/CsrfMiddleware.d.ts +2 -2
- package/src/middleware/ErrorHandlerMiddleware.d.ts +2 -2
- package/src/middleware/JwtAuthMiddleware.d.ts +3 -3
- package/src/middleware/LoggingMiddleware.d.ts +1 -1
- package/src/middleware/MiddlewareFailureResponder.d.ts +3 -3
- package/src/middleware/MiddlewareStack.d.ts +2 -2
- package/src/middleware/RateLimiter.d.ts +3 -3
- package/src/middleware/SanitizeBodyMiddleware.d.ts +1 -1
- package/src/middleware/SecurityMiddleware.d.ts +1 -1
- package/src/middleware/SessionMiddleware.d.ts +2 -2
- package/src/middleware/ValidationMiddleware.d.ts +3 -3
- package/src/middleware/index.d.ts +8 -8
- package/src/middleware-index.d.ts +1 -1
- package/src/migrations/MigrationLoader.d.ts +1 -1
- package/src/migrations/Migrator.d.ts +3 -3
- package/src/migrations/MigratorFactory.d.ts +1 -1
- package/src/migrations/schema/Blueprint.d.ts +1 -1
- package/src/migrations/schema/Schema.d.ts +2 -2
- package/src/migrations/schema/Schema.js +2 -2
- package/src/migrations/schema/SchemaCompiler.d.ts +1 -1
- package/src/migrations/schema/index.d.ts +4 -4
- package/src/migrations/schema/index.js +3 -3
- package/src/migrations/schema/types.d.ts +1 -1
- package/src/migrations/types.d.ts +1 -1
- package/src/node-singletons/index.d.ts +15 -15
- package/src/node.d.ts +13 -13
- package/src/openapi/OpenApiGenerator.d.ts +1 -1
- package/src/orm/ConnectionManager.d.ts +2 -2
- package/src/orm/Database.d.ts +3 -3
- package/src/orm/DatabaseAdapter.d.ts +1 -1
- package/src/orm/DatabaseAdapterRegistry.d.ts +1 -1
- package/src/orm/DatabaseConnectionRegistry.d.ts +1 -1
- package/src/orm/DatabaseRuntimeRegistration.d.ts +1 -1
- package/src/orm/Model.d.ts +5 -3
- package/src/orm/Model.d.ts.map +1 -1
- package/src/orm/Model.js +2 -0
- package/src/orm/QueryBuilder.d.ts +5 -3
- package/src/orm/QueryBuilder.d.ts.map +1 -1
- package/src/orm/QueryBuilder.js +29 -0
- package/src/orm/QueryBuilderTypeSurface.fixture.d.ts +2 -2
- package/src/orm/QueryBuilderTypeSurface.fixture.d.ts.map +1 -1
- package/src/orm/QueryBuilderTypeSurface.fixture.js +4 -0
- package/src/orm/Relationships.d.ts +1 -1
- package/src/orm/SchemaCompiler.d.ts +2 -2
- package/src/orm/adapters/D1Adapter.d.ts +1 -1
- package/src/orm/adapters/D1Adapter.js +1 -1
- package/src/orm/adapters/D1ReadSession.d.ts +1 -1
- package/src/orm/adapters/D1RemoteAdapter.d.ts +1 -1
- package/src/orm/adapters/D1RemoteAdapter.js +2 -2
- package/src/orm/adapters/MongoDBProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/MongoDBProxyAdapter.js +2 -2
- package/src/orm/adapters/MySQLAdapter.d.ts +1 -1
- package/src/orm/adapters/MySQLProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/MySQLProxyAdapter.js +3 -3
- package/src/orm/adapters/PostgreSQLAdapter.d.ts +1 -1
- package/src/orm/adapters/PostgreSQLProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/PostgreSQLProxyAdapter.js +3 -3
- package/src/orm/adapters/ProxyCache.d.ts +1 -1
- package/src/orm/adapters/ProxySignedRequest.js +1 -1
- package/src/orm/adapters/SQLServerAdapter.d.ts +1 -1
- package/src/orm/adapters/SQLiteAdapter.d.ts +1 -1
- package/src/orm/adapters/SqlProxyAdapterUtils.d.ts +1 -1
- package/src/orm/adapters/SqlProxyAdapterUtils.js +1 -1
- package/src/orm/adapters/SqlProxyHttpAdapterShared.d.ts +1 -1
- package/src/orm/adapters/SqlProxyHttpAdapterShared.js +2 -2
- package/src/orm/adapters/SqlProxyRegistryMode.js +1 -1
- package/src/orm/adapters/SqlServerProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/SqlServerProxyAdapter.js +3 -3
- package/src/orm/maintenance/SqliteMaintenance.d.ts +1 -1
- package/src/orm/migrations/MigrationStore.d.ts +2 -2
- package/src/orm-index.d.ts +18 -18
- package/src/profiling/MemoryProfiler.d.ts +1 -1
- package/src/profiling/N1Detector.d.ts +1 -1
- package/src/profiling/QueryLogger.d.ts +1 -1
- package/src/profiling/RequestProfiler.d.ts +4 -4
- package/src/proxy/CloudflareProxyShared.d.ts +2 -2
- package/src/proxy/ProxyRequestParsing.d.ts +1 -1
- package/src/proxy/ProxyServer.d.ts +2 -2
- package/src/proxy/ProxyServerUtils.d.ts +2 -2
- package/src/proxy/ProxySigningRequest.d.ts +2 -2
- package/src/proxy/SigningService.d.ts +1 -1
- package/src/proxy/SqlProxyServerDeps.d.ts +11 -11
- package/src/proxy/StatementRegistryResolver.d.ts +1 -1
- package/src/proxy/mysql/MySqlProxyServer.d.ts +2 -2
- package/src/proxy/postgres/PostgresProxyServer.d.ts +2 -2
- package/src/proxy/redis/RedisProxyServer.d.ts +1 -1
- package/src/proxy/sqlserver/SqlServerProxyServer.d.ts +2 -2
- package/src/proxy-index.d.ts +6 -6
- package/src/proxy.d.ts +6 -6
- package/src/queue-index.d.ts +9 -9
- package/src/redis-index.d.ts +5 -5
- package/src/routes/CoreRoutes.d.ts +1 -1
- package/src/routes/CoreRoutes.js +1 -1
- package/src/routes/RouteRegistry.d.ts +1 -1
- package/src/routes/Router.d.ts +3 -3
- package/src/routes/doc.d.ts +4 -4
- package/src/routes/error.d.ts +4 -4
- package/src/routes/errorPages.d.ts +2 -2
- package/src/routes/health.d.ts +1 -1
- package/src/routes/metrics.d.ts +1 -1
- package/src/routes/openapi.d.ts +1 -1
- package/src/runtime/PluginAutoImports.d.ts +1 -1
- package/src/runtime/PluginManager.d.ts +1 -1
- package/src/runtime/ProjectRuntime.d.ts +1 -1
- package/src/runtime/RuntimeAdapter.d.ts +1 -1
- package/src/runtime/WorkerProjectPlugins.d.ts +1 -1
- package/src/runtime/adapters/CloudflareAdapter.d.ts +1 -1
- package/src/runtime/adapters/DenoAdapter.d.ts +1 -1
- package/src/runtime/adapters/FargateAdapter.d.ts +2 -2
- package/src/runtime/adapters/LambdaAdapter.d.ts +1 -1
- package/src/runtime/adapters/NodeServerAdapter.d.ts +1 -1
- package/src/runtime/getKernel.d.ts +1 -1
- package/src/runtime-index.d.ts +95 -95
- package/src/scheduler/Schedule.d.ts +1 -1
- package/src/scheduler/ScheduleHttpGateway.d.ts +1 -1
- package/src/scheduler/ScheduleRunner.d.ts +2 -2
- package/src/scheduler/SchedulerRuntime.d.ts +3 -3
- package/src/scheduler/index.d.ts +2 -2
- package/src/scheduler-index.d.ts +9 -9
- package/src/schedules/index.d.ts +2 -2
- package/src/scripts/TemplateImportsCheck.js +1 -2
- package/src/scripts-index.d.ts +3 -3
- package/src/security/JwtManager.d.ts +1 -1
- package/src/security/JwtVerifier.d.ts +1 -1
- package/src/security/SecurePayload.d.ts +2 -2
- package/src/security-index.d.ts +22 -22
- package/src/seeders/SeederLoader.d.ts +1 -1
- package/src/seeders/types.d.ts +1 -1
- package/src/seeders-index.d.ts +3 -3
- package/src/session/index.d.ts +2 -2
- package/src/socket-index.d.ts +4 -4
- package/src/sockets/SocketRuntime.d.ts +4 -4
- package/src/sockets/SocketRuntimeRegistry.d.ts +1 -1
- package/src/start.d.ts +1 -1
- package/src/storage-index.d.ts +9 -9
- package/src/tasks.d.ts +1 -1
- package/src/templates-index.d.ts +1 -1
- package/src/testing/TestEnvironment.d.ts +3 -3
- package/src/testing/TestHttp.d.ts +2 -2
- package/src/testing/index.d.ts +4 -4
- package/src/testing/index.js +2 -2
- package/src/testing-index.d.ts +2 -2
- package/src/time/index.d.ts +2 -2
- package/src/toolkit/Secrets/index.d.ts +2 -2
- package/src/toolkit/Secrets/index.js +4 -4
- package/src/tools/broadcast/Broadcast.d.ts +2 -2
- package/src/tools/broadcast/BroadcastRegistry.d.ts +1 -1
- package/src/tools/broadcast/BroadcastRuntimeRegistration.d.ts +1 -1
- package/src/tools/broadcast/drivers/Pusher.d.ts +1 -1
- package/src/tools/broadcast/index.d.ts +9 -9
- package/src/tools/http/Http.d.ts +2 -2
- package/src/tools/http/index.d.ts +6 -6
- package/src/tools/mail/Mail.d.ts +1 -1
- package/src/tools/mail/drivers/Cloudflare.d.ts +1 -1
- package/src/tools/mail/drivers/Cloudflare.js +1 -1
- package/src/tools/mail/drivers/Smtp.d.ts +1 -1
- package/src/tools/mail/drivers/Smtp.js +1 -1
- package/src/tools/mail/index.d.ts +1 -1
- package/src/tools/mail/template-loader.d.ts +1 -1
- package/src/tools/notification/Notification.d.ts +2 -2
- package/src/tools/notification/NotificationChannelRegistry.d.ts +1 -1
- package/src/tools/notification/NotificationRuntimeRegistration.d.ts +1 -1
- package/src/tools/notification/drivers/SlackNotification.js +1 -1
- package/src/tools/notification/drivers/TwilioNotification.js +1 -1
- package/src/tools/notification/templates/markdown/index.d.ts +1 -1
- package/src/tools/notification/templates/markdown/index.js +1 -1
- package/src/tools/notification/templates/markdown/registry.d.ts +1 -1
- package/src/tools/notification/templates/markdown/registry.js +1 -1
- package/src/tools/queue/AdvancedQueue.d.ts +3 -3
- package/src/tools/queue/DeduplicationBuilder.d.ts +1 -1
- package/src/tools/queue/IdempotencyManager.d.ts +1 -1
- package/src/tools/queue/JobRecoveryDaemon.d.ts +1 -1
- package/src/tools/queue/JobStateTrackerDbPersistence.d.ts +1 -1
- package/src/tools/queue/LockProvider.d.ts +1 -1
- package/src/tools/queue/Queue.d.ts +1 -1
- package/src/tools/queue/QueueExtensions.d.ts +3 -3
- package/src/tools/queue/QueueExtensions.js +1 -1
- package/src/tools/queue/QueueRuntimeRegistration.d.ts +1 -1
- package/src/tools/queue/QueueRuntimeRegistration.js +5 -5
- package/src/tools/queue/drivers/Database.d.ts +1 -1
- package/src/tools/queue/drivers/InMemory.d.ts +1 -1
- package/src/tools/queue/drivers/Redis.d.ts +1 -1
- package/src/tools/queue/index.d.ts +15 -15
- package/src/tools/redis/RedisTransport.d.ts +1 -1
- package/src/tools/storage/StorageRuntimeRegistration.d.ts +1 -1
- package/src/tools/storage/drivers/R2.js +1 -1
- package/src/tools/storage/index.d.ts +1 -1
- package/src/tools/templates/index.d.ts +1 -1
- package/src/tools-broadcast-index.d.ts +4 -4
- package/src/tools-http-index.d.ts +2 -2
- package/src/tools-index.d.ts +22 -22
- package/src/tools-mail-index.d.ts +12 -12
- package/src/tools-notification-index.d.ts +7 -7
- package/src/tools-queue-index.d.ts +17 -17
- package/src/tools-storage-index.d.ts +9 -9
- package/src/trace-index.d.ts +1 -1
- package/src/utils-index.d.ts +4 -4
- package/src/validation/Validator.d.ts +2 -2
- package/src/worker-commands.d.ts +1 -1
- package/src/worker-runtime/drain.d.ts +1 -1
- package/src/worker-runtime/install-enqueue-hook.d.ts +2 -2
- package/src/worker-runtime/ping.d.ts +2 -2
- package/src/worker-runtime.d.ts +4 -4
- package/src/workers-index.d.ts +4 -4
package/src/seeders-index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ZinTrust Seeders - Non-runtime entrypoint
|
|
3
3
|
* Contains database seeding utilities for development/admin use
|
|
4
4
|
*/
|
|
5
|
-
export { SeederDiscovery } from './seeders/SeederDiscovery';
|
|
6
|
-
export { SeederLoader } from './seeders/SeederLoader';
|
|
7
|
-
export type { LoadedSeeder, SeederHandler } from './seeders/types';
|
|
5
|
+
export { SeederDiscovery } from './seeders/SeederDiscovery.js';
|
|
6
|
+
export { SeederLoader } from './seeders/SeederLoader.js';
|
|
7
|
+
export type { LoadedSeeder, SeederHandler } from './seeders/types.js';
|
|
8
8
|
//# sourceMappingURL=seeders-index.d.ts.map
|
package/src/session/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SessionManager } from './SessionManager';
|
|
2
|
-
export type { ISession, ISessionManager, SessionData, SessionManagerOptions, } from './SessionManager';
|
|
1
|
+
export { SessionManager } from './SessionManager.js';
|
|
2
|
+
export type { ISession, ISessionManager, SessionData, SessionManagerOptions, } from './SessionManager.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/src/socket-index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Socket Exports
|
|
3
3
|
* Provides WebSocket and real-time communication utilities
|
|
4
4
|
*/
|
|
5
|
-
export { CloudflareSocket } from './sockets/CloudflareSocket';
|
|
6
|
-
export { SocketFeature } from './sockets/SocketRuntime';
|
|
7
|
-
export type { SocketAuthorizationContext, SocketAuthorizationDecision, SocketAuthorizer, SocketAuthorizerHandler, SocketFeatureSettings, SocketNodeUpgradeInput, SocketPublishContext, SocketPublishDecision, SocketPublishPolicy, SocketPublishPolicyHandler, SocketRouteRegistrar, SocketRuntime, SocketRuntimeDiagnostics, SocketTransportMode, SocketWorkerContext, } from './sockets/SocketRuntime';
|
|
8
|
-
export { SocketRuntimeRegistry } from './sockets/SocketRuntimeRegistry';
|
|
5
|
+
export { CloudflareSocket } from './sockets/CloudflareSocket.js';
|
|
6
|
+
export { SocketFeature } from './sockets/SocketRuntime.js';
|
|
7
|
+
export type { SocketAuthorizationContext, SocketAuthorizationDecision, SocketAuthorizer, SocketAuthorizerHandler, SocketFeatureSettings, SocketNodeUpgradeInput, SocketPublishContext, SocketPublishDecision, SocketPublishPolicy, SocketPublishPolicyHandler, SocketRouteRegistrar, SocketRuntime, SocketRuntimeDiagnostics, SocketTransportMode, SocketWorkerContext, } from './sockets/SocketRuntime.js';
|
|
8
|
+
export { SocketRuntimeRegistry } from './sockets/SocketRuntimeRegistry.js';
|
|
9
9
|
//# sourceMappingURL=socket-index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IRouter } from '../routes/Router';
|
|
2
|
-
import type { IRequest } from '../http/Request';
|
|
3
|
-
import type { IncomingMessage } from '../node-singletons/http';
|
|
4
|
-
import type { Socket } from '../node-singletons/net';
|
|
1
|
+
import type { IRouter } from '../routes/Router.js';
|
|
2
|
+
import type { IRequest } from '../http/Request.js';
|
|
3
|
+
import type { IncomingMessage } from '../node-singletons/http.js';
|
|
4
|
+
import type { Socket } from '../node-singletons/net.js';
|
|
5
5
|
export type SocketTransportMode = 'auto' | 'node' | 'cloudflare';
|
|
6
6
|
export type SocketFeatureSettings = Readonly<{
|
|
7
7
|
enabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SocketRouteRegistrar, SocketRuntime, SocketRuntimeDiagnostics } from './SocketRuntime';
|
|
1
|
+
import type { SocketRouteRegistrar, SocketRuntime, SocketRuntimeDiagnostics } from './SocketRuntime.js';
|
|
2
2
|
export declare const SocketRuntimeRegistry: Readonly<{
|
|
3
3
|
registerRuntime(runtime: SocketRuntime): void;
|
|
4
4
|
getRuntime(): SocketRuntime | undefined;
|
package/src/start.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActiveServiceRuntime } from './microservices/ServiceManifest';
|
|
1
|
+
import { type ActiveServiceRuntime } from './microservices/ServiceManifest.js';
|
|
2
2
|
export declare const isNodeMain: (importMetaUrl: string) => boolean;
|
|
3
3
|
export declare const configureStandaloneService: (activeService: unknown) => ActiveServiceRuntime;
|
|
4
4
|
export declare const bootStandaloneService: (importMetaUrl: string, activeService: unknown) => Promise<ActiveServiceRuntime>;
|
package/src/storage-index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Storage Exports
|
|
3
3
|
* Provides storage drivers and utilities
|
|
4
4
|
*/
|
|
5
|
-
export { GcsDriver } from './tools/storage/drivers/Gcs';
|
|
6
|
-
export { R2Driver } from './tools/storage/drivers/R2';
|
|
7
|
-
export { S3Driver } from './tools/storage/drivers/S3';
|
|
8
|
-
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry';
|
|
9
|
-
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry';
|
|
10
|
-
export type { MultipartFieldValue, MultipartParseInput, MultipartParserProvider, ParsedMultipartData, } from './http/parsers/MultipartParserRegistry';
|
|
11
|
-
export type { GcsConfig } from './tools/storage/drivers/Gcs';
|
|
12
|
-
export type { R2Config } from './tools/storage/drivers/R2';
|
|
13
|
-
export type { S3Config } from './tools/storage/drivers/S3';
|
|
5
|
+
export { GcsDriver } from './tools/storage/drivers/Gcs.js';
|
|
6
|
+
export { R2Driver } from './tools/storage/drivers/R2.js';
|
|
7
|
+
export { S3Driver } from './tools/storage/drivers/S3.js';
|
|
8
|
+
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry.js';
|
|
9
|
+
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry.js';
|
|
10
|
+
export type { MultipartFieldValue, MultipartParseInput, MultipartParserProvider, ParsedMultipartData, } from './http/parsers/MultipartParserRegistry.js';
|
|
11
|
+
export type { GcsConfig } from './tools/storage/drivers/Gcs.js';
|
|
12
|
+
export type { R2Config } from './tools/storage/drivers/R2.js';
|
|
13
|
+
export type { S3Config } from './tools/storage/drivers/S3.js';
|
|
14
14
|
//# sourceMappingURL=storage-index.d.ts.map
|
package/src/tasks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BackgroundTaskScheduler } from './runtime/BackgroundTaskScheduler';
|
|
1
|
+
export { BackgroundTaskScheduler } from './runtime/BackgroundTaskScheduler.js';
|
|
2
2
|
//# sourceMappingURL=tasks.d.ts.map
|
package/src/templates-index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* ZinTrust Templates - Template utilities
|
|
3
3
|
* Contains template rendering and generation utilities
|
|
4
4
|
*/
|
|
5
|
-
export { MarkdownRenderer } from './tools/templates';
|
|
5
|
+
export { MarkdownRenderer } from './tools/templates/index.js';
|
|
6
6
|
//# sourceMappingURL=templates-index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type IServiceContainer } from '../container/ServiceContainer';
|
|
2
|
-
import { type IKernel } from '../http/Kernel';
|
|
3
|
-
import { type IRouter } from '../routes/Router';
|
|
1
|
+
import { type IServiceContainer } from '../container/ServiceContainer.js';
|
|
2
|
+
import { type IKernel } from '../http/Kernel.js';
|
|
3
|
+
import { type IRouter } from '../routes/Router.js';
|
|
4
4
|
export type TestHeaders = Record<string, string>;
|
|
5
5
|
export type TestRequestInput = {
|
|
6
6
|
method: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IRequest, type ValidatedRequest } from '../http/Request';
|
|
2
|
-
import type { IResponse } from '../http/Response';
|
|
1
|
+
import { type IRequest, type ValidatedRequest } from '../http/Request.js';
|
|
2
|
+
import type { IResponse } from '../http/Response.js';
|
|
3
3
|
export type TestHttpRequestInput = {
|
|
4
4
|
method?: string;
|
|
5
5
|
path?: string;
|
package/src/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TestEnvironment } from '
|
|
2
|
-
export type { ITestEnvironment, TestEnvironmentOptions, TestHeaders, TestRequestInput, TestResponse, } from '
|
|
3
|
-
export { TestHttp } from '
|
|
4
|
-
export type { TestHttpRequestInput, TestHttpResponseRecorder } from '
|
|
1
|
+
export { TestEnvironment } from './TestEnvironment.js';
|
|
2
|
+
export type { ITestEnvironment, TestEnvironmentOptions, TestHeaders, TestRequestInput, TestResponse, } from './TestEnvironment.js';
|
|
3
|
+
export { TestHttp } from './TestHttp.js';
|
|
4
|
+
export type { TestHttpRequestInput, TestHttpResponseRecorder } from './TestHttp.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/src/testing/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TestEnvironment } from '
|
|
2
|
-
export { TestHttp } from '
|
|
1
|
+
export { TestEnvironment } from './TestEnvironment.js';
|
|
2
|
+
export { TestHttp } from './TestHttp.js';
|
package/src/testing-index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* ZinTrust Testing - Non-runtime entrypoint
|
|
3
3
|
* Contains test utilities and helpers for development use
|
|
4
4
|
*/
|
|
5
|
-
export { TestEnvironment } from './testing/TestEnvironment';
|
|
6
|
-
export { TestHttp } from './testing/TestHttp';
|
|
5
|
+
export { TestEnvironment } from './testing/TestEnvironment.js';
|
|
6
|
+
export { TestHttp } from './testing/TestHttp.js';
|
|
7
7
|
//# sourceMappingURL=testing-index.d.ts.map
|
package/src/time/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Time Utilities Module
|
|
3
3
|
* Exports immutable DateTime utilities and related types
|
|
4
4
|
*/
|
|
5
|
-
export { DateTime } from './DateTime';
|
|
6
|
-
export type { IDateTime } from './DateTime';
|
|
5
|
+
export { DateTime } from './DateTime.js';
|
|
6
|
+
export type { IDateTime } from './DateTime.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Internal framework module intended for CLI usage.
|
|
5
5
|
* It may use Node APIs (via node-singletons) and should not be used by runtime apps.
|
|
6
6
|
*/
|
|
7
|
-
import { type SecretsProviderName } from '
|
|
8
|
-
export type { SecretsProviderName } from '
|
|
7
|
+
import { type SecretsProviderName } from './Manifest.js';
|
|
8
|
+
export type { SecretsProviderName } from './Manifest.js';
|
|
9
9
|
export type PullOptions = {
|
|
10
10
|
cwd: string;
|
|
11
11
|
provider?: SecretsProviderName;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Env } from '../../config/env.js';
|
|
8
8
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
9
|
-
import { EnvFile } from '
|
|
10
|
-
import { Manifest } from '
|
|
11
|
-
import { AwsSecretsManager } from '
|
|
12
|
-
import { CloudflareKv } from '
|
|
9
|
+
import { EnvFile } from './EnvFile.js';
|
|
10
|
+
import { Manifest } from './Manifest.js';
|
|
11
|
+
import { AwsSecretsManager } from './providers/AwsSecretsManager.js';
|
|
12
|
+
import { CloudflareKv } from './providers/CloudflareKv.js';
|
|
13
13
|
const resolveDefaultEnvFile = () => Env.ZINTRUST_ENV_FILE;
|
|
14
14
|
const resolveDefaultManifest = () => Env.ZINTRUST_SECRETS_MANIFEST;
|
|
15
15
|
const resolveDefaultInFile = () => Env.ZINTRUST_ENV_IN_FILE;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { KnownBroadcastDriverConfig } from '../../config/type';
|
|
2
|
-
import type { IRequest } from '../../http/Request';
|
|
1
|
+
import type { KnownBroadcastDriverConfig } from '../../config/type.js';
|
|
2
|
+
import type { IRequest } from '../../http/Request.js';
|
|
3
3
|
type Broadcaster = Readonly<{
|
|
4
4
|
send: (channel: string, event: string, data: unknown) => Promise<unknown>;
|
|
5
5
|
publish: (input: BroadcastPublishInput) => Promise<BroadcastPublishResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KnownBroadcastDriverConfig } from '../../config/type';
|
|
1
|
+
import type { KnownBroadcastDriverConfig } from '../../config/type.js';
|
|
2
2
|
declare function register(name: string, config: KnownBroadcastDriverConfig): void;
|
|
3
3
|
declare function get(name: string): KnownBroadcastDriverConfig;
|
|
4
4
|
declare function has(name: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PusherBroadcastDriverConfig } from '../../../config/type';
|
|
1
|
+
import type { PusherBroadcastDriverConfig } from '../../../config/type.js';
|
|
2
2
|
export declare const PusherDriver: Readonly<{
|
|
3
3
|
send(config: PusherBroadcastDriverConfig, channel: string, event: string, data: unknown): Promise<{
|
|
4
4
|
ok: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Broadcast } from './Broadcast';
|
|
2
|
-
export type { BroadcastPublishInput, BroadcastPublishResult } from './Broadcast';
|
|
3
|
-
export { BroadcastRegistry } from './BroadcastRegistry';
|
|
4
|
-
export { registerBroadcastersFromRuntimeConfig } from './BroadcastRuntimeRegistration';
|
|
5
|
-
export { BaseDriver } from './drivers/BaseDriver';
|
|
6
|
-
export { InMemoryDriver } from './drivers/InMemory';
|
|
7
|
-
export { PusherDriver } from './drivers/Pusher';
|
|
8
|
-
export { RedisDriver } from './drivers/Redis';
|
|
9
|
-
export { RedisHttpsDriver } from './drivers/RedisHttps';
|
|
1
|
+
export { Broadcast } from './Broadcast.js';
|
|
2
|
+
export type { BroadcastPublishInput, BroadcastPublishResult } from './Broadcast.js';
|
|
3
|
+
export { BroadcastRegistry } from './BroadcastRegistry.js';
|
|
4
|
+
export { registerBroadcastersFromRuntimeConfig } from './BroadcastRuntimeRegistration.js';
|
|
5
|
+
export { BaseDriver } from './drivers/BaseDriver.js';
|
|
6
|
+
export { InMemoryDriver } from './drivers/InMemory.js';
|
|
7
|
+
export { PusherDriver } from './drivers/Pusher.js';
|
|
8
|
+
export { RedisDriver } from './drivers/Redis.js';
|
|
9
|
+
export { RedisHttpsDriver } from './drivers/RedisHttps.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/src/tools/http/Http.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* await HttpClient.get('https://api.example.com/users').withAuth(token).send();
|
|
6
6
|
* await HttpClient.post('https://api.example.com/users', data).withTimeout(5000).send();
|
|
7
7
|
*/
|
|
8
|
-
import { type IHttpResponse } from './HttpResponse';
|
|
9
|
-
export type { IHttpResponse } from './HttpResponse';
|
|
8
|
+
import { type IHttpResponse } from './HttpResponse.js';
|
|
9
|
+
export type { IHttpResponse } from './HttpResponse.js';
|
|
10
10
|
export type HttpRequestBody = Record<string, unknown> | string | ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams;
|
|
11
11
|
export type HttpRequestCustomMode = Readonly<{
|
|
12
12
|
contentType?: string;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
declare const _default: Readonly<{
|
|
5
5
|
HttpClient: Readonly<{
|
|
6
|
-
get(url: string): import("./Http").IHttpRequest;
|
|
7
|
-
post(url: string, data?: import("./Http").HttpRequestBody | null): import("./Http").IHttpRequest;
|
|
8
|
-
put(url: string, data?: import("./Http").HttpRequestBody | null): import("./Http").IHttpRequest;
|
|
9
|
-
patch(url: string, data?: import("./Http").HttpRequestBody | null): import("./Http").IHttpRequest;
|
|
10
|
-
delete(url: string, data?: import("./Http").HttpRequestBody | null): import("./Http").IHttpRequest;
|
|
6
|
+
get(url: string): import("./Http.js").IHttpRequest;
|
|
7
|
+
post(url: string, data?: import("./Http.js").HttpRequestBody | null): import("./Http.js").IHttpRequest;
|
|
8
|
+
put(url: string, data?: import("./Http.js").HttpRequestBody | null): import("./Http.js").IHttpRequest;
|
|
9
|
+
patch(url: string, data?: import("./Http.js").HttpRequestBody | null): import("./Http.js").IHttpRequest;
|
|
10
|
+
delete(url: string, data?: import("./Http.js").HttpRequestBody | null): import("./Http.js").IHttpRequest;
|
|
11
11
|
}>;
|
|
12
|
-
createHttpResponse: (response: Response, body: string) => import("./HttpResponse").IHttpResponse;
|
|
12
|
+
createHttpResponse: (response: Response, body: string) => import("./HttpResponse.js").IHttpResponse;
|
|
13
13
|
}>;
|
|
14
14
|
export default _default;
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/src/tools/mail/Mail.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default, Mail } from './index';
|
|
1
|
+
export { default, Mail } from './index.js';
|
|
2
2
|
//# sourceMappingURL=Mail.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { Cloudflare } from '../../../config/cloudflare.js';
|
|
|
3
3
|
import { Env } from '../../../config/env.js';
|
|
4
4
|
import { ErrorFactory } from '../../../exceptions/ZintrustError.js';
|
|
5
5
|
import { parseCustomHeadersFromEnv } from '../../../orm/adapters/SqlProxyAdapterUtils.js';
|
|
6
|
-
import { buildRfc2822Message } from '
|
|
6
|
+
import { buildRfc2822Message } from '../MailMessage.js';
|
|
7
7
|
const MAIL_PROXY_KEY_ID_ENV = 'MAIL_CLOUDFLARE_PROXY_KEY_ID';
|
|
8
8
|
const MAIL_PROXY_SECRET_ENV = ['MAIL_CLOUDFLARE_PROXY', 'SECRET'].join('_');
|
|
9
9
|
const APP_KEY_ID_ENV = 'APP_NAME';
|
|
@@ -7,7 +7,7 @@ import * as net from '../../../node-singletons/net.js';
|
|
|
7
7
|
import * as tls from '../../../node-singletons/tls.js';
|
|
8
8
|
import { parseCustomHeadersFromEnv } from '../../../orm/adapters/SqlProxyAdapterUtils.js';
|
|
9
9
|
import { normalizeSigningCredentials } from '../../../proxy/SigningService.js';
|
|
10
|
-
import { buildRfc2822Message, } from '
|
|
10
|
+
import { buildRfc2822Message, } from '../MailMessage.js';
|
|
11
11
|
const resolveSigningPrefix = (baseUrl) => {
|
|
12
12
|
try {
|
|
13
13
|
const parsed = new URL(baseUrl);
|
|
@@ -18,8 +18,8 @@ export declare const Notification: Readonly<{
|
|
|
18
18
|
channel: (name: string) => Readonly<{
|
|
19
19
|
send: (recipient: string, message: string, options?: Record<string, unknown>) => Promise<unknown>;
|
|
20
20
|
}>;
|
|
21
|
-
compose: <TContext = unknown>(options?: import("./Composer").NotificationComposeOptions<TContext>) => import("./Composer").NotificationComposeBuilder<TContext>;
|
|
22
|
-
registerChannel: <TPayload = unknown, TContext = unknown>(name: string, handler: import("./Composer").NotificationChannelHandler<TPayload, TContext>) => void;
|
|
21
|
+
compose: <TContext = unknown>(options?: import("./Composer.js").NotificationComposeOptions<TContext>) => import("./Composer.js").NotificationComposeBuilder<TContext>;
|
|
22
|
+
registerChannel: <TPayload = unknown, TContext = unknown>(name: string, handler: import("./Composer.js").NotificationChannelHandler<TPayload, TContext>) => void;
|
|
23
23
|
unregisterChannel: (name: string) => void;
|
|
24
24
|
hasChannel: (name: string) => boolean;
|
|
25
25
|
listChannels: () => string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { KnownNotificationDriverConfig } from '../../config/type';
|
|
1
|
+
import type { KnownNotificationDriverConfig } from '../../config/type.js';
|
|
2
2
|
declare function register(name: string, config: KnownNotificationDriverConfig): void;
|
|
3
3
|
declare function has(name: string): boolean;
|
|
4
4
|
declare function get(name: string): KnownNotificationDriverConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import notificationConfig from '../../../config/notification.js';
|
|
2
|
-
import { SlackDriver } from '
|
|
2
|
+
import { SlackDriver } from './Slack.js';
|
|
3
3
|
export const SlackNotificationDriver = Object.freeze({
|
|
4
4
|
async send(_recipient, message, options = {}) {
|
|
5
5
|
const cfg = notificationConfig.providers.slack;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import notificationConfig from '../../../config/notification.js';
|
|
2
|
-
import { TwilioDriver } from '
|
|
2
|
+
import { TwilioDriver } from './Twilio.js';
|
|
3
3
|
export const TwilioNotificationDriver = Object.freeze({
|
|
4
4
|
async send(recipient, message) {
|
|
5
5
|
const cfg = notificationConfig.providers.twilio;
|
|
@@ -3,7 +3,7 @@ export declare const loadTemplate: (name: string) => {
|
|
|
3
3
|
content: string;
|
|
4
4
|
variables?: string[];
|
|
5
5
|
};
|
|
6
|
-
export { listTemplates, renderTemplate } from '
|
|
6
|
+
export { listTemplates, renderTemplate } from './registry.js';
|
|
7
7
|
declare const _default: {
|
|
8
8
|
loadTemplate: (name: string) => {
|
|
9
9
|
subject?: string;
|
|
@@ -34,5 +34,5 @@ export const loadTemplate = (name) => {
|
|
|
34
34
|
const content = lines.slice(i).join('\n').trim();
|
|
35
35
|
return { content, ...meta };
|
|
36
36
|
};
|
|
37
|
-
export { listTemplates, renderTemplate } from '
|
|
37
|
+
export { listTemplates, renderTemplate } from './registry.js';
|
|
38
38
|
export default { loadTemplate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readdirSync, statSync } from '../../../../node-singletons/fs.js';
|
|
2
2
|
import { join, relative } from '../../../../node-singletons/path.js';
|
|
3
|
-
import { loadTemplate } from '
|
|
3
|
+
import { loadTemplate } from './index.js';
|
|
4
4
|
import { MarkdownRenderer } from '../../../templates/index.js';
|
|
5
5
|
const BASE = join(process.cwd(), 'src', 'tools', 'notification', 'templates', 'markdown');
|
|
6
6
|
const walkDir = (dir, base = dir) => {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Advanced Queue Implementation
|
|
3
3
|
* Extends ZinTrust queue functionality with deduplication and lock management
|
|
4
4
|
*/
|
|
5
|
-
import type { AdvancedJobOptions, JobResult, QueueConfig } from '../../types/Queue';
|
|
6
|
-
import { type DeduplicationBuilder } from './DeduplicationBuilder';
|
|
7
|
-
import type { BullMQPayload } from './Queue';
|
|
5
|
+
import type { AdvancedJobOptions, JobResult, QueueConfig } from '../../types/Queue.js';
|
|
6
|
+
import { type DeduplicationBuilder } from './DeduplicationBuilder.js';
|
|
7
|
+
import type { BullMQPayload } from './Queue.js';
|
|
8
8
|
export interface AdvancedQueue {
|
|
9
9
|
enqueue(name: string, payload: BullMQPayload, options: AdvancedJobOptions): Promise<string>;
|
|
10
10
|
deduplicate(id: string, builder: DeduplicationBuilder): Promise<JobResult>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Deduplication Builder - Plain function implementation for BullMQ job deduplication
|
|
3
3
|
* Follows ZinTrust's preference for functions over classes
|
|
4
4
|
*/
|
|
5
|
-
import type { DeduplicationOptions, ReleaseCondition } from '../../types/Queue';
|
|
5
|
+
import type { DeduplicationOptions, ReleaseCondition } from '../../types/Queue.js';
|
|
6
6
|
export type ReleaseStrategy = string | number | ReleaseCondition;
|
|
7
7
|
export interface DeduplicationBuilder {
|
|
8
8
|
id(id: string): DeduplicationBuilder;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BullMQPayload } from './Queue';
|
|
1
|
+
import { type BullMQPayload } from './Queue.js';
|
|
2
2
|
export declare const IdempotencyManager: Readonly<{
|
|
3
3
|
enqueueIdempotent(queueName: string, payload: BullMQPayload, idempotencyKey: string, ttlMs?: number): Promise<string>;
|
|
4
4
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JobTrackingRecord } from './JobStateTracker';
|
|
1
|
+
import { type JobTrackingRecord } from './JobStateTracker.js';
|
|
2
2
|
export type DlqReplayReasonCode = 'bug_fixed' | 'transient_dependency' | 'operator_override';
|
|
3
3
|
type DlqReplayRequest = {
|
|
4
4
|
reasonCode: DlqReplayReasonCode;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Lock Provider Implementation
|
|
3
3
|
* Provides distributed lock management for job deduplication
|
|
4
4
|
*/
|
|
5
|
-
import type { LockProvider, LockProviderConfig } from '../../types/Queue';
|
|
5
|
+
import type { LockProvider, LockProviderConfig } from '../../types/Queue.js';
|
|
6
6
|
/**
|
|
7
7
|
* Close Redis connection and cleanup resources
|
|
8
8
|
*/
|
|
@@ -70,5 +70,5 @@ export declare const Queue: Readonly<{
|
|
|
70
70
|
drain(queue: string, driverName?: string): Promise<void>;
|
|
71
71
|
}>;
|
|
72
72
|
export default Queue;
|
|
73
|
-
export { resolveDeduplicationLockKey } from './DeduplicationKey';
|
|
73
|
+
export { resolveDeduplicationLockKey } from './DeduplicationKey.js';
|
|
74
74
|
//# sourceMappingURL=Queue.d.ts.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Queue Extensions - Backward Compatible Extensions
|
|
3
3
|
* Extends existing Queue functionality without breaking changes
|
|
4
4
|
*/
|
|
5
|
-
import type { AdvancedJobOptions, QueueConfig } from '../../types/Queue';
|
|
6
|
-
import { createDeduplicationBuilder } from './DeduplicationBuilder';
|
|
7
|
-
import type { BullMQPayload } from './Queue';
|
|
5
|
+
import type { AdvancedJobOptions, QueueConfig } from '../../types/Queue.js';
|
|
6
|
+
import { createDeduplicationBuilder } from './DeduplicationBuilder.js';
|
|
7
|
+
import type { BullMQPayload } from './Queue.js';
|
|
8
8
|
/**
|
|
9
9
|
* Extend existing Queue with advanced capabilities
|
|
10
10
|
* This provides a migration path for existing code
|
|
@@ -93,7 +93,7 @@ export const QueueLocks = {
|
|
|
93
93
|
* Check lock status
|
|
94
94
|
*/
|
|
95
95
|
async status(key) {
|
|
96
|
-
const { getLockProvider } = await import('
|
|
96
|
+
const { getLockProvider } = await import('./LockProvider.js');
|
|
97
97
|
const lockProvider = getLockProvider(ZintrustLang.MEMORY);
|
|
98
98
|
if (lockProvider !== undefined) {
|
|
99
99
|
const status = await lockProvider.status(key);
|
|
@@ -6,11 +6,11 @@ import { existsSync } from '../../node-singletons/fs.js';
|
|
|
6
6
|
import * as path from '../../node-singletons/path.js';
|
|
7
7
|
import { pathToFileURL } from '../../node-singletons/url.js';
|
|
8
8
|
import { detectRuntime } from '../../runtime/detectRuntime.js';
|
|
9
|
-
import { DatabaseQueue } from '
|
|
10
|
-
import { InMemoryQueue } from '
|
|
11
|
-
import { autoRegisterJobStateTrackerPersistenceFromEnv } from '
|
|
12
|
-
import { Queue } from '
|
|
13
|
-
import { QueueReliabilityOrchestrator } from '
|
|
9
|
+
import { DatabaseQueue } from './drivers/Database.js';
|
|
10
|
+
import { InMemoryQueue } from './drivers/InMemory.js';
|
|
11
|
+
import { autoRegisterJobStateTrackerPersistenceFromEnv } from './JobStateTrackerDbPersistence.js';
|
|
12
|
+
import { Queue } from './Queue.js';
|
|
13
|
+
import { QueueReliabilityOrchestrator } from './QueueReliabilityOrchestrator.js';
|
|
14
14
|
const QUEUE_REDIS_PACKAGE = '@zintrust/queue-redis';
|
|
15
15
|
const ZEDGI_PACKAGE = '@zintrust/zedgi';
|
|
16
16
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { QueueMessage } from '
|
|
1
|
+
import type { QueueMessage } from '../Queue.js';
|
|
2
2
|
export declare const InMemoryQueue: {
|
|
3
3
|
readonly enqueue: <T = unknown>(queue: string, payload: T) => Promise<string>;
|
|
4
4
|
readonly dequeue: <T = unknown>(queue: string) => Promise<QueueMessage<T> | undefined>;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
* Queue Module Exports
|
|
3
3
|
* Centralized exports for advanced queue patterns
|
|
4
4
|
*/
|
|
5
|
-
export { createAdvancedQueue, type AdvancedQueue } from './AdvancedQueue';
|
|
6
|
-
export { createDeduplicationBuilder, type DeduplicationBuilder } from './DeduplicationBuilder';
|
|
7
|
-
export { resolveDeduplicationLockKey } from './DeduplicationKey';
|
|
8
|
-
export { IdempotencyManager } from './IdempotencyManager';
|
|
9
|
-
export { JobHeartbeatStore } from './JobHeartbeatStore';
|
|
10
|
-
export { JobReconciliationRunner } from './JobReconciliationRunner';
|
|
11
|
-
export { JobRecoveryDaemon } from './JobRecoveryDaemon';
|
|
12
|
-
export { createLockProvider, createMemoryLockProvider, createRedisLockProvider, getLockProvider, registerLockProvider, } from './LockProvider';
|
|
13
|
-
export { QueueDataRedactor } from './QueueDataRedactor';
|
|
14
|
-
export { QueueReliabilityMetrics } from './QueueReliabilityMetrics';
|
|
15
|
-
export { QueueReliabilityOrchestrator } from './QueueReliabilityOrchestrator';
|
|
16
|
-
export { QueueTracing } from './QueueTracing';
|
|
17
|
-
export { StalledJobMonitor } from './StalledJobMonitor';
|
|
18
|
-
export { TimeoutManager } from './TimeoutManager';
|
|
19
|
-
export type { AdvancedJobOptions, DeduplicationOptions, JobResult, Lock, LockOptions, LockProvider, LockProviderConfig, LockStatus, QueueConfig, ReleaseCondition, } from '../../types/Queue';
|
|
5
|
+
export { createAdvancedQueue, type AdvancedQueue } from './AdvancedQueue.js';
|
|
6
|
+
export { createDeduplicationBuilder, type DeduplicationBuilder } from './DeduplicationBuilder.js';
|
|
7
|
+
export { resolveDeduplicationLockKey } from './DeduplicationKey.js';
|
|
8
|
+
export { IdempotencyManager } from './IdempotencyManager.js';
|
|
9
|
+
export { JobHeartbeatStore } from './JobHeartbeatStore.js';
|
|
10
|
+
export { JobReconciliationRunner } from './JobReconciliationRunner.js';
|
|
11
|
+
export { JobRecoveryDaemon } from './JobRecoveryDaemon.js';
|
|
12
|
+
export { createLockProvider, createMemoryLockProvider, createRedisLockProvider, getLockProvider, registerLockProvider, } from './LockProvider.js';
|
|
13
|
+
export { QueueDataRedactor } from './QueueDataRedactor.js';
|
|
14
|
+
export { QueueReliabilityMetrics } from './QueueReliabilityMetrics.js';
|
|
15
|
+
export { QueueReliabilityOrchestrator } from './QueueReliabilityOrchestrator.js';
|
|
16
|
+
export { QueueTracing } from './QueueTracing.js';
|
|
17
|
+
export { StalledJobMonitor } from './StalledJobMonitor.js';
|
|
18
|
+
export { TimeoutManager } from './TimeoutManager.js';
|
|
19
|
+
export type { AdvancedJobOptions, DeduplicationOptions, JobResult, Lock, LockOptions, LockProvider, LockProviderConfig, LockStatus, QueueConfig, ReleaseCondition, } from '../../types/Queue.js';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StorageConfigRuntime, StorageDriverConfig } from '../../config/type';
|
|
1
|
+
import type { StorageConfigRuntime, StorageDriverConfig } from '../../config/type.js';
|
|
2
2
|
export type StorageRuntimeConfig = StorageConfigRuntime & {
|
|
3
3
|
getDriverConfig?: (name?: string) => StorageDriverConfig;
|
|
4
4
|
};
|