@mastra/client-js 0.0.0-storage-20250225005900 → 0.0.0-vnextWorkflows-20250417075051
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 +742 -3
- package/{LICENSE → LICENSE.md} +3 -1
- package/README.md +6 -3
- package/dist/index.cjs +729 -0
- package/dist/{index.d.mts → index.d.cts} +202 -22
- package/dist/index.d.ts +585 -0
- package/dist/{index.mjs → index.js} +256 -16
- package/package.json +25 -19
- package/src/client.ts +19 -1
- package/src/example.ts +65 -43
- package/src/index.test.ts +170 -57
- package/src/resources/agent.ts +93 -4
- package/src/resources/base.ts +4 -2
- package/src/resources/index.ts +1 -0
- package/src/resources/network.ts +92 -0
- package/src/resources/workflow.ts +156 -9
- package/src/types.ts +76 -15
- package/.turbo/turbo-build.log +0 -16
package/{LICENSE → LICENSE.md}
RENAMED
package/README.md
CHANGED
|
@@ -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.
|
|
83
|
-
- `workflow.
|
|
84
|
-
- `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
|
|