@memnexus-ai/typescript-sdk 1.39.0 → 1.39.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.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4582,15 +4582,15 @@ var createMemoryRequest = import_zod.z.object({
|
|
|
4582
4582
|
/** Optional human-readable name for deterministic retrieval. Must be unique per user. */
|
|
4583
4583
|
name: import_zod.z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$/).optional(),
|
|
4584
4584
|
/** Memory content */
|
|
4585
|
-
content: import_zod.z.string().min(1),
|
|
4585
|
+
content: import_zod.z.string().min(1).max(5e4),
|
|
4586
4586
|
/** Type of memory */
|
|
4587
4587
|
memoryType: import_zod.z.enum(["episodic", "semantic", "procedural"]).optional(),
|
|
4588
4588
|
/** Role (MCP protocol compatibility) */
|
|
4589
4589
|
role: import_zod.z.enum(["user", "assistant", "system"]).optional(),
|
|
4590
4590
|
/** Context or domain */
|
|
4591
|
-
context: import_zod.z.string().optional(),
|
|
4591
|
+
context: import_zod.z.string().max(200).optional(),
|
|
4592
4592
|
/** Associated topics */
|
|
4593
|
-
topics: import_zod.z.array(import_zod.z.string()).optional(),
|
|
4593
|
+
topics: import_zod.z.array(import_zod.z.string().max(100)).max(50).optional(),
|
|
4594
4594
|
/** Event time (when the event actually occurred in reality, ISO 8601 format) */
|
|
4595
4595
|
eventTime: import_zod.z.string().datetime().optional(),
|
|
4596
4596
|
/** Validity start time (when this fact becomes valid, ISO 8601 format) */
|
|
@@ -4600,15 +4600,15 @@ var createMemoryRequest = import_zod.z.object({
|
|
|
4600
4600
|
});
|
|
4601
4601
|
var updateMemoryRequest = import_zod.z.object({
|
|
4602
4602
|
/** Updated memory content */
|
|
4603
|
-
content: import_zod.z.string().min(1).optional(),
|
|
4603
|
+
content: import_zod.z.string().min(1).max(5e4).optional(),
|
|
4604
4604
|
/** Assign or remove a name. Set to a valid name to assign, empty string to remove. */
|
|
4605
4605
|
name: import_zod.z.union([import_zod.z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$/), import_zod.z.enum([""])]).optional(),
|
|
4606
4606
|
/** Updated memory type */
|
|
4607
4607
|
memoryType: import_zod.z.enum(["episodic", "semantic", "procedural"]).optional(),
|
|
4608
4608
|
/** Updated context or domain */
|
|
4609
|
-
context: import_zod.z.string().optional(),
|
|
4609
|
+
context: import_zod.z.string().max(200).optional(),
|
|
4610
4610
|
/** Updated topics */
|
|
4611
|
-
topics: import_zod.z.array(import_zod.z.string()).optional()
|
|
4611
|
+
topics: import_zod.z.array(import_zod.z.string().max(100)).max(50).optional()
|
|
4612
4612
|
});
|
|
4613
4613
|
var createMemoryResponseMeta = import_zod.z.object({
|
|
4614
4614
|
/** Conversation ID (actual ID if "NEW" was provided) */
|
|
@@ -4694,13 +4694,13 @@ var getMemoryResponse = import_zod.z.lazy(() => import_zod.z.object({
|
|
|
4694
4694
|
}));
|
|
4695
4695
|
var updateNamedMemoryRequest = import_zod.z.object({
|
|
4696
4696
|
/** New content for the named memory version */
|
|
4697
|
-
content: import_zod.z.string().min(1),
|
|
4697
|
+
content: import_zod.z.string().min(1).max(5e4),
|
|
4698
4698
|
/** Type of memory (defaults to previous version's type) */
|
|
4699
4699
|
memoryType: import_zod.z.enum(["episodic", "semantic", "procedural"]).optional(),
|
|
4700
4700
|
/** Context or domain */
|
|
4701
|
-
context: import_zod.z.string().optional(),
|
|
4701
|
+
context: import_zod.z.string().max(200).optional(),
|
|
4702
4702
|
/** Associated topics */
|
|
4703
|
-
topics: import_zod.z.array(import_zod.z.string()).optional()
|
|
4703
|
+
topics: import_zod.z.array(import_zod.z.string().max(100)).max(50).optional()
|
|
4704
4704
|
});
|
|
4705
4705
|
var namedMemoryHistoryResponse = import_zod.z.object({
|
|
4706
4706
|
/** Human-readable name for deterministic retrieval (kebab-case, 2-64 chars) */
|
|
@@ -4841,7 +4841,7 @@ var healthCheck = import_zod.z.object({
|
|
|
4841
4841
|
});
|
|
4842
4842
|
var searchRequest = import_zod.z.object({
|
|
4843
4843
|
/** Search query */
|
|
4844
|
-
query: import_zod.z.string().min(1),
|
|
4844
|
+
query: import_zod.z.string().min(1).max(2e3),
|
|
4845
4845
|
/** Content filtering mode (defaults to unified) */
|
|
4846
4846
|
mode: import_zod.z.enum(["unified", "content", "facts"]).optional(),
|
|
4847
4847
|
/** Search algorithm: hybrid (combined, default), semantic (vector), or keyword (fulltext). */
|
|
@@ -4875,7 +4875,7 @@ var searchRequest = import_zod.z.object({
|
|
|
4875
4875
|
/** Temporal query mode: 'current' (only valid now), 'historical' (as of a point in time), 'evolution' (chronological) */
|
|
4876
4876
|
temporalMode: import_zod.z.enum(["current", "historical", "evolution"]).optional(),
|
|
4877
4877
|
/** Filter by topics - returns memories that have ANY of the specified topics */
|
|
4878
|
-
topics: import_zod.z.array(import_zod.z.string()).optional(),
|
|
4878
|
+
topics: import_zod.z.array(import_zod.z.string().max(100)).max(50).optional(),
|
|
4879
4879
|
/** Filter by memory type */
|
|
4880
4880
|
memoryType: import_zod.z.enum(["episodic", "semantic", "procedural"]).optional(),
|
|
4881
4881
|
/** Filter by conversation ID */
|
|
@@ -4887,7 +4887,7 @@ var searchRequest = import_zod.z.object({
|
|
|
4887
4887
|
/** Include facts extracted from matched memories (defaults to false for performance) */
|
|
4888
4888
|
includeFacts: import_zod.z.boolean().optional(),
|
|
4889
4889
|
/** Filter entities by type (e.g., PERSON, TECHNOLOGY, PROJECT) */
|
|
4890
|
-
entityTypes: import_zod.z.array(import_zod.z.string()).optional()
|
|
4890
|
+
entityTypes: import_zod.z.array(import_zod.z.string().max(50)).max(20).optional()
|
|
4891
4891
|
});
|
|
4892
4892
|
var entity = import_zod.z.object({
|
|
4893
4893
|
/** Entity name */
|
|
@@ -5070,19 +5070,19 @@ var fact = import_zod.z.object({
|
|
|
5070
5070
|
});
|
|
5071
5071
|
var createFactRequest = import_zod.z.object({
|
|
5072
5072
|
/** Fact subject (entity name) */
|
|
5073
|
-
subject: import_zod.z.string().min(1),
|
|
5073
|
+
subject: import_zod.z.string().min(1).max(500),
|
|
5074
5074
|
/** Relationship type */
|
|
5075
|
-
predicate: import_zod.z.string().min(1),
|
|
5075
|
+
predicate: import_zod.z.string().min(1).max(200),
|
|
5076
5076
|
/** Fact object (related entity) */
|
|
5077
|
-
object: import_zod.z.string().min(1)
|
|
5077
|
+
object: import_zod.z.string().min(1).max(500)
|
|
5078
5078
|
});
|
|
5079
5079
|
var updateFactRequest = import_zod.z.object({
|
|
5080
5080
|
/** Fact subject (entity name) */
|
|
5081
|
-
subject: import_zod.z.string().min(1).optional(),
|
|
5081
|
+
subject: import_zod.z.string().min(1).max(500).optional(),
|
|
5082
5082
|
/** Relationship type */
|
|
5083
|
-
predicate: import_zod.z.string().min(1).optional(),
|
|
5083
|
+
predicate: import_zod.z.string().min(1).max(200).optional(),
|
|
5084
5084
|
/** Fact object (related entity) */
|
|
5085
|
-
object: import_zod.z.string().min(1).optional(),
|
|
5085
|
+
object: import_zod.z.string().min(1).max(500).optional(),
|
|
5086
5086
|
/** Confidence score (0-1) */
|
|
5087
5087
|
confidence: import_zod.z.number().min(0).max(1).optional()
|
|
5088
5088
|
});
|