@mastra/client-js 0.0.0-storage-20250225005900 → 0.0.0-support-d1-client-20250701191943

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,4 +1,6 @@
1
- Elastic License 2.0 (ELv2)
1
+ # Elastic License 2.0 (ELv2)
2
+
3
+ Copyright (c) 2025 Mastra AI, Inc.
2
4
 
3
5
  **Acceptance**
4
6
  By using the software, you agree to all of the terms and conditions below.
package/README.md CHANGED
@@ -11,7 +11,7 @@ npm install @mastra/client-js
11
11
  ## Quick Start
12
12
 
13
13
  ```typescript
14
- import { MastraClient } from '@mastra/client';
14
+ import { MastraClient } from '@mastra/client-js';
15
15
 
16
16
  // Initialize the client
17
17
  const client = new MastraClient({
@@ -79,9 +79,12 @@ const client = new MastraClient({
79
79
  - `getWorkflows()`: Get all workflows
80
80
  - `getWorkflow(workflowId)`: Get a workflow instance
81
81
  - `workflow.details()`: Get workflow details
82
- - `workflow.execute(params)`: Execute the workflow
83
- - `workflow.watch(params)`: Watch the workflow
84
- - `workflow.resume(params)`: Resume the workflow
82
+ - `workflow.createRun()`: Create workflow run
83
+ - `workflow.startAsync(params)`: Execute the workflow and wait for execution results
84
+ - `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
85
+ - `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
86
+ - `workflow.start({runId, triggerData})`: Start a workflow run sync
87
+ - `workflow.resume(params)`: Resume the workflow run sync
85
88
 
86
89
  ### Vectors
87
90