@mastra/client-js 0.1.18-alpha.6 → 0.1.18-alpha.8

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mastra/client-js@0.1.18-alpha.6 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.1.18-alpha.8 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,10 +10,10 @@
10
10
  ESM Build start
11
11
  CJS Build start
12
12
  CJS dist/index.cjs 21.79 KB
13
- CJS ⚡️ Build success in 957ms
13
+ CJS ⚡️ Build success in 1051ms
14
14
  ESM dist/index.js 21.61 KB
15
- ESM ⚡️ Build success in 957ms
15
+ ESM ⚡️ Build success in 1054ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 13712ms
17
+ DTS ⚡️ Build success in 11762ms
18
18
  DTS dist/index.d.ts 19.77 KB
19
19
  DTS dist/index.d.cts 19.77 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.1.18-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 2538066: Fix memory thread creation from client SDK
8
+ - Updated dependencies [000a6d4]
9
+ - Updated dependencies [ed2f549]
10
+ - Updated dependencies [c0f22b4]
11
+ - Updated dependencies [0a033fa]
12
+ - Updated dependencies [9c26508]
13
+ - Updated dependencies [0f4eae3]
14
+ - Updated dependencies [16a8648]
15
+ - @mastra/core@0.9.0-alpha.8
16
+
17
+ ## 0.1.18-alpha.7
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [71d9444]
22
+ - @mastra/core@0.9.0-alpha.7
23
+
3
24
  ## 0.1.18-alpha.6
4
25
 
5
26
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -97,7 +97,7 @@ type SaveMessageToMemoryResponse = MessageType[];
97
97
  interface CreateMemoryThreadParams {
98
98
  title: string;
99
99
  metadata: Record<string, any>;
100
- resourceid: string;
100
+ resourceId: string;
101
101
  threadId: string;
102
102
  agentId: string;
103
103
  }
@@ -110,7 +110,7 @@ type GetMemoryThreadResponse = StorageThreadType[];
110
110
  interface UpdateMemoryThreadParams {
111
111
  title: string;
112
112
  metadata: Record<string, any>;
113
- resourceid: string;
113
+ resourceId: string;
114
114
  }
115
115
  interface GetMemoryThreadMessagesResponse {
116
116
  messages: CoreMessage[];
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ type SaveMessageToMemoryResponse = MessageType[];
97
97
  interface CreateMemoryThreadParams {
98
98
  title: string;
99
99
  metadata: Record<string, any>;
100
- resourceid: string;
100
+ resourceId: string;
101
101
  threadId: string;
102
102
  agentId: string;
103
103
  }
@@ -110,7 +110,7 @@ type GetMemoryThreadResponse = StorageThreadType[];
110
110
  interface UpdateMemoryThreadParams {
111
111
  title: string;
112
112
  metadata: Record<string, any>;
113
- resourceid: string;
113
+ resourceId: string;
114
114
  }
115
115
  interface GetMemoryThreadMessagesResponse {
116
116
  messages: CoreMessage[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.1.18-alpha.6",
3
+ "version": "0.1.18-alpha.8",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "json-schema": "^0.4.0",
27
27
  "zod": "^3.24.2",
28
28
  "zod-to-json-schema": "^3.24.3",
29
- "@mastra/core": "^0.9.0-alpha.6"
29
+ "@mastra/core": "^0.9.0-alpha.8"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@babel/preset-env": "^7.26.9",
package/src/client.ts CHANGED
@@ -14,7 +14,6 @@ import type {
14
14
  GetTelemetryResponse,
15
15
  GetToolResponse,
16
16
  GetWorkflowResponse,
17
- RequestOptions,
18
17
  SaveMessageToMemoryParams,
19
18
  SaveMessageToMemoryResponse,
20
19
  } from './types';
@@ -166,14 +165,6 @@ export class MastraClient extends BaseResource {
166
165
  const { name, scope, page, perPage, attribute } = params || {};
167
166
  const _attribute = attribute ? Object.entries(attribute).map(([key, value]) => `${key}:${value}`) : [];
168
167
 
169
- const queryObj = {
170
- ...(name ? { name } : {}),
171
- ...(scope ? { scope } : {}),
172
- ...(page ? { page: String(page) } : {}),
173
- ...(perPage ? { perPage: String(perPage) } : {}),
174
- ...(_attribute?.length ? { attribute: _attribute } : {}),
175
- } as const;
176
-
177
168
  const searchParams = new URLSearchParams();
178
169
  if (name) {
179
170
  searchParams.set('name', name);
@@ -1,13 +1,6 @@
1
1
  import type { StorageThreadType } from '@mastra/core';
2
2
 
3
- import type {
4
- CreateMemoryThreadParams,
5
- GetMemoryThreadMessagesResponse,
6
- GetMemoryThreadResponse,
7
- ClientOptions,
8
- SaveMessageToMemoryParams,
9
- UpdateMemoryThreadParams,
10
- } from '../types';
3
+ import type { GetMemoryThreadMessagesResponse, ClientOptions, UpdateMemoryThreadParams } from '../types';
11
4
 
12
5
  import { BaseResource } from './base';
13
6
 
package/src/types.ts CHANGED
@@ -118,7 +118,7 @@ export type SaveMessageToMemoryResponse = MessageType[];
118
118
  export interface CreateMemoryThreadParams {
119
119
  title: string;
120
120
  metadata: Record<string, any>;
121
- resourceid: string;
121
+ resourceId: string;
122
122
  threadId: string;
123
123
  agentId: string;
124
124
  }
@@ -135,7 +135,7 @@ export type GetMemoryThreadResponse = StorageThreadType[];
135
135
  export interface UpdateMemoryThreadParams {
136
136
  title: string;
137
137
  metadata: Record<string, any>;
138
- resourceid: string;
138
+ resourceId: string;
139
139
  }
140
140
 
141
141
  export interface GetMemoryThreadMessagesResponse {