@peasant-labs/schema 0.1.0-rc10 → 0.1.0-rc12
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/internal/generated/contract/zod.gen.d.ts +1163 -63
- package/dist/internal/generated/contract/zod.gen.js +347 -1
- package/dist/internal/generated/enums.gen.d.ts +35 -0
- package/dist/internal/generated/enums.gen.js +39 -0
- 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/versions.gen.d.ts +2 -2
- package/dist/internal/generated/versions.gen.js +2 -2
- package/dist/internal/generated/village-api.d.ts +173 -30
- package/package.json +2 -2
|
@@ -179,7 +179,7 @@ export interface paths {
|
|
|
179
179
|
};
|
|
180
180
|
get?: never;
|
|
181
181
|
put?: never;
|
|
182
|
-
/** @description Publish
|
|
182
|
+
/** @description Publish exact transcript bytes with typed JSON metadata. Creation returns 201 and replacement returns 200; both carry the complete authoritative receipt. */
|
|
183
183
|
post: operations["publishTranscript"];
|
|
184
184
|
delete?: never;
|
|
185
185
|
options?: never;
|
|
@@ -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: omission preserves stored state; empty title, description, or tags clear those fields; license null requests clear; and a canonical license replaces. Explicit null for title, description, tags, or visibility is rejected, as are unknown fields and invalid or duplicate tags. Clearing an already granted Creative Commons license remains subject to the server's irrevocability rule. Only the owner may call this operation. A successful update returns the complete typed authoritative editable state, including the canonical transcript URL and positive update timestamp. Visibility accepts private and public; organization-scoped visibility remains deferred. */
|
|
204
|
+
patch: operations["updateTranscript"];
|
|
205
|
+
trace?: never;
|
|
206
|
+
};
|
|
190
207
|
}
|
|
191
208
|
export type webhooks = Record<string, never>;
|
|
192
209
|
export interface components {
|
|
@@ -199,19 +216,32 @@ export interface components {
|
|
|
199
216
|
* @enum {string}
|
|
200
217
|
*/
|
|
201
218
|
BestiaryHarness: Schema.Harness;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
219
|
+
FormDataOpenapiTranscriptPublishMultipartRequest: {
|
|
220
|
+
/** @description PublishRequest JSON encoded with Content-Type application/json. */
|
|
221
|
+
metadata: components["schemas"]["OpenapiAuthoritativeTranscriptPublishRequest"];
|
|
222
|
+
/** @description Exact transcript bytes whose SHA3-256 digest equals metadata.contentHash. */
|
|
223
|
+
transcript_file: components["schemas"]["MultipartFileHeader"];
|
|
224
|
+
};
|
|
225
|
+
/** Format: binary */
|
|
226
|
+
MultipartFileHeader: string;
|
|
227
|
+
OpenapiAuthoritativeTranscriptPublishRequest: {
|
|
228
|
+
contentHash: components["schemas"]["SchemaTranscriptContentHash"];
|
|
229
|
+
diagnostics?: components["schemas"]["SchemaAuthoritativeDiagnosticsInfo"];
|
|
230
|
+
entries?: components["schemas"]["SchemaAuthoritativeSessionEntry"][];
|
|
231
|
+
git?: components["schemas"]["SchemaAuthoritativeGitContext"];
|
|
232
|
+
identity?: components["schemas"]["SchemaAuthoritativeSessionIdentity"];
|
|
207
233
|
license?: components["schemas"]["SchemaLicense"];
|
|
208
|
-
model: components["schemas"]["
|
|
209
|
-
project?: components["schemas"]["
|
|
210
|
-
quality?: components["schemas"]["
|
|
211
|
-
source?: components["schemas"]["
|
|
212
|
-
stats?: components["schemas"]["
|
|
213
|
-
subagents?: components["schemas"]["
|
|
214
|
-
timestamp?: components["schemas"]["
|
|
234
|
+
model: components["schemas"]["SchemaAuthoritativeModelInfo"];
|
|
235
|
+
project?: components["schemas"]["SchemaAuthoritativeProjectContext"];
|
|
236
|
+
quality?: components["schemas"]["SchemaAuthoritativeQualityMetrics"];
|
|
237
|
+
source?: components["schemas"]["SchemaAuthoritativeSourceInfo"];
|
|
238
|
+
stats?: components["schemas"]["SchemaAuthoritativeSessionStats"];
|
|
239
|
+
subagents?: components["schemas"]["SchemaAuthoritativeSubagentRef"][];
|
|
240
|
+
timestamp?: components["schemas"]["SchemaAuthoritativeTimestampInfo"];
|
|
241
|
+
visibilityIntent?: components["schemas"]["SchemaVisibilityIntent"];
|
|
242
|
+
};
|
|
243
|
+
OpenapiTranscriptUpdateErrorResponse: {
|
|
244
|
+
error: string;
|
|
215
245
|
};
|
|
216
246
|
SchemaAnnotationEntryTarget: Schema.AnnotationEntryTarget;
|
|
217
247
|
SchemaAnnotationManifestResponse: Schema.AnnotationManifestResponse;
|
|
@@ -244,9 +274,20 @@ export interface components {
|
|
|
244
274
|
* @example assoc-20260726:session-a:commit-1
|
|
245
275
|
*/
|
|
246
276
|
SchemaAssociationID: Schema.AssociationID;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
277
|
+
SchemaAuthoritativeCommitInfo: Schema.AuthoritativeCommitInfo;
|
|
278
|
+
SchemaAuthoritativeDiagnosticEntry: Schema.AuthoritativeDiagnosticEntry;
|
|
279
|
+
SchemaAuthoritativeDiagnosticsInfo: Schema.AuthoritativeDiagnosticsInfo;
|
|
280
|
+
SchemaAuthoritativeGitContext: Schema.AuthoritativeGitContext;
|
|
281
|
+
SchemaAuthoritativeModelInfo: Schema.AuthoritativeModelInfo;
|
|
282
|
+
SchemaAuthoritativeProjectContext: Schema.AuthoritativeProjectContext;
|
|
283
|
+
SchemaAuthoritativePublishResponse: Schema.AuthoritativePublishResponse;
|
|
284
|
+
SchemaAuthoritativeQualityMetrics: Schema.AuthoritativeQualityMetrics;
|
|
285
|
+
SchemaAuthoritativeSessionEntry: Schema.AuthoritativeSessionEntry;
|
|
286
|
+
SchemaAuthoritativeSessionIdentity: Schema.AuthoritativeSessionIdentity;
|
|
287
|
+
SchemaAuthoritativeSessionStats: Schema.AuthoritativeSessionStats;
|
|
288
|
+
SchemaAuthoritativeSourceInfo: Schema.AuthoritativeSourceInfo;
|
|
289
|
+
SchemaAuthoritativeSubagentRef: Schema.AuthoritativeSubagentRef;
|
|
290
|
+
SchemaAuthoritativeTimestampInfo: Schema.AuthoritativeTimestampInfo;
|
|
250
291
|
/**
|
|
251
292
|
* Entry Type
|
|
252
293
|
* @description Classification of a single entry within an agent session transcript
|
|
@@ -258,7 +299,6 @@ export interface components {
|
|
|
258
299
|
SchemaEntryType: Schema.EntryType;
|
|
259
300
|
SchemaExchangeCodeRequest: Schema.ExchangeCodeRequest;
|
|
260
301
|
SchemaExchangeCodeResponse: Schema.ExchangeCodeResponse;
|
|
261
|
-
SchemaGitContext: Schema.GitContext;
|
|
262
302
|
/**
|
|
263
303
|
* Host Slug
|
|
264
304
|
* @description Sanitized, filesystem-safe identifier derived from git remote; contains only [a-zA-Z0-9._<>-]
|
|
@@ -281,8 +321,10 @@ export interface components {
|
|
|
281
321
|
* @example codex-mini-latest
|
|
282
322
|
*/
|
|
283
323
|
SchemaModelID: Schema.ModelID;
|
|
284
|
-
|
|
285
|
-
|
|
324
|
+
SchemaOwnerTranscriptUpdateRequest: Schema.OwnerTranscriptUpdateRequest;
|
|
325
|
+
SchemaOwnerTranscriptUpdateResponse: Schema.OwnerTranscriptUpdateResponse;
|
|
326
|
+
/** @description Omitted preserves, null requests clear, and a canonical license replaces */
|
|
327
|
+
SchemaOwnerUpdateLicenseIntent: Schema.OwnerUpdateLicenseIntent;
|
|
286
328
|
/**
|
|
287
329
|
* Project Hash
|
|
288
330
|
* @description SHA-256 hex digest of the project's origin URL or local path
|
|
@@ -290,7 +332,13 @@ export interface components {
|
|
|
290
332
|
*/
|
|
291
333
|
SchemaProjectHash: Schema.ProjectHash;
|
|
292
334
|
SchemaProvenance: Schema.Provenance;
|
|
293
|
-
|
|
335
|
+
SchemaPublishAppliedState: Schema.PublishAppliedState;
|
|
336
|
+
SchemaPublishNormalizedValues: Schema.PublishNormalizedValues;
|
|
337
|
+
/**
|
|
338
|
+
* Publish Request Fingerprint
|
|
339
|
+
* @description SHA3-256 digest of the canonical domain-separated publish operation
|
|
340
|
+
*/
|
|
341
|
+
SchemaPublishRequestFingerprint: Schema.PublishRequestFingerprint;
|
|
294
342
|
SchemaPublishedAssociation: Schema.PublishedAssociation;
|
|
295
343
|
SchemaPullAnnotation: Schema.PullAnnotation;
|
|
296
344
|
SchemaPullListResponse: Schema.PullListResponse;
|
|
@@ -299,7 +347,6 @@ export interface components {
|
|
|
299
347
|
SchemaPullSkipGateResponse: Schema.PullSkipGateResponse;
|
|
300
348
|
SchemaPullSkipGateResult: Schema.PullSkipGateResult;
|
|
301
349
|
SchemaPullTranscriptInfo: Schema.PullTranscriptInfo;
|
|
302
|
-
SchemaQualityMetrics: Schema.QualityMetrics;
|
|
303
350
|
/**
|
|
304
351
|
* Role
|
|
305
352
|
* @description Sender role of a message turn
|
|
@@ -309,7 +356,6 @@ export interface components {
|
|
|
309
356
|
*/
|
|
310
357
|
SchemaRole: Schema.Role;
|
|
311
358
|
SchemaSchemaVersionResponse: Schema.SchemaVersionResponse;
|
|
312
|
-
SchemaSessionEntry: Schema.SessionEntry;
|
|
313
359
|
/**
|
|
314
360
|
* Session ID
|
|
315
361
|
* Format: session-id
|
|
@@ -322,7 +368,6 @@ export interface components {
|
|
|
322
368
|
* @example ABCDEFGHIJKLMNOPQRST234567
|
|
323
369
|
*/
|
|
324
370
|
SchemaSessionID: Schema.SessionID;
|
|
325
|
-
SchemaSessionIdentity: Schema.SessionIdentity;
|
|
326
371
|
/**
|
|
327
372
|
* Session Outcome
|
|
328
373
|
* @description Resolution status of the session
|
|
@@ -332,7 +377,6 @@ export interface components {
|
|
|
332
377
|
* @enum {string}
|
|
333
378
|
*/
|
|
334
379
|
SchemaSessionOutcome: Schema.SessionOutcome;
|
|
335
|
-
SchemaSessionStats: Schema.SessionStats;
|
|
336
380
|
/**
|
|
337
381
|
* Source Format
|
|
338
382
|
* @description Transcript file format
|
|
@@ -341,7 +385,6 @@ export interface components {
|
|
|
341
385
|
* @enum {string}
|
|
342
386
|
*/
|
|
343
387
|
SchemaSourceFormat: Schema.SourceFormat;
|
|
344
|
-
SchemaSourceInfo: Schema.SourceInfo;
|
|
345
388
|
/**
|
|
346
389
|
* Stop Reason
|
|
347
390
|
* @description Reason why a session or turn ended (ACP-aligned)
|
|
@@ -350,7 +393,6 @@ export interface components {
|
|
|
350
393
|
* @enum {string}
|
|
351
394
|
*/
|
|
352
395
|
SchemaStopReason: Schema.StopReason;
|
|
353
|
-
SchemaSubagentRef: Schema.SubagentRef;
|
|
354
396
|
/**
|
|
355
397
|
* Target Kind
|
|
356
398
|
* @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
|
|
@@ -361,7 +403,6 @@ export interface components {
|
|
|
361
403
|
* @enum {string}
|
|
362
404
|
*/
|
|
363
405
|
SchemaTargetKind: Schema.TargetKind;
|
|
364
|
-
SchemaTimestampInfo: Schema.TimestampInfo;
|
|
365
406
|
/**
|
|
366
407
|
* Tool Call Kind
|
|
367
408
|
* @description Classification of a tool call, aligned with ACP ToolCallUpdate.kind
|
|
@@ -371,6 +412,11 @@ export interface components {
|
|
|
371
412
|
* @enum {string}
|
|
372
413
|
*/
|
|
373
414
|
SchemaToolCallKind: Schema.ToolCallKind;
|
|
415
|
+
/**
|
|
416
|
+
* Transcript Content Hash
|
|
417
|
+
* @description SHA3-256 digest of the exact transcript file bytes
|
|
418
|
+
*/
|
|
419
|
+
SchemaTranscriptContentHash: Schema.TranscriptContentHash;
|
|
374
420
|
/**
|
|
375
421
|
* Transcript ID
|
|
376
422
|
* Format: uuid
|
|
@@ -378,6 +424,14 @@ export interface components {
|
|
|
378
424
|
* @example 99d59925-36bc-424c-a789-8be54d9702ba
|
|
379
425
|
*/
|
|
380
426
|
SchemaTranscriptID: Schema.TranscriptID;
|
|
427
|
+
/**
|
|
428
|
+
* TranscriptUpdateVisibility
|
|
429
|
+
* @description Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
|
|
430
|
+
* @example public
|
|
431
|
+
* @example private
|
|
432
|
+
* @enum {string}
|
|
433
|
+
*/
|
|
434
|
+
SchemaTranscriptUpdateVisibility: Schema.TranscriptUpdateVisibility;
|
|
381
435
|
/**
|
|
382
436
|
* Visibility
|
|
383
437
|
* @description Access control level for a published transcript
|
|
@@ -386,6 +440,14 @@ export interface components {
|
|
|
386
440
|
* @enum {string}
|
|
387
441
|
*/
|
|
388
442
|
SchemaVisibility: Schema.Visibility;
|
|
443
|
+
/**
|
|
444
|
+
* Visibility Intent
|
|
445
|
+
* @description Optional desired final access for legacy compatibility; content replacement remains private and widening occurs separately
|
|
446
|
+
* @example private
|
|
447
|
+
* @example public
|
|
448
|
+
* @enum {string}
|
|
449
|
+
*/
|
|
450
|
+
SchemaVisibilityIntent: Schema.VisibilityIntent;
|
|
389
451
|
/**
|
|
390
452
|
* Visibility
|
|
391
453
|
* @description Access control level for a published transcript
|
|
@@ -632,9 +694,45 @@ export interface operations {
|
|
|
632
694
|
path?: never;
|
|
633
695
|
cookie?: never;
|
|
634
696
|
};
|
|
635
|
-
requestBody
|
|
697
|
+
requestBody: {
|
|
698
|
+
content: {
|
|
699
|
+
"multipart/form-data": components["schemas"]["FormDataOpenapiTranscriptPublishMultipartRequest"];
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
responses: {
|
|
703
|
+
/** @description OK */
|
|
704
|
+
200: {
|
|
705
|
+
headers: {
|
|
706
|
+
[name: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
content: {
|
|
709
|
+
"application/json": components["schemas"]["SchemaAuthoritativePublishResponse"];
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
/** @description Created */
|
|
713
|
+
201: {
|
|
714
|
+
headers: {
|
|
715
|
+
[name: string]: unknown;
|
|
716
|
+
};
|
|
717
|
+
content: {
|
|
718
|
+
"application/json": components["schemas"]["SchemaAuthoritativePublishResponse"];
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
updateTranscript: {
|
|
724
|
+
parameters: {
|
|
725
|
+
query?: never;
|
|
726
|
+
header?: never;
|
|
727
|
+
path: {
|
|
728
|
+
/** @description Transcript identifier */
|
|
729
|
+
id: components["schemas"]["SchemaTranscriptID"];
|
|
730
|
+
};
|
|
731
|
+
cookie?: never;
|
|
732
|
+
};
|
|
733
|
+
requestBody: {
|
|
636
734
|
content: {
|
|
637
|
-
"application/json": components["schemas"]["
|
|
735
|
+
"application/json": components["schemas"]["SchemaOwnerTranscriptUpdateRequest"];
|
|
638
736
|
};
|
|
639
737
|
};
|
|
640
738
|
responses: {
|
|
@@ -644,7 +742,52 @@ export interface operations {
|
|
|
644
742
|
[name: string]: unknown;
|
|
645
743
|
};
|
|
646
744
|
content: {
|
|
647
|
-
"application/json": components["schemas"]["
|
|
745
|
+
"application/json": components["schemas"]["SchemaOwnerTranscriptUpdateResponse"];
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
/** @description Bad Request */
|
|
749
|
+
400: {
|
|
750
|
+
headers: {
|
|
751
|
+
[name: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
content: {
|
|
754
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
/** @description Unauthorized */
|
|
758
|
+
401: {
|
|
759
|
+
headers: {
|
|
760
|
+
[name: string]: unknown;
|
|
761
|
+
};
|
|
762
|
+
content: {
|
|
763
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
/** @description Forbidden */
|
|
767
|
+
403: {
|
|
768
|
+
headers: {
|
|
769
|
+
[name: string]: unknown;
|
|
770
|
+
};
|
|
771
|
+
content: {
|
|
772
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
/** @description Not Found */
|
|
776
|
+
404: {
|
|
777
|
+
headers: {
|
|
778
|
+
[name: string]: unknown;
|
|
779
|
+
};
|
|
780
|
+
content: {
|
|
781
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/** @description Internal Server Error */
|
|
785
|
+
500: {
|
|
786
|
+
headers: {
|
|
787
|
+
[name: string]: unknown;
|
|
788
|
+
};
|
|
789
|
+
content: {
|
|
790
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
648
791
|
};
|
|
649
792
|
};
|
|
650
793
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peasant-labs/schema",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-rc12",
|
|
4
4
|
"description": "Generated TypeScript contract bindings for the peasant-labs schema module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"generate": "openapi-ts -f openapi-ts.config.mjs && node scripts/generate-contract-support.mjs",
|
|
69
69
|
"build": "node scripts/build.mjs",
|
|
70
70
|
"typecheck": "pnpm run build && tsc --noEmit -p tsconfig.test.json",
|
|
71
|
-
"test": "pnpm run build && node --test tests/*.test.mjs",
|
|
71
|
+
"test": "pnpm run build && node --test --test-concurrency=1 tests/*.test.mjs",
|
|
72
72
|
"package:audit": "pnpm run build && node scripts/package-audit.mjs",
|
|
73
73
|
"package:smoke": "pnpm run build && node scripts/package-smoke.mjs"
|
|
74
74
|
}
|