@anuma/sdk 3.9.6 → 3.10.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.
@@ -5674,6 +5674,15 @@ declare class VaultMemory extends Model {
5674
5674
  archivedAt: number | null;
5675
5675
  /** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
5676
5676
  trustTier: string | null;
5677
+ /** People Nearby visibility: 'private' | 'public'. Null on legacy rows, and
5678
+ * any unrecognised value, read as 'private' — never published without opt-in. */
5679
+ visibility: string | null;
5680
+ /** Owner opted this memory into their own digital twin (twin-scoped only). */
5681
+ twinOptIn: boolean | null;
5682
+ /** Unix ms when visibility last became non-private; null while private. */
5683
+ publishedAt: number | null;
5684
+ /** Reserved coarse-geohash slot for landmark/Trail memories. */
5685
+ geohash: string | null;
5677
5686
  createdAt: Date;
5678
5687
  updatedAt: Date;
5679
5688
  isDeleted: boolean;
@@ -6966,6 +6975,20 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
6966
6975
  quarantined: QuarantinedMemoryInfo[];
6967
6976
  }>;
6968
6977
 
6978
+ /**
6979
+ * People Nearby cross-user visibility. ORTHOGONAL to `scope` (model access):
6980
+ * - `private`: local-only (default; null column grandfathered as private)
6981
+ * - `public`: embedding + plaintext may be published (compatibility matching,
6982
+ * profile display, discovery answers, digital-twin prompts)
6983
+ *
6984
+ * TWO TIERS ONLY (decided 2026-07-27). An earlier design had a middle
6985
+ * `matchable` tier that published a memory's embedding while keeping its text
6986
+ * on-device; it was dropped, so a memory either never leaves the device or is
6987
+ * published with its content. Any unrecognised stored value — including a
6988
+ * `matchable` row written by a pre-release build — reads as `private`, which is
6989
+ * the fail-safe direction: it un-publishes rather than exposes.
6990
+ */
6991
+ type VaultMemoryVisibility = "private" | "public";
6969
6992
  interface StoredVaultMemory {
6970
6993
  /** WatermelonDB internal ID */
6971
6994
  uniqueId: string;
@@ -7024,6 +7047,15 @@ interface StoredVaultMemory {
7024
7047
  archivedAt: number | null;
7025
7048
  /** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
7026
7049
  trustTier: string | null;
7050
+ /** People Nearby cross-user visibility. Null column reads as "private". */
7051
+ visibility: VaultMemoryVisibility;
7052
+ /** Owner opted this memory into their own digital twin even when otherwise
7053
+ * private (twin-scoped only — never indexed for matching, never displayed). */
7054
+ twinOptIn: boolean;
7055
+ /** Unix ms when visibility last became non-private; null while private. */
7056
+ publishedAt: number | null;
7057
+ /** Reserved coarse-geohash slot for landmark/Trail memories. */
7058
+ geohash: string | null;
7027
7059
  createdAt: Date;
7028
7060
  updatedAt: Date;
7029
7061
  isDeleted: boolean;
@@ -7083,6 +7115,15 @@ interface CreateVaultMemoryOptions {
7083
7115
  /** Tier-0 security (PR3) — set "quarantined" when the injection screen
7084
7116
  * flagged this fact. Omit for the default (null/trusted). */
7085
7117
  trustTier?: string;
7118
+ /** People Nearby cross-user visibility. Defaults to "private" if omitted —
7119
+ * creation NEVER publishes; use {@link setMemoryVisibilityOp} so the
7120
+ * published_at bookkeeping stays consistent. Accepted here only so bulk
7121
+ * restore/import paths can round-trip an existing visibility. */
7122
+ visibility?: VaultMemoryVisibility;
7123
+ /** Round-trip slot for restore/import; see {@link visibility}. */
7124
+ publishedAt?: number | null;
7125
+ /** Coarse geohash for location-tagged memory sources (landmarks/Trail). */
7126
+ geohash?: string;
7086
7127
  }
7087
7128
  interface UpdateVaultMemoryOptions {
7088
7129
  content: string;
@@ -7205,6 +7246,12 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
7205
7246
  * Used by a "memory history" view to render retired facts.
7206
7247
  */
7207
7248
  includeSuperseded?: boolean;
7249
+ /**
7250
+ * Filter by People Nearby visibility. Legacy rows with a NULL column
7251
+ * count as "private". Used by the publish reconciler to fetch the
7252
+ * published set to diff against the server index.
7253
+ */
7254
+ visibility?: VaultMemoryVisibility[];
7208
7255
  }): Promise<StoredVaultMemory[]>;
7209
7256
  /**
7210
7257
  * Return content-free {@link RankableVaultMemory} projections for recall
@@ -7319,6 +7366,24 @@ declare function setMemoryEntitiesOp(ctx: VaultMemoryOperationsContext, memoryId
7319
7366
  * are left in place until the re-extraction replaces them. Preserves `updated_at`.
7320
7367
  */
7321
7368
  declare function clearMemoryTopicsOverrideOp(ctx: VaultMemoryOperationsContext, memoryId: string): Promise<boolean>;
7369
+ /**
7370
+ * Set a memory's People Nearby visibility (and optionally its twin opt-in).
7371
+ *
7372
+ * This is the ONLY sanctioned write path for `visibility` — it keeps the
7373
+ * `published_at` bookkeeping consistent: transitioning to `public`
7374
+ * stamps `published_at` (kept if already set); transitioning to `private`
7375
+ * clears it (revoke). The server index remains the authority for what IS
7376
+ * published — this records the user's intent for the reconciler to act on.
7377
+ *
7378
+ * Preserves `updated_at`: a visibility change is metadata, not a
7379
+ * re-observation, so it must not inflate the recency multiplier (mirrors
7380
+ * {@link setMemoryEntitiesOp}).
7381
+ */
7382
+ declare function setMemoryVisibilityOp(ctx: VaultMemoryOperationsContext, id: string, opts: {
7383
+ visibility: VaultMemoryVisibility;
7384
+ /** If provided, sets the twin opt-in flag alongside the visibility. */
7385
+ twinOptIn?: boolean;
7386
+ }): Promise<StoredVaultMemory | null>;
7322
7387
  declare function deleteVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string): Promise<boolean>;
7323
7388
  /**
7324
7389
  * Mark a memory as superseded by a newer one (A2 write-time supersession).
@@ -7701,6 +7766,21 @@ interface CreateAutoExtractorOptions {
7701
7766
  */
7702
7767
  onFallback?: (reason: ConsolidationFallbackReason) => void;
7703
7768
  };
7769
+ /**
7770
+ * Tier-0 security (PR5) — enable the optional SECOND-layer LLM injection
7771
+ * classifier over the candidates the deterministic screen passed as clean.
7772
+ * Presence is the switch, so `injectionClassifier: {}` is how a client turns
7773
+ * it on. Auth is NOT configured here — like `consolidate`, the call reuses
7774
+ * the `extract` credentials and defaults to its `baseUrl`. See
7775
+ * `injectionClassifier.ts` for the safety posture and the defaults.
7776
+ */
7777
+ injectionClassifier?: {
7778
+ /** Portal base URL for classifier calls. Default: the `extract` options' `baseUrl`. */
7779
+ baseUrl?: string;
7780
+ model?: string;
7781
+ maxCandidates?: number;
7782
+ totalTimeoutMs?: number;
7783
+ };
7704
7784
  /** Per-fact event — fires once per memory written. */
7705
7785
  onMemoryExtracted?: (event: MemoryExtractedEvent) => void;
7706
7786
  /**
@@ -9950,8 +10030,13 @@ declare class WatermelonChatStorageAdapter implements ChatStorageAdapter {
9950
10030
  * backfill (null = legacy/untyped, active, un-screened — content is
9951
10031
  * encrypted so in-migration classification is impossible; NULL = zero-risk,
9952
10032
  * exact embedding_model precedent)
10033
+ * - v41: Added visibility, twin_opt_in, published_at, geohash columns to
10034
+ * memory_vault for the People Nearby cross-user visibility axis. Visibility
10035
+ * is TWO-tier (`private | public`); null — and any unrecognised value —
10036
+ * reads as 'private', so nothing pre-existing is ever published without an
10037
+ * explicit visibility write
9953
10038
  */
9954
- declare const SDK_SCHEMA_VERSION = 40;
10039
+ declare const SDK_SCHEMA_VERSION = 41;
9955
10040
  /**
9956
10041
  * Combined WatermelonDB schema for all SDK storage modules.
9957
10042
  *
@@ -10036,6 +10121,7 @@ declare const sdkSchema: Readonly<{
10036
10121
  * - v37 → v38: Added `topics_extracted_version` column to memory_vault (extraction-logic version; null read as 0 so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows)
10037
10122
  * - v38 → v39: Added `last_observed_at` column to memory_vault (C3 re-observation watermark; stamped on retain merge, distinct from updated_at)
10038
10123
  * - v39 → v40: Added `fact_type`, `archived_at`, `trust_tier` columns to memory_vault for typed memory + decay + Tier-0 security (all nullable + plaintext, NULL backfill)
10124
+ * - v40 → v41: Added `visibility`, `twin_opt_in`, `published_at`, `geohash` columns to memory_vault for the People Nearby cross-user visibility axis (two-tier `private | public`; null/unknown grandfathered as 'private')
10039
10125
  */
10040
10126
  declare const sdkMigrations: Readonly<{
10041
10127
  validated: true;
@@ -14184,4 +14270,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
14184
14270
  */
14185
14271
  declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
14186
14272
 
14187
- export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
14273
+ export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
@@ -137,6 +137,7 @@ import {
137
137
  searchMessagesOp,
138
138
  searchVaultMemories,
139
139
  setMemoryEntitiesOp,
140
+ setMemoryVisibilityOp,
140
141
  shouldChunkMessage,
141
142
  stampTopicsExtractedAtOp,
142
143
  stripToolCalls,
@@ -155,7 +156,7 @@ import {
155
156
  updateVaultMemoryOp,
156
157
  useEncryption,
157
158
  vaultMemoryToStored
158
- } from "./chunk-YGCJX5YW.mjs";
159
+ } from "./chunk-SCFNOAWH.mjs";
159
160
  import {
160
161
  PiiRedactor,
161
162
  createStreamingDeAnonymizer,
@@ -6735,6 +6736,18 @@ __decorateClass([
6735
6736
  __decorateClass([
6736
6737
  field3("trust_tier")
6737
6738
  ], VaultMemory.prototype, "trustTier", 2);
6739
+ __decorateClass([
6740
+ field3("visibility")
6741
+ ], VaultMemory.prototype, "visibility", 2);
6742
+ __decorateClass([
6743
+ field3("twin_opt_in")
6744
+ ], VaultMemory.prototype, "twinOptIn", 2);
6745
+ __decorateClass([
6746
+ field3("published_at")
6747
+ ], VaultMemory.prototype, "publishedAt", 2);
6748
+ __decorateClass([
6749
+ field3("geohash")
6750
+ ], VaultMemory.prototype, "geohash", 2);
6738
6751
  __decorateClass([
6739
6752
  readonly2,
6740
6753
  date3("created_at")
@@ -7987,18 +8000,16 @@ function createAutoExtractor(options) {
7987
8000
  } catch {
7988
8001
  }
7989
8002
  };
7990
- const consolidateBaseUrl = options.consolidate?.baseUrl ?? options.extract.baseUrl;
7991
- const consolidateOptions = options.consolidate ? {
7992
- ...options.extract.apiKey !== void 0 && { apiKey: options.extract.apiKey },
7993
- ...options.extract.getToken !== void 0 && { getToken: options.extract.getToken },
7994
- ...consolidateBaseUrl !== void 0 && { baseUrl: consolidateBaseUrl },
7995
- ...options.consolidate.model !== void 0 && { model: options.consolidate.model },
7996
- ...options.consolidate.onFallback !== void 0 && {
7997
- onFallback: options.consolidate.onFallback
7998
- }
7999
- // PII redaction is inherited from `extract.piiRedaction` inside
8000
- // extractAndRetain (so direct callers are covered too), not copied here.
8001
- } : void 0;
8003
+ const subPassAuth = (baseUrlOverride) => {
8004
+ const baseUrl = baseUrlOverride ?? options.extract.baseUrl;
8005
+ return {
8006
+ ...options.extract.apiKey !== void 0 && { apiKey: options.extract.apiKey },
8007
+ ...options.extract.getToken !== void 0 && { getToken: options.extract.getToken },
8008
+ ...baseUrl !== void 0 && { baseUrl }
8009
+ };
8010
+ };
8011
+ const consolidateOptions = options.consolidate ? { ...options.consolidate, ...subPassAuth(options.consolidate.baseUrl) } : void 0;
8012
+ const injectionClassifierOptions = options.injectionClassifier ? { ...options.injectionClassifier, ...subPassAuth(options.injectionClassifier.baseUrl) } : void 0;
8002
8013
  if (options.retainCtx.vaultCtx.entityCtx && !options.entityCtx) {
8003
8014
  getLogger().warn(
8004
8015
  "[memory/extract] retainCtx.vaultCtx.entityCtx is set but extractor was created without `entityCtx` \u2014 W5 graph lane will receive no writes"
@@ -8052,6 +8063,9 @@ function createAutoExtractor(options) {
8052
8063
  ...options.scope !== void 0 && { scope: options.scope },
8053
8064
  ...options.folderId !== void 0 && { folderId: options.folderId },
8054
8065
  ...consolidateOptions !== void 0 && { consolidateOptions },
8066
+ ...injectionClassifierOptions !== void 0 && {
8067
+ injectionClassifier: injectionClassifierOptions
8068
+ },
8055
8069
  ...options.onCandidateFailed && {
8056
8070
  onCandidateFailed: (candidate, error) => options.onCandidateFailed?.({ candidate, error, conversationId })
8057
8071
  },
@@ -13752,7 +13766,7 @@ __decorateClass([
13752
13766
  ], VaultFolder.prototype, "context", 2);
13753
13767
 
13754
13768
  // src/lib/db/schema.ts
13755
- var SDK_SCHEMA_VERSION = 40;
13769
+ var SDK_SCHEMA_VERSION = 41;
13756
13770
  var sdkSchema = appSchema2({
13757
13771
  version: SDK_SCHEMA_VERSION,
13758
13772
  tables: [
@@ -13911,7 +13925,26 @@ var sdkSchema = appSchema2({
13911
13925
  // Tier-0 security (PR3) — "quarantined" when the write-time injection
13912
13926
  // screen flagged this fact, else null/"trusted". Indexed so the recall
13913
13927
  // choke point can default-exclude quarantined rows.
13914
- { name: "trust_tier", type: "string", isOptional: true, isIndexed: true }
13928
+ { name: "trust_tier", type: "string", isOptional: true, isIndexed: true },
13929
+ // People Nearby cross-user visibility axis — ORTHOGONAL to `scope`
13930
+ // (which partitions by MODEL access: private vs shared providers).
13931
+ // TWO tiers: 'private' (or null, or any unrecognised value —
13932
+ // grandfathered / fail-safe) = local-only; 'public' = embedding +
13933
+ // plaintext may be published (matching/profile/discovery/twin).
13934
+ // The server index is the authority for what IS published; this
13935
+ // column records the user's intent.
13936
+ { name: "visibility", type: "string", isOptional: true, isIndexed: true },
13937
+ // When true, the owner opted this memory into their own digital twin
13938
+ // even if it is otherwise private (twin-scoped upload only — never
13939
+ // indexed for matching, never displayed). Null/false = follows visibility.
13940
+ { name: "twin_opt_in", type: "boolean", isOptional: true },
13941
+ // Unix ms when visibility last became non-private. Null when private
13942
+ // (cleared on revoke) — the publish reconciler uses it to diff local
13943
+ // intent against the server index.
13944
+ { name: "published_at", type: "number", isOptional: true },
13945
+ // Reserved geo slot (coarse geohash) for landmark/Trail memories.
13946
+ // Unused at launch; populated by location-tagged memory sources.
13947
+ { name: "geohash", type: "string", isOptional: true }
13915
13948
  ]
13916
13949
  }),
13917
13950
  // Entity table — canonical names extracted from auto-extraction (W5).
@@ -14586,6 +14619,24 @@ var sdkMigrations = schemaMigrations2({
14586
14619
  ]
14587
14620
  })
14588
14621
  ]
14622
+ },
14623
+ // v40 -> v41: People Nearby visibility axis on memory_vault. Existing rows
14624
+ // keep visibility NULL — read as 'private' (nothing pre-existing is ever
14625
+ // published without an explicit user action; the consent posture requires
14626
+ // opt-in, never a retroactive default).
14627
+ {
14628
+ toVersion: 41,
14629
+ steps: [
14630
+ addColumns2({
14631
+ table: "memory_vault",
14632
+ columns: [
14633
+ { name: "visibility", type: "string", isOptional: true, isIndexed: true },
14634
+ { name: "twin_opt_in", type: "boolean", isOptional: true },
14635
+ { name: "published_at", type: "number", isOptional: true },
14636
+ { name: "geohash", type: "string", isOptional: true }
14637
+ ]
14638
+ })
14639
+ ]
14589
14640
  }
14590
14641
  ]
14591
14642
  });
@@ -24532,6 +24583,7 @@ export {
24532
24583
  serializeJsx,
24533
24584
  setLogger,
24534
24585
  setMemoryEntitiesOp,
24586
+ setMemoryVisibilityOp,
24535
24587
  settingsStorageSchema,
24536
24588
  shouldChunkMessage,
24537
24589
  shouldRefreshTools,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-YGCJX5YW.mjs";
3
+ } from "./chunk-SCFNOAWH.mjs";
4
4
  import "./chunk-BOY27A2C.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
@@ -16239,6 +16239,19 @@ async function decryptVaultMemoryFields(memory, address, signMessage, embeddedWa
16239
16239
  }
16240
16240
 
16241
16241
  // src/lib/db/memoryVault/operations.ts
16242
+ function visibilityOrPrivate(value) {
16243
+ return value === "public" ? value : "private";
16244
+ }
16245
+ var NON_PRIVATE_VISIBILITIES = ["public"];
16246
+ function visibilityConditions(requested) {
16247
+ if (!requested?.length) return [];
16248
+ if (!requested.includes("private")) {
16249
+ return [import_watermelondb3.Q.where("visibility", import_watermelondb3.Q.oneOf([...requested]))];
16250
+ }
16251
+ const excluded = NON_PRIVATE_VISIBILITIES.filter((v) => !requested.includes(v));
16252
+ if (excluded.length === 0) return [];
16253
+ return [import_watermelondb3.Q.or(import_watermelondb3.Q.where("visibility", null), import_watermelondb3.Q.where("visibility", import_watermelondb3.Q.notIn(excluded)))];
16254
+ }
16242
16255
  function isOwnedByCtxUser(ctx, record) {
16243
16256
  return ctx.userId === void 0 || record.userId === ctx.userId;
16244
16257
  }
@@ -16300,6 +16313,10 @@ function vaultMemoryToStoredRaw(memory) {
16300
16313
  factType: memory.factType ?? null,
16301
16314
  archivedAt: memory.archivedAt ?? null,
16302
16315
  trustTier: memory.trustTier ?? null,
16316
+ visibility: visibilityOrPrivate(memory.visibility),
16317
+ twinOptIn: memory.twinOptIn ?? false,
16318
+ publishedAt: memory.publishedAt ?? null,
16319
+ geohash: memory.geohash ?? null,
16303
16320
  createdAt: memory.createdAt,
16304
16321
  updatedAt: memory.updatedAt,
16305
16322
  isDeleted: memory.isDeleted
@@ -16347,6 +16364,14 @@ async function createVaultMemoryOp(ctx, opts) {
16347
16364
  if (opts.trustTier !== void 0) {
16348
16365
  record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
16349
16366
  }
16367
+ record._setRaw("visibility", opts.visibility ?? "private");
16368
+ record._setRaw(
16369
+ "published_at",
16370
+ opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
16371
+ );
16372
+ if (opts.geohash !== void 0) {
16373
+ record._setRaw("geohash", opts.geohash);
16374
+ }
16350
16375
  });
16351
16376
  });
16352
16377
  return vaultMemoryToStored(created, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
@@ -16493,6 +16518,14 @@ async function createVaultMemoriesBatchOp(ctx, optionsArray) {
16493
16518
  if (opts.trustTier !== void 0) {
16494
16519
  record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
16495
16520
  }
16521
+ record._setRaw("visibility", opts.visibility ?? "private");
16522
+ record._setRaw(
16523
+ "published_at",
16524
+ opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
16525
+ );
16526
+ if (opts.geohash !== void 0) {
16527
+ record._setRaw("geohash", opts.geohash);
16528
+ }
16496
16529
  })
16497
16530
  );
16498
16531
  await ctx.database.batch(...prepared);
@@ -16556,6 +16589,10 @@ function vaultMemoryRawToStoredRaw(raw) {
16556
16589
  factType: raw.fact_type ?? null,
16557
16590
  archivedAt: raw.archived_at ?? null,
16558
16591
  trustTier: raw.trust_tier ?? null,
16592
+ visibility: visibilityOrPrivate(raw.visibility),
16593
+ twinOptIn: raw.twin_opt_in === true || raw.twin_opt_in === 1,
16594
+ publishedAt: raw.published_at ?? null,
16595
+ geohash: raw.geohash ?? null,
16559
16596
  createdAt: new Date(raw.created_at),
16560
16597
  updatedAt: new Date(raw.updated_at),
16561
16598
  isDeleted: raw.is_deleted === true || raw.is_deleted === 1
@@ -16572,6 +16609,7 @@ async function getAllVaultMemoriesOp(ctx, options) {
16572
16609
  const conditions = [
16573
16610
  ...baseVaultConditions(ctx, options),
16574
16611
  ...options?.scopes?.length ? [import_watermelondb3.Q.where("scope", import_watermelondb3.Q.oneOf(options.scopes))] : [],
16612
+ ...visibilityConditions(options?.visibility),
16575
16613
  ...options?.folderId !== void 0 ? [import_watermelondb3.Q.where("folder_id", options.folderId)] : [],
16576
16614
  ...options?.factTypes?.length ? [import_watermelondb3.Q.where("fact_type", import_watermelondb3.Q.oneOf(options.factTypes))] : [],
16577
16615
  import_watermelondb3.Q.sortBy(options?.since ? "updated_at" : "created_at", import_watermelondb3.Q.desc),
@@ -16785,6 +16823,38 @@ async function updateVaultMemoryOp(ctx, id, opts) {
16785
16823
  return null;
16786
16824
  }
16787
16825
  }
16826
+ async function setMemoryVisibilityOp(ctx, id, opts) {
16827
+ let record;
16828
+ try {
16829
+ record = await ctx.vaultMemoryCollection.find(id);
16830
+ } catch {
16831
+ return null;
16832
+ }
16833
+ if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) return null;
16834
+ let stale = false;
16835
+ await ctx.database.write(async () => {
16836
+ if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) {
16837
+ stale = true;
16838
+ return;
16839
+ }
16840
+ const currentUpdatedAt = record.updatedAt.getTime();
16841
+ const currentPublishedAt = record.publishedAt ?? null;
16842
+ await record.update((r) => {
16843
+ r._setRaw("visibility", opts.visibility);
16844
+ if (opts.visibility === "private") {
16845
+ r._setRaw("published_at", null);
16846
+ } else if (currentPublishedAt === null) {
16847
+ r._setRaw("published_at", Date.now());
16848
+ }
16849
+ if (opts.twinOptIn !== void 0) {
16850
+ r._setRaw("twin_opt_in", opts.twinOptIn);
16851
+ }
16852
+ r._setRaw("updated_at", currentUpdatedAt);
16853
+ });
16854
+ });
16855
+ if (stale) return null;
16856
+ return vaultMemoryToStored(record, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
16857
+ }
16788
16858
  async function deleteVaultMemoryOp(ctx, id) {
16789
16859
  try {
16790
16860
  const record = await ctx.vaultMemoryCollection.find(id);
@@ -19849,7 +19919,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
19849
19919
  legacy.map((r) => ({ id: r.uniqueId, content: r.content, score: r.similarity }))
19850
19920
  );
19851
19921
  }
19852
- const { recall: recall2 } = await import("./recall-VZO4USXK.mjs");
19922
+ const { recall: recall2 } = await import("./recall-XO6QTDMG.mjs");
19853
19923
  const result = await recall2(
19854
19924
  query,
19855
19925
  { vaultCtx, embeddingOptions, vaultCache: cache },
@@ -20835,6 +20905,7 @@ export {
20835
20905
  getAllVaultMemoriesOp,
20836
20906
  getAllVaultMemoryContentsOp,
20837
20907
  updateVaultMemoryOp,
20908
+ setMemoryVisibilityOp,
20838
20909
  deleteVaultMemoryOp,
20839
20910
  supersedeVaultMemoryOp,
20840
20911
  getUnfiledVaultMemoriesOp,