@peasant-labs/schema 0.40.0 → 0.42.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.
@@ -1163,6 +1163,16 @@ export declare const zLocalSyncPublicationFilter: z.ZodEnum<{
1163
1163
  "not-published": "not-published";
1164
1164
  }>;
1165
1165
  export type LocalSyncPublicationFilter = z.infer<typeof zLocalSyncPublicationFilter>;
1166
+ export declare const zLocalSyncSessionTotals: z.ZodObject<{
1167
+ sessions: z.ZodInt;
1168
+ }, z.core.$strip>;
1169
+ export type LocalSyncSessionTotals = z.infer<typeof zLocalSyncSessionTotals>;
1170
+ export declare const zLongestStreak: z.ZodObject<{
1171
+ endWeek: z.ZodNullable<z.ZodString>;
1172
+ startWeek: z.ZodNullable<z.ZodString>;
1173
+ weeks: z.ZodInt;
1174
+ }, z.core.$strip>;
1175
+ export type LongestStreak = z.infer<typeof zLongestStreak>;
1166
1176
  export declare const zMapEdge: z.ZodObject<{
1167
1177
  count: z.ZodInt;
1168
1178
  from: z.ZodString;
@@ -1180,6 +1190,35 @@ export declare const zMapNodeKind: z.ZodEnum<{
1180
1190
  package: "package";
1181
1191
  }>;
1182
1192
  export type MapNodeKind = z.infer<typeof zMapNodeKind>;
1193
+ export declare const zMedianP90: z.ZodObject<{
1194
+ count: z.ZodInt;
1195
+ median: z.ZodNullable<z.ZodNumber>;
1196
+ p90: z.ZodNullable<z.ZodNumber>;
1197
+ }, z.core.$strip>;
1198
+ export type MedianP90 = z.infer<typeof zMedianP90>;
1199
+ export declare const zAnalyticsSessionStats: z.ZodObject<{
1200
+ durationMins: z.ZodObject<{
1201
+ count: z.ZodInt;
1202
+ median: z.ZodNullable<z.ZodNumber>;
1203
+ p90: z.ZodNullable<z.ZodNumber>;
1204
+ }, z.core.$strip>;
1205
+ toolCallCount: z.ZodObject<{
1206
+ count: z.ZodInt;
1207
+ median: z.ZodNullable<z.ZodNumber>;
1208
+ p90: z.ZodNullable<z.ZodNumber>;
1209
+ }, z.core.$strip>;
1210
+ totalTokens: z.ZodObject<{
1211
+ count: z.ZodInt;
1212
+ median: z.ZodNullable<z.ZodNumber>;
1213
+ p90: z.ZodNullable<z.ZodNumber>;
1214
+ }, z.core.$strip>;
1215
+ turnCount: z.ZodObject<{
1216
+ count: z.ZodInt;
1217
+ median: z.ZodNullable<z.ZodNumber>;
1218
+ p90: z.ZodNullable<z.ZodNumber>;
1219
+ }, z.core.$strip>;
1220
+ }, z.core.$strip>;
1221
+ export type AnalyticsSessionStats = z.infer<typeof zAnalyticsSessionStats>;
1183
1222
  /**
1184
1223
  * Message Type
1185
1224
  *
@@ -1452,6 +1491,35 @@ export declare const zLocalContributionTraversalConflict: z.ZodObject<{
1452
1491
  }, z.core.$strip>;
1453
1492
  }, z.core.$strip>;
1454
1493
  export type LocalContributionTraversalConflict = z.infer<typeof zLocalContributionTraversalConflict>;
1494
+ export declare const zOutcomeDistribution: z.ZodObject<{
1495
+ failed: z.ZodInt;
1496
+ partial: z.ZodInt;
1497
+ resolved: z.ZodInt;
1498
+ total: z.ZodInt;
1499
+ unknown: z.ZodInt;
1500
+ }, z.core.$strip>;
1501
+ export type OutcomeDistribution = z.infer<typeof zOutcomeDistribution>;
1502
+ export declare const zContributorBreakdown: z.ZodObject<{
1503
+ activeWeeks: z.ZodInt;
1504
+ contributorId: z.ZodString;
1505
+ firstSeen: z.ZodNullable<z.ZodString>;
1506
+ lastSeen: z.ZodNullable<z.ZodString>;
1507
+ outcomes: z.ZodObject<{
1508
+ failed: z.ZodInt;
1509
+ partial: z.ZodInt;
1510
+ resolved: z.ZodInt;
1511
+ total: z.ZodInt;
1512
+ unknown: z.ZodInt;
1513
+ }, z.core.$strip>;
1514
+ sessions: z.ZodInt;
1515
+ sessionsWithCommit: z.ZodInt;
1516
+ totalCommits: z.ZodInt;
1517
+ totalDurationMins: z.ZodInt;
1518
+ totalTokens: z.ZodInt;
1519
+ totalToolCalls: z.ZodInt;
1520
+ totalTurns: z.ZodInt;
1521
+ }, z.core.$strip>;
1522
+ export type ContributorBreakdown = z.infer<typeof zContributorBreakdown>;
1455
1523
  /**
1456
1524
  * Omitted preserves, null requests clear, and a canonical license replaces
1457
1525
  */
@@ -1462,12 +1530,18 @@ export declare const zOwnerUpdateLicenseIntent: z.ZodNullable<z.ZodEnum<{
1462
1530
  }>>;
1463
1531
  export type OwnerUpdateLicenseIntent = z.infer<typeof zOwnerUpdateLicenseIntent>;
1464
1532
  /**
1465
- * Page Token
1533
+ * Page Size
1466
1534
  *
1467
- * Opaque continuation; empty starts traversal or marks its end. Not a credential or snapshot token.
1535
+ * Closed page size set for local list reads: 25, 50, or 100. The value is a number on the wire; an omitted maximum maps to 25 before validation.
1468
1536
  */
1469
- export declare const zPageToken: z.ZodString;
1470
- export type PageToken = z.infer<typeof zPageToken>;
1537
+ export declare const zPageSize: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
1538
+ export type PageSize = z.infer<typeof zPageSize>;
1539
+ export declare const zPersonalMedians: z.ZodObject<{
1540
+ retryShare: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1541
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1542
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1543
+ }, z.core.$strip>;
1544
+ export type PersonalMedians = z.infer<typeof zPersonalMedians>;
1471
1545
  /**
1472
1546
  * Project Hash
1473
1547
  *
@@ -1945,6 +2019,12 @@ export declare const zRetainedUnknownRecord: z.ZodObject<{
1945
2019
  sourceRef: z.ZodString;
1946
2020
  }, z.core.$strip>;
1947
2021
  export type RetainedUnknownRecord = z.infer<typeof zRetainedUnknownRecord>;
2022
+ export declare const zReturningContributorRate: z.ZodObject<{
2023
+ rate: z.ZodNumber;
2024
+ returning: z.ZodInt;
2025
+ total: z.ZodInt;
2026
+ }, z.core.$strip>;
2027
+ export type ReturningContributorRate = z.infer<typeof zReturningContributorRate>;
1948
2028
  export declare const zReviewSuggestion: z.ZodObject<{
1949
2029
  daysSince: z.ZodInt;
1950
2030
  lastEngaged: z.ZodString;
@@ -2503,6 +2583,12 @@ export declare const zSessionTeammate: z.ZodObject<{
2503
2583
  team: z.ZodString;
2504
2584
  }, z.core.$strip>;
2505
2585
  export type SessionTeammate = z.infer<typeof zSessionTeammate>;
2586
+ export declare const zSessionToCommitRate: z.ZodObject<{
2587
+ rate: z.ZodNumber;
2588
+ total: z.ZodInt;
2589
+ withCommit: z.ZodInt;
2590
+ }, z.core.$strip>;
2591
+ export type SessionToCommitRate = z.infer<typeof zSessionToCommitRate>;
2506
2592
  export declare const zShutdownResponse: z.ZodObject<{
2507
2593
  status: z.ZodString;
2508
2594
  }, z.core.$strip>;
@@ -3247,6 +3333,7 @@ export declare const zLocalSessionRow: z.ZodObject<{
3247
3333
  totalTokens: z.ZodInt;
3248
3334
  turnCount: z.ZodInt;
3249
3335
  }, z.core.$strip>>>;
3336
+ title: z.ZodOptional<z.ZodString>;
3250
3337
  }, z.core.$strip>;
3251
3338
  export type LocalSessionRow = z.infer<typeof zLocalSessionRow>;
3252
3339
  export declare const zLocalSessionListItem: z.ZodObject<{
@@ -3403,11 +3490,11 @@ export declare const zLocalSessionListItem: z.ZodObject<{
3403
3490
  totalTokens: z.ZodInt;
3404
3491
  turnCount: z.ZodInt;
3405
3492
  }, z.core.$strip>>>;
3493
+ title: z.ZodOptional<z.ZodString>;
3406
3494
  }, z.core.$strip>>>;
3407
3495
  }, z.core.$strip>;
3408
3496
  export type LocalSessionListItem = z.infer<typeof zLocalSessionListItem>;
3409
3497
  export declare const zLocalHelperMembersPayload: z.ZodObject<{
3410
- limit: z.ZodInt;
3411
3498
  members: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3412
3499
  context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3413
3500
  groupId: z.ZodString;
@@ -3562,6 +3649,7 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
3562
3649
  totalTokens: z.ZodInt;
3563
3650
  turnCount: z.ZodInt;
3564
3651
  }, z.core.$strip>>>;
3652
+ title: z.ZodOptional<z.ZodString>;
3565
3653
  }, z.core.$strip>>>;
3566
3654
  }, z.core.$strip>, z.ZodObject<{
3567
3655
  context: z.ZodOptional<z.ZodNull>;
@@ -3695,9 +3783,169 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
3695
3783
  totalTokens: z.ZodInt;
3696
3784
  turnCount: z.ZodInt;
3697
3785
  }, z.core.$strip>>>;
3786
+ title: z.ZodOptional<z.ZodString>;
3698
3787
  }, z.core.$strip>;
3699
3788
  }, z.core.$strip>>>;
3789
+ nextItems: z.ZodArray<z.ZodObject<{
3790
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3791
+ groupId: z.ZodString;
3792
+ ownerStatus: z.ZodEnum<{
3793
+ unknown: "unknown";
3794
+ resolved: "resolved";
3795
+ general_link_only: "general_link_only";
3796
+ known_unavailable: "known_unavailable";
3797
+ inaccessible: "inaccessible";
3798
+ conflicting: "conflicting";
3799
+ }>;
3800
+ }, z.core.$strip>>>;
3801
+ helperGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
3802
+ groupId: z.ZodString;
3803
+ helperThreadCount: z.ZodInt;
3804
+ memberScope: z.ZodString;
3805
+ purpose: z.ZodEnum<{
3806
+ unknown: "unknown";
3807
+ interaction: "interaction";
3808
+ delegated_work: "delegated_work";
3809
+ helper_review: "helper_review";
3810
+ }>;
3811
+ }, z.core.$strip>>>;
3812
+ kind: z.ZodEnum<{
3813
+ transcript: "transcript";
3814
+ context_container: "context_container";
3815
+ }>;
3816
+ transcript: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3817
+ matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
3818
+ entryIndex: z.ZodInt;
3819
+ project: z.ZodString;
3820
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
3821
+ role: z.ZodString;
3822
+ score: z.ZodNumber;
3823
+ sessionId: z.ZodString;
3824
+ snippet: z.ZodString;
3825
+ }, z.core.$strip>>>;
3826
+ session: z.ZodObject<{
3827
+ durationMins: z.ZodNumber;
3828
+ harness: z.ZodEnum<{
3829
+ strike: "strike";
3830
+ cursor: "cursor";
3831
+ "claude-code": "claude-code";
3832
+ "gemini-cli": "gemini-cli";
3833
+ codex: "codex";
3834
+ opencode: "opencode";
3835
+ antigravity: "antigravity";
3836
+ pi: "pi";
3837
+ }>;
3838
+ id: z.ZodString;
3839
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
3840
+ outcome: z.ZodOptional<z.ZodString>;
3841
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3842
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
3843
+ preview: z.ZodOptional<z.ZodString>;
3844
+ project: z.ZodOptional<z.ZodString>;
3845
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
3846
+ purpose: z.ZodOptional<z.ZodEnum<{
3847
+ unknown: "unknown";
3848
+ interaction: "interaction";
3849
+ delegated_work: "delegated_work";
3850
+ helper_review: "helper_review";
3851
+ }>>;
3852
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
3853
+ anchor: z.ZodOptional<z.ZodObject<{
3854
+ kind: z.ZodEnum<{
3855
+ general_source_session: "general_source_session";
3856
+ before_redacted_entry: "before_redacted_entry";
3857
+ through_redacted_entry: "through_redacted_entry";
3858
+ }>;
3859
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
3860
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
3861
+ }, z.core.$strict>>;
3862
+ evidence: z.ZodEnum<{
3863
+ unknown: "unknown";
3864
+ native_typed: "native_typed";
3865
+ lifecycle_typed: "lifecycle_typed";
3866
+ existing_adapter: "existing_adapter";
3867
+ retained_last_good: "retained_last_good";
3868
+ conflict: "conflict";
3869
+ }>;
3870
+ kind: z.ZodEnum<{
3871
+ started_by: "started_by";
3872
+ context_from: "context_from";
3873
+ }>;
3874
+ targetLocalId: z.ZodOptional<z.ZodString>;
3875
+ targetState: z.ZodEnum<{
3876
+ unknown: "unknown";
3877
+ target_known: "target_known";
3878
+ target_known_retained: "target_known_retained";
3879
+ explicit_none: "explicit_none";
3880
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
3881
+ }>;
3882
+ }, z.core.$strict>>>;
3883
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3884
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
3885
+ unknown: "unknown";
3886
+ user: "user";
3887
+ agent: "agent";
3888
+ }>>;
3889
+ startTime: z.ZodISODateTime;
3890
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3891
+ evidence: z.ZodEnum<{
3892
+ native_dynamic_workflow: "native_dynamic_workflow";
3893
+ }>;
3894
+ name: z.ZodString;
3895
+ team: z.ZodString;
3896
+ }, z.core.$strip>>>;
3897
+ toolCallCount: z.ZodInt;
3898
+ totalTokens: z.ZodInt;
3899
+ turnCount: z.ZodInt;
3900
+ }, z.core.$strip>;
3901
+ sync: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3902
+ durationMs: z.ZodCoercedBigInt<unknown>;
3903
+ harness: z.ZodEnum<{
3904
+ strike: "strike";
3905
+ cursor: "cursor";
3906
+ "claude-code": "claude-code";
3907
+ "gemini-cli": "gemini-cli";
3908
+ codex: "codex";
3909
+ opencode: "opencode";
3910
+ antigravity: "antigravity";
3911
+ pi: "pi";
3912
+ }>;
3913
+ holdReason: z.ZodOptional<z.ZodEnum<{
3914
+ metrics_missing: "metrics_missing";
3915
+ metadata_missing: "metadata_missing";
3916
+ }>>;
3917
+ hostSlug: z.ZodString;
3918
+ id: z.ZodString;
3919
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
3920
+ model: z.ZodString;
3921
+ parentSessionId: z.ZodOptional<z.ZodString>;
3922
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
3923
+ previouslyPushed: z.ZodBoolean;
3924
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3925
+ projectName: z.ZodString;
3926
+ startTime: z.ZodString;
3927
+ syncStatus: z.ZodEnum<{
3928
+ new: "new";
3929
+ updated: "updated";
3930
+ held: "held";
3931
+ synced: "synced";
3932
+ }>;
3933
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3934
+ evidence: z.ZodEnum<{
3935
+ native_dynamic_workflow: "native_dynamic_workflow";
3936
+ }>;
3937
+ name: z.ZodString;
3938
+ team: z.ZodString;
3939
+ }, z.core.$strip>>>;
3940
+ totalTokens: z.ZodInt;
3941
+ turnCount: z.ZodInt;
3942
+ }, z.core.$strip>>>;
3943
+ title: z.ZodOptional<z.ZodString>;
3944
+ }, z.core.$strip>>>;
3945
+ }, z.core.$strip>>;
3700
3946
  page: z.ZodInt;
3947
+ perPage: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
3948
+ revision: z.ZodString;
3701
3949
  total: z.ZodInt;
3702
3950
  }, z.core.$strip>;
3703
3951
  export type LocalHelperMembersPayload = z.infer<typeof zLocalHelperMembersPayload>;
@@ -3857,71 +4105,495 @@ export declare const zLocalSessionListPayload: z.ZodObject<{
3857
4105
  totalTokens: z.ZodInt;
3858
4106
  turnCount: z.ZodInt;
3859
4107
  }, z.core.$strip>>>;
4108
+ title: z.ZodOptional<z.ZodString>;
3860
4109
  }, z.core.$strip>>>;
3861
4110
  }, z.core.$strip>>;
3862
- limit: z.ZodInt;
3863
- ordinarySessionTotal: z.ZodInt;
3864
- page: z.ZodInt;
3865
- totalItems: z.ZodInt;
3866
- }, z.core.$strip>;
3867
- export type LocalSessionListPayload = z.infer<typeof zLocalSessionListPayload>;
3868
- export declare const zLocalSyncSessionsPayload: z.ZodObject<{
3869
- sessions: z.ZodArray<z.ZodObject<{
3870
- durationMs: z.ZodCoercedBigInt<unknown>;
3871
- harness: z.ZodEnum<{
3872
- strike: "strike";
3873
- cursor: "cursor";
3874
- "claude-code": "claude-code";
3875
- "gemini-cli": "gemini-cli";
3876
- codex: "codex";
3877
- opencode: "opencode";
3878
- antigravity: "antigravity";
3879
- pi: "pi";
3880
- }>;
3881
- holdReason: z.ZodOptional<z.ZodEnum<{
3882
- metrics_missing: "metrics_missing";
3883
- metadata_missing: "metadata_missing";
3884
- }>>;
3885
- hostSlug: z.ZodString;
3886
- id: z.ZodString;
3887
- inputSubmissionCount: z.ZodOptional<z.ZodInt>;
3888
- model: z.ZodString;
3889
- parentSessionId: z.ZodOptional<z.ZodString>;
3890
- parentUnresolved: z.ZodOptional<z.ZodBoolean>;
3891
- previouslyPushed: z.ZodBoolean;
3892
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3893
- projectName: z.ZodString;
3894
- startTime: z.ZodString;
3895
- syncStatus: z.ZodEnum<{
3896
- new: "new";
3897
- updated: "updated";
3898
- held: "held";
3899
- synced: "synced";
3900
- }>;
3901
- teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3902
- evidence: z.ZodEnum<{
3903
- native_dynamic_workflow: "native_dynamic_workflow";
4111
+ nextItems: z.ZodArray<z.ZodObject<{
4112
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4113
+ groupId: z.ZodString;
4114
+ ownerStatus: z.ZodEnum<{
4115
+ unknown: "unknown";
4116
+ resolved: "resolved";
4117
+ general_link_only: "general_link_only";
4118
+ known_unavailable: "known_unavailable";
4119
+ inaccessible: "inaccessible";
4120
+ conflicting: "conflicting";
3904
4121
  }>;
3905
- name: z.ZodString;
3906
- team: z.ZodString;
3907
4122
  }, z.core.$strip>>>;
3908
- totalTokens: z.ZodInt;
3909
- turnCount: z.ZodInt;
3910
- }, z.core.$strip>>;
3911
- }, z.core.$strip>;
3912
- export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
3913
- /**
3914
- * Target Kind
3915
- *
3916
- * What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
3917
- */
3918
- export declare const zTargetKind: z.ZodEnum<{
3919
- session: "session";
3920
- annotation: "annotation";
3921
- project: "project";
3922
- entry: "entry";
3923
- file_version: "file_version";
3924
- association: "association";
4123
+ helperGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
4124
+ groupId: z.ZodString;
4125
+ helperThreadCount: z.ZodInt;
4126
+ memberScope: z.ZodString;
4127
+ purpose: z.ZodEnum<{
4128
+ unknown: "unknown";
4129
+ interaction: "interaction";
4130
+ delegated_work: "delegated_work";
4131
+ helper_review: "helper_review";
4132
+ }>;
4133
+ }, z.core.$strip>>>;
4134
+ kind: z.ZodEnum<{
4135
+ transcript: "transcript";
4136
+ context_container: "context_container";
4137
+ }>;
4138
+ transcript: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4139
+ matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4140
+ entryIndex: z.ZodInt;
4141
+ project: z.ZodString;
4142
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4143
+ role: z.ZodString;
4144
+ score: z.ZodNumber;
4145
+ sessionId: z.ZodString;
4146
+ snippet: z.ZodString;
4147
+ }, z.core.$strip>>>;
4148
+ session: z.ZodObject<{
4149
+ durationMins: z.ZodNumber;
4150
+ harness: z.ZodEnum<{
4151
+ strike: "strike";
4152
+ cursor: "cursor";
4153
+ "claude-code": "claude-code";
4154
+ "gemini-cli": "gemini-cli";
4155
+ codex: "codex";
4156
+ opencode: "opencode";
4157
+ antigravity: "antigravity";
4158
+ pi: "pi";
4159
+ }>;
4160
+ id: z.ZodString;
4161
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4162
+ outcome: z.ZodOptional<z.ZodString>;
4163
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4164
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4165
+ preview: z.ZodOptional<z.ZodString>;
4166
+ project: z.ZodOptional<z.ZodString>;
4167
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4168
+ purpose: z.ZodOptional<z.ZodEnum<{
4169
+ unknown: "unknown";
4170
+ interaction: "interaction";
4171
+ delegated_work: "delegated_work";
4172
+ helper_review: "helper_review";
4173
+ }>>;
4174
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
4175
+ anchor: z.ZodOptional<z.ZodObject<{
4176
+ kind: z.ZodEnum<{
4177
+ general_source_session: "general_source_session";
4178
+ before_redacted_entry: "before_redacted_entry";
4179
+ through_redacted_entry: "through_redacted_entry";
4180
+ }>;
4181
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
4182
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
4183
+ }, z.core.$strict>>;
4184
+ evidence: z.ZodEnum<{
4185
+ unknown: "unknown";
4186
+ native_typed: "native_typed";
4187
+ lifecycle_typed: "lifecycle_typed";
4188
+ existing_adapter: "existing_adapter";
4189
+ retained_last_good: "retained_last_good";
4190
+ conflict: "conflict";
4191
+ }>;
4192
+ kind: z.ZodEnum<{
4193
+ started_by: "started_by";
4194
+ context_from: "context_from";
4195
+ }>;
4196
+ targetLocalId: z.ZodOptional<z.ZodString>;
4197
+ targetState: z.ZodEnum<{
4198
+ unknown: "unknown";
4199
+ target_known: "target_known";
4200
+ target_known_retained: "target_known_retained";
4201
+ explicit_none: "explicit_none";
4202
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
4203
+ }>;
4204
+ }, z.core.$strict>>>;
4205
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4206
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
4207
+ unknown: "unknown";
4208
+ user: "user";
4209
+ agent: "agent";
4210
+ }>>;
4211
+ startTime: z.ZodISODateTime;
4212
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4213
+ evidence: z.ZodEnum<{
4214
+ native_dynamic_workflow: "native_dynamic_workflow";
4215
+ }>;
4216
+ name: z.ZodString;
4217
+ team: z.ZodString;
4218
+ }, z.core.$strip>>>;
4219
+ toolCallCount: z.ZodInt;
4220
+ totalTokens: z.ZodInt;
4221
+ turnCount: z.ZodInt;
4222
+ }, z.core.$strip>;
4223
+ sync: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4224
+ durationMs: z.ZodCoercedBigInt<unknown>;
4225
+ harness: z.ZodEnum<{
4226
+ strike: "strike";
4227
+ cursor: "cursor";
4228
+ "claude-code": "claude-code";
4229
+ "gemini-cli": "gemini-cli";
4230
+ codex: "codex";
4231
+ opencode: "opencode";
4232
+ antigravity: "antigravity";
4233
+ pi: "pi";
4234
+ }>;
4235
+ holdReason: z.ZodOptional<z.ZodEnum<{
4236
+ metrics_missing: "metrics_missing";
4237
+ metadata_missing: "metadata_missing";
4238
+ }>>;
4239
+ hostSlug: z.ZodString;
4240
+ id: z.ZodString;
4241
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4242
+ model: z.ZodString;
4243
+ parentSessionId: z.ZodOptional<z.ZodString>;
4244
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4245
+ previouslyPushed: z.ZodBoolean;
4246
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4247
+ projectName: z.ZodString;
4248
+ startTime: z.ZodString;
4249
+ syncStatus: z.ZodEnum<{
4250
+ new: "new";
4251
+ updated: "updated";
4252
+ held: "held";
4253
+ synced: "synced";
4254
+ }>;
4255
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4256
+ evidence: z.ZodEnum<{
4257
+ native_dynamic_workflow: "native_dynamic_workflow";
4258
+ }>;
4259
+ name: z.ZodString;
4260
+ team: z.ZodString;
4261
+ }, z.core.$strip>>>;
4262
+ totalTokens: z.ZodInt;
4263
+ turnCount: z.ZodInt;
4264
+ }, z.core.$strip>>>;
4265
+ title: z.ZodOptional<z.ZodString>;
4266
+ }, z.core.$strip>>>;
4267
+ }, z.core.$strip>>;
4268
+ ordinarySessionTotal: z.ZodInt;
4269
+ page: z.ZodInt;
4270
+ perPage: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
4271
+ revision: z.ZodString;
4272
+ total: z.ZodInt;
4273
+ }, z.core.$strip>;
4274
+ export type LocalSessionListPayload = z.infer<typeof zLocalSessionListPayload>;
4275
+ export declare const zLocalSessionPage: z.ZodObject<{
4276
+ items: z.ZodArray<z.ZodObject<{
4277
+ matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4278
+ entryIndex: z.ZodInt;
4279
+ project: z.ZodString;
4280
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4281
+ role: z.ZodString;
4282
+ score: z.ZodNumber;
4283
+ sessionId: z.ZodString;
4284
+ snippet: z.ZodString;
4285
+ }, z.core.$strip>>>;
4286
+ session: z.ZodObject<{
4287
+ durationMins: z.ZodNumber;
4288
+ harness: z.ZodEnum<{
4289
+ strike: "strike";
4290
+ cursor: "cursor";
4291
+ "claude-code": "claude-code";
4292
+ "gemini-cli": "gemini-cli";
4293
+ codex: "codex";
4294
+ opencode: "opencode";
4295
+ antigravity: "antigravity";
4296
+ pi: "pi";
4297
+ }>;
4298
+ id: z.ZodString;
4299
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4300
+ outcome: z.ZodOptional<z.ZodString>;
4301
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4302
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4303
+ preview: z.ZodOptional<z.ZodString>;
4304
+ project: z.ZodOptional<z.ZodString>;
4305
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4306
+ purpose: z.ZodOptional<z.ZodEnum<{
4307
+ unknown: "unknown";
4308
+ interaction: "interaction";
4309
+ delegated_work: "delegated_work";
4310
+ helper_review: "helper_review";
4311
+ }>>;
4312
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
4313
+ anchor: z.ZodOptional<z.ZodObject<{
4314
+ kind: z.ZodEnum<{
4315
+ general_source_session: "general_source_session";
4316
+ before_redacted_entry: "before_redacted_entry";
4317
+ through_redacted_entry: "through_redacted_entry";
4318
+ }>;
4319
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
4320
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
4321
+ }, z.core.$strict>>;
4322
+ evidence: z.ZodEnum<{
4323
+ unknown: "unknown";
4324
+ native_typed: "native_typed";
4325
+ lifecycle_typed: "lifecycle_typed";
4326
+ existing_adapter: "existing_adapter";
4327
+ retained_last_good: "retained_last_good";
4328
+ conflict: "conflict";
4329
+ }>;
4330
+ kind: z.ZodEnum<{
4331
+ started_by: "started_by";
4332
+ context_from: "context_from";
4333
+ }>;
4334
+ targetLocalId: z.ZodOptional<z.ZodString>;
4335
+ targetState: z.ZodEnum<{
4336
+ unknown: "unknown";
4337
+ target_known: "target_known";
4338
+ target_known_retained: "target_known_retained";
4339
+ explicit_none: "explicit_none";
4340
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
4341
+ }>;
4342
+ }, z.core.$strict>>>;
4343
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4344
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
4345
+ unknown: "unknown";
4346
+ user: "user";
4347
+ agent: "agent";
4348
+ }>>;
4349
+ startTime: z.ZodISODateTime;
4350
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4351
+ evidence: z.ZodEnum<{
4352
+ native_dynamic_workflow: "native_dynamic_workflow";
4353
+ }>;
4354
+ name: z.ZodString;
4355
+ team: z.ZodString;
4356
+ }, z.core.$strip>>>;
4357
+ toolCallCount: z.ZodInt;
4358
+ totalTokens: z.ZodInt;
4359
+ turnCount: z.ZodInt;
4360
+ }, z.core.$strip>;
4361
+ sync: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4362
+ durationMs: z.ZodCoercedBigInt<unknown>;
4363
+ harness: z.ZodEnum<{
4364
+ strike: "strike";
4365
+ cursor: "cursor";
4366
+ "claude-code": "claude-code";
4367
+ "gemini-cli": "gemini-cli";
4368
+ codex: "codex";
4369
+ opencode: "opencode";
4370
+ antigravity: "antigravity";
4371
+ pi: "pi";
4372
+ }>;
4373
+ holdReason: z.ZodOptional<z.ZodEnum<{
4374
+ metrics_missing: "metrics_missing";
4375
+ metadata_missing: "metadata_missing";
4376
+ }>>;
4377
+ hostSlug: z.ZodString;
4378
+ id: z.ZodString;
4379
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4380
+ model: z.ZodString;
4381
+ parentSessionId: z.ZodOptional<z.ZodString>;
4382
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4383
+ previouslyPushed: z.ZodBoolean;
4384
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4385
+ projectName: z.ZodString;
4386
+ startTime: z.ZodString;
4387
+ syncStatus: z.ZodEnum<{
4388
+ new: "new";
4389
+ updated: "updated";
4390
+ held: "held";
4391
+ synced: "synced";
4392
+ }>;
4393
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4394
+ evidence: z.ZodEnum<{
4395
+ native_dynamic_workflow: "native_dynamic_workflow";
4396
+ }>;
4397
+ name: z.ZodString;
4398
+ team: z.ZodString;
4399
+ }, z.core.$strip>>>;
4400
+ totalTokens: z.ZodInt;
4401
+ turnCount: z.ZodInt;
4402
+ }, z.core.$strip>>>;
4403
+ title: z.ZodOptional<z.ZodString>;
4404
+ }, z.core.$strip>>;
4405
+ nextItems: z.ZodArray<z.ZodObject<{
4406
+ matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
4407
+ entryIndex: z.ZodInt;
4408
+ project: z.ZodString;
4409
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4410
+ role: z.ZodString;
4411
+ score: z.ZodNumber;
4412
+ sessionId: z.ZodString;
4413
+ snippet: z.ZodString;
4414
+ }, z.core.$strip>>>;
4415
+ session: z.ZodObject<{
4416
+ durationMins: z.ZodNumber;
4417
+ harness: z.ZodEnum<{
4418
+ strike: "strike";
4419
+ cursor: "cursor";
4420
+ "claude-code": "claude-code";
4421
+ "gemini-cli": "gemini-cli";
4422
+ codex: "codex";
4423
+ opencode: "opencode";
4424
+ antigravity: "antigravity";
4425
+ pi: "pi";
4426
+ }>;
4427
+ id: z.ZodString;
4428
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4429
+ outcome: z.ZodOptional<z.ZodString>;
4430
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4431
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4432
+ preview: z.ZodOptional<z.ZodString>;
4433
+ project: z.ZodOptional<z.ZodString>;
4434
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
4435
+ purpose: z.ZodOptional<z.ZodEnum<{
4436
+ unknown: "unknown";
4437
+ interaction: "interaction";
4438
+ delegated_work: "delegated_work";
4439
+ helper_review: "helper_review";
4440
+ }>>;
4441
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
4442
+ anchor: z.ZodOptional<z.ZodObject<{
4443
+ kind: z.ZodEnum<{
4444
+ general_source_session: "general_source_session";
4445
+ before_redacted_entry: "before_redacted_entry";
4446
+ through_redacted_entry: "through_redacted_entry";
4447
+ }>;
4448
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
4449
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
4450
+ }, z.core.$strict>>;
4451
+ evidence: z.ZodEnum<{
4452
+ unknown: "unknown";
4453
+ native_typed: "native_typed";
4454
+ lifecycle_typed: "lifecycle_typed";
4455
+ existing_adapter: "existing_adapter";
4456
+ retained_last_good: "retained_last_good";
4457
+ conflict: "conflict";
4458
+ }>;
4459
+ kind: z.ZodEnum<{
4460
+ started_by: "started_by";
4461
+ context_from: "context_from";
4462
+ }>;
4463
+ targetLocalId: z.ZodOptional<z.ZodString>;
4464
+ targetState: z.ZodEnum<{
4465
+ unknown: "unknown";
4466
+ target_known: "target_known";
4467
+ target_known_retained: "target_known_retained";
4468
+ explicit_none: "explicit_none";
4469
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
4470
+ }>;
4471
+ }, z.core.$strict>>>;
4472
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4473
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
4474
+ unknown: "unknown";
4475
+ user: "user";
4476
+ agent: "agent";
4477
+ }>>;
4478
+ startTime: z.ZodISODateTime;
4479
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4480
+ evidence: z.ZodEnum<{
4481
+ native_dynamic_workflow: "native_dynamic_workflow";
4482
+ }>;
4483
+ name: z.ZodString;
4484
+ team: z.ZodString;
4485
+ }, z.core.$strip>>>;
4486
+ toolCallCount: z.ZodInt;
4487
+ totalTokens: z.ZodInt;
4488
+ turnCount: z.ZodInt;
4489
+ }, z.core.$strip>;
4490
+ sync: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4491
+ durationMs: z.ZodCoercedBigInt<unknown>;
4492
+ harness: z.ZodEnum<{
4493
+ strike: "strike";
4494
+ cursor: "cursor";
4495
+ "claude-code": "claude-code";
4496
+ "gemini-cli": "gemini-cli";
4497
+ codex: "codex";
4498
+ opencode: "opencode";
4499
+ antigravity: "antigravity";
4500
+ pi: "pi";
4501
+ }>;
4502
+ holdReason: z.ZodOptional<z.ZodEnum<{
4503
+ metrics_missing: "metrics_missing";
4504
+ metadata_missing: "metadata_missing";
4505
+ }>>;
4506
+ hostSlug: z.ZodString;
4507
+ id: z.ZodString;
4508
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4509
+ model: z.ZodString;
4510
+ parentSessionId: z.ZodOptional<z.ZodString>;
4511
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4512
+ previouslyPushed: z.ZodBoolean;
4513
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4514
+ projectName: z.ZodString;
4515
+ startTime: z.ZodString;
4516
+ syncStatus: z.ZodEnum<{
4517
+ new: "new";
4518
+ updated: "updated";
4519
+ held: "held";
4520
+ synced: "synced";
4521
+ }>;
4522
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4523
+ evidence: z.ZodEnum<{
4524
+ native_dynamic_workflow: "native_dynamic_workflow";
4525
+ }>;
4526
+ name: z.ZodString;
4527
+ team: z.ZodString;
4528
+ }, z.core.$strip>>>;
4529
+ totalTokens: z.ZodInt;
4530
+ turnCount: z.ZodInt;
4531
+ }, z.core.$strip>>>;
4532
+ title: z.ZodOptional<z.ZodString>;
4533
+ }, z.core.$strip>>;
4534
+ page: z.ZodInt;
4535
+ perPage: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
4536
+ revision: z.ZodString;
4537
+ total: z.ZodInt;
4538
+ }, z.core.$strip>;
4539
+ export type LocalSessionPage = z.infer<typeof zLocalSessionPage>;
4540
+ export declare const zLocalSyncSessionsPayload: z.ZodObject<{
4541
+ sessions: z.ZodArray<z.ZodObject<{
4542
+ durationMs: z.ZodCoercedBigInt<unknown>;
4543
+ harness: z.ZodEnum<{
4544
+ strike: "strike";
4545
+ cursor: "cursor";
4546
+ "claude-code": "claude-code";
4547
+ "gemini-cli": "gemini-cli";
4548
+ codex: "codex";
4549
+ opencode: "opencode";
4550
+ antigravity: "antigravity";
4551
+ pi: "pi";
4552
+ }>;
4553
+ holdReason: z.ZodOptional<z.ZodEnum<{
4554
+ metrics_missing: "metrics_missing";
4555
+ metadata_missing: "metadata_missing";
4556
+ }>>;
4557
+ hostSlug: z.ZodString;
4558
+ id: z.ZodString;
4559
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
4560
+ model: z.ZodString;
4561
+ parentSessionId: z.ZodOptional<z.ZodString>;
4562
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
4563
+ previouslyPushed: z.ZodBoolean;
4564
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
4565
+ projectName: z.ZodString;
4566
+ startTime: z.ZodString;
4567
+ syncStatus: z.ZodEnum<{
4568
+ new: "new";
4569
+ updated: "updated";
4570
+ held: "held";
4571
+ synced: "synced";
4572
+ }>;
4573
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4574
+ evidence: z.ZodEnum<{
4575
+ native_dynamic_workflow: "native_dynamic_workflow";
4576
+ }>;
4577
+ name: z.ZodString;
4578
+ team: z.ZodString;
4579
+ }, z.core.$strip>>>;
4580
+ totalTokens: z.ZodInt;
4581
+ turnCount: z.ZodInt;
4582
+ }, z.core.$strip>>;
4583
+ }, z.core.$strip>;
4584
+ export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
4585
+ /**
4586
+ * Target Kind
4587
+ *
4588
+ * What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
4589
+ */
4590
+ export declare const zTargetKind: z.ZodEnum<{
4591
+ session: "session";
4592
+ annotation: "annotation";
4593
+ project: "project";
4594
+ entry: "entry";
4595
+ file_version: "file_version";
4596
+ association: "association";
3925
4597
  }>;
3926
4598
  export type TargetKind = z.infer<typeof zTargetKind>;
3927
4599
  export declare const zAnnotationPushItem: z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
@@ -4497,34 +5169,160 @@ export declare const zProjectTasksPayload: z.ZodObject<{
4497
5169
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
4498
5170
  title: z.ZodString;
4499
5171
  }, z.core.$strip>>>;
4500
- }, z.core.$strip>;
4501
- export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
4502
- /**
4503
- * Thinking Level
4504
- *
4505
- * Canonical reasoning-effort level of assistant-generated output: off, minimal, low, medium, high, xhigh, max, ultra, ultracode. off is the single disabled state, ultra is above max, and ultracode is a distinct level. Omit the field when the level is unknown; never infer it from token budgets.
4506
- */
4507
- export declare const zThinkingLevel: z.ZodEnum<{
4508
- max: "max";
4509
- high: "high";
4510
- low: "low";
4511
- medium: "medium";
4512
- off: "off";
4513
- minimal: "minimal";
4514
- xhigh: "xhigh";
4515
- ultra: "ultra";
4516
- ultracode: "ultracode";
4517
- }>;
4518
- export type ThinkingLevel = z.infer<typeof zThinkingLevel>;
4519
- /**
4520
- * Thinking Level Raw
4521
- *
4522
- * Exact native thinking-level spelling observed when it differs from the emitted canonical thinkingLevel, including when no canonical level could be mapped. Source evidence, never a canonical value; numeric budgets are never raw. Non-empty, valid UTF-8, at most 128 encoded UTF-8 bytes, and no Unicode White_Space code point at either edge. Omit when nothing was observed or the native spelling is canonical.
4523
- */
4524
- export declare const zThinkingLevelRaw: z.ZodString;
4525
- export type ThinkingLevelRaw = z.infer<typeof zThinkingLevelRaw>;
4526
- export declare const zThinkingLevelChange: z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
4527
- level: z.ZodOptional<z.ZodEnum<{
5172
+ }, z.core.$strip>;
5173
+ export type ProjectTasksPayload = z.infer<typeof zProjectTasksPayload>;
5174
+ /**
5175
+ * Thinking Level
5176
+ *
5177
+ * Canonical reasoning-effort level of assistant-generated output: off, minimal, low, medium, high, xhigh, max, ultra, ultracode. off is the single disabled state, ultra is above max, and ultracode is a distinct level. Omit the field when the level is unknown; never infer it from token budgets.
5178
+ */
5179
+ export declare const zThinkingLevel: z.ZodEnum<{
5180
+ max: "max";
5181
+ high: "high";
5182
+ low: "low";
5183
+ medium: "medium";
5184
+ off: "off";
5185
+ minimal: "minimal";
5186
+ xhigh: "xhigh";
5187
+ ultra: "ultra";
5188
+ ultracode: "ultracode";
5189
+ }>;
5190
+ export type ThinkingLevel = z.infer<typeof zThinkingLevel>;
5191
+ /**
5192
+ * Thinking Level Raw
5193
+ *
5194
+ * Exact native thinking-level spelling observed when it differs from the emitted canonical thinkingLevel, including when no canonical level could be mapped. Source evidence, never a canonical value; numeric budgets are never raw. Non-empty, valid UTF-8, at most 128 encoded UTF-8 bytes, and no Unicode White_Space code point at either edge. Omit when nothing was observed or the native spelling is canonical.
5195
+ */
5196
+ export declare const zThinkingLevelRaw: z.ZodString;
5197
+ export type ThinkingLevelRaw = z.infer<typeof zThinkingLevelRaw>;
5198
+ export declare const zThinkingLevelChange: z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
5199
+ level: z.ZodOptional<z.ZodEnum<{
5200
+ max: "max";
5201
+ high: "high";
5202
+ low: "low";
5203
+ medium: "medium";
5204
+ off: "off";
5205
+ minimal: "minimal";
5206
+ xhigh: "xhigh";
5207
+ ultra: "ultra";
5208
+ ultracode: "ultracode";
5209
+ }>>;
5210
+ raw: z.ZodOptional<z.ZodString>;
5211
+ }, z.core.$strip>>;
5212
+ export type ThinkingLevelChange = z.infer<typeof zThinkingLevelChange>;
5213
+ export declare const zSessionDetailHeader: z.ZodObject<{
5214
+ childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5215
+ id: z.ZodString;
5216
+ project: z.ZodOptional<z.ZodString>;
5217
+ startTime: z.ZodISODateTime;
5218
+ }, z.core.$strip>>>;
5219
+ diagnostics: z.ZodOptional<z.ZodObject<{
5220
+ partial: z.ZodBoolean;
5221
+ }, z.core.$strip>>;
5222
+ durationMins: z.ZodNumber;
5223
+ earlierHistory: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5224
+ uncertain_migrated: "uncertain_migrated";
5225
+ uncertain_unresolved: "uncertain_unresolved";
5226
+ }>>>;
5227
+ endTime: z.ZodISODateTime;
5228
+ gitBranch: z.ZodOptional<z.ZodString>;
5229
+ gitRemote: z.ZodOptional<z.ZodString>;
5230
+ harness: z.ZodEnum<{
5231
+ strike: "strike";
5232
+ cursor: "cursor";
5233
+ "claude-code": "claude-code";
5234
+ "gemini-cli": "gemini-cli";
5235
+ codex: "codex";
5236
+ opencode: "opencode";
5237
+ antigravity: "antigravity";
5238
+ pi: "pi";
5239
+ }>;
5240
+ id: z.ZodString;
5241
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
5242
+ model: z.ZodOptional<z.ZodString>;
5243
+ outcome: z.ZodOptional<z.ZodEnum<{
5244
+ failed: "failed";
5245
+ partial: "partial";
5246
+ resolved: "resolved";
5247
+ }>>;
5248
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5249
+ project: z.ZodOptional<z.ZodString>;
5250
+ purpose: z.ZodOptional<z.ZodEnum<{
5251
+ unknown: "unknown";
5252
+ interaction: "interaction";
5253
+ delegated_work: "delegated_work";
5254
+ helper_review: "helper_review";
5255
+ }>>;
5256
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
5257
+ anchor: z.ZodOptional<z.ZodObject<{
5258
+ kind: z.ZodEnum<{
5259
+ general_source_session: "general_source_session";
5260
+ before_redacted_entry: "before_redacted_entry";
5261
+ through_redacted_entry: "through_redacted_entry";
5262
+ }>;
5263
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
5264
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
5265
+ }, z.core.$strict>>;
5266
+ evidence: z.ZodEnum<{
5267
+ unknown: "unknown";
5268
+ native_typed: "native_typed";
5269
+ lifecycle_typed: "lifecycle_typed";
5270
+ existing_adapter: "existing_adapter";
5271
+ retained_last_good: "retained_last_good";
5272
+ conflict: "conflict";
5273
+ }>;
5274
+ kind: z.ZodEnum<{
5275
+ started_by: "started_by";
5276
+ context_from: "context_from";
5277
+ }>;
5278
+ targetLocalId: z.ZodOptional<z.ZodString>;
5279
+ targetState: z.ZodEnum<{
5280
+ unknown: "unknown";
5281
+ target_known: "target_known";
5282
+ target_known_retained: "target_known_retained";
5283
+ explicit_none: "explicit_none";
5284
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
5285
+ }>;
5286
+ }, z.core.$strict>>>;
5287
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
5288
+ kind: z.ZodString;
5289
+ namespace: z.ZodString;
5290
+ payload: z.ZodString;
5291
+ pointer: z.ZodString;
5292
+ position: z.ZodNumber;
5293
+ recordIndex: z.ZodNumber;
5294
+ sourceRef: z.ZodString;
5295
+ }, z.core.$strip>>>;
5296
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5297
+ schemaVersion: z.ZodOptional<z.ZodString>;
5298
+ scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5299
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5300
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5301
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5302
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5303
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5304
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5305
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5306
+ outcome: z.ZodOptional<z.ZodEnum<{
5307
+ failed: "failed";
5308
+ partial: "partial";
5309
+ resolved: "resolved";
5310
+ }>>;
5311
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5312
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5313
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5314
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5315
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5316
+ }, z.core.$strip>>>;
5317
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
5318
+ unknown: "unknown";
5319
+ user: "user";
5320
+ agent: "agent";
5321
+ }>>;
5322
+ source: z.ZodOptional<z.ZodString>;
5323
+ startTime: z.ZodISODateTime;
5324
+ status: z.ZodOptional<z.ZodString>;
5325
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
4528
5326
  max: "max";
4529
5327
  high: "high";
4530
5328
  low: "low";
@@ -4535,9 +5333,29 @@ export declare const zThinkingLevelChange: z.ZodIntersection<z.ZodUnknown, z.Zod
4535
5333
  ultra: "ultra";
4536
5334
  ultracode: "ultracode";
4537
5335
  }>>;
4538
- raw: z.ZodOptional<z.ZodString>;
4539
- }, z.core.$strip>>;
4540
- export type ThinkingLevelChange = z.infer<typeof zThinkingLevelChange>;
5336
+ thinkingLevelHistory: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
5337
+ level: z.ZodOptional<z.ZodEnum<{
5338
+ max: "max";
5339
+ high: "high";
5340
+ low: "low";
5341
+ medium: "medium";
5342
+ off: "off";
5343
+ minimal: "minimal";
5344
+ xhigh: "xhigh";
5345
+ ultra: "ultra";
5346
+ ultracode: "ultracode";
5347
+ }>>;
5348
+ raw: z.ZodOptional<z.ZodString>;
5349
+ }, z.core.$strip>>>>;
5350
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
5351
+ tokensIn: z.ZodInt;
5352
+ tokensOut: z.ZodInt;
5353
+ toolCallCount: z.ZodInt;
5354
+ totalTokens: z.ZodInt;
5355
+ turnCount: z.ZodInt;
5356
+ workingDirectory: z.ZodOptional<z.ZodString>;
5357
+ }, z.core.$strip>;
5358
+ export type SessionDetailHeader = z.infer<typeof zSessionDetailHeader>;
4541
5359
  export declare const zTimelineSessionRef: z.ZodObject<{
4542
5360
  harness: z.ZodEnum<{
4543
5361
  strike: "strike";
@@ -6049,73 +6867,273 @@ export declare const zPromptDigest: z.ZodObject<{
6049
6867
  commit: "commit";
6050
6868
  skill: "skill";
6051
6869
  }>;
6052
- ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6053
- promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6054
- text: z.ZodString;
6055
- timestamp: z.ZodISODateTime;
6056
- transcriptId: z.ZodUUID;
6057
- turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6870
+ ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6871
+ promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6872
+ text: z.ZodString;
6873
+ timestamp: z.ZodISODateTime;
6874
+ transcriptId: z.ZodUUID;
6875
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6876
+ }, z.core.$strip>>;
6877
+ skills: z.ZodArray<z.ZodObject<{
6878
+ invocationCount: z.ZodInt;
6879
+ name: z.ZodString;
6880
+ }, z.core.$strip>>;
6881
+ }, z.core.$strip>;
6882
+ export type PromptDigest = z.infer<typeof zPromptDigest>;
6883
+ export declare const zPullSkipGateItem: z.ZodObject<{
6884
+ annotationHashes: z.ZodArray<z.ZodString>;
6885
+ contentHash: z.ZodString;
6886
+ transcriptId: z.ZodUUID;
6887
+ }, z.core.$strip>;
6888
+ export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
6889
+ export declare const zPullSkipGateRequest: z.ZodObject<{
6890
+ items: z.ZodArray<z.ZodObject<{
6891
+ annotationHashes: z.ZodArray<z.ZodString>;
6892
+ contentHash: z.ZodString;
6893
+ transcriptId: z.ZodUUID;
6894
+ }, z.core.$strip>>;
6895
+ }, z.core.$strip>;
6896
+ export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
6897
+ export declare const zPullSkipGateResult: z.ZodObject<{
6898
+ annotationsCurrent: z.ZodBoolean;
6899
+ contentCurrent: z.ZodBoolean;
6900
+ transcriptId: z.ZodUUID;
6901
+ }, z.core.$strip>;
6902
+ export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
6903
+ export declare const zPullSkipGateResponse: z.ZodObject<{
6904
+ results: z.ZodArray<z.ZodObject<{
6905
+ annotationsCurrent: z.ZodBoolean;
6906
+ contentCurrent: z.ZodBoolean;
6907
+ transcriptId: z.ZodUUID;
6908
+ }, z.core.$strip>>;
6909
+ }, z.core.$strip>;
6910
+ export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
6911
+ export declare const zSessionRelationshipNavigation: z.ZodObject<{
6912
+ anchor: z.ZodOptional<z.ZodObject<{
6913
+ kind: z.ZodEnum<{
6914
+ general_source_session: "general_source_session";
6915
+ before_redacted_entry: "before_redacted_entry";
6916
+ through_redacted_entry: "through_redacted_entry";
6917
+ }>;
6918
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
6919
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
6920
+ }, z.core.$strict>>;
6921
+ kind: z.ZodEnum<{
6922
+ started_by: "started_by";
6923
+ context_from: "context_from";
6924
+ }>;
6925
+ localId: z.ZodOptional<z.ZodString>;
6926
+ status: z.ZodEnum<{
6927
+ unknown: "unknown";
6928
+ resolved: "resolved";
6929
+ general_link_only: "general_link_only";
6930
+ known_unavailable: "known_unavailable";
6931
+ inaccessible: "inaccessible";
6932
+ conflicting: "conflicting";
6933
+ }>;
6934
+ transcriptId: z.ZodOptional<z.ZodUUID>;
6935
+ }, z.core.$strict>;
6936
+ export type SessionRelationshipNavigation = z.infer<typeof zSessionRelationshipNavigation>;
6937
+ export declare const zSessionDetailHeaderPayload: z.ZodObject<{
6938
+ childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6939
+ id: z.ZodString;
6940
+ project: z.ZodOptional<z.ZodString>;
6941
+ startTime: z.ZodISODateTime;
6942
+ }, z.core.$strip>>>;
6943
+ diagnostics: z.ZodOptional<z.ZodObject<{
6944
+ partial: z.ZodBoolean;
6945
+ }, z.core.$strip>>;
6946
+ durationMins: z.ZodNumber;
6947
+ earlierHistory: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6948
+ uncertain_migrated: "uncertain_migrated";
6949
+ uncertain_unresolved: "uncertain_unresolved";
6950
+ }>>>;
6951
+ endTime: z.ZodISODateTime;
6952
+ gitBranch: z.ZodOptional<z.ZodString>;
6953
+ gitRemote: z.ZodOptional<z.ZodString>;
6954
+ harness: z.ZodEnum<{
6955
+ strike: "strike";
6956
+ cursor: "cursor";
6957
+ "claude-code": "claude-code";
6958
+ "gemini-cli": "gemini-cli";
6959
+ codex: "codex";
6960
+ opencode: "opencode";
6961
+ antigravity: "antigravity";
6962
+ pi: "pi";
6963
+ }>;
6964
+ id: z.ZodString;
6965
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
6966
+ model: z.ZodOptional<z.ZodString>;
6967
+ outcome: z.ZodOptional<z.ZodEnum<{
6968
+ failed: "failed";
6969
+ partial: "partial";
6970
+ resolved: "resolved";
6971
+ }>>;
6972
+ parentSessionId: z.ZodOptional<z.ZodString>;
6973
+ project: z.ZodOptional<z.ZodString>;
6974
+ purpose: z.ZodOptional<z.ZodEnum<{
6975
+ unknown: "unknown";
6976
+ interaction: "interaction";
6977
+ delegated_work: "delegated_work";
6978
+ helper_review: "helper_review";
6979
+ }>>;
6980
+ relationshipNavigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
6981
+ anchor: z.ZodOptional<z.ZodObject<{
6982
+ kind: z.ZodEnum<{
6983
+ general_source_session: "general_source_session";
6984
+ before_redacted_entry: "before_redacted_entry";
6985
+ through_redacted_entry: "through_redacted_entry";
6986
+ }>;
6987
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
6988
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
6989
+ }, z.core.$strict>>;
6990
+ kind: z.ZodEnum<{
6991
+ started_by: "started_by";
6992
+ context_from: "context_from";
6993
+ }>;
6994
+ localId: z.ZodOptional<z.ZodString>;
6995
+ status: z.ZodEnum<{
6996
+ unknown: "unknown";
6997
+ resolved: "resolved";
6998
+ general_link_only: "general_link_only";
6999
+ known_unavailable: "known_unavailable";
7000
+ inaccessible: "inaccessible";
7001
+ conflicting: "conflicting";
7002
+ }>;
7003
+ transcriptId: z.ZodOptional<z.ZodUUID>;
7004
+ }, z.core.$strict>>>;
7005
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
7006
+ anchor: z.ZodOptional<z.ZodObject<{
7007
+ kind: z.ZodEnum<{
7008
+ general_source_session: "general_source_session";
7009
+ before_redacted_entry: "before_redacted_entry";
7010
+ through_redacted_entry: "through_redacted_entry";
7011
+ }>;
7012
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
7013
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
7014
+ }, z.core.$strict>>;
7015
+ evidence: z.ZodEnum<{
7016
+ unknown: "unknown";
7017
+ native_typed: "native_typed";
7018
+ lifecycle_typed: "lifecycle_typed";
7019
+ existing_adapter: "existing_adapter";
7020
+ retained_last_good: "retained_last_good";
7021
+ conflict: "conflict";
7022
+ }>;
7023
+ kind: z.ZodEnum<{
7024
+ started_by: "started_by";
7025
+ context_from: "context_from";
7026
+ }>;
7027
+ targetLocalId: z.ZodOptional<z.ZodString>;
7028
+ targetState: z.ZodEnum<{
7029
+ unknown: "unknown";
7030
+ target_known: "target_known";
7031
+ target_known_retained: "target_known_retained";
7032
+ explicit_none: "explicit_none";
7033
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
7034
+ }>;
7035
+ }, z.core.$strict>>>;
7036
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
7037
+ kind: z.ZodString;
7038
+ namespace: z.ZodString;
7039
+ payload: z.ZodString;
7040
+ pointer: z.ZodString;
7041
+ position: z.ZodNumber;
7042
+ recordIndex: z.ZodNumber;
7043
+ sourceRef: z.ZodString;
7044
+ }, z.core.$strip>>>;
7045
+ rootSessionId: z.ZodOptional<z.ZodString>;
7046
+ schemaVersion: z.ZodOptional<z.ZodString>;
7047
+ scorecard: z.ZodOptional<z.ZodObject<{
7048
+ costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7049
+ m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7050
+ m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7051
+ m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7052
+ m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7053
+ m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7054
+ m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7055
+ outcome: z.ZodOptional<z.ZodEnum<{
7056
+ failed: "failed";
7057
+ partial: "partial";
7058
+ resolved: "resolved";
7059
+ }>>;
7060
+ retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7061
+ signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7062
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7063
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7064
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6058
7065
  }, z.core.$strip>>;
6059
- skills: z.ZodArray<z.ZodObject<{
6060
- invocationCount: z.ZodInt;
7066
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
7067
+ unknown: "unknown";
7068
+ user: "user";
7069
+ agent: "agent";
7070
+ }>>;
7071
+ source: z.ZodOptional<z.ZodString>;
7072
+ startTime: z.ZodISODateTime;
7073
+ status: z.ZodOptional<z.ZodString>;
7074
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7075
+ evidence: z.ZodEnum<{
7076
+ native_dynamic_workflow: "native_dynamic_workflow";
7077
+ }>;
6061
7078
  name: z.ZodString;
6062
- }, z.core.$strip>>;
6063
- }, z.core.$strip>;
6064
- export type PromptDigest = z.infer<typeof zPromptDigest>;
6065
- export declare const zPullSkipGateItem: z.ZodObject<{
6066
- annotationHashes: z.ZodArray<z.ZodString>;
6067
- contentHash: z.ZodString;
6068
- transcriptId: z.ZodUUID;
6069
- }, z.core.$strip>;
6070
- export type PullSkipGateItem = z.infer<typeof zPullSkipGateItem>;
6071
- export declare const zPullSkipGateRequest: z.ZodObject<{
6072
- items: z.ZodArray<z.ZodObject<{
6073
- annotationHashes: z.ZodArray<z.ZodString>;
6074
- contentHash: z.ZodString;
6075
- transcriptId: z.ZodUUID;
6076
- }, z.core.$strip>>;
6077
- }, z.core.$strip>;
6078
- export type PullSkipGateRequest = z.infer<typeof zPullSkipGateRequest>;
6079
- export declare const zPullSkipGateResult: z.ZodObject<{
6080
- annotationsCurrent: z.ZodBoolean;
6081
- contentCurrent: z.ZodBoolean;
6082
- transcriptId: z.ZodUUID;
7079
+ team: z.ZodString;
7080
+ }, z.core.$strip>>>;
7081
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
7082
+ max: "max";
7083
+ high: "high";
7084
+ low: "low";
7085
+ medium: "medium";
7086
+ off: "off";
7087
+ minimal: "minimal";
7088
+ xhigh: "xhigh";
7089
+ ultra: "ultra";
7090
+ ultracode: "ultracode";
7091
+ }>>;
7092
+ thinkingLevelHistory: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodUnknown, z.ZodObject<{
7093
+ level: z.ZodOptional<z.ZodEnum<{
7094
+ max: "max";
7095
+ high: "high";
7096
+ low: "low";
7097
+ medium: "medium";
7098
+ off: "off";
7099
+ minimal: "minimal";
7100
+ xhigh: "xhigh";
7101
+ ultra: "ultra";
7102
+ ultracode: "ultracode";
7103
+ }>>;
7104
+ raw: z.ZodOptional<z.ZodString>;
7105
+ }, z.core.$strip>>>>;
7106
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
7107
+ tokensIn: z.ZodInt;
7108
+ tokensOut: z.ZodInt;
7109
+ toolCallCount: z.ZodInt;
7110
+ totalTokens: z.ZodInt;
7111
+ turnCount: z.ZodInt;
7112
+ workingDirectory: z.ZodOptional<z.ZodString>;
6083
7113
  }, z.core.$strip>;
6084
- export type PullSkipGateResult = z.infer<typeof zPullSkipGateResult>;
6085
- export declare const zPullSkipGateResponse: z.ZodObject<{
6086
- results: z.ZodArray<z.ZodObject<{
6087
- annotationsCurrent: z.ZodBoolean;
6088
- contentCurrent: z.ZodBoolean;
6089
- transcriptId: z.ZodUUID;
7114
+ export type SessionDetailHeaderPayload = z.infer<typeof zSessionDetailHeaderPayload>;
7115
+ export declare const zTranscriptSegmentRef: z.ZodObject<{
7116
+ byteLength: z.ZodInt;
7117
+ firstTurn: z.ZodInt;
7118
+ index: z.ZodInt;
7119
+ lastTurn: z.ZodInt;
7120
+ }, z.core.$strip>;
7121
+ export type TranscriptSegmentRef = z.infer<typeof zTranscriptSegmentRef>;
7122
+ export declare const zTranscriptSegmentDirectory: z.ZodObject<{
7123
+ directoryPage: z.ZodOptional<z.ZodInt>;
7124
+ directoryPerPage: z.ZodOptional<z.ZodInt>;
7125
+ revision: z.ZodString;
7126
+ segments: z.ZodArray<z.ZodObject<{
7127
+ byteLength: z.ZodInt;
7128
+ firstTurn: z.ZodInt;
7129
+ index: z.ZodInt;
7130
+ lastTurn: z.ZodInt;
6090
7131
  }, z.core.$strip>>;
7132
+ sessionId: z.ZodString;
7133
+ totalSegments: z.ZodInt;
7134
+ totalTurns: z.ZodInt;
6091
7135
  }, z.core.$strip>;
6092
- export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
6093
- export declare const zSessionRelationshipNavigation: z.ZodObject<{
6094
- anchor: z.ZodOptional<z.ZodObject<{
6095
- kind: z.ZodEnum<{
6096
- general_source_session: "general_source_session";
6097
- before_redacted_entry: "before_redacted_entry";
6098
- through_redacted_entry: "through_redacted_entry";
6099
- }>;
6100
- sourceEntryRef: z.ZodOptional<z.ZodString>;
6101
- sourceRevisionRef: z.ZodOptional<z.ZodString>;
6102
- }, z.core.$strict>>;
6103
- kind: z.ZodEnum<{
6104
- started_by: "started_by";
6105
- context_from: "context_from";
6106
- }>;
6107
- localId: z.ZodOptional<z.ZodString>;
6108
- status: z.ZodEnum<{
6109
- unknown: "unknown";
6110
- resolved: "resolved";
6111
- general_link_only: "general_link_only";
6112
- known_unavailable: "known_unavailable";
6113
- inaccessible: "inaccessible";
6114
- conflicting: "conflicting";
6115
- }>;
6116
- transcriptId: z.ZodOptional<z.ZodUUID>;
6117
- }, z.core.$strict>;
6118
- export type SessionRelationshipNavigation = z.infer<typeof zSessionRelationshipNavigation>;
7136
+ export type TranscriptSegmentDirectory = z.infer<typeof zTranscriptSegmentDirectory>;
6119
7137
  /**
6120
7138
  * TranscriptUpdateLicense
6121
7139
  *
@@ -6186,6 +7204,19 @@ export declare const zTranscriptUpdateRequest: z.ZodObject<{
6186
7204
  }>>;
6187
7205
  }, z.core.$strict>;
6188
7206
  export type TranscriptUpdateRequest = z.infer<typeof zTranscriptUpdateRequest>;
7207
+ export declare const zTranscriptWindow: z.ZodObject<{
7208
+ anchorTurn: z.ZodInt;
7209
+ firstTurn: z.ZodInt;
7210
+ hasNewer: z.ZodBoolean;
7211
+ hasOlder: z.ZodBoolean;
7212
+ lastTurn: z.ZodInt;
7213
+ requestedAnchor: z.ZodInt;
7214
+ revision: z.ZodString;
7215
+ segments: z.ZodArray<z.ZodInt>;
7216
+ sessionId: z.ZodString;
7217
+ span: z.ZodInt;
7218
+ }, z.core.$strip>;
7219
+ export type TranscriptWindow = z.infer<typeof zTranscriptWindow>;
6189
7220
  export declare const zTrendsPayload: z.ZodObject<{
6190
7221
  days: z.ZodNullable<z.ZodArray<z.ZodObject<{
6191
7222
  date: z.ZodString;
@@ -6779,7 +7810,295 @@ export declare const zToolCallDetail: z.ZodObject<{
6779
7810
  execute: "execute";
6780
7811
  think: "think";
6781
7812
  }>>;
6782
- usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7813
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7814
+ completeness: z.ZodEnum<{
7815
+ unknown: "unknown";
7816
+ complete: "complete";
7817
+ partial: "partial";
7818
+ }>;
7819
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7820
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7821
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7822
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7823
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7824
+ source: z.ZodString;
7825
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7826
+ }, z.core.$strip>>>;
7827
+ ownerId: z.ZodString;
7828
+ scope: z.ZodEnum<{
7829
+ summary: "summary";
7830
+ assistant: "assistant";
7831
+ tool: "tool";
7832
+ }>;
7833
+ sourceEntryRef: z.ZodString;
7834
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7835
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7836
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7837
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7838
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7839
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7840
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7841
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7842
+ }, z.core.$strip>>>;
7843
+ }, z.core.$strip>>>;
7844
+ }, z.core.$strip>;
7845
+ export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
7846
+ export declare const zTranscriptTurn: z.ZodObject<{
7847
+ agentName: z.ZodOptional<z.ZodString>;
7848
+ byteLength: z.ZodInt;
7849
+ command: z.ZodOptional<z.ZodObject<{
7850
+ args: z.ZodOptional<z.ZodString>;
7851
+ name: z.ZodString;
7852
+ }, z.core.$strip>>;
7853
+ content: z.ZodString;
7854
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7855
+ depth: z.ZodInt;
7856
+ entryType: z.ZodOptional<z.ZodEnum<{
7857
+ error: "error";
7858
+ text: "text";
7859
+ tool_use: "tool_use";
7860
+ tool_result: "tool_result";
7861
+ thinking: "thinking";
7862
+ system: "system";
7863
+ result: "result";
7864
+ }>>;
7865
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
7866
+ index: z.ZodInt;
7867
+ observedModel: z.ZodOptional<z.ZodString>;
7868
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7869
+ provenance: z.ZodOptional<z.ZodObject<{
7870
+ actor: z.ZodEnum<{
7871
+ unknown: "unknown";
7872
+ operator: "operator";
7873
+ agent_delegate: "agent_delegate";
7874
+ harness: "harness";
7875
+ }>;
7876
+ delivery: z.ZodEnum<{
7877
+ unknown: "unknown";
7878
+ session_admission: "session_admission";
7879
+ guardian_review: "guardian_review";
7880
+ subagent_delivery: "subagent_delivery";
7881
+ inherited_context: "inherited_context";
7882
+ tool_delivery: "tool_delivery";
7883
+ system_lifecycle: "system_lifecycle";
7884
+ }>;
7885
+ evidence: z.ZodEnum<{
7886
+ unknown: "unknown";
7887
+ native_typed: "native_typed";
7888
+ lifecycle_typed: "lifecycle_typed";
7889
+ existing_adapter: "existing_adapter";
7890
+ retained_last_good: "retained_last_good";
7891
+ conflict: "conflict";
7892
+ }>;
7893
+ inputModality: z.ZodEnum<{
7894
+ none: "none";
7895
+ media: "media";
7896
+ unknown: "unknown";
7897
+ text: "text";
7898
+ user_action: "user_action";
7899
+ mixed: "mixed";
7900
+ }>;
7901
+ origin: z.ZodEnum<{
7902
+ unknown: "unknown";
7903
+ submitted_input: "submitted_input";
7904
+ harness_context: "harness_context";
7905
+ agent_output: "agent_output";
7906
+ agent_communication: "agent_communication";
7907
+ tool_activity: "tool_activity";
7908
+ system_control: "system_control";
7909
+ generated_summary: "generated_summary";
7910
+ }>;
7911
+ ownership: z.ZodEnum<{
7912
+ uncertain: "uncertain";
7913
+ local: "local";
7914
+ inherited: "inherited";
7915
+ }>;
7916
+ submissionRef: z.ZodOptional<z.ZodString>;
7917
+ }, z.core.$strict>>;
7918
+ role: z.ZodEnum<{
7919
+ user: "user";
7920
+ system: "system";
7921
+ assistant: "assistant";
7922
+ tool: "tool";
7923
+ }>;
7924
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
7925
+ stopReason: z.ZodOptional<z.ZodEnum<{
7926
+ cancelled: "cancelled";
7927
+ end_turn: "end_turn";
7928
+ max_tokens: "max_tokens";
7929
+ max_turn_requests: "max_turn_requests";
7930
+ refusal: "refusal";
7931
+ }>>;
7932
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
7933
+ max: "max";
7934
+ high: "high";
7935
+ low: "low";
7936
+ medium: "medium";
7937
+ off: "off";
7938
+ minimal: "minimal";
7939
+ xhigh: "xhigh";
7940
+ ultra: "ultra";
7941
+ ultracode: "ultracode";
7942
+ }>>;
7943
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
7944
+ timestamp: z.ZodISODateTime;
7945
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7946
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
7947
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
7948
+ arguments: z.ZodString;
7949
+ callEntryRef: z.ZodOptional<z.ZodString>;
7950
+ callProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7951
+ actor: z.ZodEnum<{
7952
+ unknown: "unknown";
7953
+ operator: "operator";
7954
+ agent_delegate: "agent_delegate";
7955
+ harness: "harness";
7956
+ }>;
7957
+ delivery: z.ZodEnum<{
7958
+ unknown: "unknown";
7959
+ session_admission: "session_admission";
7960
+ guardian_review: "guardian_review";
7961
+ subagent_delivery: "subagent_delivery";
7962
+ inherited_context: "inherited_context";
7963
+ tool_delivery: "tool_delivery";
7964
+ system_lifecycle: "system_lifecycle";
7965
+ }>;
7966
+ evidence: z.ZodEnum<{
7967
+ unknown: "unknown";
7968
+ native_typed: "native_typed";
7969
+ lifecycle_typed: "lifecycle_typed";
7970
+ existing_adapter: "existing_adapter";
7971
+ retained_last_good: "retained_last_good";
7972
+ conflict: "conflict";
7973
+ }>;
7974
+ inputModality: z.ZodEnum<{
7975
+ none: "none";
7976
+ media: "media";
7977
+ unknown: "unknown";
7978
+ text: "text";
7979
+ user_action: "user_action";
7980
+ mixed: "mixed";
7981
+ }>;
7982
+ origin: z.ZodEnum<{
7983
+ unknown: "unknown";
7984
+ submitted_input: "submitted_input";
7985
+ harness_context: "harness_context";
7986
+ agent_output: "agent_output";
7987
+ agent_communication: "agent_communication";
7988
+ tool_activity: "tool_activity";
7989
+ system_control: "system_control";
7990
+ generated_summary: "generated_summary";
7991
+ }>;
7992
+ ownership: z.ZodEnum<{
7993
+ uncertain: "uncertain";
7994
+ local: "local";
7995
+ inherited: "inherited";
7996
+ }>;
7997
+ submissionRef: z.ZodOptional<z.ZodString>;
7998
+ }, z.core.$strict>>>;
7999
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8000
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8001
+ filePath: z.ZodOptional<z.ZodString>;
8002
+ id: z.ZodString;
8003
+ isError: z.ZodOptional<z.ZodBoolean>;
8004
+ name: z.ZodString;
8005
+ namespace: z.ZodOptional<z.ZodString>;
8006
+ result: z.ZodString;
8007
+ resultEntryRef: z.ZodOptional<z.ZodString>;
8008
+ resultProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8009
+ actor: z.ZodEnum<{
8010
+ unknown: "unknown";
8011
+ operator: "operator";
8012
+ agent_delegate: "agent_delegate";
8013
+ harness: "harness";
8014
+ }>;
8015
+ delivery: z.ZodEnum<{
8016
+ unknown: "unknown";
8017
+ session_admission: "session_admission";
8018
+ guardian_review: "guardian_review";
8019
+ subagent_delivery: "subagent_delivery";
8020
+ inherited_context: "inherited_context";
8021
+ tool_delivery: "tool_delivery";
8022
+ system_lifecycle: "system_lifecycle";
8023
+ }>;
8024
+ evidence: z.ZodEnum<{
8025
+ unknown: "unknown";
8026
+ native_typed: "native_typed";
8027
+ lifecycle_typed: "lifecycle_typed";
8028
+ existing_adapter: "existing_adapter";
8029
+ retained_last_good: "retained_last_good";
8030
+ conflict: "conflict";
8031
+ }>;
8032
+ inputModality: z.ZodEnum<{
8033
+ none: "none";
8034
+ media: "media";
8035
+ unknown: "unknown";
8036
+ text: "text";
8037
+ user_action: "user_action";
8038
+ mixed: "mixed";
8039
+ }>;
8040
+ origin: z.ZodEnum<{
8041
+ unknown: "unknown";
8042
+ submitted_input: "submitted_input";
8043
+ harness_context: "harness_context";
8044
+ agent_output: "agent_output";
8045
+ agent_communication: "agent_communication";
8046
+ tool_activity: "tool_activity";
8047
+ system_control: "system_control";
8048
+ generated_summary: "generated_summary";
8049
+ }>;
8050
+ ownership: z.ZodEnum<{
8051
+ uncertain: "uncertain";
8052
+ local: "local";
8053
+ inherited: "inherited";
8054
+ }>;
8055
+ submissionRef: z.ZodOptional<z.ZodString>;
8056
+ }, z.core.$strict>>>;
8057
+ toolKind: z.ZodOptional<z.ZodEnum<{
8058
+ search: "search";
8059
+ other: "other";
8060
+ move: "move";
8061
+ fetch: "fetch";
8062
+ delete: "delete";
8063
+ read: "read";
8064
+ edit: "edit";
8065
+ execute: "execute";
8066
+ think: "think";
8067
+ }>>;
8068
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8069
+ completeness: z.ZodEnum<{
8070
+ unknown: "unknown";
8071
+ complete: "complete";
8072
+ partial: "partial";
8073
+ }>;
8074
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8075
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8076
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8077
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8078
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8079
+ source: z.ZodString;
8080
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8081
+ }, z.core.$strip>>>;
8082
+ ownerId: z.ZodString;
8083
+ scope: z.ZodEnum<{
8084
+ summary: "summary";
8085
+ assistant: "assistant";
8086
+ tool: "tool";
8087
+ }>;
8088
+ sourceEntryRef: z.ZodString;
8089
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8090
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8091
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8092
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8093
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8094
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8095
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8096
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8097
+ }, z.core.$strip>>>;
8098
+ }, z.core.$strip>>>;
8099
+ }, z.core.$strip>>>;
8100
+ truncated: z.ZodBoolean;
8101
+ usage: z.ZodOptional<z.ZodObject<{
6783
8102
  completeness: z.ZodEnum<{
6784
8103
  unknown: "unknown";
6785
8104
  complete: "complete";
@@ -6809,9 +8128,306 @@ export declare const zToolCallDetail: z.ZodObject<{
6809
8128
  reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6810
8129
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
6811
8130
  }, z.core.$strip>>>;
6812
- }, z.core.$strip>>>;
8131
+ }, z.core.$strip>>;
8132
+ }, z.core.$strip>;
8133
+ export type TranscriptTurn = z.infer<typeof zTranscriptTurn>;
8134
+ export declare const zTranscriptSegment: z.ZodObject<{
8135
+ byteLength: z.ZodInt;
8136
+ firstTurn: z.ZodInt;
8137
+ hasNewer: z.ZodBoolean;
8138
+ hasOlder: z.ZodBoolean;
8139
+ index: z.ZodInt;
8140
+ lastTurn: z.ZodInt;
8141
+ revision: z.ZodString;
8142
+ turns: z.ZodArray<z.ZodObject<{
8143
+ agentName: z.ZodOptional<z.ZodString>;
8144
+ byteLength: z.ZodInt;
8145
+ command: z.ZodOptional<z.ZodObject<{
8146
+ args: z.ZodOptional<z.ZodString>;
8147
+ name: z.ZodString;
8148
+ }, z.core.$strip>>;
8149
+ content: z.ZodString;
8150
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8151
+ depth: z.ZodInt;
8152
+ entryType: z.ZodOptional<z.ZodEnum<{
8153
+ error: "error";
8154
+ text: "text";
8155
+ tool_use: "tool_use";
8156
+ tool_result: "tool_result";
8157
+ thinking: "thinking";
8158
+ system: "system";
8159
+ result: "result";
8160
+ }>>;
8161
+ hasThinking: z.ZodOptional<z.ZodBoolean>;
8162
+ index: z.ZodInt;
8163
+ observedModel: z.ZodOptional<z.ZodString>;
8164
+ parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8165
+ provenance: z.ZodOptional<z.ZodObject<{
8166
+ actor: z.ZodEnum<{
8167
+ unknown: "unknown";
8168
+ operator: "operator";
8169
+ agent_delegate: "agent_delegate";
8170
+ harness: "harness";
8171
+ }>;
8172
+ delivery: z.ZodEnum<{
8173
+ unknown: "unknown";
8174
+ session_admission: "session_admission";
8175
+ guardian_review: "guardian_review";
8176
+ subagent_delivery: "subagent_delivery";
8177
+ inherited_context: "inherited_context";
8178
+ tool_delivery: "tool_delivery";
8179
+ system_lifecycle: "system_lifecycle";
8180
+ }>;
8181
+ evidence: z.ZodEnum<{
8182
+ unknown: "unknown";
8183
+ native_typed: "native_typed";
8184
+ lifecycle_typed: "lifecycle_typed";
8185
+ existing_adapter: "existing_adapter";
8186
+ retained_last_good: "retained_last_good";
8187
+ conflict: "conflict";
8188
+ }>;
8189
+ inputModality: z.ZodEnum<{
8190
+ none: "none";
8191
+ media: "media";
8192
+ unknown: "unknown";
8193
+ text: "text";
8194
+ user_action: "user_action";
8195
+ mixed: "mixed";
8196
+ }>;
8197
+ origin: z.ZodEnum<{
8198
+ unknown: "unknown";
8199
+ submitted_input: "submitted_input";
8200
+ harness_context: "harness_context";
8201
+ agent_output: "agent_output";
8202
+ agent_communication: "agent_communication";
8203
+ tool_activity: "tool_activity";
8204
+ system_control: "system_control";
8205
+ generated_summary: "generated_summary";
8206
+ }>;
8207
+ ownership: z.ZodEnum<{
8208
+ uncertain: "uncertain";
8209
+ local: "local";
8210
+ inherited: "inherited";
8211
+ }>;
8212
+ submissionRef: z.ZodOptional<z.ZodString>;
8213
+ }, z.core.$strict>>;
8214
+ role: z.ZodEnum<{
8215
+ user: "user";
8216
+ system: "system";
8217
+ assistant: "assistant";
8218
+ tool: "tool";
8219
+ }>;
8220
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
8221
+ stopReason: z.ZodOptional<z.ZodEnum<{
8222
+ cancelled: "cancelled";
8223
+ end_turn: "end_turn";
8224
+ max_tokens: "max_tokens";
8225
+ max_turn_requests: "max_turn_requests";
8226
+ refusal: "refusal";
8227
+ }>>;
8228
+ thinkingLevel: z.ZodOptional<z.ZodEnum<{
8229
+ max: "max";
8230
+ high: "high";
8231
+ low: "low";
8232
+ medium: "medium";
8233
+ off: "off";
8234
+ minimal: "minimal";
8235
+ xhigh: "xhigh";
8236
+ ultra: "ultra";
8237
+ ultracode: "ultracode";
8238
+ }>>;
8239
+ thinkingLevelRaw: z.ZodOptional<z.ZodString>;
8240
+ timestamp: z.ZodISODateTime;
8241
+ tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8242
+ tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8243
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
8244
+ arguments: z.ZodString;
8245
+ callEntryRef: z.ZodOptional<z.ZodString>;
8246
+ callProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8247
+ actor: z.ZodEnum<{
8248
+ unknown: "unknown";
8249
+ operator: "operator";
8250
+ agent_delegate: "agent_delegate";
8251
+ harness: "harness";
8252
+ }>;
8253
+ delivery: z.ZodEnum<{
8254
+ unknown: "unknown";
8255
+ session_admission: "session_admission";
8256
+ guardian_review: "guardian_review";
8257
+ subagent_delivery: "subagent_delivery";
8258
+ inherited_context: "inherited_context";
8259
+ tool_delivery: "tool_delivery";
8260
+ system_lifecycle: "system_lifecycle";
8261
+ }>;
8262
+ evidence: z.ZodEnum<{
8263
+ unknown: "unknown";
8264
+ native_typed: "native_typed";
8265
+ lifecycle_typed: "lifecycle_typed";
8266
+ existing_adapter: "existing_adapter";
8267
+ retained_last_good: "retained_last_good";
8268
+ conflict: "conflict";
8269
+ }>;
8270
+ inputModality: z.ZodEnum<{
8271
+ none: "none";
8272
+ media: "media";
8273
+ unknown: "unknown";
8274
+ text: "text";
8275
+ user_action: "user_action";
8276
+ mixed: "mixed";
8277
+ }>;
8278
+ origin: z.ZodEnum<{
8279
+ unknown: "unknown";
8280
+ submitted_input: "submitted_input";
8281
+ harness_context: "harness_context";
8282
+ agent_output: "agent_output";
8283
+ agent_communication: "agent_communication";
8284
+ tool_activity: "tool_activity";
8285
+ system_control: "system_control";
8286
+ generated_summary: "generated_summary";
8287
+ }>;
8288
+ ownership: z.ZodEnum<{
8289
+ uncertain: "uncertain";
8290
+ local: "local";
8291
+ inherited: "inherited";
8292
+ }>;
8293
+ submissionRef: z.ZodOptional<z.ZodString>;
8294
+ }, z.core.$strict>>>;
8295
+ durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8296
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8297
+ filePath: z.ZodOptional<z.ZodString>;
8298
+ id: z.ZodString;
8299
+ isError: z.ZodOptional<z.ZodBoolean>;
8300
+ name: z.ZodString;
8301
+ namespace: z.ZodOptional<z.ZodString>;
8302
+ result: z.ZodString;
8303
+ resultEntryRef: z.ZodOptional<z.ZodString>;
8304
+ resultProvenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8305
+ actor: z.ZodEnum<{
8306
+ unknown: "unknown";
8307
+ operator: "operator";
8308
+ agent_delegate: "agent_delegate";
8309
+ harness: "harness";
8310
+ }>;
8311
+ delivery: z.ZodEnum<{
8312
+ unknown: "unknown";
8313
+ session_admission: "session_admission";
8314
+ guardian_review: "guardian_review";
8315
+ subagent_delivery: "subagent_delivery";
8316
+ inherited_context: "inherited_context";
8317
+ tool_delivery: "tool_delivery";
8318
+ system_lifecycle: "system_lifecycle";
8319
+ }>;
8320
+ evidence: z.ZodEnum<{
8321
+ unknown: "unknown";
8322
+ native_typed: "native_typed";
8323
+ lifecycle_typed: "lifecycle_typed";
8324
+ existing_adapter: "existing_adapter";
8325
+ retained_last_good: "retained_last_good";
8326
+ conflict: "conflict";
8327
+ }>;
8328
+ inputModality: z.ZodEnum<{
8329
+ none: "none";
8330
+ media: "media";
8331
+ unknown: "unknown";
8332
+ text: "text";
8333
+ user_action: "user_action";
8334
+ mixed: "mixed";
8335
+ }>;
8336
+ origin: z.ZodEnum<{
8337
+ unknown: "unknown";
8338
+ submitted_input: "submitted_input";
8339
+ harness_context: "harness_context";
8340
+ agent_output: "agent_output";
8341
+ agent_communication: "agent_communication";
8342
+ tool_activity: "tool_activity";
8343
+ system_control: "system_control";
8344
+ generated_summary: "generated_summary";
8345
+ }>;
8346
+ ownership: z.ZodEnum<{
8347
+ uncertain: "uncertain";
8348
+ local: "local";
8349
+ inherited: "inherited";
8350
+ }>;
8351
+ submissionRef: z.ZodOptional<z.ZodString>;
8352
+ }, z.core.$strict>>>;
8353
+ toolKind: z.ZodOptional<z.ZodEnum<{
8354
+ search: "search";
8355
+ other: "other";
8356
+ move: "move";
8357
+ fetch: "fetch";
8358
+ delete: "delete";
8359
+ read: "read";
8360
+ edit: "edit";
8361
+ execute: "execute";
8362
+ think: "think";
8363
+ }>>;
8364
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8365
+ completeness: z.ZodEnum<{
8366
+ unknown: "unknown";
8367
+ complete: "complete";
8368
+ partial: "partial";
8369
+ }>;
8370
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8371
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8372
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8373
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8374
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8375
+ source: z.ZodString;
8376
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8377
+ }, z.core.$strip>>>;
8378
+ ownerId: z.ZodString;
8379
+ scope: z.ZodEnum<{
8380
+ summary: "summary";
8381
+ assistant: "assistant";
8382
+ tool: "tool";
8383
+ }>;
8384
+ sourceEntryRef: z.ZodString;
8385
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8386
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8387
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8388
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8389
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8390
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8391
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8392
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8393
+ }, z.core.$strip>>>;
8394
+ }, z.core.$strip>>>;
8395
+ }, z.core.$strip>>>;
8396
+ truncated: z.ZodBoolean;
8397
+ usage: z.ZodOptional<z.ZodObject<{
8398
+ completeness: z.ZodEnum<{
8399
+ unknown: "unknown";
8400
+ complete: "complete";
8401
+ partial: "partial";
8402
+ }>;
8403
+ cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8404
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8405
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8406
+ input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8407
+ output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8408
+ source: z.ZodString;
8409
+ total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8410
+ }, z.core.$strip>>>;
8411
+ ownerId: z.ZodString;
8412
+ scope: z.ZodEnum<{
8413
+ summary: "summary";
8414
+ assistant: "assistant";
8415
+ tool: "tool";
8416
+ }>;
8417
+ sourceEntryRef: z.ZodString;
8418
+ tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8419
+ cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8420
+ cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8421
+ cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8422
+ input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8423
+ output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8424
+ reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8425
+ totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8426
+ }, z.core.$strip>>>;
8427
+ }, z.core.$strip>>;
8428
+ }, z.core.$strip>>;
6813
8429
  }, z.core.$strip>;
6814
- export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
8430
+ export type TranscriptSegment = z.infer<typeof zTranscriptSegment>;
6815
8431
  export declare const zTurnDetail: z.ZodObject<{
6816
8432
  agentName: z.ZodOptional<z.ZodString>;
6817
8433
  command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -6819,6 +8435,7 @@ export declare const zTurnDetail: z.ZodObject<{
6819
8435
  name: z.ZodString;
6820
8436
  }, z.core.$strip>>>;
6821
8437
  content: z.ZodString;
8438
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6822
8439
  depth: z.ZodInt;
6823
8440
  entryType: z.ZodOptional<z.ZodEnum<{
6824
8441
  error: "error";
@@ -7138,6 +8755,7 @@ export declare const zEarlierHistorySection: z.ZodObject<{
7138
8755
  name: z.ZodString;
7139
8756
  }, z.core.$strip>>>;
7140
8757
  content: z.ZodString;
8758
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7141
8759
  depth: z.ZodInt;
7142
8760
  entryType: z.ZodOptional<z.ZodEnum<{
7143
8761
  error: "error";
@@ -7468,6 +9086,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
7468
9086
  name: z.ZodString;
7469
9087
  }, z.core.$strip>>>;
7470
9088
  content: z.ZodString;
9089
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7471
9090
  depth: z.ZodInt;
7472
9091
  entryType: z.ZodOptional<z.ZodEnum<{
7473
9092
  error: "error";
@@ -7911,6 +9530,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
7911
9530
  name: z.ZodString;
7912
9531
  }, z.core.$strip>>>;
7913
9532
  content: z.ZodString;
9533
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7914
9534
  depth: z.ZodInt;
7915
9535
  entryType: z.ZodOptional<z.ZodEnum<{
7916
9536
  error: "error";
@@ -8200,7 +9820,7 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8200
9820
  diagnostics: z.ZodOptional<z.ZodObject<{
8201
9821
  partial: z.ZodBoolean;
8202
9822
  }, z.core.$strip>>;
8203
- durationMins: z.ZodOptional<z.ZodNumber>;
9823
+ durationMins: z.ZodNumber;
8204
9824
  earlierHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
8205
9825
  nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
8206
9826
  attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -8242,6 +9862,7 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8242
9862
  name: z.ZodString;
8243
9863
  }, z.core.$strip>>>;
8244
9864
  content: z.ZodString;
9865
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8245
9866
  depth: z.ZodInt;
8246
9867
  entryType: z.ZodOptional<z.ZodEnum<{
8247
9868
  error: "error";
@@ -8520,10 +10141,10 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8520
10141
  }, z.core.$strip>>>;
8521
10142
  }, z.core.$strip>>;
8522
10143
  }, z.core.$strict>>>;
8523
- endTime: z.ZodOptional<z.ZodISODateTime>;
10144
+ endTime: z.ZodISODateTime;
8524
10145
  gitBranch: z.ZodOptional<z.ZodString>;
8525
10146
  gitRemote: z.ZodOptional<z.ZodString>;
8526
- harness: z.ZodOptional<z.ZodEnum<{
10147
+ harness: z.ZodEnum<{
8527
10148
  strike: "strike";
8528
10149
  cursor: "cursor";
8529
10150
  "claude-code": "claude-code";
@@ -8532,9 +10153,14 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8532
10153
  opencode: "opencode";
8533
10154
  antigravity: "antigravity";
8534
10155
  pi: "pi";
8535
- }>>;
8536
- id: z.ZodOptional<z.ZodString>;
10156
+ }>;
10157
+ id: z.ZodString;
8537
10158
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
10159
+ medians: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10160
+ retryShare: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10161
+ specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10162
+ withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10163
+ }, z.core.$strip>>>;
8538
10164
  model: z.ZodOptional<z.ZodString>;
8539
10165
  nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
8540
10166
  attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -8643,6 +10269,7 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8643
10269
  recordIndex: z.ZodNumber;
8644
10270
  sourceRef: z.ZodString;
8645
10271
  }, z.core.$strip>>>;
10272
+ revision: z.ZodOptional<z.ZodString>;
8646
10273
  rootSessionId: z.ZodOptional<z.ZodString>;
8647
10274
  schemaVersion: z.ZodOptional<z.ZodString>;
8648
10275
  scorecard: z.ZodOptional<z.ZodObject<{
@@ -8670,7 +10297,7 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8670
10297
  agent: "agent";
8671
10298
  }>>;
8672
10299
  source: z.ZodOptional<z.ZodString>;
8673
- startTime: z.ZodOptional<z.ZodISODateTime>;
10300
+ startTime: z.ZodISODateTime;
8674
10301
  status: z.ZodOptional<z.ZodString>;
8675
10302
  teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8676
10303
  evidence: z.ZodEnum<{
@@ -8705,18 +10332,20 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8705
10332
  raw: z.ZodOptional<z.ZodString>;
8706
10333
  }, z.core.$strip>>>>;
8707
10334
  thinkingLevelRaw: z.ZodOptional<z.ZodString>;
8708
- tokensIn: z.ZodOptional<z.ZodInt>;
8709
- tokensOut: z.ZodOptional<z.ZodInt>;
8710
- toolCallCount: z.ZodOptional<z.ZodInt>;
8711
- totalTokens: z.ZodOptional<z.ZodInt>;
8712
- turnCount: z.ZodOptional<z.ZodInt>;
8713
- turns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10335
+ title: z.ZodOptional<z.ZodString>;
10336
+ tokensIn: z.ZodInt;
10337
+ tokensOut: z.ZodInt;
10338
+ toolCallCount: z.ZodInt;
10339
+ totalTokens: z.ZodInt;
10340
+ turnCount: z.ZodInt;
10341
+ turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
8714
10342
  agentName: z.ZodOptional<z.ZodString>;
8715
10343
  command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8716
10344
  args: z.ZodOptional<z.ZodString>;
8717
10345
  name: z.ZodString;
8718
10346
  }, z.core.$strip>>>;
8719
10347
  content: z.ZodString;
10348
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8720
10349
  depth: z.ZodInt;
8721
10350
  entryType: z.ZodOptional<z.ZodEnum<{
8722
10351
  error: "error";
@@ -8993,7 +10622,7 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
8993
10622
  totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
8994
10623
  }, z.core.$strip>>>;
8995
10624
  }, z.core.$strip>>>;
8996
- }, z.core.$strip>>>>;
10625
+ }, z.core.$strip>>>;
8997
10626
  workingDirectory: z.ZodOptional<z.ZodString>;
8998
10627
  }, z.core.$strip>;
8999
10628
  export type SessionDetailReadPayload = z.infer<typeof zSessionDetailReadPayload>;
@@ -9053,6 +10682,7 @@ export declare const zTranscriptContent: z.ZodObject<{
9053
10682
  name: z.ZodString;
9054
10683
  }, z.core.$strip>>>;
9055
10684
  content: z.ZodString;
10685
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9056
10686
  depth: z.ZodInt;
9057
10687
  entryType: z.ZodOptional<z.ZodEnum<{
9058
10688
  error: "error";
@@ -9496,6 +11126,7 @@ export declare const zTranscriptContent: z.ZodObject<{
9496
11126
  name: z.ZodString;
9497
11127
  }, z.core.$strip>>>;
9498
11128
  content: z.ZodString;
11129
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9499
11130
  depth: z.ZodInt;
9500
11131
  entryType: z.ZodOptional<z.ZodEnum<{
9501
11132
  error: "error";
@@ -12931,17 +14562,91 @@ export declare const zLocalSyncSessionRow: z.ZodObject<{
12931
14562
  evidence: z.ZodEnum<{
12932
14563
  native_dynamic_workflow: "native_dynamic_workflow";
12933
14564
  }>;
12934
- name: z.ZodString;
12935
- team: z.ZodString;
12936
- }, z.core.$strip>>>;
12937
- totalTokens: z.ZodInt;
12938
- turnCount: z.ZodInt;
12939
- }, z.core.$strip>;
12940
- title: z.ZodString;
12941
- }, z.core.$strip>;
12942
- export type LocalSyncSessionRow = z.infer<typeof zLocalSyncSessionRow>;
12943
- export declare const zLocalSyncSessionPage: z.ZodObject<{
12944
- items: z.ZodArray<z.ZodObject<{
14565
+ name: z.ZodString;
14566
+ team: z.ZodString;
14567
+ }, z.core.$strip>>>;
14568
+ totalTokens: z.ZodInt;
14569
+ turnCount: z.ZodInt;
14570
+ }, z.core.$strip>;
14571
+ title: z.ZodString;
14572
+ }, z.core.$strip>;
14573
+ export type LocalSyncSessionRow = z.infer<typeof zLocalSyncSessionRow>;
14574
+ export declare const zLocalSyncSessionPage: z.ZodObject<{
14575
+ items: z.ZodArray<z.ZodObject<{
14576
+ childCount: z.ZodInt;
14577
+ preview: z.ZodString;
14578
+ publication: z.ZodObject<{
14579
+ audience: z.ZodOptional<z.ZodArray<z.ZodObject<{
14580
+ collectiveId: z.ZodUUID;
14581
+ name: z.ZodString;
14582
+ status: z.ZodEnum<{
14583
+ pending: "pending";
14584
+ rejected: "rejected";
14585
+ approved: "approved";
14586
+ retracted: "retracted";
14587
+ revoked: "revoked";
14588
+ }>;
14589
+ }, z.core.$strip>>>;
14590
+ autoPublish: z.ZodBoolean;
14591
+ lastAttempt: z.ZodOptional<z.ZodObject<{
14592
+ attemptedAt: z.ZodISODateTime;
14593
+ message: z.ZodString;
14594
+ }, z.core.$strip>>;
14595
+ outsideSelection: z.ZodBoolean;
14596
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
14597
+ sessionId: z.ZodString;
14598
+ state: z.ZodEnum<{
14599
+ published: "published";
14600
+ unpublished: "unpublished";
14601
+ }>;
14602
+ transcriptId: z.ZodOptional<z.ZodUUID>;
14603
+ transcriptUrl: z.ZodOptional<z.ZodString>;
14604
+ }, z.core.$strip>;
14605
+ sync: z.ZodObject<{
14606
+ durationMs: z.ZodCoercedBigInt<unknown>;
14607
+ harness: z.ZodEnum<{
14608
+ strike: "strike";
14609
+ cursor: "cursor";
14610
+ "claude-code": "claude-code";
14611
+ "gemini-cli": "gemini-cli";
14612
+ codex: "codex";
14613
+ opencode: "opencode";
14614
+ antigravity: "antigravity";
14615
+ pi: "pi";
14616
+ }>;
14617
+ holdReason: z.ZodOptional<z.ZodEnum<{
14618
+ metrics_missing: "metrics_missing";
14619
+ metadata_missing: "metadata_missing";
14620
+ }>>;
14621
+ hostSlug: z.ZodString;
14622
+ id: z.ZodString;
14623
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
14624
+ model: z.ZodString;
14625
+ parentSessionId: z.ZodOptional<z.ZodString>;
14626
+ parentUnresolved: z.ZodOptional<z.ZodBoolean>;
14627
+ previouslyPushed: z.ZodBoolean;
14628
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
14629
+ projectName: z.ZodString;
14630
+ startTime: z.ZodString;
14631
+ syncStatus: z.ZodEnum<{
14632
+ new: "new";
14633
+ updated: "updated";
14634
+ held: "held";
14635
+ synced: "synced";
14636
+ }>;
14637
+ teammate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14638
+ evidence: z.ZodEnum<{
14639
+ native_dynamic_workflow: "native_dynamic_workflow";
14640
+ }>;
14641
+ name: z.ZodString;
14642
+ team: z.ZodString;
14643
+ }, z.core.$strip>>>;
14644
+ totalTokens: z.ZodInt;
14645
+ turnCount: z.ZodInt;
14646
+ }, z.core.$strip>;
14647
+ title: z.ZodString;
14648
+ }, z.core.$strip>>;
14649
+ nextItems: z.ZodArray<z.ZodObject<{
12945
14650
  childCount: z.ZodInt;
12946
14651
  preview: z.ZodString;
12947
14652
  publication: z.ZodObject<{
@@ -13015,7 +14720,13 @@ export declare const zLocalSyncSessionPage: z.ZodObject<{
13015
14720
  }, z.core.$strip>;
13016
14721
  title: z.ZodString;
13017
14722
  }, z.core.$strip>>;
13018
- next: z.ZodString;
14723
+ page: z.ZodInt;
14724
+ perPage: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
14725
+ revision: z.ZodString;
14726
+ total: z.ZodInt;
14727
+ totals: z.ZodOptional<z.ZodObject<{
14728
+ sessions: z.ZodInt;
14729
+ }, z.core.$strip>>;
13019
14730
  }, z.core.$strip>;
13020
14731
  export type LocalSyncSessionPage = z.infer<typeof zLocalSyncSessionPage>;
13021
14732
  export declare const zSyncPushCollectives: z.ZodObject<{
@@ -20645,6 +22356,7 @@ export declare const zScryCheckRequest: z.ZodObject<{
20645
22356
  name: z.ZodString;
20646
22357
  }, z.core.$strip>>>;
20647
22358
  content: z.ZodString;
22359
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20648
22360
  depth: z.ZodInt;
20649
22361
  entryType: z.ZodOptional<z.ZodEnum<{
20650
22362
  error: "error";
@@ -21088,6 +22800,7 @@ export declare const zScryCheckRequest: z.ZodObject<{
21088
22800
  name: z.ZodString;
21089
22801
  }, z.core.$strip>>>;
21090
22802
  content: z.ZodString;
22803
+ controlKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21091
22804
  depth: z.ZodInt;
21092
22805
  entryType: z.ZodOptional<z.ZodEnum<{
21093
22806
  error: "error";
@@ -21430,3 +23143,332 @@ export declare const zFamiliarityPayload: z.ZodObject<{
21430
23143
  unexploredCount: z.ZodInt;
21431
23144
  }, z.core.$strip>;
21432
23145
  export type FamiliarityPayload = z.infer<typeof zFamiliarityPayload>;
23146
+ export declare const zWeekAvgDuration: z.ZodObject<{
23147
+ avgDurationMins: z.ZodNumber;
23148
+ sessions: z.ZodInt;
23149
+ week: z.ZodString;
23150
+ }, z.core.$strip>;
23151
+ export type WeekAvgDuration = z.infer<typeof zWeekAvgDuration>;
23152
+ export declare const zWeekContributors: z.ZodObject<{
23153
+ contributors: z.ZodInt;
23154
+ week: z.ZodString;
23155
+ }, z.core.$strip>;
23156
+ export type WeekContributors = z.infer<typeof zWeekContributors>;
23157
+ export declare const zWeekCount: z.ZodObject<{
23158
+ count: z.ZodInt;
23159
+ week: z.ZodString;
23160
+ }, z.core.$strip>;
23161
+ export type WeekCount = z.infer<typeof zWeekCount>;
23162
+ export declare const zWeekNewContributors: z.ZodObject<{
23163
+ newContributors: z.ZodInt;
23164
+ week: z.ZodString;
23165
+ }, z.core.$strip>;
23166
+ export type WeekNewContributors = z.infer<typeof zWeekNewContributors>;
23167
+ export declare const zProjectAnalytics: z.ZodObject<{
23168
+ avgDurationPerActiveWeek: z.ZodArray<z.ZodObject<{
23169
+ avgDurationMins: z.ZodNumber;
23170
+ sessions: z.ZodInt;
23171
+ week: z.ZodString;
23172
+ }, z.core.$strip>>;
23173
+ longestStreak: z.ZodObject<{
23174
+ endWeek: z.ZodNullable<z.ZodString>;
23175
+ startWeek: z.ZodNullable<z.ZodString>;
23176
+ weeks: z.ZodInt;
23177
+ }, z.core.$strip>;
23178
+ newContributorVelocity: z.ZodArray<z.ZodObject<{
23179
+ newContributors: z.ZodInt;
23180
+ week: z.ZodString;
23181
+ }, z.core.$strip>>;
23182
+ outcomeDistribution: z.ZodObject<{
23183
+ failed: z.ZodInt;
23184
+ partial: z.ZodInt;
23185
+ resolved: z.ZodInt;
23186
+ total: z.ZodInt;
23187
+ unknown: z.ZodInt;
23188
+ }, z.core.$strip>;
23189
+ perContributorBreakdown: z.ZodArray<z.ZodObject<{
23190
+ activeWeeks: z.ZodInt;
23191
+ contributorId: z.ZodString;
23192
+ firstSeen: z.ZodNullable<z.ZodString>;
23193
+ lastSeen: z.ZodNullable<z.ZodString>;
23194
+ outcomes: z.ZodObject<{
23195
+ failed: z.ZodInt;
23196
+ partial: z.ZodInt;
23197
+ resolved: z.ZodInt;
23198
+ total: z.ZodInt;
23199
+ unknown: z.ZodInt;
23200
+ }, z.core.$strip>;
23201
+ sessions: z.ZodInt;
23202
+ sessionsWithCommit: z.ZodInt;
23203
+ totalCommits: z.ZodInt;
23204
+ totalDurationMins: z.ZodInt;
23205
+ totalTokens: z.ZodInt;
23206
+ totalToolCalls: z.ZodInt;
23207
+ totalTurns: z.ZodInt;
23208
+ }, z.core.$strip>>;
23209
+ returningContributorRate: z.ZodObject<{
23210
+ rate: z.ZodNumber;
23211
+ returning: z.ZodInt;
23212
+ total: z.ZodInt;
23213
+ }, z.core.$strip>;
23214
+ sessionStats: z.ZodObject<{
23215
+ durationMins: z.ZodObject<{
23216
+ count: z.ZodInt;
23217
+ median: z.ZodNullable<z.ZodNumber>;
23218
+ p90: z.ZodNullable<z.ZodNumber>;
23219
+ }, z.core.$strip>;
23220
+ toolCallCount: z.ZodObject<{
23221
+ count: z.ZodInt;
23222
+ median: z.ZodNullable<z.ZodNumber>;
23223
+ p90: z.ZodNullable<z.ZodNumber>;
23224
+ }, z.core.$strip>;
23225
+ totalTokens: z.ZodObject<{
23226
+ count: z.ZodInt;
23227
+ median: z.ZodNullable<z.ZodNumber>;
23228
+ p90: z.ZodNullable<z.ZodNumber>;
23229
+ }, z.core.$strip>;
23230
+ turnCount: z.ZodObject<{
23231
+ count: z.ZodInt;
23232
+ median: z.ZodNullable<z.ZodNumber>;
23233
+ p90: z.ZodNullable<z.ZodNumber>;
23234
+ }, z.core.$strip>;
23235
+ }, z.core.$strip>;
23236
+ sessionToCommitRate: z.ZodObject<{
23237
+ rate: z.ZodNumber;
23238
+ total: z.ZodInt;
23239
+ withCommit: z.ZodInt;
23240
+ }, z.core.$strip>;
23241
+ sessionsPerWeek: z.ZodArray<z.ZodObject<{
23242
+ count: z.ZodInt;
23243
+ week: z.ZodString;
23244
+ }, z.core.$strip>>;
23245
+ totalContributors: z.ZodInt;
23246
+ totalProjects: z.ZodInt;
23247
+ totalSessions: z.ZodInt;
23248
+ weeklyActiveContributors: z.ZodArray<z.ZodObject<{
23249
+ contributors: z.ZodInt;
23250
+ week: z.ZodString;
23251
+ }, z.core.$strip>>;
23252
+ }, z.core.$strip>;
23253
+ export type ProjectAnalytics = z.infer<typeof zProjectAnalytics>;
23254
+ export declare const zQualityPage: z.ZodObject<{
23255
+ items: z.ZodArray<z.ZodObject<{
23256
+ date: z.ZodString;
23257
+ discoveryTurns: z.ZodInt;
23258
+ durationMinutes: z.ZodNumber;
23259
+ effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
23260
+ annotatorKind: z.ZodEnum<{
23261
+ human: "human";
23262
+ agent: "agent";
23263
+ rule: "rule";
23264
+ }>;
23265
+ annotatorName: z.ZodString;
23266
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23267
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23268
+ createdAt: z.ZodCoercedBigInt<unknown>;
23269
+ id: z.ZodString;
23270
+ isPrimary: z.ZodBoolean;
23271
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23272
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23273
+ function: z.ZodOptional<z.ZodString>;
23274
+ method: z.ZodString;
23275
+ version: z.ZodOptional<z.ZodString>;
23276
+ }, z.core.$strip>>>;
23277
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23278
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23279
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23280
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23281
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23282
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
23283
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
23284
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23285
+ targetKind: z.ZodEnum<{
23286
+ session: "session";
23287
+ annotation: "annotation";
23288
+ project: "project";
23289
+ entry: "entry";
23290
+ file_version: "file_version";
23291
+ association: "association";
23292
+ }>;
23293
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
23294
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23295
+ typeId: z.ZodString;
23296
+ typeName: z.ZodString;
23297
+ value: z.ZodString;
23298
+ }, z.core.$strip>>>;
23299
+ explorationRatio: z.ZodNumber;
23300
+ filesTouched: z.ZodInt;
23301
+ id: z.ZodString;
23302
+ inputTokens: z.ZodInt;
23303
+ linesChanged: z.ZodInt;
23304
+ outcome: z.ZodString;
23305
+ outputTokens: z.ZodInt;
23306
+ project: z.ZodString;
23307
+ retryLoops: z.ZodInt;
23308
+ retryTokensWasted: z.ZodInt;
23309
+ scope: z.ZodString;
23310
+ scopeBreadth: z.ZodInt;
23311
+ signalDensity: z.ZodNumber;
23312
+ specQualityScore: z.ZodNumber;
23313
+ title: z.ZodString;
23314
+ toolCalls: z.ZodInt;
23315
+ totalTokens: z.ZodInt;
23316
+ turnCount: z.ZodInt;
23317
+ withinSessionReverts: z.ZodInt;
23318
+ }, z.core.$strip>>;
23319
+ nextItems: z.ZodArray<z.ZodObject<{
23320
+ date: z.ZodString;
23321
+ discoveryTurns: z.ZodInt;
23322
+ durationMinutes: z.ZodNumber;
23323
+ effectiveAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
23324
+ annotatorKind: z.ZodEnum<{
23325
+ human: "human";
23326
+ agent: "agent";
23327
+ rule: "rule";
23328
+ }>;
23329
+ annotatorName: z.ZodString;
23330
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23331
+ contentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23332
+ createdAt: z.ZodCoercedBigInt<unknown>;
23333
+ id: z.ZodString;
23334
+ isPrimary: z.ZodBoolean;
23335
+ provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23336
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23337
+ function: z.ZodOptional<z.ZodString>;
23338
+ method: z.ZodString;
23339
+ version: z.ZodOptional<z.ZodString>;
23340
+ }, z.core.$strip>>>;
23341
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23342
+ supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23343
+ targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23344
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23345
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23346
+ targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
23347
+ targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
23348
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23349
+ targetKind: z.ZodEnum<{
23350
+ session: "session";
23351
+ annotation: "annotation";
23352
+ project: "project";
23353
+ entry: "entry";
23354
+ file_version: "file_version";
23355
+ association: "association";
23356
+ }>;
23357
+ targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
23358
+ targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23359
+ typeId: z.ZodString;
23360
+ typeName: z.ZodString;
23361
+ value: z.ZodString;
23362
+ }, z.core.$strip>>>;
23363
+ explorationRatio: z.ZodNumber;
23364
+ filesTouched: z.ZodInt;
23365
+ id: z.ZodString;
23366
+ inputTokens: z.ZodInt;
23367
+ linesChanged: z.ZodInt;
23368
+ outcome: z.ZodString;
23369
+ outputTokens: z.ZodInt;
23370
+ project: z.ZodString;
23371
+ retryLoops: z.ZodInt;
23372
+ retryTokensWasted: z.ZodInt;
23373
+ scope: z.ZodString;
23374
+ scopeBreadth: z.ZodInt;
23375
+ signalDensity: z.ZodNumber;
23376
+ specQualityScore: z.ZodNumber;
23377
+ title: z.ZodString;
23378
+ toolCalls: z.ZodInt;
23379
+ totalTokens: z.ZodInt;
23380
+ turnCount: z.ZodInt;
23381
+ withinSessionReverts: z.ZodInt;
23382
+ }, z.core.$strip>>;
23383
+ page: z.ZodInt;
23384
+ perPage: z.ZodUnion<readonly [z.ZodLiteral<25>, z.ZodLiteral<50>, z.ZodLiteral<100>]>;
23385
+ revision: z.ZodString;
23386
+ summary: z.ZodObject<{
23387
+ avgDurationPerActiveWeek: z.ZodArray<z.ZodObject<{
23388
+ avgDurationMins: z.ZodNumber;
23389
+ sessions: z.ZodInt;
23390
+ week: z.ZodString;
23391
+ }, z.core.$strip>>;
23392
+ longestStreak: z.ZodObject<{
23393
+ endWeek: z.ZodNullable<z.ZodString>;
23394
+ startWeek: z.ZodNullable<z.ZodString>;
23395
+ weeks: z.ZodInt;
23396
+ }, z.core.$strip>;
23397
+ newContributorVelocity: z.ZodArray<z.ZodObject<{
23398
+ newContributors: z.ZodInt;
23399
+ week: z.ZodString;
23400
+ }, z.core.$strip>>;
23401
+ outcomeDistribution: z.ZodObject<{
23402
+ failed: z.ZodInt;
23403
+ partial: z.ZodInt;
23404
+ resolved: z.ZodInt;
23405
+ total: z.ZodInt;
23406
+ unknown: z.ZodInt;
23407
+ }, z.core.$strip>;
23408
+ perContributorBreakdown: z.ZodArray<z.ZodObject<{
23409
+ activeWeeks: z.ZodInt;
23410
+ contributorId: z.ZodString;
23411
+ firstSeen: z.ZodNullable<z.ZodString>;
23412
+ lastSeen: z.ZodNullable<z.ZodString>;
23413
+ outcomes: z.ZodObject<{
23414
+ failed: z.ZodInt;
23415
+ partial: z.ZodInt;
23416
+ resolved: z.ZodInt;
23417
+ total: z.ZodInt;
23418
+ unknown: z.ZodInt;
23419
+ }, z.core.$strip>;
23420
+ sessions: z.ZodInt;
23421
+ sessionsWithCommit: z.ZodInt;
23422
+ totalCommits: z.ZodInt;
23423
+ totalDurationMins: z.ZodInt;
23424
+ totalTokens: z.ZodInt;
23425
+ totalToolCalls: z.ZodInt;
23426
+ totalTurns: z.ZodInt;
23427
+ }, z.core.$strip>>;
23428
+ returningContributorRate: z.ZodObject<{
23429
+ rate: z.ZodNumber;
23430
+ returning: z.ZodInt;
23431
+ total: z.ZodInt;
23432
+ }, z.core.$strip>;
23433
+ sessionStats: z.ZodObject<{
23434
+ durationMins: z.ZodObject<{
23435
+ count: z.ZodInt;
23436
+ median: z.ZodNullable<z.ZodNumber>;
23437
+ p90: z.ZodNullable<z.ZodNumber>;
23438
+ }, z.core.$strip>;
23439
+ toolCallCount: z.ZodObject<{
23440
+ count: z.ZodInt;
23441
+ median: z.ZodNullable<z.ZodNumber>;
23442
+ p90: z.ZodNullable<z.ZodNumber>;
23443
+ }, z.core.$strip>;
23444
+ totalTokens: z.ZodObject<{
23445
+ count: z.ZodInt;
23446
+ median: z.ZodNullable<z.ZodNumber>;
23447
+ p90: z.ZodNullable<z.ZodNumber>;
23448
+ }, z.core.$strip>;
23449
+ turnCount: z.ZodObject<{
23450
+ count: z.ZodInt;
23451
+ median: z.ZodNullable<z.ZodNumber>;
23452
+ p90: z.ZodNullable<z.ZodNumber>;
23453
+ }, z.core.$strip>;
23454
+ }, z.core.$strip>;
23455
+ sessionToCommitRate: z.ZodObject<{
23456
+ rate: z.ZodNumber;
23457
+ total: z.ZodInt;
23458
+ withCommit: z.ZodInt;
23459
+ }, z.core.$strip>;
23460
+ sessionsPerWeek: z.ZodArray<z.ZodObject<{
23461
+ count: z.ZodInt;
23462
+ week: z.ZodString;
23463
+ }, z.core.$strip>>;
23464
+ totalContributors: z.ZodInt;
23465
+ totalProjects: z.ZodInt;
23466
+ totalSessions: z.ZodInt;
23467
+ weeklyActiveContributors: z.ZodArray<z.ZodObject<{
23468
+ contributors: z.ZodInt;
23469
+ week: z.ZodString;
23470
+ }, z.core.$strip>>;
23471
+ }, z.core.$strip>;
23472
+ total: z.ZodInt;
23473
+ }, z.core.$strip>;
23474
+ export type QualityPage = z.infer<typeof zQualityPage>;