@mastra/client-js 0.1.2 → 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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +9 -0
- package/README.md +1 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
- package/src/client.ts +8 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.1.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m13.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m13.56 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 616ms
|
|
13
13
|
[34mDTS[39m Build start
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m13.
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 7465ms
|
|
15
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m13.64 KB[39m
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
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.
|
|
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.
|
|
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
|