@mastra/client-js 1.47.0-alpha.6 → 1.47.0-alpha.7

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.
@@ -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.47.0-alpha.6"
6
+ version: "1.47.0-alpha.7"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.47.0-alpha.6",
2
+ "version": "1.47.0-alpha.7",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -1265,12 +1265,13 @@ var Agent = class extends BaseResource {
1265
1265
  * @experimental Agent signals are experimental and may change in a future release.
1266
1266
  */
1267
1267
  async abortThread(params) {
1268
- const { resourceId, threadId } = params;
1268
+ const { resourceId, threadId, expectedRunId } = params;
1269
1269
  return this.request(`/agents/${this.agentId}/threads/abort`, {
1270
1270
  method: "POST",
1271
1271
  body: {
1272
1272
  resourceId,
1273
- threadId
1273
+ threadId,
1274
+ ...expectedRunId === void 0 ? {} : { expectedRunId }
1274
1275
  }
1275
1276
  });
1276
1277
  }