@lightdash/common 2.616.1 → 2.617.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 +12 -12
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts +2 -2
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +21 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +23 -4
- package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +9 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +72 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
- package/dist/cjs/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +25 -25
- package/dist/cjs/ee/externalConnections/aliasFromName.d.ts +4 -0
- package/dist/cjs/ee/externalConnections/aliasFromName.d.ts.map +1 -0
- package/dist/cjs/ee/externalConnections/aliasFromName.js +23 -0
- package/dist/cjs/ee/externalConnections/aliasFromName.js.map +1 -0
- package/dist/cjs/ee/index.d.ts +1 -0
- package/dist/cjs/ee/index.d.ts.map +1 -1
- package/dist/cjs/ee/index.js +1 -0
- package/dist/cjs/ee/index.js.map +1 -1
- package/dist/cjs/schemas/json/mcp-tools-1.0.json +139 -4
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +25 -25
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +2 -2
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +18 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +22 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +10 -4
- package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +69 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
- package/dist/esm/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +28 -28
- package/dist/esm/ee/externalConnections/aliasFromName.d.ts +4 -0
- package/dist/esm/ee/externalConnections/aliasFromName.d.ts.map +1 -0
- package/dist/esm/ee/externalConnections/aliasFromName.js +18 -0
- package/dist/esm/ee/externalConnections/aliasFromName.js.map +1 -0
- package/dist/esm/ee/index.d.ts +1 -0
- package/dist/esm/ee/index.d.ts.map +1 -1
- package/dist/esm/ee/index.js +1 -0
- package/dist/esm/ee/index.js.map +1 -1
- package/dist/esm/schemas/json/mcp-tools-1.0.json +139 -4
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/chartConfig/web/getWebAiChartConfig.d.ts +25 -25
- package/dist/types/ee/AiAgent/schemas/index.d.ts +2 -2
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +3 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +18 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +10 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +22 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +4 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +10 -4
- package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts +85 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js +69 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.js.map +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolRunMetricQueryArgs.d.ts +59 -59
- package/dist/types/ee/AiAgent/schemas/tools/toolSearchFieldValuesArgs.d.ts +22 -22
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -2
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +28 -28
- package/dist/types/ee/externalConnections/aliasFromName.d.ts +4 -0
- package/dist/types/ee/externalConnections/aliasFromName.d.ts.map +1 -0
- package/dist/types/ee/externalConnections/aliasFromName.js +18 -0
- package/dist/types/ee/externalConnections/aliasFromName.js.map +1 -0
- package/dist/types/ee/index.d.ts +1 -0
- package/dist/types/ee/index.d.ts.map +1 -1
- package/dist/types/ee/index.js +1 -0
- package/dist/types/ee/index.js.map +1 -1
- package/dist/types/schemas/json/mcp-tools-1.0.json +139 -4
- package/package.json +1 -1
|
@@ -17,15 +17,20 @@ export const DATA_APP_BUILD_TEMPLATES = [
|
|
|
17
17
|
export const DATA_APP_VIZ_LINE_FORMAT = '[viz title][explore; metrics; dimensions; filters; sort]';
|
|
18
18
|
/** Shared by generateDataApp and iterateDataApp; the iterate tool adds its own theme-change caveat in its description. */
|
|
19
19
|
export const DATA_APP_THEME_SLUG_DESCRIPTION = 'Organization theme to build the app with: its slug, from the attached context ("Theme: <name> (slug: <slug>)"). Omit when no theme is given — the organization default applies. An unknown slug returns an error listing the valid slugs and starts no build.';
|
|
20
|
+
/** Shared by the agent generate and iterate tools. */
|
|
21
|
+
export const DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE = 'When the app needs an outside API (product analytics, billing, CRM) or the user names a connection, call listDataAppConnections first and pass the matching slugs as externalConnectionSlugs; a connection named only in the brief is not linked.';
|
|
20
22
|
export const TOOL_GENERATE_DATA_APP_DESCRIPTION = [
|
|
21
23
|
"Start building a new data app — an interactive application generated from a brief on top of this project's semantic layer.",
|
|
22
24
|
'Use it when the user asks to build, make, or generate a data app (or an app, slide show, or PDF report); questions, charts, dashboards, and other saved content have their own tools.',
|
|
23
25
|
'This tool always creates a new app: to change an app that already exists, use iterateDataApp instead.',
|
|
24
26
|
'Name the app yourself: the name fixes both the app name and its slug at creation, and neither changes afterwards.',
|
|
25
27
|
'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request: tell the user the build has started and end your turn.',
|
|
28
|
+
DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE,
|
|
26
29
|
].join(' ');
|
|
27
30
|
/** Why a scoped session loses sight of a personal app; shared by every MCP build tool. */
|
|
28
31
|
export const MCP_DATA_APP_AGENT_SCOPE_GUIDANCE = '- 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.';
|
|
32
|
+
/** Shared by the MCP generate and iterate tools. */
|
|
33
|
+
export const MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE = '- For an outside API (analytics, billing, CRM), pass externalConnectionSlugs from list_data_app_connections.';
|
|
29
34
|
/** Placement every MCP-started build shares; stated on each start tool. */
|
|
30
35
|
export const MCP_DATA_APP_PLACEMENT_GUIDANCE = [
|
|
31
36
|
"- The app is created as the calling user's personal app: at the project root, in no space, visible only to them until they move it.",
|
|
@@ -41,16 +46,21 @@ Important:
|
|
|
41
46
|
- 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 returned slug every ${DATA_APP_BUILD_POLL_INTERVAL_MS / 1000} seconds until its status is "ready", "error", or "cancelled". Call this tool once per request.
|
|
42
47
|
${MCP_DATA_APP_PLACEMENT_GUIDANCE}
|
|
43
48
|
- An unknown themeSlug fails before the build starts and lists the valid slugs. Call list_data_app_themes when the user names a theme, brand, or look.
|
|
49
|
+
${MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE}
|
|
44
50
|
|
|
45
51
|
Response shape (MCP CallToolResult):
|
|
46
52
|
- content: [{ type: "text", text: "<confirmation that the build started>" }]
|
|
47
53
|
- structuredContent: {
|
|
48
|
-
slug:
|
|
49
|
-
version:
|
|
54
|
+
slug: string, // the app's permanent slug; pass it to get_data_app_build_status
|
|
55
|
+
version: number, // the version of the app this build produces
|
|
56
|
+
warnings: string[] // e.g. a connection the brief names but does not link
|
|
50
57
|
}
|
|
51
58
|
|
|
52
|
-
Errors: an unknown themeSlug, dashboardSlug, or
|
|
59
|
+
Errors: an unknown themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build.
|
|
53
60
|
`;
|
|
61
|
+
export const dataAppBuildWarningsSchema = z
|
|
62
|
+
.array(z.string())
|
|
63
|
+
.describe('Non-blocking issues with the request, such as a connection the brief names that the app does not link. Empty when there are none.');
|
|
54
64
|
/** What a started build reports at the MCP surface; the app uuid stays internal. */
|
|
55
65
|
export const mcpDataAppBuildStartedOutputSchema = z.object({
|
|
56
66
|
slug: z
|
|
@@ -61,7 +71,13 @@ export const mcpDataAppBuildStartedOutputSchema = z.object({
|
|
|
61
71
|
.int()
|
|
62
72
|
.positive()
|
|
63
73
|
.describe('The version of the app this build produces.'),
|
|
74
|
+
warnings: dataAppBuildWarningsSchema,
|
|
64
75
|
});
|
|
76
|
+
export const externalConnectionSlugsInput = z
|
|
77
|
+
.array(z.string())
|
|
78
|
+
.nullish()
|
|
79
|
+
.default(null)
|
|
80
|
+
.describe('External connections to link to the app before the build: slugs from listDataAppConnections (list_data_app_connections over MCP). The build gets their instructions and samples and can call them at runtime. An unknown or unlinkable slug fails and starts no build. Omit when the app uses no external API.');
|
|
65
81
|
export const toolGenerateDataAppArgsSchema = z.object({
|
|
66
82
|
name: z
|
|
67
83
|
.string()
|
|
@@ -89,6 +105,7 @@ export const toolGenerateDataAppArgsSchema = z.object({
|
|
|
89
105
|
.nullish()
|
|
90
106
|
.default(null)
|
|
91
107
|
.describe(DATA_APP_THEME_SLUG_DESCRIPTION),
|
|
108
|
+
externalConnectionSlugs: externalConnectionSlugsInput,
|
|
92
109
|
});
|
|
93
110
|
const versionSchema = z
|
|
94
111
|
.number()
|
|
@@ -97,6 +114,8 @@ const pendingBuildSchema = z.object({
|
|
|
97
114
|
status: z
|
|
98
115
|
.literal('pending')
|
|
99
116
|
.describe('The build has started and is still running; its outcome replaces this result on a later turn.'),
|
|
117
|
+
// Optional: pending results persisted before warnings existed lack it.
|
|
118
|
+
warnings: dataAppBuildWarningsSchema.optional(),
|
|
100
119
|
});
|
|
101
120
|
const readyBuildSchema = z.object({
|
|
102
121
|
status: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,GAGzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,gCAAgC,GAEnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,mFAAmF;AACnF,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AAClF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAC7F,MAAM,CAAC,MAAM,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,0HAA0H;AAC1H,MAAM,CAAC,MAAM,+BAA+B,GACxC,+PAA+P,CAAC;AAEpQ,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAC9C,4HAA4H;IAC5H,uLAAuL;IACvL,uGAAuG;IACvG,mHAAmH;IACnH,+TAA+T;
|
|
1
|
+
{"version":3,"file":"toolGenerateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,GAGzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,gCAAgC,GAEnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,mFAAmF;AACnF,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAM,CAAC;AAEtD,kFAAkF;AAClF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,WAAW;IACX,WAAW;IACX,KAAK;IACL,QAAQ;CACmC,CAAC;AAGhD,6FAA6F;AAC7F,MAAM,CAAC,MAAM,wBAAwB,GACjC,0DAA0D,CAAC;AAE/D,0HAA0H;AAC1H,MAAM,CAAC,MAAM,+BAA+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AAyC;YAC/D,QAAQ,EAAE,UAAU;YACpB,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE;SAC1D,CAAC;IACN,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,KAAK,6BAA6B,CAAC;IAC1D,MAAM,OAAO,GAAG,SAAS;QACrB,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,CAAC,aAAa,IAAI,mBAAmB,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE;YACN,MAAM,EAAE,OAAO;YACf,OAAO;YACP,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO;SACV;QACD,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACjD,OAAe,EACkB,EAAE;IACnC,MAAM,OAAO,GAAG,8CACZ,kCAAkC,GAAG,KACzC,WAAW,CAAC;IACZ,MAAM,MAAM,GAAG,sCAAsC,OAAO,EAAE,CAAC;IAC/D,OAAO;QACH,MAAM;QACN,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjE,iBAAiB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACvC,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type ToolGenerateDataAppOutput } from './toolGenerateDataAppArgs';
|
|
3
3
|
export declare const TOOL_ITERATE_DATA_APP_DESCRIPTION: string;
|
|
4
|
-
export declare const MCP_TOOL_ITERATE_DATA_APP_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:
|
|
4
|
+
export declare const MCP_TOOL_ITERATE_DATA_APP_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- For an outside API (analytics, billing, CRM), pass externalConnectionSlugs from list_data_app_connections.\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 warnings: string[] // e.g. a connection the brief names but does not link\n }\n\nErrors: an unknown appSlug, themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.\n";
|
|
5
5
|
export declare const toolIterateDataAppArgsSchema: z.ZodObject<{
|
|
6
6
|
appSlug: z.ZodString;
|
|
7
7
|
prompt: z.ZodString;
|
|
8
8
|
dashboardSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
9
9
|
chartSlugs: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
10
10
|
themeSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
11
|
+
externalConnectionSlugs: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
|
|
11
12
|
}, z.core.$strip>;
|
|
12
13
|
export declare const toolIterateDataAppStructuredContentSchema: z.ZodObject<{
|
|
13
14
|
status: z.ZodLiteral<"pending">;
|
|
15
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
16
|
}, z.core.$strip>;
|
|
15
17
|
export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
|
|
16
18
|
result: z.ZodString;
|
|
@@ -37,6 +39,7 @@ export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
|
|
|
37
39
|
}, z.core.$strip>], "status">;
|
|
38
40
|
structuredContent: z.ZodUnion<readonly [z.ZodObject<{
|
|
39
41
|
status: z.ZodLiteral<"pending">;
|
|
42
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
41
44
|
refusal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
45
|
code: z.ZodLiteral<"ai_access_refused">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolIterateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,
|
|
1
|
+
{"version":3,"file":"toolIterateDataAppArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAUH,KAAK,yBAAyB,EACjC,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,iCAAiC,QAQnC,CAAC;AAEZ,eAAO,MAAM,qCAAqC,+gEAyBjD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;iBAmCvC,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;iBAQpD,CAAC;AAMH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,yCAAyC,CACnD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,8BAA8B,CACxC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;CAGtC,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,GACjC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,UAE3D,CAAC,KACV,MAAM,IAAI,CAAC,GAAG;IACb,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;IAC/C,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC;CAC0B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { toolErrorStructuredContentSchema } from '../outputMetadata';
|
|
3
3
|
import { makeBuiltInToolResultGuard } from './builtInToolResultGuard';
|
|
4
|
-
import { DATA_APP_BUILD_POLL_INTERVAL_MS, DATA_APP_THEME_SLUG_DESCRIPTION, isToolGenerateDataAppResult, MCP_DATA_APP_AGENT_SCOPE_GUIDANCE, toolGenerateDataAppOutputSchema, } from './toolGenerateDataAppArgs';
|
|
4
|
+
import { DATA_APP_BUILD_POLL_INTERVAL_MS, DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE, DATA_APP_THEME_SLUG_DESCRIPTION, dataAppBuildWarningsSchema, externalConnectionSlugsInput, isToolGenerateDataAppResult, MCP_DATA_APP_AGENT_SCOPE_GUIDANCE, MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE, toolGenerateDataAppOutputSchema, } from './toolGenerateDataAppArgs';
|
|
5
5
|
export const TOOL_ITERATE_DATA_APP_DESCRIPTION = [
|
|
6
6
|
'Start a build that adds a version to an existing data app from a follow-up brief.',
|
|
7
7
|
'Use it when the user wants to change, fix, or extend a data app that already exists — one built earlier in this thread, or one found with findContent; use generateDataApp only for a brand-new app.',
|
|
@@ -9,6 +9,7 @@ export const TOOL_ITERATE_DATA_APP_DESCRIPTION = [
|
|
|
9
9
|
'The build runs in the background for several minutes, so the call returns as soon as it has started (status: "pending") and the outcome lands on this result for a later turn. One request, one call — never wait, poll, or call this tool again for the same request: tell the user the build has started and end your turn.',
|
|
10
10
|
'While a version is already building for the app, the call fails — relay that the user should wait for the current build to finish.',
|
|
11
11
|
'When the attached context lists element references for this app (bracketed `[tag "text" @path:line]` strings), copy every one of them verbatim into the brief — the coding agent resolves them by source location and cannot see them otherwise.',
|
|
12
|
+
DATA_APP_EXTERNAL_CONNECTIONS_AGENT_GUIDANCE,
|
|
12
13
|
].join(' ');
|
|
13
14
|
export const MCP_TOOL_ITERATE_DATA_APP_DESCRIPTION = `Tool: iterate_data_app
|
|
14
15
|
|
|
@@ -22,15 +23,17 @@ Important:
|
|
|
22
23
|
- 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.
|
|
23
24
|
${MCP_DATA_APP_AGENT_SCOPE_GUIDANCE}
|
|
24
25
|
- 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.
|
|
26
|
+
${MCP_DATA_APP_EXTERNAL_CONNECTIONS_GUIDANCE}
|
|
25
27
|
|
|
26
28
|
Response shape (MCP CallToolResult):
|
|
27
29
|
- content: [{ type: "text", text: "<confirmation that the build started>" }]
|
|
28
30
|
- structuredContent: {
|
|
29
|
-
slug:
|
|
30
|
-
version:
|
|
31
|
+
slug: string, // the app's slug, unchanged by this build
|
|
32
|
+
version: number, // the version of the app this build produces
|
|
33
|
+
warnings: string[] // e.g. a connection the brief names but does not link
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
Errors: an unknown appSlug, themeSlug, dashboardSlug, or
|
|
36
|
+
Errors: an unknown appSlug, themeSlug, dashboardSlug, chartSlug, or externalConnectionSlug returns an error and starts no build. So does a custom chart type's slug: use iterate_custom_chart_type for those.
|
|
34
37
|
`;
|
|
35
38
|
export const toolIterateDataAppArgsSchema = z.object({
|
|
36
39
|
appSlug: z
|
|
@@ -54,11 +57,14 @@ export const toolIterateDataAppArgsSchema = z.object({
|
|
|
54
57
|
.nullish()
|
|
55
58
|
.default(null)
|
|
56
59
|
.describe(`${DATA_APP_THEME_SLUG_DESCRIPTION} On an existing app, passing it switches the app's theme; omit it unless the user asked to switch the theme in this request, so the app keeps its current theme.`),
|
|
60
|
+
externalConnectionSlugs: externalConnectionSlugsInput.describe('External connections to link to the app before the build: slugs from listDataAppConnections (list_data_app_connections over MCP). Adds to the connections the app already links; none are removed. An unknown or unlinkable slug fails and starts no build. Omit when the change needs no new external API.'),
|
|
57
61
|
});
|
|
58
62
|
export const toolIterateDataAppStructuredContentSchema = z.object({
|
|
59
63
|
status: z
|
|
60
64
|
.literal('pending')
|
|
61
65
|
.describe('The build has started and runs in the background; its outcome lands on this result later.'),
|
|
66
|
+
// Optional: pending results persisted before warnings existed lack it.
|
|
67
|
+
warnings: dataAppBuildWarningsSchema.optional(),
|
|
62
68
|
});
|
|
63
69
|
// The iterate tool shares the create tool's outcome contract: same pending,
|
|
64
70
|
// success, and error metadata, patched by the same build outcome recording.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolIterateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACH,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,iCAAiC,EACjC,+BAA+B,GAElC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC7C,mFAAmF;IACnF,sMAAsM;IACtM,2HAA2H;IAC3H,+TAA+T;IAC/T,oIAAoI;IACpI,kPAAkP;
|
|
1
|
+
{"version":3,"file":"toolIterateDataAppArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAA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J,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC;SACJ,OAAO,CAAC,SAAS,CAAC;SAClB,QAAQ,CACL,2FAA2F,CAC9F;IACL,uEAAuE;IACvE,QAAQ,EAAE,0BAA0B,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,4EAA4E;AAC5E,4EAA4E;AAC5E,sEAAsE;AACtE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,+BAA+B,CAAC,KAAK,CAAC,QAAQ;IACxD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC;QACvB,yCAAyC;QACzC,gCAAgC;KACnC,CAAC;CACL,CAAC,CAAC;AAcH,MAAM,CAAC,MAAM,0BAA0B,GAAG,0BAA0B,CAChE,gBAAgB,EAChB,+BAA+B,CAAC,KAAK,CAAC,QAAQ,CACjD,CAAC;AAEF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAGpC,MAAS,EAKX,EAAE,CAAC,2BAA2B,CAAC,MAAM,CAAC,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION: string;
|
|
3
|
+
export declare const MCP_TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = "Tool: list_data_app_connections\n\nPurpose:\nList the project's external connections you can link to a data app. An external connection is an admin-configured, credentialed proxy to an outside API (product analytics, billing, CRM, ...); a data app can call an API only through a linked connection.\n\nImportant:\n- Call it when the user wants a data app to use an outside API or names a connection, then pass the matching slugs as externalConnectionSlugs to generate_data_app or iterate_data_app.\n- Only connections you may link are listed. Credentials are never returned.\n- Pass appSlug to also see which connections that app already links.\n\nParameters:\n- appSlug: Optional. A data app's slug; fills linkedAliases for that app.\n\nResponse shape (MCP CallToolResult):\n- content: [{ type: \"text\", text: \"<the connections, one per line>\" }]\n- structuredContent: {\n connections: [{\n slug: string, // pass in externalConnectionSlugs\n name: string,\n authType: string, // \"none\" | \"api_key\" | \"bearer_token\" | \"google_service_account\" | \"oauth_client_credentials\"\n origin: string, // the API's base URL\n instructions: string | null, // how to use the API, written by an admin\n linkedAliases: string[] // aliases the appSlug app links it under; empty when not linked or no appSlug\n }]\n }\n\nErrors: an unknown appSlug, or an app this caller may not view, returns an error.\n";
|
|
4
|
+
export declare const toolListDataAppConnectionsArgsSchema: z.ZodObject<{
|
|
5
|
+
appSlug: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ToolListDataAppConnectionsArgs = z.infer<typeof toolListDataAppConnectionsArgsSchema>;
|
|
8
|
+
export declare const mcpListDataAppConnectionsStructuredOutputSchema: z.ZodObject<{
|
|
9
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
10
|
+
slug: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
authType: z.ZodString;
|
|
13
|
+
origin: z.ZodString;
|
|
14
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
15
|
+
linkedAliases: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type McpListDataAppConnectionsOutput = z.infer<typeof mcpListDataAppConnectionsStructuredOutputSchema>;
|
|
19
|
+
export declare const toolListDataAppConnectionsOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
+
result: z.ZodString;
|
|
21
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
error: "error";
|
|
24
|
+
success: "success";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
status: z.ZodEnum<{
|
|
28
|
+
success: "success";
|
|
29
|
+
}>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
structuredContent: z.ZodObject<{
|
|
32
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
authType: z.ZodString;
|
|
36
|
+
origin: z.ZodString;
|
|
37
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
38
|
+
linkedAliases: z.ZodArray<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
result: z.ZodString;
|
|
43
|
+
metadata: z.ZodIntersection<z.ZodObject<{
|
|
44
|
+
status: z.ZodEnum<{
|
|
45
|
+
error: "error";
|
|
46
|
+
success: "success";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
error: "error";
|
|
51
|
+
}>;
|
|
52
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
code: z.ZodLiteral<"ai_access_refused">;
|
|
54
|
+
reason: z.ZodString;
|
|
55
|
+
message: z.ZodString;
|
|
56
|
+
action: z.ZodNullable<z.ZodString>;
|
|
57
|
+
settingsUrl: z.ZodNullable<z.ZodString>;
|
|
58
|
+
connectUrl: z.ZodNullable<z.ZodString>;
|
|
59
|
+
capability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
policyLayer: z.ZodOptional<z.ZodString>;
|
|
61
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
62
|
+
policyVersion: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
projectUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
structuredContent: z.ZodObject<{
|
|
67
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
|
+
code: z.ZodLiteral<"ai_access_refused">;
|
|
69
|
+
reason: z.ZodString;
|
|
70
|
+
message: z.ZodString;
|
|
71
|
+
action: z.ZodNullable<z.ZodString>;
|
|
72
|
+
settingsUrl: z.ZodNullable<z.ZodString>;
|
|
73
|
+
connectUrl: z.ZodNullable<z.ZodString>;
|
|
74
|
+
capability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
policyLayer: z.ZodOptional<z.ZodString>;
|
|
76
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
77
|
+
policyVersion: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
projectUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
error: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>]>;
|
|
83
|
+
export type ToolListDataAppConnectionsStructuredContent = McpListDataAppConnectionsOutput;
|
|
84
|
+
export type ToolListDataAppConnectionsOutput = z.infer<typeof toolListDataAppConnectionsOutputSchema>;
|
|
85
|
+
//# sourceMappingURL=toolListDataAppConnectionsArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolListDataAppConnectionsArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0CAA0C,QAI5C,CAAC;AAEZ,eAAO,MAAM,8CAA8C,09CA2B1D,CAAC;AAEF,eAAO,MAAM,oCAAoC;;iBAS/C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,oCAAoC,CAC9C,CAAC;AAEF,eAAO,MAAM,+CAA+C;;;;;;;;;iBA0B1D,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,+CAA+C,CACzD,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAI7C,CAAC;AAEP,MAAM,MAAM,2CAA2C,GACnD,+BAA+B,CAAC;AAEpC,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,sCAAsC,CAChD,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { baseOutputMetadataSchema, structuredToolOutputSchema, } from '../outputMetadata';
|
|
3
|
+
export const TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = [
|
|
4
|
+
"List the project's external connections you can link to a data app: admin-configured, credentialed proxies to outside APIs (product analytics, billing, CRM). A data app can call an API only through a linked connection.",
|
|
5
|
+
'Call it when the user wants a data app to use an outside API or names a connection; match the request to a connection and pass its slug in externalConnectionSlugs to generateDataApp or iterateDataApp.',
|
|
6
|
+
'Pass appSlug to see which connections an existing app already links. Credentials are never returned.',
|
|
7
|
+
].join(' ');
|
|
8
|
+
export const MCP_TOOL_LIST_DATA_APP_CONNECTIONS_DESCRIPTION = `Tool: list_data_app_connections
|
|
9
|
+
|
|
10
|
+
Purpose:
|
|
11
|
+
List the project's external connections you can link to a data app. An external connection is an admin-configured, credentialed proxy to an outside API (product analytics, billing, CRM, ...); a data app can call an API only through a linked connection.
|
|
12
|
+
|
|
13
|
+
Important:
|
|
14
|
+
- Call it when the user wants a data app to use an outside API or names a connection, then pass the matching slugs as externalConnectionSlugs to generate_data_app or iterate_data_app.
|
|
15
|
+
- Only connections you may link are listed. Credentials are never returned.
|
|
16
|
+
- Pass appSlug to also see which connections that app already links.
|
|
17
|
+
|
|
18
|
+
Parameters:
|
|
19
|
+
- appSlug: Optional. A data app's slug; fills linkedAliases for that app.
|
|
20
|
+
|
|
21
|
+
Response shape (MCP CallToolResult):
|
|
22
|
+
- content: [{ type: "text", text: "<the connections, one per line>" }]
|
|
23
|
+
- structuredContent: {
|
|
24
|
+
connections: [{
|
|
25
|
+
slug: string, // pass in externalConnectionSlugs
|
|
26
|
+
name: string,
|
|
27
|
+
authType: string, // "none" | "api_key" | "bearer_token" | "google_service_account" | "oauth_client_credentials"
|
|
28
|
+
origin: string, // the API's base URL
|
|
29
|
+
instructions: string | null, // how to use the API, written by an admin
|
|
30
|
+
linkedAliases: string[] // aliases the appSlug app links it under; empty when not linked or no appSlug
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Errors: an unknown appSlug, or an app this caller may not view, returns an error.
|
|
35
|
+
`;
|
|
36
|
+
export const toolListDataAppConnectionsArgsSchema = z.object({
|
|
37
|
+
appSlug: z
|
|
38
|
+
.string()
|
|
39
|
+
.min(1)
|
|
40
|
+
.nullish()
|
|
41
|
+
.default(null)
|
|
42
|
+
.describe("A data app's slug. Pass it to see which connections that app already links; omit to list connections only."),
|
|
43
|
+
});
|
|
44
|
+
export const mcpListDataAppConnectionsStructuredOutputSchema = z.object({
|
|
45
|
+
connections: z
|
|
46
|
+
.array(z.object({
|
|
47
|
+
slug: z
|
|
48
|
+
.string()
|
|
49
|
+
.describe('Pass in externalConnectionSlugs when starting a data app build.'),
|
|
50
|
+
name: z.string().describe("The connection's display name."),
|
|
51
|
+
authType: z
|
|
52
|
+
.string()
|
|
53
|
+
.describe('How the proxy authenticates to the API.'),
|
|
54
|
+
origin: z.string().describe("The API's base URL."),
|
|
55
|
+
instructions: z
|
|
56
|
+
.string()
|
|
57
|
+
.nullable()
|
|
58
|
+
.describe('How to use the API, written by an admin.'),
|
|
59
|
+
linkedAliases: z
|
|
60
|
+
.array(z.string())
|
|
61
|
+
.describe('Aliases the appSlug app links this connection under; empty when not linked or no appSlug was given.'),
|
|
62
|
+
}))
|
|
63
|
+
.describe('Connections you may link; empty when there are none.'),
|
|
64
|
+
});
|
|
65
|
+
export const toolListDataAppConnectionsOutputSchema = structuredToolOutputSchema({
|
|
66
|
+
metadata: baseOutputMetadataSchema,
|
|
67
|
+
structuredContent: mcpListDataAppConnectionsStructuredOutputSchema,
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=toolListDataAppConnectionsArgs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolListDataAppConnectionsArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolListDataAppConnectionsArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,wBAAwB,EACxB,0BAA0B,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,0CAA0C,GAAG;IACtD,4NAA4N;IAC5N,0MAA0M;IAC1M,sGAAsG;CACzG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,8CAA8C,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B7D,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,4GAA4G,CAC/G;CACR,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IACpE,WAAW,EAAE,CAAC;SACT,KAAK,CACF,CAAC,CAAC,MAAM,CAAC;QACL,IAAI,EAAE,CAAC;aACF,MAAM,EAAE;aACR,QAAQ,CACL,iEAAiE,CACpE;QACL,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC3D,QAAQ,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CAAC,yCAAyC,CAAC;QACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QAClD,YAAY,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,0CAA0C,CAAC;QACzD,aAAa,EAAE,CAAC;aACX,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;aACjB,QAAQ,CACL,qGAAqG,CACxG;KACR,CAAC,CACL;SACA,QAAQ,CAAC,sDAAsD,CAAC;CACxE,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAC/C,0BAA0B,CAAC;IACvB,QAAQ,EAAE,wBAAwB;IAClC,iBAAiB,EAAE,+CAA+C;CACrE,CAAC,CAAC"}
|
|
@@ -979,18 +979,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
979
979
|
limit: number | null;
|
|
980
980
|
};
|
|
981
981
|
tableCalculations: ({
|
|
982
|
-
name: string;
|
|
983
|
-
displayName: string;
|
|
984
|
-
type: "formula";
|
|
985
|
-
formula: string;
|
|
986
|
-
format: "number" | "percent" | null;
|
|
987
|
-
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
988
|
-
} | {
|
|
989
|
-
name: string;
|
|
990
|
-
displayName: string;
|
|
991
|
-
type: "rank_in_column";
|
|
992
|
-
fieldId: string;
|
|
993
|
-
} | {
|
|
994
982
|
name: string;
|
|
995
983
|
displayName: string;
|
|
996
984
|
type: "percent_change_from_previous";
|
|
@@ -1000,6 +988,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1000
988
|
order: "asc" | "desc" | null;
|
|
1001
989
|
}[];
|
|
1002
990
|
partitionBy: string[] | null;
|
|
991
|
+
} | {
|
|
992
|
+
name: string;
|
|
993
|
+
displayName: string;
|
|
994
|
+
type: "running_total";
|
|
995
|
+
fieldId: string;
|
|
996
|
+
} | {
|
|
997
|
+
name: string;
|
|
998
|
+
displayName: string;
|
|
999
|
+
type: "formula";
|
|
1000
|
+
formula: string;
|
|
1001
|
+
format: "number" | "percent" | null;
|
|
1002
|
+
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
1003
1003
|
} | {
|
|
1004
1004
|
name: string;
|
|
1005
1005
|
displayName: string;
|
|
@@ -1019,7 +1019,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1019
1019
|
} | {
|
|
1020
1020
|
name: string;
|
|
1021
1021
|
displayName: string;
|
|
1022
|
-
type: "
|
|
1022
|
+
type: "rank_in_column";
|
|
1023
1023
|
fieldId: string;
|
|
1024
1024
|
} | {
|
|
1025
1025
|
name: string;
|
|
@@ -1074,17 +1074,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1074
1074
|
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
1075
|
filters: {
|
|
1076
1076
|
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
1077
|
fieldId: string;
|
|
1089
1078
|
fieldType: import("../../../..").DimensionType.BOOLEAN | import("../../../..").MetricType.BOOLEAN;
|
|
1090
1079
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
@@ -1095,6 +1084,17 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1095
1084
|
fieldFilterType: import("../../../..").FilterType.BOOLEAN;
|
|
1096
1085
|
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS;
|
|
1097
1086
|
values: boolean[];
|
|
1087
|
+
} | {
|
|
1088
|
+
fieldId: string;
|
|
1089
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1090
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1091
|
+
operator: import("../../../..").FilterOperator.NULL | import("../../../..").FilterOperator.NOT_NULL;
|
|
1092
|
+
} | {
|
|
1093
|
+
fieldId: string;
|
|
1094
|
+
fieldType: import("../../../..").DimensionType.STRING | import("../../../..").MetricType.STRING;
|
|
1095
|
+
fieldFilterType: import("../../../..").FilterType.STRING;
|
|
1096
|
+
operator: import("../../../..").FilterOperator.EQUALS | import("../../../..").FilterOperator.NOT_EQUALS | import("../../../..").FilterOperator.STARTS_WITH | import("../../../..").FilterOperator.ENDS_WITH | import("../../../..").FilterOperator.INCLUDE | import("../../../..").FilterOperator.NOT_INCLUDE;
|
|
1097
|
+
values: string[];
|
|
1098
1098
|
} | {
|
|
1099
1099
|
fieldId: string;
|
|
1100
1100
|
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;
|
|
@@ -1168,18 +1168,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1168
1168
|
}[] | null;
|
|
1169
1169
|
})[] | null;
|
|
1170
1170
|
tableCalculations: ({
|
|
1171
|
-
name: string;
|
|
1172
|
-
displayName: string;
|
|
1173
|
-
type: "formula";
|
|
1174
|
-
formula: string;
|
|
1175
|
-
format: "number" | "percent" | null;
|
|
1176
|
-
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
1177
|
-
} | {
|
|
1178
|
-
name: string;
|
|
1179
|
-
displayName: string;
|
|
1180
|
-
type: "rank_in_column";
|
|
1181
|
-
fieldId: string;
|
|
1182
|
-
} | {
|
|
1183
1171
|
name: string;
|
|
1184
1172
|
displayName: string;
|
|
1185
1173
|
type: "percent_change_from_previous";
|
|
@@ -1189,6 +1177,18 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1189
1177
|
order: "asc" | "desc" | null;
|
|
1190
1178
|
}[];
|
|
1191
1179
|
partitionBy: string[] | null;
|
|
1180
|
+
} | {
|
|
1181
|
+
name: string;
|
|
1182
|
+
displayName: string;
|
|
1183
|
+
type: "running_total";
|
|
1184
|
+
fieldId: string;
|
|
1185
|
+
} | {
|
|
1186
|
+
name: string;
|
|
1187
|
+
displayName: string;
|
|
1188
|
+
type: "formula";
|
|
1189
|
+
formula: string;
|
|
1190
|
+
format: "number" | "percent" | null;
|
|
1191
|
+
resultType: "boolean" | "date" | "number" | "string" | "timestamp" | null;
|
|
1192
1192
|
} | {
|
|
1193
1193
|
name: string;
|
|
1194
1194
|
displayName: string;
|
|
@@ -1208,7 +1208,7 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
1208
1208
|
} | {
|
|
1209
1209
|
name: string;
|
|
1210
1210
|
displayName: string;
|
|
1211
|
-
type: "
|
|
1211
|
+
type: "rank_in_column";
|
|
1212
1212
|
fieldId: string;
|
|
1213
1213
|
} | {
|
|
1214
1214
|
name: string;
|
|
@@ -1236,17 +1236,6 @@ export declare const toolRunMetricQueryArgsSchemaTransformed: z.ZodPipe<z.ZodObj
|
|
|
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;
|