@magemetrics/core 0.10.0-rc2 → 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 +35 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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 {
|
|
@@ -151,7 +151,7 @@ var hashString = (value) => {
|
|
|
151
151
|
return Array.from(hash).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
// ../../node_modules/.pnpm/@asteasolutions+zod-to-openapi@8.1.0_zod@4.3.
|
|
154
|
+
// ../../node_modules/.pnpm/@asteasolutions+zod-to-openapi@8.1.0_zod@4.3.6/node_modules/@asteasolutions/zod-to-openapi/dist/index.mjs
|
|
155
155
|
function __rest(s, e) {
|
|
156
156
|
var t = {};
|
|
157
157
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -469,7 +469,7 @@ function getOpenApiConfiguration(refOrOpenapi, metadataOrOptions, options) {
|
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
472
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/router/reg-exp-router/node.js
|
|
473
473
|
new Set(".\\+*[^]$()");
|
|
474
474
|
var createRoute = (routeConfig) => {
|
|
475
475
|
const route = {
|
|
@@ -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,
|
|
@@ -912,8 +914,7 @@ var DatabaseFlowSchema = z.object({
|
|
|
912
914
|
title: z.string().nullable(),
|
|
913
915
|
user_id: z.string().nullable(),
|
|
914
916
|
application_id: z.number().nullable().optional(),
|
|
915
|
-
flow_steps: z.array(FlowStepSchema)
|
|
916
|
-
flow_chat_messages: z.array(z.object({ count: z.number() }))
|
|
917
|
+
flow_steps: z.array(FlowStepSchema)
|
|
917
918
|
});
|
|
918
919
|
z.object({
|
|
919
920
|
table: z.string(),
|
|
@@ -921,12 +922,10 @@ z.object({
|
|
|
921
922
|
database: z.string()
|
|
922
923
|
});
|
|
923
924
|
var FrontendFlowSchema = DatabaseFlowSchema.omit({
|
|
924
|
-
flow_chat_messages: true,
|
|
925
925
|
flow_steps: true
|
|
926
926
|
});
|
|
927
927
|
var FrontendRecentFlowsSchema = DatabaseFlowSchema.omit({
|
|
928
|
-
flow_steps: true
|
|
929
|
-
flow_chat_messages: true
|
|
928
|
+
flow_steps: true
|
|
930
929
|
});
|
|
931
930
|
var ReportColumnSchema = z.looseObject({
|
|
932
931
|
position: z.number().nonnegative().optional(),
|
|
@@ -973,7 +972,6 @@ var ReportSchema = z.object({
|
|
|
973
972
|
data_summary: z.looseObject({
|
|
974
973
|
columns: z.record(z.string(), ReportColumnSchema)
|
|
975
974
|
}),
|
|
976
|
-
bookmarked: z.boolean(),
|
|
977
975
|
status: z.string().nullable(),
|
|
978
976
|
is_removed: z.boolean(),
|
|
979
977
|
...MaterializationFieldsSchema.shape
|
|
@@ -1195,6 +1193,7 @@ var RetrieveFlowDataReports = createRoute({
|
|
|
1195
1193
|
method: "get",
|
|
1196
1194
|
path: "/api/v1/flows/{flowId}/data-reports",
|
|
1197
1195
|
operationId: "retrieveFlowDataReports",
|
|
1196
|
+
tags: ["public"],
|
|
1198
1197
|
request: {
|
|
1199
1198
|
headers: SupabaseHeaderSchema,
|
|
1200
1199
|
params: FlowIdParam
|
|
@@ -1232,6 +1231,7 @@ createRoute({
|
|
|
1232
1231
|
method: "get",
|
|
1233
1232
|
path: "/api/v1/flows/{flowId}/data-reports/last/status",
|
|
1234
1233
|
operationId: "retrieveLatestDataReportStatus",
|
|
1234
|
+
tags: ["public"],
|
|
1235
1235
|
request: {
|
|
1236
1236
|
headers: SupabaseHeaderSchema,
|
|
1237
1237
|
params: FlowIdParam
|
|
@@ -1269,6 +1269,7 @@ var RetrieveFlow = createRoute({
|
|
|
1269
1269
|
method: "get",
|
|
1270
1270
|
path: "/api/v1/flows/{flowId}",
|
|
1271
1271
|
operationId: "retrieveFlow",
|
|
1272
|
+
tags: ["public"],
|
|
1272
1273
|
request: {
|
|
1273
1274
|
headers: SupabaseHeaderSchema,
|
|
1274
1275
|
params: FlowIdParam
|
|
@@ -1306,6 +1307,7 @@ var RetrieveRecentFlows = createRoute({
|
|
|
1306
1307
|
method: "get",
|
|
1307
1308
|
path: "/api/v1/recent-flows",
|
|
1308
1309
|
operationId: "retrieveRecentFlows",
|
|
1310
|
+
tags: ["public"],
|
|
1309
1311
|
request: {
|
|
1310
1312
|
headers: SupabaseHeaderSchema,
|
|
1311
1313
|
query: z.object({
|
|
@@ -1337,6 +1339,7 @@ var GetReportColumns = createRoute({
|
|
|
1337
1339
|
method: "get",
|
|
1338
1340
|
path: "/api/v1/data-reports/{report_id}/columns",
|
|
1339
1341
|
operationId: "getDataReportColumns",
|
|
1342
|
+
tags: ["public"],
|
|
1340
1343
|
request: {
|
|
1341
1344
|
headers: SupabaseHeaderSchema,
|
|
1342
1345
|
params: ReportIdParam
|
|
@@ -1374,6 +1377,7 @@ var ExportReportData = createRoute({
|
|
|
1374
1377
|
method: "get",
|
|
1375
1378
|
path: "/api/v1/data-reports/{report_id}/export",
|
|
1376
1379
|
operationId: "exportReportData",
|
|
1380
|
+
tags: ["public"],
|
|
1377
1381
|
request: {
|
|
1378
1382
|
headers: SupabaseHeaderSchema,
|
|
1379
1383
|
params: ReportIdParam
|
|
@@ -1411,6 +1415,7 @@ var GetReportData = createRoute({
|
|
|
1411
1415
|
method: "get",
|
|
1412
1416
|
path: "/api/v1/data-reports/{report_id}/data",
|
|
1413
1417
|
operationId: "getDataReportData",
|
|
1418
|
+
tags: ["public"],
|
|
1414
1419
|
request: {
|
|
1415
1420
|
headers: SupabaseHeaderSchema,
|
|
1416
1421
|
params: ReportIdParam,
|
|
@@ -1455,6 +1460,7 @@ var GetReportRowCount = createRoute({
|
|
|
1455
1460
|
method: "get",
|
|
1456
1461
|
path: "/api/v1/data-reports/{report_id}/count",
|
|
1457
1462
|
operationId: "getDataReportRowCount",
|
|
1463
|
+
tags: ["public"],
|
|
1458
1464
|
request: {
|
|
1459
1465
|
headers: SupabaseHeaderSchema,
|
|
1460
1466
|
params: ReportIdParam
|
|
@@ -1494,6 +1500,7 @@ createRoute({
|
|
|
1494
1500
|
method: "get",
|
|
1495
1501
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1496
1502
|
operationId: "getDataReportFeedback",
|
|
1503
|
+
tags: ["public"],
|
|
1497
1504
|
request: {
|
|
1498
1505
|
headers: SupabaseHeaderSchema,
|
|
1499
1506
|
params: ReportIdParam
|
|
@@ -1531,6 +1538,7 @@ createRoute({
|
|
|
1531
1538
|
method: "post",
|
|
1532
1539
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1533
1540
|
operationId: "upsertReportFeedback",
|
|
1541
|
+
tags: ["public"],
|
|
1534
1542
|
request: {
|
|
1535
1543
|
headers: SupabaseHeaderSchema,
|
|
1536
1544
|
params: ReportIdParam,
|
|
@@ -1566,6 +1574,7 @@ createRoute({
|
|
|
1566
1574
|
method: "delete",
|
|
1567
1575
|
path: "/api/v1/data-reports/{report_id}/feedback",
|
|
1568
1576
|
operationId: "deleteReportFeedback",
|
|
1577
|
+
tags: ["public"],
|
|
1569
1578
|
request: {
|
|
1570
1579
|
headers: SupabaseHeaderSchema,
|
|
1571
1580
|
params: ReportIdParam
|
|
@@ -1598,6 +1607,7 @@ createRoute({
|
|
|
1598
1607
|
method: "get",
|
|
1599
1608
|
path: "/api/v1/data-reports/{report_id}/explainability",
|
|
1600
1609
|
operationId: "getDataReportExplainability",
|
|
1610
|
+
tags: ["public"],
|
|
1601
1611
|
request: {
|
|
1602
1612
|
headers: SupabaseHeaderSchema,
|
|
1603
1613
|
params: ReportIdParam
|
|
@@ -1659,6 +1669,7 @@ createRoute({
|
|
|
1659
1669
|
method: "post",
|
|
1660
1670
|
path: "/api/v1/workflows/column_lineage",
|
|
1661
1671
|
operationId: "getColumnLineage",
|
|
1672
|
+
tags: ["public"],
|
|
1662
1673
|
request: {
|
|
1663
1674
|
headers: SupabaseHeaderSchema,
|
|
1664
1675
|
body: {
|
|
@@ -1714,6 +1725,7 @@ createRoute({
|
|
|
1714
1725
|
method: "get",
|
|
1715
1726
|
path: "/api/v1/data-reports/{report_id}",
|
|
1716
1727
|
operationId: "getDataReport",
|
|
1728
|
+
tags: ["public"],
|
|
1717
1729
|
request: {
|
|
1718
1730
|
headers: SupabaseHeaderSchema,
|
|
1719
1731
|
params: ReportIdParam
|
|
@@ -1751,6 +1763,7 @@ createRoute({
|
|
|
1751
1763
|
method: "post",
|
|
1752
1764
|
path: "/api/v1/flow_data/v1/materialized_views/refresh",
|
|
1753
1765
|
operationId: "refreshMaterializedViews",
|
|
1766
|
+
tags: ["public"],
|
|
1754
1767
|
request: {
|
|
1755
1768
|
headers: SupabaseHeaderSchema,
|
|
1756
1769
|
body: {
|
|
@@ -1803,6 +1816,7 @@ createRoute({
|
|
|
1803
1816
|
method: "get",
|
|
1804
1817
|
path: "/api/v1/flow_data/materialization-status",
|
|
1805
1818
|
operationId: "getMaterializationStatus",
|
|
1819
|
+
tags: ["public"],
|
|
1806
1820
|
request: {
|
|
1807
1821
|
headers: SupabaseHeaderSchema,
|
|
1808
1822
|
query: z.object({
|
|
@@ -1838,6 +1852,7 @@ var CreateFlow = createRoute({
|
|
|
1838
1852
|
method: "post",
|
|
1839
1853
|
path: "/api/v1/flows",
|
|
1840
1854
|
operationId: "createFlow",
|
|
1855
|
+
tags: ["public"],
|
|
1841
1856
|
request: {
|
|
1842
1857
|
headers: SupabaseHeaderSchema,
|
|
1843
1858
|
body: {
|
|
@@ -1896,6 +1911,7 @@ var CreateSpeechToken = createRoute({
|
|
|
1896
1911
|
method: "post",
|
|
1897
1912
|
path: "/api/v1/speech/token",
|
|
1898
1913
|
operationId: "createSpeechToken",
|
|
1914
|
+
tags: ["public"],
|
|
1899
1915
|
request: {
|
|
1900
1916
|
headers: SupabaseHeaderSchema
|
|
1901
1917
|
},
|
|
@@ -1939,6 +1955,7 @@ var TriggerFlow = createRoute({
|
|
|
1939
1955
|
method: "post",
|
|
1940
1956
|
path: "/api/v1/trigger-flow",
|
|
1941
1957
|
operationId: "triggerFlow",
|
|
1958
|
+
tags: ["public"],
|
|
1942
1959
|
request: {
|
|
1943
1960
|
headers: SupabaseHeaderSchema,
|
|
1944
1961
|
body: {
|
|
@@ -2210,6 +2227,7 @@ var ListCanvases = createRoute({
|
|
|
2210
2227
|
method: "get",
|
|
2211
2228
|
path: "/api/v1/canvases",
|
|
2212
2229
|
operationId: "listCanvases",
|
|
2230
|
+
tags: ["public"],
|
|
2213
2231
|
request: {
|
|
2214
2232
|
headers: SupabaseHeaderSchema,
|
|
2215
2233
|
query: z.object({
|
|
@@ -2243,6 +2261,7 @@ var RetrieveCanvas = createRoute({
|
|
|
2243
2261
|
method: "get",
|
|
2244
2262
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2245
2263
|
operationId: "retrieveCanvas",
|
|
2264
|
+
tags: ["public"],
|
|
2246
2265
|
request: {
|
|
2247
2266
|
headers: SupabaseHeaderSchema,
|
|
2248
2267
|
params: z.object({
|
|
@@ -2282,6 +2301,7 @@ var CreateCanvas = createRoute({
|
|
|
2282
2301
|
method: "post",
|
|
2283
2302
|
path: "/api/v1/canvas/",
|
|
2284
2303
|
operationId: "createCanvas",
|
|
2304
|
+
tags: ["public"],
|
|
2285
2305
|
request: {
|
|
2286
2306
|
headers: SupabaseHeaderSchema,
|
|
2287
2307
|
body: {
|
|
@@ -2328,6 +2348,7 @@ var UpdateCanvas = createRoute({
|
|
|
2328
2348
|
method: "put",
|
|
2329
2349
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2330
2350
|
operationId: "updateCanvas",
|
|
2351
|
+
tags: ["public"],
|
|
2331
2352
|
request: {
|
|
2332
2353
|
headers: SupabaseHeaderSchema,
|
|
2333
2354
|
params: z.object({
|
|
@@ -2377,6 +2398,7 @@ var DeleteCanvas = createRoute({
|
|
|
2377
2398
|
method: "delete",
|
|
2378
2399
|
path: "/api/v1/canvas/{canvas_id}",
|
|
2379
2400
|
operationId: "deleteCanvas",
|
|
2401
|
+
tags: ["public"],
|
|
2380
2402
|
request: {
|
|
2381
2403
|
headers: SupabaseHeaderSchema,
|
|
2382
2404
|
params: z.object({
|
|
@@ -2411,6 +2433,7 @@ var GetCanvasForFlow = createRoute({
|
|
|
2411
2433
|
method: "get",
|
|
2412
2434
|
path: "/api/v1/canvas/flow/{flow_id}",
|
|
2413
2435
|
operationId: "getCanvasForFlow",
|
|
2436
|
+
tags: ["public"],
|
|
2414
2437
|
request: {
|
|
2415
2438
|
headers: SupabaseHeaderSchema,
|
|
2416
2439
|
params: z.object({
|
|
@@ -2452,6 +2475,7 @@ var ChatMessages = createRoute({
|
|
|
2452
2475
|
method: "get",
|
|
2453
2476
|
path: "/api/v1/chat/{flowId}/messages",
|
|
2454
2477
|
operationId: "retrieveChatMessages",
|
|
2478
|
+
tags: ["public"],
|
|
2455
2479
|
request: {
|
|
2456
2480
|
headers: SupabaseHeaderSchema,
|
|
2457
2481
|
params: FlowIdParam
|
|
@@ -2762,7 +2786,6 @@ var BaseVisualizationSchema = z.object({
|
|
|
2762
2786
|
flow_data_id: z.number(),
|
|
2763
2787
|
created_at: z.string(),
|
|
2764
2788
|
sql: z.string(),
|
|
2765
|
-
bookmarked: z.boolean(),
|
|
2766
2789
|
data_sample: z.array(z.record(z.string(), z.unknown())),
|
|
2767
2790
|
is_sample: z.boolean(),
|
|
2768
2791
|
data_summary: z.record(z.string(), z.unknown()),
|
|
@@ -2822,6 +2845,7 @@ createRoute({
|
|
|
2822
2845
|
method: "get",
|
|
2823
2846
|
path: "/api/v1/visualizations/{visualization_id}",
|
|
2824
2847
|
operationId: "fetchVisualization",
|
|
2848
|
+
tags: ["public"],
|
|
2825
2849
|
request: {
|
|
2826
2850
|
headers: SupabaseHeaderSchema,
|
|
2827
2851
|
params: z.object({ visualization_id: z.string().pipe(z.coerce.number()) }).openapi("VisualizationId", { type: "number" })
|
|
@@ -2867,6 +2891,7 @@ var ListVisualizationsForFlow = createRoute({
|
|
|
2867
2891
|
method: "get",
|
|
2868
2892
|
path: "/api/v1/flows/{flowId}/visualizations",
|
|
2869
2893
|
operationId: "listVisualizationsForFlow",
|
|
2894
|
+
tags: ["public"],
|
|
2870
2895
|
request: {
|
|
2871
2896
|
headers: SupabaseHeaderSchema,
|
|
2872
2897
|
params: FlowIdParam,
|