@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
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const RenditionSchema = {
|
|
2
|
+
type: "object",
|
|
3
|
+
description: "Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",
|
|
4
|
+
properties: {
|
|
5
|
+
mime_type: {
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "The format of the rendition. This is a MIME type."
|
|
8
|
+
},
|
|
9
|
+
source_etag: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "The ETag of the file used for the rendition.",
|
|
12
|
+
nullable: true
|
|
13
|
+
},
|
|
14
|
+
height: {
|
|
15
|
+
type: "integer",
|
|
16
|
+
description: "The height of the rendition",
|
|
17
|
+
nullable: true
|
|
18
|
+
},
|
|
19
|
+
width: {
|
|
20
|
+
type: "integer",
|
|
21
|
+
description: "The width of the rendition",
|
|
22
|
+
nullable: true
|
|
23
|
+
},
|
|
24
|
+
multipart: {
|
|
25
|
+
type: "boolean",
|
|
26
|
+
description: "If the rendition is a multi-part rendition",
|
|
27
|
+
nullable: true,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
total_parts: {
|
|
31
|
+
type: "integer",
|
|
32
|
+
description: "The total number of parts in the rendition",
|
|
33
|
+
nullable: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
required: ["mime_type"],
|
|
37
|
+
};
|
|
38
|
+
export const DocumentPartSchema = {
|
|
39
|
+
type: "object",
|
|
40
|
+
description: "Represent a semantic chunk of a document",
|
|
41
|
+
properties: {
|
|
42
|
+
source_etag: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "The ETag of the file used for the rendition.",
|
|
45
|
+
nullable: true
|
|
46
|
+
},
|
|
47
|
+
part_number: {
|
|
48
|
+
type: "integer",
|
|
49
|
+
description: "The part number of the chunk",
|
|
50
|
+
},
|
|
51
|
+
title: {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "The title of the chunk",
|
|
54
|
+
nullable: true
|
|
55
|
+
},
|
|
56
|
+
source_line_start: {
|
|
57
|
+
type: "integer",
|
|
58
|
+
description: "The line number where the chunk starts",
|
|
59
|
+
nullable: true
|
|
60
|
+
},
|
|
61
|
+
source_line_end: {
|
|
62
|
+
type: "integer",
|
|
63
|
+
description: "The line number where the chunk ends",
|
|
64
|
+
nullable: true
|
|
65
|
+
},
|
|
66
|
+
type: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "The type of the chunk",
|
|
69
|
+
enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
|
|
70
|
+
nullable: true
|
|
71
|
+
},
|
|
72
|
+
page_number: {
|
|
73
|
+
type: "integer",
|
|
74
|
+
description: "The page number of the document part",
|
|
75
|
+
nullable: true
|
|
76
|
+
},
|
|
77
|
+
description: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "The description of the document part, if it's an image, the exhaustive description of the image",
|
|
80
|
+
nullable: true
|
|
81
|
+
},
|
|
82
|
+
height: {
|
|
83
|
+
type: "integer",
|
|
84
|
+
description: "The height of the rendition",
|
|
85
|
+
nullable: true
|
|
86
|
+
},
|
|
87
|
+
width: {
|
|
88
|
+
type: "integer",
|
|
89
|
+
description: "The width of the rendition",
|
|
90
|
+
nullable: true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
required: ["part_number"],
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=object-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-types.js","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,eAAe,GAAwC;IAEhE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8GAA8G;IAC3H,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;SACnE;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAA;AAoBD,MAAM,CAAC,MAAM,kBAAkB,GAA2C;IACtE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,0CAA0C;IACvD,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8BAA8B;SAC9C;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACjB;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACjB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;YACrE,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iGAAiG;YAC9G,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,aAAa,CAAC;CAC5B,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Schedule Types
|
|
3
|
+
*
|
|
4
|
+
* Defines types for scheduling agents to run on a recurring basis using cron expressions.
|
|
5
|
+
* Schedules are stored in MongoDB with execution handled by Temporal.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Common cron expression presets for UI convenience.
|
|
9
|
+
*/
|
|
10
|
+
export const CRON_PRESETS = {
|
|
11
|
+
EVERY_HOUR: '0 * * * *',
|
|
12
|
+
EVERY_DAY_MIDNIGHT: '0 0 * * *',
|
|
13
|
+
EVERY_DAY_9AM: '0 9 * * *',
|
|
14
|
+
EVERY_MONDAY_MIDNIGHT: '0 0 * * MON',
|
|
15
|
+
EVERY_WEEKDAY_9AM: '0 9 * * MON-FRI',
|
|
16
|
+
FIRST_OF_MONTH: '0 0 1 * *',
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable descriptions for cron presets.
|
|
20
|
+
*/
|
|
21
|
+
export const CRON_PRESET_LABELS = {
|
|
22
|
+
EVERY_HOUR: 'Every hour',
|
|
23
|
+
EVERY_DAY_MIDNIGHT: 'Daily at midnight',
|
|
24
|
+
EVERY_DAY_9AM: 'Daily at 9:00 AM',
|
|
25
|
+
EVERY_MONDAY_MIDNIGHT: 'Every Monday at midnight',
|
|
26
|
+
EVERY_WEEKDAY_9AM: 'Weekdays at 9:00 AM',
|
|
27
|
+
FIRST_OF_MONTH: 'First day of month at midnight',
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../src/store/schedule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkNH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,UAAU,EAAE,WAAW;IACvB,kBAAkB,EAAE,WAAW;IAC/B,aAAa,EAAE,WAAW;IAC1B,qBAAqB,EAAE,aAAa;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,cAAc,EAAE,WAAW;CACrB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA8C;IACzE,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,mBAAmB;IACvC,aAAa,EAAE,kBAAkB;IACjC,qBAAqB,EAAE,0BAA0B;IACjD,iBAAiB,EAAE,qBAAqB;IACxC,cAAc,EAAE,gCAAgC;CACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/store/signals.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export var ContentObjectApiHeaders;
|
|
2
|
+
(function (ContentObjectApiHeaders) {
|
|
3
|
+
ContentObjectApiHeaders["COLLECTION_ID"] = "x-collection-id";
|
|
4
|
+
ContentObjectApiHeaders["PROCESSING_PRIORITY"] = "x-processing-priority";
|
|
5
|
+
ContentObjectApiHeaders["CREATE_REVISION"] = "x-create-revision";
|
|
6
|
+
ContentObjectApiHeaders["REVISION_LABEL"] = "x-revision-label";
|
|
7
|
+
/** When set to 'true', prevents this update from triggering workflow rules */
|
|
8
|
+
ContentObjectApiHeaders["SUPPRESS_WORKFLOWS"] = "x-suppress-workflows";
|
|
9
|
+
})(ContentObjectApiHeaders || (ContentObjectApiHeaders = {}));
|
|
10
|
+
/**
|
|
11
|
+
* Headers for Data Store API calls.
|
|
12
|
+
* Used for Cloud Run session affinity to route requests to the same instance.
|
|
13
|
+
*/
|
|
14
|
+
export var DataStoreApiHeaders;
|
|
15
|
+
(function (DataStoreApiHeaders) {
|
|
16
|
+
/** Data store ID for session affinity - routes requests for same store to same instance */
|
|
17
|
+
DataStoreApiHeaders["DATA_STORE_ID"] = "x-data-store-id";
|
|
18
|
+
})(DataStoreApiHeaders || (DataStoreApiHeaders = {}));
|
|
19
|
+
export var ContentObjectStatus;
|
|
20
|
+
(function (ContentObjectStatus) {
|
|
21
|
+
ContentObjectStatus["created"] = "created";
|
|
22
|
+
ContentObjectStatus["processing"] = "processing";
|
|
23
|
+
ContentObjectStatus["ready"] = "ready";
|
|
24
|
+
ContentObjectStatus["completed"] = "completed";
|
|
25
|
+
ContentObjectStatus["failed"] = "failed";
|
|
26
|
+
ContentObjectStatus["archived"] = "archived";
|
|
27
|
+
})(ContentObjectStatus || (ContentObjectStatus = {}));
|
|
28
|
+
export var ContentNature;
|
|
29
|
+
(function (ContentNature) {
|
|
30
|
+
ContentNature["Video"] = "video";
|
|
31
|
+
ContentNature["Image"] = "image";
|
|
32
|
+
ContentNature["Audio"] = "audio";
|
|
33
|
+
ContentNature["Document"] = "document";
|
|
34
|
+
ContentNature["Code"] = "code";
|
|
35
|
+
ContentNature["Other"] = "other";
|
|
36
|
+
})(ContentNature || (ContentNature = {}));
|
|
37
|
+
export const POSTER_RENDITION_NAME = "Poster";
|
|
38
|
+
export const AUDIO_RENDITION_NAME = "Audio";
|
|
39
|
+
export const WEB_VIDEO_RENDITION_NAME = "Web";
|
|
40
|
+
export const PDF_RENDITION_NAME = "PDF";
|
|
41
|
+
export var WorkflowRuleInputType;
|
|
42
|
+
(function (WorkflowRuleInputType) {
|
|
43
|
+
WorkflowRuleInputType["single"] = "single";
|
|
44
|
+
WorkflowRuleInputType["multiple"] = "multiple";
|
|
45
|
+
WorkflowRuleInputType["none"] = "none";
|
|
46
|
+
})(WorkflowRuleInputType || (WorkflowRuleInputType = {}));
|
|
47
|
+
export var ImageRenditionFormat;
|
|
48
|
+
(function (ImageRenditionFormat) {
|
|
49
|
+
ImageRenditionFormat["jpeg"] = "jpeg";
|
|
50
|
+
ImageRenditionFormat["png"] = "png";
|
|
51
|
+
ImageRenditionFormat["webp"] = "webp";
|
|
52
|
+
})(ImageRenditionFormat || (ImageRenditionFormat = {}));
|
|
53
|
+
export var MarkdownRenditionFormat;
|
|
54
|
+
(function (MarkdownRenditionFormat) {
|
|
55
|
+
MarkdownRenditionFormat["docx"] = "docx";
|
|
56
|
+
MarkdownRenditionFormat["pdf"] = "pdf";
|
|
57
|
+
})(MarkdownRenditionFormat || (MarkdownRenditionFormat = {}));
|
|
58
|
+
/**
|
|
59
|
+
* Matrix of supported content type → format conversions.
|
|
60
|
+
* This is the authoritative source of truth for what renditions can be generated.
|
|
61
|
+
*
|
|
62
|
+
* Key patterns:
|
|
63
|
+
* - Exact MIME types (e.g., 'application/pdf')
|
|
64
|
+
* - Wildcard patterns (e.g., 'image/*', 'video/*')
|
|
65
|
+
*/
|
|
66
|
+
const RENDITION_COMPATIBILITY = {
|
|
67
|
+
// Image formats can generate: jpeg, png, webp
|
|
68
|
+
'image/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
69
|
+
// Video formats can generate: jpeg, png (thumbnails)
|
|
70
|
+
'video/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png],
|
|
71
|
+
// PDF can generate: jpeg, png, webp (page images)
|
|
72
|
+
'application/pdf': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
73
|
+
// Markdown can generate: pdf, docx (NOT jpeg/png)
|
|
74
|
+
'text/markdown': [MarkdownRenditionFormat.pdf, MarkdownRenditionFormat.docx],
|
|
75
|
+
// Plain text can generate: docx
|
|
76
|
+
'text/plain': [MarkdownRenditionFormat.docx],
|
|
77
|
+
// Office documents can generate: pdf
|
|
78
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [MarkdownRenditionFormat.pdf],
|
|
79
|
+
'application/msword': [MarkdownRenditionFormat.pdf],
|
|
80
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation': [MarkdownRenditionFormat.pdf],
|
|
81
|
+
'application/vnd.ms-powerpoint': [MarkdownRenditionFormat.pdf],
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Check if a specific rendition format can be generated from a content type.
|
|
85
|
+
*
|
|
86
|
+
* @param contentType - The MIME type of the source content (e.g., 'image/png', 'text/markdown')
|
|
87
|
+
* @param format - The desired rendition format (e.g., ImageRenditionFormat.jpeg)
|
|
88
|
+
* @returns true if the format can be generated from the content type
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* canGenerateRendition('image/png', ImageRenditionFormat.jpeg) // true
|
|
92
|
+
* canGenerateRendition('text/markdown', ImageRenditionFormat.jpeg) // false
|
|
93
|
+
* canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
|
|
94
|
+
*/
|
|
95
|
+
export function canGenerateRendition(contentType, format) {
|
|
96
|
+
if (!contentType)
|
|
97
|
+
return false;
|
|
98
|
+
const formatStr = typeof format === 'string' ? format : format;
|
|
99
|
+
// Check exact match first
|
|
100
|
+
const exactMatch = RENDITION_COMPATIBILITY[contentType];
|
|
101
|
+
if (exactMatch && exactMatch.some(f => f === formatStr)) {
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
// Check wildcard patterns (e.g., 'image/*', 'video/*')
|
|
105
|
+
const [category] = contentType.split('/');
|
|
106
|
+
const wildcardKey = `${category}/*`;
|
|
107
|
+
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
108
|
+
if (wildcardMatch && wildcardMatch.some(f => f === formatStr)) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get the list of rendition formats supported for a given content type.
|
|
115
|
+
*
|
|
116
|
+
* @param contentType - The MIME type of the source content
|
|
117
|
+
* @returns Array of supported rendition formats, or empty array if none
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* getSupportedRenditionFormats('image/png') // [jpeg, png, webp]
|
|
121
|
+
* getSupportedRenditionFormats('text/markdown') // [pdf, docx]
|
|
122
|
+
* getSupportedRenditionFormats('text/html') // []
|
|
123
|
+
*/
|
|
124
|
+
export function getSupportedRenditionFormats(contentType) {
|
|
125
|
+
if (!contentType)
|
|
126
|
+
return [];
|
|
127
|
+
// Check exact match first
|
|
128
|
+
if (RENDITION_COMPATIBILITY[contentType]) {
|
|
129
|
+
return [...RENDITION_COMPATIBILITY[contentType]];
|
|
130
|
+
}
|
|
131
|
+
// Check wildcard patterns
|
|
132
|
+
const [category] = contentType.split('/');
|
|
133
|
+
const wildcardKey = `${category}/*`;
|
|
134
|
+
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
135
|
+
if (wildcardMatch) {
|
|
136
|
+
return [...wildcardMatch];
|
|
137
|
+
}
|
|
138
|
+
return [];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if a content type supports visual (image) renditions.
|
|
142
|
+
* This is useful for determining if a document can have thumbnails/previews.
|
|
143
|
+
*
|
|
144
|
+
* @param contentType - The MIME type of the source content
|
|
145
|
+
* @returns true if the content type can generate JPEG renditions
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* supportsVisualRendition('image/png') // true
|
|
149
|
+
* supportsVisualRendition('application/pdf') // true
|
|
150
|
+
* supportsVisualRendition('text/markdown') // false
|
|
151
|
+
*/
|
|
152
|
+
export function supportsVisualRendition(contentType) {
|
|
153
|
+
return canGenerateRendition(contentType, ImageRenditionFormat.jpeg);
|
|
154
|
+
}
|
|
155
|
+
export var ContentObjectProcessingPriority;
|
|
156
|
+
(function (ContentObjectProcessingPriority) {
|
|
157
|
+
ContentObjectProcessingPriority["normal"] = "normal";
|
|
158
|
+
ContentObjectProcessingPriority["low"] = "low";
|
|
159
|
+
})(ContentObjectProcessingPriority || (ContentObjectProcessingPriority = {}));
|
|
160
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAC/B,4DAAiC,CAAA;IACjC,wEAA6C,CAAA;IAC7C,gEAAqC,CAAA;IACrC,8DAAmC,CAAA;IACnC,8EAA8E;IAC9E,sEAA2C,CAAA;AAC/C,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,2FAA2F;IAC3F,wDAAiC,CAAA;AACrC,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;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|
8
|
+
/**
|
|
9
|
+
* When the Parent is Closed, nothing is done to the Child.
|
|
10
|
+
*/
|
|
11
|
+
ABANDON: "ABANDON",
|
|
12
|
+
/**
|
|
13
|
+
* When the Parent is Closed, the Child is Cancelled.
|
|
14
|
+
*/
|
|
15
|
+
REQUEST_CANCEL: "REQUEST_CANCEL",
|
|
16
|
+
/**
|
|
17
|
+
* If a `ParentClosePolicy` is set to this, or is not set at all, the server default value will be used.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Either leave property `undefined`, or set an explicit policy instead.
|
|
20
|
+
*/
|
|
21
|
+
PARENT_CLOSE_POLICY_UNSPECIFIED: undefined,
|
|
22
|
+
/**
|
|
23
|
+
* When the Parent is Closed, the Child is Terminated.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated Use {@link ParentClosePolicy.TERMINATE} instead.
|
|
26
|
+
*/
|
|
27
|
+
PARENT_CLOSE_POLICY_TERMINATE: "TERMINATE",
|
|
28
|
+
/**
|
|
29
|
+
* When the Parent is Closed, nothing is done to the Child.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated Use {@link ParentClosePolicy.ABANDON} instead.
|
|
32
|
+
*/
|
|
33
|
+
PARENT_CLOSE_POLICY_ABANDON: "ABANDON",
|
|
34
|
+
/**
|
|
35
|
+
* When the Parent is Closed, the Child is Cancelled.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Use {@link ParentClosePolicy.REQUEST_CANCEL} instead.
|
|
38
|
+
*/
|
|
39
|
+
PARENT_CLOSE_POLICY_REQUEST_CANCEL: "REQUEST_CANCEL"
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=temporalio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporalio.js","sourceRoot":"","sources":["../../../src/store/temporalio.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B;;;;OAIG;IACH,SAAS,EAAE,WAAW;IACtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;OAIG;IACH,+BAA+B,EAAE,SAAS;IAC1C;;;;OAIG;IACH,6BAA6B,EAAE,WAAW;IAC1C;;;;OAIG;IACH,2BAA2B,EAAE,SAAS;IACtC;;;;OAIG;IACH,kCAAkC,EAAE,gBAAgB;CACjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/store/worker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
export var ContentEventName;
|
|
2
|
+
(function (ContentEventName) {
|
|
3
|
+
ContentEventName["create"] = "create";
|
|
4
|
+
ContentEventName["change_type"] = "change_type";
|
|
5
|
+
ContentEventName["update"] = "update";
|
|
6
|
+
ContentEventName["revision_created"] = "revision_created";
|
|
7
|
+
ContentEventName["delete"] = "delete";
|
|
8
|
+
ContentEventName["workflow_finished"] = "workflow_finished";
|
|
9
|
+
ContentEventName["workflow_execution_request"] = "workflow_execution_request";
|
|
10
|
+
ContentEventName["api_request"] = "api_request";
|
|
11
|
+
})(ContentEventName || (ContentEventName = {}));
|
|
12
|
+
export function getDocumentIds(payload) {
|
|
13
|
+
if ("objectIds" in payload) {
|
|
14
|
+
return payload.objectIds;
|
|
15
|
+
}
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
export var WorkflowExecutionStatus;
|
|
19
|
+
(function (WorkflowExecutionStatus) {
|
|
20
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
21
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["RUNNING"] = 1] = "RUNNING";
|
|
22
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
23
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["FAILED"] = 3] = "FAILED";
|
|
24
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["CANCELED"] = 4] = "CANCELED";
|
|
25
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["TERMINATED"] = 5] = "TERMINATED";
|
|
26
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["CONTINUED_AS_NEW"] = 6] = "CONTINUED_AS_NEW";
|
|
27
|
+
WorkflowExecutionStatus[WorkflowExecutionStatus["TIMED_OUT"] = 7] = "TIMED_OUT";
|
|
28
|
+
})(WorkflowExecutionStatus || (WorkflowExecutionStatus = {}));
|
|
29
|
+
export var AgentMessageType;
|
|
30
|
+
(function (AgentMessageType) {
|
|
31
|
+
AgentMessageType[AgentMessageType["SYSTEM"] = 0] = "SYSTEM";
|
|
32
|
+
AgentMessageType[AgentMessageType["THOUGHT"] = 1] = "THOUGHT";
|
|
33
|
+
AgentMessageType[AgentMessageType["PLAN"] = 2] = "PLAN";
|
|
34
|
+
AgentMessageType[AgentMessageType["UPDATE"] = 3] = "UPDATE";
|
|
35
|
+
AgentMessageType[AgentMessageType["COMPLETE"] = 4] = "COMPLETE";
|
|
36
|
+
AgentMessageType[AgentMessageType["WARNING"] = 5] = "WARNING";
|
|
37
|
+
AgentMessageType[AgentMessageType["ERROR"] = 6] = "ERROR";
|
|
38
|
+
AgentMessageType[AgentMessageType["ANSWER"] = 7] = "ANSWER";
|
|
39
|
+
AgentMessageType[AgentMessageType["QUESTION"] = 8] = "QUESTION";
|
|
40
|
+
AgentMessageType[AgentMessageType["REQUEST_INPUT"] = 9] = "REQUEST_INPUT";
|
|
41
|
+
AgentMessageType[AgentMessageType["IDLE"] = 10] = "IDLE";
|
|
42
|
+
AgentMessageType[AgentMessageType["TERMINATED"] = 11] = "TERMINATED";
|
|
43
|
+
AgentMessageType[AgentMessageType["STREAMING_CHUNK"] = 12] = "STREAMING_CHUNK";
|
|
44
|
+
AgentMessageType[AgentMessageType["BATCH_PROGRESS"] = 13] = "BATCH_PROGRESS";
|
|
45
|
+
})(AgentMessageType || (AgentMessageType = {}));
|
|
46
|
+
// ============================================
|
|
47
|
+
// TYPE GUARDS
|
|
48
|
+
// ============================================
|
|
49
|
+
/**
|
|
50
|
+
* Check if a message is in compact format
|
|
51
|
+
*/
|
|
52
|
+
export function isCompactMessage(msg) {
|
|
53
|
+
return typeof msg === 'object' && msg !== null && 't' in msg;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a message is in legacy format
|
|
57
|
+
*/
|
|
58
|
+
export function isLegacyMessage(msg) {
|
|
59
|
+
return typeof msg === 'object' && msg !== null && 'type' in msg && !('t' in msg);
|
|
60
|
+
}
|
|
61
|
+
// ============================================
|
|
62
|
+
// CONVERTERS
|
|
63
|
+
// ============================================
|
|
64
|
+
/**
|
|
65
|
+
* Map old string enum values to AgentMessageType
|
|
66
|
+
*/
|
|
67
|
+
const STRING_TO_TYPE_MAP = {
|
|
68
|
+
'system': AgentMessageType.SYSTEM,
|
|
69
|
+
'thought': AgentMessageType.THOUGHT,
|
|
70
|
+
'plan': AgentMessageType.PLAN,
|
|
71
|
+
'update': AgentMessageType.UPDATE,
|
|
72
|
+
'complete': AgentMessageType.COMPLETE,
|
|
73
|
+
'warning': AgentMessageType.WARNING,
|
|
74
|
+
'error': AgentMessageType.ERROR,
|
|
75
|
+
'answer': AgentMessageType.ANSWER,
|
|
76
|
+
'question': AgentMessageType.QUESTION,
|
|
77
|
+
'request_input': AgentMessageType.REQUEST_INPUT,
|
|
78
|
+
'idle': AgentMessageType.IDLE,
|
|
79
|
+
'terminated': AgentMessageType.TERMINATED,
|
|
80
|
+
'streaming_chunk': AgentMessageType.STREAMING_CHUNK,
|
|
81
|
+
'batch_progress': AgentMessageType.BATCH_PROGRESS,
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Map integer values to AgentMessageType (primary format)
|
|
85
|
+
*/
|
|
86
|
+
const INT_TO_TYPE_MAP = {
|
|
87
|
+
0: AgentMessageType.SYSTEM,
|
|
88
|
+
1: AgentMessageType.THOUGHT,
|
|
89
|
+
2: AgentMessageType.PLAN,
|
|
90
|
+
3: AgentMessageType.UPDATE,
|
|
91
|
+
4: AgentMessageType.COMPLETE,
|
|
92
|
+
5: AgentMessageType.WARNING,
|
|
93
|
+
6: AgentMessageType.ERROR,
|
|
94
|
+
7: AgentMessageType.ANSWER,
|
|
95
|
+
8: AgentMessageType.QUESTION,
|
|
96
|
+
9: AgentMessageType.REQUEST_INPUT,
|
|
97
|
+
10: AgentMessageType.IDLE,
|
|
98
|
+
11: AgentMessageType.TERMINATED,
|
|
99
|
+
12: AgentMessageType.STREAMING_CHUNK,
|
|
100
|
+
13: AgentMessageType.BATCH_PROGRESS,
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Normalize message type from string or number to AgentMessageType
|
|
104
|
+
*/
|
|
105
|
+
export function normalizeMessageType(type) {
|
|
106
|
+
// Handle integer type (current format and AgentMessageType enum values)
|
|
107
|
+
if (typeof type === 'number') {
|
|
108
|
+
return INT_TO_TYPE_MAP[type] ?? AgentMessageType.UPDATE;
|
|
109
|
+
}
|
|
110
|
+
// Handle string type (legacy messages from Redis with 90-day TTL)
|
|
111
|
+
if (typeof type === 'string') {
|
|
112
|
+
return STRING_TO_TYPE_MAP[type] ?? AgentMessageType.UPDATE;
|
|
113
|
+
}
|
|
114
|
+
return AgentMessageType.UPDATE;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Convert legacy AgentMessage to CompactMessage
|
|
118
|
+
*/
|
|
119
|
+
export function toCompactMessage(legacy) {
|
|
120
|
+
const compact = {
|
|
121
|
+
t: normalizeMessageType(legacy.type),
|
|
122
|
+
};
|
|
123
|
+
if (legacy.message)
|
|
124
|
+
compact.m = legacy.message;
|
|
125
|
+
if (legacy.workstream_id && legacy.workstream_id !== 'main')
|
|
126
|
+
compact.w = legacy.workstream_id;
|
|
127
|
+
if (legacy.timestamp)
|
|
128
|
+
compact.ts = legacy.timestamp;
|
|
129
|
+
// Handle legacy streaming chunk details
|
|
130
|
+
if (compact.t === AgentMessageType.STREAMING_CHUNK && legacy.details) {
|
|
131
|
+
const d = legacy.details;
|
|
132
|
+
if (d.is_final)
|
|
133
|
+
compact.f = 1;
|
|
134
|
+
// streaming_id and chunk_index are no longer needed
|
|
135
|
+
}
|
|
136
|
+
else if (legacy.details) {
|
|
137
|
+
compact.d = legacy.details;
|
|
138
|
+
}
|
|
139
|
+
return compact;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Parse any message format (compact or legacy) into CompactMessage.
|
|
143
|
+
* Use this as the entry point for all received messages.
|
|
144
|
+
*/
|
|
145
|
+
export function parseMessage(data) {
|
|
146
|
+
const parsed = typeof data === 'string' ? JSON.parse(data) : data;
|
|
147
|
+
if (isCompactMessage(parsed))
|
|
148
|
+
return parsed;
|
|
149
|
+
if (isLegacyMessage(parsed))
|
|
150
|
+
return toCompactMessage(parsed);
|
|
151
|
+
throw new Error('Unknown message format');
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Create a compact message (convenience function for server-side)
|
|
155
|
+
*/
|
|
156
|
+
export function createCompactMessage(type, options = {}) {
|
|
157
|
+
const compact = { t: type };
|
|
158
|
+
if (options.message)
|
|
159
|
+
compact.m = options.message;
|
|
160
|
+
if (options.workstreamId && options.workstreamId !== 'main')
|
|
161
|
+
compact.w = options.workstreamId;
|
|
162
|
+
if (options.details)
|
|
163
|
+
compact.d = options.details;
|
|
164
|
+
if (options.isFinal)
|
|
165
|
+
compact.f = 1;
|
|
166
|
+
if (options.timestamp)
|
|
167
|
+
compact.ts = options.timestamp;
|
|
168
|
+
return compact;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Convert CompactMessage back to AgentMessage (for UI components).
|
|
172
|
+
* This allows UI to continue using familiar field names while wire format is compact.
|
|
173
|
+
* @param compact The compact message to convert
|
|
174
|
+
* @param workflowRunId Optional workflow_run_id (known from SSE context, not in compact format)
|
|
175
|
+
*/
|
|
176
|
+
export function toAgentMessage(compact, workflowRunId = '') {
|
|
177
|
+
const message = {
|
|
178
|
+
type: compact.t,
|
|
179
|
+
timestamp: compact.ts || Date.now(),
|
|
180
|
+
workflow_run_id: workflowRunId,
|
|
181
|
+
message: compact.m || '',
|
|
182
|
+
workstream_id: compact.w || 'main',
|
|
183
|
+
};
|
|
184
|
+
if (compact.d !== undefined)
|
|
185
|
+
message.details = compact.d;
|
|
186
|
+
// For streaming chunks, restore is_final and streaming_id in details
|
|
187
|
+
// (streaming_id removed from wire format, use workstream_id as grouping key)
|
|
188
|
+
if (compact.t === AgentMessageType.STREAMING_CHUNK) {
|
|
189
|
+
message.details = {
|
|
190
|
+
...(typeof compact.d === 'object' ? compact.d : {}),
|
|
191
|
+
streaming_id: compact.w || 'main', // Use workstream_id as streaming_id
|
|
192
|
+
is_final: compact.f === 1,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
return message;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Status of a file being processed for conversation use.
|
|
199
|
+
*/
|
|
200
|
+
export var FileProcessingStatus;
|
|
201
|
+
(function (FileProcessingStatus) {
|
|
202
|
+
/** File is being uploaded to artifact storage */
|
|
203
|
+
FileProcessingStatus["UPLOADING"] = "uploading";
|
|
204
|
+
/** File uploaded, text extraction in progress */
|
|
205
|
+
FileProcessingStatus["PROCESSING"] = "processing";
|
|
206
|
+
/** File is ready for use in conversation */
|
|
207
|
+
FileProcessingStatus["READY"] = "ready";
|
|
208
|
+
/** File processing failed */
|
|
209
|
+
FileProcessingStatus["ERROR"] = "error";
|
|
210
|
+
})(FileProcessingStatus || (FileProcessingStatus = {}));
|
|
211
|
+
/**
|
|
212
|
+
* Get the Redis pub/sub channel name for workflow messages.
|
|
213
|
+
* Used by both publishers (workflow activities, studio-server) and subscribers (zeno-server, clients).
|
|
214
|
+
* @param workflowRunId - The Temporal workflow run ID (NOT the interaction execution run ID)
|
|
215
|
+
*/
|
|
216
|
+
export function getWorkflowChannel(workflowRunId) {
|
|
217
|
+
return `workflow:${workflowRunId}:channel`;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get the Redis list key for storing workflow message history.
|
|
221
|
+
* Messages are stored here for retrieval by reconnecting clients.
|
|
222
|
+
* @param workflowRunId - The Temporal workflow run ID (NOT the interaction execution run ID)
|
|
223
|
+
*/
|
|
224
|
+
export function getWorkflowUpdatesKey(workflowRunId) {
|
|
225
|
+
return `workflow:${workflowRunId}:updates`;
|
|
226
|
+
}
|
|
227
|
+
export const LOW_PRIORITY_TASK_QUEUE = "low_priority";
|
|
228
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/store/workflow.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,qCAAiB,CAAA;IACjB,yDAAqC,CAAA;IACrC,qCAAiB,CAAA;IACjB,2DAAuC,CAAA;IACvC,6EAAyD,CAAA;IACzD,+CAA2B,CAAA;AAC/B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAuJD,MAAM,UAAU,cAAc,CAAC,OAAiC;IAC5D,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;QACzB,OAAO,OAAO,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAuQD,MAAM,CAAN,IAAY,uBASX;AATD,WAAY,uBAAuB;IAC/B,2EAAW,CAAA;IACX,2EAAW,CAAA;IACX,+EAAa,CAAA;IACb,yEAAU,CAAA;IACV,6EAAY,CAAA;IACZ,iFAAc,CAAA;IACd,6FAAoB,CAAA;IACpB,+EAAa,CAAA;AACjB,CAAC,EATW,uBAAuB,KAAvB,uBAAuB,QASlC;AAuBD,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IACxB,2DAAU,CAAA;IACV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EAAE,OAAO,CAAC,CAAC,KAAK,CAAC;SAC5B,CAAC;IACN,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC;AAwCD;;GAEG;AACH,MAAM,CAAN,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC5B,iDAAiD;IACjD,+CAAuB,CAAA;IACvB,iDAAiD;IACjD,iDAAyB,CAAA;IACzB,4CAA4C;IAC5C,uCAAe,CAAA;IACf,6BAA6B;IAC7B,uCAAe,CAAA;AACnB,CAAC,EATW,oBAAoB,KAApB,oBAAoB,QAS/B;AAmED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,aAAqB;IACpD,OAAO,YAAY,aAAa,UAAU,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,aAAqB;IACvD,OAAO,YAAY,aAAa,UAAU,CAAC;AAC/C,CAAC;AAeD,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* STS Token Request Types
|
|
3
|
+
* These types define the structure for token requests to the Security Token Service
|
|
4
|
+
*/
|
|
5
|
+
// Helper type guards for type narrowing
|
|
6
|
+
export function isApiKeyRequest(req) {
|
|
7
|
+
return req.type === 'apikey';
|
|
8
|
+
}
|
|
9
|
+
export function isUserRequest(req) {
|
|
10
|
+
return req.type === 'user';
|
|
11
|
+
}
|
|
12
|
+
export function isProjectRequest(req) {
|
|
13
|
+
return req.type === 'project';
|
|
14
|
+
}
|
|
15
|
+
export function isEnvironmentRequest(req) {
|
|
16
|
+
return req.type === 'environment';
|
|
17
|
+
}
|
|
18
|
+
export function isAgentRequest(req) {
|
|
19
|
+
return req.type === 'agent';
|
|
20
|
+
}
|
|
21
|
+
export function isServiceAccountRequest(req) {
|
|
22
|
+
return req.type === 'service_account';
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=sts-token-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sts-token-types.js","sourceRoot":"","sources":["../../src/sts-token-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+EH,wCAAwC;AACxC,MAAM,UAAU,eAAe,CAAC,GAAsB;IAClD,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAsB;IAChD,OAAO,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAsB;IACnD,OAAO,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,GAAsB;IACvD,OAAO,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAsB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAsB;IAC1D,OAAO,GAAG,CAAC,IAAI,KAAK,iBAAiB,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../src/tenant.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-execution.js","sourceRoot":"","sources":["../../src/tool-execution.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|