@digilogiclabs/platform-core 1.10.0 → 1.12.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 +105 -3
- package/dist/auth.d.ts +105 -3
- package/dist/auth.js +178 -8
- package/dist/auth.js.map +1 -1
- package/dist/auth.mjs +176 -8
- 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/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 +2 -2
package/dist/testing.mjs
CHANGED
|
@@ -2529,10 +2529,12 @@ var BulkheadConfigSchema = z.object({
|
|
|
2529
2529
|
timeout: z.number().int().min(0).max(3e5).default(3e4).describe("Queue timeout in ms")
|
|
2530
2530
|
});
|
|
2531
2531
|
var ResilienceConfigSchema = z.object({
|
|
2532
|
-
retry: RetryConfigSchema.default({}),
|
|
2533
|
-
circuitBreaker: CircuitBreakerConfigSchema.default(
|
|
2534
|
-
|
|
2535
|
-
|
|
2532
|
+
retry: RetryConfigSchema.default(RetryConfigSchema.parse({})),
|
|
2533
|
+
circuitBreaker: CircuitBreakerConfigSchema.default(
|
|
2534
|
+
CircuitBreakerConfigSchema.parse({})
|
|
2535
|
+
),
|
|
2536
|
+
timeout: TimeoutConfigSchema.default(TimeoutConfigSchema.parse({})),
|
|
2537
|
+
bulkhead: BulkheadConfigSchema.default(BulkheadConfigSchema.parse({}))
|
|
2536
2538
|
});
|
|
2537
2539
|
var LoggingConfigSchema = z.object({
|
|
2538
2540
|
level: LogLevelSchema.default("info").describe("Minimum log level"),
|
|
@@ -2544,7 +2546,7 @@ var LoggingConfigSchema = z.object({
|
|
|
2544
2546
|
var MetricsConfigSchema = z.object({
|
|
2545
2547
|
enabled: z.boolean().default(false).describe("Enable metrics collection"),
|
|
2546
2548
|
prefix: z.string().default("platform").describe("Metric name prefix"),
|
|
2547
|
-
defaultTags: z.record(z.string()).default({}).describe("Default tags for all metrics"),
|
|
2549
|
+
defaultTags: z.record(z.string(), z.string()).default({}).describe("Default tags for all metrics"),
|
|
2548
2550
|
flushInterval: z.number().int().min(1e3).max(6e4).default(1e4).describe("Flush interval in ms"),
|
|
2549
2551
|
histogramBuckets: z.array(z.number()).default([5, 10, 25, 50, 100, 250, 500, 1e3, 2500, 5e3, 1e4]).describe("Histogram bucket boundaries in ms")
|
|
2550
2552
|
});
|
|
@@ -2560,9 +2562,9 @@ var TracingConfigSchema = z.object({
|
|
|
2560
2562
|
exporterType: z.enum(["otlp-http", "otlp-grpc", "console"]).default("otlp-http").describe("Exporter type")
|
|
2561
2563
|
});
|
|
2562
2564
|
var ObservabilityConfigSchema = z.object({
|
|
2563
|
-
logging: LoggingConfigSchema.default({}),
|
|
2564
|
-
metrics: MetricsConfigSchema.default({}),
|
|
2565
|
-
tracing: TracingConfigSchema.default({})
|
|
2565
|
+
logging: LoggingConfigSchema.default(LoggingConfigSchema.parse({})),
|
|
2566
|
+
metrics: MetricsConfigSchema.default(MetricsConfigSchema.parse({})),
|
|
2567
|
+
tracing: TracingConfigSchema.default(TracingConfigSchema.parse({}))
|
|
2566
2568
|
});
|
|
2567
2569
|
var MiddlewareConfigSchema = z.object({
|
|
2568
2570
|
enabled: z.boolean().default(true).describe("Enable middleware chain"),
|
|
@@ -2571,32 +2573,46 @@ var MiddlewareConfigSchema = z.object({
|
|
|
2571
2573
|
slowQuery: z.object({
|
|
2572
2574
|
enabled: z.boolean().default(true),
|
|
2573
2575
|
thresholdMs: z.number().int().min(1).default(1e3)
|
|
2574
|
-
}).default({}),
|
|
2576
|
+
}).default({ enabled: true, thresholdMs: 1e3 }),
|
|
2575
2577
|
cache: z.object({
|
|
2576
2578
|
enabled: z.boolean().default(false),
|
|
2577
2579
|
defaultTTL: z.number().int().min(0).default(300)
|
|
2578
|
-
}).default({})
|
|
2580
|
+
}).default({ enabled: false, defaultTTL: 300 })
|
|
2579
2581
|
});
|
|
2580
2582
|
var PlatformConfigSchema = z.object({
|
|
2581
2583
|
// Service configurations
|
|
2582
|
-
database: DatabaseConfigSchema.default(
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2584
|
+
database: DatabaseConfigSchema.default(
|
|
2585
|
+
DatabaseConfigSchema.parse({ provider: "memory" })
|
|
2586
|
+
),
|
|
2587
|
+
cache: CacheConfigSchema.default(
|
|
2588
|
+
CacheConfigSchema.parse({ provider: "memory" })
|
|
2589
|
+
),
|
|
2590
|
+
storage: StorageConfigSchema.default(
|
|
2591
|
+
StorageConfigSchema.parse({ provider: "memory" })
|
|
2592
|
+
),
|
|
2593
|
+
email: EmailConfigSchema.default(
|
|
2594
|
+
EmailConfigSchema.parse({ provider: "memory" })
|
|
2595
|
+
),
|
|
2596
|
+
queue: QueueConfigSchema.default(
|
|
2597
|
+
QueueConfigSchema.parse({ provider: "memory" })
|
|
2598
|
+
),
|
|
2587
2599
|
// AI configurations
|
|
2588
|
-
ai: AIConfigSchema.default({ enabled: false }),
|
|
2589
|
-
rag: RAGConfigSchema.default({ enabled: false }),
|
|
2600
|
+
ai: AIConfigSchema.default(AIConfigSchema.parse({ enabled: false })),
|
|
2601
|
+
rag: RAGConfigSchema.default(RAGConfigSchema.parse({ enabled: false })),
|
|
2590
2602
|
// Crypto configuration
|
|
2591
|
-
crypto: CryptoConfigSchema.default(
|
|
2603
|
+
crypto: CryptoConfigSchema.default(
|
|
2604
|
+
CryptoConfigSchema.parse({ enabled: false })
|
|
2605
|
+
),
|
|
2592
2606
|
// Security configuration
|
|
2593
|
-
security: SecurityConfigSchema.default({}),
|
|
2607
|
+
security: SecurityConfigSchema.default(SecurityConfigSchema.parse({})),
|
|
2594
2608
|
// Resilience configuration
|
|
2595
|
-
resilience: ResilienceConfigSchema.default({}),
|
|
2609
|
+
resilience: ResilienceConfigSchema.default(ResilienceConfigSchema.parse({})),
|
|
2596
2610
|
// Observability configuration
|
|
2597
|
-
observability: ObservabilityConfigSchema.default(
|
|
2611
|
+
observability: ObservabilityConfigSchema.default(
|
|
2612
|
+
ObservabilityConfigSchema.parse({})
|
|
2613
|
+
),
|
|
2598
2614
|
// Middleware configuration
|
|
2599
|
-
middleware: MiddlewareConfigSchema.default({})
|
|
2615
|
+
middleware: MiddlewareConfigSchema.default(MiddlewareConfigSchema.parse({}))
|
|
2600
2616
|
});
|
|
2601
2617
|
function loadConfig() {
|
|
2602
2618
|
return PlatformConfigSchema.parse({
|