@peasant-labs/schema 0.1.0-rc10 → 0.1.0-rc11

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.
@@ -2522,6 +2522,43 @@ export declare const zPullSkipGateResponse: z.ZodObject<{
2522
2522
  }, z.core.$strip>>;
2523
2523
  }, z.core.$strip>;
2524
2524
  export type PullSkipGateResponse = z.infer<typeof zPullSkipGateResponse>;
2525
+ /**
2526
+ * TranscriptUpdateLicense
2527
+ *
2528
+ * License value for the owner transcript update operation: a canonical menu license, or the empty string to clear. Clearing a license that was actually granted is refused, because a granted Creative Commons license is irrevocable.
2529
+ */
2530
+ export declare const zTranscriptUpdateLicense: z.ZodEnum<{
2531
+ "": "";
2532
+ "CC0-1.0": "CC0-1.0";
2533
+ "CC-BY-4.0": "CC-BY-4.0";
2534
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2535
+ }>;
2536
+ export type TranscriptUpdateLicense = z.infer<typeof zTranscriptUpdateLicense>;
2537
+ /**
2538
+ * TranscriptUpdateVisibility
2539
+ *
2540
+ * Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
2541
+ */
2542
+ export declare const zTranscriptUpdateVisibility: z.ZodEnum<{
2543
+ private: "private";
2544
+ public: "public";
2545
+ }>;
2546
+ export type TranscriptUpdateVisibility = z.infer<typeof zTranscriptUpdateVisibility>;
2547
+ export declare const zTranscriptUpdateRequest: z.ZodObject<{
2548
+ description: z.ZodOptional<z.ZodString>;
2549
+ license: z.ZodOptional<z.ZodEnum<{
2550
+ "": "";
2551
+ "CC0-1.0": "CC0-1.0";
2552
+ "CC-BY-4.0": "CC-BY-4.0";
2553
+ "CC-BY-SA-4.0": "CC-BY-SA-4.0";
2554
+ }>>;
2555
+ title: z.ZodOptional<z.ZodString>;
2556
+ visibility: z.ZodOptional<z.ZodEnum<{
2557
+ private: "private";
2558
+ public: "public";
2559
+ }>>;
2560
+ }, z.core.$strict>;
2561
+ export type TranscriptUpdateRequest = z.infer<typeof zTranscriptUpdateRequest>;
2525
2562
  export declare const zTrendsPayload: z.ZodObject<{
2526
2563
  days: z.ZodNullable<z.ZodArray<z.ZodObject<{
2527
2564
  date: z.ZodString;
@@ -1424,6 +1424,29 @@ export const zPullSkipGateResult = z.object({
1424
1424
  export const zPullSkipGateResponse = z.object({
1425
1425
  results: z.array(zPullSkipGateResult)
1426
1426
  });
1427
+ /**
1428
+ * TranscriptUpdateLicense
1429
+ *
1430
+ * License value for the owner transcript update operation: a canonical menu license, or the empty string to clear. Clearing a license that was actually granted is refused, because a granted Creative Commons license is irrevocable.
1431
+ */
1432
+ export const zTranscriptUpdateLicense = z.enum([
1433
+ '',
1434
+ 'CC0-1.0',
1435
+ 'CC-BY-4.0',
1436
+ 'CC-BY-SA-4.0'
1437
+ ]);
1438
+ /**
1439
+ * TranscriptUpdateVisibility
1440
+ *
1441
+ * Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
1442
+ */
1443
+ export const zTranscriptUpdateVisibility = z.enum(['private', 'public']);
1444
+ export const zTranscriptUpdateRequest = z.object({
1445
+ description: z.string().optional(),
1446
+ license: zTranscriptUpdateLicense.optional(),
1447
+ title: z.string().max(500).optional(),
1448
+ visibility: zTranscriptUpdateVisibility.optional()
1449
+ }).strict();
1427
1450
  export const zTrendsPayload = z.object({
1428
1451
  days: z.array(zDayStats).nullable(),
1429
1452
  totalSessions: z.int(),
@@ -35,6 +35,8 @@ import { type TargetKind as TargetKindContract } from "./contract/zod.gen.js";
35
35
  import { type ToolCallKind as ToolCallKindContract } from "./contract/zod.gen.js";
36
36
  import { type TypeOrigin as TypeOriginContract } from "./contract/zod.gen.js";
37
37
  import { type ValueDomainKind as ValueDomainKindContract } from "./contract/zod.gen.js";
38
+ import { type TranscriptUpdateLicense as TranscriptUpdateLicenseContract } from "./contract/zod.gen.js";
39
+ import { type TranscriptUpdateVisibility as TranscriptUpdateVisibilityContract } from "./contract/zod.gen.js";
38
40
  import { type Visibility as VisibilityContract } from "./contract/zod.gen.js";
39
41
  export type AnnotationAxis = AnnotationAxisContract;
40
42
  export declare const AnnotationAxis: Readonly<{
@@ -396,6 +398,22 @@ export declare const ValueDomainKind: Readonly<{
396
398
  }>;
397
399
  export declare const AllValueDomainKinds: readonly ValueDomainKind[];
398
400
  export declare function isValueDomainKind(value: unknown): value is ValueDomainKind;
401
+ export type TranscriptUpdateLicense = TranscriptUpdateLicenseContract;
402
+ export declare const TranscriptUpdateLicense: Readonly<{
403
+ readonly Clear: "" | "CC0-1.0" | "CC-BY-4.0" | "CC-BY-SA-4.0";
404
+ readonly CC0: "" | "CC0-1.0" | "CC-BY-4.0" | "CC-BY-SA-4.0";
405
+ readonly CCBY: "" | "CC0-1.0" | "CC-BY-4.0" | "CC-BY-SA-4.0";
406
+ readonly CCBYSA: "" | "CC0-1.0" | "CC-BY-4.0" | "CC-BY-SA-4.0";
407
+ }>;
408
+ export declare const AllTranscriptUpdateLicenses: readonly TranscriptUpdateLicense[];
409
+ export declare function isTranscriptUpdateLicense(value: unknown): value is TranscriptUpdateLicense;
410
+ export type TranscriptUpdateVisibility = TranscriptUpdateVisibilityContract;
411
+ export declare const TranscriptUpdateVisibility: Readonly<{
412
+ readonly Private: "private" | "public";
413
+ readonly Public: "private" | "public";
414
+ }>;
415
+ export declare const AllTranscriptUpdateVisibilities: readonly TranscriptUpdateVisibility[];
416
+ export declare function isTranscriptUpdateVisibility(value: unknown): value is TranscriptUpdateVisibility;
399
417
  export type Visibility = VisibilityContract;
400
418
  export declare const Visibility: Readonly<{
401
419
  readonly Private: "private" | "public" | "group";
@@ -36,6 +36,8 @@ import { zTargetKind } from "./contract/zod.gen.js";
36
36
  import { zToolCallKind } from "./contract/zod.gen.js";
37
37
  import { zTypeOrigin } from "./contract/zod.gen.js";
38
38
  import { zValueDomainKind } from "./contract/zod.gen.js";
39
+ import { zTranscriptUpdateLicense } from "./contract/zod.gen.js";
40
+ import { zTranscriptUpdateVisibility } from "./contract/zod.gen.js";
39
41
  import { zVisibility } from "./contract/zod.gen.js";
40
42
  export const AnnotationAxis = Object.freeze({
41
43
  Type: zAnnotationAxis.parse("type"),
@@ -434,6 +436,24 @@ export const AllValueDomainKinds = Object.freeze([ValueDomainKind.Enumerated, Va
434
436
  export function isValueDomainKind(value) {
435
437
  return zValueDomainKind.safeParse(value).success;
436
438
  }
439
+ export const TranscriptUpdateLicense = Object.freeze({
440
+ Clear: zTranscriptUpdateLicense.parse(""),
441
+ CC0: zTranscriptUpdateLicense.parse("CC0-1.0"),
442
+ CCBY: zTranscriptUpdateLicense.parse("CC-BY-4.0"),
443
+ CCBYSA: zTranscriptUpdateLicense.parse("CC-BY-SA-4.0"),
444
+ });
445
+ export const AllTranscriptUpdateLicenses = Object.freeze([TranscriptUpdateLicense.Clear, TranscriptUpdateLicense.CC0, TranscriptUpdateLicense.CCBY, TranscriptUpdateLicense.CCBYSA]);
446
+ export function isTranscriptUpdateLicense(value) {
447
+ return zTranscriptUpdateLicense.safeParse(value).success;
448
+ }
449
+ export const TranscriptUpdateVisibility = Object.freeze({
450
+ Private: zTranscriptUpdateVisibility.parse("private"),
451
+ Public: zTranscriptUpdateVisibility.parse("public"),
452
+ });
453
+ export const AllTranscriptUpdateVisibilities = Object.freeze([TranscriptUpdateVisibility.Private, TranscriptUpdateVisibility.Public]);
454
+ export function isTranscriptUpdateVisibility(value) {
455
+ return zTranscriptUpdateVisibility.safeParse(value).success;
456
+ }
437
457
  export const Visibility = Object.freeze({
438
458
  Private: zVisibility.parse("private"),
439
459
  Group: zVisibility.parse("group"),
@@ -1,2 +1,2 @@
1
- export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
2
- export type { ActivityEdge, AnnotationEntryTarget, AnnotationManifestResponse, AnnotationPushResult, AnnotationPushResponse, AnnotatorSummary, AssociationEvidenceObservation, AssociationID, BatchCreateAnnotationsErrorResponse, BatchCreateAnnotationsResponse, CLILoginQuery, ChangeSummary, ChannelSubscription, ChildSessionRef, CommitInfo, ContractVersion, CreateAnnotationRequest, BatchCreateAnnotationsRequest, CreateAnnotationResponse, DashboardPayload, DayStats, DiagnosticEntry, DiagnosticsInfo, DiffLine, DiffHunk, EdgeViolation, ExchangeCodeRequest, ExchangeCodeResponse, ChangeDiffPayload, FileChange, FileFamiliarity, FrictionCluster, HealthResponse, HostSlug, InsightClassification, MapEdge, ClientMessage, MockConfigResponse, ModelID, ModelInfo, ProjectHash, ProjectContext, ProjectResolutionPayload, ProjectSummary, ProjectSummariesPayload, Provenance, PublishResponse, PublishedAssociation, GitContext, MapNode, MapGraphPayload, MapSlice, RedactionInfo, ReviewSuggestion, SchemaVersionResponse, SearchResult, SearchPayload, ServerMessage, SessionID, InsightEvidence, SessionAssociation, CommitRef, RewrittenCommit, SessionIdentity, SessionInsight, QualityMetrics, SessionScorecard, SessionStats, SessionSummary, SessionsPayload, ShutdownResponse, SourceInfo, SubagentRef, AnnotationPushItem, AnnotationPushRequest, AnnotationSummary, AnnotationsPayload, PullAnnotation, QualitySession, QualityPayload, TaskSummary, ChangeSession, MapNodeDetailPayload, ProjectTasksPayload, TimelineSessionRef, ReviewListPayload, TimestampInfo, SessionEntry, PublishRequest, ToolCallDetail, TranscriptID, PullSkipGateItem, PullSkipGateRequest, PullSkipGateResult, PullSkipGateResponse, TrendsPayload, TurnDetail, SessionDetailPayload, TranscriptContent, UnifiedMetadata, UnusualSignal, ChangeDetailPayload, ValueDomain, AnnotationTypeSummary, TaxonomyFamilyNode, TaxonomyNode, PullTranscriptInfo, PullListResponse, WalkthroughStep, WalkthroughTrail, FamiliarityPayload } from "./contract/zod.gen.js";
1
+ export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTranscriptUpdateLicense, zTranscriptUpdateVisibility, zTranscriptUpdateRequest, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
2
+ export type { ActivityEdge, AnnotationEntryTarget, AnnotationManifestResponse, AnnotationPushResult, AnnotationPushResponse, AnnotatorSummary, AssociationEvidenceObservation, AssociationID, BatchCreateAnnotationsErrorResponse, BatchCreateAnnotationsResponse, CLILoginQuery, ChangeSummary, ChannelSubscription, ChildSessionRef, CommitInfo, ContractVersion, CreateAnnotationRequest, BatchCreateAnnotationsRequest, CreateAnnotationResponse, DashboardPayload, DayStats, DiagnosticEntry, DiagnosticsInfo, DiffLine, DiffHunk, EdgeViolation, ExchangeCodeRequest, ExchangeCodeResponse, ChangeDiffPayload, FileChange, FileFamiliarity, FrictionCluster, HealthResponse, HostSlug, InsightClassification, MapEdge, ClientMessage, MockConfigResponse, ModelID, ModelInfo, ProjectHash, ProjectContext, ProjectResolutionPayload, ProjectSummary, ProjectSummariesPayload, Provenance, PublishResponse, PublishedAssociation, GitContext, MapNode, MapGraphPayload, MapSlice, RedactionInfo, ReviewSuggestion, SchemaVersionResponse, SearchResult, SearchPayload, ServerMessage, SessionID, InsightEvidence, SessionAssociation, CommitRef, RewrittenCommit, SessionIdentity, SessionInsight, QualityMetrics, SessionScorecard, SessionStats, SessionSummary, SessionsPayload, ShutdownResponse, SourceInfo, SubagentRef, AnnotationPushItem, AnnotationPushRequest, AnnotationSummary, AnnotationsPayload, PullAnnotation, QualitySession, QualityPayload, TaskSummary, ChangeSession, MapNodeDetailPayload, ProjectTasksPayload, TimelineSessionRef, ReviewListPayload, TimestampInfo, SessionEntry, PublishRequest, ToolCallDetail, TranscriptID, PullSkipGateItem, PullSkipGateRequest, PullSkipGateResult, PullSkipGateResponse, TranscriptUpdateRequest, TrendsPayload, TurnDetail, SessionDetailPayload, TranscriptContent, UnifiedMetadata, UnusualSignal, ChangeDetailPayload, ValueDomain, AnnotationTypeSummary, TaxonomyFamilyNode, TaxonomyNode, PullTranscriptInfo, PullListResponse, WalkthroughStep, WalkthroughTrail, FamiliarityPayload } from "./contract/zod.gen.js";
@@ -1,2 +1,2 @@
1
1
  // Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
2
- export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
2
+ export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTranscriptUpdateLicense, zTranscriptUpdateVisibility, zTranscriptUpdateRequest, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
@@ -1,4 +1,4 @@
1
- export declare const VillageAPIVersion: "0.9.0";
1
+ export declare const VillageAPIVersion: "0.10.0";
2
2
  export declare const PeasantLocalAPIVersion: "0.6.0";
3
- export declare const TypesVersion: "0.6.0";
3
+ export declare const TypesVersion: "0.7.0";
4
4
  export declare const MetadataSchemaVersion: 9;
@@ -1,5 +1,5 @@
1
1
  // Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
2
- export const VillageAPIVersion = "0.9.0";
2
+ export const VillageAPIVersion = "0.10.0";
3
3
  export const PeasantLocalAPIVersion = "0.6.0";
4
- export const TypesVersion = "0.6.0";
4
+ export const TypesVersion = "0.7.0";
5
5
  export const MetadataSchemaVersion = 9;
@@ -187,6 +187,23 @@ export interface paths {
187
187
  patch?: never;
188
188
  trace?: never;
189
189
  };
190
+ "/api/v1/transcripts/{id}": {
191
+ parameters: {
192
+ query?: never;
193
+ header?: never;
194
+ path?: never;
195
+ cookie?: never;
196
+ };
197
+ get?: never;
198
+ put?: never;
199
+ post?: never;
200
+ delete?: never;
201
+ options?: never;
202
+ head?: never;
203
+ /** @description Update an owned transcript's metadata and governance axes. Every field is optional and an omitted field is left unchanged, resolved against the locked stored row so a concurrent edit is not reverted. License is three-valued: omit to preserve, send the empty string to clear, send a menu license to replace. Clearing a license that was actually granted is refused with 400 because a granted Creative Commons license is irrevocable. Only the owner may call this; anyone else receives 403 and neither the transcript nor its governance audit changes. Visibility accepts private and public; organization-scoped visibility is deferred. The village additionally accepts and stores a legacy 'shared' value that is deliberately NOT declared: it is not a member of this contract's Visibility enum at all, whose third member is 'group', and the village refuses 'group'. Declaring 'shared' would mean inventing an enum member to expose the deferred organization-ACL capability, so its absence is a decision. The transcript id is likewise narrower than the server: uuid.Parse also accepts uppercase, brace-wrapped, urn:uuid-prefixed and 32-undashed-hex spellings that the declared pattern rejects. Those stay undeclared because the village only ever emits the canonical lowercase form, so no client holds another unless it manufactures one, and accepting five spellings for one identity is itself a defect surface. Note this document now describes one transcript id two ways: this operation constrains it to the canonical pattern, while the older pull operations still declare a bare string. That difference is not a contradiction about what the village accepts, only about what each operation declares; the pull operations are deliberately untouched here. Omit a field to leave it unchanged; send an empty string to clear a title, a description, or a license. Explicit null is refused on every field, because the server would read it as preserve rather than the clear a caller usually intends, and an unknown field is refused because the server would accept and silently discard it. 400 covers five distinct refusals: an unparseable transcript id, an undecodable body, a visibility outside the accepted set, a license outside the canonical menu, and the attempt to clear a granted license. 401 is returned by the authentication boundary before the handler runs, and is distinct from 403: 401 means the credential is missing or expired and the caller should re-authenticate, while 403 means the caller is authenticated but does not own this transcript. 404 covers both a transcript that does not exist and a lookup that failed, so it must not be read as proof of absence. 500 has two forms and only one carries this body: the handler's own failure returns the envelope, while a panic recovered by the router's middleware returns 500 with an EMPTY body, so a client must tolerate an absent body on 500 rather than assuming the envelope is always present. The refusals are declared while the 200 body is NOT, and that asymmetry is deliberate rather than an oversight. A client must distinguish 403 from 404 from each 400 to tell a user anything useful, so those distinctions are exactly what this contract is for. The success body has no such consumer: the applied state is read back through GET /api/v1/pull/transcripts/{id}. The village does return a 200 body, but it currently serves an untyped object wrapping the stored row's internal columns (owner_id, blob_key, project_hash, source_file_path and others) at backend/internal/handler/transcripts.go:723-727, and those columns serialize through pgtype wrappers, so a consumer would receive {"String":"x","Valid":true} where it expects a string. Declaring a projection the village does not serve would break the property that the served and declared contracts cannot drift, so nothing is declared until the handler serves a shape worth declaring. Tracked at https://github.com/peasant-labs/village/issues/55; adding the response schema later is additive. Do not 'harmonize' this by inventing a success body. */
204
+ patch: operations["updateTranscript"];
205
+ trace?: never;
206
+ };
190
207
  }
191
208
  export type webhooks = Record<string, never>;
192
209
  export interface components {
@@ -213,6 +230,9 @@ export interface components {
213
230
  subagents?: components["schemas"]["SchemaSubagentRef"][];
214
231
  timestamp?: components["schemas"]["SchemaTimestampInfo"];
215
232
  };
233
+ OpenapiTranscriptUpdateErrorResponse: {
234
+ error: string;
235
+ };
216
236
  SchemaAnnotationEntryTarget: Schema.AnnotationEntryTarget;
217
237
  SchemaAnnotationManifestResponse: Schema.AnnotationManifestResponse;
218
238
  SchemaAnnotationPushItem: Schema.AnnotationPushItem;
@@ -378,6 +398,23 @@ export interface components {
378
398
  * @example 99d59925-36bc-424c-a789-8be54d9702ba
379
399
  */
380
400
  SchemaTranscriptID: Schema.TranscriptID;
401
+ /**
402
+ * TranscriptUpdateLicense
403
+ * @description License value for the owner transcript update operation: a canonical menu license, or the empty string to clear. Clearing a license that was actually granted is refused, because a granted Creative Commons license is irrevocable.
404
+ * @example CC-BY-4.0
405
+ * @example
406
+ * @enum {string}
407
+ */
408
+ SchemaTranscriptUpdateLicense: Schema.TranscriptUpdateLicense;
409
+ SchemaTranscriptUpdateRequest: Schema.TranscriptUpdateRequest;
410
+ /**
411
+ * TranscriptUpdateVisibility
412
+ * @description Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
413
+ * @example public
414
+ * @example private
415
+ * @enum {string}
416
+ */
417
+ SchemaTranscriptUpdateVisibility: Schema.TranscriptUpdateVisibility;
381
418
  /**
382
419
  * Visibility
383
420
  * @description Access control level for a published transcript
@@ -649,4 +686,74 @@ export interface operations {
649
686
  };
650
687
  };
651
688
  };
689
+ updateTranscript: {
690
+ parameters: {
691
+ query?: never;
692
+ header?: never;
693
+ path: {
694
+ /** @description Transcript identifier */
695
+ id: components["schemas"]["SchemaTranscriptID"];
696
+ };
697
+ cookie?: never;
698
+ };
699
+ requestBody: {
700
+ content: {
701
+ "application/json": components["schemas"]["SchemaTranscriptUpdateRequest"];
702
+ };
703
+ };
704
+ responses: {
705
+ /** @description OK */
706
+ 200: {
707
+ headers: {
708
+ [name: string]: unknown;
709
+ };
710
+ content?: never;
711
+ };
712
+ /** @description Bad Request */
713
+ 400: {
714
+ headers: {
715
+ [name: string]: unknown;
716
+ };
717
+ content: {
718
+ "application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
719
+ };
720
+ };
721
+ /** @description Unauthorized */
722
+ 401: {
723
+ headers: {
724
+ [name: string]: unknown;
725
+ };
726
+ content: {
727
+ "application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
728
+ };
729
+ };
730
+ /** @description Forbidden */
731
+ 403: {
732
+ headers: {
733
+ [name: string]: unknown;
734
+ };
735
+ content: {
736
+ "application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
737
+ };
738
+ };
739
+ /** @description Not Found */
740
+ 404: {
741
+ headers: {
742
+ [name: string]: unknown;
743
+ };
744
+ content: {
745
+ "application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
746
+ };
747
+ };
748
+ /** @description Internal Server Error */
749
+ 500: {
750
+ headers: {
751
+ [name: string]: unknown;
752
+ };
753
+ content: {
754
+ "application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
755
+ };
756
+ };
757
+ };
758
+ };
652
759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peasant-labs/schema",
3
- "version": "0.1.0-rc10",
3
+ "version": "0.1.0-rc11",
4
4
  "description": "Generated TypeScript contract bindings for the peasant-labs schema module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {