@lightdash/common 0.1698.5 → 0.1699.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.
@@ -260,8 +260,8 @@ export declare const FilterGroupSchema: z.ZodUnion<[z.ZodObject<{
260
260
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
261
261
  })[];
262
262
  }>]>;
263
- export declare const FilterSchema: z.ZodObject<{
264
- dimensions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
263
+ export declare const filterSchema: z.ZodObject<{
264
+ dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
265
265
  id: z.ZodString;
266
266
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
267
267
  id: z.ZodString;
@@ -518,7 +518,7 @@ export declare const FilterSchema: z.ZodObject<{
518
518
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
519
519
  })[];
520
520
  }>]>>;
521
- metrics: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
521
+ metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
522
522
  id: z.ZodString;
523
523
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
524
524
  id: z.ZodString;
@@ -776,7 +776,7 @@ export declare const FilterSchema: z.ZodObject<{
776
776
  })[];
777
777
  }>]>>;
778
778
  }, "strip", z.ZodTypeAny, {
779
- dimensions?: {
779
+ dimensions: {
780
780
  id: string;
781
781
  and: ({
782
782
  values: (string | number | boolean | null)[];
@@ -822,8 +822,8 @@ export declare const FilterSchema: z.ZodObject<{
822
822
  };
823
823
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
824
824
  })[];
825
- } | undefined;
826
- metrics?: {
825
+ } | null;
826
+ metrics: {
827
827
  id: string;
828
828
  and: ({
829
829
  values: (string | number | boolean | null)[];
@@ -869,9 +869,9 @@ export declare const FilterSchema: z.ZodObject<{
869
869
  };
870
870
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
871
871
  })[];
872
- } | undefined;
872
+ } | null;
873
873
  }, {
874
- dimensions?: {
874
+ dimensions: {
875
875
  id: string;
876
876
  and: ({
877
877
  values: (string | number | boolean | null)[];
@@ -917,8 +917,8 @@ export declare const FilterSchema: z.ZodObject<{
917
917
  };
918
918
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
919
919
  })[];
920
- } | undefined;
921
- metrics?: {
920
+ } | null;
921
+ metrics: {
922
922
  id: string;
923
923
  and: ({
924
924
  values: (string | number | boolean | null)[];
@@ -964,8 +964,9 @@ export declare const FilterSchema: z.ZodObject<{
964
964
  };
965
965
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
966
966
  })[];
967
- } | undefined;
967
+ } | null;
968
968
  }>;
969
+ export type FilterSchemaType = z.infer<typeof filterSchema>;
969
970
  export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
970
971
  exploreName: z.ZodString;
971
972
  filterGroup: z.ZodUnion<[z.ZodObject<{
@@ -1326,20 +1327,20 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1326
1327
  }>;
1327
1328
  export declare const SortFieldSchema: z.ZodObject<{
1328
1329
  fieldId: z.ZodString;
1329
- descending: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1330
+ descending: z.ZodBoolean;
1330
1331
  }, "strip", z.ZodTypeAny, {
1331
1332
  descending: boolean;
1332
1333
  fieldId: string;
1333
1334
  }, {
1335
+ descending: boolean;
1334
1336
  fieldId: string;
1335
- descending?: boolean | undefined;
1336
1337
  }>;
1337
1338
  export declare const lighterMetricQuerySchema: z.ZodObject<{
1338
1339
  exploreName: z.ZodString;
1339
1340
  metrics: z.ZodArray<z.ZodString, "many">;
1340
1341
  dimensions: z.ZodArray<z.ZodString, "many">;
1341
1342
  filters: z.ZodObject<{
1342
- dimensions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1343
+ dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1343
1344
  id: z.ZodString;
1344
1345
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1345
1346
  id: z.ZodString;
@@ -1596,7 +1597,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1596
1597
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1597
1598
  })[];
1598
1599
  }>]>>;
1599
- metrics: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1600
+ metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1600
1601
  id: z.ZodString;
1601
1602
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1602
1603
  id: z.ZodString;
@@ -1854,7 +1855,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1854
1855
  })[];
1855
1856
  }>]>>;
1856
1857
  }, "strip", z.ZodTypeAny, {
1857
- dimensions?: {
1858
+ dimensions: {
1858
1859
  id: string;
1859
1860
  and: ({
1860
1861
  values: (string | number | boolean | null)[];
@@ -1900,8 +1901,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1900
1901
  };
1901
1902
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1902
1903
  })[];
1903
- } | undefined;
1904
- metrics?: {
1904
+ } | null;
1905
+ metrics: {
1905
1906
  id: string;
1906
1907
  and: ({
1907
1908
  values: (string | number | boolean | null)[];
@@ -1947,9 +1948,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1947
1948
  };
1948
1949
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1949
1950
  })[];
1950
- } | undefined;
1951
+ } | null;
1951
1952
  }, {
1952
- dimensions?: {
1953
+ dimensions: {
1953
1954
  id: string;
1954
1955
  and: ({
1955
1956
  values: (string | number | boolean | null)[];
@@ -1995,8 +1996,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1995
1996
  };
1996
1997
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1997
1998
  })[];
1998
- } | undefined;
1999
- metrics?: {
1999
+ } | null;
2000
+ metrics: {
2000
2001
  id: string;
2001
2002
  and: ({
2002
2003
  values: (string | number | boolean | null)[];
@@ -2042,22 +2043,22 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2042
2043
  };
2043
2044
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2044
2045
  })[];
2045
- } | undefined;
2046
+ } | null;
2046
2047
  }>;
2047
2048
  sorts: z.ZodArray<z.ZodObject<{
2048
2049
  fieldId: z.ZodString;
2049
- descending: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2050
+ descending: z.ZodBoolean;
2050
2051
  }, "strip", z.ZodTypeAny, {
2051
2052
  descending: boolean;
2052
2053
  fieldId: string;
2053
2054
  }, {
2055
+ descending: boolean;
2054
2056
  fieldId: string;
2055
- descending?: boolean | undefined;
2056
2057
  }>, "many">;
2057
2058
  limit: z.ZodNumber;
2058
2059
  }, "strip", z.ZodTypeAny, {
2059
2060
  filters: {
2060
- dimensions?: {
2061
+ dimensions: {
2061
2062
  id: string;
2062
2063
  and: ({
2063
2064
  values: (string | number | boolean | null)[];
@@ -2103,8 +2104,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2103
2104
  };
2104
2105
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2105
2106
  })[];
2106
- } | undefined;
2107
- metrics?: {
2107
+ } | null;
2108
+ metrics: {
2108
2109
  id: string;
2109
2110
  and: ({
2110
2111
  values: (string | number | boolean | null)[];
@@ -2150,7 +2151,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2150
2151
  };
2151
2152
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2152
2153
  })[];
2153
- } | undefined;
2154
+ } | null;
2154
2155
  };
2155
2156
  exploreName: string;
2156
2157
  dimensions: string[];
@@ -2162,7 +2163,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2162
2163
  limit: number;
2163
2164
  }, {
2164
2165
  filters: {
2165
- dimensions?: {
2166
+ dimensions: {
2166
2167
  id: string;
2167
2168
  and: ({
2168
2169
  values: (string | number | boolean | null)[];
@@ -2208,8 +2209,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2208
2209
  };
2209
2210
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2210
2211
  })[];
2211
- } | undefined;
2212
- metrics?: {
2212
+ } | null;
2213
+ metrics: {
2213
2214
  id: string;
2214
2215
  and: ({
2215
2216
  values: (string | number | boolean | null)[];
@@ -2255,14 +2256,14 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2255
2256
  };
2256
2257
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2257
2258
  })[];
2258
- } | undefined;
2259
+ } | null;
2259
2260
  };
2260
2261
  exploreName: string;
2261
2262
  dimensions: string[];
2262
2263
  metrics: string[];
2263
2264
  sorts: {
2265
+ descending: boolean;
2264
2266
  fieldId: string;
2265
- descending?: boolean | undefined;
2266
2267
  }[];
2267
2268
  limit: number;
2268
2269
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/ee/Ai/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,eAAO,MAAM,aAAa,aAOrB,CAAC;AAoIN,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDnC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;EAI9C,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.aiFindFieldsToolSchema = exports.aiSummarySchema = exports.aiAskForAdditionalInformationSchema = exports.lighterMetricQuerySchema = exports.SortFieldSchema = exports.GenerateQueryFiltersToolSchema = exports.FilterSchema = exports.FilterGroupSchema = exports.FieldIdSchema = void 0;
3
+ exports.aiFindFieldsToolSchema = exports.aiSummarySchema = exports.aiAskForAdditionalInformationSchema = exports.lighterMetricQuerySchema = exports.SortFieldSchema = exports.GenerateQueryFiltersToolSchema = exports.filterSchema = exports.FilterGroupSchema = exports.FieldIdSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const conditionalRule_1 = require("../../types/conditionalRule");
6
6
  const field_1 = require("../../types/field");
@@ -117,9 +117,12 @@ exports.FilterGroupSchema = zod_1.z.union([
117
117
  AndFilterGroupSchema,
118
118
  OrFilterGroupSchema,
119
119
  ]);
120
- exports.FilterSchema = zod_1.z.object({
121
- dimensions: exports.FilterGroupSchema.optional(),
122
- metrics: exports.FilterGroupSchema.optional(),
120
+ // TODO: This schema was designed to closely match the existing filter types,
121
+ // but LLM providers require that all fields be explicitly defined and present.
122
+ // https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#all-fields-must-be-required
123
+ exports.filterSchema = zod_1.z.object({
124
+ dimensions: exports.FilterGroupSchema.nullable(),
125
+ metrics: exports.FilterGroupSchema.nullable(),
123
126
  });
124
127
  exports.GenerateQueryFiltersToolSchema = zod_1.z.object({
125
128
  exploreName: zod_1.z.string().describe('Name of the selected explore'),
@@ -129,9 +132,7 @@ exports.SortFieldSchema = zod_1.z.object({
129
132
  fieldId: exports.FieldIdSchema.describe('"fieldId" must come from the selected Metrics or Dimensions; otherwise, it will throw an error.'),
130
133
  descending: zod_1.z
131
134
  .boolean()
132
- .optional()
133
- .default(true)
134
- .describe('(optional, default true). If true sorts in descending order, if false sorts in ascending order'),
135
+ .describe('If true sorts in descending order, if false sorts in ascending order'),
135
136
  });
136
137
  // export const CompactOrAliasSchema = z
137
138
  // .nativeEnum(Compact)
@@ -140,28 +141,28 @@ exports.SortFieldSchema = zod_1.z.object({
140
141
  // type: z.nativeEnum(CustomFormatType).describe('Type of custom format'),
141
142
  // round: z
142
143
  // .number()
143
- // .optional()
144
+ // .nullable()
144
145
  // .describe('Number of decimal places to round to'),
145
146
  // separator: z
146
147
  // .nativeEnum(NumberSeparator)
147
- // .optional()
148
+ // .nullable()
148
149
  // .describe('Separator for thousands'),
149
150
  // // TODO: this should be enum but currencies is loosely typed
150
- // currency: z.string().optional().describe('Three-letter currency code'),
151
- // compact: CompactOrAliasSchema.optional().describe('Compact number format'),
152
- // prefix: z.string().optional().describe('Prefix to add to the number'),
153
- // suffix: z.string().optional().describe('Suffix to add to the number'),
151
+ // currency: z.string().nullable().describe('Three-letter currency code'),
152
+ // compact: CompactOrAliasSchema.nullable().describe('Compact number format'),
153
+ // prefix: z.string().nullable().describe('Prefix to add to the number'),
154
+ // suffix: z.string().nullable().describe('Suffix to add to the number'),
154
155
  // });
155
156
  // export const TableCalculationSchema = z.object({
156
157
  // // TODO: I don't know what this is
157
- // index: z.number().optional().describe('Index of the table calculation'),
158
+ // index: z.number().nullable().describe('Index of the table calculation'),
158
159
  // name: z.string().min(1).describe('Name of the table calculation'),
159
160
  // displayName: z
160
161
  // .string()
161
162
  // .min(1)
162
163
  // .describe('Display name of the table calculation'),
163
164
  // sql: z.string().min(1).describe('SQL for the table calculation'),
164
- // format: CustomFormatSchema.optional().describe(
165
+ // format: CustomFormatSchema.nullable().describe(
165
166
  // 'Format of the table calculation',
166
167
  // ),
167
168
  // });
@@ -176,7 +177,7 @@ exports.lighterMetricQuerySchema = zod_1.z.object({
176
177
  dimensions: zod_1.z
177
178
  .array(exports.FieldIdSchema)
178
179
  .describe('Dimensions to break down the metric into groups. @example: ["orders_status", "customers_first_name"]'),
179
- filters: exports.FilterSchema.describe('Filters to apply to the query'),
180
+ filters: exports.filterSchema.describe('Filters to apply to the query'),
180
181
  sorts: zod_1.z
181
182
  .array(exports.SortFieldSchema)
182
183
  .describe('Sort configuration for the MetricQuery. Should be an empty array if no sorting is needed'),
@@ -194,7 +195,7 @@ exports.lighterMetricQuerySchema = zod_1.z.object({
194
195
  // additionalMetrics: z
195
196
  // .array(z.unknown())
196
197
  // .max(0)
197
- // .optional()
198
+ // .nullable()
198
199
  // .describe(
199
200
  // 'Additional metrics to compute in the explore - not supported yet',
200
201
  // ),
@@ -202,7 +203,7 @@ exports.lighterMetricQuerySchema = zod_1.z.object({
202
203
  // customDimensions: z
203
204
  // .array(z.unknown())
204
205
  // .max(0)
205
- // .optional()
206
+ // .nullable()
206
207
  // .describe('Custom dimensions to group by in the explore'),
207
208
  // metadata: z
208
209
  // .object({
@@ -212,7 +213,7 @@ exports.lighterMetricQuerySchema = zod_1.z.object({
212
213
  // name: z.string().describe('Name of the date dimension'),
213
214
  // }),
214
215
  // })
215
- // .optional()
216
+ // .nullable()
216
217
  // .describe('Metadata about the query'),
217
218
  });
218
219
  exports.aiAskForAdditionalInformationSchema = zod_1.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/ee/Ai/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAkE;AAClE,6CAA8D;AAC9D,+CAAgD;AAEhD,6GAA6G;AAC7G,uGAAuG;AAE1F,QAAA,aAAa,GAAG,OAAC;KACzB,MAAM,EAAE;KACR,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ST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
261
261
  })[];
262
262
  }>]>;
263
- export declare const FilterSchema: z.ZodObject<{
264
- dimensions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
263
+ export declare const filterSchema: z.ZodObject<{
264
+ dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
265
265
  id: z.ZodString;
266
266
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
267
267
  id: z.ZodString;
@@ -518,7 +518,7 @@ export declare const FilterSchema: z.ZodObject<{
518
518
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
519
519
  })[];
520
520
  }>]>>;
521
- metrics: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
521
+ metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
522
522
  id: z.ZodString;
523
523
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
524
524
  id: z.ZodString;
@@ -776,7 +776,7 @@ export declare const FilterSchema: z.ZodObject<{
776
776
  })[];
777
777
  }>]>>;
778
778
  }, "strip", z.ZodTypeAny, {
779
- dimensions?: {
779
+ dimensions: {
780
780
  id: string;
781
781
  and: ({
782
782
  values: (string | number | boolean | null)[];
@@ -822,8 +822,8 @@ export declare const FilterSchema: z.ZodObject<{
822
822
  };
823
823
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
824
824
  })[];
825
- } | undefined;
826
- metrics?: {
825
+ } | null;
826
+ metrics: {
827
827
  id: string;
828
828
  and: ({
829
829
  values: (string | number | boolean | null)[];
@@ -869,9 +869,9 @@ export declare const FilterSchema: z.ZodObject<{
869
869
  };
870
870
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
871
871
  })[];
872
- } | undefined;
872
+ } | null;
873
873
  }, {
874
- dimensions?: {
874
+ dimensions: {
875
875
  id: string;
876
876
  and: ({
877
877
  values: (string | number | boolean | null)[];
@@ -917,8 +917,8 @@ export declare const FilterSchema: z.ZodObject<{
917
917
  };
918
918
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
919
919
  })[];
920
- } | undefined;
921
- metrics?: {
920
+ } | null;
921
+ metrics: {
922
922
  id: string;
923
923
  and: ({
924
924
  values: (string | number | boolean | null)[];
@@ -964,8 +964,9 @@ export declare const FilterSchema: z.ZodObject<{
964
964
  };
965
965
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
966
966
  })[];
967
- } | undefined;
967
+ } | null;
968
968
  }>;
969
+ export type FilterSchemaType = z.infer<typeof filterSchema>;
969
970
  export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
970
971
  exploreName: z.ZodString;
971
972
  filterGroup: z.ZodUnion<[z.ZodObject<{
@@ -1326,20 +1327,20 @@ export declare const GenerateQueryFiltersToolSchema: z.ZodObject<{
1326
1327
  }>;
1327
1328
  export declare const SortFieldSchema: z.ZodObject<{
1328
1329
  fieldId: z.ZodString;
1329
- descending: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1330
+ descending: z.ZodBoolean;
1330
1331
  }, "strip", z.ZodTypeAny, {
1331
1332
  descending: boolean;
1332
1333
  fieldId: string;
1333
1334
  }, {
1335
+ descending: boolean;
1334
1336
  fieldId: string;
1335
- descending?: boolean | undefined;
1336
1337
  }>;
1337
1338
  export declare const lighterMetricQuerySchema: z.ZodObject<{
1338
1339
  exploreName: z.ZodString;
1339
1340
  metrics: z.ZodArray<z.ZodString, "many">;
1340
1341
  dimensions: z.ZodArray<z.ZodString, "many">;
1341
1342
  filters: z.ZodObject<{
1342
- dimensions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1343
+ dimensions: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1343
1344
  id: z.ZodString;
1344
1345
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1345
1346
  id: z.ZodString;
@@ -1596,7 +1597,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1596
1597
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1597
1598
  })[];
1598
1599
  }>]>>;
1599
- metrics: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1600
+ metrics: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1600
1601
  id: z.ZodString;
1601
1602
  and: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1602
1603
  id: z.ZodString;
@@ -1854,7 +1855,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1854
1855
  })[];
1855
1856
  }>]>>;
1856
1857
  }, "strip", z.ZodTypeAny, {
1857
- dimensions?: {
1858
+ dimensions: {
1858
1859
  id: string;
1859
1860
  and: ({
1860
1861
  values: (string | number | boolean | null)[];
@@ -1900,8 +1901,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1900
1901
  };
1901
1902
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1902
1903
  })[];
1903
- } | undefined;
1904
- metrics?: {
1904
+ } | null;
1905
+ metrics: {
1905
1906
  id: string;
1906
1907
  and: ({
1907
1908
  values: (string | number | boolean | null)[];
@@ -1947,9 +1948,9 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1947
1948
  };
1948
1949
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1949
1950
  })[];
1950
- } | undefined;
1951
+ } | null;
1951
1952
  }, {
1952
- dimensions?: {
1953
+ dimensions: {
1953
1954
  id: string;
1954
1955
  and: ({
1955
1956
  values: (string | number | boolean | null)[];
@@ -1995,8 +1996,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
1995
1996
  };
1996
1997
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
1997
1998
  })[];
1998
- } | undefined;
1999
- metrics?: {
1999
+ } | null;
2000
+ metrics: {
2000
2001
  id: string;
2001
2002
  and: ({
2002
2003
  values: (string | number | boolean | null)[];
@@ -2042,22 +2043,22 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2042
2043
  };
2043
2044
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2044
2045
  })[];
2045
- } | undefined;
2046
+ } | null;
2046
2047
  }>;
2047
2048
  sorts: z.ZodArray<z.ZodObject<{
2048
2049
  fieldId: z.ZodString;
2049
- descending: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2050
+ descending: z.ZodBoolean;
2050
2051
  }, "strip", z.ZodTypeAny, {
2051
2052
  descending: boolean;
2052
2053
  fieldId: string;
2053
2054
  }, {
2055
+ descending: boolean;
2054
2056
  fieldId: string;
2055
- descending?: boolean | undefined;
2056
2057
  }>, "many">;
2057
2058
  limit: z.ZodNumber;
2058
2059
  }, "strip", z.ZodTypeAny, {
2059
2060
  filters: {
2060
- dimensions?: {
2061
+ dimensions: {
2061
2062
  id: string;
2062
2063
  and: ({
2063
2064
  values: (string | number | boolean | null)[];
@@ -2103,8 +2104,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2103
2104
  };
2104
2105
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2105
2106
  })[];
2106
- } | undefined;
2107
- metrics?: {
2107
+ } | null;
2108
+ metrics: {
2108
2109
  id: string;
2109
2110
  and: ({
2110
2111
  values: (string | number | boolean | null)[];
@@ -2150,7 +2151,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2150
2151
  };
2151
2152
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2152
2153
  })[];
2153
- } | undefined;
2154
+ } | null;
2154
2155
  };
2155
2156
  exploreName: string;
2156
2157
  dimensions: string[];
@@ -2162,7 +2163,7 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2162
2163
  limit: number;
2163
2164
  }, {
2164
2165
  filters: {
2165
- dimensions?: {
2166
+ dimensions: {
2166
2167
  id: string;
2167
2168
  and: ({
2168
2169
  values: (string | number | boolean | null)[];
@@ -2208,8 +2209,8 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2208
2209
  };
2209
2210
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2210
2211
  })[];
2211
- } | undefined;
2212
- metrics?: {
2212
+ } | null;
2213
+ metrics: {
2213
2214
  id: string;
2214
2215
  and: ({
2215
2216
  values: (string | number | boolean | null)[];
@@ -2255,14 +2256,14 @@ export declare const lighterMetricQuerySchema: z.ZodObject<{
2255
2256
  };
2256
2257
  operator: ConditionalOperator.IN_THE_PAST | ConditionalOperator.NOT_IN_THE_PAST | ConditionalOperator.IN_THE_NEXT | ConditionalOperator.IN_THE_CURRENT | ConditionalOperator.NOT_IN_THE_CURRENT;
2257
2258
  })[];
2258
- } | undefined;
2259
+ } | null;
2259
2260
  };
2260
2261
  exploreName: string;
2261
2262
  dimensions: string[];
2262
2263
  metrics: string[];
2263
2264
  sorts: {
2265
+ descending: boolean;
2264
2266
  fieldId: string;
2265
- descending?: boolean | undefined;
2266
2267
  }[];
2267
2268
  limit: number;
2268
2269
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/ee/Ai/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,eAAO,MAAM,aAAa,aAOrB,CAAC;AAoIN,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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