@vertesia/common 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/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 +481 -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 +965 -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 +4 -6
- package/src/apikey.ts +1 -0
- package/src/apps.ts +193 -2
- package/src/audit-trail.ts +61 -0
- package/src/index.ts +1 -0
- package/src/integrations.ts +10 -0
- package/src/interaction.ts +12 -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
|
*/
|
|
@@ -158,7 +190,8 @@ export interface AgentToolDefinition extends ToolDefinition {
|
|
|
158
190
|
related_tools?: string[];
|
|
159
191
|
}
|
|
160
192
|
|
|
161
|
-
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types';
|
|
193
|
+
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types' | 'templates';
|
|
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' | 'templates' | 'settings' | 'widgets' | 'all';
|
|
250
283
|
export interface AppPackage {
|
|
251
284
|
/**
|
|
252
285
|
* The UI configuration of the app
|
|
@@ -268,12 +301,52 @@ export interface AppPackage {
|
|
|
268
301
|
*/
|
|
269
302
|
types?: InCodeTypeDefinition[];
|
|
270
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Templates provided by the app.
|
|
306
|
+
*/
|
|
307
|
+
templates?: RenderingTemplateDefinitionRef[];
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Widgets provided by the app.
|
|
311
|
+
*/
|
|
312
|
+
widgets?: Record<string, AppWidgetInfo>;
|
|
313
|
+
|
|
271
314
|
/**
|
|
272
315
|
* A JSON chema for the app installation settings.
|
|
273
316
|
*/
|
|
274
317
|
settings_schema?: JSONSchema;
|
|
275
318
|
}
|
|
276
319
|
|
|
320
|
+
export interface AppWidgetInfo {
|
|
321
|
+
collection: string;
|
|
322
|
+
skill: string;
|
|
323
|
+
url: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export interface RenderingTemplateDefinition {
|
|
327
|
+
/** Unique template id: "collection:name" */
|
|
328
|
+
id: string;
|
|
329
|
+
/** Unique template name (kebab-case) */
|
|
330
|
+
name: string;
|
|
331
|
+
/** Display title */
|
|
332
|
+
title?: string;
|
|
333
|
+
/** Short description */
|
|
334
|
+
description: string;
|
|
335
|
+
/** Template type */
|
|
336
|
+
type: 'presentation' | 'document';
|
|
337
|
+
/** Tags for categorization */
|
|
338
|
+
tags?: string[];
|
|
339
|
+
/** Absolute paths to asset files */
|
|
340
|
+
assets: string[];
|
|
341
|
+
/** The template instructions (markdown) */
|
|
342
|
+
instructions: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type RenderingTemplateDefinitionRef = Omit<RenderingTemplateDefinition, 'instructions'> & {
|
|
346
|
+
/** Absolute API path to fetch the full template definition */
|
|
347
|
+
path: string;
|
|
348
|
+
};
|
|
349
|
+
|
|
277
350
|
export interface AppManifest extends AppManifestData {
|
|
278
351
|
id: string;
|
|
279
352
|
account: string;
|
|
@@ -380,3 +453,121 @@ export interface OAuthMetadataResponse {
|
|
|
380
453
|
mcp_server_url: string;
|
|
381
454
|
metadata: any;
|
|
382
455
|
}
|
|
456
|
+
|
|
457
|
+
// ============================================================================
|
|
458
|
+
// CompositeApp Shell Configuration Types
|
|
459
|
+
// These types define the configuration for a CompositeApp shell that combines
|
|
460
|
+
// multiple apps into a unified experience with shared navigation and branding.
|
|
461
|
+
// ============================================================================
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* App navigation item display overrides.
|
|
465
|
+
* Allows customizing individual nav items for an app installation within the CompositeApp shell.
|
|
466
|
+
*/
|
|
467
|
+
export interface CompositeAppNavItemOverride {
|
|
468
|
+
/** Used as identifier to match the nav item to override -- does not change route path */
|
|
469
|
+
route: string;
|
|
470
|
+
/** Hide this nav item from the sidebar */
|
|
471
|
+
hidden?: boolean;
|
|
472
|
+
/** Override the displayed nav item label */
|
|
473
|
+
label?: string;
|
|
474
|
+
/** Override the displayed nav item icon (Lucide icon name or SVG content string) */
|
|
475
|
+
icon?: string;
|
|
476
|
+
//TODO: Set permissions for routes
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Configuration entry for an individual app in the CompositeApp shell.
|
|
481
|
+
* References an app installation by name and allows customizing its appearance.
|
|
482
|
+
*/
|
|
483
|
+
export interface CompositeAppEntry {
|
|
484
|
+
/** App installation name (must match an installed app) */
|
|
485
|
+
appName: string;
|
|
486
|
+
/** Override the label displayed for the app */
|
|
487
|
+
labelOverride?: string;
|
|
488
|
+
/** Override the icon displayed for the app (Lucide icon name or SVG content string) */
|
|
489
|
+
iconOverride?: string;
|
|
490
|
+
/** Overrides for navigation items provided by the app */
|
|
491
|
+
navigationOverrides?: CompositeAppNavItemOverride[];
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Logo overrides for the CompositeApp shell header.
|
|
496
|
+
* When provided, these URLs replace the default Vertesia logo.
|
|
497
|
+
*/
|
|
498
|
+
export interface CompositeAppLogoOverrides {
|
|
499
|
+
/** URL for light mode logo (overrides default Vertesia logo) */
|
|
500
|
+
lightModeUrl?: string;
|
|
501
|
+
/** URL for dark mode logo (overrides default Vertesia logo) */
|
|
502
|
+
darkModeUrl?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Message banner overrides for the shell header.
|
|
508
|
+
*/
|
|
509
|
+
export type CompositeAppMessageStyle = 'foreground' | 'info' | 'success' | 'attention' | 'destructive';
|
|
510
|
+
export interface CompositeAppMessageOverrides {
|
|
511
|
+
/** Message text to display */
|
|
512
|
+
text?: string;
|
|
513
|
+
/** Whether the message is visible (defaults to true) */
|
|
514
|
+
visible?: boolean;
|
|
515
|
+
/** Text color style. Uses semantic colors */
|
|
516
|
+
style?: CompositeAppMessageStyle;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Switcher visibility overrides for the CompositeApp header.
|
|
521
|
+
*/
|
|
522
|
+
export interface CompositeAppSwitchersOverrides {
|
|
523
|
+
/** Whether to show the organization switcher (defaults to true) */
|
|
524
|
+
showOrganization?: boolean;
|
|
525
|
+
/** Whether to show the project switcher (defaults to true) */
|
|
526
|
+
showProject?: boolean;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Card display overrides for the CompositeApp in the App Portal.
|
|
531
|
+
* Similar to AppManifest display properties, but specific to the CompositeApp card.
|
|
532
|
+
* Allows customers to customize the app portal card (not otherwise possible if using a
|
|
533
|
+
* shared, Vertesia-managed manifest across accounts).
|
|
534
|
+
*/
|
|
535
|
+
export interface CompositeAppCardOverrides {
|
|
536
|
+
/** Whether to show the CompositeApp card in App Portal (default: false) */
|
|
537
|
+
visible?: boolean;
|
|
538
|
+
/** Override the card label (default: "Composite App") */
|
|
539
|
+
label?: string;
|
|
540
|
+
/** Override the card description */
|
|
541
|
+
description?: string;
|
|
542
|
+
/** Override the card icon (Lucide icon name or SVG content string) */
|
|
543
|
+
icon?: string;
|
|
544
|
+
/** Override the card color (e.g., "blue", "red", "purple") */
|
|
545
|
+
color?: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* CompositeApp shell configuration.
|
|
550
|
+
* This is the main configuration interface for storing CompositeApp settings.
|
|
551
|
+
* Used as the MongoDB model for persisting CompositeApp configurations.
|
|
552
|
+
*/
|
|
553
|
+
export interface CompositeAppConfig {
|
|
554
|
+
/**
|
|
555
|
+
* The unique identifier for this CompositeApp configuration
|
|
556
|
+
* Undefined if the configuration doesn't exists yet.
|
|
557
|
+
*/
|
|
558
|
+
id?: string;
|
|
559
|
+
/** The project this CompositeApp belongs to */
|
|
560
|
+
project: string;
|
|
561
|
+
/** Card display overrides (includes visibility) */
|
|
562
|
+
card?: CompositeAppCardOverrides;
|
|
563
|
+
/** Optional logo overrides (replaces default Vertesia logo) */
|
|
564
|
+
logo?: CompositeAppLogoOverrides;
|
|
565
|
+
/** Optional message banner overrides */
|
|
566
|
+
message?: CompositeAppMessageOverrides;
|
|
567
|
+
/** Optional switcher visibility overrides */
|
|
568
|
+
switchers?: CompositeAppSwitchersOverrides;
|
|
569
|
+
/** List of apps to include in the CompositeApp */
|
|
570
|
+
apps: CompositeAppEntry[];
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
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
|
|
|
@@ -32,6 +31,7 @@ export interface InteractionExecutionError {
|
|
|
32
31
|
code: string;
|
|
33
32
|
message: string;
|
|
34
33
|
data?: any;
|
|
34
|
+
retryable?: boolean;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -41,8 +41,8 @@ export interface InteractionExecutionError {
|
|
|
41
41
|
export interface ConversationStripOptions {
|
|
42
42
|
/**
|
|
43
43
|
* 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
|
|
44
|
+
* - 0: Strip images immediately after each turn
|
|
45
|
+
* - N > 0: Keep images for N turns before stripping (default: 5)
|
|
46
46
|
* - Infinity: Never strip images
|
|
47
47
|
*/
|
|
48
48
|
images_after_turns?: number;
|
|
@@ -328,7 +328,7 @@ export const InteractionRefWithSchemaPopulate =
|
|
|
328
328
|
`${InteractionRefPopulate} result_schema`;
|
|
329
329
|
|
|
330
330
|
export interface InteractionRefWithSchema extends Omit<InteractionRef, "prompts"> {
|
|
331
|
-
result_schema?:
|
|
331
|
+
result_schema?: JSONSchema;
|
|
332
332
|
prompts?: PromptSegmentDef<PromptTemplateRefWithSchema>[];
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -401,7 +401,7 @@ export interface InteractionData {
|
|
|
401
401
|
project: string | ProjectRef;
|
|
402
402
|
tags: string[];
|
|
403
403
|
agent_runner_options?: AgentRunnerOptions;
|
|
404
|
-
result_schema?:
|
|
404
|
+
result_schema?: JSONSchema | SchemaRef;
|
|
405
405
|
environment?: string | ExecutionEnvironmentRef;
|
|
406
406
|
model?: string;
|
|
407
407
|
model_options?: ModelOptions;
|
|
@@ -418,7 +418,7 @@ export interface Interaction extends InteractionData {
|
|
|
418
418
|
visibility: InteractionVisibility;
|
|
419
419
|
version: number;
|
|
420
420
|
test_data?: JSONObject;
|
|
421
|
-
interaction_schema?:
|
|
421
|
+
interaction_schema?: JSONSchema | SchemaRef;
|
|
422
422
|
cache_policy?: CachePolicy;
|
|
423
423
|
prompts: PromptSegmentDef[];
|
|
424
424
|
// only for drafts - when it was last published
|
|
@@ -468,7 +468,7 @@ export interface InteractionUpdatePayload
|
|
|
468
468
|
"result_schema" | "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project"
|
|
469
469
|
>
|
|
470
470
|
> {
|
|
471
|
-
result_schema?:
|
|
471
|
+
result_schema?: JSONSchema | null;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
export interface InteractionPublishPayload {
|
|
@@ -490,7 +490,7 @@ export interface InteractionExecutionPayload {
|
|
|
490
490
|
data?: Record<string, any> | `memory:${string}`;
|
|
491
491
|
config?: InteractionExecutionConfiguration;
|
|
492
492
|
//Use null to explicitly state no schema, will not fallback to interaction schema
|
|
493
|
-
result_schema?:
|
|
493
|
+
result_schema?: JSONSchema | null;
|
|
494
494
|
stream?: boolean;
|
|
495
495
|
do_validate?: boolean;
|
|
496
496
|
tags?: string | string[]; // tags to be added to the execution run
|
|
@@ -705,7 +705,7 @@ export interface AsyncConversationExecutionPayload extends AsyncExecutionPayload
|
|
|
705
705
|
/**
|
|
706
706
|
* The token threshold in thousands (K) for creating checkpoints.
|
|
707
707
|
* If total tokens exceed this value, a checkpoint will be created.
|
|
708
|
-
* If not specified, default
|
|
708
|
+
* If not specified, the default is computed from the selected model context window (75%).
|
|
709
709
|
*/
|
|
710
710
|
checkpoint_tokens?: number;
|
|
711
711
|
|
|
@@ -926,8 +926,8 @@ export interface BaseExecutionRun<P = any> {
|
|
|
926
926
|
interaction_code?: string; // Interaction code name in case of in-code interaction (not stored in the DB as an Interaction document)
|
|
927
927
|
/** Environment reference - populated with full object in API responses */
|
|
928
928
|
environment: ExecutionEnvironmentRef;
|
|
929
|
-
modelId
|
|
930
|
-
result_schema:
|
|
929
|
+
modelId?: string; //Can be undefined for virtual environments. In most cases should be defined.
|
|
930
|
+
result_schema: JSONSchema;
|
|
931
931
|
ttl: number;
|
|
932
932
|
status: ExecutionRunStatus;
|
|
933
933
|
finish_reason?: string;
|
|
@@ -1186,4 +1186,4 @@ export interface BuiltinToolsCatalogResponse {
|
|
|
1186
1186
|
* Total number of tools in the catalog
|
|
1187
1187
|
*/
|
|
1188
1188
|
total_tools: number;
|
|
1189
|
-
}
|
|
1189
|
+
}
|
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;
|