@vertesia/common 0.54.0 → 0.56.0
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 +39 -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 +15 -0
- package/lib/cjs/apikey.js.map +1 -0
- package/lib/cjs/common.js +3 -0
- package/lib/cjs/common.js.map +1 -0
- package/lib/cjs/environment.js +116 -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/index.js +40 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/integrations.js +12 -0
- package/lib/cjs/integrations.js.map +1 -0
- package/lib/cjs/interaction.js +63 -0
- package/lib/cjs/interaction.js.map +1 -0
- package/lib/cjs/meters.js +13 -0
- package/lib/cjs/meters.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/plugin.js +3 -0
- package/lib/cjs/plugin.js.map +1 -0
- package/lib/cjs/project.js +50 -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/refs.js +12 -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/store/activity-catalog.js +3 -0
- package/lib/cjs/store/activity-catalog.js.map +1 -0
- package/lib/cjs/store/agent.js +3 -0
- package/lib/cjs/store/agent.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/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 +28 -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/signals.js +3 -0
- package/lib/cjs/store/signals.js.map +1 -0
- package/lib/cjs/store/store.js +18 -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/workflow.js +47 -0
- package/lib/cjs/store/workflow.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 +17 -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 +66 -0
- package/lib/cjs/utils/schemas.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 +36 -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 +12 -0
- package/lib/esm/apikey.js.map +1 -0
- package/lib/esm/common.js +2 -0
- package/lib/esm/common.js.map +1 -0
- package/lib/esm/environment.js +113 -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/index.js +24 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/integrations.js +9 -0
- package/lib/esm/integrations.js.map +1 -0
- package/lib/esm/interaction.js +60 -0
- package/lib/esm/interaction.js.map +1 -0
- package/lib/esm/meters.js +10 -0
- package/lib/esm/meters.js.map +1 -0
- package/lib/esm/payload.js +2 -0
- package/lib/esm/payload.js.map +1 -0
- package/lib/esm/plugin.js +2 -0
- package/lib/esm/plugin.js.map +1 -0
- package/lib/esm/project.js +46 -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/refs.js +9 -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/store/activity-catalog.js +2 -0
- package/lib/esm/store/activity-catalog.js.map +1 -0
- package/lib/esm/store/agent.js +2 -0
- package/lib/esm/store/agent.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/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 +12 -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/signals.js +2 -0
- package/lib/esm/store/signals.js.map +1 -0
- package/lib/esm/store/store.js +15 -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/workflow.js +43 -0
- package/lib/esm/store/workflow.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 +14 -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 +61 -0
- package/lib/esm/utils/schemas.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 +56 -0
- package/lib/types/access-control.d.ts.map +1 -0
- package/lib/types/analytics.d.ts +36 -0
- package/lib/types/analytics.d.ts.map +1 -0
- package/lib/types/apikey.d.ts +54 -0
- package/lib/types/apikey.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/environment.d.ts +80 -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/index.d.ts +23 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integrations.d.ts +28 -0
- package/lib/types/integrations.d.ts.map +1 -0
- package/lib/types/interaction.d.ts +399 -0
- package/lib/types/interaction.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/payload.d.ts +52 -0
- package/lib/types/payload.d.ts.map +1 -0
- package/lib/types/plugin.d.ts +26 -0
- package/lib/types/plugin.d.ts.map +1 -0
- package/lib/types/project.d.ts +103 -0
- package/lib/types/project.d.ts.map +1 -0
- package/lib/types/prompt.d.ts +70 -0
- package/lib/types/prompt.d.ts.map +1 -0
- package/lib/types/query.d.ts +78 -0
- package/lib/types/query.d.ts.map +1 -0
- package/lib/types/refs.d.ts +19 -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/store/activity-catalog.d.ts +26 -0
- package/lib/types/store/activity-catalog.d.ts.map +1 -0
- package/lib/types/store/agent.d.ts +18 -0
- package/lib/types/store/agent.d.ts.map +1 -0
- package/lib/types/store/collections.d.ts +59 -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/doc-analyzer.d.ts +132 -0
- package/lib/types/store/doc-analyzer.d.ts.map +1 -0
- package/lib/types/store/dsl-workflow.d.ts +238 -0
- package/lib/types/store/dsl-workflow.d.ts.map +1 -0
- package/lib/types/store/index.d.ts +11 -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/signals.d.ts +5 -0
- package/lib/types/store/signals.d.ts.map +1 -0
- package/lib/types/store/store.d.ts +269 -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/workflow.d.ts +249 -0
- package/lib/types/store/workflow.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 +27 -0
- package/lib/types/transient-tokens.d.ts.map +1 -0
- package/lib/types/user.d.ts +113 -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 +7 -0
- package/lib/types/utils/schemas.d.ts.map +1 -0
- package/lib/vertesia-common.js +2 -0
- package/lib/vertesia-common.js.map +1 -0
- package/package.json +8 -4
- package/src/environment.ts +1 -1
- package/src/index.ts +0 -1
- package/src/integrations.ts +6 -0
- package/src/interaction.ts +6 -3
- package/src/plugin.ts +14 -0
- package/src/prompt.ts +3 -3
- package/src/store/object-types.ts +3 -4
- package/src/store/store.ts +8 -3
- package/src/store/workflow.ts +22 -5
- package/src/training.ts +1 -1
- package/src/utils/schemas.ts +5 -3
- package/src/utils/advanced-content-processing.ts +0 -32
@@ -0,0 +1,238 @@
|
|
1
|
+
import { StringValue } from "ms";
|
2
|
+
import { BaseObject } from "./common.js";
|
3
|
+
import { WorkflowExecutionPayload } from "./index.js";
|
4
|
+
import { ParentClosePolicyType } from "./temporalio.js";
|
5
|
+
/**
|
6
|
+
* The payload sent when starting a workflow from the temporal client to the workflow instance.
|
7
|
+
*/
|
8
|
+
export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload {
|
9
|
+
/**
|
10
|
+
* The workflow definition to be used by the DSL workflow.
|
11
|
+
* If a dsl workflow is executed and no definition is provided the workflow will fail.
|
12
|
+
*/
|
13
|
+
workflow: DSLWorkflowSpec;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* The payload for a DSL activity options.
|
17
|
+
*
|
18
|
+
* @see ActivityOptions in @temporalio/common
|
19
|
+
*/
|
20
|
+
export interface DSLActivityOptions {
|
21
|
+
startToCloseTimeout?: StringValue | number;
|
22
|
+
scheduleToStartTimeout?: StringValue | number;
|
23
|
+
scheduleToCloseTimeout?: StringValue | number;
|
24
|
+
retry?: DSLRetryPolicy;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* The payload for a DSL retry policy.
|
28
|
+
*
|
29
|
+
* @see RetryPolicy in @temporalio/common
|
30
|
+
*/
|
31
|
+
export interface DSLRetryPolicy {
|
32
|
+
backoffCoefficient?: number;
|
33
|
+
initialInterval?: StringValue | number;
|
34
|
+
maximumAttempts?: number;
|
35
|
+
maximumInterval?: StringValue | number;
|
36
|
+
nonRetryableErrorTypes?: string[];
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* The payload for a DSL activity execution.
|
40
|
+
*/
|
41
|
+
export interface DSLActivityExecutionPayload<ParamsT extends Record<string, any>> extends WorkflowExecutionPayload {
|
42
|
+
activity: DSLActivitySpec;
|
43
|
+
params: ParamsT;
|
44
|
+
workflow_name: string;
|
45
|
+
debug_mode?: boolean;
|
46
|
+
}
|
47
|
+
export type ImportSpec = (string | Record<string, string>)[];
|
48
|
+
export interface ActivityFetchSpec {
|
49
|
+
/**
|
50
|
+
* The data provider name
|
51
|
+
*/
|
52
|
+
type: "document" | "document_type" | "interaction_run";
|
53
|
+
/**
|
54
|
+
* An optional URI to the data source.
|
55
|
+
*/
|
56
|
+
source?: string;
|
57
|
+
/**
|
58
|
+
* The query to be executed by the data provider
|
59
|
+
*/
|
60
|
+
query: Record<string, any>;
|
61
|
+
/**
|
62
|
+
* a string of space separated field names.
|
63
|
+
* Prefix a field name with "-" to exclude it from the result.
|
64
|
+
*/
|
65
|
+
select?: string;
|
66
|
+
/**
|
67
|
+
* The number of results to return. If the result is limited to 1 the result will be a single object
|
68
|
+
*/
|
69
|
+
limit?: number;
|
70
|
+
/**
|
71
|
+
* How to handle not found objects.
|
72
|
+
* 1. ignore - Ignore and return an empty array for multi objects query (or undefined for single object query) or empty array for multiple objects throw an error.
|
73
|
+
* 2. throw - Throw an error if the object or no objects are found.
|
74
|
+
*/
|
75
|
+
on_not_found?: "ignore" | "throw";
|
76
|
+
}
|
77
|
+
export interface DSLWorkflowStepBase {
|
78
|
+
/**
|
79
|
+
* The type fo the step.
|
80
|
+
* If not set defaults to "activity"
|
81
|
+
*/
|
82
|
+
type: "activity" | "workflow";
|
83
|
+
}
|
84
|
+
export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<string, any>> {
|
85
|
+
/**
|
86
|
+
* The name of the activity function
|
87
|
+
*/
|
88
|
+
name: string;
|
89
|
+
/**
|
90
|
+
* Title of the activity to be displayed in the UI workflow builder
|
91
|
+
*/
|
92
|
+
title?: string;
|
93
|
+
/**
|
94
|
+
* The description of the activity to e displayed in the UI workflow builder
|
95
|
+
*/
|
96
|
+
description?: string;
|
97
|
+
/**
|
98
|
+
* Activities parameters. These parameters can be either literals
|
99
|
+
* (hardcoded strings, numbers, booleans, objects, arrays etc.), either
|
100
|
+
* references to the workflow variables.
|
101
|
+
* The workflow variables are built from the workflow params (e.g. the workflow configuration)
|
102
|
+
* and from the result of the previous activities.
|
103
|
+
*/
|
104
|
+
params?: PARAMS;
|
105
|
+
/**
|
106
|
+
* The name of the workflow variable that will store the result of the activity
|
107
|
+
* If not specified the result will not be stored
|
108
|
+
* The parameters describe how the actual parameters will be obtained from the workflow execution vars.
|
109
|
+
* since it may contain references to workflow execution vars.
|
110
|
+
*/
|
111
|
+
output?: string;
|
112
|
+
/**
|
113
|
+
* A JSON expression which evaluate to true or false similar to mongo matches.
|
114
|
+
* We support for now basic expression like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
|
115
|
+
* {$eq: {name: value}},
|
116
|
+
* Ex: {$eq: {wfVarName: value}}
|
117
|
+
*/
|
118
|
+
condition?: Record<string, any>;
|
119
|
+
/**
|
120
|
+
* The import spec is used to import data from workflow variables.
|
121
|
+
* The import spec is a list of variable names to import from the workflow context.
|
122
|
+
* You can also use objects to rename the imported variables, or to reference an expression.
|
123
|
+
* Example:
|
124
|
+
* ["runId", {"typeId": "docType.id"}]
|
125
|
+
*/
|
126
|
+
import?: ImportSpec;
|
127
|
+
/**
|
128
|
+
* The fetch phase is used to fetch data from external sources.
|
129
|
+
*/
|
130
|
+
fetch?: Record<string, ActivityFetchSpec>;
|
131
|
+
/**
|
132
|
+
* Projection to apply to the result. Not all activities support this.
|
133
|
+
*/
|
134
|
+
projection?: never | Record<string, any>;
|
135
|
+
/**
|
136
|
+
* If true the activity will be executed in parallel with the other activities.
|
137
|
+
* (i.e. the workflow will not wait for the activity to finish before starting the next one)
|
138
|
+
*/
|
139
|
+
parallel?: boolean;
|
140
|
+
/**
|
141
|
+
* Await for a parallel activity execution to return.
|
142
|
+
*/
|
143
|
+
await?: string;
|
144
|
+
/**
|
145
|
+
* Activity options for configuring the activity execution, which overrides the activity options
|
146
|
+
* defined at workflow level.
|
147
|
+
*/
|
148
|
+
options?: DSLActivityOptions;
|
149
|
+
}
|
150
|
+
export interface DSLActivityStep<PARAMS extends Record<string, any> = Record<string, any>> extends DSLActivitySpec<PARAMS>, DSLWorkflowStepBase {
|
151
|
+
type: "activity";
|
152
|
+
}
|
153
|
+
export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
154
|
+
type: "workflow";
|
155
|
+
name: string;
|
156
|
+
/**
|
157
|
+
* The parameters to pass to the child workflow.
|
158
|
+
* These parameters will be merged over the parent workflow vars and passed altogether to the child workflow.
|
159
|
+
*/
|
160
|
+
vars?: Record<string, any>;
|
161
|
+
async?: boolean;
|
162
|
+
/**
|
163
|
+
* The name of the workflow variable that will store the result of the child workflow (if async the workflow id is stored)
|
164
|
+
* If not specified the result will not be stored
|
165
|
+
* The parameters describe how the actual parameters will be obtained from the workflow execution vars.
|
166
|
+
* since it may contain references to workflow execution vars.
|
167
|
+
*/
|
168
|
+
output?: string;
|
169
|
+
/**
|
170
|
+
* In case the dslWorkflow is used as a child workflow the spec is used to define the child workflow.
|
171
|
+
* If spec is defined then the name must be "dslWorkflow"
|
172
|
+
*/
|
173
|
+
spec?: DSLWorkflowSpec;
|
174
|
+
options?: {
|
175
|
+
memo?: Record<string, any>;
|
176
|
+
retry?: DSLRetryPolicy;
|
177
|
+
searchAttributes?: Record<string, string[] | number[] | boolean[] | Date[]>;
|
178
|
+
taskQueue?: string;
|
179
|
+
workflowExecutionTimeout?: StringValue | number;
|
180
|
+
workflowRunTimeout?: StringValue | number;
|
181
|
+
workflowTaskTimeout?: StringValue | number;
|
182
|
+
workflowId?: string;
|
183
|
+
cronSchedule?: string;
|
184
|
+
parentClosePolicy?: ParentClosePolicyType;
|
185
|
+
};
|
186
|
+
}
|
187
|
+
export type DSLWorkflowStep = DSLActivityStep | DSLChildWorkflowStep;
|
188
|
+
export interface DSLWorkflowSpecBase {
|
189
|
+
name: string;
|
190
|
+
description?: string;
|
191
|
+
tags?: string[];
|
192
|
+
steps?: DSLWorkflowStep[] | never;
|
193
|
+
/**
|
194
|
+
* @deprecated use steps instead
|
195
|
+
*/
|
196
|
+
activities?: DSLActivitySpec[] | never;
|
197
|
+
vars: Record<string, any>;
|
198
|
+
options?: DSLActivityOptions;
|
199
|
+
result?: string;
|
200
|
+
debug_mode?: boolean;
|
201
|
+
}
|
202
|
+
export interface DSLWorkflowSpecWithSteps extends DSLWorkflowSpecBase {
|
203
|
+
steps: DSLWorkflowStep[];
|
204
|
+
/**
|
205
|
+
* @deprecated use steps instead
|
206
|
+
*/
|
207
|
+
activities?: never;
|
208
|
+
}
|
209
|
+
/**
|
210
|
+
* @deprecated use steps instead
|
211
|
+
*/
|
212
|
+
export interface DSLWorkflowSpecWithActivities extends DSLWorkflowSpecBase {
|
213
|
+
steps?: never;
|
214
|
+
/**
|
215
|
+
* @deprecated use steps instead
|
216
|
+
*/
|
217
|
+
activities: DSLActivitySpec[];
|
218
|
+
}
|
219
|
+
/**
|
220
|
+
* activities and steps fields are mutually exclusive
|
221
|
+
* steps was added after activities and may contain a mix of activities and other tasks like exec child workflows.
|
222
|
+
* For backward compatibility we keep the activities field as a fallback but one should use one or the other not both.
|
223
|
+
*/
|
224
|
+
export type DSLWorkflowSpec = DSLWorkflowSpecWithSteps | DSLWorkflowSpecWithActivities;
|
225
|
+
export interface DSLWorkflowDefinition extends BaseObject, DSLWorkflowSpecBase {
|
226
|
+
input_schema?: Record<string, any>;
|
227
|
+
activities?: DSLActivitySpec[];
|
228
|
+
steps?: DSLWorkflowStep[];
|
229
|
+
}
|
230
|
+
export interface WorkflowDefinitionRef {
|
231
|
+
id: string;
|
232
|
+
name: string;
|
233
|
+
description?: string;
|
234
|
+
tags?: string[];
|
235
|
+
created_at: Date;
|
236
|
+
updated_at: Date;
|
237
|
+
}
|
238
|
+
export declare const WorkflowDefinitionRefPopulate = "id name description tags created_at updated_at";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dsl-workflow.d.ts","sourceRoot":"","sources":["../../../src/store/dsl-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,a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,eAAe,EAAE,GAAG,KAAK,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAIvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE1B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAG7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB;IACtE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,eAAe,EAAE,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,6BAA6B,CAAC;AAEvF,MAAM,WAAW,qBAAsB,SAAQ,UAAU,EAAE,mBAAmB;IAE1E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,6BAA6B,mDAAmD,CAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export * from "./activity-catalog.js";
|
2
|
+
export * from "./agent.js";
|
3
|
+
export * from "./collections.js";
|
4
|
+
export * from "./common.js";
|
5
|
+
export * from "./doc-analyzer.js";
|
6
|
+
export * from "./dsl-workflow.js";
|
7
|
+
export * from "./object-types.js";
|
8
|
+
export * from "./store.js";
|
9
|
+
export * from "./temporalio.js";
|
10
|
+
export * from "./workflow.js";
|
11
|
+
export * from "./signals.js";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { JSONSchemaType } from "ajv";
|
2
|
+
export interface RenditionProperties {
|
3
|
+
mime_type: string;
|
4
|
+
source_etag?: string;
|
5
|
+
height?: number;
|
6
|
+
width?: number;
|
7
|
+
multipart?: boolean;
|
8
|
+
total_parts?: number;
|
9
|
+
}
|
10
|
+
export declare const RenditionSchema: JSONSchemaType<RenditionProperties>;
|
11
|
+
export interface DocumentPartProperties {
|
12
|
+
source_etag?: string;
|
13
|
+
part_number: number;
|
14
|
+
title?: string;
|
15
|
+
source_line_start?: number;
|
16
|
+
source_line_end?: number;
|
17
|
+
type?: 'text' | 'image' | 'table' | 'chart' | 'diagram' | 'code' | 'other';
|
18
|
+
page_number?: number;
|
19
|
+
description?: string;
|
20
|
+
height?: number;
|
21
|
+
width?: number;
|
22
|
+
}
|
23
|
+
export declare const DocumentPartSchema: JSONSchemaType<DocumentPartProperties>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,mBAAmB,CAqC/D,CAAA;AAID,MAAM,WAAW,sBAAsB;IAEnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAElB;AAGD,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,sBAAsB,CAwDrE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/store/signals.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
@@ -0,0 +1,269 @@
|
|
1
|
+
import { SearchPayload } from "../payload.js";
|
2
|
+
import { SupportedEmbeddingTypes } from "../project.js";
|
3
|
+
import { ComplexSearchQuery } from "../query.js";
|
4
|
+
import { BaseObject } from "./common.js";
|
5
|
+
import { RenditionProperties } from "./index.js";
|
6
|
+
export declare enum ContentObjectStatus {
|
7
|
+
created = "created",
|
8
|
+
processing = "processing",// the was created and still processing
|
9
|
+
completed = "completed",
|
10
|
+
failed = "failed",
|
11
|
+
archived = "archived"
|
12
|
+
}
|
13
|
+
export interface Embedding {
|
14
|
+
model: string;
|
15
|
+
values: number[];
|
16
|
+
etag?: string;
|
17
|
+
}
|
18
|
+
export interface ContentObject<T = any> extends ContentObjectItem<T> {
|
19
|
+
text?: string;
|
20
|
+
text_etag?: string;
|
21
|
+
embeddings: Partial<Record<SupportedEmbeddingTypes, Embedding>>;
|
22
|
+
parts?: string[];
|
23
|
+
parts_etag?: string;
|
24
|
+
transcript?: Transcript;
|
25
|
+
}
|
26
|
+
export type ContentNature = "video" | "image" | "audio" | "document" | "code" | "other";
|
27
|
+
export interface Dimensions {
|
28
|
+
width: number;
|
29
|
+
height: number;
|
30
|
+
}
|
31
|
+
export interface Location {
|
32
|
+
latitude: number;
|
33
|
+
longitude: number;
|
34
|
+
}
|
35
|
+
export interface GenerationRunMetadata {
|
36
|
+
id: string;
|
37
|
+
date: string;
|
38
|
+
model: string;
|
39
|
+
target?: string;
|
40
|
+
}
|
41
|
+
export interface ContentMetadata {
|
42
|
+
type?: ContentNature;
|
43
|
+
size?: number;
|
44
|
+
languages?: string[];
|
45
|
+
location?: Location;
|
46
|
+
generation_runs: GenerationRunMetadata[];
|
47
|
+
etag?: string;
|
48
|
+
}
|
49
|
+
export interface TemporalMediaMetadata extends ContentMetadata {
|
50
|
+
duration?: number;
|
51
|
+
transcript?: Transcript;
|
52
|
+
}
|
53
|
+
export interface ImageMetadata extends ContentMetadata {
|
54
|
+
type: "image";
|
55
|
+
dimensions?: Dimensions;
|
56
|
+
}
|
57
|
+
export interface AudioMetadata extends TemporalMediaMetadata {
|
58
|
+
type: "audio";
|
59
|
+
}
|
60
|
+
export interface VideoMetadata extends TemporalMediaMetadata {
|
61
|
+
type: "video";
|
62
|
+
dimensions?: Dimensions;
|
63
|
+
}
|
64
|
+
export interface DocumentMetadata extends ContentMetadata {
|
65
|
+
type: "document";
|
66
|
+
page_count?: number;
|
67
|
+
content_processor?: {
|
68
|
+
type?: string;
|
69
|
+
features_requested?: string[];
|
70
|
+
zones_requested?: string[];
|
71
|
+
table_count?: number;
|
72
|
+
image_count: number;
|
73
|
+
zone_count: number;
|
74
|
+
needs_ocr_count?: number;
|
75
|
+
};
|
76
|
+
}
|
77
|
+
export interface Transcript {
|
78
|
+
text?: string;
|
79
|
+
segments?: TranscriptSegment[];
|
80
|
+
etag?: string;
|
81
|
+
}
|
82
|
+
export interface TranscriptSegment {
|
83
|
+
start: number;
|
84
|
+
text: string;
|
85
|
+
speaker?: number;
|
86
|
+
end?: number;
|
87
|
+
confidence?: number;
|
88
|
+
language?: string;
|
89
|
+
}
|
90
|
+
export interface ContentSource {
|
91
|
+
source?: string;
|
92
|
+
type?: string;
|
93
|
+
name?: string;
|
94
|
+
etag?: string;
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
*
|
98
|
+
*/
|
99
|
+
export interface RevisionInfo {
|
100
|
+
/** Direct parent revision id (omit on the first revision) */
|
101
|
+
parent?: string;
|
102
|
+
/** The root revision id (omit on the first revision) */
|
103
|
+
root: string;
|
104
|
+
/** True if this revision is the head revision */
|
105
|
+
head: boolean;
|
106
|
+
/** Human‑friendly tag or state ("v1.2", "approved") */
|
107
|
+
label?: string;
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* The content object item is a simplified version of the ContentObject that is returned by the store API when listing objects.
|
111
|
+
*/
|
112
|
+
export interface ContentObjectItem<T = Record<string, any>> extends BaseObject {
|
113
|
+
parent: string;
|
114
|
+
/** An optional path based location for the object */
|
115
|
+
location: string;
|
116
|
+
/**
|
117
|
+
* Object status.
|
118
|
+
* - created: the object was created and is being processed
|
119
|
+
* - processing: the object is being processed
|
120
|
+
* - completed: the object was processed and is ready to use
|
121
|
+
* - failed: the object processing failed
|
122
|
+
* - archived: the object was archived and is no longer available
|
123
|
+
*/
|
124
|
+
status: ContentObjectStatus;
|
125
|
+
/**
|
126
|
+
* Object type id.
|
127
|
+
*/
|
128
|
+
type?: ContentObjectTypeRef;
|
129
|
+
/**
|
130
|
+
* Content source information, typically a link to an object store
|
131
|
+
*/
|
132
|
+
content: ContentSource;
|
133
|
+
/**
|
134
|
+
* External identifier for integration with other systems
|
135
|
+
*/
|
136
|
+
external_id?: string;
|
137
|
+
/** The object properties. This is a JSON object that describes the object, matching the object type schema */
|
138
|
+
properties: T;
|
139
|
+
/** Technical metadata of the object */
|
140
|
+
metadata?: VideoMetadata | AudioMetadata | ImageMetadata | DocumentMetadata | ContentMetadata;
|
141
|
+
/** Token information */
|
142
|
+
tokens?: {
|
143
|
+
count: number;
|
144
|
+
encoding: string;
|
145
|
+
etag: string;
|
146
|
+
};
|
147
|
+
/**
|
148
|
+
* Revision information. This is used to track the history of the object.
|
149
|
+
*/
|
150
|
+
revision: RevisionInfo;
|
151
|
+
/**
|
152
|
+
* Soft delete flag. When true, the object should be considered deleted
|
153
|
+
* but is still retained in the database for historical purposes.
|
154
|
+
*/
|
155
|
+
is_deleted?: boolean;
|
156
|
+
/**
|
157
|
+
* Soft lock flag. When true, the object should be considered read-only
|
158
|
+
* and modification attempts should be rejected.
|
159
|
+
*/
|
160
|
+
is_locked?: boolean;
|
161
|
+
}
|
162
|
+
/**
|
163
|
+
* When creating from an uploaded file the content should be an URL to the uploaded file
|
164
|
+
*/
|
165
|
+
export interface CreateContentObjectPayload<T = any> extends Partial<Omit<ContentObject<T>, "id" | "root" | "created_at" | "updated_at" | "type" | "owner">> {
|
166
|
+
id?: string;
|
167
|
+
type?: string;
|
168
|
+
generation_run_info?: GenerationRunMetadata;
|
169
|
+
}
|
170
|
+
export interface ContentObjectTypeRef {
|
171
|
+
id: string;
|
172
|
+
name: string;
|
173
|
+
}
|
174
|
+
export interface ComplexSearchPayload extends Omit<SearchPayload, "query"> {
|
175
|
+
query?: ComplexSearchQuery;
|
176
|
+
}
|
177
|
+
export interface ColumnLayout {
|
178
|
+
/**
|
179
|
+
* The path of the field to use (e.g. "properties.title")
|
180
|
+
*/
|
181
|
+
field: string;
|
182
|
+
/**
|
183
|
+
* The name to display in the table column
|
184
|
+
*/
|
185
|
+
name: string;
|
186
|
+
/**
|
187
|
+
* The type of the field specifies how the rendering will be done. If not specified the string type will be used.
|
188
|
+
* The type may contain additional parameters prepended using a web-like query string syntax: date?LLL
|
189
|
+
*/
|
190
|
+
type?: string;
|
191
|
+
fallback?: string;
|
192
|
+
/**
|
193
|
+
* A default value to be used if the field is not present in the object
|
194
|
+
*/
|
195
|
+
default?: any;
|
196
|
+
}
|
197
|
+
export interface ContentObjectType extends ContentObjectTypeItem {
|
198
|
+
}
|
199
|
+
export interface ContentObjectTypeItem extends BaseObject {
|
200
|
+
is_chunkable?: boolean;
|
201
|
+
/**
|
202
|
+
* This is only included in ContentObjectTypeItem if explicitly requested
|
203
|
+
* It is always included in ContentObjectType
|
204
|
+
*/
|
205
|
+
table_layout?: ColumnLayout[];
|
206
|
+
/**
|
207
|
+
* this is only included in ContentObjectTypeItem if explicitly requested
|
208
|
+
* It is always included in ContentObjectType
|
209
|
+
*/
|
210
|
+
object_schema?: Record<string, any>;
|
211
|
+
/**
|
212
|
+
* Determines if the content will be validated against the object schema a generation time and save/update time.
|
213
|
+
*/
|
214
|
+
strict_mode?: boolean;
|
215
|
+
}
|
216
|
+
export interface CreateContentObjectTypePayload extends Omit<ContentObjectType, "id" | "created_at" | "updated_at" | "created_by" | "updated_by"> {
|
217
|
+
}
|
218
|
+
export declare enum WorkflowRuleInputType {
|
219
|
+
single = "single",
|
220
|
+
multiple = "multiple",
|
221
|
+
none = "none"
|
222
|
+
}
|
223
|
+
export interface WorkflowRuleItem extends BaseObject {
|
224
|
+
endpoint: string;
|
225
|
+
input_type: WorkflowRuleInputType;
|
226
|
+
}
|
227
|
+
export interface WorkflowRule extends WorkflowRuleItem {
|
228
|
+
match?: Record<string, any>;
|
229
|
+
/**
|
230
|
+
* Activities configuration if any.
|
231
|
+
*/
|
232
|
+
config?: Record<string, any>;
|
233
|
+
/**
|
234
|
+
* Debug mode for the rule
|
235
|
+
* @default false
|
236
|
+
*/
|
237
|
+
debug?: boolean;
|
238
|
+
/**
|
239
|
+
* Customer override for the rule
|
240
|
+
* When set to true the rule will not be updated by the system
|
241
|
+
*/
|
242
|
+
customer_override?: boolean;
|
243
|
+
}
|
244
|
+
export interface CreateWorkflowRulePayload extends UploadWorkflowRulePayload {
|
245
|
+
name: string;
|
246
|
+
endpoint: string;
|
247
|
+
}
|
248
|
+
export interface UploadWorkflowRulePayload extends Partial<Omit<WorkflowRule, "id" | "created_at" | "updated_at" | "owner">> {
|
249
|
+
}
|
250
|
+
export interface GetRenditionResponse {
|
251
|
+
status: "found" | "generating" | "failed";
|
252
|
+
rendition?: ContentObject<RenditionProperties>;
|
253
|
+
workflow_run_id?: string;
|
254
|
+
}
|
255
|
+
export interface GetUploadUrlPayload {
|
256
|
+
name: string;
|
257
|
+
id?: string;
|
258
|
+
mime_type?: string;
|
259
|
+
ttl?: number;
|
260
|
+
}
|
261
|
+
export interface GetFileUrlPayload {
|
262
|
+
file: string;
|
263
|
+
}
|
264
|
+
export interface GetFileUrlResponse {
|
265
|
+
url: string;
|
266
|
+
id: string;
|
267
|
+
mime_type: string;
|
268
|
+
path: string;
|
269
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,C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AAED,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Copied from temporalio
|
3
|
+
* The temporalio ParentClosePolicy
|
4
|
+
*/
|
5
|
+
export type ParentClosePolicyType = "TERMINATE" | "ABANDON" | "REQUEST_CANCEL" | undefined;
|
6
|
+
interface ParentClosePolicyI {
|
7
|
+
TERMINATE: "TERMINATE";
|
8
|
+
ABANDON: "ABANDON";
|
9
|
+
REQUEST_CANCEL: "REQUEST_CANCEL";
|
10
|
+
PARENT_CLOSE_POLICY_UNSPECIFIED: undefined;
|
11
|
+
PARENT_CLOSE_POLICY_TERMINATE: "TERMINATE";
|
12
|
+
PARENT_CLOSE_POLICY_ABANDON: "ABANDON";
|
13
|
+
PARENT_CLOSE_POLICY_REQUEST_CANCEL: "REQUEST_CANCEL";
|
14
|
+
}
|
15
|
+
export declare const ParentClosePolicy: ParentClosePolicyI;
|
16
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"temporalio.d.ts","sourceRoot":"","sources":["../../../src/store/temporalio.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAC3F,UAAU,kBAAkB;IACxB,SAAS,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,gBAAgB,CAAC;IACjC,+BAA+B,EAAE,SAAS,CAAC;IAC3C,6BAA6B,EAAE,WAAW,CAAC;IAC3C,2BAA2B,EAAE,SAAS,CAAC;IACvC,kCAAkC,EAAE,gBAAgB,CAAA;CACvD;AACD,eAAO,MAAM,iBAAiB,EAuCzB,kBAAkB,CAAC"}
|