@peasant-labs/schema 0.45.0 → 0.47.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.
|
@@ -35,6 +35,23 @@ export interface paths {
|
|
|
35
35
|
patch?: never;
|
|
36
36
|
trace?: never;
|
|
37
37
|
};
|
|
38
|
+
"/api/v1/attachments/{ref}": {
|
|
39
|
+
parameters: {
|
|
40
|
+
query?: never;
|
|
41
|
+
header?: never;
|
|
42
|
+
path?: never;
|
|
43
|
+
cookie?: never;
|
|
44
|
+
};
|
|
45
|
+
/** @description Read one stored image by its content address. The path parameter ref is a lowercase 64-hex sha256. A well-formed ref whose row and file exist answers 200 with the stored bytes as image/png or image/jpeg and Cache-Control: public, max-age=31536000, immutable, because the URL is the digest and a successful response never changes. A malformed ref is 400 with JSON error code attachment_ref_malformed; the body does not repeat the rejected ref. A well-formed ref with no row, or a row whose file is missing, is 404 with JSON error code attachment_not_found. This is a local read of bytes already stored on this computer. It is not a publication route. */
|
|
46
|
+
get: operations["getAttachment"];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
54
|
+
};
|
|
38
55
|
"/api/v1/config/capabilities": {
|
|
39
56
|
parameters: {
|
|
40
57
|
query?: never;
|
|
@@ -392,6 +409,57 @@ export interface paths {
|
|
|
392
409
|
patch?: never;
|
|
393
410
|
trace?: never;
|
|
394
411
|
};
|
|
412
|
+
"/api/v1/sessions/{id}/transcript/segments": {
|
|
413
|
+
parameters: {
|
|
414
|
+
query?: never;
|
|
415
|
+
header?: never;
|
|
416
|
+
path?: never;
|
|
417
|
+
cookie?: never;
|
|
418
|
+
};
|
|
419
|
+
/** @description Read the transcript segment directory by session ID: the transcript's only global index, one ref per segment with the cut's revision and scalars and no turn content. Each ref names its segment ordinal and the closed range of sparse turn identities it covers; the segment read serves those turns. A session of zero segments answers an empty segments array with totalSegments 0. Above 10,000 segments the read serves one page of 10,000 refs, keeps the true totalSegments, and sets directoryPage and directoryPerPage; page is one-based, omitted defaults to 1, and a request past the last page is served the last page. The directory is cut under the store revision it reports; a segment cut under another revision must not be placed beside it. revision is optional and the current revision is served when it is omitted. The saved ingestion selection never narrows this stored read. */
|
|
420
|
+
get: operations["getSessionTranscriptSegments"];
|
|
421
|
+
put?: never;
|
|
422
|
+
post?: never;
|
|
423
|
+
delete?: never;
|
|
424
|
+
options?: never;
|
|
425
|
+
head?: never;
|
|
426
|
+
patch?: never;
|
|
427
|
+
trace?: never;
|
|
428
|
+
};
|
|
429
|
+
"/api/v1/sessions/{id}/transcript/segments/{index}": {
|
|
430
|
+
parameters: {
|
|
431
|
+
query?: never;
|
|
432
|
+
header?: never;
|
|
433
|
+
path?: never;
|
|
434
|
+
cookie?: never;
|
|
435
|
+
};
|
|
436
|
+
/** @description Read one transcript segment by its directory ordinal. The segment is cut on complete entries and whole turns, so every turn it serves is whole and its firstTurn and lastTurn are exactly the range the directory declared. Each turn row embeds the shared turn detail beside truncated and the pre-bound byteLength. hasOlder and hasNewer say whether the transcript continues on that side. revision is optional and the current revision is served when it is omitted. A non-numeric or negative index is a 400, an index at or past totalSegments is a 404 naming the directory's segment count, and a stale revision is a 409 naming both revisions. When the store returns fewer turns than the directory declared, the read answers 409 with the declared and returned ranges and the re-index command rather than serving a short segment. The saved ingestion selection never narrows this stored read. */
|
|
437
|
+
get: operations["getSessionTranscriptSegment"];
|
|
438
|
+
put?: never;
|
|
439
|
+
post?: never;
|
|
440
|
+
delete?: never;
|
|
441
|
+
options?: never;
|
|
442
|
+
head?: never;
|
|
443
|
+
patch?: never;
|
|
444
|
+
trace?: never;
|
|
445
|
+
};
|
|
446
|
+
"/api/v1/sessions/{id}/transcript/window": {
|
|
447
|
+
parameters: {
|
|
448
|
+
query?: never;
|
|
449
|
+
header?: never;
|
|
450
|
+
path?: never;
|
|
451
|
+
cookie?: never;
|
|
452
|
+
};
|
|
453
|
+
/** @description Resolve a turn identity to a contiguous transcript window and answer a descriptor that names where the window is, never what is in it. anchor is a non-negative turn identity: when the turn there is a user turn it is the anchor, otherwise the read snaps to the nearest lower user turn, or the nearest higher one when none is lower, and requestedAnchor and anchorTurn report both. span is the number of assistant turns collected on each side, 1..10, and omitted defaults to the design value 10; the parameter narrows a window and cannot widen it. The window is the contiguous range from the first collected turn to the last, so every interleaved user, system, and subagent turn is included. segments is the ordered contiguous run of segment ordinals that covers the range; the viewer loads exactly those through the segment read. hasOlder and hasNewer are true only when the transcript continues past that edge. revision is optional and the current revision is served when it is omitted. A missing, non-numeric, or negative anchor and a span outside 1..10 are 400; a session with no user turn is a 404, because a window requires one; a stale revision is a 409 naming both revisions. The saved ingestion selection never narrows this stored read. */
|
|
454
|
+
get: operations["getSessionTranscriptWindow"];
|
|
455
|
+
put?: never;
|
|
456
|
+
post?: never;
|
|
457
|
+
delete?: never;
|
|
458
|
+
options?: never;
|
|
459
|
+
head?: never;
|
|
460
|
+
patch?: never;
|
|
461
|
+
trace?: never;
|
|
462
|
+
};
|
|
395
463
|
"/api/v1/settings": {
|
|
396
464
|
parameters: {
|
|
397
465
|
query?: never;
|
|
@@ -1616,8 +1684,11 @@ export interface components {
|
|
|
1616
1684
|
* @example 99d59925-36bc-424c-a789-8be54d9702ba
|
|
1617
1685
|
*/
|
|
1618
1686
|
SchemaTranscriptID: Schema.TranscriptID;
|
|
1687
|
+
SchemaTranscriptSegment: Schema.TranscriptSegment;
|
|
1688
|
+
SchemaTranscriptSegmentDirectory: Schema.TranscriptSegmentDirectory;
|
|
1619
1689
|
SchemaTranscriptSegmentRef: Schema.TranscriptSegmentRef;
|
|
1620
1690
|
SchemaTranscriptTurn: Schema.TranscriptTurn;
|
|
1691
|
+
SchemaTranscriptWindow: Schema.TranscriptWindow;
|
|
1621
1692
|
SchemaTurnContentPart: Schema.TurnContentPart;
|
|
1622
1693
|
SchemaTurnDetail: Schema.TurnDetail;
|
|
1623
1694
|
/**
|
|
@@ -1856,6 +1927,50 @@ export interface operations {
|
|
|
1856
1927
|
};
|
|
1857
1928
|
};
|
|
1858
1929
|
};
|
|
1930
|
+
getAttachment: {
|
|
1931
|
+
parameters: {
|
|
1932
|
+
query?: never;
|
|
1933
|
+
header?: never;
|
|
1934
|
+
path: {
|
|
1935
|
+
/** @description Lowercase 64-hex sha256 content address of the stored image */
|
|
1936
|
+
ref: string;
|
|
1937
|
+
};
|
|
1938
|
+
cookie?: never;
|
|
1939
|
+
};
|
|
1940
|
+
requestBody?: never;
|
|
1941
|
+
responses: {
|
|
1942
|
+
/** @description The stored image bytes, image/png or image/jpeg, with an immutable Cache-Control header. */
|
|
1943
|
+
200: {
|
|
1944
|
+
headers: {
|
|
1945
|
+
/** @description A content-addressed image never changes, so a successful response is immutable. */
|
|
1946
|
+
"Cache-Control": "public, max-age=31536000, immutable";
|
|
1947
|
+
[name: string]: unknown;
|
|
1948
|
+
};
|
|
1949
|
+
content: {
|
|
1950
|
+
"image/jpeg": string;
|
|
1951
|
+
"image/png": string;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
/** @description The ref is not a lowercase 64-hex sha256. The JSON error code is attachment_ref_malformed and the body does not repeat the rejected ref. */
|
|
1955
|
+
400: {
|
|
1956
|
+
headers: {
|
|
1957
|
+
[name: string]: unknown;
|
|
1958
|
+
};
|
|
1959
|
+
content: {
|
|
1960
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
/** @description No stored row matches the ref, or the row exists and its file is missing. The JSON error code is attachment_not_found. */
|
|
1964
|
+
404: {
|
|
1965
|
+
headers: {
|
|
1966
|
+
[name: string]: unknown;
|
|
1967
|
+
};
|
|
1968
|
+
content: {
|
|
1969
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1859
1974
|
getUICapabilities: {
|
|
1860
1975
|
parameters: {
|
|
1861
1976
|
query?: never;
|
|
@@ -2408,6 +2523,215 @@ export interface operations {
|
|
|
2408
2523
|
};
|
|
2409
2524
|
};
|
|
2410
2525
|
};
|
|
2526
|
+
getSessionTranscriptSegments: {
|
|
2527
|
+
parameters: {
|
|
2528
|
+
query?: {
|
|
2529
|
+
/** @description One-based directory page; omitted defaults to 1 */
|
|
2530
|
+
page?: number;
|
|
2531
|
+
/** @description Store revision to read; omitted serves the current revision */
|
|
2532
|
+
revision?: string;
|
|
2533
|
+
};
|
|
2534
|
+
header?: never;
|
|
2535
|
+
path: {
|
|
2536
|
+
id: string;
|
|
2537
|
+
};
|
|
2538
|
+
cookie?: never;
|
|
2539
|
+
};
|
|
2540
|
+
requestBody?: never;
|
|
2541
|
+
responses: {
|
|
2542
|
+
/** @description OK */
|
|
2543
|
+
200: {
|
|
2544
|
+
headers: {
|
|
2545
|
+
[name: string]: unknown;
|
|
2546
|
+
};
|
|
2547
|
+
content: {
|
|
2548
|
+
"application/json": components["schemas"]["SchemaTranscriptSegmentDirectory"];
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
/** @description Bad Request */
|
|
2552
|
+
400: {
|
|
2553
|
+
headers: {
|
|
2554
|
+
[name: string]: unknown;
|
|
2555
|
+
};
|
|
2556
|
+
content: {
|
|
2557
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2558
|
+
};
|
|
2559
|
+
};
|
|
2560
|
+
/** @description Conflict */
|
|
2561
|
+
409: {
|
|
2562
|
+
headers: {
|
|
2563
|
+
[name: string]: unknown;
|
|
2564
|
+
};
|
|
2565
|
+
content: {
|
|
2566
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
/** @description Internal Server Error */
|
|
2570
|
+
500: {
|
|
2571
|
+
headers: {
|
|
2572
|
+
[name: string]: unknown;
|
|
2573
|
+
};
|
|
2574
|
+
content: {
|
|
2575
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2576
|
+
};
|
|
2577
|
+
};
|
|
2578
|
+
/** @description Service Unavailable */
|
|
2579
|
+
503: {
|
|
2580
|
+
headers: {
|
|
2581
|
+
[name: string]: unknown;
|
|
2582
|
+
};
|
|
2583
|
+
content: {
|
|
2584
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2585
|
+
};
|
|
2586
|
+
};
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
getSessionTranscriptSegment: {
|
|
2590
|
+
parameters: {
|
|
2591
|
+
query?: {
|
|
2592
|
+
/** @description Store revision to read; omitted serves the current revision */
|
|
2593
|
+
revision?: string;
|
|
2594
|
+
};
|
|
2595
|
+
header?: never;
|
|
2596
|
+
path: {
|
|
2597
|
+
id: string;
|
|
2598
|
+
/** @description Segment ordinal from the directory read */
|
|
2599
|
+
index: number;
|
|
2600
|
+
};
|
|
2601
|
+
cookie?: never;
|
|
2602
|
+
};
|
|
2603
|
+
requestBody?: never;
|
|
2604
|
+
responses: {
|
|
2605
|
+
/** @description OK */
|
|
2606
|
+
200: {
|
|
2607
|
+
headers: {
|
|
2608
|
+
[name: string]: unknown;
|
|
2609
|
+
};
|
|
2610
|
+
content: {
|
|
2611
|
+
"application/json": components["schemas"]["SchemaTranscriptSegment"];
|
|
2612
|
+
};
|
|
2613
|
+
};
|
|
2614
|
+
/** @description Bad Request */
|
|
2615
|
+
400: {
|
|
2616
|
+
headers: {
|
|
2617
|
+
[name: string]: unknown;
|
|
2618
|
+
};
|
|
2619
|
+
content: {
|
|
2620
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
/** @description Not Found */
|
|
2624
|
+
404: {
|
|
2625
|
+
headers: {
|
|
2626
|
+
[name: string]: unknown;
|
|
2627
|
+
};
|
|
2628
|
+
content: {
|
|
2629
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
/** @description Conflict */
|
|
2633
|
+
409: {
|
|
2634
|
+
headers: {
|
|
2635
|
+
[name: string]: unknown;
|
|
2636
|
+
};
|
|
2637
|
+
content: {
|
|
2638
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
/** @description Internal Server Error */
|
|
2642
|
+
500: {
|
|
2643
|
+
headers: {
|
|
2644
|
+
[name: string]: unknown;
|
|
2645
|
+
};
|
|
2646
|
+
content: {
|
|
2647
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2648
|
+
};
|
|
2649
|
+
};
|
|
2650
|
+
/** @description Service Unavailable */
|
|
2651
|
+
503: {
|
|
2652
|
+
headers: {
|
|
2653
|
+
[name: string]: unknown;
|
|
2654
|
+
};
|
|
2655
|
+
content: {
|
|
2656
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2657
|
+
};
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
getSessionTranscriptWindow: {
|
|
2662
|
+
parameters: {
|
|
2663
|
+
query: {
|
|
2664
|
+
/** @description Turn identity to centre the window on */
|
|
2665
|
+
anchor: number;
|
|
2666
|
+
/** @description Assistant turns collected on each side, 1..10; omitted defaults to 10 */
|
|
2667
|
+
span?: number;
|
|
2668
|
+
/** @description Store revision to read; omitted serves the current revision */
|
|
2669
|
+
revision?: string;
|
|
2670
|
+
};
|
|
2671
|
+
header?: never;
|
|
2672
|
+
path: {
|
|
2673
|
+
id: string;
|
|
2674
|
+
};
|
|
2675
|
+
cookie?: never;
|
|
2676
|
+
};
|
|
2677
|
+
requestBody?: never;
|
|
2678
|
+
responses: {
|
|
2679
|
+
/** @description OK */
|
|
2680
|
+
200: {
|
|
2681
|
+
headers: {
|
|
2682
|
+
[name: string]: unknown;
|
|
2683
|
+
};
|
|
2684
|
+
content: {
|
|
2685
|
+
"application/json": components["schemas"]["SchemaTranscriptWindow"];
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
/** @description Bad Request */
|
|
2689
|
+
400: {
|
|
2690
|
+
headers: {
|
|
2691
|
+
[name: string]: unknown;
|
|
2692
|
+
};
|
|
2693
|
+
content: {
|
|
2694
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2695
|
+
};
|
|
2696
|
+
};
|
|
2697
|
+
/** @description Not Found */
|
|
2698
|
+
404: {
|
|
2699
|
+
headers: {
|
|
2700
|
+
[name: string]: unknown;
|
|
2701
|
+
};
|
|
2702
|
+
content: {
|
|
2703
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
/** @description Conflict */
|
|
2707
|
+
409: {
|
|
2708
|
+
headers: {
|
|
2709
|
+
[name: string]: unknown;
|
|
2710
|
+
};
|
|
2711
|
+
content: {
|
|
2712
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
/** @description Internal Server Error */
|
|
2716
|
+
500: {
|
|
2717
|
+
headers: {
|
|
2718
|
+
[name: string]: unknown;
|
|
2719
|
+
};
|
|
2720
|
+
content: {
|
|
2721
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2722
|
+
};
|
|
2723
|
+
};
|
|
2724
|
+
/** @description Service Unavailable */
|
|
2725
|
+
503: {
|
|
2726
|
+
headers: {
|
|
2727
|
+
[name: string]: unknown;
|
|
2728
|
+
};
|
|
2729
|
+
content: {
|
|
2730
|
+
"application/json": components["schemas"]["OpenapiLocalErrorResponse"];
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2411
2735
|
getSettings: {
|
|
2412
2736
|
parameters: {
|
|
2413
2737
|
query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
2
|
export const VillageAPIVersion = "0.37.0";
|
|
3
|
-
export const PeasantLocalAPIVersion = "0.
|
|
3
|
+
export const PeasantLocalAPIVersion = "0.33.0";
|
|
4
4
|
export const TypesVersion = "0.45.0";
|
|
5
5
|
export const MetadataSchemaVersion = 12;
|