@peasant-labs/schema 0.15.0 → 0.17.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/dist/index.d.ts +13 -0
- package/dist/index.js +422 -1
- package/dist/internal/generated/content-capabilities.gen.d.ts +2 -0
- package/dist/internal/generated/content-capabilities.gen.js +3 -1
- package/dist/internal/generated/contract/zod.gen.d.ts +1227 -442
- package/dist/internal/generated/contract/zod.gen.js +279 -58
- package/dist/internal/generated/enums.gen.d.ts +84 -7
- package/dist/internal/generated/enums.gen.js +86 -1
- package/dist/internal/generated/local-api.d.ts +54 -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/versions.gen.d.ts +3 -3
- package/dist/internal/generated/versions.gen.js +3 -3
- package/dist/internal/generated/village-api.d.ts +560 -0
- package/package.json +1 -1
|
@@ -335,6 +335,11 @@ export declare const zChildSessionRef: z.ZodObject<{
|
|
|
335
335
|
startTime: z.ZodISODateTime;
|
|
336
336
|
}, z.core.$strip>;
|
|
337
337
|
export type ChildSessionRef = z.infer<typeof zChildSessionRef>;
|
|
338
|
+
export declare const zCommandInvocation: z.ZodObject<{
|
|
339
|
+
args: z.ZodOptional<z.ZodString>;
|
|
340
|
+
name: z.ZodString;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
export type CommandInvocation = z.infer<typeof zCommandInvocation>;
|
|
338
343
|
export declare const zCommitInfo: z.ZodObject<{
|
|
339
344
|
authorEmail: z.ZodString;
|
|
340
345
|
authorName: z.ZodString;
|
|
@@ -487,6 +492,18 @@ export declare const zDiffHunk: z.ZodObject<{
|
|
|
487
492
|
sessionTitle: z.ZodOptional<z.ZodString>;
|
|
488
493
|
}, z.core.$strip>;
|
|
489
494
|
export type DiffHunk = z.infer<typeof zDiffHunk>;
|
|
495
|
+
/**
|
|
496
|
+
* Digest Item Kind
|
|
497
|
+
*
|
|
498
|
+
* Kind of one item in the prompt digest chain: a session boundary, a human prompt, a skill invocation marker, or a commit anchor
|
|
499
|
+
*/
|
|
500
|
+
export declare const zDigestItemKind: z.ZodEnum<{
|
|
501
|
+
session: "session";
|
|
502
|
+
prompt: "prompt";
|
|
503
|
+
skill: "skill";
|
|
504
|
+
commit: "commit";
|
|
505
|
+
}>;
|
|
506
|
+
export type DigestItemKind = z.infer<typeof zDigestItemKind>;
|
|
490
507
|
/**
|
|
491
508
|
* Edge Violation Kind
|
|
492
509
|
*
|
|
@@ -627,6 +644,7 @@ export declare const zHarness: z.ZodEnum<{
|
|
|
627
644
|
codex: "codex";
|
|
628
645
|
opencode: "opencode";
|
|
629
646
|
antigravity: "antigravity";
|
|
647
|
+
pi: "pi";
|
|
630
648
|
}>;
|
|
631
649
|
export type Harness = z.infer<typeof zHarness>;
|
|
632
650
|
export declare const zHealthResponse: z.ZodObject<{
|
|
@@ -785,6 +803,7 @@ export declare const zAuthoritativeModelInfo: z.ZodObject<{
|
|
|
785
803
|
codex: "codex";
|
|
786
804
|
opencode: "opencode";
|
|
787
805
|
antigravity: "antigravity";
|
|
806
|
+
pi: "pi";
|
|
788
807
|
}>;
|
|
789
808
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
790
809
|
model: z.ZodString;
|
|
@@ -800,12 +819,97 @@ export declare const zModelInfo: z.ZodObject<{
|
|
|
800
819
|
codex: "codex";
|
|
801
820
|
opencode: "opencode";
|
|
802
821
|
antigravity: "antigravity";
|
|
822
|
+
pi: "pi";
|
|
803
823
|
}>;
|
|
804
824
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
805
825
|
model: z.ZodString;
|
|
806
826
|
version: z.ZodOptional<z.ZodString>;
|
|
807
827
|
}, z.core.$strip>;
|
|
808
828
|
export type ModelInfo = z.infer<typeof zModelInfo>;
|
|
829
|
+
export declare const zNativeAttachmentRef: z.ZodObject<{
|
|
830
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
831
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
832
|
+
}, z.core.$strip>;
|
|
833
|
+
export type NativeAttachmentRef = z.infer<typeof zNativeAttachmentRef>;
|
|
834
|
+
/**
|
|
835
|
+
* Native Metadata Kind
|
|
836
|
+
*
|
|
837
|
+
* Kind of bounded non-conversational native metadata
|
|
838
|
+
*/
|
|
839
|
+
export declare const zNativeMetadataKind: z.ZodEnum<{
|
|
840
|
+
"pi.custom.data": "pi.custom.data";
|
|
841
|
+
"pi.custommessage.details": "pi.custommessage.details";
|
|
842
|
+
"pi.toolresult.details": "pi.toolresult.details";
|
|
843
|
+
"pi.compaction.details": "pi.compaction.details";
|
|
844
|
+
"pi.branchsummary.details": "pi.branchsummary.details";
|
|
845
|
+
}>;
|
|
846
|
+
export type NativeMetadataKind = z.infer<typeof zNativeMetadataKind>;
|
|
847
|
+
/**
|
|
848
|
+
* Native Metadata Source Type
|
|
849
|
+
*
|
|
850
|
+
* Native source category for public metadata
|
|
851
|
+
*/
|
|
852
|
+
export declare const zNativeMetadataSourceType: z.ZodEnum<{
|
|
853
|
+
"pi.custom": "pi.custom";
|
|
854
|
+
"pi.custom_message": "pi.custom_message";
|
|
855
|
+
"pi.message": "pi.message";
|
|
856
|
+
"pi.compaction": "pi.compaction";
|
|
857
|
+
"pi.branch_summary": "pi.branch_summary";
|
|
858
|
+
}>;
|
|
859
|
+
export type NativeMetadataSourceType = z.infer<typeof zNativeMetadataSourceType>;
|
|
860
|
+
/**
|
|
861
|
+
* Native Pi Message Role
|
|
862
|
+
*
|
|
863
|
+
* Pi message role needed for public metadata validation
|
|
864
|
+
*/
|
|
865
|
+
export declare const zNativePiMessageRole: z.ZodEnum<{
|
|
866
|
+
toolResult: "toolResult";
|
|
867
|
+
}>;
|
|
868
|
+
export type NativePiMessageRole = z.infer<typeof zNativePiMessageRole>;
|
|
869
|
+
export declare const zNativeSourceRef: z.ZodObject<{
|
|
870
|
+
entryRef: z.ZodString;
|
|
871
|
+
messageRole: z.ZodOptional<z.ZodEnum<{
|
|
872
|
+
toolResult: "toolResult";
|
|
873
|
+
}>>;
|
|
874
|
+
sourceType: z.ZodEnum<{
|
|
875
|
+
"pi.custom": "pi.custom";
|
|
876
|
+
"pi.custom_message": "pi.custom_message";
|
|
877
|
+
"pi.message": "pi.message";
|
|
878
|
+
"pi.compaction": "pi.compaction";
|
|
879
|
+
"pi.branch_summary": "pi.branch_summary";
|
|
880
|
+
}>;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
export type NativeSourceRef = z.infer<typeof zNativeSourceRef>;
|
|
883
|
+
export declare const zNativeMetadataRecord: z.ZodObject<{
|
|
884
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
885
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
886
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
887
|
+
}, z.core.$strip>>>;
|
|
888
|
+
customType: z.ZodOptional<z.ZodString>;
|
|
889
|
+
data: z.ZodUnknown;
|
|
890
|
+
id: z.ZodString;
|
|
891
|
+
kind: z.ZodEnum<{
|
|
892
|
+
"pi.custom.data": "pi.custom.data";
|
|
893
|
+
"pi.custommessage.details": "pi.custommessage.details";
|
|
894
|
+
"pi.toolresult.details": "pi.toolresult.details";
|
|
895
|
+
"pi.compaction.details": "pi.compaction.details";
|
|
896
|
+
"pi.branchsummary.details": "pi.branchsummary.details";
|
|
897
|
+
}>;
|
|
898
|
+
source: z.ZodObject<{
|
|
899
|
+
entryRef: z.ZodString;
|
|
900
|
+
messageRole: z.ZodOptional<z.ZodEnum<{
|
|
901
|
+
toolResult: "toolResult";
|
|
902
|
+
}>>;
|
|
903
|
+
sourceType: z.ZodEnum<{
|
|
904
|
+
"pi.custom": "pi.custom";
|
|
905
|
+
"pi.custom_message": "pi.custom_message";
|
|
906
|
+
"pi.message": "pi.message";
|
|
907
|
+
"pi.compaction": "pi.compaction";
|
|
908
|
+
"pi.branch_summary": "pi.branch_summary";
|
|
909
|
+
}>;
|
|
910
|
+
}, z.core.$strip>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
export type NativeMetadataRecord = z.infer<typeof zNativeMetadataRecord>;
|
|
809
913
|
/**
|
|
810
914
|
* Observed Model ID
|
|
811
915
|
*
|
|
@@ -868,6 +972,30 @@ export declare const zProjectSummariesPayload: z.ZodObject<{
|
|
|
868
972
|
}, z.core.$strip>>>;
|
|
869
973
|
}, z.core.$strip>;
|
|
870
974
|
export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
|
|
975
|
+
export declare const zPromptDigestHeader: z.ZodObject<{
|
|
976
|
+
commitsCovered: z.ZodInt;
|
|
977
|
+
commitsTotal: z.ZodInt;
|
|
978
|
+
harness: z.ZodEnum<{
|
|
979
|
+
strike: "strike";
|
|
980
|
+
cursor: "cursor";
|
|
981
|
+
"claude-code": "claude-code";
|
|
982
|
+
"gemini-cli": "gemini-cli";
|
|
983
|
+
codex: "codex";
|
|
984
|
+
opencode: "opencode";
|
|
985
|
+
antigravity: "antigravity";
|
|
986
|
+
pi: "pi";
|
|
987
|
+
}>;
|
|
988
|
+
promptCount: z.ZodInt;
|
|
989
|
+
redactionLevel: z.ZodString;
|
|
990
|
+
sessionCount: z.ZodInt;
|
|
991
|
+
villageUrl: z.ZodString;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export type PromptDigestHeader = z.infer<typeof zPromptDigestHeader>;
|
|
994
|
+
export declare const zPromptDigestSkill: z.ZodObject<{
|
|
995
|
+
invocationCount: z.ZodInt;
|
|
996
|
+
name: z.ZodString;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
export type PromptDigestSkill = z.infer<typeof zPromptDigestSkill>;
|
|
871
999
|
export declare const zProvenance: z.ZodObject<{
|
|
872
1000
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
873
1001
|
function: z.ZodOptional<z.ZodString>;
|
|
@@ -1139,6 +1267,17 @@ export declare const zMapSlice: z.ZodObject<{
|
|
|
1139
1267
|
}, z.core.$strip>>>;
|
|
1140
1268
|
}, z.core.$strip>;
|
|
1141
1269
|
export type MapSlice = z.infer<typeof zMapSlice>;
|
|
1270
|
+
export declare const zRecordedCostAmount: z.ZodNullable<z.ZodString>;
|
|
1271
|
+
export type RecordedCostAmount = z.infer<typeof zRecordedCostAmount>;
|
|
1272
|
+
export declare const zRecordedCostDetail: z.ZodObject<{
|
|
1273
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1274
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1275
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1276
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1277
|
+
source: z.ZodString;
|
|
1278
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1279
|
+
}, z.core.$strip>;
|
|
1280
|
+
export type RecordedCostDetail = z.infer<typeof zRecordedCostDetail>;
|
|
1142
1281
|
export declare const zRedactionInfo: z.ZodObject<{
|
|
1143
1282
|
applied: z.ZodBoolean;
|
|
1144
1283
|
content_hash_at_redact: z.ZodOptional<z.ZodString>;
|
|
@@ -1610,6 +1749,7 @@ export declare const zSessionSummary: z.ZodObject<{
|
|
|
1610
1749
|
codex: "codex";
|
|
1611
1750
|
opencode: "opencode";
|
|
1612
1751
|
antigravity: "antigravity";
|
|
1752
|
+
pi: "pi";
|
|
1613
1753
|
}>;
|
|
1614
1754
|
id: z.ZodString;
|
|
1615
1755
|
outcome: z.ZodOptional<z.ZodString>;
|
|
@@ -1639,6 +1779,7 @@ export declare const zSessionsPayload: z.ZodObject<{
|
|
|
1639
1779
|
codex: "codex";
|
|
1640
1780
|
opencode: "opencode";
|
|
1641
1781
|
antigravity: "antigravity";
|
|
1782
|
+
pi: "pi";
|
|
1642
1783
|
}>;
|
|
1643
1784
|
id: z.ZodString;
|
|
1644
1785
|
outcome: z.ZodOptional<z.ZodString>;
|
|
@@ -2304,6 +2445,7 @@ export declare const zTimelineSessionRef: z.ZodObject<{
|
|
|
2304
2445
|
codex: "codex";
|
|
2305
2446
|
opencode: "opencode";
|
|
2306
2447
|
antigravity: "antigravity";
|
|
2448
|
+
pi: "pi";
|
|
2307
2449
|
}>;
|
|
2308
2450
|
hasCommitBinding: z.ZodBoolean;
|
|
2309
2451
|
sessionId: z.ZodString;
|
|
@@ -2426,6 +2568,7 @@ export declare const zReviewListPayload: z.ZodObject<{
|
|
|
2426
2568
|
codex: "codex";
|
|
2427
2569
|
opencode: "opencode";
|
|
2428
2570
|
antigravity: "antigravity";
|
|
2571
|
+
pi: "pi";
|
|
2429
2572
|
}>;
|
|
2430
2573
|
hasCommitBinding: z.ZodBoolean;
|
|
2431
2574
|
sessionId: z.ZodString;
|
|
@@ -2440,6 +2583,16 @@ export declare const zTimestampInfo: z.ZodObject<{
|
|
|
2440
2583
|
start: z.ZodCoercedBigInt<unknown>;
|
|
2441
2584
|
}, z.core.$strip>;
|
|
2442
2585
|
export type TimestampInfo = z.infer<typeof zTimestampInfo>;
|
|
2586
|
+
export declare const zTokenUsageDetail: z.ZodObject<{
|
|
2587
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2588
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2589
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2590
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2591
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2592
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2593
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2594
|
+
}, z.core.$strip>;
|
|
2595
|
+
export type TokenUsageDetail = z.infer<typeof zTokenUsageDetail>;
|
|
2443
2596
|
/**
|
|
2444
2597
|
* Tool Call Kind
|
|
2445
2598
|
*
|
|
@@ -2480,6 +2633,7 @@ export declare const zAuthoritativeSessionEntry: z.ZodObject<{
|
|
|
2480
2633
|
codex: "codex";
|
|
2481
2634
|
opencode: "opencode";
|
|
2482
2635
|
antigravity: "antigravity";
|
|
2636
|
+
pi: "pi";
|
|
2483
2637
|
}>;
|
|
2484
2638
|
hasThinking: z.ZodBoolean;
|
|
2485
2639
|
hasToolUse: z.ZodBoolean;
|
|
@@ -2555,6 +2709,7 @@ export declare const zCanonicalPublishReplacement: z.ZodObject<{
|
|
|
2555
2709
|
codex: "codex";
|
|
2556
2710
|
opencode: "opencode";
|
|
2557
2711
|
antigravity: "antigravity";
|
|
2712
|
+
pi: "pi";
|
|
2558
2713
|
}>;
|
|
2559
2714
|
hasThinking: z.ZodBoolean;
|
|
2560
2715
|
hasToolUse: z.ZodBoolean;
|
|
@@ -2624,6 +2779,7 @@ export declare const zCanonicalPublishReplacement: z.ZodObject<{
|
|
|
2624
2779
|
codex: "codex";
|
|
2625
2780
|
opencode: "opencode";
|
|
2626
2781
|
antigravity: "antigravity";
|
|
2782
|
+
pi: "pi";
|
|
2627
2783
|
}>;
|
|
2628
2784
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
2629
2785
|
model: z.ZodString;
|
|
@@ -2734,6 +2890,7 @@ export declare const zSessionEntry: z.ZodObject<{
|
|
|
2734
2890
|
codex: "codex";
|
|
2735
2891
|
opencode: "opencode";
|
|
2736
2892
|
antigravity: "antigravity";
|
|
2893
|
+
pi: "pi";
|
|
2737
2894
|
}>;
|
|
2738
2895
|
hasThinking: z.ZodBoolean;
|
|
2739
2896
|
hasToolUse: z.ZodBoolean;
|
|
@@ -2809,6 +2966,7 @@ export declare const zPublishRequest: z.ZodObject<{
|
|
|
2809
2966
|
codex: "codex";
|
|
2810
2967
|
opencode: "opencode";
|
|
2811
2968
|
antigravity: "antigravity";
|
|
2969
|
+
pi: "pi";
|
|
2812
2970
|
}>;
|
|
2813
2971
|
hasThinking: z.ZodBoolean;
|
|
2814
2972
|
hasToolUse: z.ZodBoolean;
|
|
@@ -2887,6 +3045,7 @@ export declare const zPublishRequest: z.ZodObject<{
|
|
|
2887
3045
|
codex: "codex";
|
|
2888
3046
|
opencode: "opencode";
|
|
2889
3047
|
antigravity: "antigravity";
|
|
3048
|
+
pi: "pi";
|
|
2890
3049
|
}>;
|
|
2891
3050
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
2892
3051
|
model: z.ZodString;
|
|
@@ -2974,28 +3133,6 @@ export declare const zPublishRequest: z.ZodObject<{
|
|
|
2974
3133
|
}, z.core.$strip>;
|
|
2975
3134
|
}, z.core.$strip>;
|
|
2976
3135
|
export type PublishRequest = z.infer<typeof zPublishRequest>;
|
|
2977
|
-
export declare const zToolCallDetail: z.ZodObject<{
|
|
2978
|
-
arguments: z.ZodString;
|
|
2979
|
-
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2980
|
-
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2981
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
2982
|
-
id: z.ZodString;
|
|
2983
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2984
|
-
name: z.ZodString;
|
|
2985
|
-
result: z.ZodString;
|
|
2986
|
-
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
2987
|
-
search: "search";
|
|
2988
|
-
other: "other";
|
|
2989
|
-
move: "move";
|
|
2990
|
-
fetch: "fetch";
|
|
2991
|
-
delete: "delete";
|
|
2992
|
-
read: "read";
|
|
2993
|
-
edit: "edit";
|
|
2994
|
-
execute: "execute";
|
|
2995
|
-
think: "think";
|
|
2996
|
-
}>>;
|
|
2997
|
-
}, z.core.$strip>;
|
|
2998
|
-
export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
|
|
2999
3136
|
/**
|
|
3000
3137
|
* Transcript Content Hash
|
|
3001
3138
|
*
|
|
@@ -3061,6 +3198,7 @@ export declare const zCanonicalPublishOperation: z.ZodObject<{
|
|
|
3061
3198
|
codex: "codex";
|
|
3062
3199
|
opencode: "opencode";
|
|
3063
3200
|
antigravity: "antigravity";
|
|
3201
|
+
pi: "pi";
|
|
3064
3202
|
}>;
|
|
3065
3203
|
hasThinking: z.ZodBoolean;
|
|
3066
3204
|
hasToolUse: z.ZodBoolean;
|
|
@@ -3130,6 +3268,7 @@ export declare const zCanonicalPublishOperation: z.ZodObject<{
|
|
|
3130
3268
|
codex: "codex";
|
|
3131
3269
|
opencode: "opencode";
|
|
3132
3270
|
antigravity: "antigravity";
|
|
3271
|
+
pi: "pi";
|
|
3133
3272
|
}>;
|
|
3134
3273
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
3135
3274
|
model: z.ZodString;
|
|
@@ -3225,6 +3364,64 @@ export type CanonicalPublishOperation = z.infer<typeof zCanonicalPublishOperatio
|
|
|
3225
3364
|
*/
|
|
3226
3365
|
export declare const zTranscriptID: z.ZodUUID;
|
|
3227
3366
|
export type TranscriptID = z.infer<typeof zTranscriptID>;
|
|
3367
|
+
export declare const zPromptDigestItem: z.ZodObject<{
|
|
3368
|
+
commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3369
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
3370
|
+
kind: z.ZodEnum<{
|
|
3371
|
+
session: "session";
|
|
3372
|
+
prompt: "prompt";
|
|
3373
|
+
skill: "skill";
|
|
3374
|
+
commit: "commit";
|
|
3375
|
+
}>;
|
|
3376
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3377
|
+
promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3378
|
+
text: z.ZodString;
|
|
3379
|
+
timestamp: z.ZodISODateTime;
|
|
3380
|
+
transcriptId: z.ZodUUID;
|
|
3381
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3382
|
+
}, z.core.$strip>;
|
|
3383
|
+
export type PromptDigestItem = z.infer<typeof zPromptDigestItem>;
|
|
3384
|
+
export declare const zPromptDigest: z.ZodObject<{
|
|
3385
|
+
header: z.ZodObject<{
|
|
3386
|
+
commitsCovered: z.ZodInt;
|
|
3387
|
+
commitsTotal: z.ZodInt;
|
|
3388
|
+
harness: z.ZodEnum<{
|
|
3389
|
+
strike: "strike";
|
|
3390
|
+
cursor: "cursor";
|
|
3391
|
+
"claude-code": "claude-code";
|
|
3392
|
+
"gemini-cli": "gemini-cli";
|
|
3393
|
+
codex: "codex";
|
|
3394
|
+
opencode: "opencode";
|
|
3395
|
+
antigravity: "antigravity";
|
|
3396
|
+
pi: "pi";
|
|
3397
|
+
}>;
|
|
3398
|
+
promptCount: z.ZodInt;
|
|
3399
|
+
redactionLevel: z.ZodString;
|
|
3400
|
+
sessionCount: z.ZodInt;
|
|
3401
|
+
villageUrl: z.ZodString;
|
|
3402
|
+
}, z.core.$strip>;
|
|
3403
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3404
|
+
commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3405
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
3406
|
+
kind: z.ZodEnum<{
|
|
3407
|
+
session: "session";
|
|
3408
|
+
prompt: "prompt";
|
|
3409
|
+
skill: "skill";
|
|
3410
|
+
commit: "commit";
|
|
3411
|
+
}>;
|
|
3412
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3413
|
+
promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3414
|
+
text: z.ZodString;
|
|
3415
|
+
timestamp: z.ZodISODateTime;
|
|
3416
|
+
transcriptId: z.ZodUUID;
|
|
3417
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3418
|
+
}, z.core.$strip>>;
|
|
3419
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
3420
|
+
invocationCount: z.ZodInt;
|
|
3421
|
+
name: z.ZodString;
|
|
3422
|
+
}, z.core.$strip>>;
|
|
3423
|
+
}, z.core.$strip>;
|
|
3424
|
+
export type PromptDigest = z.infer<typeof zPromptDigest>;
|
|
3228
3425
|
export declare const zPullSkipGateItem: z.ZodObject<{
|
|
3229
3426
|
annotationHashes: z.ZodArray<z.ZodString>;
|
|
3230
3427
|
contentHash: z.ZodString;
|
|
@@ -3333,351 +3530,53 @@ export declare const zTrendsPayload: z.ZodObject<{
|
|
|
3333
3530
|
totalTokens: z.ZodInt;
|
|
3334
3531
|
}, z.core.$strip>;
|
|
3335
3532
|
export type TrendsPayload = z.infer<typeof zTrendsPayload>;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
delete: "delete";
|
|
3384
|
-
read: "read";
|
|
3385
|
-
edit: "edit";
|
|
3386
|
-
execute: "execute";
|
|
3387
|
-
think: "think";
|
|
3388
|
-
}>>;
|
|
3389
|
-
}, z.core.$strip>>>;
|
|
3390
|
-
}, z.core.$strip>;
|
|
3391
|
-
export type TurnDetail = z.infer<typeof zTurnDetail>;
|
|
3392
|
-
export declare const zSessionDetailPayload: z.ZodObject<{
|
|
3393
|
-
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3394
|
-
id: z.ZodString;
|
|
3395
|
-
project: z.ZodOptional<z.ZodString>;
|
|
3396
|
-
startTime: z.ZodISODateTime;
|
|
3397
|
-
}, z.core.$strip>>>;
|
|
3398
|
-
durationMins: z.ZodNumber;
|
|
3399
|
-
endTime: z.ZodISODateTime;
|
|
3400
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
3401
|
-
gitRemote: z.ZodOptional<z.ZodString>;
|
|
3402
|
-
harness: z.ZodEnum<{
|
|
3403
|
-
strike: "strike";
|
|
3404
|
-
cursor: "cursor";
|
|
3405
|
-
"claude-code": "claude-code";
|
|
3406
|
-
"gemini-cli": "gemini-cli";
|
|
3407
|
-
codex: "codex";
|
|
3408
|
-
opencode: "opencode";
|
|
3409
|
-
antigravity: "antigravity";
|
|
3410
|
-
}>;
|
|
3411
|
-
id: z.ZodString;
|
|
3412
|
-
model: z.ZodOptional<z.ZodString>;
|
|
3413
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
3414
|
-
failed: "failed";
|
|
3415
|
-
partial: "partial";
|
|
3416
|
-
resolved: "resolved";
|
|
3417
|
-
}>>;
|
|
3418
|
-
project: z.ZodOptional<z.ZodString>;
|
|
3419
|
-
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
3420
|
-
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3421
|
-
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3422
|
-
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3423
|
-
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3424
|
-
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3425
|
-
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3426
|
-
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3427
|
-
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3428
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
3429
|
-
failed: "failed";
|
|
3430
|
-
partial: "partial";
|
|
3431
|
-
resolved: "resolved";
|
|
3432
|
-
}>>;
|
|
3433
|
-
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3434
|
-
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3435
|
-
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3436
|
-
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3437
|
-
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3438
|
-
}, z.core.$strip>>>;
|
|
3439
|
-
sessionOrigin: z.ZodOptional<z.ZodEnum<{
|
|
3440
|
-
unknown: "unknown";
|
|
3441
|
-
user: "user";
|
|
3442
|
-
agent: "agent";
|
|
3443
|
-
}>>;
|
|
3444
|
-
source: z.ZodOptional<z.ZodString>;
|
|
3445
|
-
startTime: z.ZodISODateTime;
|
|
3446
|
-
status: z.ZodOptional<z.ZodString>;
|
|
3447
|
-
tokensIn: z.ZodInt;
|
|
3448
|
-
tokensOut: z.ZodInt;
|
|
3449
|
-
toolCallCount: z.ZodInt;
|
|
3450
|
-
totalTokens: z.ZodInt;
|
|
3451
|
-
turnCount: z.ZodInt;
|
|
3452
|
-
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3453
|
-
agentName: z.ZodOptional<z.ZodString>;
|
|
3454
|
-
content: z.ZodString;
|
|
3455
|
-
depth: z.ZodInt;
|
|
3456
|
-
entryType: z.ZodOptional<z.ZodEnum<{
|
|
3457
|
-
error: "error";
|
|
3458
|
-
text: "text";
|
|
3459
|
-
tool_use: "tool_use";
|
|
3460
|
-
tool_result: "tool_result";
|
|
3461
|
-
thinking: "thinking";
|
|
3462
|
-
system: "system";
|
|
3463
|
-
result: "result";
|
|
3464
|
-
}>>;
|
|
3465
|
-
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
3466
|
-
index: z.ZodInt;
|
|
3467
|
-
observedModel: z.ZodOptional<z.ZodString>;
|
|
3468
|
-
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3469
|
-
role: z.ZodEnum<{
|
|
3470
|
-
user: "user";
|
|
3471
|
-
system: "system";
|
|
3472
|
-
assistant: "assistant";
|
|
3473
|
-
tool: "tool";
|
|
3474
|
-
}>;
|
|
3475
|
-
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3476
|
-
end_turn: "end_turn";
|
|
3477
|
-
cancelled: "cancelled";
|
|
3478
|
-
max_tokens: "max_tokens";
|
|
3479
|
-
max_turn_requests: "max_turn_requests";
|
|
3480
|
-
refusal: "refusal";
|
|
3481
|
-
}>>>;
|
|
3482
|
-
timestamp: z.ZodISODateTime;
|
|
3483
|
-
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3484
|
-
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3485
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3486
|
-
arguments: z.ZodString;
|
|
3487
|
-
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3488
|
-
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3489
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
3490
|
-
id: z.ZodString;
|
|
3491
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3492
|
-
name: z.ZodString;
|
|
3493
|
-
result: z.ZodString;
|
|
3494
|
-
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
3495
|
-
search: "search";
|
|
3496
|
-
other: "other";
|
|
3497
|
-
move: "move";
|
|
3498
|
-
fetch: "fetch";
|
|
3499
|
-
delete: "delete";
|
|
3500
|
-
read: "read";
|
|
3501
|
-
edit: "edit";
|
|
3502
|
-
execute: "execute";
|
|
3503
|
-
think: "think";
|
|
3504
|
-
}>>;
|
|
3505
|
-
}, z.core.$strip>>>;
|
|
3506
|
-
}, z.core.$strip>>>;
|
|
3507
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
3508
|
-
}, z.core.$strip>;
|
|
3509
|
-
export type SessionDetailPayload = z.infer<typeof zSessionDetailPayload>;
|
|
3510
|
-
export declare const zTranscriptContent: z.ZodObject<{
|
|
3511
|
-
contractVersion: z.ZodString;
|
|
3512
|
-
kind: z.ZodEnum<{
|
|
3513
|
-
session_detail: "session_detail";
|
|
3514
|
-
}>;
|
|
3515
|
-
sessionDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3516
|
-
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3517
|
-
id: z.ZodString;
|
|
3518
|
-
project: z.ZodOptional<z.ZodString>;
|
|
3519
|
-
startTime: z.ZodISODateTime;
|
|
3520
|
-
}, z.core.$strip>>>;
|
|
3521
|
-
durationMins: z.ZodNumber;
|
|
3522
|
-
endTime: z.ZodISODateTime;
|
|
3523
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
3524
|
-
gitRemote: z.ZodOptional<z.ZodString>;
|
|
3525
|
-
harness: z.ZodEnum<{
|
|
3526
|
-
strike: "strike";
|
|
3527
|
-
cursor: "cursor";
|
|
3528
|
-
"claude-code": "claude-code";
|
|
3529
|
-
"gemini-cli": "gemini-cli";
|
|
3530
|
-
codex: "codex";
|
|
3531
|
-
opencode: "opencode";
|
|
3532
|
-
antigravity: "antigravity";
|
|
3533
|
-
}>;
|
|
3534
|
-
id: z.ZodString;
|
|
3535
|
-
model: z.ZodOptional<z.ZodString>;
|
|
3536
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
3537
|
-
failed: "failed";
|
|
3538
|
-
partial: "partial";
|
|
3539
|
-
resolved: "resolved";
|
|
3540
|
-
}>>;
|
|
3541
|
-
project: z.ZodOptional<z.ZodString>;
|
|
3542
|
-
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
3543
|
-
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3544
|
-
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3545
|
-
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3546
|
-
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3547
|
-
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3548
|
-
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3549
|
-
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3550
|
-
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3551
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
3552
|
-
failed: "failed";
|
|
3553
|
-
partial: "partial";
|
|
3554
|
-
resolved: "resolved";
|
|
3555
|
-
}>>;
|
|
3556
|
-
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3557
|
-
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3558
|
-
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3559
|
-
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3560
|
-
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3561
|
-
}, z.core.$strip>>>;
|
|
3562
|
-
sessionOrigin: z.ZodOptional<z.ZodEnum<{
|
|
3563
|
-
unknown: "unknown";
|
|
3564
|
-
user: "user";
|
|
3565
|
-
agent: "agent";
|
|
3566
|
-
}>>;
|
|
3567
|
-
source: z.ZodOptional<z.ZodString>;
|
|
3568
|
-
startTime: z.ZodISODateTime;
|
|
3569
|
-
status: z.ZodOptional<z.ZodString>;
|
|
3570
|
-
tokensIn: z.ZodInt;
|
|
3571
|
-
tokensOut: z.ZodInt;
|
|
3572
|
-
toolCallCount: z.ZodInt;
|
|
3573
|
-
totalTokens: z.ZodInt;
|
|
3574
|
-
turnCount: z.ZodInt;
|
|
3575
|
-
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3576
|
-
agentName: z.ZodOptional<z.ZodString>;
|
|
3577
|
-
content: z.ZodString;
|
|
3578
|
-
depth: z.ZodInt;
|
|
3579
|
-
entryType: z.ZodOptional<z.ZodEnum<{
|
|
3580
|
-
error: "error";
|
|
3581
|
-
text: "text";
|
|
3582
|
-
tool_use: "tool_use";
|
|
3583
|
-
tool_result: "tool_result";
|
|
3584
|
-
thinking: "thinking";
|
|
3585
|
-
system: "system";
|
|
3586
|
-
result: "result";
|
|
3587
|
-
}>>;
|
|
3588
|
-
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
3589
|
-
index: z.ZodInt;
|
|
3590
|
-
observedModel: z.ZodOptional<z.ZodString>;
|
|
3591
|
-
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3592
|
-
role: z.ZodEnum<{
|
|
3593
|
-
user: "user";
|
|
3594
|
-
system: "system";
|
|
3595
|
-
assistant: "assistant";
|
|
3596
|
-
tool: "tool";
|
|
3597
|
-
}>;
|
|
3598
|
-
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3599
|
-
end_turn: "end_turn";
|
|
3600
|
-
cancelled: "cancelled";
|
|
3601
|
-
max_tokens: "max_tokens";
|
|
3602
|
-
max_turn_requests: "max_turn_requests";
|
|
3603
|
-
refusal: "refusal";
|
|
3604
|
-
}>>>;
|
|
3605
|
-
timestamp: z.ZodISODateTime;
|
|
3606
|
-
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3607
|
-
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3608
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3609
|
-
arguments: z.ZodString;
|
|
3610
|
-
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3611
|
-
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3612
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
3613
|
-
id: z.ZodString;
|
|
3614
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3615
|
-
name: z.ZodString;
|
|
3616
|
-
result: z.ZodString;
|
|
3617
|
-
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
3618
|
-
search: "search";
|
|
3619
|
-
other: "other";
|
|
3620
|
-
move: "move";
|
|
3621
|
-
fetch: "fetch";
|
|
3622
|
-
delete: "delete";
|
|
3623
|
-
read: "read";
|
|
3624
|
-
edit: "edit";
|
|
3625
|
-
execute: "execute";
|
|
3626
|
-
think: "think";
|
|
3627
|
-
}>>;
|
|
3628
|
-
}, z.core.$strip>>>;
|
|
3629
|
-
}, z.core.$strip>>>;
|
|
3630
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
3631
|
-
}, z.core.$strip>>>;
|
|
3632
|
-
}, z.core.$strip>;
|
|
3633
|
-
export type TranscriptContent = z.infer<typeof zTranscriptContent>;
|
|
3634
|
-
/**
|
|
3635
|
-
* Type Origin
|
|
3636
|
-
*
|
|
3637
|
-
* Who created an annotation type: system (built-in), user (individual), or group (shared)
|
|
3638
|
-
*/
|
|
3639
|
-
export declare const zTypeOrigin: z.ZodEnum<{
|
|
3640
|
-
user: "user";
|
|
3641
|
-
group: "group";
|
|
3642
|
-
system: "system";
|
|
3643
|
-
}>;
|
|
3644
|
-
export type TypeOrigin = z.infer<typeof zTypeOrigin>;
|
|
3645
|
-
export declare const zUICapabilitiesResponse: z.ZodObject<{
|
|
3646
|
-
uiCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3647
|
-
}, z.core.$strict>;
|
|
3648
|
-
export type UICapabilitiesResponse = z.infer<typeof zUICapabilitiesResponse>;
|
|
3649
|
-
export declare const zUnifiedMetadata: z.ZodObject<{
|
|
3650
|
-
adapterVersion: z.ZodOptional<z.ZodInt>;
|
|
3651
|
-
contentHash: z.ZodString;
|
|
3652
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
3653
|
-
derivedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3654
|
-
diagnostics: z.ZodObject<{
|
|
3655
|
-
partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3656
|
-
warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3657
|
-
errorType: z.ZodString;
|
|
3658
|
-
location: z.ZodString;
|
|
3659
|
-
message: z.ZodString;
|
|
3660
|
-
remediation: z.ZodString;
|
|
3661
|
-
}, z.core.$strip>>>;
|
|
3662
|
-
}, z.core.$strip>;
|
|
3663
|
-
git: z.ZodObject<{
|
|
3664
|
-
associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3665
|
-
id: z.ZodString;
|
|
3666
|
-
observedCommitHash: z.ZodString;
|
|
3667
|
-
}, z.core.$strict>>>;
|
|
3668
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3669
|
-
commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3670
|
-
authorEmail: z.ZodString;
|
|
3671
|
-
authorName: z.ZodString;
|
|
3672
|
-
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
3673
|
-
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
3674
|
-
hash: z.ZodString;
|
|
3675
|
-
message: z.ZodString;
|
|
3676
|
-
}, z.core.$strip>>>;
|
|
3677
|
-
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3678
|
-
tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3679
|
-
worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3680
|
-
}, z.core.$strip>;
|
|
3533
|
+
/**
|
|
3534
|
+
* Type Origin
|
|
3535
|
+
*
|
|
3536
|
+
* Who created an annotation type: system (built-in), user (individual), or group (shared)
|
|
3537
|
+
*/
|
|
3538
|
+
export declare const zTypeOrigin: z.ZodEnum<{
|
|
3539
|
+
user: "user";
|
|
3540
|
+
group: "group";
|
|
3541
|
+
system: "system";
|
|
3542
|
+
}>;
|
|
3543
|
+
export type TypeOrigin = z.infer<typeof zTypeOrigin>;
|
|
3544
|
+
export declare const zUICapabilitiesResponse: z.ZodObject<{
|
|
3545
|
+
uiCapabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3546
|
+
}, z.core.$strict>;
|
|
3547
|
+
export type UICapabilitiesResponse = z.infer<typeof zUICapabilitiesResponse>;
|
|
3548
|
+
export declare const zUnifiedMetadata: z.ZodObject<{
|
|
3549
|
+
adapterVersion: z.ZodOptional<z.ZodInt>;
|
|
3550
|
+
contentHash: z.ZodString;
|
|
3551
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
3552
|
+
derivedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3553
|
+
diagnostics: z.ZodObject<{
|
|
3554
|
+
partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3555
|
+
warnings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3556
|
+
errorType: z.ZodString;
|
|
3557
|
+
location: z.ZodString;
|
|
3558
|
+
message: z.ZodString;
|
|
3559
|
+
remediation: z.ZodString;
|
|
3560
|
+
}, z.core.$strip>>>;
|
|
3561
|
+
}, z.core.$strip>;
|
|
3562
|
+
git: z.ZodObject<{
|
|
3563
|
+
associations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3564
|
+
id: z.ZodString;
|
|
3565
|
+
observedCommitHash: z.ZodString;
|
|
3566
|
+
}, z.core.$strict>>>;
|
|
3567
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3568
|
+
commits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3569
|
+
authorEmail: z.ZodString;
|
|
3570
|
+
authorName: z.ZodString;
|
|
3571
|
+
authorTime: z.ZodCoercedBigInt<unknown>;
|
|
3572
|
+
commitTime: z.ZodCoercedBigInt<unknown>;
|
|
3573
|
+
hash: z.ZodString;
|
|
3574
|
+
message: z.ZodString;
|
|
3575
|
+
}, z.core.$strip>>>;
|
|
3576
|
+
remote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3577
|
+
tracking: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3578
|
+
worktree: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3579
|
+
}, z.core.$strip>;
|
|
3681
3580
|
harness: z.ZodEnum<{
|
|
3682
3581
|
strike: "strike";
|
|
3683
3582
|
cursor: "cursor";
|
|
@@ -3686,6 +3585,7 @@ export declare const zUnifiedMetadata: z.ZodObject<{
|
|
|
3686
3585
|
codex: "codex";
|
|
3687
3586
|
opencode: "opencode";
|
|
3688
3587
|
antigravity: "antigravity";
|
|
3588
|
+
pi: "pi";
|
|
3689
3589
|
}>;
|
|
3690
3590
|
hostSlug: z.ZodString;
|
|
3691
3591
|
metadataHash: z.ZodString;
|
|
@@ -3850,88 +3750,764 @@ export declare const zChangeDetailPayload: z.ZodObject<{
|
|
|
3850
3750
|
reviewed: "reviewed";
|
|
3851
3751
|
reviewed_in_detail: "reviewed_in_detail";
|
|
3852
3752
|
}>;
|
|
3853
|
-
recordedFiles: z.ZodInt;
|
|
3854
|
-
reviewedRegionCount: z.ZodInt;
|
|
3855
|
-
totalFiles: z.ZodInt;
|
|
3856
|
-
touchCount: z.ZodInt;
|
|
3753
|
+
recordedFiles: z.ZodInt;
|
|
3754
|
+
reviewedRegionCount: z.ZodInt;
|
|
3755
|
+
totalFiles: z.ZodInt;
|
|
3756
|
+
touchCount: z.ZodInt;
|
|
3757
|
+
}, z.core.$strip>>>;
|
|
3758
|
+
structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3759
|
+
count: z.ZodInt;
|
|
3760
|
+
from: z.ZodString;
|
|
3761
|
+
to: z.ZodString;
|
|
3762
|
+
}, z.core.$strip>>>;
|
|
3763
|
+
}, z.core.$strip>;
|
|
3764
|
+
unrecordedCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3765
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
3766
|
+
conclusion: z.ZodEnum<{
|
|
3767
|
+
candidate: "candidate";
|
|
3768
|
+
confirmed: "confirmed";
|
|
3769
|
+
}>;
|
|
3770
|
+
confidence: z.ZodEnum<{
|
|
3771
|
+
high: "high";
|
|
3772
|
+
low: "low";
|
|
3773
|
+
medium: "medium";
|
|
3774
|
+
}>;
|
|
3775
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
3776
|
+
branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3777
|
+
kind: z.ZodEnum<{
|
|
3778
|
+
recorded_commit: "recorded_commit";
|
|
3779
|
+
touched_file: "touched_file";
|
|
3780
|
+
branch_membership: "branch_membership";
|
|
3781
|
+
time_window: "time_window";
|
|
3782
|
+
}>;
|
|
3783
|
+
recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3784
|
+
touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3785
|
+
windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3786
|
+
windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3787
|
+
}, z.core.$strip>>;
|
|
3788
|
+
id: z.ZodString;
|
|
3789
|
+
sessionId: z.ZodString;
|
|
3790
|
+
}, z.core.$strip>>;
|
|
3791
|
+
hasSession: z.ZodBoolean;
|
|
3792
|
+
hash: z.ZodString;
|
|
3793
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
3794
|
+
subject: z.ZodString;
|
|
3795
|
+
timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3796
|
+
}, z.core.$strip>>>;
|
|
3797
|
+
unusual: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3798
|
+
kind: z.ZodString;
|
|
3799
|
+
label: z.ZodString;
|
|
3800
|
+
perChange: z.ZodNumber;
|
|
3801
|
+
perProject: z.ZodNumber;
|
|
3802
|
+
}, z.core.$strip>>>;
|
|
3803
|
+
violations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3804
|
+
from: z.ZodString;
|
|
3805
|
+
kind: z.ZodEnum<{
|
|
3806
|
+
cycle: "cycle";
|
|
3807
|
+
wrong_way: "wrong_way";
|
|
3808
|
+
}>;
|
|
3809
|
+
to: z.ZodString;
|
|
3810
|
+
}, z.core.$strip>>>;
|
|
3811
|
+
work: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3812
|
+
binding: z.ZodEnum<{
|
|
3813
|
+
candidate: "candidate";
|
|
3814
|
+
bound: "bound";
|
|
3815
|
+
}>;
|
|
3816
|
+
harness: z.ZodString;
|
|
3817
|
+
sessionId: z.ZodString;
|
|
3818
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3819
|
+
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3820
|
+
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3821
|
+
entryIndex: z.ZodInt;
|
|
3822
|
+
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3823
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
3824
|
+
readCount: z.ZodInt;
|
|
3825
|
+
readFiles: z.ZodArray<z.ZodString>;
|
|
3826
|
+
retryLoop: z.ZodBoolean;
|
|
3827
|
+
sessionId: z.ZodString;
|
|
3828
|
+
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3829
|
+
title: z.ZodString;
|
|
3830
|
+
}, z.core.$strip>>>;
|
|
3831
|
+
title: z.ZodString;
|
|
3832
|
+
}, z.core.$strip>>>;
|
|
3833
|
+
}, z.core.$strip>;
|
|
3834
|
+
export type ChangeDetailPayload = z.infer<typeof zChangeDetailPayload>;
|
|
3835
|
+
/**
|
|
3836
|
+
* Usage Completeness
|
|
3837
|
+
*
|
|
3838
|
+
* Completeness of the five base token fields
|
|
3839
|
+
*/
|
|
3840
|
+
export declare const zUsageCompleteness: z.ZodEnum<{
|
|
3841
|
+
unknown: "unknown";
|
|
3842
|
+
complete: "complete";
|
|
3843
|
+
partial: "partial";
|
|
3844
|
+
}>;
|
|
3845
|
+
export type UsageCompleteness = z.infer<typeof zUsageCompleteness>;
|
|
3846
|
+
export declare const zUsageOwnerID: z.ZodNullable<z.ZodString>;
|
|
3847
|
+
export type UsageOwnerID = z.infer<typeof zUsageOwnerID>;
|
|
3848
|
+
/**
|
|
3849
|
+
* Usage Scope
|
|
3850
|
+
*
|
|
3851
|
+
* Native owner scope for detailed token and cost evidence
|
|
3852
|
+
*/
|
|
3853
|
+
export declare const zUsageScope: z.ZodEnum<{
|
|
3854
|
+
summary: "summary";
|
|
3855
|
+
assistant: "assistant";
|
|
3856
|
+
tool: "tool";
|
|
3857
|
+
}>;
|
|
3858
|
+
export type UsageScope = z.infer<typeof zUsageScope>;
|
|
3859
|
+
export declare const zUsageDetail: z.ZodObject<{
|
|
3860
|
+
completeness: z.ZodEnum<{
|
|
3861
|
+
unknown: "unknown";
|
|
3862
|
+
complete: "complete";
|
|
3863
|
+
partial: "partial";
|
|
3864
|
+
}>;
|
|
3865
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3866
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3867
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3868
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3869
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3870
|
+
source: z.ZodString;
|
|
3871
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3872
|
+
}, z.core.$strip>>>;
|
|
3873
|
+
ownerId: z.ZodString;
|
|
3874
|
+
scope: z.ZodEnum<{
|
|
3875
|
+
summary: "summary";
|
|
3876
|
+
assistant: "assistant";
|
|
3877
|
+
tool: "tool";
|
|
3878
|
+
}>;
|
|
3879
|
+
sourceEntryRef: z.ZodString;
|
|
3880
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3881
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3882
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3883
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3884
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3885
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3886
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3887
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3888
|
+
}, z.core.$strip>>>;
|
|
3889
|
+
}, z.core.$strip>;
|
|
3890
|
+
export type UsageDetail = z.infer<typeof zUsageDetail>;
|
|
3891
|
+
export declare const zToolCallDetail: z.ZodObject<{
|
|
3892
|
+
arguments: z.ZodString;
|
|
3893
|
+
callEntryRef: z.ZodOptional<z.ZodString>;
|
|
3894
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3895
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3896
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
3897
|
+
id: z.ZodString;
|
|
3898
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3899
|
+
name: z.ZodString;
|
|
3900
|
+
result: z.ZodString;
|
|
3901
|
+
resultEntryRef: z.ZodOptional<z.ZodString>;
|
|
3902
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
3903
|
+
search: "search";
|
|
3904
|
+
other: "other";
|
|
3905
|
+
move: "move";
|
|
3906
|
+
fetch: "fetch";
|
|
3907
|
+
delete: "delete";
|
|
3908
|
+
read: "read";
|
|
3909
|
+
edit: "edit";
|
|
3910
|
+
execute: "execute";
|
|
3911
|
+
think: "think";
|
|
3912
|
+
}>>;
|
|
3913
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3914
|
+
completeness: z.ZodEnum<{
|
|
3915
|
+
unknown: "unknown";
|
|
3916
|
+
complete: "complete";
|
|
3917
|
+
partial: "partial";
|
|
3918
|
+
}>;
|
|
3919
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3920
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3921
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3922
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3923
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3924
|
+
source: z.ZodString;
|
|
3925
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3926
|
+
}, z.core.$strip>>>;
|
|
3927
|
+
ownerId: z.ZodString;
|
|
3928
|
+
scope: z.ZodEnum<{
|
|
3929
|
+
summary: "summary";
|
|
3930
|
+
assistant: "assistant";
|
|
3931
|
+
tool: "tool";
|
|
3932
|
+
}>;
|
|
3933
|
+
sourceEntryRef: z.ZodString;
|
|
3934
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3935
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3936
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3937
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3938
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3939
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3940
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3941
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3942
|
+
}, z.core.$strip>>>;
|
|
3943
|
+
}, z.core.$strip>>>;
|
|
3944
|
+
}, z.core.$strip>;
|
|
3945
|
+
export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
|
|
3946
|
+
export declare const zTurnDetail: z.ZodObject<{
|
|
3947
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
3948
|
+
command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3949
|
+
args: z.ZodOptional<z.ZodString>;
|
|
3950
|
+
name: z.ZodString;
|
|
3951
|
+
}, z.core.$strip>>>;
|
|
3952
|
+
content: z.ZodString;
|
|
3953
|
+
depth: z.ZodInt;
|
|
3954
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
3955
|
+
error: "error";
|
|
3956
|
+
text: "text";
|
|
3957
|
+
tool_use: "tool_use";
|
|
3958
|
+
tool_result: "tool_result";
|
|
3959
|
+
thinking: "thinking";
|
|
3960
|
+
system: "system";
|
|
3961
|
+
result: "result";
|
|
3962
|
+
}>>;
|
|
3963
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
3964
|
+
index: z.ZodInt;
|
|
3965
|
+
observedModel: z.ZodOptional<z.ZodString>;
|
|
3966
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3967
|
+
role: z.ZodEnum<{
|
|
3968
|
+
user: "user";
|
|
3969
|
+
system: "system";
|
|
3970
|
+
assistant: "assistant";
|
|
3971
|
+
tool: "tool";
|
|
3972
|
+
}>;
|
|
3973
|
+
sourceEntryRef: z.ZodOptional<z.ZodString>;
|
|
3974
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3975
|
+
end_turn: "end_turn";
|
|
3976
|
+
cancelled: "cancelled";
|
|
3977
|
+
max_tokens: "max_tokens";
|
|
3978
|
+
max_turn_requests: "max_turn_requests";
|
|
3979
|
+
refusal: "refusal";
|
|
3980
|
+
}>>>;
|
|
3981
|
+
timestamp: z.ZodISODateTime;
|
|
3982
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3983
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3984
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3985
|
+
arguments: z.ZodString;
|
|
3986
|
+
callEntryRef: z.ZodOptional<z.ZodString>;
|
|
3987
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3988
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3989
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
3990
|
+
id: z.ZodString;
|
|
3991
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3992
|
+
name: z.ZodString;
|
|
3993
|
+
result: z.ZodString;
|
|
3994
|
+
resultEntryRef: z.ZodOptional<z.ZodString>;
|
|
3995
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
3996
|
+
search: "search";
|
|
3997
|
+
other: "other";
|
|
3998
|
+
move: "move";
|
|
3999
|
+
fetch: "fetch";
|
|
4000
|
+
delete: "delete";
|
|
4001
|
+
read: "read";
|
|
4002
|
+
edit: "edit";
|
|
4003
|
+
execute: "execute";
|
|
4004
|
+
think: "think";
|
|
4005
|
+
}>>;
|
|
4006
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4007
|
+
completeness: z.ZodEnum<{
|
|
4008
|
+
unknown: "unknown";
|
|
4009
|
+
complete: "complete";
|
|
4010
|
+
partial: "partial";
|
|
4011
|
+
}>;
|
|
4012
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4013
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4014
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4015
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4016
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4017
|
+
source: z.ZodString;
|
|
4018
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4019
|
+
}, z.core.$strip>>>;
|
|
4020
|
+
ownerId: z.ZodString;
|
|
4021
|
+
scope: z.ZodEnum<{
|
|
4022
|
+
summary: "summary";
|
|
4023
|
+
assistant: "assistant";
|
|
4024
|
+
tool: "tool";
|
|
4025
|
+
}>;
|
|
4026
|
+
sourceEntryRef: z.ZodString;
|
|
4027
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4028
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4029
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4030
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4031
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4032
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4033
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4034
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4035
|
+
}, z.core.$strip>>>;
|
|
4036
|
+
}, z.core.$strip>>>;
|
|
4037
|
+
}, z.core.$strip>>>;
|
|
4038
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4039
|
+
completeness: z.ZodEnum<{
|
|
4040
|
+
unknown: "unknown";
|
|
4041
|
+
complete: "complete";
|
|
4042
|
+
partial: "partial";
|
|
4043
|
+
}>;
|
|
4044
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4045
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4046
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4047
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4048
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4049
|
+
source: z.ZodString;
|
|
4050
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4051
|
+
}, z.core.$strip>>>;
|
|
4052
|
+
ownerId: z.ZodString;
|
|
4053
|
+
scope: z.ZodEnum<{
|
|
4054
|
+
summary: "summary";
|
|
4055
|
+
assistant: "assistant";
|
|
4056
|
+
tool: "tool";
|
|
4057
|
+
}>;
|
|
4058
|
+
sourceEntryRef: z.ZodString;
|
|
4059
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4060
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4061
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4062
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4063
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4064
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4065
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4066
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4067
|
+
}, z.core.$strip>>>;
|
|
4068
|
+
}, z.core.$strip>>>;
|
|
4069
|
+
}, z.core.$strip>;
|
|
4070
|
+
export type TurnDetail = z.infer<typeof zTurnDetail>;
|
|
4071
|
+
export declare const zSessionDetailPayload: z.ZodObject<{
|
|
4072
|
+
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4073
|
+
id: z.ZodString;
|
|
4074
|
+
project: z.ZodOptional<z.ZodString>;
|
|
4075
|
+
startTime: z.ZodISODateTime;
|
|
4076
|
+
}, z.core.$strip>>>;
|
|
4077
|
+
durationMins: z.ZodNumber;
|
|
4078
|
+
endTime: z.ZodISODateTime;
|
|
4079
|
+
gitBranch: z.ZodOptional<z.ZodString>;
|
|
4080
|
+
gitRemote: z.ZodOptional<z.ZodString>;
|
|
4081
|
+
harness: z.ZodEnum<{
|
|
4082
|
+
strike: "strike";
|
|
4083
|
+
cursor: "cursor";
|
|
4084
|
+
"claude-code": "claude-code";
|
|
4085
|
+
"gemini-cli": "gemini-cli";
|
|
4086
|
+
codex: "codex";
|
|
4087
|
+
opencode: "opencode";
|
|
4088
|
+
antigravity: "antigravity";
|
|
4089
|
+
pi: "pi";
|
|
4090
|
+
}>;
|
|
4091
|
+
id: z.ZodString;
|
|
4092
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4093
|
+
nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4094
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4095
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4096
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4097
|
+
}, z.core.$strip>>>;
|
|
4098
|
+
customType: z.ZodOptional<z.ZodString>;
|
|
4099
|
+
data: z.ZodUnknown;
|
|
4100
|
+
id: z.ZodString;
|
|
4101
|
+
kind: z.ZodEnum<{
|
|
4102
|
+
"pi.custom.data": "pi.custom.data";
|
|
4103
|
+
"pi.custommessage.details": "pi.custommessage.details";
|
|
4104
|
+
"pi.toolresult.details": "pi.toolresult.details";
|
|
4105
|
+
"pi.compaction.details": "pi.compaction.details";
|
|
4106
|
+
"pi.branchsummary.details": "pi.branchsummary.details";
|
|
4107
|
+
}>;
|
|
4108
|
+
source: z.ZodObject<{
|
|
4109
|
+
entryRef: z.ZodString;
|
|
4110
|
+
messageRole: z.ZodOptional<z.ZodEnum<{
|
|
4111
|
+
toolResult: "toolResult";
|
|
4112
|
+
}>>;
|
|
4113
|
+
sourceType: z.ZodEnum<{
|
|
4114
|
+
"pi.custom": "pi.custom";
|
|
4115
|
+
"pi.custom_message": "pi.custom_message";
|
|
4116
|
+
"pi.message": "pi.message";
|
|
4117
|
+
"pi.compaction": "pi.compaction";
|
|
4118
|
+
"pi.branch_summary": "pi.branch_summary";
|
|
4119
|
+
}>;
|
|
4120
|
+
}, z.core.$strip>;
|
|
4121
|
+
}, z.core.$strip>>>;
|
|
4122
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
4123
|
+
failed: "failed";
|
|
4124
|
+
partial: "partial";
|
|
4125
|
+
resolved: "resolved";
|
|
4126
|
+
}>>;
|
|
4127
|
+
project: z.ZodOptional<z.ZodString>;
|
|
4128
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
4129
|
+
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4130
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4131
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4132
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4133
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4134
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4135
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4136
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4137
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
4138
|
+
failed: "failed";
|
|
4139
|
+
partial: "partial";
|
|
4140
|
+
resolved: "resolved";
|
|
4141
|
+
}>>;
|
|
4142
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4143
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4144
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4145
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4146
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4147
|
+
}, z.core.$strip>>>;
|
|
4148
|
+
sessionOrigin: z.ZodOptional<z.ZodEnum<{
|
|
4149
|
+
unknown: "unknown";
|
|
4150
|
+
user: "user";
|
|
4151
|
+
agent: "agent";
|
|
4152
|
+
}>>;
|
|
4153
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4154
|
+
startTime: z.ZodISODateTime;
|
|
4155
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
tokensIn: z.ZodInt;
|
|
4157
|
+
tokensOut: z.ZodInt;
|
|
4158
|
+
toolCallCount: z.ZodInt;
|
|
4159
|
+
totalTokens: z.ZodInt;
|
|
4160
|
+
turnCount: z.ZodInt;
|
|
4161
|
+
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4162
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4164
|
+
args: z.ZodOptional<z.ZodString>;
|
|
4165
|
+
name: z.ZodString;
|
|
4166
|
+
}, z.core.$strip>>>;
|
|
4167
|
+
content: z.ZodString;
|
|
4168
|
+
depth: z.ZodInt;
|
|
4169
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
4170
|
+
error: "error";
|
|
4171
|
+
text: "text";
|
|
4172
|
+
tool_use: "tool_use";
|
|
4173
|
+
tool_result: "tool_result";
|
|
4174
|
+
thinking: "thinking";
|
|
4175
|
+
system: "system";
|
|
4176
|
+
result: "result";
|
|
4177
|
+
}>>;
|
|
4178
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
4179
|
+
index: z.ZodInt;
|
|
4180
|
+
observedModel: z.ZodOptional<z.ZodString>;
|
|
4181
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4182
|
+
role: z.ZodEnum<{
|
|
4183
|
+
user: "user";
|
|
4184
|
+
system: "system";
|
|
4185
|
+
assistant: "assistant";
|
|
4186
|
+
tool: "tool";
|
|
4187
|
+
}>;
|
|
4188
|
+
sourceEntryRef: z.ZodOptional<z.ZodString>;
|
|
4189
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4190
|
+
end_turn: "end_turn";
|
|
4191
|
+
cancelled: "cancelled";
|
|
4192
|
+
max_tokens: "max_tokens";
|
|
4193
|
+
max_turn_requests: "max_turn_requests";
|
|
4194
|
+
refusal: "refusal";
|
|
4195
|
+
}>>>;
|
|
4196
|
+
timestamp: z.ZodISODateTime;
|
|
4197
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4198
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4199
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4200
|
+
arguments: z.ZodString;
|
|
4201
|
+
callEntryRef: z.ZodOptional<z.ZodString>;
|
|
4202
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4203
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4204
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
4205
|
+
id: z.ZodString;
|
|
4206
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4207
|
+
name: z.ZodString;
|
|
4208
|
+
result: z.ZodString;
|
|
4209
|
+
resultEntryRef: z.ZodOptional<z.ZodString>;
|
|
4210
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
4211
|
+
search: "search";
|
|
4212
|
+
other: "other";
|
|
4213
|
+
move: "move";
|
|
4214
|
+
fetch: "fetch";
|
|
4215
|
+
delete: "delete";
|
|
4216
|
+
read: "read";
|
|
4217
|
+
edit: "edit";
|
|
4218
|
+
execute: "execute";
|
|
4219
|
+
think: "think";
|
|
4220
|
+
}>>;
|
|
4221
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4222
|
+
completeness: z.ZodEnum<{
|
|
4223
|
+
unknown: "unknown";
|
|
4224
|
+
complete: "complete";
|
|
4225
|
+
partial: "partial";
|
|
4226
|
+
}>;
|
|
4227
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4228
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4229
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4230
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4231
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4232
|
+
source: z.ZodString;
|
|
4233
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4234
|
+
}, z.core.$strip>>>;
|
|
4235
|
+
ownerId: z.ZodString;
|
|
4236
|
+
scope: z.ZodEnum<{
|
|
4237
|
+
summary: "summary";
|
|
4238
|
+
assistant: "assistant";
|
|
4239
|
+
tool: "tool";
|
|
4240
|
+
}>;
|
|
4241
|
+
sourceEntryRef: z.ZodString;
|
|
4242
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4243
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4244
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4245
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4246
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4247
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4248
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4249
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4250
|
+
}, z.core.$strip>>>;
|
|
4251
|
+
}, z.core.$strip>>>;
|
|
4252
|
+
}, z.core.$strip>>>;
|
|
4253
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4254
|
+
completeness: z.ZodEnum<{
|
|
4255
|
+
unknown: "unknown";
|
|
4256
|
+
complete: "complete";
|
|
4257
|
+
partial: "partial";
|
|
4258
|
+
}>;
|
|
4259
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4260
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4261
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4262
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4263
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4264
|
+
source: z.ZodString;
|
|
4265
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4266
|
+
}, z.core.$strip>>>;
|
|
4267
|
+
ownerId: z.ZodString;
|
|
4268
|
+
scope: z.ZodEnum<{
|
|
4269
|
+
summary: "summary";
|
|
4270
|
+
assistant: "assistant";
|
|
4271
|
+
tool: "tool";
|
|
4272
|
+
}>;
|
|
4273
|
+
sourceEntryRef: z.ZodString;
|
|
4274
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4275
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4276
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4277
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4278
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4279
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4280
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4281
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4282
|
+
}, z.core.$strip>>>;
|
|
4283
|
+
}, z.core.$strip>>>;
|
|
4284
|
+
}, z.core.$strip>>>;
|
|
4285
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
4286
|
+
}, z.core.$strip>;
|
|
4287
|
+
export type SessionDetailPayload = z.infer<typeof zSessionDetailPayload>;
|
|
4288
|
+
export declare const zTranscriptContent: z.ZodObject<{
|
|
4289
|
+
contractVersion: z.ZodString;
|
|
4290
|
+
kind: z.ZodEnum<{
|
|
4291
|
+
session_detail: "session_detail";
|
|
4292
|
+
}>;
|
|
4293
|
+
sessionDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4294
|
+
childSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4295
|
+
id: z.ZodString;
|
|
4296
|
+
project: z.ZodOptional<z.ZodString>;
|
|
4297
|
+
startTime: z.ZodISODateTime;
|
|
4298
|
+
}, z.core.$strip>>>;
|
|
4299
|
+
durationMins: z.ZodNumber;
|
|
4300
|
+
endTime: z.ZodISODateTime;
|
|
4301
|
+
gitBranch: z.ZodOptional<z.ZodString>;
|
|
4302
|
+
gitRemote: z.ZodOptional<z.ZodString>;
|
|
4303
|
+
harness: z.ZodEnum<{
|
|
4304
|
+
strike: "strike";
|
|
4305
|
+
cursor: "cursor";
|
|
4306
|
+
"claude-code": "claude-code";
|
|
4307
|
+
"gemini-cli": "gemini-cli";
|
|
4308
|
+
codex: "codex";
|
|
4309
|
+
opencode: "opencode";
|
|
4310
|
+
antigravity: "antigravity";
|
|
4311
|
+
pi: "pi";
|
|
4312
|
+
}>;
|
|
4313
|
+
id: z.ZodString;
|
|
4314
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4315
|
+
nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4316
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4317
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4318
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4319
|
+
}, z.core.$strip>>>;
|
|
4320
|
+
customType: z.ZodOptional<z.ZodString>;
|
|
4321
|
+
data: z.ZodUnknown;
|
|
4322
|
+
id: z.ZodString;
|
|
4323
|
+
kind: z.ZodEnum<{
|
|
4324
|
+
"pi.custom.data": "pi.custom.data";
|
|
4325
|
+
"pi.custommessage.details": "pi.custommessage.details";
|
|
4326
|
+
"pi.toolresult.details": "pi.toolresult.details";
|
|
4327
|
+
"pi.compaction.details": "pi.compaction.details";
|
|
4328
|
+
"pi.branchsummary.details": "pi.branchsummary.details";
|
|
4329
|
+
}>;
|
|
4330
|
+
source: z.ZodObject<{
|
|
4331
|
+
entryRef: z.ZodString;
|
|
4332
|
+
messageRole: z.ZodOptional<z.ZodEnum<{
|
|
4333
|
+
toolResult: "toolResult";
|
|
4334
|
+
}>>;
|
|
4335
|
+
sourceType: z.ZodEnum<{
|
|
4336
|
+
"pi.custom": "pi.custom";
|
|
4337
|
+
"pi.custom_message": "pi.custom_message";
|
|
4338
|
+
"pi.message": "pi.message";
|
|
4339
|
+
"pi.compaction": "pi.compaction";
|
|
4340
|
+
"pi.branch_summary": "pi.branch_summary";
|
|
4341
|
+
}>;
|
|
4342
|
+
}, z.core.$strip>;
|
|
3857
4343
|
}, z.core.$strip>>>;
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
4344
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
4345
|
+
failed: "failed";
|
|
4346
|
+
partial: "partial";
|
|
4347
|
+
resolved: "resolved";
|
|
4348
|
+
}>>;
|
|
4349
|
+
project: z.ZodOptional<z.ZodString>;
|
|
4350
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
4351
|
+
scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4352
|
+
costTotalUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4353
|
+
m2TokenOutcomeRatio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4354
|
+
m4ConsecutiveErrorMax: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4355
|
+
m5ContextUtilizationPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4356
|
+
m6OutputSurvivalPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4357
|
+
m7SpecHasConstraints: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4358
|
+
m7SpecHasExamples: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4359
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
4360
|
+
failed: "failed";
|
|
4361
|
+
partial: "partial";
|
|
4362
|
+
resolved: "resolved";
|
|
4363
|
+
}>>;
|
|
4364
|
+
retryTokensWasted: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4365
|
+
signalDensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4366
|
+
specQualityScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4367
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4368
|
+
withinSessionReverts: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3862
4369
|
}, z.core.$strip>>>;
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
4370
|
+
sessionOrigin: z.ZodOptional<z.ZodEnum<{
|
|
4371
|
+
unknown: "unknown";
|
|
4372
|
+
user: "user";
|
|
4373
|
+
agent: "agent";
|
|
4374
|
+
}>>;
|
|
4375
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4376
|
+
startTime: z.ZodISODateTime;
|
|
4377
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4378
|
+
tokensIn: z.ZodInt;
|
|
4379
|
+
tokensOut: z.ZodInt;
|
|
4380
|
+
toolCallCount: z.ZodInt;
|
|
4381
|
+
totalTokens: z.ZodInt;
|
|
4382
|
+
turnCount: z.ZodInt;
|
|
4383
|
+
turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4384
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
4385
|
+
command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4386
|
+
args: z.ZodOptional<z.ZodString>;
|
|
4387
|
+
name: z.ZodString;
|
|
4388
|
+
}, z.core.$strip>>>;
|
|
4389
|
+
content: z.ZodString;
|
|
4390
|
+
depth: z.ZodInt;
|
|
4391
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
4392
|
+
error: "error";
|
|
4393
|
+
text: "text";
|
|
4394
|
+
tool_use: "tool_use";
|
|
4395
|
+
tool_result: "tool_result";
|
|
4396
|
+
thinking: "thinking";
|
|
4397
|
+
system: "system";
|
|
4398
|
+
result: "result";
|
|
4399
|
+
}>>;
|
|
4400
|
+
hasThinking: z.ZodOptional<z.ZodBoolean>;
|
|
4401
|
+
index: z.ZodInt;
|
|
4402
|
+
observedModel: z.ZodOptional<z.ZodString>;
|
|
4403
|
+
parentIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4404
|
+
role: z.ZodEnum<{
|
|
4405
|
+
user: "user";
|
|
4406
|
+
system: "system";
|
|
4407
|
+
assistant: "assistant";
|
|
4408
|
+
tool: "tool";
|
|
3874
4409
|
}>;
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
4410
|
+
sourceEntryRef: z.ZodOptional<z.ZodString>;
|
|
4411
|
+
stopReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4412
|
+
end_turn: "end_turn";
|
|
4413
|
+
cancelled: "cancelled";
|
|
4414
|
+
max_tokens: "max_tokens";
|
|
4415
|
+
max_turn_requests: "max_turn_requests";
|
|
4416
|
+
refusal: "refusal";
|
|
4417
|
+
}>>>;
|
|
4418
|
+
timestamp: z.ZodISODateTime;
|
|
4419
|
+
tokensIn: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4420
|
+
tokensOut: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4421
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4422
|
+
arguments: z.ZodString;
|
|
4423
|
+
callEntryRef: z.ZodOptional<z.ZodString>;
|
|
4424
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4425
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4426
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
4427
|
+
id: z.ZodString;
|
|
4428
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
4429
|
+
name: z.ZodString;
|
|
4430
|
+
result: z.ZodString;
|
|
4431
|
+
resultEntryRef: z.ZodOptional<z.ZodString>;
|
|
4432
|
+
toolKind: z.ZodOptional<z.ZodEnum<{
|
|
4433
|
+
search: "search";
|
|
4434
|
+
other: "other";
|
|
4435
|
+
move: "move";
|
|
4436
|
+
fetch: "fetch";
|
|
4437
|
+
delete: "delete";
|
|
4438
|
+
read: "read";
|
|
4439
|
+
edit: "edit";
|
|
4440
|
+
execute: "execute";
|
|
4441
|
+
think: "think";
|
|
4442
|
+
}>>;
|
|
4443
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4444
|
+
completeness: z.ZodEnum<{
|
|
4445
|
+
unknown: "unknown";
|
|
4446
|
+
complete: "complete";
|
|
4447
|
+
partial: "partial";
|
|
4448
|
+
}>;
|
|
4449
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4450
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4451
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4452
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4453
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4454
|
+
source: z.ZodString;
|
|
4455
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4456
|
+
}, z.core.$strip>>>;
|
|
4457
|
+
ownerId: z.ZodString;
|
|
4458
|
+
scope: z.ZodEnum<{
|
|
4459
|
+
summary: "summary";
|
|
4460
|
+
assistant: "assistant";
|
|
4461
|
+
tool: "tool";
|
|
4462
|
+
}>;
|
|
4463
|
+
sourceEntryRef: z.ZodString;
|
|
4464
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4465
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4466
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4467
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4468
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4469
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4470
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4471
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4472
|
+
}, z.core.$strip>>>;
|
|
4473
|
+
}, z.core.$strip>>>;
|
|
4474
|
+
}, z.core.$strip>>>;
|
|
4475
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4476
|
+
completeness: z.ZodEnum<{
|
|
4477
|
+
unknown: "unknown";
|
|
4478
|
+
complete: "complete";
|
|
4479
|
+
partial: "partial";
|
|
3882
4480
|
}>;
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
}>;
|
|
3909
|
-
to: z.ZodString;
|
|
3910
|
-
}, z.core.$strip>>>;
|
|
3911
|
-
work: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3912
|
-
binding: z.ZodEnum<{
|
|
3913
|
-
candidate: "candidate";
|
|
3914
|
-
bound: "bound";
|
|
3915
|
-
}>;
|
|
3916
|
-
harness: z.ZodString;
|
|
3917
|
-
sessionId: z.ZodString;
|
|
3918
|
-
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3919
|
-
tasks: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3920
|
-
editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3921
|
-
entryIndex: z.ZodInt;
|
|
3922
|
-
labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
3923
|
-
outcome: z.ZodOptional<z.ZodString>;
|
|
3924
|
-
readCount: z.ZodInt;
|
|
3925
|
-
readFiles: z.ZodArray<z.ZodString>;
|
|
3926
|
-
retryLoop: z.ZodBoolean;
|
|
3927
|
-
sessionId: z.ZodString;
|
|
3928
|
-
startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3929
|
-
title: z.ZodString;
|
|
4481
|
+
cost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4482
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4483
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4484
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4485
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4486
|
+
source: z.ZodString;
|
|
4487
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4488
|
+
}, z.core.$strip>>>;
|
|
4489
|
+
ownerId: z.ZodString;
|
|
4490
|
+
scope: z.ZodEnum<{
|
|
4491
|
+
summary: "summary";
|
|
4492
|
+
assistant: "assistant";
|
|
4493
|
+
tool: "tool";
|
|
4494
|
+
}>;
|
|
4495
|
+
sourceEntryRef: z.ZodString;
|
|
4496
|
+
tokens: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4497
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4498
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4499
|
+
cacheWrite1h: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4500
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4501
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4502
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4503
|
+
totalTokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
4504
|
+
}, z.core.$strip>>>;
|
|
4505
|
+
}, z.core.$strip>>>;
|
|
3930
4506
|
}, z.core.$strip>>>;
|
|
3931
|
-
|
|
4507
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
3932
4508
|
}, z.core.$strip>>>;
|
|
3933
4509
|
}, z.core.$strip>;
|
|
3934
|
-
export type
|
|
4510
|
+
export type TranscriptContent = z.infer<typeof zTranscriptContent>;
|
|
3935
4511
|
/**
|
|
3936
4512
|
* Value Domain Kind
|
|
3937
4513
|
*
|
|
@@ -4171,6 +4747,13 @@ export declare const zVillageErrorResponse: z.ZodObject<{
|
|
|
4171
4747
|
error: z.ZodString;
|
|
4172
4748
|
}, z.core.$strip>;
|
|
4173
4749
|
export type VillageErrorResponse = z.infer<typeof zVillageErrorResponse>;
|
|
4750
|
+
/**
|
|
4751
|
+
* GitHub Webhook Payload
|
|
4752
|
+
*
|
|
4753
|
+
* GitHub event payload forwarded verbatim; validated by the X-Hub-Signature-256 HMAC over the raw body, never by shape
|
|
4754
|
+
*/
|
|
4755
|
+
export declare const zVillageGitHubWebhookPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4756
|
+
export type VillageGitHubWebhookPayload = z.infer<typeof zVillageGitHubWebhookPayload>;
|
|
4174
4757
|
/**
|
|
4175
4758
|
* Village Group Acceptance Mode
|
|
4176
4759
|
*
|
|
@@ -4287,6 +4870,61 @@ export declare const zVillageProjectNameSource: z.ZodEnum<{
|
|
|
4287
4870
|
privacy: "privacy";
|
|
4288
4871
|
}>;
|
|
4289
4872
|
export type VillageProjectNameSource = z.infer<typeof zVillageProjectNameSource>;
|
|
4873
|
+
/**
|
|
4874
|
+
* Village Prompts Check Mode
|
|
4875
|
+
*
|
|
4876
|
+
* Check-run conclusion policy for a collective's linked repositories when no prompts are attached
|
|
4877
|
+
*/
|
|
4878
|
+
export declare const zVillagePromptsCheckMode: z.ZodEnum<{
|
|
4879
|
+
required: "required";
|
|
4880
|
+
informational: "informational";
|
|
4881
|
+
}>;
|
|
4882
|
+
export type VillagePromptsCheckMode = z.infer<typeof zVillagePromptsCheckMode>;
|
|
4883
|
+
/**
|
|
4884
|
+
* Village Pull Request Attachment State
|
|
4885
|
+
*
|
|
4886
|
+
* Current lifecycle state of a pull request's prompt attachment
|
|
4887
|
+
*/
|
|
4888
|
+
export declare const zVillagePullRequestAttachmentState: z.ZodEnum<{
|
|
4889
|
+
waiting: "waiting";
|
|
4890
|
+
preview: "preview";
|
|
4891
|
+
requested: "requested";
|
|
4892
|
+
attached: "attached";
|
|
4893
|
+
detached: "detached";
|
|
4894
|
+
}>;
|
|
4895
|
+
export type VillagePullRequestAttachmentState = z.infer<typeof zVillagePullRequestAttachmentState>;
|
|
4896
|
+
export declare const zVillagePromptRequest: z.ZodObject<{
|
|
4897
|
+
name: z.ZodString;
|
|
4898
|
+
number: z.ZodInt;
|
|
4899
|
+
owner: z.ZodString;
|
|
4900
|
+
remote: z.ZodString;
|
|
4901
|
+
requested_at: z.ZodISODateTime;
|
|
4902
|
+
state: z.ZodEnum<{
|
|
4903
|
+
waiting: "waiting";
|
|
4904
|
+
preview: "preview";
|
|
4905
|
+
requested: "requested";
|
|
4906
|
+
attached: "attached";
|
|
4907
|
+
detached: "detached";
|
|
4908
|
+
}>;
|
|
4909
|
+
}, z.core.$strip>;
|
|
4910
|
+
export type VillagePromptRequest = z.infer<typeof zVillagePromptRequest>;
|
|
4911
|
+
export declare const zVillagePromptRequestsResponse: z.ZodObject<{
|
|
4912
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
4913
|
+
name: z.ZodString;
|
|
4914
|
+
number: z.ZodInt;
|
|
4915
|
+
owner: z.ZodString;
|
|
4916
|
+
remote: z.ZodString;
|
|
4917
|
+
requested_at: z.ZodISODateTime;
|
|
4918
|
+
state: z.ZodEnum<{
|
|
4919
|
+
waiting: "waiting";
|
|
4920
|
+
preview: "preview";
|
|
4921
|
+
requested: "requested";
|
|
4922
|
+
attached: "attached";
|
|
4923
|
+
detached: "detached";
|
|
4924
|
+
}>;
|
|
4925
|
+
}, z.core.$strip>>;
|
|
4926
|
+
}, z.core.$strip>;
|
|
4927
|
+
export type VillagePromptRequestsResponse = z.infer<typeof zVillagePromptRequestsResponse>;
|
|
4290
4928
|
export declare const zVillageRemoveGroupMemberResponse: z.ZodObject<{
|
|
4291
4929
|
retracted: z.ZodBoolean;
|
|
4292
4930
|
status: z.ZodString;
|
|
@@ -4448,6 +5086,18 @@ export declare const zVillageContributableTranscript: z.ZodObject<{
|
|
|
4448
5086
|
}>;
|
|
4449
5087
|
}, z.core.$strip>;
|
|
4450
5088
|
export type VillageContributableTranscript = z.infer<typeof zVillageContributableTranscript>;
|
|
5089
|
+
export declare const zVillagePullRequestAttachedTranscript: z.ZodObject<{
|
|
5090
|
+
position: z.ZodInt;
|
|
5091
|
+
previous_visibility: z.ZodEnum<{
|
|
5092
|
+
shared: "shared";
|
|
5093
|
+
private: "private";
|
|
5094
|
+
public: "public";
|
|
5095
|
+
}>;
|
|
5096
|
+
session_start: z.ZodNullable<z.ZodISODateTime>;
|
|
5097
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5098
|
+
transcript_id: z.ZodUUID;
|
|
5099
|
+
}, z.core.$strip>;
|
|
5100
|
+
export type VillagePullRequestAttachedTranscript = z.infer<typeof zVillagePullRequestAttachedTranscript>;
|
|
4451
5101
|
/**
|
|
4452
5102
|
* Village UUID
|
|
4453
5103
|
*
|
|
@@ -4565,6 +5215,11 @@ export declare const zVillageGroup: z.ZodObject<{
|
|
|
4565
5215
|
id: z.ZodUUID;
|
|
4566
5216
|
linked_github_org: z.ZodNullable<z.ZodString>;
|
|
4567
5217
|
name: z.ZodString;
|
|
5218
|
+
post_prompts_check: z.ZodBoolean;
|
|
5219
|
+
prompts_check_mode: z.ZodEnum<{
|
|
5220
|
+
required: "required";
|
|
5221
|
+
informational: "informational";
|
|
5222
|
+
}>;
|
|
4568
5223
|
transcript_deletion_policy: z.ZodEnum<{
|
|
4569
5224
|
user_choice: "user_choice";
|
|
4570
5225
|
mandatory: "mandatory";
|
|
@@ -4716,6 +5371,11 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
|
|
|
4716
5371
|
id: z.ZodUUID;
|
|
4717
5372
|
linked_github_org: z.ZodNullable<z.ZodString>;
|
|
4718
5373
|
name: z.ZodString;
|
|
5374
|
+
post_prompts_check: z.ZodBoolean;
|
|
5375
|
+
prompts_check_mode: z.ZodEnum<{
|
|
5376
|
+
required: "required";
|
|
5377
|
+
informational: "informational";
|
|
5378
|
+
}>;
|
|
4719
5379
|
transcript_deletion_policy: z.ZodEnum<{
|
|
4720
5380
|
user_choice: "user_choice";
|
|
4721
5381
|
mandatory: "mandatory";
|
|
@@ -4926,6 +5586,108 @@ export declare const zVillagePublicGroup: z.ZodObject<{
|
|
|
4926
5586
|
transcript_count: z.ZodInt;
|
|
4927
5587
|
}, z.core.$strip>;
|
|
4928
5588
|
export type VillagePublicGroup = z.infer<typeof zVillagePublicGroup>;
|
|
5589
|
+
export declare const zVillagePullRequestAttachment: z.ZodObject<{
|
|
5590
|
+
author_user_id: z.ZodNullable<z.ZodUUID>;
|
|
5591
|
+
check_run_id: z.ZodNullable<z.ZodInt>;
|
|
5592
|
+
comment_id: z.ZodNullable<z.ZodInt>;
|
|
5593
|
+
confirmed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
5594
|
+
created_at: z.ZodISODateTime;
|
|
5595
|
+
detached_at: z.ZodNullable<z.ZodISODateTime>;
|
|
5596
|
+
head_sha: z.ZodString;
|
|
5597
|
+
id: z.ZodUUID;
|
|
5598
|
+
is_private_repository: z.ZodBoolean;
|
|
5599
|
+
name: z.ZodString;
|
|
5600
|
+
number: z.ZodInt;
|
|
5601
|
+
owner: z.ZodString;
|
|
5602
|
+
requested_by_github_id: z.ZodNullable<z.ZodInt>;
|
|
5603
|
+
state: z.ZodEnum<{
|
|
5604
|
+
waiting: "waiting";
|
|
5605
|
+
preview: "preview";
|
|
5606
|
+
requested: "requested";
|
|
5607
|
+
attached: "attached";
|
|
5608
|
+
detached: "detached";
|
|
5609
|
+
}>;
|
|
5610
|
+
updated_at: z.ZodISODateTime;
|
|
5611
|
+
}, z.core.$strip>;
|
|
5612
|
+
export type VillagePullRequestAttachment = z.infer<typeof zVillagePullRequestAttachment>;
|
|
5613
|
+
export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
|
|
5614
|
+
attachment: z.ZodObject<{
|
|
5615
|
+
author_user_id: z.ZodNullable<z.ZodUUID>;
|
|
5616
|
+
check_run_id: z.ZodNullable<z.ZodInt>;
|
|
5617
|
+
comment_id: z.ZodNullable<z.ZodInt>;
|
|
5618
|
+
confirmed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
5619
|
+
created_at: z.ZodISODateTime;
|
|
5620
|
+
detached_at: z.ZodNullable<z.ZodISODateTime>;
|
|
5621
|
+
head_sha: z.ZodString;
|
|
5622
|
+
id: z.ZodUUID;
|
|
5623
|
+
is_private_repository: z.ZodBoolean;
|
|
5624
|
+
name: z.ZodString;
|
|
5625
|
+
number: z.ZodInt;
|
|
5626
|
+
owner: z.ZodString;
|
|
5627
|
+
requested_by_github_id: z.ZodNullable<z.ZodInt>;
|
|
5628
|
+
state: z.ZodEnum<{
|
|
5629
|
+
waiting: "waiting";
|
|
5630
|
+
preview: "preview";
|
|
5631
|
+
requested: "requested";
|
|
5632
|
+
attached: "attached";
|
|
5633
|
+
detached: "detached";
|
|
5634
|
+
}>;
|
|
5635
|
+
updated_at: z.ZodISODateTime;
|
|
5636
|
+
}, z.core.$strip>;
|
|
5637
|
+
digest: z.ZodNullable<z.ZodObject<{
|
|
5638
|
+
header: z.ZodObject<{
|
|
5639
|
+
commitsCovered: z.ZodInt;
|
|
5640
|
+
commitsTotal: z.ZodInt;
|
|
5641
|
+
harness: z.ZodEnum<{
|
|
5642
|
+
strike: "strike";
|
|
5643
|
+
cursor: "cursor";
|
|
5644
|
+
"claude-code": "claude-code";
|
|
5645
|
+
"gemini-cli": "gemini-cli";
|
|
5646
|
+
codex: "codex";
|
|
5647
|
+
opencode: "opencode";
|
|
5648
|
+
antigravity: "antigravity";
|
|
5649
|
+
pi: "pi";
|
|
5650
|
+
}>;
|
|
5651
|
+
promptCount: z.ZodInt;
|
|
5652
|
+
redactionLevel: z.ZodString;
|
|
5653
|
+
sessionCount: z.ZodInt;
|
|
5654
|
+
villageUrl: z.ZodString;
|
|
5655
|
+
}, z.core.$strip>;
|
|
5656
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5657
|
+
commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5658
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
5659
|
+
kind: z.ZodEnum<{
|
|
5660
|
+
session: "session";
|
|
5661
|
+
prompt: "prompt";
|
|
5662
|
+
skill: "skill";
|
|
5663
|
+
commit: "commit";
|
|
5664
|
+
}>;
|
|
5665
|
+
ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5666
|
+
promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5667
|
+
text: z.ZodString;
|
|
5668
|
+
timestamp: z.ZodISODateTime;
|
|
5669
|
+
transcriptId: z.ZodUUID;
|
|
5670
|
+
turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5671
|
+
}, z.core.$strip>>;
|
|
5672
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
5673
|
+
invocationCount: z.ZodInt;
|
|
5674
|
+
name: z.ZodString;
|
|
5675
|
+
}, z.core.$strip>>;
|
|
5676
|
+
}, z.core.$strip>>;
|
|
5677
|
+
transcripts: z.ZodArray<z.ZodObject<{
|
|
5678
|
+
position: z.ZodInt;
|
|
5679
|
+
previous_visibility: z.ZodEnum<{
|
|
5680
|
+
shared: "shared";
|
|
5681
|
+
private: "private";
|
|
5682
|
+
public: "public";
|
|
5683
|
+
}>;
|
|
5684
|
+
session_start: z.ZodNullable<z.ZodISODateTime>;
|
|
5685
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5686
|
+
transcript_id: z.ZodUUID;
|
|
5687
|
+
}, z.core.$strip>>;
|
|
5688
|
+
viewer_is_author: z.ZodBoolean;
|
|
5689
|
+
}, z.core.$strip>;
|
|
5690
|
+
export type VillagePullRequestAttachmentResponse = z.infer<typeof zVillagePullRequestAttachmentResponse>;
|
|
4929
5691
|
export declare const zVillageShareTranscriptRequest: z.ZodObject<{
|
|
4930
5692
|
group_ids: z.ZodArray<z.ZodUUID>;
|
|
4931
5693
|
}, z.core.$strip>;
|
|
@@ -5062,12 +5824,21 @@ export declare const zVillageUpdateGroupRequest: z.ZodObject<{
|
|
|
5062
5824
|
display_members: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5063
5825
|
linked_github_org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5064
5826
|
name: z.ZodOptional<z.ZodString>;
|
|
5827
|
+
post_prompts_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5828
|
+
prompts_check_mode: z.ZodOptional<z.ZodEnum<{
|
|
5829
|
+
required: "required";
|
|
5830
|
+
informational: "informational";
|
|
5831
|
+
}>>;
|
|
5065
5832
|
transcript_deletion_policy: z.ZodOptional<z.ZodEnum<{
|
|
5066
5833
|
user_choice: "user_choice";
|
|
5067
5834
|
mandatory: "mandatory";
|
|
5068
5835
|
}>>;
|
|
5069
5836
|
}, z.core.$strip>;
|
|
5070
5837
|
export type VillageUpdateGroupRequest = z.infer<typeof zVillageUpdateGroupRequest>;
|
|
5838
|
+
export declare const zVillageUpdateUserSettingsRequest: z.ZodObject<{
|
|
5839
|
+
preview_before_attach: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5840
|
+
}, z.core.$strip>;
|
|
5841
|
+
export type VillageUpdateUserSettingsRequest = z.infer<typeof zVillageUpdateUserSettingsRequest>;
|
|
5071
5842
|
export declare const zVillageUserGroup: z.ZodObject<{
|
|
5072
5843
|
acceptance_mode: z.ZodEnum<{
|
|
5073
5844
|
open: "open";
|
|
@@ -5129,6 +5900,10 @@ export declare const zVillageUserGroupShare: z.ZodObject<{
|
|
|
5129
5900
|
}>;
|
|
5130
5901
|
}, z.core.$strip>;
|
|
5131
5902
|
export type VillageUserGroupShare = z.infer<typeof zVillageUserGroupShare>;
|
|
5903
|
+
export declare const zVillageUserSettings: z.ZodObject<{
|
|
5904
|
+
preview_before_attach: z.ZodBoolean;
|
|
5905
|
+
}, z.core.$strip>;
|
|
5906
|
+
export type VillageUserSettings = z.infer<typeof zVillageUserSettings>;
|
|
5132
5907
|
export declare const zVillageVisibleGroup: z.ZodObject<{
|
|
5133
5908
|
acceptance_mode: z.ZodEnum<{
|
|
5134
5909
|
open: "open";
|
|
@@ -5184,6 +5959,7 @@ export declare const zPublishNormalizedValues: z.ZodObject<{
|
|
|
5184
5959
|
codex: "codex";
|
|
5185
5960
|
opencode: "opencode";
|
|
5186
5961
|
antigravity: "antigravity";
|
|
5962
|
+
pi: "pi";
|
|
5187
5963
|
}>>;
|
|
5188
5964
|
rootHarness: z.ZodEnum<{
|
|
5189
5965
|
strike: "strike";
|
|
@@ -5193,6 +5969,7 @@ export declare const zPublishNormalizedValues: z.ZodObject<{
|
|
|
5193
5969
|
codex: "codex";
|
|
5194
5970
|
opencode: "opencode";
|
|
5195
5971
|
antigravity: "antigravity";
|
|
5972
|
+
pi: "pi";
|
|
5196
5973
|
}>;
|
|
5197
5974
|
schemaVersion: z.ZodString;
|
|
5198
5975
|
visibility: z.ZodEnum<{
|
|
@@ -5222,6 +5999,7 @@ export declare const zPublishAppliedState: z.ZodObject<{
|
|
|
5222
5999
|
codex: "codex";
|
|
5223
6000
|
opencode: "opencode";
|
|
5224
6001
|
antigravity: "antigravity";
|
|
6002
|
+
pi: "pi";
|
|
5225
6003
|
}>>;
|
|
5226
6004
|
rootHarness: z.ZodEnum<{
|
|
5227
6005
|
strike: "strike";
|
|
@@ -5231,6 +6009,7 @@ export declare const zPublishAppliedState: z.ZodObject<{
|
|
|
5231
6009
|
codex: "codex";
|
|
5232
6010
|
opencode: "opencode";
|
|
5233
6011
|
antigravity: "antigravity";
|
|
6012
|
+
pi: "pi";
|
|
5234
6013
|
}>;
|
|
5235
6014
|
schemaVersion: z.ZodString;
|
|
5236
6015
|
visibility: z.ZodEnum<{
|
|
@@ -5262,6 +6041,7 @@ export declare const zAuthoritativePublishResponse: z.ZodObject<{
|
|
|
5262
6041
|
codex: "codex";
|
|
5263
6042
|
opencode: "opencode";
|
|
5264
6043
|
antigravity: "antigravity";
|
|
6044
|
+
pi: "pi";
|
|
5265
6045
|
}>>;
|
|
5266
6046
|
rootHarness: z.ZodEnum<{
|
|
5267
6047
|
strike: "strike";
|
|
@@ -5271,6 +6051,7 @@ export declare const zAuthoritativePublishResponse: z.ZodObject<{
|
|
|
5271
6051
|
codex: "codex";
|
|
5272
6052
|
opencode: "opencode";
|
|
5273
6053
|
antigravity: "antigravity";
|
|
6054
|
+
pi: "pi";
|
|
5274
6055
|
}>;
|
|
5275
6056
|
schemaVersion: z.ZodString;
|
|
5276
6057
|
visibility: z.ZodEnum<{
|
|
@@ -5308,6 +6089,7 @@ export declare const zPullTranscriptInfo: z.ZodObject<{
|
|
|
5308
6089
|
codex: "codex";
|
|
5309
6090
|
opencode: "opencode";
|
|
5310
6091
|
antigravity: "antigravity";
|
|
6092
|
+
pi: "pi";
|
|
5311
6093
|
}>>;
|
|
5312
6094
|
license: z.ZodOptional<z.ZodEnum<{
|
|
5313
6095
|
"CC0-1.0": "CC0-1.0";
|
|
@@ -5345,6 +6127,7 @@ export declare const zPullListResponse: z.ZodObject<{
|
|
|
5345
6127
|
codex: "codex";
|
|
5346
6128
|
opencode: "opencode";
|
|
5347
6129
|
antigravity: "antigravity";
|
|
6130
|
+
pi: "pi";
|
|
5348
6131
|
}>>;
|
|
5349
6132
|
license: z.ZodOptional<z.ZodEnum<{
|
|
5350
6133
|
"CC0-1.0": "CC0-1.0";
|
|
@@ -5411,6 +6194,7 @@ export declare const zAuthoritativePublishRequest: z.ZodObject<{
|
|
|
5411
6194
|
codex: "codex";
|
|
5412
6195
|
opencode: "opencode";
|
|
5413
6196
|
antigravity: "antigravity";
|
|
6197
|
+
pi: "pi";
|
|
5414
6198
|
}>;
|
|
5415
6199
|
hasThinking: z.ZodBoolean;
|
|
5416
6200
|
hasToolUse: z.ZodBoolean;
|
|
@@ -5489,6 +6273,7 @@ export declare const zAuthoritativePublishRequest: z.ZodObject<{
|
|
|
5489
6273
|
codex: "codex";
|
|
5490
6274
|
opencode: "opencode";
|
|
5491
6275
|
antigravity: "antigravity";
|
|
6276
|
+
pi: "pi";
|
|
5492
6277
|
}>;
|
|
5493
6278
|
hostSlug: z.ZodOptional<z.ZodString>;
|
|
5494
6279
|
model: z.ZodString;
|