@anuma/sdk 3.9.6 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expo/{chunk-FFB4CDPC.mjs → chunk-CFGUZHAY.mjs} +72 -1
- package/dist/expo/index.cjs +137 -15
- package/dist/expo/index.d.mts +88 -2
- package/dist/expo/index.d.ts +88 -2
- package/dist/expo/index.mjs +67 -15
- package/dist/expo/{recall-JA6SOQRR.mjs → recall-34WI57Z7.mjs} +1 -1
- package/dist/react/{chunk-YGCJX5YW.mjs → chunk-SCFNOAWH.mjs} +72 -1
- package/dist/react/index.cjs +137 -15
- package/dist/react/index.d.mts +88 -2
- package/dist/react/index.d.ts +88 -2
- package/dist/react/index.mjs +67 -15
- package/dist/react/{recall-ELUJPQQB.mjs → recall-GCW2EV4V.mjs} +1 -1
- package/dist/server/{chunk-FXS3EUKX.mjs → chunk-Q4ACA4RO.mjs} +72 -1
- package/dist/server/index.cjs +137 -15
- package/dist/server/index.d.mts +88 -2
- package/dist/server/index.d.ts +88 -2
- package/dist/server/index.mjs +67 -15
- package/dist/server/{recall-VZO4USXK.mjs → recall-XO6QTDMG.mjs} +1 -1
- package/package.json +3 -2
package/dist/react/index.cjs
CHANGED
|
@@ -4500,6 +4500,18 @@ var init_encryption2 = __esm({
|
|
|
4500
4500
|
});
|
|
4501
4501
|
|
|
4502
4502
|
// src/lib/db/memoryVault/operations.ts
|
|
4503
|
+
function visibilityOrPrivate(value) {
|
|
4504
|
+
return value === "public" ? value : "private";
|
|
4505
|
+
}
|
|
4506
|
+
function visibilityConditions(requested) {
|
|
4507
|
+
if (!requested?.length) return [];
|
|
4508
|
+
if (!requested.includes("private")) {
|
|
4509
|
+
return [import_watermelondb10.Q.where("visibility", import_watermelondb10.Q.oneOf([...requested]))];
|
|
4510
|
+
}
|
|
4511
|
+
const excluded = NON_PRIVATE_VISIBILITIES.filter((v) => !requested.includes(v));
|
|
4512
|
+
if (excluded.length === 0) return [];
|
|
4513
|
+
return [import_watermelondb10.Q.or(import_watermelondb10.Q.where("visibility", null), import_watermelondb10.Q.where("visibility", import_watermelondb10.Q.notIn(excluded)))];
|
|
4514
|
+
}
|
|
4503
4515
|
function isOwnedByCtxUser(ctx, record) {
|
|
4504
4516
|
return ctx.userId === void 0 || record.userId === ctx.userId;
|
|
4505
4517
|
}
|
|
@@ -4560,6 +4572,10 @@ function vaultMemoryToStoredRaw(memory) {
|
|
|
4560
4572
|
factType: memory.factType ?? null,
|
|
4561
4573
|
archivedAt: memory.archivedAt ?? null,
|
|
4562
4574
|
trustTier: memory.trustTier ?? null,
|
|
4575
|
+
visibility: visibilityOrPrivate(memory.visibility),
|
|
4576
|
+
twinOptIn: memory.twinOptIn ?? false,
|
|
4577
|
+
publishedAt: memory.publishedAt ?? null,
|
|
4578
|
+
geohash: memory.geohash ?? null,
|
|
4563
4579
|
createdAt: memory.createdAt,
|
|
4564
4580
|
updatedAt: memory.updatedAt,
|
|
4565
4581
|
isDeleted: memory.isDeleted
|
|
@@ -4607,6 +4623,14 @@ async function createVaultMemoryOp(ctx, opts) {
|
|
|
4607
4623
|
if (opts.trustTier !== void 0) {
|
|
4608
4624
|
record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
|
|
4609
4625
|
}
|
|
4626
|
+
record._setRaw("visibility", opts.visibility ?? "private");
|
|
4627
|
+
record._setRaw(
|
|
4628
|
+
"published_at",
|
|
4629
|
+
opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
|
|
4630
|
+
);
|
|
4631
|
+
if (opts.geohash !== void 0) {
|
|
4632
|
+
record._setRaw("geohash", opts.geohash);
|
|
4633
|
+
}
|
|
4610
4634
|
});
|
|
4611
4635
|
});
|
|
4612
4636
|
return vaultMemoryToStored(created, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
|
|
@@ -4753,6 +4777,14 @@ async function createVaultMemoriesBatchOp(ctx, optionsArray) {
|
|
|
4753
4777
|
if (opts.trustTier !== void 0) {
|
|
4754
4778
|
record._setRaw("trust_tier", normalizeTrustTier(opts.trustTier));
|
|
4755
4779
|
}
|
|
4780
|
+
record._setRaw("visibility", opts.visibility ?? "private");
|
|
4781
|
+
record._setRaw(
|
|
4782
|
+
"published_at",
|
|
4783
|
+
opts.visibility && opts.visibility !== "private" ? opts.publishedAt ?? Date.now() : null
|
|
4784
|
+
);
|
|
4785
|
+
if (opts.geohash !== void 0) {
|
|
4786
|
+
record._setRaw("geohash", opts.geohash);
|
|
4787
|
+
}
|
|
4756
4788
|
})
|
|
4757
4789
|
);
|
|
4758
4790
|
await ctx.database.batch(...prepared);
|
|
@@ -4816,6 +4848,10 @@ function vaultMemoryRawToStoredRaw(raw) {
|
|
|
4816
4848
|
factType: raw.fact_type ?? null,
|
|
4817
4849
|
archivedAt: raw.archived_at ?? null,
|
|
4818
4850
|
trustTier: raw.trust_tier ?? null,
|
|
4851
|
+
visibility: visibilityOrPrivate(raw.visibility),
|
|
4852
|
+
twinOptIn: raw.twin_opt_in === true || raw.twin_opt_in === 1,
|
|
4853
|
+
publishedAt: raw.published_at ?? null,
|
|
4854
|
+
geohash: raw.geohash ?? null,
|
|
4819
4855
|
createdAt: new Date(raw.created_at),
|
|
4820
4856
|
updatedAt: new Date(raw.updated_at),
|
|
4821
4857
|
isDeleted: raw.is_deleted === true || raw.is_deleted === 1
|
|
@@ -4832,6 +4868,7 @@ async function getAllVaultMemoriesOp(ctx, options) {
|
|
|
4832
4868
|
const conditions = [
|
|
4833
4869
|
...baseVaultConditions(ctx, options),
|
|
4834
4870
|
...options?.scopes?.length ? [import_watermelondb10.Q.where("scope", import_watermelondb10.Q.oneOf(options.scopes))] : [],
|
|
4871
|
+
...visibilityConditions(options?.visibility),
|
|
4835
4872
|
...options?.folderId !== void 0 ? [import_watermelondb10.Q.where("folder_id", options.folderId)] : [],
|
|
4836
4873
|
...options?.factTypes?.length ? [import_watermelondb10.Q.where("fact_type", import_watermelondb10.Q.oneOf(options.factTypes))] : [],
|
|
4837
4874
|
import_watermelondb10.Q.sortBy(options?.since ? "updated_at" : "created_at", import_watermelondb10.Q.desc),
|
|
@@ -5125,6 +5162,38 @@ async function clearMemoryTopicsOverrideOp(ctx, memoryId) {
|
|
|
5125
5162
|
});
|
|
5126
5163
|
return true;
|
|
5127
5164
|
}
|
|
5165
|
+
async function setMemoryVisibilityOp(ctx, id, opts) {
|
|
5166
|
+
let record;
|
|
5167
|
+
try {
|
|
5168
|
+
record = await ctx.vaultMemoryCollection.find(id);
|
|
5169
|
+
} catch {
|
|
5170
|
+
return null;
|
|
5171
|
+
}
|
|
5172
|
+
if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) return null;
|
|
5173
|
+
let stale = false;
|
|
5174
|
+
await ctx.database.write(async () => {
|
|
5175
|
+
if (record.isDeleted || !isOwnedByCtxUser(ctx, record)) {
|
|
5176
|
+
stale = true;
|
|
5177
|
+
return;
|
|
5178
|
+
}
|
|
5179
|
+
const currentUpdatedAt = record.updatedAt.getTime();
|
|
5180
|
+
const currentPublishedAt = record.publishedAt ?? null;
|
|
5181
|
+
await record.update((r) => {
|
|
5182
|
+
r._setRaw("visibility", opts.visibility);
|
|
5183
|
+
if (opts.visibility === "private") {
|
|
5184
|
+
r._setRaw("published_at", null);
|
|
5185
|
+
} else if (currentPublishedAt === null) {
|
|
5186
|
+
r._setRaw("published_at", Date.now());
|
|
5187
|
+
}
|
|
5188
|
+
if (opts.twinOptIn !== void 0) {
|
|
5189
|
+
r._setRaw("twin_opt_in", opts.twinOptIn);
|
|
5190
|
+
}
|
|
5191
|
+
r._setRaw("updated_at", currentUpdatedAt);
|
|
5192
|
+
});
|
|
5193
|
+
});
|
|
5194
|
+
if (stale) return null;
|
|
5195
|
+
return vaultMemoryToStored(record, ctx.walletAddress, ctx.signMessage, ctx.embeddedWalletSigner);
|
|
5196
|
+
}
|
|
5128
5197
|
async function deleteVaultMemoryOp(ctx, id) {
|
|
5129
5198
|
try {
|
|
5130
5199
|
const record = await ctx.vaultMemoryCollection.find(id);
|
|
@@ -5414,7 +5483,7 @@ async function updateVaultMemoryEmbeddingOp(ctx, id, embedding, embeddingModel)
|
|
|
5414
5483
|
return false;
|
|
5415
5484
|
}
|
|
5416
5485
|
}
|
|
5417
|
-
var import_watermelondb10, KNOWN_TRUST_TIERS, TOPICS_EXTRACTION_VERSION;
|
|
5486
|
+
var import_watermelondb10, NON_PRIVATE_VISIBILITIES, KNOWN_TRUST_TIERS, TOPICS_EXTRACTION_VERSION;
|
|
5418
5487
|
var init_operations3 = __esm({
|
|
5419
5488
|
"src/lib/db/memoryVault/operations.ts"() {
|
|
5420
5489
|
"use strict";
|
|
@@ -5422,6 +5491,7 @@ var init_operations3 = __esm({
|
|
|
5422
5491
|
init_logger();
|
|
5423
5492
|
init_operations2();
|
|
5424
5493
|
init_encryption2();
|
|
5494
|
+
NON_PRIVATE_VISIBILITIES = ["public"];
|
|
5425
5495
|
KNOWN_TRUST_TIERS = /* @__PURE__ */ new Set(["quarantined", "trusted"]);
|
|
5426
5496
|
TOPICS_EXTRACTION_VERSION = 3;
|
|
5427
5497
|
}
|
|
@@ -8701,6 +8771,7 @@ __export(index_exports, {
|
|
|
8701
8771
|
serializeJsx: () => serializeJsx,
|
|
8702
8772
|
setLogger: () => setLogger,
|
|
8703
8773
|
setMemoryEntitiesOp: () => setMemoryEntitiesOp,
|
|
8774
|
+
setMemoryVisibilityOp: () => setMemoryVisibilityOp,
|
|
8704
8775
|
settingsStorageSchema: () => settingsStorageSchema,
|
|
8705
8776
|
shouldChunkMessage: () => shouldChunkMessage,
|
|
8706
8777
|
shouldRefreshTools: () => shouldRefreshTools,
|
|
@@ -15365,6 +15436,18 @@ __decorateClass([
|
|
|
15365
15436
|
__decorateClass([
|
|
15366
15437
|
(0, import_decorators3.field)("trust_tier")
|
|
15367
15438
|
], VaultMemory.prototype, "trustTier", 2);
|
|
15439
|
+
__decorateClass([
|
|
15440
|
+
(0, import_decorators3.field)("visibility")
|
|
15441
|
+
], VaultMemory.prototype, "visibility", 2);
|
|
15442
|
+
__decorateClass([
|
|
15443
|
+
(0, import_decorators3.field)("twin_opt_in")
|
|
15444
|
+
], VaultMemory.prototype, "twinOptIn", 2);
|
|
15445
|
+
__decorateClass([
|
|
15446
|
+
(0, import_decorators3.field)("published_at")
|
|
15447
|
+
], VaultMemory.prototype, "publishedAt", 2);
|
|
15448
|
+
__decorateClass([
|
|
15449
|
+
(0, import_decorators3.field)("geohash")
|
|
15450
|
+
], VaultMemory.prototype, "geohash", 2);
|
|
15368
15451
|
__decorateClass([
|
|
15369
15452
|
import_decorators3.readonly,
|
|
15370
15453
|
(0, import_decorators3.date)("created_at")
|
|
@@ -16641,18 +16724,16 @@ function createAutoExtractor(options) {
|
|
|
16641
16724
|
} catch {
|
|
16642
16725
|
}
|
|
16643
16726
|
};
|
|
16644
|
-
const
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16654
|
-
// extractAndRetain (so direct callers are covered too), not copied here.
|
|
16655
|
-
} : void 0;
|
|
16727
|
+
const subPassAuth = (baseUrlOverride) => {
|
|
16728
|
+
const baseUrl = baseUrlOverride ?? options.extract.baseUrl;
|
|
16729
|
+
return {
|
|
16730
|
+
...options.extract.apiKey !== void 0 && { apiKey: options.extract.apiKey },
|
|
16731
|
+
...options.extract.getToken !== void 0 && { getToken: options.extract.getToken },
|
|
16732
|
+
...baseUrl !== void 0 && { baseUrl }
|
|
16733
|
+
};
|
|
16734
|
+
};
|
|
16735
|
+
const consolidateOptions = options.consolidate ? { ...options.consolidate, ...subPassAuth(options.consolidate.baseUrl) } : void 0;
|
|
16736
|
+
const injectionClassifierOptions = options.injectionClassifier ? { ...options.injectionClassifier, ...subPassAuth(options.injectionClassifier.baseUrl) } : void 0;
|
|
16656
16737
|
if (options.retainCtx.vaultCtx.entityCtx && !options.entityCtx) {
|
|
16657
16738
|
getLogger().warn(
|
|
16658
16739
|
"[memory/extract] retainCtx.vaultCtx.entityCtx is set but extractor was created without `entityCtx` \u2014 W5 graph lane will receive no writes"
|
|
@@ -16706,6 +16787,9 @@ function createAutoExtractor(options) {
|
|
|
16706
16787
|
...options.scope !== void 0 && { scope: options.scope },
|
|
16707
16788
|
...options.folderId !== void 0 && { folderId: options.folderId },
|
|
16708
16789
|
...consolidateOptions !== void 0 && { consolidateOptions },
|
|
16790
|
+
...injectionClassifierOptions !== void 0 && {
|
|
16791
|
+
injectionClassifier: injectionClassifierOptions
|
|
16792
|
+
},
|
|
16709
16793
|
...options.onCandidateFailed && {
|
|
16710
16794
|
onCandidateFailed: (candidate, error) => options.onCandidateFailed?.({ candidate, error, conversationId })
|
|
16711
16795
|
},
|
|
@@ -22476,7 +22560,7 @@ __decorateClass([
|
|
|
22476
22560
|
], VaultFolder.prototype, "context", 2);
|
|
22477
22561
|
|
|
22478
22562
|
// src/lib/db/schema.ts
|
|
22479
|
-
var SDK_SCHEMA_VERSION =
|
|
22563
|
+
var SDK_SCHEMA_VERSION = 41;
|
|
22480
22564
|
var sdkSchema = (0, import_watermelondb20.appSchema)({
|
|
22481
22565
|
version: SDK_SCHEMA_VERSION,
|
|
22482
22566
|
tables: [
|
|
@@ -22635,7 +22719,26 @@ var sdkSchema = (0, import_watermelondb20.appSchema)({
|
|
|
22635
22719
|
// Tier-0 security (PR3) — "quarantined" when the write-time injection
|
|
22636
22720
|
// screen flagged this fact, else null/"trusted". Indexed so the recall
|
|
22637
22721
|
// choke point can default-exclude quarantined rows.
|
|
22638
|
-
{ name: "trust_tier", type: "string", isOptional: true, isIndexed: true }
|
|
22722
|
+
{ name: "trust_tier", type: "string", isOptional: true, isIndexed: true },
|
|
22723
|
+
// People Nearby cross-user visibility axis — ORTHOGONAL to `scope`
|
|
22724
|
+
// (which partitions by MODEL access: private vs shared providers).
|
|
22725
|
+
// TWO tiers: 'private' (or null, or any unrecognised value —
|
|
22726
|
+
// grandfathered / fail-safe) = local-only; 'public' = embedding +
|
|
22727
|
+
// plaintext may be published (matching/profile/discovery/twin).
|
|
22728
|
+
// The server index is the authority for what IS published; this
|
|
22729
|
+
// column records the user's intent.
|
|
22730
|
+
{ name: "visibility", type: "string", isOptional: true, isIndexed: true },
|
|
22731
|
+
// When true, the owner opted this memory into their own digital twin
|
|
22732
|
+
// even if it is otherwise private (twin-scoped upload only — never
|
|
22733
|
+
// indexed for matching, never displayed). Null/false = follows visibility.
|
|
22734
|
+
{ name: "twin_opt_in", type: "boolean", isOptional: true },
|
|
22735
|
+
// Unix ms when visibility last became non-private. Null when private
|
|
22736
|
+
// (cleared on revoke) — the publish reconciler uses it to diff local
|
|
22737
|
+
// intent against the server index.
|
|
22738
|
+
{ name: "published_at", type: "number", isOptional: true },
|
|
22739
|
+
// Reserved geo slot (coarse geohash) for landmark/Trail memories.
|
|
22740
|
+
// Unused at launch; populated by location-tagged memory sources.
|
|
22741
|
+
{ name: "geohash", type: "string", isOptional: true }
|
|
22639
22742
|
]
|
|
22640
22743
|
}),
|
|
22641
22744
|
// Entity table — canonical names extracted from auto-extraction (W5).
|
|
@@ -23310,6 +23413,24 @@ var sdkMigrations = (0, import_migrations2.schemaMigrations)({
|
|
|
23310
23413
|
]
|
|
23311
23414
|
})
|
|
23312
23415
|
]
|
|
23416
|
+
},
|
|
23417
|
+
// v40 -> v41: People Nearby visibility axis on memory_vault. Existing rows
|
|
23418
|
+
// keep visibility NULL — read as 'private' (nothing pre-existing is ever
|
|
23419
|
+
// published without an explicit user action; the consent posture requires
|
|
23420
|
+
// opt-in, never a retroactive default).
|
|
23421
|
+
{
|
|
23422
|
+
toVersion: 41,
|
|
23423
|
+
steps: [
|
|
23424
|
+
(0, import_migrations2.addColumns)({
|
|
23425
|
+
table: "memory_vault",
|
|
23426
|
+
columns: [
|
|
23427
|
+
{ name: "visibility", type: "string", isOptional: true, isIndexed: true },
|
|
23428
|
+
{ name: "twin_opt_in", type: "boolean", isOptional: true },
|
|
23429
|
+
{ name: "published_at", type: "number", isOptional: true },
|
|
23430
|
+
{ name: "geohash", type: "string", isOptional: true }
|
|
23431
|
+
]
|
|
23432
|
+
})
|
|
23433
|
+
]
|
|
23313
23434
|
}
|
|
23314
23435
|
]
|
|
23315
23436
|
});
|
|
@@ -33281,6 +33402,7 @@ function renderAnumaJsx(jsx3) {
|
|
|
33281
33402
|
serializeJsx,
|
|
33282
33403
|
setLogger,
|
|
33283
33404
|
setMemoryEntitiesOp,
|
|
33405
|
+
setMemoryVisibilityOp,
|
|
33284
33406
|
settingsStorageSchema,
|
|
33285
33407
|
shouldChunkMessage,
|
|
33286
33408
|
shouldRefreshTools,
|
package/dist/react/index.d.mts
CHANGED
|
@@ -5674,6 +5674,15 @@ declare class VaultMemory extends Model {
|
|
|
5674
5674
|
archivedAt: number | null;
|
|
5675
5675
|
/** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
|
|
5676
5676
|
trustTier: string | null;
|
|
5677
|
+
/** People Nearby visibility: 'private' | 'public'. Null on legacy rows, and
|
|
5678
|
+
* any unrecognised value, read as 'private' — never published without opt-in. */
|
|
5679
|
+
visibility: string | null;
|
|
5680
|
+
/** Owner opted this memory into their own digital twin (twin-scoped only). */
|
|
5681
|
+
twinOptIn: boolean | null;
|
|
5682
|
+
/** Unix ms when visibility last became non-private; null while private. */
|
|
5683
|
+
publishedAt: number | null;
|
|
5684
|
+
/** Reserved coarse-geohash slot for landmark/Trail memories. */
|
|
5685
|
+
geohash: string | null;
|
|
5677
5686
|
createdAt: Date;
|
|
5678
5687
|
updatedAt: Date;
|
|
5679
5688
|
isDeleted: boolean;
|
|
@@ -6966,6 +6975,20 @@ declare function extractAndRetain(messages: AutoExtractMessage[], retainCtx: Ret
|
|
|
6966
6975
|
quarantined: QuarantinedMemoryInfo[];
|
|
6967
6976
|
}>;
|
|
6968
6977
|
|
|
6978
|
+
/**
|
|
6979
|
+
* People Nearby cross-user visibility. ORTHOGONAL to `scope` (model access):
|
|
6980
|
+
* - `private`: local-only (default; null column grandfathered as private)
|
|
6981
|
+
* - `public`: embedding + plaintext may be published (compatibility matching,
|
|
6982
|
+
* profile display, discovery answers, digital-twin prompts)
|
|
6983
|
+
*
|
|
6984
|
+
* TWO TIERS ONLY (decided 2026-07-27). An earlier design had a middle
|
|
6985
|
+
* `matchable` tier that published a memory's embedding while keeping its text
|
|
6986
|
+
* on-device; it was dropped, so a memory either never leaves the device or is
|
|
6987
|
+
* published with its content. Any unrecognised stored value — including a
|
|
6988
|
+
* `matchable` row written by a pre-release build — reads as `private`, which is
|
|
6989
|
+
* the fail-safe direction: it un-publishes rather than exposes.
|
|
6990
|
+
*/
|
|
6991
|
+
type VaultMemoryVisibility = "private" | "public";
|
|
6969
6992
|
interface StoredVaultMemory {
|
|
6970
6993
|
/** WatermelonDB internal ID */
|
|
6971
6994
|
uniqueId: string;
|
|
@@ -7024,6 +7047,15 @@ interface StoredVaultMemory {
|
|
|
7024
7047
|
archivedAt: number | null;
|
|
7025
7048
|
/** Tier-0 security (PR3) — "quarantined" | "trusted" | null. */
|
|
7026
7049
|
trustTier: string | null;
|
|
7050
|
+
/** People Nearby cross-user visibility. Null column reads as "private". */
|
|
7051
|
+
visibility: VaultMemoryVisibility;
|
|
7052
|
+
/** Owner opted this memory into their own digital twin even when otherwise
|
|
7053
|
+
* private (twin-scoped only — never indexed for matching, never displayed). */
|
|
7054
|
+
twinOptIn: boolean;
|
|
7055
|
+
/** Unix ms when visibility last became non-private; null while private. */
|
|
7056
|
+
publishedAt: number | null;
|
|
7057
|
+
/** Reserved coarse-geohash slot for landmark/Trail memories. */
|
|
7058
|
+
geohash: string | null;
|
|
7027
7059
|
createdAt: Date;
|
|
7028
7060
|
updatedAt: Date;
|
|
7029
7061
|
isDeleted: boolean;
|
|
@@ -7083,6 +7115,15 @@ interface CreateVaultMemoryOptions {
|
|
|
7083
7115
|
/** Tier-0 security (PR3) — set "quarantined" when the injection screen
|
|
7084
7116
|
* flagged this fact. Omit for the default (null/trusted). */
|
|
7085
7117
|
trustTier?: string;
|
|
7118
|
+
/** People Nearby cross-user visibility. Defaults to "private" if omitted —
|
|
7119
|
+
* creation NEVER publishes; use {@link setMemoryVisibilityOp} so the
|
|
7120
|
+
* published_at bookkeeping stays consistent. Accepted here only so bulk
|
|
7121
|
+
* restore/import paths can round-trip an existing visibility. */
|
|
7122
|
+
visibility?: VaultMemoryVisibility;
|
|
7123
|
+
/** Round-trip slot for restore/import; see {@link visibility}. */
|
|
7124
|
+
publishedAt?: number | null;
|
|
7125
|
+
/** Coarse geohash for location-tagged memory sources (landmarks/Trail). */
|
|
7126
|
+
geohash?: string;
|
|
7086
7127
|
}
|
|
7087
7128
|
interface UpdateVaultMemoryOptions {
|
|
7088
7129
|
content: string;
|
|
@@ -7205,6 +7246,12 @@ declare function getAllVaultMemoriesOp(ctx: VaultMemoryOperationsContext, option
|
|
|
7205
7246
|
* Used by a "memory history" view to render retired facts.
|
|
7206
7247
|
*/
|
|
7207
7248
|
includeSuperseded?: boolean;
|
|
7249
|
+
/**
|
|
7250
|
+
* Filter by People Nearby visibility. Legacy rows with a NULL column
|
|
7251
|
+
* count as "private". Used by the publish reconciler to fetch the
|
|
7252
|
+
* published set to diff against the server index.
|
|
7253
|
+
*/
|
|
7254
|
+
visibility?: VaultMemoryVisibility[];
|
|
7208
7255
|
}): Promise<StoredVaultMemory[]>;
|
|
7209
7256
|
/**
|
|
7210
7257
|
* Return content-free {@link RankableVaultMemory} projections for recall
|
|
@@ -7319,6 +7366,24 @@ declare function setMemoryEntitiesOp(ctx: VaultMemoryOperationsContext, memoryId
|
|
|
7319
7366
|
* are left in place until the re-extraction replaces them. Preserves `updated_at`.
|
|
7320
7367
|
*/
|
|
7321
7368
|
declare function clearMemoryTopicsOverrideOp(ctx: VaultMemoryOperationsContext, memoryId: string): Promise<boolean>;
|
|
7369
|
+
/**
|
|
7370
|
+
* Set a memory's People Nearby visibility (and optionally its twin opt-in).
|
|
7371
|
+
*
|
|
7372
|
+
* This is the ONLY sanctioned write path for `visibility` — it keeps the
|
|
7373
|
+
* `published_at` bookkeeping consistent: transitioning to `public`
|
|
7374
|
+
* stamps `published_at` (kept if already set); transitioning to `private`
|
|
7375
|
+
* clears it (revoke). The server index remains the authority for what IS
|
|
7376
|
+
* published — this records the user's intent for the reconciler to act on.
|
|
7377
|
+
*
|
|
7378
|
+
* Preserves `updated_at`: a visibility change is metadata, not a
|
|
7379
|
+
* re-observation, so it must not inflate the recency multiplier (mirrors
|
|
7380
|
+
* {@link setMemoryEntitiesOp}).
|
|
7381
|
+
*/
|
|
7382
|
+
declare function setMemoryVisibilityOp(ctx: VaultMemoryOperationsContext, id: string, opts: {
|
|
7383
|
+
visibility: VaultMemoryVisibility;
|
|
7384
|
+
/** If provided, sets the twin opt-in flag alongside the visibility. */
|
|
7385
|
+
twinOptIn?: boolean;
|
|
7386
|
+
}): Promise<StoredVaultMemory | null>;
|
|
7322
7387
|
declare function deleteVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string): Promise<boolean>;
|
|
7323
7388
|
/**
|
|
7324
7389
|
* Mark a memory as superseded by a newer one (A2 write-time supersession).
|
|
@@ -7701,6 +7766,21 @@ interface CreateAutoExtractorOptions {
|
|
|
7701
7766
|
*/
|
|
7702
7767
|
onFallback?: (reason: ConsolidationFallbackReason) => void;
|
|
7703
7768
|
};
|
|
7769
|
+
/**
|
|
7770
|
+
* Tier-0 security (PR5) — enable the optional SECOND-layer LLM injection
|
|
7771
|
+
* classifier over the candidates the deterministic screen passed as clean.
|
|
7772
|
+
* Presence is the switch, so `injectionClassifier: {}` is how a client turns
|
|
7773
|
+
* it on. Auth is NOT configured here — like `consolidate`, the call reuses
|
|
7774
|
+
* the `extract` credentials and defaults to its `baseUrl`. See
|
|
7775
|
+
* `injectionClassifier.ts` for the safety posture and the defaults.
|
|
7776
|
+
*/
|
|
7777
|
+
injectionClassifier?: {
|
|
7778
|
+
/** Portal base URL for classifier calls. Default: the `extract` options' `baseUrl`. */
|
|
7779
|
+
baseUrl?: string;
|
|
7780
|
+
model?: string;
|
|
7781
|
+
maxCandidates?: number;
|
|
7782
|
+
totalTimeoutMs?: number;
|
|
7783
|
+
};
|
|
7704
7784
|
/** Per-fact event — fires once per memory written. */
|
|
7705
7785
|
onMemoryExtracted?: (event: MemoryExtractedEvent) => void;
|
|
7706
7786
|
/**
|
|
@@ -9950,8 +10030,13 @@ declare class WatermelonChatStorageAdapter implements ChatStorageAdapter {
|
|
|
9950
10030
|
* backfill (null = legacy/untyped, active, un-screened — content is
|
|
9951
10031
|
* encrypted so in-migration classification is impossible; NULL = zero-risk,
|
|
9952
10032
|
* exact embedding_model precedent)
|
|
10033
|
+
* - v41: Added visibility, twin_opt_in, published_at, geohash columns to
|
|
10034
|
+
* memory_vault for the People Nearby cross-user visibility axis. Visibility
|
|
10035
|
+
* is TWO-tier (`private | public`); null — and any unrecognised value —
|
|
10036
|
+
* reads as 'private', so nothing pre-existing is ever published without an
|
|
10037
|
+
* explicit visibility write
|
|
9953
10038
|
*/
|
|
9954
|
-
declare const SDK_SCHEMA_VERSION =
|
|
10039
|
+
declare const SDK_SCHEMA_VERSION = 41;
|
|
9955
10040
|
/**
|
|
9956
10041
|
* Combined WatermelonDB schema for all SDK storage modules.
|
|
9957
10042
|
*
|
|
@@ -10036,6 +10121,7 @@ declare const sdkSchema: Readonly<{
|
|
|
10036
10121
|
* - v37 → v38: Added `topics_extracted_version` column to memory_vault (extraction-logic version; null read as 0 so a TOPICS_EXTRACTION_VERSION bump re-extracts stale rows)
|
|
10037
10122
|
* - v38 → v39: Added `last_observed_at` column to memory_vault (C3 re-observation watermark; stamped on retain merge, distinct from updated_at)
|
|
10038
10123
|
* - v39 → v40: Added `fact_type`, `archived_at`, `trust_tier` columns to memory_vault for typed memory + decay + Tier-0 security (all nullable + plaintext, NULL backfill)
|
|
10124
|
+
* - v40 → v41: Added `visibility`, `twin_opt_in`, `published_at`, `geohash` columns to memory_vault for the People Nearby cross-user visibility axis (two-tier `private | public`; null/unknown grandfathered as 'private')
|
|
10039
10125
|
*/
|
|
10040
10126
|
declare const sdkMigrations: Readonly<{
|
|
10041
10127
|
validated: true;
|
|
@@ -14184,4 +14270,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
14184
14270
|
*/
|
|
14185
14271
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
14186
14272
|
|
|
14187
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
|
14273
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankableVaultMemory, type RankedMemory, type RankedProfileCandidate, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultCandidateKey, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultCandidateKeysOp, getVaultEmbeddingsByIdsOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, rankProfileCandidates, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, setMemoryVisibilityOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|