@mastra/client-js 1.60.0-alpha.11 → 1.60.0-alpha.13
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/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +3 -3
- package/dist/docs/references/docs-auth-jwt.md +1 -1
- package/dist/docs/references/reference-observability-tracing-advanced-queries.md +2 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +77 -7
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -175,12 +175,12 @@ type InputShared_Auxiliary_809 = {
|
|
|
175
175
|
content?: string | undefined;
|
|
176
176
|
children?: InputShared_Auxiliary_809[] | undefined;
|
|
177
177
|
};
|
|
178
|
-
type
|
|
178
|
+
type Shared_Auxiliary_799 = {
|
|
179
179
|
id?: string | undefined;
|
|
180
180
|
name: string;
|
|
181
181
|
type: 'file' | 'folder';
|
|
182
182
|
content?: string | undefined;
|
|
183
|
-
children?:
|
|
183
|
+
children?: Shared_Auxiliary_799[] | undefined;
|
|
184
184
|
};
|
|
185
185
|
type InputShared_Type_0 = {
|
|
186
186
|
thread: string | {
|
|
@@ -2593,7 +2593,7 @@ type Shared_Type_62 = {
|
|
|
2593
2593
|
} | null) | undefined;
|
|
2594
2594
|
/** Milliseconds from the model call to the first token received; null when unknown */
|
|
2595
2595
|
timeToFirstTokenMs?: (number | null) | undefined;
|
|
2596
|
-
/**
|
|
2596
|
+
/** Failures originating directly on this span; null when unknown */
|
|
2597
2597
|
errorCount?: (number | null) | undefined;
|
|
2598
2598
|
/** Database record creation time */
|
|
2599
2599
|
createdAt: Date;
|
|
@@ -2718,7 +2718,7 @@ type Shared_Type_64 = {
|
|
|
2718
2718
|
} | null) | undefined;
|
|
2719
2719
|
/** Milliseconds from the model call to the first token received; null when unknown */
|
|
2720
2720
|
timeToFirstTokenMs?: (number | null) | undefined;
|
|
2721
|
-
/**
|
|
2721
|
+
/** Failures originating directly on this span; null when unknown */
|
|
2722
2722
|
errorCount?: (number | null) | undefined;
|
|
2723
2723
|
/** Database record creation time */
|
|
2724
2724
|
createdAt: Date;
|
|
@@ -2933,6 +2933,8 @@ type Shared_Type_69 = {
|
|
|
2933
2933
|
spanQuery: boolean;
|
|
2934
2934
|
/** Whether completed spans can be sorted by duration */
|
|
2935
2935
|
spanQueryDurationSort: boolean;
|
|
2936
|
+
/** Whether spans can be sorted by model and provider */
|
|
2937
|
+
spanQueryModelProviderSort: boolean;
|
|
2936
2938
|
/** Additional identity, context and parent/root entity predicates in span queries. Treat a missing value as unavailable. */
|
|
2937
2939
|
spanQueryContextFields: boolean;
|
|
2938
2940
|
/** `model` and `provider` predicates in span queries and span aggregates. Treat a missing value as unavailable. */
|
|
@@ -3384,7 +3386,7 @@ type Shared_Type_88 = {
|
|
|
3384
3386
|
/** List of asset file paths */
|
|
3385
3387
|
assets?: string[] | undefined;
|
|
3386
3388
|
/** Full file tree structure for the skill */
|
|
3387
|
-
files?:
|
|
3389
|
+
files?: Shared_Auxiliary_799[] | undefined;
|
|
3388
3390
|
/** Additional metadata for the skill */
|
|
3389
3391
|
metadata?: {
|
|
3390
3392
|
[key: string]: unknown;
|
|
@@ -8233,7 +8235,7 @@ export type GetObservabilityTracesTraceIdSpanIdScores_Response = {
|
|
|
8233
8235
|
entity: {
|
|
8234
8236
|
[key: string]: unknown;
|
|
8235
8237
|
};
|
|
8236
|
-
entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | 'EXTERNAL' | 'agent_run' | 'scorer_run' | 'classifier_evaluation' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'mcp_server_request' | 'processor_run' | 'tool_call' | 'client_tool_call' | 'provider_tool_call' | 'workflow_run' | 'workflow_step' | 'workflow_conditional' | 'workflow_conditional_eval' | 'workflow_parallel' | 'workflow_loop' | 'workflow_sleep' | 'workflow_wait_event' | 'memory_operation' | 'workspace_action' | 'rag_ingestion' | 'rag_embedding' | 'rag_vector_operation' | 'rag_action' | 'graph_action' | 'mapping' | 'skill_resolution' | 'skill_action' | 'agent_signal') | undefined;
|
|
8238
|
+
entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | 'SCORER' | 'PROCESSOR' | 'EXTERNAL' | 'agent_run' | 'scorer_run' | 'classifier_evaluation' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'mcp_server_request' | 'processor_run' | 'tool_call' | 'client_tool_call' | 'provider_tool_call' | 'workflow_run' | 'workflow_step' | 'workflow_conditional' | 'workflow_conditional_eval' | 'workflow_parallel' | 'workflow_loop' | 'workflow_sleep' | 'workflow_wait_event' | 'memory_operation' | 'workspace_action' | 'rag_ingestion' | 'rag_embedding' | 'rag_vector_operation' | 'rag_action' | 'graph_action' | 'mapping' | 'skill_resolution' | 'skill_action' | 'agent_signal') | undefined;
|
|
8237
8239
|
structuredOutput?: boolean | undefined;
|
|
8238
8240
|
traceId?: string | undefined;
|
|
8239
8241
|
spanId?: string | undefined;
|
|
@@ -8540,7 +8542,7 @@ export type PostObservabilitySpansQuery_Body = {
|
|
|
8540
8542
|
where?: InputShared_Auxiliary_231 | undefined;
|
|
8541
8543
|
textSearch?: string | undefined;
|
|
8542
8544
|
orderBy?: {
|
|
8543
|
-
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs' | 'durationMs';
|
|
8545
|
+
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs' | 'durationMs' | 'model' | 'provider';
|
|
8544
8546
|
direction: 'asc' | 'desc';
|
|
8545
8547
|
}[];
|
|
8546
8548
|
page?: {
|
|
@@ -12025,6 +12027,66 @@ export interface PostWorkflowsWorkflowIdObserveStreamLegacy_RouteContract {
|
|
|
12025
12027
|
response: PostWorkflowsWorkflowIdObserveStreamLegacy_Response;
|
|
12026
12028
|
responseType: 'stream';
|
|
12027
12029
|
}
|
|
12030
|
+
export type AllMcp_Request = Simplify<(never extends never ? {} : {
|
|
12031
|
+
params: never;
|
|
12032
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12033
|
+
query?: never;
|
|
12034
|
+
} : {
|
|
12035
|
+
query: never;
|
|
12036
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12037
|
+
body?: never;
|
|
12038
|
+
} : {
|
|
12039
|
+
body: never;
|
|
12040
|
+
})>;
|
|
12041
|
+
export interface AllMcp_RouteContract {
|
|
12042
|
+
pathParams: never;
|
|
12043
|
+
queryParams: never;
|
|
12044
|
+
body: never;
|
|
12045
|
+
request: AllMcp_Request;
|
|
12046
|
+
response: unknown;
|
|
12047
|
+
responseType: 'mcp-http';
|
|
12048
|
+
}
|
|
12049
|
+
export type GetMcpBuiltin_Response = {
|
|
12050
|
+
enabled: false;
|
|
12051
|
+
/** 'config': server.mcp.enabled is false. 'production-without-auth': not under mastra dev and no server.auth */
|
|
12052
|
+
disabledReason: 'config' | 'production-without-auth';
|
|
12053
|
+
} | {
|
|
12054
|
+
enabled: true;
|
|
12055
|
+
/** Endpoint path including the API prefix, e.g. /api/mcp */
|
|
12056
|
+
path: string;
|
|
12057
|
+
/** Whether @mastra/mcp is installed; the endpoint answers 501 without it */
|
|
12058
|
+
mcpPackageInstalled: boolean;
|
|
12059
|
+
/** Configured toolsets this server can serve */
|
|
12060
|
+
toolsets: ('agents' | 'workflows' | 'tools' | 'memory' | 'observability' | 'observability_analytics' | 'stored_agents')[];
|
|
12061
|
+
readOnly: boolean;
|
|
12062
|
+
auth: {
|
|
12063
|
+
type: 'open';
|
|
12064
|
+
/** Open because of the mastra dev default, not server.mcp.enabled: true */
|
|
12065
|
+
devOnly: boolean;
|
|
12066
|
+
} | {
|
|
12067
|
+
type: 'protected';
|
|
12068
|
+
provider: string | null;
|
|
12069
|
+
};
|
|
12070
|
+
};
|
|
12071
|
+
export type GetMcpBuiltin_Request = Simplify<(never extends never ? {} : {
|
|
12072
|
+
params: never;
|
|
12073
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12074
|
+
query?: never;
|
|
12075
|
+
} : {
|
|
12076
|
+
query: never;
|
|
12077
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12078
|
+
body?: never;
|
|
12079
|
+
} : {
|
|
12080
|
+
body: never;
|
|
12081
|
+
})>;
|
|
12082
|
+
export interface GetMcpBuiltin_RouteContract {
|
|
12083
|
+
pathParams: never;
|
|
12084
|
+
queryParams: never;
|
|
12085
|
+
body: never;
|
|
12086
|
+
request: GetMcpBuiltin_Request;
|
|
12087
|
+
response: GetMcpBuiltin_Response;
|
|
12088
|
+
responseType: 'json';
|
|
12089
|
+
}
|
|
12028
12090
|
export type GetMcpV0Servers_QueryParams = {
|
|
12029
12091
|
page?: number | undefined;
|
|
12030
12092
|
perPage?: number | undefined;
|
|
@@ -20124,6 +20186,8 @@ export interface RouteTypes {
|
|
|
20124
20186
|
'POST /agents/:agentId/stream-legacy': PostAgentsAgentIdStreamLegacy_RouteContract;
|
|
20125
20187
|
'POST /workflows/:workflowId/stream-legacy': PostWorkflowsWorkflowIdStreamLegacy_RouteContract;
|
|
20126
20188
|
'POST /workflows/:workflowId/observe-stream-legacy': PostWorkflowsWorkflowIdObserveStreamLegacy_RouteContract;
|
|
20189
|
+
'ALL /mcp': AllMcp_RouteContract;
|
|
20190
|
+
'GET /mcp/builtin': GetMcpBuiltin_RouteContract;
|
|
20127
20191
|
'GET /mcp/v0/servers': GetMcpV0Servers_RouteContract;
|
|
20128
20192
|
'GET /mcp/v0/servers/:id': GetMcpV0ServersId_RouteContract;
|
|
20129
20193
|
'GET /mcp/:serverId/tools': GetMcpServerIdTools_RouteContract;
|
|
@@ -20858,6 +20922,9 @@ export interface Client {
|
|
|
20858
20922
|
'/logs/transports': {
|
|
20859
20923
|
GET: GetLogsTransports_RouteContract;
|
|
20860
20924
|
};
|
|
20925
|
+
'/mcp': {
|
|
20926
|
+
ALL: AllMcp_RouteContract;
|
|
20927
|
+
};
|
|
20861
20928
|
'/mcp/:serverId/events': {
|
|
20862
20929
|
GET: GetMcpServerIdEvents_RouteContract;
|
|
20863
20930
|
};
|
|
@@ -20906,6 +20973,9 @@ export interface Client {
|
|
|
20906
20973
|
'/mcp/:serverId/tools/:toolId/execute': {
|
|
20907
20974
|
POST: PostMcpServerIdToolsToolIdExecute_RouteContract;
|
|
20908
20975
|
};
|
|
20976
|
+
'/mcp/builtin': {
|
|
20977
|
+
GET: GetMcpBuiltin_RouteContract;
|
|
20978
|
+
};
|
|
20909
20979
|
'/mcp/v0/servers': {
|
|
20910
20980
|
GET: GetMcpV0Servers_RouteContract;
|
|
20911
20981
|
};
|