@peasant-labs/schema 0.1.0-rc6

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.
Files changed (37) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +56 -0
  3. package/dist/fixtures/quality.d.ts +81 -0
  4. package/dist/fixtures/quality.js +36 -0
  5. package/dist/fixtures/timeline.d.ts +22 -0
  6. package/dist/fixtures/timeline.js +2 -0
  7. package/dist/fixtures.d.ts +2 -0
  8. package/dist/fixtures.js +2 -0
  9. package/dist/index.d.ts +8 -0
  10. package/dist/index.js +36 -0
  11. package/dist/internal/generated/contract/zod.gen.d.ts +2740 -0
  12. package/dist/internal/generated/contract/zod.gen.js +1196 -0
  13. package/dist/internal/generated/enums.gen.d.ts +318 -0
  14. package/dist/internal/generated/enums.gen.js +348 -0
  15. package/dist/internal/generated/local-api.d.ts +946 -0
  16. package/dist/internal/generated/local-api.js +1 -0
  17. package/dist/internal/generated/public-contract.gen.d.ts +2 -0
  18. package/dist/internal/generated/public-contract.gen.js +2 -0
  19. package/dist/internal/generated/quality-fixtures.gen.d.ts +2 -0
  20. package/dist/internal/generated/quality-fixtures.gen.js +367 -0
  21. package/dist/internal/generated/testcase.gen.d.ts +17 -0
  22. package/dist/internal/generated/testcase.gen.js +20 -0
  23. package/dist/internal/generated/timeline-fixtures.gen.d.ts +2 -0
  24. package/dist/internal/generated/timeline-fixtures.gen.js +542 -0
  25. package/dist/internal/generated/versions.gen.d.ts +4 -0
  26. package/dist/internal/generated/versions.gen.js +5 -0
  27. package/dist/internal/generated/village-api.d.ts +585 -0
  28. package/dist/internal/generated/village-api.js +1 -0
  29. package/dist/local-api.d.ts +4 -0
  30. package/dist/local-api.js +1 -0
  31. package/dist/testcase.d.ts +32 -0
  32. package/dist/testcase.js +144 -0
  33. package/dist/types.d.ts +2 -0
  34. package/dist/types.js +2 -0
  35. package/dist/village-api.d.ts +4 -0
  36. package/dist/village-api.js +1 -0
  37. package/package.json +71 -0
@@ -0,0 +1,2740 @@
1
+ import * as z from 'zod';
2
+ export declare const zActivityEdge: z.ZodObject<{
3
+ from: z.ZodString;
4
+ taskCount: z.ZodInt;
5
+ to: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type ActivityEdge = z.infer<typeof zActivityEdge>;
8
+ /**
9
+ * Annotation Axis
10
+ *
11
+ * Subscription dimension for annotation channels
12
+ */
13
+ export declare const zAnnotationAxis: z.ZodEnum<{
14
+ type: "type";
15
+ session: "session";
16
+ project: "project";
17
+ }>;
18
+ export type AnnotationAxis = z.infer<typeof zAnnotationAxis>;
19
+ /**
20
+ * Annotation Datatype
21
+ *
22
+ * Storage type for annotation values (maps to SQLite STRICT column type)
23
+ */
24
+ export declare const zAnnotationDatatype: z.ZodEnum<{
25
+ boolean: "boolean";
26
+ real: "real";
27
+ text: "text";
28
+ integer: "integer";
29
+ }>;
30
+ export type AnnotationDatatype = z.infer<typeof zAnnotationDatatype>;
31
+ export declare const zAnnotationEntryTarget: z.ZodObject<{
32
+ endIndex: z.ZodInt;
33
+ entryIndex: z.ZodInt;
34
+ sessionId: z.ZodString;
35
+ }, z.core.$strip>;
36
+ export type AnnotationEntryTarget = z.infer<typeof zAnnotationEntryTarget>;
37
+ export declare const zAnnotationManifestResponse: z.ZodObject<{
38
+ digest: z.ZodString;
39
+ hashes: z.ZodArray<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ export type AnnotationManifestResponse = z.infer<typeof zAnnotationManifestResponse>;
42
+ /**
43
+ * Annotation Push Status
44
+ *
45
+ * Per-item annotation push outcome
46
+ */
47
+ export declare const zAnnotationPushStatus: z.ZodEnum<{
48
+ skipped: "skipped";
49
+ error: "error";
50
+ created: "created";
51
+ updated: "updated";
52
+ }>;
53
+ export type AnnotationPushStatus = z.infer<typeof zAnnotationPushStatus>;
54
+ export declare const zAnnotationPushResult: z.ZodObject<{
55
+ contentHash: z.ZodOptional<z.ZodString>;
56
+ error: z.ZodOptional<z.ZodString>;
57
+ status: z.ZodEnum<{
58
+ skipped: "skipped";
59
+ error: "error";
60
+ created: "created";
61
+ updated: "updated";
62
+ }>;
63
+ }, z.core.$strip>;
64
+ export type AnnotationPushResult = z.infer<typeof zAnnotationPushResult>;
65
+ export declare const zAnnotationPushResponse: z.ZodObject<{
66
+ created: z.ZodInt;
67
+ errors: z.ZodInt;
68
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ contentHash: z.ZodOptional<z.ZodString>;
70
+ error: z.ZodOptional<z.ZodString>;
71
+ status: z.ZodEnum<{
72
+ skipped: "skipped";
73
+ error: "error";
74
+ created: "created";
75
+ updated: "updated";
76
+ }>;
77
+ }, z.core.$strip>>>;
78
+ skipped: z.ZodInt;
79
+ updated: z.ZodInt;
80
+ }, z.core.$strip>;
81
+ export type AnnotationPushResponse = z.infer<typeof zAnnotationPushResponse>;
82
+ /**
83
+ * Annotation Status
84
+ *
85
+ * ISO 11179 lifecycle state of an annotation type
86
+ */
87
+ export declare const zAnnotationStatus: z.ZodEnum<{
88
+ active: "active";
89
+ deprecated: "deprecated";
90
+ proposed: "proposed";
91
+ retired: "retired";
92
+ }>;
93
+ export type AnnotationStatus = z.infer<typeof zAnnotationStatus>;
94
+ /**
95
+ * Annotator Kind
96
+ *
97
+ * Type of entity that produced an annotation: human, agent (AI model), or rule (automated classifier)
98
+ */
99
+ export declare const zAnnotatorKind: z.ZodEnum<{
100
+ human: "human";
101
+ agent: "agent";
102
+ rule: "rule";
103
+ }>;
104
+ export type AnnotatorKind = z.infer<typeof zAnnotatorKind>;
105
+ export declare const zAnnotatorSummary: z.ZodObject<{
106
+ description: z.ZodOptional<z.ZodString>;
107
+ displayName: z.ZodString;
108
+ id: z.ZodString;
109
+ kind: z.ZodEnum<{
110
+ human: "human";
111
+ agent: "agent";
112
+ rule: "rule";
113
+ }>;
114
+ modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ name: z.ZodString;
116
+ providerKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ status: z.ZodString;
118
+ }, z.core.$strip>;
119
+ export type AnnotatorSummary = z.infer<typeof zAnnotatorSummary>;
120
+ export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
121
+ error: z.ZodString;
122
+ failingIndex: z.ZodInt;
123
+ }, z.core.$strip>;
124
+ export type BatchCreateAnnotationsErrorResponse = z.infer<typeof zBatchCreateAnnotationsErrorResponse>;
125
+ export declare const zBatchCreateAnnotationsResponse: z.ZodObject<{
126
+ ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
127
+ }, z.core.$strip>;
128
+ export type BatchCreateAnnotationsResponse = z.infer<typeof zBatchCreateAnnotationsResponse>;
129
+ /**
130
+ * Built-in Command
131
+ *
132
+ * Claude Code built-in slash command name without the leading slash
133
+ */
134
+ export declare const zBuiltinCommand: z.ZodEnum<{
135
+ new: "new";
136
+ clear: "clear";
137
+ resume: "resume";
138
+ exit: "exit";
139
+ compact: "compact";
140
+ config: "config";
141
+ model: "model";
142
+ usage: "usage";
143
+ cost: "cost";
144
+ context: "context";
145
+ plugin: "plugin";
146
+ permissions: "permissions";
147
+ login: "login";
148
+ plan: "plan";
149
+ fast: "fast";
150
+ voice: "voice";
151
+ todos: "todos";
152
+ "reload-plugins": "reload-plugins";
153
+ sandbox: "sandbox";
154
+ statusline: "statusline";
155
+ upgrade: "upgrade";
156
+ "extra-usage": "extra-usage";
157
+ "rate-limit-options": "rate-limit-options";
158
+ "privacy-settings": "privacy-settings";
159
+ help: "help";
160
+ commands: "commands";
161
+ }>;
162
+ export type BuiltinCommand = z.infer<typeof zBuiltinCommand>;
163
+ export declare const zCLILoginQuery: z.ZodObject<{
164
+ port: z.ZodInt;
165
+ state: z.ZodString;
166
+ }, z.core.$strip>;
167
+ export type CLILoginQuery = z.infer<typeof zCLILoginQuery>;
168
+ /**
169
+ * Change Binding
170
+ *
171
+ * Strength of the evidence connecting a recorded session to a code change
172
+ */
173
+ export declare const zChangeBinding: z.ZodEnum<{
174
+ candidate: "candidate";
175
+ bound: "bound";
176
+ }>;
177
+ export type ChangeBinding = z.infer<typeof zChangeBinding>;
178
+ export declare const zChangeSummary: z.ZodObject<{
179
+ aheadCount: z.ZodInt;
180
+ baseHash: z.ZodOptional<z.ZodString>;
181
+ behindCount: z.ZodInt;
182
+ branch: z.ZodString;
183
+ filesChanged: z.ZodInt;
184
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
185
+ mergeCommitHash: z.ZodOptional<z.ZodString>;
186
+ merged: z.ZodBoolean;
187
+ mergedAtMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
188
+ newEdges: z.ZodInt;
189
+ removedEdges: z.ZodInt;
190
+ reverted: z.ZodOptional<z.ZodBoolean>;
191
+ sessionCount: z.ZodInt;
192
+ taskCount: z.ZodInt;
193
+ tipCommitMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
194
+ violations: z.ZodInt;
195
+ }, z.core.$strip>;
196
+ export type ChangeSummary = z.infer<typeof zChangeSummary>;
197
+ /**
198
+ * Channel Topic
199
+ *
200
+ * Subscribable WebSocket data stream
201
+ */
202
+ export declare const zChannelTopic: z.ZodEnum<{
203
+ quality: "quality";
204
+ dashboard: "dashboard";
205
+ sessions: "sessions";
206
+ session_detail: "session_detail";
207
+ trends: "trends";
208
+ annotations: "annotations";
209
+ project_familiarity: "project_familiarity";
210
+ }>;
211
+ export type ChannelTopic = z.infer<typeof zChannelTopic>;
212
+ export declare const zChannelSubscription: z.ZodObject<{
213
+ axis: z.ZodOptional<z.ZodEnum<{
214
+ type: "type";
215
+ session: "session";
216
+ project: "project";
217
+ }>>;
218
+ id: z.ZodOptional<z.ZodString>;
219
+ topic: z.ZodEnum<{
220
+ quality: "quality";
221
+ dashboard: "dashboard";
222
+ sessions: "sessions";
223
+ session_detail: "session_detail";
224
+ trends: "trends";
225
+ annotations: "annotations";
226
+ project_familiarity: "project_familiarity";
227
+ }>;
228
+ }, z.core.$strip>;
229
+ export type ChannelSubscription = z.infer<typeof zChannelSubscription>;
230
+ export declare const zChildSessionRef: z.ZodObject<{
231
+ id: z.ZodString;
232
+ project: z.ZodOptional<z.ZodString>;
233
+ startTime: z.ZodISODateTime;
234
+ }, z.core.$strip>;
235
+ export type ChildSessionRef = z.infer<typeof zChildSessionRef>;
236
+ export declare const zCommitInfo: z.ZodObject<{
237
+ authorEmail: z.ZodString;
238
+ authorName: z.ZodString;
239
+ authorTime: z.ZodCoercedBigInt<unknown>;
240
+ commitTime: z.ZodCoercedBigInt<unknown>;
241
+ hash: z.ZodString;
242
+ message: z.ZodString;
243
+ }, z.core.$strip>;
244
+ export type CommitInfo = z.infer<typeof zCommitInfo>;
245
+ /**
246
+ * Content Kind
247
+ *
248
+ * Payload kind carried by a transcript content envelope
249
+ */
250
+ export declare const zContentKind: z.ZodEnum<{
251
+ session_detail: "session_detail";
252
+ }>;
253
+ export type ContentKind = z.infer<typeof zContentKind>;
254
+ export declare const zContractVersion: z.ZodNullable<z.ZodString>;
255
+ export type ContractVersion = z.infer<typeof zContractVersion>;
256
+ export declare const zCreateAnnotationRequest: z.ZodObject<{
257
+ annotatorName: z.ZodOptional<z.ZodString>;
258
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
+ isPrimary: z.ZodBoolean;
260
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ sessionId: z.ZodString;
262
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
264
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
265
+ typeId: z.ZodString;
266
+ value: z.ZodString;
267
+ }, z.core.$strip>;
268
+ export type CreateAnnotationRequest = z.infer<typeof zCreateAnnotationRequest>;
269
+ export declare const zBatchCreateAnnotationsRequest: z.ZodObject<{
270
+ annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
271
+ annotatorName: z.ZodOptional<z.ZodString>;
272
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
273
+ isPrimary: z.ZodBoolean;
274
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ sessionId: z.ZodString;
276
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
278
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
279
+ typeId: z.ZodString;
280
+ value: z.ZodString;
281
+ }, z.core.$strip>>>;
282
+ }, z.core.$strip>;
283
+ export type BatchCreateAnnotationsRequest = z.infer<typeof zBatchCreateAnnotationsRequest>;
284
+ export declare const zCreateAnnotationResponse: z.ZodObject<{
285
+ id: z.ZodString;
286
+ }, z.core.$strip>;
287
+ export type CreateAnnotationResponse = z.infer<typeof zCreateAnnotationResponse>;
288
+ export declare const zDashboardPayload: z.ZodObject<{
289
+ acceptanceRate: z.ZodNumber;
290
+ avgDurationMins: z.ZodNumber;
291
+ avgTurnsPerSession: z.ZodNumber;
292
+ harnessBreakdown: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodInt>>;
293
+ totalSessions: z.ZodInt;
294
+ totalTokens: z.ZodInt;
295
+ }, z.core.$strip>;
296
+ export type DashboardPayload = z.infer<typeof zDashboardPayload>;
297
+ export declare const zDayStats: z.ZodObject<{
298
+ date: z.ZodString;
299
+ sessions: z.ZodInt;
300
+ tokens: z.ZodInt;
301
+ }, z.core.$strip>;
302
+ export type DayStats = z.infer<typeof zDayStats>;
303
+ /**
304
+ * Decay Level
305
+ *
306
+ * Recency band for project file familiarity
307
+ */
308
+ export declare const zDecayLevel: z.ZodEnum<{
309
+ fresh: "fresh";
310
+ fading: "fading";
311
+ stale: "stale";
312
+ unexplored: "unexplored";
313
+ }>;
314
+ export type DecayLevel = z.infer<typeof zDecayLevel>;
315
+ export declare const zDiagnosticEntry: z.ZodObject<{
316
+ errorType: z.ZodString;
317
+ location: z.ZodString;
318
+ message: z.ZodString;
319
+ remediation: z.ZodString;
320
+ }, z.core.$strip>;
321
+ export type DiagnosticEntry = z.infer<typeof zDiagnosticEntry>;
322
+ export declare const zDiagnosticsInfo: z.ZodObject<{
323
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
324
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
325
+ errorType: z.ZodString;
326
+ location: z.ZodString;
327
+ message: z.ZodString;
328
+ remediation: z.ZodString;
329
+ }, z.core.$strip>>>;
330
+ }, z.core.$strip>;
331
+ export type DiagnosticsInfo = z.infer<typeof zDiagnosticsInfo>;
332
+ /**
333
+ * Diff Line Kind
334
+ *
335
+ * Unified-diff line kind: context, addition, or deletion
336
+ */
337
+ export declare const zDiffLineKind: z.ZodEnum<{
338
+ add: "add";
339
+ del: "del";
340
+ context: "context";
341
+ }>;
342
+ export type DiffLineKind = z.infer<typeof zDiffLineKind>;
343
+ export declare const zDiffLine: z.ZodObject<{
344
+ kind: z.ZodEnum<{
345
+ add: "add";
346
+ del: "del";
347
+ context: "context";
348
+ }>;
349
+ text: z.ZodString;
350
+ }, z.core.$strip>;
351
+ export type DiffLine = z.infer<typeof zDiffLine>;
352
+ export declare const zDiffHunk: z.ZodObject<{
353
+ header: z.ZodOptional<z.ZodString>;
354
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
355
+ kind: z.ZodEnum<{
356
+ add: "add";
357
+ del: "del";
358
+ context: "context";
359
+ }>;
360
+ text: z.ZodString;
361
+ }, z.core.$strip>>>;
362
+ newLines: z.ZodInt;
363
+ newStart: z.ZodInt;
364
+ oldLines: z.ZodInt;
365
+ oldStart: z.ZodInt;
366
+ sessionId: z.ZodOptional<z.ZodString>;
367
+ sessionTitle: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strip>;
369
+ export type DiffHunk = z.infer<typeof zDiffHunk>;
370
+ /**
371
+ * Edge Violation Kind
372
+ *
373
+ * Structural violation detected on a map edge
374
+ */
375
+ export declare const zEdgeViolationKind: z.ZodEnum<{
376
+ cycle: "cycle";
377
+ wrong_way: "wrong_way";
378
+ }>;
379
+ export type EdgeViolationKind = z.infer<typeof zEdgeViolationKind>;
380
+ export declare const zEdgeViolation: z.ZodObject<{
381
+ from: z.ZodString;
382
+ kind: z.ZodEnum<{
383
+ cycle: "cycle";
384
+ wrong_way: "wrong_way";
385
+ }>;
386
+ to: z.ZodString;
387
+ }, z.core.$strip>;
388
+ export type EdgeViolation = z.infer<typeof zEdgeViolation>;
389
+ /**
390
+ * Entry Type
391
+ *
392
+ * Classification of a single entry within an agent session transcript
393
+ */
394
+ export declare const zEntryType: z.ZodEnum<{
395
+ error: "error";
396
+ text: "text";
397
+ tool_use: "tool_use";
398
+ tool_result: "tool_result";
399
+ thinking: "thinking";
400
+ system: "system";
401
+ result: "result";
402
+ }>;
403
+ export type EntryType = z.infer<typeof zEntryType>;
404
+ export declare const zExchangeCodeRequest: z.ZodObject<{
405
+ code: z.ZodString;
406
+ state: z.ZodString;
407
+ }, z.core.$strip>;
408
+ export type ExchangeCodeRequest = z.infer<typeof zExchangeCodeRequest>;
409
+ export declare const zExchangeCodeResponse: z.ZodObject<{
410
+ api_key: z.ZodString;
411
+ key_id: z.ZodString;
412
+ user_id: z.ZodString;
413
+ username: z.ZodString;
414
+ }, z.core.$strip>;
415
+ export type ExchangeCodeResponse = z.infer<typeof zExchangeCodeResponse>;
416
+ /**
417
+ * File Change Status
418
+ *
419
+ * Git file delta status: modified, added, deleted, or renamed
420
+ */
421
+ export declare const zFileChangeStatus: z.ZodEnum<{
422
+ M: "M";
423
+ A: "A";
424
+ D: "D";
425
+ R: "R";
426
+ }>;
427
+ export type FileChangeStatus = z.infer<typeof zFileChangeStatus>;
428
+ export declare const zChangeDiffPayload: z.ZodObject<{
429
+ binary: z.ZodBoolean;
430
+ branch: z.ZodString;
431
+ file: z.ZodString;
432
+ hunks: z.ZodNullable<z.ZodArray<z.ZodObject<{
433
+ header: z.ZodOptional<z.ZodString>;
434
+ lines: z.ZodNullable<z.ZodArray<z.ZodObject<{
435
+ kind: z.ZodEnum<{
436
+ add: "add";
437
+ del: "del";
438
+ context: "context";
439
+ }>;
440
+ text: z.ZodString;
441
+ }, z.core.$strip>>>;
442
+ newLines: z.ZodInt;
443
+ newStart: z.ZodInt;
444
+ oldLines: z.ZodInt;
445
+ oldStart: z.ZodInt;
446
+ sessionId: z.ZodOptional<z.ZodString>;
447
+ sessionTitle: z.ZodOptional<z.ZodString>;
448
+ }, z.core.$strip>>>;
449
+ oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ status: z.ZodEnum<{
451
+ M: "M";
452
+ A: "A";
453
+ D: "D";
454
+ R: "R";
455
+ }>;
456
+ truncated: z.ZodBoolean;
457
+ }, z.core.$strip>;
458
+ export type ChangeDiffPayload = z.infer<typeof zChangeDiffPayload>;
459
+ export declare const zFileChange: z.ZodObject<{
460
+ linesAdded: z.ZodInt;
461
+ linesRemoved: z.ZodInt;
462
+ oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ path: z.ZodString;
464
+ status: z.ZodEnum<{
465
+ M: "M";
466
+ A: "A";
467
+ D: "D";
468
+ R: "R";
469
+ }>;
470
+ }, z.core.$strip>;
471
+ export type FileChange = z.infer<typeof zFileChange>;
472
+ export declare const zFileFamiliarity: z.ZodObject<{
473
+ daysSince: z.ZodNullable<z.ZodInt>;
474
+ decayLevel: z.ZodEnum<{
475
+ fresh: "fresh";
476
+ fading: "fading";
477
+ stale: "stale";
478
+ unexplored: "unexplored";
479
+ }>;
480
+ depth: z.ZodInt;
481
+ humanTurns: z.ZodInt;
482
+ isSourceFile: z.ZodBoolean;
483
+ lastEngagedAt: z.ZodNullable<z.ZodString>;
484
+ path: z.ZodString;
485
+ sessionCount: z.ZodInt;
486
+ totalTurns: z.ZodInt;
487
+ }, z.core.$strip>;
488
+ export type FileFamiliarity = z.infer<typeof zFileFamiliarity>;
489
+ export declare const zFrictionCluster: z.ZodObject<{
490
+ count: z.ZodInt;
491
+ file: z.ZodString;
492
+ kind: z.ZodString;
493
+ label: z.ZodString;
494
+ sessions: z.ZodInt;
495
+ }, z.core.$strip>;
496
+ export type FrictionCluster = z.infer<typeof zFrictionCluster>;
497
+ export declare const zGitContext: z.ZodObject<{
498
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
500
+ authorEmail: z.ZodString;
501
+ authorName: z.ZodString;
502
+ authorTime: z.ZodCoercedBigInt<unknown>;
503
+ commitTime: z.ZodCoercedBigInt<unknown>;
504
+ hash: z.ZodString;
505
+ message: z.ZodString;
506
+ }, z.core.$strip>>>;
507
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ }, z.core.$strip>;
511
+ export type GitContext = z.infer<typeof zGitContext>;
512
+ /**
513
+ * Harness
514
+ *
515
+ * AI coding tool or development environment
516
+ */
517
+ export declare const zHarness: z.ZodEnum<{
518
+ cursor: "cursor";
519
+ "claude-code": "claude-code";
520
+ "gemini-cli": "gemini-cli";
521
+ codex: "codex";
522
+ opencode: "opencode";
523
+ antigravity: "antigravity";
524
+ }>;
525
+ export type Harness = z.infer<typeof zHarness>;
526
+ export declare const zHealthResponse: z.ZodObject<{
527
+ status: z.ZodString;
528
+ }, z.core.$strip>;
529
+ export type HealthResponse = z.infer<typeof zHealthResponse>;
530
+ /**
531
+ * Host Slug
532
+ *
533
+ * Sanitized, filesystem-safe identifier derived from git remote; contains only [a-zA-Z0-9._<>-]
534
+ */
535
+ export declare const zHostSlug: z.ZodString;
536
+ export type HostSlug = z.infer<typeof zHostSlug>;
537
+ /**
538
+ * Interaction Type
539
+ *
540
+ * How deeply a session engaged with a project file
541
+ */
542
+ export declare const zInteractionType: z.ZodEnum<{
543
+ mentioned: "mentioned";
544
+ read: "read";
545
+ discussed: "discussed";
546
+ questioned: "questioned";
547
+ }>;
548
+ export type InteractionType = z.infer<typeof zInteractionType>;
549
+ /**
550
+ * License
551
+ *
552
+ * Content license for a published transcript
553
+ */
554
+ export declare const zLicense: z.ZodEnum<{
555
+ "CC0-1.0": "CC0-1.0";
556
+ "CC-BY-4.0": "CC-BY-4.0";
557
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
558
+ }>;
559
+ export type License = z.infer<typeof zLicense>;
560
+ export declare const zMapEdge: z.ZodObject<{
561
+ count: z.ZodInt;
562
+ from: z.ZodString;
563
+ to: z.ZodString;
564
+ }, z.core.$strip>;
565
+ export type MapEdge = z.infer<typeof zMapEdge>;
566
+ /**
567
+ * Map Node Kind
568
+ *
569
+ * Path-derived map node classification
570
+ */
571
+ export declare const zMapNodeKind: z.ZodEnum<{
572
+ file: "file";
573
+ module: "module";
574
+ package: "package";
575
+ }>;
576
+ export type MapNodeKind = z.infer<typeof zMapNodeKind>;
577
+ export declare const zMapNode: z.ZodObject<{
578
+ effortDensity: z.ZodNumber;
579
+ fileCount: z.ZodInt;
580
+ id: z.ZodString;
581
+ kind: z.ZodEnum<{
582
+ file: "file";
583
+ module: "module";
584
+ package: "package";
585
+ }>;
586
+ language: z.ZodOptional<z.ZodString>;
587
+ layer: z.ZodInt;
588
+ loc: z.ZodInt;
589
+ name: z.ZodString;
590
+ order: z.ZodInt;
591
+ parent: z.ZodOptional<z.ZodString>;
592
+ recordedFiles: z.ZodInt;
593
+ totalFiles: z.ZodInt;
594
+ touchCount: z.ZodInt;
595
+ }, z.core.$strip>;
596
+ export type MapNode = z.infer<typeof zMapNode>;
597
+ export declare const zMapSlice: z.ZodObject<{
598
+ activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
599
+ from: z.ZodString;
600
+ taskCount: z.ZodInt;
601
+ to: z.ZodString;
602
+ }, z.core.$strip>>>;
603
+ nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
604
+ effortDensity: z.ZodNumber;
605
+ fileCount: z.ZodInt;
606
+ id: z.ZodString;
607
+ kind: z.ZodEnum<{
608
+ file: "file";
609
+ module: "module";
610
+ package: "package";
611
+ }>;
612
+ language: z.ZodOptional<z.ZodString>;
613
+ layer: z.ZodInt;
614
+ loc: z.ZodInt;
615
+ name: z.ZodString;
616
+ order: z.ZodInt;
617
+ parent: z.ZodOptional<z.ZodString>;
618
+ recordedFiles: z.ZodInt;
619
+ totalFiles: z.ZodInt;
620
+ touchCount: z.ZodInt;
621
+ }, z.core.$strip>>>;
622
+ structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
623
+ count: z.ZodInt;
624
+ from: z.ZodString;
625
+ to: z.ZodString;
626
+ }, z.core.$strip>>>;
627
+ }, z.core.$strip>;
628
+ export type MapSlice = z.infer<typeof zMapSlice>;
629
+ /**
630
+ * Message Type
631
+ *
632
+ * WebSocket message discriminator
633
+ */
634
+ export declare const zMessageType: z.ZodEnum<{
635
+ error: "error";
636
+ connected: "connected";
637
+ quality: "quality";
638
+ dashboard: "dashboard";
639
+ sessions: "sessions";
640
+ session_detail: "session_detail";
641
+ trends: "trends";
642
+ annotations: "annotations";
643
+ project_familiarity: "project_familiarity";
644
+ subscribe: "subscribe";
645
+ unsubscribe: "unsubscribe";
646
+ }>;
647
+ export type MessageType = z.infer<typeof zMessageType>;
648
+ export declare const zClientMessage: z.ZodObject<{
649
+ channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
650
+ axis: z.ZodOptional<z.ZodEnum<{
651
+ type: "type";
652
+ session: "session";
653
+ project: "project";
654
+ }>>;
655
+ id: z.ZodOptional<z.ZodString>;
656
+ topic: z.ZodEnum<{
657
+ quality: "quality";
658
+ dashboard: "dashboard";
659
+ sessions: "sessions";
660
+ session_detail: "session_detail";
661
+ trends: "trends";
662
+ annotations: "annotations";
663
+ project_familiarity: "project_familiarity";
664
+ }>;
665
+ }, z.core.$strip>>>;
666
+ type: z.ZodEnum<{
667
+ error: "error";
668
+ connected: "connected";
669
+ quality: "quality";
670
+ dashboard: "dashboard";
671
+ sessions: "sessions";
672
+ session_detail: "session_detail";
673
+ trends: "trends";
674
+ annotations: "annotations";
675
+ project_familiarity: "project_familiarity";
676
+ subscribe: "subscribe";
677
+ unsubscribe: "unsubscribe";
678
+ }>;
679
+ }, z.core.$strip>;
680
+ export type ClientMessage = z.infer<typeof zClientMessage>;
681
+ export declare const zMockConfigResponse: z.ZodObject<{
682
+ api: z.ZodOptional<z.ZodArray<z.ZodString>>;
683
+ enabled: z.ZodBoolean;
684
+ tui: z.ZodOptional<z.ZodArray<z.ZodString>>;
685
+ web: z.ZodOptional<z.ZodArray<z.ZodString>>;
686
+ }, z.core.$strip>;
687
+ export type MockConfigResponse = z.infer<typeof zMockConfigResponse>;
688
+ /**
689
+ * Model ID
690
+ *
691
+ * Model identifier (e.g. 'claude-opus-4-6', 'gemini-2.0-flash')
692
+ */
693
+ export declare const zModelID: z.ZodString;
694
+ export type ModelID = z.infer<typeof zModelID>;
695
+ export declare const zModelInfo: z.ZodObject<{
696
+ harness: z.ZodEnum<{
697
+ cursor: "cursor";
698
+ "claude-code": "claude-code";
699
+ "gemini-cli": "gemini-cli";
700
+ codex: "codex";
701
+ opencode: "opencode";
702
+ antigravity: "antigravity";
703
+ }>;
704
+ hostSlug: z.ZodOptional<z.ZodString>;
705
+ model: z.ZodString;
706
+ version: z.ZodOptional<z.ZodString>;
707
+ }, z.core.$strip>;
708
+ export type ModelInfo = z.infer<typeof zModelInfo>;
709
+ /**
710
+ * Project Hash
711
+ *
712
+ * SHA-256 hex digest of the project's origin URL or local path
713
+ */
714
+ export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
715
+ export type ProjectHash = z.infer<typeof zProjectHash>;
716
+ export declare const zMapGraphPayload: z.ZodObject<{
717
+ activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
718
+ from: z.ZodString;
719
+ taskCount: z.ZodInt;
720
+ to: z.ZodString;
721
+ }, z.core.$strip>>>;
722
+ atCommit: z.ZodOptional<z.ZodString>;
723
+ generatedAtMs: z.ZodCoercedBigInt<unknown>;
724
+ nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
725
+ effortDensity: z.ZodNumber;
726
+ fileCount: z.ZodInt;
727
+ id: z.ZodString;
728
+ kind: z.ZodEnum<{
729
+ file: "file";
730
+ module: "module";
731
+ package: "package";
732
+ }>;
733
+ language: z.ZodOptional<z.ZodString>;
734
+ layer: z.ZodInt;
735
+ loc: z.ZodInt;
736
+ name: z.ZodString;
737
+ order: z.ZodInt;
738
+ parent: z.ZodOptional<z.ZodString>;
739
+ recordedFiles: z.ZodInt;
740
+ totalFiles: z.ZodInt;
741
+ touchCount: z.ZodInt;
742
+ }, z.core.$strip>>>;
743
+ parsedLanguages: z.ZodNullable<z.ZodArray<z.ZodString>>;
744
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
745
+ repoFound: z.ZodBoolean;
746
+ repoPath: z.ZodOptional<z.ZodString>;
747
+ structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
748
+ count: z.ZodInt;
749
+ from: z.ZodString;
750
+ to: z.ZodString;
751
+ }, z.core.$strip>>>;
752
+ violations: z.ZodNullable<z.ZodArray<z.ZodObject<{
753
+ from: z.ZodString;
754
+ kind: z.ZodEnum<{
755
+ cycle: "cycle";
756
+ wrong_way: "wrong_way";
757
+ }>;
758
+ to: z.ZodString;
759
+ }, z.core.$strip>>>;
760
+ }, z.core.$strip>;
761
+ export type MapGraphPayload = z.infer<typeof zMapGraphPayload>;
762
+ export declare const zProjectContext: z.ZodObject<{
763
+ filePath: z.ZodOptional<z.ZodString>;
764
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
765
+ name: z.ZodString;
766
+ }, z.core.$strip>;
767
+ export type ProjectContext = z.infer<typeof zProjectContext>;
768
+ export declare const zProjectResolutionPayload: z.ZodObject<{
769
+ project: z.ZodString;
770
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
771
+ }, z.core.$strip>;
772
+ export type ProjectResolutionPayload = z.infer<typeof zProjectResolutionPayload>;
773
+ export declare const zProjectSummary: z.ZodObject<{
774
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
775
+ openChanges: z.ZodInt;
776
+ project: z.ZodString;
777
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
778
+ recordedFiles: z.ZodInt;
779
+ sessions: z.ZodInt;
780
+ totalFiles: z.ZodInt;
781
+ }, z.core.$strip>;
782
+ export type ProjectSummary = z.infer<typeof zProjectSummary>;
783
+ export declare const zProjectSummariesPayload: z.ZodObject<{
784
+ projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
785
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
786
+ openChanges: z.ZodInt;
787
+ project: z.ZodString;
788
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
789
+ recordedFiles: z.ZodInt;
790
+ sessions: z.ZodInt;
791
+ totalFiles: z.ZodInt;
792
+ }, z.core.$strip>>>;
793
+ }, z.core.$strip>;
794
+ export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
795
+ export declare const zProvenance: z.ZodObject<{
796
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
797
+ function: z.ZodOptional<z.ZodString>;
798
+ method: z.ZodString;
799
+ version: z.ZodOptional<z.ZodString>;
800
+ }, z.core.$strip>;
801
+ export type Provenance = z.infer<typeof zProvenance>;
802
+ export declare const zPublishResponse: z.ZodObject<{
803
+ blobKey: z.ZodString;
804
+ blobSizeBytes: z.ZodCoercedBigInt<unknown>;
805
+ created: z.ZodBoolean;
806
+ publishedAt: z.ZodCoercedBigInt<unknown>;
807
+ transcriptId: z.ZodString;
808
+ updatedAt: z.ZodCoercedBigInt<unknown>;
809
+ }, z.core.$strip>;
810
+ export type PublishResponse = z.infer<typeof zPublishResponse>;
811
+ export declare const zRedactionInfo: z.ZodObject<{
812
+ applied: z.ZodBoolean;
813
+ content_hash_at_redact: z.ZodOptional<z.ZodString>;
814
+ level: z.ZodOptional<z.ZodString>;
815
+ redacted_at_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
816
+ rule_set_version: z.ZodOptional<z.ZodString>;
817
+ }, z.core.$strip>;
818
+ export type RedactionInfo = z.infer<typeof zRedactionInfo>;
819
+ export declare const zReviewSuggestion: z.ZodObject<{
820
+ daysSince: z.ZodInt;
821
+ lastEngaged: z.ZodString;
822
+ path: z.ZodString;
823
+ suggestedPrompt: z.ZodString;
824
+ }, z.core.$strip>;
825
+ export type ReviewSuggestion = z.infer<typeof zReviewSuggestion>;
826
+ /**
827
+ * Role
828
+ *
829
+ * Sender role of a message turn
830
+ */
831
+ export declare const zRole: z.ZodEnum<{
832
+ user: "user";
833
+ system: "system";
834
+ assistant: "assistant";
835
+ tool: "tool";
836
+ }>;
837
+ export type Role = z.infer<typeof zRole>;
838
+ /**
839
+ * Scale Kind
840
+ *
841
+ * Stevens measurement level: nominal (categories without order), ordinal (ordered categories), continuous (numeric range)
842
+ */
843
+ export declare const zScaleKind: z.ZodEnum<{
844
+ ordinal: "ordinal";
845
+ nominal: "nominal";
846
+ continuous: "continuous";
847
+ }>;
848
+ export type ScaleKind = z.infer<typeof zScaleKind>;
849
+ export declare const zSchemaVersionResponse: z.ZodObject<{
850
+ annotationSchemaVersion: z.ZodString;
851
+ minPullContractVersion: z.ZodOptional<z.ZodString>;
852
+ minPushContractVersion: z.ZodString;
853
+ pullContractVersion: z.ZodOptional<z.ZodString>;
854
+ pushContractVersion: z.ZodString;
855
+ supportedTargetKinds: z.ZodNullable<z.ZodArray<z.ZodString>>;
856
+ supportedTypeIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
857
+ }, z.core.$strip>;
858
+ export type SchemaVersionResponse = z.infer<typeof zSchemaVersionResponse>;
859
+ export declare const zSearchResult: z.ZodObject<{
860
+ entryIndex: z.ZodInt;
861
+ project: z.ZodString;
862
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
863
+ role: z.ZodString;
864
+ score: z.ZodNumber;
865
+ sessionId: z.ZodString;
866
+ snippet: z.ZodString;
867
+ }, z.core.$strip>;
868
+ export type SearchResult = z.infer<typeof zSearchResult>;
869
+ export declare const zSearchPayload: z.ZodObject<{
870
+ query: z.ZodString;
871
+ results: z.ZodNullable<z.ZodArray<z.ZodObject<{
872
+ entryIndex: z.ZodInt;
873
+ project: z.ZodString;
874
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
875
+ role: z.ZodString;
876
+ score: z.ZodNumber;
877
+ sessionId: z.ZodString;
878
+ snippet: z.ZodString;
879
+ }, z.core.$strip>>>;
880
+ }, z.core.$strip>;
881
+ export type SearchPayload = z.infer<typeof zSearchPayload>;
882
+ export declare const zServerMessage: z.ZodObject<{
883
+ axis: z.ZodOptional<z.ZodEnum<{
884
+ type: "type";
885
+ session: "session";
886
+ project: "project";
887
+ }>>;
888
+ data: z.ZodOptional<z.ZodUnknown>;
889
+ id: z.ZodOptional<z.ZodString>;
890
+ message: z.ZodOptional<z.ZodString>;
891
+ topic: z.ZodOptional<z.ZodEnum<{
892
+ quality: "quality";
893
+ dashboard: "dashboard";
894
+ sessions: "sessions";
895
+ session_detail: "session_detail";
896
+ trends: "trends";
897
+ annotations: "annotations";
898
+ project_familiarity: "project_familiarity";
899
+ }>>;
900
+ type: z.ZodEnum<{
901
+ error: "error";
902
+ connected: "connected";
903
+ quality: "quality";
904
+ dashboard: "dashboard";
905
+ sessions: "sessions";
906
+ session_detail: "session_detail";
907
+ trends: "trends";
908
+ annotations: "annotations";
909
+ project_familiarity: "project_familiarity";
910
+ subscribe: "subscribe";
911
+ unsubscribe: "unsubscribe";
912
+ }>;
913
+ version: z.ZodOptional<z.ZodString>;
914
+ }, z.core.$strip>;
915
+ export type ServerMessage = z.infer<typeof zServerMessage>;
916
+ /**
917
+ * Session ID
918
+ *
919
+ * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), or msg_{id})
920
+ */
921
+ export declare const zSessionID: z.ZodString;
922
+ export type SessionID = z.infer<typeof zSessionID>;
923
+ export declare const zCommitRef: z.ZodObject<{
924
+ hasSession: z.ZodBoolean;
925
+ hash: z.ZodString;
926
+ sessionIds: z.ZodArray<z.ZodString>;
927
+ subject: z.ZodString;
928
+ timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
929
+ }, z.core.$strip>;
930
+ export type CommitRef = z.infer<typeof zCommitRef>;
931
+ export declare const zSessionIdentity: z.ZodObject<{
932
+ parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ schemaVersion: z.ZodInt;
934
+ sessionId: z.ZodString;
935
+ }, z.core.$strip>;
936
+ export type SessionIdentity = z.infer<typeof zSessionIdentity>;
937
+ /**
938
+ * Session Outcome
939
+ *
940
+ * Resolution status of the session
941
+ */
942
+ export declare const zSessionOutcome: z.ZodEnum<{
943
+ failed: "failed";
944
+ partial: "partial";
945
+ resolved: "resolved";
946
+ }>;
947
+ export type SessionOutcome = z.infer<typeof zSessionOutcome>;
948
+ export declare const zQualityMetrics: z.ZodObject<{
949
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
950
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
951
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
952
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
953
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
954
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
956
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
957
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
958
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
959
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
960
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
961
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
962
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
963
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
964
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
965
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
966
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
967
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
968
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
969
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
970
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
971
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
972
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
973
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
974
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
975
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
976
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
977
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
978
+ failed: "failed";
979
+ partial: "partial";
980
+ resolved: "resolved";
981
+ }>>>;
982
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
983
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
984
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
985
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
987
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
988
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
989
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
990
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
991
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
992
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
993
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
994
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
995
+ }, z.core.$strip>;
996
+ export type QualityMetrics = z.infer<typeof zQualityMetrics>;
997
+ export declare const zSessionScorecard: z.ZodObject<{
998
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
999
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1000
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1001
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1002
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1003
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1004
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1005
+ outcome: z.ZodOptional<z.ZodEnum<{
1006
+ failed: "failed";
1007
+ partial: "partial";
1008
+ resolved: "resolved";
1009
+ }>>;
1010
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1011
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1012
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1013
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1014
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1015
+ }, z.core.$strip>;
1016
+ export type SessionScorecard = z.infer<typeof zSessionScorecard>;
1017
+ export declare const zSessionStats: z.ZodObject<{
1018
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1019
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1020
+ durationMs: z.ZodCoercedBigInt<unknown>;
1021
+ subagentCount: z.ZodInt;
1022
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1023
+ tokensIn: z.ZodInt;
1024
+ tokensOut: z.ZodInt;
1025
+ toolCallCount: z.ZodInt;
1026
+ turnCount: z.ZodInt;
1027
+ }, z.core.$strip>;
1028
+ export type SessionStats = z.infer<typeof zSessionStats>;
1029
+ export declare const zSessionSummary: z.ZodObject<{
1030
+ durationMins: z.ZodNumber;
1031
+ harness: z.ZodEnum<{
1032
+ cursor: "cursor";
1033
+ "claude-code": "claude-code";
1034
+ "gemini-cli": "gemini-cli";
1035
+ codex: "codex";
1036
+ opencode: "opencode";
1037
+ antigravity: "antigravity";
1038
+ }>;
1039
+ id: z.ZodString;
1040
+ outcome: z.ZodOptional<z.ZodString>;
1041
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
+ preview: z.ZodOptional<z.ZodString>;
1043
+ project: z.ZodOptional<z.ZodString>;
1044
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
1045
+ startTime: z.ZodISODateTime;
1046
+ toolCallCount: z.ZodInt;
1047
+ totalTokens: z.ZodInt;
1048
+ turnCount: z.ZodInt;
1049
+ }, z.core.$strip>;
1050
+ export type SessionSummary = z.infer<typeof zSessionSummary>;
1051
+ export declare const zSessionsPayload: z.ZodObject<{
1052
+ sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
1053
+ durationMins: z.ZodNumber;
1054
+ harness: z.ZodEnum<{
1055
+ cursor: "cursor";
1056
+ "claude-code": "claude-code";
1057
+ "gemini-cli": "gemini-cli";
1058
+ codex: "codex";
1059
+ opencode: "opencode";
1060
+ antigravity: "antigravity";
1061
+ }>;
1062
+ id: z.ZodString;
1063
+ outcome: z.ZodOptional<z.ZodString>;
1064
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ preview: z.ZodOptional<z.ZodString>;
1066
+ project: z.ZodOptional<z.ZodString>;
1067
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
1068
+ startTime: z.ZodISODateTime;
1069
+ toolCallCount: z.ZodInt;
1070
+ totalTokens: z.ZodInt;
1071
+ turnCount: z.ZodInt;
1072
+ }, z.core.$strip>>>;
1073
+ }, z.core.$strip>;
1074
+ export type SessionsPayload = z.infer<typeof zSessionsPayload>;
1075
+ export declare const zShutdownResponse: z.ZodObject<{
1076
+ status: z.ZodString;
1077
+ }, z.core.$strip>;
1078
+ export type ShutdownResponse = z.infer<typeof zShutdownResponse>;
1079
+ /**
1080
+ * Source Format
1081
+ *
1082
+ * Transcript file format
1083
+ */
1084
+ export declare const zSourceFormat: z.ZodEnum<{
1085
+ json: "json";
1086
+ jsonl: "jsonl";
1087
+ }>;
1088
+ export type SourceFormat = z.infer<typeof zSourceFormat>;
1089
+ export declare const zSourceInfo: z.ZodObject<{
1090
+ filePath: z.ZodOptional<z.ZodString>;
1091
+ format: z.ZodEnum<{
1092
+ json: "json";
1093
+ jsonl: "jsonl";
1094
+ }>;
1095
+ }, z.core.$strip>;
1096
+ export type SourceInfo = z.infer<typeof zSourceInfo>;
1097
+ /**
1098
+ * Stop Reason
1099
+ *
1100
+ * Reason why a session or turn ended (ACP-aligned)
1101
+ */
1102
+ export declare const zStopReason: z.ZodEnum<{
1103
+ end_turn: "end_turn";
1104
+ cancelled: "cancelled";
1105
+ max_tokens: "max_tokens";
1106
+ max_turn_requests: "max_turn_requests";
1107
+ refusal: "refusal";
1108
+ }>;
1109
+ export type StopReason = z.infer<typeof zStopReason>;
1110
+ export declare const zSubagentRef: z.ZodObject<{
1111
+ parentUuid: z.ZodString;
1112
+ sessionId: z.ZodString;
1113
+ }, z.core.$strip>;
1114
+ export type SubagentRef = z.infer<typeof zSubagentRef>;
1115
+ /**
1116
+ * Target Kind
1117
+ *
1118
+ * What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, or project-level
1119
+ */
1120
+ export declare const zTargetKind: z.ZodEnum<{
1121
+ session: "session";
1122
+ annotation: "annotation";
1123
+ project: "project";
1124
+ entry: "entry";
1125
+ }>;
1126
+ export type TargetKind = z.infer<typeof zTargetKind>;
1127
+ export declare const zAnnotationPushItem: z.ZodObject<{
1128
+ annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
+ annotatorName: z.ZodOptional<z.ZodString>;
1130
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1131
+ contentHash: z.ZodString;
1132
+ entryTarget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1133
+ endIndex: z.ZodInt;
1134
+ entryIndex: z.ZodInt;
1135
+ sessionId: z.ZodString;
1136
+ }, z.core.$strip>>>;
1137
+ isPrimary: z.ZodBoolean;
1138
+ projectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1139
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1140
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1141
+ function: z.ZodOptional<z.ZodString>;
1142
+ method: z.ZodString;
1143
+ version: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strip>>>;
1145
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ targetKind: z.ZodEnum<{
1148
+ session: "session";
1149
+ annotation: "annotation";
1150
+ project: "project";
1151
+ entry: "entry";
1152
+ }>;
1153
+ typeId: z.ZodString;
1154
+ value: z.ZodString;
1155
+ }, z.core.$strip>;
1156
+ export type AnnotationPushItem = z.infer<typeof zAnnotationPushItem>;
1157
+ export declare const zAnnotationPushRequest: z.ZodObject<{
1158
+ annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
1159
+ annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1160
+ annotatorName: z.ZodOptional<z.ZodString>;
1161
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1162
+ contentHash: z.ZodString;
1163
+ entryTarget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1164
+ endIndex: z.ZodInt;
1165
+ entryIndex: z.ZodInt;
1166
+ sessionId: z.ZodString;
1167
+ }, z.core.$strip>>>;
1168
+ isPrimary: z.ZodBoolean;
1169
+ projectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1170
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1171
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1172
+ function: z.ZodOptional<z.ZodString>;
1173
+ method: z.ZodString;
1174
+ version: z.ZodOptional<z.ZodString>;
1175
+ }, z.core.$strip>>>;
1176
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1177
+ sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1178
+ targetKind: z.ZodEnum<{
1179
+ session: "session";
1180
+ annotation: "annotation";
1181
+ project: "project";
1182
+ entry: "entry";
1183
+ }>;
1184
+ typeId: z.ZodString;
1185
+ value: z.ZodString;
1186
+ }, z.core.$strip>>>;
1187
+ retractions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1188
+ }, z.core.$strip>;
1189
+ export type AnnotationPushRequest = z.infer<typeof zAnnotationPushRequest>;
1190
+ export declare const zAnnotationSummary: z.ZodObject<{
1191
+ annotatorKind: z.ZodEnum<{
1192
+ human: "human";
1193
+ agent: "agent";
1194
+ rule: "rule";
1195
+ }>;
1196
+ annotatorName: z.ZodString;
1197
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1198
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1199
+ createdAt: z.ZodCoercedBigInt<unknown>;
1200
+ id: z.ZodString;
1201
+ isPrimary: z.ZodBoolean;
1202
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1203
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1204
+ function: z.ZodOptional<z.ZodString>;
1205
+ method: z.ZodString;
1206
+ version: z.ZodOptional<z.ZodString>;
1207
+ }, z.core.$strip>>>;
1208
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1212
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1213
+ targetKind: z.ZodEnum<{
1214
+ session: "session";
1215
+ annotation: "annotation";
1216
+ project: "project";
1217
+ entry: "entry";
1218
+ }>;
1219
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1220
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ typeId: z.ZodString;
1222
+ typeName: z.ZodString;
1223
+ value: z.ZodString;
1224
+ }, z.core.$strip>;
1225
+ export type AnnotationSummary = z.infer<typeof zAnnotationSummary>;
1226
+ export declare const zAnnotationsPayload: z.ZodObject<{
1227
+ annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
1228
+ annotatorKind: z.ZodEnum<{
1229
+ human: "human";
1230
+ agent: "agent";
1231
+ rule: "rule";
1232
+ }>;
1233
+ annotatorName: z.ZodString;
1234
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1235
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1236
+ createdAt: z.ZodCoercedBigInt<unknown>;
1237
+ id: z.ZodString;
1238
+ isPrimary: z.ZodBoolean;
1239
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1240
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1241
+ function: z.ZodOptional<z.ZodString>;
1242
+ method: z.ZodString;
1243
+ version: z.ZodOptional<z.ZodString>;
1244
+ }, z.core.$strip>>>;
1245
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1248
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1249
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1250
+ targetKind: z.ZodEnum<{
1251
+ session: "session";
1252
+ annotation: "annotation";
1253
+ project: "project";
1254
+ entry: "entry";
1255
+ }>;
1256
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1257
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1258
+ typeId: z.ZodString;
1259
+ typeName: z.ZodString;
1260
+ value: z.ZodString;
1261
+ }, z.core.$strip>>>;
1262
+ axis: z.ZodEnum<{
1263
+ type: "type";
1264
+ session: "session";
1265
+ project: "project";
1266
+ }>;
1267
+ id: z.ZodString;
1268
+ }, z.core.$strip>;
1269
+ export type AnnotationsPayload = z.infer<typeof zAnnotationsPayload>;
1270
+ export declare const zPullAnnotation: z.ZodObject<{
1271
+ annotatorKind: z.ZodOptional<z.ZodEnum<{
1272
+ human: "human";
1273
+ agent: "agent";
1274
+ rule: "rule";
1275
+ }>>;
1276
+ annotatorName: z.ZodOptional<z.ZodString>;
1277
+ authorUserId: z.ZodString;
1278
+ authorUsername: z.ZodString;
1279
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1280
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
+ createdAt: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
1282
+ id: z.ZodOptional<z.ZodString>;
1283
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
1284
+ provenance: z.ZodOptional<z.ZodObject<{
1285
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1286
+ function: z.ZodOptional<z.ZodString>;
1287
+ method: z.ZodString;
1288
+ version: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$strip>>;
1290
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1291
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1292
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1293
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1294
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1295
+ targetKind: z.ZodOptional<z.ZodEnum<{
1296
+ session: "session";
1297
+ annotation: "annotation";
1298
+ project: "project";
1299
+ entry: "entry";
1300
+ }>>;
1301
+ targetProjectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
1302
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1303
+ typeId: z.ZodOptional<z.ZodString>;
1304
+ typeName: z.ZodOptional<z.ZodString>;
1305
+ value: z.ZodOptional<z.ZodString>;
1306
+ }, z.core.$strip>;
1307
+ export type PullAnnotation = z.infer<typeof zPullAnnotation>;
1308
+ export declare const zQualitySession: z.ZodObject<{
1309
+ date: z.ZodString;
1310
+ discoveryTurns: z.ZodInt;
1311
+ durationMinutes: z.ZodNumber;
1312
+ effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1313
+ annotatorKind: z.ZodEnum<{
1314
+ human: "human";
1315
+ agent: "agent";
1316
+ rule: "rule";
1317
+ }>;
1318
+ annotatorName: z.ZodString;
1319
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1320
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1321
+ createdAt: z.ZodCoercedBigInt<unknown>;
1322
+ id: z.ZodString;
1323
+ isPrimary: z.ZodBoolean;
1324
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1325
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1326
+ function: z.ZodOptional<z.ZodString>;
1327
+ method: z.ZodString;
1328
+ version: z.ZodOptional<z.ZodString>;
1329
+ }, z.core.$strip>>>;
1330
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1332
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1333
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1334
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1335
+ targetKind: z.ZodEnum<{
1336
+ session: "session";
1337
+ annotation: "annotation";
1338
+ project: "project";
1339
+ entry: "entry";
1340
+ }>;
1341
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1342
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
+ typeId: z.ZodString;
1344
+ typeName: z.ZodString;
1345
+ value: z.ZodString;
1346
+ }, z.core.$strip>>>;
1347
+ explorationRatio: z.ZodNumber;
1348
+ filesTouched: z.ZodInt;
1349
+ id: z.ZodString;
1350
+ inputTokens: z.ZodInt;
1351
+ linesChanged: z.ZodInt;
1352
+ outcome: z.ZodString;
1353
+ outputTokens: z.ZodInt;
1354
+ project: z.ZodString;
1355
+ retryLoops: z.ZodInt;
1356
+ retryTokensWasted: z.ZodInt;
1357
+ scope: z.ZodString;
1358
+ scopeBreadth: z.ZodInt;
1359
+ signalDensity: z.ZodNumber;
1360
+ specQualityScore: z.ZodNumber;
1361
+ title: z.ZodString;
1362
+ toolCalls: z.ZodInt;
1363
+ totalTokens: z.ZodInt;
1364
+ turnCount: z.ZodInt;
1365
+ withinSessionReverts: z.ZodInt;
1366
+ }, z.core.$strip>;
1367
+ export type QualitySession = z.infer<typeof zQualitySession>;
1368
+ export declare const zQualityPayload: z.ZodObject<{
1369
+ sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
1370
+ date: z.ZodString;
1371
+ discoveryTurns: z.ZodInt;
1372
+ durationMinutes: z.ZodNumber;
1373
+ effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1374
+ annotatorKind: z.ZodEnum<{
1375
+ human: "human";
1376
+ agent: "agent";
1377
+ rule: "rule";
1378
+ }>;
1379
+ annotatorName: z.ZodString;
1380
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1381
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ createdAt: z.ZodCoercedBigInt<unknown>;
1383
+ id: z.ZodString;
1384
+ isPrimary: z.ZodBoolean;
1385
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1386
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1387
+ function: z.ZodOptional<z.ZodString>;
1388
+ method: z.ZodString;
1389
+ version: z.ZodOptional<z.ZodString>;
1390
+ }, z.core.$strip>>>;
1391
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1392
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1395
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1396
+ targetKind: z.ZodEnum<{
1397
+ session: "session";
1398
+ annotation: "annotation";
1399
+ project: "project";
1400
+ entry: "entry";
1401
+ }>;
1402
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1403
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ typeId: z.ZodString;
1405
+ typeName: z.ZodString;
1406
+ value: z.ZodString;
1407
+ }, z.core.$strip>>>;
1408
+ explorationRatio: z.ZodNumber;
1409
+ filesTouched: z.ZodInt;
1410
+ id: z.ZodString;
1411
+ inputTokens: z.ZodInt;
1412
+ linesChanged: z.ZodInt;
1413
+ outcome: z.ZodString;
1414
+ outputTokens: z.ZodInt;
1415
+ project: z.ZodString;
1416
+ retryLoops: z.ZodInt;
1417
+ retryTokensWasted: z.ZodInt;
1418
+ scope: z.ZodString;
1419
+ scopeBreadth: z.ZodInt;
1420
+ signalDensity: z.ZodNumber;
1421
+ specQualityScore: z.ZodNumber;
1422
+ title: z.ZodString;
1423
+ toolCalls: z.ZodInt;
1424
+ totalTokens: z.ZodInt;
1425
+ turnCount: z.ZodInt;
1426
+ withinSessionReverts: z.ZodInt;
1427
+ }, z.core.$strip>>>;
1428
+ }, z.core.$strip>;
1429
+ export type QualityPayload = z.infer<typeof zQualityPayload>;
1430
+ export declare const zTaskSummary: z.ZodObject<{
1431
+ editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
1432
+ entryIndex: z.ZodInt;
1433
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1434
+ outcome: z.ZodOptional<z.ZodString>;
1435
+ readCount: z.ZodInt;
1436
+ retryLoop: z.ZodBoolean;
1437
+ sessionId: z.ZodString;
1438
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1439
+ title: z.ZodString;
1440
+ }, z.core.$strip>;
1441
+ export type TaskSummary = z.infer<typeof zTaskSummary>;
1442
+ export declare const zChangeSession: z.ZodObject<{
1443
+ binding: z.ZodEnum<{
1444
+ candidate: "candidate";
1445
+ bound: "bound";
1446
+ }>;
1447
+ harness: z.ZodString;
1448
+ sessionId: z.ZodString;
1449
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1450
+ tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
1451
+ editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
1452
+ entryIndex: z.ZodInt;
1453
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1454
+ outcome: z.ZodOptional<z.ZodString>;
1455
+ readCount: z.ZodInt;
1456
+ retryLoop: z.ZodBoolean;
1457
+ sessionId: z.ZodString;
1458
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1459
+ title: z.ZodString;
1460
+ }, z.core.$strip>>>;
1461
+ title: z.ZodString;
1462
+ }, z.core.$strip>;
1463
+ export type ChangeSession = z.infer<typeof zChangeSession>;
1464
+ export declare const zMapNodeDetailPayload: z.ZodObject<{
1465
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1466
+ dependsOn: z.ZodNullable<z.ZodArray<z.ZodString>>;
1467
+ kind: z.ZodEnum<{
1468
+ file: "file";
1469
+ module: "module";
1470
+ package: "package";
1471
+ }>;
1472
+ language: z.ZodOptional<z.ZodString>;
1473
+ lastTouchMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1474
+ loc: z.ZodInt;
1475
+ path: z.ZodString;
1476
+ reEdits: z.ZodInt;
1477
+ recentCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
1478
+ hasSession: z.ZodBoolean;
1479
+ hash: z.ZodString;
1480
+ sessionIds: z.ZodArray<z.ZodString>;
1481
+ subject: z.ZodString;
1482
+ timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1483
+ }, z.core.$strip>>>;
1484
+ recordedFiles: z.ZodInt;
1485
+ retryLoops: z.ZodInt;
1486
+ sessionCount: z.ZodInt;
1487
+ shapedBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
1488
+ editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
1489
+ entryIndex: z.ZodInt;
1490
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1491
+ outcome: z.ZodOptional<z.ZodString>;
1492
+ readCount: z.ZodInt;
1493
+ retryLoop: z.ZodBoolean;
1494
+ sessionId: z.ZodString;
1495
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1496
+ title: z.ZodString;
1497
+ }, z.core.$strip>>>;
1498
+ taskCount: z.ZodInt;
1499
+ totalFiles: z.ZodInt;
1500
+ usedBy: z.ZodNullable<z.ZodArray<z.ZodString>>;
1501
+ }, z.core.$strip>;
1502
+ export type MapNodeDetailPayload = z.infer<typeof zMapNodeDetailPayload>;
1503
+ export declare const zProjectTasksPayload: z.ZodObject<{
1504
+ fileFilter: z.ZodOptional<z.ZodString>;
1505
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1506
+ tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
1507
+ editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
1508
+ entryIndex: z.ZodInt;
1509
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1510
+ outcome: z.ZodOptional<z.ZodString>;
1511
+ readCount: z.ZodInt;
1512
+ retryLoop: z.ZodBoolean;
1513
+ sessionId: z.ZodString;
1514
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1515
+ title: z.ZodString;
1516
+ }, z.core.$strip>>>;
1517
+ }, z.core.$strip>;
1518
+ export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
1519
+ export declare const zTimelineSessionRef: z.ZodObject<{
1520
+ harness: z.ZodEnum<{
1521
+ cursor: "cursor";
1522
+ "claude-code": "claude-code";
1523
+ "gemini-cli": "gemini-cli";
1524
+ codex: "codex";
1525
+ opencode: "opencode";
1526
+ antigravity: "antigravity";
1527
+ }>;
1528
+ hasCommitBinding: z.ZodBoolean;
1529
+ sessionId: z.ZodString;
1530
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1531
+ title: z.ZodString;
1532
+ }, z.core.$strip>;
1533
+ export type TimelineSessionRef = z.infer<typeof zTimelineSessionRef>;
1534
+ export declare const zReviewListPayload: z.ZodObject<{
1535
+ changes: z.ZodArray<z.ZodObject<{
1536
+ aheadCount: z.ZodInt;
1537
+ baseHash: z.ZodOptional<z.ZodString>;
1538
+ behindCount: z.ZodInt;
1539
+ branch: z.ZodString;
1540
+ filesChanged: z.ZodInt;
1541
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1542
+ mergeCommitHash: z.ZodOptional<z.ZodString>;
1543
+ merged: z.ZodBoolean;
1544
+ mergedAtMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1545
+ newEdges: z.ZodInt;
1546
+ removedEdges: z.ZodInt;
1547
+ reverted: z.ZodOptional<z.ZodBoolean>;
1548
+ sessionCount: z.ZodInt;
1549
+ taskCount: z.ZodInt;
1550
+ tipCommitMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1551
+ violations: z.ZodInt;
1552
+ }, z.core.$strip>>;
1553
+ defaultBranch: z.ZodOptional<z.ZodString>;
1554
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1555
+ recentCommits: z.ZodArray<z.ZodObject<{
1556
+ hasSession: z.ZodBoolean;
1557
+ hash: z.ZodString;
1558
+ sessionIds: z.ZodArray<z.ZodString>;
1559
+ subject: z.ZodString;
1560
+ timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1561
+ }, z.core.$strip>>;
1562
+ repoFound: z.ZodBoolean;
1563
+ sessions: z.ZodArray<z.ZodObject<{
1564
+ harness: z.ZodEnum<{
1565
+ cursor: "cursor";
1566
+ "claude-code": "claude-code";
1567
+ "gemini-cli": "gemini-cli";
1568
+ codex: "codex";
1569
+ opencode: "opencode";
1570
+ antigravity: "antigravity";
1571
+ }>;
1572
+ hasCommitBinding: z.ZodBoolean;
1573
+ sessionId: z.ZodString;
1574
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1575
+ title: z.ZodString;
1576
+ }, z.core.$strip>>;
1577
+ }, z.core.$strip>;
1578
+ export type ReviewListPayload = z.infer<typeof zReviewListPayload>;
1579
+ export declare const zTimestampInfo: z.ZodObject<{
1580
+ end: z.ZodCoercedBigInt<unknown>;
1581
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1582
+ start: z.ZodCoercedBigInt<unknown>;
1583
+ }, z.core.$strip>;
1584
+ export type TimestampInfo = z.infer<typeof zTimestampInfo>;
1585
+ /**
1586
+ * Tool Call Kind
1587
+ *
1588
+ * Classification of a tool call, aligned with ACP ToolCallUpdate.kind
1589
+ */
1590
+ export declare const zToolCallKind: z.ZodEnum<{
1591
+ search: "search";
1592
+ other: "other";
1593
+ move: "move";
1594
+ fetch: "fetch";
1595
+ delete: "delete";
1596
+ read: "read";
1597
+ edit: "edit";
1598
+ execute: "execute";
1599
+ think: "think";
1600
+ }>;
1601
+ export type ToolCallKind = z.infer<typeof zToolCallKind>;
1602
+ export declare const zSessionEntry: z.ZodObject<{
1603
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1604
+ depth: z.ZodInt;
1605
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1606
+ entryIndex: z.ZodInt;
1607
+ entryType: z.ZodEnum<{
1608
+ error: "error";
1609
+ text: "text";
1610
+ tool_use: "tool_use";
1611
+ tool_result: "tool_result";
1612
+ thinking: "thinking";
1613
+ system: "system";
1614
+ result: "result";
1615
+ }>;
1616
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1617
+ harness: z.ZodEnum<{
1618
+ cursor: "cursor";
1619
+ "claude-code": "claude-code";
1620
+ "gemini-cli": "gemini-cli";
1621
+ codex: "codex";
1622
+ opencode: "opencode";
1623
+ antigravity: "antigravity";
1624
+ }>;
1625
+ hasThinking: z.ZodBoolean;
1626
+ hasToolUse: z.ZodBoolean;
1627
+ isError: z.ZodBoolean;
1628
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1629
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1630
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1631
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1632
+ role: z.ZodEnum<{
1633
+ user: "user";
1634
+ system: "system";
1635
+ assistant: "assistant";
1636
+ tool: "tool";
1637
+ }>;
1638
+ sessionId: z.ZodString;
1639
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1640
+ end_turn: "end_turn";
1641
+ cancelled: "cancelled";
1642
+ max_tokens: "max_tokens";
1643
+ max_turn_requests: "max_turn_requests";
1644
+ refusal: "refusal";
1645
+ }>>>;
1646
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1647
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1648
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1649
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1650
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1652
+ search: "search";
1653
+ other: "other";
1654
+ move: "move";
1655
+ fetch: "fetch";
1656
+ delete: "delete";
1657
+ read: "read";
1658
+ edit: "edit";
1659
+ execute: "execute";
1660
+ think: "think";
1661
+ }>>>;
1662
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1664
+ }, z.core.$strip>;
1665
+ export type SessionEntry = z.infer<typeof zSessionEntry>;
1666
+ export declare const zPublishRequest: z.ZodObject<{
1667
+ diagnostics: z.ZodObject<{
1668
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1669
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
1670
+ errorType: z.ZodString;
1671
+ location: z.ZodString;
1672
+ message: z.ZodString;
1673
+ remediation: z.ZodString;
1674
+ }, z.core.$strip>>>;
1675
+ }, z.core.$strip>;
1676
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
1677
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ depth: z.ZodInt;
1679
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1680
+ entryIndex: z.ZodInt;
1681
+ entryType: z.ZodEnum<{
1682
+ error: "error";
1683
+ text: "text";
1684
+ tool_use: "tool_use";
1685
+ tool_result: "tool_result";
1686
+ thinking: "thinking";
1687
+ system: "system";
1688
+ result: "result";
1689
+ }>;
1690
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1691
+ harness: z.ZodEnum<{
1692
+ cursor: "cursor";
1693
+ "claude-code": "claude-code";
1694
+ "gemini-cli": "gemini-cli";
1695
+ codex: "codex";
1696
+ opencode: "opencode";
1697
+ antigravity: "antigravity";
1698
+ }>;
1699
+ hasThinking: z.ZodBoolean;
1700
+ hasToolUse: z.ZodBoolean;
1701
+ isError: z.ZodBoolean;
1702
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1704
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1706
+ role: z.ZodEnum<{
1707
+ user: "user";
1708
+ system: "system";
1709
+ assistant: "assistant";
1710
+ tool: "tool";
1711
+ }>;
1712
+ sessionId: z.ZodString;
1713
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1714
+ end_turn: "end_turn";
1715
+ cancelled: "cancelled";
1716
+ max_tokens: "max_tokens";
1717
+ max_turn_requests: "max_turn_requests";
1718
+ refusal: "refusal";
1719
+ }>>>;
1720
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1721
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1722
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1723
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1724
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1726
+ search: "search";
1727
+ other: "other";
1728
+ move: "move";
1729
+ fetch: "fetch";
1730
+ delete: "delete";
1731
+ read: "read";
1732
+ edit: "edit";
1733
+ execute: "execute";
1734
+ think: "think";
1735
+ }>>>;
1736
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1737
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1738
+ }, z.core.$strip>>>;
1739
+ git: z.ZodObject<{
1740
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1741
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1742
+ authorEmail: z.ZodString;
1743
+ authorName: z.ZodString;
1744
+ authorTime: z.ZodCoercedBigInt<unknown>;
1745
+ commitTime: z.ZodCoercedBigInt<unknown>;
1746
+ hash: z.ZodString;
1747
+ message: z.ZodString;
1748
+ }, z.core.$strip>>>;
1749
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1750
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1751
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1752
+ }, z.core.$strip>;
1753
+ identity: z.ZodObject<{
1754
+ parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1755
+ schemaVersion: z.ZodInt;
1756
+ sessionId: z.ZodString;
1757
+ }, z.core.$strip>;
1758
+ license: z.ZodOptional<z.ZodEnum<{
1759
+ "CC0-1.0": "CC0-1.0";
1760
+ "CC-BY-4.0": "CC-BY-4.0";
1761
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
1762
+ }>>;
1763
+ model: z.ZodObject<{
1764
+ harness: z.ZodEnum<{
1765
+ cursor: "cursor";
1766
+ "claude-code": "claude-code";
1767
+ "gemini-cli": "gemini-cli";
1768
+ codex: "codex";
1769
+ opencode: "opencode";
1770
+ antigravity: "antigravity";
1771
+ }>;
1772
+ hostSlug: z.ZodOptional<z.ZodString>;
1773
+ model: z.ZodString;
1774
+ version: z.ZodOptional<z.ZodString>;
1775
+ }, z.core.$strip>;
1776
+ project: z.ZodObject<{
1777
+ filePath: z.ZodOptional<z.ZodString>;
1778
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1779
+ name: z.ZodString;
1780
+ }, z.core.$strip>;
1781
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1782
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1783
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1784
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1785
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1786
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1787
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1788
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1789
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1790
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1791
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1792
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1793
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1794
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1795
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1796
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1797
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1798
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1799
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1800
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1801
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1802
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1803
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1804
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1805
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1806
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1807
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1808
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1809
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1810
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1811
+ failed: "failed";
1812
+ partial: "partial";
1813
+ resolved: "resolved";
1814
+ }>>>;
1815
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1816
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1817
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1818
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1819
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1820
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1821
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1822
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1823
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1824
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1825
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1826
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1827
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1828
+ }, z.core.$strip>>>;
1829
+ source: z.ZodObject<{
1830
+ filePath: z.ZodOptional<z.ZodString>;
1831
+ format: z.ZodEnum<{
1832
+ json: "json";
1833
+ jsonl: "jsonl";
1834
+ }>;
1835
+ }, z.core.$strip>;
1836
+ stats: z.ZodObject<{
1837
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1838
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1839
+ durationMs: z.ZodCoercedBigInt<unknown>;
1840
+ subagentCount: z.ZodInt;
1841
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1842
+ tokensIn: z.ZodInt;
1843
+ tokensOut: z.ZodInt;
1844
+ toolCallCount: z.ZodInt;
1845
+ turnCount: z.ZodInt;
1846
+ }, z.core.$strip>;
1847
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
+ parentUuid: z.ZodString;
1849
+ sessionId: z.ZodString;
1850
+ }, z.core.$strip>>>;
1851
+ timestamp: z.ZodObject<{
1852
+ end: z.ZodCoercedBigInt<unknown>;
1853
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1854
+ start: z.ZodCoercedBigInt<unknown>;
1855
+ }, z.core.$strip>;
1856
+ }, z.core.$strip>;
1857
+ export type PublishRequest = z.infer<typeof zPublishRequest>;
1858
+ export declare const zToolCallDetail: z.ZodObject<{
1859
+ arguments: z.ZodString;
1860
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1861
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1862
+ filePath: z.ZodOptional<z.ZodString>;
1863
+ id: z.ZodString;
1864
+ isError: z.ZodOptional<z.ZodBoolean>;
1865
+ name: z.ZodString;
1866
+ result: z.ZodString;
1867
+ toolKind: z.ZodOptional<z.ZodEnum<{
1868
+ search: "search";
1869
+ other: "other";
1870
+ move: "move";
1871
+ fetch: "fetch";
1872
+ delete: "delete";
1873
+ read: "read";
1874
+ edit: "edit";
1875
+ execute: "execute";
1876
+ think: "think";
1877
+ }>>;
1878
+ }, z.core.$strip>;
1879
+ export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
1880
+ /**
1881
+ * Transcript ID
1882
+ *
1883
+ * Village-side transcript identifier (canonical lowercase-hex UUID)
1884
+ */
1885
+ export declare const zTranscriptID: z.ZodUUID;
1886
+ export type TranscriptID = z.infer<typeof zTranscriptID>;
1887
+ export declare const zPullSkipGateItem: z.ZodObject<{
1888
+ annotationHashes: z.ZodArray<z.ZodString>;
1889
+ contentHash: z.ZodString;
1890
+ transcriptId: z.ZodUUID;
1891
+ }, z.core.$strip>;
1892
+ export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
1893
+ export declare const zPullSkipGateRequest: z.ZodObject<{
1894
+ items: z.ZodArray<z.ZodObject<{
1895
+ annotationHashes: z.ZodArray<z.ZodString>;
1896
+ contentHash: z.ZodString;
1897
+ transcriptId: z.ZodUUID;
1898
+ }, z.core.$strip>>;
1899
+ }, z.core.$strip>;
1900
+ export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
1901
+ export declare const zPullSkipGateResult: z.ZodObject<{
1902
+ annotationsCurrent: z.ZodBoolean;
1903
+ contentCurrent: z.ZodBoolean;
1904
+ transcriptId: z.ZodUUID;
1905
+ }, z.core.$strip>;
1906
+ export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
1907
+ export declare const zPullSkipGateResponse: z.ZodObject<{
1908
+ results: z.ZodArray<z.ZodObject<{
1909
+ annotationsCurrent: z.ZodBoolean;
1910
+ contentCurrent: z.ZodBoolean;
1911
+ transcriptId: z.ZodUUID;
1912
+ }, z.core.$strip>>;
1913
+ }, z.core.$strip>;
1914
+ export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
1915
+ export declare const zTrendsPayload: z.ZodObject<{
1916
+ days: z.ZodNullable<z.ZodArray<z.ZodObject<{
1917
+ date: z.ZodString;
1918
+ sessions: z.ZodInt;
1919
+ tokens: z.ZodInt;
1920
+ }, z.core.$strip>>>;
1921
+ totalSessions: z.ZodInt;
1922
+ totalTokens: z.ZodInt;
1923
+ }, z.core.$strip>;
1924
+ export type TrendsPayload = z.infer<typeof zTrendsPayload>;
1925
+ export declare const zTurnDetail: z.ZodObject<{
1926
+ agentName: z.ZodOptional<z.ZodString>;
1927
+ content: z.ZodString;
1928
+ depth: z.ZodInt;
1929
+ entryType: z.ZodOptional<z.ZodEnum<{
1930
+ error: "error";
1931
+ text: "text";
1932
+ tool_use: "tool_use";
1933
+ tool_result: "tool_result";
1934
+ thinking: "thinking";
1935
+ system: "system";
1936
+ result: "result";
1937
+ }>>;
1938
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
1939
+ index: z.ZodInt;
1940
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1941
+ role: z.ZodEnum<{
1942
+ user: "user";
1943
+ system: "system";
1944
+ assistant: "assistant";
1945
+ tool: "tool";
1946
+ }>;
1947
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1948
+ end_turn: "end_turn";
1949
+ cancelled: "cancelled";
1950
+ max_tokens: "max_tokens";
1951
+ max_turn_requests: "max_turn_requests";
1952
+ refusal: "refusal";
1953
+ }>>>;
1954
+ timestamp: z.ZodISODateTime;
1955
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1956
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1957
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1958
+ arguments: z.ZodString;
1959
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1960
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1961
+ filePath: z.ZodOptional<z.ZodString>;
1962
+ id: z.ZodString;
1963
+ isError: z.ZodOptional<z.ZodBoolean>;
1964
+ name: z.ZodString;
1965
+ result: z.ZodString;
1966
+ toolKind: z.ZodOptional<z.ZodEnum<{
1967
+ search: "search";
1968
+ other: "other";
1969
+ move: "move";
1970
+ fetch: "fetch";
1971
+ delete: "delete";
1972
+ read: "read";
1973
+ edit: "edit";
1974
+ execute: "execute";
1975
+ think: "think";
1976
+ }>>;
1977
+ }, z.core.$strip>>>;
1978
+ }, z.core.$strip>;
1979
+ export type TurnDetail = z.infer<typeof zTurnDetail>;
1980
+ export declare const zSessionDetailPayload: z.ZodObject<{
1981
+ childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1982
+ id: z.ZodString;
1983
+ project: z.ZodOptional<z.ZodString>;
1984
+ startTime: z.ZodISODateTime;
1985
+ }, z.core.$strip>>>;
1986
+ durationMins: z.ZodNumber;
1987
+ endTime: z.ZodISODateTime;
1988
+ gitBranch: z.ZodOptional<z.ZodString>;
1989
+ gitRemote: z.ZodOptional<z.ZodString>;
1990
+ harness: z.ZodEnum<{
1991
+ cursor: "cursor";
1992
+ "claude-code": "claude-code";
1993
+ "gemini-cli": "gemini-cli";
1994
+ codex: "codex";
1995
+ opencode: "opencode";
1996
+ antigravity: "antigravity";
1997
+ }>;
1998
+ id: z.ZodString;
1999
+ model: z.ZodOptional<z.ZodString>;
2000
+ outcome: z.ZodOptional<z.ZodEnum<{
2001
+ failed: "failed";
2002
+ partial: "partial";
2003
+ resolved: "resolved";
2004
+ }>>;
2005
+ project: z.ZodOptional<z.ZodString>;
2006
+ schemaVersion: z.ZodOptional<z.ZodString>;
2007
+ scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2008
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2009
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2010
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2011
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2012
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2013
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2014
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2015
+ outcome: z.ZodOptional<z.ZodEnum<{
2016
+ failed: "failed";
2017
+ partial: "partial";
2018
+ resolved: "resolved";
2019
+ }>>;
2020
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2021
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2022
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2023
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2024
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2025
+ }, z.core.$strip>>>;
2026
+ source: z.ZodOptional<z.ZodString>;
2027
+ startTime: z.ZodISODateTime;
2028
+ status: z.ZodOptional<z.ZodString>;
2029
+ tokensIn: z.ZodInt;
2030
+ tokensOut: z.ZodInt;
2031
+ toolCallCount: z.ZodInt;
2032
+ totalTokens: z.ZodInt;
2033
+ turnCount: z.ZodInt;
2034
+ turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
2035
+ agentName: z.ZodOptional<z.ZodString>;
2036
+ content: z.ZodString;
2037
+ depth: z.ZodInt;
2038
+ entryType: z.ZodOptional<z.ZodEnum<{
2039
+ error: "error";
2040
+ text: "text";
2041
+ tool_use: "tool_use";
2042
+ tool_result: "tool_result";
2043
+ thinking: "thinking";
2044
+ system: "system";
2045
+ result: "result";
2046
+ }>>;
2047
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
2048
+ index: z.ZodInt;
2049
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2050
+ role: z.ZodEnum<{
2051
+ user: "user";
2052
+ system: "system";
2053
+ assistant: "assistant";
2054
+ tool: "tool";
2055
+ }>;
2056
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2057
+ end_turn: "end_turn";
2058
+ cancelled: "cancelled";
2059
+ max_tokens: "max_tokens";
2060
+ max_turn_requests: "max_turn_requests";
2061
+ refusal: "refusal";
2062
+ }>>>;
2063
+ timestamp: z.ZodISODateTime;
2064
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2065
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2066
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2067
+ arguments: z.ZodString;
2068
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2069
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2070
+ filePath: z.ZodOptional<z.ZodString>;
2071
+ id: z.ZodString;
2072
+ isError: z.ZodOptional<z.ZodBoolean>;
2073
+ name: z.ZodString;
2074
+ result: z.ZodString;
2075
+ toolKind: z.ZodOptional<z.ZodEnum<{
2076
+ search: "search";
2077
+ other: "other";
2078
+ move: "move";
2079
+ fetch: "fetch";
2080
+ delete: "delete";
2081
+ read: "read";
2082
+ edit: "edit";
2083
+ execute: "execute";
2084
+ think: "think";
2085
+ }>>;
2086
+ }, z.core.$strip>>>;
2087
+ }, z.core.$strip>>>;
2088
+ workingDirectory: z.ZodOptional<z.ZodString>;
2089
+ }, z.core.$strip>;
2090
+ export type SessionDetailPayload = z.infer<typeof zSessionDetailPayload>;
2091
+ export declare const zTranscriptContent: z.ZodObject<{
2092
+ contractVersion: z.ZodString;
2093
+ kind: z.ZodEnum<{
2094
+ session_detail: "session_detail";
2095
+ }>;
2096
+ sessionDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2097
+ childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2098
+ id: z.ZodString;
2099
+ project: z.ZodOptional<z.ZodString>;
2100
+ startTime: z.ZodISODateTime;
2101
+ }, z.core.$strip>>>;
2102
+ durationMins: z.ZodNumber;
2103
+ endTime: z.ZodISODateTime;
2104
+ gitBranch: z.ZodOptional<z.ZodString>;
2105
+ gitRemote: z.ZodOptional<z.ZodString>;
2106
+ harness: z.ZodEnum<{
2107
+ cursor: "cursor";
2108
+ "claude-code": "claude-code";
2109
+ "gemini-cli": "gemini-cli";
2110
+ codex: "codex";
2111
+ opencode: "opencode";
2112
+ antigravity: "antigravity";
2113
+ }>;
2114
+ id: z.ZodString;
2115
+ model: z.ZodOptional<z.ZodString>;
2116
+ outcome: z.ZodOptional<z.ZodEnum<{
2117
+ failed: "failed";
2118
+ partial: "partial";
2119
+ resolved: "resolved";
2120
+ }>>;
2121
+ project: z.ZodOptional<z.ZodString>;
2122
+ schemaVersion: z.ZodOptional<z.ZodString>;
2123
+ scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2124
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2125
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2126
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2127
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2128
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2129
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2130
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2131
+ outcome: z.ZodOptional<z.ZodEnum<{
2132
+ failed: "failed";
2133
+ partial: "partial";
2134
+ resolved: "resolved";
2135
+ }>>;
2136
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2137
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2138
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2139
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2140
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2141
+ }, z.core.$strip>>>;
2142
+ source: z.ZodOptional<z.ZodString>;
2143
+ startTime: z.ZodISODateTime;
2144
+ status: z.ZodOptional<z.ZodString>;
2145
+ tokensIn: z.ZodInt;
2146
+ tokensOut: z.ZodInt;
2147
+ toolCallCount: z.ZodInt;
2148
+ totalTokens: z.ZodInt;
2149
+ turnCount: z.ZodInt;
2150
+ turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
2151
+ agentName: z.ZodOptional<z.ZodString>;
2152
+ content: z.ZodString;
2153
+ depth: z.ZodInt;
2154
+ entryType: z.ZodOptional<z.ZodEnum<{
2155
+ error: "error";
2156
+ text: "text";
2157
+ tool_use: "tool_use";
2158
+ tool_result: "tool_result";
2159
+ thinking: "thinking";
2160
+ system: "system";
2161
+ result: "result";
2162
+ }>>;
2163
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
2164
+ index: z.ZodInt;
2165
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2166
+ role: z.ZodEnum<{
2167
+ user: "user";
2168
+ system: "system";
2169
+ assistant: "assistant";
2170
+ tool: "tool";
2171
+ }>;
2172
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2173
+ end_turn: "end_turn";
2174
+ cancelled: "cancelled";
2175
+ max_tokens: "max_tokens";
2176
+ max_turn_requests: "max_turn_requests";
2177
+ refusal: "refusal";
2178
+ }>>>;
2179
+ timestamp: z.ZodISODateTime;
2180
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2181
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2182
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2183
+ arguments: z.ZodString;
2184
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2185
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2186
+ filePath: z.ZodOptional<z.ZodString>;
2187
+ id: z.ZodString;
2188
+ isError: z.ZodOptional<z.ZodBoolean>;
2189
+ name: z.ZodString;
2190
+ result: z.ZodString;
2191
+ toolKind: z.ZodOptional<z.ZodEnum<{
2192
+ search: "search";
2193
+ other: "other";
2194
+ move: "move";
2195
+ fetch: "fetch";
2196
+ delete: "delete";
2197
+ read: "read";
2198
+ edit: "edit";
2199
+ execute: "execute";
2200
+ think: "think";
2201
+ }>>;
2202
+ }, z.core.$strip>>>;
2203
+ }, z.core.$strip>>>;
2204
+ workingDirectory: z.ZodOptional<z.ZodString>;
2205
+ }, z.core.$strip>>>;
2206
+ }, z.core.$strip>;
2207
+ export type TranscriptContent = z.infer<typeof zTranscriptContent>;
2208
+ /**
2209
+ * Type Origin
2210
+ *
2211
+ * Who created an annotation type: system (built-in), user (individual), or group (shared)
2212
+ */
2213
+ export declare const zTypeOrigin: z.ZodEnum<{
2214
+ user: "user";
2215
+ group: "group";
2216
+ system: "system";
2217
+ }>;
2218
+ export type TypeOrigin = z.infer<typeof zTypeOrigin>;
2219
+ export declare const zUnifiedMetadata: z.ZodObject<{
2220
+ contentHash: z.ZodString;
2221
+ cwd: z.ZodOptional<z.ZodString>;
2222
+ derivedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2223
+ diagnostics: z.ZodObject<{
2224
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2225
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2226
+ errorType: z.ZodString;
2227
+ location: z.ZodString;
2228
+ message: z.ZodString;
2229
+ remediation: z.ZodString;
2230
+ }, z.core.$strip>>>;
2231
+ }, z.core.$strip>;
2232
+ git: z.ZodObject<{
2233
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2234
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2235
+ authorEmail: z.ZodString;
2236
+ authorName: z.ZodString;
2237
+ authorTime: z.ZodCoercedBigInt<unknown>;
2238
+ commitTime: z.ZodCoercedBigInt<unknown>;
2239
+ hash: z.ZodString;
2240
+ message: z.ZodString;
2241
+ }, z.core.$strip>>>;
2242
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2243
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2244
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2245
+ }, z.core.$strip>;
2246
+ harness: z.ZodEnum<{
2247
+ cursor: "cursor";
2248
+ "claude-code": "claude-code";
2249
+ "gemini-cli": "gemini-cli";
2250
+ codex: "codex";
2251
+ opencode: "opencode";
2252
+ antigravity: "antigravity";
2253
+ }>;
2254
+ hostSlug: z.ZodString;
2255
+ metadataHash: z.ZodString;
2256
+ model: z.ZodString;
2257
+ parentUuid: z.ZodNullable<z.ZodString>;
2258
+ project: z.ZodObject<{
2259
+ filePath: z.ZodOptional<z.ZodString>;
2260
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2261
+ name: z.ZodString;
2262
+ }, z.core.$strip>;
2263
+ redaction: z.ZodObject<{
2264
+ applied: z.ZodBoolean;
2265
+ content_hash_at_redact: z.ZodOptional<z.ZodString>;
2266
+ level: z.ZodOptional<z.ZodString>;
2267
+ redacted_at_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2268
+ rule_set_version: z.ZodOptional<z.ZodString>;
2269
+ }, z.core.$strip>;
2270
+ schemaVersion: z.ZodInt;
2271
+ sessionId: z.ZodString;
2272
+ source: z.ZodObject<{
2273
+ filePath: z.ZodOptional<z.ZodString>;
2274
+ format: z.ZodEnum<{
2275
+ json: "json";
2276
+ jsonl: "jsonl";
2277
+ }>;
2278
+ }, z.core.$strip>;
2279
+ stats: z.ZodObject<{
2280
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2281
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2282
+ durationMs: z.ZodCoercedBigInt<unknown>;
2283
+ subagentCount: z.ZodInt;
2284
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2285
+ tokensIn: z.ZodInt;
2286
+ tokensOut: z.ZodInt;
2287
+ toolCallCount: z.ZodInt;
2288
+ turnCount: z.ZodInt;
2289
+ }, z.core.$strip>;
2290
+ subagents: z.ZodNullable<z.ZodArray<z.ZodObject<{
2291
+ parentUuid: z.ZodString;
2292
+ sessionId: z.ZodString;
2293
+ }, z.core.$strip>>>;
2294
+ timestamp: z.ZodObject<{
2295
+ end: z.ZodCoercedBigInt<unknown>;
2296
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2297
+ start: z.ZodCoercedBigInt<unknown>;
2298
+ }, z.core.$strip>;
2299
+ version: z.ZodString;
2300
+ }, z.core.$strip>;
2301
+ export type UnifiedMetadata = z.infer<typeof zUnifiedMetadata>;
2302
+ export declare const zUnusualSignal: z.ZodObject<{
2303
+ kind: z.ZodString;
2304
+ label: z.ZodString;
2305
+ perChange: z.ZodNumber;
2306
+ perProject: z.ZodNumber;
2307
+ }, z.core.$strip>;
2308
+ export type UnusualSignal = z.infer<typeof zUnusualSignal>;
2309
+ export declare const zChangeDetailPayload: z.ZodObject<{
2310
+ baseRef: z.ZodString;
2311
+ branch: z.ZodString;
2312
+ costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2313
+ defaultBranch: z.ZodString;
2314
+ files: z.ZodNullable<z.ZodArray<z.ZodObject<{
2315
+ linesAdded: z.ZodInt;
2316
+ linesRemoved: z.ZodInt;
2317
+ oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2318
+ path: z.ZodString;
2319
+ status: z.ZodEnum<{
2320
+ M: "M";
2321
+ A: "A";
2322
+ D: "D";
2323
+ R: "R";
2324
+ }>;
2325
+ }, z.core.$strip>>>;
2326
+ frictions: z.ZodNullable<z.ZodArray<z.ZodObject<{
2327
+ count: z.ZodInt;
2328
+ file: z.ZodString;
2329
+ kind: z.ZodString;
2330
+ label: z.ZodString;
2331
+ sessions: z.ZodInt;
2332
+ }, z.core.$strip>>>;
2333
+ linesAdded: z.ZodInt;
2334
+ linesRemoved: z.ZodInt;
2335
+ newEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
2336
+ count: z.ZodInt;
2337
+ from: z.ZodString;
2338
+ to: z.ZodString;
2339
+ }, z.core.$strip>>>;
2340
+ newNodes: z.ZodNullable<z.ZodArray<z.ZodString>>;
2341
+ outputTokens: z.ZodCoercedBigInt<unknown>;
2342
+ removedEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
2343
+ count: z.ZodInt;
2344
+ from: z.ZodString;
2345
+ to: z.ZodString;
2346
+ }, z.core.$strip>>>;
2347
+ removedNodes: z.ZodNullable<z.ZodArray<z.ZodString>>;
2348
+ slice: z.ZodObject<{
2349
+ activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
2350
+ from: z.ZodString;
2351
+ taskCount: z.ZodInt;
2352
+ to: z.ZodString;
2353
+ }, z.core.$strip>>>;
2354
+ nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
2355
+ effortDensity: z.ZodNumber;
2356
+ fileCount: z.ZodInt;
2357
+ id: z.ZodString;
2358
+ kind: z.ZodEnum<{
2359
+ file: "file";
2360
+ module: "module";
2361
+ package: "package";
2362
+ }>;
2363
+ language: z.ZodOptional<z.ZodString>;
2364
+ layer: z.ZodInt;
2365
+ loc: z.ZodInt;
2366
+ name: z.ZodString;
2367
+ order: z.ZodInt;
2368
+ parent: z.ZodOptional<z.ZodString>;
2369
+ recordedFiles: z.ZodInt;
2370
+ totalFiles: z.ZodInt;
2371
+ touchCount: z.ZodInt;
2372
+ }, z.core.$strip>>>;
2373
+ structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
2374
+ count: z.ZodInt;
2375
+ from: z.ZodString;
2376
+ to: z.ZodString;
2377
+ }, z.core.$strip>>>;
2378
+ }, z.core.$strip>;
2379
+ unrecordedCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
2380
+ hasSession: z.ZodBoolean;
2381
+ hash: z.ZodString;
2382
+ sessionIds: z.ZodArray<z.ZodString>;
2383
+ subject: z.ZodString;
2384
+ timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2385
+ }, z.core.$strip>>>;
2386
+ unusual: z.ZodNullable<z.ZodArray<z.ZodObject<{
2387
+ kind: z.ZodString;
2388
+ label: z.ZodString;
2389
+ perChange: z.ZodNumber;
2390
+ perProject: z.ZodNumber;
2391
+ }, z.core.$strip>>>;
2392
+ violations: z.ZodNullable<z.ZodArray<z.ZodObject<{
2393
+ from: z.ZodString;
2394
+ kind: z.ZodEnum<{
2395
+ cycle: "cycle";
2396
+ wrong_way: "wrong_way";
2397
+ }>;
2398
+ to: z.ZodString;
2399
+ }, z.core.$strip>>>;
2400
+ work: z.ZodNullable<z.ZodArray<z.ZodObject<{
2401
+ binding: z.ZodEnum<{
2402
+ candidate: "candidate";
2403
+ bound: "bound";
2404
+ }>;
2405
+ harness: z.ZodString;
2406
+ sessionId: z.ZodString;
2407
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2408
+ tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
2409
+ editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
2410
+ entryIndex: z.ZodInt;
2411
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
2412
+ outcome: z.ZodOptional<z.ZodString>;
2413
+ readCount: z.ZodInt;
2414
+ retryLoop: z.ZodBoolean;
2415
+ sessionId: z.ZodString;
2416
+ startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2417
+ title: z.ZodString;
2418
+ }, z.core.$strip>>>;
2419
+ title: z.ZodString;
2420
+ }, z.core.$strip>>>;
2421
+ }, z.core.$strip>;
2422
+ export type ChangeDetailPayload = z.infer<typeof zChangeDetailPayload>;
2423
+ /**
2424
+ * Value Domain Kind
2425
+ *
2426
+ * ISO 11179 value domain: enumerated (finite allowed set) or described (range/pattern constraint)
2427
+ */
2428
+ export declare const zValueDomainKind: z.ZodEnum<{
2429
+ enumerated: "enumerated";
2430
+ described: "described";
2431
+ }>;
2432
+ export type ValueDomainKind = z.infer<typeof zValueDomainKind>;
2433
+ export declare const zValueDomain: z.ZodObject<{
2434
+ constraintSpec: z.ZodOptional<z.ZodString>;
2435
+ datatype: z.ZodEnum<{
2436
+ boolean: "boolean";
2437
+ real: "real";
2438
+ text: "text";
2439
+ integer: "integer";
2440
+ }>;
2441
+ kind: z.ZodEnum<{
2442
+ enumerated: "enumerated";
2443
+ described: "described";
2444
+ }>;
2445
+ permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
2446
+ }, z.core.$strip>;
2447
+ export type ValueDomain = z.infer<typeof zValueDomain>;
2448
+ export declare const zAnnotationTypeSummary: z.ZodObject<{
2449
+ allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2450
+ session: "session";
2451
+ annotation: "annotation";
2452
+ project: "project";
2453
+ entry: "entry";
2454
+ }>>>;
2455
+ class: z.ZodString;
2456
+ description: z.ZodOptional<z.ZodString>;
2457
+ displayName: z.ZodString;
2458
+ family: z.ZodString;
2459
+ id: z.ZodOptional<z.ZodString>;
2460
+ lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2461
+ origin: z.ZodEnum<{
2462
+ user: "user";
2463
+ group: "group";
2464
+ system: "system";
2465
+ }>;
2466
+ priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2467
+ scaleKind: z.ZodOptional<z.ZodEnum<{
2468
+ ordinal: "ordinal";
2469
+ nominal: "nominal";
2470
+ continuous: "continuous";
2471
+ }>>;
2472
+ status: z.ZodEnum<{
2473
+ active: "active";
2474
+ deprecated: "deprecated";
2475
+ proposed: "proposed";
2476
+ retired: "retired";
2477
+ }>;
2478
+ typeId: z.ZodString;
2479
+ valueDomain: z.ZodObject<{
2480
+ constraintSpec: z.ZodOptional<z.ZodString>;
2481
+ datatype: z.ZodEnum<{
2482
+ boolean: "boolean";
2483
+ real: "real";
2484
+ text: "text";
2485
+ integer: "integer";
2486
+ }>;
2487
+ kind: z.ZodEnum<{
2488
+ enumerated: "enumerated";
2489
+ described: "described";
2490
+ }>;
2491
+ permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
2492
+ }, z.core.$strip>;
2493
+ version: z.ZodInt;
2494
+ }, z.core.$strip>;
2495
+ export type AnnotationTypeSummary = z.infer<typeof zAnnotationTypeSummary>;
2496
+ export declare const zTaxonomyFamilyNode: z.ZodObject<{
2497
+ family: z.ZodString;
2498
+ types: z.ZodNullable<z.ZodArray<z.ZodObject<{
2499
+ allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2500
+ session: "session";
2501
+ annotation: "annotation";
2502
+ project: "project";
2503
+ entry: "entry";
2504
+ }>>>;
2505
+ class: z.ZodString;
2506
+ description: z.ZodOptional<z.ZodString>;
2507
+ displayName: z.ZodString;
2508
+ family: z.ZodString;
2509
+ id: z.ZodOptional<z.ZodString>;
2510
+ lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2511
+ origin: z.ZodEnum<{
2512
+ user: "user";
2513
+ group: "group";
2514
+ system: "system";
2515
+ }>;
2516
+ priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2517
+ scaleKind: z.ZodOptional<z.ZodEnum<{
2518
+ ordinal: "ordinal";
2519
+ nominal: "nominal";
2520
+ continuous: "continuous";
2521
+ }>>;
2522
+ status: z.ZodEnum<{
2523
+ active: "active";
2524
+ deprecated: "deprecated";
2525
+ proposed: "proposed";
2526
+ retired: "retired";
2527
+ }>;
2528
+ typeId: z.ZodString;
2529
+ valueDomain: z.ZodObject<{
2530
+ constraintSpec: z.ZodOptional<z.ZodString>;
2531
+ datatype: z.ZodEnum<{
2532
+ boolean: "boolean";
2533
+ real: "real";
2534
+ text: "text";
2535
+ integer: "integer";
2536
+ }>;
2537
+ kind: z.ZodEnum<{
2538
+ enumerated: "enumerated";
2539
+ described: "described";
2540
+ }>;
2541
+ permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
2542
+ }, z.core.$strip>;
2543
+ version: z.ZodInt;
2544
+ }, z.core.$strip>>>;
2545
+ }, z.core.$strip>;
2546
+ export type TaxonomyFamilyNode = z.infer<typeof zTaxonomyFamilyNode>;
2547
+ export declare const zTaxonomyNode: z.ZodObject<{
2548
+ class: z.ZodString;
2549
+ families: z.ZodNullable<z.ZodArray<z.ZodObject<{
2550
+ family: z.ZodString;
2551
+ types: z.ZodNullable<z.ZodArray<z.ZodObject<{
2552
+ allowedTargetKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2553
+ session: "session";
2554
+ annotation: "annotation";
2555
+ project: "project";
2556
+ entry: "entry";
2557
+ }>>>;
2558
+ class: z.ZodString;
2559
+ description: z.ZodOptional<z.ZodString>;
2560
+ displayName: z.ZodString;
2561
+ family: z.ZodString;
2562
+ id: z.ZodOptional<z.ZodString>;
2563
+ lowerIsBetter: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2564
+ origin: z.ZodEnum<{
2565
+ user: "user";
2566
+ group: "group";
2567
+ system: "system";
2568
+ }>;
2569
+ priorityOverride: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2570
+ scaleKind: z.ZodOptional<z.ZodEnum<{
2571
+ ordinal: "ordinal";
2572
+ nominal: "nominal";
2573
+ continuous: "continuous";
2574
+ }>>;
2575
+ status: z.ZodEnum<{
2576
+ active: "active";
2577
+ deprecated: "deprecated";
2578
+ proposed: "proposed";
2579
+ retired: "retired";
2580
+ }>;
2581
+ typeId: z.ZodString;
2582
+ valueDomain: z.ZodObject<{
2583
+ constraintSpec: z.ZodOptional<z.ZodString>;
2584
+ datatype: z.ZodEnum<{
2585
+ boolean: "boolean";
2586
+ real: "real";
2587
+ text: "text";
2588
+ integer: "integer";
2589
+ }>;
2590
+ kind: z.ZodEnum<{
2591
+ enumerated: "enumerated";
2592
+ described: "described";
2593
+ }>;
2594
+ permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
2595
+ }, z.core.$strip>;
2596
+ version: z.ZodInt;
2597
+ }, z.core.$strip>>>;
2598
+ }, z.core.$strip>>>;
2599
+ }, z.core.$strip>;
2600
+ export type TaxonomyNode = z.infer<typeof zTaxonomyNode>;
2601
+ /**
2602
+ * Visibility
2603
+ *
2604
+ * Access control level for a published transcript
2605
+ */
2606
+ export declare const zVisibility: z.ZodEnum<{
2607
+ private: "private";
2608
+ public: "public";
2609
+ group: "group";
2610
+ }>;
2611
+ export type Visibility = z.infer<typeof zVisibility>;
2612
+ export declare const zPullTranscriptInfo: z.ZodObject<{
2613
+ annotationCount: z.ZodInt;
2614
+ contentHash: z.ZodOptional<z.ZodString>;
2615
+ contractVersion: z.ZodOptional<z.ZodString>;
2616
+ harness: z.ZodOptional<z.ZodEnum<{
2617
+ cursor: "cursor";
2618
+ "claude-code": "claude-code";
2619
+ "gemini-cli": "gemini-cli";
2620
+ codex: "codex";
2621
+ opencode: "opencode";
2622
+ antigravity: "antigravity";
2623
+ }>>;
2624
+ license: z.ZodOptional<z.ZodEnum<{
2625
+ "CC0-1.0": "CC0-1.0";
2626
+ "CC-BY-4.0": "CC-BY-4.0";
2627
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2628
+ }>>;
2629
+ localId: z.ZodOptional<z.ZodString>;
2630
+ ownerUserId: z.ZodString;
2631
+ ownerUsername: z.ZodString;
2632
+ projectName: z.ZodOptional<z.ZodString>;
2633
+ publishedAt: z.ZodCoercedBigInt<unknown>;
2634
+ title: z.ZodOptional<z.ZodString>;
2635
+ transcriptId: z.ZodUUID;
2636
+ updatedAt: z.ZodCoercedBigInt<unknown>;
2637
+ visibility: z.ZodEnum<{
2638
+ private: "private";
2639
+ public: "public";
2640
+ group: "group";
2641
+ }>;
2642
+ }, z.core.$strip>;
2643
+ export type PullTranscriptInfo = z.infer<typeof zPullTranscriptInfo>;
2644
+ export declare const zPullListResponse: z.ZodObject<{
2645
+ limit: z.ZodInt;
2646
+ page: z.ZodInt;
2647
+ total: z.ZodInt;
2648
+ transcripts: z.ZodNullable<z.ZodArray<z.ZodObject<{
2649
+ annotationCount: z.ZodInt;
2650
+ contentHash: z.ZodOptional<z.ZodString>;
2651
+ contractVersion: z.ZodOptional<z.ZodString>;
2652
+ harness: z.ZodOptional<z.ZodEnum<{
2653
+ cursor: "cursor";
2654
+ "claude-code": "claude-code";
2655
+ "gemini-cli": "gemini-cli";
2656
+ codex: "codex";
2657
+ opencode: "opencode";
2658
+ antigravity: "antigravity";
2659
+ }>>;
2660
+ license: z.ZodOptional<z.ZodEnum<{
2661
+ "CC0-1.0": "CC0-1.0";
2662
+ "CC-BY-4.0": "CC-BY-4.0";
2663
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2664
+ }>>;
2665
+ localId: z.ZodOptional<z.ZodString>;
2666
+ ownerUserId: z.ZodString;
2667
+ ownerUsername: z.ZodString;
2668
+ projectName: z.ZodOptional<z.ZodString>;
2669
+ publishedAt: z.ZodCoercedBigInt<unknown>;
2670
+ title: z.ZodOptional<z.ZodString>;
2671
+ transcriptId: z.ZodUUID;
2672
+ updatedAt: z.ZodCoercedBigInt<unknown>;
2673
+ visibility: z.ZodEnum<{
2674
+ private: "private";
2675
+ public: "public";
2676
+ group: "group";
2677
+ }>;
2678
+ }, z.core.$strip>>>;
2679
+ }, z.core.$strip>;
2680
+ export type PullListResponse = z.infer<typeof zPullListResponse>;
2681
+ export declare const zWalkthroughStep: z.ZodObject<{
2682
+ excerpt: z.ZodString;
2683
+ file: z.ZodString;
2684
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2685
+ }, z.core.$strip>;
2686
+ export type WalkthroughStep = z.infer<typeof zWalkthroughStep>;
2687
+ export declare const zWalkthroughTrail: z.ZodObject<{
2688
+ date: z.ZodString;
2689
+ isCoherent: z.ZodBoolean;
2690
+ sessionId: z.ZodString;
2691
+ steps: z.ZodNullable<z.ZodArray<z.ZodObject<{
2692
+ excerpt: z.ZodString;
2693
+ file: z.ZodString;
2694
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2695
+ }, z.core.$strip>>>;
2696
+ title: z.ZodString;
2697
+ turnCount: z.ZodInt;
2698
+ }, z.core.$strip>;
2699
+ export type WalkthroughTrail = z.infer<typeof zWalkthroughTrail>;
2700
+ export declare const zFamiliarityPayload: z.ZodObject<{
2701
+ familiarityPct: z.ZodNumber;
2702
+ files: z.ZodNullable<z.ZodArray<z.ZodObject<{
2703
+ daysSince: z.ZodNullable<z.ZodInt>;
2704
+ decayLevel: z.ZodEnum<{
2705
+ fresh: "fresh";
2706
+ fading: "fading";
2707
+ stale: "stale";
2708
+ unexplored: "unexplored";
2709
+ }>;
2710
+ depth: z.ZodInt;
2711
+ humanTurns: z.ZodInt;
2712
+ isSourceFile: z.ZodBoolean;
2713
+ lastEngagedAt: z.ZodNullable<z.ZodString>;
2714
+ path: z.ZodString;
2715
+ sessionCount: z.ZodInt;
2716
+ totalTurns: z.ZodInt;
2717
+ }, z.core.$strip>>>;
2718
+ freshnessDays: z.ZodNullable<z.ZodInt>;
2719
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2720
+ suggestions: z.ZodNullable<z.ZodArray<z.ZodObject<{
2721
+ daysSince: z.ZodInt;
2722
+ lastEngaged: z.ZodString;
2723
+ path: z.ZodString;
2724
+ suggestedPrompt: z.ZodString;
2725
+ }, z.core.$strip>>>;
2726
+ trails: z.ZodNullable<z.ZodArray<z.ZodObject<{
2727
+ date: z.ZodString;
2728
+ isCoherent: z.ZodBoolean;
2729
+ sessionId: z.ZodString;
2730
+ steps: z.ZodNullable<z.ZodArray<z.ZodObject<{
2731
+ excerpt: z.ZodString;
2732
+ file: z.ZodString;
2733
+ line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2734
+ }, z.core.$strip>>>;
2735
+ title: z.ZodString;
2736
+ turnCount: z.ZodInt;
2737
+ }, z.core.$strip>>>;
2738
+ unexploredCount: z.ZodInt;
2739
+ }, z.core.$strip>;
2740
+ export type FamiliarityPayload = z.infer<typeof zFamiliarityPayload>;