@peasant-labs/schema 0.24.0 → 0.26.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.
@@ -217,6 +217,109 @@ export declare const zAuthoritativeTimestampInfo: z.ZodObject<{
217
217
  start: z.ZodCoercedBigInt<unknown>;
218
218
  }, z.core.$strict>;
219
219
  export type AuthoritativeTimestampInfo = z.infer<typeof zAuthoritativeTimestampInfo>;
220
+ /**
221
+ * Auto Publish Event
222
+ *
223
+ * Git hook that publishes an auto-publish rule's sessions
224
+ */
225
+ export declare const zAutoPublishEvent: z.ZodEnum<{
226
+ "pre-push": "pre-push";
227
+ "post-commit": "post-commit";
228
+ }>;
229
+ export type AutoPublishEvent = z.infer<typeof zAutoPublishEvent>;
230
+ export declare const zAutoPublishHookRemedy: z.ZodObject<{
231
+ message: z.ZodString;
232
+ snippet: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strip>;
234
+ export type AutoPublishHookRemedy = z.infer<typeof zAutoPublishHookRemedy>;
235
+ /**
236
+ * Auto Publish Hook Status
237
+ *
238
+ * State of one repository's auto-publish hook for one event
239
+ */
240
+ export declare const zAutoPublishHookStatus: z.ZodEnum<{
241
+ failed: "failed";
242
+ blocked: "blocked";
243
+ installed: "installed";
244
+ absent: "absent";
245
+ }>;
246
+ export type AutoPublishHookStatus = z.infer<typeof zAutoPublishHookStatus>;
247
+ export declare const zAutoPublishHook: z.ZodObject<{
248
+ event: z.ZodEnum<{
249
+ "pre-push": "pre-push";
250
+ "post-commit": "post-commit";
251
+ }>;
252
+ remedy: z.ZodOptional<z.ZodObject<{
253
+ message: z.ZodString;
254
+ snippet: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>>;
256
+ status: z.ZodEnum<{
257
+ failed: "failed";
258
+ blocked: "blocked";
259
+ installed: "installed";
260
+ absent: "absent";
261
+ }>;
262
+ }, z.core.$strip>;
263
+ export type AutoPublishHook = z.infer<typeof zAutoPublishHook>;
264
+ export declare const zAutoPublishInstallRequest: z.ZodObject<{
265
+ path: z.ZodString;
266
+ }, z.core.$strict>;
267
+ export type AutoPublishInstallRequest = z.infer<typeof zAutoPublishInstallRequest>;
268
+ export declare const zAutoPublishRepository: z.ZodObject<{
269
+ hooks: z.ZodArray<z.ZodObject<{
270
+ event: z.ZodEnum<{
271
+ "pre-push": "pre-push";
272
+ "post-commit": "post-commit";
273
+ }>;
274
+ remedy: z.ZodOptional<z.ZodObject<{
275
+ message: z.ZodString;
276
+ snippet: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>>;
278
+ status: z.ZodEnum<{
279
+ failed: "failed";
280
+ blocked: "blocked";
281
+ installed: "installed";
282
+ absent: "absent";
283
+ }>;
284
+ }, z.core.$strip>>;
285
+ label: z.ZodOptional<z.ZodString>;
286
+ path: z.ZodString;
287
+ }, z.core.$strip>;
288
+ export type AutoPublishRepository = z.infer<typeof zAutoPublishRepository>;
289
+ export declare const zAutoPublishRemovalResponse: z.ZodObject<{
290
+ id: z.ZodString;
291
+ repositories: z.ZodArray<z.ZodObject<{
292
+ hooks: z.ZodArray<z.ZodObject<{
293
+ event: z.ZodEnum<{
294
+ "pre-push": "pre-push";
295
+ "post-commit": "post-commit";
296
+ }>;
297
+ remedy: z.ZodOptional<z.ZodObject<{
298
+ message: z.ZodString;
299
+ snippet: z.ZodOptional<z.ZodString>;
300
+ }, z.core.$strip>>;
301
+ status: z.ZodEnum<{
302
+ failed: "failed";
303
+ blocked: "blocked";
304
+ installed: "installed";
305
+ absent: "absent";
306
+ }>;
307
+ }, z.core.$strip>>;
308
+ label: z.ZodOptional<z.ZodString>;
309
+ path: z.ZodString;
310
+ }, z.core.$strip>>;
311
+ }, z.core.$strip>;
312
+ export type AutoPublishRemovalResponse = z.infer<typeof zAutoPublishRemovalResponse>;
313
+ /**
314
+ * Auto Publish Rule Kind
315
+ *
316
+ * What an auto-publish rule's match pattern names
317
+ */
318
+ export declare const zAutoPublishRuleKind: z.ZodEnum<{
319
+ folder: "folder";
320
+ remote: "remote";
321
+ }>;
322
+ export type AutoPublishRuleKind = z.infer<typeof zAutoPublishRuleKind>;
220
323
  export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
221
324
  error: z.ZodString;
222
325
  failingIndex: z.ZodInt;
@@ -808,6 +911,88 @@ export declare const zLicense: z.ZodEnum<{
808
911
  "CC-BY-SA-4.0": "CC-BY-SA-4.0";
809
912
  }>;
810
913
  export type License = z.infer<typeof zLicense>;
914
+ /**
915
+ * Local Collective Suggestion Reason
916
+ *
917
+ * Why the local server suggests a collective for a session
918
+ */
919
+ export declare const zLocalCollectiveSuggestionReason: z.ZodEnum<{
920
+ linked_repository: "linked_repository";
921
+ linked_github_org: "linked_github_org";
922
+ }>;
923
+ export type LocalCollectiveSuggestionReason = z.infer<typeof zLocalCollectiveSuggestionReason>;
924
+ export declare const zLocalCollectiveSuggestion: z.ZodObject<{
925
+ match: z.ZodString;
926
+ reason: z.ZodEnum<{
927
+ linked_repository: "linked_repository";
928
+ linked_github_org: "linked_github_org";
929
+ }>;
930
+ }, z.core.$strip>;
931
+ export type LocalCollectiveSuggestion = z.infer<typeof zLocalCollectiveSuggestion>;
932
+ export declare const zLocalPublicationAttemptFailure: z.ZodObject<{
933
+ attemptedAt: z.ZodISODateTime;
934
+ message: z.ZodString;
935
+ }, z.core.$strip>;
936
+ export type LocalPublicationAttemptFailure = z.infer<typeof zLocalPublicationAttemptFailure>;
937
+ /**
938
+ * Local Publication State
939
+ *
940
+ * Whether a local session has a publication on Village
941
+ */
942
+ export declare const zLocalPublicationState: z.ZodEnum<{
943
+ unpublished: "unpublished";
944
+ published: "published";
945
+ }>;
946
+ export type LocalPublicationState = z.infer<typeof zLocalPublicationState>;
947
+ /**
948
+ * Local Setting Kind
949
+ *
950
+ * JSON type of one local setting's value
951
+ */
952
+ export declare const zLocalSettingKind: z.ZodEnum<{
953
+ string: "string";
954
+ boolean: "boolean";
955
+ integer: "integer";
956
+ string_list: "string_list";
957
+ choice: "choice";
958
+ structured: "structured";
959
+ }>;
960
+ export type LocalSettingKind = z.infer<typeof zLocalSettingKind>;
961
+ export declare const zLocalSettingRefusal: z.ZodObject<{
962
+ error: z.ZodString;
963
+ key: z.ZodString;
964
+ }, z.core.$strip>;
965
+ export type LocalSettingRefusal = z.infer<typeof zLocalSettingRefusal>;
966
+ /**
967
+ * Local Setting Value
968
+ *
969
+ * One setting's value, of the JSON type its kind names; null means the key is unset and the server's default applies
970
+ */
971
+ export declare const zLocalSettingValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
972
+ export type LocalSettingValue = z.infer<typeof zLocalSettingValue>;
973
+ export declare const zLocalSetting: z.ZodObject<{
974
+ description: z.ZodOptional<z.ZodString>;
975
+ editable: z.ZodBoolean;
976
+ effective: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
977
+ inPeasantConfig: z.ZodBoolean;
978
+ key: z.ZodString;
979
+ kind: z.ZodEnum<{
980
+ string: "string";
981
+ boolean: "boolean";
982
+ integer: "integer";
983
+ string_list: "string_list";
984
+ choice: "choice";
985
+ structured: "structured";
986
+ }>;
987
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
988
+ value: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
989
+ }, z.core.$strip>;
990
+ export type LocalSetting = z.infer<typeof zLocalSetting>;
991
+ export declare const zLocalSettingUpdateRequest: z.ZodObject<{
992
+ key: z.ZodString;
993
+ value: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
994
+ }, z.core.$strict>;
995
+ export type LocalSettingUpdateRequest = z.infer<typeof zLocalSettingUpdateRequest>;
811
996
  export declare const zMapEdge: z.ZodObject<{
812
997
  count: z.ZodInt;
813
998
  from: z.ZodString;
@@ -992,56 +1177,6 @@ export declare const zAuthoritativeProjectContext: z.ZodObject<{
992
1177
  name: z.ZodString;
993
1178
  }, z.core.$strict>;
994
1179
  export type AuthoritativeProjectContext = z.infer<typeof zAuthoritativeProjectContext>;
995
- export declare const zLocalSyncSummary: z.ZodObject<{
996
- durationMs: z.ZodCoercedBigInt<unknown>;
997
- harness: z.ZodEnum<{
998
- strike: "strike";
999
- cursor: "cursor";
1000
- "claude-code": "claude-code";
1001
- "gemini-cli": "gemini-cli";
1002
- codex: "codex";
1003
- opencode: "opencode";
1004
- antigravity: "antigravity";
1005
- pi: "pi";
1006
- }>;
1007
- hostSlug: z.ZodString;
1008
- id: z.ZodString;
1009
- inputSubmissionCount: z.ZodOptional<z.ZodInt>;
1010
- model: z.ZodString;
1011
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1012
- projectName: z.ZodString;
1013
- startTime: z.ZodString;
1014
- syncStatus: z.ZodString;
1015
- totalTokens: z.ZodInt;
1016
- turnCount: z.ZodInt;
1017
- }, z.core.$strip>;
1018
- export type LocalSyncSummary = z.infer<typeof zLocalSyncSummary>;
1019
- export declare const zLocalSyncSessionsPayload: z.ZodObject<{
1020
- sessions: z.ZodArray<z.ZodObject<{
1021
- durationMs: z.ZodCoercedBigInt<unknown>;
1022
- harness: z.ZodEnum<{
1023
- strike: "strike";
1024
- cursor: "cursor";
1025
- "claude-code": "claude-code";
1026
- "gemini-cli": "gemini-cli";
1027
- codex: "codex";
1028
- opencode: "opencode";
1029
- antigravity: "antigravity";
1030
- pi: "pi";
1031
- }>;
1032
- hostSlug: z.ZodString;
1033
- id: z.ZodString;
1034
- inputSubmissionCount: z.ZodOptional<z.ZodInt>;
1035
- model: z.ZodString;
1036
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1037
- projectName: z.ZodString;
1038
- startTime: z.ZodString;
1039
- syncStatus: z.ZodString;
1040
- totalTokens: z.ZodInt;
1041
- turnCount: z.ZodInt;
1042
- }, z.core.$strip>>;
1043
- }, z.core.$strip>;
1044
- export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
1045
1180
  export declare const zProjectContext: z.ZodObject<{
1046
1181
  filePath: z.ZodOptional<z.ZodString>;
1047
1182
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -2099,60 +2234,445 @@ export declare const zSessionSummary: z.ZodObject<{
2099
2234
  }>;
2100
2235
  id: z.ZodString;
2101
2236
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2102
- outcome: z.ZodOptional<z.ZodString>;
2103
- parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2104
- preview: z.ZodOptional<z.ZodString>;
2105
- project: z.ZodOptional<z.ZodString>;
2106
- projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
2107
- purpose: z.ZodOptional<z.ZodEnum<{
2108
- unknown: "unknown";
2109
- interaction: "interaction";
2110
- delegated_work: "delegated_work";
2111
- helper_review: "helper_review";
2112
- }>>;
2113
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2114
- anchor: z.ZodOptional<z.ZodObject<{
2115
- kind: z.ZodEnum<{
2116
- general_source_session: "general_source_session";
2117
- before_redacted_entry: "before_redacted_entry";
2118
- through_redacted_entry: "through_redacted_entry";
2119
- }>;
2120
- sourceEntryRef: z.ZodOptional<z.ZodString>;
2121
- sourceRevisionRef: z.ZodOptional<z.ZodString>;
2122
- }, z.core.$strict>>;
2123
- evidence: z.ZodEnum<{
2124
- unknown: "unknown";
2125
- native_typed: "native_typed";
2126
- lifecycle_typed: "lifecycle_typed";
2127
- existing_adapter: "existing_adapter";
2128
- retained_last_good: "retained_last_good";
2129
- conflict: "conflict";
2130
- }>;
2131
- kind: z.ZodEnum<{
2132
- started_by: "started_by";
2133
- context_from: "context_from";
2134
- }>;
2135
- targetLocalId: z.ZodOptional<z.ZodString>;
2136
- targetState: z.ZodEnum<{
2137
- unknown: "unknown";
2138
- target_known: "target_known";
2139
- target_known_retained: "target_known_retained";
2140
- explicit_none: "explicit_none";
2141
- conflicting_current_native_evidence: "conflicting_current_native_evidence";
2142
- }>;
2143
- }, z.core.$strict>>>;
2144
- rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2145
- sessionOrigin: z.ZodOptional<z.ZodEnum<{
2146
- unknown: "unknown";
2147
- user: "user";
2148
- agent: "agent";
2149
- }>>;
2150
- startTime: z.ZodISODateTime;
2151
- toolCallCount: z.ZodInt;
2237
+ outcome: z.ZodOptional<z.ZodString>;
2238
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2239
+ preview: z.ZodOptional<z.ZodString>;
2240
+ project: z.ZodOptional<z.ZodString>;
2241
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
2242
+ purpose: z.ZodOptional<z.ZodEnum<{
2243
+ unknown: "unknown";
2244
+ interaction: "interaction";
2245
+ delegated_work: "delegated_work";
2246
+ helper_review: "helper_review";
2247
+ }>>;
2248
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2249
+ anchor: z.ZodOptional<z.ZodObject<{
2250
+ kind: z.ZodEnum<{
2251
+ general_source_session: "general_source_session";
2252
+ before_redacted_entry: "before_redacted_entry";
2253
+ through_redacted_entry: "through_redacted_entry";
2254
+ }>;
2255
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
2256
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
2257
+ }, z.core.$strict>>;
2258
+ evidence: z.ZodEnum<{
2259
+ unknown: "unknown";
2260
+ native_typed: "native_typed";
2261
+ lifecycle_typed: "lifecycle_typed";
2262
+ existing_adapter: "existing_adapter";
2263
+ retained_last_good: "retained_last_good";
2264
+ conflict: "conflict";
2265
+ }>;
2266
+ kind: z.ZodEnum<{
2267
+ started_by: "started_by";
2268
+ context_from: "context_from";
2269
+ }>;
2270
+ targetLocalId: z.ZodOptional<z.ZodString>;
2271
+ targetState: z.ZodEnum<{
2272
+ unknown: "unknown";
2273
+ target_known: "target_known";
2274
+ target_known_retained: "target_known_retained";
2275
+ explicit_none: "explicit_none";
2276
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
2277
+ }>;
2278
+ }, z.core.$strict>>>;
2279
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2280
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
2281
+ unknown: "unknown";
2282
+ user: "user";
2283
+ agent: "agent";
2284
+ }>>;
2285
+ startTime: z.ZodISODateTime;
2286
+ toolCallCount: z.ZodInt;
2287
+ totalTokens: z.ZodInt;
2288
+ turnCount: z.ZodInt;
2289
+ }, z.core.$strip>;
2290
+ export type SessionSummary = z.infer<typeof zSessionSummary>;
2291
+ export declare const zSessionsPayload: z.ZodObject<{
2292
+ sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
2293
+ durationMins: z.ZodNumber;
2294
+ harness: z.ZodEnum<{
2295
+ strike: "strike";
2296
+ cursor: "cursor";
2297
+ "claude-code": "claude-code";
2298
+ "gemini-cli": "gemini-cli";
2299
+ codex: "codex";
2300
+ opencode: "opencode";
2301
+ antigravity: "antigravity";
2302
+ pi: "pi";
2303
+ }>;
2304
+ id: z.ZodString;
2305
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2306
+ outcome: z.ZodOptional<z.ZodString>;
2307
+ parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2308
+ preview: z.ZodOptional<z.ZodString>;
2309
+ project: z.ZodOptional<z.ZodString>;
2310
+ projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
2311
+ purpose: z.ZodOptional<z.ZodEnum<{
2312
+ unknown: "unknown";
2313
+ interaction: "interaction";
2314
+ delegated_work: "delegated_work";
2315
+ helper_review: "helper_review";
2316
+ }>>;
2317
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2318
+ anchor: z.ZodOptional<z.ZodObject<{
2319
+ kind: z.ZodEnum<{
2320
+ general_source_session: "general_source_session";
2321
+ before_redacted_entry: "before_redacted_entry";
2322
+ through_redacted_entry: "through_redacted_entry";
2323
+ }>;
2324
+ sourceEntryRef: z.ZodOptional<z.ZodString>;
2325
+ sourceRevisionRef: z.ZodOptional<z.ZodString>;
2326
+ }, z.core.$strict>>;
2327
+ evidence: z.ZodEnum<{
2328
+ unknown: "unknown";
2329
+ native_typed: "native_typed";
2330
+ lifecycle_typed: "lifecycle_typed";
2331
+ existing_adapter: "existing_adapter";
2332
+ retained_last_good: "retained_last_good";
2333
+ conflict: "conflict";
2334
+ }>;
2335
+ kind: z.ZodEnum<{
2336
+ started_by: "started_by";
2337
+ context_from: "context_from";
2338
+ }>;
2339
+ targetLocalId: z.ZodOptional<z.ZodString>;
2340
+ targetState: z.ZodEnum<{
2341
+ unknown: "unknown";
2342
+ target_known: "target_known";
2343
+ target_known_retained: "target_known_retained";
2344
+ explicit_none: "explicit_none";
2345
+ conflicting_current_native_evidence: "conflicting_current_native_evidence";
2346
+ }>;
2347
+ }, z.core.$strict>>>;
2348
+ rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2349
+ sessionOrigin: z.ZodOptional<z.ZodEnum<{
2350
+ unknown: "unknown";
2351
+ user: "user";
2352
+ agent: "agent";
2353
+ }>>;
2354
+ startTime: z.ZodISODateTime;
2355
+ toolCallCount: z.ZodInt;
2356
+ totalTokens: z.ZodInt;
2357
+ turnCount: z.ZodInt;
2358
+ }, z.core.$strip>>>;
2359
+ }, z.core.$strip>;
2360
+ export type SessionsPayload = z.infer<typeof zSessionsPayload>;
2361
+ /**
2362
+ * Source Format
2363
+ *
2364
+ * Transcript file format
2365
+ */
2366
+ export declare const zSourceFormat: z.ZodEnum<{
2367
+ json: "json";
2368
+ jsonl: "jsonl";
2369
+ }>;
2370
+ export type SourceFormat = z.infer<typeof zSourceFormat>;
2371
+ export declare const zAuthoritativeSourceInfo: z.ZodObject<{
2372
+ filePath: z.ZodOptional<z.ZodString>;
2373
+ format: z.ZodEnum<{
2374
+ json: "json";
2375
+ jsonl: "jsonl";
2376
+ }>;
2377
+ }, z.core.$strict>;
2378
+ export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
2379
+ export declare const zSourceInfo: z.ZodObject<{
2380
+ filePath: z.ZodOptional<z.ZodString>;
2381
+ format: z.ZodEnum<{
2382
+ json: "json";
2383
+ jsonl: "jsonl";
2384
+ }>;
2385
+ }, z.core.$strip>;
2386
+ export type SourceInfo = z.infer<typeof zSourceInfo>;
2387
+ /**
2388
+ * Stop Reason
2389
+ *
2390
+ * Reason why a session or turn ended (ACP-aligned)
2391
+ */
2392
+ export declare const zStopReason: z.ZodEnum<{
2393
+ end_turn: "end_turn";
2394
+ cancelled: "cancelled";
2395
+ max_tokens: "max_tokens";
2396
+ max_turn_requests: "max_turn_requests";
2397
+ refusal: "refusal";
2398
+ }>;
2399
+ export type StopReason = z.infer<typeof zStopReason>;
2400
+ export declare const zSubagentRef: z.ZodObject<{
2401
+ parentUuid: z.ZodString;
2402
+ sessionId: z.ZodString;
2403
+ }, z.core.$strip>;
2404
+ export type SubagentRef = z.infer<typeof zSubagentRef>;
2405
+ /**
2406
+ * Submission Reference
2407
+ */
2408
+ export declare const zSubmissionRef: z.ZodString;
2409
+ export type SubmissionRef = z.infer<typeof zSubmissionRef>;
2410
+ export declare const zContentProvenance: z.ZodObject<{
2411
+ actor: z.ZodEnum<{
2412
+ unknown: "unknown";
2413
+ operator: "operator";
2414
+ agent_delegate: "agent_delegate";
2415
+ harness: "harness";
2416
+ }>;
2417
+ delivery: z.ZodEnum<{
2418
+ unknown: "unknown";
2419
+ session_admission: "session_admission";
2420
+ guardian_review: "guardian_review";
2421
+ subagent_delivery: "subagent_delivery";
2422
+ inherited_context: "inherited_context";
2423
+ tool_delivery: "tool_delivery";
2424
+ system_lifecycle: "system_lifecycle";
2425
+ }>;
2426
+ evidence: z.ZodEnum<{
2427
+ unknown: "unknown";
2428
+ native_typed: "native_typed";
2429
+ lifecycle_typed: "lifecycle_typed";
2430
+ existing_adapter: "existing_adapter";
2431
+ retained_last_good: "retained_last_good";
2432
+ conflict: "conflict";
2433
+ }>;
2434
+ inputModality: z.ZodEnum<{
2435
+ none: "none";
2436
+ media: "media";
2437
+ unknown: "unknown";
2438
+ text: "text";
2439
+ user_action: "user_action";
2440
+ mixed: "mixed";
2441
+ }>;
2442
+ origin: z.ZodEnum<{
2443
+ unknown: "unknown";
2444
+ submitted_input: "submitted_input";
2445
+ harness_context: "harness_context";
2446
+ agent_output: "agent_output";
2447
+ agent_communication: "agent_communication";
2448
+ tool_activity: "tool_activity";
2449
+ system_control: "system_control";
2450
+ generated_summary: "generated_summary";
2451
+ }>;
2452
+ ownership: z.ZodEnum<{
2453
+ local: "local";
2454
+ inherited: "inherited";
2455
+ uncertain: "uncertain";
2456
+ }>;
2457
+ submissionRef: z.ZodOptional<z.ZodString>;
2458
+ }, z.core.$strict>;
2459
+ export type ContentProvenance = z.infer<typeof zContentProvenance>;
2460
+ export declare const zSyncAuthResponse: z.ZodObject<{
2461
+ authenticated: z.ZodBoolean;
2462
+ username: z.ZodOptional<z.ZodString>;
2463
+ villageConfigured: z.ZodOptional<z.ZodBoolean>;
2464
+ villageUrl: z.ZodOptional<z.ZodString>;
2465
+ }, z.core.$strip>;
2466
+ export type SyncAuthResponse = z.infer<typeof zSyncAuthResponse>;
2467
+ /**
2468
+ * Sync Hold Reason
2469
+ *
2470
+ * Why a held local session cannot be published yet
2471
+ */
2472
+ export declare const zSyncHoldReason: z.ZodEnum<{
2473
+ metrics_missing: "metrics_missing";
2474
+ metadata_missing: "metadata_missing";
2475
+ }>;
2476
+ export type SyncHoldReason = z.infer<typeof zSyncHoldReason>;
2477
+ /**
2478
+ * Sync Login Status
2479
+ *
2480
+ * Result of starting the Village sign-in from the local server
2481
+ */
2482
+ export declare const zSyncLoginStatus: z.ZodEnum<{
2483
+ pending: "pending";
2484
+ already_authenticated: "already_authenticated";
2485
+ }>;
2486
+ export type SyncLoginStatus = z.infer<typeof zSyncLoginStatus>;
2487
+ export declare const zSyncLoginResponse: z.ZodObject<{
2488
+ status: z.ZodEnum<{
2489
+ pending: "pending";
2490
+ already_authenticated: "already_authenticated";
2491
+ }>;
2492
+ }, z.core.$strip>;
2493
+ export type SyncLoginResponse = z.infer<typeof zSyncLoginResponse>;
2494
+ /**
2495
+ * Sync Logout Status
2496
+ *
2497
+ * Result of ending this computer's Village sign-in
2498
+ */
2499
+ export declare const zSyncLogoutStatus: z.ZodEnum<{
2500
+ logged_out: "logged_out";
2501
+ already_logged_out: "already_logged_out";
2502
+ }>;
2503
+ export type SyncLogoutStatus = z.infer<typeof zSyncLogoutStatus>;
2504
+ export declare const zSyncLogoutResponse: z.ZodObject<{
2505
+ status: z.ZodEnum<{
2506
+ logged_out: "logged_out";
2507
+ already_logged_out: "already_logged_out";
2508
+ }>;
2509
+ }, z.core.$strip>;
2510
+ export type SyncLogoutResponse = z.infer<typeof zSyncLogoutResponse>;
2511
+ /**
2512
+ * Sync Push Session Status
2513
+ *
2514
+ * Outcome of one session in a push
2515
+ */
2516
+ export declare const zSyncPushSessionStatus: z.ZodEnum<{
2517
+ skipped: "skipped";
2518
+ error: "error";
2519
+ new: "new";
2520
+ updated: "updated";
2521
+ held: "held";
2522
+ }>;
2523
+ export type SyncPushSessionStatus = z.infer<typeof zSyncPushSessionStatus>;
2524
+ /**
2525
+ * Sync Push Step
2526
+ *
2527
+ * One step a push runs for a session
2528
+ */
2529
+ export declare const zSyncPushStep: z.ZodEnum<{
2530
+ content: "content";
2531
+ add_collective: "add_collective";
2532
+ remove_collective: "remove_collective";
2533
+ }>;
2534
+ export type SyncPushStep = z.infer<typeof zSyncPushStep>;
2535
+ /**
2536
+ * Sync Push Step Outcome
2537
+ *
2538
+ * Result of one push step
2539
+ */
2540
+ export declare const zSyncPushStepOutcome: z.ZodEnum<{
2541
+ skipped: "skipped";
2542
+ failed: "failed";
2543
+ succeeded: "succeeded";
2544
+ pending_approval: "pending_approval";
2545
+ not_attempted: "not_attempted";
2546
+ }>;
2547
+ export type SyncPushStepOutcome = z.infer<typeof zSyncPushStepOutcome>;
2548
+ export declare const zSyncRedactionItem: z.ZodObject<{
2549
+ category: z.ZodString;
2550
+ contextAfter: z.ZodArray<z.ZodString>;
2551
+ contextBefore: z.ZodArray<z.ZodString>;
2552
+ description: z.ZodString;
2553
+ entryIndex: z.ZodOptional<z.ZodInt>;
2554
+ lineNumber: z.ZodInt;
2555
+ originalText: z.ZodString;
2556
+ redactedReplacement: z.ZodString;
2557
+ ruleDisplayName: z.ZodString;
2558
+ ruleId: z.ZodString;
2559
+ toolCallId: z.ZodOptional<z.ZodString>;
2560
+ }, z.core.$strip>;
2561
+ export type SyncRedactionItem = z.infer<typeof zSyncRedactionItem>;
2562
+ export declare const zSyncRedactionRuleGroup: z.ZodObject<{
2563
+ count: z.ZodInt;
2564
+ displayName: z.ZodString;
2565
+ items: z.ZodArray<z.ZodObject<{
2566
+ category: z.ZodString;
2567
+ contextAfter: z.ZodArray<z.ZodString>;
2568
+ contextBefore: z.ZodArray<z.ZodString>;
2569
+ description: z.ZodString;
2570
+ entryIndex: z.ZodOptional<z.ZodInt>;
2571
+ lineNumber: z.ZodInt;
2572
+ originalText: z.ZodString;
2573
+ redactedReplacement: z.ZodString;
2574
+ ruleDisplayName: z.ZodString;
2575
+ ruleId: z.ZodString;
2576
+ toolCallId: z.ZodOptional<z.ZodString>;
2577
+ }, z.core.$strip>>;
2578
+ ruleId: z.ZodString;
2579
+ }, z.core.$strip>;
2580
+ export type SyncRedactionRuleGroup = z.infer<typeof zSyncRedactionRuleGroup>;
2581
+ export declare const zSyncRedactionCategoryGroup: z.ZodObject<{
2582
+ category: z.ZodString;
2583
+ rules: z.ZodArray<z.ZodObject<{
2584
+ count: z.ZodInt;
2585
+ displayName: z.ZodString;
2586
+ items: z.ZodArray<z.ZodObject<{
2587
+ category: z.ZodString;
2588
+ contextAfter: z.ZodArray<z.ZodString>;
2589
+ contextBefore: z.ZodArray<z.ZodString>;
2590
+ description: z.ZodString;
2591
+ entryIndex: z.ZodOptional<z.ZodInt>;
2592
+ lineNumber: z.ZodInt;
2593
+ originalText: z.ZodString;
2594
+ redactedReplacement: z.ZodString;
2595
+ ruleDisplayName: z.ZodString;
2596
+ ruleId: z.ZodString;
2597
+ toolCallId: z.ZodOptional<z.ZodString>;
2598
+ }, z.core.$strip>>;
2599
+ ruleId: z.ZodString;
2600
+ }, z.core.$strip>>;
2601
+ totalCount: z.ZodInt;
2602
+ }, z.core.$strip>;
2603
+ export type SyncRedactionCategoryGroup = z.infer<typeof zSyncRedactionCategoryGroup>;
2604
+ export declare const zSyncRedactionsResponse: z.ZodObject<{
2605
+ categories: z.ZodArray<z.ZodObject<{
2606
+ category: z.ZodString;
2607
+ rules: z.ZodArray<z.ZodObject<{
2608
+ count: z.ZodInt;
2609
+ displayName: z.ZodString;
2610
+ items: z.ZodArray<z.ZodObject<{
2611
+ category: z.ZodString;
2612
+ contextAfter: z.ZodArray<z.ZodString>;
2613
+ contextBefore: z.ZodArray<z.ZodString>;
2614
+ description: z.ZodString;
2615
+ entryIndex: z.ZodOptional<z.ZodInt>;
2616
+ lineNumber: z.ZodInt;
2617
+ originalText: z.ZodString;
2618
+ redactedReplacement: z.ZodString;
2619
+ ruleDisplayName: z.ZodString;
2620
+ ruleId: z.ZodString;
2621
+ toolCallId: z.ZodOptional<z.ZodString>;
2622
+ }, z.core.$strip>>;
2623
+ ruleId: z.ZodString;
2624
+ }, z.core.$strip>>;
2625
+ totalCount: z.ZodInt;
2626
+ }, z.core.$strip>>;
2627
+ total: z.ZodInt;
2628
+ }, z.core.$strip>;
2629
+ export type SyncRedactionsResponse = z.infer<typeof zSyncRedactionsResponse>;
2630
+ /**
2631
+ * Sync Status
2632
+ *
2633
+ * Publication status of one listed local session; held rows always carry a hold reason
2634
+ */
2635
+ export declare const zSyncStatus: z.ZodEnum<{
2636
+ new: "new";
2637
+ updated: "updated";
2638
+ held: "held";
2639
+ synced: "synced";
2640
+ }>;
2641
+ export type SyncStatus = z.infer<typeof zSyncStatus>;
2642
+ export declare const zLocalSyncSummary: z.ZodObject<{
2643
+ durationMs: z.ZodCoercedBigInt<unknown>;
2644
+ harness: z.ZodEnum<{
2645
+ strike: "strike";
2646
+ cursor: "cursor";
2647
+ "claude-code": "claude-code";
2648
+ "gemini-cli": "gemini-cli";
2649
+ codex: "codex";
2650
+ opencode: "opencode";
2651
+ antigravity: "antigravity";
2652
+ pi: "pi";
2653
+ }>;
2654
+ holdReason: z.ZodOptional<z.ZodEnum<{
2655
+ metrics_missing: "metrics_missing";
2656
+ metadata_missing: "metadata_missing";
2657
+ }>>;
2658
+ hostSlug: z.ZodString;
2659
+ id: z.ZodString;
2660
+ inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2661
+ model: z.ZodString;
2662
+ previouslyPushed: z.ZodBoolean;
2663
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2664
+ projectName: z.ZodString;
2665
+ startTime: z.ZodString;
2666
+ syncStatus: z.ZodEnum<{
2667
+ new: "new";
2668
+ updated: "updated";
2669
+ held: "held";
2670
+ synced: "synced";
2671
+ }>;
2152
2672
  totalTokens: z.ZodInt;
2153
2673
  turnCount: z.ZodInt;
2154
2674
  }, z.core.$strip>;
2155
- export type SessionSummary = z.infer<typeof zSessionSummary>;
2675
+ export type LocalSyncSummary = z.infer<typeof zLocalSyncSummary>;
2156
2676
  export declare const zLocalSessionRow: z.ZodObject<{
2157
2677
  matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
2158
2678
  entryIndex: z.ZodInt;
@@ -2242,14 +2762,24 @@ export declare const zLocalSessionRow: z.ZodObject<{
2242
2762
  antigravity: "antigravity";
2243
2763
  pi: "pi";
2244
2764
  }>;
2765
+ holdReason: z.ZodOptional<z.ZodEnum<{
2766
+ metrics_missing: "metrics_missing";
2767
+ metadata_missing: "metadata_missing";
2768
+ }>>;
2245
2769
  hostSlug: z.ZodString;
2246
2770
  id: z.ZodString;
2247
2771
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2248
2772
  model: z.ZodString;
2773
+ previouslyPushed: z.ZodBoolean;
2249
2774
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2250
2775
  projectName: z.ZodString;
2251
2776
  startTime: z.ZodString;
2252
- syncStatus: z.ZodString;
2777
+ syncStatus: z.ZodEnum<{
2778
+ new: "new";
2779
+ updated: "updated";
2780
+ held: "held";
2781
+ synced: "synced";
2782
+ }>;
2253
2783
  totalTokens: z.ZodInt;
2254
2784
  turnCount: z.ZodInt;
2255
2785
  }, z.core.$strip>>>;
@@ -2371,14 +2901,24 @@ export declare const zLocalSessionListItem: z.ZodObject<{
2371
2901
  antigravity: "antigravity";
2372
2902
  pi: "pi";
2373
2903
  }>;
2904
+ holdReason: z.ZodOptional<z.ZodEnum<{
2905
+ metrics_missing: "metrics_missing";
2906
+ metadata_missing: "metadata_missing";
2907
+ }>>;
2374
2908
  hostSlug: z.ZodString;
2375
2909
  id: z.ZodString;
2376
2910
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2377
2911
  model: z.ZodString;
2912
+ previouslyPushed: z.ZodBoolean;
2378
2913
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2379
2914
  projectName: z.ZodString;
2380
2915
  startTime: z.ZodString;
2381
- syncStatus: z.ZodString;
2916
+ syncStatus: z.ZodEnum<{
2917
+ new: "new";
2918
+ updated: "updated";
2919
+ held: "held";
2920
+ synced: "synced";
2921
+ }>;
2382
2922
  totalTokens: z.ZodInt;
2383
2923
  turnCount: z.ZodInt;
2384
2924
  }, z.core.$strip>>>;
@@ -2503,14 +3043,24 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
2503
3043
  antigravity: "antigravity";
2504
3044
  pi: "pi";
2505
3045
  }>;
3046
+ holdReason: z.ZodOptional<z.ZodEnum<{
3047
+ metrics_missing: "metrics_missing";
3048
+ metadata_missing: "metadata_missing";
3049
+ }>>;
2506
3050
  hostSlug: z.ZodString;
2507
3051
  id: z.ZodString;
2508
3052
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2509
3053
  model: z.ZodString;
3054
+ previouslyPushed: z.ZodBoolean;
2510
3055
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2511
3056
  projectName: z.ZodString;
2512
3057
  startTime: z.ZodString;
2513
- syncStatus: z.ZodString;
3058
+ syncStatus: z.ZodEnum<{
3059
+ new: "new";
3060
+ updated: "updated";
3061
+ held: "held";
3062
+ synced: "synced";
3063
+ }>;
2514
3064
  totalTokens: z.ZodInt;
2515
3065
  turnCount: z.ZodInt;
2516
3066
  }, z.core.$strip>>>;
@@ -2609,14 +3159,24 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
2609
3159
  antigravity: "antigravity";
2610
3160
  pi: "pi";
2611
3161
  }>;
3162
+ holdReason: z.ZodOptional<z.ZodEnum<{
3163
+ metrics_missing: "metrics_missing";
3164
+ metadata_missing: "metadata_missing";
3165
+ }>>;
2612
3166
  hostSlug: z.ZodString;
2613
3167
  id: z.ZodString;
2614
3168
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2615
3169
  model: z.ZodString;
3170
+ previouslyPushed: z.ZodBoolean;
2616
3171
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2617
3172
  projectName: z.ZodString;
2618
3173
  startTime: z.ZodString;
2619
- syncStatus: z.ZodString;
3174
+ syncStatus: z.ZodEnum<{
3175
+ new: "new";
3176
+ updated: "updated";
3177
+ held: "held";
3178
+ synced: "synced";
3179
+ }>;
2620
3180
  totalTokens: z.ZodInt;
2621
3181
  turnCount: z.ZodInt;
2622
3182
  }, z.core.$strip>>>;
@@ -2744,14 +3304,24 @@ export declare const zLocalSessionListPayload: z.ZodObject<{
2744
3304
  antigravity: "antigravity";
2745
3305
  pi: "pi";
2746
3306
  }>;
3307
+ holdReason: z.ZodOptional<z.ZodEnum<{
3308
+ metrics_missing: "metrics_missing";
3309
+ metadata_missing: "metadata_missing";
3310
+ }>>;
2747
3311
  hostSlug: z.ZodString;
2748
3312
  id: z.ZodString;
2749
3313
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2750
3314
  model: z.ZodString;
3315
+ previouslyPushed: z.ZodBoolean;
2751
3316
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2752
3317
  projectName: z.ZodString;
2753
3318
  startTime: z.ZodString;
2754
- syncStatus: z.ZodString;
3319
+ syncStatus: z.ZodEnum<{
3320
+ new: "new";
3321
+ updated: "updated";
3322
+ held: "held";
3323
+ synced: "synced";
3324
+ }>;
2755
3325
  totalTokens: z.ZodInt;
2756
3326
  turnCount: z.ZodInt;
2757
3327
  }, z.core.$strip>>>;
@@ -2763,9 +3333,9 @@ export declare const zLocalSessionListPayload: z.ZodObject<{
2763
3333
  totalItems: z.ZodInt;
2764
3334
  }, z.core.$strip>;
2765
3335
  export type LocalSessionListPayload = z.infer<typeof zLocalSessionListPayload>;
2766
- export declare const zSessionsPayload: z.ZodObject<{
2767
- sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
2768
- durationMins: z.ZodNumber;
3336
+ export declare const zLocalSyncSessionsPayload: z.ZodObject<{
3337
+ sessions: z.ZodArray<z.ZodObject<{
3338
+ durationMs: z.ZodCoercedBigInt<unknown>;
2769
3339
  harness: z.ZodEnum<{
2770
3340
  strike: "strike";
2771
3341
  cursor: "cursor";
@@ -2776,162 +3346,29 @@ export declare const zSessionsPayload: z.ZodObject<{
2776
3346
  antigravity: "antigravity";
2777
3347
  pi: "pi";
2778
3348
  }>;
3349
+ holdReason: z.ZodOptional<z.ZodEnum<{
3350
+ metrics_missing: "metrics_missing";
3351
+ metadata_missing: "metadata_missing";
3352
+ }>>;
3353
+ hostSlug: z.ZodString;
2779
3354
  id: z.ZodString;
2780
3355
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2781
- outcome: z.ZodOptional<z.ZodString>;
2782
- parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2783
- preview: z.ZodOptional<z.ZodString>;
2784
- project: z.ZodOptional<z.ZodString>;
2785
- projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
2786
- purpose: z.ZodOptional<z.ZodEnum<{
2787
- unknown: "unknown";
2788
- interaction: "interaction";
2789
- delegated_work: "delegated_work";
2790
- helper_review: "helper_review";
2791
- }>>;
2792
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2793
- anchor: z.ZodOptional<z.ZodObject<{
2794
- kind: z.ZodEnum<{
2795
- general_source_session: "general_source_session";
2796
- before_redacted_entry: "before_redacted_entry";
2797
- through_redacted_entry: "through_redacted_entry";
2798
- }>;
2799
- sourceEntryRef: z.ZodOptional<z.ZodString>;
2800
- sourceRevisionRef: z.ZodOptional<z.ZodString>;
2801
- }, z.core.$strict>>;
2802
- evidence: z.ZodEnum<{
2803
- unknown: "unknown";
2804
- native_typed: "native_typed";
2805
- lifecycle_typed: "lifecycle_typed";
2806
- existing_adapter: "existing_adapter";
2807
- retained_last_good: "retained_last_good";
2808
- conflict: "conflict";
2809
- }>;
2810
- kind: z.ZodEnum<{
2811
- started_by: "started_by";
2812
- context_from: "context_from";
2813
- }>;
2814
- targetLocalId: z.ZodOptional<z.ZodString>;
2815
- targetState: z.ZodEnum<{
2816
- unknown: "unknown";
2817
- target_known: "target_known";
2818
- target_known_retained: "target_known_retained";
2819
- explicit_none: "explicit_none";
2820
- conflicting_current_native_evidence: "conflicting_current_native_evidence";
2821
- }>;
2822
- }, z.core.$strict>>>;
2823
- rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2824
- sessionOrigin: z.ZodOptional<z.ZodEnum<{
2825
- unknown: "unknown";
2826
- user: "user";
2827
- agent: "agent";
2828
- }>>;
2829
- startTime: z.ZodISODateTime;
2830
- toolCallCount: z.ZodInt;
3356
+ model: z.ZodString;
3357
+ previouslyPushed: z.ZodBoolean;
3358
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
3359
+ projectName: z.ZodString;
3360
+ startTime: z.ZodString;
3361
+ syncStatus: z.ZodEnum<{
3362
+ new: "new";
3363
+ updated: "updated";
3364
+ held: "held";
3365
+ synced: "synced";
3366
+ }>;
2831
3367
  totalTokens: z.ZodInt;
2832
3368
  turnCount: z.ZodInt;
2833
- }, z.core.$strip>>>;
2834
- }, z.core.$strip>;
2835
- export type SessionsPayload = z.infer<typeof zSessionsPayload>;
2836
- /**
2837
- * Source Format
2838
- *
2839
- * Transcript file format
2840
- */
2841
- export declare const zSourceFormat: z.ZodEnum<{
2842
- json: "json";
2843
- jsonl: "jsonl";
2844
- }>;
2845
- export type SourceFormat = z.infer<typeof zSourceFormat>;
2846
- export declare const zAuthoritativeSourceInfo: z.ZodObject<{
2847
- filePath: z.ZodOptional<z.ZodString>;
2848
- format: z.ZodEnum<{
2849
- json: "json";
2850
- jsonl: "jsonl";
2851
- }>;
2852
- }, z.core.$strict>;
2853
- export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
2854
- export declare const zSourceInfo: z.ZodObject<{
2855
- filePath: z.ZodOptional<z.ZodString>;
2856
- format: z.ZodEnum<{
2857
- json: "json";
2858
- jsonl: "jsonl";
2859
- }>;
2860
- }, z.core.$strip>;
2861
- export type SourceInfo = z.infer<typeof zSourceInfo>;
2862
- /**
2863
- * Stop Reason
2864
- *
2865
- * Reason why a session or turn ended (ACP-aligned)
2866
- */
2867
- export declare const zStopReason: z.ZodEnum<{
2868
- end_turn: "end_turn";
2869
- cancelled: "cancelled";
2870
- max_tokens: "max_tokens";
2871
- max_turn_requests: "max_turn_requests";
2872
- refusal: "refusal";
2873
- }>;
2874
- export type StopReason = z.infer<typeof zStopReason>;
2875
- export declare const zSubagentRef: z.ZodObject<{
2876
- parentUuid: z.ZodString;
2877
- sessionId: z.ZodString;
3369
+ }, z.core.$strip>>;
2878
3370
  }, z.core.$strip>;
2879
- export type SubagentRef = z.infer<typeof zSubagentRef>;
2880
- /**
2881
- * Submission Reference
2882
- */
2883
- export declare const zSubmissionRef: z.ZodString;
2884
- export type SubmissionRef = z.infer<typeof zSubmissionRef>;
2885
- export declare const zContentProvenance: z.ZodObject<{
2886
- actor: z.ZodEnum<{
2887
- unknown: "unknown";
2888
- operator: "operator";
2889
- agent_delegate: "agent_delegate";
2890
- harness: "harness";
2891
- }>;
2892
- delivery: z.ZodEnum<{
2893
- unknown: "unknown";
2894
- session_admission: "session_admission";
2895
- guardian_review: "guardian_review";
2896
- subagent_delivery: "subagent_delivery";
2897
- inherited_context: "inherited_context";
2898
- tool_delivery: "tool_delivery";
2899
- system_lifecycle: "system_lifecycle";
2900
- }>;
2901
- evidence: z.ZodEnum<{
2902
- unknown: "unknown";
2903
- native_typed: "native_typed";
2904
- lifecycle_typed: "lifecycle_typed";
2905
- existing_adapter: "existing_adapter";
2906
- retained_last_good: "retained_last_good";
2907
- conflict: "conflict";
2908
- }>;
2909
- inputModality: z.ZodEnum<{
2910
- none: "none";
2911
- media: "media";
2912
- unknown: "unknown";
2913
- text: "text";
2914
- user_action: "user_action";
2915
- mixed: "mixed";
2916
- }>;
2917
- origin: z.ZodEnum<{
2918
- unknown: "unknown";
2919
- submitted_input: "submitted_input";
2920
- harness_context: "harness_context";
2921
- agent_output: "agent_output";
2922
- agent_communication: "agent_communication";
2923
- tool_activity: "tool_activity";
2924
- system_control: "system_control";
2925
- generated_summary: "generated_summary";
2926
- }>;
2927
- ownership: z.ZodEnum<{
2928
- local: "local";
2929
- inherited: "inherited";
2930
- uncertain: "uncertain";
2931
- }>;
2932
- submissionRef: z.ZodOptional<z.ZodString>;
2933
- }, z.core.$strict>;
2934
- export type ContentProvenance = z.infer<typeof zContentProvenance>;
3371
+ export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
2935
3372
  /**
2936
3373
  * Target Kind
2937
3374
  *
@@ -8511,6 +8948,7 @@ export declare const zVillageAvailableRepository: z.ZodObject<{
8511
8948
  is_private: z.ZodBoolean;
8512
8949
  name: z.ZodString;
8513
8950
  owner: z.ZodString;
8951
+ publisher_count: z.ZodInt;
8514
8952
  }, z.core.$strip>;
8515
8953
  export type VillageAvailableRepository = z.infer<typeof zVillageAvailableRepository>;
8516
8954
  export declare const zVillageAvailableRepositoriesResponse: z.ZodObject<{
@@ -8518,6 +8956,7 @@ export declare const zVillageAvailableRepositoriesResponse: z.ZodObject<{
8518
8956
  is_private: z.ZodBoolean;
8519
8957
  name: z.ZodString;
8520
8958
  owner: z.ZodString;
8959
+ publisher_count: z.ZodInt;
8521
8960
  }, z.core.$strip>>;
8522
8961
  }, z.core.$strip>;
8523
8962
  export type VillageAvailableRepositoriesResponse = z.infer<typeof zVillageAvailableRepositoriesResponse>;
@@ -8607,7 +9046,7 @@ export declare const zVillageCreateGroupRequest: z.ZodObject<{
8607
9046
  contributors: "contributors";
8608
9047
  }>>;
8609
9048
  description: z.ZodOptional<z.ZodString>;
8610
- linked_github_org: z.ZodOptional<z.ZodString>;
9049
+ linked_github_org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8611
9050
  name: z.ZodString;
8612
9051
  }, z.core.$strip>;
8613
9052
  export type VillageCreateGroupRequest = z.infer<typeof zVillageCreateGroupRequest>;
@@ -8651,6 +9090,7 @@ export declare const zVillageGroupStatusRoleResponse: z.ZodObject<{
8651
9090
  export type VillageGroupStatusRoleResponse = z.infer<typeof zVillageGroupStatusRoleResponse>;
8652
9091
  export declare const zVillageGroupTranscriptStats: z.ZodObject<{
8653
9092
  contributor_count: z.ZodInt;
9093
+ pull_request_count: z.ZodInt;
8654
9094
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
8655
9095
  total_tokens: z.ZodCoercedBigInt<unknown>;
8656
9096
  total_transcripts: z.ZodInt;
@@ -8760,7 +9200,22 @@ export declare const zVillagePromptRequestsResponse: z.ZodObject<{
8760
9200
  }>;
8761
9201
  }, z.core.$strip>>;
8762
9202
  }, z.core.$strip>;
8763
- export type VillagePromptRequestsResponse = z.infer<typeof zVillagePromptRequestsResponse>;
9203
+ export type VillagePromptRequestsResponse = z.infer<typeof zVillagePromptRequestsResponse>;
9204
+ export declare const zVillagePullRequestRef: z.ZodObject<{
9205
+ name: z.ZodString;
9206
+ number: z.ZodInt;
9207
+ owner: z.ZodString;
9208
+ }, z.core.$strip>;
9209
+ export type VillagePullRequestRef = z.infer<typeof zVillagePullRequestRef>;
9210
+ export declare const zVillagePullRequestsSummary: z.ZodObject<{
9211
+ count: z.ZodInt;
9212
+ recent: z.ZodArray<z.ZodObject<{
9213
+ name: z.ZodString;
9214
+ number: z.ZodInt;
9215
+ owner: z.ZodString;
9216
+ }, z.core.$strip>>;
9217
+ }, z.core.$strip>;
9218
+ export type VillagePullRequestsSummary = z.infer<typeof zVillagePullRequestsSummary>;
8764
9219
  export declare const zVillageRemoveGroupMemberResponse: z.ZodObject<{
8765
9220
  retracted: z.ZodBoolean;
8766
9221
  status: z.ZodString;
@@ -8881,6 +9336,38 @@ export declare const zVillageTranscriptDeletionPolicy: z.ZodEnum<{
8881
9336
  mandatory: "mandatory";
8882
9337
  }>;
8883
9338
  export type VillageTranscriptDeletionPolicy = z.infer<typeof zVillageTranscriptDeletionPolicy>;
9339
+ export declare const zVillageTranscriptPullRequest: z.ZodObject<{
9340
+ head_ref: z.ZodNullable<z.ZodString>;
9341
+ name: z.ZodString;
9342
+ number: z.ZodInt;
9343
+ owner: z.ZodString;
9344
+ state: z.ZodEnum<{
9345
+ waiting: "waiting";
9346
+ preview: "preview";
9347
+ requested: "requested";
9348
+ attached: "attached";
9349
+ detached: "detached";
9350
+ }>;
9351
+ title: z.ZodNullable<z.ZodString>;
9352
+ }, z.core.$strip>;
9353
+ export type VillageTranscriptPullRequest = z.infer<typeof zVillageTranscriptPullRequest>;
9354
+ export declare const zVillageTranscriptPullRequestsResponse: z.ZodObject<{
9355
+ pull_requests: z.ZodArray<z.ZodObject<{
9356
+ head_ref: z.ZodNullable<z.ZodString>;
9357
+ name: z.ZodString;
9358
+ number: z.ZodInt;
9359
+ owner: z.ZodString;
9360
+ state: z.ZodEnum<{
9361
+ waiting: "waiting";
9362
+ preview: "preview";
9363
+ requested: "requested";
9364
+ attached: "attached";
9365
+ detached: "detached";
9366
+ }>;
9367
+ title: z.ZodNullable<z.ZodString>;
9368
+ }, z.core.$strip>>;
9369
+ }, z.core.$strip>;
9370
+ export type VillageTranscriptPullRequestsResponse = z.infer<typeof zVillageTranscriptPullRequestsResponse>;
8884
9371
  /**
8885
9372
  * Village Transcript Visibility
8886
9373
  *
@@ -8980,6 +9467,303 @@ export type VillagePullRequestAttachedTranscript = z.infer<typeof zVillagePullRe
8980
9467
  */
8981
9468
  export declare const zVillageUUID: z.ZodUUID;
8982
9469
  export type VillageUUID = z.infer<typeof zVillageUUID>;
9470
+ export declare const zAutoPublishRule: z.ZodObject<{
9471
+ collectives: z.ZodArray<z.ZodUUID>;
9472
+ events: z.ZodArray<z.ZodEnum<{
9473
+ "pre-push": "pre-push";
9474
+ "post-commit": "post-commit";
9475
+ }>>;
9476
+ id: z.ZodString;
9477
+ kind: z.ZodEnum<{
9478
+ folder: "folder";
9479
+ remote: "remote";
9480
+ }>;
9481
+ match: z.ZodString;
9482
+ repositories: z.ZodArray<z.ZodObject<{
9483
+ hooks: z.ZodArray<z.ZodObject<{
9484
+ event: z.ZodEnum<{
9485
+ "pre-push": "pre-push";
9486
+ "post-commit": "post-commit";
9487
+ }>;
9488
+ remedy: z.ZodOptional<z.ZodObject<{
9489
+ message: z.ZodString;
9490
+ snippet: z.ZodOptional<z.ZodString>;
9491
+ }, z.core.$strip>>;
9492
+ status: z.ZodEnum<{
9493
+ failed: "failed";
9494
+ blocked: "blocked";
9495
+ installed: "installed";
9496
+ absent: "absent";
9497
+ }>;
9498
+ }, z.core.$strip>>;
9499
+ label: z.ZodOptional<z.ZodString>;
9500
+ path: z.ZodString;
9501
+ }, z.core.$strip>>;
9502
+ }, z.core.$strip>;
9503
+ export type AutoPublishRule = z.infer<typeof zAutoPublishRule>;
9504
+ export declare const zAutoPublishRuleRequest: z.ZodObject<{
9505
+ collectives: z.ZodArray<z.ZodUUID>;
9506
+ events: z.ZodArray<z.ZodEnum<{
9507
+ "pre-push": "pre-push";
9508
+ "post-commit": "post-commit";
9509
+ }>>;
9510
+ kind: z.ZodEnum<{
9511
+ folder: "folder";
9512
+ remote: "remote";
9513
+ }>;
9514
+ match: z.ZodString;
9515
+ }, z.core.$strict>;
9516
+ export type AutoPublishRuleRequest = z.infer<typeof zAutoPublishRuleRequest>;
9517
+ export declare const zLocalPublicationAudienceMember: z.ZodObject<{
9518
+ collectiveId: z.ZodUUID;
9519
+ name: z.ZodString;
9520
+ status: z.ZodEnum<{
9521
+ pending: "pending";
9522
+ rejected: "rejected";
9523
+ approved: "approved";
9524
+ retracted: "retracted";
9525
+ revoked: "revoked";
9526
+ }>;
9527
+ }, z.core.$strip>;
9528
+ export type LocalPublicationAudienceMember = z.infer<typeof zLocalPublicationAudienceMember>;
9529
+ export declare const zLocalPublication: z.ZodObject<{
9530
+ audience: z.ZodOptional<z.ZodArray<z.ZodObject<{
9531
+ collectiveId: z.ZodUUID;
9532
+ name: z.ZodString;
9533
+ status: z.ZodEnum<{
9534
+ pending: "pending";
9535
+ rejected: "rejected";
9536
+ approved: "approved";
9537
+ retracted: "retracted";
9538
+ revoked: "revoked";
9539
+ }>;
9540
+ }, z.core.$strip>>>;
9541
+ autoPublish: z.ZodBoolean;
9542
+ lastAttempt: z.ZodOptional<z.ZodObject<{
9543
+ attemptedAt: z.ZodISODateTime;
9544
+ message: z.ZodString;
9545
+ }, z.core.$strip>>;
9546
+ outsideSelection: z.ZodBoolean;
9547
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
9548
+ sessionId: z.ZodString;
9549
+ state: z.ZodEnum<{
9550
+ unpublished: "unpublished";
9551
+ published: "published";
9552
+ }>;
9553
+ transcriptId: z.ZodOptional<z.ZodUUID>;
9554
+ transcriptUrl: z.ZodOptional<z.ZodString>;
9555
+ }, z.core.$strip>;
9556
+ export type LocalPublication = z.infer<typeof zLocalPublication>;
9557
+ export declare const zLocalPublicationsResponse: z.ZodObject<{
9558
+ publications: z.ZodArray<z.ZodObject<{
9559
+ audience: z.ZodOptional<z.ZodArray<z.ZodObject<{
9560
+ collectiveId: z.ZodUUID;
9561
+ name: z.ZodString;
9562
+ status: z.ZodEnum<{
9563
+ pending: "pending";
9564
+ rejected: "rejected";
9565
+ approved: "approved";
9566
+ retracted: "retracted";
9567
+ revoked: "revoked";
9568
+ }>;
9569
+ }, z.core.$strip>>>;
9570
+ autoPublish: z.ZodBoolean;
9571
+ lastAttempt: z.ZodOptional<z.ZodObject<{
9572
+ attemptedAt: z.ZodISODateTime;
9573
+ message: z.ZodString;
9574
+ }, z.core.$strip>>;
9575
+ outsideSelection: z.ZodBoolean;
9576
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
9577
+ sessionId: z.ZodString;
9578
+ state: z.ZodEnum<{
9579
+ unpublished: "unpublished";
9580
+ published: "published";
9581
+ }>;
9582
+ transcriptId: z.ZodOptional<z.ZodUUID>;
9583
+ transcriptUrl: z.ZodOptional<z.ZodString>;
9584
+ }, z.core.$strip>>;
9585
+ }, z.core.$strip>;
9586
+ export type LocalPublicationsResponse = z.infer<typeof zLocalPublicationsResponse>;
9587
+ export declare const zLocalSettingsResponse: z.ZodObject<{
9588
+ autoPublish: z.ZodArray<z.ZodObject<{
9589
+ collectives: z.ZodArray<z.ZodUUID>;
9590
+ events: z.ZodArray<z.ZodEnum<{
9591
+ "pre-push": "pre-push";
9592
+ "post-commit": "post-commit";
9593
+ }>>;
9594
+ id: z.ZodString;
9595
+ kind: z.ZodEnum<{
9596
+ folder: "folder";
9597
+ remote: "remote";
9598
+ }>;
9599
+ match: z.ZodString;
9600
+ repositories: z.ZodArray<z.ZodObject<{
9601
+ hooks: z.ZodArray<z.ZodObject<{
9602
+ event: z.ZodEnum<{
9603
+ "pre-push": "pre-push";
9604
+ "post-commit": "post-commit";
9605
+ }>;
9606
+ remedy: z.ZodOptional<z.ZodObject<{
9607
+ message: z.ZodString;
9608
+ snippet: z.ZodOptional<z.ZodString>;
9609
+ }, z.core.$strip>>;
9610
+ status: z.ZodEnum<{
9611
+ failed: "failed";
9612
+ blocked: "blocked";
9613
+ installed: "installed";
9614
+ absent: "absent";
9615
+ }>;
9616
+ }, z.core.$strip>>;
9617
+ label: z.ZodOptional<z.ZodString>;
9618
+ path: z.ZodString;
9619
+ }, z.core.$strip>>;
9620
+ }, z.core.$strip>>;
9621
+ settings: z.ZodArray<z.ZodObject<{
9622
+ description: z.ZodOptional<z.ZodString>;
9623
+ editable: z.ZodBoolean;
9624
+ effective: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
9625
+ inPeasantConfig: z.ZodBoolean;
9626
+ key: z.ZodString;
9627
+ kind: z.ZodEnum<{
9628
+ string: "string";
9629
+ boolean: "boolean";
9630
+ integer: "integer";
9631
+ string_list: "string_list";
9632
+ choice: "choice";
9633
+ structured: "structured";
9634
+ }>;
9635
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
9636
+ value: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt, z.ZodString, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
9637
+ }, z.core.$strip>>;
9638
+ }, z.core.$strip>;
9639
+ export type LocalSettingsResponse = z.infer<typeof zLocalSettingsResponse>;
9640
+ export declare const zSyncPushCollectives: z.ZodObject<{
9641
+ add: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
9642
+ remove: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
9643
+ }, z.core.$strict>;
9644
+ export type SyncPushCollectives = z.infer<typeof zSyncPushCollectives>;
9645
+ export declare const zSyncPushRequest: z.ZodObject<{
9646
+ collectives: z.ZodOptional<z.ZodObject<{
9647
+ add: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
9648
+ remove: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
9649
+ }, z.core.$strict>>;
9650
+ redactionLevel: z.ZodOptional<z.ZodString>;
9651
+ sessionIds: z.ZodArray<z.ZodString>;
9652
+ }, z.core.$strict>;
9653
+ export type SyncPushRequest = z.infer<typeof zSyncPushRequest>;
9654
+ export declare const zSyncPushStepResult: z.ZodObject<{
9655
+ collectiveId: z.ZodOptional<z.ZodUUID>;
9656
+ outcome: z.ZodEnum<{
9657
+ skipped: "skipped";
9658
+ failed: "failed";
9659
+ succeeded: "succeeded";
9660
+ pending_approval: "pending_approval";
9661
+ not_attempted: "not_attempted";
9662
+ }>;
9663
+ reason: z.ZodOptional<z.ZodString>;
9664
+ step: z.ZodEnum<{
9665
+ content: "content";
9666
+ add_collective: "add_collective";
9667
+ remove_collective: "remove_collective";
9668
+ }>;
9669
+ }, z.core.$strip>;
9670
+ export type SyncPushStepResult = z.infer<typeof zSyncPushStepResult>;
9671
+ export declare const zSyncPushSessionResult: z.ZodObject<{
9672
+ error: z.ZodOptional<z.ZodString>;
9673
+ sessionId: z.ZodString;
9674
+ status: z.ZodEnum<{
9675
+ skipped: "skipped";
9676
+ error: "error";
9677
+ new: "new";
9678
+ updated: "updated";
9679
+ held: "held";
9680
+ }>;
9681
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
9682
+ collectiveId: z.ZodOptional<z.ZodUUID>;
9683
+ outcome: z.ZodEnum<{
9684
+ skipped: "skipped";
9685
+ failed: "failed";
9686
+ succeeded: "succeeded";
9687
+ pending_approval: "pending_approval";
9688
+ not_attempted: "not_attempted";
9689
+ }>;
9690
+ reason: z.ZodOptional<z.ZodString>;
9691
+ step: z.ZodEnum<{
9692
+ content: "content";
9693
+ add_collective: "add_collective";
9694
+ remove_collective: "remove_collective";
9695
+ }>;
9696
+ }, z.core.$strip>>>;
9697
+ title: z.ZodOptional<z.ZodString>;
9698
+ transcriptUrl: z.ZodOptional<z.ZodString>;
9699
+ waitingPullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
9700
+ head_remote: z.ZodString;
9701
+ name: z.ZodString;
9702
+ number: z.ZodInt;
9703
+ owner: z.ZodString;
9704
+ remote: z.ZodString;
9705
+ requested_at: z.ZodISODateTime;
9706
+ state: z.ZodEnum<{
9707
+ waiting: "waiting";
9708
+ preview: "preview";
9709
+ requested: "requested";
9710
+ attached: "attached";
9711
+ detached: "detached";
9712
+ }>;
9713
+ }, z.core.$strip>>>;
9714
+ }, z.core.$strip>;
9715
+ export type SyncPushSessionResult = z.infer<typeof zSyncPushSessionResult>;
9716
+ export declare const zSyncPushResponse: z.ZodObject<{
9717
+ errors: z.ZodInt;
9718
+ new: z.ZodInt;
9719
+ sessions: z.ZodArray<z.ZodObject<{
9720
+ error: z.ZodOptional<z.ZodString>;
9721
+ sessionId: z.ZodString;
9722
+ status: z.ZodEnum<{
9723
+ skipped: "skipped";
9724
+ error: "error";
9725
+ new: "new";
9726
+ updated: "updated";
9727
+ held: "held";
9728
+ }>;
9729
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
9730
+ collectiveId: z.ZodOptional<z.ZodUUID>;
9731
+ outcome: z.ZodEnum<{
9732
+ skipped: "skipped";
9733
+ failed: "failed";
9734
+ succeeded: "succeeded";
9735
+ pending_approval: "pending_approval";
9736
+ not_attempted: "not_attempted";
9737
+ }>;
9738
+ reason: z.ZodOptional<z.ZodString>;
9739
+ step: z.ZodEnum<{
9740
+ content: "content";
9741
+ add_collective: "add_collective";
9742
+ remove_collective: "remove_collective";
9743
+ }>;
9744
+ }, z.core.$strip>>>;
9745
+ title: z.ZodOptional<z.ZodString>;
9746
+ transcriptUrl: z.ZodOptional<z.ZodString>;
9747
+ waitingPullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
9748
+ head_remote: z.ZodString;
9749
+ name: z.ZodString;
9750
+ number: z.ZodInt;
9751
+ owner: z.ZodString;
9752
+ remote: z.ZodString;
9753
+ requested_at: z.ZodISODateTime;
9754
+ state: z.ZodEnum<{
9755
+ waiting: "waiting";
9756
+ preview: "preview";
9757
+ requested: "requested";
9758
+ attached: "attached";
9759
+ detached: "detached";
9760
+ }>;
9761
+ }, z.core.$strip>>>;
9762
+ }, z.core.$strip>>;
9763
+ skipped: z.ZodInt;
9764
+ updated: z.ZodInt;
9765
+ }, z.core.$strip>;
9766
+ export type SyncPushResponse = z.infer<typeof zSyncPushResponse>;
8983
9767
  export declare const zVillageCollectiveSearchResult: z.ZodObject<{
8984
9768
  description: z.ZodNullable<z.ZodString>;
8985
9769
  id: z.ZodUUID;
@@ -9274,6 +10058,14 @@ export declare const zVillageGroupTranscript: z.ZodObject<{
9274
10058
  }>;
9275
10059
  project_remote_label: z.ZodString;
9276
10060
  published_at: z.ZodISODateTime;
10061
+ pull_requests: z.ZodObject<{
10062
+ count: z.ZodInt;
10063
+ recent: z.ZodArray<z.ZodObject<{
10064
+ name: z.ZodString;
10065
+ number: z.ZodInt;
10066
+ owner: z.ZodString;
10067
+ }, z.core.$strip>>;
10068
+ }, z.core.$strip>;
9277
10069
  purpose: z.ZodOptional<z.ZodEnum<{
9278
10070
  unknown: "unknown";
9279
10071
  interaction: "interaction";
@@ -9418,6 +10210,7 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
9418
10210
  }, z.core.$strip>>>;
9419
10211
  stats: z.ZodObject<{
9420
10212
  contributor_count: z.ZodInt;
10213
+ pull_request_count: z.ZodInt;
9421
10214
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
9422
10215
  total_tokens: z.ZodCoercedBigInt<unknown>;
9423
10216
  total_transcripts: z.ZodInt;
@@ -9485,6 +10278,14 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
9485
10278
  }>;
9486
10279
  project_remote_label: z.ZodString;
9487
10280
  published_at: z.ZodISODateTime;
10281
+ pull_requests: z.ZodObject<{
10282
+ count: z.ZodInt;
10283
+ recent: z.ZodArray<z.ZodObject<{
10284
+ name: z.ZodString;
10285
+ number: z.ZodInt;
10286
+ owner: z.ZodString;
10287
+ }, z.core.$strip>>;
10288
+ }, z.core.$strip>;
9488
10289
  purpose: z.ZodOptional<z.ZodEnum<{
9489
10290
  unknown: "unknown";
9490
10291
  interaction: "interaction";
@@ -9679,6 +10480,7 @@ export declare const zVillagePullRequestAttachment: z.ZodObject<{
9679
10480
  confirmed_at: z.ZodNullable<z.ZodISODateTime>;
9680
10481
  created_at: z.ZodISODateTime;
9681
10482
  detached_at: z.ZodNullable<z.ZodISODateTime>;
10483
+ head_ref: z.ZodNullable<z.ZodString>;
9682
10484
  head_sha: z.ZodString;
9683
10485
  id: z.ZodUUID;
9684
10486
  is_private_repository: z.ZodBoolean;
@@ -9693,6 +10495,7 @@ export declare const zVillagePullRequestAttachment: z.ZodObject<{
9693
10495
  attached: "attached";
9694
10496
  detached: "detached";
9695
10497
  }>;
10498
+ title: z.ZodNullable<z.ZodString>;
9696
10499
  updated_at: z.ZodISODateTime;
9697
10500
  }, z.core.$strip>;
9698
10501
  export type VillagePullRequestAttachment = z.infer<typeof zVillagePullRequestAttachment>;
@@ -9704,6 +10507,7 @@ export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
9704
10507
  confirmed_at: z.ZodNullable<z.ZodISODateTime>;
9705
10508
  created_at: z.ZodISODateTime;
9706
10509
  detached_at: z.ZodNullable<z.ZodISODateTime>;
10510
+ head_ref: z.ZodNullable<z.ZodString>;
9707
10511
  head_sha: z.ZodString;
9708
10512
  id: z.ZodUUID;
9709
10513
  is_private_repository: z.ZodBoolean;
@@ -9718,6 +10522,7 @@ export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
9718
10522
  attached: "attached";
9719
10523
  detached: "detached";
9720
10524
  }>;
10525
+ title: z.ZodNullable<z.ZodString>;
9721
10526
  updated_at: z.ZodISODateTime;
9722
10527
  }, z.core.$strip>;
9723
10528
  digest: z.ZodNullable<z.ZodObject<{
@@ -9981,6 +10786,7 @@ export declare const zVillageUpdateGroupRequest: z.ZodObject<{
9981
10786
  }, z.core.$strip>;
9982
10787
  export type VillageUpdateGroupRequest = z.infer<typeof zVillageUpdateGroupRequest>;
9983
10788
  export declare const zVillageUpdateUserSettingsRequest: z.ZodObject<{
10789
+ auto_attach_pull_requests: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9984
10790
  preview_before_attach: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9985
10791
  }, z.core.$strip>;
9986
10792
  export type VillageUpdateUserSettingsRequest = z.infer<typeof zVillageUpdateUserSettingsRequest>;
@@ -10025,6 +10831,14 @@ export declare const zVillageTranscriptListRow: z.ZodObject<{
10025
10831
  org_login: z.ZodString;
10026
10832
  user_id: z.ZodUUID;
10027
10833
  }, z.core.$strip>>>;
10834
+ pull_requests: z.ZodObject<{
10835
+ count: z.ZodInt;
10836
+ recent: z.ZodArray<z.ZodObject<{
10837
+ name: z.ZodString;
10838
+ number: z.ZodInt;
10839
+ owner: z.ZodString;
10840
+ }, z.core.$strip>>;
10841
+ }, z.core.$strip>;
10028
10842
  shares: z.ZodNullable<z.ZodArray<z.ZodObject<{
10029
10843
  acceptance_mode: z.ZodEnum<{
10030
10844
  open: "open";
@@ -10211,6 +11025,14 @@ export declare const zVillageTranscriptListResponse: z.ZodObject<{
10211
11025
  org_login: z.ZodString;
10212
11026
  user_id: z.ZodUUID;
10213
11027
  }, z.core.$strip>>>;
11028
+ pull_requests: z.ZodObject<{
11029
+ count: z.ZodInt;
11030
+ recent: z.ZodArray<z.ZodObject<{
11031
+ name: z.ZodString;
11032
+ number: z.ZodInt;
11033
+ owner: z.ZodString;
11034
+ }, z.core.$strip>>;
11035
+ }, z.core.$strip>;
10214
11036
  shares: z.ZodNullable<z.ZodArray<z.ZodObject<{
10215
11037
  acceptance_mode: z.ZodEnum<{
10216
11038
  open: "open";
@@ -10618,6 +11440,94 @@ export declare const zVillageUserGroup: z.ZodObject<{
10618
11440
  updated_at: z.ZodISODateTime;
10619
11441
  }, z.core.$strip>;
10620
11442
  export type VillageUserGroup = z.infer<typeof zVillageUserGroup>;
11443
+ export declare const zLocalVillageCollective: z.ZodObject<{
11444
+ group: z.ZodObject<{
11445
+ acceptance_mode: z.ZodEnum<{
11446
+ open: "open";
11447
+ verified_only: "verified_only";
11448
+ curated: "curated";
11449
+ }>;
11450
+ created_at: z.ZodISODateTime;
11451
+ created_by: z.ZodUUID;
11452
+ data_access: z.ZodEnum<{
11453
+ public: "public";
11454
+ members_only: "members_only";
11455
+ contributors: "contributors";
11456
+ }>;
11457
+ description: z.ZodNullable<z.ZodString>;
11458
+ display_members: z.ZodBoolean;
11459
+ id: z.ZodUUID;
11460
+ linked_github_org: z.ZodNullable<z.ZodString>;
11461
+ member_count: z.ZodInt;
11462
+ member_since: z.ZodISODateTime;
11463
+ name: z.ZodString;
11464
+ role: z.ZodEnum<{
11465
+ pending: "pending";
11466
+ contributor: "contributor";
11467
+ member: "member";
11468
+ owner: "owner";
11469
+ }>;
11470
+ transcript_count: z.ZodInt;
11471
+ transcript_deletion_policy: z.ZodEnum<{
11472
+ user_choice: "user_choice";
11473
+ mandatory: "mandatory";
11474
+ }>;
11475
+ updated_at: z.ZodISODateTime;
11476
+ }, z.core.$strip>;
11477
+ suggestion: z.ZodOptional<z.ZodObject<{
11478
+ match: z.ZodString;
11479
+ reason: z.ZodEnum<{
11480
+ linked_repository: "linked_repository";
11481
+ linked_github_org: "linked_github_org";
11482
+ }>;
11483
+ }, z.core.$strip>>;
11484
+ }, z.core.$strip>;
11485
+ export type LocalVillageCollective = z.infer<typeof zLocalVillageCollective>;
11486
+ export declare const zLocalVillageCollectivesResponse: z.ZodObject<{
11487
+ collectives: z.ZodArray<z.ZodObject<{
11488
+ group: z.ZodObject<{
11489
+ acceptance_mode: z.ZodEnum<{
11490
+ open: "open";
11491
+ verified_only: "verified_only";
11492
+ curated: "curated";
11493
+ }>;
11494
+ created_at: z.ZodISODateTime;
11495
+ created_by: z.ZodUUID;
11496
+ data_access: z.ZodEnum<{
11497
+ public: "public";
11498
+ members_only: "members_only";
11499
+ contributors: "contributors";
11500
+ }>;
11501
+ description: z.ZodNullable<z.ZodString>;
11502
+ display_members: z.ZodBoolean;
11503
+ id: z.ZodUUID;
11504
+ linked_github_org: z.ZodNullable<z.ZodString>;
11505
+ member_count: z.ZodInt;
11506
+ member_since: z.ZodISODateTime;
11507
+ name: z.ZodString;
11508
+ role: z.ZodEnum<{
11509
+ pending: "pending";
11510
+ contributor: "contributor";
11511
+ member: "member";
11512
+ owner: "owner";
11513
+ }>;
11514
+ transcript_count: z.ZodInt;
11515
+ transcript_deletion_policy: z.ZodEnum<{
11516
+ user_choice: "user_choice";
11517
+ mandatory: "mandatory";
11518
+ }>;
11519
+ updated_at: z.ZodISODateTime;
11520
+ }, z.core.$strip>;
11521
+ suggestion: z.ZodOptional<z.ZodObject<{
11522
+ match: z.ZodString;
11523
+ reason: z.ZodEnum<{
11524
+ linked_repository: "linked_repository";
11525
+ linked_github_org: "linked_github_org";
11526
+ }>;
11527
+ }, z.core.$strip>>;
11528
+ }, z.core.$strip>>;
11529
+ }, z.core.$strip>;
11530
+ export type LocalVillageCollectivesResponse = z.infer<typeof zLocalVillageCollectivesResponse>;
10621
11531
  export declare const zVillageUserGroupShare: z.ZodObject<{
10622
11532
  id: z.ZodUUID;
10623
11533
  input_submission_count: z.ZodOptional<z.ZodInt>;
@@ -10747,6 +11657,14 @@ export declare const zVillageSessionRow: z.ZodObject<{
10747
11657
  }>;
10748
11658
  project_remote_label: z.ZodString;
10749
11659
  published_at: z.ZodISODateTime;
11660
+ pull_requests: z.ZodObject<{
11661
+ count: z.ZodInt;
11662
+ recent: z.ZodArray<z.ZodObject<{
11663
+ name: z.ZodString;
11664
+ number: z.ZodInt;
11665
+ owner: z.ZodString;
11666
+ }, z.core.$strip>>;
11667
+ }, z.core.$strip>;
10750
11668
  purpose: z.ZodOptional<z.ZodEnum<{
10751
11669
  unknown: "unknown";
10752
11670
  interaction: "interaction";
@@ -11228,6 +12146,14 @@ export declare const zVillageSessionListItem: z.ZodObject<{
11228
12146
  }>;
11229
12147
  project_remote_label: z.ZodString;
11230
12148
  published_at: z.ZodISODateTime;
12149
+ pull_requests: z.ZodObject<{
12150
+ count: z.ZodInt;
12151
+ recent: z.ZodArray<z.ZodObject<{
12152
+ name: z.ZodString;
12153
+ number: z.ZodInt;
12154
+ owner: z.ZodString;
12155
+ }, z.core.$strip>>;
12156
+ }, z.core.$strip>;
11231
12157
  purpose: z.ZodOptional<z.ZodEnum<{
11232
12158
  unknown: "unknown";
11233
12159
  interaction: "interaction";
@@ -11712,6 +12638,14 @@ export declare const zVillageHelperMembersPayload: z.ZodObject<{
11712
12638
  }>;
11713
12639
  project_remote_label: z.ZodString;
11714
12640
  published_at: z.ZodISODateTime;
12641
+ pull_requests: z.ZodObject<{
12642
+ count: z.ZodInt;
12643
+ recent: z.ZodArray<z.ZodObject<{
12644
+ name: z.ZodString;
12645
+ number: z.ZodInt;
12646
+ owner: z.ZodString;
12647
+ }, z.core.$strip>>;
12648
+ }, z.core.$strip>;
11715
12649
  purpose: z.ZodOptional<z.ZodEnum<{
11716
12650
  unknown: "unknown";
11717
12651
  interaction: "interaction";
@@ -12170,6 +13104,14 @@ export declare const zVillageHelperMembersPayload: z.ZodObject<{
12170
13104
  }>;
12171
13105
  project_remote_label: z.ZodString;
12172
13106
  published_at: z.ZodISODateTime;
13107
+ pull_requests: z.ZodObject<{
13108
+ count: z.ZodInt;
13109
+ recent: z.ZodArray<z.ZodObject<{
13110
+ name: z.ZodString;
13111
+ number: z.ZodInt;
13112
+ owner: z.ZodString;
13113
+ }, z.core.$strip>>;
13114
+ }, z.core.$strip>;
12173
13115
  purpose: z.ZodOptional<z.ZodEnum<{
12174
13116
  unknown: "unknown";
12175
13117
  interaction: "interaction";
@@ -12657,6 +13599,14 @@ export declare const zVillageSessionListPayload: z.ZodObject<{
12657
13599
  }>;
12658
13600
  project_remote_label: z.ZodString;
12659
13601
  published_at: z.ZodISODateTime;
13602
+ pull_requests: z.ZodObject<{
13603
+ count: z.ZodInt;
13604
+ recent: z.ZodArray<z.ZodObject<{
13605
+ name: z.ZodString;
13606
+ number: z.ZodInt;
13607
+ owner: z.ZodString;
13608
+ }, z.core.$strip>>;
13609
+ }, z.core.$strip>;
12660
13610
  purpose: z.ZodOptional<z.ZodEnum<{
12661
13611
  unknown: "unknown";
12662
13612
  interaction: "interaction";
@@ -13148,6 +14098,14 @@ export declare const zVillageGroupedContributableResponse: z.ZodObject<{
13148
14098
  }>;
13149
14099
  project_remote_label: z.ZodString;
13150
14100
  published_at: z.ZodISODateTime;
14101
+ pull_requests: z.ZodObject<{
14102
+ count: z.ZodInt;
14103
+ recent: z.ZodArray<z.ZodObject<{
14104
+ name: z.ZodString;
14105
+ number: z.ZodInt;
14106
+ owner: z.ZodString;
14107
+ }, z.core.$strip>>;
14108
+ }, z.core.$strip>;
13151
14109
  purpose: z.ZodOptional<z.ZodEnum<{
13152
14110
  unknown: "unknown";
13153
14111
  interaction: "interaction";
@@ -13617,6 +14575,7 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
13617
14575
  }, z.core.$strip>>>;
13618
14576
  stats: z.ZodObject<{
13619
14577
  contributor_count: z.ZodInt;
14578
+ pull_request_count: z.ZodInt;
13620
14579
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
13621
14580
  total_tokens: z.ZodCoercedBigInt<unknown>;
13622
14581
  total_transcripts: z.ZodInt;
@@ -13714,6 +14673,14 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
13714
14673
  }>;
13715
14674
  project_remote_label: z.ZodString;
13716
14675
  published_at: z.ZodISODateTime;
14676
+ pull_requests: z.ZodObject<{
14677
+ count: z.ZodInt;
14678
+ recent: z.ZodArray<z.ZodObject<{
14679
+ name: z.ZodString;
14680
+ number: z.ZodInt;
14681
+ owner: z.ZodString;
14682
+ }, z.core.$strip>>;
14683
+ }, z.core.$strip>;
13717
14684
  purpose: z.ZodOptional<z.ZodEnum<{
13718
14685
  unknown: "unknown";
13719
14686
  interaction: "interaction";
@@ -14120,9 +15087,18 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
14120
15087
  }, z.core.$strip>;
14121
15088
  export type VillageGroupedGroupDetailResponse = z.infer<typeof zVillageGroupedGroupDetailResponse>;
14122
15089
  export declare const zVillageUserSettings: z.ZodObject<{
15090
+ auto_attach_pull_requests: z.ZodBoolean;
14123
15091
  preview_before_attach: z.ZodBoolean;
14124
15092
  }, z.core.$strip>;
14125
15093
  export type VillageUserSettings = z.infer<typeof zVillageUserSettings>;
15094
+ export declare const zVillageUserStats: z.ZodObject<{
15095
+ pull_request_count: z.ZodInt;
15096
+ total_duration_ms: z.ZodCoercedBigInt<unknown>;
15097
+ total_tokens: z.ZodCoercedBigInt<unknown>;
15098
+ total_transcripts: z.ZodInt;
15099
+ total_turns: z.ZodCoercedBigInt<unknown>;
15100
+ }, z.core.$strip>;
15101
+ export type VillageUserStats = z.infer<typeof zVillageUserStats>;
14126
15102
  export declare const zVillageVisibleGroup: z.ZodObject<{
14127
15103
  acceptance_mode: z.ZodEnum<{
14128
15104
  open: "open";