@kong-ui-public/analytics-utilities 10.1.6-pr.2346.f88f58bb7.0 → 10.1.6-pr.2363.57c84ee0b.0

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.
@@ -1,2020 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const dashboardTileTypes: readonly ["horizontal_bar", "vertical_bar", "gauge", "donut", "timeseries_line", "timeseries_bar", "golden_signals", "top_n", "slottable", "single_value"];
3
- export type DashboardTileType = typeof dashboardTileTypes[number];
4
- export declare const zSlottableSchema: z.ZodObject<{
5
- type: z.ZodLiteral<"slottable">;
6
- id: z.ZodString;
7
- }, z.core.$strict>;
8
- export type SlottableOptions = z.infer<typeof zSlottableSchema>;
9
- export declare const zBarChartSchema: z.ZodObject<{
10
- type: z.ZodEnum<{
11
- horizontal_bar: "horizontal_bar";
12
- vertical_bar: "vertical_bar";
13
- }>;
14
- stacked: z.ZodOptional<z.ZodBoolean>;
15
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
16
- synthetics_data_key: z.ZodOptional<z.ZodString>;
17
- chart_title: z.ZodOptional<z.ZodString>;
18
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
19
- }, z.core.$strict>;
20
- export type BarChartOptions = z.infer<typeof zBarChartSchema>;
21
- export declare const zTimeseriesChartSchema: z.ZodObject<{
22
- type: z.ZodEnum<{
23
- timeseries_line: "timeseries_line";
24
- timeseries_bar: "timeseries_bar";
25
- }>;
26
- stacked: z.ZodOptional<z.ZodBoolean>;
27
- threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
28
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
29
- synthetics_data_key: z.ZodOptional<z.ZodString>;
30
- chart_title: z.ZodOptional<z.ZodString>;
31
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
32
- }, z.core.$strict>;
33
- export type TimeseriesChartOptions = z.infer<typeof zTimeseriesChartSchema>;
34
- export declare const zGaugeChartSchema: z.ZodObject<{
35
- type: z.ZodLiteral<"gauge">;
36
- metric_display: z.ZodOptional<z.ZodEnum<{
37
- hidden: "hidden";
38
- single: "single";
39
- full: "full";
40
- }>>;
41
- reverse_dataset: z.ZodOptional<z.ZodBoolean>;
42
- numerator: z.ZodOptional<z.ZodNumber>;
43
- synthetics_data_key: z.ZodOptional<z.ZodString>;
44
- chart_title: z.ZodOptional<z.ZodString>;
45
- }, z.core.$strict>;
46
- export type GaugeChartOptions = z.infer<typeof zGaugeChartSchema>;
47
- export declare const zDonutChartSchema: z.ZodObject<{
48
- type: z.ZodLiteral<"donut">;
49
- synthetics_data_key: z.ZodOptional<z.ZodString>;
50
- chart_title: z.ZodOptional<z.ZodString>;
51
- }, z.core.$strict>;
52
- export type DonutChartOptions = z.infer<typeof zDonutChartSchema>;
53
- export declare const zTopNTableSchema: z.ZodObject<{
54
- type: z.ZodLiteral<"top_n">;
55
- chart_title: z.ZodOptional<z.ZodString>;
56
- synthetics_data_key: z.ZodOptional<z.ZodString>;
57
- description: z.ZodOptional<z.ZodString>;
58
- entity_link: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strict>;
60
- export type TopNTableOptions = z.infer<typeof zTopNTableSchema>;
61
- export declare const zMetricCardSchema: z.ZodObject<{
62
- type: z.ZodLiteral<"golden_signals">;
63
- chart_title: z.ZodOptional<z.ZodString>;
64
- long_card_titles: z.ZodOptional<z.ZodBoolean>;
65
- description: z.ZodOptional<z.ZodString>;
66
- percentile_latency: z.ZodOptional<z.ZodBoolean>;
67
- }, z.core.$strict>;
68
- export type MetricCardOptions = z.infer<typeof zMetricCardSchema>;
69
- export declare const zSingleValueSchema: z.ZodObject<{
70
- type: z.ZodLiteral<"single_value">;
71
- decimal_points: z.ZodOptional<z.ZodNumber>;
72
- chart_title: z.ZodOptional<z.ZodString>;
73
- }, z.core.$strict>;
74
- export type SingleValueOptions = z.infer<typeof zSingleValueSchema>;
75
- declare const zChartOptions: z.ZodUnion<readonly [z.ZodObject<{
76
- type: z.ZodEnum<{
77
- horizontal_bar: "horizontal_bar";
78
- vertical_bar: "vertical_bar";
79
- }>;
80
- stacked: z.ZodOptional<z.ZodBoolean>;
81
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
82
- synthetics_data_key: z.ZodOptional<z.ZodString>;
83
- chart_title: z.ZodOptional<z.ZodString>;
84
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
85
- }, z.core.$strict>, z.ZodObject<{
86
- type: z.ZodLiteral<"gauge">;
87
- metric_display: z.ZodOptional<z.ZodEnum<{
88
- hidden: "hidden";
89
- single: "single";
90
- full: "full";
91
- }>>;
92
- reverse_dataset: z.ZodOptional<z.ZodBoolean>;
93
- numerator: z.ZodOptional<z.ZodNumber>;
94
- synthetics_data_key: z.ZodOptional<z.ZodString>;
95
- chart_title: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strict>, z.ZodObject<{
97
- type: z.ZodLiteral<"donut">;
98
- synthetics_data_key: z.ZodOptional<z.ZodString>;
99
- chart_title: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strict>, z.ZodObject<{
101
- type: z.ZodEnum<{
102
- timeseries_line: "timeseries_line";
103
- timeseries_bar: "timeseries_bar";
104
- }>;
105
- stacked: z.ZodOptional<z.ZodBoolean>;
106
- threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
107
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
108
- synthetics_data_key: z.ZodOptional<z.ZodString>;
109
- chart_title: z.ZodOptional<z.ZodString>;
110
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
111
- }, z.core.$strict>, z.ZodObject<{
112
- type: z.ZodLiteral<"golden_signals">;
113
- chart_title: z.ZodOptional<z.ZodString>;
114
- long_card_titles: z.ZodOptional<z.ZodBoolean>;
115
- description: z.ZodOptional<z.ZodString>;
116
- percentile_latency: z.ZodOptional<z.ZodBoolean>;
117
- }, z.core.$strict>, z.ZodObject<{
118
- type: z.ZodLiteral<"top_n">;
119
- chart_title: z.ZodOptional<z.ZodString>;
120
- synthetics_data_key: z.ZodOptional<z.ZodString>;
121
- description: z.ZodOptional<z.ZodString>;
122
- entity_link: z.ZodOptional<z.ZodString>;
123
- }, z.core.$strict>, z.ZodObject<{
124
- type: z.ZodLiteral<"slottable">;
125
- id: z.ZodString;
126
- }, z.core.$strict>, z.ZodObject<{
127
- type: z.ZodLiteral<"single_value">;
128
- decimal_points: z.ZodOptional<z.ZodNumber>;
129
- chart_title: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strict>]>;
131
- export type ChartOptions = z.infer<typeof zChartOptions>;
132
- export declare const zApiUsageQuery: z.ZodObject<{
133
- granularity: z.ZodOptional<z.ZodEnum<{
134
- secondly: "secondly";
135
- tenSecondly: "tenSecondly";
136
- thirtySecondly: "thirtySecondly";
137
- minutely: "minutely";
138
- fiveMinutely: "fiveMinutely";
139
- tenMinutely: "tenMinutely";
140
- thirtyMinutely: "thirtyMinutely";
141
- hourly: "hourly";
142
- twoHourly: "twoHourly";
143
- twelveHourly: "twelveHourly";
144
- daily: "daily";
145
- weekly: "weekly";
146
- trend: "trend";
147
- }>>;
148
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
149
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
150
- type: z.ZodLiteral<"relative">;
151
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
152
- "15m": "15m";
153
- "1h": "1h";
154
- "6h": "6h";
155
- "12h": "12h";
156
- "24h": "24h";
157
- "7d": "7d";
158
- "30d": "30d";
159
- current_week: "current_week";
160
- current_month: "current_month";
161
- previous_week: "previous_week";
162
- previous_month: "previous_month";
163
- }>>>;
164
- }, z.core.$strict>, z.ZodObject<{
165
- tz: z.ZodOptional<z.ZodString>;
166
- type: z.ZodLiteral<"absolute">;
167
- start: z.ZodString;
168
- end: z.ZodString;
169
- }, z.core.$strict>]>>>>;
170
- limit: z.ZodOptional<z.ZodNumber>;
171
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
172
- datasource: z.ZodLiteral<"api_usage">;
173
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
174
- [x: string]: string;
175
- }>>>>;
176
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
177
- [x: string]: string;
178
- }>>>>;
179
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
180
- field: z.ZodEnum<{
181
- api: "api";
182
- api_product: "api_product";
183
- api_product_version: "api_product_version";
184
- control_plane: "control_plane";
185
- control_plane_group: "control_plane_group";
186
- data_plane_node: "data_plane_node";
187
- gateway_service: "gateway_service";
188
- portal: "portal";
189
- route: "route";
190
- status_code: "status_code";
191
- status_code_grouped: "status_code_grouped";
192
- application: "application";
193
- consumer: "consumer";
194
- country_code: "country_code";
195
- iso_code: "iso_code";
196
- upstream_status_code: "upstream_status_code";
197
- upstream_status_code_grouped: "upstream_status_code_grouped";
198
- response_source: "response_source";
199
- data_plane_node_version: "data_plane_node_version";
200
- realm: "realm";
201
- }>;
202
- operator: z.ZodEnum<{
203
- in: "in";
204
- not_in: "not_in";
205
- selector: "selector";
206
- }>;
207
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
208
- }, z.core.$strict>, z.ZodObject<{
209
- field: z.ZodEnum<{
210
- api: "api";
211
- api_product: "api_product";
212
- api_product_version: "api_product_version";
213
- control_plane: "control_plane";
214
- control_plane_group: "control_plane_group";
215
- data_plane_node: "data_plane_node";
216
- gateway_service: "gateway_service";
217
- portal: "portal";
218
- route: "route";
219
- status_code: "status_code";
220
- status_code_grouped: "status_code_grouped";
221
- application: "application";
222
- consumer: "consumer";
223
- country_code: "country_code";
224
- iso_code: "iso_code";
225
- upstream_status_code: "upstream_status_code";
226
- upstream_status_code_grouped: "upstream_status_code_grouped";
227
- response_source: "response_source";
228
- data_plane_node_version: "data_plane_node_version";
229
- realm: "realm";
230
- }>;
231
- operator: z.ZodEnum<{
232
- empty: "empty";
233
- not_empty: "not_empty";
234
- }>;
235
- }, z.core.$strict>]>>>>;
236
- }, z.core.$strict>;
237
- export declare const zBasicQuery: z.ZodObject<{
238
- granularity: z.ZodOptional<z.ZodEnum<{
239
- secondly: "secondly";
240
- tenSecondly: "tenSecondly";
241
- thirtySecondly: "thirtySecondly";
242
- minutely: "minutely";
243
- fiveMinutely: "fiveMinutely";
244
- tenMinutely: "tenMinutely";
245
- thirtyMinutely: "thirtyMinutely";
246
- hourly: "hourly";
247
- twoHourly: "twoHourly";
248
- twelveHourly: "twelveHourly";
249
- daily: "daily";
250
- weekly: "weekly";
251
- trend: "trend";
252
- }>>;
253
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
254
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
255
- type: z.ZodLiteral<"relative">;
256
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
257
- "15m": "15m";
258
- "1h": "1h";
259
- "6h": "6h";
260
- "12h": "12h";
261
- "24h": "24h";
262
- "7d": "7d";
263
- "30d": "30d";
264
- current_week: "current_week";
265
- current_month: "current_month";
266
- previous_week: "previous_week";
267
- previous_month: "previous_month";
268
- }>>>;
269
- }, z.core.$strict>, z.ZodObject<{
270
- tz: z.ZodOptional<z.ZodString>;
271
- type: z.ZodLiteral<"absolute">;
272
- start: z.ZodString;
273
- end: z.ZodString;
274
- }, z.core.$strict>]>>>>;
275
- limit: z.ZodOptional<z.ZodNumber>;
276
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
277
- datasource: z.ZodLiteral<"basic">;
278
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
279
- [x: string]: string;
280
- }>>>>;
281
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
282
- [x: string]: string;
283
- }>>>>;
284
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
285
- field: z.ZodEnum<{
286
- api: "api";
287
- api_product: "api_product";
288
- api_product_version: "api_product_version";
289
- control_plane: "control_plane";
290
- control_plane_group: "control_plane_group";
291
- data_plane_node: "data_plane_node";
292
- gateway_service: "gateway_service";
293
- portal: "portal";
294
- route: "route";
295
- status_code: "status_code";
296
- status_code_grouped: "status_code_grouped";
297
- }>;
298
- operator: z.ZodEnum<{
299
- in: "in";
300
- not_in: "not_in";
301
- selector: "selector";
302
- }>;
303
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
304
- }, z.core.$strict>, z.ZodObject<{
305
- field: z.ZodEnum<{
306
- api: "api";
307
- api_product: "api_product";
308
- api_product_version: "api_product_version";
309
- control_plane: "control_plane";
310
- control_plane_group: "control_plane_group";
311
- data_plane_node: "data_plane_node";
312
- gateway_service: "gateway_service";
313
- portal: "portal";
314
- route: "route";
315
- status_code: "status_code";
316
- status_code_grouped: "status_code_grouped";
317
- }>;
318
- operator: z.ZodEnum<{
319
- empty: "empty";
320
- not_empty: "not_empty";
321
- }>;
322
- }, z.core.$strict>]>>>>;
323
- }, z.core.$strict>;
324
- export declare const zLlmUsageQuery: z.ZodObject<{
325
- granularity: z.ZodOptional<z.ZodEnum<{
326
- secondly: "secondly";
327
- tenSecondly: "tenSecondly";
328
- thirtySecondly: "thirtySecondly";
329
- minutely: "minutely";
330
- fiveMinutely: "fiveMinutely";
331
- tenMinutely: "tenMinutely";
332
- thirtyMinutely: "thirtyMinutely";
333
- hourly: "hourly";
334
- twoHourly: "twoHourly";
335
- twelveHourly: "twelveHourly";
336
- daily: "daily";
337
- weekly: "weekly";
338
- trend: "trend";
339
- }>>;
340
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
341
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
342
- type: z.ZodLiteral<"relative">;
343
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
344
- "15m": "15m";
345
- "1h": "1h";
346
- "6h": "6h";
347
- "12h": "12h";
348
- "24h": "24h";
349
- "7d": "7d";
350
- "30d": "30d";
351
- current_week: "current_week";
352
- current_month: "current_month";
353
- previous_week: "previous_week";
354
- previous_month: "previous_month";
355
- }>>>;
356
- }, z.core.$strict>, z.ZodObject<{
357
- tz: z.ZodOptional<z.ZodString>;
358
- type: z.ZodLiteral<"absolute">;
359
- start: z.ZodString;
360
- end: z.ZodString;
361
- }, z.core.$strict>]>>>>;
362
- limit: z.ZodOptional<z.ZodNumber>;
363
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
364
- datasource: z.ZodLiteral<"llm_usage">;
365
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
366
- [x: string]: string;
367
- }>>>>;
368
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
369
- [x: string]: string;
370
- }>>>>;
371
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
372
- field: z.ZodEnum<{
373
- control_plane: "control_plane";
374
- control_plane_group: "control_plane_group";
375
- gateway_service: "gateway_service";
376
- route: "route";
377
- status_code: "status_code";
378
- status_code_grouped: "status_code_grouped";
379
- application: "application";
380
- consumer: "consumer";
381
- realm: "realm";
382
- ai_provider: "ai_provider";
383
- ai_response_model: "ai_response_model";
384
- ai_request_model: "ai_request_model";
385
- llm_cache_status: "llm_cache_status";
386
- llm_embeddings_provider: "llm_embeddings_provider";
387
- llm_embeddings_model: "llm_embeddings_model";
388
- ai_plugin: "ai_plugin";
389
- }>;
390
- operator: z.ZodEnum<{
391
- in: "in";
392
- not_in: "not_in";
393
- selector: "selector";
394
- }>;
395
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
396
- }, z.core.$strict>, z.ZodObject<{
397
- field: z.ZodEnum<{
398
- control_plane: "control_plane";
399
- control_plane_group: "control_plane_group";
400
- gateway_service: "gateway_service";
401
- route: "route";
402
- status_code: "status_code";
403
- status_code_grouped: "status_code_grouped";
404
- application: "application";
405
- consumer: "consumer";
406
- realm: "realm";
407
- ai_provider: "ai_provider";
408
- ai_response_model: "ai_response_model";
409
- ai_request_model: "ai_request_model";
410
- llm_cache_status: "llm_cache_status";
411
- llm_embeddings_provider: "llm_embeddings_provider";
412
- llm_embeddings_model: "llm_embeddings_model";
413
- ai_plugin: "ai_plugin";
414
- }>;
415
- operator: z.ZodEnum<{
416
- empty: "empty";
417
- not_empty: "not_empty";
418
- }>;
419
- }, z.core.$strict>]>>>>;
420
- }, z.core.$strict>;
421
- export declare const zValidDashboardQuery: z.ZodUnion<readonly [z.ZodObject<{
422
- granularity: z.ZodOptional<z.ZodEnum<{
423
- secondly: "secondly";
424
- tenSecondly: "tenSecondly";
425
- thirtySecondly: "thirtySecondly";
426
- minutely: "minutely";
427
- fiveMinutely: "fiveMinutely";
428
- tenMinutely: "tenMinutely";
429
- thirtyMinutely: "thirtyMinutely";
430
- hourly: "hourly";
431
- twoHourly: "twoHourly";
432
- twelveHourly: "twelveHourly";
433
- daily: "daily";
434
- weekly: "weekly";
435
- trend: "trend";
436
- }>>;
437
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
438
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
439
- type: z.ZodLiteral<"relative">;
440
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
441
- "15m": "15m";
442
- "1h": "1h";
443
- "6h": "6h";
444
- "12h": "12h";
445
- "24h": "24h";
446
- "7d": "7d";
447
- "30d": "30d";
448
- current_week: "current_week";
449
- current_month: "current_month";
450
- previous_week: "previous_week";
451
- previous_month: "previous_month";
452
- }>>>;
453
- }, z.core.$strict>, z.ZodObject<{
454
- tz: z.ZodOptional<z.ZodString>;
455
- type: z.ZodLiteral<"absolute">;
456
- start: z.ZodString;
457
- end: z.ZodString;
458
- }, z.core.$strict>]>>>>;
459
- limit: z.ZodOptional<z.ZodNumber>;
460
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
461
- datasource: z.ZodLiteral<"api_usage">;
462
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
463
- [x: string]: string;
464
- }>>>>;
465
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
466
- [x: string]: string;
467
- }>>>>;
468
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
469
- field: z.ZodEnum<{
470
- api: "api";
471
- api_product: "api_product";
472
- api_product_version: "api_product_version";
473
- control_plane: "control_plane";
474
- control_plane_group: "control_plane_group";
475
- data_plane_node: "data_plane_node";
476
- gateway_service: "gateway_service";
477
- portal: "portal";
478
- route: "route";
479
- status_code: "status_code";
480
- status_code_grouped: "status_code_grouped";
481
- application: "application";
482
- consumer: "consumer";
483
- country_code: "country_code";
484
- iso_code: "iso_code";
485
- upstream_status_code: "upstream_status_code";
486
- upstream_status_code_grouped: "upstream_status_code_grouped";
487
- response_source: "response_source";
488
- data_plane_node_version: "data_plane_node_version";
489
- realm: "realm";
490
- }>;
491
- operator: z.ZodEnum<{
492
- in: "in";
493
- not_in: "not_in";
494
- selector: "selector";
495
- }>;
496
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
497
- }, z.core.$strict>, z.ZodObject<{
498
- field: z.ZodEnum<{
499
- api: "api";
500
- api_product: "api_product";
501
- api_product_version: "api_product_version";
502
- control_plane: "control_plane";
503
- control_plane_group: "control_plane_group";
504
- data_plane_node: "data_plane_node";
505
- gateway_service: "gateway_service";
506
- portal: "portal";
507
- route: "route";
508
- status_code: "status_code";
509
- status_code_grouped: "status_code_grouped";
510
- application: "application";
511
- consumer: "consumer";
512
- country_code: "country_code";
513
- iso_code: "iso_code";
514
- upstream_status_code: "upstream_status_code";
515
- upstream_status_code_grouped: "upstream_status_code_grouped";
516
- response_source: "response_source";
517
- data_plane_node_version: "data_plane_node_version";
518
- realm: "realm";
519
- }>;
520
- operator: z.ZodEnum<{
521
- empty: "empty";
522
- not_empty: "not_empty";
523
- }>;
524
- }, z.core.$strict>]>>>>;
525
- }, z.core.$strict>, z.ZodObject<{
526
- granularity: z.ZodOptional<z.ZodEnum<{
527
- secondly: "secondly";
528
- tenSecondly: "tenSecondly";
529
- thirtySecondly: "thirtySecondly";
530
- minutely: "minutely";
531
- fiveMinutely: "fiveMinutely";
532
- tenMinutely: "tenMinutely";
533
- thirtyMinutely: "thirtyMinutely";
534
- hourly: "hourly";
535
- twoHourly: "twoHourly";
536
- twelveHourly: "twelveHourly";
537
- daily: "daily";
538
- weekly: "weekly";
539
- trend: "trend";
540
- }>>;
541
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
542
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
543
- type: z.ZodLiteral<"relative">;
544
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
545
- "15m": "15m";
546
- "1h": "1h";
547
- "6h": "6h";
548
- "12h": "12h";
549
- "24h": "24h";
550
- "7d": "7d";
551
- "30d": "30d";
552
- current_week: "current_week";
553
- current_month: "current_month";
554
- previous_week: "previous_week";
555
- previous_month: "previous_month";
556
- }>>>;
557
- }, z.core.$strict>, z.ZodObject<{
558
- tz: z.ZodOptional<z.ZodString>;
559
- type: z.ZodLiteral<"absolute">;
560
- start: z.ZodString;
561
- end: z.ZodString;
562
- }, z.core.$strict>]>>>>;
563
- limit: z.ZodOptional<z.ZodNumber>;
564
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
565
- datasource: z.ZodLiteral<"basic">;
566
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
567
- [x: string]: string;
568
- }>>>>;
569
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
570
- [x: string]: string;
571
- }>>>>;
572
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
573
- field: z.ZodEnum<{
574
- api: "api";
575
- api_product: "api_product";
576
- api_product_version: "api_product_version";
577
- control_plane: "control_plane";
578
- control_plane_group: "control_plane_group";
579
- data_plane_node: "data_plane_node";
580
- gateway_service: "gateway_service";
581
- portal: "portal";
582
- route: "route";
583
- status_code: "status_code";
584
- status_code_grouped: "status_code_grouped";
585
- }>;
586
- operator: z.ZodEnum<{
587
- in: "in";
588
- not_in: "not_in";
589
- selector: "selector";
590
- }>;
591
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
592
- }, z.core.$strict>, z.ZodObject<{
593
- field: z.ZodEnum<{
594
- api: "api";
595
- api_product: "api_product";
596
- api_product_version: "api_product_version";
597
- control_plane: "control_plane";
598
- control_plane_group: "control_plane_group";
599
- data_plane_node: "data_plane_node";
600
- gateway_service: "gateway_service";
601
- portal: "portal";
602
- route: "route";
603
- status_code: "status_code";
604
- status_code_grouped: "status_code_grouped";
605
- }>;
606
- operator: z.ZodEnum<{
607
- empty: "empty";
608
- not_empty: "not_empty";
609
- }>;
610
- }, z.core.$strict>]>>>>;
611
- }, z.core.$strict>, z.ZodObject<{
612
- granularity: z.ZodOptional<z.ZodEnum<{
613
- secondly: "secondly";
614
- tenSecondly: "tenSecondly";
615
- thirtySecondly: "thirtySecondly";
616
- minutely: "minutely";
617
- fiveMinutely: "fiveMinutely";
618
- tenMinutely: "tenMinutely";
619
- thirtyMinutely: "thirtyMinutely";
620
- hourly: "hourly";
621
- twoHourly: "twoHourly";
622
- twelveHourly: "twelveHourly";
623
- daily: "daily";
624
- weekly: "weekly";
625
- trend: "trend";
626
- }>>;
627
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
628
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
629
- type: z.ZodLiteral<"relative">;
630
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
631
- "15m": "15m";
632
- "1h": "1h";
633
- "6h": "6h";
634
- "12h": "12h";
635
- "24h": "24h";
636
- "7d": "7d";
637
- "30d": "30d";
638
- current_week: "current_week";
639
- current_month: "current_month";
640
- previous_week: "previous_week";
641
- previous_month: "previous_month";
642
- }>>>;
643
- }, z.core.$strict>, z.ZodObject<{
644
- tz: z.ZodOptional<z.ZodString>;
645
- type: z.ZodLiteral<"absolute">;
646
- start: z.ZodString;
647
- end: z.ZodString;
648
- }, z.core.$strict>]>>>>;
649
- limit: z.ZodOptional<z.ZodNumber>;
650
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
651
- datasource: z.ZodLiteral<"llm_usage">;
652
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
653
- [x: string]: string;
654
- }>>>>;
655
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
656
- [x: string]: string;
657
- }>>>>;
658
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
659
- field: z.ZodEnum<{
660
- control_plane: "control_plane";
661
- control_plane_group: "control_plane_group";
662
- gateway_service: "gateway_service";
663
- route: "route";
664
- status_code: "status_code";
665
- status_code_grouped: "status_code_grouped";
666
- application: "application";
667
- consumer: "consumer";
668
- realm: "realm";
669
- ai_provider: "ai_provider";
670
- ai_response_model: "ai_response_model";
671
- ai_request_model: "ai_request_model";
672
- llm_cache_status: "llm_cache_status";
673
- llm_embeddings_provider: "llm_embeddings_provider";
674
- llm_embeddings_model: "llm_embeddings_model";
675
- ai_plugin: "ai_plugin";
676
- }>;
677
- operator: z.ZodEnum<{
678
- in: "in";
679
- not_in: "not_in";
680
- selector: "selector";
681
- }>;
682
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
683
- }, z.core.$strict>, z.ZodObject<{
684
- field: z.ZodEnum<{
685
- control_plane: "control_plane";
686
- control_plane_group: "control_plane_group";
687
- gateway_service: "gateway_service";
688
- route: "route";
689
- status_code: "status_code";
690
- status_code_grouped: "status_code_grouped";
691
- application: "application";
692
- consumer: "consumer";
693
- realm: "realm";
694
- ai_provider: "ai_provider";
695
- ai_response_model: "ai_response_model";
696
- ai_request_model: "ai_request_model";
697
- llm_cache_status: "llm_cache_status";
698
- llm_embeddings_provider: "llm_embeddings_provider";
699
- llm_embeddings_model: "llm_embeddings_model";
700
- ai_plugin: "ai_plugin";
701
- }>;
702
- operator: z.ZodEnum<{
703
- empty: "empty";
704
- not_empty: "not_empty";
705
- }>;
706
- }, z.core.$strict>]>>>>;
707
- }, z.core.$strict>]>;
708
- export type ValidDashboardQuery = z.infer<typeof zValidDashboardQuery>;
709
- export declare const zTileDefinition: z.ZodObject<{
710
- query: z.ZodUnion<readonly [z.ZodObject<{
711
- granularity: z.ZodOptional<z.ZodEnum<{
712
- secondly: "secondly";
713
- tenSecondly: "tenSecondly";
714
- thirtySecondly: "thirtySecondly";
715
- minutely: "minutely";
716
- fiveMinutely: "fiveMinutely";
717
- tenMinutely: "tenMinutely";
718
- thirtyMinutely: "thirtyMinutely";
719
- hourly: "hourly";
720
- twoHourly: "twoHourly";
721
- twelveHourly: "twelveHourly";
722
- daily: "daily";
723
- weekly: "weekly";
724
- trend: "trend";
725
- }>>;
726
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
727
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
728
- type: z.ZodLiteral<"relative">;
729
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
730
- "15m": "15m";
731
- "1h": "1h";
732
- "6h": "6h";
733
- "12h": "12h";
734
- "24h": "24h";
735
- "7d": "7d";
736
- "30d": "30d";
737
- current_week: "current_week";
738
- current_month: "current_month";
739
- previous_week: "previous_week";
740
- previous_month: "previous_month";
741
- }>>>;
742
- }, z.core.$strict>, z.ZodObject<{
743
- tz: z.ZodOptional<z.ZodString>;
744
- type: z.ZodLiteral<"absolute">;
745
- start: z.ZodString;
746
- end: z.ZodString;
747
- }, z.core.$strict>]>>>>;
748
- limit: z.ZodOptional<z.ZodNumber>;
749
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
750
- datasource: z.ZodLiteral<"api_usage">;
751
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
752
- [x: string]: string;
753
- }>>>>;
754
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
755
- [x: string]: string;
756
- }>>>>;
757
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
758
- field: z.ZodEnum<{
759
- api: "api";
760
- api_product: "api_product";
761
- api_product_version: "api_product_version";
762
- control_plane: "control_plane";
763
- control_plane_group: "control_plane_group";
764
- data_plane_node: "data_plane_node";
765
- gateway_service: "gateway_service";
766
- portal: "portal";
767
- route: "route";
768
- status_code: "status_code";
769
- status_code_grouped: "status_code_grouped";
770
- application: "application";
771
- consumer: "consumer";
772
- country_code: "country_code";
773
- iso_code: "iso_code";
774
- upstream_status_code: "upstream_status_code";
775
- upstream_status_code_grouped: "upstream_status_code_grouped";
776
- response_source: "response_source";
777
- data_plane_node_version: "data_plane_node_version";
778
- realm: "realm";
779
- }>;
780
- operator: z.ZodEnum<{
781
- in: "in";
782
- not_in: "not_in";
783
- selector: "selector";
784
- }>;
785
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
786
- }, z.core.$strict>, z.ZodObject<{
787
- field: z.ZodEnum<{
788
- api: "api";
789
- api_product: "api_product";
790
- api_product_version: "api_product_version";
791
- control_plane: "control_plane";
792
- control_plane_group: "control_plane_group";
793
- data_plane_node: "data_plane_node";
794
- gateway_service: "gateway_service";
795
- portal: "portal";
796
- route: "route";
797
- status_code: "status_code";
798
- status_code_grouped: "status_code_grouped";
799
- application: "application";
800
- consumer: "consumer";
801
- country_code: "country_code";
802
- iso_code: "iso_code";
803
- upstream_status_code: "upstream_status_code";
804
- upstream_status_code_grouped: "upstream_status_code_grouped";
805
- response_source: "response_source";
806
- data_plane_node_version: "data_plane_node_version";
807
- realm: "realm";
808
- }>;
809
- operator: z.ZodEnum<{
810
- empty: "empty";
811
- not_empty: "not_empty";
812
- }>;
813
- }, z.core.$strict>]>>>>;
814
- }, z.core.$strict>, z.ZodObject<{
815
- granularity: z.ZodOptional<z.ZodEnum<{
816
- secondly: "secondly";
817
- tenSecondly: "tenSecondly";
818
- thirtySecondly: "thirtySecondly";
819
- minutely: "minutely";
820
- fiveMinutely: "fiveMinutely";
821
- tenMinutely: "tenMinutely";
822
- thirtyMinutely: "thirtyMinutely";
823
- hourly: "hourly";
824
- twoHourly: "twoHourly";
825
- twelveHourly: "twelveHourly";
826
- daily: "daily";
827
- weekly: "weekly";
828
- trend: "trend";
829
- }>>;
830
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
831
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
832
- type: z.ZodLiteral<"relative">;
833
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
834
- "15m": "15m";
835
- "1h": "1h";
836
- "6h": "6h";
837
- "12h": "12h";
838
- "24h": "24h";
839
- "7d": "7d";
840
- "30d": "30d";
841
- current_week: "current_week";
842
- current_month: "current_month";
843
- previous_week: "previous_week";
844
- previous_month: "previous_month";
845
- }>>>;
846
- }, z.core.$strict>, z.ZodObject<{
847
- tz: z.ZodOptional<z.ZodString>;
848
- type: z.ZodLiteral<"absolute">;
849
- start: z.ZodString;
850
- end: z.ZodString;
851
- }, z.core.$strict>]>>>>;
852
- limit: z.ZodOptional<z.ZodNumber>;
853
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
854
- datasource: z.ZodLiteral<"basic">;
855
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
856
- [x: string]: string;
857
- }>>>>;
858
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
859
- [x: string]: string;
860
- }>>>>;
861
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
862
- field: z.ZodEnum<{
863
- api: "api";
864
- api_product: "api_product";
865
- api_product_version: "api_product_version";
866
- control_plane: "control_plane";
867
- control_plane_group: "control_plane_group";
868
- data_plane_node: "data_plane_node";
869
- gateway_service: "gateway_service";
870
- portal: "portal";
871
- route: "route";
872
- status_code: "status_code";
873
- status_code_grouped: "status_code_grouped";
874
- }>;
875
- operator: z.ZodEnum<{
876
- in: "in";
877
- not_in: "not_in";
878
- selector: "selector";
879
- }>;
880
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
881
- }, z.core.$strict>, z.ZodObject<{
882
- field: z.ZodEnum<{
883
- api: "api";
884
- api_product: "api_product";
885
- api_product_version: "api_product_version";
886
- control_plane: "control_plane";
887
- control_plane_group: "control_plane_group";
888
- data_plane_node: "data_plane_node";
889
- gateway_service: "gateway_service";
890
- portal: "portal";
891
- route: "route";
892
- status_code: "status_code";
893
- status_code_grouped: "status_code_grouped";
894
- }>;
895
- operator: z.ZodEnum<{
896
- empty: "empty";
897
- not_empty: "not_empty";
898
- }>;
899
- }, z.core.$strict>]>>>>;
900
- }, z.core.$strict>, z.ZodObject<{
901
- granularity: z.ZodOptional<z.ZodEnum<{
902
- secondly: "secondly";
903
- tenSecondly: "tenSecondly";
904
- thirtySecondly: "thirtySecondly";
905
- minutely: "minutely";
906
- fiveMinutely: "fiveMinutely";
907
- tenMinutely: "tenMinutely";
908
- thirtyMinutely: "thirtyMinutely";
909
- hourly: "hourly";
910
- twoHourly: "twoHourly";
911
- twelveHourly: "twelveHourly";
912
- daily: "daily";
913
- weekly: "weekly";
914
- trend: "trend";
915
- }>>;
916
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
917
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
918
- type: z.ZodLiteral<"relative">;
919
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
920
- "15m": "15m";
921
- "1h": "1h";
922
- "6h": "6h";
923
- "12h": "12h";
924
- "24h": "24h";
925
- "7d": "7d";
926
- "30d": "30d";
927
- current_week: "current_week";
928
- current_month: "current_month";
929
- previous_week: "previous_week";
930
- previous_month: "previous_month";
931
- }>>>;
932
- }, z.core.$strict>, z.ZodObject<{
933
- tz: z.ZodOptional<z.ZodString>;
934
- type: z.ZodLiteral<"absolute">;
935
- start: z.ZodString;
936
- end: z.ZodString;
937
- }, z.core.$strict>]>>>>;
938
- limit: z.ZodOptional<z.ZodNumber>;
939
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
940
- datasource: z.ZodLiteral<"llm_usage">;
941
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
942
- [x: string]: string;
943
- }>>>>;
944
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
945
- [x: string]: string;
946
- }>>>>;
947
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
948
- field: z.ZodEnum<{
949
- control_plane: "control_plane";
950
- control_plane_group: "control_plane_group";
951
- gateway_service: "gateway_service";
952
- route: "route";
953
- status_code: "status_code";
954
- status_code_grouped: "status_code_grouped";
955
- application: "application";
956
- consumer: "consumer";
957
- realm: "realm";
958
- ai_provider: "ai_provider";
959
- ai_response_model: "ai_response_model";
960
- ai_request_model: "ai_request_model";
961
- llm_cache_status: "llm_cache_status";
962
- llm_embeddings_provider: "llm_embeddings_provider";
963
- llm_embeddings_model: "llm_embeddings_model";
964
- ai_plugin: "ai_plugin";
965
- }>;
966
- operator: z.ZodEnum<{
967
- in: "in";
968
- not_in: "not_in";
969
- selector: "selector";
970
- }>;
971
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
972
- }, z.core.$strict>, z.ZodObject<{
973
- field: z.ZodEnum<{
974
- control_plane: "control_plane";
975
- control_plane_group: "control_plane_group";
976
- gateway_service: "gateway_service";
977
- route: "route";
978
- status_code: "status_code";
979
- status_code_grouped: "status_code_grouped";
980
- application: "application";
981
- consumer: "consumer";
982
- realm: "realm";
983
- ai_provider: "ai_provider";
984
- ai_response_model: "ai_response_model";
985
- ai_request_model: "ai_request_model";
986
- llm_cache_status: "llm_cache_status";
987
- llm_embeddings_provider: "llm_embeddings_provider";
988
- llm_embeddings_model: "llm_embeddings_model";
989
- ai_plugin: "ai_plugin";
990
- }>;
991
- operator: z.ZodEnum<{
992
- empty: "empty";
993
- not_empty: "not_empty";
994
- }>;
995
- }, z.core.$strict>]>>>>;
996
- }, z.core.$strict>]>;
997
- chart: z.ZodUnion<readonly [z.ZodObject<{
998
- type: z.ZodEnum<{
999
- horizontal_bar: "horizontal_bar";
1000
- vertical_bar: "vertical_bar";
1001
- }>;
1002
- stacked: z.ZodOptional<z.ZodBoolean>;
1003
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1004
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1005
- chart_title: z.ZodOptional<z.ZodString>;
1006
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1007
- }, z.core.$strict>, z.ZodObject<{
1008
- type: z.ZodLiteral<"gauge">;
1009
- metric_display: z.ZodOptional<z.ZodEnum<{
1010
- hidden: "hidden";
1011
- single: "single";
1012
- full: "full";
1013
- }>>;
1014
- reverse_dataset: z.ZodOptional<z.ZodBoolean>;
1015
- numerator: z.ZodOptional<z.ZodNumber>;
1016
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1017
- chart_title: z.ZodOptional<z.ZodString>;
1018
- }, z.core.$strict>, z.ZodObject<{
1019
- type: z.ZodLiteral<"donut">;
1020
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1021
- chart_title: z.ZodOptional<z.ZodString>;
1022
- }, z.core.$strict>, z.ZodObject<{
1023
- type: z.ZodEnum<{
1024
- timeseries_line: "timeseries_line";
1025
- timeseries_bar: "timeseries_bar";
1026
- }>;
1027
- stacked: z.ZodOptional<z.ZodBoolean>;
1028
- threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1029
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1030
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1031
- chart_title: z.ZodOptional<z.ZodString>;
1032
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1033
- }, z.core.$strict>, z.ZodObject<{
1034
- type: z.ZodLiteral<"golden_signals">;
1035
- chart_title: z.ZodOptional<z.ZodString>;
1036
- long_card_titles: z.ZodOptional<z.ZodBoolean>;
1037
- description: z.ZodOptional<z.ZodString>;
1038
- percentile_latency: z.ZodOptional<z.ZodBoolean>;
1039
- }, z.core.$strict>, z.ZodObject<{
1040
- type: z.ZodLiteral<"top_n">;
1041
- chart_title: z.ZodOptional<z.ZodString>;
1042
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1043
- description: z.ZodOptional<z.ZodString>;
1044
- entity_link: z.ZodOptional<z.ZodString>;
1045
- }, z.core.$strict>, z.ZodObject<{
1046
- type: z.ZodLiteral<"slottable">;
1047
- id: z.ZodString;
1048
- }, z.core.$strict>, z.ZodObject<{
1049
- type: z.ZodLiteral<"single_value">;
1050
- decimal_points: z.ZodOptional<z.ZodNumber>;
1051
- chart_title: z.ZodOptional<z.ZodString>;
1052
- }, z.core.$strict>]>;
1053
- }, z.core.$strict>;
1054
- export type TileDefinition = z.infer<typeof zTileDefinition>;
1055
- export declare const zTileLayout: z.ZodObject<{
1056
- position: z.ZodObject<{
1057
- col: z.ZodNumber;
1058
- row: z.ZodNumber;
1059
- }, z.core.$strict>;
1060
- size: z.ZodObject<{
1061
- cols: z.ZodNumber;
1062
- rows: z.ZodNumber;
1063
- fit_to_content: z.ZodOptional<z.ZodBoolean>;
1064
- }, z.core.$strict>;
1065
- }, z.core.$strict>;
1066
- export type TileLayout = z.infer<typeof zTileLayout>;
1067
- export declare const zTileConfig: z.ZodObject<{
1068
- type: z.ZodEnum<{
1069
- chart: "chart";
1070
- }>;
1071
- definition: z.ZodObject<{
1072
- query: z.ZodUnion<readonly [z.ZodObject<{
1073
- granularity: z.ZodOptional<z.ZodEnum<{
1074
- secondly: "secondly";
1075
- tenSecondly: "tenSecondly";
1076
- thirtySecondly: "thirtySecondly";
1077
- minutely: "minutely";
1078
- fiveMinutely: "fiveMinutely";
1079
- tenMinutely: "tenMinutely";
1080
- thirtyMinutely: "thirtyMinutely";
1081
- hourly: "hourly";
1082
- twoHourly: "twoHourly";
1083
- twelveHourly: "twelveHourly";
1084
- daily: "daily";
1085
- weekly: "weekly";
1086
- trend: "trend";
1087
- }>>;
1088
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1089
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1090
- type: z.ZodLiteral<"relative">;
1091
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1092
- "15m": "15m";
1093
- "1h": "1h";
1094
- "6h": "6h";
1095
- "12h": "12h";
1096
- "24h": "24h";
1097
- "7d": "7d";
1098
- "30d": "30d";
1099
- current_week: "current_week";
1100
- current_month: "current_month";
1101
- previous_week: "previous_week";
1102
- previous_month: "previous_month";
1103
- }>>>;
1104
- }, z.core.$strict>, z.ZodObject<{
1105
- tz: z.ZodOptional<z.ZodString>;
1106
- type: z.ZodLiteral<"absolute">;
1107
- start: z.ZodString;
1108
- end: z.ZodString;
1109
- }, z.core.$strict>]>>>>;
1110
- limit: z.ZodOptional<z.ZodNumber>;
1111
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1112
- datasource: z.ZodLiteral<"api_usage">;
1113
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1114
- [x: string]: string;
1115
- }>>>>;
1116
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1117
- [x: string]: string;
1118
- }>>>>;
1119
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1120
- field: z.ZodEnum<{
1121
- api: "api";
1122
- api_product: "api_product";
1123
- api_product_version: "api_product_version";
1124
- control_plane: "control_plane";
1125
- control_plane_group: "control_plane_group";
1126
- data_plane_node: "data_plane_node";
1127
- gateway_service: "gateway_service";
1128
- portal: "portal";
1129
- route: "route";
1130
- status_code: "status_code";
1131
- status_code_grouped: "status_code_grouped";
1132
- application: "application";
1133
- consumer: "consumer";
1134
- country_code: "country_code";
1135
- iso_code: "iso_code";
1136
- upstream_status_code: "upstream_status_code";
1137
- upstream_status_code_grouped: "upstream_status_code_grouped";
1138
- response_source: "response_source";
1139
- data_plane_node_version: "data_plane_node_version";
1140
- realm: "realm";
1141
- }>;
1142
- operator: z.ZodEnum<{
1143
- in: "in";
1144
- not_in: "not_in";
1145
- selector: "selector";
1146
- }>;
1147
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1148
- }, z.core.$strict>, z.ZodObject<{
1149
- field: z.ZodEnum<{
1150
- api: "api";
1151
- api_product: "api_product";
1152
- api_product_version: "api_product_version";
1153
- control_plane: "control_plane";
1154
- control_plane_group: "control_plane_group";
1155
- data_plane_node: "data_plane_node";
1156
- gateway_service: "gateway_service";
1157
- portal: "portal";
1158
- route: "route";
1159
- status_code: "status_code";
1160
- status_code_grouped: "status_code_grouped";
1161
- application: "application";
1162
- consumer: "consumer";
1163
- country_code: "country_code";
1164
- iso_code: "iso_code";
1165
- upstream_status_code: "upstream_status_code";
1166
- upstream_status_code_grouped: "upstream_status_code_grouped";
1167
- response_source: "response_source";
1168
- data_plane_node_version: "data_plane_node_version";
1169
- realm: "realm";
1170
- }>;
1171
- operator: z.ZodEnum<{
1172
- empty: "empty";
1173
- not_empty: "not_empty";
1174
- }>;
1175
- }, z.core.$strict>]>>>>;
1176
- }, z.core.$strict>, z.ZodObject<{
1177
- granularity: z.ZodOptional<z.ZodEnum<{
1178
- secondly: "secondly";
1179
- tenSecondly: "tenSecondly";
1180
- thirtySecondly: "thirtySecondly";
1181
- minutely: "minutely";
1182
- fiveMinutely: "fiveMinutely";
1183
- tenMinutely: "tenMinutely";
1184
- thirtyMinutely: "thirtyMinutely";
1185
- hourly: "hourly";
1186
- twoHourly: "twoHourly";
1187
- twelveHourly: "twelveHourly";
1188
- daily: "daily";
1189
- weekly: "weekly";
1190
- trend: "trend";
1191
- }>>;
1192
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1193
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1194
- type: z.ZodLiteral<"relative">;
1195
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1196
- "15m": "15m";
1197
- "1h": "1h";
1198
- "6h": "6h";
1199
- "12h": "12h";
1200
- "24h": "24h";
1201
- "7d": "7d";
1202
- "30d": "30d";
1203
- current_week: "current_week";
1204
- current_month: "current_month";
1205
- previous_week: "previous_week";
1206
- previous_month: "previous_month";
1207
- }>>>;
1208
- }, z.core.$strict>, z.ZodObject<{
1209
- tz: z.ZodOptional<z.ZodString>;
1210
- type: z.ZodLiteral<"absolute">;
1211
- start: z.ZodString;
1212
- end: z.ZodString;
1213
- }, z.core.$strict>]>>>>;
1214
- limit: z.ZodOptional<z.ZodNumber>;
1215
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1216
- datasource: z.ZodLiteral<"basic">;
1217
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1218
- [x: string]: string;
1219
- }>>>>;
1220
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1221
- [x: string]: string;
1222
- }>>>>;
1223
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1224
- field: z.ZodEnum<{
1225
- api: "api";
1226
- api_product: "api_product";
1227
- api_product_version: "api_product_version";
1228
- control_plane: "control_plane";
1229
- control_plane_group: "control_plane_group";
1230
- data_plane_node: "data_plane_node";
1231
- gateway_service: "gateway_service";
1232
- portal: "portal";
1233
- route: "route";
1234
- status_code: "status_code";
1235
- status_code_grouped: "status_code_grouped";
1236
- }>;
1237
- operator: z.ZodEnum<{
1238
- in: "in";
1239
- not_in: "not_in";
1240
- selector: "selector";
1241
- }>;
1242
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1243
- }, z.core.$strict>, z.ZodObject<{
1244
- field: z.ZodEnum<{
1245
- api: "api";
1246
- api_product: "api_product";
1247
- api_product_version: "api_product_version";
1248
- control_plane: "control_plane";
1249
- control_plane_group: "control_plane_group";
1250
- data_plane_node: "data_plane_node";
1251
- gateway_service: "gateway_service";
1252
- portal: "portal";
1253
- route: "route";
1254
- status_code: "status_code";
1255
- status_code_grouped: "status_code_grouped";
1256
- }>;
1257
- operator: z.ZodEnum<{
1258
- empty: "empty";
1259
- not_empty: "not_empty";
1260
- }>;
1261
- }, z.core.$strict>]>>>>;
1262
- }, z.core.$strict>, z.ZodObject<{
1263
- granularity: z.ZodOptional<z.ZodEnum<{
1264
- secondly: "secondly";
1265
- tenSecondly: "tenSecondly";
1266
- thirtySecondly: "thirtySecondly";
1267
- minutely: "minutely";
1268
- fiveMinutely: "fiveMinutely";
1269
- tenMinutely: "tenMinutely";
1270
- thirtyMinutely: "thirtyMinutely";
1271
- hourly: "hourly";
1272
- twoHourly: "twoHourly";
1273
- twelveHourly: "twelveHourly";
1274
- daily: "daily";
1275
- weekly: "weekly";
1276
- trend: "trend";
1277
- }>>;
1278
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1279
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1280
- type: z.ZodLiteral<"relative">;
1281
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1282
- "15m": "15m";
1283
- "1h": "1h";
1284
- "6h": "6h";
1285
- "12h": "12h";
1286
- "24h": "24h";
1287
- "7d": "7d";
1288
- "30d": "30d";
1289
- current_week: "current_week";
1290
- current_month: "current_month";
1291
- previous_week: "previous_week";
1292
- previous_month: "previous_month";
1293
- }>>>;
1294
- }, z.core.$strict>, z.ZodObject<{
1295
- tz: z.ZodOptional<z.ZodString>;
1296
- type: z.ZodLiteral<"absolute">;
1297
- start: z.ZodString;
1298
- end: z.ZodString;
1299
- }, z.core.$strict>]>>>>;
1300
- limit: z.ZodOptional<z.ZodNumber>;
1301
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1302
- datasource: z.ZodLiteral<"llm_usage">;
1303
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1304
- [x: string]: string;
1305
- }>>>>;
1306
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1307
- [x: string]: string;
1308
- }>>>>;
1309
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1310
- field: z.ZodEnum<{
1311
- control_plane: "control_plane";
1312
- control_plane_group: "control_plane_group";
1313
- gateway_service: "gateway_service";
1314
- route: "route";
1315
- status_code: "status_code";
1316
- status_code_grouped: "status_code_grouped";
1317
- application: "application";
1318
- consumer: "consumer";
1319
- realm: "realm";
1320
- ai_provider: "ai_provider";
1321
- ai_response_model: "ai_response_model";
1322
- ai_request_model: "ai_request_model";
1323
- llm_cache_status: "llm_cache_status";
1324
- llm_embeddings_provider: "llm_embeddings_provider";
1325
- llm_embeddings_model: "llm_embeddings_model";
1326
- ai_plugin: "ai_plugin";
1327
- }>;
1328
- operator: z.ZodEnum<{
1329
- in: "in";
1330
- not_in: "not_in";
1331
- selector: "selector";
1332
- }>;
1333
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1334
- }, z.core.$strict>, z.ZodObject<{
1335
- field: z.ZodEnum<{
1336
- control_plane: "control_plane";
1337
- control_plane_group: "control_plane_group";
1338
- gateway_service: "gateway_service";
1339
- route: "route";
1340
- status_code: "status_code";
1341
- status_code_grouped: "status_code_grouped";
1342
- application: "application";
1343
- consumer: "consumer";
1344
- realm: "realm";
1345
- ai_provider: "ai_provider";
1346
- ai_response_model: "ai_response_model";
1347
- ai_request_model: "ai_request_model";
1348
- llm_cache_status: "llm_cache_status";
1349
- llm_embeddings_provider: "llm_embeddings_provider";
1350
- llm_embeddings_model: "llm_embeddings_model";
1351
- ai_plugin: "ai_plugin";
1352
- }>;
1353
- operator: z.ZodEnum<{
1354
- empty: "empty";
1355
- not_empty: "not_empty";
1356
- }>;
1357
- }, z.core.$strict>]>>>>;
1358
- }, z.core.$strict>]>;
1359
- chart: z.ZodUnion<readonly [z.ZodObject<{
1360
- type: z.ZodEnum<{
1361
- horizontal_bar: "horizontal_bar";
1362
- vertical_bar: "vertical_bar";
1363
- }>;
1364
- stacked: z.ZodOptional<z.ZodBoolean>;
1365
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1366
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1367
- chart_title: z.ZodOptional<z.ZodString>;
1368
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1369
- }, z.core.$strict>, z.ZodObject<{
1370
- type: z.ZodLiteral<"gauge">;
1371
- metric_display: z.ZodOptional<z.ZodEnum<{
1372
- hidden: "hidden";
1373
- single: "single";
1374
- full: "full";
1375
- }>>;
1376
- reverse_dataset: z.ZodOptional<z.ZodBoolean>;
1377
- numerator: z.ZodOptional<z.ZodNumber>;
1378
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1379
- chart_title: z.ZodOptional<z.ZodString>;
1380
- }, z.core.$strict>, z.ZodObject<{
1381
- type: z.ZodLiteral<"donut">;
1382
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1383
- chart_title: z.ZodOptional<z.ZodString>;
1384
- }, z.core.$strict>, z.ZodObject<{
1385
- type: z.ZodEnum<{
1386
- timeseries_line: "timeseries_line";
1387
- timeseries_bar: "timeseries_bar";
1388
- }>;
1389
- stacked: z.ZodOptional<z.ZodBoolean>;
1390
- threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1391
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1392
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1393
- chart_title: z.ZodOptional<z.ZodString>;
1394
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1395
- }, z.core.$strict>, z.ZodObject<{
1396
- type: z.ZodLiteral<"golden_signals">;
1397
- chart_title: z.ZodOptional<z.ZodString>;
1398
- long_card_titles: z.ZodOptional<z.ZodBoolean>;
1399
- description: z.ZodOptional<z.ZodString>;
1400
- percentile_latency: z.ZodOptional<z.ZodBoolean>;
1401
- }, z.core.$strict>, z.ZodObject<{
1402
- type: z.ZodLiteral<"top_n">;
1403
- chart_title: z.ZodOptional<z.ZodString>;
1404
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1405
- description: z.ZodOptional<z.ZodString>;
1406
- entity_link: z.ZodOptional<z.ZodString>;
1407
- }, z.core.$strict>, z.ZodObject<{
1408
- type: z.ZodLiteral<"slottable">;
1409
- id: z.ZodString;
1410
- }, z.core.$strict>, z.ZodObject<{
1411
- type: z.ZodLiteral<"single_value">;
1412
- decimal_points: z.ZodOptional<z.ZodNumber>;
1413
- chart_title: z.ZodOptional<z.ZodString>;
1414
- }, z.core.$strict>]>;
1415
- }, z.core.$strict>;
1416
- layout: z.ZodObject<{
1417
- position: z.ZodObject<{
1418
- col: z.ZodNumber;
1419
- row: z.ZodNumber;
1420
- }, z.core.$strict>;
1421
- size: z.ZodObject<{
1422
- cols: z.ZodNumber;
1423
- rows: z.ZodNumber;
1424
- fit_to_content: z.ZodOptional<z.ZodBoolean>;
1425
- }, z.core.$strict>;
1426
- }, z.core.$strict>;
1427
- id: z.ZodOptional<z.ZodString>;
1428
- }, z.core.$strict>;
1429
- export type TileConfig = z.infer<typeof zTileConfig>;
1430
- export declare const zDashboardConfig: z.ZodObject<{
1431
- tiles: z.ZodArray<z.ZodObject<{
1432
- type: z.ZodEnum<{
1433
- chart: "chart";
1434
- }>;
1435
- definition: z.ZodObject<{
1436
- query: z.ZodUnion<readonly [z.ZodObject<{
1437
- granularity: z.ZodOptional<z.ZodEnum<{
1438
- secondly: "secondly";
1439
- tenSecondly: "tenSecondly";
1440
- thirtySecondly: "thirtySecondly";
1441
- minutely: "minutely";
1442
- fiveMinutely: "fiveMinutely";
1443
- tenMinutely: "tenMinutely";
1444
- thirtyMinutely: "thirtyMinutely";
1445
- hourly: "hourly";
1446
- twoHourly: "twoHourly";
1447
- twelveHourly: "twelveHourly";
1448
- daily: "daily";
1449
- weekly: "weekly";
1450
- trend: "trend";
1451
- }>>;
1452
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1453
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1454
- type: z.ZodLiteral<"relative">;
1455
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1456
- "15m": "15m";
1457
- "1h": "1h";
1458
- "6h": "6h";
1459
- "12h": "12h";
1460
- "24h": "24h";
1461
- "7d": "7d";
1462
- "30d": "30d";
1463
- current_week: "current_week";
1464
- current_month: "current_month";
1465
- previous_week: "previous_week";
1466
- previous_month: "previous_month";
1467
- }>>>;
1468
- }, z.core.$strict>, z.ZodObject<{
1469
- tz: z.ZodOptional<z.ZodString>;
1470
- type: z.ZodLiteral<"absolute">;
1471
- start: z.ZodString;
1472
- end: z.ZodString;
1473
- }, z.core.$strict>]>>>>;
1474
- limit: z.ZodOptional<z.ZodNumber>;
1475
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1476
- datasource: z.ZodLiteral<"api_usage">;
1477
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1478
- [x: string]: string;
1479
- }>>>>;
1480
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1481
- [x: string]: string;
1482
- }>>>>;
1483
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1484
- field: z.ZodEnum<{
1485
- api: "api";
1486
- api_product: "api_product";
1487
- api_product_version: "api_product_version";
1488
- control_plane: "control_plane";
1489
- control_plane_group: "control_plane_group";
1490
- data_plane_node: "data_plane_node";
1491
- gateway_service: "gateway_service";
1492
- portal: "portal";
1493
- route: "route";
1494
- status_code: "status_code";
1495
- status_code_grouped: "status_code_grouped";
1496
- application: "application";
1497
- consumer: "consumer";
1498
- country_code: "country_code";
1499
- iso_code: "iso_code";
1500
- upstream_status_code: "upstream_status_code";
1501
- upstream_status_code_grouped: "upstream_status_code_grouped";
1502
- response_source: "response_source";
1503
- data_plane_node_version: "data_plane_node_version";
1504
- realm: "realm";
1505
- }>;
1506
- operator: z.ZodEnum<{
1507
- in: "in";
1508
- not_in: "not_in";
1509
- selector: "selector";
1510
- }>;
1511
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1512
- }, z.core.$strict>, z.ZodObject<{
1513
- field: z.ZodEnum<{
1514
- api: "api";
1515
- api_product: "api_product";
1516
- api_product_version: "api_product_version";
1517
- control_plane: "control_plane";
1518
- control_plane_group: "control_plane_group";
1519
- data_plane_node: "data_plane_node";
1520
- gateway_service: "gateway_service";
1521
- portal: "portal";
1522
- route: "route";
1523
- status_code: "status_code";
1524
- status_code_grouped: "status_code_grouped";
1525
- application: "application";
1526
- consumer: "consumer";
1527
- country_code: "country_code";
1528
- iso_code: "iso_code";
1529
- upstream_status_code: "upstream_status_code";
1530
- upstream_status_code_grouped: "upstream_status_code_grouped";
1531
- response_source: "response_source";
1532
- data_plane_node_version: "data_plane_node_version";
1533
- realm: "realm";
1534
- }>;
1535
- operator: z.ZodEnum<{
1536
- empty: "empty";
1537
- not_empty: "not_empty";
1538
- }>;
1539
- }, z.core.$strict>]>>>>;
1540
- }, z.core.$strict>, z.ZodObject<{
1541
- granularity: z.ZodOptional<z.ZodEnum<{
1542
- secondly: "secondly";
1543
- tenSecondly: "tenSecondly";
1544
- thirtySecondly: "thirtySecondly";
1545
- minutely: "minutely";
1546
- fiveMinutely: "fiveMinutely";
1547
- tenMinutely: "tenMinutely";
1548
- thirtyMinutely: "thirtyMinutely";
1549
- hourly: "hourly";
1550
- twoHourly: "twoHourly";
1551
- twelveHourly: "twelveHourly";
1552
- daily: "daily";
1553
- weekly: "weekly";
1554
- trend: "trend";
1555
- }>>;
1556
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1557
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1558
- type: z.ZodLiteral<"relative">;
1559
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1560
- "15m": "15m";
1561
- "1h": "1h";
1562
- "6h": "6h";
1563
- "12h": "12h";
1564
- "24h": "24h";
1565
- "7d": "7d";
1566
- "30d": "30d";
1567
- current_week: "current_week";
1568
- current_month: "current_month";
1569
- previous_week: "previous_week";
1570
- previous_month: "previous_month";
1571
- }>>>;
1572
- }, z.core.$strict>, z.ZodObject<{
1573
- tz: z.ZodOptional<z.ZodString>;
1574
- type: z.ZodLiteral<"absolute">;
1575
- start: z.ZodString;
1576
- end: z.ZodString;
1577
- }, z.core.$strict>]>>>>;
1578
- limit: z.ZodOptional<z.ZodNumber>;
1579
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1580
- datasource: z.ZodLiteral<"basic">;
1581
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1582
- [x: string]: string;
1583
- }>>>>;
1584
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1585
- [x: string]: string;
1586
- }>>>>;
1587
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1588
- field: z.ZodEnum<{
1589
- api: "api";
1590
- api_product: "api_product";
1591
- api_product_version: "api_product_version";
1592
- control_plane: "control_plane";
1593
- control_plane_group: "control_plane_group";
1594
- data_plane_node: "data_plane_node";
1595
- gateway_service: "gateway_service";
1596
- portal: "portal";
1597
- route: "route";
1598
- status_code: "status_code";
1599
- status_code_grouped: "status_code_grouped";
1600
- }>;
1601
- operator: z.ZodEnum<{
1602
- in: "in";
1603
- not_in: "not_in";
1604
- selector: "selector";
1605
- }>;
1606
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1607
- }, z.core.$strict>, z.ZodObject<{
1608
- field: z.ZodEnum<{
1609
- api: "api";
1610
- api_product: "api_product";
1611
- api_product_version: "api_product_version";
1612
- control_plane: "control_plane";
1613
- control_plane_group: "control_plane_group";
1614
- data_plane_node: "data_plane_node";
1615
- gateway_service: "gateway_service";
1616
- portal: "portal";
1617
- route: "route";
1618
- status_code: "status_code";
1619
- status_code_grouped: "status_code_grouped";
1620
- }>;
1621
- operator: z.ZodEnum<{
1622
- empty: "empty";
1623
- not_empty: "not_empty";
1624
- }>;
1625
- }, z.core.$strict>]>>>>;
1626
- }, z.core.$strict>, z.ZodObject<{
1627
- granularity: z.ZodOptional<z.ZodEnum<{
1628
- secondly: "secondly";
1629
- tenSecondly: "tenSecondly";
1630
- thirtySecondly: "thirtySecondly";
1631
- minutely: "minutely";
1632
- fiveMinutely: "fiveMinutely";
1633
- tenMinutely: "tenMinutely";
1634
- thirtyMinutely: "thirtyMinutely";
1635
- hourly: "hourly";
1636
- twoHourly: "twoHourly";
1637
- twelveHourly: "twelveHourly";
1638
- daily: "daily";
1639
- weekly: "weekly";
1640
- trend: "trend";
1641
- }>>;
1642
- time_range: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1643
- tz: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1644
- type: z.ZodLiteral<"relative">;
1645
- time_range: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1646
- "15m": "15m";
1647
- "1h": "1h";
1648
- "6h": "6h";
1649
- "12h": "12h";
1650
- "24h": "24h";
1651
- "7d": "7d";
1652
- "30d": "30d";
1653
- current_week: "current_week";
1654
- current_month: "current_month";
1655
- previous_week: "previous_week";
1656
- previous_month: "previous_month";
1657
- }>>>;
1658
- }, z.core.$strict>, z.ZodObject<{
1659
- tz: z.ZodOptional<z.ZodString>;
1660
- type: z.ZodLiteral<"absolute">;
1661
- start: z.ZodString;
1662
- end: z.ZodString;
1663
- }, z.core.$strict>]>>>>;
1664
- limit: z.ZodOptional<z.ZodNumber>;
1665
- meta: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1666
- datasource: z.ZodLiteral<"llm_usage">;
1667
- metrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1668
- [x: string]: string;
1669
- }>>>>;
1670
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1671
- [x: string]: string;
1672
- }>>>>;
1673
- filters: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1674
- field: z.ZodEnum<{
1675
- control_plane: "control_plane";
1676
- control_plane_group: "control_plane_group";
1677
- gateway_service: "gateway_service";
1678
- route: "route";
1679
- status_code: "status_code";
1680
- status_code_grouped: "status_code_grouped";
1681
- application: "application";
1682
- consumer: "consumer";
1683
- realm: "realm";
1684
- ai_provider: "ai_provider";
1685
- ai_response_model: "ai_response_model";
1686
- ai_request_model: "ai_request_model";
1687
- llm_cache_status: "llm_cache_status";
1688
- llm_embeddings_provider: "llm_embeddings_provider";
1689
- llm_embeddings_model: "llm_embeddings_model";
1690
- ai_plugin: "ai_plugin";
1691
- }>;
1692
- operator: z.ZodEnum<{
1693
- in: "in";
1694
- not_in: "not_in";
1695
- selector: "selector";
1696
- }>;
1697
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1698
- }, z.core.$strict>, z.ZodObject<{
1699
- field: z.ZodEnum<{
1700
- control_plane: "control_plane";
1701
- control_plane_group: "control_plane_group";
1702
- gateway_service: "gateway_service";
1703
- route: "route";
1704
- status_code: "status_code";
1705
- status_code_grouped: "status_code_grouped";
1706
- application: "application";
1707
- consumer: "consumer";
1708
- realm: "realm";
1709
- ai_provider: "ai_provider";
1710
- ai_response_model: "ai_response_model";
1711
- ai_request_model: "ai_request_model";
1712
- llm_cache_status: "llm_cache_status";
1713
- llm_embeddings_provider: "llm_embeddings_provider";
1714
- llm_embeddings_model: "llm_embeddings_model";
1715
- ai_plugin: "ai_plugin";
1716
- }>;
1717
- operator: z.ZodEnum<{
1718
- empty: "empty";
1719
- not_empty: "not_empty";
1720
- }>;
1721
- }, z.core.$strict>]>>>>;
1722
- }, z.core.$strict>]>;
1723
- chart: z.ZodUnion<readonly [z.ZodObject<{
1724
- type: z.ZodEnum<{
1725
- horizontal_bar: "horizontal_bar";
1726
- vertical_bar: "vertical_bar";
1727
- }>;
1728
- stacked: z.ZodOptional<z.ZodBoolean>;
1729
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1730
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1731
- chart_title: z.ZodOptional<z.ZodString>;
1732
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1733
- }, z.core.$strict>, z.ZodObject<{
1734
- type: z.ZodLiteral<"gauge">;
1735
- metric_display: z.ZodOptional<z.ZodEnum<{
1736
- hidden: "hidden";
1737
- single: "single";
1738
- full: "full";
1739
- }>>;
1740
- reverse_dataset: z.ZodOptional<z.ZodBoolean>;
1741
- numerator: z.ZodOptional<z.ZodNumber>;
1742
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1743
- chart_title: z.ZodOptional<z.ZodString>;
1744
- }, z.core.$strict>, z.ZodObject<{
1745
- type: z.ZodLiteral<"donut">;
1746
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1747
- chart_title: z.ZodOptional<z.ZodString>;
1748
- }, z.core.$strict>, z.ZodObject<{
1749
- type: z.ZodEnum<{
1750
- timeseries_line: "timeseries_line";
1751
- timeseries_bar: "timeseries_bar";
1752
- }>;
1753
- stacked: z.ZodOptional<z.ZodBoolean>;
1754
- threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1755
- chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1756
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1757
- chart_title: z.ZodOptional<z.ZodString>;
1758
- allow_csv_export: z.ZodOptional<z.ZodBoolean>;
1759
- }, z.core.$strict>, z.ZodObject<{
1760
- type: z.ZodLiteral<"golden_signals">;
1761
- chart_title: z.ZodOptional<z.ZodString>;
1762
- long_card_titles: z.ZodOptional<z.ZodBoolean>;
1763
- description: z.ZodOptional<z.ZodString>;
1764
- percentile_latency: z.ZodOptional<z.ZodBoolean>;
1765
- }, z.core.$strict>, z.ZodObject<{
1766
- type: z.ZodLiteral<"top_n">;
1767
- chart_title: z.ZodOptional<z.ZodString>;
1768
- synthetics_data_key: z.ZodOptional<z.ZodString>;
1769
- description: z.ZodOptional<z.ZodString>;
1770
- entity_link: z.ZodOptional<z.ZodString>;
1771
- }, z.core.$strict>, z.ZodObject<{
1772
- type: z.ZodLiteral<"slottable">;
1773
- id: z.ZodString;
1774
- }, z.core.$strict>, z.ZodObject<{
1775
- type: z.ZodLiteral<"single_value">;
1776
- decimal_points: z.ZodOptional<z.ZodNumber>;
1777
- chart_title: z.ZodOptional<z.ZodString>;
1778
- }, z.core.$strict>]>;
1779
- }, z.core.$strict>;
1780
- layout: z.ZodObject<{
1781
- position: z.ZodObject<{
1782
- col: z.ZodNumber;
1783
- row: z.ZodNumber;
1784
- }, z.core.$strict>;
1785
- size: z.ZodObject<{
1786
- cols: z.ZodNumber;
1787
- rows: z.ZodNumber;
1788
- fit_to_content: z.ZodOptional<z.ZodBoolean>;
1789
- }, z.core.$strict>;
1790
- }, z.core.$strict>;
1791
- id: z.ZodOptional<z.ZodString>;
1792
- }, z.core.$strict>>;
1793
- tile_height: z.ZodOptional<z.ZodNumber>;
1794
- preset_filters: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1795
- field: z.ZodEnum<{
1796
- api: "api";
1797
- api_product: "api_product";
1798
- api_product_version: "api_product_version";
1799
- control_plane: "control_plane";
1800
- control_plane_group: "control_plane_group";
1801
- data_plane_node: "data_plane_node";
1802
- gateway_service: "gateway_service";
1803
- portal: "portal";
1804
- route: "route";
1805
- status_code: "status_code";
1806
- status_code_grouped: "status_code_grouped";
1807
- application: "application";
1808
- consumer: "consumer";
1809
- country_code: "country_code";
1810
- iso_code: "iso_code";
1811
- upstream_status_code: "upstream_status_code";
1812
- upstream_status_code_grouped: "upstream_status_code_grouped";
1813
- response_source: "response_source";
1814
- data_plane_node_version: "data_plane_node_version";
1815
- realm: "realm";
1816
- ai_provider: "ai_provider";
1817
- ai_response_model: "ai_response_model";
1818
- ai_request_model: "ai_request_model";
1819
- llm_cache_status: "llm_cache_status";
1820
- llm_embeddings_provider: "llm_embeddings_provider";
1821
- llm_embeddings_model: "llm_embeddings_model";
1822
- ai_plugin: "ai_plugin";
1823
- }>;
1824
- operator: z.ZodEnum<{
1825
- in: "in";
1826
- not_in: "not_in";
1827
- selector: "selector";
1828
- }>;
1829
- value: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1830
- }, z.core.$strict>, z.ZodObject<{
1831
- field: z.ZodEnum<{
1832
- api: "api";
1833
- api_product: "api_product";
1834
- api_product_version: "api_product_version";
1835
- control_plane: "control_plane";
1836
- control_plane_group: "control_plane_group";
1837
- data_plane_node: "data_plane_node";
1838
- gateway_service: "gateway_service";
1839
- portal: "portal";
1840
- route: "route";
1841
- status_code: "status_code";
1842
- status_code_grouped: "status_code_grouped";
1843
- application: "application";
1844
- consumer: "consumer";
1845
- country_code: "country_code";
1846
- iso_code: "iso_code";
1847
- upstream_status_code: "upstream_status_code";
1848
- upstream_status_code_grouped: "upstream_status_code_grouped";
1849
- response_source: "response_source";
1850
- data_plane_node_version: "data_plane_node_version";
1851
- realm: "realm";
1852
- ai_provider: "ai_provider";
1853
- ai_response_model: "ai_response_model";
1854
- ai_request_model: "ai_request_model";
1855
- llm_cache_status: "llm_cache_status";
1856
- llm_embeddings_provider: "llm_embeddings_provider";
1857
- llm_embeddings_model: "llm_embeddings_model";
1858
- ai_plugin: "ai_plugin";
1859
- }>;
1860
- operator: z.ZodEnum<{
1861
- empty: "empty";
1862
- not_empty: "not_empty";
1863
- }>;
1864
- }, z.core.$strict>]>>>;
1865
- template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1866
- }, z.core.$strict>;
1867
- export type DashboardConfig = z.infer<typeof zDashboardConfig>;
1868
- export declare const parseDashboardConfig: (input: unknown) => {
1869
- tiles: {
1870
- type: "chart";
1871
- definition: {
1872
- query: {
1873
- datasource: "api_usage";
1874
- granularity?: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend" | undefined;
1875
- time_range?: {
1876
- tz: string;
1877
- type: "relative";
1878
- time_range: "15m" | "1h" | "6h" | "12h" | "24h" | "7d" | "30d" | "current_week" | "current_month" | "previous_week" | "previous_month";
1879
- } | {
1880
- type: "absolute";
1881
- start: string;
1882
- end: string;
1883
- tz?: string | undefined;
1884
- } | undefined;
1885
- limit?: number | undefined;
1886
- meta?: Record<string, never> | undefined;
1887
- metrics?: string[] | undefined;
1888
- dimensions?: string[] | undefined;
1889
- filters?: ({
1890
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "iso_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm";
1891
- operator: "in" | "not_in" | "selector";
1892
- value: (string | number | null)[];
1893
- } | {
1894
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "iso_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm";
1895
- operator: "empty" | "not_empty";
1896
- })[] | undefined;
1897
- } | {
1898
- datasource: "basic";
1899
- granularity?: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend" | undefined;
1900
- time_range?: {
1901
- tz: string;
1902
- type: "relative";
1903
- time_range: "15m" | "1h" | "6h" | "12h" | "24h" | "7d" | "30d" | "current_week" | "current_month" | "previous_week" | "previous_month";
1904
- } | {
1905
- type: "absolute";
1906
- start: string;
1907
- end: string;
1908
- tz?: string | undefined;
1909
- } | undefined;
1910
- limit?: number | undefined;
1911
- meta?: Record<string, never> | undefined;
1912
- metrics?: string[] | undefined;
1913
- dimensions?: string[] | undefined;
1914
- filters?: ({
1915
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped";
1916
- operator: "in" | "not_in" | "selector";
1917
- value: (string | number | null)[];
1918
- } | {
1919
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped";
1920
- operator: "empty" | "not_empty";
1921
- })[] | undefined;
1922
- } | {
1923
- datasource: "llm_usage";
1924
- granularity?: "secondly" | "tenSecondly" | "thirtySecondly" | "minutely" | "fiveMinutely" | "tenMinutely" | "thirtyMinutely" | "hourly" | "twoHourly" | "twelveHourly" | "daily" | "weekly" | "trend" | undefined;
1925
- time_range?: {
1926
- tz: string;
1927
- type: "relative";
1928
- time_range: "15m" | "1h" | "6h" | "12h" | "24h" | "7d" | "30d" | "current_week" | "current_month" | "previous_week" | "previous_month";
1929
- } | {
1930
- type: "absolute";
1931
- start: string;
1932
- end: string;
1933
- tz?: string | undefined;
1934
- } | undefined;
1935
- limit?: number | undefined;
1936
- meta?: Record<string, never> | undefined;
1937
- metrics?: string[] | undefined;
1938
- dimensions?: string[] | undefined;
1939
- filters?: ({
1940
- field: "control_plane" | "control_plane_group" | "gateway_service" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "realm" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin";
1941
- operator: "in" | "not_in" | "selector";
1942
- value: (string | number | null)[];
1943
- } | {
1944
- field: "control_plane" | "control_plane_group" | "gateway_service" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "realm" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin";
1945
- operator: "empty" | "not_empty";
1946
- })[] | undefined;
1947
- };
1948
- chart: {
1949
- type: "slottable";
1950
- id: string;
1951
- } | {
1952
- type: "horizontal_bar" | "vertical_bar";
1953
- stacked?: boolean | undefined;
1954
- chart_dataset_colors?: string[] | Record<string, string> | undefined;
1955
- synthetics_data_key?: string | undefined;
1956
- chart_title?: string | undefined;
1957
- allow_csv_export?: boolean | undefined;
1958
- } | {
1959
- type: "timeseries_line" | "timeseries_bar";
1960
- stacked?: boolean | undefined;
1961
- threshold?: Record<string, number> | undefined;
1962
- chart_dataset_colors?: string[] | Record<string, string> | undefined;
1963
- synthetics_data_key?: string | undefined;
1964
- chart_title?: string | undefined;
1965
- allow_csv_export?: boolean | undefined;
1966
- } | {
1967
- type: "gauge";
1968
- metric_display?: "hidden" | "single" | "full" | undefined;
1969
- reverse_dataset?: boolean | undefined;
1970
- numerator?: number | undefined;
1971
- synthetics_data_key?: string | undefined;
1972
- chart_title?: string | undefined;
1973
- } | {
1974
- type: "donut";
1975
- synthetics_data_key?: string | undefined;
1976
- chart_title?: string | undefined;
1977
- } | {
1978
- type: "top_n";
1979
- chart_title?: string | undefined;
1980
- synthetics_data_key?: string | undefined;
1981
- description?: string | undefined;
1982
- entity_link?: string | undefined;
1983
- } | {
1984
- type: "golden_signals";
1985
- chart_title?: string | undefined;
1986
- long_card_titles?: boolean | undefined;
1987
- description?: string | undefined;
1988
- percentile_latency?: boolean | undefined;
1989
- } | {
1990
- type: "single_value";
1991
- decimal_points?: number | undefined;
1992
- chart_title?: string | undefined;
1993
- };
1994
- };
1995
- layout: {
1996
- position: {
1997
- col: number;
1998
- row: number;
1999
- };
2000
- size: {
2001
- cols: number;
2002
- rows: number;
2003
- fit_to_content?: boolean | undefined;
2004
- };
2005
- };
2006
- id?: string | undefined;
2007
- }[];
2008
- tile_height?: number | undefined;
2009
- preset_filters?: ({
2010
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "iso_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin";
2011
- operator: "in" | "not_in" | "selector";
2012
- value: (string | number | null)[];
2013
- } | {
2014
- field: "api" | "api_product" | "api_product_version" | "control_plane" | "control_plane_group" | "data_plane_node" | "gateway_service" | "portal" | "route" | "status_code" | "status_code_grouped" | "application" | "consumer" | "country_code" | "iso_code" | "upstream_status_code" | "upstream_status_code_grouped" | "response_source" | "data_plane_node_version" | "realm" | "ai_provider" | "ai_response_model" | "ai_request_model" | "llm_cache_status" | "llm_embeddings_provider" | "llm_embeddings_model" | "ai_plugin";
2015
- operator: "empty" | "not_empty";
2016
- })[] | undefined;
2017
- template_id?: string | null | undefined;
2018
- };
2019
- export {};
2020
- //# sourceMappingURL=dashboardSchemaZod.v2.d.ts.map