@lightdash/common 1.163.3 → 1.164.1

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.
@@ -10,16 +10,19 @@ export declare const toolFindContentArgsSchema: z.ZodObject<{
10
10
  label: string;
11
11
  }>, "many">;
12
12
  spaceSlug: z.ZodNullable<z.ZodString>;
13
+ verifiedOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
14
  }, z.UnknownKeysParam, z.ZodTypeAny, {
14
15
  searchQueries: {
15
16
  label: string;
16
17
  }[];
17
18
  spaceSlug: string | null;
19
+ verifiedOnly?: boolean | null | undefined;
18
20
  }, {
19
21
  searchQueries: {
20
22
  label: string;
21
23
  }[];
22
24
  spaceSlug: string | null;
25
+ verifiedOnly?: boolean | null | undefined;
23
26
  }>;
24
27
  export declare const toolFindContentArgsSchemaTransformed: z.ZodObject<{
25
28
  searchQueries: z.ZodArray<z.ZodObject<{
@@ -30,16 +33,19 @@ export declare const toolFindContentArgsSchemaTransformed: z.ZodObject<{
30
33
  label: string;
31
34
  }>, "many">;
32
35
  spaceSlug: z.ZodNullable<z.ZodString>;
36
+ verifiedOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
37
  }, z.UnknownKeysParam, z.ZodTypeAny, {
34
38
  searchQueries: {
35
39
  label: string;
36
40
  }[];
37
41
  spaceSlug: string | null;
42
+ verifiedOnly?: boolean | null | undefined;
38
43
  }, {
39
44
  searchQueries: {
40
45
  label: string;
41
46
  }[];
42
47
  spaceSlug: string | null;
48
+ verifiedOnly?: boolean | null | undefined;
43
49
  }>;
44
50
  export declare const toolFindContentOutputSchema: z.ZodObject<{
45
51
  result: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindContentArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACx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tips:
10
10
  - The search engine understands natural language and context — more descriptive queries yield better results.
11
11
  - You can provide multiple search queries to look for different topics simultaneously (e.g., ["monthly revenue", "user acquisition trends"]).
12
12
  - Pass spaceSlug to search only inside that space and its descendants.
13
+ - verifiedOnly=true searches only admin-verified charts/dashboards (spaces omitted). Verification is a status, not text — search topic keywords, never the word "verified". If nothing verified matches, the result is empty; verified content may still exist under other terms, so never claim the project has none from one query. Re-run with verifiedOnly=false only if unverified content is acceptable.
13
14
  - If results aren't relevant, retry with the full user query or more specific terms.
14
15
  - Dashboards with validation errors will be deprioritized.
15
16
  - Returns space breadcrumb/path metadata and chart/dashboard URLs when available.
@@ -26,6 +27,10 @@ export const toolFindContentArgsSchema = createToolSchema()
26
27
  .string()
27
28
  .nullable()
28
29
  .describe('Optional space slug/path. Use null to search the whole project. When set, only content in this space and descendants is returned.'),
30
+ verifiedOnly: z
31
+ .boolean()
32
+ .nullish()
33
+ .describe('Set to true to search only admin-verified charts and dashboards. Null or false searches all content.'),
29
34
  })
30
35
  .build();
31
36
  export const toolFindContentArgsSchemaTransformed = toolFindContentArgsSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"toolFindContentArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC1C,QAAQ,GACa,EAAU,EAAE,CAAC,UAAU,QAAQ;;;;;;;;;;;;;qFAa6B,CAAC;AAEtF,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,EAAE;KACtD,MAAM,CAAC;IACJ,aAAa,EAAE,CAAC,CAAC,KAAK,CAClB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;IACD,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,mIAAmI,CACtI;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,oCAAoC,GAAG,yBAAyB,CAAC;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB;CACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"toolFindContentArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolFindContentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC1C,QAAQ,GACa,EAAU,EAAE,CAAC,UAAU,QAAQ;;;;;;;;;;;;;;qFAc6B,CAAC;AAEtF,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,EAAE;KACtD,MAAM,CAAC;IACJ,aAAa,EAAE,CAAC,CAAC,KAAK,CAClB,CAAC,CAAC,MAAM,CAAC;QACL,KAAK,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACL,qIAAqI,CACxI;KACR,CAAC,CACL;IACD,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,mIAAmI,CACtI;IACL,YAAY,EAAE,CAAC;SACV,OAAO,EAAE;SACT,OAAO,EAAE;SACT,QAAQ,CACL,sGAAsG,CACzG;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,oCAAoC,GAAG,yBAAyB,CAAC;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,wBAAwB;CACrC,CAAC,CAAC"}
@@ -374,7 +374,7 @@
374
374
  "openWorldHint": false,
375
375
  "readOnlyHint": true
376
376
  },
377
- "description": "Tool: \"find_content\"\nPurpose:\nFinds spaces, charts, or dashboards by name or description within a project, returning detailed information about each.\n\nUsage tips:\n- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., \"revenue based on campaigns\" instead of just \"campaigns\").\n- The search engine understands natural language and context — more descriptive queries yield better results.\n- You can provide multiple search queries to look for different topics simultaneously (e.g., [\"monthly revenue\", \"user acquisition trends\"]).\n- Pass spaceSlug to search only inside that space and its descendants.\n- If results aren't relevant, retry with the full user query or more specific terms.\n- Dashboards with validation errors will be deprioritized.\n- Returns space breadcrumb/path metadata and chart/dashboard URLs when available.\n- Dashboards show a preview of the first 5 charts and the total chart count. Use \"getDashboardCharts\" to see all charts for a specific dashboard.\n- It doesn't provide summaries for dashboards yet, so don't suggest this capability.",
377
+ "description": "Tool: \"find_content\"\nPurpose:\nFinds spaces, charts, or dashboards by name or description within a project, returning detailed information about each.\n\nUsage tips:\n- IMPORTANT: Pass the user's full query or relevant portion directly (e.g., \"revenue based on campaigns\" instead of just \"campaigns\").\n- The search engine understands natural language and context — more descriptive queries yield better results.\n- You can provide multiple search queries to look for different topics simultaneously (e.g., [\"monthly revenue\", \"user acquisition trends\"]).\n- Pass spaceSlug to search only inside that space and its descendants.\n- verifiedOnly=true searches only admin-verified charts/dashboards (spaces omitted). Verification is a status, not text — search topic keywords, never the word \"verified\". If nothing verified matches, the result is empty; verified content may still exist under other terms, so never claim the project has none from one query. Re-run with verifiedOnly=false only if unverified content is acceptable.\n- If results aren't relevant, retry with the full user query or more specific terms.\n- Dashboards with validation errors will be deprioritized.\n- Returns space breadcrumb/path metadata and chart/dashboard URLs when available.\n- Dashboards show a preview of the first 5 charts and the total chart count. Use \"getDashboardCharts\" to see all charts for a specific dashboard.\n- It doesn't provide summaries for dashboards yet, so don't suggest this capability.",
378
378
  "inputSchema": {
379
379
  "$schema": "http://json-schema.org/draft-07/schema#",
380
380
  "additionalProperties": false,
@@ -396,6 +396,10 @@
396
396
  "spaceSlug": {
397
397
  "description": "Optional space slug/path. Use null to search the whole project. When set, only content in this space and descendants is returned., ",
398
398
  "type": "string"
399
+ },
400
+ "verifiedOnly": {
401
+ "description": "Set to true to search only admin-verified charts and dashboards. Null or false searches all content.",
402
+ "type": ["boolean", "null"]
399
403
  }
400
404
  },
401
405
  "required": ["searchQueries"],