@mastra/client-js 1.51.0-alpha.0 → 1.51.0-alpha.10
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-harness-agent-controller.md +6 -4
- package/dist/docs/references/docs-harness-schedules.md +28 -1
- package/dist/docs/references/docs-harness-signals.md +2 -2
- package/dist/docs/references/reference-client-js-agent-controller.md +1 -1
- package/dist/docs/references/reference-observability-tracing-trace-query.md +37 -16
- package/dist/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +71 -16
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/resources/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAQlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,KAAK,UAAU,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC,YAAY,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,UAAU,CAAC,wCAAwC,CAAC,CAAC,OAAO,CAAC,CAAC;AAEnF,qBAAa,QAAS,SAAQ,YAAY;IAGtC,OAAO,CAAC,UAAU;IAFpB,YACE,OA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CAAC,EAAE,sBAAsB,EAC/B,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACpD,OAAO,CAAC,wBAAwB,CAAC,CA6CnC;IAED;;;;;;;;OAQG;IACH,OAAO,CACL,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,GACA,OAAO,CAAC,0BAA0B,CAAC,CAkBrC;IAED;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,2CAA2C,CAAC,CAAC,CAIvG;IAED;;;OAGG;IACG,SAAS,IAAI,OAAO,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;KAC9C,CAAC,CAQD;IAED;;;;OAIG;IACG,SAAS,CACb,MAAM,CAAC,EAAE,WAAW,CAAC,wCAAwC,CAAC,GAAG,IAAI,CAAC,wCAAwC,CAAC,gBAsBhH;IAED;;;;;;OAMG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,cAAc,CAerF;CACF"}
|
|
@@ -96,12 +96,12 @@ type InputShared_Auxiliary_223 = {
|
|
|
96
96
|
op: 'not';
|
|
97
97
|
arg: InputShared_Auxiliary_223;
|
|
98
98
|
};
|
|
99
|
-
type
|
|
99
|
+
type InputShared_Auxiliary_254 = {
|
|
100
100
|
op: 'and' | 'or';
|
|
101
|
-
args:
|
|
101
|
+
args: InputShared_Auxiliary_254[];
|
|
102
102
|
} | {
|
|
103
103
|
op: 'not';
|
|
104
|
-
arg:
|
|
104
|
+
arg: InputShared_Auxiliary_254;
|
|
105
105
|
} | {
|
|
106
106
|
traces: {
|
|
107
107
|
some: InputShared_Auxiliary_204;
|
|
@@ -109,7 +109,7 @@ type InputShared_Auxiliary_251 = {
|
|
|
109
109
|
none: InputShared_Auxiliary_204;
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
type
|
|
112
|
+
type InputShared_Auxiliary_670 = {
|
|
113
113
|
op: 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
114
114
|
left: {
|
|
115
115
|
path: string;
|
|
@@ -141,24 +141,24 @@ type InputShared_Auxiliary_667 = {
|
|
|
141
141
|
};
|
|
142
142
|
} | {
|
|
143
143
|
op: 'and' | 'or';
|
|
144
|
-
args:
|
|
144
|
+
args: InputShared_Auxiliary_670[];
|
|
145
145
|
} | {
|
|
146
146
|
op: 'not';
|
|
147
|
-
arg:
|
|
147
|
+
arg: InputShared_Auxiliary_670;
|
|
148
148
|
};
|
|
149
|
-
type
|
|
149
|
+
type InputShared_Auxiliary_744 = {
|
|
150
150
|
id?: string | undefined;
|
|
151
151
|
name: string;
|
|
152
152
|
type: 'file' | 'folder';
|
|
153
153
|
content?: string | undefined;
|
|
154
|
-
children?:
|
|
154
|
+
children?: InputShared_Auxiliary_744[] | undefined;
|
|
155
155
|
};
|
|
156
|
-
type
|
|
156
|
+
type Shared_Auxiliary_752 = {
|
|
157
157
|
id?: string | undefined;
|
|
158
158
|
name: string;
|
|
159
159
|
type: 'file' | 'folder';
|
|
160
160
|
content?: string | undefined;
|
|
161
|
-
children?:
|
|
161
|
+
children?: Shared_Auxiliary_752[] | undefined;
|
|
162
162
|
};
|
|
163
163
|
type InputShared_Type_0 = {
|
|
164
164
|
thread: string | {
|
|
@@ -1280,7 +1280,7 @@ type InputShared_Type_86 = {
|
|
|
1280
1280
|
[key: string]: unknown;
|
|
1281
1281
|
} | undefined;
|
|
1282
1282
|
steps: InputShared_Type_81[];
|
|
1283
|
-
predicates:
|
|
1283
|
+
predicates: InputShared_Auxiliary_670[];
|
|
1284
1284
|
};
|
|
1285
1285
|
type InputShared_Type_87 = {
|
|
1286
1286
|
type: 'loop';
|
|
@@ -1291,7 +1291,7 @@ type InputShared_Type_87 = {
|
|
|
1291
1291
|
} | undefined;
|
|
1292
1292
|
step: InputShared_Type_81;
|
|
1293
1293
|
loopType: 'dowhile' | 'dountil';
|
|
1294
|
-
predicate:
|
|
1294
|
+
predicate: InputShared_Auxiliary_670;
|
|
1295
1295
|
};
|
|
1296
1296
|
type InputShared_Type_88 = InputShared_Type_78 | InputShared_Type_79 | InputShared_Type_80 | {
|
|
1297
1297
|
type: 'workflow';
|
|
@@ -2671,6 +2671,8 @@ type Shared_Type_65 = {
|
|
|
2671
2671
|
traceQuery: boolean;
|
|
2672
2672
|
/** `durationMs` predicates in trace and thread queries */
|
|
2673
2673
|
traceQueryRootDuration: boolean;
|
|
2674
|
+
/** `runId`, `sessionId`, `userId` and `organizationId` predicates in trace and thread queries */
|
|
2675
|
+
traceQueryContextIds: boolean;
|
|
2674
2676
|
/** Trace query field discovery (POST /observability/traces/query/fields and /values) */
|
|
2675
2677
|
traceQueryDiscovery: boolean;
|
|
2676
2678
|
/** Trusted tenant scoping of trace and thread queries */
|
|
@@ -3073,7 +3075,7 @@ type Shared_Type_81 = {
|
|
|
3073
3075
|
/** List of asset file paths */
|
|
3074
3076
|
assets?: string[] | undefined;
|
|
3075
3077
|
/** Full file tree structure for the skill */
|
|
3076
|
-
files?:
|
|
3078
|
+
files?: Shared_Auxiliary_752[] | undefined;
|
|
3077
3079
|
/** Additional metadata for the skill */
|
|
3078
3080
|
metadata?: {
|
|
3079
3081
|
[key: string]: unknown;
|
|
@@ -5212,6 +5214,8 @@ export type GetWorkflowsWorkflowIdRuns_QueryParams = {
|
|
|
5212
5214
|
toDate?: Date | undefined;
|
|
5213
5215
|
resourceId?: string | undefined;
|
|
5214
5216
|
status?: ('running' | 'waiting' | 'suspended' | 'success' | 'failed' | 'canceled' | 'pending' | 'bailed' | 'tripwire' | 'paused' | 'skipped') | undefined;
|
|
5217
|
+
/** When true, each run snapshot is reduced to { status, timestamp }. Defaults to false. */
|
|
5218
|
+
summary?: boolean | undefined;
|
|
5215
5219
|
};
|
|
5216
5220
|
export type GetWorkflowsWorkflowIdRuns_Response = {
|
|
5217
5221
|
runs: {
|
|
@@ -7848,6 +7852,53 @@ export interface PostObservabilityTracesQuery_RouteContract {
|
|
|
7848
7852
|
response: PostObservabilityTracesQuery_Response;
|
|
7849
7853
|
responseType: 'json';
|
|
7850
7854
|
}
|
|
7855
|
+
export type PostObservabilityTracesAggregate_Body = {
|
|
7856
|
+
timeRange: {
|
|
7857
|
+
from: string;
|
|
7858
|
+
to: string;
|
|
7859
|
+
};
|
|
7860
|
+
where?: InputShared_Auxiliary_204 | undefined;
|
|
7861
|
+
groupBy?: string[];
|
|
7862
|
+
interval?: ('1m' | '5m' | '15m' | '1h' | '1d') | undefined;
|
|
7863
|
+
measures: (('count' | 'duration.avg' | 'duration.min' | 'duration.max' | 'duration.p50' | 'duration.p90' | 'duration.p95' | 'duration.p99' | 'errorCount' | 'errorRate') | `countDistinct.${string}`)[];
|
|
7864
|
+
having?: InputShared_Auxiliary_223 | undefined;
|
|
7865
|
+
orderBy?: {
|
|
7866
|
+
field: string;
|
|
7867
|
+
direction: 'asc' | 'desc';
|
|
7868
|
+
};
|
|
7869
|
+
limit?: number;
|
|
7870
|
+
};
|
|
7871
|
+
export type PostObservabilityTracesAggregate_Response = {
|
|
7872
|
+
rows: {
|
|
7873
|
+
dimensions?: {
|
|
7874
|
+
[key: string]: string | null;
|
|
7875
|
+
} | undefined;
|
|
7876
|
+
bucket?: string | undefined;
|
|
7877
|
+
measures: {
|
|
7878
|
+
[K in ('count' | 'duration.avg' | 'duration.min' | 'duration.max' | 'duration.p50' | 'duration.p90' | 'duration.p95' | 'duration.p99' | 'errorCount' | 'errorRate') | `countDistinct.${string}`]?: number;
|
|
7879
|
+
};
|
|
7880
|
+
}[];
|
|
7881
|
+
truncated: boolean;
|
|
7882
|
+
};
|
|
7883
|
+
export type PostObservabilityTracesAggregate_Request = Simplify<(never extends never ? {} : {
|
|
7884
|
+
params: never;
|
|
7885
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
7886
|
+
query?: never;
|
|
7887
|
+
} : {
|
|
7888
|
+
query: never;
|
|
7889
|
+
}) & (PostObservabilityTracesAggregate_Body extends never ? {} : {} extends PostObservabilityTracesAggregate_Body ? {
|
|
7890
|
+
body?: PostObservabilityTracesAggregate_Body;
|
|
7891
|
+
} : {
|
|
7892
|
+
body: PostObservabilityTracesAggregate_Body;
|
|
7893
|
+
})>;
|
|
7894
|
+
export interface PostObservabilityTracesAggregate_RouteContract {
|
|
7895
|
+
pathParams: never;
|
|
7896
|
+
queryParams: never;
|
|
7897
|
+
body: PostObservabilityTracesAggregate_Body;
|
|
7898
|
+
request: PostObservabilityTracesAggregate_Request;
|
|
7899
|
+
response: PostObservabilityTracesAggregate_Response;
|
|
7900
|
+
responseType: 'json';
|
|
7901
|
+
}
|
|
7851
7902
|
export type PostObservabilityThreadsQuery_Body = {
|
|
7852
7903
|
traces: {
|
|
7853
7904
|
timeRange: {
|
|
@@ -7856,7 +7907,7 @@ export type PostObservabilityThreadsQuery_Body = {
|
|
|
7856
7907
|
};
|
|
7857
7908
|
where?: InputShared_Auxiliary_204 | undefined;
|
|
7858
7909
|
};
|
|
7859
|
-
where?:
|
|
7910
|
+
where?: InputShared_Auxiliary_254 | undefined;
|
|
7860
7911
|
page?: {
|
|
7861
7912
|
limit?: number;
|
|
7862
7913
|
after?: (string | null) | undefined;
|
|
@@ -14148,7 +14199,7 @@ export type PostStoredSkills_Body = {
|
|
|
14148
14199
|
/** List of asset file paths */
|
|
14149
14200
|
assets?: string[] | undefined;
|
|
14150
14201
|
/** Full file tree structure for the skill */
|
|
14151
|
-
files?:
|
|
14202
|
+
files?: InputShared_Auxiliary_744[] | undefined;
|
|
14152
14203
|
/** Additional metadata for the skill */
|
|
14153
14204
|
metadata?: {
|
|
14154
14205
|
[key: string]: unknown;
|
|
@@ -14198,7 +14249,7 @@ export type PatchStoredSkillsStoredSkillId_Body = {
|
|
|
14198
14249
|
/** List of asset file paths */
|
|
14199
14250
|
assets?: (string[] | undefined) | undefined;
|
|
14200
14251
|
/** Full file tree structure for the skill */
|
|
14201
|
-
files?: (
|
|
14252
|
+
files?: (InputShared_Auxiliary_744[] | undefined) | undefined;
|
|
14202
14253
|
/** Additional metadata for the skill */
|
|
14203
14254
|
metadata?: ({
|
|
14204
14255
|
[key: string]: unknown;
|
|
@@ -18548,6 +18599,7 @@ export interface RouteTypes {
|
|
|
18548
18599
|
'POST /observability/traces/score': PostObservabilityTracesScore_RouteContract;
|
|
18549
18600
|
'GET /observability/traces/:traceId/:spanId/scores': GetObservabilityTracesTraceIdSpanIdScores_RouteContract;
|
|
18550
18601
|
'POST /observability/traces/query': PostObservabilityTracesQuery_RouteContract;
|
|
18602
|
+
'POST /observability/traces/aggregate': PostObservabilityTracesAggregate_RouteContract;
|
|
18551
18603
|
'POST /observability/threads/query': PostObservabilityThreadsQuery_RouteContract;
|
|
18552
18604
|
'POST /observability/traces/query/fields': PostObservabilityTracesQueryFields_RouteContract;
|
|
18553
18605
|
'POST /observability/traces/query/values': PostObservabilityTracesQueryValues_RouteContract;
|
|
@@ -19505,6 +19557,9 @@ export interface Client {
|
|
|
19505
19557
|
'/observability/traces/:traceId/trajectory': {
|
|
19506
19558
|
GET: GetObservabilityTracesTraceIdTrajectory_RouteContract;
|
|
19507
19559
|
};
|
|
19560
|
+
'/observability/traces/aggregate': {
|
|
19561
|
+
POST: PostObservabilityTracesAggregate_RouteContract;
|
|
19562
|
+
};
|
|
19508
19563
|
'/observability/traces/delete': {
|
|
19509
19564
|
POST: PostObservabilityTracesDelete_RouteContract;
|
|
19510
19565
|
};
|