@peasant-labs/schema 0.1.0-rc6 → 0.1.0-rc9
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.
- package/README.md +13 -3
- package/dist/fixtures/timeline.d.ts +33 -2
- package/dist/internal/generated/contract/zod.gen.d.ts +803 -116
- package/dist/internal/generated/contract/zod.gen.js +470 -44
- package/dist/internal/generated/enums.gen.d.ts +91 -4
- package/dist/internal/generated/enums.gen.js +97 -1
- package/dist/internal/generated/local-api.d.ts +100 -1
- package/dist/internal/generated/public-contract.gen.d.ts +2 -2
- package/dist/internal/generated/public-contract.gen.js +1 -1
- package/dist/internal/generated/timeline-fixtures.gen.js +1014 -2
- package/dist/internal/generated/versions.gen.d.ts +3 -3
- package/dist/internal/generated/versions.gen.js +3 -3
- package/dist/internal/generated/village-api.d.ts +66 -1
- package/package.json +5 -1
|
@@ -3,9 +3,12 @@ import { type AnnotationDatatype as AnnotationDatatypeContract } from "./contrac
|
|
|
3
3
|
import { type AnnotationPushStatus as AnnotationPushStatusContract } from "./contract/zod.gen.js";
|
|
4
4
|
import { type AnnotationStatus as AnnotationStatusContract } from "./contract/zod.gen.js";
|
|
5
5
|
import { type AnnotatorKind as AnnotatorKindContract } from "./contract/zod.gen.js";
|
|
6
|
+
import { type AssociationConclusion as AssociationConclusionContract } from "./contract/zod.gen.js";
|
|
7
|
+
import { type AssociationEvidenceKind as AssociationEvidenceKindContract } from "./contract/zod.gen.js";
|
|
6
8
|
import { type BuiltinCommand as BuiltinCommandContract } from "./contract/zod.gen.js";
|
|
7
9
|
import { type ChangeBinding as ChangeBindingContract } from "./contract/zod.gen.js";
|
|
8
10
|
import { type ChannelTopic as ChannelTopicContract } from "./contract/zod.gen.js";
|
|
11
|
+
import { type Confidence as ConfidenceContract } from "./contract/zod.gen.js";
|
|
9
12
|
import { type ContentKind as ContentKindContract } from "./contract/zod.gen.js";
|
|
10
13
|
import { type DecayLevel as DecayLevelContract } from "./contract/zod.gen.js";
|
|
11
14
|
import { type DiffLineKind as DiffLineKindContract } from "./contract/zod.gen.js";
|
|
@@ -13,10 +16,16 @@ import { type EdgeViolationKind as EdgeViolationKindContract } from "./contract/
|
|
|
13
16
|
import { type EntryType as EntryTypeContract } from "./contract/zod.gen.js";
|
|
14
17
|
import { type FileChangeStatus as FileChangeStatusContract } from "./contract/zod.gen.js";
|
|
15
18
|
import { type Harness as HarnessContract } from "./contract/zod.gen.js";
|
|
19
|
+
import { type InsightKind as InsightKindContract } from "./contract/zod.gen.js";
|
|
20
|
+
import { type InsightProvenance as InsightProvenanceContract } from "./contract/zod.gen.js";
|
|
16
21
|
import { type InteractionType as InteractionTypeContract } from "./contract/zod.gen.js";
|
|
17
22
|
import { type License as LicenseContract } from "./contract/zod.gen.js";
|
|
18
23
|
import { type MapNodeKind as MapNodeKindContract } from "./contract/zod.gen.js";
|
|
19
24
|
import { type MessageType as MessageTypeContract } from "./contract/zod.gen.js";
|
|
25
|
+
import { type ReadAttributionState as ReadAttributionStateContract } from "./contract/zod.gen.js";
|
|
26
|
+
import { type ReadStateGrade as ReadStateGradeContract } from "./contract/zod.gen.js";
|
|
27
|
+
import { type RewriteMethod as RewriteMethodContract } from "./contract/zod.gen.js";
|
|
28
|
+
import { type RewriteResolution as RewriteResolutionContract } from "./contract/zod.gen.js";
|
|
20
29
|
import { type Role as RoleContract } from "./contract/zod.gen.js";
|
|
21
30
|
import { type ScaleKind as ScaleKindContract } from "./contract/zod.gen.js";
|
|
22
31
|
import { type SessionOutcome as SessionOutcomeContract } from "./contract/zod.gen.js";
|
|
@@ -70,6 +79,22 @@ export declare const AnnotatorKind: Readonly<{
|
|
|
70
79
|
}>;
|
|
71
80
|
export declare const AllAnnotatorKinds: readonly AnnotatorKind[];
|
|
72
81
|
export declare function isAnnotatorKind(value: unknown): value is AnnotatorKind;
|
|
82
|
+
export type AssociationConclusion = AssociationConclusionContract;
|
|
83
|
+
export declare const AssociationConclusion: Readonly<{
|
|
84
|
+
readonly Confirmed: "candidate" | "confirmed";
|
|
85
|
+
readonly Candidate: "candidate" | "confirmed";
|
|
86
|
+
}>;
|
|
87
|
+
export declare const AllAssociationConclusions: readonly AssociationConclusion[];
|
|
88
|
+
export declare function isAssociationConclusion(value: unknown): value is AssociationConclusion;
|
|
89
|
+
export type AssociationEvidenceKind = AssociationEvidenceKindContract;
|
|
90
|
+
export declare const AssociationEvidenceKind: Readonly<{
|
|
91
|
+
readonly RecordedCommit: "recorded_commit" | "touched_file" | "branch_membership" | "time_window";
|
|
92
|
+
readonly TouchedFile: "recorded_commit" | "touched_file" | "branch_membership" | "time_window";
|
|
93
|
+
readonly BranchMembership: "recorded_commit" | "touched_file" | "branch_membership" | "time_window";
|
|
94
|
+
readonly TimeWindow: "recorded_commit" | "touched_file" | "branch_membership" | "time_window";
|
|
95
|
+
}>;
|
|
96
|
+
export declare const AllAssociationEvidenceKinds: readonly AssociationEvidenceKind[];
|
|
97
|
+
export declare function isAssociationEvidenceKind(value: unknown): value is AssociationEvidenceKind;
|
|
73
98
|
export type BuiltinCommand = BuiltinCommandContract;
|
|
74
99
|
export declare const BuiltinCommand: Readonly<{
|
|
75
100
|
readonly Exit: "new" | "clear" | "resume" | "exit" | "compact" | "config" | "model" | "usage" | "cost" | "context" | "plugin" | "permissions" | "login" | "plan" | "fast" | "voice" | "todos" | "reload-plugins" | "sandbox" | "statusline" | "upgrade" | "extra-usage" | "rate-limit-options" | "privacy-settings" | "help" | "commands";
|
|
@@ -120,6 +145,14 @@ export declare const ChannelTopic: Readonly<{
|
|
|
120
145
|
}>;
|
|
121
146
|
export declare const AllChannelTopics: readonly ChannelTopic[];
|
|
122
147
|
export declare function isChannelTopic(value: unknown): value is ChannelTopic;
|
|
148
|
+
export type Confidence = ConfidenceContract;
|
|
149
|
+
export declare const Confidence: Readonly<{
|
|
150
|
+
readonly High: "high" | "low" | "medium";
|
|
151
|
+
readonly Medium: "high" | "low" | "medium";
|
|
152
|
+
readonly Low: "high" | "low" | "medium";
|
|
153
|
+
}>;
|
|
154
|
+
export declare const AllConfidences: readonly Confidence[];
|
|
155
|
+
export declare function isConfidence(value: unknown): value is Confidence;
|
|
123
156
|
export type ContentKind = ContentKindContract;
|
|
124
157
|
export declare const ContentKind: Readonly<{
|
|
125
158
|
readonly SessionDetail: "session_detail";
|
|
@@ -187,6 +220,22 @@ export declare const Harness: Readonly<{
|
|
|
187
220
|
*/
|
|
188
221
|
export declare const AllHarnesses: readonly Harness[];
|
|
189
222
|
export declare function isHarness(value: unknown): value is Harness;
|
|
223
|
+
export type InsightKind = InsightKindContract;
|
|
224
|
+
export declare const InsightKind: Readonly<{
|
|
225
|
+
readonly Decision: "decision" | "friction" | "unusual" | "retry_loop";
|
|
226
|
+
readonly Friction: "decision" | "friction" | "unusual" | "retry_loop";
|
|
227
|
+
readonly Unusual: "decision" | "friction" | "unusual" | "retry_loop";
|
|
228
|
+
readonly RetryLoop: "decision" | "friction" | "unusual" | "retry_loop";
|
|
229
|
+
}>;
|
|
230
|
+
export declare const AllInsightKinds: readonly InsightKind[];
|
|
231
|
+
export declare function isInsightKind(value: unknown): value is InsightKind;
|
|
232
|
+
export type InsightProvenance = InsightProvenanceContract;
|
|
233
|
+
export declare const InsightProvenance: Readonly<{
|
|
234
|
+
readonly Mechanical: "mechanical" | "mined";
|
|
235
|
+
readonly Mined: "mechanical" | "mined";
|
|
236
|
+
}>;
|
|
237
|
+
export declare const AllInsightProvenances: readonly InsightProvenance[];
|
|
238
|
+
export declare function isInsightProvenance(value: unknown): value is InsightProvenance;
|
|
190
239
|
export type InteractionType = InteractionTypeContract;
|
|
191
240
|
export declare const InteractionType: Readonly<{
|
|
192
241
|
readonly Mentioned: "mentioned" | "read" | "discussed" | "questioned";
|
|
@@ -228,6 +277,42 @@ export declare const MessageType: Readonly<{
|
|
|
228
277
|
}>;
|
|
229
278
|
export declare const AllMessageTypes: readonly MessageType[];
|
|
230
279
|
export declare function isMessageType(value: unknown): value is MessageType;
|
|
280
|
+
export type ReadAttributionState = ReadAttributionStateContract;
|
|
281
|
+
export declare const ReadAttributionState: Readonly<{
|
|
282
|
+
readonly Complete: "complete" | "partial" | "unavailable";
|
|
283
|
+
readonly Partial: "complete" | "partial" | "unavailable";
|
|
284
|
+
readonly Unavailable: "complete" | "partial" | "unavailable";
|
|
285
|
+
}>;
|
|
286
|
+
export declare const AllReadAttributionStates: readonly ReadAttributionState[];
|
|
287
|
+
export declare function isReadAttributionState(value: unknown): value is ReadAttributionState;
|
|
288
|
+
export type ReadStateGrade = ReadStateGradeContract;
|
|
289
|
+
export declare const ReadStateGrade: Readonly<{
|
|
290
|
+
readonly None: "none" | "viewed" | "reviewed" | "reviewed_in_detail";
|
|
291
|
+
readonly Viewed: "none" | "viewed" | "reviewed" | "reviewed_in_detail";
|
|
292
|
+
readonly Reviewed: "none" | "viewed" | "reviewed" | "reviewed_in_detail";
|
|
293
|
+
readonly ReviewedInDetail: "none" | "viewed" | "reviewed" | "reviewed_in_detail";
|
|
294
|
+
}>;
|
|
295
|
+
export declare const AllReadStateGrades: readonly ReadStateGrade[];
|
|
296
|
+
export declare function isReadStateGrade(value: unknown): value is ReadStateGrade;
|
|
297
|
+
export type RewriteMethod = RewriteMethodContract;
|
|
298
|
+
export declare const RewriteMethod: Readonly<{
|
|
299
|
+
readonly Hash: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
300
|
+
readonly PatchID: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
301
|
+
readonly AuthorIdentity: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
302
|
+
readonly MessageEmbedded: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
303
|
+
readonly Temporal: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
304
|
+
readonly None: "none" | "hash" | "patch_id" | "author_identity" | "message_embedded" | "temporal";
|
|
305
|
+
}>;
|
|
306
|
+
export declare const AllRewriteMethods: readonly RewriteMethod[];
|
|
307
|
+
export declare function isRewriteMethod(value: unknown): value is RewriteMethod;
|
|
308
|
+
export type RewriteResolution = RewriteResolutionContract;
|
|
309
|
+
export declare const RewriteResolution: Readonly<{
|
|
310
|
+
readonly Live: "live" | "rewritten" | "unresolved";
|
|
311
|
+
readonly Rewritten: "live" | "rewritten" | "unresolved";
|
|
312
|
+
readonly Unresolved: "live" | "rewritten" | "unresolved";
|
|
313
|
+
}>;
|
|
314
|
+
export declare const AllRewriteResolutions: readonly RewriteResolution[];
|
|
315
|
+
export declare function isRewriteResolution(value: unknown): value is RewriteResolution;
|
|
231
316
|
export type Role = RoleContract;
|
|
232
317
|
export declare const Role: Readonly<{
|
|
233
318
|
readonly User: "user" | "system" | "assistant" | "tool";
|
|
@@ -272,10 +357,12 @@ export declare const AllStopReasons: readonly StopReason[];
|
|
|
272
357
|
export declare function isStopReason(value: unknown): value is StopReason;
|
|
273
358
|
export type TargetKind = TargetKindContract;
|
|
274
359
|
export declare const TargetKind: Readonly<{
|
|
275
|
-
readonly Session: "session" | "annotation" | "project" | "entry";
|
|
276
|
-
readonly Entry: "session" | "annotation" | "project" | "entry";
|
|
277
|
-
readonly Annotation: "session" | "annotation" | "project" | "entry";
|
|
278
|
-
readonly Project: "session" | "annotation" | "project" | "entry";
|
|
360
|
+
readonly Session: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
361
|
+
readonly Entry: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
362
|
+
readonly Annotation: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
363
|
+
readonly Project: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
364
|
+
readonly FileVersion: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
365
|
+
readonly Association: "session" | "annotation" | "project" | "entry" | "file_version" | "association";
|
|
279
366
|
}>;
|
|
280
367
|
export declare const AllTargetKinds: readonly TargetKind[];
|
|
281
368
|
export declare function isTargetKind(value: unknown): value is TargetKind;
|
|
@@ -4,9 +4,12 @@ import { zAnnotationDatatype } from "./contract/zod.gen.js";
|
|
|
4
4
|
import { zAnnotationPushStatus } from "./contract/zod.gen.js";
|
|
5
5
|
import { zAnnotationStatus } from "./contract/zod.gen.js";
|
|
6
6
|
import { zAnnotatorKind } from "./contract/zod.gen.js";
|
|
7
|
+
import { zAssociationConclusion } from "./contract/zod.gen.js";
|
|
8
|
+
import { zAssociationEvidenceKind } from "./contract/zod.gen.js";
|
|
7
9
|
import { zBuiltinCommand } from "./contract/zod.gen.js";
|
|
8
10
|
import { zChangeBinding } from "./contract/zod.gen.js";
|
|
9
11
|
import { zChannelTopic } from "./contract/zod.gen.js";
|
|
12
|
+
import { zConfidence } from "./contract/zod.gen.js";
|
|
10
13
|
import { zContentKind } from "./contract/zod.gen.js";
|
|
11
14
|
import { zDecayLevel } from "./contract/zod.gen.js";
|
|
12
15
|
import { zDiffLineKind } from "./contract/zod.gen.js";
|
|
@@ -14,10 +17,16 @@ import { zEdgeViolationKind } from "./contract/zod.gen.js";
|
|
|
14
17
|
import { zEntryType } from "./contract/zod.gen.js";
|
|
15
18
|
import { zFileChangeStatus } from "./contract/zod.gen.js";
|
|
16
19
|
import { zHarness } from "./contract/zod.gen.js";
|
|
20
|
+
import { zInsightKind } from "./contract/zod.gen.js";
|
|
21
|
+
import { zInsightProvenance } from "./contract/zod.gen.js";
|
|
17
22
|
import { zInteractionType } from "./contract/zod.gen.js";
|
|
18
23
|
import { zLicense } from "./contract/zod.gen.js";
|
|
19
24
|
import { zMapNodeKind } from "./contract/zod.gen.js";
|
|
20
25
|
import { zMessageType } from "./contract/zod.gen.js";
|
|
26
|
+
import { zReadAttributionState } from "./contract/zod.gen.js";
|
|
27
|
+
import { zReadStateGrade } from "./contract/zod.gen.js";
|
|
28
|
+
import { zRewriteMethod } from "./contract/zod.gen.js";
|
|
29
|
+
import { zRewriteResolution } from "./contract/zod.gen.js";
|
|
21
30
|
import { zRole } from "./contract/zod.gen.js";
|
|
22
31
|
import { zScaleKind } from "./contract/zod.gen.js";
|
|
23
32
|
import { zSessionOutcome } from "./contract/zod.gen.js";
|
|
@@ -76,6 +85,24 @@ export const AllAnnotatorKinds = Object.freeze([AnnotatorKind.Human, AnnotatorKi
|
|
|
76
85
|
export function isAnnotatorKind(value) {
|
|
77
86
|
return zAnnotatorKind.safeParse(value).success;
|
|
78
87
|
}
|
|
88
|
+
export const AssociationConclusion = Object.freeze({
|
|
89
|
+
Confirmed: zAssociationConclusion.parse("confirmed"),
|
|
90
|
+
Candidate: zAssociationConclusion.parse("candidate"),
|
|
91
|
+
});
|
|
92
|
+
export const AllAssociationConclusions = Object.freeze([AssociationConclusion.Confirmed, AssociationConclusion.Candidate]);
|
|
93
|
+
export function isAssociationConclusion(value) {
|
|
94
|
+
return zAssociationConclusion.safeParse(value).success;
|
|
95
|
+
}
|
|
96
|
+
export const AssociationEvidenceKind = Object.freeze({
|
|
97
|
+
RecordedCommit: zAssociationEvidenceKind.parse("recorded_commit"),
|
|
98
|
+
TouchedFile: zAssociationEvidenceKind.parse("touched_file"),
|
|
99
|
+
BranchMembership: zAssociationEvidenceKind.parse("branch_membership"),
|
|
100
|
+
TimeWindow: zAssociationEvidenceKind.parse("time_window"),
|
|
101
|
+
});
|
|
102
|
+
export const AllAssociationEvidenceKinds = Object.freeze([AssociationEvidenceKind.RecordedCommit, AssociationEvidenceKind.TouchedFile, AssociationEvidenceKind.BranchMembership, AssociationEvidenceKind.TimeWindow]);
|
|
103
|
+
export function isAssociationEvidenceKind(value) {
|
|
104
|
+
return zAssociationEvidenceKind.safeParse(value).success;
|
|
105
|
+
}
|
|
79
106
|
export const BuiltinCommand = Object.freeze({
|
|
80
107
|
Exit: zBuiltinCommand.parse("exit"),
|
|
81
108
|
Compact: zBuiltinCommand.parse("compact"),
|
|
@@ -129,6 +156,15 @@ export const AllChannelTopics = Object.freeze([ChannelTopic.Dashboard, ChannelTo
|
|
|
129
156
|
export function isChannelTopic(value) {
|
|
130
157
|
return zChannelTopic.safeParse(value).success;
|
|
131
158
|
}
|
|
159
|
+
export const Confidence = Object.freeze({
|
|
160
|
+
High: zConfidence.parse("high"),
|
|
161
|
+
Medium: zConfidence.parse("medium"),
|
|
162
|
+
Low: zConfidence.parse("low"),
|
|
163
|
+
});
|
|
164
|
+
export const AllConfidences = Object.freeze([Confidence.High, Confidence.Medium, Confidence.Low]);
|
|
165
|
+
export function isConfidence(value) {
|
|
166
|
+
return zConfidence.safeParse(value).success;
|
|
167
|
+
}
|
|
132
168
|
export const ContentKind = Object.freeze({
|
|
133
169
|
SessionDetail: zContentKind.parse("session_detail"),
|
|
134
170
|
});
|
|
@@ -203,6 +239,24 @@ export const AllHarnesses = Object.freeze([Harness.ClaudeCode, Harness.GeminiCLI
|
|
|
203
239
|
export function isHarness(value) {
|
|
204
240
|
return zHarness.safeParse(value).success;
|
|
205
241
|
}
|
|
242
|
+
export const InsightKind = Object.freeze({
|
|
243
|
+
Decision: zInsightKind.parse("decision"),
|
|
244
|
+
Friction: zInsightKind.parse("friction"),
|
|
245
|
+
Unusual: zInsightKind.parse("unusual"),
|
|
246
|
+
RetryLoop: zInsightKind.parse("retry_loop"),
|
|
247
|
+
});
|
|
248
|
+
export const AllInsightKinds = Object.freeze([InsightKind.Decision, InsightKind.Friction, InsightKind.Unusual, InsightKind.RetryLoop]);
|
|
249
|
+
export function isInsightKind(value) {
|
|
250
|
+
return zInsightKind.safeParse(value).success;
|
|
251
|
+
}
|
|
252
|
+
export const InsightProvenance = Object.freeze({
|
|
253
|
+
Mechanical: zInsightProvenance.parse("mechanical"),
|
|
254
|
+
Mined: zInsightProvenance.parse("mined"),
|
|
255
|
+
});
|
|
256
|
+
export const AllInsightProvenances = Object.freeze([InsightProvenance.Mechanical, InsightProvenance.Mined]);
|
|
257
|
+
export function isInsightProvenance(value) {
|
|
258
|
+
return zInsightProvenance.safeParse(value).success;
|
|
259
|
+
}
|
|
206
260
|
export const InteractionType = Object.freeze({
|
|
207
261
|
Mentioned: zInteractionType.parse("mentioned"),
|
|
208
262
|
Read: zInteractionType.parse("read"),
|
|
@@ -248,6 +302,46 @@ export const AllMessageTypes = Object.freeze([MessageType.Subscribe, MessageType
|
|
|
248
302
|
export function isMessageType(value) {
|
|
249
303
|
return zMessageType.safeParse(value).success;
|
|
250
304
|
}
|
|
305
|
+
export const ReadAttributionState = Object.freeze({
|
|
306
|
+
Complete: zReadAttributionState.parse("complete"),
|
|
307
|
+
Partial: zReadAttributionState.parse("partial"),
|
|
308
|
+
Unavailable: zReadAttributionState.parse("unavailable"),
|
|
309
|
+
});
|
|
310
|
+
export const AllReadAttributionStates = Object.freeze([ReadAttributionState.Complete, ReadAttributionState.Partial, ReadAttributionState.Unavailable]);
|
|
311
|
+
export function isReadAttributionState(value) {
|
|
312
|
+
return zReadAttributionState.safeParse(value).success;
|
|
313
|
+
}
|
|
314
|
+
export const ReadStateGrade = Object.freeze({
|
|
315
|
+
None: zReadStateGrade.parse("none"),
|
|
316
|
+
Viewed: zReadStateGrade.parse("viewed"),
|
|
317
|
+
Reviewed: zReadStateGrade.parse("reviewed"),
|
|
318
|
+
ReviewedInDetail: zReadStateGrade.parse("reviewed_in_detail"),
|
|
319
|
+
});
|
|
320
|
+
export const AllReadStateGrades = Object.freeze([ReadStateGrade.None, ReadStateGrade.Viewed, ReadStateGrade.Reviewed, ReadStateGrade.ReviewedInDetail]);
|
|
321
|
+
export function isReadStateGrade(value) {
|
|
322
|
+
return zReadStateGrade.safeParse(value).success;
|
|
323
|
+
}
|
|
324
|
+
export const RewriteMethod = Object.freeze({
|
|
325
|
+
Hash: zRewriteMethod.parse("hash"),
|
|
326
|
+
PatchID: zRewriteMethod.parse("patch_id"),
|
|
327
|
+
AuthorIdentity: zRewriteMethod.parse("author_identity"),
|
|
328
|
+
MessageEmbedded: zRewriteMethod.parse("message_embedded"),
|
|
329
|
+
Temporal: zRewriteMethod.parse("temporal"),
|
|
330
|
+
None: zRewriteMethod.parse("none"),
|
|
331
|
+
});
|
|
332
|
+
export const AllRewriteMethods = Object.freeze([RewriteMethod.Hash, RewriteMethod.PatchID, RewriteMethod.AuthorIdentity, RewriteMethod.MessageEmbedded, RewriteMethod.Temporal, RewriteMethod.None]);
|
|
333
|
+
export function isRewriteMethod(value) {
|
|
334
|
+
return zRewriteMethod.safeParse(value).success;
|
|
335
|
+
}
|
|
336
|
+
export const RewriteResolution = Object.freeze({
|
|
337
|
+
Live: zRewriteResolution.parse("live"),
|
|
338
|
+
Rewritten: zRewriteResolution.parse("rewritten"),
|
|
339
|
+
Unresolved: zRewriteResolution.parse("unresolved"),
|
|
340
|
+
});
|
|
341
|
+
export const AllRewriteResolutions = Object.freeze([RewriteResolution.Live, RewriteResolution.Rewritten, RewriteResolution.Unresolved]);
|
|
342
|
+
export function isRewriteResolution(value) {
|
|
343
|
+
return zRewriteResolution.safeParse(value).success;
|
|
344
|
+
}
|
|
251
345
|
export const Role = Object.freeze({
|
|
252
346
|
User: zRole.parse("user"),
|
|
253
347
|
Assistant: zRole.parse("assistant"),
|
|
@@ -300,8 +394,10 @@ export const TargetKind = Object.freeze({
|
|
|
300
394
|
Entry: zTargetKind.parse("entry"),
|
|
301
395
|
Annotation: zTargetKind.parse("annotation"),
|
|
302
396
|
Project: zTargetKind.parse("project"),
|
|
397
|
+
FileVersion: zTargetKind.parse("file_version"),
|
|
398
|
+
Association: zTargetKind.parse("association"),
|
|
303
399
|
});
|
|
304
|
-
export const AllTargetKinds = Object.freeze([TargetKind.Session, TargetKind.Entry, TargetKind.Annotation, TargetKind.Project]);
|
|
400
|
+
export const AllTargetKinds = Object.freeze([TargetKind.Session, TargetKind.Entry, TargetKind.Annotation, TargetKind.Project, TargetKind.FileVersion, TargetKind.Association]);
|
|
305
401
|
export function isTargetKind(value) {
|
|
306
402
|
return zTargetKind.safeParse(value).success;
|
|
307
403
|
}
|
|
@@ -326,6 +326,31 @@ export interface components {
|
|
|
326
326
|
* @enum {string}
|
|
327
327
|
*/
|
|
328
328
|
SchemaAnnotatorKind: Schema.AnnotatorKind;
|
|
329
|
+
/**
|
|
330
|
+
* Association Conclusion
|
|
331
|
+
* @description Producer-supplied conclusion for a session-to-commit association: confirmed or candidate
|
|
332
|
+
* @example confirmed
|
|
333
|
+
* @example candidate
|
|
334
|
+
* @enum {string}
|
|
335
|
+
*/
|
|
336
|
+
SchemaAssociationConclusion: Schema.AssociationConclusion;
|
|
337
|
+
/**
|
|
338
|
+
* Association Evidence Kind
|
|
339
|
+
* @description Atomic observation supporting a session-to-commit association
|
|
340
|
+
* @example recorded_commit
|
|
341
|
+
* @example touched_file
|
|
342
|
+
* @example branch_membership
|
|
343
|
+
* @example time_window
|
|
344
|
+
* @enum {string}
|
|
345
|
+
*/
|
|
346
|
+
SchemaAssociationEvidenceKind: Schema.AssociationEvidenceKind;
|
|
347
|
+
SchemaAssociationEvidenceObservation: Schema.AssociationEvidenceObservation;
|
|
348
|
+
/**
|
|
349
|
+
* Association ID
|
|
350
|
+
* @description Opaque durable Peasant identifier for one session-to-commit association
|
|
351
|
+
* @example assoc-20260726:session-a:commit-1
|
|
352
|
+
*/
|
|
353
|
+
SchemaAssociationID: Schema.AssociationID;
|
|
329
354
|
/**
|
|
330
355
|
* Change Binding
|
|
331
356
|
* @description Strength of the evidence connecting a recorded session to a code change
|
|
@@ -354,6 +379,15 @@ export interface components {
|
|
|
354
379
|
SchemaChannelTopic: Schema.ChannelTopic;
|
|
355
380
|
SchemaChildSessionRef: Schema.ChildSessionRef;
|
|
356
381
|
SchemaCommitRef: Schema.CommitRef;
|
|
382
|
+
/**
|
|
383
|
+
* Confidence
|
|
384
|
+
* @description Strength of evidence behind a derived relationship: high, medium, or low
|
|
385
|
+
* @example high
|
|
386
|
+
* @example medium
|
|
387
|
+
* @example low
|
|
388
|
+
* @enum {string}
|
|
389
|
+
*/
|
|
390
|
+
SchemaConfidence: Schema.Confidence;
|
|
357
391
|
SchemaCreateAnnotationRequest: Schema.CreateAnnotationRequest;
|
|
358
392
|
SchemaCreateAnnotationResponse: Schema.CreateAnnotationResponse;
|
|
359
393
|
SchemaDayStats: Schema.DayStats;
|
|
@@ -399,6 +433,26 @@ export interface components {
|
|
|
399
433
|
SchemaFileChangeStatus: Schema.FileChangeStatus;
|
|
400
434
|
SchemaFrictionCluster: Schema.FrictionCluster;
|
|
401
435
|
SchemaHealthResponse: Schema.HealthResponse;
|
|
436
|
+
SchemaInsightClassification: Schema.InsightClassification;
|
|
437
|
+
SchemaInsightEvidence: Schema.InsightEvidence;
|
|
438
|
+
/**
|
|
439
|
+
* Insight Kind
|
|
440
|
+
* @description What a SessionInsight observed: a decision, friction, an unusual rate elevation, or a retry loop
|
|
441
|
+
* @example decision
|
|
442
|
+
* @example friction
|
|
443
|
+
* @example unusual
|
|
444
|
+
* @example retry_loop
|
|
445
|
+
* @enum {string}
|
|
446
|
+
*/
|
|
447
|
+
SchemaInsightKind: Schema.InsightKind;
|
|
448
|
+
/**
|
|
449
|
+
* Insight Provenance
|
|
450
|
+
* @description How a SessionInsight was produced: mechanical (rule-derived) or mined
|
|
451
|
+
* @example mechanical
|
|
452
|
+
* @example mined
|
|
453
|
+
* @enum {string}
|
|
454
|
+
*/
|
|
455
|
+
SchemaInsightProvenance: Schema.InsightProvenance;
|
|
402
456
|
SchemaMapEdge: Schema.MapEdge;
|
|
403
457
|
SchemaMapGraphPayload: Schema.MapGraphPayload;
|
|
404
458
|
SchemaMapNode: Schema.MapNode;
|
|
@@ -443,7 +497,48 @@ export interface components {
|
|
|
443
497
|
SchemaProjectTasksPayload: Schema.ProjectTasksPayload;
|
|
444
498
|
SchemaProvenance: Schema.Provenance;
|
|
445
499
|
SchemaQualitySession: Schema.QualitySession;
|
|
500
|
+
/**
|
|
501
|
+
* Read Attribution State
|
|
502
|
+
* @description Whether per-file read attribution is recoverable for a node's editing sessions: complete, partial, or unavailable
|
|
503
|
+
* @example complete
|
|
504
|
+
* @example partial
|
|
505
|
+
* @example unavailable
|
|
506
|
+
* @enum {string}
|
|
507
|
+
*/
|
|
508
|
+
SchemaReadAttributionState: Schema.ReadAttributionState;
|
|
509
|
+
/**
|
|
510
|
+
* Read State Grade
|
|
511
|
+
* @description Ordinal explicit read-state act: none, viewed, reviewed, or reviewed_in_detail
|
|
512
|
+
* @example none
|
|
513
|
+
* @example viewed
|
|
514
|
+
* @example reviewed
|
|
515
|
+
* @example reviewed_in_detail
|
|
516
|
+
* @enum {string}
|
|
517
|
+
*/
|
|
518
|
+
SchemaReadStateGrade: Schema.ReadStateGrade;
|
|
446
519
|
SchemaReviewListPayload: Schema.ReviewListPayload;
|
|
520
|
+
/**
|
|
521
|
+
* Rewrite Method
|
|
522
|
+
* @description Mechanism the resolver used to map a ghost commit to its successor
|
|
523
|
+
* @example hash
|
|
524
|
+
* @example patch_id
|
|
525
|
+
* @example author_identity
|
|
526
|
+
* @example message_embedded
|
|
527
|
+
* @example temporal
|
|
528
|
+
* @example none
|
|
529
|
+
* @enum {string}
|
|
530
|
+
*/
|
|
531
|
+
SchemaRewriteMethod: Schema.RewriteMethod;
|
|
532
|
+
/**
|
|
533
|
+
* Rewrite Resolution
|
|
534
|
+
* @description Whether a ledger-observed commit hash is live, was rewritten, or could not be resolved
|
|
535
|
+
* @example live
|
|
536
|
+
* @example rewritten
|
|
537
|
+
* @example unresolved
|
|
538
|
+
* @enum {string}
|
|
539
|
+
*/
|
|
540
|
+
SchemaRewriteResolution: Schema.RewriteResolution;
|
|
541
|
+
SchemaRewrittenCommit: Schema.RewrittenCommit;
|
|
447
542
|
/**
|
|
448
543
|
* Role
|
|
449
544
|
* @description Sender role of a message turn
|
|
@@ -463,6 +558,7 @@ export interface components {
|
|
|
463
558
|
SchemaScaleKind: Schema.ScaleKind;
|
|
464
559
|
SchemaSearchPayload: Schema.SearchPayload;
|
|
465
560
|
SchemaSearchResult: Schema.SearchResult;
|
|
561
|
+
SchemaSessionAssociation: Schema.SessionAssociation;
|
|
466
562
|
SchemaSessionDetailPayload: Schema.SessionDetailPayload;
|
|
467
563
|
/**
|
|
468
564
|
* Session ID
|
|
@@ -474,6 +570,7 @@ export interface components {
|
|
|
474
570
|
* @example sess_3cd91f52effeXd3QAJ54jOyzv5
|
|
475
571
|
*/
|
|
476
572
|
SchemaSessionID: Schema.SessionID;
|
|
573
|
+
SchemaSessionInsight: Schema.SessionInsight;
|
|
477
574
|
/**
|
|
478
575
|
* Session Outcome
|
|
479
576
|
* @description Resolution status of the session
|
|
@@ -497,9 +594,11 @@ export interface components {
|
|
|
497
594
|
SchemaStopReason: Schema.StopReason;
|
|
498
595
|
/**
|
|
499
596
|
* Target Kind
|
|
500
|
-
* @description What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, or
|
|
597
|
+
* @description 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
|
|
501
598
|
* @example session
|
|
502
599
|
* @example entry
|
|
600
|
+
* @example file_version
|
|
601
|
+
* @example association
|
|
503
602
|
* @enum {string}
|
|
504
603
|
*/
|
|
505
604
|
SchemaTargetKind: Schema.TargetKind;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster,
|
|
2
|
-
export type { ActivityEdge, AnnotationEntryTarget, AnnotationManifestResponse, AnnotationPushResult, AnnotationPushResponse, AnnotatorSummary, BatchCreateAnnotationsErrorResponse, BatchCreateAnnotationsResponse, CLILoginQuery, ChangeSummary, ChannelSubscription, ChildSessionRef, CommitInfo, ContractVersion, CreateAnnotationRequest, BatchCreateAnnotationsRequest, CreateAnnotationResponse, DashboardPayload, DayStats, DiagnosticEntry, DiagnosticsInfo, DiffLine, DiffHunk, EdgeViolation, ExchangeCodeRequest, ExchangeCodeResponse, ChangeDiffPayload, FileChange, FileFamiliarity, FrictionCluster,
|
|
1
|
+
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
|
|
2
|
+
export type { ActivityEdge, AnnotationEntryTarget, AnnotationManifestResponse, AnnotationPushResult, AnnotationPushResponse, AnnotatorSummary, AssociationEvidenceObservation, AssociationID, BatchCreateAnnotationsErrorResponse, BatchCreateAnnotationsResponse, CLILoginQuery, ChangeSummary, ChannelSubscription, ChildSessionRef, CommitInfo, ContractVersion, CreateAnnotationRequest, BatchCreateAnnotationsRequest, CreateAnnotationResponse, DashboardPayload, DayStats, DiagnosticEntry, DiagnosticsInfo, DiffLine, DiffHunk, EdgeViolation, ExchangeCodeRequest, ExchangeCodeResponse, ChangeDiffPayload, FileChange, FileFamiliarity, FrictionCluster, HealthResponse, HostSlug, InsightClassification, MapEdge, ClientMessage, MockConfigResponse, ModelID, ModelInfo, ProjectHash, ProjectContext, ProjectResolutionPayload, ProjectSummary, ProjectSummariesPayload, Provenance, PublishResponse, PublishedAssociation, GitContext, MapNode, MapGraphPayload, MapSlice, RedactionInfo, ReviewSuggestion, SchemaVersionResponse, SearchResult, SearchPayload, ServerMessage, SessionID, InsightEvidence, SessionAssociation, CommitRef, RewrittenCommit, SessionIdentity, SessionInsight, QualityMetrics, SessionScorecard, SessionStats, SessionSummary, SessionsPayload, ShutdownResponse, SourceInfo, SubagentRef, AnnotationPushItem, AnnotationPushRequest, AnnotationSummary, AnnotationsPayload, PullAnnotation, QualitySession, QualityPayload, TaskSummary, ChangeSession, MapNodeDetailPayload, ProjectTasksPayload, TimelineSessionRef, ReviewListPayload, TimestampInfo, SessionEntry, PublishRequest, ToolCallDetail, TranscriptID, PullSkipGateItem, PullSkipGateRequest, PullSkipGateResult, PullSkipGateResponse, TrendsPayload, TurnDetail, SessionDetailPayload, TranscriptContent, UnifiedMetadata, UnusualSignal, ChangeDetailPayload, ValueDomain, AnnotationTypeSummary, TaxonomyFamilyNode, TaxonomyNode, PullTranscriptInfo, PullListResponse, WalkthroughStep, WalkthroughTrail, FamiliarityPayload } from "./contract/zod.gen.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
|
-
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster,
|
|
2
|
+
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
|