@memnexus-ai/typescript-sdk 1.60.37 → 1.62.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.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3952,6 +3952,8 @@ declare const searchRequest: z.ZodObject<{
|
|
|
3952
3952
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
3953
3953
|
/** Include facet aggregation (topics, memoryType, effectiveState) in response (defaults to false) */
|
|
3954
3954
|
includeFacets: z.ZodOptional<z.ZodBoolean>;
|
|
3955
|
+
/** EXPERIMENTAL — dev-measurement only. Per-request override of the server serving-format mode, used by the eval harness to run control/treatment arms in one pass. Honored ONLY when the server has SERVING_FORMAT_PARAM_ENABLED=true (dev); otherwise silently ignored (no error). 'raw' serves the original content; 'claims_replace' serves bullet-joined claims as content with the original preserved in raw_content (falls back to raw per-result when a result has no claims). Not for production use. */
|
|
3956
|
+
servingFormat: z.ZodOptional<z.ZodEnum<["raw", "claims_replace"]>>;
|
|
3955
3957
|
}, "strip", z.ZodTypeAny, {
|
|
3956
3958
|
query: string;
|
|
3957
3959
|
limit?: number | undefined;
|
|
@@ -3992,6 +3994,7 @@ declare const searchRequest: z.ZodObject<{
|
|
|
3992
3994
|
sortBy?: "eventTime" | "createdAt" | "updatedAt" | "relevance" | undefined;
|
|
3993
3995
|
order?: "asc" | "desc" | undefined;
|
|
3994
3996
|
includeFacets?: boolean | undefined;
|
|
3997
|
+
servingFormat?: "raw" | "claims_replace" | undefined;
|
|
3995
3998
|
}, {
|
|
3996
3999
|
query: string;
|
|
3997
4000
|
limit?: number | undefined;
|
|
@@ -4032,6 +4035,7 @@ declare const searchRequest: z.ZodObject<{
|
|
|
4032
4035
|
sortBy?: "eventTime" | "createdAt" | "updatedAt" | "relevance" | undefined;
|
|
4033
4036
|
order?: "asc" | "desc" | undefined;
|
|
4034
4037
|
includeFacets?: boolean | undefined;
|
|
4038
|
+
servingFormat?: "raw" | "claims_replace" | undefined;
|
|
4035
4039
|
}>;
|
|
4036
4040
|
declare const entity: z.ZodObject<{
|
|
4037
4041
|
/** Entity name */
|
|
@@ -7637,11 +7641,11 @@ declare const digestRequest: z.ZodObject<{
|
|
|
7637
7641
|
recent: z.ZodOptional<z.ZodString>;
|
|
7638
7642
|
/** Filter to memories with these topics */
|
|
7639
7643
|
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7640
|
-
/** Limit to specific conversation IDs */
|
|
7644
|
+
/** Limit to specific conversation IDs (max 10). Each id triggers its own hybrid search during gather, so the list is bounded to prevent a single-request memory blow-up. */
|
|
7641
7645
|
conversationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7642
7646
|
/** Output format: "structured" (sections with headers), "narrative" (chronological prose), "timeline" (dated event list), "status-report" (done/in-progress/blocked) */
|
|
7643
7647
|
format: z.ZodOptional<z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>>;
|
|
7644
|
-
/** Maximum number of memories to consider (1-
|
|
7648
|
+
/** Maximum number of memories to consider (1-100, default 100) */
|
|
7645
7649
|
maxSources: z.ZodOptional<z.ZodNumber>;
|
|
7646
7650
|
/** Whether to include source memory IDs in the response */
|
|
7647
7651
|
includeMemoryIds: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10431,6 +10435,7 @@ declare class MemoriesService extends BaseService {
|
|
|
10431
10435
|
sortBy?: 'relevance' | 'createdAt' | 'updatedAt' | 'eventTime';
|
|
10432
10436
|
order?: 'asc' | 'desc';
|
|
10433
10437
|
includeFacets?: boolean;
|
|
10438
|
+
servingFormat?: 'raw' | 'claims_replace';
|
|
10434
10439
|
}): Promise<HttpResponse<{
|
|
10435
10440
|
data: SearchResult[];
|
|
10436
10441
|
meta: SearchMeta;
|
package/dist/index.d.ts
CHANGED
|
@@ -3952,6 +3952,8 @@ declare const searchRequest: z.ZodObject<{
|
|
|
3952
3952
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
3953
3953
|
/** Include facet aggregation (topics, memoryType, effectiveState) in response (defaults to false) */
|
|
3954
3954
|
includeFacets: z.ZodOptional<z.ZodBoolean>;
|
|
3955
|
+
/** EXPERIMENTAL — dev-measurement only. Per-request override of the server serving-format mode, used by the eval harness to run control/treatment arms in one pass. Honored ONLY when the server has SERVING_FORMAT_PARAM_ENABLED=true (dev); otherwise silently ignored (no error). 'raw' serves the original content; 'claims_replace' serves bullet-joined claims as content with the original preserved in raw_content (falls back to raw per-result when a result has no claims). Not for production use. */
|
|
3956
|
+
servingFormat: z.ZodOptional<z.ZodEnum<["raw", "claims_replace"]>>;
|
|
3955
3957
|
}, "strip", z.ZodTypeAny, {
|
|
3956
3958
|
query: string;
|
|
3957
3959
|
limit?: number | undefined;
|
|
@@ -3992,6 +3994,7 @@ declare const searchRequest: z.ZodObject<{
|
|
|
3992
3994
|
sortBy?: "eventTime" | "createdAt" | "updatedAt" | "relevance" | undefined;
|
|
3993
3995
|
order?: "asc" | "desc" | undefined;
|
|
3994
3996
|
includeFacets?: boolean | undefined;
|
|
3997
|
+
servingFormat?: "raw" | "claims_replace" | undefined;
|
|
3995
3998
|
}, {
|
|
3996
3999
|
query: string;
|
|
3997
4000
|
limit?: number | undefined;
|
|
@@ -4032,6 +4035,7 @@ declare const searchRequest: z.ZodObject<{
|
|
|
4032
4035
|
sortBy?: "eventTime" | "createdAt" | "updatedAt" | "relevance" | undefined;
|
|
4033
4036
|
order?: "asc" | "desc" | undefined;
|
|
4034
4037
|
includeFacets?: boolean | undefined;
|
|
4038
|
+
servingFormat?: "raw" | "claims_replace" | undefined;
|
|
4035
4039
|
}>;
|
|
4036
4040
|
declare const entity: z.ZodObject<{
|
|
4037
4041
|
/** Entity name */
|
|
@@ -7637,11 +7641,11 @@ declare const digestRequest: z.ZodObject<{
|
|
|
7637
7641
|
recent: z.ZodOptional<z.ZodString>;
|
|
7638
7642
|
/** Filter to memories with these topics */
|
|
7639
7643
|
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7640
|
-
/** Limit to specific conversation IDs */
|
|
7644
|
+
/** Limit to specific conversation IDs (max 10). Each id triggers its own hybrid search during gather, so the list is bounded to prevent a single-request memory blow-up. */
|
|
7641
7645
|
conversationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7642
7646
|
/** Output format: "structured" (sections with headers), "narrative" (chronological prose), "timeline" (dated event list), "status-report" (done/in-progress/blocked) */
|
|
7643
7647
|
format: z.ZodOptional<z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>>;
|
|
7644
|
-
/** Maximum number of memories to consider (1-
|
|
7648
|
+
/** Maximum number of memories to consider (1-100, default 100) */
|
|
7645
7649
|
maxSources: z.ZodOptional<z.ZodNumber>;
|
|
7646
7650
|
/** Whether to include source memory IDs in the response */
|
|
7647
7651
|
includeMemoryIds: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10431,6 +10435,7 @@ declare class MemoriesService extends BaseService {
|
|
|
10431
10435
|
sortBy?: 'relevance' | 'createdAt' | 'updatedAt' | 'eventTime';
|
|
10432
10436
|
order?: 'asc' | 'desc';
|
|
10433
10437
|
includeFacets?: boolean;
|
|
10438
|
+
servingFormat?: 'raw' | 'claims_replace';
|
|
10434
10439
|
}): Promise<HttpResponse<{
|
|
10435
10440
|
data: SearchResult[];
|
|
10436
10441
|
meta: SearchMeta;
|
package/dist/index.js
CHANGED
|
@@ -6676,7 +6676,9 @@ var searchRequest = z.object({
|
|
|
6676
6676
|
/** Sort order: 'asc' or 'desc' (defaults to 'desc' for timestamps, 'desc' for relevance) */
|
|
6677
6677
|
order: z.enum(["asc", "desc"]).optional(),
|
|
6678
6678
|
/** Include facet aggregation (topics, memoryType, effectiveState) in response (defaults to false) */
|
|
6679
|
-
includeFacets: z.boolean().optional()
|
|
6679
|
+
includeFacets: z.boolean().optional(),
|
|
6680
|
+
/** EXPERIMENTAL — dev-measurement only. Per-request override of the server serving-format mode, used by the eval harness to run control/treatment arms in one pass. Honored ONLY when the server has SERVING_FORMAT_PARAM_ENABLED=true (dev); otherwise silently ignored (no error). 'raw' serves the original content; 'claims_replace' serves bullet-joined claims as content with the original preserved in raw_content (falls back to raw per-result when a result has no claims). Not for production use. */
|
|
6681
|
+
servingFormat: z.enum(["raw", "claims_replace"]).optional()
|
|
6680
6682
|
});
|
|
6681
6683
|
var entity = z.object({
|
|
6682
6684
|
/** Entity name */
|
|
@@ -7387,12 +7389,12 @@ var digestRequest = z.object({
|
|
|
7387
7389
|
recent: z.string().optional(),
|
|
7388
7390
|
/** Filter to memories with these topics */
|
|
7389
7391
|
topics: z.array(z.string()).optional(),
|
|
7390
|
-
/** Limit to specific conversation IDs */
|
|
7391
|
-
conversationIds: z.array(z.string()).optional(),
|
|
7392
|
+
/** Limit to specific conversation IDs (max 10). Each id triggers its own hybrid search during gather, so the list is bounded to prevent a single-request memory blow-up. */
|
|
7393
|
+
conversationIds: z.array(z.string()).max(10).optional(),
|
|
7392
7394
|
/** Output format: "structured" (sections with headers), "narrative" (chronological prose), "timeline" (dated event list), "status-report" (done/in-progress/blocked) */
|
|
7393
7395
|
format: z.enum(["structured", "narrative", "timeline", "status-report"]).optional(),
|
|
7394
|
-
/** Maximum number of memories to consider (1-
|
|
7395
|
-
maxSources: z.number().min(1).max(
|
|
7396
|
+
/** Maximum number of memories to consider (1-100, default 100) */
|
|
7397
|
+
maxSources: z.number().min(1).max(100).optional(),
|
|
7396
7398
|
/** Whether to include source memory IDs in the response */
|
|
7397
7399
|
includeMemoryIds: z.boolean().optional(),
|
|
7398
7400
|
/** Number of most-recent matching memories to return VERBATIM (full stored content, untouched) in `recentMemories`, instead of synthesizing them into `digest`. The remaining (older) memories are still synthesized into `digest` as usual. Recency is determined by event time when present, else system timestamp, else creation time. Default 0 = current behavior (synthesize all memories, `recentMemories` empty). When the total matched count is <= verbatimRecent, all matches are returned in `recentMemories` and `digest` is an empty string (no older memories to synthesize). Range 0-50. */
|