@memnexus-ai/typescript-sdk 1.55.0-next.0 → 1.55.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 CHANGED
@@ -3756,7 +3756,7 @@ declare const healthCheck: z.ZodObject<{
3756
3756
  };
3757
3757
  }>;
3758
3758
  declare const searchRequest: z.ZodObject<{
3759
- /** Search query */
3759
+ /** Search query. On POST all methods accept up to 32768 chars; the GET endpoint caps all methods at 2000 (use POST for larger queries). For queries over 2000 chars the keyword-matching side (the keyword method, and hybrid's fulltext/entity sub-branches) searches on a representative SAMPLE of the query's most salient terms rather than the whole text; the semantic branch still embeds the full query. Queries at or under 2000 chars are searched verbatim. */
3760
3760
  query: z.ZodString;
3761
3761
  /** Content filtering mode (defaults to unified) */
3762
3762
  mode: z.ZodOptional<z.ZodEnum<["unified", "content", "facts"]>>;
@@ -4006,6 +4006,8 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4006
4006
  matchedVia: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4007
4007
  /** Per-branch RRF scores for this result */
4008
4008
  branchScores: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodNumber, z.objectOutputType<{}, z.ZodNumber, "strip">, z.objectInputType<{}, z.ZodNumber, "strip">>>;
4009
+ /** Raw cross-encoder rerank score; present only when the reranker reordered this request's top-K (null otherwise) */
4010
+ rerankScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4009
4011
  /** Detailed explanation of the match (only when explain=true) */
4010
4012
  explanation: z.ZodOptional<z.ZodObject<{
4011
4013
  /** Human-readable explanation of why this result matched */
@@ -4060,6 +4062,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4060
4062
  fulltextRank?: number | null | undefined;
4061
4063
  matchedVia?: string[] | undefined;
4062
4064
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
4065
+ rerankScore?: number | null | undefined;
4063
4066
  explanation?: {
4064
4067
  matchReason: string;
4065
4068
  matchedTerms?: string[] | undefined;
@@ -4099,6 +4102,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4099
4102
  fulltextRank?: number | null | undefined;
4100
4103
  matchedVia?: string[] | undefined;
4101
4104
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
4105
+ rerankScore?: number | null | undefined;
4102
4106
  explanation?: {
4103
4107
  matchReason: string;
4104
4108
  matchedTerms?: string[] | undefined;
@@ -4601,6 +4605,8 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4601
4605
  matchedVia: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4602
4606
  /** Per-branch RRF scores for this result */
4603
4607
  branchScores: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodNumber, z.objectOutputType<{}, z.ZodNumber, "strip">, z.objectInputType<{}, z.ZodNumber, "strip">>>;
4608
+ /** Raw cross-encoder rerank score; present only when the reranker reordered this request's top-K (null otherwise) */
4609
+ rerankScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4604
4610
  /** Detailed explanation of the match (only when explain=true) */
4605
4611
  explanation: z.ZodOptional<z.ZodObject<{
4606
4612
  /** Human-readable explanation of why this result matched */
@@ -4655,6 +4661,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4655
4661
  fulltextRank?: number | null | undefined;
4656
4662
  matchedVia?: string[] | undefined;
4657
4663
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
4664
+ rerankScore?: number | null | undefined;
4658
4665
  explanation?: {
4659
4666
  matchReason: string;
4660
4667
  matchedTerms?: string[] | undefined;
@@ -4694,6 +4701,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4694
4701
  fulltextRank?: number | null | undefined;
4695
4702
  matchedVia?: string[] | undefined;
4696
4703
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
4704
+ rerankScore?: number | null | undefined;
4697
4705
  explanation?: {
4698
4706
  matchReason: string;
4699
4707
  matchedTerms?: string[] | undefined;
@@ -5016,6 +5024,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5016
5024
  fulltextRank?: number | null | undefined;
5017
5025
  matchedVia?: string[] | undefined;
5018
5026
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
5027
+ rerankScore?: number | null | undefined;
5019
5028
  explanation?: {
5020
5029
  matchReason: string;
5021
5030
  matchedTerms?: string[] | undefined;
@@ -5112,6 +5121,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5112
5121
  fulltextRank?: number | null | undefined;
5113
5122
  matchedVia?: string[] | undefined;
5114
5123
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
5124
+ rerankScore?: number | null | undefined;
5115
5125
  explanation?: {
5116
5126
  matchReason: string;
5117
5127
  matchedTerms?: string[] | undefined;
package/dist/index.d.ts CHANGED
@@ -3756,7 +3756,7 @@ declare const healthCheck: z.ZodObject<{
3756
3756
  };
3757
3757
  }>;
3758
3758
  declare const searchRequest: z.ZodObject<{
3759
- /** Search query */
3759
+ /** Search query. On POST all methods accept up to 32768 chars; the GET endpoint caps all methods at 2000 (use POST for larger queries). For queries over 2000 chars the keyword-matching side (the keyword method, and hybrid's fulltext/entity sub-branches) searches on a representative SAMPLE of the query's most salient terms rather than the whole text; the semantic branch still embeds the full query. Queries at or under 2000 chars are searched verbatim. */
3760
3760
  query: z.ZodString;
3761
3761
  /** Content filtering mode (defaults to unified) */
3762
3762
  mode: z.ZodOptional<z.ZodEnum<["unified", "content", "facts"]>>;
@@ -4006,6 +4006,8 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4006
4006
  matchedVia: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4007
4007
  /** Per-branch RRF scores for this result */
4008
4008
  branchScores: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodNumber, z.objectOutputType<{}, z.ZodNumber, "strip">, z.objectInputType<{}, z.ZodNumber, "strip">>>;
4009
+ /** Raw cross-encoder rerank score; present only when the reranker reordered this request's top-K (null otherwise) */
4010
+ rerankScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4009
4011
  /** Detailed explanation of the match (only when explain=true) */
4010
4012
  explanation: z.ZodOptional<z.ZodObject<{
4011
4013
  /** Human-readable explanation of why this result matched */
@@ -4060,6 +4062,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4060
4062
  fulltextRank?: number | null | undefined;
4061
4063
  matchedVia?: string[] | undefined;
4062
4064
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
4065
+ rerankScore?: number | null | undefined;
4063
4066
  explanation?: {
4064
4067
  matchReason: string;
4065
4068
  matchedTerms?: string[] | undefined;
@@ -4099,6 +4102,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
4099
4102
  fulltextRank?: number | null | undefined;
4100
4103
  matchedVia?: string[] | undefined;
4101
4104
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
4105
+ rerankScore?: number | null | undefined;
4102
4106
  explanation?: {
4103
4107
  matchReason: string;
4104
4108
  matchedTerms?: string[] | undefined;
@@ -4601,6 +4605,8 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4601
4605
  matchedVia: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4602
4606
  /** Per-branch RRF scores for this result */
4603
4607
  branchScores: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodNumber, z.objectOutputType<{}, z.ZodNumber, "strip">, z.objectInputType<{}, z.ZodNumber, "strip">>>;
4608
+ /** Raw cross-encoder rerank score; present only when the reranker reordered this request's top-K (null otherwise) */
4609
+ rerankScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4604
4610
  /** Detailed explanation of the match (only when explain=true) */
4605
4611
  explanation: z.ZodOptional<z.ZodObject<{
4606
4612
  /** Human-readable explanation of why this result matched */
@@ -4655,6 +4661,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4655
4661
  fulltextRank?: number | null | undefined;
4656
4662
  matchedVia?: string[] | undefined;
4657
4663
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
4664
+ rerankScore?: number | null | undefined;
4658
4665
  explanation?: {
4659
4666
  matchReason: string;
4660
4667
  matchedTerms?: string[] | undefined;
@@ -4694,6 +4701,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4694
4701
  fulltextRank?: number | null | undefined;
4695
4702
  matchedVia?: string[] | undefined;
4696
4703
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
4704
+ rerankScore?: number | null | undefined;
4697
4705
  explanation?: {
4698
4706
  matchReason: string;
4699
4707
  matchedTerms?: string[] | undefined;
@@ -5016,6 +5024,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5016
5024
  fulltextRank?: number | null | undefined;
5017
5025
  matchedVia?: string[] | undefined;
5018
5026
  branchScores?: z.objectOutputType<{}, z.ZodNumber, "strip"> | undefined;
5027
+ rerankScore?: number | null | undefined;
5019
5028
  explanation?: {
5020
5029
  matchReason: string;
5021
5030
  matchedTerms?: string[] | undefined;
@@ -5112,6 +5121,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5112
5121
  fulltextRank?: number | null | undefined;
5113
5122
  matchedVia?: string[] | undefined;
5114
5123
  branchScores?: z.objectInputType<{}, z.ZodNumber, "strip"> | undefined;
5124
+ rerankScore?: number | null | undefined;
5115
5125
  explanation?: {
5116
5126
  matchReason: string;
5117
5127
  matchedTerms?: string[] | undefined;
package/dist/index.js CHANGED
@@ -6498,8 +6498,8 @@ var healthCheck = z.object({
6498
6498
  checks: z.object({}).catchall(serviceCheck)
6499
6499
  });
6500
6500
  var searchRequest = z.object({
6501
- /** Search query */
6502
- query: z.string().min(1).max(2e3),
6501
+ /** Search query. On POST all methods accept up to 32768 chars; the GET endpoint caps all methods at 2000 (use POST for larger queries). For queries over 2000 chars the keyword-matching side (the keyword method, and hybrid's fulltext/entity sub-branches) searches on a representative SAMPLE of the query's most salient terms rather than the whole text; the semantic branch still embeds the full query. Queries at or under 2000 chars are searched verbatim. */
6502
+ query: z.string().min(1).max(32768),
6503
6503
  /** Content filtering mode (defaults to unified) */
6504
6504
  mode: z.enum(["unified", "content", "facts"]).optional(),
6505
6505
  /** Search algorithm: hybrid (combined, default), semantic (vector), or keyword (fulltext). */
@@ -6641,6 +6641,8 @@ var searchResult = z.lazy(() => z.object({
6641
6641
  matchedVia: z.array(z.string()).optional(),
6642
6642
  /** Per-branch RRF scores for this result */
6643
6643
  branchScores: z.object({}).catchall(z.number()).optional(),
6644
+ /** Raw cross-encoder rerank score; present only when the reranker reordered this request's top-K (null otherwise) */
6645
+ rerankScore: z.number().nullable().optional(),
6644
6646
  /** Detailed explanation of the match (only when explain=true) */
6645
6647
  explanation: z.object({
6646
6648
  /** Human-readable explanation of why this result matched */