@memnexus-ai/sdk 1.68.8 → 1.69.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 +27 -1
- package/dist/index.d.ts +27 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -745,6 +745,14 @@ interface SearchResult {
|
|
|
745
745
|
contributingFactors?: string[];
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
+
interface BranchFailure {
|
|
749
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
750
|
+
name: string;
|
|
751
|
+
/** How the branch failed */
|
|
752
|
+
status: 'timeout' | 'error';
|
|
753
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
754
|
+
reason: 'timeout' | 'connection' | 'query_error' | 'provider_error' | 'unknown';
|
|
755
|
+
}
|
|
748
756
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
749
757
|
interface TemporalMetadata {
|
|
750
758
|
/** Temporal query mode used */
|
|
@@ -780,6 +788,10 @@ interface SearchMeta {
|
|
|
780
788
|
searchTime: number;
|
|
781
789
|
/** Search method used for this query */
|
|
782
790
|
searchMethod: string;
|
|
791
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
792
|
+
degraded?: boolean;
|
|
793
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
794
|
+
branchFailures?: BranchFailure[];
|
|
783
795
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
784
796
|
temporalMetadata?: TemporalMetadata;
|
|
785
797
|
}
|
|
@@ -847,6 +859,20 @@ interface SearchResponse {
|
|
|
847
859
|
/** Clusters of related claims that may conflict. Only present when relevant groups exist. Claims within each group are sorted newest-first. */
|
|
848
860
|
claim_groups?: ClaimGroup[];
|
|
849
861
|
}
|
|
862
|
+
interface SearchFailureResponse {
|
|
863
|
+
/** Human-readable message. Worded so it never reads as 'no results exist'. */
|
|
864
|
+
error: string;
|
|
865
|
+
/** Top-level outcome the client switches on. all_branches_failed = every search branch failed, backend degraded (a retry may not help until it recovers); deadline_exceeded = the in-app request deadline was hit before a result could be produced (a retry may land inside budget); service_at_capacity = the request was shed by bounded admission/backpressure (retrying after retry_after_ms succeeds once load drops). */
|
|
866
|
+
reason?: 'all_branches_failed' | 'deadline_exceeded' | 'service_at_capacity';
|
|
867
|
+
/** Explicit signal that retrying is worthwhile. True for all typed honest-failure reasons. */
|
|
868
|
+
retryable?: boolean;
|
|
869
|
+
/** Advisory delay in milliseconds before retrying. Present only when reason is service_at_capacity. Carries server-side jitter (base ±25%) so clients shed together do not retry in lockstep and re-create the spike. */
|
|
870
|
+
retry_after_ms?: number;
|
|
871
|
+
/** True when the gather was incomplete — at least one search branch timed out or errored. */
|
|
872
|
+
degraded?: boolean;
|
|
873
|
+
/** The branches that did NOT complete. Healthy branches are omitted. */
|
|
874
|
+
branchFailures?: BranchFailure[];
|
|
875
|
+
}
|
|
850
876
|
interface Fact {
|
|
851
877
|
/** Unique identifier for the fact */
|
|
852
878
|
id: string;
|
|
@@ -4460,4 +4486,4 @@ declare class MemNexus {
|
|
|
4460
4486
|
forget(memoryId: string): Promise<HttpResponse<unknown>>;
|
|
4461
4487
|
}
|
|
4462
4488
|
|
|
4463
|
-
export { type AddMemoryToNarrativeRequest, type ApiKey, type AppendNamedMemoryRequest, type Artifact, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, type BillingOverview, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, type Conversation, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type CreateRecommendationRequest, type CreateSystemAlertRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, type Entity, type EntityNode, type Error$1 as Error, type ExportRequest, type FacetEntry, type Facets, type Fact, type FactSearchRequest, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, type HealthCheck, type HttpClientOptions, type HttpResponse, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, type MatchRecommendationsRequest, MemNexus, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, type Pagination, type Pattern, type PaymentMethod, type PortalSessionResponse, type PrecomputedMemoryFields, type Recommendation, type RelatedMemoryResult, SdkError, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, type ServiceCheck, type Subscription, type SystemAlert, type TemporalMetadata, type Topic, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage };
|
|
4489
|
+
export { type AddMemoryToNarrativeRequest, type ApiKey, type AppendNamedMemoryRequest, type Artifact, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, type BillingOverview, type BranchFailure, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, type Conversation, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type CreateRecommendationRequest, type CreateSystemAlertRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, type Entity, type EntityNode, type Error$1 as Error, type ExportRequest, type FacetEntry, type Facets, type Fact, type FactSearchRequest, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, type HealthCheck, type HttpClientOptions, type HttpResponse, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, type MatchRecommendationsRequest, MemNexus, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, type Pagination, type Pattern, type PaymentMethod, type PortalSessionResponse, type PrecomputedMemoryFields, type Recommendation, type RelatedMemoryResult, SdkError, type SearchFailureResponse, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, type ServiceCheck, type Subscription, type SystemAlert, type TemporalMetadata, type Topic, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage };
|
package/dist/index.d.ts
CHANGED
|
@@ -745,6 +745,14 @@ interface SearchResult {
|
|
|
745
745
|
contributingFactors?: string[];
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
+
interface BranchFailure {
|
|
749
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
750
|
+
name: string;
|
|
751
|
+
/** How the branch failed */
|
|
752
|
+
status: 'timeout' | 'error';
|
|
753
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
754
|
+
reason: 'timeout' | 'connection' | 'query_error' | 'provider_error' | 'unknown';
|
|
755
|
+
}
|
|
748
756
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
749
757
|
interface TemporalMetadata {
|
|
750
758
|
/** Temporal query mode used */
|
|
@@ -780,6 +788,10 @@ interface SearchMeta {
|
|
|
780
788
|
searchTime: number;
|
|
781
789
|
/** Search method used for this query */
|
|
782
790
|
searchMethod: string;
|
|
791
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
792
|
+
degraded?: boolean;
|
|
793
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
794
|
+
branchFailures?: BranchFailure[];
|
|
783
795
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
784
796
|
temporalMetadata?: TemporalMetadata;
|
|
785
797
|
}
|
|
@@ -847,6 +859,20 @@ interface SearchResponse {
|
|
|
847
859
|
/** Clusters of related claims that may conflict. Only present when relevant groups exist. Claims within each group are sorted newest-first. */
|
|
848
860
|
claim_groups?: ClaimGroup[];
|
|
849
861
|
}
|
|
862
|
+
interface SearchFailureResponse {
|
|
863
|
+
/** Human-readable message. Worded so it never reads as 'no results exist'. */
|
|
864
|
+
error: string;
|
|
865
|
+
/** Top-level outcome the client switches on. all_branches_failed = every search branch failed, backend degraded (a retry may not help until it recovers); deadline_exceeded = the in-app request deadline was hit before a result could be produced (a retry may land inside budget); service_at_capacity = the request was shed by bounded admission/backpressure (retrying after retry_after_ms succeeds once load drops). */
|
|
866
|
+
reason?: 'all_branches_failed' | 'deadline_exceeded' | 'service_at_capacity';
|
|
867
|
+
/** Explicit signal that retrying is worthwhile. True for all typed honest-failure reasons. */
|
|
868
|
+
retryable?: boolean;
|
|
869
|
+
/** Advisory delay in milliseconds before retrying. Present only when reason is service_at_capacity. Carries server-side jitter (base ±25%) so clients shed together do not retry in lockstep and re-create the spike. */
|
|
870
|
+
retry_after_ms?: number;
|
|
871
|
+
/** True when the gather was incomplete — at least one search branch timed out or errored. */
|
|
872
|
+
degraded?: boolean;
|
|
873
|
+
/** The branches that did NOT complete. Healthy branches are omitted. */
|
|
874
|
+
branchFailures?: BranchFailure[];
|
|
875
|
+
}
|
|
850
876
|
interface Fact {
|
|
851
877
|
/** Unique identifier for the fact */
|
|
852
878
|
id: string;
|
|
@@ -4460,4 +4486,4 @@ declare class MemNexus {
|
|
|
4460
4486
|
forget(memoryId: string): Promise<HttpResponse<unknown>>;
|
|
4461
4487
|
}
|
|
4462
4488
|
|
|
4463
|
-
export { type AddMemoryToNarrativeRequest, type ApiKey, type AppendNamedMemoryRequest, type Artifact, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, type BillingOverview, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, type Conversation, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type CreateRecommendationRequest, type CreateSystemAlertRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, type Entity, type EntityNode, type Error$1 as Error, type ExportRequest, type FacetEntry, type Facets, type Fact, type FactSearchRequest, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, type HealthCheck, type HttpClientOptions, type HttpResponse, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, type MatchRecommendationsRequest, MemNexus, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, type Pagination, type Pattern, type PaymentMethod, type PortalSessionResponse, type PrecomputedMemoryFields, type Recommendation, type RelatedMemoryResult, SdkError, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, type ServiceCheck, type Subscription, type SystemAlert, type TemporalMetadata, type Topic, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage };
|
|
4489
|
+
export { type AddMemoryToNarrativeRequest, type ApiKey, type AppendNamedMemoryRequest, type Artifact, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, type BillingOverview, type BranchFailure, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, type Conversation, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type CreateRecommendationRequest, type CreateSystemAlertRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, type Entity, type EntityNode, type Error$1 as Error, type ExportRequest, type FacetEntry, type Facets, type Fact, type FactSearchRequest, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, type HealthCheck, type HttpClientOptions, type HttpResponse, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, type MatchRecommendationsRequest, MemNexus, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, type Pagination, type Pattern, type PaymentMethod, type PortalSessionResponse, type PrecomputedMemoryFields, type Recommendation, type RelatedMemoryResult, SdkError, type SearchFailureResponse, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, type ServiceCheck, type Subscription, type SystemAlert, type TemporalMetadata, type Topic, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage };
|