@mastra/client-js 1.0.0-beta.9 → 1.0.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 +1652 -0
- package/README.md +1 -3
- package/dist/_types/@ai-sdk_ui-utils/dist/index.d.ts +820 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +8511 -0
- package/dist/client.d.ts +56 -11
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/README.md +33 -0
- package/dist/docs/SKILL.md +34 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/ai-sdk/01-reference.md +358 -0
- package/dist/docs/client-js/01-reference.md +1180 -0
- package/dist/docs/server/01-mastra-client.md +256 -0
- package/dist/docs/server/02-jwt.md +99 -0
- package/dist/docs/server/03-clerk.md +143 -0
- package/dist/docs/server/04-supabase.md +128 -0
- package/dist/docs/server/05-firebase.md +286 -0
- package/dist/docs/server/06-workos.md +201 -0
- package/dist/docs/server/07-auth0.md +233 -0
- package/dist/index.cjs +1690 -596
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1688 -594
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-builder.d.ts +10 -26
- package/dist/resources/agent-builder.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +43 -8
- package/dist/resources/agent.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/memory-thread.d.ts +18 -3
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +58 -15
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/resources/processor.d.ts +20 -0
- package/dist/resources/processor.d.ts.map +1 -0
- package/dist/resources/run.d.ts +210 -0
- package/dist/resources/run.d.ts.map +1 -0
- package/dist/resources/workflow.d.ts +19 -224
- 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 +141 -36
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +13 -12
|
@@ -86,19 +86,11 @@ export declare class AgentBuilder extends BaseResource {
|
|
|
86
86
|
type: string;
|
|
87
87
|
payload: any;
|
|
88
88
|
}>>;
|
|
89
|
-
/**
|
|
90
|
-
* Streams agent builder action progress in real-time using VNext streaming.
|
|
91
|
-
* This calls `/api/agent-builder/:actionId/streamVNext`.
|
|
92
|
-
*/
|
|
93
|
-
streamVNext(params: AgentBuilderActionRequest, runId?: string): Promise<import("stream/web").ReadableStream<{
|
|
94
|
-
type: string;
|
|
95
|
-
payload: any;
|
|
96
|
-
}>>;
|
|
97
89
|
/**
|
|
98
90
|
* Observes an existing agent builder action run stream.
|
|
99
91
|
* Replays cached execution from the beginning, then continues with live stream.
|
|
100
92
|
* This is the recommended method for recovery after page refresh/hot reload.
|
|
101
|
-
* This calls `/api/agent-builder/:actionId/observe`
|
|
93
|
+
* This calls `/api/agent-builder/:actionId/observe`
|
|
102
94
|
*/
|
|
103
95
|
observeStream(params: {
|
|
104
96
|
runId: string;
|
|
@@ -106,17 +98,6 @@ export declare class AgentBuilder extends BaseResource {
|
|
|
106
98
|
type: string;
|
|
107
99
|
payload: any;
|
|
108
100
|
}>>;
|
|
109
|
-
/**
|
|
110
|
-
* Observes an existing agent builder action run stream using VNext streaming API.
|
|
111
|
-
* Replays cached execution from the beginning, then continues with live stream.
|
|
112
|
-
* This calls `/api/agent-builder/:actionId/observe-streamVNext`.
|
|
113
|
-
*/
|
|
114
|
-
observeStreamVNext(params: {
|
|
115
|
-
runId: string;
|
|
116
|
-
}): Promise<import("stream/web").ReadableStream<{
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}>>;
|
|
120
101
|
/**
|
|
121
102
|
* Observes an existing agent builder action run stream using legacy streaming API.
|
|
122
103
|
* Replays cached execution from the beginning, then continues with live stream.
|
|
@@ -141,8 +122,16 @@ export declare class AgentBuilder extends BaseResource {
|
|
|
141
122
|
/**
|
|
142
123
|
* Gets a specific action run by its ID.
|
|
143
124
|
* This calls `/api/agent-builder/:actionId/runs/:runId`.
|
|
125
|
+
* @param runId - The ID of the action run to retrieve
|
|
126
|
+
* @param options - Optional configuration
|
|
127
|
+
* @param options.fields - Optional array of fields to return (e.g., ['result', 'steps']). Available fields: result, error, payload, steps, activeStepsPath, serializedStepGraph. Metadata fields (runId, workflowName, resourceId, createdAt, updatedAt) and status are always included.
|
|
128
|
+
* @param options.withNestedWorkflows - Whether to include nested workflow data in steps. Defaults to true. Set to false for better performance when you don't need nested workflow details.
|
|
129
|
+
* @returns Promise containing the action run details with metadata and processed execution state
|
|
144
130
|
*/
|
|
145
|
-
runById(runId: string
|
|
131
|
+
runById(runId: string, options?: {
|
|
132
|
+
fields?: string[];
|
|
133
|
+
withNestedWorkflows?: boolean;
|
|
134
|
+
}): Promise<unknown>;
|
|
146
135
|
/**
|
|
147
136
|
* Gets details about this agent builder action.
|
|
148
137
|
* This calls `/api/agent-builder/:actionId`.
|
|
@@ -153,11 +142,6 @@ export declare class AgentBuilder extends BaseResource {
|
|
|
153
142
|
* This calls `/api/agent-builder/:actionId/runs`.
|
|
154
143
|
*/
|
|
155
144
|
runs(params?: ListWorkflowRunsParams): Promise<unknown>;
|
|
156
|
-
/**
|
|
157
|
-
* Gets the execution result of an agent builder action run.
|
|
158
|
-
* This calls `/api/agent-builder/:actionId/runs/:runId/execution-result`.
|
|
159
|
-
*/
|
|
160
|
-
runExecutionResult(runId: string): Promise<unknown>;
|
|
161
145
|
/**
|
|
162
146
|
* Cancels an agent builder action run.
|
|
163
147
|
* This calls `/api/agent-builder/:actionId/runs/:runId/cancel`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-builder.d.ts","sourceRoot":"","sources":["../../src/resources/agent-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM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C;KACjC,EACD,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,wBAAwB,CAAC;IAgBpC;;;;;;OAMG;YACY,eAAe;IAkE9B;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,KAAK,CAAC,EAAE,MAAM;cA3Nc,MAAM;iBAAW,GAAG;;IAsPhG;;;;;OAKG;IACG,aAAa,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;cA5P+B,MAAM;iBAAW,GAAG;;IAiRhG;;;;OAIG;IACG,mBAAmB,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;cAtRyB,MAAM;iBAAW,GAAG;;IA2ShG;;;OAGG;IACG,YAAY,CAAC,MAAM,EAAE;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,GAAG,OAAO,CAAC,cAAc,CAAC;IAyB3B;;;;;;;;OAQG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B;IAmBH;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;IAKtC;;;OAGG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,sBAAsB;IAmC1C;;;OAGG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAM7D"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { processDataStream } from '
|
|
1
|
+
import { processDataStream } from '../_types/@ai-sdk_ui-utils/dist/index.js';
|
|
2
|
+
import type { SerializableStructuredOutputOptions } from '@mastra/core/agent';
|
|
2
3
|
import type { MessageListInput } from '@mastra/core/agent/message-list';
|
|
3
4
|
import type { GenerateReturn } from '@mastra/core/llm';
|
|
4
5
|
import type { RequestContext } from '@mastra/core/request-context';
|
|
5
|
-
import type {
|
|
6
|
+
import type { FullOutput } from '@mastra/core/stream';
|
|
6
7
|
import type { JSONSchema7 } from 'json-schema';
|
|
7
8
|
import type { ZodType } from 'zod';
|
|
8
|
-
import type { GenerateLegacyParams, GetAgentResponse, GetToolResponse, ClientOptions,
|
|
9
|
+
import type { GenerateLegacyParams, GetAgentResponse, GetToolResponse, ClientOptions, StreamLegacyParams, UpdateModelParams, UpdateModelInModelListParams, ReorderModelListParams, NetworkStreamParams, StreamParamsBaseWithoutMessages } from '../types.js';
|
|
9
10
|
import { processMastraNetworkStream, processMastraStream } from '../utils/process-mastra-stream.js';
|
|
10
11
|
import { BaseResource } from './base.js';
|
|
11
12
|
export declare class AgentVoice extends BaseResource {
|
|
@@ -81,8 +82,10 @@ export declare class Agent extends BaseResource {
|
|
|
81
82
|
output?: never;
|
|
82
83
|
experimental_output: StructuredOutput;
|
|
83
84
|
}): Promise<GenerateReturn<any, undefined, StructuredOutput>>;
|
|
84
|
-
generate
|
|
85
|
-
generate<OUTPUT extends
|
|
85
|
+
generate(messages: MessageListInput, options?: StreamParamsBaseWithoutMessages): Promise<FullOutput<undefined>>;
|
|
86
|
+
generate<OUTPUT extends {}>(messages: MessageListInput, options: StreamParamsBaseWithoutMessages<OUTPUT> & {
|
|
87
|
+
structuredOutput: SerializableStructuredOutputOptions<OUTPUT>;
|
|
88
|
+
}): Promise<FullOutput<OUTPUT>>;
|
|
86
89
|
private processChatResponse;
|
|
87
90
|
/**
|
|
88
91
|
* Streams a response from the agent
|
|
@@ -94,17 +97,33 @@ export declare class Agent extends BaseResource {
|
|
|
94
97
|
}>;
|
|
95
98
|
private processChatResponse_vNext;
|
|
96
99
|
processStreamResponse(processedParams: any, controller: ReadableStreamDefaultController<Uint8Array>, route?: string): Promise<Response>;
|
|
97
|
-
network(params: NetworkStreamParams): Promise<Response & {
|
|
100
|
+
network(messages: MessageListInput, params: Omit<NetworkStreamParams, 'messages'>): Promise<Response & {
|
|
98
101
|
processDataStream: ({ onChunk, }: {
|
|
99
102
|
onChunk: Parameters<typeof processMastraNetworkStream>[0]['onChunk'];
|
|
100
103
|
}) => Promise<void>;
|
|
101
104
|
}>;
|
|
102
|
-
|
|
105
|
+
approveNetworkToolCall(params: {
|
|
106
|
+
runId: string;
|
|
107
|
+
}): Promise<Response & {
|
|
108
|
+
processDataStream: ({ onChunk, }: {
|
|
109
|
+
onChunk: Parameters<typeof processMastraNetworkStream>[0]['onChunk'];
|
|
110
|
+
}) => Promise<void>;
|
|
111
|
+
}>;
|
|
112
|
+
declineNetworkToolCall(params: {
|
|
113
|
+
runId: string;
|
|
114
|
+
}): Promise<Response & {
|
|
115
|
+
processDataStream: ({ onChunk, }: {
|
|
116
|
+
onChunk: Parameters<typeof processMastraNetworkStream>[0]['onChunk'];
|
|
117
|
+
}) => Promise<void>;
|
|
118
|
+
}>;
|
|
119
|
+
stream<OUTPUT extends {}>(messages: MessageListInput, streamOptions: StreamParamsBaseWithoutMessages<OUTPUT> & {
|
|
120
|
+
structuredOutput: SerializableStructuredOutputOptions<OUTPUT>;
|
|
121
|
+
}): Promise<Response & {
|
|
103
122
|
processDataStream: ({ onChunk, }: {
|
|
104
123
|
onChunk: Parameters<typeof processMastraStream>[0]['onChunk'];
|
|
105
124
|
}) => Promise<void>;
|
|
106
125
|
}>;
|
|
107
|
-
stream
|
|
126
|
+
stream(messages: MessageListInput, streamOptions?: StreamParamsBaseWithoutMessages): Promise<Response & {
|
|
108
127
|
processDataStream: ({ onChunk, }: {
|
|
109
128
|
onChunk: Parameters<typeof processMastraStream>[0]['onChunk'];
|
|
110
129
|
}) => Promise<void>;
|
|
@@ -125,6 +144,22 @@ export declare class Agent extends BaseResource {
|
|
|
125
144
|
onChunk: Parameters<typeof processMastraStream>[0]['onChunk'];
|
|
126
145
|
}) => Promise<void>;
|
|
127
146
|
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Approves a pending tool call and returns the complete response (non-streaming).
|
|
149
|
+
* Used when `requireToolApproval` is enabled with generate() to allow the agent to proceed.
|
|
150
|
+
*/
|
|
151
|
+
approveToolCallGenerate(params: {
|
|
152
|
+
runId: string;
|
|
153
|
+
toolCallId: string;
|
|
154
|
+
}): Promise<any>;
|
|
155
|
+
/**
|
|
156
|
+
* Declines a pending tool call and returns the complete response (non-streaming).
|
|
157
|
+
* Used when `requireToolApproval` is enabled with generate() to prevent tool execution.
|
|
158
|
+
*/
|
|
159
|
+
declineToolCallGenerate(params: {
|
|
160
|
+
runId: string;
|
|
161
|
+
toolCallId: string;
|
|
162
|
+
}): Promise<any>;
|
|
128
163
|
/**
|
|
129
164
|
* Processes the stream response and handles tool calls
|
|
130
165
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAWvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAWvE,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,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AAI,EAAE,GAAG,CAAC;QAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAC3E,OAAO,CAAC,GAAG,CAAC;IAWf;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAOpE;;;OAGG;IACH,UAAU,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAO1C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,EAAE,4BAA4B,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAOhH;;;;OAIG;IACH,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAM/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { RequestContext } from '@mastra/core/di';
|
|
2
2
|
import type { StorageThreadType } from '@mastra/core/memory';
|
|
3
|
-
import type { ClientOptions, UpdateMemoryThreadParams, ListMemoryThreadMessagesParams, ListMemoryThreadMessagesResponse } from '../types.js';
|
|
3
|
+
import type { ClientOptions, UpdateMemoryThreadParams, ListMemoryThreadMessagesParams, ListMemoryThreadMessagesResponse, CloneMemoryThreadParams, CloneMemoryThreadResponse } from '../types.js';
|
|
4
4
|
import { BaseResource } from './base.js';
|
|
5
|
+
/**
|
|
6
|
+
* MemoryThread resource for interacting with memory threads.
|
|
7
|
+
*
|
|
8
|
+
* agentId is optional - when not provided, the server will use storage directly.
|
|
9
|
+
*/
|
|
5
10
|
export declare class MemoryThread extends BaseResource {
|
|
6
11
|
private threadId;
|
|
7
|
-
private agentId
|
|
8
|
-
constructor(options: ClientOptions, threadId: string, agentId
|
|
12
|
+
private agentId?;
|
|
13
|
+
constructor(options: ClientOptions, threadId: string, agentId?: string | undefined);
|
|
14
|
+
/**
|
|
15
|
+
* Builds the query string for agentId (if provided)
|
|
16
|
+
*/
|
|
17
|
+
private getAgentIdQueryParam;
|
|
9
18
|
/**
|
|
10
19
|
* Retrieves the memory thread details
|
|
11
20
|
* @param requestContext - Optional request context to pass as query parameter
|
|
@@ -49,5 +58,11 @@ export declare class MemoryThread extends BaseResource {
|
|
|
49
58
|
success: boolean;
|
|
50
59
|
message: string;
|
|
51
60
|
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Clones the thread with all its messages to a new thread
|
|
63
|
+
* @param params - Clone parameters including optional new thread ID, title, metadata, and message filters
|
|
64
|
+
* @returns Promise containing the cloned thread and copied messages
|
|
65
|
+
*/
|
|
66
|
+
clone(params?: CloneMemoryThreadParams): Promise<CloneMemoryThreadResponse>;
|
|
52
67
|
}
|
|
53
68
|
//# sourceMappingURL=memory-thread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-thread.d.ts","sourceRoot":"","sources":["../../src/resources/memory-thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,gCAAgC,
|
|
1
|
+
{"version":3,"file":"memory-thread.d.ts","sourceRoot":"","sources":["../../src/resources/memory-thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,8BAA8B,EAC9B,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAG1C,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,OAAO,CAAC;gBAFhB,OAAO,EAAE,aAAa,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,YAAA;IAK1B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;;;OAIG;IACH,GAAG,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMtF;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASpE;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ1F;;;;OAIG;IACH,YAAY,CACV,MAAM,GAAE,8BAA8B,GAAG;QACvC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAClD,GACL,OAAO,CAAC,gCAAgC,CAAC;IAkB5C;;;;;;OAMG;IACH,cAAc,CACZ,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,EACjE,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAejD;;;;OAIG;IACH,KAAK,CAAC,MAAM,GAAE,uBAA4B,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAShF"}
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ListScoresResponse } from '@mastra/core/evals';
|
|
2
|
+
import type { SpanType } from '@mastra/core/observability';
|
|
3
|
+
import type { TraceRecord, ListTracesArgs, ListTracesResponse, SpanIds, PaginationArgs, SpanRecord, PaginationInfo, ScoreTracesRequest, ScoreTracesResponse } from '@mastra/core/storage';
|
|
4
|
+
import type { ClientOptions } from '../types.js';
|
|
3
5
|
import { BaseResource } from './base.js';
|
|
6
|
+
/**
|
|
7
|
+
* Legacy pagination arguments from main branch.
|
|
8
|
+
* @deprecated Use ListTracesArgs instead with the new listTraces() method.
|
|
9
|
+
*/
|
|
10
|
+
export interface LegacyPaginationArgs {
|
|
11
|
+
dateRange?: {
|
|
12
|
+
start?: Date;
|
|
13
|
+
end?: Date;
|
|
14
|
+
};
|
|
15
|
+
page?: number;
|
|
16
|
+
perPage?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Legacy traces query parameters from main branch.
|
|
20
|
+
* @deprecated Use ListTracesArgs instead with the new listTraces() method.
|
|
21
|
+
*/
|
|
22
|
+
export interface LegacyTracesPaginatedArg {
|
|
23
|
+
filters?: {
|
|
24
|
+
name?: string;
|
|
25
|
+
spanType?: SpanType;
|
|
26
|
+
entityId?: string;
|
|
27
|
+
entityType?: 'agent' | 'workflow';
|
|
28
|
+
};
|
|
29
|
+
pagination?: LegacyPaginationArgs;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Legacy response type from main branch.
|
|
33
|
+
* @deprecated Use ListTracesResponse instead.
|
|
34
|
+
*/
|
|
35
|
+
export interface LegacyGetTracesResponse {
|
|
36
|
+
spans: SpanRecord[];
|
|
37
|
+
pagination: PaginationInfo;
|
|
38
|
+
}
|
|
39
|
+
export type ListScoresBySpanParams = SpanIds & PaginationArgs;
|
|
4
40
|
export declare class Observability extends BaseResource {
|
|
5
41
|
constructor(options: ClientOptions);
|
|
6
42
|
/**
|
|
@@ -10,26 +46,33 @@ export declare class Observability extends BaseResource {
|
|
|
10
46
|
*/
|
|
11
47
|
getTrace(traceId: string): Promise<TraceRecord>;
|
|
12
48
|
/**
|
|
13
|
-
* Retrieves paginated list of traces with optional filtering
|
|
14
|
-
*
|
|
49
|
+
* Retrieves paginated list of traces with optional filtering.
|
|
50
|
+
* This is the legacy API preserved for backward compatibility.
|
|
51
|
+
*
|
|
52
|
+
* @param params - Parameters for pagination and filtering (legacy format)
|
|
53
|
+
* @returns Promise containing paginated traces and pagination info
|
|
54
|
+
* @deprecated Use {@link listTraces} instead for new features like ordering and more filters.
|
|
55
|
+
*/
|
|
56
|
+
getTraces(params: LegacyTracesPaginatedArg): Promise<LegacyGetTracesResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves paginated list of traces with optional filtering and sorting.
|
|
59
|
+
* This is the new API with improved filtering options.
|
|
60
|
+
*
|
|
61
|
+
* @param params - Parameters for pagination, filtering, and ordering
|
|
15
62
|
* @returns Promise containing paginated traces and pagination info
|
|
16
63
|
*/
|
|
17
|
-
|
|
64
|
+
listTraces(params?: ListTracesArgs): Promise<ListTracesResponse>;
|
|
18
65
|
/**
|
|
19
66
|
* Retrieves scores by trace ID and span ID
|
|
20
67
|
* @param params - Parameters containing trace ID, span ID, and pagination options
|
|
21
68
|
* @returns Promise containing scores and pagination info
|
|
22
69
|
*/
|
|
23
70
|
listScoresBySpan(params: ListScoresBySpanParams): Promise<ListScoresResponse>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}): Promise<{
|
|
31
|
-
status: string;
|
|
32
|
-
message: string;
|
|
33
|
-
}>;
|
|
71
|
+
/**
|
|
72
|
+
* Scores one or more traces using a specified scorer.
|
|
73
|
+
* @param params - Scorer name and targets to score
|
|
74
|
+
* @returns Promise containing the scoring status
|
|
75
|
+
*/
|
|
76
|
+
score(params: ScoreTracesRequest): Promise<ScoreTracesResponse>;
|
|
34
77
|
}
|
|
35
78
|
//# sourceMappingURL=observability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../src/resources/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../src/resources/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,cAAc,E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AO,CAAC,kBAAkB,CAAC;IAQ7E;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAMhE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
2
|
+
import type { ClientOptions, GetProcessorDetailResponse, ExecuteProcessorParams, ExecuteProcessorResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
export declare class Processor extends BaseResource {
|
|
5
|
+
private processorId;
|
|
6
|
+
constructor(options: ClientOptions, processorId: string);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves details about the processor
|
|
9
|
+
* @param requestContext - Optional request context to pass as query parameter
|
|
10
|
+
* @returns Promise containing processor details including phases and configurations
|
|
11
|
+
*/
|
|
12
|
+
details(requestContext?: RequestContext | Record<string, any>): Promise<GetProcessorDetailResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Executes the processor with the provided parameters
|
|
15
|
+
* @param params - Parameters required for processor execution including phase and messages
|
|
16
|
+
* @returns Promise containing the processor execution results
|
|
17
|
+
*/
|
|
18
|
+
execute(params: ExecuteProcessorParams): Promise<ExecuteProcessorResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/resources/processor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,aAAa,EACb,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,qBAAa,SAAU,SAAQ,YAAY;IAGvC,OAAO,CAAC,WAAW;gBADnB,OAAO,EAAE,aAAa,EACd,WAAW,EAAE,MAAM;IAK7B;;;;OAIG;IACH,OAAO,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAInG;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAa3E"}
|
|
@@ -0,0 +1,210 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* Creates a transform stream that parses RECORD_SEPARATOR-delimited JSON chunks
|
|
11
|
+
*/
|
|
12
|
+
private createChunkTransformStream;
|
|
13
|
+
/**
|
|
14
|
+
* Cancels a specific workflow run by its ID
|
|
15
|
+
* @returns Promise containing a success message
|
|
16
|
+
* @deprecated Use `cancel()` instead
|
|
17
|
+
*/
|
|
18
|
+
cancelRun(): Promise<{
|
|
19
|
+
message: string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Cancels a workflow run.
|
|
23
|
+
*
|
|
24
|
+
* This method aborts any running steps and updates the workflow status to 'canceled' .
|
|
25
|
+
* It works for both actively running workflows and suspended/waiting workflows.
|
|
26
|
+
*
|
|
27
|
+
* ## How cancellation works
|
|
28
|
+
*
|
|
29
|
+
* When called, the workflow will:
|
|
30
|
+
* 1. **Trigger the abort signal** - Uses the standard Web API AbortSignal to notify running steps
|
|
31
|
+
* 2. **Prevent subsequent steps** - No further steps will be executed
|
|
32
|
+
*
|
|
33
|
+
* ## Abort signal behavior
|
|
34
|
+
*
|
|
35
|
+
* Steps that check the `abortSignal` parameter can respond to cancellation:
|
|
36
|
+
* - Steps can listen to the 'abort' event: `abortSignal.addEventListener('abort', callback)`
|
|
37
|
+
* - Steps can check if already aborted: `if (abortSignal.aborted) { ... }`
|
|
38
|
+
* - Useful for canceling timeouts, network requests, or long-running operations
|
|
39
|
+
*
|
|
40
|
+
* **Note:** Steps must actively check the abort signal to be canceled mid-execution.
|
|
41
|
+
* Steps that don't check the signal will run to completion, but subsequent steps won't execute.
|
|
42
|
+
*
|
|
43
|
+
* @returns Promise that resolves with `{ message: 'Workflow run canceled' }` when cancellation succeeds
|
|
44
|
+
* @throws {HTTPException} 400 - If workflow ID or run ID is missing
|
|
45
|
+
* @throws {HTTPException} 404 - If workflow or workflow run is not found
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const run = await workflow.createRun({ runId: 'run-123' });
|
|
50
|
+
* await run.cancel();
|
|
51
|
+
* // Returns: { message: 'Workflow run canceled' }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // Example of a step that responds to cancellation
|
|
57
|
+
* const step = createStep({
|
|
58
|
+
* id: 'long-running-step',
|
|
59
|
+
* execute: async ({ inputData, abortSignal, abort }) => {
|
|
60
|
+
* const timeout = new Promise((resolve) => {
|
|
61
|
+
* const timer = setTimeout(() => resolve('done'), 10000);
|
|
62
|
+
*
|
|
63
|
+
* // Clean up if canceled
|
|
64
|
+
* abortSignal.addEventListener('abort', () => {
|
|
65
|
+
* clearTimeout(timer);
|
|
66
|
+
* resolve('canceled');
|
|
67
|
+
* });
|
|
68
|
+
* });
|
|
69
|
+
*
|
|
70
|
+
* const result = await timeout;
|
|
71
|
+
*
|
|
72
|
+
* // Check if aborted after async operation
|
|
73
|
+
* if (abortSignal.aborted) {
|
|
74
|
+
* return abort(); // Stop execution
|
|
75
|
+
* }
|
|
76
|
+
*
|
|
77
|
+
* return { result };
|
|
78
|
+
* }
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
cancel(): Promise<{
|
|
83
|
+
message: string;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Starts a workflow run synchronously without waiting for the workflow to complete
|
|
87
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
88
|
+
* @returns Promise containing success message
|
|
89
|
+
*/
|
|
90
|
+
start(params: {
|
|
91
|
+
inputData: Record<string, any>;
|
|
92
|
+
initialState?: Record<string, any>;
|
|
93
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
94
|
+
tracingOptions?: TracingOptions;
|
|
95
|
+
perStep?: boolean;
|
|
96
|
+
}): Promise<{
|
|
97
|
+
message: string;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Resumes a suspended workflow step synchronously without waiting for the workflow to complete
|
|
101
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
102
|
+
* @returns Promise containing success message
|
|
103
|
+
*/
|
|
104
|
+
resume({ step, resumeData, tracingOptions, perStep, ...rest }: {
|
|
105
|
+
step?: string | string[];
|
|
106
|
+
resumeData?: Record<string, any>;
|
|
107
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
108
|
+
tracingOptions?: TracingOptions;
|
|
109
|
+
perStep?: boolean;
|
|
110
|
+
}): Promise<{
|
|
111
|
+
message: string;
|
|
112
|
+
}>;
|
|
113
|
+
/**
|
|
114
|
+
* Starts a workflow run asynchronously and returns a promise that resolves when the workflow is complete
|
|
115
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
116
|
+
* @returns Promise containing the workflow execution results
|
|
117
|
+
*/
|
|
118
|
+
startAsync(params: {
|
|
119
|
+
inputData: Record<string, any>;
|
|
120
|
+
initialState?: Record<string, any>;
|
|
121
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
122
|
+
tracingOptions?: TracingOptions;
|
|
123
|
+
resourceId?: string;
|
|
124
|
+
perStep?: boolean;
|
|
125
|
+
}): Promise<WorkflowRunResult>;
|
|
126
|
+
/**
|
|
127
|
+
* Starts a workflow run and returns a stream
|
|
128
|
+
* @param params - Object containing the inputData, initialState and requestContext
|
|
129
|
+
* @returns Promise containing the workflow execution results
|
|
130
|
+
*/
|
|
131
|
+
stream(params: {
|
|
132
|
+
inputData: Record<string, any>;
|
|
133
|
+
initialState?: Record<string, any>;
|
|
134
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
135
|
+
tracingOptions?: TracingOptions;
|
|
136
|
+
resourceId?: string;
|
|
137
|
+
perStep?: boolean;
|
|
138
|
+
closeOnSuspend?: boolean;
|
|
139
|
+
}): Promise<import("stream/web").ReadableStream<StreamVNextChunkType>>;
|
|
140
|
+
/**
|
|
141
|
+
* Observes workflow stream for a workflow run
|
|
142
|
+
* @returns Promise containing the workflow execution results
|
|
143
|
+
*/
|
|
144
|
+
observeStream(): Promise<import("stream/web").ReadableStream<StreamVNextChunkType>>;
|
|
145
|
+
/**
|
|
146
|
+
* Resumes a suspended workflow step asynchronously and returns a promise that resolves when the workflow is complete
|
|
147
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
148
|
+
* @returns Promise containing the workflow resume results
|
|
149
|
+
*/
|
|
150
|
+
resumeAsync(params: {
|
|
151
|
+
step?: string | string[];
|
|
152
|
+
resumeData?: Record<string, any>;
|
|
153
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
154
|
+
tracingOptions?: TracingOptions;
|
|
155
|
+
perStep?: boolean;
|
|
156
|
+
}): Promise<WorkflowRunResult>;
|
|
157
|
+
/**
|
|
158
|
+
* Resumes a suspended workflow step that uses stream asynchronously and returns a promise that resolves when the workflow is complete
|
|
159
|
+
* @param params - Object containing the step, resumeData and requestContext
|
|
160
|
+
* @returns Promise containing the workflow resume results
|
|
161
|
+
*/
|
|
162
|
+
resumeStream(params: {
|
|
163
|
+
step?: string | string[];
|
|
164
|
+
resumeData?: Record<string, any>;
|
|
165
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
166
|
+
tracingOptions?: TracingOptions;
|
|
167
|
+
perStep?: boolean;
|
|
168
|
+
}): Promise<import("stream/web").ReadableStream<StreamVNextChunkType>>;
|
|
169
|
+
/**
|
|
170
|
+
* Restarts an active workflow run synchronously without waiting for the workflow to complete
|
|
171
|
+
* @param params - Object containing the requestContext
|
|
172
|
+
* @returns Promise containing success message
|
|
173
|
+
*/
|
|
174
|
+
restart(params: {
|
|
175
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
176
|
+
tracingOptions?: TracingOptions;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
message: string;
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* Restarts an active workflow run asynchronously
|
|
182
|
+
* @param params - optional object containing the requestContext
|
|
183
|
+
* @returns Promise containing the workflow restart results
|
|
184
|
+
*/
|
|
185
|
+
restartAsync(params?: {
|
|
186
|
+
requestContext?: RequestContext | Record<string, any>;
|
|
187
|
+
tracingOptions?: TracingOptions;
|
|
188
|
+
}): Promise<WorkflowRunResult>;
|
|
189
|
+
/**
|
|
190
|
+
* Time travels a workflow run synchronously without waiting for the workflow to complete
|
|
191
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
192
|
+
* @returns Promise containing success message
|
|
193
|
+
*/
|
|
194
|
+
timeTravel({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<{
|
|
195
|
+
message: string;
|
|
196
|
+
}>;
|
|
197
|
+
/**
|
|
198
|
+
* Time travels a workflow run asynchronously
|
|
199
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
200
|
+
* @returns Promise containing the workflow time travel results
|
|
201
|
+
*/
|
|
202
|
+
timeTravelAsync({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<WorkflowRunResult>;
|
|
203
|
+
/**
|
|
204
|
+
* Time travels a workflow run and returns a stream
|
|
205
|
+
* @param params - Object containing the step, inputData, resumeData, initialState, context, nestedStepsContext, requestContext and tracingOptions
|
|
206
|
+
* @returns Promise containing the workflow execution results
|
|
207
|
+
*/
|
|
208
|
+
timeTravelStream({ requestContext: paramsRequestContext, ...params }: TimeTravelParams): Promise<import("stream/web").ReadableStream<StreamVNextChunkType>>;
|
|
209
|
+
}
|
|
210
|
+
//# 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;AAGzG,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAkBtC,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;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAkClC;;;;OAIG;IACH,SAAS,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAMzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,MAAM,IAAI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAMtC;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE;QACZ,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACnC,cAAc,CAAC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