@magemetrics/core 0.10.0 → 0.11.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 +187 -1189
- package/dist/index.js +31 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ var addApiKeyHeader = (apiKey) => {
|
|
|
57
57
|
|
|
58
58
|
// package.json
|
|
59
59
|
var package_default = {
|
|
60
|
-
version: "0.
|
|
60
|
+
version: "0.11.0"};
|
|
61
61
|
|
|
62
62
|
// src/core/MageMetricsEventEmitter.ts
|
|
63
63
|
var MageMetricsEventEmitter = class {
|
|
@@ -494,6 +494,7 @@ var GetApiInformation = createRoute({
|
|
|
494
494
|
method: "get",
|
|
495
495
|
path: "/api/v1/auth/apiInformation",
|
|
496
496
|
operationId: "getApiInformation",
|
|
497
|
+
tags: ["public"],
|
|
497
498
|
request: {
|
|
498
499
|
query: GetApiInformationInputSchema
|
|
499
500
|
},
|
|
@@ -575,6 +576,7 @@ var ExchangeExternalToken = createRoute({
|
|
|
575
576
|
method: "post",
|
|
576
577
|
path: "/api/v1/auth/exchangeExternalToken",
|
|
577
578
|
operationId: "exchangeExternalToken",
|
|
579
|
+
tags: ["public"],
|
|
578
580
|
request: {
|
|
579
581
|
body: {
|
|
580
582
|
required: true,
|
|
@@ -970,7 +972,6 @@ var ReportSchema = z.object({
|
|
|
970
972
|
data_summary: z.looseObject({
|
|
971
973
|
columns: z.record(z.string(), ReportColumnSchema)
|
|
972
974
|
}),
|
|
973
|
-
bookmarked: z.boolean(),
|
|
974
975
|
status: z.string().nullable(),
|
|
975
976
|
is_removed: z.boolean(),
|
|
976
977
|
...MaterializationFieldsSchema.shape
|
|
@@ -1192,6 +1193,7 @@ var RetrieveFlowDataReports = createRoute({
|
|
|
1192
1193
|
method: "get",
|
|
1193
1194
|
path: "/api/v1/flows/{flowId}/data-reports",
|
|
1194
1195
|
operationId: "retrieveFlowDataReports",
|
|
1196
|
+
tags: ["public"],
|
|
1195
1197
|
request: {
|
|
1196
1198
|
headers: SupabaseHeaderSchema,
|
|
1197
1199
|
params: FlowIdParam
|
|
@@ -1229,6 +1231,7 @@ createRoute({
|
|
|
1229
1231
|
method: "get",
|
|
1230
1232
|
path: "/api/v1/flows/{flowId}/data-reports/last/status",
|
|
1231
1233
|
operationId: "retrieveLatestDataReportStatus",
|
|
1234
|
+
tags: ["public"],
|
|
1232
1235
|
request: {
|
|
1233
1236
|
headers: SupabaseHeaderSchema,
|
|
1234
1237
|
params: FlowIdParam
|
|
@@ -1266,6 +1269,7 @@ var RetrieveFlow = createRoute({
|
|
|
1266
1269
|
method: "get",
|
|
1267
1270
|
path: "/api/v1/flows/{flowId}",
|
|
1268
1271
|
operationId: "retrieveFlow",
|
|
1272
|
+
tags: ["public"],
|
|
1269
1273
|
request: {
|
|
1270
1274
|
headers: SupabaseHeaderSchema,
|
|
1271
1275
|
params: FlowIdParam
|
|
@@ -1303,6 +1307,7 @@ var RetrieveRecentFlows = createRoute({
|
|
|
1303
1307
|
method: "get",
|
|
1304
1308
|
path: "/api/v1/recent-flows",
|
|
1305
1309
|
operationId: "retrieveRecentFlows",
|
|
1310
|
+
tags: ["public"],
|
|
1306
1311
|
request: {
|
|
1307
1312
|
headers: SupabaseHeaderSchema,
|
|
1308
1313
|
query: z.object({
|
|
@@ -1334,6 +1339,7 @@ var GetReportColumns = createRoute({
|
|
|
1334
1339
|
method: "get",
|
|
1335
1340
|
path: "/api/v1/data-reports/{report_id}/columns",
|
|
1336
1341
|
operationId: "getDataReportColumns",
|
|
1342
|
+
tags: ["public"],
|
|
1337
1343
|
request: {
|
|
1338
1344
|
headers: SupabaseHeaderSchema,
|
|
1339
1345
|
params: ReportIdParam
|
|
@@ -1371,6 +1377,7 @@ var ExportReportData = createRoute({
|
|
|
1371
1377
|
method: "get",
|
|
1372
1378
|
path: "/api/v1/data-reports/{report_id}/export",
|
|
1373
1379
|
operationId: "exportReportData",
|
|
1380
|
+
tags: ["public"],
|
|
1374
1381
|
request: {
|
|
1375
1382
|
headers: SupabaseHeaderSchema,
|
|
1376
1383
|
params: ReportIdParam
|
|
@@ -1408,6 +1415,7 @@ var GetReportData = createRoute({
|
|
|
1408
1415
|
method: "get",
|
|
1409
1416
|
path: "/api/v1/data-reports/{report_id}/data",
|
|
1410
1417
|
operationId: "getDataReportData",
|
|
1418
|
+
tags: ["public"],
|
|
1411
1419
|
request: {
|
|
1412
1420
|
headers: SupabaseHeaderSchema,
|
|
1413
1421
|
params: ReportIdParam,
|
|
@@ -1452,6 +1460,7 @@ var GetReportRowCount = createRoute({
|
|
|
1452
1460
|
method: "get",
|
|
1453
1461
|
path: "/api/v1/data-reports/{report_id}/count",
|
|
1454
1462
|
operationId: "getDataReportRowCount",
|
|
1463
|
+
tags: ["public"],
|
|
1455
1464
|
request: {
|
|
1456
1465
|
headers: SupabaseHeaderSchema,
|
|
1457
1466
|
params: ReportIdParam
|
|
@@ -1491,6 +1500,7 @@ createRoute({
|
|
|
1491
1500
|
method: "get",
|
|
1492
1501
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1493
1502
|
operationId: "getDataReportFeedback",
|
|
1503
|
+
tags: ["public"],
|
|
1494
1504
|
request: {
|
|
1495
1505
|
headers: SupabaseHeaderSchema,
|
|
1496
1506
|
params: ReportIdParam
|
|
@@ -1528,6 +1538,7 @@ createRoute({
|
|
|
1528
1538
|
method: "post",
|
|
1529
1539
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1530
1540
|
operationId: "upsertReportFeedback",
|
|
1541
|
+
tags: ["public"],
|
|
1531
1542
|
request: {
|
|
1532
1543
|
headers: SupabaseHeaderSchema,
|
|
1533
1544
|
params: ReportIdParam,
|
|
@@ -1563,6 +1574,7 @@ createRoute({
|
|
|
1563
1574
|
method: "delete",
|
|
1564
1575
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1565
1576
|
operationId: "deleteReportFeedback",
|
|
1577
|
+
tags: ["public"],
|
|
1566
1578
|
request: {
|
|
1567
1579
|
headers: SupabaseHeaderSchema,
|
|
1568
1580
|
params: ReportIdParam
|
|
@@ -1595,6 +1607,7 @@ createRoute({
|
|
|
1595
1607
|
method: "get",
|
|
1596
1608
|
path: "/api/v1/data-reports/{report_id}/explainability",
|
|
1597
1609
|
operationId: "getDataReportExplainability",
|
|
1610
|
+
tags: ["public"],
|
|
1598
1611
|
request: {
|
|
1599
1612
|
headers: SupabaseHeaderSchema,
|
|
1600
1613
|
params: ReportIdParam
|
|
@@ -1656,6 +1669,7 @@ createRoute({
|
|
|
1656
1669
|
method: "post",
|
|
1657
1670
|
path: "/api/v1/workflows/column_lineage",
|
|
1658
1671
|
operationId: "getColumnLineage",
|
|
1672
|
+
tags: ["public"],
|
|
1659
1673
|
request: {
|
|
1660
1674
|
headers: SupabaseHeaderSchema,
|
|
1661
1675
|
body: {
|
|
@@ -1711,6 +1725,7 @@ createRoute({
|
|
|
1711
1725
|
method: "get",
|
|
1712
1726
|
path: "/api/v1/data-reports/{report_id}",
|
|
1713
1727
|
operationId: "getDataReport",
|
|
1728
|
+
tags: ["public"],
|
|
1714
1729
|
request: {
|
|
1715
1730
|
headers: SupabaseHeaderSchema,
|
|
1716
1731
|
params: ReportIdParam
|
|
@@ -1748,6 +1763,7 @@ createRoute({
|
|
|
1748
1763
|
method: "post",
|
|
1749
1764
|
path: "/api/v1/flow_data/v1/materialized_views/refresh",
|
|
1750
1765
|
operationId: "refreshMaterializedViews",
|
|
1766
|
+
tags: ["public"],
|
|
1751
1767
|
request: {
|
|
1752
1768
|
headers: SupabaseHeaderSchema,
|
|
1753
1769
|
body: {
|
|
@@ -1800,6 +1816,7 @@ createRoute({
|
|
|
1800
1816
|
method: "get",
|
|
1801
1817
|
path: "/api/v1/flow_data/materialization-status",
|
|
1802
1818
|
operationId: "getMaterializationStatus",
|
|
1819
|
+
tags: ["public"],
|
|
1803
1820
|
request: {
|
|
1804
1821
|
headers: SupabaseHeaderSchema,
|
|
1805
1822
|
query: z.object({
|
|
@@ -1835,6 +1852,7 @@ var CreateFlow = createRoute({
|
|
|
1835
1852
|
method: "post",
|
|
1836
1853
|
path: "/api/v1/flows",
|
|
1837
1854
|
operationId: "createFlow",
|
|
1855
|
+
tags: ["public"],
|
|
1838
1856
|
request: {
|
|
1839
1857
|
headers: SupabaseHeaderSchema,
|
|
1840
1858
|
body: {
|
|
@@ -1893,6 +1911,7 @@ var CreateSpeechToken = createRoute({
|
|
|
1893
1911
|
method: "post",
|
|
1894
1912
|
path: "/api/v1/speech/token",
|
|
1895
1913
|
operationId: "createSpeechToken",
|
|
1914
|
+
tags: ["public"],
|
|
1896
1915
|
request: {
|
|
1897
1916
|
headers: SupabaseHeaderSchema
|
|
1898
1917
|
},
|
|
@@ -1936,6 +1955,7 @@ var TriggerFlow = createRoute({
|
|
|
1936
1955
|
method: "post",
|
|
1937
1956
|
path: "/api/v1/trigger-flow",
|
|
1938
1957
|
operationId: "triggerFlow",
|
|
1958
|
+
tags: ["public"],
|
|
1939
1959
|
request: {
|
|
1940
1960
|
headers: SupabaseHeaderSchema,
|
|
1941
1961
|
body: {
|
|
@@ -2207,6 +2227,7 @@ var ListCanvases = createRoute({
|
|
|
2207
2227
|
method: "get",
|
|
2208
2228
|
path: "/api/v1/canvases",
|
|
2209
2229
|
operationId: "listCanvases",
|
|
2230
|
+
tags: ["public"],
|
|
2210
2231
|
request: {
|
|
2211
2232
|
headers: SupabaseHeaderSchema,
|
|
2212
2233
|
query: z.object({
|
|
@@ -2240,6 +2261,7 @@ var RetrieveCanvas = createRoute({
|
|
|
2240
2261
|
method: "get",
|
|
2241
2262
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2242
2263
|
operationId: "retrieveCanvas",
|
|
2264
|
+
tags: ["public"],
|
|
2243
2265
|
request: {
|
|
2244
2266
|
headers: SupabaseHeaderSchema,
|
|
2245
2267
|
params: z.object({
|
|
@@ -2279,6 +2301,7 @@ var CreateCanvas = createRoute({
|
|
|
2279
2301
|
method: "post",
|
|
2280
2302
|
path: "/api/v1/canvas/",
|
|
2281
2303
|
operationId: "createCanvas",
|
|
2304
|
+
tags: ["public"],
|
|
2282
2305
|
request: {
|
|
2283
2306
|
headers: SupabaseHeaderSchema,
|
|
2284
2307
|
body: {
|
|
@@ -2325,6 +2348,7 @@ var UpdateCanvas = createRoute({
|
|
|
2325
2348
|
method: "put",
|
|
2326
2349
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2327
2350
|
operationId: "updateCanvas",
|
|
2351
|
+
tags: ["public"],
|
|
2328
2352
|
request: {
|
|
2329
2353
|
headers: SupabaseHeaderSchema,
|
|
2330
2354
|
params: z.object({
|
|
@@ -2374,6 +2398,7 @@ var DeleteCanvas = createRoute({
|
|
|
2374
2398
|
method: "delete",
|
|
2375
2399
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2376
2400
|
operationId: "deleteCanvas",
|
|
2401
|
+
tags: ["public"],
|
|
2377
2402
|
request: {
|
|
2378
2403
|
headers: SupabaseHeaderSchema,
|
|
2379
2404
|
params: z.object({
|
|
@@ -2408,6 +2433,7 @@ var GetCanvasForFlow = createRoute({
|
|
|
2408
2433
|
method: "get",
|
|
2409
2434
|
path: "/api/v1/canvas/flow/{flow_id}",
|
|
2410
2435
|
operationId: "getCanvasForFlow",
|
|
2436
|
+
tags: ["public"],
|
|
2411
2437
|
request: {
|
|
2412
2438
|
headers: SupabaseHeaderSchema,
|
|
2413
2439
|
params: z.object({
|
|
@@ -2449,6 +2475,7 @@ var ChatMessages = createRoute({
|
|
|
2449
2475
|
method: "get",
|
|
2450
2476
|
path: "/api/v1/chat/{flowId}/messages",
|
|
2451
2477
|
operationId: "retrieveChatMessages",
|
|
2478
|
+
tags: ["public"],
|
|
2452
2479
|
request: {
|
|
2453
2480
|
headers: SupabaseHeaderSchema,
|
|
2454
2481
|
params: FlowIdParam
|
|
@@ -2759,7 +2786,6 @@ var BaseVisualizationSchema = z.object({
|
|
|
2759
2786
|
flow_data_id: z.number(),
|
|
2760
2787
|
created_at: z.string(),
|
|
2761
2788
|
sql: z.string(),
|
|
2762
|
-
bookmarked: z.boolean(),
|
|
2763
2789
|
data_sample: z.array(z.record(z.string(), z.unknown())),
|
|
2764
2790
|
is_sample: z.boolean(),
|
|
2765
2791
|
data_summary: z.record(z.string(), z.unknown()),
|
|
@@ -2819,6 +2845,7 @@ createRoute({
|
|
|
2819
2845
|
method: "get",
|
|
2820
2846
|
path: "/api/v1/visualizations/{visualization_id}",
|
|
2821
2847
|
operationId: "fetchVisualization",
|
|
2848
|
+
tags: ["public"],
|
|
2822
2849
|
request: {
|
|
2823
2850
|
headers: SupabaseHeaderSchema,
|
|
2824
2851
|
params: z.object({ visualization_id: z.string().pipe(z.coerce.number()) }).openapi("VisualizationId", { type: "number" })
|
|
@@ -2864,6 +2891,7 @@ var ListVisualizationsForFlow = createRoute({
|
|
|
2864
2891
|
method: "get",
|
|
2865
2892
|
path: "/api/v1/flows/{flowId}/visualizations",
|
|
2866
2893
|
operationId: "listVisualizationsForFlow",
|
|
2894
|
+
tags: ["public"],
|
|
2867
2895
|
request: {
|
|
2868
2896
|
headers: SupabaseHeaderSchema,
|
|
2869
2897
|
params: FlowIdParam,
|