@mastra/server 1.40.0 → 1.41.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/CHANGELOG.md +52 -0
- package/dist/{api-schema-manifest-ALHYYJMN.cjs → api-schema-manifest-3J75ZPRN.cjs} +4 -4
- package/dist/{api-schema-manifest-ALHYYJMN.cjs.map → api-schema-manifest-3J75ZPRN.cjs.map} +1 -1
- package/dist/{api-schema-manifest-PQ6VZTB3.js → api-schema-manifest-5PJMYYEP.js} +3 -3
- package/dist/{api-schema-manifest-PQ6VZTB3.js.map → api-schema-manifest-5PJMYYEP.js.map} +1 -1
- package/dist/{chunk-THXUZHS6.cjs → chunk-2T7K7BXT.cjs} +7 -7
- package/dist/{chunk-THXUZHS6.cjs.map → chunk-2T7K7BXT.cjs.map} +1 -1
- package/dist/{chunk-6MP52DMQ.cjs → chunk-34FGGH4V.cjs} +5 -5
- package/dist/{chunk-6MP52DMQ.cjs.map → chunk-34FGGH4V.cjs.map} +1 -1
- package/dist/{chunk-FQCCUWMS.js → chunk-3UAYDJLC.js} +3 -3
- package/dist/{chunk-FQCCUWMS.js.map → chunk-3UAYDJLC.js.map} +1 -1
- package/dist/{chunk-G2CL5JMK.js → chunk-7EXN7Q2U.js} +4 -4
- package/dist/{chunk-G2CL5JMK.js.map → chunk-7EXN7Q2U.js.map} +1 -1
- package/dist/{chunk-E7AEYMKH.js → chunk-7JWV7IFO.js} +3 -3
- package/dist/{chunk-E7AEYMKH.js.map → chunk-7JWV7IFO.js.map} +1 -1
- package/dist/{chunk-HEBNJ6KJ.js → chunk-7LBTVNI5.js} +11 -5
- package/dist/chunk-7LBTVNI5.js.map +1 -0
- package/dist/{chunk-IONXSX77.js → chunk-CEPTL3AG.js} +7 -4
- package/dist/chunk-CEPTL3AG.js.map +1 -0
- package/dist/{chunk-XNGC2C6Z.js → chunk-D2FLXNQM.js} +11 -11
- package/dist/{chunk-XNGC2C6Z.js.map → chunk-D2FLXNQM.js.map} +1 -1
- package/dist/{chunk-544IXGBW.cjs → chunk-EJQMKG42.cjs} +105 -105
- package/dist/{chunk-544IXGBW.cjs.map → chunk-EJQMKG42.cjs.map} +1 -1
- package/dist/{chunk-VSB4S6R5.js → chunk-IGNJBGHV.js} +3 -3
- package/dist/{chunk-VSB4S6R5.js.map → chunk-IGNJBGHV.js.map} +1 -1
- package/dist/{chunk-XGFN7MMF.cjs → chunk-IVCUBCKI.cjs} +4 -4
- package/dist/{chunk-XGFN7MMF.cjs.map → chunk-IVCUBCKI.cjs.map} +1 -1
- package/dist/{chunk-5WB7PKHN.cjs → chunk-KNHHBQHI.cjs} +4 -4
- package/dist/{chunk-5WB7PKHN.cjs.map → chunk-KNHHBQHI.cjs.map} +1 -1
- package/dist/{chunk-AW5INHG7.js → chunk-RWZEMNUW.js} +3 -3
- package/dist/{chunk-AW5INHG7.js.map → chunk-RWZEMNUW.js.map} +1 -1
- package/dist/{chunk-5DDUXRAY.cjs → chunk-SARIDRDK.cjs} +108 -102
- package/dist/chunk-SARIDRDK.cjs.map +1 -0
- package/dist/{chunk-K6XESXNQ.js → chunk-SL5CXTTT.js} +3 -3
- package/dist/{chunk-K6XESXNQ.js.map → chunk-SL5CXTTT.js.map} +1 -1
- package/dist/{chunk-HGREXGI2.cjs → chunk-SVR4L4VL.cjs} +3 -3
- package/dist/{chunk-HGREXGI2.cjs.map → chunk-SVR4L4VL.cjs.map} +1 -1
- package/dist/{chunk-D5M3VILP.cjs → chunk-TSX4BSIQ.cjs} +25 -25
- package/dist/{chunk-D5M3VILP.cjs.map → chunk-TSX4BSIQ.cjs.map} +1 -1
- package/dist/{chunk-AX6REP5O.cjs → chunk-VURMWFB3.cjs} +4 -4
- package/dist/{chunk-AX6REP5O.cjs.map → chunk-VURMWFB3.cjs.map} +1 -1
- package/dist/{chunk-CBG6LUEW.js → chunk-WSZWG55D.js} +3 -3
- package/dist/{chunk-CBG6LUEW.js.map → chunk-WSZWG55D.js.map} +1 -1
- package/dist/{chunk-B5NMA52D.js → chunk-XICWJPD7.js} +4 -4
- package/dist/{chunk-B5NMA52D.js.map → chunk-XICWJPD7.js.map} +1 -1
- package/dist/{chunk-LYF4J3JE.cjs → chunk-YG4BMJHW.cjs} +17 -17
- package/dist/{chunk-LYF4J3JE.cjs.map → chunk-YG4BMJHW.cjs.map} +1 -1
- package/dist/{chunk-IU3ZRZSG.cjs → chunk-YGOB5US6.cjs} +7 -4
- package/dist/chunk-YGOB5US6.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/handlers/a2a.cjs +14 -14
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +17 -17
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +45 -45
- package/dist/server/handlers/agents.d.ts +90 -0
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/conversations.cjs +5 -5
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/responses.cjs +4 -4
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/workflows.cjs +27 -27
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +16 -16
- package/dist/server/handlers.js +8 -8
- package/dist/server/schemas/agents.d.ts +24 -0
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +48 -48
- package/dist/server/schemas/index.js +1 -1
- package/dist/server/server-adapter/index.cjs +13 -13
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/legacy.d.ts +12 -0
- package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-5DDUXRAY.cjs.map +0 -1
- package/dist/chunk-HEBNJ6KJ.js.map +0 -1
- package/dist/chunk-IONXSX77.js.map +0 -1
- package/dist/chunk-IU3ZRZSG.cjs.map +0 -1
|
@@ -24,7 +24,7 @@ var chunkXCZ44WKI_cjs = require('../../chunk-XCZ44WKI.cjs');
|
|
|
24
24
|
var chunkHXICAUTW_cjs = require('../../chunk-HXICAUTW.cjs');
|
|
25
25
|
var chunkL56ROTL6_cjs = require('../../chunk-L56ROTL6.cjs');
|
|
26
26
|
var chunkXOGNYKAF_cjs = require('../../chunk-XOGNYKAF.cjs');
|
|
27
|
-
var
|
|
27
|
+
var chunkYGOB5US6_cjs = require('../../chunk-YGOB5US6.cjs');
|
|
28
28
|
var chunkP4IMQYF3_cjs = require('../../chunk-P4IMQYF3.cjs');
|
|
29
29
|
var chunk77IY4RTO_cjs = require('../../chunk-77IY4RTO.cjs');
|
|
30
30
|
var chunkGFP7IMFR_cjs = require('../../chunk-GFP7IMFR.cjs');
|
|
@@ -1451,191 +1451,191 @@ Object.defineProperty(exports, "workflowRunsResponseSchema", {
|
|
|
1451
1451
|
});
|
|
1452
1452
|
Object.defineProperty(exports, "abortAgentThreadBodySchema", {
|
|
1453
1453
|
enumerable: true,
|
|
1454
|
-
get: function () { return
|
|
1454
|
+
get: function () { return chunkYGOB5US6_cjs.abortAgentThreadBodySchema; }
|
|
1455
1455
|
});
|
|
1456
1456
|
Object.defineProperty(exports, "abortAgentThreadResponseSchema", {
|
|
1457
1457
|
enumerable: true,
|
|
1458
|
-
get: function () { return
|
|
1458
|
+
get: function () { return chunkYGOB5US6_cjs.abortAgentThreadResponseSchema; }
|
|
1459
1459
|
});
|
|
1460
1460
|
Object.defineProperty(exports, "agentExecutionBodySchema", {
|
|
1461
1461
|
enumerable: true,
|
|
1462
|
-
get: function () { return
|
|
1462
|
+
get: function () { return chunkYGOB5US6_cjs.agentExecutionBodySchema; }
|
|
1463
1463
|
});
|
|
1464
1464
|
Object.defineProperty(exports, "agentExecutionLegacyBodySchema", {
|
|
1465
1465
|
enumerable: true,
|
|
1466
|
-
get: function () { return
|
|
1466
|
+
get: function () { return chunkYGOB5US6_cjs.agentExecutionLegacyBodySchema; }
|
|
1467
1467
|
});
|
|
1468
1468
|
Object.defineProperty(exports, "agentIdPathParams", {
|
|
1469
1469
|
enumerable: true,
|
|
1470
|
-
get: function () { return
|
|
1470
|
+
get: function () { return chunkYGOB5US6_cjs.agentIdPathParams; }
|
|
1471
1471
|
});
|
|
1472
1472
|
Object.defineProperty(exports, "agentSkillPathParams", {
|
|
1473
1473
|
enumerable: true,
|
|
1474
|
-
get: function () { return
|
|
1474
|
+
get: function () { return chunkYGOB5US6_cjs.agentSkillPathParams; }
|
|
1475
1475
|
});
|
|
1476
1476
|
Object.defineProperty(exports, "agentToolPathParams", {
|
|
1477
1477
|
enumerable: true,
|
|
1478
|
-
get: function () { return
|
|
1478
|
+
get: function () { return chunkYGOB5US6_cjs.agentToolPathParams; }
|
|
1479
1479
|
});
|
|
1480
1480
|
Object.defineProperty(exports, "agentVersionQuerySchema", {
|
|
1481
1481
|
enumerable: true,
|
|
1482
|
-
get: function () { return
|
|
1482
|
+
get: function () { return chunkYGOB5US6_cjs.agentVersionQuerySchema; }
|
|
1483
1483
|
});
|
|
1484
1484
|
Object.defineProperty(exports, "approveNetworkToolCallBodySchema", {
|
|
1485
1485
|
enumerable: true,
|
|
1486
|
-
get: function () { return
|
|
1486
|
+
get: function () { return chunkYGOB5US6_cjs.approveNetworkToolCallBodySchema; }
|
|
1487
1487
|
});
|
|
1488
1488
|
Object.defineProperty(exports, "approveToolCallBodySchema", {
|
|
1489
1489
|
enumerable: true,
|
|
1490
|
-
get: function () { return
|
|
1490
|
+
get: function () { return chunkYGOB5US6_cjs.approveToolCallBodySchema; }
|
|
1491
1491
|
});
|
|
1492
1492
|
Object.defineProperty(exports, "declineNetworkToolCallBodySchema", {
|
|
1493
1493
|
enumerable: true,
|
|
1494
|
-
get: function () { return
|
|
1494
|
+
get: function () { return chunkYGOB5US6_cjs.declineNetworkToolCallBodySchema; }
|
|
1495
1495
|
});
|
|
1496
1496
|
Object.defineProperty(exports, "declineToolCallBodySchema", {
|
|
1497
1497
|
enumerable: true,
|
|
1498
|
-
get: function () { return
|
|
1498
|
+
get: function () { return chunkYGOB5US6_cjs.declineToolCallBodySchema; }
|
|
1499
1499
|
});
|
|
1500
1500
|
Object.defineProperty(exports, "enhanceInstructionsBodySchema", {
|
|
1501
1501
|
enumerable: true,
|
|
1502
|
-
get: function () { return
|
|
1502
|
+
get: function () { return chunkYGOB5US6_cjs.enhanceInstructionsBodySchema; }
|
|
1503
1503
|
});
|
|
1504
1504
|
Object.defineProperty(exports, "enhanceInstructionsResponseSchema", {
|
|
1505
1505
|
enumerable: true,
|
|
1506
|
-
get: function () { return
|
|
1506
|
+
get: function () { return chunkYGOB5US6_cjs.enhanceInstructionsResponseSchema; }
|
|
1507
1507
|
});
|
|
1508
1508
|
Object.defineProperty(exports, "executeToolBodySchema", {
|
|
1509
1509
|
enumerable: true,
|
|
1510
|
-
get: function () { return
|
|
1510
|
+
get: function () { return chunkYGOB5US6_cjs.executeToolBodySchema; }
|
|
1511
1511
|
});
|
|
1512
1512
|
Object.defineProperty(exports, "executeToolContextBodySchema", {
|
|
1513
1513
|
enumerable: true,
|
|
1514
|
-
get: function () { return
|
|
1514
|
+
get: function () { return chunkYGOB5US6_cjs.executeToolContextBodySchema; }
|
|
1515
1515
|
});
|
|
1516
1516
|
Object.defineProperty(exports, "executeToolResponseSchema", {
|
|
1517
1517
|
enumerable: true,
|
|
1518
|
-
get: function () { return
|
|
1518
|
+
get: function () { return chunkYGOB5US6_cjs.executeToolResponseSchema; }
|
|
1519
1519
|
});
|
|
1520
1520
|
Object.defineProperty(exports, "generateResponseSchema", {
|
|
1521
1521
|
enumerable: true,
|
|
1522
|
-
get: function () { return
|
|
1522
|
+
get: function () { return chunkYGOB5US6_cjs.generateResponseSchema; }
|
|
1523
1523
|
});
|
|
1524
1524
|
Object.defineProperty(exports, "listAgentsResponseSchema", {
|
|
1525
1525
|
enumerable: true,
|
|
1526
|
-
get: function () { return
|
|
1526
|
+
get: function () { return chunkYGOB5US6_cjs.listAgentsResponseSchema; }
|
|
1527
1527
|
});
|
|
1528
1528
|
Object.defineProperty(exports, "listToolsResponseSchema", {
|
|
1529
1529
|
enumerable: true,
|
|
1530
|
-
get: function () { return
|
|
1530
|
+
get: function () { return chunkYGOB5US6_cjs.listToolsResponseSchema; }
|
|
1531
1531
|
});
|
|
1532
1532
|
Object.defineProperty(exports, "modelConfigIdPathParams", {
|
|
1533
1533
|
enumerable: true,
|
|
1534
|
-
get: function () { return
|
|
1534
|
+
get: function () { return chunkYGOB5US6_cjs.modelConfigIdPathParams; }
|
|
1535
1535
|
});
|
|
1536
1536
|
Object.defineProperty(exports, "modelManagementResponseSchema", {
|
|
1537
1537
|
enumerable: true,
|
|
1538
|
-
get: function () { return
|
|
1538
|
+
get: function () { return chunkYGOB5US6_cjs.modelManagementResponseSchema; }
|
|
1539
1539
|
});
|
|
1540
1540
|
Object.defineProperty(exports, "observeAgentBodySchema", {
|
|
1541
1541
|
enumerable: true,
|
|
1542
|
-
get: function () { return
|
|
1542
|
+
get: function () { return chunkYGOB5US6_cjs.observeAgentBodySchema; }
|
|
1543
1543
|
});
|
|
1544
1544
|
Object.defineProperty(exports, "observeAgentResponseSchema", {
|
|
1545
1545
|
enumerable: true,
|
|
1546
|
-
get: function () { return
|
|
1546
|
+
get: function () { return chunkYGOB5US6_cjs.observeAgentResponseSchema; }
|
|
1547
1547
|
});
|
|
1548
1548
|
Object.defineProperty(exports, "providerSchema", {
|
|
1549
1549
|
enumerable: true,
|
|
1550
|
-
get: function () { return
|
|
1550
|
+
get: function () { return chunkYGOB5US6_cjs.providerSchema; }
|
|
1551
1551
|
});
|
|
1552
1552
|
Object.defineProperty(exports, "providersResponseSchema", {
|
|
1553
1553
|
enumerable: true,
|
|
1554
|
-
get: function () { return
|
|
1554
|
+
get: function () { return chunkYGOB5US6_cjs.providersResponseSchema; }
|
|
1555
1555
|
});
|
|
1556
1556
|
Object.defineProperty(exports, "queueAgentMessageBodySchema", {
|
|
1557
1557
|
enumerable: true,
|
|
1558
|
-
get: function () { return
|
|
1558
|
+
get: function () { return chunkYGOB5US6_cjs.queueAgentMessageBodySchema; }
|
|
1559
1559
|
});
|
|
1560
1560
|
Object.defineProperty(exports, "reorderAgentModelListBodySchema", {
|
|
1561
1561
|
enumerable: true,
|
|
1562
|
-
get: function () { return
|
|
1562
|
+
get: function () { return chunkYGOB5US6_cjs.reorderAgentModelListBodySchema; }
|
|
1563
1563
|
});
|
|
1564
1564
|
Object.defineProperty(exports, "resumeStreamBodySchema", {
|
|
1565
1565
|
enumerable: true,
|
|
1566
|
-
get: function () { return
|
|
1566
|
+
get: function () { return chunkYGOB5US6_cjs.resumeStreamBodySchema; }
|
|
1567
1567
|
});
|
|
1568
1568
|
Object.defineProperty(exports, "resumeStreamUntilIdleBodySchema", {
|
|
1569
1569
|
enumerable: true,
|
|
1570
|
-
get: function () { return
|
|
1570
|
+
get: function () { return chunkYGOB5US6_cjs.resumeStreamUntilIdleBodySchema; }
|
|
1571
1571
|
});
|
|
1572
1572
|
Object.defineProperty(exports, "sendAgentMessageBodySchema", {
|
|
1573
1573
|
enumerable: true,
|
|
1574
|
-
get: function () { return
|
|
1574
|
+
get: function () { return chunkYGOB5US6_cjs.sendAgentMessageBodySchema; }
|
|
1575
1575
|
});
|
|
1576
1576
|
Object.defineProperty(exports, "sendAgentSignalBodySchema", {
|
|
1577
1577
|
enumerable: true,
|
|
1578
|
-
get: function () { return
|
|
1578
|
+
get: function () { return chunkYGOB5US6_cjs.sendAgentSignalBodySchema; }
|
|
1579
1579
|
});
|
|
1580
1580
|
Object.defineProperty(exports, "sendToolApprovalBodySchema", {
|
|
1581
1581
|
enumerable: true,
|
|
1582
|
-
get: function () { return
|
|
1582
|
+
get: function () { return chunkYGOB5US6_cjs.sendToolApprovalBodySchema; }
|
|
1583
1583
|
});
|
|
1584
1584
|
Object.defineProperty(exports, "sendToolApprovalResponseSchema", {
|
|
1585
1585
|
enumerable: true,
|
|
1586
|
-
get: function () { return
|
|
1586
|
+
get: function () { return chunkYGOB5US6_cjs.sendToolApprovalResponseSchema; }
|
|
1587
1587
|
});
|
|
1588
1588
|
Object.defineProperty(exports, "serializedAgentDefinitionSchema", {
|
|
1589
1589
|
enumerable: true,
|
|
1590
|
-
get: function () { return
|
|
1590
|
+
get: function () { return chunkYGOB5US6_cjs.serializedAgentDefinitionSchema; }
|
|
1591
1591
|
});
|
|
1592
1592
|
Object.defineProperty(exports, "serializedAgentSchema", {
|
|
1593
1593
|
enumerable: true,
|
|
1594
|
-
get: function () { return
|
|
1594
|
+
get: function () { return chunkYGOB5US6_cjs.serializedAgentSchema; }
|
|
1595
1595
|
});
|
|
1596
1596
|
Object.defineProperty(exports, "serializedAgentWithIdSchema", {
|
|
1597
1597
|
enumerable: true,
|
|
1598
|
-
get: function () { return
|
|
1598
|
+
get: function () { return chunkYGOB5US6_cjs.serializedAgentWithIdSchema; }
|
|
1599
1599
|
});
|
|
1600
1600
|
Object.defineProperty(exports, "serializedProcessorSchema", {
|
|
1601
1601
|
enumerable: true,
|
|
1602
|
-
get: function () { return
|
|
1602
|
+
get: function () { return chunkYGOB5US6_cjs.serializedProcessorSchema; }
|
|
1603
1603
|
});
|
|
1604
1604
|
Object.defineProperty(exports, "serializedToolSchema", {
|
|
1605
1605
|
enumerable: true,
|
|
1606
|
-
get: function () { return
|
|
1606
|
+
get: function () { return chunkYGOB5US6_cjs.serializedToolSchema; }
|
|
1607
1607
|
});
|
|
1608
1608
|
Object.defineProperty(exports, "serializedWorkflowSchema", {
|
|
1609
1609
|
enumerable: true,
|
|
1610
|
-
get: function () { return
|
|
1610
|
+
get: function () { return chunkYGOB5US6_cjs.serializedWorkflowSchema; }
|
|
1611
1611
|
});
|
|
1612
1612
|
Object.defineProperty(exports, "streamResponseSchema", {
|
|
1613
1613
|
enumerable: true,
|
|
1614
|
-
get: function () { return
|
|
1614
|
+
get: function () { return chunkYGOB5US6_cjs.streamResponseSchema; }
|
|
1615
1615
|
});
|
|
1616
1616
|
Object.defineProperty(exports, "streamUntilIdleBodySchema", {
|
|
1617
1617
|
enumerable: true,
|
|
1618
|
-
get: function () { return
|
|
1618
|
+
get: function () { return chunkYGOB5US6_cjs.streamUntilIdleBodySchema; }
|
|
1619
1619
|
});
|
|
1620
1620
|
Object.defineProperty(exports, "subscribeAgentThreadBodySchema", {
|
|
1621
1621
|
enumerable: true,
|
|
1622
|
-
get: function () { return
|
|
1622
|
+
get: function () { return chunkYGOB5US6_cjs.subscribeAgentThreadBodySchema; }
|
|
1623
1623
|
});
|
|
1624
1624
|
Object.defineProperty(exports, "toolCallResponseSchema", {
|
|
1625
1625
|
enumerable: true,
|
|
1626
|
-
get: function () { return
|
|
1626
|
+
get: function () { return chunkYGOB5US6_cjs.toolCallResponseSchema; }
|
|
1627
1627
|
});
|
|
1628
1628
|
Object.defineProperty(exports, "toolIdPathParams", {
|
|
1629
1629
|
enumerable: true,
|
|
1630
|
-
get: function () { return
|
|
1630
|
+
get: function () { return chunkYGOB5US6_cjs.toolIdPathParams; }
|
|
1631
1631
|
});
|
|
1632
1632
|
Object.defineProperty(exports, "updateAgentModelBodySchema", {
|
|
1633
1633
|
enumerable: true,
|
|
1634
|
-
get: function () { return
|
|
1634
|
+
get: function () { return chunkYGOB5US6_cjs.updateAgentModelBodySchema; }
|
|
1635
1635
|
});
|
|
1636
1636
|
Object.defineProperty(exports, "updateAgentModelInModelListBodySchema", {
|
|
1637
1637
|
enumerable: true,
|
|
1638
|
-
get: function () { return
|
|
1638
|
+
get: function () { return chunkYGOB5US6_cjs.updateAgentModelInModelListBodySchema; }
|
|
1639
1639
|
});
|
|
1640
1640
|
Object.defineProperty(exports, "generateSpeechBodySchema", {
|
|
1641
1641
|
enumerable: true,
|
|
@@ -22,7 +22,7 @@ export { authenticatedCapabilitiesSchema, authenticatedUserSchema, capabilitiesR
|
|
|
22
22
|
export { fileEntrySchema, fsDeleteQuerySchema, fsDeleteResponseSchema, fsListQuerySchema, fsListResponseSchema, fsMkdirBodySchema, fsMkdirResponseSchema, fsPathParams, fsReadQuerySchema, fsReadResponseSchema, fsStatQuerySchema, fsStatResponseSchema, fsWriteBodySchema, fsWriteResponseSchema, getAgentSkillResponseSchema, getSkillResponseSchema, indexBodySchema, indexResponseSchema, listReferencesResponseSchema, listSkillsResponseSchema, listWorkspacesResponseSchema, mountInfoSchema, searchQuerySchema, searchResponseSchema, searchResultSchema, searchSkillsQuerySchema, searchSkillsResponseSchema, skillDisambiguationQuerySchema, skillMetadataSchema, skillMetadataWithPathSchema, skillNamePathParams, skillReferencePathParams, skillReferenceResponseSchema, skillSchema, skillSearchResultSchema, skillSourceSchema, skillsShInstallBodySchema, skillsShInstallResponseSchema, skillsShListResponseSchema, skillsShPopularQuerySchema, skillsShPreviewQuerySchema, skillsShPreviewResponseSchema, skillsShRemoveBodySchema, skillsShRemoveResponseSchema, skillsShSearchQuerySchema, skillsShSearchResponseSchema, skillsShSkillSchema, skillsShSourceSchema, skillsShUpdateBodySchema, skillsShUpdateResponseSchema, workspaceIdPathParams, workspaceInfoResponseSchema } from '../../chunk-ZHULRNJG.js';
|
|
23
23
|
export { actionIdPathParams, actionRunPathParams, resumeAgentBuilderBodySchema, startAsyncAgentBuilderBodySchema, streamAgentBuilderBodySchema, streamLegacyAgentBuilderBodySchema } from '../../chunk-AAA3TYIM.js';
|
|
24
24
|
export { createWorkflowRunResponseSchema, listWorkflowRunsQuerySchema, listWorkflowsResponseSchema, sendWorkflowRunEventBodySchema, workflowControlResponseSchema, workflowExecutionResultSchema, workflowInfoSchema, workflowRunResultQuerySchema, workflowRunResultSchema, workflowRunsResponseSchema } from '../../chunk-J3LTFYRY.js';
|
|
25
|
-
export { abortAgentThreadBodySchema, abortAgentThreadResponseSchema, agentExecutionBodySchema, agentExecutionLegacyBodySchema, agentIdPathParams, agentSkillPathParams, agentToolPathParams, agentVersionQuerySchema, approveNetworkToolCallBodySchema, approveToolCallBodySchema, declineNetworkToolCallBodySchema, declineToolCallBodySchema, enhanceInstructionsBodySchema, enhanceInstructionsResponseSchema, executeToolBodySchema, executeToolContextBodySchema, executeToolResponseSchema, generateResponseSchema, listAgentsResponseSchema, listToolsResponseSchema, modelConfigIdPathParams, modelManagementResponseSchema, observeAgentBodySchema, observeAgentResponseSchema, providerSchema, providersResponseSchema, queueAgentMessageBodySchema, reorderAgentModelListBodySchema, resumeStreamBodySchema, resumeStreamUntilIdleBodySchema, sendAgentMessageBodySchema, sendAgentSignalBodySchema, sendToolApprovalBodySchema, sendToolApprovalResponseSchema, serializedAgentDefinitionSchema, serializedAgentSchema, serializedAgentWithIdSchema, serializedProcessorSchema, serializedToolSchema, serializedWorkflowSchema, streamResponseSchema, streamUntilIdleBodySchema, subscribeAgentThreadBodySchema, toolCallResponseSchema, toolIdPathParams, updateAgentModelBodySchema, updateAgentModelInModelListBodySchema } from '../../chunk-
|
|
25
|
+
export { abortAgentThreadBodySchema, abortAgentThreadResponseSchema, agentExecutionBodySchema, agentExecutionLegacyBodySchema, agentIdPathParams, agentSkillPathParams, agentToolPathParams, agentVersionQuerySchema, approveNetworkToolCallBodySchema, approveToolCallBodySchema, declineNetworkToolCallBodySchema, declineToolCallBodySchema, enhanceInstructionsBodySchema, enhanceInstructionsResponseSchema, executeToolBodySchema, executeToolContextBodySchema, executeToolResponseSchema, generateResponseSchema, listAgentsResponseSchema, listToolsResponseSchema, modelConfigIdPathParams, modelManagementResponseSchema, observeAgentBodySchema, observeAgentResponseSchema, providerSchema, providersResponseSchema, queueAgentMessageBodySchema, reorderAgentModelListBodySchema, resumeStreamBodySchema, resumeStreamUntilIdleBodySchema, sendAgentMessageBodySchema, sendAgentSignalBodySchema, sendToolApprovalBodySchema, sendToolApprovalResponseSchema, serializedAgentDefinitionSchema, serializedAgentSchema, serializedAgentWithIdSchema, serializedProcessorSchema, serializedToolSchema, serializedWorkflowSchema, streamResponseSchema, streamUntilIdleBodySchema, subscribeAgentThreadBodySchema, toolCallResponseSchema, toolIdPathParams, updateAgentModelBodySchema, updateAgentModelInModelListBodySchema } from '../../chunk-CEPTL3AG.js';
|
|
26
26
|
export { generateSpeechBodySchema, getListenerResponseSchema, speakResponseSchema, transcribeSpeechBodySchema, transcribeSpeechResponseSchema, voiceSpeakersResponseSchema } from '../../chunk-H7TPN2Y6.js';
|
|
27
27
|
export { agentVersionPathParams, agentVersionSchema, compareVersionsResponseSchema, createVersionResponseSchema, getVersionResponseSchema, listVersionsResponseSchema, restoreVersionResponseSchema, versionIdPathParams } from '../../chunk-OCWY55IQ.js';
|
|
28
28
|
export { activateVersionResponseSchema, compareVersionsQuerySchema, createCompareVersionsResponseSchema, createListVersionsResponseSchema, createVersionBodySchema, deleteVersionResponseSchema, listVersionsQuerySchema, versionDiffEntrySchema, versionOrderBySchema } from '../../chunk-3OQMTFIV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEJQMKG42_cjs = require('../../chunk-EJQMKG42.cjs');
|
|
4
4
|
var chunkLBVQK4LO_cjs = require('../../chunk-LBVQK4LO.cjs');
|
|
5
5
|
var chunkPPNPOLWL_cjs = require('../../chunk-PPNPOLWL.cjs');
|
|
6
6
|
var chunkZ7LCIYK7_cjs = require('../../chunk-Z7LCIYK7.cjs');
|
|
@@ -62,7 +62,7 @@ function getBuiltInRouteFGAConfig(route) {
|
|
|
62
62
|
if (!isProtectedFGARoute(route) || !route.path || !route.method) {
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
65
|
-
const permission =
|
|
65
|
+
const permission = chunkEJQMKG42_cjs.getEffectivePermission(route);
|
|
66
66
|
if (!permission) {
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
@@ -262,7 +262,7 @@ function getFGARouteInfo(route) {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function getRoutePermissions(route) {
|
|
265
|
-
return [
|
|
265
|
+
return [chunkEJQMKG42_cjs.getEffectivePermission(route), route.fga?.permission].flatMap((value) => Array.isArray(value) ? value : [value]).filter((permission) => Boolean(permission));
|
|
266
266
|
}
|
|
267
267
|
async function resolveRouteFGAConfig(fgaProvider, route, requestContext, params) {
|
|
268
268
|
if (route.fga) {
|
|
@@ -524,7 +524,7 @@ var MastraServer = class _MastraServer extends server.MastraServerBase {
|
|
|
524
524
|
if (!rbacProvider) {
|
|
525
525
|
return null;
|
|
526
526
|
}
|
|
527
|
-
const requiredPermission =
|
|
527
|
+
const requiredPermission = chunkEJQMKG42_cjs.getEffectivePermission(route);
|
|
528
528
|
if (!requiredPermission) {
|
|
529
529
|
return null;
|
|
530
530
|
}
|
|
@@ -614,7 +614,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
614
614
|
const customRoutes = (this.customApiRoutes ?? serverConfig?.apiRoutes ?? []).filter(
|
|
615
615
|
(route) => !route._mastraInternal
|
|
616
616
|
);
|
|
617
|
-
const routes = [...
|
|
617
|
+
const routes = [...chunkEJQMKG42_cjs.SERVER_ROUTES, ...customRoutes];
|
|
618
618
|
if (fgaProvider.validatePermissions) {
|
|
619
619
|
const permissions = [...new Set(routes.flatMap((route) => getRoutePermissions(route)))];
|
|
620
620
|
await fgaProvider.validatePermissions(permissions);
|
|
@@ -786,7 +786,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
786
786
|
* Builds the OpenAPI spec object with servers field and custom route paths.
|
|
787
787
|
*/
|
|
788
788
|
buildOpenAPISpec(config, prefix) {
|
|
789
|
-
const openApiSpec = chunkRZR7PLFW_cjs.generateOpenAPIDocument(
|
|
789
|
+
const openApiSpec = chunkRZR7PLFW_cjs.generateOpenAPIDocument(chunkEJQMKG42_cjs.SERVER_ROUTES, config);
|
|
790
790
|
if (prefix) {
|
|
791
791
|
openApiSpec.servers = [{ url: prefix }];
|
|
792
792
|
}
|
|
@@ -821,7 +821,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
821
821
|
await this.registerRoute(app, openApiRoute, { prefix });
|
|
822
822
|
}
|
|
823
823
|
async registerRoutes() {
|
|
824
|
-
for (const route of
|
|
824
|
+
for (const route of chunkEJQMKG42_cjs.SERVER_ROUTES) {
|
|
825
825
|
await this.registerRoute(this.app, route, { prefix: this.prefix });
|
|
826
826
|
}
|
|
827
827
|
if (this.openapiPath) {
|
|
@@ -910,7 +910,7 @@ async function checkRouteFGA(mastra, route, requestContext, params) {
|
|
|
910
910
|
message: "FGA authorization denied: route FGA metadata is incomplete"
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
const effectivePermission = route.path ?
|
|
913
|
+
const effectivePermission = route.path ? chunkEJQMKG42_cjs.getEffectivePermission(route) : null;
|
|
914
914
|
const permission = fgaConfig.permission || effectivePermission || `${getFGAResourcePermissionSlug(fgaConfig.resourceType)}:${deriveFGAAction(route.method)}`;
|
|
915
915
|
const authorized = await fgaProvider.check(user, {
|
|
916
916
|
resource: { type: fgaConfig.resourceType, id: resourceId },
|
|
@@ -952,23 +952,23 @@ function getFGAResourcePermissionSlug(resourceType) {
|
|
|
952
952
|
|
|
953
953
|
Object.defineProperty(exports, "SERVER_ROUTES", {
|
|
954
954
|
enumerable: true,
|
|
955
|
-
get: function () { return
|
|
955
|
+
get: function () { return chunkEJQMKG42_cjs.SERVER_ROUTES; }
|
|
956
956
|
});
|
|
957
957
|
Object.defineProperty(exports, "deriveAction", {
|
|
958
958
|
enumerable: true,
|
|
959
|
-
get: function () { return
|
|
959
|
+
get: function () { return chunkEJQMKG42_cjs.deriveAction; }
|
|
960
960
|
});
|
|
961
961
|
Object.defineProperty(exports, "derivePermission", {
|
|
962
962
|
enumerable: true,
|
|
963
|
-
get: function () { return
|
|
963
|
+
get: function () { return chunkEJQMKG42_cjs.derivePermission; }
|
|
964
964
|
});
|
|
965
965
|
Object.defineProperty(exports, "extractResource", {
|
|
966
966
|
enumerable: true,
|
|
967
|
-
get: function () { return
|
|
967
|
+
get: function () { return chunkEJQMKG42_cjs.extractResource; }
|
|
968
968
|
});
|
|
969
969
|
Object.defineProperty(exports, "getEffectivePermission", {
|
|
970
970
|
enumerable: true,
|
|
971
|
-
get: function () { return
|
|
971
|
+
get: function () { return chunkEJQMKG42_cjs.getEffectivePermission; }
|
|
972
972
|
});
|
|
973
973
|
Object.defineProperty(exports, "WorkflowRegistry", {
|
|
974
974
|
enumerable: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getEffectivePermission, SERVER_ROUTES } from '../../chunk-
|
|
2
|
-
export { SERVER_ROUTES, deriveAction, derivePermission, extractResource, getEffectivePermission } from '../../chunk-
|
|
1
|
+
import { getEffectivePermission, SERVER_ROUTES } from '../../chunk-D2FLXNQM.js';
|
|
2
|
+
export { SERVER_ROUTES, deriveAction, derivePermission, extractResource, getEffectivePermission } from '../../chunk-D2FLXNQM.js';
|
|
3
3
|
import { coreAuthMiddleware } from '../../chunk-YH4WGIEH.js';
|
|
4
4
|
import { normalizeRoutePath } from '../../chunk-PLV74XAL.js';
|
|
5
5
|
export { WorkflowRegistry, normalizeRoutePath } from '../../chunk-PLV74XAL.js';
|
|
@@ -82,6 +82,9 @@ export declare const LEGACY_ROUTES: readonly [import(".").ServerRoute<import("."
|
|
|
82
82
|
}>>;
|
|
83
83
|
fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
84
84
|
}, import("zod/v4/core").$strip>>;
|
|
85
|
+
untilIdle: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
86
|
+
maxIdleMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
87
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
85
88
|
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
89
|
resourceid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
90
|
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -165,6 +168,9 @@ export declare const LEGACY_ROUTES: readonly [import(".").ServerRoute<import("."
|
|
|
165
168
|
}>>;
|
|
166
169
|
fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
167
170
|
}, import("zod/v4/core").$strip>>;
|
|
171
|
+
untilIdle: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
172
|
+
maxIdleMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
173
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
168
174
|
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
175
|
resourceid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
170
176
|
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -248,6 +254,9 @@ export declare const LEGACY_ROUTES: readonly [import(".").ServerRoute<import("."
|
|
|
248
254
|
}>>;
|
|
249
255
|
fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
250
256
|
}, import("zod/v4/core").$strip>>;
|
|
257
|
+
untilIdle: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
258
|
+
maxIdleMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
259
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
251
260
|
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
261
|
resourceid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
262
|
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -331,6 +340,9 @@ export declare const LEGACY_ROUTES: readonly [import(".").ServerRoute<import("."
|
|
|
331
340
|
}>>;
|
|
332
341
|
fallbackValue: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
333
342
|
}, import("zod/v4/core").$strip>>;
|
|
343
|
+
untilIdle: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
344
|
+
maxIdleMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
345
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
334
346
|
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
347
|
resourceid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
336
348
|
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../src/server/server-adapter/routes/legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../src/server/server-adapter/routes/legacy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAYhB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -115,14 +115,14 @@
|
|
|
115
115
|
"zod": "^4.4.3",
|
|
116
116
|
"zod-to-ts": "^2.0.0",
|
|
117
117
|
"@internal/core": "0.0.0",
|
|
118
|
-
"@internal/lint": "0.0.
|
|
119
|
-
"@internal/storage-test-utils": "0.0.
|
|
118
|
+
"@internal/lint": "0.0.103",
|
|
119
|
+
"@internal/storage-test-utils": "0.0.99",
|
|
120
|
+
"@internal/test-utils": "0.0.39",
|
|
121
|
+
"@internal/types-builder": "0.0.78",
|
|
120
122
|
"@mastra/agent-builder": "1.0.40",
|
|
121
|
-
"@internal/voice": "0.0.
|
|
122
|
-
"@internal/test-utils": "0.0.38",
|
|
123
|
-
"@internal/types-builder": "0.0.77",
|
|
123
|
+
"@internal/voice": "0.0.4",
|
|
124
124
|
"@mastra/schema-compat": "1.2.11",
|
|
125
|
-
"@mastra/core": "1.
|
|
125
|
+
"@mastra/core": "1.41.0"
|
|
126
126
|
},
|
|
127
127
|
"homepage": "https://mastra.ai",
|
|
128
128
|
"repository": {
|