@memnexus-ai/typescript-sdk 1.85.4 → 1.86.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
@@ -3967,7 +3967,7 @@ declare const searchRequest: z.ZodObject<{
3967
3967
  searchMethod: z.ZodOptional<z.ZodEnum<["keyword", "semantic", "hybrid"]>>;
3968
3968
  /** Target number of results (defaults to 20). Note: when the v2.33 RRF consensus-exemption feature is enabled (CONSENSUS_EXEMPTION_ENABLED, off by default), a hybrid response MAY contain up to limit + CONSENSUS_EXEMPTION_MAX_PINS results — a small number of dual-primary-consensus documents appended after the top-`limit` window without evicting it. With the feature off, the response never exceeds `limit`. */
3969
3969
  limit: z.ZodOptional<z.ZodNumber>;
3970
- /** Offset for pagination (defaults to 0) */
3970
+ /** Offset for pagination (defaults to 0). offset + limit must not exceed 10000; a request above that returns HTTP 400. */
3971
3971
  offset: z.ZodOptional<z.ZodNumber>;
3972
3972
  /** Weight for vector (semantic) results in hybrid search (0-1, defaults to 0.7) */
3973
3973
  vectorWeight: z.ZodOptional<z.ZodNumber>;
@@ -4481,7 +4481,7 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
4481
4481
  }>, "many">>;
4482
4482
  /** True when the fulltext-anchor gate discarded a non-empty candidate set for this query, so this page does NOT include everything the search found. Combine with total: total=0 alongside this flag means the empty result is an artefact of the gate, not a statement that no matching memory exists, and a larger limit may return results. DISTINCT from degraded, which is false here because every search branch succeeded. ABSENT (not false) when the gate suppressed nothing — an unsuppressed response gains no new fields. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4483
4483
  anchorGateSuppressed: z.ZodOptional<z.ZodBoolean>;
4484
- /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search whose health this request captured; reformulation searches issued under `rewrite=true` are NOT included, so on such a request this count can under-report, and both fields can be absent entirely even though the gate did suppress. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4484
+ /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search this request ran, including the reformulation searches issued under `rewrite=true`. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4485
4485
  anchorGateDiscardedCount: z.ZodOptional<z.ZodNumber>;
4486
4486
  /** Temporal query metadata (present when temporal filters are used) */
4487
4487
  temporalMetadata: z.ZodOptional<z.ZodObject<{
@@ -5085,7 +5085,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5085
5085
  }>, "many">>;
5086
5086
  /** True when the fulltext-anchor gate discarded a non-empty candidate set for this query, so this page does NOT include everything the search found. Combine with total: total=0 alongside this flag means the empty result is an artefact of the gate, not a statement that no matching memory exists, and a larger limit may return results. DISTINCT from degraded, which is false here because every search branch succeeded. ABSENT (not false) when the gate suppressed nothing — an unsuppressed response gains no new fields. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5087
5087
  anchorGateSuppressed: z.ZodOptional<z.ZodBoolean>;
5088
- /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search whose health this request captured; reformulation searches issued under `rewrite=true` are NOT included, so on such a request this count can under-report, and both fields can be absent entirely even though the gate did suppress. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5088
+ /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search this request ran, including the reformulation searches issued under `rewrite=true`. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5089
5089
  anchorGateDiscardedCount: z.ZodOptional<z.ZodNumber>;
5090
5090
  /** Temporal query metadata (present when temporal filters are used) */
5091
5091
  temporalMetadata: z.ZodOptional<z.ZodObject<{
@@ -10808,7 +10808,7 @@ declare class MemoriesService extends BaseService {
10808
10808
  * @param q - Search query string. Optional — omit for topic/date-only browsing.
10809
10809
  * @param searchMethod - Search algorithm to use
10810
10810
  * @param limit - Maximum number of results to return
10811
- * @param offset - Number of results to skip for pagination
10811
+ * @param offset - Number of results to skip for pagination. offset + limit must not exceed 10000; a request above that returns HTTP 400.
10812
10812
  * @param threshold - Minimum similarity threshold for semantic search
10813
10813
  * @param mode - Content filtering mode
10814
10814
  * @param vectorWeight - Weight for vector similarity in hybrid search
package/dist/index.d.ts CHANGED
@@ -3967,7 +3967,7 @@ declare const searchRequest: z.ZodObject<{
3967
3967
  searchMethod: z.ZodOptional<z.ZodEnum<["keyword", "semantic", "hybrid"]>>;
3968
3968
  /** Target number of results (defaults to 20). Note: when the v2.33 RRF consensus-exemption feature is enabled (CONSENSUS_EXEMPTION_ENABLED, off by default), a hybrid response MAY contain up to limit + CONSENSUS_EXEMPTION_MAX_PINS results — a small number of dual-primary-consensus documents appended after the top-`limit` window without evicting it. With the feature off, the response never exceeds `limit`. */
3969
3969
  limit: z.ZodOptional<z.ZodNumber>;
3970
- /** Offset for pagination (defaults to 0) */
3970
+ /** Offset for pagination (defaults to 0). offset + limit must not exceed 10000; a request above that returns HTTP 400. */
3971
3971
  offset: z.ZodOptional<z.ZodNumber>;
3972
3972
  /** Weight for vector (semantic) results in hybrid search (0-1, defaults to 0.7) */
3973
3973
  vectorWeight: z.ZodOptional<z.ZodNumber>;
@@ -4481,7 +4481,7 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
4481
4481
  }>, "many">>;
4482
4482
  /** True when the fulltext-anchor gate discarded a non-empty candidate set for this query, so this page does NOT include everything the search found. Combine with total: total=0 alongside this flag means the empty result is an artefact of the gate, not a statement that no matching memory exists, and a larger limit may return results. DISTINCT from degraded, which is false here because every search branch succeeded. ABSENT (not false) when the gate suppressed nothing — an unsuppressed response gains no new fields. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4483
4483
  anchorGateSuppressed: z.ZodOptional<z.ZodBoolean>;
4484
- /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search whose health this request captured; reformulation searches issued under `rewrite=true` are NOT included, so on such a request this count can under-report, and both fields can be absent entirely even though the gate did suppress. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4484
+ /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search this request ran, including the reformulation searches issued under `rewrite=true`. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
4485
4485
  anchorGateDiscardedCount: z.ZodOptional<z.ZodNumber>;
4486
4486
  /** Temporal query metadata (present when temporal filters are used) */
4487
4487
  temporalMetadata: z.ZodOptional<z.ZodObject<{
@@ -5085,7 +5085,7 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
5085
5085
  }>, "many">>;
5086
5086
  /** True when the fulltext-anchor gate discarded a non-empty candidate set for this query, so this page does NOT include everything the search found. Combine with total: total=0 alongside this flag means the empty result is an artefact of the gate, not a statement that no matching memory exists, and a larger limit may return results. DISTINCT from degraded, which is false here because every search branch succeeded. ABSENT (not false) when the gate suppressed nothing — an unsuppressed response gains no new fields. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5087
5087
  anchorGateSuppressed: z.ZodOptional<z.ZodBoolean>;
5088
- /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search whose health this request captured; reformulation searches issued under `rewrite=true` are NOT included, so on such a request this count can under-report, and both fields can be absent entirely even though the gate did suppress. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5088
+ /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search this request ran, including the reformulation searches issued under `rewrite=true`. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
5089
5089
  anchorGateDiscardedCount: z.ZodOptional<z.ZodNumber>;
5090
5090
  /** Temporal query metadata (present when temporal filters are used) */
5091
5091
  temporalMetadata: z.ZodOptional<z.ZodObject<{
@@ -10808,7 +10808,7 @@ declare class MemoriesService extends BaseService {
10808
10808
  * @param q - Search query string. Optional — omit for topic/date-only browsing.
10809
10809
  * @param searchMethod - Search algorithm to use
10810
10810
  * @param limit - Maximum number of results to return
10811
- * @param offset - Number of results to skip for pagination
10811
+ * @param offset - Number of results to skip for pagination. offset + limit must not exceed 10000; a request above that returns HTTP 400.
10812
10812
  * @param threshold - Minimum similarity threshold for semantic search
10813
10813
  * @param mode - Content filtering mode
10814
10814
  * @param vectorWeight - Weight for vector similarity in hybrid search
package/dist/index.js CHANGED
@@ -2511,7 +2511,7 @@ var MemoriesService = class extends BaseService {
2511
2511
  * @param q - Search query string. Optional — omit for topic/date-only browsing.
2512
2512
  * @param searchMethod - Search algorithm to use
2513
2513
  * @param limit - Maximum number of results to return
2514
- * @param offset - Number of results to skip for pagination
2514
+ * @param offset - Number of results to skip for pagination. offset + limit must not exceed 10000; a request above that returns HTTP 400.
2515
2515
  * @param threshold - Minimum similarity threshold for semantic search
2516
2516
  * @param mode - Content filtering mode
2517
2517
  * @param vectorWeight - Weight for vector similarity in hybrid search
@@ -6781,7 +6781,7 @@ var searchRequest = z.object({
6781
6781
  searchMethod: z.enum(["keyword", "semantic", "hybrid"]).optional(),
6782
6782
  /** Target number of results (defaults to 20). Note: when the v2.33 RRF consensus-exemption feature is enabled (CONSENSUS_EXEMPTION_ENABLED, off by default), a hybrid response MAY contain up to limit + CONSENSUS_EXEMPTION_MAX_PINS results — a small number of dual-primary-consensus documents appended after the top-`limit` window without evicting it. With the feature off, the response never exceeds `limit`. */
6783
6783
  limit: z.number().min(1).max(100).optional(),
6784
- /** Offset for pagination (defaults to 0) */
6784
+ /** Offset for pagination (defaults to 0). offset + limit must not exceed 10000; a request above that returns HTTP 400. */
6785
6785
  offset: z.number().min(0).optional(),
6786
6786
  /** Weight for vector (semantic) results in hybrid search (0-1, defaults to 0.7) */
6787
6787
  vectorWeight: z.number().min(0).max(1).optional(),
@@ -6993,7 +6993,7 @@ var searchMeta = z.lazy(() => z.object({
6993
6993
  branchFailures: z.array(branchFailure).optional(),
6994
6994
  /** True when the fulltext-anchor gate discarded a non-empty candidate set for this query, so this page does NOT include everything the search found. Combine with total: total=0 alongside this flag means the empty result is an artefact of the gate, not a statement that no matching memory exists, and a larger limit may return results. DISTINCT from degraded, which is false here because every search branch succeeded. ABSENT (not false) when the gate suppressed nothing — an unsuppressed response gains no new fields. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
6995
6995
  anchorGateSuppressed: z.boolean().optional(),
6996
- /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search whose health this request captured; reformulation searches issued under `rewrite=true` are NOT included, so on such a request this count can under-report, and both fields can be absent entirely even though the gate did suppress. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
6996
+ /** How many fused candidates the fulltext-anchor gate discarded, summed across every hybrid search this request ran, including the reformulation searches issued under `rewrite=true`. Present only alongside anchorGateSuppressed, and always > 0 when present. Treat it as an UPPER BOUND on what a larger limit could recover, not as a count of retrievable rows: the gate runs before the superseded/duplicate exclusion, so discarded candidates can include duplicate-state rows that are never served at any limit and superseded rows that are served only when the caller asks for them. This field is emitted by the search and digest responses that implement it; its absence on any other endpoint carries no assurance that nothing was suppressed there. */
6997
6997
  anchorGateDiscardedCount: z.number().min(1).optional(),
6998
6998
  /** Temporal query metadata (present when temporal filters are used) */
6999
6999
  temporalMetadata: temporalMetadata.optional()