@lightdash/common 3.332.1 → 3.334.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 (118) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/requestTypes.d.ts +10 -0
  3. package/dist/cjs/ee/AiAgent/requestTypes.d.ts.map +1 -1
  4. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
  5. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js +24 -5
  7. package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +56 -4
  11. package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +38 -3
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
  28. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
  29. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
  30. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
  31. package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
  32. package/dist/cjs/schemas/chartAsCodeSchema.d.ts +5309 -1
  33. package/dist/cjs/schemas/chartAsCodeSchema.d.ts.map +1 -1
  34. package/dist/cjs/schemas/chartAsCodeSchema.js +2 -0
  35. package/dist/cjs/schemas/chartAsCodeSchema.js.map +1 -1
  36. package/dist/cjs/schemas/json/mcp-tools-1.0.json +345 -6
  37. package/dist/cjs/types/projects.d.ts.map +1 -1
  38. package/dist/cjs/types/projects.js +2 -0
  39. package/dist/cjs/types/projects.js.map +1 -1
  40. package/dist/esm/.tsbuildinfo +1 -1
  41. package/dist/esm/ee/AiAgent/requestTypes.d.ts +10 -0
  42. package/dist/esm/ee/AiAgent/requestTypes.d.ts.map +1 -1
  43. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
  44. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
  45. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js +25 -6
  46. package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
  47. package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
  48. package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +53 -3
  50. package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +37 -2
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
  63. package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
  64. package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
  65. package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
  66. package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
  67. package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
  68. package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
  69. package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
  70. package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
  71. package/dist/esm/schemas/chartAsCodeSchema.d.ts +5309 -1
  72. package/dist/esm/schemas/chartAsCodeSchema.d.ts.map +1 -1
  73. package/dist/esm/schemas/chartAsCodeSchema.js +2 -0
  74. package/dist/esm/schemas/chartAsCodeSchema.js.map +1 -1
  75. package/dist/esm/schemas/json/mcp-tools-1.0.json +345 -6
  76. package/dist/esm/types/projects.d.ts.map +1 -1
  77. package/dist/esm/types/projects.js +2 -0
  78. package/dist/esm/types/projects.js.map +1 -1
  79. package/dist/types/.tsbuildinfo +1 -1
  80. package/dist/types/ee/AiAgent/requestTypes.d.ts +10 -0
  81. package/dist/types/ee/AiAgent/requestTypes.d.ts.map +1 -1
  82. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
  83. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
  84. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js +25 -6
  85. package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
  86. package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
  87. package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
  88. package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +53 -3
  89. package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
  90. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
  91. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
  92. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +37 -2
  93. package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
  94. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
  95. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
  96. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  97. package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
  98. package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
  99. package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
  100. package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
  101. package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
  102. package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
  103. package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
  104. package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
  105. package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
  106. package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
  107. package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
  108. package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
  109. package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
  110. package/dist/types/schemas/chartAsCodeSchema.d.ts +5309 -1
  111. package/dist/types/schemas/chartAsCodeSchema.d.ts.map +1 -1
  112. package/dist/types/schemas/chartAsCodeSchema.js +2 -0
  113. package/dist/types/schemas/chartAsCodeSchema.js.map +1 -1
  114. package/dist/types/schemas/json/mcp-tools-1.0.json +345 -6
  115. package/dist/types/types/projects.d.ts.map +1 -1
  116. package/dist/types/types/projects.js +2 -0
  117. package/dist/types/types/projects.js.map +1 -1
  118. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const TOOL_RUN_CONTENT_QUERY_DESCRIPTION = "Run a chart-as-code metric query, a saved chart or SQL and return the rows as CSV.\n\nSources:\n- metricQuery: an unsaved chart-as-code metricQuery with its tableName, exactly as the chart will save it, limit included.\n- chart: a saved chart by chartSlug. Set chartType \"sql_chart\" for a saved SQL chart; it runs without SQL approval.\n- dashboardChart: a saved chart by chartSlug in a dashboardSlug context, with the dashboard filters applied. chartType works the same.\n- sql: a raw SELECT, to check a SQL chart's sql before saving it. The user approves the SQL first; saving the same SQL in a SQL chart in this response needs no second approval.";
2
+ export declare const TOOL_RUN_CONTENT_QUERY_DESCRIPTION = "Run a chart-as-code metric query, a saved chart or SQL and return the rows as CSV.\n\nSources:\n- metricQuery: an unsaved chart-as-code metricQuery with its tableName, exactly as the chart will save it, limit included.\n- chart: a saved chart by chartSlug. Set chartType \"sql_chart\" for a saved SQL chart; it runs without SQL approval.\n- dashboardChart: a saved chart by chartSlug in a dashboardSlug context, with the dashboard filters applied. chartType works the same, and \"composer_chart\" runs a composer chart as its dashboard tile does, returning its final node's rows; a composer chart runs only here.\n- sql: a raw SELECT, to check a SQL chart's sql before saving it. The user approves the SQL first; saving the same SQL in a SQL chart in this response needs no second approval.";
3
3
  export declare const toolRunContentQueryArgsSchema: z.ZodObject<{
4
4
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
5
  type: z.ZodLiteral<"metricQuery">;
@@ -25,6 +25,7 @@ export declare const toolRunContentQueryArgsSchema: z.ZodObject<{
25
25
  type: z.ZodLiteral<"dashboardChart">;
26
26
  chartType: z.ZodNullable<z.ZodEnum<{
27
27
  chart: "chart";
28
+ composer_chart: "composer_chart";
28
29
  sql_chart: "sql_chart";
29
30
  }>>;
30
31
  chartSlug: z.ZodString;
@@ -65,6 +66,12 @@ export declare const toolRunContentQueryStructuredContentSchema: z.ZodDiscrimina
65
66
  name: z.ZodString;
66
67
  sql: z.ZodString;
67
68
  }, z.core.$strip>>;
69
+ composerChart: z.ZodNullable<z.ZodObject<{
70
+ chartUuid: z.ZodString;
71
+ slug: z.ZodString;
72
+ name: z.ZodString;
73
+ terminalNodeId: z.ZodString;
74
+ }, z.core.$strip>>;
68
75
  rowCount: z.ZodNumber;
69
76
  shownRowCount: z.ZodNumber;
70
77
  columns: z.ZodArray<z.ZodObject<{
@@ -92,6 +99,12 @@ export declare const toolRunContentQueryStructuredContentSchema: z.ZodDiscrimina
92
99
  name: z.ZodString;
93
100
  sql: z.ZodString;
94
101
  }, z.core.$strip>>;
102
+ composerChart: z.ZodNullable<z.ZodObject<{
103
+ chartUuid: z.ZodString;
104
+ slug: z.ZodString;
105
+ name: z.ZodString;
106
+ terminalNodeId: z.ZodString;
107
+ }, z.core.$strip>>;
95
108
  }, z.core.$strip>], "outcome">;
96
109
  export type ToolRunContentQueryStructuredContent = z.infer<typeof toolRunContentQueryStructuredContentSchema>;
97
110
  export declare const toolRunContentQueryOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
@@ -138,6 +151,12 @@ export declare const toolRunContentQueryOutputSchema: z.ZodUnion<readonly [z.Zod
138
151
  name: z.ZodString;
139
152
  sql: z.ZodString;
140
153
  }, z.core.$strip>>;
154
+ composerChart: z.ZodNullable<z.ZodObject<{
155
+ chartUuid: z.ZodString;
156
+ slug: z.ZodString;
157
+ name: z.ZodString;
158
+ terminalNodeId: z.ZodString;
159
+ }, z.core.$strip>>;
141
160
  rowCount: z.ZodNumber;
142
161
  shownRowCount: z.ZodNumber;
143
162
  columns: z.ZodArray<z.ZodObject<{
@@ -165,6 +184,12 @@ export declare const toolRunContentQueryOutputSchema: z.ZodUnion<readonly [z.Zod
165
184
  name: z.ZodString;
166
185
  sql: z.ZodString;
167
186
  }, z.core.$strip>>;
187
+ composerChart: z.ZodNullable<z.ZodObject<{
188
+ chartUuid: z.ZodString;
189
+ slug: z.ZodString;
190
+ name: z.ZodString;
191
+ terminalNodeId: z.ZodString;
192
+ }, z.core.$strip>>;
168
193
  }, z.core.$strip>], "outcome">;
169
194
  }, z.core.$strip>, z.ZodObject<{
170
195
  result: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunContentQueryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kCAAkC,gpBAMkI,CAAC;AAWlL,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0C9B,CAAC;AAEb,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC;AA2DF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAgEtD,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,0CAA0C,CACpD,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAO1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACzC,CAAC"}
1
+ {"version":3,"file":"toolRunContentQueryArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kCAAkC,2xBAMkI,CAAC;AAoBlL,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0C9B,CAAC;AAEb,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACvC,CAAC;AAwEF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAkEtD,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,0CAA0C,CACpD,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAO1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACzC,CAAC"}
@@ -7,13 +7,18 @@ export const TOOL_RUN_CONTENT_QUERY_DESCRIPTION = `Run a chart-as-code metric qu
7
7
  Sources:
8
8
  - metricQuery: an unsaved chart-as-code metricQuery with its tableName, exactly as the chart will save it, limit included.
9
9
  - chart: a saved chart by chartSlug. Set chartType "sql_chart" for a saved SQL chart; it runs without SQL approval.
10
- - dashboardChart: a saved chart by chartSlug in a dashboardSlug context, with the dashboard filters applied. chartType works the same.
10
+ - dashboardChart: a saved chart by chartSlug in a dashboardSlug context, with the dashboard filters applied. chartType works the same, and "composer_chart" runs a composer chart as its dashboard tile does, returning its final node's rows; a composer chart runs only here.
11
11
  - sql: a raw SELECT, to check a SQL chart's sql before saving it. The user approves the SQL first; saving the same SQL in a SQL chart in this response needs no second approval.`;
12
12
  // Slugs are unique per chart type, so the type picks which chart a slug names.
13
13
  const savedChartTypeSchema = () => z
14
14
  .enum(['chart', 'sql_chart'])
15
15
  .nullable()
16
16
  .describe('Content type of the saved chart, as in readContent: "chart" (explore chart) or "sql_chart". Null means "chart".');
17
+ // A composer chart always runs on its dashboard tile.
18
+ const dashboardChartTypeSchema = () => z
19
+ .enum(['chart', 'sql_chart', 'composer_chart'])
20
+ .nullable()
21
+ .describe('Content type of the dashboard chart, as in readContent: "chart" (explore chart), "sql_chart" or "composer_chart". Null means "chart".');
17
22
  export const toolRunContentQueryArgsSchema = createToolSchema()
18
23
  .extend({
19
24
  source: z.discriminatedUnion('type', [
@@ -36,7 +41,7 @@ export const toolRunContentQueryArgsSchema = createToolSchema()
36
41
  }),
37
42
  z.object({
38
43
  type: z.literal('dashboardChart'),
39
- chartType: savedChartTypeSchema(),
44
+ chartType: dashboardChartTypeSchema(),
40
45
  chartSlug: z.string().describe('Slug of the saved chart.'),
41
46
  dashboardSlug: z
42
47
  .string()
@@ -71,6 +76,17 @@ const savedSqlChartSchema = () => z
71
76
  })
72
77
  .nullable()
73
78
  .describe('The saved SQL chart that was run; null for other sources.');
79
+ const composerChartRunSchema = () => z
80
+ .object({
81
+ chartUuid: z.string(),
82
+ slug: z.string(),
83
+ name: z.string(),
84
+ terminalNodeId: z
85
+ .string()
86
+ .describe('The node whose rows are returned.'),
87
+ })
88
+ .nullable()
89
+ .describe('The composer chart that was run; null for other sources.');
74
90
  const savedChartSpecSchema = savedChartStructureSchema.extend({
75
91
  filters: z
76
92
  .record(z.string(), z.unknown())
@@ -105,8 +121,9 @@ export const toolRunContentQueryStructuredContentSchema = z.discriminatedUnion('
105
121
  outcome: z.literal('rows'),
106
122
  chart: savedChartSpecSchema
107
123
  .nullable()
108
- .describe('The saved explore chart that was run; null for an unsaved metricQuery, SQL or a saved SQL chart.'),
124
+ .describe('The saved explore chart that was run; null for an unsaved metricQuery, SQL, a saved SQL chart or a composer chart.'),
109
125
  sqlChart: savedSqlChartSchema(),
126
+ composerChart: composerChartRunSchema(),
110
127
  rowCount: z
111
128
  .number()
112
129
  .int()
@@ -146,6 +163,7 @@ export const toolRunContentQueryStructuredContentSchema = z.discriminatedUnion('
146
163
  .nullable()
147
164
  .describe('Structure of the saved explore chart; null for other sources.'),
148
165
  sqlChart: savedSqlChartSchema(),
166
+ composerChart: composerChartRunSchema(),
149
167
  }),
150
168
  ]);
151
169
  export const toolRunContentQueryOutputSchema = structuredToolOutputSchema({
@@ -1 +1 @@
1
- {"version":3,"file":"toolRunContentQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAC;AAE3E,MAAM,CAAC,MAAM,kCAAkC,GAAG;;;;;;iLAM+H,CAAC;AAElL,+EAA+E;AAC/E,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAC9B,CAAC;KACI,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;KAC5B,QAAQ,EAAE;KACV,QAAQ,CACL,iHAAiH,CACpH,CAAC;AAEV,MAAM,CAAC,MAAM,6BAA6B,GAAG,gBAAgB,EAAE;KAC1D,MAAM,CAAC;IACJ,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;QACjC,CAAC,CAAC,MAAM,CAAC;YACL,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAC9B,SAAS,EAAE,CAAC;iBACP,MAAM,EAAE;iBACR,QAAQ,CAAC,2CAA2C,CAAC;YAC1D,WAAW,EAAE,gCAAgC;YAC7C,UAAU,EAAE,CAAC;iBACR,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,QAAQ,EAAE;iBACV,QAAQ,CAAC,2CAA2C,CAAC;SAC7D,CAAC;QACF,CAAC,CAAC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MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACL,OAAO,EAAE,CAAC;aACL,OAAO,CAAC,WAAW,CAAC;aACpB,QAAQ,CAAC,qCAAqC,CAAC;QACpD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACL,OAAO,EAAE,CAAC;aACL,OAAO,CAAC,oBAAoB,CAAC;aAC7B,QAAQ,CACL,+DAA+D,CAClE;QACL,KAAK,EAAE,yBAAyB;aAC3B,QAAQ,EAAE;aACV,QAAQ,CACL,+DAA+D,CAClE;QACL,QAAQ,EAAE,mBAAmB,EAAE;QAC/B,aAAa,EAAE,sBAAsB,EAAE;KAC1C,CAAC;CACL,CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,+BAA+B,GAAG,0BAA0B,CAAC;IACtE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;QAC3D,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;IACF,iBAAiB,EAAE,0CAA0C;IAC7D,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;CAC1D,CAAC,CAAC"}
@@ -979,18 +979,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
979
979
  limit: number | null;
980
980
  };
981
981
  tableCalculations: ({
982
- name: string;
983
- displayName: string;
984
- type: "formula";
985
- formula: string;
986
- format: "number" | "percent" | null;
987
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
988
- } | {
989
- name: string;
990
- displayName: string;
991
- type: "rank_in_column";
992
- fieldId: string;
993
- } | {
994
982
  name: string;
995
983
  displayName: string;
996
984
  type: "percent_change_from_previous";
@@ -1000,6 +988,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1000
988
  order: "asc" | "desc" | null;
1001
989
  }[];
1002
990
  partitionBy: string[] | null;
991
+ } | {
992
+ name: string;
993
+ displayName: string;
994
+ type: "running_total";
995
+ fieldId: string;
996
+ } | {
997
+ name: string;
998
+ displayName: string;
999
+ type: "formula";
1000
+ formula: string;
1001
+ format: "number" | "percent" | null;
1002
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1003
1003
  } | {
1004
1004
  name: string;
1005
1005
  displayName: string;
@@ -1019,7 +1019,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1019
1019
  } | {
1020
1020
  name: string;
1021
1021
  displayName: string;
1022
- type: "running_total";
1022
+ type: "rank_in_column";
1023
1023
  fieldId: string;
1024
1024
  } | {
1025
1025
  name: string;
@@ -1168,18 +1168,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1168
1168
  }[] | null;
1169
1169
  })[] | null;
1170
1170
  tableCalculations: ({
1171
- name: string;
1172
- displayName: string;
1173
- type: "formula";
1174
- formula: string;
1175
- format: "number" | "percent" | null;
1176
- resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1177
- } | {
1178
- name: string;
1179
- displayName: string;
1180
- type: "rank_in_column";
1181
- fieldId: string;
1182
- } | {
1183
1171
  name: string;
1184
1172
  displayName: string;
1185
1173
  type: "percent_change_from_previous";
@@ -1189,6 +1177,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1189
1177
  order: "asc" | "desc" | null;
1190
1178
  }[];
1191
1179
  partitionBy: string[] | null;
1180
+ } | {
1181
+ name: string;
1182
+ displayName: string;
1183
+ type: "running_total";
1184
+ fieldId: string;
1185
+ } | {
1186
+ name: string;
1187
+ displayName: string;
1188
+ type: "formula";
1189
+ formula: string;
1190
+ format: "number" | "percent" | null;
1191
+ resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
1192
1192
  } | {
1193
1193
  name: string;
1194
1194
  displayName: string;
@@ -1208,7 +1208,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
1208
1208
  } | {
1209
1209
  name: string;
1210
1210
  displayName: string;
1211
- type: "running_total";
1211
+ type: "rank_in_column";
1212
1212
  fieldId: string;
1213
1213
  } | {
1214
1214
  name: string;