@lightdash/common 2.88.0 → 2.89.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.
Files changed (94) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +12 -12
  3. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  4. package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  5. package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
  6. package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
  7. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  8. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +13 -2
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +4 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +10 -4
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +14 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +1 -1
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +70 -0
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -0
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +39 -0
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -0
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +2 -0
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +1 -0
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +27 -0
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +1 -0
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +65 -65
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  27. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  28. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  29. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +3 -0
  30. package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  31. package/dist/cjs/ee/AiAgent/utils.d.ts +25 -25
  32. package/dist/esm/.tsbuildinfo +1 -1
  33. package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +12 -12
  34. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  35. package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  36. package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
  37. package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
  38. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  39. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  40. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +11 -0
  41. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  42. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +4 -1
  43. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  44. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +10 -4
  45. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  46. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +14 -1
  47. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +1 -1
  48. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +70 -0
  49. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -0
  50. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +35 -0
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -0
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +2 -0
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +1 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +25 -0
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +1 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +65 -65
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  58. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  59. package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  60. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +3 -0
  61. package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  62. package/dist/esm/ee/AiAgent/utils.d.ts +25 -25
  63. package/dist/types/.tsbuildinfo +1 -1
  64. package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +12 -12
  65. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
  66. package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
  67. package/dist/types/ee/AiAgent/schemas/tools/index.js +1 -0
  68. package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
  69. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
  70. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  71. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +11 -0
  72. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  73. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +4 -1
  74. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  75. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +10 -4
  76. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  77. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js +14 -1
  78. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.test.js.map +1 -1
  79. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +70 -0
  80. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -0
  81. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +35 -0
  82. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -0
  83. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts +2 -0
  84. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.d.ts.map +1 -0
  85. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js +25 -0
  86. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.js.map +1 -0
  87. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +65 -65
  88. package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
  89. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
  90. package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
  91. package/dist/types/ee/AiAgent/schemas/visualizations/index.js +3 -0
  92. package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
  93. package/dist/types/ee/AiAgent/utils.d.ts +25 -25
  94. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { makeBuiltInToolResultGuard } from './builtInToolResultGuard';
3
+ import { isToolGenerateDataAppResult, toolGenerateDataAppOutputSchema, } from './toolGenerateDataAppArgs';
4
+ export const TOOL_ITERATE_DATA_APP_DESCRIPTION = [
5
+ 'Start a build that adds a version to an existing data app from a follow-up brief.',
6
+ 'Use it when the user wants to change, fix, or extend a data app that already exists — one built earlier in this thread, or one found with findContent; use generateDataApp only for a brand-new app.',
7
+ "The coding agent works from the app's current source, so the brief should describe the change, not restate the whole app.",
8
+ 'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending"). One request, one call: tell the user the build has started, then end your turn — never wait, poll, or call this tool again for the same request.',
9
+ 'A later turn sees the outcome on this call\'s result: "success" carries the app name and the builder link (href) to share; "error" carries the failure message. While a version is already building for the app, the call fails — relay that the user should wait for the current build to finish.',
10
+ ].join(' ');
11
+ export const toolIterateDataAppArgsSchema = z.object({
12
+ appSlug: z
13
+ .string()
14
+ .describe('Slug of the data app to change — from an earlier generateDataApp or iterateDataApp result, findContent, or readContent.'),
15
+ prompt: z
16
+ .string()
17
+ .describe("A self-contained brief of the change for the coding agent, which sees the app's current source and the semantic layer but not this conversation. Describe what to change and the outcome you expect, and include every detail from this thread the change depends on."),
18
+ dashboardSlug: z
19
+ .string()
20
+ .nullish()
21
+ .default(null)
22
+ .describe("Pull in an existing dashboard: its slug (from findContent). The coding agent gets the dashboard's layout and charts as context; the dashboard itself stays unchanged. Omit when the change does not reference a dashboard."),
23
+ chartSlugs: z
24
+ .array(z.string())
25
+ .nullish()
26
+ .default(null)
27
+ .describe('Saved charts (slugs from findContent) whose queries the change builds on; the charts themselves stay unchanged. Omit when the change does not reference saved charts.'),
28
+ });
29
+ // The iterate tool shares the create tool's outcome contract: same pending,
30
+ // success, and error shapes, patched by the same build outcome recording.
31
+ export const toolIterateDataAppOutputSchema = toolGenerateDataAppOutputSchema;
32
+ export const isToolIterateDataAppResult = makeBuiltInToolResultGuard('iterateDataApp', toolGenerateDataAppOutputSchema.shape.metadata);
33
+ /** A data app build result from either the create or the iterate tool. */
34
+ export const isToolDataAppBuildResult = (result) => isToolGenerateDataAppResult(result) || isToolIterateDataAppResult(result);
35
+ //# sourceMappingURL=toolIterateDataAppArgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolIterateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACH,2BAA2B,EAC3B,+BAA+B,GAElC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,mFAAmF;IACnF,sMAAsM;IACtM,2HAA2H;IAC3H,2QAA2Q;IAC3Q,oSAAoS;CACvS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,yHAAyH,CAC5H;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,uQAAuQ,CAC1Q;IACL,aAAa,EAAE,CAAC;SACX,MAAM,EAAE;SACR,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,4NAA4N,CAC/N;IACL,UAAU,EAAE,CAAC;SACR,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,uKAAuK,CAC1K;CACR,CAAC,CAAC;AAEH,4EAA4E;AAC5E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,+BAA+B,CAAC;AAU9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,0BAA0B,CAChE,gBAAgB,EAChB,+BAA+B,CAAC,KAAK,CAAC,QAAQ,CACjD,CAAC;AAEF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGpC,MAAS,EAKX,EAAE,CAAC,2BAA2B,CAAC,MAAM,CAAC,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toolIterateDataAppArgs.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolIterateDataAppArgs.test.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { isToolDataAppBuildResult, isToolIterateDataAppResult, } from './toolIterateDataAppArgs';
2
+ const pendingResult = (toolName) => ({
3
+ toolType: 'built-in',
4
+ toolName,
5
+ metadata: { status: 'pending', appUuid: 'app-1', version: 2 },
6
+ });
7
+ describe('data app build result guards', () => {
8
+ it('matches an iterateDataApp result', () => {
9
+ expect(isToolIterateDataAppResult(pendingResult('iterateDataApp'))).toBe(true);
10
+ expect(isToolIterateDataAppResult(pendingResult('generateDataApp'))).toBe(false);
11
+ });
12
+ it('drives the build card from either tool name', () => {
13
+ expect(isToolDataAppBuildResult(pendingResult('generateDataApp'))).toBe(true);
14
+ expect(isToolDataAppBuildResult(pendingResult('iterateDataApp'))).toBe(true);
15
+ expect(isToolDataAppBuildResult(pendingResult('editDbtProject'))).toBe(false);
16
+ });
17
+ it('rejects metadata that does not parse as a build outcome', () => {
18
+ expect(isToolDataAppBuildResult({
19
+ toolType: 'built-in',
20
+ toolName: 'iterateDataApp',
21
+ metadata: { status: 'nonsense' },
22
+ })).toBe(false);
23
+ });
24
+ });
25
+ //# sourceMappingURL=toolIterateDataAppArgs.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolIterateDataAppArgs.test.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.test.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EACxB,0BAA0B,GAC7B,MAAM,0BAA0B,CAAC;AAElC,MAAM,aAAa,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IACzC,QAAQ,EAAE,UAAU;IACpB,QAAQ;IACR,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE;CAChE,CAAC,CAAC;AAEH,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QACxC,MAAM,CACF,0BAA0B,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAC9D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,MAAM,CACF,0BAA0B,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAC/D,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CACnE,IAAI,CACP,CAAC;QACF,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAClE,IAAI,CACP,CAAC;QACF,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAClE,KAAK,CACR,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QAC/D,MAAM,CACF,wBAAwB,CAAC;YACrB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;SACnC,CAAC,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -967,18 +967,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
967
967
  limit: number | null;
968
968
  };
969
969
  tableCalculations: ({
970
- name: string;
971
- displayName: string;
972
- type: "formula";
973
- formula: string;
974
- format: "number" | "percent" | null;
975
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
976
- } | {
977
- name: string;
978
- displayName: string;
979
- type: "rank_in_column";
980
- fieldId: string;
981
- } | {
982
970
  name: string;
983
971
  displayName: string;
984
972
  type: "percent_change_from_previous";
@@ -988,6 +976,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
988
976
  order: "asc" | "desc" | null;
989
977
  }[];
990
978
  partitionBy: string[] | null;
979
+ } | {
980
+ name: string;
981
+ displayName: string;
982
+ type: "running_total";
983
+ fieldId: string;
984
+ } | {
985
+ name: string;
986
+ displayName: string;
987
+ type: "formula";
988
+ formula: string;
989
+ format: "number" | "percent" | null;
990
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
991
991
  } | {
992
992
  name: string;
993
993
  displayName: string;
@@ -1007,7 +1007,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1007
1007
  } | {
1008
1008
  name: string;
1009
1009
  displayName: string;
1010
- type: "running_total";
1010
+ type: "rank_in_column";
1011
1011
  fieldId: string;
1012
1012
  } | {
1013
1013
  name: string;
@@ -1047,6 +1047,12 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1047
1047
  limit: number | null;
1048
1048
  };
1049
1049
  customMetrics: ({
1050
+ kind: "periodComparison";
1051
+ baseMetricId: string;
1052
+ timeDimensionId: string;
1053
+ granularity: import("../../../..").TimeFrames;
1054
+ periodOffset: number;
1055
+ } | {
1050
1056
  kind: "aggregation";
1051
1057
  name: string;
1052
1058
  label: string;
@@ -1056,17 +1062,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1056
1062
  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;
1057
1063
  filters: {
1058
1064
  filter: {
1059
- fieldId: string;
1060
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1061
- fieldFilterType: import("../../../..").FilterType.STRING;
1062
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1063
- } | {
1064
- fieldId: string;
1065
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1066
- fieldFilterType: import("../../../..").FilterType.STRING;
1067
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1068
- values: string[];
1069
- } | {
1070
1065
  fieldId: string;
1071
1066
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1072
1067
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1077,6 +1072,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1077
1072
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1078
1073
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1079
1074
  values: boolean[];
1075
+ } | {
1076
+ fieldId: string;
1077
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1078
+ fieldFilterType: import("../../../..").FilterType.STRING;
1079
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1080
+ } | {
1081
+ fieldId: string;
1082
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1083
+ fieldFilterType: import("../../../..").FilterType.STRING;
1084
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1085
+ values: string[];
1080
1086
  } | {
1081
1087
  fieldId: string;
1082
1088
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -1146,26 +1152,8 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1146
1152
  };
1147
1153
  table: string;
1148
1154
  }[] | null;
1149
- } | {
1150
- kind: "periodComparison";
1151
- baseMetricId: string;
1152
- timeDimensionId: string;
1153
- granularity: import("../../../..").TimeFrames;
1154
- periodOffset: number;
1155
1155
  })[] | null;
1156
1156
  tableCalculations: ({
1157
- name: string;
1158
- displayName: string;
1159
- type: "formula";
1160
- formula: string;
1161
- format: "number" | "percent" | null;
1162
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1163
- } | {
1164
- name: string;
1165
- displayName: string;
1166
- type: "rank_in_column";
1167
- fieldId: string;
1168
- } | {
1169
1157
  name: string;
1170
1158
  displayName: string;
1171
1159
  type: "percent_change_from_previous";
@@ -1175,6 +1163,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1175
1163
  order: "asc" | "desc" | null;
1176
1164
  }[];
1177
1165
  partitionBy: string[] | null;
1166
+ } | {
1167
+ name: string;
1168
+ displayName: string;
1169
+ type: "running_total";
1170
+ fieldId: string;
1171
+ } | {
1172
+ name: string;
1173
+ displayName: string;
1174
+ type: "formula";
1175
+ formula: string;
1176
+ format: "number" | "percent" | null;
1177
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1178
1178
  } | {
1179
1179
  name: string;
1180
1180
  displayName: string;
@@ -1194,7 +1194,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1194
1194
  } | {
1195
1195
  name: string;
1196
1196
  displayName: string;
1197
- type: "running_total";
1197
+ type: "rank_in_column";
1198
1198
  fieldId: string;
1199
1199
  } | {
1200
1200
  name: string;
@@ -1222,17 +1222,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1222
1222
  filters: {
1223
1223
  type: "and" | "or";
1224
1224
  dimensions: ({
1225
- fieldId: string;
1226
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1227
- fieldFilterType: import("../../../..").FilterType.STRING;
1228
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1229
- } | {
1230
- fieldId: string;
1231
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1232
- fieldFilterType: import("../../../..").FilterType.STRING;
1233
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1234
- values: string[];
1235
- } | {
1236
1225
  fieldId: string;
1237
1226
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1238
1227
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1243,6 +1232,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1243
1232
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1244
1233
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1245
1234
  values: boolean[];
1235
+ } | {
1236
+ fieldId: string;
1237
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1238
+ fieldFilterType: import("../../../..").FilterType.STRING;
1239
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1240
+ } | {
1241
+ fieldId: string;
1242
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1243
+ fieldFilterType: import("../../../..").FilterType.STRING;
1244
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1245
+ values: string[];
1246
1246
  } | {
1247
1247
  fieldId: string;
1248
1248
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -1311,17 +1311,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1311
1311
  values: string[];
1312
1312
  })[] | null;
1313
1313
  metrics: ({
1314
- fieldId: string;
1315
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1316
- fieldFilterType: import("../../../..").FilterType.STRING;
1317
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1318
- } | {
1319
- fieldId: string;
1320
- fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1321
- fieldFilterType: import("../../../..").FilterType.STRING;
1322
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1323
- values: string[];
1324
- } | {
1325
1314
  fieldId: string;
1326
1315
  fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
1327
1316
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
@@ -1332,6 +1321,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1332
1321
  fieldFilterType: import("../../../..").FilterType.BOOLEAN;
1333
1322
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
1334
1323
  values: boolean[];
1324
+ } | {
1325
+ fieldId: string;
1326
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1327
+ fieldFilterType: import("../../../..").FilterType.STRING;
1328
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
1329
+ } | {
1330
+ fieldId: string;
1331
+ fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
1332
+ fieldFilterType: import("../../../..").FilterType.STRING;
1333
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
1334
+ values: string[];
1335
1335
  } | {
1336
1336
  fieldId: string;
1337
1337
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -439,17 +439,6 @@ export declare const toolSearchFieldValuesArgsSchemaTransformed: z.ZodPipe<z.Zod
439
439
  filters: {
440
440
  type: "and" | "or";
441
441
  dimensions: ({
442
- fieldId: string;
443
- fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
444
- fieldFilterType: import("../../../..").FilterType.BOOLEAN;
445
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
446
- } | {
447
- fieldId: string;
448
- fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
449
- fieldFilterType: import("../../../..").FilterType.BOOLEAN;
450
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
451
- values: boolean[];
452
- } | {
453
442
  fieldId: string;
454
443
  fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
455
444
  fieldFilterType: import("../../../..").FilterType.STRING;
@@ -460,6 +449,17 @@ export declare const toolSearchFieldValuesArgsSchemaTransformed: z.ZodPipe<z.Zod
460
449
  fieldFilterType: import("../../../..").FilterType.STRING;
461
450
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
462
451
  values: string[];
452
+ } | {
453
+ fieldId: string;
454
+ fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
455
+ fieldFilterType: import("../../../..").FilterType.BOOLEAN;
456
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
457
+ } | {
458
+ fieldId: string;
459
+ fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
460
+ fieldFilterType: import("../../../..").FilterType.BOOLEAN;
461
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
462
+ values: boolean[];
463
463
  } | {
464
464
  fieldId: string;
465
465
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -528,17 +528,6 @@ export declare const toolSearchFieldValuesArgsSchemaTransformed: z.ZodPipe<z.Zod
528
528
  values: string[];
529
529
  })[] | null;
530
530
  metrics: ({
531
- fieldId: string;
532
- fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
533
- fieldFilterType: import("../../../..").FilterType.BOOLEAN;
534
- operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
535
- } | {
536
- fieldId: string;
537
- fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
538
- fieldFilterType: import("../../../..").FilterType.BOOLEAN;
539
- operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
540
- values: boolean[];
541
- } | {
542
531
  fieldId: string;
543
532
  fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
544
533
  fieldFilterType: import("../../../..").FilterType.STRING;
@@ -549,6 +538,17 @@ export declare const toolSearchFieldValuesArgsSchemaTransformed: z.ZodPipe<z.Zod
549
538
  fieldFilterType: import("../../../..").FilterType.STRING;
550
539
  operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
551
540
  values: string[];
541
+ } | {
542
+ fieldId: string;
543
+ fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
544
+ fieldFilterType: import("../../../..").FilterType.BOOLEAN;
545
+ operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
546
+ } | {
547
+ fieldId: string;
548
+ fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
549
+ fieldFilterType: import("../../../..").FilterType.BOOLEAN;
550
+ operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
551
+ values: boolean[];
552
552
  } | {
553
553
  fieldId: string;
554
554
  fieldType: import("../../../..").DimensionType.NUMBER | import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.SUM_DISTINCT | import("../../../..").MetricType.AVERAGE_DISTINCT | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.NUMBER | import("../../../..").MetricType.MEDIAN;
@@ -30,6 +30,7 @@ export declare const ToolNameSchema: z.ZodEnum<{
30
30
  getProjectInfo: "getProjectInfo";
31
31
  getPullRequestDiff: "getPullRequestDiff";
32
32
  grepFields: "grepFields";
33
+ iterateDataApp: "iterateDataApp";
33
34
  listContent: "listContent";
34
35
  listKnowledgeDocuments: "listKnowledgeDocuments";
35
36
  listProjects: "listProjects";
@@ -87,6 +88,7 @@ export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<{
87
88
  getProjectInfo: "getProjectInfo";
88
89
  getPullRequestDiff: "getPullRequestDiff";
89
90
  grepFields: "grepFields";
91
+ iterateDataApp: "iterateDataApp";
90
92
  listContent: "listContent";
91
93
  listKnowledgeDocuments: "listKnowledgeDocuments";
92
94
  listProjects: "listProjects";
@@ -111,6 +113,6 @@ export declare const ToolDisplayMessagesSchema: z.ZodRecord<z.ZodEnum<{
111
113
  syncDbtProject: "syncDbtProject";
112
114
  updateUserName: "updateUserName";
113
115
  }> & z.core.$partial, z.ZodString>;
114
- export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"analyzeFieldImpact" | "closePullRequest" | "createContent" | "createScheduledDelivery" | "delegateResearchTask" | "describeWarehouseTable" | "discoverFields" | "discoverRepos" | "editContent" | "editDbtProject" | "editProjectContext" | "editRepo" | "exploreRepo" | "findCharts" | "findContent" | "findCustomChartTypes" | "findDashboards" | "findExplores" | "findFields" | "generateDashboard" | "generateDataApp" | "generateHashes" | "generateUuids" | "generateVisualization" | "getDashboardCharts" | "getKnowledgeDocumentContent" | "getMetadata" | "getProjectInfo" | "getPullRequestDiff" | "grepFields" | "listContent" | "listKnowledgeDocuments" | "listProjects" | "listWarehouseTables" | "listWorkstreams" | "loadMcpTools" | "loadProjectContext" | "loadSkill" | "readContent" | "readPinnedThread" | "resolveUrl" | "runComposerQueries" | "runContentQuery" | "runQuery" | "runSavedChart" | "runSql" | "searchFieldValues" | "searchSemanticLayer" | "setupPreviewDeploy" | "submitResearchReport" | "submitWorkerFindings" | "syncDbtProject" | "updateUserName", string>>;
115
- export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"analyzeFieldImpact" | "closePullRequest" | "createContent" | "createScheduledDelivery" | "delegateResearchTask" | "describeWarehouseTable" | "discoverFields" | "discoverRepos" | "editContent" | "editDbtProject" | "editProjectContext" | "editRepo" | "exploreRepo" | "findCharts" | "findContent" | "findCustomChartTypes" | "findDashboards" | "findExplores" | "findFields" | "generateDashboard" | "generateDataApp" | "generateHashes" | "generateUuids" | "generateVisualization" | "getDashboardCharts" | "getKnowledgeDocumentContent" | "getMetadata" | "getProjectInfo" | "getPullRequestDiff" | "grepFields" | "listContent" | "listKnowledgeDocuments" | "listProjects" | "listWarehouseTables" | "listWorkstreams" | "loadMcpTools" | "loadProjectContext" | "loadSkill" | "readContent" | "readPinnedThread" | "resolveUrl" | "runComposerQueries" | "runContentQuery" | "runQuery" | "runSavedChart" | "runSql" | "searchFieldValues" | "searchSemanticLayer" | "setupPreviewDeploy" | "submitResearchReport" | "submitWorkerFindings" | "syncDbtProject" | "updateUserName", string>>;
116
+ export declare const TOOL_DISPLAY_MESSAGES: Partial<Record<"analyzeFieldImpact" | "closePullRequest" | "createContent" | "createScheduledDelivery" | "delegateResearchTask" | "describeWarehouseTable" | "discoverFields" | "discoverRepos" | "editContent" | "editDbtProject" | "editProjectContext" | "editRepo" | "exploreRepo" | "findCharts" | "findContent" | "findCustomChartTypes" | "findDashboards" | "findExplores" | "findFields" | "generateDashboard" | "generateDataApp" | "generateHashes" | "generateUuids" | "generateVisualization" | "getDashboardCharts" | "getKnowledgeDocumentContent" | "getMetadata" | "getProjectInfo" | "getPullRequestDiff" | "grepFields" | "iterateDataApp" | "listContent" | "listKnowledgeDocuments" | "listProjects" | "listWarehouseTables" | "listWorkstreams" | "loadMcpTools" | "loadProjectContext" | "loadSkill" | "readContent" | "readPinnedThread" | "resolveUrl" | "runComposerQueries" | "runContentQuery" | "runQuery" | "runSavedChart" | "runSql" | "searchFieldValues" | "searchSemanticLayer" | "setupPreviewDeploy" | "submitResearchReport" | "submitWorkerFindings" | "syncDbtProject" | "updateUserName", string>>;
117
+ export declare const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL: Partial<Record<"analyzeFieldImpact" | "closePullRequest" | "createContent" | "createScheduledDelivery" | "delegateResearchTask" | "describeWarehouseTable" | "discoverFields" | "discoverRepos" | "editContent" | "editDbtProject" | "editProjectContext" | "editRepo" | "exploreRepo" | "findCharts" | "findContent" | "findCustomChartTypes" | "findDashboards" | "findExplores" | "findFields" | "generateDashboard" | "generateDataApp" | "generateHashes" | "generateUuids" | "generateVisualization" | "getDashboardCharts" | "getKnowledgeDocumentContent" | "getMetadata" | "getProjectInfo" | "getPullRequestDiff" | "grepFields" | "iterateDataApp" | "listContent" | "listKnowledgeDocuments" | "listProjects" | "listWarehouseTables" | "listWorkstreams" | "loadMcpTools" | "loadProjectContext" | "loadSkill" | "readContent" | "readPinnedThread" | "resolveUrl" | "runComposerQueries" | "runContentQuery" | "runQuery" | "runSavedChart" | "runSql" | "searchFieldValues" | "searchSemanticLayer" | "setupPreviewDeploy" | "submitResearchReport" | "submitWorkerFindings" | "syncDbtProject" | "updateUserName", string>>;
116
118
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,QAAQ,IAAI,QACZ,CAAC;AAG/C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,0jCAqDhC,CAAC;AAGH,eAAO,MAAM,qCAAqC,0jCAsD5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,QAAQ,IAAI,QACZ,CAAC;AAG/C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,6kCAsDhC,CAAC;AAGH,eAAO,MAAM,qCAAqC,6kCAuD5C,CAAC"}
@@ -31,6 +31,7 @@ export const ToolNameSchema = z.enum([
31
31
  'loadProjectContext',
32
32
  'loadMcpTools',
33
33
  'generateDataApp',
34
+ 'iterateDataApp',
34
35
  'editDbtProject',
35
36
  'editProjectContext',
36
37
  'editRepo',
@@ -89,6 +90,7 @@ export const TOOL_DISPLAY_MESSAGES = ToolDisplayMessagesSchema.parse({
89
90
  loadProjectContext: 'Loading project context',
90
91
  loadMcpTools: 'Loading MCP tools',
91
92
  generateDataApp: 'Starting a data app build',
93
+ iterateDataApp: 'Iterating on a data app',
92
94
  editDbtProject: 'Editing semantic layer',
93
95
  editRepo: 'Editing repository',
94
96
  syncDbtProject: 'Syncing dbt project',
@@ -144,6 +146,7 @@ export const TOOL_DISPLAY_MESSAGES_AFTER_TOOL_CALL = ToolDisplayMessagesSchema.p
144
146
  loadProjectContext: 'Loaded project context',
145
147
  loadMcpTools: 'Loaded MCP tools',
146
148
  generateDataApp: 'Started a data app build',
149
+ iterateDataApp: 'Started a data app build',
147
150
  editDbtProject: 'Edited semantic layer',
148
151
  editRepo: 'Edited repository',
149
152
  syncDbtProject: 'Synced dbt project',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAoB;AACpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,aAAa;IACb,cAAc;IACd,sBAAsB;IACtB,YAAY;IACZ,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,YAAY;IACZ,oBAAoB;IACpB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,yBAAyB;IACzB,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,oBAAoB;IACpB,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,uBAAuB;IACvB,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,QAAQ;IACR,oBAAoB;IACpB,qBAAqB;IACrB,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,kBAAkB;IAClB,sBAAsB;IACtB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,aAAa,EAAE,iBAAiB;IAChC,uBAAuB,EAAE,4BAA4B;IACrD,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,mBAAmB;IACpC,YAAY,EAAE,iBAAiB;IAC/B,cAAc,EAAE,qBAAqB;IACrC,SAAS,EAAE,uBAAuB;IAClC,kBAAkB,EAAE,wBAAwB;IAC5C,YAAY,EAAE,kBAAkB;IAChC,eAAe,EAAE,0BAA0B;IAC3C,cAAc,EAAE,uBAAuB;IACvC,QAAQ,EAAE,mBAAmB;IAC7B,cAAc,EAAE,oBAAoB;IACpC,WAAW,EAAE,iBAAiB;IAC9B,aAAa,EAAE,yBAAyB;IACxC,eAAe,EAAE,sBAAsB;IACvC,gBAAgB,EAAE,qBAAqB;IACvC,kBAAkB,EAAE,wBAAwB;IAC5C,qBAAqB,EAAE,yBAAyB;IAChD,kBAAkB,EAAE,oCAAoC;IACxD,QAAQ,EAAE,yBAAyB;IACnC,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,eAAe;IACvB,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,yBAAyB;IAC9C,sBAAsB,EAAE,2BAA2B;IACnD,sBAAsB,EAAE,4BAA4B;IACpD,2BAA2B,EAAE,yBAAyB;IACtD,gBAAgB,EAAE,0BAA0B;IAC5C,oBAAoB,EAAE,uBAAuB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,oBAAoB,EAAE,qBAAqB;CAC9C,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAoB;AACpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,aAAa;IACb,cAAc;IACd,sBAAsB;IACtB,YAAY;IACZ,qBA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B;IAChC,MAAM,EAAE,eAAe;IACvB,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,yBAAyB;IAC9C,sBAAsB,EAAE,2BAA2B;IACnD,sBAAsB,EAAE,4BAA4B;IACpD,2BAA2B,EAAE,yBAAyB;IACtD,gBAAgB,EAAE,0BAA0B;IAC5C,oBAAoB,EAAE,uBAAuB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,oBAAoB,EAAE,qBAAqB;CAC9C,CAAC,CAAC"}
@@ -22,31 +22,13 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
22
22
  tableCalculations: ({
23
23
  name: string;
24
24
  displayName: string;
25
- type: "percent_of_column_total";
25
+ type: "percent_of_previous_value";
26
26
  fieldId: string;
27
- partitionBy: string[] | null;
28
- } | {
29
- name: string;
30
- displayName: string;
31
- type: "window_function";
32
- windowFunction: import("../..").WindowFunctionType;
33
- fieldId: string | null;
34
27
  orderBy: {
35
28
  fieldId: string;
36
29
  order: "asc" | "desc" | null;
37
- }[] | null;
30
+ }[];
38
31
  partitionBy: string[] | null;
39
- frame: {
40
- frameType: "range" | "rows";
41
- start: {
42
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
43
- offset: number | null;
44
- } | null;
45
- end: {
46
- type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
47
- offset: number | null;
48
- };
49
- } | null;
50
32
  } | {
51
33
  name: string;
52
34
  displayName: string;
@@ -67,12 +49,8 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
67
49
  } | {
68
50
  name: string;
69
51
  displayName: string;
70
- type: "percent_of_previous_value";
52
+ type: "percent_of_column_total";
71
53
  fieldId: string;
72
- orderBy: {
73
- fieldId: string;
74
- order: "asc" | "desc" | null;
75
- }[];
76
54
  partitionBy: string[] | null;
77
55
  } | {
78
56
  name: string;
@@ -84,6 +62,28 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
84
62
  displayName: string;
85
63
  type: "running_total";
86
64
  fieldId: string;
65
+ } | {
66
+ name: string;
67
+ displayName: string;
68
+ type: "window_function";
69
+ windowFunction: import("../..").WindowFunctionType;
70
+ fieldId: string | null;
71
+ orderBy: {
72
+ fieldId: string;
73
+ order: "asc" | "desc" | null;
74
+ }[] | null;
75
+ partitionBy: string[] | null;
76
+ frame: {
77
+ frameType: "range" | "rows";
78
+ start: {
79
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
80
+ offset: number | null;
81
+ } | null;
82
+ end: {
83
+ type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
84
+ offset: number | null;
85
+ };
86
+ } | null;
87
87
  })[] | null;
88
88
  filters: import("../..").Filters;
89
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "2.88.0",
3
+ "version": "2.89.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",