@mastra/client-js 0.1.2-alpha.1 → 0.1.3

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.2-alpha.1 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.1.3 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup-node src/index.ts --format esm --dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,8 +8,8 @@
8
8
  CLI Target: es2022
9
9
  CLI Cleaning output folder
10
10
  ESM Build start
11
- ESM dist/index.mjs 13.39 KB
12
- ESM ⚡️ Build success in 574ms
11
+ ESM dist/index.mjs 13.56 KB
12
+ ESM ⚡️ Build success in 616ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 9271ms
15
- DTS dist/index.d.mts 13.46 KB
14
+ DTS ⚡️ Build success in 7465ms
15
+ DTS dist/index.d.mts 13.64 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ce44b9b]
8
+ - Updated dependencies [967da43]
9
+ - Updated dependencies [b405f08]
10
+ - @mastra/core@0.4.1
11
+
12
+ ## 0.1.2
13
+
14
+ ### Patch Changes
15
+
16
+ - 5297264: Fix build errors by changing contracts
17
+ - Updated dependencies [2fc618f]
18
+ - Updated dependencies [fe0fd01]
19
+ - @mastra/core@0.4.0
20
+
3
21
  ## 0.1.2-alpha.1
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -97,6 +97,7 @@ const client = new MastraClient({
97
97
 
98
98
  - `getLogs(params)`: Get system logs
99
99
  - `getLog(params)`: Get specific log entry
100
+ - `getLogTransports()`: Get configured Log transports
100
101
 
101
102
  ### Telemetry
102
103
 
package/dist/index.d.mts CHANGED
@@ -387,6 +387,13 @@ declare class MastraClient extends BaseResource {
387
387
  * @returns Promise containing array of log messages
388
388
  */
389
389
  getLogForRun(params: GetLogParams): Promise<GetLogsResponse>;
390
+ /**
391
+ * List of all log transports
392
+ * @returns Promise containing list of log transports
393
+ */
394
+ getLogTransports(): Promise<{
395
+ transports: string[];
396
+ }>;
390
397
  /**
391
398
  * List of all traces (paged)
392
399
  * @param params - Parameters for filtering traces
package/dist/index.mjs CHANGED
@@ -436,6 +436,13 @@ var MastraClient = class extends BaseResource {
436
436
  getLogForRun(params) {
437
437
  return this.request(`/api/logs/${params.runId}?transportId=${params.transportId}`);
438
438
  }
439
+ /**
440
+ * List of all log transports
441
+ * @returns Promise containing list of log transports
442
+ */
443
+ getLogTransports() {
444
+ return this.request("/api/logs/transports");
445
+ }
439
446
  /**
440
447
  * List of all traces (paged)
441
448
  * @param params - Parameters for filtering traces
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.1.2-alpha.1",
3
+ "version": "0.1.3",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "types": "dist/index.d.mts",
@@ -20,7 +20,7 @@
20
20
  "json-schema": "^0.4.0",
21
21
  "zod": "^3.24.1",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@mastra/core": "^0.4.0-alpha.1"
23
+ "@mastra/core": "^0.4.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@babel/preset-env": "^7.26.0",
package/src/client.ts CHANGED
@@ -148,6 +148,14 @@ export class MastraClient extends BaseResource {
148
148
  return this.request(`/api/logs/${params.runId}?transportId=${params.transportId}`);
149
149
  }
150
150
 
151
+ /**
152
+ * List of all log transports
153
+ * @returns Promise containing list of log transports
154
+ */
155
+ public getLogTransports(): Promise<{ transports: string[] }> {
156
+ return this.request('/api/logs/transports');
157
+ }
158
+
151
159
  /**
152
160
  * List of all traces (paged)
153
161
  * @param params - Parameters for filtering traces