@peasant-labs/schema 0.1.0-rc6 → 0.1.0-rc9
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/README.md +13 -3
- package/dist/fixtures/timeline.d.ts +33 -2
- package/dist/internal/generated/contract/zod.gen.d.ts +803 -116
- package/dist/internal/generated/contract/zod.gen.js +470 -44
- package/dist/internal/generated/enums.gen.d.ts +91 -4
- package/dist/internal/generated/enums.gen.js +97 -1
- package/dist/internal/generated/local-api.d.ts +100 -1
- package/dist/internal/generated/public-contract.gen.d.ts +2 -2
- package/dist/internal/generated/public-contract.gen.js +1 -1
- package/dist/internal/generated/timeline-fixtures.gen.js +1014 -2
- package/dist/internal/generated/versions.gen.d.ts +3 -3
- package/dist/internal/generated/versions.gen.js +3 -3
- package/dist/internal/generated/village-api.d.ts +66 -1
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VillageAPIVersion: "0.
|
|
2
|
-
export declare const PeasantLocalAPIVersion: "0.
|
|
3
|
-
export declare const TypesVersion: "0.
|
|
1
|
+
export declare const VillageAPIVersion: "0.8.0";
|
|
2
|
+
export declare const PeasantLocalAPIVersion: "0.5.0";
|
|
3
|
+
export declare const TypesVersion: "0.5.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.
|
|
3
|
-
export const PeasantLocalAPIVersion = "0.
|
|
4
|
-
export const TypesVersion = "0.
|
|
2
|
+
export const VillageAPIVersion = "0.8.0";
|
|
3
|
+
export const PeasantLocalAPIVersion = "0.5.0";
|
|
4
|
+
export const TypesVersion = "0.5.0";
|
|
5
5
|
export const MetadataSchemaVersion = 9;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import type * as Schema from "../../index.js";
|
|
2
2
|
export interface paths {
|
|
3
|
+
"/api/v1/annotations": {
|
|
4
|
+
parameters: {
|
|
5
|
+
query?: never;
|
|
6
|
+
header?: never;
|
|
7
|
+
path?: never;
|
|
8
|
+
cookie?: never;
|
|
9
|
+
};
|
|
10
|
+
get?: never;
|
|
11
|
+
put?: never;
|
|
12
|
+
/** @description Push annotations for the authenticated owner. Every item selects exactly one target arm: targetKind association requires only targetAssociationId, while every other target kind rejects targetAssociationId. Entry targets require a non-empty sessionId; endIndex must be greater than entryIndex and is enforced by the request validation boundary. The server resolves association targets owner-scoped before writing the all-or-nothing batch. */
|
|
13
|
+
post: operations["pushAnnotations"];
|
|
14
|
+
delete?: never;
|
|
15
|
+
options?: never;
|
|
16
|
+
head?: never;
|
|
17
|
+
patch?: never;
|
|
18
|
+
trace?: never;
|
|
19
|
+
};
|
|
3
20
|
"/api/v1/annotations/manifest": {
|
|
4
21
|
parameters: {
|
|
5
22
|
query?: never;
|
|
@@ -196,7 +213,22 @@ export interface components {
|
|
|
196
213
|
subagents?: components["schemas"]["SchemaSubagentRef"][];
|
|
197
214
|
timestamp?: components["schemas"]["SchemaTimestampInfo"];
|
|
198
215
|
};
|
|
216
|
+
SchemaAnnotationEntryTarget: Schema.AnnotationEntryTarget;
|
|
199
217
|
SchemaAnnotationManifestResponse: Schema.AnnotationManifestResponse;
|
|
218
|
+
SchemaAnnotationPushItem: Schema.AnnotationPushItem;
|
|
219
|
+
SchemaAnnotationPushRequest: Schema.AnnotationPushRequest;
|
|
220
|
+
SchemaAnnotationPushResponse: Schema.AnnotationPushResponse;
|
|
221
|
+
SchemaAnnotationPushResult: Schema.AnnotationPushResult;
|
|
222
|
+
/**
|
|
223
|
+
* Annotation Push Status
|
|
224
|
+
* @description Per-item annotation push outcome
|
|
225
|
+
* @example created
|
|
226
|
+
* @example updated
|
|
227
|
+
* @example skipped
|
|
228
|
+
* @example error
|
|
229
|
+
* @enum {string}
|
|
230
|
+
*/
|
|
231
|
+
SchemaAnnotationPushStatus: Schema.AnnotationPushStatus;
|
|
200
232
|
/**
|
|
201
233
|
* Annotator Kind
|
|
202
234
|
* @description Type of entity that produced an annotation: human, agent (AI model), or rule (automated classifier)
|
|
@@ -206,6 +238,12 @@ export interface components {
|
|
|
206
238
|
* @enum {string}
|
|
207
239
|
*/
|
|
208
240
|
SchemaAnnotatorKind: Schema.AnnotatorKind;
|
|
241
|
+
/**
|
|
242
|
+
* Association ID
|
|
243
|
+
* @description Opaque durable Peasant identifier for one session-to-commit association
|
|
244
|
+
* @example assoc-20260726:session-a:commit-1
|
|
245
|
+
*/
|
|
246
|
+
SchemaAssociationID: Schema.AssociationID;
|
|
209
247
|
SchemaCommitInfo: Schema.CommitInfo;
|
|
210
248
|
SchemaDiagnosticEntry: Schema.DiagnosticEntry;
|
|
211
249
|
SchemaDiagnosticsInfo: Schema.DiagnosticsInfo;
|
|
@@ -253,6 +291,7 @@ export interface components {
|
|
|
253
291
|
SchemaProjectHash: Schema.ProjectHash;
|
|
254
292
|
SchemaProvenance: Schema.Provenance;
|
|
255
293
|
SchemaPublishResponse: Schema.PublishResponse;
|
|
294
|
+
SchemaPublishedAssociation: Schema.PublishedAssociation;
|
|
256
295
|
SchemaPullAnnotation: Schema.PullAnnotation;
|
|
257
296
|
SchemaPullListResponse: Schema.PullListResponse;
|
|
258
297
|
SchemaPullSkipGateItem: Schema.PullSkipGateItem;
|
|
@@ -312,9 +351,11 @@ export interface components {
|
|
|
312
351
|
SchemaSubagentRef: Schema.SubagentRef;
|
|
313
352
|
/**
|
|
314
353
|
* Target Kind
|
|
315
|
-
* @description What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, or
|
|
354
|
+
* @description What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
|
|
316
355
|
* @example session
|
|
317
356
|
* @example entry
|
|
357
|
+
* @example file_version
|
|
358
|
+
* @example association
|
|
318
359
|
* @enum {string}
|
|
319
360
|
*/
|
|
320
361
|
SchemaTargetKind: Schema.TargetKind;
|
|
@@ -360,6 +401,30 @@ export interface components {
|
|
|
360
401
|
}
|
|
361
402
|
export type $defs = Record<string, never>;
|
|
362
403
|
export interface operations {
|
|
404
|
+
pushAnnotations: {
|
|
405
|
+
parameters: {
|
|
406
|
+
query?: never;
|
|
407
|
+
header?: never;
|
|
408
|
+
path?: never;
|
|
409
|
+
cookie?: never;
|
|
410
|
+
};
|
|
411
|
+
requestBody?: {
|
|
412
|
+
content: {
|
|
413
|
+
"application/json": components["schemas"]["SchemaAnnotationPushRequest"];
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
responses: {
|
|
417
|
+
/** @description OK */
|
|
418
|
+
200: {
|
|
419
|
+
headers: {
|
|
420
|
+
[name: string]: unknown;
|
|
421
|
+
};
|
|
422
|
+
content: {
|
|
423
|
+
"application/json": components["schemas"]["SchemaAnnotationPushResponse"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
363
428
|
getAnnotationManifest: {
|
|
364
429
|
parameters: {
|
|
365
430
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peasant-labs/schema",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-rc9",
|
|
4
4
|
"description": "Generated TypeScript contract bindings for the peasant-labs schema module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/peasant-labs/schema"
|
|
9
|
+
},
|
|
6
10
|
"type": "module",
|
|
7
11
|
"sideEffects": false,
|
|
8
12
|
"files": [
|