@kortyx/telemetry-contracts 0.1.0 → 0.3.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 +25 -0
- package/LICENSE +51 -43
- package/dist/index.d.ts +1849 -2
- package/dist/index.js +710 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type StudioWorkflowCall = {
|
|
4
|
+
id: string;
|
|
5
|
+
invocationId: string;
|
|
6
|
+
branchId: string;
|
|
7
|
+
parentInvocationId: string | null;
|
|
8
|
+
callId: string;
|
|
9
|
+
callerNodeId: string;
|
|
10
|
+
callerNodeExecutionId: string;
|
|
11
|
+
sourceWorkflowId: string;
|
|
12
|
+
targetWorkflowId: string;
|
|
13
|
+
targetVersion: string | null;
|
|
14
|
+
status: "running" | "interrupted" | "completed" | "failed" | "incomplete" | "cancelled";
|
|
15
|
+
startedAt: string;
|
|
16
|
+
endedAt: string | null;
|
|
17
|
+
activeMs: number;
|
|
18
|
+
waitMs: number;
|
|
19
|
+
attempts: number;
|
|
20
|
+
reused: number;
|
|
21
|
+
inherited: boolean;
|
|
22
|
+
sourceRunId: string | null;
|
|
23
|
+
input?: unknown;
|
|
24
|
+
output?: unknown;
|
|
25
|
+
inputOmitted?: unknown;
|
|
26
|
+
outputOmitted?: unknown;
|
|
27
|
+
leaf: {
|
|
28
|
+
workflowId?: string;
|
|
29
|
+
nodeId?: string;
|
|
30
|
+
invocationId?: string;
|
|
31
|
+
} | null;
|
|
32
|
+
events: StudioDetailEvent[];
|
|
33
|
+
};
|
|
34
|
+
/** Logical calls are ordered by persisted sequence, independently within each branch. */
|
|
35
|
+
declare function projectWorkflowCalls(events: StudioDetailEvent[]): StudioWorkflowCall[];
|
|
36
|
+
|
|
37
|
+
declare const TELEMETRY_EVENT_TYPES: readonly ["span.started", "span.ended", "span.failed", "generation.completed", "tool.started", "tool.completed", "tool.failed", "interrupt.created", "interrupt.resolved", "interrupt.expired", "interrupt.cancelled", "run.cancelled", "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"];
|
|
4
38
|
declare const TelemetryServiceSchema: z.ZodObject<{
|
|
5
39
|
name: z.ZodString;
|
|
6
40
|
deploymentRef: z.ZodOptional<z.ZodString>;
|
|
@@ -18,6 +52,20 @@ declare const WorkflowTopologyEdgeSchema: z.ZodObject<{
|
|
|
18
52
|
targetNodeId: z.ZodString;
|
|
19
53
|
condition: z.ZodOptional<z.ZodString>;
|
|
20
54
|
}, z.core.$strict>;
|
|
55
|
+
declare const WorkflowTopologyCallSchema: z.ZodObject<{
|
|
56
|
+
sourceNodeId: z.ZodString;
|
|
57
|
+
targetWorkflowId: z.ZodString;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
declare const WorkflowTopologyTransitionSchema: z.ZodObject<{
|
|
60
|
+
sourceNodeId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
targetWorkflowId: z.ZodString;
|
|
62
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
63
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
64
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
call: "call";
|
|
66
|
+
handoff: "handoff";
|
|
67
|
+
}>>;
|
|
68
|
+
}, z.core.$strict>;
|
|
21
69
|
declare const EnsureWorkflowTopologyRequestSchema: z.ZodObject<{
|
|
22
70
|
schemaVersion: z.ZodLiteral<1>;
|
|
23
71
|
environment: z.ZodString;
|
|
@@ -44,6 +92,20 @@ declare const EnsureWorkflowTopologyRequestSchema: z.ZodObject<{
|
|
|
44
92
|
targetNodeId: z.ZodString;
|
|
45
93
|
condition: z.ZodOptional<z.ZodString>;
|
|
46
94
|
}, z.core.$strict>>;
|
|
95
|
+
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
sourceNodeId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
targetWorkflowId: z.ZodString;
|
|
98
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
99
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
100
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
call: "call";
|
|
102
|
+
handoff: "handoff";
|
|
103
|
+
}>>;
|
|
104
|
+
}, z.core.$strict>>>;
|
|
105
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
+
sourceNodeId: z.ZodString;
|
|
107
|
+
targetWorkflowId: z.ZodString;
|
|
108
|
+
}, z.core.$strict>>>;
|
|
47
109
|
}, z.core.$strict>;
|
|
48
110
|
}, z.core.$strict>;
|
|
49
111
|
declare const EnsureWorkflowTopologyResponseSchema: z.ZodObject<{
|
|
@@ -64,6 +126,13 @@ declare const TelemetryEventTypeSchema: z.ZodEnum<{
|
|
|
64
126
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
65
127
|
"run.cancelled": "run.cancelled";
|
|
66
128
|
"workflow.transitioned": "workflow.transitioned";
|
|
129
|
+
"workflow.call.started": "workflow.call.started";
|
|
130
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
131
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
132
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
133
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
134
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
135
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
67
136
|
"session.checkpointed": "session.checkpointed";
|
|
68
137
|
"session.forked": "session.forked";
|
|
69
138
|
"session.rolled_back": "session.rolled_back";
|
|
@@ -78,6 +147,9 @@ declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
78
147
|
deploymentRef: z.ZodOptional<z.ZodString>;
|
|
79
148
|
}, z.core.$strict>;
|
|
80
149
|
correlation: z.ZodObject<{
|
|
150
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
151
|
+
parentInvocationId: z.ZodOptional<z.ZodString>;
|
|
152
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
81
153
|
traceId: z.ZodOptional<z.ZodString>;
|
|
82
154
|
spanId: z.ZodOptional<z.ZodString>;
|
|
83
155
|
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
@@ -108,6 +180,13 @@ declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
108
180
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
109
181
|
"run.cancelled": "run.cancelled";
|
|
110
182
|
"workflow.transitioned": "workflow.transitioned";
|
|
183
|
+
"workflow.call.started": "workflow.call.started";
|
|
184
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
185
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
186
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
187
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
188
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
189
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
111
190
|
"session.checkpointed": "session.checkpointed";
|
|
112
191
|
"session.forked": "session.forked";
|
|
113
192
|
"session.rolled_back": "session.rolled_back";
|
|
@@ -125,6 +204,9 @@ declare const TelemetryEventBatchSchema: z.ZodObject<{
|
|
|
125
204
|
deploymentRef: z.ZodOptional<z.ZodString>;
|
|
126
205
|
}, z.core.$strict>;
|
|
127
206
|
correlation: z.ZodObject<{
|
|
207
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
208
|
+
parentInvocationId: z.ZodOptional<z.ZodString>;
|
|
209
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
128
210
|
traceId: z.ZodOptional<z.ZodString>;
|
|
129
211
|
spanId: z.ZodOptional<z.ZodString>;
|
|
130
212
|
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
@@ -155,6 +237,13 @@ declare const TelemetryEventBatchSchema: z.ZodObject<{
|
|
|
155
237
|
"interrupt.cancelled": "interrupt.cancelled";
|
|
156
238
|
"run.cancelled": "run.cancelled";
|
|
157
239
|
"workflow.transitioned": "workflow.transitioned";
|
|
240
|
+
"workflow.call.started": "workflow.call.started";
|
|
241
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
242
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
243
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
244
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
245
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
246
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
158
247
|
"session.checkpointed": "session.checkpointed";
|
|
159
248
|
"session.forked": "session.forked";
|
|
160
249
|
"session.rolled_back": "session.rolled_back";
|
|
@@ -162,12 +251,1770 @@ declare const TelemetryEventBatchSchema: z.ZodObject<{
|
|
|
162
251
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
163
252
|
}, z.core.$strict>>;
|
|
164
253
|
}, z.core.$strict>;
|
|
254
|
+
declare const TelemetryEventBatchResponseSchema: z.ZodObject<{
|
|
255
|
+
accepted: z.ZodNumber;
|
|
256
|
+
inserted: z.ZodNumber;
|
|
257
|
+
duplicates: z.ZodNumber;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
declare const TelemetryPricingSourceSchema: z.ZodEnum<{
|
|
260
|
+
provider: "provider";
|
|
261
|
+
custom: "custom";
|
|
262
|
+
sdk: "sdk";
|
|
263
|
+
"project-rate-card": "project-rate-card";
|
|
264
|
+
"default-rate-card": "default-rate-card";
|
|
265
|
+
}>;
|
|
266
|
+
declare const TelemetryPricingUnitSchema: z.ZodEnum<{
|
|
267
|
+
custom: "custom";
|
|
268
|
+
token: "token";
|
|
269
|
+
character: "character";
|
|
270
|
+
request: "request";
|
|
271
|
+
image: "image";
|
|
272
|
+
audio_second: "audio_second";
|
|
273
|
+
audio_minute: "audio_minute";
|
|
274
|
+
video_second: "video_second";
|
|
275
|
+
video_minute: "video_minute";
|
|
276
|
+
second: "second";
|
|
277
|
+
minute: "minute";
|
|
278
|
+
}>;
|
|
279
|
+
declare const TelemetryPricingUsageTypeSchema: z.ZodEnum<{
|
|
280
|
+
custom: "custom";
|
|
281
|
+
input: "input";
|
|
282
|
+
output: "output";
|
|
283
|
+
request: "request";
|
|
284
|
+
reasoning: "reasoning";
|
|
285
|
+
cache_read: "cache_read";
|
|
286
|
+
cache_write: "cache_write";
|
|
287
|
+
embedding: "embedding";
|
|
288
|
+
image_input: "image_input";
|
|
289
|
+
image_output: "image_output";
|
|
290
|
+
audio_input: "audio_input";
|
|
291
|
+
audio_output: "audio_output";
|
|
292
|
+
video_input: "video_input";
|
|
293
|
+
video_output: "video_output";
|
|
294
|
+
}>;
|
|
295
|
+
declare const TelemetryUsageItemSchema: z.ZodObject<{
|
|
296
|
+
usageType: z.ZodEnum<{
|
|
297
|
+
custom: "custom";
|
|
298
|
+
input: "input";
|
|
299
|
+
output: "output";
|
|
300
|
+
request: "request";
|
|
301
|
+
reasoning: "reasoning";
|
|
302
|
+
cache_read: "cache_read";
|
|
303
|
+
cache_write: "cache_write";
|
|
304
|
+
embedding: "embedding";
|
|
305
|
+
image_input: "image_input";
|
|
306
|
+
image_output: "image_output";
|
|
307
|
+
audio_input: "audio_input";
|
|
308
|
+
audio_output: "audio_output";
|
|
309
|
+
video_input: "video_input";
|
|
310
|
+
video_output: "video_output";
|
|
311
|
+
}>;
|
|
312
|
+
quantity: z.ZodNumber;
|
|
313
|
+
unit: z.ZodEnum<{
|
|
314
|
+
custom: "custom";
|
|
315
|
+
token: "token";
|
|
316
|
+
character: "character";
|
|
317
|
+
request: "request";
|
|
318
|
+
image: "image";
|
|
319
|
+
audio_second: "audio_second";
|
|
320
|
+
audio_minute: "audio_minute";
|
|
321
|
+
video_second: "video_second";
|
|
322
|
+
video_minute: "video_minute";
|
|
323
|
+
second: "second";
|
|
324
|
+
minute: "minute";
|
|
325
|
+
}>;
|
|
326
|
+
label: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
declare const TelemetryUnitPriceSchema: z.ZodObject<{
|
|
329
|
+
usageType: z.ZodEnum<{
|
|
330
|
+
custom: "custom";
|
|
331
|
+
input: "input";
|
|
332
|
+
output: "output";
|
|
333
|
+
request: "request";
|
|
334
|
+
reasoning: "reasoning";
|
|
335
|
+
cache_read: "cache_read";
|
|
336
|
+
cache_write: "cache_write";
|
|
337
|
+
embedding: "embedding";
|
|
338
|
+
image_input: "image_input";
|
|
339
|
+
image_output: "image_output";
|
|
340
|
+
audio_input: "audio_input";
|
|
341
|
+
audio_output: "audio_output";
|
|
342
|
+
video_input: "video_input";
|
|
343
|
+
video_output: "video_output";
|
|
344
|
+
}>;
|
|
345
|
+
unit: z.ZodEnum<{
|
|
346
|
+
custom: "custom";
|
|
347
|
+
token: "token";
|
|
348
|
+
character: "character";
|
|
349
|
+
request: "request";
|
|
350
|
+
image: "image";
|
|
351
|
+
audio_second: "audio_second";
|
|
352
|
+
audio_minute: "audio_minute";
|
|
353
|
+
video_second: "video_second";
|
|
354
|
+
video_minute: "video_minute";
|
|
355
|
+
second: "second";
|
|
356
|
+
minute: "minute";
|
|
357
|
+
}>;
|
|
358
|
+
unitQuantity: z.ZodDefault<z.ZodNumber>;
|
|
359
|
+
priceMicros: z.ZodNumber;
|
|
360
|
+
label: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
declare const TelemetryPricingLineItemSchema: z.ZodObject<{
|
|
363
|
+
usageType: z.ZodEnum<{
|
|
364
|
+
custom: "custom";
|
|
365
|
+
input: "input";
|
|
366
|
+
output: "output";
|
|
367
|
+
request: "request";
|
|
368
|
+
reasoning: "reasoning";
|
|
369
|
+
cache_read: "cache_read";
|
|
370
|
+
cache_write: "cache_write";
|
|
371
|
+
embedding: "embedding";
|
|
372
|
+
image_input: "image_input";
|
|
373
|
+
image_output: "image_output";
|
|
374
|
+
audio_input: "audio_input";
|
|
375
|
+
audio_output: "audio_output";
|
|
376
|
+
video_input: "video_input";
|
|
377
|
+
video_output: "video_output";
|
|
378
|
+
}>;
|
|
379
|
+
quantity: z.ZodNumber;
|
|
380
|
+
unit: z.ZodEnum<{
|
|
381
|
+
custom: "custom";
|
|
382
|
+
token: "token";
|
|
383
|
+
character: "character";
|
|
384
|
+
request: "request";
|
|
385
|
+
image: "image";
|
|
386
|
+
audio_second: "audio_second";
|
|
387
|
+
audio_minute: "audio_minute";
|
|
388
|
+
video_second: "video_second";
|
|
389
|
+
video_minute: "video_minute";
|
|
390
|
+
second: "second";
|
|
391
|
+
minute: "minute";
|
|
392
|
+
}>;
|
|
393
|
+
unitQuantity: z.ZodDefault<z.ZodNumber>;
|
|
394
|
+
unitPriceMicros: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
totalCostMicros: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
label: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
declare const TelemetryPricingHintSchema: z.ZodObject<{
|
|
399
|
+
source: z.ZodEnum<{
|
|
400
|
+
provider: "provider";
|
|
401
|
+
custom: "custom";
|
|
402
|
+
sdk: "sdk";
|
|
403
|
+
}>;
|
|
404
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
405
|
+
actualCostMicros: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
lineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
|
+
usageType: z.ZodEnum<{
|
|
408
|
+
custom: "custom";
|
|
409
|
+
input: "input";
|
|
410
|
+
output: "output";
|
|
411
|
+
request: "request";
|
|
412
|
+
reasoning: "reasoning";
|
|
413
|
+
cache_read: "cache_read";
|
|
414
|
+
cache_write: "cache_write";
|
|
415
|
+
embedding: "embedding";
|
|
416
|
+
image_input: "image_input";
|
|
417
|
+
image_output: "image_output";
|
|
418
|
+
audio_input: "audio_input";
|
|
419
|
+
audio_output: "audio_output";
|
|
420
|
+
video_input: "video_input";
|
|
421
|
+
video_output: "video_output";
|
|
422
|
+
}>;
|
|
423
|
+
quantity: z.ZodNumber;
|
|
424
|
+
unit: z.ZodEnum<{
|
|
425
|
+
custom: "custom";
|
|
426
|
+
token: "token";
|
|
427
|
+
character: "character";
|
|
428
|
+
request: "request";
|
|
429
|
+
image: "image";
|
|
430
|
+
audio_second: "audio_second";
|
|
431
|
+
audio_minute: "audio_minute";
|
|
432
|
+
video_second: "video_second";
|
|
433
|
+
video_minute: "video_minute";
|
|
434
|
+
second: "second";
|
|
435
|
+
minute: "minute";
|
|
436
|
+
}>;
|
|
437
|
+
unitQuantity: z.ZodDefault<z.ZodNumber>;
|
|
438
|
+
unitPriceMicros: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
totalCostMicros: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
label: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strict>>>;
|
|
442
|
+
unitPrices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
+
usageType: z.ZodEnum<{
|
|
444
|
+
custom: "custom";
|
|
445
|
+
input: "input";
|
|
446
|
+
output: "output";
|
|
447
|
+
request: "request";
|
|
448
|
+
reasoning: "reasoning";
|
|
449
|
+
cache_read: "cache_read";
|
|
450
|
+
cache_write: "cache_write";
|
|
451
|
+
embedding: "embedding";
|
|
452
|
+
image_input: "image_input";
|
|
453
|
+
image_output: "image_output";
|
|
454
|
+
audio_input: "audio_input";
|
|
455
|
+
audio_output: "audio_output";
|
|
456
|
+
video_input: "video_input";
|
|
457
|
+
video_output: "video_output";
|
|
458
|
+
}>;
|
|
459
|
+
unit: z.ZodEnum<{
|
|
460
|
+
custom: "custom";
|
|
461
|
+
token: "token";
|
|
462
|
+
character: "character";
|
|
463
|
+
request: "request";
|
|
464
|
+
image: "image";
|
|
465
|
+
audio_second: "audio_second";
|
|
466
|
+
audio_minute: "audio_minute";
|
|
467
|
+
video_second: "video_second";
|
|
468
|
+
video_minute: "video_minute";
|
|
469
|
+
second: "second";
|
|
470
|
+
minute: "minute";
|
|
471
|
+
}>;
|
|
472
|
+
unitQuantity: z.ZodDefault<z.ZodNumber>;
|
|
473
|
+
priceMicros: z.ZodNumber;
|
|
474
|
+
label: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, z.core.$strict>>>;
|
|
476
|
+
usageItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
477
|
+
usageType: z.ZodEnum<{
|
|
478
|
+
custom: "custom";
|
|
479
|
+
input: "input";
|
|
480
|
+
output: "output";
|
|
481
|
+
request: "request";
|
|
482
|
+
reasoning: "reasoning";
|
|
483
|
+
cache_read: "cache_read";
|
|
484
|
+
cache_write: "cache_write";
|
|
485
|
+
embedding: "embedding";
|
|
486
|
+
image_input: "image_input";
|
|
487
|
+
image_output: "image_output";
|
|
488
|
+
audio_input: "audio_input";
|
|
489
|
+
audio_output: "audio_output";
|
|
490
|
+
video_input: "video_input";
|
|
491
|
+
video_output: "video_output";
|
|
492
|
+
}>;
|
|
493
|
+
quantity: z.ZodNumber;
|
|
494
|
+
unit: z.ZodEnum<{
|
|
495
|
+
custom: "custom";
|
|
496
|
+
token: "token";
|
|
497
|
+
character: "character";
|
|
498
|
+
request: "request";
|
|
499
|
+
image: "image";
|
|
500
|
+
audio_second: "audio_second";
|
|
501
|
+
audio_minute: "audio_minute";
|
|
502
|
+
video_second: "video_second";
|
|
503
|
+
video_minute: "video_minute";
|
|
504
|
+
second: "second";
|
|
505
|
+
minute: "minute";
|
|
506
|
+
}>;
|
|
507
|
+
label: z.ZodOptional<z.ZodString>;
|
|
508
|
+
}, z.core.$strict>>>;
|
|
509
|
+
pricingRef: z.ZodOptional<z.ZodString>;
|
|
510
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
511
|
+
}, z.core.$strict>;
|
|
165
512
|
type KortyxTelemetryService = z.infer<typeof TelemetryServiceSchema>;
|
|
166
513
|
type KortyxWorkflowTopologyNode = z.infer<typeof WorkflowTopologyNodeSchema>;
|
|
167
514
|
type KortyxWorkflowTopologyEdge = z.infer<typeof WorkflowTopologyEdgeSchema>;
|
|
515
|
+
type KortyxWorkflowTopologyTransition = z.infer<typeof WorkflowTopologyTransitionSchema>;
|
|
168
516
|
type EnsureWorkflowTopologyRequest = z.infer<typeof EnsureWorkflowTopologyRequestSchema>;
|
|
169
517
|
type EnsureWorkflowTopologyResponse = z.infer<typeof EnsureWorkflowTopologyResponseSchema>;
|
|
170
518
|
type KortyxTelemetryEventType = z.infer<typeof TelemetryEventTypeSchema>;
|
|
171
519
|
type KortyxTelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|
|
520
|
+
type TelemetryEventBatch = z.infer<typeof TelemetryEventBatchSchema>;
|
|
521
|
+
type TelemetryEventBatchResponse = z.infer<typeof TelemetryEventBatchResponseSchema>;
|
|
522
|
+
type TelemetryPricingSource = z.infer<typeof TelemetryPricingSourceSchema>;
|
|
523
|
+
type TelemetryPricingUnit = z.infer<typeof TelemetryPricingUnitSchema>;
|
|
524
|
+
type TelemetryPricingUsageType = z.infer<typeof TelemetryPricingUsageTypeSchema>;
|
|
525
|
+
type TelemetryUsageItem = z.infer<typeof TelemetryUsageItemSchema>;
|
|
526
|
+
type TelemetryUnitPrice = z.infer<typeof TelemetryUnitPriceSchema>;
|
|
527
|
+
type TelemetryPricingLineItem = z.infer<typeof TelemetryPricingLineItemSchema>;
|
|
528
|
+
type TelemetryPricingHint = z.infer<typeof TelemetryPricingHintSchema>;
|
|
529
|
+
declare const StudioRunStatusSchema: z.ZodEnum<{
|
|
530
|
+
running: "running";
|
|
531
|
+
completed: "completed";
|
|
532
|
+
interrupted: "interrupted";
|
|
533
|
+
incomplete: "incomplete";
|
|
534
|
+
failed: "failed";
|
|
535
|
+
cancelled: "cancelled";
|
|
536
|
+
}>;
|
|
537
|
+
declare const STUDIO_TIME_RANGES: readonly ["Last hour", "24 hours", "7 days", "30 days", "All time", "Custom range"];
|
|
538
|
+
declare const StudioTimeRangeSchema: z.ZodEnum<{
|
|
539
|
+
"Last hour": "Last hour";
|
|
540
|
+
"24 hours": "24 hours";
|
|
541
|
+
"7 days": "7 days";
|
|
542
|
+
"30 days": "30 days";
|
|
543
|
+
"All time": "All time";
|
|
544
|
+
"Custom range": "Custom range";
|
|
545
|
+
}>;
|
|
546
|
+
declare const StudioTimeRangeQuerySchema: z.ZodObject<{
|
|
547
|
+
range: z.ZodOptional<z.ZodEnum<{
|
|
548
|
+
"Last hour": "Last hour";
|
|
549
|
+
"24 hours": "24 hours";
|
|
550
|
+
"7 days": "7 days";
|
|
551
|
+
"30 days": "30 days";
|
|
552
|
+
"All time": "All time";
|
|
553
|
+
"Custom range": "Custom range";
|
|
554
|
+
}>>;
|
|
555
|
+
startedAfter: z.ZodOptional<z.ZodString>;
|
|
556
|
+
startedBefore: z.ZodOptional<z.ZodString>;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
declare const StudioTimeRangeContextSchema: z.ZodObject<{
|
|
559
|
+
range: z.ZodEnum<{
|
|
560
|
+
"Last hour": "Last hour";
|
|
561
|
+
"24 hours": "24 hours";
|
|
562
|
+
"7 days": "7 days";
|
|
563
|
+
"30 days": "30 days";
|
|
564
|
+
"All time": "All time";
|
|
565
|
+
"Custom range": "Custom range";
|
|
566
|
+
}>;
|
|
567
|
+
startedAfter: z.ZodNullable<z.ZodString>;
|
|
568
|
+
startedBefore: z.ZodNullable<z.ZodString>;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
type StudioTimeRangeResolution = {
|
|
571
|
+
ok: true;
|
|
572
|
+
value: z.infer<typeof StudioTimeRangeContextSchema>;
|
|
573
|
+
} | {
|
|
574
|
+
ok: false;
|
|
575
|
+
error: string;
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* Resolves Studio time filters into absolute UTC boundaries.
|
|
579
|
+
*
|
|
580
|
+
* Relative presets are evaluated against `now`. Custom boundaries must be
|
|
581
|
+
* complete ISO timestamps with an explicit offset and are normalized to UTC.
|
|
582
|
+
*/
|
|
583
|
+
declare const resolveStudioTimeRange: (input: {
|
|
584
|
+
range?: string | undefined;
|
|
585
|
+
startedAfter?: string | undefined;
|
|
586
|
+
startedBefore?: string | undefined;
|
|
587
|
+
}, now?: Date) => StudioTimeRangeResolution;
|
|
588
|
+
declare const StudioInterruptStatusSchema: z.ZodEnum<{
|
|
589
|
+
failed: "failed";
|
|
590
|
+
cancelled: "cancelled";
|
|
591
|
+
pending: "pending";
|
|
592
|
+
resolved: "resolved";
|
|
593
|
+
expired: "expired";
|
|
594
|
+
}>;
|
|
595
|
+
declare const resolveStudioInterruptStatus: (input: {
|
|
596
|
+
status: z.infer<typeof StudioInterruptStatusSchema>;
|
|
597
|
+
expiresAt?: string | null | undefined;
|
|
598
|
+
}, now?: Date | number) => z.infer<typeof StudioInterruptStatusSchema>;
|
|
599
|
+
declare const StudioInterruptTypeSchema: z.ZodEnum<{
|
|
600
|
+
unknown: "unknown";
|
|
601
|
+
choice: "choice";
|
|
602
|
+
"multi-choice": "multi-choice";
|
|
603
|
+
text: "text";
|
|
604
|
+
}>;
|
|
605
|
+
declare const StudioInterruptInteractionModeSchema: z.ZodEnum<{
|
|
606
|
+
unknown: "unknown";
|
|
607
|
+
"static-options": "static-options";
|
|
608
|
+
"dynamic-picker": "dynamic-picker";
|
|
609
|
+
freeform: "freeform";
|
|
610
|
+
}>;
|
|
611
|
+
declare const StudioInterruptOptionSchema: z.ZodObject<{
|
|
612
|
+
id: z.ZodString;
|
|
613
|
+
label: z.ZodString;
|
|
614
|
+
description: z.ZodNullable<z.ZodString>;
|
|
615
|
+
}, z.core.$strict>;
|
|
616
|
+
declare const StudioResumeOutcomeSchema: z.ZodEnum<{
|
|
617
|
+
cancelled: "cancelled";
|
|
618
|
+
resumed: "resumed";
|
|
619
|
+
"resume failed": "resume failed";
|
|
620
|
+
"expired before resume": "expired before resume";
|
|
621
|
+
}>;
|
|
622
|
+
declare const StudioWorkflowHealthSchema: z.ZodEnum<{
|
|
623
|
+
unknown: "unknown";
|
|
624
|
+
healthy: "healthy";
|
|
625
|
+
degraded: "degraded";
|
|
626
|
+
failing: "failing";
|
|
627
|
+
idle: "idle";
|
|
628
|
+
}>;
|
|
629
|
+
declare const StudioPricingStatusSchema: z.ZodEnum<{
|
|
630
|
+
unknown: "unknown";
|
|
631
|
+
priced: "priced";
|
|
632
|
+
unpriced: "unpriced";
|
|
633
|
+
}>;
|
|
634
|
+
declare const StudioPricingSourceSchema: z.ZodNullable<z.ZodEnum<{
|
|
635
|
+
provider: "provider";
|
|
636
|
+
custom: "custom";
|
|
637
|
+
sdk: "sdk";
|
|
638
|
+
"project-rate-card": "project-rate-card";
|
|
639
|
+
"default-rate-card": "default-rate-card";
|
|
640
|
+
}>>;
|
|
641
|
+
declare const StudioChangeResourceSchema: z.ZodEnum<{
|
|
642
|
+
runs: "runs";
|
|
643
|
+
sessions: "sessions";
|
|
644
|
+
interrupts: "interrupts";
|
|
645
|
+
}>;
|
|
646
|
+
declare const StudioChangeSchema: z.ZodObject<{
|
|
647
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
648
|
+
changeId: z.ZodString;
|
|
649
|
+
emittedAt: z.ZodString;
|
|
650
|
+
organizationId: z.ZodString;
|
|
651
|
+
projectId: z.ZodString;
|
|
652
|
+
resources: z.ZodArray<z.ZodEnum<{
|
|
653
|
+
runs: "runs";
|
|
654
|
+
sessions: "sessions";
|
|
655
|
+
interrupts: "interrupts";
|
|
656
|
+
}>>;
|
|
657
|
+
}, z.core.$strict>;
|
|
658
|
+
declare const StudioMetricSchema: z.ZodObject<{
|
|
659
|
+
runCount: z.ZodNumber;
|
|
660
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
661
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
662
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
663
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
664
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
665
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
666
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
667
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
668
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
669
|
+
}, z.core.$strict>;
|
|
670
|
+
declare const StudioRunSchema: z.ZodObject<{
|
|
671
|
+
id: z.ZodString;
|
|
672
|
+
callerNodeId: z.ZodOptional<z.ZodString>;
|
|
673
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
674
|
+
parentWorkflowId: z.ZodOptional<z.ZodString>;
|
|
675
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
676
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
677
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
678
|
+
status: z.ZodEnum<{
|
|
679
|
+
running: "running";
|
|
680
|
+
completed: "completed";
|
|
681
|
+
interrupted: "interrupted";
|
|
682
|
+
incomplete: "incomplete";
|
|
683
|
+
failed: "failed";
|
|
684
|
+
cancelled: "cancelled";
|
|
685
|
+
}>;
|
|
686
|
+
startedAt: z.ZodString;
|
|
687
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
688
|
+
workflowId: z.ZodString;
|
|
689
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
690
|
+
workflowRefs: z.ZodArray<z.ZodObject<{
|
|
691
|
+
workflowId: z.ZodString;
|
|
692
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
693
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
694
|
+
}, z.core.$strict>>;
|
|
695
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
696
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
697
|
+
transitionIds: z.ZodArray<z.ZodString>;
|
|
698
|
+
path: z.ZodArray<z.ZodString>;
|
|
699
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
700
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
701
|
+
model: z.ZodNullable<z.ZodString>;
|
|
702
|
+
models: z.ZodArray<z.ZodString>;
|
|
703
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
704
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
705
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
706
|
+
pricingStatus: z.ZodEnum<{
|
|
707
|
+
unknown: "unknown";
|
|
708
|
+
priced: "priced";
|
|
709
|
+
unpriced: "unpriced";
|
|
710
|
+
}>;
|
|
711
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
712
|
+
provider: "provider";
|
|
713
|
+
custom: "custom";
|
|
714
|
+
sdk: "sdk";
|
|
715
|
+
"project-rate-card": "project-rate-card";
|
|
716
|
+
"default-rate-card": "default-rate-card";
|
|
717
|
+
}>>;
|
|
718
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
719
|
+
result: z.ZodNullable<z.ZodString>;
|
|
720
|
+
environment: z.ZodString;
|
|
721
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
722
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
723
|
+
hasTool: z.ZodBoolean;
|
|
724
|
+
hasRetry: z.ZodBoolean;
|
|
725
|
+
interruptNodeId: z.ZodNullable<z.ZodString>;
|
|
726
|
+
interruptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
727
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
728
|
+
failed: "failed";
|
|
729
|
+
cancelled: "cancelled";
|
|
730
|
+
pending: "pending";
|
|
731
|
+
resolved: "resolved";
|
|
732
|
+
expired: "expired";
|
|
733
|
+
}>>>;
|
|
734
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
735
|
+
}, z.core.$strict>;
|
|
736
|
+
declare const StudioSessionSchema: z.ZodObject<{
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
status: z.ZodEnum<{
|
|
739
|
+
running: "running";
|
|
740
|
+
completed: "completed";
|
|
741
|
+
interrupted: "interrupted";
|
|
742
|
+
incomplete: "incomplete";
|
|
743
|
+
failed: "failed";
|
|
744
|
+
cancelled: "cancelled";
|
|
745
|
+
}>;
|
|
746
|
+
lastActivityAt: z.ZodString;
|
|
747
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
748
|
+
workflowCount: z.ZodNumber;
|
|
749
|
+
activeWorkflowId: z.ZodNullable<z.ZodString>;
|
|
750
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
751
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
752
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
753
|
+
runs: z.ZodNumber;
|
|
754
|
+
succeeded: z.ZodNumber;
|
|
755
|
+
failed: z.ZodNumber;
|
|
756
|
+
interrupted: z.ZodNumber;
|
|
757
|
+
checkpoints: z.ZodNumber;
|
|
758
|
+
hasFork: z.ZodBoolean;
|
|
759
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
760
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
761
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
762
|
+
pricingStatus: z.ZodEnum<{
|
|
763
|
+
unknown: "unknown";
|
|
764
|
+
priced: "priced";
|
|
765
|
+
unpriced: "unpriced";
|
|
766
|
+
}>;
|
|
767
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
768
|
+
provider: "provider";
|
|
769
|
+
custom: "custom";
|
|
770
|
+
sdk: "sdk";
|
|
771
|
+
"project-rate-card": "project-rate-card";
|
|
772
|
+
"default-rate-card": "default-rate-card";
|
|
773
|
+
}>>;
|
|
774
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
775
|
+
latestResult: z.ZodNullable<z.ZodString>;
|
|
776
|
+
latestError: z.ZodNullable<z.ZodString>;
|
|
777
|
+
pendingInterruptId: z.ZodNullable<z.ZodString>;
|
|
778
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
779
|
+
failed: "failed";
|
|
780
|
+
cancelled: "cancelled";
|
|
781
|
+
pending: "pending";
|
|
782
|
+
resolved: "resolved";
|
|
783
|
+
expired: "expired";
|
|
784
|
+
}>>>;
|
|
785
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
providers: z.ZodArray<z.ZodString>;
|
|
787
|
+
models: z.ZodArray<z.ZodString>;
|
|
788
|
+
tags: z.ZodArray<z.ZodString>;
|
|
789
|
+
environment: z.ZodString;
|
|
790
|
+
}, z.core.$strict>;
|
|
791
|
+
declare const StudioInterruptSchema: z.ZodObject<{
|
|
792
|
+
id: z.ZodString;
|
|
793
|
+
status: z.ZodEnum<{
|
|
794
|
+
failed: "failed";
|
|
795
|
+
cancelled: "cancelled";
|
|
796
|
+
pending: "pending";
|
|
797
|
+
resolved: "resolved";
|
|
798
|
+
expired: "expired";
|
|
799
|
+
}>;
|
|
800
|
+
type: z.ZodEnum<{
|
|
801
|
+
unknown: "unknown";
|
|
802
|
+
choice: "choice";
|
|
803
|
+
"multi-choice": "multi-choice";
|
|
804
|
+
text: "text";
|
|
805
|
+
}>;
|
|
806
|
+
interactionMode: z.ZodEnum<{
|
|
807
|
+
unknown: "unknown";
|
|
808
|
+
"static-options": "static-options";
|
|
809
|
+
"dynamic-picker": "dynamic-picker";
|
|
810
|
+
freeform: "freeform";
|
|
811
|
+
}>;
|
|
812
|
+
schemaId: z.ZodNullable<z.ZodString>;
|
|
813
|
+
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
814
|
+
createdAt: z.ZodString;
|
|
815
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
816
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
817
|
+
question: z.ZodNullable<z.ZodString>;
|
|
818
|
+
contentCaptured: z.ZodBoolean;
|
|
819
|
+
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
820
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
821
|
+
id: z.ZodString;
|
|
822
|
+
label: z.ZodString;
|
|
823
|
+
description: z.ZodNullable<z.ZodString>;
|
|
824
|
+
}, z.core.$strict>>>;
|
|
825
|
+
workflowId: z.ZodString;
|
|
826
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
827
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
828
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
829
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
830
|
+
response: z.ZodNullable<z.ZodString>;
|
|
831
|
+
responseCaptured: z.ZodBoolean;
|
|
832
|
+
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
833
|
+
cancelled: "cancelled";
|
|
834
|
+
resumed: "resumed";
|
|
835
|
+
"resume failed": "resume failed";
|
|
836
|
+
"expired before resume": "expired before resume";
|
|
837
|
+
}>>;
|
|
838
|
+
resumeError: z.ZodNullable<z.ZodString>;
|
|
839
|
+
runId: z.ZodString;
|
|
840
|
+
resumeToken: z.ZodNullable<z.ZodString>;
|
|
841
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
842
|
+
environment: z.ZodString;
|
|
843
|
+
}, z.core.$strict>;
|
|
844
|
+
declare const StudioDetailEventSchema: z.ZodObject<{
|
|
845
|
+
id: z.ZodString;
|
|
846
|
+
type: z.ZodEnum<{
|
|
847
|
+
"span.started": "span.started";
|
|
848
|
+
"span.ended": "span.ended";
|
|
849
|
+
"span.failed": "span.failed";
|
|
850
|
+
"generation.completed": "generation.completed";
|
|
851
|
+
"tool.started": "tool.started";
|
|
852
|
+
"tool.completed": "tool.completed";
|
|
853
|
+
"tool.failed": "tool.failed";
|
|
854
|
+
"interrupt.created": "interrupt.created";
|
|
855
|
+
"interrupt.resolved": "interrupt.resolved";
|
|
856
|
+
"interrupt.expired": "interrupt.expired";
|
|
857
|
+
"interrupt.cancelled": "interrupt.cancelled";
|
|
858
|
+
"run.cancelled": "run.cancelled";
|
|
859
|
+
"workflow.transitioned": "workflow.transitioned";
|
|
860
|
+
"workflow.call.started": "workflow.call.started";
|
|
861
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
862
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
863
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
864
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
865
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
866
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
867
|
+
"session.checkpointed": "session.checkpointed";
|
|
868
|
+
"session.forked": "session.forked";
|
|
869
|
+
"session.rolled_back": "session.rolled_back";
|
|
870
|
+
}>;
|
|
871
|
+
occurredAt: z.ZodString;
|
|
872
|
+
receivedAt: z.ZodString;
|
|
873
|
+
environment: z.ZodString;
|
|
874
|
+
serviceName: z.ZodString;
|
|
875
|
+
deploymentRef: z.ZodNullable<z.ZodString>;
|
|
876
|
+
traceId: z.ZodNullable<z.ZodString>;
|
|
877
|
+
spanId: z.ZodNullable<z.ZodString>;
|
|
878
|
+
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
879
|
+
runId: z.ZodString;
|
|
880
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
881
|
+
workflowId: z.ZodString;
|
|
882
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
883
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
884
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
885
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
886
|
+
tags: z.ZodArray<z.ZodString>;
|
|
887
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
888
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
declare const StudioWorkflowNodeSchema: z.ZodObject<{
|
|
891
|
+
id: z.ZodString;
|
|
892
|
+
label: z.ZodString;
|
|
893
|
+
type: z.ZodNullable<z.ZodString>;
|
|
894
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
895
|
+
interrupted: "interrupted";
|
|
896
|
+
failed: "failed";
|
|
897
|
+
healthy: "healthy";
|
|
898
|
+
warning: "warning";
|
|
899
|
+
retried: "retried";
|
|
900
|
+
}>>;
|
|
901
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
902
|
+
model: z.ZodNullable<z.ZodString>;
|
|
903
|
+
metrics: z.ZodObject<{
|
|
904
|
+
runCount: z.ZodNumber;
|
|
905
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
906
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
907
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
908
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
909
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
910
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
911
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
912
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
913
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
}, z.core.$strict>;
|
|
916
|
+
declare const StudioWorkflowInternalEdgeSchema: z.ZodObject<{
|
|
917
|
+
id: z.ZodString;
|
|
918
|
+
source: z.ZodString;
|
|
919
|
+
target: z.ZodString;
|
|
920
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
921
|
+
}, z.core.$strict>;
|
|
922
|
+
declare const StudioWorkflowTransitionSchema: z.ZodObject<{
|
|
923
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
924
|
+
call: "call";
|
|
925
|
+
handoff: "handoff";
|
|
926
|
+
}>>;
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
sourceWorkflowId: z.ZodString;
|
|
929
|
+
sourceNodeId: z.ZodNullable<z.ZodString>;
|
|
930
|
+
targetWorkflowId: z.ZodString;
|
|
931
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
932
|
+
volume: z.ZodNumber;
|
|
933
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
934
|
+
medianDurationMs: z.ZodNullable<z.ZodNumber>;
|
|
935
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
936
|
+
}, z.core.$strict>;
|
|
937
|
+
declare const StudioWorkflowSchema: z.ZodObject<{
|
|
938
|
+
id: z.ZodString;
|
|
939
|
+
name: z.ZodString;
|
|
940
|
+
description: z.ZodNullable<z.ZodString>;
|
|
941
|
+
versions: z.ZodArray<z.ZodString>;
|
|
942
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
943
|
+
activeRevisionId: z.ZodNullable<z.ZodString>;
|
|
944
|
+
health: z.ZodEnum<{
|
|
945
|
+
unknown: "unknown";
|
|
946
|
+
healthy: "healthy";
|
|
947
|
+
degraded: "degraded";
|
|
948
|
+
failing: "failing";
|
|
949
|
+
idle: "idle";
|
|
950
|
+
}>;
|
|
951
|
+
tags: z.ZodArray<z.ZodString>;
|
|
952
|
+
lastActivityAt: z.ZodNullable<z.ZodString>;
|
|
953
|
+
metrics: z.ZodObject<{
|
|
954
|
+
runCount: z.ZodNumber;
|
|
955
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
956
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
957
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
958
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
959
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
960
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
961
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
962
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
963
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
964
|
+
}, z.core.$strict>;
|
|
965
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
966
|
+
id: z.ZodString;
|
|
967
|
+
label: z.ZodString;
|
|
968
|
+
type: z.ZodNullable<z.ZodString>;
|
|
969
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
970
|
+
interrupted: "interrupted";
|
|
971
|
+
failed: "failed";
|
|
972
|
+
healthy: "healthy";
|
|
973
|
+
warning: "warning";
|
|
974
|
+
retried: "retried";
|
|
975
|
+
}>>;
|
|
976
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
977
|
+
model: z.ZodNullable<z.ZodString>;
|
|
978
|
+
metrics: z.ZodObject<{
|
|
979
|
+
runCount: z.ZodNumber;
|
|
980
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
981
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
982
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
983
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
984
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
985
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
986
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
987
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
988
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
989
|
+
}, z.core.$strict>;
|
|
990
|
+
}, z.core.$strict>>;
|
|
991
|
+
internalEdges: z.ZodArray<z.ZodObject<{
|
|
992
|
+
id: z.ZodString;
|
|
993
|
+
source: z.ZodString;
|
|
994
|
+
target: z.ZodString;
|
|
995
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
996
|
+
}, z.core.$strict>>;
|
|
997
|
+
}, z.core.$strict>;
|
|
998
|
+
declare const StudioRunsResponseSchema: z.ZodObject<{
|
|
999
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1000
|
+
id: z.ZodString;
|
|
1001
|
+
callerNodeId: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
parentWorkflowId: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
status: z.ZodEnum<{
|
|
1008
|
+
running: "running";
|
|
1009
|
+
completed: "completed";
|
|
1010
|
+
interrupted: "interrupted";
|
|
1011
|
+
incomplete: "incomplete";
|
|
1012
|
+
failed: "failed";
|
|
1013
|
+
cancelled: "cancelled";
|
|
1014
|
+
}>;
|
|
1015
|
+
startedAt: z.ZodString;
|
|
1016
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1017
|
+
workflowId: z.ZodString;
|
|
1018
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1019
|
+
workflowRefs: z.ZodArray<z.ZodObject<{
|
|
1020
|
+
workflowId: z.ZodString;
|
|
1021
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1022
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1023
|
+
}, z.core.$strict>>;
|
|
1024
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1025
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1026
|
+
transitionIds: z.ZodArray<z.ZodString>;
|
|
1027
|
+
path: z.ZodArray<z.ZodString>;
|
|
1028
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1029
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1030
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1031
|
+
models: z.ZodArray<z.ZodString>;
|
|
1032
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1033
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1034
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1035
|
+
pricingStatus: z.ZodEnum<{
|
|
1036
|
+
unknown: "unknown";
|
|
1037
|
+
priced: "priced";
|
|
1038
|
+
unpriced: "unpriced";
|
|
1039
|
+
}>;
|
|
1040
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1041
|
+
provider: "provider";
|
|
1042
|
+
custom: "custom";
|
|
1043
|
+
sdk: "sdk";
|
|
1044
|
+
"project-rate-card": "project-rate-card";
|
|
1045
|
+
"default-rate-card": "default-rate-card";
|
|
1046
|
+
}>>;
|
|
1047
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1048
|
+
result: z.ZodNullable<z.ZodString>;
|
|
1049
|
+
environment: z.ZodString;
|
|
1050
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1052
|
+
hasTool: z.ZodBoolean;
|
|
1053
|
+
hasRetry: z.ZodBoolean;
|
|
1054
|
+
interruptNodeId: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
interruptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1056
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1057
|
+
failed: "failed";
|
|
1058
|
+
cancelled: "cancelled";
|
|
1059
|
+
pending: "pending";
|
|
1060
|
+
resolved: "resolved";
|
|
1061
|
+
expired: "expired";
|
|
1062
|
+
}>>>;
|
|
1063
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1064
|
+
}, z.core.$strict>>;
|
|
1065
|
+
totalCount: z.ZodNumber;
|
|
1066
|
+
}, z.core.$strict>;
|
|
1067
|
+
declare const StudioSessionsResponseSchema: z.ZodObject<{
|
|
1068
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1069
|
+
id: z.ZodString;
|
|
1070
|
+
status: z.ZodEnum<{
|
|
1071
|
+
running: "running";
|
|
1072
|
+
completed: "completed";
|
|
1073
|
+
interrupted: "interrupted";
|
|
1074
|
+
incomplete: "incomplete";
|
|
1075
|
+
failed: "failed";
|
|
1076
|
+
cancelled: "cancelled";
|
|
1077
|
+
}>;
|
|
1078
|
+
lastActivityAt: z.ZodString;
|
|
1079
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1080
|
+
workflowCount: z.ZodNumber;
|
|
1081
|
+
activeWorkflowId: z.ZodNullable<z.ZodString>;
|
|
1082
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
1083
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1085
|
+
runs: z.ZodNumber;
|
|
1086
|
+
succeeded: z.ZodNumber;
|
|
1087
|
+
failed: z.ZodNumber;
|
|
1088
|
+
interrupted: z.ZodNumber;
|
|
1089
|
+
checkpoints: z.ZodNumber;
|
|
1090
|
+
hasFork: z.ZodBoolean;
|
|
1091
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1092
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1093
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1094
|
+
pricingStatus: z.ZodEnum<{
|
|
1095
|
+
unknown: "unknown";
|
|
1096
|
+
priced: "priced";
|
|
1097
|
+
unpriced: "unpriced";
|
|
1098
|
+
}>;
|
|
1099
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1100
|
+
provider: "provider";
|
|
1101
|
+
custom: "custom";
|
|
1102
|
+
sdk: "sdk";
|
|
1103
|
+
"project-rate-card": "project-rate-card";
|
|
1104
|
+
"default-rate-card": "default-rate-card";
|
|
1105
|
+
}>>;
|
|
1106
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1107
|
+
latestResult: z.ZodNullable<z.ZodString>;
|
|
1108
|
+
latestError: z.ZodNullable<z.ZodString>;
|
|
1109
|
+
pendingInterruptId: z.ZodNullable<z.ZodString>;
|
|
1110
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1111
|
+
failed: "failed";
|
|
1112
|
+
cancelled: "cancelled";
|
|
1113
|
+
pending: "pending";
|
|
1114
|
+
resolved: "resolved";
|
|
1115
|
+
expired: "expired";
|
|
1116
|
+
}>>>;
|
|
1117
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1118
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1119
|
+
models: z.ZodArray<z.ZodString>;
|
|
1120
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1121
|
+
environment: z.ZodString;
|
|
1122
|
+
}, z.core.$strict>>;
|
|
1123
|
+
totalCount: z.ZodNumber;
|
|
1124
|
+
}, z.core.$strict>;
|
|
1125
|
+
declare const StudioInterruptsResponseSchema: z.ZodObject<{
|
|
1126
|
+
interrupts: z.ZodArray<z.ZodObject<{
|
|
1127
|
+
id: z.ZodString;
|
|
1128
|
+
status: z.ZodEnum<{
|
|
1129
|
+
failed: "failed";
|
|
1130
|
+
cancelled: "cancelled";
|
|
1131
|
+
pending: "pending";
|
|
1132
|
+
resolved: "resolved";
|
|
1133
|
+
expired: "expired";
|
|
1134
|
+
}>;
|
|
1135
|
+
type: z.ZodEnum<{
|
|
1136
|
+
unknown: "unknown";
|
|
1137
|
+
choice: "choice";
|
|
1138
|
+
"multi-choice": "multi-choice";
|
|
1139
|
+
text: "text";
|
|
1140
|
+
}>;
|
|
1141
|
+
interactionMode: z.ZodEnum<{
|
|
1142
|
+
unknown: "unknown";
|
|
1143
|
+
"static-options": "static-options";
|
|
1144
|
+
"dynamic-picker": "dynamic-picker";
|
|
1145
|
+
freeform: "freeform";
|
|
1146
|
+
}>;
|
|
1147
|
+
schemaId: z.ZodNullable<z.ZodString>;
|
|
1148
|
+
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1149
|
+
createdAt: z.ZodString;
|
|
1150
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1152
|
+
question: z.ZodNullable<z.ZodString>;
|
|
1153
|
+
contentCaptured: z.ZodBoolean;
|
|
1154
|
+
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1155
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1156
|
+
id: z.ZodString;
|
|
1157
|
+
label: z.ZodString;
|
|
1158
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1159
|
+
}, z.core.$strict>>>;
|
|
1160
|
+
workflowId: z.ZodString;
|
|
1161
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1162
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1163
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1164
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1165
|
+
response: z.ZodNullable<z.ZodString>;
|
|
1166
|
+
responseCaptured: z.ZodBoolean;
|
|
1167
|
+
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1168
|
+
cancelled: "cancelled";
|
|
1169
|
+
resumed: "resumed";
|
|
1170
|
+
"resume failed": "resume failed";
|
|
1171
|
+
"expired before resume": "expired before resume";
|
|
1172
|
+
}>>;
|
|
1173
|
+
resumeError: z.ZodNullable<z.ZodString>;
|
|
1174
|
+
runId: z.ZodString;
|
|
1175
|
+
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1176
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1177
|
+
environment: z.ZodString;
|
|
1178
|
+
}, z.core.$strict>>;
|
|
1179
|
+
totalCount: z.ZodNumber;
|
|
1180
|
+
}, z.core.$strict>;
|
|
1181
|
+
declare const StudioRunDetailResponseSchema: z.ZodObject<{
|
|
1182
|
+
run: z.ZodObject<{
|
|
1183
|
+
id: z.ZodString;
|
|
1184
|
+
callerNodeId: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
parentWorkflowId: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
status: z.ZodEnum<{
|
|
1191
|
+
running: "running";
|
|
1192
|
+
completed: "completed";
|
|
1193
|
+
interrupted: "interrupted";
|
|
1194
|
+
incomplete: "incomplete";
|
|
1195
|
+
failed: "failed";
|
|
1196
|
+
cancelled: "cancelled";
|
|
1197
|
+
}>;
|
|
1198
|
+
startedAt: z.ZodString;
|
|
1199
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
workflowId: z.ZodString;
|
|
1201
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1202
|
+
workflowRefs: z.ZodArray<z.ZodObject<{
|
|
1203
|
+
workflowId: z.ZodString;
|
|
1204
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1205
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
}, z.core.$strict>>;
|
|
1207
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1208
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1209
|
+
transitionIds: z.ZodArray<z.ZodString>;
|
|
1210
|
+
path: z.ZodArray<z.ZodString>;
|
|
1211
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1212
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1213
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1214
|
+
models: z.ZodArray<z.ZodString>;
|
|
1215
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1216
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1217
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1218
|
+
pricingStatus: z.ZodEnum<{
|
|
1219
|
+
unknown: "unknown";
|
|
1220
|
+
priced: "priced";
|
|
1221
|
+
unpriced: "unpriced";
|
|
1222
|
+
}>;
|
|
1223
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1224
|
+
provider: "provider";
|
|
1225
|
+
custom: "custom";
|
|
1226
|
+
sdk: "sdk";
|
|
1227
|
+
"project-rate-card": "project-rate-card";
|
|
1228
|
+
"default-rate-card": "default-rate-card";
|
|
1229
|
+
}>>;
|
|
1230
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1231
|
+
result: z.ZodNullable<z.ZodString>;
|
|
1232
|
+
environment: z.ZodString;
|
|
1233
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1234
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1235
|
+
hasTool: z.ZodBoolean;
|
|
1236
|
+
hasRetry: z.ZodBoolean;
|
|
1237
|
+
interruptNodeId: z.ZodNullable<z.ZodString>;
|
|
1238
|
+
interruptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1239
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1240
|
+
failed: "failed";
|
|
1241
|
+
cancelled: "cancelled";
|
|
1242
|
+
pending: "pending";
|
|
1243
|
+
resolved: "resolved";
|
|
1244
|
+
expired: "expired";
|
|
1245
|
+
}>>>;
|
|
1246
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1247
|
+
}, z.core.$strict>;
|
|
1248
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1249
|
+
id: z.ZodString;
|
|
1250
|
+
type: z.ZodEnum<{
|
|
1251
|
+
"span.started": "span.started";
|
|
1252
|
+
"span.ended": "span.ended";
|
|
1253
|
+
"span.failed": "span.failed";
|
|
1254
|
+
"generation.completed": "generation.completed";
|
|
1255
|
+
"tool.started": "tool.started";
|
|
1256
|
+
"tool.completed": "tool.completed";
|
|
1257
|
+
"tool.failed": "tool.failed";
|
|
1258
|
+
"interrupt.created": "interrupt.created";
|
|
1259
|
+
"interrupt.resolved": "interrupt.resolved";
|
|
1260
|
+
"interrupt.expired": "interrupt.expired";
|
|
1261
|
+
"interrupt.cancelled": "interrupt.cancelled";
|
|
1262
|
+
"run.cancelled": "run.cancelled";
|
|
1263
|
+
"workflow.transitioned": "workflow.transitioned";
|
|
1264
|
+
"workflow.call.started": "workflow.call.started";
|
|
1265
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
1266
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
1267
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
1268
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
1269
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
1270
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
1271
|
+
"session.checkpointed": "session.checkpointed";
|
|
1272
|
+
"session.forked": "session.forked";
|
|
1273
|
+
"session.rolled_back": "session.rolled_back";
|
|
1274
|
+
}>;
|
|
1275
|
+
occurredAt: z.ZodString;
|
|
1276
|
+
receivedAt: z.ZodString;
|
|
1277
|
+
environment: z.ZodString;
|
|
1278
|
+
serviceName: z.ZodString;
|
|
1279
|
+
deploymentRef: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
traceId: z.ZodNullable<z.ZodString>;
|
|
1281
|
+
spanId: z.ZodNullable<z.ZodString>;
|
|
1282
|
+
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
1283
|
+
runId: z.ZodString;
|
|
1284
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1285
|
+
workflowId: z.ZodString;
|
|
1286
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1287
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1288
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1289
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1290
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1291
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1292
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1293
|
+
}, z.core.$strict>>;
|
|
1294
|
+
session: z.ZodNullable<z.ZodObject<{
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
status: z.ZodEnum<{
|
|
1297
|
+
running: "running";
|
|
1298
|
+
completed: "completed";
|
|
1299
|
+
interrupted: "interrupted";
|
|
1300
|
+
incomplete: "incomplete";
|
|
1301
|
+
failed: "failed";
|
|
1302
|
+
cancelled: "cancelled";
|
|
1303
|
+
}>;
|
|
1304
|
+
lastActivityAt: z.ZodString;
|
|
1305
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1306
|
+
workflowCount: z.ZodNumber;
|
|
1307
|
+
activeWorkflowId: z.ZodNullable<z.ZodString>;
|
|
1308
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
1309
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1310
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1311
|
+
runs: z.ZodNumber;
|
|
1312
|
+
succeeded: z.ZodNumber;
|
|
1313
|
+
failed: z.ZodNumber;
|
|
1314
|
+
interrupted: z.ZodNumber;
|
|
1315
|
+
checkpoints: z.ZodNumber;
|
|
1316
|
+
hasFork: z.ZodBoolean;
|
|
1317
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1318
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1319
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1320
|
+
pricingStatus: z.ZodEnum<{
|
|
1321
|
+
unknown: "unknown";
|
|
1322
|
+
priced: "priced";
|
|
1323
|
+
unpriced: "unpriced";
|
|
1324
|
+
}>;
|
|
1325
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1326
|
+
provider: "provider";
|
|
1327
|
+
custom: "custom";
|
|
1328
|
+
sdk: "sdk";
|
|
1329
|
+
"project-rate-card": "project-rate-card";
|
|
1330
|
+
"default-rate-card": "default-rate-card";
|
|
1331
|
+
}>>;
|
|
1332
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1333
|
+
latestResult: z.ZodNullable<z.ZodString>;
|
|
1334
|
+
latestError: z.ZodNullable<z.ZodString>;
|
|
1335
|
+
pendingInterruptId: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1337
|
+
failed: "failed";
|
|
1338
|
+
cancelled: "cancelled";
|
|
1339
|
+
pending: "pending";
|
|
1340
|
+
resolved: "resolved";
|
|
1341
|
+
expired: "expired";
|
|
1342
|
+
}>>>;
|
|
1343
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1344
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1345
|
+
models: z.ZodArray<z.ZodString>;
|
|
1346
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1347
|
+
environment: z.ZodString;
|
|
1348
|
+
}, z.core.$strict>>;
|
|
1349
|
+
interrupts: z.ZodArray<z.ZodObject<{
|
|
1350
|
+
id: z.ZodString;
|
|
1351
|
+
status: z.ZodEnum<{
|
|
1352
|
+
failed: "failed";
|
|
1353
|
+
cancelled: "cancelled";
|
|
1354
|
+
pending: "pending";
|
|
1355
|
+
resolved: "resolved";
|
|
1356
|
+
expired: "expired";
|
|
1357
|
+
}>;
|
|
1358
|
+
type: z.ZodEnum<{
|
|
1359
|
+
unknown: "unknown";
|
|
1360
|
+
choice: "choice";
|
|
1361
|
+
"multi-choice": "multi-choice";
|
|
1362
|
+
text: "text";
|
|
1363
|
+
}>;
|
|
1364
|
+
interactionMode: z.ZodEnum<{
|
|
1365
|
+
unknown: "unknown";
|
|
1366
|
+
"static-options": "static-options";
|
|
1367
|
+
"dynamic-picker": "dynamic-picker";
|
|
1368
|
+
freeform: "freeform";
|
|
1369
|
+
}>;
|
|
1370
|
+
schemaId: z.ZodNullable<z.ZodString>;
|
|
1371
|
+
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1372
|
+
createdAt: z.ZodString;
|
|
1373
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
1374
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1375
|
+
question: z.ZodNullable<z.ZodString>;
|
|
1376
|
+
contentCaptured: z.ZodBoolean;
|
|
1377
|
+
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1378
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1379
|
+
id: z.ZodString;
|
|
1380
|
+
label: z.ZodString;
|
|
1381
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
}, z.core.$strict>>>;
|
|
1383
|
+
workflowId: z.ZodString;
|
|
1384
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1385
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1387
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
response: z.ZodNullable<z.ZodString>;
|
|
1389
|
+
responseCaptured: z.ZodBoolean;
|
|
1390
|
+
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1391
|
+
cancelled: "cancelled";
|
|
1392
|
+
resumed: "resumed";
|
|
1393
|
+
"resume failed": "resume failed";
|
|
1394
|
+
"expired before resume": "expired before resume";
|
|
1395
|
+
}>>;
|
|
1396
|
+
resumeError: z.ZodNullable<z.ZodString>;
|
|
1397
|
+
runId: z.ZodString;
|
|
1398
|
+
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1399
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1400
|
+
environment: z.ZodString;
|
|
1401
|
+
}, z.core.$strict>>;
|
|
1402
|
+
updatedAt: z.ZodString;
|
|
1403
|
+
}, z.core.$strict>;
|
|
1404
|
+
declare const StudioSessionDetailResponseSchema: z.ZodObject<{
|
|
1405
|
+
session: z.ZodObject<{
|
|
1406
|
+
id: z.ZodString;
|
|
1407
|
+
status: z.ZodEnum<{
|
|
1408
|
+
running: "running";
|
|
1409
|
+
completed: "completed";
|
|
1410
|
+
interrupted: "interrupted";
|
|
1411
|
+
incomplete: "incomplete";
|
|
1412
|
+
failed: "failed";
|
|
1413
|
+
cancelled: "cancelled";
|
|
1414
|
+
}>;
|
|
1415
|
+
lastActivityAt: z.ZodString;
|
|
1416
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1417
|
+
workflowCount: z.ZodNumber;
|
|
1418
|
+
activeWorkflowId: z.ZodNullable<z.ZodString>;
|
|
1419
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
1420
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1421
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1422
|
+
runs: z.ZodNumber;
|
|
1423
|
+
succeeded: z.ZodNumber;
|
|
1424
|
+
failed: z.ZodNumber;
|
|
1425
|
+
interrupted: z.ZodNumber;
|
|
1426
|
+
checkpoints: z.ZodNumber;
|
|
1427
|
+
hasFork: z.ZodBoolean;
|
|
1428
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1429
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1430
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1431
|
+
pricingStatus: z.ZodEnum<{
|
|
1432
|
+
unknown: "unknown";
|
|
1433
|
+
priced: "priced";
|
|
1434
|
+
unpriced: "unpriced";
|
|
1435
|
+
}>;
|
|
1436
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1437
|
+
provider: "provider";
|
|
1438
|
+
custom: "custom";
|
|
1439
|
+
sdk: "sdk";
|
|
1440
|
+
"project-rate-card": "project-rate-card";
|
|
1441
|
+
"default-rate-card": "default-rate-card";
|
|
1442
|
+
}>>;
|
|
1443
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1444
|
+
latestResult: z.ZodNullable<z.ZodString>;
|
|
1445
|
+
latestError: z.ZodNullable<z.ZodString>;
|
|
1446
|
+
pendingInterruptId: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1448
|
+
failed: "failed";
|
|
1449
|
+
cancelled: "cancelled";
|
|
1450
|
+
pending: "pending";
|
|
1451
|
+
resolved: "resolved";
|
|
1452
|
+
expired: "expired";
|
|
1453
|
+
}>>>;
|
|
1454
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1455
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1456
|
+
models: z.ZodArray<z.ZodString>;
|
|
1457
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1458
|
+
environment: z.ZodString;
|
|
1459
|
+
}, z.core.$strict>;
|
|
1460
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
id: z.ZodString;
|
|
1462
|
+
callerNodeId: z.ZodOptional<z.ZodString>;
|
|
1463
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
parentWorkflowId: z.ZodOptional<z.ZodString>;
|
|
1465
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
status: z.ZodEnum<{
|
|
1469
|
+
running: "running";
|
|
1470
|
+
completed: "completed";
|
|
1471
|
+
interrupted: "interrupted";
|
|
1472
|
+
incomplete: "incomplete";
|
|
1473
|
+
failed: "failed";
|
|
1474
|
+
cancelled: "cancelled";
|
|
1475
|
+
}>;
|
|
1476
|
+
startedAt: z.ZodString;
|
|
1477
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1478
|
+
workflowId: z.ZodString;
|
|
1479
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1480
|
+
workflowRefs: z.ZodArray<z.ZodObject<{
|
|
1481
|
+
workflowId: z.ZodString;
|
|
1482
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1483
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
}, z.core.$strict>>;
|
|
1485
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1486
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1487
|
+
transitionIds: z.ZodArray<z.ZodString>;
|
|
1488
|
+
path: z.ZodArray<z.ZodString>;
|
|
1489
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1490
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1491
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1492
|
+
models: z.ZodArray<z.ZodString>;
|
|
1493
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1494
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1495
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1496
|
+
pricingStatus: z.ZodEnum<{
|
|
1497
|
+
unknown: "unknown";
|
|
1498
|
+
priced: "priced";
|
|
1499
|
+
unpriced: "unpriced";
|
|
1500
|
+
}>;
|
|
1501
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1502
|
+
provider: "provider";
|
|
1503
|
+
custom: "custom";
|
|
1504
|
+
sdk: "sdk";
|
|
1505
|
+
"project-rate-card": "project-rate-card";
|
|
1506
|
+
"default-rate-card": "default-rate-card";
|
|
1507
|
+
}>>;
|
|
1508
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
result: z.ZodNullable<z.ZodString>;
|
|
1510
|
+
environment: z.ZodString;
|
|
1511
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1512
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1513
|
+
hasTool: z.ZodBoolean;
|
|
1514
|
+
hasRetry: z.ZodBoolean;
|
|
1515
|
+
interruptNodeId: z.ZodNullable<z.ZodString>;
|
|
1516
|
+
interruptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1517
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1518
|
+
failed: "failed";
|
|
1519
|
+
cancelled: "cancelled";
|
|
1520
|
+
pending: "pending";
|
|
1521
|
+
resolved: "resolved";
|
|
1522
|
+
expired: "expired";
|
|
1523
|
+
}>>>;
|
|
1524
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1525
|
+
}, z.core.$strict>>;
|
|
1526
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1527
|
+
id: z.ZodString;
|
|
1528
|
+
type: z.ZodEnum<{
|
|
1529
|
+
"span.started": "span.started";
|
|
1530
|
+
"span.ended": "span.ended";
|
|
1531
|
+
"span.failed": "span.failed";
|
|
1532
|
+
"generation.completed": "generation.completed";
|
|
1533
|
+
"tool.started": "tool.started";
|
|
1534
|
+
"tool.completed": "tool.completed";
|
|
1535
|
+
"tool.failed": "tool.failed";
|
|
1536
|
+
"interrupt.created": "interrupt.created";
|
|
1537
|
+
"interrupt.resolved": "interrupt.resolved";
|
|
1538
|
+
"interrupt.expired": "interrupt.expired";
|
|
1539
|
+
"interrupt.cancelled": "interrupt.cancelled";
|
|
1540
|
+
"run.cancelled": "run.cancelled";
|
|
1541
|
+
"workflow.transitioned": "workflow.transitioned";
|
|
1542
|
+
"workflow.call.started": "workflow.call.started";
|
|
1543
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
1544
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
1545
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
1546
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
1547
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
1548
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
1549
|
+
"session.checkpointed": "session.checkpointed";
|
|
1550
|
+
"session.forked": "session.forked";
|
|
1551
|
+
"session.rolled_back": "session.rolled_back";
|
|
1552
|
+
}>;
|
|
1553
|
+
occurredAt: z.ZodString;
|
|
1554
|
+
receivedAt: z.ZodString;
|
|
1555
|
+
environment: z.ZodString;
|
|
1556
|
+
serviceName: z.ZodString;
|
|
1557
|
+
deploymentRef: z.ZodNullable<z.ZodString>;
|
|
1558
|
+
traceId: z.ZodNullable<z.ZodString>;
|
|
1559
|
+
spanId: z.ZodNullable<z.ZodString>;
|
|
1560
|
+
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
1561
|
+
runId: z.ZodString;
|
|
1562
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1563
|
+
workflowId: z.ZodString;
|
|
1564
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1567
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1569
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1570
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1571
|
+
}, z.core.$strict>>;
|
|
1572
|
+
interrupts: z.ZodArray<z.ZodObject<{
|
|
1573
|
+
id: z.ZodString;
|
|
1574
|
+
status: z.ZodEnum<{
|
|
1575
|
+
failed: "failed";
|
|
1576
|
+
cancelled: "cancelled";
|
|
1577
|
+
pending: "pending";
|
|
1578
|
+
resolved: "resolved";
|
|
1579
|
+
expired: "expired";
|
|
1580
|
+
}>;
|
|
1581
|
+
type: z.ZodEnum<{
|
|
1582
|
+
unknown: "unknown";
|
|
1583
|
+
choice: "choice";
|
|
1584
|
+
"multi-choice": "multi-choice";
|
|
1585
|
+
text: "text";
|
|
1586
|
+
}>;
|
|
1587
|
+
interactionMode: z.ZodEnum<{
|
|
1588
|
+
unknown: "unknown";
|
|
1589
|
+
"static-options": "static-options";
|
|
1590
|
+
"dynamic-picker": "dynamic-picker";
|
|
1591
|
+
freeform: "freeform";
|
|
1592
|
+
}>;
|
|
1593
|
+
schemaId: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
createdAt: z.ZodString;
|
|
1596
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
1597
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1598
|
+
question: z.ZodNullable<z.ZodString>;
|
|
1599
|
+
contentCaptured: z.ZodBoolean;
|
|
1600
|
+
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1601
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1602
|
+
id: z.ZodString;
|
|
1603
|
+
label: z.ZodString;
|
|
1604
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1605
|
+
}, z.core.$strict>>>;
|
|
1606
|
+
workflowId: z.ZodString;
|
|
1607
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1608
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1609
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1610
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1611
|
+
response: z.ZodNullable<z.ZodString>;
|
|
1612
|
+
responseCaptured: z.ZodBoolean;
|
|
1613
|
+
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1614
|
+
cancelled: "cancelled";
|
|
1615
|
+
resumed: "resumed";
|
|
1616
|
+
"resume failed": "resume failed";
|
|
1617
|
+
"expired before resume": "expired before resume";
|
|
1618
|
+
}>>;
|
|
1619
|
+
resumeError: z.ZodNullable<z.ZodString>;
|
|
1620
|
+
runId: z.ZodString;
|
|
1621
|
+
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1622
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1623
|
+
environment: z.ZodString;
|
|
1624
|
+
}, z.core.$strict>>;
|
|
1625
|
+
updatedAt: z.ZodString;
|
|
1626
|
+
}, z.core.$strict>;
|
|
1627
|
+
declare const StudioInterruptDetailResponseSchema: z.ZodObject<{
|
|
1628
|
+
interrupt: z.ZodObject<{
|
|
1629
|
+
id: z.ZodString;
|
|
1630
|
+
status: z.ZodEnum<{
|
|
1631
|
+
failed: "failed";
|
|
1632
|
+
cancelled: "cancelled";
|
|
1633
|
+
pending: "pending";
|
|
1634
|
+
resolved: "resolved";
|
|
1635
|
+
expired: "expired";
|
|
1636
|
+
}>;
|
|
1637
|
+
type: z.ZodEnum<{
|
|
1638
|
+
unknown: "unknown";
|
|
1639
|
+
choice: "choice";
|
|
1640
|
+
"multi-choice": "multi-choice";
|
|
1641
|
+
text: "text";
|
|
1642
|
+
}>;
|
|
1643
|
+
interactionMode: z.ZodEnum<{
|
|
1644
|
+
unknown: "unknown";
|
|
1645
|
+
"static-options": "static-options";
|
|
1646
|
+
"dynamic-picker": "dynamic-picker";
|
|
1647
|
+
freeform: "freeform";
|
|
1648
|
+
}>;
|
|
1649
|
+
schemaId: z.ZodNullable<z.ZodString>;
|
|
1650
|
+
schemaVersion: z.ZodNullable<z.ZodString>;
|
|
1651
|
+
createdAt: z.ZodString;
|
|
1652
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
1653
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1654
|
+
question: z.ZodNullable<z.ZodString>;
|
|
1655
|
+
contentCaptured: z.ZodBoolean;
|
|
1656
|
+
optionCount: z.ZodNullable<z.ZodNumber>;
|
|
1657
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1658
|
+
id: z.ZodString;
|
|
1659
|
+
label: z.ZodString;
|
|
1660
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1661
|
+
}, z.core.$strict>>>;
|
|
1662
|
+
workflowId: z.ZodString;
|
|
1663
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1664
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1665
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1666
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1667
|
+
response: z.ZodNullable<z.ZodString>;
|
|
1668
|
+
responseCaptured: z.ZodBoolean;
|
|
1669
|
+
resumeOutcome: z.ZodNullable<z.ZodEnum<{
|
|
1670
|
+
cancelled: "cancelled";
|
|
1671
|
+
resumed: "resumed";
|
|
1672
|
+
"resume failed": "resume failed";
|
|
1673
|
+
"expired before resume": "expired before resume";
|
|
1674
|
+
}>>;
|
|
1675
|
+
resumeError: z.ZodNullable<z.ZodString>;
|
|
1676
|
+
runId: z.ZodString;
|
|
1677
|
+
resumeToken: z.ZodNullable<z.ZodString>;
|
|
1678
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
1679
|
+
environment: z.ZodString;
|
|
1680
|
+
}, z.core.$strict>;
|
|
1681
|
+
events: z.ZodArray<z.ZodObject<{
|
|
1682
|
+
id: z.ZodString;
|
|
1683
|
+
type: z.ZodEnum<{
|
|
1684
|
+
"span.started": "span.started";
|
|
1685
|
+
"span.ended": "span.ended";
|
|
1686
|
+
"span.failed": "span.failed";
|
|
1687
|
+
"generation.completed": "generation.completed";
|
|
1688
|
+
"tool.started": "tool.started";
|
|
1689
|
+
"tool.completed": "tool.completed";
|
|
1690
|
+
"tool.failed": "tool.failed";
|
|
1691
|
+
"interrupt.created": "interrupt.created";
|
|
1692
|
+
"interrupt.resolved": "interrupt.resolved";
|
|
1693
|
+
"interrupt.expired": "interrupt.expired";
|
|
1694
|
+
"interrupt.cancelled": "interrupt.cancelled";
|
|
1695
|
+
"run.cancelled": "run.cancelled";
|
|
1696
|
+
"workflow.transitioned": "workflow.transitioned";
|
|
1697
|
+
"workflow.call.started": "workflow.call.started";
|
|
1698
|
+
"workflow.call.suspended": "workflow.call.suspended";
|
|
1699
|
+
"workflow.call.resumed": "workflow.call.resumed";
|
|
1700
|
+
"workflow.call.completed": "workflow.call.completed";
|
|
1701
|
+
"workflow.call.failed": "workflow.call.failed";
|
|
1702
|
+
"workflow.call.reused": "workflow.call.reused";
|
|
1703
|
+
"workflow.call.restored": "workflow.call.restored";
|
|
1704
|
+
"session.checkpointed": "session.checkpointed";
|
|
1705
|
+
"session.forked": "session.forked";
|
|
1706
|
+
"session.rolled_back": "session.rolled_back";
|
|
1707
|
+
}>;
|
|
1708
|
+
occurredAt: z.ZodString;
|
|
1709
|
+
receivedAt: z.ZodString;
|
|
1710
|
+
environment: z.ZodString;
|
|
1711
|
+
serviceName: z.ZodString;
|
|
1712
|
+
deploymentRef: z.ZodNullable<z.ZodString>;
|
|
1713
|
+
traceId: z.ZodNullable<z.ZodString>;
|
|
1714
|
+
spanId: z.ZodNullable<z.ZodString>;
|
|
1715
|
+
parentSpanId: z.ZodNullable<z.ZodString>;
|
|
1716
|
+
runId: z.ZodString;
|
|
1717
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1718
|
+
workflowId: z.ZodString;
|
|
1719
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1720
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
1721
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1722
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1723
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1724
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1725
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1726
|
+
}, z.core.$strict>>;
|
|
1727
|
+
run: z.ZodNullable<z.ZodObject<{
|
|
1728
|
+
id: z.ZodString;
|
|
1729
|
+
callerNodeId: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
parentWorkflowId: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
status: z.ZodEnum<{
|
|
1736
|
+
running: "running";
|
|
1737
|
+
completed: "completed";
|
|
1738
|
+
interrupted: "interrupted";
|
|
1739
|
+
incomplete: "incomplete";
|
|
1740
|
+
failed: "failed";
|
|
1741
|
+
cancelled: "cancelled";
|
|
1742
|
+
}>;
|
|
1743
|
+
startedAt: z.ZodString;
|
|
1744
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1745
|
+
workflowId: z.ZodString;
|
|
1746
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1747
|
+
workflowRefs: z.ZodArray<z.ZodObject<{
|
|
1748
|
+
workflowId: z.ZodString;
|
|
1749
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1750
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1751
|
+
}, z.core.$strict>>;
|
|
1752
|
+
workflowRevisionId: z.ZodNullable<z.ZodString>;
|
|
1753
|
+
declaredVersion: z.ZodNullable<z.ZodString>;
|
|
1754
|
+
transitionIds: z.ZodArray<z.ZodString>;
|
|
1755
|
+
path: z.ZodArray<z.ZodString>;
|
|
1756
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1757
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1758
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1759
|
+
models: z.ZodArray<z.ZodString>;
|
|
1760
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1761
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1762
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1763
|
+
pricingStatus: z.ZodEnum<{
|
|
1764
|
+
unknown: "unknown";
|
|
1765
|
+
priced: "priced";
|
|
1766
|
+
unpriced: "unpriced";
|
|
1767
|
+
}>;
|
|
1768
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1769
|
+
provider: "provider";
|
|
1770
|
+
custom: "custom";
|
|
1771
|
+
sdk: "sdk";
|
|
1772
|
+
"project-rate-card": "project-rate-card";
|
|
1773
|
+
"default-rate-card": "default-rate-card";
|
|
1774
|
+
}>>;
|
|
1775
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1776
|
+
result: z.ZodNullable<z.ZodString>;
|
|
1777
|
+
environment: z.ZodString;
|
|
1778
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1779
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1780
|
+
hasTool: z.ZodBoolean;
|
|
1781
|
+
hasRetry: z.ZodBoolean;
|
|
1782
|
+
interruptNodeId: z.ZodNullable<z.ZodString>;
|
|
1783
|
+
interruptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1784
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1785
|
+
failed: "failed";
|
|
1786
|
+
cancelled: "cancelled";
|
|
1787
|
+
pending: "pending";
|
|
1788
|
+
resolved: "resolved";
|
|
1789
|
+
expired: "expired";
|
|
1790
|
+
}>>>;
|
|
1791
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1792
|
+
}, z.core.$strict>>;
|
|
1793
|
+
session: z.ZodNullable<z.ZodObject<{
|
|
1794
|
+
id: z.ZodString;
|
|
1795
|
+
status: z.ZodEnum<{
|
|
1796
|
+
running: "running";
|
|
1797
|
+
completed: "completed";
|
|
1798
|
+
interrupted: "interrupted";
|
|
1799
|
+
incomplete: "incomplete";
|
|
1800
|
+
failed: "failed";
|
|
1801
|
+
cancelled: "cancelled";
|
|
1802
|
+
}>;
|
|
1803
|
+
lastActivityAt: z.ZodString;
|
|
1804
|
+
workflowIds: z.ZodArray<z.ZodString>;
|
|
1805
|
+
workflowCount: z.ZodNumber;
|
|
1806
|
+
activeWorkflowId: z.ZodNullable<z.ZodString>;
|
|
1807
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
1808
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1809
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
1810
|
+
runs: z.ZodNumber;
|
|
1811
|
+
succeeded: z.ZodNumber;
|
|
1812
|
+
failed: z.ZodNumber;
|
|
1813
|
+
interrupted: z.ZodNumber;
|
|
1814
|
+
checkpoints: z.ZodNumber;
|
|
1815
|
+
hasFork: z.ZodBoolean;
|
|
1816
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1817
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
1818
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1819
|
+
pricingStatus: z.ZodEnum<{
|
|
1820
|
+
unknown: "unknown";
|
|
1821
|
+
priced: "priced";
|
|
1822
|
+
unpriced: "unpriced";
|
|
1823
|
+
}>;
|
|
1824
|
+
pricingSource: z.ZodNullable<z.ZodEnum<{
|
|
1825
|
+
provider: "provider";
|
|
1826
|
+
custom: "custom";
|
|
1827
|
+
sdk: "sdk";
|
|
1828
|
+
"project-rate-card": "project-rate-card";
|
|
1829
|
+
"default-rate-card": "default-rate-card";
|
|
1830
|
+
}>>;
|
|
1831
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1832
|
+
latestResult: z.ZodNullable<z.ZodString>;
|
|
1833
|
+
latestError: z.ZodNullable<z.ZodString>;
|
|
1834
|
+
pendingInterruptId: z.ZodNullable<z.ZodString>;
|
|
1835
|
+
interruptStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1836
|
+
failed: "failed";
|
|
1837
|
+
cancelled: "cancelled";
|
|
1838
|
+
pending: "pending";
|
|
1839
|
+
resolved: "resolved";
|
|
1840
|
+
expired: "expired";
|
|
1841
|
+
}>>>;
|
|
1842
|
+
interruptExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1843
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1844
|
+
models: z.ZodArray<z.ZodString>;
|
|
1845
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1846
|
+
environment: z.ZodString;
|
|
1847
|
+
}, z.core.$strict>>;
|
|
1848
|
+
updatedAt: z.ZodString;
|
|
1849
|
+
}, z.core.$strict>;
|
|
1850
|
+
declare const StudioWorkflowsResponseSchema: z.ZodObject<{
|
|
1851
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
1852
|
+
id: z.ZodString;
|
|
1853
|
+
name: z.ZodString;
|
|
1854
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1855
|
+
versions: z.ZodArray<z.ZodString>;
|
|
1856
|
+
activeVersion: z.ZodNullable<z.ZodString>;
|
|
1857
|
+
activeRevisionId: z.ZodNullable<z.ZodString>;
|
|
1858
|
+
health: z.ZodEnum<{
|
|
1859
|
+
unknown: "unknown";
|
|
1860
|
+
healthy: "healthy";
|
|
1861
|
+
degraded: "degraded";
|
|
1862
|
+
failing: "failing";
|
|
1863
|
+
idle: "idle";
|
|
1864
|
+
}>;
|
|
1865
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1866
|
+
lastActivityAt: z.ZodNullable<z.ZodString>;
|
|
1867
|
+
metrics: z.ZodObject<{
|
|
1868
|
+
runCount: z.ZodNumber;
|
|
1869
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
1870
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
1871
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
1872
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
1873
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1874
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1875
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1876
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1877
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1878
|
+
}, z.core.$strict>;
|
|
1879
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1880
|
+
id: z.ZodString;
|
|
1881
|
+
label: z.ZodString;
|
|
1882
|
+
type: z.ZodNullable<z.ZodString>;
|
|
1883
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
1884
|
+
interrupted: "interrupted";
|
|
1885
|
+
failed: "failed";
|
|
1886
|
+
healthy: "healthy";
|
|
1887
|
+
warning: "warning";
|
|
1888
|
+
retried: "retried";
|
|
1889
|
+
}>>;
|
|
1890
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1891
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1892
|
+
metrics: z.ZodObject<{
|
|
1893
|
+
runCount: z.ZodNumber;
|
|
1894
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
1895
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
1896
|
+
retryCount: z.ZodNullable<z.ZodNumber>;
|
|
1897
|
+
interruptRate: z.ZodNullable<z.ZodNumber>;
|
|
1898
|
+
p50DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1899
|
+
p95DurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1900
|
+
averageTokens: z.ZodNullable<z.ZodNumber>;
|
|
1901
|
+
averageCost: z.ZodNullable<z.ZodNumber>;
|
|
1902
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1903
|
+
}, z.core.$strict>;
|
|
1904
|
+
}, z.core.$strict>>;
|
|
1905
|
+
internalEdges: z.ZodArray<z.ZodObject<{
|
|
1906
|
+
id: z.ZodString;
|
|
1907
|
+
source: z.ZodString;
|
|
1908
|
+
target: z.ZodString;
|
|
1909
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
1910
|
+
}, z.core.$strict>>;
|
|
1911
|
+
}, z.core.$strict>>;
|
|
1912
|
+
observedCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1913
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1914
|
+
call: "call";
|
|
1915
|
+
handoff: "handoff";
|
|
1916
|
+
}>>;
|
|
1917
|
+
id: z.ZodString;
|
|
1918
|
+
sourceWorkflowId: z.ZodString;
|
|
1919
|
+
sourceNodeId: z.ZodNullable<z.ZodString>;
|
|
1920
|
+
targetWorkflowId: z.ZodString;
|
|
1921
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
1922
|
+
volume: z.ZodNumber;
|
|
1923
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
1924
|
+
medianDurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1925
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
1926
|
+
runId: z.ZodString;
|
|
1927
|
+
invocationId: z.ZodString;
|
|
1928
|
+
branchId: z.ZodString;
|
|
1929
|
+
}, z.core.$strict>>>;
|
|
1930
|
+
transitions: z.ZodArray<z.ZodObject<{
|
|
1931
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1932
|
+
call: "call";
|
|
1933
|
+
handoff: "handoff";
|
|
1934
|
+
}>>;
|
|
1935
|
+
id: z.ZodString;
|
|
1936
|
+
sourceWorkflowId: z.ZodString;
|
|
1937
|
+
sourceNodeId: z.ZodNullable<z.ZodString>;
|
|
1938
|
+
targetWorkflowId: z.ZodString;
|
|
1939
|
+
condition: z.ZodNullable<z.ZodString>;
|
|
1940
|
+
volume: z.ZodNumber;
|
|
1941
|
+
successRate: z.ZodNullable<z.ZodNumber>;
|
|
1942
|
+
medianDurationMs: z.ZodNullable<z.ZodNumber>;
|
|
1943
|
+
errorRate: z.ZodNullable<z.ZodNumber>;
|
|
1944
|
+
}, z.core.$strict>>;
|
|
1945
|
+
cohort: z.ZodObject<{
|
|
1946
|
+
range: z.ZodEnum<{
|
|
1947
|
+
"Last hour": "Last hour";
|
|
1948
|
+
"24 hours": "24 hours";
|
|
1949
|
+
"7 days": "7 days";
|
|
1950
|
+
"30 days": "30 days";
|
|
1951
|
+
"All time": "All time";
|
|
1952
|
+
"Custom range": "Custom range";
|
|
1953
|
+
}>;
|
|
1954
|
+
startedAfter: z.ZodNullable<z.ZodString>;
|
|
1955
|
+
startedBefore: z.ZodNullable<z.ZodString>;
|
|
1956
|
+
workflowId: z.ZodNullable<z.ZodString>;
|
|
1957
|
+
version: z.ZodNullable<z.ZodString>;
|
|
1958
|
+
}, z.core.$strict>;
|
|
1959
|
+
}, z.core.$strict>;
|
|
1960
|
+
declare const StudioCatalogsResponseSchema: z.ZodObject<{
|
|
1961
|
+
environments: z.ZodArray<z.ZodString>;
|
|
1962
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1963
|
+
models: z.ZodArray<z.ZodString>;
|
|
1964
|
+
workflows: z.ZodArray<z.ZodString>;
|
|
1965
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1966
|
+
}, z.core.$strict>;
|
|
1967
|
+
declare const StudioContextResponseSchema: z.ZodObject<{
|
|
1968
|
+
organization: z.ZodObject<{
|
|
1969
|
+
name: z.ZodString;
|
|
1970
|
+
}, z.core.$strict>;
|
|
1971
|
+
project: z.ZodObject<{
|
|
1972
|
+
name: z.ZodString;
|
|
1973
|
+
}, z.core.$strict>;
|
|
1974
|
+
environments: z.ZodArray<z.ZodString>;
|
|
1975
|
+
apiKey: z.ZodObject<{
|
|
1976
|
+
mode: z.ZodEnum<{
|
|
1977
|
+
test: "test";
|
|
1978
|
+
live: "live";
|
|
1979
|
+
}>;
|
|
1980
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
1981
|
+
}, z.core.$strict>;
|
|
1982
|
+
api: z.ZodObject<{
|
|
1983
|
+
status: z.ZodLiteral<"ok">;
|
|
1984
|
+
service: z.ZodLiteral<"kortyx-api">;
|
|
1985
|
+
version: z.ZodString;
|
|
1986
|
+
}, z.core.$strict>;
|
|
1987
|
+
}, z.core.$strict>;
|
|
1988
|
+
type StudioRunStatus = z.infer<typeof StudioRunStatusSchema>;
|
|
1989
|
+
type StudioTimeRange = z.infer<typeof StudioTimeRangeSchema>;
|
|
1990
|
+
type StudioTimeRangeContext = z.infer<typeof StudioTimeRangeContextSchema>;
|
|
1991
|
+
type StudioInterruptStatus = z.infer<typeof StudioInterruptStatusSchema>;
|
|
1992
|
+
type StudioInterruptType = z.infer<typeof StudioInterruptTypeSchema>;
|
|
1993
|
+
type StudioInterruptInteractionMode = z.infer<typeof StudioInterruptInteractionModeSchema>;
|
|
1994
|
+
type StudioInterruptOption = z.infer<typeof StudioInterruptOptionSchema>;
|
|
1995
|
+
type StudioResumeOutcome = z.infer<typeof StudioResumeOutcomeSchema>;
|
|
1996
|
+
type StudioWorkflowHealth = z.infer<typeof StudioWorkflowHealthSchema>;
|
|
1997
|
+
type StudioPricingStatus = z.infer<typeof StudioPricingStatusSchema>;
|
|
1998
|
+
type StudioPricingSource = z.infer<typeof StudioPricingSourceSchema>;
|
|
1999
|
+
type StudioChangeResource = z.infer<typeof StudioChangeResourceSchema>;
|
|
2000
|
+
type StudioChange = z.infer<typeof StudioChangeSchema>;
|
|
2001
|
+
type StudioMetric = z.infer<typeof StudioMetricSchema>;
|
|
2002
|
+
type StudioRun = z.infer<typeof StudioRunSchema>;
|
|
2003
|
+
type StudioSession = z.infer<typeof StudioSessionSchema>;
|
|
2004
|
+
type StudioInterrupt = z.infer<typeof StudioInterruptSchema>;
|
|
2005
|
+
type StudioWorkflowNode = z.infer<typeof StudioWorkflowNodeSchema>;
|
|
2006
|
+
type StudioWorkflowInternalEdge = z.infer<typeof StudioWorkflowInternalEdgeSchema>;
|
|
2007
|
+
type StudioWorkflowTransition = z.infer<typeof StudioWorkflowTransitionSchema>;
|
|
2008
|
+
type StudioWorkflow = z.infer<typeof StudioWorkflowSchema>;
|
|
2009
|
+
type StudioRunsResponse = z.infer<typeof StudioRunsResponseSchema>;
|
|
2010
|
+
type StudioSessionsResponse = z.infer<typeof StudioSessionsResponseSchema>;
|
|
2011
|
+
type StudioInterruptsResponse = z.infer<typeof StudioInterruptsResponseSchema>;
|
|
2012
|
+
type StudioDetailEvent = z.infer<typeof StudioDetailEventSchema>;
|
|
2013
|
+
type StudioRunDetailResponse = z.infer<typeof StudioRunDetailResponseSchema>;
|
|
2014
|
+
type StudioSessionDetailResponse = z.infer<typeof StudioSessionDetailResponseSchema>;
|
|
2015
|
+
type StudioInterruptDetailResponse = z.infer<typeof StudioInterruptDetailResponseSchema>;
|
|
2016
|
+
type StudioWorkflowsResponse = z.infer<typeof StudioWorkflowsResponseSchema>;
|
|
2017
|
+
type StudioCatalogsResponse = z.infer<typeof StudioCatalogsResponseSchema>;
|
|
2018
|
+
type StudioContextResponse = z.infer<typeof StudioContextResponseSchema>;
|
|
172
2019
|
|
|
173
|
-
export { type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, TELEMETRY_EVENT_TYPES, TelemetryEventBatchSchema, TelemetryEventSchema, TelemetryEventTypeSchema, TelemetryServiceSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema };
|
|
2020
|
+
export { type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, type KortyxWorkflowTopologyTransition, 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 StudioResumeOutcome, StudioResumeOutcomeSchema, type StudioRun, type StudioRunDetailResponse, StudioRunDetailResponseSchema, StudioRunSchema, type StudioRunStatus, StudioRunStatusSchema, type StudioRunsResponse, StudioRunsResponseSchema, type StudioSession, type StudioSessionDetailResponse, StudioSessionDetailResponseSchema, StudioSessionSchema, type StudioSessionsResponse, StudioSessionsResponseSchema, type StudioTimeRange, type StudioTimeRangeContext, StudioTimeRangeContextSchema, StudioTimeRangeQuerySchema, type StudioTimeRangeResolution, StudioTimeRangeSchema, 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, WorkflowTopologyCallSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema, WorkflowTopologyTransitionSchema, projectWorkflowCalls, resolveStudioInterruptStatus, resolveStudioTimeRange };
|