@magemetrics/ai 0.5.2 → 0.5.4

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.
@@ -70,6 +70,7 @@ export declare interface Components {
70
70
  getCanvasShareableLink?: (canvasId: string) => string;
71
71
  }
72
72
 
73
+ /** @deprecated This type is no longer used and will be removed in a future version. */
73
74
  declare type ControlledModalProps = {
74
75
  visible: boolean;
75
76
  onClose: () => void;
@@ -209,7 +210,6 @@ declare const FrontendReportColumnsSchema: z.ZodArray<z.ZodObject<{
209
210
  declare type FrontendReportExplainability = z.infer<typeof FrontendReportExplainabilitySchema>;
210
211
 
211
212
  declare const FrontendReportExplainabilitySchema: z.ZodObject<{
212
- flow_data_id: z.ZodNumber;
213
213
  sql_explanation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
214
214
  chunk_title: z.ZodString;
215
215
  chunk_explanation: z.ZodString;
@@ -257,6 +257,7 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<{
257
257
  assumptions_score_reason: z.ZodOptional<z.ZodString>;
258
258
  friendliness_score: z.ZodOptional<z.ZodNumber>;
259
259
  friendliness_score_reason: z.ZodOptional<z.ZodString>;
260
+ flow_data_id: z.ZodNumber;
260
261
  }, z.core.$strip>;
261
262
 
262
263
  declare const FrontendReportSchema: z.ZodObject<{
@@ -267,7 +268,14 @@ declare const FrontendReportSchema: z.ZodObject<{
267
268
  created_at: z.ZodString;
268
269
  is_removed: z.ZodBoolean;
269
270
  flow_id: z.ZodString;
270
- bookmarked: z.ZodBoolean;
271
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
272
+ last_materialized_at: z.ZodNullable<z.ZodString>;
273
+ materialized_error_message: z.ZodNullable<z.ZodString>;
274
+ materialized_status: z.ZodNullable<z.ZodEnum<{
275
+ running: "running";
276
+ completed: "completed";
277
+ failed: "failed";
278
+ }>>;
271
279
  data_summary: z.ZodObject<{
272
280
  columns: z.ZodRecord<z.ZodString, z.ZodObject<{
273
281
  position: z.ZodOptional<z.ZodNumber>;
@@ -277,6 +285,7 @@ declare const FrontendReportSchema: z.ZodObject<{
277
285
  unique_percentage: z.ZodNullable<z.ZodNumber>;
278
286
  }, z.core.$loose>>;
279
287
  }, z.core.$loose>;
288
+ bookmarked: z.ZodBoolean;
280
289
  }, z.core.$strip>;
281
290
 
282
291
  declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema>;
@@ -284,8 +293,18 @@ declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema
284
293
  declare const FrontendVisualizationSchema: z.ZodObject<{
285
294
  id: z.ZodNumber;
286
295
  created_at: z.ZodString;
287
- flow_data_id: z.ZodNumber;
288
296
  bookmarked: z.ZodBoolean;
297
+ flow_data_id: z.ZodNumber;
298
+ flow_data: z.ZodOptional<z.ZodObject<{
299
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
300
+ last_materialized_at: z.ZodNullable<z.ZodString>;
301
+ materialized_error_message: z.ZodNullable<z.ZodString>;
302
+ materialized_status: z.ZodNullable<z.ZodEnum<{
303
+ running: "running";
304
+ completed: "completed";
305
+ failed: "failed";
306
+ }>>;
307
+ }, z.core.$strip>>;
289
308
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
290
309
  config_version: z.ZodLiteral<2>;
291
310
  xAxisLabel: z.ZodString;
@@ -393,10 +412,18 @@ declare interface ManagedModalProps extends ModalProps {
393
412
  components?: Components;
394
413
  /** Application name to associate with flows created through this modal */
395
414
  applicationName?: string;
415
+ /** Callbacks for various events */
416
+ callbacks?: {
417
+ /** Callback fired when the conversation modal is opened */
418
+ onConversationOpen?: () => void;
419
+ };
396
420
  }
397
421
 
398
422
  declare interface ModalProps {
399
- /** Control modal visibility and close behavior externally */
423
+ /**
424
+ * @deprecated This prop is no longer used and will be removed in a future version.
425
+ * Control modal visibility and close behavior externally
426
+ */
400
427
  modal?: ControlledModalProps;
401
428
  /** Configuration options for the start modal (chat launcher, recommendations, etc.) */
402
429
  startOptions?: StartOptions;
@@ -1008,8 +1035,18 @@ declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSc
1008
1035
  declare const V1FrontendVisualizationSchema: z.ZodObject<{
1009
1036
  id: z.ZodNumber;
1010
1037
  created_at: z.ZodString;
1011
- flow_data_id: z.ZodNumber;
1012
1038
  bookmarked: z.ZodBoolean;
1039
+ flow_data_id: z.ZodNumber;
1040
+ flow_data: z.ZodOptional<z.ZodObject<{
1041
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
1042
+ last_materialized_at: z.ZodNullable<z.ZodString>;
1043
+ materialized_error_message: z.ZodNullable<z.ZodString>;
1044
+ materialized_status: z.ZodNullable<z.ZodEnum<{
1045
+ running: "running";
1046
+ completed: "completed";
1047
+ failed: "failed";
1048
+ }>>;
1049
+ }, z.core.$strip>>;
1013
1050
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1014
1051
  xAxisLabel: z.ZodString;
1015
1052
  yAxisLabel: z.ZodString;