@anuma/sdk 6.26.1 → 6.27.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/index.cjs +152 -186
- package/dist/expo/index.d.mts +31 -1
- package/dist/expo/index.d.ts +31 -1
- package/dist/expo/index.mjs +151 -186
- package/dist/react/index.cjs +2 -0
- package/dist/react/index.d.mts +3 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.mjs +2 -0
- package/dist/tools/index.cjs +1191 -1204
- package/dist/tools/index.d.mts +27 -47
- package/dist/tools/index.d.ts +27 -47
- package/dist/tools/index.mjs +1190 -1204
- package/package.json +1 -1
package/dist/expo/index.cjs
CHANGED
|
@@ -1491,6 +1491,7 @@ __export(index_exports, {
|
|
|
1491
1491
|
createMemoryVaultSearchTool: () => createMemoryVaultSearchTool,
|
|
1492
1492
|
createMemoryVaultTool: () => createMemoryVaultTool,
|
|
1493
1493
|
createMessageSourceResolver: () => createMessageSourceResolver,
|
|
1494
|
+
createNotionProxyTools: () => createNotionProxyTools,
|
|
1494
1495
|
createNotionTools: () => createNotionTools,
|
|
1495
1496
|
createPlatformCursorStore: () => createPlatformCursorStore,
|
|
1496
1497
|
createRecallTool: () => createRecallTool,
|
|
@@ -21249,6 +21250,7 @@ function useChatStorage(options) {
|
|
|
21249
21250
|
embeddingModel = DEFAULT_API_EMBEDDING_MODEL,
|
|
21250
21251
|
minContentLength = DEFAULT_MIN_CONTENT_LENGTH,
|
|
21251
21252
|
preProcessors,
|
|
21253
|
+
smoothing,
|
|
21252
21254
|
resumable = false,
|
|
21253
21255
|
onCancelResult,
|
|
21254
21256
|
onStreamMeta,
|
|
@@ -21674,6 +21676,7 @@ function useChatStorage(options) {
|
|
|
21674
21676
|
onError,
|
|
21675
21677
|
apiType,
|
|
21676
21678
|
preProcessors,
|
|
21679
|
+
smoothing,
|
|
21677
21680
|
resumable,
|
|
21678
21681
|
onCancelResult,
|
|
21679
21682
|
onStreamMeta,
|
|
@@ -24846,6 +24849,19 @@ async function refreshNotionAccessToken(params) {
|
|
|
24846
24849
|
return result;
|
|
24847
24850
|
}
|
|
24848
24851
|
|
|
24852
|
+
// src/lib/connectors/errors.ts
|
|
24853
|
+
function buildConnectorErrorResult(code, provider, connectUrl, extras) {
|
|
24854
|
+
const payload = {
|
|
24855
|
+
__anuma_connector_error_v1: true,
|
|
24856
|
+
code,
|
|
24857
|
+
provider,
|
|
24858
|
+
connect_url: connectUrl,
|
|
24859
|
+
missing_scopes: extras?.missingScopes,
|
|
24860
|
+
required: extras?.required
|
|
24861
|
+
};
|
|
24862
|
+
return JSON.stringify(payload);
|
|
24863
|
+
}
|
|
24864
|
+
|
|
24849
24865
|
// src/tools/notion.ts
|
|
24850
24866
|
var MCP_HTTP_ENDPOINT = "https://mcp.notion.com/mcp";
|
|
24851
24867
|
var MAX_CONTENT_LENGTH2 = 5e4;
|
|
@@ -25018,8 +25034,83 @@ async function callMCPTool(accessToken, toolName, args) {
|
|
|
25018
25034
|
}
|
|
25019
25035
|
return truncateToolResult(jsonRpcResponse.result);
|
|
25020
25036
|
}
|
|
25021
|
-
|
|
25037
|
+
var NOTION_PROVIDER = "notion";
|
|
25038
|
+
function directRunner(getAccessToken, requestNotionAccess) {
|
|
25039
|
+
return async (toolName, args) => {
|
|
25040
|
+
let token = getAccessToken();
|
|
25041
|
+
if (!token) {
|
|
25042
|
+
token = await requestNotionAccess();
|
|
25043
|
+
}
|
|
25044
|
+
return callMCPTool(token, toolName, args);
|
|
25045
|
+
};
|
|
25046
|
+
}
|
|
25047
|
+
function readField(json4, key) {
|
|
25048
|
+
return typeof json4 === "object" && json4 !== null ? json4[key] : void 0;
|
|
25049
|
+
}
|
|
25050
|
+
function readString(json4, key) {
|
|
25051
|
+
const value = readField(json4, key);
|
|
25052
|
+
return typeof value === "string" ? value : void 0;
|
|
25053
|
+
}
|
|
25054
|
+
function notionConnectorError(status, json4) {
|
|
25055
|
+
const code = readField(json4, "code");
|
|
25056
|
+
if (status === 503) {
|
|
25057
|
+
return code === "upstream_unavailable" ? buildConnectorErrorResult("upstream_unavailable", NOTION_PROVIDER) : null;
|
|
25058
|
+
}
|
|
25059
|
+
if (status !== 401 && status !== 403 && status !== 412) return null;
|
|
25060
|
+
switch (code) {
|
|
25061
|
+
case "scope_not_covered": {
|
|
25062
|
+
const missingScopes = readField(json4, "missing_scopes");
|
|
25063
|
+
return buildConnectorErrorResult(
|
|
25064
|
+
"scope_not_covered",
|
|
25065
|
+
NOTION_PROVIDER,
|
|
25066
|
+
readString(json4, "connect_url"),
|
|
25067
|
+
Array.isArray(missingScopes) ? { missingScopes } : void 0
|
|
25068
|
+
);
|
|
25069
|
+
}
|
|
25070
|
+
case "insufficient_scope":
|
|
25071
|
+
return buildConnectorErrorResult("insufficient_scope", NOTION_PROVIDER, void 0, {
|
|
25072
|
+
required: readString(json4, "required")
|
|
25073
|
+
});
|
|
25074
|
+
case "upstream_unavailable":
|
|
25075
|
+
return buildConnectorErrorResult("upstream_unavailable", NOTION_PROVIDER);
|
|
25076
|
+
default:
|
|
25077
|
+
return buildConnectorErrorResult(
|
|
25078
|
+
"connector_not_connected",
|
|
25079
|
+
NOTION_PROVIDER,
|
|
25080
|
+
readString(json4, "connect_url")
|
|
25081
|
+
);
|
|
25082
|
+
}
|
|
25083
|
+
}
|
|
25084
|
+
function proxyRunner(callMcp) {
|
|
25085
|
+
return async (toolName, args) => {
|
|
25086
|
+
const { status, json: json4 } = await callMcp(toolName, args);
|
|
25087
|
+
if (status >= 200 && status < 300) {
|
|
25088
|
+
const result = readField(json4, "result");
|
|
25089
|
+
if (result === void 0) {
|
|
25090
|
+
throw new Error(`Notion returned no result (${status})`);
|
|
25091
|
+
}
|
|
25092
|
+
return truncateToolResult(result);
|
|
25093
|
+
}
|
|
25094
|
+
const connectorError = notionConnectorError(status, json4);
|
|
25095
|
+
if (connectorError) return connectorError;
|
|
25096
|
+
const message = readField(json4, "error");
|
|
25097
|
+
throw new Error(`${typeof message === "string" ? message : JSON.stringify(json4)} (${status})`);
|
|
25098
|
+
};
|
|
25099
|
+
}
|
|
25100
|
+
function withNotionExecutor(run, errorPrefix, tool) {
|
|
25022
25101
|
return {
|
|
25102
|
+
...tool,
|
|
25103
|
+
executor: async (args) => {
|
|
25104
|
+
try {
|
|
25105
|
+
return await run(tool.function.name, args);
|
|
25106
|
+
} catch (error) {
|
|
25107
|
+
return `${errorPrefix}: ${error instanceof Error ? error.message : String(error)}`;
|
|
25108
|
+
}
|
|
25109
|
+
}
|
|
25110
|
+
};
|
|
25111
|
+
}
|
|
25112
|
+
function notionSearchTool(run) {
|
|
25113
|
+
return withNotionExecutor(run, "Error searching Notion", {
|
|
25023
25114
|
type: "function",
|
|
25024
25115
|
function: {
|
|
25025
25116
|
name: "notion-search",
|
|
@@ -25060,22 +25151,11 @@ function createNotionSearchTool(getAccessToken, requestNotionAccess) {
|
|
|
25060
25151
|
},
|
|
25061
25152
|
required: ["query"]
|
|
25062
25153
|
}
|
|
25063
|
-
},
|
|
25064
|
-
executor: async (args) => {
|
|
25065
|
-
let token = getAccessToken();
|
|
25066
|
-
if (!token) {
|
|
25067
|
-
token = await requestNotionAccess();
|
|
25068
|
-
}
|
|
25069
|
-
try {
|
|
25070
|
-
return await callMCPTool(token, "notion-search", args);
|
|
25071
|
-
} catch (error) {
|
|
25072
|
-
return `Error searching Notion: ${error instanceof Error ? error.message : String(error)}`;
|
|
25073
|
-
}
|
|
25074
25154
|
}
|
|
25075
|
-
};
|
|
25155
|
+
});
|
|
25076
25156
|
}
|
|
25077
|
-
function
|
|
25078
|
-
return {
|
|
25157
|
+
function notionFetchTool(run) {
|
|
25158
|
+
return withNotionExecutor(run, "Error fetching Notion page", {
|
|
25079
25159
|
type: "function",
|
|
25080
25160
|
function: {
|
|
25081
25161
|
name: "notion-fetch",
|
|
@@ -25098,22 +25178,11 @@ function createNotionFetchTool(getAccessToken, requestNotionAccess) {
|
|
|
25098
25178
|
},
|
|
25099
25179
|
required: ["id"]
|
|
25100
25180
|
}
|
|
25101
|
-
},
|
|
25102
|
-
executor: async (args) => {
|
|
25103
|
-
let token = getAccessToken();
|
|
25104
|
-
if (!token) {
|
|
25105
|
-
token = await requestNotionAccess();
|
|
25106
|
-
}
|
|
25107
|
-
try {
|
|
25108
|
-
return await callMCPTool(token, "notion-fetch", args);
|
|
25109
|
-
} catch (error) {
|
|
25110
|
-
return `Error fetching Notion page: ${error instanceof Error ? error.message : String(error)}`;
|
|
25111
|
-
}
|
|
25112
25181
|
}
|
|
25113
|
-
};
|
|
25182
|
+
});
|
|
25114
25183
|
}
|
|
25115
|
-
function
|
|
25116
|
-
return {
|
|
25184
|
+
function notionCreatePagesTool(run) {
|
|
25185
|
+
return withNotionExecutor(run, "Error creating Notion page", {
|
|
25117
25186
|
type: "function",
|
|
25118
25187
|
function: {
|
|
25119
25188
|
name: "notion-create-pages",
|
|
@@ -25146,22 +25215,11 @@ function createNotionCreatePagesTool(getAccessToken, requestNotionAccess) {
|
|
|
25146
25215
|
},
|
|
25147
25216
|
required: ["pages"]
|
|
25148
25217
|
}
|
|
25149
|
-
},
|
|
25150
|
-
executor: async (args) => {
|
|
25151
|
-
let token = getAccessToken();
|
|
25152
|
-
if (!token) {
|
|
25153
|
-
token = await requestNotionAccess();
|
|
25154
|
-
}
|
|
25155
|
-
try {
|
|
25156
|
-
return await callMCPTool(token, "notion-create-pages", args);
|
|
25157
|
-
} catch (error) {
|
|
25158
|
-
return `Error creating Notion page: ${error instanceof Error ? error.message : String(error)}`;
|
|
25159
|
-
}
|
|
25160
25218
|
}
|
|
25161
|
-
};
|
|
25219
|
+
});
|
|
25162
25220
|
}
|
|
25163
|
-
function
|
|
25164
|
-
return {
|
|
25221
|
+
function notionUpdatePageTool(run) {
|
|
25222
|
+
return withNotionExecutor(run, "Error updating Notion page", {
|
|
25165
25223
|
type: "function",
|
|
25166
25224
|
function: {
|
|
25167
25225
|
name: "notion-update-page",
|
|
@@ -25209,22 +25267,11 @@ function createNotionUpdatePageTool(getAccessToken, requestNotionAccess) {
|
|
|
25209
25267
|
},
|
|
25210
25268
|
required: ["data"]
|
|
25211
25269
|
}
|
|
25212
|
-
},
|
|
25213
|
-
executor: async (args) => {
|
|
25214
|
-
let token = getAccessToken();
|
|
25215
|
-
if (!token) {
|
|
25216
|
-
token = await requestNotionAccess();
|
|
25217
|
-
}
|
|
25218
|
-
try {
|
|
25219
|
-
return await callMCPTool(token, "notion-update-page", args);
|
|
25220
|
-
} catch (error) {
|
|
25221
|
-
return `Error updating Notion page: ${error instanceof Error ? error.message : String(error)}`;
|
|
25222
|
-
}
|
|
25223
25270
|
}
|
|
25224
|
-
};
|
|
25271
|
+
});
|
|
25225
25272
|
}
|
|
25226
|
-
function
|
|
25227
|
-
return {
|
|
25273
|
+
function notionMovePagesTool(run) {
|
|
25274
|
+
return withNotionExecutor(run, "Error moving Notion pages", {
|
|
25228
25275
|
type: "function",
|
|
25229
25276
|
function: {
|
|
25230
25277
|
name: "notion-move-pages",
|
|
@@ -25244,22 +25291,11 @@ function createNotionMovePagesTool(getAccessToken, requestNotionAccess) {
|
|
|
25244
25291
|
},
|
|
25245
25292
|
required: ["page_or_database_ids", "new_parent"]
|
|
25246
25293
|
}
|
|
25247
|
-
},
|
|
25248
|
-
executor: async (args) => {
|
|
25249
|
-
let token = getAccessToken();
|
|
25250
|
-
if (!token) {
|
|
25251
|
-
token = await requestNotionAccess();
|
|
25252
|
-
}
|
|
25253
|
-
try {
|
|
25254
|
-
return await callMCPTool(token, "notion-move-pages", args);
|
|
25255
|
-
} catch (error) {
|
|
25256
|
-
return `Error moving Notion pages: ${error instanceof Error ? error.message : String(error)}`;
|
|
25257
|
-
}
|
|
25258
25294
|
}
|
|
25259
|
-
};
|
|
25295
|
+
});
|
|
25260
25296
|
}
|
|
25261
|
-
function
|
|
25262
|
-
return {
|
|
25297
|
+
function notionDuplicatePageTool(run) {
|
|
25298
|
+
return withNotionExecutor(run, "Error duplicating Notion page", {
|
|
25263
25299
|
type: "function",
|
|
25264
25300
|
function: {
|
|
25265
25301
|
name: "notion-duplicate-page",
|
|
@@ -25274,22 +25310,11 @@ function createNotionDuplicatePageTool(getAccessToken, requestNotionAccess) {
|
|
|
25274
25310
|
},
|
|
25275
25311
|
required: ["page_id"]
|
|
25276
25312
|
}
|
|
25277
|
-
},
|
|
25278
|
-
executor: async (args) => {
|
|
25279
|
-
let token = getAccessToken();
|
|
25280
|
-
if (!token) {
|
|
25281
|
-
token = await requestNotionAccess();
|
|
25282
|
-
}
|
|
25283
|
-
try {
|
|
25284
|
-
return await callMCPTool(token, "notion-duplicate-page", args);
|
|
25285
|
-
} catch (error) {
|
|
25286
|
-
return `Error duplicating Notion page: ${error instanceof Error ? error.message : String(error)}`;
|
|
25287
|
-
}
|
|
25288
25313
|
}
|
|
25289
|
-
};
|
|
25314
|
+
});
|
|
25290
25315
|
}
|
|
25291
|
-
function
|
|
25292
|
-
return {
|
|
25316
|
+
function notionCreateDatabaseTool(run) {
|
|
25317
|
+
return withNotionExecutor(run, "Error creating Notion database", {
|
|
25293
25318
|
type: "function",
|
|
25294
25319
|
function: {
|
|
25295
25320
|
name: "notion-create-database",
|
|
@@ -25318,22 +25343,11 @@ function createNotionCreateDatabaseTool(getAccessToken, requestNotionAccess) {
|
|
|
25318
25343
|
},
|
|
25319
25344
|
required: ["properties"]
|
|
25320
25345
|
}
|
|
25321
|
-
},
|
|
25322
|
-
executor: async (args) => {
|
|
25323
|
-
let token = getAccessToken();
|
|
25324
|
-
if (!token) {
|
|
25325
|
-
token = await requestNotionAccess();
|
|
25326
|
-
}
|
|
25327
|
-
try {
|
|
25328
|
-
return await callMCPTool(token, "notion-create-database", args);
|
|
25329
|
-
} catch (error) {
|
|
25330
|
-
return `Error creating Notion database: ${error instanceof Error ? error.message : String(error)}`;
|
|
25331
|
-
}
|
|
25332
25346
|
}
|
|
25333
|
-
};
|
|
25347
|
+
});
|
|
25334
25348
|
}
|
|
25335
|
-
function
|
|
25336
|
-
return {
|
|
25349
|
+
function notionUpdateDataSourceTool(run) {
|
|
25350
|
+
return withNotionExecutor(run, "Error updating Notion data source", {
|
|
25337
25351
|
type: "function",
|
|
25338
25352
|
function: {
|
|
25339
25353
|
name: "notion-update-data-source",
|
|
@@ -25370,22 +25384,11 @@ function createNotionUpdateDataSourceTool(getAccessToken, requestNotionAccess) {
|
|
|
25370
25384
|
},
|
|
25371
25385
|
required: ["data_source_id"]
|
|
25372
25386
|
}
|
|
25373
|
-
},
|
|
25374
|
-
executor: async (args) => {
|
|
25375
|
-
let token = getAccessToken();
|
|
25376
|
-
if (!token) {
|
|
25377
|
-
token = await requestNotionAccess();
|
|
25378
|
-
}
|
|
25379
|
-
try {
|
|
25380
|
-
return await callMCPTool(token, "notion-update-data-source", args);
|
|
25381
|
-
} catch (error) {
|
|
25382
|
-
return `Error updating Notion data source: ${error instanceof Error ? error.message : String(error)}`;
|
|
25383
|
-
}
|
|
25384
25387
|
}
|
|
25385
|
-
};
|
|
25388
|
+
});
|
|
25386
25389
|
}
|
|
25387
|
-
function
|
|
25388
|
-
return {
|
|
25390
|
+
function notionCreateCommentTool(run) {
|
|
25391
|
+
return withNotionExecutor(run, "Error creating Notion comment", {
|
|
25389
25392
|
type: "function",
|
|
25390
25393
|
function: {
|
|
25391
25394
|
name: "notion-create-comment",
|
|
@@ -25425,22 +25428,11 @@ function createNotionCreateCommentTool(getAccessToken, requestNotionAccess) {
|
|
|
25425
25428
|
},
|
|
25426
25429
|
required: ["page_id", "rich_text"]
|
|
25427
25430
|
}
|
|
25428
|
-
},
|
|
25429
|
-
executor: async (args) => {
|
|
25430
|
-
let token = getAccessToken();
|
|
25431
|
-
if (!token) {
|
|
25432
|
-
token = await requestNotionAccess();
|
|
25433
|
-
}
|
|
25434
|
-
try {
|
|
25435
|
-
return await callMCPTool(token, "notion-create-comment", args);
|
|
25436
|
-
} catch (error) {
|
|
25437
|
-
return `Error creating Notion comment: ${error instanceof Error ? error.message : String(error)}`;
|
|
25438
|
-
}
|
|
25439
25431
|
}
|
|
25440
|
-
};
|
|
25432
|
+
});
|
|
25441
25433
|
}
|
|
25442
|
-
function
|
|
25443
|
-
return {
|
|
25434
|
+
function notionGetCommentsTool(run) {
|
|
25435
|
+
return withNotionExecutor(run, "Error retrieving Notion comments", {
|
|
25444
25436
|
type: "function",
|
|
25445
25437
|
function: {
|
|
25446
25438
|
name: "notion-get-comments",
|
|
@@ -25467,22 +25459,11 @@ function createNotionGetCommentsTool(getAccessToken, requestNotionAccess) {
|
|
|
25467
25459
|
},
|
|
25468
25460
|
required: ["page_id"]
|
|
25469
25461
|
}
|
|
25470
|
-
},
|
|
25471
|
-
executor: async (args) => {
|
|
25472
|
-
let token = getAccessToken();
|
|
25473
|
-
if (!token) {
|
|
25474
|
-
token = await requestNotionAccess();
|
|
25475
|
-
}
|
|
25476
|
-
try {
|
|
25477
|
-
return await callMCPTool(token, "notion-get-comments", args);
|
|
25478
|
-
} catch (error) {
|
|
25479
|
-
return `Error retrieving Notion comments: ${error instanceof Error ? error.message : String(error)}`;
|
|
25480
|
-
}
|
|
25481
25462
|
}
|
|
25482
|
-
};
|
|
25463
|
+
});
|
|
25483
25464
|
}
|
|
25484
|
-
function
|
|
25485
|
-
return {
|
|
25465
|
+
function notionGetUsersTool(run) {
|
|
25466
|
+
return withNotionExecutor(run, "Error listing Notion users", {
|
|
25486
25467
|
type: "function",
|
|
25487
25468
|
function: {
|
|
25488
25469
|
name: "notion-get-users",
|
|
@@ -25508,22 +25489,11 @@ function createNotionGetUsersTool(getAccessToken, requestNotionAccess) {
|
|
|
25508
25489
|
}
|
|
25509
25490
|
}
|
|
25510
25491
|
}
|
|
25511
|
-
},
|
|
25512
|
-
executor: async (args) => {
|
|
25513
|
-
let token = getAccessToken();
|
|
25514
|
-
if (!token) {
|
|
25515
|
-
token = await requestNotionAccess();
|
|
25516
|
-
}
|
|
25517
|
-
try {
|
|
25518
|
-
return await callMCPTool(token, "notion-get-users", args);
|
|
25519
|
-
} catch (error) {
|
|
25520
|
-
return `Error listing Notion users: ${error instanceof Error ? error.message : String(error)}`;
|
|
25521
|
-
}
|
|
25522
25492
|
}
|
|
25523
|
-
};
|
|
25493
|
+
});
|
|
25524
25494
|
}
|
|
25525
|
-
function
|
|
25526
|
-
return {
|
|
25495
|
+
function notionGetTeamsTool(run) {
|
|
25496
|
+
return withNotionExecutor(run, "Error retrieving Notion teams", {
|
|
25527
25497
|
type: "function",
|
|
25528
25498
|
function: {
|
|
25529
25499
|
name: "notion-get-teams",
|
|
@@ -25537,40 +25507,35 @@ function createNotionGetTeamsTool(getAccessToken, requestNotionAccess) {
|
|
|
25537
25507
|
}
|
|
25538
25508
|
}
|
|
25539
25509
|
}
|
|
25540
|
-
},
|
|
25541
|
-
executor: async (args) => {
|
|
25542
|
-
let token = getAccessToken();
|
|
25543
|
-
if (!token) {
|
|
25544
|
-
token = await requestNotionAccess();
|
|
25545
|
-
}
|
|
25546
|
-
try {
|
|
25547
|
-
return await callMCPTool(token, "notion-get-teams", args);
|
|
25548
|
-
} catch (error) {
|
|
25549
|
-
return `Error retrieving Notion teams: ${error instanceof Error ? error.message : String(error)}`;
|
|
25550
|
-
}
|
|
25551
25510
|
}
|
|
25552
|
-
};
|
|
25511
|
+
});
|
|
25553
25512
|
}
|
|
25513
|
+
var NOTION_TOOLS = [
|
|
25514
|
+
// Search
|
|
25515
|
+
notionSearchTool,
|
|
25516
|
+
// Pages
|
|
25517
|
+
notionFetchTool,
|
|
25518
|
+
notionCreatePagesTool,
|
|
25519
|
+
notionUpdatePageTool,
|
|
25520
|
+
notionMovePagesTool,
|
|
25521
|
+
notionDuplicatePageTool,
|
|
25522
|
+
// Data Sources (Databases)
|
|
25523
|
+
notionCreateDatabaseTool,
|
|
25524
|
+
notionUpdateDataSourceTool,
|
|
25525
|
+
// Comments
|
|
25526
|
+
notionCreateCommentTool,
|
|
25527
|
+
notionGetCommentsTool,
|
|
25528
|
+
// Users & Teams
|
|
25529
|
+
notionGetUsersTool,
|
|
25530
|
+
notionGetTeamsTool
|
|
25531
|
+
];
|
|
25554
25532
|
function createNotionTools(getAccessToken, requestNotionAccess) {
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
|
|
25558
|
-
|
|
25559
|
-
|
|
25560
|
-
|
|
25561
|
-
createNotionUpdatePageTool(getAccessToken, requestNotionAccess),
|
|
25562
|
-
createNotionMovePagesTool(getAccessToken, requestNotionAccess),
|
|
25563
|
-
createNotionDuplicatePageTool(getAccessToken, requestNotionAccess),
|
|
25564
|
-
// Data Sources (Databases)
|
|
25565
|
-
createNotionCreateDatabaseTool(getAccessToken, requestNotionAccess),
|
|
25566
|
-
createNotionUpdateDataSourceTool(getAccessToken, requestNotionAccess),
|
|
25567
|
-
// Comments
|
|
25568
|
-
createNotionCreateCommentTool(getAccessToken, requestNotionAccess),
|
|
25569
|
-
createNotionGetCommentsTool(getAccessToken, requestNotionAccess),
|
|
25570
|
-
// Users & Teams
|
|
25571
|
-
createNotionGetUsersTool(getAccessToken, requestNotionAccess),
|
|
25572
|
-
createNotionGetTeamsTool(getAccessToken, requestNotionAccess)
|
|
25573
|
-
];
|
|
25533
|
+
const run = directRunner(getAccessToken, requestNotionAccess);
|
|
25534
|
+
return NOTION_TOOLS.map((tool) => tool(run));
|
|
25535
|
+
}
|
|
25536
|
+
function createNotionProxyTools(callMcp) {
|
|
25537
|
+
const run = proxyRunner(callMcp);
|
|
25538
|
+
return NOTION_TOOLS.map((tool) => tool(run));
|
|
25574
25539
|
}
|
|
25575
25540
|
// Annotate the CommonJS export names for ESM import in node:
|
|
25576
25541
|
0 && (module.exports = {
|
|
@@ -25666,6 +25631,7 @@ function createNotionTools(getAccessToken, requestNotionAccess) {
|
|
|
25666
25631
|
createMemoryVaultSearchTool,
|
|
25667
25632
|
createMemoryVaultTool,
|
|
25668
25633
|
createMessageSourceResolver,
|
|
25634
|
+
createNotionProxyTools,
|
|
25669
25635
|
createNotionTools,
|
|
25670
25636
|
createPlatformCursorStore,
|
|
25671
25637
|
createRecallTool,
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -3970,6 +3970,8 @@ interface BaseUseChatStorageOptions {
|
|
|
3970
3970
|
* a custom one matching `PromptPreProcessor`.
|
|
3971
3971
|
*/
|
|
3972
3972
|
preProcessors?: PromptPreProcessor[];
|
|
3973
|
+
/** Output pacing forwarded to useChat. Set false when the UI batches streamed updates. */
|
|
3974
|
+
smoothing?: StreamSmoothingConfig | boolean;
|
|
3973
3975
|
/**
|
|
3974
3976
|
* Enable best-effort, client-side PII obfuscation (NOT a compliance
|
|
3975
3977
|
* guarantee). Outbound message text is scanned for personally identifiable
|
|
@@ -11286,10 +11288,25 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
11286
11288
|
* MCP Server: https://mcp.notion.com/mcp (Streamable HTTP)
|
|
11287
11289
|
* Fallback: https://mcp.notion.com/sse (Server-Sent Events)
|
|
11288
11290
|
*
|
|
11291
|
+
* The MCP server rejects browser origins, so browser and mobile consumers use
|
|
11292
|
+
* `createNotionProxyTools`, which hands each call to an injected
|
|
11293
|
+
* {@link NotionMcpCaller} that goes through the portal instead.
|
|
11294
|
+
*
|
|
11289
11295
|
* @see https://developers.notion.com/guides/mcp/build-mcp-client
|
|
11290
11296
|
* @see https://modelcontextprotocol.io
|
|
11291
11297
|
*/
|
|
11292
11298
|
|
|
11299
|
+
/**
|
|
11300
|
+
* Calls the portal's Notion MCP endpoint with a tool name and its arguments,
|
|
11301
|
+
* and resolves to the response status + parsed JSON. Consumers wire this to
|
|
11302
|
+
* `POST {portalBaseUrl}/api/v1/connectors/notion/mcp` with the user's Privy
|
|
11303
|
+
* bearer and a JSON body `{ tool, arguments }`; the portal mints the Notion
|
|
11304
|
+
* token and runs the MCP handshake server-side.
|
|
11305
|
+
*/
|
|
11306
|
+
type NotionMcpCaller = (tool: string, args: Record<string, unknown>) => Promise<{
|
|
11307
|
+
status: number;
|
|
11308
|
+
json: unknown;
|
|
11309
|
+
}>;
|
|
11293
11310
|
/**
|
|
11294
11311
|
* Create all Notion MCP tools
|
|
11295
11312
|
*
|
|
@@ -11297,5 +11314,18 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
11297
11314
|
* The MCP server handles all Notion API interactions.
|
|
11298
11315
|
*/
|
|
11299
11316
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
11317
|
+
/**
|
|
11318
|
+
* Create all Notion MCP tools, routed through the portal.
|
|
11319
|
+
*
|
|
11320
|
+
* Same tools as {@link createNotionTools}, but no request reaches
|
|
11321
|
+
* mcp.notion.com from this runtime: Notion's MCP server rejects browser
|
|
11322
|
+
* origins, so the portal runs the call server-side. When the portal reports
|
|
11323
|
+
* the connector is not connected (401, 403, 412), the tool returns the
|
|
11324
|
+
* canonical `__anuma_connector_error_v1` result. Executors never throw.
|
|
11325
|
+
*
|
|
11326
|
+
* @param callMcp POSTs `{ tool, arguments }` to the portal's
|
|
11327
|
+
* `/api/v1/connectors/notion/mcp` endpoint and resolves to `{ status, json }`.
|
|
11328
|
+
*/
|
|
11329
|
+
declare function createNotionProxyTools(callMcp: NotionMcpCaller): ToolConfig[];
|
|
11300
11330
|
|
|
11301
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, 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_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11331
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, 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_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -3970,6 +3970,8 @@ interface BaseUseChatStorageOptions {
|
|
|
3970
3970
|
* a custom one matching `PromptPreProcessor`.
|
|
3971
3971
|
*/
|
|
3972
3972
|
preProcessors?: PromptPreProcessor[];
|
|
3973
|
+
/** Output pacing forwarded to useChat. Set false when the UI batches streamed updates. */
|
|
3974
|
+
smoothing?: StreamSmoothingConfig | boolean;
|
|
3973
3975
|
/**
|
|
3974
3976
|
* Enable best-effort, client-side PII obfuscation (NOT a compliance
|
|
3975
3977
|
* guarantee). Outbound message text is scanned for personally identifiable
|
|
@@ -11286,10 +11288,25 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
11286
11288
|
* MCP Server: https://mcp.notion.com/mcp (Streamable HTTP)
|
|
11287
11289
|
* Fallback: https://mcp.notion.com/sse (Server-Sent Events)
|
|
11288
11290
|
*
|
|
11291
|
+
* The MCP server rejects browser origins, so browser and mobile consumers use
|
|
11292
|
+
* `createNotionProxyTools`, which hands each call to an injected
|
|
11293
|
+
* {@link NotionMcpCaller} that goes through the portal instead.
|
|
11294
|
+
*
|
|
11289
11295
|
* @see https://developers.notion.com/guides/mcp/build-mcp-client
|
|
11290
11296
|
* @see https://modelcontextprotocol.io
|
|
11291
11297
|
*/
|
|
11292
11298
|
|
|
11299
|
+
/**
|
|
11300
|
+
* Calls the portal's Notion MCP endpoint with a tool name and its arguments,
|
|
11301
|
+
* and resolves to the response status + parsed JSON. Consumers wire this to
|
|
11302
|
+
* `POST {portalBaseUrl}/api/v1/connectors/notion/mcp` with the user's Privy
|
|
11303
|
+
* bearer and a JSON body `{ tool, arguments }`; the portal mints the Notion
|
|
11304
|
+
* token and runs the MCP handshake server-side.
|
|
11305
|
+
*/
|
|
11306
|
+
type NotionMcpCaller = (tool: string, args: Record<string, unknown>) => Promise<{
|
|
11307
|
+
status: number;
|
|
11308
|
+
json: unknown;
|
|
11309
|
+
}>;
|
|
11293
11310
|
/**
|
|
11294
11311
|
* Create all Notion MCP tools
|
|
11295
11312
|
*
|
|
@@ -11297,5 +11314,18 @@ declare function refreshNotionAccessToken(params: NotionRefreshTokenParams): Pro
|
|
|
11297
11314
|
* The MCP server handles all Notion API interactions.
|
|
11298
11315
|
*/
|
|
11299
11316
|
declare function createNotionTools(getAccessToken: () => string | null, requestNotionAccess: () => Promise<string>): ToolConfig[];
|
|
11317
|
+
/**
|
|
11318
|
+
* Create all Notion MCP tools, routed through the portal.
|
|
11319
|
+
*
|
|
11320
|
+
* Same tools as {@link createNotionTools}, but no request reaches
|
|
11321
|
+
* mcp.notion.com from this runtime: Notion's MCP server rejects browser
|
|
11322
|
+
* origins, so the portal runs the call server-side. When the portal reports
|
|
11323
|
+
* the connector is not connected (401, 403, 412), the tool returns the
|
|
11324
|
+
* canonical `__anuma_connector_error_v1` result. Executors never throw.
|
|
11325
|
+
*
|
|
11326
|
+
* @param callMcp POSTs `{ tool, arguments }` to the portal's
|
|
11327
|
+
* `/api/v1/connectors/notion/mcp` endpoint and resolves to `{ status, json }`.
|
|
11328
|
+
*/
|
|
11329
|
+
declare function createNotionProxyTools(callMcp: NotionMcpCaller): ToolConfig[];
|
|
11300
11330
|
|
|
11301
|
-
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, 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_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|
|
11331
|
+
export { type AutoExtractMessage, type AutoExtractor, type Budget, CHUNKS_DISCARDED_ORIGIN, type CachedChunkVectors, type CachedServerTools, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChunkVectorCache, type ChunkingOptions, type ConsolidationAction, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateMessageOptions, 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_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PROFILE_FACETS, DEFAULT_PROFILE_FACT_TYPE_WEIGHTS, DEFAULT_PROFILE_PROOF_ALPHA, DEFAULT_PROFILE_TREND_MULTIPLIERS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DurableAutoExtractorOptions, ENTITY_FANOUT, type EmbeddedWalletSignerFn, EncryptionKeyMissingError, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, type ExtractionFunnel, type ExtractionTimings, type FactType, type FileMetadata, type FileProcessingReason, type FileProcessingStatus, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GraphTraversalOptions, HARD_DELETE_WINDOW_MS, INFERENCE_ID_HEADER, type InjectionClassifierOptions, type InjectionReason, type LazyStoredConversation, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type ManualFactType, type MemoriesNeedingTopicExtraction, type MemoryContextItem, type MemoryContextLane, type MemoryContextOptions, type MemoryContextResult, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryToVerify, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MemoryVerification, type MessageRedactionResult, type MessageSkeleton, NEVER_TTL_MS, NODE_BUDGET, NOTION_OAUTH_CONFIG, type NeighborRefiner, type NotionAuthUrlParams, type NotionClientRegistration, type NotionExchangeCodeParams, type NotionMcpCaller, type NotionOAuthEndpoints, type NotionPKCEChallenge, type NotionRefreshTokenParams, type NotionTokenResponse, type NowSource, type ObservationTrend, type ObservationTrendInput, PAST_EVENT_GRACE_MS, PII_PATTERNS, PROFILE_DOC_VERSION, type PhotoIngestResult, type PhotoMediaRef, type PiiCategory, type PiiMatch, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PlatformStorage, type PortalLlmAuth, type PortalLlmFailure, type PortalLlmFailureReason, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSalienceInput, type ProfileSection, type PromptPreProcessor, type PromptPreProcessorContext, type PublishedPhotoMemory, type QuantizedEmbedding, type QuarantinedMemoryInfo, QueueManager, type QueueStatus, 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 RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RedactionResult, type ReflectOptions, type ReflectResult, type RequestEncryptionKeyOptions, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type ResumeStreamWithStorageResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SHORT_TTL_MS, STREAM_RESUMABLE_HEADER, type ScoreBreakdown, type ScoreProfileSalienceOptions, type ScreenResult, type ScreenedCandidate, type SearchSource, type SendMessageWithStorageArgs, type SendMessageWithStorageDetachedResult, type SendMessageWithStorageResult, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type StockPriceClassification, type StockPricePreProcessorOptions, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredMessage, type StoredMessageWithSimilarity, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type StreamSmoothingConfig, type SynthesizeProfileOptions, TOOL_RESULT_ORIGIN, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TopicSkipReason, type TurnCompleteEvent, type TurnSkippedEvent, type UncheckedReason, type UnverifiableReason, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseModelsOptions, type UseModelsResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultEmbeddingExpectation, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultMemoryVisibility, type VaultMemoryWriter, type VaultSaveOperation, type VaultSearchResult, type VaultWriteAction, type VaultWriteInput, type VaultWriteOutcome, type VerificationSources, type VerifyMemoriesForPublishOptions, WalletPoller, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, addConversationMemoriesOp, archiveVaultMemoryOp, assembleMemoryContext, attachFileContextToLastUserMessage, backfillMemoryTopicsOp, buildAttachedFilesText, buildNotionAuthUrl, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearConversationMemoriesOp, clearEncryptionKey, clearLazyTitleCache, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createDurableAutoExtractor, createLlmDecayClassifier, createLlmNeighborRefiner, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createMessageSourceResolver, createNotionProxyTools, createNotionTools, createPlatformCursorStore, createRecallTool, createStockPricePreProcessor, createStreamingDeAnonymizer, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decodeChunkVector, decryptConversationTitle, deleteAllVaultMemoriesForUserOp, deleteMessageOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, discoverNotionOAuthEndpoints, eagerEmbedContent, embedAllMessages, embedMessage, encodeChunkVector, ensureDefaultFoldersOp, exchangeNotionCode, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, formatFileProcessingNotes, generateConversationId, generateEmbedding, generateEmbeddings, generateNotionPKCE, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getCachedServerTools, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getLogger, getMemoriesNeedingTopicExtractionOp, getServerTools, getUnfiledVaultMemoriesOp, getVaultFolderMemoryCountOp, getVaultMemoriesByIdsOp, getVaultMemoryOp, getVaultRankingProjectionsOp, hardDeleteDecayedOp, hasEncryptionKey, ingestPublishedPhotoMemoriesOp, injectionSignatureCatalog, isAttachedFilesText, isDegradedTopicSkip, isEncrypted, isPiiRedactor, isRerankerAvailable, maskScopedEmbeddingCache, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseMedia, preEmbedVaultMemories, quantizeEmbedding, queueManager, rankProfileCandidates, recall, reflect, refreshEncryptionKeyIfMatches, refreshNotionAccessToken, registerNotionClient, relinkMemoryTopicsOp, requestEncryptionKey, resolvePiiRedactor, restoreVaultMemoryOp, resumeStream, retain, scoreProfileSalience, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchVaultMemories, seedEncryptionKeys, setLogger, setMemoryVisibilityOp, shouldChunkMessage, shouldRecallMemory, stampTopicsExtractedAtOp, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, upsertMessageOp, useChat, useChatStorage, useCredits, useEncryption, useModels, verifyMemoriesForPublish, xhrTransport };
|