@anuma/sdk 11.3.5 → 11.4.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.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { Database } from '@nozbe/watermelondb';
2
+
1
3
  /**
2
4
  * Cross-platform primitive constants.
3
5
  *
@@ -7889,7 +7891,7 @@ declare function getCreditsUsed(r: ApiResponse): number | undefined;
7889
7891
  */
7890
7892
  declare function getImageModel(r: ApiResponse): string | undefined;
7891
7893
 
7892
- type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting";
7894
+ type ChatRecordKind = "conversation" | "message" | "summary" | "project" | "memory_links" | "setting" | "app_file" | "saved_tool";
7893
7895
  type ChatJson = null | boolean | number | string | ChatJson[] | {
7894
7896
  [key: string]: ChatJson;
7895
7897
  };
@@ -8023,6 +8025,8 @@ interface ChatStore {
8023
8025
  }): Promise<ChatChanges>;
8024
8026
  search(embedding: readonly number[], options?: ChatSearchOptions): Promise<ChatSearchHit[]>;
8025
8027
  deleteAll(signal?: AbortSignal): Promise<number>;
8028
+ /** A keyed hash vault cannot reproduce, for record ids derived from private names. */
8029
+ sealedId?(value: string): Promise<string>;
8026
8030
  attachments: ChatAttachments;
8027
8031
  }
8028
8032
  interface RemoteChatStoreOptions {
@@ -8031,6 +8035,7 @@ interface RemoteChatStoreOptions {
8031
8035
  keyId: string;
8032
8036
  encrypt: (plaintext: string) => Promise<string>;
8033
8037
  decrypt: (ciphertext: string) => Promise<string>;
8038
+ hashTopic?: (normalized: string) => Promise<string>;
8034
8039
  fetch?: typeof globalThis.fetch;
8035
8040
  timeoutMs?: number;
8036
8041
  signal?: AbortSignal;
@@ -8778,9 +8783,71 @@ declare function markAnumaRead(store: ChatStore, sortKey: number, options?: {
8778
8783
  /** Counts Anuma turns the user has not read: assistant turns above both the read marker and the user's latest message. */
8779
8784
  declare function countUnreadAnumaTurns(messages: readonly Pick<StoredMessage, "messageId" | "role" | "anuma" | "uniqueId">[], lastReadSortKey: number): number;
8780
8785
 
8786
+ interface AppFile {
8787
+ conversationId: string;
8788
+ path: string;
8789
+ content: string;
8790
+ version: number;
8791
+ createdAt: number;
8792
+ updatedAt: number;
8793
+ }
8794
+ interface SavedToolData {
8795
+ name: string;
8796
+ displayName: string;
8797
+ description: string;
8798
+ parameters: string;
8799
+ html: string;
8800
+ conversationId: string | null;
8801
+ }
8802
+ interface SavedTool extends SavedToolData {
8803
+ id: string;
8804
+ version: number;
8805
+ createdAt: number;
8806
+ updatedAt: number;
8807
+ }
8808
+ /** The vault record id of a conversation's file: a keyed hash, so vault cannot tell the path. */
8809
+ declare function appFileId(store: Pick<ChatStore, "sealedId">, conversationId: string, path: string): Promise<string>;
8810
+ /** Every live file of one conversation. */
8811
+ declare function listAppFiles(store: ChatStore, conversationId: string, signal?: AbortSignal): Promise<AppFile[]>;
8812
+ interface AppFileIndex {
8813
+ /** Every live file of every conversation, fetching only what changed since the last call. */
8814
+ list(signal?: AbortSignal): Promise<AppFile[]>;
8815
+ }
8816
+ /** Keeps every app file of the account current from the changes feed. */
8817
+ declare function createAppFileIndex(store: ChatStore): AppFileIndex;
8818
+ /** Every live file of every conversation, read from the changes feed. */
8819
+ declare function listEveryAppFile(store: ChatStore, signal?: AbortSignal): Promise<AppFile[]>;
8820
+ /** One conversation file, or null when vault holds none at that path. */
8821
+ declare function getAppFile(store: ChatStore, conversationId: string, path: string, signal?: AbortSignal): Promise<AppFile | null>;
8822
+ /** Creates or replaces a conversation file; the last save of a path wins across devices. */
8823
+ declare function saveAppFile(store: ChatStore, file: {
8824
+ conversationId: string;
8825
+ path: string;
8826
+ content: string;
8827
+ }, signal?: AbortSignal): Promise<AppFile>;
8828
+ declare function deleteAppFile(store: ChatStore, conversationId: string, path: string, signal?: AbortSignal): Promise<void>;
8829
+ declare function loadSavedTools(store: ChatStore, signal?: AbortSignal): Promise<SavedTool[]>;
8830
+ /** Creates or replaces a saved tool; the last save wins across devices. */
8831
+ declare function saveSavedTool(store: ChatStore, id: string, tool: SavedToolData, signal?: AbortSignal): Promise<SavedTool>;
8832
+ declare function deleteSavedTool(store: ChatStore, id: string, signal?: AbortSignal): Promise<void>;
8833
+
8781
8834
  /** Connect to owner-scoped server storage using the account's canonical device-held cipher. */
8782
8835
  declare function createRemoteChatStore(options: RemoteChatStoreOptions): Promise<ChatStore>;
8783
8836
 
8837
+ interface AppFileSeedResult {
8838
+ appFiles: number;
8839
+ savedTools: number;
8840
+ /** Files of conversations vault does not hold, left on the device. */
8841
+ orphaned: number;
8842
+ /** Files too large for one vault record, left on the device. */
8843
+ tooLarge: number;
8844
+ }
8845
+ /**
8846
+ * Uploads this device's app files and saved tools that vault lacks or holds an older edit of,
8847
+ * keeping each one's own edit time so the newest copy across devices wins.
8848
+ */
8849
+ declare function seedAppFilesToVault(database: Database, store: ChatStore, signal?: AbortSignal): Promise<AppFileSeedResult>;
8850
+
8784
8851
  interface Setting {
8785
8852
  section: string;
8786
8853
  data: {
@@ -9226,4 +9293,4 @@ declare class SseIdleTimeoutError extends Error {
9226
9293
  */
9227
9294
  declare function withSseKeepalive<T>(source: AsyncIterable<T>, options?: SseKeepaliveOptions): AsyncGenerator<T, void, unknown>;
9228
9295
 
9229
- export { ANUMA_CONVERSATION_ID, type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type AnumaTurn, type AnumaTurnOrigin, type ApiResponse, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatChanges, type ChatImport, type ChatJson, type ChatListOptions, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStore, ChatStoreError, type ChatWrite, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type FileProcessingReason, type FileProcessingStatus, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRenewSubscriptionResponse, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type RemoteChatStoreOptions, type ReservationReceipt, type ResponseErrorResponse, type SelectServerSideToolsOptions, type Setting, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TASK_TYPE_HEADER, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type TaskType, type ToolSet, activatedToolSetNames, analyzeStyle, anumaLastReadSortKey, anumaTurnContent, applyToolSets, attachFileContextToLastUserMessage, buildAttachedFilesText, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, countUnreadAnumaTurns, createRemoteChatStore, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, dequantizeEmbedding, encodeChunkVector, ensureAnumaConversation, expandToolSetsAdditive, extractReservationReceipts, formatFileProcessingNotes, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isAttachedFilesText, isPiiRedactor, loadSettings, markAnumaRead, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, readAnumaTurn, renderTemplate, resolvePiiRedactor, sanitizeQuotes, saveSetting, selectServerSideTools, setLogger, shouldAnalyzeStyle, taskTypeHeader, toolSetSystemPrompts, withSseKeepalive };
9296
+ export { ANUMA_CONVERSATION_ID, type AgentAgendaItem, type AgentAgendaTranscript, type AgentAnalysisSection, type AgentAnalysisTranscript, type AgentConfig, type AgentExampleConversation, type AgentManifest, type AgentMarketplaceContent, type AgentMarketplaceFamily, type AgentMarketplaceTranscript, type AgentPrimaryActionKind, type AgentRuntime, type AgentScheduleItem, type AgentTranscriptItem, type AgentTranscriptTone, type AgentUiMetadata, type AnalyzeStyleOptions, type AnalyzeStyleResult, type AnumaTurn, type AnumaTurnOrigin, type ApiResponse, type AppFile, type AppFileIndex, type AppFileSeedResult, BUILT_IN_TOOL_SETS, type BuildPromptOptions, type BuildPromptResult, CHUNKS_DISCARDED_ORIGIN, type ChatAccount, type ChatAccountState, type ChatAttachment, type ChatAttachments, type ChatChanges, type ChatImport, type ChatJson, type ChatListOptions, type ChatPage, type ChatPresignedUrl, type ChatRecord, type ChatRecordKind, type ChatRef, type ChatRevision, type ChatSearchHit, type ChatSearchOptions, type ChatSnapshot, type ChatStore, ChatStoreError, type ChatWrite, type ClientOptions, type ConnectorGuidance, type ConnectorGuidanceInput, type CreateServerToolsFilterOptions, DEFAULT_ANALYSIS_PROMPT, DEFAULT_ANALYZE_AFTER_MESSAGES, DEFAULT_DOCUMENT_PATTERN, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_MAX_INPUT_MESSAGES, DEFAULT_MAX_PROFILE_LENGTH, DEFAULT_MIN_MESSAGES, DEFAULT_PROMPT_TEMPLATES, DEFAULT_REFRESH_EVERY_MESSAGES, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, type DeleteApiV1AccountData, type DeleteApiV1AccountError, type DeleteApiV1AccountErrors, type DeleteApiV1AccountResponse, type DeleteApiV1AccountResponses, type DeleteApiV1AdminAgentsByIdData, type DeleteApiV1AdminAgentsByIdError, type DeleteApiV1AdminAgentsByIdErrors, type DeleteApiV1AdminAgentsByIdResponse, type DeleteApiV1AdminAgentsByIdResponses, type DeleteApiV1AdminAppsByAppIdApiKeysByIdData, type DeleteApiV1AdminAppsByAppIdApiKeysByIdError, type DeleteApiV1AdminAppsByAppIdApiKeysByIdErrors, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponse, type DeleteApiV1AdminAppsByAppIdApiKeysByIdResponses, type DeleteApiV1AdminAppsByIdData, type DeleteApiV1AdminAppsByIdError, type DeleteApiV1AdminAppsByIdErrors, type DeleteApiV1AdminAppsByIdResponse, type DeleteApiV1AdminAppsByIdResponses, type DeleteApiV1AdminPersonasByIdData, type DeleteApiV1AdminPersonasByIdError, type DeleteApiV1AdminPersonasByIdErrors, type DeleteApiV1AdminPersonasByIdResponse, type DeleteApiV1AdminPersonasByIdResponses, type DeleteApiV1AdminTextResetData, type DeleteApiV1AdminTextResetError, type DeleteApiV1AdminTextResetErrors, type DeleteApiV1AdminTextResetResponse, type DeleteApiV1AdminTextResetResponses, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdData, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdError, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdErrors, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponse, type DeleteApiV1DeveloperAppsByAppUuidApiKeysByKeyIdResponses, type DeleteApiV1DeveloperAppsByAppUuidData, type DeleteApiV1DeveloperAppsByAppUuidError, type DeleteApiV1DeveloperAppsByAppUuidErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyData, type DeleteApiV1DeveloperAppsByAppUuidPrivyError, type DeleteApiV1DeveloperAppsByAppUuidPrivyErrors, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponse, type DeleteApiV1DeveloperAppsByAppUuidPrivyResponses, type DeleteApiV1DeveloperAppsByAppUuidResponse, type DeleteApiV1DeveloperAppsByAppUuidResponses, type DeleteApiV1UserApiKeysByKeyIdData, type DeleteApiV1UserApiKeysByKeyIdError, type DeleteApiV1UserApiKeysByKeyIdErrors, type DeleteApiV1UserApiKeysByKeyIdResponse, type DeleteApiV1UserApiKeysByKeyIdResponses, type DeleteApiV1WalletsBindingByAddressData, type DeleteApiV1WalletsBindingByAddressError, type DeleteApiV1WalletsBindingByAddressErrors, type DeleteApiV1WalletsBindingByAddressResponse, type DeleteApiV1WalletsBindingByAddressResponses, type FileExtractionStrategy, type FileProcessingReason, type FileProcessingStatus, type GetApiV1AdminAppsByAppIdApiKeysByIdData, type GetApiV1AdminAppsByAppIdApiKeysByIdError, type GetApiV1AdminAppsByAppIdApiKeysByIdErrors, type GetApiV1AdminAppsByAppIdApiKeysByIdResponse, type GetApiV1AdminAppsByAppIdApiKeysByIdResponses, type GetApiV1AdminAppsByAppIdApiKeysData, type GetApiV1AdminAppsByAppIdApiKeysError, type GetApiV1AdminAppsByAppIdApiKeysErrors, type GetApiV1AdminAppsByAppIdApiKeysResponse, type GetApiV1AdminAppsByAppIdApiKeysResponses, type GetApiV1AdminAppsByIdData, type GetApiV1AdminAppsByIdError, type GetApiV1AdminAppsByIdErrors, type GetApiV1AdminAppsByIdResponse, type GetApiV1AdminAppsByIdResponses, type GetApiV1AdminAppsData, type GetApiV1AdminAppsError, type GetApiV1AdminAppsErrors, type GetApiV1AdminAppsResponse, type GetApiV1AdminAppsResponses, type GetApiV1AdminUsersLookupData, type GetApiV1AdminUsersLookupError, type GetApiV1AdminUsersLookupErrors, type GetApiV1AdminUsersLookupResponse, type GetApiV1AdminUsersLookupResponses, type GetApiV1AgentPreferencesData, type GetApiV1AgentPreferencesError, type GetApiV1AgentPreferencesErrors, type GetApiV1AgentPreferencesResponse, type GetApiV1AgentPreferencesResponses, type GetApiV1AgentsByIdData, type GetApiV1AgentsByIdError, type GetApiV1AgentsByIdErrors, type GetApiV1AgentsByIdResponse, type GetApiV1AgentsByIdResponses, type GetApiV1AgentsData, type GetApiV1AgentsError, type GetApiV1AgentsErrors, type GetApiV1AgentsResponse, type GetApiV1AgentsResponses, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1CreditsBalanceData, type GetApiV1CreditsBalanceError, type GetApiV1CreditsBalanceErrors, type GetApiV1CreditsBalanceResponse, type GetApiV1CreditsBalanceResponses, type GetApiV1CreditsPacksData, type GetApiV1CreditsPacksError, type GetApiV1CreditsPacksErrors, type GetApiV1CreditsPacksResponse, type GetApiV1CreditsPacksResponses, type GetApiV1DeveloperAppsByAppUuidApiKeysData, type GetApiV1DeveloperAppsByAppUuidApiKeysError, type GetApiV1DeveloperAppsByAppUuidApiKeysErrors, type GetApiV1DeveloperAppsByAppUuidApiKeysResponse, type GetApiV1DeveloperAppsByAppUuidApiKeysResponses, type GetApiV1DeveloperAppsByAppUuidData, type GetApiV1DeveloperAppsByAppUuidError, type GetApiV1DeveloperAppsByAppUuidErrors, type GetApiV1DeveloperAppsByAppUuidResponse, type GetApiV1DeveloperAppsByAppUuidResponses, type GetApiV1DeveloperAppsByAppUuidUsageData, type GetApiV1DeveloperAppsByAppUuidUsageError, type GetApiV1DeveloperAppsByAppUuidUsageErrors, type GetApiV1DeveloperAppsByAppUuidUsageResponse, type GetApiV1DeveloperAppsByAppUuidUsageResponses, type GetApiV1DeveloperAppsByAppUuidUsageUsersData, type GetApiV1DeveloperAppsByAppUuidUsageUsersError, type GetApiV1DeveloperAppsByAppUuidUsageUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsageUsersResponses, type GetApiV1DeveloperAppsByAppUuidUsersByAddressData, type GetApiV1DeveloperAppsByAppUuidUsersByAddressError, type GetApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type GetApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type GetApiV1DeveloperAppsByAppUuidUsersData, type GetApiV1DeveloperAppsByAppUuidUsersError, type GetApiV1DeveloperAppsByAppUuidUsersErrors, type GetApiV1DeveloperAppsByAppUuidUsersResponse, type GetApiV1DeveloperAppsByAppUuidUsersResponses, type GetApiV1DeveloperAppsData, type GetApiV1DeveloperAppsError, type GetApiV1DeveloperAppsErrors, type GetApiV1DeveloperAppsResponse, type GetApiV1DeveloperAppsResponses, type GetApiV1DeveloperBillingData, type GetApiV1DeveloperBillingError, type GetApiV1DeveloperBillingErrors, type GetApiV1DeveloperBillingResponse, type GetApiV1DeveloperBillingResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1PersonasByIdData, type GetApiV1PersonasByIdError, type GetApiV1PersonasByIdErrors, type GetApiV1PersonasByIdResponse, type GetApiV1PersonasByIdResponses, type GetApiV1PersonasData, type GetApiV1PersonasError, type GetApiV1PersonasErrors, type GetApiV1PersonasResponse, type GetApiV1PersonasResponses, type GetApiV1PhoneCallsByCallIdData, type GetApiV1PhoneCallsByCallIdError, type GetApiV1PhoneCallsByCallIdErrors, type GetApiV1PhoneCallsByCallIdResponse, type GetApiV1PhoneCallsByCallIdResponses, type GetApiV1SubscriptionsPlansData, type GetApiV1SubscriptionsPlansError, type GetApiV1SubscriptionsPlansErrors, type GetApiV1SubscriptionsPlansResponse, type GetApiV1SubscriptionsPlansResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetApiV1ToolsData, type GetApiV1ToolsError, type GetApiV1ToolsErrors, type GetApiV1ToolsResponse, type GetApiV1ToolsResponses, type GetApiV1UsageInferenceWeeklyData, type GetApiV1UsageInferenceWeeklyResponse, type GetApiV1UsageInferenceWeeklyResponses, type GetApiV1UsageModelsData, type GetApiV1UsageModelsError, type GetApiV1UsageModelsErrors, type GetApiV1UsageModelsResponse, type GetApiV1UsageModelsResponses, type GetApiV1UserApiKeysData, type GetApiV1UserApiKeysError, type GetApiV1UserApiKeysErrors, type GetApiV1UserApiKeysResponse, type GetApiV1UserApiKeysResponses, type GetApiV1WalletsBindingData, type GetApiV1WalletsBindingError, type GetApiV1WalletsBindingErrors, type GetApiV1WalletsBindingResponse, type GetApiV1WalletsBindingResponses, type GetApiV1ZetaCreditRateData, type GetApiV1ZetaCreditRateResponse, type GetApiV1ZetaCreditRateResponses, type GetApiV1ZetaMarketData, type GetApiV1ZetaMarketResponse, type GetApiV1ZetaMarketResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersAddCreditsRequest, type HandlersAddCreditsResponse, type HandlersAgentListItem, type HandlersAgentListResponse, type HandlersAgentResponse, type HandlersApiKeyResponse, type HandlersApiKeyWithKeyResponse, type HandlersAppConfig, type HandlersAppResponse, type HandlersAppUsageResponse, type HandlersAppUserUsageResponse, type HandlersBillingHistoryResponse, type HandlersBillingRecordResponse, type HandlersBindRequest, type HandlersBoundWalletResponse, type HandlersCancelScheduledDowngradeResponse, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersConfigurePrivyRequest, type HandlersCreateAgentRequest, type HandlersCreateApiKeyRequest, type HandlersCreateAppRequest, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCreditPackCheckoutRequest, type HandlersCreateCustomerPortalRequest, type HandlersCreateDeveloperAppRequest, type HandlersCreatePersonaRequest, type HandlersCreatePhoneCallRequest, type HandlersCreditBalanceResponse, type HandlersCreditPack, type HandlersCreditPacksResponse, type HandlersCreditRateResponse, type HandlersCustomerPortalResponse, type HandlersDeveloperApiKeyRequest, type HandlersDeveloperApiKeyResponse, type HandlersDeveloperApiKeyWithSecretResponse, type HandlersDeveloperAppResponse, type HandlersDeveloperUserResponse, type HandlersExpiringCredits, type HandlersFundDeveloperAppRequest, type HandlersGeneratedApiKey, type HandlersGetToolsResponse, type HandlersHealthResponse, type HandlersInferenceWeeklyResponse, type HandlersListApiKeysResponse, type HandlersListAppsResponse, type HandlersListDeveloperApiKeysResponse, type HandlersListDeveloperAppsResponse, type HandlersListResponse, type HandlersListTotals, type HandlersListUserApiKeysResponse, type HandlersListUsersResponse, type HandlersModelToolUsageItem, type HandlersModelUsageItem, type HandlersNonceResponse, type HandlersPaginationResponse, type HandlersPersonaListResponse, type HandlersPersonaResponse, type HandlersPhoneCallResponse, type HandlersPhoneCallTranscriptEntry, type HandlersProInfo, type HandlersRedeemTokensRequest, type HandlersRedeemTokensResponse, type HandlersRenewSubscriptionResponse, type HandlersScheduleDowngradeRequest, type HandlersScheduleDowngradeResponse, type HandlersSeedApiKeyInput, type HandlersSeedAppInput, type HandlersSeedAppsRequest, type HandlersSeedAppsResponse, type HandlersSetSubscriptionTierRequest, type HandlersSetSubscriptionTierResponse, type HandlersSetUserAgentPreferenceRequest, type HandlersSubscriptionPlan, type HandlersSubscriptionPlansResponse, type HandlersSubscriptionStatusResponse, type HandlersTool, type HandlersToolCallDetailItem, type HandlersTopUpUserRequest, type HandlersUpdateAgentRequest, type HandlersUpdateApiKeyRequest, type HandlersUpdateAppRequest, type HandlersUpdateDeveloperAppRequest, type HandlersUpdatePersonaRequest, type HandlersUpdateUserLimitRequest, type HandlersUpgradeSubscriptionRequest, type HandlersUpgradeSubscriptionResponse, type HandlersUsageByModelResponse, type HandlersUsagePeriod, type HandlersUsageTimeseriesPoint, type HandlersUsageTotals, type HandlersUserAgentPreferenceResponse, type HandlersUserAgentPreferencesListResponse, type HandlersUserApiKeyRequest, type HandlersUserApiKeyResponse, type HandlersUserApiKeyWithSecretResponse, type HandlersUserLookupAccount, type HandlersUserLookupEnrollment, type HandlersUserLookupResponse, type HandlersUserLookupTextReg, type HandlersUserUsageResponse, type HandlersWalletDetails, type HandlersWeeklyInferenceItem, type HandlersZetaMarketResponse, type LazyStoredConversation, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionTool, type LlmapiChatCompletionToolChoice, type LlmapiChatCompletionUsage, type OpenaiChatCompletionChoice as LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMcpTool, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiPortalChatCompletionRequest, type LlmapiPortalChatCompletionResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseTool, type LlmapiResponseToolChoice, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiToolCall, type LlmapiToolCallEvent, type LlmapiToolCallFunction, type Logger, MULTILINE_FIELD_MAX, type McpToolSchema, type MessageRedactionResult, type NerDetector, type Options, PII_PATTERNS, type PatchApiV1DeveloperAppsByAppUuidData, type PatchApiV1DeveloperAppsByAppUuidError, type PatchApiV1DeveloperAppsByAppUuidErrors, type PatchApiV1DeveloperAppsByAppUuidResponse, type PatchApiV1DeveloperAppsByAppUuidResponses, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressData, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressError, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressErrors, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponse, type PatchApiV1DeveloperAppsByAppUuidUsersByAddressResponses, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PiiSpan, type PostApiV1AdminAddCreditsData, type PostApiV1AdminAddCreditsError, type PostApiV1AdminAddCreditsErrors, type PostApiV1AdminAddCreditsResponse, type PostApiV1AdminAddCreditsResponses, type PostApiV1AdminAgentsData, type PostApiV1AdminAgentsError, type PostApiV1AdminAgentsErrors, type PostApiV1AdminAgentsResponse, type PostApiV1AdminAgentsResponses, type PostApiV1AdminAppsByAppIdApiKeysData, type PostApiV1AdminAppsByAppIdApiKeysError, type PostApiV1AdminAppsByAppIdApiKeysErrors, type PostApiV1AdminAppsByAppIdApiKeysResponse, type PostApiV1AdminAppsByAppIdApiKeysResponses, type PostApiV1AdminAppsData, type PostApiV1AdminAppsError, type PostApiV1AdminAppsErrors, type PostApiV1AdminAppsResponse, type PostApiV1AdminAppsResponses, type PostApiV1AdminPersonasData, type PostApiV1AdminPersonasError, type PostApiV1AdminPersonasErrors, type PostApiV1AdminPersonasResponse, type PostApiV1AdminPersonasResponses, type PostApiV1AdminSeedAppsData, type PostApiV1AdminSeedAppsError, type PostApiV1AdminSeedAppsErrors, type PostApiV1AdminSeedAppsResponse, type PostApiV1AdminSeedAppsResponses, type PostApiV1AdminSubscriptionTierData, type PostApiV1AdminSubscriptionTierError, type PostApiV1AdminSubscriptionTierErrors, type PostApiV1AdminSubscriptionTierResponse, type PostApiV1AdminSubscriptionTierResponses, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1CreditsPurchaseData, type PostApiV1CreditsPurchaseError, type PostApiV1CreditsPurchaseErrors, type PostApiV1CreditsPurchaseResponse, type PostApiV1CreditsPurchaseResponses, type PostApiV1CreditsRedeemTokensData, type PostApiV1CreditsRedeemTokensError, type PostApiV1CreditsRedeemTokensErrors, type PostApiV1CreditsRedeemTokensResponse, type PostApiV1CreditsRedeemTokensResponses, type PostApiV1DeveloperAppsByAppUuidApiKeysData, type PostApiV1DeveloperAppsByAppUuidApiKeysError, type PostApiV1DeveloperAppsByAppUuidApiKeysErrors, type PostApiV1DeveloperAppsByAppUuidApiKeysResponse, type PostApiV1DeveloperAppsByAppUuidApiKeysResponses, type PostApiV1DeveloperAppsByAppUuidFundData, type PostApiV1DeveloperAppsByAppUuidFundError, type PostApiV1DeveloperAppsByAppUuidFundErrors, type PostApiV1DeveloperAppsByAppUuidFundResponse, type PostApiV1DeveloperAppsByAppUuidFundResponses, type PostApiV1DeveloperAppsByAppUuidPrivyData, type PostApiV1DeveloperAppsByAppUuidPrivyError, type PostApiV1DeveloperAppsByAppUuidPrivyErrors, type PostApiV1DeveloperAppsByAppUuidPrivyResponse, type PostApiV1DeveloperAppsByAppUuidPrivyResponses, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpData, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpError, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpErrors, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponse, type PostApiV1DeveloperAppsByAppUuidUsersByAddressTopUpResponses, type PostApiV1DeveloperAppsData, type PostApiV1DeveloperAppsError, type PostApiV1DeveloperAppsErrors, type PostApiV1DeveloperAppsResponse, type PostApiV1DeveloperAppsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1PhoneCallsData, type PostApiV1PhoneCallsError, type PostApiV1PhoneCallsErrors, type PostApiV1PhoneCallsResponse, type PostApiV1PhoneCallsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCancelScheduledDowngradeData, type PostApiV1SubscriptionsCancelScheduledDowngradeError, type PostApiV1SubscriptionsCancelScheduledDowngradeErrors, type PostApiV1SubscriptionsCancelScheduledDowngradeResponse, type PostApiV1SubscriptionsCancelScheduledDowngradeResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsScheduleDowngradeData, type PostApiV1SubscriptionsScheduleDowngradeError, type PostApiV1SubscriptionsScheduleDowngradeErrors, type PostApiV1SubscriptionsScheduleDowngradeResponse, type PostApiV1SubscriptionsScheduleDowngradeResponses, type PostApiV1SubscriptionsUpgradeData, type PostApiV1SubscriptionsUpgradeError, type PostApiV1SubscriptionsUpgradeErrors, type PostApiV1SubscriptionsUpgradeResponse, type PostApiV1SubscriptionsUpgradeResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, type PostApiV1UserApiKeysData, type PostApiV1UserApiKeysError, type PostApiV1UserApiKeysErrors, type PostApiV1UserApiKeysResponse, type PostApiV1UserApiKeysResponses, type PostApiV1WalletsBindingData, type PostApiV1WalletsBindingError, type PostApiV1WalletsBindingErrors, type PostApiV1WalletsBindingNonceData, type PostApiV1WalletsBindingNonceError, type PostApiV1WalletsBindingNonceErrors, type PostApiV1WalletsBindingNonceResponse, type PostApiV1WalletsBindingNonceResponses, type PostApiV1WalletsBindingResponse, type PostApiV1WalletsBindingResponses, type PostApiV1WebhooksRevenuecatData, type PostApiV1WebhooksRevenuecatError, type PostApiV1WebhooksRevenuecatErrors, type PostApiV1WebhooksRevenuecatResponse, type PostApiV1WebhooksRevenuecatResponses, type PromptContext, type PromptSection, type PromptTemplates, type PutApiV1AdminAgentsByIdData, type PutApiV1AdminAgentsByIdError, type PutApiV1AdminAgentsByIdErrors, type PutApiV1AdminAgentsByIdResponse, type PutApiV1AdminAgentsByIdResponses, type PutApiV1AdminAppsByAppIdApiKeysByIdData, type PutApiV1AdminAppsByAppIdApiKeysByIdError, type PutApiV1AdminAppsByAppIdApiKeysByIdErrors, type PutApiV1AdminAppsByAppIdApiKeysByIdResponse, type PutApiV1AdminAppsByAppIdApiKeysByIdResponses, type PutApiV1AdminAppsByIdData, type PutApiV1AdminAppsByIdError, type PutApiV1AdminAppsByIdErrors, type PutApiV1AdminAppsByIdResponse, type PutApiV1AdminAppsByIdResponses, type PutApiV1AdminPersonasByIdData, type PutApiV1AdminPersonasByIdError, type PutApiV1AdminPersonasByIdErrors, type PutApiV1AdminPersonasByIdResponse, type PutApiV1AdminPersonasByIdResponses, type PutApiV1AgentsByIdPreferenceData, type PutApiV1AgentsByIdPreferenceError, type PutApiV1AgentsByIdPreferenceErrors, type PutApiV1AgentsByIdPreferenceResponse, type PutApiV1AgentsByIdPreferenceResponses, type QuantizedEmbedding, type RedactionResult, type RemoteChatStoreOptions, type ReservationReceipt, type ResponseErrorResponse, type SavedTool, type SavedToolData, type SelectServerSideToolsOptions, type Setting, type SkillConfig, type SkillJourneyDefinition, type SkillJourneyField, type SkillJourneyFieldType, SseIdleTimeoutError, type SseKeepaliveOptions, type StyleAnalysisSchedule, TASK_TYPE_HEADER, TOOL_CATALOG, TOOL_RESULT_ORIGIN, type TaskType, type ToolSet, activatedToolSetNames, analyzeStyle, anumaLastReadSortKey, anumaTurnContent, appFileId, applyToolSets, attachFileContextToLastUserMessage, buildAttachedFilesText, buildConnectorGuidance, buildDeniedToolsRider, buildSystemPrompt, clearLazyTitleCache, consoleLogger, cosineInt8, countUnreadAnumaTurns, createAppFileIndex, createRemoteChatStore, createServerToolsFilter, createStreamingDeAnonymizer, decodeChunkVector, decryptConversationTitle, defaultServerToolsFilter, deleteApiV1Account, deleteApiV1AdminAgentsById, deleteApiV1AdminAppsByAppIdApiKeysById, deleteApiV1AdminAppsById, deleteApiV1AdminPersonasById, deleteApiV1AdminTextReset, deleteApiV1DeveloperAppsByAppUuid, deleteApiV1DeveloperAppsByAppUuidApiKeysByKeyId, deleteApiV1DeveloperAppsByAppUuidPrivy, deleteApiV1UserApiKeysByKeyId, deleteApiV1WalletsBindingByAddress, deleteAppFile, deleteSavedTool, dequantizeEmbedding, encodeChunkVector, ensureAnumaConversation, expandToolSetsAdditive, extractReservationReceipts, formatFileProcessingNotes, getApiV1AdminApps, getApiV1AdminAppsByAppIdApiKeys, getApiV1AdminAppsByAppIdApiKeysById, getApiV1AdminAppsById, getApiV1AdminUsersLookup, getApiV1AgentPreferences, getApiV1Agents, getApiV1AgentsById, getApiV1Config, getApiV1CreditsBalance, getApiV1CreditsPacks, getApiV1DeveloperApps, getApiV1DeveloperAppsByAppUuid, getApiV1DeveloperAppsByAppUuidApiKeys, getApiV1DeveloperAppsByAppUuidUsage, getApiV1DeveloperAppsByAppUuidUsageUsers, getApiV1DeveloperAppsByAppUuidUsers, getApiV1DeveloperAppsByAppUuidUsersByAddress, getApiV1DeveloperBilling, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1Personas, getApiV1PersonasById, getApiV1PhoneCallsByCallId, getApiV1SubscriptionsPlans, getApiV1SubscriptionsStatus, getApiV1Tools, getApiV1UsageInferenceWeekly, getApiV1UsageModels, getApiV1UserApiKeys, getApiV1WalletsBinding, getApiV1ZetaCreditRate, getApiV1ZetaMarket, getAppFile, getCostMicroUsd, getCreditsUsed, getHealth, getImageModel, getLogger, getToolCallEvents, isAttachedFilesText, isPiiRedactor, listAppFiles, listEveryAppFile, loadSavedTools, loadSettings, markAnumaRead, noopLogger, patchApiV1DeveloperAppsByAppUuid, patchApiV1DeveloperAppsByAppUuidUsersByAddress, postApiV1AdminAddCredits, postApiV1AdminAgents, postApiV1AdminApps, postApiV1AdminAppsByAppIdApiKeys, postApiV1AdminPersonas, postApiV1AdminSeedApps, postApiV1AdminSubscriptionTier, postApiV1ChatCompletions, postApiV1CreditsPurchase, postApiV1CreditsRedeemTokens, postApiV1DeveloperApps, postApiV1DeveloperAppsByAppUuidApiKeys, postApiV1DeveloperAppsByAppUuidFund, postApiV1DeveloperAppsByAppUuidPrivy, postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp, postApiV1Embeddings, postApiV1PhoneCalls, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCancelScheduledDowngrade, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsScheduleDowngrade, postApiV1SubscriptionsUpgrade, postApiV1SubscriptionsWebhook, postApiV1UserApiKeys, postApiV1WalletsBinding, postApiV1WalletsBindingNonce, postApiV1WebhooksRevenuecat, putApiV1AdminAgentsById, putApiV1AdminAppsByAppIdApiKeysById, putApiV1AdminAppsById, putApiV1AdminPersonasById, putApiV1AgentsByIdPreference, quantizeEmbedding, readAnumaTurn, renderTemplate, resolvePiiRedactor, sanitizeQuotes, saveAppFile, saveSavedTool, saveSetting, seedAppFilesToVault, selectServerSideTools, setLogger, shouldAnalyzeStyle, taskTypeHeader, toolSetSystemPrompts, withSseKeepalive };
package/dist/index.mjs CHANGED
@@ -1771,6 +1771,168 @@ function countUnreadAnumaTurns(messages, lastReadSortKey) {
1771
1771
  return turns.size;
1772
1772
  }
1773
1773
 
1774
+ // src/utils/paths.ts
1775
+ function normalizePath(p) {
1776
+ return p.replace(/^\/+/, "").replace(/\/\/+/g, "/").split("/").reduce((acc, seg) => {
1777
+ if (seg === "..") acc.pop();
1778
+ else if (seg !== ".") acc.push(seg);
1779
+ return acc;
1780
+ }, []).join("/");
1781
+ }
1782
+
1783
+ // src/lib/chatStore/appFiles.ts
1784
+ var maxSaveAttempts = 3;
1785
+ async function appFileId(store, conversationId, path) {
1786
+ if (!store.sealedId) throw new Error("App file ids need a chat store that seals ids");
1787
+ return store.sealedId(`app_file\0${conversationId}\0${normalizePath(path)}`);
1788
+ }
1789
+ async function putLatest(store, target, next, signal) {
1790
+ for (let attempt = 1; ; attempt++) {
1791
+ const current = await store.get(target.kind, target.id, signal);
1792
+ if (next.isDeleted && (!current || current.record.isDeleted)) return current;
1793
+ const now = Date.now();
1794
+ try {
1795
+ const [saved] = await store.putMany(
1796
+ [
1797
+ {
1798
+ record: {
1799
+ ...target,
1800
+ sortKey: 0,
1801
+ createdAt: current?.record.createdAt ?? now,
1802
+ updatedAt: Math.max(now, (current?.record.updatedAt ?? 0) + 1),
1803
+ isDeleted: next.isDeleted,
1804
+ data: next.isDeleted ? {} : next.data
1805
+ },
1806
+ expectedVersion: current?.version ?? 0
1807
+ }
1808
+ ],
1809
+ signal
1810
+ );
1811
+ return saved;
1812
+ } catch (error) {
1813
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
1814
+ throw error;
1815
+ }
1816
+ }
1817
+ }
1818
+ async function listAll(store, kind, conversationId, signal) {
1819
+ const out = [];
1820
+ let cursor;
1821
+ do {
1822
+ const page = await store.list({ kind, conversationId, limit: 100, cursor, signal });
1823
+ out.push(...page.items.filter((item) => !item.record.isDeleted));
1824
+ cursor = page.nextCursor;
1825
+ } while (cursor);
1826
+ return out;
1827
+ }
1828
+ function toAppFile(snapshot) {
1829
+ const { path, content } = snapshot.record.data;
1830
+ if (typeof path !== "string" || typeof content !== "string") return null;
1831
+ return {
1832
+ conversationId: snapshot.record.conversationId,
1833
+ path,
1834
+ content,
1835
+ version: snapshot.version,
1836
+ createdAt: snapshot.record.createdAt,
1837
+ updatedAt: snapshot.record.updatedAt
1838
+ };
1839
+ }
1840
+ function toSavedTool(snapshot) {
1841
+ const d = snapshot.record.data;
1842
+ if (typeof d.name !== "string" || typeof d.displayName !== "string" || typeof d.description !== "string" || typeof d.parameters !== "string" || typeof d.html !== "string" || d.conversationId !== null && typeof d.conversationId !== "string")
1843
+ return null;
1844
+ return {
1845
+ id: snapshot.record.id,
1846
+ name: d.name,
1847
+ displayName: d.displayName,
1848
+ description: d.description,
1849
+ parameters: d.parameters,
1850
+ html: d.html,
1851
+ conversationId: d.conversationId,
1852
+ version: snapshot.version,
1853
+ createdAt: snapshot.record.createdAt,
1854
+ updatedAt: snapshot.record.updatedAt
1855
+ };
1856
+ }
1857
+ async function listAppFiles(store, conversationId, signal) {
1858
+ const items = await listAll(store, "app_file", conversationId, signal);
1859
+ return items.map(toAppFile).filter((file) => file !== null);
1860
+ }
1861
+ function createAppFileIndex(store) {
1862
+ const latest = /* @__PURE__ */ new Map();
1863
+ let cursor;
1864
+ let queue = Promise.resolve();
1865
+ const catchUp = async (signal) => {
1866
+ for (; ; ) {
1867
+ const page = await store.changes(cursor, { kinds: ["app_file"], limit: 200, signal });
1868
+ for (const item of page.items) latest.set(item.record.id, item);
1869
+ cursor = page.nextCursor ?? page.changesCursor;
1870
+ if (!page.nextCursor) break;
1871
+ }
1872
+ return [...latest.values()].filter((item) => !item.record.isDeleted).map(toAppFile).filter((file) => file !== null);
1873
+ };
1874
+ return {
1875
+ list(signal) {
1876
+ const next = queue.then(() => catchUp(signal));
1877
+ queue = next.catch(() => void 0);
1878
+ return next;
1879
+ }
1880
+ };
1881
+ }
1882
+ function listEveryAppFile(store, signal) {
1883
+ return createAppFileIndex(store).list(signal);
1884
+ }
1885
+ async function getAppFile(store, conversationId, path, signal) {
1886
+ const snapshot = await store.get(
1887
+ "app_file",
1888
+ await appFileId(store, conversationId, path),
1889
+ signal
1890
+ );
1891
+ return snapshot && !snapshot.record.isDeleted ? toAppFile(snapshot) : null;
1892
+ }
1893
+ async function saveAppFile(store, file, signal) {
1894
+ const saved = await putLatest(
1895
+ store,
1896
+ {
1897
+ kind: "app_file",
1898
+ id: await appFileId(store, file.conversationId, file.path),
1899
+ conversationId: file.conversationId
1900
+ },
1901
+ { data: { path: normalizePath(file.path), content: file.content }, isDeleted: false },
1902
+ signal
1903
+ );
1904
+ return toAppFile(saved);
1905
+ }
1906
+ async function deleteAppFile(store, conversationId, path, signal) {
1907
+ await putLatest(
1908
+ store,
1909
+ { kind: "app_file", id: await appFileId(store, conversationId, path), conversationId },
1910
+ { data: {}, isDeleted: true },
1911
+ signal
1912
+ );
1913
+ }
1914
+ async function loadSavedTools(store, signal) {
1915
+ const items = await listAll(store, "saved_tool", void 0, signal);
1916
+ return items.map(toSavedTool).filter((tool) => tool !== null);
1917
+ }
1918
+ async function saveSavedTool(store, id2, tool, signal) {
1919
+ const saved = await putLatest(
1920
+ store,
1921
+ { kind: "saved_tool", id: id2, conversationId: "" },
1922
+ { data: { ...tool }, isDeleted: false },
1923
+ signal
1924
+ );
1925
+ return toSavedTool(saved);
1926
+ }
1927
+ async function deleteSavedTool(store, id2, signal) {
1928
+ await putLatest(
1929
+ store,
1930
+ { kind: "saved_tool", id: id2, conversationId: "" },
1931
+ { data: {}, isDeleted: true },
1932
+ signal
1933
+ );
1934
+ }
1935
+
1774
1936
  // src/lib/memoryEngine/vector.ts
1775
1937
  function cosineSimilarity(a, b) {
1776
1938
  if (a.length !== b.length) return 0;
@@ -1975,7 +2137,16 @@ function createNearbyRequest(options, apiPath = "/api/private-memories") {
1975
2137
  }
1976
2138
 
1977
2139
  // src/lib/chatStore/remote.ts
1978
- var kinds = /* @__PURE__ */ new Set(["conversation", "message", "summary", "project", "memory_links", "setting"]);
2140
+ var kinds = /* @__PURE__ */ new Set([
2141
+ "conversation",
2142
+ "message",
2143
+ "summary",
2144
+ "project",
2145
+ "memory_links",
2146
+ "setting",
2147
+ "app_file",
2148
+ "saved_tool"
2149
+ ]);
1979
2150
  var cipherPattern = /^enc:v\d+:(?:[0-9a-f]{2}){28,}$/i;
1980
2151
  var maxPayload = 2 * 1024 * 1024;
1981
2152
  var storedDims = 1536;
@@ -2032,7 +2203,7 @@ function validRecord(value) {
2032
2203
  return root ? value.conversationId === "" : id(value.conversationId);
2033
2204
  }
2034
2205
  function rootKind(kind) {
2035
- return kind === "conversation" || kind === "project" || kind === "setting";
2206
+ return kind === "conversation" || kind === "project" || kind === "setting" || kind === "saved_tool";
2036
2207
  }
2037
2208
  function embeddings(write) {
2038
2209
  if (write.embeddings === void 0) return true;
@@ -2113,6 +2284,7 @@ async function createRemoteChatStore(options) {
2113
2284
  const keyId = options.keyId;
2114
2285
  const encrypt = options.encrypt;
2115
2286
  const decrypt = options.decrypt;
2287
+ const hashTopic = options.hashTopic;
2116
2288
  const nearby = createNearbyRequest({ ...options }, "/api/private-chats");
2117
2289
  const request = async (...args) => {
2118
2290
  try {
@@ -2163,7 +2335,9 @@ async function createRemoteChatStore(options) {
2163
2335
  JSON.stringify({ schema: 1, account_id: accountId, key_id: keyId, record: record2 })
2164
2336
  );
2165
2337
  signal?.throwIfAborted();
2166
- if (!cipherPattern.test(payload) || payload.length > maxPayload) invalid();
2338
+ if (!cipherPattern.test(payload)) invalid();
2339
+ if (payload.length > maxPayload)
2340
+ throw new ChatStoreError("Encrypted chat record is too large", 413, "record_too_large");
2167
2341
  return payload;
2168
2342
  };
2169
2343
  const capture = (items, max, signal) => {
@@ -2444,6 +2618,7 @@ async function createRemoteChatStore(options) {
2444
2618
  if (!object(value) || !integer(value.deleted)) invalid();
2445
2619
  return value.deleted;
2446
2620
  },
2621
+ ...hashTopic ? { sealedId: (value) => hashTopic(`record-id\0${value}`) } : {},
2447
2622
  attachments: {
2448
2623
  async create(sizeBytes, signal) {
2449
2624
  if (!integer(sizeBytes, 1) || sizeBytes > maxAttachmentBytes) invalid();
@@ -2520,8 +2695,87 @@ var emptyMessage = {
2520
2695
  data: {}
2521
2696
  };
2522
2697
 
2698
+ // src/lib/chatStore/seedAppFiles.ts
2699
+ var maxSeedAttempts = 3;
2700
+ async function rawRows(database, table) {
2701
+ const rows = await database.get(table).query().fetch();
2702
+ return rows.map((row) => row._raw);
2703
+ }
2704
+ async function seedRecord(store, target, device, signal) {
2705
+ for (let attempt = 1; ; attempt++) {
2706
+ const current = await store.get(target.kind, target.id, signal);
2707
+ if (current && (current.record.isDeleted || current.record.updatedAt >= device.updatedAt))
2708
+ return false;
2709
+ try {
2710
+ await store.putMany(
2711
+ [
2712
+ {
2713
+ record: {
2714
+ ...target,
2715
+ sortKey: 0,
2716
+ createdAt: current?.record.createdAt ?? device.createdAt,
2717
+ updatedAt: device.updatedAt,
2718
+ isDeleted: false,
2719
+ data: device.data
2720
+ },
2721
+ expectedVersion: current?.version ?? 0
2722
+ }
2723
+ ],
2724
+ signal
2725
+ );
2726
+ return true;
2727
+ } catch (error) {
2728
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSeedAttempts)
2729
+ throw error;
2730
+ }
2731
+ }
2732
+ }
2733
+ function leftOnDevice(error, result) {
2734
+ if (!(error instanceof ChatStoreError)) return false;
2735
+ if (error.code === "conversation_not_found") result.orphaned++;
2736
+ else if (error.code === "record_too_large") result.tooLarge++;
2737
+ else return false;
2738
+ return true;
2739
+ }
2740
+ async function seedAppFilesToVault(database, store, signal) {
2741
+ const result = { appFiles: 0, savedTools: 0, orphaned: 0, tooLarge: 0 };
2742
+ for (const file of await rawRows(database, "app_files")) {
2743
+ try {
2744
+ const target = {
2745
+ kind: "app_file",
2746
+ id: await appFileId(store, file.conversation_id, file.path),
2747
+ conversationId: file.conversation_id
2748
+ };
2749
+ const data = { path: normalizePath(file.path), content: file.content };
2750
+ const device = { data, createdAt: file.created_at, updatedAt: file.updated_at };
2751
+ if (await seedRecord(store, target, device, signal)) result.appFiles++;
2752
+ } catch (error) {
2753
+ if (!leftOnDevice(error, result)) throw error;
2754
+ }
2755
+ }
2756
+ for (const tool of await rawRows(database, "saved_tools")) {
2757
+ if (tool.is_deleted) continue;
2758
+ try {
2759
+ const data = {
2760
+ name: tool.name,
2761
+ displayName: tool.display_name,
2762
+ description: tool.description,
2763
+ parameters: tool.parameters,
2764
+ html: tool.html,
2765
+ conversationId: tool.conversation_id || null
2766
+ };
2767
+ const target = { kind: "saved_tool", id: tool.id, conversationId: "" };
2768
+ const device = { data, createdAt: tool.created_at, updatedAt: tool.updated_at };
2769
+ if (await seedRecord(store, target, device, signal)) result.savedTools++;
2770
+ } catch (error) {
2771
+ if (!leftOnDevice(error, result)) throw error;
2772
+ }
2773
+ }
2774
+ return result;
2775
+ }
2776
+
2523
2777
  // src/lib/chatStore/settings.ts
2524
- var maxSaveAttempts = 3;
2778
+ var maxSaveAttempts2 = 3;
2525
2779
  function toSetting(snapshot) {
2526
2780
  if (snapshot.record.isDeleted) return null;
2527
2781
  return {
@@ -2570,7 +2824,7 @@ async function saveSetting(store, section, data, signal) {
2570
2824
  );
2571
2825
  return toSetting(saved);
2572
2826
  } catch (error) {
2573
- if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts)
2827
+ if (!(error instanceof ChatStoreError) || error.code !== "version_conflict" || attempt >= maxSaveAttempts2)
2574
2828
  throw error;
2575
2829
  }
2576
2830
  }
@@ -4740,6 +4994,7 @@ export {
4740
4994
  analyzeStyle,
4741
4995
  anumaLastReadSortKey,
4742
4996
  anumaTurnContent,
4997
+ appFileId,
4743
4998
  applyToolSets,
4744
4999
  attachFileContextToLastUserMessage,
4745
5000
  buildAttachedFilesText,
@@ -4750,6 +5005,7 @@ export {
4750
5005
  consoleLogger,
4751
5006
  cosineInt8,
4752
5007
  countUnreadAnumaTurns,
5008
+ createAppFileIndex,
4753
5009
  createRemoteChatStore,
4754
5010
  createServerToolsFilter,
4755
5011
  createStreamingDeAnonymizer,
@@ -4767,6 +5023,8 @@ export {
4767
5023
  deleteApiV1DeveloperAppsByAppUuidPrivy,
4768
5024
  deleteApiV1UserApiKeysByKeyId,
4769
5025
  deleteApiV1WalletsBindingByAddress,
5026
+ deleteAppFile,
5027
+ deleteSavedTool,
4770
5028
  dequantizeEmbedding,
4771
5029
  encodeChunkVector,
4772
5030
  ensureAnumaConversation,
@@ -4806,6 +5064,7 @@ export {
4806
5064
  getApiV1WalletsBinding,
4807
5065
  getApiV1ZetaCreditRate,
4808
5066
  getApiV1ZetaMarket,
5067
+ getAppFile,
4809
5068
  getCostMicroUsd,
4810
5069
  getCreditsUsed,
4811
5070
  getHealth,
@@ -4814,6 +5073,9 @@ export {
4814
5073
  getToolCallEvents,
4815
5074
  isAttachedFilesText,
4816
5075
  isPiiRedactor,
5076
+ listAppFiles,
5077
+ listEveryAppFile,
5078
+ loadSavedTools,
4817
5079
  loadSettings,
4818
5080
  markAnumaRead,
4819
5081
  noopLogger,
@@ -4859,7 +5121,10 @@ export {
4859
5121
  renderTemplate,
4860
5122
  resolvePiiRedactor,
4861
5123
  sanitizeQuotes,
5124
+ saveAppFile,
5125
+ saveSavedTool,
4862
5126
  saveSetting,
5127
+ seedAppFilesToVault,
4863
5128
  selectServerSideTools,
4864
5129
  setLogger,
4865
5130
  shouldAnalyzeStyle,