@assemble-dev/shared-types 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PQRNSB4E.js → chunk-KU4NYNO3.js} +46 -3
- package/dist/index.cjs +49 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/trace-events.cjs +49 -2
- package/dist/trace-events.d.cts +170 -1
- package/dist/trace-events.d.ts +170 -1
- package/dist/trace-events.js +11 -1
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@ import {
|
|
|
2
2
|
RunMetadataSchema
|
|
3
3
|
} from "./chunk-F5XOAPYA.js";
|
|
4
4
|
import {
|
|
5
|
-
PolicyActionSchema
|
|
5
|
+
PolicyActionSchema,
|
|
6
|
+
TokenUsageSchema
|
|
6
7
|
} from "./chunk-WTIOTJHP.js";
|
|
7
8
|
import {
|
|
8
9
|
JsonValueSchema
|
|
@@ -47,7 +48,8 @@ var AgentCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
47
48
|
type: z.literal("agent.completed"),
|
|
48
49
|
agentName: z.string(),
|
|
49
50
|
output: JsonValueSchema,
|
|
50
|
-
latencyMs: z.number().nonnegative()
|
|
51
|
+
latencyMs: z.number().nonnegative(),
|
|
52
|
+
modelName: z.string().optional()
|
|
51
53
|
});
|
|
52
54
|
var AgentFailedEventSchema = TraceEventBaseSchema.extend({
|
|
53
55
|
type: z.literal("agent.failed"),
|
|
@@ -144,6 +146,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
144
146
|
sourceRunId: z.string(),
|
|
145
147
|
latencyMs: z.number().nonnegative()
|
|
146
148
|
});
|
|
149
|
+
var BatchRequestCountsSchema = z.object({
|
|
150
|
+
processing: z.number().int().nonnegative(),
|
|
151
|
+
succeeded: z.number().int().nonnegative(),
|
|
152
|
+
errored: z.number().int().nonnegative(),
|
|
153
|
+
canceled: z.number().int().nonnegative(),
|
|
154
|
+
expired: z.number().int().nonnegative()
|
|
155
|
+
});
|
|
156
|
+
var BatchResultOutcomeTypeSchema = z.enum([
|
|
157
|
+
"succeeded",
|
|
158
|
+
"errored",
|
|
159
|
+
"canceled",
|
|
160
|
+
"expired"
|
|
161
|
+
]);
|
|
162
|
+
var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
|
|
163
|
+
type: z.literal("batch.submitted"),
|
|
164
|
+
batchId: z.string(),
|
|
165
|
+
requestCount: z.number().int().nonnegative(),
|
|
166
|
+
models: z.array(z.string())
|
|
167
|
+
});
|
|
168
|
+
var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
169
|
+
type: z.literal("batch.completed"),
|
|
170
|
+
batchId: z.string(),
|
|
171
|
+
requestCounts: BatchRequestCountsSchema,
|
|
172
|
+
latencyMs: z.number().nonnegative()
|
|
173
|
+
});
|
|
174
|
+
var BatchResultEventSchema = TraceEventBaseSchema.extend({
|
|
175
|
+
type: z.literal("batch.result"),
|
|
176
|
+
batchId: z.string(),
|
|
177
|
+
customId: z.string(),
|
|
178
|
+
outcomeType: BatchResultOutcomeTypeSchema,
|
|
179
|
+
tokenUsage: TokenUsageSchema.optional(),
|
|
180
|
+
costUsd: z.number().nullable()
|
|
181
|
+
});
|
|
147
182
|
var TraceEventSchema = z.discriminatedUnion("type", [
|
|
148
183
|
RunStartedEventSchema,
|
|
149
184
|
RunCompletedEventSchema,
|
|
@@ -164,7 +199,10 @@ var TraceEventSchema = z.discriminatedUnion("type", [
|
|
|
164
199
|
EvalStartedEventSchema,
|
|
165
200
|
EvalCompletedEventSchema,
|
|
166
201
|
ReplayStartedEventSchema,
|
|
167
|
-
ReplayCompletedEventSchema
|
|
202
|
+
ReplayCompletedEventSchema,
|
|
203
|
+
BatchSubmittedEventSchema,
|
|
204
|
+
BatchCompletedEventSchema,
|
|
205
|
+
BatchResultEventSchema
|
|
168
206
|
]);
|
|
169
207
|
var traceEventTypes = TraceEventSchema.options.map(
|
|
170
208
|
(option) => option.shape.type.value
|
|
@@ -192,6 +230,11 @@ export {
|
|
|
192
230
|
EvalCompletedEventSchema,
|
|
193
231
|
ReplayStartedEventSchema,
|
|
194
232
|
ReplayCompletedEventSchema,
|
|
233
|
+
BatchRequestCountsSchema,
|
|
234
|
+
BatchResultOutcomeTypeSchema,
|
|
235
|
+
BatchSubmittedEventSchema,
|
|
236
|
+
BatchCompletedEventSchema,
|
|
237
|
+
BatchResultEventSchema,
|
|
195
238
|
TraceEventSchema,
|
|
196
239
|
traceEventTypes
|
|
197
240
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,11 @@ __export(index_exports, {
|
|
|
31
31
|
ApprovalRejectedEventSchema: () => ApprovalRejectedEventSchema,
|
|
32
32
|
ApprovalRequiredEventSchema: () => ApprovalRequiredEventSchema,
|
|
33
33
|
ApprovalStatusSchema: () => ApprovalStatusSchema,
|
|
34
|
+
BatchCompletedEventSchema: () => BatchCompletedEventSchema,
|
|
35
|
+
BatchRequestCountsSchema: () => BatchRequestCountsSchema,
|
|
36
|
+
BatchResultEventSchema: () => BatchResultEventSchema,
|
|
37
|
+
BatchResultOutcomeTypeSchema: () => BatchResultOutcomeTypeSchema,
|
|
38
|
+
BatchSubmittedEventSchema: () => BatchSubmittedEventSchema,
|
|
34
39
|
EvalCompletedEventSchema: () => EvalCompletedEventSchema,
|
|
35
40
|
EvalStartedEventSchema: () => EvalStartedEventSchema,
|
|
36
41
|
JsonObjectSchema: () => JsonObjectSchema,
|
|
@@ -294,7 +299,8 @@ var AgentCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
294
299
|
type: import_zod5.z.literal("agent.completed"),
|
|
295
300
|
agentName: import_zod5.z.string(),
|
|
296
301
|
output: JsonValueSchema,
|
|
297
|
-
latencyMs: import_zod5.z.number().nonnegative()
|
|
302
|
+
latencyMs: import_zod5.z.number().nonnegative(),
|
|
303
|
+
modelName: import_zod5.z.string().optional()
|
|
298
304
|
});
|
|
299
305
|
var AgentFailedEventSchema = TraceEventBaseSchema.extend({
|
|
300
306
|
type: import_zod5.z.literal("agent.failed"),
|
|
@@ -391,6 +397,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
391
397
|
sourceRunId: import_zod5.z.string(),
|
|
392
398
|
latencyMs: import_zod5.z.number().nonnegative()
|
|
393
399
|
});
|
|
400
|
+
var BatchRequestCountsSchema = import_zod5.z.object({
|
|
401
|
+
processing: import_zod5.z.number().int().nonnegative(),
|
|
402
|
+
succeeded: import_zod5.z.number().int().nonnegative(),
|
|
403
|
+
errored: import_zod5.z.number().int().nonnegative(),
|
|
404
|
+
canceled: import_zod5.z.number().int().nonnegative(),
|
|
405
|
+
expired: import_zod5.z.number().int().nonnegative()
|
|
406
|
+
});
|
|
407
|
+
var BatchResultOutcomeTypeSchema = import_zod5.z.enum([
|
|
408
|
+
"succeeded",
|
|
409
|
+
"errored",
|
|
410
|
+
"canceled",
|
|
411
|
+
"expired"
|
|
412
|
+
]);
|
|
413
|
+
var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
|
|
414
|
+
type: import_zod5.z.literal("batch.submitted"),
|
|
415
|
+
batchId: import_zod5.z.string(),
|
|
416
|
+
requestCount: import_zod5.z.number().int().nonnegative(),
|
|
417
|
+
models: import_zod5.z.array(import_zod5.z.string())
|
|
418
|
+
});
|
|
419
|
+
var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
420
|
+
type: import_zod5.z.literal("batch.completed"),
|
|
421
|
+
batchId: import_zod5.z.string(),
|
|
422
|
+
requestCounts: BatchRequestCountsSchema,
|
|
423
|
+
latencyMs: import_zod5.z.number().nonnegative()
|
|
424
|
+
});
|
|
425
|
+
var BatchResultEventSchema = TraceEventBaseSchema.extend({
|
|
426
|
+
type: import_zod5.z.literal("batch.result"),
|
|
427
|
+
batchId: import_zod5.z.string(),
|
|
428
|
+
customId: import_zod5.z.string(),
|
|
429
|
+
outcomeType: BatchResultOutcomeTypeSchema,
|
|
430
|
+
tokenUsage: TokenUsageSchema.optional(),
|
|
431
|
+
costUsd: import_zod5.z.number().nullable()
|
|
432
|
+
});
|
|
394
433
|
var TraceEventSchema = import_zod5.z.discriminatedUnion("type", [
|
|
395
434
|
RunStartedEventSchema,
|
|
396
435
|
RunCompletedEventSchema,
|
|
@@ -411,7 +450,10 @@ var TraceEventSchema = import_zod5.z.discriminatedUnion("type", [
|
|
|
411
450
|
EvalStartedEventSchema,
|
|
412
451
|
EvalCompletedEventSchema,
|
|
413
452
|
ReplayStartedEventSchema,
|
|
414
|
-
ReplayCompletedEventSchema
|
|
453
|
+
ReplayCompletedEventSchema,
|
|
454
|
+
BatchSubmittedEventSchema,
|
|
455
|
+
BatchCompletedEventSchema,
|
|
456
|
+
BatchResultEventSchema
|
|
415
457
|
]);
|
|
416
458
|
var traceEventTypes = TraceEventSchema.options.map(
|
|
417
459
|
(option) => option.shape.type.value
|
|
@@ -429,6 +471,11 @@ var traceEventTypes = TraceEventSchema.options.map(
|
|
|
429
471
|
ApprovalRejectedEventSchema,
|
|
430
472
|
ApprovalRequiredEventSchema,
|
|
431
473
|
ApprovalStatusSchema,
|
|
474
|
+
BatchCompletedEventSchema,
|
|
475
|
+
BatchRequestCountsSchema,
|
|
476
|
+
BatchResultEventSchema,
|
|
477
|
+
BatchResultOutcomeTypeSchema,
|
|
478
|
+
BatchSubmittedEventSchema,
|
|
432
479
|
EvalCompletedEventSchema,
|
|
433
480
|
EvalStartedEventSchema,
|
|
434
481
|
JsonObjectSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,6 @@ export { AppErrorCode, AppErrorDetails, AppErrorInput, AppErrorResponse } from '
|
|
|
3
3
|
export { JsonObject, JsonObjectSchema, JsonPrimitive, JsonPrimitiveSchema, JsonValue, JsonValueSchema } from './json.cjs';
|
|
4
4
|
export { RunMetadata, RunMetadataSchema } from './run-metadata.cjs';
|
|
5
5
|
export { AgentCall, AgentCallSchema, AgentCallStatus, AgentCallStatusSchema, ApprovalStatus, ApprovalStatusSchema, PolicyAction, PolicyActionSchema, PolicyDecision, PolicyDecisionSchema, RoutingDecision, RoutingDecisionSchema, RunApproval, RunApprovalSchema, RunArtifact, RunArtifactSchema, RunError, RunErrorSchema, RunMessage, RunMessageRole, RunMessageRoleSchema, RunMessageSchema, RunMetrics, RunMetricsSchema, RunState, RunStateSchema, RunStatus, RunStatusSchema, TokenUsage, TokenUsageSchema, ToolCall, ToolCallSchema, ToolCallStatus, ToolCallStatusSchema } from './runs.cjs';
|
|
6
|
-
export { AgentCompletedEvent, AgentCompletedEventSchema, AgentFailedEvent, AgentFailedEventSchema, AgentStartedEvent, AgentStartedEventSchema, ApprovalApprovedEvent, ApprovalApprovedEventSchema, ApprovalRejectedEvent, ApprovalRejectedEventSchema, ApprovalRequiredEvent, ApprovalRequiredEventSchema, EvalCompletedEvent, EvalCompletedEventSchema, EvalStartedEvent, EvalStartedEventSchema, PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, ReplayCompletedEvent, ReplayCompletedEventSchema, ReplayStartedEvent, ReplayStartedEventSchema, RouteSelectedEvent, RouteSelectedEventSchema, RunCompletedEvent, RunCompletedEventSchema, RunFailedEvent, RunFailedEventSchema, RunStartedEvent, RunStartedEventSchema, ToolApprovedEvent, ToolApprovedEventSchema, ToolBlockedEvent, ToolBlockedEventSchema, ToolCompletedEvent, ToolCompletedEventSchema, ToolFailedEvent, ToolFailedEventSchema, ToolRequestedEvent, ToolRequestedEventSchema, TraceEvent, TraceEventError, TraceEventErrorSchema, TraceEventSchema, TraceEventType, traceEventTypes } from './trace-events.cjs';
|
|
6
|
+
export { AgentCompletedEvent, AgentCompletedEventSchema, AgentFailedEvent, AgentFailedEventSchema, AgentStartedEvent, AgentStartedEventSchema, ApprovalApprovedEvent, ApprovalApprovedEventSchema, ApprovalRejectedEvent, ApprovalRejectedEventSchema, ApprovalRequiredEvent, ApprovalRequiredEventSchema, BatchCompletedEvent, BatchCompletedEventSchema, BatchRequestCounts, BatchRequestCountsSchema, BatchResultEvent, BatchResultEventSchema, BatchResultOutcomeType, BatchResultOutcomeTypeSchema, BatchSubmittedEvent, BatchSubmittedEventSchema, EvalCompletedEvent, EvalCompletedEventSchema, EvalStartedEvent, EvalStartedEventSchema, PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, ReplayCompletedEvent, ReplayCompletedEventSchema, ReplayStartedEvent, ReplayStartedEventSchema, RouteSelectedEvent, RouteSelectedEventSchema, RunCompletedEvent, RunCompletedEventSchema, RunFailedEvent, RunFailedEventSchema, RunStartedEvent, RunStartedEventSchema, ToolApprovedEvent, ToolApprovedEventSchema, ToolBlockedEvent, ToolBlockedEventSchema, ToolCompletedEvent, ToolCompletedEventSchema, ToolFailedEvent, ToolFailedEventSchema, ToolRequestedEvent, ToolRequestedEventSchema, TraceEvent, TraceEventError, TraceEventErrorSchema, TraceEventSchema, TraceEventType, traceEventTypes } from './trace-events.cjs';
|
|
7
7
|
export { SchemaValidationFailure, SchemaValidationIssue, SchemaValidationResult, SchemaValidationSuccess, ValidationSchema } from './validation.cjs';
|
|
8
8
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { AppErrorCode, AppErrorDetails, AppErrorInput, AppErrorResponse } from '
|
|
|
3
3
|
export { JsonObject, JsonObjectSchema, JsonPrimitive, JsonPrimitiveSchema, JsonValue, JsonValueSchema } from './json.js';
|
|
4
4
|
export { RunMetadata, RunMetadataSchema } from './run-metadata.js';
|
|
5
5
|
export { AgentCall, AgentCallSchema, AgentCallStatus, AgentCallStatusSchema, ApprovalStatus, ApprovalStatusSchema, PolicyAction, PolicyActionSchema, PolicyDecision, PolicyDecisionSchema, RoutingDecision, RoutingDecisionSchema, RunApproval, RunApprovalSchema, RunArtifact, RunArtifactSchema, RunError, RunErrorSchema, RunMessage, RunMessageRole, RunMessageRoleSchema, RunMessageSchema, RunMetrics, RunMetricsSchema, RunState, RunStateSchema, RunStatus, RunStatusSchema, TokenUsage, TokenUsageSchema, ToolCall, ToolCallSchema, ToolCallStatus, ToolCallStatusSchema } from './runs.js';
|
|
6
|
-
export { AgentCompletedEvent, AgentCompletedEventSchema, AgentFailedEvent, AgentFailedEventSchema, AgentStartedEvent, AgentStartedEventSchema, ApprovalApprovedEvent, ApprovalApprovedEventSchema, ApprovalRejectedEvent, ApprovalRejectedEventSchema, ApprovalRequiredEvent, ApprovalRequiredEventSchema, EvalCompletedEvent, EvalCompletedEventSchema, EvalStartedEvent, EvalStartedEventSchema, PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, ReplayCompletedEvent, ReplayCompletedEventSchema, ReplayStartedEvent, ReplayStartedEventSchema, RouteSelectedEvent, RouteSelectedEventSchema, RunCompletedEvent, RunCompletedEventSchema, RunFailedEvent, RunFailedEventSchema, RunStartedEvent, RunStartedEventSchema, ToolApprovedEvent, ToolApprovedEventSchema, ToolBlockedEvent, ToolBlockedEventSchema, ToolCompletedEvent, ToolCompletedEventSchema, ToolFailedEvent, ToolFailedEventSchema, ToolRequestedEvent, ToolRequestedEventSchema, TraceEvent, TraceEventError, TraceEventErrorSchema, TraceEventSchema, TraceEventType, traceEventTypes } from './trace-events.js';
|
|
6
|
+
export { AgentCompletedEvent, AgentCompletedEventSchema, AgentFailedEvent, AgentFailedEventSchema, AgentStartedEvent, AgentStartedEventSchema, ApprovalApprovedEvent, ApprovalApprovedEventSchema, ApprovalRejectedEvent, ApprovalRejectedEventSchema, ApprovalRequiredEvent, ApprovalRequiredEventSchema, BatchCompletedEvent, BatchCompletedEventSchema, BatchRequestCounts, BatchRequestCountsSchema, BatchResultEvent, BatchResultEventSchema, BatchResultOutcomeType, BatchResultOutcomeTypeSchema, BatchSubmittedEvent, BatchSubmittedEventSchema, EvalCompletedEvent, EvalCompletedEventSchema, EvalStartedEvent, EvalStartedEventSchema, PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, ReplayCompletedEvent, ReplayCompletedEventSchema, ReplayStartedEvent, ReplayStartedEventSchema, RouteSelectedEvent, RouteSelectedEventSchema, RunCompletedEvent, RunCompletedEventSchema, RunFailedEvent, RunFailedEventSchema, RunStartedEvent, RunStartedEventSchema, ToolApprovedEvent, ToolApprovedEventSchema, ToolBlockedEvent, ToolBlockedEventSchema, ToolCompletedEvent, ToolCompletedEventSchema, ToolFailedEvent, ToolFailedEventSchema, ToolRequestedEvent, ToolRequestedEventSchema, TraceEvent, TraceEventError, TraceEventErrorSchema, TraceEventSchema, TraceEventType, traceEventTypes } from './trace-events.js';
|
|
7
7
|
export { SchemaValidationFailure, SchemaValidationIssue, SchemaValidationResult, SchemaValidationSuccess, ValidationSchema } from './validation.js';
|
|
8
8
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,11 @@ import {
|
|
|
11
11
|
ApprovalApprovedEventSchema,
|
|
12
12
|
ApprovalRejectedEventSchema,
|
|
13
13
|
ApprovalRequiredEventSchema,
|
|
14
|
+
BatchCompletedEventSchema,
|
|
15
|
+
BatchRequestCountsSchema,
|
|
16
|
+
BatchResultEventSchema,
|
|
17
|
+
BatchResultOutcomeTypeSchema,
|
|
18
|
+
BatchSubmittedEventSchema,
|
|
14
19
|
EvalCompletedEventSchema,
|
|
15
20
|
EvalStartedEventSchema,
|
|
16
21
|
PolicyEvaluatedEventSchema,
|
|
@@ -28,7 +33,7 @@ import {
|
|
|
28
33
|
TraceEventErrorSchema,
|
|
29
34
|
TraceEventSchema,
|
|
30
35
|
traceEventTypes
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KU4NYNO3.js";
|
|
32
37
|
import {
|
|
33
38
|
RunMetadataSchema
|
|
34
39
|
} from "./chunk-F5XOAPYA.js";
|
|
@@ -69,6 +74,11 @@ export {
|
|
|
69
74
|
ApprovalRejectedEventSchema,
|
|
70
75
|
ApprovalRequiredEventSchema,
|
|
71
76
|
ApprovalStatusSchema,
|
|
77
|
+
BatchCompletedEventSchema,
|
|
78
|
+
BatchRequestCountsSchema,
|
|
79
|
+
BatchResultEventSchema,
|
|
80
|
+
BatchResultOutcomeTypeSchema,
|
|
81
|
+
BatchSubmittedEventSchema,
|
|
72
82
|
EvalCompletedEventSchema,
|
|
73
83
|
EvalStartedEventSchema,
|
|
74
84
|
JsonObjectSchema,
|
package/dist/trace-events.cjs
CHANGED
|
@@ -26,6 +26,11 @@ __export(trace_events_exports, {
|
|
|
26
26
|
ApprovalApprovedEventSchema: () => ApprovalApprovedEventSchema,
|
|
27
27
|
ApprovalRejectedEventSchema: () => ApprovalRejectedEventSchema,
|
|
28
28
|
ApprovalRequiredEventSchema: () => ApprovalRequiredEventSchema,
|
|
29
|
+
BatchCompletedEventSchema: () => BatchCompletedEventSchema,
|
|
30
|
+
BatchRequestCountsSchema: () => BatchRequestCountsSchema,
|
|
31
|
+
BatchResultEventSchema: () => BatchResultEventSchema,
|
|
32
|
+
BatchResultOutcomeTypeSchema: () => BatchResultOutcomeTypeSchema,
|
|
33
|
+
BatchSubmittedEventSchema: () => BatchSubmittedEventSchema,
|
|
29
34
|
EvalCompletedEventSchema: () => EvalCompletedEventSchema,
|
|
30
35
|
EvalStartedEventSchema: () => EvalStartedEventSchema,
|
|
31
36
|
PolicyEvaluatedEventSchema: () => PolicyEvaluatedEventSchema,
|
|
@@ -249,7 +254,8 @@ var AgentCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
249
254
|
type: import_zod4.z.literal("agent.completed"),
|
|
250
255
|
agentName: import_zod4.z.string(),
|
|
251
256
|
output: JsonValueSchema,
|
|
252
|
-
latencyMs: import_zod4.z.number().nonnegative()
|
|
257
|
+
latencyMs: import_zod4.z.number().nonnegative(),
|
|
258
|
+
modelName: import_zod4.z.string().optional()
|
|
253
259
|
});
|
|
254
260
|
var AgentFailedEventSchema = TraceEventBaseSchema.extend({
|
|
255
261
|
type: import_zod4.z.literal("agent.failed"),
|
|
@@ -346,6 +352,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
|
346
352
|
sourceRunId: import_zod4.z.string(),
|
|
347
353
|
latencyMs: import_zod4.z.number().nonnegative()
|
|
348
354
|
});
|
|
355
|
+
var BatchRequestCountsSchema = import_zod4.z.object({
|
|
356
|
+
processing: import_zod4.z.number().int().nonnegative(),
|
|
357
|
+
succeeded: import_zod4.z.number().int().nonnegative(),
|
|
358
|
+
errored: import_zod4.z.number().int().nonnegative(),
|
|
359
|
+
canceled: import_zod4.z.number().int().nonnegative(),
|
|
360
|
+
expired: import_zod4.z.number().int().nonnegative()
|
|
361
|
+
});
|
|
362
|
+
var BatchResultOutcomeTypeSchema = import_zod4.z.enum([
|
|
363
|
+
"succeeded",
|
|
364
|
+
"errored",
|
|
365
|
+
"canceled",
|
|
366
|
+
"expired"
|
|
367
|
+
]);
|
|
368
|
+
var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
|
|
369
|
+
type: import_zod4.z.literal("batch.submitted"),
|
|
370
|
+
batchId: import_zod4.z.string(),
|
|
371
|
+
requestCount: import_zod4.z.number().int().nonnegative(),
|
|
372
|
+
models: import_zod4.z.array(import_zod4.z.string())
|
|
373
|
+
});
|
|
374
|
+
var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
|
|
375
|
+
type: import_zod4.z.literal("batch.completed"),
|
|
376
|
+
batchId: import_zod4.z.string(),
|
|
377
|
+
requestCounts: BatchRequestCountsSchema,
|
|
378
|
+
latencyMs: import_zod4.z.number().nonnegative()
|
|
379
|
+
});
|
|
380
|
+
var BatchResultEventSchema = TraceEventBaseSchema.extend({
|
|
381
|
+
type: import_zod4.z.literal("batch.result"),
|
|
382
|
+
batchId: import_zod4.z.string(),
|
|
383
|
+
customId: import_zod4.z.string(),
|
|
384
|
+
outcomeType: BatchResultOutcomeTypeSchema,
|
|
385
|
+
tokenUsage: TokenUsageSchema.optional(),
|
|
386
|
+
costUsd: import_zod4.z.number().nullable()
|
|
387
|
+
});
|
|
349
388
|
var TraceEventSchema = import_zod4.z.discriminatedUnion("type", [
|
|
350
389
|
RunStartedEventSchema,
|
|
351
390
|
RunCompletedEventSchema,
|
|
@@ -366,7 +405,10 @@ var TraceEventSchema = import_zod4.z.discriminatedUnion("type", [
|
|
|
366
405
|
EvalStartedEventSchema,
|
|
367
406
|
EvalCompletedEventSchema,
|
|
368
407
|
ReplayStartedEventSchema,
|
|
369
|
-
ReplayCompletedEventSchema
|
|
408
|
+
ReplayCompletedEventSchema,
|
|
409
|
+
BatchSubmittedEventSchema,
|
|
410
|
+
BatchCompletedEventSchema,
|
|
411
|
+
BatchResultEventSchema
|
|
370
412
|
]);
|
|
371
413
|
var traceEventTypes = TraceEventSchema.options.map(
|
|
372
414
|
(option) => option.shape.type.value
|
|
@@ -379,6 +421,11 @@ var traceEventTypes = TraceEventSchema.options.map(
|
|
|
379
421
|
ApprovalApprovedEventSchema,
|
|
380
422
|
ApprovalRejectedEventSchema,
|
|
381
423
|
ApprovalRequiredEventSchema,
|
|
424
|
+
BatchCompletedEventSchema,
|
|
425
|
+
BatchRequestCountsSchema,
|
|
426
|
+
BatchResultEventSchema,
|
|
427
|
+
BatchResultOutcomeTypeSchema,
|
|
428
|
+
BatchSubmittedEventSchema,
|
|
382
429
|
EvalCompletedEventSchema,
|
|
383
430
|
EvalStartedEventSchema,
|
|
384
431
|
PolicyEvaluatedEventSchema,
|
package/dist/trace-events.d.cts
CHANGED
|
@@ -100,6 +100,7 @@ declare const AgentCompletedEventSchema: z.ZodObject<{
|
|
|
100
100
|
agentName: z.ZodString;
|
|
101
101
|
output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
102
102
|
latencyMs: z.ZodNumber;
|
|
103
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
103
104
|
}, z.core.$strip>;
|
|
104
105
|
declare const AgentFailedEventSchema: z.ZodObject<{
|
|
105
106
|
id: z.ZodString;
|
|
@@ -405,6 +406,97 @@ declare const ReplayCompletedEventSchema: z.ZodObject<{
|
|
|
405
406
|
sourceRunId: z.ZodString;
|
|
406
407
|
latencyMs: z.ZodNumber;
|
|
407
408
|
}, z.core.$strip>;
|
|
409
|
+
declare const BatchRequestCountsSchema: z.ZodObject<{
|
|
410
|
+
processing: z.ZodNumber;
|
|
411
|
+
succeeded: z.ZodNumber;
|
|
412
|
+
errored: z.ZodNumber;
|
|
413
|
+
canceled: z.ZodNumber;
|
|
414
|
+
expired: z.ZodNumber;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
type BatchRequestCounts = z.infer<typeof BatchRequestCountsSchema>;
|
|
417
|
+
declare const BatchResultOutcomeTypeSchema: z.ZodEnum<{
|
|
418
|
+
canceled: "canceled";
|
|
419
|
+
succeeded: "succeeded";
|
|
420
|
+
errored: "errored";
|
|
421
|
+
expired: "expired";
|
|
422
|
+
}>;
|
|
423
|
+
type BatchResultOutcomeType = z.infer<typeof BatchResultOutcomeTypeSchema>;
|
|
424
|
+
declare const BatchSubmittedEventSchema: z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
runId: z.ZodString;
|
|
427
|
+
workflowName: z.ZodString;
|
|
428
|
+
timestamp: z.ZodISODateTime;
|
|
429
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
430
|
+
redacted: z.ZodBoolean;
|
|
431
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
433
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
435
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
436
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
type: z.ZodLiteral<"batch.submitted">;
|
|
439
|
+
batchId: z.ZodString;
|
|
440
|
+
requestCount: z.ZodNumber;
|
|
441
|
+
models: z.ZodArray<z.ZodString>;
|
|
442
|
+
}, z.core.$strip>;
|
|
443
|
+
declare const BatchCompletedEventSchema: z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
runId: z.ZodString;
|
|
446
|
+
workflowName: z.ZodString;
|
|
447
|
+
timestamp: z.ZodISODateTime;
|
|
448
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
449
|
+
redacted: z.ZodBoolean;
|
|
450
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
452
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
453
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
454
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
455
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
type: z.ZodLiteral<"batch.completed">;
|
|
458
|
+
batchId: z.ZodString;
|
|
459
|
+
requestCounts: z.ZodObject<{
|
|
460
|
+
processing: z.ZodNumber;
|
|
461
|
+
succeeded: z.ZodNumber;
|
|
462
|
+
errored: z.ZodNumber;
|
|
463
|
+
canceled: z.ZodNumber;
|
|
464
|
+
expired: z.ZodNumber;
|
|
465
|
+
}, z.core.$strip>;
|
|
466
|
+
latencyMs: z.ZodNumber;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
declare const BatchResultEventSchema: z.ZodObject<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
runId: z.ZodString;
|
|
471
|
+
workflowName: z.ZodString;
|
|
472
|
+
timestamp: z.ZodISODateTime;
|
|
473
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
474
|
+
redacted: z.ZodBoolean;
|
|
475
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
477
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
478
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
479
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>>;
|
|
482
|
+
type: z.ZodLiteral<"batch.result">;
|
|
483
|
+
batchId: z.ZodString;
|
|
484
|
+
customId: z.ZodString;
|
|
485
|
+
outcomeType: z.ZodEnum<{
|
|
486
|
+
canceled: "canceled";
|
|
487
|
+
succeeded: "succeeded";
|
|
488
|
+
errored: "errored";
|
|
489
|
+
expired: "expired";
|
|
490
|
+
}>;
|
|
491
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
inputTokens: z.ZodNumber;
|
|
493
|
+
outputTokens: z.ZodNumber;
|
|
494
|
+
totalTokens: z.ZodNumber;
|
|
495
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
499
|
+
}, z.core.$strip>;
|
|
408
500
|
declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
501
|
id: z.ZodString;
|
|
410
502
|
runId: z.ZodString;
|
|
@@ -494,6 +586,7 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
494
586
|
agentName: z.ZodString;
|
|
495
587
|
output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
496
588
|
latencyMs: z.ZodNumber;
|
|
589
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
497
590
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
591
|
id: z.ZodString;
|
|
499
592
|
runId: z.ZodString;
|
|
@@ -783,6 +876,79 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
783
876
|
type: z.ZodLiteral<"replay.completed">;
|
|
784
877
|
sourceRunId: z.ZodString;
|
|
785
878
|
latencyMs: z.ZodNumber;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
id: z.ZodString;
|
|
881
|
+
runId: z.ZodString;
|
|
882
|
+
workflowName: z.ZodString;
|
|
883
|
+
timestamp: z.ZodISODateTime;
|
|
884
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
885
|
+
redacted: z.ZodBoolean;
|
|
886
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
889
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
890
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
891
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
892
|
+
}, z.core.$strip>>;
|
|
893
|
+
type: z.ZodLiteral<"batch.submitted">;
|
|
894
|
+
batchId: z.ZodString;
|
|
895
|
+
requestCount: z.ZodNumber;
|
|
896
|
+
models: z.ZodArray<z.ZodString>;
|
|
897
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
898
|
+
id: z.ZodString;
|
|
899
|
+
runId: z.ZodString;
|
|
900
|
+
workflowName: z.ZodString;
|
|
901
|
+
timestamp: z.ZodISODateTime;
|
|
902
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
903
|
+
redacted: z.ZodBoolean;
|
|
904
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
906
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
907
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
908
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
909
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strip>>;
|
|
911
|
+
type: z.ZodLiteral<"batch.completed">;
|
|
912
|
+
batchId: z.ZodString;
|
|
913
|
+
requestCounts: z.ZodObject<{
|
|
914
|
+
processing: z.ZodNumber;
|
|
915
|
+
succeeded: z.ZodNumber;
|
|
916
|
+
errored: z.ZodNumber;
|
|
917
|
+
canceled: z.ZodNumber;
|
|
918
|
+
expired: z.ZodNumber;
|
|
919
|
+
}, z.core.$strip>;
|
|
920
|
+
latencyMs: z.ZodNumber;
|
|
921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
runId: z.ZodString;
|
|
924
|
+
workflowName: z.ZodString;
|
|
925
|
+
timestamp: z.ZodISODateTime;
|
|
926
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
927
|
+
redacted: z.ZodBoolean;
|
|
928
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
929
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
930
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
931
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
932
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
933
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
934
|
+
}, z.core.$strip>>;
|
|
935
|
+
type: z.ZodLiteral<"batch.result">;
|
|
936
|
+
batchId: z.ZodString;
|
|
937
|
+
customId: z.ZodString;
|
|
938
|
+
outcomeType: z.ZodEnum<{
|
|
939
|
+
canceled: "canceled";
|
|
940
|
+
succeeded: "succeeded";
|
|
941
|
+
errored: "errored";
|
|
942
|
+
expired: "expired";
|
|
943
|
+
}>;
|
|
944
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
945
|
+
inputTokens: z.ZodNumber;
|
|
946
|
+
outputTokens: z.ZodNumber;
|
|
947
|
+
totalTokens: z.ZodNumber;
|
|
948
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
949
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
786
952
|
}, z.core.$strip>], "type">;
|
|
787
953
|
type TraceEvent = z.infer<typeof TraceEventSchema>;
|
|
788
954
|
type TraceEventType = TraceEvent["type"];
|
|
@@ -807,5 +973,8 @@ type EvalStartedEvent = z.infer<typeof EvalStartedEventSchema>;
|
|
|
807
973
|
type EvalCompletedEvent = z.infer<typeof EvalCompletedEventSchema>;
|
|
808
974
|
type ReplayStartedEvent = z.infer<typeof ReplayStartedEventSchema>;
|
|
809
975
|
type ReplayCompletedEvent = z.infer<typeof ReplayCompletedEventSchema>;
|
|
976
|
+
type BatchSubmittedEvent = z.infer<typeof BatchSubmittedEventSchema>;
|
|
977
|
+
type BatchCompletedEvent = z.infer<typeof BatchCompletedEventSchema>;
|
|
978
|
+
type BatchResultEvent = z.infer<typeof BatchResultEventSchema>;
|
|
810
979
|
|
|
811
|
-
export { type AgentCompletedEvent, AgentCompletedEventSchema, type AgentFailedEvent, AgentFailedEventSchema, type AgentStartedEvent, AgentStartedEventSchema, type ApprovalApprovedEvent, ApprovalApprovedEventSchema, type ApprovalRejectedEvent, ApprovalRejectedEventSchema, type ApprovalRequiredEvent, ApprovalRequiredEventSchema, type EvalCompletedEvent, EvalCompletedEventSchema, type EvalStartedEvent, EvalStartedEventSchema, type PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, type ReplayCompletedEvent, ReplayCompletedEventSchema, type ReplayStartedEvent, ReplayStartedEventSchema, type RouteSelectedEvent, RouteSelectedEventSchema, type RunCompletedEvent, RunCompletedEventSchema, type RunFailedEvent, RunFailedEventSchema, type RunStartedEvent, RunStartedEventSchema, type ToolApprovedEvent, ToolApprovedEventSchema, type ToolBlockedEvent, ToolBlockedEventSchema, type ToolCompletedEvent, ToolCompletedEventSchema, type ToolFailedEvent, ToolFailedEventSchema, type ToolRequestedEvent, ToolRequestedEventSchema, type TraceEvent, type TraceEventError, TraceEventErrorSchema, TraceEventSchema, type TraceEventType, traceEventTypes };
|
|
980
|
+
export { type AgentCompletedEvent, AgentCompletedEventSchema, type AgentFailedEvent, AgentFailedEventSchema, type AgentStartedEvent, AgentStartedEventSchema, type ApprovalApprovedEvent, ApprovalApprovedEventSchema, type ApprovalRejectedEvent, ApprovalRejectedEventSchema, type ApprovalRequiredEvent, ApprovalRequiredEventSchema, type BatchCompletedEvent, BatchCompletedEventSchema, type BatchRequestCounts, BatchRequestCountsSchema, type BatchResultEvent, BatchResultEventSchema, type BatchResultOutcomeType, BatchResultOutcomeTypeSchema, type BatchSubmittedEvent, BatchSubmittedEventSchema, type EvalCompletedEvent, EvalCompletedEventSchema, type EvalStartedEvent, EvalStartedEventSchema, type PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, type ReplayCompletedEvent, ReplayCompletedEventSchema, type ReplayStartedEvent, ReplayStartedEventSchema, type RouteSelectedEvent, RouteSelectedEventSchema, type RunCompletedEvent, RunCompletedEventSchema, type RunFailedEvent, RunFailedEventSchema, type RunStartedEvent, RunStartedEventSchema, type ToolApprovedEvent, ToolApprovedEventSchema, type ToolBlockedEvent, ToolBlockedEventSchema, type ToolCompletedEvent, ToolCompletedEventSchema, type ToolFailedEvent, ToolFailedEventSchema, type ToolRequestedEvent, ToolRequestedEventSchema, type TraceEvent, type TraceEventError, TraceEventErrorSchema, TraceEventSchema, type TraceEventType, traceEventTypes };
|
package/dist/trace-events.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ declare const AgentCompletedEventSchema: z.ZodObject<{
|
|
|
100
100
|
agentName: z.ZodString;
|
|
101
101
|
output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
102
102
|
latencyMs: z.ZodNumber;
|
|
103
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
103
104
|
}, z.core.$strip>;
|
|
104
105
|
declare const AgentFailedEventSchema: z.ZodObject<{
|
|
105
106
|
id: z.ZodString;
|
|
@@ -405,6 +406,97 @@ declare const ReplayCompletedEventSchema: z.ZodObject<{
|
|
|
405
406
|
sourceRunId: z.ZodString;
|
|
406
407
|
latencyMs: z.ZodNumber;
|
|
407
408
|
}, z.core.$strip>;
|
|
409
|
+
declare const BatchRequestCountsSchema: z.ZodObject<{
|
|
410
|
+
processing: z.ZodNumber;
|
|
411
|
+
succeeded: z.ZodNumber;
|
|
412
|
+
errored: z.ZodNumber;
|
|
413
|
+
canceled: z.ZodNumber;
|
|
414
|
+
expired: z.ZodNumber;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
type BatchRequestCounts = z.infer<typeof BatchRequestCountsSchema>;
|
|
417
|
+
declare const BatchResultOutcomeTypeSchema: z.ZodEnum<{
|
|
418
|
+
canceled: "canceled";
|
|
419
|
+
succeeded: "succeeded";
|
|
420
|
+
errored: "errored";
|
|
421
|
+
expired: "expired";
|
|
422
|
+
}>;
|
|
423
|
+
type BatchResultOutcomeType = z.infer<typeof BatchResultOutcomeTypeSchema>;
|
|
424
|
+
declare const BatchSubmittedEventSchema: z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
runId: z.ZodString;
|
|
427
|
+
workflowName: z.ZodString;
|
|
428
|
+
timestamp: z.ZodISODateTime;
|
|
429
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
430
|
+
redacted: z.ZodBoolean;
|
|
431
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
433
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
435
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
436
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
type: z.ZodLiteral<"batch.submitted">;
|
|
439
|
+
batchId: z.ZodString;
|
|
440
|
+
requestCount: z.ZodNumber;
|
|
441
|
+
models: z.ZodArray<z.ZodString>;
|
|
442
|
+
}, z.core.$strip>;
|
|
443
|
+
declare const BatchCompletedEventSchema: z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
runId: z.ZodString;
|
|
446
|
+
workflowName: z.ZodString;
|
|
447
|
+
timestamp: z.ZodISODateTime;
|
|
448
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
449
|
+
redacted: z.ZodBoolean;
|
|
450
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
452
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
453
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
454
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
455
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
type: z.ZodLiteral<"batch.completed">;
|
|
458
|
+
batchId: z.ZodString;
|
|
459
|
+
requestCounts: z.ZodObject<{
|
|
460
|
+
processing: z.ZodNumber;
|
|
461
|
+
succeeded: z.ZodNumber;
|
|
462
|
+
errored: z.ZodNumber;
|
|
463
|
+
canceled: z.ZodNumber;
|
|
464
|
+
expired: z.ZodNumber;
|
|
465
|
+
}, z.core.$strip>;
|
|
466
|
+
latencyMs: z.ZodNumber;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
declare const BatchResultEventSchema: z.ZodObject<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
runId: z.ZodString;
|
|
471
|
+
workflowName: z.ZodString;
|
|
472
|
+
timestamp: z.ZodISODateTime;
|
|
473
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
474
|
+
redacted: z.ZodBoolean;
|
|
475
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
477
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
478
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
479
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>>;
|
|
482
|
+
type: z.ZodLiteral<"batch.result">;
|
|
483
|
+
batchId: z.ZodString;
|
|
484
|
+
customId: z.ZodString;
|
|
485
|
+
outcomeType: z.ZodEnum<{
|
|
486
|
+
canceled: "canceled";
|
|
487
|
+
succeeded: "succeeded";
|
|
488
|
+
errored: "errored";
|
|
489
|
+
expired: "expired";
|
|
490
|
+
}>;
|
|
491
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
inputTokens: z.ZodNumber;
|
|
493
|
+
outputTokens: z.ZodNumber;
|
|
494
|
+
totalTokens: z.ZodNumber;
|
|
495
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
499
|
+
}, z.core.$strip>;
|
|
408
500
|
declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
501
|
id: z.ZodString;
|
|
410
502
|
runId: z.ZodString;
|
|
@@ -494,6 +586,7 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
494
586
|
agentName: z.ZodString;
|
|
495
587
|
output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
496
588
|
latencyMs: z.ZodNumber;
|
|
589
|
+
modelName: z.ZodOptional<z.ZodString>;
|
|
497
590
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
591
|
id: z.ZodString;
|
|
499
592
|
runId: z.ZodString;
|
|
@@ -783,6 +876,79 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
783
876
|
type: z.ZodLiteral<"replay.completed">;
|
|
784
877
|
sourceRunId: z.ZodString;
|
|
785
878
|
latencyMs: z.ZodNumber;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
id: z.ZodString;
|
|
881
|
+
runId: z.ZodString;
|
|
882
|
+
workflowName: z.ZodString;
|
|
883
|
+
timestamp: z.ZodISODateTime;
|
|
884
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
885
|
+
redacted: z.ZodBoolean;
|
|
886
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
889
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
890
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
891
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
892
|
+
}, z.core.$strip>>;
|
|
893
|
+
type: z.ZodLiteral<"batch.submitted">;
|
|
894
|
+
batchId: z.ZodString;
|
|
895
|
+
requestCount: z.ZodNumber;
|
|
896
|
+
models: z.ZodArray<z.ZodString>;
|
|
897
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
898
|
+
id: z.ZodString;
|
|
899
|
+
runId: z.ZodString;
|
|
900
|
+
workflowName: z.ZodString;
|
|
901
|
+
timestamp: z.ZodISODateTime;
|
|
902
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
903
|
+
redacted: z.ZodBoolean;
|
|
904
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
906
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
907
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
908
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
909
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strip>>;
|
|
911
|
+
type: z.ZodLiteral<"batch.completed">;
|
|
912
|
+
batchId: z.ZodString;
|
|
913
|
+
requestCounts: z.ZodObject<{
|
|
914
|
+
processing: z.ZodNumber;
|
|
915
|
+
succeeded: z.ZodNumber;
|
|
916
|
+
errored: z.ZodNumber;
|
|
917
|
+
canceled: z.ZodNumber;
|
|
918
|
+
expired: z.ZodNumber;
|
|
919
|
+
}, z.core.$strip>;
|
|
920
|
+
latencyMs: z.ZodNumber;
|
|
921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
runId: z.ZodString;
|
|
924
|
+
workflowName: z.ZodString;
|
|
925
|
+
timestamp: z.ZodISODateTime;
|
|
926
|
+
parentEventId: z.ZodNullable<z.ZodString>;
|
|
927
|
+
redacted: z.ZodBoolean;
|
|
928
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
929
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
930
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
931
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
932
|
+
parentTraceId: z.ZodOptional<z.ZodString>;
|
|
933
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
934
|
+
}, z.core.$strip>>;
|
|
935
|
+
type: z.ZodLiteral<"batch.result">;
|
|
936
|
+
batchId: z.ZodString;
|
|
937
|
+
customId: z.ZodString;
|
|
938
|
+
outcomeType: z.ZodEnum<{
|
|
939
|
+
canceled: "canceled";
|
|
940
|
+
succeeded: "succeeded";
|
|
941
|
+
errored: "errored";
|
|
942
|
+
expired: "expired";
|
|
943
|
+
}>;
|
|
944
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
945
|
+
inputTokens: z.ZodNumber;
|
|
946
|
+
outputTokens: z.ZodNumber;
|
|
947
|
+
totalTokens: z.ZodNumber;
|
|
948
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
949
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
786
952
|
}, z.core.$strip>], "type">;
|
|
787
953
|
type TraceEvent = z.infer<typeof TraceEventSchema>;
|
|
788
954
|
type TraceEventType = TraceEvent["type"];
|
|
@@ -807,5 +973,8 @@ type EvalStartedEvent = z.infer<typeof EvalStartedEventSchema>;
|
|
|
807
973
|
type EvalCompletedEvent = z.infer<typeof EvalCompletedEventSchema>;
|
|
808
974
|
type ReplayStartedEvent = z.infer<typeof ReplayStartedEventSchema>;
|
|
809
975
|
type ReplayCompletedEvent = z.infer<typeof ReplayCompletedEventSchema>;
|
|
976
|
+
type BatchSubmittedEvent = z.infer<typeof BatchSubmittedEventSchema>;
|
|
977
|
+
type BatchCompletedEvent = z.infer<typeof BatchCompletedEventSchema>;
|
|
978
|
+
type BatchResultEvent = z.infer<typeof BatchResultEventSchema>;
|
|
810
979
|
|
|
811
|
-
export { type AgentCompletedEvent, AgentCompletedEventSchema, type AgentFailedEvent, AgentFailedEventSchema, type AgentStartedEvent, AgentStartedEventSchema, type ApprovalApprovedEvent, ApprovalApprovedEventSchema, type ApprovalRejectedEvent, ApprovalRejectedEventSchema, type ApprovalRequiredEvent, ApprovalRequiredEventSchema, type EvalCompletedEvent, EvalCompletedEventSchema, type EvalStartedEvent, EvalStartedEventSchema, type PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, type ReplayCompletedEvent, ReplayCompletedEventSchema, type ReplayStartedEvent, ReplayStartedEventSchema, type RouteSelectedEvent, RouteSelectedEventSchema, type RunCompletedEvent, RunCompletedEventSchema, type RunFailedEvent, RunFailedEventSchema, type RunStartedEvent, RunStartedEventSchema, type ToolApprovedEvent, ToolApprovedEventSchema, type ToolBlockedEvent, ToolBlockedEventSchema, type ToolCompletedEvent, ToolCompletedEventSchema, type ToolFailedEvent, ToolFailedEventSchema, type ToolRequestedEvent, ToolRequestedEventSchema, type TraceEvent, type TraceEventError, TraceEventErrorSchema, TraceEventSchema, type TraceEventType, traceEventTypes };
|
|
980
|
+
export { type AgentCompletedEvent, AgentCompletedEventSchema, type AgentFailedEvent, AgentFailedEventSchema, type AgentStartedEvent, AgentStartedEventSchema, type ApprovalApprovedEvent, ApprovalApprovedEventSchema, type ApprovalRejectedEvent, ApprovalRejectedEventSchema, type ApprovalRequiredEvent, ApprovalRequiredEventSchema, type BatchCompletedEvent, BatchCompletedEventSchema, type BatchRequestCounts, BatchRequestCountsSchema, type BatchResultEvent, BatchResultEventSchema, type BatchResultOutcomeType, BatchResultOutcomeTypeSchema, type BatchSubmittedEvent, BatchSubmittedEventSchema, type EvalCompletedEvent, EvalCompletedEventSchema, type EvalStartedEvent, EvalStartedEventSchema, type PolicyEvaluatedEvent, PolicyEvaluatedEventSchema, type ReplayCompletedEvent, ReplayCompletedEventSchema, type ReplayStartedEvent, ReplayStartedEventSchema, type RouteSelectedEvent, RouteSelectedEventSchema, type RunCompletedEvent, RunCompletedEventSchema, type RunFailedEvent, RunFailedEventSchema, type RunStartedEvent, RunStartedEventSchema, type ToolApprovedEvent, ToolApprovedEventSchema, type ToolBlockedEvent, ToolBlockedEventSchema, type ToolCompletedEvent, ToolCompletedEventSchema, type ToolFailedEvent, ToolFailedEventSchema, type ToolRequestedEvent, ToolRequestedEventSchema, type TraceEvent, type TraceEventError, TraceEventErrorSchema, TraceEventSchema, type TraceEventType, traceEventTypes };
|
package/dist/trace-events.js
CHANGED
|
@@ -5,6 +5,11 @@ import {
|
|
|
5
5
|
ApprovalApprovedEventSchema,
|
|
6
6
|
ApprovalRejectedEventSchema,
|
|
7
7
|
ApprovalRequiredEventSchema,
|
|
8
|
+
BatchCompletedEventSchema,
|
|
9
|
+
BatchRequestCountsSchema,
|
|
10
|
+
BatchResultEventSchema,
|
|
11
|
+
BatchResultOutcomeTypeSchema,
|
|
12
|
+
BatchSubmittedEventSchema,
|
|
8
13
|
EvalCompletedEventSchema,
|
|
9
14
|
EvalStartedEventSchema,
|
|
10
15
|
PolicyEvaluatedEventSchema,
|
|
@@ -22,7 +27,7 @@ import {
|
|
|
22
27
|
TraceEventErrorSchema,
|
|
23
28
|
TraceEventSchema,
|
|
24
29
|
traceEventTypes
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KU4NYNO3.js";
|
|
26
31
|
import "./chunk-F5XOAPYA.js";
|
|
27
32
|
import "./chunk-WTIOTJHP.js";
|
|
28
33
|
import "./chunk-4FCV35HE.js";
|
|
@@ -33,6 +38,11 @@ export {
|
|
|
33
38
|
ApprovalApprovedEventSchema,
|
|
34
39
|
ApprovalRejectedEventSchema,
|
|
35
40
|
ApprovalRequiredEventSchema,
|
|
41
|
+
BatchCompletedEventSchema,
|
|
42
|
+
BatchRequestCountsSchema,
|
|
43
|
+
BatchResultEventSchema,
|
|
44
|
+
BatchResultOutcomeTypeSchema,
|
|
45
|
+
BatchSubmittedEventSchema,
|
|
36
46
|
EvalCompletedEventSchema,
|
|
37
47
|
EvalStartedEventSchema,
|
|
38
48
|
PolicyEvaluatedEventSchema,
|