@mastra/client-js 1.57.0-alpha.7 → 1.57.1-alpha.0
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.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-client-js-observability.md +16 -15
- package/dist/docs/references/reference-observability-tracing-advanced-queries.md +33 -16
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +49 -2
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -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,OAAO,EAAE,aAAa,EACd,UAAU,EAAE,UAAU,EAG/B;IAED;;;;OAIG;IACH,OAAO,CAAC,cA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E,GAAG,CAAC,GACpD,OAAO,CAAC,wBAAwB,CAAC,CA4CnC;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"}
|
|
@@ -2565,6 +2565,26 @@ type Shared_Type_61 = {
|
|
|
2565
2565
|
errorPreview?: (string | null) | undefined;
|
|
2566
2566
|
/** Milliseconds from span start to the first streamed chunk; null when the span never streamed one */
|
|
2567
2567
|
timeToFirstChunkMs?: (number | null) | undefined;
|
|
2568
|
+
/** Immediate parent span owned by an external tracing system; null when Mastra owns the parent */
|
|
2569
|
+
externalParentSpanId?: (string | null) | undefined;
|
|
2570
|
+
/** Span id of the initial invocation a resumed execution continues; null on the initial execution */
|
|
2571
|
+
resumedFromSpanId?: (string | null) | undefined;
|
|
2572
|
+
/** Model identity for this span, where applicable */
|
|
2573
|
+
model?: (string | null) | undefined;
|
|
2574
|
+
/** Provider paired with model */
|
|
2575
|
+
provider?: (string | null) | undefined;
|
|
2576
|
+
/** How this execution ended; null while it is still running */
|
|
2577
|
+
outcome?: (string | null) | undefined;
|
|
2578
|
+
/** Machine-readable cause of stopping, when known */
|
|
2579
|
+
stopReason?: (string | null) | undefined;
|
|
2580
|
+
/** Structured details behind stopReason, such as the limit that was hit; null when unknown */
|
|
2581
|
+
stopReasonContext?: ({
|
|
2582
|
+
[key: string]: unknown;
|
|
2583
|
+
} | null) | undefined;
|
|
2584
|
+
/** Milliseconds from the model call to the first token received; null when unknown */
|
|
2585
|
+
timeToFirstTokenMs?: (number | null) | undefined;
|
|
2586
|
+
/** Errors in this span and all nested spans; null when unknown */
|
|
2587
|
+
errorCount?: (number | null) | undefined;
|
|
2568
2588
|
/** Database record creation time */
|
|
2569
2589
|
createdAt: Date;
|
|
2570
2590
|
/** Database record last update time */
|
|
@@ -2670,6 +2690,26 @@ type Shared_Type_63 = {
|
|
|
2670
2690
|
errorPreview?: (string | null) | undefined;
|
|
2671
2691
|
/** Milliseconds from span start to the first streamed chunk; null when the span never streamed one */
|
|
2672
2692
|
timeToFirstChunkMs?: (number | null) | undefined;
|
|
2693
|
+
/** Immediate parent span owned by an external tracing system; null when Mastra owns the parent */
|
|
2694
|
+
externalParentSpanId?: (string | null) | undefined;
|
|
2695
|
+
/** Span id of the initial invocation a resumed execution continues; null on the initial execution */
|
|
2696
|
+
resumedFromSpanId?: (string | null) | undefined;
|
|
2697
|
+
/** Model identity for this span, where applicable */
|
|
2698
|
+
model?: (string | null) | undefined;
|
|
2699
|
+
/** Provider paired with model */
|
|
2700
|
+
provider?: (string | null) | undefined;
|
|
2701
|
+
/** How this execution ended; null while it is still running */
|
|
2702
|
+
outcome?: (string | null) | undefined;
|
|
2703
|
+
/** Machine-readable cause of stopping, when known */
|
|
2704
|
+
stopReason?: (string | null) | undefined;
|
|
2705
|
+
/** Structured details behind stopReason, such as the limit that was hit; null when unknown */
|
|
2706
|
+
stopReasonContext?: ({
|
|
2707
|
+
[key: string]: unknown;
|
|
2708
|
+
} | null) | undefined;
|
|
2709
|
+
/** Milliseconds from the model call to the first token received; null when unknown */
|
|
2710
|
+
timeToFirstTokenMs?: (number | null) | undefined;
|
|
2711
|
+
/** Errors in this span and all nested spans; null when unknown */
|
|
2712
|
+
errorCount?: (number | null) | undefined;
|
|
2673
2713
|
/** Database record creation time */
|
|
2674
2714
|
createdAt: Date;
|
|
2675
2715
|
/** Database record last update time */
|
|
@@ -2697,6 +2737,7 @@ type Shared_Type_64 = {
|
|
|
2697
2737
|
environment: string | null;
|
|
2698
2738
|
status: 'success' | 'error';
|
|
2699
2739
|
timeToFirstChunkMs?: (number | null) | undefined;
|
|
2740
|
+
timeToFirstTokenMs?: (number | null) | undefined;
|
|
2700
2741
|
};
|
|
2701
2742
|
type Shared_Type_65 = {
|
|
2702
2743
|
/** Unique id for this score event */
|
|
@@ -2787,6 +2828,10 @@ type Shared_Type_67 = {
|
|
|
2787
2828
|
traceQueryRootEntityId: boolean;
|
|
2788
2829
|
/** Sorting trace and span queries by `timeToFirstChunkMs` */
|
|
2789
2830
|
traceQueryTimeToFirstChunkSort: boolean;
|
|
2831
|
+
/** `timeToFirstTokenMs` in trace, thread and span query results, and predicates on it in trace, thread and span queries */
|
|
2832
|
+
traceQueryTimeToFirstToken: boolean;
|
|
2833
|
+
/** Sorting trace and span queries by `timeToFirstTokenMs` */
|
|
2834
|
+
traceQueryTimeToFirstTokenSort: boolean;
|
|
2790
2835
|
/** Trace query field discovery (POST /observability/traces/query/fields and /values) */
|
|
2791
2836
|
traceQueryDiscovery: boolean;
|
|
2792
2837
|
/** Trusted tenant scoping of trace and thread queries */
|
|
@@ -8109,7 +8154,7 @@ export type PostObservabilityTracesQuery_Body = {
|
|
|
8109
8154
|
by: ['threadId'];
|
|
8110
8155
|
} | undefined;
|
|
8111
8156
|
orderBy?: {
|
|
8112
|
-
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs';
|
|
8157
|
+
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs';
|
|
8113
8158
|
direction: 'asc' | 'desc';
|
|
8114
8159
|
}[] | undefined;
|
|
8115
8160
|
page?: {
|
|
@@ -8318,6 +8363,7 @@ export type PostObservabilityThreadsQuery_Response = {
|
|
|
8318
8363
|
startedAt: string;
|
|
8319
8364
|
endedAt: string;
|
|
8320
8365
|
timeToFirstChunkMs: number | null;
|
|
8366
|
+
timeToFirstTokenMs?: (number | null) | undefined;
|
|
8321
8367
|
inputPreview: string | null;
|
|
8322
8368
|
outputPreview: string | null;
|
|
8323
8369
|
errorPreview: string | null;
|
|
@@ -8360,7 +8406,7 @@ export type PostObservabilitySpansQuery_Body = {
|
|
|
8360
8406
|
};
|
|
8361
8407
|
where?: InputShared_Auxiliary_231 | undefined;
|
|
8362
8408
|
orderBy?: {
|
|
8363
|
-
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs';
|
|
8409
|
+
field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs';
|
|
8364
8410
|
direction: 'asc' | 'desc';
|
|
8365
8411
|
}[];
|
|
8366
8412
|
page?: {
|
|
@@ -8408,6 +8454,7 @@ export type PostObservabilitySpansQuery_Response = {
|
|
|
8408
8454
|
outputPreview: string | null;
|
|
8409
8455
|
errorPreview: string | null;
|
|
8410
8456
|
timeToFirstChunkMs?: (number | null) | undefined;
|
|
8457
|
+
timeToFirstTokenMs?: (number | null) | undefined;
|
|
8411
8458
|
}[];
|
|
8412
8459
|
page: {
|
|
8413
8460
|
next: string | null;
|