@magemetrics/ai 0.6.0 → 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.
- package/dist/react/ai.js +8836 -8494
- package/dist/react/index.d.ts +67 -60
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +67 -60
- package/dist/web-component/web-component.es.js +27214 -26265
- package/package.json +12 -12
|
@@ -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,31 +341,9 @@ 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;
|
|
345
|
+
output_dataset: z.ZodOptional<z.ZodString>;
|
|
346
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
344
347
|
}, z.core.$strip>;
|
|
345
348
|
|
|
346
349
|
declare const FrontendReportSchema: z.ZodObject<{
|
|
@@ -349,16 +352,6 @@ declare const FrontendReportSchema: z.ZodObject<{
|
|
|
349
352
|
id: z.ZodNumber;
|
|
350
353
|
request: z.ZodNullable<z.ZodString>;
|
|
351
354
|
created_at: z.ZodString;
|
|
352
|
-
is_removed: z.ZodBoolean;
|
|
353
|
-
flow_id: z.ZodString;
|
|
354
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
355
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
356
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
357
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
358
|
-
running: "running";
|
|
359
|
-
completed: "completed";
|
|
360
|
-
failed: "failed";
|
|
361
|
-
}>>;
|
|
362
355
|
data_summary: z.ZodObject<{
|
|
363
356
|
columns: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
364
357
|
position: z.ZodOptional<z.ZodNumber>;
|
|
@@ -378,6 +371,16 @@ declare const FrontendReportSchema: z.ZodObject<{
|
|
|
378
371
|
avg_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
379
372
|
}, z.core.$loose>>;
|
|
380
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
|
+
}>>;
|
|
381
384
|
bookmarked: z.ZodBoolean;
|
|
382
385
|
}, z.core.$strip>;
|
|
383
386
|
|
|
@@ -385,19 +388,6 @@ declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema
|
|
|
385
388
|
|
|
386
389
|
declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
387
390
|
id: z.ZodNumber;
|
|
388
|
-
created_at: z.ZodString;
|
|
389
|
-
bookmarked: z.ZodBoolean;
|
|
390
|
-
flow_data_id: z.ZodNumber;
|
|
391
|
-
flow_data: z.ZodOptional<z.ZodObject<{
|
|
392
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
393
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
394
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
395
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
396
|
-
running: "running";
|
|
397
|
-
completed: "completed";
|
|
398
|
-
failed: "failed";
|
|
399
|
-
}>>;
|
|
400
|
-
}, z.core.$strip>>;
|
|
401
391
|
configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
402
392
|
config_version: z.ZodLiteral<2>;
|
|
403
393
|
xAxisLabel: z.ZodString;
|
|
@@ -438,6 +428,19 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
|
|
|
438
428
|
title: z.ZodString;
|
|
439
429
|
type: z.ZodLiteral<"pie">;
|
|
440
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>>;
|
|
441
444
|
}, z.core.$strip>;
|
|
442
445
|
|
|
443
446
|
export { GenerateInsightParam }
|
|
@@ -885,6 +888,8 @@ export declare const useDataReport: (reportId: FrontendReport["id"]) => {
|
|
|
885
888
|
friendliness_score?: number;
|
|
886
889
|
friendliness_score_reason?: string;
|
|
887
890
|
flow_data_id: number;
|
|
891
|
+
output_dataset?: string;
|
|
892
|
+
sql?: string;
|
|
888
893
|
} | null | undefined;
|
|
889
894
|
totalRows: number;
|
|
890
895
|
infiniteData: InfiniteData< {
|
|
@@ -1196,6 +1201,8 @@ export declare const usePaginatedDataReport: (reportId: FrontendReport["id"], op
|
|
|
1196
1201
|
friendliness_score?: number;
|
|
1197
1202
|
friendliness_score_reason?: string;
|
|
1198
1203
|
flow_data_id: number;
|
|
1204
|
+
output_dataset?: string;
|
|
1205
|
+
sql?: string;
|
|
1199
1206
|
} | null | undefined;
|
|
1200
1207
|
totalRows: number | undefined;
|
|
1201
1208
|
pageIndex: number;
|
|
@@ -1227,19 +1234,6 @@ declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSc
|
|
|
1227
1234
|
|
|
1228
1235
|
declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
1229
1236
|
id: z.ZodNumber;
|
|
1230
|
-
created_at: z.ZodString;
|
|
1231
|
-
bookmarked: z.ZodBoolean;
|
|
1232
|
-
flow_data_id: z.ZodNumber;
|
|
1233
|
-
flow_data: z.ZodOptional<z.ZodObject<{
|
|
1234
|
-
is_materialized: z.ZodNullable<z.ZodBoolean>;
|
|
1235
|
-
last_materialized_at: z.ZodNullable<z.ZodString>;
|
|
1236
|
-
materialized_error_message: z.ZodNullable<z.ZodString>;
|
|
1237
|
-
materialized_status: z.ZodNullable<z.ZodEnum<{
|
|
1238
|
-
running: "running";
|
|
1239
|
-
completed: "completed";
|
|
1240
|
-
failed: "failed";
|
|
1241
|
-
}>>;
|
|
1242
|
-
}, z.core.$strip>>;
|
|
1243
1237
|
configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1244
1238
|
xAxisLabel: z.ZodString;
|
|
1245
1239
|
yAxisLabel: z.ZodString;
|
|
@@ -1273,6 +1267,19 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
|
|
|
1273
1267
|
title: z.ZodString;
|
|
1274
1268
|
type: z.ZodLiteral<"pie">;
|
|
1275
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>>;
|
|
1276
1283
|
}, z.core.$strip>;
|
|
1277
1284
|
|
|
1278
1285
|
export declare const Visualization: ForwardRefExoticComponent< {
|