@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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/requestTypes.d.ts +10 -0
- package/dist/cjs/ee/AiAgent/requestTypes.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js +24 -5
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +56 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +38 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
- package/dist/cjs/schemas/chartAsCodeSchema.d.ts +5309 -1
- package/dist/cjs/schemas/chartAsCodeSchema.d.ts.map +1 -1
- package/dist/cjs/schemas/chartAsCodeSchema.js +2 -0
- package/dist/cjs/schemas/chartAsCodeSchema.js.map +1 -1
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +345 -6
- package/dist/cjs/types/projects.d.ts.map +1 -1
- package/dist/cjs/types/projects.js +2 -0
- package/dist/cjs/types/projects.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/requestTypes.d.ts +10 -0
- package/dist/esm/ee/AiAgent/requestTypes.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js +25 -6
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +53 -3
- package/dist/esm/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +37 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
- package/dist/esm/schemas/chartAsCodeSchema.d.ts +5309 -1
- package/dist/esm/schemas/chartAsCodeSchema.d.ts.map +1 -1
- package/dist/esm/schemas/chartAsCodeSchema.js +2 -0
- package/dist/esm/schemas/chartAsCodeSchema.js.map +1 -1
- package/dist/esm/schemas/json/mcp-tools-1.0.json +345 -6
- package/dist/esm/types/projects.d.ts.map +1 -1
- package/dist/esm/types/projects.js +2 -0
- package/dist/esm/types/projects.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/requestTypes.d.ts +10 -0
- package/dist/types/ee/AiAgent/requestTypes.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +50 -1
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js +25 -6
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js +53 -3
- package/dist/types/ee/AiAgent/schemas/tools/sqlApprovalToolCalls.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts +114 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js +37 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +24 -24
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +98 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts +3 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js +3 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolEditContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts +15 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.js +8 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts +26 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js +21 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +26 -26
- package/dist/types/schemas/chartAsCodeSchema.d.ts +5309 -1
- package/dist/types/schemas/chartAsCodeSchema.d.ts.map +1 -1
- package/dist/types/schemas/chartAsCodeSchema.js +2 -0
- package/dist/types/schemas/chartAsCodeSchema.js.map +1 -1
- package/dist/types/schemas/json/mcp-tools-1.0.json +345 -6
- package/dist/types/types/projects.d.ts.map +1 -1
- package/dist/types/types/projects.js +2 -0
- package/dist/types/types/projects.js.map +1 -1
- 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,
|
|
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"}
|
|
@@ -10,13 +10,18 @@ exports.TOOL_RUN_CONTENT_QUERY_DESCRIPTION = `Run a chart-as-code metric query,
|
|
|
10
10
|
Sources:
|
|
11
11
|
- metricQuery: an unsaved chart-as-code metricQuery with its tableName, exactly as the chart will save it, limit included.
|
|
12
12
|
- chart: a saved chart by chartSlug. Set chartType "sql_chart" for a saved SQL chart; it runs without SQL approval.
|
|
13
|
-
- dashboardChart: a saved chart by chartSlug in a dashboardSlug context, with the dashboard filters applied. chartType works the same.
|
|
13
|
+
- 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.
|
|
14
14
|
- 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.`;
|
|
15
15
|
// Slugs are unique per chart type, so the type picks which chart a slug names.
|
|
16
16
|
const savedChartTypeSchema = () => zod_1.z
|
|
17
17
|
.enum(['chart', 'sql_chart'])
|
|
18
18
|
.nullable()
|
|
19
19
|
.describe('Content type of the saved chart, as in readContent: "chart" (explore chart) or "sql_chart". Null means "chart".');
|
|
20
|
+
// A composer chart always runs on its dashboard tile.
|
|
21
|
+
const dashboardChartTypeSchema = () => zod_1.z
|
|
22
|
+
.enum(['chart', 'sql_chart', 'composer_chart'])
|
|
23
|
+
.nullable()
|
|
24
|
+
.describe('Content type of the dashboard chart, as in readContent: "chart" (explore chart), "sql_chart" or "composer_chart". Null means "chart".');
|
|
20
25
|
exports.toolRunContentQueryArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
|
|
21
26
|
.extend({
|
|
22
27
|
source: zod_1.z.discriminatedUnion('type', [
|
|
@@ -39,7 +44,7 @@ exports.toolRunContentQueryArgsSchema = (0, toolSchemaBuilder_1.createToolSchema
|
|
|
39
44
|
}),
|
|
40
45
|
zod_1.z.object({
|
|
41
46
|
type: zod_1.z.literal('dashboardChart'),
|
|
42
|
-
chartType:
|
|
47
|
+
chartType: dashboardChartTypeSchema(),
|
|
43
48
|
chartSlug: zod_1.z.string().describe('Slug of the saved chart.'),
|
|
44
49
|
dashboardSlug: zod_1.z
|
|
45
50
|
.string()
|
|
@@ -74,6 +79,17 @@ const savedSqlChartSchema = () => zod_1.z
|
|
|
74
79
|
})
|
|
75
80
|
.nullable()
|
|
76
81
|
.describe('The saved SQL chart that was run; null for other sources.');
|
|
82
|
+
const composerChartRunSchema = () => zod_1.z
|
|
83
|
+
.object({
|
|
84
|
+
chartUuid: zod_1.z.string(),
|
|
85
|
+
slug: zod_1.z.string(),
|
|
86
|
+
name: zod_1.z.string(),
|
|
87
|
+
terminalNodeId: zod_1.z
|
|
88
|
+
.string()
|
|
89
|
+
.describe('The node whose rows are returned.'),
|
|
90
|
+
})
|
|
91
|
+
.nullable()
|
|
92
|
+
.describe('The composer chart that was run; null for other sources.');
|
|
77
93
|
const savedChartSpecSchema = savedChartStructureSchema.extend({
|
|
78
94
|
filters: zod_1.z
|
|
79
95
|
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
@@ -108,8 +124,9 @@ exports.toolRunContentQueryStructuredContentSchema = zod_1.z.discriminatedUnion(
|
|
|
108
124
|
outcome: zod_1.z.literal('rows'),
|
|
109
125
|
chart: savedChartSpecSchema
|
|
110
126
|
.nullable()
|
|
111
|
-
.describe('The saved explore chart that was run; null for an unsaved metricQuery, SQL
|
|
127
|
+
.describe('The saved explore chart that was run; null for an unsaved metricQuery, SQL, a saved SQL chart or a composer chart.'),
|
|
112
128
|
sqlChart: savedSqlChartSchema(),
|
|
129
|
+
composerChart: composerChartRunSchema(),
|
|
113
130
|
rowCount: zod_1.z
|
|
114
131
|
.number()
|
|
115
132
|
.int()
|
|
@@ -149,6 +166,7 @@ exports.toolRunContentQueryStructuredContentSchema = zod_1.z.discriminatedUnion(
|
|
|
149
166
|
.nullable()
|
|
150
167
|
.describe('Structure of the saved explore chart; null for other sources.'),
|
|
151
168
|
sqlChart: savedSqlChartSchema(),
|
|
169
|
+
composerChart: composerChartRunSchema(),
|
|
152
170
|
}),
|
|
153
171
|
]);
|
|
154
172
|
exports.toolRunContentQueryOutputSchema = (0, outputMetadata_1.structuredToolOutputSchema)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolRunContentQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA+D;AAC/D,4DAAwD;AACxD,mEAA2E;AAE9D,QAAA,kCAAkC,GAAG;;;;;;iLAM+H,CAAC;AAElL,+EAA+E;AAC/E,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAC9B,OAAC;KACI,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;KAC5B,QAAQ,EAAE;KACV,QAAQ,CACL,iHAAiH,CACpH,CAAC;AAEG,QAAA,6BAA6B,GAAG,IAAA,oCAAgB,GAAE;KAC1D,MAAM,CAAC;IACJ,MAAM,EAAE,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;QACjC,OAAC,CAAC,MAAM,CAAC;YACL,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAC9B,SAAS,EAAE,OAAC;iBACP,MAAM,EAAE;iBACR,QAAQ,CAAC,2CAA2C,CAAC;YAC1D,WAAW,EAAE,wDAAgC;YAC7C,UAAU,EAAE,OAAC;iBACR,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,QAAQ,EAAE;iBACV,QAAQ,CAAC,2CAA2C,CAAC;SAC7D,CAAC;QACF,OAAC,CAAC,MAAM,CAAC;YACL,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YACxB,SAAS,EAAE,oBAAoB,EAAE;YACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;SAC7D,CAAC;QACF,OAAC,CAAC,MAAM,CAAC;YACL,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;YACjC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"toolRunContentQueryArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolRunContentQueryArgs.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAA+D;AAC/D,4DAAwD;AACxD,mEAA2E;AAE9D,QAAA,kCAAkC,GAAG;;;;;;iLAM+H,CAAC;AAElL,+EAA+E;AAC/E,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAC9B,OAAC;KACI,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;KAC5B,QAAQ,EAAE;KACV,QAAQ,CACL,iHAAiH,CACpH,CAAC;AAEV,sDAAsD;AACtD,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAClC,OAAC;KACI,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;KAC9C,QAAQ,EAAE;KACV,QAAQ,CACL,uIAAuI,CAC1I,CAAC;AAEG,QAAA,6BAA6B,GAAG,IAAA,oCAAgB,GAAE;KAC1D,MAAM,CAAC;IACJ,MAAM,EAAE,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;QACjC,OAAC,CAAC,MAAM,CAAC;YACL,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAC9B,SAAS,EAAE,OAAC;iBACP,MAAM,EAAE;iBACR,QAAQ,CAAC,2CAA2C,CAAC;YAC1D,WAAW,EAAE,wDAAgC;YAC7C,UAAU,EAAE,OAAC;iBACR,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,QA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Q,EAAE;KACxC,CAAC;IACF,iBAAiB,EAAE,QAAA,0CAA0C;IAC7D,aAAa,EAAE,OAAC,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: "
|
|
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: "
|
|
1211
|
+
type: "rank_in_column";
|
|
1212
1212
|
fieldId: string;
|
|
1213
1213
|
} | {
|
|
1214
1214
|
name: string;
|