@vertesia/client 1.0.0-dev.20260203.130115Z → 1.0.0-dev.20260227.104700Z
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/lib/cjs/AccountApi.js +85 -0
- package/lib/cjs/AccountApi.js.map +1 -0
- package/lib/cjs/AccountsApi.js +16 -0
- package/lib/cjs/AccountsApi.js.map +1 -0
- package/lib/cjs/AnalyticsApi.js +41 -0
- package/lib/cjs/AnalyticsApi.js.map +1 -0
- package/lib/cjs/ApiKeysApi.js +63 -0
- package/lib/cjs/ApiKeysApi.js.map +1 -0
- package/lib/cjs/AppsApi.js +119 -0
- package/lib/cjs/AppsApi.js.map +1 -0
- package/lib/cjs/AuditTrailApi.js +35 -0
- package/lib/cjs/AuditTrailApi.js.map +1 -0
- package/lib/cjs/CommandsApi.js +19 -0
- package/lib/cjs/CommandsApi.js.map +1 -0
- package/lib/cjs/EnvironmentsApi.js +72 -0
- package/lib/cjs/EnvironmentsApi.js.map +1 -0
- package/lib/cjs/GroupsApi.js +78 -0
- package/lib/cjs/GroupsApi.js.map +1 -0
- package/lib/cjs/IamApi.js +53 -0
- package/lib/cjs/IamApi.js.map +1 -0
- package/lib/cjs/InteractionBase.js +44 -0
- package/lib/cjs/InteractionBase.js.map +1 -0
- package/lib/cjs/InteractionCatalogApi.js +64 -0
- package/lib/cjs/InteractionCatalogApi.js.map +1 -0
- package/lib/cjs/InteractionOutput.js +300 -0
- package/lib/cjs/InteractionOutput.js.map +1 -0
- package/lib/cjs/InteractionResult.example.js +57 -0
- package/lib/cjs/InteractionResult.example.js.map +1 -0
- package/lib/cjs/InteractionsApi.js +262 -0
- package/lib/cjs/InteractionsApi.js.map +1 -0
- package/lib/cjs/MCPOAuthApi.js +62 -0
- package/lib/cjs/MCPOAuthApi.js.map +1 -0
- package/lib/cjs/ProjectsApi.js +96 -0
- package/lib/cjs/ProjectsApi.js.map +1 -0
- package/lib/cjs/PromptsApi.js +133 -0
- package/lib/cjs/PromptsApi.js.map +1 -0
- package/lib/cjs/RefsApi.js +14 -0
- package/lib/cjs/RefsApi.js.map +1 -0
- package/lib/cjs/RunsApi.js +108 -0
- package/lib/cjs/RunsApi.js.map +1 -0
- package/lib/cjs/SkillsApi.js +39 -0
- package/lib/cjs/SkillsApi.js.map +1 -0
- package/lib/cjs/StreamSource.js +17 -0
- package/lib/cjs/StreamSource.js.map +1 -0
- package/lib/cjs/TrainingApi.js +54 -0
- package/lib/cjs/TrainingApi.js.map +1 -0
- package/lib/cjs/UsersApi.js +19 -0
- package/lib/cjs/UsersApi.js.map +1 -0
- package/lib/cjs/client.js +362 -0
- package/lib/cjs/client.js.map +1 -0
- package/lib/cjs/execute.js +158 -0
- package/lib/cjs/execute.js.map +1 -0
- package/lib/cjs/index.js +22 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/nodejs/NodeStreamSource.js +45 -0
- package/lib/cjs/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/cjs/nodejs/index.js +18 -0
- package/lib/cjs/nodejs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/store/AnalyzeDocApi.js +56 -0
- package/lib/cjs/store/AnalyzeDocApi.js.map +1 -0
- package/lib/cjs/store/CollectionsApi.js +131 -0
- package/lib/cjs/store/CollectionsApi.js.map +1 -0
- package/lib/cjs/store/CommandsApi.js +17 -0
- package/lib/cjs/store/CommandsApi.js.map +1 -0
- package/lib/cjs/store/DashboardApi.js +182 -0
- package/lib/cjs/store/DashboardApi.js.map +1 -0
- package/lib/cjs/store/DataApi.js +433 -0
- package/lib/cjs/store/DataApi.js.map +1 -0
- package/lib/cjs/store/EmailApi.js +103 -0
- package/lib/cjs/store/EmailApi.js.map +1 -0
- package/lib/cjs/store/EmbeddingsApi.js +29 -0
- package/lib/cjs/store/EmbeddingsApi.js.map +1 -0
- package/lib/cjs/store/FilesApi.js +237 -0
- package/lib/cjs/store/FilesApi.js.map +1 -0
- package/lib/cjs/store/HiveMemoryApi.js +174 -0
- package/lib/cjs/store/HiveMemoryApi.js.map +1 -0
- package/lib/cjs/store/IndexingApi.js +207 -0
- package/lib/cjs/store/IndexingApi.js.map +1 -0
- package/lib/cjs/store/ObjectsApi.js +316 -0
- package/lib/cjs/store/ObjectsApi.js.map +1 -0
- package/lib/cjs/store/PendingAsksApi.js +43 -0
- package/lib/cjs/store/PendingAsksApi.js.map +1 -0
- package/lib/cjs/store/QueryApi.js +67 -0
- package/lib/cjs/store/QueryApi.js.map +1 -0
- package/lib/cjs/store/RenderingApi.js +84 -0
- package/lib/cjs/store/RenderingApi.js.map +1 -0
- package/lib/cjs/store/SchedulesApi.js +103 -0
- package/lib/cjs/store/SchedulesApi.js.map +1 -0
- package/lib/cjs/store/ToolsApi.js +21 -0
- package/lib/cjs/store/ToolsApi.js.map +1 -0
- package/lib/cjs/store/TypeCatalogApi.js +50 -0
- package/lib/cjs/store/TypeCatalogApi.js.map +1 -0
- package/lib/cjs/store/TypesApi.js +60 -0
- package/lib/cjs/store/TypesApi.js.map +1 -0
- package/lib/cjs/store/WorkersApi.js +16 -0
- package/lib/cjs/store/WorkersApi.js.map +1 -0
- package/lib/cjs/store/WorkflowsApi.js +604 -0
- package/lib/cjs/store/WorkflowsApi.js.map +1 -0
- package/lib/cjs/store/client.js +89 -0
- package/lib/cjs/store/client.js.map +1 -0
- package/lib/cjs/store/errors.js +11 -0
- package/lib/cjs/store/errors.js.map +1 -0
- package/lib/cjs/store/index.js +33 -0
- package/lib/cjs/store/index.js.map +1 -0
- package/lib/cjs/store/version.js +6 -0
- package/lib/cjs/store/version.js.map +1 -0
- package/lib/esm/AccountApi.js +82 -0
- package/lib/esm/AccountApi.js.map +1 -0
- package/lib/esm/AccountsApi.js +13 -0
- package/lib/esm/AccountsApi.js.map +1 -0
- package/lib/esm/AnalyticsApi.js +38 -0
- package/lib/esm/AnalyticsApi.js.map +1 -0
- package/lib/esm/ApiKeysApi.js +59 -0
- package/lib/esm/ApiKeysApi.js.map +1 -0
- package/lib/esm/AppsApi.js +116 -0
- package/lib/esm/AppsApi.js.map +1 -0
- package/lib/esm/AuditTrailApi.js +32 -0
- package/lib/esm/AuditTrailApi.js.map +1 -0
- package/lib/esm/CommandsApi.js +16 -0
- package/lib/esm/CommandsApi.js.map +1 -0
- package/lib/esm/EnvironmentsApi.js +69 -0
- package/lib/esm/EnvironmentsApi.js.map +1 -0
- package/lib/esm/GroupsApi.js +74 -0
- package/lib/esm/GroupsApi.js.map +1 -0
- package/lib/esm/IamApi.js +47 -0
- package/lib/esm/IamApi.js.map +1 -0
- package/lib/esm/InteractionBase.js +40 -0
- package/lib/esm/InteractionBase.js.map +1 -0
- package/lib/esm/InteractionCatalogApi.js +60 -0
- package/lib/esm/InteractionCatalogApi.js.map +1 -0
- package/lib/esm/InteractionOutput.js +293 -0
- package/lib/esm/InteractionOutput.js.map +1 -0
- package/lib/esm/InteractionResult.example.js +55 -0
- package/lib/esm/InteractionResult.example.js.map +1 -0
- package/lib/esm/InteractionsApi.js +259 -0
- package/lib/esm/InteractionsApi.js.map +1 -0
- package/lib/esm/MCPOAuthApi.js +59 -0
- package/lib/esm/MCPOAuthApi.js.map +1 -0
- package/lib/esm/ProjectsApi.js +93 -0
- package/lib/esm/ProjectsApi.js.map +1 -0
- package/lib/esm/PromptsApi.js +130 -0
- package/lib/esm/PromptsApi.js.map +1 -0
- package/lib/esm/RefsApi.js +10 -0
- package/lib/esm/RefsApi.js.map +1 -0
- package/lib/esm/RunsApi.js +104 -0
- package/lib/esm/RunsApi.js.map +1 -0
- package/lib/esm/SkillsApi.js +36 -0
- package/lib/esm/SkillsApi.js.map +1 -0
- package/lib/esm/StreamSource.js +13 -0
- package/lib/esm/StreamSource.js.map +1 -0
- package/lib/esm/TrainingApi.js +51 -0
- package/lib/esm/TrainingApi.js.map +1 -0
- package/lib/esm/UsersApi.js +16 -0
- package/lib/esm/UsersApi.js.map +1 -0
- package/lib/esm/client.js +353 -0
- package/lib/esm/client.js.map +1 -0
- package/lib/esm/execute.js +118 -0
- package/lib/esm/execute.js.map +1 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/nodejs/NodeStreamSource.js +41 -0
- package/lib/esm/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/esm/nodejs/index.js +2 -0
- package/lib/esm/nodejs/index.js.map +1 -0
- package/lib/esm/store/AnalyzeDocApi.js +52 -0
- package/lib/esm/store/AnalyzeDocApi.js.map +1 -0
- package/lib/esm/store/CollectionsApi.js +127 -0
- package/lib/esm/store/CollectionsApi.js.map +1 -0
- package/lib/esm/store/CommandsApi.js +13 -0
- package/lib/esm/store/CommandsApi.js.map +1 -0
- package/lib/esm/store/DashboardApi.js +178 -0
- package/lib/esm/store/DashboardApi.js.map +1 -0
- package/lib/esm/store/DataApi.js +429 -0
- package/lib/esm/store/DataApi.js.map +1 -0
- package/lib/esm/store/EmailApi.js +99 -0
- package/lib/esm/store/EmailApi.js.map +1 -0
- package/lib/esm/store/EmbeddingsApi.js +25 -0
- package/lib/esm/store/EmbeddingsApi.js.map +1 -0
- package/lib/esm/store/FilesApi.js +231 -0
- package/lib/esm/store/FilesApi.js.map +1 -0
- package/lib/esm/store/HiveMemoryApi.js +170 -0
- package/lib/esm/store/HiveMemoryApi.js.map +1 -0
- package/lib/esm/store/IndexingApi.js +203 -0
- package/lib/esm/store/IndexingApi.js.map +1 -0
- package/lib/esm/store/ObjectsApi.js +311 -0
- package/lib/esm/store/ObjectsApi.js.map +1 -0
- package/lib/esm/store/PendingAsksApi.js +39 -0
- package/lib/esm/store/PendingAsksApi.js.map +1 -0
- package/lib/esm/store/QueryApi.js +63 -0
- package/lib/esm/store/QueryApi.js.map +1 -0
- package/lib/esm/store/RenderingApi.js +80 -0
- package/lib/esm/store/RenderingApi.js.map +1 -0
- package/lib/esm/store/SchedulesApi.js +99 -0
- package/lib/esm/store/SchedulesApi.js.map +1 -0
- package/lib/esm/store/ToolsApi.js +17 -0
- package/lib/esm/store/ToolsApi.js.map +1 -0
- package/lib/esm/store/TypeCatalogApi.js +46 -0
- package/lib/esm/store/TypeCatalogApi.js.map +1 -0
- package/lib/esm/store/TypesApi.js +56 -0
- package/lib/esm/store/TypesApi.js.map +1 -0
- package/lib/esm/store/WorkersApi.js +12 -0
- package/lib/esm/store/WorkersApi.js.map +1 -0
- package/lib/esm/store/WorkflowsApi.js +598 -0
- package/lib/esm/store/WorkflowsApi.js.map +1 -0
- package/lib/esm/store/client.js +85 -0
- package/lib/esm/store/client.js.map +1 -0
- package/lib/esm/store/errors.js +7 -0
- package/lib/esm/store/errors.js.map +1 -0
- package/lib/esm/store/index.js +17 -0
- package/lib/esm/store/index.js.map +1 -0
- package/lib/esm/store/version.js +3 -0
- package/lib/esm/store/version.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/AccountApi.d.ts +59 -0
- package/lib/types/AccountApi.d.ts.map +1 -0
- package/lib/types/AccountsApi.d.ts +7 -0
- package/lib/types/AccountsApi.d.ts.map +1 -0
- package/lib/types/AnalyticsApi.d.ts +11 -0
- package/lib/types/AnalyticsApi.d.ts.map +1 -0
- package/lib/types/ApiKeysApi.d.ts +42 -0
- package/lib/types/ApiKeysApi.d.ts.map +1 -0
- package/lib/types/AppsApi.d.ts +65 -0
- package/lib/types/AppsApi.d.ts.map +1 -0
- package/lib/types/AuditTrailApi.d.ts +6 -0
- package/lib/types/AuditTrailApi.d.ts.map +1 -0
- package/lib/types/CommandsApi.d.ts +10 -0
- package/lib/types/CommandsApi.d.ts.map +1 -0
- package/lib/types/EnvironmentsApi.d.ts +40 -0
- package/lib/types/EnvironmentsApi.d.ts.map +1 -0
- package/lib/types/GroupsApi.d.ts +65 -0
- package/lib/types/GroupsApi.d.ts.map +1 -0
- package/lib/types/IamApi.d.ts +41 -0
- package/lib/types/IamApi.d.ts.map +1 -0
- package/lib/types/InteractionBase.d.ts +22 -0
- package/lib/types/InteractionBase.d.ts.map +1 -0
- package/lib/types/InteractionCatalogApi.d.ts +36 -0
- package/lib/types/InteractionCatalogApi.d.ts.map +1 -0
- package/lib/types/InteractionOutput.d.ts +174 -0
- package/lib/types/InteractionOutput.d.ts.map +1 -0
- package/lib/types/InteractionResult.example.d.ts +6 -0
- package/lib/types/InteractionResult.example.d.ts.map +1 -0
- package/lib/types/InteractionsApi.d.ts +183 -0
- package/lib/types/InteractionsApi.d.ts.map +1 -0
- package/lib/types/MCPOAuthApi.d.ts +45 -0
- package/lib/types/MCPOAuthApi.d.ts.map +1 -0
- package/lib/types/ProjectsApi.d.ts +34 -0
- package/lib/types/ProjectsApi.d.ts.map +1 -0
- package/lib/types/PromptsApi.d.ts +106 -0
- package/lib/types/PromptsApi.d.ts.map +1 -0
- package/lib/types/RefsApi.d.ts +6 -0
- package/lib/types/RefsApi.d.ts.map +1 -0
- package/lib/types/RunsApi.d.ts +78 -0
- package/lib/types/RunsApi.d.ts.map +1 -0
- package/lib/types/SkillsApi.d.ts +26 -0
- package/lib/types/SkillsApi.d.ts.map +1 -0
- package/lib/types/StreamSource.d.ts +7 -0
- package/lib/types/StreamSource.d.ts.map +1 -0
- package/lib/types/TrainingApi.d.ts +27 -0
- package/lib/types/TrainingApi.d.ts.map +1 -0
- package/lib/types/UsersApi.d.ts +10 -0
- package/lib/types/UsersApi.d.ts.map +1 -0
- package/lib/types/client.d.ts +138 -0
- package/lib/types/client.d.ts.map +1 -0
- package/lib/types/execute.d.ts +37 -0
- package/lib/types/execute.d.ts.map +1 -0
- package/lib/types/index.d.ts +10 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/nodejs/NodeStreamSource.d.ts +9 -0
- package/lib/types/nodejs/NodeStreamSource.d.ts.map +1 -0
- package/lib/types/nodejs/index.d.ts +1 -0
- package/lib/types/nodejs/index.d.ts.map +1 -0
- package/lib/types/store/AnalyzeDocApi.d.ts +17 -0
- package/lib/types/store/AnalyzeDocApi.d.ts.map +1 -0
- package/lib/types/store/CollectionsApi.d.ts +82 -0
- package/lib/types/store/CollectionsApi.d.ts.map +1 -0
- package/lib/types/store/CommandsApi.d.ts +10 -0
- package/lib/types/store/CommandsApi.d.ts.map +1 -0
- package/lib/types/store/DashboardApi.d.ts +149 -0
- package/lib/types/store/DashboardApi.d.ts.map +1 -0
- package/lib/types/store/DataApi.d.ts +392 -0
- package/lib/types/store/DataApi.d.ts.map +1 -0
- package/lib/types/store/EmailApi.d.ts +185 -0
- package/lib/types/store/EmailApi.d.ts.map +1 -0
- package/lib/types/store/EmbeddingsApi.d.ts +12 -0
- package/lib/types/store/EmbeddingsApi.d.ts.map +1 -0
- package/lib/types/store/FilesApi.d.ts +110 -0
- package/lib/types/store/FilesApi.d.ts.map +1 -0
- package/lib/types/store/HiveMemoryApi.d.ts +160 -0
- package/lib/types/store/HiveMemoryApi.d.ts.map +1 -0
- package/lib/types/store/IndexingApi.d.ts +140 -0
- package/lib/types/store/IndexingApi.d.ts.map +1 -0
- package/lib/types/store/ObjectsApi.d.ts +141 -0
- package/lib/types/store/ObjectsApi.d.ts.map +1 -0
- package/lib/types/store/PendingAsksApi.d.ts +79 -0
- package/lib/types/store/PendingAsksApi.d.ts.map +1 -0
- package/lib/types/store/QueryApi.d.ts +99 -0
- package/lib/types/store/QueryApi.d.ts.map +1 -0
- package/lib/types/store/RenderingApi.d.ts +34 -0
- package/lib/types/store/RenderingApi.d.ts.map +1 -0
- package/lib/types/store/SchedulesApi.d.ts +89 -0
- package/lib/types/store/SchedulesApi.d.ts.map +1 -0
- package/lib/types/store/ToolsApi.d.ts +13 -0
- package/lib/types/store/ToolsApi.d.ts.map +1 -0
- package/lib/types/store/TypeCatalogApi.d.ts +39 -0
- package/lib/types/store/TypeCatalogApi.d.ts.map +1 -0
- package/lib/types/store/TypesApi.d.ts +25 -0
- package/lib/types/store/TypesApi.d.ts.map +1 -0
- package/lib/types/store/WorkersApi.d.ts +6 -0
- package/lib/types/store/WorkersApi.d.ts.map +1 -0
- package/lib/types/store/WorkflowsApi.d.ts +170 -0
- package/lib/types/store/WorkflowsApi.d.ts.map +1 -0
- package/lib/types/store/client.d.ts +53 -0
- package/lib/types/store/client.d.ts.map +1 -0
- package/lib/types/store/errors.d.ts +4 -0
- package/lib/types/store/errors.d.ts.map +1 -0
- package/lib/types/store/index.d.ts +16 -0
- package/lib/types/store/index.d.ts.map +1 -0
- package/lib/types/store/version.d.ts +2 -0
- package/lib/types/store/version.d.ts.map +1 -0
- package/lib/vertesia-client.js +2 -0
- package/lib/vertesia-client.js.map +1 -0
- package/package.json +6 -6
- package/src/AuditTrailApi.ts +25 -0
- package/src/ProjectsApi.ts +31 -1
- package/src/RunsApi.ts +0 -7
- package/src/UsersApi.ts +9 -5
- package/src/client.ts +2 -0
- package/src/store/IndexingApi.ts +190 -2
- package/src/store/ObjectsApi.ts +12 -8
- package/src/store/RenderingApi.ts +105 -0
- package/src/store/TypeCatalogApi.ts +53 -0
- package/src/store/TypesApi.ts +3 -0
- package/src/store/client.ts +3 -3
- package/src/store/index.ts +2 -1
- package/src/store/version.ts +1 -1
- package/src/store/IndexingAdminApi.ts +0 -336
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { EmailRouteData } from "@vertesia/common";
|
|
3
|
+
/**
|
|
4
|
+
* Request payload for sending an email via the agent.
|
|
5
|
+
* Resend configuration is fetched from project settings.
|
|
6
|
+
* From address is constructed as: {project_namespace}+{agent_name}@{email_domain}
|
|
7
|
+
*/
|
|
8
|
+
export interface SendEmailRequest {
|
|
9
|
+
/** Email address to send to */
|
|
10
|
+
to_email: string;
|
|
11
|
+
/** Email subject */
|
|
12
|
+
subject: string;
|
|
13
|
+
/** Email body in markdown format */
|
|
14
|
+
body: string;
|
|
15
|
+
/** Agent/interaction endpoint name (used in from address) */
|
|
16
|
+
agent_name: string;
|
|
17
|
+
/** Display name for the sender (overrides project default) */
|
|
18
|
+
from_name?: string;
|
|
19
|
+
/** Workflow run ID for routing replies */
|
|
20
|
+
run_id: string;
|
|
21
|
+
/** Existing route key (for subsequent emails in same conversation) */
|
|
22
|
+
route_key?: string;
|
|
23
|
+
/** Message ID for In-Reply-To header (email threading) */
|
|
24
|
+
in_reply_to?: string;
|
|
25
|
+
/** Chain of message IDs for References header */
|
|
26
|
+
references?: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Response from sending an email.
|
|
30
|
+
*/
|
|
31
|
+
export interface SendEmailResponse {
|
|
32
|
+
success: boolean;
|
|
33
|
+
/** Resend email ID */
|
|
34
|
+
email_id?: string;
|
|
35
|
+
/** Message-ID header for threading */
|
|
36
|
+
message_id?: string;
|
|
37
|
+
/** Short route key for reply routing */
|
|
38
|
+
route_key?: string;
|
|
39
|
+
/** Error message if failed */
|
|
40
|
+
error?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Response from creating an email route.
|
|
44
|
+
*/
|
|
45
|
+
export interface CreateRouteResponse {
|
|
46
|
+
/** The generated route key (8-char alphanumeric) */
|
|
47
|
+
route_key: string;
|
|
48
|
+
/** Full reply-to address: r+{route_key}@{email_domain} */
|
|
49
|
+
reply_to: string;
|
|
50
|
+
/** The email domain for sending and receiving */
|
|
51
|
+
email_domain: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Request to forward an email to a workflow.
|
|
55
|
+
* Used by external services that handle email reception themselves.
|
|
56
|
+
*/
|
|
57
|
+
export interface ForwardEmailRequest {
|
|
58
|
+
/** Email content received by the external service */
|
|
59
|
+
email: {
|
|
60
|
+
/** Sender email address */
|
|
61
|
+
from: string;
|
|
62
|
+
/** Email subject */
|
|
63
|
+
subject?: string;
|
|
64
|
+
/** Plain text body */
|
|
65
|
+
text: string;
|
|
66
|
+
/** HTML body (optional) */
|
|
67
|
+
html?: string;
|
|
68
|
+
/** Message-ID header for threading */
|
|
69
|
+
message_id?: string;
|
|
70
|
+
};
|
|
71
|
+
/** Custom context data from the external service (e.g., auth tokens, user IDs) */
|
|
72
|
+
context?: Record<string, unknown>;
|
|
73
|
+
/** Attachments with download URLs */
|
|
74
|
+
attachments?: Array<{
|
|
75
|
+
filename: string;
|
|
76
|
+
content_type: string;
|
|
77
|
+
size: number;
|
|
78
|
+
download_url: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Response from forwarding an email.
|
|
83
|
+
*/
|
|
84
|
+
export interface ForwardEmailResponse {
|
|
85
|
+
success: boolean;
|
|
86
|
+
run_id: string;
|
|
87
|
+
workflow_id: string;
|
|
88
|
+
route_key: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Request to create an email route.
|
|
92
|
+
*/
|
|
93
|
+
export interface CreateRouteRequest {
|
|
94
|
+
/** Workflow run ID for routing replies */
|
|
95
|
+
run_id: string;
|
|
96
|
+
/** Email address of the user (for context) */
|
|
97
|
+
user_email: string;
|
|
98
|
+
/** Subject of the email thread (optional) */
|
|
99
|
+
thread_subject?: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Email API for sending emails from workflows.
|
|
103
|
+
*/
|
|
104
|
+
export declare class EmailApi extends ApiTopic {
|
|
105
|
+
constructor(parent: ClientBase);
|
|
106
|
+
/**
|
|
107
|
+
* Send an email from an agent/workflow.
|
|
108
|
+
* Creates a route key if not provided, sends via Resend, and returns routing info.
|
|
109
|
+
*/
|
|
110
|
+
send(request: SendEmailRequest): Promise<SendEmailResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Resolve a route key to get email context.
|
|
113
|
+
* Used by webhook handler to look up workflow info from reply email.
|
|
114
|
+
* @deprecated Use getRoute() instead
|
|
115
|
+
*/
|
|
116
|
+
resolveRoute(routeKey: string): Promise<EmailRouteData>;
|
|
117
|
+
/**
|
|
118
|
+
* Create a new email route without sending an email.
|
|
119
|
+
* Useful for external services that want to handle email sending themselves
|
|
120
|
+
* but need reply routing back to Vertesia workflows.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```ts
|
|
124
|
+
* const { route_key, reply_to } = await client.store.email.createRoute({
|
|
125
|
+
* run_id: workflowRunId,
|
|
126
|
+
* user_email: "user@example.com",
|
|
127
|
+
* thread_subject: "Contract Review"
|
|
128
|
+
* });
|
|
129
|
+
* // Use reply_to as the Reply-To header when sending your own email
|
|
130
|
+
* // Replies will be routed back to the workflow
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
createRoute(request: CreateRouteRequest): Promise<CreateRouteResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Get an email route by key.
|
|
136
|
+
*/
|
|
137
|
+
getRoute(routeKey: string): Promise<EmailRouteData & {
|
|
138
|
+
route_key: string;
|
|
139
|
+
}>;
|
|
140
|
+
/**
|
|
141
|
+
* Update an email route (e.g., to update threading info).
|
|
142
|
+
*/
|
|
143
|
+
updateRoute(routeKey: string, updates: Partial<EmailRouteData>): Promise<{
|
|
144
|
+
success: boolean;
|
|
145
|
+
route_key: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Forward an email to a workflow via route key.
|
|
149
|
+
*
|
|
150
|
+
* Use this when your service receives an email reply and needs to forward
|
|
151
|
+
* it to the Vertesia workflow. You can add custom context data (like auth
|
|
152
|
+
* tokens or user IDs) that will be merged into `payload.vars.data`.
|
|
153
|
+
*
|
|
154
|
+
* **Important**: Use camelCase keys in context to match the agent start
|
|
155
|
+
* pattern. This ensures tools work identically whether the agent was
|
|
156
|
+
* started directly or received an email reply.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* // In your email webhook handler:
|
|
161
|
+
* const result = await client.store.email.forwardEmail(routeKey, {
|
|
162
|
+
* email: {
|
|
163
|
+
* from: inboundEmail.from,
|
|
164
|
+
* subject: inboundEmail.subject,
|
|
165
|
+
* text: inboundEmail.text,
|
|
166
|
+
* message_id: inboundEmail.messageId,
|
|
167
|
+
* },
|
|
168
|
+
* context: {
|
|
169
|
+
* // Use camelCase - merged into payload.vars.data
|
|
170
|
+
* apiKey: generateServiceToken(),
|
|
171
|
+
* tenantId: resolvedUser.tenantId,
|
|
172
|
+
* userId: resolvedUser.id,
|
|
173
|
+
* userEmail: resolvedUser.email,
|
|
174
|
+
* },
|
|
175
|
+
* attachments: inboundEmail.attachments?.map(att => ({
|
|
176
|
+
* filename: att.filename,
|
|
177
|
+
* content_type: att.contentType,
|
|
178
|
+
* size: att.size,
|
|
179
|
+
* download_url: att.url,
|
|
180
|
+
* })),
|
|
181
|
+
* });
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
forwardEmail(routeKey: string, request: ForwardEmailRequest): Promise<ForwardEmailResponse>;
|
|
185
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailApi.d.ts","sourceRoot":"","sources":["../../../src/store/EmailApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAs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IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,QAAQ;gBACtB,MAAM,EAAE,UAAU;IAI9B;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI3D;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAQvD;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAItE;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAI3E;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAIjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG9F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { EmbeddingsStatusResponse, GenericCommandResponse, ProjectConfigurationEmbeddings, SupportedEmbeddingTypes } from "@vertesia/common";
|
|
3
|
+
/**
|
|
4
|
+
* @since 0.52.0
|
|
5
|
+
*/
|
|
6
|
+
export declare class EmbeddingsApi extends ApiTopic {
|
|
7
|
+
constructor(parent: ClientBase, basePath?: string);
|
|
8
|
+
status(type: SupportedEmbeddingTypes): Promise<EmbeddingsStatusResponse>;
|
|
9
|
+
activate(type: SupportedEmbeddingTypes, config: Partial<ProjectConfigurationEmbeddings>): Promise<GenericCommandResponse>;
|
|
10
|
+
disable(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
11
|
+
recalculate(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddingsApi.d.ts","sourceRoot":"","sources":["../../../src/store/EmbeddingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,qBAAa,aAAc,SAAQ,QAAQ;gBAE3B,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAE,MAA6B;IAIjE,MAAM,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIxE,QAAQ,CAAC,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,8BAA8B,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASzH,OAAO,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,WAAW,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAIpF"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { GetFileUrlPayload, GetFileUrlResponse, GetUploadUrlPayload } from "@vertesia/common";
|
|
3
|
+
import { StreamSource } from "../StreamSource.js";
|
|
4
|
+
export declare const MEMORIES_PREFIX = "memories";
|
|
5
|
+
export declare const ARTIFACTS_PREFIX = "agents";
|
|
6
|
+
export declare function getMemoryFilePath(name: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Build the storage path for an agent artifact
|
|
9
|
+
* @param runId - The workflow run ID
|
|
10
|
+
* @param name - The artifact filename
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAgentArtifactPath(runId: string, name: string): string;
|
|
13
|
+
export declare class FilesApi extends ApiTopic {
|
|
14
|
+
constructor(parent: ClientBase);
|
|
15
|
+
deleteFile(path: string, prefix?: boolean): Promise<void | number>;
|
|
16
|
+
/**
|
|
17
|
+
* get the metadata of a blob given its URI. Supported URI are:
|
|
18
|
+
* starting with s3:// and gs://.
|
|
19
|
+
* For s3 blobs use #region to specify the region. Ex: s3://bucket/key#us-west-2
|
|
20
|
+
* @param uri
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
getMetadata(uri: string): Promise<{
|
|
24
|
+
name: string;
|
|
25
|
+
size: number;
|
|
26
|
+
contentType: string;
|
|
27
|
+
contentDisposition?: string;
|
|
28
|
+
etag?: string;
|
|
29
|
+
customMetadata?: Record<string, string>;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Set custom metadata on a file
|
|
33
|
+
* @param file - The file path or URI
|
|
34
|
+
* @param metadata - Custom metadata key-value pairs
|
|
35
|
+
* @returns Success status
|
|
36
|
+
*/
|
|
37
|
+
setFileMetadata(file: string, metadata: Record<string, string>): Promise<{
|
|
38
|
+
success: boolean;
|
|
39
|
+
file: string;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Get or create a bucket for the project. If the bucket already exists, it does nothing.
|
|
43
|
+
* The bucket URI is returned.
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
getOrCreateBucket(): Promise<{
|
|
47
|
+
bucket: string;
|
|
48
|
+
}>;
|
|
49
|
+
getUploadUrl(payload: GetUploadUrlPayload): Promise<GetFileUrlResponse>;
|
|
50
|
+
getDownloadUrl(file: string, name?: string, disposition?: "inline" | "attachment"): Promise<GetFileUrlResponse>;
|
|
51
|
+
getDownloadUrlWithOptions(payload: GetFileUrlPayload): Promise<GetFileUrlResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Upload content to a file and return the full path (including bucket name) of the uploaded file
|
|
54
|
+
* @param source
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
uploadFile(source: StreamSource | File): Promise<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param location can be a relative path in the project, a reference to a cloud storage, or a accessible HTTPS URL (typically signed URL)
|
|
61
|
+
* @returns ReadableStream
|
|
62
|
+
*/
|
|
63
|
+
downloadFile(location: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>>>;
|
|
64
|
+
/**
|
|
65
|
+
* Copy a file to a new destination within the same bucket.
|
|
66
|
+
* @param source - Source file path (relative to project bucket)
|
|
67
|
+
* @param dest - Destination file path (relative to project bucket)
|
|
68
|
+
* @returns The destination file URI
|
|
69
|
+
*/
|
|
70
|
+
copyFile(source: string, dest: string): Promise<string>;
|
|
71
|
+
uploadMemoryPack(source: StreamSource | File): Promise<string>;
|
|
72
|
+
downloadMemoryPack(name: string, gunzip?: boolean): Promise<ReadableStream<Uint8Array>>;
|
|
73
|
+
/**
|
|
74
|
+
* List files by prefix
|
|
75
|
+
* @param prefix - Path prefix to filter files
|
|
76
|
+
* @returns Array of file paths matching the prefix
|
|
77
|
+
*/
|
|
78
|
+
listByPrefix(prefix: string): Promise<{
|
|
79
|
+
files: string[];
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* Upload an artifact for an agent run
|
|
83
|
+
* @param runId - The workflow run ID
|
|
84
|
+
* @param name - Artifact name (e.g., "output.json")
|
|
85
|
+
* @param source - File content source
|
|
86
|
+
* @returns The full path of the uploaded artifact
|
|
87
|
+
*/
|
|
88
|
+
uploadArtifact(runId: string, name: string, source: StreamSource | File): Promise<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Download an artifact from an agent run
|
|
91
|
+
* @param runId - The workflow run ID
|
|
92
|
+
* @param name - Artifact name
|
|
93
|
+
* @returns ReadableStream of the artifact content
|
|
94
|
+
*/
|
|
95
|
+
downloadArtifact(runId: string, name: string): Promise<ReadableStream<Uint8Array>>;
|
|
96
|
+
/**
|
|
97
|
+
* Get download URL for an artifact
|
|
98
|
+
* @param runId - The workflow run ID
|
|
99
|
+
* @param name - Artifact name
|
|
100
|
+
* @param disposition - Content disposition (inline or attachment)
|
|
101
|
+
* @returns Signed URL response
|
|
102
|
+
*/
|
|
103
|
+
getArtifactDownloadUrl(runId: string, name: string, disposition?: "inline" | "attachment"): Promise<GetFileUrlResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* List artifacts for an agent run
|
|
106
|
+
* @param runId - The workflow run ID
|
|
107
|
+
* @returns Array of artifact file paths
|
|
108
|
+
*/
|
|
109
|
+
listArtifacts(runId: string): Promise<string[]>;
|
|
110
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesApi.d.ts","sourceRoot":"","sources":["../../../src/store/FilesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EAEtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAG7C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,qBAAa,QAAS,SAAQ,QAAQ;gBACtB,MAAM,EAAE,UAAU;IAIxB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,O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,CAAC,MAAM,CAAC;IAOvD,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAsB9D,kBAAkB,CACpB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,OAAe,GACxB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAWtC;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAI1D;;;;;;OAMG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAc/F;;;;;OAKG;IACG,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAKxF;;;;;;OAMG;IACH,sBAAsB,CAClB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,QAAQ,GAAG,YAAY,GACtC,OAAO,CAAC,kBAAkB,CAAC;IAK9B;;;;OAIG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAKxD"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { CreateHiveMemoryPayload, FormattedMemoryForAgent, HiveMemory, HiveMemorySearchParams, HiveMemorySearchResult, UpdateHiveMemoryPayload } from "@vertesia/common";
|
|
3
|
+
/**
|
|
4
|
+
* Statistics about hive memories in the project
|
|
5
|
+
*/
|
|
6
|
+
export interface HiveMemoryStats {
|
|
7
|
+
total_memories: number;
|
|
8
|
+
by_category: Array<{
|
|
9
|
+
category: string;
|
|
10
|
+
count: number;
|
|
11
|
+
avg_confidence: number;
|
|
12
|
+
total_usage: number;
|
|
13
|
+
}>;
|
|
14
|
+
overall: {
|
|
15
|
+
avgConfidence: number;
|
|
16
|
+
avgUsage: number;
|
|
17
|
+
totalContributions: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Result from recall endpoint
|
|
22
|
+
*/
|
|
23
|
+
export interface RecallResult {
|
|
24
|
+
memories: FormattedMemoryForAgent[];
|
|
25
|
+
count: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Client API for managing hive memories.
|
|
29
|
+
*
|
|
30
|
+
* Hive memory is a system for storing and retrieving agent learnings,
|
|
31
|
+
* enabling agents to learn from past runs and share knowledge.
|
|
32
|
+
*/
|
|
33
|
+
export declare class HiveMemoryApi extends ApiTopic {
|
|
34
|
+
constructor(parent: ClientBase);
|
|
35
|
+
/**
|
|
36
|
+
* List memories in the project.
|
|
37
|
+
*
|
|
38
|
+
* @param options - Optional filters and pagination
|
|
39
|
+
*/
|
|
40
|
+
list(options?: {
|
|
41
|
+
category?: string;
|
|
42
|
+
scope?: string;
|
|
43
|
+
limit?: number;
|
|
44
|
+
offset?: number;
|
|
45
|
+
}): Promise<HiveMemory[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieve a memory by ID.
|
|
48
|
+
*/
|
|
49
|
+
retrieve(id: string): Promise<HiveMemory>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a new hive memory.
|
|
52
|
+
*
|
|
53
|
+
* @param payload - Memory content including category, summary, and learnings
|
|
54
|
+
*/
|
|
55
|
+
create(payload: CreateHiveMemoryPayload): Promise<HiveMemory>;
|
|
56
|
+
/**
|
|
57
|
+
* Update an existing memory with new learnings.
|
|
58
|
+
*
|
|
59
|
+
* This merges new learnings with existing ones rather than replacing them.
|
|
60
|
+
*
|
|
61
|
+
* @param id - Memory ID
|
|
62
|
+
* @param payload - Fields to update/merge
|
|
63
|
+
*/
|
|
64
|
+
update(id: string, payload: UpdateHiveMemoryPayload): Promise<HiveMemory>;
|
|
65
|
+
/**
|
|
66
|
+
* Delete a memory.
|
|
67
|
+
*
|
|
68
|
+
* @param id - Memory ID
|
|
69
|
+
*/
|
|
70
|
+
delete(id: string): Promise<{
|
|
71
|
+
id: string;
|
|
72
|
+
deleted: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* Search memories using semantic and keyword search.
|
|
76
|
+
*
|
|
77
|
+
* @param params - Search parameters including query, filters, and pagination
|
|
78
|
+
*/
|
|
79
|
+
search(params: HiveMemorySearchParams): Promise<HiveMemorySearchResult>;
|
|
80
|
+
/**
|
|
81
|
+
* Recall memories for an agent.
|
|
82
|
+
*
|
|
83
|
+
* This is the primary method for agents to retrieve relevant learnings.
|
|
84
|
+
* It searches for memories matching the task description and returns
|
|
85
|
+
* them formatted for agent consumption.
|
|
86
|
+
*
|
|
87
|
+
* @param taskDescription - Description of the current task
|
|
88
|
+
* @param options - Optional filters
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const result = await client.hiveMemory.recall(
|
|
93
|
+
* "Extract financial data from PDF documents",
|
|
94
|
+
* {
|
|
95
|
+
* tools: ["extract_text", "analyze_document"],
|
|
96
|
+
* maxResults: 5
|
|
97
|
+
* }
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
recall(taskDescription: string, options?: {
|
|
102
|
+
tools?: string[];
|
|
103
|
+
category?: string;
|
|
104
|
+
maxResults?: number;
|
|
105
|
+
}): Promise<RecallResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Get a memory formatted for agent consumption.
|
|
108
|
+
*
|
|
109
|
+
* @param id - Memory ID
|
|
110
|
+
*/
|
|
111
|
+
getFormatted(id: string): Promise<FormattedMemoryForAgent>;
|
|
112
|
+
/**
|
|
113
|
+
* Record that a memory was used.
|
|
114
|
+
*
|
|
115
|
+
* This increments the usage count and helps track memory effectiveness.
|
|
116
|
+
*
|
|
117
|
+
* @param id - Memory ID
|
|
118
|
+
*/
|
|
119
|
+
recordUsage(id: string): Promise<{
|
|
120
|
+
success: boolean;
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Get memories by category.
|
|
124
|
+
*
|
|
125
|
+
* @param category - Task category (e.g., "document-analysis", "data-extraction")
|
|
126
|
+
* @param options - Pagination options
|
|
127
|
+
*/
|
|
128
|
+
getByCategory(category: string, options?: {
|
|
129
|
+
limit?: number;
|
|
130
|
+
offset?: number;
|
|
131
|
+
}): Promise<HiveMemory[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Get memory statistics for the project.
|
|
134
|
+
*/
|
|
135
|
+
getStats(): Promise<HiveMemoryStats>;
|
|
136
|
+
/**
|
|
137
|
+
* Apply confidence decay to unused memories.
|
|
138
|
+
*
|
|
139
|
+
* Admin operation that reduces confidence scores for memories
|
|
140
|
+
* that haven't been used recently.
|
|
141
|
+
*
|
|
142
|
+
* @param options - Decay parameters
|
|
143
|
+
*/
|
|
144
|
+
applyDecay(options?: {
|
|
145
|
+
daysThreshold?: number;
|
|
146
|
+
decayRate?: number;
|
|
147
|
+
}): Promise<{
|
|
148
|
+
modified_count: number;
|
|
149
|
+
}>;
|
|
150
|
+
/**
|
|
151
|
+
* Archive memories with low confidence scores.
|
|
152
|
+
*
|
|
153
|
+
* Admin operation that removes memories below a confidence threshold.
|
|
154
|
+
*
|
|
155
|
+
* @param threshold - Confidence threshold (0-1), default 0.2
|
|
156
|
+
*/
|
|
157
|
+
archiveLowConfidence(threshold?: number): Promise<{
|
|
158
|
+
archived_count: number;
|
|
159
|
+
}>;
|
|
160
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HiveMemoryApi.d.ts","sourceRoot":"","sources":["../../../src/store/HiveMemoryApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,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} from "@vertesia/api-fetch-client";
|
|
2
|
+
import { IndexingStatusResponse, GenericCommandResponse, ElasticsearchDocumentData, BulkIndexResult, CreateReindexTargetResult, ReindexRangeResult, FetchBatchResult, IndexBatchResult, TriggerReindexResult, ElasticsearchIndexStats, IndexConfiguration, FetchDocumentsByIdsResult, BulkDeleteResult, EnsureIndexResult, SwapAliasResult } from "@vertesia/common";
|
|
3
|
+
/**
|
|
4
|
+
* API for indexing operations on content objects.
|
|
5
|
+
* Provides status, reindex, and configuration management.
|
|
6
|
+
*
|
|
7
|
+
* Internal endpoints (prefixed with /internal/) are used by Temporal workflow activities
|
|
8
|
+
* and require content_admin permission.
|
|
9
|
+
*/
|
|
10
|
+
export declare class IndexingApi extends ApiTopic {
|
|
11
|
+
constructor(parent: ClientBase, basePath?: string);
|
|
12
|
+
/**
|
|
13
|
+
* Get Elasticsearch status for the current project
|
|
14
|
+
*/
|
|
15
|
+
status(): Promise<IndexingStatusResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Trigger a full reindex of all documents
|
|
18
|
+
* @param recreateIndex If true, drops and recreates the index before reindexing
|
|
19
|
+
*/
|
|
20
|
+
reindex(recreateIndex?: boolean): Promise<GenericCommandResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Enable indexing for this project
|
|
23
|
+
*/
|
|
24
|
+
enableIndexing(): Promise<GenericCommandResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Disable indexing for this project
|
|
27
|
+
*/
|
|
28
|
+
disableIndexing(): Promise<GenericCommandResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Enable index-based queries for this project
|
|
31
|
+
* @deprecated Queries are now automatically enabled when indexing is enabled
|
|
32
|
+
*/
|
|
33
|
+
enableQueries(): Promise<GenericCommandResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Disable index-based queries for this project
|
|
36
|
+
* @deprecated Queries are now automatically enabled when indexing is enabled
|
|
37
|
+
*/
|
|
38
|
+
disableQueries(): Promise<GenericCommandResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Index a single document to Elasticsearch
|
|
41
|
+
*/
|
|
42
|
+
index(objectId: string, document: ElasticsearchDocumentData): Promise<{
|
|
43
|
+
status: string;
|
|
44
|
+
objectId: string;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete a document from Elasticsearch
|
|
48
|
+
*/
|
|
49
|
+
delete(objectId: string): Promise<{
|
|
50
|
+
status: string;
|
|
51
|
+
objectId: string;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Bulk index multiple documents to Elasticsearch
|
|
55
|
+
*
|
|
56
|
+
* @param documents Array of documents to index
|
|
57
|
+
* @param targetIndex Optional explicit index name for zero-downtime reindexing
|
|
58
|
+
*/
|
|
59
|
+
bulkIndex(documents: Array<{
|
|
60
|
+
id: string;
|
|
61
|
+
document: ElasticsearchDocumentData;
|
|
62
|
+
}>, targetIndex?: string): Promise<BulkIndexResult>;
|
|
63
|
+
/**
|
|
64
|
+
* Ensure Elasticsearch index exists for the project
|
|
65
|
+
*
|
|
66
|
+
* @param recreate If true, drops and recreates the index
|
|
67
|
+
*/
|
|
68
|
+
ensureIndex(recreate?: boolean): Promise<EnsureIndexResult>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a new versioned index for reindexing (without alias)
|
|
71
|
+
* The alias will be swapped after reindexing completes via swapAlias
|
|
72
|
+
*/
|
|
73
|
+
createReindexTarget(): Promise<CreateReindexTargetResult>;
|
|
74
|
+
/**
|
|
75
|
+
* Atomically swap the alias from old index to new index
|
|
76
|
+
*
|
|
77
|
+
* @param newIndexName The new index to point the alias to
|
|
78
|
+
* @param deleteOld If true, deletes the old index after swapping
|
|
79
|
+
*/
|
|
80
|
+
swapAlias(newIndexName: string, deleteOld?: boolean): Promise<SwapAliasResult>;
|
|
81
|
+
/**
|
|
82
|
+
* Get Elasticsearch index statistics for the project
|
|
83
|
+
*/
|
|
84
|
+
getStats(): Promise<ElasticsearchIndexStats>;
|
|
85
|
+
/**
|
|
86
|
+
* Get the _id range for reindexing (first, last, count)
|
|
87
|
+
* Used by workflow to set up cursor-based pagination
|
|
88
|
+
*/
|
|
89
|
+
getReindexRange(): Promise<ReindexRangeResult>;
|
|
90
|
+
/**
|
|
91
|
+
* Fetch a batch of documents from MongoDB (without indexing)
|
|
92
|
+
* Used by pipeline approach: fetch next batch while indexing current
|
|
93
|
+
*
|
|
94
|
+
* @param cursor Cursor from previous batch (null for first batch)
|
|
95
|
+
* @param limit Maximum documents to fetch (default: 500)
|
|
96
|
+
*/
|
|
97
|
+
fetchBatch(cursor?: string | null, limit?: number): Promise<FetchBatchResult>;
|
|
98
|
+
/**
|
|
99
|
+
* Fetch and index a batch of documents (server-side)
|
|
100
|
+
* Uses cursor-based pagination for reliability
|
|
101
|
+
*
|
|
102
|
+
* @param cursor Cursor from previous batch (null for first batch)
|
|
103
|
+
* @param limit Maximum documents to process (default: 500)
|
|
104
|
+
* @param targetIndex Optional explicit index name for zero-downtime reindexing
|
|
105
|
+
* @param since Only index docs with updated_at >= this ISO timestamp (for catch-up after reindex)
|
|
106
|
+
*/
|
|
107
|
+
indexBatch(cursor?: string | null, limit?: number, targetIndex?: string, since?: string): Promise<IndexBatchResult>;
|
|
108
|
+
/**
|
|
109
|
+
* Trigger a reindex operation via Temporal workflow (internal version with more options)
|
|
110
|
+
*
|
|
111
|
+
* @param fullReindex If true, reindexes all documents in the project
|
|
112
|
+
* @param objectIds Specific object IDs to reindex (if not fullReindex)
|
|
113
|
+
* @param recreateIndex If true, recreates the index before reindexing
|
|
114
|
+
*/
|
|
115
|
+
triggerReindex(options?: {
|
|
116
|
+
fullReindex?: boolean;
|
|
117
|
+
objectIds?: string[];
|
|
118
|
+
recreateIndex?: boolean;
|
|
119
|
+
}): Promise<TriggerReindexResult>;
|
|
120
|
+
/**
|
|
121
|
+
* Fetch documents by their IDs from MongoDB (for retry workflow)
|
|
122
|
+
* Returns documents ready for bulk indexing
|
|
123
|
+
*
|
|
124
|
+
* @param objectIds Array of object IDs to fetch
|
|
125
|
+
*/
|
|
126
|
+
fetchDocumentsByIds(objectIds: string[]): Promise<FetchDocumentsByIdsResult>;
|
|
127
|
+
/**
|
|
128
|
+
* Bulk delete documents from Elasticsearch
|
|
129
|
+
*
|
|
130
|
+
* @param objectIds Array of object IDs to delete
|
|
131
|
+
*/
|
|
132
|
+
bulkDelete(objectIds: string[]): Promise<BulkDeleteResult>;
|
|
133
|
+
/**
|
|
134
|
+
* Get detailed index configuration for the project
|
|
135
|
+
*
|
|
136
|
+
* Returns comprehensive information about the Elasticsearch index including
|
|
137
|
+
* status, embedding dimensions, field mappings, and project configuration.
|
|
138
|
+
*/
|
|
139
|
+
getConfiguration(): Promise<IndexConfiguration>;
|
|
140
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndexingApi.d.ts","sourceRoot":"","sources":["../../../src/store/IndexingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EAClB,MAAM,kBAAkB,CAAC;AAE1B;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,QAAQ;gBAEzB,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAE,MAA2B;IAQrE;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAI/C;;;OAGG;IACG,OAAO,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAIvD;;OAEG;IACG,eAAe,IAAI,O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