@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
@@ -1,8 +1,8 @@
1
- export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1
+ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2
2
  method: "GET";
3
3
  path: "/observability/traces/light";
4
4
  responseType: "json";
5
- streamFormat?: "sse" | "stream";
5
+ streamFormat?: 'sse' | 'stream';
6
6
  sseFlushOnConnect?: boolean;
7
7
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<any>;
8
8
  pathParamSchema?: import("zod").ZodType;
@@ -20,11 +20,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
20
20
  }>, import("zod/v4/core").$strip>, undefined, any> | undefined;
21
21
  } & {
22
22
  readonly _mastraSchemaRoute: true;
23
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
23
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
24
24
  method: "GET";
25
25
  path: "/observability/branches";
26
26
  responseType: "json";
27
- streamFormat?: "sse" | "stream";
27
+ streamFormat?: 'sse' | 'stream';
28
28
  sseFlushOnConnect?: boolean;
29
29
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<any>;
30
30
  pathParamSchema?: import("zod").ZodType;
@@ -42,11 +42,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
42
42
  }>, import("zod/v4/core").$strip>, undefined, any> | undefined;
43
43
  } & {
44
44
  readonly _mastraSchemaRoute: true;
45
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
45
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
46
46
  method: "GET";
47
47
  path: "/observability/traces/:traceId/branches/:spanId";
48
48
  responseType: "json";
49
- streamFormat?: "sse" | "stream";
49
+ streamFormat?: 'sse' | 'stream';
50
50
  sseFlushOnConnect?: boolean;
51
51
  handler(params: any): Promise<any>;
52
52
  pathParamSchema?: import("zod").ZodType;
@@ -64,11 +64,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
64
64
  }>, import("zod/v4/core").$strip>, undefined, any> | undefined;
65
65
  } & {
66
66
  readonly _mastraSchemaRoute: true;
67
- }, import(".").ServerRoute, import(".").ServerRoute, import(".").ServerRoute, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
67
+ }, import(".").ServerRoute, import(".").ServerRoute, import(".").ServerRoute, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
68
68
  method: "GET";
69
69
  path: "/observability/traces/:traceId/trajectory";
70
70
  responseType: "json";
71
- streamFormat?: "sse" | "stream";
71
+ streamFormat?: 'sse' | 'stream';
72
72
  sseFlushOnConnect?: boolean;
73
73
  handler(params: {
74
74
  traceId: string;
@@ -98,11 +98,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
98
98
  }, import("zod/v4/core").$strip>> | undefined;
99
99
  } & {
100
100
  readonly _mastraSchemaRoute: true;
101
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
101
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
102
102
  method: "POST";
103
103
  path: "/observability/traces/score";
104
104
  responseType: "json";
105
- streamFormat?: "sse" | "stream";
105
+ streamFormat?: 'sse' | 'stream';
106
106
  sseFlushOnConnect?: boolean;
107
107
  handler(params: {
108
108
  scorerName: string;
@@ -138,11 +138,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
138
138
  }, import("zod/v4/core").$strip>> | undefined;
139
139
  } & {
140
140
  readonly _mastraSchemaRoute: true;
141
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
141
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
142
142
  method: "GET";
143
143
  path: "/observability/traces/:traceId/:spanId/scores";
144
144
  responseType: "json";
145
- streamFormat?: "sse" | "stream";
145
+ streamFormat?: 'sse' | 'stream';
146
146
  sseFlushOnConnect?: boolean;
147
147
  handler(params: {
148
148
  traceId: string;
@@ -161,21 +161,21 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
161
161
  scorerId: string;
162
162
  entityId: string;
163
163
  runId: string;
164
- output: unknown;
165
- score: number;
166
- scorer: Record<string, unknown>;
167
- source: "LIVE" | "TEST";
168
- entity: Record<string, unknown>;
169
164
  input?: unknown;
165
+ output: unknown;
170
166
  additionalContext?: Record<string, unknown> | undefined;
171
167
  requestContext?: Record<string, unknown> | undefined;
172
168
  extractStepResult?: Record<string, unknown> | undefined;
173
169
  extractPrompt?: string | undefined;
170
+ score: number;
174
171
  analyzeStepResult?: Record<string, unknown> | undefined;
175
172
  analyzePrompt?: string | undefined;
176
173
  reason?: string | undefined;
177
174
  reasonPrompt?: string | undefined;
175
+ scorer: Record<string, unknown>;
178
176
  metadata?: Record<string, unknown> | undefined;
177
+ source: "LIVE" | "TEST";
178
+ entity: Record<string, unknown>;
179
179
  entityType?: string | undefined;
180
180
  structuredOutput?: boolean | undefined;
181
181
  traceId?: string | undefined;
@@ -261,27 +261,25 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
261
261
  }, import("zod/v4/core").$strip>> | undefined;
262
262
  } & {
263
263
  readonly _mastraSchemaRoute: true;
264
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
264
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
265
265
  method: string;
266
266
  path: `/${string}`;
267
267
  responseType: "json";
268
- streamFormat?: "sse" | "stream";
268
+ streamFormat?: 'sse' | 'stream';
269
269
  sseFlushOnConnect?: boolean;
270
270
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
271
+ pagination?: {
272
+ total: number;
273
+ page: number;
274
+ perPage: number | false;
275
+ hasMore: boolean;
276
+ } | undefined;
277
+ delta?: {
278
+ limit: number;
279
+ hasMore: boolean;
280
+ } | undefined;
281
+ deltaCursor?: string | undefined;
271
282
  metrics: {
272
- labels: Record<string, string>;
273
- timestamp: Date;
274
- name: string;
275
- value: number;
276
- source?: string | null | undefined;
277
- provider?: string | null | undefined;
278
- model?: string | null | undefined;
279
- estimatedCost?: number | null | undefined;
280
- costUnit?: string | null | undefined;
281
- costMetadata?: Record<string, unknown> | null | undefined;
282
- metadata?: Record<string, unknown> | null | undefined;
283
- executionSource?: string | null | undefined;
284
- tags?: string[] | null | undefined;
285
283
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
286
284
  entityId?: string | null | undefined;
287
285
  entityName?: string | null | undefined;
@@ -305,21 +303,23 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
305
303
  parentEntityVersionId?: string | null | undefined;
306
304
  rootEntityVersionId?: string | null | undefined;
307
305
  experimentId?: string | null | undefined;
306
+ executionSource?: string | null | undefined;
307
+ tags?: string[] | null | undefined;
308
308
  metricId?: string | null | undefined;
309
+ timestamp: Date;
310
+ name: string;
311
+ value: number;
309
312
  traceId?: string | null | undefined;
310
313
  spanId?: string | null | undefined;
314
+ source?: string | null | undefined;
315
+ provider?: string | null | undefined;
316
+ model?: string | null | undefined;
317
+ estimatedCost?: number | null | undefined;
318
+ costUnit?: string | null | undefined;
319
+ costMetadata?: Record<string, unknown> | null | undefined;
320
+ labels: Record<string, string>;
321
+ metadata?: Record<string, unknown> | null | undefined;
311
322
  }[];
312
- pagination?: {
313
- total: number;
314
- page: number;
315
- perPage: number | false;
316
- hasMore: boolean;
317
- } | undefined;
318
- delta?: {
319
- limit: number;
320
- hasMore: boolean;
321
- } | undefined;
322
- deltaCursor?: string | undefined;
323
323
  }>;
324
324
  pathParamSchema?: import("zod").ZodType;
325
325
  queryParamSchema?: import("zod").ZodType;
@@ -346,16 +346,6 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
346
346
  }, import("zod/v4/core").$strip>>;
347
347
  deltaCursor: import("zod").ZodOptional<import("zod").ZodString>;
348
348
  metrics: import("zod").ZodArray<import("zod").ZodObject<{
349
- source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
350
- provider: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
351
- model: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
352
- estimatedCost: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
353
- costUnit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
354
- costMetadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>>>;
355
- labels: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
356
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
357
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
358
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
359
349
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
360
350
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
361
351
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -379,31 +369,45 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
379
369
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
380
370
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
381
371
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
372
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
373
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
382
374
  metricId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
383
375
  timestamp: import("zod").ZodDate;
384
376
  name: import("zod").ZodString;
385
377
  value: import("zod").ZodNumber;
386
378
  traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
387
379
  spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
380
+ source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
381
+ provider: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
382
+ model: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
383
+ estimatedCost: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
384
+ costUnit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
385
+ costMetadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>>>;
386
+ labels: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
387
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
388
388
  }, import("zod/v4/core").$strip>>;
389
389
  }, import("zod/v4/core").$strip>> | undefined;
390
390
  } & {
391
391
  readonly _mastraSchemaRoute: true;
392
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
392
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
393
393
  method: string;
394
394
  path: `/${string}`;
395
395
  responseType: "json";
396
- streamFormat?: "sse" | "stream";
396
+ streamFormat?: 'sse' | 'stream';
397
397
  sseFlushOnConnect?: boolean;
398
398
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
399
+ pagination?: {
400
+ total: number;
401
+ page: number;
402
+ perPage: number | false;
403
+ hasMore: boolean;
404
+ } | undefined;
405
+ delta?: {
406
+ limit: number;
407
+ hasMore: boolean;
408
+ } | undefined;
409
+ deltaCursor?: string | undefined;
399
410
  logs: {
400
- timestamp: Date;
401
- level: "error" | "debug" | "info" | "warn" | "fatal";
402
- message: string;
403
- source?: string | null | undefined;
404
- metadata?: Record<string, unknown> | null | undefined;
405
- executionSource?: string | null | undefined;
406
- tags?: string[] | null | undefined;
407
411
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
408
412
  entityId?: string | null | undefined;
409
413
  entityName?: string | null | undefined;
@@ -427,22 +431,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
427
431
  parentEntityVersionId?: string | null | undefined;
428
432
  rootEntityVersionId?: string | null | undefined;
429
433
  experimentId?: string | null | undefined;
434
+ executionSource?: string | null | undefined;
435
+ tags?: string[] | null | undefined;
430
436
  logId?: string | null | undefined;
437
+ timestamp: Date;
438
+ level: "debug" | "error" | "fatal" | "info" | "warn";
439
+ message: string;
431
440
  data?: Record<string, unknown> | null | undefined;
432
441
  traceId?: string | null | undefined;
433
442
  spanId?: string | null | undefined;
443
+ source?: string | null | undefined;
444
+ metadata?: Record<string, unknown> | null | undefined;
434
445
  }[];
435
- pagination?: {
436
- total: number;
437
- page: number;
438
- perPage: number | false;
439
- hasMore: boolean;
440
- } | undefined;
441
- delta?: {
442
- limit: number;
443
- hasMore: boolean;
444
- } | undefined;
445
- deltaCursor?: string | undefined;
446
446
  }>;
447
447
  pathParamSchema?: import("zod").ZodType;
448
448
  queryParamSchema?: import("zod").ZodType;
@@ -469,10 +469,6 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
469
469
  }, import("zod/v4/core").$strip>>;
470
470
  deltaCursor: import("zod").ZodOptional<import("zod").ZodString>;
471
471
  logs: import("zod").ZodArray<import("zod").ZodObject<{
472
- source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
473
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
474
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
475
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
476
472
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
477
473
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
478
474
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -496,38 +492,46 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
496
492
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
497
493
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
498
494
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
495
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
496
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
499
497
  logId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
500
498
  timestamp: import("zod").ZodDate;
501
499
  level: import("zod").ZodEnum<{
502
500
  debug: "debug";
503
- info: "info";
504
- warn: "warn";
505
501
  error: "error";
506
502
  fatal: "fatal";
503
+ info: "info";
504
+ warn: "warn";
507
505
  }>;
508
506
  message: import("zod").ZodString;
509
507
  data: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
510
508
  traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
511
509
  spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
510
+ source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
511
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
512
512
  }, import("zod/v4/core").$strip>>;
513
513
  }, import("zod/v4/core").$strip>> | undefined;
514
514
  } & {
515
515
  readonly _mastraSchemaRoute: true;
516
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
516
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
517
517
  method: string;
518
518
  path: `/${string}`;
519
519
  responseType: "json";
520
- streamFormat?: "sse" | "stream";
520
+ streamFormat?: 'sse' | 'stream';
521
521
  sseFlushOnConnect?: boolean;
522
522
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
523
+ pagination?: {
524
+ total: number;
525
+ page: number;
526
+ perPage: number | false;
527
+ hasMore: boolean;
528
+ } | undefined;
529
+ delta?: {
530
+ limit: number;
531
+ hasMore: boolean;
532
+ } | undefined;
533
+ deltaCursor?: string | undefined;
523
534
  scores: {
524
- timestamp: Date;
525
- scorerId: string;
526
- score: number;
527
- scoreTraceId?: string | null | undefined;
528
- metadata?: Record<string, unknown> | null | undefined;
529
- executionSource?: string | null | undefined;
530
- tags?: string[] | null | undefined;
531
535
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
532
536
  entityId?: string | null | undefined;
533
537
  entityName?: string | null | undefined;
@@ -551,26 +555,22 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
551
555
  parentEntityVersionId?: string | null | undefined;
552
556
  rootEntityVersionId?: string | null | undefined;
553
557
  experimentId?: string | null | undefined;
558
+ executionSource?: string | null | undefined;
559
+ tags?: string[] | null | undefined;
554
560
  scoreId?: string | null | undefined;
561
+ timestamp: Date;
555
562
  traceId?: string | null | undefined;
556
563
  spanId?: string | null | undefined;
564
+ scorerId: string;
557
565
  scorerName?: string | null | undefined;
558
566
  scorerVersion?: string | null | undefined;
559
567
  scoreSource?: string | null | undefined;
560
568
  source?: string | null | undefined;
569
+ score: number;
561
570
  reason?: string | null | undefined;
571
+ scoreTraceId?: string | null | undefined;
572
+ metadata?: Record<string, unknown> | null | undefined;
562
573
  }[];
563
- pagination?: {
564
- total: number;
565
- page: number;
566
- perPage: number | false;
567
- hasMore: boolean;
568
- } | undefined;
569
- delta?: {
570
- limit: number;
571
- hasMore: boolean;
572
- } | undefined;
573
- deltaCursor?: string | undefined;
574
574
  }>;
575
575
  pathParamSchema?: import("zod").ZodType;
576
576
  queryParamSchema?: import("zod").ZodType;
@@ -597,10 +597,6 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
597
597
  }, import("zod/v4/core").$strip>>;
598
598
  deltaCursor: import("zod").ZodOptional<import("zod").ZodString>;
599
599
  scores: import("zod").ZodArray<import("zod").ZodObject<{
600
- scoreTraceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
601
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
602
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
603
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
604
600
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
605
601
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
606
602
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -624,6 +620,8 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
624
620
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
625
621
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
626
622
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
623
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
624
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
627
625
  scoreId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
628
626
  timestamp: import("zod").ZodDate;
629
627
  traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -635,28 +633,21 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
635
633
  source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
636
634
  score: import("zod").ZodNumber;
637
635
  reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
636
+ scoreTraceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
637
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
638
638
  }, import("zod/v4/core").$strip>>;
639
639
  }, import("zod/v4/core").$strip>> | undefined;
640
640
  } & {
641
641
  readonly _mastraSchemaRoute: true;
642
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
642
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
643
643
  method: string;
644
644
  path: `/${string}`;
645
645
  responseType: "json";
646
- streamFormat?: "sse" | "stream";
646
+ streamFormat?: 'sse' | 'stream';
647
647
  sseFlushOnConnect?: boolean;
648
648
  handler(params: {
649
649
  score: {
650
- scorerId: string;
651
- score: number;
652
- runId?: string | null | undefined;
653
650
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
654
- tags?: string[] | null | undefined;
655
- traceId?: string | null | undefined;
656
- spanId?: string | null | undefined;
657
- source?: string | null | undefined;
658
- metadata?: Record<string, unknown> | null | undefined;
659
- executionSource?: string | null | undefined;
660
651
  entityId?: string | null | undefined;
661
652
  entityName?: string | null | undefined;
662
653
  parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -668,6 +659,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
668
659
  userId?: string | null | undefined;
669
660
  organizationId?: string | null | undefined;
670
661
  resourceId?: string | null | undefined;
662
+ runId?: string | null | undefined;
671
663
  sessionId?: string | null | undefined;
672
664
  threadId?: string | null | undefined;
673
665
  requestId?: string | null | undefined;
@@ -678,12 +670,20 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
678
670
  parentEntityVersionId?: string | null | undefined;
679
671
  rootEntityVersionId?: string | null | undefined;
680
672
  experimentId?: string | null | undefined;
673
+ executionSource?: string | null | undefined;
674
+ tags?: string[] | null | undefined;
681
675
  scoreId?: string | null | undefined;
676
+ traceId?: string | null | undefined;
677
+ spanId?: string | null | undefined;
678
+ scorerId: string;
682
679
  scorerName?: string | null | undefined;
683
680
  scorerVersion?: string | null | undefined;
684
681
  scoreSource?: string | null | undefined;
682
+ source?: string | null | undefined;
683
+ score: number;
685
684
  reason?: string | null | undefined;
686
685
  scoreTraceId?: string | null | undefined;
686
+ metadata?: Record<string, unknown> | null | undefined;
687
687
  };
688
688
  } & import(".").ServerContext): Promise<{
689
689
  success: boolean;
@@ -700,14 +700,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
700
700
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
701
701
  readonly __schemas?: import(".").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
702
702
  score: import("zod").ZodObject<{
703
- runId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
704
703
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
705
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
706
- traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
707
- spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
708
- source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
709
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
710
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
711
704
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
712
705
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
713
706
  parentEntityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -719,6 +712,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
719
712
  userId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
720
713
  organizationId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
721
714
  resourceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
715
+ runId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
722
716
  sessionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
723
717
  threadId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
724
718
  requestId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -729,37 +723,36 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
729
723
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
730
724
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
731
725
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
732
- scorerId: import("zod").ZodString;
733
- score: import("zod").ZodNumber;
726
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
727
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
734
728
  scoreId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
729
+ traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
730
+ spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
731
+ scorerId: import("zod").ZodString;
735
732
  scorerName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
736
733
  scorerVersion: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
737
734
  scoreSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
735
+ source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
736
+ score: import("zod").ZodNumber;
738
737
  reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
739
738
  scoreTraceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
739
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
740
740
  }, import("zod/v4/core").$strip>;
741
741
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
742
742
  success: import("zod").ZodBoolean;
743
743
  }, import("zod/v4/core").$strip>> | undefined;
744
744
  } & {
745
745
  readonly _mastraSchemaRoute: true;
746
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
746
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
747
747
  method: string;
748
748
  path: `/${string}`;
749
749
  responseType: "json";
750
- streamFormat?: "sse" | "stream";
750
+ streamFormat?: 'sse' | 'stream';
751
751
  sseFlushOnConnect?: boolean;
752
752
  handler(params: {
753
753
  scoreId: string;
754
754
  } & import(".").ServerContext): Promise<{
755
755
  score: {
756
- timestamp: Date;
757
- scorerId: string;
758
- score: number;
759
- scoreTraceId?: string | null | undefined;
760
- metadata?: Record<string, unknown> | null | undefined;
761
- executionSource?: string | null | undefined;
762
- tags?: string[] | null | undefined;
763
756
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
764
757
  entityId?: string | null | undefined;
765
758
  entityName?: string | null | undefined;
@@ -783,14 +776,21 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
783
776
  parentEntityVersionId?: string | null | undefined;
784
777
  rootEntityVersionId?: string | null | undefined;
785
778
  experimentId?: string | null | undefined;
779
+ executionSource?: string | null | undefined;
780
+ tags?: string[] | null | undefined;
786
781
  scoreId?: string | null | undefined;
782
+ timestamp: Date;
787
783
  traceId?: string | null | undefined;
788
784
  spanId?: string | null | undefined;
785
+ scorerId: string;
789
786
  scorerName?: string | null | undefined;
790
787
  scorerVersion?: string | null | undefined;
791
788
  scoreSource?: string | null | undefined;
792
789
  source?: string | null | undefined;
790
+ score: number;
793
791
  reason?: string | null | undefined;
792
+ scoreTraceId?: string | null | undefined;
793
+ metadata?: Record<string, unknown> | null | undefined;
794
794
  } | null;
795
795
  }>;
796
796
  pathParamSchema?: import("zod").ZodType;
@@ -807,10 +807,6 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
807
807
  scoreId: import("zod").ZodString;
808
808
  }, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
809
809
  score: import("zod").ZodNullable<import("zod").ZodObject<{
810
- scoreTraceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
811
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
812
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
813
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
814
810
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
815
811
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
816
812
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -834,6 +830,8 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
834
830
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
835
831
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
836
832
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
833
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
834
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
837
835
  scoreId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
838
836
  timestamp: import("zod").ZodDate;
839
837
  traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -845,25 +843,23 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
845
843
  source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
846
844
  score: import("zod").ZodNumber;
847
845
  reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
846
+ scoreTraceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
847
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
848
848
  }, import("zod/v4/core").$strip>>;
849
849
  }, import("zod/v4/core").$strip>> | undefined;
850
850
  } & {
851
851
  readonly _mastraSchemaRoute: true;
852
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
852
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
853
853
  method: string;
854
854
  path: `/${string}`;
855
855
  responseType: "json";
856
- streamFormat?: "sse" | "stream";
856
+ streamFormat?: 'sse' | 'stream';
857
857
  sseFlushOnConnect?: boolean;
858
858
  handler(params: {
859
859
  scorerId: string;
860
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
861
860
  scoreSource?: string | undefined;
861
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
862
862
  filters?: {
863
- scorerId?: string | string[] | undefined;
864
- scoreSource?: string | undefined;
865
- metadata?: Record<string, unknown> | null | undefined;
866
- source?: string | undefined;
867
863
  timestamp?: {
868
864
  start?: Date | undefined;
869
865
  end?: Date | undefined;
@@ -893,8 +889,12 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
893
889
  requestId?: string | undefined;
894
890
  executionSource?: string | undefined;
895
891
  tags?: string[] | undefined;
892
+ scorerId?: string | string[] | undefined;
893
+ scoreSource?: string | undefined;
894
+ metadata?: Record<string, unknown> | null | undefined;
895
+ source?: string | undefined;
896
896
  } | undefined;
897
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
897
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
898
898
  } & import(".").ServerContext): Promise<{
899
899
  value: number | null;
900
900
  previousValue?: number | null | undefined;
@@ -914,19 +914,15 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
914
914
  scorerId: import("zod").ZodString;
915
915
  scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
916
916
  aggregation: import("zod").ZodEnum<{
917
- sum: "sum";
918
917
  avg: "avg";
919
- min: "min";
920
- max: "max";
921
918
  count: "count";
922
919
  count_distinct: "count_distinct";
923
920
  last: "last";
921
+ max: "max";
922
+ min: "min";
923
+ sum: "sum";
924
924
  }>;
925
925
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
926
- scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
927
- scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
928
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
929
- source: import("zod").ZodOptional<import("zod").ZodString>;
930
926
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
931
927
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
932
928
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -956,10 +952,14 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
956
952
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
957
953
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
958
954
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
955
+ scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
956
+ scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
957
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
958
+ source: import("zod").ZodOptional<import("zod").ZodString>;
959
959
  }, import("zod/v4/core").$strip>>;
960
960
  comparePeriod: import("zod").ZodOptional<import("zod").ZodEnum<{
961
- previous_period: "previous_period";
962
961
  previous_day: "previous_day";
962
+ previous_period: "previous_period";
963
963
  previous_week: "previous_week";
964
964
  }>>;
965
965
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -969,22 +969,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
969
969
  }, import("zod/v4/core").$strip>> | undefined;
970
970
  } & {
971
971
  readonly _mastraSchemaRoute: true;
972
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
972
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
973
973
  method: string;
974
974
  path: `/${string}`;
975
975
  responseType: "json";
976
- streamFormat?: "sse" | "stream";
976
+ streamFormat?: 'sse' | 'stream';
977
977
  sseFlushOnConnect?: boolean;
978
978
  handler(params: {
979
979
  scorerId: string;
980
- groupBy: string[];
981
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
982
980
  scoreSource?: string | undefined;
981
+ groupBy: string[];
982
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
983
983
  filters?: {
984
- scorerId?: string | string[] | undefined;
985
- scoreSource?: string | undefined;
986
- metadata?: Record<string, unknown> | null | undefined;
987
- source?: string | undefined;
988
984
  timestamp?: {
989
985
  start?: Date | undefined;
990
986
  end?: Date | undefined;
@@ -1014,6 +1010,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1014
1010
  requestId?: string | undefined;
1015
1011
  executionSource?: string | undefined;
1016
1012
  tags?: string[] | undefined;
1013
+ scorerId?: string | string[] | undefined;
1014
+ scoreSource?: string | undefined;
1015
+ metadata?: Record<string, unknown> | null | undefined;
1016
+ source?: string | undefined;
1017
1017
  } | undefined;
1018
1018
  } & import(".").ServerContext): Promise<{
1019
1019
  groups: {
@@ -1036,19 +1036,15 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1036
1036
  scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1037
1037
  groupBy: import("zod").ZodArray<import("zod").ZodString>;
1038
1038
  aggregation: import("zod").ZodEnum<{
1039
- sum: "sum";
1040
1039
  avg: "avg";
1041
- min: "min";
1042
- max: "max";
1043
1040
  count: "count";
1044
1041
  count_distinct: "count_distinct";
1045
1042
  last: "last";
1043
+ max: "max";
1044
+ min: "min";
1045
+ sum: "sum";
1046
1046
  }>;
1047
1047
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1048
- scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1049
- scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1050
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1051
- source: import("zod").ZodOptional<import("zod").ZodString>;
1052
1048
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1053
1049
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1054
1050
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1078,6 +1074,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1078
1074
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1079
1075
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1080
1076
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1077
+ scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1078
+ scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1079
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1080
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1081
1081
  }, import("zod/v4/core").$strip>>;
1082
1082
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1083
1083
  groups: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1087,22 +1087,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1087
1087
  }, import("zod/v4/core").$strip>> | undefined;
1088
1088
  } & {
1089
1089
  readonly _mastraSchemaRoute: true;
1090
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1090
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1091
1091
  method: string;
1092
1092
  path: `/${string}`;
1093
1093
  responseType: "json";
1094
- streamFormat?: "sse" | "stream";
1094
+ streamFormat?: 'sse' | 'stream';
1095
1095
  sseFlushOnConnect?: boolean;
1096
1096
  handler(params: {
1097
1097
  scorerId: string;
1098
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1099
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1100
1098
  scoreSource?: string | undefined;
1099
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1100
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1101
1101
  filters?: {
1102
- scorerId?: string | string[] | undefined;
1103
- scoreSource?: string | undefined;
1104
- metadata?: Record<string, unknown> | null | undefined;
1105
- source?: string | undefined;
1106
1102
  timestamp?: {
1107
1103
  start?: Date | undefined;
1108
1104
  end?: Date | undefined;
@@ -1132,6 +1128,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1132
1128
  requestId?: string | undefined;
1133
1129
  executionSource?: string | undefined;
1134
1130
  tags?: string[] | undefined;
1131
+ scorerId?: string | string[] | undefined;
1132
+ scoreSource?: string | undefined;
1133
+ metadata?: Record<string, unknown> | null | undefined;
1134
+ source?: string | undefined;
1135
1135
  } | undefined;
1136
1136
  groupBy?: string[] | undefined;
1137
1137
  } & import(".").ServerContext): Promise<{
@@ -1157,26 +1157,22 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1157
1157
  scorerId: import("zod").ZodString;
1158
1158
  scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1159
1159
  interval: import("zod").ZodEnum<{
1160
- "1m": "1m";
1161
- "5m": "5m";
1162
1160
  "15m": "15m";
1163
- "1h": "1h";
1164
1161
  "1d": "1d";
1162
+ "1h": "1h";
1163
+ "1m": "1m";
1164
+ "5m": "5m";
1165
1165
  }>;
1166
1166
  aggregation: import("zod").ZodEnum<{
1167
- sum: "sum";
1168
1167
  avg: "avg";
1169
- min: "min";
1170
- max: "max";
1171
1168
  count: "count";
1172
1169
  count_distinct: "count_distinct";
1173
1170
  last: "last";
1171
+ max: "max";
1172
+ min: "min";
1173
+ sum: "sum";
1174
1174
  }>;
1175
1175
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1176
- scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1177
- scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1178
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1179
- source: import("zod").ZodOptional<import("zod").ZodString>;
1180
1176
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1181
1177
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1182
1178
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1206,6 +1202,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1206
1202
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1207
1203
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1208
1204
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1205
+ scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1206
+ scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1207
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1208
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1209
1209
  }, import("zod/v4/core").$strip>>;
1210
1210
  groupBy: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1211
1211
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -1219,22 +1219,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1219
1219
  }, import("zod/v4/core").$strip>> | undefined;
1220
1220
  } & {
1221
1221
  readonly _mastraSchemaRoute: true;
1222
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1222
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1223
1223
  method: string;
1224
1224
  path: `/${string}`;
1225
1225
  responseType: "json";
1226
- streamFormat?: "sse" | "stream";
1226
+ streamFormat?: 'sse' | 'stream';
1227
1227
  sseFlushOnConnect?: boolean;
1228
1228
  handler(params: {
1229
1229
  scorerId: string;
1230
- percentiles: number[];
1231
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1232
1230
  scoreSource?: string | undefined;
1231
+ percentiles: number[];
1232
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1233
1233
  filters?: {
1234
- scorerId?: string | string[] | undefined;
1235
- scoreSource?: string | undefined;
1236
- metadata?: Record<string, unknown> | null | undefined;
1237
- source?: string | undefined;
1238
1234
  timestamp?: {
1239
1235
  start?: Date | undefined;
1240
1236
  end?: Date | undefined;
@@ -1264,6 +1260,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1264
1260
  requestId?: string | undefined;
1265
1261
  executionSource?: string | undefined;
1266
1262
  tags?: string[] | undefined;
1263
+ scorerId?: string | string[] | undefined;
1264
+ scoreSource?: string | undefined;
1265
+ metadata?: Record<string, unknown> | null | undefined;
1266
+ source?: string | undefined;
1267
1267
  } | undefined;
1268
1268
  } & import(".").ServerContext): Promise<{
1269
1269
  series: {
@@ -1289,17 +1289,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1289
1289
  scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1290
1290
  percentiles: import("zod").ZodArray<import("zod").ZodNumber>;
1291
1291
  interval: import("zod").ZodEnum<{
1292
- "1m": "1m";
1293
- "5m": "5m";
1294
1292
  "15m": "15m";
1295
- "1h": "1h";
1296
1293
  "1d": "1d";
1294
+ "1h": "1h";
1295
+ "1m": "1m";
1296
+ "5m": "5m";
1297
1297
  }>;
1298
1298
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1299
- scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1300
- scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1301
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1302
- source: import("zod").ZodOptional<import("zod").ZodString>;
1303
1299
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1304
1300
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1305
1301
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1329,6 +1325,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1329
1325
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1330
1326
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1331
1327
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1328
+ scorerId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1329
+ scoreSource: import("zod").ZodOptional<import("zod").ZodString>;
1330
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1331
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1332
1332
  }, import("zod/v4/core").$strip>>;
1333
1333
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1334
1334
  series: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1341,21 +1341,25 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1341
1341
  }, import("zod/v4/core").$strip>> | undefined;
1342
1342
  } & {
1343
1343
  readonly _mastraSchemaRoute: true;
1344
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1344
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1345
1345
  method: string;
1346
1346
  path: `/${string}`;
1347
1347
  responseType: "json";
1348
- streamFormat?: "sse" | "stream";
1348
+ streamFormat?: 'sse' | 'stream';
1349
1349
  sseFlushOnConnect?: boolean;
1350
1350
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
1351
+ pagination?: {
1352
+ total: number;
1353
+ page: number;
1354
+ perPage: number | false;
1355
+ hasMore: boolean;
1356
+ } | undefined;
1357
+ delta?: {
1358
+ limit: number;
1359
+ hasMore: boolean;
1360
+ } | undefined;
1361
+ deltaCursor?: string | undefined;
1351
1362
  feedback: {
1352
- timestamp: Date;
1353
- feedbackType: string;
1354
- value: string | number;
1355
- sourceId?: string | null | undefined;
1356
- metadata?: Record<string, unknown> | null | undefined;
1357
- executionSource?: string | null | undefined;
1358
- tags?: string[] | null | undefined;
1359
1363
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1360
1364
  entityId?: string | null | undefined;
1361
1365
  entityName?: string | null | undefined;
@@ -1379,25 +1383,21 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1379
1383
  parentEntityVersionId?: string | null | undefined;
1380
1384
  rootEntityVersionId?: string | null | undefined;
1381
1385
  experimentId?: string | null | undefined;
1386
+ executionSource?: string | null | undefined;
1387
+ tags?: string[] | null | undefined;
1382
1388
  feedbackId?: string | null | undefined;
1389
+ timestamp: Date;
1383
1390
  traceId?: string | null | undefined;
1384
1391
  spanId?: string | null | undefined;
1385
1392
  feedbackSource?: string | null | undefined;
1386
1393
  source?: string | null | undefined;
1394
+ feedbackType: string;
1395
+ value: string | number;
1387
1396
  comment?: string | null | undefined;
1388
1397
  feedbackUserId?: string | null | undefined;
1398
+ sourceId?: string | null | undefined;
1399
+ metadata?: Record<string, unknown> | null | undefined;
1389
1400
  }[];
1390
- pagination?: {
1391
- total: number;
1392
- page: number;
1393
- perPage: number | false;
1394
- hasMore: boolean;
1395
- } | undefined;
1396
- delta?: {
1397
- limit: number;
1398
- hasMore: boolean;
1399
- } | undefined;
1400
- deltaCursor?: string | undefined;
1401
1401
  }>;
1402
1402
  pathParamSchema?: import("zod").ZodType;
1403
1403
  queryParamSchema?: import("zod").ZodType;
@@ -1424,10 +1424,6 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1424
1424
  }, import("zod/v4/core").$strip>>;
1425
1425
  deltaCursor: import("zod").ZodOptional<import("zod").ZodString>;
1426
1426
  feedback: import("zod").ZodArray<import("zod").ZodObject<{
1427
- sourceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1428
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1429
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1430
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1431
1427
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1432
1428
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1433
1429
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1451,6 +1447,8 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1451
1447
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1452
1448
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1453
1449
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1450
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1451
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1454
1452
  feedbackId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1455
1453
  timestamp: import("zod").ZodDate;
1456
1454
  traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1461,28 +1459,21 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1461
1459
  value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
1462
1460
  comment: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1463
1461
  feedbackUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1462
+ sourceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1463
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1464
1464
  }, import("zod/v4/core").$strip>>;
1465
1465
  }, import("zod/v4/core").$strip>> | undefined;
1466
1466
  } & {
1467
1467
  readonly _mastraSchemaRoute: true;
1468
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1468
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1469
1469
  method: string;
1470
1470
  path: `/${string}`;
1471
1471
  responseType: "json";
1472
- streamFormat?: "sse" | "stream";
1472
+ streamFormat?: 'sse' | 'stream';
1473
1473
  sseFlushOnConnect?: boolean;
1474
1474
  handler(params: {
1475
1475
  feedback: {
1476
- value: string | number;
1477
- feedbackType: string;
1478
- runId?: string | null | undefined;
1479
1476
  entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1480
- tags?: string[] | null | undefined;
1481
- traceId?: string | null | undefined;
1482
- spanId?: string | null | undefined;
1483
- source?: string | null | undefined;
1484
- metadata?: Record<string, unknown> | null | undefined;
1485
- executionSource?: string | null | undefined;
1486
1477
  entityId?: string | null | undefined;
1487
1478
  entityName?: string | null | undefined;
1488
1479
  parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -1494,6 +1485,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1494
1485
  userId?: string | null | undefined;
1495
1486
  organizationId?: string | null | undefined;
1496
1487
  resourceId?: string | null | undefined;
1488
+ runId?: string | null | undefined;
1497
1489
  sessionId?: string | null | undefined;
1498
1490
  threadId?: string | null | undefined;
1499
1491
  requestId?: string | null | undefined;
@@ -1504,11 +1496,19 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1504
1496
  parentEntityVersionId?: string | null | undefined;
1505
1497
  rootEntityVersionId?: string | null | undefined;
1506
1498
  experimentId?: string | null | undefined;
1499
+ executionSource?: string | null | undefined;
1500
+ tags?: string[] | null | undefined;
1507
1501
  feedbackId?: string | null | undefined;
1502
+ traceId?: string | null | undefined;
1503
+ spanId?: string | null | undefined;
1508
1504
  feedbackSource?: string | null | undefined;
1505
+ source?: string | null | undefined;
1506
+ feedbackType: string;
1507
+ value: string | number;
1509
1508
  comment?: string | null | undefined;
1510
1509
  feedbackUserId?: string | null | undefined;
1511
1510
  sourceId?: string | null | undefined;
1511
+ metadata?: Record<string, unknown> | null | undefined;
1512
1512
  };
1513
1513
  } & import(".").ServerContext): Promise<{
1514
1514
  success: boolean;
@@ -1525,15 +1525,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1525
1525
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1526
1526
  readonly __schemas?: import(".").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
1527
1527
  feedback: import("zod").ZodObject<{
1528
- runId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1529
- value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
1530
1528
  entityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1531
- tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1532
- traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1533
- spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1534
- source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1535
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1536
- executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1537
1529
  entityId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1538
1530
  entityName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1539
1531
  parentEntityType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -1545,6 +1537,7 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1545
1537
  userId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1546
1538
  organizationId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1547
1539
  resourceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1540
+ runId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1548
1541
  sessionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1549
1542
  threadId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1550
1543
  requestId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1555,33 +1548,36 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1555
1548
  parentEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1556
1549
  rootEntityVersionId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1557
1550
  experimentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1558
- feedbackType: import("zod").ZodString;
1551
+ executionSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1552
+ tags: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1559
1553
  feedbackId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1554
+ traceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1555
+ spanId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1560
1556
  feedbackSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1557
+ source: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1558
+ feedbackType: import("zod").ZodString;
1559
+ value: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
1561
1560
  comment: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1562
1561
  feedbackUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1563
1562
  sourceId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1563
+ metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1564
1564
  }, import("zod/v4/core").$strip>;
1565
1565
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1566
1566
  success: import("zod").ZodBoolean;
1567
1567
  }, import("zod/v4/core").$strip>> | undefined;
1568
1568
  } & {
1569
1569
  readonly _mastraSchemaRoute: true;
1570
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1570
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1571
1571
  method: string;
1572
1572
  path: `/${string}`;
1573
1573
  responseType: "json";
1574
- streamFormat?: "sse" | "stream";
1574
+ streamFormat?: 'sse' | 'stream';
1575
1575
  sseFlushOnConnect?: boolean;
1576
1576
  handler(params: {
1577
1577
  feedbackType: string;
1578
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1579
1578
  feedbackSource?: string | undefined;
1579
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1580
1580
  filters?: {
1581
- feedbackType?: string | string[] | undefined;
1582
- feedbackSource?: string | undefined;
1583
- source?: string | undefined;
1584
- feedbackUserId?: string | undefined;
1585
1581
  timestamp?: {
1586
1582
  start?: Date | undefined;
1587
1583
  end?: Date | undefined;
@@ -1611,8 +1607,12 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1611
1607
  requestId?: string | undefined;
1612
1608
  executionSource?: string | undefined;
1613
1609
  tags?: string[] | undefined;
1610
+ feedbackType?: string | string[] | undefined;
1611
+ feedbackSource?: string | undefined;
1612
+ source?: string | undefined;
1613
+ feedbackUserId?: string | undefined;
1614
1614
  } | undefined;
1615
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
1615
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
1616
1616
  } & import(".").ServerContext): Promise<{
1617
1617
  value: number | null;
1618
1618
  previousValue?: number | null | undefined;
@@ -1632,19 +1632,15 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1632
1632
  feedbackType: import("zod").ZodString;
1633
1633
  feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1634
1634
  aggregation: import("zod").ZodEnum<{
1635
- sum: "sum";
1636
1635
  avg: "avg";
1637
- min: "min";
1638
- max: "max";
1639
1636
  count: "count";
1640
1637
  count_distinct: "count_distinct";
1641
1638
  last: "last";
1639
+ max: "max";
1640
+ min: "min";
1641
+ sum: "sum";
1642
1642
  }>;
1643
1643
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1644
- feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1645
- feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1646
- source: import("zod").ZodOptional<import("zod").ZodString>;
1647
- feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1648
1644
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1649
1645
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1650
1646
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1674,10 +1670,14 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1674
1670
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1675
1671
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1676
1672
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1673
+ feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1674
+ feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1675
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1676
+ feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1677
1677
  }, import("zod/v4/core").$strip>>;
1678
1678
  comparePeriod: import("zod").ZodOptional<import("zod").ZodEnum<{
1679
- previous_period: "previous_period";
1680
1679
  previous_day: "previous_day";
1680
+ previous_period: "previous_period";
1681
1681
  previous_week: "previous_week";
1682
1682
  }>>;
1683
1683
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -1687,22 +1687,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1687
1687
  }, import("zod/v4/core").$strip>> | undefined;
1688
1688
  } & {
1689
1689
  readonly _mastraSchemaRoute: true;
1690
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1690
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1691
1691
  method: string;
1692
1692
  path: `/${string}`;
1693
1693
  responseType: "json";
1694
- streamFormat?: "sse" | "stream";
1694
+ streamFormat?: 'sse' | 'stream';
1695
1695
  sseFlushOnConnect?: boolean;
1696
1696
  handler(params: {
1697
1697
  feedbackType: string;
1698
- groupBy: string[];
1699
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1700
1698
  feedbackSource?: string | undefined;
1699
+ groupBy: string[];
1700
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1701
1701
  filters?: {
1702
- feedbackType?: string | string[] | undefined;
1703
- feedbackSource?: string | undefined;
1704
- source?: string | undefined;
1705
- feedbackUserId?: string | undefined;
1706
1702
  timestamp?: {
1707
1703
  start?: Date | undefined;
1708
1704
  end?: Date | undefined;
@@ -1732,6 +1728,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1732
1728
  requestId?: string | undefined;
1733
1729
  executionSource?: string | undefined;
1734
1730
  tags?: string[] | undefined;
1731
+ feedbackType?: string | string[] | undefined;
1732
+ feedbackSource?: string | undefined;
1733
+ source?: string | undefined;
1734
+ feedbackUserId?: string | undefined;
1735
1735
  } | undefined;
1736
1736
  } & import(".").ServerContext): Promise<{
1737
1737
  groups: {
@@ -1754,19 +1754,15 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1754
1754
  feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1755
1755
  groupBy: import("zod").ZodArray<import("zod").ZodString>;
1756
1756
  aggregation: import("zod").ZodEnum<{
1757
- sum: "sum";
1758
1757
  avg: "avg";
1759
- min: "min";
1760
- max: "max";
1761
1758
  count: "count";
1762
1759
  count_distinct: "count_distinct";
1763
1760
  last: "last";
1761
+ max: "max";
1762
+ min: "min";
1763
+ sum: "sum";
1764
1764
  }>;
1765
1765
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1766
- feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1767
- feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1768
- source: import("zod").ZodOptional<import("zod").ZodString>;
1769
- feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1770
1766
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1771
1767
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1772
1768
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1796,6 +1792,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1796
1792
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1797
1793
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1798
1794
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1795
+ feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1796
+ feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1797
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1798
+ feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1799
1799
  }, import("zod/v4/core").$strip>>;
1800
1800
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1801
1801
  groups: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1805,22 +1805,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1805
1805
  }, import("zod/v4/core").$strip>> | undefined;
1806
1806
  } & {
1807
1807
  readonly _mastraSchemaRoute: true;
1808
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1808
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1809
1809
  method: string;
1810
1810
  path: `/${string}`;
1811
1811
  responseType: "json";
1812
- streamFormat?: "sse" | "stream";
1812
+ streamFormat?: 'sse' | 'stream';
1813
1813
  sseFlushOnConnect?: boolean;
1814
1814
  handler(params: {
1815
1815
  feedbackType: string;
1816
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1817
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1818
1816
  feedbackSource?: string | undefined;
1817
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1818
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1819
1819
  filters?: {
1820
- feedbackType?: string | string[] | undefined;
1821
- feedbackSource?: string | undefined;
1822
- source?: string | undefined;
1823
- feedbackUserId?: string | undefined;
1824
1820
  timestamp?: {
1825
1821
  start?: Date | undefined;
1826
1822
  end?: Date | undefined;
@@ -1850,6 +1846,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1850
1846
  requestId?: string | undefined;
1851
1847
  executionSource?: string | undefined;
1852
1848
  tags?: string[] | undefined;
1849
+ feedbackType?: string | string[] | undefined;
1850
+ feedbackSource?: string | undefined;
1851
+ source?: string | undefined;
1852
+ feedbackUserId?: string | undefined;
1853
1853
  } | undefined;
1854
1854
  groupBy?: string[] | undefined;
1855
1855
  } & import(".").ServerContext): Promise<{
@@ -1875,26 +1875,22 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1875
1875
  feedbackType: import("zod").ZodString;
1876
1876
  feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1877
1877
  interval: import("zod").ZodEnum<{
1878
- "1m": "1m";
1879
- "5m": "5m";
1880
1878
  "15m": "15m";
1881
- "1h": "1h";
1882
1879
  "1d": "1d";
1880
+ "1h": "1h";
1881
+ "1m": "1m";
1882
+ "5m": "5m";
1883
1883
  }>;
1884
1884
  aggregation: import("zod").ZodEnum<{
1885
- sum: "sum";
1886
1885
  avg: "avg";
1887
- min: "min";
1888
- max: "max";
1889
1886
  count: "count";
1890
1887
  count_distinct: "count_distinct";
1891
1888
  last: "last";
1889
+ max: "max";
1890
+ min: "min";
1891
+ sum: "sum";
1892
1892
  }>;
1893
1893
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
1894
- feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1895
- feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1896
- source: import("zod").ZodOptional<import("zod").ZodString>;
1897
- feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1898
1894
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
1899
1895
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
1900
1896
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -1924,6 +1920,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1924
1920
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
1925
1921
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
1926
1922
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1923
+ feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
1924
+ feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
1925
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1926
+ feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
1927
1927
  }, import("zod/v4/core").$strip>>;
1928
1928
  groupBy: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1929
1929
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -1937,22 +1937,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1937
1937
  }, import("zod/v4/core").$strip>> | undefined;
1938
1938
  } & {
1939
1939
  readonly _mastraSchemaRoute: true;
1940
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1940
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1941
1941
  method: string;
1942
1942
  path: `/${string}`;
1943
1943
  responseType: "json";
1944
- streamFormat?: "sse" | "stream";
1944
+ streamFormat?: 'sse' | 'stream';
1945
1945
  sseFlushOnConnect?: boolean;
1946
1946
  handler(params: {
1947
1947
  feedbackType: string;
1948
- percentiles: number[];
1949
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1950
1948
  feedbackSource?: string | undefined;
1949
+ percentiles: number[];
1950
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1951
1951
  filters?: {
1952
- feedbackType?: string | string[] | undefined;
1953
- feedbackSource?: string | undefined;
1954
- source?: string | undefined;
1955
- feedbackUserId?: string | undefined;
1956
1952
  timestamp?: {
1957
1953
  start?: Date | undefined;
1958
1954
  end?: Date | undefined;
@@ -1982,6 +1978,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
1982
1978
  requestId?: string | undefined;
1983
1979
  executionSource?: string | undefined;
1984
1980
  tags?: string[] | undefined;
1981
+ feedbackType?: string | string[] | undefined;
1982
+ feedbackSource?: string | undefined;
1983
+ source?: string | undefined;
1984
+ feedbackUserId?: string | undefined;
1985
1985
  } | undefined;
1986
1986
  } & import(".").ServerContext): Promise<{
1987
1987
  series: {
@@ -2007,17 +2007,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2007
2007
  feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
2008
2008
  percentiles: import("zod").ZodArray<import("zod").ZodNumber>;
2009
2009
  interval: import("zod").ZodEnum<{
2010
- "1m": "1m";
2011
- "5m": "5m";
2012
2010
  "15m": "15m";
2013
- "1h": "1h";
2014
2011
  "1d": "1d";
2012
+ "1h": "1h";
2013
+ "1m": "1m";
2014
+ "5m": "5m";
2015
2015
  }>;
2016
2016
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
2017
- feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
2018
- feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
2019
- source: import("zod").ZodOptional<import("zod").ZodString>;
2020
- feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
2021
2017
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
2022
2018
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
2023
2019
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -2047,6 +2043,10 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2047
2043
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
2048
2044
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
2049
2045
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2046
+ feedbackType: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
2047
+ feedbackSource: import("zod").ZodOptional<import("zod").ZodString>;
2048
+ source: import("zod").ZodOptional<import("zod").ZodString>;
2049
+ feedbackUserId: import("zod").ZodOptional<import("zod").ZodString>;
2050
2050
  }, import("zod/v4/core").$strip>>;
2051
2051
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2052
2052
  series: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2059,24 +2059,17 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2059
2059
  }, import("zod/v4/core").$strip>> | undefined;
2060
2060
  } & {
2061
2061
  readonly _mastraSchemaRoute: true;
2062
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2062
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2063
2063
  method: string;
2064
2064
  path: `/${string}`;
2065
2065
  responseType: "json";
2066
- streamFormat?: "sse" | "stream";
2066
+ streamFormat?: 'sse' | 'stream';
2067
2067
  sseFlushOnConnect?: boolean;
2068
2068
  handler(params: {
2069
2069
  name: string[];
2070
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
2071
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
2070
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
2071
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
2072
2072
  filters?: {
2073
- traceIds?: string[] | undefined;
2074
- name?: string[] | undefined;
2075
- source?: string | undefined;
2076
- provider?: string | undefined;
2077
- model?: string | undefined;
2078
- costUnit?: string | undefined;
2079
- labels?: Record<string, string> | undefined;
2080
2073
  timestamp?: {
2081
2074
  start?: Date | undefined;
2082
2075
  end?: Date | undefined;
@@ -2106,16 +2099,23 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2106
2099
  requestId?: string | undefined;
2107
2100
  executionSource?: string | undefined;
2108
2101
  tags?: string[] | undefined;
2102
+ traceIds?: string[] | undefined;
2103
+ name?: string[] | undefined;
2104
+ source?: string | undefined;
2105
+ provider?: string | undefined;
2106
+ model?: string | undefined;
2107
+ costUnit?: string | undefined;
2108
+ labels?: Record<string, string> | undefined;
2109
2109
  } | undefined;
2110
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
2110
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
2111
2111
  } & import(".").ServerContext): Promise<{
2112
2112
  value: number | null;
2113
+ previousValue?: number | null | undefined;
2114
+ changePercent?: number | null | undefined;
2113
2115
  estimatedCost?: number | null | undefined;
2114
2116
  costUnit?: string | null | undefined;
2115
2117
  previousEstimatedCost?: number | null | undefined;
2116
2118
  costChangePercent?: number | null | undefined;
2117
- previousValue?: number | null | undefined;
2118
- changePercent?: number | null | undefined;
2119
2119
  }>;
2120
2120
  pathParamSchema?: import("zod").ZodType;
2121
2121
  queryParamSchema?: import("zod").ZodType;
@@ -2130,38 +2130,31 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2130
2130
  readonly __schemas?: import(".").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
2131
2131
  name: import("zod").ZodArray<import("zod").ZodString>;
2132
2132
  aggregation: import("zod").ZodEnum<{
2133
- sum: "sum";
2134
2133
  avg: "avg";
2135
- min: "min";
2136
- max: "max";
2137
2134
  count: "count";
2138
2135
  count_distinct: "count_distinct";
2139
2136
  last: "last";
2137
+ max: "max";
2138
+ min: "min";
2139
+ sum: "sum";
2140
2140
  }>;
2141
2141
  distinctColumn: import("zod").ZodOptional<import("zod").ZodEnum<{
2142
+ entityName: "entityName";
2142
2143
  entityType: "entityType";
2144
+ environment: "environment";
2143
2145
  executionSource: "executionSource";
2144
- entityName: "entityName";
2145
- parentEntityType: "parentEntityType";
2146
+ model: "model";
2147
+ name: "name";
2146
2148
  parentEntityName: "parentEntityName";
2147
- rootEntityType: "rootEntityType";
2148
- rootEntityName: "rootEntityName";
2149
+ parentEntityType: "parentEntityType";
2150
+ provider: "provider";
2149
2151
  resourceId: "resourceId";
2150
- threadId: "threadId";
2151
- environment: "environment";
2152
+ rootEntityName: "rootEntityName";
2153
+ rootEntityType: "rootEntityType";
2152
2154
  serviceName: "serviceName";
2153
- name: "name";
2154
- provider: "provider";
2155
- model: "model";
2155
+ threadId: "threadId";
2156
2156
  }>>;
2157
2157
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
2158
- traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2159
- name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2160
- source: import("zod").ZodOptional<import("zod").ZodString>;
2161
- provider: import("zod").ZodOptional<import("zod").ZodString>;
2162
- model: import("zod").ZodOptional<import("zod").ZodString>;
2163
- costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2164
- labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2165
2158
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
2166
2159
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
2167
2160
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -2191,42 +2184,42 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2191
2184
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
2192
2185
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
2193
2186
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2187
+ traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2188
+ name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2189
+ source: import("zod").ZodOptional<import("zod").ZodString>;
2190
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2191
+ model: import("zod").ZodOptional<import("zod").ZodString>;
2192
+ costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2193
+ labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2194
2194
  }, import("zod/v4/core").$strip>>;
2195
2195
  comparePeriod: import("zod").ZodOptional<import("zod").ZodEnum<{
2196
- previous_period: "previous_period";
2197
2196
  previous_day: "previous_day";
2197
+ previous_period: "previous_period";
2198
2198
  previous_week: "previous_week";
2199
2199
  }>>;
2200
2200
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2201
+ value: import("zod").ZodNullable<import("zod").ZodNumber>;
2202
+ previousValue: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2203
+ changePercent: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2201
2204
  estimatedCost: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2202
2205
  costUnit: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2203
2206
  previousEstimatedCost: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2204
2207
  costChangePercent: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2205
- value: import("zod").ZodNullable<import("zod").ZodNumber>;
2206
- previousValue: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2207
- changePercent: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
2208
2208
  }, import("zod/v4/core").$strip>> | undefined;
2209
2209
  } & {
2210
2210
  readonly _mastraSchemaRoute: true;
2211
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2211
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2212
2212
  method: string;
2213
2213
  path: `/${string}`;
2214
2214
  responseType: "json";
2215
- streamFormat?: "sse" | "stream";
2215
+ streamFormat?: 'sse' | 'stream';
2216
2216
  sseFlushOnConnect?: boolean;
2217
2217
  handler(params: {
2218
2218
  name: string[];
2219
2219
  groupBy: string[];
2220
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
2221
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
2220
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
2221
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
2222
2222
  filters?: {
2223
- traceIds?: string[] | undefined;
2224
- name?: string[] | undefined;
2225
- source?: string | undefined;
2226
- provider?: string | undefined;
2227
- model?: string | undefined;
2228
- costUnit?: string | undefined;
2229
- labels?: Record<string, string> | undefined;
2230
2223
  timestamp?: {
2231
2224
  start?: Date | undefined;
2232
2225
  end?: Date | undefined;
@@ -2256,6 +2249,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2256
2249
  requestId?: string | undefined;
2257
2250
  executionSource?: string | undefined;
2258
2251
  tags?: string[] | undefined;
2252
+ traceIds?: string[] | undefined;
2253
+ name?: string[] | undefined;
2254
+ source?: string | undefined;
2255
+ provider?: string | undefined;
2256
+ model?: string | undefined;
2257
+ costUnit?: string | undefined;
2258
+ labels?: Record<string, string> | undefined;
2259
2259
  } | undefined;
2260
2260
  limit?: number | undefined;
2261
2261
  orderDirection?: "ASC" | "DESC" | undefined;
@@ -2281,38 +2281,31 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2281
2281
  name: import("zod").ZodArray<import("zod").ZodString>;
2282
2282
  groupBy: import("zod").ZodArray<import("zod").ZodString>;
2283
2283
  aggregation: import("zod").ZodEnum<{
2284
- sum: "sum";
2285
2284
  avg: "avg";
2286
- min: "min";
2287
- max: "max";
2288
2285
  count: "count";
2289
2286
  count_distinct: "count_distinct";
2290
2287
  last: "last";
2288
+ max: "max";
2289
+ min: "min";
2290
+ sum: "sum";
2291
2291
  }>;
2292
2292
  distinctColumn: import("zod").ZodOptional<import("zod").ZodEnum<{
2293
+ entityName: "entityName";
2293
2294
  entityType: "entityType";
2295
+ environment: "environment";
2294
2296
  executionSource: "executionSource";
2295
- entityName: "entityName";
2296
- parentEntityType: "parentEntityType";
2297
+ model: "model";
2298
+ name: "name";
2297
2299
  parentEntityName: "parentEntityName";
2298
- rootEntityType: "rootEntityType";
2299
- rootEntityName: "rootEntityName";
2300
+ parentEntityType: "parentEntityType";
2301
+ provider: "provider";
2300
2302
  resourceId: "resourceId";
2301
- threadId: "threadId";
2302
- environment: "environment";
2303
+ rootEntityName: "rootEntityName";
2304
+ rootEntityType: "rootEntityType";
2303
2305
  serviceName: "serviceName";
2304
- name: "name";
2305
- provider: "provider";
2306
- model: "model";
2306
+ threadId: "threadId";
2307
2307
  }>>;
2308
2308
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
2309
- traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2310
- name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2311
- source: import("zod").ZodOptional<import("zod").ZodString>;
2312
- provider: import("zod").ZodOptional<import("zod").ZodString>;
2313
- model: import("zod").ZodOptional<import("zod").ZodString>;
2314
- costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2315
- labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2316
2309
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
2317
2310
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
2318
2311
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -2342,6 +2335,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2342
2335
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
2343
2336
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
2344
2337
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2338
+ traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2339
+ name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2340
+ source: import("zod").ZodOptional<import("zod").ZodString>;
2341
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2342
+ model: import("zod").ZodOptional<import("zod").ZodString>;
2343
+ costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2344
+ labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2345
2345
  }, import("zod/v4/core").$strip>>;
2346
2346
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
2347
2347
  orderDirection: import("zod").ZodOptional<import("zod").ZodEnum<{
@@ -2358,25 +2358,18 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2358
2358
  }, import("zod/v4/core").$strip>> | undefined;
2359
2359
  } & {
2360
2360
  readonly _mastraSchemaRoute: true;
2361
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2361
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2362
2362
  method: string;
2363
2363
  path: `/${string}`;
2364
2364
  responseType: "json";
2365
- streamFormat?: "sse" | "stream";
2365
+ streamFormat?: 'sse' | 'stream';
2366
2366
  sseFlushOnConnect?: boolean;
2367
2367
  handler(params: {
2368
2368
  name: string[];
2369
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
2370
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
2371
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
2369
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
2370
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
2371
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
2372
2372
  filters?: {
2373
- traceIds?: string[] | undefined;
2374
- name?: string[] | undefined;
2375
- source?: string | undefined;
2376
- provider?: string | undefined;
2377
- model?: string | undefined;
2378
- costUnit?: string | undefined;
2379
- labels?: Record<string, string> | undefined;
2380
2373
  timestamp?: {
2381
2374
  start?: Date | undefined;
2382
2375
  end?: Date | undefined;
@@ -2406,17 +2399,24 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2406
2399
  requestId?: string | undefined;
2407
2400
  executionSource?: string | undefined;
2408
2401
  tags?: string[] | undefined;
2402
+ traceIds?: string[] | undefined;
2403
+ name?: string[] | undefined;
2404
+ source?: string | undefined;
2405
+ provider?: string | undefined;
2406
+ model?: string | undefined;
2407
+ costUnit?: string | undefined;
2408
+ labels?: Record<string, string> | undefined;
2409
2409
  } | undefined;
2410
2410
  groupBy?: string[] | undefined;
2411
2411
  } & import(".").ServerContext): Promise<{
2412
2412
  series: {
2413
2413
  name: string;
2414
+ costUnit?: string | null | undefined;
2414
2415
  points: {
2415
2416
  timestamp: Date;
2416
2417
  value: number;
2417
2418
  estimatedCost?: number | null | undefined;
2418
2419
  }[];
2419
- costUnit?: string | null | undefined;
2420
2420
  }[];
2421
2421
  }>;
2422
2422
  pathParamSchema?: import("zod").ZodType;
@@ -2432,45 +2432,38 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2432
2432
  readonly __schemas?: import(".").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
2433
2433
  name: import("zod").ZodArray<import("zod").ZodString>;
2434
2434
  interval: import("zod").ZodEnum<{
2435
- "1m": "1m";
2436
- "5m": "5m";
2437
2435
  "15m": "15m";
2438
- "1h": "1h";
2439
2436
  "1d": "1d";
2437
+ "1h": "1h";
2438
+ "1m": "1m";
2439
+ "5m": "5m";
2440
2440
  }>;
2441
2441
  aggregation: import("zod").ZodEnum<{
2442
- sum: "sum";
2443
2442
  avg: "avg";
2444
- min: "min";
2445
- max: "max";
2446
2443
  count: "count";
2447
2444
  count_distinct: "count_distinct";
2448
2445
  last: "last";
2446
+ max: "max";
2447
+ min: "min";
2448
+ sum: "sum";
2449
2449
  }>;
2450
2450
  distinctColumn: import("zod").ZodOptional<import("zod").ZodEnum<{
2451
+ entityName: "entityName";
2451
2452
  entityType: "entityType";
2453
+ environment: "environment";
2452
2454
  executionSource: "executionSource";
2453
- entityName: "entityName";
2454
- parentEntityType: "parentEntityType";
2455
+ model: "model";
2456
+ name: "name";
2455
2457
  parentEntityName: "parentEntityName";
2456
- rootEntityType: "rootEntityType";
2457
- rootEntityName: "rootEntityName";
2458
+ parentEntityType: "parentEntityType";
2459
+ provider: "provider";
2458
2460
  resourceId: "resourceId";
2459
- threadId: "threadId";
2460
- environment: "environment";
2461
+ rootEntityName: "rootEntityName";
2462
+ rootEntityType: "rootEntityType";
2461
2463
  serviceName: "serviceName";
2462
- name: "name";
2463
- provider: "provider";
2464
- model: "model";
2464
+ threadId: "threadId";
2465
2465
  }>>;
2466
2466
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
2467
- traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2468
- name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2469
- source: import("zod").ZodOptional<import("zod").ZodString>;
2470
- provider: import("zod").ZodOptional<import("zod").ZodString>;
2471
- model: import("zod").ZodOptional<import("zod").ZodString>;
2472
- costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2473
- labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2474
2467
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
2475
2468
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
2476
2469
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -2500,6 +2493,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2500
2493
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
2501
2494
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
2502
2495
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2496
+ traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2497
+ name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2498
+ source: import("zod").ZodOptional<import("zod").ZodString>;
2499
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2500
+ model: import("zod").ZodOptional<import("zod").ZodString>;
2501
+ costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2502
+ labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2503
2503
  }, import("zod/v4/core").$strip>>;
2504
2504
  groupBy: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2505
2505
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -2515,24 +2515,17 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2515
2515
  }, import("zod/v4/core").$strip>> | undefined;
2516
2516
  } & {
2517
2517
  readonly _mastraSchemaRoute: true;
2518
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2518
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2519
2519
  method: string;
2520
2520
  path: `/${string}`;
2521
2521
  responseType: "json";
2522
- streamFormat?: "sse" | "stream";
2522
+ streamFormat?: 'sse' | 'stream';
2523
2523
  sseFlushOnConnect?: boolean;
2524
2524
  handler(params: {
2525
2525
  name: string;
2526
2526
  percentiles: number[];
2527
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
2527
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
2528
2528
  filters?: {
2529
- traceIds?: string[] | undefined;
2530
- name?: string[] | undefined;
2531
- source?: string | undefined;
2532
- provider?: string | undefined;
2533
- model?: string | undefined;
2534
- costUnit?: string | undefined;
2535
- labels?: Record<string, string> | undefined;
2536
2529
  timestamp?: {
2537
2530
  start?: Date | undefined;
2538
2531
  end?: Date | undefined;
@@ -2562,6 +2555,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2562
2555
  requestId?: string | undefined;
2563
2556
  executionSource?: string | undefined;
2564
2557
  tags?: string[] | undefined;
2558
+ traceIds?: string[] | undefined;
2559
+ name?: string[] | undefined;
2560
+ source?: string | undefined;
2561
+ provider?: string | undefined;
2562
+ model?: string | undefined;
2563
+ costUnit?: string | undefined;
2564
+ labels?: Record<string, string> | undefined;
2565
2565
  } | undefined;
2566
2566
  } & import(".").ServerContext): Promise<{
2567
2567
  series: {
@@ -2586,20 +2586,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2586
2586
  name: import("zod").ZodString;
2587
2587
  percentiles: import("zod").ZodArray<import("zod").ZodNumber>;
2588
2588
  interval: import("zod").ZodEnum<{
2589
- "1m": "1m";
2590
- "5m": "5m";
2591
2589
  "15m": "15m";
2592
- "1h": "1h";
2593
2590
  "1d": "1d";
2591
+ "1h": "1h";
2592
+ "1m": "1m";
2593
+ "5m": "5m";
2594
2594
  }>;
2595
2595
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
2596
- traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2597
- name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2598
- source: import("zod").ZodOptional<import("zod").ZodString>;
2599
- provider: import("zod").ZodOptional<import("zod").ZodString>;
2600
- model: import("zod").ZodOptional<import("zod").ZodString>;
2601
- costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2602
- labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2603
2596
  timestamp: import("zod").ZodOptional<import("zod").ZodObject<{
2604
2597
  start: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
2605
2598
  end: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
@@ -2629,6 +2622,13 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2629
2622
  requestId: import("zod").ZodOptional<import("zod").ZodString>;
2630
2623
  executionSource: import("zod").ZodOptional<import("zod").ZodString>;
2631
2624
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2625
+ traceIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2626
+ name: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
2627
+ source: import("zod").ZodOptional<import("zod").ZodString>;
2628
+ provider: import("zod").ZodOptional<import("zod").ZodString>;
2629
+ model: import("zod").ZodOptional<import("zod").ZodString>;
2630
+ costUnit: import("zod").ZodOptional<import("zod").ZodString>;
2631
+ labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2632
2632
  }, import("zod/v4/core").$strip>>;
2633
2633
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2634
2634
  series: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2641,11 +2641,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2641
2641
  }, import("zod/v4/core").$strip>> | undefined;
2642
2642
  } & {
2643
2643
  readonly _mastraSchemaRoute: true;
2644
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2644
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2645
2645
  method: string;
2646
2646
  path: `/${string}`;
2647
2647
  responseType: "json";
2648
- streamFormat?: "sse" | "stream";
2648
+ streamFormat?: 'sse' | 'stream';
2649
2649
  sseFlushOnConnect?: boolean;
2650
2650
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
2651
2651
  names: string[];
@@ -2667,11 +2667,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2667
2667
  }, import("zod/v4/core").$strip>> | undefined;
2668
2668
  } & {
2669
2669
  readonly _mastraSchemaRoute: true;
2670
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2670
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2671
2671
  method: string;
2672
2672
  path: `/${string}`;
2673
2673
  responseType: "json";
2674
- streamFormat?: "sse" | "stream";
2674
+ streamFormat?: 'sse' | 'stream';
2675
2675
  sseFlushOnConnect?: boolean;
2676
2676
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
2677
2677
  keys: string[];
@@ -2693,11 +2693,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2693
2693
  }, import("zod/v4/core").$strip>> | undefined;
2694
2694
  } & {
2695
2695
  readonly _mastraSchemaRoute: true;
2696
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2696
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2697
2697
  method: string;
2698
2698
  path: `/${string}`;
2699
2699
  responseType: "json";
2700
- streamFormat?: "sse" | "stream";
2700
+ streamFormat?: 'sse' | 'stream';
2701
2701
  sseFlushOnConnect?: boolean;
2702
2702
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
2703
2703
  values: string[];
@@ -2719,11 +2719,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2719
2719
  }, import("zod/v4/core").$strip>> | undefined;
2720
2720
  } & {
2721
2721
  readonly _mastraSchemaRoute: true;
2722
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2722
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2723
2723
  method: string;
2724
2724
  path: `/${string}`;
2725
2725
  responseType: "json";
2726
- streamFormat?: "sse" | "stream";
2726
+ streamFormat?: 'sse' | 'stream';
2727
2727
  sseFlushOnConnect?: boolean;
2728
2728
  handler(params: import(".").ServerContext): Promise<{
2729
2729
  entityTypes: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
@@ -2743,11 +2743,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2743
2743
  }, import("zod/v4/core").$strip>> | undefined;
2744
2744
  } & {
2745
2745
  readonly _mastraSchemaRoute: true;
2746
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2746
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2747
2747
  method: string;
2748
2748
  path: `/${string}`;
2749
2749
  responseType: "json";
2750
- streamFormat?: "sse" | "stream";
2750
+ streamFormat?: 'sse' | 'stream';
2751
2751
  sseFlushOnConnect?: boolean;
2752
2752
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
2753
2753
  names: string[];
@@ -2769,11 +2769,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2769
2769
  }, import("zod/v4/core").$strip>> | undefined;
2770
2770
  } & {
2771
2771
  readonly _mastraSchemaRoute: true;
2772
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2772
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2773
2773
  method: string;
2774
2774
  path: `/${string}`;
2775
2775
  responseType: "json";
2776
- streamFormat?: "sse" | "stream";
2776
+ streamFormat?: 'sse' | 'stream';
2777
2777
  sseFlushOnConnect?: boolean;
2778
2778
  handler(params: import(".").ServerContext): Promise<{
2779
2779
  serviceNames: string[];
@@ -2793,11 +2793,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2793
2793
  }, import("zod/v4/core").$strip>> | undefined;
2794
2794
  } & {
2795
2795
  readonly _mastraSchemaRoute: true;
2796
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2796
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2797
2797
  method: string;
2798
2798
  path: `/${string}`;
2799
2799
  responseType: "json";
2800
- streamFormat?: "sse" | "stream";
2800
+ streamFormat?: 'sse' | 'stream';
2801
2801
  sseFlushOnConnect?: boolean;
2802
2802
  handler(params: import(".").ServerContext): Promise<{
2803
2803
  environments: string[];
@@ -2817,11 +2817,11 @@ export declare const OBSERVABILITY_ROUTES: readonly [import(".").ServerRoute, Om
2817
2817
  }, import("zod/v4/core").$strip>> | undefined;
2818
2818
  } & {
2819
2819
  readonly _mastraSchemaRoute: true;
2820
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2820
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2821
2821
  method: string;
2822
2822
  path: `/${string}`;
2823
2823
  responseType: "json";
2824
- streamFormat?: "sse" | "stream";
2824
+ streamFormat?: 'sse' | 'stream';
2825
2825
  sseFlushOnConnect?: boolean;
2826
2826
  handler(params: Record<string, unknown> & import(".").ServerContext): Promise<{
2827
2827
  tags: string[];