@memnexus-ai/typescript-sdk 1.44.0 → 1.45.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/index.d.cts CHANGED
@@ -1164,10 +1164,14 @@ declare const namedMemoryHistoryResponse: z.ZodObject<{
1164
1164
  declare const batchGetMemoriesRequest: z.ZodObject<{
1165
1165
  /** Array of memory IDs to retrieve */
1166
1166
  ids: z.ZodArray<z.ZodString, "many">;
1167
+ /** Detail level for each memory. 'minimal' returns raw memory only (default, backward compatible). 'standard' adds topics, entities, facts, and relationships. */
1168
+ detail: z.ZodOptional<z.ZodEnum<["minimal", "standard"]>>;
1167
1169
  }, "strip", z.ZodTypeAny, {
1168
1170
  ids: string[];
1171
+ detail?: "minimal" | "standard" | undefined;
1169
1172
  }, {
1170
1173
  ids: string[];
1174
+ detail?: "minimal" | "standard" | undefined;
1171
1175
  }>;
1172
1176
  declare const batchGetMemoriesMeta: z.ZodObject<{
1173
1177
  /** Number of IDs requested */
@@ -5921,10 +5925,19 @@ declare class MonitoringService extends BaseService {
5921
5925
  declare class MemoriesService extends BaseService {
5922
5926
  /**
5923
5927
  * Get memory by ID
5924
- * Retrieve a specific memory by its ID
5928
+ * Retrieve a specific memory by its ID with configurable detail level.
5929
+
5930
+ **Detail levels:**
5931
+ - `minimal` — raw memory only, no extra queries
5932
+ - `standard` (default) — adds userTopics, extractedTopics, entities, facts, relationships
5933
+ - `full` — adds conversationContext (title, memoryCount, position) and relationship target previews
5934
+
5925
5935
  * @param id - The memory ID
5936
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
5926
5937
  */
5927
- getMemoryById(id: string): Promise<HttpResponse<{
5938
+ getMemoryById(id: string, options?: {
5939
+ detail?: 'minimal' | 'standard' | 'full';
5940
+ }): Promise<HttpResponse<{
5928
5941
  data: Memory;
5929
5942
  }>>;
5930
5943
  /**
@@ -6173,6 +6186,7 @@ declare class MemoriesService extends BaseService {
6173
6186
  */
6174
6187
  getMemoriesBatch(body: {
6175
6188
  ids: string[];
6189
+ detail?: 'minimal' | 'standard';
6176
6190
  }): Promise<HttpResponse<{
6177
6191
  data: Memory[];
6178
6192
  meta: BatchGetMemoriesMeta;
@@ -6231,11 +6245,14 @@ declare class MemoriesService extends BaseService {
6231
6245
  /**
6232
6246
  * Get a memory by name
6233
6247
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
6234
- Returns the memory with topic breakdown and entities, same as GET /api/memories/{id}.
6248
+ Supports the same detail levels as GET /api/memories/{id}.
6235
6249
 
6236
6250
  * @param name - Memory name (kebab-case, 2-64 chars)
6251
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
6237
6252
  */
6238
- getMemoryByName(name: string): Promise<HttpResponse<{
6253
+ getMemoryByName(name: string, options?: {
6254
+ detail?: 'minimal' | 'standard' | 'full';
6255
+ }): Promise<HttpResponse<{
6239
6256
  data: Memory;
6240
6257
  }>>;
6241
6258
  /**
package/dist/index.d.ts CHANGED
@@ -1164,10 +1164,14 @@ declare const namedMemoryHistoryResponse: z.ZodObject<{
1164
1164
  declare const batchGetMemoriesRequest: z.ZodObject<{
1165
1165
  /** Array of memory IDs to retrieve */
1166
1166
  ids: z.ZodArray<z.ZodString, "many">;
1167
+ /** Detail level for each memory. 'minimal' returns raw memory only (default, backward compatible). 'standard' adds topics, entities, facts, and relationships. */
1168
+ detail: z.ZodOptional<z.ZodEnum<["minimal", "standard"]>>;
1167
1169
  }, "strip", z.ZodTypeAny, {
1168
1170
  ids: string[];
1171
+ detail?: "minimal" | "standard" | undefined;
1169
1172
  }, {
1170
1173
  ids: string[];
1174
+ detail?: "minimal" | "standard" | undefined;
1171
1175
  }>;
1172
1176
  declare const batchGetMemoriesMeta: z.ZodObject<{
1173
1177
  /** Number of IDs requested */
@@ -5921,10 +5925,19 @@ declare class MonitoringService extends BaseService {
5921
5925
  declare class MemoriesService extends BaseService {
5922
5926
  /**
5923
5927
  * Get memory by ID
5924
- * Retrieve a specific memory by its ID
5928
+ * Retrieve a specific memory by its ID with configurable detail level.
5929
+
5930
+ **Detail levels:**
5931
+ - `minimal` — raw memory only, no extra queries
5932
+ - `standard` (default) — adds userTopics, extractedTopics, entities, facts, relationships
5933
+ - `full` — adds conversationContext (title, memoryCount, position) and relationship target previews
5934
+
5925
5935
  * @param id - The memory ID
5936
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
5926
5937
  */
5927
- getMemoryById(id: string): Promise<HttpResponse<{
5938
+ getMemoryById(id: string, options?: {
5939
+ detail?: 'minimal' | 'standard' | 'full';
5940
+ }): Promise<HttpResponse<{
5928
5941
  data: Memory;
5929
5942
  }>>;
5930
5943
  /**
@@ -6173,6 +6186,7 @@ declare class MemoriesService extends BaseService {
6173
6186
  */
6174
6187
  getMemoriesBatch(body: {
6175
6188
  ids: string[];
6189
+ detail?: 'minimal' | 'standard';
6176
6190
  }): Promise<HttpResponse<{
6177
6191
  data: Memory[];
6178
6192
  meta: BatchGetMemoriesMeta;
@@ -6231,11 +6245,14 @@ declare class MemoriesService extends BaseService {
6231
6245
  /**
6232
6246
  * Get a memory by name
6233
6247
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
6234
- Returns the memory with topic breakdown and entities, same as GET /api/memories/{id}.
6248
+ Supports the same detail levels as GET /api/memories/{id}.
6235
6249
 
6236
6250
  * @param name - Memory name (kebab-case, 2-64 chars)
6251
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
6237
6252
  */
6238
- getMemoryByName(name: string): Promise<HttpResponse<{
6253
+ getMemoryByName(name: string, options?: {
6254
+ detail?: 'minimal' | 'standard' | 'full';
6255
+ }): Promise<HttpResponse<{
6239
6256
  data: Memory;
6240
6257
  }>>;
6241
6258
  /**
package/dist/index.js CHANGED
@@ -1704,11 +1704,18 @@ var MonitoringService = class extends BaseService {
1704
1704
  // src/services/memories-service.ts
1705
1705
  var MemoriesService = class extends BaseService {
1706
1706
  /**
1707
- * Get memory by ID
1708
- * Retrieve a specific memory by its ID
1709
- * @param id - The memory ID
1710
- */
1711
- async getMemoryById(id) {
1707
+ * Get memory by ID
1708
+ * Retrieve a specific memory by its ID with configurable detail level.
1709
+
1710
+ **Detail levels:**
1711
+ - `minimal` — raw memory only, no extra queries
1712
+ - `standard` (default) — adds userTopics, extractedTopics, entities, facts, relationships
1713
+ - `full` — adds conversationContext (title, memoryCount, position) and relationship target previews
1714
+
1715
+ * @param id - The memory ID
1716
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
1717
+ */
1718
+ async getMemoryById(id, options) {
1712
1719
  const request = new Request({
1713
1720
  baseUrl: this.config.baseUrl || "http://localhost:3000",
1714
1721
  method: "GET",
@@ -1732,6 +1739,18 @@ var MemoriesService = class extends BaseService {
1732
1739
  isOffset: false,
1733
1740
  isCursor: false
1734
1741
  });
1742
+ if (options?.detail !== void 0) {
1743
+ request.addQueryParam("detail", {
1744
+ key: "detail",
1745
+ value: options.detail,
1746
+ explode: false,
1747
+ encode: true,
1748
+ style: "form",
1749
+ isLimit: false,
1750
+ isOffset: false,
1751
+ isCursor: false
1752
+ });
1753
+ }
1735
1754
  return this.client.call(request);
1736
1755
  }
1737
1756
  /**
@@ -2531,11 +2550,12 @@ var MemoriesService = class extends BaseService {
2531
2550
  /**
2532
2551
  * Get a memory by name
2533
2552
  * Retrieve the current HEAD version of a named memory by its user-assigned name.
2534
- Returns the memory with topic breakdown and entities, same as GET /api/memories/{id}.
2553
+ Supports the same detail levels as GET /api/memories/{id}.
2535
2554
 
2536
2555
  * @param name - Memory name (kebab-case, 2-64 chars)
2556
+ * @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
2537
2557
  */
2538
- async getMemoryByName(name) {
2558
+ async getMemoryByName(name, options) {
2539
2559
  const request = new Request({
2540
2560
  baseUrl: this.config.baseUrl || "http://localhost:3000",
2541
2561
  method: "GET",
@@ -2559,6 +2579,18 @@ var MemoriesService = class extends BaseService {
2559
2579
  isOffset: false,
2560
2580
  isCursor: false
2561
2581
  });
2582
+ if (options?.detail !== void 0) {
2583
+ request.addQueryParam("detail", {
2584
+ key: "detail",
2585
+ value: options.detail,
2586
+ explode: false,
2587
+ encode: true,
2588
+ style: "form",
2589
+ isLimit: false,
2590
+ isOffset: false,
2591
+ isCursor: false
2592
+ });
2593
+ }
2562
2594
  return this.client.call(request);
2563
2595
  }
2564
2596
  /**
@@ -4834,7 +4866,9 @@ var namedMemoryHistoryResponse = z.object({
4834
4866
  });
4835
4867
  var batchGetMemoriesRequest = z.object({
4836
4868
  /** Array of memory IDs to retrieve */
4837
- ids: z.array(z.string().uuid()).min(1).max(100)
4869
+ ids: z.array(z.string().uuid()).min(1).max(100),
4870
+ /** Detail level for each memory. 'minimal' returns raw memory only (default, backward compatible). 'standard' adds topics, entities, facts, and relationships. */
4871
+ detail: z.enum(["minimal", "standard"]).optional()
4838
4872
  });
4839
4873
  var batchGetMemoriesMeta = z.object({
4840
4874
  /** Number of IDs requested */