@mastra/client-js 1.32.1-alpha.0 → 1.32.1-alpha.2

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.32.1-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated generated route types so `memory.resource` is optional in agent generate and stream request bodies. The server can derive the resource ID from the authenticated user via `mapUserToResourceId`, so clients no longer need to provide it. Fixes [#19518](https://github.com/mastra-ai/mastra/issues/19518). ([#19524](https://github.com/mastra-ai/mastra/pull/19524))
8
+
9
+ - Updated dependencies [[`8b20926`](https://github.com/mastra-ai/mastra/commit/8b20926cd59e2ba3d66458e062fa0e6e2ada3e68), [`74faf8b`](https://github.com/mastra-ai/mastra/commit/74faf8bd9c1018f2492653c06b1e25fc8300e9e6), [`1fadac4`](https://github.com/mastra-ai/mastra/commit/1fadac44537caeefe81f9f775ae2f2f3d94e9069), [`792ec9a`](https://github.com/mastra-ai/mastra/commit/792ec9a0869bab8274cf5e0ed2840738737a1607), [`712b864`](https://github.com/mastra-ai/mastra/commit/712b864aa1ed12b14c54390ec17b69de163c37f7), [`8f7a5de`](https://github.com/mastra-ai/mastra/commit/8f7a5dedc246cdc938bb65516703cf9b27b03756), [`c0bec73`](https://github.com/mastra-ai/mastra/commit/c0bec732c93d1a22ae5e51ed66cf8cacca8bd6a6)]:
10
+ - @mastra/core@1.52.0-alpha.2
11
+
12
+ ## 1.32.1-alpha.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies:
17
+ - @mastra/core@1.51.1-alpha.1
18
+
3
19
  ## 1.32.1-alpha.0
4
20
 
5
21
  ### Patch Changes
@@ -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.32.1-alpha.0"
6
+ version: "1.32.1-alpha.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.32.1-alpha.0",
2
+ "version": "1.32.1-alpha.2",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {
@@ -2536,7 +2536,7 @@ export type PostAgentsAgentIdGenerate_Body = {
2536
2536
  id: string;
2537
2537
  [x: string]: unknown;
2538
2538
  };
2539
- resource: string;
2539
+ resource?: string | undefined;
2540
2540
  options?: {
2541
2541
  [key: string]: any;
2542
2542
  } | undefined;
@@ -2656,7 +2656,7 @@ export type PostAgentsAgentIdGenerateVnext_Body = {
2656
2656
  id: string;
2657
2657
  [x: string]: unknown;
2658
2658
  };
2659
- resource: string;
2659
+ resource?: string | undefined;
2660
2660
  options?: {
2661
2661
  [key: string]: any;
2662
2662
  } | undefined;
@@ -2776,7 +2776,7 @@ export type PostAgentsAgentIdStream_Body = {
2776
2776
  id: string;
2777
2777
  [x: string]: unknown;
2778
2778
  };
2779
- resource: string;
2779
+ resource?: string | undefined;
2780
2780
  options?: {
2781
2781
  [key: string]: any;
2782
2782
  } | undefined;
@@ -2896,7 +2896,7 @@ export type PostAgentsAgentIdStreamUntilIdle_Body = {
2896
2896
  id: string;
2897
2897
  [x: string]: unknown;
2898
2898
  };
2899
- resource: string;
2899
+ resource?: string | undefined;
2900
2900
  options?: {
2901
2901
  [key: string]: any;
2902
2902
  } | undefined;
@@ -3019,7 +3019,7 @@ export type PostAgentsAgentIdStreamVnext_Body = {
3019
3019
  id: string;
3020
3020
  [x: string]: unknown;
3021
3021
  };
3022
- resource: string;
3022
+ resource?: string | undefined;
3023
3023
  options?: {
3024
3024
  [key: string]: any;
3025
3025
  } | undefined;
@@ -3247,7 +3247,7 @@ export type PostAgentsAgentIdSendMessage_Body = {
3247
3247
  id: string;
3248
3248
  [x: string]: unknown;
3249
3249
  };
3250
- resource: string;
3250
+ resource?: string | undefined;
3251
3251
  options?: {
3252
3252
  [key: string]: any;
3253
3253
  } | undefined;
@@ -3501,7 +3501,7 @@ export type PostAgentsAgentIdQueueMessage_Body = {
3501
3501
  id: string;
3502
3502
  [x: string]: unknown;
3503
3503
  };
3504
- resource: string;
3504
+ resource?: string | undefined;
3505
3505
  options?: {
3506
3506
  [key: string]: any;
3507
3507
  } | undefined;
@@ -3741,7 +3741,7 @@ export type PostAgentsAgentIdSignals_Body = {
3741
3741
  id: string;
3742
3742
  [x: string]: unknown;
3743
3743
  };
3744
- resource: string;
3744
+ resource?: string | undefined;
3745
3745
  options?: {
3746
3746
  [key: string]: any;
3747
3747
  } | undefined;
@@ -4152,7 +4152,7 @@ export type PostAgentsAgentIdResumeStream_Body = {
4152
4152
  id: string;
4153
4153
  [x: string]: unknown;
4154
4154
  };
4155
- resource: string;
4155
+ resource?: string | undefined;
4156
4156
  options?: {
4157
4157
  [key: string]: any;
4158
4158
  } | undefined;
@@ -4439,7 +4439,7 @@ export type PostAgentsAgentIdResumeStreamUntilIdle_Body = {
4439
4439
  id: string;
4440
4440
  [x: string]: unknown;
4441
4441
  };
4442
- resource: string;
4442
+ resource?: string | undefined;
4443
4443
  options?: {
4444
4444
  [key: string]: any;
4445
4445
  } | undefined;
@@ -4562,7 +4562,7 @@ export type PostAgentsAgentIdNetwork_Body = {
4562
4562
  id: string;
4563
4563
  [x: string]: unknown;
4564
4564
  };
4565
- resource: string;
4565
+ resource?: string | undefined;
4566
4566
  options?: {
4567
4567
  [key: string]: any;
4568
4568
  } | undefined;
@@ -5079,7 +5079,7 @@ export type PostAgentsAgentIdStreamVNext_Body = {
5079
5079
  id: string;
5080
5080
  [x: string]: unknown;
5081
5081
  };
5082
- resource: string;
5082
+ resource?: string | undefined;
5083
5083
  options?: {
5084
5084
  [key: string]: any;
5085
5085
  } | undefined;
@@ -5204,7 +5204,7 @@ export type PostAgentsAgentIdStreamVnextUi_Body = {
5204
5204
  id: string;
5205
5205
  [x: string]: unknown;
5206
5206
  };
5207
- resource: string;
5207
+ resource?: string | undefined;
5208
5208
  options?: {
5209
5209
  [key: string]: any;
5210
5210
  } | undefined;
@@ -5329,7 +5329,7 @@ export type PostAgentsAgentIdStreamUi_Body = {
5329
5329
  id: string;
5330
5330
  [x: string]: unknown;
5331
5331
  };
5332
- resource: string;
5332
+ resource?: string | undefined;
5333
5333
  options?: {
5334
5334
  [key: string]: any;
5335
5335
  } | undefined;
@@ -13782,7 +13782,7 @@ export type PostAgentsAgentIdGenerateLegacy_Body = {
13782
13782
  id: string;
13783
13783
  [x: string]: unknown;
13784
13784
  };
13785
- resource: string;
13785
+ resource?: string | undefined;
13786
13786
  options?: {
13787
13787
  [key: string]: any;
13788
13788
  } | undefined;
@@ -13905,7 +13905,7 @@ export type PostAgentsAgentIdStreamLegacy_Body = {
13905
13905
  id: string;
13906
13906
  [x: string]: unknown;
13907
13907
  };
13908
- resource: string;
13908
+ resource?: string | undefined;
13909
13909
  options?: {
13910
13910
  [key: string]: any;
13911
13911
  } | undefined;