@lightdash/common 0.1971.0 → 0.1972.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.
@@ -42,6 +42,25 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
42
42
  nullsFirst: boolean | null;
43
43
  }[];
44
44
  }>;
45
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
46
+ name: z.ZodString;
47
+ label: z.ZodString;
48
+ baseDimensionName: z.ZodString;
49
+ table: z.ZodString;
50
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ name: string;
53
+ label: string;
54
+ table: string;
55
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
56
+ baseDimensionName: string;
57
+ }, {
58
+ name: string;
59
+ label: string;
60
+ table: string;
61
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
62
+ baseDimensionName: string;
63
+ }>, "many">>;
45
64
  filters: z.ZodNullable<z.ZodObject<{
46
65
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
47
66
  dimensions: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
@@ -1170,6 +1189,13 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
1170
1189
  })[] | null;
1171
1190
  type: "and" | "or";
1172
1191
  } | null;
1192
+ customMetrics: {
1193
+ name: string;
1194
+ label: string;
1195
+ table: string;
1196
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1197
+ baseDimensionName: string;
1198
+ }[] | null;
1173
1199
  vizConfig: {
1174
1200
  dimensions: string[];
1175
1201
  metrics: string[];
@@ -1364,6 +1390,13 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
1364
1390
  })[] | null;
1365
1391
  type: "and" | "or";
1366
1392
  } | null;
1393
+ customMetrics: {
1394
+ name: string;
1395
+ label: string;
1396
+ table: string;
1397
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1398
+ baseDimensionName: string;
1399
+ }[] | null;
1367
1400
  vizConfig: {
1368
1401
  dimensions: string[];
1369
1402
  metrics: string[];
@@ -1419,6 +1452,25 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
1419
1452
  nullsFirst: boolean | null;
1420
1453
  }[];
1421
1454
  }>;
1455
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
1456
+ name: z.ZodString;
1457
+ label: z.ZodString;
1458
+ baseDimensionName: z.ZodString;
1459
+ table: z.ZodString;
1460
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ name: string;
1463
+ label: string;
1464
+ table: string;
1465
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1466
+ baseDimensionName: string;
1467
+ }, {
1468
+ name: string;
1469
+ label: string;
1470
+ table: string;
1471
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1472
+ baseDimensionName: string;
1473
+ }>, "many">>;
1422
1474
  filters: z.ZodNullable<z.ZodObject<{
1423
1475
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1424
1476
  dimensions: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
@@ -2547,6 +2599,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2547
2599
  })[] | null;
2548
2600
  type: "and" | "or";
2549
2601
  } | null;
2602
+ customMetrics: {
2603
+ name: string;
2604
+ label: string;
2605
+ table: string;
2606
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2607
+ baseDimensionName: string;
2608
+ }[] | null;
2550
2609
  vizConfig: {
2551
2610
  dimensions: string[];
2552
2611
  metrics: string[];
@@ -2741,6 +2800,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2741
2800
  })[] | null;
2742
2801
  type: "and" | "or";
2743
2802
  } | null;
2803
+ customMetrics: {
2804
+ name: string;
2805
+ label: string;
2806
+ table: string;
2807
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2808
+ baseDimensionName: string;
2809
+ }[] | null;
2744
2810
  vizConfig: {
2745
2811
  dimensions: string[];
2746
2812
  metrics: string[];
@@ -2753,6 +2819,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2753
2819
  }[];
2754
2820
  };
2755
2821
  }>, {
2822
+ customMetrics: {
2823
+ name: string;
2824
+ label: string;
2825
+ table: string;
2826
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2827
+ baseDimensionName: string;
2828
+ }[] | null;
2756
2829
  filters: import("../../../..").Filters;
2757
2830
  type: "run_metric_query";
2758
2831
  vizConfig: {
@@ -2949,6 +3022,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2949
3022
  })[] | null;
2950
3023
  type: "and" | "or";
2951
3024
  } | null;
3025
+ customMetrics: {
3026
+ name: string;
3027
+ label: string;
3028
+ table: string;
3029
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
3030
+ baseDimensionName: string;
3031
+ }[] | null;
2952
3032
  vizConfig: {
2953
3033
  dimensions: string[];
2954
3034
  metrics: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunMetricQueryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,eAAO,MAAM,iCAAiC,kbAU7C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7C,CAAC;AAER,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,uCAAuC,CACjD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toolRunMetricQueryArgsSchemaTransformed = exports.toolRunMetricQueryArgsSchema = exports.TOOL_RUN_METRIC_QUERY_DESCRIPTION = void 0;
4
+ const customMetrics_1 = require("../customMetrics");
4
5
  const filters_1 = require("../filters");
5
6
  const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
6
7
  const visualizations_1 = require("../visualizations");
@@ -18,6 +19,7 @@ Usage Tips:
18
19
  exports.toolRunMetricQueryArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)('run_metric_query', exports.TOOL_RUN_METRIC_QUERY_DESCRIPTION)
19
20
  .extend({
20
21
  vizConfig: visualizations_1.tableVizConfigSchema,
22
+ customMetrics: customMetrics_1.customMetricsSchema,
21
23
  filters: filters_1.filtersSchema
22
24
  .nullable()
23
25
  .describe('Filters to apply to the query. Filtered fields must exist in the selected explore.'),
@@ -25,6 +27,7 @@ exports.toolRunMetricQueryArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)
25
27
  .build();
26
28
  exports.toolRunMetricQueryArgsSchemaTransformed = exports.toolRunMetricQueryArgsSchema.transform((data) => ({
27
29
  ...data,
30
+ customMetrics: customMetrics_1.customMetricsSchema.parse(data.customMetrics ?? []),
28
31
  filters: filters_1.filtersSchemaTransformed.parse(data.filters ?? null),
29
32
  }));
30
33
  //# sourceMappingURL=toolRunMetricQueryArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunMetricQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":";;;AACA,wCAAqE;AACrE,4DAAwD;AACxD,sDAAyD;AAE5C,QAAA,iCAAiC,GAAG;;;;;;;;;;CAUhD,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EACxD,kBAAkB,EAClB,yCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,SAAS,EAAE,qCAAoB;IAC/B,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAMA,QAAA,uCAAuC,GAChD,oCAA4B,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,GAAG,IAAI;IACP,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC;CAChE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolRunMetricQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":";;;AACA,oDAAuD;AACvD,wCAAqE;AACrE,4DAAwD;AACxD,sDAAyD;AAE5C,QAAA,iCAAiC,GAAG;;;;;;;;;;CAUhD,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,oCAAgB,EACxD,kBAAkB,EAClB,yCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,SAAS,EAAE,qCAAoB;IAC/B,aAAa,EAAE,mCAAmB;IAClC,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAMA,QAAA,uCAAuC,GAChD,oCAA4B,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,GAAG,IAAI;IACP,aAAa,EAAE,mCAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,CAAC;IAClE,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC;CAChE,CAAC,CAAC,CAAC"}
@@ -42,6 +42,25 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
42
42
  nullsFirst: boolean | null;
43
43
  }[];
44
44
  }>;
45
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
46
+ name: z.ZodString;
47
+ label: z.ZodString;
48
+ baseDimensionName: z.ZodString;
49
+ table: z.ZodString;
50
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ name: string;
53
+ label: string;
54
+ table: string;
55
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
56
+ baseDimensionName: string;
57
+ }, {
58
+ name: string;
59
+ label: string;
60
+ table: string;
61
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
62
+ baseDimensionName: string;
63
+ }>, "many">>;
45
64
  filters: z.ZodNullable<z.ZodObject<{
46
65
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
47
66
  dimensions: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
@@ -1170,6 +1189,13 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
1170
1189
  })[] | null;
1171
1190
  type: "and" | "or";
1172
1191
  } | null;
1192
+ customMetrics: {
1193
+ name: string;
1194
+ label: string;
1195
+ table: string;
1196
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1197
+ baseDimensionName: string;
1198
+ }[] | null;
1173
1199
  vizConfig: {
1174
1200
  dimensions: string[];
1175
1201
  metrics: string[];
@@ -1364,6 +1390,13 @@ export declare const toolRunMetricQueryArgsSchema: z.ZodObject<{
1364
1390
  })[] | null;
1365
1391
  type: "and" | "or";
1366
1392
  } | null;
1393
+ customMetrics: {
1394
+ name: string;
1395
+ label: string;
1396
+ table: string;
1397
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1398
+ baseDimensionName: string;
1399
+ }[] | null;
1367
1400
  vizConfig: {
1368
1401
  dimensions: string[];
1369
1402
  metrics: string[];
@@ -1419,6 +1452,25 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
1419
1452
  nullsFirst: boolean | null;
1420
1453
  }[];
1421
1454
  }>;
1455
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
1456
+ name: z.ZodString;
1457
+ label: z.ZodString;
1458
+ baseDimensionName: z.ZodString;
1459
+ table: z.ZodString;
1460
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ name: string;
1463
+ label: string;
1464
+ table: string;
1465
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1466
+ baseDimensionName: string;
1467
+ }, {
1468
+ name: string;
1469
+ label: string;
1470
+ table: string;
1471
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1472
+ baseDimensionName: string;
1473
+ }>, "many">>;
1422
1474
  filters: z.ZodNullable<z.ZodObject<{
1423
1475
  type: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
1424
1476
  dimensions: z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
@@ -2547,6 +2599,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2547
2599
  })[] | null;
2548
2600
  type: "and" | "or";
2549
2601
  } | null;
2602
+ customMetrics: {
2603
+ name: string;
2604
+ label: string;
2605
+ table: string;
2606
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2607
+ baseDimensionName: string;
2608
+ }[] | null;
2550
2609
  vizConfig: {
2551
2610
  dimensions: string[];
2552
2611
  metrics: string[];
@@ -2741,6 +2800,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2741
2800
  })[] | null;
2742
2801
  type: "and" | "or";
2743
2802
  } | null;
2803
+ customMetrics: {
2804
+ name: string;
2805
+ label: string;
2806
+ table: string;
2807
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2808
+ baseDimensionName: string;
2809
+ }[] | null;
2744
2810
  vizConfig: {
2745
2811
  dimensions: string[];
2746
2812
  metrics: string[];
@@ -2753,6 +2819,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2753
2819
  }[];
2754
2820
  };
2755
2821
  }>, {
2822
+ customMetrics: {
2823
+ name: string;
2824
+ label: string;
2825
+ table: string;
2826
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2827
+ baseDimensionName: string;
2828
+ }[] | null;
2756
2829
  filters: import("../../../..").Filters;
2757
2830
  type: "run_metric_query";
2758
2831
  vizConfig: {
@@ -2949,6 +3022,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodEffects<z.Zod
2949
3022
  })[] | null;
2950
3023
  type: "and" | "or";
2951
3024
  } | null;
3025
+ customMetrics: {
3026
+ name: string;
3027
+ label: string;
3028
+ table: string;
3029
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
3030
+ baseDimensionName: string;
3031
+ }[] | null;
2952
3032
  vizConfig: {
2953
3033
  dimensions: string[];
2954
3034
  metrics: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunMetricQueryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,eAAO,MAAM,iCAAiC,kbAU7C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7C,CAAC;AAER,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,uCAAuC,CACjD,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { customMetricsSchema } from '../customMetrics';
1
2
  import { filtersSchema, filtersSchemaTransformed } from '../filters';
2
3
  import { createToolSchema } from '../toolSchemaBuilder';
3
4
  import { tableVizConfigSchema } from '../visualizations';
@@ -15,6 +16,7 @@ Usage Tips:
15
16
  export const toolRunMetricQueryArgsSchema = createToolSchema('run_metric_query', TOOL_RUN_METRIC_QUERY_DESCRIPTION)
16
17
  .extend({
17
18
  vizConfig: tableVizConfigSchema,
19
+ customMetrics: customMetricsSchema,
18
20
  filters: filtersSchema
19
21
  .nullable()
20
22
  .describe('Filters to apply to the query. Filtered fields must exist in the selected explore.'),
@@ -22,6 +24,7 @@ export const toolRunMetricQueryArgsSchema = createToolSchema('run_metric_query',
22
24
  .build();
23
25
  export const toolRunMetricQueryArgsSchemaTransformed = toolRunMetricQueryArgsSchema.transform((data) => ({
24
26
  ...data,
27
+ customMetrics: customMetricsSchema.parse(data.customMetrics ?? []),
25
28
  filters: filtersSchemaTransformed.parse(data.filters ?? null),
26
29
  }));
27
30
  //# sourceMappingURL=toolRunMetricQueryArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunMetricQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;;;;;;;;CAUhD,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CACxD,kBAAkB,EAClB,iCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,aAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAMb,MAAM,CAAC,MAAM,uCAAuC,GAChD,4BAA4B,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,GAAG,IAAI;IACP,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC;CAChE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolRunMetricQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;;;;;;;;CAUhD,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CACxD,kBAAkB,EAClB,iCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,SAAS,EAAE,oBAAoB;IAC/B,aAAa,EAAE,mBAAmB;IAClC,OAAO,EAAE,aAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAMb,MAAM,CAAC,MAAM,uCAAuC,GAChD,4BAA4B,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,GAAG,IAAI;IACP,aAAa,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,CAAC;IAClE,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC;CAChE,CAAC,CAAC,CAAC"}