@handlebar/governance-schema 0.0.6-dev.9 → 0.1.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.
@@ -74,7 +74,7 @@ export declare const MessageEventSchema: z.ZodObject<{
74
74
  }>>;
75
75
  }, z.core.$strip>>;
76
76
  kind: z.ZodLiteral<"message.raw.created">;
77
- data: z.ZodObject<{
77
+ data: z.ZodIntersection<z.ZodObject<{
78
78
  messageId: z.ZodUUID;
79
79
  role: z.ZodEnum<{
80
80
  system: "system";
@@ -98,1519 +98,12 @@ export declare const MessageEventSchema: z.ZodObject<{
98
98
  turnIndex: z.ZodOptional<z.ZodNumber>;
99
99
  name: z.ZodOptional<z.ZodString>;
100
100
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
- "~standard": z.ZodStandardSchemaWithJSON<{
102
- messageId: z.ZodUUID;
103
- role: z.ZodEnum<{
104
- system: "system";
105
- developer: "developer";
106
- user: "user";
107
- assistant: "assistant";
108
- tool: "tool";
109
- }>;
110
- kind: z.ZodEnum<{
111
- input: "input";
112
- output: "output";
113
- tool_call: "tool_call";
114
- tool_result: "tool_result";
115
- observation: "observation";
116
- internal_summary: "internal_summary";
117
- thinking: "thinking";
118
- }>;
119
- content: z.ZodString;
120
- contentTruncated: z.ZodBoolean;
121
- parentMessageId: z.ZodOptional<z.ZodUUID>;
122
- turnIndex: z.ZodOptional<z.ZodNumber>;
123
- name: z.ZodOptional<z.ZodString>;
124
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
125
- } & z.ZodObject<{
126
- debug: z.ZodOptional<z.ZodObject<{
127
- approxTokens: z.ZodOptional<z.ZodNumber>;
128
- chars: z.ZodOptional<z.ZodNumber>;
129
- }, z.core.$strip>>;
130
- }, z.core.$strip>>;
131
- shape: {
132
- debug: z.ZodOptional<z.ZodObject<{
133
- approxTokens: z.ZodOptional<z.ZodNumber>;
134
- chars: z.ZodOptional<z.ZodNumber>;
135
- }, z.core.$strip>>;
136
- };
137
- keyof: () => z.ZodEnum<{
138
- debug: "debug";
139
- }>;
140
- catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
141
- debug: z.ZodOptional<z.ZodObject<{
142
- approxTokens: z.ZodOptional<z.ZodNumber>;
143
- chars: z.ZodOptional<z.ZodNumber>;
144
- }, z.core.$strip>>;
145
- }, z.core.$catchall<T>>;
146
- passthrough: () => z.ZodObject<{
147
- debug: z.ZodOptional<z.ZodObject<{
148
- approxTokens: z.ZodOptional<z.ZodNumber>;
149
- chars: z.ZodOptional<z.ZodNumber>;
150
- }, z.core.$strip>>;
151
- }, z.core.$loose>;
152
- loose: () => z.ZodObject<{
153
- debug: z.ZodOptional<z.ZodObject<{
154
- approxTokens: z.ZodOptional<z.ZodNumber>;
155
- chars: z.ZodOptional<z.ZodNumber>;
156
- }, z.core.$strip>>;
157
- }, z.core.$loose>;
158
- strict: () => z.ZodObject<{
159
- debug: z.ZodOptional<z.ZodObject<{
160
- approxTokens: z.ZodOptional<z.ZodNumber>;
161
- chars: z.ZodOptional<z.ZodNumber>;
162
- }, z.core.$strip>>;
163
- }, z.core.$strict>;
164
- strip: () => z.ZodObject<{
165
- debug: z.ZodOptional<z.ZodObject<{
166
- approxTokens: z.ZodOptional<z.ZodNumber>;
167
- chars: z.ZodOptional<z.ZodNumber>;
168
- }, z.core.$strip>>;
169
- }, z.core.$strip>;
170
- extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<("debug" & keyof U extends never ? {
171
- debug: z.ZodOptional<z.ZodObject<{
172
- approxTokens: z.ZodOptional<z.ZodNumber>;
173
- chars: z.ZodOptional<z.ZodNumber>;
174
- }, z.core.$strip>>;
175
- } & U : ({
176
- debug: z.ZodOptional<z.ZodObject<{
177
- approxTokens: z.ZodOptional<z.ZodNumber>;
178
- chars: z.ZodOptional<z.ZodNumber>;
179
- }, z.core.$strip>>;
180
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
181
- safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
182
- debug: z.ZodOptional<z.ZodObject<{
183
- approxTokens: z.ZodOptional<z.ZodNumber>;
184
- chars: z.ZodOptional<z.ZodNumber>;
185
- }, z.core.$strip>>;
186
- }, U> & Partial<Record<"debug", z.core.SomeType>>) => z.ZodObject<("debug" & keyof U extends never ? {
187
- debug: z.ZodOptional<z.ZodObject<{
188
- approxTokens: z.ZodOptional<z.ZodNumber>;
189
- chars: z.ZodOptional<z.ZodNumber>;
190
- }, z.core.$strip>>;
191
- } & U : ({
192
- debug: z.ZodOptional<z.ZodObject<{
193
- approxTokens: z.ZodOptional<z.ZodNumber>;
194
- chars: z.ZodOptional<z.ZodNumber>;
195
- }, z.core.$strip>>;
196
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
197
- merge: <U extends z.ZodObject>(other: U) => z.ZodObject<("debug" & keyof U["shape"] extends never ? {
198
- debug: z.ZodOptional<z.ZodObject<{
199
- approxTokens: z.ZodOptional<z.ZodNumber>;
200
- chars: z.ZodOptional<z.ZodNumber>;
201
- }, z.core.$strip>>;
202
- } & U["shape"] : ({
203
- debug: z.ZodOptional<z.ZodObject<{
204
- approxTokens: z.ZodOptional<z.ZodNumber>;
205
- chars: z.ZodOptional<z.ZodNumber>;
206
- }, z.core.$strip>>;
207
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
208
- pick: <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>) => z.ZodObject<Pick<{
209
- debug: z.ZodOptional<z.ZodObject<{
210
- approxTokens: z.ZodOptional<z.ZodNumber>;
211
- chars: z.ZodOptional<z.ZodNumber>;
212
- }, z.core.$strip>>;
213
- }, Extract<"debug", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
214
- omit: <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>) => z.ZodObject<Omit<{
215
- debug: z.ZodOptional<z.ZodObject<{
216
- approxTokens: z.ZodOptional<z.ZodNumber>;
217
- chars: z.ZodOptional<z.ZodNumber>;
218
- }, z.core.$strip>>;
219
- }, Extract<"debug", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
220
- partial: {
221
- (): z.ZodObject<{
222
- debug: z.ZodOptional<z.ZodOptional<z.ZodObject<{
223
- approxTokens: z.ZodOptional<z.ZodNumber>;
224
- chars: z.ZodOptional<z.ZodNumber>;
225
- }, z.core.$strip>>>;
226
- }, z.core.$strip>;
227
- <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>): z.ZodObject<{
228
- debug: "debug" extends infer T ? T extends "debug" ? T extends keyof M ? z.ZodOptional<{
229
- debug: z.ZodOptional<z.ZodObject<{
230
- approxTokens: z.ZodOptional<z.ZodNumber>;
231
- chars: z.ZodOptional<z.ZodNumber>;
232
- }, z.core.$strip>>;
233
- }[T]> : {
234
- debug: z.ZodOptional<z.ZodObject<{
235
- approxTokens: z.ZodOptional<z.ZodNumber>;
236
- chars: z.ZodOptional<z.ZodNumber>;
237
- }, z.core.$strip>>;
238
- }[T] : never : never;
239
- }, z.core.$strip>;
240
- };
241
- required: {
242
- (): z.ZodObject<{
243
- debug: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
244
- approxTokens: z.ZodOptional<z.ZodNumber>;
245
- chars: z.ZodOptional<z.ZodNumber>;
246
- }, z.core.$strip>>>;
247
- }, z.core.$strip>;
248
- <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>): z.ZodObject<{
249
- debug: "debug" extends infer T ? T extends "debug" ? T extends keyof M ? z.ZodNonOptional<{
250
- debug: z.ZodOptional<z.ZodObject<{
251
- approxTokens: z.ZodOptional<z.ZodNumber>;
252
- chars: z.ZodOptional<z.ZodNumber>;
253
- }, z.core.$strip>>;
254
- }[T]> : {
255
- debug: z.ZodOptional<z.ZodObject<{
256
- approxTokens: z.ZodOptional<z.ZodNumber>;
257
- chars: z.ZodOptional<z.ZodNumber>;
258
- }, z.core.$strip>>;
259
- }[T] : never : never;
260
- }, z.core.$strip>;
261
- };
262
- def: z.core.$ZodObjectDef<{
263
- debug: z.ZodOptional<z.ZodObject<{
264
- approxTokens: z.ZodOptional<z.ZodNumber>;
265
- chars: z.ZodOptional<z.ZodNumber>;
266
- }, z.core.$strip>>;
267
- }>;
268
- type: "object";
269
- _def: z.core.$ZodObjectDef<{
270
- debug: z.ZodOptional<z.ZodObject<{
271
- approxTokens: z.ZodOptional<z.ZodNumber>;
272
- chars: z.ZodOptional<z.ZodNumber>;
273
- }, z.core.$strip>>;
274
- }>;
275
- _output: {
276
- debug?: {
277
- approxTokens?: number | undefined;
278
- chars?: number | undefined;
279
- } | undefined;
280
- };
281
- _input: {
282
- debug?: {
283
- approxTokens?: number | undefined;
284
- chars?: number | undefined;
285
- } | undefined;
286
- };
287
- toJSONSchema: (params?: z.core.ToJSONSchemaParams) => z.core.ZodStandardJSONSchemaPayload<{
288
- messageId: z.ZodUUID;
289
- role: z.ZodEnum<{
290
- system: "system";
291
- developer: "developer";
292
- user: "user";
293
- assistant: "assistant";
294
- tool: "tool";
295
- }>;
296
- kind: z.ZodEnum<{
297
- input: "input";
298
- output: "output";
299
- tool_call: "tool_call";
300
- tool_result: "tool_result";
301
- observation: "observation";
302
- internal_summary: "internal_summary";
303
- thinking: "thinking";
304
- }>;
305
- content: z.ZodString;
306
- contentTruncated: z.ZodBoolean;
307
- parentMessageId: z.ZodOptional<z.ZodUUID>;
308
- turnIndex: z.ZodOptional<z.ZodNumber>;
309
- name: z.ZodOptional<z.ZodString>;
310
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
- } & z.ZodObject<{
312
- debug: z.ZodOptional<z.ZodObject<{
313
- approxTokens: z.ZodOptional<z.ZodNumber>;
314
- chars: z.ZodOptional<z.ZodNumber>;
315
- }, z.core.$strip>>;
316
- }, z.core.$strip>>;
317
- check: (...checks: (z.core.CheckFn<{
318
- debug?: {
319
- approxTokens?: number | undefined;
320
- chars?: number | undefined;
321
- } | undefined;
322
- }> | z.core.$ZodCheck<{
323
- debug?: {
324
- approxTokens?: number | undefined;
325
- chars?: number | undefined;
326
- } | undefined;
327
- }>)[]) => {
328
- messageId: z.ZodUUID;
329
- role: z.ZodEnum<{
330
- system: "system";
331
- developer: "developer";
332
- user: "user";
333
- assistant: "assistant";
334
- tool: "tool";
335
- }>;
336
- kind: z.ZodEnum<{
337
- input: "input";
338
- output: "output";
339
- tool_call: "tool_call";
340
- tool_result: "tool_result";
341
- observation: "observation";
342
- internal_summary: "internal_summary";
343
- thinking: "thinking";
344
- }>;
345
- content: z.ZodString;
346
- contentTruncated: z.ZodBoolean;
347
- parentMessageId: z.ZodOptional<z.ZodUUID>;
348
- turnIndex: z.ZodOptional<z.ZodNumber>;
349
- name: z.ZodOptional<z.ZodString>;
350
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
- } & z.ZodObject<{
352
- debug: z.ZodOptional<z.ZodObject<{
353
- approxTokens: z.ZodOptional<z.ZodNumber>;
354
- chars: z.ZodOptional<z.ZodNumber>;
355
- }, z.core.$strip>>;
356
- }, z.core.$strip>;
357
- with: (...checks: (z.core.CheckFn<{
358
- debug?: {
359
- approxTokens?: number | undefined;
360
- chars?: number | undefined;
361
- } | undefined;
362
- }> | z.core.$ZodCheck<{
363
- debug?: {
364
- approxTokens?: number | undefined;
365
- chars?: number | undefined;
366
- } | undefined;
367
- }>)[]) => {
368
- messageId: z.ZodUUID;
369
- role: z.ZodEnum<{
370
- system: "system";
371
- developer: "developer";
372
- user: "user";
373
- assistant: "assistant";
374
- tool: "tool";
375
- }>;
376
- kind: z.ZodEnum<{
377
- input: "input";
378
- output: "output";
379
- tool_call: "tool_call";
380
- tool_result: "tool_result";
381
- observation: "observation";
382
- internal_summary: "internal_summary";
383
- thinking: "thinking";
384
- }>;
385
- content: z.ZodString;
386
- contentTruncated: z.ZodBoolean;
387
- parentMessageId: z.ZodOptional<z.ZodUUID>;
388
- turnIndex: z.ZodOptional<z.ZodNumber>;
389
- name: z.ZodOptional<z.ZodString>;
390
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
391
- } & z.ZodObject<{
392
- debug: z.ZodOptional<z.ZodObject<{
393
- approxTokens: z.ZodOptional<z.ZodNumber>;
394
- chars: z.ZodOptional<z.ZodNumber>;
395
- }, z.core.$strip>>;
396
- }, z.core.$strip>;
397
- clone: (def?: z.core.$ZodObjectDef<{
398
- debug: z.ZodOptional<z.ZodObject<{
399
- approxTokens: z.ZodOptional<z.ZodNumber>;
400
- chars: z.ZodOptional<z.ZodNumber>;
401
- }, z.core.$strip>>;
402
- }> | undefined, params?: {
403
- parent: boolean;
404
- } | undefined) => {
405
- messageId: z.ZodUUID;
406
- role: z.ZodEnum<{
407
- system: "system";
408
- developer: "developer";
409
- user: "user";
410
- assistant: "assistant";
411
- tool: "tool";
412
- }>;
413
- kind: z.ZodEnum<{
414
- input: "input";
415
- output: "output";
416
- tool_call: "tool_call";
417
- tool_result: "tool_result";
418
- observation: "observation";
419
- internal_summary: "internal_summary";
420
- thinking: "thinking";
421
- }>;
422
- content: z.ZodString;
423
- contentTruncated: z.ZodBoolean;
424
- parentMessageId: z.ZodOptional<z.ZodUUID>;
425
- turnIndex: z.ZodOptional<z.ZodNumber>;
426
- name: z.ZodOptional<z.ZodString>;
427
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
428
- } & z.ZodObject<{
429
- debug: z.ZodOptional<z.ZodObject<{
430
- approxTokens: z.ZodOptional<z.ZodNumber>;
431
- chars: z.ZodOptional<z.ZodNumber>;
432
- }, z.core.$strip>>;
433
- }, z.core.$strip>;
434
- register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: {
435
- messageId: z.ZodUUID;
436
- role: z.ZodEnum<{
437
- system: "system";
438
- developer: "developer";
439
- user: "user";
440
- assistant: "assistant";
441
- tool: "tool";
442
- }>;
443
- kind: z.ZodEnum<{
444
- input: "input";
445
- output: "output";
446
- tool_call: "tool_call";
447
- tool_result: "tool_result";
448
- observation: "observation";
449
- internal_summary: "internal_summary";
450
- thinking: "thinking";
451
- }>;
452
- content: z.ZodString;
453
- contentTruncated: z.ZodBoolean;
454
- parentMessageId: z.ZodOptional<z.ZodUUID>;
455
- turnIndex: z.ZodOptional<z.ZodNumber>;
456
- name: z.ZodOptional<z.ZodString>;
457
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
- } & z.ZodObject<{
459
- debug: z.ZodOptional<z.ZodObject<{
460
- approxTokens: z.ZodOptional<z.ZodNumber>;
461
- chars: z.ZodOptional<z.ZodNumber>;
462
- }, z.core.$strip>>;
463
- }, z.core.$strip> extends infer T ? T extends {
464
- messageId: z.ZodUUID;
465
- role: z.ZodEnum<{
466
- system: "system";
467
- developer: "developer";
468
- user: "user";
469
- assistant: "assistant";
470
- tool: "tool";
471
- }>;
472
- kind: z.ZodEnum<{
473
- input: "input";
474
- output: "output";
475
- tool_call: "tool_call";
476
- tool_result: "tool_result";
477
- observation: "observation";
478
- internal_summary: "internal_summary";
479
- thinking: "thinking";
480
- }>;
481
- content: z.ZodString;
482
- contentTruncated: z.ZodBoolean;
483
- parentMessageId: z.ZodOptional<z.ZodUUID>;
484
- turnIndex: z.ZodOptional<z.ZodNumber>;
485
- name: z.ZodOptional<z.ZodString>;
486
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
487
- } & z.ZodObject<{
488
- debug: z.ZodOptional<z.ZodObject<{
489
- approxTokens: z.ZodOptional<z.ZodNumber>;
490
- chars: z.ZodOptional<z.ZodNumber>;
491
- }, z.core.$strip>>;
492
- }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & {
493
- messageId: z.ZodUUID;
494
- role: z.ZodEnum<{
495
- system: "system";
496
- developer: "developer";
497
- user: "user";
498
- assistant: "assistant";
499
- tool: "tool";
500
- }>;
501
- kind: z.ZodEnum<{
502
- input: "input";
503
- output: "output";
504
- tool_call: "tool_call";
505
- tool_result: "tool_result";
506
- observation: "observation";
507
- internal_summary: "internal_summary";
508
- thinking: "thinking";
509
- }>;
510
- content: z.ZodString;
511
- contentTruncated: z.ZodBoolean;
512
- parentMessageId: z.ZodOptional<z.ZodUUID>;
513
- turnIndex: z.ZodOptional<z.ZodNumber>;
514
- name: z.ZodOptional<z.ZodString>;
515
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
516
- } & z.ZodObject<{
517
- debug: z.ZodOptional<z.ZodObject<{
518
- approxTokens: z.ZodOptional<z.ZodNumber>;
519
- chars: z.ZodOptional<z.ZodNumber>;
520
- }, z.core.$strip>>;
521
- }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & {
522
- messageId: z.ZodUUID;
523
- role: z.ZodEnum<{
524
- system: "system";
525
- developer: "developer";
526
- user: "user";
527
- assistant: "assistant";
528
- tool: "tool";
529
- }>;
530
- kind: z.ZodEnum<{
531
- input: "input";
532
- output: "output";
533
- tool_call: "tool_call";
534
- tool_result: "tool_result";
535
- observation: "observation";
536
- internal_summary: "internal_summary";
537
- thinking: "thinking";
538
- }>;
539
- content: z.ZodString;
540
- contentTruncated: z.ZodBoolean;
541
- parentMessageId: z.ZodOptional<z.ZodUUID>;
542
- turnIndex: z.ZodOptional<z.ZodNumber>;
543
- name: z.ZodOptional<z.ZodString>;
544
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
545
- } & z.ZodObject<{
546
- debug: z.ZodOptional<z.ZodObject<{
547
- approxTokens: z.ZodOptional<z.ZodNumber>;
548
- chars: z.ZodOptional<z.ZodNumber>;
549
- }, z.core.$strip>>;
550
- }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => {
551
- messageId: z.ZodUUID;
552
- role: z.ZodEnum<{
553
- system: "system";
554
- developer: "developer";
555
- user: "user";
556
- assistant: "assistant";
557
- tool: "tool";
558
- }>;
559
- kind: z.ZodEnum<{
560
- input: "input";
561
- output: "output";
562
- tool_call: "tool_call";
563
- tool_result: "tool_result";
564
- observation: "observation";
565
- internal_summary: "internal_summary";
566
- thinking: "thinking";
567
- }>;
568
- content: z.ZodString;
569
- contentTruncated: z.ZodBoolean;
570
- parentMessageId: z.ZodOptional<z.ZodUUID>;
571
- turnIndex: z.ZodOptional<z.ZodNumber>;
572
- name: z.ZodOptional<z.ZodString>;
573
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
574
- } & z.ZodObject<{
575
- debug: z.ZodOptional<z.ZodObject<{
576
- approxTokens: z.ZodOptional<z.ZodNumber>;
577
- chars: z.ZodOptional<z.ZodNumber>;
578
- }, z.core.$strip>>;
579
- }, z.core.$strip>;
580
- brand: <T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T | undefined) => PropertyKey extends T ? {
581
- messageId: z.ZodUUID;
582
- role: z.ZodEnum<{
583
- system: "system";
584
- developer: "developer";
585
- user: "user";
586
- assistant: "assistant";
587
- tool: "tool";
588
- }>;
589
- kind: z.ZodEnum<{
590
- input: "input";
591
- output: "output";
592
- tool_call: "tool_call";
593
- tool_result: "tool_result";
594
- observation: "observation";
595
- internal_summary: "internal_summary";
596
- thinking: "thinking";
597
- }>;
598
- content: z.ZodString;
599
- contentTruncated: z.ZodBoolean;
600
- parentMessageId: z.ZodOptional<z.ZodUUID>;
601
- turnIndex: z.ZodOptional<z.ZodNumber>;
602
- name: z.ZodOptional<z.ZodString>;
603
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
604
- } & z.ZodObject<{
605
- debug: z.ZodOptional<z.ZodObject<{
606
- approxTokens: z.ZodOptional<z.ZodNumber>;
607
- chars: z.ZodOptional<z.ZodNumber>;
608
- }, z.core.$strip>>;
609
- }, z.core.$strip> : z.core.$ZodBranded<{
610
- messageId: z.ZodUUID;
611
- role: z.ZodEnum<{
612
- system: "system";
613
- developer: "developer";
614
- user: "user";
615
- assistant: "assistant";
616
- tool: "tool";
617
- }>;
618
- kind: z.ZodEnum<{
619
- input: "input";
620
- output: "output";
621
- tool_call: "tool_call";
622
- tool_result: "tool_result";
623
- observation: "observation";
624
- internal_summary: "internal_summary";
625
- thinking: "thinking";
626
- }>;
627
- content: z.ZodString;
628
- contentTruncated: z.ZodBoolean;
629
- parentMessageId: z.ZodOptional<z.ZodUUID>;
630
- turnIndex: z.ZodOptional<z.ZodNumber>;
631
- name: z.ZodOptional<z.ZodString>;
632
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
- } & z.ZodObject<{
634
- debug: z.ZodOptional<z.ZodObject<{
635
- approxTokens: z.ZodOptional<z.ZodNumber>;
636
- chars: z.ZodOptional<z.ZodNumber>;
637
- }, z.core.$strip>>;
638
- }, z.core.$strip>, T, Dir>;
639
- parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
640
- debug?: {
641
- approxTokens?: number | undefined;
642
- chars?: number | undefined;
643
- } | undefined;
644
- };
645
- safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
646
- debug?: {
647
- approxTokens?: number | undefined;
648
- chars?: number | undefined;
649
- } | undefined;
650
- }>;
651
- parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
652
- debug?: {
653
- approxTokens?: number | undefined;
654
- chars?: number | undefined;
655
- } | undefined;
656
- }>;
657
- safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
658
- debug?: {
659
- approxTokens?: number | undefined;
660
- chars?: number | undefined;
661
- } | undefined;
662
- }>>;
663
- spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
664
- debug?: {
665
- approxTokens?: number | undefined;
666
- chars?: number | undefined;
667
- } | undefined;
668
- }>>;
669
- encode: (data: {
670
- debug?: {
671
- approxTokens?: number | undefined;
672
- chars?: number | undefined;
673
- } | undefined;
674
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
675
- debug?: {
676
- approxTokens?: number | undefined;
677
- chars?: number | undefined;
678
- } | undefined;
679
- };
680
- decode: (data: {
681
- debug?: {
682
- approxTokens?: number | undefined;
683
- chars?: number | undefined;
684
- } | undefined;
685
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
686
- debug?: {
687
- approxTokens?: number | undefined;
688
- chars?: number | undefined;
689
- } | undefined;
690
- };
691
- encodeAsync: (data: {
692
- debug?: {
693
- approxTokens?: number | undefined;
694
- chars?: number | undefined;
695
- } | undefined;
696
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
697
- debug?: {
698
- approxTokens?: number | undefined;
699
- chars?: number | undefined;
700
- } | undefined;
701
- }>;
702
- decodeAsync: (data: {
703
- debug?: {
704
- approxTokens?: number | undefined;
705
- chars?: number | undefined;
706
- } | undefined;
707
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
708
- debug?: {
709
- approxTokens?: number | undefined;
710
- chars?: number | undefined;
711
- } | undefined;
712
- }>;
713
- safeEncode: (data: {
714
- debug?: {
715
- approxTokens?: number | undefined;
716
- chars?: number | undefined;
717
- } | undefined;
718
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
719
- debug?: {
720
- approxTokens?: number | undefined;
721
- chars?: number | undefined;
722
- } | undefined;
723
- }>;
724
- safeDecode: (data: {
725
- debug?: {
726
- approxTokens?: number | undefined;
727
- chars?: number | undefined;
728
- } | undefined;
729
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
730
- debug?: {
731
- approxTokens?: number | undefined;
732
- chars?: number | undefined;
733
- } | undefined;
734
- }>;
735
- safeEncodeAsync: (data: {
736
- debug?: {
737
- approxTokens?: number | undefined;
738
- chars?: number | undefined;
739
- } | undefined;
740
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
741
- debug?: {
742
- approxTokens?: number | undefined;
743
- chars?: number | undefined;
744
- } | undefined;
745
- }>>;
746
- safeDecodeAsync: (data: {
747
- debug?: {
748
- approxTokens?: number | undefined;
749
- chars?: number | undefined;
750
- } | undefined;
751
- }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
752
- debug?: {
753
- approxTokens?: number | undefined;
754
- chars?: number | undefined;
755
- } | undefined;
756
- }>>;
757
- refine: <Ch extends (arg: {
758
- debug?: {
759
- approxTokens?: number | undefined;
760
- chars?: number | undefined;
761
- } | undefined;
762
- }) => unknown | Promise<unknown>>(check: Ch, params?: string | {
763
- abort?: boolean | undefined | undefined;
764
- when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
765
- path?: PropertyKey[] | undefined | undefined;
766
- params?: Record<string, any> | undefined;
767
- error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
768
- message?: string | undefined | undefined;
769
- } | undefined) => Ch extends (arg: any) => arg is infer R ? {
770
- messageId: z.ZodUUID;
771
- role: z.ZodEnum<{
772
- system: "system";
773
- developer: "developer";
774
- user: "user";
775
- assistant: "assistant";
776
- tool: "tool";
777
- }>;
778
- kind: z.ZodEnum<{
779
- input: "input";
780
- output: "output";
781
- tool_call: "tool_call";
782
- tool_result: "tool_result";
783
- observation: "observation";
784
- internal_summary: "internal_summary";
785
- thinking: "thinking";
786
- }>;
787
- content: z.ZodString;
788
- contentTruncated: z.ZodBoolean;
789
- parentMessageId: z.ZodOptional<z.ZodUUID>;
790
- turnIndex: z.ZodOptional<z.ZodNumber>;
791
- name: z.ZodOptional<z.ZodString>;
792
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
- } & z.ZodObject<{
794
- debug: z.ZodOptional<z.ZodObject<{
795
- approxTokens: z.ZodOptional<z.ZodNumber>;
796
- chars: z.ZodOptional<z.ZodNumber>;
797
- }, z.core.$strip>>;
798
- }, z.core.$strip> & z.ZodType<R, {
799
- debug?: {
800
- approxTokens?: number | undefined;
801
- chars?: number | undefined;
802
- } | undefined;
803
- }, z.core.$ZodTypeInternals<R, {
804
- debug?: {
805
- approxTokens?: number | undefined;
806
- chars?: number | undefined;
807
- } | undefined;
808
- }>> : {
809
- messageId: z.ZodUUID;
810
- role: z.ZodEnum<{
811
- system: "system";
812
- developer: "developer";
813
- user: "user";
814
- assistant: "assistant";
815
- tool: "tool";
816
- }>;
817
- kind: z.ZodEnum<{
818
- input: "input";
819
- output: "output";
820
- tool_call: "tool_call";
821
- tool_result: "tool_result";
822
- observation: "observation";
823
- internal_summary: "internal_summary";
824
- thinking: "thinking";
825
- }>;
826
- content: z.ZodString;
827
- contentTruncated: z.ZodBoolean;
828
- parentMessageId: z.ZodOptional<z.ZodUUID>;
829
- turnIndex: z.ZodOptional<z.ZodNumber>;
830
- name: z.ZodOptional<z.ZodString>;
831
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
832
- } & z.ZodObject<{
833
- debug: z.ZodOptional<z.ZodObject<{
834
- approxTokens: z.ZodOptional<z.ZodNumber>;
835
- chars: z.ZodOptional<z.ZodNumber>;
836
- }, z.core.$strip>>;
837
- }, z.core.$strip>;
838
- superRefine: (refinement: (arg: {
839
- debug?: {
840
- approxTokens?: number | undefined;
841
- chars?: number | undefined;
842
- } | undefined;
843
- }, ctx: z.core.$RefinementCtx<{
844
- debug?: {
845
- approxTokens?: number | undefined;
846
- chars?: number | undefined;
847
- } | undefined;
848
- }>) => void | Promise<void>) => {
849
- messageId: z.ZodUUID;
850
- role: z.ZodEnum<{
851
- system: "system";
852
- developer: "developer";
853
- user: "user";
854
- assistant: "assistant";
855
- tool: "tool";
856
- }>;
857
- kind: z.ZodEnum<{
858
- input: "input";
859
- output: "output";
860
- tool_call: "tool_call";
861
- tool_result: "tool_result";
862
- observation: "observation";
863
- internal_summary: "internal_summary";
864
- thinking: "thinking";
865
- }>;
866
- content: z.ZodString;
867
- contentTruncated: z.ZodBoolean;
868
- parentMessageId: z.ZodOptional<z.ZodUUID>;
869
- turnIndex: z.ZodOptional<z.ZodNumber>;
870
- name: z.ZodOptional<z.ZodString>;
871
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
872
- } & z.ZodObject<{
873
- debug: z.ZodOptional<z.ZodObject<{
874
- approxTokens: z.ZodOptional<z.ZodNumber>;
875
- chars: z.ZodOptional<z.ZodNumber>;
876
- }, z.core.$strip>>;
877
- }, z.core.$strip>;
878
- overwrite: (fn: (x: {
879
- debug?: {
880
- approxTokens?: number | undefined;
881
- chars?: number | undefined;
882
- } | undefined;
883
- }) => {
884
- debug?: {
885
- approxTokens?: number | undefined;
886
- chars?: number | undefined;
887
- } | undefined;
888
- }) => {
889
- messageId: z.ZodUUID;
890
- role: z.ZodEnum<{
891
- system: "system";
892
- developer: "developer";
893
- user: "user";
894
- assistant: "assistant";
895
- tool: "tool";
896
- }>;
897
- kind: z.ZodEnum<{
898
- input: "input";
899
- output: "output";
900
- tool_call: "tool_call";
901
- tool_result: "tool_result";
902
- observation: "observation";
903
- internal_summary: "internal_summary";
904
- thinking: "thinking";
905
- }>;
906
- content: z.ZodString;
907
- contentTruncated: z.ZodBoolean;
908
- parentMessageId: z.ZodOptional<z.ZodUUID>;
909
- turnIndex: z.ZodOptional<z.ZodNumber>;
910
- name: z.ZodOptional<z.ZodString>;
911
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
912
- } & z.ZodObject<{
913
- debug: z.ZodOptional<z.ZodObject<{
914
- approxTokens: z.ZodOptional<z.ZodNumber>;
915
- chars: z.ZodOptional<z.ZodNumber>;
916
- }, z.core.$strip>>;
917
- }, z.core.$strip>;
918
- optional: () => z.ZodOptional<{
919
- messageId: z.ZodUUID;
920
- role: z.ZodEnum<{
921
- system: "system";
922
- developer: "developer";
923
- user: "user";
924
- assistant: "assistant";
925
- tool: "tool";
926
- }>;
927
- kind: z.ZodEnum<{
928
- input: "input";
929
- output: "output";
930
- tool_call: "tool_call";
931
- tool_result: "tool_result";
932
- observation: "observation";
933
- internal_summary: "internal_summary";
934
- thinking: "thinking";
935
- }>;
936
- content: z.ZodString;
937
- contentTruncated: z.ZodBoolean;
938
- parentMessageId: z.ZodOptional<z.ZodUUID>;
939
- turnIndex: z.ZodOptional<z.ZodNumber>;
940
- name: z.ZodOptional<z.ZodString>;
941
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
942
- } & z.ZodObject<{
943
- debug: z.ZodOptional<z.ZodObject<{
944
- approxTokens: z.ZodOptional<z.ZodNumber>;
945
- chars: z.ZodOptional<z.ZodNumber>;
946
- }, z.core.$strip>>;
947
- }, z.core.$strip>>;
948
- exactOptional: () => z.ZodExactOptional<{
949
- messageId: z.ZodUUID;
950
- role: z.ZodEnum<{
951
- system: "system";
952
- developer: "developer";
953
- user: "user";
954
- assistant: "assistant";
955
- tool: "tool";
956
- }>;
957
- kind: z.ZodEnum<{
958
- input: "input";
959
- output: "output";
960
- tool_call: "tool_call";
961
- tool_result: "tool_result";
962
- observation: "observation";
963
- internal_summary: "internal_summary";
964
- thinking: "thinking";
965
- }>;
966
- content: z.ZodString;
967
- contentTruncated: z.ZodBoolean;
968
- parentMessageId: z.ZodOptional<z.ZodUUID>;
969
- turnIndex: z.ZodOptional<z.ZodNumber>;
970
- name: z.ZodOptional<z.ZodString>;
971
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
972
- } & z.ZodObject<{
973
- debug: z.ZodOptional<z.ZodObject<{
974
- approxTokens: z.ZodOptional<z.ZodNumber>;
975
- chars: z.ZodOptional<z.ZodNumber>;
976
- }, z.core.$strip>>;
977
- }, z.core.$strip>>;
978
- nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<{
979
- messageId: z.ZodUUID;
980
- role: z.ZodEnum<{
981
- system: "system";
982
- developer: "developer";
983
- user: "user";
984
- assistant: "assistant";
985
- tool: "tool";
986
- }>;
987
- kind: z.ZodEnum<{
988
- input: "input";
989
- output: "output";
990
- tool_call: "tool_call";
991
- tool_result: "tool_result";
992
- observation: "observation";
993
- internal_summary: "internal_summary";
994
- thinking: "thinking";
995
- }>;
996
- content: z.ZodString;
997
- contentTruncated: z.ZodBoolean;
998
- parentMessageId: z.ZodOptional<z.ZodUUID>;
999
- turnIndex: z.ZodOptional<z.ZodNumber>;
1000
- name: z.ZodOptional<z.ZodString>;
1001
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1002
- } & z.ZodObject<{
1003
- debug: z.ZodOptional<z.ZodObject<{
1004
- approxTokens: z.ZodOptional<z.ZodNumber>;
1005
- chars: z.ZodOptional<z.ZodNumber>;
1006
- }, z.core.$strip>>;
1007
- }, z.core.$strip>>;
1008
- nullable: () => z.ZodNullable<{
1009
- messageId: z.ZodUUID;
1010
- role: z.ZodEnum<{
1011
- system: "system";
1012
- developer: "developer";
1013
- user: "user";
1014
- assistant: "assistant";
1015
- tool: "tool";
1016
- }>;
1017
- kind: z.ZodEnum<{
1018
- input: "input";
1019
- output: "output";
1020
- tool_call: "tool_call";
1021
- tool_result: "tool_result";
1022
- observation: "observation";
1023
- internal_summary: "internal_summary";
1024
- thinking: "thinking";
1025
- }>;
1026
- content: z.ZodString;
1027
- contentTruncated: z.ZodBoolean;
1028
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1029
- turnIndex: z.ZodOptional<z.ZodNumber>;
1030
- name: z.ZodOptional<z.ZodString>;
1031
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1032
- } & z.ZodObject<{
1033
- debug: z.ZodOptional<z.ZodObject<{
1034
- approxTokens: z.ZodOptional<z.ZodNumber>;
1035
- chars: z.ZodOptional<z.ZodNumber>;
1036
- }, z.core.$strip>>;
1037
- }, z.core.$strip>>;
1038
- nullish: () => z.ZodOptional<z.ZodNullable<{
1039
- messageId: z.ZodUUID;
1040
- role: z.ZodEnum<{
1041
- system: "system";
1042
- developer: "developer";
1043
- user: "user";
1044
- assistant: "assistant";
1045
- tool: "tool";
1046
- }>;
1047
- kind: z.ZodEnum<{
1048
- input: "input";
1049
- output: "output";
1050
- tool_call: "tool_call";
1051
- tool_result: "tool_result";
1052
- observation: "observation";
1053
- internal_summary: "internal_summary";
1054
- thinking: "thinking";
1055
- }>;
1056
- content: z.ZodString;
1057
- contentTruncated: z.ZodBoolean;
1058
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1059
- turnIndex: z.ZodOptional<z.ZodNumber>;
1060
- name: z.ZodOptional<z.ZodString>;
1061
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1062
- } & z.ZodObject<{
1063
- debug: z.ZodOptional<z.ZodObject<{
1064
- approxTokens: z.ZodOptional<z.ZodNumber>;
1065
- chars: z.ZodOptional<z.ZodNumber>;
1066
- }, z.core.$strip>>;
1067
- }, z.core.$strip>>>;
1068
- default: {
1069
- (def: {
1070
- debug?: {
1071
- approxTokens?: number | undefined;
1072
- chars?: number | undefined;
1073
- } | undefined;
1074
- }): z.ZodDefault<{
1075
- messageId: z.ZodUUID;
1076
- role: z.ZodEnum<{
1077
- system: "system";
1078
- developer: "developer";
1079
- user: "user";
1080
- assistant: "assistant";
1081
- tool: "tool";
1082
- }>;
1083
- kind: z.ZodEnum<{
1084
- input: "input";
1085
- output: "output";
1086
- tool_call: "tool_call";
1087
- tool_result: "tool_result";
1088
- observation: "observation";
1089
- internal_summary: "internal_summary";
1090
- thinking: "thinking";
1091
- }>;
1092
- content: z.ZodString;
1093
- contentTruncated: z.ZodBoolean;
1094
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1095
- turnIndex: z.ZodOptional<z.ZodNumber>;
1096
- name: z.ZodOptional<z.ZodString>;
1097
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1098
- } & z.ZodObject<{
1099
- debug: z.ZodOptional<z.ZodObject<{
1100
- approxTokens: z.ZodOptional<z.ZodNumber>;
1101
- chars: z.ZodOptional<z.ZodNumber>;
1102
- }, z.core.$strip>>;
1103
- }, z.core.$strip>>;
1104
- (def: () => {
1105
- debug?: {
1106
- approxTokens?: number | undefined;
1107
- chars?: number | undefined;
1108
- } | undefined;
1109
- }): z.ZodDefault<{
1110
- messageId: z.ZodUUID;
1111
- role: z.ZodEnum<{
1112
- system: "system";
1113
- developer: "developer";
1114
- user: "user";
1115
- assistant: "assistant";
1116
- tool: "tool";
1117
- }>;
1118
- kind: z.ZodEnum<{
1119
- input: "input";
1120
- output: "output";
1121
- tool_call: "tool_call";
1122
- tool_result: "tool_result";
1123
- observation: "observation";
1124
- internal_summary: "internal_summary";
1125
- thinking: "thinking";
1126
- }>;
1127
- content: z.ZodString;
1128
- contentTruncated: z.ZodBoolean;
1129
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1130
- turnIndex: z.ZodOptional<z.ZodNumber>;
1131
- name: z.ZodOptional<z.ZodString>;
1132
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1133
- } & z.ZodObject<{
1134
- debug: z.ZodOptional<z.ZodObject<{
1135
- approxTokens: z.ZodOptional<z.ZodNumber>;
1136
- chars: z.ZodOptional<z.ZodNumber>;
1137
- }, z.core.$strip>>;
1138
- }, z.core.$strip>>;
1139
- };
1140
- prefault: {
1141
- (def: () => {
1142
- debug?: {
1143
- approxTokens?: number | undefined;
1144
- chars?: number | undefined;
1145
- } | undefined;
1146
- }): z.ZodPrefault<{
1147
- messageId: z.ZodUUID;
1148
- role: z.ZodEnum<{
1149
- system: "system";
1150
- developer: "developer";
1151
- user: "user";
1152
- assistant: "assistant";
1153
- tool: "tool";
1154
- }>;
1155
- kind: z.ZodEnum<{
1156
- input: "input";
1157
- output: "output";
1158
- tool_call: "tool_call";
1159
- tool_result: "tool_result";
1160
- observation: "observation";
1161
- internal_summary: "internal_summary";
1162
- thinking: "thinking";
1163
- }>;
1164
- content: z.ZodString;
1165
- contentTruncated: z.ZodBoolean;
1166
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1167
- turnIndex: z.ZodOptional<z.ZodNumber>;
1168
- name: z.ZodOptional<z.ZodString>;
1169
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1170
- } & z.ZodObject<{
1171
- debug: z.ZodOptional<z.ZodObject<{
1172
- approxTokens: z.ZodOptional<z.ZodNumber>;
1173
- chars: z.ZodOptional<z.ZodNumber>;
1174
- }, z.core.$strip>>;
1175
- }, z.core.$strip>>;
1176
- (def: {
1177
- debug?: {
1178
- approxTokens?: number | undefined;
1179
- chars?: number | undefined;
1180
- } | undefined;
1181
- }): z.ZodPrefault<{
1182
- messageId: z.ZodUUID;
1183
- role: z.ZodEnum<{
1184
- system: "system";
1185
- developer: "developer";
1186
- user: "user";
1187
- assistant: "assistant";
1188
- tool: "tool";
1189
- }>;
1190
- kind: z.ZodEnum<{
1191
- input: "input";
1192
- output: "output";
1193
- tool_call: "tool_call";
1194
- tool_result: "tool_result";
1195
- observation: "observation";
1196
- internal_summary: "internal_summary";
1197
- thinking: "thinking";
1198
- }>;
1199
- content: z.ZodString;
1200
- contentTruncated: z.ZodBoolean;
1201
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1202
- turnIndex: z.ZodOptional<z.ZodNumber>;
1203
- name: z.ZodOptional<z.ZodString>;
1204
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1205
- } & z.ZodObject<{
1206
- debug: z.ZodOptional<z.ZodObject<{
1207
- approxTokens: z.ZodOptional<z.ZodNumber>;
1208
- chars: z.ZodOptional<z.ZodNumber>;
1209
- }, z.core.$strip>>;
1210
- }, z.core.$strip>>;
1211
- };
1212
- array: () => z.ZodArray<{
1213
- messageId: z.ZodUUID;
1214
- role: z.ZodEnum<{
1215
- system: "system";
1216
- developer: "developer";
1217
- user: "user";
1218
- assistant: "assistant";
1219
- tool: "tool";
1220
- }>;
1221
- kind: z.ZodEnum<{
1222
- input: "input";
1223
- output: "output";
1224
- tool_call: "tool_call";
1225
- tool_result: "tool_result";
1226
- observation: "observation";
1227
- internal_summary: "internal_summary";
1228
- thinking: "thinking";
1229
- }>;
1230
- content: z.ZodString;
1231
- contentTruncated: z.ZodBoolean;
1232
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1233
- turnIndex: z.ZodOptional<z.ZodNumber>;
1234
- name: z.ZodOptional<z.ZodString>;
1235
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1236
- } & z.ZodObject<{
1237
- debug: z.ZodOptional<z.ZodObject<{
1238
- approxTokens: z.ZodOptional<z.ZodNumber>;
1239
- chars: z.ZodOptional<z.ZodNumber>;
1240
- }, z.core.$strip>>;
1241
- }, z.core.$strip>>;
1242
- or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[{
1243
- messageId: z.ZodUUID;
1244
- role: z.ZodEnum<{
1245
- system: "system";
1246
- developer: "developer";
1247
- user: "user";
1248
- assistant: "assistant";
1249
- tool: "tool";
1250
- }>;
1251
- kind: z.ZodEnum<{
1252
- input: "input";
1253
- output: "output";
1254
- tool_call: "tool_call";
1255
- tool_result: "tool_result";
1256
- observation: "observation";
1257
- internal_summary: "internal_summary";
1258
- thinking: "thinking";
1259
- }>;
1260
- content: z.ZodString;
1261
- contentTruncated: z.ZodBoolean;
1262
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1263
- turnIndex: z.ZodOptional<z.ZodNumber>;
1264
- name: z.ZodOptional<z.ZodString>;
1265
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1266
- } & z.ZodObject<{
1267
- debug: z.ZodOptional<z.ZodObject<{
1268
- approxTokens: z.ZodOptional<z.ZodNumber>;
1269
- chars: z.ZodOptional<z.ZodNumber>;
1270
- }, z.core.$strip>>;
1271
- }, z.core.$strip>, T]>;
1272
- and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<{
1273
- messageId: z.ZodUUID;
1274
- role: z.ZodEnum<{
1275
- system: "system";
1276
- developer: "developer";
1277
- user: "user";
1278
- assistant: "assistant";
1279
- tool: "tool";
1280
- }>;
1281
- kind: z.ZodEnum<{
1282
- input: "input";
1283
- output: "output";
1284
- tool_call: "tool_call";
1285
- tool_result: "tool_result";
1286
- observation: "observation";
1287
- internal_summary: "internal_summary";
1288
- thinking: "thinking";
1289
- }>;
1290
- content: z.ZodString;
1291
- contentTruncated: z.ZodBoolean;
1292
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1293
- turnIndex: z.ZodOptional<z.ZodNumber>;
1294
- name: z.ZodOptional<z.ZodString>;
1295
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1296
- } & z.ZodObject<{
1297
- debug: z.ZodOptional<z.ZodObject<{
1298
- approxTokens: z.ZodOptional<z.ZodNumber>;
1299
- chars: z.ZodOptional<z.ZodNumber>;
1300
- }, z.core.$strip>>;
1301
- }, z.core.$strip>, T>;
1302
- transform: <NewOut>(transform: (arg: {
1303
- debug?: {
1304
- approxTokens?: number | undefined;
1305
- chars?: number | undefined;
1306
- } | undefined;
1307
- }, ctx: z.core.$RefinementCtx<{
1308
- debug?: {
1309
- approxTokens?: number | undefined;
1310
- chars?: number | undefined;
1311
- } | undefined;
1312
- }>) => NewOut | Promise<NewOut>) => z.ZodPipe<{
1313
- messageId: z.ZodUUID;
1314
- role: z.ZodEnum<{
1315
- system: "system";
1316
- developer: "developer";
1317
- user: "user";
1318
- assistant: "assistant";
1319
- tool: "tool";
1320
- }>;
1321
- kind: z.ZodEnum<{
1322
- input: "input";
1323
- output: "output";
1324
- tool_call: "tool_call";
1325
- tool_result: "tool_result";
1326
- observation: "observation";
1327
- internal_summary: "internal_summary";
1328
- thinking: "thinking";
1329
- }>;
1330
- content: z.ZodString;
1331
- contentTruncated: z.ZodBoolean;
1332
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1333
- turnIndex: z.ZodOptional<z.ZodNumber>;
1334
- name: z.ZodOptional<z.ZodString>;
1335
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1336
- } & z.ZodObject<{
1337
- debug: z.ZodOptional<z.ZodObject<{
1338
- approxTokens: z.ZodOptional<z.ZodNumber>;
1339
- chars: z.ZodOptional<z.ZodNumber>;
1340
- }, z.core.$strip>>;
1341
- }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
1342
- debug?: {
1343
- approxTokens?: number | undefined;
1344
- chars?: number | undefined;
1345
- } | undefined;
1346
- }>>;
1347
- catch: {
1348
- (def: {
1349
- debug?: {
1350
- approxTokens?: number | undefined;
1351
- chars?: number | undefined;
1352
- } | undefined;
1353
- }): z.ZodCatch<{
1354
- messageId: z.ZodUUID;
1355
- role: z.ZodEnum<{
1356
- system: "system";
1357
- developer: "developer";
1358
- user: "user";
1359
- assistant: "assistant";
1360
- tool: "tool";
1361
- }>;
1362
- kind: z.ZodEnum<{
1363
- input: "input";
1364
- output: "output";
1365
- tool_call: "tool_call";
1366
- tool_result: "tool_result";
1367
- observation: "observation";
1368
- internal_summary: "internal_summary";
1369
- thinking: "thinking";
1370
- }>;
1371
- content: z.ZodString;
1372
- contentTruncated: z.ZodBoolean;
1373
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1374
- turnIndex: z.ZodOptional<z.ZodNumber>;
1375
- name: z.ZodOptional<z.ZodString>;
1376
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1377
- } & z.ZodObject<{
1378
- debug: z.ZodOptional<z.ZodObject<{
1379
- approxTokens: z.ZodOptional<z.ZodNumber>;
1380
- chars: z.ZodOptional<z.ZodNumber>;
1381
- }, z.core.$strip>>;
1382
- }, z.core.$strip>>;
1383
- (def: (ctx: z.core.$ZodCatchCtx) => {
1384
- debug?: {
1385
- approxTokens?: number | undefined;
1386
- chars?: number | undefined;
1387
- } | undefined;
1388
- }): z.ZodCatch<{
1389
- messageId: z.ZodUUID;
1390
- role: z.ZodEnum<{
1391
- system: "system";
1392
- developer: "developer";
1393
- user: "user";
1394
- assistant: "assistant";
1395
- tool: "tool";
1396
- }>;
1397
- kind: z.ZodEnum<{
1398
- input: "input";
1399
- output: "output";
1400
- tool_call: "tool_call";
1401
- tool_result: "tool_result";
1402
- observation: "observation";
1403
- internal_summary: "internal_summary";
1404
- thinking: "thinking";
1405
- }>;
1406
- content: z.ZodString;
1407
- contentTruncated: z.ZodBoolean;
1408
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1409
- turnIndex: z.ZodOptional<z.ZodNumber>;
1410
- name: z.ZodOptional<z.ZodString>;
1411
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1412
- } & z.ZodObject<{
1413
- debug: z.ZodOptional<z.ZodObject<{
1414
- approxTokens: z.ZodOptional<z.ZodNumber>;
1415
- chars: z.ZodOptional<z.ZodNumber>;
1416
- }, z.core.$strip>>;
1417
- }, z.core.$strip>>;
1418
- };
1419
- pipe: <T extends z.core.$ZodType<any, {
1420
- debug?: {
1421
- approxTokens?: number | undefined;
1422
- chars?: number | undefined;
1423
- } | undefined;
1424
- }, z.core.$ZodTypeInternals<any, {
1425
- debug?: {
1426
- approxTokens?: number | undefined;
1427
- chars?: number | undefined;
1428
- } | undefined;
1429
- }>>>(target: T | z.core.$ZodType<any, {
1430
- debug?: {
1431
- approxTokens?: number | undefined;
1432
- chars?: number | undefined;
1433
- } | undefined;
1434
- }, z.core.$ZodTypeInternals<any, {
1435
- debug?: {
1436
- approxTokens?: number | undefined;
1437
- chars?: number | undefined;
1438
- } | undefined;
1439
- }>>) => z.ZodPipe<{
1440
- messageId: z.ZodUUID;
1441
- role: z.ZodEnum<{
1442
- system: "system";
1443
- developer: "developer";
1444
- user: "user";
1445
- assistant: "assistant";
1446
- tool: "tool";
1447
- }>;
1448
- kind: z.ZodEnum<{
1449
- input: "input";
1450
- output: "output";
1451
- tool_call: "tool_call";
1452
- tool_result: "tool_result";
1453
- observation: "observation";
1454
- internal_summary: "internal_summary";
1455
- thinking: "thinking";
1456
- }>;
1457
- content: z.ZodString;
1458
- contentTruncated: z.ZodBoolean;
1459
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1460
- turnIndex: z.ZodOptional<z.ZodNumber>;
1461
- name: z.ZodOptional<z.ZodString>;
1462
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1463
- } & z.ZodObject<{
1464
- debug: z.ZodOptional<z.ZodObject<{
1465
- approxTokens: z.ZodOptional<z.ZodNumber>;
1466
- chars: z.ZodOptional<z.ZodNumber>;
1467
- }, z.core.$strip>>;
1468
- }, z.core.$strip>, T>;
1469
- readonly: () => z.ZodReadonly<{
1470
- messageId: z.ZodUUID;
1471
- role: z.ZodEnum<{
1472
- system: "system";
1473
- developer: "developer";
1474
- user: "user";
1475
- assistant: "assistant";
1476
- tool: "tool";
1477
- }>;
1478
- kind: z.ZodEnum<{
1479
- input: "input";
1480
- output: "output";
1481
- tool_call: "tool_call";
1482
- tool_result: "tool_result";
1483
- observation: "observation";
1484
- internal_summary: "internal_summary";
1485
- thinking: "thinking";
1486
- }>;
1487
- content: z.ZodString;
1488
- contentTruncated: z.ZodBoolean;
1489
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1490
- turnIndex: z.ZodOptional<z.ZodNumber>;
1491
- name: z.ZodOptional<z.ZodString>;
1492
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1493
- } & z.ZodObject<{
1494
- debug: z.ZodOptional<z.ZodObject<{
1495
- approxTokens: z.ZodOptional<z.ZodNumber>;
1496
- chars: z.ZodOptional<z.ZodNumber>;
1497
- }, z.core.$strip>>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ debug: z.ZodOptional<z.ZodObject<{
103
+ approxTokens: z.ZodOptional<z.ZodNumber>;
104
+ chars: z.ZodOptional<z.ZodNumber>;
1498
105
  }, z.core.$strip>>;
1499
- describe: (description: string) => {
1500
- messageId: z.ZodUUID;
1501
- role: z.ZodEnum<{
1502
- system: "system";
1503
- developer: "developer";
1504
- user: "user";
1505
- assistant: "assistant";
1506
- tool: "tool";
1507
- }>;
1508
- kind: z.ZodEnum<{
1509
- input: "input";
1510
- output: "output";
1511
- tool_call: "tool_call";
1512
- tool_result: "tool_result";
1513
- observation: "observation";
1514
- internal_summary: "internal_summary";
1515
- thinking: "thinking";
1516
- }>;
1517
- content: z.ZodString;
1518
- contentTruncated: z.ZodBoolean;
1519
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1520
- turnIndex: z.ZodOptional<z.ZodNumber>;
1521
- name: z.ZodOptional<z.ZodString>;
1522
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1523
- } & z.ZodObject<{
1524
- debug: z.ZodOptional<z.ZodObject<{
1525
- approxTokens: z.ZodOptional<z.ZodNumber>;
1526
- chars: z.ZodOptional<z.ZodNumber>;
1527
- }, z.core.$strip>>;
1528
- }, z.core.$strip>;
1529
- description?: string | undefined;
1530
- meta: {
1531
- (): {
1532
- [x: string]: unknown;
1533
- id?: string | undefined | undefined;
1534
- title?: string | undefined | undefined;
1535
- description?: string | undefined | undefined;
1536
- deprecated?: boolean | undefined | undefined;
1537
- } | undefined;
1538
- (data: {
1539
- [x: string]: unknown;
1540
- id?: string | undefined | undefined;
1541
- title?: string | undefined | undefined;
1542
- description?: string | undefined | undefined;
1543
- deprecated?: boolean | undefined | undefined;
1544
- }): {
1545
- messageId: z.ZodUUID;
1546
- role: z.ZodEnum<{
1547
- system: "system";
1548
- developer: "developer";
1549
- user: "user";
1550
- assistant: "assistant";
1551
- tool: "tool";
1552
- }>;
1553
- kind: z.ZodEnum<{
1554
- input: "input";
1555
- output: "output";
1556
- tool_call: "tool_call";
1557
- tool_result: "tool_result";
1558
- observation: "observation";
1559
- internal_summary: "internal_summary";
1560
- thinking: "thinking";
1561
- }>;
1562
- content: z.ZodString;
1563
- contentTruncated: z.ZodBoolean;
1564
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1565
- turnIndex: z.ZodOptional<z.ZodNumber>;
1566
- name: z.ZodOptional<z.ZodString>;
1567
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1568
- } & z.ZodObject<{
1569
- debug: z.ZodOptional<z.ZodObject<{
1570
- approxTokens: z.ZodOptional<z.ZodNumber>;
1571
- chars: z.ZodOptional<z.ZodNumber>;
1572
- }, z.core.$strip>>;
1573
- }, z.core.$strip>;
1574
- };
1575
- isOptional: () => boolean;
1576
- isNullable: () => boolean;
1577
- apply: <T>(fn: (schema: {
1578
- messageId: z.ZodUUID;
1579
- role: z.ZodEnum<{
1580
- system: "system";
1581
- developer: "developer";
1582
- user: "user";
1583
- assistant: "assistant";
1584
- tool: "tool";
1585
- }>;
1586
- kind: z.ZodEnum<{
1587
- input: "input";
1588
- output: "output";
1589
- tool_call: "tool_call";
1590
- tool_result: "tool_result";
1591
- observation: "observation";
1592
- internal_summary: "internal_summary";
1593
- thinking: "thinking";
1594
- }>;
1595
- content: z.ZodString;
1596
- contentTruncated: z.ZodBoolean;
1597
- parentMessageId: z.ZodOptional<z.ZodUUID>;
1598
- turnIndex: z.ZodOptional<z.ZodNumber>;
1599
- name: z.ZodOptional<z.ZodString>;
1600
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1601
- } & z.ZodObject<{
1602
- debug: z.ZodOptional<z.ZodObject<{
1603
- approxTokens: z.ZodOptional<z.ZodNumber>;
1604
- chars: z.ZodOptional<z.ZodNumber>;
1605
- }, z.core.$strip>>;
1606
- }, z.core.$strip>) => T) => T;
1607
- _zod: z.core.$ZodObjectInternals<{
1608
- debug: z.ZodOptional<z.ZodObject<{
1609
- approxTokens: z.ZodOptional<z.ZodNumber>;
1610
- chars: z.ZodOptional<z.ZodNumber>;
1611
- }, z.core.$strip>>;
1612
- }, z.core.$strip>;
1613
- }, z.core.$strip>;
106
+ }, z.core.$strip>>;
1614
107
  }, z.core.$strip>;
1615
108
  export declare const LLMResultEventSchema: z.ZodObject<{
1616
109
  schema: z.ZodLiteral<"handlebar.audit.v1">;
@@ -1637,7 +130,7 @@ export declare const LLMResultEventSchema: z.ZodObject<{
1637
130
  kind: z.ZodLiteral<"llm.result">;
1638
131
  data: z.ZodObject<{
1639
132
  model: z.ZodObject<{
1640
- model: z.ZodString;
133
+ name: z.ZodString;
1641
134
  provider: z.ZodOptional<z.ZodString>;
1642
135
  }, z.core.$strip>;
1643
136
  tokens: z.ZodObject<{
@@ -1645,13 +138,13 @@ export declare const LLMResultEventSchema: z.ZodObject<{
1645
138
  out: z.ZodNumber;
1646
139
  }, z.core.$strip>;
1647
140
  debug: z.ZodOptional<z.ZodObject<{
1648
- inTokenAttribution: z.ZodObject<{
1649
- system: z.ZodOptional<z.ZodNumber>;
1650
- user: z.ZodOptional<z.ZodNumber>;
1651
- assistant: z.ZodOptional<z.ZodNumber>;
1652
- tool: z.ZodOptional<z.ZodNumber>;
1653
- other: z.ZodOptional<z.ZodNumber>;
1654
- }, z.core.$strip>;
141
+ inTokenAttribution: z.ZodRecord<z.ZodEnum<{
142
+ system: "system";
143
+ developer: "developer";
144
+ user: "user";
145
+ assistant: "assistant";
146
+ tool: "tool";
147
+ }> & z.core.$partial, z.ZodNumber>;
1655
148
  }, z.core.$strip>>;
1656
149
  messageCount: z.ZodNumber;
1657
150
  durationMs: z.ZodOptional<z.ZodNumber>;