@anuma/sdk 8.0.2 → 8.1.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.
@@ -1459,6 +1459,7 @@ __export(index_exports, {
1459
1459
  RemoteMemoryPartialCreateError: () => RemoteMemoryPartialCreateError,
1460
1460
  RerankerUnavailableError: () => RerankerUnavailableError,
1461
1461
  SDK_SCHEMA_VERSION: () => SDK_SCHEMA_VERSION,
1462
+ SELECT_PAYMENT_WALLET_TOOL_NAME: () => SELECT_PAYMENT_WALLET_TOOL_NAME,
1462
1463
  SERVER_TOOL_DEPENDENCY_SETS: () => SERVER_TOOL_DEPENDENCY_SETS,
1463
1464
  SHORT_TTL_MS: () => SHORT_TTL_MS,
1464
1465
  SLIDER_CONFIG: () => SLIDER_CONFIG,
@@ -1483,6 +1484,7 @@ __export(index_exports, {
1483
1484
  TextProcessor: () => TextProcessor,
1484
1485
  UIInteractionProvider: () => UIInteractionProvider,
1485
1486
  VAULT_SIZE_HOP_CAP: () => VAULT_SIZE_HOP_CAP,
1487
+ WALLET_PAYMENT_TOOL_NAME: () => WALLET_PAYMENT_TOOL_NAME,
1486
1488
  WalletPoller: () => WalletPoller,
1487
1489
  WatermelonChatStorageAdapter: () => WatermelonChatStorageAdapter,
1488
1490
  WordProcessor: () => WordProcessor,
@@ -1549,12 +1551,14 @@ __export(index_exports, {
1549
1551
  createRemoteMemoryPipeline: () => createRemoteMemoryPipeline,
1550
1552
  createRemoteMemoryStore: () => createRemoteMemoryStore,
1551
1553
  createSavedToolOp: () => createSavedToolOp,
1554
+ createSelectPaymentWalletTool: () => createSelectPaymentWalletTool,
1552
1555
  createServerToolsFilter: () => createServerToolsFilter,
1553
1556
  createStockPricePreProcessor: () => createStockPricePreProcessor,
1554
1557
  createVaultEmbeddingCache: () => createVaultEmbeddingCache,
1555
1558
  createVaultFolderOp: () => createVaultFolderOp,
1556
1559
  createVaultMemoriesBatchOp: () => createVaultMemoriesBatchOp,
1557
1560
  createVaultMemoryOp: () => createVaultMemoryOp,
1561
+ createWalletPaymentTool: () => createWalletPaymentTool,
1558
1562
  createWeatherPreProcessor: () => createWeatherPreProcessor,
1559
1563
  createWebSearchPreProcessor: () => createWebSearchPreProcessor,
1560
1564
  decodeChunkVector: () => decodeChunkVector,
@@ -7281,6 +7285,17 @@ function missingConfirmFields(action, parameters) {
7281
7285
  return requirement.fields.filter((field10) => !shown.has(field10));
7282
7286
  }
7283
7287
 
7288
+ // src/tools/walletPaymentConstants.ts
7289
+ var SELECT_PAYMENT_WALLET_TOOL_NAME = "select_payment_wallet";
7290
+ var WALLET_PAYMENT_TOOL_NAME = "prompt_wallet_payment";
7291
+ var FLIGHT_BOOK_TOOL_SET = "flight-book";
7292
+ var FLIGHT_SERVER_TOOL_NAMES = [
7293
+ "AnumaPaymentsMCP-anuma_search_flights",
7294
+ "AnumaPaymentsMCP-anuma_flight_offer_details",
7295
+ "AnumaPaymentsMCP-anuma_create_flight_intent",
7296
+ "AnumaPaymentsMCP-anuma_get_flight_booking"
7297
+ ];
7298
+
7284
7299
  // src/lib/chat/toolLoop.ts
7285
7300
  init_redactor();
7286
7301
 
@@ -8057,7 +8072,8 @@ var BUILT_IN_TOOL_SETS = [
8057
8072
  "AnumaPaymentsMCP-anuma_cancel_reservation"
8058
8073
  ],
8059
8074
  anchors: []
8060
- }
8075
+ },
8076
+ { name: FLIGHT_BOOK_TOOL_SET, members: [...FLIGHT_SERVER_TOOL_NAMES], anchors: [] }
8061
8077
  ];
8062
8078
  var CONFIRMED_ACTION_TOOL_SETS = /* @__PURE__ */ new Map([
8063
8079
  ["book_restaurant", "restaurant-book"],
@@ -8189,6 +8205,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
8189
8205
  members: ["AnumaPaymentsMCP-anuma_list_reservations"],
8190
8206
  anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
8191
8207
  anchorMinSimilarity: 0.5
8208
+ },
8209
+ {
8210
+ name: "flight-book-lookup",
8211
+ members: [
8212
+ "AnumaPaymentsMCP-anuma_flight_offer_details",
8213
+ "AnumaPaymentsMCP-anuma_create_flight_intent",
8214
+ "AnumaPaymentsMCP-anuma_get_flight_booking"
8215
+ ],
8216
+ anchors: ["AnumaPaymentsMCP-anuma_search_flights"],
8217
+ anchorMinSimilarity: 0.5
8192
8218
  }
8193
8219
  ];
8194
8220
  var defaultServerToolsFilter = createServerToolsFilter({
@@ -10502,7 +10528,14 @@ function getToolName(tool) {
10502
10528
  function toolsAfterConfirmation(apiTools, executionResults) {
10503
10529
  const members = /* @__PURE__ */ new Set();
10504
10530
  let keepConfirm = false;
10531
+ let keepPaymentTools = false;
10505
10532
  for (const r of executionResults) {
10533
+ if (r.name === SELECT_PAYMENT_WALLET_TOOL_NAME && r.result?.confirmed === true) {
10534
+ const flightSet = BUILT_IN_TOOL_SETS.find((s) => s.name === FLIGHT_BOOK_TOOL_SET);
10535
+ for (const member of flightSet?.members ?? []) members.add(member);
10536
+ keepPaymentTools = true;
10537
+ continue;
10538
+ }
10506
10539
  if (r.name !== CONFIRM_TOOL_NAME) continue;
10507
10540
  const answer = r.result;
10508
10541
  if (answer?.confirmed !== true || typeof answer.action !== "string") continue;
@@ -10514,7 +10547,7 @@ function toolsAfterConfirmation(apiTools, executionResults) {
10514
10547
  if (!apiTools.some((t) => members.has(getToolName(t) ?? ""))) return void 0;
10515
10548
  return apiTools.filter((t) => {
10516
10549
  const name = getToolName(t) ?? "";
10517
- return members.has(name) || name === TOOL_SEARCH_TOOL_NAME || keepConfirm && name === CONFIRM_TOOL_NAME;
10550
+ return members.has(name) || name === TOOL_SEARCH_TOOL_NAME || keepConfirm && name === CONFIRM_TOOL_NAME || keepPaymentTools && (name === SELECT_PAYMENT_WALLET_TOOL_NAME || name === WALLET_PAYMENT_TOOL_NAME);
10518
10551
  });
10519
10552
  }
10520
10553
  var STREAM_RESUMABLE_HEADER = "X-Stream-Resumable";
@@ -13236,6 +13269,9 @@ __decorateClass([
13236
13269
  __decorateClass([
13237
13270
  (0, import_decorators10.text)("personality")
13238
13271
  ], UserPreference.prototype, "personality", 2);
13272
+ __decorateClass([
13273
+ (0, import_decorators10.text)("external_wallets")
13274
+ ], UserPreference.prototype, "externalWallets", 2);
13239
13275
  __decorateClass([
13240
13276
  (0, import_decorators10.field)("created_at")
13241
13277
  ], UserPreference.prototype, "createdAt", 2);
@@ -13273,7 +13309,7 @@ __decorateClass([
13273
13309
  ], VaultFolder.prototype, "context", 2);
13274
13310
 
13275
13311
  // src/lib/db/schema.ts
13276
- var SDK_SCHEMA_VERSION = 48;
13312
+ var SDK_SCHEMA_VERSION = 49;
13277
13313
  var sdkSchema = (0, import_watermelondb20.appSchema)({
13278
13314
  version: SDK_SCHEMA_VERSION,
13279
13315
  tables: [
@@ -13359,6 +13395,7 @@ var sdkSchema = (0, import_watermelondb20.appSchema)({
13359
13395
  { name: "description", type: "string", isOptional: true },
13360
13396
  { name: "models", type: "string", isOptional: true },
13361
13397
  { name: "personality", type: "string", isOptional: true },
13398
+ { name: "external_wallets", type: "string", isOptional: true },
13362
13399
  { name: "created_at", type: "number" },
13363
13400
  { name: "updated_at", type: "number" }
13364
13401
  ]
@@ -14063,6 +14100,15 @@ var sdkMigrations = (0, import_migrations2.schemaMigrations)({
14063
14100
  "UPDATE memory_vault SET level = CASE WHEN scope IN ('shared', 'public') THEN 'matching' ELSE 'private' END WHERE level IS NULL;"
14064
14101
  )
14065
14102
  ]
14103
+ },
14104
+ {
14105
+ toVersion: 49,
14106
+ steps: [
14107
+ (0, import_migrations2.addColumns)({
14108
+ table: "userPreferences",
14109
+ columns: [{ name: "external_wallets", type: "string", isOptional: true }]
14110
+ })
14111
+ ]
14066
14112
  }
14067
14113
  ]
14068
14114
  });
@@ -17248,6 +17294,7 @@ function userPreferenceToStored(preference) {
17248
17294
  description: preference.description,
17249
17295
  models: preference.models,
17250
17296
  personality: preference.personality,
17297
+ externalWallets: preference.externalWallets,
17251
17298
  createdAt: preference.createdAt,
17252
17299
  updatedAt: preference.updatedAt
17253
17300
  };
@@ -17266,6 +17313,7 @@ async function createUserPreferenceOp(ctx, opts) {
17266
17313
  if (opts.description) pref._setRaw("description", opts.description);
17267
17314
  if (opts.models) pref._setRaw("models", opts.models);
17268
17315
  if (opts.personality) pref._setRaw("personality", opts.personality);
17316
+ if (opts.externalWallets) pref._setRaw("external_wallets", opts.externalWallets);
17269
17317
  pref._setRaw("created_at", now);
17270
17318
  pref._setRaw("updated_at", now);
17271
17319
  });
@@ -17293,6 +17341,9 @@ async function updateUserPreferenceOp(ctx, walletAddress, opts) {
17293
17341
  if (opts.personality !== void 0) {
17294
17342
  pref._setRaw("personality", opts.personality || null);
17295
17343
  }
17344
+ if (opts.externalWallets !== void 0) {
17345
+ pref._setRaw("external_wallets", opts.externalWallets || null);
17346
+ }
17296
17347
  pref._setRaw("updated_at", Date.now());
17297
17348
  });
17298
17349
  });
@@ -17320,6 +17371,9 @@ async function setUserPreferenceOp(ctx, walletAddress, opts) {
17320
17371
  if (opts.personality !== void 0) {
17321
17372
  pref._setRaw("personality", opts.personality || null);
17322
17373
  }
17374
+ if (opts.externalWallets !== void 0) {
17375
+ pref._setRaw("external_wallets", opts.externalWallets || null);
17376
+ }
17323
17377
  pref._setRaw("updated_at", now);
17324
17378
  });
17325
17379
  return preference;
@@ -17331,6 +17385,7 @@ async function setUserPreferenceOp(ctx, walletAddress, opts) {
17331
17385
  if (opts.description) pref._setRaw("description", opts.description);
17332
17386
  if (opts.models) pref._setRaw("models", opts.models);
17333
17387
  if (opts.personality) pref._setRaw("personality", opts.personality);
17388
+ if (opts.externalWallets) pref._setRaw("external_wallets", opts.externalWallets);
17334
17389
  pref._setRaw("created_at", now);
17335
17390
  pref._setRaw("updated_at", now);
17336
17391
  });
@@ -17421,6 +17476,7 @@ var userPreferencesStorageSchema = (0, import_watermelondb30.appSchema)({
17421
17476
  { name: "description", type: "string", isOptional: true },
17422
17477
  { name: "models", type: "string", isOptional: true },
17423
17478
  { name: "personality", type: "string", isOptional: true },
17479
+ { name: "external_wallets", type: "string", isOptional: true },
17424
17480
  { name: "created_at", type: "number" },
17425
17481
  { name: "updated_at", type: "number" }
17426
17482
  ]
@@ -29537,7 +29593,7 @@ function computeToolGuidance(selectedServerTools, selectedClientTools, extraTool
29537
29593
  async function autoFilterClientTools(clientTools, promptEmbeddings, cache, embeddingOptions, extraToolSets = [], activeToolSets = [], noEmbeddingsReason = "short-prompt") {
29538
29594
  const isAlwaysIncluded = (t) => {
29539
29595
  const name = getToolName2(t);
29540
- return name.startsWith("memory_vault_") || name === RECALL_TOOL_NAME || name === CONFIRM_TOOL_NAME;
29596
+ return name.startsWith("memory_vault_") || name === RECALL_TOOL_NAME || name === CONFIRM_TOOL_NAME || name === SELECT_PAYMENT_WALLET_TOOL_NAME || name === WALLET_PAYMENT_TOOL_NAME;
29541
29597
  };
29542
29598
  const alwaysInclude = clientTools.filter(isAlwaysIncluded);
29543
29599
  const filterCandidates = clientTools.filter((t) => !isAlwaysIncluded(t));
@@ -29549,7 +29605,7 @@ async function autoFilterClientTools(clientTools, promptEmbeddings, cache, embed
29549
29605
  }
29550
29606
  if (!promptEmbeddings) {
29551
29607
  if (activeToolSets.length === 0) {
29552
- return { tools: [], activatedSetNames: /* @__PURE__ */ new Set(), matchedSetNames: /* @__PURE__ */ new Set() };
29608
+ return { tools: alwaysInclude, activatedSetNames: /* @__PURE__ */ new Set(), matchedSetNames: /* @__PURE__ */ new Set() };
29553
29609
  }
29554
29610
  const allSets = extraToolSets.length > 0 ? [...BUILT_IN_TOOL_SETS, ...extraToolSets] : BUILT_IN_TOOL_SETS;
29555
29611
  const activeSets = allSets.filter((s) => activeToolSets.includes(s.name));
@@ -30634,6 +30690,177 @@ function migrateDisplayResult(result, fromVersion, toVersion, migrations) {
30634
30690
  }
30635
30691
  return current;
30636
30692
  }
30693
+ function generateInteractionId(prefix) {
30694
+ return `${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 11)}`;
30695
+ }
30696
+ function createInteractiveTool(options, config) {
30697
+ return {
30698
+ type: "function",
30699
+ function: {
30700
+ name: config.name,
30701
+ description: config.description,
30702
+ arguments: config.parameters
30703
+ },
30704
+ executor: async (args, signal) => {
30705
+ if (config.validate && !config.validate(args)) {
30706
+ return { cancelled: true };
30707
+ }
30708
+ const context = options.getContext();
30709
+ if (!context) {
30710
+ return { cancelled: true };
30711
+ }
30712
+ const interactionId = generateInteractionId(config.interactionType);
30713
+ const interactionData = config.mapArgs ? config.mapArgs(args) : args;
30714
+ const onAbort = () => context.cancelInteraction?.(interactionId);
30715
+ signal?.addEventListener("abort", onAbort, { once: true });
30716
+ try {
30717
+ const result = await context.createInteraction(interactionId, config.interactionType, {
30718
+ ...interactionData,
30719
+ afterMessageId: options.getLastMessageId?.()
30720
+ });
30721
+ if (config.mapResult) {
30722
+ return config.mapResult(result, args);
30723
+ }
30724
+ return result;
30725
+ } catch {
30726
+ return { cancelled: true };
30727
+ } finally {
30728
+ signal?.removeEventListener("abort", onAbort);
30729
+ }
30730
+ },
30731
+ executorTimeout: Infinity
30732
+ };
30733
+ }
30734
+
30735
+ // src/tools/walletPayment.ts
30736
+ var CANCELLED = { cancelled: true };
30737
+ function isNonEmptyString(value) {
30738
+ return typeof value === "string" && value.length > 0;
30739
+ }
30740
+ function hasPassengers(value) {
30741
+ return Array.isArray(value?.passengers);
30742
+ }
30743
+ function createSelectPaymentWalletTool(options) {
30744
+ const tool = createInteractiveTool(options, {
30745
+ name: SELECT_PAYMENT_WALLET_TOOL_NAME,
30746
+ description: "Show the user a card with the flight offer and their wallets, and let them pick the wallet to pay from. Call it after anuma_flight_offer_details, with the exact offer id, price and currency from that result. Returns the chosen wallet, or that the user declined.",
30747
+ parameters: {
30748
+ type: "object",
30749
+ properties: {
30750
+ offer_id: {
30751
+ type: "string",
30752
+ description: "The offer id from anuma_flight_offer_details"
30753
+ },
30754
+ summary: {
30755
+ type: "string",
30756
+ description: "Route, dates and fare of the offer, as shown to the user"
30757
+ },
30758
+ amount: {
30759
+ type: "string",
30760
+ description: "Total price of the offer, e.g. '412.50'"
30761
+ },
30762
+ currency: {
30763
+ type: "string",
30764
+ description: "Currency of the price, e.g. 'USD'"
30765
+ }
30766
+ },
30767
+ required: ["offer_id", "amount", "currency"]
30768
+ },
30769
+ interactionType: "select_payment_wallet",
30770
+ validate: (args) => isNonEmptyString(args.offer_id),
30771
+ mapArgs: ({ offer_id, summary, amount, currency, wallets }) => ({
30772
+ offer_id,
30773
+ summary,
30774
+ amount,
30775
+ currency,
30776
+ wallets
30777
+ }),
30778
+ mapResult: (result, args) => {
30779
+ if (result?.confirmed === true && isNonEmptyString(result.funding_wallet)) {
30780
+ return {
30781
+ confirmed: true,
30782
+ offer_id: args.offer_id,
30783
+ funding_wallet: result.funding_wallet
30784
+ };
30785
+ }
30786
+ if (result?.confirmed === false) return { confirmed: false };
30787
+ return CANCELLED;
30788
+ }
30789
+ });
30790
+ const showCard = tool.executor;
30791
+ return {
30792
+ ...tool,
30793
+ executor: async (args, signal) => {
30794
+ if (!isNonEmptyString(args.offer_id)) return CANCELLED;
30795
+ let wallets;
30796
+ try {
30797
+ wallets = await options.listWallets();
30798
+ } catch {
30799
+ return { error_code: "wallets_unavailable", retryable: true };
30800
+ }
30801
+ if (signal?.aborted) return CANCELLED;
30802
+ return showCard?.({ ...args, wallets }, signal);
30803
+ }
30804
+ };
30805
+ }
30806
+ function createWalletPaymentTool(options) {
30807
+ const tool = createInteractiveTool(options, {
30808
+ name: WALLET_PAYMENT_TOOL_NAME,
30809
+ description: "Show the user a card to enter the passengers, then pay the flight booking from the wallet they chose. Call it after anuma_create_flight_intent, with the provider and reference from that result. Returns whether the payment went through.",
30810
+ parameters: {
30811
+ type: "object",
30812
+ properties: {
30813
+ provider: {
30814
+ type: "string",
30815
+ description: "The payment provider from anuma_create_flight_intent"
30816
+ },
30817
+ reference: {
30818
+ type: "string",
30819
+ description: "The payment reference from anuma_create_flight_intent"
30820
+ },
30821
+ passenger_count: {
30822
+ type: "integer",
30823
+ minimum: 1,
30824
+ description: "How many passengers the booking is for"
30825
+ }
30826
+ },
30827
+ required: ["provider", "reference", "passenger_count"]
30828
+ },
30829
+ interactionType: "prompt_wallet_payment",
30830
+ validate: (args) => isNonEmptyString(args.provider) && isNonEmptyString(args.reference) && Number.isInteger(args.passenger_count) && args.passenger_count >= 1,
30831
+ mapArgs: ({ provider, reference, passenger_count }) => ({
30832
+ provider,
30833
+ reference,
30834
+ passenger_count
30835
+ }),
30836
+ mapResult: (result) => hasPassengers(result) ? { passengers: result.passengers } : CANCELLED
30837
+ });
30838
+ const showCard = tool.executor;
30839
+ return {
30840
+ ...tool,
30841
+ executor: async (args, signal) => {
30842
+ const answer = await showCard?.(args, signal);
30843
+ if (!hasPassengers(answer) || signal?.aborted) return CANCELLED;
30844
+ const provider = args.provider;
30845
+ const reference = args.reference;
30846
+ let outcome2;
30847
+ try {
30848
+ outcome2 = await options.pay({ provider, reference, passengers: answer.passengers }, signal);
30849
+ } catch {
30850
+ return { paid: false, error_code: "payment_failed", retryable: false };
30851
+ }
30852
+ if (outcome2.paid) {
30853
+ return {
30854
+ paid: true,
30855
+ provider: outcome2.provider,
30856
+ reference: outcome2.reference,
30857
+ status: outcome2.status
30858
+ };
30859
+ }
30860
+ return { paid: false, error_code: outcome2.error_code, retryable: outcome2.retryable };
30861
+ }
30862
+ };
30863
+ }
30637
30864
 
30638
30865
  // src/react/anumaRuntime.tsx
30639
30866
  var React = __toESM(require("react"));
@@ -37070,6 +37297,7 @@ function startObserve(entry, walletAddress) {
37070
37297
  "description",
37071
37298
  "models",
37072
37299
  "personality",
37300
+ "external_wallets",
37073
37301
  "updated_at"
37074
37302
  ]).subscribe({
37075
37303
  next: (records) => {
@@ -37084,6 +37312,7 @@ function startObserve(entry, walletAddress) {
37084
37312
  description: record2.description,
37085
37313
  models: record2.models,
37086
37314
  personality: record2.personality,
37315
+ externalWallets: record2.externalWallets,
37087
37316
  createdAt: record2.createdAt,
37088
37317
  updatedAt: record2.updatedAt
37089
37318
  }
@@ -38304,6 +38533,7 @@ function useWalletBinding(options = {}) {
38304
38533
  RemoteMemoryPartialCreateError,
38305
38534
  RerankerUnavailableError,
38306
38535
  SDK_SCHEMA_VERSION,
38536
+ SELECT_PAYMENT_WALLET_TOOL_NAME,
38307
38537
  SERVER_TOOL_DEPENDENCY_SETS,
38308
38538
  SHORT_TTL_MS,
38309
38539
  SLIDER_CONFIG,
@@ -38328,6 +38558,7 @@ function useWalletBinding(options = {}) {
38328
38558
  TextProcessor,
38329
38559
  UIInteractionProvider,
38330
38560
  VAULT_SIZE_HOP_CAP,
38561
+ WALLET_PAYMENT_TOOL_NAME,
38331
38562
  WalletPoller,
38332
38563
  WatermelonChatStorageAdapter,
38333
38564
  WordProcessor,
@@ -38394,12 +38625,14 @@ function useWalletBinding(options = {}) {
38394
38625
  createRemoteMemoryPipeline,
38395
38626
  createRemoteMemoryStore,
38396
38627
  createSavedToolOp,
38628
+ createSelectPaymentWalletTool,
38397
38629
  createServerToolsFilter,
38398
38630
  createStockPricePreProcessor,
38399
38631
  createVaultEmbeddingCache,
38400
38632
  createVaultFolderOp,
38401
38633
  createVaultMemoriesBatchOp,
38402
38634
  createVaultMemoryOp,
38635
+ createWalletPaymentTool,
38403
38636
  createWeatherPreProcessor,
38404
38637
  createWebSearchPreProcessor,
38405
38638
  decodeChunkVector,
@@ -9221,7 +9221,7 @@ declare function clearConversationMemoriesOp(ctx: ConversationMemoryOperationsCo
9221
9221
  * - v48: Added kind, kind_value (encrypted) and level to memory_vault; level is
9222
9222
  * backfilled from scope where SQL steps run
9223
9223
  */
9224
- declare const SDK_SCHEMA_VERSION = 48;
9224
+ declare const SDK_SCHEMA_VERSION = 49;
9225
9225
  /**
9226
9226
  * Combined WatermelonDB schema for all SDK storage modules.
9227
9227
  *
@@ -10289,6 +10289,7 @@ declare class UserPreference extends Model {
10289
10289
  description?: string;
10290
10290
  models?: string;
10291
10291
  personality?: string;
10292
+ externalWallets?: string;
10292
10293
  createdAt: number;
10293
10294
  updatedAt: number;
10294
10295
  }
@@ -10342,6 +10343,8 @@ interface StoredUserPreference {
10342
10343
  description?: string;
10343
10344
  models?: string;
10344
10345
  personality?: string;
10346
+ /** JSON array of the user's saved external wallets, stored as given. */
10347
+ externalWallets?: string;
10345
10348
  createdAt: number;
10346
10349
  updatedAt: number;
10347
10350
  }
@@ -10355,6 +10358,7 @@ interface CreateUserPreferenceOptions {
10355
10358
  description?: string;
10356
10359
  models?: string;
10357
10360
  personality?: string;
10361
+ externalWallets?: string;
10358
10362
  }
10359
10363
  /**
10360
10364
  * Options for updating an existing user preference record
@@ -10365,6 +10369,7 @@ interface UpdateUserPreferenceOptions {
10365
10369
  description?: string;
10366
10370
  models?: string;
10367
10371
  personality?: string;
10372
+ externalWallets?: string;
10368
10373
  }
10369
10374
  /**
10370
10375
  * Profile-only update options
@@ -13352,6 +13357,26 @@ type ThemeAttr = (typeof THEME_ATTRS)[number];
13352
13357
  /** Canonical storage path for the slide deck, relative to a conversation. */
13353
13358
  declare const SLIDES_FILE_PATH = "slides.jsx";
13354
13359
 
13360
+ /**
13361
+ * Minimal context interface required by tool factories.
13362
+ * Matches the methods provided by UIInteractionProvider.
13363
+ */
13364
+ type UIInteractionContext = {
13365
+ createInteraction: (id: string, type: string, data: unknown) => Promise<unknown>;
13366
+ /** Rejects and removes a pending interaction. Optional for older contexts. */
13367
+ cancelInteraction?: (id: string) => void;
13368
+ createDisplayInteraction: (id: string, displayType: string, data: unknown, result: unknown, toolVersion?: number, replacesInteractionId?: string) => void;
13369
+ };
13370
+ /**
13371
+ * Options for context injection, following the same getter pattern
13372
+ * as createGoogleCalendarTool and createDriveTools.
13373
+ */
13374
+ type CreateUIToolsOptions = {
13375
+ /** Returns the current UIInteractionContext (or null if unavailable) */
13376
+ getContext: () => UIInteractionContext | null;
13377
+ /** Returns the ID of the last message in the conversation (used for anchoring) */
13378
+ getLastMessageId?: () => string | undefined;
13379
+ };
13355
13380
  /**
13356
13381
  * Migration map for a display tool.
13357
13382
  * Keys are "fromVersion->toVersion" strings (e.g. "1->2").
@@ -13385,6 +13410,96 @@ type DisplayToolMigrations = {
13385
13410
  */
13386
13411
  declare function migrateDisplayResult(result: unknown, fromVersion: number, toVersion: number, migrations: DisplayToolMigrations): unknown;
13387
13412
 
13413
+ /** A wallet the user can pay from, as the wallet picker card shows it. */
13414
+ type PaymentWallet = {
13415
+ address: string;
13416
+ chainType: "solana";
13417
+ label?: string;
13418
+ walletName?: string;
13419
+ usdcBalance?: string;
13420
+ builtIn?: boolean;
13421
+ };
13422
+ /** What the wallet picker returns to the model. */
13423
+ type SelectPaymentWalletResult = {
13424
+ confirmed: true;
13425
+ offer_id: string;
13426
+ funding_wallet: string;
13427
+ } | {
13428
+ confirmed: false;
13429
+ } | {
13430
+ cancelled: true;
13431
+ } | {
13432
+ error_code: "wallets_unavailable";
13433
+ retryable: true;
13434
+ };
13435
+ /** One passenger as the payment card collects it. */
13436
+ type WalletPaymentPassenger = Record<string, unknown>;
13437
+ /** What the caller's `pay` function receives once the user has filled in the payment card. */
13438
+ type WalletPaymentRequest = {
13439
+ provider: string;
13440
+ reference: string;
13441
+ passengers: WalletPaymentPassenger[];
13442
+ };
13443
+ /** What the caller's `pay` function resolves with. */
13444
+ type WalletPaymentOutcome = {
13445
+ paid: true;
13446
+ provider: string;
13447
+ reference: string;
13448
+ status: string;
13449
+ } | {
13450
+ paid: false;
13451
+ error_code: string;
13452
+ retryable: boolean;
13453
+ };
13454
+ /** What the payment tool returns to the model. */
13455
+ type WalletPaymentResult = WalletPaymentOutcome | {
13456
+ cancelled: true;
13457
+ };
13458
+ /** Options for {@link createSelectPaymentWalletTool}. */
13459
+ type CreateSelectPaymentWalletToolOptions = CreateUIToolsOptions & {
13460
+ listWallets: () => Promise<PaymentWallet[]>;
13461
+ };
13462
+ /** Options for {@link createWalletPaymentTool}. */
13463
+ type CreateWalletPaymentToolOptions = CreateUIToolsOptions & {
13464
+ /** Pays the booking: if `signal` fires before submitting, stop there; if it fires after submitting, show the user the real outcome, because the tool result will read cancelled. */
13465
+ pay: (request: WalletPaymentRequest, signal?: AbortSignal) => Promise<WalletPaymentOutcome>;
13466
+ };
13467
+ /**
13468
+ * Create the select_payment_wallet tool, which shows the user's wallets for a flight offer and returns the one they chose.
13469
+ *
13470
+ * @example
13471
+ * ```typescript
13472
+ * import { createSelectPaymentWalletTool } from "@anuma/sdk/tools";
13473
+ *
13474
+ * const selectWalletTool = createSelectPaymentWalletTool({
13475
+ * getContext: () => uiInteraction,
13476
+ * getLastMessageId: () => lastMsgId,
13477
+ * listWallets: async () => wallets,
13478
+ * });
13479
+ * ```
13480
+ */
13481
+ declare function createSelectPaymentWalletTool(options: CreateSelectPaymentWalletToolOptions): ToolConfig;
13482
+ /**
13483
+ * Create the prompt_wallet_payment tool, which collects the passengers on a card and then pays the booking through the caller's `pay` function.
13484
+ *
13485
+ * @example
13486
+ * ```typescript
13487
+ * import { createWalletPaymentTool } from "@anuma/sdk/tools";
13488
+ *
13489
+ * const paymentTool = createWalletPaymentTool({
13490
+ * getContext: () => uiInteraction,
13491
+ * getLastMessageId: () => lastMsgId,
13492
+ * pay: (request, signal) => payFromWallet(request, signal),
13493
+ * });
13494
+ * ```
13495
+ */
13496
+ declare function createWalletPaymentTool(options: CreateWalletPaymentToolOptions): ToolConfig;
13497
+
13498
+ /** Name of the client tool that shows the wallet picker card for a flight payment. */
13499
+ declare const SELECT_PAYMENT_WALLET_TOOL_NAME = "select_payment_wallet";
13500
+ /** Name of the client tool that collects passengers and pays a booking from the chosen wallet. */
13501
+ declare const WALLET_PAYMENT_TOOL_NAME = "prompt_wallet_payment";
13502
+
13388
13503
  /**
13389
13504
  * Anuma JSX runtime — React components for the `<Anuma.*>` primitives.
13390
13505
  *
@@ -15626,4 +15741,4 @@ type UseWalletBindingResult = {
15626
15741
  */
15627
15742
  declare function useWalletBinding(options?: UseWalletBindingOptions): UseWalletBindingResult;
15628
15743
 
15629
- 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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, 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 ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, 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_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, 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 DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, 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 PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, 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 PublishedPhotoMemory, 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 RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, 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 StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, 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 TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, memoryCipher, migrateDisplayResult, migrateMemoriesToRemote, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };
15744
+ 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_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, CHUNKS_DISCARDED_ORIGIN, 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 ChunkSearchStats, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationAction, 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 CreateSelectPaymentWalletToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CreateWalletPaymentToolOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, 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 DurableAutoExtractorOptions, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EmbeddingRepairOptions, type EmbeddingRepairResult, EncryptionKeyMissingError, type EncryptionKeyVersion, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionMessageSource, type ExtractionSourceMessage, type ExtractionSourceStatus, type ExtractionTimings, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, INTERNAL_FLOW_MARKER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type LocalMemoryStoreOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, MEMORY_KINDS, MEMORY_LEVELS, type ManualFactType, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type MemoryCreate, type MemoryDecay, type MemoryDecaySweeperOptions, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, MemoryKeyError, type MemoryKeyRing, type MemoryKind, type MemoryLevel, MemoryLevelError, type MemoryListOptions, type MemoryMaintenance, type MemoryMigrationOptions, type MemoryMigrationProgress, type MemoryMigrationResult, type MemoryMigrationSkip, type MemoryQuarantinedEvent, type MemoryRecallOptions, type MemoryRetainOptions, type MemoryStore, type MemorySubscribeOptions, type MemoryToVerify, type MemoryTopic, type MemoryTopicBacklog, type MemoryTopicMaintenance, type MemoryUpdate, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageChunk, type MessageFeedback, type MessageOrigin, 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 PaymentWallet, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PhotoIngestResult, type PhotoMediaRef, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, 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 PublishedPhotoMemory, 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 RecallEmptyReason, type RecallOptions, type RecallResult, type RecallTelemetryCallbacks, type RecallToolCallbacks, type RecallToolOptions, type RecallTruncation, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, type RemoteMemoryCandidateOptions, type RemoteMemoryDecodeFailure, RemoteMemoryError, type RemoteMemoryListOptions, type RemoteMemoryMetadataPage, type RemoteMemoryMetadataRecord, type RemoteMemoryPage, RemoteMemoryPartialCreateError, type RemoteMemoryPersistence, type RemoteMemoryPersistenceOptions, type RemoteMemoryPipeline, type RemoteMemoryPipelineOptions, type RemoteMemoryQueryOptions, type RemoteMemoryQueryPage, type RemoteMemoryReadFilters, type RemoteMemoryRecord, type RemoteMemoryRow, type RemoteMemoryStoreOptions, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ReservationReceipt, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SELECT_PAYMENT_WALLET_TOOL_NAME, 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 SelectPaymentWalletResult, 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 StoredTopic, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, THEME_ATTRS, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TOPIC_SALIENCE_WEIGHTS, 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 TopicExtractionBatchDiagnostics, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSalience, type TopicSkipReason, type TopicSource, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UncheckedReason, type UnverifiableReason, 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 UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, 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 VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryKind, type VaultMemoryOperationsContext, type VaultMemoryProjection, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, type VoiceRecording, WALLET_PAYMENT_TOOL_NAME, type WalletPaymentOutcome, type WalletPaymentPassenger, type WalletPaymentRequest, type WalletPaymentResult, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, type WriteFailureReason, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryEntityUserIdsOp, backfillMemoryTopicsOp, buildAttachedFilesText, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearConversationMemoriesOp, clearEncryptionKey, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearModelsCache, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createLocalMemoryStore, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createPlatformCursorStore, createProjectOp, createRecallTool, createRemoteMemoryPersistence, createRemoteMemoryPipeline, createRemoteMemoryStore, createSavedToolOp, createSelectPaymentWalletTool, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWalletPaymentTool, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, decryptMessageEmbeddingFields, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteMessageOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, deriveKeyFromSignatureBytes, deriveMemoryKeyRing, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, encryptToolCallEventsOp, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, extractMCPImageUrls, extractReservationReceipts, fileExists, findById, findMatchingTools, findParentOfId, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getEncryptionKey, getEntitiesByMemoryIdsOp, 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, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasEncryptionKey, hasICloudCredentials, hasKeyPair, hasNotionCredentials, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, maskScopedEmbeddingCache, mediaToStored, memoryCipher, migrateDisplayResult, migrateMemoriesToRemote, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, parseMedia, preEmbedVaultMemories, preprocessFiles, previewToolSelection, primaryTopic, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reencryptMemoryField, reflect, refreshEncryptionKeyIfMatches, refreshNotionToken, relinkMemoryTopicsOp, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, sealLegacyMessageEmbeddingsOp, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, seedEncryptionKeys, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRecallMemory, shouldRefreshTools, stampTopicsExtractedAtOp, startNotionAuth, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, stripLegacyChunkTextOp, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, topicWeight, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useEncryption, useExportPdf, useFiles, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, verifyMemoriesForPublish, walk, webPlatformStorage, withActiveToolSetServerTools, withInternalFlowMarker, writeEncryptedFile };