@mastra/client-js 0.0.0-main-test-20251105183450 → 0.0.0-main-test-05-11-2025-2-20251105214713
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 +7 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/index.cjs +1 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-builder.d.ts +0 -11
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/workflow.d.ts +0 -12
- package/dist/resources/workflow.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1642,17 +1642,6 @@ var Workflow = class extends BaseResource {
|
|
|
1642
1642
|
method: "POST"
|
|
1643
1643
|
});
|
|
1644
1644
|
}
|
|
1645
|
-
/**
|
|
1646
|
-
* Sends an event to a specific workflow run by its ID
|
|
1647
|
-
* @param params - Object containing the runId, event and data
|
|
1648
|
-
* @returns Promise containing a success message
|
|
1649
|
-
*/
|
|
1650
|
-
sendRunEvent(params) {
|
|
1651
|
-
return this.request(`/api/workflows/${this.workflowId}/runs/${params.runId}/send-event`, {
|
|
1652
|
-
method: "POST",
|
|
1653
|
-
body: { event: params.event, data: params.data }
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
1645
|
/**
|
|
1657
1646
|
* Creates a new workflow run
|
|
1658
1647
|
* @param params - Optional object containing the optional runId
|
|
@@ -2566,17 +2555,6 @@ var AgentBuilder = class extends BaseResource {
|
|
|
2566
2555
|
method: "POST"
|
|
2567
2556
|
});
|
|
2568
2557
|
}
|
|
2569
|
-
/**
|
|
2570
|
-
* Sends an event to an agent builder action run.
|
|
2571
|
-
* This calls `/api/agent-builder/:actionId/runs/:runId/send-event`.
|
|
2572
|
-
*/
|
|
2573
|
-
async sendRunEvent(params) {
|
|
2574
|
-
const url = `/api/agent-builder/${this.actionId}/runs/${params.runId}/send-event`;
|
|
2575
|
-
return this.request(url, {
|
|
2576
|
-
method: "POST",
|
|
2577
|
-
body: { event: params.event, data: params.data }
|
|
2578
|
-
});
|
|
2579
|
-
}
|
|
2580
2558
|
};
|
|
2581
2559
|
|
|
2582
2560
|
// src/resources/observability.ts
|
|
@@ -2695,6 +2673,7 @@ var MastraClient = class extends BaseResource {
|
|
|
2695
2673
|
listMemoryThreads(params) {
|
|
2696
2674
|
const queryParams = new URLSearchParams({
|
|
2697
2675
|
resourceId: params.resourceId,
|
|
2676
|
+
resourceid: params.resourceId,
|
|
2698
2677
|
agentId: params.agentId,
|
|
2699
2678
|
...params.page !== void 0 && { page: params.page.toString() },
|
|
2700
2679
|
...params.perPage !== void 0 && { perPage: params.perPage.toString() },
|