@digilogiclabs/platform-core 1.20.3 → 1.21.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-CO0OM4UT.d.ts → ConsoleEmail-BbdpINKx.d.ts} +4 -46
- package/dist/{ConsoleEmail-DDB28vyS.d.mts → ConsoleEmail-DpxhsG9C.d.mts} +4 -46
- package/dist/{IAI-D8wA_i8N.d.mts → IAI-CWd11dzL.d.mts} +1 -105
- package/dist/{IAI-D8wA_i8N.d.ts → IAI-CWd11dzL.d.ts} +1 -105
- package/dist/IEmail-CsOcaQcb.d.mts +45 -0
- package/dist/IEmail-CsOcaQcb.d.ts +45 -0
- package/dist/ILogger-DLDBZaH4.d.mts +105 -0
- package/dist/ILogger-DLDBZaH4.d.ts +105 -0
- package/dist/{agents-Cc65YUoW.d.ts → agents-C42rGwRl.d.ts} +2 -1
- package/dist/{agents-DGciJI27.d.mts → agents-CES-Aq1K.d.mts} +2 -1
- package/dist/agents.d.mts +3 -2
- package/dist/agents.d.ts +3 -2
- package/dist/auth.d.mts +238 -1
- package/dist/auth.d.ts +238 -1
- package/dist/auth.js +198 -0
- package/dist/auth.js.map +1 -1
- package/dist/auth.mjs +183 -0
- package/dist/auth.mjs.map +1 -1
- package/dist/circuit-breaker-CP6kw0P5.d.ts +351 -0
- package/dist/circuit-breaker-CsQivd57.d.mts +351 -0
- package/dist/email-templates.d.mts +106 -1
- package/dist/email-templates.d.ts +106 -1
- package/dist/email-templates.js +608 -0
- package/dist/email-templates.js.map +1 -1
- package/dist/email-templates.mjs +596 -0
- package/dist/email-templates.mjs.map +1 -1
- package/dist/index.d.mts +12 -355
- package/dist/index.d.ts +12 -355
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/dist/migrate.js +0 -0
- package/dist/testing.d.mts +5 -3
- package/dist/testing.d.ts +5 -3
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -16299,7 +16299,7 @@ function validateTlsSecurity(config) {
|
|
|
16299
16299
|
async function createPlatformAsync(config) {
|
|
16300
16300
|
const finalConfig = config ? deepMerge(loadConfig(), config) : loadConfig();
|
|
16301
16301
|
validateTlsSecurity(finalConfig);
|
|
16302
|
-
const [db, cache, storage, email, queue, tracing,
|
|
16302
|
+
const [db, cache, storage, email, queue, tracing, crypto3] = await Promise.all(
|
|
16303
16303
|
[
|
|
16304
16304
|
createDatabaseAdapter(finalConfig),
|
|
16305
16305
|
createCacheAdapter(finalConfig),
|
|
@@ -16325,7 +16325,7 @@ async function createPlatformAsync(config) {
|
|
|
16325
16325
|
tracing,
|
|
16326
16326
|
ai,
|
|
16327
16327
|
rag,
|
|
16328
|
-
|
|
16328
|
+
crypto3
|
|
16329
16329
|
);
|
|
16330
16330
|
}
|
|
16331
16331
|
function createPlatform(config) {
|
|
@@ -16346,7 +16346,7 @@ function createPlatform(config) {
|
|
|
16346
16346
|
const tracing = finalConfig.observability.tracing.provider === "memory" ? new MemoryTracing() : new NoopTracing();
|
|
16347
16347
|
const ai = finalConfig.ai.enabled ? new MemoryAI() : null;
|
|
16348
16348
|
const rag = finalConfig.rag.enabled ? new MemoryRAG() : null;
|
|
16349
|
-
const
|
|
16349
|
+
const crypto3 = finalConfig.crypto.enabled ? new MemoryCrypto() : null;
|
|
16350
16350
|
return createPlatformFromAdapters(
|
|
16351
16351
|
db,
|
|
16352
16352
|
cache,
|
|
@@ -16358,10 +16358,10 @@ function createPlatform(config) {
|
|
|
16358
16358
|
tracing,
|
|
16359
16359
|
ai,
|
|
16360
16360
|
rag,
|
|
16361
|
-
|
|
16361
|
+
crypto3
|
|
16362
16362
|
);
|
|
16363
16363
|
}
|
|
16364
|
-
function createPlatformFromAdapters(db, cache, storage, email, queue, logger, metrics, tracing, ai, rag,
|
|
16364
|
+
function createPlatformFromAdapters(db, cache, storage, email, queue, logger, metrics, tracing, ai, rag, crypto3) {
|
|
16365
16365
|
const platform = {
|
|
16366
16366
|
db,
|
|
16367
16367
|
cache,
|
|
@@ -16415,8 +16415,8 @@ function createPlatformFromAdapters(db, cache, storage, email, queue, logger, me
|
|
|
16415
16415
|
if (rag) {
|
|
16416
16416
|
platform.rag = rag;
|
|
16417
16417
|
}
|
|
16418
|
-
if (
|
|
16419
|
-
platform.crypto =
|
|
16418
|
+
if (crypto3) {
|
|
16419
|
+
platform.crypto = crypto3;
|
|
16420
16420
|
}
|
|
16421
16421
|
return platform;
|
|
16422
16422
|
}
|
|
@@ -19583,6 +19583,9 @@ function clearStoredBetaCode(config = {}) {
|
|
|
19583
19583
|
}
|
|
19584
19584
|
}
|
|
19585
19585
|
|
|
19586
|
+
// src/auth/tokens.ts
|
|
19587
|
+
import crypto2 from "crypto";
|
|
19588
|
+
|
|
19586
19589
|
// src/env.ts
|
|
19587
19590
|
function getRequiredEnv(key) {
|
|
19588
19591
|
const value = process.env[key];
|