@mastra/client-js 1.51.1-alpha.0 → 1.51.1-alpha.1

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.51.1-alpha.0"
6
+ version: "1.51.1-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.51.1-alpha.0",
2
+ "version": "1.51.1-alpha.1",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -6304,11 +6304,15 @@ var AgentControllerSession = class extends BaseResource {
6304
6304
  async abort() {
6305
6305
  await this.request(this.url(`${this.base()}/abort`), { method: "POST" });
6306
6306
  }
6307
- /** Approve or decline a pending tool call (`tool_approval_required`). */
6307
+ /**
6308
+ * Approve or decline a pending tool call (`tool_approval_required`). Resolves
6309
+ * `{ ok: false, reason }` when no pending approval claimed the decision.
6310
+ */
6308
6311
  async approveTool(toolCallId, approved, options) {
6309
6312
  const requestContext = parseClientRequestContext(options?.requestContext);
6310
- await this.request(this.url(`${this.base()}/tool-approval`), {
6313
+ return this.request(this.url(`${this.base()}/tool-approval`), {
6311
6314
  method: "POST",
6315
+ retries: 0,
6312
6316
  body: {
6313
6317
  toolCallId,
6314
6318
  approved,
@@ -6323,8 +6327,9 @@ var AgentControllerSession = class extends BaseResource {
6323
6327
  */
6324
6328
  async respondToToolSuspension(toolCallId, resumeData, options) {
6325
6329
  const requestContext = parseClientRequestContext(options?.requestContext);
6326
- await this.request(this.url(`${this.base()}/tool-suspension`), {
6330
+ return this.request(this.url(`${this.base()}/tool-suspension`), {
6327
6331
  method: "POST",
6332
+ retries: 0,
6328
6333
  body: {
6329
6334
  toolCallId,
6330
6335
  resumeData,