@peasant-labs/schema 0.1.0-rc8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  *
@@ -548,27 +607,13 @@ export declare const zFrictionCluster: z.ZodObject<{
548
607
  sessions: z.ZodInt;
549
608
  }, z.core.$strip>;
550
609
  export type FrictionCluster = z.infer<typeof zFrictionCluster>;
551
- export declare const zGitContext: z.ZodObject<{
552
- branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
- commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
554
- authorEmail: z.ZodString;
555
- authorName: z.ZodString;
556
- authorTime: z.ZodCoercedBigInt<unknown>;
557
- commitTime: z.ZodCoercedBigInt<unknown>;
558
- hash: z.ZodString;
559
- message: z.ZodString;
560
- }, z.core.$strip>>>;
561
- remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
- tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
- worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
- }, z.core.$strip>;
565
- export type GitContext = z.infer<typeof zGitContext>;
566
610
  /**
567
611
  * Harness
568
612
  *
569
613
  * AI coding tool or development environment
570
614
  */
571
615
  export declare const zHarness: z.ZodEnum<{
616
+ strike: "strike";
572
617
  cursor: "cursor";
573
618
  "claude-code": "claude-code";
574
619
  "gemini-cli": "gemini-cli";
@@ -724,8 +769,24 @@ export type MockConfigResponse = z.infer<typeof zMockConfigResponse>;
724
769
  */
725
770
  export declare const zModelID: z.ZodString;
726
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>;
727
787
  export declare const zModelInfo: z.ZodObject<{
728
788
  harness: z.ZodEnum<{
789
+ strike: "strike";
729
790
  cursor: "cursor";
730
791
  "claude-code": "claude-code";
731
792
  "gemini-cli": "gemini-cli";
@@ -738,6 +799,15 @@ export declare const zModelInfo: z.ZodObject<{
738
799
  version: z.ZodOptional<z.ZodString>;
739
800
  }, z.core.$strip>;
740
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>;
741
811
  /**
742
812
  * Project Hash
743
813
  *
@@ -745,6 +815,12 @@ export type ModelInfo = z.infer<typeof zModelInfo>;
745
815
  */
746
816
  export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
747
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>;
748
824
  export declare const zProjectContext: z.ZodObject<{
749
825
  filePath: z.ZodOptional<z.ZodString>;
750
826
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -785,6 +861,37 @@ export declare const zProvenance: z.ZodObject<{
785
861
  version: z.ZodOptional<z.ZodString>;
786
862
  }, z.core.$strip>;
787
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>;
788
895
  export declare const zPublishResponse: z.ZodObject<{
789
896
  blobKey: z.ZodString;
790
897
  blobSizeBytes: z.ZodCoercedBigInt<unknown>;
@@ -794,6 +901,61 @@ export declare const zPublishResponse: z.ZodObject<{
794
901
  updatedAt: z.ZodCoercedBigInt<unknown>;
795
902
  }, z.core.$strip>;
796
903
  export type PublishResponse = z.infer<typeof zPublishResponse>;
904
+ export declare const zPublishedAssociation: z.ZodObject<{
905
+ id: z.ZodString;
906
+ observedCommitHash: z.ZodString;
907
+ }, z.core.$strict>;
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>;
928
+ export declare const zGitContext: z.ZodObject<{
929
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
930
+ id: z.ZodString;
931
+ observedCommitHash: z.ZodString;
932
+ }, z.core.$strict>>>;
933
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
+ authorEmail: z.ZodString;
936
+ authorName: z.ZodString;
937
+ authorTime: z.ZodCoercedBigInt<unknown>;
938
+ commitTime: z.ZodCoercedBigInt<unknown>;
939
+ hash: z.ZodString;
940
+ message: z.ZodString;
941
+ }, z.core.$strip>>>;
942
+ remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
943
+ tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
944
+ worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ }, z.core.$strip>;
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>;
797
959
  /**
798
960
  * Read Attribution State
799
961
  *
@@ -1096,10 +1258,21 @@ export type ServerMessage = z.infer<typeof zServerMessage>;
1096
1258
  /**
1097
1259
  * Session ID
1098
1260
  *
1099
- * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), or msg_{id})
1261
+ * Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), msg_{id}, or a Strike session ID)
1100
1262
  */
1101
1263
  export declare const zSessionID: z.ZodString;
1102
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>;
1103
1276
  export declare const zInsightEvidence: z.ZodObject<{
1104
1277
  commitHash: z.ZodOptional<z.ZodString>;
1105
1278
  entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1271,6 +1444,55 @@ export declare const zSessionOutcome: z.ZodEnum<{
1271
1444
  resolved: "resolved";
1272
1445
  }>;
1273
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>;
1274
1496
  export declare const zQualityMetrics: z.ZodObject<{
1275
1497
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1276
1498
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1355,6 +1577,7 @@ export type SessionStats = z.infer<typeof zSessionStats>;
1355
1577
  export declare const zSessionSummary: z.ZodObject<{
1356
1578
  durationMins: z.ZodNumber;
1357
1579
  harness: z.ZodEnum<{
1580
+ strike: "strike";
1358
1581
  cursor: "cursor";
1359
1582
  "claude-code": "claude-code";
1360
1583
  "gemini-cli": "gemini-cli";
@@ -1378,6 +1601,7 @@ export declare const zSessionsPayload: z.ZodObject<{
1378
1601
  sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
1379
1602
  durationMins: z.ZodNumber;
1380
1603
  harness: z.ZodEnum<{
1604
+ strike: "strike";
1381
1605
  cursor: "cursor";
1382
1606
  "claude-code": "claude-code";
1383
1607
  "gemini-cli": "gemini-cli";
@@ -1412,6 +1636,14 @@ export declare const zSourceFormat: z.ZodEnum<{
1412
1636
  jsonl: "jsonl";
1413
1637
  }>;
1414
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>;
1415
1647
  export declare const zSourceInfo: z.ZodObject<{
1416
1648
  filePath: z.ZodOptional<z.ZodString>;
1417
1649
  format: z.ZodEnum<{
@@ -1452,7 +1684,26 @@ export declare const zTargetKind: z.ZodEnum<{
1452
1684
  association: "association";
1453
1685
  }>;
1454
1686
  export type TargetKind = z.infer<typeof zTargetKind>;
1455
- export declare const zAnnotationPushItem: z.ZodObject<{
1687
+ export declare const zAnnotationPushItem: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
1688
+ targetAssociationId: z.ZodString;
1689
+ targetKind: z.ZodLiteral<"association">;
1690
+ }, z.core.$strip>, z.ZodObject<{
1691
+ sessionId: z.ZodString;
1692
+ targetKind: z.ZodLiteral<"session">;
1693
+ }, z.core.$strip>, z.ZodObject<{
1694
+ entryTarget: z.ZodObject<{
1695
+ endIndex: z.ZodInt;
1696
+ entryIndex: z.ZodInt;
1697
+ sessionId: z.ZodString;
1698
+ }, z.core.$strip>;
1699
+ targetKind: z.ZodLiteral<"entry">;
1700
+ }, z.core.$strip>, z.ZodObject<{
1701
+ annotationId: z.ZodString;
1702
+ targetKind: z.ZodLiteral<"annotation">;
1703
+ }, z.core.$strip>, z.ZodObject<{
1704
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1705
+ targetKind: z.ZodLiteral<"project">;
1706
+ }, z.core.$strip>]>, z.ZodObject<{
1456
1707
  annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
1708
  annotatorName: z.ZodOptional<z.ZodString>;
1458
1709
  confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1472,6 +1723,7 @@ export declare const zAnnotationPushItem: z.ZodObject<{
1472
1723
  }, z.core.$strip>>>;
1473
1724
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
1725
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1475
1727
  targetKind: z.ZodEnum<{
1476
1728
  session: "session";
1477
1729
  annotation: "annotation";
@@ -1482,10 +1734,29 @@ export declare const zAnnotationPushItem: z.ZodObject<{
1482
1734
  }>;
1483
1735
  typeId: z.ZodString;
1484
1736
  value: z.ZodString;
1485
- }, z.core.$strip>;
1737
+ }, z.core.$strip>>;
1486
1738
  export type AnnotationPushItem = z.infer<typeof zAnnotationPushItem>;
1487
1739
  export declare const zAnnotationPushRequest: z.ZodObject<{
1488
- annotations: z.ZodNullable<z.ZodArray<z.ZodObject<{
1740
+ annotations: z.ZodArray<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
1741
+ targetAssociationId: z.ZodString;
1742
+ targetKind: z.ZodLiteral<"association">;
1743
+ }, z.core.$strip>, z.ZodObject<{
1744
+ sessionId: z.ZodString;
1745
+ targetKind: z.ZodLiteral<"session">;
1746
+ }, z.core.$strip>, z.ZodObject<{
1747
+ entryTarget: z.ZodObject<{
1748
+ endIndex: z.ZodInt;
1749
+ entryIndex: z.ZodInt;
1750
+ sessionId: z.ZodString;
1751
+ }, z.core.$strip>;
1752
+ targetKind: z.ZodLiteral<"entry">;
1753
+ }, z.core.$strip>, z.ZodObject<{
1754
+ annotationId: z.ZodString;
1755
+ targetKind: z.ZodLiteral<"annotation">;
1756
+ }, z.core.$strip>, z.ZodObject<{
1757
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1758
+ targetKind: z.ZodLiteral<"project">;
1759
+ }, z.core.$strip>]>, z.ZodObject<{
1489
1760
  annotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
1761
  annotatorName: z.ZodOptional<z.ZodString>;
1491
1762
  confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1505,6 +1776,7 @@ export declare const zAnnotationPushRequest: z.ZodObject<{
1505
1776
  }, z.core.$strip>>>;
1506
1777
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1507
1778
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1779
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1508
1780
  targetKind: z.ZodEnum<{
1509
1781
  session: "session";
1510
1782
  annotation: "annotation";
@@ -1989,6 +2261,7 @@ export declare const zProjectTasksPayload: z.ZodObject<{
1989
2261
  export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
1990
2262
  export declare const zTimelineSessionRef: z.ZodObject<{
1991
2263
  harness: z.ZodEnum<{
2264
+ strike: "strike";
1992
2265
  cursor: "cursor";
1993
2266
  "claude-code": "claude-code";
1994
2267
  "gemini-cli": "gemini-cli";
@@ -2110,6 +2383,7 @@ export declare const zReviewListPayload: z.ZodObject<{
2110
2383
  }, z.core.$strip>>;
2111
2384
  sessions: z.ZodArray<z.ZodObject<{
2112
2385
  harness: z.ZodEnum<{
2386
+ strike: "strike";
2113
2387
  cursor: "cursor";
2114
2388
  "claude-code": "claude-code";
2115
2389
  "gemini-cli": "gemini-cli";
@@ -2147,7 +2421,7 @@ export declare const zToolCallKind: z.ZodEnum<{
2147
2421
  think: "think";
2148
2422
  }>;
2149
2423
  export type ToolCallKind = z.infer<typeof zToolCallKind>;
2150
- export declare const zSessionEntry: z.ZodObject<{
2424
+ export declare const zAuthoritativeSessionEntry: z.ZodObject<{
2151
2425
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2152
2426
  depth: z.ZodInt;
2153
2427
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2163,6 +2437,7 @@ export declare const zSessionEntry: z.ZodObject<{
2163
2437
  }>;
2164
2438
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2165
2439
  harness: z.ZodEnum<{
2440
+ strike: "strike";
2166
2441
  cursor: "cursor";
2167
2442
  "claude-code": "claude-code";
2168
2443
  "gemini-cli": "gemini-cli";
@@ -2209,19 +2484,19 @@ export declare const zSessionEntry: z.ZodObject<{
2209
2484
  }>>>;
2210
2485
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2211
2486
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2212
- }, z.core.$strip>;
2213
- export type SessionEntry = z.infer<typeof zSessionEntry>;
2214
- 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<{
2215
2490
  diagnostics: z.ZodObject<{
2216
2491
  partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2217
- warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
2492
+ warnings: z.ZodArray<z.ZodObject<{
2218
2493
  errorType: z.ZodString;
2219
2494
  location: z.ZodString;
2220
2495
  message: z.ZodString;
2221
2496
  remediation: z.ZodString;
2222
- }, z.core.$strip>>>;
2223
- }, z.core.$strip>;
2224
- entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
2497
+ }, z.core.$strict>>;
2498
+ }, z.core.$strict>;
2499
+ entries: z.ZodArray<z.ZodObject<{
2225
2500
  contentPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2226
2501
  depth: z.ZodInt;
2227
2502
  entryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2237,6 +2512,7 @@ export declare const zPublishRequest: z.ZodObject<{
2237
2512
  }>;
2238
2513
  extra: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2239
2514
  harness: z.ZodEnum<{
2515
+ strike: "strike";
2240
2516
  cursor: "cursor";
2241
2517
  "claude-code": "claude-code";
2242
2518
  "gemini-cli": "gemini-cli";
@@ -2283,33 +2559,29 @@ export declare const zPublishRequest: z.ZodObject<{
2283
2559
  }>>>;
2284
2560
  toolNamesCsv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2285
2561
  toolOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2286
- }, z.core.$strip>>>;
2562
+ }, z.core.$strict>>;
2287
2563
  git: z.ZodObject<{
2288
- branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2289
- commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2564
+ branch: z.ZodNullable<z.ZodString>;
2565
+ commits: z.ZodArray<z.ZodObject<{
2290
2566
  authorEmail: z.ZodString;
2291
2567
  authorName: z.ZodString;
2292
2568
  authorTime: z.ZodCoercedBigInt<unknown>;
2293
2569
  commitTime: z.ZodCoercedBigInt<unknown>;
2294
2570
  hash: z.ZodString;
2295
2571
  message: z.ZodString;
2296
- }, z.core.$strip>>>;
2297
- remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2298
- tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
- worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2300
- }, 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>;
2301
2577
  identity: z.ZodObject<{
2302
- parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2578
+ parentSessionId: z.ZodOptional<z.ZodString>;
2303
2579
  schemaVersion: z.ZodInt;
2304
2580
  sessionId: z.ZodString;
2305
- }, z.core.$strip>;
2306
- license: z.ZodOptional<z.ZodEnum<{
2307
- "CC0-1.0": "CC0-1.0";
2308
- "CC-BY-4.0": "CC-BY-4.0";
2309
- "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2310
- }>>;
2581
+ }, z.core.$strict>;
2311
2582
  model: z.ZodObject<{
2312
2583
  harness: z.ZodEnum<{
2584
+ strike: "strike";
2313
2585
  cursor: "cursor";
2314
2586
  "claude-code": "claude-code";
2315
2587
  "gemini-cli": "gemini-cli";
@@ -2320,13 +2592,13 @@ export declare const zPublishRequest: z.ZodObject<{
2320
2592
  hostSlug: z.ZodOptional<z.ZodString>;
2321
2593
  model: z.ZodString;
2322
2594
  version: z.ZodOptional<z.ZodString>;
2323
- }, z.core.$strip>;
2595
+ }, z.core.$strict>;
2324
2596
  project: z.ZodObject<{
2325
2597
  filePath: z.ZodOptional<z.ZodString>;
2326
2598
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2327
2599
  name: z.ZodString;
2328
- }, z.core.$strip>;
2329
- quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2600
+ }, z.core.$strict>;
2601
+ quality: z.ZodNullable<z.ZodObject<{
2330
2602
  computeVersion: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2331
2603
  computedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2332
2604
  costCacheReadUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2373,14 +2645,14 @@ export declare const zPublishRequest: z.ZodObject<{
2373
2645
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2374
2646
  turnCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2375
2647
  withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2376
- }, z.core.$strip>>>;
2648
+ }, z.core.$strict>>;
2377
2649
  source: z.ZodObject<{
2378
2650
  filePath: z.ZodOptional<z.ZodString>;
2379
2651
  format: z.ZodEnum<{
2380
2652
  json: "json";
2381
2653
  jsonl: "jsonl";
2382
2654
  }>;
2383
- }, z.core.$strip>;
2655
+ }, z.core.$strict>;
2384
2656
  stats: z.ZodObject<{
2385
2657
  cachedReadTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2386
2658
  cachedWriteTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -2391,56 +2663,541 @@ export declare const zPublishRequest: z.ZodObject<{
2391
2663
  tokensOut: z.ZodInt;
2392
2664
  toolCallCount: z.ZodInt;
2393
2665
  turnCount: z.ZodInt;
2394
- }, z.core.$strip>;
2395
- subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2666
+ }, z.core.$strict>;
2667
+ subagents: z.ZodArray<z.ZodObject<{
2396
2668
  parentUuid: z.ZodString;
2397
2669
  sessionId: z.ZodString;
2398
- }, z.core.$strip>>>;
2670
+ }, z.core.$strict>>;
2399
2671
  timestamp: z.ZodObject<{
2400
2672
  end: z.ZodCoercedBigInt<unknown>;
2401
2673
  ingested: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2402
2674
  start: z.ZodCoercedBigInt<unknown>;
2403
- }, z.core.$strip>;
2404
- }, z.core.$strip>;
2405
- export type PublishRequest = z.infer<typeof zPublishRequest>;
2406
- export declare const zToolCallDetail: z.ZodObject<{
2407
- arguments: z.ZodString;
2408
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2409
- exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2410
- filePath: z.ZodOptional<z.ZodString>;
2411
- id: z.ZodString;
2412
- isError: z.ZodOptional<z.ZodBoolean>;
2413
- name: z.ZodString;
2414
- result: z.ZodString;
2415
- toolKind: z.ZodOptional<z.ZodEnum<{
2416
- search: "search";
2417
- other: "other";
2418
- move: "move";
2419
- fetch: "fetch";
2420
- delete: "delete";
2421
- read: "read";
2422
- edit: "edit";
2423
- execute: "execute";
2424
- think: "think";
2425
- }>>;
2426
- }, z.core.$strip>;
2427
- export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
2428
- /**
2429
- * Transcript ID
2430
- *
2431
- * Village-side transcript identifier (canonical lowercase-hex UUID)
2432
- */
2433
- export declare const zTranscriptID: z.ZodUUID;
2434
- export type TranscriptID = z.infer<typeof zTranscriptID>;
2435
- export declare const zPullSkipGateItem: z.ZodObject<{
2436
- annotationHashes: z.ZodArray<z.ZodString>;
2437
- contentHash: z.ZodString;
2438
- transcriptId: z.ZodUUID;
2439
- }, z.core.$strip>;
2440
- export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
2441
- export declare const zPullSkipGateRequest: z.ZodObject<{
2442
- items: z.ZodArray<z.ZodObject<{
2443
- annotationHashes: z.ZodArray<z.ZodString>;
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>;
2444
3201
  contentHash: z.ZodString;
2445
3202
  transcriptId: z.ZodUUID;
2446
3203
  }, z.core.$strip>>;
@@ -2460,6 +3217,76 @@ export declare const zPullSkipGateResponse: z.ZodObject<{
2460
3217
  }, z.core.$strip>>;
2461
3218
  }, z.core.$strip>;
2462
3219
  export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
3220
+ /**
3221
+ * TranscriptUpdateLicense
3222
+ *
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.
3224
+ */
3225
+ export declare const zTranscriptUpdateLicense: z.ZodEnum<{
3226
+ "": "";
3227
+ "CC0-1.0": "CC0-1.0";
3228
+ "CC-BY-4.0": "CC-BY-4.0";
3229
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3230
+ }>;
3231
+ export type TranscriptUpdateLicense = z.infer<typeof zTranscriptUpdateLicense>;
3232
+ /**
3233
+ * TranscriptUpdateVisibility
3234
+ *
3235
+ * Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
3236
+ */
3237
+ export declare const zTranscriptUpdateVisibility: z.ZodEnum<{
3238
+ private: "private";
3239
+ public: "public";
3240
+ }>;
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>;
3275
+ export declare const zTranscriptUpdateRequest: z.ZodObject<{
3276
+ description: z.ZodOptional<z.ZodString>;
3277
+ license: z.ZodOptional<z.ZodEnum<{
3278
+ "": "";
3279
+ "CC0-1.0": "CC0-1.0";
3280
+ "CC-BY-4.0": "CC-BY-4.0";
3281
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
3282
+ }>>;
3283
+ title: z.ZodOptional<z.ZodString>;
3284
+ visibility: z.ZodOptional<z.ZodEnum<{
3285
+ private: "private";
3286
+ public: "public";
3287
+ }>>;
3288
+ }, z.core.$strict>;
3289
+ export type TranscriptUpdateRequest = z.infer<typeof zTranscriptUpdateRequest>;
2463
3290
  export declare const zTrendsPayload: z.ZodObject<{
2464
3291
  days: z.ZodNullable<z.ZodArray<z.ZodObject<{
2465
3292
  date: z.ZodString;
@@ -2536,6 +3363,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
2536
3363
  gitBranch: z.ZodOptional<z.ZodString>;
2537
3364
  gitRemote: z.ZodOptional<z.ZodString>;
2538
3365
  harness: z.ZodEnum<{
3366
+ strike: "strike";
2539
3367
  cursor: "cursor";
2540
3368
  "claude-code": "claude-code";
2541
3369
  "gemini-cli": "gemini-cli";
@@ -2652,6 +3480,7 @@ export declare const zTranscriptContent: z.ZodObject<{
2652
3480
  gitBranch: z.ZodOptional<z.ZodString>;
2653
3481
  gitRemote: z.ZodOptional<z.ZodString>;
2654
3482
  harness: z.ZodEnum<{
3483
+ strike: "strike";
2655
3484
  cursor: "cursor";
2656
3485
  "claude-code": "claude-code";
2657
3486
  "gemini-cli": "gemini-cli";
@@ -2778,6 +3607,10 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2778
3607
  }, z.core.$strip>>>;
2779
3608
  }, z.core.$strip>;
2780
3609
  git: z.ZodObject<{
3610
+ associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
3611
+ id: z.ZodString;
3612
+ observedCommitHash: z.ZodString;
3613
+ }, z.core.$strict>>>;
2781
3614
  branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
3615
  commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2783
3616
  authorEmail: z.ZodString;
@@ -2792,6 +3625,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
2792
3625
  worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
3626
  }, z.core.$strip>;
2794
3627
  harness: z.ZodEnum<{
3628
+ strike: "strike";
2795
3629
  cursor: "cursor";
2796
3630
  "claude-code": "claude-code";
2797
3631
  "gemini-cli": "gemini-cli";
@@ -3239,11 +4073,134 @@ export declare const zVisibility: z.ZodEnum<{
3239
4073
  group: "group";
3240
4074
  }>;
3241
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";
4173
+ }>;
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>;
3242
4198
  export declare const zPullTranscriptInfo: z.ZodObject<{
3243
4199
  annotationCount: z.ZodInt;
3244
4200
  contentHash: z.ZodOptional<z.ZodString>;
3245
4201
  contractVersion: z.ZodOptional<z.ZodString>;
3246
4202
  harness: z.ZodOptional<z.ZodEnum<{
4203
+ strike: "strike";
3247
4204
  cursor: "cursor";
3248
4205
  "claude-code": "claude-code";
3249
4206
  "gemini-cli": "gemini-cli";
@@ -3280,6 +4237,7 @@ export declare const zPullListResponse: z.ZodObject<{
3280
4237
  contentHash: z.ZodOptional<z.ZodString>;
3281
4238
  contractVersion: z.ZodOptional<z.ZodString>;
3282
4239
  harness: z.ZodOptional<z.ZodEnum<{
4240
+ strike: "strike";
3283
4241
  cursor: "cursor";
3284
4242
  "claude-code": "claude-code";
3285
4243
  "gemini-cli": "gemini-cli";
@@ -3308,6 +4266,219 @@ export declare const zPullListResponse: z.ZodObject<{
3308
4266
  }, z.core.$strip>>>;
3309
4267
  }, z.core.$strip>;
3310
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>;
3311
4482
  export declare const zWalkthroughStep: z.ZodObject<{
3312
4483
  excerpt: z.ZodString;
3313
4484
  file: z.ZodString;