@peasant-labs/schema 0.50.0 → 0.52.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.
@@ -1,4 +1,4 @@
1
- export declare const VillageAPIVersion: "0.38.0";
2
- export declare const PeasantLocalAPIVersion: "0.36.0";
3
- export declare const TypesVersion: "0.48.0";
1
+ export declare const VillageAPIVersion: "0.40.0";
2
+ export declare const PeasantLocalAPIVersion: "0.38.0";
3
+ export declare const TypesVersion: "0.50.0";
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.38.0";
3
- export const PeasantLocalAPIVersion = "0.36.0";
4
- export const TypesVersion = "0.48.0";
2
+ export const VillageAPIVersion = "0.40.0";
3
+ export const PeasantLocalAPIVersion = "0.38.0";
4
+ export const TypesVersion = "0.50.0";
5
5
  export const MetadataSchemaVersion = 12;
@@ -1197,6 +1197,40 @@ export interface paths {
1197
1197
  patch?: never;
1198
1198
  trace?: never;
1199
1199
  };
1200
+ "/api/v1/transcripts/{id}/segments": {
1201
+ parameters: {
1202
+ query?: never;
1203
+ header?: never;
1204
+ path?: never;
1205
+ cookie?: never;
1206
+ };
1207
+ /** @description Read the transcript's segment directory: one ref per segment, each a bounded run of whole turns, and no turn content. It is the same directory type the local dashboard API serves, cut by the shared rule (schema.CutTranscriptSegments with schema.TranscriptSegmentBudgetBytes), so the same turns give the same refs on every server. sessionId is the published session's id. The directory is paged: page is one-based and omitted defaults to 1, and totalSegments counts every page. revision is optional and the current revision is served when it is omitted; a stale revision is a 409 naming both revisions, and a segment cut under another revision must not be placed beside this directory. A non-numeric or non-positive page is a 400. Access follows getTranscriptContent: a transcript this viewer may not read is a 404. */
1208
+ get: operations["getTranscriptSegments"];
1209
+ put?: never;
1210
+ post?: never;
1211
+ delete?: never;
1212
+ options?: never;
1213
+ head?: never;
1214
+ patch?: never;
1215
+ trace?: never;
1216
+ };
1217
+ "/api/v1/transcripts/{id}/segments/{index}": {
1218
+ parameters: {
1219
+ query?: never;
1220
+ header?: never;
1221
+ path?: never;
1222
+ cookie?: never;
1223
+ };
1224
+ /** @description Read one transcript segment by its directory ordinal. 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. A segment that cannot be served whole is refused with 409, never served short. Access and the repository-identity rule follow getTranscriptContent: a transcript this viewer may not read is a 404. */
1225
+ get: operations["getTranscriptSegment"];
1226
+ put?: never;
1227
+ post?: never;
1228
+ delete?: never;
1229
+ options?: never;
1230
+ head?: never;
1231
+ patch?: never;
1232
+ trace?: never;
1233
+ };
1200
1234
  "/api/v1/transcripts/{id}/share": {
1201
1235
  parameters: {
1202
1236
  query?: never;
@@ -1231,6 +1265,23 @@ export interface paths {
1231
1265
  patch?: never;
1232
1266
  trace?: never;
1233
1267
  };
1268
+ "/api/v1/transcripts/{id}/window": {
1269
+ parameters: {
1270
+ query?: never;
1271
+ header?: never;
1272
+ path?: never;
1273
+ cookie?: never;
1274
+ };
1275
+ /** @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. The rule is the shared one (schema.ResolveTranscriptWindow). 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. segments is the ordered contiguous run of segment ordinals that covers the range; the viewer loads exactly those through getTranscriptSegment. sessionId is the published session's id. 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 transcript with no user turn is a 404, because a window requires one; a stale revision is a 409 naming both revisions. Access follows getTranscriptContent: a transcript this viewer may not read is a 404. */
1276
+ get: operations["getTranscriptWindow"];
1277
+ put?: never;
1278
+ post?: never;
1279
+ delete?: never;
1280
+ options?: never;
1281
+ head?: never;
1282
+ patch?: never;
1283
+ trace?: never;
1284
+ };
1234
1285
  "/api/v1/users/me/collectives/contributions": {
1235
1286
  parameters: {
1236
1287
  query?: never;
@@ -1552,6 +1603,7 @@ export interface components {
1552
1603
  */
1553
1604
  SchemaContentOwnership: Schema.ContentOwnership;
1554
1605
  SchemaContentProvenance: Schema.ContentProvenance;
1606
+ SchemaConversationTurnSpan: Schema.ConversationTurnSpan;
1555
1607
  /**
1556
1608
  * Delivery Origin
1557
1609
  * @description Closed session graph value
@@ -1938,6 +1990,10 @@ export interface components {
1938
1990
  * @example 99d59925-36bc-424c-a789-8be54d9702ba
1939
1991
  */
1940
1992
  SchemaTranscriptID: Schema.TranscriptID;
1993
+ SchemaTranscriptSegment: Schema.TranscriptSegment;
1994
+ SchemaTranscriptSegmentDirectory: Schema.TranscriptSegmentDirectory;
1995
+ SchemaTranscriptSegmentRef: Schema.TranscriptSegmentRef;
1996
+ SchemaTranscriptTurn: Schema.TranscriptTurn;
1941
1997
  /**
1942
1998
  * TranscriptUpdateVisibility
1943
1999
  * @description Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
@@ -1946,6 +2002,7 @@ export interface components {
1946
2002
  * @enum {string}
1947
2003
  */
1948
2004
  SchemaTranscriptUpdateVisibility: Schema.TranscriptUpdateVisibility;
2005
+ SchemaTranscriptWindow: Schema.TranscriptWindow;
1949
2006
  SchemaTurnContentPart: Schema.TurnContentPart;
1950
2007
  SchemaTurnDetail: Schema.TurnDetail;
1951
2008
  /**
@@ -6716,6 +6773,134 @@ export interface operations {
6716
6773
  };
6717
6774
  };
6718
6775
  };
6776
+ getTranscriptSegments: {
6777
+ parameters: {
6778
+ query?: {
6779
+ /** @description One-based directory page; omitted defaults to 1 */
6780
+ page?: number;
6781
+ /** @description Revision to read; omitted serves the current revision */
6782
+ revision?: string;
6783
+ };
6784
+ header?: never;
6785
+ path: {
6786
+ /** @description Transcript identifier */
6787
+ id: components["schemas"]["SchemaTranscriptID"];
6788
+ };
6789
+ cookie?: never;
6790
+ };
6791
+ requestBody?: never;
6792
+ responses: {
6793
+ /** @description OK */
6794
+ 200: {
6795
+ headers: {
6796
+ [name: string]: unknown;
6797
+ };
6798
+ content: {
6799
+ "application/json": components["schemas"]["SchemaTranscriptSegmentDirectory"];
6800
+ };
6801
+ };
6802
+ /** @description Bad Request */
6803
+ 400: {
6804
+ headers: {
6805
+ [name: string]: unknown;
6806
+ };
6807
+ content: {
6808
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6809
+ };
6810
+ };
6811
+ /** @description Not Found */
6812
+ 404: {
6813
+ headers: {
6814
+ [name: string]: unknown;
6815
+ };
6816
+ content: {
6817
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6818
+ };
6819
+ };
6820
+ /** @description Conflict */
6821
+ 409: {
6822
+ headers: {
6823
+ [name: string]: unknown;
6824
+ };
6825
+ content: {
6826
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6827
+ };
6828
+ };
6829
+ /** @description Internal Server Error */
6830
+ 500: {
6831
+ headers: {
6832
+ [name: string]: unknown;
6833
+ };
6834
+ content: {
6835
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6836
+ };
6837
+ };
6838
+ };
6839
+ };
6840
+ getTranscriptSegment: {
6841
+ parameters: {
6842
+ query?: {
6843
+ /** @description Revision to read; omitted serves the current revision */
6844
+ revision?: string;
6845
+ };
6846
+ header?: never;
6847
+ path: {
6848
+ /** @description Transcript identifier */
6849
+ id: components["schemas"]["SchemaTranscriptID"];
6850
+ /** @description Segment ordinal from the directory read */
6851
+ index: number;
6852
+ };
6853
+ cookie?: never;
6854
+ };
6855
+ requestBody?: never;
6856
+ responses: {
6857
+ /** @description OK */
6858
+ 200: {
6859
+ headers: {
6860
+ [name: string]: unknown;
6861
+ };
6862
+ content: {
6863
+ "application/json": components["schemas"]["SchemaTranscriptSegment"];
6864
+ };
6865
+ };
6866
+ /** @description Bad Request */
6867
+ 400: {
6868
+ headers: {
6869
+ [name: string]: unknown;
6870
+ };
6871
+ content: {
6872
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6873
+ };
6874
+ };
6875
+ /** @description Not Found */
6876
+ 404: {
6877
+ headers: {
6878
+ [name: string]: unknown;
6879
+ };
6880
+ content: {
6881
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6882
+ };
6883
+ };
6884
+ /** @description Conflict */
6885
+ 409: {
6886
+ headers: {
6887
+ [name: string]: unknown;
6888
+ };
6889
+ content: {
6890
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6891
+ };
6892
+ };
6893
+ /** @description Internal Server Error */
6894
+ 500: {
6895
+ headers: {
6896
+ [name: string]: unknown;
6897
+ };
6898
+ content: {
6899
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
6900
+ };
6901
+ };
6902
+ };
6903
+ };
6719
6904
  shareTranscriptWithGroups: {
6720
6905
  parameters: {
6721
6906
  query?: never;
@@ -6858,6 +7043,72 @@ export interface operations {
6858
7043
  };
6859
7044
  };
6860
7045
  };
7046
+ getTranscriptWindow: {
7047
+ parameters: {
7048
+ query: {
7049
+ /** @description Turn identity to centre the window on */
7050
+ anchor: number;
7051
+ /** @description Assistant turns collected on each side, 1..10; omitted defaults to 10 */
7052
+ span?: number;
7053
+ /** @description Revision to read; omitted serves the current revision */
7054
+ revision?: string;
7055
+ };
7056
+ header?: never;
7057
+ path: {
7058
+ /** @description Transcript identifier */
7059
+ id: components["schemas"]["SchemaTranscriptID"];
7060
+ };
7061
+ cookie?: never;
7062
+ };
7063
+ requestBody?: never;
7064
+ responses: {
7065
+ /** @description OK */
7066
+ 200: {
7067
+ headers: {
7068
+ [name: string]: unknown;
7069
+ };
7070
+ content: {
7071
+ "application/json": components["schemas"]["SchemaTranscriptWindow"];
7072
+ };
7073
+ };
7074
+ /** @description Bad Request */
7075
+ 400: {
7076
+ headers: {
7077
+ [name: string]: unknown;
7078
+ };
7079
+ content: {
7080
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
7081
+ };
7082
+ };
7083
+ /** @description Not Found */
7084
+ 404: {
7085
+ headers: {
7086
+ [name: string]: unknown;
7087
+ };
7088
+ content: {
7089
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
7090
+ };
7091
+ };
7092
+ /** @description Conflict */
7093
+ 409: {
7094
+ headers: {
7095
+ [name: string]: unknown;
7096
+ };
7097
+ content: {
7098
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
7099
+ };
7100
+ };
7101
+ /** @description Internal Server Error */
7102
+ 500: {
7103
+ headers: {
7104
+ [name: string]: unknown;
7105
+ };
7106
+ content: {
7107
+ "application/json": components["schemas"]["SchemaVillageErrorResponse"];
7108
+ };
7109
+ };
7110
+ };
7111
+ };
6861
7112
  listMyCollectiveContributions: {
6862
7113
  parameters: {
6863
7114
  query?: never;
@@ -125,6 +125,7 @@ export declare const wireAliasShapes: {
125
125
  readonly childSessions: {
126
126
  readonly items: "ChildSessionRef";
127
127
  };
128
+ readonly conversationTurnCount: {};
128
129
  readonly diagnostics: "InterpretationDiagnostics";
129
130
  readonly durationMins: {};
130
131
  readonly earlierHistory: {
@@ -126,6 +126,7 @@ export const wireAliasShapes = {
126
126
  "childSessions": {
127
127
  "items": "ChildSessionRef"
128
128
  },
129
+ "conversationTurnCount": {},
129
130
  "diagnostics": "InterpretationDiagnostics",
130
131
  "durationMins": {},
131
132
  "earlierHistory": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peasant-labs/schema",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "description": "Generated TypeScript contract bindings for the peasant-labs schema module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {