@vertesia/common 0.24.0-dev.202601221707
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/LICENSE +13 -0
- package/README.md +53 -0
- 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 +16 -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/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 +55 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/integrations.js +14 -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 +107 -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/index.js +30 -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/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 +166 -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 +241 -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 +114 -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 +8 -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 +13 -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/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 +39 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/integrations.js +11 -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 +102 -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/index.js +14 -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/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 +160 -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 +228 -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 +107 -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 +5 -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 +98 -0
- package/lib/types/apikey.d.ts.map +1 -0
- package/lib/types/apps.d.ts +236 -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/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 +39 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integrations.d.ts +60 -0
- package/lib/types/integrations.d.ts.map +1 -0
- package/lib/types/interaction.d.ts +958 -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 +179 -0
- package/lib/types/project.d.ts.map +1 -0
- package/lib/types/prompt.d.ts +78 -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 +120 -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 +244 -0
- package/lib/types/store/dsl-workflow.d.ts.map +1 -0
- package/lib/types/store/index.d.ts +13 -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/schedule.d.ts +182 -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 +407 -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 +730 -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 +116 -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 +9 -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 +3 -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 +54 -0
- package/src/Progress.ts +57 -0
- package/src/access-control.ts +98 -0
- package/src/analytics.ts +106 -0
- package/src/apikey.ts +116 -0
- package/src/apps.ts +296 -0
- package/src/ask-user.ts +35 -0
- package/src/channels.ts +70 -0
- package/src/common.ts +37 -0
- package/src/data-platform.ts +976 -0
- package/src/email.ts +80 -0
- package/src/environment.ts +137 -0
- package/src/facets.ts +44 -0
- package/src/group.ts +26 -0
- package/src/index.ts +40 -0
- package/src/integrations.ts +72 -0
- package/src/interaction.ts +1182 -0
- package/src/json-schema.ts +7 -0
- package/src/json.ts +4 -0
- package/src/meters.ts +30 -0
- package/src/model_utility.ts +1 -0
- package/src/payload.ts +83 -0
- package/src/pending-asks.ts +106 -0
- package/src/project.ts +263 -0
- package/src/prompt.ts +103 -0
- package/src/query.ts +137 -0
- package/src/rate-limiter.ts +34 -0
- package/src/refs.ts +30 -0
- package/src/runs.ts +36 -0
- package/src/skill.ts +90 -0
- package/src/store/activity-catalog.ts +44 -0
- package/src/store/collections.ts +87 -0
- package/src/store/common.ts +30 -0
- package/src/store/conversation-state.ts +146 -0
- package/src/store/doc-analyzer.ts +161 -0
- package/src/store/dsl-workflow.ts +288 -0
- package/src/store/index.ts +14 -0
- package/src/store/ms.d.ts +11 -0
- package/src/store/object-types.ts +127 -0
- package/src/store/schedule.ts +238 -0
- package/src/store/signals.ts +25 -0
- package/src/store/store.ts +579 -0
- package/src/store/temporalio.ts +54 -0
- package/src/store/worker.ts +19 -0
- package/src/store/workflow.test.ts +578 -0
- package/src/store/workflow.ts +973 -0
- package/src/sts-token-types.ts +117 -0
- package/src/tenant.ts +10 -0
- package/src/tool-execution.ts +47 -0
- package/src/training.ts +44 -0
- package/src/transient-tokens.ts +30 -0
- package/src/user.ts +153 -0
- package/src/utils/auth.ts +12 -0
- package/src/utils/schemas.ts +108 -0
- package/src/utils/type-helpers.ts +6 -0
- package/src/versions.ts +3 -0
- package/src/workflow-analytics.ts +925 -0
- package/tsconfig.dist.json +20 -0
package/src/json.ts
ADDED
package/src/meters.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BillingMethod } from "./user.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface MeterAdjustment {
|
|
5
|
+
meter: string;
|
|
6
|
+
value: string;
|
|
7
|
+
identifier?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export interface AdjustMetersMeterWorkflowParams {
|
|
12
|
+
adjustments: MeterAdjustment[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum MeterNames {
|
|
16
|
+
analyzed_pages = 'analyzed_pages',
|
|
17
|
+
extracted_tables = 'extracted_tables',
|
|
18
|
+
analyzed_images = 'analyzed_images',
|
|
19
|
+
input_token_used = 'input_token_used',
|
|
20
|
+
output_token_used = 'output_token_used',
|
|
21
|
+
task_run = 'task_run',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export interface StripeBillingStatusResponse {
|
|
26
|
+
status: 'enabled' | 'disabled',
|
|
27
|
+
billing_method: BillingMethod | null,
|
|
28
|
+
portal_url?: string,
|
|
29
|
+
reason?: string
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { supportsToolUse } from "@llumiverse/common";
|
package/src/payload.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { FacetSpec } from "./facets.js";
|
|
2
|
+
import {
|
|
3
|
+
ComplexCollectionSearchQuery,
|
|
4
|
+
ComplexSearchQuery,
|
|
5
|
+
InteractionSearchQuery,
|
|
6
|
+
ObjectSearchQuery,
|
|
7
|
+
ObjectTypeSearchQuery,
|
|
8
|
+
PromptSearchQuery,
|
|
9
|
+
RunSearchQuery,
|
|
10
|
+
SimpleSearchQuery
|
|
11
|
+
} from "./query.js";
|
|
12
|
+
|
|
13
|
+
export interface SearchPayload {
|
|
14
|
+
facets?: FacetSpec[];
|
|
15
|
+
/**
|
|
16
|
+
* If the facets should be limited to the current page of results.
|
|
17
|
+
* Defaults to false. When false, the facets are independent of the search results page.
|
|
18
|
+
*/
|
|
19
|
+
limit_facets?: boolean;
|
|
20
|
+
query?: SimpleSearchQuery;
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
select?: string;
|
|
24
|
+
all_revisions?: boolean;
|
|
25
|
+
from_root?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ComputeFacetPayload {
|
|
29
|
+
facets: FacetSpec[];
|
|
30
|
+
query?: SimpleSearchQuery;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface InteractionSearchPayload extends SearchPayload {
|
|
34
|
+
query?: InteractionSearchQuery;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ObjectSearchPayload extends SearchPayload {
|
|
38
|
+
query?: ObjectSearchQuery;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ObjectTypeSearchPayload extends SearchPayload {
|
|
42
|
+
query?: ObjectTypeSearchQuery;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface PromptSearchPayload extends SearchPayload {
|
|
46
|
+
query?: PromptSearchQuery;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface RunSearchPayload extends SearchPayload {
|
|
50
|
+
query?: RunSearchQuery;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ComputeCollectionFacetPayload extends Omit<ComputeFacetPayload, 'query'> {
|
|
54
|
+
query?: ComplexCollectionSearchQuery;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ComputeInteractionFacetPayload extends ComputeFacetPayload {
|
|
58
|
+
query?: InteractionSearchQuery;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ComputeObjectFacetPayload extends ComputeFacetPayload {
|
|
62
|
+
query?: ComplexSearchQuery;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ComputePromptFacetPayload extends ComputeFacetPayload {
|
|
66
|
+
query?: PromptSearchQuery;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ComputeRunFacetPayload extends ComputeFacetPayload {
|
|
70
|
+
query?: RunSearchQuery;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ExportPropertiesPayload {
|
|
74
|
+
objectIds: string[];
|
|
75
|
+
type: string;
|
|
76
|
+
query?: ComplexSearchQuery;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ExportPropertiesResponse {
|
|
80
|
+
type: string;
|
|
81
|
+
name: string;
|
|
82
|
+
data: Blob;
|
|
83
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for tracking pending ask_user requests and webhook notifications.
|
|
3
|
+
* Used to notify external systems when agents are waiting for user input.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { UserChannel } from "./email.js";
|
|
7
|
+
|
|
8
|
+
// ================= Pending Ask Data ====================
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Status of a pending ask request.
|
|
12
|
+
*/
|
|
13
|
+
export type PendingAskStatus = 'pending' | 'resolved' | 'expired';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Data stored in Redis for pending ask_user requests.
|
|
17
|
+
* Tracks which agents are waiting for user input and enables
|
|
18
|
+
* both webhook notifications and portal views.
|
|
19
|
+
*/
|
|
20
|
+
export interface PendingAskData {
|
|
21
|
+
/** Unique identifier for this ask (10-char alphanumeric) */
|
|
22
|
+
askId: string;
|
|
23
|
+
/** Temporal workflow run ID */
|
|
24
|
+
runId: string;
|
|
25
|
+
/** Temporal workflow ID */
|
|
26
|
+
workflowId: string;
|
|
27
|
+
/** Project ID */
|
|
28
|
+
projectId: string;
|
|
29
|
+
/** Account ID */
|
|
30
|
+
accountId: string;
|
|
31
|
+
/** Name of the agent/interaction that asked */
|
|
32
|
+
agentName: string;
|
|
33
|
+
/** Questions asked by the agent */
|
|
34
|
+
questions: string[];
|
|
35
|
+
/** Timeout in hours (default 48) */
|
|
36
|
+
timeoutHours: number;
|
|
37
|
+
/** Communication channels configured for the conversation */
|
|
38
|
+
userChannels: UserChannel[];
|
|
39
|
+
/** Timestamp when the ask was created (ms since epoch) */
|
|
40
|
+
createdAt: number;
|
|
41
|
+
/** Timestamp when the ask expires (ms since epoch) */
|
|
42
|
+
expiresAt: number;
|
|
43
|
+
/** Current status of the ask */
|
|
44
|
+
status: PendingAskStatus;
|
|
45
|
+
/** Timestamp when resolved (ms since epoch) */
|
|
46
|
+
resolvedAt?: number;
|
|
47
|
+
/** User's response (after resolution) */
|
|
48
|
+
response?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ================= Webhook Events ====================
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Event types for ask_user webhooks.
|
|
55
|
+
*/
|
|
56
|
+
export type AskUserWebhookEventType = 'ask_user.requested' | 'ask_user.resolved';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Simplified channel info for webhook payloads.
|
|
60
|
+
*/
|
|
61
|
+
export interface WebhookChannelInfo {
|
|
62
|
+
type: 'email' | 'interactive';
|
|
63
|
+
/** Email address (only for email channels) */
|
|
64
|
+
email?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Webhook payload sent when ask_user events occur.
|
|
69
|
+
* Sent to configured webhook endpoints when agents request user input
|
|
70
|
+
* or when users respond.
|
|
71
|
+
*/
|
|
72
|
+
export interface AskUserWebhookEvent {
|
|
73
|
+
/** Event type */
|
|
74
|
+
event: AskUserWebhookEventType;
|
|
75
|
+
/** Timestamp of the event (ms since epoch) */
|
|
76
|
+
timestamp: number;
|
|
77
|
+
/** Unique identifier for this ask */
|
|
78
|
+
askId: string;
|
|
79
|
+
/** Temporal workflow run ID */
|
|
80
|
+
runId: string;
|
|
81
|
+
/** Temporal workflow ID */
|
|
82
|
+
workflowId: string;
|
|
83
|
+
/** Project ID */
|
|
84
|
+
projectId: string;
|
|
85
|
+
/** Name of the agent/interaction */
|
|
86
|
+
agentName: string;
|
|
87
|
+
/** Questions asked by the agent */
|
|
88
|
+
questions: string[];
|
|
89
|
+
/** Communication channels available */
|
|
90
|
+
userChannels: WebhookChannelInfo[];
|
|
91
|
+
/** User's response (only for resolved events) */
|
|
92
|
+
response?: string;
|
|
93
|
+
/** Timestamp when resolved (only for resolved events) */
|
|
94
|
+
resolvedAt?: number;
|
|
95
|
+
/** How long the agent waited for response in ms (only for resolved events) */
|
|
96
|
+
waitDurationMs?: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ================= API Types ====================
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Response from listing pending asks.
|
|
103
|
+
*/
|
|
104
|
+
export interface ListPendingAsksResponse {
|
|
105
|
+
asks: PendingAskData[];
|
|
106
|
+
}
|
package/src/project.ts
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { SupportedIntegrations } from "./integrations.js";
|
|
2
|
+
import { AccountRef } from "./user.js";
|
|
3
|
+
|
|
4
|
+
export interface ICreateProjectPayload {
|
|
5
|
+
name: string;
|
|
6
|
+
namespace: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
auto_config?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export enum ProjectRoles {
|
|
11
|
+
owner = "owner", // all permissions
|
|
12
|
+
admin = "admin", // all permissions
|
|
13
|
+
manager = "manager", // all permissions but manage_account, manage_billing
|
|
14
|
+
developer = "developer", // all permissions but manage_account, manage_billing, manage_roles, delete
|
|
15
|
+
application = "application", // executor + request_pk
|
|
16
|
+
consumer = "consumer", // required permissions for users of micro apps
|
|
17
|
+
executor = "executor", // can only read and execute interactions
|
|
18
|
+
reader = "reader", // can only read (browse)
|
|
19
|
+
billing = "billing", // can only manage billings
|
|
20
|
+
member = "member", // can only access, but no specific permissions
|
|
21
|
+
app_member = "app_member", // used to mark an user have access to an application. does not provide any permission on its own
|
|
22
|
+
content_superadmin = "content_superadmin", // can see all content objects and collections
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function isRoleIncludedIn(role: string, includingRole: string) {
|
|
26
|
+
switch (includingRole) {
|
|
27
|
+
case ProjectRoles.owner:
|
|
28
|
+
return true; // includes billing to?
|
|
29
|
+
case ProjectRoles.admin:
|
|
30
|
+
return role !== ProjectRoles.billing && role !== ProjectRoles.owner;
|
|
31
|
+
case ProjectRoles.developer:
|
|
32
|
+
return role === ProjectRoles.developer;
|
|
33
|
+
case ProjectRoles.billing:
|
|
34
|
+
return role === ProjectRoles.billing;
|
|
35
|
+
default:
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export interface PopulatedProjectRef {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
account: AccountRef
|
|
45
|
+
}
|
|
46
|
+
export interface ProjectRef {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
account: string;
|
|
50
|
+
/**
|
|
51
|
+
* Only set when fetching the list of projects visible to an user which is an org admin or owner.
|
|
52
|
+
* If present and true, it means that the project is not accessible to the user.(even if it visible in listing)
|
|
53
|
+
* If not present or false then the project is accessible to the user.
|
|
54
|
+
*/
|
|
55
|
+
restricted?: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export enum ResourceVisibility {
|
|
59
|
+
public = "public",
|
|
60
|
+
account = "account",
|
|
61
|
+
project = "project"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// ==========================================
|
|
66
|
+
// Project Model Defaults Types
|
|
67
|
+
// ==========================================
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Environment and model pair for a default configuration.
|
|
71
|
+
*/
|
|
72
|
+
export interface ModelDefault {
|
|
73
|
+
environment: string;
|
|
74
|
+
model: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Modality-specific default model overrides.
|
|
79
|
+
* These override the base default when specific input modalities are detected.
|
|
80
|
+
*/
|
|
81
|
+
export interface ModalityDefaults {
|
|
82
|
+
/** Override for inputs containing images */
|
|
83
|
+
image?: ModelDefault;
|
|
84
|
+
/** Override for inputs containing video (requires video-capable model) */
|
|
85
|
+
video?: ModelDefault;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* System interaction category enum.
|
|
90
|
+
* Categories group one or more system interactions for default model assignment.
|
|
91
|
+
*/
|
|
92
|
+
export enum SystemInteractionCategory {
|
|
93
|
+
content_type = "content_type",
|
|
94
|
+
intake = "intake",
|
|
95
|
+
analysis = "analysis",
|
|
96
|
+
non_applicable = "non_applicable"
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Map system interaction endpoints to categories.
|
|
101
|
+
*/
|
|
102
|
+
export const SYSTEM_INTERACTION_CATEGORIES: Record<string, SystemInteractionCategory> = {
|
|
103
|
+
"ExtractInformation": SystemInteractionCategory.intake,
|
|
104
|
+
"SelectDocumentType": SystemInteractionCategory.intake,
|
|
105
|
+
"GenerateMetadataModel": SystemInteractionCategory.content_type,
|
|
106
|
+
"ChunkDocument": SystemInteractionCategory.intake,
|
|
107
|
+
"IdentifyTextSections": SystemInteractionCategory.intake,
|
|
108
|
+
"AnalyzeDocument": SystemInteractionCategory.analysis,
|
|
109
|
+
"ReduceTextSections": SystemInteractionCategory.analysis,
|
|
110
|
+
"GenericAgent": SystemInteractionCategory.non_applicable,
|
|
111
|
+
"AdhocTaskAgent": SystemInteractionCategory.non_applicable,
|
|
112
|
+
"Mediator": SystemInteractionCategory.non_applicable,
|
|
113
|
+
"AnalyzeConversation": SystemInteractionCategory.analysis,
|
|
114
|
+
"GetAgentConversationTopic": SystemInteractionCategory.analysis,
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Get category for a system interaction endpoint.
|
|
119
|
+
* Returns undefined if category is non-applicable or endpoint is not recognized.
|
|
120
|
+
* Note: Caller is responsible for determining if the interaction is a system interaction.
|
|
121
|
+
* @param endpoint - The interaction endpoint name
|
|
122
|
+
*/
|
|
123
|
+
export function getSystemInteractionCategory(endpoint: string): SystemInteractionCategory | undefined {
|
|
124
|
+
if (endpoint.startsWith("sys:")) {
|
|
125
|
+
// Strip sys: prefix
|
|
126
|
+
endpoint = endpoint.substring(4);
|
|
127
|
+
}
|
|
128
|
+
const category = SYSTEM_INTERACTION_CATEGORIES[endpoint];
|
|
129
|
+
if (category === SystemInteractionCategory.non_applicable) {
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
return category || undefined;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type SystemDefaults = {
|
|
136
|
+
[K in SystemInteractionCategory]?: ModelDefault;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Extensible project defaults using map/dictionary pattern.
|
|
141
|
+
*/
|
|
142
|
+
export interface ProjectModelDefaults {
|
|
143
|
+
/** Base default model - used when no other default applies */
|
|
144
|
+
base?: ModelDefault;
|
|
145
|
+
/** Modality-based overrides (image, video) - override base when specific input modalities detected */
|
|
146
|
+
modality?: ModalityDefaults;
|
|
147
|
+
/** System interaction category defaults */
|
|
148
|
+
system?: SystemDefaults;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// ==========================================
|
|
152
|
+
// Project Configuration
|
|
153
|
+
// ==========================================
|
|
154
|
+
|
|
155
|
+
export interface ProjectConfiguration {
|
|
156
|
+
|
|
157
|
+
human_context: string;
|
|
158
|
+
|
|
159
|
+
/** @deprecated Use defaults.base - kept for backward compatibility */
|
|
160
|
+
default_environment?: string;
|
|
161
|
+
/** @deprecated Use defaults.base - kept for backward compatibility */
|
|
162
|
+
default_model?: string;
|
|
163
|
+
|
|
164
|
+
defaults?: ProjectModelDefaults;
|
|
165
|
+
|
|
166
|
+
default_visibility?: ResourceVisibility;
|
|
167
|
+
|
|
168
|
+
sync_content_properties?: boolean;
|
|
169
|
+
|
|
170
|
+
embeddings: {
|
|
171
|
+
text?: ProjectConfigurationEmbeddings;
|
|
172
|
+
image?: ProjectConfigurationEmbeddings;
|
|
173
|
+
properties?: ProjectConfigurationEmbeddings
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
datacenter?: string;
|
|
177
|
+
storage_bucket?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Enable real-time streaming of agent LLM responses to clients.
|
|
181
|
+
* When enabled, LLM responses are streamed chunk-by-chunk via Redis pub/sub.
|
|
182
|
+
* Defaults to true if not specified.
|
|
183
|
+
*/
|
|
184
|
+
agent_streaming_enabled?: boolean;
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// export interface ProjectConfigurationEmbeddings {
|
|
189
|
+
// environment: string;
|
|
190
|
+
// max_tokens: number;
|
|
191
|
+
// dimensions: number;
|
|
192
|
+
// model?: string;
|
|
193
|
+
// }
|
|
194
|
+
|
|
195
|
+
export enum SupportedEmbeddingTypes {
|
|
196
|
+
text = "text",
|
|
197
|
+
image = "image",
|
|
198
|
+
properties = "properties"
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export enum FullTextType {
|
|
202
|
+
full_text = "full_text"
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type SearchTypes = SupportedEmbeddingTypes | FullTextType;
|
|
206
|
+
|
|
207
|
+
export const SearchTypes = {
|
|
208
|
+
...SupportedEmbeddingTypes,
|
|
209
|
+
...FullTextType
|
|
210
|
+
} as const;
|
|
211
|
+
|
|
212
|
+
export interface ProjectConfigurationEmbeddings {
|
|
213
|
+
environment: string;
|
|
214
|
+
enabled: boolean;
|
|
215
|
+
dimensions: number;
|
|
216
|
+
max_tokens?: number;
|
|
217
|
+
model?: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface Project {
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
namespace: string;
|
|
224
|
+
description?: string;
|
|
225
|
+
account: string;
|
|
226
|
+
configuration: ProjectConfiguration;
|
|
227
|
+
integrations: Map<string, any>;
|
|
228
|
+
plugins: string[];
|
|
229
|
+
created_by: string,
|
|
230
|
+
updated_by: string,
|
|
231
|
+
created_at: Date;
|
|
232
|
+
updated_at: Date;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface ProjectCreatePayload {
|
|
236
|
+
name: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface ProjectUpdatePayload extends Partial<Project> { }
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
export const ProjectRefPopulate = "id name account";
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
export interface EmbeddingsStatusResponse {
|
|
247
|
+
status: string;
|
|
248
|
+
embeddingRunsInProgress?: number;
|
|
249
|
+
totalRunsInProgress?: number;
|
|
250
|
+
totalIndexableObjects?: number;
|
|
251
|
+
embeddingsModels?: string[];
|
|
252
|
+
objectsWithEmbeddings?: number;
|
|
253
|
+
vectorIndex: {
|
|
254
|
+
status: "READY" | "PENDING" | "DELETING" | "ABSENT",
|
|
255
|
+
name?: string,
|
|
256
|
+
type?: string
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ProjectIntegrationListEntry {
|
|
261
|
+
id: SupportedIntegrations;
|
|
262
|
+
enabled: boolean;
|
|
263
|
+
}
|
package/src/prompt.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { JSONObject } from "@llumiverse/common";
|
|
2
|
+
import { PromptRole } from "@llumiverse/common";
|
|
3
|
+
import type { JSONSchema4 } from "json-schema";
|
|
4
|
+
import { ProjectRef } from "./project.js";
|
|
5
|
+
|
|
6
|
+
export interface ChatPromptSchema {
|
|
7
|
+
role: PromptRole.user | PromptRole.assistant;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum PromptStatus {
|
|
12
|
+
draft = "draft",
|
|
13
|
+
published = "published",
|
|
14
|
+
archived = "archived",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export enum PromptSegmentDefType {
|
|
19
|
+
chat = "chat",
|
|
20
|
+
template = "template",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface PromptSegmentDef<
|
|
24
|
+
T = string | PromptTemplate | PromptTemplateRef,
|
|
25
|
+
> {
|
|
26
|
+
type: PromptSegmentDefType;
|
|
27
|
+
template?: T; // the template id in case of a prompt template
|
|
28
|
+
configuration?: any; // the configuration if any in case of builtin prompts
|
|
29
|
+
}
|
|
30
|
+
export interface PopulatedPromptSegmentDef
|
|
31
|
+
extends Omit<PromptSegmentDef, "template"> {
|
|
32
|
+
template?: PromptTemplate;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Used for prompt rendering at interaction execution
|
|
36
|
+
*/
|
|
37
|
+
export interface ExecutablePromptSegmentDef
|
|
38
|
+
extends Omit<PromptSegmentDef, "template"> {
|
|
39
|
+
template?: ExecutablePromptTemplate;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PromptTemplateRef {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
role: PromptRole;
|
|
46
|
+
version: number;
|
|
47
|
+
status: PromptStatus;
|
|
48
|
+
content_type: TemplateType;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface PromptTemplateRefWithSchema extends PromptTemplateRef {
|
|
52
|
+
inputSchema?: JSONSchema4;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export enum TemplateType {
|
|
56
|
+
jst = "jst",
|
|
57
|
+
handlebars = "handlebars",
|
|
58
|
+
text = "text",
|
|
59
|
+
}
|
|
60
|
+
export interface ExecutablePromptTemplate {
|
|
61
|
+
role: PromptRole;
|
|
62
|
+
content: string;
|
|
63
|
+
content_type: TemplateType;
|
|
64
|
+
inputSchema?: JSONSchema4;
|
|
65
|
+
}
|
|
66
|
+
export interface PromptTemplate extends ExecutablePromptTemplate {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
status: PromptStatus;
|
|
70
|
+
version: number;
|
|
71
|
+
// only to be used by published versions
|
|
72
|
+
// the id draft version which is the source of this published version (only when published)
|
|
73
|
+
parent?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
test_data?: JSONObject; // optional test data satisfying the schema
|
|
76
|
+
script?: string; // cache the template output
|
|
77
|
+
project: string | ProjectRef; // or projectRef? ObjectIdType;
|
|
78
|
+
// The name of a field in the input data that is of the specified schema and on each the template will iterate.
|
|
79
|
+
// If not specified then the schema will define the whole input data
|
|
80
|
+
tags?: string[];
|
|
81
|
+
// only for drafts - when it was last published
|
|
82
|
+
last_published_at?: Date;
|
|
83
|
+
created_by: string,
|
|
84
|
+
updated_by: string,
|
|
85
|
+
created_at: Date;
|
|
86
|
+
updated_at: Date;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface PromptTemplateForkPayload {
|
|
90
|
+
keepTags?: boolean;
|
|
91
|
+
targetProject?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface PromptTemplateCreatePayload
|
|
95
|
+
extends Omit<
|
|
96
|
+
PromptTemplate,
|
|
97
|
+
"id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project" | "status" | "version"
|
|
98
|
+
> { }
|
|
99
|
+
|
|
100
|
+
export interface PromptTemplateUpdatePayload
|
|
101
|
+
extends Partial<
|
|
102
|
+
Omit<PromptTemplate, "id" | "created_at" | "updated_at" | "created_by" | "updated_by" | "project">
|
|
103
|
+
> { }
|