@memnexus-ai/sdk 1.84.2 → 1.85.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/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -246,6 +246,8 @@ interface CreateMemoryRequest {
|
|
|
246
246
|
outcome?: 'resolved' | 'unresolved';
|
|
247
247
|
/** Request distillation of this memory (Pro/Enterprise only) */
|
|
248
248
|
distill?: boolean;
|
|
249
|
+
/** ID of an existing memory, owned by the caller, that this new memory supersedes. Creates a SUPERSEDES relationship from the new memory to it. A target that does not exist or belongs to another user returns 404 before anything is written. A named create that targets the current head of a different named memory returns 400. An unnamed create that targets a named memory's current head moves that name to the new memory (the response data is serialised before the move, so it does not show the name yet). Any other memory's SUPERSEDES relationship onto the target is replaced and listed in meta.supersedes.replaced. */
|
|
250
|
+
supersedes?: string;
|
|
249
251
|
}
|
|
250
252
|
interface UpdateMemoryRequest {
|
|
251
253
|
/** Updated memory content */
|
|
@@ -270,6 +272,13 @@ interface CreateMemoryResponseMeta {
|
|
|
270
272
|
sessionCreated: boolean;
|
|
271
273
|
/** Whether a new conversation was created (true if conversationId was "NEW") */
|
|
272
274
|
conversationCreated: boolean;
|
|
275
|
+
/** Present only when the request sent `supersedes`. Reports whether the SUPERSEDES relationship was written after the memory was created. */
|
|
276
|
+
supersedes?: {
|
|
277
|
+
targetMemoryId: string;
|
|
278
|
+
linked: boolean;
|
|
279
|
+
replaced?: string[];
|
|
280
|
+
reason?: 'relationship_write_failed' | 'post_link_update_failed';
|
|
281
|
+
};
|
|
273
282
|
}
|
|
274
283
|
/** Response from creating a memory, includes the memory and session/conversation metadata */
|
|
275
284
|
interface CreateMemoryResponse {
|
|
@@ -2668,6 +2677,7 @@ declare class Memories {
|
|
|
2668
2677
|
taskId?: string;
|
|
2669
2678
|
outcome?: 'resolved' | 'unresolved';
|
|
2670
2679
|
distill?: boolean;
|
|
2680
|
+
supersedes?: string;
|
|
2671
2681
|
}): Promise<HttpResponse<{
|
|
2672
2682
|
data: Memory;
|
|
2673
2683
|
meta: CreateMemoryResponseMeta;
|
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,8 @@ interface CreateMemoryRequest {
|
|
|
246
246
|
outcome?: 'resolved' | 'unresolved';
|
|
247
247
|
/** Request distillation of this memory (Pro/Enterprise only) */
|
|
248
248
|
distill?: boolean;
|
|
249
|
+
/** ID of an existing memory, owned by the caller, that this new memory supersedes. Creates a SUPERSEDES relationship from the new memory to it. A target that does not exist or belongs to another user returns 404 before anything is written. A named create that targets the current head of a different named memory returns 400. An unnamed create that targets a named memory's current head moves that name to the new memory (the response data is serialised before the move, so it does not show the name yet). Any other memory's SUPERSEDES relationship onto the target is replaced and listed in meta.supersedes.replaced. */
|
|
250
|
+
supersedes?: string;
|
|
249
251
|
}
|
|
250
252
|
interface UpdateMemoryRequest {
|
|
251
253
|
/** Updated memory content */
|
|
@@ -270,6 +272,13 @@ interface CreateMemoryResponseMeta {
|
|
|
270
272
|
sessionCreated: boolean;
|
|
271
273
|
/** Whether a new conversation was created (true if conversationId was "NEW") */
|
|
272
274
|
conversationCreated: boolean;
|
|
275
|
+
/** Present only when the request sent `supersedes`. Reports whether the SUPERSEDES relationship was written after the memory was created. */
|
|
276
|
+
supersedes?: {
|
|
277
|
+
targetMemoryId: string;
|
|
278
|
+
linked: boolean;
|
|
279
|
+
replaced?: string[];
|
|
280
|
+
reason?: 'relationship_write_failed' | 'post_link_update_failed';
|
|
281
|
+
};
|
|
273
282
|
}
|
|
274
283
|
/** Response from creating a memory, includes the memory and session/conversation metadata */
|
|
275
284
|
interface CreateMemoryResponse {
|
|
@@ -2668,6 +2677,7 @@ declare class Memories {
|
|
|
2668
2677
|
taskId?: string;
|
|
2669
2678
|
outcome?: 'resolved' | 'unresolved';
|
|
2670
2679
|
distill?: boolean;
|
|
2680
|
+
supersedes?: string;
|
|
2671
2681
|
}): Promise<HttpResponse<{
|
|
2672
2682
|
data: Memory;
|
|
2673
2683
|
meta: CreateMemoryResponseMeta;
|