@vertesia/common 1.0.0-dev.20260203.130115Z → 1.0.0-dev.20260225.024852Z
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/Progress.js +61 -0
- package/lib/cjs/Progress.js.map +1 -0
- package/lib/cjs/access-control.js +56 -0
- package/lib/cjs/access-control.js.map +1 -0
- package/lib/cjs/analytics.js +3 -0
- package/lib/cjs/analytics.js.map +1 -0
- package/lib/cjs/apikey.js +17 -0
- package/lib/cjs/apikey.js.map +1 -0
- package/lib/cjs/apps.js +35 -0
- package/lib/cjs/apps.js.map +1 -0
- package/lib/cjs/ask-user.js +8 -0
- package/lib/cjs/ask-user.js.map +1 -0
- package/lib/cjs/audit-trail.js +3 -0
- package/lib/cjs/audit-trail.js.map +1 -0
- package/lib/cjs/channels.js +63 -0
- package/lib/cjs/channels.js.map +1 -0
- package/lib/cjs/common.js +3 -0
- package/lib/cjs/common.js.map +1 -0
- package/lib/cjs/data-platform.js +127 -0
- package/lib/cjs/data-platform.js.map +1 -0
- package/lib/cjs/email.js +20 -0
- package/lib/cjs/email.js.map +1 -0
- package/lib/cjs/environment.js +44 -0
- package/lib/cjs/environment.js.map +1 -0
- package/lib/cjs/facets.js +3 -0
- package/lib/cjs/facets.js.map +1 -0
- package/lib/cjs/group.js +5 -0
- package/lib/cjs/group.js.map +1 -0
- package/lib/cjs/index.js +56 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/integrations.js +16 -0
- package/lib/cjs/integrations.js.map +1 -0
- package/lib/cjs/interaction.js +97 -0
- package/lib/cjs/interaction.js.map +1 -0
- package/lib/cjs/json-schema.js +3 -0
- package/lib/cjs/json-schema.js.map +1 -0
- package/lib/cjs/json.js +3 -0
- package/lib/cjs/json.js.map +1 -0
- package/lib/cjs/meters.js +13 -0
- package/lib/cjs/meters.js.map +1 -0
- package/lib/cjs/model_utility.js +6 -0
- package/lib/cjs/model_utility.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/payload.js +3 -0
- package/lib/cjs/payload.js.map +1 -0
- package/lib/cjs/pending-asks.js +7 -0
- package/lib/cjs/pending-asks.js.map +1 -0
- package/lib/cjs/project.js +143 -0
- package/lib/cjs/project.js.map +1 -0
- package/lib/cjs/prompt.js +21 -0
- package/lib/cjs/prompt.js.map +1 -0
- package/lib/cjs/query.js +3 -0
- package/lib/cjs/query.js.map +1 -0
- package/lib/cjs/rate-limiter.js +6 -0
- package/lib/cjs/rate-limiter.js.map +1 -0
- package/lib/cjs/refs.js +14 -0
- package/lib/cjs/refs.js.map +1 -0
- package/lib/cjs/runs.js +3 -0
- package/lib/cjs/runs.js.map +1 -0
- package/lib/cjs/skill.js +14 -0
- package/lib/cjs/skill.js.map +1 -0
- package/lib/cjs/store/activity-catalog.js +3 -0
- package/lib/cjs/store/activity-catalog.js.map +1 -0
- package/lib/cjs/store/collections.js +9 -0
- package/lib/cjs/store/collections.js.map +1 -0
- package/lib/cjs/store/common.js +3 -0
- package/lib/cjs/store/common.js.map +1 -0
- package/lib/cjs/store/conversation-state.js +3 -0
- package/lib/cjs/store/conversation-state.js.map +1 -0
- package/lib/cjs/store/doc-analyzer.js +3 -0
- package/lib/cjs/store/doc-analyzer.js.map +1 -0
- package/lib/cjs/store/dsl-workflow.js +5 -0
- package/lib/cjs/store/dsl-workflow.js.map +1 -0
- package/lib/cjs/store/hive-memory.js +3 -0
- package/lib/cjs/store/hive-memory.js.map +1 -0
- package/lib/cjs/store/index.js +32 -0
- package/lib/cjs/store/index.js.map +1 -0
- package/lib/cjs/store/object-types.js +98 -0
- package/lib/cjs/store/object-types.js.map +1 -0
- package/lib/cjs/store/rendering.js +22 -0
- package/lib/cjs/store/rendering.js.map +1 -0
- package/lib/cjs/store/schedule.js +32 -0
- package/lib/cjs/store/schedule.js.map +1 -0
- package/lib/cjs/store/signals.js +3 -0
- package/lib/cjs/store/signals.js.map +1 -0
- package/lib/cjs/store/store.js +179 -0
- package/lib/cjs/store/store.js.map +1 -0
- package/lib/cjs/store/temporalio.js +44 -0
- package/lib/cjs/store/temporalio.js.map +1 -0
- package/lib/cjs/store/worker.js +3 -0
- package/lib/cjs/store/worker.js.map +1 -0
- package/lib/cjs/store/workflow.js +305 -0
- package/lib/cjs/store/workflow.js.map +1 -0
- package/lib/cjs/sts-token-types.js +32 -0
- package/lib/cjs/sts-token-types.js.map +1 -0
- package/lib/cjs/tenant.js +3 -0
- package/lib/cjs/tenant.js.map +1 -0
- package/lib/cjs/tool-execution.js +6 -0
- package/lib/cjs/tool-execution.js.map +1 -0
- package/lib/cjs/training.js +14 -0
- package/lib/cjs/training.js.map +1 -0
- package/lib/cjs/transient-tokens.js +9 -0
- package/lib/cjs/transient-tokens.js.map +1 -0
- package/lib/cjs/user.js +25 -0
- package/lib/cjs/user.js.map +1 -0
- package/lib/cjs/utils/auth.js +15 -0
- package/lib/cjs/utils/auth.js.map +1 -0
- package/lib/cjs/utils/schemas.js +138 -0
- package/lib/cjs/utils/schemas.js.map +1 -0
- package/lib/cjs/utils/type-helpers.js +3 -0
- package/lib/cjs/utils/type-helpers.js.map +1 -0
- package/lib/cjs/versions.js +9 -0
- package/lib/cjs/versions.js.map +1 -0
- package/lib/cjs/workflow-analytics.js +52 -0
- package/lib/cjs/workflow-analytics.js.map +1 -0
- package/lib/esm/Progress.js +57 -0
- package/lib/esm/Progress.js.map +1 -0
- package/lib/esm/access-control.js +53 -0
- package/lib/esm/access-control.js.map +1 -0
- package/lib/esm/analytics.js +2 -0
- package/lib/esm/analytics.js.map +1 -0
- package/lib/esm/apikey.js +14 -0
- package/lib/esm/apikey.js.map +1 -0
- package/lib/esm/apps.js +32 -0
- package/lib/esm/apps.js.map +1 -0
- package/lib/esm/ask-user.js +7 -0
- package/lib/esm/ask-user.js.map +1 -0
- package/lib/esm/audit-trail.js +2 -0
- package/lib/esm/audit-trail.js.map +1 -0
- package/lib/esm/channels.js +57 -0
- package/lib/esm/channels.js.map +1 -0
- package/lib/esm/common.js +2 -0
- package/lib/esm/common.js.map +1 -0
- package/lib/esm/data-platform.js +124 -0
- package/lib/esm/data-platform.js.map +1 -0
- package/lib/esm/email.js +16 -0
- package/lib/esm/email.js.map +1 -0
- package/lib/esm/environment.js +41 -0
- package/lib/esm/environment.js.map +1 -0
- package/lib/esm/facets.js +2 -0
- package/lib/esm/facets.js.map +1 -0
- package/lib/esm/group.js +2 -0
- package/lib/esm/group.js.map +1 -0
- package/lib/esm/index.js +40 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/integrations.js +13 -0
- package/lib/esm/integrations.js.map +1 -0
- package/lib/esm/interaction.js +92 -0
- package/lib/esm/interaction.js.map +1 -0
- package/lib/esm/json-schema.js +2 -0
- package/lib/esm/json-schema.js.map +1 -0
- package/lib/esm/json.js +2 -0
- package/lib/esm/json.js.map +1 -0
- package/lib/esm/meters.js +10 -0
- package/lib/esm/meters.js.map +1 -0
- package/lib/esm/model_utility.js +2 -0
- package/lib/esm/model_utility.js.map +1 -0
- package/lib/esm/payload.js +2 -0
- package/lib/esm/payload.js.map +1 -0
- package/lib/esm/pending-asks.js +6 -0
- package/lib/esm/pending-asks.js.map +1 -0
- package/lib/esm/project.js +138 -0
- package/lib/esm/project.js.map +1 -0
- package/lib/esm/prompt.js +18 -0
- package/lib/esm/prompt.js.map +1 -0
- package/lib/esm/query.js +2 -0
- package/lib/esm/query.js.map +1 -0
- package/lib/esm/rate-limiter.js +5 -0
- package/lib/esm/rate-limiter.js.map +1 -0
- package/lib/esm/refs.js +11 -0
- package/lib/esm/refs.js.map +1 -0
- package/lib/esm/runs.js +2 -0
- package/lib/esm/runs.js.map +1 -0
- package/lib/esm/skill.js +13 -0
- package/lib/esm/skill.js.map +1 -0
- package/lib/esm/store/activity-catalog.js +2 -0
- package/lib/esm/store/activity-catalog.js.map +1 -0
- package/lib/esm/store/collections.js +6 -0
- package/lib/esm/store/collections.js.map +1 -0
- package/lib/esm/store/common.js +2 -0
- package/lib/esm/store/common.js.map +1 -0
- package/lib/esm/store/conversation-state.js +2 -0
- package/lib/esm/store/conversation-state.js.map +1 -0
- package/lib/esm/store/doc-analyzer.js +2 -0
- package/lib/esm/store/doc-analyzer.js.map +1 -0
- package/lib/esm/store/dsl-workflow.js +2 -0
- package/lib/esm/store/dsl-workflow.js.map +1 -0
- package/lib/esm/store/hive-memory.js +2 -0
- package/lib/esm/store/hive-memory.js.map +1 -0
- package/lib/esm/store/index.js +16 -0
- package/lib/esm/store/index.js.map +1 -0
- package/lib/esm/store/object-types.js +95 -0
- package/lib/esm/store/object-types.js.map +1 -0
- package/lib/esm/store/rendering.js +18 -0
- package/lib/esm/store/rendering.js.map +1 -0
- package/lib/esm/store/schedule.js +29 -0
- package/lib/esm/store/schedule.js.map +1 -0
- package/lib/esm/store/signals.js +2 -0
- package/lib/esm/store/signals.js.map +1 -0
- package/lib/esm/store/store.js +171 -0
- package/lib/esm/store/store.js.map +1 -0
- package/lib/esm/store/temporalio.js +41 -0
- package/lib/esm/store/temporalio.js.map +1 -0
- package/lib/esm/store/worker.js +2 -0
- package/lib/esm/store/worker.js.map +1 -0
- package/lib/esm/store/workflow.js +287 -0
- package/lib/esm/store/workflow.js.map +1 -0
- package/lib/esm/sts-token-types.js +24 -0
- package/lib/esm/sts-token-types.js.map +1 -0
- package/lib/esm/tenant.js +2 -0
- package/lib/esm/tenant.js.map +1 -0
- package/lib/esm/tool-execution.js +5 -0
- package/lib/esm/tool-execution.js.map +1 -0
- package/lib/esm/training.js +11 -0
- package/lib/esm/training.js.map +1 -0
- package/lib/esm/transient-tokens.js +6 -0
- package/lib/esm/transient-tokens.js.map +1 -0
- package/lib/esm/user.js +22 -0
- package/lib/esm/user.js.map +1 -0
- package/lib/esm/utils/auth.js +11 -0
- package/lib/esm/utils/auth.js.map +1 -0
- package/lib/esm/utils/schemas.js +129 -0
- package/lib/esm/utils/schemas.js.map +1 -0
- package/lib/esm/utils/type-helpers.js +2 -0
- package/lib/esm/utils/type-helpers.js.map +1 -0
- package/lib/esm/versions.js +6 -0
- package/lib/esm/versions.js.map +1 -0
- package/lib/esm/workflow-analytics.js +49 -0
- package/lib/esm/workflow-analytics.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/Progress.d.ts +21 -0
- package/lib/types/Progress.d.ts.map +1 -0
- package/lib/types/access-control.d.ts +73 -0
- package/lib/types/access-control.d.ts.map +1 -0
- package/lib/types/analytics.d.ts +87 -0
- package/lib/types/analytics.d.ts.map +1 -0
- package/lib/types/apikey.d.ts +99 -0
- package/lib/types/apikey.d.ts.map +1 -0
- package/lib/types/apps.d.ts +455 -0
- package/lib/types/apps.d.ts.map +1 -0
- package/lib/types/ask-user.d.ts +32 -0
- package/lib/types/ask-user.d.ts.map +1 -0
- package/lib/types/audit-trail.d.ts +49 -0
- package/lib/types/audit-trail.d.ts.map +1 -0
- package/lib/types/channels.d.ts +21 -0
- package/lib/types/channels.d.ts.map +1 -0
- package/lib/types/common.d.ts +31 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/data-platform.d.ts +860 -0
- package/lib/types/data-platform.d.ts.map +1 -0
- package/lib/types/email.d.ts +66 -0
- package/lib/types/email.d.ts.map +1 -0
- package/lib/types/environment.d.ts +106 -0
- package/lib/types/environment.d.ts.map +1 -0
- package/lib/types/facets.d.ts +34 -0
- package/lib/types/facets.d.ts.map +1 -0
- package/lib/types/group.d.ts +21 -0
- package/lib/types/group.d.ts.map +1 -0
- package/lib/types/index.d.ts +40 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integrations.d.ts +68 -0
- package/lib/types/integrations.d.ts.map +1 -0
- package/lib/types/interaction.d.ts +964 -0
- package/lib/types/interaction.d.ts.map +1 -0
- package/lib/types/json-schema.d.ts +1 -0
- package/lib/types/json-schema.d.ts.map +1 -0
- package/lib/types/json.d.ts +1 -0
- package/lib/types/json.d.ts.map +1 -0
- package/lib/types/meters.d.ts +23 -0
- package/lib/types/meters.d.ts.map +1 -0
- package/lib/types/model_utility.d.ts +1 -0
- package/lib/types/model_utility.d.ts.map +1 -0
- package/lib/types/payload.d.ts +60 -0
- package/lib/types/payload.d.ts.map +1 -0
- package/lib/types/pending-asks.d.ts +93 -0
- package/lib/types/pending-asks.d.ts.map +1 -0
- package/lib/types/project.d.ts +434 -0
- package/lib/types/project.d.ts.map +1 -0
- package/lib/types/prompt.d.ts +77 -0
- package/lib/types/prompt.d.ts.map +1 -0
- package/lib/types/query.d.ts +118 -0
- package/lib/types/query.d.ts.map +1 -0
- package/lib/types/rate-limiter.d.ts +28 -0
- package/lib/types/rate-limiter.d.ts.map +1 -0
- package/lib/types/refs.d.ts +22 -0
- package/lib/types/refs.d.ts.map +1 -0
- package/lib/types/runs.d.ts +32 -0
- package/lib/types/runs.d.ts.map +1 -0
- package/lib/types/skill.d.ts +78 -0
- package/lib/types/skill.d.ts.map +1 -0
- package/lib/types/store/activity-catalog.d.ts +26 -0
- package/lib/types/store/activity-catalog.d.ts.map +1 -0
- package/lib/types/store/collections.d.ts +78 -0
- package/lib/types/store/collections.d.ts.map +1 -0
- package/lib/types/store/common.d.ts +22 -0
- package/lib/types/store/common.d.ts.map +1 -0
- package/lib/types/store/conversation-state.d.ts +132 -0
- package/lib/types/store/conversation-state.d.ts.map +1 -0
- package/lib/types/store/doc-analyzer.d.ts +140 -0
- package/lib/types/store/doc-analyzer.d.ts.map +1 -0
- package/lib/types/store/dsl-workflow.d.ts +272 -0
- package/lib/types/store/dsl-workflow.d.ts.map +1 -0
- package/lib/types/store/hive-memory.d.ts +116 -0
- package/lib/types/store/hive-memory.d.ts.map +1 -0
- package/lib/types/store/index.d.ts +15 -0
- package/lib/types/store/index.d.ts.map +1 -0
- package/lib/types/store/object-types.d.ts +23 -0
- package/lib/types/store/object-types.d.ts.map +1 -0
- package/lib/types/store/rendering.d.ts +193 -0
- package/lib/types/store/rendering.d.ts.map +1 -0
- package/lib/types/store/schedule.d.ts +184 -0
- package/lib/types/store/schedule.d.ts.map +1 -0
- package/lib/types/store/signals.d.ts +24 -0
- package/lib/types/store/signals.d.ts.map +1 -0
- package/lib/types/store/store.d.ts +436 -0
- package/lib/types/store/store.d.ts.map +1 -0
- package/lib/types/store/temporalio.d.ts +16 -0
- package/lib/types/store/temporalio.d.ts.map +1 -0
- package/lib/types/store/worker.d.ts +18 -0
- package/lib/types/store/worker.d.ts.map +1 -0
- package/lib/types/store/workflow.d.ts +948 -0
- package/lib/types/store/workflow.d.ts.map +1 -0
- package/lib/types/sts-token-types.d.ts +72 -0
- package/lib/types/sts-token-types.d.ts.map +1 -0
- package/lib/types/tenant.d.ts +10 -0
- package/lib/types/tenant.d.ts.map +1 -0
- package/lib/types/tool-execution.d.ts +45 -0
- package/lib/types/tool-execution.d.ts.map +1 -0
- package/lib/types/training.d.ts +38 -0
- package/lib/types/training.d.ts.map +1 -0
- package/lib/types/transient-tokens.d.ts +24 -0
- package/lib/types/transient-tokens.d.ts.map +1 -0
- package/lib/types/user.d.ts +125 -0
- package/lib/types/user.d.ts.map +1 -0
- package/lib/types/utils/auth.d.ts +3 -0
- package/lib/types/utils/auth.d.ts.map +1 -0
- package/lib/types/utils/schemas.d.ts +18 -0
- package/lib/types/utils/schemas.d.ts.map +1 -0
- package/lib/types/utils/type-helpers.d.ts +3 -0
- package/lib/types/utils/type-helpers.d.ts.map +1 -0
- package/lib/types/versions.d.ts +4 -0
- package/lib/types/versions.d.ts.map +1 -0
- package/lib/types/workflow-analytics.d.ts +777 -0
- package/lib/types/workflow-analytics.d.ts.map +1 -0
- package/lib/vertesia-common.js +2 -0
- package/lib/vertesia-common.js.map +1 -0
- package/package.json +2 -4
- package/src/apikey.ts +1 -0
- package/src/apps.ts +163 -1
- package/src/audit-trail.ts +61 -0
- package/src/index.ts +1 -0
- package/src/integrations.ts +10 -0
- package/src/interaction.ts +11 -12
- package/src/project.ts +226 -0
- package/src/prompt.ts +3 -4
- package/src/store/conversation-state.ts +9 -0
- package/src/store/doc-analyzer.ts +1 -1
- package/src/store/dsl-workflow.ts +20 -0
- package/src/store/index.ts +1 -0
- package/src/store/rendering.ts +233 -0
- package/src/store/schedule.ts +3 -0
- package/src/store/store.ts +40 -5
- package/src/store/workflow.ts +184 -7
- package/src/user.ts +11 -0
- package/src/utils/schemas.ts +33 -11
- package/src/versions.ts +1 -0
package/src/apps.ts
CHANGED
|
@@ -2,6 +2,20 @@ import { JSONSchema, ToolDefinition } from "@llumiverse/common";
|
|
|
2
2
|
import { CatalogInteractionRef } from "./interaction.js";
|
|
3
3
|
import { InCodeTypeDefinition } from "./store/index.js";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Additional navigation item for an app's UI configuration.
|
|
7
|
+
* Used in AppUIConfig.navigation to define sidebar navigation entries in CompositeApp shell contexts.
|
|
8
|
+
* Icon values are Lucide icon component names or SVG content strings.
|
|
9
|
+
*/
|
|
10
|
+
export interface AppUINavItem {
|
|
11
|
+
/** Display label */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Lucide icon name or SVG content string */
|
|
14
|
+
icon: string;
|
|
15
|
+
/** Route path relative to app base */
|
|
16
|
+
route: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
5
19
|
export interface AppUIConfig {
|
|
6
20
|
/**
|
|
7
21
|
* The source URL of the app. The src can be a template which contain
|
|
@@ -15,6 +29,18 @@ export interface AppUIConfig {
|
|
|
15
29
|
* - css - use CSS processing (like prefixing or other isolation techniques). Ligther but plugins may conflict with the host
|
|
16
30
|
*/
|
|
17
31
|
isolation?: "shadow" | "css";
|
|
32
|
+
/**
|
|
33
|
+
* Navigation items for the app's sidebar UI.
|
|
34
|
+
* Only applicable for apps with UI capability in shell contexts (ie. CompositeApp shell).
|
|
35
|
+
*/
|
|
36
|
+
navigation?: AppUINavItem[];
|
|
37
|
+
/**
|
|
38
|
+
* Where this app's UI can be displayed.
|
|
39
|
+
* - 'app_portal': Available in the main app portal (standalone)
|
|
40
|
+
* - 'composite_app': Available within a CompositeApp shell
|
|
41
|
+
* Defaults to ['app_portal', 'composite_app'] for new apps.
|
|
42
|
+
*/
|
|
43
|
+
available_in?: AppAvailableIn[];
|
|
18
44
|
}
|
|
19
45
|
|
|
20
46
|
/**
|
|
@@ -141,6 +167,12 @@ export function normalizeToolCollection(collection: ToolCollection): ToolCollect
|
|
|
141
167
|
* Tool definition with optional activation control for agent exposure.
|
|
142
168
|
*/
|
|
143
169
|
export interface AgentToolDefinition extends ToolDefinition {
|
|
170
|
+
/**
|
|
171
|
+
* The tool execution URL. It can be an absolute URL or a path in which case the URL is obtained
|
|
172
|
+
* using the base URL of the tool server API. Ex: http://tool-server.com/api/
|
|
173
|
+
* Example of relative URLs: "tools/my-tool-collection" or "/api/tools/my-tool-collection"
|
|
174
|
+
*/
|
|
175
|
+
url?: string;
|
|
144
176
|
/**
|
|
145
177
|
* The tool category if any - for UI purposes.
|
|
146
178
|
*/
|
|
@@ -159,6 +191,7 @@ export interface AgentToolDefinition extends ToolDefinition {
|
|
|
159
191
|
}
|
|
160
192
|
|
|
161
193
|
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types';
|
|
194
|
+
export type AppAvailableIn = 'app_portal' | 'composite_app';
|
|
162
195
|
export interface AppManifestData {
|
|
163
196
|
/**
|
|
164
197
|
* The name of the app, used as the id in the system.
|
|
@@ -246,7 +279,7 @@ export interface AppManifestData {
|
|
|
246
279
|
*/
|
|
247
280
|
endpoint?: string;
|
|
248
281
|
}
|
|
249
|
-
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'settings' | 'all';
|
|
282
|
+
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'settings' | 'widgets' | 'all';
|
|
250
283
|
export interface AppPackage {
|
|
251
284
|
/**
|
|
252
285
|
* The UI configuration of the app
|
|
@@ -268,12 +301,23 @@ export interface AppPackage {
|
|
|
268
301
|
*/
|
|
269
302
|
types?: InCodeTypeDefinition[];
|
|
270
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Widgets provided by the app.
|
|
306
|
+
*/
|
|
307
|
+
widgets?: Record<string, AppWidgetInfo>;
|
|
308
|
+
|
|
271
309
|
/**
|
|
272
310
|
* A JSON chema for the app installation settings.
|
|
273
311
|
*/
|
|
274
312
|
settings_schema?: JSONSchema;
|
|
275
313
|
}
|
|
276
314
|
|
|
315
|
+
export interface AppWidgetInfo {
|
|
316
|
+
collection: string;
|
|
317
|
+
skill: string;
|
|
318
|
+
url: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
277
321
|
export interface AppManifest extends AppManifestData {
|
|
278
322
|
id: string;
|
|
279
323
|
account: string;
|
|
@@ -380,3 +424,121 @@ export interface OAuthMetadataResponse {
|
|
|
380
424
|
mcp_server_url: string;
|
|
381
425
|
metadata: any;
|
|
382
426
|
}
|
|
427
|
+
|
|
428
|
+
// ============================================================================
|
|
429
|
+
// CompositeApp Shell Configuration Types
|
|
430
|
+
// These types define the configuration for a CompositeApp shell that combines
|
|
431
|
+
// multiple apps into a unified experience with shared navigation and branding.
|
|
432
|
+
// ============================================================================
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* App navigation item display overrides.
|
|
436
|
+
* Allows customizing individual nav items for an app installation within the CompositeApp shell.
|
|
437
|
+
*/
|
|
438
|
+
export interface CompositeAppNavItemOverride {
|
|
439
|
+
/** Used as identifier to match the nav item to override -- does not change route path */
|
|
440
|
+
route: string;
|
|
441
|
+
/** Hide this nav item from the sidebar */
|
|
442
|
+
hidden?: boolean;
|
|
443
|
+
/** Override the displayed nav item label */
|
|
444
|
+
label?: string;
|
|
445
|
+
/** Override the displayed nav item icon (Lucide icon name or SVG content string) */
|
|
446
|
+
icon?: string;
|
|
447
|
+
//TODO: Set permissions for routes
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Configuration entry for an individual app in the CompositeApp shell.
|
|
452
|
+
* References an app installation by name and allows customizing its appearance.
|
|
453
|
+
*/
|
|
454
|
+
export interface CompositeAppEntry {
|
|
455
|
+
/** App installation name (must match an installed app) */
|
|
456
|
+
appName: string;
|
|
457
|
+
/** Override the label displayed for the app */
|
|
458
|
+
labelOverride?: string;
|
|
459
|
+
/** Override the icon displayed for the app (Lucide icon name or SVG content string) */
|
|
460
|
+
iconOverride?: string;
|
|
461
|
+
/** Overrides for navigation items provided by the app */
|
|
462
|
+
navigationOverrides?: CompositeAppNavItemOverride[];
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Logo overrides for the CompositeApp shell header.
|
|
467
|
+
* When provided, these URLs replace the default Vertesia logo.
|
|
468
|
+
*/
|
|
469
|
+
export interface CompositeAppLogoOverrides {
|
|
470
|
+
/** URL for light mode logo (overrides default Vertesia logo) */
|
|
471
|
+
lightModeUrl?: string;
|
|
472
|
+
/** URL for dark mode logo (overrides default Vertesia logo) */
|
|
473
|
+
darkModeUrl?: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Message banner overrides for the shell header.
|
|
479
|
+
*/
|
|
480
|
+
export type CompositeAppMessageStyle = 'foreground' | 'info' | 'success' | 'attention' | 'destructive';
|
|
481
|
+
export interface CompositeAppMessageOverrides {
|
|
482
|
+
/** Message text to display */
|
|
483
|
+
text?: string;
|
|
484
|
+
/** Whether the message is visible (defaults to true) */
|
|
485
|
+
visible?: boolean;
|
|
486
|
+
/** Text color style. Uses semantic colors */
|
|
487
|
+
style?: CompositeAppMessageStyle;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Switcher visibility overrides for the CompositeApp header.
|
|
492
|
+
*/
|
|
493
|
+
export interface CompositeAppSwitchersOverrides {
|
|
494
|
+
/** Whether to show the organization switcher (defaults to true) */
|
|
495
|
+
showOrganization?: boolean;
|
|
496
|
+
/** Whether to show the project switcher (defaults to true) */
|
|
497
|
+
showProject?: boolean;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Card display overrides for the CompositeApp in the App Portal.
|
|
502
|
+
* Similar to AppManifest display properties, but specific to the CompositeApp card.
|
|
503
|
+
* Allows customers to customize the app portal card (not otherwise possible if using a
|
|
504
|
+
* shared, Vertesia-managed manifest across accounts).
|
|
505
|
+
*/
|
|
506
|
+
export interface CompositeAppCardOverrides {
|
|
507
|
+
/** Whether to show the CompositeApp card in App Portal (default: false) */
|
|
508
|
+
visible?: boolean;
|
|
509
|
+
/** Override the card label (default: "Composite App") */
|
|
510
|
+
label?: string;
|
|
511
|
+
/** Override the card description */
|
|
512
|
+
description?: string;
|
|
513
|
+
/** Override the card icon (Lucide icon name or SVG content string) */
|
|
514
|
+
icon?: string;
|
|
515
|
+
/** Override the card color (e.g., "blue", "red", "purple") */
|
|
516
|
+
color?: string;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* CompositeApp shell configuration.
|
|
521
|
+
* This is the main configuration interface for storing CompositeApp settings.
|
|
522
|
+
* Used as the MongoDB model for persisting CompositeApp configurations.
|
|
523
|
+
*/
|
|
524
|
+
export interface CompositeAppConfig {
|
|
525
|
+
/**
|
|
526
|
+
* The unique identifier for this CompositeApp configuration
|
|
527
|
+
* Undefined if the configuration doesn't exists yet.
|
|
528
|
+
*/
|
|
529
|
+
id?: string;
|
|
530
|
+
/** The project this CompositeApp belongs to */
|
|
531
|
+
project: string;
|
|
532
|
+
/** Card display overrides (includes visibility) */
|
|
533
|
+
card?: CompositeAppCardOverrides;
|
|
534
|
+
/** Optional logo overrides (replaces default Vertesia logo) */
|
|
535
|
+
logo?: CompositeAppLogoOverrides;
|
|
536
|
+
/** Optional message banner overrides */
|
|
537
|
+
message?: CompositeAppMessageOverrides;
|
|
538
|
+
/** Optional switcher visibility overrides */
|
|
539
|
+
switchers?: CompositeAppSwitchersOverrides;
|
|
540
|
+
/** List of apps to include in the CompositeApp */
|
|
541
|
+
apps: CompositeAppEntry[];
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export type CompositeAppConfigPayload = Partial<Omit<CompositeAppConfig, 'id' | 'project'>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type AuditAction =
|
|
2
|
+
| 'create'
|
|
3
|
+
| 'update'
|
|
4
|
+
| 'delete'
|
|
5
|
+
| 'bulk_update'
|
|
6
|
+
| 'bulk_delete'
|
|
7
|
+
| 'attach'
|
|
8
|
+
| 'detach'
|
|
9
|
+
| 'publish'
|
|
10
|
+
| 'unpublish';
|
|
11
|
+
|
|
12
|
+
export interface AuditTrailEvent {
|
|
13
|
+
event_type: 'audit';
|
|
14
|
+
action: AuditAction;
|
|
15
|
+
resource_type: string;
|
|
16
|
+
resource_id: string;
|
|
17
|
+
timestamp: string;
|
|
18
|
+
request_id: string;
|
|
19
|
+
status: number;
|
|
20
|
+
success: boolean;
|
|
21
|
+
principal_id: string | null;
|
|
22
|
+
principal_type: string | null;
|
|
23
|
+
principal_user_id: string | null;
|
|
24
|
+
roles: string[];
|
|
25
|
+
account_id: string | null;
|
|
26
|
+
project_id: string | null;
|
|
27
|
+
tenant_id: string | null;
|
|
28
|
+
account_name: string | null;
|
|
29
|
+
project_name: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AuditTrailQuery {
|
|
33
|
+
/** Filter by action types */
|
|
34
|
+
actions?: AuditAction[];
|
|
35
|
+
/** Filter by resource types */
|
|
36
|
+
resourceTypes?: string[];
|
|
37
|
+
/** Filter by resource ID */
|
|
38
|
+
resourceId?: string;
|
|
39
|
+
/** Filter by principal ID (matches principal_id column — API keys, service accounts) */
|
|
40
|
+
principalId?: string;
|
|
41
|
+
/** Filter by principal user ID (matches principal_user_id column — human users) */
|
|
42
|
+
principalUserId?: string;
|
|
43
|
+
/** Filter by project ID */
|
|
44
|
+
projectId?: string;
|
|
45
|
+
/** Start time (ISO string) */
|
|
46
|
+
from?: string;
|
|
47
|
+
/** End time (ISO string) */
|
|
48
|
+
to?: string;
|
|
49
|
+
/** Pagination: number of items to return (default 50, max 200) */
|
|
50
|
+
limit?: number;
|
|
51
|
+
/** Pagination: offset */
|
|
52
|
+
offset?: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface AuditTrailResponse {
|
|
56
|
+
events: AuditTrailEvent[];
|
|
57
|
+
/** Whether there are more events after this page */
|
|
58
|
+
hasNext: boolean;
|
|
59
|
+
limit: number;
|
|
60
|
+
offset: number;
|
|
61
|
+
}
|
package/src/index.ts
CHANGED
package/src/integrations.ts
CHANGED
|
@@ -29,6 +29,14 @@ export interface SerperConfiguration extends IntegrationConfigurationBase {
|
|
|
29
29
|
url?: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export interface ExaConfiguration extends IntegrationConfigurationBase {
|
|
33
|
+
api_key: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface LinkupConfiguration extends IntegrationConfigurationBase {
|
|
37
|
+
api_key: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
export interface ResendConfiguration extends IntegrationConfigurationBase {
|
|
33
41
|
/** Resend API key for sending emails */
|
|
34
42
|
api_key: string;
|
|
@@ -67,6 +75,8 @@ export enum SupportedIntegrations {
|
|
|
67
75
|
aws = "aws",
|
|
68
76
|
magic_pdf = "magic_pdf",
|
|
69
77
|
serper = "serper",
|
|
78
|
+
exa = "exa",
|
|
79
|
+
linkup = "linkup",
|
|
70
80
|
resend = "resend",
|
|
71
81
|
ask_user_webhook = "ask_user_webhook",
|
|
72
82
|
}
|
package/src/interaction.ts
CHANGED
|
@@ -9,7 +9,6 @@ import type {
|
|
|
9
9
|
ToolDefinition,
|
|
10
10
|
ToolUse,
|
|
11
11
|
} from "@llumiverse/common";
|
|
12
|
-
import type { JSONSchema4 } from "json-schema";
|
|
13
12
|
|
|
14
13
|
import { ExecutionTokenUsage } from "@llumiverse/common";
|
|
15
14
|
|
|
@@ -41,8 +40,8 @@ export interface InteractionExecutionError {
|
|
|
41
40
|
export interface ConversationStripOptions {
|
|
42
41
|
/**
|
|
43
42
|
* Number of turns to keep images before stripping them.
|
|
44
|
-
* - 0: Strip images immediately after each turn
|
|
45
|
-
* - N > 0: Keep images for N turns before stripping
|
|
43
|
+
* - 0: Strip images immediately after each turn
|
|
44
|
+
* - N > 0: Keep images for N turns before stripping (default: 5)
|
|
46
45
|
* - Infinity: Never strip images
|
|
47
46
|
*/
|
|
48
47
|
images_after_turns?: number;
|
|
@@ -328,7 +327,7 @@ export const InteractionRefWithSchemaPopulate =
|
|
|
328
327
|
`${InteractionRefPopulate} result_schema`;
|
|
329
328
|
|
|
330
329
|
export interface InteractionRefWithSchema extends Omit<InteractionRef, "prompts"> {
|
|
331
|
-
result_schema?:
|
|
330
|
+
result_schema?: JSONSchema;
|
|
332
331
|
prompts?: PromptSegmentDef<PromptTemplateRefWithSchema>[];
|
|
333
332
|
}
|
|
334
333
|
|
|
@@ -401,7 +400,7 @@ export interface InteractionData {
|
|
|
401
400
|
project: string | ProjectRef;
|
|
402
401
|
tags: string[];
|
|
403
402
|
agent_runner_options?: AgentRunnerOptions;
|
|
404
|
-
result_schema?:
|
|
403
|
+
result_schema?: JSONSchema | SchemaRef;
|
|
405
404
|
environment?: string | ExecutionEnvironmentRef;
|
|
406
405
|
model?: string;
|
|
407
406
|
model_options?: ModelOptions;
|
|
@@ -418,7 +417,7 @@ export interface Interaction extends InteractionData {
|
|
|
418
417
|
visibility: InteractionVisibility;
|
|
419
418
|
version: number;
|
|
420
419
|
test_data?: JSONObject;
|
|
421
|
-
interaction_schema?:
|
|
420
|
+
interaction_schema?: JSONSchema | SchemaRef;
|
|
422
421
|
cache_policy?: CachePolicy;
|
|
423
422
|
prompts: PromptSegmentDef[];
|
|
424
423
|
// only for drafts - when it was last published
|
|
@@ -468,7 +467,7 @@ export interface InteractionUpdatePayload
|
|
|
468
467
|
"result_schema" | "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project"
|
|
469
468
|
>
|
|
470
469
|
> {
|
|
471
|
-
result_schema?:
|
|
470
|
+
result_schema?: JSONSchema | null;
|
|
472
471
|
}
|
|
473
472
|
|
|
474
473
|
export interface InteractionPublishPayload {
|
|
@@ -490,7 +489,7 @@ export interface InteractionExecutionPayload {
|
|
|
490
489
|
data?: Record<string, any> | `memory:${string}`;
|
|
491
490
|
config?: InteractionExecutionConfiguration;
|
|
492
491
|
//Use null to explicitly state no schema, will not fallback to interaction schema
|
|
493
|
-
result_schema?:
|
|
492
|
+
result_schema?: JSONSchema | null;
|
|
494
493
|
stream?: boolean;
|
|
495
494
|
do_validate?: boolean;
|
|
496
495
|
tags?: string | string[]; // tags to be added to the execution run
|
|
@@ -705,7 +704,7 @@ export interface AsyncConversationExecutionPayload extends AsyncExecutionPayload
|
|
|
705
704
|
/**
|
|
706
705
|
* The token threshold in thousands (K) for creating checkpoints.
|
|
707
706
|
* If total tokens exceed this value, a checkpoint will be created.
|
|
708
|
-
* If not specified, default
|
|
707
|
+
* If not specified, the default is computed from the selected model context window (75%).
|
|
709
708
|
*/
|
|
710
709
|
checkpoint_tokens?: number;
|
|
711
710
|
|
|
@@ -926,8 +925,8 @@ export interface BaseExecutionRun<P = any> {
|
|
|
926
925
|
interaction_code?: string; // Interaction code name in case of in-code interaction (not stored in the DB as an Interaction document)
|
|
927
926
|
/** Environment reference - populated with full object in API responses */
|
|
928
927
|
environment: ExecutionEnvironmentRef;
|
|
929
|
-
modelId
|
|
930
|
-
result_schema:
|
|
928
|
+
modelId?: string; //Can be undefined for virtual environments. In most cases should be defined.
|
|
929
|
+
result_schema: JSONSchema;
|
|
931
930
|
ttl: number;
|
|
932
931
|
status: ExecutionRunStatus;
|
|
933
932
|
finish_reason?: string;
|
|
@@ -1186,4 +1185,4 @@ export interface BuiltinToolsCatalogResponse {
|
|
|
1186
1185
|
* Total number of tools in the catalog
|
|
1187
1186
|
*/
|
|
1188
1187
|
total_tools: number;
|
|
1189
|
-
}
|
|
1188
|
+
}
|
package/src/project.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SupportedIntegrations } from "./integrations.js";
|
|
2
|
+
import { ContentObjectTypeRef } from "./store/store.js";
|
|
2
3
|
import { AccountRef } from "./user.js";
|
|
3
4
|
|
|
4
5
|
export interface ICreateProjectPayload {
|
|
@@ -339,6 +340,231 @@ export interface IndexingStatusResponse {
|
|
|
339
340
|
};
|
|
340
341
|
}
|
|
341
342
|
|
|
343
|
+
// ============================================================================
|
|
344
|
+
// Internal indexing types (used by Temporal workflows)
|
|
345
|
+
// ============================================================================
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Document data structure for Elasticsearch indexing
|
|
349
|
+
*/
|
|
350
|
+
export interface ElasticsearchDocumentData {
|
|
351
|
+
name?: string;
|
|
352
|
+
text?: string;
|
|
353
|
+
properties?: Record<string, unknown>;
|
|
354
|
+
status?: string;
|
|
355
|
+
type?: ContentObjectTypeRef;
|
|
356
|
+
security?: {
|
|
357
|
+
'content:read'?: string[];
|
|
358
|
+
'content:write'?: string[];
|
|
359
|
+
'content:delete'?: string[];
|
|
360
|
+
};
|
|
361
|
+
revision?: {
|
|
362
|
+
head?: boolean;
|
|
363
|
+
root?: string;
|
|
364
|
+
};
|
|
365
|
+
embeddings_text?: number[];
|
|
366
|
+
embeddings_image?: number[];
|
|
367
|
+
embeddings_properties?: number[];
|
|
368
|
+
created_at?: Date | string;
|
|
369
|
+
updated_at?: Date | string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Result from bulk indexing
|
|
374
|
+
*/
|
|
375
|
+
export interface BulkIndexResult {
|
|
376
|
+
successful: number;
|
|
377
|
+
failed: number;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Result from creating a reindex target
|
|
382
|
+
*/
|
|
383
|
+
export interface CreateReindexTargetResult {
|
|
384
|
+
created: boolean;
|
|
385
|
+
indexName: string;
|
|
386
|
+
aliasName: string;
|
|
387
|
+
version: number;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Result from getting reindex range
|
|
392
|
+
*/
|
|
393
|
+
export interface ReindexRangeResult {
|
|
394
|
+
first: string | null;
|
|
395
|
+
last: string | null;
|
|
396
|
+
count: number;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Result from fetching a batch
|
|
401
|
+
*/
|
|
402
|
+
export interface FetchBatchResult {
|
|
403
|
+
documents: Array<{
|
|
404
|
+
id: string;
|
|
405
|
+
document: ElasticsearchDocumentData;
|
|
406
|
+
}>;
|
|
407
|
+
nextCursor: string | null;
|
|
408
|
+
done: boolean;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Result from indexing a batch
|
|
413
|
+
*/
|
|
414
|
+
export interface IndexBatchResult {
|
|
415
|
+
successful: number;
|
|
416
|
+
failed: number;
|
|
417
|
+
processed: number;
|
|
418
|
+
nextCursor: string | null;
|
|
419
|
+
done: boolean;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Result from triggering a reindex
|
|
424
|
+
*/
|
|
425
|
+
export interface TriggerReindexResult {
|
|
426
|
+
status: string;
|
|
427
|
+
workflow?: string;
|
|
428
|
+
workflowId?: string;
|
|
429
|
+
runId?: string;
|
|
430
|
+
objectCount?: number;
|
|
431
|
+
reason?: string;
|
|
432
|
+
enabled?: boolean;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Elasticsearch index statistics
|
|
437
|
+
*/
|
|
438
|
+
export interface ElasticsearchIndexStats {
|
|
439
|
+
enabled: boolean;
|
|
440
|
+
exists?: boolean;
|
|
441
|
+
documentCount?: number;
|
|
442
|
+
sizeInBytes?: number;
|
|
443
|
+
indexName?: string;
|
|
444
|
+
aliasName?: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Embedding configuration for a single type
|
|
449
|
+
*/
|
|
450
|
+
export interface EmbeddingTypeConfig {
|
|
451
|
+
environment?: string;
|
|
452
|
+
dimensions?: number;
|
|
453
|
+
model?: string;
|
|
454
|
+
provider?: string;
|
|
455
|
+
enabled?: boolean;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Detailed index configuration
|
|
460
|
+
*/
|
|
461
|
+
export interface IndexConfiguration {
|
|
462
|
+
enabled: boolean;
|
|
463
|
+
exists?: boolean;
|
|
464
|
+
indexName?: string;
|
|
465
|
+
aliasName?: string;
|
|
466
|
+
version?: number;
|
|
467
|
+
documentCount?: number;
|
|
468
|
+
sizeInBytes?: number;
|
|
469
|
+
embeddingDimensions?: {
|
|
470
|
+
text?: number;
|
|
471
|
+
image?: number;
|
|
472
|
+
properties?: number;
|
|
473
|
+
};
|
|
474
|
+
/** ISO 639-1 language code for text analysis */
|
|
475
|
+
language?: string;
|
|
476
|
+
fieldMappings?: Record<string, unknown>;
|
|
477
|
+
projectEmbeddingsConfig?: {
|
|
478
|
+
text?: EmbeddingTypeConfig;
|
|
479
|
+
image?: EmbeddingTypeConfig;
|
|
480
|
+
properties?: EmbeddingTypeConfig;
|
|
481
|
+
};
|
|
482
|
+
createdAt?: Date | null;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Supported languages for full-text search with their display names.
|
|
487
|
+
* Maps ISO 639-1 codes to human-readable language names.
|
|
488
|
+
*/
|
|
489
|
+
export const SUPPORTED_SEARCH_LANGUAGES: Record<string, string> = {
|
|
490
|
+
en: 'English',
|
|
491
|
+
zh: 'Chinese',
|
|
492
|
+
es: 'Spanish',
|
|
493
|
+
hi: 'Hindi',
|
|
494
|
+
ar: 'Arabic',
|
|
495
|
+
pt: 'Portuguese',
|
|
496
|
+
bn: 'Bengali',
|
|
497
|
+
ru: 'Russian',
|
|
498
|
+
ja: 'Japanese',
|
|
499
|
+
de: 'German',
|
|
500
|
+
fr: 'French',
|
|
501
|
+
ko: 'Korean',
|
|
502
|
+
it: 'Italian',
|
|
503
|
+
tr: 'Turkish',
|
|
504
|
+
vi: 'Vietnamese',
|
|
505
|
+
pl: 'Polish',
|
|
506
|
+
uk: 'Ukrainian',
|
|
507
|
+
nl: 'Dutch',
|
|
508
|
+
th: 'Thai',
|
|
509
|
+
el: 'Greek',
|
|
510
|
+
cs: 'Czech',
|
|
511
|
+
sv: 'Swedish',
|
|
512
|
+
ro: 'Romanian',
|
|
513
|
+
hu: 'Hungarian',
|
|
514
|
+
da: 'Danish',
|
|
515
|
+
fi: 'Finnish',
|
|
516
|
+
no: 'Norwegian',
|
|
517
|
+
he: 'Hebrew',
|
|
518
|
+
id: 'Indonesian',
|
|
519
|
+
fa: 'Persian',
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Result from fetching documents by IDs
|
|
524
|
+
*/
|
|
525
|
+
export interface FetchDocumentsByIdsResult {
|
|
526
|
+
documents: Array<{
|
|
527
|
+
id: string;
|
|
528
|
+
document: ElasticsearchDocumentData;
|
|
529
|
+
}>;
|
|
530
|
+
notFound: string[];
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Result from bulk delete
|
|
535
|
+
*/
|
|
536
|
+
export interface BulkDeleteResult {
|
|
537
|
+
successful: number;
|
|
538
|
+
failed: number;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Result from ensure index operation
|
|
543
|
+
*/
|
|
544
|
+
export interface EnsureIndexResult {
|
|
545
|
+
created: boolean;
|
|
546
|
+
recreated?: boolean;
|
|
547
|
+
existed?: boolean;
|
|
548
|
+
enabled?: boolean;
|
|
549
|
+
status?: string;
|
|
550
|
+
dimensions?: {
|
|
551
|
+
text?: number;
|
|
552
|
+
image?: number;
|
|
553
|
+
properties?: number;
|
|
554
|
+
};
|
|
555
|
+
language?: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Result from swap alias operation
|
|
560
|
+
*/
|
|
561
|
+
export interface SwapAliasResult {
|
|
562
|
+
swapped: boolean;
|
|
563
|
+
aliasName?: string;
|
|
564
|
+
newIndexName?: string;
|
|
565
|
+
reason?: string;
|
|
566
|
+
}
|
|
567
|
+
|
|
342
568
|
export interface ProjectIntegrationListEntry {
|
|
343
569
|
id: SupportedIntegrations;
|
|
344
570
|
enabled: boolean;
|
package/src/prompt.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { JSONObject } from "@llumiverse/common";
|
|
1
|
+
import type { JSONObject, JSONSchema } from "@llumiverse/common";
|
|
2
2
|
import { PromptRole } from "@llumiverse/common";
|
|
3
|
-
import type { JSONSchema4 } from "json-schema";
|
|
4
3
|
import { ProjectRef } from "./project.js";
|
|
5
4
|
|
|
6
5
|
export interface ChatPromptSchema {
|
|
@@ -49,7 +48,7 @@ export interface PromptTemplateRef {
|
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
export interface PromptTemplateRefWithSchema extends PromptTemplateRef {
|
|
52
|
-
inputSchema?:
|
|
51
|
+
inputSchema?: JSONSchema;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
export enum TemplateType {
|
|
@@ -61,7 +60,7 @@ export interface ExecutablePromptTemplate {
|
|
|
61
60
|
role: PromptRole;
|
|
62
61
|
content: string;
|
|
63
62
|
content_type: TemplateType;
|
|
64
|
-
inputSchema?:
|
|
63
|
+
inputSchema?: JSONSchema;
|
|
65
64
|
}
|
|
66
65
|
export interface PromptTemplate extends ExecutablePromptTemplate {
|
|
67
66
|
id: string;
|
|
@@ -127,6 +127,15 @@ export interface ConversationState {
|
|
|
127
127
|
* When a skill is called, its related tools are added to unlocked_tools.
|
|
128
128
|
*/
|
|
129
129
|
skill_tool_map?: Record<string, string[]>;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Current activity group ID for internal tool-execution progress messages.
|
|
133
|
+
* All updates emitted during one tool-execution cycle should share this ID.
|
|
134
|
+
*/
|
|
135
|
+
active_activity_group_id?: string;
|
|
136
|
+
|
|
137
|
+
/** LLM stop reason from the latest call (e.g., "stop", "length", "tool_use") */
|
|
138
|
+
finish_reason?: string;
|
|
130
139
|
}
|
|
131
140
|
|
|
132
141
|
/** Skill metadata collected at workflow start for upfront sandbox hydration */
|