@lightdash/common 0.2040.0 → 0.2042.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/ee/AiAgent/index.d.ts +20 -1
- package/dist/cjs/ee/AiAgent/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts +1 -1
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js +12 -12
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/filters/index.d.ts +280 -280
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts +2667 -2352
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/outputMetadata.d.ts +10 -0
- package/dist/cjs/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/outputMetadata.js +8 -0
- package/dist/cjs/ee/AiAgent/schemas/outputMetadata.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +4174 -4153
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.d.ts +21 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +364 -2
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.js +38 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolProposeChange.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +516 -495
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js +7 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +517 -496
- package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +528 -507
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +541 -520
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +542 -521
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +6 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +2 -2
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/cjs/ee/AiAgent/utils.d.ts +3 -3
- package/dist/cjs/types/changeset.d.ts +22 -10
- package/dist/cjs/types/changeset.d.ts.map +1 -1
- package/dist/cjs/types/changeset.js +7 -3
- package/dist/cjs/types/changeset.js.map +1 -1
- package/dist/cjs/utils/changeset.js +1 -1
- package/dist/cjs/utils/changeset.js.map +1 -1
- package/dist/esm/ee/AiAgent/index.d.ts +20 -1
- package/dist/esm/ee/AiAgent/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts +1 -1
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js +12 -12
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/filters/index.d.ts +280 -280
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +2667 -2352
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/outputMetadata.d.ts +10 -0
- package/dist/esm/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/outputMetadata.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/outputMetadata.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +4174 -4153
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindChartsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.d.ts +21 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolImproveContext.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +364 -2
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.js +37 -5
- package/dist/esm/ee/AiAgent/schemas/tools/toolProposeChange.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +516 -495
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js +6 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +517 -496
- package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +528 -507
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +541 -520
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +542 -521
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +5 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +2 -2
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/esm/ee/AiAgent/utils.d.ts +3 -3
- package/dist/esm/types/changeset.d.ts +22 -10
- package/dist/esm/types/changeset.d.ts.map +1 -1
- package/dist/esm/types/changeset.js +7 -3
- package/dist/esm/types/changeset.js.map +1 -1
- package/dist/esm/utils/changeset.js +1 -1
- package/dist/esm/utils/changeset.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/index.d.ts +20 -1
- package/dist/types/ee/AiAgent/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts +1 -1
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/filters/index.d.ts +280 -280
- package/dist/types/ee/AiAgent/schemas/index.d.ts +2667 -2352
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/outputMetadata.d.ts +10 -0
- package/dist/types/ee/AiAgent/schemas/outputMetadata.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts +4174 -4153
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindChartsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindDashboardsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContext.d.ts +21 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolImproveContext.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.d.ts +364 -2
- package/dist/types/ee/AiAgent/schemas/tools/toolProposeChange.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +516 -495
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +517 -496
- package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +528 -507
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +541 -520
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +542 -521
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +2 -2
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/types/ee/AiAgent/utils.d.ts +3 -3
- package/dist/types/types/changeset.d.ts +22 -10
- package/dist/types/types/changeset.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import type
|
2
|
+
import { type Dimension, type Metric, type Table } from '../../../..';
|
3
3
|
import { AiResultType } from '../../types';
|
4
|
-
export declare const TOOL_PROPOSE_CHANGE_DESCRIPTION = "\nUse this tool to propose changes to a table's metadata in the semantic layer. This tool creates a change proposal that can be reviewed and approved before being applied.\n\n- When updating descriptions, ensure to preserve as much original content as possible. Remember that descriptions are enclosed in \"description\" tags and you should take the whole value into account as well as its format.\n- If modifying tables, _always_ use the findExplores tool to check existing descriptions before proposing changes to ensure no important content is removed.\n- If modifying metrics or dimensions, _always_ use the findFields tool to check existing descriptions before proposing changes to ensure no important content is removed.\n\n- **When to use the Propose Change Tool:**\n - User requests to update a table description: \"Update the description of the customers table\"\n - User wants to improve a dimension description: \"Add a better description for the customer_name field\"\n - User asks to clarify a metric description: \"Update the total_revenue metric description to explain it's net revenue\"\n - User wants to document business logic in descriptions: \"Add a note that active_users excludes test accounts\"\n\n- **What this tool does:**\n - Creates a change proposal in the system\n - The change is NOT applied immediately - it requires review and approval\n - Supports updating descriptions for tables, dimensions, and metrics\n - Tracks who proposed the change and when\n - Change proposals can be reviewed, approved, or rejected by authorized users\n\n- **Examples:**\n\n User: \"Update the customers table description to mention it includes both B2B and B2C customers\"\n User: \"The revenue_net field should explain it's after taxes and discounts\"\n";
|
4
|
+
export declare const TOOL_PROPOSE_CHANGE_DESCRIPTION = "\nUse this tool to propose changes to a table's metadata in the semantic layer. This tool creates a change proposal that can be reviewed and approved before being applied.\n\n- When updating descriptions, ensure to preserve as much original content as possible. Remember that descriptions are enclosed in \"description\" tags and you should take the whole value into account as well as its format.\n- If modifying tables, _always_ use the findExplores tool to check existing descriptions before proposing changes to ensure no important content is removed.\n- If modifying metrics or dimensions, _always_ use the findFields tool to check existing descriptions before proposing changes to ensure no important content is removed.\n- If creating a new metric, _always_ use the findFields tool to check existing metrics before proposing changes to ensure no content is duplicated.\n\n- **When to use the Propose Change Tool:**\n - User requests to update a table description: \"Update the description of the customers table\"\n - User wants to improve a dimension description: \"Add a better description for the customer_name field\"\n - User asks to clarify a metric description: \"Update the total_revenue metric description to explain it's net revenue\"\n - User wants to document business logic in descriptions: \"Add a note that active_users excludes test accounts\"\n\n- **What this tool does:**\n - Creates a change proposal in the system\n - The change is NOT applied immediately - it requires review and approval\n - Supports updating descriptions for tables, dimensions, and metrics\n - Supports creating new metrics\n - Tracks who proposed the change and when\n - Change proposals can be reviewed, approved, or rejected by authorized users\n\n- **Examples:**\n\n User: \"Update the customers table description to mention it includes both B2B and B2C customers\"\n User: \"The revenue_net field should explain it's after taxes and discounts\"\n User: \"Create a new metric called 'Median Order Amount' that calculates the median order amount\"\n";
|
5
5
|
type ChangePatch<T> = Partial<Record<keyof T, z.ZodType>>;
|
6
6
|
declare const stringOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
7
7
|
op: z.ZodLiteral<"replace">;
|
@@ -12,6 +12,15 @@ declare const stringOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
12
12
|
}, {
|
13
13
|
value: string;
|
14
14
|
op: "replace";
|
15
|
+
}>, z.ZodObject<{
|
16
|
+
op: z.ZodLiteral<"add">;
|
17
|
+
value: z.ZodString;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
value: string;
|
20
|
+
op: "add";
|
21
|
+
}, {
|
22
|
+
value: string;
|
23
|
+
op: "add";
|
15
24
|
}>]>;
|
16
25
|
export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
17
26
|
type: z.ZodLiteral<AiResultType.PROPOSE_CHANGE>;
|
@@ -32,6 +41,15 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
32
41
|
}, {
|
33
42
|
value: string;
|
34
43
|
op: "replace";
|
44
|
+
}>, z.ZodObject<{
|
45
|
+
op: z.ZodLiteral<"add">;
|
46
|
+
value: z.ZodString;
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
48
|
+
value: string;
|
49
|
+
op: "add";
|
50
|
+
}, {
|
51
|
+
value: string;
|
52
|
+
op: "add";
|
35
53
|
}>]>>;
|
36
54
|
label: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
37
55
|
op: z.ZodLiteral<"replace">;
|
@@ -42,24 +60,45 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
42
60
|
}, {
|
43
61
|
value: string;
|
44
62
|
op: "replace";
|
63
|
+
}>, z.ZodObject<{
|
64
|
+
op: z.ZodLiteral<"add">;
|
65
|
+
value: z.ZodString;
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
67
|
+
value: string;
|
68
|
+
op: "add";
|
69
|
+
}, {
|
70
|
+
value: string;
|
71
|
+
op: "add";
|
45
72
|
}>]>>;
|
46
73
|
}, "strip", z.ZodTypeAny, {
|
47
74
|
label: {
|
48
75
|
value: string;
|
49
76
|
op: "replace";
|
77
|
+
} | {
|
78
|
+
value: string;
|
79
|
+
op: "add";
|
50
80
|
} | null;
|
51
81
|
description: {
|
52
82
|
value: string;
|
53
83
|
op: "replace";
|
84
|
+
} | {
|
85
|
+
value: string;
|
86
|
+
op: "add";
|
54
87
|
} | null;
|
55
88
|
}, {
|
56
89
|
label: {
|
57
90
|
value: string;
|
58
91
|
op: "replace";
|
92
|
+
} | {
|
93
|
+
value: string;
|
94
|
+
op: "add";
|
59
95
|
} | null;
|
60
96
|
description: {
|
61
97
|
value: string;
|
62
98
|
op: "replace";
|
99
|
+
} | {
|
100
|
+
value: string;
|
101
|
+
op: "add";
|
63
102
|
} | null;
|
64
103
|
}>;
|
65
104
|
}, "strip", z.ZodTypeAny, {
|
@@ -68,10 +107,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
68
107
|
label: {
|
69
108
|
value: string;
|
70
109
|
op: "replace";
|
110
|
+
} | {
|
111
|
+
value: string;
|
112
|
+
op: "add";
|
71
113
|
} | null;
|
72
114
|
description: {
|
73
115
|
value: string;
|
74
116
|
op: "replace";
|
117
|
+
} | {
|
118
|
+
value: string;
|
119
|
+
op: "add";
|
75
120
|
} | null;
|
76
121
|
};
|
77
122
|
}, {
|
@@ -80,10 +125,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
80
125
|
label: {
|
81
126
|
value: string;
|
82
127
|
op: "replace";
|
128
|
+
} | {
|
129
|
+
value: string;
|
130
|
+
op: "add";
|
83
131
|
} | null;
|
84
132
|
description: {
|
85
133
|
value: string;
|
86
134
|
op: "replace";
|
135
|
+
} | {
|
136
|
+
value: string;
|
137
|
+
op: "add";
|
87
138
|
} | null;
|
88
139
|
};
|
89
140
|
}>]>;
|
@@ -94,10 +145,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
94
145
|
label: {
|
95
146
|
value: string;
|
96
147
|
op: "replace";
|
148
|
+
} | {
|
149
|
+
value: string;
|
150
|
+
op: "add";
|
97
151
|
} | null;
|
98
152
|
description: {
|
99
153
|
value: string;
|
100
154
|
op: "replace";
|
155
|
+
} | {
|
156
|
+
value: string;
|
157
|
+
op: "add";
|
101
158
|
} | null;
|
102
159
|
};
|
103
160
|
};
|
@@ -109,10 +166,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
109
166
|
label: {
|
110
167
|
value: string;
|
111
168
|
op: "replace";
|
169
|
+
} | {
|
170
|
+
value: string;
|
171
|
+
op: "add";
|
112
172
|
} | null;
|
113
173
|
description: {
|
114
174
|
value: string;
|
115
175
|
op: "replace";
|
176
|
+
} | {
|
177
|
+
value: string;
|
178
|
+
op: "add";
|
116
179
|
} | null;
|
117
180
|
};
|
118
181
|
};
|
@@ -132,6 +195,15 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
132
195
|
}, {
|
133
196
|
value: string;
|
134
197
|
op: "replace";
|
198
|
+
}>, z.ZodObject<{
|
199
|
+
op: z.ZodLiteral<"add">;
|
200
|
+
value: z.ZodString;
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
202
|
+
value: string;
|
203
|
+
op: "add";
|
204
|
+
}, {
|
205
|
+
value: string;
|
206
|
+
op: "add";
|
135
207
|
}>]>>;
|
136
208
|
description: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
137
209
|
op: z.ZodLiteral<"replace">;
|
@@ -142,24 +214,45 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
142
214
|
}, {
|
143
215
|
value: string;
|
144
216
|
op: "replace";
|
217
|
+
}>, z.ZodObject<{
|
218
|
+
op: z.ZodLiteral<"add">;
|
219
|
+
value: z.ZodString;
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
221
|
+
value: string;
|
222
|
+
op: "add";
|
223
|
+
}, {
|
224
|
+
value: string;
|
225
|
+
op: "add";
|
145
226
|
}>]>>;
|
146
227
|
}, "strip", z.ZodTypeAny, {
|
147
228
|
label: {
|
148
229
|
value: string;
|
149
230
|
op: "replace";
|
231
|
+
} | {
|
232
|
+
value: string;
|
233
|
+
op: "add";
|
150
234
|
} | null;
|
151
235
|
description: {
|
152
236
|
value: string;
|
153
237
|
op: "replace";
|
238
|
+
} | {
|
239
|
+
value: string;
|
240
|
+
op: "add";
|
154
241
|
} | null;
|
155
242
|
}, {
|
156
243
|
label: {
|
157
244
|
value: string;
|
158
245
|
op: "replace";
|
246
|
+
} | {
|
247
|
+
value: string;
|
248
|
+
op: "add";
|
159
249
|
} | null;
|
160
250
|
description: {
|
161
251
|
value: string;
|
162
252
|
op: "replace";
|
253
|
+
} | {
|
254
|
+
value: string;
|
255
|
+
op: "add";
|
163
256
|
} | null;
|
164
257
|
}>;
|
165
258
|
}, "strip", z.ZodTypeAny, {
|
@@ -168,10 +261,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
168
261
|
label: {
|
169
262
|
value: string;
|
170
263
|
op: "replace";
|
264
|
+
} | {
|
265
|
+
value: string;
|
266
|
+
op: "add";
|
171
267
|
} | null;
|
172
268
|
description: {
|
173
269
|
value: string;
|
174
270
|
op: "replace";
|
271
|
+
} | {
|
272
|
+
value: string;
|
273
|
+
op: "add";
|
175
274
|
} | null;
|
176
275
|
};
|
177
276
|
}, {
|
@@ -180,10 +279,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
180
279
|
label: {
|
181
280
|
value: string;
|
182
281
|
op: "replace";
|
282
|
+
} | {
|
283
|
+
value: string;
|
284
|
+
op: "add";
|
183
285
|
} | null;
|
184
286
|
description: {
|
185
287
|
value: string;
|
186
288
|
op: "replace";
|
289
|
+
} | {
|
290
|
+
value: string;
|
291
|
+
op: "add";
|
187
292
|
} | null;
|
188
293
|
};
|
189
294
|
}>]>;
|
@@ -195,10 +300,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
195
300
|
label: {
|
196
301
|
value: string;
|
197
302
|
op: "replace";
|
303
|
+
} | {
|
304
|
+
value: string;
|
305
|
+
op: "add";
|
198
306
|
} | null;
|
199
307
|
description: {
|
200
308
|
value: string;
|
201
309
|
op: "replace";
|
310
|
+
} | {
|
311
|
+
value: string;
|
312
|
+
op: "add";
|
202
313
|
} | null;
|
203
314
|
};
|
204
315
|
};
|
@@ -211,10 +322,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
211
322
|
label: {
|
212
323
|
value: string;
|
213
324
|
op: "replace";
|
325
|
+
} | {
|
326
|
+
value: string;
|
327
|
+
op: "add";
|
214
328
|
} | null;
|
215
329
|
description: {
|
216
330
|
value: string;
|
217
331
|
op: "replace";
|
332
|
+
} | {
|
333
|
+
value: string;
|
334
|
+
op: "add";
|
218
335
|
} | null;
|
219
336
|
};
|
220
337
|
};
|
@@ -223,6 +340,72 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
223
340
|
entityType: z.ZodLiteral<"metric">;
|
224
341
|
fieldId: z.ZodString;
|
225
342
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
343
|
+
type: z.ZodLiteral<"create">;
|
344
|
+
value: z.ZodDiscriminatedUnion<"entityType", [z.ZodObject<{
|
345
|
+
entityType: z.ZodLiteral<"metric">;
|
346
|
+
metric: z.ZodObject<{
|
347
|
+
name: z.ZodString;
|
348
|
+
label: z.ZodString;
|
349
|
+
baseDimensionName: z.ZodString;
|
350
|
+
table: z.ZodString;
|
351
|
+
type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
353
|
+
name: string;
|
354
|
+
label: string;
|
355
|
+
table: string;
|
356
|
+
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;
|
357
|
+
baseDimensionName: string;
|
358
|
+
}, {
|
359
|
+
name: string;
|
360
|
+
label: string;
|
361
|
+
table: string;
|
362
|
+
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;
|
363
|
+
baseDimensionName: string;
|
364
|
+
}>;
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
366
|
+
metric: {
|
367
|
+
name: string;
|
368
|
+
label: string;
|
369
|
+
table: string;
|
370
|
+
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;
|
371
|
+
baseDimensionName: string;
|
372
|
+
};
|
373
|
+
entityType: "metric";
|
374
|
+
}, {
|
375
|
+
metric: {
|
376
|
+
name: string;
|
377
|
+
label: string;
|
378
|
+
table: string;
|
379
|
+
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;
|
380
|
+
baseDimensionName: string;
|
381
|
+
};
|
382
|
+
entityType: "metric";
|
383
|
+
}>]>;
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
385
|
+
value: {
|
386
|
+
metric: {
|
387
|
+
name: string;
|
388
|
+
label: string;
|
389
|
+
table: string;
|
390
|
+
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;
|
391
|
+
baseDimensionName: string;
|
392
|
+
};
|
393
|
+
entityType: "metric";
|
394
|
+
};
|
395
|
+
type: "create";
|
396
|
+
}, {
|
397
|
+
value: {
|
398
|
+
metric: {
|
399
|
+
name: string;
|
400
|
+
label: string;
|
401
|
+
table: string;
|
402
|
+
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;
|
403
|
+
baseDimensionName: string;
|
404
|
+
};
|
405
|
+
entityType: "metric";
|
406
|
+
};
|
407
|
+
type: "create";
|
408
|
+
}>, z.ZodObject<{
|
226
409
|
type: z.ZodLiteral<"update">;
|
227
410
|
patch: z.ZodObject<{
|
228
411
|
label: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
@@ -234,6 +417,15 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
234
417
|
}, {
|
235
418
|
value: string;
|
236
419
|
op: "replace";
|
420
|
+
}>, z.ZodObject<{
|
421
|
+
op: z.ZodLiteral<"add">;
|
422
|
+
value: z.ZodString;
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
424
|
+
value: string;
|
425
|
+
op: "add";
|
426
|
+
}, {
|
427
|
+
value: string;
|
428
|
+
op: "add";
|
237
429
|
}>]>>;
|
238
430
|
description: z.ZodNullable<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
239
431
|
op: z.ZodLiteral<"replace">;
|
@@ -244,24 +436,45 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
244
436
|
}, {
|
245
437
|
value: string;
|
246
438
|
op: "replace";
|
439
|
+
}>, z.ZodObject<{
|
440
|
+
op: z.ZodLiteral<"add">;
|
441
|
+
value: z.ZodString;
|
442
|
+
}, "strip", z.ZodTypeAny, {
|
443
|
+
value: string;
|
444
|
+
op: "add";
|
445
|
+
}, {
|
446
|
+
value: string;
|
447
|
+
op: "add";
|
247
448
|
}>]>>;
|
248
449
|
}, "strip", z.ZodTypeAny, {
|
249
450
|
label: {
|
250
451
|
value: string;
|
251
452
|
op: "replace";
|
453
|
+
} | {
|
454
|
+
value: string;
|
455
|
+
op: "add";
|
252
456
|
} | null;
|
253
457
|
description: {
|
254
458
|
value: string;
|
255
459
|
op: "replace";
|
460
|
+
} | {
|
461
|
+
value: string;
|
462
|
+
op: "add";
|
256
463
|
} | null;
|
257
464
|
}, {
|
258
465
|
label: {
|
259
466
|
value: string;
|
260
467
|
op: "replace";
|
468
|
+
} | {
|
469
|
+
value: string;
|
470
|
+
op: "add";
|
261
471
|
} | null;
|
262
472
|
description: {
|
263
473
|
value: string;
|
264
474
|
op: "replace";
|
475
|
+
} | {
|
476
|
+
value: string;
|
477
|
+
op: "add";
|
265
478
|
} | null;
|
266
479
|
}>;
|
267
480
|
}, "strip", z.ZodTypeAny, {
|
@@ -270,10 +483,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
270
483
|
label: {
|
271
484
|
value: string;
|
272
485
|
op: "replace";
|
486
|
+
} | {
|
487
|
+
value: string;
|
488
|
+
op: "add";
|
273
489
|
} | null;
|
274
490
|
description: {
|
275
491
|
value: string;
|
276
492
|
op: "replace";
|
493
|
+
} | {
|
494
|
+
value: string;
|
495
|
+
op: "add";
|
277
496
|
} | null;
|
278
497
|
};
|
279
498
|
}, {
|
@@ -282,25 +501,49 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
282
501
|
label: {
|
283
502
|
value: string;
|
284
503
|
op: "replace";
|
504
|
+
} | {
|
505
|
+
value: string;
|
506
|
+
op: "add";
|
285
507
|
} | null;
|
286
508
|
description: {
|
287
509
|
value: string;
|
288
510
|
op: "replace";
|
511
|
+
} | {
|
512
|
+
value: string;
|
513
|
+
op: "add";
|
289
514
|
} | null;
|
290
515
|
};
|
291
516
|
}>]>;
|
292
517
|
}, "strip", z.ZodTypeAny, {
|
293
518
|
fieldId: string;
|
294
519
|
value: {
|
520
|
+
value: {
|
521
|
+
metric: {
|
522
|
+
name: string;
|
523
|
+
label: string;
|
524
|
+
table: string;
|
525
|
+
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;
|
526
|
+
baseDimensionName: string;
|
527
|
+
};
|
528
|
+
entityType: "metric";
|
529
|
+
};
|
530
|
+
type: "create";
|
531
|
+
} | {
|
295
532
|
type: "update";
|
296
533
|
patch: {
|
297
534
|
label: {
|
298
535
|
value: string;
|
299
536
|
op: "replace";
|
537
|
+
} | {
|
538
|
+
value: string;
|
539
|
+
op: "add";
|
300
540
|
} | null;
|
301
541
|
description: {
|
302
542
|
value: string;
|
303
543
|
op: "replace";
|
544
|
+
} | {
|
545
|
+
value: string;
|
546
|
+
op: "add";
|
304
547
|
} | null;
|
305
548
|
};
|
306
549
|
};
|
@@ -308,15 +551,33 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
308
551
|
}, {
|
309
552
|
fieldId: string;
|
310
553
|
value: {
|
554
|
+
value: {
|
555
|
+
metric: {
|
556
|
+
name: string;
|
557
|
+
label: string;
|
558
|
+
table: string;
|
559
|
+
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;
|
560
|
+
baseDimensionName: string;
|
561
|
+
};
|
562
|
+
entityType: "metric";
|
563
|
+
};
|
564
|
+
type: "create";
|
565
|
+
} | {
|
311
566
|
type: "update";
|
312
567
|
patch: {
|
313
568
|
label: {
|
314
569
|
value: string;
|
315
570
|
op: "replace";
|
571
|
+
} | {
|
572
|
+
value: string;
|
573
|
+
op: "add";
|
316
574
|
} | null;
|
317
575
|
description: {
|
318
576
|
value: string;
|
319
577
|
op: "replace";
|
578
|
+
} | {
|
579
|
+
value: string;
|
580
|
+
op: "add";
|
320
581
|
} | null;
|
321
582
|
};
|
322
583
|
};
|
@@ -333,10 +594,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
333
594
|
label: {
|
334
595
|
value: string;
|
335
596
|
op: "replace";
|
597
|
+
} | {
|
598
|
+
value: string;
|
599
|
+
op: "add";
|
336
600
|
} | null;
|
337
601
|
description: {
|
338
602
|
value: string;
|
339
603
|
op: "replace";
|
604
|
+
} | {
|
605
|
+
value: string;
|
606
|
+
op: "add";
|
340
607
|
} | null;
|
341
608
|
};
|
342
609
|
};
|
@@ -349,10 +616,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
349
616
|
label: {
|
350
617
|
value: string;
|
351
618
|
op: "replace";
|
619
|
+
} | {
|
620
|
+
value: string;
|
621
|
+
op: "add";
|
352
622
|
} | null;
|
353
623
|
description: {
|
354
624
|
value: string;
|
355
625
|
op: "replace";
|
626
|
+
} | {
|
627
|
+
value: string;
|
628
|
+
op: "add";
|
356
629
|
} | null;
|
357
630
|
};
|
358
631
|
};
|
@@ -360,15 +633,33 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
360
633
|
} | {
|
361
634
|
fieldId: string;
|
362
635
|
value: {
|
636
|
+
value: {
|
637
|
+
metric: {
|
638
|
+
name: string;
|
639
|
+
label: string;
|
640
|
+
table: string;
|
641
|
+
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;
|
642
|
+
baseDimensionName: string;
|
643
|
+
};
|
644
|
+
entityType: "metric";
|
645
|
+
};
|
646
|
+
type: "create";
|
647
|
+
} | {
|
363
648
|
type: "update";
|
364
649
|
patch: {
|
365
650
|
label: {
|
366
651
|
value: string;
|
367
652
|
op: "replace";
|
653
|
+
} | {
|
654
|
+
value: string;
|
655
|
+
op: "add";
|
368
656
|
} | null;
|
369
657
|
description: {
|
370
658
|
value: string;
|
371
659
|
op: "replace";
|
660
|
+
} | {
|
661
|
+
value: string;
|
662
|
+
op: "add";
|
372
663
|
} | null;
|
373
664
|
};
|
374
665
|
};
|
@@ -385,10 +676,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
385
676
|
label: {
|
386
677
|
value: string;
|
387
678
|
op: "replace";
|
679
|
+
} | {
|
680
|
+
value: string;
|
681
|
+
op: "add";
|
388
682
|
} | null;
|
389
683
|
description: {
|
390
684
|
value: string;
|
391
685
|
op: "replace";
|
686
|
+
} | {
|
687
|
+
value: string;
|
688
|
+
op: "add";
|
392
689
|
} | null;
|
393
690
|
};
|
394
691
|
};
|
@@ -401,10 +698,16 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
401
698
|
label: {
|
402
699
|
value: string;
|
403
700
|
op: "replace";
|
701
|
+
} | {
|
702
|
+
value: string;
|
703
|
+
op: "add";
|
404
704
|
} | null;
|
405
705
|
description: {
|
406
706
|
value: string;
|
407
707
|
op: "replace";
|
708
|
+
} | {
|
709
|
+
value: string;
|
710
|
+
op: "add";
|
408
711
|
} | null;
|
409
712
|
};
|
410
713
|
};
|
@@ -412,15 +715,33 @@ export declare const toolProposeChangeArgsSchema: z.ZodObject<{
|
|
412
715
|
} | {
|
413
716
|
fieldId: string;
|
414
717
|
value: {
|
718
|
+
value: {
|
719
|
+
metric: {
|
720
|
+
name: string;
|
721
|
+
label: string;
|
722
|
+
table: string;
|
723
|
+
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;
|
724
|
+
baseDimensionName: string;
|
725
|
+
};
|
726
|
+
entityType: "metric";
|
727
|
+
};
|
728
|
+
type: "create";
|
729
|
+
} | {
|
415
730
|
type: "update";
|
416
731
|
patch: {
|
417
732
|
label: {
|
418
733
|
value: string;
|
419
734
|
op: "replace";
|
735
|
+
} | {
|
736
|
+
value: string;
|
737
|
+
op: "add";
|
420
738
|
} | null;
|
421
739
|
description: {
|
422
740
|
value: string;
|
423
741
|
op: "replace";
|
742
|
+
} | {
|
743
|
+
value: string;
|
744
|
+
op: "add";
|
424
745
|
} | null;
|
425
746
|
};
|
426
747
|
};
|
@@ -432,5 +753,46 @@ export type ToolProposeChangeReplaceStringOp = z.infer<typeof stringOpSchema>;
|
|
432
753
|
export type UpdateDimensionPatch = ChangePatch<Dimension>;
|
433
754
|
export type UpdateMetricPatch = ChangePatch<Metric>;
|
434
755
|
export type UpdateTablePatch = ChangePatch<Table>;
|
756
|
+
export declare const toolProposeChangeOutputSchema: z.ZodObject<{
|
757
|
+
result: z.ZodString;
|
758
|
+
metadata: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
759
|
+
status: z.ZodLiteral<"success">;
|
760
|
+
changeUuid: z.ZodString;
|
761
|
+
userFeedback: z.ZodOptional<z.ZodDefault<z.ZodEnum<["accepted", "rejected"]>>>;
|
762
|
+
}, "strip", z.ZodTypeAny, {
|
763
|
+
status: "success";
|
764
|
+
changeUuid: string;
|
765
|
+
userFeedback?: "accepted" | "rejected" | undefined;
|
766
|
+
}, {
|
767
|
+
status: "success";
|
768
|
+
changeUuid: string;
|
769
|
+
userFeedback?: "accepted" | "rejected" | undefined;
|
770
|
+
}>, z.ZodObject<{
|
771
|
+
status: z.ZodLiteral<"error">;
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
773
|
+
status: "error";
|
774
|
+
}, {
|
775
|
+
status: "error";
|
776
|
+
}>]>;
|
777
|
+
}, "strip", z.ZodTypeAny, {
|
778
|
+
metadata: {
|
779
|
+
status: "success";
|
780
|
+
changeUuid: string;
|
781
|
+
userFeedback?: "accepted" | "rejected" | undefined;
|
782
|
+
} | {
|
783
|
+
status: "error";
|
784
|
+
};
|
785
|
+
result: string;
|
786
|
+
}, {
|
787
|
+
metadata: {
|
788
|
+
status: "success";
|
789
|
+
changeUuid: string;
|
790
|
+
userFeedback?: "accepted" | "rejected" | undefined;
|
791
|
+
} | {
|
792
|
+
status: "error";
|
793
|
+
};
|
794
|
+
result: string;
|
795
|
+
}>;
|
796
|
+
export type ToolProposeChangeOutput = z.infer<typeof toolProposeChangeOutputSchema>;
|
435
797
|
export {};
|
436
798
|
//# sourceMappingURL=toolProposeChange.d.ts.map
|