@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryBuilderTypeSurface.fixture.d.ts","sourceRoot":"","sources":["../../../src/orm/QueryBuilderTypeSurface.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAK1C;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,aAAa,KAAG,
|
|
1
|
+
{"version":3,"file":"QueryBuilderTypeSurface.fixture.d.ts","sourceRoot":"","sources":["../../../src/orm/QueryBuilderTypeSurface.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAK1C;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,IAAI,aAAa,KAAG,aAuC9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,GAC1C,OAAO,YAAY,CAAC,YAAY,CAAC,KAChC,aAwCF,CAAC;AAEF,uFAAuF;AACvF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,cAAc,CAAC;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -22,6 +22,8 @@ export const assertIQueryBuilderSurface = (qb) => {
|
|
|
22
22
|
const joinOn = (on) => on.on('messages.id', '=', 'states.message_id').on('states.thread_id', '=', 'messages.thread_id');
|
|
23
23
|
return asBuilder(qb
|
|
24
24
|
.whereNotNull('hidden_at')
|
|
25
|
+
.whereMatch('body', '"hello"')
|
|
26
|
+
.whereNotMatch('body', '"spam"')
|
|
25
27
|
.whereColumn('messages.thread_id', '=', 'threads.id')
|
|
26
28
|
.whereExists((sub) => sub
|
|
27
29
|
.from('message_user_states')
|
|
@@ -45,6 +47,8 @@ export const assertIQueryBuilderSurface = (qb) => {
|
|
|
45
47
|
export const assertDefinedModelStaticSurface = (model) => {
|
|
46
48
|
const fromStatic = asBuilder(model
|
|
47
49
|
.whereNotNull('deleted_for_all_at')
|
|
50
|
+
.whereMatch('body', '"hello"')
|
|
51
|
+
.whereNotMatch('body', '"spam"')
|
|
48
52
|
.whereColumn('messages.id', '=', 'states.message_id')
|
|
49
53
|
.whereNotExists((sub) => sub
|
|
50
54
|
.from('message_user_states')
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Relationship Types
|
|
3
3
|
* Define how models relate to each other
|
|
4
4
|
*/
|
|
5
|
-
import type { IModel, Model, ModelStatic } from './Model';
|
|
5
|
+
import type { IModel, Model, ModelStatic } from './Model.js';
|
|
6
6
|
export type RelationshipType = 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany' | 'morphOne' | 'morphMany' | 'morphTo' | 'hasOneThrough' | 'hasManyThrough';
|
|
7
7
|
export interface Relation {
|
|
8
8
|
type: RelationshipType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDatabase } from './Database';
|
|
2
|
-
import type { ISchema } from './Schema';
|
|
1
|
+
import type { IDatabase } from './Database.js';
|
|
2
|
+
import type { ISchema } from './Schema.js';
|
|
3
3
|
export declare const SchemaCompiler: Readonly<{
|
|
4
4
|
createTable(db: IDatabase, schema: ISchema, opts?: {
|
|
5
5
|
ifNotExists?: boolean;
|
|
@@ -7,7 +7,7 @@ import { Logger } from '../../config/logger.js';
|
|
|
7
7
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
8
|
import { isObject } from '../../helper/index.js';
|
|
9
9
|
import { AdaptersEnum } from '../../migrations/enum/index.js';
|
|
10
|
-
import { createReadSessionScope, openSession } from '
|
|
10
|
+
import { createReadSessionScope, openSession } from './D1ReadSession.js';
|
|
11
11
|
import { BaseAdapter } from '../DatabaseAdapter.js';
|
|
12
12
|
import { QueryBuilder } from '../QueryBuilder.js';
|
|
13
13
|
const isRecord = (value) => isObject(value);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* to `AsyncLocalStorage` when available and otherwise uses a synchronous
|
|
11
11
|
* single-slot fallback, mirroring `@http/RequestContext`.
|
|
12
12
|
*/
|
|
13
|
-
import type { D1ReadConstraint, ID1Database, ID1DatabaseSession } from '../DatabaseAdapter';
|
|
13
|
+
import type { D1ReadConstraint, ID1Database, ID1DatabaseSession } from '../DatabaseAdapter.js';
|
|
14
14
|
export interface D1SessionHandle {
|
|
15
15
|
readonly db: ID1DatabaseSession;
|
|
16
16
|
getBookmark(): string | null;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Calls a ZinTrust Cloudflare Worker proxy over HTTPS.
|
|
5
5
|
*/
|
|
6
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
6
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
7
7
|
export declare const D1RemoteAdapter: Readonly<{
|
|
8
8
|
create(_config: DatabaseConfig): IDatabaseAdapter;
|
|
9
9
|
}>;
|
|
@@ -8,8 +8,8 @@ import { Env } from '../../config/env.js';
|
|
|
8
8
|
import { Logger } from '../../config/logger.js';
|
|
9
9
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
10
10
|
import { AdaptersEnum } from '../../migrations/enum/index.js';
|
|
11
|
-
import { isRecord, parseCustomHeadersFromEnv } from '
|
|
12
|
-
import { createStatementId } from '
|
|
11
|
+
import { isRecord, parseCustomHeadersFromEnv } from './SqlProxyAdapterUtils.js';
|
|
12
|
+
import { createStatementId } from './SqlProxyRegistryMode.js';
|
|
13
13
|
import { QueryBuilder } from '../QueryBuilder.js';
|
|
14
14
|
import { SchemaWriter } from '../SchemaStatemenWriter.js';
|
|
15
15
|
import { isMutatingSql } from '../../proxy/isMutatingSql.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Env } from '../../config/env.js';
|
|
3
3
|
import { Logger } from '../../config/logger.js';
|
|
4
4
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
5
|
-
import { ProxyCache } from '
|
|
6
|
-
import { ensureSignedSettings, isRecord, parseCustomHeadersFromEnv, requestSignedProxy, } from '
|
|
5
|
+
import { ProxyCache } from './ProxyCache.js';
|
|
6
|
+
import { ensureSignedSettings, isRecord, parseCustomHeadersFromEnv, requestSignedProxy, } from './SqlProxyAdapterUtils.js';
|
|
7
7
|
const normalizeRows = (value) => {
|
|
8
8
|
if (value === null)
|
|
9
9
|
return [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MySQL Database Adapter
|
|
3
3
|
*/
|
|
4
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
4
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
5
5
|
/**
|
|
6
6
|
* MySQL adapter implementation
|
|
7
7
|
* Sealed namespace for immutability
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Used in Cloudflare Workers when MYSQL_PROXY_URL is configured.
|
|
5
5
|
*/
|
|
6
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
6
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
7
7
|
export declare const MySQLProxyAdapter: Readonly<{
|
|
8
8
|
create(_config: DatabaseConfig): IDatabaseAdapter;
|
|
9
9
|
}>;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
9
9
|
import { AdaptersEnum } from '../../migrations/enum/index.js';
|
|
10
|
-
import { ensureSignedSettings, isRecord, } from '
|
|
11
|
-
import { SqlProxyHttpAdapterShared } from '
|
|
12
|
-
import { createStatementPayload, getExecMetaWithLastRowId, } from '
|
|
10
|
+
import { ensureSignedSettings, isRecord, } from './SqlProxyAdapterUtils.js';
|
|
11
|
+
import { SqlProxyHttpAdapterShared } from './SqlProxyHttpAdapterShared.js';
|
|
12
|
+
import { createStatementPayload, getExecMetaWithLastRowId, } from './SqlProxyRegistryMode.js';
|
|
13
13
|
import { QueryBuilder } from '../QueryBuilder.js';
|
|
14
14
|
const buildProxySettings = () => {
|
|
15
15
|
return SqlProxyHttpAdapterShared.buildProxySettingsFromEnv({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PostgreSQL Database Adapter
|
|
3
3
|
*/
|
|
4
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
4
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
5
5
|
/**
|
|
6
6
|
* PostgreSQL adapter implementation
|
|
7
7
|
* Sealed namespace for immutability
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Used in Cloudflare Workers when POSTGRES_PROXY_URL is configured.
|
|
5
5
|
*/
|
|
6
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
6
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
7
7
|
export declare const PostgreSQLProxyAdapter: Readonly<{
|
|
8
8
|
create(_config: DatabaseConfig): IDatabaseAdapter;
|
|
9
9
|
}>;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
8
|
import { AdaptersEnum } from '../../migrations/enum/index.js';
|
|
9
|
-
import { isRecord, } from '
|
|
10
|
-
import { SqlProxyHttpAdapterShared } from '
|
|
11
|
-
import { createStatementPayload } from '
|
|
9
|
+
import { isRecord, } from './SqlProxyAdapterUtils.js';
|
|
10
|
+
import { SqlProxyHttpAdapterShared } from './SqlProxyHttpAdapterShared.js';
|
|
11
|
+
import { createStatementPayload } from './SqlProxyRegistryMode.js';
|
|
12
12
|
import { QueryBuilder } from '../QueryBuilder.js';
|
|
13
13
|
const buildProxySettings = () => {
|
|
14
14
|
return SqlProxyHttpAdapterShared.buildProxySettingsFromEnv({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
2
2
|
import { normalizeSigningCredentials } from '../../proxy/SigningService.js';
|
|
3
3
|
import { SignedRequest } from '../../security/SignedRequest.js';
|
|
4
|
-
import { buildSigningUrl } from '
|
|
4
|
+
import { buildSigningUrl } from './ProxySigningPath.js';
|
|
5
5
|
export const createSignedProxyRequest = async (input) => {
|
|
6
6
|
const creds = normalizeSigningCredentials({ keyId: input.keyId, secret: input.secret });
|
|
7
7
|
if (creds.keyId.trim() === '' || creds.secret.trim() === '') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SQL Server Database Adapter
|
|
3
3
|
*/
|
|
4
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
4
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
5
5
|
/**
|
|
6
6
|
* SQL Server adapter implementation
|
|
7
7
|
* Sealed namespace for immutability
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SQLite Database Adapter
|
|
3
3
|
* Production Implementation
|
|
4
4
|
*/
|
|
5
|
-
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter';
|
|
5
|
+
import type { DatabaseConfig, IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
6
6
|
declare function createSQLiteAdapter(config: DatabaseConfig): IDatabaseAdapter;
|
|
7
7
|
export declare const SQLiteAdapter: Readonly<{
|
|
8
8
|
create: typeof createSQLiteAdapter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RemoteSignedJsonSettings } from '../../common/RemoteSignedJson';
|
|
1
|
+
import { type RemoteSignedJsonSettings } from '../../common/RemoteSignedJson.js';
|
|
2
2
|
export declare const parseCustomHeadersFromEnv: (prefix: string) => Record<string, string> | undefined;
|
|
3
3
|
export type ProxySettings = {
|
|
4
4
|
baseUrl: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RemoteSignedJson } from '../../common/RemoteSignedJson.js';
|
|
2
2
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
3
3
|
import { isObject } from '../../helper/index.js';
|
|
4
|
-
import { resolveSigningPrefix } from '
|
|
4
|
+
import { resolveSigningPrefix } from './ProxySigningPath.js';
|
|
5
5
|
import { normalizeSigningCredentials } from '../../proxy/SigningService.js';
|
|
6
6
|
// Export parseCustomHeadersFromEnv for use by other proxy adapters (Redis, SMTP, etc.)
|
|
7
7
|
export const parseCustomHeadersFromEnv = (prefix) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ProxySettings, type SignedProxyConfig } from '
|
|
1
|
+
import { type ProxySettings, type SignedProxyConfig } from './SqlProxyAdapterUtils.js';
|
|
2
2
|
export type ProxyMode = 'sql' | 'registry';
|
|
3
3
|
export type ProxySettingsBuildInput = {
|
|
4
4
|
urlKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Env } from '../../config/env.js';
|
|
2
2
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
3
|
-
import { ensureSignedSettings, parseCustomHeadersFromEnv, requestSignedProxy, } from '
|
|
4
|
-
import { resolveSqlProxyMode } from '
|
|
3
|
+
import { ensureSignedSettings, parseCustomHeadersFromEnv, requestSignedProxy, } from './SqlProxyAdapterUtils.js';
|
|
4
|
+
import { resolveSqlProxyMode } from './SqlProxyRegistryMode.js';
|
|
5
5
|
const resolveBaseUrl = (input) => {
|
|
6
6
|
const explicit = Env.get(input.urlKey, '').trim();
|
|
7
7
|
if (explicit !== '')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Env } from '../../config/env.js';
|
|
2
|
-
import { isRecord } from '
|
|
2
|
+
import { isRecord } from './SqlProxyAdapterUtils.js';
|
|
3
3
|
import { SignedRequest } from '../../security/SignedRequest.js';
|
|
4
4
|
export const resolveSqlProxyMode = (envKey) => {
|
|
5
5
|
const raw = Env.get(envKey, 'sql').trim().toLowerCase();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SQL Server Proxy Adapter (HTTP)
|
|
3
3
|
*/
|
|
4
|
-
import type { IDatabaseAdapter } from '../DatabaseAdapter';
|
|
4
|
+
import type { IDatabaseAdapter } from '../DatabaseAdapter.js';
|
|
5
5
|
export declare function createSqlServerProxyAdapter(): IDatabaseAdapter;
|
|
6
6
|
//# sourceMappingURL=SqlServerProxyAdapter.d.ts.map
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
6
6
|
import { AdaptersEnum } from '../../migrations/enum/index.js';
|
|
7
7
|
import { QueryBuilder } from '../QueryBuilder.js';
|
|
8
|
-
import { ensureSignedSettings, isRecord, } from '
|
|
9
|
-
import { SqlProxyHttpAdapterShared } from '
|
|
10
|
-
import { createStatementPayload, getExecMetaWithLastRowId, } from '
|
|
8
|
+
import { ensureSignedSettings, isRecord, } from './SqlProxyAdapterUtils.js';
|
|
9
|
+
import { SqlProxyHttpAdapterShared } from './SqlProxyHttpAdapterShared.js';
|
|
10
|
+
import { createStatementPayload, getExecMetaWithLastRowId, } from './SqlProxyRegistryMode.js';
|
|
11
11
|
const resolveProxyMode = () => {
|
|
12
12
|
return SqlProxyHttpAdapterShared.resolveProxyModeFromEnv('SQLSERVER_PROXY_MODE');
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDatabase } from '../Database';
|
|
2
|
-
import type { MigrationRecord, MigrationRecordStatus, MigrationScope } from '../../migrations/types';
|
|
1
|
+
import type { IDatabase } from '../Database.js';
|
|
2
|
+
import type { MigrationRecord, MigrationRecordStatus, MigrationScope } from '../../migrations/types.js';
|
|
3
3
|
export declare const MigrationStore: Readonly<{
|
|
4
4
|
ensureTable(db: IDatabase): Promise<void>;
|
|
5
5
|
getLastCompletedBatch(db: IDatabase, scope?: MigrationScope, service?: string): Promise<number>;
|
package/src/orm-index.d.ts
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
* ZinTrust ORM - Database runtime primitives
|
|
3
3
|
* Contains database adapters and ORM functionality
|
|
4
4
|
*/
|
|
5
|
-
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database';
|
|
6
|
-
export type { IDatabase } from './orm/Database';
|
|
7
|
-
export { DatabaseConnectionRegistry } from './orm/DatabaseConnectionRegistry';
|
|
8
|
-
export { Model } from './orm/Model';
|
|
9
|
-
export type { DefinedModel, IModel, ModelConfig, ModelStatic } from './orm/Model';
|
|
10
|
-
export { QueryBuilder } from './orm/QueryBuilder';
|
|
11
|
-
export type { IJoinOnBuilder, InsertResult, IQueryBuilder, JoinOnInput, LatestPerOptions, PaginationOptions, } from './orm/QueryBuilder';
|
|
12
|
-
export type { IRelationship } from './orm/Relationships';
|
|
13
|
-
export { DatabaseAdapterRegistry } from './orm/DatabaseAdapterRegistry';
|
|
14
|
-
export { BaseAdapter } from './orm/DatabaseAdapter';
|
|
15
|
-
export type { DatabaseConfig, ID1Database, IDatabaseAdapter, QueryResult, } from './orm/DatabaseAdapter';
|
|
16
|
-
export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration';
|
|
17
|
-
export { MySQLAdapter } from './orm/adapters/MySQLAdapter';
|
|
18
|
-
export { PostgreSQLAdapter } from './orm/adapters/PostgreSQLAdapter';
|
|
19
|
-
export { SQLiteAdapter } from './orm/adapters/SQLiteAdapter';
|
|
20
|
-
export { SQLServerAdapter } from './orm/adapters/SQLServerAdapter';
|
|
21
|
-
export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator';
|
|
22
|
-
export type { CreatePaginatorInput, PaginationLinks, PaginationQuery, Paginator as PaginatorType, } from './database/Paginator';
|
|
5
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database.js';
|
|
6
|
+
export type { IDatabase } from './orm/Database.js';
|
|
7
|
+
export { DatabaseConnectionRegistry } from './orm/DatabaseConnectionRegistry.js';
|
|
8
|
+
export { Model } from './orm/Model.js';
|
|
9
|
+
export type { DefinedModel, IModel, ModelConfig, ModelStatic } from './orm/Model.js';
|
|
10
|
+
export { QueryBuilder } from './orm/QueryBuilder.js';
|
|
11
|
+
export type { IJoinOnBuilder, InsertResult, IQueryBuilder, JoinOnInput, LatestPerOptions, PaginationOptions, } from './orm/QueryBuilder.js';
|
|
12
|
+
export type { IRelationship } from './orm/Relationships.js';
|
|
13
|
+
export { DatabaseAdapterRegistry } from './orm/DatabaseAdapterRegistry.js';
|
|
14
|
+
export { BaseAdapter } from './orm/DatabaseAdapter.js';
|
|
15
|
+
export type { DatabaseConfig, ID1Database, IDatabaseAdapter, QueryResult, } from './orm/DatabaseAdapter.js';
|
|
16
|
+
export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration.js';
|
|
17
|
+
export { MySQLAdapter } from './orm/adapters/MySQLAdapter.js';
|
|
18
|
+
export { PostgreSQLAdapter } from './orm/adapters/PostgreSQLAdapter.js';
|
|
19
|
+
export { SQLiteAdapter } from './orm/adapters/SQLiteAdapter.js';
|
|
20
|
+
export { SQLServerAdapter } from './orm/adapters/SQLServerAdapter.js';
|
|
21
|
+
export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator.js';
|
|
22
|
+
export type { CreatePaginatorInput, PaginationLinks, PaginationQuery, Paginator as PaginatorType, } from './database/Paginator.js';
|
|
23
23
|
//# sourceMappingURL=orm-index.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Memory Profiler
|
|
3
3
|
* Tracks heap memory usage and garbage collection events
|
|
4
4
|
*/
|
|
5
|
-
import type { MemoryDelta, MemorySnapshot } from './types';
|
|
5
|
+
import type { MemoryDelta, MemorySnapshot } from './types.js';
|
|
6
6
|
export interface IMemoryProfiler {
|
|
7
7
|
start(): void;
|
|
8
8
|
end(): MemorySnapshot;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* N+1 Query Pattern Detector
|
|
3
3
|
* Analyzes query logs to identify N+1 patterns
|
|
4
4
|
*/
|
|
5
|
-
import type { IN1Detector } from './types';
|
|
5
|
+
import type { IN1Detector } from './types.js';
|
|
6
6
|
/**\n * N1Detector analyzes query logs to identify N+1 patterns
|
|
7
7
|
* Groups identical queries and flags those executed 5+ times as critical
|
|
8
8
|
* Sealed namespace for immutability
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Query Logger
|
|
3
3
|
* Tracks database query execution with parameters, duration, and context
|
|
4
4
|
*/
|
|
5
|
-
import type { QueryLogEntry } from './types';
|
|
5
|
+
import type { QueryLogEntry } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* QueryLogger tracks all database queries executed during a request context
|
|
8
8
|
* Provides N+1 detection heuristic by flagging identical queries executed 5+ times
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Request Profiler
|
|
3
3
|
* Comprehensive profiling of request execution combining query, N+1, and memory metrics
|
|
4
4
|
*/
|
|
5
|
-
import type { IMemoryProfiler } from './MemoryProfiler';
|
|
6
|
-
import type { IQueryLogger } from './QueryLogger';
|
|
7
|
-
import type { IN1Detector, ProfileReport } from './types';
|
|
5
|
+
import type { IMemoryProfiler } from './MemoryProfiler.js';
|
|
6
|
+
import type { IQueryLogger } from './QueryLogger.js';
|
|
7
|
+
import type { IN1Detector, ProfileReport } from './types.js';
|
|
8
8
|
export interface IRequestProfiler {
|
|
9
9
|
getQueryLogger(): IQueryLogger;
|
|
10
10
|
getN1Detector(): IN1Detector;
|
|
@@ -25,6 +25,6 @@ export declare const RequestProfiler: Readonly<{
|
|
|
25
25
|
/**
|
|
26
26
|
* Re-export MemoryProfiler's static formatBytes for convenience
|
|
27
27
|
*/
|
|
28
|
-
export { MemoryProfiler } from './MemoryProfiler';
|
|
28
|
+
export { MemoryProfiler } from './MemoryProfiler.js';
|
|
29
29
|
export default RequestProfiler;
|
|
30
30
|
//# sourceMappingURL=RequestProfiler.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WorkerSigningOptions } from './WorkerSigning';
|
|
2
|
-
export type { ProxyNonceNamespace, ProxyNoncePutOptions, WorkerSigningOptions, } from './WorkerSigning';
|
|
1
|
+
import type { WorkerSigningOptions } from './WorkerSigning.js';
|
|
2
|
+
export type { ProxyNonceNamespace, ProxyNoncePutOptions, WorkerSigningOptions, } from './WorkerSigning.js';
|
|
3
3
|
type ReadAndVerifyJsonOptions = WorkerSigningOptions & Readonly<{
|
|
4
4
|
defaultMaxBodyBytes: number;
|
|
5
5
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IncomingMessage, type Server } from '../node-singletons/http';
|
|
2
|
-
import type { ProxyBackend } from './ProxyBackend';
|
|
1
|
+
import { type IncomingMessage, type Server } from '../node-singletons/http.js';
|
|
2
|
+
import type { ProxyBackend } from './ProxyBackend.js';
|
|
3
3
|
export type ProxyServerOptions = Readonly<{
|
|
4
4
|
host: string;
|
|
5
5
|
port: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IncomingMessage } from '../node-singletons/http';
|
|
2
|
-
import type { ProxySigningConfig } from './ProxyConfig';
|
|
1
|
+
import type { IncomingMessage } from '../node-singletons/http.js';
|
|
2
|
+
import type { ProxySigningConfig } from './ProxyConfig.js';
|
|
3
3
|
export type BaseProxyConfig = {
|
|
4
4
|
host: string;
|
|
5
5
|
port: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IncomingMessage } from '../node-singletons/http';
|
|
2
|
-
import type { ProxySigningConfig } from './ProxyConfig';
|
|
1
|
+
import type { IncomingMessage } from '../node-singletons/http.js';
|
|
2
|
+
import type { ProxySigningConfig } from './ProxyConfig.js';
|
|
3
3
|
export declare const normalizeHeaderValue: (value: string | string[] | undefined) => string | undefined;
|
|
4
4
|
export declare const extractSigningHeaders: (req: IncomingMessage) => Record<string, string | undefined>;
|
|
5
5
|
export declare const verifyProxySignatureIfNeeded: (req: IncomingMessage, body: string, signing: ProxySigningConfig) => Promise<{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Env } from '../config/env';
|
|
2
|
-
export { Logger } from '../config/logger';
|
|
3
|
-
export { ErrorHandler } from './ErrorHandler';
|
|
4
|
-
export type { ProxyBackend, ProxyResponse } from './ProxyBackend';
|
|
5
|
-
export type { ProxySigningConfig } from './ProxyConfig';
|
|
6
|
-
export { parseJsonBody, validateProxyRequest } from './ProxyRequestParsing';
|
|
7
|
-
export { createProxyServer } from './ProxyServer';
|
|
8
|
-
export { resolveBaseConfig, resolveBaseSigningConfig, verifyRequestSignature, type BaseProxyOverrides, } from './ProxyServerUtils';
|
|
9
|
-
export { validateSqlPayload } from './SqlPayloadValidator';
|
|
10
|
-
export { loadStatementRegistry } from './StatementRegistryLoader';
|
|
11
|
-
export { resolveStatementOrError } from './StatementRegistryResolver';
|
|
1
|
+
export { Env } from '../config/env.js';
|
|
2
|
+
export { Logger } from '../config/logger.js';
|
|
3
|
+
export { ErrorHandler } from './ErrorHandler.js';
|
|
4
|
+
export type { ProxyBackend, ProxyResponse } from './ProxyBackend.js';
|
|
5
|
+
export type { ProxySigningConfig } from './ProxyConfig.js';
|
|
6
|
+
export { parseJsonBody, validateProxyRequest } from './ProxyRequestParsing.js';
|
|
7
|
+
export { createProxyServer } from './ProxyServer.js';
|
|
8
|
+
export { resolveBaseConfig, resolveBaseSigningConfig, verifyRequestSignature, type BaseProxyOverrides, } from './ProxyServerUtils.js';
|
|
9
|
+
export { validateSqlPayload } from './SqlPayloadValidator.js';
|
|
10
|
+
export { loadStatementRegistry } from './StatementRegistryLoader.js';
|
|
11
|
+
export { resolveStatementOrError } from './StatementRegistryResolver.js';
|
|
12
12
|
//# sourceMappingURL=SqlProxyServerDeps.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BaseProxyOverrides } from '../ProxyServerUtils';
|
|
2
|
-
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides';
|
|
1
|
+
import { type BaseProxyOverrides } from '../ProxyServerUtils.js';
|
|
2
|
+
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides.js';
|
|
3
3
|
type ProxyOverrides = BaseProxyOverrides & SqlProxyDatabaseOverrides;
|
|
4
4
|
export declare const MySqlProxyServer: Readonly<{
|
|
5
5
|
start(overrides?: ProxyOverrides): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BaseProxyOverrides } from '../ProxyServerUtils';
|
|
2
|
-
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides';
|
|
1
|
+
import { type BaseProxyOverrides } from '../ProxyServerUtils.js';
|
|
2
|
+
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides.js';
|
|
3
3
|
type ProxyOverrides = BaseProxyOverrides & SqlProxyDatabaseOverrides;
|
|
4
4
|
export declare const PostgresProxyServer: Readonly<{
|
|
5
5
|
start(overrides?: ProxyOverrides): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BaseProxyOverrides } from '../ProxyServerUtils';
|
|
2
|
-
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides';
|
|
1
|
+
import { type BaseProxyOverrides } from '../ProxyServerUtils.js';
|
|
2
|
+
import type { SqlProxyDatabaseOverrides } from '../SqlProxyDbOverrides.js';
|
|
3
3
|
type ProxyOverrides = BaseProxyOverrides & SqlProxyDatabaseOverrides;
|
|
4
4
|
export declare const SqlServerProxyServer: Readonly<{
|
|
5
5
|
start(overrides?: ProxyOverrides): Promise<void>;
|
package/src/proxy-index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* ZinTrust Proxy - Proxy-only integrations
|
|
3
3
|
* Contains proxy utilities and proxy-specific functionality
|
|
4
4
|
*/
|
|
5
|
-
export { ZintrustD1Proxy } from './proxy/d1/ZintrustD1Proxy';
|
|
6
|
-
export { ZintrustEmailProxy } from './proxy/email/ZintrustEmailProxy';
|
|
7
|
-
export { ErrorHandler } from './proxy/ErrorHandler';
|
|
8
|
-
export { ZintrustKvProxy } from './proxy/kv/ZintrustKvProxy';
|
|
9
|
-
export { RequestValidator } from './proxy/RequestValidator';
|
|
10
|
-
export { WorkerSigning } from './proxy/WorkerSigning';
|
|
5
|
+
export { ZintrustD1Proxy } from './proxy/d1/ZintrustD1Proxy.js';
|
|
6
|
+
export { ZintrustEmailProxy } from './proxy/email/ZintrustEmailProxy.js';
|
|
7
|
+
export { ErrorHandler } from './proxy/ErrorHandler.js';
|
|
8
|
+
export { ZintrustKvProxy } from './proxy/kv/ZintrustKvProxy.js';
|
|
9
|
+
export { RequestValidator } from './proxy/RequestValidator.js';
|
|
10
|
+
export { WorkerSigning } from './proxy/WorkerSigning.js';
|
|
11
11
|
//# sourceMappingURL=proxy-index.d.ts.map
|
package/src/proxy.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ZintrustD1Proxy } from './proxy/d1/ZintrustD1Proxy';
|
|
2
|
-
export { ZintrustEmailProxy } from './proxy/email/ZintrustEmailProxy';
|
|
3
|
-
export { ErrorHandler } from './proxy/ErrorHandler';
|
|
4
|
-
export { ZintrustKvProxy } from './proxy/kv/ZintrustKvProxy';
|
|
5
|
-
export { RequestValidator } from './proxy/RequestValidator';
|
|
6
|
-
export { WorkerSigning } from './proxy/WorkerSigning';
|
|
1
|
+
export { ZintrustD1Proxy } from './proxy/d1/ZintrustD1Proxy.js';
|
|
2
|
+
export { ZintrustEmailProxy } from './proxy/email/ZintrustEmailProxy.js';
|
|
3
|
+
export { ErrorHandler } from './proxy/ErrorHandler.js';
|
|
4
|
+
export { ZintrustKvProxy } from './proxy/kv/ZintrustKvProxy.js';
|
|
5
|
+
export { RequestValidator } from './proxy/RequestValidator.js';
|
|
6
|
+
export { WorkerSigning } from './proxy/WorkerSigning.js';
|
|
7
7
|
//# sourceMappingURL=proxy.d.ts.map
|
package/src/queue-index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Queue Exports
|
|
3
3
|
* Provides queue utilities and types
|
|
4
4
|
*/
|
|
5
|
-
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
|
|
6
|
-
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider';
|
|
7
|
-
export { Queue, resolveLockPrefix } from './tools/queue/Queue';
|
|
8
|
-
export type { BullMQPayload, QueueMessage } from './tools/queue/Queue';
|
|
9
|
-
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore';
|
|
10
|
-
export { JobStateTracker } from './tools/queue/JobStateTracker';
|
|
11
|
-
export { TimeoutManager } from './tools/queue/TimeoutManager';
|
|
12
|
-
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence';
|
|
13
|
-
export { RedisKeys } from './tools/redis/RedisKeyManager';
|
|
5
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
|
|
6
|
+
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider.js';
|
|
7
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
|
|
8
|
+
export type { BullMQPayload, QueueMessage } from './tools/queue/Queue.js';
|
|
9
|
+
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore.js';
|
|
10
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker.js';
|
|
11
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager.js';
|
|
12
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence.js';
|
|
13
|
+
export { RedisKeys } from './tools/redis/RedisKeyManager.js';
|
|
14
14
|
//# sourceMappingURL=queue-index.d.ts.map
|
package/src/redis-index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* ZinTrust Redis - Redis key management utilities
|
|
3
3
|
* Contains Redis key helpers and BullMQ-safe queue name generation
|
|
4
4
|
*/
|
|
5
|
-
export { RedisKeys, createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey, type RedisKeyType, } from './tools/redis/RedisKeyManager';
|
|
6
|
-
export type { RedisConfig } from './config/type';
|
|
7
|
-
export { createRedisConnection } from './config/workers';
|
|
8
|
-
export type { RedisTransportOptions } from './tools/redis/RedisTransport';
|
|
9
|
-
export { isZedgiRedisExecutorRegistered, registerZedgiRedisExecutor, resolveRedisTransportMode, type RedisTransportMode, } from './tools/redis/RedisTransport';
|
|
5
|
+
export { RedisKeys, createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey, type RedisKeyType, } from './tools/redis/RedisKeyManager.js';
|
|
6
|
+
export type { RedisConfig } from './config/type.js';
|
|
7
|
+
export { createRedisConnection } from './config/workers.js';
|
|
8
|
+
export type { RedisTransportOptions } from './tools/redis/RedisTransport.js';
|
|
9
|
+
export { isZedgiRedisExecutorRegistered, registerZedgiRedisExecutor, resolveRedisTransportMode, type RedisTransportMode, } from './tools/redis/RedisTransport.js';
|
|
10
10
|
//# sourceMappingURL=redis-index.d.ts.map
|