@lightdash/common 2.355.0 → 2.356.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.
Files changed (142) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
  3. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
  4. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
  5. package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
  6. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
  7. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  8. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
  21. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  22. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +52 -4
  23. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  24. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
  25. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
  26. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
  27. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
  28. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
  29. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
  30. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
  31. package/dist/cjs/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
  32. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
  33. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
  34. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
  35. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
  36. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
  37. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
  38. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +16 -1
  39. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
  40. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
  41. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
  42. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
  43. package/dist/cjs/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
  44. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
  45. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  46. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +22 -3
  47. package/dist/cjs/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  48. package/dist/esm/.tsbuildinfo +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
  50. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  63. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
  64. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  65. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
  66. package/dist/esm/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  67. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
  68. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  69. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +51 -3
  70. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  71. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
  72. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
  73. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
  74. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
  75. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
  76. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
  77. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
  78. package/dist/esm/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
  79. package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
  80. package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
  81. package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
  82. package/dist/esm/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
  83. package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
  84. package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
  85. package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +15 -0
  86. package/dist/esm/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
  87. package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
  88. package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
  89. package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
  90. package/dist/esm/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
  91. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
  92. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  93. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +21 -2
  94. package/dist/esm/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  95. package/dist/types/.tsbuildinfo +1 -1
  96. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +37 -3
  97. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -1
  98. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +16 -3
  99. package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -1
  100. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +2 -0
  101. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
  102. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +2 -0
  103. package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
  104. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.d.ts.map +1 -1
  105. package/dist/types/ee/AiAgent/schemas/tools/toolEditDbtProjectArgs.js.map +1 -1
  106. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts +179 -5
  107. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.d.ts.map +1 -1
  108. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js +16 -4
  109. package/dist/types/ee/AiAgent/schemas/tools/toolFindExploresArgs.js.map +1 -1
  110. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts +94 -5
  111. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.d.ts.map +1 -1
  112. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js +12 -4
  113. package/dist/types/ee/AiAgent/schemas/tools/toolFindFieldsArgs.js.map +1 -1
  114. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts +43 -2
  115. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.d.ts.map +1 -1
  116. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js +51 -3
  117. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateDataAppArgs.js.map +1 -1
  118. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts +32 -6
  119. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.d.ts.map +1 -1
  120. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js +7 -5
  121. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateHashesArgs.js.map +1 -1
  122. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts +29 -3
  123. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.d.ts.map +1 -1
  124. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js +8 -3
  125. package/dist/types/ee/AiAgent/schemas/tools/toolGenerateUuidsArgs.js.map +1 -1
  126. package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts +62 -3
  127. package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.d.ts.map +1 -1
  128. package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js +35 -3
  129. package/dist/types/ee/AiAgent/schemas/tools/toolGetDashboardChartsArgs.js.map +1 -1
  130. package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts +15 -0
  131. package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.d.ts.map +1 -1
  132. package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js +15 -0
  133. package/dist/types/ee/AiAgent/schemas/tools/toolGetKnowledgeDocumentContentArgs.js.map +1 -1
  134. package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts +173 -3
  135. package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.d.ts.map +1 -1
  136. package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js +5 -3
  137. package/dist/types/ee/AiAgent/schemas/tools/toolGetMetadataArgs.js.map +1 -1
  138. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts +13 -0
  139. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.d.ts.map +1 -1
  140. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js +21 -2
  141. package/dist/types/ee/AiAgent/schemas/tools/toolIterateDataAppArgs.js.map +1 -1
  142. package/package.json +1 -1
@@ -108,16 +108,186 @@ export declare const getMetadataResultSchema: z.ZodObject<{
108
108
  error: z.ZodString;
109
109
  }, z.core.$strip>]>>;
110
110
  }, z.core.$strip>;
111
- export declare const toolGetMetadataOutputSchema: z.ZodObject<{
111
+ export declare const toolGetMetadataStructuredContentSchema: z.ZodObject<{
112
+ explores: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
113
+ exploreId: z.ZodString;
114
+ status: z.ZodLiteral<"found">;
115
+ label: z.ZodString;
116
+ description: z.ZodNullable<z.ZodString>;
117
+ hint: z.ZodNullable<z.ZodString>;
118
+ baseTable: z.ZodString;
119
+ joinedTables: z.ZodArray<z.ZodString>;
120
+ requiredFilters: z.ZodArray<z.ZodObject<{
121
+ fieldId: z.ZodString;
122
+ fieldRef: z.ZodString;
123
+ tableName: z.ZodString;
124
+ operator: z.ZodString;
125
+ values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
126
+ settings: z.ZodOptional<z.ZodUnknown>;
127
+ required: z.ZodBoolean;
128
+ }, z.core.$strip>>;
129
+ parameters: z.ZodArray<z.ZodObject<{
130
+ name: z.ZodString;
131
+ label: z.ZodString;
132
+ description: z.ZodNullable<z.ZodString>;
133
+ type: z.ZodEnum<{
134
+ date: "date";
135
+ number: "number";
136
+ string: "string";
137
+ }>;
138
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>;
139
+ multiple: z.ZodBoolean;
140
+ allowCustomValues: z.ZodBoolean;
141
+ options: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
142
+ optionsFromDimension: z.ZodNullable<z.ZodObject<{
143
+ model: z.ZodString;
144
+ dimension: z.ZodString;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>>;
147
+ baseDimensions: z.ZodObject<{
148
+ count: z.ZodNumber;
149
+ fieldIds: z.ZodArray<z.ZodString>;
150
+ }, z.core.$strip>;
151
+ baseMetrics: z.ZodObject<{
152
+ count: z.ZodNumber;
153
+ fieldIds: z.ZodArray<z.ZodString>;
154
+ }, z.core.$strip>;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ exploreId: z.ZodString;
157
+ status: z.ZodLiteral<"not_found">;
158
+ error: z.ZodString;
159
+ }, z.core.$strip>]>>;
160
+ fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
161
+ exploreId: z.ZodString;
162
+ fieldId: z.ZodString;
163
+ status: z.ZodLiteral<"found">;
164
+ kind: z.ZodEnum<{
165
+ dimension: "dimension";
166
+ metric: "metric";
167
+ }>;
168
+ fieldType: z.ZodString;
169
+ label: z.ZodString;
170
+ filterType: z.ZodString;
171
+ isFromJoinedTable: z.ZodBoolean;
172
+ joinedTableName: z.ZodNullable<z.ZodString>;
173
+ caseSensitiveFilters: z.ZodNullable<z.ZodBoolean>;
174
+ defaultTimeDimension: z.ZodNullable<z.ZodString>;
175
+ defaultTimeDimensionGranularity: z.ZodNullable<z.ZodString>;
176
+ requiredParameters: z.ZodArray<z.ZodString>;
177
+ description: z.ZodNullable<z.ZodString>;
178
+ hint: z.ZodNullable<z.ZodString>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ exploreId: z.ZodString;
181
+ fieldId: z.ZodString;
182
+ status: z.ZodLiteral<"not_found">;
183
+ error: z.ZodString;
184
+ }, z.core.$strip>]>>;
185
+ }, z.core.$strip>;
186
+ export declare const toolGetMetadataOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
187
+ result: z.ZodString;
188
+ metadata: z.ZodIntersection<z.ZodObject<{
189
+ status: z.ZodEnum<{
190
+ error: "error";
191
+ success: "success";
192
+ }>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ status: z.ZodEnum<{
195
+ success: "success";
196
+ }>;
197
+ }, z.core.$strip>>;
198
+ structuredContent: z.ZodObject<{
199
+ explores: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
200
+ exploreId: z.ZodString;
201
+ status: z.ZodLiteral<"found">;
202
+ label: z.ZodString;
203
+ description: z.ZodNullable<z.ZodString>;
204
+ hint: z.ZodNullable<z.ZodString>;
205
+ baseTable: z.ZodString;
206
+ joinedTables: z.ZodArray<z.ZodString>;
207
+ requiredFilters: z.ZodArray<z.ZodObject<{
208
+ fieldId: z.ZodString;
209
+ fieldRef: z.ZodString;
210
+ tableName: z.ZodString;
211
+ operator: z.ZodString;
212
+ values: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
213
+ settings: z.ZodOptional<z.ZodUnknown>;
214
+ required: z.ZodBoolean;
215
+ }, z.core.$strip>>;
216
+ parameters: z.ZodArray<z.ZodObject<{
217
+ name: z.ZodString;
218
+ label: z.ZodString;
219
+ description: z.ZodNullable<z.ZodString>;
220
+ type: z.ZodEnum<{
221
+ date: "date";
222
+ number: "number";
223
+ string: "string";
224
+ }>;
225
+ default: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>;
226
+ multiple: z.ZodBoolean;
227
+ allowCustomValues: z.ZodBoolean;
228
+ options: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
229
+ optionsFromDimension: z.ZodNullable<z.ZodObject<{
230
+ model: z.ZodString;
231
+ dimension: z.ZodString;
232
+ }, z.core.$strip>>;
233
+ }, z.core.$strip>>;
234
+ baseDimensions: z.ZodObject<{
235
+ count: z.ZodNumber;
236
+ fieldIds: z.ZodArray<z.ZodString>;
237
+ }, z.core.$strip>;
238
+ baseMetrics: z.ZodObject<{
239
+ count: z.ZodNumber;
240
+ fieldIds: z.ZodArray<z.ZodString>;
241
+ }, z.core.$strip>;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ exploreId: z.ZodString;
244
+ status: z.ZodLiteral<"not_found">;
245
+ error: z.ZodString;
246
+ }, z.core.$strip>]>>;
247
+ fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
248
+ exploreId: z.ZodString;
249
+ fieldId: z.ZodString;
250
+ status: z.ZodLiteral<"found">;
251
+ kind: z.ZodEnum<{
252
+ dimension: "dimension";
253
+ metric: "metric";
254
+ }>;
255
+ fieldType: z.ZodString;
256
+ label: z.ZodString;
257
+ filterType: z.ZodString;
258
+ isFromJoinedTable: z.ZodBoolean;
259
+ joinedTableName: z.ZodNullable<z.ZodString>;
260
+ caseSensitiveFilters: z.ZodNullable<z.ZodBoolean>;
261
+ defaultTimeDimension: z.ZodNullable<z.ZodString>;
262
+ defaultTimeDimensionGranularity: z.ZodNullable<z.ZodString>;
263
+ requiredParameters: z.ZodArray<z.ZodString>;
264
+ description: z.ZodNullable<z.ZodString>;
265
+ hint: z.ZodNullable<z.ZodString>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ exploreId: z.ZodString;
268
+ fieldId: z.ZodString;
269
+ status: z.ZodLiteral<"not_found">;
270
+ error: z.ZodString;
271
+ }, z.core.$strip>]>>;
272
+ }, z.core.$strip>;
273
+ }, z.core.$strip>, z.ZodObject<{
112
274
  result: z.ZodString;
113
- metadata: z.ZodObject<{
275
+ metadata: z.ZodIntersection<z.ZodObject<{
114
276
  status: z.ZodEnum<{
115
277
  error: "error";
116
278
  success: "success";
117
279
  }>;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ status: z.ZodEnum<{
282
+ error: "error";
283
+ }>;
284
+ }, z.core.$strip>>;
285
+ structuredContent: z.ZodObject<{
286
+ error: z.ZodString;
118
287
  }, z.core.$strip>;
119
- }, z.core.$strip>;
288
+ }, z.core.$strip>]>;
120
289
  export type GetMetadataResult = z.infer<typeof getMetadataResultSchema>;
290
+ export type ToolGetMetadataStructuredContent = z.infer<typeof toolGetMetadataStructuredContentSchema>;
121
291
  export type ToolGetMetadataOutput = z.infer<typeof toolGetMetadataOutputSchema>;
122
292
  export {};
123
293
  //# sourceMappingURL=toolGetMetadataArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolGetMetadataArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetMetadataArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA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oB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAqD9E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUlC,CAAC;AAGH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG9C,CAAC;AAEN,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGtC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,sCAAsC,CAChD,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { baseOutputMetadataSchema } from '../outputMetadata';
2
+ import { baseOutputMetadataSchema, structuredToolOutputSchema, } from '../outputMetadata';
3
3
  import { toolNameFor } from './discoveryToolNames';
4
4
  import { findExploresRequiredFilterSchema } from './toolFindExploresArgs';
5
5
  const exploreMetadataGuidanceByRuntime = {
@@ -128,8 +128,10 @@ export const getMetadataResultSchema = z.object({
128
128
  ])),
129
129
  fields: z.array(z.union([getMetadataFieldFoundSchema, getMetadataFieldNotFoundSchema])),
130
130
  });
131
- export const toolGetMetadataOutputSchema = z.object({
132
- result: z.string(),
131
+ // Same shape MCP surfaces as structuredContent, so agent and MCP callers read one contract.
132
+ export const toolGetMetadataStructuredContentSchema = getMetadataResultSchema.describe('One entry per requested explore and per requested field, in request order; a `not_found` entry carries the same error text shown in `result`.');
133
+ export const toolGetMetadataOutputSchema = structuredToolOutputSchema({
133
134
  metadata: baseOutputMetadataSchema,
135
+ structuredContent: toolGetMetadataStructuredContentSchema,
134
136
  });
135
137
  //# sourceMappingURL=toolGetMetadataArgs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolGetMetadataArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolGetMetadataArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,gCAAgC,GAAG;IACrC,KAAK,EAAE,8CAA8C;IACrD,GAAG,EAAE,gEAAgE;CACZ,CAAC;AAE9D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACrC,OAAO,GACc,EAAU,EAAE;IACjC,MAAM,WAAW,GAAG,WAAW,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,WAAW,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IACpE,OAAO,SAAS,WAAW;;;6GAG8E,UAAU,MAAM,UAAU,+CAA+C,WAAW,yEAAyE,gCAAgC,CAAC,OAAO,CAAC;;kBAEjS,UAAU,8FAA8F,aAAa;;;;;CAKtI,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,CAAC;SACR,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GA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,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,KAAK,CAAC;QACJ,6BAA6B;QAC7B,gCAAgC;KACnC,CAAC,CACL;IACD,MAAM,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,CAAC,CACzE;CACJ,CAAC,CAAC;AAEH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,sCAAsC,GAC/C,uBAAuB,CAAC,QAAQ,CAC5B,+IAA+I,CAClJ,CAAC;AAEN,MAAM,CAAC,MAAM,2BAA2B,GAAG,0BAA0B,CAAC;IAClE,QAAQ,EAAE,wBAAwB;IAClC,iBAAiB,EAAE,sCAAsC;CAC5D,CAAC,CAAC"}
@@ -9,6 +9,11 @@ export declare const toolIterateDataAppArgsSchema: z.ZodObject<{
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
11
  }, z.core.$strip>;
12
+ export declare const toolIterateDataAppStructuredContentSchema: z.ZodObject<{
13
+ status: z.ZodLiteral<"pending">;
14
+ appUuid: z.ZodString;
15
+ version: z.ZodNumber;
16
+ }, z.core.$strip>;
12
17
  export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
13
18
  result: z.ZodString;
14
19
  metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -32,8 +37,16 @@ export declare const toolIterateDataAppOutputSchema: z.ZodObject<{
32
37
  }>;
33
38
  message: z.ZodString;
34
39
  }, z.core.$strip>], "status">;
40
+ structuredContent: z.ZodUnion<readonly [z.ZodObject<{
41
+ status: z.ZodLiteral<"pending">;
42
+ appUuid: z.ZodString;
43
+ version: z.ZodNumber;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ error: z.ZodString;
46
+ }, z.core.$strip>]>;
35
47
  }, z.core.$strip>;
36
48
  export type ToolIterateDataAppArgs = z.infer<typeof toolIterateDataAppArgsSchema>;
49
+ export type ToolIterateDataAppStructuredContent = z.infer<typeof toolIterateDataAppStructuredContentSchema>;
37
50
  export type ToolIterateDataAppOutput = z.infer<typeof toolIterateDataAppOutputSchema>;
38
51
  export declare const isToolIterateDataAppResult: <T extends {
39
52
  toolType: string;
@@ -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;AAExB,OAAO,EAMH,KAAK,yBAAyB,EACjC,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,iCAAiC,QAOnC,CAAC;AAEZ,eAAO,MAAM,qCAAqC,yuDAuBjD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;iBAgCvC,CAAC;AAIH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAE9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,4BAA4B,CACtC,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,y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2
+ import { toolErrorStructuredContentSchema } from '../outputMetadata';
2
3
  import { makeBuiltInToolResultGuard } from './builtInToolResultGuard';
3
4
  import { DATA_APP_BUILD_POLL_INTERVAL_MS, DATA_APP_THEME_SLUG_DESCRIPTION, isToolGenerateDataAppResult, MCP_DATA_APP_AGENT_SCOPE_GUIDANCE, toolGenerateDataAppOutputSchema, } from './toolGenerateDataAppArgs';
4
5
  export const TOOL_ITERATE_DATA_APP_DESCRIPTION = [
@@ -54,9 +55,27 @@ export const toolIterateDataAppArgsSchema = z.object({
54
55
  .default(null)
55
56
  .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.`),
56
57
  });
58
+ export const toolIterateDataAppStructuredContentSchema = z.object({
59
+ status: z
60
+ .literal('pending')
61
+ .describe('The build has started and runs in the background; its outcome lands on this result later.'),
62
+ appUuid: z.string().describe('UUID of the data app being changed.'),
63
+ version: z
64
+ .number()
65
+ .describe('Version number of the data app that this build creates.'),
66
+ });
57
67
  // The iterate tool shares the create tool's outcome contract: same pending,
58
- // success, and error shapes, patched by the same build outcome recording.
59
- export const toolIterateDataAppOutputSchema = toolGenerateDataAppOutputSchema;
68
+ // success, and error metadata, patched by the same build outcome recording.
69
+ // Built by hand because that metadata is a discriminated union, which
70
+ // structuredToolOutputSchema does not accept.
71
+ export const toolIterateDataAppOutputSchema = z.object({
72
+ result: z.string(),
73
+ metadata: toolGenerateDataAppOutputSchema.shape.metadata,
74
+ structuredContent: z.union([
75
+ toolIterateDataAppStructuredContentSchema,
76
+ toolErrorStructuredContentSchema,
77
+ ]),
78
+ });
60
79
  export const isToolIterateDataAppResult = makeBuiltInToolResultGuard('iterateDataApp', toolGenerateDataAppOutputSchema.shape.metadata);
61
80
  /** A data app build result from either the create or the iterate tool. */
62
81
  export const isToolDataAppBuildResult = (result) => isToolGenerateDataAppResult(result) || isToolIterateDataAppResult(result);
@@ -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,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;CACrP,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,qCAAqC,GAAG;;;;;;;;yKASjD,+BAA+B,GAAG,IACtC;;EAEE,iCAAiC;;;;;;;;;;;CAWlC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,yHAAyH,CAC5H;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,yXAAyX,CAC5X;IACL,aAAa,EAAE,CAAC;SACX,MAAM,EAAE;SACR,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,4NAA4N,CAC/N;IACL,UAAU,EAAE,CAAC;SACR,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,uKAAuK,CAC1K;IACL,SAAS,EAAE,CAAC;SACP,MAAM,EAAE;SACR,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,GAAG,+BAA+B,kKAAkK,CACvM;CACR,CAAC,CAAC;AAEH,4EAA4E;AAC5E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,+BAA+B,CAAC;AAU9E,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"}
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;CACrP,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,qCAAqC,GAAG;;;;;;;;yKASjD,+BAA+B,GAAG,IACtC;;EAEE,iCAAiC;;;;;;;;;;;CAWlC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CACL,yHAAyH,CAC5H;IACL,MAAM,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACL,yXAAyX,CAC5X;IAC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,EAKX,EAAE,CAAC,2BAA2B,CAAC,MAAM,CAAC,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "2.355.0",
3
+ "version": "2.356.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",