@peasant-labs/schema 0.23.0 → 0.25.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;
@@ -793,6 +896,10 @@ export declare const zInteractionType: z.ZodEnum<{
793
896
  questioned: "questioned";
794
897
  }>;
795
898
  export type InteractionType = z.infer<typeof zInteractionType>;
899
+ export declare const zInterpretationDiagnostics: z.ZodObject<{
900
+ partial: z.ZodBoolean;
901
+ }, z.core.$strip>;
902
+ export type InterpretationDiagnostics = z.infer<typeof zInterpretationDiagnostics>;
796
903
  /**
797
904
  * License
798
905
  *
@@ -804,6 +911,88 @@ export declare const zLicense: z.ZodEnum<{
804
911
  "CC-BY-SA-4.0": "CC-BY-SA-4.0";
805
912
  }>;
806
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>;
807
996
  export declare const zMapEdge: z.ZodObject<{
808
997
  count: z.ZodInt;
809
998
  from: z.ZodString;
@@ -988,56 +1177,6 @@ export declare const zAuthoritativeProjectContext: z.ZodObject<{
988
1177
  name: z.ZodString;
989
1178
  }, z.core.$strict>;
990
1179
  export type AuthoritativeProjectContext = z.infer<typeof zAuthoritativeProjectContext>;
991
- export declare const zLocalSyncSummary: z.ZodObject<{
992
- durationMs: z.ZodCoercedBigInt<unknown>;
993
- harness: z.ZodEnum<{
994
- strike: "strike";
995
- cursor: "cursor";
996
- "claude-code": "claude-code";
997
- "gemini-cli": "gemini-cli";
998
- codex: "codex";
999
- opencode: "opencode";
1000
- antigravity: "antigravity";
1001
- pi: "pi";
1002
- }>;
1003
- hostSlug: z.ZodString;
1004
- id: z.ZodString;
1005
- inputSubmissionCount: z.ZodOptional<z.ZodInt>;
1006
- model: z.ZodString;
1007
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1008
- projectName: z.ZodString;
1009
- startTime: z.ZodString;
1010
- syncStatus: z.ZodString;
1011
- totalTokens: z.ZodInt;
1012
- turnCount: z.ZodInt;
1013
- }, z.core.$strip>;
1014
- export type LocalSyncSummary = z.infer<typeof zLocalSyncSummary>;
1015
- export declare const zLocalSyncSessionsPayload: z.ZodObject<{
1016
- sessions: z.ZodArray<z.ZodObject<{
1017
- durationMs: z.ZodCoercedBigInt<unknown>;
1018
- harness: z.ZodEnum<{
1019
- strike: "strike";
1020
- cursor: "cursor";
1021
- "claude-code": "claude-code";
1022
- "gemini-cli": "gemini-cli";
1023
- codex: "codex";
1024
- opencode: "opencode";
1025
- antigravity: "antigravity";
1026
- pi: "pi";
1027
- }>;
1028
- hostSlug: z.ZodString;
1029
- id: z.ZodString;
1030
- inputSubmissionCount: z.ZodOptional<z.ZodInt>;
1031
- model: z.ZodString;
1032
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1033
- projectName: z.ZodString;
1034
- startTime: z.ZodString;
1035
- syncStatus: z.ZodString;
1036
- totalTokens: z.ZodInt;
1037
- turnCount: z.ZodInt;
1038
- }, z.core.$strip>>;
1039
- }, z.core.$strip>;
1040
- export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
1041
1180
  export declare const zProjectContext: z.ZodObject<{
1042
1181
  filePath: z.ZodOptional<z.ZodString>;
1043
1182
  hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
@@ -1440,6 +1579,16 @@ export declare const zRelationshipTargetState: z.ZodEnum<{
1440
1579
  conflicting_current_native_evidence: "conflicting_current_native_evidence";
1441
1580
  }>;
1442
1581
  export type RelationshipTargetState = z.infer<typeof zRelationshipTargetState>;
1582
+ export declare const zRetainedUnknownRecord: z.ZodObject<{
1583
+ kind: z.ZodString;
1584
+ namespace: z.ZodString;
1585
+ payload: z.ZodString;
1586
+ pointer: z.ZodString;
1587
+ position: z.ZodNumber;
1588
+ recordIndex: z.ZodNumber;
1589
+ sourceRef: z.ZodString;
1590
+ }, z.core.$strip>;
1591
+ export type RetainedUnknownRecord = z.infer<typeof zRetainedUnknownRecord>;
1443
1592
  export declare const zReviewSuggestion: z.ZodObject<{
1444
1593
  daysSince: z.ZodInt;
1445
1594
  lastEngaged: z.ZodString;
@@ -2133,12 +2282,397 @@ export declare const zSessionSummary: z.ZodObject<{
2133
2282
  user: "user";
2134
2283
  agent: "agent";
2135
2284
  }>>;
2136
- startTime: z.ZodISODateTime;
2137
- toolCallCount: z.ZodInt;
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
+ }>;
2138
2672
  totalTokens: z.ZodInt;
2139
2673
  turnCount: z.ZodInt;
2140
2674
  }, z.core.$strip>;
2141
- export type SessionSummary = z.infer<typeof zSessionSummary>;
2675
+ export type LocalSyncSummary = z.infer<typeof zLocalSyncSummary>;
2142
2676
  export declare const zLocalSessionRow: z.ZodObject<{
2143
2677
  matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
2144
2678
  entryIndex: z.ZodInt;
@@ -2228,14 +2762,24 @@ export declare const zLocalSessionRow: z.ZodObject<{
2228
2762
  antigravity: "antigravity";
2229
2763
  pi: "pi";
2230
2764
  }>;
2765
+ holdReason: z.ZodOptional<z.ZodEnum<{
2766
+ metrics_missing: "metrics_missing";
2767
+ metadata_missing: "metadata_missing";
2768
+ }>>;
2231
2769
  hostSlug: z.ZodString;
2232
2770
  id: z.ZodString;
2233
2771
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2234
2772
  model: z.ZodString;
2773
+ previouslyPushed: z.ZodBoolean;
2235
2774
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2236
2775
  projectName: z.ZodString;
2237
2776
  startTime: z.ZodString;
2238
- syncStatus: z.ZodString;
2777
+ syncStatus: z.ZodEnum<{
2778
+ new: "new";
2779
+ updated: "updated";
2780
+ held: "held";
2781
+ synced: "synced";
2782
+ }>;
2239
2783
  totalTokens: z.ZodInt;
2240
2784
  turnCount: z.ZodInt;
2241
2785
  }, z.core.$strip>>>;
@@ -2357,14 +2901,24 @@ export declare const zLocalSessionListItem: z.ZodObject<{
2357
2901
  antigravity: "antigravity";
2358
2902
  pi: "pi";
2359
2903
  }>;
2904
+ holdReason: z.ZodOptional<z.ZodEnum<{
2905
+ metrics_missing: "metrics_missing";
2906
+ metadata_missing: "metadata_missing";
2907
+ }>>;
2360
2908
  hostSlug: z.ZodString;
2361
2909
  id: z.ZodString;
2362
2910
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2363
2911
  model: z.ZodString;
2912
+ previouslyPushed: z.ZodBoolean;
2364
2913
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2365
2914
  projectName: z.ZodString;
2366
2915
  startTime: z.ZodString;
2367
- syncStatus: z.ZodString;
2916
+ syncStatus: z.ZodEnum<{
2917
+ new: "new";
2918
+ updated: "updated";
2919
+ held: "held";
2920
+ synced: "synced";
2921
+ }>;
2368
2922
  totalTokens: z.ZodInt;
2369
2923
  turnCount: z.ZodInt;
2370
2924
  }, z.core.$strip>>>;
@@ -2489,14 +3043,24 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
2489
3043
  antigravity: "antigravity";
2490
3044
  pi: "pi";
2491
3045
  }>;
3046
+ holdReason: z.ZodOptional<z.ZodEnum<{
3047
+ metrics_missing: "metrics_missing";
3048
+ metadata_missing: "metadata_missing";
3049
+ }>>;
2492
3050
  hostSlug: z.ZodString;
2493
3051
  id: z.ZodString;
2494
3052
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2495
3053
  model: z.ZodString;
3054
+ previouslyPushed: z.ZodBoolean;
2496
3055
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2497
3056
  projectName: z.ZodString;
2498
3057
  startTime: z.ZodString;
2499
- syncStatus: z.ZodString;
3058
+ syncStatus: z.ZodEnum<{
3059
+ new: "new";
3060
+ updated: "updated";
3061
+ held: "held";
3062
+ synced: "synced";
3063
+ }>;
2500
3064
  totalTokens: z.ZodInt;
2501
3065
  turnCount: z.ZodInt;
2502
3066
  }, z.core.$strip>>>;
@@ -2595,14 +3159,24 @@ export declare const zLocalHelperMembersPayload: z.ZodObject<{
2595
3159
  antigravity: "antigravity";
2596
3160
  pi: "pi";
2597
3161
  }>;
3162
+ holdReason: z.ZodOptional<z.ZodEnum<{
3163
+ metrics_missing: "metrics_missing";
3164
+ metadata_missing: "metadata_missing";
3165
+ }>>;
2598
3166
  hostSlug: z.ZodString;
2599
3167
  id: z.ZodString;
2600
3168
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2601
3169
  model: z.ZodString;
3170
+ previouslyPushed: z.ZodBoolean;
2602
3171
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2603
3172
  projectName: z.ZodString;
2604
3173
  startTime: z.ZodString;
2605
- syncStatus: z.ZodString;
3174
+ syncStatus: z.ZodEnum<{
3175
+ new: "new";
3176
+ updated: "updated";
3177
+ held: "held";
3178
+ synced: "synced";
3179
+ }>;
2606
3180
  totalTokens: z.ZodInt;
2607
3181
  turnCount: z.ZodInt;
2608
3182
  }, z.core.$strip>>>;
@@ -2730,14 +3304,24 @@ export declare const zLocalSessionListPayload: z.ZodObject<{
2730
3304
  antigravity: "antigravity";
2731
3305
  pi: "pi";
2732
3306
  }>;
3307
+ holdReason: z.ZodOptional<z.ZodEnum<{
3308
+ metrics_missing: "metrics_missing";
3309
+ metadata_missing: "metadata_missing";
3310
+ }>>;
2733
3311
  hostSlug: z.ZodString;
2734
3312
  id: z.ZodString;
2735
3313
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2736
3314
  model: z.ZodString;
3315
+ previouslyPushed: z.ZodBoolean;
2737
3316
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
2738
3317
  projectName: z.ZodString;
2739
3318
  startTime: z.ZodString;
2740
- syncStatus: z.ZodString;
3319
+ syncStatus: z.ZodEnum<{
3320
+ new: "new";
3321
+ updated: "updated";
3322
+ held: "held";
3323
+ synced: "synced";
3324
+ }>;
2741
3325
  totalTokens: z.ZodInt;
2742
3326
  turnCount: z.ZodInt;
2743
3327
  }, z.core.$strip>>>;
@@ -2749,9 +3333,9 @@ export declare const zLocalSessionListPayload: z.ZodObject<{
2749
3333
  totalItems: z.ZodInt;
2750
3334
  }, z.core.$strip>;
2751
3335
  export type LocalSessionListPayload = z.infer<typeof zLocalSessionListPayload>;
2752
- export declare const zSessionsPayload: z.ZodObject<{
2753
- sessions: z.ZodNullable<z.ZodArray<z.ZodObject<{
2754
- durationMins: z.ZodNumber;
3336
+ export declare const zLocalSyncSessionsPayload: z.ZodObject<{
3337
+ sessions: z.ZodArray<z.ZodObject<{
3338
+ durationMs: z.ZodCoercedBigInt<unknown>;
2755
3339
  harness: z.ZodEnum<{
2756
3340
  strike: "strike";
2757
3341
  cursor: "cursor";
@@ -2762,162 +3346,29 @@ export declare const zSessionsPayload: z.ZodObject<{
2762
3346
  antigravity: "antigravity";
2763
3347
  pi: "pi";
2764
3348
  }>;
3349
+ holdReason: z.ZodOptional<z.ZodEnum<{
3350
+ metrics_missing: "metrics_missing";
3351
+ metadata_missing: "metadata_missing";
3352
+ }>>;
3353
+ hostSlug: z.ZodString;
2765
3354
  id: z.ZodString;
2766
3355
  inputSubmissionCount: z.ZodOptional<z.ZodInt>;
2767
- outcome: z.ZodOptional<z.ZodString>;
2768
- parentSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2769
- preview: z.ZodOptional<z.ZodString>;
2770
- project: z.ZodOptional<z.ZodString>;
2771
- projectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
2772
- purpose: z.ZodOptional<z.ZodEnum<{
2773
- unknown: "unknown";
2774
- interaction: "interaction";
2775
- delegated_work: "delegated_work";
2776
- helper_review: "helper_review";
2777
- }>>;
2778
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2779
- anchor: z.ZodOptional<z.ZodObject<{
2780
- kind: z.ZodEnum<{
2781
- general_source_session: "general_source_session";
2782
- before_redacted_entry: "before_redacted_entry";
2783
- through_redacted_entry: "through_redacted_entry";
2784
- }>;
2785
- sourceEntryRef: z.ZodOptional<z.ZodString>;
2786
- sourceRevisionRef: z.ZodOptional<z.ZodString>;
2787
- }, z.core.$strict>>;
2788
- evidence: z.ZodEnum<{
2789
- unknown: "unknown";
2790
- native_typed: "native_typed";
2791
- lifecycle_typed: "lifecycle_typed";
2792
- existing_adapter: "existing_adapter";
2793
- retained_last_good: "retained_last_good";
2794
- conflict: "conflict";
2795
- }>;
2796
- kind: z.ZodEnum<{
2797
- started_by: "started_by";
2798
- context_from: "context_from";
2799
- }>;
2800
- targetLocalId: z.ZodOptional<z.ZodString>;
2801
- targetState: z.ZodEnum<{
2802
- unknown: "unknown";
2803
- target_known: "target_known";
2804
- target_known_retained: "target_known_retained";
2805
- explicit_none: "explicit_none";
2806
- conflicting_current_native_evidence: "conflicting_current_native_evidence";
2807
- }>;
2808
- }, z.core.$strict>>>;
2809
- rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2810
- sessionOrigin: z.ZodOptional<z.ZodEnum<{
2811
- unknown: "unknown";
2812
- user: "user";
2813
- agent: "agent";
2814
- }>>;
2815
- startTime: z.ZodISODateTime;
2816
- 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
+ }>;
2817
3367
  totalTokens: z.ZodInt;
2818
3368
  turnCount: z.ZodInt;
2819
- }, z.core.$strip>>>;
2820
- }, z.core.$strip>;
2821
- export type SessionsPayload = z.infer<typeof zSessionsPayload>;
2822
- /**
2823
- * Source Format
2824
- *
2825
- * Transcript file format
2826
- */
2827
- export declare const zSourceFormat: z.ZodEnum<{
2828
- json: "json";
2829
- jsonl: "jsonl";
2830
- }>;
2831
- export type SourceFormat = z.infer<typeof zSourceFormat>;
2832
- export declare const zAuthoritativeSourceInfo: z.ZodObject<{
2833
- filePath: z.ZodOptional<z.ZodString>;
2834
- format: z.ZodEnum<{
2835
- json: "json";
2836
- jsonl: "jsonl";
2837
- }>;
2838
- }, z.core.$strict>;
2839
- export type AuthoritativeSourceInfo = z.infer<typeof zAuthoritativeSourceInfo>;
2840
- export declare const zSourceInfo: z.ZodObject<{
2841
- filePath: z.ZodOptional<z.ZodString>;
2842
- format: z.ZodEnum<{
2843
- json: "json";
2844
- jsonl: "jsonl";
2845
- }>;
2846
- }, z.core.$strip>;
2847
- export type SourceInfo = z.infer<typeof zSourceInfo>;
2848
- /**
2849
- * Stop Reason
2850
- *
2851
- * Reason why a session or turn ended (ACP-aligned)
2852
- */
2853
- export declare const zStopReason: z.ZodEnum<{
2854
- end_turn: "end_turn";
2855
- cancelled: "cancelled";
2856
- max_tokens: "max_tokens";
2857
- max_turn_requests: "max_turn_requests";
2858
- refusal: "refusal";
2859
- }>;
2860
- export type StopReason = z.infer<typeof zStopReason>;
2861
- export declare const zSubagentRef: z.ZodObject<{
2862
- parentUuid: z.ZodString;
2863
- sessionId: z.ZodString;
3369
+ }, z.core.$strip>>;
2864
3370
  }, z.core.$strip>;
2865
- export type SubagentRef = z.infer<typeof zSubagentRef>;
2866
- /**
2867
- * Submission Reference
2868
- */
2869
- export declare const zSubmissionRef: z.ZodString;
2870
- export type SubmissionRef = z.infer<typeof zSubmissionRef>;
2871
- export declare const zContentProvenance: z.ZodObject<{
2872
- actor: z.ZodEnum<{
2873
- unknown: "unknown";
2874
- operator: "operator";
2875
- agent_delegate: "agent_delegate";
2876
- harness: "harness";
2877
- }>;
2878
- delivery: z.ZodEnum<{
2879
- unknown: "unknown";
2880
- session_admission: "session_admission";
2881
- guardian_review: "guardian_review";
2882
- subagent_delivery: "subagent_delivery";
2883
- inherited_context: "inherited_context";
2884
- tool_delivery: "tool_delivery";
2885
- system_lifecycle: "system_lifecycle";
2886
- }>;
2887
- evidence: z.ZodEnum<{
2888
- unknown: "unknown";
2889
- native_typed: "native_typed";
2890
- lifecycle_typed: "lifecycle_typed";
2891
- existing_adapter: "existing_adapter";
2892
- retained_last_good: "retained_last_good";
2893
- conflict: "conflict";
2894
- }>;
2895
- inputModality: z.ZodEnum<{
2896
- none: "none";
2897
- media: "media";
2898
- unknown: "unknown";
2899
- text: "text";
2900
- user_action: "user_action";
2901
- mixed: "mixed";
2902
- }>;
2903
- origin: z.ZodEnum<{
2904
- unknown: "unknown";
2905
- submitted_input: "submitted_input";
2906
- harness_context: "harness_context";
2907
- agent_output: "agent_output";
2908
- agent_communication: "agent_communication";
2909
- tool_activity: "tool_activity";
2910
- system_control: "system_control";
2911
- generated_summary: "generated_summary";
2912
- }>;
2913
- ownership: z.ZodEnum<{
2914
- local: "local";
2915
- inherited: "inherited";
2916
- uncertain: "uncertain";
2917
- }>;
2918
- submissionRef: z.ZodOptional<z.ZodString>;
2919
- }, z.core.$strict>;
2920
- export type ContentProvenance = z.infer<typeof zContentProvenance>;
3371
+ export type LocalSyncSessionsPayload = z.infer<typeof zLocalSyncSessionsPayload>;
2921
3372
  /**
2922
3373
  * Target Kind
2923
3374
  *
@@ -6102,6 +6553,9 @@ export declare const zSessionDetailPayload: z.ZodObject<{
6102
6553
  project: z.ZodOptional<z.ZodString>;
6103
6554
  startTime: z.ZodISODateTime;
6104
6555
  }, z.core.$strip>>>;
6556
+ diagnostics: z.ZodOptional<z.ZodObject<{
6557
+ partial: z.ZodBoolean;
6558
+ }, z.core.$strip>>;
6105
6559
  durationMins: z.ZodNumber;
6106
6560
  earlierHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
6107
6561
  nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6499,6 +6953,15 @@ export declare const zSessionDetailPayload: z.ZodObject<{
6499
6953
  conflicting_current_native_evidence: "conflicting_current_native_evidence";
6500
6954
  }>;
6501
6955
  }, z.core.$strict>>>;
6956
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
6957
+ kind: z.ZodString;
6958
+ namespace: z.ZodString;
6959
+ payload: z.ZodString;
6960
+ pointer: z.ZodString;
6961
+ position: z.ZodNumber;
6962
+ recordIndex: z.ZodNumber;
6963
+ sourceRef: z.ZodString;
6964
+ }, z.core.$strip>>>;
6502
6965
  rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6503
6966
  schemaVersion: z.ZodOptional<z.ZodString>;
6504
6967
  scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -6814,6 +7277,9 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
6814
7277
  project: z.ZodOptional<z.ZodString>;
6815
7278
  startTime: z.ZodISODateTime;
6816
7279
  }, z.core.$strip>>>;
7280
+ diagnostics: z.ZodOptional<z.ZodObject<{
7281
+ partial: z.ZodBoolean;
7282
+ }, z.core.$strip>>;
6817
7283
  durationMins: z.ZodOptional<z.ZodNumber>;
6818
7284
  earlierHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
6819
7285
  nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7236,6 +7702,15 @@ export declare const zSessionDetailReadPayload: z.ZodObject<{
7236
7702
  conflicting_current_native_evidence: "conflicting_current_native_evidence";
7237
7703
  }>;
7238
7704
  }, z.core.$strict>>>;
7705
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
7706
+ kind: z.ZodString;
7707
+ namespace: z.ZodString;
7708
+ payload: z.ZodString;
7709
+ pointer: z.ZodString;
7710
+ position: z.ZodNumber;
7711
+ recordIndex: z.ZodNumber;
7712
+ sourceRef: z.ZodString;
7713
+ }, z.core.$strip>>>;
7239
7714
  rootSessionId: z.ZodOptional<z.ZodString>;
7240
7715
  schemaVersion: z.ZodOptional<z.ZodString>;
7241
7716
  scorecard: z.ZodOptional<z.ZodObject<{
@@ -7556,6 +8031,9 @@ export declare const zTranscriptContent: z.ZodObject<{
7556
8031
  project: z.ZodOptional<z.ZodString>;
7557
8032
  startTime: z.ZodISODateTime;
7558
8033
  }, z.core.$strip>>>;
8034
+ diagnostics: z.ZodOptional<z.ZodObject<{
8035
+ partial: z.ZodBoolean;
8036
+ }, z.core.$strip>>;
7559
8037
  durationMins: z.ZodNumber;
7560
8038
  earlierHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
7561
8039
  nativeMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7953,6 +8431,15 @@ export declare const zTranscriptContent: z.ZodObject<{
7953
8431
  conflicting_current_native_evidence: "conflicting_current_native_evidence";
7954
8432
  }>;
7955
8433
  }, z.core.$strict>>>;
8434
+ retainedUnknown: z.ZodOptional<z.ZodArray<z.ZodObject<{
8435
+ kind: z.ZodString;
8436
+ namespace: z.ZodString;
8437
+ payload: z.ZodString;
8438
+ pointer: z.ZodString;
8439
+ position: z.ZodNumber;
8440
+ recordIndex: z.ZodNumber;
8441
+ sourceRef: z.ZodString;
8442
+ }, z.core.$strip>>>;
7956
8443
  rootSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7957
8444
  schemaVersion: z.ZodOptional<z.ZodString>;
7958
8445
  scorecard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -8461,6 +8948,7 @@ export declare const zVillageAvailableRepository: z.ZodObject<{
8461
8948
  is_private: z.ZodBoolean;
8462
8949
  name: z.ZodString;
8463
8950
  owner: z.ZodString;
8951
+ publisher_count: z.ZodInt;
8464
8952
  }, z.core.$strip>;
8465
8953
  export type VillageAvailableRepository = z.infer<typeof zVillageAvailableRepository>;
8466
8954
  export declare const zVillageAvailableRepositoriesResponse: z.ZodObject<{
@@ -8468,6 +8956,7 @@ export declare const zVillageAvailableRepositoriesResponse: z.ZodObject<{
8468
8956
  is_private: z.ZodBoolean;
8469
8957
  name: z.ZodString;
8470
8958
  owner: z.ZodString;
8959
+ publisher_count: z.ZodInt;
8471
8960
  }, z.core.$strip>>;
8472
8961
  }, z.core.$strip>;
8473
8962
  export type VillageAvailableRepositoriesResponse = z.infer<typeof zVillageAvailableRepositoriesResponse>;
@@ -8557,7 +9046,7 @@ export declare const zVillageCreateGroupRequest: z.ZodObject<{
8557
9046
  contributors: "contributors";
8558
9047
  }>>;
8559
9048
  description: z.ZodOptional<z.ZodString>;
8560
- linked_github_org: z.ZodOptional<z.ZodString>;
9049
+ linked_github_org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8561
9050
  name: z.ZodString;
8562
9051
  }, z.core.$strip>;
8563
9052
  export type VillageCreateGroupRequest = z.infer<typeof zVillageCreateGroupRequest>;
@@ -8601,6 +9090,7 @@ export declare const zVillageGroupStatusRoleResponse: z.ZodObject<{
8601
9090
  export type VillageGroupStatusRoleResponse = z.infer<typeof zVillageGroupStatusRoleResponse>;
8602
9091
  export declare const zVillageGroupTranscriptStats: z.ZodObject<{
8603
9092
  contributor_count: z.ZodInt;
9093
+ pull_request_count: z.ZodInt;
8604
9094
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
8605
9095
  total_tokens: z.ZodCoercedBigInt<unknown>;
8606
9096
  total_transcripts: z.ZodInt;
@@ -8710,7 +9200,22 @@ export declare const zVillagePromptRequestsResponse: z.ZodObject<{
8710
9200
  }>;
8711
9201
  }, z.core.$strip>>;
8712
9202
  }, z.core.$strip>;
8713
- 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>;
8714
9219
  export declare const zVillageRemoveGroupMemberResponse: z.ZodObject<{
8715
9220
  retracted: z.ZodBoolean;
8716
9221
  status: z.ZodString;
@@ -8831,6 +9336,38 @@ export declare const zVillageTranscriptDeletionPolicy: z.ZodEnum<{
8831
9336
  mandatory: "mandatory";
8832
9337
  }>;
8833
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>;
8834
9371
  /**
8835
9372
  * Village Transcript Visibility
8836
9373
  *
@@ -8930,6 +9467,303 @@ export type VillagePullRequestAttachedTranscript = z.infer<typeof zVillagePullRe
8930
9467
  */
8931
9468
  export declare const zVillageUUID: z.ZodUUID;
8932
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>;
8933
9767
  export declare const zVillageCollectiveSearchResult: z.ZodObject<{
8934
9768
  description: z.ZodNullable<z.ZodString>;
8935
9769
  id: z.ZodUUID;
@@ -9224,6 +10058,14 @@ export declare const zVillageGroupTranscript: z.ZodObject<{
9224
10058
  }>;
9225
10059
  project_remote_label: z.ZodString;
9226
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>;
9227
10069
  purpose: z.ZodOptional<z.ZodEnum<{
9228
10070
  unknown: "unknown";
9229
10071
  interaction: "interaction";
@@ -9368,6 +10210,7 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
9368
10210
  }, z.core.$strip>>>;
9369
10211
  stats: z.ZodObject<{
9370
10212
  contributor_count: z.ZodInt;
10213
+ pull_request_count: z.ZodInt;
9371
10214
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
9372
10215
  total_tokens: z.ZodCoercedBigInt<unknown>;
9373
10216
  total_transcripts: z.ZodInt;
@@ -9435,6 +10278,14 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
9435
10278
  }>;
9436
10279
  project_remote_label: z.ZodString;
9437
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>;
9438
10289
  purpose: z.ZodOptional<z.ZodEnum<{
9439
10290
  unknown: "unknown";
9440
10291
  interaction: "interaction";
@@ -9629,6 +10480,7 @@ export declare const zVillagePullRequestAttachment: z.ZodObject<{
9629
10480
  confirmed_at: z.ZodNullable<z.ZodISODateTime>;
9630
10481
  created_at: z.ZodISODateTime;
9631
10482
  detached_at: z.ZodNullable<z.ZodISODateTime>;
10483
+ head_ref: z.ZodNullable<z.ZodString>;
9632
10484
  head_sha: z.ZodString;
9633
10485
  id: z.ZodUUID;
9634
10486
  is_private_repository: z.ZodBoolean;
@@ -9643,6 +10495,7 @@ export declare const zVillagePullRequestAttachment: z.ZodObject<{
9643
10495
  attached: "attached";
9644
10496
  detached: "detached";
9645
10497
  }>;
10498
+ title: z.ZodNullable<z.ZodString>;
9646
10499
  updated_at: z.ZodISODateTime;
9647
10500
  }, z.core.$strip>;
9648
10501
  export type VillagePullRequestAttachment = z.infer<typeof zVillagePullRequestAttachment>;
@@ -9654,6 +10507,7 @@ export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
9654
10507
  confirmed_at: z.ZodNullable<z.ZodISODateTime>;
9655
10508
  created_at: z.ZodISODateTime;
9656
10509
  detached_at: z.ZodNullable<z.ZodISODateTime>;
10510
+ head_ref: z.ZodNullable<z.ZodString>;
9657
10511
  head_sha: z.ZodString;
9658
10512
  id: z.ZodUUID;
9659
10513
  is_private_repository: z.ZodBoolean;
@@ -9668,6 +10522,7 @@ export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
9668
10522
  attached: "attached";
9669
10523
  detached: "detached";
9670
10524
  }>;
10525
+ title: z.ZodNullable<z.ZodString>;
9671
10526
  updated_at: z.ZodISODateTime;
9672
10527
  }, z.core.$strip>;
9673
10528
  digest: z.ZodNullable<z.ZodObject<{
@@ -9931,6 +10786,7 @@ export declare const zVillageUpdateGroupRequest: z.ZodObject<{
9931
10786
  }, z.core.$strip>;
9932
10787
  export type VillageUpdateGroupRequest = z.infer<typeof zVillageUpdateGroupRequest>;
9933
10788
  export declare const zVillageUpdateUserSettingsRequest: z.ZodObject<{
10789
+ auto_attach_pull_requests: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9934
10790
  preview_before_attach: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9935
10791
  }, z.core.$strip>;
9936
10792
  export type VillageUpdateUserSettingsRequest = z.infer<typeof zVillageUpdateUserSettingsRequest>;
@@ -9975,6 +10831,14 @@ export declare const zVillageTranscriptListRow: z.ZodObject<{
9975
10831
  org_login: z.ZodString;
9976
10832
  user_id: z.ZodUUID;
9977
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>;
9978
10842
  shares: z.ZodNullable<z.ZodArray<z.ZodObject<{
9979
10843
  acceptance_mode: z.ZodEnum<{
9980
10844
  open: "open";
@@ -10161,6 +11025,14 @@ export declare const zVillageTranscriptListResponse: z.ZodObject<{
10161
11025
  org_login: z.ZodString;
10162
11026
  user_id: z.ZodUUID;
10163
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>;
10164
11036
  shares: z.ZodNullable<z.ZodArray<z.ZodObject<{
10165
11037
  acceptance_mode: z.ZodEnum<{
10166
11038
  open: "open";
@@ -10568,6 +11440,94 @@ export declare const zVillageUserGroup: z.ZodObject<{
10568
11440
  updated_at: z.ZodISODateTime;
10569
11441
  }, z.core.$strip>;
10570
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>;
10571
11531
  export declare const zVillageUserGroupShare: z.ZodObject<{
10572
11532
  id: z.ZodUUID;
10573
11533
  input_submission_count: z.ZodOptional<z.ZodInt>;
@@ -10697,6 +11657,14 @@ export declare const zVillageSessionRow: z.ZodObject<{
10697
11657
  }>;
10698
11658
  project_remote_label: z.ZodString;
10699
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>;
10700
11668
  purpose: z.ZodOptional<z.ZodEnum<{
10701
11669
  unknown: "unknown";
10702
11670
  interaction: "interaction";
@@ -11178,6 +12146,14 @@ export declare const zVillageSessionListItem: z.ZodObject<{
11178
12146
  }>;
11179
12147
  project_remote_label: z.ZodString;
11180
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>;
11181
12157
  purpose: z.ZodOptional<z.ZodEnum<{
11182
12158
  unknown: "unknown";
11183
12159
  interaction: "interaction";
@@ -11662,6 +12638,14 @@ export declare const zVillageHelperMembersPayload: z.ZodObject<{
11662
12638
  }>;
11663
12639
  project_remote_label: z.ZodString;
11664
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>;
11665
12649
  purpose: z.ZodOptional<z.ZodEnum<{
11666
12650
  unknown: "unknown";
11667
12651
  interaction: "interaction";
@@ -12120,6 +13104,14 @@ export declare const zVillageHelperMembersPayload: z.ZodObject<{
12120
13104
  }>;
12121
13105
  project_remote_label: z.ZodString;
12122
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>;
12123
13115
  purpose: z.ZodOptional<z.ZodEnum<{
12124
13116
  unknown: "unknown";
12125
13117
  interaction: "interaction";
@@ -12607,6 +13599,14 @@ export declare const zVillageSessionListPayload: z.ZodObject<{
12607
13599
  }>;
12608
13600
  project_remote_label: z.ZodString;
12609
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>;
12610
13610
  purpose: z.ZodOptional<z.ZodEnum<{
12611
13611
  unknown: "unknown";
12612
13612
  interaction: "interaction";
@@ -13098,6 +14098,14 @@ export declare const zVillageGroupedContributableResponse: z.ZodObject<{
13098
14098
  }>;
13099
14099
  project_remote_label: z.ZodString;
13100
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>;
13101
14109
  purpose: z.ZodOptional<z.ZodEnum<{
13102
14110
  unknown: "unknown";
13103
14111
  interaction: "interaction";
@@ -13567,6 +14575,7 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
13567
14575
  }, z.core.$strip>>>;
13568
14576
  stats: z.ZodObject<{
13569
14577
  contributor_count: z.ZodInt;
14578
+ pull_request_count: z.ZodInt;
13570
14579
  total_duration_ms: z.ZodCoercedBigInt<unknown>;
13571
14580
  total_tokens: z.ZodCoercedBigInt<unknown>;
13572
14581
  total_transcripts: z.ZodInt;
@@ -13664,6 +14673,14 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
13664
14673
  }>;
13665
14674
  project_remote_label: z.ZodString;
13666
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>;
13667
14684
  purpose: z.ZodOptional<z.ZodEnum<{
13668
14685
  unknown: "unknown";
13669
14686
  interaction: "interaction";
@@ -14070,9 +15087,18 @@ export declare const zVillageGroupedGroupDetailResponse: z.ZodObject<{
14070
15087
  }, z.core.$strip>;
14071
15088
  export type VillageGroupedGroupDetailResponse = z.infer<typeof zVillageGroupedGroupDetailResponse>;
14072
15089
  export declare const zVillageUserSettings: z.ZodObject<{
15090
+ auto_attach_pull_requests: z.ZodBoolean;
14073
15091
  preview_before_attach: z.ZodBoolean;
14074
15092
  }, z.core.$strip>;
14075
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>;
14076
15102
  export declare const zVillageVisibleGroup: z.ZodObject<{
14077
15103
  acceptance_mode: z.ZodEnum<{
14078
15104
  open: "open";