@littlebigbrain/client 0.7.0 → 0.8.1
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/README.md +11 -5
- package/dist/client.d.ts +58 -186
- package/dist/client.js +113 -253
- package/dist/index.d.ts +1 -1
- package/dist/namespaces.d.ts +24 -89
- package/dist/namespaces.js +69 -196
- package/dist/schema.d.ts +1000 -5675
- package/dist/types.d.ts +28 -17
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -11,14 +11,9 @@ export type GraphMetadata = Schemas["GraphMetadataResponse"];
|
|
|
11
11
|
export type Snapshot = Schemas["SnapshotView"];
|
|
12
12
|
export type CommitRequest = Schemas["TripletCommitFile"];
|
|
13
13
|
export type CommitResponse = Schemas["GraphCommitResponse"];
|
|
14
|
-
export type AskRequest = Schemas["AskRequest"];
|
|
15
|
-
export type AskResponse = Schemas["AskResponse"];
|
|
16
14
|
export type SchemaView = Schemas["SchemaBundleView"];
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
19
|
-
* (`/v1/graph/entities`, `/v1/graph/edges`, `/v1/graph/observations`): the rows
|
|
20
|
-
* in `data`, plus `next_cursor` (echo back as `cursor` for the next page) and
|
|
21
|
-
* the pre-page `total_count`. Walk pages with {@link LbbClient.listAll}.
|
|
16
|
+
* Cursor-based list envelope used by bounded collection reads.
|
|
22
17
|
*/
|
|
23
18
|
export interface ListResponse<T> {
|
|
24
19
|
object: "list";
|
|
@@ -49,7 +44,7 @@ export interface RdfImportOptions {
|
|
|
49
44
|
format?: "ntriples" | "turtle" | "nquads" | "trig";
|
|
50
45
|
baseIri?: string;
|
|
51
46
|
graphUri?: string;
|
|
52
|
-
/** Stable document scope for blank labels across chunks
|
|
47
|
+
/** Stable document scope for blank labels across chunks. */
|
|
53
48
|
blankNodeScope?: string;
|
|
54
49
|
batch?: number;
|
|
55
50
|
strict?: boolean;
|
|
@@ -58,14 +53,6 @@ export interface RdfImportOptions {
|
|
|
58
53
|
edgeIdempotency?: "append" | "skip_unchanged";
|
|
59
54
|
idempotencyKey?: string;
|
|
60
55
|
}
|
|
61
|
-
export interface RdfExportOptions {
|
|
62
|
-
format?: "turtle" | "ntriples" | "trig" | "nquads";
|
|
63
|
-
maxTriples?: number;
|
|
64
|
-
asOfValidTime?: string;
|
|
65
|
-
asOfCommitSeq?: number;
|
|
66
|
-
entailment?: "subclass" | "none";
|
|
67
|
-
reason?: boolean;
|
|
68
|
-
}
|
|
69
56
|
export type AttributeFilterOp = "eq" | "ne" | "lt" | "le" | "gt" | "ge";
|
|
70
57
|
export type AttributeFilterValue = string | number | boolean | {
|
|
71
58
|
dateTime: string;
|
|
@@ -91,8 +78,6 @@ export interface EntityAttributeFilterOptions {
|
|
|
91
78
|
select?: string[];
|
|
92
79
|
limit?: number;
|
|
93
80
|
offset?: number;
|
|
94
|
-
asOfValidTime?: string;
|
|
95
|
-
asOfCommitSeq?: number;
|
|
96
81
|
orderBy?: Schemas["SparqlOrderBy"][];
|
|
97
82
|
reason?: boolean;
|
|
98
83
|
maxSolutions?: number;
|
|
@@ -192,6 +177,32 @@ export interface LbbClientOptions {
|
|
|
192
177
|
onResponse?: (event: LbbResponseEvent) => void;
|
|
193
178
|
/** Called before each backoff sleep, so absorbed retries are observable. Bodies and credentials are never included. */
|
|
194
179
|
onRetry?: (event: LbbRetryEvent) => void;
|
|
180
|
+
/**
|
|
181
|
+
* A5 default read consistency, applied when a read call omits its own
|
|
182
|
+
* `consistency`. Since A5 the server default is `eventual`; set `"strong"`
|
|
183
|
+
* here to keep every read head-exact by default (carried across `withScope`).
|
|
184
|
+
* A per-call `consistency` always wins.
|
|
185
|
+
*/
|
|
186
|
+
defaultConsistency?: SearchConsistency;
|
|
187
|
+
}
|
|
188
|
+
/** A5 read consistency level. Since A5 the server default is `eventual`. */
|
|
189
|
+
export type SearchConsistency = "strong" | "eventual";
|
|
190
|
+
/**
|
|
191
|
+
* A5 read-consistency options shared by the query / search / summary surfaces.
|
|
192
|
+
* Merged into the request as `consistency` / `min_indexed_seq`; a per-call value
|
|
193
|
+
* wins over the client's `defaultConsistency`.
|
|
194
|
+
*/
|
|
195
|
+
export interface ReadConsistencyOptions {
|
|
196
|
+
/** Read consistency. Omit to use the client's `defaultConsistency`, else the
|
|
197
|
+
* server default (`eventual`). */
|
|
198
|
+
consistency?: SearchConsistency;
|
|
199
|
+
/**
|
|
200
|
+
* Read-your-writes floor: require the read to be served from state whose
|
|
201
|
+
* watermark ≥ this `commit_seq` (the committed sequence a write returned).
|
|
202
|
+
* Under eventual, a floor not yet covered yields a retryable
|
|
203
|
+
* `read_your_writes_pending` `429` — poll until the write lands.
|
|
204
|
+
*/
|
|
205
|
+
minIndexedSeq?: number;
|
|
195
206
|
}
|
|
196
207
|
export interface LbbRequestEvent {
|
|
197
208
|
method: string;
|