@mastra/server 0.0.0-fix-ai-sdk-dependency-20251124104209 → 0.0.0-fix-backport-setserver-20251201151948

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 (262) hide show
  1. package/CHANGELOG.md +105 -656
  2. package/README.md +1 -1
  3. package/dist/chunk-2S4IMB6E.cjs +130 -0
  4. package/dist/chunk-2S4IMB6E.cjs.map +1 -0
  5. package/dist/chunk-3SNGNFUJ.cjs +128 -0
  6. package/dist/chunk-3SNGNFUJ.cjs.map +1 -0
  7. package/dist/{chunk-6BISSAIF.js → chunk-4ML6U6RF.js} +1165 -5130
  8. package/dist/chunk-4ML6U6RF.js.map +1 -0
  9. package/dist/chunk-4QCXUEAT.js +25 -0
  10. package/dist/chunk-4QCXUEAT.js.map +1 -0
  11. package/dist/chunk-67GYDFSB.js +160 -0
  12. package/dist/chunk-67GYDFSB.js.map +1 -0
  13. package/dist/chunk-6N3HC6O4.js +705 -0
  14. package/dist/chunk-6N3HC6O4.js.map +1 -0
  15. package/dist/chunk-6ZR275MD.cjs +165 -0
  16. package/dist/chunk-6ZR275MD.cjs.map +1 -0
  17. package/dist/{chunk-64ITUOXI.cjs → chunk-7NADHFD2.cjs} +2 -2
  18. package/dist/{chunk-6QWQZI4Q.js.map → chunk-7NADHFD2.cjs.map} +1 -1
  19. package/dist/{chunk-4ECGVOJZ.cjs → chunk-7RGKOGE4.cjs} +33 -226
  20. package/dist/chunk-7RGKOGE4.cjs.map +1 -0
  21. package/dist/chunk-ABRFV4XP.js +83 -0
  22. package/dist/chunk-ABRFV4XP.js.map +1 -0
  23. package/dist/chunk-AHB4JCIQ.js +160 -0
  24. package/dist/chunk-AHB4JCIQ.js.map +1 -0
  25. package/dist/chunk-AW5BU3RQ.js +192 -0
  26. package/dist/chunk-AW5BU3RQ.js.map +1 -0
  27. package/dist/chunk-BATEJLED.js +124 -0
  28. package/dist/chunk-BATEJLED.js.map +1 -0
  29. package/dist/{chunk-UXGQZUYZ.js → chunk-CY4TP3FK.js} +3 -3
  30. package/dist/{chunk-UXGQZUYZ.js.map → chunk-CY4TP3FK.js.map} +1 -1
  31. package/dist/chunk-CY6R3HLM.cjs +727 -0
  32. package/dist/chunk-CY6R3HLM.cjs.map +1 -0
  33. package/dist/chunk-EP3JQDPD.cjs +131 -0
  34. package/dist/chunk-EP3JQDPD.cjs.map +1 -0
  35. package/dist/chunk-G4PUALCE.cjs +28 -0
  36. package/dist/chunk-G4PUALCE.cjs.map +1 -0
  37. package/dist/chunk-H33KYEMY.cjs +720 -0
  38. package/dist/chunk-H33KYEMY.cjs.map +1 -0
  39. package/dist/chunk-I3C4ODGV.cjs +335 -0
  40. package/dist/chunk-I3C4ODGV.cjs.map +1 -0
  41. package/dist/{chunk-3R5EV3HV.js → chunk-IAE7SFBS.js} +33 -220
  42. package/dist/chunk-IAE7SFBS.js.map +1 -0
  43. package/dist/chunk-LLUOPR3J.js +323 -0
  44. package/dist/chunk-LLUOPR3J.js.map +1 -0
  45. package/dist/{chunk-6QWQZI4Q.js → chunk-MMROOK5J.js} +2 -2
  46. package/dist/chunk-MMROOK5J.js.map +1 -0
  47. package/dist/chunk-MYR4PVGN.js +123 -0
  48. package/dist/chunk-MYR4PVGN.js.map +1 -0
  49. package/dist/chunk-NT5XW5PI.cjs +596 -0
  50. package/dist/chunk-NT5XW5PI.cjs.map +1 -0
  51. package/dist/chunk-PBXWFGEH.js +579 -0
  52. package/dist/chunk-PBXWFGEH.js.map +1 -0
  53. package/dist/chunk-PY2K7VNW.js +698 -0
  54. package/dist/chunk-PY2K7VNW.js.map +1 -0
  55. package/dist/chunk-QQXMIP6C.js +122 -0
  56. package/dist/chunk-QQXMIP6C.js.map +1 -0
  57. package/dist/{chunk-V5WWQN7P.cjs → chunk-RE4RPXT2.cjs} +4 -4
  58. package/dist/{chunk-V5WWQN7P.cjs.map → chunk-RE4RPXT2.cjs.map} +1 -1
  59. package/dist/chunk-SPRRK3P7.cjs +200 -0
  60. package/dist/chunk-SPRRK3P7.cjs.map +1 -0
  61. package/dist/chunk-TRGAMKHX.cjs +167 -0
  62. package/dist/chunk-TRGAMKHX.cjs.map +1 -0
  63. package/dist/{chunk-TBVUN4XN.cjs → chunk-USGGDGWL.cjs} +1998 -5969
  64. package/dist/chunk-USGGDGWL.cjs.map +1 -0
  65. package/dist/{chunk-UZ6CYAOG.cjs → chunk-VY4ENABS.cjs} +7 -6
  66. package/dist/chunk-VY4ENABS.cjs.map +1 -0
  67. package/dist/chunk-XN74I6VW.cjs +88 -0
  68. package/dist/chunk-XN74I6VW.cjs.map +1 -0
  69. package/dist/{chunk-G7BPNX2V.js → chunk-YWOK4F5A.js} +7 -6
  70. package/dist/chunk-YWOK4F5A.js.map +1 -0
  71. package/dist/server/handlers/a2a.cjs +7 -15
  72. package/dist/server/handlers/a2a.d.ts +10 -492
  73. package/dist/server/handlers/a2a.d.ts.map +1 -1
  74. package/dist/server/handlers/a2a.js +1 -1
  75. package/dist/server/handlers/agent-builder.cjs +31 -43
  76. package/dist/server/handlers/agent-builder.d.ts +84 -592
  77. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  78. package/dist/server/handlers/agent-builder.js +1 -1
  79. package/dist/server/handlers/agents.cjs +41 -49
  80. package/dist/server/handlers/agents.d.ts +148 -3275
  81. package/dist/server/handlers/agents.d.ts.map +1 -1
  82. package/dist/server/handlers/agents.js +1 -1
  83. package/dist/server/handlers/error.cjs +2 -2
  84. package/dist/server/handlers/error.js +1 -1
  85. package/dist/server/handlers/legacyWorkflows.cjs +48 -0
  86. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  87. package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
  88. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  89. package/dist/server/handlers/legacyWorkflows.js +3 -0
  90. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  91. package/dist/server/handlers/logs.cjs +7 -7
  92. package/dist/server/handlers/logs.d.ts +27 -135
  93. package/dist/server/handlers/logs.d.ts.map +1 -1
  94. package/dist/server/handlers/logs.js +1 -1
  95. package/dist/server/handlers/memory.cjs +31 -63
  96. package/dist/server/handlers/memory.d.ts +103 -934
  97. package/dist/server/handlers/memory.d.ts.map +1 -1
  98. package/dist/server/handlers/memory.js +1 -1
  99. package/dist/server/handlers/observability.cjs +8 -24
  100. package/dist/server/handlers/observability.d.ts +21 -128
  101. package/dist/server/handlers/observability.d.ts.map +1 -1
  102. package/dist/server/handlers/observability.js +1 -1
  103. package/dist/server/handlers/scores.cjs +13 -13
  104. package/dist/server/handlers/scores.d.ts +141 -110
  105. package/dist/server/handlers/scores.d.ts.map +1 -1
  106. package/dist/server/handlers/scores.js +1 -1
  107. package/dist/server/handlers/telemetry.cjs +20 -0
  108. package/dist/server/handlers/telemetry.cjs.map +1 -0
  109. package/dist/server/handlers/telemetry.d.ts +33 -0
  110. package/dist/server/handlers/telemetry.d.ts.map +1 -0
  111. package/dist/server/handlers/telemetry.js +3 -0
  112. package/dist/server/handlers/telemetry.js.map +1 -0
  113. package/dist/server/handlers/tools.cjs +11 -11
  114. package/dist/server/handlers/tools.d.ts +23 -69
  115. package/dist/server/handlers/tools.d.ts.map +1 -1
  116. package/dist/server/handlers/tools.js +1 -1
  117. package/dist/server/handlers/utils.cjs +3 -11
  118. package/dist/server/handlers/utils.d.ts +0 -5
  119. package/dist/server/handlers/utils.d.ts.map +1 -1
  120. package/dist/server/handlers/utils.js +1 -1
  121. package/dist/server/handlers/vector.cjs +7 -31
  122. package/dist/server/handlers/vector.d.ts +9 -93
  123. package/dist/server/handlers/vector.d.ts.map +1 -1
  124. package/dist/server/handlers/vector.js +1 -1
  125. package/dist/server/handlers/voice.cjs +9 -21
  126. package/dist/server/handlers/voice.d.ts +40 -81
  127. package/dist/server/handlers/voice.d.ts.map +1 -1
  128. package/dist/server/handlers/voice.js +1 -1
  129. package/dist/server/handlers/workflows.cjs +45 -37
  130. package/dist/server/handlers/workflows.d.ts +83 -597
  131. package/dist/server/handlers/workflows.d.ts.map +1 -1
  132. package/dist/server/handlers/workflows.js +1 -1
  133. package/dist/server/handlers.cjs +36 -26
  134. package/dist/server/handlers.d.ts +2 -0
  135. package/dist/server/handlers.d.ts.map +1 -1
  136. package/dist/server/handlers.js +13 -11
  137. package/dist/server/http-exception.d.ts +5 -0
  138. package/dist/server/http-exception.d.ts.map +1 -1
  139. package/dist/server/utils.d.ts +2 -3
  140. package/dist/server/utils.d.ts.map +1 -1
  141. package/package.json +15 -26
  142. package/dist/chunk-2NW6POYK.cjs +0 -89
  143. package/dist/chunk-2NW6POYK.cjs.map +0 -1
  144. package/dist/chunk-35NT4TMQ.cjs +0 -201
  145. package/dist/chunk-35NT4TMQ.cjs.map +0 -1
  146. package/dist/chunk-3R5EV3HV.js.map +0 -1
  147. package/dist/chunk-4ECGVOJZ.cjs.map +0 -1
  148. package/dist/chunk-5PONYNYP.cjs +0 -125
  149. package/dist/chunk-5PONYNYP.cjs.map +0 -1
  150. package/dist/chunk-5W4RPVTK.cjs +0 -49
  151. package/dist/chunk-5W4RPVTK.cjs.map +0 -1
  152. package/dist/chunk-64ITUOXI.cjs.map +0 -1
  153. package/dist/chunk-6BISSAIF.js.map +0 -1
  154. package/dist/chunk-6DTV6NEW.js +0 -116
  155. package/dist/chunk-6DTV6NEW.js.map +0 -1
  156. package/dist/chunk-AEO6IHLK.cjs +0 -368
  157. package/dist/chunk-AEO6IHLK.cjs.map +0 -1
  158. package/dist/chunk-ASZUOBKV.js +0 -310
  159. package/dist/chunk-ASZUOBKV.js.map +0 -1
  160. package/dist/chunk-ECIVTQ4E.js +0 -354
  161. package/dist/chunk-ECIVTQ4E.js.map +0 -1
  162. package/dist/chunk-FAQICBMH.js +0 -164
  163. package/dist/chunk-FAQICBMH.js.map +0 -1
  164. package/dist/chunk-FXDZLX2Y.js +0 -192
  165. package/dist/chunk-FXDZLX2Y.js.map +0 -1
  166. package/dist/chunk-G7BPNX2V.js.map +0 -1
  167. package/dist/chunk-I5VZ5SKG.js +0 -328
  168. package/dist/chunk-I5VZ5SKG.js.map +0 -1
  169. package/dist/chunk-ICANWSEW.js +0 -204
  170. package/dist/chunk-ICANWSEW.js.map +0 -1
  171. package/dist/chunk-KB5NSROG.cjs +0 -211
  172. package/dist/chunk-KB5NSROG.cjs.map +0 -1
  173. package/dist/chunk-MWQQRVQC.cjs +0 -259
  174. package/dist/chunk-MWQQRVQC.cjs.map +0 -1
  175. package/dist/chunk-NDFAQBQD.cjs +0 -792
  176. package/dist/chunk-NDFAQBQD.cjs.map +0 -1
  177. package/dist/chunk-PKRHEXX7.js +0 -74
  178. package/dist/chunk-PKRHEXX7.js.map +0 -1
  179. package/dist/chunk-QGWCNTG6.cjs +0 -797
  180. package/dist/chunk-QGWCNTG6.cjs.map +0 -1
  181. package/dist/chunk-R4M3BSUG.js +0 -226
  182. package/dist/chunk-R4M3BSUG.js.map +0 -1
  183. package/dist/chunk-TBVUN4XN.cjs.map +0 -1
  184. package/dist/chunk-UJNHKFBR.cjs +0 -167
  185. package/dist/chunk-UJNHKFBR.cjs.map +0 -1
  186. package/dist/chunk-UOFV2ZCI.js +0 -878
  187. package/dist/chunk-UOFV2ZCI.js.map +0 -1
  188. package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
  189. package/dist/chunk-VQAT5HX6.js +0 -756
  190. package/dist/chunk-VQAT5HX6.js.map +0 -1
  191. package/dist/chunk-XWGAT2DA.js +0 -44
  192. package/dist/chunk-XWGAT2DA.js.map +0 -1
  193. package/dist/chunk-YJ3VDL3Z.cjs +0 -346
  194. package/dist/chunk-YJ3VDL3Z.cjs.map +0 -1
  195. package/dist/chunk-Z36N2OQA.cjs +0 -907
  196. package/dist/chunk-Z36N2OQA.cjs.map +0 -1
  197. package/dist/chunk-ZLRTFRL4.js +0 -773
  198. package/dist/chunk-ZLRTFRL4.js.map +0 -1
  199. package/dist/chunk-ZODCSH2W.cjs +0 -322
  200. package/dist/chunk-ZODCSH2W.cjs.map +0 -1
  201. package/dist/server/handlers/test-utils.cjs +0 -15
  202. package/dist/server/handlers/test-utils.cjs.map +0 -1
  203. package/dist/server/handlers/test-utils.d.ts +0 -6
  204. package/dist/server/handlers/test-utils.d.ts.map +0 -1
  205. package/dist/server/handlers/test-utils.js +0 -13
  206. package/dist/server/handlers/test-utils.js.map +0 -1
  207. package/dist/server/schemas/a2a.d.ts +0 -786
  208. package/dist/server/schemas/a2a.d.ts.map +0 -1
  209. package/dist/server/schemas/agent-builder.d.ts +0 -195
  210. package/dist/server/schemas/agent-builder.d.ts.map +0 -1
  211. package/dist/server/schemas/agents.d.ts +0 -1375
  212. package/dist/server/schemas/agents.d.ts.map +0 -1
  213. package/dist/server/schemas/common.d.ts +0 -165
  214. package/dist/server/schemas/common.d.ts.map +0 -1
  215. package/dist/server/schemas/logs.d.ts +0 -124
  216. package/dist/server/schemas/logs.d.ts.map +0 -1
  217. package/dist/server/schemas/memory.d.ts +0 -998
  218. package/dist/server/schemas/memory.d.ts.map +0 -1
  219. package/dist/server/schemas/observability.d.ts +0 -402
  220. package/dist/server/schemas/observability.d.ts.map +0 -1
  221. package/dist/server/schemas/scores.d.ts +0 -259
  222. package/dist/server/schemas/scores.d.ts.map +0 -1
  223. package/dist/server/schemas/vectors.d.ts +0 -107
  224. package/dist/server/schemas/vectors.d.ts.map +0 -1
  225. package/dist/server/schemas/workflows.d.ts +0 -505
  226. package/dist/server/schemas/workflows.d.ts.map +0 -1
  227. package/dist/server/server-adapter/index.cjs +0 -323
  228. package/dist/server/server-adapter/index.cjs.map +0 -1
  229. package/dist/server/server-adapter/index.d.ts +0 -52
  230. package/dist/server/server-adapter/index.d.ts.map +0 -1
  231. package/dist/server/server-adapter/index.js +0 -309
  232. package/dist/server/server-adapter/index.js.map +0 -1
  233. package/dist/server/server-adapter/openapi-utils.d.ts +0 -59
  234. package/dist/server/server-adapter/openapi-utils.d.ts.map +0 -1
  235. package/dist/server/server-adapter/routes/a2a.d.ts +0 -3
  236. package/dist/server/server-adapter/routes/a2a.d.ts.map +0 -1
  237. package/dist/server/server-adapter/routes/agent-builder.d.ts +0 -3
  238. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +0 -1
  239. package/dist/server/server-adapter/routes/agents.d.ts +0 -3
  240. package/dist/server/server-adapter/routes/agents.d.ts.map +0 -1
  241. package/dist/server/server-adapter/routes/index.d.ts +0 -41
  242. package/dist/server/server-adapter/routes/index.d.ts.map +0 -1
  243. package/dist/server/server-adapter/routes/legacy.d.ts +0 -7
  244. package/dist/server/server-adapter/routes/legacy.d.ts.map +0 -1
  245. package/dist/server/server-adapter/routes/logs.d.ts +0 -3
  246. package/dist/server/server-adapter/routes/logs.d.ts.map +0 -1
  247. package/dist/server/server-adapter/routes/memory.d.ts +0 -3
  248. package/dist/server/server-adapter/routes/memory.d.ts.map +0 -1
  249. package/dist/server/server-adapter/routes/observability.d.ts +0 -3
  250. package/dist/server/server-adapter/routes/observability.d.ts.map +0 -1
  251. package/dist/server/server-adapter/routes/route-builder.d.ts +0 -52
  252. package/dist/server/server-adapter/routes/route-builder.d.ts.map +0 -1
  253. package/dist/server/server-adapter/routes/scorers.d.ts +0 -3
  254. package/dist/server/server-adapter/routes/scorers.d.ts.map +0 -1
  255. package/dist/server/server-adapter/routes/stream-types.d.ts +0 -10
  256. package/dist/server/server-adapter/routes/stream-types.d.ts.map +0 -1
  257. package/dist/server/server-adapter/routes/tools.d.ts +0 -3
  258. package/dist/server/server-adapter/routes/tools.d.ts.map +0 -1
  259. package/dist/server/server-adapter/routes/vectors.d.ts +0 -3
  260. package/dist/server/server-adapter/routes/vectors.d.ts.map +0 -1
  261. package/dist/server/server-adapter/routes/workflows.d.ts +0 -3
  262. package/dist/server/server-adapter/routes/workflows.d.ts.map +0 -1
@@ -1,107 +0,0 @@
1
- import z from 'zod';
2
- export declare const vectorNamePathParams: z.ZodObject<{
3
- vectorName: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- vectorName: string;
6
- }, {
7
- vectorName: string;
8
- }>;
9
- export declare const vectorIndexPathParams: z.ZodObject<{
10
- vectorName: z.ZodString;
11
- } & {
12
- indexName: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- vectorName: string;
15
- indexName: string;
16
- }, {
17
- vectorName: string;
18
- indexName: string;
19
- }>;
20
- export declare const upsertVectorsBodySchema: z.ZodObject<{
21
- indexName: z.ZodString;
22
- } & {
23
- vectors: z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">;
24
- metadata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
25
- ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
- }, "strip", z.ZodTypeAny, {
27
- indexName: string;
28
- vectors: number[][];
29
- metadata?: Record<string, any>[] | undefined;
30
- ids?: string[] | undefined;
31
- }, {
32
- indexName: string;
33
- vectors: number[][];
34
- metadata?: Record<string, any>[] | undefined;
35
- ids?: string[] | undefined;
36
- }>;
37
- export declare const createIndexBodySchema: z.ZodObject<{
38
- indexName: z.ZodString;
39
- } & {
40
- dimension: z.ZodNumber;
41
- metric: z.ZodOptional<z.ZodEnum<["cosine", "euclidean", "dotproduct"]>>;
42
- }, "strip", z.ZodTypeAny, {
43
- indexName: string;
44
- dimension: number;
45
- metric?: "cosine" | "euclidean" | "dotproduct" | undefined;
46
- }, {
47
- indexName: string;
48
- dimension: number;
49
- metric?: "cosine" | "euclidean" | "dotproduct" | undefined;
50
- }>;
51
- export declare const queryVectorsBodySchema: z.ZodObject<{
52
- indexName: z.ZodString;
53
- } & {
54
- queryVector: z.ZodArray<z.ZodNumber, "many">;
55
- topK: z.ZodOptional<z.ZodNumber>;
56
- filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
57
- includeVector: z.ZodOptional<z.ZodBoolean>;
58
- }, "strip", z.ZodTypeAny, {
59
- indexName: string;
60
- queryVector: number[];
61
- filter?: Record<string, any> | undefined;
62
- topK?: number | undefined;
63
- includeVector?: boolean | undefined;
64
- }, {
65
- indexName: string;
66
- queryVector: number[];
67
- filter?: Record<string, any> | undefined;
68
- topK?: number | undefined;
69
- includeVector?: boolean | undefined;
70
- }>;
71
- export declare const upsertVectorsResponseSchema: z.ZodObject<{
72
- ids: z.ZodArray<z.ZodString, "many">;
73
- }, "strip", z.ZodTypeAny, {
74
- ids: string[];
75
- }, {
76
- ids: string[];
77
- }>;
78
- export declare const createIndexResponseSchema: z.ZodObject<{
79
- success: z.ZodBoolean;
80
- }, "strip", z.ZodTypeAny, {
81
- success: boolean;
82
- }, {
83
- success: boolean;
84
- }>;
85
- export declare const queryVectorsResponseSchema: z.ZodArray<z.ZodUnknown, "many">;
86
- export declare const listIndexesResponseSchema: z.ZodArray<z.ZodString, "many">;
87
- export declare const describeIndexResponseSchema: z.ZodObject<{
88
- dimension: z.ZodNumber;
89
- count: z.ZodNumber;
90
- metric: z.ZodOptional<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- count: number;
93
- dimension: number;
94
- metric?: string | undefined;
95
- }, {
96
- count: number;
97
- dimension: number;
98
- metric?: string | undefined;
99
- }>;
100
- export declare const deleteIndexResponseSchema: z.ZodObject<{
101
- success: z.ZodBoolean;
102
- }, "strip", z.ZodTypeAny, {
103
- success: boolean;
104
- }, {
105
- success: boolean;
106
- }>;
107
- //# sourceMappingURL=vectors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vectors.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/vectors.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEhC,CAAC;AAQH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;EAKjC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;EAAwB,CAAC;AAE/D,eAAO,MAAM,0BAA0B,kCAAuB,CAAC;AAE/D,eAAO,MAAM,yBAAyB,iCAAsB,CAAC;AAE7D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAItC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;EAAwB,CAAC"}
@@ -1,505 +0,0 @@
1
- import z from 'zod';
2
- export declare const workflowIdPathParams: z.ZodObject<{
3
- workflowId: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- workflowId: string;
6
- }, {
7
- workflowId: string;
8
- }>;
9
- export declare const workflowRunPathParams: z.ZodObject<{
10
- workflowId: z.ZodString;
11
- } & {
12
- runId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- runId: string;
15
- workflowId: string;
16
- }, {
17
- runId: string;
18
- workflowId: string;
19
- }>;
20
- /**
21
- * Schema for workflow information
22
- * Returned by getWorkflowByIdHandler and listWorkflowsHandler
23
- */
24
- export declare const workflowInfoSchema: z.ZodObject<{
25
- steps: z.ZodRecord<z.ZodString, z.ZodObject<{
26
- id: z.ZodString;
27
- description: z.ZodOptional<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- description?: string | undefined;
31
- }, {
32
- id: string;
33
- description?: string | undefined;
34
- }>>;
35
- allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
36
- id: z.ZodString;
37
- description: z.ZodOptional<z.ZodString>;
38
- }, "strip", z.ZodTypeAny, {
39
- id: string;
40
- description?: string | undefined;
41
- }, {
42
- id: string;
43
- description?: string | undefined;
44
- }>>;
45
- name: z.ZodOptional<z.ZodString>;
46
- description: z.ZodOptional<z.ZodString>;
47
- stepGraph: z.ZodArray<z.ZodObject<{
48
- type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
49
- }, "strip", z.ZodTypeAny, {
50
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
51
- }, {
52
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
53
- }>, "many">;
54
- inputSchema: z.ZodOptional<z.ZodString>;
55
- outputSchema: z.ZodOptional<z.ZodString>;
56
- options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
57
- }, "strip", z.ZodTypeAny, {
58
- steps: Record<string, {
59
- id: string;
60
- description?: string | undefined;
61
- }>;
62
- allSteps: Record<string, {
63
- id: string;
64
- description?: string | undefined;
65
- }>;
66
- stepGraph: {
67
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
68
- }[];
69
- options?: {} | undefined;
70
- name?: string | undefined;
71
- description?: string | undefined;
72
- inputSchema?: string | undefined;
73
- outputSchema?: string | undefined;
74
- }, {
75
- steps: Record<string, {
76
- id: string;
77
- description?: string | undefined;
78
- }>;
79
- allSteps: Record<string, {
80
- id: string;
81
- description?: string | undefined;
82
- }>;
83
- stepGraph: {
84
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
85
- }[];
86
- options?: {} | undefined;
87
- name?: string | undefined;
88
- description?: string | undefined;
89
- inputSchema?: string | undefined;
90
- outputSchema?: string | undefined;
91
- }>;
92
- /**
93
- * Schema for list workflows endpoint response
94
- * Returns a record of workflow ID to workflow info
95
- */
96
- export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
97
- steps: z.ZodRecord<z.ZodString, z.ZodObject<{
98
- id: z.ZodString;
99
- description: z.ZodOptional<z.ZodString>;
100
- }, "strip", z.ZodTypeAny, {
101
- id: string;
102
- description?: string | undefined;
103
- }, {
104
- id: string;
105
- description?: string | undefined;
106
- }>>;
107
- allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
108
- id: z.ZodString;
109
- description: z.ZodOptional<z.ZodString>;
110
- }, "strip", z.ZodTypeAny, {
111
- id: string;
112
- description?: string | undefined;
113
- }, {
114
- id: string;
115
- description?: string | undefined;
116
- }>>;
117
- name: z.ZodOptional<z.ZodString>;
118
- description: z.ZodOptional<z.ZodString>;
119
- stepGraph: z.ZodArray<z.ZodObject<{
120
- type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
121
- }, "strip", z.ZodTypeAny, {
122
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
123
- }, {
124
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
125
- }>, "many">;
126
- inputSchema: z.ZodOptional<z.ZodString>;
127
- outputSchema: z.ZodOptional<z.ZodString>;
128
- options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
129
- }, "strip", z.ZodTypeAny, {
130
- steps: Record<string, {
131
- id: string;
132
- description?: string | undefined;
133
- }>;
134
- allSteps: Record<string, {
135
- id: string;
136
- description?: string | undefined;
137
- }>;
138
- stepGraph: {
139
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
140
- }[];
141
- options?: {} | undefined;
142
- name?: string | undefined;
143
- description?: string | undefined;
144
- inputSchema?: string | undefined;
145
- outputSchema?: string | undefined;
146
- }, {
147
- steps: Record<string, {
148
- id: string;
149
- description?: string | undefined;
150
- }>;
151
- allSteps: Record<string, {
152
- id: string;
153
- description?: string | undefined;
154
- }>;
155
- stepGraph: {
156
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
157
- }[];
158
- options?: {} | undefined;
159
- name?: string | undefined;
160
- description?: string | undefined;
161
- inputSchema?: string | undefined;
162
- outputSchema?: string | undefined;
163
- }>>;
164
- /**
165
- * Schema for workflow runs response (paginated)
166
- * Includes runs array and total count
167
- */
168
- export declare const workflowRunsResponseSchema: z.ZodObject<{
169
- runs: z.ZodArray<z.ZodObject<{
170
- workflowName: z.ZodString;
171
- runId: z.ZodString;
172
- snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
173
- createdAt: z.ZodDate;
174
- updatedAt: z.ZodDate;
175
- resourceId: z.ZodOptional<z.ZodString>;
176
- }, "strip", z.ZodTypeAny, {
177
- runId: string;
178
- workflowName: string;
179
- snapshot: string | {};
180
- createdAt: Date;
181
- updatedAt: Date;
182
- resourceId?: string | undefined;
183
- }, {
184
- runId: string;
185
- workflowName: string;
186
- snapshot: string | {};
187
- createdAt: Date;
188
- updatedAt: Date;
189
- resourceId?: string | undefined;
190
- }>, "many">;
191
- total: z.ZodNumber;
192
- }, "strip", z.ZodTypeAny, {
193
- total: number;
194
- runs: {
195
- runId: string;
196
- workflowName: string;
197
- snapshot: string | {};
198
- createdAt: Date;
199
- updatedAt: Date;
200
- resourceId?: string | undefined;
201
- }[];
202
- }, {
203
- total: number;
204
- runs: {
205
- runId: string;
206
- workflowName: string;
207
- snapshot: string | {};
208
- createdAt: Date;
209
- updatedAt: Date;
210
- resourceId?: string | undefined;
211
- }[];
212
- }>;
213
- /**
214
- * Schema for single workflow run response
215
- */
216
- export declare const workflowRunResponseSchema: z.ZodObject<{
217
- workflowName: z.ZodString;
218
- runId: z.ZodString;
219
- snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
220
- createdAt: z.ZodDate;
221
- updatedAt: z.ZodDate;
222
- resourceId: z.ZodOptional<z.ZodString>;
223
- }, "strip", z.ZodTypeAny, {
224
- runId: string;
225
- workflowName: string;
226
- snapshot: string | {};
227
- createdAt: Date;
228
- updatedAt: Date;
229
- resourceId?: string | undefined;
230
- }, {
231
- runId: string;
232
- workflowName: string;
233
- snapshot: string | {};
234
- createdAt: Date;
235
- updatedAt: Date;
236
- resourceId?: string | undefined;
237
- }>;
238
- /**
239
- * Schema for query parameters when listing workflow runs
240
- * All query params come as strings from URL
241
- */
242
- export declare const listWorkflowRunsQuerySchema: z.ZodObject<{
243
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
244
- offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
245
- } & {
246
- fromDate: z.ZodOptional<z.ZodDate>;
247
- toDate: z.ZodOptional<z.ZodDate>;
248
- resourceId: z.ZodOptional<z.ZodString>;
249
- }, "strip", z.ZodTypeAny, {
250
- limit: number;
251
- offset: number;
252
- resourceId?: string | undefined;
253
- fromDate?: Date | undefined;
254
- toDate?: Date | undefined;
255
- }, {
256
- limit?: number | undefined;
257
- offset?: number | undefined;
258
- resourceId?: string | undefined;
259
- fromDate?: Date | undefined;
260
- toDate?: Date | undefined;
261
- }> | z.ZodObject<{
262
- limit: z.ZodOptional<z.ZodNumber>;
263
- offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
264
- } & {
265
- fromDate: z.ZodOptional<z.ZodDate>;
266
- toDate: z.ZodOptional<z.ZodDate>;
267
- resourceId: z.ZodOptional<z.ZodString>;
268
- }, "strip", z.ZodTypeAny, {
269
- offset: number;
270
- limit?: number | undefined;
271
- resourceId?: string | undefined;
272
- fromDate?: Date | undefined;
273
- toDate?: Date | undefined;
274
- }, {
275
- limit?: number | undefined;
276
- offset?: number | undefined;
277
- resourceId?: string | undefined;
278
- fromDate?: Date | undefined;
279
- toDate?: Date | undefined;
280
- }>;
281
- /**
282
- * Schema for legacy stream workflow body (no closeOnSuspend support)
283
- * Used by /stream-legacy endpoints
284
- */
285
- export declare const streamLegacyWorkflowBodySchema: z.ZodObject<{
286
- inputData: z.ZodOptional<z.ZodUnknown>;
287
- requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
- tracingOptions: z.ZodOptional<z.ZodObject<{
289
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
291
- traceId: z.ZodOptional<z.ZodString>;
292
- parentSpanId: z.ZodOptional<z.ZodString>;
293
- }, "strip", z.ZodTypeAny, {
294
- metadata?: Record<string, unknown> | undefined;
295
- requestContextKeys?: string[] | undefined;
296
- traceId?: string | undefined;
297
- parentSpanId?: string | undefined;
298
- }, {
299
- metadata?: Record<string, unknown> | undefined;
300
- requestContextKeys?: string[] | undefined;
301
- traceId?: string | undefined;
302
- parentSpanId?: string | undefined;
303
- }>>;
304
- }, "strip", z.ZodTypeAny, {
305
- inputData?: unknown;
306
- requestContext?: Record<string, unknown> | undefined;
307
- tracingOptions?: {
308
- metadata?: Record<string, unknown> | undefined;
309
- requestContextKeys?: string[] | undefined;
310
- traceId?: string | undefined;
311
- parentSpanId?: string | undefined;
312
- } | undefined;
313
- }, {
314
- inputData?: unknown;
315
- requestContext?: Record<string, unknown> | undefined;
316
- tracingOptions?: {
317
- metadata?: Record<string, unknown> | undefined;
318
- requestContextKeys?: string[] | undefined;
319
- traceId?: string | undefined;
320
- parentSpanId?: string | undefined;
321
- } | undefined;
322
- }>;
323
- /**
324
- * Schema for stream workflow body
325
- * Used by both /stream and /streamVNext endpoints
326
- */
327
- export declare const streamWorkflowBodySchema: z.ZodObject<{
328
- inputData: z.ZodOptional<z.ZodUnknown>;
329
- requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
330
- tracingOptions: z.ZodOptional<z.ZodObject<{
331
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
332
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
333
- traceId: z.ZodOptional<z.ZodString>;
334
- parentSpanId: z.ZodOptional<z.ZodString>;
335
- }, "strip", z.ZodTypeAny, {
336
- metadata?: Record<string, unknown> | undefined;
337
- requestContextKeys?: string[] | undefined;
338
- traceId?: string | undefined;
339
- parentSpanId?: string | undefined;
340
- }, {
341
- metadata?: Record<string, unknown> | undefined;
342
- requestContextKeys?: string[] | undefined;
343
- traceId?: string | undefined;
344
- parentSpanId?: string | undefined;
345
- }>>;
346
- } & {
347
- closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
348
- }, "strip", z.ZodTypeAny, {
349
- inputData?: unknown;
350
- requestContext?: Record<string, unknown> | undefined;
351
- tracingOptions?: {
352
- metadata?: Record<string, unknown> | undefined;
353
- requestContextKeys?: string[] | undefined;
354
- traceId?: string | undefined;
355
- parentSpanId?: string | undefined;
356
- } | undefined;
357
- closeOnSuspend?: boolean | undefined;
358
- }, {
359
- inputData?: unknown;
360
- requestContext?: Record<string, unknown> | undefined;
361
- tracingOptions?: {
362
- metadata?: Record<string, unknown> | undefined;
363
- requestContextKeys?: string[] | undefined;
364
- traceId?: string | undefined;
365
- parentSpanId?: string | undefined;
366
- } | undefined;
367
- closeOnSuspend?: boolean | undefined;
368
- }>;
369
- /**
370
- * Schema for resume workflow body
371
- * Used by resume-stream, resume-async and resume endpoints
372
- */
373
- export declare const resumeBodySchema: z.ZodObject<{
374
- step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
375
- resumeData: z.ZodOptional<z.ZodUnknown>;
376
- requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
- tracingOptions: z.ZodOptional<z.ZodObject<{
378
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
380
- traceId: z.ZodOptional<z.ZodString>;
381
- parentSpanId: z.ZodOptional<z.ZodString>;
382
- }, "strip", z.ZodTypeAny, {
383
- metadata?: Record<string, unknown> | undefined;
384
- requestContextKeys?: string[] | undefined;
385
- traceId?: string | undefined;
386
- parentSpanId?: string | undefined;
387
- }, {
388
- metadata?: Record<string, unknown> | undefined;
389
- requestContextKeys?: string[] | undefined;
390
- traceId?: string | undefined;
391
- parentSpanId?: string | undefined;
392
- }>>;
393
- }, "strip", z.ZodTypeAny, {
394
- step?: string | string[] | undefined;
395
- requestContext?: Record<string, unknown> | undefined;
396
- tracingOptions?: {
397
- metadata?: Record<string, unknown> | undefined;
398
- requestContextKeys?: string[] | undefined;
399
- traceId?: string | undefined;
400
- parentSpanId?: string | undefined;
401
- } | undefined;
402
- resumeData?: unknown;
403
- }, {
404
- step?: string | string[] | undefined;
405
- requestContext?: Record<string, unknown> | undefined;
406
- tracingOptions?: {
407
- metadata?: Record<string, unknown> | undefined;
408
- requestContextKeys?: string[] | undefined;
409
- traceId?: string | undefined;
410
- parentSpanId?: string | undefined;
411
- } | undefined;
412
- resumeData?: unknown;
413
- }>;
414
- /**
415
- * Schema for start async workflow body
416
- */
417
- export declare const startAsyncWorkflowBodySchema: z.ZodObject<{
418
- inputData: z.ZodOptional<z.ZodUnknown>;
419
- requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
- tracingOptions: z.ZodOptional<z.ZodObject<{
421
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
422
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
423
- traceId: z.ZodOptional<z.ZodString>;
424
- parentSpanId: z.ZodOptional<z.ZodString>;
425
- }, "strip", z.ZodTypeAny, {
426
- metadata?: Record<string, unknown> | undefined;
427
- requestContextKeys?: string[] | undefined;
428
- traceId?: string | undefined;
429
- parentSpanId?: string | undefined;
430
- }, {
431
- metadata?: Record<string, unknown> | undefined;
432
- requestContextKeys?: string[] | undefined;
433
- traceId?: string | undefined;
434
- parentSpanId?: string | undefined;
435
- }>>;
436
- }, "strip", z.ZodTypeAny, {
437
- inputData?: unknown;
438
- requestContext?: Record<string, unknown> | undefined;
439
- tracingOptions?: {
440
- metadata?: Record<string, unknown> | undefined;
441
- requestContextKeys?: string[] | undefined;
442
- traceId?: string | undefined;
443
- parentSpanId?: string | undefined;
444
- } | undefined;
445
- }, {
446
- inputData?: unknown;
447
- requestContext?: Record<string, unknown> | undefined;
448
- tracingOptions?: {
449
- metadata?: Record<string, unknown> | undefined;
450
- requestContextKeys?: string[] | undefined;
451
- traceId?: string | undefined;
452
- parentSpanId?: string | undefined;
453
- } | undefined;
454
- }>;
455
- /**
456
- * Schema for send workflow run event body
457
- */
458
- export declare const sendWorkflowRunEventBodySchema: z.ZodObject<{
459
- event: z.ZodString;
460
- data: z.ZodUnknown;
461
- }, "strip", z.ZodTypeAny, {
462
- event: string;
463
- data?: unknown;
464
- }, {
465
- event: string;
466
- data?: unknown;
467
- }>;
468
- /**
469
- * Schema for workflow execution result
470
- */
471
- export declare const workflowExecutionResultSchema: z.ZodObject<{
472
- status: z.ZodString;
473
- result: z.ZodOptional<z.ZodUnknown>;
474
- error: z.ZodOptional<z.ZodUnknown>;
475
- }, "strip", z.ZodTypeAny, {
476
- status: string;
477
- error?: unknown;
478
- result?: unknown;
479
- }, {
480
- status: string;
481
- error?: unknown;
482
- result?: unknown;
483
- }>;
484
- /**
485
- * Response schema for workflow control operations
486
- */
487
- export declare const workflowControlResponseSchema: z.ZodObject<{
488
- message: z.ZodString;
489
- }, "strip", z.ZodTypeAny, {
490
- message: string;
491
- }, {
492
- message: string;
493
- }>;
494
- /**
495
- * Response schema for create workflow run operation
496
- * Returns only the runId after creating a run
497
- */
498
- export declare const createWorkflowRunResponseSchema: z.ZodObject<{
499
- runId: z.ZodString;
500
- }, "strip", z.ZodTypeAny, {
501
- runId: string;
502
- }, {
503
- runId: string;
504
- }>;
505
- //# sourceMappingURL=workflows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEhC,CAAC;AAmBH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAcpF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC;AAWH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;EAAwB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;EAE1C,CAAC"}