@peasant-labs/schema 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ export * from "./internal/generated/enums.gen.js";
3
3
  export * from "./internal/generated/content-capabilities.gen.js";
4
4
  export * from "./internal/generated/versions.gen.js";
5
5
  import { zNativeMetadataRecord, zTurnDetail, zProjectHash, zServerMessage, zSessionDetailPayload, zTranscriptContent } from "./internal/generated/contract/zod.gen.js";
6
+ import { maxNativeMetadataStringBytes } from "./internal/generated/metadata-limits.gen.js";
6
7
  function assertProjectHash(value, operation) {
7
8
  if (!isProjectHash(value)) {
8
9
  const rendered = renderProjectHashInput(value);
@@ -124,8 +125,8 @@ class RawJsonScanner {
124
125
  const value = this.string();
125
126
  if (path === "/type")
126
127
  this.rootMessageType = value;
127
- if (opaque && new TextEncoder().encode(value).length > 16384)
128
- this.fail("metadata string exceeds 16 KiB");
128
+ if (opaque && new TextEncoder().encode(value).length > maxNativeMetadataStringBytes)
129
+ this.fail(`metadata string exceeds ${maxNativeMetadataStringBytes} UTF-8 bytes`);
129
130
  return;
130
131
  }
131
132
  if (c === "t")
@@ -284,6 +285,8 @@ function validateTurnEvidence(targets) {
284
285
  validateUsage(turn.usage, owners, sources);
285
286
  }
286
287
  for (const tool of turn.toolCalls ?? []) {
288
+ if (tool.namespace !== undefined && !validUnicode(tool.namespace))
289
+ failSemantic("tool namespace contains invalid Unicode; provide a valid string or omit unrecorded namespace");
287
290
  if (!validOptionalRef(tool.id))
288
291
  failSemantic("tool id reference is invalid or exceeds 96 bytes");
289
292
  if (tool.id && toolIds.has(tool.id))
@@ -396,8 +399,8 @@ function validUnicode(value) {
396
399
  function validateMetadataValue(value, depth) {
397
400
  if (depth > 32)
398
401
  failSemantic("metadata data exceeds depth 32");
399
- if (typeof value === "string" && (!validUnicode(value) || new TextEncoder().encode(value).length > 16384))
400
- failSemantic("metadata string is invalid Unicode or exceeds 16 KiB");
402
+ if (typeof value === "string" && (!validUnicode(value) || new TextEncoder().encode(value).length > maxNativeMetadataStringBytes))
403
+ failSemantic(`metadata string is invalid Unicode or exceeds ${maxNativeMetadataStringBytes} UTF-8 bytes`);
401
404
  if (typeof value === "number" && (!Number.isFinite(value) || (Number.isInteger(value) && !Number.isSafeInteger(value))))
402
405
  failSemantic("metadata number is outside the finite JS-safe domain");
403
406
  if (value !== null && !["string", "number", "boolean", "object"].includes(typeof value))
@@ -11,6 +11,7 @@ export declare const KnownContentCapability: Readonly<{
11
11
  readonly DetailedUsageV1: "detailed_usage_v1";
12
12
  readonly NativeMetadataV1: "native_metadata_v1";
13
13
  readonly ObservedModelV1: "observed_model_v1";
14
+ readonly ToolNamespaceV1: "tool_namespace_v1";
14
15
  }>;
15
16
  export type KnownContentCapability = (typeof KnownContentCapability)[keyof typeof KnownContentCapability];
16
17
  export declare const AllContentCapabilities: readonly KnownContentCapability[];
@@ -12,8 +12,9 @@ export const KnownContentCapability = Object.freeze({
12
12
  DetailedUsageV1: "detailed_usage_v1",
13
13
  NativeMetadataV1: "native_metadata_v1",
14
14
  ObservedModelV1: "observed_model_v1",
15
+ ToolNamespaceV1: "tool_namespace_v1",
15
16
  });
16
- export const AllContentCapabilities = Object.freeze([KnownContentCapability.DetailedUsageV1, KnownContentCapability.NativeMetadataV1, KnownContentCapability.ObservedModelV1]);
17
+ export const AllContentCapabilities = Object.freeze([KnownContentCapability.DetailedUsageV1, KnownContentCapability.NativeMetadataV1, KnownContentCapability.ObservedModelV1, KnownContentCapability.ToolNamespaceV1]);
17
18
  export function isContentCapability(value) {
18
19
  return typeof value === "string" && AllContentCapabilities.includes(value);
19
20
  }
@@ -335,6 +335,11 @@ export declare const zChildSessionRef: z.ZodObject<{
335
335
  startTime: z.ZodISODateTime;
336
336
  }, z.core.$strip>;
337
337
  export type ChildSessionRef = z.infer<typeof zChildSessionRef>;
338
+ export declare const zCommandInvocation: z.ZodObject<{
339
+ args: z.ZodOptional<z.ZodString>;
340
+ name: z.ZodString;
341
+ }, z.core.$strip>;
342
+ export type CommandInvocation = z.infer<typeof zCommandInvocation>;
338
343
  export declare const zCommitInfo: z.ZodObject<{
339
344
  authorEmail: z.ZodString;
340
345
  authorName: z.ZodString;
@@ -487,6 +492,18 @@ export declare const zDiffHunk: z.ZodObject<{
487
492
  sessionTitle: z.ZodOptional<z.ZodString>;
488
493
  }, z.core.$strip>;
489
494
  export type DiffHunk = z.infer<typeof zDiffHunk>;
495
+ /**
496
+ * Digest Item Kind
497
+ *
498
+ * Kind of one item in the prompt digest chain: a session boundary, a human prompt, a skill invocation marker, or a commit anchor
499
+ */
500
+ export declare const zDigestItemKind: z.ZodEnum<{
501
+ session: "session";
502
+ prompt: "prompt";
503
+ skill: "skill";
504
+ commit: "commit";
505
+ }>;
506
+ export type DigestItemKind = z.infer<typeof zDigestItemKind>;
490
507
  /**
491
508
  * Edge Violation Kind
492
509
  *
@@ -955,6 +972,30 @@ export declare const zProjectSummariesPayload: z.ZodObject<{
955
972
  }, z.core.$strip>>>;
956
973
  }, z.core.$strip>;
957
974
  export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
975
+ export declare const zPromptDigestHeader: z.ZodObject<{
976
+ commitsCovered: z.ZodInt;
977
+ commitsTotal: z.ZodInt;
978
+ harness: z.ZodEnum<{
979
+ strike: "strike";
980
+ cursor: "cursor";
981
+ "claude-code": "claude-code";
982
+ "gemini-cli": "gemini-cli";
983
+ codex: "codex";
984
+ opencode: "opencode";
985
+ antigravity: "antigravity";
986
+ pi: "pi";
987
+ }>;
988
+ promptCount: z.ZodInt;
989
+ redactionLevel: z.ZodString;
990
+ sessionCount: z.ZodInt;
991
+ villageUrl: z.ZodString;
992
+ }, z.core.$strip>;
993
+ export type PromptDigestHeader = z.infer<typeof zPromptDigestHeader>;
994
+ export declare const zPromptDigestSkill: z.ZodObject<{
995
+ invocationCount: z.ZodInt;
996
+ name: z.ZodString;
997
+ }, z.core.$strip>;
998
+ export type PromptDigestSkill = z.infer<typeof zPromptDigestSkill>;
958
999
  export declare const zProvenance: z.ZodObject<{
959
1000
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
960
1001
  function: z.ZodOptional<z.ZodString>;
@@ -3323,6 +3364,64 @@ export type CanonicalPublishOperation = z.infer<typeof zCanonicalPublishOperatio
3323
3364
  */
3324
3365
  export declare const zTranscriptID: z.ZodUUID;
3325
3366
  export type TranscriptID = z.infer<typeof zTranscriptID>;
3367
+ export declare const zPromptDigestItem: z.ZodObject<{
3368
+ commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3369
+ commitSha: z.ZodOptional<z.ZodString>;
3370
+ kind: z.ZodEnum<{
3371
+ session: "session";
3372
+ prompt: "prompt";
3373
+ skill: "skill";
3374
+ commit: "commit";
3375
+ }>;
3376
+ ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3377
+ promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3378
+ text: z.ZodString;
3379
+ timestamp: z.ZodISODateTime;
3380
+ transcriptId: z.ZodUUID;
3381
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3382
+ }, z.core.$strip>;
3383
+ export type PromptDigestItem = z.infer<typeof zPromptDigestItem>;
3384
+ export declare const zPromptDigest: z.ZodObject<{
3385
+ header: z.ZodObject<{
3386
+ commitsCovered: z.ZodInt;
3387
+ commitsTotal: z.ZodInt;
3388
+ harness: z.ZodEnum<{
3389
+ strike: "strike";
3390
+ cursor: "cursor";
3391
+ "claude-code": "claude-code";
3392
+ "gemini-cli": "gemini-cli";
3393
+ codex: "codex";
3394
+ opencode: "opencode";
3395
+ antigravity: "antigravity";
3396
+ pi: "pi";
3397
+ }>;
3398
+ promptCount: z.ZodInt;
3399
+ redactionLevel: z.ZodString;
3400
+ sessionCount: z.ZodInt;
3401
+ villageUrl: z.ZodString;
3402
+ }, z.core.$strip>;
3403
+ items: z.ZodArray<z.ZodObject<{
3404
+ commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3405
+ commitSha: z.ZodOptional<z.ZodString>;
3406
+ kind: z.ZodEnum<{
3407
+ session: "session";
3408
+ prompt: "prompt";
3409
+ skill: "skill";
3410
+ commit: "commit";
3411
+ }>;
3412
+ ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3413
+ promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3414
+ text: z.ZodString;
3415
+ timestamp: z.ZodISODateTime;
3416
+ transcriptId: z.ZodUUID;
3417
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3418
+ }, z.core.$strip>>;
3419
+ skills: z.ZodArray<z.ZodObject<{
3420
+ invocationCount: z.ZodInt;
3421
+ name: z.ZodString;
3422
+ }, z.core.$strip>>;
3423
+ }, z.core.$strip>;
3424
+ export type PromptDigest = z.infer<typeof zPromptDigest>;
3326
3425
  export declare const zPullSkipGateItem: z.ZodObject<{
3327
3426
  annotationHashes: z.ZodArray<z.ZodString>;
3328
3427
  contentHash: z.ZodString;
@@ -3798,6 +3897,7 @@ export declare const zToolCallDetail: z.ZodObject<{
3798
3897
  id: z.ZodString;
3799
3898
  isError: z.ZodOptional<z.ZodBoolean>;
3800
3899
  name: z.ZodString;
3900
+ namespace: z.ZodOptional<z.ZodString>;
3801
3901
  result: z.ZodString;
3802
3902
  resultEntryRef: z.ZodOptional<z.ZodString>;
3803
3903
  toolKind: z.ZodOptional<z.ZodEnum<{
@@ -3846,6 +3946,10 @@ export declare const zToolCallDetail: z.ZodObject<{
3846
3946
  export type ToolCallDetail = z.infer<typeof zToolCallDetail>;
3847
3947
  export declare const zTurnDetail: z.ZodObject<{
3848
3948
  agentName: z.ZodOptional<z.ZodString>;
3949
+ command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3950
+ args: z.ZodOptional<z.ZodString>;
3951
+ name: z.ZodString;
3952
+ }, z.core.$strip>>>;
3849
3953
  content: z.ZodString;
3850
3954
  depth: z.ZodInt;
3851
3955
  entryType: z.ZodOptional<z.ZodEnum<{
@@ -3887,6 +3991,7 @@ export declare const zTurnDetail: z.ZodObject<{
3887
3991
  id: z.ZodString;
3888
3992
  isError: z.ZodOptional<z.ZodBoolean>;
3889
3993
  name: z.ZodString;
3994
+ namespace: z.ZodOptional<z.ZodString>;
3890
3995
  result: z.ZodString;
3891
3996
  resultEntryRef: z.ZodOptional<z.ZodString>;
3892
3997
  toolKind: z.ZodOptional<z.ZodEnum<{
@@ -4057,6 +4162,10 @@ export declare const zSessionDetailPayload: z.ZodObject<{
4057
4162
  turnCount: z.ZodInt;
4058
4163
  turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
4059
4164
  agentName: z.ZodOptional<z.ZodString>;
4165
+ command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4166
+ args: z.ZodOptional<z.ZodString>;
4167
+ name: z.ZodString;
4168
+ }, z.core.$strip>>>;
4060
4169
  content: z.ZodString;
4061
4170
  depth: z.ZodInt;
4062
4171
  entryType: z.ZodOptional<z.ZodEnum<{
@@ -4098,6 +4207,7 @@ export declare const zSessionDetailPayload: z.ZodObject<{
4098
4207
  id: z.ZodString;
4099
4208
  isError: z.ZodOptional<z.ZodBoolean>;
4100
4209
  name: z.ZodString;
4210
+ namespace: z.ZodOptional<z.ZodString>;
4101
4211
  result: z.ZodString;
4102
4212
  resultEntryRef: z.ZodOptional<z.ZodString>;
4103
4213
  toolKind: z.ZodOptional<z.ZodEnum<{
@@ -4275,6 +4385,10 @@ export declare const zTranscriptContent: z.ZodObject<{
4275
4385
  turnCount: z.ZodInt;
4276
4386
  turns: z.ZodNullable<z.ZodArray<z.ZodObject<{
4277
4387
  agentName: z.ZodOptional<z.ZodString>;
4388
+ command: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4389
+ args: z.ZodOptional<z.ZodString>;
4390
+ name: z.ZodString;
4391
+ }, z.core.$strip>>>;
4278
4392
  content: z.ZodString;
4279
4393
  depth: z.ZodInt;
4280
4394
  entryType: z.ZodOptional<z.ZodEnum<{
@@ -4316,6 +4430,7 @@ export declare const zTranscriptContent: z.ZodObject<{
4316
4430
  id: z.ZodString;
4317
4431
  isError: z.ZodOptional<z.ZodBoolean>;
4318
4432
  name: z.ZodString;
4433
+ namespace: z.ZodOptional<z.ZodString>;
4319
4434
  result: z.ZodString;
4320
4435
  resultEntryRef: z.ZodOptional<z.ZodString>;
4321
4436
  toolKind: z.ZodOptional<z.ZodEnum<{
@@ -4636,6 +4751,13 @@ export declare const zVillageErrorResponse: z.ZodObject<{
4636
4751
  error: z.ZodString;
4637
4752
  }, z.core.$strip>;
4638
4753
  export type VillageErrorResponse = z.infer<typeof zVillageErrorResponse>;
4754
+ /**
4755
+ * GitHub Webhook Payload
4756
+ *
4757
+ * GitHub event payload forwarded verbatim; validated by the X-Hub-Signature-256 HMAC over the raw body, never by shape
4758
+ */
4759
+ export declare const zVillageGitHubWebhookPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4760
+ export type VillageGitHubWebhookPayload = z.infer<typeof zVillageGitHubWebhookPayload>;
4639
4761
  /**
4640
4762
  * Village Group Acceptance Mode
4641
4763
  *
@@ -4752,6 +4874,61 @@ export declare const zVillageProjectNameSource: z.ZodEnum<{
4752
4874
  privacy: "privacy";
4753
4875
  }>;
4754
4876
  export type VillageProjectNameSource = z.infer<typeof zVillageProjectNameSource>;
4877
+ /**
4878
+ * Village Prompts Check Mode
4879
+ *
4880
+ * Check-run conclusion policy for a collective's linked repositories when no prompts are attached
4881
+ */
4882
+ export declare const zVillagePromptsCheckMode: z.ZodEnum<{
4883
+ required: "required";
4884
+ informational: "informational";
4885
+ }>;
4886
+ export type VillagePromptsCheckMode = z.infer<typeof zVillagePromptsCheckMode>;
4887
+ /**
4888
+ * Village Pull Request Attachment State
4889
+ *
4890
+ * Current lifecycle state of a pull request's prompt attachment
4891
+ */
4892
+ export declare const zVillagePullRequestAttachmentState: z.ZodEnum<{
4893
+ waiting: "waiting";
4894
+ preview: "preview";
4895
+ requested: "requested";
4896
+ attached: "attached";
4897
+ detached: "detached";
4898
+ }>;
4899
+ export type VillagePullRequestAttachmentState = z.infer<typeof zVillagePullRequestAttachmentState>;
4900
+ export declare const zVillagePromptRequest: z.ZodObject<{
4901
+ name: z.ZodString;
4902
+ number: z.ZodInt;
4903
+ owner: z.ZodString;
4904
+ remote: z.ZodString;
4905
+ requested_at: z.ZodISODateTime;
4906
+ state: z.ZodEnum<{
4907
+ waiting: "waiting";
4908
+ preview: "preview";
4909
+ requested: "requested";
4910
+ attached: "attached";
4911
+ detached: "detached";
4912
+ }>;
4913
+ }, z.core.$strip>;
4914
+ export type VillagePromptRequest = z.infer<typeof zVillagePromptRequest>;
4915
+ export declare const zVillagePromptRequestsResponse: z.ZodObject<{
4916
+ requests: z.ZodArray<z.ZodObject<{
4917
+ name: z.ZodString;
4918
+ number: z.ZodInt;
4919
+ owner: z.ZodString;
4920
+ remote: z.ZodString;
4921
+ requested_at: z.ZodISODateTime;
4922
+ state: z.ZodEnum<{
4923
+ waiting: "waiting";
4924
+ preview: "preview";
4925
+ requested: "requested";
4926
+ attached: "attached";
4927
+ detached: "detached";
4928
+ }>;
4929
+ }, z.core.$strip>>;
4930
+ }, z.core.$strip>;
4931
+ export type VillagePromptRequestsResponse = z.infer<typeof zVillagePromptRequestsResponse>;
4755
4932
  export declare const zVillageRemoveGroupMemberResponse: z.ZodObject<{
4756
4933
  retracted: z.ZodBoolean;
4757
4934
  status: z.ZodString;
@@ -4913,6 +5090,18 @@ export declare const zVillageContributableTranscript: z.ZodObject<{
4913
5090
  }>;
4914
5091
  }, z.core.$strip>;
4915
5092
  export type VillageContributableTranscript = z.infer<typeof zVillageContributableTranscript>;
5093
+ export declare const zVillagePullRequestAttachedTranscript: z.ZodObject<{
5094
+ position: z.ZodInt;
5095
+ previous_visibility: z.ZodEnum<{
5096
+ shared: "shared";
5097
+ private: "private";
5098
+ public: "public";
5099
+ }>;
5100
+ session_start: z.ZodNullable<z.ZodISODateTime>;
5101
+ title: z.ZodNullable<z.ZodString>;
5102
+ transcript_id: z.ZodUUID;
5103
+ }, z.core.$strip>;
5104
+ export type VillagePullRequestAttachedTranscript = z.infer<typeof zVillagePullRequestAttachedTranscript>;
4916
5105
  /**
4917
5106
  * Village UUID
4918
5107
  *
@@ -5030,6 +5219,11 @@ export declare const zVillageGroup: z.ZodObject<{
5030
5219
  id: z.ZodUUID;
5031
5220
  linked_github_org: z.ZodNullable<z.ZodString>;
5032
5221
  name: z.ZodString;
5222
+ post_prompts_check: z.ZodBoolean;
5223
+ prompts_check_mode: z.ZodEnum<{
5224
+ required: "required";
5225
+ informational: "informational";
5226
+ }>;
5033
5227
  transcript_deletion_policy: z.ZodEnum<{
5034
5228
  user_choice: "user_choice";
5035
5229
  mandatory: "mandatory";
@@ -5181,6 +5375,11 @@ export declare const zVillageGroupDetailResponse: z.ZodObject<{
5181
5375
  id: z.ZodUUID;
5182
5376
  linked_github_org: z.ZodNullable<z.ZodString>;
5183
5377
  name: z.ZodString;
5378
+ post_prompts_check: z.ZodBoolean;
5379
+ prompts_check_mode: z.ZodEnum<{
5380
+ required: "required";
5381
+ informational: "informational";
5382
+ }>;
5184
5383
  transcript_deletion_policy: z.ZodEnum<{
5185
5384
  user_choice: "user_choice";
5186
5385
  mandatory: "mandatory";
@@ -5391,6 +5590,108 @@ export declare const zVillagePublicGroup: z.ZodObject<{
5391
5590
  transcript_count: z.ZodInt;
5392
5591
  }, z.core.$strip>;
5393
5592
  export type VillagePublicGroup = z.infer<typeof zVillagePublicGroup>;
5593
+ export declare const zVillagePullRequestAttachment: z.ZodObject<{
5594
+ author_user_id: z.ZodNullable<z.ZodUUID>;
5595
+ check_run_id: z.ZodNullable<z.ZodInt>;
5596
+ comment_id: z.ZodNullable<z.ZodInt>;
5597
+ confirmed_at: z.ZodNullable<z.ZodISODateTime>;
5598
+ created_at: z.ZodISODateTime;
5599
+ detached_at: z.ZodNullable<z.ZodISODateTime>;
5600
+ head_sha: z.ZodString;
5601
+ id: z.ZodUUID;
5602
+ is_private_repository: z.ZodBoolean;
5603
+ name: z.ZodString;
5604
+ number: z.ZodInt;
5605
+ owner: z.ZodString;
5606
+ requested_by_github_id: z.ZodNullable<z.ZodInt>;
5607
+ state: z.ZodEnum<{
5608
+ waiting: "waiting";
5609
+ preview: "preview";
5610
+ requested: "requested";
5611
+ attached: "attached";
5612
+ detached: "detached";
5613
+ }>;
5614
+ updated_at: z.ZodISODateTime;
5615
+ }, z.core.$strip>;
5616
+ export type VillagePullRequestAttachment = z.infer<typeof zVillagePullRequestAttachment>;
5617
+ export declare const zVillagePullRequestAttachmentResponse: z.ZodObject<{
5618
+ attachment: z.ZodObject<{
5619
+ author_user_id: z.ZodNullable<z.ZodUUID>;
5620
+ check_run_id: z.ZodNullable<z.ZodInt>;
5621
+ comment_id: z.ZodNullable<z.ZodInt>;
5622
+ confirmed_at: z.ZodNullable<z.ZodISODateTime>;
5623
+ created_at: z.ZodISODateTime;
5624
+ detached_at: z.ZodNullable<z.ZodISODateTime>;
5625
+ head_sha: z.ZodString;
5626
+ id: z.ZodUUID;
5627
+ is_private_repository: z.ZodBoolean;
5628
+ name: z.ZodString;
5629
+ number: z.ZodInt;
5630
+ owner: z.ZodString;
5631
+ requested_by_github_id: z.ZodNullable<z.ZodInt>;
5632
+ state: z.ZodEnum<{
5633
+ waiting: "waiting";
5634
+ preview: "preview";
5635
+ requested: "requested";
5636
+ attached: "attached";
5637
+ detached: "detached";
5638
+ }>;
5639
+ updated_at: z.ZodISODateTime;
5640
+ }, z.core.$strip>;
5641
+ digest: z.ZodNullable<z.ZodObject<{
5642
+ header: z.ZodObject<{
5643
+ commitsCovered: z.ZodInt;
5644
+ commitsTotal: z.ZodInt;
5645
+ harness: z.ZodEnum<{
5646
+ strike: "strike";
5647
+ cursor: "cursor";
5648
+ "claude-code": "claude-code";
5649
+ "gemini-cli": "gemini-cli";
5650
+ codex: "codex";
5651
+ opencode: "opencode";
5652
+ antigravity: "antigravity";
5653
+ pi: "pi";
5654
+ }>;
5655
+ promptCount: z.ZodInt;
5656
+ redactionLevel: z.ZodString;
5657
+ sessionCount: z.ZodInt;
5658
+ villageUrl: z.ZodString;
5659
+ }, z.core.$strip>;
5660
+ items: z.ZodArray<z.ZodObject<{
5661
+ commitCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5662
+ commitSha: z.ZodOptional<z.ZodString>;
5663
+ kind: z.ZodEnum<{
5664
+ session: "session";
5665
+ prompt: "prompt";
5666
+ skill: "skill";
5667
+ commit: "commit";
5668
+ }>;
5669
+ ordinal: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5670
+ promptCount: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5671
+ text: z.ZodString;
5672
+ timestamp: z.ZodISODateTime;
5673
+ transcriptId: z.ZodUUID;
5674
+ turnIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
5675
+ }, z.core.$strip>>;
5676
+ skills: z.ZodArray<z.ZodObject<{
5677
+ invocationCount: z.ZodInt;
5678
+ name: z.ZodString;
5679
+ }, z.core.$strip>>;
5680
+ }, z.core.$strip>>;
5681
+ transcripts: z.ZodArray<z.ZodObject<{
5682
+ position: z.ZodInt;
5683
+ previous_visibility: z.ZodEnum<{
5684
+ shared: "shared";
5685
+ private: "private";
5686
+ public: "public";
5687
+ }>;
5688
+ session_start: z.ZodNullable<z.ZodISODateTime>;
5689
+ title: z.ZodNullable<z.ZodString>;
5690
+ transcript_id: z.ZodUUID;
5691
+ }, z.core.$strip>>;
5692
+ viewer_is_author: z.ZodBoolean;
5693
+ }, z.core.$strip>;
5694
+ export type VillagePullRequestAttachmentResponse = z.infer<typeof zVillagePullRequestAttachmentResponse>;
5394
5695
  export declare const zVillageShareTranscriptRequest: z.ZodObject<{
5395
5696
  group_ids: z.ZodArray<z.ZodUUID>;
5396
5697
  }, z.core.$strip>;
@@ -5527,12 +5828,21 @@ export declare const zVillageUpdateGroupRequest: z.ZodObject<{
5527
5828
  display_members: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5528
5829
  linked_github_org: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5529
5830
  name: z.ZodOptional<z.ZodString>;
5831
+ post_prompts_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5832
+ prompts_check_mode: z.ZodOptional<z.ZodEnum<{
5833
+ required: "required";
5834
+ informational: "informational";
5835
+ }>>;
5530
5836
  transcript_deletion_policy: z.ZodOptional<z.ZodEnum<{
5531
5837
  user_choice: "user_choice";
5532
5838
  mandatory: "mandatory";
5533
5839
  }>>;
5534
5840
  }, z.core.$strip>;
5535
5841
  export type VillageUpdateGroupRequest = z.infer<typeof zVillageUpdateGroupRequest>;
5842
+ export declare const zVillageUpdateUserSettingsRequest: z.ZodObject<{
5843
+ preview_before_attach: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5844
+ }, z.core.$strip>;
5845
+ export type VillageUpdateUserSettingsRequest = z.infer<typeof zVillageUpdateUserSettingsRequest>;
5536
5846
  export declare const zVillageUserGroup: z.ZodObject<{
5537
5847
  acceptance_mode: z.ZodEnum<{
5538
5848
  open: "open";
@@ -5594,6 +5904,10 @@ export declare const zVillageUserGroupShare: z.ZodObject<{
5594
5904
  }>;
5595
5905
  }, z.core.$strip>;
5596
5906
  export type VillageUserGroupShare = z.infer<typeof zVillageUserGroupShare>;
5907
+ export declare const zVillageUserSettings: z.ZodObject<{
5908
+ preview_before_attach: z.ZodBoolean;
5909
+ }, z.core.$strip>;
5910
+ export type VillageUserSettings = z.infer<typeof zVillageUserSettings>;
5597
5911
  export declare const zVillageVisibleGroup: z.ZodObject<{
5598
5912
  acceptance_mode: z.ZodEnum<{
5599
5913
  open: "open";