@memnexus-ai/typescript-sdk 1.78.6 → 1.78.8

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
@@ -440,7 +440,7 @@ declare const memory: z.ZodLazy<z.ZodObject<{
440
440
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
441
441
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
442
442
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
443
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
443
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
444
444
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
445
445
  /** Smart-field strategy used to produce the primary content embedding. */
446
446
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -980,7 +980,7 @@ declare const createMemoryResponse: z.ZodLazy<z.ZodObject<{
980
980
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
981
981
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
982
982
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
983
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
983
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
984
984
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
985
985
  /** Smart-field strategy used to produce the primary content embedding. */
986
986
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -1424,7 +1424,7 @@ declare const relatedMemoryResult: z.ZodLazy<z.ZodObject<{
1424
1424
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
1425
1425
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
1426
1426
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
1427
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
1427
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
1428
1428
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
1429
1429
  /** Smart-field strategy used to produce the primary content embedding. */
1430
1430
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -1851,7 +1851,7 @@ declare const getMemoryResponse: z.ZodLazy<z.ZodObject<{
1851
1851
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
1852
1852
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
1853
1853
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
1854
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
1854
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
1855
1855
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
1856
1856
  /** Smart-field strategy used to produce the primary content embedding. */
1857
1857
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -2500,7 +2500,7 @@ declare const batchGetMemoriesResponse: z.ZodLazy<z.ZodObject<{
2500
2500
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
2501
2501
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
2502
2502
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
2503
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
2503
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
2504
2504
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
2505
2505
  /** Smart-field strategy used to produce the primary content embedding. */
2506
2506
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -2966,7 +2966,7 @@ declare const graphRAGQueryResponse: z.ZodLazy<z.ZodObject<{
2966
2966
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
2967
2967
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
2968
2968
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
2969
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
2969
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
2970
2970
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
2971
2971
  /** Smart-field strategy used to produce the primary content embedding. */
2972
2972
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -6178,7 +6178,7 @@ declare const narrativeMemory: z.ZodLazy<z.ZodObject<{
6178
6178
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
6179
6179
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6180
6180
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
6181
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6181
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6182
6182
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
6183
6183
  /** Smart-field strategy used to produce the primary content embedding. */
6184
6184
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -6599,7 +6599,7 @@ declare const narrativeTimelineResponse: z.ZodLazy<z.ZodObject<{
6599
6599
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
6600
6600
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6601
6601
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
6602
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6602
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6603
6603
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
6604
6604
  /** Smart-field strategy used to produce the primary content embedding. */
6605
6605
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -8406,7 +8406,7 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8406
8406
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
8407
8407
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
8408
8408
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
8409
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
8409
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
8410
8410
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
8411
8411
  /** Smart-field strategy used to produce the primary content embedding. */
8412
8412
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
package/dist/index.d.ts CHANGED
@@ -440,7 +440,7 @@ declare const memory: z.ZodLazy<z.ZodObject<{
440
440
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
441
441
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
442
442
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
443
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
443
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
444
444
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
445
445
  /** Smart-field strategy used to produce the primary content embedding. */
446
446
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -980,7 +980,7 @@ declare const createMemoryResponse: z.ZodLazy<z.ZodObject<{
980
980
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
981
981
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
982
982
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
983
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
983
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
984
984
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
985
985
  /** Smart-field strategy used to produce the primary content embedding. */
986
986
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -1424,7 +1424,7 @@ declare const relatedMemoryResult: z.ZodLazy<z.ZodObject<{
1424
1424
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
1425
1425
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
1426
1426
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
1427
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
1427
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
1428
1428
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
1429
1429
  /** Smart-field strategy used to produce the primary content embedding. */
1430
1430
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -1851,7 +1851,7 @@ declare const getMemoryResponse: z.ZodLazy<z.ZodObject<{
1851
1851
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
1852
1852
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
1853
1853
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
1854
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
1854
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
1855
1855
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
1856
1856
  /** Smart-field strategy used to produce the primary content embedding. */
1857
1857
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -2500,7 +2500,7 @@ declare const batchGetMemoriesResponse: z.ZodLazy<z.ZodObject<{
2500
2500
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
2501
2501
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
2502
2502
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
2503
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
2503
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
2504
2504
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
2505
2505
  /** Smart-field strategy used to produce the primary content embedding. */
2506
2506
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -2966,7 +2966,7 @@ declare const graphRAGQueryResponse: z.ZodLazy<z.ZodObject<{
2966
2966
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
2967
2967
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
2968
2968
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
2969
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
2969
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
2970
2970
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
2971
2971
  /** Smart-field strategy used to produce the primary content embedding. */
2972
2972
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -6178,7 +6178,7 @@ declare const narrativeMemory: z.ZodLazy<z.ZodObject<{
6178
6178
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
6179
6179
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6180
6180
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
6181
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6181
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6182
6182
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
6183
6183
  /** Smart-field strategy used to produce the primary content embedding. */
6184
6184
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -6599,7 +6599,7 @@ declare const narrativeTimelineResponse: z.ZodLazy<z.ZodObject<{
6599
6599
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
6600
6600
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6601
6601
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
6602
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6602
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6603
6603
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
6604
6604
  /** Smart-field strategy used to produce the primary content embedding. */
6605
6605
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
@@ -8406,7 +8406,7 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8406
8406
  embeddingOpenaiStatus: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "skipped"]>>;
8407
8407
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
8408
8408
  embeddingTruncated: z.ZodOptional<z.ZodBoolean>;
8409
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
8409
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
8410
8410
  embeddingOriginalTokens: z.ZodOptional<z.ZodNumber>;
8411
8411
  /** Smart-field strategy used to produce the primary content embedding. */
8412
8412
  embeddingStrategy: z.ZodOptional<z.ZodEnum<["full", "head-truncated", "summary-selected", "question-selected"]>>;
package/dist/index.js CHANGED
@@ -6215,7 +6215,7 @@ var memory = z.lazy(() => z.object({
6215
6215
  embeddingOpenaiStatus: z.enum(["queued", "running", "completed", "failed", "skipped"]).optional(),
6216
6216
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6217
6217
  embeddingTruncated: z.boolean().optional(),
6218
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6218
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6219
6219
  embeddingOriginalTokens: z.number().min(0).optional(),
6220
6220
  /** Smart-field strategy used to produce the primary content embedding. */
6221
6221
  embeddingStrategy: z.enum(["full", "head-truncated", "summary-selected", "question-selected"]).optional(),
@@ -6418,7 +6418,7 @@ var relatedMemoryResult = z.lazy(() => z.object({
6418
6418
  embeddingOpenaiStatus: z.enum(["queued", "running", "completed", "failed", "skipped"]).optional(),
6419
6419
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
6420
6420
  embeddingTruncated: z.boolean().optional(),
6421
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
6421
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
6422
6422
  embeddingOriginalTokens: z.number().min(0).optional(),
6423
6423
  /** Smart-field strategy used to produce the primary content embedding. */
6424
6424
  embeddingStrategy: z.enum(["full", "head-truncated", "summary-selected", "question-selected"]).optional(),
@@ -7339,7 +7339,7 @@ var narrativeMemory = z.lazy(() => z.object({
7339
7339
  embeddingOpenaiStatus: z.enum(["queued", "running", "completed", "failed", "skipped"]).optional(),
7340
7340
  /** True if the primary content embedding used a head-truncated input (model context exceeded). */
7341
7341
  embeddingTruncated: z.boolean().optional(),
7342
- /** Token count of the original content (pre-truncation, cl100k proxy). Useful for identifying under-indexed memories. */
7342
+ /** Token count of the original content (pre-truncation, tokenizer proxy). Within the model's token budget it is the tokenizer count, which can read a few tokens high on long text; above the budget it is an estimate projected from the scanned head, since counting stops there. Useful for identifying under-indexed memories. */
7343
7343
  embeddingOriginalTokens: z.number().min(0).optional(),
7344
7344
  /** Smart-field strategy used to produce the primary content embedding. */
7345
7345
  embeddingStrategy: z.enum(["full", "head-truncated", "summary-selected", "question-selected"]).optional(),