@llmops/core 0.2.0 → 0.2.1-beta.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/dist/{bun-sqlite-dialect-BxlwYxpt.cjs → bun-sqlite-dialect-BGVtWUJq.cjs} +1 -1
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/{db-BdclKAD3.cjs → db-BHO_R4JC.cjs} +32 -32
- package/dist/{db-BCHs_i6m.mjs → db-BbGik_bQ.mjs} +30 -30
- package/dist/{index-CJI8-6PV.d.mts → index-5GfBoyiq.d.mts} +35 -35
- package/dist/index.cjs +20 -4
- package/dist/index.d.cts +227 -223
- package/dist/index.d.mts +491 -487
- package/dist/index.mjs +20 -4
- package/dist/{node-sqlite-dialect-DjW-cdIu.cjs → node-sqlite-dialect-3Zf-dlQA.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-
|
|
1
|
+
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-5GfBoyiq.mjs";
|
|
2
2
|
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as variantsSchema, S as variantVersionsSchema, _ as environmentsSchema, a as matchType, b as schemas, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "../db-
|
|
1
|
+
import { C as variantsSchema, S as variantVersionsSchema, _ as environmentsSchema, a as matchType, b as schemas, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "../db-BbGik_bQ.mjs";
|
|
2
2
|
|
|
3
3
|
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -9820,7 +9820,7 @@ function initializeContext(params) {
|
|
|
9820
9820
|
external: params?.external ?? void 0
|
|
9821
9821
|
};
|
|
9822
9822
|
}
|
|
9823
|
-
function process(schema, ctx, _params = {
|
|
9823
|
+
function process$1(schema, ctx, _params = {
|
|
9824
9824
|
path: [],
|
|
9825
9825
|
schemaPath: []
|
|
9826
9826
|
}) {
|
|
@@ -9857,7 +9857,7 @@ function process(schema, ctx, _params = {
|
|
|
9857
9857
|
const parent = schema._zod.parent;
|
|
9858
9858
|
if (parent) {
|
|
9859
9859
|
if (!result.ref) result.ref = parent;
|
|
9860
|
-
process(parent, ctx, params);
|
|
9860
|
+
process$1(parent, ctx, params);
|
|
9861
9861
|
ctx.seen.get(parent).isParent = true;
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
@@ -10069,7 +10069,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
10069
10069
|
...params,
|
|
10070
10070
|
processors
|
|
10071
10071
|
});
|
|
10072
|
-
process(schema, ctx);
|
|
10072
|
+
process$1(schema, ctx);
|
|
10073
10073
|
extractDefs(ctx, schema);
|
|
10074
10074
|
return finalize(ctx, schema);
|
|
10075
10075
|
};
|
|
@@ -10081,7 +10081,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
10081
10081
|
io,
|
|
10082
10082
|
processors
|
|
10083
10083
|
});
|
|
10084
|
-
process(schema, ctx);
|
|
10084
|
+
process$1(schema, ctx);
|
|
10085
10085
|
extractDefs(ctx, schema);
|
|
10086
10086
|
return finalize(ctx, schema);
|
|
10087
10087
|
};
|
|
@@ -10253,7 +10253,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
10253
10253
|
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
10254
10254
|
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
10255
10255
|
json$1.type = "array";
|
|
10256
|
-
json$1.items = process(def.element, ctx, {
|
|
10256
|
+
json$1.items = process$1(def.element, ctx, {
|
|
10257
10257
|
...params,
|
|
10258
10258
|
path: [...params.path, "items"]
|
|
10259
10259
|
});
|
|
@@ -10264,7 +10264,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10264
10264
|
json$1.type = "object";
|
|
10265
10265
|
json$1.properties = {};
|
|
10266
10266
|
const shape = def.shape;
|
|
10267
|
-
for (const key in shape) json$1.properties[key] = process(shape[key], ctx, {
|
|
10267
|
+
for (const key in shape) json$1.properties[key] = process$1(shape[key], ctx, {
|
|
10268
10268
|
...params,
|
|
10269
10269
|
path: [
|
|
10270
10270
|
...params.path,
|
|
@@ -10282,7 +10282,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10282
10282
|
if (def.catchall?._zod.def.type === "never") json$1.additionalProperties = false;
|
|
10283
10283
|
else if (!def.catchall) {
|
|
10284
10284
|
if (ctx.io === "output") json$1.additionalProperties = false;
|
|
10285
|
-
} else if (def.catchall) json$1.additionalProperties = process(def.catchall, ctx, {
|
|
10285
|
+
} else if (def.catchall) json$1.additionalProperties = process$1(def.catchall, ctx, {
|
|
10286
10286
|
...params,
|
|
10287
10287
|
path: [...params.path, "additionalProperties"]
|
|
10288
10288
|
});
|
|
@@ -10290,7 +10290,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10290
10290
|
const unionProcessor = (schema, ctx, json$1, params) => {
|
|
10291
10291
|
const def = schema._zod.def;
|
|
10292
10292
|
const isExclusive = def.inclusive === false;
|
|
10293
|
-
const options = def.options.map((x, i) => process(x, ctx, {
|
|
10293
|
+
const options = def.options.map((x, i) => process$1(x, ctx, {
|
|
10294
10294
|
...params,
|
|
10295
10295
|
path: [
|
|
10296
10296
|
...params.path,
|
|
@@ -10303,7 +10303,7 @@ const unionProcessor = (schema, ctx, json$1, params) => {
|
|
|
10303
10303
|
};
|
|
10304
10304
|
const intersectionProcessor = (schema, ctx, json$1, params) => {
|
|
10305
10305
|
const def = schema._zod.def;
|
|
10306
|
-
const a = process(def.left, ctx, {
|
|
10306
|
+
const a = process$1(def.left, ctx, {
|
|
10307
10307
|
...params,
|
|
10308
10308
|
path: [
|
|
10309
10309
|
...params.path,
|
|
@@ -10311,7 +10311,7 @@ const intersectionProcessor = (schema, ctx, json$1, params) => {
|
|
|
10311
10311
|
0
|
|
10312
10312
|
]
|
|
10313
10313
|
});
|
|
10314
|
-
const b = process(def.right, ctx, {
|
|
10314
|
+
const b = process$1(def.right, ctx, {
|
|
10315
10315
|
...params,
|
|
10316
10316
|
path: [
|
|
10317
10317
|
...params.path,
|
|
@@ -10328,7 +10328,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
10328
10328
|
json$1.type = "array";
|
|
10329
10329
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
10330
10330
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
10331
|
-
const prefixItems = def.items.map((x, i) => process(x, ctx, {
|
|
10331
|
+
const prefixItems = def.items.map((x, i) => process$1(x, ctx, {
|
|
10332
10332
|
...params,
|
|
10333
10333
|
path: [
|
|
10334
10334
|
...params.path,
|
|
@@ -10336,7 +10336,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
10336
10336
|
i
|
|
10337
10337
|
]
|
|
10338
10338
|
}));
|
|
10339
|
-
const rest = def.rest ? process(def.rest, ctx, {
|
|
10339
|
+
const rest = def.rest ? process$1(def.rest, ctx, {
|
|
10340
10340
|
...params,
|
|
10341
10341
|
path: [
|
|
10342
10342
|
...params.path,
|
|
@@ -10367,7 +10367,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10367
10367
|
const keyType = def.keyType;
|
|
10368
10368
|
const patterns = keyType._zod.bag?.patterns;
|
|
10369
10369
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
10370
|
-
const valueSchema = process(def.valueType, ctx, {
|
|
10370
|
+
const valueSchema = process$1(def.valueType, ctx, {
|
|
10371
10371
|
...params,
|
|
10372
10372
|
path: [
|
|
10373
10373
|
...params.path,
|
|
@@ -10378,11 +10378,11 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10378
10378
|
json$1.patternProperties = {};
|
|
10379
10379
|
for (const pattern of patterns) json$1.patternProperties[pattern.source] = valueSchema;
|
|
10380
10380
|
} else {
|
|
10381
|
-
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json$1.propertyNames = process(def.keyType, ctx, {
|
|
10381
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json$1.propertyNames = process$1(def.keyType, ctx, {
|
|
10382
10382
|
...params,
|
|
10383
10383
|
path: [...params.path, "propertyNames"]
|
|
10384
10384
|
});
|
|
10385
|
-
json$1.additionalProperties = process(def.valueType, ctx, {
|
|
10385
|
+
json$1.additionalProperties = process$1(def.valueType, ctx, {
|
|
10386
10386
|
...params,
|
|
10387
10387
|
path: [...params.path, "additionalProperties"]
|
|
10388
10388
|
});
|
|
@@ -10395,7 +10395,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10395
10395
|
};
|
|
10396
10396
|
const nullableProcessor = (schema, ctx, json$1, params) => {
|
|
10397
10397
|
const def = schema._zod.def;
|
|
10398
|
-
const inner = process(def.innerType, ctx, params);
|
|
10398
|
+
const inner = process$1(def.innerType, ctx, params);
|
|
10399
10399
|
const seen = ctx.seen.get(schema);
|
|
10400
10400
|
if (ctx.target === "openapi-3.0") {
|
|
10401
10401
|
seen.ref = def.innerType;
|
|
@@ -10404,27 +10404,27 @@ const nullableProcessor = (schema, ctx, json$1, params) => {
|
|
|
10404
10404
|
};
|
|
10405
10405
|
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
10406
10406
|
const def = schema._zod.def;
|
|
10407
|
-
process(def.innerType, ctx, params);
|
|
10407
|
+
process$1(def.innerType, ctx, params);
|
|
10408
10408
|
const seen = ctx.seen.get(schema);
|
|
10409
10409
|
seen.ref = def.innerType;
|
|
10410
10410
|
};
|
|
10411
10411
|
const defaultProcessor = (schema, ctx, json$1, params) => {
|
|
10412
10412
|
const def = schema._zod.def;
|
|
10413
|
-
process(def.innerType, ctx, params);
|
|
10413
|
+
process$1(def.innerType, ctx, params);
|
|
10414
10414
|
const seen = ctx.seen.get(schema);
|
|
10415
10415
|
seen.ref = def.innerType;
|
|
10416
10416
|
json$1.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
10417
10417
|
};
|
|
10418
10418
|
const prefaultProcessor = (schema, ctx, json$1, params) => {
|
|
10419
10419
|
const def = schema._zod.def;
|
|
10420
|
-
process(def.innerType, ctx, params);
|
|
10420
|
+
process$1(def.innerType, ctx, params);
|
|
10421
10421
|
const seen = ctx.seen.get(schema);
|
|
10422
10422
|
seen.ref = def.innerType;
|
|
10423
10423
|
if (ctx.io === "input") json$1._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
10424
10424
|
};
|
|
10425
10425
|
const catchProcessor = (schema, ctx, json$1, params) => {
|
|
10426
10426
|
const def = schema._zod.def;
|
|
10427
|
-
process(def.innerType, ctx, params);
|
|
10427
|
+
process$1(def.innerType, ctx, params);
|
|
10428
10428
|
const seen = ctx.seen.get(schema);
|
|
10429
10429
|
seen.ref = def.innerType;
|
|
10430
10430
|
let catchValue;
|
|
@@ -10438,32 +10438,32 @@ const catchProcessor = (schema, ctx, json$1, params) => {
|
|
|
10438
10438
|
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
10439
10439
|
const def = schema._zod.def;
|
|
10440
10440
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
10441
|
-
process(innerType, ctx, params);
|
|
10441
|
+
process$1(innerType, ctx, params);
|
|
10442
10442
|
const seen = ctx.seen.get(schema);
|
|
10443
10443
|
seen.ref = innerType;
|
|
10444
10444
|
};
|
|
10445
10445
|
const readonlyProcessor = (schema, ctx, json$1, params) => {
|
|
10446
10446
|
const def = schema._zod.def;
|
|
10447
|
-
process(def.innerType, ctx, params);
|
|
10447
|
+
process$1(def.innerType, ctx, params);
|
|
10448
10448
|
const seen = ctx.seen.get(schema);
|
|
10449
10449
|
seen.ref = def.innerType;
|
|
10450
10450
|
json$1.readOnly = true;
|
|
10451
10451
|
};
|
|
10452
10452
|
const promiseProcessor = (schema, ctx, _json, params) => {
|
|
10453
10453
|
const def = schema._zod.def;
|
|
10454
|
-
process(def.innerType, ctx, params);
|
|
10454
|
+
process$1(def.innerType, ctx, params);
|
|
10455
10455
|
const seen = ctx.seen.get(schema);
|
|
10456
10456
|
seen.ref = def.innerType;
|
|
10457
10457
|
};
|
|
10458
10458
|
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
10459
10459
|
const def = schema._zod.def;
|
|
10460
|
-
process(def.innerType, ctx, params);
|
|
10460
|
+
process$1(def.innerType, ctx, params);
|
|
10461
10461
|
const seen = ctx.seen.get(schema);
|
|
10462
10462
|
seen.ref = def.innerType;
|
|
10463
10463
|
};
|
|
10464
10464
|
const lazyProcessor = (schema, ctx, _json, params) => {
|
|
10465
10465
|
const innerType = schema._zod.innerType;
|
|
10466
|
-
process(innerType, ctx, params);
|
|
10466
|
+
process$1(innerType, ctx, params);
|
|
10467
10467
|
const seen = ctx.seen.get(schema);
|
|
10468
10468
|
seen.ref = innerType;
|
|
10469
10469
|
};
|
|
@@ -10518,7 +10518,7 @@ function toJSONSchema(input, params) {
|
|
|
10518
10518
|
const defs = {};
|
|
10519
10519
|
for (const entry of registry$1._idmap.entries()) {
|
|
10520
10520
|
const [_, schema] = entry;
|
|
10521
|
-
process(schema, ctx$1);
|
|
10521
|
+
process$1(schema, ctx$1);
|
|
10522
10522
|
}
|
|
10523
10523
|
const schemas$1 = {};
|
|
10524
10524
|
ctx$1.external = {
|
|
@@ -10538,7 +10538,7 @@ function toJSONSchema(input, params) {
|
|
|
10538
10538
|
...params,
|
|
10539
10539
|
processors: allProcessors
|
|
10540
10540
|
});
|
|
10541
|
-
process(input, ctx);
|
|
10541
|
+
process$1(input, ctx);
|
|
10542
10542
|
extractDefs(ctx, input);
|
|
10543
10543
|
return finalize(ctx, input);
|
|
10544
10544
|
}
|
|
@@ -10615,7 +10615,7 @@ var JSONSchemaGenerator = class {
|
|
|
10615
10615
|
path: [],
|
|
10616
10616
|
schemaPath: []
|
|
10617
10617
|
}) {
|
|
10618
|
-
return process(schema, this.ctx, _params);
|
|
10618
|
+
return process$1(schema, this.ctx, _params);
|
|
10619
10619
|
}
|
|
10620
10620
|
/**
|
|
10621
10621
|
* Emit the final JSON Schema after processing.
|
|
@@ -10899,7 +10899,7 @@ var core_exports = /* @__PURE__ */ __export({
|
|
|
10899
10899
|
parse: () => parse$1,
|
|
10900
10900
|
parseAsync: () => parseAsync$1,
|
|
10901
10901
|
prettifyError: () => prettifyError,
|
|
10902
|
-
process: () => process,
|
|
10902
|
+
process: () => process$1,
|
|
10903
10903
|
regexes: () => regexes_exports,
|
|
10904
10904
|
registry: () => registry,
|
|
10905
10905
|
safeDecode: () => safeDecode$1,
|
|
@@ -13423,7 +13423,7 @@ function parsePartialTableData(table, data) {
|
|
|
13423
13423
|
|
|
13424
13424
|
//#endregion
|
|
13425
13425
|
//#region src/utils/logger.ts
|
|
13426
|
-
const logger = (0, pino.default)();
|
|
13426
|
+
const logger = (0, pino.default)({ level: process.env.LOG_LEVEL || "info" });
|
|
13427
13427
|
|
|
13428
13428
|
//#endregion
|
|
13429
13429
|
//#region src/auth/get-auth-client-options.ts
|
|
@@ -13772,12 +13772,12 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13772
13772
|
case "sqlite":
|
|
13773
13773
|
if ("aggregate" in rawConnection && !("createSession" in rawConnection)) dialect = new kysely.SqliteDialect({ database: rawConnection });
|
|
13774
13774
|
else if ("fileControl" in rawConnection) {
|
|
13775
|
-
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-
|
|
13775
|
+
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-BGVtWUJq.cjs"));
|
|
13776
13776
|
dialect = new BunSqliteDialect({ database: rawConnection });
|
|
13777
13777
|
} else if ("createSession" in rawConnection && typeof window === "undefined") try {
|
|
13778
13778
|
const { DatabaseSync } = await import("node:sqlite");
|
|
13779
13779
|
if (rawConnection instanceof DatabaseSync) {
|
|
13780
|
-
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-
|
|
13780
|
+
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-3Zf-dlQA.cjs"));
|
|
13781
13781
|
dialect = new NodeSqliteDialect({ database: rawConnection });
|
|
13782
13782
|
}
|
|
13783
13783
|
} catch {}
|
|
@@ -9796,7 +9796,7 @@ function initializeContext(params) {
|
|
|
9796
9796
|
external: params?.external ?? void 0
|
|
9797
9797
|
};
|
|
9798
9798
|
}
|
|
9799
|
-
function process(schema, ctx, _params = {
|
|
9799
|
+
function process$1(schema, ctx, _params = {
|
|
9800
9800
|
path: [],
|
|
9801
9801
|
schemaPath: []
|
|
9802
9802
|
}) {
|
|
@@ -9833,7 +9833,7 @@ function process(schema, ctx, _params = {
|
|
|
9833
9833
|
const parent = schema._zod.parent;
|
|
9834
9834
|
if (parent) {
|
|
9835
9835
|
if (!result.ref) result.ref = parent;
|
|
9836
|
-
process(parent, ctx, params);
|
|
9836
|
+
process$1(parent, ctx, params);
|
|
9837
9837
|
ctx.seen.get(parent).isParent = true;
|
|
9838
9838
|
}
|
|
9839
9839
|
}
|
|
@@ -10045,7 +10045,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
10045
10045
|
...params,
|
|
10046
10046
|
processors
|
|
10047
10047
|
});
|
|
10048
|
-
process(schema, ctx);
|
|
10048
|
+
process$1(schema, ctx);
|
|
10049
10049
|
extractDefs(ctx, schema);
|
|
10050
10050
|
return finalize(ctx, schema);
|
|
10051
10051
|
};
|
|
@@ -10057,7 +10057,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
10057
10057
|
io,
|
|
10058
10058
|
processors
|
|
10059
10059
|
});
|
|
10060
|
-
process(schema, ctx);
|
|
10060
|
+
process$1(schema, ctx);
|
|
10061
10061
|
extractDefs(ctx, schema);
|
|
10062
10062
|
return finalize(ctx, schema);
|
|
10063
10063
|
};
|
|
@@ -10229,7 +10229,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
10229
10229
|
if (typeof minimum === "number") json$1.minItems = minimum;
|
|
10230
10230
|
if (typeof maximum === "number") json$1.maxItems = maximum;
|
|
10231
10231
|
json$1.type = "array";
|
|
10232
|
-
json$1.items = process(def.element, ctx, {
|
|
10232
|
+
json$1.items = process$1(def.element, ctx, {
|
|
10233
10233
|
...params,
|
|
10234
10234
|
path: [...params.path, "items"]
|
|
10235
10235
|
});
|
|
@@ -10240,7 +10240,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10240
10240
|
json$1.type = "object";
|
|
10241
10241
|
json$1.properties = {};
|
|
10242
10242
|
const shape = def.shape;
|
|
10243
|
-
for (const key in shape) json$1.properties[key] = process(shape[key], ctx, {
|
|
10243
|
+
for (const key in shape) json$1.properties[key] = process$1(shape[key], ctx, {
|
|
10244
10244
|
...params,
|
|
10245
10245
|
path: [
|
|
10246
10246
|
...params.path,
|
|
@@ -10258,7 +10258,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10258
10258
|
if (def.catchall?._zod.def.type === "never") json$1.additionalProperties = false;
|
|
10259
10259
|
else if (!def.catchall) {
|
|
10260
10260
|
if (ctx.io === "output") json$1.additionalProperties = false;
|
|
10261
|
-
} else if (def.catchall) json$1.additionalProperties = process(def.catchall, ctx, {
|
|
10261
|
+
} else if (def.catchall) json$1.additionalProperties = process$1(def.catchall, ctx, {
|
|
10262
10262
|
...params,
|
|
10263
10263
|
path: [...params.path, "additionalProperties"]
|
|
10264
10264
|
});
|
|
@@ -10266,7 +10266,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
|
|
|
10266
10266
|
const unionProcessor = (schema, ctx, json$1, params) => {
|
|
10267
10267
|
const def = schema._zod.def;
|
|
10268
10268
|
const isExclusive = def.inclusive === false;
|
|
10269
|
-
const options = def.options.map((x, i) => process(x, ctx, {
|
|
10269
|
+
const options = def.options.map((x, i) => process$1(x, ctx, {
|
|
10270
10270
|
...params,
|
|
10271
10271
|
path: [
|
|
10272
10272
|
...params.path,
|
|
@@ -10279,7 +10279,7 @@ const unionProcessor = (schema, ctx, json$1, params) => {
|
|
|
10279
10279
|
};
|
|
10280
10280
|
const intersectionProcessor = (schema, ctx, json$1, params) => {
|
|
10281
10281
|
const def = schema._zod.def;
|
|
10282
|
-
const a = process(def.left, ctx, {
|
|
10282
|
+
const a = process$1(def.left, ctx, {
|
|
10283
10283
|
...params,
|
|
10284
10284
|
path: [
|
|
10285
10285
|
...params.path,
|
|
@@ -10287,7 +10287,7 @@ const intersectionProcessor = (schema, ctx, json$1, params) => {
|
|
|
10287
10287
|
0
|
|
10288
10288
|
]
|
|
10289
10289
|
});
|
|
10290
|
-
const b = process(def.right, ctx, {
|
|
10290
|
+
const b = process$1(def.right, ctx, {
|
|
10291
10291
|
...params,
|
|
10292
10292
|
path: [
|
|
10293
10293
|
...params.path,
|
|
@@ -10304,7 +10304,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
10304
10304
|
json$1.type = "array";
|
|
10305
10305
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
10306
10306
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
10307
|
-
const prefixItems = def.items.map((x, i) => process(x, ctx, {
|
|
10307
|
+
const prefixItems = def.items.map((x, i) => process$1(x, ctx, {
|
|
10308
10308
|
...params,
|
|
10309
10309
|
path: [
|
|
10310
10310
|
...params.path,
|
|
@@ -10312,7 +10312,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
10312
10312
|
i
|
|
10313
10313
|
]
|
|
10314
10314
|
}));
|
|
10315
|
-
const rest = def.rest ? process(def.rest, ctx, {
|
|
10315
|
+
const rest = def.rest ? process$1(def.rest, ctx, {
|
|
10316
10316
|
...params,
|
|
10317
10317
|
path: [
|
|
10318
10318
|
...params.path,
|
|
@@ -10343,7 +10343,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10343
10343
|
const keyType = def.keyType;
|
|
10344
10344
|
const patterns = keyType._zod.bag?.patterns;
|
|
10345
10345
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
10346
|
-
const valueSchema = process(def.valueType, ctx, {
|
|
10346
|
+
const valueSchema = process$1(def.valueType, ctx, {
|
|
10347
10347
|
...params,
|
|
10348
10348
|
path: [
|
|
10349
10349
|
...params.path,
|
|
@@ -10354,11 +10354,11 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10354
10354
|
json$1.patternProperties = {};
|
|
10355
10355
|
for (const pattern of patterns) json$1.patternProperties[pattern.source] = valueSchema;
|
|
10356
10356
|
} else {
|
|
10357
|
-
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json$1.propertyNames = process(def.keyType, ctx, {
|
|
10357
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json$1.propertyNames = process$1(def.keyType, ctx, {
|
|
10358
10358
|
...params,
|
|
10359
10359
|
path: [...params.path, "propertyNames"]
|
|
10360
10360
|
});
|
|
10361
|
-
json$1.additionalProperties = process(def.valueType, ctx, {
|
|
10361
|
+
json$1.additionalProperties = process$1(def.valueType, ctx, {
|
|
10362
10362
|
...params,
|
|
10363
10363
|
path: [...params.path, "additionalProperties"]
|
|
10364
10364
|
});
|
|
@@ -10371,7 +10371,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
|
|
|
10371
10371
|
};
|
|
10372
10372
|
const nullableProcessor = (schema, ctx, json$1, params) => {
|
|
10373
10373
|
const def = schema._zod.def;
|
|
10374
|
-
const inner = process(def.innerType, ctx, params);
|
|
10374
|
+
const inner = process$1(def.innerType, ctx, params);
|
|
10375
10375
|
const seen = ctx.seen.get(schema);
|
|
10376
10376
|
if (ctx.target === "openapi-3.0") {
|
|
10377
10377
|
seen.ref = def.innerType;
|
|
@@ -10380,27 +10380,27 @@ const nullableProcessor = (schema, ctx, json$1, params) => {
|
|
|
10380
10380
|
};
|
|
10381
10381
|
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
10382
10382
|
const def = schema._zod.def;
|
|
10383
|
-
process(def.innerType, ctx, params);
|
|
10383
|
+
process$1(def.innerType, ctx, params);
|
|
10384
10384
|
const seen = ctx.seen.get(schema);
|
|
10385
10385
|
seen.ref = def.innerType;
|
|
10386
10386
|
};
|
|
10387
10387
|
const defaultProcessor = (schema, ctx, json$1, params) => {
|
|
10388
10388
|
const def = schema._zod.def;
|
|
10389
|
-
process(def.innerType, ctx, params);
|
|
10389
|
+
process$1(def.innerType, ctx, params);
|
|
10390
10390
|
const seen = ctx.seen.get(schema);
|
|
10391
10391
|
seen.ref = def.innerType;
|
|
10392
10392
|
json$1.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
10393
10393
|
};
|
|
10394
10394
|
const prefaultProcessor = (schema, ctx, json$1, params) => {
|
|
10395
10395
|
const def = schema._zod.def;
|
|
10396
|
-
process(def.innerType, ctx, params);
|
|
10396
|
+
process$1(def.innerType, ctx, params);
|
|
10397
10397
|
const seen = ctx.seen.get(schema);
|
|
10398
10398
|
seen.ref = def.innerType;
|
|
10399
10399
|
if (ctx.io === "input") json$1._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
10400
10400
|
};
|
|
10401
10401
|
const catchProcessor = (schema, ctx, json$1, params) => {
|
|
10402
10402
|
const def = schema._zod.def;
|
|
10403
|
-
process(def.innerType, ctx, params);
|
|
10403
|
+
process$1(def.innerType, ctx, params);
|
|
10404
10404
|
const seen = ctx.seen.get(schema);
|
|
10405
10405
|
seen.ref = def.innerType;
|
|
10406
10406
|
let catchValue;
|
|
@@ -10414,32 +10414,32 @@ const catchProcessor = (schema, ctx, json$1, params) => {
|
|
|
10414
10414
|
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
10415
10415
|
const def = schema._zod.def;
|
|
10416
10416
|
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
10417
|
-
process(innerType, ctx, params);
|
|
10417
|
+
process$1(innerType, ctx, params);
|
|
10418
10418
|
const seen = ctx.seen.get(schema);
|
|
10419
10419
|
seen.ref = innerType;
|
|
10420
10420
|
};
|
|
10421
10421
|
const readonlyProcessor = (schema, ctx, json$1, params) => {
|
|
10422
10422
|
const def = schema._zod.def;
|
|
10423
|
-
process(def.innerType, ctx, params);
|
|
10423
|
+
process$1(def.innerType, ctx, params);
|
|
10424
10424
|
const seen = ctx.seen.get(schema);
|
|
10425
10425
|
seen.ref = def.innerType;
|
|
10426
10426
|
json$1.readOnly = true;
|
|
10427
10427
|
};
|
|
10428
10428
|
const promiseProcessor = (schema, ctx, _json, params) => {
|
|
10429
10429
|
const def = schema._zod.def;
|
|
10430
|
-
process(def.innerType, ctx, params);
|
|
10430
|
+
process$1(def.innerType, ctx, params);
|
|
10431
10431
|
const seen = ctx.seen.get(schema);
|
|
10432
10432
|
seen.ref = def.innerType;
|
|
10433
10433
|
};
|
|
10434
10434
|
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
10435
10435
|
const def = schema._zod.def;
|
|
10436
|
-
process(def.innerType, ctx, params);
|
|
10436
|
+
process$1(def.innerType, ctx, params);
|
|
10437
10437
|
const seen = ctx.seen.get(schema);
|
|
10438
10438
|
seen.ref = def.innerType;
|
|
10439
10439
|
};
|
|
10440
10440
|
const lazyProcessor = (schema, ctx, _json, params) => {
|
|
10441
10441
|
const innerType = schema._zod.innerType;
|
|
10442
|
-
process(innerType, ctx, params);
|
|
10442
|
+
process$1(innerType, ctx, params);
|
|
10443
10443
|
const seen = ctx.seen.get(schema);
|
|
10444
10444
|
seen.ref = innerType;
|
|
10445
10445
|
};
|
|
@@ -10494,7 +10494,7 @@ function toJSONSchema(input, params) {
|
|
|
10494
10494
|
const defs = {};
|
|
10495
10495
|
for (const entry of registry$1._idmap.entries()) {
|
|
10496
10496
|
const [_, schema] = entry;
|
|
10497
|
-
process(schema, ctx$1);
|
|
10497
|
+
process$1(schema, ctx$1);
|
|
10498
10498
|
}
|
|
10499
10499
|
const schemas$1 = {};
|
|
10500
10500
|
ctx$1.external = {
|
|
@@ -10514,7 +10514,7 @@ function toJSONSchema(input, params) {
|
|
|
10514
10514
|
...params,
|
|
10515
10515
|
processors: allProcessors
|
|
10516
10516
|
});
|
|
10517
|
-
process(input, ctx);
|
|
10517
|
+
process$1(input, ctx);
|
|
10518
10518
|
extractDefs(ctx, input);
|
|
10519
10519
|
return finalize(ctx, input);
|
|
10520
10520
|
}
|
|
@@ -10591,7 +10591,7 @@ var JSONSchemaGenerator = class {
|
|
|
10591
10591
|
path: [],
|
|
10592
10592
|
schemaPath: []
|
|
10593
10593
|
}) {
|
|
10594
|
-
return process(schema, this.ctx, _params);
|
|
10594
|
+
return process$1(schema, this.ctx, _params);
|
|
10595
10595
|
}
|
|
10596
10596
|
/**
|
|
10597
10597
|
* Emit the final JSON Schema after processing.
|
|
@@ -10875,7 +10875,7 @@ var core_exports = /* @__PURE__ */ __export({
|
|
|
10875
10875
|
parse: () => parse$1,
|
|
10876
10876
|
parseAsync: () => parseAsync$1,
|
|
10877
10877
|
prettifyError: () => prettifyError,
|
|
10878
|
-
process: () => process,
|
|
10878
|
+
process: () => process$1,
|
|
10879
10879
|
regexes: () => regexes_exports,
|
|
10880
10880
|
registry: () => registry,
|
|
10881
10881
|
safeDecode: () => safeDecode$1,
|
|
@@ -13399,7 +13399,7 @@ function parsePartialTableData(table, data) {
|
|
|
13399
13399
|
|
|
13400
13400
|
//#endregion
|
|
13401
13401
|
//#region src/utils/logger.ts
|
|
13402
|
-
const logger = pino();
|
|
13402
|
+
const logger = pino({ level: process.env.LOG_LEVEL || "info" });
|
|
13403
13403
|
|
|
13404
13404
|
//#endregion
|
|
13405
13405
|
//#region src/auth/get-auth-client-options.ts
|