@ganju/utils 0.0.9 → 0.0.11
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/channelDebounce.d.ts +11 -0
- package/dist/channelDebounce.d.ts.map +1 -1
- package/dist/channelDebounce.js +12 -1
- package/dist/chunking.d.ts +17 -3
- package/dist/chunking.d.ts.map +1 -1
- package/dist/chunking.js +125 -19
- package/dist/constants.d.ts +30 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +136 -5
- package/dist/index.d.ts +207 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/resourceRerank.d.ts +20 -0
- package/dist/resourceRerank.d.ts.map +1 -0
- package/dist/resourceRerank.js +37 -0
- package/dist/schema.d.ts +106 -24
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +45 -4
- package/dist/syncableResource.d.ts +14 -0
- package/dist/syncableResource.d.ts.map +1 -0
- package/dist/syncableResource.js +43 -0
- package/dist/toolCatalog.d.ts +70 -1
- package/dist/toolCatalog.d.ts.map +1 -1
- package/dist/toolCatalog.js +151 -63
- package/dist/toolConfirmation.d.ts +47 -0
- package/dist/toolConfirmation.d.ts.map +1 -0
- package/dist/toolConfirmation.js +217 -0
- package/package.json +1 -1
- package/src/channelDebounce.ts +36 -0
- package/src/chunking.ts +166 -23
- package/src/constants.ts +149 -5
- package/src/index.ts +51 -1
- package/src/resourceRerank.ts +54 -0
- package/src/schema.ts +58 -6
- package/src/syncableResource.ts +68 -0
- package/src/toolCatalog.ts +170 -63
- package/src/toolConfirmation.ts +261 -0
package/dist/index.d.ts
CHANGED
|
@@ -14,16 +14,19 @@ import type { CustomCodeTokenPayload } from './customCodeToken';
|
|
|
14
14
|
import type { ContainmentTokenPayload } from './containmentToken';
|
|
15
15
|
import type { OAuthProviderConfig } from './oauthProviders';
|
|
16
16
|
import type { ExposableResource } from './exposedResource';
|
|
17
|
+
import type { SyncableResource, ResourceSyncProvider } from './syncableResource';
|
|
17
18
|
import type { CustomCodeProject, ProjectPathIssue } from './customCodeProject';
|
|
18
19
|
import type { AttachmentResource, ResolvedAttachment, ResolveAttachmentResult } from './attachment';
|
|
19
20
|
import type { MintedAccessToken } from './accessToken';
|
|
20
|
-
import type { CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolGroupKey, ToolKey } from './toolCatalog';
|
|
21
|
+
import type { CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolAnnotations, ToolGroupKey, ToolKey } from './toolCatalog';
|
|
21
22
|
import type { Separator, ChunkMetadata, PreparedChunk } from './chunking';
|
|
23
|
+
import type { RerankAiBinding } from './resourceRerank';
|
|
22
24
|
import type { RateLimitRetryOptions } from './retry';
|
|
23
25
|
import type { QueueBatchLike, QueueMessageLike, ProcessQueueBatchHandlers } from './processQueueBatch';
|
|
24
26
|
import type { ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource } from './extractedDocument';
|
|
25
27
|
import type { ChannelNotifier, ToolStatusEvent } from './channelNotifier';
|
|
26
|
-
import type { BufferedChannelMessage, ChannelBufferEnvelope, ChannelBufferFlush } from './channelDebounce';
|
|
28
|
+
import type { BufferedChannelMessage, BufferedChannelCommand, ChannelBufferEnvelope, ChannelBufferFlush } from './channelDebounce';
|
|
29
|
+
import type { PendingToolConfirmation, PendingToolConfirmations, ToolEffect } from './toolConfirmation';
|
|
27
30
|
import type { Source, ResourceUrlContext, SourceButton } from './sources';
|
|
28
31
|
import { OAuthReauthRequiredError } from './oauth';
|
|
29
32
|
import type { RefreshOAuthTokenInput, RefreshedOAuthToken } from './oauth';
|
|
@@ -52,7 +55,8 @@ export declare const utils: {
|
|
|
52
55
|
ORGANIZATION_UPDATE: import("zod").ZodObject<{
|
|
53
56
|
id: import("zod").ZodUUID;
|
|
54
57
|
userId: import("zod").ZodUUID;
|
|
55
|
-
name: import("zod").ZodString
|
|
58
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
requireToolConfirmation: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
56
60
|
}, import("zod/v4/core").$strip>;
|
|
57
61
|
ORGANIZATION_GET: import("zod").ZodObject<{
|
|
58
62
|
id: import("zod").ZodUUID;
|
|
@@ -355,18 +359,6 @@ export declare const utils: {
|
|
|
355
359
|
organizationId: import("zod").ZodUUID;
|
|
356
360
|
}, import("zod/v4/core").$strip>;
|
|
357
361
|
ARTIFACT_CREATE_RESOURCE_VIEW: import("zod").ZodObject<{
|
|
358
|
-
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
359
|
-
type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
360
|
-
static: "static";
|
|
361
|
-
template: "template";
|
|
362
|
-
}>>;
|
|
363
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
364
|
-
title: import("zod").ZodString;
|
|
365
|
-
uri: import("zod").ZodString;
|
|
366
|
-
crawlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
367
|
-
maxPages: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
368
|
-
maxDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
369
|
-
}, import("zod/v4/core").$strip>>;
|
|
370
362
|
mimeType: import("zod").ZodEnum<{
|
|
371
363
|
"text/plain": "text/plain";
|
|
372
364
|
"text/csv": "text/csv";
|
|
@@ -407,6 +399,19 @@ export declare const utils: {
|
|
|
407
399
|
"application/x-perl": "application/x-perl";
|
|
408
400
|
"application/octet-stream": "application/octet-stream";
|
|
409
401
|
}>;
|
|
402
|
+
fileName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
403
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
404
|
+
type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
405
|
+
static: "static";
|
|
406
|
+
template: "template";
|
|
407
|
+
}>>;
|
|
408
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
409
|
+
title: import("zod").ZodString;
|
|
410
|
+
uri: import("zod").ZodString;
|
|
411
|
+
crawlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
412
|
+
maxPages: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
413
|
+
maxDepth: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
414
|
+
}, import("zod/v4/core").$strip>>;
|
|
410
415
|
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
411
416
|
sourceType: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
412
417
|
FILE: "FILE";
|
|
@@ -417,7 +422,6 @@ export declare const utils: {
|
|
|
417
422
|
}>>;
|
|
418
423
|
encoding: import("zod").ZodOptional<import("zod").ZodString>;
|
|
419
424
|
fileKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
420
|
-
fileName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
421
425
|
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
422
426
|
audience: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
423
427
|
user: "user";
|
|
@@ -616,14 +620,6 @@ export declare const utils: {
|
|
|
616
620
|
organizationId: import("zod").ZodUUID;
|
|
617
621
|
}, import("zod/v4/core").$strip>;
|
|
618
622
|
ARTIFACT_UPDATE_RESOURCE_VIEW: import("zod").ZodObject<{
|
|
619
|
-
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
620
|
-
type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
621
|
-
static: "static";
|
|
622
|
-
template: "template";
|
|
623
|
-
}>>;
|
|
624
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
625
|
-
title: import("zod").ZodString;
|
|
626
|
-
uri: import("zod").ZodString;
|
|
627
623
|
mimeType: import("zod").ZodEnum<{
|
|
628
624
|
"text/plain": "text/plain";
|
|
629
625
|
"text/csv": "text/csv";
|
|
@@ -664,6 +660,15 @@ export declare const utils: {
|
|
|
664
660
|
"application/x-perl": "application/x-perl";
|
|
665
661
|
"application/octet-stream": "application/octet-stream";
|
|
666
662
|
}>;
|
|
663
|
+
fileName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
664
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
665
|
+
type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
666
|
+
static: "static";
|
|
667
|
+
template: "template";
|
|
668
|
+
}>>;
|
|
669
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
670
|
+
title: import("zod").ZodString;
|
|
671
|
+
uri: import("zod").ZodString;
|
|
667
672
|
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
668
673
|
sourceType: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
669
674
|
FILE: "FILE";
|
|
@@ -674,7 +679,6 @@ export declare const utils: {
|
|
|
674
679
|
}>>;
|
|
675
680
|
encoding: import("zod").ZodOptional<import("zod").ZodString>;
|
|
676
681
|
fileKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
677
|
-
fileName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
678
682
|
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
679
683
|
audience: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
680
684
|
user: "user";
|
|
@@ -981,6 +985,23 @@ export declare const utils: {
|
|
|
981
985
|
userId: import("zod").ZodUUID;
|
|
982
986
|
organizationId: import("zod").ZodUUID;
|
|
983
987
|
}, import("zod/v4/core").$strip>;
|
|
988
|
+
ARTIFACT_UPDATE_RESOURCE_SYNC_INTERVAL: import("zod").ZodObject<{
|
|
989
|
+
resourceId: import("zod").ZodUUID;
|
|
990
|
+
syncInterval: import("zod").ZodEnum<{
|
|
991
|
+
off: "off";
|
|
992
|
+
daily: "daily";
|
|
993
|
+
weekly: "weekly";
|
|
994
|
+
}>;
|
|
995
|
+
projectId: import("zod").ZodUUID;
|
|
996
|
+
userId: import("zod").ZodUUID;
|
|
997
|
+
organizationId: import("zod").ZodUUID;
|
|
998
|
+
}, import("zod/v4/core").$strip>;
|
|
999
|
+
ARTIFACT_SYNC_RESOURCE: import("zod").ZodObject<{
|
|
1000
|
+
resourceId: import("zod").ZodUUID;
|
|
1001
|
+
projectId: import("zod").ZodUUID;
|
|
1002
|
+
userId: import("zod").ZodUUID;
|
|
1003
|
+
organizationId: import("zod").ZodUUID;
|
|
1004
|
+
}, import("zod/v4/core").$strip>;
|
|
984
1005
|
HTTP_ENDPOINT_CONFIG: import("zod").ZodPipe<import("zod").ZodObject<{
|
|
985
1006
|
name: import("zod").ZodString;
|
|
986
1007
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1048,6 +1069,11 @@ export declare const utils: {
|
|
|
1048
1069
|
jsonPath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1049
1070
|
successStatus: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
1050
1071
|
}, import("zod/v4/core").$strip>>;
|
|
1072
|
+
effect: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1073
|
+
read: "read";
|
|
1074
|
+
write: "write";
|
|
1075
|
+
sensitive: "sensitive";
|
|
1076
|
+
}>>;
|
|
1051
1077
|
auth: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1052
1078
|
kind: import("zod").ZodLiteral<"none">;
|
|
1053
1079
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1136,6 +1162,7 @@ export declare const utils: {
|
|
|
1136
1162
|
pattern?: string | undefined;
|
|
1137
1163
|
enum?: any[] | undefined;
|
|
1138
1164
|
} | undefined;
|
|
1165
|
+
effect?: "read" | "write" | "sensitive" | undefined;
|
|
1139
1166
|
allowedHosts?: string[] | undefined;
|
|
1140
1167
|
}, {
|
|
1141
1168
|
name: string;
|
|
@@ -1203,6 +1230,7 @@ export declare const utils: {
|
|
|
1203
1230
|
pattern?: string | undefined;
|
|
1204
1231
|
enum?: any[] | undefined;
|
|
1205
1232
|
} | undefined;
|
|
1233
|
+
effect?: "read" | "write" | "sensitive" | undefined;
|
|
1206
1234
|
allowedHosts?: string[] | undefined;
|
|
1207
1235
|
}>>;
|
|
1208
1236
|
HTTP_ENDPOINT_CONFIG_WRITE: import("zod").ZodPipe<import("zod").ZodObject<{
|
|
@@ -1272,6 +1300,11 @@ export declare const utils: {
|
|
|
1272
1300
|
jsonPath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1273
1301
|
successStatus: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
1274
1302
|
}, import("zod/v4/core").$strip>>;
|
|
1303
|
+
effect: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1304
|
+
read: "read";
|
|
1305
|
+
write: "write";
|
|
1306
|
+
sensitive: "sensitive";
|
|
1307
|
+
}>>;
|
|
1275
1308
|
auth: import("zod").ZodDefault<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1276
1309
|
kind: import("zod").ZodLiteral<"none">;
|
|
1277
1310
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1360,6 +1393,7 @@ export declare const utils: {
|
|
|
1360
1393
|
pattern?: string | undefined;
|
|
1361
1394
|
enum?: any[] | undefined;
|
|
1362
1395
|
} | undefined;
|
|
1396
|
+
effect?: "read" | "write" | "sensitive" | undefined;
|
|
1363
1397
|
allowedHosts?: string[] | undefined;
|
|
1364
1398
|
}, {
|
|
1365
1399
|
name: string;
|
|
@@ -1427,6 +1461,7 @@ export declare const utils: {
|
|
|
1427
1461
|
pattern?: string | undefined;
|
|
1428
1462
|
enum?: any[] | undefined;
|
|
1429
1463
|
} | undefined;
|
|
1464
|
+
effect?: "read" | "write" | "sensitive" | undefined;
|
|
1430
1465
|
allowedHosts?: string[] | undefined;
|
|
1431
1466
|
}>>;
|
|
1432
1467
|
MCP_PROXY_CONFIG: import("zod").ZodObject<{
|
|
@@ -1509,7 +1544,19 @@ export declare const utils: {
|
|
|
1509
1544
|
pattern: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1510
1545
|
enum: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
|
|
1511
1546
|
}, import("zod/v4/core").$strip>>;
|
|
1512
|
-
|
|
1547
|
+
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1548
|
+
readOnlyHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1549
|
+
destructiveHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1550
|
+
idempotentHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1551
|
+
openWorldHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1552
|
+
}, import("zod/v4/core").$strict>>;
|
|
1553
|
+
}, import("zod/v4/core").$strip>;
|
|
1554
|
+
TOOL_ANNOTATIONS: import("zod").ZodObject<{
|
|
1555
|
+
readOnlyHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1556
|
+
destructiveHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1557
|
+
idempotentHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1558
|
+
openWorldHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1559
|
+
}, import("zod/v4/core").$strict>;
|
|
1513
1560
|
CUSTOM_CODE_MANIFEST: import("zod").ZodObject<{
|
|
1514
1561
|
tools: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1515
1562
|
name: import("zod").ZodString;
|
|
@@ -1543,6 +1590,12 @@ export declare const utils: {
|
|
|
1543
1590
|
pattern: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1544
1591
|
enum: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
|
|
1545
1592
|
}, import("zod/v4/core").$strip>>;
|
|
1593
|
+
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1594
|
+
readOnlyHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1595
|
+
destructiveHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1596
|
+
idempotentHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1597
|
+
openWorldHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1598
|
+
}, import("zod/v4/core").$strict>>;
|
|
1546
1599
|
}, import("zod/v4/core").$strip>>;
|
|
1547
1600
|
}, import("zod/v4/core").$strip>;
|
|
1548
1601
|
ARTIFACT_CUSTOM_CODE_CREATE_VERSION: import("zod").ZodObject<{
|
|
@@ -1579,6 +1632,12 @@ export declare const utils: {
|
|
|
1579
1632
|
pattern: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1580
1633
|
enum: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
|
|
1581
1634
|
}, import("zod/v4/core").$strip>>;
|
|
1635
|
+
annotations: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1636
|
+
readOnlyHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1637
|
+
destructiveHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1638
|
+
idempotentHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1639
|
+
openWorldHint: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1640
|
+
}, import("zod/v4/core").$strict>>;
|
|
1582
1641
|
}, import("zod/v4/core").$strip>>;
|
|
1583
1642
|
}, import("zod/v4/core").$strip>;
|
|
1584
1643
|
config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -1813,6 +1872,7 @@ export declare const utils: {
|
|
|
1813
1872
|
PLAN_FEATURE_EMBEDDED_STORAGE: "embeddedStorage";
|
|
1814
1873
|
PLAN_FEATURE_MESSAGE: "message";
|
|
1815
1874
|
PLAN_FEATURE_TOOL_CALL: "toolCall";
|
|
1875
|
+
PLAN_FEATURE_RESOURCE_SYNC: "resourceSync";
|
|
1816
1876
|
PLAN_LIMIT_ERROR_CODE: string;
|
|
1817
1877
|
BILLING_METER_MESSAGES: string;
|
|
1818
1878
|
BILLING_METER_SHARED_MESSAGES: string;
|
|
@@ -2018,6 +2078,18 @@ export declare const utils: {
|
|
|
2018
2078
|
RESOURCE_SOURCE_TYPE_ONE_DRIVE_FOLDER: "ONE_DRIVE_FOLDER";
|
|
2019
2079
|
RESOURCE_SOURCE_TYPE_CUSTOM_CODE: "CUSTOM_CODE";
|
|
2020
2080
|
RESOURCE_SOURCE_TYPES: ("FILE" | "WEBSITE" | "GOOGLE_DRIVE_FOLDER" | "ONE_DRIVE_FOLDER" | "CUSTOM_CODE")[];
|
|
2081
|
+
RESOURCE_SYNC_INTERVAL_OFF: "off";
|
|
2082
|
+
RESOURCE_SYNC_INTERVAL_DAILY: "daily";
|
|
2083
|
+
RESOURCE_SYNC_INTERVAL_WEEKLY: "weekly";
|
|
2084
|
+
RESOURCE_SYNC_INTERVALS: readonly ["off", "daily", "weekly"];
|
|
2085
|
+
RESOURCE_SYNC_INTERVAL_DEFAULT: "weekly";
|
|
2086
|
+
RESOURCE_SYNC_INTERVAL_MS: {
|
|
2087
|
+
readonly daily: number;
|
|
2088
|
+
readonly weekly: number;
|
|
2089
|
+
};
|
|
2090
|
+
RESOURCE_SYNC_BATCH_SIZE: number;
|
|
2091
|
+
RESOURCE_SYNC_MANUAL_COOLDOWN_MS: number;
|
|
2092
|
+
RESOURCE_SYNC_STALE_MS: number;
|
|
2021
2093
|
CRAWL_RENDERER_CHEERIO: "cheerio";
|
|
2022
2094
|
CRAWL_RENDERER_PLAYWRIGHT: "playwright";
|
|
2023
2095
|
CRAWL_RENDERERS: ("cheerio" | "playwright")[];
|
|
@@ -2080,6 +2152,11 @@ export declare const utils: {
|
|
|
2080
2152
|
SHARED_KEY_HISTORY_LIMIT: number;
|
|
2081
2153
|
SHARED_KEY_MAX_TOOL_LOOPS: number;
|
|
2082
2154
|
CHANNEL_MAX_TOOLS: number;
|
|
2155
|
+
TOOL_CONFIRMATION_TTL_MS: number;
|
|
2156
|
+
TOOL_CONFIRMATION_REQUIRED_RESULT: string;
|
|
2157
|
+
TOOL_CONFIRMATION_FALLBACK_QUESTION: string;
|
|
2158
|
+
TOOL_CONFIRMATION_ASK_INSTRUCTION: string;
|
|
2159
|
+
TOOL_CONFIRMATION_SYSTEM_NOTE: string;
|
|
2083
2160
|
CHANNEL_DEBOUNCE_DEFAULT_MS: number;
|
|
2084
2161
|
CHANNEL_DEBOUNCE_MIN_MS: number;
|
|
2085
2162
|
CHANNEL_DEBOUNCE_MAX_MS: number;
|
|
@@ -2112,8 +2189,10 @@ export declare const utils: {
|
|
|
2112
2189
|
DISCORD_TIMESTAMP_HEADER: string;
|
|
2113
2190
|
DISCORD_INTERACTION_TYPE_PING: number;
|
|
2114
2191
|
DISCORD_INTERACTION_TYPE_APPLICATION_COMMAND: number;
|
|
2192
|
+
DISCORD_INTERACTION_TYPE_MESSAGE_COMPONENT: number;
|
|
2115
2193
|
DISCORD_INTERACTION_RESPONSE_PONG: number;
|
|
2116
2194
|
DISCORD_INTERACTION_RESPONSE_DEFERRED: number;
|
|
2195
|
+
DISCORD_INTERACTION_RESPONSE_UPDATE_MESSAGE: number;
|
|
2117
2196
|
DISCORD_CHANNEL_TYPE_DM: number;
|
|
2118
2197
|
DISCORD_CHANNEL_TYPE_GROUP_DM: number;
|
|
2119
2198
|
DISCORD_GATEWAY_OP_DISPATCH: number;
|
|
@@ -2128,6 +2207,7 @@ export declare const utils: {
|
|
|
2128
2207
|
WHATSAPP_API_BASE: string;
|
|
2129
2208
|
WHATSAPP_API_VERSION: string;
|
|
2130
2209
|
WHATSAPP_MESSAGE_LIMIT: number;
|
|
2210
|
+
WHATSAPP_INTERACTIVE_BODY_LIMIT: number;
|
|
2131
2211
|
WHATSAPP_SIGNATURE_HEADER: string;
|
|
2132
2212
|
WHATSAPP_SIGNATURE_PREFIX: string;
|
|
2133
2213
|
WHATSAPP_HUB_MODE_PARAM: string;
|
|
@@ -2143,6 +2223,12 @@ export declare const utils: {
|
|
|
2143
2223
|
CHUNK_TARGET_CHARS: number;
|
|
2144
2224
|
CHUNK_OVERLAP_CHARS: number;
|
|
2145
2225
|
EMBED_BATCH_SIZE: number;
|
|
2226
|
+
RESOURCE_SEARCH_CANDIDATES: number;
|
|
2227
|
+
RESOURCE_SEARCH_RRF_K: number;
|
|
2228
|
+
RESOURCE_SEARCH_COMMON_TERM_DIVISOR: number;
|
|
2229
|
+
RESOURCE_SEARCH_COMMON_TERM_MIN: number;
|
|
2230
|
+
RESOURCE_SEARCH_RERANK_CANDIDATES: number;
|
|
2231
|
+
RESOURCE_SEARCH_RERANK_MODEL: string;
|
|
2146
2232
|
RESOURCE_HANDLER_SLEEP_AFTER: string;
|
|
2147
2233
|
DOCS_URL: string;
|
|
2148
2234
|
BASE64_DATA_URI_RE: RegExp;
|
|
@@ -2420,6 +2506,13 @@ export declare const utils: {
|
|
|
2420
2506
|
oauthProviders: Record<string, OAuthProviderConfig>;
|
|
2421
2507
|
resolveAttachment: (resource: AttachmentResource, readObject: (key: string) => Promise<ArrayBuffer | null>, verb?: "attach" | "upload") => Promise<ResolveAttachmentResult>;
|
|
2422
2508
|
isExposedResource: (resource: ExposableResource) => boolean;
|
|
2509
|
+
isSyncableResource: (resource: SyncableResource) => boolean;
|
|
2510
|
+
isResourceSyncInProgress: (resource: {
|
|
2511
|
+
status: string;
|
|
2512
|
+
syncStartedAt?: Date | string | null;
|
|
2513
|
+
createdAt: Date | string;
|
|
2514
|
+
}, now?: number) => boolean;
|
|
2515
|
+
resourceSyncProvider: (resource: SyncableResource) => ResourceSyncProvider | null;
|
|
2423
2516
|
describeVendorError: (body: unknown, fallback: string) => string;
|
|
2424
2517
|
withDeadline: <T>(work: Promise<T>, ms: number) => Promise<T>;
|
|
2425
2518
|
isDeadlineError: (error: unknown) => boolean;
|
|
@@ -2462,91 +2555,109 @@ export declare const utils: {
|
|
|
2462
2555
|
readonly title: "Batch Modify Labels";
|
|
2463
2556
|
readonly description: "Add or remove labels on many emails at once (archive, mark read, etc.).";
|
|
2464
2557
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
2558
|
+
readonly annotations: ToolAnnotations;
|
|
2465
2559
|
}, {
|
|
2466
2560
|
readonly key: "gmail-create-draft";
|
|
2467
2561
|
readonly title: "Create Draft";
|
|
2468
2562
|
readonly description: "Save a new draft in Gmail without sending it yet.";
|
|
2469
2563
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
2564
|
+
readonly annotations: ToolAnnotations;
|
|
2470
2565
|
}, {
|
|
2471
2566
|
readonly key: "gmail-delete-draft";
|
|
2472
2567
|
readonly title: "Delete Draft";
|
|
2473
2568
|
readonly description: "Permanently delete a draft.";
|
|
2474
2569
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
2570
|
+
readonly annotations: ToolAnnotations;
|
|
2475
2571
|
}, {
|
|
2476
2572
|
readonly key: "gmail-forward-email";
|
|
2477
2573
|
readonly title: "Forward Email";
|
|
2478
2574
|
readonly description: "Forward an email to a new recipient.";
|
|
2479
2575
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
2576
|
+
readonly annotations: ToolAnnotations;
|
|
2480
2577
|
}, {
|
|
2481
2578
|
readonly key: "gmail-get-draft";
|
|
2482
2579
|
readonly title: "Get Draft";
|
|
2483
2580
|
readonly description: "Open a saved draft to review its contents.";
|
|
2484
2581
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
2582
|
+
readonly annotations: ToolAnnotations;
|
|
2485
2583
|
}, {
|
|
2486
2584
|
readonly key: "gmail-get-profile";
|
|
2487
2585
|
readonly title: "Get Profile";
|
|
2488
2586
|
readonly description: "Show the email address and inbox stats for the connected Gmail account.";
|
|
2489
2587
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
2588
|
+
readonly annotations: ToolAnnotations;
|
|
2490
2589
|
}, {
|
|
2491
2590
|
readonly key: "gmail-get-thread";
|
|
2492
2591
|
readonly title: "Get Thread";
|
|
2493
2592
|
readonly description: "See every message inside one conversation.";
|
|
2494
2593
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
2594
|
+
readonly annotations: ToolAnnotations;
|
|
2495
2595
|
}, {
|
|
2496
2596
|
readonly key: "gmail-list-drafts";
|
|
2497
2597
|
readonly title: "List Drafts";
|
|
2498
2598
|
readonly description: "Browse your saved drafts.";
|
|
2499
2599
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
2600
|
+
readonly annotations: ToolAnnotations;
|
|
2500
2601
|
}, {
|
|
2501
2602
|
readonly key: "gmail-list-emails";
|
|
2502
2603
|
readonly title: "List Emails";
|
|
2503
2604
|
readonly description: "Browse your Gmail inbox, with optional search filters.";
|
|
2504
2605
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
2606
|
+
readonly annotations: ToolAnnotations;
|
|
2505
2607
|
}, {
|
|
2506
2608
|
readonly key: "gmail-list-labels";
|
|
2507
2609
|
readonly title: "List Labels";
|
|
2508
2610
|
readonly description: "See all of your Gmail labels and folders.";
|
|
2509
2611
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.labels";
|
|
2612
|
+
readonly annotations: ToolAnnotations;
|
|
2510
2613
|
}, {
|
|
2511
2614
|
readonly key: "gmail-list-threads";
|
|
2512
2615
|
readonly title: "List Threads";
|
|
2513
2616
|
readonly description: "List your Gmail conversations.";
|
|
2514
2617
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
2618
|
+
readonly annotations: ToolAnnotations;
|
|
2515
2619
|
}, {
|
|
2516
2620
|
readonly key: "gmail-modify-labels";
|
|
2517
2621
|
readonly title: "Modify Labels";
|
|
2518
2622
|
readonly description: "Add or remove labels on a single email — archive it, mark it read, star it, and more.";
|
|
2519
2623
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
2624
|
+
readonly annotations: ToolAnnotations;
|
|
2520
2625
|
}, {
|
|
2521
2626
|
readonly key: "gmail-read-email";
|
|
2522
2627
|
readonly title: "Read Email";
|
|
2523
2628
|
readonly description: "Open and read a specific email.";
|
|
2524
2629
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.readonly";
|
|
2630
|
+
readonly annotations: ToolAnnotations;
|
|
2525
2631
|
}, {
|
|
2526
2632
|
readonly key: "gmail-reply-email";
|
|
2527
2633
|
readonly title: "Reply Email";
|
|
2528
2634
|
readonly description: "Reply to an email so the response stays in the same conversation.";
|
|
2529
2635
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
2636
|
+
readonly annotations: ToolAnnotations;
|
|
2530
2637
|
}, {
|
|
2531
2638
|
readonly key: "gmail-send-draft";
|
|
2532
2639
|
readonly title: "Send Draft";
|
|
2533
2640
|
readonly description: "Send a draft you've already saved.";
|
|
2534
2641
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
2642
|
+
readonly annotations: ToolAnnotations;
|
|
2535
2643
|
}, {
|
|
2536
2644
|
readonly key: "gmail-send-email";
|
|
2537
2645
|
readonly title: "Send Email";
|
|
2538
2646
|
readonly description: "Compose and send a new email from your connected Gmail account.";
|
|
2539
2647
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.send";
|
|
2648
|
+
readonly annotations: ToolAnnotations;
|
|
2540
2649
|
}, {
|
|
2541
2650
|
readonly key: "gmail-trash-email";
|
|
2542
2651
|
readonly title: "Move to Trash";
|
|
2543
2652
|
readonly description: "Move an email to Trash. It stays recoverable for 30 days.";
|
|
2544
2653
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.modify";
|
|
2654
|
+
readonly annotations: ToolAnnotations;
|
|
2545
2655
|
}, {
|
|
2546
2656
|
readonly key: "gmail-update-draft";
|
|
2547
2657
|
readonly title: "Update Draft";
|
|
2548
2658
|
readonly description: "Edit the contents of a saved draft.";
|
|
2549
2659
|
readonly requiredScopes: "https://www.googleapis.com/auth/gmail.compose";
|
|
2660
|
+
readonly annotations: ToolAnnotations;
|
|
2550
2661
|
}];
|
|
2551
2662
|
}, {
|
|
2552
2663
|
readonly key: "outlook";
|
|
@@ -2559,91 +2670,109 @@ export declare const utils: {
|
|
|
2559
2670
|
readonly title: "Batch Move Messages";
|
|
2560
2671
|
readonly description: "Move up to 20 messages to the same folder.";
|
|
2561
2672
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2673
|
+
readonly annotations: ToolAnnotations;
|
|
2562
2674
|
}, {
|
|
2563
2675
|
readonly key: "outlook-create-draft";
|
|
2564
2676
|
readonly title: "Create Draft";
|
|
2565
2677
|
readonly description: "Create a draft email saved in Drafts.";
|
|
2566
2678
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2679
|
+
readonly annotations: ToolAnnotations;
|
|
2567
2680
|
}, {
|
|
2568
2681
|
readonly key: "outlook-delete-draft";
|
|
2569
2682
|
readonly title: "Delete Draft";
|
|
2570
2683
|
readonly description: "Permanently delete a draft.";
|
|
2571
2684
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2685
|
+
readonly annotations: ToolAnnotations;
|
|
2572
2686
|
}, {
|
|
2573
2687
|
readonly key: "outlook-forward-email";
|
|
2574
2688
|
readonly title: "Forward";
|
|
2575
2689
|
readonly description: "Forward an existing message to a new recipient.";
|
|
2576
2690
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
2691
|
+
readonly annotations: ToolAnnotations;
|
|
2577
2692
|
}, {
|
|
2578
2693
|
readonly key: "outlook-get-draft";
|
|
2579
2694
|
readonly title: "Get Draft";
|
|
2580
2695
|
readonly description: "Read the full contents of a draft.";
|
|
2581
2696
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2697
|
+
readonly annotations: ToolAnnotations;
|
|
2582
2698
|
}, {
|
|
2583
2699
|
readonly key: "outlook-get-profile";
|
|
2584
2700
|
readonly title: "Get Profile";
|
|
2585
2701
|
readonly description: "Get the connected account's profile and inbox totals.";
|
|
2586
2702
|
readonly requiredScopes: "https://graph.microsoft.com/User.Read";
|
|
2703
|
+
readonly annotations: ToolAnnotations;
|
|
2587
2704
|
}, {
|
|
2588
2705
|
readonly key: "outlook-get-thread";
|
|
2589
2706
|
readonly title: "Get Thread";
|
|
2590
2707
|
readonly description: "Get summaries of every message in a conversation.";
|
|
2591
2708
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2709
|
+
readonly annotations: ToolAnnotations;
|
|
2592
2710
|
}, {
|
|
2593
2711
|
readonly key: "outlook-list-drafts";
|
|
2594
2712
|
readonly title: "List Drafts";
|
|
2595
2713
|
readonly description: "List drafts in the Drafts folder.";
|
|
2596
2714
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2715
|
+
readonly annotations: ToolAnnotations;
|
|
2597
2716
|
}, {
|
|
2598
2717
|
readonly key: "outlook-list-emails";
|
|
2599
2718
|
readonly title: "List Emails";
|
|
2600
2719
|
readonly description: "List inbox messages, optionally filtered by search.";
|
|
2601
2720
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2721
|
+
readonly annotations: ToolAnnotations;
|
|
2602
2722
|
}, {
|
|
2603
2723
|
readonly key: "outlook-list-folders";
|
|
2604
2724
|
readonly title: "List Folders";
|
|
2605
2725
|
readonly description: "List every mail folder on the account.";
|
|
2606
2726
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2727
|
+
readonly annotations: ToolAnnotations;
|
|
2607
2728
|
}, {
|
|
2608
2729
|
readonly key: "outlook-list-threads";
|
|
2609
2730
|
readonly title: "List Threads";
|
|
2610
2731
|
readonly description: "List inbox conversation threads.";
|
|
2611
2732
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2733
|
+
readonly annotations: ToolAnnotations;
|
|
2612
2734
|
}, {
|
|
2613
2735
|
readonly key: "outlook-move-message";
|
|
2614
2736
|
readonly title: "Move Message";
|
|
2615
2737
|
readonly description: "Move a message to a different folder.";
|
|
2616
2738
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2739
|
+
readonly annotations: ToolAnnotations;
|
|
2617
2740
|
}, {
|
|
2618
2741
|
readonly key: "outlook-read-email";
|
|
2619
2742
|
readonly title: "Read Email";
|
|
2620
2743
|
readonly description: "Read the full contents of one message by ID.";
|
|
2621
2744
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Read";
|
|
2745
|
+
readonly annotations: ToolAnnotations;
|
|
2622
2746
|
}, {
|
|
2623
2747
|
readonly key: "outlook-reply-email";
|
|
2624
2748
|
readonly title: "Reply";
|
|
2625
2749
|
readonly description: "Reply to an existing message, preserving the conversation.";
|
|
2626
2750
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
2751
|
+
readonly annotations: ToolAnnotations;
|
|
2627
2752
|
}, {
|
|
2628
2753
|
readonly key: "outlook-send-draft";
|
|
2629
2754
|
readonly title: "Send Draft";
|
|
2630
2755
|
readonly description: "Send an existing draft as-is.";
|
|
2631
2756
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
2757
|
+
readonly annotations: ToolAnnotations;
|
|
2632
2758
|
}, {
|
|
2633
2759
|
readonly key: "outlook-send-email";
|
|
2634
2760
|
readonly title: "Send Email";
|
|
2635
2761
|
readonly description: "Send a brand-new email from the connected account.";
|
|
2636
2762
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.Send";
|
|
2763
|
+
readonly annotations: ToolAnnotations;
|
|
2637
2764
|
}, {
|
|
2638
2765
|
readonly key: "outlook-trash-email";
|
|
2639
2766
|
readonly title: "Move to Trash";
|
|
2640
2767
|
readonly description: "Move a message to the Deleted Items folder.";
|
|
2641
2768
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2769
|
+
readonly annotations: ToolAnnotations;
|
|
2642
2770
|
}, {
|
|
2643
2771
|
readonly key: "outlook-update-draft";
|
|
2644
2772
|
readonly title: "Update Draft";
|
|
2645
2773
|
readonly description: "Replace the contents of an existing draft.";
|
|
2646
2774
|
readonly requiredScopes: "https://graph.microsoft.com/Mail.ReadWrite";
|
|
2775
|
+
readonly annotations: ToolAnnotations;
|
|
2647
2776
|
}];
|
|
2648
2777
|
}, {
|
|
2649
2778
|
readonly key: "slack";
|
|
@@ -2656,21 +2785,25 @@ export declare const utils: {
|
|
|
2656
2785
|
readonly title: "Get User";
|
|
2657
2786
|
readonly description: "Look up a Slack user by ID or email.";
|
|
2658
2787
|
readonly requiredScopes: "users:read,users:read.email";
|
|
2788
|
+
readonly annotations: ToolAnnotations;
|
|
2659
2789
|
}, {
|
|
2660
2790
|
readonly key: "slack-list-channels";
|
|
2661
2791
|
readonly title: "List Channels";
|
|
2662
2792
|
readonly description: "Browse the channels and DMs the agent can see.";
|
|
2663
2793
|
readonly requiredScopes: "channels:read,groups:read,mpim:read,im:read";
|
|
2794
|
+
readonly annotations: ToolAnnotations;
|
|
2664
2795
|
}, {
|
|
2665
2796
|
readonly key: "slack-send-message";
|
|
2666
2797
|
readonly title: "Send Message";
|
|
2667
2798
|
readonly description: "Post a message to a Slack channel, DM, or thread.";
|
|
2668
2799
|
readonly requiredScopes: "chat:write";
|
|
2800
|
+
readonly annotations: ToolAnnotations;
|
|
2669
2801
|
}, {
|
|
2670
2802
|
readonly key: "slack-upload-file";
|
|
2671
2803
|
readonly title: "Upload File";
|
|
2672
2804
|
readonly description: "Upload a stored resource into a Slack channel.";
|
|
2673
2805
|
readonly requiredScopes: "files:write,chat:write";
|
|
2806
|
+
readonly annotations: ToolAnnotations;
|
|
2674
2807
|
}];
|
|
2675
2808
|
}, {
|
|
2676
2809
|
readonly key: "slack-user";
|
|
@@ -2683,6 +2816,7 @@ export declare const utils: {
|
|
|
2683
2816
|
readonly title: "Search Messages";
|
|
2684
2817
|
readonly description: "Search messages across the workspace. Requires a Slack user token (xoxp).";
|
|
2685
2818
|
readonly requiredScopes: "search:read";
|
|
2819
|
+
readonly annotations: ToolAnnotations;
|
|
2686
2820
|
}];
|
|
2687
2821
|
}, {
|
|
2688
2822
|
readonly key: "google-calendar";
|
|
@@ -2695,31 +2829,37 @@ export declare const utils: {
|
|
|
2695
2829
|
readonly title: "Create Event";
|
|
2696
2830
|
readonly description: "Add a new event to a calendar.";
|
|
2697
2831
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
2832
|
+
readonly annotations: ToolAnnotations;
|
|
2698
2833
|
}, {
|
|
2699
2834
|
readonly key: "calendar-delete-event";
|
|
2700
2835
|
readonly title: "Delete Event";
|
|
2701
2836
|
readonly description: "Permanently remove an event from a calendar.";
|
|
2702
2837
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
2838
|
+
readonly annotations: ToolAnnotations;
|
|
2703
2839
|
}, {
|
|
2704
2840
|
readonly key: "calendar-find-free-slots";
|
|
2705
2841
|
readonly title: "Find Free Slots";
|
|
2706
2842
|
readonly description: "Find open time gaps on a calendar.";
|
|
2707
2843
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
2844
|
+
readonly annotations: ToolAnnotations;
|
|
2708
2845
|
}, {
|
|
2709
2846
|
readonly key: "calendar-list-calendars";
|
|
2710
2847
|
readonly title: "List Calendars";
|
|
2711
2848
|
readonly description: "See all calendars on the connected Google account.";
|
|
2712
2849
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
2850
|
+
readonly annotations: ToolAnnotations;
|
|
2713
2851
|
}, {
|
|
2714
2852
|
readonly key: "calendar-list-events";
|
|
2715
2853
|
readonly title: "List Events";
|
|
2716
2854
|
readonly description: "Browse events on a calendar within a time range.";
|
|
2717
2855
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.readonly";
|
|
2856
|
+
readonly annotations: ToolAnnotations;
|
|
2718
2857
|
}, {
|
|
2719
2858
|
readonly key: "calendar-update-event";
|
|
2720
2859
|
readonly title: "Update Event";
|
|
2721
2860
|
readonly description: "Change the details of an existing event.";
|
|
2722
2861
|
readonly requiredScopes: "https://www.googleapis.com/auth/calendar.events";
|
|
2862
|
+
readonly annotations: ToolAnnotations;
|
|
2723
2863
|
}];
|
|
2724
2864
|
}, {
|
|
2725
2865
|
readonly key: "calcom";
|
|
@@ -2732,21 +2872,25 @@ export declare const utils: {
|
|
|
2732
2872
|
readonly title: "Cancel Booking";
|
|
2733
2873
|
readonly description: "Cancel an existing booking by its UID.";
|
|
2734
2874
|
readonly requiredScopes: null;
|
|
2875
|
+
readonly annotations: ToolAnnotations;
|
|
2735
2876
|
}, {
|
|
2736
2877
|
readonly key: "calcom-create-booking";
|
|
2737
2878
|
readonly title: "Create Booking";
|
|
2738
2879
|
readonly description: "Book an available slot for an attendee.";
|
|
2739
2880
|
readonly requiredScopes: null;
|
|
2881
|
+
readonly annotations: ToolAnnotations;
|
|
2740
2882
|
}, {
|
|
2741
2883
|
readonly key: "calcom-list-available-slots";
|
|
2742
2884
|
readonly title: "List Available Slots";
|
|
2743
2885
|
readonly description: "Find open booking times for an event type in a date range.";
|
|
2744
2886
|
readonly requiredScopes: null;
|
|
2887
|
+
readonly annotations: ToolAnnotations;
|
|
2745
2888
|
}, {
|
|
2746
2889
|
readonly key: "calcom-list-event-types";
|
|
2747
2890
|
readonly title: "List Event Types";
|
|
2748
2891
|
readonly description: "See the bookable meeting types on the connected Cal.com account.";
|
|
2749
2892
|
readonly requiredScopes: null;
|
|
2893
|
+
readonly annotations: ToolAnnotations;
|
|
2750
2894
|
}];
|
|
2751
2895
|
}, {
|
|
2752
2896
|
readonly key: "web";
|
|
@@ -2759,11 +2903,13 @@ export declare const utils: {
|
|
|
2759
2903
|
readonly title: "Web Extract";
|
|
2760
2904
|
readonly description: "Fetch the full cleaned text of specific web pages by URL for in-depth reading.";
|
|
2761
2905
|
readonly requiredScopes: null;
|
|
2906
|
+
readonly annotations: ToolAnnotations;
|
|
2762
2907
|
}, {
|
|
2763
2908
|
readonly key: "web-search";
|
|
2764
2909
|
readonly title: "Web Search";
|
|
2765
2910
|
readonly description: "Search the live web and return the top results plus a synthesized answer so the model can cite sources.";
|
|
2766
2911
|
readonly requiredScopes: null;
|
|
2912
|
+
readonly annotations: ToolAnnotations;
|
|
2767
2913
|
}];
|
|
2768
2914
|
}, {
|
|
2769
2915
|
readonly key: "builtin";
|
|
@@ -2776,26 +2922,31 @@ export declare const utils: {
|
|
|
2776
2922
|
readonly title: "List Prompts";
|
|
2777
2923
|
readonly description: "List the prompts and commands this assistant exposes, and how to run them on the current channel.";
|
|
2778
2924
|
readonly requiredScopes: null;
|
|
2925
|
+
readonly annotations: ToolAnnotations;
|
|
2779
2926
|
}, {
|
|
2780
2927
|
readonly key: "list-resources";
|
|
2781
2928
|
readonly title: "List Resources";
|
|
2782
2929
|
readonly description: "List every resource available to this assistant.";
|
|
2783
2930
|
readonly requiredScopes: null;
|
|
2931
|
+
readonly annotations: ToolAnnotations;
|
|
2784
2932
|
}, {
|
|
2785
2933
|
readonly key: "read-resource";
|
|
2786
2934
|
readonly title: "Read Resource";
|
|
2787
2935
|
readonly description: "Read the contents of a stored resource.";
|
|
2788
2936
|
readonly requiredScopes: null;
|
|
2937
|
+
readonly annotations: ToolAnnotations;
|
|
2789
2938
|
}, {
|
|
2790
2939
|
readonly key: "search-resources";
|
|
2791
2940
|
readonly title: "Search Resources";
|
|
2792
|
-
readonly description: "Find the resources most relevant to a question
|
|
2941
|
+
readonly description: "Find the resources most relevant to a question, by meaning and by exact keywords.";
|
|
2793
2942
|
readonly requiredScopes: null;
|
|
2943
|
+
readonly annotations: ToolAnnotations;
|
|
2794
2944
|
}, {
|
|
2795
2945
|
readonly key: "send-resource";
|
|
2796
2946
|
readonly title: "Send Resource";
|
|
2797
2947
|
readonly description: "Deliver a resource to the user as a chat attachment.";
|
|
2798
2948
|
readonly requiredScopes: null;
|
|
2949
|
+
readonly annotations: ToolAnnotations;
|
|
2799
2950
|
}];
|
|
2800
2951
|
}, {
|
|
2801
2952
|
readonly key: "greeting";
|
|
@@ -2808,6 +2959,7 @@ export declare const utils: {
|
|
|
2808
2959
|
readonly title: "Greeting";
|
|
2809
2960
|
readonly description: "Reply with a friendly hello in English or Spanish (demo tool).";
|
|
2810
2961
|
readonly requiredScopes: null;
|
|
2962
|
+
readonly annotations: ToolAnnotations;
|
|
2811
2963
|
}];
|
|
2812
2964
|
}, {
|
|
2813
2965
|
readonly key: "http-endpoint";
|
|
@@ -2820,6 +2972,7 @@ export declare const utils: {
|
|
|
2820
2972
|
readonly title: "HTTP Endpoint";
|
|
2821
2973
|
readonly description: "A user-configured HTTP request exposed to the agent as its own named tool.";
|
|
2822
2974
|
readonly requiredScopes: null;
|
|
2975
|
+
readonly annotations: null;
|
|
2823
2976
|
}];
|
|
2824
2977
|
}, {
|
|
2825
2978
|
readonly key: "mcp-proxy";
|
|
@@ -2832,6 +2985,7 @@ export declare const utils: {
|
|
|
2832
2985
|
readonly title: "MCP Server";
|
|
2833
2986
|
readonly description: "A connected remote MCP server. Each server you add exposes its tools to the agent under a vendor prefix.";
|
|
2834
2987
|
readonly requiredScopes: null;
|
|
2988
|
+
readonly annotations: null;
|
|
2835
2989
|
}];
|
|
2836
2990
|
}, {
|
|
2837
2991
|
readonly key: "custom-code";
|
|
@@ -2844,6 +2998,7 @@ export declare const utils: {
|
|
|
2844
2998
|
readonly title: "Custom code";
|
|
2845
2999
|
readonly description: "Tools implemented by your own code. One script per artifact; names and schemas come from the published version.";
|
|
2846
3000
|
readonly requiredScopes: null;
|
|
3001
|
+
readonly annotations: null;
|
|
2847
3002
|
}];
|
|
2848
3003
|
}];
|
|
2849
3004
|
TOOL_KEYS: ("custom-code" | "list-resources" | "search-resources" | "read-resource" | "send-resource" | "list-prompts" | "calendar-list-calendars" | "calendar-create-event" | "calendar-find-free-slots" | "http-endpoint" | "mcp-proxy" | "web-search" | "web-extract" | "greeting" | "gmail-send-email" | "gmail-reply-email" | "gmail-forward-email" | "gmail-send-draft" | "gmail-create-draft" | "gmail-update-draft" | "gmail-delete-draft" | "gmail-trash-email" | "gmail-modify-labels" | "gmail-batch-modify-labels" | "outlook-send-email" | "outlook-reply-email" | "outlook-forward-email" | "outlook-send-draft" | "outlook-create-draft" | "outlook-update-draft" | "outlook-delete-draft" | "outlook-trash-email" | "outlook-move-message" | "outlook-batch-move-messages" | "gmail-get-draft" | "gmail-get-profile" | "gmail-get-thread" | "gmail-list-drafts" | "gmail-list-emails" | "gmail-list-labels" | "gmail-list-threads" | "gmail-read-email" | "outlook-get-draft" | "outlook-get-profile" | "outlook-get-thread" | "outlook-list-drafts" | "outlook-list-emails" | "outlook-list-folders" | "outlook-list-threads" | "outlook-read-email" | "slack-get-user" | "slack-list-channels" | "slack-send-message" | "slack-upload-file" | "slack-search-messages" | "calendar-delete-event" | "calendar-list-events" | "calendar-update-event" | "calcom-cancel-booking" | "calcom-create-booking" | "calcom-list-available-slots" | "calcom-list-event-types")[];
|
|
@@ -2879,9 +3034,12 @@ export declare const utils: {
|
|
|
2879
3034
|
prepareChunks: (header: string, documents: ExtractedDocument[] | null, fallbackContent: string | null, options?: {
|
|
2880
3035
|
targetChars?: number;
|
|
2881
3036
|
overlapChars?: number;
|
|
3037
|
+
mimeType?: string | null;
|
|
3038
|
+
fileName?: string | null;
|
|
2882
3039
|
}) => PreparedChunk[];
|
|
2883
3040
|
isEmbeddableMimeType: (mimeType: string) => boolean;
|
|
2884
3041
|
l2Normalize: (values: number[]) => number[];
|
|
3042
|
+
createResourceReranker: (source: EnvSource) => ((query: string, documents: string[]) => Promise<number[] | null>) | undefined;
|
|
2885
3043
|
sleep: (ms: number) => Promise<void>;
|
|
2886
3044
|
isRateLimitError: (err: unknown) => boolean;
|
|
2887
3045
|
withRateLimitRetry: <T>(fn: () => Promise<T>, options?: RateLimitRetryOptions) => Promise<T>;
|
|
@@ -2889,9 +3047,30 @@ export declare const utils: {
|
|
|
2889
3047
|
getToolStatusMessage: (toolName: string) => string | null;
|
|
2890
3048
|
resolveDebounceMs: (config: unknown) => number;
|
|
2891
3049
|
channelBufferKey: (channelId: string, externalConversationId: string, externalParticipantId: string) => string;
|
|
3050
|
+
batchCommand: (messages: BufferedChannelMessage[]) => BufferedChannelCommand | null;
|
|
2892
3051
|
joinBufferedMessages: (messages: Array<{
|
|
2893
3052
|
text: string;
|
|
2894
3053
|
}>) => string;
|
|
3054
|
+
isConfirmationReply: (text: string) => boolean;
|
|
3055
|
+
confirmationButtonLabels: (locale?: string | null) => {
|
|
3056
|
+
yes: string;
|
|
3057
|
+
no: string;
|
|
3058
|
+
};
|
|
3059
|
+
confirmationButtonId: (answer: "yes" | "no", externalParticipantId: string) => string;
|
|
3060
|
+
parseConfirmationButton: (id: string) => {
|
|
3061
|
+
text: "yes" | "no";
|
|
3062
|
+
externalParticipantId: string;
|
|
3063
|
+
} | null;
|
|
3064
|
+
languageFromPhoneNumber: (phone: string) => string | null;
|
|
3065
|
+
formatConfirmationSummary: (calls: Array<{
|
|
3066
|
+
name: string;
|
|
3067
|
+
arguments: Record<string, unknown>;
|
|
3068
|
+
}>, titleOf: (name: string) => string) => string;
|
|
3069
|
+
annotationsForEffect: (effect: ToolEffect) => {
|
|
3070
|
+
readOnlyHint: boolean;
|
|
3071
|
+
destructiveHint: boolean;
|
|
3072
|
+
};
|
|
3073
|
+
TOOL_EFFECTS: readonly ["read", "write", "sensitive"];
|
|
2895
3074
|
isResourceSourceEnabled: (resource: {
|
|
2896
3075
|
showSource?: string | null;
|
|
2897
3076
|
} | null | undefined) => boolean;
|
|
@@ -2916,5 +3095,5 @@ export declare const utils: {
|
|
|
2916
3095
|
PlanLimitError: typeof PlanLimitError;
|
|
2917
3096
|
isPlanLimitError: (error: unknown) => error is PlanLimitError;
|
|
2918
3097
|
};
|
|
2919
|
-
export type { MintedAccessToken, CustomCodeProject, ProjectPathIssue, CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolGroupKey, ToolKey, CalendarConfigField, JsonSchema, SchemaViolation, MimeAttachment, MimeMessageInput, GmailOperation, GmailSendRequest, GmailSendResponse, OutlookOperation, OutlookSendRequest, OutlookSendResponse, SlackOperation, SlackSendRequest, SlackSendResponse, SlackSendRemoteResourceRequest, TelegramSendRequest, TelegramSendResponse, TelegramSendRemoteResourceRequest, DiscordSendRequest, DiscordSendResponse, DiscordSendRemoteResourceRequest, WhatsappSendRequest, WhatsappSendResponse, WhatsappSendRemoteResourceRequest, EnvSource, Separator, ChunkMetadata, PreparedChunk, ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource, RateLimitRetryOptions, QueueBatchLike, QueueMessageLike, ProcessQueueBatchHandlers, ChannelNotifier, ToolStatusEvent, BufferedChannelMessage, ChannelBufferEnvelope, ChannelBufferFlush, Source, ResourceUrlContext, SourceButton, RefreshOAuthTokenInput, RefreshedOAuthToken, HttpEndpointToolConfig, McpProxyToolConfig, McpProxyDiscoveredTool, McpProxyDiscoveredResource, McpProxyDiscoveredPrompt, McpProxyDiscovery, CustomCodeToolConfig, CustomCodeToolManifest, CustomCodeManifest, CustomCodeSendFile, CustomCodeCreateResource, CustomCodeTokenPayload, ContainmentTokenPayload, OAuthProviderConfig, AttachmentResource, ResolvedAttachment, ResolveAttachmentResult, ExposableResource, PlanLimitDetails, PlanLimits };
|
|
3098
|
+
export type { MintedAccessToken, CustomCodeProject, ProjectPathIssue, CatalogGroup, CatalogTool, CatalogToolDescriptor, ToolAnnotations, PendingToolConfirmation, PendingToolConfirmations, ToolEffect, ToolGroupKey, ToolKey, CalendarConfigField, JsonSchema, SchemaViolation, MimeAttachment, MimeMessageInput, GmailOperation, GmailSendRequest, GmailSendResponse, OutlookOperation, OutlookSendRequest, OutlookSendResponse, SlackOperation, SlackSendRequest, SlackSendResponse, SlackSendRemoteResourceRequest, TelegramSendRequest, TelegramSendResponse, TelegramSendRemoteResourceRequest, DiscordSendRequest, DiscordSendResponse, DiscordSendRemoteResourceRequest, WhatsappSendRequest, WhatsappSendResponse, WhatsappSendRemoteResourceRequest, EnvSource, Separator, ChunkMetadata, PreparedChunk, ExtractedDocument, ExtractedDocumentMetadata, ExtractedDocumentSource, RateLimitRetryOptions, RerankAiBinding, QueueBatchLike, QueueMessageLike, ProcessQueueBatchHandlers, ChannelNotifier, ToolStatusEvent, BufferedChannelMessage, BufferedChannelCommand, ChannelBufferEnvelope, ChannelBufferFlush, Source, ResourceUrlContext, SourceButton, RefreshOAuthTokenInput, RefreshedOAuthToken, HttpEndpointToolConfig, McpProxyToolConfig, McpProxyDiscoveredTool, McpProxyDiscoveredResource, McpProxyDiscoveredPrompt, McpProxyDiscovery, CustomCodeToolConfig, CustomCodeToolManifest, CustomCodeManifest, CustomCodeSendFile, CustomCodeCreateResource, CustomCodeTokenPayload, ContainmentTokenPayload, OAuthProviderConfig, AttachmentResource, ResolvedAttachment, ResolveAttachmentResult, ExposableResource, SyncableResource, ResourceSyncProvider, PlanLimitDetails, PlanLimits };
|
|
2920
3099
|
//# sourceMappingURL=index.d.ts.map
|