@mastra/server 1.1.0-alpha.0 → 1.1.0-alpha.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/{chunk-S4SLHUJ7.cjs → chunk-4UNYZYBB.cjs} +4 -4
  3. package/dist/{chunk-S4SLHUJ7.cjs.map → chunk-4UNYZYBB.cjs.map} +1 -1
  4. package/dist/{chunk-RW66MHXI.js → chunk-5P2VGES5.js} +49 -23
  5. package/dist/chunk-5P2VGES5.js.map +1 -0
  6. package/dist/{chunk-EKFYZUPC.cjs → chunk-6DHJKQLP.cjs} +4 -4
  7. package/dist/{chunk-EKFYZUPC.cjs.map → chunk-6DHJKQLP.cjs.map} +1 -1
  8. package/dist/{chunk-3QUACCLU.js → chunk-7YCFHDWX.js} +3 -3
  9. package/dist/{chunk-3QUACCLU.js.map → chunk-7YCFHDWX.js.map} +1 -1
  10. package/dist/{chunk-JLFFAYTC.cjs → chunk-AO7LIZRK.cjs} +60 -34
  11. package/dist/chunk-AO7LIZRK.cjs.map +1 -0
  12. package/dist/{chunk-3OIJLD3O.js → chunk-BWINB344.js} +3 -3
  13. package/dist/{chunk-3OIJLD3O.js.map → chunk-BWINB344.js.map} +1 -1
  14. package/dist/{chunk-QXDNFBJQ.js → chunk-GDWZ2R7I.js} +4 -4
  15. package/dist/{chunk-QXDNFBJQ.js.map → chunk-GDWZ2R7I.js.map} +1 -1
  16. package/dist/{chunk-2HAVULC2.cjs → chunk-H4VFL22H.cjs} +6 -6
  17. package/dist/{chunk-2HAVULC2.cjs.map → chunk-H4VFL22H.cjs.map} +1 -1
  18. package/dist/{chunk-WHC6S3VY.cjs → chunk-I3CJUT6J.cjs} +4 -4
  19. package/dist/{chunk-WHC6S3VY.cjs.map → chunk-I3CJUT6J.cjs.map} +1 -1
  20. package/dist/{chunk-GUG6KRAJ.js → chunk-JUGGEWCR.js} +3 -3
  21. package/dist/{chunk-GUG6KRAJ.js.map → chunk-JUGGEWCR.js.map} +1 -1
  22. package/dist/{chunk-DD7LYNHB.js → chunk-KPHPNRVH.js} +117 -62
  23. package/dist/chunk-KPHPNRVH.js.map +1 -0
  24. package/dist/{chunk-TGDBGIDA.cjs → chunk-L6AKFVEX.cjs} +117 -62
  25. package/dist/chunk-L6AKFVEX.cjs.map +1 -0
  26. package/dist/{chunk-6KC345IN.cjs → chunk-QRPQWZZU.cjs} +41 -41
  27. package/dist/{chunk-6KC345IN.cjs.map → chunk-QRPQWZZU.cjs.map} +1 -1
  28. package/dist/{chunk-3AZY5AWI.js → chunk-QWOQET2T.js} +3 -3
  29. package/dist/{chunk-3AZY5AWI.js.map → chunk-QWOQET2T.js.map} +1 -1
  30. package/dist/{chunk-VNHOYZ56.cjs → chunk-VXPVROQJ.cjs} +5 -5
  31. package/dist/{chunk-VNHOYZ56.cjs.map → chunk-VXPVROQJ.cjs.map} +1 -1
  32. package/dist/{chunk-QOVLJFLX.cjs → chunk-WWVDNKEF.cjs} +6 -6
  33. package/dist/{chunk-QOVLJFLX.cjs.map → chunk-WWVDNKEF.cjs.map} +1 -1
  34. package/dist/{chunk-FQX5SQO7.js → chunk-XXBURIYX.js} +3 -3
  35. package/dist/{chunk-FQX5SQO7.js.map → chunk-XXBURIYX.js.map} +1 -1
  36. package/dist/{chunk-FCPLBTHB.js → chunk-ZFHZRI6C.js} +3 -3
  37. package/dist/{chunk-FCPLBTHB.js.map → chunk-ZFHZRI6C.js.map} +1 -1
  38. package/dist/docs/README.md +1 -1
  39. package/dist/docs/SKILL.md +1 -1
  40. package/dist/docs/SOURCE_MAP.json +1 -1
  41. package/dist/server/handlers/a2a.cjs +9 -9
  42. package/dist/server/handlers/a2a.js +1 -1
  43. package/dist/server/handlers/agent-versions.cjs +14 -14
  44. package/dist/server/handlers/agent-versions.d.ts +153 -175
  45. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  46. package/dist/server/handlers/agent-versions.js +1 -1
  47. package/dist/server/handlers/agents.cjs +31 -31
  48. package/dist/server/handlers/agents.d.ts +2 -2
  49. package/dist/server/handlers/agents.js +1 -1
  50. package/dist/server/handlers/scores.cjs +7 -7
  51. package/dist/server/handlers/scores.js +1 -1
  52. package/dist/server/handlers/stored-agents.cjs +6 -6
  53. package/dist/server/handlers/stored-agents.d.ts +32 -23
  54. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  55. package/dist/server/handlers/stored-agents.js +1 -1
  56. package/dist/server/handlers/tools.cjs +6 -6
  57. package/dist/server/handlers/tools.js +1 -1
  58. package/dist/server/handlers/voice.cjs +8 -8
  59. package/dist/server/handlers/voice.js +1 -1
  60. package/dist/server/handlers/workspace.cjs +19 -19
  61. package/dist/server/handlers/workspace.d.ts +8 -8
  62. package/dist/server/handlers/workspace.js +1 -1
  63. package/dist/server/handlers.cjs +10 -10
  64. package/dist/server/handlers.js +5 -5
  65. package/dist/server/schemas/agent-versions.d.ts +564 -1137
  66. package/dist/server/schemas/agent-versions.d.ts.map +1 -1
  67. package/dist/server/schemas/stored-agents.d.ts +234 -82
  68. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  69. package/dist/server/schemas/workspace.d.ts +34 -34
  70. package/dist/server/server-adapter/index.cjs +67 -67
  71. package/dist/server/server-adapter/index.js +8 -8
  72. package/package.json +4 -4
  73. package/dist/chunk-DD7LYNHB.js.map +0 -1
  74. package/dist/chunk-JLFFAYTC.cjs.map +0 -1
  75. package/dist/chunk-RW66MHXI.js.map +0 -1
  76. package/dist/chunk-TGDBGIDA.cjs.map +0 -1
@@ -26,7 +26,7 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
26
26
  field?: "createdAt" | "updatedAt" | undefined;
27
27
  direction?: "ASC" | "DESC" | undefined;
28
28
  }>>;
29
- ownerId: z.ZodOptional<z.ZodString>;
29
+ authorId: z.ZodOptional<z.ZodString>;
30
30
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  page: number;
@@ -36,7 +36,7 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
36
36
  field?: "createdAt" | "updatedAt" | undefined;
37
37
  direction?: "ASC" | "DESC" | undefined;
38
38
  } | undefined;
39
- ownerId?: string | undefined;
39
+ authorId?: string | undefined;
40
40
  }, {
41
41
  page?: number | undefined;
42
42
  perPage?: number | undefined;
@@ -45,7 +45,7 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
45
45
  field?: "createdAt" | "updatedAt" | undefined;
46
46
  direction?: "ASC" | "DESC" | undefined;
47
47
  } | undefined;
48
- ownerId?: string | undefined;
48
+ authorId?: string | undefined;
49
49
  }> | z.ZodObject<{
50
50
  perPage: z.ZodOptional<z.ZodNumber>;
51
51
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -60,7 +60,7 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
60
60
  field?: "createdAt" | "updatedAt" | undefined;
61
61
  direction?: "ASC" | "DESC" | undefined;
62
62
  }>>;
63
- ownerId: z.ZodOptional<z.ZodString>;
63
+ authorId: z.ZodOptional<z.ZodString>;
64
64
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  page: number;
@@ -70,7 +70,7 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
70
70
  field?: "createdAt" | "updatedAt" | undefined;
71
71
  direction?: "ASC" | "DESC" | undefined;
72
72
  } | undefined;
73
- ownerId?: string | undefined;
73
+ authorId?: string | undefined;
74
74
  }, {
75
75
  page?: number | undefined;
76
76
  perPage?: number | undefined;
@@ -79,12 +79,43 @@ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
79
79
  field?: "createdAt" | "updatedAt" | undefined;
80
80
  direction?: "ASC" | "DESC" | undefined;
81
81
  } | undefined;
82
- ownerId?: string | undefined;
82
+ authorId?: string | undefined;
83
83
  }>;
84
84
  /**
85
- * POST /stored/agents - Create stored agent body
85
+ * Scorer config schema with optional sampling
86
86
  */
87
- export declare const createStoredAgentBodySchema: z.ZodObject<{
87
+ declare const scorerConfigSchema: z.ZodObject<{
88
+ sampling: z.ZodOptional<z.ZodObject<{
89
+ type: z.ZodEnum<["ratio", "count"]>;
90
+ rate: z.ZodOptional<z.ZodNumber>;
91
+ count: z.ZodOptional<z.ZodNumber>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "count" | "ratio";
94
+ count?: number | undefined;
95
+ rate?: number | undefined;
96
+ }, {
97
+ type: "count" | "ratio";
98
+ count?: number | undefined;
99
+ rate?: number | undefined;
100
+ }>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ sampling?: {
103
+ type: "count" | "ratio";
104
+ count?: number | undefined;
105
+ rate?: number | undefined;
106
+ } | undefined;
107
+ }, {
108
+ sampling?: {
109
+ type: "count" | "ratio";
110
+ count?: number | undefined;
111
+ rate?: number | undefined;
112
+ } | undefined;
113
+ }>;
114
+ /**
115
+ * Agent snapshot config fields (name, description, instructions, model, tools, etc.)
116
+ * These live in version snapshots, not on the thin agent record.
117
+ */
118
+ declare const snapshotConfigSchema: z.ZodObject<{
88
119
  name: z.ZodString;
89
120
  description: z.ZodOptional<z.ZodString>;
90
121
  instructions: z.ZodString;
@@ -96,7 +127,7 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
96
127
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
128
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
98
129
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
99
- memory: z.ZodOptional<z.ZodString>;
130
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
100
131
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
101
132
  sampling: z.ZodOptional<z.ZodObject<{
102
133
  type: z.ZodEnum<["ratio", "count"]>;
@@ -124,10 +155,95 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
124
155
  rate?: number | undefined;
125
156
  } | undefined;
126
157
  }>>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ name: string;
160
+ model: Record<string, unknown>;
161
+ instructions: string;
162
+ description?: string | undefined;
163
+ tools?: string[] | undefined;
164
+ agents?: string[] | undefined;
165
+ workflows?: string[] | undefined;
166
+ inputProcessors?: Record<string, unknown>[] | undefined;
167
+ outputProcessors?: Record<string, unknown>[] | undefined;
168
+ defaultOptions?: Record<string, unknown> | undefined;
169
+ memory?: Record<string, unknown> | undefined;
170
+ scorers?: Record<string, {
171
+ sampling?: {
172
+ type: "count" | "ratio";
173
+ count?: number | undefined;
174
+ rate?: number | undefined;
175
+ } | undefined;
176
+ }> | undefined;
177
+ integrationTools?: string[] | undefined;
178
+ }, {
179
+ name: string;
180
+ model: Record<string, unknown>;
181
+ instructions: string;
182
+ description?: string | undefined;
183
+ tools?: string[] | undefined;
184
+ agents?: string[] | undefined;
185
+ workflows?: string[] | undefined;
186
+ inputProcessors?: Record<string, unknown>[] | undefined;
187
+ outputProcessors?: Record<string, unknown>[] | undefined;
188
+ defaultOptions?: Record<string, unknown> | undefined;
189
+ memory?: Record<string, unknown> | undefined;
190
+ scorers?: Record<string, {
191
+ sampling?: {
192
+ type: "count" | "ratio";
193
+ count?: number | undefined;
194
+ rate?: number | undefined;
195
+ } | undefined;
196
+ }> | undefined;
197
+ integrationTools?: string[] | undefined;
198
+ }>;
199
+ /**
200
+ * POST /stored/agents - Create stored agent body
201
+ * Flat union of agent-record fields + config fields
202
+ */
203
+ export declare const createStoredAgentBodySchema: z.ZodObject<{
204
+ id: z.ZodString;
205
+ authorId: z.ZodOptional<z.ZodString>;
127
206
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
128
- ownerId: z.ZodOptional<z.ZodString>;
129
207
  } & {
130
- id: z.ZodString;
208
+ name: z.ZodString;
209
+ description: z.ZodOptional<z.ZodString>;
210
+ instructions: z.ZodString;
211
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
212
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
218
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
219
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
221
+ sampling: z.ZodOptional<z.ZodObject<{
222
+ type: z.ZodEnum<["ratio", "count"]>;
223
+ rate: z.ZodOptional<z.ZodNumber>;
224
+ count: z.ZodOptional<z.ZodNumber>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ type: "count" | "ratio";
227
+ count?: number | undefined;
228
+ rate?: number | undefined;
229
+ }, {
230
+ type: "count" | "ratio";
231
+ count?: number | undefined;
232
+ rate?: number | undefined;
233
+ }>>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ sampling?: {
236
+ type: "count" | "ratio";
237
+ count?: number | undefined;
238
+ rate?: number | undefined;
239
+ } | undefined;
240
+ }, {
241
+ sampling?: {
242
+ type: "count" | "ratio";
243
+ count?: number | undefined;
244
+ rate?: number | undefined;
245
+ } | undefined;
246
+ }>>>;
131
247
  }, "strip", z.ZodTypeAny, {
132
248
  name: string;
133
249
  id: string;
@@ -141,7 +257,7 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
141
257
  inputProcessors?: Record<string, unknown>[] | undefined;
142
258
  outputProcessors?: Record<string, unknown>[] | undefined;
143
259
  defaultOptions?: Record<string, unknown> | undefined;
144
- memory?: string | undefined;
260
+ memory?: Record<string, unknown> | undefined;
145
261
  scorers?: Record<string, {
146
262
  sampling?: {
147
263
  type: "count" | "ratio";
@@ -149,7 +265,7 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
149
265
  rate?: number | undefined;
150
266
  } | undefined;
151
267
  }> | undefined;
152
- ownerId?: string | undefined;
268
+ authorId?: string | undefined;
153
269
  integrationTools?: string[] | undefined;
154
270
  }, {
155
271
  name: string;
@@ -164,7 +280,7 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
164
280
  inputProcessors?: Record<string, unknown>[] | undefined;
165
281
  outputProcessors?: Record<string, unknown>[] | undefined;
166
282
  defaultOptions?: Record<string, unknown> | undefined;
167
- memory?: string | undefined;
283
+ memory?: Record<string, unknown> | undefined;
168
284
  scorers?: Record<string, {
169
285
  sampling?: {
170
286
  type: "count" | "ratio";
@@ -172,13 +288,17 @@ export declare const createStoredAgentBodySchema: z.ZodObject<{
172
288
  rate?: number | undefined;
173
289
  } | undefined;
174
290
  }> | undefined;
175
- ownerId?: string | undefined;
291
+ authorId?: string | undefined;
176
292
  integrationTools?: string[] | undefined;
177
293
  }>;
178
294
  /**
179
295
  * PATCH /stored/agents/:storedAgentId - Update stored agent body
296
+ * Optional metadata-level fields + optional config fields
180
297
  */
181
298
  export declare const updateStoredAgentBodySchema: z.ZodObject<{
299
+ authorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
300
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
301
+ } & {
182
302
  name: z.ZodOptional<z.ZodString>;
183
303
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
184
304
  instructions: z.ZodOptional<z.ZodString>;
@@ -190,7 +310,7 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
190
310
  integrationTools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
191
311
  inputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
192
312
  outputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
193
- memory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
313
+ memory: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
194
314
  scorers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
195
315
  sampling: z.ZodOptional<z.ZodObject<{
196
316
  type: z.ZodEnum<["ratio", "count"]>;
@@ -218,8 +338,6 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
218
338
  rate?: number | undefined;
219
339
  } | undefined;
220
340
  }>>>>;
221
- metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
222
- ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
223
341
  }, "strip", z.ZodTypeAny, {
224
342
  metadata?: Record<string, unknown> | undefined;
225
343
  name?: string | undefined;
@@ -232,7 +350,7 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
232
350
  inputProcessors?: Record<string, unknown>[] | undefined;
233
351
  outputProcessors?: Record<string, unknown>[] | undefined;
234
352
  defaultOptions?: Record<string, unknown> | undefined;
235
- memory?: string | undefined;
353
+ memory?: Record<string, unknown> | undefined;
236
354
  scorers?: Record<string, {
237
355
  sampling?: {
238
356
  type: "count" | "ratio";
@@ -240,7 +358,7 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
240
358
  rate?: number | undefined;
241
359
  } | undefined;
242
360
  }> | undefined;
243
- ownerId?: string | undefined;
361
+ authorId?: string | undefined;
244
362
  integrationTools?: string[] | undefined;
245
363
  }, {
246
364
  metadata?: Record<string, unknown> | undefined;
@@ -254,7 +372,7 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
254
372
  inputProcessors?: Record<string, unknown>[] | undefined;
255
373
  outputProcessors?: Record<string, unknown>[] | undefined;
256
374
  defaultOptions?: Record<string, unknown> | undefined;
257
- memory?: string | undefined;
375
+ memory?: Record<string, unknown> | undefined;
258
376
  scorers?: Record<string, {
259
377
  sampling?: {
260
378
  type: "count" | "ratio";
@@ -262,13 +380,21 @@ export declare const updateStoredAgentBodySchema: z.ZodObject<{
262
380
  rate?: number | undefined;
263
381
  } | undefined;
264
382
  }> | undefined;
265
- ownerId?: string | undefined;
383
+ authorId?: string | undefined;
266
384
  integrationTools?: string[] | undefined;
267
385
  }>;
268
386
  /**
269
- * Stored agent object schema (full response)
387
+ * Stored agent object schema (resolved response: thin record + version config)
388
+ * Represents StorageResolvedAgentType
270
389
  */
271
390
  export declare const storedAgentSchema: z.ZodObject<{
391
+ id: z.ZodString;
392
+ status: z.ZodString;
393
+ activeVersionId: z.ZodOptional<z.ZodString>;
394
+ authorId: z.ZodOptional<z.ZodString>;
395
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
396
+ createdAt: z.ZodDate;
397
+ updatedAt: z.ZodDate;
272
398
  name: z.ZodString;
273
399
  description: z.ZodOptional<z.ZodString>;
274
400
  instructions: z.ZodString;
@@ -280,7 +406,7 @@ export declare const storedAgentSchema: z.ZodObject<{
280
406
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
281
407
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
282
408
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
283
- memory: z.ZodOptional<z.ZodString>;
409
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
284
410
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
285
411
  sampling: z.ZodOptional<z.ZodObject<{
286
412
  type: z.ZodEnum<["ratio", "count"]>;
@@ -308,13 +434,8 @@ export declare const storedAgentSchema: z.ZodObject<{
308
434
  rate?: number | undefined;
309
435
  } | undefined;
310
436
  }>>>;
311
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
312
- } & {
313
- id: z.ZodString;
314
- ownerId: z.ZodOptional<z.ZodString>;
315
- createdAt: z.ZodDate;
316
- updatedAt: z.ZodDate;
317
437
  }, "strip", z.ZodTypeAny, {
438
+ status: string;
318
439
  name: string;
319
440
  id: string;
320
441
  createdAt: Date;
@@ -329,7 +450,7 @@ export declare const storedAgentSchema: z.ZodObject<{
329
450
  inputProcessors?: Record<string, unknown>[] | undefined;
330
451
  outputProcessors?: Record<string, unknown>[] | undefined;
331
452
  defaultOptions?: Record<string, unknown> | undefined;
332
- memory?: string | undefined;
453
+ memory?: Record<string, unknown> | undefined;
333
454
  scorers?: Record<string, {
334
455
  sampling?: {
335
456
  type: "count" | "ratio";
@@ -337,9 +458,11 @@ export declare const storedAgentSchema: z.ZodObject<{
337
458
  rate?: number | undefined;
338
459
  } | undefined;
339
460
  }> | undefined;
340
- ownerId?: string | undefined;
461
+ authorId?: string | undefined;
341
462
  integrationTools?: string[] | undefined;
463
+ activeVersionId?: string | undefined;
342
464
  }, {
465
+ status: string;
343
466
  name: string;
344
467
  id: string;
345
468
  createdAt: Date;
@@ -354,7 +477,7 @@ export declare const storedAgentSchema: z.ZodObject<{
354
477
  inputProcessors?: Record<string, unknown>[] | undefined;
355
478
  outputProcessors?: Record<string, unknown>[] | undefined;
356
479
  defaultOptions?: Record<string, unknown> | undefined;
357
- memory?: string | undefined;
480
+ memory?: Record<string, unknown> | undefined;
358
481
  scorers?: Record<string, {
359
482
  sampling?: {
360
483
  type: "count" | "ratio";
@@ -362,8 +485,9 @@ export declare const storedAgentSchema: z.ZodObject<{
362
485
  rate?: number | undefined;
363
486
  } | undefined;
364
487
  }> | undefined;
365
- ownerId?: string | undefined;
488
+ authorId?: string | undefined;
366
489
  integrationTools?: string[] | undefined;
490
+ activeVersionId?: string | undefined;
367
491
  }>;
368
492
  /**
369
493
  * Response for GET /stored/agents
@@ -375,6 +499,13 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
375
499
  hasMore: z.ZodBoolean;
376
500
  } & {
377
501
  agents: z.ZodArray<z.ZodObject<{
502
+ id: z.ZodString;
503
+ status: z.ZodString;
504
+ activeVersionId: z.ZodOptional<z.ZodString>;
505
+ authorId: z.ZodOptional<z.ZodString>;
506
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ createdAt: z.ZodDate;
508
+ updatedAt: z.ZodDate;
378
509
  name: z.ZodString;
379
510
  description: z.ZodOptional<z.ZodString>;
380
511
  instructions: z.ZodString;
@@ -386,7 +517,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
386
517
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
387
518
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
388
519
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
389
- memory: z.ZodOptional<z.ZodString>;
520
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
390
521
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
391
522
  sampling: z.ZodOptional<z.ZodObject<{
392
523
  type: z.ZodEnum<["ratio", "count"]>;
@@ -414,13 +545,8 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
414
545
  rate?: number | undefined;
415
546
  } | undefined;
416
547
  }>>>;
417
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
418
- } & {
419
- id: z.ZodString;
420
- ownerId: z.ZodOptional<z.ZodString>;
421
- createdAt: z.ZodDate;
422
- updatedAt: z.ZodDate;
423
548
  }, "strip", z.ZodTypeAny, {
549
+ status: string;
424
550
  name: string;
425
551
  id: string;
426
552
  createdAt: Date;
@@ -435,7 +561,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
435
561
  inputProcessors?: Record<string, unknown>[] | undefined;
436
562
  outputProcessors?: Record<string, unknown>[] | undefined;
437
563
  defaultOptions?: Record<string, unknown> | undefined;
438
- memory?: string | undefined;
564
+ memory?: Record<string, unknown> | undefined;
439
565
  scorers?: Record<string, {
440
566
  sampling?: {
441
567
  type: "count" | "ratio";
@@ -443,9 +569,11 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
443
569
  rate?: number | undefined;
444
570
  } | undefined;
445
571
  }> | undefined;
446
- ownerId?: string | undefined;
572
+ authorId?: string | undefined;
447
573
  integrationTools?: string[] | undefined;
574
+ activeVersionId?: string | undefined;
448
575
  }, {
576
+ status: string;
449
577
  name: string;
450
578
  id: string;
451
579
  createdAt: Date;
@@ -460,7 +588,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
460
588
  inputProcessors?: Record<string, unknown>[] | undefined;
461
589
  outputProcessors?: Record<string, unknown>[] | undefined;
462
590
  defaultOptions?: Record<string, unknown> | undefined;
463
- memory?: string | undefined;
591
+ memory?: Record<string, unknown> | undefined;
464
592
  scorers?: Record<string, {
465
593
  sampling?: {
466
594
  type: "count" | "ratio";
@@ -468,8 +596,9 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
468
596
  rate?: number | undefined;
469
597
  } | undefined;
470
598
  }> | undefined;
471
- ownerId?: string | undefined;
599
+ authorId?: string | undefined;
472
600
  integrationTools?: string[] | undefined;
601
+ activeVersionId?: string | undefined;
473
602
  }>, "many">;
474
603
  }, "strip", z.ZodTypeAny, {
475
604
  total: number;
@@ -477,6 +606,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
477
606
  perPage: number | false;
478
607
  hasMore: boolean;
479
608
  agents: {
609
+ status: string;
480
610
  name: string;
481
611
  id: string;
482
612
  createdAt: Date;
@@ -491,7 +621,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
491
621
  inputProcessors?: Record<string, unknown>[] | undefined;
492
622
  outputProcessors?: Record<string, unknown>[] | undefined;
493
623
  defaultOptions?: Record<string, unknown> | undefined;
494
- memory?: string | undefined;
624
+ memory?: Record<string, unknown> | undefined;
495
625
  scorers?: Record<string, {
496
626
  sampling?: {
497
627
  type: "count" | "ratio";
@@ -499,8 +629,9 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
499
629
  rate?: number | undefined;
500
630
  } | undefined;
501
631
  }> | undefined;
502
- ownerId?: string | undefined;
632
+ authorId?: string | undefined;
503
633
  integrationTools?: string[] | undefined;
634
+ activeVersionId?: string | undefined;
504
635
  }[];
505
636
  }, {
506
637
  total: number;
@@ -508,6 +639,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
508
639
  perPage: number | false;
509
640
  hasMore: boolean;
510
641
  agents: {
642
+ status: string;
511
643
  name: string;
512
644
  id: string;
513
645
  createdAt: Date;
@@ -522,7 +654,7 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
522
654
  inputProcessors?: Record<string, unknown>[] | undefined;
523
655
  outputProcessors?: Record<string, unknown>[] | undefined;
524
656
  defaultOptions?: Record<string, unknown> | undefined;
525
- memory?: string | undefined;
657
+ memory?: Record<string, unknown> | undefined;
526
658
  scorers?: Record<string, {
527
659
  sampling?: {
528
660
  type: "count" | "ratio";
@@ -530,14 +662,22 @@ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
530
662
  rate?: number | undefined;
531
663
  } | undefined;
532
664
  }> | undefined;
533
- ownerId?: string | undefined;
665
+ authorId?: string | undefined;
534
666
  integrationTools?: string[] | undefined;
667
+ activeVersionId?: string | undefined;
535
668
  }[];
536
669
  }>;
537
670
  /**
538
671
  * Response for GET /stored/agents/:storedAgentId
539
672
  */
540
673
  export declare const getStoredAgentResponseSchema: z.ZodObject<{
674
+ id: z.ZodString;
675
+ status: z.ZodString;
676
+ activeVersionId: z.ZodOptional<z.ZodString>;
677
+ authorId: z.ZodOptional<z.ZodString>;
678
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
679
+ createdAt: z.ZodDate;
680
+ updatedAt: z.ZodDate;
541
681
  name: z.ZodString;
542
682
  description: z.ZodOptional<z.ZodString>;
543
683
  instructions: z.ZodString;
@@ -549,7 +689,7 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
549
689
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
550
690
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
551
691
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
552
- memory: z.ZodOptional<z.ZodString>;
692
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
553
693
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
554
694
  sampling: z.ZodOptional<z.ZodObject<{
555
695
  type: z.ZodEnum<["ratio", "count"]>;
@@ -577,13 +717,8 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
577
717
  rate?: number | undefined;
578
718
  } | undefined;
579
719
  }>>>;
580
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
581
- } & {
582
- id: z.ZodString;
583
- ownerId: z.ZodOptional<z.ZodString>;
584
- createdAt: z.ZodDate;
585
- updatedAt: z.ZodDate;
586
720
  }, "strip", z.ZodTypeAny, {
721
+ status: string;
587
722
  name: string;
588
723
  id: string;
589
724
  createdAt: Date;
@@ -598,7 +733,7 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
598
733
  inputProcessors?: Record<string, unknown>[] | undefined;
599
734
  outputProcessors?: Record<string, unknown>[] | undefined;
600
735
  defaultOptions?: Record<string, unknown> | undefined;
601
- memory?: string | undefined;
736
+ memory?: Record<string, unknown> | undefined;
602
737
  scorers?: Record<string, {
603
738
  sampling?: {
604
739
  type: "count" | "ratio";
@@ -606,9 +741,11 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
606
741
  rate?: number | undefined;
607
742
  } | undefined;
608
743
  }> | undefined;
609
- ownerId?: string | undefined;
744
+ authorId?: string | undefined;
610
745
  integrationTools?: string[] | undefined;
746
+ activeVersionId?: string | undefined;
611
747
  }, {
748
+ status: string;
612
749
  name: string;
613
750
  id: string;
614
751
  createdAt: Date;
@@ -623,7 +760,7 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
623
760
  inputProcessors?: Record<string, unknown>[] | undefined;
624
761
  outputProcessors?: Record<string, unknown>[] | undefined;
625
762
  defaultOptions?: Record<string, unknown> | undefined;
626
- memory?: string | undefined;
763
+ memory?: Record<string, unknown> | undefined;
627
764
  scorers?: Record<string, {
628
765
  sampling?: {
629
766
  type: "count" | "ratio";
@@ -631,13 +768,21 @@ export declare const getStoredAgentResponseSchema: z.ZodObject<{
631
768
  rate?: number | undefined;
632
769
  } | undefined;
633
770
  }> | undefined;
634
- ownerId?: string | undefined;
771
+ authorId?: string | undefined;
635
772
  integrationTools?: string[] | undefined;
773
+ activeVersionId?: string | undefined;
636
774
  }>;
637
775
  /**
638
776
  * Response for POST /stored/agents
639
777
  */
640
778
  export declare const createStoredAgentResponseSchema: z.ZodObject<{
779
+ id: z.ZodString;
780
+ status: z.ZodString;
781
+ activeVersionId: z.ZodOptional<z.ZodString>;
782
+ authorId: z.ZodOptional<z.ZodString>;
783
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
784
+ createdAt: z.ZodDate;
785
+ updatedAt: z.ZodDate;
641
786
  name: z.ZodString;
642
787
  description: z.ZodOptional<z.ZodString>;
643
788
  instructions: z.ZodString;
@@ -649,7 +794,7 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
649
794
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
650
795
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
651
796
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
652
- memory: z.ZodOptional<z.ZodString>;
797
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
653
798
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
654
799
  sampling: z.ZodOptional<z.ZodObject<{
655
800
  type: z.ZodEnum<["ratio", "count"]>;
@@ -677,13 +822,8 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
677
822
  rate?: number | undefined;
678
823
  } | undefined;
679
824
  }>>>;
680
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
681
- } & {
682
- id: z.ZodString;
683
- ownerId: z.ZodOptional<z.ZodString>;
684
- createdAt: z.ZodDate;
685
- updatedAt: z.ZodDate;
686
825
  }, "strip", z.ZodTypeAny, {
826
+ status: string;
687
827
  name: string;
688
828
  id: string;
689
829
  createdAt: Date;
@@ -698,7 +838,7 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
698
838
  inputProcessors?: Record<string, unknown>[] | undefined;
699
839
  outputProcessors?: Record<string, unknown>[] | undefined;
700
840
  defaultOptions?: Record<string, unknown> | undefined;
701
- memory?: string | undefined;
841
+ memory?: Record<string, unknown> | undefined;
702
842
  scorers?: Record<string, {
703
843
  sampling?: {
704
844
  type: "count" | "ratio";
@@ -706,9 +846,11 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
706
846
  rate?: number | undefined;
707
847
  } | undefined;
708
848
  }> | undefined;
709
- ownerId?: string | undefined;
849
+ authorId?: string | undefined;
710
850
  integrationTools?: string[] | undefined;
851
+ activeVersionId?: string | undefined;
711
852
  }, {
853
+ status: string;
712
854
  name: string;
713
855
  id: string;
714
856
  createdAt: Date;
@@ -723,7 +865,7 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
723
865
  inputProcessors?: Record<string, unknown>[] | undefined;
724
866
  outputProcessors?: Record<string, unknown>[] | undefined;
725
867
  defaultOptions?: Record<string, unknown> | undefined;
726
- memory?: string | undefined;
868
+ memory?: Record<string, unknown> | undefined;
727
869
  scorers?: Record<string, {
728
870
  sampling?: {
729
871
  type: "count" | "ratio";
@@ -731,13 +873,21 @@ export declare const createStoredAgentResponseSchema: z.ZodObject<{
731
873
  rate?: number | undefined;
732
874
  } | undefined;
733
875
  }> | undefined;
734
- ownerId?: string | undefined;
876
+ authorId?: string | undefined;
735
877
  integrationTools?: string[] | undefined;
878
+ activeVersionId?: string | undefined;
736
879
  }>;
737
880
  /**
738
881
  * Response for PATCH /stored/agents/:storedAgentId
739
882
  */
740
883
  export declare const updateStoredAgentResponseSchema: z.ZodObject<{
884
+ id: z.ZodString;
885
+ status: z.ZodString;
886
+ activeVersionId: z.ZodOptional<z.ZodString>;
887
+ authorId: z.ZodOptional<z.ZodString>;
888
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
889
+ createdAt: z.ZodDate;
890
+ updatedAt: z.ZodDate;
741
891
  name: z.ZodString;
742
892
  description: z.ZodOptional<z.ZodString>;
743
893
  instructions: z.ZodString;
@@ -749,7 +899,7 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
749
899
  integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
750
900
  inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
751
901
  outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
752
- memory: z.ZodOptional<z.ZodString>;
902
+ memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
753
903
  scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
754
904
  sampling: z.ZodOptional<z.ZodObject<{
755
905
  type: z.ZodEnum<["ratio", "count"]>;
@@ -777,13 +927,8 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
777
927
  rate?: number | undefined;
778
928
  } | undefined;
779
929
  }>>>;
780
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
781
- } & {
782
- id: z.ZodString;
783
- ownerId: z.ZodOptional<z.ZodString>;
784
- createdAt: z.ZodDate;
785
- updatedAt: z.ZodDate;
786
930
  }, "strip", z.ZodTypeAny, {
931
+ status: string;
787
932
  name: string;
788
933
  id: string;
789
934
  createdAt: Date;
@@ -798,7 +943,7 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
798
943
  inputProcessors?: Record<string, unknown>[] | undefined;
799
944
  outputProcessors?: Record<string, unknown>[] | undefined;
800
945
  defaultOptions?: Record<string, unknown> | undefined;
801
- memory?: string | undefined;
946
+ memory?: Record<string, unknown> | undefined;
802
947
  scorers?: Record<string, {
803
948
  sampling?: {
804
949
  type: "count" | "ratio";
@@ -806,9 +951,11 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
806
951
  rate?: number | undefined;
807
952
  } | undefined;
808
953
  }> | undefined;
809
- ownerId?: string | undefined;
954
+ authorId?: string | undefined;
810
955
  integrationTools?: string[] | undefined;
956
+ activeVersionId?: string | undefined;
811
957
  }, {
958
+ status: string;
812
959
  name: string;
813
960
  id: string;
814
961
  createdAt: Date;
@@ -823,7 +970,7 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
823
970
  inputProcessors?: Record<string, unknown>[] | undefined;
824
971
  outputProcessors?: Record<string, unknown>[] | undefined;
825
972
  defaultOptions?: Record<string, unknown> | undefined;
826
- memory?: string | undefined;
973
+ memory?: Record<string, unknown> | undefined;
827
974
  scorers?: Record<string, {
828
975
  sampling?: {
829
976
  type: "count" | "ratio";
@@ -831,8 +978,9 @@ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
831
978
  rate?: number | undefined;
832
979
  } | undefined;
833
980
  }> | undefined;
834
- ownerId?: string | undefined;
981
+ authorId?: string | undefined;
835
982
  integrationTools?: string[] | undefined;
983
+ activeVersionId?: string | undefined;
836
984
  }>;
837
985
  /**
838
986
  * Response for DELETE /stored/agents/:storedAgentId
@@ -847,4 +995,8 @@ export declare const deleteStoredAgentResponseSchema: z.ZodObject<{
847
995
  message: string;
848
996
  success: boolean;
849
997
  }>;
998
+ /**
999
+ * Exported for use in agent-versions.ts schemas
1000
+ */
1001
+ export { snapshotConfigSchema, scorerConfigSchema };
850
1002
  //# sourceMappingURL=stored-agents.d.ts.map