@magemetrics/core 0.3.1 → 0.3.3

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { DefaultChatTransport } from 'ai';
3
3
  import { GoTrueClientOptions } from '@supabase/auth-js';
4
4
  import { HttpChatTransportInitOptions } from 'ai';
5
5
  import type { InferUITool } from 'ai';
6
+ import type { NodeBase } from '@xyflow/system';
6
7
  import type { Simplify } from 'type-fest';
7
8
  import type { Tool } from 'ai';
8
9
  import type { UIMessage } from 'ai';
@@ -95,7 +96,9 @@ declare interface components {
95
96
  }[];
96
97
  /** Format: uuid */
97
98
  CanvasId: string;
98
- ReportData: Record<string, unknown>[];
99
+ ReportData: {
100
+ [key: string]: unknown;
101
+ }[];
99
102
  VisualizationData: {
100
103
  [key: string]: string | (number | null) | unknown | null;
101
104
  }[];
@@ -225,31 +228,13 @@ declare interface components {
225
228
 
226
229
  declare type CreateCanvas = z.infer<typeof CreateCanvasSchema>;
227
230
 
228
- declare const CreateCanvasSchema: z.ZodObject<Omit<{
229
- company_id: z.ZodNumber;
230
- created_at: z.ZodString;
231
- id: z.ZodString;
231
+ declare const CreateCanvasSchema: z.ZodObject<{
232
232
  title: z.ZodNullable<z.ZodString>;
233
- updated_at: z.ZodString;
234
- is_removed: z.ZodBoolean;
233
+ nodes: z.ZodArray<z.ZodAny>;
234
+ edges: z.ZodArray<z.ZodAny>;
235
235
  is_public: z.ZodBoolean;
236
- nodes: z.ZodArray<z.ZodAny, "many">;
237
- edges: z.ZodArray<z.ZodAny, "many">;
238
- }, "id" | "company_id" | "created_at" | "updated_at" | "is_removed"> & {
239
236
  flow_id: z.ZodOptional<z.ZodString>;
240
- }, "strip", z.ZodTypeAny, {
241
- title: string | null;
242
- nodes: any[];
243
- edges: any[];
244
- is_public: boolean;
245
- flow_id?: string | undefined;
246
- }, {
247
- title: string | null;
248
- nodes: any[];
249
- edges: any[];
250
- is_public: boolean;
251
- flow_id?: string | undefined;
252
- }>;
237
+ }, z.core.$strip>;
253
238
 
254
239
  /**
255
240
  * Parameters for starting a flow
@@ -264,6 +249,9 @@ export declare type CreateFlowParam = {
264
249
  declare type CustomDataParts = {
265
250
  "quick-actions": z.infer<typeof QuickActionsSchema>;
266
251
  signal: z.infer<typeof SignalWithReportIdSchema>;
252
+ "node-added": {
253
+ node: NodeBase;
254
+ };
267
255
  };
268
256
 
269
257
  declare type ExtractInsightResponse = z.infer<typeof ExtractInsightResponseSchema>;
@@ -271,58 +259,18 @@ declare type ExtractInsightResponse = z.infer<typeof ExtractInsightResponseSchem
271
259
  declare const ExtractInsightResponseSchema: z.ZodUnion<[z.ZodObject<{
272
260
  type: z.ZodLiteral<"text">;
273
261
  insight: z.ZodString;
274
- }, "strip", z.ZodTypeAny, {
275
- type: "text";
276
- insight: string;
277
- }, {
278
- type: "text";
279
- insight: string;
280
- }>, z.ZodObject<{
262
+ }, z.core.$strip>, z.ZodObject<{
281
263
  type: z.ZodLiteral<"missing">;
282
- }, "strip", z.ZodTypeAny, {
283
- type: "missing";
284
- }, {
285
- type: "missing";
286
- }>]>;
264
+ }, z.core.$strip>]>;
287
265
 
288
266
  declare type FrontendRecentFlows = z.infer<typeof FrontendRecentFlowsSchema>;
289
267
 
290
- declare const FrontendRecentFlowsSchema: z.ZodObject<Omit<{
291
- created_at: z.ZodString;
268
+ declare const FrontendRecentFlowsSchema: z.ZodObject<{
292
269
  id: z.ZodString;
293
270
  request: z.ZodString;
271
+ created_at: z.ZodString;
294
272
  user_id: z.ZodNullable<z.ZodString>;
295
- flow_steps: z.ZodArray<z.ZodObject<{
296
- name: z.ZodString;
297
- status: z.ZodEnum<["running", "completed", "failed", "awaiting_input"]>;
298
- output: z.ZodNullable<z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodUnknown, "many">]>>;
299
- }, "strip", z.ZodTypeAny, {
300
- status: "running" | "completed" | "failed" | "awaiting_input";
301
- name: string;
302
- output: unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
303
- }, {
304
- status: "running" | "completed" | "failed" | "awaiting_input";
305
- name: string;
306
- output: unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
307
- }>, "many">;
308
- flow_chat_messages: z.ZodArray<z.ZodObject<{
309
- count: z.ZodNumber;
310
- }, "strip", z.ZodTypeAny, {
311
- count: number;
312
- }, {
313
- count: number;
314
- }>, "many">;
315
- }, "flow_steps" | "flow_chat_messages">, "strip", z.ZodTypeAny, {
316
- id: string;
317
- request: string;
318
- created_at: string;
319
- user_id: string | null;
320
- }, {
321
- id: string;
322
- request: string;
323
- created_at: string;
324
- user_id: string | null;
325
- }>;
273
+ }, z.core.$strip>;
326
274
 
327
275
  /**
328
276
  * Parameters for generating contextual insights
@@ -337,82 +285,49 @@ export declare const getPublicApiClient: (apiUrl: string, apiKey: string) => Cli
337
285
  declare const inputSchema: z.ZodObject<{
338
286
  userRequest: z.ZodString;
339
287
  isNewAnalysisGoal: z.ZodBoolean;
340
- responseType: z.ZodEnum<["text", "table", "visualization"]>;
341
- difficultyLevel: z.ZodEnum<["simple", "moderate", "complex"]>;
342
- }, "strip", z.ZodTypeAny, {
343
- userRequest: string;
344
- isNewAnalysisGoal: boolean;
345
- responseType: "text" | "table" | "visualization";
346
- difficultyLevel: "simple" | "moderate" | "complex";
347
- }, {
348
- userRequest: string;
349
- isNewAnalysisGoal: boolean;
350
- responseType: "text" | "table" | "visualization";
351
- difficultyLevel: "simple" | "moderate" | "complex";
352
- }>;
288
+ responseType: z.ZodEnum<{
289
+ text: "text";
290
+ table: "table";
291
+ visualization: "visualization";
292
+ }>;
293
+ difficultyLevel: z.ZodEnum<{
294
+ simple: "simple";
295
+ moderate: "moderate";
296
+ complex: "complex";
297
+ }>;
298
+ }, z.core.$strip>;
353
299
 
354
300
  declare const inputSchema_2: z.ZodObject<{
355
- chartType: z.ZodEnum<["bar", "line/area", "scatter", "pie"]>;
301
+ chartType: z.ZodEnum<{
302
+ bar: "bar";
303
+ "line/area": "line/area";
304
+ scatter: "scatter";
305
+ pie: "pie";
306
+ }>;
356
307
  columnConfiguration: z.ZodObject<{
357
308
  dimensionColumn: z.ZodString;
358
- valueColumns: z.ZodArray<z.ZodString, "many">;
359
- }, "strip", z.ZodTypeAny, {
360
- dimensionColumn: string;
361
- valueColumns: string[];
362
- }, {
363
- dimensionColumn: string;
364
- valueColumns: string[];
365
- }>;
309
+ valueColumns: z.ZodArray<z.ZodString>;
310
+ }, z.core.$strip>;
366
311
  explanations: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- chartType: "bar" | "line/area" | "scatter" | "pie";
369
- columnConfiguration: {
370
- dimensionColumn: string;
371
- valueColumns: string[];
372
- };
373
- explanations: string;
374
- }, {
375
- chartType: "bar" | "line/area" | "scatter" | "pie";
376
- columnConfiguration: {
377
- dimensionColumn: string;
378
- valueColumns: string[];
379
- };
380
- explanations: string;
381
- }>;
312
+ }, z.core.$strip>;
382
313
 
383
314
  declare const inputSchema_3: z.ZodObject<{
384
315
  thought: z.ZodString;
385
- }, "strip", z.ZodTypeAny, {
386
- thought: string;
387
- }, {
388
- thought: string;
389
- }>;
316
+ }, z.core.$strip>;
390
317
 
391
318
  declare const inputSchema_4: z.ZodObject<{
392
319
  value: z.ZodString;
393
- }, "strip", z.ZodTypeAny, {
394
- value: string;
395
- }, {
396
- value: string;
397
- }>;
320
+ }, z.core.$strip>;
398
321
 
399
- declare const inputSchema_5: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
322
+ declare const inputSchema_5: z.ZodObject<{}, z.core.$strip>;
400
323
 
401
324
  declare const inputSchema_6: z.ZodObject<{
402
325
  table_name: z.ZodString;
403
- }, "strip", z.ZodTypeAny, {
404
- table_name: string;
405
- }, {
406
- table_name: string;
407
- }>;
326
+ }, z.core.$strip>;
408
327
 
409
328
  declare const inputSchema_7: z.ZodObject<{
410
329
  query: z.ZodString;
411
- }, "strip", z.ZodTypeAny, {
412
- query: string;
413
- }, {
414
- query: string;
415
- }>;
330
+ }, z.core.$strip>;
416
331
 
417
332
  declare type InternalApiClient = Simplify<Client<NoAuthPaths, `${string}/${string}`>>;
418
333
 
@@ -540,8 +455,12 @@ export declare class MageMetricsClient {
540
455
  null_count: number | null;
541
456
  unique_count: number | null;
542
457
  unique_percentage: number | null;
458
+ } & {
459
+ [key: string]: unknown;
543
460
  };
544
461
  };
462
+ } & {
463
+ [key: string]: unknown;
545
464
  };
546
465
  bookmarked: boolean;
547
466
  status: string | null;
@@ -555,11 +474,11 @@ export declare class MageMetricsClient {
555
474
  }>;
556
475
  canvas: {
557
476
  list: (query?: string) => Promise<{
558
- id: string;
559
477
  title: string | null;
560
- is_public: boolean;
478
+ id: string;
561
479
  nodes: any[];
562
480
  edges: any[];
481
+ is_public: boolean;
563
482
  canvas_flows: {
564
483
  flow_id: string;
565
484
  }[];
@@ -593,7 +512,9 @@ export declare class MageMetricsClient {
593
512
  generateContextualInsight: (payload: GenerateInsightParam) => Promise<ExtractInsightResponse>;
594
513
  getChatTransport: (flowId: string, options?: MageMetricsChatTransportOptions) => MageMetricsChatTransport;
595
514
  getChatMessages: (flowId: string) => Promise<MMChatUIMessage[]>;
596
- fetchReportData: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<Record<string, unknown>[]>;
515
+ fetchReportData: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<{
516
+ [key: string]: unknown;
517
+ }[]>;
597
518
  getReport: (reportId: number) => Promise<{
598
519
  columns: {
599
520
  name: string;
@@ -605,7 +526,9 @@ export declare class MageMetricsClient {
605
526
  rowCount: {
606
527
  count: number;
607
528
  };
608
- data: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<Record<string, unknown>[]>;
529
+ data: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters) => Promise<{
530
+ [key: string]: unknown;
531
+ }[]>;
609
532
  }>;
610
533
  };
611
534
  /**
@@ -1220,8 +1143,12 @@ declare interface operations {
1220
1143
  null_count: number | null;
1221
1144
  unique_count: number | null;
1222
1145
  unique_percentage: number | null;
1146
+ } & {
1147
+ [key: string]: unknown;
1223
1148
  };
1224
1149
  };
1150
+ } & {
1151
+ [key: string]: unknown;
1225
1152
  };
1226
1153
  bookmarked: boolean;
1227
1154
  status: string | null;
@@ -1861,8 +1788,12 @@ declare interface operations {
1861
1788
  null_count: number | null;
1862
1789
  unique_count: number | null;
1863
1790
  unique_percentage: number | null;
1791
+ } & {
1792
+ [key: string]: unknown;
1864
1793
  };
1865
1794
  };
1795
+ } & {
1796
+ [key: string]: unknown;
1866
1797
  };
1867
1798
  bookmarked: boolean;
1868
1799
  status: string | null;
@@ -1957,7 +1888,9 @@ declare interface operations {
1957
1888
  };
1958
1889
  content: {
1959
1890
  "application/json": {
1960
- messages: Record<string, unknown>[];
1891
+ messages: {
1892
+ [key: string]: unknown;
1893
+ }[];
1961
1894
  };
1962
1895
  };
1963
1896
  };
@@ -3035,6 +2968,7 @@ declare interface operations {
3035
2968
  getContextualInsightColumnSampleValues: {
3036
2969
  parameters: {
3037
2970
  query: {
2971
+ /** @description The column name to get sample values for */
3038
2972
  column_name: string;
3039
2973
  };
3040
2974
  header?: never;
@@ -3874,433 +3808,75 @@ declare interface paths {
3874
3808
  declare const QuickActionsSchema: z.ZodArray<z.ZodObject<{
3875
3809
  label: z.ZodString;
3876
3810
  explanation: z.ZodString;
3877
- }, "strip", z.ZodTypeAny, {
3878
- label: string;
3879
- explanation: string;
3880
- }, {
3881
- label: string;
3882
- explanation: string;
3883
- }>, "many">;
3811
+ }, z.core.$strip>>;
3884
3812
 
3885
3813
  declare const redactedOutputSchema: z.ZodObject<{
3886
3814
  tool: z.ZodLiteral<"generateDataReport">;
3887
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3815
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3888
3816
  status: z.ZodLiteral<"success">;
3889
3817
  public: z.ZodObject<{
3890
3818
  flowDataId: z.ZodNumber;
3891
3819
  answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3892
3820
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3893
- }, "strip", z.ZodTypeAny, {
3894
- flowDataId: number;
3895
- title?: string | null | undefined;
3896
- answer?: string | null | undefined;
3897
- }, {
3898
- flowDataId: number;
3899
- title?: string | null | undefined;
3900
- answer?: string | null | undefined;
3901
- }>;
3902
- private: z.ZodObject<{
3903
- sql: z.ZodString;
3904
- dataReportSummary: z.ZodString;
3905
- }, "strip", z.ZodTypeAny, {
3906
- sql: string;
3907
- dataReportSummary: string;
3908
- }, {
3909
- sql: string;
3910
- dataReportSummary: string;
3911
- }>;
3912
- }, "private">, "strip", z.ZodTypeAny, {
3913
- status: "success";
3914
- public: {
3915
- flowDataId: number;
3916
- title?: string | null | undefined;
3917
- answer?: string | null | undefined;
3918
- };
3919
- }, {
3920
- status: "success";
3921
- public: {
3922
- flowDataId: number;
3923
- title?: string | null | undefined;
3924
- answer?: string | null | undefined;
3925
- };
3926
- }>, z.ZodObject<{
3821
+ }, z.core.$strip>;
3822
+ }, z.core.$strip>, z.ZodObject<{
3927
3823
  status: z.ZodLiteral<"error">;
3928
3824
  message: z.ZodString;
3929
- }, "strip", z.ZodTypeAny, {
3930
- message: string;
3931
- status: "error";
3932
- }, {
3933
- message: string;
3934
- status: "error";
3935
- }>]>>;
3936
- }, "strip", z.ZodTypeAny, {
3937
- tool: "generateDataReport";
3938
- result?: {
3939
- status: "success";
3940
- public: {
3941
- flowDataId: number;
3942
- title?: string | null | undefined;
3943
- answer?: string | null | undefined;
3944
- };
3945
- } | {
3946
- message: string;
3947
- status: "error";
3948
- } | undefined;
3949
- }, {
3950
- tool: "generateDataReport";
3951
- result?: {
3952
- status: "success";
3953
- public: {
3954
- flowDataId: number;
3955
- title?: string | null | undefined;
3956
- answer?: string | null | undefined;
3957
- };
3958
- } | {
3959
- message: string;
3960
- status: "error";
3961
- } | undefined;
3962
- }>;
3825
+ }, z.core.$strip>], "status">>;
3826
+ }, z.core.$strip>;
3963
3827
 
3964
3828
  declare const redactedOutputSchema_2: z.ZodObject<{
3965
3829
  tool: z.ZodLiteral<"generateVisualization">;
3966
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3830
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3967
3831
  status: z.ZodLiteral<"success">;
3968
3832
  public: z.ZodObject<{
3969
3833
  flowDataId: z.ZodNumber;
3970
3834
  flowDataVisualizationId: z.ZodNumber;
3971
3835
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3972
3836
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3973
- }, "strip", z.ZodTypeAny, {
3974
- flowDataId: number;
3975
- flowDataVisualizationId: number;
3976
- type?: string | null | undefined;
3977
- title?: string | null | undefined;
3978
- }, {
3979
- flowDataId: number;
3980
- flowDataVisualizationId: number;
3981
- type?: string | null | undefined;
3982
- title?: string | null | undefined;
3983
- }>;
3984
- private: z.ZodObject<{
3985
- sql: z.ZodOptional<z.ZodString>;
3986
- dataReportSummary: z.ZodOptional<z.ZodString>;
3987
- }, "strip", z.ZodTypeAny, {
3988
- sql?: string | undefined;
3989
- dataReportSummary?: string | undefined;
3990
- }, {
3991
- sql?: string | undefined;
3992
- dataReportSummary?: string | undefined;
3993
- }>;
3994
- }, "private">, "strip", z.ZodTypeAny, {
3995
- status: "success";
3996
- public: {
3997
- flowDataId: number;
3998
- flowDataVisualizationId: number;
3999
- type?: string | null | undefined;
4000
- title?: string | null | undefined;
4001
- };
4002
- }, {
4003
- status: "success";
4004
- public: {
4005
- flowDataId: number;
4006
- flowDataVisualizationId: number;
4007
- type?: string | null | undefined;
4008
- title?: string | null | undefined;
4009
- };
4010
- }>, z.ZodObject<{
3837
+ }, z.core.$strip>;
3838
+ }, z.core.$strip>, z.ZodObject<{
4011
3839
  status: z.ZodLiteral<"error">;
4012
3840
  message: z.ZodString;
4013
- }, "strip", z.ZodTypeAny, {
4014
- message: string;
4015
- status: "error";
4016
- }, {
4017
- message: string;
4018
- status: "error";
4019
- }>]>>;
4020
- }, "strip", z.ZodTypeAny, {
4021
- tool: "generateVisualization";
4022
- result?: {
4023
- status: "success";
4024
- public: {
4025
- flowDataId: number;
4026
- flowDataVisualizationId: number;
4027
- type?: string | null | undefined;
4028
- title?: string | null | undefined;
4029
- };
4030
- } | {
4031
- message: string;
4032
- status: "error";
4033
- } | undefined;
4034
- }, {
4035
- tool: "generateVisualization";
4036
- result?: {
4037
- status: "success";
4038
- public: {
4039
- flowDataId: number;
4040
- flowDataVisualizationId: number;
4041
- type?: string | null | undefined;
4042
- title?: string | null | undefined;
4043
- };
4044
- } | {
4045
- message: string;
4046
- status: "error";
4047
- } | undefined;
4048
- }>;
3841
+ }, z.core.$strip>], "status">>;
3842
+ }, z.core.$strip>;
4049
3843
 
4050
3844
  declare const redactedOutputSchema_3: z.ZodObject<{
4051
3845
  tool: z.ZodLiteral<"valueBasedColumnSearch">;
4052
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3846
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4053
3847
  status: z.ZodLiteral<"success">;
4054
- public: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4055
- private: z.ZodObject<{
4056
- message: z.ZodOptional<z.ZodString>;
4057
- columns: z.ZodArray<z.ZodObject<{
4058
- name: z.ZodString;
4059
- data_type: z.ZodNullable<z.ZodString>;
4060
- description: z.ZodNullable<z.ZodString>;
4061
- table: z.ZodObject<{
4062
- table_name: z.ZodString;
4063
- description: z.ZodNullable<z.ZodString>;
4064
- }, "strip", z.ZodTypeAny, {
4065
- description: string | null;
4066
- table_name: string;
4067
- }, {
4068
- description: string | null;
4069
- table_name: string;
4070
- }>;
4071
- matched_values: z.ZodArray<z.ZodString, "many">;
4072
- }, "strip", z.ZodTypeAny, {
4073
- description: string | null;
4074
- name: string;
4075
- table: {
4076
- description: string | null;
4077
- table_name: string;
4078
- };
4079
- data_type: string | null;
4080
- matched_values: string[];
4081
- }, {
4082
- description: string | null;
4083
- name: string;
4084
- table: {
4085
- description: string | null;
4086
- table_name: string;
4087
- };
4088
- data_type: string | null;
4089
- matched_values: string[];
4090
- }>, "many">;
4091
- }, "strip", z.ZodTypeAny, {
4092
- columns: {
4093
- description: string | null;
4094
- name: string;
4095
- table: {
4096
- description: string | null;
4097
- table_name: string;
4098
- };
4099
- data_type: string | null;
4100
- matched_values: string[];
4101
- }[];
4102
- message?: string | undefined;
4103
- }, {
4104
- columns: {
4105
- description: string | null;
4106
- name: string;
4107
- table: {
4108
- description: string | null;
4109
- table_name: string;
4110
- };
4111
- data_type: string | null;
4112
- matched_values: string[];
4113
- }[];
4114
- message?: string | undefined;
4115
- }>;
4116
- }, "private">, "strip", z.ZodTypeAny, {
4117
- status: "success";
4118
- public: {};
4119
- }, {
4120
- status: "success";
4121
- public: {};
4122
- }>, z.ZodObject<{
3848
+ public: z.ZodObject<{}, z.core.$loose>;
3849
+ }, z.core.$strip>, z.ZodObject<{
4123
3850
  status: z.ZodLiteral<"error">;
4124
3851
  message: z.ZodString;
4125
- }, "strip", z.ZodTypeAny, {
4126
- message: string;
4127
- status: "error";
4128
- }, {
4129
- message: string;
4130
- status: "error";
4131
- }>]>>;
4132
- }, "strip", z.ZodTypeAny, {
4133
- tool: "valueBasedColumnSearch";
4134
- result?: {
4135
- status: "success";
4136
- public: {};
4137
- } | {
4138
- message: string;
4139
- status: "error";
4140
- } | undefined;
4141
- }, {
4142
- tool: "valueBasedColumnSearch";
4143
- result?: {
4144
- status: "success";
4145
- public: {};
4146
- } | {
4147
- message: string;
4148
- status: "error";
4149
- } | undefined;
4150
- }>;
3852
+ }, z.core.$strip>], "status">>;
3853
+ }, z.core.$strip>;
4151
3854
 
4152
3855
  declare const redactedOutputSchema_4: z.ZodObject<{
4153
3856
  tool: z.ZodLiteral<"getAvailableTables">;
4154
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3857
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4155
3858
  status: z.ZodLiteral<"success">;
4156
- public: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4157
- private: z.ZodObject<{
4158
- tables: z.ZodArray<z.ZodObject<{
4159
- table_name: z.ZodString;
4160
- description: z.ZodNullable<z.ZodString>;
4161
- }, "strip", z.ZodTypeAny, {
4162
- description: string | null;
4163
- table_name: string;
4164
- }, {
4165
- description: string | null;
4166
- table_name: string;
4167
- }>, "many">;
4168
- }, "strip", z.ZodTypeAny, {
4169
- tables: {
4170
- description: string | null;
4171
- table_name: string;
4172
- }[];
4173
- }, {
4174
- tables: {
4175
- description: string | null;
4176
- table_name: string;
4177
- }[];
4178
- }>;
4179
- }, "private">, "strip", z.ZodTypeAny, {
4180
- status: "success";
4181
- public: {};
4182
- }, {
4183
- status: "success";
4184
- public: {};
4185
- }>, z.ZodObject<{
3859
+ public: z.ZodObject<{}, z.core.$loose>;
3860
+ }, z.core.$strip>, z.ZodObject<{
4186
3861
  status: z.ZodLiteral<"error">;
4187
3862
  message: z.ZodString;
4188
- }, "strip", z.ZodTypeAny, {
4189
- message: string;
4190
- status: "error";
4191
- }, {
4192
- message: string;
4193
- status: "error";
4194
- }>]>>;
4195
- }, "strip", z.ZodTypeAny, {
4196
- tool: "getAvailableTables";
4197
- result?: {
4198
- status: "success";
4199
- public: {};
4200
- } | {
4201
- message: string;
4202
- status: "error";
4203
- } | undefined;
4204
- }, {
4205
- tool: "getAvailableTables";
4206
- result?: {
4207
- status: "success";
4208
- public: {};
4209
- } | {
4210
- message: string;
4211
- status: "error";
4212
- } | undefined;
4213
- }>;
3863
+ }, z.core.$strip>], "status">>;
3864
+ }, z.core.$strip>;
4214
3865
 
4215
3866
  declare const redactedOutputSchema_5: z.ZodObject<{
4216
3867
  tool: z.ZodLiteral<"getAvailableColumnsForTable">;
4217
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3868
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4218
3869
  status: z.ZodLiteral<"success">;
4219
- public: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4220
- private: z.ZodObject<{
4221
- message: z.ZodOptional<z.ZodString>;
4222
- columns: z.ZodArray<z.ZodObject<{
4223
- name: z.ZodString;
4224
- data_type: z.ZodNullable<z.ZodString>;
4225
- description: z.ZodNullable<z.ZodString>;
4226
- null_percentage: z.ZodNullable<z.ZodNumber>;
4227
- unique_values: z.ZodNullable<z.ZodNumber>;
4228
- sample_values: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
4229
- }, "strip", z.ZodTypeAny, {
4230
- description: string | null;
4231
- name: string;
4232
- data_type: string | null;
4233
- null_percentage: number | null;
4234
- unique_values: number | null;
4235
- sample_values: any[] | null;
4236
- }, {
4237
- description: string | null;
4238
- name: string;
4239
- data_type: string | null;
4240
- null_percentage: number | null;
4241
- unique_values: number | null;
4242
- sample_values: any[] | null;
4243
- }>, "many">;
4244
- }, "strip", z.ZodTypeAny, {
4245
- columns: {
4246
- description: string | null;
4247
- name: string;
4248
- data_type: string | null;
4249
- null_percentage: number | null;
4250
- unique_values: number | null;
4251
- sample_values: any[] | null;
4252
- }[];
4253
- message?: string | undefined;
4254
- }, {
4255
- columns: {
4256
- description: string | null;
4257
- name: string;
4258
- data_type: string | null;
4259
- null_percentage: number | null;
4260
- unique_values: number | null;
4261
- sample_values: any[] | null;
4262
- }[];
4263
- message?: string | undefined;
4264
- }>;
4265
- }, "private">, "strip", z.ZodTypeAny, {
4266
- status: "success";
4267
- public: {};
4268
- }, {
4269
- status: "success";
4270
- public: {};
4271
- }>, z.ZodObject<{
3870
+ public: z.ZodObject<{}, z.core.$loose>;
3871
+ }, z.core.$strip>, z.ZodObject<{
4272
3872
  status: z.ZodLiteral<"error">;
4273
3873
  message: z.ZodString;
4274
- }, "strip", z.ZodTypeAny, {
4275
- message: string;
4276
- status: "error";
4277
- }, {
4278
- message: string;
4279
- status: "error";
4280
- }>]>>;
4281
- }, "strip", z.ZodTypeAny, {
4282
- tool: "getAvailableColumnsForTable";
4283
- result?: {
4284
- status: "success";
4285
- public: {};
4286
- } | {
4287
- message: string;
4288
- status: "error";
4289
- } | undefined;
4290
- }, {
4291
- tool: "getAvailableColumnsForTable";
4292
- result?: {
4293
- status: "success";
4294
- public: {};
4295
- } | {
4296
- message: string;
4297
- status: "error";
4298
- } | undefined;
4299
- }>;
3874
+ }, z.core.$strip>], "status">>;
3875
+ }, z.core.$strip>;
4300
3876
 
4301
3877
  declare const redactedOutputSchema_6: z.ZodObject<{
4302
3878
  tool: z.ZodLiteral<"search">;
4303
- result: z.ZodOptional<z.ZodDiscriminatedUnion<"status", [z.ZodObject<Omit<{
3879
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4304
3880
  status: z.ZodLiteral<"success">;
4305
3881
  public: z.ZodObject<{
4306
3882
  sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4308,130 +3884,21 @@ declare const redactedOutputSchema_6: z.ZodObject<{
4308
3884
  id: z.ZodString;
4309
3885
  url: z.ZodString;
4310
3886
  title: z.ZodString;
4311
- }, "strip", z.ZodTypeAny, {
4312
- title: string;
4313
- sourceType: "url";
4314
- url: string;
4315
- id: string;
4316
- }, {
4317
- title: string;
4318
- sourceType: "url";
4319
- url: string;
4320
- id: string;
4321
- }>, "many">>;
4322
- }, "strip", z.ZodTypeAny, {
4323
- sources?: {
4324
- title: string;
4325
- sourceType: "url";
4326
- url: string;
4327
- id: string;
4328
- }[] | undefined;
4329
- }, {
4330
- sources?: {
4331
- title: string;
4332
- sourceType: "url";
4333
- url: string;
4334
- id: string;
4335
- }[] | undefined;
4336
- }>;
4337
- private: z.ZodObject<{
4338
- answer: z.ZodOptional<z.ZodString>;
4339
- }, "strip", z.ZodTypeAny, {
4340
- answer?: string | undefined;
4341
- }, {
4342
- answer?: string | undefined;
4343
- }>;
4344
- }, "private">, "strip", z.ZodTypeAny, {
4345
- status: "success";
4346
- public: {
4347
- sources?: {
4348
- title: string;
4349
- sourceType: "url";
4350
- url: string;
4351
- id: string;
4352
- }[] | undefined;
4353
- };
4354
- }, {
4355
- status: "success";
4356
- public: {
4357
- sources?: {
4358
- title: string;
4359
- sourceType: "url";
4360
- url: string;
4361
- id: string;
4362
- }[] | undefined;
4363
- };
4364
- }>, z.ZodObject<{
3887
+ }, z.core.$strip>>>;
3888
+ }, z.core.$strip>;
3889
+ }, z.core.$strip>, z.ZodObject<{
4365
3890
  status: z.ZodLiteral<"error">;
4366
3891
  message: z.ZodString;
4367
- }, "strip", z.ZodTypeAny, {
4368
- message: string;
4369
- status: "error";
4370
- }, {
4371
- message: string;
4372
- status: "error";
4373
- }>]>>;
4374
- }, "strip", z.ZodTypeAny, {
4375
- tool: "search";
4376
- result?: {
4377
- status: "success";
4378
- public: {
4379
- sources?: {
4380
- title: string;
4381
- sourceType: "url";
4382
- url: string;
4383
- id: string;
4384
- }[] | undefined;
4385
- };
4386
- } | {
4387
- message: string;
4388
- status: "error";
4389
- } | undefined;
4390
- }, {
4391
- tool: "search";
4392
- result?: {
4393
- status: "success";
4394
- public: {
4395
- sources?: {
4396
- title: string;
4397
- sourceType: "url";
4398
- url: string;
4399
- id: string;
4400
- }[] | undefined;
4401
- };
4402
- } | {
4403
- message: string;
4404
- status: "error";
4405
- } | undefined;
4406
- }>;
3892
+ }, z.core.$strip>], "status">>;
3893
+ }, z.core.$strip>;
4407
3894
 
4408
3895
  declare const RedactedThinkResponse: z.ZodObject<{
4409
3896
  tool: z.ZodDefault<z.ZodLiteral<"think">>;
4410
- } & {
4411
- result: z.ZodOptional<z.ZodObject<Omit<{
3897
+ result: z.ZodOptional<z.ZodObject<{
4412
3898
  status: z.ZodLiteral<"success">;
4413
- public: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4414
- private: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4415
- }, "private">, "strip", z.ZodTypeAny, {
4416
- status: "success";
4417
- public: {};
4418
- }, {
4419
- status: "success";
4420
- public: {};
4421
- }>>;
4422
- }, "strip", z.ZodTypeAny, {
4423
- tool: "think";
4424
- result?: {
4425
- status: "success";
4426
- public: {};
4427
- } | undefined;
4428
- }, {
4429
- tool?: "think" | undefined;
4430
- result?: {
4431
- status: "success";
4432
- public: {};
4433
- } | undefined;
4434
- }>;
3899
+ public: z.ZodObject<{}, z.core.$loose>;
3900
+ }, z.core.$strip>>;
3901
+ }, z.core.$strip>;
4435
3902
 
4436
3903
  declare type RemoveAuthHeader<PathSchema> = Simplify<{
4437
3904
  [Method in keyof PathSchema]: RemoveParams<PathSchema[Method], ToRemove>;
@@ -4468,21 +3935,8 @@ declare const SignalWithReportIdSchema: z.ZodObject<{
4468
3935
  metric: z.ZodString;
4469
3936
  trigger: z.ZodString;
4470
3937
  implementation: z.ZodString;
4471
- } & {
4472
3938
  reportId: z.ZodNumber;
4473
- }, "strip", z.ZodTypeAny, {
4474
- rule: string;
4475
- metric: string;
4476
- trigger: string;
4477
- implementation: string;
4478
- reportId: number;
4479
- }, {
4480
- rule: string;
4481
- metric: string;
4482
- trigger: string;
4483
- implementation: string;
4484
- reportId: number;
4485
- }>;
3939
+ }, z.core.$strip>;
4486
3940
 
4487
3941
  declare type SortingState = ColumnSort[];
4488
3942
 
@@ -4514,21 +3968,9 @@ declare type UiTool_7 = InferUITool<Tool<z.infer<typeof inputSchema_7>, z.infer<
4514
3968
  declare const UpdateCanvasSchema: z.ZodObject<{
4515
3969
  id: z.ZodString;
4516
3970
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4517
- nodes: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
4518
- edges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3971
+ nodes: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3972
+ edges: z.ZodOptional<z.ZodArray<z.ZodAny>>;
4519
3973
  is_public: z.ZodOptional<z.ZodBoolean>;
4520
- }, "strip", z.ZodTypeAny, {
4521
- id: string;
4522
- title?: string | null | undefined;
4523
- nodes?: any[] | undefined;
4524
- edges?: any[] | undefined;
4525
- is_public?: boolean | undefined;
4526
- }, {
4527
- id: string;
4528
- title?: string | null | undefined;
4529
- nodes?: any[] | undefined;
4530
- edges?: any[] | undefined;
4531
- is_public?: boolean | undefined;
4532
- }>;
3974
+ }, z.core.$strip>;
4533
3975
 
4534
3976
  export { }