@kortyx/telemetry-contracts 0.8.0 → 0.10.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/CHANGELOG.md +14 -0
- package/dist/index.d.ts +299 -2
- package/dist/index.js +487 -362
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.9.0...telemetry-contracts-v0.10.0) (2026-09-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **observability:** report handled workflow errors ([#222](https://github.com/kortyx-io/kortyx/issues/222)) ([68a3b0e](https://github.com/kortyx-io/kortyx/commit/68a3b0eea5d93cb89bdcef63c4767f3b0d59e60d))
|
|
9
|
+
|
|
10
|
+
## [0.9.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.8.0...telemetry-contracts-v0.9.0) (2026-09-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **tools:** add useTool and first-class Studio observability ([#215](https://github.com/kortyx-io/kortyx/issues/215)) ([224c92d](https://github.com/kortyx-io/kortyx/commit/224c92d73caead320dd14582d8b624efc3252c9f))
|
|
16
|
+
|
|
3
17
|
## [0.8.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.7.0...telemetry-contracts-v0.8.0) (2026-09-16)
|
|
4
18
|
|
|
5
19
|
|
package/dist/index.d.ts
CHANGED
|
@@ -211,6 +211,107 @@ type UserFeedbackRequest = z.infer<typeof UserFeedbackRequestSchema>;
|
|
|
211
211
|
type StudioReviewRequest = z.infer<typeof StudioReviewRequestSchema>;
|
|
212
212
|
declare function summarizeUserFeedback(scores: readonly StudioScore[]): FeedbackSummary;
|
|
213
213
|
|
|
214
|
+
declare const ToolOutcomeSchema: z.ZodEnum<{
|
|
215
|
+
success: "success";
|
|
216
|
+
cancelled: "cancelled";
|
|
217
|
+
denied: "denied";
|
|
218
|
+
fault: "fault";
|
|
219
|
+
}>;
|
|
220
|
+
declare const ToolObservationSchema: z.ZodObject<{
|
|
221
|
+
version: z.ZodLiteral<1>;
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
toolCallId: z.ZodString;
|
|
224
|
+
attemptId: z.ZodString;
|
|
225
|
+
callingMode: z.ZodEnum<{
|
|
226
|
+
model: "model";
|
|
227
|
+
direct: "direct";
|
|
228
|
+
}>;
|
|
229
|
+
executed: z.ZodBoolean;
|
|
230
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
success: "success";
|
|
232
|
+
cancelled: "cancelled";
|
|
233
|
+
denied: "denied";
|
|
234
|
+
fault: "fault";
|
|
235
|
+
}>>;
|
|
236
|
+
denialCode: z.ZodOptional<z.ZodString>;
|
|
237
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
238
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
239
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
242
|
+
workflowRevisionId: z.ZodOptional<z.ZodString>;
|
|
243
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
244
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
245
|
+
parentInvocationId: z.ZodOptional<z.ZodString>;
|
|
246
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
247
|
+
observationKind: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
reused: "reused";
|
|
249
|
+
waiting: "waiting";
|
|
250
|
+
}>>;
|
|
251
|
+
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
254
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
255
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
256
|
+
toolCallId: z.ZodString;
|
|
257
|
+
attemptId: z.ZodString;
|
|
258
|
+
}, z.core.$strict>>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
/** Topology contains safe capability descriptions, never executable factories. */
|
|
261
|
+
declare const WorkflowToolSchema: z.ZodObject<{
|
|
262
|
+
name: z.ZodString;
|
|
263
|
+
description: z.ZodOptional<z.ZodString>;
|
|
264
|
+
callingMode: z.ZodEnum<{
|
|
265
|
+
model: "model";
|
|
266
|
+
direct: "direct";
|
|
267
|
+
}>;
|
|
268
|
+
provenance: z.ZodEnum<{
|
|
269
|
+
source: "source";
|
|
270
|
+
observed: "observed";
|
|
271
|
+
}>;
|
|
272
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
+
name: z.ZodString;
|
|
274
|
+
type: z.ZodString;
|
|
275
|
+
required: z.ZodBoolean;
|
|
276
|
+
}, z.core.$strict>>>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
declare const ToolDiscoverySchema: z.ZodObject<{
|
|
279
|
+
status: z.ZodEnum<{
|
|
280
|
+
complete: "complete";
|
|
281
|
+
unresolved: "unresolved";
|
|
282
|
+
}>;
|
|
283
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
284
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
}, z.core.$strict>;
|
|
286
|
+
declare const StudioToolSchema: z.ZodObject<{
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
description: z.ZodOptional<z.ZodString>;
|
|
289
|
+
provenance: z.ZodEnum<{
|
|
290
|
+
source: "source";
|
|
291
|
+
observed: "observed";
|
|
292
|
+
}>;
|
|
293
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
type: z.ZodString;
|
|
296
|
+
required: z.ZodBoolean;
|
|
297
|
+
}, z.core.$strict>>>;
|
|
298
|
+
callingMode: z.ZodEnum<{
|
|
299
|
+
model: "model";
|
|
300
|
+
unknown: "unknown";
|
|
301
|
+
direct: "direct";
|
|
302
|
+
}>;
|
|
303
|
+
calls: z.ZodNumber;
|
|
304
|
+
replays: z.ZodNumber;
|
|
305
|
+
successes: z.ZodNumber;
|
|
306
|
+
denials: z.ZodNumber;
|
|
307
|
+
faults: z.ZodNumber;
|
|
308
|
+
cancellations: z.ZodNumber;
|
|
309
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
type WorkflowTool = z.infer<typeof WorkflowToolSchema>;
|
|
313
|
+
type StudioTool = z.infer<typeof StudioToolSchema>;
|
|
314
|
+
|
|
214
315
|
declare const StudioReleaseVersionSchema: z.ZodString;
|
|
215
316
|
declare const StudioReleaseDeploymentSchema: z.ZodObject<{
|
|
216
317
|
strategy: z.ZodEnum<{
|
|
@@ -358,7 +459,7 @@ type StudioWorkflowCall = {
|
|
|
358
459
|
/** Logical calls are ordered by persisted sequence, independently within each branch. */
|
|
359
460
|
declare function projectWorkflowCalls(events: StudioDetailEvent[]): StudioWorkflowCall[];
|
|
360
461
|
|
|
361
|
-
declare const TELEMETRY_EVENT_TYPES: readonly ["span.started", "span.ended", "span.failed", "generation.completed", "tool.started", "tool.completed", "tool.failed", "response.completed", "interrupt.created", "interrupt.resolved", "interrupt.expired", "interrupt.cancelled", "run.cancelled", "run.limit_reached", "workflow.transitioned", "workflow.call.started", "workflow.call.suspended", "workflow.call.resumed", "workflow.call.completed", "workflow.call.failed", "workflow.call.reused", "workflow.call.restored", "session.checkpointed", "session.forked", "session.rolled_back"];
|
|
462
|
+
declare const TELEMETRY_EVENT_TYPES: readonly ["span.started", "span.ended", "span.failed", "error.reported", "generation.completed", "tool.started", "tool.completed", "tool.failed", "tool.denied", "tool.cancelled", "tool.reused", "tool.waiting", "tool.suspended", "response.completed", "interrupt.created", "interrupt.resolved", "interrupt.expired", "interrupt.cancelled", "run.cancelled", "run.limit_reached", "workflow.transitioned", "workflow.call.started", "workflow.call.suspended", "workflow.call.resumed", "workflow.call.completed", "workflow.call.failed", "workflow.call.reused", "workflow.call.restored", "session.checkpointed", "session.forked", "session.rolled_back"];
|
|
362
463
|
declare const TelemetryServiceSchema: z.ZodObject<{
|
|
363
464
|
name: z.ZodString;
|
|
364
465
|
deploymentRef: z.ZodOptional<z.ZodString>;
|
|
@@ -370,6 +471,31 @@ declare const WorkflowTopologyNodeSchema: z.ZodObject<{
|
|
|
370
471
|
provider: z.ZodOptional<z.ZodString>;
|
|
371
472
|
model: z.ZodOptional<z.ZodString>;
|
|
372
473
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
474
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
|
+
name: z.ZodString;
|
|
476
|
+
description: z.ZodOptional<z.ZodString>;
|
|
477
|
+
callingMode: z.ZodEnum<{
|
|
478
|
+
model: "model";
|
|
479
|
+
direct: "direct";
|
|
480
|
+
}>;
|
|
481
|
+
provenance: z.ZodEnum<{
|
|
482
|
+
source: "source";
|
|
483
|
+
observed: "observed";
|
|
484
|
+
}>;
|
|
485
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
name: z.ZodString;
|
|
487
|
+
type: z.ZodString;
|
|
488
|
+
required: z.ZodBoolean;
|
|
489
|
+
}, z.core.$strict>>>;
|
|
490
|
+
}, z.core.$strict>>>;
|
|
491
|
+
toolDiscovery: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
status: z.ZodEnum<{
|
|
493
|
+
complete: "complete";
|
|
494
|
+
unresolved: "unresolved";
|
|
495
|
+
}>;
|
|
496
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
497
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
498
|
+
}, z.core.$strict>>;
|
|
373
499
|
}, z.core.$strict>;
|
|
374
500
|
declare const WorkflowTopologyEdgeSchema: z.ZodObject<{
|
|
375
501
|
sourceNodeId: z.ZodString;
|
|
@@ -410,6 +536,31 @@ declare const EnsureWorkflowTopologyRequestSchema: z.ZodObject<{
|
|
|
410
536
|
provider: z.ZodOptional<z.ZodString>;
|
|
411
537
|
model: z.ZodOptional<z.ZodString>;
|
|
412
538
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
539
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
description: z.ZodOptional<z.ZodString>;
|
|
542
|
+
callingMode: z.ZodEnum<{
|
|
543
|
+
model: "model";
|
|
544
|
+
direct: "direct";
|
|
545
|
+
}>;
|
|
546
|
+
provenance: z.ZodEnum<{
|
|
547
|
+
source: "source";
|
|
548
|
+
observed: "observed";
|
|
549
|
+
}>;
|
|
550
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
551
|
+
name: z.ZodString;
|
|
552
|
+
type: z.ZodString;
|
|
553
|
+
required: z.ZodBoolean;
|
|
554
|
+
}, z.core.$strict>>>;
|
|
555
|
+
}, z.core.$strict>>>;
|
|
556
|
+
toolDiscovery: z.ZodOptional<z.ZodObject<{
|
|
557
|
+
status: z.ZodEnum<{
|
|
558
|
+
complete: "complete";
|
|
559
|
+
unresolved: "unresolved";
|
|
560
|
+
}>;
|
|
561
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
562
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
563
|
+
}, z.core.$strict>>;
|
|
413
564
|
}, z.core.$strict>>;
|
|
414
565
|
edges: z.ZodArray<z.ZodObject<{
|
|
415
566
|
sourceNodeId: z.ZodString;
|
|
@@ -440,10 +591,16 @@ declare const TelemetryEventTypeSchema: z.ZodEnum<{
|
|
|
440
591
|
"span.started": "span.started";
|
|
441
592
|
"span.ended": "span.ended";
|
|
442
593
|
"span.failed": "span.failed";
|
|
594
|
+
"error.reported": "error.reported";
|
|
443
595
|
"generation.completed": "generation.completed";
|
|
444
596
|
"tool.started": "tool.started";
|
|
445
597
|
"tool.completed": "tool.completed";
|
|
446
598
|
"tool.failed": "tool.failed";
|
|
599
|
+
"tool.denied": "tool.denied";
|
|
600
|
+
"tool.cancelled": "tool.cancelled";
|
|
601
|
+
"tool.reused": "tool.reused";
|
|
602
|
+
"tool.waiting": "tool.waiting";
|
|
603
|
+
"tool.suspended": "tool.suspended";
|
|
447
604
|
"response.completed": "response.completed";
|
|
448
605
|
"interrupt.created": "interrupt.created";
|
|
449
606
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -496,10 +653,16 @@ declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
496
653
|
"span.started": "span.started";
|
|
497
654
|
"span.ended": "span.ended";
|
|
498
655
|
"span.failed": "span.failed";
|
|
656
|
+
"error.reported": "error.reported";
|
|
499
657
|
"generation.completed": "generation.completed";
|
|
500
658
|
"tool.started": "tool.started";
|
|
501
659
|
"tool.completed": "tool.completed";
|
|
502
660
|
"tool.failed": "tool.failed";
|
|
661
|
+
"tool.denied": "tool.denied";
|
|
662
|
+
"tool.cancelled": "tool.cancelled";
|
|
663
|
+
"tool.reused": "tool.reused";
|
|
664
|
+
"tool.waiting": "tool.waiting";
|
|
665
|
+
"tool.suspended": "tool.suspended";
|
|
503
666
|
"response.completed": "response.completed";
|
|
504
667
|
"interrupt.created": "interrupt.created";
|
|
505
668
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -555,10 +718,16 @@ declare const TelemetryEventBatchSchema: z.ZodObject<{
|
|
|
555
718
|
"span.started": "span.started";
|
|
556
719
|
"span.ended": "span.ended";
|
|
557
720
|
"span.failed": "span.failed";
|
|
721
|
+
"error.reported": "error.reported";
|
|
558
722
|
"generation.completed": "generation.completed";
|
|
559
723
|
"tool.started": "tool.started";
|
|
560
724
|
"tool.completed": "tool.completed";
|
|
561
725
|
"tool.failed": "tool.failed";
|
|
726
|
+
"tool.denied": "tool.denied";
|
|
727
|
+
"tool.cancelled": "tool.cancelled";
|
|
728
|
+
"tool.reused": "tool.reused";
|
|
729
|
+
"tool.waiting": "tool.waiting";
|
|
730
|
+
"tool.suspended": "tool.suspended";
|
|
562
731
|
"response.completed": "response.completed";
|
|
563
732
|
"interrupt.created": "interrupt.created";
|
|
564
733
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -969,6 +1138,7 @@ declare const StudioPricingSourceSchema: z.ZodNullable<z.ZodEnum<{
|
|
|
969
1138
|
"default-rate-card": "default-rate-card";
|
|
970
1139
|
}>>;
|
|
971
1140
|
declare const StudioChangeResourceSchema: z.ZodEnum<{
|
|
1141
|
+
workflows: "workflows";
|
|
972
1142
|
runs: "runs";
|
|
973
1143
|
sessions: "sessions";
|
|
974
1144
|
interrupts: "interrupts";
|
|
@@ -980,6 +1150,7 @@ declare const StudioChangeSchema: z.ZodObject<{
|
|
|
980
1150
|
organizationId: z.ZodString;
|
|
981
1151
|
projectId: z.ZodString;
|
|
982
1152
|
resources: z.ZodArray<z.ZodEnum<{
|
|
1153
|
+
workflows: "workflows";
|
|
983
1154
|
runs: "runs";
|
|
984
1155
|
sessions: "sessions";
|
|
985
1156
|
interrupts: "interrupts";
|
|
@@ -1182,10 +1353,16 @@ declare const StudioDetailEventSchema: z.ZodObject<{
|
|
|
1182
1353
|
"span.started": "span.started";
|
|
1183
1354
|
"span.ended": "span.ended";
|
|
1184
1355
|
"span.failed": "span.failed";
|
|
1356
|
+
"error.reported": "error.reported";
|
|
1185
1357
|
"generation.completed": "generation.completed";
|
|
1186
1358
|
"tool.started": "tool.started";
|
|
1187
1359
|
"tool.completed": "tool.completed";
|
|
1188
1360
|
"tool.failed": "tool.failed";
|
|
1361
|
+
"tool.denied": "tool.denied";
|
|
1362
|
+
"tool.cancelled": "tool.cancelled";
|
|
1363
|
+
"tool.reused": "tool.reused";
|
|
1364
|
+
"tool.waiting": "tool.waiting";
|
|
1365
|
+
"tool.suspended": "tool.suspended";
|
|
1189
1366
|
"response.completed": "response.completed";
|
|
1190
1367
|
"interrupt.created": "interrupt.created";
|
|
1191
1368
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -1225,6 +1402,40 @@ declare const StudioDetailEventSchema: z.ZodObject<{
|
|
|
1225
1402
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1226
1403
|
}, z.core.$strict>;
|
|
1227
1404
|
declare const StudioWorkflowNodeSchema: z.ZodObject<{
|
|
1405
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1406
|
+
name: z.ZodString;
|
|
1407
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
provenance: z.ZodEnum<{
|
|
1409
|
+
source: "source";
|
|
1410
|
+
observed: "observed";
|
|
1411
|
+
}>;
|
|
1412
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1413
|
+
name: z.ZodString;
|
|
1414
|
+
type: z.ZodString;
|
|
1415
|
+
required: z.ZodBoolean;
|
|
1416
|
+
}, z.core.$strict>>>;
|
|
1417
|
+
callingMode: z.ZodEnum<{
|
|
1418
|
+
model: "model";
|
|
1419
|
+
unknown: "unknown";
|
|
1420
|
+
direct: "direct";
|
|
1421
|
+
}>;
|
|
1422
|
+
calls: z.ZodNumber;
|
|
1423
|
+
replays: z.ZodNumber;
|
|
1424
|
+
successes: z.ZodNumber;
|
|
1425
|
+
denials: z.ZodNumber;
|
|
1426
|
+
faults: z.ZodNumber;
|
|
1427
|
+
cancellations: z.ZodNumber;
|
|
1428
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1429
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1430
|
+
}, z.core.$strict>>>;
|
|
1431
|
+
toolDiscovery: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
status: z.ZodEnum<{
|
|
1433
|
+
complete: "complete";
|
|
1434
|
+
unresolved: "unresolved";
|
|
1435
|
+
}>;
|
|
1436
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1438
|
+
}, z.core.$strict>>;
|
|
1228
1439
|
id: z.ZodString;
|
|
1229
1440
|
label: z.ZodString;
|
|
1230
1441
|
type: z.ZodNullable<z.ZodString>;
|
|
@@ -1300,6 +1511,40 @@ declare const StudioWorkflowSchema: z.ZodObject<{
|
|
|
1300
1511
|
currency: z.ZodNullable<z.ZodString>;
|
|
1301
1512
|
}, z.core.$strict>;
|
|
1302
1513
|
nodes: z.ZodArray<z.ZodObject<{
|
|
1514
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1515
|
+
name: z.ZodString;
|
|
1516
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
provenance: z.ZodEnum<{
|
|
1518
|
+
source: "source";
|
|
1519
|
+
observed: "observed";
|
|
1520
|
+
}>;
|
|
1521
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1522
|
+
name: z.ZodString;
|
|
1523
|
+
type: z.ZodString;
|
|
1524
|
+
required: z.ZodBoolean;
|
|
1525
|
+
}, z.core.$strict>>>;
|
|
1526
|
+
callingMode: z.ZodEnum<{
|
|
1527
|
+
model: "model";
|
|
1528
|
+
unknown: "unknown";
|
|
1529
|
+
direct: "direct";
|
|
1530
|
+
}>;
|
|
1531
|
+
calls: z.ZodNumber;
|
|
1532
|
+
replays: z.ZodNumber;
|
|
1533
|
+
successes: z.ZodNumber;
|
|
1534
|
+
denials: z.ZodNumber;
|
|
1535
|
+
faults: z.ZodNumber;
|
|
1536
|
+
cancellations: z.ZodNumber;
|
|
1537
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1538
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1539
|
+
}, z.core.$strict>>>;
|
|
1540
|
+
toolDiscovery: z.ZodOptional<z.ZodObject<{
|
|
1541
|
+
status: z.ZodEnum<{
|
|
1542
|
+
complete: "complete";
|
|
1543
|
+
unresolved: "unresolved";
|
|
1544
|
+
}>;
|
|
1545
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1547
|
+
}, z.core.$strict>>;
|
|
1303
1548
|
id: z.ZodString;
|
|
1304
1549
|
label: z.ZodString;
|
|
1305
1550
|
type: z.ZodNullable<z.ZodString>;
|
|
@@ -1678,10 +1923,16 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
1678
1923
|
"span.started": "span.started";
|
|
1679
1924
|
"span.ended": "span.ended";
|
|
1680
1925
|
"span.failed": "span.failed";
|
|
1926
|
+
"error.reported": "error.reported";
|
|
1681
1927
|
"generation.completed": "generation.completed";
|
|
1682
1928
|
"tool.started": "tool.started";
|
|
1683
1929
|
"tool.completed": "tool.completed";
|
|
1684
1930
|
"tool.failed": "tool.failed";
|
|
1931
|
+
"tool.denied": "tool.denied";
|
|
1932
|
+
"tool.cancelled": "tool.cancelled";
|
|
1933
|
+
"tool.reused": "tool.reused";
|
|
1934
|
+
"tool.waiting": "tool.waiting";
|
|
1935
|
+
"tool.suspended": "tool.suspended";
|
|
1685
1936
|
"response.completed": "response.completed";
|
|
1686
1937
|
"interrupt.created": "interrupt.created";
|
|
1687
1938
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -1963,10 +2214,16 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
1963
2214
|
"span.started": "span.started";
|
|
1964
2215
|
"span.ended": "span.ended";
|
|
1965
2216
|
"span.failed": "span.failed";
|
|
2217
|
+
"error.reported": "error.reported";
|
|
1966
2218
|
"generation.completed": "generation.completed";
|
|
1967
2219
|
"tool.started": "tool.started";
|
|
1968
2220
|
"tool.completed": "tool.completed";
|
|
1969
2221
|
"tool.failed": "tool.failed";
|
|
2222
|
+
"tool.denied": "tool.denied";
|
|
2223
|
+
"tool.cancelled": "tool.cancelled";
|
|
2224
|
+
"tool.reused": "tool.reused";
|
|
2225
|
+
"tool.waiting": "tool.waiting";
|
|
2226
|
+
"tool.suspended": "tool.suspended";
|
|
1970
2227
|
"response.completed": "response.completed";
|
|
1971
2228
|
"interrupt.created": "interrupt.created";
|
|
1972
2229
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -2122,10 +2379,16 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2122
2379
|
"span.started": "span.started";
|
|
2123
2380
|
"span.ended": "span.ended";
|
|
2124
2381
|
"span.failed": "span.failed";
|
|
2382
|
+
"error.reported": "error.reported";
|
|
2125
2383
|
"generation.completed": "generation.completed";
|
|
2126
2384
|
"tool.started": "tool.started";
|
|
2127
2385
|
"tool.completed": "tool.completed";
|
|
2128
2386
|
"tool.failed": "tool.failed";
|
|
2387
|
+
"tool.denied": "tool.denied";
|
|
2388
|
+
"tool.cancelled": "tool.cancelled";
|
|
2389
|
+
"tool.reused": "tool.reused";
|
|
2390
|
+
"tool.waiting": "tool.waiting";
|
|
2391
|
+
"tool.suspended": "tool.suspended";
|
|
2129
2392
|
"response.completed": "response.completed";
|
|
2130
2393
|
"interrupt.created": "interrupt.created";
|
|
2131
2394
|
"interrupt.resolved": "interrupt.resolved";
|
|
@@ -2321,6 +2584,40 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2321
2584
|
currency: z.ZodNullable<z.ZodString>;
|
|
2322
2585
|
}, z.core.$strict>;
|
|
2323
2586
|
nodes: z.ZodArray<z.ZodObject<{
|
|
2587
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2588
|
+
name: z.ZodString;
|
|
2589
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
provenance: z.ZodEnum<{
|
|
2591
|
+
source: "source";
|
|
2592
|
+
observed: "observed";
|
|
2593
|
+
}>;
|
|
2594
|
+
inputFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2595
|
+
name: z.ZodString;
|
|
2596
|
+
type: z.ZodString;
|
|
2597
|
+
required: z.ZodBoolean;
|
|
2598
|
+
}, z.core.$strict>>>;
|
|
2599
|
+
callingMode: z.ZodEnum<{
|
|
2600
|
+
model: "model";
|
|
2601
|
+
unknown: "unknown";
|
|
2602
|
+
direct: "direct";
|
|
2603
|
+
}>;
|
|
2604
|
+
calls: z.ZodNumber;
|
|
2605
|
+
replays: z.ZodNumber;
|
|
2606
|
+
successes: z.ZodNumber;
|
|
2607
|
+
denials: z.ZodNumber;
|
|
2608
|
+
faults: z.ZodNumber;
|
|
2609
|
+
cancellations: z.ZodNumber;
|
|
2610
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
2611
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
2612
|
+
}, z.core.$strict>>>;
|
|
2613
|
+
toolDiscovery: z.ZodOptional<z.ZodObject<{
|
|
2614
|
+
status: z.ZodEnum<{
|
|
2615
|
+
complete: "complete";
|
|
2616
|
+
unresolved: "unresolved";
|
|
2617
|
+
}>;
|
|
2618
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
2619
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2620
|
+
}, z.core.$strict>>;
|
|
2324
2621
|
id: z.ZodString;
|
|
2325
2622
|
label: z.ZodString;
|
|
2326
2623
|
type: z.ZodNullable<z.ZodString>;
|
|
@@ -2461,4 +2758,4 @@ type StudioWorkflowsResponse = z.infer<typeof StudioWorkflowsResponseSchema>;
|
|
|
2461
2758
|
type StudioCatalogsResponse = z.infer<typeof StudioCatalogsResponseSchema>;
|
|
2462
2759
|
type StudioContextResponse = z.infer<typeof StudioContextResponseSchema>;
|
|
2463
2760
|
|
|
2464
|
-
export { ClearScoreResponseSchema, ClearUserFeedbackRequestSchema, type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, FEEDBACK_FILTERS, FeedbackReasonSchema, type FeedbackSummary, FeedbackSummarySchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, type KortyxWorkflowTopologyTransition, ReviewVerdictSchema, STUDIO_TIME_RANGES, type StudioCatalogsResponse, StudioCatalogsResponseSchema, type StudioChange, type StudioChangeResource, StudioChangeResourceSchema, StudioChangeSchema, type StudioContextResponse, StudioContextResponseSchema, type StudioDetailEvent, StudioDetailEventSchema, type StudioInterrupt, type StudioInterruptDetailResponse, StudioInterruptDetailResponseSchema, type StudioInterruptInteractionMode, StudioInterruptInteractionModeSchema, type StudioInterruptOption, StudioInterruptOptionSchema, StudioInterruptSchema, type StudioInterruptStatus, StudioInterruptStatusSchema, type StudioInterruptType, StudioInterruptTypeSchema, type StudioInterruptsResponse, StudioInterruptsResponseSchema, type StudioMetric, StudioMetricSchema, type StudioPricingSource, StudioPricingSourceSchema, type StudioPricingStatus, StudioPricingStatusSchema, type StudioRelease, StudioReleaseDeploymentSchema, StudioReleaseSchema, StudioReleaseVersionSchema, type StudioResumeOutcome, StudioResumeOutcomeSchema, type StudioReviewRequest, StudioReviewRequestSchema, type StudioRun, type StudioRunDetailResponse, StudioRunDetailResponseSchema, StudioRunSchema, type StudioRunStatus, StudioRunStatusSchema, type StudioRunsResponse, StudioRunsResponseSchema, type StudioScore, StudioScoreResponseSchema, StudioScoreSchema, type StudioSession, type StudioSessionDetailResponse, StudioSessionDetailResponseSchema, StudioSessionSchema, type StudioSessionsResponse, StudioSessionsResponseSchema, type StudioTimeRange, type StudioTimeRangeContext, StudioTimeRangeContextSchema, StudioTimeRangeQuerySchema, type StudioTimeRangeResolution, StudioTimeRangeSchema, type StudioUpdateOperation, StudioUpdateOperationSchema, type StudioUpdateSettings, StudioUpdateSettingsSchema, type StudioUpdateStatus, StudioUpdateStatusSchema, type StudioWorkflow, type StudioWorkflowCall, type StudioWorkflowHealth, StudioWorkflowHealthSchema, type StudioWorkflowInternalEdge, StudioWorkflowInternalEdgeSchema, type StudioWorkflowNode, StudioWorkflowNodeSchema, StudioWorkflowSchema, type StudioWorkflowTransition, StudioWorkflowTransitionSchema, type StudioWorkflowsResponse, StudioWorkflowsResponseSchema, TELEMETRY_EVENT_TYPES, type TelemetryEventBatch, type TelemetryEventBatchResponse, TelemetryEventBatchResponseSchema, TelemetryEventBatchSchema, TelemetryEventSchema, TelemetryEventTypeSchema, type TelemetryPricingHint, TelemetryPricingHintSchema, type TelemetryPricingLineItem, TelemetryPricingLineItemSchema, type TelemetryPricingSource, TelemetryPricingSourceSchema, type TelemetryPricingUnit, TelemetryPricingUnitSchema, type TelemetryPricingUsageType, TelemetryPricingUsageTypeSchema, TelemetryServiceSchema, type TelemetryUnitPrice, TelemetryUnitPriceSchema, type TelemetryUsageItem, TelemetryUsageItemSchema, type UserFeedbackRequest, UserFeedbackRequestSchema, WorkflowTopologyCallSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema, WorkflowTopologyTransitionSchema, newerStudioVersion, projectWorkflowCalls, resolveStudioInterruptStatus, resolveStudioTimeRange, studioUpdateRunning, summarizeUserFeedback };
|
|
2761
|
+
export { ClearScoreResponseSchema, ClearUserFeedbackRequestSchema, type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, FEEDBACK_FILTERS, FeedbackReasonSchema, type FeedbackSummary, FeedbackSummarySchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, type KortyxWorkflowTopologyTransition, ReviewVerdictSchema, STUDIO_TIME_RANGES, type StudioCatalogsResponse, StudioCatalogsResponseSchema, type StudioChange, type StudioChangeResource, StudioChangeResourceSchema, StudioChangeSchema, type StudioContextResponse, StudioContextResponseSchema, type StudioDetailEvent, StudioDetailEventSchema, type StudioInterrupt, type StudioInterruptDetailResponse, StudioInterruptDetailResponseSchema, type StudioInterruptInteractionMode, StudioInterruptInteractionModeSchema, type StudioInterruptOption, StudioInterruptOptionSchema, StudioInterruptSchema, type StudioInterruptStatus, StudioInterruptStatusSchema, type StudioInterruptType, StudioInterruptTypeSchema, type StudioInterruptsResponse, StudioInterruptsResponseSchema, type StudioMetric, StudioMetricSchema, type StudioPricingSource, StudioPricingSourceSchema, type StudioPricingStatus, StudioPricingStatusSchema, type StudioRelease, StudioReleaseDeploymentSchema, StudioReleaseSchema, StudioReleaseVersionSchema, type StudioResumeOutcome, StudioResumeOutcomeSchema, type StudioReviewRequest, StudioReviewRequestSchema, type StudioRun, type StudioRunDetailResponse, StudioRunDetailResponseSchema, StudioRunSchema, type StudioRunStatus, StudioRunStatusSchema, type StudioRunsResponse, StudioRunsResponseSchema, type StudioScore, StudioScoreResponseSchema, StudioScoreSchema, type StudioSession, type StudioSessionDetailResponse, StudioSessionDetailResponseSchema, StudioSessionSchema, type StudioSessionsResponse, StudioSessionsResponseSchema, type StudioTimeRange, type StudioTimeRangeContext, StudioTimeRangeContextSchema, StudioTimeRangeQuerySchema, type StudioTimeRangeResolution, StudioTimeRangeSchema, type StudioTool, StudioToolSchema, type StudioUpdateOperation, StudioUpdateOperationSchema, type StudioUpdateSettings, StudioUpdateSettingsSchema, type StudioUpdateStatus, StudioUpdateStatusSchema, type StudioWorkflow, type StudioWorkflowCall, type StudioWorkflowHealth, StudioWorkflowHealthSchema, type StudioWorkflowInternalEdge, StudioWorkflowInternalEdgeSchema, type StudioWorkflowNode, StudioWorkflowNodeSchema, StudioWorkflowSchema, type StudioWorkflowTransition, StudioWorkflowTransitionSchema, type StudioWorkflowsResponse, StudioWorkflowsResponseSchema, TELEMETRY_EVENT_TYPES, type TelemetryEventBatch, type TelemetryEventBatchResponse, TelemetryEventBatchResponseSchema, TelemetryEventBatchSchema, TelemetryEventSchema, TelemetryEventTypeSchema, type TelemetryPricingHint, TelemetryPricingHintSchema, type TelemetryPricingLineItem, TelemetryPricingLineItemSchema, type TelemetryPricingSource, TelemetryPricingSourceSchema, type TelemetryPricingUnit, TelemetryPricingUnitSchema, type TelemetryPricingUsageType, TelemetryPricingUsageTypeSchema, TelemetryServiceSchema, type TelemetryUnitPrice, TelemetryUnitPriceSchema, type TelemetryUsageItem, TelemetryUsageItemSchema, ToolDiscoverySchema, ToolObservationSchema, ToolOutcomeSchema, type UserFeedbackRequest, UserFeedbackRequestSchema, type WorkflowTool, WorkflowToolSchema, WorkflowTopologyCallSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema, WorkflowTopologyTransitionSchema, newerStudioVersion, projectWorkflowCalls, resolveStudioInterruptStatus, resolveStudioTimeRange, studioUpdateRunning, summarizeUserFeedback };
|