@zintrust/core 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +78 -6
- package/src/auth-index.d.ts +8 -0
- package/src/auth-index.d.ts.map +1 -0
- package/src/auth-index.js +8 -0
- package/src/cli/d1/WranglerD1.d.ts +2 -1
- package/src/cli/d1/WranglerD1.d.ts.map +1 -1
- package/src/cli/d1/WranglerD1.js +11 -9
- package/src/cli/scaffolding/GovernanceScaffolder.js +1 -1
- package/src/cli-index.d.ts +13 -0
- package/src/cli-index.d.ts.map +1 -0
- package/src/cli-index.js +11 -0
- package/src/config-index.d.ts +38 -0
- package/src/config-index.d.ts.map +1 -0
- package/src/config-index.js +23 -0
- package/src/index.js +3 -3
- package/src/orm-index.d.ts +23 -0
- package/src/orm-index.d.ts.map +1 -0
- package/src/orm-index.js +18 -0
- package/src/proxy-index.d.ts +11 -0
- package/src/proxy-index.d.ts.map +1 -0
- package/src/proxy-index.js +10 -0
- package/src/redis-index.d.ts +6 -0
- package/src/redis-index.d.ts.map +1 -0
- package/src/redis-index.js +6 -0
- package/src/runtime-index.d.ts +109 -0
- package/src/runtime-index.d.ts.map +1 -0
- package/src/runtime-index.js +105 -0
- package/src/scripts-index.d.ts +8 -0
- package/src/scripts-index.d.ts.map +1 -0
- package/src/scripts-index.js +9 -0
- package/src/security-index.d.ts +23 -0
- package/src/security-index.d.ts.map +1 -0
- package/src/security-index.js +28 -0
- package/src/seeders-index.d.ts +8 -0
- package/src/seeders-index.d.ts.map +1 -0
- package/src/seeders-index.js +7 -0
- package/src/templates-index.d.ts +6 -0
- package/src/templates-index.d.ts.map +1 -0
- package/src/templates-index.js +6 -0
- package/src/testing-index.d.ts +7 -0
- package/src/testing-index.d.ts.map +1 -0
- package/src/testing-index.js +7 -0
- package/src/tools-broadcast-index.d.ts +9 -0
- package/src/tools-broadcast-index.d.ts.map +1 -0
- package/src/tools-broadcast-index.js +7 -0
- package/src/tools-http-index.d.ts +7 -0
- package/src/tools-http-index.d.ts.map +1 -0
- package/src/tools-http-index.js +5 -0
- package/src/tools-index.d.ts +56 -0
- package/src/tools-index.d.ts.map +1 -0
- package/src/tools-index.js +49 -0
- package/src/tools-mail-index.d.ts +17 -0
- package/src/tools-mail-index.d.ts.map +1 -0
- package/src/tools-mail-index.js +11 -0
- package/src/tools-notification-index.d.ts +12 -0
- package/src/tools-notification-index.d.ts.map +1 -0
- package/src/tools-notification-index.js +10 -0
- package/src/tools-queue-index.d.ts +22 -0
- package/src/tools-queue-index.d.ts.map +1 -0
- package/src/tools-queue-index.js +20 -0
- package/src/tools-storage-index.d.ts +14 -0
- package/src/tools-storage-index.d.ts.map +1 -0
- package/src/tools-storage-index.js +10 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Production-grade TypeScript backend framework for JavaScript",
|
|
5
5
|
"homepage": "https://zintrust.com",
|
|
6
6
|
"repository": {
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"types": "./src/index.d.ts",
|
|
19
19
|
"import": "./src/index.js"
|
|
20
20
|
},
|
|
21
|
+
"./runtime": {
|
|
22
|
+
"types": "./src/runtime-index.d.ts",
|
|
23
|
+
"import": "./src/runtime-index.js"
|
|
24
|
+
},
|
|
21
25
|
"./start": {
|
|
22
26
|
"types": "./src/start.d.ts",
|
|
23
27
|
"import": "./src/start.js"
|
|
@@ -27,16 +31,16 @@
|
|
|
27
31
|
"import": "./src/boot.js"
|
|
28
32
|
},
|
|
29
33
|
"./cli": {
|
|
30
|
-
"types": "./src/cli.d.ts",
|
|
31
|
-
"import": "./src/cli.js"
|
|
34
|
+
"types": "./src/cli-index.d.ts",
|
|
35
|
+
"import": "./src/cli-index.js"
|
|
32
36
|
},
|
|
33
37
|
"./worker-commands": {
|
|
34
38
|
"types": "./src/worker-commands.d.ts",
|
|
35
39
|
"import": "./src/worker-commands.js"
|
|
36
40
|
},
|
|
37
41
|
"./proxy": {
|
|
38
|
-
"types": "./src/proxy.d.ts",
|
|
39
|
-
"import": "./src/proxy.js"
|
|
42
|
+
"types": "./src/proxy-index.d.ts",
|
|
43
|
+
"import": "./src/proxy-index.js"
|
|
40
44
|
},
|
|
41
45
|
"./proxy/*": {
|
|
42
46
|
"types": "./src/proxy/*.d.ts",
|
|
@@ -54,12 +58,80 @@
|
|
|
54
58
|
"types": "./src/node.d.ts",
|
|
55
59
|
"import": "./src/node.js"
|
|
56
60
|
},
|
|
61
|
+
"./seeders": {
|
|
62
|
+
"types": "./src/seeders-index.d.ts",
|
|
63
|
+
"import": "./src/seeders-index.js"
|
|
64
|
+
},
|
|
65
|
+
"./testing": {
|
|
66
|
+
"types": "./src/testing-index.d.ts",
|
|
67
|
+
"import": "./src/testing-index.js"
|
|
68
|
+
},
|
|
69
|
+
"./scripts": {
|
|
70
|
+
"types": "./src/scripts-index.d.ts",
|
|
71
|
+
"import": "./src/scripts-index.js"
|
|
72
|
+
},
|
|
73
|
+
"./tools": {
|
|
74
|
+
"types": "./src/tools-index.d.ts",
|
|
75
|
+
"import": "./src/tools-index.js"
|
|
76
|
+
},
|
|
77
|
+
"./tools/mail": {
|
|
78
|
+
"types": "./src/tools-mail-index.d.ts",
|
|
79
|
+
"import": "./src/tools-mail-index.js"
|
|
80
|
+
},
|
|
81
|
+
"./tools/notification": {
|
|
82
|
+
"types": "./src/tools-notification-index.d.ts",
|
|
83
|
+
"import": "./src/tools-notification-index.js"
|
|
84
|
+
},
|
|
85
|
+
"./tools/storage": {
|
|
86
|
+
"types": "./src/tools-storage-index.d.ts",
|
|
87
|
+
"import": "./src/tools-storage-index.js"
|
|
88
|
+
},
|
|
89
|
+
"./tools/queue": {
|
|
90
|
+
"types": "./src/tools-queue-index.d.ts",
|
|
91
|
+
"import": "./src/tools-queue-index.js"
|
|
92
|
+
},
|
|
93
|
+
"./tools/broadcast": {
|
|
94
|
+
"types": "./src/tools-broadcast-index.d.ts",
|
|
95
|
+
"import": "./src/tools-broadcast-index.js"
|
|
96
|
+
},
|
|
97
|
+
"./tools/http": {
|
|
98
|
+
"types": "./src/tools-http-index.d.ts",
|
|
99
|
+
"import": "./src/tools-http-index.js"
|
|
100
|
+
},
|
|
101
|
+
"./orm": {
|
|
102
|
+
"types": "./src/orm-index.d.ts",
|
|
103
|
+
"import": "./src/orm-index.js"
|
|
104
|
+
},
|
|
105
|
+
"./config": {
|
|
106
|
+
"types": "./src/config-index.d.ts",
|
|
107
|
+
"import": "./src/config-index.js"
|
|
108
|
+
},
|
|
109
|
+
"./security": {
|
|
110
|
+
"types": "./src/security-index.d.ts",
|
|
111
|
+
"import": "./src/security-index.js"
|
|
112
|
+
},
|
|
113
|
+
"./auth": {
|
|
114
|
+
"types": "./src/auth-index.d.ts",
|
|
115
|
+
"import": "./src/auth-index.js"
|
|
116
|
+
},
|
|
117
|
+
"./redis": {
|
|
118
|
+
"types": "./src/redis-index.d.ts",
|
|
119
|
+
"import": "./src/redis-index.js"
|
|
120
|
+
},
|
|
121
|
+
"./templates": {
|
|
122
|
+
"types": "./src/templates-index.d.ts",
|
|
123
|
+
"import": "./src/templates-index.js"
|
|
124
|
+
},
|
|
125
|
+
"./routes/*": {
|
|
126
|
+
"types": "./routes/*.d.ts",
|
|
127
|
+
"import": "./routes/*.js"
|
|
128
|
+
},
|
|
57
129
|
"./package.json": "./package.json"
|
|
58
130
|
},
|
|
59
131
|
"dependencies": {
|
|
60
132
|
"@cloudflare/containers": "^0.3.4",
|
|
61
133
|
"bcryptjs": "^3.0.3",
|
|
62
|
-
"bullmq": "^5.
|
|
134
|
+
"bullmq": "^5.77.0",
|
|
63
135
|
"chalk": "^5.6.2",
|
|
64
136
|
"commander": "^14.0.3",
|
|
65
137
|
"inquirer": "^13.4.3",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Auth - Authentication and login flow utilities
|
|
3
|
+
* Contains Auth service and LoginFlow for authentication workflows
|
|
4
|
+
*/
|
|
5
|
+
export { Auth } from './auth/Auth';
|
|
6
|
+
export { LoginFlow } from './auth/LoginFlow';
|
|
7
|
+
export type { BulletproofJwtIssued, LoginFlowAuditEvent, LoginFlowAuditor, LoginFlowBuilder, LoginFlowCreateOptions, LoginFlowError, LoginFlowIdentity, LoginFlowIssuer, LoginFlowIssuerInput, LoginFlowProvider, LoginFlowResult, LoginFlowStage, LoginFlowVerifiedRecord, } from './auth/LoginFlow';
|
|
8
|
+
//# sourceMappingURL=auth-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-index.d.ts","sourceRoot":"","sources":["../../src/auth-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WranglerD1.d.ts","sourceRoot":"","sources":["../../../../src/cli/d1/WranglerD1.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WranglerD1.d.ts","sourceRoot":"","sources":["../../../../src/cli/d1/WranglerD1.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB,CAAC;AAmCF,eAAO,MAAM,UAAU;0BACC,YAAY,GAAG,MAAM;qBAK1B,iBAAiB,GAAG,MAAM;EAe3C,CAAC"}
|
package/src/cli/d1/WranglerD1.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { resolveNpmPath } from '../../common/index.js';
|
|
2
2
|
import { appConfig } from '../../config/app.js';
|
|
3
3
|
import { Logger } from '../../config/logger.js';
|
|
4
|
+
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
4
5
|
import { execFileSync } from '../../node-singletons/child-process.js';
|
|
5
6
|
const createWranglerLogMessage = (args) => {
|
|
6
7
|
const command = args[0] ?? 'wrangler';
|
|
@@ -37,15 +38,16 @@ export const WranglerD1 = Object.freeze({
|
|
|
37
38
|
return runWrangler(args, opts.cmd);
|
|
38
39
|
},
|
|
39
40
|
executeSql(opts) {
|
|
40
|
-
const args = [
|
|
41
|
-
|
|
42
|
-
'
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
'--
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
const args = ['d1', 'execute', opts.dbName, opts.isLocal ? '--local' : '--remote', '--json'];
|
|
42
|
+
if (typeof opts.file === 'string') {
|
|
43
|
+
args.push('--file', opts.file);
|
|
44
|
+
}
|
|
45
|
+
else if (typeof opts.sql === 'string') {
|
|
46
|
+
args.push('--command', opts.sql);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
throw ErrorFactory.createValidationError('Must provide either sql command or file for D1 execution');
|
|
50
|
+
}
|
|
49
51
|
return runWrangler(args, opts.cmd);
|
|
50
52
|
},
|
|
51
53
|
});
|
|
@@ -70,7 +70,7 @@ export default zintrustAppEslintConfig({
|
|
|
70
70
|
const wrote = FileGenerator.writeFile(eslintConfigPath, content, { overwrite: false });
|
|
71
71
|
return wrote ? [eslintConfigPath] : [];
|
|
72
72
|
};
|
|
73
|
-
const IMPORT_BOUNDARIES_ARCH_TEST_CONTENT = `import { fs, path } from '
|
|
73
|
+
const IMPORT_BOUNDARIES_ARCH_TEST_CONTENT = `import { fs, path } from '../../node.js';
|
|
74
74
|
import * as ts from 'typescript';
|
|
75
75
|
import { describe, expect, it } from 'vitest';
|
|
76
76
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust CLI Utilities - Non-runtime entrypoint
|
|
3
|
+
* Contains CLI tools and commands for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
export { BaseCommand } from './cli/BaseCommand';
|
|
6
|
+
export type { CommandOptions } from './cli/BaseCommand';
|
|
7
|
+
export { CLI } from './cli/CLI';
|
|
8
|
+
export { ErrorHandler, EXIT_CODES } from './cli/ErrorHandler';
|
|
9
|
+
export { TraceCommands } from './cli/commands/TraceCommands';
|
|
10
|
+
export { WorkerCommands } from './cli/commands/WorkerCommands';
|
|
11
|
+
export { OptionalCliCommandRegistry } from './cli/OptionalCliCommandRegistry';
|
|
12
|
+
export type { CliCommandProvider } from './cli/OptionalCliCommandRegistry';
|
|
13
|
+
//# sourceMappingURL=cli-index.d.ts.map
|
|
@@ -0,0 +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,YAAY,EAAE,UAAU,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"}
|
package/src/cli-index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust CLI Utilities - Non-runtime entrypoint
|
|
3
|
+
* Contains CLI tools and commands for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
// CLI utilities (for build tools and scripting)
|
|
6
|
+
export { BaseCommand } from './cli/BaseCommand.js';
|
|
7
|
+
export { CLI } from './cli/CLI.js';
|
|
8
|
+
export { ErrorHandler, EXIT_CODES } from './cli/ErrorHandler.js';
|
|
9
|
+
export { TraceCommands } from './cli/commands/TraceCommands.js';
|
|
10
|
+
export { WorkerCommands } from './cli/commands/WorkerCommands.js';
|
|
11
|
+
export { OptionalCliCommandRegistry } from './cli/OptionalCliCommandRegistry.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Config - Configuration helpers and config objects
|
|
3
|
+
* Contains all configuration utilities and constants
|
|
4
|
+
*/
|
|
5
|
+
export { appConfig } from './config/app';
|
|
6
|
+
export type { AppConfig } from './config/app';
|
|
7
|
+
export { default as broadcastConfig, clearBroadcastConfigCache } from './config/broadcast';
|
|
8
|
+
export type { BroadcastConfigOverrides, SocketBroadcastConfig } from './config/broadcast';
|
|
9
|
+
export { cacheConfig } from './config/cache';
|
|
10
|
+
export type { CacheConfig, CacheConfigOverrides } from './config/cache';
|
|
11
|
+
export { Cloudflare } from './config/cloudflare';
|
|
12
|
+
export { Constants, DEFAULTS, ENV_KEYS, HTTP_HEADERS, MIME_TYPES } from './config/constants';
|
|
13
|
+
export { databaseConfig } from './config/database';
|
|
14
|
+
export type { DatabaseConfigOverrides, DatabaseConfig as DatabaseRuntimeConfig, } from './config/database';
|
|
15
|
+
export { FeatureFlags } from './config/features';
|
|
16
|
+
export { mailConfig } from './config/mail';
|
|
17
|
+
export type { MailConfig, MailConfigOverrides } from './config/mail';
|
|
18
|
+
export { microservicesConfig } from './config/microservices';
|
|
19
|
+
export type { MicroservicesConfig } from './config/microservices';
|
|
20
|
+
export { clearMiddlewareConfigCache, middlewareConfig, MiddlewareKeys } from './config/middleware';
|
|
21
|
+
export type { MiddlewareKey } from './config/middleware';
|
|
22
|
+
export { default as notificationConfig } from './config/notification';
|
|
23
|
+
export type { NotificationConfig, NotificationConfigOverrides } from './config/notification';
|
|
24
|
+
export { createBaseDrivers, queueConfig } from './config/queue';
|
|
25
|
+
export type { QueueConfig, QueueConfigOverrides } from './config/queue';
|
|
26
|
+
export * from './config/redis';
|
|
27
|
+
export { getDatabaseCredentials, getJwtSecrets, SECRETS, SecretsManager, } from './config/SecretsManager';
|
|
28
|
+
export type { DatabaseCredentials, JwtSecrets } from './config/SecretsManager';
|
|
29
|
+
export { securityConfig } from './config/security';
|
|
30
|
+
export { startupConfig } from './config/startup';
|
|
31
|
+
export type { StartupConfig } from './config/startup';
|
|
32
|
+
export { StartupConfigValidator } from './config/StartupConfigValidator';
|
|
33
|
+
export { storageConfig } from './config/storage';
|
|
34
|
+
export type { StorageConfig, StorageConfigOverrides } from './config/storage';
|
|
35
|
+
export type * from './config/type';
|
|
36
|
+
export type { MailDriverConfig, MailDriverName, MiddlewareConfigType, RedisConfig, WorkerAutoScalingConfig, WorkerComplianceConfig, WorkerConfig, WorkerCostConfig, WorkerObservabilityConfig, WorkersConfigOverrides, WorkersEnv, WorkersGlobalConfig, WorkerStatus, WorkerVersioningConfig, } from './config/type';
|
|
37
|
+
export { createRedisConnection, workersConfig } from './config/workers';
|
|
38
|
+
//# sourceMappingURL=config-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-index.d.ts","sourceRoot":"","sources":["../../src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iB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACvE,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,OAAO,EACP,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,mBAAmB,cAAc,CAAC;AAClC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACtB,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Config - Configuration helpers and config objects
|
|
3
|
+
* Contains all configuration utilities and constants
|
|
4
|
+
*/
|
|
5
|
+
export { appConfig } from './config/app.js';
|
|
6
|
+
export { default as broadcastConfig, clearBroadcastConfigCache } from './config/broadcast.js';
|
|
7
|
+
export { cacheConfig } from './config/cache.js';
|
|
8
|
+
export { Cloudflare } from './config/cloudflare.js';
|
|
9
|
+
export { Constants, DEFAULTS, ENV_KEYS, HTTP_HEADERS, MIME_TYPES } from './config/constants.js';
|
|
10
|
+
export { databaseConfig } from './config/database.js';
|
|
11
|
+
export { FeatureFlags } from './config/features.js';
|
|
12
|
+
export { mailConfig } from './config/mail.js';
|
|
13
|
+
export { microservicesConfig } from './config/microservices.js';
|
|
14
|
+
export { clearMiddlewareConfigCache, middlewareConfig, MiddlewareKeys } from './config/middleware.js';
|
|
15
|
+
export { default as notificationConfig } from './config/notification.js';
|
|
16
|
+
export { createBaseDrivers, queueConfig } from './config/queue.js';
|
|
17
|
+
export * from './config/redis.js';
|
|
18
|
+
export { getDatabaseCredentials, getJwtSecrets, SECRETS, SecretsManager, } from './config/SecretsManager.js';
|
|
19
|
+
export { securityConfig } from './config/security.js';
|
|
20
|
+
export { startupConfig } from './config/startup.js';
|
|
21
|
+
export { StartupConfigValidator } from './config/StartupConfigValidator.js';
|
|
22
|
+
export { storageConfig } from './config/storage.js';
|
|
23
|
+
export { createRedisConnection, workersConfig } from './config/workers.js';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v2.0.
|
|
2
|
+
* @zintrust/core v2.0.3
|
|
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-22T15:39:27.749Z
|
|
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-22T15:39:27.715Z'; // 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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust ORM - Database runtime primitives
|
|
3
|
+
* Contains database adapters and ORM functionality
|
|
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 { IModel, ModelConfig, ModelStatic } from './orm/Model';
|
|
10
|
+
export { QueryBuilder } from './orm/QueryBuilder';
|
|
11
|
+
export type { InsertResult, IQueryBuilder, 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';
|
|
23
|
+
//# sourceMappingURL=orm-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust ORM - Database runtime primitives
|
|
3
|
+
* Contains database adapters and ORM functionality
|
|
4
|
+
*/
|
|
5
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database.js';
|
|
6
|
+
export { DatabaseConnectionRegistry } from './orm/DatabaseConnectionRegistry.js';
|
|
7
|
+
export { Model } from './orm/Model.js';
|
|
8
|
+
export { QueryBuilder } from './orm/QueryBuilder.js';
|
|
9
|
+
export { DatabaseAdapterRegistry } from './orm/DatabaseAdapterRegistry.js';
|
|
10
|
+
export { BaseAdapter } from './orm/DatabaseAdapter.js';
|
|
11
|
+
export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration.js';
|
|
12
|
+
// Adapters
|
|
13
|
+
export { MySQLAdapter } from './orm/adapters/MySQLAdapter.js';
|
|
14
|
+
export { PostgreSQLAdapter } from './orm/adapters/PostgreSQLAdapter.js';
|
|
15
|
+
export { SQLiteAdapter } from './orm/adapters/SQLiteAdapter.js';
|
|
16
|
+
export { SQLServerAdapter } from './orm/adapters/SQLServerAdapter.js';
|
|
17
|
+
// Pagination
|
|
18
|
+
export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Proxy - Proxy-only integrations
|
|
3
|
+
* Contains proxy utilities and proxy-specific functionality
|
|
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';
|
|
11
|
+
//# sourceMappingURL=proxy-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-index.d.ts","sourceRoot":"","sources":["../../src/proxy-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Proxy - Proxy-only integrations
|
|
3
|
+
* Contains proxy utilities and proxy-specific functionality
|
|
4
|
+
*/
|
|
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';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Redis - Redis key management utilities
|
|
3
|
+
* Contains Redis key helpers and BullMQ-safe queue name generation
|
|
4
|
+
*/
|
|
5
|
+
export { createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey, RedisKeys, type RedisKeyType, } from './tools/redis/RedisKeyManager';
|
|
6
|
+
//# sourceMappingURL=redis-index.d.ts.map
|
|
@@ -0,0 +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,SAAS,EACT,KAAK,YAAY,GAClB,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Redis - Redis key management utilities
|
|
3
|
+
* Contains Redis key helpers and BullMQ-safe queue name generation
|
|
4
|
+
*/
|
|
5
|
+
// Redis key manager
|
|
6
|
+
export { createRedisKey, extractOriginalKey, getBullMQSafeQueueName, getPrefix, isAppKey, RedisKeys, } from './tools/redis/RedisKeyManager.js';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Framework - Runtime-only entrypoint for production Workers
|
|
3
|
+
* Excludes CLI utilities, seeders, test helpers, scripts, tools, proxy, and templates
|
|
4
|
+
* Only includes core runtime primitives needed for request handling and boot-time setup
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Framework version and build metadata
|
|
8
|
+
* Available at runtime for debugging and health checks
|
|
9
|
+
*/
|
|
10
|
+
export declare const ZINTRUST_VERSION = "0.1.41";
|
|
11
|
+
export declare const ZINTRUST_BUILD_DATE = "__BUILD_DATE__";
|
|
12
|
+
export { Application } from './boot/Application';
|
|
13
|
+
export { Server } from './boot/Server';
|
|
14
|
+
export { AwsSigV4 } from './common/index';
|
|
15
|
+
export { ServiceContainer } from './container/ServiceContainer';
|
|
16
|
+
export { SignedRequest } from './security/SignedRequest';
|
|
17
|
+
export { Controller } from './http/Controller';
|
|
18
|
+
export { FileUpload } from './http/FileUpload';
|
|
19
|
+
export type { FileUploadOptions, IFileUploadHandler, UploadedFile } from './http/FileUpload';
|
|
20
|
+
export { Kernel } from './http/Kernel';
|
|
21
|
+
export { bodyParsingMiddleware } from './http/middleware/BodyParsingMiddleware';
|
|
22
|
+
export { fileUploadMiddleware } from './http/middleware/FileUploadMiddleware';
|
|
23
|
+
export { BodyParsers } from './http/parsers/BodyParsers';
|
|
24
|
+
export { MultipartParser } from './http/parsers/MultipartParser';
|
|
25
|
+
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry';
|
|
26
|
+
export type { MultipartFieldValue, MultipartParseInput, MultipartParserProvider, ParsedMultipartData, } from './http/parsers/MultipartParserRegistry';
|
|
27
|
+
export { Request } from './http/Request';
|
|
28
|
+
export type { IRequest, ValidatedRequest } from './http/Request';
|
|
29
|
+
export { RequestContext } from './http/RequestContext';
|
|
30
|
+
export { Response } from './http/Response';
|
|
31
|
+
export type { IResponse } from './http/Response';
|
|
32
|
+
export { getValidatedBody, getValidatedHeaders, getValidatedParams, getValidatedQuery, hasValidatedBody, requireValidatedBody, ValidationHelper, } from './http/ValidationHelper';
|
|
33
|
+
export { BulletproofAuthMiddleware } from './middleware/BulletproofAuthMiddleware';
|
|
34
|
+
export { CsrfMiddleware } from './middleware/CsrfMiddleware';
|
|
35
|
+
export { ErrorHandlerMiddleware } from './middleware/ErrorHandlerMiddleware';
|
|
36
|
+
export { LoggingMiddleware } from './middleware/LoggingMiddleware';
|
|
37
|
+
export { MiddlewareStack } from './middleware/MiddlewareStack';
|
|
38
|
+
export type { Middleware } from './middleware/MiddlewareStack';
|
|
39
|
+
export { RateLimiter } from './middleware/RateLimiter';
|
|
40
|
+
export { SecurityMiddleware } from './middleware/SecurityMiddleware';
|
|
41
|
+
export { SessionMiddleware } from './middleware/SessionMiddleware';
|
|
42
|
+
export { ValidationMiddleware } from './middleware/ValidationMiddleware';
|
|
43
|
+
export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator';
|
|
44
|
+
export type { CreatePaginatorInput, PaginationLinks, PaginationQuery, Paginator as PaginatorType, } from './database/Paginator';
|
|
45
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database';
|
|
46
|
+
export type { IDatabase } from './orm/Database';
|
|
47
|
+
export { DatabaseConnectionRegistry } from './orm/DatabaseConnectionRegistry';
|
|
48
|
+
export { Model } from './orm/Model';
|
|
49
|
+
export type { IModel, ModelConfig, ModelStatic } from './orm/Model';
|
|
50
|
+
export { QueryBuilder } from './orm/QueryBuilder';
|
|
51
|
+
export type { InsertResult, IQueryBuilder, PaginationOptions } from './orm/QueryBuilder';
|
|
52
|
+
export type { IRelationship } from './orm/Relationships';
|
|
53
|
+
export { DateTime } from './time/DateTime';
|
|
54
|
+
export type { IDateTime } from './time/DateTime';
|
|
55
|
+
export { ValidationError } from './validation/ValidationError';
|
|
56
|
+
export type { FieldError } from './validation/ValidationError';
|
|
57
|
+
export { Schema, Validator } from './validation/Validator';
|
|
58
|
+
export type { ISchema, SchemaType } from './validation/Validator';
|
|
59
|
+
export { ErrorFactory } from './exceptions/ZintrustError';
|
|
60
|
+
export { detectRuntime } from './runtime/detectRuntime';
|
|
61
|
+
export { getKernel } from './runtime/getKernel';
|
|
62
|
+
export { PluginManager } from './runtime/PluginManager';
|
|
63
|
+
export { PluginRegistry } from './runtime/PluginRegistry';
|
|
64
|
+
export { detectCloudflareWorkers, detectRuntimePlatform, RUNTIME_PLATFORM, RuntimeServices, type RuntimeCrypto, type RuntimeEnvReader, type RuntimeFs, type RuntimePlatform, type RuntimeServices as RuntimeServicesType, type RuntimeTimers, } from './runtime/RuntimeServices';
|
|
65
|
+
export { StartupConfigFile, StartupConfigFileRegistry } from './runtime/StartupConfigFileRegistry';
|
|
66
|
+
export { useFileLoader } from './runtime/useFileLoader';
|
|
67
|
+
export { SystemTraceBridge } from './trace/SystemTraceBridge';
|
|
68
|
+
export { EventDispatcher } from './events/EventDispatcher';
|
|
69
|
+
export type { EventListener, EventMap, IEventDispatcher } from './events/EventDispatcher';
|
|
70
|
+
export { SessionManager } from './session/SessionManager';
|
|
71
|
+
export type { ISession, ISessionManager, SessionData, SessionManagerOptions, } from './session/SessionManager';
|
|
72
|
+
export { Env } from './config/env';
|
|
73
|
+
export { Logger } from './config/logger';
|
|
74
|
+
export type { LogSink } from './config/logger';
|
|
75
|
+
export { appConfig } from './config/app';
|
|
76
|
+
export type { AppConfig } from './config/app';
|
|
77
|
+
export { cacheConfig } from './config/cache';
|
|
78
|
+
export type { CacheConfig, CacheConfigOverrides } from './config/cache';
|
|
79
|
+
export { databaseConfig } from './config/database';
|
|
80
|
+
export type { DatabaseConfigOverrides, DatabaseConfig as DatabaseRuntimeConfig, } from './config/database';
|
|
81
|
+
export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration';
|
|
82
|
+
export { Cache, cache } from './cache/Cache';
|
|
83
|
+
export type { CacheDriver } from './cache/CacheDriver';
|
|
84
|
+
export { CacheDriverRegistry } from './cache/CacheDriverRegistry';
|
|
85
|
+
export { registerCachesFromRuntimeConfig } from './cache/CacheRuntimeRegistration';
|
|
86
|
+
export { createBaseDrivers, queueConfig } from './config/queue';
|
|
87
|
+
export type { QueueConfig, QueueConfigOverrides } from './config/queue';
|
|
88
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
|
|
89
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue';
|
|
90
|
+
export type { BullMQPayload, IQueueDriver, QueueMessage } from './tools/queue/Queue';
|
|
91
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration';
|
|
92
|
+
export { Router } from './routes/Router';
|
|
93
|
+
export type { IRouter, RouteOptions } from './routes/Router';
|
|
94
|
+
export { normalizeRouteMeta, RouteRegistry } from './routes/RouteRegistry';
|
|
95
|
+
export type { RouteMeta, RouteMetaInput, RouteRegistration } from './routes/RouteRegistry';
|
|
96
|
+
export { generateSecureJobId, generateUuid, getString, Utilities, type UtilitiesType, } from './common/utility';
|
|
97
|
+
export { ContextLoader } from './common/ContextLoader';
|
|
98
|
+
export type { ContextLoaderBatchHandler, ContextLoaderBatchKey, ContextLoaderBatchResult, ContextLoaderContext, ContextLoaderInstance, ContextLoaderMode, ContextLoaderPlan, ContextLoaderResolver, } from './common/ContextLoader';
|
|
99
|
+
export { delay, ensureDirSafe } from './common/index';
|
|
100
|
+
export { RemoteSignedJson } from './common/RemoteSignedJson';
|
|
101
|
+
export type { RemoteSignedJsonSettings } from './common/RemoteSignedJson';
|
|
102
|
+
export { collect, Collection } from './collections/index';
|
|
103
|
+
export type { ICollection, PrimitiveKey } from './collections/index';
|
|
104
|
+
export * from './helper/index';
|
|
105
|
+
export * as NodeSingletons from './node-singletons/index';
|
|
106
|
+
export { nowIso } from './common/utility';
|
|
107
|
+
export type { SanitizerError } from './exceptions/ZintrustError';
|
|
108
|
+
export { randomBytes } from './node-singletons/crypto';
|
|
109
|
+
//# sourceMappingURL=runtime-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-index.d.ts","sourceRoot":"","sources":["../../src/runtime-index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAA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AE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGrE,cAAc,eAAe,CAAC;AAG9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Framework - Runtime-only entrypoint for production Workers
|
|
3
|
+
* Excludes CLI utilities, seeders, test helpers, scripts, tools, proxy, and templates
|
|
4
|
+
* Only includes core runtime primitives needed for request handling and boot-time setup
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Framework version and build metadata
|
|
8
|
+
* Available at runtime for debugging and health checks
|
|
9
|
+
*/
|
|
10
|
+
export const ZINTRUST_VERSION = '0.1.41';
|
|
11
|
+
export const ZINTRUST_BUILD_DATE = '__BUILD_DATE__'; // Replaced during build
|
|
12
|
+
// Core application and server primitives
|
|
13
|
+
export { Application } from './boot/Application.js';
|
|
14
|
+
export { Server } from './boot/Server.js';
|
|
15
|
+
export { AwsSigV4 } from './common/index.js';
|
|
16
|
+
export { ServiceContainer } from './container/ServiceContainer.js';
|
|
17
|
+
export { SignedRequest } from './security/SignedRequest.js';
|
|
18
|
+
// HTTP primitives for request handling
|
|
19
|
+
export { Controller } from './http/Controller.js';
|
|
20
|
+
export { FileUpload } from './http/FileUpload.js';
|
|
21
|
+
export { Kernel } from './http/Kernel.js';
|
|
22
|
+
export { bodyParsingMiddleware } from './http/middleware/BodyParsingMiddleware.js';
|
|
23
|
+
export { fileUploadMiddleware } from './http/middleware/FileUploadMiddleware.js';
|
|
24
|
+
export { BodyParsers } from './http/parsers/BodyParsers.js';
|
|
25
|
+
export { MultipartParser } from './http/parsers/MultipartParser.js';
|
|
26
|
+
export { MultipartParserRegistry } from './http/parsers/MultipartParserRegistry.js';
|
|
27
|
+
export { Request } from './http/Request.js';
|
|
28
|
+
export { RequestContext } from './http/RequestContext.js';
|
|
29
|
+
export { Response } from './http/Response.js';
|
|
30
|
+
export { getValidatedBody, getValidatedHeaders, getValidatedParams, getValidatedQuery, hasValidatedBody, requireValidatedBody, ValidationHelper, } from './http/ValidationHelper.js';
|
|
31
|
+
// Core middleware for request processing
|
|
32
|
+
export { BulletproofAuthMiddleware } from './middleware/BulletproofAuthMiddleware.js';
|
|
33
|
+
export { CsrfMiddleware } from './middleware/CsrfMiddleware.js';
|
|
34
|
+
export { ErrorHandlerMiddleware } from './middleware/ErrorHandlerMiddleware.js';
|
|
35
|
+
export { LoggingMiddleware } from './middleware/LoggingMiddleware.js';
|
|
36
|
+
export { MiddlewareStack } from './middleware/MiddlewareStack.js';
|
|
37
|
+
export { RateLimiter } from './middleware/RateLimiter.js';
|
|
38
|
+
export { SecurityMiddleware } from './middleware/SecurityMiddleware.js';
|
|
39
|
+
export { SessionMiddleware } from './middleware/SessionMiddleware.js';
|
|
40
|
+
export { ValidationMiddleware } from './middleware/ValidationMiddleware.js';
|
|
41
|
+
// Minimal ORM primitives for request handlers
|
|
42
|
+
export { createPaginator, getNextPageUrl, getPrevPageUrl, Paginator } from './database/Paginator.js';
|
|
43
|
+
export { Database, resetDatabase, useDatabase, useEnsureDbConnected } from './orm/Database.js';
|
|
44
|
+
export { DatabaseConnectionRegistry } from './orm/DatabaseConnectionRegistry.js';
|
|
45
|
+
export { Model } from './orm/Model.js';
|
|
46
|
+
export { QueryBuilder } from './orm/QueryBuilder.js';
|
|
47
|
+
// Time Utilities
|
|
48
|
+
export { DateTime } from './time/DateTime.js';
|
|
49
|
+
// Validation primitives
|
|
50
|
+
export { ValidationError } from './validation/ValidationError.js';
|
|
51
|
+
export { Schema, Validator } from './validation/Validator.js';
|
|
52
|
+
// Security primitives moved to @zintrust/core/security subpath
|
|
53
|
+
// Exceptions
|
|
54
|
+
export { ErrorFactory } from './exceptions/ZintrustError.js';
|
|
55
|
+
// Runtime services and detection
|
|
56
|
+
export { detectRuntime } from './runtime/detectRuntime.js';
|
|
57
|
+
export { getKernel } from './runtime/getKernel.js';
|
|
58
|
+
export { PluginManager } from './runtime/PluginManager.js';
|
|
59
|
+
export { PluginRegistry } from './runtime/PluginRegistry.js';
|
|
60
|
+
export { detectCloudflareWorkers, detectRuntimePlatform, RUNTIME_PLATFORM, RuntimeServices, } from './runtime/RuntimeServices.js';
|
|
61
|
+
export { StartupConfigFile, StartupConfigFileRegistry } from './runtime/StartupConfigFileRegistry.js';
|
|
62
|
+
export { useFileLoader } from './runtime/useFileLoader.js';
|
|
63
|
+
// Events
|
|
64
|
+
export { SystemTraceBridge } from './trace/SystemTraceBridge.js';
|
|
65
|
+
export { EventDispatcher } from './events/EventDispatcher.js';
|
|
66
|
+
// Sessions
|
|
67
|
+
export { SessionManager } from './session/SessionManager.js';
|
|
68
|
+
// Core config primitives
|
|
69
|
+
export { Env } from './config/env.js';
|
|
70
|
+
export { Logger } from './config/logger.js';
|
|
71
|
+
// Core runtime config
|
|
72
|
+
export { appConfig } from './config/app.js';
|
|
73
|
+
export { cacheConfig } from './config/cache.js';
|
|
74
|
+
export { databaseConfig } from './config/database.js';
|
|
75
|
+
export { registerDatabasesFromRuntimeConfig } from './orm/DatabaseRuntimeRegistration.js';
|
|
76
|
+
// Cache primitives
|
|
77
|
+
export { Cache, cache } from './cache/Cache.js';
|
|
78
|
+
export { CacheDriverRegistry } from './cache/CacheDriverRegistry.js';
|
|
79
|
+
export { registerCachesFromRuntimeConfig } from './cache/CacheRuntimeRegistration.js';
|
|
80
|
+
// Queue primitives
|
|
81
|
+
export { createBaseDrivers, queueConfig } from './config/queue.js';
|
|
82
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
|
|
83
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
|
|
84
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration.js';
|
|
85
|
+
// Router primitives
|
|
86
|
+
export { Router } from './routes/Router.js';
|
|
87
|
+
export { normalizeRouteMeta, RouteRegistry } from './routes/RouteRegistry.js';
|
|
88
|
+
// Common utilities
|
|
89
|
+
export { generateSecureJobId, generateUuid, getString, Utilities, } from './common/utility.js';
|
|
90
|
+
export { ContextLoader } from './common/ContextLoader.js';
|
|
91
|
+
export { delay, ensureDirSafe } from './common/index.js';
|
|
92
|
+
export { RemoteSignedJson } from './common/RemoteSignedJson.js';
|
|
93
|
+
// Collections
|
|
94
|
+
export { collect, Collection } from './collections/index.js';
|
|
95
|
+
// Helper functions
|
|
96
|
+
export * from './helper/index.js';
|
|
97
|
+
// Node Singletons (cross-runtime wrappers for Node.js APIs)
|
|
98
|
+
export * as NodeSingletons from './node-singletons/index.js';
|
|
99
|
+
// Auth features moved to @zintrust/core/auth subpath
|
|
100
|
+
// Utility functions
|
|
101
|
+
export { nowIso } from './common/utility.js';
|
|
102
|
+
export { randomBytes } from './node-singletons/crypto.js';
|
|
103
|
+
// Redis key manager moved to @zintrust/core/redis subpath
|
|
104
|
+
// NOTE: Node-only exports (like FileLogWriter, process) are intentionally not
|
|
105
|
+
// exported from this root entrypoint. Use the '@zintrust/core/node' subpath.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Scripts - Non-runtime entrypoint
|
|
3
|
+
* Contains script utilities and generators for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
export * from './scripts/GenerateEnvArtifacts';
|
|
6
|
+
export * from './scripts/TemplateImportsCheck';
|
|
7
|
+
export * from './scripts/TemplateSync';
|
|
8
|
+
//# sourceMappingURL=scripts-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts-index.d.ts","sourceRoot":"","sources":["../../src/scripts-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Scripts - Non-runtime entrypoint
|
|
3
|
+
* Contains script utilities and generators for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
// Note: These are standalone scripts that can be executed directly
|
|
6
|
+
// They don't export named functions but can be imported as modules
|
|
7
|
+
export * from './scripts/GenerateEnvArtifacts.js';
|
|
8
|
+
export * from './scripts/TemplateImportsCheck.js';
|
|
9
|
+
export * from './scripts/TemplateSync.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Security - Security primitives and crypto utilities
|
|
3
|
+
* Contains authentication, encryption, hashing, JWT, and security helpers
|
|
4
|
+
*/
|
|
5
|
+
export { BulletproofDeviceStore } from './security/BulletproofDeviceStore';
|
|
6
|
+
export { CsrfTokenManager } from './security/CsrfTokenManager';
|
|
7
|
+
export type { CsrfTokenData, CsrfTokenManagerType, ICsrfTokenManager, } from './security/CsrfTokenManager';
|
|
8
|
+
export { EncryptedEnvelope } from './security/EncryptedEnvelope';
|
|
9
|
+
export { Encryptor } from './security/Encryptor';
|
|
10
|
+
export { Hash } from './security/Hash';
|
|
11
|
+
export { JwtManager } from './security/JwtManager';
|
|
12
|
+
export type { IJwtManager, JwtAlgorithm, JwtManagerType, JwtOptions, JwtPayload, } from './security/JwtManager';
|
|
13
|
+
export { JwtSessions } from './security/JwtSessions';
|
|
14
|
+
export { JwtVerifier } from './security/JwtVerifier';
|
|
15
|
+
export type { JwtVerifierAlgorithm, JwtVerifierFailure, JwtVerifierFailureReason, JwtVerifierJwk, JwtVerifierJwksDocument, JwtVerifierResult, JwtVerifierSuccess, JwtVerifierWithJwkInput, JwtVerifierWithJwksInput, } from './security/JwtVerifier';
|
|
16
|
+
export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker';
|
|
17
|
+
export type { IPasswordResetTokenBroker, IPasswordResetTokenStore, PasswordResetTokenBrokerOptions, PasswordResetTokenBrokerType, PasswordResetTokenRecord, } from './security/PasswordResetTokenBroker';
|
|
18
|
+
export { createSanitizer, Sanitizer, type SanitizerType } from './security/Sanitizer';
|
|
19
|
+
export { TokenRevocation } from './security/TokenRevocation';
|
|
20
|
+
export { Xss } from './security/Xss';
|
|
21
|
+
export { XssProtection } from './security/XssProtection';
|
|
22
|
+
export { SecurePayload, type SecurePayloadCoercionShape, type SecurePayloadCoercionType, type SecurePayloadDecodeOptions, type SecurePayloadDecryptor, type SecurePayloadPipeline, type SecurePayloadPipelineIssue, type SecurePayloadPipelineStage, } from './security/SecurePayload';
|
|
23
|
+
//# sourceMappingURL=security-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-index.d.ts","sourceRoot":"","sources":["../../src/security-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGrF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Security - Security primitives and crypto utilities
|
|
3
|
+
* Contains authentication, encryption, hashing, JWT, and security helpers
|
|
4
|
+
*/
|
|
5
|
+
// Device store for bulletproof auth
|
|
6
|
+
export { BulletproofDeviceStore } from './security/BulletproofDeviceStore.js';
|
|
7
|
+
// CSRF protection
|
|
8
|
+
export { CsrfTokenManager } from './security/CsrfTokenManager.js';
|
|
9
|
+
// Encryption
|
|
10
|
+
export { EncryptedEnvelope } from './security/EncryptedEnvelope.js';
|
|
11
|
+
export { Encryptor } from './security/Encryptor.js';
|
|
12
|
+
// Hashing
|
|
13
|
+
export { Hash } from './security/Hash.js';
|
|
14
|
+
// JWT management
|
|
15
|
+
export { JwtManager } from './security/JwtManager.js';
|
|
16
|
+
export { JwtSessions } from './security/JwtSessions.js';
|
|
17
|
+
export { JwtVerifier } from './security/JwtVerifier.js';
|
|
18
|
+
// Password reset tokens
|
|
19
|
+
export { PasswordResetTokenBroker } from './security/PasswordResetTokenBroker.js';
|
|
20
|
+
// Sanitization
|
|
21
|
+
export { createSanitizer, Sanitizer } from './security/Sanitizer.js';
|
|
22
|
+
// Token revocation
|
|
23
|
+
export { TokenRevocation } from './security/TokenRevocation.js';
|
|
24
|
+
// XSS protection
|
|
25
|
+
export { Xss } from './security/Xss.js';
|
|
26
|
+
export { XssProtection } from './security/XssProtection.js';
|
|
27
|
+
// Secure payload handling
|
|
28
|
+
export { SecurePayload, } from './security/SecurePayload.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Seeders - Non-runtime entrypoint
|
|
3
|
+
* Contains database seeding utilities for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
export { SeederDiscovery } from './seeders/SeederDiscovery';
|
|
6
|
+
export { SeederLoader } from './seeders/SeederLoader';
|
|
7
|
+
export type { LoadedSeeder, SeederHandler } from './seeders/types';
|
|
8
|
+
//# sourceMappingURL=seeders-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seeders-index.d.ts","sourceRoot":"","sources":["../../src/seeders-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Seeders - Non-runtime entrypoint
|
|
3
|
+
* Contains database seeding utilities for development/admin use
|
|
4
|
+
*/
|
|
5
|
+
// Seeders (for database seeding)
|
|
6
|
+
export { SeederDiscovery } from './seeders/SeederDiscovery.js';
|
|
7
|
+
export { SeederLoader } from './seeders/SeederLoader.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-index.d.ts","sourceRoot":"","sources":["../../src/templates-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Testing - Non-runtime entrypoint
|
|
3
|
+
* Contains test utilities and helpers for development use
|
|
4
|
+
*/
|
|
5
|
+
export { TestEnvironment } from './testing/TestEnvironment';
|
|
6
|
+
export { TestHttp } from './testing/TestHttp';
|
|
7
|
+
//# sourceMappingURL=testing-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing-index.d.ts","sourceRoot":"","sources":["../../src/testing-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Broadcast integration
|
|
3
|
+
* Contains broadcast utilities and real-time features
|
|
4
|
+
*/
|
|
5
|
+
export { Broadcast } from './tools/broadcast/Broadcast';
|
|
6
|
+
export type { BroadcastPublishInput, BroadcastPublishResult } from './tools/broadcast/Broadcast';
|
|
7
|
+
export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry';
|
|
8
|
+
export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration';
|
|
9
|
+
//# sourceMappingURL=tools-broadcast-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-broadcast-index.d.ts","sourceRoot":"","sources":["../../src/tools-broadcast-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Broadcast integration
|
|
3
|
+
* Contains broadcast utilities and real-time features
|
|
4
|
+
*/
|
|
5
|
+
export { Broadcast } from './tools/broadcast/Broadcast.js';
|
|
6
|
+
export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry.js';
|
|
7
|
+
export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-http-index.d.ts","sourceRoot":"","sources":["../../src/tools-http-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Non-runtime entrypoint
|
|
3
|
+
* Contains all service integrations and optional drivers
|
|
4
|
+
*/
|
|
5
|
+
export { Mail } from './tools/mail';
|
|
6
|
+
export type { SendMailInput, SendMailResult } from './tools/mail';
|
|
7
|
+
export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates';
|
|
8
|
+
export type { MailTemplate, MailTemplateRegistry } from './tools/mail/templates';
|
|
9
|
+
export { MailDriverRegistry } from './tools/mail/MailDriverRegistry';
|
|
10
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration';
|
|
11
|
+
export { SmtpDriver } from './tools/mail/drivers/Smtp';
|
|
12
|
+
export type { SmtpConfig as SmtpDriverConfig } from './tools/mail/drivers/Smtp';
|
|
13
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid';
|
|
14
|
+
export type { SendGridConfig, MailAddress as SendGridMailAddress, MailAttachment as SendGridMailAttachment, MailMessage as SendGridMailMessage, SendResult as SendGridSendResult, } from './tools/mail/drivers/SendGrid';
|
|
15
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun';
|
|
16
|
+
export type { MailgunConfig, MailMessage as MailgunMessage, SendResult as MailgunResult, } from './tools/mail/drivers/Mailgun';
|
|
17
|
+
export { NotificationComposer } from './tools/notification/Composer';
|
|
18
|
+
export type { NotificationChannelHandler, NotificationComposeBuilder, NotificationComposeChannelResult, NotificationComposeError, NotificationComposeOptions, NotificationComposePolicy, NotificationComposeResult, } from './tools/notification/Composer';
|
|
19
|
+
export { sendSlackWebhook } from './tools/notification/drivers/Slack';
|
|
20
|
+
export { TermiiDriver } from './tools/notification/drivers/Termii';
|
|
21
|
+
export { sendSms } from './tools/notification/drivers/Twilio';
|
|
22
|
+
export { Notification } from './tools/notification/Notification';
|
|
23
|
+
export { NotificationRegistry } from './tools/notification/Registry';
|
|
24
|
+
export { Storage } from './tools/storage/index';
|
|
25
|
+
export { LocalSignedUrl } from './tools/storage/LocalSignedUrl';
|
|
26
|
+
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry';
|
|
27
|
+
export { S3Driver } from './tools/storage/drivers/S3';
|
|
28
|
+
export type { S3Config } from './tools/storage/drivers/S3';
|
|
29
|
+
export { R2Driver } from './tools/storage/drivers/R2';
|
|
30
|
+
export type { R2Config } from './tools/storage/drivers/R2';
|
|
31
|
+
export { GcsDriver } from './tools/storage/drivers/Gcs';
|
|
32
|
+
export type { GcsConfig } from './tools/storage/drivers/Gcs';
|
|
33
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
|
|
34
|
+
export { RedisQueue } from './tools/queue/drivers/Redis';
|
|
35
|
+
export { IdempotencyManager } from './tools/queue/IdempotencyManager';
|
|
36
|
+
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore';
|
|
37
|
+
export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner';
|
|
38
|
+
export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon';
|
|
39
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker';
|
|
40
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence';
|
|
41
|
+
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider';
|
|
42
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue';
|
|
43
|
+
export type { BullMQPayload, IQueueDriver, QueueMessage } from './tools/queue/Queue';
|
|
44
|
+
export { QueueDataRedactor } from './tools/queue/QueueDataRedactor';
|
|
45
|
+
export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics';
|
|
46
|
+
export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator';
|
|
47
|
+
export { QueueTracing } from './tools/queue/QueueTracing';
|
|
48
|
+
export { StalledJobMonitor } from './tools/queue/StalledJobMonitor';
|
|
49
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager';
|
|
50
|
+
export { Broadcast } from './tools/broadcast/Broadcast';
|
|
51
|
+
export type { BroadcastPublishInput, BroadcastPublishResult } from './tools/broadcast/Broadcast';
|
|
52
|
+
export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry';
|
|
53
|
+
export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration';
|
|
54
|
+
export { HttpClient } from './tools/http/Http';
|
|
55
|
+
export type { IHttpRequest, IHttpResponse } from './tools/http/Http';
|
|
56
|
+
//# sourceMappingURL=tools-index.d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E,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC;AAGtG,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Non-runtime entrypoint
|
|
3
|
+
* Contains all service integrations and optional drivers
|
|
4
|
+
*/
|
|
5
|
+
// Mail
|
|
6
|
+
export { Mail } from './tools/mail/index.js';
|
|
7
|
+
export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates/index.js';
|
|
8
|
+
export { MailDriverRegistry } from './tools/mail/MailDriverRegistry.js';
|
|
9
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration.js';
|
|
10
|
+
export { SmtpDriver } from './tools/mail/drivers/Smtp.js';
|
|
11
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid.js';
|
|
12
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun.js';
|
|
13
|
+
// Notification
|
|
14
|
+
export { NotificationComposer } from './tools/notification/Composer.js';
|
|
15
|
+
export { sendSlackWebhook } from './tools/notification/drivers/Slack.js';
|
|
16
|
+
export { TermiiDriver } from './tools/notification/drivers/Termii.js';
|
|
17
|
+
export { sendSms } from './tools/notification/drivers/Twilio.js';
|
|
18
|
+
export { Notification } from './tools/notification/Notification.js';
|
|
19
|
+
export { NotificationRegistry } from './tools/notification/Registry.js';
|
|
20
|
+
// Storage
|
|
21
|
+
export { Storage } from './tools/storage/index.js';
|
|
22
|
+
export { LocalSignedUrl } from './tools/storage/LocalSignedUrl.js';
|
|
23
|
+
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry.js';
|
|
24
|
+
export { S3Driver } from './tools/storage/drivers/S3.js';
|
|
25
|
+
export { R2Driver } from './tools/storage/drivers/R2.js';
|
|
26
|
+
export { GcsDriver } from './tools/storage/drivers/Gcs.js';
|
|
27
|
+
// Queue
|
|
28
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
|
|
29
|
+
export { RedisQueue } from './tools/queue/drivers/Redis.js';
|
|
30
|
+
export { IdempotencyManager } from './tools/queue/IdempotencyManager.js';
|
|
31
|
+
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore.js';
|
|
32
|
+
export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner.js';
|
|
33
|
+
export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon.js';
|
|
34
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker.js';
|
|
35
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence.js';
|
|
36
|
+
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider.js';
|
|
37
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
|
|
38
|
+
export { QueueDataRedactor } from './tools/queue/QueueDataRedactor.js';
|
|
39
|
+
export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics.js';
|
|
40
|
+
export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator.js';
|
|
41
|
+
export { QueueTracing } from './tools/queue/QueueTracing.js';
|
|
42
|
+
export { StalledJobMonitor } from './tools/queue/StalledJobMonitor.js';
|
|
43
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager.js';
|
|
44
|
+
// Broadcast
|
|
45
|
+
export { Broadcast } from './tools/broadcast/Broadcast.js';
|
|
46
|
+
export { BroadcastRegistry } from './tools/broadcast/BroadcastRegistry.js';
|
|
47
|
+
export { registerBroadcastersFromRuntimeConfig } from './tools/broadcast/BroadcastRuntimeRegistration.js';
|
|
48
|
+
// HTTP client helpers
|
|
49
|
+
export { HttpClient } from './tools/http/Http.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Mail integration
|
|
3
|
+
* Contains mail drivers and mail-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Mail } from './tools/mail';
|
|
6
|
+
export type { SendMailInput, SendMailResult } from './tools/mail';
|
|
7
|
+
export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates';
|
|
8
|
+
export type { MailTemplate, MailTemplateRegistry } from './tools/mail/templates';
|
|
9
|
+
export { MailDriverRegistry } from './tools/mail/MailDriverRegistry';
|
|
10
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration';
|
|
11
|
+
export { SmtpDriver } from './tools/mail/drivers/Smtp';
|
|
12
|
+
export type { SmtpConfig as SmtpDriverConfig } from './tools/mail/drivers/Smtp';
|
|
13
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid';
|
|
14
|
+
export type { SendGridConfig, MailAddress as SendGridMailAddress, MailAttachment as SendGridMailAttachment, MailMessage as SendGridMailMessage, SendResult as SendGridSendResult, } from './tools/mail/drivers/SendGrid';
|
|
15
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun';
|
|
16
|
+
export type { MailgunConfig, MailMessage as MailgunMessage, SendResult as MailgunResult, } from './tools/mail/drivers/Mailgun';
|
|
17
|
+
//# sourceMappingURL=tools-mail-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-mail-index.d.ts","sourceRoot":"","sources":["../../src/tools-mail-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EACV,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,cAAc,IAAI,sBAAsB,EACxC,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EACV,aAAa,EACb,WAAW,IAAI,cAAc,EAC7B,UAAU,IAAI,aAAa,GAC5B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Mail integration
|
|
3
|
+
* Contains mail drivers and mail-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Mail } from './tools/mail/index.js';
|
|
6
|
+
export { MailTemplateRenderer, MailTemplates } from './tools/mail/templates/index.js';
|
|
7
|
+
export { MailDriverRegistry } from './tools/mail/MailDriverRegistry.js';
|
|
8
|
+
export { registerQueuesFromRuntimeConfig } from './tools/queue/QueueRuntimeRegistration.js';
|
|
9
|
+
export { SmtpDriver } from './tools/mail/drivers/Smtp.js';
|
|
10
|
+
export { SendGridDriver } from './tools/mail/drivers/SendGrid.js';
|
|
11
|
+
export { MailgunDriver } from './tools/mail/drivers/Mailgun.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Notification integration
|
|
3
|
+
* Contains notification drivers and notification-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { NotificationComposer } from './tools/notification/Composer';
|
|
6
|
+
export type { NotificationChannelHandler, NotificationComposeBuilder, NotificationComposeChannelResult, NotificationComposeError, NotificationComposeOptions, NotificationComposePolicy, NotificationComposeResult, } from './tools/notification/Composer';
|
|
7
|
+
export { sendSlackWebhook } from './tools/notification/drivers/Slack';
|
|
8
|
+
export { TermiiDriver } from './tools/notification/drivers/Termii';
|
|
9
|
+
export { sendSms } from './tools/notification/drivers/Twilio';
|
|
10
|
+
export { Notification } from './tools/notification/Notification';
|
|
11
|
+
export { NotificationRegistry } from './tools/notification/Registry';
|
|
12
|
+
//# sourceMappingURL=tools-notification-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-notification-index.d.ts","sourceRoot":"","sources":["../../src/tools-notification-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Notification integration
|
|
3
|
+
* Contains notification drivers and notification-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { NotificationComposer } from './tools/notification/Composer.js';
|
|
6
|
+
export { sendSlackWebhook } from './tools/notification/drivers/Slack.js';
|
|
7
|
+
export { TermiiDriver } from './tools/notification/drivers/Termii.js';
|
|
8
|
+
export { sendSms } from './tools/notification/drivers/Twilio.js';
|
|
9
|
+
export { Notification } from './tools/notification/Notification.js';
|
|
10
|
+
export { NotificationRegistry } from './tools/notification/Registry.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Queue integration
|
|
3
|
+
* Contains queue drivers and queue-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey';
|
|
6
|
+
export { RedisQueue } from './tools/queue/drivers/Redis';
|
|
7
|
+
export { IdempotencyManager } from './tools/queue/IdempotencyManager';
|
|
8
|
+
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore';
|
|
9
|
+
export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner';
|
|
10
|
+
export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon';
|
|
11
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker';
|
|
12
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence';
|
|
13
|
+
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider';
|
|
14
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue';
|
|
15
|
+
export type { BullMQPayload, IQueueDriver, QueueMessage } from './tools/queue/Queue';
|
|
16
|
+
export { QueueDataRedactor } from './tools/queue/QueueDataRedactor';
|
|
17
|
+
export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics';
|
|
18
|
+
export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator';
|
|
19
|
+
export { QueueTracing } from './tools/queue/QueueTracing';
|
|
20
|
+
export { StalledJobMonitor } from './tools/queue/StalledJobMonitor';
|
|
21
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager';
|
|
22
|
+
//# sourceMappingURL=tools-queue-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-queue-index.d.ts","sourceRoot":"","sources":["../../src/tools-queue-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,6CAA6C,EAC7C,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Queue integration
|
|
3
|
+
* Contains queue drivers and queue-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { resolveDeduplicationLockKey } from './tools/queue/DeduplicationKey.js';
|
|
6
|
+
export { RedisQueue } from './tools/queue/drivers/Redis.js';
|
|
7
|
+
export { IdempotencyManager } from './tools/queue/IdempotencyManager.js';
|
|
8
|
+
export { JobHeartbeatStore } from './tools/queue/JobHeartbeatStore.js';
|
|
9
|
+
export { JobReconciliationRunner } from './tools/queue/JobReconciliationRunner.js';
|
|
10
|
+
export { JobRecoveryDaemon } from './tools/queue/JobRecoveryDaemon.js';
|
|
11
|
+
export { JobStateTracker } from './tools/queue/JobStateTracker.js';
|
|
12
|
+
export { autoRegisterJobStateTrackerPersistenceFromEnv, createJobStateTrackerDbPersistence, } from './tools/queue/JobStateTrackerDbPersistence.js';
|
|
13
|
+
export { createLockProvider, getLockProvider, registerLockProvider } from './tools/queue/LockProvider.js';
|
|
14
|
+
export { Queue, resolveLockPrefix } from './tools/queue/Queue.js';
|
|
15
|
+
export { QueueDataRedactor } from './tools/queue/QueueDataRedactor.js';
|
|
16
|
+
export { QueueReliabilityMetrics } from './tools/queue/QueueReliabilityMetrics.js';
|
|
17
|
+
export { QueueReliabilityOrchestrator } from './tools/queue/QueueReliabilityOrchestrator.js';
|
|
18
|
+
export { QueueTracing } from './tools/queue/QueueTracing.js';
|
|
19
|
+
export { StalledJobMonitor } from './tools/queue/StalledJobMonitor.js';
|
|
20
|
+
export { TimeoutManager } from './tools/queue/TimeoutManager.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Storage integration
|
|
3
|
+
* Contains storage drivers and storage-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Storage } from './tools/storage/index';
|
|
6
|
+
export { LocalSignedUrl } from './tools/storage/LocalSignedUrl';
|
|
7
|
+
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry';
|
|
8
|
+
export { S3Driver } from './tools/storage/drivers/S3';
|
|
9
|
+
export type { S3Config } from './tools/storage/drivers/S3';
|
|
10
|
+
export { R2Driver } from './tools/storage/drivers/R2';
|
|
11
|
+
export type { R2Config } from './tools/storage/drivers/R2';
|
|
12
|
+
export { GcsDriver } from './tools/storage/drivers/Gcs';
|
|
13
|
+
export type { GcsConfig } from './tools/storage/drivers/Gcs';
|
|
14
|
+
//# sourceMappingURL=tools-storage-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-storage-index.d.ts","sourceRoot":"","sources":["../../src/tools-storage-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZinTrust Tools - Storage integration
|
|
3
|
+
* Contains storage drivers and storage-related utilities
|
|
4
|
+
*/
|
|
5
|
+
export { Storage } from './tools/storage/index.js';
|
|
6
|
+
export { LocalSignedUrl } from './tools/storage/LocalSignedUrl.js';
|
|
7
|
+
export { StorageDriverRegistry } from './tools/storage/StorageDriverRegistry.js';
|
|
8
|
+
export { S3Driver } from './tools/storage/drivers/S3.js';
|
|
9
|
+
export { R2Driver } from './tools/storage/drivers/R2.js';
|
|
10
|
+
export { GcsDriver } from './tools/storage/drivers/Gcs.js';
|