@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
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { JSONSchema, ToolDefinition } from "@llumiverse/common";
|
|
2
|
+
import { CatalogInteractionRef } from "./interaction.js";
|
|
3
|
+
import { InCodeTypeDefinition } from "./store/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Additional navigation item for an app's UI configuration.
|
|
6
|
+
* Used in AppUIConfig.navigation to define sidebar navigation entries in CompositeApp shell contexts.
|
|
7
|
+
* Icon values are Lucide icon component names or SVG content strings.
|
|
8
|
+
*/
|
|
9
|
+
export interface AppUINavItem {
|
|
10
|
+
/** Display label */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Lucide icon name or SVG content string */
|
|
13
|
+
icon: string;
|
|
14
|
+
/** Route path relative to app base */
|
|
15
|
+
route: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AppUIConfig {
|
|
18
|
+
/**
|
|
19
|
+
* The source URL of the app. The src can be a template which contain
|
|
20
|
+
* a variable named `buildId` which will be replaced with the current build id.
|
|
21
|
+
* For example: `/plugins/vertesia-review-center-${buildId}`
|
|
22
|
+
*/
|
|
23
|
+
src: string;
|
|
24
|
+
/**
|
|
25
|
+
* The isolation strategy. If not specified it defaults to shadow
|
|
26
|
+
* - shadow - use Shadow DOM to fully isolate the plugin from the host.
|
|
27
|
+
* - css - use CSS processing (like prefixing or other isolation techniques). Ligther but plugins may conflict with the host
|
|
28
|
+
*/
|
|
29
|
+
isolation?: "shadow" | "css";
|
|
30
|
+
/**
|
|
31
|
+
* Navigation items for the app's sidebar UI.
|
|
32
|
+
* Only applicable for apps with UI capability in shell contexts (ie. CompositeApp shell).
|
|
33
|
+
*/
|
|
34
|
+
navigation?: AppUINavItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Where this app's UI can be displayed.
|
|
37
|
+
* - 'app_portal': Available in the main app portal (standalone)
|
|
38
|
+
* - 'composite_app': Available within a CompositeApp shell
|
|
39
|
+
* Defaults to ['app_portal', 'composite_app'] for new apps.
|
|
40
|
+
*/
|
|
41
|
+
available_in?: AppAvailableIn[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Authentication type for tool collections
|
|
45
|
+
*/
|
|
46
|
+
export type ToolCollectionAuthType = "oauth" | "other";
|
|
47
|
+
/**
|
|
48
|
+
* Tool collection type
|
|
49
|
+
*/
|
|
50
|
+
export type ToolCollectionType = "mcp" | "vertesia_sdk";
|
|
51
|
+
/**
|
|
52
|
+
* Base tool collection configuration
|
|
53
|
+
*/
|
|
54
|
+
interface BaseToolCollectionObject {
|
|
55
|
+
/**
|
|
56
|
+
* The URL endpoint for the tool collection
|
|
57
|
+
*/
|
|
58
|
+
url: string;
|
|
59
|
+
/**
|
|
60
|
+
* Optional authentication type required for this tool collection
|
|
61
|
+
*/
|
|
62
|
+
auth?: ToolCollectionAuthType;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* MCP tool collection configuration (requires name, description, and namespace)
|
|
66
|
+
*/
|
|
67
|
+
export interface MCPToolCollectionObject extends BaseToolCollectionObject {
|
|
68
|
+
type: "mcp";
|
|
69
|
+
/**
|
|
70
|
+
* Name for the tool collection.
|
|
71
|
+
* Used as an identifier for the collection (e.g., for OAuth authentication).
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
* Description for the tool collection.
|
|
76
|
+
* Helps users understand what tools this collection provides.
|
|
77
|
+
*/
|
|
78
|
+
description: string;
|
|
79
|
+
/**
|
|
80
|
+
* Prefix to use for tool names from this collection.
|
|
81
|
+
* Provides clean, readable tool names (e.g., "jira" instead of "https://mcp.atlassian.com/v1/mcp")
|
|
82
|
+
*/
|
|
83
|
+
namespace: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Vertesia SDK tool collection configuration
|
|
87
|
+
*/
|
|
88
|
+
export interface VertesiaSDKToolCollectionObject extends BaseToolCollectionObject {
|
|
89
|
+
type: "vertesia_sdk";
|
|
90
|
+
/**
|
|
91
|
+
* Optional namespace to use for tool names from this collection.
|
|
92
|
+
* If not provided, the tool server default will be used.
|
|
93
|
+
*/
|
|
94
|
+
namespace?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Optional name for the tool collection.
|
|
97
|
+
* If not provided, the tool server default will be used.
|
|
98
|
+
*/
|
|
99
|
+
name?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Optional description for the tool collection.
|
|
102
|
+
* If not provided, the tool server default will be used.
|
|
103
|
+
*/
|
|
104
|
+
description?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Tool collection configuration (object format)
|
|
108
|
+
*/
|
|
109
|
+
export type ToolCollectionObject = MCPToolCollectionObject | VertesiaSDKToolCollectionObject;
|
|
110
|
+
/**
|
|
111
|
+
* Tool collection can be either:
|
|
112
|
+
* - A string URL (legacy format, with "mcp:" prefix for MCP servers)
|
|
113
|
+
* - An object with url, type, and optional auth (new format)
|
|
114
|
+
*/
|
|
115
|
+
export type ToolCollection = string | ToolCollectionObject;
|
|
116
|
+
/**
|
|
117
|
+
* Normalizes a tool collection to the object format.
|
|
118
|
+
* Handles backward compatibility with string URLs.
|
|
119
|
+
*
|
|
120
|
+
* @param collection - String URL or ToolCollectionObject
|
|
121
|
+
* @returns Normalized ToolCollectionObject
|
|
122
|
+
*/
|
|
123
|
+
export declare function normalizeToolCollection(collection: ToolCollection): ToolCollectionObject;
|
|
124
|
+
/**
|
|
125
|
+
* Tool definition with optional activation control for agent exposure.
|
|
126
|
+
*/
|
|
127
|
+
export interface AgentToolDefinition extends ToolDefinition {
|
|
128
|
+
/**
|
|
129
|
+
* The tool execution URL. It can be an absolute URL or a path in which case the URL is obtained
|
|
130
|
+
* using the base URL of the tool server API. Ex: http://tool-server.com/api/
|
|
131
|
+
* Example of relative URLs: "tools/my-tool-collection" or "/api/tools/my-tool-collection"
|
|
132
|
+
*/
|
|
133
|
+
url?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The tool category if any - for UI purposes.
|
|
136
|
+
*/
|
|
137
|
+
category?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Whether this tool is available by default.
|
|
140
|
+
* - true/undefined: Tool is always available to agents
|
|
141
|
+
* - false: Tool is only available when activated by a skill's related_tools
|
|
142
|
+
*/
|
|
143
|
+
default?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* For skill tools (learn_*): list of related tool names that become available
|
|
146
|
+
* when this skill is called. Used for dynamic tool discovery.
|
|
147
|
+
*/
|
|
148
|
+
related_tools?: string[];
|
|
149
|
+
}
|
|
150
|
+
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types';
|
|
151
|
+
export type AppAvailableIn = 'app_portal' | 'composite_app';
|
|
152
|
+
export interface AppManifestData {
|
|
153
|
+
/**
|
|
154
|
+
* The name of the app, used as the id in the system.
|
|
155
|
+
* Must be in kebab case (e.g. my-app).
|
|
156
|
+
*/
|
|
157
|
+
name: string;
|
|
158
|
+
/**
|
|
159
|
+
* Visibility level of the app:
|
|
160
|
+
* - "public": visible to all accounts
|
|
161
|
+
* - "private": visible only to the owning account
|
|
162
|
+
* - "vertesia": visible only to Vertesia team members (any project)
|
|
163
|
+
*/
|
|
164
|
+
visibility: "public" | "private" | "vertesia";
|
|
165
|
+
title: string;
|
|
166
|
+
description: string;
|
|
167
|
+
publisher: string;
|
|
168
|
+
/**
|
|
169
|
+
* A svg icon for the app.
|
|
170
|
+
*/
|
|
171
|
+
icon?: string;
|
|
172
|
+
/**
|
|
173
|
+
* A color name to be used as the color of the app card (e.g. blue, red, green, etc.)
|
|
174
|
+
* If not specified a random color will be picked.
|
|
175
|
+
*/
|
|
176
|
+
color?: string;
|
|
177
|
+
status: "beta" | "stable" | "deprecated";
|
|
178
|
+
/**
|
|
179
|
+
* The UI configuration of the app. If not specified and the app "ui" is in the app capabilities
|
|
180
|
+
* then the ui configuration will be fetched from the endpoint property.
|
|
181
|
+
*/
|
|
182
|
+
ui?: AppUIConfig;
|
|
183
|
+
/**
|
|
184
|
+
* A list of tool collections endpoints to be used by this app.
|
|
185
|
+
* A tools collection endpoint is an URL which may end with a `?import` query string.
|
|
186
|
+
* If the `?import` query string is used the tool will be imported as a javascript module and not executed through a POST on the collections endpoint.
|
|
187
|
+
* This feature is for advanced composition of tools. Prefer using endpoint.
|
|
188
|
+
*/
|
|
189
|
+
tool_collections?: ToolCollection[];
|
|
190
|
+
/**
|
|
191
|
+
* An URL providing interactions definitions in JSON format.
|
|
192
|
+
* The URL must provide 2 endpoints:
|
|
193
|
+
* 1. GET URL - must return a JSON array with the list of interactions (as AppInteractionRef[])
|
|
194
|
+
* 2. GET URL/{interaction_name} - must return the full interaction definition for the specified interaction.
|
|
195
|
+
* This feature is for advanced composition of interactions. Prefer using endpoint.
|
|
196
|
+
*/
|
|
197
|
+
interactions?: string;
|
|
198
|
+
/**
|
|
199
|
+
* A JSON chema for the app installation settings.
|
|
200
|
+
* @deprecated Use endpoint to provide settings_schema instead
|
|
201
|
+
*/
|
|
202
|
+
settings_schema?: JSONSchema;
|
|
203
|
+
/** The following API is part of the second version of the manifest and deprectaes similar properties included directly in the manifest */
|
|
204
|
+
/**
|
|
205
|
+
* Describe the capabiltities of this app - which kind of contributions it provides.
|
|
206
|
+
*/
|
|
207
|
+
capabilities?: AppCapabilities[];
|
|
208
|
+
/**
|
|
209
|
+
* The app endpoint URL
|
|
210
|
+
* This URL should return a JSON object describing the contributions provided by the app.
|
|
211
|
+
* The object shape must satisfies AppPackage interface.
|
|
212
|
+
* The endpoint must support GET method and a `scope` parameter to filter which resources are included in the returned AppPackage:
|
|
213
|
+
* The supported scope values are:
|
|
214
|
+
* - ui
|
|
215
|
+
* - tools
|
|
216
|
+
* - interactions
|
|
217
|
+
* - types
|
|
218
|
+
* - settings
|
|
219
|
+
* - all (the default if no scope is provided)
|
|
220
|
+
* You can also use comma-separated values to combine scopes (e.g. "ui,tools").
|
|
221
|
+
*
|
|
222
|
+
* Example:
|
|
223
|
+
* - ?scope=ui,tools - returns only the UI configuration
|
|
224
|
+
*/
|
|
225
|
+
endpoint?: string;
|
|
226
|
+
}
|
|
227
|
+
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'settings' | 'widgets' | 'all';
|
|
228
|
+
export interface AppPackage {
|
|
229
|
+
/**
|
|
230
|
+
* The UI configuration of the app
|
|
231
|
+
*/
|
|
232
|
+
ui?: AppUIConfig;
|
|
233
|
+
/**
|
|
234
|
+
* A list of tools exposed by the app.
|
|
235
|
+
*/
|
|
236
|
+
tools?: AgentToolDefinition[];
|
|
237
|
+
/**
|
|
238
|
+
* A list of interactions exposed by the app
|
|
239
|
+
*/
|
|
240
|
+
interactions?: CatalogInteractionRef[];
|
|
241
|
+
/**
|
|
242
|
+
* A list of types.
|
|
243
|
+
*/
|
|
244
|
+
types?: InCodeTypeDefinition[];
|
|
245
|
+
/**
|
|
246
|
+
* Widgets provided by the app.
|
|
247
|
+
*/
|
|
248
|
+
widgets?: Record<string, AppWidgetInfo>;
|
|
249
|
+
/**
|
|
250
|
+
* A JSON chema for the app installation settings.
|
|
251
|
+
*/
|
|
252
|
+
settings_schema?: JSONSchema;
|
|
253
|
+
}
|
|
254
|
+
export interface AppWidgetInfo {
|
|
255
|
+
collection: string;
|
|
256
|
+
skill: string;
|
|
257
|
+
url: string;
|
|
258
|
+
}
|
|
259
|
+
export interface AppManifest extends AppManifestData {
|
|
260
|
+
id: string;
|
|
261
|
+
account: string;
|
|
262
|
+
created_at: string;
|
|
263
|
+
updated_at: string;
|
|
264
|
+
}
|
|
265
|
+
export interface AppInstallation {
|
|
266
|
+
id: string;
|
|
267
|
+
project: string;
|
|
268
|
+
manifest: string;
|
|
269
|
+
settings?: Record<string, any>;
|
|
270
|
+
created_at: string;
|
|
271
|
+
updated_at: string;
|
|
272
|
+
}
|
|
273
|
+
export interface AppInstallationWithManifest extends Omit<AppInstallation, 'manifest'> {
|
|
274
|
+
manifest: AppManifest;
|
|
275
|
+
}
|
|
276
|
+
export interface AppInstallationPayload {
|
|
277
|
+
app_id: string;
|
|
278
|
+
settings?: Record<string, any>;
|
|
279
|
+
}
|
|
280
|
+
export type AppInstallationKind = 'ui' | 'tools' | 'all';
|
|
281
|
+
/**
|
|
282
|
+
* A description of the tools provided by an app
|
|
283
|
+
*/
|
|
284
|
+
export interface AppToolCollection {
|
|
285
|
+
/**
|
|
286
|
+
* The collection name
|
|
287
|
+
*/
|
|
288
|
+
name: string;
|
|
289
|
+
/**
|
|
290
|
+
* Optional collection description
|
|
291
|
+
*/
|
|
292
|
+
description?: string;
|
|
293
|
+
/**
|
|
294
|
+
* the tools provided by this collection
|
|
295
|
+
*/
|
|
296
|
+
tools: {
|
|
297
|
+
name: string;
|
|
298
|
+
description?: string;
|
|
299
|
+
}[];
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Information about a tool and its associated app installation.
|
|
303
|
+
* Used to look up which app provides a specific tool.
|
|
304
|
+
*/
|
|
305
|
+
export interface ProjectToolInfo {
|
|
306
|
+
/**
|
|
307
|
+
* The tool name
|
|
308
|
+
*/
|
|
309
|
+
tool_name: string;
|
|
310
|
+
/**
|
|
311
|
+
* Optional tool description
|
|
312
|
+
*/
|
|
313
|
+
tool_description?: string;
|
|
314
|
+
/**
|
|
315
|
+
* The app name that provides this tool
|
|
316
|
+
*/
|
|
317
|
+
app_name: string;
|
|
318
|
+
/**
|
|
319
|
+
* The app installation ID
|
|
320
|
+
*/
|
|
321
|
+
app_install_id: string;
|
|
322
|
+
/**
|
|
323
|
+
* The app installation settings.
|
|
324
|
+
* Only included for agent tokens, not user tokens (security: may contain API keys).
|
|
325
|
+
*/
|
|
326
|
+
settings?: Record<string, any>;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* OAuth authentication status for an MCP tool collection
|
|
330
|
+
*/
|
|
331
|
+
export interface OAuthAuthStatus {
|
|
332
|
+
collection_name: string;
|
|
333
|
+
authenticated: boolean;
|
|
334
|
+
mcp_server_url: string;
|
|
335
|
+
expires_at?: string;
|
|
336
|
+
scope?: string;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Response from OAuth authorization endpoint
|
|
340
|
+
*/
|
|
341
|
+
export interface OAuthAuthorizeResponse {
|
|
342
|
+
authorization_url: string;
|
|
343
|
+
state: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Response from OAuth metadata endpoint
|
|
347
|
+
*/
|
|
348
|
+
export interface OAuthMetadataResponse {
|
|
349
|
+
collection_name: string;
|
|
350
|
+
mcp_server_url: string;
|
|
351
|
+
metadata: any;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* App navigation item display overrides.
|
|
355
|
+
* Allows customizing individual nav items for an app installation within the CompositeApp shell.
|
|
356
|
+
*/
|
|
357
|
+
export interface CompositeAppNavItemOverride {
|
|
358
|
+
/** Used as identifier to match the nav item to override -- does not change route path */
|
|
359
|
+
route: string;
|
|
360
|
+
/** Hide this nav item from the sidebar */
|
|
361
|
+
hidden?: boolean;
|
|
362
|
+
/** Override the displayed nav item label */
|
|
363
|
+
label?: string;
|
|
364
|
+
/** Override the displayed nav item icon (Lucide icon name or SVG content string) */
|
|
365
|
+
icon?: string;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Configuration entry for an individual app in the CompositeApp shell.
|
|
369
|
+
* References an app installation by name and allows customizing its appearance.
|
|
370
|
+
*/
|
|
371
|
+
export interface CompositeAppEntry {
|
|
372
|
+
/** App installation name (must match an installed app) */
|
|
373
|
+
appName: string;
|
|
374
|
+
/** Override the label displayed for the app */
|
|
375
|
+
labelOverride?: string;
|
|
376
|
+
/** Override the icon displayed for the app (Lucide icon name or SVG content string) */
|
|
377
|
+
iconOverride?: string;
|
|
378
|
+
/** Overrides for navigation items provided by the app */
|
|
379
|
+
navigationOverrides?: CompositeAppNavItemOverride[];
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Logo overrides for the CompositeApp shell header.
|
|
383
|
+
* When provided, these URLs replace the default Vertesia logo.
|
|
384
|
+
*/
|
|
385
|
+
export interface CompositeAppLogoOverrides {
|
|
386
|
+
/** URL for light mode logo (overrides default Vertesia logo) */
|
|
387
|
+
lightModeUrl?: string;
|
|
388
|
+
/** URL for dark mode logo (overrides default Vertesia logo) */
|
|
389
|
+
darkModeUrl?: string;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Message banner overrides for the shell header.
|
|
393
|
+
*/
|
|
394
|
+
export type CompositeAppMessageStyle = 'foreground' | 'info' | 'success' | 'attention' | 'destructive';
|
|
395
|
+
export interface CompositeAppMessageOverrides {
|
|
396
|
+
/** Message text to display */
|
|
397
|
+
text?: string;
|
|
398
|
+
/** Whether the message is visible (defaults to true) */
|
|
399
|
+
visible?: boolean;
|
|
400
|
+
/** Text color style. Uses semantic colors */
|
|
401
|
+
style?: CompositeAppMessageStyle;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Switcher visibility overrides for the CompositeApp header.
|
|
405
|
+
*/
|
|
406
|
+
export interface CompositeAppSwitchersOverrides {
|
|
407
|
+
/** Whether to show the organization switcher (defaults to true) */
|
|
408
|
+
showOrganization?: boolean;
|
|
409
|
+
/** Whether to show the project switcher (defaults to true) */
|
|
410
|
+
showProject?: boolean;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Card display overrides for the CompositeApp in the App Portal.
|
|
414
|
+
* Similar to AppManifest display properties, but specific to the CompositeApp card.
|
|
415
|
+
* Allows customers to customize the app portal card (not otherwise possible if using a
|
|
416
|
+
* shared, Vertesia-managed manifest across accounts).
|
|
417
|
+
*/
|
|
418
|
+
export interface CompositeAppCardOverrides {
|
|
419
|
+
/** Whether to show the CompositeApp card in App Portal (default: false) */
|
|
420
|
+
visible?: boolean;
|
|
421
|
+
/** Override the card label (default: "Composite App") */
|
|
422
|
+
label?: string;
|
|
423
|
+
/** Override the card description */
|
|
424
|
+
description?: string;
|
|
425
|
+
/** Override the card icon (Lucide icon name or SVG content string) */
|
|
426
|
+
icon?: string;
|
|
427
|
+
/** Override the card color (e.g., "blue", "red", "purple") */
|
|
428
|
+
color?: string;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* CompositeApp shell configuration.
|
|
432
|
+
* This is the main configuration interface for storing CompositeApp settings.
|
|
433
|
+
* Used as the MongoDB model for persisting CompositeApp configurations.
|
|
434
|
+
*/
|
|
435
|
+
export interface CompositeAppConfig {
|
|
436
|
+
/**
|
|
437
|
+
* The unique identifier for this CompositeApp configuration
|
|
438
|
+
* Undefined if the configuration doesn't exists yet.
|
|
439
|
+
*/
|
|
440
|
+
id?: string;
|
|
441
|
+
/** The project this CompositeApp belongs to */
|
|
442
|
+
project: string;
|
|
443
|
+
/** Card display overrides (includes visibility) */
|
|
444
|
+
card?: CompositeAppCardOverrides;
|
|
445
|
+
/** Optional logo overrides (replaces default Vertesia logo) */
|
|
446
|
+
logo?: CompositeAppLogoOverrides;
|
|
447
|
+
/** Optional message banner overrides */
|
|
448
|
+
message?: CompositeAppMessageOverrides;
|
|
449
|
+
/** Optional switcher visibility overrides */
|
|
450
|
+
switchers?: CompositeAppSwitchersOverrides;
|
|
451
|
+
/** List of apps to include in the CompositeApp */
|
|
452
|
+
apps: CompositeAppEntry[];
|
|
453
|
+
}
|
|
454
|
+
export type CompositeAppConfigPayload = Partial<Omit<CompositeAppConfig, 'id' | 'project'>>;
|
|
455
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAA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oC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;MAGE;IACF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,wCAAwC;IACxC,OAAO,CAAC,EAAE,4BAA4B,CAAC;IACvC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,8BAA8B,CAAC;IAC3C,kDAAkD;IAClD,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for ask_user tool UX configuration.
|
|
3
|
+
* These types enable the model to transmit structured UX parameters
|
|
4
|
+
* that render as interactive widgets instead of plain text.
|
|
5
|
+
*/
|
|
6
|
+
/** Option for user selection in ask_user widget */
|
|
7
|
+
export interface AskUserOption {
|
|
8
|
+
/** Unique identifier returned when this option is selected */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Display text for the option */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Optional tooltip/description shown on hover */
|
|
13
|
+
description?: string;
|
|
14
|
+
}
|
|
15
|
+
/** UX configuration for ask_user messages */
|
|
16
|
+
export interface AskUserUxConfig {
|
|
17
|
+
/** Predefined options for the user to select from */
|
|
18
|
+
options?: AskUserOption[];
|
|
19
|
+
/** Visual style variant */
|
|
20
|
+
variant?: 'default' | 'warning' | 'info' | 'success';
|
|
21
|
+
/** Allow selecting multiple options (renders checkboxes instead of buttons) */
|
|
22
|
+
multiSelect?: boolean;
|
|
23
|
+
/** Show text input for free-form response */
|
|
24
|
+
allowFreeResponse?: boolean;
|
|
25
|
+
/** Placeholder text for free-form input */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Message details structure for REQUEST_INPUT messages with UX config */
|
|
29
|
+
export interface AskUserMessageDetails {
|
|
30
|
+
/** UX configuration for rendering the ask_user widget */
|
|
31
|
+
ux?: AskUserUxConfig;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ask-user.d.ts","sourceRoot":"","sources":["../../src/ask-user.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC1B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC5B,qDAAqD;IACrD,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IACrD,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IAClC,yDAAyD;IACzD,EAAE,CAAC,EAAE,eAAe,CAAC;CACxB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type AuditAction = 'create' | 'update' | 'delete' | 'bulk_update' | 'bulk_delete' | 'attach' | 'detach' | 'publish' | 'unpublish';
|
|
2
|
+
export interface AuditTrailEvent {
|
|
3
|
+
event_type: 'audit';
|
|
4
|
+
action: AuditAction;
|
|
5
|
+
resource_type: string;
|
|
6
|
+
resource_id: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
request_id: string;
|
|
9
|
+
status: number;
|
|
10
|
+
success: boolean;
|
|
11
|
+
principal_id: string | null;
|
|
12
|
+
principal_type: string | null;
|
|
13
|
+
principal_user_id: string | null;
|
|
14
|
+
roles: string[];
|
|
15
|
+
account_id: string | null;
|
|
16
|
+
project_id: string | null;
|
|
17
|
+
tenant_id: string | null;
|
|
18
|
+
account_name: string | null;
|
|
19
|
+
project_name: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface AuditTrailQuery {
|
|
22
|
+
/** Filter by action types */
|
|
23
|
+
actions?: AuditAction[];
|
|
24
|
+
/** Filter by resource types */
|
|
25
|
+
resourceTypes?: string[];
|
|
26
|
+
/** Filter by resource ID */
|
|
27
|
+
resourceId?: string;
|
|
28
|
+
/** Filter by principal ID (matches principal_id column — API keys, service accounts) */
|
|
29
|
+
principalId?: string;
|
|
30
|
+
/** Filter by principal user ID (matches principal_user_id column — human users) */
|
|
31
|
+
principalUserId?: string;
|
|
32
|
+
/** Filter by project ID */
|
|
33
|
+
projectId?: string;
|
|
34
|
+
/** Start time (ISO string) */
|
|
35
|
+
from?: string;
|
|
36
|
+
/** End time (ISO string) */
|
|
37
|
+
to?: string;
|
|
38
|
+
/** Pagination: number of items to return (default 50, max 200) */
|
|
39
|
+
limit?: number;
|
|
40
|
+
/** Pagination: offset */
|
|
41
|
+
offset?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface AuditTrailResponse {
|
|
44
|
+
events: AuditTrailEvent[];
|
|
45
|
+
/** Whether there are more events after this page */
|
|
46
|
+
hasNext: boolean;
|
|
47
|
+
limit: number;
|
|
48
|
+
offset: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-trail.d.ts","sourceRoot":"","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IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EmailChannel, UserChannel } from "./interaction.js";
|
|
2
|
+
/**
|
|
3
|
+
* Find the email channel from a list of channels.
|
|
4
|
+
* @returns The email channel if found, undefined otherwise
|
|
5
|
+
*/
|
|
6
|
+
export declare function findEmailChannel(channels?: UserChannel[]): EmailChannel | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Check if email channel is enabled in the channels list.
|
|
9
|
+
*/
|
|
10
|
+
export declare function hasEmailChannel(channels?: UserChannel[]): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Update the email channel in a channels array (immutable).
|
|
13
|
+
* Returns a new array with the updated channel.
|
|
14
|
+
* If no email channel exists and to_email is provided, creates one.
|
|
15
|
+
*/
|
|
16
|
+
export declare function updateEmailChannel(channels: UserChannel[] | undefined, updates: Partial<Omit<EmailChannel, "type">>): UserChannel[];
|
|
17
|
+
/**
|
|
18
|
+
* Update email threading info after sending or receiving an email.
|
|
19
|
+
* Adds the new messageId to references and updates in_reply_to.
|
|
20
|
+
*/
|
|
21
|
+
export declare function updateEmailThreading(channels: UserChannel[] | undefined, messageId: string, subject?: string): UserChannel[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE7E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,GAAG,YAAY,GAAG,SAAS,CAEnF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EACnC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,GAC7C,WAAW,EAAE,CAoBf;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EACnC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACjB,WAAW,EAAE,CAcf"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface FindPayload {
|
|
2
|
+
query: Record<string, any>;
|
|
3
|
+
offset?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
select?: string;
|
|
6
|
+
all_revisions?: boolean;
|
|
7
|
+
from_root?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GenericCommandResponse {
|
|
10
|
+
status: string;
|
|
11
|
+
message: string;
|
|
12
|
+
err?: any;
|
|
13
|
+
details?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface BulkOperationPayload {
|
|
16
|
+
/**
|
|
17
|
+
* The operation name
|
|
18
|
+
*/
|
|
19
|
+
name: "change_type" | "delete" | "start_workflow" | "update";
|
|
20
|
+
/**
|
|
21
|
+
* The IDs of the objects to operate on
|
|
22
|
+
*/
|
|
23
|
+
ids: string[];
|
|
24
|
+
/**
|
|
25
|
+
* The operation parameters.
|
|
26
|
+
*/
|
|
27
|
+
params: Record<string, any>;
|
|
28
|
+
}
|
|
29
|
+
export interface BulkOperationResult {
|
|
30
|
+
status: "in_progress" | "completed" | "failed";
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,IAAI,EAAE,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,CAAC;IAE7D;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAC;CAClD"}
|