@peasant-labs/schema 0.32.0 → 0.33.1

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.
@@ -1,4 +1,4 @@
1
- export declare const VillageAPIVersion: "0.28.0";
2
- export declare const PeasantLocalAPIVersion: "0.21.0";
3
- export declare const TypesVersion: "0.33.0";
1
+ export declare const VillageAPIVersion: "0.29.1";
2
+ export declare const PeasantLocalAPIVersion: "0.22.0";
3
+ export declare const TypesVersion: "0.34.1";
4
4
  export declare const MetadataSchemaVersion: 12;
@@ -1,5 +1,5 @@
1
1
  // Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
2
- export const VillageAPIVersion = "0.28.0";
3
- export const PeasantLocalAPIVersion = "0.21.0";
4
- export const TypesVersion = "0.33.0";
2
+ export const VillageAPIVersion = "0.29.1";
3
+ export const PeasantLocalAPIVersion = "0.22.0";
4
+ export const TypesVersion = "0.34.1";
5
5
  export const MetadataSchemaVersion = 12;
@@ -905,7 +905,7 @@ export interface paths {
905
905
  path?: never;
906
906
  cookie?: never;
907
907
  };
908
- /** @description Get a pullable transcript's metadata (owner, visibility, server-computed content_hash, push contract version). 404 (not 403) when not pullable. */
908
+ /** @description Get a pullable transcript's metadata (the owner as the caller may see them, visibility, server-computed content_hash, push contract version). The server resolves the owner per viewer; a caller always sees its own profile on its own transcripts. 404 (not 403) when not pullable. */
909
909
  get: operations["getPullTranscript"];
910
910
  put?: never;
911
911
  post?: never;
@@ -922,7 +922,7 @@ export interface paths {
922
922
  path?: never;
923
923
  cookie?: never;
924
924
  };
925
- /** @description List a transcript's annotations as PullAnnotation rows (AnnotationSummary plus author identity), so pulled annotations can be foreign-marked and own-authored rows excluded. */
925
+ /** @description List a transcript's annotations as PullAnnotation rows (AnnotationSummary plus the author as the caller may see them, resolved by the server per viewer). The caller's own rows carry the caller's profile, so own-authored rows are excluded by comparing the author's profile id with the caller's account; an anonymous author is never the caller and is foreign-marked. */
926
926
  get: operations["getPullTranscriptAnnotations"];
927
927
  put?: never;
928
928
  post?: never;
@@ -1025,7 +1025,7 @@ export interface paths {
1025
1025
  path?: never;
1026
1026
  cookie?: never;
1027
1027
  };
1028
- /** @description List authorized transcripts using the existing global, recent, explore, profile, project, and search filters. view=grouped returns grouped list items; omitting view preserves the flat transcript array. */
1028
+ /** @description List authorized transcripts using the existing global, recent, explore, profile, project, and search filters. view=grouped returns grouped list items; omitting view preserves the flat transcript array. The owner and org filters match only transcripts whose owner this viewer may see as a profile: a person shown to this viewer as anonymous never matches a username or an organization filter, so a filter cannot reveal who an anonymous owner is. */
1029
1029
  get: operations["listTranscripts"];
1030
1030
  put?: never;
1031
1031
  post?: never;
@@ -1094,7 +1094,7 @@ export interface paths {
1094
1094
  path?: never;
1095
1095
  cookie?: never;
1096
1096
  };
1097
- /** @description Get the durable transcript content envelope. This response never includes authorized relationship navigation. */
1097
+ /** @description Get the durable transcript content envelope. This response never includes authorized relationship navigation. When the transcript's owner is anonymous to this viewer, sessionDetail is served without its repository identity: project, workingDirectory, gitBranch, gitRemote and every childSessions[].project are absent. Text inside the conversation is content and is not covered. */
1098
1098
  get: operations["getTranscriptContent"];
1099
1099
  put?: never;
1100
1100
  post?: never;
@@ -1111,7 +1111,7 @@ export interface paths {
1111
1111
  path?: never;
1112
1112
  cookie?: never;
1113
1113
  };
1114
- /** @description List the pull requests whose prompt attachment includes this transcript, attached or detached, with each pull request's title and head branch. A requested, waiting, or preview attachment is never listed. An attachment on a private repository is listed only to the pull request author, a member of the collective the attachment belongs to, or, for an attached attachment, a reader of the repository; any other attachment on a private repository is omitted rather than refused, and so is one whose visibility check cannot complete. A caller who may not read the transcript receives 404, never 403, so the read does not reveal that the transcript exists. 429 means the private-repository visibility check is rate limited; retry later. */
1114
+ /** @description List the pull requests whose prompt attachment includes this transcript, attached or detached, with each pull request's title and head branch. A requested, waiting, or preview attachment is never listed. An attachment on a private repository is listed only to the pull request author, a member of the collective the attachment belongs to, or, for an attached attachment, a reader of the repository; any other attachment on a private repository is omitted rather than refused, and so is one whose visibility check cannot complete. A caller who may not read the transcript receives 404, never 403, so the read does not reveal that the transcript exists. 429 means the private-repository visibility check is rate limited; retry later. A pull request the owner attached is shown even when the owner is anonymous to this viewer; attaching is the owner's own act. */
1115
1115
  get: operations["listTranscriptPullRequests"];
1116
1116
  put?: never;
1117
1117
  post?: never;
@@ -1465,6 +1465,9 @@ export interface components {
1465
1465
  */
1466
1466
  SchemaInputModality: Schema.InputModality;
1467
1467
  SchemaInterpretationDiagnostics: Schema.InterpretationDiagnostics;
1468
+ SchemaLegacyPullAnnotation: Schema.LegacyPullAnnotation;
1469
+ SchemaLegacyPullListResponse: Schema.LegacyPullListResponse;
1470
+ SchemaLegacyPullTranscriptInfo: Schema.LegacyPullTranscriptInfo;
1468
1471
  /**
1469
1472
  * License
1470
1473
  * @description Content license for a published transcript
@@ -1897,6 +1900,11 @@ export interface components {
1897
1900
  */
1898
1901
  SchemaVillagePromptsCheckMode: Schema.VillagePromptsCheckMode;
1899
1902
  SchemaVillagePublicCollective: Schema.VillagePublicCollective;
1903
+ /**
1904
+ * Village Public Owner
1905
+ * @description A person as another viewer sees them. The server resolves anonymity per viewer; consumers render what they receive and never re-derive the rule. profile carries id, username, display_name, and avatar_url; anonymous carries only its kind, with no id. Readers treat an unknown kind as anonymous.
1906
+ */
1907
+ SchemaVillagePublicOwner: Schema.VillagePublicOwner;
1900
1908
  SchemaVillagePullRequestAttachedTranscript: Schema.VillagePullRequestAttachedTranscript;
1901
1909
  SchemaVillagePullRequestAttachment: Schema.VillagePullRequestAttachment;
1902
1910
  SchemaVillagePullRequestAttachmentResponse: Schema.VillagePullRequestAttachmentResponse;
@@ -5269,7 +5277,10 @@ export interface operations {
5269
5277
  /** @description Optional comma-separated collective identifiers. Narrows the list to transcripts with an approved share into any listed collective the caller belongs to. Omission, or only empty elements, lists every pullable transcript. */
5270
5278
  collectives?: string;
5271
5279
  };
5272
- header?: never;
5280
+ header?: {
5281
+ /** @description Optional. The newest pull contract this client reads, as MAJOR.MINOR.PATCH digits (for example 0.3.0). Village serves the highest version it supports that is no newer than this and no older than its minimum. Omitted or malformed (0.3, v0.3.0, any other text), it is treated as absent and Village serves its default (pullContractVersion), so a client with a buggy header still pulls. Below Village's minimum, the read is refused with 406 and a VillageErrorResponse. */
5282
+ "Peasant-Pull-Contract"?: string;
5283
+ };
5273
5284
  path?: never;
5274
5285
  cookie?: never;
5275
5286
  };
@@ -5278,10 +5289,21 @@ export interface operations {
5278
5289
  /** @description OK */
5279
5290
  200: {
5280
5291
  headers: {
5292
+ /** @description The pull contract version this response was served under. 0.2.0 bodies are the Legacy* envelope; 0.3.0 and any later 0.3.z bodies are the public owner envelope. */
5293
+ "Peasant-Pull-Contract": string;
5281
5294
  [name: string]: unknown;
5282
5295
  };
5283
5296
  content: {
5284
- "application/json": components["schemas"]["SchemaPullListResponse"];
5297
+ "application/json": components["schemas"]["SchemaPullListResponse"] | components["schemas"]["SchemaLegacyPullListResponse"];
5298
+ };
5299
+ };
5300
+ /** @description Not Acceptable */
5301
+ 406: {
5302
+ headers: {
5303
+ [name: string]: unknown;
5304
+ };
5305
+ content: {
5306
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
5285
5307
  };
5286
5308
  };
5287
5309
  };
@@ -5313,7 +5335,10 @@ export interface operations {
5313
5335
  getPullTranscript: {
5314
5336
  parameters: {
5315
5337
  query?: never;
5316
- header?: never;
5338
+ header?: {
5339
+ /** @description Optional. The newest pull contract this client reads, as MAJOR.MINOR.PATCH digits (for example 0.3.0). Village serves the highest version it supports that is no newer than this and no older than its minimum. Omitted or malformed (0.3, v0.3.0, any other text), it is treated as absent and Village serves its default (pullContractVersion), so a client with a buggy header still pulls. Below Village's minimum, the read is refused with 406 and a VillageErrorResponse. */
5340
+ "Peasant-Pull-Contract"?: string;
5341
+ };
5317
5342
  path: {
5318
5343
  id: string;
5319
5344
  };
@@ -5323,11 +5348,22 @@ export interface operations {
5323
5348
  responses: {
5324
5349
  /** @description OK */
5325
5350
  200: {
5351
+ headers: {
5352
+ /** @description The pull contract version this response was served under. 0.2.0 bodies are the Legacy* envelope; 0.3.0 and any later 0.3.z bodies are the public owner envelope. */
5353
+ "Peasant-Pull-Contract": string;
5354
+ [name: string]: unknown;
5355
+ };
5356
+ content: {
5357
+ "application/json": components["schemas"]["SchemaPullTranscriptInfo"] | components["schemas"]["SchemaLegacyPullTranscriptInfo"];
5358
+ };
5359
+ };
5360
+ /** @description Not Acceptable */
5361
+ 406: {
5326
5362
  headers: {
5327
5363
  [name: string]: unknown;
5328
5364
  };
5329
5365
  content: {
5330
- "application/json": components["schemas"]["SchemaPullTranscriptInfo"];
5366
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
5331
5367
  };
5332
5368
  };
5333
5369
  };
@@ -5335,7 +5371,10 @@ export interface operations {
5335
5371
  getPullTranscriptAnnotations: {
5336
5372
  parameters: {
5337
5373
  query?: never;
5338
- header?: never;
5374
+ header?: {
5375
+ /** @description Optional. The newest pull contract this client reads, as MAJOR.MINOR.PATCH digits (for example 0.3.0). Village serves the highest version it supports that is no newer than this and no older than its minimum. Omitted or malformed (0.3, v0.3.0, any other text), it is treated as absent and Village serves its default (pullContractVersion), so a client with a buggy header still pulls. Below Village's minimum, the read is refused with 406 and a VillageErrorResponse. */
5376
+ "Peasant-Pull-Contract"?: string;
5377
+ };
5339
5378
  path: {
5340
5379
  id: string;
5341
5380
  };
@@ -5346,10 +5385,21 @@ export interface operations {
5346
5385
  /** @description OK */
5347
5386
  200: {
5348
5387
  headers: {
5388
+ /** @description The pull contract version this response was served under. 0.2.0 bodies are the Legacy* envelope; 0.3.0 and any later 0.3.z bodies are the public owner envelope. */
5389
+ "Peasant-Pull-Contract": string;
5349
5390
  [name: string]: unknown;
5350
5391
  };
5351
5392
  content: {
5352
- "application/json": null | components["schemas"]["SchemaPullAnnotation"][];
5393
+ "application/json": (null | components["schemas"]["SchemaPullAnnotation"][]) | (null | components["schemas"]["SchemaLegacyPullAnnotation"][]);
5394
+ };
5395
+ };
5396
+ /** @description Not Acceptable */
5397
+ 406: {
5398
+ headers: {
5399
+ [name: string]: unknown;
5400
+ };
5401
+ content: {
5402
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
5353
5403
  };
5354
5404
  };
5355
5405
  };
@@ -5357,7 +5407,10 @@ export interface operations {
5357
5407
  getPullTranscriptContent: {
5358
5408
  parameters: {
5359
5409
  query?: never;
5360
- header?: never;
5410
+ header?: {
5411
+ /** @description Optional. The newest pull contract this client reads, as MAJOR.MINOR.PATCH digits (for example 0.3.0). Village serves the highest version it supports that is no newer than this and no older than its minimum. Omitted or malformed (0.3, v0.3.0, any other text), it is treated as absent and Village serves its default (pullContractVersion), so a client with a buggy header still pulls. Below Village's minimum, the read is refused with 406 and a VillageErrorResponse. */
5412
+ "Peasant-Pull-Contract"?: string;
5413
+ };
5361
5414
  path: {
5362
5415
  id: string;
5363
5416
  };
@@ -5365,13 +5418,24 @@ export interface operations {
5365
5418
  };
5366
5419
  requestBody?: never;
5367
5420
  responses: {
5368
- /** @description No Content */
5369
- 204: {
5421
+ /** @description OK */
5422
+ 200: {
5370
5423
  headers: {
5424
+ /** @description The pull contract version this response was served under. 0.2.0 bodies are the Legacy* envelope; 0.3.0 and any later 0.3.z bodies are the public owner envelope. */
5425
+ "Peasant-Pull-Contract": string;
5371
5426
  [name: string]: unknown;
5372
5427
  };
5373
5428
  content?: never;
5374
5429
  };
5430
+ /** @description Not Acceptable */
5431
+ 406: {
5432
+ headers: {
5433
+ [name: string]: unknown;
5434
+ };
5435
+ content: {
5436
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
5437
+ };
5438
+ };
5375
5439
  };
5376
5440
  };
5377
5441
  getPullRequestAttachment: {
@@ -5699,11 +5763,16 @@ export interface operations {
5699
5763
  view?: components["schemas"]["OpenapiVillageGroupedView"];
5700
5764
  page?: number;
5701
5765
  limit?: number;
5766
+ /** @description Search text. Matches repository identity only on rows whose repository this viewer may see; the withheld repository fields of an anonymous owner's transcript are never searched. */
5702
5767
  q?: string;
5703
5768
  provider?: string;
5769
+ /** @description Username filter. Matches only owners this viewer may see as a profile; an owner shown as anonymous never matches. */
5704
5770
  owner?: string;
5771
+ /** @description Project filter. Matches only rows whose repository this viewer may see; a transcript whose owner is anonymous to this viewer never matches. */
5705
5772
  project?: string;
5773
+ /** @description Repository filter. Matches only rows whose repository this viewer may see; a transcript whose owner is anonymous to this viewer never matches. */
5706
5774
  repo?: string;
5775
+ /** @description Organization filter. Matches only owners this viewer may see as a profile; an owner shown as anonymous never matches. */
5707
5776
  org?: string;
5708
5777
  tags?: string;
5709
5778
  origin?: components["schemas"]["SchemaSessionOrigin"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peasant-labs/schema",
3
- "version": "0.32.0",
3
+ "version": "0.33.1",
4
4
  "description": "Generated TypeScript contract bindings for the peasant-labs schema module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {