@mastra/server 0.10.3 → 0.10.4-alpha.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/_tsup-dts-rollup.d.cts +23 -2
- package/dist/_tsup-dts-rollup.d.ts +23 -2
- package/dist/{chunk-MMO2HDM6.cjs → chunk-2NY7AYR6.cjs} +13 -13
- package/dist/{chunk-LIVAK2DM.js → chunk-4E27IXKK.js} +35 -35
- package/dist/{chunk-B6AYBJUA.js → chunk-6GMFUWZI.js} +1 -1
- package/dist/{chunk-YWLUOY3D.cjs → chunk-7UOYXBSH.cjs} +35 -35
- package/dist/{chunk-KUNQFY2W.js → chunk-ALIRNI4O.js} +2 -2
- package/dist/{chunk-A3KDUGS7.cjs → chunk-D5ER2QU5.cjs} +5 -5
- package/dist/{chunk-7VOSGHNC.cjs → chunk-GLFMWRYT.cjs} +5 -5
- package/dist/{chunk-NEOOQUKW.cjs → chunk-IMBY5XUG.cjs} +36 -4
- package/dist/{chunk-YIOVBYZH.cjs → chunk-LVT55U2N.cjs} +7 -7
- package/dist/{chunk-DQLE3DVM.js → chunk-QLG2PFHE.js} +36 -4
- package/dist/{chunk-J3PKLB3A.js → chunk-Y3TOVSL7.js} +1 -1
- package/dist/{chunk-W7VCKPAD.js → chunk-ZEQYIG7R.js} +2 -2
- package/dist/server/handlers/agents.cjs +7 -7
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +11 -11
- package/dist/server/handlers/legacyWorkflows.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/tools.cjs +5 -5
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/workflows.cjs +12 -12
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +10 -10
- package/dist/server/handlers.js +5 -5
- package/package.json +7 -7
|
@@ -15,6 +15,7 @@ import { LegacyStep } from '@mastra/core/workflows/legacy';
|
|
|
15
15
|
import type { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
16
16
|
import { LegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
|
|
17
17
|
import type { LegacyWorkflowRuns } from '@mastra/core/storage';
|
|
18
|
+
import type { LogLevel } from '@mastra/core/logger';
|
|
18
19
|
import type { Mastra } from '@mastra/core/mastra';
|
|
19
20
|
import type { MastraMemory } from '@mastra/core/memory';
|
|
20
21
|
import { MastraMessageV1 } from '@mastra/core/memory';
|
|
@@ -273,9 +274,21 @@ export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, a
|
|
|
273
274
|
evals: EvalRow[];
|
|
274
275
|
}>;
|
|
275
276
|
|
|
276
|
-
export declare function getLogsByRunIdHandler({ mastra, runId, transportId, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId'>): Promise<
|
|
277
|
+
export declare function getLogsByRunIdHandler({ mastra, runId, transportId, params, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId' | 'params'>): Promise<{
|
|
278
|
+
logs: BaseLogMessage[];
|
|
279
|
+
total: number;
|
|
280
|
+
page: number;
|
|
281
|
+
perPage: number;
|
|
282
|
+
hasMore: boolean;
|
|
283
|
+
}>;
|
|
277
284
|
|
|
278
|
-
export declare function getLogsHandler({ mastra, transportId, }: Pick<LogsContext, 'mastra' | 'transportId'>): Promise<
|
|
285
|
+
export declare function getLogsHandler({ mastra, transportId, params, }: Pick<LogsContext, 'mastra' | 'transportId' | 'params'>): Promise<{
|
|
286
|
+
logs: BaseLogMessage[];
|
|
287
|
+
total: number;
|
|
288
|
+
page: number;
|
|
289
|
+
perPage: number;
|
|
290
|
+
hasMore: boolean;
|
|
291
|
+
}>;
|
|
279
292
|
|
|
280
293
|
export declare function getLogTransports({ mastra }: Pick<LogsContext, 'mastra'>): Promise<{
|
|
281
294
|
transports: string[];
|
|
@@ -519,6 +532,14 @@ declare type LogsContext = {
|
|
|
519
532
|
mastra: Mastra;
|
|
520
533
|
transportId?: string;
|
|
521
534
|
runId?: string;
|
|
535
|
+
params?: {
|
|
536
|
+
fromDate?: Date;
|
|
537
|
+
toDate?: Date;
|
|
538
|
+
logLevel?: LogLevel;
|
|
539
|
+
filters?: string | string[];
|
|
540
|
+
page?: number;
|
|
541
|
+
perPage?: number;
|
|
542
|
+
};
|
|
522
543
|
};
|
|
523
544
|
|
|
524
545
|
export declare namespace memory {
|
|
@@ -15,6 +15,7 @@ import { LegacyStep } from '@mastra/core/workflows/legacy';
|
|
|
15
15
|
import type { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
16
16
|
import { LegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
|
|
17
17
|
import type { LegacyWorkflowRuns } from '@mastra/core/storage';
|
|
18
|
+
import type { LogLevel } from '@mastra/core/logger';
|
|
18
19
|
import type { Mastra } from '@mastra/core/mastra';
|
|
19
20
|
import type { MastraMemory } from '@mastra/core/memory';
|
|
20
21
|
import { MastraMessageV1 } from '@mastra/core/memory';
|
|
@@ -273,9 +274,21 @@ export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, a
|
|
|
273
274
|
evals: EvalRow[];
|
|
274
275
|
}>;
|
|
275
276
|
|
|
276
|
-
export declare function getLogsByRunIdHandler({ mastra, runId, transportId, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId'>): Promise<
|
|
277
|
+
export declare function getLogsByRunIdHandler({ mastra, runId, transportId, params, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId' | 'params'>): Promise<{
|
|
278
|
+
logs: BaseLogMessage[];
|
|
279
|
+
total: number;
|
|
280
|
+
page: number;
|
|
281
|
+
perPage: number;
|
|
282
|
+
hasMore: boolean;
|
|
283
|
+
}>;
|
|
277
284
|
|
|
278
|
-
export declare function getLogsHandler({ mastra, transportId, }: Pick<LogsContext, 'mastra' | 'transportId'>): Promise<
|
|
285
|
+
export declare function getLogsHandler({ mastra, transportId, params, }: Pick<LogsContext, 'mastra' | 'transportId' | 'params'>): Promise<{
|
|
286
|
+
logs: BaseLogMessage[];
|
|
287
|
+
total: number;
|
|
288
|
+
page: number;
|
|
289
|
+
perPage: number;
|
|
290
|
+
hasMore: boolean;
|
|
291
|
+
}>;
|
|
279
292
|
|
|
280
293
|
export declare function getLogTransports({ mastra }: Pick<LogsContext, 'mastra'>): Promise<{
|
|
281
294
|
transports: string[];
|
|
@@ -519,6 +532,14 @@ declare type LogsContext = {
|
|
|
519
532
|
mastra: Mastra;
|
|
520
533
|
transportId?: string;
|
|
521
534
|
runId?: string;
|
|
535
|
+
params?: {
|
|
536
|
+
fromDate?: Date;
|
|
537
|
+
toDate?: Date;
|
|
538
|
+
logLevel?: LogLevel;
|
|
539
|
+
filters?: string | string[];
|
|
540
|
+
page?: number;
|
|
541
|
+
perPage?: number;
|
|
542
|
+
};
|
|
522
543
|
};
|
|
523
544
|
|
|
524
545
|
export declare namespace memory {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7UOYXBSH_cjs = require('./chunk-7UOYXBSH.cjs');
|
|
4
4
|
var chunk64U3UDTH_cjs = require('./chunk-64U3UDTH.cjs');
|
|
5
5
|
var chunkOCWPVYNI_cjs = require('./chunk-OCWPVYNI.cjs');
|
|
6
6
|
var chunk75ZPJI57_cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -33,16 +33,16 @@ async function getWorkflowsHandler({ mastra }) {
|
|
|
33
33
|
acc2[key2] = {
|
|
34
34
|
id: step.id,
|
|
35
35
|
description: step.description,
|
|
36
|
-
inputSchema: step.inputSchema ?
|
|
37
|
-
outputSchema: step.outputSchema ?
|
|
38
|
-
resumeSchema: step.resumeSchema ?
|
|
39
|
-
suspendSchema: step.suspendSchema ?
|
|
36
|
+
inputSchema: step.inputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.inputSchema)) : void 0,
|
|
37
|
+
outputSchema: step.outputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.outputSchema)) : void 0,
|
|
38
|
+
resumeSchema: step.resumeSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.resumeSchema)) : void 0,
|
|
39
|
+
suspendSchema: step.suspendSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.suspendSchema)) : void 0
|
|
40
40
|
};
|
|
41
41
|
return acc2;
|
|
42
42
|
}, {}),
|
|
43
43
|
stepGraph: workflow.serializedStepGraph,
|
|
44
|
-
inputSchema: workflow.inputSchema ?
|
|
45
|
-
outputSchema: workflow.outputSchema ?
|
|
44
|
+
inputSchema: workflow.inputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
45
|
+
outputSchema: workflow.outputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
46
46
|
};
|
|
47
47
|
return acc;
|
|
48
48
|
}, {});
|
|
@@ -65,18 +65,18 @@ async function getWorkflowByIdHandler({ mastra, workflowId }) {
|
|
|
65
65
|
acc[key] = {
|
|
66
66
|
id: step.id,
|
|
67
67
|
description: step.description,
|
|
68
|
-
inputSchema: step.inputSchema ?
|
|
69
|
-
outputSchema: step.outputSchema ?
|
|
70
|
-
resumeSchema: step.resumeSchema ?
|
|
71
|
-
suspendSchema: step.suspendSchema ?
|
|
68
|
+
inputSchema: step.inputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.inputSchema)) : void 0,
|
|
69
|
+
outputSchema: step.outputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.outputSchema)) : void 0,
|
|
70
|
+
resumeSchema: step.resumeSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.resumeSchema)) : void 0,
|
|
71
|
+
suspendSchema: step.suspendSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(step.suspendSchema)) : void 0
|
|
72
72
|
};
|
|
73
73
|
return acc;
|
|
74
74
|
}, {}),
|
|
75
75
|
name: workflow.name,
|
|
76
76
|
description: workflow.description,
|
|
77
77
|
stepGraph: workflow.serializedStepGraph,
|
|
78
|
-
inputSchema: workflow.inputSchema ?
|
|
79
|
-
outputSchema: workflow.outputSchema ?
|
|
78
|
+
inputSchema: workflow.inputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(workflow.inputSchema)) : void 0,
|
|
79
|
+
outputSchema: workflow.outputSchema ? chunk7UOYXBSH_cjs.stringify(chunk7UOYXBSH_cjs.esm_default(workflow.outputSchema)) : void 0
|
|
80
80
|
};
|
|
81
81
|
} catch (error) {
|
|
82
82
|
throw new chunkOCWPVYNI_cjs.HTTPException(500, { message: error?.message || "Error getting workflow" });
|
|
@@ -764,7 +764,7 @@ SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJS
|
|
|
764
764
|
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
765
765
|
var stringify = SuperJSON.stringify;
|
|
766
766
|
|
|
767
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
767
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
768
768
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
769
769
|
var defaultOptions = {
|
|
770
770
|
name: void 0,
|
|
@@ -797,7 +797,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
797
797
|
...options
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
800
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
801
801
|
var getRefs = (options) => {
|
|
802
802
|
const _options = getDefaultOptions(options);
|
|
803
803
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -817,7 +817,7 @@ var getRefs = (options) => {
|
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
|
|
820
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
820
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
821
821
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
822
822
|
if (!refs?.errorMessages)
|
|
823
823
|
return;
|
|
@@ -833,7 +833,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
833
833
|
addErrorMessage(res, key, errorMessage, refs);
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
836
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
837
837
|
function parseAnyDef() {
|
|
838
838
|
return {};
|
|
839
839
|
}
|
|
@@ -860,7 +860,7 @@ function parseArrayDef(def, refs) {
|
|
|
860
860
|
return res;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
863
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
864
864
|
function parseBigintDef(def, refs) {
|
|
865
865
|
const res = {
|
|
866
866
|
type: "integer",
|
|
@@ -906,24 +906,24 @@ function parseBigintDef(def, refs) {
|
|
|
906
906
|
return res;
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
909
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
910
910
|
function parseBooleanDef() {
|
|
911
911
|
return {
|
|
912
912
|
type: "boolean"
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
916
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
917
917
|
function parseBrandedDef(_def, refs) {
|
|
918
918
|
return parseDef(_def.type._def, refs);
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
921
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
922
922
|
var parseCatchDef = (def, refs) => {
|
|
923
923
|
return parseDef(def.innerType._def, refs);
|
|
924
924
|
};
|
|
925
925
|
|
|
926
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
926
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
927
927
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
928
928
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
929
929
|
if (Array.isArray(strategy)) {
|
|
@@ -982,7 +982,7 @@ var integerDateParser = (def, refs) => {
|
|
|
982
982
|
return res;
|
|
983
983
|
};
|
|
984
984
|
|
|
985
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
985
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
986
986
|
function parseDefaultDef(_def, refs) {
|
|
987
987
|
return {
|
|
988
988
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -990,12 +990,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
992
|
|
|
993
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
993
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
994
994
|
function parseEffectsDef(_def, refs) {
|
|
995
995
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : {};
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
998
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
999
999
|
function parseEnumDef(def) {
|
|
1000
1000
|
return {
|
|
1001
1001
|
type: "string",
|
|
@@ -1003,7 +1003,7 @@ function parseEnumDef(def) {
|
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1006
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
1007
1007
|
var isJsonSchema7AllOfType = (type) => {
|
|
1008
1008
|
if ("type" in type && type.type === "string")
|
|
1009
1009
|
return false;
|
|
@@ -1045,7 +1045,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
1045
1045
|
} : void 0;
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1048
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
1049
1049
|
function parseLiteralDef(def, refs) {
|
|
1050
1050
|
const parsedType = typeof def.value;
|
|
1051
1051
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -1065,7 +1065,7 @@ function parseLiteralDef(def, refs) {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1068
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
1069
1069
|
var emojiRegex = void 0;
|
|
1070
1070
|
var zodPatterns = {
|
|
1071
1071
|
/**
|
|
@@ -1377,7 +1377,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
1377
1377
|
return pattern;
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1380
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
1381
1381
|
function parseRecordDef(def, refs) {
|
|
1382
1382
|
if (refs.target === "openAi") {
|
|
1383
1383
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -1429,7 +1429,7 @@ function parseRecordDef(def, refs) {
|
|
|
1429
1429
|
return schema;
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1432
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
1433
1433
|
function parseMapDef(def, refs) {
|
|
1434
1434
|
if (refs.mapStrategy === "record") {
|
|
1435
1435
|
return parseRecordDef(def, refs);
|
|
@@ -1454,7 +1454,7 @@ function parseMapDef(def, refs) {
|
|
|
1454
1454
|
};
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1457
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
1458
1458
|
function parseNativeEnumDef(def) {
|
|
1459
1459
|
const object = def.values;
|
|
1460
1460
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -1468,14 +1468,14 @@ function parseNativeEnumDef(def) {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1471
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
1472
1472
|
function parseNeverDef() {
|
|
1473
1473
|
return {
|
|
1474
1474
|
not: {}
|
|
1475
1475
|
};
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1478
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
1479
1479
|
function parseNullDef(refs) {
|
|
1480
1480
|
return refs.target === "openApi3" ? {
|
|
1481
1481
|
enum: ["null"],
|
|
@@ -1485,7 +1485,7 @@ function parseNullDef(refs) {
|
|
|
1485
1485
|
};
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1488
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
1489
1489
|
var primitiveMappings = {
|
|
1490
1490
|
ZodString: "string",
|
|
1491
1491
|
ZodNumber: "number",
|
|
@@ -1553,7 +1553,7 @@ var asAnyOf = (def, refs) => {
|
|
|
1553
1553
|
return anyOf.length ? { anyOf } : void 0;
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1556
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
1557
1557
|
function parseNullableDef(def, refs) {
|
|
1558
1558
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
1559
1559
|
if (refs.target === "openApi3") {
|
|
@@ -1585,7 +1585,7 @@ function parseNullableDef(def, refs) {
|
|
|
1585
1585
|
return base && { anyOf: [base, { type: "null" }] };
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1588
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
1589
1589
|
function parseNumberDef(def, refs) {
|
|
1590
1590
|
const res = {
|
|
1591
1591
|
type: "number"
|
|
@@ -1702,7 +1702,7 @@ function safeIsOptional(schema) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1705
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
1706
1706
|
var parseOptionalDef = (def, refs) => {
|
|
1707
1707
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
1708
1708
|
return parseDef(def.innerType._def, refs);
|
|
@@ -1721,7 +1721,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
1721
1721
|
} : {};
|
|
1722
1722
|
};
|
|
1723
1723
|
|
|
1724
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1724
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
1725
1725
|
var parsePipelineDef = (def, refs) => {
|
|
1726
1726
|
if (refs.pipeStrategy === "input") {
|
|
1727
1727
|
return parseDef(def.in._def, refs);
|
|
@@ -1741,12 +1741,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
1741
1741
|
};
|
|
1742
1742
|
};
|
|
1743
1743
|
|
|
1744
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1744
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
1745
1745
|
function parsePromiseDef(def, refs) {
|
|
1746
1746
|
return parseDef(def.type._def, refs);
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1749
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
1750
1750
|
function parseSetDef(def, refs) {
|
|
1751
1751
|
const items = parseDef(def.valueType._def, {
|
|
1752
1752
|
...refs,
|
|
@@ -1766,7 +1766,7 @@ function parseSetDef(def, refs) {
|
|
|
1766
1766
|
return schema;
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1769
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
1770
1770
|
function parseTupleDef(def, refs) {
|
|
1771
1771
|
if (def.rest) {
|
|
1772
1772
|
return {
|
|
@@ -1794,24 +1794,24 @@ function parseTupleDef(def, refs) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
|
|
1797
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1797
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
1798
1798
|
function parseUndefinedDef() {
|
|
1799
1799
|
return {
|
|
1800
1800
|
not: {}
|
|
1801
1801
|
};
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1804
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
1805
1805
|
function parseUnknownDef() {
|
|
1806
1806
|
return {};
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1809
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
1810
1810
|
var parseReadonlyDef = (def, refs) => {
|
|
1811
1811
|
return parseDef(def.innerType._def, refs);
|
|
1812
1812
|
};
|
|
1813
1813
|
|
|
1814
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1814
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
1815
1815
|
var selectParser = (def, typeName, refs) => {
|
|
1816
1816
|
switch (typeName) {
|
|
1817
1817
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -1887,7 +1887,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
};
|
|
1889
1889
|
|
|
1890
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1890
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
1891
1891
|
function parseDef(def, refs, forceResolution = false) {
|
|
1892
1892
|
const seenItem = refs.seen.get(def);
|
|
1893
1893
|
if (refs.override) {
|
|
@@ -1951,7 +1951,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
1951
1951
|
return jsonSchema;
|
|
1952
1952
|
};
|
|
1953
1953
|
|
|
1954
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1954
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
1955
1955
|
var zodToJsonSchema = (schema, options) => {
|
|
1956
1956
|
const refs = getRefs(options);
|
|
1957
1957
|
const definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -1995,7 +1995,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
1995
1995
|
return combined;
|
|
1996
1996
|
};
|
|
1997
1997
|
|
|
1998
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.
|
|
1998
|
+
// ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.55/node_modules/zod-to-json-schema/dist/esm/index.js
|
|
1999
1999
|
var esm_default = zodToJsonSchema;
|
|
2000
2000
|
|
|
2001
2001
|
export { esm_default, stringify };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { stringify, esm_default } from './chunk-
|
|
1
|
+
import { stringify, esm_default } from './chunk-4E27IXKK.js';
|
|
2
2
|
import { validateBody } from './chunk-H5PTF3Y4.js';
|
|
3
3
|
import { handleError } from './chunk-M5ABIP7D.js';
|
|
4
4
|
import { HTTPException } from './chunk-NYN7KFXL.js';
|