@mastra/server 1.18.0-alpha.3 → 1.18.0-alpha.5

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 (98) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/_types/@internal_core/dist/index.d.ts +1078 -256
  3. package/dist/{chunk-Z36FXNDQ.cjs → chunk-2QCTUEHS.cjs} +71 -67
  4. package/dist/chunk-2QCTUEHS.cjs.map +1 -0
  5. package/dist/{chunk-JL6JURL5.js → chunk-4WCXXTKX.js} +3 -3
  6. package/dist/{chunk-JL6JURL5.js.map → chunk-4WCXXTKX.js.map} +1 -1
  7. package/dist/{chunk-RSIZIEPW.js → chunk-53YFG5AY.js} +58 -2
  8. package/dist/chunk-53YFG5AY.js.map +1 -0
  9. package/dist/{chunk-6MYRF6QR.js → chunk-5YMAXL54.js} +11 -7
  10. package/dist/chunk-5YMAXL54.js.map +1 -0
  11. package/dist/{chunk-WIQDQTKG.cjs → chunk-6FF7Q5D7.cjs} +6 -6
  12. package/dist/{chunk-WIQDQTKG.cjs.map → chunk-6FF7Q5D7.cjs.map} +1 -1
  13. package/dist/{chunk-YKS5HCGB.js → chunk-B32EWUTE.js} +81 -25
  14. package/dist/chunk-B32EWUTE.js.map +1 -0
  15. package/dist/{chunk-ATZ7V3XS.js → chunk-B5FSBQV5.js} +3 -3
  16. package/dist/{chunk-ATZ7V3XS.js.map → chunk-B5FSBQV5.js.map} +1 -1
  17. package/dist/{chunk-6H7FQ4CY.cjs → chunk-CHQVMEZ3.cjs} +7 -4
  18. package/dist/chunk-CHQVMEZ3.cjs.map +1 -0
  19. package/dist/{chunk-4Q2QV27C.js → chunk-CMTOQQZD.js} +7 -4
  20. package/dist/chunk-CMTOQQZD.js.map +1 -0
  21. package/dist/{chunk-ZKXIAID6.js → chunk-FWNRIUEW.js} +3 -3
  22. package/dist/{chunk-ZKXIAID6.js.map → chunk-FWNRIUEW.js.map} +1 -1
  23. package/dist/{chunk-SCHPGBMK.js → chunk-GCHFLKRG.js} +22 -16
  24. package/dist/chunk-GCHFLKRG.js.map +1 -0
  25. package/dist/{chunk-4G5KVXN6.cjs → chunk-HSCQPKAF.cjs} +23 -17
  26. package/dist/chunk-HSCQPKAF.cjs.map +1 -0
  27. package/dist/{chunk-3BRCE7JC.cjs → chunk-KOKKZIYI.cjs} +4 -4
  28. package/dist/{chunk-3BRCE7JC.cjs.map → chunk-KOKKZIYI.cjs.map} +1 -1
  29. package/dist/{chunk-FPEX6KOJ.cjs → chunk-MUNMS4IN.cjs} +81 -24
  30. package/dist/chunk-MUNMS4IN.cjs.map +1 -0
  31. package/dist/{chunk-K7S4XDX6.js → chunk-MYFV2L3T.js} +12 -4
  32. package/dist/{chunk-K7S4XDX6.js.map → chunk-MYFV2L3T.js.map} +1 -1
  33. package/dist/{chunk-PTTPRMT3.cjs → chunk-OSMI5XLT.cjs} +393 -105
  34. package/dist/chunk-OSMI5XLT.cjs.map +1 -0
  35. package/dist/{chunk-2UVJD67W.cjs → chunk-TU7U5XUE.cjs} +58 -2
  36. package/dist/chunk-TU7U5XUE.cjs.map +1 -0
  37. package/dist/{chunk-YEYWCSMW.cjs → chunk-U6YSBD3M.cjs} +6 -6
  38. package/dist/{chunk-YEYWCSMW.cjs.map → chunk-U6YSBD3M.cjs.map} +1 -1
  39. package/dist/{chunk-CL24HN6K.cjs → chunk-XINNAPVH.cjs} +34 -26
  40. package/dist/chunk-XINNAPVH.cjs.map +1 -0
  41. package/dist/{chunk-AHOZXQZ5.js → chunk-YFQ5JIUD.js} +352 -72
  42. package/dist/chunk-YFQ5JIUD.js.map +1 -0
  43. package/dist/docs/SKILL.md +1 -1
  44. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  45. package/dist/server/handlers/a2a.cjs +9 -9
  46. package/dist/server/handlers/a2a.js +1 -1
  47. package/dist/server/handlers/agents.cjs +37 -33
  48. package/dist/server/handlers/agents.d.ts +3 -0
  49. package/dist/server/handlers/agents.d.ts.map +1 -1
  50. package/dist/server/handlers/agents.js +1 -1
  51. package/dist/server/handlers/datasets.cjs +26 -26
  52. package/dist/server/handlers/datasets.d.ts +12 -0
  53. package/dist/server/handlers/datasets.d.ts.map +1 -1
  54. package/dist/server/handlers/datasets.js +1 -1
  55. package/dist/server/handlers/observability-new-endpoints.cjs +51 -19
  56. package/dist/server/handlers/observability-new-endpoints.d.ts +2446 -534
  57. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  58. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  59. package/dist/server/handlers/observability-shared.cjs +5 -5
  60. package/dist/server/handlers/observability-shared.d.ts +56 -0
  61. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  62. package/dist/server/handlers/observability-shared.js +1 -1
  63. package/dist/server/handlers/observability.cjs +56 -24
  64. package/dist/server/handlers/observability.d.ts +4 -4
  65. package/dist/server/handlers/observability.js +2 -2
  66. package/dist/server/handlers/scores.cjs +7 -7
  67. package/dist/server/handlers/scores.js +1 -1
  68. package/dist/server/handlers/tools.cjs +6 -6
  69. package/dist/server/handlers/tools.d.ts.map +1 -1
  70. package/dist/server/handlers/tools.js +1 -1
  71. package/dist/server/handlers/voice.cjs +8 -8
  72. package/dist/server/handlers/voice.js +1 -1
  73. package/dist/server/handlers.cjs +12 -12
  74. package/dist/server/handlers.js +6 -6
  75. package/dist/server/schemas/datasets.d.ts +4 -0
  76. package/dist/server/schemas/datasets.d.ts.map +1 -1
  77. package/dist/server/schemas/index.cjs +42 -42
  78. package/dist/server/schemas/index.js +1 -1
  79. package/dist/server/server-adapter/index.cjs +97 -97
  80. package/dist/server/server-adapter/index.js +8 -8
  81. package/dist/server/server-adapter/routes/datasets.d.ts +12 -0
  82. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  83. package/dist/server/server-adapter/routes/observability.d.ts +307 -121
  84. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  85. package/package.json +5 -5
  86. package/dist/chunk-2UVJD67W.cjs.map +0 -1
  87. package/dist/chunk-4G5KVXN6.cjs.map +0 -1
  88. package/dist/chunk-4Q2QV27C.js.map +0 -1
  89. package/dist/chunk-6H7FQ4CY.cjs.map +0 -1
  90. package/dist/chunk-6MYRF6QR.js.map +0 -1
  91. package/dist/chunk-AHOZXQZ5.js.map +0 -1
  92. package/dist/chunk-CL24HN6K.cjs.map +0 -1
  93. package/dist/chunk-FPEX6KOJ.cjs.map +0 -1
  94. package/dist/chunk-PTTPRMT3.cjs.map +0 -1
  95. package/dist/chunk-RSIZIEPW.js.map +0 -1
  96. package/dist/chunk-SCHPGBMK.js.map +0 -1
  97. package/dist/chunk-YKS5HCGB.js.map +0 -1
  98. package/dist/chunk-Z36FXNDQ.cjs.map +0 -1
@@ -10,8 +10,10 @@ export declare const LIST_LOGS: import("../server-adapter").ServerRoute<Record<s
10
10
  timestamp: Date;
11
11
  level: "debug" | "info" | "warn" | "error" | "fatal";
12
12
  message: string;
13
- tags?: string[] | null | undefined;
13
+ source?: string | null | undefined;
14
14
  metadata?: Record<string, unknown> | null | undefined;
15
+ executionSource?: string | null | undefined;
16
+ tags?: string[] | null | undefined;
15
17
  entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
16
18
  entityId?: string | null | undefined;
17
19
  entityName?: string | null | undefined;
@@ -29,7 +31,6 @@ export declare const LIST_LOGS: import("../server-adapter").ServerRoute<Record<s
29
31
  threadId?: string | null | undefined;
30
32
  requestId?: string | null | undefined;
31
33
  environment?: string | null | undefined;
32
- source?: string | null | undefined;
33
34
  serviceName?: string | null | undefined;
34
35
  scope?: Record<string, unknown> | null | undefined;
35
36
  experimentId?: string | null | undefined;
@@ -47,8 +48,10 @@ export declare const LIST_LOGS: import("../server-adapter").ServerRoute<Record<s
47
48
  hasMore: z.ZodBoolean;
48
49
  }, z.core.$strip>;
49
50
  logs: z.ZodArray<z.ZodObject<{
50
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
51
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
52
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
53
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
52
55
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
53
56
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
57
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -66,7 +69,6 @@ export declare const LIST_LOGS: import("../server-adapter").ServerRoute<Record<s
66
69
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
70
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
71
  environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
72
  serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
73
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
72
74
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -96,13 +98,35 @@ export declare const LIST_SCORES: import("../server-adapter").ServerRoute<Record
96
98
  traceId: string;
97
99
  scorerId: string;
98
100
  score: number;
101
+ scoreTraceId?: string | null | undefined;
102
+ metadata?: Record<string, unknown> | null | undefined;
103
+ executionSource?: string | null | undefined;
104
+ tags?: string[] | null | undefined;
105
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
106
+ entityId?: string | null | undefined;
107
+ entityName?: string | null | undefined;
108
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
109
+ parentEntityId?: string | null | undefined;
110
+ parentEntityName?: string | null | undefined;
111
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
112
+ rootEntityId?: string | null | undefined;
113
+ rootEntityName?: string | null | undefined;
114
+ userId?: string | null | undefined;
115
+ organizationId?: string | null | undefined;
116
+ resourceId?: string | null | undefined;
117
+ runId?: string | null | undefined;
118
+ sessionId?: string | null | undefined;
119
+ threadId?: string | null | undefined;
120
+ requestId?: string | null | undefined;
121
+ environment?: string | null | undefined;
122
+ serviceName?: string | null | undefined;
123
+ scope?: Record<string, unknown> | null | undefined;
124
+ experimentId?: string | null | undefined;
99
125
  spanId?: string | null | undefined;
100
126
  scorerVersion?: string | null | undefined;
127
+ scoreSource?: string | null | undefined;
101
128
  source?: string | null | undefined;
102
129
  reason?: string | null | undefined;
103
- experimentId?: string | null | undefined;
104
- scoreTraceId?: string | null | undefined;
105
- metadata?: Record<string, unknown> | null | undefined;
106
130
  }[];
107
131
  }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
108
132
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -114,17 +138,39 @@ export declare const LIST_SCORES: import("../server-adapter").ServerRoute<Record
114
138
  hasMore: z.ZodBoolean;
115
139
  }, z.core.$strip>;
116
140
  scores: z.ZodArray<z.ZodObject<{
141
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
143
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
145
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
146
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
149
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
152
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
164
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
165
  timestamp: z.ZodDate;
118
166
  traceId: z.ZodString;
119
167
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
168
  scorerId: z.ZodString;
121
169
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
171
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
172
  score: z.ZodNumber;
124
173
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
128
174
  }, z.core.$strip>>;
129
175
  }, z.core.$strip>>, string, `/${string}`>;
130
176
  export declare const CREATE_SCORE: import("../server-adapter").ServerRoute<{
@@ -133,10 +179,32 @@ export declare const CREATE_SCORE: import("../server-adapter").ServerRoute<{
133
179
  scorerId: string;
134
180
  score: number;
135
181
  spanId?: string | null | undefined;
136
- metadata?: Record<string, unknown> | null | undefined;
137
182
  source?: string | null | undefined;
183
+ metadata?: Record<string, unknown> | null | undefined;
184
+ executionSource?: string | null | undefined;
185
+ tags?: string[] | null | undefined;
186
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
187
+ entityId?: string | null | undefined;
188
+ entityName?: string | null | undefined;
189
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
190
+ parentEntityId?: string | null | undefined;
191
+ parentEntityName?: string | null | undefined;
192
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
193
+ rootEntityId?: string | null | undefined;
194
+ rootEntityName?: string | null | undefined;
195
+ userId?: string | null | undefined;
196
+ organizationId?: string | null | undefined;
197
+ resourceId?: string | null | undefined;
198
+ runId?: string | null | undefined;
199
+ sessionId?: string | null | undefined;
200
+ threadId?: string | null | undefined;
201
+ requestId?: string | null | undefined;
202
+ environment?: string | null | undefined;
203
+ serviceName?: string | null | undefined;
204
+ scope?: Record<string, unknown> | null | undefined;
138
205
  experimentId?: string | null | undefined;
139
206
  scorerVersion?: string | null | undefined;
207
+ scoreSource?: string | null | undefined;
140
208
  reason?: string | null | undefined;
141
209
  scoreTraceId?: string | null | undefined;
142
210
  };
@@ -146,112 +214,48 @@ export declare const CREATE_SCORE: import("../server-adapter").ServerRoute<{
146
214
  score: z.ZodObject<{
147
215
  traceId: z.ZodString;
148
216
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
150
217
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
219
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
221
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
222
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
225
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
228
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
151
240
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
241
  scorerId: z.ZodString;
153
242
  score: z.ZodNumber;
154
243
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
245
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
246
  scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
247
  }, z.core.$strip>;
158
248
  }, z.core.$strip>, z.ZodObject<{
159
249
  success: z.ZodBoolean;
160
250
  }, z.core.$strip>>, string, `/${string}`>;
161
- export declare const LIST_FEEDBACK: import("../server-adapter").ServerRoute<Record<string, unknown>, {
162
- pagination: {
163
- total: number;
164
- page: number;
165
- perPage: number | false;
166
- hasMore: boolean;
167
- };
168
- feedback: {
169
- timestamp: Date;
170
- traceId: string;
171
- source: string;
172
- feedbackType: string;
173
- value: string | number;
174
- spanId?: string | null | undefined;
175
- comment?: string | null | undefined;
176
- experimentId?: string | null | undefined;
177
- userId?: string | null | undefined;
178
- sourceId?: string | null | undefined;
179
- metadata?: Record<string, unknown> | null | undefined;
180
- }[];
181
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
182
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
183
- }>, z.core.$strip>, undefined, z.ZodObject<{
184
- pagination: z.ZodObject<{
185
- total: z.ZodNumber;
186
- page: z.ZodNumber;
187
- perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
188
- hasMore: z.ZodBoolean;
189
- }, z.core.$strip>;
190
- feedback: z.ZodArray<z.ZodObject<{
191
- timestamp: z.ZodDate;
192
- traceId: z.ZodString;
193
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- source: z.ZodString;
195
- feedbackType: z.ZodString;
196
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
197
- comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
202
- }, z.core.$strip>>;
203
- }, z.core.$strip>>, string, `/${string}`>;
204
- export declare const CREATE_FEEDBACK: import("../server-adapter").ServerRoute<{
205
- feedback: {
206
- value: string | number;
207
- traceId: string;
208
- source: string;
209
- feedbackType: string;
210
- spanId?: string | null | undefined;
211
- metadata?: Record<string, unknown> | null | undefined;
212
- userId?: string | null | undefined;
213
- experimentId?: string | null | undefined;
214
- comment?: string | null | undefined;
215
- sourceId?: string | null | undefined;
216
- };
217
- }, {
218
- success: boolean;
219
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
220
- feedback: z.ZodObject<{
221
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
222
- traceId: z.ZodString;
223
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
225
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
- source: z.ZodString;
227
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- feedbackType: z.ZodString;
229
- comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
- }, z.core.$strip>;
232
- }, z.core.$strip>, z.ZodObject<{
233
- success: z.ZodBoolean;
234
- }, z.core.$strip>>, string, `/${string}`>;
235
- export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRoute<{
236
- name: string[];
251
+ export declare const GET_SCORE_AGGREGATE: import("../server-adapter").ServerRoute<{
252
+ scorerId: string;
237
253
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
254
+ scoreSource?: string | undefined;
238
255
  filters?: {
239
- name?: string[] | undefined;
240
- provider?: string | undefined;
241
- model?: string | undefined;
242
- costUnit?: string | undefined;
243
- labels?: Record<string, string> | undefined;
244
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
245
- parentEntityName?: string | undefined;
246
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
247
- rootEntityName?: string | undefined;
248
- resourceId?: string | undefined;
249
- runId?: string | undefined;
250
- sessionId?: string | undefined;
251
- threadId?: string | undefined;
252
- requestId?: string | undefined;
256
+ scorerId?: string | string[] | undefined;
257
+ scoreSource?: string | undefined;
253
258
  source?: string | undefined;
254
- tags?: string[] | undefined;
255
259
  timestamp?: {
256
260
  start?: Date | undefined;
257
261
  end?: Date | undefined;
@@ -267,18 +271,26 @@ export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRou
267
271
  experimentId?: string | undefined;
268
272
  serviceName?: string | undefined;
269
273
  environment?: string | undefined;
274
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
275
+ parentEntityName?: string | undefined;
276
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
277
+ rootEntityName?: string | undefined;
278
+ resourceId?: string | undefined;
279
+ runId?: string | undefined;
280
+ sessionId?: string | undefined;
281
+ threadId?: string | undefined;
282
+ requestId?: string | undefined;
283
+ executionSource?: string | undefined;
284
+ tags?: string[] | undefined;
270
285
  } | undefined;
271
286
  comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
272
287
  }, {
273
288
  value: number | null;
274
- estimatedCost?: number | null | undefined;
275
- costUnit?: string | null | undefined;
276
289
  previousValue?: number | null | undefined;
277
- previousEstimatedCost?: number | null | undefined;
278
290
  changePercent?: number | null | undefined;
279
- costChangePercent?: number | null | undefined;
280
291
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
281
- name: z.ZodArray<z.ZodString>;
292
+ scorerId: z.ZodString;
293
+ scoreSource: z.ZodOptional<z.ZodString>;
282
294
  aggregation: z.ZodEnum<{
283
295
  sum: "sum";
284
296
  avg: "avg";
@@ -288,22 +300,9 @@ export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRou
288
300
  last: "last";
289
301
  }>;
290
302
  filters: z.ZodOptional<z.ZodObject<{
291
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
292
- provider: z.ZodOptional<z.ZodString>;
293
- model: z.ZodOptional<z.ZodString>;
294
- costUnit: z.ZodOptional<z.ZodString>;
295
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
297
- parentEntityName: z.ZodOptional<z.ZodString>;
298
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
299
- rootEntityName: z.ZodOptional<z.ZodString>;
300
- resourceId: z.ZodOptional<z.ZodString>;
301
- runId: z.ZodOptional<z.ZodString>;
302
- sessionId: z.ZodOptional<z.ZodString>;
303
- threadId: z.ZodOptional<z.ZodString>;
304
- requestId: z.ZodOptional<z.ZodString>;
303
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
304
+ scoreSource: z.ZodOptional<z.ZodString>;
305
305
  source: z.ZodOptional<z.ZodString>;
306
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
306
  timestamp: z.ZodOptional<z.ZodObject<{
308
307
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
309
308
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -319,6 +318,17 @@ export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRou
319
318
  experimentId: z.ZodOptional<z.ZodString>;
320
319
  serviceName: z.ZodOptional<z.ZodString>;
321
320
  environment: z.ZodOptional<z.ZodString>;
321
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
322
+ parentEntityName: z.ZodOptional<z.ZodString>;
323
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
324
+ rootEntityName: z.ZodOptional<z.ZodString>;
325
+ resourceId: z.ZodOptional<z.ZodString>;
326
+ runId: z.ZodOptional<z.ZodString>;
327
+ sessionId: z.ZodOptional<z.ZodString>;
328
+ threadId: z.ZodOptional<z.ZodString>;
329
+ requestId: z.ZodOptional<z.ZodString>;
330
+ executionSource: z.ZodOptional<z.ZodString>;
331
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
322
332
  }, z.core.$strip>>;
323
333
  comparePeriod: z.ZodOptional<z.ZodEnum<{
324
334
  previous_period: "previous_period";
@@ -327,34 +337,18 @@ export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRou
327
337
  }>>;
328
338
  }, z.core.$strip>, z.ZodObject<{
329
339
  value: z.ZodNullable<z.ZodNumber>;
330
- estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
- costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
340
  previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
333
- previousEstimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
334
341
  changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
335
- costChangePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
342
  }, z.core.$strip>>, string, `/${string}`>;
337
- export declare const GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRoute<{
338
- name: string[];
343
+ export declare const GET_SCORE_BREAKDOWN: import("../server-adapter").ServerRoute<{
344
+ scorerId: string;
339
345
  groupBy: string[];
340
346
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
347
+ scoreSource?: string | undefined;
341
348
  filters?: {
342
- name?: string[] | undefined;
343
- provider?: string | undefined;
344
- model?: string | undefined;
345
- costUnit?: string | undefined;
346
- labels?: Record<string, string> | undefined;
347
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
348
- parentEntityName?: string | undefined;
349
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
350
- rootEntityName?: string | undefined;
351
- resourceId?: string | undefined;
352
- runId?: string | undefined;
353
- sessionId?: string | undefined;
354
- threadId?: string | undefined;
355
- requestId?: string | undefined;
349
+ scorerId?: string | string[] | undefined;
350
+ scoreSource?: string | undefined;
356
351
  source?: string | undefined;
357
- tags?: string[] | undefined;
358
352
  timestamp?: {
359
353
  start?: Date | undefined;
360
354
  end?: Date | undefined;
@@ -370,16 +364,26 @@ export declare const GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRou
370
364
  experimentId?: string | undefined;
371
365
  serviceName?: string | undefined;
372
366
  environment?: string | undefined;
373
- } | undefined;
374
- }, {
375
- groups: {
376
- dimensions: Record<string, string | null>;
367
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
368
+ parentEntityName?: string | undefined;
369
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
370
+ rootEntityName?: string | undefined;
371
+ resourceId?: string | undefined;
372
+ runId?: string | undefined;
373
+ sessionId?: string | undefined;
374
+ threadId?: string | undefined;
375
+ requestId?: string | undefined;
376
+ executionSource?: string | undefined;
377
+ tags?: string[] | undefined;
378
+ } | undefined;
379
+ }, {
380
+ groups: {
381
+ dimensions: Record<string, string | null>;
377
382
  value: number;
378
- estimatedCost?: number | null | undefined;
379
- costUnit?: string | null | undefined;
380
383
  }[];
381
384
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
382
- name: z.ZodArray<z.ZodString>;
385
+ scorerId: z.ZodString;
386
+ scoreSource: z.ZodOptional<z.ZodString>;
383
387
  groupBy: z.ZodArray<z.ZodString>;
384
388
  aggregation: z.ZodEnum<{
385
389
  sum: "sum";
@@ -390,22 +394,9 @@ export declare const GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRou
390
394
  last: "last";
391
395
  }>;
392
396
  filters: z.ZodOptional<z.ZodObject<{
393
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
394
- provider: z.ZodOptional<z.ZodString>;
395
- model: z.ZodOptional<z.ZodString>;
396
- costUnit: z.ZodOptional<z.ZodString>;
397
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
398
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
399
- parentEntityName: z.ZodOptional<z.ZodString>;
400
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
401
- rootEntityName: z.ZodOptional<z.ZodString>;
402
- resourceId: z.ZodOptional<z.ZodString>;
403
- runId: z.ZodOptional<z.ZodString>;
404
- sessionId: z.ZodOptional<z.ZodString>;
405
- threadId: z.ZodOptional<z.ZodString>;
406
- requestId: z.ZodOptional<z.ZodString>;
397
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
398
+ scoreSource: z.ZodOptional<z.ZodString>;
407
399
  source: z.ZodOptional<z.ZodString>;
408
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
400
  timestamp: z.ZodOptional<z.ZodObject<{
410
401
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
411
402
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -421,36 +412,33 @@ export declare const GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRou
421
412
  experimentId: z.ZodOptional<z.ZodString>;
422
413
  serviceName: z.ZodOptional<z.ZodString>;
423
414
  environment: z.ZodOptional<z.ZodString>;
415
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
416
+ parentEntityName: z.ZodOptional<z.ZodString>;
417
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
418
+ rootEntityName: z.ZodOptional<z.ZodString>;
419
+ resourceId: z.ZodOptional<z.ZodString>;
420
+ runId: z.ZodOptional<z.ZodString>;
421
+ sessionId: z.ZodOptional<z.ZodString>;
422
+ threadId: z.ZodOptional<z.ZodString>;
423
+ requestId: z.ZodOptional<z.ZodString>;
424
+ executionSource: z.ZodOptional<z.ZodString>;
425
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
426
  }, z.core.$strip>>;
425
427
  }, z.core.$strip>, z.ZodObject<{
426
428
  groups: z.ZodArray<z.ZodObject<{
427
429
  dimensions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
428
430
  value: z.ZodNumber;
429
- estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
430
- costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
431
  }, z.core.$strip>>;
432
432
  }, z.core.$strip>>, string, `/${string}`>;
433
- export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerRoute<{
434
- name: string[];
433
+ export declare const GET_SCORE_TIME_SERIES: import("../server-adapter").ServerRoute<{
434
+ scorerId: string;
435
435
  interval: "5m" | "1h" | "1m" | "15m" | "1d";
436
436
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
437
+ scoreSource?: string | undefined;
437
438
  filters?: {
438
- name?: string[] | undefined;
439
- provider?: string | undefined;
440
- model?: string | undefined;
441
- costUnit?: string | undefined;
442
- labels?: Record<string, string> | undefined;
443
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
444
- parentEntityName?: string | undefined;
445
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
446
- rootEntityName?: string | undefined;
447
- resourceId?: string | undefined;
448
- runId?: string | undefined;
449
- sessionId?: string | undefined;
450
- threadId?: string | undefined;
451
- requestId?: string | undefined;
439
+ scorerId?: string | string[] | undefined;
440
+ scoreSource?: string | undefined;
452
441
  source?: string | undefined;
453
- tags?: string[] | undefined;
454
442
  timestamp?: {
455
443
  start?: Date | undefined;
456
444
  end?: Date | undefined;
@@ -466,6 +454,17 @@ export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerR
466
454
  experimentId?: string | undefined;
467
455
  serviceName?: string | undefined;
468
456
  environment?: string | undefined;
457
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
458
+ parentEntityName?: string | undefined;
459
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
460
+ rootEntityName?: string | undefined;
461
+ resourceId?: string | undefined;
462
+ runId?: string | undefined;
463
+ sessionId?: string | undefined;
464
+ threadId?: string | undefined;
465
+ requestId?: string | undefined;
466
+ executionSource?: string | undefined;
467
+ tags?: string[] | undefined;
469
468
  } | undefined;
470
469
  groupBy?: string[] | undefined;
471
470
  }, {
@@ -474,12 +473,11 @@ export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerR
474
473
  points: {
475
474
  timestamp: Date;
476
475
  value: number;
477
- estimatedCost?: number | null | undefined;
478
476
  }[];
479
- costUnit?: string | null | undefined;
480
477
  }[];
481
478
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
482
- name: z.ZodArray<z.ZodString>;
479
+ scorerId: z.ZodString;
480
+ scoreSource: z.ZodOptional<z.ZodString>;
483
481
  interval: z.ZodEnum<{
484
482
  "1m": "1m";
485
483
  "5m": "5m";
@@ -496,22 +494,9 @@ export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerR
496
494
  last: "last";
497
495
  }>;
498
496
  filters: z.ZodOptional<z.ZodObject<{
499
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
500
- provider: z.ZodOptional<z.ZodString>;
501
- model: z.ZodOptional<z.ZodString>;
502
- costUnit: z.ZodOptional<z.ZodString>;
503
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
504
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
505
- parentEntityName: z.ZodOptional<z.ZodString>;
506
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
507
- rootEntityName: z.ZodOptional<z.ZodString>;
508
- resourceId: z.ZodOptional<z.ZodString>;
509
- runId: z.ZodOptional<z.ZodString>;
510
- sessionId: z.ZodOptional<z.ZodString>;
511
- threadId: z.ZodOptional<z.ZodString>;
512
- requestId: z.ZodOptional<z.ZodString>;
497
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
498
+ scoreSource: z.ZodOptional<z.ZodString>;
513
499
  source: z.ZodOptional<z.ZodString>;
514
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
515
500
  timestamp: z.ZodOptional<z.ZodObject<{
516
501
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
517
502
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -527,40 +512,37 @@ export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerR
527
512
  experimentId: z.ZodOptional<z.ZodString>;
528
513
  serviceName: z.ZodOptional<z.ZodString>;
529
514
  environment: z.ZodOptional<z.ZodString>;
515
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
516
+ parentEntityName: z.ZodOptional<z.ZodString>;
517
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
518
+ rootEntityName: z.ZodOptional<z.ZodString>;
519
+ resourceId: z.ZodOptional<z.ZodString>;
520
+ runId: z.ZodOptional<z.ZodString>;
521
+ sessionId: z.ZodOptional<z.ZodString>;
522
+ threadId: z.ZodOptional<z.ZodString>;
523
+ requestId: z.ZodOptional<z.ZodString>;
524
+ executionSource: z.ZodOptional<z.ZodString>;
525
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
530
526
  }, z.core.$strip>>;
531
527
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
532
528
  }, z.core.$strip>, z.ZodObject<{
533
529
  series: z.ZodArray<z.ZodObject<{
534
530
  name: z.ZodString;
535
- costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
536
531
  points: z.ZodArray<z.ZodObject<{
537
532
  timestamp: z.ZodDate;
538
533
  value: z.ZodNumber;
539
- estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
540
534
  }, z.core.$strip>>;
541
535
  }, z.core.$strip>>;
542
536
  }, z.core.$strip>>, string, `/${string}`>;
543
- export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerRoute<{
544
- name: string;
537
+ export declare const GET_SCORE_PERCENTILES: import("../server-adapter").ServerRoute<{
538
+ scorerId: string;
545
539
  percentiles: number[];
546
540
  interval: "5m" | "1h" | "1m" | "15m" | "1d";
541
+ scoreSource?: string | undefined;
547
542
  filters?: {
548
- name?: string[] | undefined;
549
- provider?: string | undefined;
550
- model?: string | undefined;
551
- costUnit?: string | undefined;
552
- labels?: Record<string, string> | undefined;
553
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
554
- parentEntityName?: string | undefined;
555
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
556
- rootEntityName?: string | undefined;
557
- resourceId?: string | undefined;
558
- runId?: string | undefined;
559
- sessionId?: string | undefined;
560
- threadId?: string | undefined;
561
- requestId?: string | undefined;
543
+ scorerId?: string | string[] | undefined;
544
+ scoreSource?: string | undefined;
562
545
  source?: string | undefined;
563
- tags?: string[] | undefined;
564
546
  timestamp?: {
565
547
  start?: Date | undefined;
566
548
  end?: Date | undefined;
@@ -576,6 +558,17 @@ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerR
576
558
  experimentId?: string | undefined;
577
559
  serviceName?: string | undefined;
578
560
  environment?: string | undefined;
561
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
562
+ parentEntityName?: string | undefined;
563
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
564
+ rootEntityName?: string | undefined;
565
+ resourceId?: string | undefined;
566
+ runId?: string | undefined;
567
+ sessionId?: string | undefined;
568
+ threadId?: string | undefined;
569
+ requestId?: string | undefined;
570
+ executionSource?: string | undefined;
571
+ tags?: string[] | undefined;
579
572
  } | undefined;
580
573
  }, {
581
574
  series: {
@@ -586,7 +579,8 @@ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerR
586
579
  }[];
587
580
  }[];
588
581
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
589
- name: z.ZodString;
582
+ scorerId: z.ZodString;
583
+ scoreSource: z.ZodOptional<z.ZodString>;
590
584
  percentiles: z.ZodArray<z.ZodNumber>;
591
585
  interval: z.ZodEnum<{
592
586
  "1m": "1m";
@@ -596,22 +590,9 @@ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerR
596
590
  "1d": "1d";
597
591
  }>;
598
592
  filters: z.ZodOptional<z.ZodObject<{
599
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
600
- provider: z.ZodOptional<z.ZodString>;
601
- model: z.ZodOptional<z.ZodString>;
602
- costUnit: z.ZodOptional<z.ZodString>;
603
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
604
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
605
- parentEntityName: z.ZodOptional<z.ZodString>;
606
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
607
- rootEntityName: z.ZodOptional<z.ZodString>;
608
- resourceId: z.ZodOptional<z.ZodString>;
609
- runId: z.ZodOptional<z.ZodString>;
610
- sessionId: z.ZodOptional<z.ZodString>;
611
- threadId: z.ZodOptional<z.ZodString>;
612
- requestId: z.ZodOptional<z.ZodString>;
593
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
594
+ scoreSource: z.ZodOptional<z.ZodString>;
613
595
  source: z.ZodOptional<z.ZodString>;
614
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
615
596
  timestamp: z.ZodOptional<z.ZodObject<{
616
597
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
617
598
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -627,6 +608,17 @@ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerR
627
608
  experimentId: z.ZodOptional<z.ZodString>;
628
609
  serviceName: z.ZodOptional<z.ZodString>;
629
610
  environment: z.ZodOptional<z.ZodString>;
611
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
612
+ parentEntityName: z.ZodOptional<z.ZodString>;
613
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
614
+ rootEntityName: z.ZodOptional<z.ZodString>;
615
+ resourceId: z.ZodOptional<z.ZodString>;
616
+ runId: z.ZodOptional<z.ZodString>;
617
+ sessionId: z.ZodOptional<z.ZodString>;
618
+ threadId: z.ZodOptional<z.ZodString>;
619
+ requestId: z.ZodOptional<z.ZodString>;
620
+ executionSource: z.ZodOptional<z.ZodString>;
621
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
630
622
  }, z.core.$strip>>;
631
623
  }, z.core.$strip>, z.ZodObject<{
632
624
  series: z.ZodArray<z.ZodObject<{
@@ -637,70 +629,1667 @@ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerR
637
629
  }, z.core.$strip>>;
638
630
  }, z.core.$strip>>;
639
631
  }, z.core.$strip>>, string, `/${string}`>;
640
- export declare const GET_METRIC_NAMES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
641
- names: string[];
642
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
643
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
644
- }>, z.core.$strip>, undefined, z.ZodObject<{
645
- names: z.ZodArray<z.ZodString>;
646
- }, z.core.$strip>>, string, `/${string}`>;
647
- export declare const GET_METRIC_LABEL_KEYS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
648
- keys: string[];
649
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
650
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
651
- }>, z.core.$strip>, undefined, z.ZodObject<{
652
- keys: z.ZodArray<z.ZodString>;
653
- }, z.core.$strip>>, string, `/${string}`>;
654
- export declare const GET_METRIC_LABEL_VALUES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
655
- values: string[];
632
+ export declare const LIST_FEEDBACK: import("../server-adapter").ServerRoute<Record<string, unknown>, {
633
+ pagination: {
634
+ total: number;
635
+ page: number;
636
+ perPage: number | false;
637
+ hasMore: boolean;
638
+ };
639
+ feedback: {
640
+ timestamp: Date;
641
+ traceId: string;
642
+ feedbackType: string;
643
+ value: string | number;
644
+ sourceId?: string | null | undefined;
645
+ metadata?: Record<string, unknown> | null | undefined;
646
+ executionSource?: string | null | undefined;
647
+ tags?: string[] | null | undefined;
648
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
649
+ entityId?: string | null | undefined;
650
+ entityName?: string | null | undefined;
651
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
652
+ parentEntityId?: string | null | undefined;
653
+ parentEntityName?: string | null | undefined;
654
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
655
+ rootEntityId?: string | null | undefined;
656
+ rootEntityName?: string | null | undefined;
657
+ userId?: string | null | undefined;
658
+ organizationId?: string | null | undefined;
659
+ resourceId?: string | null | undefined;
660
+ runId?: string | null | undefined;
661
+ sessionId?: string | null | undefined;
662
+ threadId?: string | null | undefined;
663
+ requestId?: string | null | undefined;
664
+ environment?: string | null | undefined;
665
+ serviceName?: string | null | undefined;
666
+ scope?: Record<string, unknown> | null | undefined;
667
+ experimentId?: string | null | undefined;
668
+ spanId?: string | null | undefined;
669
+ feedbackSource?: string | null | undefined;
670
+ source?: string | null | undefined;
671
+ comment?: string | null | undefined;
672
+ feedbackUserId?: string | null | undefined;
673
+ }[];
656
674
  }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
657
675
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
658
676
  }>, z.core.$strip>, undefined, z.ZodObject<{
659
- values: z.ZodArray<z.ZodString>;
660
- }, z.core.$strip>>, string, `/${string}`>;
661
- export declare const GET_ENTITY_TYPES: import("../server-adapter").ServerRoute<{}, {
662
- entityTypes: import("../../_types/@internal_core/dist/index.js").EntityType[];
663
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
664
- entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
677
+ pagination: z.ZodObject<{
678
+ total: z.ZodNumber;
679
+ page: z.ZodNumber;
680
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
681
+ hasMore: z.ZodBoolean;
682
+ }, z.core.$strip>;
683
+ feedback: z.ZodArray<z.ZodObject<{
684
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
686
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
688
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
689
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
692
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
695
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
707
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
708
+ timestamp: z.ZodDate;
709
+ traceId: z.ZodString;
710
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
713
+ feedbackType: z.ZodString;
714
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
715
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
+ }, z.core.$strip>>;
665
718
  }, z.core.$strip>>, string, `/${string}`>;
666
- export declare const GET_ENTITY_NAMES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
667
- names: string[];
668
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
669
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
670
- }>, z.core.$strip>, undefined, z.ZodObject<{
671
- names: z.ZodArray<z.ZodString>;
672
- }, z.core.$strip>>, string, `/${string}`>;
673
- export declare const GET_SERVICE_NAMES: import("../server-adapter").ServerRoute<{}, {
674
- serviceNames: string[];
675
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
676
- serviceNames: z.ZodArray<z.ZodString>;
719
+ export declare const CREATE_FEEDBACK: import("../server-adapter").ServerRoute<{
720
+ feedback: {
721
+ value: string | number;
722
+ traceId: string;
723
+ feedbackType: string;
724
+ spanId?: string | null | undefined;
725
+ source?: string | null | undefined;
726
+ metadata?: Record<string, unknown> | null | undefined;
727
+ executionSource?: string | null | undefined;
728
+ tags?: string[] | null | undefined;
729
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
730
+ entityId?: string | null | undefined;
731
+ entityName?: string | null | undefined;
732
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
733
+ parentEntityId?: string | null | undefined;
734
+ parentEntityName?: string | null | undefined;
735
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
736
+ rootEntityId?: string | null | undefined;
737
+ rootEntityName?: string | null | undefined;
738
+ userId?: string | null | undefined;
739
+ organizationId?: string | null | undefined;
740
+ resourceId?: string | null | undefined;
741
+ runId?: string | null | undefined;
742
+ sessionId?: string | null | undefined;
743
+ threadId?: string | null | undefined;
744
+ requestId?: string | null | undefined;
745
+ environment?: string | null | undefined;
746
+ serviceName?: string | null | undefined;
747
+ scope?: Record<string, unknown> | null | undefined;
748
+ experimentId?: string | null | undefined;
749
+ feedbackUserId?: string | null | undefined;
750
+ feedbackSource?: string | null | undefined;
751
+ comment?: string | null | undefined;
752
+ sourceId?: string | null | undefined;
753
+ };
754
+ }, {
755
+ success: boolean;
756
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
757
+ feedback: z.ZodObject<{
758
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
759
+ traceId: z.ZodString;
760
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
761
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
763
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
765
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
766
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
768
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
769
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
772
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
776
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
781
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
784
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ feedbackType: z.ZodString;
787
+ feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
+ }, z.core.$strip>;
791
+ }, z.core.$strip>, z.ZodObject<{
792
+ success: z.ZodBoolean;
677
793
  }, z.core.$strip>>, string, `/${string}`>;
678
- export declare const GET_ENVIRONMENTS: import("../server-adapter").ServerRoute<{}, {
679
- environments: string[];
680
- }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
681
- environments: z.ZodArray<z.ZodString>;
794
+ export declare const GET_FEEDBACK_AGGREGATE: import("../server-adapter").ServerRoute<{
795
+ feedbackType: string;
796
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
797
+ feedbackSource?: string | undefined;
798
+ filters?: {
799
+ feedbackType?: string | string[] | undefined;
800
+ feedbackSource?: string | undefined;
801
+ source?: string | undefined;
802
+ feedbackUserId?: string | undefined;
803
+ timestamp?: {
804
+ start?: Date | undefined;
805
+ end?: Date | undefined;
806
+ startExclusive?: boolean | undefined;
807
+ endExclusive?: boolean | undefined;
808
+ } | undefined;
809
+ traceId?: string | undefined;
810
+ spanId?: string | undefined;
811
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
812
+ entityName?: string | undefined;
813
+ userId?: string | undefined;
814
+ organizationId?: string | undefined;
815
+ experimentId?: string | undefined;
816
+ serviceName?: string | undefined;
817
+ environment?: string | undefined;
818
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
819
+ parentEntityName?: string | undefined;
820
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
821
+ rootEntityName?: string | undefined;
822
+ resourceId?: string | undefined;
823
+ runId?: string | undefined;
824
+ sessionId?: string | undefined;
825
+ threadId?: string | undefined;
826
+ requestId?: string | undefined;
827
+ executionSource?: string | undefined;
828
+ tags?: string[] | undefined;
829
+ } | undefined;
830
+ comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
831
+ }, {
832
+ value: number | null;
833
+ previousValue?: number | null | undefined;
834
+ changePercent?: number | null | undefined;
835
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
836
+ feedbackType: z.ZodString;
837
+ feedbackSource: z.ZodOptional<z.ZodString>;
838
+ aggregation: z.ZodEnum<{
839
+ sum: "sum";
840
+ avg: "avg";
841
+ min: "min";
842
+ max: "max";
843
+ count: "count";
844
+ last: "last";
845
+ }>;
846
+ filters: z.ZodOptional<z.ZodObject<{
847
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
848
+ feedbackSource: z.ZodOptional<z.ZodString>;
849
+ source: z.ZodOptional<z.ZodString>;
850
+ feedbackUserId: z.ZodOptional<z.ZodString>;
851
+ timestamp: z.ZodOptional<z.ZodObject<{
852
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
853
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
854
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
855
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
856
+ }, z.core.$strip>>;
857
+ traceId: z.ZodOptional<z.ZodString>;
858
+ spanId: z.ZodOptional<z.ZodString>;
859
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
860
+ entityName: z.ZodOptional<z.ZodString>;
861
+ userId: z.ZodOptional<z.ZodString>;
862
+ organizationId: z.ZodOptional<z.ZodString>;
863
+ experimentId: z.ZodOptional<z.ZodString>;
864
+ serviceName: z.ZodOptional<z.ZodString>;
865
+ environment: z.ZodOptional<z.ZodString>;
866
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
867
+ parentEntityName: z.ZodOptional<z.ZodString>;
868
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
869
+ rootEntityName: z.ZodOptional<z.ZodString>;
870
+ resourceId: z.ZodOptional<z.ZodString>;
871
+ runId: z.ZodOptional<z.ZodString>;
872
+ sessionId: z.ZodOptional<z.ZodString>;
873
+ threadId: z.ZodOptional<z.ZodString>;
874
+ requestId: z.ZodOptional<z.ZodString>;
875
+ executionSource: z.ZodOptional<z.ZodString>;
876
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
877
+ }, z.core.$strip>>;
878
+ comparePeriod: z.ZodOptional<z.ZodEnum<{
879
+ previous_period: "previous_period";
880
+ previous_day: "previous_day";
881
+ previous_week: "previous_week";
882
+ }>>;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ value: z.ZodNullable<z.ZodNumber>;
885
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
886
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
887
  }, z.core.$strip>>, string, `/${string}`>;
683
- export declare const GET_TAGS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
684
- tags: string[];
685
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
686
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
687
- }>, z.core.$strip>, undefined, z.ZodObject<{
688
- tags: z.ZodArray<z.ZodString>;
888
+ export declare const GET_FEEDBACK_BREAKDOWN: import("../server-adapter").ServerRoute<{
889
+ feedbackType: string;
890
+ groupBy: string[];
891
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
892
+ feedbackSource?: string | undefined;
893
+ filters?: {
894
+ feedbackType?: string | string[] | undefined;
895
+ feedbackSource?: string | undefined;
896
+ source?: string | undefined;
897
+ feedbackUserId?: string | undefined;
898
+ timestamp?: {
899
+ start?: Date | undefined;
900
+ end?: Date | undefined;
901
+ startExclusive?: boolean | undefined;
902
+ endExclusive?: boolean | undefined;
903
+ } | undefined;
904
+ traceId?: string | undefined;
905
+ spanId?: string | undefined;
906
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
907
+ entityName?: string | undefined;
908
+ userId?: string | undefined;
909
+ organizationId?: string | undefined;
910
+ experimentId?: string | undefined;
911
+ serviceName?: string | undefined;
912
+ environment?: string | undefined;
913
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
914
+ parentEntityName?: string | undefined;
915
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
916
+ rootEntityName?: string | undefined;
917
+ resourceId?: string | undefined;
918
+ runId?: string | undefined;
919
+ sessionId?: string | undefined;
920
+ threadId?: string | undefined;
921
+ requestId?: string | undefined;
922
+ executionSource?: string | undefined;
923
+ tags?: string[] | undefined;
924
+ } | undefined;
925
+ }, {
926
+ groups: {
927
+ dimensions: Record<string, string | null>;
928
+ value: number;
929
+ }[];
930
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
931
+ feedbackType: z.ZodString;
932
+ feedbackSource: z.ZodOptional<z.ZodString>;
933
+ groupBy: z.ZodArray<z.ZodString>;
934
+ aggregation: z.ZodEnum<{
935
+ sum: "sum";
936
+ avg: "avg";
937
+ min: "min";
938
+ max: "max";
939
+ count: "count";
940
+ last: "last";
941
+ }>;
942
+ filters: z.ZodOptional<z.ZodObject<{
943
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
944
+ feedbackSource: z.ZodOptional<z.ZodString>;
945
+ source: z.ZodOptional<z.ZodString>;
946
+ feedbackUserId: z.ZodOptional<z.ZodString>;
947
+ timestamp: z.ZodOptional<z.ZodObject<{
948
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
949
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
950
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
951
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
952
+ }, z.core.$strip>>;
953
+ traceId: z.ZodOptional<z.ZodString>;
954
+ spanId: z.ZodOptional<z.ZodString>;
955
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
956
+ entityName: z.ZodOptional<z.ZodString>;
957
+ userId: z.ZodOptional<z.ZodString>;
958
+ organizationId: z.ZodOptional<z.ZodString>;
959
+ experimentId: z.ZodOptional<z.ZodString>;
960
+ serviceName: z.ZodOptional<z.ZodString>;
961
+ environment: z.ZodOptional<z.ZodString>;
962
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
963
+ parentEntityName: z.ZodOptional<z.ZodString>;
964
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
965
+ rootEntityName: z.ZodOptional<z.ZodString>;
966
+ resourceId: z.ZodOptional<z.ZodString>;
967
+ runId: z.ZodOptional<z.ZodString>;
968
+ sessionId: z.ZodOptional<z.ZodString>;
969
+ threadId: z.ZodOptional<z.ZodString>;
970
+ requestId: z.ZodOptional<z.ZodString>;
971
+ executionSource: z.ZodOptional<z.ZodString>;
972
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
973
+ }, z.core.$strip>>;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ groups: z.ZodArray<z.ZodObject<{
976
+ dimensions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
977
+ value: z.ZodNumber;
978
+ }, z.core.$strip>>;
689
979
  }, z.core.$strip>>, string, `/${string}`>;
690
- export declare const NEW_ROUTES: {
691
- LIST_LOGS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
980
+ export declare const GET_FEEDBACK_TIME_SERIES: import("../server-adapter").ServerRoute<{
981
+ feedbackType: string;
982
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
983
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
984
+ feedbackSource?: string | undefined;
985
+ filters?: {
986
+ feedbackType?: string | string[] | undefined;
987
+ feedbackSource?: string | undefined;
988
+ source?: string | undefined;
989
+ feedbackUserId?: string | undefined;
990
+ timestamp?: {
991
+ start?: Date | undefined;
992
+ end?: Date | undefined;
993
+ startExclusive?: boolean | undefined;
994
+ endExclusive?: boolean | undefined;
995
+ } | undefined;
996
+ traceId?: string | undefined;
997
+ spanId?: string | undefined;
998
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
999
+ entityName?: string | undefined;
1000
+ userId?: string | undefined;
1001
+ organizationId?: string | undefined;
1002
+ experimentId?: string | undefined;
1003
+ serviceName?: string | undefined;
1004
+ environment?: string | undefined;
1005
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1006
+ parentEntityName?: string | undefined;
1007
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1008
+ rootEntityName?: string | undefined;
1009
+ resourceId?: string | undefined;
1010
+ runId?: string | undefined;
1011
+ sessionId?: string | undefined;
1012
+ threadId?: string | undefined;
1013
+ requestId?: string | undefined;
1014
+ executionSource?: string | undefined;
1015
+ tags?: string[] | undefined;
1016
+ } | undefined;
1017
+ groupBy?: string[] | undefined;
1018
+ }, {
1019
+ series: {
1020
+ name: string;
1021
+ points: {
1022
+ timestamp: Date;
1023
+ value: number;
1024
+ }[];
1025
+ }[];
1026
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1027
+ feedbackType: z.ZodString;
1028
+ feedbackSource: z.ZodOptional<z.ZodString>;
1029
+ interval: z.ZodEnum<{
1030
+ "1m": "1m";
1031
+ "5m": "5m";
1032
+ "15m": "15m";
1033
+ "1h": "1h";
1034
+ "1d": "1d";
1035
+ }>;
1036
+ aggregation: z.ZodEnum<{
1037
+ sum: "sum";
1038
+ avg: "avg";
1039
+ min: "min";
1040
+ max: "max";
1041
+ count: "count";
1042
+ last: "last";
1043
+ }>;
1044
+ filters: z.ZodOptional<z.ZodObject<{
1045
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1046
+ feedbackSource: z.ZodOptional<z.ZodString>;
1047
+ source: z.ZodOptional<z.ZodString>;
1048
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1049
+ timestamp: z.ZodOptional<z.ZodObject<{
1050
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1051
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1052
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1053
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1054
+ }, z.core.$strip>>;
1055
+ traceId: z.ZodOptional<z.ZodString>;
1056
+ spanId: z.ZodOptional<z.ZodString>;
1057
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1058
+ entityName: z.ZodOptional<z.ZodString>;
1059
+ userId: z.ZodOptional<z.ZodString>;
1060
+ organizationId: z.ZodOptional<z.ZodString>;
1061
+ experimentId: z.ZodOptional<z.ZodString>;
1062
+ serviceName: z.ZodOptional<z.ZodString>;
1063
+ environment: z.ZodOptional<z.ZodString>;
1064
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1065
+ parentEntityName: z.ZodOptional<z.ZodString>;
1066
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1067
+ rootEntityName: z.ZodOptional<z.ZodString>;
1068
+ resourceId: z.ZodOptional<z.ZodString>;
1069
+ runId: z.ZodOptional<z.ZodString>;
1070
+ sessionId: z.ZodOptional<z.ZodString>;
1071
+ threadId: z.ZodOptional<z.ZodString>;
1072
+ requestId: z.ZodOptional<z.ZodString>;
1073
+ executionSource: z.ZodOptional<z.ZodString>;
1074
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1075
+ }, z.core.$strip>>;
1076
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1077
+ }, z.core.$strip>, z.ZodObject<{
1078
+ series: z.ZodArray<z.ZodObject<{
1079
+ name: z.ZodString;
1080
+ points: z.ZodArray<z.ZodObject<{
1081
+ timestamp: z.ZodDate;
1082
+ value: z.ZodNumber;
1083
+ }, z.core.$strip>>;
1084
+ }, z.core.$strip>>;
1085
+ }, z.core.$strip>>, string, `/${string}`>;
1086
+ export declare const GET_FEEDBACK_PERCENTILES: import("../server-adapter").ServerRoute<{
1087
+ feedbackType: string;
1088
+ percentiles: number[];
1089
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
1090
+ feedbackSource?: string | undefined;
1091
+ filters?: {
1092
+ feedbackType?: string | string[] | undefined;
1093
+ feedbackSource?: string | undefined;
1094
+ source?: string | undefined;
1095
+ feedbackUserId?: string | undefined;
1096
+ timestamp?: {
1097
+ start?: Date | undefined;
1098
+ end?: Date | undefined;
1099
+ startExclusive?: boolean | undefined;
1100
+ endExclusive?: boolean | undefined;
1101
+ } | undefined;
1102
+ traceId?: string | undefined;
1103
+ spanId?: string | undefined;
1104
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1105
+ entityName?: string | undefined;
1106
+ userId?: string | undefined;
1107
+ organizationId?: string | undefined;
1108
+ experimentId?: string | undefined;
1109
+ serviceName?: string | undefined;
1110
+ environment?: string | undefined;
1111
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1112
+ parentEntityName?: string | undefined;
1113
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1114
+ rootEntityName?: string | undefined;
1115
+ resourceId?: string | undefined;
1116
+ runId?: string | undefined;
1117
+ sessionId?: string | undefined;
1118
+ threadId?: string | undefined;
1119
+ requestId?: string | undefined;
1120
+ executionSource?: string | undefined;
1121
+ tags?: string[] | undefined;
1122
+ } | undefined;
1123
+ }, {
1124
+ series: {
1125
+ percentile: number;
1126
+ points: {
1127
+ timestamp: Date;
1128
+ value: number;
1129
+ }[];
1130
+ }[];
1131
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1132
+ feedbackType: z.ZodString;
1133
+ feedbackSource: z.ZodOptional<z.ZodString>;
1134
+ percentiles: z.ZodArray<z.ZodNumber>;
1135
+ interval: z.ZodEnum<{
1136
+ "1m": "1m";
1137
+ "5m": "5m";
1138
+ "15m": "15m";
1139
+ "1h": "1h";
1140
+ "1d": "1d";
1141
+ }>;
1142
+ filters: z.ZodOptional<z.ZodObject<{
1143
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1144
+ feedbackSource: z.ZodOptional<z.ZodString>;
1145
+ source: z.ZodOptional<z.ZodString>;
1146
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1147
+ timestamp: z.ZodOptional<z.ZodObject<{
1148
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1149
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1150
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1151
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1152
+ }, z.core.$strip>>;
1153
+ traceId: z.ZodOptional<z.ZodString>;
1154
+ spanId: z.ZodOptional<z.ZodString>;
1155
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1156
+ entityName: z.ZodOptional<z.ZodString>;
1157
+ userId: z.ZodOptional<z.ZodString>;
1158
+ organizationId: z.ZodOptional<z.ZodString>;
1159
+ experimentId: z.ZodOptional<z.ZodString>;
1160
+ serviceName: z.ZodOptional<z.ZodString>;
1161
+ environment: z.ZodOptional<z.ZodString>;
1162
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1163
+ parentEntityName: z.ZodOptional<z.ZodString>;
1164
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1165
+ rootEntityName: z.ZodOptional<z.ZodString>;
1166
+ resourceId: z.ZodOptional<z.ZodString>;
1167
+ runId: z.ZodOptional<z.ZodString>;
1168
+ sessionId: z.ZodOptional<z.ZodString>;
1169
+ threadId: z.ZodOptional<z.ZodString>;
1170
+ requestId: z.ZodOptional<z.ZodString>;
1171
+ executionSource: z.ZodOptional<z.ZodString>;
1172
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1173
+ }, z.core.$strip>>;
1174
+ }, z.core.$strip>, z.ZodObject<{
1175
+ series: z.ZodArray<z.ZodObject<{
1176
+ percentile: z.ZodNumber;
1177
+ points: z.ZodArray<z.ZodObject<{
1178
+ timestamp: z.ZodDate;
1179
+ value: z.ZodNumber;
1180
+ }, z.core.$strip>>;
1181
+ }, z.core.$strip>>;
1182
+ }, z.core.$strip>>, string, `/${string}`>;
1183
+ export declare const GET_METRIC_AGGREGATE: import("../server-adapter").ServerRoute<{
1184
+ name: string[];
1185
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1186
+ filters?: {
1187
+ name?: string[] | undefined;
1188
+ source?: string | undefined;
1189
+ provider?: string | undefined;
1190
+ model?: string | undefined;
1191
+ costUnit?: string | undefined;
1192
+ labels?: Record<string, string> | undefined;
1193
+ timestamp?: {
1194
+ start?: Date | undefined;
1195
+ end?: Date | undefined;
1196
+ startExclusive?: boolean | undefined;
1197
+ endExclusive?: boolean | undefined;
1198
+ } | undefined;
1199
+ traceId?: string | undefined;
1200
+ spanId?: string | undefined;
1201
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1202
+ entityName?: string | undefined;
1203
+ userId?: string | undefined;
1204
+ organizationId?: string | undefined;
1205
+ experimentId?: string | undefined;
1206
+ serviceName?: string | undefined;
1207
+ environment?: string | undefined;
1208
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1209
+ parentEntityName?: string | undefined;
1210
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1211
+ rootEntityName?: string | undefined;
1212
+ resourceId?: string | undefined;
1213
+ runId?: string | undefined;
1214
+ sessionId?: string | undefined;
1215
+ threadId?: string | undefined;
1216
+ requestId?: string | undefined;
1217
+ executionSource?: string | undefined;
1218
+ tags?: string[] | undefined;
1219
+ } | undefined;
1220
+ comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
1221
+ }, {
1222
+ value: number | null;
1223
+ estimatedCost?: number | null | undefined;
1224
+ costUnit?: string | null | undefined;
1225
+ previousEstimatedCost?: number | null | undefined;
1226
+ costChangePercent?: number | null | undefined;
1227
+ previousValue?: number | null | undefined;
1228
+ changePercent?: number | null | undefined;
1229
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1230
+ name: z.ZodArray<z.ZodString>;
1231
+ aggregation: z.ZodEnum<{
1232
+ sum: "sum";
1233
+ avg: "avg";
1234
+ min: "min";
1235
+ max: "max";
1236
+ count: "count";
1237
+ last: "last";
1238
+ }>;
1239
+ filters: z.ZodOptional<z.ZodObject<{
1240
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1241
+ source: z.ZodOptional<z.ZodString>;
1242
+ provider: z.ZodOptional<z.ZodString>;
1243
+ model: z.ZodOptional<z.ZodString>;
1244
+ costUnit: z.ZodOptional<z.ZodString>;
1245
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1246
+ timestamp: z.ZodOptional<z.ZodObject<{
1247
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1248
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1249
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1250
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1251
+ }, z.core.$strip>>;
1252
+ traceId: z.ZodOptional<z.ZodString>;
1253
+ spanId: z.ZodOptional<z.ZodString>;
1254
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1255
+ entityName: z.ZodOptional<z.ZodString>;
1256
+ userId: z.ZodOptional<z.ZodString>;
1257
+ organizationId: z.ZodOptional<z.ZodString>;
1258
+ experimentId: z.ZodOptional<z.ZodString>;
1259
+ serviceName: z.ZodOptional<z.ZodString>;
1260
+ environment: z.ZodOptional<z.ZodString>;
1261
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1262
+ parentEntityName: z.ZodOptional<z.ZodString>;
1263
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1264
+ rootEntityName: z.ZodOptional<z.ZodString>;
1265
+ resourceId: z.ZodOptional<z.ZodString>;
1266
+ runId: z.ZodOptional<z.ZodString>;
1267
+ sessionId: z.ZodOptional<z.ZodString>;
1268
+ threadId: z.ZodOptional<z.ZodString>;
1269
+ requestId: z.ZodOptional<z.ZodString>;
1270
+ executionSource: z.ZodOptional<z.ZodString>;
1271
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1272
+ }, z.core.$strip>>;
1273
+ comparePeriod: z.ZodOptional<z.ZodEnum<{
1274
+ previous_period: "previous_period";
1275
+ previous_day: "previous_day";
1276
+ previous_week: "previous_week";
1277
+ }>>;
1278
+ }, z.core.$strip>, z.ZodObject<{
1279
+ estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1280
+ costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
+ previousEstimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1282
+ costChangePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1283
+ value: z.ZodNullable<z.ZodNumber>;
1284
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1285
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1286
+ }, z.core.$strip>>, string, `/${string}`>;
1287
+ export declare const GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRoute<{
1288
+ name: string[];
1289
+ groupBy: string[];
1290
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1291
+ filters?: {
1292
+ name?: string[] | undefined;
1293
+ source?: string | undefined;
1294
+ provider?: string | undefined;
1295
+ model?: string | undefined;
1296
+ costUnit?: string | undefined;
1297
+ labels?: Record<string, string> | undefined;
1298
+ timestamp?: {
1299
+ start?: Date | undefined;
1300
+ end?: Date | undefined;
1301
+ startExclusive?: boolean | undefined;
1302
+ endExclusive?: boolean | undefined;
1303
+ } | undefined;
1304
+ traceId?: string | undefined;
1305
+ spanId?: string | undefined;
1306
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1307
+ entityName?: string | undefined;
1308
+ userId?: string | undefined;
1309
+ organizationId?: string | undefined;
1310
+ experimentId?: string | undefined;
1311
+ serviceName?: string | undefined;
1312
+ environment?: string | undefined;
1313
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1314
+ parentEntityName?: string | undefined;
1315
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1316
+ rootEntityName?: string | undefined;
1317
+ resourceId?: string | undefined;
1318
+ runId?: string | undefined;
1319
+ sessionId?: string | undefined;
1320
+ threadId?: string | undefined;
1321
+ requestId?: string | undefined;
1322
+ executionSource?: string | undefined;
1323
+ tags?: string[] | undefined;
1324
+ } | undefined;
1325
+ }, {
1326
+ groups: {
1327
+ dimensions: Record<string, string | null>;
1328
+ value: number;
1329
+ estimatedCost?: number | null | undefined;
1330
+ costUnit?: string | null | undefined;
1331
+ }[];
1332
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1333
+ name: z.ZodArray<z.ZodString>;
1334
+ groupBy: z.ZodArray<z.ZodString>;
1335
+ aggregation: z.ZodEnum<{
1336
+ sum: "sum";
1337
+ avg: "avg";
1338
+ min: "min";
1339
+ max: "max";
1340
+ count: "count";
1341
+ last: "last";
1342
+ }>;
1343
+ filters: z.ZodOptional<z.ZodObject<{
1344
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1345
+ source: z.ZodOptional<z.ZodString>;
1346
+ provider: z.ZodOptional<z.ZodString>;
1347
+ model: z.ZodOptional<z.ZodString>;
1348
+ costUnit: z.ZodOptional<z.ZodString>;
1349
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1350
+ timestamp: z.ZodOptional<z.ZodObject<{
1351
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1352
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1353
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1354
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1355
+ }, z.core.$strip>>;
1356
+ traceId: z.ZodOptional<z.ZodString>;
1357
+ spanId: z.ZodOptional<z.ZodString>;
1358
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1359
+ entityName: z.ZodOptional<z.ZodString>;
1360
+ userId: z.ZodOptional<z.ZodString>;
1361
+ organizationId: z.ZodOptional<z.ZodString>;
1362
+ experimentId: z.ZodOptional<z.ZodString>;
1363
+ serviceName: z.ZodOptional<z.ZodString>;
1364
+ environment: z.ZodOptional<z.ZodString>;
1365
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1366
+ parentEntityName: z.ZodOptional<z.ZodString>;
1367
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1368
+ rootEntityName: z.ZodOptional<z.ZodString>;
1369
+ resourceId: z.ZodOptional<z.ZodString>;
1370
+ runId: z.ZodOptional<z.ZodString>;
1371
+ sessionId: z.ZodOptional<z.ZodString>;
1372
+ threadId: z.ZodOptional<z.ZodString>;
1373
+ requestId: z.ZodOptional<z.ZodString>;
1374
+ executionSource: z.ZodOptional<z.ZodString>;
1375
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1376
+ }, z.core.$strip>>;
1377
+ }, z.core.$strip>, z.ZodObject<{
1378
+ groups: z.ZodArray<z.ZodObject<{
1379
+ dimensions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1380
+ value: z.ZodNumber;
1381
+ estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1382
+ costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1383
+ }, z.core.$strip>>;
1384
+ }, z.core.$strip>>, string, `/${string}`>;
1385
+ export declare const GET_METRIC_TIME_SERIES: import("../server-adapter").ServerRoute<{
1386
+ name: string[];
1387
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
1388
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1389
+ filters?: {
1390
+ name?: string[] | undefined;
1391
+ source?: string | undefined;
1392
+ provider?: string | undefined;
1393
+ model?: string | undefined;
1394
+ costUnit?: string | undefined;
1395
+ labels?: Record<string, string> | undefined;
1396
+ timestamp?: {
1397
+ start?: Date | undefined;
1398
+ end?: Date | undefined;
1399
+ startExclusive?: boolean | undefined;
1400
+ endExclusive?: boolean | undefined;
1401
+ } | undefined;
1402
+ traceId?: string | undefined;
1403
+ spanId?: string | undefined;
1404
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1405
+ entityName?: string | undefined;
1406
+ userId?: string | undefined;
1407
+ organizationId?: string | undefined;
1408
+ experimentId?: string | undefined;
1409
+ serviceName?: string | undefined;
1410
+ environment?: string | undefined;
1411
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1412
+ parentEntityName?: string | undefined;
1413
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1414
+ rootEntityName?: string | undefined;
1415
+ resourceId?: string | undefined;
1416
+ runId?: string | undefined;
1417
+ sessionId?: string | undefined;
1418
+ threadId?: string | undefined;
1419
+ requestId?: string | undefined;
1420
+ executionSource?: string | undefined;
1421
+ tags?: string[] | undefined;
1422
+ } | undefined;
1423
+ groupBy?: string[] | undefined;
1424
+ }, {
1425
+ series: {
1426
+ name: string;
1427
+ points: {
1428
+ timestamp: Date;
1429
+ value: number;
1430
+ estimatedCost?: number | null | undefined;
1431
+ }[];
1432
+ costUnit?: string | null | undefined;
1433
+ }[];
1434
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1435
+ name: z.ZodArray<z.ZodString>;
1436
+ interval: z.ZodEnum<{
1437
+ "1m": "1m";
1438
+ "5m": "5m";
1439
+ "15m": "15m";
1440
+ "1h": "1h";
1441
+ "1d": "1d";
1442
+ }>;
1443
+ aggregation: z.ZodEnum<{
1444
+ sum: "sum";
1445
+ avg: "avg";
1446
+ min: "min";
1447
+ max: "max";
1448
+ count: "count";
1449
+ last: "last";
1450
+ }>;
1451
+ filters: z.ZodOptional<z.ZodObject<{
1452
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1453
+ source: z.ZodOptional<z.ZodString>;
1454
+ provider: z.ZodOptional<z.ZodString>;
1455
+ model: z.ZodOptional<z.ZodString>;
1456
+ costUnit: z.ZodOptional<z.ZodString>;
1457
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1458
+ timestamp: z.ZodOptional<z.ZodObject<{
1459
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1460
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1461
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1462
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1463
+ }, z.core.$strip>>;
1464
+ traceId: z.ZodOptional<z.ZodString>;
1465
+ spanId: z.ZodOptional<z.ZodString>;
1466
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1467
+ entityName: z.ZodOptional<z.ZodString>;
1468
+ userId: z.ZodOptional<z.ZodString>;
1469
+ organizationId: z.ZodOptional<z.ZodString>;
1470
+ experimentId: z.ZodOptional<z.ZodString>;
1471
+ serviceName: z.ZodOptional<z.ZodString>;
1472
+ environment: z.ZodOptional<z.ZodString>;
1473
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1474
+ parentEntityName: z.ZodOptional<z.ZodString>;
1475
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1476
+ rootEntityName: z.ZodOptional<z.ZodString>;
1477
+ resourceId: z.ZodOptional<z.ZodString>;
1478
+ runId: z.ZodOptional<z.ZodString>;
1479
+ sessionId: z.ZodOptional<z.ZodString>;
1480
+ threadId: z.ZodOptional<z.ZodString>;
1481
+ requestId: z.ZodOptional<z.ZodString>;
1482
+ executionSource: z.ZodOptional<z.ZodString>;
1483
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1484
+ }, z.core.$strip>>;
1485
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1486
+ }, z.core.$strip>, z.ZodObject<{
1487
+ series: z.ZodArray<z.ZodObject<{
1488
+ name: z.ZodString;
1489
+ costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ points: z.ZodArray<z.ZodObject<{
1491
+ timestamp: z.ZodDate;
1492
+ value: z.ZodNumber;
1493
+ estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1494
+ }, z.core.$strip>>;
1495
+ }, z.core.$strip>>;
1496
+ }, z.core.$strip>>, string, `/${string}`>;
1497
+ export declare const GET_METRIC_PERCENTILES: import("../server-adapter").ServerRoute<{
1498
+ name: string;
1499
+ percentiles: number[];
1500
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
1501
+ filters?: {
1502
+ name?: string[] | undefined;
1503
+ source?: string | undefined;
1504
+ provider?: string | undefined;
1505
+ model?: string | undefined;
1506
+ costUnit?: string | undefined;
1507
+ labels?: Record<string, string> | undefined;
1508
+ timestamp?: {
1509
+ start?: Date | undefined;
1510
+ end?: Date | undefined;
1511
+ startExclusive?: boolean | undefined;
1512
+ endExclusive?: boolean | undefined;
1513
+ } | undefined;
1514
+ traceId?: string | undefined;
1515
+ spanId?: string | undefined;
1516
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1517
+ entityName?: string | undefined;
1518
+ userId?: string | undefined;
1519
+ organizationId?: string | undefined;
1520
+ experimentId?: string | undefined;
1521
+ serviceName?: string | undefined;
1522
+ environment?: string | undefined;
1523
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1524
+ parentEntityName?: string | undefined;
1525
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1526
+ rootEntityName?: string | undefined;
1527
+ resourceId?: string | undefined;
1528
+ runId?: string | undefined;
1529
+ sessionId?: string | undefined;
1530
+ threadId?: string | undefined;
1531
+ requestId?: string | undefined;
1532
+ executionSource?: string | undefined;
1533
+ tags?: string[] | undefined;
1534
+ } | undefined;
1535
+ }, {
1536
+ series: {
1537
+ percentile: number;
1538
+ points: {
1539
+ timestamp: Date;
1540
+ value: number;
1541
+ }[];
1542
+ }[];
1543
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1544
+ name: z.ZodString;
1545
+ percentiles: z.ZodArray<z.ZodNumber>;
1546
+ interval: z.ZodEnum<{
1547
+ "1m": "1m";
1548
+ "5m": "5m";
1549
+ "15m": "15m";
1550
+ "1h": "1h";
1551
+ "1d": "1d";
1552
+ }>;
1553
+ filters: z.ZodOptional<z.ZodObject<{
1554
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1555
+ source: z.ZodOptional<z.ZodString>;
1556
+ provider: z.ZodOptional<z.ZodString>;
1557
+ model: z.ZodOptional<z.ZodString>;
1558
+ costUnit: z.ZodOptional<z.ZodString>;
1559
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1560
+ timestamp: z.ZodOptional<z.ZodObject<{
1561
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1562
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1563
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1564
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1565
+ }, z.core.$strip>>;
1566
+ traceId: z.ZodOptional<z.ZodString>;
1567
+ spanId: z.ZodOptional<z.ZodString>;
1568
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1569
+ entityName: z.ZodOptional<z.ZodString>;
1570
+ userId: z.ZodOptional<z.ZodString>;
1571
+ organizationId: z.ZodOptional<z.ZodString>;
1572
+ experimentId: z.ZodOptional<z.ZodString>;
1573
+ serviceName: z.ZodOptional<z.ZodString>;
1574
+ environment: z.ZodOptional<z.ZodString>;
1575
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1576
+ parentEntityName: z.ZodOptional<z.ZodString>;
1577
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1578
+ rootEntityName: z.ZodOptional<z.ZodString>;
1579
+ resourceId: z.ZodOptional<z.ZodString>;
1580
+ runId: z.ZodOptional<z.ZodString>;
1581
+ sessionId: z.ZodOptional<z.ZodString>;
1582
+ threadId: z.ZodOptional<z.ZodString>;
1583
+ requestId: z.ZodOptional<z.ZodString>;
1584
+ executionSource: z.ZodOptional<z.ZodString>;
1585
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1586
+ }, z.core.$strip>>;
1587
+ }, z.core.$strip>, z.ZodObject<{
1588
+ series: z.ZodArray<z.ZodObject<{
1589
+ percentile: z.ZodNumber;
1590
+ points: z.ZodArray<z.ZodObject<{
1591
+ timestamp: z.ZodDate;
1592
+ value: z.ZodNumber;
1593
+ }, z.core.$strip>>;
1594
+ }, z.core.$strip>>;
1595
+ }, z.core.$strip>>, string, `/${string}`>;
1596
+ export declare const GET_METRIC_NAMES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1597
+ names: string[];
1598
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1599
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1600
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1601
+ names: z.ZodArray<z.ZodString>;
1602
+ }, z.core.$strip>>, string, `/${string}`>;
1603
+ export declare const GET_METRIC_LABEL_KEYS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1604
+ keys: string[];
1605
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1606
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1607
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1608
+ keys: z.ZodArray<z.ZodString>;
1609
+ }, z.core.$strip>>, string, `/${string}`>;
1610
+ export declare const GET_METRIC_LABEL_VALUES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1611
+ values: string[];
1612
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1613
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1614
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1615
+ values: z.ZodArray<z.ZodString>;
1616
+ }, z.core.$strip>>, string, `/${string}`>;
1617
+ export declare const GET_ENTITY_TYPES: import("../server-adapter").ServerRoute<{}, {
1618
+ entityTypes: import("../../_types/@internal_core/dist/index.js").EntityType[];
1619
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
1620
+ entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1621
+ }, z.core.$strip>>, string, `/${string}`>;
1622
+ export declare const GET_ENTITY_NAMES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1623
+ names: string[];
1624
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1625
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1626
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1627
+ names: z.ZodArray<z.ZodString>;
1628
+ }, z.core.$strip>>, string, `/${string}`>;
1629
+ export declare const GET_SERVICE_NAMES: import("../server-adapter").ServerRoute<{}, {
1630
+ serviceNames: string[];
1631
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
1632
+ serviceNames: z.ZodArray<z.ZodString>;
1633
+ }, z.core.$strip>>, string, `/${string}`>;
1634
+ export declare const GET_ENVIRONMENTS: import("../server-adapter").ServerRoute<{}, {
1635
+ environments: string[];
1636
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
1637
+ environments: z.ZodArray<z.ZodString>;
1638
+ }, z.core.$strip>>, string, `/${string}`>;
1639
+ export declare const GET_TAGS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1640
+ tags: string[];
1641
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1642
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1643
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1644
+ tags: z.ZodArray<z.ZodString>;
1645
+ }, z.core.$strip>>, string, `/${string}`>;
1646
+ export declare const NEW_ROUTES: {
1647
+ LIST_LOGS: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1648
+ pagination: {
1649
+ total: number;
1650
+ page: number;
1651
+ perPage: number | false;
1652
+ hasMore: boolean;
1653
+ };
1654
+ logs: {
1655
+ timestamp: Date;
1656
+ level: "debug" | "info" | "warn" | "error" | "fatal";
1657
+ message: string;
1658
+ source?: string | null | undefined;
1659
+ metadata?: Record<string, unknown> | null | undefined;
1660
+ executionSource?: string | null | undefined;
1661
+ tags?: string[] | null | undefined;
1662
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1663
+ entityId?: string | null | undefined;
1664
+ entityName?: string | null | undefined;
1665
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1666
+ parentEntityId?: string | null | undefined;
1667
+ parentEntityName?: string | null | undefined;
1668
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1669
+ rootEntityId?: string | null | undefined;
1670
+ rootEntityName?: string | null | undefined;
1671
+ userId?: string | null | undefined;
1672
+ organizationId?: string | null | undefined;
1673
+ resourceId?: string | null | undefined;
1674
+ runId?: string | null | undefined;
1675
+ sessionId?: string | null | undefined;
1676
+ threadId?: string | null | undefined;
1677
+ requestId?: string | null | undefined;
1678
+ environment?: string | null | undefined;
1679
+ serviceName?: string | null | undefined;
1680
+ scope?: Record<string, unknown> | null | undefined;
1681
+ experimentId?: string | null | undefined;
1682
+ data?: Record<string, unknown> | null | undefined;
1683
+ traceId?: string | null | undefined;
1684
+ spanId?: string | null | undefined;
1685
+ }[];
1686
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1687
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1688
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1689
+ pagination: z.ZodObject<{
1690
+ total: z.ZodNumber;
1691
+ page: z.ZodNumber;
1692
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
1693
+ hasMore: z.ZodBoolean;
1694
+ }, z.core.$strip>;
1695
+ logs: z.ZodArray<z.ZodObject<{
1696
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1697
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1698
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1699
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1700
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1701
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1704
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1706
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1707
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1708
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1709
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1710
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1711
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1712
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1713
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1714
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1715
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1718
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1719
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1720
+ timestamp: z.ZodDate;
1721
+ level: z.ZodEnum<{
1722
+ error: "error";
1723
+ debug: "debug";
1724
+ info: "info";
1725
+ warn: "warn";
1726
+ fatal: "fatal";
1727
+ }>;
1728
+ message: z.ZodString;
1729
+ data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1730
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1731
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
+ }, z.core.$strip>>;
1733
+ }, z.core.$strip>>, string, `/${string}`>;
1734
+ LIST_SCORES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
1735
+ pagination: {
1736
+ total: number;
1737
+ page: number;
1738
+ perPage: number | false;
1739
+ hasMore: boolean;
1740
+ };
1741
+ scores: {
1742
+ timestamp: Date;
1743
+ traceId: string;
1744
+ scorerId: string;
1745
+ score: number;
1746
+ scoreTraceId?: string | null | undefined;
1747
+ metadata?: Record<string, unknown> | null | undefined;
1748
+ executionSource?: string | null | undefined;
1749
+ tags?: string[] | null | undefined;
1750
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1751
+ entityId?: string | null | undefined;
1752
+ entityName?: string | null | undefined;
1753
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1754
+ parentEntityId?: string | null | undefined;
1755
+ parentEntityName?: string | null | undefined;
1756
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1757
+ rootEntityId?: string | null | undefined;
1758
+ rootEntityName?: string | null | undefined;
1759
+ userId?: string | null | undefined;
1760
+ organizationId?: string | null | undefined;
1761
+ resourceId?: string | null | undefined;
1762
+ runId?: string | null | undefined;
1763
+ sessionId?: string | null | undefined;
1764
+ threadId?: string | null | undefined;
1765
+ requestId?: string | null | undefined;
1766
+ environment?: string | null | undefined;
1767
+ serviceName?: string | null | undefined;
1768
+ scope?: Record<string, unknown> | null | undefined;
1769
+ experimentId?: string | null | undefined;
1770
+ spanId?: string | null | undefined;
1771
+ scorerVersion?: string | null | undefined;
1772
+ scoreSource?: string | null | undefined;
1773
+ source?: string | null | undefined;
1774
+ reason?: string | null | undefined;
1775
+ }[];
1776
+ }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1777
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1778
+ }>, z.core.$strip>, undefined, z.ZodObject<{
1779
+ pagination: z.ZodObject<{
1780
+ total: z.ZodNumber;
1781
+ page: z.ZodNumber;
1782
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
1783
+ hasMore: z.ZodBoolean;
1784
+ }, z.core.$strip>;
1785
+ scores: z.ZodArray<z.ZodObject<{
1786
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1787
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1788
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1789
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1790
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1791
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1792
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1793
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1794
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1795
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1796
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1797
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1798
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1799
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1801
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1802
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1803
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1804
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1805
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1806
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1807
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1808
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1809
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1810
+ timestamp: z.ZodDate;
1811
+ traceId: z.ZodString;
1812
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1813
+ scorerId: z.ZodString;
1814
+ scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1815
+ scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1817
+ score: z.ZodNumber;
1818
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1819
+ }, z.core.$strip>>;
1820
+ }, z.core.$strip>>, string, `/${string}`>;
1821
+ CREATE_SCORE: import("../server-adapter").ServerRoute<{
1822
+ score: {
1823
+ traceId: string;
1824
+ scorerId: string;
1825
+ score: number;
1826
+ spanId?: string | null | undefined;
1827
+ source?: string | null | undefined;
1828
+ metadata?: Record<string, unknown> | null | undefined;
1829
+ executionSource?: string | null | undefined;
1830
+ tags?: string[] | null | undefined;
1831
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1832
+ entityId?: string | null | undefined;
1833
+ entityName?: string | null | undefined;
1834
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1835
+ parentEntityId?: string | null | undefined;
1836
+ parentEntityName?: string | null | undefined;
1837
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
1838
+ rootEntityId?: string | null | undefined;
1839
+ rootEntityName?: string | null | undefined;
1840
+ userId?: string | null | undefined;
1841
+ organizationId?: string | null | undefined;
1842
+ resourceId?: string | null | undefined;
1843
+ runId?: string | null | undefined;
1844
+ sessionId?: string | null | undefined;
1845
+ threadId?: string | null | undefined;
1846
+ requestId?: string | null | undefined;
1847
+ environment?: string | null | undefined;
1848
+ serviceName?: string | null | undefined;
1849
+ scope?: Record<string, unknown> | null | undefined;
1850
+ experimentId?: string | null | undefined;
1851
+ scorerVersion?: string | null | undefined;
1852
+ scoreSource?: string | null | undefined;
1853
+ reason?: string | null | undefined;
1854
+ scoreTraceId?: string | null | undefined;
1855
+ };
1856
+ }, {
1857
+ success: boolean;
1858
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1859
+ score: z.ZodObject<{
1860
+ traceId: z.ZodString;
1861
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1862
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1863
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1864
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1865
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1866
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1867
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1868
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1869
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1870
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1871
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1872
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
1873
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1874
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1875
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1876
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1877
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1878
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1879
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1880
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1881
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1882
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1885
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1886
+ scorerId: z.ZodString;
1887
+ score: z.ZodNumber;
1888
+ scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
+ scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1891
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1892
+ }, z.core.$strip>;
1893
+ }, z.core.$strip>, z.ZodObject<{
1894
+ success: z.ZodBoolean;
1895
+ }, z.core.$strip>>, string, `/${string}`>;
1896
+ GET_SCORE_AGGREGATE: import("../server-adapter").ServerRoute<{
1897
+ scorerId: string;
1898
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1899
+ scoreSource?: string | undefined;
1900
+ filters?: {
1901
+ scorerId?: string | string[] | undefined;
1902
+ scoreSource?: string | undefined;
1903
+ source?: string | undefined;
1904
+ timestamp?: {
1905
+ start?: Date | undefined;
1906
+ end?: Date | undefined;
1907
+ startExclusive?: boolean | undefined;
1908
+ endExclusive?: boolean | undefined;
1909
+ } | undefined;
1910
+ traceId?: string | undefined;
1911
+ spanId?: string | undefined;
1912
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1913
+ entityName?: string | undefined;
1914
+ userId?: string | undefined;
1915
+ organizationId?: string | undefined;
1916
+ experimentId?: string | undefined;
1917
+ serviceName?: string | undefined;
1918
+ environment?: string | undefined;
1919
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1920
+ parentEntityName?: string | undefined;
1921
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1922
+ rootEntityName?: string | undefined;
1923
+ resourceId?: string | undefined;
1924
+ runId?: string | undefined;
1925
+ sessionId?: string | undefined;
1926
+ threadId?: string | undefined;
1927
+ requestId?: string | undefined;
1928
+ executionSource?: string | undefined;
1929
+ tags?: string[] | undefined;
1930
+ } | undefined;
1931
+ comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
1932
+ }, {
1933
+ value: number | null;
1934
+ previousValue?: number | null | undefined;
1935
+ changePercent?: number | null | undefined;
1936
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1937
+ scorerId: z.ZodString;
1938
+ scoreSource: z.ZodOptional<z.ZodString>;
1939
+ aggregation: z.ZodEnum<{
1940
+ sum: "sum";
1941
+ avg: "avg";
1942
+ min: "min";
1943
+ max: "max";
1944
+ count: "count";
1945
+ last: "last";
1946
+ }>;
1947
+ filters: z.ZodOptional<z.ZodObject<{
1948
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1949
+ scoreSource: z.ZodOptional<z.ZodString>;
1950
+ source: z.ZodOptional<z.ZodString>;
1951
+ timestamp: z.ZodOptional<z.ZodObject<{
1952
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1953
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1954
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
1955
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
1956
+ }, z.core.$strip>>;
1957
+ traceId: z.ZodOptional<z.ZodString>;
1958
+ spanId: z.ZodOptional<z.ZodString>;
1959
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1960
+ entityName: z.ZodOptional<z.ZodString>;
1961
+ userId: z.ZodOptional<z.ZodString>;
1962
+ organizationId: z.ZodOptional<z.ZodString>;
1963
+ experimentId: z.ZodOptional<z.ZodString>;
1964
+ serviceName: z.ZodOptional<z.ZodString>;
1965
+ environment: z.ZodOptional<z.ZodString>;
1966
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1967
+ parentEntityName: z.ZodOptional<z.ZodString>;
1968
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1969
+ rootEntityName: z.ZodOptional<z.ZodString>;
1970
+ resourceId: z.ZodOptional<z.ZodString>;
1971
+ runId: z.ZodOptional<z.ZodString>;
1972
+ sessionId: z.ZodOptional<z.ZodString>;
1973
+ threadId: z.ZodOptional<z.ZodString>;
1974
+ requestId: z.ZodOptional<z.ZodString>;
1975
+ executionSource: z.ZodOptional<z.ZodString>;
1976
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1977
+ }, z.core.$strip>>;
1978
+ comparePeriod: z.ZodOptional<z.ZodEnum<{
1979
+ previous_period: "previous_period";
1980
+ previous_day: "previous_day";
1981
+ previous_week: "previous_week";
1982
+ }>>;
1983
+ }, z.core.$strip>, z.ZodObject<{
1984
+ value: z.ZodNullable<z.ZodNumber>;
1985
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1986
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1987
+ }, z.core.$strip>>, string, `/${string}`>;
1988
+ GET_SCORE_BREAKDOWN: import("../server-adapter").ServerRoute<{
1989
+ scorerId: string;
1990
+ groupBy: string[];
1991
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1992
+ scoreSource?: string | undefined;
1993
+ filters?: {
1994
+ scorerId?: string | string[] | undefined;
1995
+ scoreSource?: string | undefined;
1996
+ source?: string | undefined;
1997
+ timestamp?: {
1998
+ start?: Date | undefined;
1999
+ end?: Date | undefined;
2000
+ startExclusive?: boolean | undefined;
2001
+ endExclusive?: boolean | undefined;
2002
+ } | undefined;
2003
+ traceId?: string | undefined;
2004
+ spanId?: string | undefined;
2005
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2006
+ entityName?: string | undefined;
2007
+ userId?: string | undefined;
2008
+ organizationId?: string | undefined;
2009
+ experimentId?: string | undefined;
2010
+ serviceName?: string | undefined;
2011
+ environment?: string | undefined;
2012
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2013
+ parentEntityName?: string | undefined;
2014
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2015
+ rootEntityName?: string | undefined;
2016
+ resourceId?: string | undefined;
2017
+ runId?: string | undefined;
2018
+ sessionId?: string | undefined;
2019
+ threadId?: string | undefined;
2020
+ requestId?: string | undefined;
2021
+ executionSource?: string | undefined;
2022
+ tags?: string[] | undefined;
2023
+ } | undefined;
2024
+ }, {
2025
+ groups: {
2026
+ dimensions: Record<string, string | null>;
2027
+ value: number;
2028
+ }[];
2029
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2030
+ scorerId: z.ZodString;
2031
+ scoreSource: z.ZodOptional<z.ZodString>;
2032
+ groupBy: z.ZodArray<z.ZodString>;
2033
+ aggregation: z.ZodEnum<{
2034
+ sum: "sum";
2035
+ avg: "avg";
2036
+ min: "min";
2037
+ max: "max";
2038
+ count: "count";
2039
+ last: "last";
2040
+ }>;
2041
+ filters: z.ZodOptional<z.ZodObject<{
2042
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2043
+ scoreSource: z.ZodOptional<z.ZodString>;
2044
+ source: z.ZodOptional<z.ZodString>;
2045
+ timestamp: z.ZodOptional<z.ZodObject<{
2046
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2047
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2048
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2049
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2050
+ }, z.core.$strip>>;
2051
+ traceId: z.ZodOptional<z.ZodString>;
2052
+ spanId: z.ZodOptional<z.ZodString>;
2053
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2054
+ entityName: z.ZodOptional<z.ZodString>;
2055
+ userId: z.ZodOptional<z.ZodString>;
2056
+ organizationId: z.ZodOptional<z.ZodString>;
2057
+ experimentId: z.ZodOptional<z.ZodString>;
2058
+ serviceName: z.ZodOptional<z.ZodString>;
2059
+ environment: z.ZodOptional<z.ZodString>;
2060
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2061
+ parentEntityName: z.ZodOptional<z.ZodString>;
2062
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2063
+ rootEntityName: z.ZodOptional<z.ZodString>;
2064
+ resourceId: z.ZodOptional<z.ZodString>;
2065
+ runId: z.ZodOptional<z.ZodString>;
2066
+ sessionId: z.ZodOptional<z.ZodString>;
2067
+ threadId: z.ZodOptional<z.ZodString>;
2068
+ requestId: z.ZodOptional<z.ZodString>;
2069
+ executionSource: z.ZodOptional<z.ZodString>;
2070
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2071
+ }, z.core.$strip>>;
2072
+ }, z.core.$strip>, z.ZodObject<{
2073
+ groups: z.ZodArray<z.ZodObject<{
2074
+ dimensions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2075
+ value: z.ZodNumber;
2076
+ }, z.core.$strip>>;
2077
+ }, z.core.$strip>>, string, `/${string}`>;
2078
+ GET_SCORE_TIME_SERIES: import("../server-adapter").ServerRoute<{
2079
+ scorerId: string;
2080
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
2081
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
2082
+ scoreSource?: string | undefined;
2083
+ filters?: {
2084
+ scorerId?: string | string[] | undefined;
2085
+ scoreSource?: string | undefined;
2086
+ source?: string | undefined;
2087
+ timestamp?: {
2088
+ start?: Date | undefined;
2089
+ end?: Date | undefined;
2090
+ startExclusive?: boolean | undefined;
2091
+ endExclusive?: boolean | undefined;
2092
+ } | undefined;
2093
+ traceId?: string | undefined;
2094
+ spanId?: string | undefined;
2095
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2096
+ entityName?: string | undefined;
2097
+ userId?: string | undefined;
2098
+ organizationId?: string | undefined;
2099
+ experimentId?: string | undefined;
2100
+ serviceName?: string | undefined;
2101
+ environment?: string | undefined;
2102
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2103
+ parentEntityName?: string | undefined;
2104
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2105
+ rootEntityName?: string | undefined;
2106
+ resourceId?: string | undefined;
2107
+ runId?: string | undefined;
2108
+ sessionId?: string | undefined;
2109
+ threadId?: string | undefined;
2110
+ requestId?: string | undefined;
2111
+ executionSource?: string | undefined;
2112
+ tags?: string[] | undefined;
2113
+ } | undefined;
2114
+ groupBy?: string[] | undefined;
2115
+ }, {
2116
+ series: {
2117
+ name: string;
2118
+ points: {
2119
+ timestamp: Date;
2120
+ value: number;
2121
+ }[];
2122
+ }[];
2123
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2124
+ scorerId: z.ZodString;
2125
+ scoreSource: z.ZodOptional<z.ZodString>;
2126
+ interval: z.ZodEnum<{
2127
+ "1m": "1m";
2128
+ "5m": "5m";
2129
+ "15m": "15m";
2130
+ "1h": "1h";
2131
+ "1d": "1d";
2132
+ }>;
2133
+ aggregation: z.ZodEnum<{
2134
+ sum: "sum";
2135
+ avg: "avg";
2136
+ min: "min";
2137
+ max: "max";
2138
+ count: "count";
2139
+ last: "last";
2140
+ }>;
2141
+ filters: z.ZodOptional<z.ZodObject<{
2142
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2143
+ scoreSource: z.ZodOptional<z.ZodString>;
2144
+ source: z.ZodOptional<z.ZodString>;
2145
+ timestamp: z.ZodOptional<z.ZodObject<{
2146
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2147
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2148
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2149
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2150
+ }, z.core.$strip>>;
2151
+ traceId: z.ZodOptional<z.ZodString>;
2152
+ spanId: z.ZodOptional<z.ZodString>;
2153
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2154
+ entityName: z.ZodOptional<z.ZodString>;
2155
+ userId: z.ZodOptional<z.ZodString>;
2156
+ organizationId: z.ZodOptional<z.ZodString>;
2157
+ experimentId: z.ZodOptional<z.ZodString>;
2158
+ serviceName: z.ZodOptional<z.ZodString>;
2159
+ environment: z.ZodOptional<z.ZodString>;
2160
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2161
+ parentEntityName: z.ZodOptional<z.ZodString>;
2162
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2163
+ rootEntityName: z.ZodOptional<z.ZodString>;
2164
+ resourceId: z.ZodOptional<z.ZodString>;
2165
+ runId: z.ZodOptional<z.ZodString>;
2166
+ sessionId: z.ZodOptional<z.ZodString>;
2167
+ threadId: z.ZodOptional<z.ZodString>;
2168
+ requestId: z.ZodOptional<z.ZodString>;
2169
+ executionSource: z.ZodOptional<z.ZodString>;
2170
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2171
+ }, z.core.$strip>>;
2172
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
2173
+ }, z.core.$strip>, z.ZodObject<{
2174
+ series: z.ZodArray<z.ZodObject<{
2175
+ name: z.ZodString;
2176
+ points: z.ZodArray<z.ZodObject<{
2177
+ timestamp: z.ZodDate;
2178
+ value: z.ZodNumber;
2179
+ }, z.core.$strip>>;
2180
+ }, z.core.$strip>>;
2181
+ }, z.core.$strip>>, string, `/${string}`>;
2182
+ GET_SCORE_PERCENTILES: import("../server-adapter").ServerRoute<{
2183
+ scorerId: string;
2184
+ percentiles: number[];
2185
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
2186
+ scoreSource?: string | undefined;
2187
+ filters?: {
2188
+ scorerId?: string | string[] | undefined;
2189
+ scoreSource?: string | undefined;
2190
+ source?: string | undefined;
2191
+ timestamp?: {
2192
+ start?: Date | undefined;
2193
+ end?: Date | undefined;
2194
+ startExclusive?: boolean | undefined;
2195
+ endExclusive?: boolean | undefined;
2196
+ } | undefined;
2197
+ traceId?: string | undefined;
2198
+ spanId?: string | undefined;
2199
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2200
+ entityName?: string | undefined;
2201
+ userId?: string | undefined;
2202
+ organizationId?: string | undefined;
2203
+ experimentId?: string | undefined;
2204
+ serviceName?: string | undefined;
2205
+ environment?: string | undefined;
2206
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2207
+ parentEntityName?: string | undefined;
2208
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2209
+ rootEntityName?: string | undefined;
2210
+ resourceId?: string | undefined;
2211
+ runId?: string | undefined;
2212
+ sessionId?: string | undefined;
2213
+ threadId?: string | undefined;
2214
+ requestId?: string | undefined;
2215
+ executionSource?: string | undefined;
2216
+ tags?: string[] | undefined;
2217
+ } | undefined;
2218
+ }, {
2219
+ series: {
2220
+ percentile: number;
2221
+ points: {
2222
+ timestamp: Date;
2223
+ value: number;
2224
+ }[];
2225
+ }[];
2226
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2227
+ scorerId: z.ZodString;
2228
+ scoreSource: z.ZodOptional<z.ZodString>;
2229
+ percentiles: z.ZodArray<z.ZodNumber>;
2230
+ interval: z.ZodEnum<{
2231
+ "1m": "1m";
2232
+ "5m": "5m";
2233
+ "15m": "15m";
2234
+ "1h": "1h";
2235
+ "1d": "1d";
2236
+ }>;
2237
+ filters: z.ZodOptional<z.ZodObject<{
2238
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2239
+ scoreSource: z.ZodOptional<z.ZodString>;
2240
+ source: z.ZodOptional<z.ZodString>;
2241
+ timestamp: z.ZodOptional<z.ZodObject<{
2242
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2243
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2244
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2245
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2246
+ }, z.core.$strip>>;
2247
+ traceId: z.ZodOptional<z.ZodString>;
2248
+ spanId: z.ZodOptional<z.ZodString>;
2249
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2250
+ entityName: z.ZodOptional<z.ZodString>;
2251
+ userId: z.ZodOptional<z.ZodString>;
2252
+ organizationId: z.ZodOptional<z.ZodString>;
2253
+ experimentId: z.ZodOptional<z.ZodString>;
2254
+ serviceName: z.ZodOptional<z.ZodString>;
2255
+ environment: z.ZodOptional<z.ZodString>;
2256
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2257
+ parentEntityName: z.ZodOptional<z.ZodString>;
2258
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2259
+ rootEntityName: z.ZodOptional<z.ZodString>;
2260
+ resourceId: z.ZodOptional<z.ZodString>;
2261
+ runId: z.ZodOptional<z.ZodString>;
2262
+ sessionId: z.ZodOptional<z.ZodString>;
2263
+ threadId: z.ZodOptional<z.ZodString>;
2264
+ requestId: z.ZodOptional<z.ZodString>;
2265
+ executionSource: z.ZodOptional<z.ZodString>;
2266
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2267
+ }, z.core.$strip>>;
2268
+ }, z.core.$strip>, z.ZodObject<{
2269
+ series: z.ZodArray<z.ZodObject<{
2270
+ percentile: z.ZodNumber;
2271
+ points: z.ZodArray<z.ZodObject<{
2272
+ timestamp: z.ZodDate;
2273
+ value: z.ZodNumber;
2274
+ }, z.core.$strip>>;
2275
+ }, z.core.$strip>>;
2276
+ }, z.core.$strip>>, string, `/${string}`>;
2277
+ LIST_FEEDBACK: import("../server-adapter").ServerRoute<Record<string, unknown>, {
692
2278
  pagination: {
693
2279
  total: number;
694
2280
  page: number;
695
2281
  perPage: number | false;
696
2282
  hasMore: boolean;
697
2283
  };
698
- logs: {
2284
+ feedback: {
699
2285
  timestamp: Date;
700
- level: "debug" | "info" | "warn" | "error" | "fatal";
701
- message: string;
702
- tags?: string[] | null | undefined;
2286
+ traceId: string;
2287
+ feedbackType: string;
2288
+ value: string | number;
2289
+ sourceId?: string | null | undefined;
703
2290
  metadata?: Record<string, unknown> | null | undefined;
2291
+ executionSource?: string | null | undefined;
2292
+ tags?: string[] | null | undefined;
704
2293
  entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
705
2294
  entityId?: string | null | undefined;
706
2295
  entityName?: string | null | undefined;
@@ -718,13 +2307,14 @@ export declare const NEW_ROUTES: {
718
2307
  threadId?: string | null | undefined;
719
2308
  requestId?: string | null | undefined;
720
2309
  environment?: string | null | undefined;
721
- source?: string | null | undefined;
722
2310
  serviceName?: string | null | undefined;
723
2311
  scope?: Record<string, unknown> | null | undefined;
724
2312
  experimentId?: string | null | undefined;
725
- data?: Record<string, unknown> | null | undefined;
726
- traceId?: string | null | undefined;
727
2313
  spanId?: string | null | undefined;
2314
+ feedbackSource?: string | null | undefined;
2315
+ source?: string | null | undefined;
2316
+ comment?: string | null | undefined;
2317
+ feedbackUserId?: string | null | undefined;
728
2318
  }[];
729
2319
  }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
730
2320
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -735,9 +2325,11 @@ export declare const NEW_ROUTES: {
735
2325
  perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
736
2326
  hasMore: z.ZodBoolean;
737
2327
  }, z.core.$strip>;
738
- logs: z.ZodArray<z.ZodObject<{
739
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2328
+ feedback: z.ZodArray<z.ZodObject<{
2329
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
2330
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2331
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2332
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
741
2333
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
742
2334
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
2335
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -755,192 +2347,494 @@ export declare const NEW_ROUTES: {
755
2347
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
2348
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
2349
  environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
2350
  serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
2351
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
761
2352
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
2353
  timestamp: z.ZodDate;
763
- level: z.ZodEnum<{
764
- error: "error";
765
- debug: "debug";
766
- info: "info";
767
- warn: "warn";
768
- fatal: "fatal";
769
- }>;
770
- message: z.ZodString;
771
- data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
772
- traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2354
+ traceId: z.ZodString;
2355
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2356
+ feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2357
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2358
+ feedbackType: z.ZodString;
2359
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2360
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2361
+ feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2362
+ }, z.core.$strip>>;
2363
+ }, z.core.$strip>>, string, `/${string}`>;
2364
+ CREATE_FEEDBACK: import("../server-adapter").ServerRoute<{
2365
+ feedback: {
2366
+ value: string | number;
2367
+ traceId: string;
2368
+ feedbackType: string;
2369
+ spanId?: string | null | undefined;
2370
+ source?: string | null | undefined;
2371
+ metadata?: Record<string, unknown> | null | undefined;
2372
+ executionSource?: string | null | undefined;
2373
+ tags?: string[] | null | undefined;
2374
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
2375
+ entityId?: string | null | undefined;
2376
+ entityName?: string | null | undefined;
2377
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
2378
+ parentEntityId?: string | null | undefined;
2379
+ parentEntityName?: string | null | undefined;
2380
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | null | undefined;
2381
+ rootEntityId?: string | null | undefined;
2382
+ rootEntityName?: string | null | undefined;
2383
+ userId?: string | null | undefined;
2384
+ organizationId?: string | null | undefined;
2385
+ resourceId?: string | null | undefined;
2386
+ runId?: string | null | undefined;
2387
+ sessionId?: string | null | undefined;
2388
+ threadId?: string | null | undefined;
2389
+ requestId?: string | null | undefined;
2390
+ environment?: string | null | undefined;
2391
+ serviceName?: string | null | undefined;
2392
+ scope?: Record<string, unknown> | null | undefined;
2393
+ experimentId?: string | null | undefined;
2394
+ feedbackUserId?: string | null | undefined;
2395
+ feedbackSource?: string | null | undefined;
2396
+ comment?: string | null | undefined;
2397
+ sourceId?: string | null | undefined;
2398
+ };
2399
+ }, {
2400
+ success: boolean;
2401
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2402
+ feedback: z.ZodObject<{
2403
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2404
+ traceId: z.ZodString;
773
2405
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2406
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2407
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2408
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2409
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2410
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
2411
+ entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2412
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2413
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
2414
+ parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2415
+ parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2416
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>>;
2417
+ rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2418
+ rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2419
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2420
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2421
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2422
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2423
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2424
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2425
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2426
+ environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2427
+ serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2428
+ scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2429
+ experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2430
+ feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2431
+ feedbackType: z.ZodString;
2432
+ feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2433
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2434
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2435
+ }, z.core.$strip>;
2436
+ }, z.core.$strip>, z.ZodObject<{
2437
+ success: z.ZodBoolean;
2438
+ }, z.core.$strip>>, string, `/${string}`>;
2439
+ GET_FEEDBACK_AGGREGATE: import("../server-adapter").ServerRoute<{
2440
+ feedbackType: string;
2441
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
2442
+ feedbackSource?: string | undefined;
2443
+ filters?: {
2444
+ feedbackType?: string | string[] | undefined;
2445
+ feedbackSource?: string | undefined;
2446
+ source?: string | undefined;
2447
+ feedbackUserId?: string | undefined;
2448
+ timestamp?: {
2449
+ start?: Date | undefined;
2450
+ end?: Date | undefined;
2451
+ startExclusive?: boolean | undefined;
2452
+ endExclusive?: boolean | undefined;
2453
+ } | undefined;
2454
+ traceId?: string | undefined;
2455
+ spanId?: string | undefined;
2456
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2457
+ entityName?: string | undefined;
2458
+ userId?: string | undefined;
2459
+ organizationId?: string | undefined;
2460
+ experimentId?: string | undefined;
2461
+ serviceName?: string | undefined;
2462
+ environment?: string | undefined;
2463
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2464
+ parentEntityName?: string | undefined;
2465
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2466
+ rootEntityName?: string | undefined;
2467
+ resourceId?: string | undefined;
2468
+ runId?: string | undefined;
2469
+ sessionId?: string | undefined;
2470
+ threadId?: string | undefined;
2471
+ requestId?: string | undefined;
2472
+ executionSource?: string | undefined;
2473
+ tags?: string[] | undefined;
2474
+ } | undefined;
2475
+ comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
2476
+ }, {
2477
+ value: number | null;
2478
+ previousValue?: number | null | undefined;
2479
+ changePercent?: number | null | undefined;
2480
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2481
+ feedbackType: z.ZodString;
2482
+ feedbackSource: z.ZodOptional<z.ZodString>;
2483
+ aggregation: z.ZodEnum<{
2484
+ sum: "sum";
2485
+ avg: "avg";
2486
+ min: "min";
2487
+ max: "max";
2488
+ count: "count";
2489
+ last: "last";
2490
+ }>;
2491
+ filters: z.ZodOptional<z.ZodObject<{
2492
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2493
+ feedbackSource: z.ZodOptional<z.ZodString>;
2494
+ source: z.ZodOptional<z.ZodString>;
2495
+ feedbackUserId: z.ZodOptional<z.ZodString>;
2496
+ timestamp: z.ZodOptional<z.ZodObject<{
2497
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2498
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2499
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2500
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2501
+ }, z.core.$strip>>;
2502
+ traceId: z.ZodOptional<z.ZodString>;
2503
+ spanId: z.ZodOptional<z.ZodString>;
2504
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2505
+ entityName: z.ZodOptional<z.ZodString>;
2506
+ userId: z.ZodOptional<z.ZodString>;
2507
+ organizationId: z.ZodOptional<z.ZodString>;
2508
+ experimentId: z.ZodOptional<z.ZodString>;
2509
+ serviceName: z.ZodOptional<z.ZodString>;
2510
+ environment: z.ZodOptional<z.ZodString>;
2511
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2512
+ parentEntityName: z.ZodOptional<z.ZodString>;
2513
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2514
+ rootEntityName: z.ZodOptional<z.ZodString>;
2515
+ resourceId: z.ZodOptional<z.ZodString>;
2516
+ runId: z.ZodOptional<z.ZodString>;
2517
+ sessionId: z.ZodOptional<z.ZodString>;
2518
+ threadId: z.ZodOptional<z.ZodString>;
2519
+ requestId: z.ZodOptional<z.ZodString>;
2520
+ executionSource: z.ZodOptional<z.ZodString>;
2521
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2522
+ }, z.core.$strip>>;
2523
+ comparePeriod: z.ZodOptional<z.ZodEnum<{
2524
+ previous_period: "previous_period";
2525
+ previous_day: "previous_day";
2526
+ previous_week: "previous_week";
2527
+ }>>;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ value: z.ZodNullable<z.ZodNumber>;
2530
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2531
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2532
+ }, z.core.$strip>>, string, `/${string}`>;
2533
+ GET_FEEDBACK_BREAKDOWN: import("../server-adapter").ServerRoute<{
2534
+ feedbackType: string;
2535
+ groupBy: string[];
2536
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
2537
+ feedbackSource?: string | undefined;
2538
+ filters?: {
2539
+ feedbackType?: string | string[] | undefined;
2540
+ feedbackSource?: string | undefined;
2541
+ source?: string | undefined;
2542
+ feedbackUserId?: string | undefined;
2543
+ timestamp?: {
2544
+ start?: Date | undefined;
2545
+ end?: Date | undefined;
2546
+ startExclusive?: boolean | undefined;
2547
+ endExclusive?: boolean | undefined;
2548
+ } | undefined;
2549
+ traceId?: string | undefined;
2550
+ spanId?: string | undefined;
2551
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2552
+ entityName?: string | undefined;
2553
+ userId?: string | undefined;
2554
+ organizationId?: string | undefined;
2555
+ experimentId?: string | undefined;
2556
+ serviceName?: string | undefined;
2557
+ environment?: string | undefined;
2558
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2559
+ parentEntityName?: string | undefined;
2560
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2561
+ rootEntityName?: string | undefined;
2562
+ resourceId?: string | undefined;
2563
+ runId?: string | undefined;
2564
+ sessionId?: string | undefined;
2565
+ threadId?: string | undefined;
2566
+ requestId?: string | undefined;
2567
+ executionSource?: string | undefined;
2568
+ tags?: string[] | undefined;
2569
+ } | undefined;
2570
+ }, {
2571
+ groups: {
2572
+ dimensions: Record<string, string | null>;
2573
+ value: number;
2574
+ }[];
2575
+ }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2576
+ feedbackType: z.ZodString;
2577
+ feedbackSource: z.ZodOptional<z.ZodString>;
2578
+ groupBy: z.ZodArray<z.ZodString>;
2579
+ aggregation: z.ZodEnum<{
2580
+ sum: "sum";
2581
+ avg: "avg";
2582
+ min: "min";
2583
+ max: "max";
2584
+ count: "count";
2585
+ last: "last";
2586
+ }>;
2587
+ filters: z.ZodOptional<z.ZodObject<{
2588
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2589
+ feedbackSource: z.ZodOptional<z.ZodString>;
2590
+ source: z.ZodOptional<z.ZodString>;
2591
+ feedbackUserId: z.ZodOptional<z.ZodString>;
2592
+ timestamp: z.ZodOptional<z.ZodObject<{
2593
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2594
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2595
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2596
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2597
+ }, z.core.$strip>>;
2598
+ traceId: z.ZodOptional<z.ZodString>;
2599
+ spanId: z.ZodOptional<z.ZodString>;
2600
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2601
+ entityName: z.ZodOptional<z.ZodString>;
2602
+ userId: z.ZodOptional<z.ZodString>;
2603
+ organizationId: z.ZodOptional<z.ZodString>;
2604
+ experimentId: z.ZodOptional<z.ZodString>;
2605
+ serviceName: z.ZodOptional<z.ZodString>;
2606
+ environment: z.ZodOptional<z.ZodString>;
2607
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2608
+ parentEntityName: z.ZodOptional<z.ZodString>;
2609
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2610
+ rootEntityName: z.ZodOptional<z.ZodString>;
2611
+ resourceId: z.ZodOptional<z.ZodString>;
2612
+ runId: z.ZodOptional<z.ZodString>;
2613
+ sessionId: z.ZodOptional<z.ZodString>;
2614
+ threadId: z.ZodOptional<z.ZodString>;
2615
+ requestId: z.ZodOptional<z.ZodString>;
2616
+ executionSource: z.ZodOptional<z.ZodString>;
2617
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
774
2618
  }, z.core.$strip>>;
775
- }, z.core.$strip>>, string, `/${string}`>;
776
- LIST_SCORES: import("../server-adapter").ServerRoute<Record<string, unknown>, {
777
- pagination: {
778
- total: number;
779
- page: number;
780
- perPage: number | false;
781
- hasMore: boolean;
782
- };
783
- scores: {
784
- timestamp: Date;
785
- traceId: string;
786
- scorerId: string;
787
- score: number;
788
- spanId?: string | null | undefined;
789
- scorerVersion?: string | null | undefined;
790
- source?: string | null | undefined;
791
- reason?: string | null | undefined;
792
- experimentId?: string | null | undefined;
793
- scoreTraceId?: string | null | undefined;
794
- metadata?: Record<string, unknown> | null | undefined;
795
- }[];
796
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
797
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
798
- }>, z.core.$strip>, undefined, z.ZodObject<{
799
- pagination: z.ZodObject<{
800
- total: z.ZodNumber;
801
- page: z.ZodNumber;
802
- perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
803
- hasMore: z.ZodBoolean;
804
- }, z.core.$strip>;
805
- scores: z.ZodArray<z.ZodObject<{
806
- timestamp: z.ZodDate;
807
- traceId: z.ZodString;
808
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
- scorerId: z.ZodString;
810
- scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
811
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
- score: z.ZodNumber;
813
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
814
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
816
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2619
+ }, z.core.$strip>, z.ZodObject<{
2620
+ groups: z.ZodArray<z.ZodObject<{
2621
+ dimensions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2622
+ value: z.ZodNumber;
817
2623
  }, z.core.$strip>>;
818
2624
  }, z.core.$strip>>, string, `/${string}`>;
819
- CREATE_SCORE: import("../server-adapter").ServerRoute<{
820
- score: {
821
- traceId: string;
822
- scorerId: string;
823
- score: number;
824
- spanId?: string | null | undefined;
825
- metadata?: Record<string, unknown> | null | undefined;
826
- source?: string | null | undefined;
827
- experimentId?: string | null | undefined;
828
- scorerVersion?: string | null | undefined;
829
- reason?: string | null | undefined;
830
- scoreTraceId?: string | null | undefined;
831
- };
2625
+ GET_FEEDBACK_TIME_SERIES: import("../server-adapter").ServerRoute<{
2626
+ feedbackType: string;
2627
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
2628
+ aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
2629
+ feedbackSource?: string | undefined;
2630
+ filters?: {
2631
+ feedbackType?: string | string[] | undefined;
2632
+ feedbackSource?: string | undefined;
2633
+ source?: string | undefined;
2634
+ feedbackUserId?: string | undefined;
2635
+ timestamp?: {
2636
+ start?: Date | undefined;
2637
+ end?: Date | undefined;
2638
+ startExclusive?: boolean | undefined;
2639
+ endExclusive?: boolean | undefined;
2640
+ } | undefined;
2641
+ traceId?: string | undefined;
2642
+ spanId?: string | undefined;
2643
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2644
+ entityName?: string | undefined;
2645
+ userId?: string | undefined;
2646
+ organizationId?: string | undefined;
2647
+ experimentId?: string | undefined;
2648
+ serviceName?: string | undefined;
2649
+ environment?: string | undefined;
2650
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2651
+ parentEntityName?: string | undefined;
2652
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2653
+ rootEntityName?: string | undefined;
2654
+ resourceId?: string | undefined;
2655
+ runId?: string | undefined;
2656
+ sessionId?: string | undefined;
2657
+ threadId?: string | undefined;
2658
+ requestId?: string | undefined;
2659
+ executionSource?: string | undefined;
2660
+ tags?: string[] | undefined;
2661
+ } | undefined;
2662
+ groupBy?: string[] | undefined;
832
2663
  }, {
833
- success: boolean;
2664
+ series: {
2665
+ name: string;
2666
+ points: {
2667
+ timestamp: Date;
2668
+ value: number;
2669
+ }[];
2670
+ }[];
834
2671
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
835
- score: z.ZodObject<{
836
- traceId: z.ZodString;
837
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
839
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
841
- scorerId: z.ZodString;
842
- score: z.ZodNumber;
843
- scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
846
- }, z.core.$strip>;
2672
+ feedbackType: z.ZodString;
2673
+ feedbackSource: z.ZodOptional<z.ZodString>;
2674
+ interval: z.ZodEnum<{
2675
+ "1m": "1m";
2676
+ "5m": "5m";
2677
+ "15m": "15m";
2678
+ "1h": "1h";
2679
+ "1d": "1d";
2680
+ }>;
2681
+ aggregation: z.ZodEnum<{
2682
+ sum: "sum";
2683
+ avg: "avg";
2684
+ min: "min";
2685
+ max: "max";
2686
+ count: "count";
2687
+ last: "last";
2688
+ }>;
2689
+ filters: z.ZodOptional<z.ZodObject<{
2690
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2691
+ feedbackSource: z.ZodOptional<z.ZodString>;
2692
+ source: z.ZodOptional<z.ZodString>;
2693
+ feedbackUserId: z.ZodOptional<z.ZodString>;
2694
+ timestamp: z.ZodOptional<z.ZodObject<{
2695
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2696
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2697
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2698
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2699
+ }, z.core.$strip>>;
2700
+ traceId: z.ZodOptional<z.ZodString>;
2701
+ spanId: z.ZodOptional<z.ZodString>;
2702
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2703
+ entityName: z.ZodOptional<z.ZodString>;
2704
+ userId: z.ZodOptional<z.ZodString>;
2705
+ organizationId: z.ZodOptional<z.ZodString>;
2706
+ experimentId: z.ZodOptional<z.ZodString>;
2707
+ serviceName: z.ZodOptional<z.ZodString>;
2708
+ environment: z.ZodOptional<z.ZodString>;
2709
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2710
+ parentEntityName: z.ZodOptional<z.ZodString>;
2711
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2712
+ rootEntityName: z.ZodOptional<z.ZodString>;
2713
+ resourceId: z.ZodOptional<z.ZodString>;
2714
+ runId: z.ZodOptional<z.ZodString>;
2715
+ sessionId: z.ZodOptional<z.ZodString>;
2716
+ threadId: z.ZodOptional<z.ZodString>;
2717
+ requestId: z.ZodOptional<z.ZodString>;
2718
+ executionSource: z.ZodOptional<z.ZodString>;
2719
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2720
+ }, z.core.$strip>>;
2721
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
847
2722
  }, z.core.$strip>, z.ZodObject<{
848
- success: z.ZodBoolean;
849
- }, z.core.$strip>>, string, `/${string}`>;
850
- LIST_FEEDBACK: import("../server-adapter").ServerRoute<Record<string, unknown>, {
851
- pagination: {
852
- total: number;
853
- page: number;
854
- perPage: number | false;
855
- hasMore: boolean;
856
- };
857
- feedback: {
858
- timestamp: Date;
859
- traceId: string;
860
- source: string;
861
- feedbackType: string;
862
- value: string | number;
863
- spanId?: string | null | undefined;
864
- comment?: string | null | undefined;
865
- experimentId?: string | null | undefined;
866
- userId?: string | null | undefined;
867
- sourceId?: string | null | undefined;
868
- metadata?: Record<string, unknown> | null | undefined;
869
- }[];
870
- }, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
871
- [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
872
- }>, z.core.$strip>, undefined, z.ZodObject<{
873
- pagination: z.ZodObject<{
874
- total: z.ZodNumber;
875
- page: z.ZodNumber;
876
- perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
877
- hasMore: z.ZodBoolean;
878
- }, z.core.$strip>;
879
- feedback: z.ZodArray<z.ZodObject<{
880
- timestamp: z.ZodDate;
881
- traceId: z.ZodString;
882
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
- source: z.ZodString;
884
- feedbackType: z.ZodString;
885
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
886
- comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2723
+ series: z.ZodArray<z.ZodObject<{
2724
+ name: z.ZodString;
2725
+ points: z.ZodArray<z.ZodObject<{
2726
+ timestamp: z.ZodDate;
2727
+ value: z.ZodNumber;
2728
+ }, z.core.$strip>>;
891
2729
  }, z.core.$strip>>;
892
2730
  }, z.core.$strip>>, string, `/${string}`>;
893
- CREATE_FEEDBACK: import("../server-adapter").ServerRoute<{
894
- feedback: {
895
- value: string | number;
896
- traceId: string;
897
- source: string;
898
- feedbackType: string;
899
- spanId?: string | null | undefined;
900
- metadata?: Record<string, unknown> | null | undefined;
901
- userId?: string | null | undefined;
902
- experimentId?: string | null | undefined;
903
- comment?: string | null | undefined;
904
- sourceId?: string | null | undefined;
905
- };
2731
+ GET_FEEDBACK_PERCENTILES: import("../server-adapter").ServerRoute<{
2732
+ feedbackType: string;
2733
+ percentiles: number[];
2734
+ interval: "5m" | "1h" | "1m" | "15m" | "1d";
2735
+ feedbackSource?: string | undefined;
2736
+ filters?: {
2737
+ feedbackType?: string | string[] | undefined;
2738
+ feedbackSource?: string | undefined;
2739
+ source?: string | undefined;
2740
+ feedbackUserId?: string | undefined;
2741
+ timestamp?: {
2742
+ start?: Date | undefined;
2743
+ end?: Date | undefined;
2744
+ startExclusive?: boolean | undefined;
2745
+ endExclusive?: boolean | undefined;
2746
+ } | undefined;
2747
+ traceId?: string | undefined;
2748
+ spanId?: string | undefined;
2749
+ entityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2750
+ entityName?: string | undefined;
2751
+ userId?: string | undefined;
2752
+ organizationId?: string | undefined;
2753
+ experimentId?: string | undefined;
2754
+ serviceName?: string | undefined;
2755
+ environment?: string | undefined;
2756
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2757
+ parentEntityName?: string | undefined;
2758
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2759
+ rootEntityName?: string | undefined;
2760
+ resourceId?: string | undefined;
2761
+ runId?: string | undefined;
2762
+ sessionId?: string | undefined;
2763
+ threadId?: string | undefined;
2764
+ requestId?: string | undefined;
2765
+ executionSource?: string | undefined;
2766
+ tags?: string[] | undefined;
2767
+ } | undefined;
906
2768
  }, {
907
- success: boolean;
2769
+ series: {
2770
+ percentile: number;
2771
+ points: {
2772
+ timestamp: Date;
2773
+ value: number;
2774
+ }[];
2775
+ }[];
908
2776
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
909
- feedback: z.ZodObject<{
910
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
911
- traceId: z.ZodString;
912
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
914
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
- source: z.ZodString;
916
- experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
- feedbackType: z.ZodString;
918
- comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
920
- }, z.core.$strip>;
2777
+ feedbackType: z.ZodString;
2778
+ feedbackSource: z.ZodOptional<z.ZodString>;
2779
+ percentiles: z.ZodArray<z.ZodNumber>;
2780
+ interval: z.ZodEnum<{
2781
+ "1m": "1m";
2782
+ "5m": "5m";
2783
+ "15m": "15m";
2784
+ "1h": "1h";
2785
+ "1d": "1d";
2786
+ }>;
2787
+ filters: z.ZodOptional<z.ZodObject<{
2788
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2789
+ feedbackSource: z.ZodOptional<z.ZodString>;
2790
+ source: z.ZodOptional<z.ZodString>;
2791
+ feedbackUserId: z.ZodOptional<z.ZodString>;
2792
+ timestamp: z.ZodOptional<z.ZodObject<{
2793
+ start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2794
+ end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2795
+ startExclusive: z.ZodOptional<z.ZodBoolean>;
2796
+ endExclusive: z.ZodOptional<z.ZodBoolean>;
2797
+ }, z.core.$strip>>;
2798
+ traceId: z.ZodOptional<z.ZodString>;
2799
+ spanId: z.ZodOptional<z.ZodString>;
2800
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2801
+ entityName: z.ZodOptional<z.ZodString>;
2802
+ userId: z.ZodOptional<z.ZodString>;
2803
+ organizationId: z.ZodOptional<z.ZodString>;
2804
+ experimentId: z.ZodOptional<z.ZodString>;
2805
+ serviceName: z.ZodOptional<z.ZodString>;
2806
+ environment: z.ZodOptional<z.ZodString>;
2807
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2808
+ parentEntityName: z.ZodOptional<z.ZodString>;
2809
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2810
+ rootEntityName: z.ZodOptional<z.ZodString>;
2811
+ resourceId: z.ZodOptional<z.ZodString>;
2812
+ runId: z.ZodOptional<z.ZodString>;
2813
+ sessionId: z.ZodOptional<z.ZodString>;
2814
+ threadId: z.ZodOptional<z.ZodString>;
2815
+ requestId: z.ZodOptional<z.ZodString>;
2816
+ executionSource: z.ZodOptional<z.ZodString>;
2817
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2818
+ }, z.core.$strip>>;
921
2819
  }, z.core.$strip>, z.ZodObject<{
922
- success: z.ZodBoolean;
2820
+ series: z.ZodArray<z.ZodObject<{
2821
+ percentile: z.ZodNumber;
2822
+ points: z.ZodArray<z.ZodObject<{
2823
+ timestamp: z.ZodDate;
2824
+ value: z.ZodNumber;
2825
+ }, z.core.$strip>>;
2826
+ }, z.core.$strip>>;
923
2827
  }, z.core.$strip>>, string, `/${string}`>;
924
2828
  GET_METRIC_AGGREGATE: import("../server-adapter").ServerRoute<{
925
2829
  name: string[];
926
2830
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
927
2831
  filters?: {
928
2832
  name?: string[] | undefined;
2833
+ source?: string | undefined;
929
2834
  provider?: string | undefined;
930
2835
  model?: string | undefined;
931
2836
  costUnit?: string | undefined;
932
2837
  labels?: Record<string, string> | undefined;
933
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
934
- parentEntityName?: string | undefined;
935
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
936
- rootEntityName?: string | undefined;
937
- resourceId?: string | undefined;
938
- runId?: string | undefined;
939
- sessionId?: string | undefined;
940
- threadId?: string | undefined;
941
- requestId?: string | undefined;
942
- source?: string | undefined;
943
- tags?: string[] | undefined;
944
2838
  timestamp?: {
945
2839
  start?: Date | undefined;
946
2840
  end?: Date | undefined;
@@ -956,16 +2850,27 @@ export declare const NEW_ROUTES: {
956
2850
  experimentId?: string | undefined;
957
2851
  serviceName?: string | undefined;
958
2852
  environment?: string | undefined;
2853
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2854
+ parentEntityName?: string | undefined;
2855
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2856
+ rootEntityName?: string | undefined;
2857
+ resourceId?: string | undefined;
2858
+ runId?: string | undefined;
2859
+ sessionId?: string | undefined;
2860
+ threadId?: string | undefined;
2861
+ requestId?: string | undefined;
2862
+ executionSource?: string | undefined;
2863
+ tags?: string[] | undefined;
959
2864
  } | undefined;
960
2865
  comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
961
2866
  }, {
962
2867
  value: number | null;
963
2868
  estimatedCost?: number | null | undefined;
964
2869
  costUnit?: string | null | undefined;
965
- previousValue?: number | null | undefined;
966
2870
  previousEstimatedCost?: number | null | undefined;
967
- changePercent?: number | null | undefined;
968
2871
  costChangePercent?: number | null | undefined;
2872
+ previousValue?: number | null | undefined;
2873
+ changePercent?: number | null | undefined;
969
2874
  }, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
970
2875
  name: z.ZodArray<z.ZodString>;
971
2876
  aggregation: z.ZodEnum<{
@@ -978,21 +2883,11 @@ export declare const NEW_ROUTES: {
978
2883
  }>;
979
2884
  filters: z.ZodOptional<z.ZodObject<{
980
2885
  name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2886
+ source: z.ZodOptional<z.ZodString>;
981
2887
  provider: z.ZodOptional<z.ZodString>;
982
2888
  model: z.ZodOptional<z.ZodString>;
983
2889
  costUnit: z.ZodOptional<z.ZodString>;
984
2890
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
985
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
986
- parentEntityName: z.ZodOptional<z.ZodString>;
987
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
988
- rootEntityName: z.ZodOptional<z.ZodString>;
989
- resourceId: z.ZodOptional<z.ZodString>;
990
- runId: z.ZodOptional<z.ZodString>;
991
- sessionId: z.ZodOptional<z.ZodString>;
992
- threadId: z.ZodOptional<z.ZodString>;
993
- requestId: z.ZodOptional<z.ZodString>;
994
- source: z.ZodOptional<z.ZodString>;
995
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
996
2891
  timestamp: z.ZodOptional<z.ZodObject<{
997
2892
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
998
2893
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1008,6 +2903,17 @@ export declare const NEW_ROUTES: {
1008
2903
  experimentId: z.ZodOptional<z.ZodString>;
1009
2904
  serviceName: z.ZodOptional<z.ZodString>;
1010
2905
  environment: z.ZodOptional<z.ZodString>;
2906
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2907
+ parentEntityName: z.ZodOptional<z.ZodString>;
2908
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
2909
+ rootEntityName: z.ZodOptional<z.ZodString>;
2910
+ resourceId: z.ZodOptional<z.ZodString>;
2911
+ runId: z.ZodOptional<z.ZodString>;
2912
+ sessionId: z.ZodOptional<z.ZodString>;
2913
+ threadId: z.ZodOptional<z.ZodString>;
2914
+ requestId: z.ZodOptional<z.ZodString>;
2915
+ executionSource: z.ZodOptional<z.ZodString>;
2916
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1011
2917
  }, z.core.$strip>>;
1012
2918
  comparePeriod: z.ZodOptional<z.ZodEnum<{
1013
2919
  previous_period: "previous_period";
@@ -1015,13 +2921,13 @@ export declare const NEW_ROUTES: {
1015
2921
  previous_week: "previous_week";
1016
2922
  }>>;
1017
2923
  }, z.core.$strip>, z.ZodObject<{
1018
- value: z.ZodNullable<z.ZodNumber>;
1019
2924
  estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1020
2925
  costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
- previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1022
2926
  previousEstimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1023
- changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1024
2927
  costChangePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2928
+ value: z.ZodNullable<z.ZodNumber>;
2929
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2930
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1025
2931
  }, z.core.$strip>>, string, `/${string}`>;
1026
2932
  GET_METRIC_BREAKDOWN: import("../server-adapter").ServerRoute<{
1027
2933
  name: string[];
@@ -1029,21 +2935,11 @@ export declare const NEW_ROUTES: {
1029
2935
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1030
2936
  filters?: {
1031
2937
  name?: string[] | undefined;
2938
+ source?: string | undefined;
1032
2939
  provider?: string | undefined;
1033
2940
  model?: string | undefined;
1034
2941
  costUnit?: string | undefined;
1035
2942
  labels?: Record<string, string> | undefined;
1036
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1037
- parentEntityName?: string | undefined;
1038
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1039
- rootEntityName?: string | undefined;
1040
- resourceId?: string | undefined;
1041
- runId?: string | undefined;
1042
- sessionId?: string | undefined;
1043
- threadId?: string | undefined;
1044
- requestId?: string | undefined;
1045
- source?: string | undefined;
1046
- tags?: string[] | undefined;
1047
2943
  timestamp?: {
1048
2944
  start?: Date | undefined;
1049
2945
  end?: Date | undefined;
@@ -1059,6 +2955,17 @@ export declare const NEW_ROUTES: {
1059
2955
  experimentId?: string | undefined;
1060
2956
  serviceName?: string | undefined;
1061
2957
  environment?: string | undefined;
2958
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2959
+ parentEntityName?: string | undefined;
2960
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
2961
+ rootEntityName?: string | undefined;
2962
+ resourceId?: string | undefined;
2963
+ runId?: string | undefined;
2964
+ sessionId?: string | undefined;
2965
+ threadId?: string | undefined;
2966
+ requestId?: string | undefined;
2967
+ executionSource?: string | undefined;
2968
+ tags?: string[] | undefined;
1062
2969
  } | undefined;
1063
2970
  }, {
1064
2971
  groups: {
@@ -1080,21 +2987,11 @@ export declare const NEW_ROUTES: {
1080
2987
  }>;
1081
2988
  filters: z.ZodOptional<z.ZodObject<{
1082
2989
  name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2990
+ source: z.ZodOptional<z.ZodString>;
1083
2991
  provider: z.ZodOptional<z.ZodString>;
1084
2992
  model: z.ZodOptional<z.ZodString>;
1085
2993
  costUnit: z.ZodOptional<z.ZodString>;
1086
2994
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1087
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1088
- parentEntityName: z.ZodOptional<z.ZodString>;
1089
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1090
- rootEntityName: z.ZodOptional<z.ZodString>;
1091
- resourceId: z.ZodOptional<z.ZodString>;
1092
- runId: z.ZodOptional<z.ZodString>;
1093
- sessionId: z.ZodOptional<z.ZodString>;
1094
- threadId: z.ZodOptional<z.ZodString>;
1095
- requestId: z.ZodOptional<z.ZodString>;
1096
- source: z.ZodOptional<z.ZodString>;
1097
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1098
2995
  timestamp: z.ZodOptional<z.ZodObject<{
1099
2996
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1100
2997
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1110,6 +3007,17 @@ export declare const NEW_ROUTES: {
1110
3007
  experimentId: z.ZodOptional<z.ZodString>;
1111
3008
  serviceName: z.ZodOptional<z.ZodString>;
1112
3009
  environment: z.ZodOptional<z.ZodString>;
3010
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3011
+ parentEntityName: z.ZodOptional<z.ZodString>;
3012
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3013
+ rootEntityName: z.ZodOptional<z.ZodString>;
3014
+ resourceId: z.ZodOptional<z.ZodString>;
3015
+ runId: z.ZodOptional<z.ZodString>;
3016
+ sessionId: z.ZodOptional<z.ZodString>;
3017
+ threadId: z.ZodOptional<z.ZodString>;
3018
+ requestId: z.ZodOptional<z.ZodString>;
3019
+ executionSource: z.ZodOptional<z.ZodString>;
3020
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1113
3021
  }, z.core.$strip>>;
1114
3022
  }, z.core.$strip>, z.ZodObject<{
1115
3023
  groups: z.ZodArray<z.ZodObject<{
@@ -1125,21 +3033,11 @@ export declare const NEW_ROUTES: {
1125
3033
  aggregation: "count" | "max" | "min" | "sum" | "avg" | "last";
1126
3034
  filters?: {
1127
3035
  name?: string[] | undefined;
3036
+ source?: string | undefined;
1128
3037
  provider?: string | undefined;
1129
3038
  model?: string | undefined;
1130
3039
  costUnit?: string | undefined;
1131
3040
  labels?: Record<string, string> | undefined;
1132
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1133
- parentEntityName?: string | undefined;
1134
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1135
- rootEntityName?: string | undefined;
1136
- resourceId?: string | undefined;
1137
- runId?: string | undefined;
1138
- sessionId?: string | undefined;
1139
- threadId?: string | undefined;
1140
- requestId?: string | undefined;
1141
- source?: string | undefined;
1142
- tags?: string[] | undefined;
1143
3041
  timestamp?: {
1144
3042
  start?: Date | undefined;
1145
3043
  end?: Date | undefined;
@@ -1155,6 +3053,17 @@ export declare const NEW_ROUTES: {
1155
3053
  experimentId?: string | undefined;
1156
3054
  serviceName?: string | undefined;
1157
3055
  environment?: string | undefined;
3056
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
3057
+ parentEntityName?: string | undefined;
3058
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
3059
+ rootEntityName?: string | undefined;
3060
+ resourceId?: string | undefined;
3061
+ runId?: string | undefined;
3062
+ sessionId?: string | undefined;
3063
+ threadId?: string | undefined;
3064
+ requestId?: string | undefined;
3065
+ executionSource?: string | undefined;
3066
+ tags?: string[] | undefined;
1158
3067
  } | undefined;
1159
3068
  groupBy?: string[] | undefined;
1160
3069
  }, {
@@ -1186,21 +3095,11 @@ export declare const NEW_ROUTES: {
1186
3095
  }>;
1187
3096
  filters: z.ZodOptional<z.ZodObject<{
1188
3097
  name: z.ZodOptional<z.ZodArray<z.ZodString>>;
3098
+ source: z.ZodOptional<z.ZodString>;
1189
3099
  provider: z.ZodOptional<z.ZodString>;
1190
3100
  model: z.ZodOptional<z.ZodString>;
1191
3101
  costUnit: z.ZodOptional<z.ZodString>;
1192
3102
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1193
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1194
- parentEntityName: z.ZodOptional<z.ZodString>;
1195
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1196
- rootEntityName: z.ZodOptional<z.ZodString>;
1197
- resourceId: z.ZodOptional<z.ZodString>;
1198
- runId: z.ZodOptional<z.ZodString>;
1199
- sessionId: z.ZodOptional<z.ZodString>;
1200
- threadId: z.ZodOptional<z.ZodString>;
1201
- requestId: z.ZodOptional<z.ZodString>;
1202
- source: z.ZodOptional<z.ZodString>;
1203
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1204
3103
  timestamp: z.ZodOptional<z.ZodObject<{
1205
3104
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1206
3105
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1216,6 +3115,17 @@ export declare const NEW_ROUTES: {
1216
3115
  experimentId: z.ZodOptional<z.ZodString>;
1217
3116
  serviceName: z.ZodOptional<z.ZodString>;
1218
3117
  environment: z.ZodOptional<z.ZodString>;
3118
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3119
+ parentEntityName: z.ZodOptional<z.ZodString>;
3120
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3121
+ rootEntityName: z.ZodOptional<z.ZodString>;
3122
+ resourceId: z.ZodOptional<z.ZodString>;
3123
+ runId: z.ZodOptional<z.ZodString>;
3124
+ sessionId: z.ZodOptional<z.ZodString>;
3125
+ threadId: z.ZodOptional<z.ZodString>;
3126
+ requestId: z.ZodOptional<z.ZodString>;
3127
+ executionSource: z.ZodOptional<z.ZodString>;
3128
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1219
3129
  }, z.core.$strip>>;
1220
3130
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1221
3131
  }, z.core.$strip>, z.ZodObject<{
@@ -1235,21 +3145,11 @@ export declare const NEW_ROUTES: {
1235
3145
  interval: "5m" | "1h" | "1m" | "15m" | "1d";
1236
3146
  filters?: {
1237
3147
  name?: string[] | undefined;
3148
+ source?: string | undefined;
1238
3149
  provider?: string | undefined;
1239
3150
  model?: string | undefined;
1240
3151
  costUnit?: string | undefined;
1241
3152
  labels?: Record<string, string> | undefined;
1242
- parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1243
- parentEntityName?: string | undefined;
1244
- rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
1245
- rootEntityName?: string | undefined;
1246
- resourceId?: string | undefined;
1247
- runId?: string | undefined;
1248
- sessionId?: string | undefined;
1249
- threadId?: string | undefined;
1250
- requestId?: string | undefined;
1251
- source?: string | undefined;
1252
- tags?: string[] | undefined;
1253
3153
  timestamp?: {
1254
3154
  start?: Date | undefined;
1255
3155
  end?: Date | undefined;
@@ -1265,6 +3165,17 @@ export declare const NEW_ROUTES: {
1265
3165
  experimentId?: string | undefined;
1266
3166
  serviceName?: string | undefined;
1267
3167
  environment?: string | undefined;
3168
+ parentEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
3169
+ parentEntityName?: string | undefined;
3170
+ rootEntityType?: import("../../_types/@internal_core/dist/index.js").EntityType | undefined;
3171
+ rootEntityName?: string | undefined;
3172
+ resourceId?: string | undefined;
3173
+ runId?: string | undefined;
3174
+ sessionId?: string | undefined;
3175
+ threadId?: string | undefined;
3176
+ requestId?: string | undefined;
3177
+ executionSource?: string | undefined;
3178
+ tags?: string[] | undefined;
1268
3179
  } | undefined;
1269
3180
  }, {
1270
3181
  series: {
@@ -1286,21 +3197,11 @@ export declare const NEW_ROUTES: {
1286
3197
  }>;
1287
3198
  filters: z.ZodOptional<z.ZodObject<{
1288
3199
  name: z.ZodOptional<z.ZodArray<z.ZodString>>;
3200
+ source: z.ZodOptional<z.ZodString>;
1289
3201
  provider: z.ZodOptional<z.ZodString>;
1290
3202
  model: z.ZodOptional<z.ZodString>;
1291
3203
  costUnit: z.ZodOptional<z.ZodString>;
1292
3204
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1293
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1294
- parentEntityName: z.ZodOptional<z.ZodString>;
1295
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
1296
- rootEntityName: z.ZodOptional<z.ZodString>;
1297
- resourceId: z.ZodOptional<z.ZodString>;
1298
- runId: z.ZodOptional<z.ZodString>;
1299
- sessionId: z.ZodOptional<z.ZodString>;
1300
- threadId: z.ZodOptional<z.ZodString>;
1301
- requestId: z.ZodOptional<z.ZodString>;
1302
- source: z.ZodOptional<z.ZodString>;
1303
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1304
3205
  timestamp: z.ZodOptional<z.ZodObject<{
1305
3206
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1306
3207
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1316,6 +3217,17 @@ export declare const NEW_ROUTES: {
1316
3217
  experimentId: z.ZodOptional<z.ZodString>;
1317
3218
  serviceName: z.ZodOptional<z.ZodString>;
1318
3219
  environment: z.ZodOptional<z.ZodString>;
3220
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3221
+ parentEntityName: z.ZodOptional<z.ZodString>;
3222
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/index.js").EntityType>>;
3223
+ rootEntityName: z.ZodOptional<z.ZodString>;
3224
+ resourceId: z.ZodOptional<z.ZodString>;
3225
+ runId: z.ZodOptional<z.ZodString>;
3226
+ sessionId: z.ZodOptional<z.ZodString>;
3227
+ threadId: z.ZodOptional<z.ZodString>;
3228
+ requestId: z.ZodOptional<z.ZodString>;
3229
+ executionSource: z.ZodOptional<z.ZodString>;
3230
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1319
3231
  }, z.core.$strip>>;
1320
3232
  }, z.core.$strip>, z.ZodObject<{
1321
3233
  series: z.ZodArray<z.ZodObject<{