@mastra/client-js 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016
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 +9405 -3
- package/LICENSE.md +15 -0
- package/README.md +11 -13
- package/dist/_types/@ai-sdk_provider/dist/index.d.ts +1587 -0
- package/dist/_types/@ai-sdk_provider-utils/dist/index.d.ts +379 -0
- package/dist/_types/@ai-sdk_ui-utils/dist/index.d.ts +820 -0
- package/dist/agent-learning.d.ts +182 -0
- package/dist/agent-learning.d.ts.map +1 -0
- package/dist/client.d.ts +767 -80
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +52 -0
- package/dist/docs/assets/SOURCE_MAP.json +6 -0
- package/dist/docs/references/docs-agents-a2a.md +340 -0
- package/dist/docs/references/docs-editor-overview.md +349 -0
- package/dist/docs/references/docs-long-running-agents-schedules.md +201 -0
- package/dist/docs/references/docs-long-running-agents-signals.md +426 -0
- package/dist/docs/references/docs-server-auth-auth0.md +262 -0
- package/dist/docs/references/docs-server-auth-clerk.md +154 -0
- package/dist/docs/references/docs-server-auth-firebase.md +294 -0
- package/dist/docs/references/docs-server-auth-jwt.md +116 -0
- package/dist/docs/references/docs-server-auth-supabase.md +139 -0
- package/dist/docs/references/docs-server-auth-workos.md +271 -0
- package/dist/docs/references/docs-server-mastra-client.md +323 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-messages.md +97 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +282 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-v4-messages.md +81 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-v5-messages.md +78 -0
- package/dist/docs/references/reference-client-js-agents.md +959 -0
- package/dist/docs/references/reference-client-js-conversations.md +137 -0
- package/dist/docs/references/reference-client-js-error-handling.md +18 -0
- package/dist/docs/references/reference-client-js-logs.md +26 -0
- package/dist/docs/references/reference-client-js-mastra-client.md +96 -0
- package/dist/docs/references/reference-client-js-memory.md +237 -0
- package/dist/docs/references/reference-client-js-observability.md +183 -0
- package/dist/docs/references/reference-client-js-responses.md +219 -0
- package/dist/docs/references/reference-client-js-telemetry.md +22 -0
- package/dist/docs/references/reference-client-js-tools.md +46 -0
- package/dist/docs/references/reference-client-js-vectors.md +81 -0
- package/dist/docs/references/reference-client-js-workflows.md +393 -0
- package/dist/docs/references/reference-editor-versioning.md +130 -0
- package/dist/index.cjs +7638 -3257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7606 -3252
- package/dist/index.js.map +1 -1
- package/dist/observability/collector.d.ts +45 -0
- package/dist/observability/collector.d.ts.map +1 -0
- package/dist/observability/index.d.ts +14 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/types.d.ts +27 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/resources/a2a.d.ts +80 -11
- package/dist/resources/a2a.d.ts.map +1 -1
- package/dist/resources/agent-builder.d.ts +57 -72
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/agent-controller.d.ts +589 -0
- package/dist/resources/agent-controller.d.ts.map +1 -0
- package/dist/resources/agent.d.ts +368 -59
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/base.d.ts +2 -1
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/channels.d.ts +63 -0
- package/dist/resources/channels.d.ts.map +1 -0
- package/dist/resources/conversations.d.ts +15 -0
- package/dist/resources/conversations.d.ts.map +1 -0
- package/dist/resources/index.d.ts +14 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/mcp-tool.d.ts +5 -5
- package/dist/resources/mcp-tool.d.ts.map +1 -1
- package/dist/resources/memory-thread.d.ts +51 -16
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +222 -19
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/resources/processor-provider.d.ts +15 -0
- package/dist/resources/processor-provider.d.ts.map +1 -0
- package/dist/resources/processor.d.ts +20 -0
- package/dist/resources/processor.d.ts.map +1 -0
- package/dist/resources/responses.d.ts +22 -0
- package/dist/resources/responses.d.ts.map +1 -0
- package/dist/resources/run.d.ts +256 -0
- package/dist/resources/run.d.ts.map +1 -0
- package/dist/resources/stored-agent.d.ts +112 -0
- package/dist/resources/stored-agent.d.ts.map +1 -0
- package/dist/resources/stored-mcp-client.d.ts +30 -0
- package/dist/resources/stored-mcp-client.d.ts.map +1 -0
- package/dist/resources/stored-prompt-block.d.ts +83 -0
- package/dist/resources/stored-prompt-block.d.ts.map +1 -0
- package/dist/resources/stored-scorer.d.ts +83 -0
- package/dist/resources/stored-scorer.d.ts.map +1 -0
- package/dist/resources/stored-skill.d.ts +40 -0
- package/dist/resources/stored-skill.d.ts.map +1 -0
- package/dist/resources/stored-workflow.d.ts +18 -0
- package/dist/resources/stored-workflow.d.ts.map +1 -0
- package/dist/resources/tool-provider.d.ts +80 -0
- package/dist/resources/tool-provider.d.ts.map +1 -0
- package/dist/resources/tool.d.ts +4 -4
- package/dist/resources/vector.d.ts +9 -9
- package/dist/resources/vector.d.ts.map +1 -1
- package/dist/resources/workflow.d.ts +32 -231
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/resources/workspace.d.ts +129 -0
- package/dist/resources/workspace.d.ts.map +1 -0
- package/dist/route-types.generated.d.ts +18087 -0
- package/dist/route-types.generated.d.ts.map +1 -0
- package/dist/tools.d.ts +3 -6
- package/dist/tools.d.ts.map +1 -1
- package/dist/types.d.ts +2740 -197
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/client-tool-model-output.d.ts +16 -0
- package/dist/utils/client-tool-model-output.d.ts.map +1 -0
- package/dist/utils/index.d.ts +65 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/process-a2a-stream.d.ts +4 -0
- package/dist/utils/process-a2a-stream.d.ts.map +1 -0
- package/dist/utils/process-client-tools.d.ts.map +1 -1
- package/dist/utils/process-mastra-stream.d.ts +8 -7
- package/dist/utils/process-mastra-stream.d.ts.map +1 -1
- package/dist/utils/stream-transforms.d.ts +9 -0
- package/dist/utils/stream-transforms.d.ts.map +1 -0
- package/dist/utils/verify-agent-card-signature.d.ts +21 -0
- package/dist/utils/verify-agent-card-signature.d.ts.map +1 -0
- package/dist/utils/zod-to-json-schema.d.ts +11 -2
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
- package/package.json +26 -19
- package/dist/resources/network-memory-thread.d.ts +0 -47
- package/dist/resources/network-memory-thread.d.ts.map +0 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import type { TracingOptions } from '@mastra/core/observability';
|
|
2
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
3
|
+
import type { ClientOptions, WorkflowRunResult, StreamVNextChunkType, TimeTravelParams } from '../types.js';
|
|
4
|
+
import { BaseResource } from './base.js';
|
|
5
|
+
export declare class Run extends BaseResource {
|
|
6
|
+
private workflowId;
|
|
7
|
+
readonly runId: string;
|
|
8
|
+
constructor(options: ClientOptions, workflowId: string, runId: string);
|
|
9
|
+
private createChunkTransformStream;
|
|
10
|
+
/**
|
|
11
|
+
* Cancels a specific workflow run by its ID
|
|
12
|
+
* @returns Promise containing a success message
|
|
13
|
+
* @deprecated Use `cancel()` instead
|
|
14
|
+
*/
|
|
15
|
+
cancelRun(): Promise<{
|
|
16
|
+
message: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Cancels a workflow run.
|
|
20
|
+
*
|
|
21
|
+
* This method aborts any running steps and updates the workflow status to 'canceled' .
|
|
22
|
+
* It works for both actively running workflows and suspended/waiting workflows.
|
|
23
|
+
*
|
|
24
|
+
* ## How cancellation works
|
|
25
|
+
*
|
|
26
|
+
* When called, the workflow will:
|
|
27
|
+
* 1. **Trigger the abort signal** - Uses the standard Web API AbortSignal to notify running steps
|
|
28
|
+
* 2. **Prevent subsequent steps** - No further steps will be executed
|
|
29
|
+
*
|
|
30
|
+
* ## Abort signal behavior
|
|
31
|
+
*
|
|
32
|
+
* Steps that check the `abortSignal` parameter can respond to cancellation:
|
|
33
|
+
* - Steps can listen to the 'abort' event: `abortSignal.addEventListener('abort', callback)`
|
|
34
|
+
* - Steps can check if already aborted: `if (abortSignal.aborted) { ... }`
|
|
35
|
+
* - Useful for canceling timeouts, network requests, or long-running operations
|
|
36
|
+
*
|
|
37
|
+
* **Note:** Steps must actively check the abort signal to be canceled mid-execution.
|
|
38
|
+
* Steps that don't check the signal will run to completion, but subsequent steps won't execute.
|
|
39
|
+
*
|
|
40
|
+
* @returns Promise that resolves with `{ message: 'Workflow run canceled' }` when cancellation succeeds
|
|
41
|
+
* @throws {HTTPException} 400 - If workflow ID or run ID is missing
|
|
42
|
+
* @throws {HTTPException} 404 - If workflow or workflow run is not found
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const run = await workflow.createRun({ runId: 'run-123' });
|
|
47
|
+
* await run.cancel();
|
|
48
|
+
* // Returns: { message: 'Workflow run canceled' }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // Example of a step that responds to cancellation
|
|
54
|
+
* const step = createStep({
|
|
55
|
+
* id: 'long-running-step',
|
|
56
|
+
* execute: async ({ inputData, abortSignal, abort }) => {
|
|
57
|
+
* const timeout = new Promise((resolve) => {
|
|
58
|
+
* const timer = setTimeout(() => resolve('done'), 10000);
|
|
59
|
+
*
|
|
60
|
+
* // Clean up if canceled
|
|
61
|
+
* abortSignal.addEventListener('abort', () => {
|
|
62
|
+
* clearTimeout(timer);
|
|
63
|
+
* resolve('canceled');
|
|
64
|
+
* });
|
|
65
|
+
* });
|
|
66
|
+
*
|
|
67
|
+
* const result = await timeout;
|
|
68
|
+
*
|
|
69
|
+
* // Check if aborted after async operation
|
|
70
|
+
* if (abortSignal.aborted) {
|
|
71
|
+
* return abort(); // Stop execution
|
|
72
|
+
* }
|
|
73
|
+
*
|
|
74
|
+
* return { result };
|
|
75
|
+
* }
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
cancel(): Promise<{
|
|
80
|
+
message: string;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Starts a workflow run synchronously without waiting for the workflow to complete
|
|
84
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
85
|
+
* @returns Promise containing success message
|
|
86
|
+
*/
|
|
87
|
+
start(params: {
|
|
88
|
+
inputData: Record<string, any>;
|
|
89
|
+
initialState?: Record<string, any>;
|
|
90
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
91
|
+
tracingOptions?: TracingOptions;
|
|
92
|
+
perStep?: boolean;
|
|
93
|
+
}): Promise<{
|
|
94
|
+
message: string;
|
|
95
|
+
}>;
|
|
96
|
+
/**
|
|
97
|
+
* Resumes a suspended workflow step synchronously without waiting for the workflow to complete
|
|
98
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
99
|
+
* @returns Promise containing success message
|
|
100
|
+
*/
|
|
101
|
+
resume({ step, resumeData, tracingOptions, perStep, forEachIndex, ...rest }: {
|
|
102
|
+
step?: string | string[];
|
|
103
|
+
resumeData?: Record<string, any>;
|
|
104
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
105
|
+
tracingOptions?: TracingOptions;
|
|
106
|
+
perStep?: boolean;
|
|
107
|
+
forEachIndex?: number;
|
|
108
|
+
}): Promise<{
|
|
109
|
+
message: string;
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Starts a workflow run asynchronously and returns a promise that resolves when the workflow is complete
|
|
113
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
114
|
+
* @returns Promise containing the workflow execution results
|
|
115
|
+
*/
|
|
116
|
+
startAsync(params: {
|
|
117
|
+
inputData: Record<string, any>;
|
|
118
|
+
initialState?: Record<string, any>;
|
|
119
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
120
|
+
tracingOptions?: TracingOptions;
|
|
121
|
+
resourceId?: string;
|
|
122
|
+
perStep?: boolean;
|
|
123
|
+
}): Promise<WorkflowRunResult>;
|
|
124
|
+
/**
|
|
125
|
+
* Starts a workflow run and returns a stream
|
|
126
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
127
|
+
* @returns Promise containing the workflow execution results
|
|
128
|
+
*/
|
|
129
|
+
stream(params: {
|
|
130
|
+
inputData: Record<string, any>;
|
|
131
|
+
initialState?: Record<string, any>;
|
|
132
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
133
|
+
tracingOptions?: TracingOptions;
|
|
134
|
+
resourceId?: string;
|
|
135
|
+
perStep?: boolean;
|
|
136
|
+
closeOnSuspend?: boolean;
|
|
137
|
+
}): Promise<globalThis.ReadableStream<StreamVNextChunkType>>;
|
|
138
|
+
/**
|
|
139
|
+
* Observe (reconnect to) an existing workflow stream.
|
|
140
|
+
* Use this to resume receiving events after a disconnection.
|
|
141
|
+
*
|
|
142
|
+
* @param params.offset - Optional position to resume from (0-based). If omitted, replays all events.
|
|
143
|
+
* @returns Promise containing a ReadableStream of workflow events
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* // Reconnect to a workflow stream from a specific position
|
|
148
|
+
* const stream = await run.observe({ offset: 42 });
|
|
149
|
+
*
|
|
150
|
+
* for await (const event of stream) {
|
|
151
|
+
* console.log('Received:', event);
|
|
152
|
+
* }
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
observe(params?: {
|
|
156
|
+
offset?: number;
|
|
157
|
+
}): Promise<globalThis.ReadableStream<StreamVNextChunkType>>;
|
|
158
|
+
/**
|
|
159
|
+
* Observes workflow stream for a workflow run
|
|
160
|
+
* @deprecated Use `observe()` instead for better control over replay position
|
|
161
|
+
* @returns Promise containing the workflow execution results
|
|
162
|
+
*/
|
|
163
|
+
observeStream(): Promise<ReadableStream<StreamVNextChunkType>>;
|
|
164
|
+
/**
|
|
165
|
+
* Resumes a suspended workflow step asynchronously and returns a promise that resolves when the workflow is complete
|
|
166
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
167
|
+
* @returns Promise containing the workflow resume results
|
|
168
|
+
*/
|
|
169
|
+
resumeAsync(params: {
|
|
170
|
+
step?: string | string[];
|
|
171
|
+
resumeData?: Record<string, any>;
|
|
172
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
173
|
+
tracingOptions?: TracingOptions;
|
|
174
|
+
perStep?: boolean;
|
|
175
|
+
forEachIndex?: number;
|
|
176
|
+
}): Promise<WorkflowRunResult>;
|
|
177
|
+
/**
|
|
178
|
+
* Resumes a suspended workflow step without waiting for the workflow to complete (fire-and-forget)
|
|
179
|
+
* and returns immediately with the runId. The workflow continues executing in the background.
|
|
180
|
+
*
|
|
181
|
+
* Use this when you want to dispatch a resume and return immediately (e.g. an HTTP handler that
|
|
182
|
+
* never needs the resolved result inline). For Inngest-backed workflows this also avoids the
|
|
183
|
+
* `getRunOutput()` polling race that `resumeAsync()` can hit.
|
|
184
|
+
*
|
|
185
|
+
* TODO(v2): in Mastra v2 this fire-and-forget behavior should become the behavior of
|
|
186
|
+
* `resumeAsync()` (to mirror `start`/`resume` fire-and-forget semantics), and this method
|
|
187
|
+
* should be removed. Kept as a separate method in v1 to avoid a breaking contract change.
|
|
188
|
+
*
|
|
189
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
190
|
+
* @returns Promise containing the runId of the resumed workflow run
|
|
191
|
+
*/
|
|
192
|
+
resumeNoWait(params: {
|
|
193
|
+
step?: string | string[];
|
|
194
|
+
resumeData?: Record<string, any>;
|
|
195
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
196
|
+
tracingOptions?: TracingOptions;
|
|
197
|
+
perStep?: boolean;
|
|
198
|
+
forEachIndex?: number;
|
|
199
|
+
}): Promise<{
|
|
200
|
+
runId: string;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Resumes a suspended workflow step that uses stream asynchronously and returns a promise that resolves when the workflow is complete
|
|
204
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
205
|
+
* @returns Promise containing the workflow resume results
|
|
206
|
+
*/
|
|
207
|
+
resumeStream(params: {
|
|
208
|
+
step?: string | string[];
|
|
209
|
+
resumeData?: Record<string, any>;
|
|
210
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
211
|
+
tracingOptions?: TracingOptions;
|
|
212
|
+
perStep?: boolean;
|
|
213
|
+
forEachIndex?: number;
|
|
214
|
+
}): Promise<globalThis.ReadableStream<StreamVNextChunkType>>;
|
|
215
|
+
/**
|
|
216
|
+
* Restarts an active workflow run synchronously without waiting for the workflow to complete
|
|
217
|
+
* @param params - Object containing the requestContext
|
|
218
|
+
* @returns Promise containing success message
|
|
219
|
+
*/
|
|
220
|
+
restart(params: {
|
|
221
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
222
|
+
tracingOptions?: TracingOptions;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
message: string;
|
|
225
|
+
}>;
|
|
226
|
+
/**
|
|
227
|
+
* Restarts an active workflow run asynchronously
|
|
228
|
+
* @param params - optional object containing the requestContext
|
|
229
|
+
* @returns Promise containing the workflow restart results
|
|
230
|
+
*/
|
|
231
|
+
restartAsync(params?: {
|
|
232
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
233
|
+
tracingOptions?: TracingOptions;
|
|
234
|
+
}): Promise<WorkflowRunResult>;
|
|
235
|
+
/**
|
|
236
|
+
* Time travels a workflow run synchronously without waiting for the workflow to complete
|
|
237
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
238
|
+
* @returns Promise containing success message
|
|
239
|
+
*/
|
|
240
|
+
timeTravel({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<{
|
|
241
|
+
message: string;
|
|
242
|
+
}>;
|
|
243
|
+
/**
|
|
244
|
+
* Time travels a workflow run asynchronously
|
|
245
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
246
|
+
* @returns Promise containing the workflow time travel results
|
|
247
|
+
*/
|
|
248
|
+
timeTravelAsync({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<WorkflowRunResult>;
|
|
249
|
+
/**
|
|
250
|
+
* Time travels a workflow run and returns a stream
|
|
251
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
252
|
+
* @returns Promise containing the workflow execution results
|
|
253
|
+
*/
|
|
254
|
+
timeTravelStream({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<globalThis.ReadableStream<StreamVNextChunkType>>;
|
|
255
|
+
}
|
|
256
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/resources/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIzG,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAgBtC,qBAAa,GAAI,SAAQ,YAAY;IAGjC,OAAO,CAAC,UAAU;aACF,KAAK,EAAE,MAAM;gBAF7B,OAAO,EAAE,aAAa,EACd,UAAU,EAAE,MAAM,EACV,KAAK,EAAE,MAAM;IAK/B,OAAO,CAAC,0BAA0B;IAIlC;;;;OAIG;IACH,SAAS,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAMzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,iBAAiB,CAAC;IAW9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAW/G;;;;OAIG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAWlH;;;;OAIG;IACG,gBAAgB,CAAC,EACrB,cAAc,EAAE,oBAAoB,EACpC,GAAG,MAAM,EACV,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAyB/E"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, StoredAgentResponse, UpdateStoredAgentParams, DeleteStoredAgentResponse, StoredAgentDependentsResponse, AgentVersionResponse, ListAgentVersionsParams, ListAgentVersionsResponse, CreateAgentVersionParams, ActivateAgentVersionResponse, CompareVersionsResponse, DeleteAgentVersionResponse, FavoriteToggleResponse, ExportStoredAgentParams, ExportStoredAgentResponse, OpenStoredAgentChangeRequestParams, OpenStoredAgentChangeRequestResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resource for interacting with a specific stored agent
|
|
6
|
+
*/
|
|
7
|
+
export declare class StoredAgent extends BaseResource {
|
|
8
|
+
private storedAgentId;
|
|
9
|
+
constructor(options: ClientOptions, storedAgentId: string);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details about the stored agent
|
|
12
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
|
+
* @param options - Optional options like status filter
|
|
14
|
+
* @returns Promise containing stored agent details
|
|
15
|
+
*/
|
|
16
|
+
details(requestContext?: RequestContext | Record<string, any>, options?: {
|
|
17
|
+
status?: 'draft' | 'published' | 'archived';
|
|
18
|
+
}): Promise<StoredAgentResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the stored agent with the provided fields
|
|
21
|
+
* @param params - Fields to update
|
|
22
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
23
|
+
* @returns Promise containing the updated stored agent
|
|
24
|
+
*/
|
|
25
|
+
update(params: UpdateStoredAgentParams, requestContext?: RequestContext | Record<string, any>): Promise<StoredAgentResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Exports deterministic JSON for this agent without mutating storage.
|
|
28
|
+
*/
|
|
29
|
+
export(params: ExportStoredAgentParams): Promise<ExportStoredAgentResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Opens a source-provider change request for deterministic agent JSON without mutating storage.
|
|
32
|
+
*/
|
|
33
|
+
openChangeRequest(params: OpenStoredAgentChangeRequestParams): Promise<OpenStoredAgentChangeRequestResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Deletes the stored agent
|
|
36
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
37
|
+
* @returns Promise containing deletion confirmation
|
|
38
|
+
*/
|
|
39
|
+
delete(requestContext?: RequestContext | Record<string, any>): Promise<DeleteStoredAgentResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Lists other stored agents that reference this agent as a sub-agent.
|
|
42
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
43
|
+
* @returns Promise containing the list of dependent agents and a hidden count
|
|
44
|
+
* for cross-workspace private dependents (only non-zero when this agent is public).
|
|
45
|
+
*/
|
|
46
|
+
dependents(requestContext?: RequestContext | Record<string, any>): Promise<StoredAgentDependentsResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Favorites this agent for the calling user. Idempotent.
|
|
49
|
+
* Requires the `agent.favorites` builder feature flag to be enabled on the server.
|
|
50
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
51
|
+
* @returns Promise containing the new favorited state and updated favorite count
|
|
52
|
+
*/
|
|
53
|
+
favorite(requestContext?: RequestContext | Record<string, any>): Promise<FavoriteToggleResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Unfavorites this agent for the calling user. Idempotent.
|
|
56
|
+
* Requires the `agent.favorites` builder feature flag to be enabled on the server.
|
|
57
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
58
|
+
* @returns Promise containing the new favorited state and updated favorite count
|
|
59
|
+
*/
|
|
60
|
+
unfavorite(requestContext?: RequestContext | Record<string, any>): Promise<FavoriteToggleResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Lists all versions for this stored agent
|
|
63
|
+
* @param params - Optional pagination and sorting parameters
|
|
64
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
65
|
+
* @returns Promise containing paginated list of versions
|
|
66
|
+
*/
|
|
67
|
+
listVersions(params?: ListAgentVersionsParams, requestContext?: RequestContext | Record<string, any>): Promise<ListAgentVersionsResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Creates a new version snapshot for this stored agent
|
|
70
|
+
* @param params - Optional name and change message for the version
|
|
71
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
72
|
+
* @returns Promise containing the created version
|
|
73
|
+
*/
|
|
74
|
+
createVersion(params?: CreateAgentVersionParams, requestContext?: RequestContext | Record<string, any>): Promise<AgentVersionResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves a specific version by its ID
|
|
77
|
+
* @param versionId - The UUID of the version to retrieve
|
|
78
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
79
|
+
* @returns Promise containing the version details
|
|
80
|
+
*/
|
|
81
|
+
getVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<AgentVersionResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Activates a specific version, making it the active version for this agent
|
|
84
|
+
* @param versionId - The UUID of the version to activate
|
|
85
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
86
|
+
* @returns Promise containing activation confirmation with success status, message, and active version ID
|
|
87
|
+
*/
|
|
88
|
+
activateVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<ActivateAgentVersionResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Restores a version by creating a new version with the same configuration
|
|
91
|
+
* @param versionId - The UUID of the version to restore
|
|
92
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
93
|
+
* @returns Promise containing the newly created version
|
|
94
|
+
*/
|
|
95
|
+
restoreVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<AgentVersionResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Deletes a specific version
|
|
98
|
+
* @param versionId - The UUID of the version to delete
|
|
99
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
100
|
+
* @returns Promise that resolves with deletion response
|
|
101
|
+
*/
|
|
102
|
+
deleteVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<DeleteAgentVersionResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* Compares two versions and returns their differences
|
|
105
|
+
* @param fromId - The UUID of the source version
|
|
106
|
+
* @param toId - The UUID of the target version
|
|
107
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
108
|
+
* @returns Promise containing the comparison results
|
|
109
|
+
*/
|
|
110
|
+
compareVersions(fromId: string, toId: string, requestContext?: RequestContext | Record<string, any>): Promise<CompareVersionsResponse>;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=stored-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stored-agent.d.ts","sourceRoot":"","sources":["../../src/resources/stored-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,s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,uBAAuB,CAAC;CAUpC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, StoredMCPClientResponse, UpdateStoredMCPClientParams, DeleteStoredMCPClientResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resource for interacting with a specific stored MCP client
|
|
6
|
+
*/
|
|
7
|
+
export declare class StoredMCPClient extends BaseResource {
|
|
8
|
+
private storedMCPClientId;
|
|
9
|
+
constructor(options: ClientOptions, storedMCPClientId: string);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details about the stored MCP client
|
|
12
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
|
+
* @returns Promise containing stored MCP client details
|
|
14
|
+
*/
|
|
15
|
+
details(requestContext?: RequestContext | Record<string, any>): Promise<StoredMCPClientResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Updates the stored MCP client with the provided fields
|
|
18
|
+
* @param params - Fields to update
|
|
19
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
20
|
+
* @returns Promise containing the updated stored MCP client
|
|
21
|
+
*/
|
|
22
|
+
update(params: UpdateStoredMCPClientParams, requestContext?: RequestContext | Record<string, any>): Promise<StoredMCPClientResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Deletes the stored MCP client
|
|
25
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
26
|
+
* @returns Promise containing deletion confirmation
|
|
27
|
+
*/
|
|
28
|
+
delete(requestContext?: RequestContext | Record<string, any>): Promise<DeleteStoredMCPClientResponse>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=stored-mcp-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stored-mcp-client.d.ts","sourceRoot":"","sources":["../../src/resources/stored-mcp-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAG7C,OAAO,CAAC,iBAAiB;gBADzB,OAAO,EAAE,aAAa,EACd,iBAAiB,EAAE,MAAM;IAKnC;;;;OAIG;IACH,OAAO,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAMhG;;;;;OAKG;IACH,MAAM,CACJ,MAAM,EAAE,2BAA2B,EACnC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,uBAAuB,CAAC;IAUnC;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAQtG"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, StoredPromptBlockResponse, UpdateStoredPromptBlockParams, DeleteStoredPromptBlockResponse, PromptBlockVersionResponse, ListPromptBlockVersionsParams, ListPromptBlockVersionsResponse, CreatePromptBlockVersionParams, ActivatePromptBlockVersionResponse, CompareVersionsResponse, DeletePromptBlockVersionResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resource for interacting with a specific stored prompt block
|
|
6
|
+
*/
|
|
7
|
+
export declare class StoredPromptBlock extends BaseResource {
|
|
8
|
+
private storedPromptBlockId;
|
|
9
|
+
constructor(options: ClientOptions, storedPromptBlockId: string);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details about the stored prompt block
|
|
12
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
|
+
* @param options - Optional options like status filter
|
|
14
|
+
* @returns Promise containing stored prompt block details
|
|
15
|
+
*/
|
|
16
|
+
details(requestContext?: RequestContext | Record<string, any>, options?: {
|
|
17
|
+
status?: 'draft' | 'published' | 'archived';
|
|
18
|
+
}): Promise<StoredPromptBlockResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the stored prompt block with the provided fields
|
|
21
|
+
* @param params - Fields to update
|
|
22
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
23
|
+
* @returns Promise containing the updated stored prompt block
|
|
24
|
+
*/
|
|
25
|
+
update(params: UpdateStoredPromptBlockParams, requestContext?: RequestContext | Record<string, any>): Promise<StoredPromptBlockResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Deletes the stored prompt block
|
|
28
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
29
|
+
* @returns Promise containing deletion confirmation
|
|
30
|
+
*/
|
|
31
|
+
delete(requestContext?: RequestContext | Record<string, any>): Promise<DeleteStoredPromptBlockResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Lists all versions for this stored prompt block
|
|
34
|
+
* @param params - Optional pagination and sorting parameters
|
|
35
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
36
|
+
* @returns Promise containing paginated list of versions
|
|
37
|
+
*/
|
|
38
|
+
listVersions(params?: ListPromptBlockVersionsParams, requestContext?: RequestContext | Record<string, any>): Promise<ListPromptBlockVersionsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new version snapshot for this stored prompt block
|
|
41
|
+
* @param params - Optional name and change message for the version
|
|
42
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
43
|
+
* @returns Promise containing the created version
|
|
44
|
+
*/
|
|
45
|
+
createVersion(params?: CreatePromptBlockVersionParams, requestContext?: RequestContext | Record<string, any>): Promise<PromptBlockVersionResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a specific version by its ID
|
|
48
|
+
* @param versionId - The UUID of the version to retrieve
|
|
49
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
50
|
+
* @returns Promise containing the version details
|
|
51
|
+
*/
|
|
52
|
+
getVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<PromptBlockVersionResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Activates a specific version, making it the active version for this prompt block
|
|
55
|
+
* @param versionId - The UUID of the version to activate
|
|
56
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
57
|
+
* @returns Promise containing activation confirmation with success status, message, and active version ID
|
|
58
|
+
*/
|
|
59
|
+
activateVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<ActivatePromptBlockVersionResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Restores a version by creating a new version with the same configuration
|
|
62
|
+
* @param versionId - The UUID of the version to restore
|
|
63
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
64
|
+
* @returns Promise containing the newly created version
|
|
65
|
+
*/
|
|
66
|
+
restoreVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<PromptBlockVersionResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Deletes a specific version
|
|
69
|
+
* @param versionId - The UUID of the version to delete
|
|
70
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
71
|
+
* @returns Promise that resolves with deletion response
|
|
72
|
+
*/
|
|
73
|
+
deleteVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<DeletePromptBlockVersionResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Compares two versions and returns their differences
|
|
76
|
+
* @param fromId - The UUID of the source version
|
|
77
|
+
* @param toId - The UUID of the target version
|
|
78
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
79
|
+
* @returns Promise containing the comparison results
|
|
80
|
+
*/
|
|
81
|
+
compareVersions(fromId: string, toId: string, requestContext?: RequestContext | Record<string, any>): Promise<CompareVersionsResponse>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=stored-prompt-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stored-prompt-block.d.ts","sourceRoot":"","sources":["../../src/resources/stored-prompt-block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,kCAAkC,EAClC,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAG/C,OAAO,CAAC,mBAAmB;gBAD3B,OAAO,EAAE,aAAa,EACd,mBAAmB,EAAE,MAAM;IAKrC;;;;;OAKG;IACH,OAAO,CACL,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,CAAA;KAAE,GACxD,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;OAKG;IACH,MAAM,CACJ,MAAM,EAAE,6BAA6B,EACrC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,yBAAyB,CAAC;IAUrC;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAavG;;;;;OAKG;IACH,YAAY,CACV,MAAM,CAAC,EAAE,6BAA6B,EACtC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,+BAA+B,CAAC;IAoB3C;;;;;OAKG;IACH,aAAa,CACX,MAAM,CAAC,EAAE,8BAA8B,EACvC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,0BAA0B,CAAC;IAUtC;;;;;OAKG;IACH,UAAU,CACR,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,0BAA0B,CAAC;IAMtC;;;;;OAKG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,kCAAkC,CAAC;IAS9C;;;;;OAKG;IACH,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,0BAA0B,CAAC;IAStC;;;;;OAKG;IACH,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,gCAAgC,CAAC;IAS5C;;;;;;OAMG;IACH,eAAe,CACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,uBAAuB,CAAC;CAUpC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, StoredScorerResponse, UpdateStoredScorerParams, DeleteStoredScorerResponse, ScorerVersionResponse, ListScorerVersionsParams, ListScorerVersionsResponse, CreateScorerVersionParams, ActivateScorerVersionResponse, CompareScorerVersionsResponse, DeleteScorerVersionResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resource for interacting with a specific stored scorer definition
|
|
6
|
+
*/
|
|
7
|
+
export declare class StoredScorer extends BaseResource {
|
|
8
|
+
private storedScorerId;
|
|
9
|
+
constructor(options: ClientOptions, storedScorerId: string);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details about the stored scorer definition
|
|
12
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
|
+
* @param options - Optional options like status filter
|
|
14
|
+
* @returns Promise containing stored scorer definition details
|
|
15
|
+
*/
|
|
16
|
+
details(requestContext?: RequestContext | Record<string, any>, options?: {
|
|
17
|
+
status?: 'draft' | 'published' | 'archived';
|
|
18
|
+
}): Promise<StoredScorerResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the stored scorer definition with the provided fields
|
|
21
|
+
* @param params - Fields to update
|
|
22
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
23
|
+
* @returns Promise containing the updated stored scorer definition
|
|
24
|
+
*/
|
|
25
|
+
update(params: UpdateStoredScorerParams, requestContext?: RequestContext | Record<string, any>): Promise<StoredScorerResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Deletes the stored scorer definition
|
|
28
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
29
|
+
* @returns Promise containing deletion confirmation
|
|
30
|
+
*/
|
|
31
|
+
delete(requestContext?: RequestContext | Record<string, any>): Promise<DeleteStoredScorerResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Lists all versions for this stored scorer
|
|
34
|
+
* @param params - Optional pagination and sorting parameters
|
|
35
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
36
|
+
* @returns Promise containing paginated list of versions
|
|
37
|
+
*/
|
|
38
|
+
listVersions(params?: ListScorerVersionsParams, requestContext?: RequestContext | Record<string, any>): Promise<ListScorerVersionsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new version snapshot for this stored scorer
|
|
41
|
+
* @param params - Optional change message for the version
|
|
42
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
43
|
+
* @returns Promise containing the created version
|
|
44
|
+
*/
|
|
45
|
+
createVersion(params?: CreateScorerVersionParams, requestContext?: RequestContext | Record<string, any>): Promise<ScorerVersionResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a specific version by its ID
|
|
48
|
+
* @param versionId - The UUID of the version to retrieve
|
|
49
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
50
|
+
* @returns Promise containing the version details
|
|
51
|
+
*/
|
|
52
|
+
getVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<ScorerVersionResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Activates a specific version, making it the active version for this scorer
|
|
55
|
+
* @param versionId - The UUID of the version to activate
|
|
56
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
57
|
+
* @returns Promise containing activation confirmation
|
|
58
|
+
*/
|
|
59
|
+
activateVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<ActivateScorerVersionResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Restores a version by creating a new version with the same configuration
|
|
62
|
+
* @param versionId - The UUID of the version to restore
|
|
63
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
64
|
+
* @returns Promise containing the newly created version
|
|
65
|
+
*/
|
|
66
|
+
restoreVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<ScorerVersionResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Deletes a specific version
|
|
69
|
+
* @param versionId - The UUID of the version to delete
|
|
70
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
71
|
+
* @returns Promise that resolves with deletion response
|
|
72
|
+
*/
|
|
73
|
+
deleteVersion(versionId: string, requestContext?: RequestContext | Record<string, any>): Promise<DeleteScorerVersionResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Compares two versions and returns their differences
|
|
76
|
+
* @param fromId - The UUID of the source version
|
|
77
|
+
* @param toId - The UUID of the target version
|
|
78
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
79
|
+
* @returns Promise containing the comparison results
|
|
80
|
+
*/
|
|
81
|
+
compareVersions(fromId: string, toId: string, requestContext?: RequestContext | Record<string, any>): Promise<CompareScorerVersionsResponse>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=stored-scorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stored-scorer.d.ts","sourceRoot":"","sources":["../../src/resources/stored-scorer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAG1C,OAAO,CAAC,cAAc;gBADtB,OAAO,EAAE,aAAa,EACd,cAAc,EAAE,MAAM;IAKhC;;;;;OAKG;IACH,OAAO,CACL,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,CAAA;KAAE,GACxD,OAAO,CAAC,oBAAoB,CAAC;IAQhC;;;;;OAKG;IACH,MAAM,CACJ,MAAM,EAAE,wBAAwB,EAChC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,oBAAoB,CAAC;IAUhC;;;;OAIG;IACH,MAAM,C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CAAC;CAU1C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, StoredSkillResponse, UpdateStoredSkillParams, DeleteStoredSkillResponse, FavoriteToggleResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resource for interacting with a specific stored skill
|
|
6
|
+
*/
|
|
7
|
+
export declare class StoredSkill extends BaseResource {
|
|
8
|
+
private storedSkillId;
|
|
9
|
+
constructor(options: ClientOptions, storedSkillId: string);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details about the stored skill
|
|
12
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
13
|
+
* @returns Promise containing stored skill details
|
|
14
|
+
*/
|
|
15
|
+
details(requestContext?: RequestContext | Record<string, any>): Promise<StoredSkillResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Updates the stored skill with the provided fields
|
|
18
|
+
* @param params - Fields to update
|
|
19
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
20
|
+
* @returns Promise containing the updated stored skill
|
|
21
|
+
*/
|
|
22
|
+
update(params: UpdateStoredSkillParams, requestContext?: RequestContext | Record<string, any>): Promise<StoredSkillResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Deletes the stored skill
|
|
25
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
26
|
+
* @returns Promise containing deletion confirmation
|
|
27
|
+
*/
|
|
28
|
+
delete(requestContext?: RequestContext | Record<string, any>): Promise<DeleteStoredSkillResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Favorites this skill for the calling user. Idempotent.
|
|
31
|
+
* Requires the `skill.favorites` builder feature flag to be enabled on the server.
|
|
32
|
+
*/
|
|
33
|
+
favorite(requestContext?: RequestContext | Record<string, any>): Promise<FavoriteToggleResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Unfavorites this skill for the calling user. Idempotent.
|
|
36
|
+
* Requires the `skill.favorites` builder feature flag to be enabled on the server.
|
|
37
|
+
*/
|
|
38
|
+
unfavorite(requestContext?: RequestContext | Record<string, any>): Promise<FavoriteToggleResponse>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=stored-skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stored-skill.d.ts","sourceRoot":"","sources":["../../src/resources/stored-skill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAGzC,OAAO,CAAC,aAAa;gBADrB,OAAO,EAAE,aAAa,EACd,aAAa,EAAE,MAAM;IAK/B;;;;OAIG;IACH,OAAO,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAM5F;;;;;OAKG;IACH,MAAM,CACJ,MAAM,EAAE,uBAAuB,EAC/B,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,mBAAmB,CAAC;IAU/B;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IASjG;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAShG;;;OAGG;IACH,UAAU,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAQnG"}
|