@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.
package/dist/index.js CHANGED
@@ -1241,12 +1241,13 @@ var Agent = class extends BaseResource {
1241
1241
  * @experimental Agent signals are experimental and may change in a future release.
1242
1242
  */
1243
1243
  async abortThread(params) {
1244
- const { resourceId, threadId } = params;
1244
+ const { resourceId, threadId, expectedRunId } = params;
1245
1245
  return this.request(`/agents/${this.agentId}/threads/abort`, {
1246
1246
  method: "POST",
1247
1247
  body: {
1248
1248
  resourceId,
1249
- threadId
1249
+ threadId,
1250
+ ...expectedRunId === void 0 ? {} : { expectedRunId }
1250
1251
  }
1251
1252
  });
1252
1253
  }