@lightdash/common 2.592.2 → 2.593.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/chartConfig/web/getWebAiChartConfig.d.ts +7 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts +15 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js +45 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +28 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts +3 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js +11 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts +9 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js +28 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/cjs/ee/AiAgent/utils.d.ts +29 -29
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +131 -3
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts +15 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js +42 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +26 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts +3 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js +11 -6
- package/dist/esm/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts +9 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js +25 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/esm/ee/AiAgent/utils.d.ts +7 -7
- package/dist/esm/schemas/json/mcp-tools-1.0.json +131 -3
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.js +2 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts +15 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js +42 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolCreateCustomChartTypeArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +50 -50
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +4 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +26 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts +3 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js +11 -6
- package/dist/types/ee/AiAgent/schemas/tools/toolGetDataAppBuildStatusArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts +9 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js +25 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateCustomChartTypeArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +97 -97
- package/dist/types/ee/AiAgent/utils.d.ts +7 -7
- package/dist/types/schemas/json/mcp-tools-1.0.json +131 -3
- package/package.json +1 -1
|
@@ -979,17 +979,40 @@ 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: "percent_of_column_total";
|
|
985
|
+
fieldId: string;
|
|
986
|
+
partitionBy: string[] | null;
|
|
987
|
+
} | {
|
|
988
|
+
name: string;
|
|
989
|
+
displayName: string;
|
|
990
|
+
type: "window_function";
|
|
991
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
992
|
+
fieldId: string | null;
|
|
993
|
+
orderBy: {
|
|
994
|
+
fieldId: string;
|
|
995
|
+
order: "asc" | "desc" | null;
|
|
996
|
+
}[] | null;
|
|
997
|
+
partitionBy: string[] | null;
|
|
998
|
+
frame: {
|
|
999
|
+
frameType: "range" | "rows";
|
|
1000
|
+
start: {
|
|
1001
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1002
|
+
offset: number | null;
|
|
1003
|
+
} | null;
|
|
1004
|
+
end: {
|
|
1005
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1006
|
+
offset: number | null;
|
|
1007
|
+
};
|
|
1008
|
+
} | null;
|
|
1009
|
+
} | {
|
|
982
1010
|
name: string;
|
|
983
1011
|
displayName: string;
|
|
984
1012
|
type: "formula";
|
|
985
1013
|
formula: string;
|
|
986
1014
|
format: "number" | "percent" | null;
|
|
987
1015
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
988
|
-
} | {
|
|
989
|
-
name: string;
|
|
990
|
-
displayName: string;
|
|
991
|
-
type: "rank_in_column";
|
|
992
|
-
fieldId: string;
|
|
993
1016
|
} | {
|
|
994
1017
|
name: string;
|
|
995
1018
|
displayName: string;
|
|
@@ -1013,36 +1036,13 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1013
1036
|
} | {
|
|
1014
1037
|
name: string;
|
|
1015
1038
|
displayName: string;
|
|
1016
|
-
type: "
|
|
1039
|
+
type: "rank_in_column";
|
|
1017
1040
|
fieldId: string;
|
|
1018
|
-
partitionBy: string[] | null;
|
|
1019
1041
|
} | {
|
|
1020
1042
|
name: string;
|
|
1021
1043
|
displayName: string;
|
|
1022
1044
|
type: "running_total";
|
|
1023
1045
|
fieldId: string;
|
|
1024
|
-
} | {
|
|
1025
|
-
name: string;
|
|
1026
|
-
displayName: string;
|
|
1027
|
-
type: "window_function";
|
|
1028
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
1029
|
-
fieldId: string | null;
|
|
1030
|
-
orderBy: {
|
|
1031
|
-
fieldId: string;
|
|
1032
|
-
order: "asc" | "desc" | null;
|
|
1033
|
-
}[] | null;
|
|
1034
|
-
partitionBy: string[] | null;
|
|
1035
|
-
frame: {
|
|
1036
|
-
frameType: "range" | "rows";
|
|
1037
|
-
start: {
|
|
1038
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1039
|
-
offset: number | null;
|
|
1040
|
-
} | null;
|
|
1041
|
-
end: {
|
|
1042
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1043
|
-
offset: number | null;
|
|
1044
|
-
};
|
|
1045
|
-
} | null;
|
|
1046
1046
|
})[] | null;
|
|
1047
1047
|
customMetrics: TransformedCustomMetric[] | null;
|
|
1048
1048
|
filters: Filters;
|
|
@@ -1059,12 +1059,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1059
1059
|
limit: number | null;
|
|
1060
1060
|
};
|
|
1061
1061
|
customMetrics: ({
|
|
1062
|
-
kind: "periodComparison";
|
|
1063
|
-
baseMetricId: string;
|
|
1064
|
-
timeDimensionId: string;
|
|
1065
|
-
granularity: import("../../../..").TimeFrames;
|
|
1066
|
-
periodOffset: number;
|
|
1067
|
-
} | {
|
|
1068
1062
|
kind: "aggregation";
|
|
1069
1063
|
name: string;
|
|
1070
1064
|
label: string;
|
|
@@ -1074,17 +1068,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1074
1068
|
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;
|
|
1075
1069
|
filters: {
|
|
1076
1070
|
filter: {
|
|
1077
|
-
fieldId: string;
|
|
1078
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1079
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1080
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1081
|
-
} | {
|
|
1082
|
-
fieldId: string;
|
|
1083
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1084
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1085
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1086
|
-
values: string[];
|
|
1087
|
-
} | {
|
|
1088
1071
|
fieldId: string;
|
|
1089
1072
|
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1090
1073
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
@@ -1095,6 +1078,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1095
1078
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1096
1079
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1097
1080
|
values: boolean[];
|
|
1081
|
+
} | {
|
|
1082
|
+
fieldId: string;
|
|
1083
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1084
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1085
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1086
|
+
} | {
|
|
1087
|
+
fieldId: string;
|
|
1088
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1089
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1090
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1091
|
+
values: string[];
|
|
1098
1092
|
} | {
|
|
1099
1093
|
fieldId: string;
|
|
1100
1094
|
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;
|
|
@@ -1166,19 +1160,48 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1166
1160
|
};
|
|
1167
1161
|
table: string;
|
|
1168
1162
|
}[] | null;
|
|
1163
|
+
} | {
|
|
1164
|
+
kind: "periodComparison";
|
|
1165
|
+
baseMetricId: string;
|
|
1166
|
+
timeDimensionId: string;
|
|
1167
|
+
granularity: import("../../../..").TimeFrames;
|
|
1168
|
+
periodOffset: number;
|
|
1169
1169
|
})[] | null;
|
|
1170
1170
|
tableCalculations: ({
|
|
1171
|
+
name: string;
|
|
1172
|
+
displayName: string;
|
|
1173
|
+
type: "percent_of_column_total";
|
|
1174
|
+
fieldId: string;
|
|
1175
|
+
partitionBy: string[] | null;
|
|
1176
|
+
} | {
|
|
1177
|
+
name: string;
|
|
1178
|
+
displayName: string;
|
|
1179
|
+
type: "window_function";
|
|
1180
|
+
windowFunction: import("../../../..").WindowFunctionType;
|
|
1181
|
+
fieldId: string | null;
|
|
1182
|
+
orderBy: {
|
|
1183
|
+
fieldId: string;
|
|
1184
|
+
order: "asc" | "desc" | null;
|
|
1185
|
+
}[] | null;
|
|
1186
|
+
partitionBy: string[] | null;
|
|
1187
|
+
frame: {
|
|
1188
|
+
frameType: "range" | "rows";
|
|
1189
|
+
start: {
|
|
1190
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1191
|
+
offset: number | null;
|
|
1192
|
+
} | null;
|
|
1193
|
+
end: {
|
|
1194
|
+
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1195
|
+
offset: number | null;
|
|
1196
|
+
};
|
|
1197
|
+
} | null;
|
|
1198
|
+
} | {
|
|
1171
1199
|
name: string;
|
|
1172
1200
|
displayName: string;
|
|
1173
1201
|
type: "formula";
|
|
1174
1202
|
formula: string;
|
|
1175
1203
|
format: "number" | "percent" | null;
|
|
1176
1204
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
1177
|
-
} | {
|
|
1178
|
-
name: string;
|
|
1179
|
-
displayName: string;
|
|
1180
|
-
type: "rank_in_column";
|
|
1181
|
-
fieldId: string;
|
|
1182
1205
|
} | {
|
|
1183
1206
|
name: string;
|
|
1184
1207
|
displayName: string;
|
|
@@ -1202,51 +1225,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1202
1225
|
} | {
|
|
1203
1226
|
name: string;
|
|
1204
1227
|
displayName: string;
|
|
1205
|
-
type: "
|
|
1228
|
+
type: "rank_in_column";
|
|
1206
1229
|
fieldId: string;
|
|
1207
|
-
partitionBy: string[] | null;
|
|
1208
1230
|
} | {
|
|
1209
1231
|
name: string;
|
|
1210
1232
|
displayName: string;
|
|
1211
1233
|
type: "running_total";
|
|
1212
1234
|
fieldId: string;
|
|
1213
|
-
} | {
|
|
1214
|
-
name: string;
|
|
1215
|
-
displayName: string;
|
|
1216
|
-
type: "window_function";
|
|
1217
|
-
windowFunction: import("../../../..").WindowFunctionType;
|
|
1218
|
-
fieldId: string | null;
|
|
1219
|
-
orderBy: {
|
|
1220
|
-
fieldId: string;
|
|
1221
|
-
order: "asc" | "desc" | null;
|
|
1222
|
-
}[] | null;
|
|
1223
|
-
partitionBy: string[] | null;
|
|
1224
|
-
frame: {
|
|
1225
|
-
frameType: "range" | "rows";
|
|
1226
|
-
start: {
|
|
1227
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1228
|
-
offset: number | null;
|
|
1229
|
-
} | null;
|
|
1230
|
-
end: {
|
|
1231
|
-
type: "current_row" | "following" | "preceding" | "unbounded_following" | "unbounded_preceding";
|
|
1232
|
-
offset: number | null;
|
|
1233
|
-
};
|
|
1234
|
-
} | null;
|
|
1235
1235
|
})[] | null;
|
|
1236
1236
|
filters: {
|
|
1237
1237
|
type: "and" | "or";
|
|
1238
1238
|
dimensions: ({
|
|
1239
|
-
fieldId: string;
|
|
1240
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1241
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1242
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1243
|
-
} | {
|
|
1244
|
-
fieldId: string;
|
|
1245
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1246
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1247
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1248
|
-
values: string[];
|
|
1249
|
-
} | {
|
|
1250
1239
|
fieldId: string;
|
|
1251
1240
|
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1252
1241
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
@@ -1257,6 +1246,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1257
1246
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1258
1247
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1259
1248
|
values: boolean[];
|
|
1249
|
+
} | {
|
|
1250
|
+
fieldId: string;
|
|
1251
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1252
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1253
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1254
|
+
} | {
|
|
1255
|
+
fieldId: string;
|
|
1256
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1257
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1258
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1259
|
+
values: string[];
|
|
1260
1260
|
} | {
|
|
1261
1261
|
fieldId: string;
|
|
1262
1262
|
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;
|
|
@@ -1327,17 +1327,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1327
1327
|
values: string[];
|
|
1328
1328
|
})[] | null;
|
|
1329
1329
|
metrics: ({
|
|
1330
|
-
fieldId: string;
|
|
1331
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1332
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1333
|
-
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1334
|
-
} | {
|
|
1335
|
-
fieldId: string;
|
|
1336
|
-
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1337
|
-
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1338
|
-
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1339
|
-
values: string[];
|
|
1340
|
-
} | {
|
|
1341
1330
|
fieldId: string;
|
|
1342
1331
|
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1343
1332
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
@@ -1348,6 +1337,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1348
1337
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1349
1338
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1350
1339
|
values: boolean[];
|
|
1340
|
+
} | {
|
|
1341
|
+
fieldId: string;
|
|
1342
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1343
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1344
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1345
|
+
} | {
|
|
1346
|
+
fieldId: string;
|
|
1347
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1348
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1349
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1350
|
+
values: string[];
|
|
1351
1351
|
} | {
|
|
1352
1352
|
fieldId: string;
|
|
1353
1353
|
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;
|
|
@@ -20,17 +20,40 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
20
20
|
parameters: Record<string, string | number | string[] | number[]> | null;
|
|
21
21
|
customMetrics: import("./schemas").TransformedCustomMetric[] | null;
|
|
22
22
|
tableCalculations: ({
|
|
23
|
+
name: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
type: "percent_of_column_total";
|
|
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
|
+
orderBy: {
|
|
35
|
+
fieldId: string;
|
|
36
|
+
order: "asc" | "desc" | null;
|
|
37
|
+
}[] | null;
|
|
38
|
+
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
|
+
} | {
|
|
23
51
|
name: string;
|
|
24
52
|
displayName: string;
|
|
25
53
|
type: "formula";
|
|
26
54
|
formula: string;
|
|
27
55
|
format: "number" | "percent" | null;
|
|
28
56
|
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
29
|
-
} | {
|
|
30
|
-
name: string;
|
|
31
|
-
displayName: string;
|
|
32
|
-
type: "rank_in_column";
|
|
33
|
-
fieldId: string;
|
|
34
57
|
} | {
|
|
35
58
|
name: string;
|
|
36
59
|
displayName: string;
|
|
@@ -54,36 +77,13 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
54
77
|
} | {
|
|
55
78
|
name: string;
|
|
56
79
|
displayName: string;
|
|
57
|
-
type: "
|
|
80
|
+
type: "rank_in_column";
|
|
58
81
|
fieldId: string;
|
|
59
|
-
partitionBy: string[] | null;
|
|
60
82
|
} | {
|
|
61
83
|
name: string;
|
|
62
84
|
displayName: string;
|
|
63
85
|
type: "running_total";
|
|
64
86
|
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
|
};
|
|
@@ -263,6 +263,76 @@
|
|
|
263
263
|
"outputSchema": null,
|
|
264
264
|
"title": "Create content"
|
|
265
265
|
},
|
|
266
|
+
{
|
|
267
|
+
"annotations": {
|
|
268
|
+
"destructiveHint": false,
|
|
269
|
+
"idempotentHint": false,
|
|
270
|
+
"openWorldHint": false,
|
|
271
|
+
"readOnlyHint": false
|
|
272
|
+
},
|
|
273
|
+
"description": "Tool: create_custom_chart_type\n\nBuild a custom chart type: a reusable visualization for saved charts in the project, when built-in chart types cannot draw what the user wants. For a whole interactive app, use generate_data_app.\n\n- Describe the expected data by role (a date, a category, a value), not by a query's fields. Pass queryUuid to share sample rows from a completed run_metric_query.\n- Poll get_data_app_build_status with the returned slug as appSlug until \"ready\", \"error\" or \"cancelled\", then send the user to Chart Studio. Call this tool once per request.\n- Use the returned slug: a taken name gets a numeric suffix.\n- For a named theme, brand or look, find its themeSlug with list_data_app_themes.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n",
|
|
274
|
+
"inputSchema": {
|
|
275
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
276
|
+
"properties": {
|
|
277
|
+
"name": {
|
|
278
|
+
"description": "Short title-case name for the chart type (\"Sankey Flow\"). It sets the slug and is not renamed later.",
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"prompt": {
|
|
282
|
+
"description": "Self-contained brief for the coding agent: what the visualization draws, how it encodes the data and how it behaves. The agent does not see this conversation, only the sample rows from queryUuid if given.",
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"queryUuid": {
|
|
286
|
+
"anyOf": [
|
|
287
|
+
{
|
|
288
|
+
"format": "uuid",
|
|
289
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "null"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"default": null,
|
|
297
|
+
"description": "Optional uuid of a completed run_metric_query whose first rows are shared with the build as sample data. It does not bind the chart type to that query."
|
|
298
|
+
},
|
|
299
|
+
"themeSlug": {
|
|
300
|
+
"anyOf": [
|
|
301
|
+
{
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"type": "null"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"default": null,
|
|
309
|
+
"description": "Organization theme to build the chart type with: its slug, from list_data_app_themes. Omit it to use the organization default. An unknown slug returns an error and starts no build."
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": ["name", "prompt"],
|
|
313
|
+
"type": "object"
|
|
314
|
+
},
|
|
315
|
+
"name": "create_custom_chart_type",
|
|
316
|
+
"outputSchema": {
|
|
317
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
318
|
+
"additionalProperties": false,
|
|
319
|
+
"properties": {
|
|
320
|
+
"slug": {
|
|
321
|
+
"description": "The chart type's permanent slug. Pass it as appSlug to get_data_app_build_status.",
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"version": {
|
|
325
|
+
"description": "The version of the chart type this build produces.",
|
|
326
|
+
"exclusiveMinimum": 0,
|
|
327
|
+
"maximum": 9007199254740991,
|
|
328
|
+
"type": "integer"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"required": ["slug", "version"],
|
|
332
|
+
"type": "object"
|
|
333
|
+
},
|
|
334
|
+
"title": "Create custom chart type"
|
|
335
|
+
},
|
|
266
336
|
{
|
|
267
337
|
"annotations": {
|
|
268
338
|
"destructiveHint": false,
|
|
@@ -892,7 +962,7 @@
|
|
|
892
962
|
"openWorldHint": false,
|
|
893
963
|
"readOnlyHint": true
|
|
894
964
|
},
|
|
895
|
-
"description": "Tool: get_data_app_build_status\n\nPurpose:\nCheck how a data app build is going, and get the app's URL once it is ready. A data app is an interactive application generated from a brief on top of a Lightdash project's semantic layer; each build produces one version of it.\n\nImportant:\n- Poll every 15 seconds — \"nextPollAfterMs\" in the response carries the same number in milliseconds. A build usually takes several minutes.\n- Stop polling once \"status\" is \"ready\", \"error\", or \"cancelled\". Those are terminal; the version never changes again.\n- \"slug\" is the app's permanent identifier and never changes, even when the app is renamed. Keep using the slug you started the build with.\n- An agent-scoped session restricted to specific spaces cannot read a personal app, which is what a build started over MCP creates. Call this tool without agentUuid to poll a build you started.\n\nParameters:\n- appSlug: The app's slug, as returned when the build started.\n- version: Which version of the app to report on. Omit it for the latest version, which is the one a build you just started produces.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<human-readable status summary>\" }]\n- structuredContent: {\n status: string, // \"pending\" | \"sandbox\" | \"catalog\" | \"generating\" | \"building\" | \"packaging\" | \"ready\" | \"error\" | \"cancelled\"\n statusMessage: string, // short line describing what the build is doing, or how it ended\n errorMessage: string | null, // why the build failed, set only when status is \"error\"\n name: string, // the app's name\n slug: string, // the app's permanent slug\n href: string, // URL to open the app in Lightdash\n nextPollAfterMs: number // how long to wait before polling again\n }\n\nErrors: an unknown slug, or an app or version this caller may not view, returns an error rather than a status.\n",
|
|
965
|
+
"description": "Tool: get_data_app_build_status\n\nPurpose:\nCheck how a data app build is going, and get the app's URL once it is ready. A data app is an interactive application generated from a brief on top of a Lightdash project's semantic layer; each build produces one version of it.\n\nImportant:\n- Poll every 15 seconds — \"nextPollAfterMs\" in the response carries the same number in milliseconds. A build usually takes several minutes.\n- Stop polling once \"status\" is \"ready\", \"error\", or \"cancelled\". Those are terminal; the version never changes again.\n- \"slug\" is the app's permanent identifier and never changes, even when the app is renamed. Keep using the slug you started the build with.\n- An agent-scoped session restricted to specific spaces cannot read a personal app, which is what a build started over MCP creates. Call this tool without agentUuid to poll a build you started.\n\nParameters:\n- appSlug: The app's slug, as returned when the build started.\n- version: Which version of the app to report on. Omit it for the latest version, which is the one a build you just started produces.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<human-readable status summary>\" }]\n- structuredContent: {\n status: string, // \"pending\" | \"sandbox\" | \"catalog\" | \"generating\" | \"building\" | \"packaging\" | \"ready\" | \"error\" | \"cancelled\"\n statusMessage: string, // short line describing what the build is doing, or how it ended\n errorMessage: string | null, // why the build failed, set only when status is \"error\"\n name: string, // the app's name\n slug: string, // the app's permanent slug\n href: string, // URL to open the app in Lightdash; Chart Studio for a custom chart type\n nextPollAfterMs: number // how long to wait before polling again\n }\n\nErrors: an unknown slug, or an app or version this caller may not view, returns an error rather than a status.\n",
|
|
896
966
|
"inputSchema": {
|
|
897
967
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
898
968
|
"properties": {
|
|
@@ -928,7 +998,7 @@
|
|
|
928
998
|
"description": "Why the build failed. Set only when status is \"error\"."
|
|
929
999
|
},
|
|
930
1000
|
"href": {
|
|
931
|
-
"description": "URL
|
|
1001
|
+
"description": "URL that opens the app, or Chart Studio for a custom chart type.",
|
|
932
1002
|
"type": "string"
|
|
933
1003
|
},
|
|
934
1004
|
"name": {
|
|
@@ -2157,7 +2227,65 @@
|
|
|
2157
2227
|
"openWorldHint": false,
|
|
2158
2228
|
"readOnlyHint": false
|
|
2159
2229
|
},
|
|
2160
|
-
"description": "Tool:
|
|
2230
|
+
"description": "Tool: iterate_custom_chart_type\n\nStart a build that adds a version to an existing custom chart type from a follow-up brief. For a new chart type use create_custom_chart_type; for a data app use iterate_data_app.\n\n- Describe the change, not the whole chart type. The build keeps the chart type's inputs, so charts that already use it keep working. Pass queryUuid to share the first rows of a completed run_metric_query as sample data.\n- Poll get_data_app_build_status with appSlug set to the slug until it is \"ready\", \"error\" or \"cancelled\". If a version is already building, wait for it to end before calling again.\n- A chart type created over MCP is the caller's personal one, in no space, so a space-restricted agent-scoped session cannot read it. Omit agentUuid here and in get_data_app_build_status.\n",
|
|
2231
|
+
"inputSchema": {
|
|
2232
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"prompt": {
|
|
2235
|
+
"description": "Self-contained brief of the change for the coding agent, which works from the chart type's current source. The agent does not see this conversation, only the sample rows from queryUuid if given.",
|
|
2236
|
+
"type": "string"
|
|
2237
|
+
},
|
|
2238
|
+
"queryUuid": {
|
|
2239
|
+
"anyOf": [
|
|
2240
|
+
{
|
|
2241
|
+
"format": "uuid",
|
|
2242
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
2243
|
+
"type": "string"
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"type": "null"
|
|
2247
|
+
}
|
|
2248
|
+
],
|
|
2249
|
+
"default": null,
|
|
2250
|
+
"description": "Optional uuid of a completed run_metric_query whose first rows are shared with the build as sample data. It does not bind the chart type to that query."
|
|
2251
|
+
},
|
|
2252
|
+
"slug": {
|
|
2253
|
+
"description": "Slug of the custom chart type to change, from an earlier create_custom_chart_type result or its Chart Studio URL.",
|
|
2254
|
+
"type": "string"
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
"required": ["slug", "prompt"],
|
|
2258
|
+
"type": "object"
|
|
2259
|
+
},
|
|
2260
|
+
"name": "iterate_custom_chart_type",
|
|
2261
|
+
"outputSchema": {
|
|
2262
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
2263
|
+
"additionalProperties": false,
|
|
2264
|
+
"properties": {
|
|
2265
|
+
"slug": {
|
|
2266
|
+
"description": "The chart type's permanent slug. Pass it as appSlug to get_data_app_build_status.",
|
|
2267
|
+
"type": "string"
|
|
2268
|
+
},
|
|
2269
|
+
"version": {
|
|
2270
|
+
"description": "The version of the chart type this build produces.",
|
|
2271
|
+
"exclusiveMinimum": 0,
|
|
2272
|
+
"maximum": 9007199254740991,
|
|
2273
|
+
"type": "integer"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"required": ["slug", "version"],
|
|
2277
|
+
"type": "object"
|
|
2278
|
+
},
|
|
2279
|
+
"title": "Iterate on custom chart type"
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"annotations": {
|
|
2283
|
+
"destructiveHint": false,
|
|
2284
|
+
"idempotentHint": false,
|
|
2285
|
+
"openWorldHint": false,
|
|
2286
|
+
"readOnlyHint": false
|
|
2287
|
+
},
|
|
2288
|
+
"description": "Tool: iterate_data_app\n\nPurpose:\nStart a build that adds a version to an existing data app from a follow-up brief. Use it to change, fix, or extend an app that already exists; generate_data_app is the tool for a brand-new app.\n\nImportant:\n- The coding agent works from the app's current source, so the brief describes the change rather than restating the whole app.\n- The app's name and slug stay as they are. The build adds a version to the app named by appSlug.\n- The build runs in the background for several minutes. This call returns as soon as the build has started. Poll get_data_app_build_status with the same appSlug every 15 seconds until its status is \"ready\", \"error\", or \"cancelled\". Call this tool once per request.\n- While a version is already building for the app, this call fails with \"A version is already building for this app\". Poll get_data_app_build_status until that build reaches a terminal status, then call this tool again.\n- An agent-scoped session restricted to specific spaces cannot read a personal app. Call this tool and get_data_app_build_status without agentUuid to build and poll an app you own.\n- Pass themeSlug only when the user asks to switch the app's theme; omitting it keeps the current one. An unknown themeSlug fails before the build starts and lists the valid slugs, which list_data_app_themes also returns.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<confirmation that the build started>\" }]\n- structuredContent: {\n slug: string, // the app's slug, unchanged by this build\n version: number // the version of the app this build produces\n }\n\nErrors: an unknown appSlug, themeSlug, dashboardSlug, or chartSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.\n",
|
|
2161
2289
|
"inputSchema": {
|
|
2162
2290
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
2163
2291
|
"properties": {
|