@peasant-labs/schema 0.23.0 → 0.25.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.
@@ -27,7 +27,7 @@ export interface paths {
27
27
  /** @description List annotations for a session. */
28
28
  get: operations["listAnnotations"];
29
29
  put?: never;
30
- /** @description Create a new annotation. */
30
+ /** @description Create a new annotation. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
31
31
  post: operations["createAnnotation"];
32
32
  delete?: never;
33
33
  options?: never;
@@ -171,6 +171,23 @@ export interface paths {
171
171
  patch?: never;
172
172
  trace?: never;
173
173
  };
174
+ "/api/v1/publications": {
175
+ parameters: {
176
+ query?: never;
177
+ header?: never;
178
+ path?: never;
179
+ cookie?: never;
180
+ };
181
+ /** @description Read the durable publication state of named local sessions for the Village account this computer is signed in to; a signed-out computer reports every session unpublished. This read ignores the saved selection: a session the lists leave out is still returned, with outsideSelection true. An identifier that names no session on this computer is omitted. include=audience adds the collectives each published transcript is shared with, as [] when it is shared with none, and returns 502 when Village cannot be read. 400 when sessionIds is missing or empty. A client counts the turns recorded after publishedAt to say about how many turns are new; the count is approximate. */
182
+ get: operations["listPublications"];
183
+ put?: never;
184
+ post?: never;
185
+ delete?: never;
186
+ options?: never;
187
+ head?: never;
188
+ patch?: never;
189
+ trace?: never;
190
+ };
174
191
  "/api/v1/review/{projectHash}": {
175
192
  parameters: {
176
193
  query?: never;
@@ -324,6 +341,59 @@ export interface paths {
324
341
  patch?: never;
325
342
  trace?: never;
326
343
  };
344
+ "/api/v1/settings": {
345
+ parameters: {
346
+ query?: never;
347
+ header?: never;
348
+ path?: never;
349
+ cookie?: never;
350
+ };
351
+ /** @description Read every setting the local settings page shows, with each key's kind, its value in the configuration file (null when unset), the effective value that applies, and metadata, and every auto-publish rule with the recorded repositories it matches and their hook state per event. */
352
+ get: operations["getSettings"];
353
+ put?: never;
354
+ post?: never;
355
+ delete?: never;
356
+ options?: never;
357
+ head?: never;
358
+ /** @description Change one editable setting. The body names one key and its new value, which must match the key's kind; null unsets the key so the default applies. The response is the setting as saved, with its metadata. A refused update changes nothing and returns the key and the reason: 400 for an unknown or read-only key, a value of the wrong kind, or a configuration the value would make invalid, and 500 when the configuration file cannot be read or written. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
359
+ patch: operations["updateSetting"];
360
+ trace?: never;
361
+ };
362
+ "/api/v1/settings/auto-publish/{id}": {
363
+ parameters: {
364
+ query?: never;
365
+ header?: never;
366
+ path?: never;
367
+ cookie?: never;
368
+ };
369
+ get?: never;
370
+ /** @description Create or replace one auto-publish rule. Saving a rule installs nothing: the response lists the recorded repositories the rule matches and each one's hook state per event, and installAutoPublishHooks installs in one repository at a time. 400 when the rule is invalid, for example a match pattern the server cannot read for its kind. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
371
+ put: operations["saveAutoPublishRule"];
372
+ post?: never;
373
+ /** @description Remove one auto-publish rule. Removing a rule changes no hook: the response reports the hooks of the repositories it matched as they are, and a hook keeps publishing until the user removes it explicitly, for example with peasant village hooks uninstall. 404 when no rule has this identifier. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
374
+ delete: operations["deleteAutoPublishRule"];
375
+ options?: never;
376
+ head?: never;
377
+ patch?: never;
378
+ trace?: never;
379
+ };
380
+ "/api/v1/settings/auto-publish/{id}/install": {
381
+ parameters: {
382
+ query?: never;
383
+ header?: never;
384
+ path?: never;
385
+ cookie?: never;
386
+ };
387
+ get?: never;
388
+ put?: never;
389
+ /** @description Install the rule's hooks, one per rule event, in one recorded repository the rule matches. Events are independent: the response reports each event's hook, and a blocked hook carries the remedy, because Peasant never overwrites a hook it does not manage. 400 when the path is not a recorded repository the rule matches, so nothing is installed in an unrecorded repository; 404 when no rule has this identifier. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
390
+ post: operations["installAutoPublishHooks"];
391
+ delete?: never;
392
+ options?: never;
393
+ head?: never;
394
+ patch?: never;
395
+ trace?: never;
396
+ };
327
397
  "/api/v1/shutdown": {
328
398
  parameters: {
329
399
  query?: never;
@@ -333,7 +403,7 @@ export interface paths {
333
403
  };
334
404
  get?: never;
335
405
  put?: never;
336
- /** @description Gracefully shutdown the server (localhost only). */
406
+ /** @description Gracefully shutdown the server (localhost only). Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
337
407
  post: operations["postShutdown"];
338
408
  delete?: never;
339
409
  options?: never;
@@ -341,6 +411,91 @@ export interface paths {
341
411
  patch?: never;
342
412
  trace?: never;
343
413
  };
414
+ "/api/v1/sync/auth": {
415
+ parameters: {
416
+ query?: never;
417
+ header?: never;
418
+ path?: never;
419
+ cookie?: never;
420
+ };
421
+ /** @description Report whether this computer holds a valid Village credential. A signed-out computer returns authenticated false and names no account. */
422
+ get: operations["getSyncAuth"];
423
+ put?: never;
424
+ post?: never;
425
+ delete?: never;
426
+ options?: never;
427
+ head?: never;
428
+ patch?: never;
429
+ trace?: never;
430
+ };
431
+ "/api/v1/sync/login": {
432
+ parameters: {
433
+ query?: never;
434
+ header?: never;
435
+ path?: never;
436
+ cookie?: never;
437
+ };
438
+ get?: never;
439
+ put?: never;
440
+ /** @description Start the Village sign-in in the browser and return at once. pending means the sign-in started; poll getSyncAuth until it reports authenticated. already_authenticated means nothing started. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
441
+ post: operations["syncLogin"];
442
+ delete?: never;
443
+ options?: never;
444
+ head?: never;
445
+ patch?: never;
446
+ trace?: never;
447
+ };
448
+ "/api/v1/sync/logout": {
449
+ parameters: {
450
+ query?: never;
451
+ header?: never;
452
+ path?: never;
453
+ cookie?: never;
454
+ };
455
+ get?: never;
456
+ put?: never;
457
+ /** @description End this computer's Village sign-in by removing its stored Village credential. This route changes local state only. Logging out a computer that holds no credential returns already_logged_out. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
458
+ post: operations["syncLogout"];
459
+ delete?: never;
460
+ options?: never;
461
+ head?: never;
462
+ patch?: never;
463
+ trace?: never;
464
+ };
465
+ "/api/v1/sync/push": {
466
+ parameters: {
467
+ query?: never;
468
+ header?: never;
469
+ path?: never;
470
+ cookie?: never;
471
+ };
472
+ get?: never;
473
+ put?: never;
474
+ /** @description Publish or update local sessions to Village and change who can read them. Publishing is collectives only: collectives.add shares each transcript with a collective, collectives.remove takes it back, and a collective named in neither keeps its access. The request carries no visibility and no license, unknown fields are refused, and the server applies no default license to a publish that names collectives. Each session result lists its steps in the order they ran, the content step first; its status describes the content, so a push that only changes collectives reports skipped with a skipped content step. A skipped step says why and is not a failure. A failed step keeps what Village had for it and makes the session an error; a later step the server did not run after a failure is not_attempted. The counts tally sessions by status after every step ran. Returns 403 with a JSON error, and changes nothing, when the request did not come from this local server: its Host header does not name a loopback address, or a browser sent it from another origin. */
475
+ post: operations["pushSyncSessions"];
476
+ delete?: never;
477
+ options?: never;
478
+ head?: never;
479
+ patch?: never;
480
+ trace?: never;
481
+ };
482
+ "/api/v1/sync/redactions": {
483
+ parameters: {
484
+ query?: never;
485
+ header?: never;
486
+ path?: never;
487
+ cookie?: never;
488
+ };
489
+ /** @description Preview what the redaction engine hides in one session before it leaves the machine, grouped by category and rule. Each item names its line and, when the match lies inside a turn, the entryIndex of the turn that shows it (the TurnDetail.index space) and, for a match in a tool call, its toolCallId. One item stands for every occurrence of the same text under the same rule and names the first. An omitted level uses the configured default; a level the server does not offer is refused. */
490
+ get: operations["getSyncRedactions"];
491
+ put?: never;
492
+ post?: never;
493
+ delete?: never;
494
+ options?: never;
495
+ head?: never;
496
+ patch?: never;
497
+ trace?: never;
498
+ };
344
499
  "/api/v1/sync/sessions": {
345
500
  parameters: {
346
501
  query?: never;
@@ -358,6 +513,23 @@ export interface paths {
358
513
  patch?: never;
359
514
  trace?: never;
360
515
  };
516
+ "/api/v1/village/collectives": {
517
+ parameters: {
518
+ query?: never;
519
+ header?: never;
520
+ path?: never;
521
+ cookie?: never;
522
+ };
523
+ /** @description List the Village collectives the signed-in user belongs to. The local server reads them from Village with this computer's stored credential: 401 when this computer is not signed in, 502 when Village cannot be read. With sessionId, the server suggests collectives by comparing schema.RemoteLabel of the session's git remote with each collective's linked repositories and linked GitHub organization; clients must not normalize remotes themselves. */
524
+ get: operations["listVillageCollectives"];
525
+ put?: never;
526
+ post?: never;
527
+ delete?: never;
528
+ options?: never;
529
+ head?: never;
530
+ patch?: never;
531
+ trace?: never;
532
+ };
361
533
  }
362
534
  export type webhooks = Record<string, never>;
363
535
  export interface components {
@@ -374,6 +546,10 @@ export interface components {
374
546
  ClientMessage: Schema.ClientMessage;
375
547
  DashboardPayload: Schema.DashboardPayload;
376
548
  LocalSyncSessionsPayload: Schema.LocalSyncSessionsPayload;
549
+ OpenapiLocalErrorResponse: {
550
+ code?: string;
551
+ error: string;
552
+ };
377
553
  QualityPayload: Schema.QualityPayload;
378
554
  SchemaActivityEdge: Schema.ActivityEdge;
379
555
  /**
@@ -447,6 +623,39 @@ export interface components {
447
623
  * @example assoc-20260726:session-a:commit-1
448
624
  */
449
625
  SchemaAssociationID: Schema.AssociationID;
626
+ /**
627
+ * Auto Publish Event
628
+ * @description Git hook that publishes an auto-publish rule's sessions
629
+ * @example pre-push
630
+ * @example post-commit
631
+ * @enum {string}
632
+ */
633
+ SchemaAutoPublishEvent: Schema.AutoPublishEvent;
634
+ SchemaAutoPublishHook: Schema.AutoPublishHook;
635
+ SchemaAutoPublishHookRemedy: Schema.AutoPublishHookRemedy;
636
+ /**
637
+ * Auto Publish Hook Status
638
+ * @description State of one repository's auto-publish hook for one event
639
+ * @example absent
640
+ * @example installed
641
+ * @example blocked
642
+ * @example failed
643
+ * @enum {string}
644
+ */
645
+ SchemaAutoPublishHookStatus: Schema.AutoPublishHookStatus;
646
+ SchemaAutoPublishInstallRequest: Schema.AutoPublishInstallRequest;
647
+ SchemaAutoPublishRemovalResponse: Schema.AutoPublishRemovalResponse;
648
+ SchemaAutoPublishRepository: Schema.AutoPublishRepository;
649
+ SchemaAutoPublishRule: Schema.AutoPublishRule;
650
+ /**
651
+ * Auto Publish Rule Kind
652
+ * @description What an auto-publish rule's match pattern names
653
+ * @example folder
654
+ * @example remote
655
+ * @enum {string}
656
+ */
657
+ SchemaAutoPublishRuleKind: Schema.AutoPublishRuleKind;
658
+ SchemaAutoPublishRuleRequest: Schema.AutoPublishRuleRequest;
450
659
  /**
451
660
  * Change Binding
452
661
  * @description Strength of the evidence connecting a recorded session to a code change
@@ -622,11 +831,56 @@ export interface components {
622
831
  * @enum {string}
623
832
  */
624
833
  SchemaInsightProvenance: Schema.InsightProvenance;
834
+ SchemaInterpretationDiagnostics: Schema.InterpretationDiagnostics;
835
+ SchemaLocalCollectiveSuggestion: Schema.LocalCollectiveSuggestion;
836
+ /**
837
+ * Local Collective Suggestion Reason
838
+ * @description Why the local server suggests a collective for a session
839
+ * @example linked_repository
840
+ * @example linked_github_org
841
+ * @enum {string}
842
+ */
843
+ SchemaLocalCollectiveSuggestionReason: Schema.LocalCollectiveSuggestionReason;
625
844
  SchemaLocalHelperMembersPayload: Schema.LocalHelperMembersPayload;
845
+ SchemaLocalPublication: Schema.LocalPublication;
846
+ SchemaLocalPublicationAttemptFailure: Schema.LocalPublicationAttemptFailure;
847
+ SchemaLocalPublicationAudienceMember: Schema.LocalPublicationAudienceMember;
848
+ /**
849
+ * Local Publication State
850
+ * @description Whether a local session has a publication on Village
851
+ * @example unpublished
852
+ * @example published
853
+ * @enum {string}
854
+ */
855
+ SchemaLocalPublicationState: Schema.LocalPublicationState;
856
+ SchemaLocalPublicationsResponse: Schema.LocalPublicationsResponse;
626
857
  SchemaLocalSessionListItem: Schema.LocalSessionListItem;
627
858
  SchemaLocalSessionListPayload: Schema.LocalSessionListPayload;
628
859
  SchemaLocalSessionRow: Schema.LocalSessionRow;
860
+ SchemaLocalSetting: Schema.LocalSetting;
861
+ /**
862
+ * Local Setting Kind
863
+ * @description JSON type of one local setting's value
864
+ * @example boolean
865
+ * @example integer
866
+ * @example string
867
+ * @example string_list
868
+ * @example choice
869
+ * @example structured
870
+ * @enum {string}
871
+ */
872
+ SchemaLocalSettingKind: Schema.LocalSettingKind;
873
+ SchemaLocalSettingRefusal: Schema.LocalSettingRefusal;
874
+ SchemaLocalSettingUpdateRequest: Schema.LocalSettingUpdateRequest;
875
+ /**
876
+ * Local Setting Value
877
+ * @description One setting's value, of the JSON type its kind names; null means the key is unset and the server's default applies
878
+ */
879
+ SchemaLocalSettingValue: Schema.LocalSettingValue;
880
+ SchemaLocalSettingsResponse: Schema.LocalSettingsResponse;
629
881
  SchemaLocalSyncSummary: Schema.LocalSyncSummary;
882
+ SchemaLocalVillageCollective: Schema.LocalVillageCollective;
883
+ SchemaLocalVillageCollectivesResponse: Schema.LocalVillageCollectivesResponse;
630
884
  SchemaMapEdge: Schema.MapEdge;
631
885
  SchemaMapGraphPayload: Schema.MapGraphPayload;
632
886
  SchemaMapNode: Schema.MapNode;
@@ -768,6 +1022,7 @@ export interface components {
768
1022
  * @enum {string}
769
1023
  */
770
1024
  SchemaRelationshipTargetState: Schema.RelationshipTargetState;
1025
+ SchemaRetainedUnknownRecord: Schema.RetainedUnknownRecord;
771
1026
  SchemaReviewListPayload: Schema.ReviewListPayload;
772
1027
  /**
773
1028
  * Rewrite Method
@@ -892,6 +1147,83 @@ export interface components {
892
1147
  * Format: public-ref-utf8-96-bytes
893
1148
  */
894
1149
  SchemaSubmissionRef: Schema.SubmissionRef;
1150
+ SchemaSyncAuthResponse: Schema.SyncAuthResponse;
1151
+ /**
1152
+ * Sync Hold Reason
1153
+ * @description Why a held local session cannot be published yet
1154
+ * @example metrics_missing
1155
+ * @example metadata_missing
1156
+ * @enum {string}
1157
+ */
1158
+ SchemaSyncHoldReason: Schema.SyncHoldReason;
1159
+ SchemaSyncLoginResponse: Schema.SyncLoginResponse;
1160
+ /**
1161
+ * Sync Login Status
1162
+ * @description Result of starting the Village sign-in from the local server
1163
+ * @example pending
1164
+ * @example already_authenticated
1165
+ * @enum {string}
1166
+ */
1167
+ SchemaSyncLoginStatus: Schema.SyncLoginStatus;
1168
+ SchemaSyncLogoutResponse: Schema.SyncLogoutResponse;
1169
+ /**
1170
+ * Sync Logout Status
1171
+ * @description Result of ending this computer's Village sign-in
1172
+ * @example logged_out
1173
+ * @example already_logged_out
1174
+ * @enum {string}
1175
+ */
1176
+ SchemaSyncLogoutStatus: Schema.SyncLogoutStatus;
1177
+ SchemaSyncPushCollectives: Schema.SyncPushCollectives;
1178
+ SchemaSyncPushRequest: Schema.SyncPushRequest;
1179
+ SchemaSyncPushResponse: Schema.SyncPushResponse;
1180
+ SchemaSyncPushSessionResult: Schema.SyncPushSessionResult;
1181
+ /**
1182
+ * Sync Push Session Status
1183
+ * @description Outcome of one session in a push
1184
+ * @example new
1185
+ * @example updated
1186
+ * @example skipped
1187
+ * @example error
1188
+ * @example held
1189
+ * @enum {string}
1190
+ */
1191
+ SchemaSyncPushSessionStatus: Schema.SyncPushSessionStatus;
1192
+ /**
1193
+ * Sync Push Step
1194
+ * @description One step a push runs for a session
1195
+ * @example content
1196
+ * @example add_collective
1197
+ * @example remove_collective
1198
+ * @enum {string}
1199
+ */
1200
+ SchemaSyncPushStep: Schema.SyncPushStep;
1201
+ /**
1202
+ * Sync Push Step Outcome
1203
+ * @description Result of one push step
1204
+ * @example succeeded
1205
+ * @example pending_approval
1206
+ * @example skipped
1207
+ * @example failed
1208
+ * @example not_attempted
1209
+ * @enum {string}
1210
+ */
1211
+ SchemaSyncPushStepOutcome: Schema.SyncPushStepOutcome;
1212
+ SchemaSyncPushStepResult: Schema.SyncPushStepResult;
1213
+ SchemaSyncRedactionCategoryGroup: Schema.SyncRedactionCategoryGroup;
1214
+ SchemaSyncRedactionItem: Schema.SyncRedactionItem;
1215
+ SchemaSyncRedactionRuleGroup: Schema.SyncRedactionRuleGroup;
1216
+ SchemaSyncRedactionsResponse: Schema.SyncRedactionsResponse;
1217
+ /**
1218
+ * Sync Status
1219
+ * @description Publication status of one listed local session; held rows always carry a hold reason
1220
+ * @example new
1221
+ * @example updated
1222
+ * @example synced
1223
+ * @example held
1224
+ * @enum {string}
1225
+ */
1226
+ SchemaSyncStatus: Schema.SyncStatus;
895
1227
  /**
896
1228
  * Target Kind
897
1229
  * @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
@@ -960,6 +1292,73 @@ export interface components {
960
1292
  * @enum {string}
961
1293
  */
962
1294
  SchemaValueDomainKind: Schema.ValueDomainKind;
1295
+ /**
1296
+ * Village Group Acceptance Mode
1297
+ * @description How a collective accepts new members and contributions
1298
+ * @example open
1299
+ * @example verified_only
1300
+ * @example curated
1301
+ * @enum {string}
1302
+ */
1303
+ SchemaVillageGroupAcceptanceMode: Schema.VillageGroupAcceptanceMode;
1304
+ /**
1305
+ * Village Group Data Access
1306
+ * @description Who may read a collective's pooled transcript data
1307
+ * @example members_only
1308
+ * @example contributors
1309
+ * @example public
1310
+ * @enum {string}
1311
+ */
1312
+ SchemaVillageGroupDataAccess: Schema.VillageGroupDataAccess;
1313
+ /**
1314
+ * Village Group Role
1315
+ * @description A user's role in one collective
1316
+ * @example owner
1317
+ * @example member
1318
+ * @example contributor
1319
+ * @example pending
1320
+ * @enum {string}
1321
+ */
1322
+ SchemaVillageGroupRole: Schema.VillageGroupRole;
1323
+ SchemaVillagePromptRequest: Schema.VillagePromptRequest;
1324
+ /**
1325
+ * Village Pull Request Attachment State
1326
+ * @description Current lifecycle state of a pull request's prompt attachment
1327
+ * @example requested
1328
+ * @example waiting
1329
+ * @example preview
1330
+ * @example attached
1331
+ * @example detached
1332
+ * @enum {string}
1333
+ */
1334
+ SchemaVillagePullRequestAttachmentState: Schema.VillagePullRequestAttachmentState;
1335
+ /**
1336
+ * Village Share Status
1337
+ * @description Status of one collective share-attempt event. Pending, approved, and rejected can appear in current projections; retracted and revoked are terminal ledger states.
1338
+ * @example pending
1339
+ * @example approved
1340
+ * @example rejected
1341
+ * @example retracted
1342
+ * @example revoked
1343
+ * @enum {string}
1344
+ */
1345
+ SchemaVillageShareStatus: Schema.VillageShareStatus;
1346
+ /**
1347
+ * Village Transcript Deletion Policy
1348
+ * @description Whether leaving a collective retracts contributed transcripts by default
1349
+ * @example user_choice
1350
+ * @example mandatory
1351
+ * @enum {string}
1352
+ */
1353
+ SchemaVillageTranscriptDeletionPolicy: Schema.VillageTranscriptDeletionPolicy;
1354
+ /**
1355
+ * Village UUID
1356
+ * Format: uuid
1357
+ * @description Village-side canonical lowercase UUID identifier
1358
+ * @example 123e4567-e89b-12d3-a456-426614174000
1359
+ */
1360
+ SchemaVillageUUID: Schema.VillageUUID;
1361
+ SchemaVillageUserGroup: Schema.VillageUserGroup;
963
1362
  SearchPayload: Schema.SearchPayload;
964
1363
  ServerMessage: Schema.ServerMessage;
965
1364
  SessionDetailPayload: Schema.SessionDetailPayload;
@@ -1045,6 +1444,15 @@ export interface operations {
1045
1444
  "application/json": components["schemas"]["SchemaCreateAnnotationResponse"];
1046
1445
  };
1047
1446
  };
1447
+ /** @description Forbidden */
1448
+ 403: {
1449
+ headers: {
1450
+ [name: string]: unknown;
1451
+ };
1452
+ content: {
1453
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
1454
+ };
1455
+ };
1048
1456
  };
1049
1457
  };
1050
1458
  getUICapabilities: {
@@ -1228,6 +1636,49 @@ export interface operations {
1228
1636
  };
1229
1637
  };
1230
1638
  };
1639
+ listPublications: {
1640
+ parameters: {
1641
+ query: {
1642
+ /** @description Comma-separated local session IDs */
1643
+ sessionIds: string;
1644
+ /** @description Set to audience to add each published transcript's collectives */
1645
+ include?: "audience";
1646
+ };
1647
+ header?: never;
1648
+ path?: never;
1649
+ cookie?: never;
1650
+ };
1651
+ requestBody?: never;
1652
+ responses: {
1653
+ /** @description OK */
1654
+ 200: {
1655
+ headers: {
1656
+ [name: string]: unknown;
1657
+ };
1658
+ content: {
1659
+ "application/json": components["schemas"]["SchemaLocalPublicationsResponse"];
1660
+ };
1661
+ };
1662
+ /** @description Bad Request */
1663
+ 400: {
1664
+ headers: {
1665
+ [name: string]: unknown;
1666
+ };
1667
+ content: {
1668
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
1669
+ };
1670
+ };
1671
+ /** @description Bad Gateway */
1672
+ 502: {
1673
+ headers: {
1674
+ [name: string]: unknown;
1675
+ };
1676
+ content: {
1677
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
1678
+ };
1679
+ };
1680
+ };
1681
+ };
1231
1682
  listReviewChanges: {
1232
1683
  parameters: {
1233
1684
  query?: never;
@@ -1451,7 +1902,7 @@ export interface operations {
1451
1902
  };
1452
1903
  };
1453
1904
  };
1454
- postShutdown: {
1905
+ getSettings: {
1455
1906
  parameters: {
1456
1907
  query?: never;
1457
1908
  header?: never;
@@ -1466,22 +1917,23 @@ export interface operations {
1466
1917
  [name: string]: unknown;
1467
1918
  };
1468
1919
  content: {
1469
- "application/json": components["schemas"]["SchemaShutdownResponse"];
1920
+ "application/json": components["schemas"]["SchemaLocalSettingsResponse"];
1470
1921
  };
1471
1922
  };
1472
1923
  };
1473
1924
  };
1474
- listSyncSessionsGrouped: {
1925
+ updateSetting: {
1475
1926
  parameters: {
1476
- query?: {
1477
- /** @description Set to grouped for grouped rows */
1478
- view?: "grouped";
1479
- };
1927
+ query?: never;
1480
1928
  header?: never;
1481
1929
  path?: never;
1482
1930
  cookie?: never;
1483
1931
  };
1484
- requestBody?: never;
1932
+ requestBody: {
1933
+ content: {
1934
+ "application/json": components["schemas"]["SchemaLocalSettingUpdateRequest"];
1935
+ };
1936
+ };
1485
1937
  responses: {
1486
1938
  /** @description OK */
1487
1939
  200: {
@@ -1489,7 +1941,403 @@ export interface operations {
1489
1941
  [name: string]: unknown;
1490
1942
  };
1491
1943
  content: {
1492
- "application/json": components["schemas"]["LocalSyncSessionsPayload"] | components["schemas"]["SchemaLocalSessionListPayload"];
1944
+ "application/json": components["schemas"]["SchemaLocalSetting"];
1945
+ };
1946
+ };
1947
+ /** @description Bad Request */
1948
+ 400: {
1949
+ headers: {
1950
+ [name: string]: unknown;
1951
+ };
1952
+ content: {
1953
+ "application/json": components["schemas"]["SchemaLocalSettingRefusal"];
1954
+ };
1955
+ };
1956
+ /** @description Forbidden */
1957
+ 403: {
1958
+ headers: {
1959
+ [name: string]: unknown;
1960
+ };
1961
+ content: {
1962
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
1963
+ };
1964
+ };
1965
+ /** @description Internal Server Error */
1966
+ 500: {
1967
+ headers: {
1968
+ [name: string]: unknown;
1969
+ };
1970
+ content: {
1971
+ "application/json": components["schemas"]["SchemaLocalSettingRefusal"];
1972
+ };
1973
+ };
1974
+ };
1975
+ };
1976
+ saveAutoPublishRule: {
1977
+ parameters: {
1978
+ query?: never;
1979
+ header?: never;
1980
+ path: {
1981
+ /** @description Auto-publish rule identifier */
1982
+ id: string;
1983
+ };
1984
+ cookie?: never;
1985
+ };
1986
+ requestBody: {
1987
+ content: {
1988
+ "application/json": components["schemas"]["SchemaAutoPublishRuleRequest"];
1989
+ };
1990
+ };
1991
+ responses: {
1992
+ /** @description OK */
1993
+ 200: {
1994
+ headers: {
1995
+ [name: string]: unknown;
1996
+ };
1997
+ content: {
1998
+ "application/json": components["schemas"]["SchemaAutoPublishRule"];
1999
+ };
2000
+ };
2001
+ /** @description Bad Request */
2002
+ 400: {
2003
+ headers: {
2004
+ [name: string]: unknown;
2005
+ };
2006
+ content: {
2007
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2008
+ };
2009
+ };
2010
+ /** @description Forbidden */
2011
+ 403: {
2012
+ headers: {
2013
+ [name: string]: unknown;
2014
+ };
2015
+ content: {
2016
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2017
+ };
2018
+ };
2019
+ };
2020
+ };
2021
+ deleteAutoPublishRule: {
2022
+ parameters: {
2023
+ query?: never;
2024
+ header?: never;
2025
+ path: {
2026
+ /** @description Auto-publish rule identifier */
2027
+ id: string;
2028
+ };
2029
+ cookie?: never;
2030
+ };
2031
+ requestBody?: never;
2032
+ responses: {
2033
+ /** @description OK */
2034
+ 200: {
2035
+ headers: {
2036
+ [name: string]: unknown;
2037
+ };
2038
+ content: {
2039
+ "application/json": components["schemas"]["SchemaAutoPublishRemovalResponse"];
2040
+ };
2041
+ };
2042
+ /** @description Forbidden */
2043
+ 403: {
2044
+ headers: {
2045
+ [name: string]: unknown;
2046
+ };
2047
+ content: {
2048
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2049
+ };
2050
+ };
2051
+ /** @description Not Found */
2052
+ 404: {
2053
+ headers: {
2054
+ [name: string]: unknown;
2055
+ };
2056
+ content: {
2057
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2058
+ };
2059
+ };
2060
+ };
2061
+ };
2062
+ installAutoPublishHooks: {
2063
+ parameters: {
2064
+ query?: never;
2065
+ header?: never;
2066
+ path: {
2067
+ /** @description Auto-publish rule identifier */
2068
+ id: string;
2069
+ };
2070
+ cookie?: never;
2071
+ };
2072
+ requestBody: {
2073
+ content: {
2074
+ "application/json": components["schemas"]["SchemaAutoPublishInstallRequest"];
2075
+ };
2076
+ };
2077
+ responses: {
2078
+ /** @description OK */
2079
+ 200: {
2080
+ headers: {
2081
+ [name: string]: unknown;
2082
+ };
2083
+ content: {
2084
+ "application/json": components["schemas"]["SchemaAutoPublishRepository"];
2085
+ };
2086
+ };
2087
+ /** @description Bad Request */
2088
+ 400: {
2089
+ headers: {
2090
+ [name: string]: unknown;
2091
+ };
2092
+ content: {
2093
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2094
+ };
2095
+ };
2096
+ /** @description Forbidden */
2097
+ 403: {
2098
+ headers: {
2099
+ [name: string]: unknown;
2100
+ };
2101
+ content: {
2102
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2103
+ };
2104
+ };
2105
+ /** @description Not Found */
2106
+ 404: {
2107
+ headers: {
2108
+ [name: string]: unknown;
2109
+ };
2110
+ content: {
2111
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2112
+ };
2113
+ };
2114
+ };
2115
+ };
2116
+ postShutdown: {
2117
+ parameters: {
2118
+ query?: never;
2119
+ header?: never;
2120
+ path?: never;
2121
+ cookie?: never;
2122
+ };
2123
+ requestBody?: never;
2124
+ responses: {
2125
+ /** @description OK */
2126
+ 200: {
2127
+ headers: {
2128
+ [name: string]: unknown;
2129
+ };
2130
+ content: {
2131
+ "application/json": components["schemas"]["SchemaShutdownResponse"];
2132
+ };
2133
+ };
2134
+ /** @description Forbidden */
2135
+ 403: {
2136
+ headers: {
2137
+ [name: string]: unknown;
2138
+ };
2139
+ content: {
2140
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2141
+ };
2142
+ };
2143
+ };
2144
+ };
2145
+ getSyncAuth: {
2146
+ parameters: {
2147
+ query?: never;
2148
+ header?: never;
2149
+ path?: never;
2150
+ cookie?: never;
2151
+ };
2152
+ requestBody?: never;
2153
+ responses: {
2154
+ /** @description OK */
2155
+ 200: {
2156
+ headers: {
2157
+ [name: string]: unknown;
2158
+ };
2159
+ content: {
2160
+ "application/json": components["schemas"]["SchemaSyncAuthResponse"];
2161
+ };
2162
+ };
2163
+ };
2164
+ };
2165
+ syncLogin: {
2166
+ parameters: {
2167
+ query?: never;
2168
+ header?: never;
2169
+ path?: never;
2170
+ cookie?: never;
2171
+ };
2172
+ requestBody?: never;
2173
+ responses: {
2174
+ /** @description OK */
2175
+ 200: {
2176
+ headers: {
2177
+ [name: string]: unknown;
2178
+ };
2179
+ content: {
2180
+ "application/json": components["schemas"]["SchemaSyncLoginResponse"];
2181
+ };
2182
+ };
2183
+ /** @description Forbidden */
2184
+ 403: {
2185
+ headers: {
2186
+ [name: string]: unknown;
2187
+ };
2188
+ content: {
2189
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2190
+ };
2191
+ };
2192
+ };
2193
+ };
2194
+ syncLogout: {
2195
+ parameters: {
2196
+ query?: never;
2197
+ header?: never;
2198
+ path?: never;
2199
+ cookie?: never;
2200
+ };
2201
+ requestBody?: never;
2202
+ responses: {
2203
+ /** @description OK */
2204
+ 200: {
2205
+ headers: {
2206
+ [name: string]: unknown;
2207
+ };
2208
+ content: {
2209
+ "application/json": components["schemas"]["SchemaSyncLogoutResponse"];
2210
+ };
2211
+ };
2212
+ /** @description Forbidden */
2213
+ 403: {
2214
+ headers: {
2215
+ [name: string]: unknown;
2216
+ };
2217
+ content: {
2218
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2219
+ };
2220
+ };
2221
+ };
2222
+ };
2223
+ pushSyncSessions: {
2224
+ parameters: {
2225
+ query?: never;
2226
+ header?: never;
2227
+ path?: never;
2228
+ cookie?: never;
2229
+ };
2230
+ requestBody: {
2231
+ content: {
2232
+ "application/json": components["schemas"]["SchemaSyncPushRequest"];
2233
+ };
2234
+ };
2235
+ responses: {
2236
+ /** @description OK */
2237
+ 200: {
2238
+ headers: {
2239
+ [name: string]: unknown;
2240
+ };
2241
+ content: {
2242
+ "application/json": components["schemas"]["SchemaSyncPushResponse"];
2243
+ };
2244
+ };
2245
+ /** @description Forbidden */
2246
+ 403: {
2247
+ headers: {
2248
+ [name: string]: unknown;
2249
+ };
2250
+ content: {
2251
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2252
+ };
2253
+ };
2254
+ };
2255
+ };
2256
+ getSyncRedactions: {
2257
+ parameters: {
2258
+ query: {
2259
+ /** @description Local session to scan */
2260
+ session_id: string;
2261
+ /** @description Requested redaction level; omit to use the configured default */
2262
+ level?: string;
2263
+ };
2264
+ header?: never;
2265
+ path?: never;
2266
+ cookie?: never;
2267
+ };
2268
+ requestBody?: never;
2269
+ responses: {
2270
+ /** @description OK */
2271
+ 200: {
2272
+ headers: {
2273
+ [name: string]: unknown;
2274
+ };
2275
+ content: {
2276
+ "application/json": components["schemas"]["SchemaSyncRedactionsResponse"];
2277
+ };
2278
+ };
2279
+ };
2280
+ };
2281
+ listSyncSessionsGrouped: {
2282
+ parameters: {
2283
+ query?: {
2284
+ /** @description Set to grouped for grouped rows */
2285
+ view?: "grouped";
2286
+ };
2287
+ header?: never;
2288
+ path?: never;
2289
+ cookie?: never;
2290
+ };
2291
+ requestBody?: never;
2292
+ responses: {
2293
+ /** @description OK */
2294
+ 200: {
2295
+ headers: {
2296
+ [name: string]: unknown;
2297
+ };
2298
+ content: {
2299
+ "application/json": components["schemas"]["LocalSyncSessionsPayload"] | components["schemas"]["SchemaLocalSessionListPayload"];
2300
+ };
2301
+ };
2302
+ };
2303
+ };
2304
+ listVillageCollectives: {
2305
+ parameters: {
2306
+ query?: {
2307
+ /** @description Local session to compute suggestions for */
2308
+ sessionId?: string;
2309
+ };
2310
+ header?: never;
2311
+ path?: never;
2312
+ cookie?: never;
2313
+ };
2314
+ requestBody?: never;
2315
+ responses: {
2316
+ /** @description OK */
2317
+ 200: {
2318
+ headers: {
2319
+ [name: string]: unknown;
2320
+ };
2321
+ content: {
2322
+ "application/json": components["schemas"]["SchemaLocalVillageCollectivesResponse"];
2323
+ };
2324
+ };
2325
+ /** @description Unauthorized */
2326
+ 401: {
2327
+ headers: {
2328
+ [name: string]: unknown;
2329
+ };
2330
+ content: {
2331
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
2332
+ };
2333
+ };
2334
+ /** @description Bad Gateway */
2335
+ 502: {
2336
+ headers: {
2337
+ [name: string]: unknown;
2338
+ };
2339
+ content: {
2340
+ "application/json": components["schemas"]["OpenapiLocalErrorResponse"];
1493
2341
  };
1494
2342
  };
1495
2343
  };