@littlebigbrain/client 0.6.0 → 0.7.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.
package/dist/schema.d.ts CHANGED
@@ -415,6 +415,23 @@ export interface paths {
415
415
  patch?: never;
416
416
  trace?: never;
417
417
  };
418
+ "/v1/graph/entities/sample": {
419
+ parameters: {
420
+ query?: never;
421
+ header?: never;
422
+ path?: never;
423
+ cookie?: never;
424
+ };
425
+ /** Bounded class sample from the ranged adjacency index */
426
+ get: operations["get_v1_graph_entities_sample"];
427
+ put?: never;
428
+ post?: never;
429
+ delete?: never;
430
+ options?: never;
431
+ head?: never;
432
+ patch?: never;
433
+ trace?: never;
434
+ };
418
435
  "/v1/graph/entity": {
419
436
  parameters: {
420
437
  query?: never;
@@ -518,6 +535,23 @@ export interface paths {
518
535
  patch?: never;
519
536
  trace?: never;
520
537
  };
538
+ "/v1/graph/fork": {
539
+ parameters: {
540
+ query?: never;
541
+ header?: never;
542
+ path?: never;
543
+ cookie?: never;
544
+ };
545
+ get?: never;
546
+ put?: never;
547
+ /** Fork a graph: copy-based clone of the source graph's current head into a new graph in the same tenant — no data replay, no re-embedding; runs as a durable job (poll the destination's metadata) */
548
+ post: operations["post_v1_graph_fork"];
549
+ delete?: never;
550
+ options?: never;
551
+ head?: never;
552
+ patch?: never;
553
+ trace?: never;
554
+ };
521
555
  "/v1/graph/groundability": {
522
556
  parameters: {
523
557
  query?: never;
@@ -620,6 +654,23 @@ export interface paths {
620
654
  patch?: never;
621
655
  trace?: never;
622
656
  };
657
+ "/v1/graph/reload": {
658
+ parameters: {
659
+ query?: never;
660
+ header?: never;
661
+ path?: never;
662
+ cookie?: never;
663
+ };
664
+ get?: never;
665
+ put?: never;
666
+ /** Declarative full-state replace: body is bulk-import NDJSON of the desired state; entities absent from the payload leave current state (history kept for as_of), payload entities are upserted, and the cutover is one atomic visibility boundary. dry_run=true previews the full delta without changing anything */
667
+ post: operations["post_v1_graph_reload"];
668
+ delete?: never;
669
+ options?: never;
670
+ head?: never;
671
+ patch?: never;
672
+ trace?: never;
673
+ };
623
674
  "/v1/graph/retract": {
624
675
  parameters: {
625
676
  query?: never;
@@ -3195,6 +3246,29 @@ export interface components {
3195
3246
  snapshot: components["schemas"]["SnapshotView"];
3196
3247
  transitions: components["schemas"]["TransitionEntry"][];
3197
3248
  };
3249
+ /**
3250
+ * @description Exact class cardinality plus a bounded deterministic sample served from the
3251
+ * ranged adjacency meta. `indexed_commit_seq` makes index lag explicit while
3252
+ * `snapshot.commit_seq` reports the current graph head.
3253
+ */
3254
+ EntityTypeSampleResponse: {
3255
+ entities: components["schemas"]["EntityTypeSampleRow"][];
3256
+ entity_type: string;
3257
+ indexed_commit_seq: components["schemas"]["CommitSeq"];
3258
+ snapshot: components["schemas"]["SnapshotView"];
3259
+ total_count: number;
3260
+ };
3261
+ /**
3262
+ * @description One bounded, index-backed class member for interactive graph exploration.
3263
+ * Unlike [`EntityExplorerRow`], this deliberately carries only fields the
3264
+ * adjacency build already knows; exhaustive attributes and observation counts
3265
+ * remain on the full entity/browse reads.
3266
+ */
3267
+ EntityTypeSampleRow: {
3268
+ entity: components["schemas"]["EntityView"];
3269
+ in_degree: number;
3270
+ out_degree: number;
3271
+ };
3198
3272
  EntityView: {
3199
3273
  id: components["schemas"]["EntityId"];
3200
3274
  name: string;
@@ -3775,6 +3849,23 @@ export interface components {
3775
3849
  */
3776
3850
  snapshot_token: string;
3777
3851
  };
3852
+ /**
3853
+ * @description Response to `POST /v1/graph/fork`: the fork runs as a durable background job
3854
+ * (a create-only copy of the source graph into a new graph id in the same
3855
+ * tenant), so this acknowledges the enqueue and points at the poll surface.
3856
+ */
3857
+ GraphForkResponse: {
3858
+ dst_graph_id: string;
3859
+ job_id: string;
3860
+ ok: boolean;
3861
+ /**
3862
+ * @description Poll the destination graph's metadata to observe the fork completing
3863
+ * (the destination becomes readable once its head is published).
3864
+ */
3865
+ poll: string;
3866
+ queued: boolean;
3867
+ src_graph_id: string;
3868
+ };
3778
3869
  GraphId: string;
3779
3870
  /**
3780
3871
  * @description Outcome of the optional one-shot index build a bulk import runs at the end
@@ -3900,6 +3991,12 @@ export interface components {
3900
3991
  * every as-of returns the same picture.
3901
3992
  */
3902
3993
  temporal_coverage?: components["schemas"]["TemporalCoverage"];
3994
+ /**
3995
+ * @description Whether `temporal_coverage` was computed from the full snapshot. The
3996
+ * bounded HTTP metadata path is head-only by default; callers that need
3997
+ * exact event-time coverage opt in explicitly.
3998
+ */
3999
+ temporal_coverage_computed?: boolean;
3903
4000
  unindexed_tail_commits: number;
3904
4001
  /** Format: int64 */
3905
4002
  wal_tail_bytes: number;
@@ -3974,6 +4071,96 @@ export interface components {
3974
4071
  recall_at_k: number;
3975
4072
  snapshot: components["schemas"]["SnapshotView"];
3976
4073
  };
4074
+ /**
4075
+ * @description Outcome of `POST /v1/graph/reload` — the declarative "make the graph match
4076
+ * this full dataset" verb. One atomic cutover replaces the whole current state:
4077
+ * records present in the payload are upserted, and entities present at the
4078
+ * pre-reload head but absent from the payload are removed from current state
4079
+ * (retraction semantics — history stays queryable via `?as_of_commit_seq=`).
4080
+ * The delta report is the "prove I don't have wrong data" aid.
4081
+ *
4082
+ * The whole reconciliation lands as a single graph-head advance, so a reader
4083
+ * never observes a mixed old/new state: a snapshot pinned at `prior_commit_seq`
4084
+ * sees only the old state, and `new_commit_seq` sees only the new state, with
4085
+ * nothing in between.
4086
+ */
4087
+ GraphReloadResponse: {
4088
+ /**
4089
+ * @description True when this was a `?dry_run=true` preview: nothing durable changed and
4090
+ * the counts + `new_commit_seq`/`new_snapshot_token` are the *proposed*
4091
+ * effect of a real reload against the same pre-reload head.
4092
+ */
4093
+ dry_run: boolean;
4094
+ /** @description Payload edges not currently present, within the reconciled scopes. */
4095
+ edges_added: number;
4096
+ /** @description Payload edges already present (re-asserted), within the reconciled scopes. */
4097
+ edges_changed: number;
4098
+ /** @description Current edges retracted because an endpoint left current state. */
4099
+ edges_removed: number;
4100
+ /** @description Entities present in the payload but not at the pre-reload head. */
4101
+ entities_added: number;
4102
+ /**
4103
+ * @description Entities present in both the payload and the pre-reload head (re-asserted;
4104
+ * this is a presence intersection, not a deep property diff).
4105
+ */
4106
+ entities_changed: number;
4107
+ /**
4108
+ * @description Entities present at the pre-reload head but absent from the payload — the
4109
+ * ones leaving current state.
4110
+ */
4111
+ entities_removed: number;
4112
+ /**
4113
+ * @description Parse errors for malformed payload lines (bounded; `error_count` is the
4114
+ * true total). Mirrors bulk import.
4115
+ */
4116
+ error_count: number;
4117
+ errors?: components["schemas"]["GraphImportLineError"][];
4118
+ /**
4119
+ * @description True when the target graph did not exist and this reload bootstrapped it
4120
+ * (the pre-reload baseline was empty).
4121
+ */
4122
+ graph_created?: boolean;
4123
+ /**
4124
+ * @description The idempotency key that scopes this reload's single commit (the caller
4125
+ * key, or a server-minted one).
4126
+ */
4127
+ idempotency_key: string;
4128
+ /**
4129
+ * @description True when this request id was already applied (idempotent replay): the
4130
+ * diff counts are reported as zero because nothing new was written.
4131
+ */
4132
+ idempotent_replay?: boolean;
4133
+ lines_read: number;
4134
+ /**
4135
+ * @description Commit sequence after cutover (real), or the proposed next sequence (dry
4136
+ * run).
4137
+ */
4138
+ new_commit_seq: components["schemas"]["CommitSeq"];
4139
+ /** @description Snapshot token after cutover (real), or the proposed token (dry run). */
4140
+ new_snapshot_token: string;
4141
+ /**
4142
+ * @description True when the desired state already matched the current state and no
4143
+ * commit was written (real mode only).
4144
+ */
4145
+ no_op?: boolean;
4146
+ /**
4147
+ * @description Commit sequence of the pre-reload head — the diff baseline and the
4148
+ * rollback anchor.
4149
+ */
4150
+ prior_commit_seq: components["schemas"]["CommitSeq"];
4151
+ /**
4152
+ * @description Snapshot token of the pre-reload head. Read it back with
4153
+ * `?as_of_commit_seq=<prior_commit_seq>` to see the old state — the rollback
4154
+ * hint.
4155
+ */
4156
+ prior_snapshot_token: string;
4157
+ /**
4158
+ * @description A bounded sample of the entities leaving current state, as `type/name`
4159
+ * display identities (external keys are one-way-hashed and unrecoverable) —
4160
+ * a sanity aid for confirming the reload drops what you expect.
4161
+ */
4162
+ removed_sample?: string[];
4163
+ };
3977
4164
  /**
3978
4165
  * @description Retract specific edges and/or every edge touching given entities. Graph facts
3979
4166
  * are append-only; a retraction does not erase events but appends a retracting
@@ -4041,6 +4228,7 @@ export interface components {
4041
4228
  observation_count: number;
4042
4229
  /** Format: int64 */
4043
4230
  ontology_version: number;
4231
+ relation_adjacency?: components["schemas"]["RelationAdjacencyCount"][];
4044
4232
  relations: components["schemas"]["NamedCount"][];
4045
4233
  snapshot: components["schemas"]["SnapshotView"];
4046
4234
  };
@@ -4504,7 +4692,7 @@ export interface components {
4504
4692
  * @description Service used to generate managed corpus and query embeddings.
4505
4693
  * @enum {string}
4506
4694
  */
4507
- ManagedEmbeddingService: "modal" | "open_router";
4695
+ ManagedEmbeddingService: "open_router" | "modal";
4508
4696
  /**
4509
4697
  * @description Where a managed embedding model came from.
4510
4698
  * @enum {string}
@@ -5652,6 +5840,18 @@ export interface components {
5652
5840
  /** Format: double */
5653
5841
  y1: number;
5654
5842
  };
5843
+ /**
5844
+ * @description Exact current-edge count for one observed source-type / relation /
5845
+ * target-type combination. The graph summary already scans the reduced edge
5846
+ * set, so exposing this rollup lets schema visualizations avoid one additional
5847
+ * whole-snapshot query per populated relation.
5848
+ */
5849
+ RelationAdjacencyCount: {
5850
+ count: number;
5851
+ relation: string;
5852
+ source_type: string;
5853
+ target_type: string;
5854
+ };
5655
5855
  RelationSearchResult: {
5656
5856
  name: string;
5657
5857
  relation_id: components["schemas"]["RelationTypeId"];
@@ -5961,6 +6161,12 @@ export interface components {
5961
6161
  messages?: string[];
5962
6162
  result_count: number;
5963
6163
  results?: components["schemas"]["SchemaAuditResult"][];
6164
+ /**
6165
+ * @description True when `result_count` is exact but `results` contains only the
6166
+ * caller-requested leading window. Whole-graph audits can produce one row
6167
+ * per offending focus node, so HTTP responses are bounded by default.
6168
+ */
6169
+ truncated?: boolean;
5964
6170
  };
5965
6171
  SchemaAuditResult: {
5966
6172
  component: string;
@@ -6899,6 +7105,14 @@ export interface components {
6899
7105
  trained_fusion_run?: number | null;
6900
7106
  unindexed_tail_commits: number;
6901
7107
  vector_candidates: number;
7108
+ /**
7109
+ * @description True when latest-head hybrid search requested the persisted vector/ANN
7110
+ * channel but no matching run existed, so the optional vector channel was
7111
+ * skipped instead of silently rebuilding an O(corpus) ephemeral ANN on the
7112
+ * request path. Explicit ephemeral and historical pinned searches retain
7113
+ * their existing behavior.
7114
+ */
7115
+ vector_channel_skipped?: boolean;
6902
7116
  /** @description As `bm25_degraded_to_ephemeral`, for the persisted vector/ANN index. */
6903
7117
  vector_degraded_to_ephemeral?: boolean;
6904
7118
  vector_indexed_commit_seq?: null | components["schemas"]["CommitSeq"];
@@ -12476,19 +12690,17 @@ export interface operations {
12476
12690
  };
12477
12691
  };
12478
12692
  };
12479
- get_v1_graph_entity: {
12693
+ get_v1_graph_entities_sample: {
12480
12694
  parameters: {
12481
12695
  query?: {
12482
12696
  /** @description Graph name (default `main`) */
12483
12697
  graph?: string;
12484
12698
  /** @description Branch name (default `main`) */
12485
12699
  branch?: string;
12486
- /** @description Entity id */
12487
- id?: string;
12488
- /** @description Entity type for name-addressed lookup */
12700
+ /** @description Exact entity type */
12489
12701
  type?: string;
12490
- /** @description Entity canonical name for name-addressed lookup */
12491
- name?: string;
12702
+ /** @description Max sampled rows (up to 128) */
12703
+ limit?: string;
12492
12704
  };
12493
12705
  header?: {
12494
12706
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -12509,7 +12721,7 @@ export interface operations {
12509
12721
  [name: string]: unknown;
12510
12722
  };
12511
12723
  content: {
12512
- "application/json": components["schemas"]["EntityDetailResponse"];
12724
+ "application/json": components["schemas"]["EntityTypeSampleResponse"];
12513
12725
  };
12514
12726
  };
12515
12727
  /** @description Bad request */
@@ -12618,7 +12830,7 @@ export interface operations {
12618
12830
  };
12619
12831
  };
12620
12832
  };
12621
- get_v1_graph_entity_metadata: {
12833
+ get_v1_graph_entity: {
12622
12834
  parameters: {
12623
12835
  query?: {
12624
12836
  /** @description Graph name (default `main`) */
@@ -12631,8 +12843,6 @@ export interface operations {
12631
12843
  type?: string;
12632
12844
  /** @description Entity canonical name for name-addressed lookup */
12633
12845
  name?: string;
12634
- /** @description RFC3339 as-of timestamp */
12635
- as_of?: string;
12636
12846
  };
12637
12847
  header?: {
12638
12848
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -12653,7 +12863,7 @@ export interface operations {
12653
12863
  [name: string]: unknown;
12654
12864
  };
12655
12865
  content: {
12656
- "application/json": components["schemas"]["EntityMetadataResponse"];
12866
+ "application/json": components["schemas"]["EntityDetailResponse"];
12657
12867
  };
12658
12868
  };
12659
12869
  /** @description Bad request */
@@ -12762,7 +12972,7 @@ export interface operations {
12762
12972
  };
12763
12973
  };
12764
12974
  };
12765
- get_v1_graph_entity_neighborhood: {
12975
+ get_v1_graph_entity_metadata: {
12766
12976
  parameters: {
12767
12977
  query?: {
12768
12978
  /** @description Graph name (default `main`) */
@@ -12775,8 +12985,6 @@ export interface operations {
12775
12985
  type?: string;
12776
12986
  /** @description Entity canonical name for name-addressed lookup */
12777
12987
  name?: string;
12778
- /** @description Comma-separated relation filter */
12779
- relations?: string;
12780
12988
  /** @description RFC3339 as-of timestamp */
12781
12989
  as_of?: string;
12782
12990
  };
@@ -12799,7 +13007,7 @@ export interface operations {
12799
13007
  [name: string]: unknown;
12800
13008
  };
12801
13009
  content: {
12802
- "application/json": components["schemas"]["EntityNeighborhoodResponse"];
13010
+ "application/json": components["schemas"]["EntityMetadataResponse"];
12803
13011
  };
12804
13012
  };
12805
13013
  /** @description Bad request */
@@ -12908,19 +13116,25 @@ export interface operations {
12908
13116
  };
12909
13117
  };
12910
13118
  };
12911
- get_v1_graph_export: {
13119
+ get_v1_graph_entity_neighborhood: {
12912
13120
  parameters: {
12913
13121
  query?: {
12914
13122
  /** @description Graph name (default `main`) */
12915
13123
  graph?: string;
12916
13124
  /** @description Branch name (default `main`) */
12917
13125
  branch?: string;
12918
- /** @description Records (entity+edge lines) per page (default 1000, clamped 1-50000) */
12919
- limit?: string;
12920
- /** @description Opaque page cursor from a prior page's meta.next_cursor; pins the snapshot across pages */
12921
- cursor?: string;
12922
- /** @description Pin the export to a past snapshot commit_seq (first page only) */
12923
- as_of_commit_seq?: string;
13126
+ /** @description Entity id */
13127
+ id?: string;
13128
+ /** @description Entity type for name-addressed lookup */
13129
+ type?: string;
13130
+ /** @description Entity canonical name for name-addressed lookup */
13131
+ name?: string;
13132
+ /** @description Comma-separated relation filter */
13133
+ relations?: string;
13134
+ /** @description RFC3339 as-of timestamp */
13135
+ as_of?: string;
13136
+ /** @description When true, require ranged adjacency and never fall back to a whole-snapshot scan */
13137
+ indexed?: string;
12924
13138
  };
12925
13139
  header?: {
12926
13140
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -12941,7 +13155,7 @@ export interface operations {
12941
13155
  [name: string]: unknown;
12942
13156
  };
12943
13157
  content: {
12944
- "application/json": Record<string, never>;
13158
+ "application/json": components["schemas"]["EntityNeighborhoodResponse"];
12945
13159
  };
12946
13160
  };
12947
13161
  /** @description Bad request */
@@ -13050,15 +13264,19 @@ export interface operations {
13050
13264
  };
13051
13265
  };
13052
13266
  };
13053
- get_v1_graph_export_job: {
13267
+ get_v1_graph_export: {
13054
13268
  parameters: {
13055
13269
  query?: {
13056
13270
  /** @description Graph name (default `main`) */
13057
13271
  graph?: string;
13058
13272
  /** @description Branch name (default `main`) */
13059
13273
  branch?: string;
13060
- /** @description The export job id returned by the enqueue call */
13061
- job_id?: string;
13274
+ /** @description Records (entity+edge lines) per page (default 1000, clamped 1-50000) */
13275
+ limit?: string;
13276
+ /** @description Opaque page cursor from a prior page's meta.next_cursor; pins the snapshot across pages */
13277
+ cursor?: string;
13278
+ /** @description Pin the export to a past snapshot commit_seq (first page only) */
13279
+ as_of_commit_seq?: string;
13062
13280
  };
13063
13281
  header?: {
13064
13282
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -13188,21 +13406,19 @@ export interface operations {
13188
13406
  };
13189
13407
  };
13190
13408
  };
13191
- post_v1_graph_export_job: {
13409
+ get_v1_graph_export_job: {
13192
13410
  parameters: {
13193
13411
  query?: {
13194
13412
  /** @description Graph name (default `main`) */
13195
13413
  graph?: string;
13196
13414
  /** @description Branch name (default `main`) */
13197
13415
  branch?: string;
13198
- /** @description Pin the export to a past snapshot commit_seq */
13199
- as_of_commit_seq?: string;
13416
+ /** @description The export job id returned by the enqueue call */
13417
+ job_id?: string;
13200
13418
  };
13201
13419
  header?: {
13202
13420
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
13203
13421
  "Lbb-Version"?: string;
13204
- /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
13205
- "Idempotency-Key"?: string;
13206
13422
  };
13207
13423
  path?: never;
13208
13424
  cookie?: never;
@@ -13328,38 +13544,28 @@ export interface operations {
13328
13544
  };
13329
13545
  };
13330
13546
  };
13331
- get_v1_graph_export_rdf: {
13547
+ post_v1_graph_export_job: {
13332
13548
  parameters: {
13333
13549
  query?: {
13334
13550
  /** @description Graph name (default `main`) */
13335
13551
  graph?: string;
13336
13552
  /** @description Branch name (default `main`) */
13337
13553
  branch?: string;
13338
- /** @description RDF format: turtle (default), nt/ntriples, trig, or nq/nquads */
13339
- format?: string;
13340
- /** @description Output ceiling; rejects the full export, or bounds the JSON preview when truncate=true */
13341
- max_triples?: string;
13342
- /** @description Return a deterministic bounded JSON preview instead of rejecting when the graph is larger than max_triples */
13343
- truncate?: string;
13344
- /** @description RFC3339 valid-time snapshot pin */
13345
- as_of_valid_time?: string;
13346
- /** @description Commit-sequence snapshot pin */
13554
+ /** @description Pin the export to a past snapshot commit_seq */
13347
13555
  as_of_commit_seq?: string;
13348
- /** @description subclass (default) or none */
13349
- entailment?: string;
13350
- /** @description Include stored rule-derived facts when true */
13351
- reason?: string;
13352
13556
  };
13353
13557
  header?: {
13354
13558
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
13355
13559
  "Lbb-Version"?: string;
13560
+ /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
13561
+ "Idempotency-Key"?: string;
13356
13562
  };
13357
13563
  path?: never;
13358
13564
  cookie?: never;
13359
13565
  };
13360
13566
  requestBody?: never;
13361
13567
  responses: {
13362
- /** @description RDF graph */
13568
+ /** @description OK */
13363
13569
  200: {
13364
13570
  headers: {
13365
13571
  /** @description API contract version used for the response */
@@ -13369,11 +13575,7 @@ export interface operations {
13369
13575
  [name: string]: unknown;
13370
13576
  };
13371
13577
  content: {
13372
- "application/json": components["schemas"]["RdfExportPreviewResponse"];
13373
- "application/n-quads": string;
13374
- "application/n-triples": string;
13375
- "application/trig": string;
13376
- "text/turtle": string;
13578
+ "application/json": Record<string, never>;
13377
13579
  };
13378
13580
  };
13379
13581
  /** @description Bad request */
@@ -13482,15 +13684,27 @@ export interface operations {
13482
13684
  };
13483
13685
  };
13484
13686
  };
13485
- get_v1_graph_groundability: {
13687
+ get_v1_graph_export_rdf: {
13486
13688
  parameters: {
13487
13689
  query?: {
13488
13690
  /** @description Graph name (default `main`) */
13489
13691
  graph?: string;
13490
13692
  /** @description Branch name (default `main`) */
13491
13693
  branch?: string;
13492
- /** @description Entities to sample for name/recall probes (default 50, max 200) */
13493
- sample?: string;
13694
+ /** @description RDF format: turtle (default), nt/ntriples, trig, or nq/nquads */
13695
+ format?: string;
13696
+ /** @description Output ceiling; rejects the full export, or bounds the JSON preview when truncate=true */
13697
+ max_triples?: string;
13698
+ /** @description Return a deterministic bounded JSON preview instead of rejecting when the graph is larger than max_triples */
13699
+ truncate?: string;
13700
+ /** @description RFC3339 valid-time snapshot pin */
13701
+ as_of_valid_time?: string;
13702
+ /** @description Commit-sequence snapshot pin */
13703
+ as_of_commit_seq?: string;
13704
+ /** @description subclass (default) or none */
13705
+ entailment?: string;
13706
+ /** @description Include stored rule-derived facts when true */
13707
+ reason?: string;
13494
13708
  };
13495
13709
  header?: {
13496
13710
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -13501,7 +13715,7 @@ export interface operations {
13501
13715
  };
13502
13716
  requestBody?: never;
13503
13717
  responses: {
13504
- /** @description OK */
13718
+ /** @description RDF graph */
13505
13719
  200: {
13506
13720
  headers: {
13507
13721
  /** @description API contract version used for the response */
@@ -13511,7 +13725,11 @@ export interface operations {
13511
13725
  [name: string]: unknown;
13512
13726
  };
13513
13727
  content: {
13514
- "application/json": components["schemas"]["GroundabilityReport"];
13728
+ "application/json": components["schemas"]["RdfExportPreviewResponse"];
13729
+ "application/n-quads": string;
13730
+ "application/n-triples": string;
13731
+ "application/trig": string;
13732
+ "text/turtle": string;
13515
13733
  };
13516
13734
  };
13517
13735
  /** @description Bad request */
@@ -13620,19 +13838,19 @@ export interface operations {
13620
13838
  };
13621
13839
  };
13622
13840
  };
13623
- post_v1_graph_import: {
13841
+ post_v1_graph_fork: {
13624
13842
  parameters: {
13625
13843
  query?: {
13626
13844
  /** @description Graph name (default `main`) */
13627
13845
  graph?: string;
13628
13846
  /** @description Branch name (default `main`) */
13629
13847
  branch?: string;
13630
- /** @description Records per internal commit (default 1000, clamped 1-10000) */
13631
- batch?: string;
13632
- /** @description Abort on the first malformed line instead of skipping it */
13633
- strict?: string;
13634
- /** @description RFC3339 backfill instant stamped on every batch */
13635
- observed_at?: string;
13848
+ /** @description Source graph id to fork from */
13849
+ src?: string;
13850
+ /** @description Destination graph id to create (must not exist) */
13851
+ dst?: string;
13852
+ /** @description Must equal the destination graph id to authorize the fork */
13853
+ confirm?: string;
13636
13854
  };
13637
13855
  header?: {
13638
13856
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
@@ -13655,7 +13873,7 @@ export interface operations {
13655
13873
  [name: string]: unknown;
13656
13874
  };
13657
13875
  content: {
13658
- "application/json": components["schemas"]["GraphImportResponse"];
13876
+ "application/json": components["schemas"]["GraphForkResponse"];
13659
13877
  };
13660
13878
  };
13661
13879
  /** @description Bad request */
@@ -13764,37 +13982,19 @@ export interface operations {
13764
13982
  };
13765
13983
  };
13766
13984
  };
13767
- post_v1_graph_import_rdf: {
13985
+ get_v1_graph_groundability: {
13768
13986
  parameters: {
13769
13987
  query?: {
13770
13988
  /** @description Graph name (default `main`) */
13771
13989
  graph?: string;
13772
13990
  /** @description Branch name (default `main`) */
13773
13991
  branch?: string;
13774
- /** @description RDF statements per internal commit (default 1000, clamped 1-1000000) */
13775
- batch?: string;
13776
- /** @description Abort on the first malformed RDF parse error instead of reporting it */
13777
- strict?: string;
13778
- /** @description RFC3339 backfill instant stamped on every batch */
13779
- observed_at?: string;
13780
- /** @description Edge duplicate handling: skip_unchanged (default) or append for fresh high-throughput loads */
13781
- edge_idempotency?: string;
13782
- /** @description RDF format: ntriples (default), turtle, nquads, or trig */
13783
- format?: string;
13784
- /** @description Optional base IRI for resolving relative IRIs in Turtle or TriG */
13785
- base_iri?: string;
13786
- /** @description Optional named-graph IRI for N-Triples or Turtle input */
13787
- graph_uri?: string;
13788
- /** @description Optional stable document scope for blank-node labels across chunks; omit to preserve labels exactly across retries and chunk boundaries */
13789
- blank_node_scope?: string;
13790
- /** @description Entity type name for imported RDF resources (default Resource) */
13791
- resource_type?: string;
13992
+ /** @description Entities to sample for name/recall probes (default 50, max 200) */
13993
+ sample?: string;
13792
13994
  };
13793
13995
  header?: {
13794
13996
  /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
13795
13997
  "Lbb-Version"?: string;
13796
- /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
13797
- "Idempotency-Key"?: string;
13798
13998
  };
13799
13999
  path?: never;
13800
14000
  cookie?: never;
@@ -13811,7 +14011,7 @@ export interface operations {
13811
14011
  [name: string]: unknown;
13812
14012
  };
13813
14013
  content: {
13814
- "application/json": components["schemas"]["GraphRdfImportResponse"];
14014
+ "application/json": components["schemas"]["GroundabilityReport"];
13815
14015
  };
13816
14016
  };
13817
14017
  /** @description Bad request */
@@ -13920,7 +14120,307 @@ export interface operations {
13920
14120
  };
13921
14121
  };
13922
14122
  };
13923
- get_v1_graph_metadata: {
14123
+ post_v1_graph_import: {
14124
+ parameters: {
14125
+ query?: {
14126
+ /** @description Graph name (default `main`) */
14127
+ graph?: string;
14128
+ /** @description Branch name (default `main`) */
14129
+ branch?: string;
14130
+ /** @description Records per internal commit (default 1000, clamped 1-10000) */
14131
+ batch?: string;
14132
+ /** @description Abort on the first malformed line instead of skipping it */
14133
+ strict?: string;
14134
+ /** @description RFC3339 backfill instant stamped on every batch */
14135
+ observed_at?: string;
14136
+ };
14137
+ header?: {
14138
+ /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
14139
+ "Lbb-Version"?: string;
14140
+ /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
14141
+ "Idempotency-Key"?: string;
14142
+ };
14143
+ path?: never;
14144
+ cookie?: never;
14145
+ };
14146
+ requestBody?: never;
14147
+ responses: {
14148
+ /** @description OK */
14149
+ 200: {
14150
+ headers: {
14151
+ /** @description API contract version used for the response */
14152
+ "Lbb-Version"?: string;
14153
+ /** @description Request correlation id */
14154
+ "X-Request-Id"?: string;
14155
+ [name: string]: unknown;
14156
+ };
14157
+ content: {
14158
+ "application/json": components["schemas"]["GraphImportResponse"];
14159
+ };
14160
+ };
14161
+ /** @description Bad request */
14162
+ 400: {
14163
+ headers: {
14164
+ /** @description API contract version used for the response */
14165
+ "Lbb-Version"?: string;
14166
+ /** @description Request correlation id */
14167
+ "X-Request-Id"?: string;
14168
+ [name: string]: unknown;
14169
+ };
14170
+ content: {
14171
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14172
+ };
14173
+ };
14174
+ /** @description Unauthorized */
14175
+ 401: {
14176
+ headers: {
14177
+ /** @description API contract version used for the response */
14178
+ "Lbb-Version"?: string;
14179
+ /** @description Request correlation id */
14180
+ "X-Request-Id"?: string;
14181
+ [name: string]: unknown;
14182
+ };
14183
+ content: {
14184
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14185
+ };
14186
+ };
14187
+ /** @description Forbidden */
14188
+ 403: {
14189
+ headers: {
14190
+ /** @description API contract version used for the response */
14191
+ "Lbb-Version"?: string;
14192
+ /** @description Request correlation id */
14193
+ "X-Request-Id"?: string;
14194
+ [name: string]: unknown;
14195
+ };
14196
+ content: {
14197
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14198
+ };
14199
+ };
14200
+ /** @description Not found */
14201
+ 404: {
14202
+ headers: {
14203
+ /** @description API contract version used for the response */
14204
+ "Lbb-Version"?: string;
14205
+ /** @description Request correlation id */
14206
+ "X-Request-Id"?: string;
14207
+ [name: string]: unknown;
14208
+ };
14209
+ content: {
14210
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14211
+ };
14212
+ };
14213
+ /** @description Conflict */
14214
+ 409: {
14215
+ headers: {
14216
+ /** @description API contract version used for the response */
14217
+ "Lbb-Version"?: string;
14218
+ /** @description Request correlation id */
14219
+ "X-Request-Id"?: string;
14220
+ [name: string]: unknown;
14221
+ };
14222
+ content: {
14223
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14224
+ };
14225
+ };
14226
+ /** @description Rate limit exceeded */
14227
+ 429: {
14228
+ headers: {
14229
+ /** @description API contract version used for the response */
14230
+ "Lbb-Version"?: string;
14231
+ /** @description Request correlation id */
14232
+ "X-Request-Id"?: string;
14233
+ [name: string]: unknown;
14234
+ };
14235
+ content: {
14236
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14237
+ };
14238
+ };
14239
+ /** @description Internal server error */
14240
+ 500: {
14241
+ headers: {
14242
+ /** @description API contract version used for the response */
14243
+ "Lbb-Version"?: string;
14244
+ /** @description Request correlation id */
14245
+ "X-Request-Id"?: string;
14246
+ [name: string]: unknown;
14247
+ };
14248
+ content: {
14249
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14250
+ };
14251
+ };
14252
+ /** @description Service unavailable */
14253
+ 503: {
14254
+ headers: {
14255
+ /** @description API contract version used for the response */
14256
+ "Lbb-Version"?: string;
14257
+ /** @description Request correlation id */
14258
+ "X-Request-Id"?: string;
14259
+ [name: string]: unknown;
14260
+ };
14261
+ content: {
14262
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14263
+ };
14264
+ };
14265
+ };
14266
+ };
14267
+ post_v1_graph_import_rdf: {
14268
+ parameters: {
14269
+ query?: {
14270
+ /** @description Graph name (default `main`) */
14271
+ graph?: string;
14272
+ /** @description Branch name (default `main`) */
14273
+ branch?: string;
14274
+ /** @description RDF statements per internal commit (default 1000, clamped 1-1000000) */
14275
+ batch?: string;
14276
+ /** @description Abort on the first malformed RDF parse error instead of reporting it */
14277
+ strict?: string;
14278
+ /** @description RFC3339 backfill instant stamped on every batch */
14279
+ observed_at?: string;
14280
+ /** @description Edge duplicate handling: skip_unchanged (default) or append for fresh high-throughput loads */
14281
+ edge_idempotency?: string;
14282
+ /** @description RDF format: ntriples (default), turtle, nquads, or trig */
14283
+ format?: string;
14284
+ /** @description Optional base IRI for resolving relative IRIs in Turtle or TriG */
14285
+ base_iri?: string;
14286
+ /** @description Optional named-graph IRI for N-Triples or Turtle input */
14287
+ graph_uri?: string;
14288
+ /** @description Optional stable document scope for blank-node labels across chunks; omit to preserve labels exactly across retries and chunk boundaries */
14289
+ blank_node_scope?: string;
14290
+ /** @description Entity type name for imported RDF resources (default Resource) */
14291
+ resource_type?: string;
14292
+ };
14293
+ header?: {
14294
+ /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
14295
+ "Lbb-Version"?: string;
14296
+ /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
14297
+ "Idempotency-Key"?: string;
14298
+ };
14299
+ path?: never;
14300
+ cookie?: never;
14301
+ };
14302
+ requestBody?: never;
14303
+ responses: {
14304
+ /** @description OK */
14305
+ 200: {
14306
+ headers: {
14307
+ /** @description API contract version used for the response */
14308
+ "Lbb-Version"?: string;
14309
+ /** @description Request correlation id */
14310
+ "X-Request-Id"?: string;
14311
+ [name: string]: unknown;
14312
+ };
14313
+ content: {
14314
+ "application/json": components["schemas"]["GraphRdfImportResponse"];
14315
+ };
14316
+ };
14317
+ /** @description Bad request */
14318
+ 400: {
14319
+ headers: {
14320
+ /** @description API contract version used for the response */
14321
+ "Lbb-Version"?: string;
14322
+ /** @description Request correlation id */
14323
+ "X-Request-Id"?: string;
14324
+ [name: string]: unknown;
14325
+ };
14326
+ content: {
14327
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14328
+ };
14329
+ };
14330
+ /** @description Unauthorized */
14331
+ 401: {
14332
+ headers: {
14333
+ /** @description API contract version used for the response */
14334
+ "Lbb-Version"?: string;
14335
+ /** @description Request correlation id */
14336
+ "X-Request-Id"?: string;
14337
+ [name: string]: unknown;
14338
+ };
14339
+ content: {
14340
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14341
+ };
14342
+ };
14343
+ /** @description Forbidden */
14344
+ 403: {
14345
+ headers: {
14346
+ /** @description API contract version used for the response */
14347
+ "Lbb-Version"?: string;
14348
+ /** @description Request correlation id */
14349
+ "X-Request-Id"?: string;
14350
+ [name: string]: unknown;
14351
+ };
14352
+ content: {
14353
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14354
+ };
14355
+ };
14356
+ /** @description Not found */
14357
+ 404: {
14358
+ headers: {
14359
+ /** @description API contract version used for the response */
14360
+ "Lbb-Version"?: string;
14361
+ /** @description Request correlation id */
14362
+ "X-Request-Id"?: string;
14363
+ [name: string]: unknown;
14364
+ };
14365
+ content: {
14366
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14367
+ };
14368
+ };
14369
+ /** @description Conflict */
14370
+ 409: {
14371
+ headers: {
14372
+ /** @description API contract version used for the response */
14373
+ "Lbb-Version"?: string;
14374
+ /** @description Request correlation id */
14375
+ "X-Request-Id"?: string;
14376
+ [name: string]: unknown;
14377
+ };
14378
+ content: {
14379
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14380
+ };
14381
+ };
14382
+ /** @description Rate limit exceeded */
14383
+ 429: {
14384
+ headers: {
14385
+ /** @description API contract version used for the response */
14386
+ "Lbb-Version"?: string;
14387
+ /** @description Request correlation id */
14388
+ "X-Request-Id"?: string;
14389
+ [name: string]: unknown;
14390
+ };
14391
+ content: {
14392
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14393
+ };
14394
+ };
14395
+ /** @description Internal server error */
14396
+ 500: {
14397
+ headers: {
14398
+ /** @description API contract version used for the response */
14399
+ "Lbb-Version"?: string;
14400
+ /** @description Request correlation id */
14401
+ "X-Request-Id"?: string;
14402
+ [name: string]: unknown;
14403
+ };
14404
+ content: {
14405
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14406
+ };
14407
+ };
14408
+ /** @description Service unavailable */
14409
+ 503: {
14410
+ headers: {
14411
+ /** @description API contract version used for the response */
14412
+ "Lbb-Version"?: string;
14413
+ /** @description Request correlation id */
14414
+ "X-Request-Id"?: string;
14415
+ [name: string]: unknown;
14416
+ };
14417
+ content: {
14418
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14419
+ };
14420
+ };
14421
+ };
14422
+ };
14423
+ get_v1_graph_metadata: {
13924
14424
  parameters: {
13925
14425
  query?: {
13926
14426
  /** @description Graph name (default `main`) */
@@ -14340,6 +14840,152 @@ export interface operations {
14340
14840
  };
14341
14841
  };
14342
14842
  };
14843
+ post_v1_graph_reload: {
14844
+ parameters: {
14845
+ query?: {
14846
+ /** @description Graph name (default `main`) */
14847
+ graph?: string;
14848
+ /** @description Branch name (default `main`) */
14849
+ branch?: string;
14850
+ /** @description Must equal the target graph id (reload is semi-destructive) */
14851
+ confirm?: string;
14852
+ /** @description true = preview the delta; nothing durable changes */
14853
+ dry_run?: string;
14854
+ /** @description true = malformed payload lines fail the reload instead of being skipped and reported */
14855
+ strict?: string;
14856
+ /** @description Optional RFC3339 observation timestamp applied to the reload's writes */
14857
+ observed_at?: string;
14858
+ };
14859
+ header?: {
14860
+ /** @description API contract version to pin. Use `2026-06-22` for this beta-breaking shape. */
14861
+ "Lbb-Version"?: string;
14862
+ /** @description Stable client-generated key for safely retrying mutations and supervision writes. */
14863
+ "Idempotency-Key"?: string;
14864
+ };
14865
+ path?: never;
14866
+ cookie?: never;
14867
+ };
14868
+ requestBody?: never;
14869
+ responses: {
14870
+ /** @description OK */
14871
+ 200: {
14872
+ headers: {
14873
+ /** @description API contract version used for the response */
14874
+ "Lbb-Version"?: string;
14875
+ /** @description Request correlation id */
14876
+ "X-Request-Id"?: string;
14877
+ [name: string]: unknown;
14878
+ };
14879
+ content: {
14880
+ "application/json": components["schemas"]["GraphReloadResponse"];
14881
+ };
14882
+ };
14883
+ /** @description Bad request */
14884
+ 400: {
14885
+ headers: {
14886
+ /** @description API contract version used for the response */
14887
+ "Lbb-Version"?: string;
14888
+ /** @description Request correlation id */
14889
+ "X-Request-Id"?: string;
14890
+ [name: string]: unknown;
14891
+ };
14892
+ content: {
14893
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14894
+ };
14895
+ };
14896
+ /** @description Unauthorized */
14897
+ 401: {
14898
+ headers: {
14899
+ /** @description API contract version used for the response */
14900
+ "Lbb-Version"?: string;
14901
+ /** @description Request correlation id */
14902
+ "X-Request-Id"?: string;
14903
+ [name: string]: unknown;
14904
+ };
14905
+ content: {
14906
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14907
+ };
14908
+ };
14909
+ /** @description Forbidden */
14910
+ 403: {
14911
+ headers: {
14912
+ /** @description API contract version used for the response */
14913
+ "Lbb-Version"?: string;
14914
+ /** @description Request correlation id */
14915
+ "X-Request-Id"?: string;
14916
+ [name: string]: unknown;
14917
+ };
14918
+ content: {
14919
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14920
+ };
14921
+ };
14922
+ /** @description Not found */
14923
+ 404: {
14924
+ headers: {
14925
+ /** @description API contract version used for the response */
14926
+ "Lbb-Version"?: string;
14927
+ /** @description Request correlation id */
14928
+ "X-Request-Id"?: string;
14929
+ [name: string]: unknown;
14930
+ };
14931
+ content: {
14932
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14933
+ };
14934
+ };
14935
+ /** @description Conflict */
14936
+ 409: {
14937
+ headers: {
14938
+ /** @description API contract version used for the response */
14939
+ "Lbb-Version"?: string;
14940
+ /** @description Request correlation id */
14941
+ "X-Request-Id"?: string;
14942
+ [name: string]: unknown;
14943
+ };
14944
+ content: {
14945
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14946
+ };
14947
+ };
14948
+ /** @description Rate limit exceeded */
14949
+ 429: {
14950
+ headers: {
14951
+ /** @description API contract version used for the response */
14952
+ "Lbb-Version"?: string;
14953
+ /** @description Request correlation id */
14954
+ "X-Request-Id"?: string;
14955
+ [name: string]: unknown;
14956
+ };
14957
+ content: {
14958
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14959
+ };
14960
+ };
14961
+ /** @description Internal server error */
14962
+ 500: {
14963
+ headers: {
14964
+ /** @description API contract version used for the response */
14965
+ "Lbb-Version"?: string;
14966
+ /** @description Request correlation id */
14967
+ "X-Request-Id"?: string;
14968
+ [name: string]: unknown;
14969
+ };
14970
+ content: {
14971
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14972
+ };
14973
+ };
14974
+ /** @description Service unavailable */
14975
+ 503: {
14976
+ headers: {
14977
+ /** @description API contract version used for the response */
14978
+ "Lbb-Version"?: string;
14979
+ /** @description Request correlation id */
14980
+ "X-Request-Id"?: string;
14981
+ [name: string]: unknown;
14982
+ };
14983
+ content: {
14984
+ "application/json": components["schemas"]["LbbErrorEnvelope"];
14985
+ };
14986
+ };
14987
+ };
14988
+ };
14343
14989
  post_v1_graph_retract: {
14344
14990
  parameters: {
14345
14991
  query?: {