@mastra/server 1.63.2 → 1.63.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
  3. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
  4. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
  5. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
  6. package/dist/docs/SKILL.md +8 -8
  7. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  8. package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
  9. package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
  10. package/dist/server/a2a/store.d.ts.map +1 -1
  11. package/dist/server/auth/helpers.d.ts +1 -1
  12. package/dist/server/auth/helpers.d.ts.map +1 -1
  13. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
  14. package/dist/server/constants.d.ts +1 -1
  15. package/dist/server/constants.d.ts.map +1 -1
  16. package/dist/server/handlers/a2a.d.ts +60 -60
  17. package/dist/server/handlers/a2a.d.ts.map +1 -1
  18. package/dist/server/handlers/agent-builder.d.ts +110 -110
  19. package/dist/server/handlers/agent-controller.cjs +10 -4
  20. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  21. package/dist/server/handlers/agent-controller.d.ts +110 -110
  22. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  23. package/dist/server/handlers/agent-controller.js +10 -4
  24. package/dist/server/handlers/agent-controller.js.map +1 -1
  25. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  26. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  27. package/dist/server/handlers/agents.d.ts +4355 -4355
  28. package/dist/server/handlers/agents.d.ts.map +1 -1
  29. package/dist/server/handlers/auth.d.ts +52 -52
  30. package/dist/server/handlers/background-tasks.d.ts +37 -37
  31. package/dist/server/handlers/builder-registry.d.ts +12 -12
  32. package/dist/server/handlers/channels.d.ts +10 -10
  33. package/dist/server/handlers/conversations.d.ts +13 -13
  34. package/dist/server/handlers/datasets.d.ts +396 -396
  35. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  36. package/dist/server/handlers/editor-builder.d.ts +13 -13
  37. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  38. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  39. package/dist/server/handlers/logs.d.ts +40 -40
  40. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  41. package/dist/server/handlers/mcp.d.ts +23 -23
  42. package/dist/server/handlers/memory.d.ts +138 -138
  43. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  44. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  45. package/dist/server/handlers/observability-shared.d.ts +126 -126
  46. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  47. package/dist/server/handlers/observability.d.ts +17 -17
  48. package/dist/server/handlers/plans.d.ts +3 -3
  49. package/dist/server/handlers/processor-providers.d.ts +9 -9
  50. package/dist/server/handlers/processors.d.ts +31 -31
  51. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  52. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  53. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  54. package/dist/server/handlers/responses.d.ts +17 -17
  55. package/dist/server/handlers/schedules.d.ts +242 -242
  56. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  57. package/dist/server/handlers/scores.d.ts +20 -20
  58. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  59. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  60. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  61. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  62. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  63. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  64. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  65. package/dist/server/handlers/stored-skills.d.ts +70 -70
  66. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  67. package/dist/server/handlers/system.d.ts +19 -19
  68. package/dist/server/handlers/tool-providers.d.ts +49 -49
  69. package/dist/server/handlers/tools.d.ts +10 -10
  70. package/dist/server/handlers/vector.d.ts +18 -18
  71. package/dist/server/handlers/version-helpers.d.ts +1 -1
  72. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  73. package/dist/server/handlers/workflows.d.ts +167 -167
  74. package/dist/server/handlers/workspace.d.ts +370 -370
  75. package/dist/server/http-exception.d.ts.map +1 -1
  76. package/dist/server/schemas/a2a.d.ts +18 -18
  77. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  78. package/dist/server/schemas/agents.d.ts +172 -172
  79. package/dist/server/schemas/agents.d.ts.map +1 -1
  80. package/dist/server/schemas/auth.d.ts +5 -5
  81. package/dist/server/schemas/background-tasks.d.ts +22 -22
  82. package/dist/server/schemas/builder-registry.d.ts +1 -1
  83. package/dist/server/schemas/channels.d.ts +1 -1
  84. package/dist/server/schemas/common.d.ts +5 -5
  85. package/dist/server/schemas/common.d.ts.map +1 -1
  86. package/dist/server/schemas/conversations.d.ts +2 -2
  87. package/dist/server/schemas/datasets.d.ts +98 -98
  88. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  89. package/dist/server/schemas/logs.d.ts +8 -8
  90. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  91. package/dist/server/schemas/memory-config.d.ts +5 -5
  92. package/dist/server/schemas/memory.d.ts +20 -20
  93. package/dist/server/schemas/processor-providers.d.ts +2 -2
  94. package/dist/server/schemas/processors.d.ts +13 -13
  95. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  96. package/dist/server/schemas/responses.d.ts +11 -11
  97. package/dist/server/schemas/rule-group.d.ts +28 -28
  98. package/dist/server/schemas/schedules.d.ts +120 -120
  99. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  100. package/dist/server/schemas/scores.d.ts +2 -2
  101. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  102. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  103. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  104. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  105. package/dist/server/schemas/stored-skills.d.ts +22 -22
  106. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  107. package/dist/server/schemas/system.d.ts +12 -12
  108. package/dist/server/schemas/tool-providers.d.ts +20 -20
  109. package/dist/server/schemas/vectors.d.ts +1 -1
  110. package/dist/server/schemas/version-common.d.ts +2 -2
  111. package/dist/server/schemas/workflows.d.ts +57 -57
  112. package/dist/server/schemas/workspace.d.ts +17 -17
  113. package/dist/server/server-adapter/index.d.ts.map +1 -1
  114. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  115. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  116. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  117. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  118. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  119. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  120. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  121. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  122. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  123. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  124. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  125. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  126. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  127. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  128. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  129. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  130. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  131. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  132. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  133. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  134. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  135. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  136. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  137. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  138. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  139. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  140. package/dist/server/utils.d.ts.map +1 -1
  141. package/package.json +8 -7
@@ -6,11 +6,11 @@
6
6
  * - Search operations (search, index)
7
7
  * - Skills operations (list, get, search, references)
8
8
  */
9
- export declare const LIST_WORKSPACES_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
9
+ export declare const LIST_WORKSPACES_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
10
10
  method: "GET";
11
11
  path: "/workspaces";
12
12
  responseType: "json";
13
- streamFormat?: "sse" | "stream";
13
+ streamFormat?: 'sse' | 'stream';
14
14
  sseFlushOnConnect?: boolean;
15
15
  handler(params: import("../server-adapter").ServerContext): Promise<{
16
16
  workspaces: {
@@ -18,6 +18,8 @@ export declare const LIST_WORKSPACES_ROUTE: Omit<import("@mastra/core/server").A
18
18
  name: string;
19
19
  status: string;
20
20
  source: "agent" | "mastra";
21
+ agentId?: string | undefined;
22
+ agentName?: string | undefined;
21
23
  capabilities: {
22
24
  hasFilesystem: boolean;
23
25
  hasSandbox: boolean;
@@ -29,8 +31,6 @@ export declare const LIST_WORKSPACES_ROUTE: Omit<import("@mastra/core/server").A
29
31
  safety: {
30
32
  readOnly: boolean;
31
33
  };
32
- agentId?: string | undefined;
33
- agentName?: string | undefined;
34
34
  }[];
35
35
  }>;
36
36
  pathParamSchema?: import("zod").ZodType;
@@ -70,11 +70,11 @@ export declare const LIST_WORKSPACES_ROUTE: Omit<import("@mastra/core/server").A
70
70
  } & {
71
71
  readonly _mastraSchemaRoute: true;
72
72
  };
73
- export declare const GET_WORKSPACE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
73
+ export declare const GET_WORKSPACE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
74
74
  method: "GET";
75
75
  path: "/workspaces/:workspaceId";
76
76
  responseType: "json";
77
- streamFormat?: "sse" | "stream";
77
+ streamFormat?: 'sse' | 'stream';
78
78
  sseFlushOnConnect?: boolean;
79
79
  handler(params: {
80
80
  workspaceId: string;
@@ -163,11 +163,11 @@ export declare const GET_WORKSPACE_ROUTE: Omit<import("@mastra/core/server").Api
163
163
  } & {
164
164
  readonly _mastraSchemaRoute: true;
165
165
  };
166
- export declare const WORKSPACE_FS_READ_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
166
+ export declare const WORKSPACE_FS_READ_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
167
167
  method: "GET";
168
168
  path: "/workspaces/:workspaceId/fs/read";
169
169
  responseType: "json";
170
- streamFormat?: "sse" | "stream";
170
+ streamFormat?: 'sse' | 'stream';
171
171
  sseFlushOnConnect?: boolean;
172
172
  handler(params: {
173
173
  workspaceId: string;
@@ -177,7 +177,7 @@ export declare const WORKSPACE_FS_READ_ROUTE: Omit<import("@mastra/core/server")
177
177
  } & import("../server-adapter").ServerContext): Promise<{
178
178
  path: string;
179
179
  content: string;
180
- type: "file" | "directory";
180
+ type: "directory" | "file";
181
181
  size?: number | undefined;
182
182
  mimeType?: string | undefined;
183
183
  }>;
@@ -200,8 +200,8 @@ export declare const WORKSPACE_FS_READ_ROUTE: Omit<import("@mastra/core/server")
200
200
  path: import("zod").ZodString;
201
201
  content: import("zod").ZodString;
202
202
  type: import("zod").ZodEnum<{
203
- file: "file";
204
203
  directory: "directory";
204
+ file: "file";
205
205
  }>;
206
206
  size: import("zod").ZodOptional<import("zod").ZodNumber>;
207
207
  mimeType: import("zod").ZodOptional<import("zod").ZodString>;
@@ -209,18 +209,18 @@ export declare const WORKSPACE_FS_READ_ROUTE: Omit<import("@mastra/core/server")
209
209
  } & {
210
210
  readonly _mastraSchemaRoute: true;
211
211
  };
212
- export declare const WORKSPACE_FS_WRITE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
212
+ export declare const WORKSPACE_FS_WRITE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
213
213
  method: "POST";
214
214
  path: "/workspaces/:workspaceId/fs/write";
215
215
  responseType: "json";
216
- streamFormat?: "sse" | "stream";
216
+ streamFormat?: 'sse' | 'stream';
217
217
  sseFlushOnConnect?: boolean;
218
218
  handler(params: {
219
219
  workspaceId: string;
220
220
  } & {
221
221
  path: string;
222
222
  content: string;
223
- encoding: "utf-8" | "base64";
223
+ encoding: "base64" | "utf-8";
224
224
  recursive?: boolean | undefined;
225
225
  } & import("../server-adapter").ServerContext): Promise<{
226
226
  success: boolean;
@@ -242,8 +242,8 @@ export declare const WORKSPACE_FS_WRITE_ROUTE: Omit<import("@mastra/core/server"
242
242
  path: import("zod").ZodString;
243
243
  content: import("zod").ZodString;
244
244
  encoding: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
245
- "utf-8": "utf-8";
246
245
  base64: "base64";
246
+ "utf-8": "utf-8";
247
247
  }>>>;
248
248
  recursive: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
249
249
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -253,11 +253,11 @@ export declare const WORKSPACE_FS_WRITE_ROUTE: Omit<import("@mastra/core/server"
253
253
  } & {
254
254
  readonly _mastraSchemaRoute: true;
255
255
  };
256
- export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
256
+ export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
257
257
  method: "GET";
258
258
  path: "/workspaces/:workspaceId/fs/list";
259
259
  responseType: "json";
260
- streamFormat?: "sse" | "stream";
260
+ streamFormat?: 'sse' | 'stream';
261
261
  sseFlushOnConnect?: boolean;
262
262
  handler(params: {
263
263
  workspaceId: string;
@@ -268,14 +268,14 @@ export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server")
268
268
  path: string;
269
269
  entries: {
270
270
  name: string;
271
- type: "file" | "directory";
271
+ type: "directory" | "file";
272
272
  size?: number | undefined;
273
273
  mount?: {
274
274
  provider: string;
275
275
  icon?: string | undefined;
276
276
  displayName?: string | undefined;
277
277
  description?: string | undefined;
278
- status?: "error" | "running" | "pending" | "initializing" | "ready" | "starting" | "stopping" | "stopped" | "destroying" | "destroyed" | undefined;
278
+ status?: "destroyed" | "destroying" | "error" | "initializing" | "pending" | "ready" | "running" | "starting" | "stopped" | "stopping" | undefined;
279
279
  error?: string | undefined;
280
280
  } | undefined;
281
281
  }[];
@@ -300,8 +300,8 @@ export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server")
300
300
  entries: import("zod").ZodArray<import("zod").ZodObject<{
301
301
  name: import("zod").ZodString;
302
302
  type: import("zod").ZodEnum<{
303
- file: "file";
304
303
  directory: "directory";
304
+ file: "file";
305
305
  }>;
306
306
  size: import("zod").ZodOptional<import("zod").ZodNumber>;
307
307
  mount: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -310,16 +310,16 @@ export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server")
310
310
  displayName: import("zod").ZodOptional<import("zod").ZodString>;
311
311
  description: import("zod").ZodOptional<import("zod").ZodString>;
312
312
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
313
+ destroyed: "destroyed";
314
+ destroying: "destroying";
313
315
  error: "error";
314
- running: "running";
315
- pending: "pending";
316
316
  initializing: "initializing";
317
+ pending: "pending";
317
318
  ready: "ready";
319
+ running: "running";
318
320
  starting: "starting";
319
- stopping: "stopping";
320
321
  stopped: "stopped";
321
- destroying: "destroying";
322
- destroyed: "destroyed";
322
+ stopping: "stopping";
323
323
  }>>;
324
324
  error: import("zod").ZodOptional<import("zod").ZodString>;
325
325
  }, import("zod/v4/core").$strip>>;
@@ -328,11 +328,11 @@ export declare const WORKSPACE_FS_LIST_ROUTE: Omit<import("@mastra/core/server")
328
328
  } & {
329
329
  readonly _mastraSchemaRoute: true;
330
330
  };
331
- export declare const WORKSPACE_FS_DELETE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
331
+ export declare const WORKSPACE_FS_DELETE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
332
332
  method: "DELETE";
333
333
  path: "/workspaces/:workspaceId/fs/delete";
334
334
  responseType: "json";
335
- streamFormat?: "sse" | "stream";
335
+ streamFormat?: 'sse' | 'stream';
336
336
  sseFlushOnConnect?: boolean;
337
337
  handler(params: {
338
338
  workspaceId: string;
@@ -367,11 +367,11 @@ export declare const WORKSPACE_FS_DELETE_ROUTE: Omit<import("@mastra/core/server
367
367
  } & {
368
368
  readonly _mastraSchemaRoute: true;
369
369
  };
370
- export declare const WORKSPACE_FS_MKDIR_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
370
+ export declare const WORKSPACE_FS_MKDIR_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
371
371
  method: "POST";
372
372
  path: "/workspaces/:workspaceId/fs/mkdir";
373
373
  responseType: "json";
374
- streamFormat?: "sse" | "stream";
374
+ streamFormat?: 'sse' | 'stream';
375
375
  sseFlushOnConnect?: boolean;
376
376
  handler(params: {
377
377
  workspaceId: string;
@@ -404,11 +404,11 @@ export declare const WORKSPACE_FS_MKDIR_ROUTE: Omit<import("@mastra/core/server"
404
404
  } & {
405
405
  readonly _mastraSchemaRoute: true;
406
406
  };
407
- export declare const WORKSPACE_FS_STAT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
407
+ export declare const WORKSPACE_FS_STAT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
408
408
  method: "GET";
409
409
  path: "/workspaces/:workspaceId/fs/stat";
410
410
  responseType: "json";
411
- streamFormat?: "sse" | "stream";
411
+ streamFormat?: 'sse' | 'stream';
412
412
  sseFlushOnConnect?: boolean;
413
413
  handler(params: {
414
414
  workspaceId: string;
@@ -416,7 +416,7 @@ export declare const WORKSPACE_FS_STAT_ROUTE: Omit<import("@mastra/core/server")
416
416
  path: string;
417
417
  } & import("../server-adapter").ServerContext): Promise<{
418
418
  path: string;
419
- type: "file" | "directory";
419
+ type: "directory" | "file";
420
420
  size?: number | undefined;
421
421
  createdAt?: string | undefined;
422
422
  modifiedAt?: string | undefined;
@@ -439,8 +439,8 @@ export declare const WORKSPACE_FS_STAT_ROUTE: Omit<import("@mastra/core/server")
439
439
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
440
440
  path: import("zod").ZodString;
441
441
  type: import("zod").ZodEnum<{
442
- file: "file";
443
442
  directory: "directory";
443
+ file: "file";
444
444
  }>;
445
445
  size: import("zod").ZodOptional<import("zod").ZodNumber>;
446
446
  createdAt: import("zod").ZodOptional<import("zod").ZodString>;
@@ -450,18 +450,18 @@ export declare const WORKSPACE_FS_STAT_ROUTE: Omit<import("@mastra/core/server")
450
450
  } & {
451
451
  readonly _mastraSchemaRoute: true;
452
452
  };
453
- export declare const WORKSPACE_SEARCH_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
453
+ export declare const WORKSPACE_SEARCH_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
454
454
  method: "GET";
455
455
  path: "/workspaces/:workspaceId/search";
456
456
  responseType: "json";
457
- streamFormat?: "sse" | "stream";
457
+ streamFormat?: 'sse' | 'stream';
458
458
  sseFlushOnConnect?: boolean;
459
459
  handler(params: {
460
460
  workspaceId: string;
461
461
  } & {
462
462
  query: string;
463
463
  topK: number;
464
- mode?: "vector" | "bm25" | "hybrid" | undefined;
464
+ mode?: "bm25" | "hybrid" | "vector" | undefined;
465
465
  minScore?: number | undefined;
466
466
  } & import("../server-adapter").ServerContext): Promise<{
467
467
  results: {
@@ -478,7 +478,7 @@ export declare const WORKSPACE_SEARCH_ROUTE: Omit<import("@mastra/core/server").
478
478
  } | undefined;
479
479
  }[];
480
480
  query: string;
481
- mode: "vector" | "bm25" | "hybrid";
481
+ mode: "bm25" | "hybrid" | "vector";
482
482
  }>;
483
483
  pathParamSchema?: import("zod").ZodType;
484
484
  queryParamSchema?: import("zod").ZodType;
@@ -496,9 +496,9 @@ export declare const WORKSPACE_SEARCH_ROUTE: Omit<import("@mastra/core/server").
496
496
  query: import("zod").ZodString;
497
497
  topK: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
498
498
  mode: import("zod").ZodOptional<import("zod").ZodEnum<{
499
- vector: "vector";
500
499
  bm25: "bm25";
501
500
  hybrid: "hybrid";
501
+ vector: "vector";
502
502
  }>>;
503
503
  minScore: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
504
504
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
@@ -517,19 +517,19 @@ export declare const WORKSPACE_SEARCH_ROUTE: Omit<import("@mastra/core/server").
517
517
  }, import("zod/v4/core").$strip>>;
518
518
  query: import("zod").ZodString;
519
519
  mode: import("zod").ZodEnum<{
520
- vector: "vector";
521
520
  bm25: "bm25";
522
521
  hybrid: "hybrid";
522
+ vector: "vector";
523
523
  }>;
524
524
  }, import("zod/v4/core").$strip>> | undefined;
525
525
  } & {
526
526
  readonly _mastraSchemaRoute: true;
527
527
  };
528
- export declare const WORKSPACE_INDEX_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
528
+ export declare const WORKSPACE_INDEX_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
529
529
  method: "POST";
530
530
  path: "/workspaces/:workspaceId/index";
531
531
  responseType: "json";
532
- streamFormat?: "sse" | "stream";
532
+ streamFormat?: 'sse' | 'stream';
533
533
  sseFlushOnConnect?: boolean;
534
534
  handler(params: {
535
535
  workspaceId: string;
@@ -564,11 +564,11 @@ export declare const WORKSPACE_INDEX_ROUTE: Omit<import("@mastra/core/server").A
564
564
  } & {
565
565
  readonly _mastraSchemaRoute: true;
566
566
  };
567
- export declare const WORKSPACE_LIST_SKILLS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
567
+ export declare const WORKSPACE_LIST_SKILLS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
568
568
  method: "GET";
569
569
  path: "/workspaces/:workspaceId/skills";
570
570
  responseType: "json";
571
- streamFormat?: "sse" | "stream";
571
+ streamFormat?: 'sse' | 'stream';
572
572
  sseFlushOnConnect?: boolean;
573
573
  handler(params: {
574
574
  workspaceId: string;
@@ -576,10 +576,10 @@ export declare const WORKSPACE_LIST_SKILLS_ROUTE: Omit<import("@mastra/core/serv
576
576
  skills: {
577
577
  name: string;
578
578
  description: string;
579
- path: string;
580
579
  license?: string | undefined;
581
580
  compatibility?: unknown;
582
581
  metadata?: Record<string, unknown> | undefined;
582
+ path: string;
583
583
  skillsShSource?: {
584
584
  owner: string;
585
585
  repo: string;
@@ -617,11 +617,11 @@ export declare const WORKSPACE_LIST_SKILLS_ROUTE: Omit<import("@mastra/core/serv
617
617
  } & {
618
618
  readonly _mastraSchemaRoute: true;
619
619
  };
620
- export declare const WORKSPACE_GET_SKILL_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
620
+ export declare const WORKSPACE_GET_SKILL_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
621
621
  method: "GET";
622
622
  path: "/workspaces/:workspaceId/skills/:skillName";
623
623
  responseType: "json";
624
- streamFormat?: "sse" | "stream";
624
+ streamFormat?: 'sse' | 'stream';
625
625
  sseFlushOnConnect?: boolean;
626
626
  handler(params: {
627
627
  workspaceId: string;
@@ -631,6 +631,9 @@ export declare const WORKSPACE_GET_SKILL_ROUTE: Omit<import("@mastra/core/server
631
631
  } & import("../server-adapter").ServerContext): Promise<{
632
632
  name: string;
633
633
  description: string;
634
+ license?: string | undefined;
635
+ compatibility?: unknown;
636
+ metadata?: Record<string, unknown> | undefined;
634
637
  path: string;
635
638
  instructions: string;
636
639
  source: {
@@ -646,9 +649,6 @@ export declare const WORKSPACE_GET_SKILL_ROUTE: Omit<import("@mastra/core/server
646
649
  references: string[];
647
650
  scripts: string[];
648
651
  assets: string[];
649
- license?: string | undefined;
650
- compatibility?: unknown;
651
- metadata?: Record<string, unknown> | undefined;
652
652
  }>;
653
653
  pathParamSchema?: import("zod").ZodType;
654
654
  queryParamSchema?: import("zod").ZodType;
@@ -690,11 +690,11 @@ export declare const WORKSPACE_GET_SKILL_ROUTE: Omit<import("@mastra/core/server
690
690
  } & {
691
691
  readonly _mastraSchemaRoute: true;
692
692
  };
693
- export declare const WORKSPACE_LIST_SKILL_REFERENCES_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
693
+ export declare const WORKSPACE_LIST_SKILL_REFERENCES_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
694
694
  method: "GET";
695
695
  path: "/workspaces/:workspaceId/skills/:skillName/references";
696
696
  responseType: "json";
697
- streamFormat?: "sse" | "stream";
697
+ streamFormat?: 'sse' | 'stream';
698
698
  sseFlushOnConnect?: boolean;
699
699
  handler(params: {
700
700
  workspaceId: string;
@@ -727,11 +727,11 @@ export declare const WORKSPACE_LIST_SKILL_REFERENCES_ROUTE: Omit<import("@mastra
727
727
  } & {
728
728
  readonly _mastraSchemaRoute: true;
729
729
  };
730
- export declare const WORKSPACE_GET_SKILL_REFERENCE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
730
+ export declare const WORKSPACE_GET_SKILL_REFERENCE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
731
731
  method: "GET";
732
732
  path: "/workspaces/:workspaceId/skills/:skillName/references/:referencePath";
733
733
  responseType: "json";
734
- streamFormat?: "sse" | "stream";
734
+ streamFormat?: 'sse' | 'stream';
735
735
  sseFlushOnConnect?: boolean;
736
736
  handler(params: {
737
737
  workspaceId: string;
@@ -768,20 +768,20 @@ export declare const WORKSPACE_GET_SKILL_REFERENCE_ROUTE: Omit<import("@mastra/c
768
768
  } & {
769
769
  readonly _mastraSchemaRoute: true;
770
770
  };
771
- export declare const WORKSPACE_SEARCH_SKILLS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
771
+ export declare const WORKSPACE_SEARCH_SKILLS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
772
772
  method: "GET";
773
773
  path: "/workspaces/:workspaceId/skills/search";
774
774
  responseType: "json";
775
- streamFormat?: "sse" | "stream";
775
+ streamFormat?: 'sse' | 'stream';
776
776
  sseFlushOnConnect?: boolean;
777
777
  handler(params: {
778
778
  workspaceId: string;
779
779
  } & {
780
780
  query: string;
781
781
  topK: number;
782
- includeReferences: boolean;
783
782
  minScore?: number | undefined;
784
783
  skillNames?: string | undefined;
784
+ includeReferences: boolean;
785
785
  } & import("../server-adapter").ServerContext): Promise<{
786
786
  results: {
787
787
  skillName: string;
@@ -839,11 +839,11 @@ export declare const WORKSPACE_SEARCH_SKILLS_ROUTE: Omit<import("@mastra/core/se
839
839
  } & {
840
840
  readonly _mastraSchemaRoute: true;
841
841
  };
842
- export declare const WORKSPACE_SKILLS_SH_SEARCH_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
842
+ export declare const WORKSPACE_SKILLS_SH_SEARCH_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
843
843
  method: "GET";
844
844
  path: "/workspaces/:workspaceId/skills-sh/search";
845
845
  responseType: "json";
846
- streamFormat?: "sse" | "stream";
846
+ streamFormat?: 'sse' | 'stream';
847
847
  sseFlushOnConnect?: boolean;
848
848
  handler(params: {
849
849
  workspaceId: string;
@@ -890,11 +890,11 @@ export declare const WORKSPACE_SKILLS_SH_SEARCH_ROUTE: Omit<import("@mastra/core
890
890
  } & {
891
891
  readonly _mastraSchemaRoute: true;
892
892
  };
893
- export declare const WORKSPACE_SKILLS_SH_POPULAR_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
893
+ export declare const WORKSPACE_SKILLS_SH_POPULAR_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
894
894
  method: "GET";
895
895
  path: "/workspaces/:workspaceId/skills-sh/popular";
896
896
  responseType: "json";
897
- streamFormat?: "sse" | "stream";
897
+ streamFormat?: 'sse' | 'stream';
898
898
  sseFlushOnConnect?: boolean;
899
899
  handler(params: {
900
900
  workspaceId: string;
@@ -941,11 +941,11 @@ export declare const WORKSPACE_SKILLS_SH_POPULAR_ROUTE: Omit<import("@mastra/cor
941
941
  } & {
942
942
  readonly _mastraSchemaRoute: true;
943
943
  };
944
- export declare const WORKSPACE_SKILLS_SH_PREVIEW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
944
+ export declare const WORKSPACE_SKILLS_SH_PREVIEW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
945
945
  method: "GET";
946
946
  path: "/workspaces/:workspaceId/skills-sh/preview";
947
947
  responseType: "json";
948
- streamFormat?: "sse" | "stream";
948
+ streamFormat?: 'sse' | 'stream';
949
949
  sseFlushOnConnect?: boolean;
950
950
  handler(params: {
951
951
  workspaceId: string;
@@ -978,11 +978,11 @@ export declare const WORKSPACE_SKILLS_SH_PREVIEW_ROUTE: Omit<import("@mastra/cor
978
978
  } & {
979
979
  readonly _mastraSchemaRoute: true;
980
980
  };
981
- export declare const WORKSPACE_SKILLS_SH_INSTALL_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
981
+ export declare const WORKSPACE_SKILLS_SH_INSTALL_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
982
982
  method: "POST";
983
983
  path: "/workspaces/:workspaceId/skills-sh/install";
984
984
  responseType: "json";
985
- streamFormat?: "sse" | "stream";
985
+ streamFormat?: 'sse' | 'stream';
986
986
  sseFlushOnConnect?: boolean;
987
987
  handler(params: {
988
988
  workspaceId: string;
@@ -1023,11 +1023,11 @@ export declare const WORKSPACE_SKILLS_SH_INSTALL_ROUTE: Omit<import("@mastra/cor
1023
1023
  } & {
1024
1024
  readonly _mastraSchemaRoute: true;
1025
1025
  };
1026
- export declare const WORKSPACE_SKILLS_SH_REMOVE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1026
+ export declare const WORKSPACE_SKILLS_SH_REMOVE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1027
1027
  method: "POST";
1028
1028
  path: "/workspaces/:workspaceId/skills-sh/remove";
1029
1029
  responseType: "json";
1030
- streamFormat?: "sse" | "stream";
1030
+ streamFormat?: 'sse' | 'stream';
1031
1031
  sseFlushOnConnect?: boolean;
1032
1032
  handler(params: {
1033
1033
  workspaceId: string;
@@ -1060,11 +1060,11 @@ export declare const WORKSPACE_SKILLS_SH_REMOVE_ROUTE: Omit<import("@mastra/core
1060
1060
  } & {
1061
1061
  readonly _mastraSchemaRoute: true;
1062
1062
  };
1063
- export declare const WORKSPACE_SKILLS_SH_UPDATE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1063
+ export declare const WORKSPACE_SKILLS_SH_UPDATE_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1064
1064
  method: "POST";
1065
1065
  path: "/workspaces/:workspaceId/skills-sh/update";
1066
1066
  responseType: "json";
1067
- streamFormat?: "sse" | "stream";
1067
+ streamFormat?: 'sse' | 'stream';
1068
1068
  sseFlushOnConnect?: boolean;
1069
1069
  handler(params: {
1070
1070
  workspaceId: string;
@@ -1103,11 +1103,133 @@ export declare const WORKSPACE_SKILLS_SH_UPDATE_ROUTE: Omit<import("@mastra/core
1103
1103
  } & {
1104
1104
  readonly _mastraSchemaRoute: true;
1105
1105
  };
1106
- export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1106
+ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1107
+ method: "POST";
1108
+ path: "/workspaces/:workspaceId/skills-sh/install";
1109
+ responseType: "json";
1110
+ streamFormat?: 'sse' | 'stream';
1111
+ sseFlushOnConnect?: boolean;
1112
+ handler(params: {
1113
+ workspaceId: string;
1114
+ } & {
1115
+ owner: string;
1116
+ repo: string;
1117
+ skillName: string;
1118
+ mount?: string | undefined;
1119
+ } & import("../server-adapter").ServerContext): Promise<{
1120
+ success: boolean;
1121
+ skillName: string;
1122
+ installedPath: string;
1123
+ filesWritten: number;
1124
+ }>;
1125
+ pathParamSchema?: import("zod").ZodType;
1126
+ queryParamSchema?: import("zod").ZodType;
1127
+ bodySchema?: import("zod").ZodType;
1128
+ responseSchema?: import("zod").ZodType;
1129
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1130
+ maxBodySize?: number;
1131
+ deprecated?: boolean;
1132
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1133
+ fga?: import("@mastra/core/auth").FGARouteConfig;
1134
+ onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1135
+ readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1136
+ workspaceId: import("zod").ZodString;
1137
+ }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1138
+ owner: import("zod").ZodString;
1139
+ repo: import("zod").ZodString;
1140
+ skillName: import("zod").ZodString;
1141
+ mount: import("zod").ZodOptional<import("zod").ZodString>;
1142
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1143
+ success: import("zod").ZodBoolean;
1144
+ skillName: import("zod").ZodString;
1145
+ installedPath: import("zod").ZodString;
1146
+ filesWritten: import("zod").ZodNumber;
1147
+ }, import("zod/v4/core").$strip>> | undefined;
1148
+ } & {
1149
+ readonly _mastraSchemaRoute: true;
1150
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1151
+ method: "POST";
1152
+ path: "/workspaces/:workspaceId/skills-sh/remove";
1153
+ responseType: "json";
1154
+ streamFormat?: 'sse' | 'stream';
1155
+ sseFlushOnConnect?: boolean;
1156
+ handler(params: {
1157
+ workspaceId: string;
1158
+ } & {
1159
+ skillName: string;
1160
+ } & import("../server-adapter").ServerContext): Promise<{
1161
+ success: boolean;
1162
+ skillName: string;
1163
+ removedPath: string;
1164
+ }>;
1165
+ pathParamSchema?: import("zod").ZodType;
1166
+ queryParamSchema?: import("zod").ZodType;
1167
+ bodySchema?: import("zod").ZodType;
1168
+ responseSchema?: import("zod").ZodType;
1169
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1170
+ maxBodySize?: number;
1171
+ deprecated?: boolean;
1172
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1173
+ fga?: import("@mastra/core/auth").FGARouteConfig;
1174
+ onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1175
+ readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1176
+ workspaceId: import("zod").ZodString;
1177
+ }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1178
+ skillName: import("zod").ZodString;
1179
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1180
+ success: import("zod").ZodBoolean;
1181
+ skillName: import("zod").ZodString;
1182
+ removedPath: import("zod").ZodString;
1183
+ }, import("zod/v4/core").$strip>> | undefined;
1184
+ } & {
1185
+ readonly _mastraSchemaRoute: true;
1186
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1187
+ method: "POST";
1188
+ path: "/workspaces/:workspaceId/skills-sh/update";
1189
+ responseType: "json";
1190
+ streamFormat?: 'sse' | 'stream';
1191
+ sseFlushOnConnect?: boolean;
1192
+ handler(params: {
1193
+ workspaceId: string;
1194
+ } & {
1195
+ skillName?: string | undefined;
1196
+ } & import("../server-adapter").ServerContext): Promise<{
1197
+ updated: {
1198
+ skillName: string;
1199
+ success: boolean;
1200
+ filesWritten?: number | undefined;
1201
+ error?: string | undefined;
1202
+ }[];
1203
+ }>;
1204
+ pathParamSchema?: import("zod").ZodType;
1205
+ queryParamSchema?: import("zod").ZodType;
1206
+ bodySchema?: import("zod").ZodType;
1207
+ responseSchema?: import("zod").ZodType;
1208
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1209
+ maxBodySize?: number;
1210
+ deprecated?: boolean;
1211
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1212
+ fga?: import("@mastra/core/auth").FGARouteConfig;
1213
+ onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1214
+ readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1215
+ workspaceId: import("zod").ZodString;
1216
+ }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1217
+ skillName: import("zod").ZodOptional<import("zod").ZodString>;
1218
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1219
+ updated: import("zod").ZodArray<import("zod").ZodObject<{
1220
+ skillName: import("zod").ZodString;
1221
+ success: import("zod").ZodBoolean;
1222
+ filesWritten: import("zod").ZodOptional<import("zod").ZodNumber>;
1223
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1224
+ }, import("zod/v4/core").$strip>>;
1225
+ }, import("zod/v4/core").$strip>> | undefined;
1226
+ } & {
1227
+ readonly _mastraSchemaRoute: true;
1228
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1107
1229
  method: "GET";
1108
1230
  path: "/workspaces/:workspaceId/skills-sh/search";
1109
1231
  responseType: "json";
1110
- streamFormat?: "sse" | "stream";
1232
+ streamFormat?: 'sse' | 'stream';
1111
1233
  sseFlushOnConnect?: boolean;
1112
1234
  handler(params: {
1113
1235
  workspaceId: string;
@@ -1153,11 +1275,11 @@ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/ser
1153
1275
  }, import("zod/v4/core").$strip>> | undefined;
1154
1276
  } & {
1155
1277
  readonly _mastraSchemaRoute: true;
1156
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1278
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1157
1279
  method: "GET";
1158
1280
  path: "/workspaces/:workspaceId/skills-sh/popular";
1159
1281
  responseType: "json";
1160
- streamFormat?: "sse" | "stream";
1282
+ streamFormat?: 'sse' | 'stream';
1161
1283
  sseFlushOnConnect?: boolean;
1162
1284
  handler(params: {
1163
1285
  workspaceId: string;
@@ -1203,11 +1325,11 @@ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/ser
1203
1325
  }, import("zod/v4/core").$strip>> | undefined;
1204
1326
  } & {
1205
1327
  readonly _mastraSchemaRoute: true;
1206
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1328
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1207
1329
  method: "GET";
1208
1330
  path: "/workspaces/:workspaceId/skills-sh/preview";
1209
1331
  responseType: "json";
1210
- streamFormat?: "sse" | "stream";
1332
+ streamFormat?: 'sse' | 'stream';
1211
1333
  sseFlushOnConnect?: boolean;
1212
1334
  handler(params: {
1213
1335
  workspaceId: string;
@@ -1239,24 +1361,23 @@ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/ser
1239
1361
  }, import("zod/v4/core").$strip>> | undefined;
1240
1362
  } & {
1241
1363
  readonly _mastraSchemaRoute: true;
1242
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1364
+ }))[];
1365
+ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1243
1366
  method: "POST";
1244
- path: "/workspaces/:workspaceId/skills-sh/install";
1367
+ path: "/workspaces/:workspaceId/fs/write";
1245
1368
  responseType: "json";
1246
- streamFormat?: "sse" | "stream";
1369
+ streamFormat?: 'sse' | 'stream';
1247
1370
  sseFlushOnConnect?: boolean;
1248
1371
  handler(params: {
1249
1372
  workspaceId: string;
1250
1373
  } & {
1251
- owner: string;
1252
- repo: string;
1253
- skillName: string;
1254
- mount?: string | undefined;
1374
+ path: string;
1375
+ content: string;
1376
+ encoding: "base64" | "utf-8";
1377
+ recursive?: boolean | undefined;
1255
1378
  } & import("../server-adapter").ServerContext): Promise<{
1256
1379
  success: boolean;
1257
- skillName: string;
1258
- installedPath: string;
1259
- filesWritten: number;
1380
+ path: string;
1260
1381
  }>;
1261
1382
  pathParamSchema?: import("zod").ZodType;
1262
1383
  queryParamSchema?: import("zod").ZodType;
@@ -1271,32 +1392,33 @@ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/ser
1271
1392
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1272
1393
  workspaceId: import("zod").ZodString;
1273
1394
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1274
- owner: import("zod").ZodString;
1275
- repo: import("zod").ZodString;
1276
- skillName: import("zod").ZodString;
1277
- mount: import("zod").ZodOptional<import("zod").ZodString>;
1395
+ path: import("zod").ZodString;
1396
+ content: import("zod").ZodString;
1397
+ encoding: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
1398
+ base64: "base64";
1399
+ "utf-8": "utf-8";
1400
+ }>>>;
1401
+ recursive: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
1278
1402
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1279
1403
  success: import("zod").ZodBoolean;
1280
- skillName: import("zod").ZodString;
1281
- installedPath: import("zod").ZodString;
1282
- filesWritten: import("zod").ZodNumber;
1404
+ path: import("zod").ZodString;
1283
1405
  }, import("zod/v4/core").$strip>> | undefined;
1284
1406
  } & {
1285
1407
  readonly _mastraSchemaRoute: true;
1286
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1408
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1287
1409
  method: "POST";
1288
- path: "/workspaces/:workspaceId/skills-sh/remove";
1410
+ path: "/workspaces/:workspaceId/fs/mkdir";
1289
1411
  responseType: "json";
1290
- streamFormat?: "sse" | "stream";
1412
+ streamFormat?: 'sse' | 'stream';
1291
1413
  sseFlushOnConnect?: boolean;
1292
1414
  handler(params: {
1293
1415
  workspaceId: string;
1294
1416
  } & {
1295
- skillName: string;
1417
+ path: string;
1418
+ recursive?: boolean | undefined;
1296
1419
  } & import("../server-adapter").ServerContext): Promise<{
1297
1420
  success: boolean;
1298
- skillName: string;
1299
- removedPath: string;
1421
+ path: string;
1300
1422
  }>;
1301
1423
  pathParamSchema?: import("zod").ZodType;
1302
1424
  queryParamSchema?: import("zod").ZodType;
@@ -1311,62 +1433,19 @@ export declare const WORKSPACE_SKILLS_SH_ROUTES: ((Omit<import("@mastra/core/ser
1311
1433
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1312
1434
  workspaceId: import("zod").ZodString;
1313
1435
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1314
- skillName: import("zod").ZodString;
1436
+ path: import("zod").ZodString;
1437
+ recursive: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
1315
1438
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1316
1439
  success: import("zod").ZodBoolean;
1317
- skillName: import("zod").ZodString;
1318
- removedPath: import("zod").ZodString;
1319
- }, import("zod/v4/core").$strip>> | undefined;
1320
- } & {
1321
- readonly _mastraSchemaRoute: true;
1322
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1323
- method: "POST";
1324
- path: "/workspaces/:workspaceId/skills-sh/update";
1325
- responseType: "json";
1326
- streamFormat?: "sse" | "stream";
1327
- sseFlushOnConnect?: boolean;
1328
- handler(params: {
1329
- workspaceId: string;
1330
- } & {
1331
- skillName?: string | undefined;
1332
- } & import("../server-adapter").ServerContext): Promise<{
1333
- updated: {
1334
- skillName: string;
1335
- success: boolean;
1336
- filesWritten?: number | undefined;
1337
- error?: string | undefined;
1338
- }[];
1339
- }>;
1340
- pathParamSchema?: import("zod").ZodType;
1341
- queryParamSchema?: import("zod").ZodType;
1342
- bodySchema?: import("zod").ZodType;
1343
- responseSchema?: import("zod").ZodType;
1344
- openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1345
- maxBodySize?: number;
1346
- deprecated?: boolean;
1347
- requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1348
- fga?: import("@mastra/core/auth").FGARouteConfig;
1349
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1350
- readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1351
- workspaceId: import("zod").ZodString;
1352
- }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1353
- skillName: import("zod").ZodOptional<import("zod").ZodString>;
1354
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1355
- updated: import("zod").ZodArray<import("zod").ZodObject<{
1356
- skillName: import("zod").ZodString;
1357
- success: import("zod").ZodBoolean;
1358
- filesWritten: import("zod").ZodOptional<import("zod").ZodNumber>;
1359
- error: import("zod").ZodOptional<import("zod").ZodString>;
1360
- }, import("zod/v4/core").$strip>>;
1440
+ path: import("zod").ZodString;
1361
1441
  }, import("zod/v4/core").$strip>> | undefined;
1362
1442
  } & {
1363
1443
  readonly _mastraSchemaRoute: true;
1364
- }))[];
1365
- export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1444
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1366
1445
  method: "GET";
1367
1446
  path: "/workspaces/:workspaceId/fs/read";
1368
1447
  responseType: "json";
1369
- streamFormat?: "sse" | "stream";
1448
+ streamFormat?: 'sse' | 'stream';
1370
1449
  sseFlushOnConnect?: boolean;
1371
1450
  handler(params: {
1372
1451
  workspaceId: string;
@@ -1376,7 +1455,7 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1376
1455
  } & import("../server-adapter").ServerContext): Promise<{
1377
1456
  path: string;
1378
1457
  content: string;
1379
- type: "file" | "directory";
1458
+ type: "directory" | "file";
1380
1459
  size?: number | undefined;
1381
1460
  mimeType?: string | undefined;
1382
1461
  }>;
@@ -1399,83 +1478,40 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1399
1478
  path: import("zod").ZodString;
1400
1479
  content: import("zod").ZodString;
1401
1480
  type: import("zod").ZodEnum<{
1402
- file: "file";
1403
1481
  directory: "directory";
1482
+ file: "file";
1404
1483
  }>;
1405
1484
  size: import("zod").ZodOptional<import("zod").ZodNumber>;
1406
1485
  mimeType: import("zod").ZodOptional<import("zod").ZodString>;
1407
1486
  }, import("zod/v4/core").$strip>> | undefined;
1408
1487
  } & {
1409
1488
  readonly _mastraSchemaRoute: true;
1410
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1411
- method: "POST";
1412
- path: "/workspaces/:workspaceId/fs/write";
1489
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1490
+ method: "GET";
1491
+ path: "/workspaces/:workspaceId/fs/list";
1413
1492
  responseType: "json";
1414
- streamFormat?: "sse" | "stream";
1493
+ streamFormat?: 'sse' | 'stream';
1415
1494
  sseFlushOnConnect?: boolean;
1416
1495
  handler(params: {
1417
1496
  workspaceId: string;
1418
1497
  } & {
1419
1498
  path: string;
1420
- content: string;
1421
- encoding: "utf-8" | "base64";
1422
1499
  recursive?: boolean | undefined;
1423
1500
  } & import("../server-adapter").ServerContext): Promise<{
1424
- success: boolean;
1425
1501
  path: string;
1426
- }>;
1427
- pathParamSchema?: import("zod").ZodType;
1428
- queryParamSchema?: import("zod").ZodType;
1429
- bodySchema?: import("zod").ZodType;
1430
- responseSchema?: import("zod").ZodType;
1431
- openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1432
- maxBodySize?: number;
1433
- deprecated?: boolean;
1434
- requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1435
- fga?: import("@mastra/core/auth").FGARouteConfig;
1436
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1437
- readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1438
- workspaceId: import("zod").ZodString;
1439
- }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1440
- path: import("zod").ZodString;
1441
- content: import("zod").ZodString;
1442
- encoding: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
1443
- "utf-8": "utf-8";
1444
- base64: "base64";
1445
- }>>>;
1446
- recursive: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
1447
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1448
- success: import("zod").ZodBoolean;
1449
- path: import("zod").ZodString;
1450
- }, import("zod/v4/core").$strip>> | undefined;
1451
- } & {
1452
- readonly _mastraSchemaRoute: true;
1453
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1454
- method: "GET";
1455
- path: "/workspaces/:workspaceId/fs/list";
1456
- responseType: "json";
1457
- streamFormat?: "sse" | "stream";
1458
- sseFlushOnConnect?: boolean;
1459
- handler(params: {
1460
- workspaceId: string;
1461
- } & {
1462
- path: string;
1463
- recursive?: boolean | undefined;
1464
- } & import("../server-adapter").ServerContext): Promise<{
1465
- path: string;
1466
- entries: {
1467
- name: string;
1468
- type: "file" | "directory";
1469
- size?: number | undefined;
1470
- mount?: {
1471
- provider: string;
1472
- icon?: string | undefined;
1473
- displayName?: string | undefined;
1474
- description?: string | undefined;
1475
- status?: "error" | "running" | "pending" | "initializing" | "ready" | "starting" | "stopping" | "stopped" | "destroying" | "destroyed" | undefined;
1476
- error?: string | undefined;
1477
- } | undefined;
1478
- }[];
1502
+ entries: {
1503
+ name: string;
1504
+ type: "directory" | "file";
1505
+ size?: number | undefined;
1506
+ mount?: {
1507
+ provider: string;
1508
+ icon?: string | undefined;
1509
+ displayName?: string | undefined;
1510
+ description?: string | undefined;
1511
+ status?: "destroyed" | "destroying" | "error" | "initializing" | "pending" | "ready" | "running" | "starting" | "stopped" | "stopping" | undefined;
1512
+ error?: string | undefined;
1513
+ } | undefined;
1514
+ }[];
1479
1515
  }>;
1480
1516
  pathParamSchema?: import("zod").ZodType;
1481
1517
  queryParamSchema?: import("zod").ZodType;
@@ -1497,8 +1533,8 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1497
1533
  entries: import("zod").ZodArray<import("zod").ZodObject<{
1498
1534
  name: import("zod").ZodString;
1499
1535
  type: import("zod").ZodEnum<{
1500
- file: "file";
1501
1536
  directory: "directory";
1537
+ file: "file";
1502
1538
  }>;
1503
1539
  size: import("zod").ZodOptional<import("zod").ZodNumber>;
1504
1540
  mount: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -1507,16 +1543,16 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1507
1543
  displayName: import("zod").ZodOptional<import("zod").ZodString>;
1508
1544
  description: import("zod").ZodOptional<import("zod").ZodString>;
1509
1545
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
1546
+ destroyed: "destroyed";
1547
+ destroying: "destroying";
1510
1548
  error: "error";
1511
- running: "running";
1512
- pending: "pending";
1513
1549
  initializing: "initializing";
1550
+ pending: "pending";
1514
1551
  ready: "ready";
1552
+ running: "running";
1515
1553
  starting: "starting";
1516
- stopping: "stopping";
1517
1554
  stopped: "stopped";
1518
- destroying: "destroying";
1519
- destroyed: "destroyed";
1555
+ stopping: "stopping";
1520
1556
  }>>;
1521
1557
  error: import("zod").ZodOptional<import("zod").ZodString>;
1522
1558
  }, import("zod/v4/core").$strip>>;
@@ -1524,11 +1560,11 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1524
1560
  }, import("zod/v4/core").$strip>> | undefined;
1525
1561
  } & {
1526
1562
  readonly _mastraSchemaRoute: true;
1527
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1563
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1528
1564
  method: "DELETE";
1529
1565
  path: "/workspaces/:workspaceId/fs/delete";
1530
1566
  responseType: "json";
1531
- streamFormat?: "sse" | "stream";
1567
+ streamFormat?: 'sse' | 'stream';
1532
1568
  sseFlushOnConnect?: boolean;
1533
1569
  handler(params: {
1534
1570
  workspaceId: string;
@@ -1562,20 +1598,23 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1562
1598
  }, import("zod/v4/core").$strip>> | undefined;
1563
1599
  } & {
1564
1600
  readonly _mastraSchemaRoute: true;
1565
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1566
- method: "POST";
1567
- path: "/workspaces/:workspaceId/fs/mkdir";
1601
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1602
+ method: "GET";
1603
+ path: "/workspaces/:workspaceId/fs/stat";
1568
1604
  responseType: "json";
1569
- streamFormat?: "sse" | "stream";
1605
+ streamFormat?: 'sse' | 'stream';
1570
1606
  sseFlushOnConnect?: boolean;
1571
1607
  handler(params: {
1572
1608
  workspaceId: string;
1573
1609
  } & {
1574
1610
  path: string;
1575
- recursive?: boolean | undefined;
1576
1611
  } & import("../server-adapter").ServerContext): Promise<{
1577
- success: boolean;
1578
1612
  path: string;
1613
+ type: "directory" | "file";
1614
+ size?: number | undefined;
1615
+ createdAt?: string | undefined;
1616
+ modifiedAt?: string | undefined;
1617
+ mimeType?: string | undefined;
1579
1618
  }>;
1580
1619
  pathParamSchema?: import("zod").ZodType;
1581
1620
  queryParamSchema?: import("zod").ZodType;
@@ -1589,32 +1628,37 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1589
1628
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1590
1629
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1591
1630
  workspaceId: import("zod").ZodString;
1592
- }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1593
- path: import("zod").ZodString;
1594
- recursive: import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>;
1595
1631
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1596
- success: import("zod").ZodBoolean;
1597
1632
  path: import("zod").ZodString;
1633
+ }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1634
+ path: import("zod").ZodString;
1635
+ type: import("zod").ZodEnum<{
1636
+ directory: "directory";
1637
+ file: "file";
1638
+ }>;
1639
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
1640
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
1641
+ modifiedAt: import("zod").ZodOptional<import("zod").ZodString>;
1642
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
1598
1643
  }, import("zod/v4/core").$strip>> | undefined;
1599
1644
  } & {
1600
1645
  readonly _mastraSchemaRoute: true;
1601
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1602
- method: "GET";
1603
- path: "/workspaces/:workspaceId/fs/stat";
1646
+ }))[];
1647
+ export declare const WORKSPACE_SEARCH_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1648
+ method: "POST";
1649
+ path: "/workspaces/:workspaceId/index";
1604
1650
  responseType: "json";
1605
- streamFormat?: "sse" | "stream";
1651
+ streamFormat?: 'sse' | 'stream';
1606
1652
  sseFlushOnConnect?: boolean;
1607
1653
  handler(params: {
1608
1654
  workspaceId: string;
1609
1655
  } & {
1610
1656
  path: string;
1657
+ content: string;
1658
+ metadata?: Record<string, unknown> | undefined;
1611
1659
  } & import("../server-adapter").ServerContext): Promise<{
1660
+ success: boolean;
1612
1661
  path: string;
1613
- type: "file" | "directory";
1614
- size?: number | undefined;
1615
- createdAt?: string | undefined;
1616
- modifiedAt?: string | undefined;
1617
- mimeType?: string | undefined;
1618
1662
  }>;
1619
1663
  pathParamSchema?: import("zod").ZodType;
1620
1664
  queryParamSchema?: import("zod").ZodType;
@@ -1628,34 +1672,28 @@ export declare const WORKSPACE_FS_ROUTES: ((Omit<import("@mastra/core/server").A
1628
1672
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1629
1673
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1630
1674
  workspaceId: import("zod").ZodString;
1631
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1632
- path: import("zod").ZodString;
1633
1675
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1634
1676
  path: import("zod").ZodString;
1635
- type: import("zod").ZodEnum<{
1636
- file: "file";
1637
- directory: "directory";
1638
- }>;
1639
- size: import("zod").ZodOptional<import("zod").ZodNumber>;
1640
- createdAt: import("zod").ZodOptional<import("zod").ZodString>;
1641
- modifiedAt: import("zod").ZodOptional<import("zod").ZodString>;
1642
- mimeType: import("zod").ZodOptional<import("zod").ZodString>;
1677
+ content: import("zod").ZodString;
1678
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1679
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1680
+ success: import("zod").ZodBoolean;
1681
+ path: import("zod").ZodString;
1643
1682
  }, import("zod/v4/core").$strip>> | undefined;
1644
1683
  } & {
1645
1684
  readonly _mastraSchemaRoute: true;
1646
- }))[];
1647
- export declare const WORKSPACE_SEARCH_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1685
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1648
1686
  method: "GET";
1649
1687
  path: "/workspaces/:workspaceId/search";
1650
1688
  responseType: "json";
1651
- streamFormat?: "sse" | "stream";
1689
+ streamFormat?: 'sse' | 'stream';
1652
1690
  sseFlushOnConnect?: boolean;
1653
1691
  handler(params: {
1654
1692
  workspaceId: string;
1655
1693
  } & {
1656
1694
  query: string;
1657
1695
  topK: number;
1658
- mode?: "vector" | "bm25" | "hybrid" | undefined;
1696
+ mode?: "bm25" | "hybrid" | "vector" | undefined;
1659
1697
  minScore?: number | undefined;
1660
1698
  } & import("../server-adapter").ServerContext): Promise<{
1661
1699
  results: {
@@ -1672,7 +1710,7 @@ export declare const WORKSPACE_SEARCH_ROUTES: ((Omit<import("@mastra/core/server
1672
1710
  } | undefined;
1673
1711
  }[];
1674
1712
  query: string;
1675
- mode: "vector" | "bm25" | "hybrid";
1713
+ mode: "bm25" | "hybrid" | "vector";
1676
1714
  }>;
1677
1715
  pathParamSchema?: import("zod").ZodType;
1678
1716
  queryParamSchema?: import("zod").ZodType;
@@ -1690,9 +1728,9 @@ export declare const WORKSPACE_SEARCH_ROUTES: ((Omit<import("@mastra/core/server
1690
1728
  query: import("zod").ZodString;
1691
1729
  topK: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
1692
1730
  mode: import("zod").ZodOptional<import("zod").ZodEnum<{
1693
- vector: "vector";
1694
1731
  bm25: "bm25";
1695
1732
  hybrid: "hybrid";
1733
+ vector: "vector";
1696
1734
  }>>;
1697
1735
  minScore: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1698
1736
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
@@ -1711,57 +1749,19 @@ export declare const WORKSPACE_SEARCH_ROUTES: ((Omit<import("@mastra/core/server
1711
1749
  }, import("zod/v4/core").$strip>>;
1712
1750
  query: import("zod").ZodString;
1713
1751
  mode: import("zod").ZodEnum<{
1714
- vector: "vector";
1715
1752
  bm25: "bm25";
1716
1753
  hybrid: "hybrid";
1754
+ vector: "vector";
1717
1755
  }>;
1718
1756
  }, import("zod/v4/core").$strip>> | undefined;
1719
1757
  } & {
1720
1758
  readonly _mastraSchemaRoute: true;
1721
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1722
- method: "POST";
1723
- path: "/workspaces/:workspaceId/index";
1724
- responseType: "json";
1725
- streamFormat?: "sse" | "stream";
1726
- sseFlushOnConnect?: boolean;
1727
- handler(params: {
1728
- workspaceId: string;
1729
- } & {
1730
- path: string;
1731
- content: string;
1732
- metadata?: Record<string, unknown> | undefined;
1733
- } & import("../server-adapter").ServerContext): Promise<{
1734
- success: boolean;
1735
- path: string;
1736
- }>;
1737
- pathParamSchema?: import("zod").ZodType;
1738
- queryParamSchema?: import("zod").ZodType;
1739
- bodySchema?: import("zod").ZodType;
1740
- responseSchema?: import("zod").ZodType;
1741
- openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1742
- maxBodySize?: number;
1743
- deprecated?: boolean;
1744
- requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1745
- fga?: import("@mastra/core/auth").FGARouteConfig;
1746
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1747
- readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1748
- workspaceId: import("zod").ZodString;
1749
- }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1750
- path: import("zod").ZodString;
1751
- content: import("zod").ZodString;
1752
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1753
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1754
- success: import("zod").ZodBoolean;
1755
- path: import("zod").ZodString;
1756
- }, import("zod/v4/core").$strip>> | undefined;
1757
- } & {
1758
- readonly _mastraSchemaRoute: true;
1759
1759
  }))[];
1760
- export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1760
+ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1761
1761
  method: "GET";
1762
1762
  path: "/workspaces/:workspaceId/skills";
1763
1763
  responseType: "json";
1764
- streamFormat?: "sse" | "stream";
1764
+ streamFormat?: 'sse' | 'stream';
1765
1765
  sseFlushOnConnect?: boolean;
1766
1766
  handler(params: {
1767
1767
  workspaceId: string;
@@ -1769,10 +1769,10 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1769
1769
  skills: {
1770
1770
  name: string;
1771
1771
  description: string;
1772
- path: string;
1773
1772
  license?: string | undefined;
1774
1773
  compatibility?: unknown;
1775
1774
  metadata?: Record<string, unknown> | undefined;
1775
+ path: string;
1776
1776
  skillsShSource?: {
1777
1777
  owner: string;
1778
1778
  repo: string;
@@ -1809,11 +1809,81 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1809
1809
  }, import("zod/v4/core").$strip>> | undefined;
1810
1810
  } & {
1811
1811
  readonly _mastraSchemaRoute: true;
1812
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1812
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1813
+ method: "GET";
1814
+ path: "/workspaces/:workspaceId/skills/search";
1815
+ responseType: "json";
1816
+ streamFormat?: 'sse' | 'stream';
1817
+ sseFlushOnConnect?: boolean;
1818
+ handler(params: {
1819
+ workspaceId: string;
1820
+ } & {
1821
+ query: string;
1822
+ topK: number;
1823
+ minScore?: number | undefined;
1824
+ skillNames?: string | undefined;
1825
+ includeReferences: boolean;
1826
+ } & import("../server-adapter").ServerContext): Promise<{
1827
+ results: {
1828
+ skillName: string;
1829
+ skillPath: string;
1830
+ source: string;
1831
+ content: string;
1832
+ score: number;
1833
+ lineRange?: {
1834
+ start: number;
1835
+ end: number;
1836
+ } | undefined;
1837
+ scoreDetails?: {
1838
+ vector?: number | undefined;
1839
+ bm25?: number | undefined;
1840
+ } | undefined;
1841
+ }[];
1842
+ query: string;
1843
+ }>;
1844
+ pathParamSchema?: import("zod").ZodType;
1845
+ queryParamSchema?: import("zod").ZodType;
1846
+ bodySchema?: import("zod").ZodType;
1847
+ responseSchema?: import("zod").ZodType;
1848
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1849
+ maxBodySize?: number;
1850
+ deprecated?: boolean;
1851
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1852
+ fga?: import("@mastra/core/auth").FGARouteConfig;
1853
+ onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1854
+ readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
1855
+ workspaceId: import("zod").ZodString;
1856
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1857
+ query: import("zod").ZodString;
1858
+ topK: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
1859
+ minScore: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1860
+ skillNames: import("zod").ZodOptional<import("zod").ZodString>;
1861
+ includeReferences: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>>;
1862
+ }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
1863
+ results: import("zod").ZodArray<import("zod").ZodObject<{
1864
+ skillName: import("zod").ZodString;
1865
+ skillPath: import("zod").ZodString;
1866
+ source: import("zod").ZodString;
1867
+ content: import("zod").ZodString;
1868
+ score: import("zod").ZodNumber;
1869
+ lineRange: import("zod").ZodOptional<import("zod").ZodObject<{
1870
+ start: import("zod").ZodNumber;
1871
+ end: import("zod").ZodNumber;
1872
+ }, import("zod/v4/core").$strip>>;
1873
+ scoreDetails: import("zod").ZodOptional<import("zod").ZodObject<{
1874
+ vector: import("zod").ZodOptional<import("zod").ZodNumber>;
1875
+ bm25: import("zod").ZodOptional<import("zod").ZodNumber>;
1876
+ }, import("zod/v4/core").$strip>>;
1877
+ }, import("zod/v4/core").$strip>>;
1878
+ query: import("zod").ZodString;
1879
+ }, import("zod/v4/core").$strip>> | undefined;
1880
+ } & {
1881
+ readonly _mastraSchemaRoute: true;
1882
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1813
1883
  method: "GET";
1814
1884
  path: "/workspaces/:workspaceId/skills/:skillName";
1815
1885
  responseType: "json";
1816
- streamFormat?: "sse" | "stream";
1886
+ streamFormat?: 'sse' | 'stream';
1817
1887
  sseFlushOnConnect?: boolean;
1818
1888
  handler(params: {
1819
1889
  workspaceId: string;
@@ -1823,6 +1893,9 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1823
1893
  } & import("../server-adapter").ServerContext): Promise<{
1824
1894
  name: string;
1825
1895
  description: string;
1896
+ license?: string | undefined;
1897
+ compatibility?: unknown;
1898
+ metadata?: Record<string, unknown> | undefined;
1826
1899
  path: string;
1827
1900
  instructions: string;
1828
1901
  source: {
@@ -1838,9 +1911,6 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1838
1911
  references: string[];
1839
1912
  scripts: string[];
1840
1913
  assets: string[];
1841
- license?: string | undefined;
1842
- compatibility?: unknown;
1843
- metadata?: Record<string, unknown> | undefined;
1844
1914
  }>;
1845
1915
  pathParamSchema?: import("zod").ZodType;
1846
1916
  queryParamSchema?: import("zod").ZodType;
@@ -1881,11 +1951,11 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1881
1951
  }, import("zod/v4/core").$strip>> | undefined;
1882
1952
  } & {
1883
1953
  readonly _mastraSchemaRoute: true;
1884
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1954
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1885
1955
  method: "GET";
1886
1956
  path: "/workspaces/:workspaceId/skills/:skillName/references";
1887
1957
  responseType: "json";
1888
- streamFormat?: "sse" | "stream";
1958
+ streamFormat?: 'sse' | 'stream';
1889
1959
  sseFlushOnConnect?: boolean;
1890
1960
  handler(params: {
1891
1961
  workspaceId: string;
@@ -1917,11 +1987,11 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1917
1987
  }, import("zod/v4/core").$strip>> | undefined;
1918
1988
  } & {
1919
1989
  readonly _mastraSchemaRoute: true;
1920
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1990
+ }) | (Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1921
1991
  method: "GET";
1922
1992
  path: "/workspaces/:workspaceId/skills/:skillName/references/:referencePath";
1923
1993
  responseType: "json";
1924
- streamFormat?: "sse" | "stream";
1994
+ streamFormat?: 'sse' | 'stream';
1925
1995
  sseFlushOnConnect?: boolean;
1926
1996
  handler(params: {
1927
1997
  workspaceId: string;
@@ -1957,75 +2027,5 @@ export declare const WORKSPACE_SKILLS_ROUTES: ((Omit<import("@mastra/core/server
1957
2027
  }, import("zod/v4/core").$strip>> | undefined;
1958
2028
  } & {
1959
2029
  readonly _mastraSchemaRoute: true;
1960
- }) | (Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1961
- method: "GET";
1962
- path: "/workspaces/:workspaceId/skills/search";
1963
- responseType: "json";
1964
- streamFormat?: "sse" | "stream";
1965
- sseFlushOnConnect?: boolean;
1966
- handler(params: {
1967
- workspaceId: string;
1968
- } & {
1969
- query: string;
1970
- topK: number;
1971
- includeReferences: boolean;
1972
- minScore?: number | undefined;
1973
- skillNames?: string | undefined;
1974
- } & import("../server-adapter").ServerContext): Promise<{
1975
- results: {
1976
- skillName: string;
1977
- skillPath: string;
1978
- source: string;
1979
- content: string;
1980
- score: number;
1981
- lineRange?: {
1982
- start: number;
1983
- end: number;
1984
- } | undefined;
1985
- scoreDetails?: {
1986
- vector?: number | undefined;
1987
- bm25?: number | undefined;
1988
- } | undefined;
1989
- }[];
1990
- query: string;
1991
- }>;
1992
- pathParamSchema?: import("zod").ZodType;
1993
- queryParamSchema?: import("zod").ZodType;
1994
- bodySchema?: import("zod").ZodType;
1995
- responseSchema?: import("zod").ZodType;
1996
- openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1997
- maxBodySize?: number;
1998
- deprecated?: boolean;
1999
- requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2000
- fga?: import("@mastra/core/auth").FGARouteConfig;
2001
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2002
- readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
2003
- workspaceId: import("zod").ZodString;
2004
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2005
- query: import("zod").ZodString;
2006
- topK: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
2007
- minScore: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
2008
- skillNames: import("zod").ZodOptional<import("zod").ZodString>;
2009
- includeReferences: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedBoolean<unknown>>>;
2010
- }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
2011
- results: import("zod").ZodArray<import("zod").ZodObject<{
2012
- skillName: import("zod").ZodString;
2013
- skillPath: import("zod").ZodString;
2014
- source: import("zod").ZodString;
2015
- content: import("zod").ZodString;
2016
- score: import("zod").ZodNumber;
2017
- lineRange: import("zod").ZodOptional<import("zod").ZodObject<{
2018
- start: import("zod").ZodNumber;
2019
- end: import("zod").ZodNumber;
2020
- }, import("zod/v4/core").$strip>>;
2021
- scoreDetails: import("zod").ZodOptional<import("zod").ZodObject<{
2022
- vector: import("zod").ZodOptional<import("zod").ZodNumber>;
2023
- bm25: import("zod").ZodOptional<import("zod").ZodNumber>;
2024
- }, import("zod/v4/core").$strip>>;
2025
- }, import("zod/v4/core").$strip>>;
2026
- query: import("zod").ZodString;
2027
- }, import("zod/v4/core").$strip>> | undefined;
2028
- } & {
2029
- readonly _mastraSchemaRoute: true;
2030
2030
  }))[];
2031
2031
  //# sourceMappingURL=workspace.d.ts.map