@vertesia/common 0.51.0 → 0.54.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/package.json +3 -3
- package/src/apikey.ts +1 -1
- package/src/common.ts +3 -0
- package/src/index.ts +1 -1
- package/src/integrations.ts +1 -1
- package/src/interaction.ts +263 -40
- package/src/meters.ts +9 -3
- package/src/payload.ts +15 -3
- package/src/plugin.ts +12 -0
- package/src/project.ts +8 -0
- package/src/prompt.ts +1 -1
- package/src/query.ts +5 -3
- package/src/runs.ts +11 -2
- package/src/store/activity-catalog.ts +2 -2
- package/src/store/agent.ts +1 -1
- package/src/store/collections.ts +9 -3
- package/src/store/common.ts +21 -1
- package/src/store/doc-analyzer.ts +80 -20
- package/src/store/dsl-workflow.ts +9 -9
- package/src/store/index.ts +1 -0
- package/src/store/signals.ts +5 -0
- package/src/store/store.ts +118 -52
- package/src/store/workflow.ts +173 -67
- package/src/user.ts +0 -2
- package/src/utils/schemas.ts +18 -1
- package/lib/cjs/Progress.js +0 -61
- package/lib/cjs/Progress.js.map +0 -1
- package/lib/cjs/access-control.js +0 -39
- package/lib/cjs/access-control.js.map +0 -1
- package/lib/cjs/analytics.js +0 -3
- package/lib/cjs/analytics.js.map +0 -1
- package/lib/cjs/apikey.js +0 -15
- package/lib/cjs/apikey.js.map +0 -1
- package/lib/cjs/common.js +0 -3
- package/lib/cjs/common.js.map +0 -1
- package/lib/cjs/environment.js +0 -116
- package/lib/cjs/environment.js.map +0 -1
- package/lib/cjs/facets.js +0 -3
- package/lib/cjs/facets.js.map +0 -1
- package/lib/cjs/index.js +0 -40
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/integrations.js +0 -11
- package/lib/cjs/integrations.js.map +0 -1
- package/lib/cjs/interaction.js +0 -63
- package/lib/cjs/interaction.js.map +0 -1
- package/lib/cjs/meters.js +0 -13
- package/lib/cjs/meters.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/payload.js +0 -3
- package/lib/cjs/payload.js.map +0 -1
- package/lib/cjs/project.js +0 -50
- package/lib/cjs/project.js.map +0 -1
- package/lib/cjs/prompt.js +0 -21
- package/lib/cjs/prompt.js.map +0 -1
- package/lib/cjs/query.js +0 -3
- package/lib/cjs/query.js.map +0 -1
- package/lib/cjs/refs.js +0 -12
- package/lib/cjs/refs.js.map +0 -1
- package/lib/cjs/runs.js +0 -3
- package/lib/cjs/runs.js.map +0 -1
- package/lib/cjs/store/activity-catalog.js +0 -3
- package/lib/cjs/store/activity-catalog.js.map +0 -1
- package/lib/cjs/store/agent.js +0 -3
- package/lib/cjs/store/agent.js.map +0 -1
- package/lib/cjs/store/collections.js +0 -9
- package/lib/cjs/store/collections.js.map +0 -1
- package/lib/cjs/store/common.js +0 -3
- package/lib/cjs/store/common.js.map +0 -1
- package/lib/cjs/store/doc-analyzer.js +0 -3
- package/lib/cjs/store/doc-analyzer.js.map +0 -1
- package/lib/cjs/store/dsl-workflow.js +0 -5
- package/lib/cjs/store/dsl-workflow.js.map +0 -1
- package/lib/cjs/store/index.js +0 -27
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/object-types.js +0 -98
- package/lib/cjs/store/object-types.js.map +0 -1
- package/lib/cjs/store/store.js +0 -18
- package/lib/cjs/store/store.js.map +0 -1
- package/lib/cjs/store/temporalio.js +0 -44
- package/lib/cjs/store/temporalio.js.map +0 -1
- package/lib/cjs/store/workflow.js +0 -24
- package/lib/cjs/store/workflow.js.map +0 -1
- package/lib/cjs/training.js +0 -14
- package/lib/cjs/training.js.map +0 -1
- package/lib/cjs/transient-tokens.js +0 -9
- package/lib/cjs/transient-tokens.js.map +0 -1
- package/lib/cjs/user.js +0 -17
- package/lib/cjs/user.js.map +0 -1
- package/lib/cjs/utils/advanced-content-processing.js +0 -25
- package/lib/cjs/utils/advanced-content-processing.js.map +0 -1
- package/lib/cjs/utils/auth.js +0 -15
- package/lib/cjs/utils/auth.js.map +0 -1
- package/lib/cjs/utils/schemas.js +0 -48
- package/lib/cjs/utils/schemas.js.map +0 -1
- package/lib/esm/Progress.js +0 -57
- package/lib/esm/Progress.js.map +0 -1
- package/lib/esm/access-control.js +0 -36
- package/lib/esm/access-control.js.map +0 -1
- package/lib/esm/analytics.js +0 -2
- package/lib/esm/analytics.js.map +0 -1
- package/lib/esm/apikey.js +0 -12
- package/lib/esm/apikey.js.map +0 -1
- package/lib/esm/common.js +0 -2
- package/lib/esm/common.js.map +0 -1
- package/lib/esm/environment.js +0 -113
- package/lib/esm/environment.js.map +0 -1
- package/lib/esm/facets.js +0 -2
- package/lib/esm/facets.js.map +0 -1
- package/lib/esm/index.js +0 -24
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/integrations.js +0 -8
- package/lib/esm/integrations.js.map +0 -1
- package/lib/esm/interaction.js +0 -60
- package/lib/esm/interaction.js.map +0 -1
- package/lib/esm/meters.js +0 -10
- package/lib/esm/meters.js.map +0 -1
- package/lib/esm/payload.js +0 -2
- package/lib/esm/payload.js.map +0 -1
- package/lib/esm/project.js +0 -46
- package/lib/esm/project.js.map +0 -1
- package/lib/esm/prompt.js +0 -18
- package/lib/esm/prompt.js.map +0 -1
- package/lib/esm/query.js +0 -2
- package/lib/esm/query.js.map +0 -1
- package/lib/esm/refs.js +0 -9
- package/lib/esm/refs.js.map +0 -1
- package/lib/esm/runs.js +0 -2
- package/lib/esm/runs.js.map +0 -1
- package/lib/esm/store/activity-catalog.js +0 -2
- package/lib/esm/store/activity-catalog.js.map +0 -1
- package/lib/esm/store/agent.js +0 -2
- package/lib/esm/store/agent.js.map +0 -1
- package/lib/esm/store/collections.js +0 -6
- package/lib/esm/store/collections.js.map +0 -1
- package/lib/esm/store/common.js +0 -2
- package/lib/esm/store/common.js.map +0 -1
- package/lib/esm/store/doc-analyzer.js +0 -2
- package/lib/esm/store/doc-analyzer.js.map +0 -1
- package/lib/esm/store/dsl-workflow.js +0 -2
- package/lib/esm/store/dsl-workflow.js.map +0 -1
- package/lib/esm/store/index.js +0 -11
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/object-types.js +0 -95
- package/lib/esm/store/object-types.js.map +0 -1
- package/lib/esm/store/store.js +0 -15
- package/lib/esm/store/store.js.map +0 -1
- package/lib/esm/store/temporalio.js +0 -41
- package/lib/esm/store/temporalio.js.map +0 -1
- package/lib/esm/store/workflow.js +0 -21
- package/lib/esm/store/workflow.js.map +0 -1
- package/lib/esm/training.js +0 -11
- package/lib/esm/training.js.map +0 -1
- package/lib/esm/transient-tokens.js +0 -6
- package/lib/esm/transient-tokens.js.map +0 -1
- package/lib/esm/user.js +0 -14
- package/lib/esm/user.js.map +0 -1
- package/lib/esm/utils/advanced-content-processing.js +0 -19
- package/lib/esm/utils/advanced-content-processing.js.map +0 -1
- package/lib/esm/utils/auth.js +0 -11
- package/lib/esm/utils/auth.js.map +0 -1
- package/lib/esm/utils/schemas.js +0 -44
- package/lib/esm/utils/schemas.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/Progress.d.ts +0 -22
- package/lib/types/Progress.d.ts.map +0 -1
- package/lib/types/access-control.d.ts +0 -57
- package/lib/types/access-control.d.ts.map +0 -1
- package/lib/types/analytics.d.ts +0 -37
- package/lib/types/analytics.d.ts.map +0 -1
- package/lib/types/apikey.d.ts +0 -55
- package/lib/types/apikey.d.ts.map +0 -1
- package/lib/types/common.d.ts +0 -29
- package/lib/types/common.d.ts.map +0 -1
- package/lib/types/environment.d.ts +0 -81
- package/lib/types/environment.d.ts.map +0 -1
- package/lib/types/facets.d.ts +0 -35
- package/lib/types/facets.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -24
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/integrations.d.ts +0 -24
- package/lib/types/integrations.d.ts.map +0 -1
- package/lib/types/interaction.d.ts +0 -230
- package/lib/types/interaction.d.ts.map +0 -1
- package/lib/types/meters.d.ts +0 -17
- package/lib/types/meters.d.ts.map +0 -1
- package/lib/types/payload.d.ts +0 -50
- package/lib/types/payload.d.ts.map +0 -1
- package/lib/types/project.d.ts +0 -96
- package/lib/types/project.d.ts.map +0 -1
- package/lib/types/prompt.d.ts +0 -71
- package/lib/types/prompt.d.ts.map +0 -1
- package/lib/types/query.d.ts +0 -77
- package/lib/types/query.d.ts.map +0 -1
- package/lib/types/refs.d.ts +0 -20
- package/lib/types/refs.d.ts.map +0 -1
- package/lib/types/runs.d.ts +0 -25
- package/lib/types/runs.d.ts.map +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -27
- package/lib/types/store/activity-catalog.d.ts.map +0 -1
- package/lib/types/store/agent.d.ts +0 -19
- package/lib/types/store/agent.d.ts.map +0 -1
- package/lib/types/store/collections.d.ts +0 -55
- package/lib/types/store/collections.d.ts.map +0 -1
- package/lib/types/store/common.d.ts +0 -11
- package/lib/types/store/common.d.ts.map +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -84
- package/lib/types/store/doc-analyzer.d.ts.map +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -239
- package/lib/types/store/dsl-workflow.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -11
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/object-types.d.ts +0 -24
- package/lib/types/store/object-types.d.ts.map +0 -1
- package/lib/types/store/store.d.ts +0 -211
- package/lib/types/store/store.d.ts.map +0 -1
- package/lib/types/store/temporalio.d.ts +0 -17
- package/lib/types/store/temporalio.d.ts.map +0 -1
- package/lib/types/store/workflow.d.ts +0 -147
- package/lib/types/store/workflow.d.ts.map +0 -1
- package/lib/types/training.d.ts +0 -39
- package/lib/types/training.d.ts.map +0 -1
- package/lib/types/transient-tokens.d.ts +0 -28
- package/lib/types/transient-tokens.d.ts.map +0 -1
- package/lib/types/user.d.ts +0 -116
- package/lib/types/user.d.ts.map +0 -1
- package/lib/types/utils/advanced-content-processing.d.ts +0 -16
- package/lib/types/utils/advanced-content-processing.d.ts.map +0 -1
- package/lib/types/utils/auth.d.ts +0 -4
- package/lib/types/utils/auth.d.ts.map +0 -1
- package/lib/types/utils/schemas.d.ts +0 -6
- package/lib/types/utils/schemas.d.ts.map +0 -1
@@ -1,239 +0,0 @@
|
|
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 acitivty 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 optinal 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 limitedto 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 objectthrow 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, obejcts, 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 worlkfow 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 fow now basic expreion 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 worlkfow 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 mutally 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";
|
239
|
-
//# sourceMappingURL=dsl-workflow.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dsl-workfl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A6B,mDAAmD,CAAA"}
|
@@ -1,11 +0,0 @@
|
|
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
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { 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>;
|
24
|
-
//# sourceMappingURL=object-types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIpC,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"}
|
@@ -1,211 +0,0 @@
|
|
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
|
-
language?: string;
|
88
|
-
confidence?: number;
|
89
|
-
}
|
90
|
-
export interface ContentSource {
|
91
|
-
source?: string;
|
92
|
-
type?: string;
|
93
|
-
name?: string;
|
94
|
-
etag?: string;
|
95
|
-
}
|
96
|
-
/**
|
97
|
-
* The content object item is a simplified version of the ContentObject that is returned by the store API when listing objects.
|
98
|
-
*/
|
99
|
-
export interface ContentObjectItem<T = any> extends BaseObject {
|
100
|
-
root?: string;
|
101
|
-
parent: string;
|
102
|
-
location: string;
|
103
|
-
status: ContentObjectStatus;
|
104
|
-
type?: ContentObjectTypeRef;
|
105
|
-
content: ContentSource;
|
106
|
-
external_id?: string;
|
107
|
-
properties: T | Record<string, any>;
|
108
|
-
metadata?: VideoMetadata | AudioMetadata | ImageMetadata | DocumentMetadata | ContentMetadata;
|
109
|
-
tokens?: {
|
110
|
-
count: number;
|
111
|
-
encoding: string;
|
112
|
-
etag: string;
|
113
|
-
};
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* When creating from an uploaded file the content shouild be an URL to the uploaded file
|
117
|
-
*/
|
118
|
-
export interface CreateContentObjectPayload<T = any> extends Partial<Omit<ContentObject<T>, 'id' | 'root' | 'created_at' | 'updated_at' | 'type' | 'owner'>> {
|
119
|
-
id?: string;
|
120
|
-
type?: string;
|
121
|
-
generation_run_info?: GenerationRunMetadata;
|
122
|
-
}
|
123
|
-
export interface ContentObjectTypeRef {
|
124
|
-
id: string;
|
125
|
-
name: string;
|
126
|
-
}
|
127
|
-
export interface ComplexSearchPayload extends Omit<SearchPayload, 'query'> {
|
128
|
-
query?: ComplexSearchQuery;
|
129
|
-
}
|
130
|
-
export interface ColumnLayout {
|
131
|
-
/**
|
132
|
-
* The path of the field to use (e.g. "properties.title")
|
133
|
-
*/
|
134
|
-
field: string;
|
135
|
-
/**
|
136
|
-
* The name to display in the table column
|
137
|
-
*/
|
138
|
-
name: string;
|
139
|
-
/**
|
140
|
-
* The type of the field specifies how the rendering will be done. If not specified the string type will be used.
|
141
|
-
* The type may contain additional parameters prepended using a web-like query string syntax: date?LLL
|
142
|
-
*/
|
143
|
-
type?: string;
|
144
|
-
fallback?: string;
|
145
|
-
/**
|
146
|
-
* A default value to be used if the field is not present in the object
|
147
|
-
*/
|
148
|
-
default?: any;
|
149
|
-
}
|
150
|
-
export interface ContentObjectType extends ContentObjectTypeItem {
|
151
|
-
object_schema?: Record<string, any>;
|
152
|
-
}
|
153
|
-
export interface ContentObjectTypeItem extends BaseObject {
|
154
|
-
is_chunkable?: boolean;
|
155
|
-
table_layout?: ColumnLayout[];
|
156
|
-
}
|
157
|
-
export interface CreateContentObjectTypePayload extends Omit<ContentObjectType, 'id' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by'> {
|
158
|
-
}
|
159
|
-
export declare enum WorkflowRuleInputType {
|
160
|
-
single = "single",
|
161
|
-
multiple = "multiple",
|
162
|
-
none = "none"
|
163
|
-
}
|
164
|
-
export interface WorkflowRuleItem extends BaseObject {
|
165
|
-
endpoint: string;
|
166
|
-
input_type: WorkflowRuleInputType;
|
167
|
-
}
|
168
|
-
export interface WorkflowRule extends WorkflowRuleItem {
|
169
|
-
match?: Record<string, any>;
|
170
|
-
/**
|
171
|
-
* Activities configuration if any.
|
172
|
-
*/
|
173
|
-
config?: Record<string, any>;
|
174
|
-
/**
|
175
|
-
* Debug mode for the rule
|
176
|
-
* @default false
|
177
|
-
*/
|
178
|
-
debug?: boolean;
|
179
|
-
/**
|
180
|
-
* Customer override for the rule
|
181
|
-
* When set to true the rule will not be updated by the system
|
182
|
-
*/
|
183
|
-
customer_override?: boolean;
|
184
|
-
}
|
185
|
-
export interface CreateWorkflowRulePayload extends UploadWorkflowRulePayload {
|
186
|
-
name: string;
|
187
|
-
endpoint: string;
|
188
|
-
}
|
189
|
-
export interface UploadWorkflowRulePayload extends Partial<Omit<WorkflowRule, 'id' | 'created_at' | 'updated_at' | 'owner'>> {
|
190
|
-
}
|
191
|
-
export interface GetRenditionResponse {
|
192
|
-
status: 'found' | 'generating' | 'failed';
|
193
|
-
rendition?: ContentObject<RenditionProperties>;
|
194
|
-
workflow_run_id?: string;
|
195
|
-
}
|
196
|
-
export interface GetUploadUrlPayload {
|
197
|
-
name: string;
|
198
|
-
id?: string;
|
199
|
-
mime_type?: string;
|
200
|
-
ttl?: number;
|
201
|
-
}
|
202
|
-
export interface GetFileUrlPayload {
|
203
|
-
file: string;
|
204
|
-
}
|
205
|
-
export interface GetFileUrlResponse {
|
206
|
-
url: string;
|
207
|
-
id: string;
|
208
|
-
mime_type: string;
|
209
|
-
path: string;
|
210
|
-
}
|
211
|
-
//# sourceMappingURL=store.d.ts.map
|
@@ -1 +0,0 @@
|
|
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,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,oBAAY,mBAAmB;IAC3B,OAAO,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Q,yBAAyB;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,yBAA0B,SAAQ,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC;CAC3H;AAED,MAAM,WAAW,oBAAoB;IAEjC,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC1C,SAAS,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;CAChB;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"}
|
@@ -1,17 +0,0 @@
|
|
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 {};
|
17
|
-
//# sourceMappingURL=temporalio.d.ts.map
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,147 +0,0 @@
|
|
1
|
-
export declare enum ContentEventName {
|
2
|
-
create = "create",
|
3
|
-
change_type = "change_type",
|
4
|
-
update = "update",
|
5
|
-
delete = "delete",
|
6
|
-
workflow_finished = "workflow_finished",
|
7
|
-
workflow_execution_request = "workflow_execution_request"
|
8
|
-
}
|
9
|
-
export interface WorkflowExecutionBaseParams<T = Record<string, any>> {
|
10
|
-
/**
|
11
|
-
* The ref of the user who initiated the workflow.
|
12
|
-
*/
|
13
|
-
initiated_by?: string;
|
14
|
-
/**
|
15
|
-
* The account ID of the user who created the activity.
|
16
|
-
* This is usefull to select the right database to work on.
|
17
|
-
*/
|
18
|
-
account_id: string;
|
19
|
-
/**
|
20
|
-
* The project ID of the account who created the activity.
|
21
|
-
*/
|
22
|
-
project_id: string;
|
23
|
-
/**
|
24
|
-
* The vars field is mainly used to pass the user input to the workflow.
|
25
|
-
* The user input ar custom user options that can be used to configure the workflow.
|
26
|
-
* You can see the user input as the arguments for a command line app.
|
27
|
-
*
|
28
|
-
* In the case of workflows started by events (e.g. using a a workflow rule) the user input vars will be initialized with the workflow rule configuration field.
|
29
|
-
*
|
30
|
-
* In case of dsl workflows the worflow execution payload vars will be applied over the default vars values stored in the DSL vars field.
|
31
|
-
*/
|
32
|
-
vars: T;
|
33
|
-
/**
|
34
|
-
* Auth Token to access Zeno and Composable from the workers
|
35
|
-
*/
|
36
|
-
auth_token?: string;
|
37
|
-
/**
|
38
|
-
* The configuration for the workflow execution.
|
39
|
-
*/
|
40
|
-
config?: {
|
41
|
-
studio_url: string;
|
42
|
-
store_url: string;
|
43
|
-
enabled_integrations?: string[];
|
44
|
-
};
|
45
|
-
}
|
46
|
-
export interface WorkflowExecutionPayload<T = Record<string, any>> extends WorkflowExecutionBaseParams<T> {
|
47
|
-
/**
|
48
|
-
* The event which started the workflow who created the activity.
|
49
|
-
*/
|
50
|
-
event: ContentEventName;
|
51
|
-
wf_rule_name?: string;
|
52
|
-
/**
|
53
|
-
* The ID of the target objects processed by the workflow.
|
54
|
-
*/
|
55
|
-
objectIds: string[];
|
56
|
-
/**
|
57
|
-
* Auth Token to access Zeno and Composable from the workers
|
58
|
-
*/
|
59
|
-
auth_token: string;
|
60
|
-
/**
|
61
|
-
* The configuration for the workflow execution.
|
62
|
-
*/
|
63
|
-
config?: {
|
64
|
-
studio_url: string;
|
65
|
-
store_url: string;
|
66
|
-
enabled_integrations?: string[];
|
67
|
-
};
|
68
|
-
}
|
69
|
-
export interface ExecuteWorkflowPayload {
|
70
|
-
task_queue?: string;
|
71
|
-
objectIds?: string[];
|
72
|
-
vars?: Record<string, any>;
|
73
|
-
}
|
74
|
-
export interface ListWorkflowRunsPayload {
|
75
|
-
document_id?: string;
|
76
|
-
event_name?: string;
|
77
|
-
rule_id?: string;
|
78
|
-
start?: string;
|
79
|
-
end?: string;
|
80
|
-
status?: string;
|
81
|
-
search_term?: string;
|
82
|
-
initiated_by?: string;
|
83
|
-
}
|
84
|
-
interface WorkflowRunEvent {
|
85
|
-
event_id: number;
|
86
|
-
event_time: number;
|
87
|
-
event_type: string;
|
88
|
-
task_id: string;
|
89
|
-
attempt: number;
|
90
|
-
activity?: {
|
91
|
-
name: string;
|
92
|
-
id: string;
|
93
|
-
input?: any;
|
94
|
-
};
|
95
|
-
error?: {
|
96
|
-
message: string;
|
97
|
-
source: string;
|
98
|
-
stacktrace: string;
|
99
|
-
type?: string;
|
100
|
-
};
|
101
|
-
result?: any;
|
102
|
-
}
|
103
|
-
export interface WorkflowRun {
|
104
|
-
status?: WorkflowExecutionStatus | string;
|
105
|
-
type?: string;
|
106
|
-
started_at?: number;
|
107
|
-
closed_at?: number;
|
108
|
-
execution_duration?: number;
|
109
|
-
run_id?: string;
|
110
|
-
workflow_id?: string;
|
111
|
-
initiated_by?: string;
|
112
|
-
raw?: any;
|
113
|
-
}
|
114
|
-
export interface WorkflowRunWithDetails extends WorkflowRun {
|
115
|
-
history?: WorkflowRunEvent[];
|
116
|
-
}
|
117
|
-
export interface ListWorkflowRunsResponse {
|
118
|
-
runs: WorkflowRun[];
|
119
|
-
}
|
120
|
-
export interface MultiDocumentsInteractionParams extends Omit<WorkflowExecutionPayload, 'config'> {
|
121
|
-
config: {
|
122
|
-
interactionName: string;
|
123
|
-
action: DocumentActionConfig;
|
124
|
-
data: Record<string, any>;
|
125
|
-
};
|
126
|
-
}
|
127
|
-
export interface DocumentActionConfig {
|
128
|
-
contentTypeName?: string;
|
129
|
-
setAsProperties: boolean;
|
130
|
-
setAsText: string;
|
131
|
-
setNameFrom: string;
|
132
|
-
upsert: boolean;
|
133
|
-
documentId?: string;
|
134
|
-
parentId?: string;
|
135
|
-
}
|
136
|
-
export declare enum WorkflowExecutionStatus {
|
137
|
-
UNKNOWN = 0,
|
138
|
-
RUNNING = 1,
|
139
|
-
COMPLETED = 2,
|
140
|
-
FAILED = 3,
|
141
|
-
CANCELED = 4,
|
142
|
-
TERMINATED = 5,
|
143
|
-
CONTINUED_AS_NEW = 6,
|
144
|
-
TIMED_OUT = 7
|
145
|
-
}
|
146
|
-
export {};
|
147
|
-
//# sourceMappingURL=workflow.d.ts.map
|