@mastra/server 1.0.0-beta.24 → 1.0.0-beta.25
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/CHANGELOG.md +100 -0
- package/dist/{chunk-FALSDBPK.js → chunk-2CLS2PYJ.js} +88 -12
- package/dist/chunk-2CLS2PYJ.js.map +1 -0
- package/dist/{chunk-VZ5UM5FQ.js → chunk-2CYGIE3E.js} +50 -17
- package/dist/chunk-2CYGIE3E.js.map +1 -0
- package/dist/{chunk-U7IJEAF4.cjs → chunk-6RK355EK.cjs} +5 -5
- package/dist/{chunk-U7IJEAF4.cjs.map → chunk-6RK355EK.cjs.map} +1 -1
- package/dist/{chunk-GWLR6K3H.cjs → chunk-6YJSJADT.cjs} +26 -3
- package/dist/chunk-6YJSJADT.cjs.map +1 -0
- package/dist/chunk-7XPMKW4Y.cjs +447 -0
- package/dist/chunk-7XPMKW4Y.cjs.map +1 -0
- package/dist/{chunk-SSP3OO6Q.cjs → chunk-BWTZRFFE.cjs} +135 -86
- package/dist/chunk-BWTZRFFE.cjs.map +1 -0
- package/dist/{chunk-NETDNGUZ.js → chunk-DETP54TH.js} +3 -3
- package/dist/{chunk-NETDNGUZ.js.map → chunk-DETP54TH.js.map} +1 -1
- package/dist/{chunk-ILV5M6C7.cjs → chunk-DZ56VWXH.cjs} +6 -6
- package/dist/{chunk-ILV5M6C7.cjs.map → chunk-DZ56VWXH.cjs.map} +1 -1
- package/dist/{chunk-OZEEMIZT.js → chunk-GHSITOX6.js} +60 -11
- package/dist/chunk-GHSITOX6.js.map +1 -0
- package/dist/chunk-I27H7BEB.js +439 -0
- package/dist/chunk-I27H7BEB.js.map +1 -0
- package/dist/{chunk-BW3BLTCG.cjs → chunk-NUO7HPOV.cjs} +50 -17
- package/dist/chunk-NUO7HPOV.cjs.map +1 -0
- package/dist/{chunk-QKXZF7YS.js → chunk-THLCYTVI.js} +26 -3
- package/dist/chunk-THLCYTVI.js.map +1 -0
- package/dist/{chunk-63NFBEYY.cjs → chunk-YK63KHHB.cjs} +89 -11
- package/dist/chunk-YK63KHHB.cjs.map +1 -0
- package/dist/{chunk-DCEXXMOH.js → chunk-ZXD5P2BC.js} +3 -3
- package/dist/{chunk-DCEXXMOH.js.map → chunk-ZXD5P2BC.js.map} +1 -1
- package/dist/docs/README.md +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/SOURCE_MAP.json +1 -1
- package/dist/docs/server/02-reference.md +1 -1
- package/dist/server/handlers/a2a.cjs +9 -9
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +34 -26
- package/dist/server/handlers/agents.d.ts +44 -0
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/memory.cjs +25 -25
- package/dist/server/handlers/memory.d.ts +44 -12
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/processors.cjs +20 -0
- package/dist/server/handlers/processors.cjs.map +1 -0
- package/dist/server/handlers/processors.d.ts +181 -0
- package/dist/server/handlers/processors.d.ts.map +1 -0
- package/dist/server/handlers/processors.js +3 -0
- package/dist/server/handlers/processors.js.map +1 -0
- package/dist/server/handlers/workflows.cjs +24 -24
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +10 -10
- package/dist/server/handlers.js +5 -5
- package/dist/server/schemas/memory.d.ts +48 -12
- package/dist/server/schemas/memory.d.ts.map +1 -1
- package/dist/server/schemas/processors.d.ts +519 -0
- package/dist/server/schemas/processors.d.ts.map +1 -0
- package/dist/server/server-adapter/index.cjs +102 -91
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.js +17 -6
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/processors.d.ts +3 -0
- package/dist/server/server-adapter/routes/processors.d.ts.map +1 -0
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-63NFBEYY.cjs.map +0 -1
- package/dist/chunk-BW3BLTCG.cjs.map +0 -1
- package/dist/chunk-FALSDBPK.js.map +0 -1
- package/dist/chunk-GWLR6K3H.cjs.map +0 -1
- package/dist/chunk-OZEEMIZT.js.map +0 -1
- package/dist/chunk-QKXZF7YS.js.map +0 -1
- package/dist/chunk-SSP3OO6Q.cjs.map +0 -1
- package/dist/chunk-VZ5UM5FQ.js.map +0 -1
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const processorIdPathParams: z.ZodObject<{
|
|
3
|
+
processorId: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
processorId: string;
|
|
6
|
+
}, {
|
|
7
|
+
processorId: string;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Schema for processor configuration (how it's attached to an agent)
|
|
11
|
+
*/
|
|
12
|
+
export declare const processorConfigurationSchema: z.ZodObject<{
|
|
13
|
+
agentId: z.ZodString;
|
|
14
|
+
agentName: z.ZodString;
|
|
15
|
+
type: z.ZodEnum<["input", "output"]>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: "output" | "input";
|
|
18
|
+
agentId: string;
|
|
19
|
+
agentName: string;
|
|
20
|
+
}, {
|
|
21
|
+
type: "output" | "input";
|
|
22
|
+
agentId: string;
|
|
23
|
+
agentName: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Schema for processor in list response
|
|
27
|
+
*/
|
|
28
|
+
export declare const serializedProcessorSchema: z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
name: z.ZodOptional<z.ZodString>;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
phases: z.ZodArray<z.ZodEnum<["input", "inputStep", "outputStream", "outputResult", "outputStep"]>, "many">;
|
|
33
|
+
agentIds: z.ZodArray<z.ZodString, "many">;
|
|
34
|
+
configurations: z.ZodArray<z.ZodObject<{
|
|
35
|
+
agentId: z.ZodString;
|
|
36
|
+
type: z.ZodEnum<["input", "output"]>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
type: "output" | "input";
|
|
39
|
+
agentId: string;
|
|
40
|
+
}, {
|
|
41
|
+
type: "output" | "input";
|
|
42
|
+
agentId: string;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
isWorkflow: z.ZodBoolean;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
id: string;
|
|
47
|
+
isWorkflow: boolean;
|
|
48
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
49
|
+
agentIds: string[];
|
|
50
|
+
configurations: {
|
|
51
|
+
type: "output" | "input";
|
|
52
|
+
agentId: string;
|
|
53
|
+
}[];
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
id: string;
|
|
58
|
+
isWorkflow: boolean;
|
|
59
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
60
|
+
agentIds: string[];
|
|
61
|
+
configurations: {
|
|
62
|
+
type: "output" | "input";
|
|
63
|
+
agentId: string;
|
|
64
|
+
}[];
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Schema for detailed processor response
|
|
70
|
+
*/
|
|
71
|
+
export declare const serializedProcessorDetailSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodOptional<z.ZodString>;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
phases: z.ZodArray<z.ZodEnum<["input", "inputStep", "outputStream", "outputResult", "outputStep"]>, "many">;
|
|
76
|
+
configurations: z.ZodArray<z.ZodObject<{
|
|
77
|
+
agentId: z.ZodString;
|
|
78
|
+
agentName: z.ZodString;
|
|
79
|
+
type: z.ZodEnum<["input", "output"]>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
type: "output" | "input";
|
|
82
|
+
agentId: string;
|
|
83
|
+
agentName: string;
|
|
84
|
+
}, {
|
|
85
|
+
type: "output" | "input";
|
|
86
|
+
agentId: string;
|
|
87
|
+
agentName: string;
|
|
88
|
+
}>, "many">;
|
|
89
|
+
isWorkflow: z.ZodBoolean;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
id: string;
|
|
92
|
+
isWorkflow: boolean;
|
|
93
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
94
|
+
configurations: {
|
|
95
|
+
type: "output" | "input";
|
|
96
|
+
agentId: string;
|
|
97
|
+
agentName: string;
|
|
98
|
+
}[];
|
|
99
|
+
name?: string | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
isWorkflow: boolean;
|
|
104
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
105
|
+
configurations: {
|
|
106
|
+
type: "output" | "input";
|
|
107
|
+
agentId: string;
|
|
108
|
+
agentName: string;
|
|
109
|
+
}[];
|
|
110
|
+
name?: string | undefined;
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
/**
|
|
114
|
+
* Schema for list processors endpoint response
|
|
115
|
+
*/
|
|
116
|
+
export declare const listProcessorsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
name: z.ZodOptional<z.ZodString>;
|
|
119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
120
|
+
phases: z.ZodArray<z.ZodEnum<["input", "inputStep", "outputStream", "outputResult", "outputStep"]>, "many">;
|
|
121
|
+
agentIds: z.ZodArray<z.ZodString, "many">;
|
|
122
|
+
configurations: z.ZodArray<z.ZodObject<{
|
|
123
|
+
agentId: z.ZodString;
|
|
124
|
+
type: z.ZodEnum<["input", "output"]>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
type: "output" | "input";
|
|
127
|
+
agentId: string;
|
|
128
|
+
}, {
|
|
129
|
+
type: "output" | "input";
|
|
130
|
+
agentId: string;
|
|
131
|
+
}>, "many">;
|
|
132
|
+
isWorkflow: z.ZodBoolean;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
id: string;
|
|
135
|
+
isWorkflow: boolean;
|
|
136
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
137
|
+
agentIds: string[];
|
|
138
|
+
configurations: {
|
|
139
|
+
type: "output" | "input";
|
|
140
|
+
agentId: string;
|
|
141
|
+
}[];
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
id: string;
|
|
146
|
+
isWorkflow: boolean;
|
|
147
|
+
phases: ("input" | "inputStep" | "outputStream" | "outputResult" | "outputStep")[];
|
|
148
|
+
agentIds: string[];
|
|
149
|
+
configurations: {
|
|
150
|
+
type: "output" | "input";
|
|
151
|
+
agentId: string;
|
|
152
|
+
}[];
|
|
153
|
+
name?: string | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
}>>;
|
|
156
|
+
/**
|
|
157
|
+
* Body schema for executing a processor
|
|
158
|
+
*/
|
|
159
|
+
export declare const executeProcessorBodySchema: z.ZodObject<{
|
|
160
|
+
phase: z.ZodEnum<["input", "inputStep", "outputStream", "outputResult", "outputStep"]>;
|
|
161
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
164
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
165
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
166
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
167
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
168
|
+
content: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
170
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
171
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
172
|
+
content: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
174
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
175
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
176
|
+
content: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
178
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
181
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
182
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
183
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
184
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
185
|
+
content: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
187
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
188
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
189
|
+
content: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
191
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
192
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
193
|
+
content: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
195
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
198
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
199
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
200
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
201
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
202
|
+
content: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
204
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
205
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
206
|
+
content: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
208
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
209
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
210
|
+
content: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
212
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
213
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
messages: z.objectOutputType<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
219
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
220
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
221
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
222
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
223
|
+
content: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
225
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
226
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
227
|
+
content: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
229
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
230
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
231
|
+
content: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
233
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
234
|
+
phase: "input" | "inputStep" | "outputStream" | "outputResult" | "outputStep";
|
|
235
|
+
requestContext?: Record<string, any> | undefined;
|
|
236
|
+
agentId?: string | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
messages: z.objectInputType<{
|
|
239
|
+
id: z.ZodString;
|
|
240
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
241
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
242
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
243
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
244
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
245
|
+
content: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
247
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
248
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
249
|
+
content: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
251
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
252
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
253
|
+
content: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
255
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
256
|
+
phase: "input" | "inputStep" | "outputStream" | "outputResult" | "outputStep";
|
|
257
|
+
requestContext?: Record<string, any> | undefined;
|
|
258
|
+
agentId?: string | undefined;
|
|
259
|
+
}>;
|
|
260
|
+
/**
|
|
261
|
+
* Response schema for processor execution
|
|
262
|
+
*/
|
|
263
|
+
export declare const executeProcessorResponseSchema: z.ZodObject<{
|
|
264
|
+
success: z.ZodBoolean;
|
|
265
|
+
phase: z.ZodString;
|
|
266
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
269
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
270
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
271
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
272
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
273
|
+
content: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
275
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
276
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
277
|
+
content: z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
279
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
280
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
281
|
+
content: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
283
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
286
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
287
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
288
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
289
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
290
|
+
content: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
292
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
293
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
294
|
+
content: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
296
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
297
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
298
|
+
content: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
300
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
303
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
304
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
305
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
306
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
307
|
+
content: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
309
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
310
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
311
|
+
content: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
313
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
314
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
315
|
+
content: z.ZodOptional<z.ZodString>;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
317
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
318
|
+
messageList: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodString;
|
|
321
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
322
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
323
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
324
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
325
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
326
|
+
content: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
328
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
329
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
330
|
+
content: z.ZodOptional<z.ZodString>;
|
|
331
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
332
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
333
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
334
|
+
content: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
336
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
339
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
340
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
341
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
342
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
343
|
+
content: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
345
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
346
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
347
|
+
content: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
349
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
350
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
351
|
+
content: z.ZodOptional<z.ZodString>;
|
|
352
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
353
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
354
|
+
id: z.ZodString;
|
|
355
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
356
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
357
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
358
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
359
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
360
|
+
content: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
362
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
363
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
364
|
+
content: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
366
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
367
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
368
|
+
content: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
370
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
messages: z.objectOutputType<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
375
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
376
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
377
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
378
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
379
|
+
content: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
381
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
382
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
383
|
+
content: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
385
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
386
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
387
|
+
content: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
389
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
390
|
+
}, {
|
|
391
|
+
messages: z.objectInputType<{
|
|
392
|
+
id: z.ZodString;
|
|
393
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
394
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
395
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
396
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
397
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
398
|
+
content: z.ZodOptional<z.ZodString>;
|
|
399
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
400
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
401
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
402
|
+
content: z.ZodOptional<z.ZodString>;
|
|
403
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
404
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
405
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
406
|
+
content: z.ZodOptional<z.ZodString>;
|
|
407
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
408
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
409
|
+
}>>;
|
|
410
|
+
tripwire: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
triggered: z.ZodBoolean;
|
|
412
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
413
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
triggered: boolean;
|
|
416
|
+
metadata?: any;
|
|
417
|
+
reason?: string | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
triggered: boolean;
|
|
420
|
+
metadata?: any;
|
|
421
|
+
reason?: string | undefined;
|
|
422
|
+
}>>;
|
|
423
|
+
error: z.ZodOptional<z.ZodString>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
success: boolean;
|
|
426
|
+
phase: string;
|
|
427
|
+
error?: string | undefined;
|
|
428
|
+
tripwire?: {
|
|
429
|
+
triggered: boolean;
|
|
430
|
+
metadata?: any;
|
|
431
|
+
reason?: string | undefined;
|
|
432
|
+
} | undefined;
|
|
433
|
+
messages?: z.objectOutputType<{
|
|
434
|
+
id: z.ZodString;
|
|
435
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
436
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
437
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
438
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
439
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
440
|
+
content: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
442
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
443
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
444
|
+
content: z.ZodOptional<z.ZodString>;
|
|
445
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
446
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
447
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
448
|
+
content: z.ZodOptional<z.ZodString>;
|
|
449
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
450
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
451
|
+
messageList?: {
|
|
452
|
+
messages: z.objectOutputType<{
|
|
453
|
+
id: z.ZodString;
|
|
454
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
455
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
456
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
457
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
458
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
459
|
+
content: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
461
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
462
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
463
|
+
content: z.ZodOptional<z.ZodString>;
|
|
464
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
465
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
466
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
467
|
+
content: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
469
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
470
|
+
} | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
success: boolean;
|
|
473
|
+
phase: string;
|
|
474
|
+
error?: string | undefined;
|
|
475
|
+
tripwire?: {
|
|
476
|
+
triggered: boolean;
|
|
477
|
+
metadata?: any;
|
|
478
|
+
reason?: string | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
messages?: z.objectInputType<{
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
483
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
484
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
485
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
486
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
487
|
+
content: z.ZodOptional<z.ZodString>;
|
|
488
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
489
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
490
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
491
|
+
content: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
493
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
494
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
495
|
+
content: z.ZodOptional<z.ZodString>;
|
|
496
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
497
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
498
|
+
messageList?: {
|
|
499
|
+
messages: z.objectInputType<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
|
|
502
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
503
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
504
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
505
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
506
|
+
content: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
508
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
509
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
510
|
+
content: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
512
|
+
format: z.ZodOptional<z.ZodLiteral<2>>;
|
|
513
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
514
|
+
content: z.ZodOptional<z.ZodString>;
|
|
515
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodString]>;
|
|
516
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
517
|
+
} | undefined;
|
|
518
|
+
}>;
|
|
519
|
+
//# sourceMappingURL=processors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processors.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/processors.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAUH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkD,CAAC;AAyB5F;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AAWH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzC,CAAC"}
|