@peasant-labs/schema 0.1.0-rc11 → 0.1.0-rc13

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.
@@ -160,6 +160,50 @@ export type AssociationEvidenceObservation = z.infer<typeof zAssociationEvidence
160
160
  */
161
161
  export declare const zAssociationID: z.ZodString;
162
162
  export type AssociationID = z.infer<typeof zAssociationID>;
163
+ export declare const zAuthoritativeCommitInfo: z.ZodObject<{
164
+ authorEmail: z.ZodString;
165
+ authorName: z.ZodString;
166
+ authorTime: z.ZodCoercedBigInt<unknown>;
167
+ commitTime: z.ZodCoercedBigInt<unknown>;
168
+ hash: z.ZodString;
169
+ message: z.ZodString;
170
+ }, z.core.$strict>;
171
+ export type AuthoritativeCommitInfo = z.infer<typeof zAuthoritativeCommitInfo>;
172
+ export declare const zAuthoritativeDiagnosticEntry: z.ZodObject<{
173
+ errorType: z.ZodString;
174
+ location: z.ZodString;
175
+ message: z.ZodString;
176
+ remediation: z.ZodString;
177
+ }, z.core.$strict>;
178
+ export type AuthoritativeDiagnosticEntry = z.infer<typeof zAuthoritativeDiagnosticEntry>;
179
+ export declare const zAuthoritativeDiagnosticsInfo: z.ZodObject<{
180
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
181
+ warnings: z.ZodArray<z.ZodObject<{
182
+ errorType: z.ZodString;
183
+ location: z.ZodString;
184
+ message: z.ZodString;
185
+ remediation: z.ZodString;
186
+ }, z.core.$strict>>;
187
+ }, z.core.$strict>;
188
+ export type AuthoritativeDiagnosticsInfo = z.infer<typeof zAuthoritativeDiagnosticsInfo>;
189
+ export declare const zAuthoritativeSessionStats: z.ZodObject<{
190
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
191
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
192
+ durationMs: z.ZodCoercedBigInt<unknown>;
193
+ subagentCount: z.ZodInt;
194
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
195
+ tokensIn: z.ZodInt;
196
+ tokensOut: z.ZodInt;
197
+ toolCallCount: z.ZodInt;
198
+ turnCount: z.ZodInt;
199
+ }, z.core.$strict>;
200
+ export type AuthoritativeSessionStats = z.infer<typeof zAuthoritativeSessionStats>;
201
+ export declare const zAuthoritativeTimestampInfo: z.ZodObject<{
202
+ end: z.ZodCoercedBigInt<unknown>;
203
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
204
+ start: z.ZodCoercedBigInt<unknown>;
205
+ }, z.core.$strict>;
206
+ export type AuthoritativeTimestampInfo = z.infer<typeof zAuthoritativeTimestampInfo>;
163
207
  export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
164
208
  error: z.ZodString;
165
209
  failingIndex: z.ZodInt;
@@ -208,6 +252,21 @@ export declare const zCLILoginQuery: z.ZodObject<{
208
252
  state: z.ZodString;
209
253
  }, z.core.$strip>;
210
254
  export type CLILoginQuery = z.infer<typeof zCLILoginQuery>;
255
+ export declare const zCanonicalPublishGitContext: z.ZodObject<{
256
+ branch: z.ZodNullable<z.ZodString>;
257
+ commits: z.ZodArray<z.ZodObject<{
258
+ authorEmail: z.ZodString;
259
+ authorName: z.ZodString;
260
+ authorTime: z.ZodCoercedBigInt<unknown>;
261
+ commitTime: z.ZodCoercedBigInt<unknown>;
262
+ hash: z.ZodString;
263
+ message: z.ZodString;
264
+ }, z.core.$strict>>;
265
+ remote: z.ZodNullable<z.ZodString>;
266
+ tracking: z.ZodNullable<z.ZodString>;
267
+ worktree: z.ZodNullable<z.ZodString>;
268
+ }, z.core.$strict>;
269
+ export type CanonicalPublishGitContext = z.infer<typeof zCanonicalPublishGitContext>;
211
270
  /**
212
271
  * Change Binding
213
272
  *
@@ -710,6 +769,21 @@ export type MockConfigResponse = z.infer<typeof zMockConfigResponse>;
710
769
  */
711
770
  export declare const zModelID: z.ZodString;
712
771
  export type ModelID = z.infer<typeof zModelID>;
772
+ export declare const zAuthoritativeModelInfo: z.ZodObject<{
773
+ harness: z.ZodEnum<{
774
+ strike: "strike";
775
+ cursor: "cursor";
776
+ "claude-code": "claude-code";
777
+ "gemini-cli": "gemini-cli";
778
+ codex: "codex";
779
+ opencode: "opencode";
780
+ antigravity: "antigravity";
781
+ }>;
782
+ hostSlug: z.ZodOptional<z.ZodString>;
783
+ model: z.ZodString;
784
+ version: z.ZodOptional<z.ZodString>;
785
+ }, z.core.$strict>;
786
+ export type AuthoritativeModelInfo = z.infer<typeof zAuthoritativeModelInfo>;
713
787
  export declare const zModelInfo: z.ZodObject<{
714
788
  harness: z.ZodEnum<{
715
789
  strike: "strike";
@@ -725,6 +799,15 @@ export declare const zModelInfo: z.ZodObject<{
725
799
  version: z.ZodOptional<z.ZodString>;
726
800
  }, z.core.$strip>;
727
801
  export type ModelInfo = z.infer<typeof zModelInfo>;
802
+ /**
803
+ * Omitted preserves, null requests clear, and a canonical license replaces
804
+ */
805
+ export declare const zOwnerUpdateLicenseIntent: z.ZodNullable<z.ZodEnum<{
806
+ "CC0-1.0": "CC0-1.0";
807
+ "CC-BY-4.0": "CC-BY-4.0";
808
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
809
+ }>>;
810
+ export type OwnerUpdateLicenseIntent = z.infer<typeof zOwnerUpdateLicenseIntent>;
728
811
  /**
729
812
  * Project Hash
730
813
  *
@@ -732,6 +815,12 @@ export type ModelInfo = z.infer<typeof zModelInfo>;
732
815
  */
733
816
  export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
734
817
  export type ProjectHash = z.infer<typeof zProjectHash>;
818
+ export declare const zAuthoritativeProjectContext: z.ZodObject<{
819
+ filePath: z.ZodOptional<z.ZodString>;
820
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
821
+ name: z.ZodString;
822
+ }, z.core.$strict>;
823
+ export type AuthoritativeProjectContext = z.infer<typeof zAuthoritativeProjectContext>;
735
824
  export declare const zProjectContext: z.ZodObject<{
736
825
  filePath: z.ZodOptional<z.ZodString>;
737
826
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -772,6 +861,37 @@ export declare const zProvenance: z.ZodObject<{
772
861
  version: z.ZodOptional<z.ZodString>;
773
862
  }, z.core.$strip>;
774
863
  export type Provenance = z.infer<typeof zProvenance>;
864
+ /**
865
+ * Publish Operation Kind
866
+ *
867
+ * Mutation semantic for one publish operation arm
868
+ */
869
+ export declare const zPublishOperationKind: z.ZodEnum<{
870
+ replace: "replace";
871
+ append: "append";
872
+ preserve: "preserve";
873
+ }>;
874
+ export type PublishOperationKind = z.infer<typeof zPublishOperationKind>;
875
+ export declare const zPublishLicenseOperation: z.ZodObject<{
876
+ kind: z.ZodEnum<{
877
+ replace: "replace";
878
+ append: "append";
879
+ preserve: "preserve";
880
+ }>;
881
+ license: z.ZodNullable<z.ZodEnum<{
882
+ "CC0-1.0": "CC0-1.0";
883
+ "CC-BY-4.0": "CC-BY-4.0";
884
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
885
+ }>>;
886
+ }, z.core.$strict>;
887
+ export type PublishLicenseOperation = z.infer<typeof zPublishLicenseOperation>;
888
+ /**
889
+ * Publish Request Fingerprint
890
+ *
891
+ * SHA3-256 digest of the canonical domain-separated publish operation
892
+ */
893
+ export declare const zPublishRequestFingerprint: z.ZodString;
894
+ export type PublishRequestFingerprint = z.infer<typeof zPublishRequestFingerprint>;
775
895
  export declare const zPublishResponse: z.ZodObject<{
776
896
  blobKey: z.ZodString;
777
897
  blobSizeBytes: z.ZodCoercedBigInt<unknown>;
@@ -784,13 +904,32 @@ export type PublishResponse = z.infer<typeof zPublishResponse>;
784
904
  export declare const zPublishedAssociation: z.ZodObject<{
785
905
  id: z.ZodString;
786
906
  observedCommitHash: z.ZodString;
787
- }, z.core.$strip>;
907
+ }, z.core.$strict>;
788
908
  export type PublishedAssociation = z.infer<typeof zPublishedAssociation>;
909
+ export declare const zAuthoritativeGitContext: z.ZodObject<{
910
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
911
+ id: z.ZodString;
912
+ observedCommitHash: z.ZodString;
913
+ }, z.core.$strict>>>;
914
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ authorEmail: z.ZodString;
917
+ authorName: z.ZodString;
918
+ authorTime: z.ZodCoercedBigInt<unknown>;
919
+ commitTime: z.ZodCoercedBigInt<unknown>;
920
+ hash: z.ZodString;
921
+ message: z.ZodString;
922
+ }, z.core.$strict>>>;
923
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ }, z.core.$strict>;
927
+ export type AuthoritativeGitContext = z.infer<typeof zAuthoritativeGitContext>;
789
928
  export declare const zGitContext: z.ZodObject<{
790
929
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
791
930
  id: z.ZodString;
792
931
  observedCommitHash: z.ZodString;
793
- }, z.core.$strip>>>;
932
+ }, z.core.$strict>>>;
794
933
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
934
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
796
935
  authorEmail: z.ZodString;
@@ -805,6 +944,18 @@ export declare const zGitContext: z.ZodObject<{
805
944
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
945
  }, z.core.$strip>;
807
946
  export type GitContext = z.infer<typeof zGitContext>;
947
+ export declare const zPublishAssociationOperation: z.ZodObject<{
948
+ associations: z.ZodArray<z.ZodObject<{
949
+ id: z.ZodString;
950
+ observedCommitHash: z.ZodString;
951
+ }, z.core.$strict>>;
952
+ kind: z.ZodEnum<{
953
+ replace: "replace";
954
+ append: "append";
955
+ preserve: "preserve";
956
+ }>;
957
+ }, z.core.$strict>;
958
+ export type PublishAssociationOperation = z.infer<typeof zPublishAssociationOperation>;
808
959
  /**
809
960
  * Read Attribution State
810
961
  *
@@ -1111,6 +1262,17 @@ export type ServerMessage = z.infer<typeof zServerMessage>;
1111
1262
  */
1112
1263
  export declare const zSessionID: z.ZodString;
1113
1264
  export type SessionID = z.infer<typeof zSessionID>;
1265
+ export declare const zAuthoritativeSessionIdentity: z.ZodObject<{
1266
+ parentSessionId: z.ZodOptional<z.ZodString>;
1267
+ schemaVersion: z.ZodInt;
1268
+ sessionId: z.ZodString;
1269
+ }, z.core.$strict>;
1270
+ export type AuthoritativeSessionIdentity = z.infer<typeof zAuthoritativeSessionIdentity>;
1271
+ export declare const zAuthoritativeSubagentRef: z.ZodObject<{
1272
+ parentUuid: z.ZodString;
1273
+ sessionId: z.ZodString;
1274
+ }, z.core.$strict>;
1275
+ export type AuthoritativeSubagentRef = z.infer<typeof zAuthoritativeSubagentRef>;
1114
1276
  export declare const zInsightEvidence: z.ZodObject<{
1115
1277
  commitHash: z.ZodOptional<z.ZodString>;
1116
1278
  entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1282,6 +1444,55 @@ export declare const zSessionOutcome: z.ZodEnum<{
1282
1444
  resolved: "resolved";
1283
1445
  }>;
1284
1446
  export type SessionOutcome = z.infer<typeof zSessionOutcome>;
1447
+ export declare const zAuthoritativeQualityMetrics: z.ZodObject<{
1448
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1449
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1450
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1451
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1452
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1453
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1455
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1456
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1457
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1458
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1459
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1460
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1461
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1462
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1463
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1464
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1465
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1466
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1467
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1468
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1469
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1470
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1471
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1472
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1473
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1474
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1475
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1476
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1477
+ failed: "failed";
1478
+ partial: "partial";
1479
+ resolved: "resolved";
1480
+ }>>>;
1481
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1482
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1483
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1484
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1486
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1487
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1488
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1489
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1491
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1492
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1493
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1494
+ }, z.core.$strict>;
1495
+ export type AuthoritativeQualityMetrics = z.infer<typeof zAuthoritativeQualityMetrics>;
1285
1496
  export declare const zQualityMetrics: z.ZodObject<{
1286
1497
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1287
1498
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1425,6 +1636,14 @@ export declare const zSourceFormat: z.ZodEnum<{
1425
1636
  jsonl: "jsonl";
1426
1637
  }>;
1427
1638
  export type SourceFormat = z.infer<typeof zSourceFormat>;
1639
+ export declare const zAuthoritativeSourceInfo: z.ZodObject<{
1640
+ filePath: z.ZodOptional<z.ZodString>;
1641
+ format: z.ZodEnum<{
1642
+ json: "json";
1643
+ jsonl: "jsonl";
1644
+ }>;
1645
+ }, z.core.$strict>;
1646
+ export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
1428
1647
  export declare const zSourceInfo: z.ZodObject<{
1429
1648
  filePath: z.ZodOptional<z.ZodString>;
1430
1649
  format: z.ZodEnum<{
@@ -2202,7 +2421,7 @@ export declare const zToolCallKind: z.ZodEnum<{
2202
2421
  think: "think";
2203
2422
  }>;
2204
2423
  export type ToolCallKind = z.infer<typeof zToolCallKind>;
2205
- export declare const zSessionEntry: z.ZodObject<{
2424
+ export declare const zAuthoritativeSessionEntry: z.ZodObject<{
2206
2425
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2207
2426
  depth: z.ZodInt;
2208
2427
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2265,19 +2484,19 @@ export declare const zSessionEntry: z.ZodObject<{
2265
2484
  }>>>;
2266
2485
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2267
2486
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2268
- }, z.core.$strip>;
2269
- export type SessionEntry = z.infer<typeof zSessionEntry>;
2270
- export declare const zPublishRequest: z.ZodObject<{
2487
+ }, z.core.$strict>;
2488
+ export type AuthoritativeSessionEntry = z.infer<typeof zAuthoritativeSessionEntry>;
2489
+ export declare const zCanonicalPublishReplacement: z.ZodObject<{
2271
2490
  diagnostics: z.ZodObject<{
2272
2491
  partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2273
- warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2492
+ warnings: z.ZodArray<z.ZodObject<{
2274
2493
  errorType: z.ZodString;
2275
2494
  location: z.ZodString;
2276
2495
  message: z.ZodString;
2277
2496
  remediation: z.ZodString;
2278
- }, z.core.$strip>>>;
2279
- }, z.core.$strip>;
2280
- entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2497
+ }, z.core.$strict>>;
2498
+ }, z.core.$strict>;
2499
+ entries: z.ZodArray<z.ZodObject<{
2281
2500
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2282
2501
  depth: z.ZodInt;
2283
2502
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2340,35 +2559,26 @@ export declare const zPublishRequest: z.ZodObject<{
2340
2559
  }>>>;
2341
2560
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2342
2561
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2343
- }, z.core.$strip>>>;
2562
+ }, z.core.$strict>>;
2344
2563
  git: z.ZodObject<{
2345
- associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2346
- id: z.ZodString;
2347
- observedCommitHash: z.ZodString;
2348
- }, z.core.$strip>>>;
2349
- branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2350
- commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2564
+ branch: z.ZodNullable<z.ZodString>;
2565
+ commits: z.ZodArray<z.ZodObject<{
2351
2566
  authorEmail: z.ZodString;
2352
2567
  authorName: z.ZodString;
2353
2568
  authorTime: z.ZodCoercedBigInt<unknown>;
2354
2569
  commitTime: z.ZodCoercedBigInt<unknown>;
2355
2570
  hash: z.ZodString;
2356
2571
  message: z.ZodString;
2357
- }, z.core.$strip>>>;
2358
- remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
- tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2360
- worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2361
- }, z.core.$strip>;
2572
+ }, z.core.$strict>>;
2573
+ remote: z.ZodNullable<z.ZodString>;
2574
+ tracking: z.ZodNullable<z.ZodString>;
2575
+ worktree: z.ZodNullable<z.ZodString>;
2576
+ }, z.core.$strict>;
2362
2577
  identity: z.ZodObject<{
2363
- parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2578
+ parentSessionId: z.ZodOptional<z.ZodString>;
2364
2579
  schemaVersion: z.ZodInt;
2365
2580
  sessionId: z.ZodString;
2366
- }, z.core.$strip>;
2367
- license: z.ZodOptional<z.ZodEnum<{
2368
- "CC0-1.0": "CC0-1.0";
2369
- "CC-BY-4.0": "CC-BY-4.0";
2370
- "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2371
- }>>;
2581
+ }, z.core.$strict>;
2372
2582
  model: z.ZodObject<{
2373
2583
  harness: z.ZodEnum<{
2374
2584
  strike: "strike";
@@ -2382,13 +2592,13 @@ export declare const zPublishRequest: z.ZodObject<{
2382
2592
  hostSlug: z.ZodOptional<z.ZodString>;
2383
2593
  model: z.ZodString;
2384
2594
  version: z.ZodOptional<z.ZodString>;
2385
- }, z.core.$strip>;
2595
+ }, z.core.$strict>;
2386
2596
  project: z.ZodObject<{
2387
2597
  filePath: z.ZodOptional<z.ZodString>;
2388
2598
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2389
2599
  name: z.ZodString;
2390
- }, z.core.$strip>;
2391
- quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2600
+ }, z.core.$strict>;
2601
+ quality: z.ZodNullable<z.ZodObject<{
2392
2602
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2393
2603
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2394
2604
  costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2435,14 +2645,14 @@ export declare const zPublishRequest: z.ZodObject<{
2435
2645
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2436
2646
  turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2437
2647
  withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2438
- }, z.core.$strip>>>;
2648
+ }, z.core.$strict>>;
2439
2649
  source: z.ZodObject<{
2440
2650
  filePath: z.ZodOptional<z.ZodString>;
2441
2651
  format: z.ZodEnum<{
2442
2652
  json: "json";
2443
2653
  jsonl: "jsonl";
2444
2654
  }>;
2445
- }, z.core.$strip>;
2655
+ }, z.core.$strict>;
2446
2656
  stats: z.ZodObject<{
2447
2657
  cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2448
2658
  cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -2453,77 +2663,562 @@ export declare const zPublishRequest: z.ZodObject<{
2453
2663
  tokensOut: z.ZodInt;
2454
2664
  toolCallCount: z.ZodInt;
2455
2665
  turnCount: z.ZodInt;
2456
- }, z.core.$strip>;
2457
- subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2666
+ }, z.core.$strict>;
2667
+ subagents: z.ZodArray<z.ZodObject<{
2458
2668
  parentUuid: z.ZodString;
2459
2669
  sessionId: z.ZodString;
2460
- }, z.core.$strip>>>;
2670
+ }, z.core.$strict>>;
2461
2671
  timestamp: z.ZodObject<{
2462
2672
  end: z.ZodCoercedBigInt<unknown>;
2463
2673
  ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2464
2674
  start: z.ZodCoercedBigInt<unknown>;
2465
- }, z.core.$strip>;
2466
- }, z.core.$strip>;
2467
- export type PublishRequest = z.infer<typeof zPublishRequest>;
2468
- export declare const zToolCallDetail: z.ZodObject<{
2469
- arguments: z.ZodString;
2470
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2471
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2472
- filePath: z.ZodOptional<z.ZodString>;
2473
- id: z.ZodString;
2474
- isError: z.ZodOptional<z.ZodBoolean>;
2475
- name: z.ZodString;
2476
- result: z.ZodString;
2477
- toolKind: z.ZodOptional<z.ZodEnum<{
2478
- search: "search";
2479
- other: "other";
2480
- move: "move";
2481
- fetch: "fetch";
2482
- delete: "delete";
2483
- read: "read";
2484
- edit: "edit";
2485
- execute: "execute";
2486
- think: "think";
2487
- }>>;
2488
- }, z.core.$strip>;
2489
- export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2490
- /**
2491
- * Transcript ID
2492
- *
2493
- * Village-side transcript identifier (canonical lowercase-hex UUID)
2494
- */
2495
- export declare const zTranscriptID: z.ZodUUID;
2496
- export type TranscriptID = z.infer<typeof zTranscriptID>;
2497
- export declare const zPullSkipGateItem: z.ZodObject<{
2498
- annotationHashes: z.ZodArray<z.ZodString>;
2499
- contentHash: z.ZodString;
2500
- transcriptId: z.ZodUUID;
2501
- }, z.core.$strip>;
2502
- export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
2503
- export declare const zPullSkipGateRequest: z.ZodObject<{
2504
- items: z.ZodArray<z.ZodObject<{
2505
- annotationHashes: z.ZodArray<z.ZodString>;
2506
- contentHash: z.ZodString;
2507
- transcriptId: z.ZodUUID;
2508
- }, z.core.$strip>>;
2509
- }, z.core.$strip>;
2510
- export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
2511
- export declare const zPullSkipGateResult: z.ZodObject<{
2512
- annotationsCurrent: z.ZodBoolean;
2513
- contentCurrent: z.ZodBoolean;
2514
- transcriptId: z.ZodUUID;
2515
- }, z.core.$strip>;
2516
- export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
2517
- export declare const zPullSkipGateResponse: z.ZodObject<{
2518
- results: z.ZodArray<z.ZodObject<{
2519
- annotationsCurrent: z.ZodBoolean;
2520
- contentCurrent: z.ZodBoolean;
2521
- transcriptId: z.ZodUUID;
2522
- }, z.core.$strip>>;
2523
- }, z.core.$strip>;
2524
- export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
2525
- /**
2526
- * TranscriptUpdateLicense
2675
+ }, z.core.$strict>;
2676
+ }, z.core.$strict>;
2677
+ export type CanonicalPublishReplacement = z.infer<typeof zCanonicalPublishReplacement>;
2678
+ export declare const zSessionEntry: z.ZodObject<{
2679
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2680
+ depth: z.ZodInt;
2681
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2682
+ entryIndex: z.ZodInt;
2683
+ entryType: z.ZodEnum<{
2684
+ error: "error";
2685
+ text: "text";
2686
+ tool_use: "tool_use";
2687
+ tool_result: "tool_result";
2688
+ thinking: "thinking";
2689
+ system: "system";
2690
+ result: "result";
2691
+ }>;
2692
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2693
+ harness: z.ZodEnum<{
2694
+ strike: "strike";
2695
+ cursor: "cursor";
2696
+ "claude-code": "claude-code";
2697
+ "gemini-cli": "gemini-cli";
2698
+ codex: "codex";
2699
+ opencode: "opencode";
2700
+ antigravity: "antigravity";
2701
+ }>;
2702
+ hasThinking: z.ZodBoolean;
2703
+ hasToolUse: z.ZodBoolean;
2704
+ isError: z.ZodBoolean;
2705
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2706
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2707
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2708
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2709
+ role: z.ZodEnum<{
2710
+ user: "user";
2711
+ system: "system";
2712
+ assistant: "assistant";
2713
+ tool: "tool";
2714
+ }>;
2715
+ sessionId: z.ZodString;
2716
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2717
+ end_turn: "end_turn";
2718
+ cancelled: "cancelled";
2719
+ max_tokens: "max_tokens";
2720
+ max_turn_requests: "max_turn_requests";
2721
+ refusal: "refusal";
2722
+ }>>>;
2723
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2724
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2725
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2726
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2727
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2728
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2729
+ search: "search";
2730
+ other: "other";
2731
+ move: "move";
2732
+ fetch: "fetch";
2733
+ delete: "delete";
2734
+ read: "read";
2735
+ edit: "edit";
2736
+ execute: "execute";
2737
+ think: "think";
2738
+ }>>>;
2739
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2740
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2741
+ }, z.core.$strip>;
2742
+ export type SessionEntry = z.infer<typeof zSessionEntry>;
2743
+ export declare const zPublishRequest: z.ZodObject<{
2744
+ diagnostics: z.ZodObject<{
2745
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2746
+ warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2747
+ errorType: z.ZodString;
2748
+ location: z.ZodString;
2749
+ message: z.ZodString;
2750
+ remediation: z.ZodString;
2751
+ }, z.core.$strip>>>;
2752
+ }, z.core.$strip>;
2753
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2754
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2755
+ depth: z.ZodInt;
2756
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
+ entryIndex: z.ZodInt;
2758
+ entryType: z.ZodEnum<{
2759
+ error: "error";
2760
+ text: "text";
2761
+ tool_use: "tool_use";
2762
+ tool_result: "tool_result";
2763
+ thinking: "thinking";
2764
+ system: "system";
2765
+ result: "result";
2766
+ }>;
2767
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2768
+ harness: z.ZodEnum<{
2769
+ strike: "strike";
2770
+ cursor: "cursor";
2771
+ "claude-code": "claude-code";
2772
+ "gemini-cli": "gemini-cli";
2773
+ codex: "codex";
2774
+ opencode: "opencode";
2775
+ antigravity: "antigravity";
2776
+ }>;
2777
+ hasThinking: z.ZodBoolean;
2778
+ hasToolUse: z.ZodBoolean;
2779
+ isError: z.ZodBoolean;
2780
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2781
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2782
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2783
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2784
+ role: z.ZodEnum<{
2785
+ user: "user";
2786
+ system: "system";
2787
+ assistant: "assistant";
2788
+ tool: "tool";
2789
+ }>;
2790
+ sessionId: z.ZodString;
2791
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2792
+ end_turn: "end_turn";
2793
+ cancelled: "cancelled";
2794
+ max_tokens: "max_tokens";
2795
+ max_turn_requests: "max_turn_requests";
2796
+ refusal: "refusal";
2797
+ }>>>;
2798
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2799
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2800
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2801
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2802
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2803
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2804
+ search: "search";
2805
+ other: "other";
2806
+ move: "move";
2807
+ fetch: "fetch";
2808
+ delete: "delete";
2809
+ read: "read";
2810
+ edit: "edit";
2811
+ execute: "execute";
2812
+ think: "think";
2813
+ }>>>;
2814
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2815
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2816
+ }, z.core.$strip>>>;
2817
+ git: z.ZodObject<{
2818
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2819
+ id: z.ZodString;
2820
+ observedCommitHash: z.ZodString;
2821
+ }, z.core.$strict>>>;
2822
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2823
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2824
+ authorEmail: z.ZodString;
2825
+ authorName: z.ZodString;
2826
+ authorTime: z.ZodCoercedBigInt<unknown>;
2827
+ commitTime: z.ZodCoercedBigInt<unknown>;
2828
+ hash: z.ZodString;
2829
+ message: z.ZodString;
2830
+ }, z.core.$strip>>>;
2831
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2832
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2833
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2834
+ }, z.core.$strip>;
2835
+ identity: z.ZodObject<{
2836
+ parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2837
+ schemaVersion: z.ZodInt;
2838
+ sessionId: z.ZodString;
2839
+ }, z.core.$strip>;
2840
+ license: z.ZodOptional<z.ZodEnum<{
2841
+ "CC0-1.0": "CC0-1.0";
2842
+ "CC-BY-4.0": "CC-BY-4.0";
2843
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2844
+ }>>;
2845
+ model: z.ZodObject<{
2846
+ harness: z.ZodEnum<{
2847
+ strike: "strike";
2848
+ cursor: "cursor";
2849
+ "claude-code": "claude-code";
2850
+ "gemini-cli": "gemini-cli";
2851
+ codex: "codex";
2852
+ opencode: "opencode";
2853
+ antigravity: "antigravity";
2854
+ }>;
2855
+ hostSlug: z.ZodOptional<z.ZodString>;
2856
+ model: z.ZodString;
2857
+ version: z.ZodOptional<z.ZodString>;
2858
+ }, z.core.$strip>;
2859
+ project: z.ZodObject<{
2860
+ filePath: z.ZodOptional<z.ZodString>;
2861
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2862
+ name: z.ZodString;
2863
+ }, z.core.$strip>;
2864
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2865
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2866
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2867
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2868
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2869
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2870
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2871
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2872
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2873
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2874
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2875
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2876
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2877
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2878
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2879
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2880
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2881
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2882
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2883
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2884
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2885
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2886
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2887
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2888
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2889
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2890
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2891
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2892
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2893
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2894
+ failed: "failed";
2895
+ partial: "partial";
2896
+ resolved: "resolved";
2897
+ }>>>;
2898
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2899
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2900
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2901
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2902
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2903
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2904
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2905
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2906
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2907
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2908
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2909
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2910
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2911
+ }, z.core.$strip>>>;
2912
+ source: z.ZodObject<{
2913
+ filePath: z.ZodOptional<z.ZodString>;
2914
+ format: z.ZodEnum<{
2915
+ json: "json";
2916
+ jsonl: "jsonl";
2917
+ }>;
2918
+ }, z.core.$strip>;
2919
+ stats: z.ZodObject<{
2920
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2921
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2922
+ durationMs: z.ZodCoercedBigInt<unknown>;
2923
+ subagentCount: z.ZodInt;
2924
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2925
+ tokensIn: z.ZodInt;
2926
+ tokensOut: z.ZodInt;
2927
+ toolCallCount: z.ZodInt;
2928
+ turnCount: z.ZodInt;
2929
+ }, z.core.$strip>;
2930
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2931
+ parentUuid: z.ZodString;
2932
+ sessionId: z.ZodString;
2933
+ }, z.core.$strip>>>;
2934
+ timestamp: z.ZodObject<{
2935
+ end: z.ZodCoercedBigInt<unknown>;
2936
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2937
+ start: z.ZodCoercedBigInt<unknown>;
2938
+ }, z.core.$strip>;
2939
+ }, z.core.$strip>;
2940
+ export type PublishRequest = z.infer<typeof zPublishRequest>;
2941
+ export declare const zToolCallDetail: z.ZodObject<{
2942
+ arguments: z.ZodString;
2943
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2944
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2945
+ filePath: z.ZodOptional<z.ZodString>;
2946
+ id: z.ZodString;
2947
+ isError: z.ZodOptional<z.ZodBoolean>;
2948
+ name: z.ZodString;
2949
+ result: z.ZodString;
2950
+ toolKind: z.ZodOptional<z.ZodEnum<{
2951
+ search: "search";
2952
+ other: "other";
2953
+ move: "move";
2954
+ fetch: "fetch";
2955
+ delete: "delete";
2956
+ read: "read";
2957
+ edit: "edit";
2958
+ execute: "execute";
2959
+ think: "think";
2960
+ }>>;
2961
+ }, z.core.$strip>;
2962
+ export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2963
+ /**
2964
+ * Transcript Content Hash
2965
+ *
2966
+ * SHA3-256 digest of the exact transcript file bytes
2967
+ */
2968
+ export declare const zTranscriptContentHash: z.ZodString;
2969
+ export type TranscriptContentHash = z.infer<typeof zTranscriptContentHash>;
2970
+ export declare const zCanonicalPublishOperation: z.ZodObject<{
2971
+ associations: z.ZodObject<{
2972
+ associations: z.ZodArray<z.ZodObject<{
2973
+ id: z.ZodString;
2974
+ observedCommitHash: z.ZodString;
2975
+ }, z.core.$strict>>;
2976
+ kind: z.ZodEnum<{
2977
+ replace: "replace";
2978
+ append: "append";
2979
+ preserve: "preserve";
2980
+ }>;
2981
+ }, z.core.$strict>;
2982
+ contentHash: z.ZodString;
2983
+ license: z.ZodObject<{
2984
+ kind: z.ZodEnum<{
2985
+ replace: "replace";
2986
+ append: "append";
2987
+ preserve: "preserve";
2988
+ }>;
2989
+ license: z.ZodNullable<z.ZodEnum<{
2990
+ "CC0-1.0": "CC0-1.0";
2991
+ "CC-BY-4.0": "CC-BY-4.0";
2992
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2993
+ }>>;
2994
+ }, z.core.$strict>;
2995
+ replacement: z.ZodObject<{
2996
+ diagnostics: z.ZodObject<{
2997
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2998
+ warnings: z.ZodArray<z.ZodObject<{
2999
+ errorType: z.ZodString;
3000
+ location: z.ZodString;
3001
+ message: z.ZodString;
3002
+ remediation: z.ZodString;
3003
+ }, z.core.$strict>>;
3004
+ }, z.core.$strict>;
3005
+ entries: z.ZodArray<z.ZodObject<{
3006
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3007
+ depth: z.ZodInt;
3008
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ entryIndex: z.ZodInt;
3010
+ entryType: z.ZodEnum<{
3011
+ error: "error";
3012
+ text: "text";
3013
+ tool_use: "tool_use";
3014
+ tool_result: "tool_result";
3015
+ thinking: "thinking";
3016
+ system: "system";
3017
+ result: "result";
3018
+ }>;
3019
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3020
+ harness: z.ZodEnum<{
3021
+ strike: "strike";
3022
+ cursor: "cursor";
3023
+ "claude-code": "claude-code";
3024
+ "gemini-cli": "gemini-cli";
3025
+ codex: "codex";
3026
+ opencode: "opencode";
3027
+ antigravity: "antigravity";
3028
+ }>;
3029
+ hasThinking: z.ZodBoolean;
3030
+ hasToolUse: z.ZodBoolean;
3031
+ isError: z.ZodBoolean;
3032
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3033
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3034
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3036
+ role: z.ZodEnum<{
3037
+ user: "user";
3038
+ system: "system";
3039
+ assistant: "assistant";
3040
+ tool: "tool";
3041
+ }>;
3042
+ sessionId: z.ZodString;
3043
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3044
+ end_turn: "end_turn";
3045
+ cancelled: "cancelled";
3046
+ max_tokens: "max_tokens";
3047
+ max_turn_requests: "max_turn_requests";
3048
+ refusal: "refusal";
3049
+ }>>>;
3050
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3051
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3052
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3053
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3054
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3055
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3056
+ search: "search";
3057
+ other: "other";
3058
+ move: "move";
3059
+ fetch: "fetch";
3060
+ delete: "delete";
3061
+ read: "read";
3062
+ edit: "edit";
3063
+ execute: "execute";
3064
+ think: "think";
3065
+ }>>>;
3066
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3067
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3068
+ }, z.core.$strict>>;
3069
+ git: z.ZodObject<{
3070
+ branch: z.ZodNullable<z.ZodString>;
3071
+ commits: z.ZodArray<z.ZodObject<{
3072
+ authorEmail: z.ZodString;
3073
+ authorName: z.ZodString;
3074
+ authorTime: z.ZodCoercedBigInt<unknown>;
3075
+ commitTime: z.ZodCoercedBigInt<unknown>;
3076
+ hash: z.ZodString;
3077
+ message: z.ZodString;
3078
+ }, z.core.$strict>>;
3079
+ remote: z.ZodNullable<z.ZodString>;
3080
+ tracking: z.ZodNullable<z.ZodString>;
3081
+ worktree: z.ZodNullable<z.ZodString>;
3082
+ }, z.core.$strict>;
3083
+ identity: z.ZodObject<{
3084
+ parentSessionId: z.ZodOptional<z.ZodString>;
3085
+ schemaVersion: z.ZodInt;
3086
+ sessionId: z.ZodString;
3087
+ }, z.core.$strict>;
3088
+ model: z.ZodObject<{
3089
+ harness: z.ZodEnum<{
3090
+ strike: "strike";
3091
+ cursor: "cursor";
3092
+ "claude-code": "claude-code";
3093
+ "gemini-cli": "gemini-cli";
3094
+ codex: "codex";
3095
+ opencode: "opencode";
3096
+ antigravity: "antigravity";
3097
+ }>;
3098
+ hostSlug: z.ZodOptional<z.ZodString>;
3099
+ model: z.ZodString;
3100
+ version: z.ZodOptional<z.ZodString>;
3101
+ }, z.core.$strict>;
3102
+ project: z.ZodObject<{
3103
+ filePath: z.ZodOptional<z.ZodString>;
3104
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3105
+ name: z.ZodString;
3106
+ }, z.core.$strict>;
3107
+ quality: z.ZodNullable<z.ZodObject<{
3108
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3109
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3110
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3111
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3112
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3113
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3114
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3115
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3116
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3117
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3118
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3119
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3120
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3121
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3122
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3123
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3124
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3125
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3126
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3127
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3128
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3129
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3130
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3131
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3132
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3133
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3134
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3135
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3136
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3137
+ failed: "failed";
3138
+ partial: "partial";
3139
+ resolved: "resolved";
3140
+ }>>>;
3141
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3142
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3143
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3144
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3145
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3146
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3147
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3148
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3149
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3150
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3151
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3152
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3153
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3154
+ }, z.core.$strict>>;
3155
+ source: z.ZodObject<{
3156
+ filePath: z.ZodOptional<z.ZodString>;
3157
+ format: z.ZodEnum<{
3158
+ json: "json";
3159
+ jsonl: "jsonl";
3160
+ }>;
3161
+ }, z.core.$strict>;
3162
+ stats: z.ZodObject<{
3163
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3164
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3165
+ durationMs: z.ZodCoercedBigInt<unknown>;
3166
+ subagentCount: z.ZodInt;
3167
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3168
+ tokensIn: z.ZodInt;
3169
+ tokensOut: z.ZodInt;
3170
+ toolCallCount: z.ZodInt;
3171
+ turnCount: z.ZodInt;
3172
+ }, z.core.$strict>;
3173
+ subagents: z.ZodArray<z.ZodObject<{
3174
+ parentUuid: z.ZodString;
3175
+ sessionId: z.ZodString;
3176
+ }, z.core.$strict>>;
3177
+ timestamp: z.ZodObject<{
3178
+ end: z.ZodCoercedBigInt<unknown>;
3179
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3180
+ start: z.ZodCoercedBigInt<unknown>;
3181
+ }, z.core.$strict>;
3182
+ }, z.core.$strict>;
3183
+ }, z.core.$strict>;
3184
+ export type CanonicalPublishOperation = z.infer<typeof zCanonicalPublishOperation>;
3185
+ /**
3186
+ * Transcript ID
3187
+ *
3188
+ * Village-side transcript identifier (canonical lowercase-hex UUID)
3189
+ */
3190
+ export declare const zTranscriptID: z.ZodUUID;
3191
+ export type TranscriptID = z.infer<typeof zTranscriptID>;
3192
+ export declare const zPullSkipGateItem: z.ZodObject<{
3193
+ annotationHashes: z.ZodArray<z.ZodString>;
3194
+ contentHash: z.ZodString;
3195
+ transcriptId: z.ZodUUID;
3196
+ }, z.core.$strip>;
3197
+ export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
3198
+ export declare const zPullSkipGateRequest: z.ZodObject<{
3199
+ items: z.ZodArray<z.ZodObject<{
3200
+ annotationHashes: z.ZodArray<z.ZodString>;
3201
+ contentHash: z.ZodString;
3202
+ transcriptId: z.ZodUUID;
3203
+ }, z.core.$strip>>;
3204
+ }, z.core.$strip>;
3205
+ export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
3206
+ export declare const zPullSkipGateResult: z.ZodObject<{
3207
+ annotationsCurrent: z.ZodBoolean;
3208
+ contentCurrent: z.ZodBoolean;
3209
+ transcriptId: z.ZodUUID;
3210
+ }, z.core.$strip>;
3211
+ export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
3212
+ export declare const zPullSkipGateResponse: z.ZodObject<{
3213
+ results: z.ZodArray<z.ZodObject<{
3214
+ annotationsCurrent: z.ZodBoolean;
3215
+ contentCurrent: z.ZodBoolean;
3216
+ transcriptId: z.ZodUUID;
3217
+ }, z.core.$strip>>;
3218
+ }, z.core.$strip>;
3219
+ export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
3220
+ /**
3221
+ * TranscriptUpdateLicense
2527
3222
  *
2528
3223
  * License value for the owner transcript update operation: a canonical menu license, or the empty string to clear. Clearing a license that was actually granted is refused, because a granted Creative Commons license is irrevocable.
2529
3224
  */
@@ -2544,6 +3239,39 @@ export declare const zTranscriptUpdateVisibility: z.ZodEnum<{
2544
3239
  public: "public";
2545
3240
  }>;
2546
3241
  export type TranscriptUpdateVisibility = z.infer<typeof zTranscriptUpdateVisibility>;
3242
+ export declare const zOwnerTranscriptUpdateRequest: z.ZodObject<{
3243
+ description: z.ZodOptional<z.ZodString>;
3244
+ license: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3245
+ "CC0-1.0": "CC0-1.0";
3246
+ "CC-BY-4.0": "CC-BY-4.0";
3247
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3248
+ }>>>;
3249
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3250
+ title: z.ZodOptional<z.ZodString>;
3251
+ visibility: z.ZodOptional<z.ZodEnum<{
3252
+ private: "private";
3253
+ public: "public";
3254
+ }>>;
3255
+ }, z.core.$strict>;
3256
+ export type OwnerTranscriptUpdateRequest = z.infer<typeof zOwnerTranscriptUpdateRequest>;
3257
+ export declare const zOwnerTranscriptUpdateResponse: z.ZodObject<{
3258
+ description: z.ZodNullable<z.ZodString>;
3259
+ license: z.ZodNullable<z.ZodEnum<{
3260
+ "CC0-1.0": "CC0-1.0";
3261
+ "CC-BY-4.0": "CC-BY-4.0";
3262
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3263
+ }>>;
3264
+ tags: z.ZodArray<z.ZodString>;
3265
+ title: z.ZodNullable<z.ZodString>;
3266
+ transcriptId: z.ZodUUID;
3267
+ transcriptUrl: z.ZodString;
3268
+ updatedAt: z.ZodCoercedBigInt<unknown>;
3269
+ visibility: z.ZodEnum<{
3270
+ private: "private";
3271
+ public: "public";
3272
+ }>;
3273
+ }, z.core.$strict>;
3274
+ export type OwnerTranscriptUpdateResponse = z.infer<typeof zOwnerTranscriptUpdateResponse>;
2547
3275
  export declare const zTranscriptUpdateRequest: z.ZodObject<{
2548
3276
  description: z.ZodOptional<z.ZodString>;
2549
3277
  license: z.ZodOptional<z.ZodEnum<{
@@ -2882,7 +3610,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2882
3610
  associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
2883
3611
  id: z.ZodString;
2884
3612
  observedCommitHash: z.ZodString;
2885
- }, z.core.$strip>>>;
3613
+ }, z.core.$strict>>>;
2886
3614
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2887
3615
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2888
3616
  authorEmail: z.ZodString;
@@ -3308,43 +4036,165 @@ export declare const zTaxonomyNode: z.ZodObject<{
3308
4036
  nominal: "nominal";
3309
4037
  continuous: "continuous";
3310
4038
  }>>;
3311
- status: z.ZodEnum<{
3312
- active: "active";
3313
- deprecated: "deprecated";
3314
- proposed: "proposed";
3315
- retired: "retired";
4039
+ status: z.ZodEnum<{
4040
+ active: "active";
4041
+ deprecated: "deprecated";
4042
+ proposed: "proposed";
4043
+ retired: "retired";
4044
+ }>;
4045
+ typeId: z.ZodString;
4046
+ valueDomain: z.ZodObject<{
4047
+ constraintSpec: z.ZodOptional<z.ZodString>;
4048
+ datatype: z.ZodEnum<{
4049
+ boolean: "boolean";
4050
+ real: "real";
4051
+ text: "text";
4052
+ integer: "integer";
4053
+ }>;
4054
+ kind: z.ZodEnum<{
4055
+ enumerated: "enumerated";
4056
+ described: "described";
4057
+ }>;
4058
+ permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
4059
+ }, z.core.$strip>;
4060
+ version: z.ZodInt;
4061
+ }, z.core.$strip>>>;
4062
+ }, z.core.$strip>>>;
4063
+ }, z.core.$strip>;
4064
+ export type TaxonomyNode = z.infer<typeof zTaxonomyNode>;
4065
+ /**
4066
+ * Visibility
4067
+ *
4068
+ * Access control level for a published transcript
4069
+ */
4070
+ export declare const zVisibility: z.ZodEnum<{
4071
+ private: "private";
4072
+ public: "public";
4073
+ group: "group";
4074
+ }>;
4075
+ export type Visibility = z.infer<typeof zVisibility>;
4076
+ export declare const zPublishNormalizedValues: z.ZodObject<{
4077
+ derivedTitle: z.ZodNullable<z.ZodString>;
4078
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4079
+ strike: "strike";
4080
+ cursor: "cursor";
4081
+ "claude-code": "claude-code";
4082
+ "gemini-cli": "gemini-cli";
4083
+ codex: "codex";
4084
+ opencode: "opencode";
4085
+ antigravity: "antigravity";
4086
+ }>>;
4087
+ rootHarness: z.ZodEnum<{
4088
+ strike: "strike";
4089
+ cursor: "cursor";
4090
+ "claude-code": "claude-code";
4091
+ "gemini-cli": "gemini-cli";
4092
+ codex: "codex";
4093
+ opencode: "opencode";
4094
+ antigravity: "antigravity";
4095
+ }>;
4096
+ schemaVersion: z.ZodString;
4097
+ visibility: z.ZodEnum<{
4098
+ private: "private";
4099
+ public: "public";
4100
+ group: "group";
4101
+ }>;
4102
+ }, z.core.$strict>;
4103
+ export type PublishNormalizedValues = z.infer<typeof zPublishNormalizedValues>;
4104
+ export declare const zPublishAppliedState: z.ZodObject<{
4105
+ associations: z.ZodArray<z.ZodObject<{
4106
+ id: z.ZodString;
4107
+ observedCommitHash: z.ZodString;
4108
+ }, z.core.$strict>>;
4109
+ license: z.ZodNullable<z.ZodEnum<{
4110
+ "CC0-1.0": "CC0-1.0";
4111
+ "CC-BY-4.0": "CC-BY-4.0";
4112
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4113
+ }>>;
4114
+ normalizedValues: z.ZodObject<{
4115
+ derivedTitle: z.ZodNullable<z.ZodString>;
4116
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4117
+ strike: "strike";
4118
+ cursor: "cursor";
4119
+ "claude-code": "claude-code";
4120
+ "gemini-cli": "gemini-cli";
4121
+ codex: "codex";
4122
+ opencode: "opencode";
4123
+ antigravity: "antigravity";
4124
+ }>>;
4125
+ rootHarness: z.ZodEnum<{
4126
+ strike: "strike";
4127
+ cursor: "cursor";
4128
+ "claude-code": "claude-code";
4129
+ "gemini-cli": "gemini-cli";
4130
+ codex: "codex";
4131
+ opencode: "opencode";
4132
+ antigravity: "antigravity";
4133
+ }>;
4134
+ schemaVersion: z.ZodString;
4135
+ visibility: z.ZodEnum<{
4136
+ private: "private";
4137
+ public: "public";
4138
+ group: "group";
4139
+ }>;
4140
+ }, z.core.$strict>;
4141
+ }, z.core.$strict>;
4142
+ export type PublishAppliedState = z.infer<typeof zPublishAppliedState>;
4143
+ export declare const zAuthoritativePublishResponse: z.ZodObject<{
4144
+ applied: z.ZodObject<{
4145
+ associations: z.ZodArray<z.ZodObject<{
4146
+ id: z.ZodString;
4147
+ observedCommitHash: z.ZodString;
4148
+ }, z.core.$strict>>;
4149
+ license: z.ZodNullable<z.ZodEnum<{
4150
+ "CC0-1.0": "CC0-1.0";
4151
+ "CC-BY-4.0": "CC-BY-4.0";
4152
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4153
+ }>>;
4154
+ normalizedValues: z.ZodObject<{
4155
+ derivedTitle: z.ZodNullable<z.ZodString>;
4156
+ entryHarnesses: z.ZodArray<z.ZodEnum<{
4157
+ strike: "strike";
4158
+ cursor: "cursor";
4159
+ "claude-code": "claude-code";
4160
+ "gemini-cli": "gemini-cli";
4161
+ codex: "codex";
4162
+ opencode: "opencode";
4163
+ antigravity: "antigravity";
4164
+ }>>;
4165
+ rootHarness: z.ZodEnum<{
4166
+ strike: "strike";
4167
+ cursor: "cursor";
4168
+ "claude-code": "claude-code";
4169
+ "gemini-cli": "gemini-cli";
4170
+ codex: "codex";
4171
+ opencode: "opencode";
4172
+ antigravity: "antigravity";
3316
4173
  }>;
3317
- typeId: z.ZodString;
3318
- valueDomain: z.ZodObject<{
3319
- constraintSpec: z.ZodOptional<z.ZodString>;
3320
- datatype: z.ZodEnum<{
3321
- boolean: "boolean";
3322
- real: "real";
3323
- text: "text";
3324
- integer: "integer";
3325
- }>;
3326
- kind: z.ZodEnum<{
3327
- enumerated: "enumerated";
3328
- described: "described";
3329
- }>;
3330
- permissibleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
3331
- }, z.core.$strip>;
3332
- version: z.ZodInt;
3333
- }, z.core.$strip>>>;
3334
- }, z.core.$strip>>>;
3335
- }, z.core.$strip>;
3336
- export type TaxonomyNode = z.infer<typeof zTaxonomyNode>;
3337
- /**
3338
- * Visibility
3339
- *
3340
- * Access control level for a published transcript
3341
- */
3342
- export declare const zVisibility: z.ZodEnum<{
3343
- private: "private";
3344
- public: "public";
3345
- group: "group";
3346
- }>;
3347
- export type Visibility = z.infer<typeof zVisibility>;
4174
+ schemaVersion: z.ZodString;
4175
+ visibility: z.ZodEnum<{
4176
+ private: "private";
4177
+ public: "public";
4178
+ group: "group";
4179
+ }>;
4180
+ }, z.core.$strict>;
4181
+ }, z.core.$strict>;
4182
+ blobKey: z.ZodString;
4183
+ blobSizeBytes: z.ZodCoercedBigInt<unknown>;
4184
+ contentHash: z.ZodString;
4185
+ created: z.ZodBoolean;
4186
+ publishedAt: z.ZodCoercedBigInt<unknown>;
4187
+ requestOperationFingerprint: z.ZodString;
4188
+ transcriptId: z.ZodUUID;
4189
+ transcriptUrl: z.ZodString;
4190
+ updatedAt: z.ZodCoercedBigInt<unknown>;
4191
+ visibility: z.ZodEnum<{
4192
+ private: "private";
4193
+ public: "public";
4194
+ group: "group";
4195
+ }>;
4196
+ }, z.core.$strict>;
4197
+ export type AuthoritativePublishResponse = z.infer<typeof zAuthoritativePublishResponse>;
3348
4198
  export declare const zPullTranscriptInfo: z.ZodObject<{
3349
4199
  annotationCount: z.ZodInt;
3350
4200
  contentHash: z.ZodOptional<z.ZodString>;
@@ -3416,6 +4266,219 @@ export declare const zPullListResponse: z.ZodObject<{
3416
4266
  }, z.core.$strip>>>;
3417
4267
  }, z.core.$strip>;
3418
4268
  export type PullListResponse = z.infer<typeof zPullListResponse>;
4269
+ /**
4270
+ * Visibility Intent
4271
+ *
4272
+ * Optional desired final access for legacy compatibility; content replacement remains private and widening occurs separately
4273
+ */
4274
+ export declare const zVisibilityIntent: z.ZodEnum<{
4275
+ private: "private";
4276
+ public: "public";
4277
+ }>;
4278
+ export type VisibilityIntent = z.infer<typeof zVisibilityIntent>;
4279
+ export declare const zAuthoritativePublishRequest: z.ZodObject<{
4280
+ contentHash: z.ZodString;
4281
+ diagnostics: z.ZodOptional<z.ZodObject<{
4282
+ partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4283
+ warnings: z.ZodArray<z.ZodObject<{
4284
+ errorType: z.ZodString;
4285
+ location: z.ZodString;
4286
+ message: z.ZodString;
4287
+ remediation: z.ZodString;
4288
+ }, z.core.$strict>>;
4289
+ }, z.core.$strict>>;
4290
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
4291
+ contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4292
+ depth: z.ZodInt;
4293
+ entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4294
+ entryIndex: z.ZodInt;
4295
+ entryType: z.ZodEnum<{
4296
+ error: "error";
4297
+ text: "text";
4298
+ tool_use: "tool_use";
4299
+ tool_result: "tool_result";
4300
+ thinking: "thinking";
4301
+ system: "system";
4302
+ result: "result";
4303
+ }>;
4304
+ extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4305
+ harness: z.ZodEnum<{
4306
+ strike: "strike";
4307
+ cursor: "cursor";
4308
+ "claude-code": "claude-code";
4309
+ "gemini-cli": "gemini-cli";
4310
+ codex: "codex";
4311
+ opencode: "opencode";
4312
+ antigravity: "antigravity";
4313
+ }>;
4314
+ hasThinking: z.ZodBoolean;
4315
+ hasToolUse: z.ZodBoolean;
4316
+ isError: z.ZodBoolean;
4317
+ parentEntryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4318
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4319
+ partType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4320
+ rawByteLength: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4321
+ role: z.ZodEnum<{
4322
+ user: "user";
4323
+ system: "system";
4324
+ assistant: "assistant";
4325
+ tool: "tool";
4326
+ }>;
4327
+ sessionId: z.ZodString;
4328
+ stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4329
+ end_turn: "end_turn";
4330
+ cancelled: "cancelled";
4331
+ max_tokens: "max_tokens";
4332
+ max_turn_requests: "max_turn_requests";
4333
+ refusal: "refusal";
4334
+ }>>>;
4335
+ timestampMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4336
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4337
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4338
+ toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4339
+ toolInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4340
+ toolKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4341
+ search: "search";
4342
+ other: "other";
4343
+ move: "move";
4344
+ fetch: "fetch";
4345
+ delete: "delete";
4346
+ read: "read";
4347
+ edit: "edit";
4348
+ execute: "execute";
4349
+ think: "think";
4350
+ }>>>;
4351
+ toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4352
+ toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4353
+ }, z.core.$strict>>>;
4354
+ git: z.ZodOptional<z.ZodObject<{
4355
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4356
+ id: z.ZodString;
4357
+ observedCommitHash: z.ZodString;
4358
+ }, z.core.$strict>>>;
4359
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4360
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4361
+ authorEmail: z.ZodString;
4362
+ authorName: z.ZodString;
4363
+ authorTime: z.ZodCoercedBigInt<unknown>;
4364
+ commitTime: z.ZodCoercedBigInt<unknown>;
4365
+ hash: z.ZodString;
4366
+ message: z.ZodString;
4367
+ }, z.core.$strict>>>;
4368
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4369
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4370
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4371
+ }, z.core.$strict>>;
4372
+ identity: z.ZodOptional<z.ZodObject<{
4373
+ parentSessionId: z.ZodOptional<z.ZodString>;
4374
+ schemaVersion: z.ZodInt;
4375
+ sessionId: z.ZodString;
4376
+ }, z.core.$strict>>;
4377
+ license: z.ZodOptional<z.ZodEnum<{
4378
+ "CC0-1.0": "CC0-1.0";
4379
+ "CC-BY-4.0": "CC-BY-4.0";
4380
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
4381
+ }>>;
4382
+ model: z.ZodObject<{
4383
+ harness: z.ZodEnum<{
4384
+ strike: "strike";
4385
+ cursor: "cursor";
4386
+ "claude-code": "claude-code";
4387
+ "gemini-cli": "gemini-cli";
4388
+ codex: "codex";
4389
+ opencode: "opencode";
4390
+ antigravity: "antigravity";
4391
+ }>;
4392
+ hostSlug: z.ZodOptional<z.ZodString>;
4393
+ model: z.ZodString;
4394
+ version: z.ZodOptional<z.ZodString>;
4395
+ }, z.core.$strict>;
4396
+ project: z.ZodOptional<z.ZodObject<{
4397
+ filePath: z.ZodOptional<z.ZodString>;
4398
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4399
+ name: z.ZodString;
4400
+ }, z.core.$strict>>;
4401
+ quality: z.ZodOptional<z.ZodObject<{
4402
+ computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4403
+ computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4404
+ costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4405
+ costCacheWriteUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4406
+ costInputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4407
+ costModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
+ costOutputUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4409
+ costReasoningUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4410
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4411
+ discoveryTurns: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4412
+ durationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4413
+ explorationRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4414
+ filesTouched: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4415
+ inputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4416
+ linesChanged: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4417
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4418
+ m3UniqueToolCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4419
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4420
+ m4ErrorRecoveryCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4421
+ m5AvgMessageTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4422
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4423
+ m5PeakContextTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4424
+ m6LinesSurvived: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4425
+ m6LinesTotal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4426
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4427
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4428
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4429
+ m7SpecWordCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4430
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4431
+ failed: "failed";
4432
+ partial: "partial";
4433
+ resolved: "resolved";
4434
+ }>>>;
4435
+ outputTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4436
+ retryLoops: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4437
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4438
+ scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4439
+ scopeBreadth: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4440
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4441
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4442
+ subagentCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4443
+ titleGenerated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4444
+ toolCalls: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4445
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4446
+ turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4447
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4448
+ }, z.core.$strict>>;
4449
+ source: z.ZodOptional<z.ZodObject<{
4450
+ filePath: z.ZodOptional<z.ZodString>;
4451
+ format: z.ZodEnum<{
4452
+ json: "json";
4453
+ jsonl: "jsonl";
4454
+ }>;
4455
+ }, z.core.$strict>>;
4456
+ stats: z.ZodOptional<z.ZodObject<{
4457
+ cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4458
+ cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4459
+ durationMs: z.ZodCoercedBigInt<unknown>;
4460
+ subagentCount: z.ZodInt;
4461
+ thoughtTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4462
+ tokensIn: z.ZodInt;
4463
+ tokensOut: z.ZodInt;
4464
+ toolCallCount: z.ZodInt;
4465
+ turnCount: z.ZodInt;
4466
+ }, z.core.$strict>>;
4467
+ subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
4468
+ parentUuid: z.ZodString;
4469
+ sessionId: z.ZodString;
4470
+ }, z.core.$strict>>>;
4471
+ timestamp: z.ZodOptional<z.ZodObject<{
4472
+ end: z.ZodCoercedBigInt<unknown>;
4473
+ ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4474
+ start: z.ZodCoercedBigInt<unknown>;
4475
+ }, z.core.$strict>>;
4476
+ visibilityIntent: z.ZodOptional<z.ZodEnum<{
4477
+ private: "private";
4478
+ public: "public";
4479
+ }>>;
4480
+ }, z.core.$strict>;
4481
+ export type AuthoritativePublishRequest = z.infer<typeof zAuthoritativePublishRequest>;
3419
4482
  export declare const zWalkthroughStep: z.ZodObject<{
3420
4483
  excerpt: z.ZodString;
3421
4484
  file: z.ZodString;