@magemetrics/ai 0.14.1 → 0.15.1

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.
@@ -143,6 +143,7 @@ export declare interface ChatInputContextValue {
143
143
  isLoading: boolean;
144
144
  isStreaming: boolean;
145
145
  isError: boolean;
146
+ isErrorRetryable: boolean;
146
147
  isAwaitingUserAnswer: boolean;
147
148
  onRetry?: () => void;
148
149
  onStop?: () => void;
@@ -387,8 +388,8 @@ declare const FrontendReportSchema: z.ZodObject<{
387
388
  title: z.ZodString;
388
389
  id: z.ZodNumber;
389
390
  uuid: z.ZodString;
390
- request: z.ZodNullable<z.ZodString>;
391
391
  created_at: z.ZodString;
392
+ request: z.ZodNullable<z.ZodString>;
392
393
  data_summary: z.ZodObject<{
393
394
  columns: z.ZodRecord<z.ZodString, z.ZodObject<{
394
395
  position: z.ZodOptional<z.ZodNumber>;
@@ -424,6 +425,7 @@ declare type FrontendVisualization = z.output<typeof FrontendVisualizationSchema
424
425
  declare const FrontendVisualizationSchema: z.ZodObject<{
425
426
  id: z.ZodNumber;
426
427
  uuid: z.ZodString;
428
+ created_at: z.ZodString;
427
429
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
428
430
  config_version: z.ZodLiteral<2>;
429
431
  xAxisLabel: z.ZodString;
@@ -464,7 +466,6 @@ declare const FrontendVisualizationSchema: z.ZodObject<{
464
466
  title: z.ZodString;
465
467
  type: z.ZodLiteral<"pie">;
466
468
  }, z.core.$strip>], "type">;
467
- created_at: z.ZodString;
468
469
  flow_data_id: z.ZodNumber;
469
470
  report_uuid: z.ZodString;
470
471
  flow_data: z.ZodOptional<z.ZodObject<{
@@ -763,13 +764,13 @@ declare const TableFilterValueSchema: z.ZodObject<{
763
764
  * }
764
765
  * ```
765
766
  */
766
- export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<{
767
+ export declare const useCanvas: (canvasId: string | undefined | null, options?: Omit<UseQueryOptions<FrontendCanvas, unknown>, "queryKey" | "queryFn">) => UseQueryResult<NoInfer<{
767
768
  title: string | null;
768
769
  id: string;
769
770
  nodes: any[];
770
771
  edges: any[];
771
772
  is_public: boolean;
772
- }, unknown>;
773
+ }>, unknown>;
773
774
 
774
775
  export declare const useChatContext: () => ChatContextValue;
775
776
 
@@ -899,9 +900,9 @@ export declare const useCreateFlow: (options?: UseMutationOptions<{
899
900
  }, Error, CreateFlowParam, unknown>;
900
901
  };
901
902
 
902
- export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<{
903
+ export declare const useDataReportColumnValue: (reportId: string, filters: ReportDataFilters) => UseQueryResult<NoInfer<{
903
904
  [x: string]: unknown;
904
- }[], Error>;
905
+ }[]>, Error>;
905
906
 
906
907
  export declare const useDataTableContext: () => {
907
908
  report: {
@@ -909,8 +910,8 @@ export declare const useDataTableContext: () => {
909
910
  title: string;
910
911
  id: number;
911
912
  uuid: string;
912
- request: string | null;
913
913
  created_at: string;
914
+ request: string | null;
914
915
  data_summary: {
915
916
  [x: string]: unknown;
916
917
  columns: Record<string, {
@@ -1048,23 +1049,23 @@ export declare const useMageMetricsClient: () => MageMetricsClient;
1048
1049
 
1049
1050
  export declare const useMageMetricsReady: () => false | MageMetricsClient;
1050
1051
 
1051
- export declare const useRecentFlows: (limit?: number) => UseQueryResult<{
1052
+ export declare const useRecentFlows: (limit?: number) => UseQueryResult<NoInfer<{
1052
1053
  title: string | null;
1053
1054
  id: string;
1054
- request: string;
1055
1055
  created_at: string;
1056
+ request: string;
1056
1057
  user_id: string | null;
1057
1058
  application_id?: number | null | undefined;
1058
- }[], Error>;
1059
+ }[]>, Error>;
1059
1060
 
1060
- export declare const useRecommendations: (count: number) => UseQueryResult<{
1061
+ export declare const useRecommendations: (count: number) => UseQueryResult<NoInfer<{
1061
1062
  starter: string;
1062
1063
  explanation: string;
1063
1064
  type: string;
1064
- }[], Error>;
1065
+ }[]>, Error>;
1065
1066
 
1066
1067
  export declare const useReport: (reportId: string | undefined) => {
1067
- data: {
1068
+ data: NoInfer<{
1068
1069
  created_at: string;
1069
1070
  id: number;
1070
1071
  uuid: string;
@@ -1099,12 +1100,12 @@ export declare const useReport: (reportId: string | undefined) => {
1099
1100
  last_materialized_at: string | null;
1100
1101
  materialized_error_message: string | null;
1101
1102
  materialized_status: "completed" | "running" | "failed" | null;
1102
- } | null | undefined;
1103
+ } | null> | undefined;
1103
1104
  isLoading: boolean;
1104
1105
  error: Error | null;
1105
1106
  isError: boolean;
1106
1107
  isSuccess: boolean;
1107
- refetch: (options?: RefetchOptions) => Promise< QueryObserverResult<{
1108
+ refetch: (options?: RefetchOptions) => Promise< QueryObserverResult<NoInfer<{
1108
1109
  created_at: string;
1109
1110
  id: number;
1110
1111
  uuid: string;
@@ -1139,7 +1140,7 @@ export declare const useReport: (reportId: string | undefined) => {
1139
1140
  last_materialized_at: string | null;
1140
1141
  materialized_error_message: string | null;
1141
1142
  materialized_status: "completed" | "running" | "failed" | null;
1142
- } | null, Error>>;
1143
+ } | null>, Error>>;
1143
1144
  isRefetching: boolean;
1144
1145
  isFetching: boolean;
1145
1146
  };
@@ -1151,6 +1152,7 @@ declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSc
1151
1152
  declare const V1FrontendVisualizationSchema: z.ZodObject<{
1152
1153
  id: z.ZodNumber;
1153
1154
  uuid: z.ZodString;
1155
+ created_at: z.ZodString;
1154
1156
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
1157
  xAxisLabel: z.ZodString;
1156
1158
  yAxisLabel: z.ZodString;
@@ -1184,7 +1186,6 @@ declare const V1FrontendVisualizationSchema: z.ZodObject<{
1184
1186
  title: z.ZodString;
1185
1187
  type: z.ZodLiteral<"pie">;
1186
1188
  }, z.core.$strip>], "type">;
1187
- created_at: z.ZodString;
1188
1189
  flow_data_id: z.ZodNumber;
1189
1190
  report_uuid: z.ZodString;
1190
1191
  flow_data: z.ZodOptional<z.ZodObject<{