@littlebigbrain/client 0.2.0 → 0.4.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/types.d.ts CHANGED
@@ -45,6 +45,27 @@ export type EntityPropertiesLine = {
45
45
  };
46
46
  /** One bulk-import line: a triplet, or an entity-properties record. */
47
47
  export type ImportLine = Schemas["TripletInput"] | EntityPropertiesLine;
48
+ export interface RdfImportOptions {
49
+ format?: "ntriples" | "turtle" | "nquads" | "trig";
50
+ baseIri?: string;
51
+ graphUri?: string;
52
+ /** Stable document scope for blank labels across chunks; omit for legacy stable labels. */
53
+ blankNodeScope?: string;
54
+ batch?: number;
55
+ strict?: boolean;
56
+ observedAt?: string;
57
+ resourceType?: string;
58
+ edgeIdempotency?: "append" | "skip_unchanged";
59
+ idempotencyKey?: string;
60
+ }
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
+ }
48
69
  export type AttributeFilterOp = "eq" | "ne" | "lt" | "le" | "gt" | "ge";
49
70
  export type AttributeFilterValue = string | number | boolean | {
50
71
  dateTime: string;
@@ -132,7 +153,7 @@ export declare function parseSparqlResults(response: Schemas["SparqlTextResponse
132
153
  export declare function firstPatternVariable(patterns: Schemas["AnalyticTriplePattern"][]): string;
133
154
  export declare function attributeFilter(filter: AttributeFilter, defaultVar: string): Schemas["SparqlFilter"];
134
155
  export interface LbbClientOptions {
135
- /** Base URL of the Little Big Brain server, e.g. `https://db.eu.littlebigbrain.com`. */
156
+ /** Base URL of the little big brain server, e.g. `https://db.eu.littlebigbrain.com`. */
136
157
  baseUrl: string;
137
158
  /** Stack API key (`lbb_sk_test_…` / `lbb_sk_live_…`) or single-mode token. */
138
159
  apiKey?: string;
@@ -177,29 +198,6 @@ export interface LbbResponseEvent {
177
198
  retryCount: number;
178
199
  elapsedMs: number;
179
200
  }
180
- export interface LbbStackView {
181
- stack_id: string;
182
- owner_id?: string;
183
- name: string;
184
- slug: string;
185
- tenant_id: string;
186
- default_graph: string;
187
- default_branch: string;
188
- created_at_micros: number;
189
- api_key_hint: string;
190
- api_key_rotated_at_micros: number;
191
- }
192
- export interface LbbAdminStackCreateRequest {
193
- owner_id: string;
194
- name: string;
195
- slug?: string;
196
- }
197
- export interface LbbAdminStackResponse {
198
- ok: true;
199
- stack: LbbStackView;
200
- api_key?: string;
201
- active_api_key_count?: number;
202
- }
203
201
  export type LbbStackActivityWindow = "1h" | "4h" | "12h" | "24h";
204
202
  export interface LbbStackActivityResponse {
205
203
  ok: true;
@@ -276,19 +274,6 @@ export interface LbbStackActivityResponse {
276
274
  }>;
277
275
  partial: boolean;
278
276
  }
279
- export interface LbbAdminSessionResponse {
280
- ok: true;
281
- /** A `lbb_ses_…` session token scoped to the account. */
282
- token: string;
283
- expires_at_micros: number;
284
- }
285
- export interface LbbAdminStackDeleteResponse {
286
- ok: true;
287
- deleted_stack: LbbStackView;
288
- tenant_prefix: string;
289
- objects_deleted: number;
290
- bytes_deleted: number;
291
- }
292
277
  export interface LbbErrorPayload {
293
278
  type?: string;
294
279
  code?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@littlebigbrain/client",
3
- "version": "0.2.0",
4
- "description": "TypeScript client for the Little Big Brain graph + hybrid search HTTP API",
3
+ "version": "0.4.0",
4
+ "description": "TypeScript client for the little big brain graph + hybrid search HTTP API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",