@mastra/server 0.0.0-fix-issue-10434-concurrent-write-corruption-20251124213939 → 0.0.0-fix-request-context-as-query-key-20251209093005

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 (209) hide show
  1. package/CHANGELOG.md +326 -3
  2. package/dist/{chunk-6DTV6NEW.js → chunk-3SFLFUKY.js} +4 -4
  3. package/dist/{chunk-6DTV6NEW.js.map → chunk-3SFLFUKY.js.map} +1 -1
  4. package/dist/chunk-4W2SM6CG.js +294 -0
  5. package/dist/chunk-4W2SM6CG.js.map +1 -0
  6. package/dist/{chunk-G7BPNX2V.js → chunk-6YWE7UPT.js} +16 -3
  7. package/dist/chunk-6YWE7UPT.js.map +1 -0
  8. package/dist/{chunk-FXDZLX2Y.js → chunk-7N3PD4SV.js} +16 -12
  9. package/dist/chunk-7N3PD4SV.js.map +1 -0
  10. package/dist/{chunk-4ECGVOJZ.cjs → chunk-C3D3X2L5.cjs} +14 -12
  11. package/dist/chunk-C3D3X2L5.cjs.map +1 -0
  12. package/dist/{chunk-ZLRTFRL4.js → chunk-C4J473OZ.js} +50 -37
  13. package/dist/chunk-C4J473OZ.js.map +1 -0
  14. package/dist/{chunk-3R5EV3HV.js → chunk-CT5VG7NT.js} +10 -8
  15. package/dist/chunk-CT5VG7NT.js.map +1 -0
  16. package/dist/{chunk-KB5NSROG.cjs → chunk-DHWPHLGF.cjs} +23 -23
  17. package/dist/{chunk-KB5NSROG.cjs.map → chunk-DHWPHLGF.cjs.map} +1 -1
  18. package/dist/{chunk-I5VZ5SKG.js → chunk-DRUNNM4C.js} +4 -4
  19. package/dist/{chunk-I5VZ5SKG.js.map → chunk-DRUNNM4C.js.map} +1 -1
  20. package/dist/{chunk-TOCYBDP2.js → chunk-ER3QM7DD.js} +4 -4
  21. package/dist/{chunk-TOCYBDP2.js.map → chunk-ER3QM7DD.js.map} +1 -1
  22. package/dist/{chunk-Z36N2OQA.cjs → chunk-ESZ6V5WB.cjs} +45 -36
  23. package/dist/chunk-ESZ6V5WB.cjs.map +1 -0
  24. package/dist/{chunk-7WTETKRM.cjs → chunk-F4H7J6YV.cjs} +82 -71
  25. package/dist/chunk-F4H7J6YV.cjs.map +1 -0
  26. package/dist/{chunk-QGWCNTG6.cjs → chunk-FMTSLS25.cjs} +120 -107
  27. package/dist/chunk-FMTSLS25.cjs.map +1 -0
  28. package/dist/chunk-FPCGLPLJ.cjs +297 -0
  29. package/dist/chunk-FPCGLPLJ.cjs.map +1 -0
  30. package/dist/{chunk-ASZUOBKV.js → chunk-FYY54HZC.js} +4 -4
  31. package/dist/{chunk-ASZUOBKV.js.map → chunk-FYY54HZC.js.map} +1 -1
  32. package/dist/{chunk-ECIVTQ4E.js → chunk-GFF2I6UD.js} +4 -4
  33. package/dist/{chunk-ECIVTQ4E.js.map → chunk-GFF2I6UD.js.map} +1 -1
  34. package/dist/{chunk-UJNHKFBR.cjs → chunk-H2RMXG2Q.cjs} +2 -2
  35. package/dist/{chunk-UJNHKFBR.cjs.map → chunk-H2RMXG2Q.cjs.map} +1 -1
  36. package/dist/chunk-HAJOEDNB.js +274 -0
  37. package/dist/chunk-HAJOEDNB.js.map +1 -0
  38. package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
  39. package/dist/chunk-HT4LP3BO.js.map +1 -0
  40. package/dist/{chunk-5PONYNYP.cjs → chunk-I6LR6CPC.cjs} +10 -10
  41. package/dist/{chunk-5PONYNYP.cjs.map → chunk-I6LR6CPC.cjs.map} +1 -1
  42. package/dist/chunk-IEYXQTUW.cjs +284 -0
  43. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  44. package/dist/chunk-LBSJWPXK.cjs +312 -0
  45. package/dist/chunk-LBSJWPXK.cjs.map +1 -0
  46. package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
  47. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  48. package/dist/{chunk-UZ6CYAOG.cjs → chunk-PUSD37LD.cjs} +16 -3
  49. package/dist/chunk-PUSD37LD.cjs.map +1 -0
  50. package/dist/{chunk-ICANWSEW.js → chunk-QNVYGEJ4.js} +6 -6
  51. package/dist/{chunk-ICANWSEW.js.map → chunk-QNVYGEJ4.js.map} +1 -1
  52. package/dist/{chunk-ZODCSH2W.cjs → chunk-S3TIWWQL.cjs} +12 -12
  53. package/dist/{chunk-ZODCSH2W.cjs.map → chunk-S3TIWWQL.cjs.map} +1 -1
  54. package/dist/{chunk-FAQICBMH.js → chunk-SXVANU23.js} +2 -2
  55. package/dist/{chunk-FAQICBMH.js.map → chunk-SXVANU23.js.map} +1 -1
  56. package/dist/{chunk-VIP2H47U.js → chunk-TKL4TD2V.js} +29 -18
  57. package/dist/chunk-TKL4TD2V.js.map +1 -0
  58. package/dist/{chunk-AEO6IHLK.cjs → chunk-TYZ6ZISQ.cjs} +11 -11
  59. package/dist/{chunk-AEO6IHLK.cjs.map → chunk-TYZ6ZISQ.cjs.map} +1 -1
  60. package/dist/{chunk-35NT4TMQ.cjs → chunk-US6Y5RLR.cjs} +41 -37
  61. package/dist/chunk-US6Y5RLR.cjs.map +1 -0
  62. package/dist/{chunk-UOFV2ZCI.js → chunk-UTIOKR5C.js} +16 -7
  63. package/dist/chunk-UTIOKR5C.js.map +1 -0
  64. package/dist/{chunk-QU6N55W6.cjs → chunk-V272B7RM.cjs} +11 -12
  65. package/dist/chunk-V272B7RM.cjs.map +1 -0
  66. package/dist/chunk-VD3WO2TJ.cjs +23268 -0
  67. package/dist/chunk-VD3WO2TJ.cjs.map +1 -0
  68. package/dist/chunk-VDJHDTPP.js +23226 -0
  69. package/dist/chunk-VDJHDTPP.js.map +1 -0
  70. package/dist/{chunk-R4M3BSUG.js → chunk-WE4USCF3.js} +3 -3
  71. package/dist/{chunk-R4M3BSUG.js.map → chunk-WE4USCF3.js.map} +1 -1
  72. package/dist/{chunk-YJ3VDL3Z.cjs → chunk-X43DWDXB.cjs} +12 -12
  73. package/dist/{chunk-YJ3VDL3Z.cjs.map → chunk-X43DWDXB.cjs.map} +1 -1
  74. package/dist/{chunk-MWQQRVQC.cjs → chunk-X4QMPCTP.cjs} +7 -7
  75. package/dist/{chunk-MWQQRVQC.cjs.map → chunk-X4QMPCTP.cjs.map} +1 -1
  76. package/dist/chunk-XNKZPXCY.js +302 -0
  77. package/dist/chunk-XNKZPXCY.js.map +1 -0
  78. package/dist/{chunk-X6C7BUWN.cjs → chunk-XQPJ63ZD.cjs} +4 -4
  79. package/dist/{chunk-X6C7BUWN.cjs.map → chunk-XQPJ63ZD.cjs.map} +1 -1
  80. package/dist/{chunk-SHWNNZBL.js → chunk-YP34EWWK.js} +9 -10
  81. package/dist/chunk-YP34EWWK.js.map +1 -0
  82. package/dist/server/auth/defaults.d.ts +3 -0
  83. package/dist/server/auth/defaults.d.ts.map +1 -0
  84. package/dist/server/auth/helpers.d.ts +14 -0
  85. package/dist/server/auth/helpers.d.ts.map +1 -0
  86. package/dist/server/auth/index.cjs +137 -0
  87. package/dist/server/auth/index.cjs.map +1 -0
  88. package/dist/server/auth/index.d.ts +3 -0
  89. package/dist/server/auth/index.d.ts.map +1 -0
  90. package/dist/server/auth/index.js +127 -0
  91. package/dist/server/auth/index.js.map +1 -0
  92. package/dist/server/handlers/a2a.cjs +9 -9
  93. package/dist/server/handlers/a2a.d.ts.map +1 -1
  94. package/dist/server/handlers/a2a.js +1 -1
  95. package/dist/server/handlers/agent-builder.cjs +19 -19
  96. package/dist/server/handlers/agent-builder.d.ts +24 -25
  97. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  98. package/dist/server/handlers/agent-builder.js +1 -1
  99. package/dist/server/handlers/agents.cjs +23 -23
  100. package/dist/server/handlers/agents.d.ts +4 -2
  101. package/dist/server/handlers/agents.d.ts.map +1 -1
  102. package/dist/server/handlers/agents.js +1 -1
  103. package/dist/server/handlers/logs.cjs +4 -4
  104. package/dist/server/handlers/logs.js +1 -1
  105. package/dist/server/handlers/mcp.cjs +40 -0
  106. package/dist/server/handlers/mcp.cjs.map +1 -0
  107. package/dist/server/handlers/mcp.d.ts +110 -0
  108. package/dist/server/handlers/mcp.d.ts.map +1 -0
  109. package/dist/server/handlers/mcp.js +3 -0
  110. package/dist/server/handlers/mcp.js.map +1 -0
  111. package/dist/server/handlers/memory.cjs +24 -24
  112. package/dist/server/handlers/memory.d.ts +2 -2
  113. package/dist/server/handlers/memory.js +1 -1
  114. package/dist/server/handlers/observability.cjs +9 -9
  115. package/dist/server/handlers/observability.js +1 -1
  116. package/dist/server/handlers/scores.cjs +7 -7
  117. package/dist/server/handlers/scores.js +1 -1
  118. package/dist/server/handlers/stored-agents.cjs +28 -0
  119. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  120. package/dist/server/handlers/stored-agents.d.ts +289 -0
  121. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  122. package/dist/server/handlers/stored-agents.js +3 -0
  123. package/dist/server/handlers/stored-agents.js.map +1 -0
  124. package/dist/server/handlers/tools.cjs +6 -6
  125. package/dist/server/handlers/tools.js +1 -1
  126. package/dist/server/handlers/vector.cjs +13 -13
  127. package/dist/server/handlers/vector.d.ts +2 -2
  128. package/dist/server/handlers/vector.js +1 -1
  129. package/dist/server/handlers/voice.cjs +8 -8
  130. package/dist/server/handlers/voice.d.ts.map +1 -1
  131. package/dist/server/handlers/voice.js +1 -1
  132. package/dist/server/handlers/workflows.cjs +26 -26
  133. package/dist/server/handlers/workflows.d.ts +294 -292
  134. package/dist/server/handlers/workflows.d.ts.map +1 -1
  135. package/dist/server/handlers/workflows.js +1 -1
  136. package/dist/server/handlers.cjs +36 -31
  137. package/dist/server/handlers.d.ts +1 -0
  138. package/dist/server/handlers.d.ts.map +1 -1
  139. package/dist/server/handlers.js +12 -11
  140. package/dist/server/schemas/agent-builder.d.ts +9 -0
  141. package/dist/server/schemas/agent-builder.d.ts.map +1 -1
  142. package/dist/server/schemas/common.d.ts +29 -15
  143. package/dist/server/schemas/common.d.ts.map +1 -1
  144. package/dist/server/schemas/mcp.d.ts +299 -0
  145. package/dist/server/schemas/mcp.d.ts.map +1 -0
  146. package/dist/server/schemas/memory.d.ts +4 -4
  147. package/dist/server/schemas/memory.d.ts.map +1 -1
  148. package/dist/server/schemas/stored-agents.d.ts +792 -0
  149. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  150. package/dist/server/schemas/vectors.d.ts +2 -2
  151. package/dist/server/schemas/workflows.d.ts +22 -28
  152. package/dist/server/schemas/workflows.d.ts.map +1 -1
  153. package/dist/server/server-adapter/index.cjs +300 -144
  154. package/dist/server/server-adapter/index.cjs.map +1 -1
  155. package/dist/server/server-adapter/index.d.ts +50 -7
  156. package/dist/server/server-adapter/index.d.ts.map +1 -1
  157. package/dist/server/server-adapter/index.js +182 -27
  158. package/dist/server/server-adapter/index.js.map +1 -1
  159. package/dist/server/server-adapter/redact.d.ts +26 -0
  160. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  161. package/dist/server/server-adapter/routes/index.d.ts +11 -2
  162. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  163. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  164. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  165. package/dist/server/server-adapter/routes/route-builder.d.ts +4 -4
  166. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  167. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  168. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  169. package/dist/server/utils.d.ts +1 -1
  170. package/dist/server/utils.d.ts.map +1 -1
  171. package/dist/token-GVZ7HRD7.js +62 -0
  172. package/dist/{token-C3IMNCC4.js.map → token-GVZ7HRD7.js.map} +1 -1
  173. package/dist/{token-C3IMNCC4.js → token-JGA3ZWAN.js} +5 -6
  174. package/dist/token-JGA3ZWAN.js.map +1 -0
  175. package/dist/token-VFONFWVS.cjs +64 -0
  176. package/dist/{token-375W3LEI.cjs.map → token-VFONFWVS.cjs.map} +1 -1
  177. package/dist/{token-375W3LEI.cjs → token-ZOD6YIQ3.cjs} +7 -8
  178. package/dist/token-ZOD6YIQ3.cjs.map +1 -0
  179. package/dist/token-util-7R2ZFIXO.js +7 -0
  180. package/dist/{token-util-E5QO2RCL.js.map → token-util-7R2ZFIXO.js.map} +1 -1
  181. package/dist/token-util-BLJZJDBZ.cjs +9 -0
  182. package/dist/{token-util-CV3RRG6K.cjs.map → token-util-BLJZJDBZ.cjs.map} +1 -1
  183. package/dist/token-util-VGZUWSNR.cjs +9 -0
  184. package/dist/token-util-VGZUWSNR.cjs.map +1 -0
  185. package/dist/token-util-VKTPZLSE.js +7 -0
  186. package/dist/token-util-VKTPZLSE.js.map +1 -0
  187. package/package.json +17 -7
  188. package/dist/chunk-2NW6POYK.cjs.map +0 -1
  189. package/dist/chunk-35NT4TMQ.cjs.map +0 -1
  190. package/dist/chunk-3R5EV3HV.js.map +0 -1
  191. package/dist/chunk-4ECGVOJZ.cjs.map +0 -1
  192. package/dist/chunk-7WTETKRM.cjs.map +0 -1
  193. package/dist/chunk-BM7RP6NK.cjs +0 -23539
  194. package/dist/chunk-BM7RP6NK.cjs.map +0 -1
  195. package/dist/chunk-BMKFP3XR.js +0 -23497
  196. package/dist/chunk-BMKFP3XR.js.map +0 -1
  197. package/dist/chunk-FXDZLX2Y.js.map +0 -1
  198. package/dist/chunk-G7BPNX2V.js.map +0 -1
  199. package/dist/chunk-PKRHEXX7.js.map +0 -1
  200. package/dist/chunk-QGWCNTG6.cjs.map +0 -1
  201. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  202. package/dist/chunk-SHWNNZBL.js.map +0 -1
  203. package/dist/chunk-UOFV2ZCI.js.map +0 -1
  204. package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
  205. package/dist/chunk-VIP2H47U.js.map +0 -1
  206. package/dist/chunk-Z36N2OQA.cjs.map +0 -1
  207. package/dist/chunk-ZLRTFRL4.js.map +0 -1
  208. package/dist/token-util-CV3RRG6K.cjs +0 -9
  209. package/dist/token-util-E5QO2RCL.js +0 -7
@@ -0,0 +1,792 @@
1
+ import z from 'zod';
2
+ /**
3
+ * Path parameter for stored agent ID
4
+ */
5
+ export declare const storedAgentIdPathParams: z.ZodObject<{
6
+ storedAgentId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ storedAgentId: string;
9
+ }, {
10
+ storedAgentId: string;
11
+ }>;
12
+ /**
13
+ * GET /api/storage/agents - List stored agents
14
+ */
15
+ export declare const listStoredAgentsQuerySchema: z.ZodObject<{
16
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
17
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18
+ } & {
19
+ orderBy: z.ZodOptional<z.ZodObject<{
20
+ field: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
21
+ direction: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ field?: "createdAt" | "updatedAt" | undefined;
24
+ direction?: "ASC" | "DESC" | undefined;
25
+ }, {
26
+ field?: "createdAt" | "updatedAt" | undefined;
27
+ direction?: "ASC" | "DESC" | undefined;
28
+ }>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ page: number;
31
+ perPage: number;
32
+ orderBy?: {
33
+ field?: "createdAt" | "updatedAt" | undefined;
34
+ direction?: "ASC" | "DESC" | undefined;
35
+ } | undefined;
36
+ }, {
37
+ page?: number | undefined;
38
+ perPage?: number | undefined;
39
+ orderBy?: {
40
+ field?: "createdAt" | "updatedAt" | undefined;
41
+ direction?: "ASC" | "DESC" | undefined;
42
+ } | undefined;
43
+ }> | z.ZodObject<{
44
+ perPage: z.ZodOptional<z.ZodNumber>;
45
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
46
+ } & {
47
+ orderBy: z.ZodOptional<z.ZodObject<{
48
+ field: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
49
+ direction: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ field?: "createdAt" | "updatedAt" | undefined;
52
+ direction?: "ASC" | "DESC" | undefined;
53
+ }, {
54
+ field?: "createdAt" | "updatedAt" | undefined;
55
+ direction?: "ASC" | "DESC" | undefined;
56
+ }>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ page: number;
59
+ perPage?: number | undefined;
60
+ orderBy?: {
61
+ field?: "createdAt" | "updatedAt" | undefined;
62
+ direction?: "ASC" | "DESC" | undefined;
63
+ } | undefined;
64
+ }, {
65
+ page?: number | undefined;
66
+ perPage?: number | undefined;
67
+ orderBy?: {
68
+ field?: "createdAt" | "updatedAt" | undefined;
69
+ direction?: "ASC" | "DESC" | undefined;
70
+ } | undefined;
71
+ }>;
72
+ /**
73
+ * POST /api/storage/agents - Create stored agent body
74
+ */
75
+ export declare const createStoredAgentBodySchema: z.ZodObject<{
76
+ name: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ instructions: z.ZodString;
79
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
80
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
85
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
86
+ memory: z.ZodOptional<z.ZodString>;
87
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, 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
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
+ } & {
116
+ id: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ name: string;
119
+ id: string;
120
+ model: Record<string, unknown>;
121
+ instructions: string;
122
+ metadata?: Record<string, unknown> | undefined;
123
+ description?: string | undefined;
124
+ tools?: string[] | undefined;
125
+ agents?: string[] | undefined;
126
+ workflows?: string[] | undefined;
127
+ inputProcessors?: Record<string, unknown>[] | undefined;
128
+ outputProcessors?: Record<string, unknown>[] | undefined;
129
+ defaultOptions?: Record<string, unknown> | undefined;
130
+ memory?: string | undefined;
131
+ scorers?: Record<string, {
132
+ sampling?: {
133
+ type: "count" | "ratio";
134
+ count?: number | undefined;
135
+ rate?: number | undefined;
136
+ } | undefined;
137
+ }> | undefined;
138
+ }, {
139
+ name: string;
140
+ id: string;
141
+ model: Record<string, unknown>;
142
+ instructions: string;
143
+ metadata?: Record<string, unknown> | undefined;
144
+ description?: string | undefined;
145
+ tools?: string[] | undefined;
146
+ agents?: string[] | undefined;
147
+ workflows?: string[] | undefined;
148
+ inputProcessors?: Record<string, unknown>[] | undefined;
149
+ outputProcessors?: Record<string, unknown>[] | undefined;
150
+ defaultOptions?: Record<string, unknown> | undefined;
151
+ memory?: string | undefined;
152
+ scorers?: Record<string, {
153
+ sampling?: {
154
+ type: "count" | "ratio";
155
+ count?: number | undefined;
156
+ rate?: number | undefined;
157
+ } | undefined;
158
+ }> | undefined;
159
+ }>;
160
+ /**
161
+ * PATCH /api/storage/agents/:storedAgentId - Update stored agent body
162
+ */
163
+ export declare const updateStoredAgentBodySchema: z.ZodObject<{
164
+ name: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
166
+ instructions: z.ZodOptional<z.ZodString>;
167
+ model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
169
+ defaultOptions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
170
+ workflows: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
171
+ agents: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
172
+ inputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
173
+ outputProcessors: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>>;
174
+ memory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
175
+ scorers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
176
+ sampling: z.ZodOptional<z.ZodObject<{
177
+ type: z.ZodEnum<["ratio", "count"]>;
178
+ rate: z.ZodOptional<z.ZodNumber>;
179
+ count: z.ZodOptional<z.ZodNumber>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ type: "count" | "ratio";
182
+ count?: number | undefined;
183
+ rate?: number | undefined;
184
+ }, {
185
+ type: "count" | "ratio";
186
+ count?: number | undefined;
187
+ rate?: number | undefined;
188
+ }>>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ sampling?: {
191
+ type: "count" | "ratio";
192
+ count?: number | undefined;
193
+ rate?: number | undefined;
194
+ } | undefined;
195
+ }, {
196
+ sampling?: {
197
+ type: "count" | "ratio";
198
+ count?: number | undefined;
199
+ rate?: number | undefined;
200
+ } | undefined;
201
+ }>>>>;
202
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ metadata?: Record<string, unknown> | undefined;
205
+ name?: string | undefined;
206
+ description?: string | undefined;
207
+ model?: Record<string, unknown> | undefined;
208
+ instructions?: string | undefined;
209
+ tools?: string[] | undefined;
210
+ agents?: string[] | undefined;
211
+ workflows?: string[] | undefined;
212
+ inputProcessors?: Record<string, unknown>[] | undefined;
213
+ outputProcessors?: Record<string, unknown>[] | undefined;
214
+ defaultOptions?: Record<string, unknown> | undefined;
215
+ memory?: string | undefined;
216
+ scorers?: Record<string, {
217
+ sampling?: {
218
+ type: "count" | "ratio";
219
+ count?: number | undefined;
220
+ rate?: number | undefined;
221
+ } | undefined;
222
+ }> | undefined;
223
+ }, {
224
+ metadata?: Record<string, unknown> | undefined;
225
+ name?: string | undefined;
226
+ description?: string | undefined;
227
+ model?: Record<string, unknown> | undefined;
228
+ instructions?: string | undefined;
229
+ tools?: string[] | undefined;
230
+ agents?: string[] | undefined;
231
+ workflows?: string[] | undefined;
232
+ inputProcessors?: Record<string, unknown>[] | undefined;
233
+ outputProcessors?: Record<string, unknown>[] | undefined;
234
+ defaultOptions?: Record<string, unknown> | undefined;
235
+ memory?: string | undefined;
236
+ scorers?: Record<string, {
237
+ sampling?: {
238
+ type: "count" | "ratio";
239
+ count?: number | undefined;
240
+ rate?: number | undefined;
241
+ } | undefined;
242
+ }> | undefined;
243
+ }>;
244
+ /**
245
+ * Stored agent object schema (full response)
246
+ */
247
+ export declare const storedAgentSchema: z.ZodObject<{
248
+ name: z.ZodString;
249
+ description: z.ZodOptional<z.ZodString>;
250
+ instructions: z.ZodString;
251
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
252
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
257
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
258
+ memory: z.ZodOptional<z.ZodString>;
259
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
260
+ sampling: z.ZodOptional<z.ZodObject<{
261
+ type: z.ZodEnum<["ratio", "count"]>;
262
+ rate: z.ZodOptional<z.ZodNumber>;
263
+ count: z.ZodOptional<z.ZodNumber>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: "count" | "ratio";
266
+ count?: number | undefined;
267
+ rate?: number | undefined;
268
+ }, {
269
+ type: "count" | "ratio";
270
+ count?: number | undefined;
271
+ rate?: number | undefined;
272
+ }>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ sampling?: {
275
+ type: "count" | "ratio";
276
+ count?: number | undefined;
277
+ rate?: number | undefined;
278
+ } | undefined;
279
+ }, {
280
+ sampling?: {
281
+ type: "count" | "ratio";
282
+ count?: number | undefined;
283
+ rate?: number | undefined;
284
+ } | undefined;
285
+ }>>>;
286
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
287
+ } & {
288
+ id: z.ZodString;
289
+ createdAt: z.ZodDate;
290
+ updatedAt: z.ZodDate;
291
+ }, "strip", z.ZodTypeAny, {
292
+ name: string;
293
+ id: string;
294
+ createdAt: Date;
295
+ updatedAt: Date;
296
+ model: Record<string, unknown>;
297
+ instructions: string;
298
+ metadata?: Record<string, unknown> | undefined;
299
+ description?: string | undefined;
300
+ tools?: string[] | undefined;
301
+ agents?: string[] | undefined;
302
+ workflows?: string[] | undefined;
303
+ inputProcessors?: Record<string, unknown>[] | undefined;
304
+ outputProcessors?: Record<string, unknown>[] | undefined;
305
+ defaultOptions?: Record<string, unknown> | undefined;
306
+ memory?: string | undefined;
307
+ scorers?: Record<string, {
308
+ sampling?: {
309
+ type: "count" | "ratio";
310
+ count?: number | undefined;
311
+ rate?: number | undefined;
312
+ } | undefined;
313
+ }> | undefined;
314
+ }, {
315
+ name: string;
316
+ id: string;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ model: Record<string, unknown>;
320
+ instructions: string;
321
+ metadata?: Record<string, unknown> | undefined;
322
+ description?: string | undefined;
323
+ tools?: string[] | undefined;
324
+ agents?: string[] | undefined;
325
+ workflows?: string[] | undefined;
326
+ inputProcessors?: Record<string, unknown>[] | undefined;
327
+ outputProcessors?: Record<string, unknown>[] | undefined;
328
+ defaultOptions?: Record<string, unknown> | undefined;
329
+ memory?: string | undefined;
330
+ scorers?: Record<string, {
331
+ sampling?: {
332
+ type: "count" | "ratio";
333
+ count?: number | undefined;
334
+ rate?: number | undefined;
335
+ } | undefined;
336
+ }> | undefined;
337
+ }>;
338
+ /**
339
+ * Response for GET /api/storage/agents
340
+ */
341
+ export declare const listStoredAgentsResponseSchema: z.ZodObject<{
342
+ total: z.ZodNumber;
343
+ page: z.ZodNumber;
344
+ perPage: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>;
345
+ hasMore: z.ZodBoolean;
346
+ } & {
347
+ agents: z.ZodArray<z.ZodObject<{
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ instructions: z.ZodString;
351
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
352
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
354
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
357
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
358
+ memory: z.ZodOptional<z.ZodString>;
359
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
360
+ sampling: z.ZodOptional<z.ZodObject<{
361
+ type: z.ZodEnum<["ratio", "count"]>;
362
+ rate: z.ZodOptional<z.ZodNumber>;
363
+ count: z.ZodOptional<z.ZodNumber>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ type: "count" | "ratio";
366
+ count?: number | undefined;
367
+ rate?: number | undefined;
368
+ }, {
369
+ type: "count" | "ratio";
370
+ count?: number | undefined;
371
+ rate?: number | undefined;
372
+ }>>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ sampling?: {
375
+ type: "count" | "ratio";
376
+ count?: number | undefined;
377
+ rate?: number | undefined;
378
+ } | undefined;
379
+ }, {
380
+ sampling?: {
381
+ type: "count" | "ratio";
382
+ count?: number | undefined;
383
+ rate?: number | undefined;
384
+ } | undefined;
385
+ }>>>;
386
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
+ } & {
388
+ id: z.ZodString;
389
+ createdAt: z.ZodDate;
390
+ updatedAt: z.ZodDate;
391
+ }, "strip", z.ZodTypeAny, {
392
+ name: string;
393
+ id: string;
394
+ createdAt: Date;
395
+ updatedAt: Date;
396
+ model: Record<string, unknown>;
397
+ instructions: string;
398
+ metadata?: Record<string, unknown> | undefined;
399
+ description?: string | undefined;
400
+ tools?: string[] | undefined;
401
+ agents?: string[] | undefined;
402
+ workflows?: string[] | undefined;
403
+ inputProcessors?: Record<string, unknown>[] | undefined;
404
+ outputProcessors?: Record<string, unknown>[] | undefined;
405
+ defaultOptions?: Record<string, unknown> | undefined;
406
+ memory?: string | undefined;
407
+ scorers?: Record<string, {
408
+ sampling?: {
409
+ type: "count" | "ratio";
410
+ count?: number | undefined;
411
+ rate?: number | undefined;
412
+ } | undefined;
413
+ }> | undefined;
414
+ }, {
415
+ name: string;
416
+ id: string;
417
+ createdAt: Date;
418
+ updatedAt: Date;
419
+ model: Record<string, unknown>;
420
+ instructions: string;
421
+ metadata?: Record<string, unknown> | undefined;
422
+ description?: string | undefined;
423
+ tools?: string[] | undefined;
424
+ agents?: string[] | undefined;
425
+ workflows?: string[] | undefined;
426
+ inputProcessors?: Record<string, unknown>[] | undefined;
427
+ outputProcessors?: Record<string, unknown>[] | undefined;
428
+ defaultOptions?: Record<string, unknown> | undefined;
429
+ memory?: string | undefined;
430
+ scorers?: Record<string, {
431
+ sampling?: {
432
+ type: "count" | "ratio";
433
+ count?: number | undefined;
434
+ rate?: number | undefined;
435
+ } | undefined;
436
+ }> | undefined;
437
+ }>, "many">;
438
+ }, "strip", z.ZodTypeAny, {
439
+ total: number;
440
+ page: number;
441
+ perPage: number | false;
442
+ hasMore: boolean;
443
+ agents: {
444
+ name: string;
445
+ id: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ model: Record<string, unknown>;
449
+ instructions: string;
450
+ metadata?: Record<string, unknown> | undefined;
451
+ description?: string | undefined;
452
+ tools?: string[] | undefined;
453
+ agents?: string[] | undefined;
454
+ workflows?: string[] | undefined;
455
+ inputProcessors?: Record<string, unknown>[] | undefined;
456
+ outputProcessors?: Record<string, unknown>[] | undefined;
457
+ defaultOptions?: Record<string, unknown> | undefined;
458
+ memory?: string | undefined;
459
+ scorers?: Record<string, {
460
+ sampling?: {
461
+ type: "count" | "ratio";
462
+ count?: number | undefined;
463
+ rate?: number | undefined;
464
+ } | undefined;
465
+ }> | undefined;
466
+ }[];
467
+ }, {
468
+ total: number;
469
+ page: number;
470
+ perPage: number | false;
471
+ hasMore: boolean;
472
+ agents: {
473
+ name: string;
474
+ id: string;
475
+ createdAt: Date;
476
+ updatedAt: Date;
477
+ model: Record<string, unknown>;
478
+ instructions: string;
479
+ metadata?: Record<string, unknown> | undefined;
480
+ description?: string | undefined;
481
+ tools?: string[] | undefined;
482
+ agents?: string[] | undefined;
483
+ workflows?: string[] | undefined;
484
+ inputProcessors?: Record<string, unknown>[] | undefined;
485
+ outputProcessors?: Record<string, unknown>[] | undefined;
486
+ defaultOptions?: Record<string, unknown> | undefined;
487
+ memory?: string | undefined;
488
+ scorers?: Record<string, {
489
+ sampling?: {
490
+ type: "count" | "ratio";
491
+ count?: number | undefined;
492
+ rate?: number | undefined;
493
+ } | undefined;
494
+ }> | undefined;
495
+ }[];
496
+ }>;
497
+ /**
498
+ * Response for GET /api/storage/agents/:storedAgentId
499
+ */
500
+ export declare const getStoredAgentResponseSchema: z.ZodObject<{
501
+ name: z.ZodString;
502
+ description: z.ZodOptional<z.ZodString>;
503
+ instructions: z.ZodString;
504
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
505
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
506
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
508
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
509
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
510
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
511
+ memory: z.ZodOptional<z.ZodString>;
512
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
513
+ sampling: z.ZodOptional<z.ZodObject<{
514
+ type: z.ZodEnum<["ratio", "count"]>;
515
+ rate: z.ZodOptional<z.ZodNumber>;
516
+ count: z.ZodOptional<z.ZodNumber>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "count" | "ratio";
519
+ count?: number | undefined;
520
+ rate?: number | undefined;
521
+ }, {
522
+ type: "count" | "ratio";
523
+ count?: number | undefined;
524
+ rate?: number | undefined;
525
+ }>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ sampling?: {
528
+ type: "count" | "ratio";
529
+ count?: number | undefined;
530
+ rate?: number | undefined;
531
+ } | undefined;
532
+ }, {
533
+ sampling?: {
534
+ type: "count" | "ratio";
535
+ count?: number | undefined;
536
+ rate?: number | undefined;
537
+ } | undefined;
538
+ }>>>;
539
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
540
+ } & {
541
+ id: z.ZodString;
542
+ createdAt: z.ZodDate;
543
+ updatedAt: z.ZodDate;
544
+ }, "strip", z.ZodTypeAny, {
545
+ name: string;
546
+ id: string;
547
+ createdAt: Date;
548
+ updatedAt: Date;
549
+ model: Record<string, unknown>;
550
+ instructions: string;
551
+ metadata?: Record<string, unknown> | undefined;
552
+ description?: string | undefined;
553
+ tools?: string[] | undefined;
554
+ agents?: string[] | undefined;
555
+ workflows?: string[] | undefined;
556
+ inputProcessors?: Record<string, unknown>[] | undefined;
557
+ outputProcessors?: Record<string, unknown>[] | undefined;
558
+ defaultOptions?: Record<string, unknown> | undefined;
559
+ memory?: string | undefined;
560
+ scorers?: Record<string, {
561
+ sampling?: {
562
+ type: "count" | "ratio";
563
+ count?: number | undefined;
564
+ rate?: number | undefined;
565
+ } | undefined;
566
+ }> | undefined;
567
+ }, {
568
+ name: string;
569
+ id: string;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ model: Record<string, unknown>;
573
+ instructions: string;
574
+ metadata?: Record<string, unknown> | undefined;
575
+ description?: string | undefined;
576
+ tools?: string[] | undefined;
577
+ agents?: string[] | undefined;
578
+ workflows?: string[] | undefined;
579
+ inputProcessors?: Record<string, unknown>[] | undefined;
580
+ outputProcessors?: Record<string, unknown>[] | undefined;
581
+ defaultOptions?: Record<string, unknown> | undefined;
582
+ memory?: string | undefined;
583
+ scorers?: Record<string, {
584
+ sampling?: {
585
+ type: "count" | "ratio";
586
+ count?: number | undefined;
587
+ rate?: number | undefined;
588
+ } | undefined;
589
+ }> | undefined;
590
+ }>;
591
+ /**
592
+ * Response for POST /api/storage/agents
593
+ */
594
+ export declare const createStoredAgentResponseSchema: z.ZodObject<{
595
+ name: z.ZodString;
596
+ description: z.ZodOptional<z.ZodString>;
597
+ instructions: z.ZodString;
598
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
599
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
600
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
602
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
603
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
604
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
605
+ memory: z.ZodOptional<z.ZodString>;
606
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
607
+ sampling: z.ZodOptional<z.ZodObject<{
608
+ type: z.ZodEnum<["ratio", "count"]>;
609
+ rate: z.ZodOptional<z.ZodNumber>;
610
+ count: z.ZodOptional<z.ZodNumber>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "count" | "ratio";
613
+ count?: number | undefined;
614
+ rate?: number | undefined;
615
+ }, {
616
+ type: "count" | "ratio";
617
+ count?: number | undefined;
618
+ rate?: number | undefined;
619
+ }>>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ sampling?: {
622
+ type: "count" | "ratio";
623
+ count?: number | undefined;
624
+ rate?: number | undefined;
625
+ } | undefined;
626
+ }, {
627
+ sampling?: {
628
+ type: "count" | "ratio";
629
+ count?: number | undefined;
630
+ rate?: number | undefined;
631
+ } | undefined;
632
+ }>>>;
633
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
634
+ } & {
635
+ id: z.ZodString;
636
+ createdAt: z.ZodDate;
637
+ updatedAt: z.ZodDate;
638
+ }, "strip", z.ZodTypeAny, {
639
+ name: string;
640
+ id: string;
641
+ createdAt: Date;
642
+ updatedAt: Date;
643
+ model: Record<string, unknown>;
644
+ instructions: string;
645
+ metadata?: Record<string, unknown> | undefined;
646
+ description?: string | undefined;
647
+ tools?: string[] | undefined;
648
+ agents?: string[] | undefined;
649
+ workflows?: string[] | undefined;
650
+ inputProcessors?: Record<string, unknown>[] | undefined;
651
+ outputProcessors?: Record<string, unknown>[] | undefined;
652
+ defaultOptions?: Record<string, unknown> | undefined;
653
+ memory?: string | undefined;
654
+ scorers?: Record<string, {
655
+ sampling?: {
656
+ type: "count" | "ratio";
657
+ count?: number | undefined;
658
+ rate?: number | undefined;
659
+ } | undefined;
660
+ }> | undefined;
661
+ }, {
662
+ name: string;
663
+ id: string;
664
+ createdAt: Date;
665
+ updatedAt: Date;
666
+ model: Record<string, unknown>;
667
+ instructions: string;
668
+ metadata?: Record<string, unknown> | undefined;
669
+ description?: string | undefined;
670
+ tools?: string[] | undefined;
671
+ agents?: string[] | undefined;
672
+ workflows?: string[] | undefined;
673
+ inputProcessors?: Record<string, unknown>[] | undefined;
674
+ outputProcessors?: Record<string, unknown>[] | undefined;
675
+ defaultOptions?: Record<string, unknown> | undefined;
676
+ memory?: string | undefined;
677
+ scorers?: Record<string, {
678
+ sampling?: {
679
+ type: "count" | "ratio";
680
+ count?: number | undefined;
681
+ rate?: number | undefined;
682
+ } | undefined;
683
+ }> | undefined;
684
+ }>;
685
+ /**
686
+ * Response for PATCH /api/storage/agents/:storedAgentId
687
+ */
688
+ export declare const updateStoredAgentResponseSchema: z.ZodObject<{
689
+ name: z.ZodString;
690
+ description: z.ZodOptional<z.ZodString>;
691
+ instructions: z.ZodString;
692
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
693
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
694
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
695
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
696
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
+ inputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
698
+ outputProcessors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
699
+ memory: z.ZodOptional<z.ZodString>;
700
+ scorers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
701
+ sampling: z.ZodOptional<z.ZodObject<{
702
+ type: z.ZodEnum<["ratio", "count"]>;
703
+ rate: z.ZodOptional<z.ZodNumber>;
704
+ count: z.ZodOptional<z.ZodNumber>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ type: "count" | "ratio";
707
+ count?: number | undefined;
708
+ rate?: number | undefined;
709
+ }, {
710
+ type: "count" | "ratio";
711
+ count?: number | undefined;
712
+ rate?: number | undefined;
713
+ }>>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ sampling?: {
716
+ type: "count" | "ratio";
717
+ count?: number | undefined;
718
+ rate?: number | undefined;
719
+ } | undefined;
720
+ }, {
721
+ sampling?: {
722
+ type: "count" | "ratio";
723
+ count?: number | undefined;
724
+ rate?: number | undefined;
725
+ } | undefined;
726
+ }>>>;
727
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
728
+ } & {
729
+ id: z.ZodString;
730
+ createdAt: z.ZodDate;
731
+ updatedAt: z.ZodDate;
732
+ }, "strip", z.ZodTypeAny, {
733
+ name: string;
734
+ id: string;
735
+ createdAt: Date;
736
+ updatedAt: Date;
737
+ model: Record<string, unknown>;
738
+ instructions: string;
739
+ metadata?: Record<string, unknown> | undefined;
740
+ description?: string | undefined;
741
+ tools?: string[] | undefined;
742
+ agents?: string[] | undefined;
743
+ workflows?: string[] | undefined;
744
+ inputProcessors?: Record<string, unknown>[] | undefined;
745
+ outputProcessors?: Record<string, unknown>[] | undefined;
746
+ defaultOptions?: Record<string, unknown> | undefined;
747
+ memory?: string | undefined;
748
+ scorers?: Record<string, {
749
+ sampling?: {
750
+ type: "count" | "ratio";
751
+ count?: number | undefined;
752
+ rate?: number | undefined;
753
+ } | undefined;
754
+ }> | undefined;
755
+ }, {
756
+ name: string;
757
+ id: string;
758
+ createdAt: Date;
759
+ updatedAt: Date;
760
+ model: Record<string, unknown>;
761
+ instructions: string;
762
+ metadata?: Record<string, unknown> | undefined;
763
+ description?: string | undefined;
764
+ tools?: string[] | undefined;
765
+ agents?: string[] | undefined;
766
+ workflows?: string[] | undefined;
767
+ inputProcessors?: Record<string, unknown>[] | undefined;
768
+ outputProcessors?: Record<string, unknown>[] | undefined;
769
+ defaultOptions?: Record<string, unknown> | undefined;
770
+ memory?: string | undefined;
771
+ scorers?: Record<string, {
772
+ sampling?: {
773
+ type: "count" | "ratio";
774
+ count?: number | undefined;
775
+ rate?: number | undefined;
776
+ } | undefined;
777
+ }> | undefined;
778
+ }>;
779
+ /**
780
+ * Response for DELETE /api/storage/agents/:storedAgentId
781
+ */
782
+ export declare const deleteStoredAgentResponseSchema: z.ZodObject<{
783
+ success: z.ZodBoolean;
784
+ message: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ message: string;
787
+ success: boolean;
788
+ }, {
789
+ message: string;
790
+ success: boolean;
791
+ }>;
792
+ //# sourceMappingURL=stored-agents.d.ts.map