@kortyx/telemetry-contracts 0.10.0 → 0.11.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 +14 -0
- package/dist/index.d.ts +103 -195
- package/dist/index.js +46 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -459,7 +459,10 @@ type StudioWorkflowCall = {
|
|
|
459
459
|
/** Logical calls are ordered by persisted sequence, independently within each branch. */
|
|
460
460
|
declare function projectWorkflowCalls(events: StudioDetailEvent[]): StudioWorkflowCall[];
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
/** Studio read API compatibility changes only when the wire protocol breaks. */
|
|
463
|
+
declare const STUDIO_API_PROTOCOL_VERSION = "1";
|
|
464
|
+
|
|
465
|
+
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.suspended", "workflow.resumed", "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"];
|
|
463
466
|
declare const TelemetryServiceSchema: z.ZodObject<{
|
|
464
467
|
name: z.ZodString;
|
|
465
468
|
deploymentRef: z.ZodOptional<z.ZodString>;
|
|
@@ -608,6 +611,8 @@ declare const TelemetryEventTypeSchema: z.ZodEnum<{
|
|
|
608
611
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
609
612
|
"run.cancelled": "run.cancelled";
|
|
610
613
|
"run.limit_reached": "run.limit_reached";
|
|
614
|
+
"workflow.suspended": "workflow.suspended";
|
|
615
|
+
"workflow.resumed": "workflow.resumed";
|
|
611
616
|
"workflow.transitioned": "workflow.transitioned";
|
|
612
617
|
"workflow.call.started": "workflow.call.started";
|
|
613
618
|
"workflow.call.suspended": "workflow.call.suspended";
|
|
@@ -670,6 +675,8 @@ declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
670
675
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
671
676
|
"run.cancelled": "run.cancelled";
|
|
672
677
|
"run.limit_reached": "run.limit_reached";
|
|
678
|
+
"workflow.suspended": "workflow.suspended";
|
|
679
|
+
"workflow.resumed": "workflow.resumed";
|
|
673
680
|
"workflow.transitioned": "workflow.transitioned";
|
|
674
681
|
"workflow.call.started": "workflow.call.started";
|
|
675
682
|
"workflow.call.suspended": "workflow.call.suspended";
|
|
@@ -735,6 +742,8 @@ declare const TelemetryEventBatchSchema: z.ZodObject<{
|
|
|
735
742
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
736
743
|
"run.cancelled": "run.cancelled";
|
|
737
744
|
"run.limit_reached": "run.limit_reached";
|
|
745
|
+
"workflow.suspended": "workflow.suspended";
|
|
746
|
+
"workflow.resumed": "workflow.resumed";
|
|
738
747
|
"workflow.transitioned": "workflow.transitioned";
|
|
739
748
|
"workflow.call.started": "workflow.call.started";
|
|
740
749
|
"workflow.call.suspended": "workflow.call.suspended";
|
|
@@ -1100,6 +1109,7 @@ declare const StudioInterruptTypeSchema: z.ZodEnum<{
|
|
|
1100
1109
|
choice: "choice";
|
|
1101
1110
|
"multi-choice": "multi-choice";
|
|
1102
1111
|
text: "text";
|
|
1112
|
+
structured: "structured";
|
|
1103
1113
|
}>;
|
|
1104
1114
|
declare const StudioInterruptInteractionModeSchema: z.ZodEnum<{
|
|
1105
1115
|
unknown: "unknown";
|
|
@@ -1111,7 +1121,8 @@ declare const StudioInterruptOptionSchema: z.ZodObject<{
|
|
|
1111
1121
|
id: z.ZodString;
|
|
1112
1122
|
label: z.ZodString;
|
|
1113
1123
|
description: z.ZodNullable<z.ZodString>;
|
|
1114
|
-
}, z.core.$
|
|
1124
|
+
}, z.core.$strip>;
|
|
1125
|
+
declare const StudioInterruptValueSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1115
1126
|
declare const StudioResumeOutcomeSchema: z.ZodEnum<{
|
|
1116
1127
|
cancelled: "cancelled";
|
|
1117
1128
|
resumed: "resumed";
|
|
@@ -1167,7 +1178,7 @@ declare const StudioMetricSchema: z.ZodObject<{
|
|
|
1167
1178
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1168
1179
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1169
1180
|
currency: z.ZodNullable<z.ZodString>;
|
|
1170
|
-
}, z.core.$
|
|
1181
|
+
}, z.core.$strip>;
|
|
1171
1182
|
declare const StudioRunSchema: z.ZodObject<{
|
|
1172
1183
|
id: z.ZodString;
|
|
1173
1184
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
@@ -1196,7 +1207,7 @@ declare const StudioRunSchema: z.ZodObject<{
|
|
|
1196
1207
|
workflowId: z.ZodString;
|
|
1197
1208
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1198
1209
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1199
|
-
}, z.core.$
|
|
1210
|
+
}, z.core.$strip>>;
|
|
1200
1211
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1201
1212
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1202
1213
|
transitionIds: z.ZodArray<z.ZodString>;
|
|
@@ -1237,7 +1248,7 @@ declare const StudioRunSchema: z.ZodObject<{
|
|
|
1237
1248
|
expired: "expired";
|
|
1238
1249
|
}>>>;
|
|
1239
1250
|
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1240
|
-
}, z.core.$
|
|
1251
|
+
}, z.core.$strip>;
|
|
1241
1252
|
declare const StudioSessionSchema: z.ZodObject<{
|
|
1242
1253
|
id: z.ZodString;
|
|
1243
1254
|
status: z.ZodEnum<{
|
|
@@ -1292,7 +1303,7 @@ declare const StudioSessionSchema: z.ZodObject<{
|
|
|
1292
1303
|
models: z.ZodArray<z.ZodString>;
|
|
1293
1304
|
tags: z.ZodArray<z.ZodString>;
|
|
1294
1305
|
environment: z.ZodString;
|
|
1295
|
-
}, z.core.$
|
|
1306
|
+
}, z.core.$strip>;
|
|
1296
1307
|
declare const StudioInterruptSchema: z.ZodObject<{
|
|
1297
1308
|
afterResponseCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
1298
1309
|
id: z.ZodString;
|
|
@@ -1308,6 +1319,7 @@ declare const StudioInterruptSchema: z.ZodObject<{
|
|
|
1308
1319
|
choice: "choice";
|
|
1309
1320
|
"multi-choice": "multi-choice";
|
|
1310
1321
|
text: "text";
|
|
1322
|
+
structured: "structured";
|
|
1311
1323
|
}>;
|
|
1312
1324
|
interactionMode: z.ZodEnum<{
|
|
1313
1325
|
unknown: "unknown";
|
|
@@ -1315,6 +1327,7 @@ declare const StudioInterruptSchema: z.ZodObject<{
|
|
|
1315
1327
|
"dynamic-picker": "dynamic-picker";
|
|
1316
1328
|
freeform: "freeform";
|
|
1317
1329
|
}>;
|
|
1330
|
+
contract: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1318
1331
|
schemaId: z.ZodNullable<z.ZodString>;
|
|
1319
1332
|
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1320
1333
|
createdAt: z.ZodString;
|
|
@@ -1322,18 +1335,21 @@ declare const StudioInterruptSchema: z.ZodObject<{
|
|
|
1322
1335
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1323
1336
|
question: z.ZodNullable<z.ZodString>;
|
|
1324
1337
|
contentCaptured: z.ZodBoolean;
|
|
1338
|
+
request: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1339
|
+
requestCaptured: z.ZodDefault<z.ZodBoolean>;
|
|
1325
1340
|
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1326
1341
|
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1327
1342
|
id: z.ZodString;
|
|
1328
1343
|
label: z.ZodString;
|
|
1329
1344
|
description: z.ZodNullable<z.ZodString>;
|
|
1330
|
-
}, z.core.$
|
|
1345
|
+
}, z.core.$strip>>>;
|
|
1331
1346
|
workflowId: z.ZodString;
|
|
1332
1347
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1333
1348
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
1334
1349
|
userId: z.ZodNullable<z.ZodString>;
|
|
1335
1350
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
1336
1351
|
response: z.ZodNullable<z.ZodString>;
|
|
1352
|
+
responseValue: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1337
1353
|
responseCaptured: z.ZodBoolean;
|
|
1338
1354
|
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1339
1355
|
cancelled: "cancelled";
|
|
@@ -1346,42 +1362,10 @@ declare const StudioInterruptSchema: z.ZodObject<{
|
|
|
1346
1362
|
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1347
1363
|
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1348
1364
|
environment: z.ZodString;
|
|
1349
|
-
}, z.core.$
|
|
1365
|
+
}, z.core.$strip>;
|
|
1350
1366
|
declare const StudioDetailEventSchema: z.ZodObject<{
|
|
1351
1367
|
id: z.ZodString;
|
|
1352
|
-
type: z.
|
|
1353
|
-
"span.started": "span.started";
|
|
1354
|
-
"span.ended": "span.ended";
|
|
1355
|
-
"span.failed": "span.failed";
|
|
1356
|
-
"error.reported": "error.reported";
|
|
1357
|
-
"generation.completed": "generation.completed";
|
|
1358
|
-
"tool.started": "tool.started";
|
|
1359
|
-
"tool.completed": "tool.completed";
|
|
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";
|
|
1366
|
-
"response.completed": "response.completed";
|
|
1367
|
-
"interrupt.created": "interrupt.created";
|
|
1368
|
-
"interrupt.resolved": "interrupt.resolved";
|
|
1369
|
-
"interrupt.expired": "interrupt.expired";
|
|
1370
|
-
"interrupt.cancelled": "interrupt.cancelled";
|
|
1371
|
-
"run.cancelled": "run.cancelled";
|
|
1372
|
-
"run.limit_reached": "run.limit_reached";
|
|
1373
|
-
"workflow.transitioned": "workflow.transitioned";
|
|
1374
|
-
"workflow.call.started": "workflow.call.started";
|
|
1375
|
-
"workflow.call.suspended": "workflow.call.suspended";
|
|
1376
|
-
"workflow.call.resumed": "workflow.call.resumed";
|
|
1377
|
-
"workflow.call.completed": "workflow.call.completed";
|
|
1378
|
-
"workflow.call.failed": "workflow.call.failed";
|
|
1379
|
-
"workflow.call.reused": "workflow.call.reused";
|
|
1380
|
-
"workflow.call.restored": "workflow.call.restored";
|
|
1381
|
-
"session.checkpointed": "session.checkpointed";
|
|
1382
|
-
"session.forked": "session.forked";
|
|
1383
|
-
"session.rolled_back": "session.rolled_back";
|
|
1384
|
-
}>;
|
|
1368
|
+
type: z.ZodString;
|
|
1385
1369
|
occurredAt: z.ZodString;
|
|
1386
1370
|
receivedAt: z.ZodString;
|
|
1387
1371
|
environment: z.ZodString;
|
|
@@ -1400,7 +1384,7 @@ declare const StudioDetailEventSchema: z.ZodObject<{
|
|
|
1400
1384
|
tags: z.ZodArray<z.ZodString>;
|
|
1401
1385
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1402
1386
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1403
|
-
}, z.core.$
|
|
1387
|
+
}, z.core.$strip>;
|
|
1404
1388
|
declare const StudioWorkflowNodeSchema: z.ZodObject<{
|
|
1405
1389
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1406
1390
|
name: z.ZodString;
|
|
@@ -1459,14 +1443,14 @@ declare const StudioWorkflowNodeSchema: z.ZodObject<{
|
|
|
1459
1443
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1460
1444
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1461
1445
|
currency: z.ZodNullable<z.ZodString>;
|
|
1462
|
-
}, z.core.$
|
|
1463
|
-
}, z.core.$
|
|
1446
|
+
}, z.core.$strip>;
|
|
1447
|
+
}, z.core.$strip>;
|
|
1464
1448
|
declare const StudioWorkflowInternalEdgeSchema: z.ZodObject<{
|
|
1465
1449
|
id: z.ZodString;
|
|
1466
1450
|
source: z.ZodString;
|
|
1467
1451
|
target: z.ZodString;
|
|
1468
1452
|
condition: z.ZodNullable<z.ZodString>;
|
|
1469
|
-
}, z.core.$
|
|
1453
|
+
}, z.core.$strip>;
|
|
1470
1454
|
declare const StudioWorkflowTransitionSchema: z.ZodObject<{
|
|
1471
1455
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1472
1456
|
call: "call";
|
|
@@ -1481,7 +1465,7 @@ declare const StudioWorkflowTransitionSchema: z.ZodObject<{
|
|
|
1481
1465
|
successRate: z.ZodNullable<z.ZodNumber>;
|
|
1482
1466
|
medianDurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1483
1467
|
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
1484
|
-
}, z.core.$
|
|
1468
|
+
}, z.core.$strip>;
|
|
1485
1469
|
declare const StudioWorkflowSchema: z.ZodObject<{
|
|
1486
1470
|
id: z.ZodString;
|
|
1487
1471
|
name: z.ZodString;
|
|
@@ -1509,7 +1493,7 @@ declare const StudioWorkflowSchema: z.ZodObject<{
|
|
|
1509
1493
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1510
1494
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1511
1495
|
currency: z.ZodNullable<z.ZodString>;
|
|
1512
|
-
}, z.core.$
|
|
1496
|
+
}, z.core.$strip>;
|
|
1513
1497
|
nodes: z.ZodArray<z.ZodObject<{
|
|
1514
1498
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1515
1499
|
name: z.ZodString;
|
|
@@ -1568,15 +1552,15 @@ declare const StudioWorkflowSchema: z.ZodObject<{
|
|
|
1568
1552
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1569
1553
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1570
1554
|
currency: z.ZodNullable<z.ZodString>;
|
|
1571
|
-
}, z.core.$
|
|
1572
|
-
}, z.core.$
|
|
1555
|
+
}, z.core.$strip>;
|
|
1556
|
+
}, z.core.$strip>>;
|
|
1573
1557
|
internalEdges: z.ZodArray<z.ZodObject<{
|
|
1574
1558
|
id: z.ZodString;
|
|
1575
1559
|
source: z.ZodString;
|
|
1576
1560
|
target: z.ZodString;
|
|
1577
1561
|
condition: z.ZodNullable<z.ZodString>;
|
|
1578
|
-
}, z.core.$
|
|
1579
|
-
}, z.core.$
|
|
1562
|
+
}, z.core.$strip>>;
|
|
1563
|
+
}, z.core.$strip>;
|
|
1580
1564
|
declare const StudioRunsResponseSchema: z.ZodObject<{
|
|
1581
1565
|
runs: z.ZodArray<z.ZodObject<{
|
|
1582
1566
|
id: z.ZodString;
|
|
@@ -1606,7 +1590,7 @@ declare const StudioRunsResponseSchema: z.ZodObject<{
|
|
|
1606
1590
|
workflowId: z.ZodString;
|
|
1607
1591
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1608
1592
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1609
|
-
}, z.core.$
|
|
1593
|
+
}, z.core.$strip>>;
|
|
1610
1594
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1611
1595
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1612
1596
|
transitionIds: z.ZodArray<z.ZodString>;
|
|
@@ -1647,9 +1631,9 @@ declare const StudioRunsResponseSchema: z.ZodObject<{
|
|
|
1647
1631
|
expired: "expired";
|
|
1648
1632
|
}>>>;
|
|
1649
1633
|
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1650
|
-
}, z.core.$
|
|
1634
|
+
}, z.core.$strip>>;
|
|
1651
1635
|
totalCount: z.ZodNumber;
|
|
1652
|
-
}, z.core.$
|
|
1636
|
+
}, z.core.$strip>;
|
|
1653
1637
|
declare const StudioSessionsResponseSchema: z.ZodObject<{
|
|
1654
1638
|
sessions: z.ZodArray<z.ZodObject<{
|
|
1655
1639
|
id: z.ZodString;
|
|
@@ -1705,9 +1689,9 @@ declare const StudioSessionsResponseSchema: z.ZodObject<{
|
|
|
1705
1689
|
models: z.ZodArray<z.ZodString>;
|
|
1706
1690
|
tags: z.ZodArray<z.ZodString>;
|
|
1707
1691
|
environment: z.ZodString;
|
|
1708
|
-
}, z.core.$
|
|
1692
|
+
}, z.core.$strip>>;
|
|
1709
1693
|
totalCount: z.ZodNumber;
|
|
1710
|
-
}, z.core.$
|
|
1694
|
+
}, z.core.$strip>;
|
|
1711
1695
|
declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
1712
1696
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
1713
1697
|
afterResponseCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1724,6 +1708,7 @@ declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
|
1724
1708
|
choice: "choice";
|
|
1725
1709
|
"multi-choice": "multi-choice";
|
|
1726
1710
|
text: "text";
|
|
1711
|
+
structured: "structured";
|
|
1727
1712
|
}>;
|
|
1728
1713
|
interactionMode: z.ZodEnum<{
|
|
1729
1714
|
unknown: "unknown";
|
|
@@ -1731,6 +1716,7 @@ declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
|
1731
1716
|
"dynamic-picker": "dynamic-picker";
|
|
1732
1717
|
freeform: "freeform";
|
|
1733
1718
|
}>;
|
|
1719
|
+
contract: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1734
1720
|
schemaId: z.ZodNullable<z.ZodString>;
|
|
1735
1721
|
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1736
1722
|
createdAt: z.ZodString;
|
|
@@ -1738,18 +1724,21 @@ declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
|
1738
1724
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1739
1725
|
question: z.ZodNullable<z.ZodString>;
|
|
1740
1726
|
contentCaptured: z.ZodBoolean;
|
|
1727
|
+
request: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1728
|
+
requestCaptured: z.ZodDefault<z.ZodBoolean>;
|
|
1741
1729
|
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1742
1730
|
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1743
1731
|
id: z.ZodString;
|
|
1744
1732
|
label: z.ZodString;
|
|
1745
1733
|
description: z.ZodNullable<z.ZodString>;
|
|
1746
|
-
}, z.core.$
|
|
1734
|
+
}, z.core.$strip>>>;
|
|
1747
1735
|
workflowId: z.ZodString;
|
|
1748
1736
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1749
1737
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
1750
1738
|
userId: z.ZodNullable<z.ZodString>;
|
|
1751
1739
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
1752
1740
|
response: z.ZodNullable<z.ZodString>;
|
|
1741
|
+
responseValue: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1753
1742
|
responseCaptured: z.ZodBoolean;
|
|
1754
1743
|
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1755
1744
|
cancelled: "cancelled";
|
|
@@ -1762,9 +1751,9 @@ declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
|
1762
1751
|
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1763
1752
|
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1764
1753
|
environment: z.ZodString;
|
|
1765
|
-
}, z.core.$
|
|
1754
|
+
}, z.core.$strip>>;
|
|
1766
1755
|
totalCount: z.ZodNumber;
|
|
1767
|
-
}, z.core.$
|
|
1756
|
+
}, z.core.$strip>;
|
|
1768
1757
|
declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
1769
1758
|
run: z.ZodObject<{
|
|
1770
1759
|
id: z.ZodString;
|
|
@@ -1794,7 +1783,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
1794
1783
|
workflowId: z.ZodString;
|
|
1795
1784
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1796
1785
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1797
|
-
}, z.core.$
|
|
1786
|
+
}, z.core.$strip>>;
|
|
1798
1787
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1799
1788
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1800
1789
|
transitionIds: z.ZodArray<z.ZodString>;
|
|
@@ -1835,7 +1824,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
1835
1824
|
expired: "expired";
|
|
1836
1825
|
}>>>;
|
|
1837
1826
|
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1838
|
-
}, z.core.$
|
|
1827
|
+
}, z.core.$strip>;
|
|
1839
1828
|
scores: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1840
1829
|
id: z.ZodString;
|
|
1841
1830
|
target: z.ZodObject<{
|
|
@@ -1919,39 +1908,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
1919
1908
|
reviewActorId: z.ZodOptional<z.ZodString>;
|
|
1920
1909
|
events: z.ZodArray<z.ZodObject<{
|
|
1921
1910
|
id: z.ZodString;
|
|
1922
|
-
type: z.
|
|
1923
|
-
"span.started": "span.started";
|
|
1924
|
-
"span.ended": "span.ended";
|
|
1925
|
-
"span.failed": "span.failed";
|
|
1926
|
-
"error.reported": "error.reported";
|
|
1927
|
-
"generation.completed": "generation.completed";
|
|
1928
|
-
"tool.started": "tool.started";
|
|
1929
|
-
"tool.completed": "tool.completed";
|
|
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";
|
|
1936
|
-
"response.completed": "response.completed";
|
|
1937
|
-
"interrupt.created": "interrupt.created";
|
|
1938
|
-
"interrupt.resolved": "interrupt.resolved";
|
|
1939
|
-
"interrupt.expired": "interrupt.expired";
|
|
1940
|
-
"interrupt.cancelled": "interrupt.cancelled";
|
|
1941
|
-
"run.cancelled": "run.cancelled";
|
|
1942
|
-
"run.limit_reached": "run.limit_reached";
|
|
1943
|
-
"workflow.transitioned": "workflow.transitioned";
|
|
1944
|
-
"workflow.call.started": "workflow.call.started";
|
|
1945
|
-
"workflow.call.suspended": "workflow.call.suspended";
|
|
1946
|
-
"workflow.call.resumed": "workflow.call.resumed";
|
|
1947
|
-
"workflow.call.completed": "workflow.call.completed";
|
|
1948
|
-
"workflow.call.failed": "workflow.call.failed";
|
|
1949
|
-
"workflow.call.reused": "workflow.call.reused";
|
|
1950
|
-
"workflow.call.restored": "workflow.call.restored";
|
|
1951
|
-
"session.checkpointed": "session.checkpointed";
|
|
1952
|
-
"session.forked": "session.forked";
|
|
1953
|
-
"session.rolled_back": "session.rolled_back";
|
|
1954
|
-
}>;
|
|
1911
|
+
type: z.ZodString;
|
|
1955
1912
|
occurredAt: z.ZodString;
|
|
1956
1913
|
receivedAt: z.ZodString;
|
|
1957
1914
|
environment: z.ZodString;
|
|
@@ -1970,7 +1927,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
1970
1927
|
tags: z.ZodArray<z.ZodString>;
|
|
1971
1928
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1972
1929
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1973
|
-
}, z.core.$
|
|
1930
|
+
}, z.core.$strip>>;
|
|
1974
1931
|
session: z.ZodNullable<z.ZodObject<{
|
|
1975
1932
|
id: z.ZodString;
|
|
1976
1933
|
status: z.ZodEnum<{
|
|
@@ -2025,7 +1982,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
2025
1982
|
models: z.ZodArray<z.ZodString>;
|
|
2026
1983
|
tags: z.ZodArray<z.ZodString>;
|
|
2027
1984
|
environment: z.ZodString;
|
|
2028
|
-
}, z.core.$
|
|
1985
|
+
}, z.core.$strip>>;
|
|
2029
1986
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
2030
1987
|
afterResponseCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
2031
1988
|
id: z.ZodString;
|
|
@@ -2041,6 +1998,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
2041
1998
|
choice: "choice";
|
|
2042
1999
|
"multi-choice": "multi-choice";
|
|
2043
2000
|
text: "text";
|
|
2001
|
+
structured: "structured";
|
|
2044
2002
|
}>;
|
|
2045
2003
|
interactionMode: z.ZodEnum<{
|
|
2046
2004
|
unknown: "unknown";
|
|
@@ -2048,6 +2006,7 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
2048
2006
|
"dynamic-picker": "dynamic-picker";
|
|
2049
2007
|
freeform: "freeform";
|
|
2050
2008
|
}>;
|
|
2009
|
+
contract: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2051
2010
|
schemaId: z.ZodNullable<z.ZodString>;
|
|
2052
2011
|
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
2053
2012
|
createdAt: z.ZodString;
|
|
@@ -2055,18 +2014,21 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
2055
2014
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2056
2015
|
question: z.ZodNullable<z.ZodString>;
|
|
2057
2016
|
contentCaptured: z.ZodBoolean;
|
|
2017
|
+
request: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2018
|
+
requestCaptured: z.ZodDefault<z.ZodBoolean>;
|
|
2058
2019
|
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
2059
2020
|
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2060
2021
|
id: z.ZodString;
|
|
2061
2022
|
label: z.ZodString;
|
|
2062
2023
|
description: z.ZodNullable<z.ZodString>;
|
|
2063
|
-
}, z.core.$
|
|
2024
|
+
}, z.core.$strip>>>;
|
|
2064
2025
|
workflowId: z.ZodString;
|
|
2065
2026
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
2066
2027
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
2067
2028
|
userId: z.ZodNullable<z.ZodString>;
|
|
2068
2029
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
2069
2030
|
response: z.ZodNullable<z.ZodString>;
|
|
2031
|
+
responseValue: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2070
2032
|
responseCaptured: z.ZodBoolean;
|
|
2071
2033
|
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
2072
2034
|
cancelled: "cancelled";
|
|
@@ -2079,9 +2041,9 @@ declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
|
2079
2041
|
resumeToken: z.ZodNullable<z.ZodString>;
|
|
2080
2042
|
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
2081
2043
|
environment: z.ZodString;
|
|
2082
|
-
}, z.core.$
|
|
2044
|
+
}, z.core.$strip>>;
|
|
2083
2045
|
updatedAt: z.ZodString;
|
|
2084
|
-
}, z.core.$
|
|
2046
|
+
}, z.core.$strip>;
|
|
2085
2047
|
declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
2086
2048
|
session: z.ZodObject<{
|
|
2087
2049
|
id: z.ZodString;
|
|
@@ -2137,7 +2099,7 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2137
2099
|
models: z.ZodArray<z.ZodString>;
|
|
2138
2100
|
tags: z.ZodArray<z.ZodString>;
|
|
2139
2101
|
environment: z.ZodString;
|
|
2140
|
-
}, z.core.$
|
|
2102
|
+
}, z.core.$strip>;
|
|
2141
2103
|
runs: z.ZodArray<z.ZodObject<{
|
|
2142
2104
|
id: z.ZodString;
|
|
2143
2105
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
@@ -2166,7 +2128,7 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2166
2128
|
workflowId: z.ZodString;
|
|
2167
2129
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
2168
2130
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
2169
|
-
}, z.core.$
|
|
2131
|
+
}, z.core.$strip>>;
|
|
2170
2132
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
2171
2133
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
2172
2134
|
transitionIds: z.ZodArray<z.ZodString>;
|
|
@@ -2207,42 +2169,10 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2207
2169
|
expired: "expired";
|
|
2208
2170
|
}>>>;
|
|
2209
2171
|
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2210
|
-
}, z.core.$
|
|
2172
|
+
}, z.core.$strip>>;
|
|
2211
2173
|
events: z.ZodArray<z.ZodObject<{
|
|
2212
2174
|
id: z.ZodString;
|
|
2213
|
-
type: z.
|
|
2214
|
-
"span.started": "span.started";
|
|
2215
|
-
"span.ended": "span.ended";
|
|
2216
|
-
"span.failed": "span.failed";
|
|
2217
|
-
"error.reported": "error.reported";
|
|
2218
|
-
"generation.completed": "generation.completed";
|
|
2219
|
-
"tool.started": "tool.started";
|
|
2220
|
-
"tool.completed": "tool.completed";
|
|
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";
|
|
2227
|
-
"response.completed": "response.completed";
|
|
2228
|
-
"interrupt.created": "interrupt.created";
|
|
2229
|
-
"interrupt.resolved": "interrupt.resolved";
|
|
2230
|
-
"interrupt.expired": "interrupt.expired";
|
|
2231
|
-
"interrupt.cancelled": "interrupt.cancelled";
|
|
2232
|
-
"run.cancelled": "run.cancelled";
|
|
2233
|
-
"run.limit_reached": "run.limit_reached";
|
|
2234
|
-
"workflow.transitioned": "workflow.transitioned";
|
|
2235
|
-
"workflow.call.started": "workflow.call.started";
|
|
2236
|
-
"workflow.call.suspended": "workflow.call.suspended";
|
|
2237
|
-
"workflow.call.resumed": "workflow.call.resumed";
|
|
2238
|
-
"workflow.call.completed": "workflow.call.completed";
|
|
2239
|
-
"workflow.call.failed": "workflow.call.failed";
|
|
2240
|
-
"workflow.call.reused": "workflow.call.reused";
|
|
2241
|
-
"workflow.call.restored": "workflow.call.restored";
|
|
2242
|
-
"session.checkpointed": "session.checkpointed";
|
|
2243
|
-
"session.forked": "session.forked";
|
|
2244
|
-
"session.rolled_back": "session.rolled_back";
|
|
2245
|
-
}>;
|
|
2175
|
+
type: z.ZodString;
|
|
2246
2176
|
occurredAt: z.ZodString;
|
|
2247
2177
|
receivedAt: z.ZodString;
|
|
2248
2178
|
environment: z.ZodString;
|
|
@@ -2261,7 +2191,7 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2261
2191
|
tags: z.ZodArray<z.ZodString>;
|
|
2262
2192
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2263
2193
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2264
|
-
}, z.core.$
|
|
2194
|
+
}, z.core.$strip>>;
|
|
2265
2195
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
2266
2196
|
afterResponseCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
2267
2197
|
id: z.ZodString;
|
|
@@ -2277,6 +2207,7 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2277
2207
|
choice: "choice";
|
|
2278
2208
|
"multi-choice": "multi-choice";
|
|
2279
2209
|
text: "text";
|
|
2210
|
+
structured: "structured";
|
|
2280
2211
|
}>;
|
|
2281
2212
|
interactionMode: z.ZodEnum<{
|
|
2282
2213
|
unknown: "unknown";
|
|
@@ -2284,6 +2215,7 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2284
2215
|
"dynamic-picker": "dynamic-picker";
|
|
2285
2216
|
freeform: "freeform";
|
|
2286
2217
|
}>;
|
|
2218
|
+
contract: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2287
2219
|
schemaId: z.ZodNullable<z.ZodString>;
|
|
2288
2220
|
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
2289
2221
|
createdAt: z.ZodString;
|
|
@@ -2291,18 +2223,21 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2291
2223
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2292
2224
|
question: z.ZodNullable<z.ZodString>;
|
|
2293
2225
|
contentCaptured: z.ZodBoolean;
|
|
2226
|
+
request: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2227
|
+
requestCaptured: z.ZodDefault<z.ZodBoolean>;
|
|
2294
2228
|
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
2295
2229
|
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2296
2230
|
id: z.ZodString;
|
|
2297
2231
|
label: z.ZodString;
|
|
2298
2232
|
description: z.ZodNullable<z.ZodString>;
|
|
2299
|
-
}, z.core.$
|
|
2233
|
+
}, z.core.$strip>>>;
|
|
2300
2234
|
workflowId: z.ZodString;
|
|
2301
2235
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
2302
2236
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
2303
2237
|
userId: z.ZodNullable<z.ZodString>;
|
|
2304
2238
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
2305
2239
|
response: z.ZodNullable<z.ZodString>;
|
|
2240
|
+
responseValue: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2306
2241
|
responseCaptured: z.ZodBoolean;
|
|
2307
2242
|
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
2308
2243
|
cancelled: "cancelled";
|
|
@@ -2315,9 +2250,9 @@ declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
|
2315
2250
|
resumeToken: z.ZodNullable<z.ZodString>;
|
|
2316
2251
|
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
2317
2252
|
environment: z.ZodString;
|
|
2318
|
-
}, z.core.$
|
|
2253
|
+
}, z.core.$strip>>;
|
|
2319
2254
|
updatedAt: z.ZodString;
|
|
2320
|
-
}, z.core.$
|
|
2255
|
+
}, z.core.$strip>;
|
|
2321
2256
|
declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
2322
2257
|
interrupt: z.ZodObject<{
|
|
2323
2258
|
afterResponseCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2334,6 +2269,7 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2334
2269
|
choice: "choice";
|
|
2335
2270
|
"multi-choice": "multi-choice";
|
|
2336
2271
|
text: "text";
|
|
2272
|
+
structured: "structured";
|
|
2337
2273
|
}>;
|
|
2338
2274
|
interactionMode: z.ZodEnum<{
|
|
2339
2275
|
unknown: "unknown";
|
|
@@ -2341,6 +2277,7 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2341
2277
|
"dynamic-picker": "dynamic-picker";
|
|
2342
2278
|
freeform: "freeform";
|
|
2343
2279
|
}>;
|
|
2280
|
+
contract: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2344
2281
|
schemaId: z.ZodNullable<z.ZodString>;
|
|
2345
2282
|
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
2346
2283
|
createdAt: z.ZodString;
|
|
@@ -2348,18 +2285,21 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2348
2285
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2349
2286
|
question: z.ZodNullable<z.ZodString>;
|
|
2350
2287
|
contentCaptured: z.ZodBoolean;
|
|
2288
|
+
request: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2289
|
+
requestCaptured: z.ZodDefault<z.ZodBoolean>;
|
|
2351
2290
|
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
2352
2291
|
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2353
2292
|
id: z.ZodString;
|
|
2354
2293
|
label: z.ZodString;
|
|
2355
2294
|
description: z.ZodNullable<z.ZodString>;
|
|
2356
|
-
}, z.core.$
|
|
2295
|
+
}, z.core.$strip>>>;
|
|
2357
2296
|
workflowId: z.ZodString;
|
|
2358
2297
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
2359
2298
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
2360
2299
|
userId: z.ZodNullable<z.ZodString>;
|
|
2361
2300
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
2362
2301
|
response: z.ZodNullable<z.ZodString>;
|
|
2302
|
+
responseValue: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2363
2303
|
responseCaptured: z.ZodBoolean;
|
|
2364
2304
|
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
2365
2305
|
cancelled: "cancelled";
|
|
@@ -2372,42 +2312,10 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2372
2312
|
resumeToken: z.ZodNullable<z.ZodString>;
|
|
2373
2313
|
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
2374
2314
|
environment: z.ZodString;
|
|
2375
|
-
}, z.core.$
|
|
2315
|
+
}, z.core.$strip>;
|
|
2376
2316
|
events: z.ZodArray<z.ZodObject<{
|
|
2377
2317
|
id: z.ZodString;
|
|
2378
|
-
type: z.
|
|
2379
|
-
"span.started": "span.started";
|
|
2380
|
-
"span.ended": "span.ended";
|
|
2381
|
-
"span.failed": "span.failed";
|
|
2382
|
-
"error.reported": "error.reported";
|
|
2383
|
-
"generation.completed": "generation.completed";
|
|
2384
|
-
"tool.started": "tool.started";
|
|
2385
|
-
"tool.completed": "tool.completed";
|
|
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";
|
|
2392
|
-
"response.completed": "response.completed";
|
|
2393
|
-
"interrupt.created": "interrupt.created";
|
|
2394
|
-
"interrupt.resolved": "interrupt.resolved";
|
|
2395
|
-
"interrupt.expired": "interrupt.expired";
|
|
2396
|
-
"interrupt.cancelled": "interrupt.cancelled";
|
|
2397
|
-
"run.cancelled": "run.cancelled";
|
|
2398
|
-
"run.limit_reached": "run.limit_reached";
|
|
2399
|
-
"workflow.transitioned": "workflow.transitioned";
|
|
2400
|
-
"workflow.call.started": "workflow.call.started";
|
|
2401
|
-
"workflow.call.suspended": "workflow.call.suspended";
|
|
2402
|
-
"workflow.call.resumed": "workflow.call.resumed";
|
|
2403
|
-
"workflow.call.completed": "workflow.call.completed";
|
|
2404
|
-
"workflow.call.failed": "workflow.call.failed";
|
|
2405
|
-
"workflow.call.reused": "workflow.call.reused";
|
|
2406
|
-
"workflow.call.restored": "workflow.call.restored";
|
|
2407
|
-
"session.checkpointed": "session.checkpointed";
|
|
2408
|
-
"session.forked": "session.forked";
|
|
2409
|
-
"session.rolled_back": "session.rolled_back";
|
|
2410
|
-
}>;
|
|
2318
|
+
type: z.ZodString;
|
|
2411
2319
|
occurredAt: z.ZodString;
|
|
2412
2320
|
receivedAt: z.ZodString;
|
|
2413
2321
|
environment: z.ZodString;
|
|
@@ -2426,7 +2334,7 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2426
2334
|
tags: z.ZodArray<z.ZodString>;
|
|
2427
2335
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2428
2336
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2429
|
-
}, z.core.$
|
|
2337
|
+
}, z.core.$strip>>;
|
|
2430
2338
|
run: z.ZodNullable<z.ZodObject<{
|
|
2431
2339
|
id: z.ZodString;
|
|
2432
2340
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
@@ -2455,7 +2363,7 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2455
2363
|
workflowId: z.ZodString;
|
|
2456
2364
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
2457
2365
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
2458
|
-
}, z.core.$
|
|
2366
|
+
}, z.core.$strip>>;
|
|
2459
2367
|
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
2460
2368
|
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
2461
2369
|
transitionIds: z.ZodArray<z.ZodString>;
|
|
@@ -2496,7 +2404,7 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2496
2404
|
expired: "expired";
|
|
2497
2405
|
}>>>;
|
|
2498
2406
|
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2499
|
-
}, z.core.$
|
|
2407
|
+
}, z.core.$strip>>;
|
|
2500
2408
|
session: z.ZodNullable<z.ZodObject<{
|
|
2501
2409
|
id: z.ZodString;
|
|
2502
2410
|
status: z.ZodEnum<{
|
|
@@ -2551,9 +2459,9 @@ declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
|
2551
2459
|
models: z.ZodArray<z.ZodString>;
|
|
2552
2460
|
tags: z.ZodArray<z.ZodString>;
|
|
2553
2461
|
environment: z.ZodString;
|
|
2554
|
-
}, z.core.$
|
|
2462
|
+
}, z.core.$strip>>;
|
|
2555
2463
|
updatedAt: z.ZodString;
|
|
2556
|
-
}, z.core.$
|
|
2464
|
+
}, z.core.$strip>;
|
|
2557
2465
|
declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
2558
2466
|
workflows: z.ZodArray<z.ZodObject<{
|
|
2559
2467
|
id: z.ZodString;
|
|
@@ -2582,7 +2490,7 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2582
2490
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
2583
2491
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
2584
2492
|
currency: z.ZodNullable<z.ZodString>;
|
|
2585
|
-
}, z.core.$
|
|
2493
|
+
}, z.core.$strip>;
|
|
2586
2494
|
nodes: z.ZodArray<z.ZodObject<{
|
|
2587
2495
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2588
2496
|
name: z.ZodString;
|
|
@@ -2641,15 +2549,15 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2641
2549
|
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
2642
2550
|
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
2643
2551
|
currency: z.ZodNullable<z.ZodString>;
|
|
2644
|
-
}, z.core.$
|
|
2645
|
-
}, z.core.$
|
|
2552
|
+
}, z.core.$strip>;
|
|
2553
|
+
}, z.core.$strip>>;
|
|
2646
2554
|
internalEdges: z.ZodArray<z.ZodObject<{
|
|
2647
2555
|
id: z.ZodString;
|
|
2648
2556
|
source: z.ZodString;
|
|
2649
2557
|
target: z.ZodString;
|
|
2650
2558
|
condition: z.ZodNullable<z.ZodString>;
|
|
2651
|
-
}, z.core.$
|
|
2652
|
-
}, z.core.$
|
|
2559
|
+
}, z.core.$strip>>;
|
|
2560
|
+
}, z.core.$strip>>;
|
|
2653
2561
|
observedCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2654
2562
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2655
2563
|
call: "call";
|
|
@@ -2667,7 +2575,7 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2667
2575
|
runId: z.ZodString;
|
|
2668
2576
|
invocationId: z.ZodString;
|
|
2669
2577
|
branchId: z.ZodString;
|
|
2670
|
-
}, z.core.$
|
|
2578
|
+
}, z.core.$strip>>>;
|
|
2671
2579
|
transitions: z.ZodArray<z.ZodObject<{
|
|
2672
2580
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2673
2581
|
call: "call";
|
|
@@ -2682,7 +2590,7 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2682
2590
|
successRate: z.ZodNullable<z.ZodNumber>;
|
|
2683
2591
|
medianDurationMs: z.ZodNullable<z.ZodNumber>;
|
|
2684
2592
|
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
2685
|
-
}, z.core.$
|
|
2593
|
+
}, z.core.$strip>>;
|
|
2686
2594
|
cohort: z.ZodObject<{
|
|
2687
2595
|
range: z.ZodEnum<{
|
|
2688
2596
|
"Last hour": "Last hour";
|
|
@@ -2696,22 +2604,22 @@ declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
|
2696
2604
|
startedBefore: z.ZodNullable<z.ZodString>;
|
|
2697
2605
|
workflowId: z.ZodNullable<z.ZodString>;
|
|
2698
2606
|
version: z.ZodNullable<z.ZodString>;
|
|
2699
|
-
}, z.core.$
|
|
2700
|
-
}, z.core.$
|
|
2607
|
+
}, z.core.$strip>;
|
|
2608
|
+
}, z.core.$strip>;
|
|
2701
2609
|
declare const StudioCatalogsResponseSchema: z.ZodObject<{
|
|
2702
2610
|
environments: z.ZodArray<z.ZodString>;
|
|
2703
2611
|
providers: z.ZodArray<z.ZodString>;
|
|
2704
2612
|
models: z.ZodArray<z.ZodString>;
|
|
2705
2613
|
workflows: z.ZodArray<z.ZodString>;
|
|
2706
2614
|
tags: z.ZodArray<z.ZodString>;
|
|
2707
|
-
}, z.core.$
|
|
2615
|
+
}, z.core.$strip>;
|
|
2708
2616
|
declare const StudioContextResponseSchema: z.ZodObject<{
|
|
2709
2617
|
organization: z.ZodObject<{
|
|
2710
2618
|
name: z.ZodString;
|
|
2711
|
-
}, z.core.$
|
|
2619
|
+
}, z.core.$strip>;
|
|
2712
2620
|
project: z.ZodObject<{
|
|
2713
2621
|
name: z.ZodString;
|
|
2714
|
-
}, z.core.$
|
|
2622
|
+
}, z.core.$strip>;
|
|
2715
2623
|
environments: z.ZodArray<z.ZodString>;
|
|
2716
2624
|
apiKey: z.ZodObject<{
|
|
2717
2625
|
mode: z.ZodEnum<{
|
|
@@ -2719,13 +2627,13 @@ declare const StudioContextResponseSchema: z.ZodObject<{
|
|
|
2719
2627
|
live: "live";
|
|
2720
2628
|
}>;
|
|
2721
2629
|
scopes: z.ZodArray<z.ZodString>;
|
|
2722
|
-
}, z.core.$
|
|
2630
|
+
}, z.core.$strip>;
|
|
2723
2631
|
api: z.ZodObject<{
|
|
2724
2632
|
status: z.ZodLiteral<"ok">;
|
|
2725
2633
|
service: z.ZodLiteral<"kortyx-api">;
|
|
2726
2634
|
version: z.ZodString;
|
|
2727
|
-
}, z.core.$
|
|
2728
|
-
}, z.core.$
|
|
2635
|
+
}, z.core.$strip>;
|
|
2636
|
+
}, z.core.$strip>;
|
|
2729
2637
|
type StudioRunStatus = z.infer<typeof StudioRunStatusSchema>;
|
|
2730
2638
|
type StudioTimeRange = z.infer<typeof StudioTimeRangeSchema>;
|
|
2731
2639
|
type StudioTimeRangeContext = z.infer<typeof StudioTimeRangeContextSchema>;
|
|
@@ -2758,4 +2666,4 @@ type StudioWorkflowsResponse = z.infer<typeof StudioWorkflowsResponseSchema>;
|
|
|
2758
2666
|
type StudioCatalogsResponse = z.infer<typeof StudioCatalogsResponseSchema>;
|
|
2759
2667
|
type StudioContextResponse = z.infer<typeof StudioContextResponseSchema>;
|
|
2760
2668
|
|
|
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 };
|
|
2669
|
+
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_API_PROTOCOL_VERSION, 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, StudioInterruptValueSchema, 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 };
|