Skip to content

@codesoul-co/hypha-memory / operations

Using this module

Use the Operations module for using the public contracts and operations for this capability boundary. It exports 20 interfaces.

Import from the package entrypoint

ts
import type {
  ManagedMemoryDeleteRequest,
  ManagedMemoryDeleteResult,
  ManagedMemorySearchRequest,
  ManagedMemorySearchResult,
  ManagedMemoryUpdateRequest,
  ManagedMemoryWriteResult,
  MemoryAddRequest,
  MemoryGetRequest,
} from '@codesoul-co/hypha-memory';

// The complete export list is documented below.

Usage patterns

  • Use the 20 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.

Public exports

SymbolKindSignatureDescription
ManagedMemoryDeleteRequestinterfaceinterface ManagedMemoryDeleteRequestManaged Memory Delete Request interface with 8 public fields or methods.
ManagedMemoryDeleteResultinterfaceinterface ManagedMemoryDeleteResultManaged Memory Delete Result interface with 6 public fields or methods.
ManagedMemorySearchRequestinterfaceinterface ManagedMemorySearchRequestManaged Memory Search Request interface with 20 public fields or methods.
ManagedMemorySearchResultinterfaceinterface ManagedMemorySearchResultManaged Memory Search Result interface with 7 public fields or methods.
ManagedMemoryUpdateRequestinterfaceinterface ManagedMemoryUpdateRequestManaged Memory Update Request interface with 8 public fields or methods.
ManagedMemoryWriteResultinterfaceinterface ManagedMemoryWriteResultManaged Memory Write Result interface with 7 public fields or methods.
MemoryAddRequestinterfaceinterface MemoryAddRequestMemory Add Request interface with 13 public fields or methods.
MemoryGetRequestinterfaceinterface MemoryGetRequestMemory Get Request interface with 5 public fields or methods.
MemoryHistoryRequestinterfaceinterface MemoryHistoryRequestMemory History Request interface with 5 public fields or methods.
MemoryIndexJobRefinterfaceinterface MemoryIndexJobRefMemory Index Job Ref interface with 2 public fields or methods.
MemoryListRequestinterfaceinterface MemoryListRequestMemory List Request interface with 5 public fields or methods.
MemoryListResultinterfaceinterface MemoryListResult extends PaginationResultMemory List Result interface with 3 public fields or methods.
MemoryManagementProviderinterfaceinterface MemoryManagementProviderMemory Management Provider interface with 11 public fields or methods.
MemoryPatchinterfaceinterface MemoryPatchMemory Patch interface with 8 public fields or methods.
MemoryRejectedIteminterfaceinterface MemoryRejectedItemMemory Rejected Item interface with 3 public fields or methods.
MemorySearchFilterinterfaceinterface MemorySearchFilterMemory Search Filter interface with 18 public fields or methods.
MemoryVersioninterfaceinterface MemoryVersionMemory Version interface with 4 public fields or methods.
PaginationRequestinterfaceinterface PaginationRequestPagination Request interface with 7 public fields or methods.
PaginationResultinterfaceinterface PaginationResultPagination Result interface with 2 public fields or methods.
ProviderHealthinterfaceinterface ProviderHealthProvider Health interface with 5 public fields or methods.

ManagedMemoryDeleteRequest

Managed Memory Delete Request interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryDeleteRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemoryDeleteRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    memoryIds?: string[];
    filter?: MemorySearchFilter;
    mode: 'soft' | 'hard' | 'compliance';
    reason: string;
    idempotencyKey?: string;
}

Contract members

MemberKindSignatureDescription
filterpropertyfilter?: MemorySearchFilterPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryIdspropertymemoryIds?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode: "soft" | "hard" | "compliance"Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemoryDeleteResult

Managed Memory Delete Result interface with 6 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryDeleteResult } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemoryDeleteResult {
    operationId: string;
    status: 'completed' | 'partial' | 'rejected' | 'failed';
    deletedMemoryIds: string[];
    pendingProviderIds?: string[];
    events?: string[];
    warnings?: string[];
}

Contract members

MemberKindSignatureDescription
deletedMemoryIdspropertydeletedMemoryIds: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
eventspropertyevents?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
pendingProviderIdspropertypendingProviderIds?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "rejected" | "failed" | "partial"Public property; its type, readonly modifier and optionality are shown in the signature.
warningspropertywarnings?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemorySearchRequest

Managed Memory Search Request interface with 20 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemorySearchRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemorySearchRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    profileRef: MemoryContractSpecRef;
    query?: string;
    queryEmbedding?: number[];
    filters?: MemorySearchFilter;
    memoryTypes?: ManagedMemoryType[];
    mode?: 'structured' | 'semantic' | 'keyword' | 'hybrid' | 'graph';
    topK?: number;
    scoreThreshold?: number;
    includeDormant?: boolean;
    includeSuperseded?: boolean;
    includeContent?: boolean;
    includeProvenance?: boolean;
    includeRelations?: boolean;
    rerank?: boolean;
    updateAccessStats?: boolean;
    pagination?: PaginationRequest;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
filterspropertyfilters?: MemorySearchFilterPublic property; its type, readonly modifier and optionality are shown in the signature.
includeContentpropertyincludeContent?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeDormantpropertyincludeDormant?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeProvenancepropertyincludeProvenance?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeRelationspropertyincludeRelations?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeSupersededpropertyincludeSuperseded?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryTypespropertymemoryTypes?: ManagedMemoryType[]Public property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode?: "structured" | "hybrid" | "semantic" | "keyword" | "graph"Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
paginationpropertypagination?: PaginationRequestPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
profileRefpropertyprofileRef: MemoryContractSpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
querypropertyquery?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
queryEmbeddingpropertyqueryEmbedding?: number[]Public property; its type, readonly modifier and optionality are shown in the signature.
rerankpropertyrerank?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
scoreThresholdpropertyscoreThreshold?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
topKpropertytopK?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
updateAccessStatspropertyupdateAccessStats?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemorySearchResult

Managed Memory Search Result interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemorySearchResult } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemorySearchResult {
    record: ManagedMemoryRecord;
    score?: number;
    semanticScore?: number;
    keywordScore?: number;
    graphScore?: number;
    rerankScore?: number;
    reasons?: string[];
}

Contract members

MemberKindSignatureDescription
graphScorepropertygraphScore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
keywordScorepropertykeywordScore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonspropertyreasons?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
recordpropertyrecord: ManagedMemoryRecord<unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
rerankScorepropertyrerankScore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
scorepropertyscore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
semanticScorepropertysemanticScore?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemoryUpdateRequest

Managed Memory Update Request interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryUpdateRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemoryUpdateRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    memoryId: string;
    expectedRevision?: number;
    patch: MemoryPatch;
    reason: string;
    idempotencyKey?: string;
}

Contract members

MemberKindSignatureDescription
expectedRevisionpropertyexpectedRevision?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryIdpropertymemoryId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
patchpropertypatch: MemoryPatchPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemoryWriteResult

Managed Memory Write Result interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryWriteResult } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ManagedMemoryWriteResult {
    operationId: string;
    status: 'committed' | 'queued' | 'reused' | 'rejected' | 'partial' | 'failed';
    records: ManagedMemoryRecord[];
    rejectedItems?: MemoryRejectedItem[];
    indexJobs?: MemoryIndexJobRef[];
    events?: string[];
    warnings?: string[];
}

Contract members

MemberKindSignatureDescription
eventspropertyevents?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
indexJobspropertyindexJobs?: MemoryIndexJobRef[]Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
recordspropertyrecords: ManagedMemoryRecord<unknown>[]Public property; its type, readonly modifier and optionality are shown in the signature.
rejectedItemspropertyrejectedItems?: MemoryRejectedItem[]Public property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "rejected" | "queued" | "failed" | "committed" | "reused" | "partial"Public property; its type, readonly modifier and optionality are shown in the signature.
warningspropertywarnings?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryAddRequest

Memory Add Request interface with 13 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryAddRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryAddRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    input: unknown;
    inputType?: 'message' | 'text' | 'structured' | 'artifact_ref' | 'event_ref';
    memoryType?: ManagedMemoryType;
    source: MemorySource;
    extractionMode?: 'none' | 'native' | 'provider' | 'custom';
    writeMode?: 'sync' | 'async';
    idempotencyKey?: string;
    profileRef: MemoryContractSpecRef;
    tags?: string[];
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
extractionModepropertyextractionMode?: "none" | "provider" | "custom" | "native"Public property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
inputpropertyinput: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
inputTypepropertyinputType?: "structured" | "text" | "message" | "artifact_ref" | "event_ref"Public property; its type, readonly modifier and optionality are shown in the signature.
memoryTypepropertymemoryType?: ManagedMemoryTypePublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
profileRefpropertyprofileRef: MemoryContractSpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
sourcepropertysource: MemorySourcePublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
writeModepropertywriteMode?: "sync" | "async"Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryGetRequest

Memory Get Request interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryGetRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryGetRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    memoryId: string;
    includeHistory?: boolean;
}

Contract members

MemberKindSignatureDescription
includeHistorypropertyincludeHistory?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryIdpropertymemoryId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryHistoryRequest

Memory History Request interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryHistoryRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryHistoryRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    memoryId: string;
    pagination?: PaginationRequest;
}

Contract members

MemberKindSignatureDescription
memoryIdpropertymemoryId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
paginationpropertypagination?: PaginationRequestPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryIndexJobRef

Memory Index Job Ref interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryIndexJobRef } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryIndexJobRef {
    id: string;
    state: 'pending' | 'processing' | 'completed' | 'partial' | 'failed';
}

Contract members

MemberKindSignatureDescription
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statepropertystate: "completed" | "failed" | "processing" | "pending" | "partial"Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryListRequest

Memory List Request interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryListRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryListRequest {
    operationId: string;
    principal: MemoryPrincipal;
    scope: ManagedMemoryScope;
    filter?: MemorySearchFilter;
    pagination?: PaginationRequest;
}

Contract members

MemberKindSignatureDescription
filterpropertyfilter?: MemorySearchFilterPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
paginationpropertypagination?: PaginationRequestPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: MemoryPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryListResult

Memory List Result interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryListResult } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryListResult extends PaginationResult {
    records: ManagedMemoryRecord[];
}

Contract members

MemberKindSignatureDescription
hasMorepropertyhasMore: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
nextCursorpropertynextCursor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
recordspropertyrecords: ManagedMemoryRecord<unknown>[]Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryManagementProvider

Memory Management Provider interface with 11 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryManagementProvider } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryManagementProvider {
    readonly id: string;
    capabilities(): Promise<import('./contracts').MemoryManagementCapabilities>;
    add(request: MemoryAddRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>;
    search(request: ManagedMemorySearchRequest, signal?: AbortSignal): Promise<ManagedMemorySearchResult[]>;
    get(request: MemoryGetRequest, signal?: AbortSignal): Promise<ManagedMemoryRecord | null>;
    list(request: MemoryListRequest, signal?: AbortSignal): Promise<MemoryListResult>;
    update(request: ManagedMemoryUpdateRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>;
    delete(request: ManagedMemoryDeleteRequest, signal?: AbortSignal): Promise<ManagedMemoryDeleteResult>;
    history?(request: MemoryHistoryRequest, signal?: AbortSignal): Promise<MemoryVersion[]>;
    health(): Promise<ProviderHealth>;
    close?(): Promise<void>;
}

Contract members

MemberKindSignatureDescription
addmethodadd(request: MemoryAddRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>Public method; parameters and return type are shown in the signature.
capabilitiesmethodcapabilities(): Promise<import("./contracts").MemoryManagementCapabilities>Public method; parameters and return type are shown in the signature.
closemethodclose?(): Promise<void>Public method; parameters and return type are shown in the signature.
deletemethoddelete(request: ManagedMemoryDeleteRequest, signal?: AbortSignal): Promise<ManagedMemoryDeleteResult>Public method; parameters and return type are shown in the signature.
getmethodget(request: MemoryGetRequest, signal?: AbortSignal): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
historymethodhistory?(request: MemoryHistoryRequest, signal?: AbortSignal): Promise<MemoryVersion[]>Public method; parameters and return type are shown in the signature.
idpropertyreadonly id: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
listmethodlist(request: MemoryListRequest, signal?: AbortSignal): Promise<MemoryListResult>Public method; parameters and return type are shown in the signature.
searchmethodsearch(request: ManagedMemorySearchRequest, signal?: AbortSignal): Promise<ManagedMemorySearchResult[]>Public method; parameters and return type are shown in the signature.
updatemethodupdate(request: ManagedMemoryUpdateRequest, signal?: AbortSignal): Promise<ManagedMemoryWriteResult>Public method; parameters and return type are shown in the signature.

MemoryPatch

Memory Patch interface with 8 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryPatch } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryPatch {
    content?: unknown;
    canonicalText?: string;
    summary?: string;
    confidence?: number;
    importance?: number;
    tags?: string[];
    status?: Exclude<MemoryStatus, 'deleted'>;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
canonicalTextpropertycanonicalText?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
confidencepropertyconfidence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
contentpropertycontent?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
importancepropertyimportance?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus?: "failed" | "invalidated" | "deletion_pending" | "active" | "pending" | "superseded" | "dormant"Public property; its type, readonly modifier and optionality are shown in the signature.
summarypropertysummary?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryRejectedItem

Memory Rejected Item interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryRejectedItem } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryRejectedItem {
    itemId?: string;
    reason: string;
    error?: NormalizedMemoryError;
}

Contract members

MemberKindSignatureDescription
errorpropertyerror?: NormalizedMemoryErrorPublic property; its type, readonly modifier and optionality are shown in the signature.
itemIdpropertyitemId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

MemorySearchFilter

Memory Search Filter interface with 18 public fields or methods.

  • Kind: interface
  • Import: import type { MemorySearchFilter } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemorySearchFilter {
    ids?: string[];
    excludeIds?: string[];
    statuses?: MemoryStatus[];
    tagsAny?: string[];
    tagsAll?: string[];
    createdAfter?: string;
    createdBefore?: string;
    updatedAfter?: string;
    expiresAfter?: string;
    confidenceGte?: number;
    importanceGte?: number;
    sourceTypes?: MemorySource['type'][];
    entityIds?: string[];
    visibility?: ManagedMemoryRecord['visibility'][];
    verifiedOnly?: boolean;
    conflictFreeOnly?: boolean;
    canonicalKeys?: string[];
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
canonicalKeyspropertycanonicalKeys?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
confidenceGtepropertyconfidenceGte?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
conflictFreeOnlypropertyconflictFreeOnly?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAfterpropertycreatedAfter?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
createdBeforepropertycreatedBefore?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
entityIdspropertyentityIds?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
excludeIdspropertyexcludeIds?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
expiresAfterpropertyexpiresAfter?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idspropertyids?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
importanceGtepropertyimportanceGte?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
sourceTypespropertysourceTypes?: ("human_review" | "artifact" | "system" | "derived" | "user_message" | "assistant_message" | "tool_result" | "workflow_state" | "import")[]Public property; its type, readonly modifier and optionality are shown in the signature.
statusespropertystatuses?: MemoryStatus[]Public property; its type, readonly modifier and optionality are shown in the signature.
tagsAllpropertytagsAll?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
tagsAnypropertytagsAny?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAfterpropertyupdatedAfter?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
verifiedOnlypropertyverifiedOnly?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
visibilitypropertyvisibility?: ("workspace" | "session" | "private" | "shared" | "tenant")[]Public property; its type, readonly modifier and optionality are shown in the signature.

MemoryVersion

Memory Version interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryVersion } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface MemoryVersion {
    memoryId: string;
    versionId: string;
    revision: number;
    record: ManagedMemoryRecord;
}

Contract members

MemberKindSignatureDescription
memoryIdpropertymemoryId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
recordpropertyrecord: ManagedMemoryRecord<unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
revisionpropertyrevision: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
versionIdpropertyversionId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

PaginationRequest

Pagination Request interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { PaginationRequest } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface PaginationRequest {
    cursor?: string;
    limit?: number;
    maxPages?: number;
    maxItems?: number;
    maxBytes?: number;
    maxDurationMs?: number;
    maxCalls?: number;
}

Contract members

MemberKindSignatureDescription
cursorpropertycursor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
limitpropertylimit?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxBytespropertymaxBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxCallspropertymaxCalls?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxDurationMspropertymaxDurationMs?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxItemspropertymaxItems?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
maxPagespropertymaxPages?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

PaginationResult

Pagination Result interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { PaginationResult } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface PaginationResult {
    nextCursor?: string;
    hasMore: boolean;
}

Contract members

MemberKindSignatureDescription
hasMorepropertyhasMore: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
nextCursorpropertynextCursor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ProviderHealth

Provider Health interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { ProviderHealth } from '@codesoul-co/hypha-memory';
  • Source module: operations

Declaration

text
export interface ProviderHealth {
    status: 'healthy' | 'degraded' | 'unhealthy' | 'unknown';
    checkedAt: string;
    latencyMs?: number;
    message?: string;
    details?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
checkedAtpropertycheckedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
detailspropertydetails?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
latencyMspropertylatencyMs?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
messagepropertymessage?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "healthy" | "degraded" | "unhealthy" | "unknown"Public property; its type, readonly modifier and optionality are shown in the signature.