@mastra/client-js 1.42.5-alpha.0 → 1.42.5-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.42.5-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`a3606a0`](https://github.com/mastra-ai/mastra/commit/a3606a09f3deaeef17caf04b9c6a0d7cd6b80fe6), [`4095752`](https://github.com/mastra-ai/mastra/commit/40957529233d202446ebecab1f59c76e99910230), [`a3606a0`](https://github.com/mastra-ai/mastra/commit/a3606a09f3deaeef17caf04b9c6a0d7cd6b80fe6)]:
8
+ - @mastra/core@1.63.3-alpha.1
9
+
3
10
  ## 1.42.5-alpha.0
4
11
 
5
12
  ### 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.42.5-alpha.0"
6
+ version: "1.42.5-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -16,43 +16,43 @@ Read the individual reference documents for detailed explanations and code examp
16
16
 
17
17
  ### Docs
18
18
 
19
- - [JSON Web Token](references/docs-auth-jwt.md) - Documentation for JSON Web Token usage inside Mastra.
20
- - [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose and call remote Mastra agents over the Agent-to-Agent protocol.
21
- - [Schedules](references/docs-harness-schedules.md) - Run an agent on a cron schedule to deliver a recurring prompt, with optional thread delivery and lifecycle hooks.
22
- - [Signals](references/docs-harness-signals.md) - Learn how to send real-time messages and context into a Mastra agent thread.
23
- - [Mastra client](references/docs-server-mastra-client.md) - Learn how to set up and use the Mastra Client SDK
24
- - [Editor](references/docs-studio-editor.md) - Let collaborators update an agent in Studio, test their changes, and publish without editing code.
19
+ - [JSON Web Token](references/docs-auth-jwt.md) - Secure Mastra APIs with MastraJwtAuth and a shared secret, then create JSON Web Tokens and send authenticated requests through MastraClient.
20
+ - [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose Mastra agents through the Agent-to-Agent protocol and consume remote A2A agents as subagents or call them directly with the client SDK.
21
+ - [Schedules](references/docs-harness-schedules.md) - Schedule Mastra agents with cron expressions, recurring prompts, optional thread delivery, lifecycle hooks, and APIs for managing scheduled runs.
22
+ - [Signals](references/docs-harness-signals.md) - Send real-time messages or contextual data into a Mastra agent thread immediately or queue them for the next turn with configurable signal behavior.
23
+ - [Mastra client](references/docs-server-mastra-client.md) - Use the type-safe Mastra Client SDK from browser applications to call agents, workflows, tools, memory, and server APIs with streaming support.
24
+ - [Editor](references/docs-studio-editor.md) - Use Mastra Studio Editor so collaborators can change agent instructions and tools without modifying source code, from draft testing through publication.
25
25
 
26
26
  ### Integrations
27
27
 
28
- - [Auth0](references/integrations-auth-auth0.md) - Documentation for the @mastra/auth-auth0 package, which authenticates Mastra applications using Auth0 authentication.
29
- - [Clerk](references/integrations-auth-clerk.md) - Documentation for the `@mastra/auth-clerk` package, which authenticates Mastra applications using Clerk authentication.
30
- - [Firebase](references/integrations-auth-firebase.md) - Documentation for the `@mastra/auth-firebase` package, which authenticates Mastra applications using Firebase Authentication.
31
- - [Supabase](references/integrations-auth-supabase.md) - Documentation for the `@mastra/auth-supabase` package, which authenticates Mastra applications using Supabase Auth.
32
- - [WorkOS](references/integrations-auth-workos.md) - Documentation for the `@mastra/auth-workos` package, which authenticates Mastra applications using WorkOS authentication.
28
+ - [Auth0](references/integrations-auth-auth0.md) - Authenticate Mastra servers with Auth0 JWTs, configure credentials and authorization, and connect client applications with authenticated requests.
29
+ - [Clerk](references/integrations-auth-clerk.md) - Authenticate Mastra server requests with Clerk, configure the @mastra/auth-clerk provider, retrieve access tokens, and connect MastraClient securely.
30
+ - [Firebase](references/integrations-auth-firebase.md) - Authenticate Mastra applications with Firebase ID tokens, configure service credentials and authorization, and send secured client requests.
31
+ - [Supabase](references/integrations-auth-supabase.md) - Authenticate Mastra server requests with Supabase Auth, configure the provider, retrieve user access tokens, and connect MastraClient securely.
32
+ - [WorkOS](references/integrations-auth-workos.md) - Authenticate Mastra with WorkOS access tokens, configure default or fine-grained authorization, load memberships, and support custom JWT templates.
33
33
 
34
34
  ### Reference
35
35
 
36
- - [Reference: toAISdkMessages()](references/reference-ai-sdk-to-ai-sdk-messages.md) - API reference for toAISdkMessages(), a function to convert Mastra messages to AI SDK UI messages for AI SDK v5 or v6.
37
- - [Reference: toAISdkStream()](references/reference-ai-sdk-to-ai-sdk-stream.md) - API reference for toAISdkStream(), a function to convert Mastra streams to AI SDK-compatible streams.
38
- - [Reference: toAISdkV4Messages()](references/reference-ai-sdk-to-ai-sdk-v4-messages.md) - API reference for toAISdkV4Messages(), a function to convert Mastra messages to AI SDK v4 UI messages.
39
- - [Reference: toAISdkV5Messages()](references/reference-ai-sdk-to-ai-sdk-v5-messages.md) - API reference for toAISdkV5Messages(), a function to convert Mastra messages to AI SDK v5 UI messages.
40
- - [Reference: Agents API](references/reference-client-js-agents.md) - Learn how to interact with Mastra AI agents, including response generation and streamed interactions, along with agent-tool management using the client-js SDK.
41
- - [Reference: OpenAI Responses API Conversations](references/reference-client-js-conversations.md) - API reference for the client-js helpers that call Mastra's OpenAI-compatible `/v1/conversations` routes.
42
- - [Reference: Datasets API](references/reference-client-js-datasets.md) - API reference for the client-js dataset and experiment methods, including caller-driven experiment execution and result ingestion.
43
- - [Reference: Error handling](references/reference-client-js-error-handling.md) - Learn about the built-in retry mechanism and error handling capabilities in the Mastra client-js SDK.
44
- - [Reference: Logs API](references/reference-client-js-logs.md) - Learn how to access and query system logs and debugging information in Mastra using the client-js SDK.
45
- - [Reference: Mastra client SDK](references/reference-client-js-mastra-client.md) - Learn how to interact with Mastra using the client-js SDK.
46
- - [Reference: Memory API](references/reference-client-js-memory.md) - Learn how to manage conversation threads and message history in Mastra using the client-js SDK.
47
- - [Reference: Observability API](references/reference-client-js-observability.md) - Learn how to retrieve traces, monitor application performance, score traces, and record feedback using the client-js SDK.
48
- - [Reference: OpenAI Responses API](references/reference-client-js-responses.md) - API reference for the client-js helpers that call Mastra's OpenAI-compatible `/v1/responses` routes.
49
- - [Reference: Telemetry API](references/reference-client-js-telemetry.md) - Learn how to retrieve and analyze traces from your Mastra application for monitoring and debugging using the client-js SDK.
50
- - [Reference: Tools API](references/reference-client-js-tools.md) - Learn how to interact with and execute tools available in the Mastra platform using the client-js SDK.
51
- - [Reference: Vectors API](references/reference-client-js-vectors.md) - Learn how to work with vector embeddings for semantic search and similarity matching in Mastra using the client-js SDK.
52
- - [Reference: Workflows API](references/reference-client-js-workflows.md) - Learn how to interact with and execute automated workflows in Mastra using the client-js SDK.
53
- - [Reference: Versioning](references/reference-editor-versioning.md) - Reference for Editor version lifecycle, selection, sub-agent propagation, source behavior, REST endpoints, and SDK methods.
54
- - [Client SDK](references/reference-migrations-upgrade-to-v1-client.md) - Learn how to migrate client SDK changes when upgrading to v1.
55
- - [Reference: Metric queries](references/reference-observability-metrics-queries.md) - API reference for listing, aggregating, grouping, charting, and discovering Mastra metrics.
36
+ - [Reference: toAISdkMessages()](references/reference-ai-sdk-to-ai-sdk-messages.md) - Converts messages from input formats to AI SDK UI message format. toAISdkMessages() keeps the existing AI SDK v5/default behavior.
37
+ - [Reference: toAISdkStream()](references/reference-ai-sdk-to-ai-sdk-stream.md) - Converts Mastra streams (agent, network, or workflow) to AI SDK-compatible streams.
38
+ - [Reference: toAISdkV4Messages()](references/reference-ai-sdk-to-ai-sdk-v4-messages.md) - Use toAISdkV4Messages() to convert strings and Mastra or AI SDK messages into AI SDK v4 UIMessage objects for useChat().
39
+ - [Reference: toAISdkV5Messages()](references/reference-ai-sdk-to-ai-sdk-v5-messages.md) - Converts messages from input formats to AI SDK V5 (and later) UI message format.
40
+ - [Reference: Agents API](references/reference-client-js-agents.md) - The Agents API provides methods to interact with Mastra AI agents, including generating responses and streaming interactions.
41
+ - [Reference: OpenAI Responses API Conversations](references/reference-client-js-conversations.md) - The OpenAI Responses API Conversations surface gives you the conversation-management side of Mastra Agents as a Responses API.
42
+ - [Reference: Datasets API](references/reference-client-js-datasets.md) - The Datasets API exposes Mastra's dataset and experiment routes from MastraClient.
43
+ - [Reference: Error handling](references/reference-client-js-error-handling.md) - The Mastra Client SDK includes built-in retry mechanism and error handling capabilities.
44
+ - [Reference: Logs API](references/reference-client-js-logs.md) - The Logs API provides methods to access and query system logs and debugging information in Mastra.
45
+ - [Reference: Mastra client SDK](references/reference-client-js-mastra-client.md) - The Mastra Client SDK provides a type-safe interface for interacting with your Mastra Server from your client environment.
46
+ - [Reference: Memory API](references/reference-client-js-memory.md) - The Memory API provides methods to manage conversation threads and message history in Mastra.
47
+ - [Reference: Observability API](references/reference-client-js-observability.md) - The Observability API provides methods to retrieve traces, monitor application performance, score traces for evaluation, and record feedback linked to traces and spans.
48
+ - [Reference: OpenAI Responses API](references/reference-client-js-responses.md) - This OpenAI-compatible, agent-backed interface lets you use Mastra Agents as a Responses API.
49
+ - [Reference: Telemetry API](references/reference-client-js-telemetry.md) - The Telemetry API provides methods to retrieve and analyze traces from your Mastra application. This helps you monitor and debug your application's behavior and performance.
50
+ - [Reference: Tools API](references/reference-client-js-tools.md) - The Tools API provides methods to interact with and execute tools available in the Mastra platform.
51
+ - [Reference: Vectors API](references/reference-client-js-vectors.md) - The Vectors API provides methods to work with vector embeddings for semantic search and similarity matching in Mastra.
52
+ - [Reference: Workflows API](references/reference-client-js-workflows.md) - The Workflows API provides methods to interact with and execute automated workflows in Mastra.
53
+ - [Reference: Versioning](references/reference-editor-versioning.md) - Editor versions stored agents and prompt blocks. Database-backed resources use draft and publish operations.
54
+ - [Client SDK](references/reference-migrations-upgrade-to-v1-client.md) - Client SDK changes align with server-side API updates, including utility renames, updated pagination, and type naming conventions.
55
+ - [Reference: Metric queries](references/reference-observability-metrics-queries.md) - Metric queries read raw and aggregated metric data from the observability storage domain. For exporter and storage setup, see the Metrics overview.
56
56
 
57
57
 
58
58
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.42.5-alpha.0",
2
+ "version": "1.42.5-alpha.1",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.42.5-alpha.0",
3
+ "version": "1.42.5-alpha.1",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "canonicalize": "^1.0.8",
40
40
  "jose": "^6.2.1",
41
41
  "json-schema": "^0.4.0",
42
- "@mastra/core": "1.63.3-alpha.0",
42
+ "@mastra/core": "1.63.3-alpha.1",
43
43
  "@mastra/schema-compat": "1.3.7"
44
44
  },
45
45
  "peerDependencies": {
@@ -58,8 +58,8 @@
58
58
  "zod": "^4.4.3",
59
59
  "@internal/ai-sdk-v4": "0.0.76",
60
60
  "@internal/lint": "0.0.129",
61
- "@internal/types-builder": "0.0.104",
62
- "@internal/ai-sdk-v5": "0.0.76"
61
+ "@internal/ai-sdk-v5": "0.0.76",
62
+ "@internal/types-builder": "0.0.104"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">=22.13.0"