@peasant-labs/schema 0.52.0 → 0.54.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.
- package/README.md +8 -0
- package/dist/fixtures/session-graph.d.ts +8 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +212 -3
- package/dist/internal/generated/contract/zod.gen.d.ts +2115 -1484
- package/dist/internal/generated/contract/zod.gen.js +557 -337
- package/dist/internal/generated/enums.gen.d.ts +79 -2
- package/dist/internal/generated/enums.gen.js +86 -0
- 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/routes.gen.d.ts +660 -0
- package/dist/internal/generated/routes.gen.js +818 -0
- package/dist/internal/generated/session-graph-fixtures.gen.d.ts +8 -0
- package/dist/internal/generated/session-graph-fixtures.gen.js +10 -0
- package/dist/internal/generated/versions.gen.d.ts +4 -2
- package/dist/internal/generated/versions.gen.js +4 -2
- package/dist/internal/generated/village-api.d.ts +506 -8
- package/dist/local-api.d.ts +2 -0
- package/dist/local-api.js +1 -0
- package/dist/route-member.d.ts +33 -0
- package/dist/route-member.js +50 -0
- package/dist/transcript-directory-positions.d.ts +3 -0
- package/dist/transcript-directory-positions.js +89 -0
- package/dist/transcript-served-turn.d.ts +17 -0
- package/dist/transcript-served-turn.js +11 -0
- package/dist/village-api.d.ts +2 -0
- package/dist/village-api.js +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { collectiveContractIssue } from "../../../collective-validation.js";
|
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
export const zActivityEdge = z.object({
|
|
6
6
|
from: z.string(),
|
|
7
|
-
taskCount: z.
|
|
7
|
+
taskCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
8
8
|
to: z.string()
|
|
9
9
|
});
|
|
10
10
|
/**
|
|
@@ -40,8 +40,8 @@ export const zAnnotationDatatype = z.enum([
|
|
|
40
40
|
'boolean'
|
|
41
41
|
]);
|
|
42
42
|
export const zAnnotationEntryTarget = z.object({
|
|
43
|
-
endIndex: z.
|
|
44
|
-
entryIndex: z.
|
|
43
|
+
endIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
44
|
+
entryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
45
45
|
sessionId: z.string().min(1)
|
|
46
46
|
}).superRefine((value, context) => {
|
|
47
47
|
if (value.sessionId === "")
|
|
@@ -70,11 +70,11 @@ export const zAnnotationPushResult = z.object({
|
|
|
70
70
|
status: zAnnotationPushStatus
|
|
71
71
|
});
|
|
72
72
|
export const zAnnotationPushResponse = z.object({
|
|
73
|
-
created: z.
|
|
74
|
-
errors: z.
|
|
73
|
+
created: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
74
|
+
errors: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
75
75
|
results: z.array(zAnnotationPushResult).optional(),
|
|
76
|
-
skipped: z.
|
|
77
|
-
updated: z.
|
|
76
|
+
skipped: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
77
|
+
updated: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
78
78
|
});
|
|
79
79
|
/**
|
|
80
80
|
* Annotation Status
|
|
@@ -129,8 +129,8 @@ export const zAssociationEvidenceObservation = z.object({
|
|
|
129
129
|
kind: zAssociationEvidenceKind,
|
|
130
130
|
recordedCommitHash: z.string().nullish(),
|
|
131
131
|
touchedFilePath: z.string().nullish(),
|
|
132
|
-
windowEndMs: z.
|
|
133
|
-
windowStartMs: z.
|
|
132
|
+
windowEndMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
133
|
+
windowStartMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
134
134
|
}).superRefine((value, context) => {
|
|
135
135
|
const isAbsent = (detail) => detail === undefined || detail === null;
|
|
136
136
|
const isGoWhitespace = (codePoint) => (codePoint >= 0x0009 && codePoint <= 0x000D)
|
|
@@ -285,7 +285,7 @@ export const zAutoPublishRemovalResponse = z.object({
|
|
|
285
285
|
export const zAutoPublishRuleKind = z.enum(['folder', 'remote']);
|
|
286
286
|
export const zBatchCreateAnnotationsErrorResponse = z.object({
|
|
287
287
|
error: z.string(),
|
|
288
|
-
failingIndex: z.
|
|
288
|
+
failingIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
289
289
|
});
|
|
290
290
|
export const zBatchCreateAnnotationsResponse = z.object({
|
|
291
291
|
ids: z.array(z.string()).nullable()
|
|
@@ -324,7 +324,7 @@ export const zBuiltinCommand = z.enum([
|
|
|
324
324
|
'commands'
|
|
325
325
|
]);
|
|
326
326
|
export const zCLILoginQuery = z.object({
|
|
327
|
-
port: z.
|
|
327
|
+
port: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
328
328
|
state: z.string()
|
|
329
329
|
});
|
|
330
330
|
export const zCanonicalPublishGitContext = z.object({
|
|
@@ -341,22 +341,22 @@ export const zCanonicalPublishGitContext = z.object({
|
|
|
341
341
|
*/
|
|
342
342
|
export const zChangeBinding = z.enum(['bound', 'candidate']);
|
|
343
343
|
export const zChangeSummary = z.object({
|
|
344
|
-
aheadCount: z.
|
|
344
|
+
aheadCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
345
345
|
baseHash: z.string().optional(),
|
|
346
|
-
behindCount: z.
|
|
346
|
+
behindCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
347
347
|
branch: z.string(),
|
|
348
|
-
filesChanged: z.
|
|
349
|
-
lastWorkMs: z.
|
|
348
|
+
filesChanged: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
349
|
+
lastWorkMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
350
350
|
mergeCommitHash: z.string().optional(),
|
|
351
351
|
merged: z.boolean(),
|
|
352
|
-
mergedAtMs: z.
|
|
353
|
-
newEdges: z.
|
|
354
|
-
removedEdges: z.
|
|
352
|
+
mergedAtMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
353
|
+
newEdges: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
354
|
+
removedEdges: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
355
355
|
reverted: z.boolean().optional(),
|
|
356
|
-
sessionCount: z.
|
|
357
|
-
taskCount: z.
|
|
358
|
-
tipCommitMs: z.
|
|
359
|
-
violations: z.
|
|
356
|
+
sessionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
357
|
+
taskCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
358
|
+
tipCommitMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
359
|
+
violations: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
360
360
|
});
|
|
361
361
|
/**
|
|
362
362
|
* Channel Topic
|
|
@@ -381,7 +381,7 @@ export const zChannelSubscription = z.object({
|
|
|
381
381
|
export const zChildSessionRef = z.object({
|
|
382
382
|
id: z.string(),
|
|
383
383
|
project: z.string().optional(),
|
|
384
|
-
startTime: z.iso.datetime()
|
|
384
|
+
startTime: z.iso.datetime({ offset: true })
|
|
385
385
|
});
|
|
386
386
|
/**
|
|
387
387
|
* Collective Evidence Coverage
|
|
@@ -563,8 +563,8 @@ export const zCreateAnnotationRequest = z.object({
|
|
|
563
563
|
reason: z.string().nullish(),
|
|
564
564
|
sessionId: z.string(),
|
|
565
565
|
targetAnnotationId: z.string().nullish(),
|
|
566
|
-
targetEntryEndIndex: z.
|
|
567
|
-
targetEntryIndex: z.
|
|
566
|
+
targetEntryEndIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
567
|
+
targetEntryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
568
568
|
typeId: z.string(),
|
|
569
569
|
value: z.string()
|
|
570
570
|
});
|
|
@@ -579,13 +579,13 @@ export const zDashboardPayload = z.object({
|
|
|
579
579
|
avgDurationMins: z.number(),
|
|
580
580
|
avgTurnsPerSession: z.number(),
|
|
581
581
|
harnessBreakdown: z.record(z.string(), z.int()).nullable(),
|
|
582
|
-
totalSessions: z.
|
|
583
|
-
totalTokens: z.
|
|
582
|
+
totalSessions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
583
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
584
584
|
});
|
|
585
585
|
export const zDayStats = z.object({
|
|
586
586
|
date: z.string(),
|
|
587
|
-
sessions: z.
|
|
588
|
-
tokens: z.
|
|
587
|
+
sessions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
588
|
+
tokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
589
589
|
});
|
|
590
590
|
/**
|
|
591
591
|
* Decay Level
|
|
@@ -639,10 +639,10 @@ export const zDiffLine = z.object({
|
|
|
639
639
|
export const zDiffHunk = z.object({
|
|
640
640
|
header: z.string().optional(),
|
|
641
641
|
lines: z.array(zDiffLine).nullable(),
|
|
642
|
-
newLines: z.
|
|
643
|
-
newStart: z.
|
|
644
|
-
oldLines: z.
|
|
645
|
-
oldStart: z.
|
|
642
|
+
newLines: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
643
|
+
newStart: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
644
|
+
oldLines: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
645
|
+
oldStart: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
646
646
|
sessionId: z.string().optional(),
|
|
647
647
|
sessionTitle: z.string().optional()
|
|
648
648
|
});
|
|
@@ -733,29 +733,29 @@ export const zChangeDiffPayload = z.object({
|
|
|
733
733
|
truncated: z.boolean()
|
|
734
734
|
});
|
|
735
735
|
export const zFileChange = z.object({
|
|
736
|
-
linesAdded: z.
|
|
737
|
-
linesRemoved: z.
|
|
736
|
+
linesAdded: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
737
|
+
linesRemoved: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
738
738
|
oldPath: z.string().nullish(),
|
|
739
739
|
path: z.string(),
|
|
740
740
|
status: zFileChangeStatus
|
|
741
741
|
});
|
|
742
742
|
export const zFileFamiliarity = z.object({
|
|
743
|
-
daysSince: z.
|
|
743
|
+
daysSince: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
744
744
|
decayLevel: zDecayLevel,
|
|
745
|
-
depth: z.
|
|
746
|
-
humanTurns: z.
|
|
745
|
+
depth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
746
|
+
humanTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
747
747
|
isSourceFile: z.boolean(),
|
|
748
748
|
lastEngagedAt: z.string().nullable(),
|
|
749
749
|
path: z.string(),
|
|
750
|
-
sessionCount: z.
|
|
751
|
-
totalTurns: z.
|
|
750
|
+
sessionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
751
|
+
totalTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
752
752
|
});
|
|
753
753
|
export const zFrictionCluster = z.object({
|
|
754
|
-
count: z.
|
|
754
|
+
count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
755
755
|
file: z.string(),
|
|
756
756
|
kind: z.string(),
|
|
757
757
|
label: z.string(),
|
|
758
|
-
sessions: z.
|
|
758
|
+
sessions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
759
759
|
});
|
|
760
760
|
/**
|
|
761
761
|
* Harness
|
|
@@ -911,8 +911,8 @@ export const zLocalKickstartDiffLineType = z.enum([
|
|
|
911
911
|
'ctx'
|
|
912
912
|
]);
|
|
913
913
|
export const zLocalKickstartDiffLine = z.object({
|
|
914
|
-
newNo: z.
|
|
915
|
-
oldNo: z.
|
|
914
|
+
newNo: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
915
|
+
oldNo: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
916
916
|
text: z.string(),
|
|
917
917
|
type: zLocalKickstartDiffLineType
|
|
918
918
|
}).strict();
|
|
@@ -1007,10 +1007,10 @@ export const zLocalKickstartIngestState = z.enum([
|
|
|
1007
1007
|
]);
|
|
1008
1008
|
export const zLocalKickstartIngest = z.object({
|
|
1009
1009
|
error: z.string().optional(),
|
|
1010
|
-
new: z.
|
|
1010
|
+
new: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1011
1011
|
note: z.string().optional(),
|
|
1012
1012
|
state: zLocalKickstartIngestState,
|
|
1013
|
-
updated: z.
|
|
1013
|
+
updated: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
1014
1014
|
}).strict();
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Kickstart Line Kind
|
|
@@ -1069,7 +1069,7 @@ export const zLocalKickstartNodeState = z.enum([
|
|
|
1069
1069
|
'all'
|
|
1070
1070
|
]);
|
|
1071
1071
|
export const zLocalKickstartNode = z.object({
|
|
1072
|
-
childCount: z.
|
|
1072
|
+
childCount: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1073
1073
|
harness: z.string().optional(),
|
|
1074
1074
|
id: z.string().min(1),
|
|
1075
1075
|
kind: zLocalKickstartNodeKind,
|
|
@@ -1105,15 +1105,15 @@ export const zLocalKickstartScanState = z.enum([
|
|
|
1105
1105
|
'error'
|
|
1106
1106
|
]);
|
|
1107
1107
|
export const zLocalKickstartScan = z.object({
|
|
1108
|
-
done: z.
|
|
1108
|
+
done: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1109
1109
|
droppedLabels: z.array(z.string()).max(3).optional(),
|
|
1110
|
-
droppedSelections: z.
|
|
1110
|
+
droppedSelections: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1111
1111
|
error: z.string().optional(),
|
|
1112
|
-
lockedNodes: z.
|
|
1112
|
+
lockedNodes: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1113
1113
|
notice: z.string().regex(/\S/).optional(),
|
|
1114
1114
|
phase: z.string().optional(),
|
|
1115
1115
|
state: zLocalKickstartScanState,
|
|
1116
|
-
total: z.
|
|
1116
|
+
total: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
1117
1117
|
}).strict();
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Kickstart Scope
|
|
@@ -1158,7 +1158,7 @@ export const zLocalKickstartVillage = z.object({
|
|
|
1158
1158
|
*/
|
|
1159
1159
|
export const zLocalOperationDiagnosticOutcome = z.enum(['failed', 'uncertain']);
|
|
1160
1160
|
export const zLocalPublicationAttemptFailure = z.object({
|
|
1161
|
-
attemptedAt: z.iso.datetime(),
|
|
1161
|
+
attemptedAt: z.iso.datetime({ offset: true }),
|
|
1162
1162
|
message: z.string()
|
|
1163
1163
|
});
|
|
1164
1164
|
/**
|
|
@@ -1199,7 +1199,7 @@ export const zLocalSettingValue = z.union([
|
|
|
1199
1199
|
export const zLocalKickstartAnswers = z.object({
|
|
1200
1200
|
connectAnswer: zLocalKickstartConnectAnswer.optional(),
|
|
1201
1201
|
resolutions: z.record(z.string(), zLocalKickstartResolution).optional(),
|
|
1202
|
-
revision: z.
|
|
1202
|
+
revision: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1203
1203
|
selectedIds: z.array(z.string()).optional(),
|
|
1204
1204
|
values: z.record(z.string(), zLocalSettingValue).optional()
|
|
1205
1205
|
}).strict();
|
|
@@ -1227,7 +1227,7 @@ export const zLocalKickstartField = z.object({
|
|
|
1227
1227
|
export const zLocalKickstartOverwrite = z.object({
|
|
1228
1228
|
key: z.string().min(1),
|
|
1229
1229
|
previous: zLocalSettingValue,
|
|
1230
|
-
revision: z.
|
|
1230
|
+
revision: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
1231
1231
|
}).strict();
|
|
1232
1232
|
export const zLocalKickstartStop = z.object({
|
|
1233
1233
|
diff: zLocalKickstartDiff.optional(),
|
|
@@ -1245,7 +1245,7 @@ export const zLocalKickstartSession = z.object({
|
|
|
1245
1245
|
connect: zLocalKickstartConnect,
|
|
1246
1246
|
id: z.string().min(1),
|
|
1247
1247
|
openedAt: z.string().min(1),
|
|
1248
|
-
revision: z.
|
|
1248
|
+
revision: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1249
1249
|
scan: zLocalKickstartScan,
|
|
1250
1250
|
scope: zLocalKickstartScope,
|
|
1251
1251
|
stops: z.array(zLocalKickstartStop),
|
|
@@ -1256,14 +1256,14 @@ export const zLocalKickstartEvent = z.object({
|
|
|
1256
1256
|
ingest: zLocalKickstartIngest.optional(),
|
|
1257
1257
|
kind: zLocalKickstartEventKind,
|
|
1258
1258
|
reason: zLocalKickstartCloseReason.optional(),
|
|
1259
|
-
revision: z.
|
|
1259
|
+
revision: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1260
1260
|
scan: zLocalKickstartScan.optional(),
|
|
1261
1261
|
sessionId: z.string().min(1),
|
|
1262
1262
|
view: zLocalKickstartSession.optional()
|
|
1263
1263
|
}).strict();
|
|
1264
1264
|
export const zLocalKickstartPatchResult = z.object({
|
|
1265
1265
|
overwritten: z.array(zLocalKickstartOverwrite).optional(),
|
|
1266
|
-
revision: z.
|
|
1266
|
+
revision: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1267
1267
|
stale: z.boolean(),
|
|
1268
1268
|
view: zLocalKickstartSession.optional()
|
|
1269
1269
|
}).strict();
|
|
@@ -1301,7 +1301,7 @@ export const zLongestStreak = z.object({
|
|
|
1301
1301
|
weeks: z.int().gte(0).lte(9007199254740991)
|
|
1302
1302
|
});
|
|
1303
1303
|
export const zMapEdge = z.object({
|
|
1304
|
-
count: z.
|
|
1304
|
+
count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1305
1305
|
from: z.string(),
|
|
1306
1306
|
to: z.string()
|
|
1307
1307
|
});
|
|
@@ -1375,7 +1375,7 @@ export const zModelInfo = z.object({
|
|
|
1375
1375
|
});
|
|
1376
1376
|
export const zNativeAttachmentRef = z.object({
|
|
1377
1377
|
toolCallId: z.string().optional(),
|
|
1378
|
-
turnIndex: z.
|
|
1378
|
+
turnIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
1379
1379
|
});
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Native Metadata Kind
|
|
@@ -1425,12 +1425,12 @@ export const zOmittedReason = z.enum([
|
|
|
1425
1425
|
'not_published'
|
|
1426
1426
|
]);
|
|
1427
1427
|
export const zImagePart = z.object({
|
|
1428
|
-
byteSize: z.
|
|
1429
|
-
height: z.
|
|
1428
|
+
byteSize: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1429
|
+
height: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1430
1430
|
mediaType: zImageMediaType.optional(),
|
|
1431
1431
|
omittedReason: zOmittedReason.optional(),
|
|
1432
1432
|
ref: z.string().length(64).regex(/^[0-9a-f]{64}$/).optional(),
|
|
1433
|
-
width: z.
|
|
1433
|
+
width: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional()
|
|
1434
1434
|
});
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Operation Issue Code
|
|
@@ -1516,6 +1516,15 @@ export const zPersonalMedians = z.object({
|
|
|
1516
1516
|
specQualityScore: z.number().nullish(),
|
|
1517
1517
|
withinSessionReverts: z.number().nullish()
|
|
1518
1518
|
});
|
|
1519
|
+
export const zPositionedSegmentRef = z.object({
|
|
1520
|
+
byteLength: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1521
|
+
conversationTurns: zConversationTurnSpan.nullish(),
|
|
1522
|
+
firstTurn: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1523
|
+
index: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1524
|
+
lastTurn: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
1525
|
+
sourceFirstPosition: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
1526
|
+
sourceLastPosition: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
1527
|
+
});
|
|
1519
1528
|
/**
|
|
1520
1529
|
* Project Hash
|
|
1521
1530
|
*
|
|
@@ -1544,28 +1553,28 @@ export const zProjectResolutionPayload = z.object({
|
|
|
1544
1553
|
projectHash: zProjectHash
|
|
1545
1554
|
});
|
|
1546
1555
|
export const zProjectSummary = z.object({
|
|
1547
|
-
lastWorkMs: z.
|
|
1548
|
-
openChanges: z.
|
|
1556
|
+
lastWorkMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
1557
|
+
openChanges: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1549
1558
|
project: z.string(),
|
|
1550
1559
|
projectHash: zProjectHash,
|
|
1551
|
-
recordedFiles: z.
|
|
1552
|
-
sessions: z.
|
|
1553
|
-
totalFiles: z.
|
|
1560
|
+
recordedFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1561
|
+
sessions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1562
|
+
totalFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
1554
1563
|
});
|
|
1555
1564
|
export const zProjectSummariesPayload = z.object({
|
|
1556
1565
|
projects: z.array(zProjectSummary).nullable()
|
|
1557
1566
|
});
|
|
1558
1567
|
export const zPromptDigestHeader = z.object({
|
|
1559
|
-
commitsCovered: z.
|
|
1560
|
-
commitsTotal: z.
|
|
1568
|
+
commitsCovered: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1569
|
+
commitsTotal: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1561
1570
|
harness: zHarness,
|
|
1562
|
-
promptCount: z.
|
|
1571
|
+
promptCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1563
1572
|
redactionLevel: z.string(),
|
|
1564
|
-
sessionCount: z.
|
|
1573
|
+
sessionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1565
1574
|
villageUrl: z.string()
|
|
1566
1575
|
});
|
|
1567
1576
|
export const zPromptDigestSkill = z.object({
|
|
1568
|
-
invocationCount: z.
|
|
1577
|
+
invocationCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1569
1578
|
name: z.string()
|
|
1570
1579
|
});
|
|
1571
1580
|
export const zProvenance = z.object({
|
|
@@ -1723,26 +1732,26 @@ export const zReadStateGrade = z.enum([
|
|
|
1723
1732
|
'reviewed_in_detail'
|
|
1724
1733
|
]);
|
|
1725
1734
|
export const zMapNode = z.object({
|
|
1726
|
-
agentEditedCount: z.
|
|
1727
|
-
attributedRegionCount: z.
|
|
1728
|
-
changedRegionCount: z.
|
|
1735
|
+
agentEditedCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1736
|
+
attributedRegionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1737
|
+
changedRegionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1729
1738
|
effortDensity: z.number(),
|
|
1730
|
-
fileCount: z.
|
|
1739
|
+
fileCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1731
1740
|
id: z.string(),
|
|
1732
1741
|
kind: zMapNodeKind,
|
|
1733
1742
|
language: z.string().optional(),
|
|
1734
|
-
layer: z.
|
|
1735
|
-
loc: z.
|
|
1743
|
+
layer: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1744
|
+
loc: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1736
1745
|
name: z.string(),
|
|
1737
|
-
order: z.
|
|
1746
|
+
order: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1738
1747
|
parent: z.string().optional(),
|
|
1739
1748
|
readAttribution: zReadAttributionState,
|
|
1740
|
-
readCount: z.
|
|
1749
|
+
readCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1741
1750
|
readState: zReadStateGrade,
|
|
1742
|
-
recordedFiles: z.
|
|
1743
|
-
reviewedRegionCount: z.
|
|
1744
|
-
totalFiles: z.
|
|
1745
|
-
touchCount: z.
|
|
1751
|
+
recordedFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1752
|
+
reviewedRegionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1753
|
+
totalFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1754
|
+
touchCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
1746
1755
|
});
|
|
1747
1756
|
export const zMapGraphPayload = z.object({
|
|
1748
1757
|
activityEdges: z.array(zActivityEdge).nullable(),
|
|
@@ -1774,7 +1783,7 @@ export const zRedactionInfo = z.object({
|
|
|
1774
1783
|
applied: z.boolean(),
|
|
1775
1784
|
content_hash_at_redact: z.string().optional(),
|
|
1776
1785
|
level: z.string().optional(),
|
|
1777
|
-
redacted_at_ms: z.
|
|
1786
|
+
redacted_at_ms: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
1778
1787
|
rule_set_version: z.string().optional()
|
|
1779
1788
|
});
|
|
1780
1789
|
/**
|
|
@@ -1825,7 +1834,7 @@ export const zReturningContributorRate = z.object({
|
|
|
1825
1834
|
total: z.int().gte(0).lte(9007199254740991)
|
|
1826
1835
|
});
|
|
1827
1836
|
export const zReviewSuggestion = z.object({
|
|
1828
|
-
daysSince: z.
|
|
1837
|
+
daysSince: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1829
1838
|
lastEngaged: z.string(),
|
|
1830
1839
|
path: z.string(),
|
|
1831
1840
|
suggestedPrompt: z.string()
|
|
@@ -1879,9 +1888,11 @@ export const zSchemaVersionResponse = z.object({
|
|
|
1879
1888
|
contentCapabilities: z.array(z.string()).optional(),
|
|
1880
1889
|
minPullContractVersion: z.string().optional(),
|
|
1881
1890
|
minPushContractVersion: z.string(),
|
|
1891
|
+
minSegmentedReadVersion: z.string().optional(),
|
|
1882
1892
|
pullContractMaxVersion: z.string().optional(),
|
|
1883
1893
|
pullContractVersion: z.string().optional(),
|
|
1884
1894
|
pushContractVersion: z.string(),
|
|
1895
|
+
segmentedReadVersion: z.string().optional(),
|
|
1885
1896
|
supportedTargetKinds: z.array(z.string()).nullable(),
|
|
1886
1897
|
supportedTypeIds: z.array(z.string()).nullable()
|
|
1887
1898
|
});
|
|
@@ -1905,7 +1916,7 @@ export const zScryCheckResponse = z.object({
|
|
|
1905
1916
|
verdict: zScryVerdict
|
|
1906
1917
|
}).strict();
|
|
1907
1918
|
export const zSearchResult = z.object({
|
|
1908
|
-
entryIndex: z.
|
|
1919
|
+
entryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
1909
1920
|
project: z.string(),
|
|
1910
1921
|
projectHash: zProjectHash.optional(),
|
|
1911
1922
|
role: z.string(),
|
|
@@ -1941,7 +1952,7 @@ export const zAuthoritativeSubagentRef = z.object({
|
|
|
1941
1952
|
}).strict();
|
|
1942
1953
|
export const zInsightEvidence = z.object({
|
|
1943
1954
|
commitHash: z.string().optional(),
|
|
1944
|
-
entryIndex: z.
|
|
1955
|
+
entryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
1945
1956
|
file: z.string().optional(),
|
|
1946
1957
|
sessionId: zSessionID
|
|
1947
1958
|
});
|
|
@@ -2000,11 +2011,11 @@ export const zCommitRef = z.object({
|
|
|
2000
2011
|
hash: z.string(),
|
|
2001
2012
|
sessionIds: z.array(zSessionID),
|
|
2002
2013
|
subject: z.string(),
|
|
2003
|
-
timeMs: z.
|
|
2014
|
+
timeMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
2004
2015
|
});
|
|
2005
2016
|
export const zRewrittenCommit = z.object({
|
|
2006
2017
|
associations: z.array(zSessionAssociation),
|
|
2007
|
-
authorTimeMs: z.
|
|
2018
|
+
authorTimeMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2008
2019
|
confidence: zConfidence,
|
|
2009
2020
|
ghostHash: z.string(),
|
|
2010
2021
|
method: zRewriteMethod,
|
|
@@ -2143,7 +2154,7 @@ export const zQualityMetrics = z.object({
|
|
|
2143
2154
|
withinSessionReverts: z.int().nullish()
|
|
2144
2155
|
});
|
|
2145
2156
|
export const zSessionPullRequest = z.object({
|
|
2146
|
-
number: z.
|
|
2157
|
+
number: z.number().refine(Number.isInteger).gte(1).lte(9223372036854775808),
|
|
2147
2158
|
owner: z.string().min(1),
|
|
2148
2159
|
repo: z.string().min(1),
|
|
2149
2160
|
source: z.string().min(1),
|
|
@@ -2179,17 +2190,17 @@ export const zSessionRelationshipKind = z.enum(['started_by', 'context_from']);
|
|
|
2179
2190
|
export const zSessionScorecard = z.object({
|
|
2180
2191
|
costTotalUsd: z.number().nullish(),
|
|
2181
2192
|
m2TokenOutcomeRatio: z.number().nullish(),
|
|
2182
|
-
m4ConsecutiveErrorMax: z.
|
|
2193
|
+
m4ConsecutiveErrorMax: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2183
2194
|
m5ContextUtilizationPct: z.number().nullish(),
|
|
2184
2195
|
m6OutputSurvivalPct: z.number().nullish(),
|
|
2185
2196
|
m7SpecHasConstraints: z.boolean().nullish(),
|
|
2186
2197
|
m7SpecHasExamples: z.boolean().nullish(),
|
|
2187
2198
|
outcome: zSessionOutcome.optional(),
|
|
2188
|
-
retryTokensWasted: z.
|
|
2199
|
+
retryTokensWasted: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2189
2200
|
signalDensity: z.number().nullish(),
|
|
2190
2201
|
specQualityScore: z.number().nullish(),
|
|
2191
|
-
totalTokens: z.
|
|
2192
|
-
withinSessionReverts: z.
|
|
2202
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2203
|
+
withinSessionReverts: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
2193
2204
|
});
|
|
2194
2205
|
export const zSessionStats = z.object({
|
|
2195
2206
|
cachedReadTokens: z.int().nullish(),
|
|
@@ -2283,11 +2294,11 @@ export const zSessionSummary = z.object({
|
|
|
2283
2294
|
relationships: z.array(zSessionRelationship).optional(),
|
|
2284
2295
|
rootSessionId: zSessionID.nullish(),
|
|
2285
2296
|
sessionOrigin: zSessionOrigin.optional(),
|
|
2286
|
-
startTime: z.iso.datetime(),
|
|
2297
|
+
startTime: z.iso.datetime({ offset: true }),
|
|
2287
2298
|
teammate: zSessionTeammate.nullish(),
|
|
2288
|
-
toolCallCount: z.
|
|
2289
|
-
totalTokens: z.
|
|
2290
|
-
turnCount: z.
|
|
2299
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2300
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2301
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
2291
2302
|
});
|
|
2292
2303
|
export const zSessionsPayload = z.object({
|
|
2293
2304
|
sessions: z.array(zSessionSummary).nullable()
|
|
@@ -2404,8 +2415,8 @@ export const zSyncRedactionItem = z.object({
|
|
|
2404
2415
|
contextAfter: z.array(z.string()),
|
|
2405
2416
|
contextBefore: z.array(z.string()),
|
|
2406
2417
|
description: z.string(),
|
|
2407
|
-
entryIndex: z.
|
|
2408
|
-
lineNumber: z.
|
|
2418
|
+
entryIndex: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
2419
|
+
lineNumber: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
2409
2420
|
originalText: z.string(),
|
|
2410
2421
|
redactedReplacement: z.string(),
|
|
2411
2422
|
ruleDisplayName: z.string(),
|
|
@@ -2413,7 +2424,7 @@ export const zSyncRedactionItem = z.object({
|
|
|
2413
2424
|
toolCallId: z.string().optional()
|
|
2414
2425
|
});
|
|
2415
2426
|
export const zSyncRedactionRuleGroup = z.object({
|
|
2416
|
-
count: z.
|
|
2427
|
+
count: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
2417
2428
|
displayName: z.string(),
|
|
2418
2429
|
items: z.array(zSyncRedactionItem),
|
|
2419
2430
|
ruleId: z.string()
|
|
@@ -2421,11 +2432,11 @@ export const zSyncRedactionRuleGroup = z.object({
|
|
|
2421
2432
|
export const zSyncRedactionCategoryGroup = z.object({
|
|
2422
2433
|
category: z.string(),
|
|
2423
2434
|
rules: z.array(zSyncRedactionRuleGroup),
|
|
2424
|
-
totalCount: z.
|
|
2435
|
+
totalCount: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
2425
2436
|
});
|
|
2426
2437
|
export const zSyncRedactionsResponse = z.object({
|
|
2427
2438
|
categories: z.array(zSyncRedactionCategoryGroup),
|
|
2428
|
-
total: z.
|
|
2439
|
+
total: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
2429
2440
|
});
|
|
2430
2441
|
/**
|
|
2431
2442
|
* Sync Status
|
|
@@ -2455,8 +2466,8 @@ export const zLocalSyncSummary = z.object({
|
|
|
2455
2466
|
startTime: z.string(),
|
|
2456
2467
|
syncStatus: zSyncStatus,
|
|
2457
2468
|
teammate: zSessionTeammate.nullish(),
|
|
2458
|
-
totalTokens: z.
|
|
2459
|
-
turnCount: z.
|
|
2469
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2470
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
2460
2471
|
});
|
|
2461
2472
|
export const zLocalSessionRow = z.object({
|
|
2462
2473
|
matches: z.array(zSearchResult).optional(),
|
|
@@ -2669,8 +2680,8 @@ export const zAnnotationSummary = z.object({
|
|
|
2669
2680
|
targetAnnotationId: z.string().nullish(),
|
|
2670
2681
|
targetAssociationId: zAssociationID.nullish(),
|
|
2671
2682
|
targetContentHash: z.string().nullish(),
|
|
2672
|
-
targetEntryEndIndex: z.
|
|
2673
|
-
targetEntryIndex: z.
|
|
2683
|
+
targetEntryEndIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2684
|
+
targetEntryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2674
2685
|
targetFilePath: z.string().nullish(),
|
|
2675
2686
|
targetKind: zTargetKind,
|
|
2676
2687
|
targetProjectHash: zProjectHash.nullish(),
|
|
@@ -2757,8 +2768,8 @@ export const zLegacyPullAnnotation = z.object({
|
|
|
2757
2768
|
targetAnnotationId: z.string().nullish(),
|
|
2758
2769
|
targetAssociationId: zAssociationID.optional(),
|
|
2759
2770
|
targetContentHash: z.string().nullish(),
|
|
2760
|
-
targetEntryEndIndex: z.
|
|
2761
|
-
targetEntryIndex: z.
|
|
2771
|
+
targetEntryEndIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2772
|
+
targetEntryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2762
2773
|
targetFilePath: z.string().nullish(),
|
|
2763
2774
|
targetKind: zTargetKind.optional(),
|
|
2764
2775
|
targetProjectHash: zProjectHash.optional(),
|
|
@@ -2776,49 +2787,49 @@ export const zLegacyPullAnnotation = z.object({
|
|
|
2776
2787
|
export const zQualitySession = z.object({
|
|
2777
2788
|
conversationTurnCount: z.int().gte(0).lte(9007199254740991).optional(),
|
|
2778
2789
|
date: z.string(),
|
|
2779
|
-
discoveryTurns: z.
|
|
2790
|
+
discoveryTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2780
2791
|
durationMinutes: z.number(),
|
|
2781
2792
|
effectiveAnnotations: z.array(zAnnotationSummary).optional(),
|
|
2782
2793
|
explorationRatio: z.number(),
|
|
2783
|
-
filesTouched: z.
|
|
2794
|
+
filesTouched: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2784
2795
|
id: z.string(),
|
|
2785
|
-
inputTokens: z.
|
|
2786
|
-
linesChanged: z.
|
|
2796
|
+
inputTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2797
|
+
linesChanged: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2787
2798
|
outcome: z.string(),
|
|
2788
|
-
outputTokens: z.
|
|
2799
|
+
outputTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2789
2800
|
project: z.string(),
|
|
2790
|
-
retryLoops: z.
|
|
2791
|
-
retryTokensWasted: z.
|
|
2801
|
+
retryLoops: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2802
|
+
retryTokensWasted: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2792
2803
|
scope: z.string(),
|
|
2793
|
-
scopeBreadth: z.
|
|
2804
|
+
scopeBreadth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2794
2805
|
signalDensity: z.number(),
|
|
2795
2806
|
specQualityScore: z.number(),
|
|
2796
2807
|
title: z.string(),
|
|
2797
|
-
toolCalls: z.
|
|
2798
|
-
totalTokens: z.
|
|
2799
|
-
turnCount: z.
|
|
2800
|
-
withinSessionReverts: z.
|
|
2808
|
+
toolCalls: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2809
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2810
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2811
|
+
withinSessionReverts: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
2801
2812
|
});
|
|
2802
2813
|
export const zQualityPayload = z.object({
|
|
2803
2814
|
sessions: z.array(zQualitySession).nullable()
|
|
2804
2815
|
});
|
|
2805
2816
|
export const zTaskSummary = z.object({
|
|
2806
2817
|
editedFiles: z.array(z.string()).nullable(),
|
|
2807
|
-
entryIndex: z.
|
|
2818
|
+
entryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2808
2819
|
labels: z.array(z.string()).nullable(),
|
|
2809
2820
|
outcome: z.string().optional(),
|
|
2810
|
-
readCount: z.
|
|
2821
|
+
readCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2811
2822
|
readFiles: z.array(z.string()),
|
|
2812
2823
|
retryLoop: z.boolean(),
|
|
2813
2824
|
sessionId: z.string(),
|
|
2814
|
-
startMs: z.
|
|
2825
|
+
startMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2815
2826
|
title: z.string()
|
|
2816
2827
|
});
|
|
2817
2828
|
export const zChangeSession = z.object({
|
|
2818
2829
|
binding: zChangeBinding,
|
|
2819
2830
|
harness: z.string(),
|
|
2820
2831
|
sessionId: z.string(),
|
|
2821
|
-
startMs: z.
|
|
2832
|
+
startMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2822
2833
|
tasks: z.array(zTaskSummary).nullable(),
|
|
2823
2834
|
title: z.string()
|
|
2824
2835
|
});
|
|
@@ -2828,18 +2839,18 @@ export const zMapNodeDetailPayload = z.object({
|
|
|
2828
2839
|
insights: z.array(zSessionInsight),
|
|
2829
2840
|
kind: zMapNodeKind,
|
|
2830
2841
|
language: z.string().optional(),
|
|
2831
|
-
lastTouchMs: z.
|
|
2832
|
-
loc: z.
|
|
2842
|
+
lastTouchMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2843
|
+
loc: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2833
2844
|
path: z.string(),
|
|
2834
|
-
reEdits: z.
|
|
2845
|
+
reEdits: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2835
2846
|
recentCommits: z.array(zCommitRef).nullable(),
|
|
2836
|
-
recordedFiles: z.
|
|
2837
|
-
retryLoops: z.
|
|
2847
|
+
recordedFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2848
|
+
retryLoops: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2838
2849
|
rewrittenCommits: z.array(zRewrittenCommit),
|
|
2839
|
-
sessionCount: z.
|
|
2850
|
+
sessionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2840
2851
|
shapedBy: z.array(zTaskSummary).nullable(),
|
|
2841
|
-
taskCount: z.
|
|
2842
|
-
totalFiles: z.
|
|
2852
|
+
taskCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2853
|
+
totalFiles: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2843
2854
|
usedBy: z.array(z.string()).nullable()
|
|
2844
2855
|
});
|
|
2845
2856
|
export const zProjectTasksPayload = z.object({
|
|
@@ -2879,7 +2890,7 @@ export const zSessionDetailHeader = z.object({
|
|
|
2879
2890
|
diagnostics: zInterpretationDiagnostics.optional(),
|
|
2880
2891
|
durationMins: z.number(),
|
|
2881
2892
|
earlierHistory: z.array(zEarlierHistoryState).optional(),
|
|
2882
|
-
endTime: z.iso.datetime(),
|
|
2893
|
+
endTime: z.iso.datetime({ offset: true }),
|
|
2883
2894
|
gitBranch: z.string().optional(),
|
|
2884
2895
|
gitRemote: z.string().optional(),
|
|
2885
2896
|
harness: zHarness,
|
|
@@ -2897,23 +2908,23 @@ export const zSessionDetailHeader = z.object({
|
|
|
2897
2908
|
scorecard: zSessionScorecard.nullish(),
|
|
2898
2909
|
sessionOrigin: zSessionOrigin.optional(),
|
|
2899
2910
|
source: z.string().optional(),
|
|
2900
|
-
startTime: z.iso.datetime(),
|
|
2911
|
+
startTime: z.iso.datetime({ offset: true }),
|
|
2901
2912
|
status: z.string().optional(),
|
|
2902
2913
|
thinkingLevel: zThinkingLevel.optional(),
|
|
2903
2914
|
thinkingLevelHistory: z.array(zThinkingLevelChange).optional(),
|
|
2904
2915
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
2905
|
-
tokensIn: z.
|
|
2906
|
-
tokensOut: z.
|
|
2907
|
-
toolCallCount: z.
|
|
2908
|
-
totalTokens: z.
|
|
2909
|
-
turnCount: z.
|
|
2916
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2917
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2918
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2919
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2920
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
2910
2921
|
workingDirectory: z.string().optional()
|
|
2911
2922
|
});
|
|
2912
2923
|
export const zTimelineSessionRef = z.object({
|
|
2913
2924
|
harness: zHarness,
|
|
2914
2925
|
hasCommitBinding: z.boolean(),
|
|
2915
2926
|
sessionId: zSessionID,
|
|
2916
|
-
startMs: z.
|
|
2927
|
+
startMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2917
2928
|
title: z.string()
|
|
2918
2929
|
});
|
|
2919
2930
|
export const zReviewListPayload = z.object({
|
|
@@ -2931,13 +2942,13 @@ export const zTimestampInfo = z.object({
|
|
|
2931
2942
|
start: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' })
|
|
2932
2943
|
});
|
|
2933
2944
|
export const zTokenUsageDetail = z.object({
|
|
2934
|
-
cacheRead: z.
|
|
2935
|
-
cacheWrite: z.
|
|
2936
|
-
cacheWrite1h: z.
|
|
2937
|
-
input: z.
|
|
2938
|
-
output: z.
|
|
2939
|
-
reasoning: z.
|
|
2940
|
-
totalTokens: z.
|
|
2945
|
+
cacheRead: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2946
|
+
cacheWrite: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2947
|
+
cacheWrite1h: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2948
|
+
input: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2949
|
+
output: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2950
|
+
reasoning: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
2951
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
2941
2952
|
});
|
|
2942
2953
|
/**
|
|
2943
2954
|
* Tool Call Kind
|
|
@@ -3052,6 +3063,26 @@ export const zCanonicalPublishOperation = z.object({
|
|
|
3052
3063
|
license: zPublishLicenseOperation,
|
|
3053
3064
|
replacement: zCanonicalPublishReplacement
|
|
3054
3065
|
}).strict();
|
|
3066
|
+
export const zTranscriptEntryLocateRequest = z.object({
|
|
3067
|
+
contentHash: z.string(),
|
|
3068
|
+
reference: z.string().min(1),
|
|
3069
|
+
representation: z.string(),
|
|
3070
|
+
revision: z.string()
|
|
3071
|
+
});
|
|
3072
|
+
/**
|
|
3073
|
+
* Transcript Entry Reference Kind
|
|
3074
|
+
*
|
|
3075
|
+
* Closed session graph value
|
|
3076
|
+
*/
|
|
3077
|
+
export const zTranscriptEntryReferenceKind = z.enum([
|
|
3078
|
+
'source',
|
|
3079
|
+
'tool_call',
|
|
3080
|
+
'tool_result'
|
|
3081
|
+
]);
|
|
3082
|
+
export const zTranscriptFlaggedTurn = z.object({
|
|
3083
|
+
position: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
3084
|
+
turn: z.int().gte(0).lte(9007199254740991).optional()
|
|
3085
|
+
});
|
|
3055
3086
|
/**
|
|
3056
3087
|
* Transcript ID
|
|
3057
3088
|
*
|
|
@@ -3089,19 +3120,19 @@ export const zCollectiveFetchDomainResult = z.object({
|
|
|
3089
3120
|
}).superRefine((value, ctx) => { const issue = collectiveContractIssue("CollectiveFetchDomainResult", value); if (issue !== undefined)
|
|
3090
3121
|
ctx.addIssue({ code: "custom", message: "Collective contract validation: " + issue + "; retain prior evidence and fetch validated metadata before retrying" }); });
|
|
3091
3122
|
export const zPromptDigestItem = z.object({
|
|
3092
|
-
additions: z.
|
|
3123
|
+
additions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3093
3124
|
args: z.string().optional(),
|
|
3094
|
-
commitCount: z.
|
|
3125
|
+
commitCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3095
3126
|
commitSha: z.string().optional(),
|
|
3096
|
-
deletions: z.
|
|
3097
|
-
filesChanged: z.
|
|
3127
|
+
deletions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3128
|
+
filesChanged: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3098
3129
|
kind: zDigestItemKind,
|
|
3099
|
-
ordinal: z.
|
|
3100
|
-
promptCount: z.
|
|
3130
|
+
ordinal: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3131
|
+
promptCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3101
3132
|
text: z.string(),
|
|
3102
|
-
timestamp: z.iso.datetime(),
|
|
3133
|
+
timestamp: z.iso.datetime({ offset: true }),
|
|
3103
3134
|
transcriptId: zTranscriptID,
|
|
3104
|
-
turnIndex: z.
|
|
3135
|
+
turnIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
3105
3136
|
});
|
|
3106
3137
|
export const zPromptDigest = z.object({
|
|
3107
3138
|
header: zPromptDigestHeader,
|
|
@@ -3137,7 +3168,7 @@ export const zSessionDetailHeaderPayload = z.object({
|
|
|
3137
3168
|
diagnostics: zInterpretationDiagnostics.optional(),
|
|
3138
3169
|
durationMins: z.number(),
|
|
3139
3170
|
earlierHistory: z.array(zEarlierHistoryState).optional(),
|
|
3140
|
-
endTime: z.iso.datetime(),
|
|
3171
|
+
endTime: z.iso.datetime({ offset: true }),
|
|
3141
3172
|
gitBranch: z.string().optional(),
|
|
3142
3173
|
gitRemote: z.string().optional(),
|
|
3143
3174
|
harness: zHarness,
|
|
@@ -3156,19 +3187,71 @@ export const zSessionDetailHeaderPayload = z.object({
|
|
|
3156
3187
|
scorecard: zSessionScorecard.optional(),
|
|
3157
3188
|
sessionOrigin: zSessionOrigin.optional(),
|
|
3158
3189
|
source: z.string().optional(),
|
|
3159
|
-
startTime: z.iso.datetime(),
|
|
3190
|
+
startTime: z.iso.datetime({ offset: true }),
|
|
3160
3191
|
status: z.string().optional(),
|
|
3161
3192
|
teammate: zSessionTeammate.nullish(),
|
|
3162
3193
|
thinkingLevel: zThinkingLevel.optional(),
|
|
3163
3194
|
thinkingLevelHistory: z.array(zThinkingLevelChange).optional(),
|
|
3164
3195
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3165
|
-
tokensIn: z.
|
|
3166
|
-
tokensOut: z.
|
|
3167
|
-
toolCallCount: z.
|
|
3168
|
-
totalTokens: z.
|
|
3169
|
-
turnCount: z.
|
|
3196
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3197
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3198
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3199
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3200
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3170
3201
|
workingDirectory: z.string().optional()
|
|
3171
3202
|
});
|
|
3203
|
+
/**
|
|
3204
|
+
* Transcript Native Presence
|
|
3205
|
+
*
|
|
3206
|
+
* Closed session graph value
|
|
3207
|
+
*/
|
|
3208
|
+
export const zTranscriptNativePresence = z.enum([
|
|
3209
|
+
'absent',
|
|
3210
|
+
'present',
|
|
3211
|
+
'withheld'
|
|
3212
|
+
]);
|
|
3213
|
+
/**
|
|
3214
|
+
* Transcript Read Transport Kind
|
|
3215
|
+
*
|
|
3216
|
+
* Closed session graph value
|
|
3217
|
+
*/
|
|
3218
|
+
export const zTranscriptReadTransportKind = z.enum(['local_session', 'village_transcript']);
|
|
3219
|
+
/**
|
|
3220
|
+
* Transcript Read Validation
|
|
3221
|
+
*
|
|
3222
|
+
* Closed session graph value
|
|
3223
|
+
*/
|
|
3224
|
+
export const zTranscriptReadValidation = z.enum([
|
|
3225
|
+
'published_strict',
|
|
3226
|
+
'served_legacy',
|
|
3227
|
+
'migrated'
|
|
3228
|
+
]);
|
|
3229
|
+
/**
|
|
3230
|
+
* Transcript Recorded Index State
|
|
3231
|
+
*
|
|
3232
|
+
* Closed session graph value
|
|
3233
|
+
*/
|
|
3234
|
+
export const zTranscriptRecordedIndexState = z.enum([
|
|
3235
|
+
'present',
|
|
3236
|
+
'absent',
|
|
3237
|
+
'invalid'
|
|
3238
|
+
]);
|
|
3239
|
+
/**
|
|
3240
|
+
* Transcript Retained State
|
|
3241
|
+
*
|
|
3242
|
+
* Closed session graph value
|
|
3243
|
+
*/
|
|
3244
|
+
export const zTranscriptRetainedState = z.enum(['absent', 'deferred']);
|
|
3245
|
+
/**
|
|
3246
|
+
* Transcript Segment Partition Kind
|
|
3247
|
+
*
|
|
3248
|
+
* Closed session graph value
|
|
3249
|
+
*/
|
|
3250
|
+
export const zTranscriptSegmentPartitionKind = z.enum(['main', 'history']);
|
|
3251
|
+
export const zTranscriptSegmentPartition = z.object({
|
|
3252
|
+
kind: zTranscriptSegmentPartitionKind,
|
|
3253
|
+
sectionIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
3254
|
+
});
|
|
3172
3255
|
export const zTranscriptSegmentRef = z.object({
|
|
3173
3256
|
byteLength: z.int().gte(0).lte(9007199254740991),
|
|
3174
3257
|
conversationTurns: zConversationTurnSpan.optional(),
|
|
@@ -3186,6 +3269,57 @@ export const zTranscriptSegmentDirectory = z.object({
|
|
|
3186
3269
|
totalSegments: z.int().gte(0).lte(9007199254740991),
|
|
3187
3270
|
totalTurns: z.int().gte(0).lte(9007199254740991)
|
|
3188
3271
|
});
|
|
3272
|
+
export const zTranscriptServedTurn = z.record(z.string(), z.unknown());
|
|
3273
|
+
export const zTranscriptSegmentRow = z.object({
|
|
3274
|
+
displayNumber: z.string().min(1).regex(/^[1-9][0-9]*[a-z]*$/).optional(),
|
|
3275
|
+
position: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
3276
|
+
recordedIndex: z.int().gte(0).lte(9007199254740991).optional(),
|
|
3277
|
+
recordedIndexState: zTranscriptRecordedIndexState,
|
|
3278
|
+
turn: zTranscriptServedTurn
|
|
3279
|
+
});
|
|
3280
|
+
export const zTranscriptSessionHeader = z.object({
|
|
3281
|
+
conversationTurnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3282
|
+
durationMins: z.number().optional(),
|
|
3283
|
+
earlierHistory: z.array(z.string()).optional(),
|
|
3284
|
+
endTime: z.string().optional(),
|
|
3285
|
+
gitBranch: z.string().optional(),
|
|
3286
|
+
gitRemote: z.string().optional(),
|
|
3287
|
+
harness: z.string().optional(),
|
|
3288
|
+
id: z.string().optional(),
|
|
3289
|
+
inputSubmissionCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3290
|
+
model: z.string().optional(),
|
|
3291
|
+
outcome: z.string().optional(),
|
|
3292
|
+
parentSessionId: z.string().optional(),
|
|
3293
|
+
project: z.string().optional(),
|
|
3294
|
+
purpose: z.string().optional(),
|
|
3295
|
+
rootSessionId: z.string().optional(),
|
|
3296
|
+
schemaVersion: z.string().optional(),
|
|
3297
|
+
sessionOrigin: z.string().optional(),
|
|
3298
|
+
source: z.string().optional(),
|
|
3299
|
+
startTime: z.string().optional(),
|
|
3300
|
+
status: z.string().optional(),
|
|
3301
|
+
thinkingLevel: zThinkingLevel.optional(),
|
|
3302
|
+
thinkingLevelHistory: z.array(zThinkingLevelChange).optional(),
|
|
3303
|
+
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3304
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3305
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3306
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3307
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3308
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).optional(),
|
|
3309
|
+
workingDirectory: z.string().optional()
|
|
3310
|
+
});
|
|
3311
|
+
export const zTranscriptContentHeader = z.object({
|
|
3312
|
+
canonical: z.boolean(),
|
|
3313
|
+
contentHash: z.string().optional(),
|
|
3314
|
+
contractVersion: z.string(),
|
|
3315
|
+
flaggedTurns: z.array(zTranscriptFlaggedTurn).optional(),
|
|
3316
|
+
kind: zContentKind,
|
|
3317
|
+
omittedImages: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3318
|
+
representation: z.string(),
|
|
3319
|
+
retainedEvidence: zTranscriptRetainedState.nullish(),
|
|
3320
|
+
revision: z.string(),
|
|
3321
|
+
sessionHeader: zTranscriptSessionHeader
|
|
3322
|
+
});
|
|
3189
3323
|
/**
|
|
3190
3324
|
* TranscriptUpdateLicense
|
|
3191
3325
|
*
|
|
@@ -3245,6 +3379,29 @@ export const zTranscriptUpdateRequest = z.object({
|
|
|
3245
3379
|
title: z.string().max(500).optional(),
|
|
3246
3380
|
visibility: zTranscriptUpdateVisibility.optional()
|
|
3247
3381
|
}).strict();
|
|
3382
|
+
/**
|
|
3383
|
+
* Transcript Usage Presence
|
|
3384
|
+
*
|
|
3385
|
+
* Closed session graph value
|
|
3386
|
+
*/
|
|
3387
|
+
export const zTranscriptUsagePresence = z.enum([
|
|
3388
|
+
'present',
|
|
3389
|
+
'empty',
|
|
3390
|
+
'unknown'
|
|
3391
|
+
]);
|
|
3392
|
+
export const zTranscriptHistorySection = z.object({
|
|
3393
|
+
index: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3394
|
+
state: z.string().optional(),
|
|
3395
|
+
totalConversationTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3396
|
+
totalTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3397
|
+
usagePresent: zTranscriptUsagePresence
|
|
3398
|
+
});
|
|
3399
|
+
/**
|
|
3400
|
+
* Transcript Viewer Projection
|
|
3401
|
+
*
|
|
3402
|
+
* Closed session graph value
|
|
3403
|
+
*/
|
|
3404
|
+
export const zTranscriptViewerProjection = z.enum(['anonymous', 'authenticated']);
|
|
3248
3405
|
export const zTranscriptWindow = z.object({
|
|
3249
3406
|
anchorTurn: z.int().gte(0).lte(9007199254740991),
|
|
3250
3407
|
firstTurn: z.int().gte(0).lte(9007199254740991),
|
|
@@ -3259,8 +3416,8 @@ export const zTranscriptWindow = z.object({
|
|
|
3259
3416
|
});
|
|
3260
3417
|
export const zTrendsPayload = z.object({
|
|
3261
3418
|
days: z.array(zDayStats).nullable(),
|
|
3262
|
-
totalSessions: z.
|
|
3263
|
-
totalTokens: z.
|
|
3419
|
+
totalSessions: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3420
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
3264
3421
|
});
|
|
3265
3422
|
/**
|
|
3266
3423
|
* Turn Part Type
|
|
@@ -3339,10 +3496,10 @@ export const zUICapabilitiesResponse = z.object({
|
|
|
3339
3496
|
uiCapabilities: z.array(z.string()).optional()
|
|
3340
3497
|
}).strict();
|
|
3341
3498
|
export const zUnifiedMetadata = z.object({
|
|
3342
|
-
adapterVersion: z.
|
|
3499
|
+
adapterVersion: z.number().refine(Number.isInteger).gte(1).lte(9223372036854775808).optional(),
|
|
3343
3500
|
contentHash: z.string(),
|
|
3344
3501
|
cwd: z.string().optional(),
|
|
3345
|
-
derivedAt: z.
|
|
3502
|
+
derivedAt: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3346
3503
|
diagnostics: zDiagnosticsInfo,
|
|
3347
3504
|
git: zGitContext,
|
|
3348
3505
|
harness: zHarness,
|
|
@@ -3355,7 +3512,7 @@ export const zUnifiedMetadata = z.object({
|
|
|
3355
3512
|
redaction: zRedactionInfo,
|
|
3356
3513
|
relationships: z.array(zSessionRelationship).optional(),
|
|
3357
3514
|
rootSessionId: zSessionID.nullish(),
|
|
3358
|
-
schemaVersion: z.
|
|
3515
|
+
schemaVersion: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3359
3516
|
sessionId: zSessionID,
|
|
3360
3517
|
source: zSourceInfo,
|
|
3361
3518
|
stats: zSessionStats,
|
|
@@ -3380,8 +3537,8 @@ export const zChangeDetailPayload = z.object({
|
|
|
3380
3537
|
files: z.array(zFileChange).nullable(),
|
|
3381
3538
|
frictions: z.array(zFrictionCluster).nullable(),
|
|
3382
3539
|
insights: z.array(zSessionInsight),
|
|
3383
|
-
linesAdded: z.
|
|
3384
|
-
linesRemoved: z.
|
|
3540
|
+
linesAdded: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3541
|
+
linesRemoved: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3385
3542
|
newEdges: z.array(zMapEdge).nullable(),
|
|
3386
3543
|
newNodes: z.array(z.string()).nullable(),
|
|
3387
3544
|
outputTokens: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }),
|
|
@@ -3451,8 +3608,8 @@ export const zToolCallDetail = z.object({
|
|
|
3451
3608
|
arguments: z.string(),
|
|
3452
3609
|
callEntryRef: zSourceEntryRef.optional(),
|
|
3453
3610
|
callProvenance: zContentProvenance.nullish(),
|
|
3454
|
-
durationMs: z.
|
|
3455
|
-
exitCode: z.
|
|
3611
|
+
durationMs: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3612
|
+
exitCode: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3456
3613
|
filePath: z.string().optional(),
|
|
3457
3614
|
id: z.string(),
|
|
3458
3615
|
isError: z.boolean().optional(),
|
|
@@ -3471,21 +3628,21 @@ export const zTranscriptTurn = z.object({
|
|
|
3471
3628
|
content: z.string(),
|
|
3472
3629
|
contentParts: z.array(zTurnContentPart).optional(),
|
|
3473
3630
|
controlKind: z.string().nullish(),
|
|
3474
|
-
depth: z.
|
|
3631
|
+
depth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3475
3632
|
entryType: zEntryType.optional(),
|
|
3476
3633
|
hasThinking: z.boolean().optional(),
|
|
3477
|
-
index: z.
|
|
3634
|
+
index: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3478
3635
|
observedModel: zObservedModelID.optional(),
|
|
3479
|
-
parentIndex: z.
|
|
3636
|
+
parentIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3480
3637
|
provenance: zContentProvenance.optional(),
|
|
3481
3638
|
role: zRole,
|
|
3482
3639
|
sourceEntryRef: zSourceEntryRef.optional(),
|
|
3483
3640
|
stopReason: zStopReason.optional(),
|
|
3484
3641
|
thinkingLevel: zThinkingLevel.optional(),
|
|
3485
3642
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3486
|
-
timestamp: z.iso.datetime(),
|
|
3487
|
-
tokensIn: z.
|
|
3488
|
-
tokensOut: z.
|
|
3643
|
+
timestamp: z.iso.datetime({ offset: true }),
|
|
3644
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3645
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3489
3646
|
toolCalls: z.array(zToolCallDetail).optional(),
|
|
3490
3647
|
truncated: z.boolean(),
|
|
3491
3648
|
usage: zUsageDetail.optional()
|
|
@@ -3506,21 +3663,21 @@ export const zTurnDetail = z.object({
|
|
|
3506
3663
|
content: z.string(),
|
|
3507
3664
|
contentParts: z.array(zTurnContentPart).optional(),
|
|
3508
3665
|
controlKind: z.string().nullish(),
|
|
3509
|
-
depth: z.
|
|
3666
|
+
depth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3510
3667
|
entryType: zEntryType.optional(),
|
|
3511
3668
|
hasThinking: z.boolean().optional(),
|
|
3512
|
-
index: z.
|
|
3669
|
+
index: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3513
3670
|
observedModel: zObservedModelID.optional(),
|
|
3514
|
-
parentIndex: z.
|
|
3671
|
+
parentIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3515
3672
|
provenance: zContentProvenance.nullish(),
|
|
3516
3673
|
role: zRole,
|
|
3517
3674
|
sourceEntryRef: zSourceEntryRef.optional(),
|
|
3518
3675
|
stopReason: zStopReason.nullish(),
|
|
3519
3676
|
thinkingLevel: zThinkingLevel.optional(),
|
|
3520
3677
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3521
|
-
timestamp: z.iso.datetime(),
|
|
3522
|
-
tokensIn: z.
|
|
3523
|
-
tokensOut: z.
|
|
3678
|
+
timestamp: z.iso.datetime({ offset: true }),
|
|
3679
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3680
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3524
3681
|
toolCalls: z.array(zToolCallDetail).optional(),
|
|
3525
3682
|
usage: zUsageDetail.nullish()
|
|
3526
3683
|
});
|
|
@@ -3535,7 +3692,7 @@ export const zSessionDetailPayload = z.object({
|
|
|
3535
3692
|
diagnostics: zInterpretationDiagnostics.optional(),
|
|
3536
3693
|
durationMins: z.number(),
|
|
3537
3694
|
earlierHistory: z.array(zEarlierHistorySection).optional(),
|
|
3538
|
-
endTime: z.iso.datetime(),
|
|
3695
|
+
endTime: z.iso.datetime({ offset: true }),
|
|
3539
3696
|
gitBranch: z.string().optional(),
|
|
3540
3697
|
gitRemote: z.string().optional(),
|
|
3541
3698
|
harness: zHarness,
|
|
@@ -3554,16 +3711,16 @@ export const zSessionDetailPayload = z.object({
|
|
|
3554
3711
|
scorecard: zSessionScorecard.nullish(),
|
|
3555
3712
|
sessionOrigin: zSessionOrigin.optional(),
|
|
3556
3713
|
source: z.string().optional(),
|
|
3557
|
-
startTime: z.iso.datetime(),
|
|
3714
|
+
startTime: z.iso.datetime({ offset: true }),
|
|
3558
3715
|
status: z.string().optional(),
|
|
3559
3716
|
thinkingLevel: zThinkingLevel.optional(),
|
|
3560
3717
|
thinkingLevelHistory: z.array(zThinkingLevelChange).optional(),
|
|
3561
3718
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3562
|
-
tokensIn: z.
|
|
3563
|
-
tokensOut: z.
|
|
3564
|
-
toolCallCount: z.
|
|
3565
|
-
totalTokens: z.
|
|
3566
|
-
turnCount: z.
|
|
3719
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3720
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3721
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3722
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3723
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3567
3724
|
turns: z.array(zTurnDetail).nullable(),
|
|
3568
3725
|
workingDirectory: z.string().optional()
|
|
3569
3726
|
});
|
|
@@ -3573,7 +3730,7 @@ export const zSessionDetailReadPayload = z.object({
|
|
|
3573
3730
|
diagnostics: zInterpretationDiagnostics.optional(),
|
|
3574
3731
|
durationMins: z.number(),
|
|
3575
3732
|
earlierHistory: z.array(zEarlierHistorySection).optional(),
|
|
3576
|
-
endTime: z.iso.datetime(),
|
|
3733
|
+
endTime: z.iso.datetime({ offset: true }),
|
|
3577
3734
|
gitBranch: z.string().optional(),
|
|
3578
3735
|
gitRemote: z.string().optional(),
|
|
3579
3736
|
harness: zHarness,
|
|
@@ -3595,18 +3752,18 @@ export const zSessionDetailReadPayload = z.object({
|
|
|
3595
3752
|
scorecard: zSessionScorecard.optional(),
|
|
3596
3753
|
sessionOrigin: zSessionOrigin.optional(),
|
|
3597
3754
|
source: z.string().optional(),
|
|
3598
|
-
startTime: z.iso.datetime(),
|
|
3755
|
+
startTime: z.iso.datetime({ offset: true }),
|
|
3599
3756
|
status: z.string().optional(),
|
|
3600
3757
|
teammate: zSessionTeammate.nullish(),
|
|
3601
3758
|
thinkingLevel: zThinkingLevel.optional(),
|
|
3602
3759
|
thinkingLevelHistory: z.array(zThinkingLevelChange).optional(),
|
|
3603
3760
|
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
3604
3761
|
title: z.string().optional(),
|
|
3605
|
-
tokensIn: z.
|
|
3606
|
-
tokensOut: z.
|
|
3607
|
-
toolCallCount: z.
|
|
3608
|
-
totalTokens: z.
|
|
3609
|
-
turnCount: z.
|
|
3762
|
+
tokensIn: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3763
|
+
tokensOut: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3764
|
+
toolCallCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3765
|
+
totalTokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3766
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3610
3767
|
turns: z.array(zTurnDetail).nullable(),
|
|
3611
3768
|
workingDirectory: z.string().optional()
|
|
3612
3769
|
});
|
|
@@ -3636,12 +3793,12 @@ export const zAnnotationTypeSummary = z.object({
|
|
|
3636
3793
|
id: z.string().optional(),
|
|
3637
3794
|
lowerIsBetter: z.boolean().nullish(),
|
|
3638
3795
|
origin: zTypeOrigin,
|
|
3639
|
-
priorityOverride: z.
|
|
3796
|
+
priorityOverride: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3640
3797
|
scaleKind: zScaleKind.optional(),
|
|
3641
3798
|
status: zAnnotationStatus,
|
|
3642
3799
|
typeId: z.string(),
|
|
3643
3800
|
valueDomain: zValueDomain,
|
|
3644
|
-
version: z.
|
|
3801
|
+
version: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
3645
3802
|
});
|
|
3646
3803
|
export const zTaxonomyFamilyNode = z.object({
|
|
3647
3804
|
family: z.string(),
|
|
@@ -3775,13 +3932,13 @@ export const zVillageErrorResponse = z.object({
|
|
|
3775
3932
|
*/
|
|
3776
3933
|
export const zVillageGitHubWebhookPayload = z.record(z.string(), z.unknown());
|
|
3777
3934
|
export const zVillageLinkRepositoryRequest = z.object({
|
|
3778
|
-
installation_id: z.
|
|
3935
|
+
installation_id: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3779
3936
|
name: z.string(),
|
|
3780
3937
|
owner: z.string()
|
|
3781
3938
|
});
|
|
3782
3939
|
export const zVillageListTranscriptAttestation = z.object({
|
|
3783
3940
|
attestation_type: z.string(),
|
|
3784
|
-
created_at: z.iso.datetime(),
|
|
3941
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
3785
3942
|
org_login: z.string(),
|
|
3786
3943
|
transcript_id: zTranscriptID
|
|
3787
3944
|
});
|
|
@@ -3791,7 +3948,7 @@ export const zVillageListUserOrganization = z.object({
|
|
|
3791
3948
|
});
|
|
3792
3949
|
export const zVillageMetadataUserOrganization = z.object({
|
|
3793
3950
|
avatar_url: z.string().nullable(),
|
|
3794
|
-
fetched_at: z.iso.datetime(),
|
|
3951
|
+
fetched_at: z.iso.datetime({ offset: true }),
|
|
3795
3952
|
org_id: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }),
|
|
3796
3953
|
org_login: z.string(),
|
|
3797
3954
|
visible: z.boolean()
|
|
@@ -3853,8 +4010,8 @@ export const zPullAnnotation = z.object({
|
|
|
3853
4010
|
targetAnnotationId: z.string().nullish(),
|
|
3854
4011
|
targetAssociationId: zAssociationID.optional(),
|
|
3855
4012
|
targetContentHash: z.string().nullish(),
|
|
3856
|
-
targetEntryEndIndex: z.
|
|
3857
|
-
targetEntryIndex: z.
|
|
4013
|
+
targetEntryEndIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
4014
|
+
targetEntryIndex: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
3858
4015
|
targetFilePath: z.string().nullish(),
|
|
3859
4016
|
targetKind: zTargetKind.optional(),
|
|
3860
4017
|
targetProjectHash: zProjectHash.optional(),
|
|
@@ -3869,7 +4026,7 @@ export const zVillageCollectiveContributor = z.object({
|
|
|
3869
4026
|
});
|
|
3870
4027
|
export const zVillageCollectiveMember = z.object({
|
|
3871
4028
|
github_orgs: z.array(z.string()),
|
|
3872
|
-
joined_at: z.iso.datetime(),
|
|
4029
|
+
joined_at: z.iso.datetime({ offset: true }),
|
|
3873
4030
|
member: zVillagePublicOwner,
|
|
3874
4031
|
role: zVillageCollectiveRole
|
|
3875
4032
|
}).superRefine((value, context) => {
|
|
@@ -3890,7 +4047,7 @@ export const zVillagePendingShare = z.object({
|
|
|
3890
4047
|
purpose: zSessionPurpose.optional(),
|
|
3891
4048
|
relationships: z.array(zSessionRelationship).optional(),
|
|
3892
4049
|
root_session_id: zSessionID.nullish(),
|
|
3893
|
-
shared_at: z.iso.datetime(),
|
|
4050
|
+
shared_at: z.iso.datetime({ offset: true }),
|
|
3894
4051
|
title: z.string().nullable(),
|
|
3895
4052
|
transcript_id: zTranscriptID
|
|
3896
4053
|
}).superRefine((value, context) => {
|
|
@@ -3922,10 +4079,10 @@ export const zVillagePullRequestAttachmentState = z.enum([
|
|
|
3922
4079
|
export const zVillagePromptRequest = z.object({
|
|
3923
4080
|
head_remote: z.string(),
|
|
3924
4081
|
name: z.string(),
|
|
3925
|
-
number: z.
|
|
4082
|
+
number: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3926
4083
|
owner: z.string(),
|
|
3927
4084
|
remote: z.string(),
|
|
3928
|
-
requested_at: z.iso.datetime(),
|
|
4085
|
+
requested_at: z.iso.datetime({ offset: true }),
|
|
3929
4086
|
state: zVillagePullRequestAttachmentState
|
|
3930
4087
|
});
|
|
3931
4088
|
export const zVillagePromptRequestsResponse = z.object({
|
|
@@ -3933,7 +4090,7 @@ export const zVillagePromptRequestsResponse = z.object({
|
|
|
3933
4090
|
});
|
|
3934
4091
|
export const zVillagePullRequestRef = z.object({
|
|
3935
4092
|
name: z.string().min(1),
|
|
3936
|
-
number: z.
|
|
4093
|
+
number: z.number().refine(Number.isInteger).gte(1).lte(9223372036854775808),
|
|
3937
4094
|
owner: z.string().min(1)
|
|
3938
4095
|
});
|
|
3939
4096
|
export const zVillagePullRequestsSummary = z.object({
|
|
@@ -3947,15 +4104,15 @@ export const zVillageRemoveCollectiveMemberResponse = z.object({
|
|
|
3947
4104
|
export const zVillageRepositoryCommit = z.object({
|
|
3948
4105
|
author_email: z.string().nullable(),
|
|
3949
4106
|
author_name: z.string().nullable(),
|
|
3950
|
-
authored_at: z.iso.datetime().nullable(),
|
|
3951
|
-
committed_at: z.iso.datetime().nullable(),
|
|
4107
|
+
authored_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4108
|
+
committed_at: z.iso.datetime({ offset: true }).nullable(),
|
|
3952
4109
|
message: z.string().nullable(),
|
|
3953
4110
|
sha: z.string()
|
|
3954
4111
|
});
|
|
3955
4112
|
export const zVillageRepositoryCommitsResponse = z.object({
|
|
3956
|
-
commit_count: z.
|
|
4113
|
+
commit_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
3957
4114
|
commits: z.array(zVillageRepositoryCommit),
|
|
3958
|
-
last_synced: z.iso.datetime().nullable(),
|
|
4115
|
+
last_synced: z.iso.datetime({ offset: true }).nullable(),
|
|
3959
4116
|
name: z.string(),
|
|
3960
4117
|
owner: z.string(),
|
|
3961
4118
|
refreshed: z.boolean()
|
|
@@ -4039,7 +4196,7 @@ export const zVillageTranscriptIntegrity = z.object({
|
|
|
4039
4196
|
export const zVillageTranscriptPullRequest = z.object({
|
|
4040
4197
|
head_ref: z.string().nullable(),
|
|
4041
4198
|
name: z.string().min(1),
|
|
4042
|
-
number: z.
|
|
4199
|
+
number: z.number().refine(Number.isInteger).gte(1).lte(9223372036854775808),
|
|
4043
4200
|
owner: z.string().min(1),
|
|
4044
4201
|
state: zVillagePullRequestAttachmentState,
|
|
4045
4202
|
title: z.string().nullable()
|
|
@@ -4059,41 +4216,41 @@ export const zVillageTranscriptVisibility = z.enum([
|
|
|
4059
4216
|
'public'
|
|
4060
4217
|
]);
|
|
4061
4218
|
export const zVillageCollectiveTranscript = z.object({
|
|
4062
|
-
blob_size_bytes: z.
|
|
4063
|
-
compute_version: z.
|
|
4064
|
-
computed_at: z.iso.datetime().nullable(),
|
|
4219
|
+
blob_size_bytes: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4220
|
+
compute_version: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4221
|
+
computed_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4065
4222
|
content_hash: zTranscriptContentHash.nullable(),
|
|
4066
4223
|
conversation_turn_count: z.int().gte(0).lte(9007199254740991).nullable(),
|
|
4067
4224
|
description: z.string().nullable(),
|
|
4068
4225
|
diagnostics_partial: z.boolean().nullable(),
|
|
4069
4226
|
diagnostics_warnings: z.array(zDiagnosticEntry).nullable(),
|
|
4070
|
-
discovery_turns: z.
|
|
4227
|
+
discovery_turns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4071
4228
|
displayed_turn_count: z.int().gte(0).lte(9007199254740991).nullable(),
|
|
4072
|
-
duration_ms: z.
|
|
4229
|
+
duration_ms: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4073
4230
|
exploration_ratio: z.number().nullable(),
|
|
4074
|
-
files_touched: z.
|
|
4231
|
+
files_touched: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4075
4232
|
git_branch: z.string().nullable(),
|
|
4076
4233
|
git_remote: z.string().nullable(),
|
|
4077
4234
|
harness_version: z.string().nullable(),
|
|
4078
4235
|
id: zTranscriptID,
|
|
4079
|
-
ingested_at: z.iso.datetime().nullable(),
|
|
4236
|
+
ingested_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4080
4237
|
input_submission_count: z.int().gte(0).lte(9007199254740991).optional(),
|
|
4081
4238
|
license_id: zLicense.nullable(),
|
|
4082
|
-
lines_changed: z.
|
|
4239
|
+
lines_changed: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4083
4240
|
local_id: zSessionID,
|
|
4084
4241
|
m2_token_outcome_ratio: z.number().nullable(),
|
|
4085
|
-
m3_unique_tool_count: z.
|
|
4086
|
-
m4_consecutive_error_max: z.
|
|
4087
|
-
m4_error_recovery_count: z.
|
|
4088
|
-
m5_avg_message_tokens: z.
|
|
4242
|
+
m3_unique_tool_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4243
|
+
m4_consecutive_error_max: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4244
|
+
m4_error_recovery_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4245
|
+
m5_avg_message_tokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4089
4246
|
m5_context_utilization_pct: z.number().nullable(),
|
|
4090
|
-
m5_peak_context_tokens: z.
|
|
4091
|
-
m6_lines_survived: z.
|
|
4092
|
-
m6_lines_total: z.
|
|
4247
|
+
m5_peak_context_tokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4248
|
+
m6_lines_survived: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4249
|
+
m6_lines_total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4093
4250
|
m6_output_survival_pct: z.number().nullable(),
|
|
4094
4251
|
m7_spec_has_constraints: z.boolean().nullable(),
|
|
4095
4252
|
m7_spec_has_examples: z.boolean().nullable(),
|
|
4096
|
-
m7_spec_word_count: z.
|
|
4253
|
+
m7_spec_word_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4097
4254
|
model_name: z.string().nullable(),
|
|
4098
4255
|
model_provider: z.string(),
|
|
4099
4256
|
outcome: zSessionOutcome.nullable(),
|
|
@@ -4105,33 +4262,33 @@ export const zVillageCollectiveTranscript = z.object({
|
|
|
4105
4262
|
project_name: z.string().nullable(),
|
|
4106
4263
|
project_name_source: zVillageProjectNameSource.nullable(),
|
|
4107
4264
|
project_remote_label: z.string().nullable(),
|
|
4108
|
-
published_at: z.iso.datetime(),
|
|
4265
|
+
published_at: z.iso.datetime({ offset: true }),
|
|
4109
4266
|
pull_requests: zVillagePullRequestsSummary,
|
|
4110
4267
|
purpose: zSessionPurpose.optional(),
|
|
4111
4268
|
relationships: z.array(zSessionRelationship).optional(),
|
|
4112
|
-
retry_loops: z.
|
|
4113
|
-
retry_tokens_wasted: z.
|
|
4269
|
+
retry_loops: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4270
|
+
retry_tokens_wasted: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4114
4271
|
root_session_id: zSessionID.nullish(),
|
|
4115
4272
|
schema_version: z.string(),
|
|
4116
|
-
scope_breadth: z.
|
|
4117
|
-
session_end: z.iso.datetime().nullable(),
|
|
4273
|
+
scope_breadth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4274
|
+
session_end: z.iso.datetime({ offset: true }).nullable(),
|
|
4118
4275
|
session_origin: zSessionOrigin,
|
|
4119
|
-
session_start: z.iso.datetime().nullable(),
|
|
4276
|
+
session_start: z.iso.datetime({ offset: true }).nullable(),
|
|
4120
4277
|
signal_density: z.number().nullable(),
|
|
4121
4278
|
source_format: zSourceFormat.nullable(),
|
|
4122
4279
|
spec_quality_score: z.number().nullable(),
|
|
4123
|
-
subagent_count: z.
|
|
4280
|
+
subagent_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4124
4281
|
subagents: z.array(z.record(z.string(), z.unknown())).nullable(),
|
|
4125
4282
|
title: z.string().nullable(),
|
|
4126
4283
|
title_generated: z.string().nullable(),
|
|
4127
|
-
token_count: z.
|
|
4128
|
-
tokens_in: z.
|
|
4129
|
-
tokens_out: z.
|
|
4130
|
-
tool_call_count: z.
|
|
4131
|
-
turn_count: z.
|
|
4132
|
-
updated_at: z.iso.datetime(),
|
|
4284
|
+
token_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4285
|
+
tokens_in: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4286
|
+
tokens_out: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4287
|
+
tool_call_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4288
|
+
turn_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4289
|
+
updated_at: z.iso.datetime({ offset: true }),
|
|
4133
4290
|
visibility: zVillageTranscriptVisibility,
|
|
4134
|
-
within_session_reverts: z.
|
|
4291
|
+
within_session_reverts: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable()
|
|
4135
4292
|
}).superRefine((value, context) => {
|
|
4136
4293
|
const fail = (reason) => context.addIssue({ code: "custom", message: "schema.zVillageCollectiveTranscript: " + reason });
|
|
4137
4294
|
if (value.owner.kind !== "profile") {
|
|
@@ -4151,7 +4308,7 @@ export const zVillageContributableTranscript = z.object({
|
|
|
4151
4308
|
project_display_name: z.string(),
|
|
4152
4309
|
project_hash: zProjectHash,
|
|
4153
4310
|
project_name_source: zVillageProjectNameSource,
|
|
4154
|
-
published_at: z.iso.datetime(),
|
|
4311
|
+
published_at: z.iso.datetime({ offset: true }),
|
|
4155
4312
|
purpose: zSessionPurpose.optional(),
|
|
4156
4313
|
relationships: z.array(zSessionRelationship).optional(),
|
|
4157
4314
|
root_session_id: zSessionID.nullish(),
|
|
@@ -4160,48 +4317,48 @@ export const zVillageContributableTranscript = z.object({
|
|
|
4160
4317
|
visibility: zVillageTranscriptVisibility
|
|
4161
4318
|
});
|
|
4162
4319
|
export const zVillagePullRequestAttachedTranscript = z.object({
|
|
4163
|
-
position: z.
|
|
4320
|
+
position: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4164
4321
|
previous_visibility: zVillageTranscriptVisibility,
|
|
4165
|
-
session_start: z.iso.datetime().nullable(),
|
|
4322
|
+
session_start: z.iso.datetime({ offset: true }).nullable(),
|
|
4166
4323
|
title: z.string().nullable(),
|
|
4167
4324
|
transcript_id: zTranscriptID
|
|
4168
4325
|
});
|
|
4169
4326
|
export const zVillageTranscript = z.object({
|
|
4170
|
-
blob_size_bytes: z.
|
|
4171
|
-
compute_version: z.
|
|
4172
|
-
computed_at: z.iso.datetime().nullable(),
|
|
4327
|
+
blob_size_bytes: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4328
|
+
compute_version: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4329
|
+
computed_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4173
4330
|
content_hash: zTranscriptContentHash.nullable(),
|
|
4174
4331
|
conversation_turn_count: z.int().gte(0).lte(9007199254740991).nullable(),
|
|
4175
4332
|
description: z.string().nullable(),
|
|
4176
4333
|
diagnostics_partial: z.boolean().nullable(),
|
|
4177
4334
|
diagnostics_warnings: z.array(zDiagnosticEntry).nullable(),
|
|
4178
|
-
discovery_turns: z.
|
|
4335
|
+
discovery_turns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4179
4336
|
displayed_turn_count: z.int().gte(0).lte(9007199254740991).nullable(),
|
|
4180
|
-
duration_ms: z.
|
|
4337
|
+
duration_ms: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4181
4338
|
exploration_ratio: z.number().nullable(),
|
|
4182
|
-
files_touched: z.
|
|
4339
|
+
files_touched: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4183
4340
|
git_branch: z.string().nullable(),
|
|
4184
4341
|
git_remote: z.string().nullable(),
|
|
4185
4342
|
harness_version: z.string().nullable(),
|
|
4186
4343
|
id: zTranscriptID,
|
|
4187
|
-
ingested_at: z.iso.datetime().nullable(),
|
|
4344
|
+
ingested_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4188
4345
|
input_submission_count: z.int().gte(0).lte(9007199254740991).optional(),
|
|
4189
4346
|
license_id: zLicense.nullable(),
|
|
4190
|
-
lines_changed: z.
|
|
4347
|
+
lines_changed: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4191
4348
|
local_id: zSessionID,
|
|
4192
4349
|
m2_token_outcome_ratio: z.number().nullable(),
|
|
4193
|
-
m3_unique_tool_count: z.
|
|
4194
|
-
m4_consecutive_error_max: z.
|
|
4195
|
-
m4_error_recovery_count: z.
|
|
4196
|
-
m5_avg_message_tokens: z.
|
|
4350
|
+
m3_unique_tool_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4351
|
+
m4_consecutive_error_max: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4352
|
+
m4_error_recovery_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4353
|
+
m5_avg_message_tokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4197
4354
|
m5_context_utilization_pct: z.number().nullable(),
|
|
4198
|
-
m5_peak_context_tokens: z.
|
|
4199
|
-
m6_lines_survived: z.
|
|
4200
|
-
m6_lines_total: z.
|
|
4355
|
+
m5_peak_context_tokens: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4356
|
+
m6_lines_survived: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4357
|
+
m6_lines_total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4201
4358
|
m6_output_survival_pct: z.number().nullable(),
|
|
4202
4359
|
m7_spec_has_constraints: z.boolean().nullable(),
|
|
4203
4360
|
m7_spec_has_examples: z.boolean().nullable(),
|
|
4204
|
-
m7_spec_word_count: z.
|
|
4361
|
+
m7_spec_word_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4205
4362
|
model_name: z.string().nullable(),
|
|
4206
4363
|
model_provider: z.string(),
|
|
4207
4364
|
outcome: zSessionOutcome.nullable(),
|
|
@@ -4212,32 +4369,32 @@ export const zVillageTranscript = z.object({
|
|
|
4212
4369
|
project_name: z.string().nullable(),
|
|
4213
4370
|
project_name_source: zVillageProjectNameSource.nullable(),
|
|
4214
4371
|
project_remote_label: z.string().nullable(),
|
|
4215
|
-
published_at: z.iso.datetime(),
|
|
4372
|
+
published_at: z.iso.datetime({ offset: true }),
|
|
4216
4373
|
purpose: zSessionPurpose.optional(),
|
|
4217
4374
|
relationships: z.array(zSessionRelationship).optional(),
|
|
4218
|
-
retry_loops: z.
|
|
4219
|
-
retry_tokens_wasted: z.
|
|
4375
|
+
retry_loops: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4376
|
+
retry_tokens_wasted: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4220
4377
|
root_session_id: zSessionID.nullish(),
|
|
4221
4378
|
schema_version: z.string(),
|
|
4222
|
-
scope_breadth: z.
|
|
4223
|
-
session_end: z.iso.datetime().nullable(),
|
|
4379
|
+
scope_breadth: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4380
|
+
session_end: z.iso.datetime({ offset: true }).nullable(),
|
|
4224
4381
|
session_origin: zSessionOrigin,
|
|
4225
|
-
session_start: z.iso.datetime().nullable(),
|
|
4382
|
+
session_start: z.iso.datetime({ offset: true }).nullable(),
|
|
4226
4383
|
signal_density: z.number().nullable(),
|
|
4227
4384
|
source_format: zSourceFormat.nullable(),
|
|
4228
4385
|
spec_quality_score: z.number().nullable(),
|
|
4229
|
-
subagent_count: z.
|
|
4386
|
+
subagent_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4230
4387
|
subagents: z.array(z.record(z.string(), z.unknown())).nullable(),
|
|
4231
4388
|
title: z.string().nullable(),
|
|
4232
4389
|
title_generated: z.string().nullable(),
|
|
4233
|
-
token_count: z.
|
|
4234
|
-
tokens_in: z.
|
|
4235
|
-
tokens_out: z.
|
|
4236
|
-
tool_call_count: z.
|
|
4237
|
-
turn_count: z.
|
|
4238
|
-
updated_at: z.iso.datetime(),
|
|
4390
|
+
token_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4391
|
+
tokens_in: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4392
|
+
tokens_out: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4393
|
+
tool_call_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4394
|
+
turn_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4395
|
+
updated_at: z.iso.datetime({ offset: true }),
|
|
4239
4396
|
visibility: zVillageTranscriptVisibility,
|
|
4240
|
-
within_session_reverts: z.
|
|
4397
|
+
within_session_reverts: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable()
|
|
4241
4398
|
});
|
|
4242
4399
|
/**
|
|
4243
4400
|
* Village UUID
|
|
@@ -4342,7 +4499,7 @@ export const zLocalPublication = z.object({
|
|
|
4342
4499
|
autoPublish: z.boolean(),
|
|
4343
4500
|
lastAttempt: zLocalPublicationAttemptFailure.optional(),
|
|
4344
4501
|
outsideSelection: z.boolean(),
|
|
4345
|
-
publishedAt: z.iso.datetime().optional(),
|
|
4502
|
+
publishedAt: z.iso.datetime({ offset: true }).optional(),
|
|
4346
4503
|
sessionId: z.string(),
|
|
4347
4504
|
state: zLocalPublicationState,
|
|
4348
4505
|
transcriptId: zTranscriptID.optional(),
|
|
@@ -4399,7 +4556,7 @@ export const zLocalSettingsResponse = z.object({
|
|
|
4399
4556
|
settings: z.array(zLocalSetting)
|
|
4400
4557
|
});
|
|
4401
4558
|
export const zLocalSyncSessionRow = z.object({
|
|
4402
|
-
childCount: z.
|
|
4559
|
+
childCount: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
4403
4560
|
preview: z.string(),
|
|
4404
4561
|
publication: zLocalPublication,
|
|
4405
4562
|
sync: zLocalSyncSummary,
|
|
@@ -4439,15 +4596,78 @@ export const zSyncPushSessionResult = z.object({
|
|
|
4439
4596
|
waitingPullRequests: z.array(zVillagePromptRequest).optional()
|
|
4440
4597
|
});
|
|
4441
4598
|
export const zSyncPushResponse = z.object({
|
|
4442
|
-
errors: z.
|
|
4443
|
-
new: z.
|
|
4599
|
+
errors: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
4600
|
+
new: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
4444
4601
|
sessions: z.array(zSyncPushSessionResult),
|
|
4445
|
-
skipped: z.
|
|
4446
|
-
updated: z.
|
|
4602
|
+
skipped: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808),
|
|
4603
|
+
updated: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808)
|
|
4604
|
+
});
|
|
4605
|
+
export const zTranscriptReadTransport = z.object({
|
|
4606
|
+
kind: zTranscriptReadTransportKind,
|
|
4607
|
+
sessionId: zSessionID.nullish(),
|
|
4608
|
+
transcriptId: zVillageUUID.nullish()
|
|
4609
|
+
});
|
|
4610
|
+
export const zTranscriptReadContext = z.object({
|
|
4611
|
+
contentHash: z.string().optional(),
|
|
4612
|
+
contentSessionId: z.string().nullish(),
|
|
4613
|
+
harness: z.string().optional(),
|
|
4614
|
+
model: z.string().optional(),
|
|
4615
|
+
nativePresence: zTranscriptNativePresence,
|
|
4616
|
+
protocolVersion: z.string().min(1),
|
|
4617
|
+
representation: z.string(),
|
|
4618
|
+
revision: z.string(),
|
|
4619
|
+
thinkingLevel: zThinkingLevel.optional(),
|
|
4620
|
+
thinkingLevelRaw: zThinkingLevelRaw.optional(),
|
|
4621
|
+
totalConversationTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
4622
|
+
totalSegments: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4623
|
+
totalTurns: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4624
|
+
transport: zTranscriptReadTransport,
|
|
4625
|
+
validation: zTranscriptReadValidation
|
|
4626
|
+
});
|
|
4627
|
+
export const zPositionedDirectory = z.object({
|
|
4628
|
+
context: zTranscriptReadContext,
|
|
4629
|
+
directoryPage: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
4630
|
+
directoryPerPage: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish(),
|
|
4631
|
+
history: z.array(zTranscriptHistorySection).optional(),
|
|
4632
|
+
partition: zTranscriptSegmentPartition,
|
|
4633
|
+
segments: z.array(zPositionedSegmentRef),
|
|
4634
|
+
usagePresent: zTranscriptUsagePresence
|
|
4635
|
+
});
|
|
4636
|
+
export const zPositionedSegment = z.object({
|
|
4637
|
+
byteLength: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4638
|
+
context: zTranscriptReadContext,
|
|
4639
|
+
hasNewer: z.boolean(),
|
|
4640
|
+
hasOlder: z.boolean(),
|
|
4641
|
+
index: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4642
|
+
nativeMetadata: z.array(zNativeMetadataRecord).optional(),
|
|
4643
|
+
partition: zTranscriptSegmentPartition,
|
|
4644
|
+
rows: z.array(zTranscriptSegmentRow).min(1)
|
|
4645
|
+
});
|
|
4646
|
+
export const zPositionedWindow = z.object({
|
|
4647
|
+
anchorPosition: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4648
|
+
anchorSegment: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4649
|
+
anchorTurn: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
4650
|
+
context: zTranscriptReadContext,
|
|
4651
|
+
firstPosition: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4652
|
+
hasNewer: z.boolean(),
|
|
4653
|
+
hasOlder: z.boolean(),
|
|
4654
|
+
lastPosition: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4655
|
+
partition: zTranscriptSegmentPartition,
|
|
4656
|
+
requestedAnchor: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
4657
|
+
requestedPosition: z.number().refine(Number.isInteger).gte(0).lte(9223372036854775808).optional(),
|
|
4658
|
+
segments: z.array(z.int()).min(1),
|
|
4659
|
+
span: z.int().gte(1).lte(10)
|
|
4660
|
+
});
|
|
4661
|
+
export const zTranscriptEntryMatch = z.object({
|
|
4662
|
+
context: zTranscriptReadContext,
|
|
4663
|
+
kind: zTranscriptEntryReferenceKind,
|
|
4664
|
+
position: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4665
|
+
recordedIndex: z.int().gte(0).lte(9007199254740991).optional(),
|
|
4666
|
+
segmentOrdinal: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
4447
4667
|
});
|
|
4448
4668
|
export const zVillageCollective = z.object({
|
|
4449
4669
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4450
|
-
created_at: z.iso.datetime(),
|
|
4670
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4451
4671
|
creator: zVillagePublicOwner,
|
|
4452
4672
|
data_access: zVillageCollectiveDataAccess,
|
|
4453
4673
|
description: z.string().nullable(),
|
|
@@ -4458,11 +4678,11 @@ export const zVillageCollective = z.object({
|
|
|
4458
4678
|
post_prompts_check: z.boolean(),
|
|
4459
4679
|
prompts_check_mode: zVillagePromptsCheckMode,
|
|
4460
4680
|
transcript_deletion_policy: zVillageTranscriptDeletionPolicy,
|
|
4461
|
-
updated_at: z.iso.datetime()
|
|
4681
|
+
updated_at: z.iso.datetime({ offset: true })
|
|
4462
4682
|
});
|
|
4463
4683
|
export const zVillageCollectiveDetailRecord = z.object({
|
|
4464
4684
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4465
|
-
created_at: z.iso.datetime(),
|
|
4685
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4466
4686
|
creator: zVillagePublicOwner,
|
|
4467
4687
|
data_access: zVillageCollectiveDataAccess,
|
|
4468
4688
|
description: z.string().nullable(),
|
|
@@ -4473,7 +4693,7 @@ export const zVillageCollectiveDetailRecord = z.object({
|
|
|
4473
4693
|
post_prompts_check: z.boolean().nullish(),
|
|
4474
4694
|
prompts_check_mode: zVillagePromptsCheckMode.nullish(),
|
|
4475
4695
|
transcript_deletion_policy: zVillageTranscriptDeletionPolicy,
|
|
4476
|
-
updated_at: z.iso.datetime()
|
|
4696
|
+
updated_at: z.iso.datetime({ offset: true })
|
|
4477
4697
|
});
|
|
4478
4698
|
export const zVillageCollectiveDetailResponse = z.object({
|
|
4479
4699
|
can_read: z.boolean(),
|
|
@@ -4487,8 +4707,8 @@ export const zVillageCollectiveDetailResponse = z.object({
|
|
|
4487
4707
|
your_role: zVillageCollectiveViewerRole
|
|
4488
4708
|
});
|
|
4489
4709
|
export const zVillageCollectiveInvitationSent = z.object({
|
|
4490
|
-
created_at: z.iso.datetime(),
|
|
4491
|
-
expires_at: z.iso.datetime(),
|
|
4710
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4711
|
+
expires_at: z.iso.datetime({ offset: true }),
|
|
4492
4712
|
id: zVillageUUID,
|
|
4493
4713
|
invited_by: zVillagePublicOwner,
|
|
4494
4714
|
invited_username: z.string().min(1)
|
|
@@ -4510,7 +4730,7 @@ export const zVillageCollectiveSearchResponse = z.object({
|
|
|
4510
4730
|
export const zVillageCollectiveSubmission = z.object({
|
|
4511
4731
|
event_num: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }),
|
|
4512
4732
|
group_id: zVillageUUID,
|
|
4513
|
-
recorded_at: z.iso.datetime(),
|
|
4733
|
+
recorded_at: z.iso.datetime({ offset: true }),
|
|
4514
4734
|
status: zVillageShareStatus,
|
|
4515
4735
|
title: z.string().nullable(),
|
|
4516
4736
|
transcript_id: zTranscriptID
|
|
@@ -4537,7 +4757,7 @@ export const zVillageEnrichedTranscriptShare = z.object({
|
|
|
4537
4757
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4538
4758
|
group_id: zVillageUUID,
|
|
4539
4759
|
group_name: z.string(),
|
|
4540
|
-
shared_at: z.iso.datetime(),
|
|
4760
|
+
shared_at: z.iso.datetime({ offset: true }),
|
|
4541
4761
|
status: zVillageShareStatus,
|
|
4542
4762
|
transcript_id: zTranscriptID
|
|
4543
4763
|
});
|
|
@@ -4549,18 +4769,18 @@ export const zVillageInvitedCollective = z.object({
|
|
|
4549
4769
|
});
|
|
4550
4770
|
export const zVillageCollectiveInvitation = z.object({
|
|
4551
4771
|
collective: zVillageInvitedCollective,
|
|
4552
|
-
created_at: z.iso.datetime(),
|
|
4553
|
-
expires_at: z.iso.datetime(),
|
|
4772
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4773
|
+
expires_at: z.iso.datetime({ offset: true }),
|
|
4554
4774
|
id: zVillageUUID,
|
|
4555
4775
|
invited_by: zVillagePublicOwner
|
|
4556
4776
|
});
|
|
4557
4777
|
export const zVillageLinkedRepository = z.object({
|
|
4558
|
-
created_at: z.iso.datetime().nullable(),
|
|
4778
|
+
created_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4559
4779
|
group_id: zVillageUUID,
|
|
4560
4780
|
id: zVillageUUID,
|
|
4561
4781
|
installation_id: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }),
|
|
4562
4782
|
is_private: z.boolean(),
|
|
4563
|
-
last_synced_at: z.iso.datetime().nullable(),
|
|
4783
|
+
last_synced_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4564
4784
|
linked_by: zVillagePublicOwner,
|
|
4565
4785
|
name: z.string(),
|
|
4566
4786
|
owner: z.string()
|
|
@@ -4584,7 +4804,7 @@ export const zVillageOrganizationCollectivesResponse = z.object({
|
|
|
4584
4804
|
ctx.addIssue({ code: "custom", message: "Collective contract validation: " + issue + "; retain prior evidence and fetch validated metadata before retrying" }); });
|
|
4585
4805
|
export const zVillagePublicCollective = z.object({
|
|
4586
4806
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4587
|
-
created_at: z.iso.datetime(),
|
|
4807
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4588
4808
|
data_access: zVillageCollectiveDataAccess,
|
|
4589
4809
|
description: z.string().nullable(),
|
|
4590
4810
|
id: zVillageUUID,
|
|
@@ -4595,22 +4815,22 @@ export const zVillagePublicCollective = z.object({
|
|
|
4595
4815
|
});
|
|
4596
4816
|
export const zVillagePullRequestAttachment = z.object({
|
|
4597
4817
|
author: zVillagePublicOwner,
|
|
4598
|
-
check_run_id: z.
|
|
4599
|
-
comment_id: z.
|
|
4600
|
-
confirmed_at: z.iso.datetime().nullable(),
|
|
4601
|
-
created_at: z.iso.datetime(),
|
|
4602
|
-
detached_at: z.iso.datetime().nullable(),
|
|
4818
|
+
check_run_id: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4819
|
+
comment_id: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4820
|
+
confirmed_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4821
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4822
|
+
detached_at: z.iso.datetime({ offset: true }).nullable(),
|
|
4603
4823
|
head_ref: z.string().nullable(),
|
|
4604
4824
|
head_sha: z.string(),
|
|
4605
4825
|
id: zVillageUUID,
|
|
4606
4826
|
is_private_repository: z.boolean(),
|
|
4607
4827
|
name: z.string(),
|
|
4608
|
-
number: z.
|
|
4828
|
+
number: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4609
4829
|
owner: z.string(),
|
|
4610
4830
|
requested_by: zVillagePublicOwner.nullable(),
|
|
4611
4831
|
state: zVillagePullRequestAttachmentState,
|
|
4612
4832
|
title: z.string().nullable(),
|
|
4613
|
-
updated_at: z.iso.datetime()
|
|
4833
|
+
updated_at: z.iso.datetime({ offset: true })
|
|
4614
4834
|
});
|
|
4615
4835
|
export const zVillagePullRequestAttachmentResponse = z.object({
|
|
4616
4836
|
attachment: zVillagePullRequestAttachment,
|
|
@@ -4628,7 +4848,7 @@ export const zVillageTag = z.object({
|
|
|
4628
4848
|
export const zVillageTranscriptAttestation = z.object({
|
|
4629
4849
|
attestation_type: z.string(),
|
|
4630
4850
|
attester: zVillagePublicOwner,
|
|
4631
|
-
created_at: z.iso.datetime(),
|
|
4851
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4632
4852
|
id: zVillageUUID,
|
|
4633
4853
|
note: z.string().nullable(),
|
|
4634
4854
|
org_login: z.string(),
|
|
@@ -4639,7 +4859,7 @@ export const zVillageTranscriptCollective = z.object({
|
|
|
4639
4859
|
id: zVillageUUID,
|
|
4640
4860
|
linked_github_org: z.string().nullable(),
|
|
4641
4861
|
name: z.string(),
|
|
4642
|
-
shared_at: z.iso.datetime()
|
|
4862
|
+
shared_at: z.iso.datetime({ offset: true })
|
|
4643
4863
|
});
|
|
4644
4864
|
export const zVillageTranscriptCollectivesResponse = z.object({
|
|
4645
4865
|
collectives: z.array(zVillageTranscriptCollective)
|
|
@@ -4665,17 +4885,17 @@ export const zVillageTranscriptListRow = z.object({
|
|
|
4665
4885
|
}
|
|
4666
4886
|
});
|
|
4667
4887
|
export const zVillageTranscriptListResponse = z.object({
|
|
4668
|
-
agent_total: z.
|
|
4888
|
+
agent_total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4669
4889
|
next_items: z.array(zVillageTranscriptListRow),
|
|
4670
|
-
page: z.
|
|
4671
|
-
per_page: z.
|
|
4672
|
-
total: z.
|
|
4890
|
+
page: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4891
|
+
per_page: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4892
|
+
total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4673
4893
|
transcripts: z.array(zVillageTranscriptListRow)
|
|
4674
4894
|
});
|
|
4675
4895
|
export const zVillageTranscriptShare = z.object({
|
|
4676
4896
|
group_id: zVillageUUID,
|
|
4677
4897
|
group_name: z.string(),
|
|
4678
|
-
shared_at: z.iso.datetime()
|
|
4898
|
+
shared_at: z.iso.datetime({ offset: true })
|
|
4679
4899
|
});
|
|
4680
4900
|
export const zVillageTranscriptMetadataResponse = z.object({
|
|
4681
4901
|
attestations: z.array(zVillageTranscriptAttestation),
|
|
@@ -4717,7 +4937,7 @@ export const zVillageUpdateUserSettingsRequest = z.object({
|
|
|
4717
4937
|
});
|
|
4718
4938
|
export const zVillageUser = z.object({
|
|
4719
4939
|
avatar_url: z.string().nullable(),
|
|
4720
|
-
created_at: z.iso.datetime(),
|
|
4940
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4721
4941
|
display_name: z.string().nullable(),
|
|
4722
4942
|
github_id: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }),
|
|
4723
4943
|
github_username: z.string(),
|
|
@@ -4726,12 +4946,12 @@ export const zVillageUser = z.object({
|
|
|
4726
4946
|
provider: z.string(),
|
|
4727
4947
|
provider_user_id: z.string(),
|
|
4728
4948
|
provider_username: z.string().nullable(),
|
|
4729
|
-
updated_at: z.iso.datetime(),
|
|
4949
|
+
updated_at: z.iso.datetime({ offset: true }),
|
|
4730
4950
|
username_chosen: z.boolean()
|
|
4731
4951
|
});
|
|
4732
4952
|
export const zVillageUserCollective = z.object({
|
|
4733
4953
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4734
|
-
created_at: z.iso.datetime(),
|
|
4954
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4735
4955
|
creator: zVillagePublicOwner,
|
|
4736
4956
|
data_access: zVillageCollectiveDataAccess,
|
|
4737
4957
|
description: z.string().nullable(),
|
|
@@ -4739,12 +4959,12 @@ export const zVillageUserCollective = z.object({
|
|
|
4739
4959
|
id: zVillageUUID,
|
|
4740
4960
|
linked_github_org: z.string().nullable(),
|
|
4741
4961
|
member_count: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }),
|
|
4742
|
-
member_since: z.iso.datetime(),
|
|
4962
|
+
member_since: z.iso.datetime({ offset: true }),
|
|
4743
4963
|
name: z.string(),
|
|
4744
4964
|
role: zVillageCollectiveRole,
|
|
4745
4965
|
transcript_count: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }),
|
|
4746
4966
|
transcript_deletion_policy: zVillageTranscriptDeletionPolicy,
|
|
4747
|
-
updated_at: z.iso.datetime()
|
|
4967
|
+
updated_at: z.iso.datetime({ offset: true })
|
|
4748
4968
|
});
|
|
4749
4969
|
export const zLocalVillageCollective = z.object({
|
|
4750
4970
|
group: zVillageUserCollective,
|
|
@@ -4764,16 +4984,16 @@ export const zVillageUserCollectiveShare = z.object({
|
|
|
4764
4984
|
owner: zVillagePublicOwner,
|
|
4765
4985
|
parent_session_id: zSessionID.nullable(),
|
|
4766
4986
|
parent_transcript_id: zTranscriptID.nullable(),
|
|
4767
|
-
published_at: z.iso.datetime(),
|
|
4987
|
+
published_at: z.iso.datetime({ offset: true }),
|
|
4768
4988
|
purpose: zSessionPurpose.optional(),
|
|
4769
4989
|
relationships: z.array(zSessionRelationship).optional(),
|
|
4770
4990
|
root_session_id: zSessionID.nullish(),
|
|
4771
|
-
shared_at: z.iso.datetime(),
|
|
4991
|
+
shared_at: z.iso.datetime({ offset: true }),
|
|
4772
4992
|
status: zVillageShareStatus,
|
|
4773
4993
|
title: z.string().nullable(),
|
|
4774
|
-
tokens_in: z.
|
|
4775
|
-
tokens_out: z.
|
|
4776
|
-
turn_count: z.
|
|
4994
|
+
tokens_in: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4995
|
+
tokens_out: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4996
|
+
turn_count: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
4777
4997
|
visibility: zVillageTranscriptVisibility
|
|
4778
4998
|
});
|
|
4779
4999
|
export const zVillageSessionRow = z.object({
|
|
@@ -4922,7 +5142,7 @@ export const zVillageVerifyNotificationEmailRequest = z.object({
|
|
|
4922
5142
|
});
|
|
4923
5143
|
export const zVillageVisibleCollective = z.object({
|
|
4924
5144
|
acceptance_mode: zVillageCollectiveAcceptanceMode,
|
|
4925
|
-
created_at: z.iso.datetime(),
|
|
5145
|
+
created_at: z.iso.datetime({ offset: true }),
|
|
4926
5146
|
creator: zVillagePublicOwner,
|
|
4927
5147
|
data_access: zVillageCollectiveDataAccess,
|
|
4928
5148
|
description: z.string().nullable(),
|
|
@@ -4930,12 +5150,12 @@ export const zVillageVisibleCollective = z.object({
|
|
|
4930
5150
|
id: zVillageUUID,
|
|
4931
5151
|
linked_github_org: z.string().nullable(),
|
|
4932
5152
|
member_count: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }),
|
|
4933
|
-
member_since: z.iso.datetime().nullable(),
|
|
5153
|
+
member_since: z.iso.datetime({ offset: true }).nullable(),
|
|
4934
5154
|
name: z.string(),
|
|
4935
5155
|
role: zVillageCollectiveRole.nullable(),
|
|
4936
5156
|
transcript_count: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }),
|
|
4937
5157
|
transcript_deletion_policy: zVillageTranscriptDeletionPolicy,
|
|
4938
|
-
updated_at: z.iso.datetime()
|
|
5158
|
+
updated_at: z.iso.datetime({ offset: true })
|
|
4939
5159
|
});
|
|
4940
5160
|
/**
|
|
4941
5161
|
* Visibility
|
|
@@ -4948,7 +5168,7 @@ export const zVisibility = z.enum([
|
|
|
4948
5168
|
'public'
|
|
4949
5169
|
]);
|
|
4950
5170
|
export const zLegacyPullTranscriptInfo = z.object({
|
|
4951
|
-
annotationCount: z.
|
|
5171
|
+
annotationCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4952
5172
|
contentHash: z.string().optional(),
|
|
4953
5173
|
contractVersion: z.string().optional(),
|
|
4954
5174
|
harness: zHarness.optional(),
|
|
@@ -4972,9 +5192,9 @@ export const zLegacyPullTranscriptInfo = z.object({
|
|
|
4972
5192
|
fail("projectName sits beside an anonymous owner; omit it for an anonymous owner");
|
|
4973
5193
|
});
|
|
4974
5194
|
export const zLegacyPullListResponse = z.object({
|
|
4975
|
-
limit: z.
|
|
4976
|
-
page: z.
|
|
4977
|
-
total: z.
|
|
5195
|
+
limit: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5196
|
+
page: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5197
|
+
total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
4978
5198
|
transcripts: z.array(zLegacyPullTranscriptInfo).nullable()
|
|
4979
5199
|
});
|
|
4980
5200
|
export const zPublishNormalizedValues = z.object({
|
|
@@ -5021,7 +5241,7 @@ export const zAuthoritativePublishResponse = z.object({
|
|
|
5021
5241
|
context.addIssue({ code: "custom", path: ["applied", "normalizedValues", "visibility"], message: "top-level and applied visibility must agree" });
|
|
5022
5242
|
});
|
|
5023
5243
|
export const zPullTranscriptInfo = z.object({
|
|
5024
|
-
annotationCount: z.
|
|
5244
|
+
annotationCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5025
5245
|
contentHash: z.string().optional(),
|
|
5026
5246
|
contractVersion: z.string().optional(),
|
|
5027
5247
|
harness: zHarness.optional(),
|
|
@@ -5043,9 +5263,9 @@ export const zPullTranscriptInfo = z.object({
|
|
|
5043
5263
|
}
|
|
5044
5264
|
});
|
|
5045
5265
|
export const zPullListResponse = z.object({
|
|
5046
|
-
limit: z.
|
|
5047
|
-
page: z.
|
|
5048
|
-
total: z.
|
|
5266
|
+
limit: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5267
|
+
page: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5268
|
+
total: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808),
|
|
5049
5269
|
transcripts: z.array(zPullTranscriptInfo).nullable()
|
|
5050
5270
|
});
|
|
5051
5271
|
/**
|
|
@@ -5081,7 +5301,7 @@ export const zScryCheckRequest = z.object({
|
|
|
5081
5301
|
export const zWalkthroughStep = z.object({
|
|
5082
5302
|
excerpt: z.string(),
|
|
5083
5303
|
file: z.string(),
|
|
5084
|
-
line: z.
|
|
5304
|
+
line: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullish()
|
|
5085
5305
|
});
|
|
5086
5306
|
export const zWalkthroughTrail = z.object({
|
|
5087
5307
|
date: z.string(),
|
|
@@ -5089,16 +5309,16 @@ export const zWalkthroughTrail = z.object({
|
|
|
5089
5309
|
sessionId: z.string(),
|
|
5090
5310
|
steps: z.array(zWalkthroughStep).nullable(),
|
|
5091
5311
|
title: z.string(),
|
|
5092
|
-
turnCount: z.
|
|
5312
|
+
turnCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
5093
5313
|
});
|
|
5094
5314
|
export const zFamiliarityPayload = z.object({
|
|
5095
5315
|
familiarityPct: z.number(),
|
|
5096
5316
|
files: z.array(zFileFamiliarity).nullable(),
|
|
5097
|
-
freshnessDays: z.
|
|
5317
|
+
freshnessDays: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808).nullable(),
|
|
5098
5318
|
projectHash: zProjectHash,
|
|
5099
5319
|
suggestions: z.array(zReviewSuggestion).nullable(),
|
|
5100
5320
|
trails: z.array(zWalkthroughTrail).nullable(),
|
|
5101
|
-
unexploredCount: z.
|
|
5321
|
+
unexploredCount: z.number().refine(Number.isInteger).gte(-9223372036854775808).lte(9223372036854775808)
|
|
5102
5322
|
});
|
|
5103
5323
|
export const zWeekAvgDuration = z.object({
|
|
5104
5324
|
avgDurationMins: z.number().gte(0),
|