@mastra/client-js 1.57.0-alpha.1 → 1.57.0-alpha.3
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +4 -0
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-client-js
|
|
|
3
3
|
description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/client-js"
|
|
6
|
-
version: "1.57.0-alpha.
|
|
6
|
+
version: "1.57.0-alpha.3"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -4522,7 +4522,7 @@ var Workflow = class extends BaseResource {
|
|
|
4522
4522
|
*/
|
|
4523
4523
|
async createRun(params) {
|
|
4524
4524
|
const searchParams = new URLSearchParams();
|
|
4525
|
-
if (
|
|
4525
|
+
if (params?.runId) searchParams.set("runId", params.runId);
|
|
4526
4526
|
const res = await this.request(`/workflows/${this.workflowId}/create-run?${searchParams.toString()}`, {
|
|
4527
4527
|
method: "POST",
|
|
4528
4528
|
body: {
|
|
@@ -5080,7 +5080,7 @@ var AgentBuilder = class extends BaseResource {
|
|
|
5080
5080
|
*/
|
|
5081
5081
|
async createRun(params) {
|
|
5082
5082
|
const searchParams = new URLSearchParams();
|
|
5083
|
-
if (
|
|
5083
|
+
if (params?.runId) searchParams.set("runId", params.runId);
|
|
5084
5084
|
const url = `/agent-builder/${this.actionId}/create-run${searchParams.toString() ? `?${searchParams.toString()}` : ""}`;
|
|
5085
5085
|
return this.request(url, { method: "POST" });
|
|
5086
5086
|
}
|