@assemble-dev/shared-types 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.
@@ -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,10 @@ 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(),
53
+ tokenUsage: TokenUsageSchema.optional(),
54
+ costUsd: z.number().nullable().optional()
51
55
  });
52
56
  var AgentFailedEventSchema = TraceEventBaseSchema.extend({
53
57
  type: z.literal("agent.failed"),
@@ -144,6 +148,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
144
148
  sourceRunId: z.string(),
145
149
  latencyMs: z.number().nonnegative()
146
150
  });
151
+ var BatchRequestCountsSchema = z.object({
152
+ processing: z.number().int().nonnegative(),
153
+ succeeded: z.number().int().nonnegative(),
154
+ errored: z.number().int().nonnegative(),
155
+ canceled: z.number().int().nonnegative(),
156
+ expired: z.number().int().nonnegative()
157
+ });
158
+ var BatchResultOutcomeTypeSchema = z.enum([
159
+ "succeeded",
160
+ "errored",
161
+ "canceled",
162
+ "expired"
163
+ ]);
164
+ var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
165
+ type: z.literal("batch.submitted"),
166
+ batchId: z.string(),
167
+ requestCount: z.number().int().nonnegative(),
168
+ models: z.array(z.string())
169
+ });
170
+ var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
171
+ type: z.literal("batch.completed"),
172
+ batchId: z.string(),
173
+ requestCounts: BatchRequestCountsSchema,
174
+ latencyMs: z.number().nonnegative()
175
+ });
176
+ var BatchResultEventSchema = TraceEventBaseSchema.extend({
177
+ type: z.literal("batch.result"),
178
+ batchId: z.string(),
179
+ customId: z.string(),
180
+ outcomeType: BatchResultOutcomeTypeSchema,
181
+ tokenUsage: TokenUsageSchema.optional(),
182
+ costUsd: z.number().nullable()
183
+ });
147
184
  var TraceEventSchema = z.discriminatedUnion("type", [
148
185
  RunStartedEventSchema,
149
186
  RunCompletedEventSchema,
@@ -164,7 +201,10 @@ var TraceEventSchema = z.discriminatedUnion("type", [
164
201
  EvalStartedEventSchema,
165
202
  EvalCompletedEventSchema,
166
203
  ReplayStartedEventSchema,
167
- ReplayCompletedEventSchema
204
+ ReplayCompletedEventSchema,
205
+ BatchSubmittedEventSchema,
206
+ BatchCompletedEventSchema,
207
+ BatchResultEventSchema
168
208
  ]);
169
209
  var traceEventTypes = TraceEventSchema.options.map(
170
210
  (option) => option.shape.type.value
@@ -192,6 +232,11 @@ export {
192
232
  EvalCompletedEventSchema,
193
233
  ReplayStartedEventSchema,
194
234
  ReplayCompletedEventSchema,
235
+ BatchRequestCountsSchema,
236
+ BatchResultOutcomeTypeSchema,
237
+ BatchSubmittedEventSchema,
238
+ BatchCompletedEventSchema,
239
+ BatchResultEventSchema,
195
240
  TraceEventSchema,
196
241
  traceEventTypes
197
242
  };
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,10 @@ 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(),
304
+ tokenUsage: TokenUsageSchema.optional(),
305
+ costUsd: import_zod5.z.number().nullable().optional()
298
306
  });
299
307
  var AgentFailedEventSchema = TraceEventBaseSchema.extend({
300
308
  type: import_zod5.z.literal("agent.failed"),
@@ -391,6 +399,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
391
399
  sourceRunId: import_zod5.z.string(),
392
400
  latencyMs: import_zod5.z.number().nonnegative()
393
401
  });
402
+ var BatchRequestCountsSchema = import_zod5.z.object({
403
+ processing: import_zod5.z.number().int().nonnegative(),
404
+ succeeded: import_zod5.z.number().int().nonnegative(),
405
+ errored: import_zod5.z.number().int().nonnegative(),
406
+ canceled: import_zod5.z.number().int().nonnegative(),
407
+ expired: import_zod5.z.number().int().nonnegative()
408
+ });
409
+ var BatchResultOutcomeTypeSchema = import_zod5.z.enum([
410
+ "succeeded",
411
+ "errored",
412
+ "canceled",
413
+ "expired"
414
+ ]);
415
+ var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
416
+ type: import_zod5.z.literal("batch.submitted"),
417
+ batchId: import_zod5.z.string(),
418
+ requestCount: import_zod5.z.number().int().nonnegative(),
419
+ models: import_zod5.z.array(import_zod5.z.string())
420
+ });
421
+ var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
422
+ type: import_zod5.z.literal("batch.completed"),
423
+ batchId: import_zod5.z.string(),
424
+ requestCounts: BatchRequestCountsSchema,
425
+ latencyMs: import_zod5.z.number().nonnegative()
426
+ });
427
+ var BatchResultEventSchema = TraceEventBaseSchema.extend({
428
+ type: import_zod5.z.literal("batch.result"),
429
+ batchId: import_zod5.z.string(),
430
+ customId: import_zod5.z.string(),
431
+ outcomeType: BatchResultOutcomeTypeSchema,
432
+ tokenUsage: TokenUsageSchema.optional(),
433
+ costUsd: import_zod5.z.number().nullable()
434
+ });
394
435
  var TraceEventSchema = import_zod5.z.discriminatedUnion("type", [
395
436
  RunStartedEventSchema,
396
437
  RunCompletedEventSchema,
@@ -411,7 +452,10 @@ var TraceEventSchema = import_zod5.z.discriminatedUnion("type", [
411
452
  EvalStartedEventSchema,
412
453
  EvalCompletedEventSchema,
413
454
  ReplayStartedEventSchema,
414
- ReplayCompletedEventSchema
455
+ ReplayCompletedEventSchema,
456
+ BatchSubmittedEventSchema,
457
+ BatchCompletedEventSchema,
458
+ BatchResultEventSchema
415
459
  ]);
416
460
  var traceEventTypes = TraceEventSchema.options.map(
417
461
  (option) => option.shape.type.value
@@ -429,6 +473,11 @@ var traceEventTypes = TraceEventSchema.options.map(
429
473
  ApprovalRejectedEventSchema,
430
474
  ApprovalRequiredEventSchema,
431
475
  ApprovalStatusSchema,
476
+ BatchCompletedEventSchema,
477
+ BatchRequestCountsSchema,
478
+ BatchResultEventSchema,
479
+ BatchResultOutcomeTypeSchema,
480
+ BatchSubmittedEventSchema,
432
481
  EvalCompletedEventSchema,
433
482
  EvalStartedEventSchema,
434
483
  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-PQRNSB4E.js";
36
+ } from "./chunk-A33NFCKU.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,
@@ -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,10 @@ 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(),
259
+ tokenUsage: TokenUsageSchema.optional(),
260
+ costUsd: import_zod4.z.number().nullable().optional()
253
261
  });
254
262
  var AgentFailedEventSchema = TraceEventBaseSchema.extend({
255
263
  type: import_zod4.z.literal("agent.failed"),
@@ -346,6 +354,39 @@ var ReplayCompletedEventSchema = TraceEventBaseSchema.extend({
346
354
  sourceRunId: import_zod4.z.string(),
347
355
  latencyMs: import_zod4.z.number().nonnegative()
348
356
  });
357
+ var BatchRequestCountsSchema = import_zod4.z.object({
358
+ processing: import_zod4.z.number().int().nonnegative(),
359
+ succeeded: import_zod4.z.number().int().nonnegative(),
360
+ errored: import_zod4.z.number().int().nonnegative(),
361
+ canceled: import_zod4.z.number().int().nonnegative(),
362
+ expired: import_zod4.z.number().int().nonnegative()
363
+ });
364
+ var BatchResultOutcomeTypeSchema = import_zod4.z.enum([
365
+ "succeeded",
366
+ "errored",
367
+ "canceled",
368
+ "expired"
369
+ ]);
370
+ var BatchSubmittedEventSchema = TraceEventBaseSchema.extend({
371
+ type: import_zod4.z.literal("batch.submitted"),
372
+ batchId: import_zod4.z.string(),
373
+ requestCount: import_zod4.z.number().int().nonnegative(),
374
+ models: import_zod4.z.array(import_zod4.z.string())
375
+ });
376
+ var BatchCompletedEventSchema = TraceEventBaseSchema.extend({
377
+ type: import_zod4.z.literal("batch.completed"),
378
+ batchId: import_zod4.z.string(),
379
+ requestCounts: BatchRequestCountsSchema,
380
+ latencyMs: import_zod4.z.number().nonnegative()
381
+ });
382
+ var BatchResultEventSchema = TraceEventBaseSchema.extend({
383
+ type: import_zod4.z.literal("batch.result"),
384
+ batchId: import_zod4.z.string(),
385
+ customId: import_zod4.z.string(),
386
+ outcomeType: BatchResultOutcomeTypeSchema,
387
+ tokenUsage: TokenUsageSchema.optional(),
388
+ costUsd: import_zod4.z.number().nullable()
389
+ });
349
390
  var TraceEventSchema = import_zod4.z.discriminatedUnion("type", [
350
391
  RunStartedEventSchema,
351
392
  RunCompletedEventSchema,
@@ -366,7 +407,10 @@ var TraceEventSchema = import_zod4.z.discriminatedUnion("type", [
366
407
  EvalStartedEventSchema,
367
408
  EvalCompletedEventSchema,
368
409
  ReplayStartedEventSchema,
369
- ReplayCompletedEventSchema
410
+ ReplayCompletedEventSchema,
411
+ BatchSubmittedEventSchema,
412
+ BatchCompletedEventSchema,
413
+ BatchResultEventSchema
370
414
  ]);
371
415
  var traceEventTypes = TraceEventSchema.options.map(
372
416
  (option) => option.shape.type.value
@@ -379,6 +423,11 @@ var traceEventTypes = TraceEventSchema.options.map(
379
423
  ApprovalApprovedEventSchema,
380
424
  ApprovalRejectedEventSchema,
381
425
  ApprovalRequiredEventSchema,
426
+ BatchCompletedEventSchema,
427
+ BatchRequestCountsSchema,
428
+ BatchResultEventSchema,
429
+ BatchResultOutcomeTypeSchema,
430
+ BatchSubmittedEventSchema,
382
431
  EvalCompletedEventSchema,
383
432
  EvalStartedEventSchema,
384
433
  PolicyEvaluatedEventSchema,
@@ -100,6 +100,15 @@ 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>;
104
+ tokenUsage: z.ZodOptional<z.ZodObject<{
105
+ inputTokens: z.ZodNumber;
106
+ outputTokens: z.ZodNumber;
107
+ totalTokens: z.ZodNumber;
108
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
109
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
110
+ }, z.core.$strip>>;
111
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
112
  }, z.core.$strip>;
104
113
  declare const AgentFailedEventSchema: z.ZodObject<{
105
114
  id: z.ZodString;
@@ -405,6 +414,97 @@ declare const ReplayCompletedEventSchema: z.ZodObject<{
405
414
  sourceRunId: z.ZodString;
406
415
  latencyMs: z.ZodNumber;
407
416
  }, z.core.$strip>;
417
+ declare const BatchRequestCountsSchema: z.ZodObject<{
418
+ processing: z.ZodNumber;
419
+ succeeded: z.ZodNumber;
420
+ errored: z.ZodNumber;
421
+ canceled: z.ZodNumber;
422
+ expired: z.ZodNumber;
423
+ }, z.core.$strip>;
424
+ type BatchRequestCounts = z.infer<typeof BatchRequestCountsSchema>;
425
+ declare const BatchResultOutcomeTypeSchema: z.ZodEnum<{
426
+ canceled: "canceled";
427
+ succeeded: "succeeded";
428
+ errored: "errored";
429
+ expired: "expired";
430
+ }>;
431
+ type BatchResultOutcomeType = z.infer<typeof BatchResultOutcomeTypeSchema>;
432
+ declare const BatchSubmittedEventSchema: z.ZodObject<{
433
+ id: z.ZodString;
434
+ runId: z.ZodString;
435
+ workflowName: z.ZodString;
436
+ timestamp: z.ZodISODateTime;
437
+ parentEventId: z.ZodNullable<z.ZodString>;
438
+ redacted: z.ZodBoolean;
439
+ metadata: z.ZodOptional<z.ZodObject<{
440
+ sessionId: z.ZodOptional<z.ZodString>;
441
+ userId: z.ZodOptional<z.ZodString>;
442
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
+ parentTraceId: z.ZodOptional<z.ZodString>;
444
+ parentSpanId: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strip>>;
446
+ type: z.ZodLiteral<"batch.submitted">;
447
+ batchId: z.ZodString;
448
+ requestCount: z.ZodNumber;
449
+ models: z.ZodArray<z.ZodString>;
450
+ }, z.core.$strip>;
451
+ declare const BatchCompletedEventSchema: z.ZodObject<{
452
+ id: z.ZodString;
453
+ runId: z.ZodString;
454
+ workflowName: z.ZodString;
455
+ timestamp: z.ZodISODateTime;
456
+ parentEventId: z.ZodNullable<z.ZodString>;
457
+ redacted: z.ZodBoolean;
458
+ metadata: z.ZodOptional<z.ZodObject<{
459
+ sessionId: z.ZodOptional<z.ZodString>;
460
+ userId: z.ZodOptional<z.ZodString>;
461
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
462
+ parentTraceId: z.ZodOptional<z.ZodString>;
463
+ parentSpanId: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strip>>;
465
+ type: z.ZodLiteral<"batch.completed">;
466
+ batchId: z.ZodString;
467
+ requestCounts: z.ZodObject<{
468
+ processing: z.ZodNumber;
469
+ succeeded: z.ZodNumber;
470
+ errored: z.ZodNumber;
471
+ canceled: z.ZodNumber;
472
+ expired: z.ZodNumber;
473
+ }, z.core.$strip>;
474
+ latencyMs: z.ZodNumber;
475
+ }, z.core.$strip>;
476
+ declare const BatchResultEventSchema: z.ZodObject<{
477
+ id: z.ZodString;
478
+ runId: z.ZodString;
479
+ workflowName: z.ZodString;
480
+ timestamp: z.ZodISODateTime;
481
+ parentEventId: z.ZodNullable<z.ZodString>;
482
+ redacted: z.ZodBoolean;
483
+ metadata: z.ZodOptional<z.ZodObject<{
484
+ sessionId: z.ZodOptional<z.ZodString>;
485
+ userId: z.ZodOptional<z.ZodString>;
486
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
+ parentTraceId: z.ZodOptional<z.ZodString>;
488
+ parentSpanId: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>>;
490
+ type: z.ZodLiteral<"batch.result">;
491
+ batchId: z.ZodString;
492
+ customId: z.ZodString;
493
+ outcomeType: z.ZodEnum<{
494
+ canceled: "canceled";
495
+ succeeded: "succeeded";
496
+ errored: "errored";
497
+ expired: "expired";
498
+ }>;
499
+ tokenUsage: z.ZodOptional<z.ZodObject<{
500
+ inputTokens: z.ZodNumber;
501
+ outputTokens: z.ZodNumber;
502
+ totalTokens: z.ZodNumber;
503
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
504
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
505
+ }, z.core.$strip>>;
506
+ costUsd: z.ZodNullable<z.ZodNumber>;
507
+ }, z.core.$strip>;
408
508
  declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
409
509
  id: z.ZodString;
410
510
  runId: z.ZodString;
@@ -494,6 +594,15 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
494
594
  agentName: z.ZodString;
495
595
  output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
496
596
  latencyMs: z.ZodNumber;
597
+ modelName: z.ZodOptional<z.ZodString>;
598
+ tokenUsage: z.ZodOptional<z.ZodObject<{
599
+ inputTokens: z.ZodNumber;
600
+ outputTokens: z.ZodNumber;
601
+ totalTokens: z.ZodNumber;
602
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
603
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
604
+ }, z.core.$strip>>;
605
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
497
606
  }, z.core.$strip>, z.ZodObject<{
498
607
  id: z.ZodString;
499
608
  runId: z.ZodString;
@@ -783,6 +892,79 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
783
892
  type: z.ZodLiteral<"replay.completed">;
784
893
  sourceRunId: z.ZodString;
785
894
  latencyMs: z.ZodNumber;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ id: z.ZodString;
897
+ runId: z.ZodString;
898
+ workflowName: z.ZodString;
899
+ timestamp: z.ZodISODateTime;
900
+ parentEventId: z.ZodNullable<z.ZodString>;
901
+ redacted: z.ZodBoolean;
902
+ metadata: z.ZodOptional<z.ZodObject<{
903
+ sessionId: z.ZodOptional<z.ZodString>;
904
+ userId: z.ZodOptional<z.ZodString>;
905
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
906
+ parentTraceId: z.ZodOptional<z.ZodString>;
907
+ parentSpanId: z.ZodOptional<z.ZodString>;
908
+ }, z.core.$strip>>;
909
+ type: z.ZodLiteral<"batch.submitted">;
910
+ batchId: z.ZodString;
911
+ requestCount: z.ZodNumber;
912
+ models: z.ZodArray<z.ZodString>;
913
+ }, z.core.$strip>, z.ZodObject<{
914
+ id: z.ZodString;
915
+ runId: z.ZodString;
916
+ workflowName: z.ZodString;
917
+ timestamp: z.ZodISODateTime;
918
+ parentEventId: z.ZodNullable<z.ZodString>;
919
+ redacted: z.ZodBoolean;
920
+ metadata: z.ZodOptional<z.ZodObject<{
921
+ sessionId: z.ZodOptional<z.ZodString>;
922
+ userId: z.ZodOptional<z.ZodString>;
923
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
924
+ parentTraceId: z.ZodOptional<z.ZodString>;
925
+ parentSpanId: z.ZodOptional<z.ZodString>;
926
+ }, z.core.$strip>>;
927
+ type: z.ZodLiteral<"batch.completed">;
928
+ batchId: z.ZodString;
929
+ requestCounts: z.ZodObject<{
930
+ processing: z.ZodNumber;
931
+ succeeded: z.ZodNumber;
932
+ errored: z.ZodNumber;
933
+ canceled: z.ZodNumber;
934
+ expired: z.ZodNumber;
935
+ }, z.core.$strip>;
936
+ latencyMs: z.ZodNumber;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ id: z.ZodString;
939
+ runId: z.ZodString;
940
+ workflowName: z.ZodString;
941
+ timestamp: z.ZodISODateTime;
942
+ parentEventId: z.ZodNullable<z.ZodString>;
943
+ redacted: z.ZodBoolean;
944
+ metadata: z.ZodOptional<z.ZodObject<{
945
+ sessionId: z.ZodOptional<z.ZodString>;
946
+ userId: z.ZodOptional<z.ZodString>;
947
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
+ parentTraceId: z.ZodOptional<z.ZodString>;
949
+ parentSpanId: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strip>>;
951
+ type: z.ZodLiteral<"batch.result">;
952
+ batchId: z.ZodString;
953
+ customId: z.ZodString;
954
+ outcomeType: z.ZodEnum<{
955
+ canceled: "canceled";
956
+ succeeded: "succeeded";
957
+ errored: "errored";
958
+ expired: "expired";
959
+ }>;
960
+ tokenUsage: z.ZodOptional<z.ZodObject<{
961
+ inputTokens: z.ZodNumber;
962
+ outputTokens: z.ZodNumber;
963
+ totalTokens: z.ZodNumber;
964
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
965
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
966
+ }, z.core.$strip>>;
967
+ costUsd: z.ZodNullable<z.ZodNumber>;
786
968
  }, z.core.$strip>], "type">;
787
969
  type TraceEvent = z.infer<typeof TraceEventSchema>;
788
970
  type TraceEventType = TraceEvent["type"];
@@ -807,5 +989,8 @@ type EvalStartedEvent = z.infer<typeof EvalStartedEventSchema>;
807
989
  type EvalCompletedEvent = z.infer<typeof EvalCompletedEventSchema>;
808
990
  type ReplayStartedEvent = z.infer<typeof ReplayStartedEventSchema>;
809
991
  type ReplayCompletedEvent = z.infer<typeof ReplayCompletedEventSchema>;
992
+ type BatchSubmittedEvent = z.infer<typeof BatchSubmittedEventSchema>;
993
+ type BatchCompletedEvent = z.infer<typeof BatchCompletedEventSchema>;
994
+ type BatchResultEvent = z.infer<typeof BatchResultEventSchema>;
810
995
 
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 };
996
+ 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 };
@@ -100,6 +100,15 @@ 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>;
104
+ tokenUsage: z.ZodOptional<z.ZodObject<{
105
+ inputTokens: z.ZodNumber;
106
+ outputTokens: z.ZodNumber;
107
+ totalTokens: z.ZodNumber;
108
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
109
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
110
+ }, z.core.$strip>>;
111
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
112
  }, z.core.$strip>;
104
113
  declare const AgentFailedEventSchema: z.ZodObject<{
105
114
  id: z.ZodString;
@@ -405,6 +414,97 @@ declare const ReplayCompletedEventSchema: z.ZodObject<{
405
414
  sourceRunId: z.ZodString;
406
415
  latencyMs: z.ZodNumber;
407
416
  }, z.core.$strip>;
417
+ declare const BatchRequestCountsSchema: z.ZodObject<{
418
+ processing: z.ZodNumber;
419
+ succeeded: z.ZodNumber;
420
+ errored: z.ZodNumber;
421
+ canceled: z.ZodNumber;
422
+ expired: z.ZodNumber;
423
+ }, z.core.$strip>;
424
+ type BatchRequestCounts = z.infer<typeof BatchRequestCountsSchema>;
425
+ declare const BatchResultOutcomeTypeSchema: z.ZodEnum<{
426
+ canceled: "canceled";
427
+ succeeded: "succeeded";
428
+ errored: "errored";
429
+ expired: "expired";
430
+ }>;
431
+ type BatchResultOutcomeType = z.infer<typeof BatchResultOutcomeTypeSchema>;
432
+ declare const BatchSubmittedEventSchema: z.ZodObject<{
433
+ id: z.ZodString;
434
+ runId: z.ZodString;
435
+ workflowName: z.ZodString;
436
+ timestamp: z.ZodISODateTime;
437
+ parentEventId: z.ZodNullable<z.ZodString>;
438
+ redacted: z.ZodBoolean;
439
+ metadata: z.ZodOptional<z.ZodObject<{
440
+ sessionId: z.ZodOptional<z.ZodString>;
441
+ userId: z.ZodOptional<z.ZodString>;
442
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
+ parentTraceId: z.ZodOptional<z.ZodString>;
444
+ parentSpanId: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strip>>;
446
+ type: z.ZodLiteral<"batch.submitted">;
447
+ batchId: z.ZodString;
448
+ requestCount: z.ZodNumber;
449
+ models: z.ZodArray<z.ZodString>;
450
+ }, z.core.$strip>;
451
+ declare const BatchCompletedEventSchema: z.ZodObject<{
452
+ id: z.ZodString;
453
+ runId: z.ZodString;
454
+ workflowName: z.ZodString;
455
+ timestamp: z.ZodISODateTime;
456
+ parentEventId: z.ZodNullable<z.ZodString>;
457
+ redacted: z.ZodBoolean;
458
+ metadata: z.ZodOptional<z.ZodObject<{
459
+ sessionId: z.ZodOptional<z.ZodString>;
460
+ userId: z.ZodOptional<z.ZodString>;
461
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
462
+ parentTraceId: z.ZodOptional<z.ZodString>;
463
+ parentSpanId: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strip>>;
465
+ type: z.ZodLiteral<"batch.completed">;
466
+ batchId: z.ZodString;
467
+ requestCounts: z.ZodObject<{
468
+ processing: z.ZodNumber;
469
+ succeeded: z.ZodNumber;
470
+ errored: z.ZodNumber;
471
+ canceled: z.ZodNumber;
472
+ expired: z.ZodNumber;
473
+ }, z.core.$strip>;
474
+ latencyMs: z.ZodNumber;
475
+ }, z.core.$strip>;
476
+ declare const BatchResultEventSchema: z.ZodObject<{
477
+ id: z.ZodString;
478
+ runId: z.ZodString;
479
+ workflowName: z.ZodString;
480
+ timestamp: z.ZodISODateTime;
481
+ parentEventId: z.ZodNullable<z.ZodString>;
482
+ redacted: z.ZodBoolean;
483
+ metadata: z.ZodOptional<z.ZodObject<{
484
+ sessionId: z.ZodOptional<z.ZodString>;
485
+ userId: z.ZodOptional<z.ZodString>;
486
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
+ parentTraceId: z.ZodOptional<z.ZodString>;
488
+ parentSpanId: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>>;
490
+ type: z.ZodLiteral<"batch.result">;
491
+ batchId: z.ZodString;
492
+ customId: z.ZodString;
493
+ outcomeType: z.ZodEnum<{
494
+ canceled: "canceled";
495
+ succeeded: "succeeded";
496
+ errored: "errored";
497
+ expired: "expired";
498
+ }>;
499
+ tokenUsage: z.ZodOptional<z.ZodObject<{
500
+ inputTokens: z.ZodNumber;
501
+ outputTokens: z.ZodNumber;
502
+ totalTokens: z.ZodNumber;
503
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
504
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
505
+ }, z.core.$strip>>;
506
+ costUsd: z.ZodNullable<z.ZodNumber>;
507
+ }, z.core.$strip>;
408
508
  declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
409
509
  id: z.ZodString;
410
510
  runId: z.ZodString;
@@ -494,6 +594,15 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
494
594
  agentName: z.ZodString;
495
595
  output: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
496
596
  latencyMs: z.ZodNumber;
597
+ modelName: z.ZodOptional<z.ZodString>;
598
+ tokenUsage: z.ZodOptional<z.ZodObject<{
599
+ inputTokens: z.ZodNumber;
600
+ outputTokens: z.ZodNumber;
601
+ totalTokens: z.ZodNumber;
602
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
603
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
604
+ }, z.core.$strip>>;
605
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
497
606
  }, z.core.$strip>, z.ZodObject<{
498
607
  id: z.ZodString;
499
608
  runId: z.ZodString;
@@ -783,6 +892,79 @@ declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
783
892
  type: z.ZodLiteral<"replay.completed">;
784
893
  sourceRunId: z.ZodString;
785
894
  latencyMs: z.ZodNumber;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ id: z.ZodString;
897
+ runId: z.ZodString;
898
+ workflowName: z.ZodString;
899
+ timestamp: z.ZodISODateTime;
900
+ parentEventId: z.ZodNullable<z.ZodString>;
901
+ redacted: z.ZodBoolean;
902
+ metadata: z.ZodOptional<z.ZodObject<{
903
+ sessionId: z.ZodOptional<z.ZodString>;
904
+ userId: z.ZodOptional<z.ZodString>;
905
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
906
+ parentTraceId: z.ZodOptional<z.ZodString>;
907
+ parentSpanId: z.ZodOptional<z.ZodString>;
908
+ }, z.core.$strip>>;
909
+ type: z.ZodLiteral<"batch.submitted">;
910
+ batchId: z.ZodString;
911
+ requestCount: z.ZodNumber;
912
+ models: z.ZodArray<z.ZodString>;
913
+ }, z.core.$strip>, z.ZodObject<{
914
+ id: z.ZodString;
915
+ runId: z.ZodString;
916
+ workflowName: z.ZodString;
917
+ timestamp: z.ZodISODateTime;
918
+ parentEventId: z.ZodNullable<z.ZodString>;
919
+ redacted: z.ZodBoolean;
920
+ metadata: z.ZodOptional<z.ZodObject<{
921
+ sessionId: z.ZodOptional<z.ZodString>;
922
+ userId: z.ZodOptional<z.ZodString>;
923
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
924
+ parentTraceId: z.ZodOptional<z.ZodString>;
925
+ parentSpanId: z.ZodOptional<z.ZodString>;
926
+ }, z.core.$strip>>;
927
+ type: z.ZodLiteral<"batch.completed">;
928
+ batchId: z.ZodString;
929
+ requestCounts: z.ZodObject<{
930
+ processing: z.ZodNumber;
931
+ succeeded: z.ZodNumber;
932
+ errored: z.ZodNumber;
933
+ canceled: z.ZodNumber;
934
+ expired: z.ZodNumber;
935
+ }, z.core.$strip>;
936
+ latencyMs: z.ZodNumber;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ id: z.ZodString;
939
+ runId: z.ZodString;
940
+ workflowName: z.ZodString;
941
+ timestamp: z.ZodISODateTime;
942
+ parentEventId: z.ZodNullable<z.ZodString>;
943
+ redacted: z.ZodBoolean;
944
+ metadata: z.ZodOptional<z.ZodObject<{
945
+ sessionId: z.ZodOptional<z.ZodString>;
946
+ userId: z.ZodOptional<z.ZodString>;
947
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
+ parentTraceId: z.ZodOptional<z.ZodString>;
949
+ parentSpanId: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strip>>;
951
+ type: z.ZodLiteral<"batch.result">;
952
+ batchId: z.ZodString;
953
+ customId: z.ZodString;
954
+ outcomeType: z.ZodEnum<{
955
+ canceled: "canceled";
956
+ succeeded: "succeeded";
957
+ errored: "errored";
958
+ expired: "expired";
959
+ }>;
960
+ tokenUsage: z.ZodOptional<z.ZodObject<{
961
+ inputTokens: z.ZodNumber;
962
+ outputTokens: z.ZodNumber;
963
+ totalTokens: z.ZodNumber;
964
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
965
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
966
+ }, z.core.$strip>>;
967
+ costUsd: z.ZodNullable<z.ZodNumber>;
786
968
  }, z.core.$strip>], "type">;
787
969
  type TraceEvent = z.infer<typeof TraceEventSchema>;
788
970
  type TraceEventType = TraceEvent["type"];
@@ -807,5 +989,8 @@ type EvalStartedEvent = z.infer<typeof EvalStartedEventSchema>;
807
989
  type EvalCompletedEvent = z.infer<typeof EvalCompletedEventSchema>;
808
990
  type ReplayStartedEvent = z.infer<typeof ReplayStartedEventSchema>;
809
991
  type ReplayCompletedEvent = z.infer<typeof ReplayCompletedEventSchema>;
992
+ type BatchSubmittedEvent = z.infer<typeof BatchSubmittedEventSchema>;
993
+ type BatchCompletedEvent = z.infer<typeof BatchCompletedEventSchema>;
994
+ type BatchResultEvent = z.infer<typeof BatchResultEventSchema>;
810
995
 
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 };
996
+ 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 };
@@ -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-PQRNSB4E.js";
30
+ } from "./chunk-A33NFCKU.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemble-dev/shared-types",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "license": "Elastic-2.0",
5
5
  "description": "Shared TypeScript types and Zod schemas for Assemble",
6
6
  "repository": {