@zintrust/core 2.1.0 → 2.1.1
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 +50 -2
- package/src/cli/scaffolding/env.d.ts.map +1 -1
- package/src/cli/scaffolding/env.js +1 -0
- package/src/cli-index.d.ts +4 -1
- package/src/cli-index.d.ts.map +1 -1
- package/src/cli-index.js +5 -1
- package/src/cloudflare-index.d.ts +2 -3
- package/src/cloudflare-index.d.ts.map +1 -1
- package/src/cloudflare-index.js +2 -2
- package/src/config/index.d.ts +1 -0
- package/src/config/index.d.ts.map +1 -1
- package/src/config/queue.d.ts +2 -0
- package/src/config/queue.d.ts.map +1 -1
- package/src/config/queue.js +1 -0
- package/src/config-index.d.ts +4 -3
- package/src/config-index.d.ts.map +1 -1
- package/src/config-index.js +3 -2
- package/src/database-index.d.ts +18 -0
- package/src/database-index.d.ts.map +1 -0
- package/src/database-index.js +13 -0
- package/src/errors-index.d.ts +7 -0
- package/src/errors-index.d.ts.map +1 -0
- package/src/errors-index.js +5 -0
- package/src/http-index.d.ts +14 -0
- package/src/http-index.d.ts.map +1 -0
- package/src/http-index.js +8 -0
- package/src/index.js +3 -3
- package/src/lang-index.d.ts +6 -0
- package/src/lang-index.d.ts.map +1 -0
- package/src/lang-index.js +5 -0
- package/src/logger-index.d.ts +6 -0
- package/src/logger-index.d.ts.map +1 -0
- package/src/logger-index.js +5 -0
- package/src/mail-index.d.ts +12 -0
- package/src/mail-index.d.ts.map +1 -0
- package/src/mail-index.js +8 -0
- package/src/queue-index.d.ts +14 -0
- package/src/queue-index.d.ts.map +1 -0
- package/src/queue-index.js +12 -0
- package/src/redis-index.d.ts +3 -1
- package/src/redis-index.d.ts.map +1 -1
- package/src/redis-index.js +2 -1
- package/src/security/TokenRevocation.d.ts.map +1 -1
- package/src/security/TokenRevocation.js +81 -59
- package/src/security-index.d.ts +5 -21
- package/src/security-index.d.ts.map +1 -1
- package/src/security-index.js +4 -26
- package/src/socket-index.d.ts +9 -0
- package/src/socket-index.d.ts.map +1 -0
- package/src/socket-index.js +7 -0
- package/src/storage-index.d.ts +13 -0
- package/src/storage-index.d.ts.map +1 -0
- package/src/storage-index.js +8 -0
- package/src/trace-index.d.ts +6 -0
- package/src/trace-index.d.ts.map +1 -0
- package/src/trace-index.js +5 -0
- package/src/utils-index.d.ts +9 -0
- package/src/utils-index.d.ts.map +1 -0
- package/src/utils-index.js +8 -0
- package/src/workers-index.d.ts +9 -0
- package/src/workers-index.d.ts.map +1 -0
- package/src/workers-index.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -146,6 +146,54 @@
|
|
|
146
146
|
"types": "./routes/*.d.ts",
|
|
147
147
|
"import": "./routes/*.js"
|
|
148
148
|
},
|
|
149
|
+
"./errors": {
|
|
150
|
+
"types": "./src/errors-index.d.ts",
|
|
151
|
+
"import": "./src/errors-index.js"
|
|
152
|
+
},
|
|
153
|
+
"./logger": {
|
|
154
|
+
"types": "./src/logger-index.d.ts",
|
|
155
|
+
"import": "./src/logger-index.js"
|
|
156
|
+
},
|
|
157
|
+
"./http": {
|
|
158
|
+
"types": "./src/http-index.d.ts",
|
|
159
|
+
"import": "./src/http-index.js"
|
|
160
|
+
},
|
|
161
|
+
"./database": {
|
|
162
|
+
"types": "./src/database-index.d.ts",
|
|
163
|
+
"import": "./src/database-index.js"
|
|
164
|
+
},
|
|
165
|
+
"./queue": {
|
|
166
|
+
"types": "./src/queue-index.d.ts",
|
|
167
|
+
"import": "./src/queue-index.js"
|
|
168
|
+
},
|
|
169
|
+
"./workers": {
|
|
170
|
+
"types": "./src/workers-index.d.ts",
|
|
171
|
+
"import": "./src/workers-index.js"
|
|
172
|
+
},
|
|
173
|
+
"./utils": {
|
|
174
|
+
"types": "./src/utils-index.d.ts",
|
|
175
|
+
"import": "./src/utils-index.js"
|
|
176
|
+
},
|
|
177
|
+
"./lang": {
|
|
178
|
+
"types": "./src/lang-index.d.ts",
|
|
179
|
+
"import": "./src/lang-index.js"
|
|
180
|
+
},
|
|
181
|
+
"./storage": {
|
|
182
|
+
"types": "./src/storage-index.d.ts",
|
|
183
|
+
"import": "./src/storage-index.js"
|
|
184
|
+
},
|
|
185
|
+
"./mail": {
|
|
186
|
+
"types": "./src/mail-index.d.ts",
|
|
187
|
+
"import": "./src/mail-index.js"
|
|
188
|
+
},
|
|
189
|
+
"./trace": {
|
|
190
|
+
"types": "./src/trace-index.d.ts",
|
|
191
|
+
"import": "./src/trace-index.js"
|
|
192
|
+
},
|
|
193
|
+
"./socket": {
|
|
194
|
+
"types": "./src/socket-index.d.ts",
|
|
195
|
+
"import": "./src/socket-index.js"
|
|
196
|
+
},
|
|
149
197
|
"./package.json": "./package.json"
|
|
150
198
|
},
|
|
151
199
|
"dependencies": {
|
|
@@ -154,7 +202,7 @@
|
|
|
154
202
|
"bullmq": "^5.77.3",
|
|
155
203
|
"chalk": "^5.6.2",
|
|
156
204
|
"commander": "^14.0.3",
|
|
157
|
-
"inquirer": "^
|
|
205
|
+
"inquirer": "^14.0.0",
|
|
158
206
|
"jsonwebtoken": "^9.0.3",
|
|
159
207
|
"mysql2": "^3.22.3",
|
|
160
208
|
"pg": "^8.21.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/cli/scaffolding/env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/cli/scaffolding/env.ts"],"names":[],"mappings":"AA2iBA,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,MAAM,MAAM,EACZ,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,oBAAoB,MAAM,EAC1B,SAAS,MAAM,EAAE,EACjB,cAAc,MAAM,KACnB,MAAM,EAWR,CAAC"}
|
|
@@ -333,6 +333,7 @@ const QueueConfig = () => [
|
|
|
333
333
|
'QUEUE_MONITOR_MIDDLEWARE=',
|
|
334
334
|
'QUEUE_MONITOR_AUTO_REFRESH=true',
|
|
335
335
|
'QUEUE_MONITOR_REFRESH_MS=5000',
|
|
336
|
+
'QUEUE_DATA_TIMEOUT_MS=10000',
|
|
336
337
|
'',
|
|
337
338
|
'QUEUE_HTTP_PROXY_ENABLED=false',
|
|
338
339
|
'QUEUE_HTTP_PROXY_GATEWAY_ENABLED=true',
|
package/src/cli-index.d.ts
CHANGED
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
export { BaseCommand } from './cli/BaseCommand';
|
|
6
6
|
export type { CommandOptions } from './cli/BaseCommand';
|
|
7
7
|
export { CLI } from './cli/CLI';
|
|
8
|
-
export {
|
|
8
|
+
export { EXIT_CODES, ErrorHandler } from './cli/ErrorHandler';
|
|
9
9
|
export { TraceCommands } from './cli/commands/TraceCommands';
|
|
10
10
|
export { WorkerCommands } from './cli/commands/WorkerCommands';
|
|
11
11
|
export { OptionalCliCommandRegistry } from './cli/OptionalCliCommandRegistry';
|
|
12
12
|
export type { CliCommandProvider } from './cli/OptionalCliCommandRegistry';
|
|
13
|
+
export { LocalD1Resolver } from './cli/d1/LocalD1Resolver';
|
|
14
|
+
export { WranglerConfig } from './cli/d1/WranglerConfig';
|
|
15
|
+
export { WranglerD1 } from './cli/d1/WranglerD1';
|
|
13
16
|
//# sourceMappingURL=cli-index.d.ts.map
|
package/src/cli-index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-index.d.ts","sourceRoot":"","sources":["../../src/cli-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli-index.d.ts","sourceRoot":"","sources":["../../src/cli-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
package/src/cli-index.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
// CLI utilities (for build tools and scripting)
|
|
6
6
|
export { BaseCommand } from './cli/BaseCommand.js';
|
|
7
7
|
export { CLI } from './cli/CLI.js';
|
|
8
|
-
export {
|
|
8
|
+
export { EXIT_CODES, ErrorHandler } from './cli/ErrorHandler.js';
|
|
9
9
|
export { TraceCommands } from './cli/commands/TraceCommands.js';
|
|
10
10
|
export { WorkerCommands } from './cli/commands/WorkerCommands.js';
|
|
11
11
|
export { OptionalCliCommandRegistry } from './cli/OptionalCliCommandRegistry.js';
|
|
12
|
+
// D1 utilities
|
|
13
|
+
export { LocalD1Resolver } from './cli/d1/LocalD1Resolver.js';
|
|
14
|
+
export { WranglerConfig } from './cli/d1/WranglerConfig.js';
|
|
15
|
+
export { WranglerD1 } from './cli/d1/WranglerD1.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Cloudflare Workers
|
|
2
|
+
* Cloudflare Exports
|
|
3
|
+
* Provides Cloudflare Workers utilities
|
|
4
4
|
*/
|
|
5
5
|
export { Cloudflare } from './config/cloudflare';
|
|
6
|
-
export type { AssetsBinding } from './config/type';
|
|
7
6
|
//# sourceMappingURL=cloudflare-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudflare-index.d.ts","sourceRoot":"","sources":["../../src/cloudflare-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"cloudflare-index.d.ts","sourceRoot":"","sources":["../../src/cloudflare-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
package/src/cloudflare-index.js
CHANGED
package/src/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;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MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;8BAkCgc,CAAC;;;;;;;;;;;;;;;;;;;;iFA/Cjb,CAAA;;;;;;;;;;;;;;;;;;;;8BAD2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDoU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAHzX,CAAC;AAEZ,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC"}
|
package/src/config/queue.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type QueueConfigOverrides = Partial<{
|
|
|
23
23
|
middleware: ReadonlyArray<string>;
|
|
24
24
|
autoRefresh: boolean;
|
|
25
25
|
refreshIntervalMs: number;
|
|
26
|
+
queueDataTimeoutMs: number;
|
|
26
27
|
};
|
|
27
28
|
}>;
|
|
28
29
|
/**
|
|
@@ -49,6 +50,7 @@ declare const createQueueConfig: () => {
|
|
|
49
50
|
middleware: ReadonlyArray<string>;
|
|
50
51
|
autoRefresh: boolean;
|
|
51
52
|
refreshIntervalMs: number;
|
|
53
|
+
queueDataTimeoutMs: number;
|
|
52
54
|
};
|
|
53
55
|
};
|
|
54
56
|
export type QueueConfig = ReturnType<typeof createQueueConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/config/queue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAyChG,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACnF,OAAO,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAClC,WAAW,EAAE,OAAO,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/config/queue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAyChG,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MA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middleware,
|
|
172
172
|
autoRefresh: Env.getBool('QUEUE_MONITOR_AUTO_REFRESH', true),
|
|
173
173
|
refreshIntervalMs: Env.getInt('QUEUE_MONITOR_REFRESH_MS', 5000),
|
|
174
|
+
queueDataTimeoutMs: Env.getInt('QUEUE_DATA_TIMEOUT_MS', 10000),
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
const createQueueConfig = () => {
|
package/src/config-index.d.ts
CHANGED
|
@@ -12,19 +12,20 @@ export { Cloudflare } from './config/cloudflare';
|
|
|
12
12
|
export { Constants, DEFAULTS, ENV_KEYS, HTTP_HEADERS, MIME_TYPES } from './config/constants';
|
|
13
13
|
export { databaseConfig } from './config/database';
|
|
14
14
|
export type { DatabaseConfigOverrides, DatabaseConfig as DatabaseRuntimeConfig, } from './config/database';
|
|
15
|
+
export { Env } from './config/env';
|
|
15
16
|
export { FeatureFlags } from './config/features';
|
|
16
17
|
export { mailConfig } from './config/mail';
|
|
17
18
|
export type { MailConfig, MailConfigOverrides } from './config/mail';
|
|
18
19
|
export { microservicesConfig } from './config/microservices';
|
|
19
20
|
export type { MicroservicesConfig } from './config/microservices';
|
|
20
|
-
export { clearMiddlewareConfigCache, middlewareConfig
|
|
21
|
+
export { MiddlewareKeys, clearMiddlewareConfigCache, middlewareConfig } from './config/middleware';
|
|
21
22
|
export type { MiddlewareKey } from './config/middleware';
|
|
22
23
|
export { default as notificationConfig } from './config/notification';
|
|
23
24
|
export type { NotificationConfig, NotificationConfigOverrides } from './config/notification';
|
|
24
25
|
export { createBaseDrivers, queueConfig } from './config/queue';
|
|
25
26
|
export type { QueueConfig, QueueConfigOverrides } from './config/queue';
|
|
26
27
|
export * from './config/redis';
|
|
27
|
-
export {
|
|
28
|
+
export { SECRETS, SecretsManager, getDatabaseCredentials, getJwtSecrets, } from './config/SecretsManager';
|
|
28
29
|
export type { DatabaseCredentials, JwtSecrets } from './config/SecretsManager';
|
|
29
30
|
export { securityConfig } from './config/security';
|
|
30
31
|
export { startupConfig } from './config/startup';
|
|
@@ -33,7 +34,7 @@ export { StartupConfigValidator } from './config/StartupConfigValidator';
|
|
|
33
34
|
export { storageConfig } from './config/storage';
|
|
34
35
|
export type { StorageConfig, StorageConfigOverrides } from './config/storage';
|
|
35
36
|
export type * from './config/type';
|
|
36
|
-
export type { MailDriverConfig, MailDriverName, MiddlewareConfigType, RedisConfig, WorkerAutoScalingConfig, WorkerComplianceConfig, WorkerConfig, WorkerCostConfig, WorkerObservabilityConfig,
|
|
37
|
+
export type { AssetsBinding, MailDriverConfig, MailDriverName, MiddlewareConfigType, RedisConfig, WorkerAutoScalingConfig, WorkerComplianceConfig, WorkerConfig, WorkerCostConfig, WorkerObservabilityConfig, WorkerStatus, WorkerVersioningConfig, WorkersConfigOverrides, WorkersEnv, WorkersGlobalConfig, } from './config/type';
|
|
37
38
|
export { createRedisConnection, workersConfig } from './config/workers';
|
|
38
39
|
export { Schema as MigrationSchema, type Blueprint } from './migrations/schema';
|
|
39
40
|
//# sourceMappingURL=config-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-index.d.ts","sourceRoot":"","sources":["../../src/config-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC1F,YAAY,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,E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oB,EACpB,WAAW,EACX,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
|
package/src/config-index.js
CHANGED
|
@@ -8,14 +8,15 @@ export { cacheConfig } from './config/cache.js';
|
|
|
8
8
|
export { Cloudflare } from './config/cloudflare.js';
|
|
9
9
|
export { Constants, DEFAULTS, ENV_KEYS, HTTP_HEADERS, MIME_TYPES } from './config/constants.js';
|
|
10
10
|
export { databaseConfig } from './config/database.js';
|
|
11
|
+
export { Env } from './config/env.js';
|
|
11
12
|
export { FeatureFlags } from './config/features.js';
|
|
12
13
|
export { mailConfig } from './config/mail.js';
|
|
13
14
|
export { microservicesConfig } from './config/microservices.js';
|
|
14
|
-
export { clearMiddlewareConfigCache, middlewareConfig
|
|
15
|
+
export { MiddlewareKeys, clearMiddlewareConfigCache, middlewareConfig } from './config/middleware.js';
|
|
15
16
|
export { default as notificationConfig } from './config/notification.js';
|
|
16
17
|
export { createBaseDrivers, queueConfig } from './config/queue.js';
|
|
17
18
|
export * from './config/redis.js';
|
|
18
|
-
export {
|
|
19
|
+
export { SECRETS, SecretsManager, getDatabaseCredentials, getJwtSecrets, } from './config/SecretsManager.js';
|
|
19
20
|
export { securityConfig } from './config/security.js';
|
|
20
21
|
export { startupConfig } from './config/startup.js';
|
|
21
22
|
export { StartupConfigValidator } from './config/StartupConfigValidator.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database Exports
|
|
3
|
+
* Provides database adapters, query builder, and migration utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database';
|
|
6
|
+
export type { IDatabase } from './orm/Database';
|
|
7
|
+
export { BaseAdapter } from './orm/DatabaseAdapter';
|
|
8
|
+
export type { DatabaseConfig, IDatabaseAdapter, QueryResult } from './orm/DatabaseAdapter';
|
|
9
|
+
export { DatabaseAdapterRegistry } from './orm/DatabaseAdapterRegistry';
|
|
10
|
+
export { QueryBuilder } from './orm/QueryBuilder';
|
|
11
|
+
export type { InsertResult, IQueryBuilder, PaginationOptions } from './orm/QueryBuilder';
|
|
12
|
+
export { Schema as MigrationSchema } from './migrations/schema';
|
|
13
|
+
export type { Blueprint } from './migrations/schema';
|
|
14
|
+
export { MySQLAdapter } from './orm/adapters/MySQLAdapter';
|
|
15
|
+
export { PostgreSQLAdapter } from './orm/adapters/PostgreSQLAdapter';
|
|
16
|
+
export { SQLiteAdapter } from './orm/adapters/SQLiteAdapter';
|
|
17
|
+
export { SQLServerAdapter } from './orm/adapters/SQLServerAdapter';
|
|
18
|
+
//# sourceMappingURL=database-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-index.d.ts","sourceRoot":"","sources":["../../src/database-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC3F,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAExF,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database Exports
|
|
3
|
+
* Provides database adapters, query builder, and migration utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database.js';
|
|
6
|
+
export { BaseAdapter } from './orm/DatabaseAdapter.js';
|
|
7
|
+
export { DatabaseAdapterRegistry } from './orm/DatabaseAdapterRegistry.js';
|
|
8
|
+
export { QueryBuilder } from './orm/QueryBuilder.js';
|
|
9
|
+
export { Schema as MigrationSchema } from './migrations/schema/index.js';
|
|
10
|
+
export { MySQLAdapter } from './orm/adapters/MySQLAdapter.js';
|
|
11
|
+
export { PostgreSQLAdapter } from './orm/adapters/PostgreSQLAdapter.js';
|
|
12
|
+
export { SQLiteAdapter } from './orm/adapters/SQLiteAdapter.js';
|
|
13
|
+
export { SQLServerAdapter } from './orm/adapters/SQLServerAdapter.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error Handling Exports
|
|
3
|
+
* Provides error factory and error-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { ErrorFactory } from './exceptions/ZintrustError';
|
|
6
|
+
export type { ZintrustError, ZintrustErrorInit } from './exceptions/ZintrustError';
|
|
7
|
+
//# sourceMappingURL=errors-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors-index.d.ts","sourceRoot":"","sources":["../../src/errors-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP Runtime Exports
|
|
3
|
+
* Provides HTTP request/response types and routing utilities
|
|
4
|
+
*/
|
|
5
|
+
export type { FileUploadOptions, IFileUploadHandler, IRequest, IResponse, IRouter, Middleware, MultipartParserProvider, RouteMeta, RouteOptions, RouteRegistration, ValidatedRequest, } from './runtime-index.js';
|
|
6
|
+
export { Router } from './routes/Router';
|
|
7
|
+
export type { IRouter as IRouterType } from './routes/Router';
|
|
8
|
+
export type { UploadedFile } from './http/FileUpload';
|
|
9
|
+
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry';
|
|
10
|
+
export type { MultipartFieldValue, MultipartParseInput, ParsedMultipartData, } from './http/parsers/MultipartParserRegistry';
|
|
11
|
+
export { MIME_TYPES } from './config/constants';
|
|
12
|
+
export { AssetsBinding } from './config/type';
|
|
13
|
+
export { getValidatedBody } from './http/ValidationHelper';
|
|
14
|
+
//# sourceMappingURL=http-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-index.d.ts","sourceRoot":"","sources":["../../src/http-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,UAAU,EACV,uBAAuB,EACvB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP Runtime Exports
|
|
3
|
+
* Provides HTTP request/response types and routing utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Router } from './routes/Router.js';
|
|
6
|
+
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry.js';
|
|
7
|
+
export { MIME_TYPES } from './config/constants.js';
|
|
8
|
+
export { getValidatedBody } from './http/ValidationHelper.js';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v2.1.
|
|
2
|
+
* @zintrust/core v2.1.1
|
|
3
3
|
*
|
|
4
4
|
* ZinTrust Framework - Production-Grade TypeScript Backend
|
|
5
5
|
* Built for performance, type safety, and exceptional developer experience
|
|
6
6
|
*
|
|
7
7
|
* Build Information:
|
|
8
|
-
* Built: 2026-05-
|
|
8
|
+
* Built: 2026-05-26T13:43:32.445Z
|
|
9
9
|
* Node: >=20.0.0
|
|
10
10
|
* License: MIT
|
|
11
11
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Available at runtime for debugging and health checks
|
|
22
22
|
*/
|
|
23
23
|
export const ZINTRUST_VERSION = '0.1.41';
|
|
24
|
-
export const ZINTRUST_BUILD_DATE = '2026-05-
|
|
24
|
+
export const ZINTRUST_BUILD_DATE = '2026-05-26T13:43:32.406Z'; // Replaced during build
|
|
25
25
|
export { Application } from './boot/Application.js';
|
|
26
26
|
export { AwsSigV4 } from './common/index.js';
|
|
27
27
|
export { SignedRequest } from './security/SignedRequest.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lang-index.d.ts","sourceRoot":"","sources":["../../src/lang-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-index.d.ts","sourceRoot":"","sources":["../../src/logger-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mail Exports
|
|
3
|
+
* Provides mail drivers and notification utilities
|
|
4
|
+
*/
|
|
5
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun';
|
|
6
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid';
|
|
7
|
+
export { SmtpDriver as CoreSmtpDriver, SmtpDriver } from './tools/mail/drivers/Smtp';
|
|
8
|
+
export { Notification } from './tools/notification/Notification';
|
|
9
|
+
export type { MailgunMailDriverConfig as MailgunConfig, SendGridMailDriverConfig as SendGridConfig, SmtpMailDriverConfig as SmtpDriverConfig, } from './config/type';
|
|
10
|
+
export type { MailMessage as MailgunMessage, SendResult as MailgunResult, } from './tools/mail/drivers/Mailgun';
|
|
11
|
+
export type { MailAddress as SendGridMailAddress, MailAttachment as SendGridMailAttachment, MailMessage as SendGridMailMessage, SendResult as SendGridSendResult, } from './tools/mail/drivers/SendGrid';
|
|
12
|
+
//# sourceMappingURL=mail-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-index.d.ts","sourceRoot":"","sources":["../../src/mail-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,YAAY,EACV,uBAAuB,IAAI,aAAa,EACxC,wBAAwB,IAAI,cAAc,EAC1C,oBAAoB,IAAI,gBAAgB,GACzC,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,WAAW,IAAI,cAAc,EAC7B,UAAU,IAAI,aAAa,GAC5B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,WAAW,IAAI,mBAAmB,EAClC,cAAc,IAAI,sBAAsB,EACxC,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,GACjC,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mail Exports
|
|
3
|
+
* Provides mail drivers and notification utilities
|
|
4
|
+
*/
|
|
5
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun.js';
|
|
6
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid.js';
|
|
7
|
+
export { SmtpDriver as CoreSmtpDriver, SmtpDriver } from './tools/mail/drivers/Smtp.js';
|
|
8
|
+
export { Notification } from './tools/notification/Notification.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queue Exports
|
|
3
|
+
* Provides queue utilities and types
|
|
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';
|
|
14
|
+
//# sourceMappingURL=queue-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue-index.d.ts","sourceRoot":"","sources":["../../src/queue-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,6CAA6C,EAC7C,kCAAkC,GACnC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queue Exports
|
|
3
|
+
* Provides queue utilities and types
|
|
4
|
+
*/
|
|
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 { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore.js';
|
|
9
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker.js';
|
|
10
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager.js';
|
|
11
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence.js';
|
|
12
|
+
export { RedisKeys } from './tools/redis/RedisKeyManager.js';
|
package/src/redis-index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
* ZinTrust Redis - Redis key management utilities
|
|
3
3
|
* Contains Redis key helpers and BullMQ-safe queue name generation
|
|
4
4
|
*/
|
|
5
|
-
export { createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey,
|
|
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';
|
|
6
8
|
//# sourceMappingURL=redis-index.d.ts.map
|
package/src/redis-index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-index.d.ts","sourceRoot":"","sources":["../../src/redis-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"redis-index.d.ts","sourceRoot":"","sources":["../../src/redis-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,QAAQ,EACR,KAAK,YAAY,GAClB,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/src/redis-index.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
* Contains Redis key helpers and BullMQ-safe queue name generation
|
|
4
4
|
*/
|
|
5
5
|
// Redis key manager
|
|
6
|
-
export { createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey,
|
|
6
|
+
export { RedisKeys, createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey, } from './tools/redis/RedisKeyManager.js';
|
|
7
|
+
export { createRedisConnection } from './config/workers.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenRevocation.d.ts","sourceRoot":"","sources":["../../../src/security/TokenRevocation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TokenRevocation.d.ts","sourceRoot":"","sources":["../../../src/security/TokenRevocation.ts"],"names":[],"mappings":"AAeA,KAAK,mBAAmB,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,GAAG,WAAW,CAAC;AA4vB7F,eAAO,MAAM,eAAe;IAC1B;;;;OAIG;mBACkB,mBAAmB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAUjE;;OAEG;qBACoB,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhD;;OAEG;iBACU,yBAAyB;IAItC;;OAEG;sBACe,IAAI;EAItB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { securityConfig } from '../config/security.js';
|
|
|
6
6
|
import { createRedisConnection } from '../config/workers.js';
|
|
7
7
|
import { ErrorFactory } from '../exceptions/ZintrustError.js';
|
|
8
8
|
import { useDatabase } from '../orm/Database.js';
|
|
9
|
+
import { registerDatabasesFromRuntimeConfig } from '../orm/DatabaseRuntimeRegistration.js';
|
|
9
10
|
import { shouldRetryAuthStoreInsertWithGeneratedId, withGeneratedAuthStoreId, } from './AuthStoreIds.js';
|
|
10
11
|
import { JwtManager } from './JwtManager.js';
|
|
11
12
|
const DEFAULTS = {
|
|
@@ -121,53 +122,84 @@ const createMemoryStore = () => {
|
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
124
|
};
|
|
125
|
+
const registerDatabaseRuntimeConfig = (hasAttemptedRegistration) => {
|
|
126
|
+
if (hasAttemptedRegistration)
|
|
127
|
+
return;
|
|
128
|
+
try {
|
|
129
|
+
registerDatabasesFromRuntimeConfig({
|
|
130
|
+
default: Env.get('DB_CONNECTION', 'mysql'),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
// best-effort: if runtime config is unavailable or invalid, fall back to
|
|
135
|
+
// the existing error handling path in `useDatabase()`
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const createDatabaseRevocationPayload = (key) => ({
|
|
139
|
+
jti: key.id,
|
|
140
|
+
sub: key.sub ?? null,
|
|
141
|
+
user_id: key.sub ?? null,
|
|
142
|
+
expires_at_ms: key.expiresAtMs,
|
|
143
|
+
});
|
|
144
|
+
const cleanupDatabaseRevocations = async (params) => {
|
|
145
|
+
try {
|
|
146
|
+
const db = useDatabase(undefined, params.connection);
|
|
147
|
+
await db.table(params.table).where('expires_at_ms', '<=', Date.now()).delete();
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
Logger.debug('TokenRevocation database cleanup failed', {
|
|
151
|
+
error: error instanceof Error ? error.message : String(error),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const writeDatabaseRevocation = async (params, key) => {
|
|
156
|
+
const ttlMs = Math.max(0, key.expiresAtMs - Date.now());
|
|
157
|
+
if (ttlMs === 0)
|
|
158
|
+
return;
|
|
159
|
+
const db = useDatabase(undefined, params.connection);
|
|
160
|
+
const existing = await db
|
|
161
|
+
.table(params.table)
|
|
162
|
+
.where('jti', '=', key.id)
|
|
163
|
+
.first();
|
|
164
|
+
const payload = createDatabaseRevocationPayload(key);
|
|
165
|
+
if (existing) {
|
|
166
|
+
await db.table(params.table).where('jti', '=', key.id).update(payload);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
try {
|
|
170
|
+
await db.table(params.table).insert(payload);
|
|
171
|
+
}
|
|
172
|
+
catch (error) {
|
|
173
|
+
if (!shouldRetryAuthStoreInsertWithGeneratedId(error)) {
|
|
174
|
+
throw error;
|
|
175
|
+
}
|
|
176
|
+
await db.table(params.table).insert(withGeneratedAuthStoreId(payload));
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const readDatabaseRevocation = async (params, id) => {
|
|
180
|
+
const db = useDatabase(undefined, params.connection);
|
|
181
|
+
const row = await db.table(params.table).where('jti', '=', id).first();
|
|
182
|
+
if (!row)
|
|
183
|
+
return false;
|
|
184
|
+
const expiresAt = row['expires_at_ms'];
|
|
185
|
+
const expiresAtMs = typeof expiresAt === 'number' ? expiresAt : Number(expiresAt);
|
|
186
|
+
if (!Number.isFinite(expiresAtMs))
|
|
187
|
+
return true;
|
|
188
|
+
if (expiresAtMs <= Date.now()) {
|
|
189
|
+
await db.table(params.table).where('jti', '=', id).delete();
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
return true;
|
|
193
|
+
};
|
|
124
194
|
const createDatabaseStore = (params) => {
|
|
125
195
|
let checkCount = 0;
|
|
126
|
-
|
|
127
|
-
checkCount += 1;
|
|
128
|
-
if (checkCount % 250 !== 0)
|
|
129
|
-
return;
|
|
130
|
-
try {
|
|
131
|
-
const db = useDatabase(undefined, params.connection);
|
|
132
|
-
await db.table(params.table).where('expires_at_ms', '<=', Date.now()).delete();
|
|
133
|
-
}
|
|
134
|
-
catch (error) {
|
|
135
|
-
Logger.debug('TokenRevocation database cleanup failed', {
|
|
136
|
-
error: error instanceof Error ? error.message : String(error),
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
};
|
|
196
|
+
let registrationAttempted = false;
|
|
140
197
|
return {
|
|
141
198
|
async revoke(key) {
|
|
142
|
-
const ttlMs = Math.max(0, key.expiresAtMs - Date.now());
|
|
143
|
-
if (ttlMs === 0)
|
|
144
|
-
return;
|
|
145
199
|
try {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.where('jti', '=', key.id)
|
|
150
|
-
.first();
|
|
151
|
-
const payload = {
|
|
152
|
-
jti: key.id,
|
|
153
|
-
sub: key.sub ?? null,
|
|
154
|
-
user_id: key.sub ?? null,
|
|
155
|
-
expires_at_ms: key.expiresAtMs,
|
|
156
|
-
};
|
|
157
|
-
if (existing) {
|
|
158
|
-
await db.table(params.table).where('jti', '=', key.id).update(payload);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
try {
|
|
162
|
-
await db.table(params.table).insert(payload);
|
|
163
|
-
}
|
|
164
|
-
catch (error) {
|
|
165
|
-
if (!shouldRetryAuthStoreInsertWithGeneratedId(error)) {
|
|
166
|
-
throw error;
|
|
167
|
-
}
|
|
168
|
-
await db.table(params.table).insert(withGeneratedAuthStoreId(payload));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
200
|
+
registerDatabaseRuntimeConfig(registrationAttempted);
|
|
201
|
+
registrationAttempted = true;
|
|
202
|
+
await writeDatabaseRevocation(params, key);
|
|
171
203
|
}
|
|
172
204
|
catch (error) {
|
|
173
205
|
logWarnBestEffort('TokenRevocation database revoke failed (token will not be revoked)', {
|
|
@@ -177,24 +209,14 @@ const createDatabaseStore = (params) => {
|
|
|
177
209
|
}
|
|
178
210
|
},
|
|
179
211
|
async isRevoked(id) {
|
|
180
|
-
|
|
212
|
+
checkCount += 1;
|
|
213
|
+
if (checkCount % 250 === 0) {
|
|
214
|
+
await cleanupDatabaseRevocations(params);
|
|
215
|
+
}
|
|
181
216
|
try {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
.where('jti', '=', id)
|
|
186
|
-
.first();
|
|
187
|
-
if (!row)
|
|
188
|
-
return false;
|
|
189
|
-
const expiresAt = row['expires_at_ms'];
|
|
190
|
-
const expiresAtMs = typeof expiresAt === 'number' ? expiresAt : Number(expiresAt);
|
|
191
|
-
if (!Number.isFinite(expiresAtMs))
|
|
192
|
-
return true;
|
|
193
|
-
if (expiresAtMs <= Date.now()) {
|
|
194
|
-
await db.table(params.table).where('jti', '=', id).delete();
|
|
195
|
-
return false;
|
|
196
|
-
}
|
|
197
|
-
return true;
|
|
217
|
+
registerDatabaseRuntimeConfig(registrationAttempted);
|
|
218
|
+
registrationAttempted = true;
|
|
219
|
+
return await readDatabaseRevocation(params, id);
|
|
198
220
|
}
|
|
199
221
|
catch (error) {
|
|
200
222
|
logWarnBestEffort('TokenRevocation database check failed (treating as not revoked)', {
|
package/src/security-index.d.ts
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Security Exports
|
|
3
|
+
* Provides security utilities
|
|
4
4
|
*/
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export { EncryptedEnvelope } from './security/EncryptedEnvelope';
|
|
9
|
-
export { Encryptor } from './security/Encryptor';
|
|
10
|
-
export { Hash } from './security/Hash';
|
|
11
|
-
export { JwtManager } from './security/JwtManager';
|
|
12
|
-
export type { IJwtManager, JwtAlgorithm, JwtManagerType, JwtOptions, JwtPayload, } from './security/JwtManager';
|
|
13
|
-
export { JwtSessions } from './security/JwtSessions';
|
|
14
|
-
export { JwtVerifier } from './security/JwtVerifier';
|
|
15
|
-
export type { JwtVerifierAlgorithm, JwtVerifierFailure, JwtVerifierFailureReason, JwtVerifierJwk, JwtVerifierJwksDocument, JwtVerifierResult, JwtVerifierSuccess, JwtVerifierWithJwkInput, JwtVerifierWithJwksInput, } from './security/JwtVerifier';
|
|
16
|
-
export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker';
|
|
17
|
-
export type { IPasswordResetTokenBroker, IPasswordResetTokenStore, PasswordResetTokenBrokerOptions, PasswordResetTokenBrokerType, PasswordResetTokenRecord, } from './security/PasswordResetTokenBroker';
|
|
18
|
-
export { Sanitizer, createSanitizer, type SanitizerType } from './security/Sanitizer';
|
|
19
|
-
export { TokenRevocation } from './security/TokenRevocation';
|
|
20
|
-
export { Xss } from './security/Xss';
|
|
21
|
-
export { XssProtection } from './security/XssProtection';
|
|
22
|
-
export { SecurePayload, type SecurePayloadCoercionShape, type SecurePayloadCoercionType, type SecurePayloadDecodeOptions, type SecurePayloadDecryptor, type SecurePayloadPipeline, type SecurePayloadPipelineIssue, type SecurePayloadPipelineStage, } from './security/SecurePayload';
|
|
23
|
-
export type { SanitizerError } from './exceptions/ZintrustError';
|
|
5
|
+
export { RemoteSignedJson } from './common/RemoteSignedJson';
|
|
6
|
+
export type { RemoteSignedJsonSettings } from './common/RemoteSignedJson';
|
|
7
|
+
export { SignedRequest } from './security/SignedRequest';
|
|
24
8
|
//# sourceMappingURL=security-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-index.d.ts","sourceRoot":"","sources":["../../src/security-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"security-index.d.ts","sourceRoot":"","sources":["../../src/security-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC"}
|
package/src/security-index.js
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Security Exports
|
|
3
|
+
* Provides security utilities
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
// CSRF protection
|
|
8
|
-
export { CsrfTokenManager } from './security/CsrfTokenManager.js';
|
|
9
|
-
// Encryption
|
|
10
|
-
export { EncryptedEnvelope } from './security/EncryptedEnvelope.js';
|
|
11
|
-
export { Encryptor } from './security/Encryptor.js';
|
|
12
|
-
// Hashing
|
|
13
|
-
export { Hash } from './security/Hash.js';
|
|
14
|
-
// JWT management
|
|
15
|
-
export { JwtManager } from './security/JwtManager.js';
|
|
16
|
-
export { JwtSessions } from './security/JwtSessions.js';
|
|
17
|
-
export { JwtVerifier } from './security/JwtVerifier.js';
|
|
18
|
-
// Password reset tokens
|
|
19
|
-
export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker.js';
|
|
20
|
-
// Sanitization
|
|
21
|
-
export { Sanitizer, createSanitizer } from './security/Sanitizer.js';
|
|
22
|
-
// Token revocation
|
|
23
|
-
export { TokenRevocation } from './security/TokenRevocation.js';
|
|
24
|
-
// XSS protection
|
|
25
|
-
export { Xss } from './security/Xss.js';
|
|
26
|
-
export { XssProtection } from './security/XssProtection.js';
|
|
27
|
-
// Secure payload handling
|
|
28
|
-
export { SecurePayload, } from './security/SecurePayload.js';
|
|
5
|
+
export { RemoteSignedJson } from './common/RemoteSignedJson.js';
|
|
6
|
+
export { SignedRequest } from './security/SignedRequest.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Socket Exports
|
|
3
|
+
* Provides WebSocket and real-time communication utilities
|
|
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';
|
|
9
|
+
//# sourceMappingURL=socket-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socket-index.d.ts","sourceRoot":"","sources":["../../src/socket-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,EAC3B,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Socket Exports
|
|
3
|
+
* Provides WebSocket and real-time communication utilities
|
|
4
|
+
*/
|
|
5
|
+
export { CloudflareSocket } from './sockets/CloudflareSocket.js';
|
|
6
|
+
export { SocketFeature } from './sockets/SocketRuntime.js';
|
|
7
|
+
export { SocketRuntimeRegistry } from './sockets/SocketRuntimeRegistry.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage Exports
|
|
3
|
+
* Provides storage drivers and utilities
|
|
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 type { GcsConfig } from './tools/storage/drivers/Gcs';
|
|
10
|
+
export type { R2Config } from './tools/storage/drivers/R2';
|
|
11
|
+
export type { S3Config } from './tools/storage/drivers/S3';
|
|
12
|
+
export type { MultipartFieldValue, MultipartParseInput, MultipartParserProvider, ParsedMultipartData, } from './runtime-index.js';
|
|
13
|
+
//# sourceMappingURL=storage-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-index.d.ts","sourceRoot":"","sources":["../../src/storage-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage Exports
|
|
3
|
+
* Provides storage drivers and utilities
|
|
4
|
+
*/
|
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-index.d.ts","sourceRoot":"","sources":["../../src/trace-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility Exports
|
|
3
|
+
* Provides common utility functions
|
|
4
|
+
*/
|
|
5
|
+
export { generateUuid } from './common/utility';
|
|
6
|
+
export { isArray, isFunction, isNonEmptyString, isObject } from './helper/index';
|
|
7
|
+
export { ZintrustLang } from './lang/lang';
|
|
8
|
+
export { Broadcast } from './tools/broadcast/Broadcast';
|
|
9
|
+
//# sourceMappingURL=utils-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-index.d.ts","sourceRoot":"","sources":["../../src/utils-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility Exports
|
|
3
|
+
* Provides common utility functions
|
|
4
|
+
*/
|
|
5
|
+
export { generateUuid } from './common/utility.js';
|
|
6
|
+
export { isArray, isFunction, isNonEmptyString, isObject } from './helper/index.js';
|
|
7
|
+
export { ZintrustLang } from './lang/lang.js';
|
|
8
|
+
export { Broadcast } from './tools/broadcast/Broadcast.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workers Exports
|
|
3
|
+
* Provides worker configuration and utilities
|
|
4
|
+
*/
|
|
5
|
+
export type { WorkerConfig, WorkerStatus } from './config/type';
|
|
6
|
+
export { workersConfig } from './config/workers';
|
|
7
|
+
export { ShutdownTrace } from './helper/ShutdownTrace';
|
|
8
|
+
export * as NodeSingletons from './node-singletons/index';
|
|
9
|
+
//# sourceMappingURL=workers-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workers-index.d.ts","sourceRoot":"","sources":["../../src/workers-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC"}
|