@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.
- package/CHANGELOG.md +25 -0
- package/dist/{chunk-S4SLHUJ7.cjs → chunk-4UNYZYBB.cjs} +4 -4
- package/dist/{chunk-S4SLHUJ7.cjs.map → chunk-4UNYZYBB.cjs.map} +1 -1
- package/dist/{chunk-RW66MHXI.js → chunk-5P2VGES5.js} +49 -23
- package/dist/chunk-5P2VGES5.js.map +1 -0
- package/dist/{chunk-EKFYZUPC.cjs → chunk-6DHJKQLP.cjs} +4 -4
- package/dist/{chunk-EKFYZUPC.cjs.map → chunk-6DHJKQLP.cjs.map} +1 -1
- package/dist/{chunk-3QUACCLU.js → chunk-7YCFHDWX.js} +3 -3
- package/dist/{chunk-3QUACCLU.js.map → chunk-7YCFHDWX.js.map} +1 -1
- package/dist/{chunk-JLFFAYTC.cjs → chunk-AO7LIZRK.cjs} +60 -34
- package/dist/chunk-AO7LIZRK.cjs.map +1 -0
- package/dist/{chunk-3OIJLD3O.js → chunk-BWINB344.js} +3 -3
- package/dist/{chunk-3OIJLD3O.js.map → chunk-BWINB344.js.map} +1 -1
- package/dist/{chunk-QXDNFBJQ.js → chunk-GDWZ2R7I.js} +4 -4
- package/dist/{chunk-QXDNFBJQ.js.map → chunk-GDWZ2R7I.js.map} +1 -1
- package/dist/{chunk-2HAVULC2.cjs → chunk-H4VFL22H.cjs} +6 -6
- package/dist/{chunk-2HAVULC2.cjs.map → chunk-H4VFL22H.cjs.map} +1 -1
- package/dist/{chunk-WHC6S3VY.cjs → chunk-I3CJUT6J.cjs} +4 -4
- package/dist/{chunk-WHC6S3VY.cjs.map → chunk-I3CJUT6J.cjs.map} +1 -1
- package/dist/{chunk-GUG6KRAJ.js → chunk-JUGGEWCR.js} +3 -3
- package/dist/{chunk-GUG6KRAJ.js.map → chunk-JUGGEWCR.js.map} +1 -1
- package/dist/{chunk-DD7LYNHB.js → chunk-KPHPNRVH.js} +117 -62
- package/dist/chunk-KPHPNRVH.js.map +1 -0
- package/dist/{chunk-TGDBGIDA.cjs → chunk-L6AKFVEX.cjs} +117 -62
- package/dist/chunk-L6AKFVEX.cjs.map +1 -0
- package/dist/{chunk-6KC345IN.cjs → chunk-QRPQWZZU.cjs} +41 -41
- package/dist/{chunk-6KC345IN.cjs.map → chunk-QRPQWZZU.cjs.map} +1 -1
- package/dist/{chunk-3AZY5AWI.js → chunk-QWOQET2T.js} +3 -3
- package/dist/{chunk-3AZY5AWI.js.map → chunk-QWOQET2T.js.map} +1 -1
- package/dist/{chunk-VNHOYZ56.cjs → chunk-VXPVROQJ.cjs} +5 -5
- package/dist/{chunk-VNHOYZ56.cjs.map → chunk-VXPVROQJ.cjs.map} +1 -1
- package/dist/{chunk-QOVLJFLX.cjs → chunk-WWVDNKEF.cjs} +6 -6
- package/dist/{chunk-QOVLJFLX.cjs.map → chunk-WWVDNKEF.cjs.map} +1 -1
- package/dist/{chunk-FQX5SQO7.js → chunk-XXBURIYX.js} +3 -3
- package/dist/{chunk-FQX5SQO7.js.map → chunk-XXBURIYX.js.map} +1 -1
- package/dist/{chunk-FCPLBTHB.js → chunk-ZFHZRI6C.js} +3 -3
- package/dist/{chunk-FCPLBTHB.js.map → chunk-ZFHZRI6C.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/server/handlers/a2a.cjs +9 -9
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-versions.cjs +14 -14
- package/dist/server/handlers/agent-versions.d.ts +153 -175
- package/dist/server/handlers/agent-versions.d.ts.map +1 -1
- package/dist/server/handlers/agent-versions.js +1 -1
- package/dist/server/handlers/agents.cjs +31 -31
- package/dist/server/handlers/agents.d.ts +2 -2
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +6 -6
- package/dist/server/handlers/stored-agents.d.ts +32 -23
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -8
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workspace.cjs +19 -19
- package/dist/server/handlers/workspace.d.ts +8 -8
- package/dist/server/handlers/workspace.js +1 -1
- package/dist/server/handlers.cjs +10 -10
- package/dist/server/handlers.js +5 -5
- package/dist/server/schemas/agent-versions.d.ts +564 -1137
- package/dist/server/schemas/agent-versions.d.ts.map +1 -1
- package/dist/server/schemas/stored-agents.d.ts +234 -82
- package/dist/server/schemas/stored-agents.d.ts.map +1 -1
- package/dist/server/schemas/workspace.d.ts +34 -34
- package/dist/server/server-adapter/index.cjs +67 -67
- package/dist/server/server-adapter/index.js +8 -8
- package/package.json +4 -4
- package/dist/chunk-DD7LYNHB.js.map +0 -1
- package/dist/chunk-JLFFAYTC.cjs.map +0 -1
- package/dist/chunk-RW66MHXI.js.map +0 -1
- package/dist/chunk-TGDBGIDA.cjs.map +0 -1
|
@@ -97,191 +97,116 @@ export declare const compareVersionsQuerySchema: z.ZodObject<{
|
|
|
97
97
|
}>;
|
|
98
98
|
/**
|
|
99
99
|
* POST /stored/agents/:agentId/versions - Create version body
|
|
100
|
+
* No vanity name -- the config `name` is part of the snapshot config fields.
|
|
100
101
|
*/
|
|
101
102
|
export declare const createVersionBodySchema: z.ZodObject<{
|
|
102
|
-
name: z.ZodOptional<z.ZodString>;
|
|
103
103
|
changeMessage: z.ZodOptional<z.ZodString>;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
name?: string | undefined;
|
|
106
105
|
changeMessage?: string | undefined;
|
|
107
106
|
}, {
|
|
108
|
-
name?: string | undefined;
|
|
109
107
|
changeMessage?: string | undefined;
|
|
110
108
|
}>;
|
|
111
109
|
/**
|
|
112
110
|
* Agent version object schema (full response)
|
|
111
|
+
* Config fields are top-level on the version (no nested snapshot object).
|
|
112
|
+
* Extends StorageAgentSnapshotType fields.
|
|
113
113
|
*/
|
|
114
114
|
export declare const agentVersionSchema: z.ZodObject<{
|
|
115
115
|
id: z.ZodString;
|
|
116
116
|
agentId: z.ZodString;
|
|
117
117
|
versionNumber: z.ZodNumber;
|
|
118
|
-
name: z.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
rate: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
type: "count" | "ratio";
|
|
139
|
-
count?: number | undefined;
|
|
140
|
-
rate?: number | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
type: "count" | "ratio";
|
|
143
|
-
count?: number | undefined;
|
|
144
|
-
rate?: number | undefined;
|
|
145
|
-
}>>;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
120
|
+
instructions: z.ZodString;
|
|
121
|
+
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
122
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
123
|
+
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
126
|
+
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
127
|
+
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
128
|
+
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
129
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
130
|
+
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
type: z.ZodEnum<["ratio", "count"]>;
|
|
133
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
146
135
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
rate?: number | undefined;
|
|
151
|
-
} | undefined;
|
|
136
|
+
type: "count" | "ratio";
|
|
137
|
+
count?: number | undefined;
|
|
138
|
+
rate?: number | undefined;
|
|
152
139
|
}, {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
} | undefined;
|
|
158
|
-
}>>>;
|
|
159
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
-
} & {
|
|
161
|
-
id: z.ZodString;
|
|
162
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
163
|
-
createdAt: z.ZodDate;
|
|
164
|
-
updatedAt: z.ZodDate;
|
|
140
|
+
type: "count" | "ratio";
|
|
141
|
+
count?: number | undefined;
|
|
142
|
+
rate?: number | undefined;
|
|
143
|
+
}>>;
|
|
165
144
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
instructions: string;
|
|
172
|
-
metadata?: Record<string, unknown> | undefined;
|
|
173
|
-
description?: string | undefined;
|
|
174
|
-
tools?: string[] | undefined;
|
|
175
|
-
agents?: string[] | undefined;
|
|
176
|
-
workflows?: string[] | undefined;
|
|
177
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
178
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
179
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
180
|
-
memory?: string | undefined;
|
|
181
|
-
scorers?: Record<string, {
|
|
182
|
-
sampling?: {
|
|
183
|
-
type: "count" | "ratio";
|
|
184
|
-
count?: number | undefined;
|
|
185
|
-
rate?: number | undefined;
|
|
186
|
-
} | undefined;
|
|
187
|
-
}> | undefined;
|
|
188
|
-
ownerId?: string | undefined;
|
|
189
|
-
integrationTools?: string[] | undefined;
|
|
145
|
+
sampling?: {
|
|
146
|
+
type: "count" | "ratio";
|
|
147
|
+
count?: number | undefined;
|
|
148
|
+
rate?: number | undefined;
|
|
149
|
+
} | undefined;
|
|
190
150
|
}, {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
metadata?: Record<string, unknown> | undefined;
|
|
198
|
-
description?: string | undefined;
|
|
199
|
-
tools?: string[] | undefined;
|
|
200
|
-
agents?: string[] | undefined;
|
|
201
|
-
workflows?: string[] | undefined;
|
|
202
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
203
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
204
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
205
|
-
memory?: string | undefined;
|
|
206
|
-
scorers?: Record<string, {
|
|
207
|
-
sampling?: {
|
|
208
|
-
type: "count" | "ratio";
|
|
209
|
-
count?: number | undefined;
|
|
210
|
-
rate?: number | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
}> | undefined;
|
|
213
|
-
ownerId?: string | undefined;
|
|
214
|
-
integrationTools?: string[] | undefined;
|
|
215
|
-
}>;
|
|
151
|
+
sampling?: {
|
|
152
|
+
type: "count" | "ratio";
|
|
153
|
+
count?: number | undefined;
|
|
154
|
+
rate?: number | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
}>>>;
|
|
216
157
|
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
217
158
|
changeMessage: z.ZodOptional<z.ZodString>;
|
|
218
159
|
createdAt: z.ZodDate;
|
|
219
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
name: string;
|
|
220
162
|
id: string;
|
|
221
|
-
snapshot: {
|
|
222
|
-
name: string;
|
|
223
|
-
id: string;
|
|
224
|
-
createdAt: Date;
|
|
225
|
-
updatedAt: Date;
|
|
226
|
-
model: Record<string, unknown>;
|
|
227
|
-
instructions: string;
|
|
228
|
-
metadata?: Record<string, unknown> | undefined;
|
|
229
|
-
description?: string | undefined;
|
|
230
|
-
tools?: string[] | undefined;
|
|
231
|
-
agents?: string[] | undefined;
|
|
232
|
-
workflows?: string[] | undefined;
|
|
233
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
234
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
235
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
236
|
-
memory?: string | undefined;
|
|
237
|
-
scorers?: Record<string, {
|
|
238
|
-
sampling?: {
|
|
239
|
-
type: "count" | "ratio";
|
|
240
|
-
count?: number | undefined;
|
|
241
|
-
rate?: number | undefined;
|
|
242
|
-
} | undefined;
|
|
243
|
-
}> | undefined;
|
|
244
|
-
ownerId?: string | undefined;
|
|
245
|
-
integrationTools?: string[] | undefined;
|
|
246
|
-
};
|
|
247
163
|
createdAt: Date;
|
|
248
164
|
agentId: string;
|
|
165
|
+
model: Record<string, unknown>;
|
|
166
|
+
instructions: string;
|
|
249
167
|
versionNumber: number;
|
|
250
|
-
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
tools?: string[] | undefined;
|
|
170
|
+
agents?: string[] | undefined;
|
|
171
|
+
workflows?: string[] | undefined;
|
|
172
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
173
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
174
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
175
|
+
memory?: Record<string, unknown> | undefined;
|
|
176
|
+
scorers?: Record<string, {
|
|
177
|
+
sampling?: {
|
|
178
|
+
type: "count" | "ratio";
|
|
179
|
+
count?: number | undefined;
|
|
180
|
+
rate?: number | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
}> | undefined;
|
|
183
|
+
integrationTools?: string[] | undefined;
|
|
251
184
|
changeMessage?: string | undefined;
|
|
252
185
|
changedFields?: string[] | undefined;
|
|
253
186
|
}, {
|
|
187
|
+
name: string;
|
|
254
188
|
id: string;
|
|
255
|
-
snapshot: {
|
|
256
|
-
name: string;
|
|
257
|
-
id: string;
|
|
258
|
-
createdAt: Date;
|
|
259
|
-
updatedAt: Date;
|
|
260
|
-
model: Record<string, unknown>;
|
|
261
|
-
instructions: string;
|
|
262
|
-
metadata?: Record<string, unknown> | undefined;
|
|
263
|
-
description?: string | undefined;
|
|
264
|
-
tools?: string[] | undefined;
|
|
265
|
-
agents?: string[] | undefined;
|
|
266
|
-
workflows?: string[] | undefined;
|
|
267
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
268
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
269
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
270
|
-
memory?: string | undefined;
|
|
271
|
-
scorers?: Record<string, {
|
|
272
|
-
sampling?: {
|
|
273
|
-
type: "count" | "ratio";
|
|
274
|
-
count?: number | undefined;
|
|
275
|
-
rate?: number | undefined;
|
|
276
|
-
} | undefined;
|
|
277
|
-
}> | undefined;
|
|
278
|
-
ownerId?: string | undefined;
|
|
279
|
-
integrationTools?: string[] | undefined;
|
|
280
|
-
};
|
|
281
189
|
createdAt: Date;
|
|
282
190
|
agentId: string;
|
|
191
|
+
model: Record<string, unknown>;
|
|
192
|
+
instructions: string;
|
|
283
193
|
versionNumber: number;
|
|
284
|
-
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
tools?: string[] | undefined;
|
|
196
|
+
agents?: string[] | undefined;
|
|
197
|
+
workflows?: string[] | undefined;
|
|
198
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
199
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
200
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
201
|
+
memory?: Record<string, unknown> | undefined;
|
|
202
|
+
scorers?: Record<string, {
|
|
203
|
+
sampling?: {
|
|
204
|
+
type: "count" | "ratio";
|
|
205
|
+
count?: number | undefined;
|
|
206
|
+
rate?: number | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
}> | undefined;
|
|
209
|
+
integrationTools?: string[] | undefined;
|
|
285
210
|
changeMessage?: string | undefined;
|
|
286
211
|
changedFields?: string[] | undefined;
|
|
287
212
|
}>;
|
|
@@ -298,266 +223,6 @@ export declare const listVersionsResponseSchema: z.ZodObject<{
|
|
|
298
223
|
id: z.ZodString;
|
|
299
224
|
agentId: z.ZodString;
|
|
300
225
|
versionNumber: z.ZodNumber;
|
|
301
|
-
name: z.ZodOptional<z.ZodString>;
|
|
302
|
-
snapshot: z.ZodObject<{
|
|
303
|
-
name: z.ZodString;
|
|
304
|
-
description: z.ZodOptional<z.ZodString>;
|
|
305
|
-
instructions: z.ZodString;
|
|
306
|
-
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
307
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
308
|
-
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
-
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
310
|
-
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
311
|
-
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
312
|
-
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
313
|
-
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
314
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
315
|
-
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
316
|
-
sampling: z.ZodOptional<z.ZodObject<{
|
|
317
|
-
type: z.ZodEnum<["ratio", "count"]>;
|
|
318
|
-
rate: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
320
|
-
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
type: "count" | "ratio";
|
|
322
|
-
count?: number | undefined;
|
|
323
|
-
rate?: number | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
type: "count" | "ratio";
|
|
326
|
-
count?: number | undefined;
|
|
327
|
-
rate?: number | undefined;
|
|
328
|
-
}>>;
|
|
329
|
-
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
sampling?: {
|
|
331
|
-
type: "count" | "ratio";
|
|
332
|
-
count?: number | undefined;
|
|
333
|
-
rate?: number | undefined;
|
|
334
|
-
} | undefined;
|
|
335
|
-
}, {
|
|
336
|
-
sampling?: {
|
|
337
|
-
type: "count" | "ratio";
|
|
338
|
-
count?: number | undefined;
|
|
339
|
-
rate?: number | undefined;
|
|
340
|
-
} | undefined;
|
|
341
|
-
}>>>;
|
|
342
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
343
|
-
} & {
|
|
344
|
-
id: z.ZodString;
|
|
345
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
346
|
-
createdAt: z.ZodDate;
|
|
347
|
-
updatedAt: z.ZodDate;
|
|
348
|
-
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
name: string;
|
|
350
|
-
id: string;
|
|
351
|
-
createdAt: Date;
|
|
352
|
-
updatedAt: Date;
|
|
353
|
-
model: Record<string, unknown>;
|
|
354
|
-
instructions: string;
|
|
355
|
-
metadata?: Record<string, unknown> | undefined;
|
|
356
|
-
description?: string | undefined;
|
|
357
|
-
tools?: string[] | undefined;
|
|
358
|
-
agents?: string[] | undefined;
|
|
359
|
-
workflows?: string[] | undefined;
|
|
360
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
361
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
362
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
363
|
-
memory?: string | undefined;
|
|
364
|
-
scorers?: Record<string, {
|
|
365
|
-
sampling?: {
|
|
366
|
-
type: "count" | "ratio";
|
|
367
|
-
count?: number | undefined;
|
|
368
|
-
rate?: number | undefined;
|
|
369
|
-
} | undefined;
|
|
370
|
-
}> | undefined;
|
|
371
|
-
ownerId?: string | undefined;
|
|
372
|
-
integrationTools?: string[] | undefined;
|
|
373
|
-
}, {
|
|
374
|
-
name: string;
|
|
375
|
-
id: string;
|
|
376
|
-
createdAt: Date;
|
|
377
|
-
updatedAt: Date;
|
|
378
|
-
model: Record<string, unknown>;
|
|
379
|
-
instructions: string;
|
|
380
|
-
metadata?: Record<string, unknown> | undefined;
|
|
381
|
-
description?: string | undefined;
|
|
382
|
-
tools?: string[] | undefined;
|
|
383
|
-
agents?: string[] | undefined;
|
|
384
|
-
workflows?: string[] | undefined;
|
|
385
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
386
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
387
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
388
|
-
memory?: string | undefined;
|
|
389
|
-
scorers?: Record<string, {
|
|
390
|
-
sampling?: {
|
|
391
|
-
type: "count" | "ratio";
|
|
392
|
-
count?: number | undefined;
|
|
393
|
-
rate?: number | undefined;
|
|
394
|
-
} | undefined;
|
|
395
|
-
}> | undefined;
|
|
396
|
-
ownerId?: string | undefined;
|
|
397
|
-
integrationTools?: string[] | undefined;
|
|
398
|
-
}>;
|
|
399
|
-
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
|
-
changeMessage: z.ZodOptional<z.ZodString>;
|
|
401
|
-
createdAt: z.ZodDate;
|
|
402
|
-
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
id: string;
|
|
404
|
-
snapshot: {
|
|
405
|
-
name: string;
|
|
406
|
-
id: string;
|
|
407
|
-
createdAt: Date;
|
|
408
|
-
updatedAt: Date;
|
|
409
|
-
model: Record<string, unknown>;
|
|
410
|
-
instructions: string;
|
|
411
|
-
metadata?: Record<string, unknown> | undefined;
|
|
412
|
-
description?: string | undefined;
|
|
413
|
-
tools?: string[] | undefined;
|
|
414
|
-
agents?: string[] | undefined;
|
|
415
|
-
workflows?: string[] | undefined;
|
|
416
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
417
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
418
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
419
|
-
memory?: string | undefined;
|
|
420
|
-
scorers?: Record<string, {
|
|
421
|
-
sampling?: {
|
|
422
|
-
type: "count" | "ratio";
|
|
423
|
-
count?: number | undefined;
|
|
424
|
-
rate?: number | undefined;
|
|
425
|
-
} | undefined;
|
|
426
|
-
}> | undefined;
|
|
427
|
-
ownerId?: string | undefined;
|
|
428
|
-
integrationTools?: string[] | undefined;
|
|
429
|
-
};
|
|
430
|
-
createdAt: Date;
|
|
431
|
-
agentId: string;
|
|
432
|
-
versionNumber: number;
|
|
433
|
-
name?: string | undefined;
|
|
434
|
-
changeMessage?: string | undefined;
|
|
435
|
-
changedFields?: string[] | undefined;
|
|
436
|
-
}, {
|
|
437
|
-
id: string;
|
|
438
|
-
snapshot: {
|
|
439
|
-
name: string;
|
|
440
|
-
id: string;
|
|
441
|
-
createdAt: Date;
|
|
442
|
-
updatedAt: Date;
|
|
443
|
-
model: Record<string, unknown>;
|
|
444
|
-
instructions: string;
|
|
445
|
-
metadata?: Record<string, unknown> | undefined;
|
|
446
|
-
description?: string | undefined;
|
|
447
|
-
tools?: string[] | undefined;
|
|
448
|
-
agents?: string[] | undefined;
|
|
449
|
-
workflows?: string[] | undefined;
|
|
450
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
451
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
452
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
453
|
-
memory?: string | undefined;
|
|
454
|
-
scorers?: Record<string, {
|
|
455
|
-
sampling?: {
|
|
456
|
-
type: "count" | "ratio";
|
|
457
|
-
count?: number | undefined;
|
|
458
|
-
rate?: number | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
}> | undefined;
|
|
461
|
-
ownerId?: string | undefined;
|
|
462
|
-
integrationTools?: string[] | undefined;
|
|
463
|
-
};
|
|
464
|
-
createdAt: Date;
|
|
465
|
-
agentId: string;
|
|
466
|
-
versionNumber: number;
|
|
467
|
-
name?: string | undefined;
|
|
468
|
-
changeMessage?: string | undefined;
|
|
469
|
-
changedFields?: string[] | undefined;
|
|
470
|
-
}>, "many">;
|
|
471
|
-
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
total: number;
|
|
473
|
-
page: number;
|
|
474
|
-
perPage: number | false;
|
|
475
|
-
hasMore: boolean;
|
|
476
|
-
versions: {
|
|
477
|
-
id: string;
|
|
478
|
-
snapshot: {
|
|
479
|
-
name: string;
|
|
480
|
-
id: string;
|
|
481
|
-
createdAt: Date;
|
|
482
|
-
updatedAt: Date;
|
|
483
|
-
model: Record<string, unknown>;
|
|
484
|
-
instructions: string;
|
|
485
|
-
metadata?: Record<string, unknown> | undefined;
|
|
486
|
-
description?: string | undefined;
|
|
487
|
-
tools?: string[] | undefined;
|
|
488
|
-
agents?: string[] | undefined;
|
|
489
|
-
workflows?: string[] | undefined;
|
|
490
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
491
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
492
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
493
|
-
memory?: string | undefined;
|
|
494
|
-
scorers?: Record<string, {
|
|
495
|
-
sampling?: {
|
|
496
|
-
type: "count" | "ratio";
|
|
497
|
-
count?: number | undefined;
|
|
498
|
-
rate?: number | undefined;
|
|
499
|
-
} | undefined;
|
|
500
|
-
}> | undefined;
|
|
501
|
-
ownerId?: string | undefined;
|
|
502
|
-
integrationTools?: string[] | undefined;
|
|
503
|
-
};
|
|
504
|
-
createdAt: Date;
|
|
505
|
-
agentId: string;
|
|
506
|
-
versionNumber: number;
|
|
507
|
-
name?: string | undefined;
|
|
508
|
-
changeMessage?: string | undefined;
|
|
509
|
-
changedFields?: string[] | undefined;
|
|
510
|
-
}[];
|
|
511
|
-
}, {
|
|
512
|
-
total: number;
|
|
513
|
-
page: number;
|
|
514
|
-
perPage: number | false;
|
|
515
|
-
hasMore: boolean;
|
|
516
|
-
versions: {
|
|
517
|
-
id: string;
|
|
518
|
-
snapshot: {
|
|
519
|
-
name: string;
|
|
520
|
-
id: string;
|
|
521
|
-
createdAt: Date;
|
|
522
|
-
updatedAt: Date;
|
|
523
|
-
model: Record<string, unknown>;
|
|
524
|
-
instructions: string;
|
|
525
|
-
metadata?: Record<string, unknown> | undefined;
|
|
526
|
-
description?: string | undefined;
|
|
527
|
-
tools?: string[] | undefined;
|
|
528
|
-
agents?: string[] | undefined;
|
|
529
|
-
workflows?: string[] | undefined;
|
|
530
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
531
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
532
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
533
|
-
memory?: string | undefined;
|
|
534
|
-
scorers?: Record<string, {
|
|
535
|
-
sampling?: {
|
|
536
|
-
type: "count" | "ratio";
|
|
537
|
-
count?: number | undefined;
|
|
538
|
-
rate?: number | undefined;
|
|
539
|
-
} | undefined;
|
|
540
|
-
}> | undefined;
|
|
541
|
-
ownerId?: string | undefined;
|
|
542
|
-
integrationTools?: string[] | undefined;
|
|
543
|
-
};
|
|
544
|
-
createdAt: Date;
|
|
545
|
-
agentId: string;
|
|
546
|
-
versionNumber: number;
|
|
547
|
-
name?: string | undefined;
|
|
548
|
-
changeMessage?: string | undefined;
|
|
549
|
-
changedFields?: string[] | undefined;
|
|
550
|
-
}[];
|
|
551
|
-
}>;
|
|
552
|
-
/**
|
|
553
|
-
* Response for GET /stored/agents/:agentId/versions/:versionId
|
|
554
|
-
*/
|
|
555
|
-
export declare const getVersionResponseSchema: z.ZodObject<{
|
|
556
|
-
id: z.ZodString;
|
|
557
|
-
agentId: z.ZodString;
|
|
558
|
-
versionNumber: z.ZodNumber;
|
|
559
|
-
name: z.ZodOptional<z.ZodString>;
|
|
560
|
-
snapshot: z.ZodObject<{
|
|
561
226
|
name: z.ZodString;
|
|
562
227
|
description: z.ZodOptional<z.ZodString>;
|
|
563
228
|
instructions: z.ZodString;
|
|
@@ -569,7 +234,7 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
569
234
|
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
570
235
|
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
571
236
|
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
572
|
-
memory: z.ZodOptional<z.ZodString
|
|
237
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
573
238
|
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
574
239
|
sampling: z.ZodOptional<z.ZodObject<{
|
|
575
240
|
type: z.ZodEnum<["ratio", "count"]>;
|
|
@@ -597,20 +262,17 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
597
262
|
rate?: number | undefined;
|
|
598
263
|
} | undefined;
|
|
599
264
|
}>>>;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
id: z.ZodString;
|
|
603
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
265
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
604
267
|
createdAt: z.ZodDate;
|
|
605
|
-
updatedAt: z.ZodDate;
|
|
606
268
|
}, "strip", z.ZodTypeAny, {
|
|
607
269
|
name: string;
|
|
608
270
|
id: string;
|
|
609
271
|
createdAt: Date;
|
|
610
|
-
|
|
272
|
+
agentId: string;
|
|
611
273
|
model: Record<string, unknown>;
|
|
612
274
|
instructions: string;
|
|
613
|
-
|
|
275
|
+
versionNumber: number;
|
|
614
276
|
description?: string | undefined;
|
|
615
277
|
tools?: string[] | undefined;
|
|
616
278
|
agents?: string[] | undefined;
|
|
@@ -618,7 +280,7 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
618
280
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
619
281
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
620
282
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
621
|
-
memory?: string | undefined;
|
|
283
|
+
memory?: Record<string, unknown> | undefined;
|
|
622
284
|
scorers?: Record<string, {
|
|
623
285
|
sampling?: {
|
|
624
286
|
type: "count" | "ratio";
|
|
@@ -626,16 +288,17 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
626
288
|
rate?: number | undefined;
|
|
627
289
|
} | undefined;
|
|
628
290
|
}> | undefined;
|
|
629
|
-
ownerId?: string | undefined;
|
|
630
291
|
integrationTools?: string[] | undefined;
|
|
292
|
+
changeMessage?: string | undefined;
|
|
293
|
+
changedFields?: string[] | undefined;
|
|
631
294
|
}, {
|
|
632
295
|
name: string;
|
|
633
296
|
id: string;
|
|
634
297
|
createdAt: Date;
|
|
635
|
-
|
|
298
|
+
agentId: string;
|
|
636
299
|
model: Record<string, unknown>;
|
|
637
300
|
instructions: string;
|
|
638
|
-
|
|
301
|
+
versionNumber: number;
|
|
639
302
|
description?: string | undefined;
|
|
640
303
|
tools?: string[] | undefined;
|
|
641
304
|
agents?: string[] | undefined;
|
|
@@ -643,7 +306,7 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
643
306
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
644
307
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
645
308
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
646
|
-
memory?: string | undefined;
|
|
309
|
+
memory?: Record<string, unknown> | undefined;
|
|
647
310
|
scorers?: Record<string, {
|
|
648
311
|
sampling?: {
|
|
649
312
|
type: "count" | "ratio";
|
|
@@ -651,22 +314,23 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
651
314
|
rate?: number | undefined;
|
|
652
315
|
} | undefined;
|
|
653
316
|
}> | undefined;
|
|
654
|
-
ownerId?: string | undefined;
|
|
655
317
|
integrationTools?: string[] | undefined;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
createdAt: z.ZodDate;
|
|
318
|
+
changeMessage?: string | undefined;
|
|
319
|
+
changedFields?: string[] | undefined;
|
|
320
|
+
}>, "many">;
|
|
660
321
|
}, "strip", z.ZodTypeAny, {
|
|
661
|
-
|
|
662
|
-
|
|
322
|
+
total: number;
|
|
323
|
+
page: number;
|
|
324
|
+
perPage: number | false;
|
|
325
|
+
hasMore: boolean;
|
|
326
|
+
versions: {
|
|
663
327
|
name: string;
|
|
664
328
|
id: string;
|
|
665
329
|
createdAt: Date;
|
|
666
|
-
|
|
330
|
+
agentId: string;
|
|
667
331
|
model: Record<string, unknown>;
|
|
668
332
|
instructions: string;
|
|
669
|
-
|
|
333
|
+
versionNumber: number;
|
|
670
334
|
description?: string | undefined;
|
|
671
335
|
tools?: string[] | undefined;
|
|
672
336
|
agents?: string[] | undefined;
|
|
@@ -674,7 +338,7 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
674
338
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
675
339
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
676
340
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
677
|
-
memory?: string | undefined;
|
|
341
|
+
memory?: Record<string, unknown> | undefined;
|
|
678
342
|
scorers?: Record<string, {
|
|
679
343
|
sampling?: {
|
|
680
344
|
type: "count" | "ratio";
|
|
@@ -682,25 +346,23 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
682
346
|
rate?: number | undefined;
|
|
683
347
|
} | undefined;
|
|
684
348
|
}> | undefined;
|
|
685
|
-
ownerId?: string | undefined;
|
|
686
349
|
integrationTools?: string[] | undefined;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
versionNumber: number;
|
|
691
|
-
name?: string | undefined;
|
|
692
|
-
changeMessage?: string | undefined;
|
|
693
|
-
changedFields?: string[] | undefined;
|
|
350
|
+
changeMessage?: string | undefined;
|
|
351
|
+
changedFields?: string[] | undefined;
|
|
352
|
+
}[];
|
|
694
353
|
}, {
|
|
695
|
-
|
|
696
|
-
|
|
354
|
+
total: number;
|
|
355
|
+
page: number;
|
|
356
|
+
perPage: number | false;
|
|
357
|
+
hasMore: boolean;
|
|
358
|
+
versions: {
|
|
697
359
|
name: string;
|
|
698
360
|
id: string;
|
|
699
361
|
createdAt: Date;
|
|
700
|
-
|
|
362
|
+
agentId: string;
|
|
701
363
|
model: Record<string, unknown>;
|
|
702
364
|
instructions: string;
|
|
703
|
-
|
|
365
|
+
versionNumber: number;
|
|
704
366
|
description?: string | undefined;
|
|
705
367
|
tools?: string[] | undefined;
|
|
706
368
|
agents?: string[] | undefined;
|
|
@@ -708,7 +370,7 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
708
370
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
709
371
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
710
372
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
711
|
-
memory?: string | undefined;
|
|
373
|
+
memory?: Record<string, unknown> | undefined;
|
|
712
374
|
scorers?: Record<string, {
|
|
713
375
|
sampling?: {
|
|
714
376
|
type: "count" | "ratio";
|
|
@@ -716,13 +378,110 @@ export declare const getVersionResponseSchema: z.ZodObject<{
|
|
|
716
378
|
rate?: number | undefined;
|
|
717
379
|
} | undefined;
|
|
718
380
|
}> | undefined;
|
|
719
|
-
ownerId?: string | undefined;
|
|
720
381
|
integrationTools?: string[] | undefined;
|
|
721
|
-
|
|
382
|
+
changeMessage?: string | undefined;
|
|
383
|
+
changedFields?: string[] | undefined;
|
|
384
|
+
}[];
|
|
385
|
+
}>;
|
|
386
|
+
/**
|
|
387
|
+
* Response for GET /stored/agents/:agentId/versions/:versionId
|
|
388
|
+
*/
|
|
389
|
+
export declare const getVersionResponseSchema: z.ZodObject<{
|
|
390
|
+
id: z.ZodString;
|
|
391
|
+
agentId: z.ZodString;
|
|
392
|
+
versionNumber: z.ZodNumber;
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
instructions: z.ZodString;
|
|
396
|
+
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
397
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
398
|
+
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
399
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
401
|
+
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
402
|
+
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
403
|
+
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
404
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
405
|
+
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
406
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
type: z.ZodEnum<["ratio", "count"]>;
|
|
408
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
type: "count" | "ratio";
|
|
412
|
+
count?: number | undefined;
|
|
413
|
+
rate?: number | undefined;
|
|
414
|
+
}, {
|
|
415
|
+
type: "count" | "ratio";
|
|
416
|
+
count?: number | undefined;
|
|
417
|
+
rate?: number | undefined;
|
|
418
|
+
}>>;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
420
|
+
sampling?: {
|
|
421
|
+
type: "count" | "ratio";
|
|
422
|
+
count?: number | undefined;
|
|
423
|
+
rate?: number | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
sampling?: {
|
|
427
|
+
type: "count" | "ratio";
|
|
428
|
+
count?: number | undefined;
|
|
429
|
+
rate?: number | undefined;
|
|
430
|
+
} | undefined;
|
|
431
|
+
}>>>;
|
|
432
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
433
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
434
|
+
createdAt: z.ZodDate;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
name: string;
|
|
437
|
+
id: string;
|
|
722
438
|
createdAt: Date;
|
|
723
439
|
agentId: string;
|
|
440
|
+
model: Record<string, unknown>;
|
|
441
|
+
instructions: string;
|
|
724
442
|
versionNumber: number;
|
|
725
|
-
|
|
443
|
+
description?: string | undefined;
|
|
444
|
+
tools?: string[] | undefined;
|
|
445
|
+
agents?: string[] | undefined;
|
|
446
|
+
workflows?: string[] | undefined;
|
|
447
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
448
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
449
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
450
|
+
memory?: Record<string, unknown> | undefined;
|
|
451
|
+
scorers?: Record<string, {
|
|
452
|
+
sampling?: {
|
|
453
|
+
type: "count" | "ratio";
|
|
454
|
+
count?: number | undefined;
|
|
455
|
+
rate?: number | undefined;
|
|
456
|
+
} | undefined;
|
|
457
|
+
}> | undefined;
|
|
458
|
+
integrationTools?: string[] | undefined;
|
|
459
|
+
changeMessage?: string | undefined;
|
|
460
|
+
changedFields?: string[] | undefined;
|
|
461
|
+
}, {
|
|
462
|
+
name: string;
|
|
463
|
+
id: string;
|
|
464
|
+
createdAt: Date;
|
|
465
|
+
agentId: string;
|
|
466
|
+
model: Record<string, unknown>;
|
|
467
|
+
instructions: string;
|
|
468
|
+
versionNumber: number;
|
|
469
|
+
description?: string | undefined;
|
|
470
|
+
tools?: string[] | undefined;
|
|
471
|
+
agents?: string[] | undefined;
|
|
472
|
+
workflows?: string[] | undefined;
|
|
473
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
474
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
475
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
476
|
+
memory?: Record<string, unknown> | undefined;
|
|
477
|
+
scorers?: Record<string, {
|
|
478
|
+
sampling?: {
|
|
479
|
+
type: "count" | "ratio";
|
|
480
|
+
count?: number | undefined;
|
|
481
|
+
rate?: number | undefined;
|
|
482
|
+
} | undefined;
|
|
483
|
+
}> | undefined;
|
|
484
|
+
integrationTools?: string[] | undefined;
|
|
726
485
|
changeMessage?: string | undefined;
|
|
727
486
|
changedFields?: string[] | undefined;
|
|
728
487
|
}>;
|
|
@@ -733,8 +492,269 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
733
492
|
id: z.ZodString;
|
|
734
493
|
agentId: z.ZodString;
|
|
735
494
|
versionNumber: z.ZodNumber;
|
|
736
|
-
name: z.
|
|
737
|
-
|
|
495
|
+
name: z.ZodString;
|
|
496
|
+
description: z.ZodOptional<z.ZodString>;
|
|
497
|
+
instructions: z.ZodString;
|
|
498
|
+
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
499
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
500
|
+
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
501
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
502
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
503
|
+
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
504
|
+
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
505
|
+
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
506
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
507
|
+
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
508
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
type: z.ZodEnum<["ratio", "count"]>;
|
|
510
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
511
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
type: "count" | "ratio";
|
|
514
|
+
count?: number | undefined;
|
|
515
|
+
rate?: number | undefined;
|
|
516
|
+
}, {
|
|
517
|
+
type: "count" | "ratio";
|
|
518
|
+
count?: number | undefined;
|
|
519
|
+
rate?: number | undefined;
|
|
520
|
+
}>>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
sampling?: {
|
|
523
|
+
type: "count" | "ratio";
|
|
524
|
+
count?: number | undefined;
|
|
525
|
+
rate?: number | undefined;
|
|
526
|
+
} | undefined;
|
|
527
|
+
}, {
|
|
528
|
+
sampling?: {
|
|
529
|
+
type: "count" | "ratio";
|
|
530
|
+
count?: number | undefined;
|
|
531
|
+
rate?: number | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
}>>>;
|
|
534
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
535
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
536
|
+
createdAt: z.ZodDate;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
name: string;
|
|
539
|
+
id: string;
|
|
540
|
+
createdAt: Date;
|
|
541
|
+
agentId: string;
|
|
542
|
+
model: Record<string, unknown>;
|
|
543
|
+
instructions: string;
|
|
544
|
+
versionNumber: number;
|
|
545
|
+
description?: string | undefined;
|
|
546
|
+
tools?: string[] | undefined;
|
|
547
|
+
agents?: string[] | undefined;
|
|
548
|
+
workflows?: string[] | undefined;
|
|
549
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
550
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
551
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
552
|
+
memory?: Record<string, unknown> | undefined;
|
|
553
|
+
scorers?: Record<string, {
|
|
554
|
+
sampling?: {
|
|
555
|
+
type: "count" | "ratio";
|
|
556
|
+
count?: number | undefined;
|
|
557
|
+
rate?: number | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
}> | undefined;
|
|
560
|
+
integrationTools?: string[] | undefined;
|
|
561
|
+
changeMessage?: string | undefined;
|
|
562
|
+
changedFields?: string[] | undefined;
|
|
563
|
+
}, {
|
|
564
|
+
name: string;
|
|
565
|
+
id: string;
|
|
566
|
+
createdAt: Date;
|
|
567
|
+
agentId: string;
|
|
568
|
+
model: Record<string, unknown>;
|
|
569
|
+
instructions: string;
|
|
570
|
+
versionNumber: number;
|
|
571
|
+
description?: string | undefined;
|
|
572
|
+
tools?: string[] | undefined;
|
|
573
|
+
agents?: string[] | undefined;
|
|
574
|
+
workflows?: string[] | undefined;
|
|
575
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
576
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
577
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
578
|
+
memory?: Record<string, unknown> | undefined;
|
|
579
|
+
scorers?: Record<string, {
|
|
580
|
+
sampling?: {
|
|
581
|
+
type: "count" | "ratio";
|
|
582
|
+
count?: number | undefined;
|
|
583
|
+
rate?: number | undefined;
|
|
584
|
+
} | undefined;
|
|
585
|
+
}> | undefined;
|
|
586
|
+
integrationTools?: string[] | undefined;
|
|
587
|
+
changeMessage?: string | undefined;
|
|
588
|
+
changedFields?: string[] | undefined;
|
|
589
|
+
}>;
|
|
590
|
+
/**
|
|
591
|
+
* Response for POST /stored/agents/:agentId/versions/:versionId/activate
|
|
592
|
+
*/
|
|
593
|
+
export declare const activateVersionResponseSchema: z.ZodObject<{
|
|
594
|
+
success: z.ZodBoolean;
|
|
595
|
+
message: z.ZodString;
|
|
596
|
+
activeVersionId: z.ZodString;
|
|
597
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
|
+
message: string;
|
|
599
|
+
success: boolean;
|
|
600
|
+
activeVersionId: string;
|
|
601
|
+
}, {
|
|
602
|
+
message: string;
|
|
603
|
+
success: boolean;
|
|
604
|
+
activeVersionId: string;
|
|
605
|
+
}>;
|
|
606
|
+
/**
|
|
607
|
+
* Response for POST /stored/agents/:agentId/versions/:versionId/restore
|
|
608
|
+
*/
|
|
609
|
+
export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
agentId: z.ZodString;
|
|
612
|
+
versionNumber: z.ZodNumber;
|
|
613
|
+
name: z.ZodString;
|
|
614
|
+
description: z.ZodOptional<z.ZodString>;
|
|
615
|
+
instructions: z.ZodString;
|
|
616
|
+
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
617
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
618
|
+
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
619
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
620
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
621
|
+
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
622
|
+
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
623
|
+
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
624
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
625
|
+
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
626
|
+
sampling: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
type: z.ZodEnum<["ratio", "count"]>;
|
|
628
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
|
631
|
+
type: "count" | "ratio";
|
|
632
|
+
count?: number | undefined;
|
|
633
|
+
rate?: number | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
type: "count" | "ratio";
|
|
636
|
+
count?: number | undefined;
|
|
637
|
+
rate?: number | undefined;
|
|
638
|
+
}>>;
|
|
639
|
+
}, "strip", z.ZodTypeAny, {
|
|
640
|
+
sampling?: {
|
|
641
|
+
type: "count" | "ratio";
|
|
642
|
+
count?: number | undefined;
|
|
643
|
+
rate?: number | undefined;
|
|
644
|
+
} | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
sampling?: {
|
|
647
|
+
type: "count" | "ratio";
|
|
648
|
+
count?: number | undefined;
|
|
649
|
+
rate?: number | undefined;
|
|
650
|
+
} | undefined;
|
|
651
|
+
}>>>;
|
|
652
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
653
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
654
|
+
createdAt: z.ZodDate;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
name: string;
|
|
657
|
+
id: string;
|
|
658
|
+
createdAt: Date;
|
|
659
|
+
agentId: string;
|
|
660
|
+
model: Record<string, unknown>;
|
|
661
|
+
instructions: string;
|
|
662
|
+
versionNumber: number;
|
|
663
|
+
description?: string | undefined;
|
|
664
|
+
tools?: string[] | undefined;
|
|
665
|
+
agents?: string[] | undefined;
|
|
666
|
+
workflows?: string[] | undefined;
|
|
667
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
668
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
669
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
670
|
+
memory?: Record<string, unknown> | undefined;
|
|
671
|
+
scorers?: Record<string, {
|
|
672
|
+
sampling?: {
|
|
673
|
+
type: "count" | "ratio";
|
|
674
|
+
count?: number | undefined;
|
|
675
|
+
rate?: number | undefined;
|
|
676
|
+
} | undefined;
|
|
677
|
+
}> | undefined;
|
|
678
|
+
integrationTools?: string[] | undefined;
|
|
679
|
+
changeMessage?: string | undefined;
|
|
680
|
+
changedFields?: string[] | undefined;
|
|
681
|
+
}, {
|
|
682
|
+
name: string;
|
|
683
|
+
id: string;
|
|
684
|
+
createdAt: Date;
|
|
685
|
+
agentId: string;
|
|
686
|
+
model: Record<string, unknown>;
|
|
687
|
+
instructions: string;
|
|
688
|
+
versionNumber: number;
|
|
689
|
+
description?: string | undefined;
|
|
690
|
+
tools?: string[] | undefined;
|
|
691
|
+
agents?: string[] | undefined;
|
|
692
|
+
workflows?: string[] | undefined;
|
|
693
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
694
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
695
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
696
|
+
memory?: Record<string, unknown> | undefined;
|
|
697
|
+
scorers?: Record<string, {
|
|
698
|
+
sampling?: {
|
|
699
|
+
type: "count" | "ratio";
|
|
700
|
+
count?: number | undefined;
|
|
701
|
+
rate?: number | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
}> | undefined;
|
|
704
|
+
integrationTools?: string[] | undefined;
|
|
705
|
+
changeMessage?: string | undefined;
|
|
706
|
+
changedFields?: string[] | undefined;
|
|
707
|
+
}>;
|
|
708
|
+
/**
|
|
709
|
+
* Response for DELETE /stored/agents/:agentId/versions/:versionId
|
|
710
|
+
*/
|
|
711
|
+
export declare const deleteVersionResponseSchema: z.ZodObject<{
|
|
712
|
+
success: z.ZodBoolean;
|
|
713
|
+
message: z.ZodString;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
message: string;
|
|
716
|
+
success: boolean;
|
|
717
|
+
}, {
|
|
718
|
+
message: string;
|
|
719
|
+
success: boolean;
|
|
720
|
+
}>;
|
|
721
|
+
/**
|
|
722
|
+
* Single diff entry for version comparison
|
|
723
|
+
*/
|
|
724
|
+
export declare const versionDiffEntrySchema: z.ZodObject<{
|
|
725
|
+
field: z.ZodString;
|
|
726
|
+
previousValue: z.ZodUnknown;
|
|
727
|
+
currentValue: z.ZodUnknown;
|
|
728
|
+
}, "strip", z.ZodTypeAny, {
|
|
729
|
+
field: string;
|
|
730
|
+
previousValue?: unknown;
|
|
731
|
+
currentValue?: unknown;
|
|
732
|
+
}, {
|
|
733
|
+
field: string;
|
|
734
|
+
previousValue?: unknown;
|
|
735
|
+
currentValue?: unknown;
|
|
736
|
+
}>;
|
|
737
|
+
/**
|
|
738
|
+
* Response for GET /stored/agents/:agentId/versions/compare
|
|
739
|
+
*/
|
|
740
|
+
export declare const compareVersionsResponseSchema: z.ZodObject<{
|
|
741
|
+
diffs: z.ZodArray<z.ZodObject<{
|
|
742
|
+
field: z.ZodString;
|
|
743
|
+
previousValue: z.ZodUnknown;
|
|
744
|
+
currentValue: z.ZodUnknown;
|
|
745
|
+
}, "strip", z.ZodTypeAny, {
|
|
746
|
+
field: string;
|
|
747
|
+
previousValue?: unknown;
|
|
748
|
+
currentValue?: unknown;
|
|
749
|
+
}, {
|
|
750
|
+
field: string;
|
|
751
|
+
previousValue?: unknown;
|
|
752
|
+
currentValue?: unknown;
|
|
753
|
+
}>, "many">;
|
|
754
|
+
fromVersion: z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
agentId: z.ZodString;
|
|
757
|
+
versionNumber: z.ZodNumber;
|
|
738
758
|
name: z.ZodString;
|
|
739
759
|
description: z.ZodOptional<z.ZodString>;
|
|
740
760
|
instructions: z.ZodString;
|
|
@@ -746,7 +766,7 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
746
766
|
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
747
767
|
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
748
768
|
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
749
|
-
memory: z.ZodOptional<z.ZodString
|
|
769
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
750
770
|
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
751
771
|
sampling: z.ZodOptional<z.ZodObject<{
|
|
752
772
|
type: z.ZodEnum<["ratio", "count"]>;
|
|
@@ -769,81 +789,22 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
769
789
|
} | undefined;
|
|
770
790
|
}, {
|
|
771
791
|
sampling?: {
|
|
772
|
-
type: "count" | "ratio";
|
|
773
|
-
count?: number | undefined;
|
|
774
|
-
rate?: number | undefined;
|
|
775
|
-
} | undefined;
|
|
776
|
-
}>>>;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
createdAt: z.ZodDate;
|
|
782
|
-
updatedAt: z.ZodDate;
|
|
783
|
-
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
name: string;
|
|
785
|
-
id: string;
|
|
786
|
-
createdAt: Date;
|
|
787
|
-
updatedAt: Date;
|
|
788
|
-
model: Record<string, unknown>;
|
|
789
|
-
instructions: string;
|
|
790
|
-
metadata?: Record<string, unknown> | undefined;
|
|
791
|
-
description?: string | undefined;
|
|
792
|
-
tools?: string[] | undefined;
|
|
793
|
-
agents?: string[] | undefined;
|
|
794
|
-
workflows?: string[] | undefined;
|
|
795
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
796
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
797
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
798
|
-
memory?: string | undefined;
|
|
799
|
-
scorers?: Record<string, {
|
|
800
|
-
sampling?: {
|
|
801
|
-
type: "count" | "ratio";
|
|
802
|
-
count?: number | undefined;
|
|
803
|
-
rate?: number | undefined;
|
|
804
|
-
} | undefined;
|
|
805
|
-
}> | undefined;
|
|
806
|
-
ownerId?: string | undefined;
|
|
807
|
-
integrationTools?: string[] | undefined;
|
|
808
|
-
}, {
|
|
809
|
-
name: string;
|
|
810
|
-
id: string;
|
|
811
|
-
createdAt: Date;
|
|
812
|
-
updatedAt: Date;
|
|
813
|
-
model: Record<string, unknown>;
|
|
814
|
-
instructions: string;
|
|
815
|
-
metadata?: Record<string, unknown> | undefined;
|
|
816
|
-
description?: string | undefined;
|
|
817
|
-
tools?: string[] | undefined;
|
|
818
|
-
agents?: string[] | undefined;
|
|
819
|
-
workflows?: string[] | undefined;
|
|
820
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
821
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
822
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
823
|
-
memory?: string | undefined;
|
|
824
|
-
scorers?: Record<string, {
|
|
825
|
-
sampling?: {
|
|
826
|
-
type: "count" | "ratio";
|
|
827
|
-
count?: number | undefined;
|
|
828
|
-
rate?: number | undefined;
|
|
829
|
-
} | undefined;
|
|
830
|
-
}> | undefined;
|
|
831
|
-
ownerId?: string | undefined;
|
|
832
|
-
integrationTools?: string[] | undefined;
|
|
833
|
-
}>;
|
|
834
|
-
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
835
|
-
changeMessage: z.ZodOptional<z.ZodString>;
|
|
836
|
-
createdAt: z.ZodDate;
|
|
837
|
-
}, "strip", z.ZodTypeAny, {
|
|
838
|
-
id: string;
|
|
839
|
-
snapshot: {
|
|
792
|
+
type: "count" | "ratio";
|
|
793
|
+
count?: number | undefined;
|
|
794
|
+
rate?: number | undefined;
|
|
795
|
+
} | undefined;
|
|
796
|
+
}>>>;
|
|
797
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
798
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
799
|
+
createdAt: z.ZodDate;
|
|
800
|
+
}, "strip", z.ZodTypeAny, {
|
|
840
801
|
name: string;
|
|
841
802
|
id: string;
|
|
842
803
|
createdAt: Date;
|
|
843
|
-
|
|
804
|
+
agentId: string;
|
|
844
805
|
model: Record<string, unknown>;
|
|
845
806
|
instructions: string;
|
|
846
|
-
|
|
807
|
+
versionNumber: number;
|
|
847
808
|
description?: string | undefined;
|
|
848
809
|
tools?: string[] | undefined;
|
|
849
810
|
agents?: string[] | undefined;
|
|
@@ -851,7 +812,7 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
851
812
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
852
813
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
853
814
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
854
|
-
memory?: string | undefined;
|
|
815
|
+
memory?: Record<string, unknown> | undefined;
|
|
855
816
|
scorers?: Record<string, {
|
|
856
817
|
sampling?: {
|
|
857
818
|
type: "count" | "ratio";
|
|
@@ -859,25 +820,17 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
859
820
|
rate?: number | undefined;
|
|
860
821
|
} | undefined;
|
|
861
822
|
}> | undefined;
|
|
862
|
-
ownerId?: string | undefined;
|
|
863
823
|
integrationTools?: string[] | undefined;
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
versionNumber: number;
|
|
868
|
-
name?: string | undefined;
|
|
869
|
-
changeMessage?: string | undefined;
|
|
870
|
-
changedFields?: string[] | undefined;
|
|
871
|
-
}, {
|
|
872
|
-
id: string;
|
|
873
|
-
snapshot: {
|
|
824
|
+
changeMessage?: string | undefined;
|
|
825
|
+
changedFields?: string[] | undefined;
|
|
826
|
+
}, {
|
|
874
827
|
name: string;
|
|
875
828
|
id: string;
|
|
876
829
|
createdAt: Date;
|
|
877
|
-
|
|
830
|
+
agentId: string;
|
|
878
831
|
model: Record<string, unknown>;
|
|
879
832
|
instructions: string;
|
|
880
|
-
|
|
833
|
+
versionNumber: number;
|
|
881
834
|
description?: string | undefined;
|
|
882
835
|
tools?: string[] | undefined;
|
|
883
836
|
agents?: string[] | undefined;
|
|
@@ -885,7 +838,7 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
885
838
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
886
839
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
887
840
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
888
|
-
memory?: string | undefined;
|
|
841
|
+
memory?: Record<string, unknown> | undefined;
|
|
889
842
|
scorers?: Record<string, {
|
|
890
843
|
sampling?: {
|
|
891
844
|
type: "count" | "ratio";
|
|
@@ -893,41 +846,14 @@ export declare const createVersionResponseSchema: z.ZodObject<{
|
|
|
893
846
|
rate?: number | undefined;
|
|
894
847
|
} | undefined;
|
|
895
848
|
}> | undefined;
|
|
896
|
-
ownerId?: string | undefined;
|
|
897
849
|
integrationTools?: string[] | undefined;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
}>;
|
|
906
|
-
/**
|
|
907
|
-
* Response for POST /stored/agents/:agentId/versions/:versionId/activate
|
|
908
|
-
*/
|
|
909
|
-
export declare const activateVersionResponseSchema: z.ZodObject<{
|
|
910
|
-
success: z.ZodBoolean;
|
|
911
|
-
message: z.ZodString;
|
|
912
|
-
activeVersionId: z.ZodString;
|
|
913
|
-
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
message: string;
|
|
915
|
-
success: boolean;
|
|
916
|
-
activeVersionId: string;
|
|
917
|
-
}, {
|
|
918
|
-
message: string;
|
|
919
|
-
success: boolean;
|
|
920
|
-
activeVersionId: string;
|
|
921
|
-
}>;
|
|
922
|
-
/**
|
|
923
|
-
* Response for POST /stored/agents/:agentId/versions/:versionId/restore
|
|
924
|
-
*/
|
|
925
|
-
export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
926
|
-
id: z.ZodString;
|
|
927
|
-
agentId: z.ZodString;
|
|
928
|
-
versionNumber: z.ZodNumber;
|
|
929
|
-
name: z.ZodOptional<z.ZodString>;
|
|
930
|
-
snapshot: z.ZodObject<{
|
|
850
|
+
changeMessage?: string | undefined;
|
|
851
|
+
changedFields?: string[] | undefined;
|
|
852
|
+
}>;
|
|
853
|
+
toVersion: z.ZodObject<{
|
|
854
|
+
id: z.ZodString;
|
|
855
|
+
agentId: z.ZodString;
|
|
856
|
+
versionNumber: z.ZodNumber;
|
|
931
857
|
name: z.ZodString;
|
|
932
858
|
description: z.ZodOptional<z.ZodString>;
|
|
933
859
|
instructions: z.ZodString;
|
|
@@ -939,7 +865,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
939
865
|
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
940
866
|
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
941
867
|
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
942
|
-
memory: z.ZodOptional<z.ZodString
|
|
868
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
943
869
|
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
944
870
|
sampling: z.ZodOptional<z.ZodObject<{
|
|
945
871
|
type: z.ZodEnum<["ratio", "count"]>;
|
|
@@ -967,20 +893,17 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
967
893
|
rate?: number | undefined;
|
|
968
894
|
} | undefined;
|
|
969
895
|
}>>>;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
id: z.ZodString;
|
|
973
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
896
|
+
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
897
|
+
changeMessage: z.ZodOptional<z.ZodString>;
|
|
974
898
|
createdAt: z.ZodDate;
|
|
975
|
-
updatedAt: z.ZodDate;
|
|
976
899
|
}, "strip", z.ZodTypeAny, {
|
|
977
900
|
name: string;
|
|
978
901
|
id: string;
|
|
979
902
|
createdAt: Date;
|
|
980
|
-
|
|
903
|
+
agentId: string;
|
|
981
904
|
model: Record<string, unknown>;
|
|
982
905
|
instructions: string;
|
|
983
|
-
|
|
906
|
+
versionNumber: number;
|
|
984
907
|
description?: string | undefined;
|
|
985
908
|
tools?: string[] | undefined;
|
|
986
909
|
agents?: string[] | undefined;
|
|
@@ -988,7 +911,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
988
911
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
989
912
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
990
913
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
991
|
-
memory?: string | undefined;
|
|
914
|
+
memory?: Record<string, unknown> | undefined;
|
|
992
915
|
scorers?: Record<string, {
|
|
993
916
|
sampling?: {
|
|
994
917
|
type: "count" | "ratio";
|
|
@@ -996,16 +919,17 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
996
919
|
rate?: number | undefined;
|
|
997
920
|
} | undefined;
|
|
998
921
|
}> | undefined;
|
|
999
|
-
ownerId?: string | undefined;
|
|
1000
922
|
integrationTools?: string[] | undefined;
|
|
923
|
+
changeMessage?: string | undefined;
|
|
924
|
+
changedFields?: string[] | undefined;
|
|
1001
925
|
}, {
|
|
1002
926
|
name: string;
|
|
1003
927
|
id: string;
|
|
1004
928
|
createdAt: Date;
|
|
1005
|
-
|
|
929
|
+
agentId: string;
|
|
1006
930
|
model: Record<string, unknown>;
|
|
1007
931
|
instructions: string;
|
|
1008
|
-
|
|
932
|
+
versionNumber: number;
|
|
1009
933
|
description?: string | undefined;
|
|
1010
934
|
tools?: string[] | undefined;
|
|
1011
935
|
agents?: string[] | undefined;
|
|
@@ -1013,7 +937,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1013
937
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1014
938
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1015
939
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
1016
|
-
memory?: string | undefined;
|
|
940
|
+
memory?: Record<string, unknown> | undefined;
|
|
1017
941
|
scorers?: Record<string, {
|
|
1018
942
|
sampling?: {
|
|
1019
943
|
type: "count" | "ratio";
|
|
@@ -1021,22 +945,24 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1021
945
|
rate?: number | undefined;
|
|
1022
946
|
} | undefined;
|
|
1023
947
|
}> | undefined;
|
|
1024
|
-
ownerId?: string | undefined;
|
|
1025
948
|
integrationTools?: string[] | undefined;
|
|
949
|
+
changeMessage?: string | undefined;
|
|
950
|
+
changedFields?: string[] | undefined;
|
|
1026
951
|
}>;
|
|
1027
|
-
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1028
|
-
changeMessage: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
createdAt: z.ZodDate;
|
|
1030
952
|
}, "strip", z.ZodTypeAny, {
|
|
1031
|
-
|
|
1032
|
-
|
|
953
|
+
diffs: {
|
|
954
|
+
field: string;
|
|
955
|
+
previousValue?: unknown;
|
|
956
|
+
currentValue?: unknown;
|
|
957
|
+
}[];
|
|
958
|
+
fromVersion: {
|
|
1033
959
|
name: string;
|
|
1034
960
|
id: string;
|
|
1035
961
|
createdAt: Date;
|
|
1036
|
-
|
|
962
|
+
agentId: string;
|
|
1037
963
|
model: Record<string, unknown>;
|
|
1038
964
|
instructions: string;
|
|
1039
|
-
|
|
965
|
+
versionNumber: number;
|
|
1040
966
|
description?: string | undefined;
|
|
1041
967
|
tools?: string[] | undefined;
|
|
1042
968
|
agents?: string[] | undefined;
|
|
@@ -1044,7 +970,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1044
970
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1045
971
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1046
972
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
1047
|
-
memory?: string | undefined;
|
|
973
|
+
memory?: Record<string, unknown> | undefined;
|
|
1048
974
|
scorers?: Record<string, {
|
|
1049
975
|
sampling?: {
|
|
1050
976
|
type: "count" | "ratio";
|
|
@@ -1052,25 +978,18 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1052
978
|
rate?: number | undefined;
|
|
1053
979
|
} | undefined;
|
|
1054
980
|
}> | undefined;
|
|
1055
|
-
ownerId?: string | undefined;
|
|
1056
981
|
integrationTools?: string[] | undefined;
|
|
982
|
+
changeMessage?: string | undefined;
|
|
983
|
+
changedFields?: string[] | undefined;
|
|
1057
984
|
};
|
|
1058
|
-
|
|
1059
|
-
agentId: string;
|
|
1060
|
-
versionNumber: number;
|
|
1061
|
-
name?: string | undefined;
|
|
1062
|
-
changeMessage?: string | undefined;
|
|
1063
|
-
changedFields?: string[] | undefined;
|
|
1064
|
-
}, {
|
|
1065
|
-
id: string;
|
|
1066
|
-
snapshot: {
|
|
985
|
+
toVersion: {
|
|
1067
986
|
name: string;
|
|
1068
987
|
id: string;
|
|
1069
988
|
createdAt: Date;
|
|
1070
|
-
|
|
989
|
+
agentId: string;
|
|
1071
990
|
model: Record<string, unknown>;
|
|
1072
991
|
instructions: string;
|
|
1073
|
-
|
|
992
|
+
versionNumber: number;
|
|
1074
993
|
description?: string | undefined;
|
|
1075
994
|
tools?: string[] | undefined;
|
|
1076
995
|
agents?: string[] | undefined;
|
|
@@ -1078,7 +997,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1078
997
|
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1079
998
|
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1080
999
|
defaultOptions?: Record<string, unknown> | undefined;
|
|
1081
|
-
memory?: string | undefined;
|
|
1000
|
+
memory?: Record<string, unknown> | undefined;
|
|
1082
1001
|
scorers?: Record<string, {
|
|
1083
1002
|
sampling?: {
|
|
1084
1003
|
type: "count" | "ratio";
|
|
@@ -1086,483 +1005,7 @@ export declare const restoreVersionResponseSchema: z.ZodObject<{
|
|
|
1086
1005
|
rate?: number | undefined;
|
|
1087
1006
|
} | undefined;
|
|
1088
1007
|
}> | undefined;
|
|
1089
|
-
ownerId?: string | undefined;
|
|
1090
1008
|
integrationTools?: string[] | undefined;
|
|
1091
|
-
};
|
|
1092
|
-
createdAt: Date;
|
|
1093
|
-
agentId: string;
|
|
1094
|
-
versionNumber: number;
|
|
1095
|
-
name?: string | undefined;
|
|
1096
|
-
changeMessage?: string | undefined;
|
|
1097
|
-
changedFields?: string[] | undefined;
|
|
1098
|
-
}>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Response for DELETE /stored/agents/:agentId/versions/:versionId
|
|
1101
|
-
*/
|
|
1102
|
-
export declare const deleteVersionResponseSchema: z.ZodObject<{
|
|
1103
|
-
success: z.ZodBoolean;
|
|
1104
|
-
message: z.ZodString;
|
|
1105
|
-
}, "strip", z.ZodTypeAny, {
|
|
1106
|
-
message: string;
|
|
1107
|
-
success: boolean;
|
|
1108
|
-
}, {
|
|
1109
|
-
message: string;
|
|
1110
|
-
success: boolean;
|
|
1111
|
-
}>;
|
|
1112
|
-
/**
|
|
1113
|
-
* Single diff entry for version comparison
|
|
1114
|
-
*/
|
|
1115
|
-
export declare const versionDiffEntrySchema: z.ZodObject<{
|
|
1116
|
-
field: z.ZodString;
|
|
1117
|
-
previousValue: z.ZodUnknown;
|
|
1118
|
-
currentValue: z.ZodUnknown;
|
|
1119
|
-
}, "strip", z.ZodTypeAny, {
|
|
1120
|
-
field: string;
|
|
1121
|
-
previousValue?: unknown;
|
|
1122
|
-
currentValue?: unknown;
|
|
1123
|
-
}, {
|
|
1124
|
-
field: string;
|
|
1125
|
-
previousValue?: unknown;
|
|
1126
|
-
currentValue?: unknown;
|
|
1127
|
-
}>;
|
|
1128
|
-
/**
|
|
1129
|
-
* Response for GET /stored/agents/:agentId/versions/compare
|
|
1130
|
-
*/
|
|
1131
|
-
export declare const compareVersionsResponseSchema: z.ZodObject<{
|
|
1132
|
-
diffs: z.ZodArray<z.ZodObject<{
|
|
1133
|
-
field: z.ZodString;
|
|
1134
|
-
previousValue: z.ZodUnknown;
|
|
1135
|
-
currentValue: z.ZodUnknown;
|
|
1136
|
-
}, "strip", z.ZodTypeAny, {
|
|
1137
|
-
field: string;
|
|
1138
|
-
previousValue?: unknown;
|
|
1139
|
-
currentValue?: unknown;
|
|
1140
|
-
}, {
|
|
1141
|
-
field: string;
|
|
1142
|
-
previousValue?: unknown;
|
|
1143
|
-
currentValue?: unknown;
|
|
1144
|
-
}>, "many">;
|
|
1145
|
-
fromVersion: z.ZodObject<{
|
|
1146
|
-
id: z.ZodString;
|
|
1147
|
-
agentId: z.ZodString;
|
|
1148
|
-
versionNumber: z.ZodNumber;
|
|
1149
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1150
|
-
snapshot: z.ZodObject<{
|
|
1151
|
-
name: z.ZodString;
|
|
1152
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1153
|
-
instructions: z.ZodString;
|
|
1154
|
-
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1155
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1156
|
-
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1157
|
-
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1158
|
-
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1159
|
-
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1160
|
-
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
1161
|
-
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
1162
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1164
|
-
sampling: z.ZodOptional<z.ZodObject<{
|
|
1165
|
-
type: z.ZodEnum<["ratio", "count"]>;
|
|
1166
|
-
rate: z.ZodOptional<z.ZodNumber>;
|
|
1167
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
-
}, "strip", z.ZodTypeAny, {
|
|
1169
|
-
type: "count" | "ratio";
|
|
1170
|
-
count?: number | undefined;
|
|
1171
|
-
rate?: number | undefined;
|
|
1172
|
-
}, {
|
|
1173
|
-
type: "count" | "ratio";
|
|
1174
|
-
count?: number | undefined;
|
|
1175
|
-
rate?: number | undefined;
|
|
1176
|
-
}>>;
|
|
1177
|
-
}, "strip", z.ZodTypeAny, {
|
|
1178
|
-
sampling?: {
|
|
1179
|
-
type: "count" | "ratio";
|
|
1180
|
-
count?: number | undefined;
|
|
1181
|
-
rate?: number | undefined;
|
|
1182
|
-
} | undefined;
|
|
1183
|
-
}, {
|
|
1184
|
-
sampling?: {
|
|
1185
|
-
type: "count" | "ratio";
|
|
1186
|
-
count?: number | undefined;
|
|
1187
|
-
rate?: number | undefined;
|
|
1188
|
-
} | undefined;
|
|
1189
|
-
}>>>;
|
|
1190
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1191
|
-
} & {
|
|
1192
|
-
id: z.ZodString;
|
|
1193
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
1194
|
-
createdAt: z.ZodDate;
|
|
1195
|
-
updatedAt: z.ZodDate;
|
|
1196
|
-
}, "strip", z.ZodTypeAny, {
|
|
1197
|
-
name: string;
|
|
1198
|
-
id: string;
|
|
1199
|
-
createdAt: Date;
|
|
1200
|
-
updatedAt: Date;
|
|
1201
|
-
model: Record<string, unknown>;
|
|
1202
|
-
instructions: string;
|
|
1203
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1204
|
-
description?: string | undefined;
|
|
1205
|
-
tools?: string[] | undefined;
|
|
1206
|
-
agents?: string[] | undefined;
|
|
1207
|
-
workflows?: string[] | undefined;
|
|
1208
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1209
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1210
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1211
|
-
memory?: string | undefined;
|
|
1212
|
-
scorers?: Record<string, {
|
|
1213
|
-
sampling?: {
|
|
1214
|
-
type: "count" | "ratio";
|
|
1215
|
-
count?: number | undefined;
|
|
1216
|
-
rate?: number | undefined;
|
|
1217
|
-
} | undefined;
|
|
1218
|
-
}> | undefined;
|
|
1219
|
-
ownerId?: string | undefined;
|
|
1220
|
-
integrationTools?: string[] | undefined;
|
|
1221
|
-
}, {
|
|
1222
|
-
name: string;
|
|
1223
|
-
id: string;
|
|
1224
|
-
createdAt: Date;
|
|
1225
|
-
updatedAt: Date;
|
|
1226
|
-
model: Record<string, unknown>;
|
|
1227
|
-
instructions: string;
|
|
1228
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1229
|
-
description?: string | undefined;
|
|
1230
|
-
tools?: string[] | undefined;
|
|
1231
|
-
agents?: string[] | undefined;
|
|
1232
|
-
workflows?: string[] | undefined;
|
|
1233
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1234
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1235
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1236
|
-
memory?: string | undefined;
|
|
1237
|
-
scorers?: Record<string, {
|
|
1238
|
-
sampling?: {
|
|
1239
|
-
type: "count" | "ratio";
|
|
1240
|
-
count?: number | undefined;
|
|
1241
|
-
rate?: number | undefined;
|
|
1242
|
-
} | undefined;
|
|
1243
|
-
}> | undefined;
|
|
1244
|
-
ownerId?: string | undefined;
|
|
1245
|
-
integrationTools?: string[] | undefined;
|
|
1246
|
-
}>;
|
|
1247
|
-
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1248
|
-
changeMessage: z.ZodOptional<z.ZodString>;
|
|
1249
|
-
createdAt: z.ZodDate;
|
|
1250
|
-
}, "strip", z.ZodTypeAny, {
|
|
1251
|
-
id: string;
|
|
1252
|
-
snapshot: {
|
|
1253
|
-
name: string;
|
|
1254
|
-
id: string;
|
|
1255
|
-
createdAt: Date;
|
|
1256
|
-
updatedAt: Date;
|
|
1257
|
-
model: Record<string, unknown>;
|
|
1258
|
-
instructions: string;
|
|
1259
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1260
|
-
description?: string | undefined;
|
|
1261
|
-
tools?: string[] | undefined;
|
|
1262
|
-
agents?: string[] | undefined;
|
|
1263
|
-
workflows?: string[] | undefined;
|
|
1264
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1265
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1266
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1267
|
-
memory?: string | undefined;
|
|
1268
|
-
scorers?: Record<string, {
|
|
1269
|
-
sampling?: {
|
|
1270
|
-
type: "count" | "ratio";
|
|
1271
|
-
count?: number | undefined;
|
|
1272
|
-
rate?: number | undefined;
|
|
1273
|
-
} | undefined;
|
|
1274
|
-
}> | undefined;
|
|
1275
|
-
ownerId?: string | undefined;
|
|
1276
|
-
integrationTools?: string[] | undefined;
|
|
1277
|
-
};
|
|
1278
|
-
createdAt: Date;
|
|
1279
|
-
agentId: string;
|
|
1280
|
-
versionNumber: number;
|
|
1281
|
-
name?: string | undefined;
|
|
1282
|
-
changeMessage?: string | undefined;
|
|
1283
|
-
changedFields?: string[] | undefined;
|
|
1284
|
-
}, {
|
|
1285
|
-
id: string;
|
|
1286
|
-
snapshot: {
|
|
1287
|
-
name: string;
|
|
1288
|
-
id: string;
|
|
1289
|
-
createdAt: Date;
|
|
1290
|
-
updatedAt: Date;
|
|
1291
|
-
model: Record<string, unknown>;
|
|
1292
|
-
instructions: string;
|
|
1293
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1294
|
-
description?: string | undefined;
|
|
1295
|
-
tools?: string[] | undefined;
|
|
1296
|
-
agents?: string[] | undefined;
|
|
1297
|
-
workflows?: string[] | undefined;
|
|
1298
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1299
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1300
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1301
|
-
memory?: string | undefined;
|
|
1302
|
-
scorers?: Record<string, {
|
|
1303
|
-
sampling?: {
|
|
1304
|
-
type: "count" | "ratio";
|
|
1305
|
-
count?: number | undefined;
|
|
1306
|
-
rate?: number | undefined;
|
|
1307
|
-
} | undefined;
|
|
1308
|
-
}> | undefined;
|
|
1309
|
-
ownerId?: string | undefined;
|
|
1310
|
-
integrationTools?: string[] | undefined;
|
|
1311
|
-
};
|
|
1312
|
-
createdAt: Date;
|
|
1313
|
-
agentId: string;
|
|
1314
|
-
versionNumber: number;
|
|
1315
|
-
name?: string | undefined;
|
|
1316
|
-
changeMessage?: string | undefined;
|
|
1317
|
-
changedFields?: string[] | undefined;
|
|
1318
|
-
}>;
|
|
1319
|
-
toVersion: z.ZodObject<{
|
|
1320
|
-
id: z.ZodString;
|
|
1321
|
-
agentId: z.ZodString;
|
|
1322
|
-
versionNumber: z.ZodNumber;
|
|
1323
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1324
|
-
snapshot: z.ZodObject<{
|
|
1325
|
-
name: z.ZodString;
|
|
1326
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1327
|
-
instructions: z.ZodString;
|
|
1328
|
-
model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1329
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1330
|
-
defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1331
|
-
workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1332
|
-
agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1333
|
-
integrationTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1334
|
-
inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
1335
|
-
outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
1336
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
1337
|
-
scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1338
|
-
sampling: z.ZodOptional<z.ZodObject<{
|
|
1339
|
-
type: z.ZodEnum<["ratio", "count"]>;
|
|
1340
|
-
rate: z.ZodOptional<z.ZodNumber>;
|
|
1341
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
1342
|
-
}, "strip", z.ZodTypeAny, {
|
|
1343
|
-
type: "count" | "ratio";
|
|
1344
|
-
count?: number | undefined;
|
|
1345
|
-
rate?: number | undefined;
|
|
1346
|
-
}, {
|
|
1347
|
-
type: "count" | "ratio";
|
|
1348
|
-
count?: number | undefined;
|
|
1349
|
-
rate?: number | undefined;
|
|
1350
|
-
}>>;
|
|
1351
|
-
}, "strip", z.ZodTypeAny, {
|
|
1352
|
-
sampling?: {
|
|
1353
|
-
type: "count" | "ratio";
|
|
1354
|
-
count?: number | undefined;
|
|
1355
|
-
rate?: number | undefined;
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
}, {
|
|
1358
|
-
sampling?: {
|
|
1359
|
-
type: "count" | "ratio";
|
|
1360
|
-
count?: number | undefined;
|
|
1361
|
-
rate?: number | undefined;
|
|
1362
|
-
} | undefined;
|
|
1363
|
-
}>>>;
|
|
1364
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1365
|
-
} & {
|
|
1366
|
-
id: z.ZodString;
|
|
1367
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
1368
|
-
createdAt: z.ZodDate;
|
|
1369
|
-
updatedAt: z.ZodDate;
|
|
1370
|
-
}, "strip", z.ZodTypeAny, {
|
|
1371
|
-
name: string;
|
|
1372
|
-
id: string;
|
|
1373
|
-
createdAt: Date;
|
|
1374
|
-
updatedAt: Date;
|
|
1375
|
-
model: Record<string, unknown>;
|
|
1376
|
-
instructions: string;
|
|
1377
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1378
|
-
description?: string | undefined;
|
|
1379
|
-
tools?: string[] | undefined;
|
|
1380
|
-
agents?: string[] | undefined;
|
|
1381
|
-
workflows?: string[] | undefined;
|
|
1382
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1383
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1384
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1385
|
-
memory?: string | undefined;
|
|
1386
|
-
scorers?: Record<string, {
|
|
1387
|
-
sampling?: {
|
|
1388
|
-
type: "count" | "ratio";
|
|
1389
|
-
count?: number | undefined;
|
|
1390
|
-
rate?: number | undefined;
|
|
1391
|
-
} | undefined;
|
|
1392
|
-
}> | undefined;
|
|
1393
|
-
ownerId?: string | undefined;
|
|
1394
|
-
integrationTools?: string[] | undefined;
|
|
1395
|
-
}, {
|
|
1396
|
-
name: string;
|
|
1397
|
-
id: string;
|
|
1398
|
-
createdAt: Date;
|
|
1399
|
-
updatedAt: Date;
|
|
1400
|
-
model: Record<string, unknown>;
|
|
1401
|
-
instructions: string;
|
|
1402
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1403
|
-
description?: string | undefined;
|
|
1404
|
-
tools?: string[] | undefined;
|
|
1405
|
-
agents?: string[] | undefined;
|
|
1406
|
-
workflows?: string[] | undefined;
|
|
1407
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1408
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1409
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1410
|
-
memory?: string | undefined;
|
|
1411
|
-
scorers?: Record<string, {
|
|
1412
|
-
sampling?: {
|
|
1413
|
-
type: "count" | "ratio";
|
|
1414
|
-
count?: number | undefined;
|
|
1415
|
-
rate?: number | undefined;
|
|
1416
|
-
} | undefined;
|
|
1417
|
-
}> | undefined;
|
|
1418
|
-
ownerId?: string | undefined;
|
|
1419
|
-
integrationTools?: string[] | undefined;
|
|
1420
|
-
}>;
|
|
1421
|
-
changedFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1422
|
-
changeMessage: z.ZodOptional<z.ZodString>;
|
|
1423
|
-
createdAt: z.ZodDate;
|
|
1424
|
-
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
id: string;
|
|
1426
|
-
snapshot: {
|
|
1427
|
-
name: string;
|
|
1428
|
-
id: string;
|
|
1429
|
-
createdAt: Date;
|
|
1430
|
-
updatedAt: Date;
|
|
1431
|
-
model: Record<string, unknown>;
|
|
1432
|
-
instructions: string;
|
|
1433
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1434
|
-
description?: string | undefined;
|
|
1435
|
-
tools?: string[] | undefined;
|
|
1436
|
-
agents?: string[] | undefined;
|
|
1437
|
-
workflows?: string[] | undefined;
|
|
1438
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1439
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1440
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1441
|
-
memory?: string | undefined;
|
|
1442
|
-
scorers?: Record<string, {
|
|
1443
|
-
sampling?: {
|
|
1444
|
-
type: "count" | "ratio";
|
|
1445
|
-
count?: number | undefined;
|
|
1446
|
-
rate?: number | undefined;
|
|
1447
|
-
} | undefined;
|
|
1448
|
-
}> | undefined;
|
|
1449
|
-
ownerId?: string | undefined;
|
|
1450
|
-
integrationTools?: string[] | undefined;
|
|
1451
|
-
};
|
|
1452
|
-
createdAt: Date;
|
|
1453
|
-
agentId: string;
|
|
1454
|
-
versionNumber: number;
|
|
1455
|
-
name?: string | undefined;
|
|
1456
|
-
changeMessage?: string | undefined;
|
|
1457
|
-
changedFields?: string[] | undefined;
|
|
1458
|
-
}, {
|
|
1459
|
-
id: string;
|
|
1460
|
-
snapshot: {
|
|
1461
|
-
name: string;
|
|
1462
|
-
id: string;
|
|
1463
|
-
createdAt: Date;
|
|
1464
|
-
updatedAt: Date;
|
|
1465
|
-
model: Record<string, unknown>;
|
|
1466
|
-
instructions: string;
|
|
1467
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1468
|
-
description?: string | undefined;
|
|
1469
|
-
tools?: string[] | undefined;
|
|
1470
|
-
agents?: string[] | undefined;
|
|
1471
|
-
workflows?: string[] | undefined;
|
|
1472
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1473
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1474
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1475
|
-
memory?: string | undefined;
|
|
1476
|
-
scorers?: Record<string, {
|
|
1477
|
-
sampling?: {
|
|
1478
|
-
type: "count" | "ratio";
|
|
1479
|
-
count?: number | undefined;
|
|
1480
|
-
rate?: number | undefined;
|
|
1481
|
-
} | undefined;
|
|
1482
|
-
}> | undefined;
|
|
1483
|
-
ownerId?: string | undefined;
|
|
1484
|
-
integrationTools?: string[] | undefined;
|
|
1485
|
-
};
|
|
1486
|
-
createdAt: Date;
|
|
1487
|
-
agentId: string;
|
|
1488
|
-
versionNumber: number;
|
|
1489
|
-
name?: string | undefined;
|
|
1490
|
-
changeMessage?: string | undefined;
|
|
1491
|
-
changedFields?: string[] | undefined;
|
|
1492
|
-
}>;
|
|
1493
|
-
}, "strip", z.ZodTypeAny, {
|
|
1494
|
-
diffs: {
|
|
1495
|
-
field: string;
|
|
1496
|
-
previousValue?: unknown;
|
|
1497
|
-
currentValue?: unknown;
|
|
1498
|
-
}[];
|
|
1499
|
-
fromVersion: {
|
|
1500
|
-
id: string;
|
|
1501
|
-
snapshot: {
|
|
1502
|
-
name: string;
|
|
1503
|
-
id: string;
|
|
1504
|
-
createdAt: Date;
|
|
1505
|
-
updatedAt: Date;
|
|
1506
|
-
model: Record<string, unknown>;
|
|
1507
|
-
instructions: string;
|
|
1508
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1509
|
-
description?: string | undefined;
|
|
1510
|
-
tools?: string[] | undefined;
|
|
1511
|
-
agents?: string[] | undefined;
|
|
1512
|
-
workflows?: string[] | undefined;
|
|
1513
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1514
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1515
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1516
|
-
memory?: string | undefined;
|
|
1517
|
-
scorers?: Record<string, {
|
|
1518
|
-
sampling?: {
|
|
1519
|
-
type: "count" | "ratio";
|
|
1520
|
-
count?: number | undefined;
|
|
1521
|
-
rate?: number | undefined;
|
|
1522
|
-
} | undefined;
|
|
1523
|
-
}> | undefined;
|
|
1524
|
-
ownerId?: string | undefined;
|
|
1525
|
-
integrationTools?: string[] | undefined;
|
|
1526
|
-
};
|
|
1527
|
-
createdAt: Date;
|
|
1528
|
-
agentId: string;
|
|
1529
|
-
versionNumber: number;
|
|
1530
|
-
name?: string | undefined;
|
|
1531
|
-
changeMessage?: string | undefined;
|
|
1532
|
-
changedFields?: string[] | undefined;
|
|
1533
|
-
};
|
|
1534
|
-
toVersion: {
|
|
1535
|
-
id: string;
|
|
1536
|
-
snapshot: {
|
|
1537
|
-
name: string;
|
|
1538
|
-
id: string;
|
|
1539
|
-
createdAt: Date;
|
|
1540
|
-
updatedAt: Date;
|
|
1541
|
-
model: Record<string, unknown>;
|
|
1542
|
-
instructions: string;
|
|
1543
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1544
|
-
description?: string | undefined;
|
|
1545
|
-
tools?: string[] | undefined;
|
|
1546
|
-
agents?: string[] | undefined;
|
|
1547
|
-
workflows?: string[] | undefined;
|
|
1548
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1549
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1550
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1551
|
-
memory?: string | undefined;
|
|
1552
|
-
scorers?: Record<string, {
|
|
1553
|
-
sampling?: {
|
|
1554
|
-
type: "count" | "ratio";
|
|
1555
|
-
count?: number | undefined;
|
|
1556
|
-
rate?: number | undefined;
|
|
1557
|
-
} | undefined;
|
|
1558
|
-
}> | undefined;
|
|
1559
|
-
ownerId?: string | undefined;
|
|
1560
|
-
integrationTools?: string[] | undefined;
|
|
1561
|
-
};
|
|
1562
|
-
createdAt: Date;
|
|
1563
|
-
agentId: string;
|
|
1564
|
-
versionNumber: number;
|
|
1565
|
-
name?: string | undefined;
|
|
1566
1009
|
changeMessage?: string | undefined;
|
|
1567
1010
|
changedFields?: string[] | undefined;
|
|
1568
1011
|
};
|
|
@@ -1573,72 +1016,56 @@ export declare const compareVersionsResponseSchema: z.ZodObject<{
|
|
|
1573
1016
|
currentValue?: unknown;
|
|
1574
1017
|
}[];
|
|
1575
1018
|
fromVersion: {
|
|
1019
|
+
name: string;
|
|
1576
1020
|
id: string;
|
|
1577
|
-
snapshot: {
|
|
1578
|
-
name: string;
|
|
1579
|
-
id: string;
|
|
1580
|
-
createdAt: Date;
|
|
1581
|
-
updatedAt: Date;
|
|
1582
|
-
model: Record<string, unknown>;
|
|
1583
|
-
instructions: string;
|
|
1584
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1585
|
-
description?: string | undefined;
|
|
1586
|
-
tools?: string[] | undefined;
|
|
1587
|
-
agents?: string[] | undefined;
|
|
1588
|
-
workflows?: string[] | undefined;
|
|
1589
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1590
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1591
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1592
|
-
memory?: string | undefined;
|
|
1593
|
-
scorers?: Record<string, {
|
|
1594
|
-
sampling?: {
|
|
1595
|
-
type: "count" | "ratio";
|
|
1596
|
-
count?: number | undefined;
|
|
1597
|
-
rate?: number | undefined;
|
|
1598
|
-
} | undefined;
|
|
1599
|
-
}> | undefined;
|
|
1600
|
-
ownerId?: string | undefined;
|
|
1601
|
-
integrationTools?: string[] | undefined;
|
|
1602
|
-
};
|
|
1603
1021
|
createdAt: Date;
|
|
1604
1022
|
agentId: string;
|
|
1023
|
+
model: Record<string, unknown>;
|
|
1024
|
+
instructions: string;
|
|
1605
1025
|
versionNumber: number;
|
|
1606
|
-
|
|
1026
|
+
description?: string | undefined;
|
|
1027
|
+
tools?: string[] | undefined;
|
|
1028
|
+
agents?: string[] | undefined;
|
|
1029
|
+
workflows?: string[] | undefined;
|
|
1030
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1031
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1032
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
1033
|
+
memory?: Record<string, unknown> | undefined;
|
|
1034
|
+
scorers?: Record<string, {
|
|
1035
|
+
sampling?: {
|
|
1036
|
+
type: "count" | "ratio";
|
|
1037
|
+
count?: number | undefined;
|
|
1038
|
+
rate?: number | undefined;
|
|
1039
|
+
} | undefined;
|
|
1040
|
+
}> | undefined;
|
|
1041
|
+
integrationTools?: string[] | undefined;
|
|
1607
1042
|
changeMessage?: string | undefined;
|
|
1608
1043
|
changedFields?: string[] | undefined;
|
|
1609
1044
|
};
|
|
1610
1045
|
toVersion: {
|
|
1046
|
+
name: string;
|
|
1611
1047
|
id: string;
|
|
1612
|
-
snapshot: {
|
|
1613
|
-
name: string;
|
|
1614
|
-
id: string;
|
|
1615
|
-
createdAt: Date;
|
|
1616
|
-
updatedAt: Date;
|
|
1617
|
-
model: Record<string, unknown>;
|
|
1618
|
-
instructions: string;
|
|
1619
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1620
|
-
description?: string | undefined;
|
|
1621
|
-
tools?: string[] | undefined;
|
|
1622
|
-
agents?: string[] | undefined;
|
|
1623
|
-
workflows?: string[] | undefined;
|
|
1624
|
-
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1625
|
-
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1626
|
-
defaultOptions?: Record<string, unknown> | undefined;
|
|
1627
|
-
memory?: string | undefined;
|
|
1628
|
-
scorers?: Record<string, {
|
|
1629
|
-
sampling?: {
|
|
1630
|
-
type: "count" | "ratio";
|
|
1631
|
-
count?: number | undefined;
|
|
1632
|
-
rate?: number | undefined;
|
|
1633
|
-
} | undefined;
|
|
1634
|
-
}> | undefined;
|
|
1635
|
-
ownerId?: string | undefined;
|
|
1636
|
-
integrationTools?: string[] | undefined;
|
|
1637
|
-
};
|
|
1638
1048
|
createdAt: Date;
|
|
1639
1049
|
agentId: string;
|
|
1050
|
+
model: Record<string, unknown>;
|
|
1051
|
+
instructions: string;
|
|
1640
1052
|
versionNumber: number;
|
|
1641
|
-
|
|
1053
|
+
description?: string | undefined;
|
|
1054
|
+
tools?: string[] | undefined;
|
|
1055
|
+
agents?: string[] | undefined;
|
|
1056
|
+
workflows?: string[] | undefined;
|
|
1057
|
+
inputProcessors?: Record<string, unknown>[] | undefined;
|
|
1058
|
+
outputProcessors?: Record<string, unknown>[] | undefined;
|
|
1059
|
+
defaultOptions?: Record<string, unknown> | undefined;
|
|
1060
|
+
memory?: Record<string, unknown> | undefined;
|
|
1061
|
+
scorers?: Record<string, {
|
|
1062
|
+
sampling?: {
|
|
1063
|
+
type: "count" | "ratio";
|
|
1064
|
+
count?: number | undefined;
|
|
1065
|
+
rate?: number | undefined;
|
|
1066
|
+
} | undefined;
|
|
1067
|
+
}> | undefined;
|
|
1068
|
+
integrationTools?: string[] | undefined;
|
|
1642
1069
|
changeMessage?: string | undefined;
|
|
1643
1070
|
changedFields?: string[] | undefined;
|
|
1644
1071
|
};
|