@digilogiclabs/platform-core 1.11.0 → 1.13.0
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/dist/{ConsoleEmail-ubSVWgTa.d.mts → ConsoleEmail-CqXhZmFN.d.mts} +273 -1631
- package/dist/{ConsoleEmail-ubSVWgTa.d.ts → ConsoleEmail-CqXhZmFN.d.ts} +273 -1631
- package/dist/auth.d.mts +3 -3
- package/dist/auth.d.ts +3 -3
- package/dist/auth.js.map +1 -1
- package/dist/auth.mjs.map +1 -1
- package/dist/{env-CYKVNpLl.d.mts → env-BJWliXSO.d.mts} +15 -56
- package/dist/{env-CYKVNpLl.d.ts → env-BJWliXSO.d.ts} +15 -56
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +38 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -22
- package/dist/index.mjs.map +1 -1
- package/dist/migrate.js +0 -0
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +38 -22
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +38 -22
- package/dist/testing.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -14393,10 +14393,12 @@ var BulkheadConfigSchema = z.object({
|
|
|
14393
14393
|
timeout: z.number().int().min(0).max(3e5).default(3e4).describe("Queue timeout in ms")
|
|
14394
14394
|
});
|
|
14395
14395
|
var ResilienceConfigSchema = z.object({
|
|
14396
|
-
retry: RetryConfigSchema.default({}),
|
|
14397
|
-
circuitBreaker: CircuitBreakerConfigSchema.default(
|
|
14398
|
-
|
|
14399
|
-
|
|
14396
|
+
retry: RetryConfigSchema.default(RetryConfigSchema.parse({})),
|
|
14397
|
+
circuitBreaker: CircuitBreakerConfigSchema.default(
|
|
14398
|
+
CircuitBreakerConfigSchema.parse({})
|
|
14399
|
+
),
|
|
14400
|
+
timeout: TimeoutConfigSchema.default(TimeoutConfigSchema.parse({})),
|
|
14401
|
+
bulkhead: BulkheadConfigSchema.default(BulkheadConfigSchema.parse({}))
|
|
14400
14402
|
});
|
|
14401
14403
|
var LoggingConfigSchema = z.object({
|
|
14402
14404
|
level: LogLevelSchema.default("info").describe("Minimum log level"),
|
|
@@ -14408,7 +14410,7 @@ var LoggingConfigSchema = z.object({
|
|
|
14408
14410
|
var MetricsConfigSchema = z.object({
|
|
14409
14411
|
enabled: z.boolean().default(false).describe("Enable metrics collection"),
|
|
14410
14412
|
prefix: z.string().default("platform").describe("Metric name prefix"),
|
|
14411
|
-
defaultTags: z.record(z.string()).default({}).describe("Default tags for all metrics"),
|
|
14413
|
+
defaultTags: z.record(z.string(), z.string()).default({}).describe("Default tags for all metrics"),
|
|
14412
14414
|
flushInterval: z.number().int().min(1e3).max(6e4).default(1e4).describe("Flush interval in ms"),
|
|
14413
14415
|
histogramBuckets: z.array(z.number()).default([5, 10, 25, 50, 100, 250, 500, 1e3, 2500, 5e3, 1e4]).describe("Histogram bucket boundaries in ms")
|
|
14414
14416
|
});
|
|
@@ -14424,9 +14426,9 @@ var TracingConfigSchema = z.object({
|
|
|
14424
14426
|
exporterType: z.enum(["otlp-http", "otlp-grpc", "console"]).default("otlp-http").describe("Exporter type")
|
|
14425
14427
|
});
|
|
14426
14428
|
var ObservabilityConfigSchema = z.object({
|
|
14427
|
-
logging: LoggingConfigSchema.default({}),
|
|
14428
|
-
metrics: MetricsConfigSchema.default({}),
|
|
14429
|
-
tracing: TracingConfigSchema.default({})
|
|
14429
|
+
logging: LoggingConfigSchema.default(LoggingConfigSchema.parse({})),
|
|
14430
|
+
metrics: MetricsConfigSchema.default(MetricsConfigSchema.parse({})),
|
|
14431
|
+
tracing: TracingConfigSchema.default(TracingConfigSchema.parse({}))
|
|
14430
14432
|
});
|
|
14431
14433
|
var MiddlewareConfigSchema = z.object({
|
|
14432
14434
|
enabled: z.boolean().default(true).describe("Enable middleware chain"),
|
|
@@ -14435,32 +14437,46 @@ var MiddlewareConfigSchema = z.object({
|
|
|
14435
14437
|
slowQuery: z.object({
|
|
14436
14438
|
enabled: z.boolean().default(true),
|
|
14437
14439
|
thresholdMs: z.number().int().min(1).default(1e3)
|
|
14438
|
-
}).default({}),
|
|
14440
|
+
}).default({ enabled: true, thresholdMs: 1e3 }),
|
|
14439
14441
|
cache: z.object({
|
|
14440
14442
|
enabled: z.boolean().default(false),
|
|
14441
14443
|
defaultTTL: z.number().int().min(0).default(300)
|
|
14442
|
-
}).default({})
|
|
14444
|
+
}).default({ enabled: false, defaultTTL: 300 })
|
|
14443
14445
|
});
|
|
14444
14446
|
var PlatformConfigSchema = z.object({
|
|
14445
14447
|
// Service configurations
|
|
14446
|
-
database: DatabaseConfigSchema.default(
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14448
|
+
database: DatabaseConfigSchema.default(
|
|
14449
|
+
DatabaseConfigSchema.parse({ provider: "memory" })
|
|
14450
|
+
),
|
|
14451
|
+
cache: CacheConfigSchema.default(
|
|
14452
|
+
CacheConfigSchema.parse({ provider: "memory" })
|
|
14453
|
+
),
|
|
14454
|
+
storage: StorageConfigSchema.default(
|
|
14455
|
+
StorageConfigSchema.parse({ provider: "memory" })
|
|
14456
|
+
),
|
|
14457
|
+
email: EmailConfigSchema.default(
|
|
14458
|
+
EmailConfigSchema.parse({ provider: "memory" })
|
|
14459
|
+
),
|
|
14460
|
+
queue: QueueConfigSchema.default(
|
|
14461
|
+
QueueConfigSchema.parse({ provider: "memory" })
|
|
14462
|
+
),
|
|
14451
14463
|
// AI configurations
|
|
14452
|
-
ai: AIConfigSchema.default({ enabled: false }),
|
|
14453
|
-
rag: RAGConfigSchema.default({ enabled: false }),
|
|
14464
|
+
ai: AIConfigSchema.default(AIConfigSchema.parse({ enabled: false })),
|
|
14465
|
+
rag: RAGConfigSchema.default(RAGConfigSchema.parse({ enabled: false })),
|
|
14454
14466
|
// Crypto configuration
|
|
14455
|
-
crypto: CryptoConfigSchema.default(
|
|
14467
|
+
crypto: CryptoConfigSchema.default(
|
|
14468
|
+
CryptoConfigSchema.parse({ enabled: false })
|
|
14469
|
+
),
|
|
14456
14470
|
// Security configuration
|
|
14457
|
-
security: SecurityConfigSchema.default({}),
|
|
14471
|
+
security: SecurityConfigSchema.default(SecurityConfigSchema.parse({})),
|
|
14458
14472
|
// Resilience configuration
|
|
14459
|
-
resilience: ResilienceConfigSchema.default({}),
|
|
14473
|
+
resilience: ResilienceConfigSchema.default(ResilienceConfigSchema.parse({})),
|
|
14460
14474
|
// Observability configuration
|
|
14461
|
-
observability: ObservabilityConfigSchema.default(
|
|
14475
|
+
observability: ObservabilityConfigSchema.default(
|
|
14476
|
+
ObservabilityConfigSchema.parse({})
|
|
14477
|
+
),
|
|
14462
14478
|
// Middleware configuration
|
|
14463
|
-
middleware: MiddlewareConfigSchema.default({})
|
|
14479
|
+
middleware: MiddlewareConfigSchema.default(MiddlewareConfigSchema.parse({}))
|
|
14464
14480
|
});
|
|
14465
14481
|
function loadConfig() {
|
|
14466
14482
|
return PlatformConfigSchema.parse({
|