@mastra/client-js 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-studio-cloud-20251222034739
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 +1275 -3
- package/README.md +10 -10
- package/dist/_types/@ai-sdk_ui-utils/dist/index.d.ts +820 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +8396 -0
- package/dist/client.d.ts +68 -79
- package/dist/client.d.ts.map +1 -1
- package/dist/index.cjs +1828 -907
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1826 -901
- package/dist/index.js.map +1 -1
- package/dist/resources/a2a.d.ts.map +1 -1
- package/dist/resources/agent-builder.d.ts +9 -48
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +22 -45
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/mcp-tool.d.ts +5 -5
- package/dist/resources/memory-thread.d.ts +14 -22
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +8 -8
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/resources/run.d.ts +156 -0
- package/dist/resources/run.d.ts.map +1 -0
- package/dist/resources/stored-agent.d.ts +26 -0
- package/dist/resources/stored-agent.d.ts.map +1 -0
- package/dist/resources/tool.d.ts +4 -4
- package/dist/resources/vector.d.ts +5 -5
- package/dist/resources/workflow.d.ts +29 -229
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/tools.d.ts +2 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/types.d.ts +173 -76
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -6
- package/dist/utils/process-mastra-stream.d.ts +1 -1
- package/dist/utils/process-mastra-stream.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema.d.ts +9 -1
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
- package/package.json +16 -15
- package/dist/resources/network-memory-thread.d.ts +0 -47
- package/dist/resources/network-memory-thread.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ const client = new MastraClient({
|
|
|
50
50
|
|
|
51
51
|
### Agents
|
|
52
52
|
|
|
53
|
-
- `
|
|
53
|
+
- `listAgents()`: Get all available agents
|
|
54
54
|
- `getAgent(agentId)`: Get a specific agent instance
|
|
55
55
|
- `agent.details()`: Get agent details
|
|
56
56
|
- `agent.generate(params)`: Generate a response
|
|
@@ -63,29 +63,29 @@ const client = new MastraClient({
|
|
|
63
63
|
|
|
64
64
|
### Memory
|
|
65
65
|
|
|
66
|
-
- `
|
|
66
|
+
- `listMemoryThreads(params)`: Get memory threads
|
|
67
67
|
- `createMemoryThread(params)`: Create a new memory thread
|
|
68
|
-
- `getMemoryThread(threadId)`: Get a memory thread instance
|
|
68
|
+
- `getMemoryThread({ threadId, agentId })`: Get a memory thread instance
|
|
69
69
|
- `saveMessageToMemory(params)`: Save messages to memory
|
|
70
70
|
- `getMemoryStatus()`: Get memory system status
|
|
71
|
+
- `getWorkingMemory({ agentId, threadId, resourceId? })`: Get working memory for a thread
|
|
72
|
+
- `updateWorkingMemory({ agentId, threadId, workingMemory, resourceId? })`: Update working memory for a thread
|
|
71
73
|
|
|
72
74
|
### Tools
|
|
73
75
|
|
|
74
|
-
- `
|
|
76
|
+
- `listTools()`: Get all available tools
|
|
75
77
|
- `getTool(toolId)`: Get a tool instance
|
|
76
78
|
- `tool.details()`: Get tool details
|
|
77
79
|
- `tool.execute(params)`: Execute the tool
|
|
78
80
|
|
|
79
81
|
### Workflows
|
|
80
82
|
|
|
81
|
-
- `
|
|
83
|
+
- `listWorkflows()`: Get all workflows
|
|
82
84
|
- `getWorkflow(workflowId)`: Get a workflow instance
|
|
83
85
|
- `workflow.details()`: Get workflow details
|
|
84
|
-
- `workflow.
|
|
85
|
-
- `workflow.createRun()`: Deprecated - use createRunAsync() instead
|
|
86
|
+
- `workflow.createRun()`: Create workflow run
|
|
86
87
|
- `workflow.startAsync(params)`: Execute the workflow and wait for execution results
|
|
87
88
|
- `workflow.resumeAsync(params)`: Resume suspended workflow step async
|
|
88
|
-
- `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
|
|
89
89
|
- `workflow.start({runId, triggerData})`: Start a workflow run sync
|
|
90
90
|
- `workflow.resume(params)`: Resume the workflow run sync
|
|
91
91
|
|
|
@@ -101,9 +101,9 @@ const client = new MastraClient({
|
|
|
101
101
|
|
|
102
102
|
### Logs
|
|
103
103
|
|
|
104
|
-
- `
|
|
104
|
+
- `listLogs(params)`: Get system logs
|
|
105
105
|
- `getLog(params)`: Get specific log entry
|
|
106
|
-
- `
|
|
106
|
+
- `listLogTransports()`: Get configured Log transports
|
|
107
107
|
|
|
108
108
|
### Telemetry
|
|
109
109
|
|