@lightdash/common 2.610.0 → 2.610.2
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/slack/getWarehousePivotedResults.d.ts +13 -0
- package/dist/cjs/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js +43 -0
- package/dist/cjs/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js.map +1 -0
- package/dist/cjs/ee/AiAgent/chartConfig/slack/index.d.ts +2 -0
- package/dist/cjs/ee/AiAgent/chartConfig/slack/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/index.js +5 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js +18 -19
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js +4 -5
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js +21 -22
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js +4 -5
- package/dist/cjs/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/types.d.ts +5 -1
- package/dist/cjs/ee/AiAgent/chartConfig/slack/types.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +7 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts +13 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js +15 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +29 -29
- package/dist/cjs/schemas/chartAsCodeSchema.d.ts +11 -11
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +70 -28
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.d.ts +13 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js +39 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js.map +1 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/index.d.ts +2 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/index.js +2 -0
- package/dist/esm/ee/AiAgent/chartConfig/slack/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js +18 -19
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js +4 -5
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js +21 -22
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js +4 -5
- package/dist/esm/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/types.d.ts +5 -1
- package/dist/esm/ee/AiAgent/chartConfig/slack/types.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/esm/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts +13 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js +14 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +7 -7
- package/dist/esm/schemas/chartAsCodeSchema.d.ts +11 -11
- package/dist/esm/schemas/json/mcp-tools-1.0.json +70 -28
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.d.ts +13 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js +39 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/getWarehousePivotedResults.js.map +1 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/index.d.ts +2 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/index.js +2 -0
- package/dist/types/ee/AiAgent/chartConfig/slack/index.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js +18 -19
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/bar.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js +4 -5
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/horizontalBar.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js +21 -22
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/line.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js +4 -5
- package/dist/types/ee/AiAgent/chartConfig/slack/runQueryTool/viz/scatter.js.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/types.d.ts +5 -1
- package/dist/types/ee/AiAgent/chartConfig/slack/types.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +29 -29
- package/dist/types/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts +13 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolQueryResultSchemas.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js +14 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolQueryResultSchemas.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunQueryArgs.js +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +7 -7
- package/dist/types/schemas/chartAsCodeSchema.d.ts +11 -11
- package/dist/types/schemas/json/mcp-tools-1.0.json +70 -28
- package/package.json +1 -1
|
@@ -404,7 +404,7 @@ const parsePersistedRunQueryArgs = (raw) => {
|
|
|
404
404
|
exports.parsePersistedRunQueryArgs = parsePersistedRunQueryArgs;
|
|
405
405
|
exports.TOOL_RENDER_CHART_DESCRIPTION = `Render a completed run_metric_query result in Lightdash's built-in chart app in MCP App-capable clients.
|
|
406
406
|
|
|
407
|
-
Use when the user wants a visual. If the query is running, call get_query_result first.
|
|
407
|
+
Use when the user wants a visual. If the query is running, call get_query_result first. For a grouped bar, horizontal_bar, line or scatter chart (chartConfig.groupBy), this tool runs the grouped query for the chart itself. While that query runs it returns status "running", not an error: wait nextPollAfterMs, then call render_chart again with the same arguments. Otherwise it does not start, poll or rerun queries.
|
|
408
408
|
Pass the exact queryUuid returned for this query by run_metric_query or get_query_result (also available in the \`queryUuid: <id>\` text block). Never invent an ID or reuse one from another query or session. SQL Runner/run_sql results are not supported.
|
|
409
409
|
|
|
410
410
|
Supported types: table, bar, horizontal_bar, line, scatter, pie, funnel.
|
|
@@ -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
|
};
|
|
@@ -79,8 +79,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
79
79
|
metricQuery: {
|
|
80
80
|
allOf: ({
|
|
81
81
|
type?: undefined;
|
|
82
|
-
properties?: undefined;
|
|
83
82
|
$ref: string;
|
|
83
|
+
properties?: undefined;
|
|
84
84
|
required?: undefined;
|
|
85
85
|
} | {
|
|
86
86
|
$ref?: undefined;
|
|
@@ -219,8 +219,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
219
219
|
};
|
|
220
220
|
format: {
|
|
221
221
|
anyOf: ({
|
|
222
|
-
type?: undefined;
|
|
223
222
|
$ref: string;
|
|
223
|
+
type?: undefined;
|
|
224
224
|
} | {
|
|
225
225
|
$ref?: undefined;
|
|
226
226
|
type: string;
|
|
@@ -800,8 +800,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
800
800
|
metricQuery: {
|
|
801
801
|
allOf: ({
|
|
802
802
|
type?: undefined;
|
|
803
|
-
properties?: undefined;
|
|
804
803
|
$ref: string;
|
|
804
|
+
properties?: undefined;
|
|
805
805
|
required?: undefined;
|
|
806
806
|
} | {
|
|
807
807
|
$ref?: undefined;
|
|
@@ -1016,8 +1016,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
1016
1016
|
CompactOrAlias: {
|
|
1017
1017
|
anyOf: ({
|
|
1018
1018
|
type?: undefined;
|
|
1019
|
-
enum?: undefined;
|
|
1020
1019
|
$ref: string;
|
|
1020
|
+
enum?: undefined;
|
|
1021
1021
|
} | {
|
|
1022
1022
|
$ref?: undefined;
|
|
1023
1023
|
enum: string[];
|
|
@@ -2833,13 +2833,13 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
2833
2833
|
};
|
|
2834
2834
|
ParameterValue: {
|
|
2835
2835
|
anyOf: ({
|
|
2836
|
-
items?: undefined;
|
|
2837
2836
|
format?: undefined;
|
|
2838
2837
|
type: string;
|
|
2839
|
-
} | {
|
|
2840
2838
|
items?: undefined;
|
|
2839
|
+
} | {
|
|
2841
2840
|
format: string;
|
|
2842
2841
|
type: string;
|
|
2842
|
+
items?: undefined;
|
|
2843
2843
|
} | {
|
|
2844
2844
|
format?: undefined;
|
|
2845
2845
|
items: {
|
|
@@ -4816,8 +4816,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
4816
4816
|
};
|
|
4817
4817
|
format: {
|
|
4818
4818
|
anyOf: ({
|
|
4819
|
-
type?: undefined;
|
|
4820
4819
|
$ref: string;
|
|
4820
|
+
type?: undefined;
|
|
4821
4821
|
} | {
|
|
4822
4822
|
$ref?: undefined;
|
|
4823
4823
|
type: string;
|
|
@@ -5397,8 +5397,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
5397
5397
|
metricQuery: {
|
|
5398
5398
|
allOf: ({
|
|
5399
5399
|
type?: undefined;
|
|
5400
|
-
properties?: undefined;
|
|
5401
5400
|
$ref: string;
|
|
5401
|
+
properties?: undefined;
|
|
5402
5402
|
required?: undefined;
|
|
5403
5403
|
} | {
|
|
5404
5404
|
$ref?: undefined;
|
|
@@ -5613,8 +5613,8 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
5613
5613
|
CompactOrAlias: {
|
|
5614
5614
|
anyOf: ({
|
|
5615
5615
|
type?: undefined;
|
|
5616
|
-
enum?: undefined;
|
|
5617
5616
|
$ref: string;
|
|
5617
|
+
enum?: undefined;
|
|
5618
5618
|
} | {
|
|
5619
5619
|
$ref?: undefined;
|
|
5620
5620
|
enum: string[];
|
|
@@ -7430,13 +7430,13 @@ export declare const getChartAsCodeBranchSchema: (contentType: ChartAsCodeConten
|
|
|
7430
7430
|
};
|
|
7431
7431
|
ParameterValue: {
|
|
7432
7432
|
anyOf: ({
|
|
7433
|
-
items?: undefined;
|
|
7434
7433
|
format?: undefined;
|
|
7435
7434
|
type: string;
|
|
7436
|
-
} | {
|
|
7437
7435
|
items?: undefined;
|
|
7436
|
+
} | {
|
|
7438
7437
|
format: string;
|
|
7439
7438
|
type: string;
|
|
7439
|
+
items?: undefined;
|
|
7440
7440
|
} | {
|
|
7441
7441
|
format?: undefined;
|
|
7442
7442
|
items: {
|
|
@@ -3710,7 +3710,7 @@
|
|
|
3710
3710
|
"readOnlyHint": true,
|
|
3711
3711
|
"title": "Render chart"
|
|
3712
3712
|
},
|
|
3713
|
-
"description": "Render a completed run_metric_query result in Lightdash's built-in chart app in MCP App-capable clients.\n\nUse when the user wants a visual. If the query is running, call get_query_result first.
|
|
3713
|
+
"description": "Render a completed run_metric_query result in Lightdash's built-in chart app in MCP App-capable clients.\n\nUse when the user wants a visual. If the query is running, call get_query_result first. For a grouped bar, horizontal_bar, line or scatter chart (chartConfig.groupBy), this tool runs the grouped query for the chart itself. While that query runs it returns status \"running\", not an error: wait nextPollAfterMs, then call render_chart again with the same arguments. Otherwise it does not start, poll or rerun queries.\nPass the exact queryUuid returned for this query by run_metric_query or get_query_result (also available in the `queryUuid: <id>` text block). Never invent an ID or reuse one from another query or session. SQL Runner/run_sql results are not supported.\n\nSupported types: table, bar, horizontal_bar, line, scatter, pie, funnel.\n- For time series: use `line` with `xAxisType: 'time'`.\n- For categorical comparisons: use `bar` or `horizontal_bar`.\n- For single values or detailed data: use `table`.\n- Always provide axis labels.\n\nThe full chart payload is app metadata, drawn only by MCP App-capable clients. In structuredContent, `echartsOption: {}` is a placeholder for that payload, not a failed render. If your client cannot display MCP Apps, the user has not seen the chart: build the visual from the query rows. Custom artifacts should build visuals from query data instead.\n\nWhen building an HTML/React artifact that calls MCP, load the mcp-artifact-integration skill (read_skill with name: \"mcp-artifact-integration\") for response parsing, polling, errors and chart data. This is not needed for ordinary chat or the built-in chart app.",
|
|
3714
3714
|
"inputSchema": {
|
|
3715
3715
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3716
3716
|
"properties": {
|
|
@@ -3827,39 +3827,81 @@
|
|
|
3827
3827
|
"additionalProperties": false,
|
|
3828
3828
|
"properties": {
|
|
3829
3829
|
"result": {
|
|
3830
|
-
"
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
"
|
|
3835
|
-
{
|
|
3836
|
-
|
|
3837
|
-
|
|
3830
|
+
"anyOf": [
|
|
3831
|
+
{
|
|
3832
|
+
"additionalProperties": false,
|
|
3833
|
+
"description": "Rendered chart result for a completed query.",
|
|
3834
|
+
"properties": {
|
|
3835
|
+
"echartsOption": {
|
|
3836
|
+
"anyOf": [
|
|
3837
|
+
{},
|
|
3838
|
+
{
|
|
3839
|
+
"type": "null"
|
|
3840
|
+
}
|
|
3841
|
+
]
|
|
3842
|
+
},
|
|
3843
|
+
"exploreUrl": {
|
|
3844
|
+
"anyOf": [
|
|
3845
|
+
{
|
|
3846
|
+
"type": "string"
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"type": "null"
|
|
3850
|
+
}
|
|
3851
|
+
]
|
|
3852
|
+
},
|
|
3853
|
+
"queryUuid": {
|
|
3854
|
+
"format": "uuid",
|
|
3855
|
+
"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)$",
|
|
3856
|
+
"type": "string"
|
|
3857
|
+
},
|
|
3858
|
+
"status": {
|
|
3859
|
+
"const": "done",
|
|
3860
|
+
"type": "string"
|
|
3838
3861
|
}
|
|
3839
|
-
|
|
3862
|
+
},
|
|
3863
|
+
"required": [
|
|
3864
|
+
"status",
|
|
3865
|
+
"queryUuid",
|
|
3866
|
+
"exploreUrl"
|
|
3867
|
+
],
|
|
3868
|
+
"type": "object"
|
|
3840
3869
|
},
|
|
3841
|
-
|
|
3842
|
-
"
|
|
3843
|
-
|
|
3870
|
+
{
|
|
3871
|
+
"additionalProperties": false,
|
|
3872
|
+
"description": "The chart is not drawn yet because its grouped query is running.",
|
|
3873
|
+
"properties": {
|
|
3874
|
+
"heartbeatAt": {
|
|
3875
|
+
"description": "ISO timestamp for when Lightdash last checked this async query and confirmed it is still running.",
|
|
3844
3876
|
"type": "string"
|
|
3845
3877
|
},
|
|
3846
|
-
{
|
|
3847
|
-
"
|
|
3878
|
+
"nextPollAfterMs": {
|
|
3879
|
+
"description": "Suggested delay before calling render_chart again.",
|
|
3880
|
+
"exclusiveMinimum": 0,
|
|
3881
|
+
"maximum": 9007199254740991,
|
|
3882
|
+
"type": "integer"
|
|
3883
|
+
},
|
|
3884
|
+
"queryUuid": {
|
|
3885
|
+
"description": "The queryUuid render_chart was called with.",
|
|
3886
|
+
"format": "uuid",
|
|
3887
|
+
"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)$",
|
|
3888
|
+
"type": "string"
|
|
3889
|
+
},
|
|
3890
|
+
"status": {
|
|
3891
|
+
"const": "running",
|
|
3892
|
+
"description": "Present while the grouped query for the chart is still running. Call render_chart again with the same arguments.",
|
|
3893
|
+
"type": "string"
|
|
3848
3894
|
}
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
"const": "done",
|
|
3858
|
-
"type": "string"
|
|
3895
|
+
},
|
|
3896
|
+
"required": [
|
|
3897
|
+
"status",
|
|
3898
|
+
"queryUuid",
|
|
3899
|
+
"nextPollAfterMs",
|
|
3900
|
+
"heartbeatAt"
|
|
3901
|
+
],
|
|
3902
|
+
"type": "object"
|
|
3859
3903
|
}
|
|
3860
|
-
|
|
3861
|
-
"required": ["status", "queryUuid", "exploreUrl"],
|
|
3862
|
-
"type": "object"
|
|
3904
|
+
]
|
|
3863
3905
|
}
|
|
3864
3906
|
},
|
|
3865
3907
|
"required": ["result"],
|