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