@magemetrics/ai 0.6.1 → 0.7.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.
@@ -80,6 +80,7 @@ export declare interface ChatInputContextValue {
80
80
  isLoading: boolean;
81
81
  isStreaming: boolean;
82
82
  isError: boolean;
83
+ isAwaitingUserAnswer: boolean;
83
84
  onRetry?: () => void;
84
85
  onStop?: () => void;
85
86
  sendMessage: (text: string, isEditing: boolean) => void;
@@ -293,6 +294,30 @@ declare const FrontendReportColumnsSchema: z.ZodArray<z.ZodObject<{
293
294
  declare type FrontendReportExplainability = z.infer<typeof FrontendReportExplainabilitySchema>;
294
295
 
295
296
  declare const FrontendReportExplainabilitySchema: z.ZodObject<{
297
+ confidence_score: z.ZodNumber;
298
+ confidence_score_reason: z.ZodString;
299
+ assumptions_score: z.ZodOptional<z.ZodNumber>;
300
+ assumptions_score_reason: z.ZodOptional<z.ZodString>;
301
+ friendliness_score: z.ZodOptional<z.ZodNumber>;
302
+ friendliness_score_reason: z.ZodOptional<z.ZodString>;
303
+ columns_lineage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
304
+ nodes: z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ type: z.ZodEnum<{
307
+ result: "result";
308
+ filter: "filter";
309
+ entity: "entity";
310
+ attribute: "attribute";
311
+ process: "process";
312
+ combine: "combine";
313
+ }>;
314
+ explanation: z.ZodString;
315
+ }, z.core.$strip>>;
316
+ edges: z.ZodArray<z.ZodObject<{
317
+ source: z.ZodString;
318
+ target: z.ZodString;
319
+ }, z.core.$strip>>;
320
+ }, z.core.$strip>>>>;
296
321
  sql_explanation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
297
322
  chunk_title: z.ZodString;
298
323
  chunk_explanation: z.ZodString;
@@ -316,30 +341,6 @@ declare const FrontendReportExplainabilitySchema: z.ZodObject<{
316
341
  explanation: z.ZodString;
317
342
  }, z.core.$strip>>;
318
343
  }, z.core.$strip>>>;
319
- columns_lineage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
320
- nodes: z.ZodArray<z.ZodObject<{
321
- id: z.ZodString;
322
- type: z.ZodEnum<{
323
- result: "result";
324
- filter: "filter";
325
- entity: "entity";
326
- attribute: "attribute";
327
- process: "process";
328
- combine: "combine";
329
- }>;
330
- explanation: z.ZodString;
331
- }, z.core.$strip>>;
332
- edges: z.ZodArray<z.ZodObject<{
333
- source: z.ZodString;
334
- target: z.ZodString;
335
- }, z.core.$strip>>;
336
- }, z.core.$strip>>>>;
337
- confidence_score: z.ZodNumber;
338
- confidence_score_reason: z.ZodString;
339
- assumptions_score: z.ZodOptional<z.ZodNumber>;
340
- assumptions_score_reason: z.ZodOptional<z.ZodString>;
341
- friendliness_score: z.ZodOptional<z.ZodNumber>;
342
- friendliness_score_reason: z.ZodOptional<z.ZodString>;
343
344
  flow_data_id: z.ZodNumber;
344
345
  output_dataset: z.ZodOptional<z.ZodString>;
345
346
  sql: z.ZodOptional<z.ZodString>;
@@ -351,16 +352,6 @@ declare const FrontendReportSchema: z.ZodObject<{
351
352
  id: z.ZodNumber;
352
353
  request: z.ZodNullable<z.ZodString>;
353
354
  created_at: z.ZodString;
354
- is_removed: z.ZodBoolean;
355
- flow_id: z.ZodString;
356
- is_materialized: z.ZodNullable<z.ZodBoolean>;
357
- last_materialized_at: z.ZodNullable<z.ZodString>;
358
- materialized_error_message: z.ZodNullable<z.ZodString>;
359
- materialized_status: z.ZodNullable<z.ZodEnum<{
360
- running: "running";
361
- completed: "completed";
362
- failed: "failed";
363
- }>>;
364
355
  data_summary: z.ZodObject<{
365
356
  columns: z.ZodRecord<z.ZodString, z.ZodObject<{
366
357
  position: z.ZodOptional<z.ZodNumber>;
@@ -380,6 +371,16 @@ declare const FrontendReportSchema: z.ZodObject<{
380
371
  avg_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
381
372
  }, z.core.$loose>>;
382
373
  }, z.core.$loose>;
374
+ is_removed: z.ZodBoolean;
375
+ flow_id: z.ZodString;
376
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
377
+ last_materialized_at: z.ZodNullable<z.ZodString>;
378
+ materialized_error_message: z.ZodNullable<z.ZodString>;
379
+ materialized_status: z.ZodNullable<z.ZodEnum<{
380
+ running: "running";
381
+ completed: "completed";
382
+ failed: "failed";
383
+ }>>;
383
384
  bookmarked: z.ZodBoolean;
384
385
  }, z.core.$strip>;
385
386
 
@@ -387,19 +388,6 @@ declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema
387
388
 
388
389
  declare const FrontendVisualizationSchema: z.ZodObject<{
389
390
  id: z.ZodNumber;
390
- created_at: z.ZodString;
391
- bookmarked: z.ZodBoolean;
392
- flow_data_id: z.ZodNumber;
393
- flow_data: z.ZodOptional<z.ZodObject<{
394
- is_materialized: z.ZodNullable<z.ZodBoolean>;
395
- last_materialized_at: z.ZodNullable<z.ZodString>;
396
- materialized_error_message: z.ZodNullable<z.ZodString>;
397
- materialized_status: z.ZodNullable<z.ZodEnum<{
398
- running: "running";
399
- completed: "completed";
400
- failed: "failed";
401
- }>>;
402
- }, z.core.$strip>>;
403
391
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
404
392
  config_version: z.ZodLiteral<2>;
405
393
  xAxisLabel: z.ZodString;
@@ -440,6 +428,19 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
440
428
  title: z.ZodString;
441
429
  type: z.ZodLiteral<"pie">;
442
430
  }, z.core.$strip>], "type">;
431
+ created_at: z.ZodString;
432
+ bookmarked: z.ZodBoolean;
433
+ flow_data_id: z.ZodNumber;
434
+ flow_data: z.ZodOptional<z.ZodObject<{
435
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
436
+ last_materialized_at: z.ZodNullable<z.ZodString>;
437
+ materialized_error_message: z.ZodNullable<z.ZodString>;
438
+ materialized_status: z.ZodNullable<z.ZodEnum<{
439
+ running: "running";
440
+ completed: "completed";
441
+ failed: "failed";
442
+ }>>;
443
+ }, z.core.$strip>>;
443
444
  }, z.core.$strip>;
444
445
 
445
446
  export { GenerateInsightParam }
@@ -1233,19 +1234,6 @@ declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSc
1233
1234
 
1234
1235
  declare const V1FrontendVisualizationSchema: z.ZodObject<{
1235
1236
  id: z.ZodNumber;
1236
- created_at: z.ZodString;
1237
- bookmarked: z.ZodBoolean;
1238
- flow_data_id: z.ZodNumber;
1239
- flow_data: z.ZodOptional<z.ZodObject<{
1240
- is_materialized: z.ZodNullable<z.ZodBoolean>;
1241
- last_materialized_at: z.ZodNullable<z.ZodString>;
1242
- materialized_error_message: z.ZodNullable<z.ZodString>;
1243
- materialized_status: z.ZodNullable<z.ZodEnum<{
1244
- running: "running";
1245
- completed: "completed";
1246
- failed: "failed";
1247
- }>>;
1248
- }, z.core.$strip>>;
1249
1237
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1250
1238
  xAxisLabel: z.ZodString;
1251
1239
  yAxisLabel: z.ZodString;
@@ -1279,6 +1267,19 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
1279
1267
  title: z.ZodString;
1280
1268
  type: z.ZodLiteral<"pie">;
1281
1269
  }, z.core.$strip>], "type">;
1270
+ created_at: z.ZodString;
1271
+ bookmarked: z.ZodBoolean;
1272
+ flow_data_id: z.ZodNumber;
1273
+ flow_data: z.ZodOptional<z.ZodObject<{
1274
+ is_materialized: z.ZodNullable<z.ZodBoolean>;
1275
+ last_materialized_at: z.ZodNullable<z.ZodString>;
1276
+ materialized_error_message: z.ZodNullable<z.ZodString>;
1277
+ materialized_status: z.ZodNullable<z.ZodEnum<{
1278
+ running: "running";
1279
+ completed: "completed";
1280
+ failed: "failed";
1281
+ }>>;
1282
+ }, z.core.$strip>>;
1282
1283
  }, z.core.$strip>;
1283
1284
 
1284
1285
  export declare const Visualization: ForwardRefExoticComponent< {