@scitrera/memorylayer-sdk 0.0.5 → 0.2.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/LICENSE ADDED
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
package/README.md CHANGED
@@ -40,6 +40,7 @@ console.log(result.memories);
40
40
  - **Full TypeScript Support** - Complete type definitions included
41
41
  - **Memory Operations** - Remember, recall, reflect, forget, decay
42
42
  - **Relationship Graph** - Link memories with 60+ relationship types organized into 11 categories
43
+ - **Repository Planning Graph** - Typed `client.rpg` namespace for repository sync, traversal, overlays, conflicts, maintenance, and enrichment
43
44
  - **Session Management** - Working memory with TTL and commit
44
45
  - **Context Environment** - Server-side Python sandbox for data operations
45
46
  - **Batch Operations** - Bulk create, update, delete
@@ -140,6 +141,27 @@ const result = await client.batchMemories([
140
141
  console.log(`Successful: ${result.successful}, Failed: ${result.failed}`);
141
142
  ```
142
143
 
144
+ Recall budgets, evidence-backed typed relations, and deterministic session
145
+ recovery are available on the same client:
146
+
147
+ ```typescript
148
+ const recalled = await client.recall({
149
+ query: "Who works for Acme?",
150
+ budget_tokens: 600,
151
+ include_confidence: true,
152
+ include_relations: true,
153
+ });
154
+
155
+ const checkpoint = await client.createCheckpoint(sessionId, {
156
+ transcript_segment: transcript,
157
+ content_hash: sha256,
158
+ idempotency_key: `host:${boundary}:${sha256}`,
159
+ source_boundary: boundary,
160
+ });
161
+ const pack = await client.getContextPack(sessionId, { budgetTokens: 2048 });
162
+ const delta = await client.getContextDelta(sessionId, pack.cursor, 512);
163
+ ```
164
+
143
165
  ## Associations
144
166
 
145
167
  ```typescript
package/dist/client.d.ts CHANGED
@@ -1,12 +1,40 @@
1
- import type { Memory, RecallResult, ReflectResult, Association, Session, SessionBriefing, Workspace, Context, RememberOptions, RecallOptions, ReflectOptions, ClientConfig, SessionCreateOptions, SessionStartResponse, CommitOptions, CommitResponse, GraphTraverseOptions, GraphQueryResult, BatchOperation, BatchResult, AssociationCreateOptions, WorkspaceSchema, ContextExecOptions, ContextExecResult, ContextInspectOptions, ContextInspectResult, ContextLoadOptions, ContextLoadResult, ContextInjectOptions, ContextInjectResult, ContextQueryOptions, ContextQueryResult, ContextRlmOptions, ContextRlmResult, ContextStatusResult, WorkspaceExportData, WorkspaceImportResult } from "./types.js";
1
+ import type { Memory, RecallResult, ReflectResult, Association, Session, SessionBriefing, Workspace, Context, RememberOptions, RecallOptions, ReflectOptions, ClientConfig, SessionCreateOptions, SessionStartResponse, CommitOptions, CommitResponse, GraphTraverseOptions, GraphQueryResult, BatchOperation, BatchResult, AssociationCreateOptions, WorkspaceSchema, ContextExecOptions, ContextExecResult, ContextInspectOptions, ContextInspectResult, ContextLoadOptions, ContextLoadResult, ContextInjectOptions, ContextInjectResult, ContextQueryOptions, ContextQueryResult, ContextRlmOptions, ContextRlmResult, ContextStatusResult, WorkspaceExportData, WorkspaceImportResult, DocumentInfo, JobInfo, DocumentUploadOptions, DocumentUploadResponse, PageSearchOptions, PageSearchResponse, PageListResponse, DocumentListResponse, ChatThread, ThreadCreateOptions, ThreadListOptions, MessageAppendInput, ThreadWithMessagesResponse, MessageListResponse, MessagesAppendResponse, DecomposeResponse, DatasetInfo, DatasetJobInfo, DatasetUploadOptions, DatasetUploadResponse, DatasetListResponse, DatasetSliceOptions, DatasetSliceResult, DatasetMemoriesResponse, AuthorityContext, ApiToken, ApiTokenWithSecret, TokenCreateOptions, MemoryListOptions, MemoryListResponse, Entity, EntityListResponse, EntityResolveResponse, EntityListOptions, EntityResolveOptions, EntityMergeOptions, AssociationUpdateOptions, ThreadUpdateOptions, UserThreadListOptions, SessionCheckpoint, ContextPack, ContextDelta, ContextPackOptions } from "./types.js";
2
2
  import { RelationshipType } from "./types.js";
3
+ import { SkillsNamespace } from "./skills.js";
4
+ import { McpServersNamespace } from "./mcp_servers.js";
5
+ import { KnowledgebaseNamespace } from "./knowledgebase.js";
6
+ import { RpgNamespace } from "./rpg.js";
3
7
  export declare class MemoryLayerClient {
4
8
  private baseUrl;
5
9
  private apiKey?;
6
10
  private workspaceId?;
7
11
  private sessionId?;
8
12
  private timeout;
13
+ private defaultAuthority?;
14
+ private fetchImpl;
15
+ private maxRetries;
16
+ private retryBaseDelay;
17
+ /** Skills namespace — access via `client.skills.list(...)` etc. */
18
+ readonly skills: SkillsNamespace;
19
+ /** MCP Servers namespace — access via `client.mcpServers.list(...)` etc. */
20
+ readonly mcpServers: McpServersNamespace;
21
+ /** Knowledgebase namespace — access via `client.kb.get(...)` etc. */
22
+ readonly kb: KnowledgebaseNamespace;
23
+ /** Repository Planning Graph namespace — access via `client.rpg.sync(...)` etc. */
24
+ readonly rpg: RpgNamespace;
9
25
  constructor(config?: ClientConfig);
26
+ /**
27
+ * Returns a lightweight proxy that sends OBO headers for the given grant/subject
28
+ * on every request. The proxy is synchronous and reuses the parent client's
29
+ * connection settings — safe for concurrent use across multiple subjects.
30
+ */
31
+ actingFor(opts: {
32
+ grantId: string;
33
+ subject: {
34
+ type: string;
35
+ id: string;
36
+ };
37
+ }): OboProxy;
10
38
  /**
11
39
  * Set the active session ID. All subsequent requests will include
12
40
  * this session ID in the X-Session-ID header, enabling session-based
@@ -21,6 +49,53 @@ export declare class MemoryLayerClient {
21
49
  * Get the current session ID, if any.
22
50
  */
23
51
  getSessionId(): string | undefined;
52
+ private buildAuthorityHeaders;
53
+ /**
54
+ * Build the standard request headers (auth, session, workspace, OBO authority).
55
+ * Centralized so every request helper applies identical header logic.
56
+ *
57
+ * Note: upload/stream paths (exportWorkspace, importWorkspaceStream,
58
+ * uploadDocument, uploadDataset, getPageImage) call this method and therefore
59
+ * intentionally inherit authority (X-Aether-*) headers when a defaultAuthority
60
+ * is set — consistent with every other request type.
61
+ *
62
+ * @param includeContentType Whether to set `Content-Type: application/json`.
63
+ * Omit for multipart/form-data (browser sets the boundary) or NDJSON bodies
64
+ * that set their own content type.
65
+ */
66
+ private buildHeaders;
67
+ /**
68
+ * Determine whether a failed response is transient and should be retried.
69
+ * Retries 429 (rate limit) and 5xx server errors. 501 is treated as a
70
+ * permanent "not implemented" signal and is never retried.
71
+ */
72
+ private isRetryableStatus;
73
+ /**
74
+ * Parse a `Retry-After` header (delta-seconds or HTTP-date) into milliseconds.
75
+ * Returns undefined when absent or unparseable.
76
+ */
77
+ private parseRetryAfter;
78
+ /**
79
+ * Returns true when the HTTP method is safe to retry after a transient failure.
80
+ * POST is excluded to prevent duplicate writes (e.g. duplicate memories/edges
81
+ * after a post-commit 504). recall/reflect/mergeEntities are POST-but-read or
82
+ * write-once, but are deliberately left non-retried for safety and consistency
83
+ * with the Python SDK.
84
+ */
85
+ private isIdempotentMethod;
86
+ /**
87
+ * Execute a fetch with bounded retry-with-backoff for transient failures
88
+ * (5xx, 429). Honors the `Retry-After` header when present, otherwise uses
89
+ * exponential backoff. Non-transient failures and successful responses are
90
+ * returned/raised immediately.
91
+ *
92
+ * Retries are gated on method idempotency: only GET/HEAD/OPTIONS/PUT/DELETE/PATCH
93
+ * are retried. POST is never retried automatically to avoid duplicate writes.
94
+ *
95
+ * This is the single network seam used by every request helper, so retry and
96
+ * header handling stay consistent across the client.
97
+ */
98
+ private executeFetch;
24
99
  private request;
25
100
  private handleError;
26
101
  remember(content: string, options?: RememberOptions): Promise<Memory>;
@@ -34,6 +109,29 @@ export declare class MemoryLayerClient {
34
109
  decay(memoryId: string, decayRate?: number): Promise<Memory>;
35
110
  associate(sourceId: string, targetId: string, relationship: RelationshipType, strength?: number): Promise<Association>;
36
111
  getAssociations(memoryId: string, direction?: "outgoing" | "incoming" | "both"): Promise<Association[]>;
112
+ /**
113
+ * Update an association's strength and/or metadata.
114
+ *
115
+ * `memoryId` must be one of the association's endpoints (source or target);
116
+ * otherwise the server returns 404. Re-typing an edge is not supported —
117
+ * delete and recreate instead.
118
+ */
119
+ updateAssociation(memoryId: string, associationId: string, updates: AssociationUpdateOptions): Promise<void>;
120
+ /**
121
+ * Delete an association (graph edge) by ID.
122
+ *
123
+ * `memoryId` must be one of the association's endpoints (source or target);
124
+ * otherwise the server returns 404.
125
+ */
126
+ deleteAssociation(memoryId: string, associationId: string): Promise<void>;
127
+ /**
128
+ * List/browse memories in the workspace ordered by recency (created_at desc).
129
+ *
130
+ * Unlike {@link recall} this performs no vector search — it is a plain
131
+ * filtered enumeration for browsing. Supports limit/offset pagination and
132
+ * optional type/subtype/tag/context filters.
133
+ */
134
+ listMemories(options?: MemoryListOptions): Promise<MemoryListResponse>;
37
135
  /**
38
136
  * Create a new session.
39
137
  *
@@ -48,6 +146,17 @@ export declare class MemoryLayerClient {
48
146
  includeExpired?: boolean;
49
147
  }): Promise<Session[]>;
50
148
  getSession(sessionId: string): Promise<Session>;
149
+ createCheckpoint(sessionId: string, input: {
150
+ transcriptSegment: string;
151
+ contentHash: string;
152
+ idempotencyKey: string;
153
+ sourceKind?: string;
154
+ sourceSequence?: number;
155
+ sourceBoundary?: number;
156
+ }): Promise<SessionCheckpoint>;
157
+ getCheckpoint(sessionId: string, checkpointId: string): Promise<SessionCheckpoint>;
158
+ getContextPack(sessionId: string, options?: ContextPackOptions): Promise<ContextPack>;
159
+ getContextDelta(sessionId: string, cursor: string, budgetTokens?: number): Promise<ContextDelta>;
51
160
  deleteSession(sessionId: string): Promise<void>;
52
161
  setWorkingMemory(sessionId: string, key: string, value: unknown): Promise<void>;
53
162
  getWorkingMemory(sessionId: string, key?: string): Promise<Record<string, unknown>>;
@@ -60,15 +169,50 @@ export declare class MemoryLayerClient {
60
169
  includeMemories?: boolean;
61
170
  includeContradictions?: boolean;
62
171
  }, includeContradictions?: boolean): Promise<SessionBriefing>;
63
- createWorkspace(name: string, settings?: Record<string, unknown>): Promise<Workspace>;
172
+ createWorkspace(name: string, settings?: Record<string, unknown>, tags?: string[]): Promise<Workspace>;
64
173
  getWorkspace(workspaceId?: string): Promise<Workspace>;
65
- listWorkspaces(): Promise<Workspace[]>;
174
+ listWorkspaces(filter?: {
175
+ tags?: string[];
176
+ match?: "any" | "all";
177
+ }): Promise<Workspace[]>;
66
178
  updateWorkspace(workspaceId: string, updates: {
67
179
  name?: string;
68
180
  settings?: Record<string, unknown>;
181
+ tags?: string[];
69
182
  }): Promise<Workspace>;
70
183
  createContext(name: string, description?: string, settings?: Record<string, unknown>): Promise<Context>;
71
184
  listContexts(): Promise<Context[]>;
185
+ deleteContext(contextId: string, workspaceId?: string): Promise<void>;
186
+ /** List canonical entities in a workspace (deterministic order by id). */
187
+ listEntities(options?: EntityListOptions): Promise<EntityListResponse>;
188
+ /** Get a single canonical entity by id. */
189
+ getEntity(entityId: string, workspaceId?: string): Promise<Entity>;
190
+ /**
191
+ * Resolve a surface name/alias to an existing canonical entity (never
192
+ * creates). Throws NotFoundError if no entity matches.
193
+ */
194
+ resolveEntity(name: string, options?: EntityResolveOptions): Promise<EntityResolveResponse>;
195
+ /**
196
+ * Merge `sourceId` into `targetId`; returns the surviving target entity.
197
+ * Requires the entity registry to be enabled (501 -> EnterpriseRequiredError).
198
+ */
199
+ mergeEntities(options: EntityMergeOptions): Promise<Entity>;
200
+ /** List API tokens. Set `includeRevoked` to also return revoked tokens. */
201
+ listTokens(includeRevoked?: boolean): Promise<ApiToken[]>;
202
+ /**
203
+ * Create a new API token. The returned object includes the plaintext
204
+ * `token` value, which is only ever available at creation time.
205
+ */
206
+ createToken(options: TokenCreateOptions): Promise<ApiTokenWithSecret>;
207
+ /** Get details for a single API token. */
208
+ getToken(tokenId: string): Promise<ApiToken>;
209
+ /** Delete an API token. */
210
+ deleteToken(tokenId: string): Promise<void>;
211
+ /**
212
+ * Revoke an API token. Revoked tokens are invalidated immediately but remain
213
+ * visible in listings (with `revoked=true`).
214
+ */
215
+ revokeToken(tokenId: string): Promise<void>;
72
216
  batchMemories(operations: BatchOperation[]): Promise<BatchResult>;
73
217
  traceMemory(memoryId: string): Promise<Record<string, unknown>>;
74
218
  traverseGraph(startMemoryId: string, options?: GraphTraverseOptions): Promise<GraphQueryResult>;
@@ -95,5 +239,174 @@ export declare class MemoryLayerClient {
95
239
  contextStatus(): Promise<ContextStatusResult>;
96
240
  contextCleanup(): Promise<void>;
97
241
  contextCheckpoint(): Promise<void>;
242
+ /**
243
+ * Upload a document for ingestion.
244
+ *
245
+ * Requires MemoryLayer Enterprise. On OSS servers this throws
246
+ * `EnterpriseRequiredError`.
247
+ */
248
+ uploadDocument(file: Blob | File, filename: string, options?: DocumentUploadOptions): Promise<DocumentUploadResponse>;
249
+ /**
250
+ * List documents in the workspace.
251
+ */
252
+ listDocuments(options?: {
253
+ status?: string;
254
+ limit?: number;
255
+ offset?: number;
256
+ }): Promise<DocumentListResponse>;
257
+ /**
258
+ * Get document metadata and processing status.
259
+ */
260
+ getDocument(documentId: string): Promise<DocumentInfo>;
261
+ /**
262
+ * Delete a document and optionally its extracted memories.
263
+ */
264
+ deleteDocument(documentId: string, deleteMemories?: boolean): Promise<void>;
265
+ /**
266
+ * Search document pages using ColPali MaxSim visual similarity.
267
+ *
268
+ * Requires MemoryLayer Enterprise.
269
+ */
270
+ searchDocumentPages(query: string, options?: PageSearchOptions): Promise<PageSearchResponse>;
271
+ /**
272
+ * Get all pages for a document.
273
+ */
274
+ getDocumentPages(documentId: string): Promise<PageListResponse>;
275
+ /**
276
+ * Get a page image as a Blob.
277
+ */
278
+ getPageImage(documentId: string, pageId: string): Promise<Blob>;
279
+ /**
280
+ * Get ingestion job status.
281
+ */
282
+ getJob(jobId: string): Promise<JobInfo>;
283
+ /**
284
+ * List ingestion jobs in the workspace.
285
+ */
286
+ listJobs(options?: {
287
+ status?: string;
288
+ limit?: number;
289
+ }): Promise<{
290
+ jobs: JobInfo[];
291
+ }>;
292
+ /**
293
+ * Cancel a running ingestion job.
294
+ */
295
+ cancelJob(jobId: string): Promise<void>;
296
+ /**
297
+ * Reprocess a document with optionally different extraction options.
298
+ */
299
+ reprocessDocument(documentId: string, options?: Partial<DocumentUploadOptions>): Promise<JobInfo>;
300
+ createThread(options?: ThreadCreateOptions): Promise<ChatThread>;
301
+ listThreads(options?: ThreadListOptions): Promise<ChatThread[]>;
302
+ getThread(threadId: string, workspaceId?: string): Promise<ChatThread>;
303
+ getThreadFull(threadId: string, options?: {
304
+ workspaceId?: string;
305
+ limit?: number;
306
+ offset?: number;
307
+ order?: "asc" | "desc";
308
+ }): Promise<ThreadWithMessagesResponse>;
309
+ deleteThread(threadId: string, workspaceId?: string): Promise<void>;
310
+ /**
311
+ * List chat threads owned by a user across all workspaces.
312
+ *
313
+ * Unlike {@link listThreads}, this is keyed on (tenant, user, ownership) and
314
+ * does NOT require a workspace filter — used for user-session-scoped views.
315
+ */
316
+ listUserThreads(userId: string, options?: UserThreadListOptions): Promise<ChatThread[]>;
317
+ /** Update a thread (e.g. rename or change metadata). */
318
+ updateThread(threadId: string, updates: ThreadUpdateOptions): Promise<ChatThread>;
319
+ /** Delete a single message from a thread. */
320
+ deleteMessage(threadId: string, messageId: string, workspaceId?: string): Promise<void>;
321
+ appendMessages(threadId: string, messages: MessageAppendInput[], workspaceId?: string): Promise<MessagesAppendResponse>;
322
+ getMessages(threadId: string, options?: {
323
+ workspaceId?: string;
324
+ limit?: number;
325
+ offset?: number;
326
+ afterIndex?: number;
327
+ order?: "asc" | "desc";
328
+ }): Promise<MessageListResponse>;
329
+ decomposeThread(threadId: string, workspaceId?: string): Promise<DecomposeResponse>;
330
+ /**
331
+ * Upload a dataset for profiling and memory extraction.
332
+ *
333
+ * Requires MemoryLayer Enterprise. On OSS servers this throws
334
+ * `EnterpriseRequiredError`.
335
+ */
336
+ uploadDataset(file: Blob | File, filename: string, options?: DatasetUploadOptions): Promise<DatasetUploadResponse>;
337
+ /**
338
+ * List datasets in the workspace.
339
+ */
340
+ listDatasets(options?: {
341
+ status?: string;
342
+ limit?: number;
343
+ offset?: number;
344
+ }): Promise<DatasetListResponse>;
345
+ /**
346
+ * Get dataset metadata, schema, and profile.
347
+ */
348
+ getDataset(datasetId: string): Promise<DatasetInfo>;
349
+ /**
350
+ * Delete a dataset and optionally its extracted memories.
351
+ */
352
+ deleteDataset(datasetId: string, deleteMemories?: boolean): Promise<void>;
353
+ /**
354
+ * Get memories extracted from a dataset.
355
+ */
356
+ getDatasetMemories(datasetId: string): Promise<DatasetMemoriesResponse>;
357
+ /**
358
+ * Query a slice of dataset data using DuckDB.
359
+ *
360
+ * Supports both structured filters and raw SQL (SELECT only).
361
+ * The dataset is queried as a table named 'data'.
362
+ */
363
+ queryDatasetSlice(datasetId: string, options?: DatasetSliceOptions): Promise<DatasetSliceResult>;
364
+ /**
365
+ * Get dataset processing job status.
366
+ */
367
+ getDatasetJob(jobId: string): Promise<DatasetJobInfo>;
368
+ /**
369
+ * List dataset processing jobs in the workspace.
370
+ */
371
+ listDatasetJobs(options?: {
372
+ status?: string;
373
+ limit?: number;
374
+ }): Promise<{
375
+ jobs: DatasetJobInfo[];
376
+ }>;
377
+ /**
378
+ * Cancel a running dataset processing job.
379
+ */
380
+ cancelDatasetJob(jobId: string): Promise<void>;
381
+ /** Used internally by SkillsNamespace to make requests with OBO authority. */
382
+ _skillsRequest<T>(method: string, path: string, body?: unknown, authority?: AuthorityContext, responseMode?: "json" | "text" | "arraybuffer"): Promise<T>;
383
+ /** Used internally by McpServersNamespace to make requests with OBO authority. */
384
+ _mcpServersRequest<T>(method: string, path: string, body?: unknown, authority?: AuthorityContext): Promise<T>;
385
+ /** Used internally by KnowledgebaseNamespace to make requests with OBO authority. */
386
+ _kbRequest<T>(method: string, path: string, body?: unknown, authority?: AuthorityContext, responseMode?: "json" | "text" | "arraybuffer"): Promise<T>;
387
+ /** Used internally by RpgNamespace to make requests with OBO authority. */
388
+ _rpgRequest<T>(method: string, path: string, body?: unknown, authority?: AuthorityContext): Promise<T>;
389
+ }
390
+ /**
391
+ * Lightweight OBO proxy returned by `client.actingFor()`.
392
+ * Delegates all calls to the parent client with a fixed AuthorityContext and
393
+ * optional workspace override. Per-call authority headers are computed fresh
394
+ * on each request — no shared mutable state, so concurrent calls for different
395
+ * subjects on the same underlying client never interfere.
396
+ */
397
+ export declare class OboProxy {
398
+ private _client;
399
+ private _authority;
400
+ private _workspaceId?;
401
+ /** Skills namespace scoped to this proxy's authority. */
402
+ readonly skills: SkillsNamespace;
403
+ /** MCP Servers namespace scoped to this proxy's authority. */
404
+ readonly mcpServers: McpServersNamespace;
405
+ constructor(client: MemoryLayerClient, authority: AuthorityContext, workspaceId?: string);
406
+ /** Further scope this proxy to a single workspace. */
407
+ forWorkspace(workspaceId: string): OboProxy;
408
+ remember(content: string, options?: RememberOptions): Promise<Memory>;
409
+ recall(query: string, options?: RecallOptions): Promise<RecallResult>;
410
+ reflect(query: string, options?: ReflectOptions): Promise<ReflectResult>;
98
411
  }
99
412
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA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