@magemetrics/core 0.12.0-rc1 → 0.12.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.
package/dist/index.d.ts CHANGED
@@ -152,9 +152,23 @@ declare interface components {
152
152
  [key: string]: unknown;
153
153
  }[];
154
154
  VisualizationWithData: {
155
+ /**
156
+ * @deprecated
157
+ * @description Deprecated: use uuid.
158
+ */
155
159
  id: number;
160
+ uuid: string;
161
+ report_uuid: string;
162
+ /**
163
+ * @deprecated
164
+ * @description Deprecated: use report_uuid.
165
+ */
156
166
  flow_data_id: number;
157
167
  created_at: string;
168
+ /**
169
+ * @deprecated
170
+ * @description Deprecated: use materialization.
171
+ */
158
172
  flow_data?: {
159
173
  is_materialized: boolean | null;
160
174
  last_materialized_at: string | null;
@@ -162,6 +176,13 @@ declare interface components {
162
176
  /** @enum {string|null} */
163
177
  materialized_status: "completed" | "running" | "failed" | null;
164
178
  };
179
+ materialization?: {
180
+ is_materialized: boolean | null;
181
+ last_materialized_at: string | null;
182
+ materialized_error_message: string | null;
183
+ /** @enum {string|null} */
184
+ materialized_status: "completed" | "running" | "failed" | null;
185
+ };
165
186
  configuration: {
166
187
  /** @enum {string} */
167
188
  type: "bar";
@@ -219,9 +240,23 @@ declare interface components {
219
240
  sampledCount: number;
220
241
  };
221
242
  } | {
243
+ /**
244
+ * @deprecated
245
+ * @description Deprecated: use uuid.
246
+ */
222
247
  id: number;
248
+ uuid: string;
249
+ report_uuid: string;
250
+ /**
251
+ * @deprecated
252
+ * @description Deprecated: use report_uuid.
253
+ */
223
254
  flow_data_id: number;
224
255
  created_at: string;
256
+ /**
257
+ * @deprecated
258
+ * @description Deprecated: use materialization.
259
+ */
225
260
  flow_data?: {
226
261
  is_materialized: boolean | null;
227
262
  last_materialized_at: string | null;
@@ -229,6 +264,13 @@ declare interface components {
229
264
  /** @enum {string|null} */
230
265
  materialized_status: "completed" | "running" | "failed" | null;
231
266
  };
267
+ materialization?: {
268
+ is_materialized: boolean | null;
269
+ last_materialized_at: string | null;
270
+ materialized_error_message: string | null;
271
+ /** @enum {string|null} */
272
+ materialized_status: "completed" | "running" | "failed" | null;
273
+ };
232
274
  configuration: {
233
275
  /** @enum {string} */
234
276
  type: "bar";
@@ -297,7 +339,7 @@ declare interface components {
297
339
  /** Format: uuid */
298
340
  flow_id: string | null;
299
341
  /** @enum {string} */
300
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
342
+ status: "pending" | "running" | "post_processing" | "completed" | "failed" | "cancelled";
301
343
  created_at: string;
302
344
  started_at: string | null;
303
345
  completed_at: string | null;
@@ -419,6 +461,11 @@ declare interface components {
419
461
  model: "gemini-3.1-pro-preview";
420
462
  /** @enum {string} */
421
463
  thinking?: "low" | "high";
464
+ } | {
465
+ /** @enum {string} */
466
+ model: "gemini-2.5-pro";
467
+ /** @enum {string} */
468
+ thinking?: "low" | "high";
422
469
  } | {
423
470
  /** @enum {string} */
424
471
  model: "claude-sonnet-4-6" | "claude-opus-4-6";
@@ -426,7 +473,7 @@ declare interface components {
426
473
  effort?: "low" | "medium" | "high";
427
474
  } | {
428
475
  /** @enum {string} */
429
- model: "claude-haiku-4-5";
476
+ model: "claude-haiku-4-5" | "claude-opus-4-5";
430
477
  } | null;
431
478
  /** @enum {string} */
432
479
  execution_platform: "native" | "sandbox" | "sandbox_public";
@@ -468,6 +515,26 @@ declare interface components {
468
515
  /** @description Column name (optional). Omit for table-level items, include for column-level items. */
469
516
  column_name?: string;
470
517
  };
518
+ StatisticsResponse: {
519
+ /** @description The time period in days for these statistics */
520
+ period_days: number;
521
+ user_generated: components["schemas"]["UserGeneratedStatistics"];
522
+ agent_generated: components["schemas"]["AgentGeneratedStatistics"];
523
+ };
524
+ /** @description Statistics for user-generated content (conversations, reports, visualizations) */
525
+ UserGeneratedStatistics: {
526
+ /** @description Number of user-created conversations */
527
+ conversations: number | null;
528
+ /** @description Number of reports generated */
529
+ reports: number | null;
530
+ /** @description Number of visualizations generated */
531
+ visualizations: number | null;
532
+ };
533
+ /** @description Statistics for agent-generated content (custom agent runs only) */
534
+ AgentGeneratedStatistics: {
535
+ /** @description Number of custom agent runs */
536
+ agent_runs: number;
537
+ };
471
538
  };
472
539
  responses: never;
473
540
  parameters: never;
@@ -506,6 +573,11 @@ declare type CustomDataParts = {
506
573
  "report-status": {
507
574
  status: string | null;
508
575
  };
576
+ "report-narration": {
577
+ step_name: string;
578
+ step_order: number;
579
+ narration: string;
580
+ };
509
581
  };
510
582
 
511
583
  /**
@@ -628,6 +700,10 @@ declare const inputSchema: z.ZodObject<{
628
700
  }>;
629
701
  }, z.core.$strip>;
630
702
 
703
+ declare const inputSchema_10: z.ZodObject<{
704
+ question: z.ZodString;
705
+ }, z.core.$strip>;
706
+
631
707
  declare const inputSchema_2: z.ZodObject<{
632
708
  reportId: z.ZodNumber;
633
709
  chartType: z.ZodEnum<{
@@ -650,6 +726,7 @@ declare const inputSchema_4: z.ZodObject<{
650
726
  declare const inputSchema_5: z.ZodObject<{}, z.core.$strip>;
651
727
 
652
728
  declare const inputSchema_6: z.ZodObject<{
729
+ dataset: z.ZodString;
653
730
  table_name: z.ZodString;
654
731
  }, z.core.$strip>;
655
732
 
@@ -735,6 +812,8 @@ export declare class MageMetricsClient {
735
812
  api: {
736
813
  getFlowVisualizations: (flowId: string) => Promise<{
737
814
  id: number;
815
+ uuid: string;
816
+ report_uuid: string;
738
817
  flow_data_id: number;
739
818
  created_at: string;
740
819
  flow_data?: {
@@ -743,6 +822,12 @@ export declare class MageMetricsClient {
743
822
  materialized_error_message: string | null;
744
823
  materialized_status: "completed" | "running" | "failed" | null;
745
824
  } | undefined;
825
+ materialization?: {
826
+ is_materialized: boolean | null;
827
+ last_materialized_at: string | null;
828
+ materialized_error_message: string | null;
829
+ materialized_status: "completed" | "running" | "failed" | null;
830
+ } | undefined;
746
831
  configuration: {
747
832
  type: "bar";
748
833
  title: string;
@@ -788,6 +873,7 @@ export declare class MageMetricsClient {
788
873
  created_at: string;
789
874
  flow_id: string;
790
875
  id: number;
876
+ uuid: string;
791
877
  title: string;
792
878
  request: string | null;
793
879
  data_summary: {
@@ -989,6 +1075,7 @@ declare type MMUiTools = {
989
1075
  paginateDataReport: UiTool_7;
990
1076
  webSearch: UiTool_8;
991
1077
  askUserQuestion: UiTool_9;
1078
+ exploreSchema: UiTool_10;
992
1079
  };
993
1080
 
994
1081
  declare interface operations {
@@ -1094,6 +1181,7 @@ declare interface operations {
1094
1181
  query?: never;
1095
1182
  header?: never;
1096
1183
  path: {
1184
+ /** @description Numeric legacy ID or UUID */
1097
1185
  report_id: string;
1098
1186
  canvas_id: components["schemas"]["CanvasId"];
1099
1187
  };
@@ -1146,6 +1234,7 @@ declare interface operations {
1146
1234
  };
1147
1235
  header?: never;
1148
1236
  path: {
1237
+ /** @description Numeric legacy ID or UUID */
1149
1238
  report_id: string;
1150
1239
  canvas_id: components["schemas"]["CanvasId"];
1151
1240
  };
@@ -1191,6 +1280,7 @@ declare interface operations {
1191
1280
  query?: never;
1192
1281
  header?: never;
1193
1282
  path: {
1283
+ /** @description Numeric legacy ID or UUID */
1194
1284
  report_id: string;
1195
1285
  canvas_id: components["schemas"]["CanvasId"];
1196
1286
  };
@@ -1464,7 +1554,12 @@ declare interface operations {
1464
1554
  "application/json": {
1465
1555
  created_at: string;
1466
1556
  flow_id: string;
1557
+ /**
1558
+ * @deprecated
1559
+ * @description Deprecated: use uuid.
1560
+ */
1467
1561
  id: number;
1562
+ uuid: string;
1468
1563
  title: string;
1469
1564
  request: string | null;
1470
1565
  data_summary: {
@@ -1526,120 +1621,78 @@ declare interface operations {
1526
1621
  };
1527
1622
  };
1528
1623
  };
1529
- getDataReportFeedback: {
1624
+ getDataReportExplainability: {
1530
1625
  parameters: {
1531
1626
  query?: never;
1532
1627
  header?: {
1533
1628
  "sp-access-token"?: string;
1534
1629
  };
1535
1630
  path: {
1631
+ /** @description Numeric legacy ID or UUID */
1536
1632
  report_id: string;
1537
1633
  };
1538
1634
  cookie?: never;
1539
1635
  };
1540
1636
  requestBody?: never;
1541
1637
  responses: {
1542
- /** @description The feedback for the report */
1638
+ /** @description The explainability of the report */
1543
1639
  200: {
1544
1640
  headers: {
1545
1641
  [name: string]: unknown;
1546
1642
  };
1547
1643
  content: {
1548
1644
  "application/json": {
1549
- created_at: string;
1645
+ sql_explanation?: {
1646
+ chunk_title: string;
1647
+ chunk_explanation: string;
1648
+ lines: {
1649
+ sql: string;
1650
+ explanation: string;
1651
+ }[];
1652
+ }[] | null;
1653
+ business_explanation?: {
1654
+ summary: string;
1655
+ implementation: string[];
1656
+ assumptions: {
1657
+ /** @enum {string} */
1658
+ type: "grain" | "completeness" | "transformation" | "relationship" | "other";
1659
+ details: string;
1660
+ explanation: string;
1661
+ }[];
1662
+ } | null;
1663
+ columns_lineage?: {
1664
+ [key: string]: {
1665
+ nodes: {
1666
+ id: string;
1667
+ /** @enum {string} */
1668
+ type: "entity" | "attribute" | "filter" | "process" | "combine" | "result";
1669
+ explanation: string;
1670
+ }[];
1671
+ edges: {
1672
+ source: string;
1673
+ target: string;
1674
+ }[];
1675
+ };
1676
+ } | null;
1677
+ confidence_score?: number;
1678
+ confidence_score_reason?: string;
1679
+ assumptions_score?: number;
1680
+ assumptions_score_reason?: string;
1681
+ /** Format: uuid */
1682
+ report_id: string;
1683
+ /**
1684
+ * @deprecated
1685
+ * @description Deprecated: use report_id.
1686
+ */
1550
1687
  flow_data_id: number;
1551
- /** @enum {string} */
1552
- helpfulness: "helpful" | "partially helpful" | "not helpful" | "incorrect";
1553
- id: number;
1554
- } | null;
1555
- };
1556
- };
1557
- /** @description Unable to retrieve feedback */
1558
- 404: {
1559
- headers: {
1560
- [name: string]: unknown;
1561
- };
1562
- content: {
1563
- "application/json": {
1564
- error: string;
1565
- };
1566
- };
1567
- };
1568
- /** @description Something wrong happened */
1569
- 500: {
1570
- headers: {
1571
- [name: string]: unknown;
1572
- };
1573
- content: {
1574
- "application/json": {
1575
- error: string;
1576
- };
1577
- };
1578
- };
1579
- };
1580
- };
1581
- upsertReportFeedback: {
1582
- parameters: {
1583
- query?: never;
1584
- header?: {
1585
- "sp-access-token"?: string;
1586
- };
1587
- path: {
1588
- report_id: string;
1589
- };
1590
- cookie?: never;
1591
- };
1592
- /** @description The feedback for the flow data */
1593
- requestBody: {
1594
- content: {
1595
- "application/json": {
1596
- /** @enum {string} */
1597
- helpfulness: "helpful" | "partially helpful" | "not helpful" | "incorrect";
1598
- };
1599
- };
1600
- };
1601
- responses: {
1602
- /** @description Successfully upserted feedback */
1603
- 200: {
1604
- headers: {
1605
- [name: string]: unknown;
1606
- };
1607
- content?: never;
1608
- };
1609
- /** @description Something wrong happened */
1610
- 500: {
1611
- headers: {
1612
- [name: string]: unknown;
1613
- };
1614
- content: {
1615
- "application/json": {
1616
- error: string;
1688
+ friendliness_score?: number;
1689
+ friendliness_score_reason?: string;
1690
+ output_dataset?: string;
1691
+ sql?: string;
1617
1692
  };
1618
1693
  };
1619
1694
  };
1620
- };
1621
- };
1622
- deleteReportFeedback: {
1623
- parameters: {
1624
- query?: never;
1625
- header?: {
1626
- "sp-access-token"?: string;
1627
- };
1628
- path: {
1629
- report_id: string;
1630
- };
1631
- cookie?: never;
1632
- };
1633
- requestBody?: never;
1634
- responses: {
1635
- /** @description Successfully deleted feedback */
1636
- 200: {
1637
- headers: {
1638
- [name: string]: unknown;
1639
- };
1640
- content?: never;
1641
- };
1642
- /** @description Unable to retrieve feedback */
1695
+ /** @description Unable to retrieve report with this id */
1643
1696
  404: {
1644
1697
  headers: {
1645
1698
  [name: string]: unknown;
@@ -1663,7 +1716,7 @@ declare interface operations {
1663
1716
  };
1664
1717
  };
1665
1718
  };
1666
- getDataReportExplainability: {
1719
+ getDataReportNarrations: {
1667
1720
  parameters: {
1668
1721
  query?: never;
1669
1722
  header?: {
@@ -1676,55 +1729,17 @@ declare interface operations {
1676
1729
  };
1677
1730
  requestBody?: never;
1678
1731
  responses: {
1679
- /** @description The explainability of the report */
1732
+ /** @description The narration steps for the report */
1680
1733
  200: {
1681
1734
  headers: {
1682
1735
  [name: string]: unknown;
1683
1736
  };
1684
1737
  content: {
1685
1738
  "application/json": {
1686
- sql_explanation?: {
1687
- chunk_title: string;
1688
- chunk_explanation: string;
1689
- lines: {
1690
- sql: string;
1691
- explanation: string;
1692
- }[];
1693
- }[] | null;
1694
- business_explanation?: {
1695
- summary: string;
1696
- implementation: string[];
1697
- assumptions: {
1698
- /** @enum {string} */
1699
- type: "grain" | "completeness" | "transformation" | "relationship" | "other";
1700
- details: string;
1701
- explanation: string;
1702
- }[];
1703
- } | null;
1704
- columns_lineage?: {
1705
- [key: string]: {
1706
- nodes: {
1707
- id: string;
1708
- /** @enum {string} */
1709
- type: "entity" | "attribute" | "filter" | "process" | "combine" | "result";
1710
- explanation: string;
1711
- }[];
1712
- edges: {
1713
- source: string;
1714
- target: string;
1715
- }[];
1716
- };
1717
- } | null;
1718
- confidence_score?: number;
1719
- confidence_score_reason?: string;
1720
- assumptions_score?: number;
1721
- assumptions_score_reason?: string;
1722
- flow_data_id: number;
1723
- friendliness_score?: number;
1724
- friendliness_score_reason?: string;
1725
- output_dataset?: string;
1726
- sql?: string;
1727
- };
1739
+ step_name: string;
1740
+ step_order: number;
1741
+ narration: string;
1742
+ }[];
1728
1743
  };
1729
1744
  };
1730
1745
  /** @description Unable to retrieve report with this id */
@@ -1763,8 +1778,8 @@ declare interface operations {
1763
1778
  requestBody: {
1764
1779
  content: {
1765
1780
  "application/json": {
1766
- /** @description The report id */
1767
- report_id: number;
1781
+ /** @description The report identifier (UUID or legacy numeric ID) */
1782
+ report_id: number | string;
1768
1783
  /** @description The column name to get lineage for */
1769
1784
  column_name: string;
1770
1785
  };
@@ -1883,6 +1898,7 @@ declare interface operations {
1883
1898
  "sp-access-token"?: string;
1884
1899
  };
1885
1900
  path: {
1901
+ /** @description Numeric legacy ID or UUID */
1886
1902
  report_id: string;
1887
1903
  };
1888
1904
  cookie?: never;
@@ -1929,6 +1945,7 @@ declare interface operations {
1929
1945
  "sp-access-token"?: string;
1930
1946
  };
1931
1947
  path: {
1948
+ /** @description Numeric legacy ID or UUID */
1932
1949
  report_id: string;
1933
1950
  };
1934
1951
  cookie?: never;
@@ -1984,6 +2001,7 @@ declare interface operations {
1984
2001
  "sp-access-token"?: string;
1985
2002
  };
1986
2003
  path: {
2004
+ /** @description Numeric legacy ID or UUID */
1987
2005
  report_id: string;
1988
2006
  };
1989
2007
  cookie?: never;
@@ -2030,6 +2048,7 @@ declare interface operations {
2030
2048
  "sp-access-token"?: string;
2031
2049
  };
2032
2050
  path: {
2051
+ /** @description Numeric legacy ID or UUID */
2033
2052
  report_id: string;
2034
2053
  };
2035
2054
  cookie?: never;
@@ -2079,6 +2098,7 @@ declare interface operations {
2079
2098
  "sp-access-token"?: string;
2080
2099
  };
2081
2100
  path: {
2101
+ /** @description Numeric legacy ID or UUID */
2082
2102
  report_id: string;
2083
2103
  };
2084
2104
  cookie?: never;
@@ -2094,7 +2114,12 @@ declare interface operations {
2094
2114
  "application/json": {
2095
2115
  created_at: string;
2096
2116
  flow_id: string;
2117
+ /**
2118
+ * @deprecated
2119
+ * @description Deprecated: use uuid.
2120
+ */
2097
2121
  id: number;
2122
+ uuid: string;
2098
2123
  title: string;
2099
2124
  request: string | null;
2100
2125
  data_summary: {
@@ -2219,102 +2244,6 @@ declare interface operations {
2219
2244
  };
2220
2245
  };
2221
2246
  };
2222
- refreshMaterializedViews: {
2223
- parameters: {
2224
- query?: never;
2225
- header?: {
2226
- "sp-access-token"?: string;
2227
- };
2228
- path?: never;
2229
- cookie?: never;
2230
- };
2231
- requestBody: {
2232
- content: {
2233
- "application/json": {
2234
- /** @description List of flow_data IDs to refresh */
2235
- flow_data_ids: number[];
2236
- };
2237
- };
2238
- };
2239
- responses: {
2240
- /** @description Successfully triggered refresh for materialized views */
2241
- 200: {
2242
- headers: {
2243
- [name: string]: unknown;
2244
- };
2245
- content: {
2246
- "application/json": {
2247
- /** @enum {string} */
2248
- status: "success";
2249
- triggered_at: string;
2250
- };
2251
- };
2252
- };
2253
- /** @description Invalid request */
2254
- 400: {
2255
- headers: {
2256
- [name: string]: unknown;
2257
- };
2258
- content: {
2259
- "application/json": {
2260
- error: string;
2261
- };
2262
- };
2263
- };
2264
- /** @description Something wrong happened */
2265
- 500: {
2266
- headers: {
2267
- [name: string]: unknown;
2268
- };
2269
- content: {
2270
- "application/json": {
2271
- error: string;
2272
- };
2273
- };
2274
- };
2275
- };
2276
- };
2277
- getMaterializationStatus: {
2278
- parameters: {
2279
- query: {
2280
- /** @description Comma-separated list of flow_data IDs */
2281
- ids: string;
2282
- };
2283
- header?: {
2284
- "sp-access-token"?: string;
2285
- };
2286
- path?: never;
2287
- cookie?: never;
2288
- };
2289
- requestBody?: never;
2290
- responses: {
2291
- /** @description Materialization status for the requested flow_data IDs */
2292
- 200: {
2293
- headers: {
2294
- [name: string]: unknown;
2295
- };
2296
- content: {
2297
- "application/json": {
2298
- id: number;
2299
- /** @enum {string|null} */
2300
- materialized_status: "completed" | "running" | "failed" | null;
2301
- last_materialized_at: string | null;
2302
- }[];
2303
- };
2304
- };
2305
- /** @description Something wrong happened */
2306
- 500: {
2307
- headers: {
2308
- [name: string]: unknown;
2309
- };
2310
- content: {
2311
- "application/json": {
2312
- error: string;
2313
- };
2314
- };
2315
- };
2316
- };
2317
- };
2318
2247
  getPromptStarters: {
2319
2248
  parameters: {
2320
2249
  query?: {
@@ -2559,9 +2488,23 @@ declare interface operations {
2559
2488
  };
2560
2489
  content: {
2561
2490
  "application/json": {
2491
+ /**
2492
+ * @deprecated
2493
+ * @description Deprecated: use uuid.
2494
+ */
2562
2495
  id: number;
2496
+ uuid: string;
2497
+ report_uuid: string;
2498
+ /**
2499
+ * @deprecated
2500
+ * @description Deprecated: use report_uuid.
2501
+ */
2563
2502
  flow_data_id: number;
2564
2503
  created_at: string;
2504
+ /**
2505
+ * @deprecated
2506
+ * @description Deprecated: use materialization.
2507
+ */
2565
2508
  flow_data?: {
2566
2509
  is_materialized: boolean | null;
2567
2510
  last_materialized_at: string | null;
@@ -2569,6 +2512,13 @@ declare interface operations {
2569
2512
  /** @enum {string|null} */
2570
2513
  materialized_status: "completed" | "running" | "failed" | null;
2571
2514
  };
2515
+ materialization?: {
2516
+ is_materialized: boolean | null;
2517
+ last_materialized_at: string | null;
2518
+ materialized_error_message: string | null;
2519
+ /** @enum {string|null} */
2520
+ materialized_status: "completed" | "running" | "failed" | null;
2521
+ };
2572
2522
  configuration: {
2573
2523
  /** @enum {string} */
2574
2524
  type: "bar";
@@ -3047,7 +2997,7 @@ declare interface operations {
3047
2997
  listAgentRuns: {
3048
2998
  parameters: {
3049
2999
  query?: {
3050
- status?: "pending" | "running" | "completed" | "failed" | "cancelled";
3000
+ status?: "pending" | "running" | "post_processing" | "completed" | "failed" | "cancelled";
3051
3001
  agent_id?: string;
3052
3002
  limit?: number;
3053
3003
  };
@@ -3278,6 +3228,11 @@ declare interface operations {
3278
3228
  model: "gemini-3.1-pro-preview";
3279
3229
  /** @enum {string} */
3280
3230
  thinking?: "low" | "high";
3231
+ } | {
3232
+ /** @enum {string} */
3233
+ model: "gemini-2.5-pro";
3234
+ /** @enum {string} */
3235
+ thinking?: "low" | "high";
3281
3236
  } | {
3282
3237
  /** @enum {string} */
3283
3238
  model: "claude-sonnet-4-6" | "claude-opus-4-6";
@@ -3285,7 +3240,7 @@ declare interface operations {
3285
3240
  effort?: "low" | "medium" | "high";
3286
3241
  } | {
3287
3242
  /** @enum {string} */
3288
- model: "claude-haiku-4-5";
3243
+ model: "claude-haiku-4-5" | "claude-opus-4-5";
3289
3244
  };
3290
3245
  /**
3291
3246
  * @default native
@@ -3437,6 +3392,11 @@ declare interface operations {
3437
3392
  model: "gemini-3.1-pro-preview";
3438
3393
  /** @enum {string} */
3439
3394
  thinking?: "low" | "high";
3395
+ } | {
3396
+ /** @enum {string} */
3397
+ model: "gemini-2.5-pro";
3398
+ /** @enum {string} */
3399
+ thinking?: "low" | "high";
3440
3400
  } | {
3441
3401
  /** @enum {string} */
3442
3402
  model: "claude-sonnet-4-6" | "claude-opus-4-6";
@@ -3444,7 +3404,7 @@ declare interface operations {
3444
3404
  effort?: "low" | "medium" | "high";
3445
3405
  } | {
3446
3406
  /** @enum {string} */
3447
- model: "claude-haiku-4-5";
3407
+ model: "claude-haiku-4-5" | "claude-opus-4-5";
3448
3408
  } | null;
3449
3409
  /** @enum {string} */
3450
3410
  execution_platform?: "native" | "sandbox" | "sandbox_public";
@@ -5167,6 +5127,7 @@ declare interface operations {
5167
5127
  "application/json": {
5168
5128
  /** @description The natural language data request */
5169
5129
  request: string;
5130
+ execution_context?: components["schemas"]["ExecutionContextInput"];
5170
5131
  };
5171
5132
  };
5172
5133
  };
@@ -5266,6 +5227,42 @@ declare interface operations {
5266
5227
  };
5267
5228
  };
5268
5229
  };
5230
+ getStatistics: {
5231
+ parameters: {
5232
+ query?: {
5233
+ /** @description Time period in days (1-90, default: 30) */
5234
+ days?: number;
5235
+ };
5236
+ header?: {
5237
+ "sp-access-token"?: string;
5238
+ };
5239
+ path?: never;
5240
+ cookie?: never;
5241
+ };
5242
+ requestBody?: never;
5243
+ responses: {
5244
+ /** @description Statistics retrieved successfully */
5245
+ 200: {
5246
+ headers: {
5247
+ [name: string]: unknown;
5248
+ };
5249
+ content: {
5250
+ "application/json": components["schemas"]["StatisticsResponse"];
5251
+ };
5252
+ };
5253
+ /** @description Internal server error */
5254
+ 500: {
5255
+ headers: {
5256
+ [name: string]: unknown;
5257
+ };
5258
+ content: {
5259
+ "application/json": {
5260
+ error: string;
5261
+ };
5262
+ };
5263
+ };
5264
+ };
5265
+ };
5269
5266
  }
5270
5267
 
5271
5268
  declare type PatchParam<T, Config extends RemoveParamsConfig, P extends keyof Config> = Simplify<T extends {
@@ -5438,30 +5435,30 @@ declare interface paths {
5438
5435
  patch?: never;
5439
5436
  trace?: never;
5440
5437
  };
5441
- "/api/v1/data-reports/{report_id}/feedback": {
5438
+ "/api/v1/data-reports/{report_id}/explainability": {
5442
5439
  parameters: {
5443
5440
  query?: never;
5444
5441
  header?: never;
5445
5442
  path?: never;
5446
5443
  cookie?: never;
5447
5444
  };
5448
- get: operations["getDataReportFeedback"];
5445
+ get: operations["getDataReportExplainability"];
5449
5446
  put?: never;
5450
- post: operations["upsertReportFeedback"];
5451
- delete: operations["deleteReportFeedback"];
5447
+ post?: never;
5448
+ delete?: never;
5452
5449
  options?: never;
5453
5450
  head?: never;
5454
5451
  patch?: never;
5455
5452
  trace?: never;
5456
5453
  };
5457
- "/api/v1/data-reports/{report_id}/explainability": {
5454
+ "/api/v1/data-reports/{report_id}/narrations": {
5458
5455
  parameters: {
5459
5456
  query?: never;
5460
5457
  header?: never;
5461
5458
  path?: never;
5462
5459
  cookie?: never;
5463
5460
  };
5464
- get: operations["getDataReportExplainability"];
5461
+ get: operations["getDataReportNarrations"];
5465
5462
  put?: never;
5466
5463
  post?: never;
5467
5464
  delete?: never;
@@ -5598,38 +5595,6 @@ declare interface paths {
5598
5595
  patch?: never;
5599
5596
  trace?: never;
5600
5597
  };
5601
- "/api/v1/flow_data/v1/materialized_views/refresh": {
5602
- parameters: {
5603
- query?: never;
5604
- header?: never;
5605
- path?: never;
5606
- cookie?: never;
5607
- };
5608
- get?: never;
5609
- put?: never;
5610
- post: operations["refreshMaterializedViews"];
5611
- delete?: never;
5612
- options?: never;
5613
- head?: never;
5614
- patch?: never;
5615
- trace?: never;
5616
- };
5617
- "/api/v1/flow_data/materialization-status": {
5618
- parameters: {
5619
- query?: never;
5620
- header?: never;
5621
- path?: never;
5622
- cookie?: never;
5623
- };
5624
- get: operations["getMaterializationStatus"];
5625
- put?: never;
5626
- post?: never;
5627
- delete?: never;
5628
- options?: never;
5629
- head?: never;
5630
- patch?: never;
5631
- trace?: never;
5632
- };
5633
5598
  "/api/v1/prompt-starters": {
5634
5599
  parameters: {
5635
5600
  query?: never;
@@ -6046,6 +6011,22 @@ declare interface paths {
6046
6011
  patch?: never;
6047
6012
  trace?: never;
6048
6013
  };
6014
+ "/api/v1/statistics": {
6015
+ parameters: {
6016
+ query?: never;
6017
+ header?: never;
6018
+ path?: never;
6019
+ cookie?: never;
6020
+ };
6021
+ get: operations["getStatistics"];
6022
+ put?: never;
6023
+ post?: never;
6024
+ delete?: never;
6025
+ options?: never;
6026
+ head?: never;
6027
+ patch?: never;
6028
+ trace?: never;
6029
+ };
6049
6030
  }
6050
6031
 
6051
6032
  declare type PublicApiClient = Simplify<Client<PublicPaths, `${string}/${string}`>>;
@@ -6189,6 +6170,17 @@ declare const redactedOutputSchema_7: z.ZodObject<{
6189
6170
  }, z.core.$strip>], "status">>;
6190
6171
  }, z.core.$strip>;
6191
6172
 
6173
+ declare const redactedOutputSchema_8: z.ZodObject<{
6174
+ tool: z.ZodLiteral<"exploreSchema">;
6175
+ result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6176
+ status: z.ZodLiteral<"success">;
6177
+ public: z.ZodObject<{}, z.core.$loose>;
6178
+ }, z.core.$strip>, z.ZodObject<{
6179
+ status: z.ZodLiteral<"error">;
6180
+ message: z.ZodString;
6181
+ }, z.core.$strip>], "status">>;
6182
+ }, z.core.$strip>;
6183
+
6192
6184
  declare const RedactedThinkResponse: z.ZodObject<{
6193
6185
  tool: z.ZodDefault<z.ZodLiteral<"think">>;
6194
6186
  result: z.ZodOptional<z.ZodObject<{
@@ -6271,6 +6263,8 @@ declare type ToRemove = {
6271
6263
 
6272
6264
  declare type UiTool = InferUITool<Tool<z.infer<typeof inputSchema>, z.infer<typeof redactedOutputSchema>>>;
6273
6265
 
6266
+ declare type UiTool_10 = InferUITool<Tool<z.infer<typeof inputSchema_10>, z.infer<typeof redactedOutputSchema_8>>>;
6267
+
6274
6268
  declare type UiTool_2 = InferUITool<Tool<z.infer<typeof inputSchema_2>, z.infer<typeof redactedOutputSchema_2>>>;
6275
6269
 
6276
6270
  declare type UiTool_3 = InferUITool<Tool<z.infer<typeof inputSchema_3>, z.infer<typeof RedactedThinkResponse>>>;