@vertesia/common 0.52.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 +1 -1
- package/src/apikey.ts +1 -1
- package/src/common.ts +2 -0
- package/src/index.ts +1 -1
- package/src/integrations.ts +1 -1
- package/src/interaction.ts +23 -5
- package/src/payload.ts +15 -3
- package/src/plugin.ts +12 -0
- package/src/project.ts +1 -0
- package/src/prompt.ts +1 -1
- package/src/query.ts +5 -3
- package/src/runs.ts +2 -2
- package/src/store/activity-catalog.ts +1 -1
- 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 +2 -2
- package/src/store/dsl-workflow.ts +9 -9
- package/src/store/signals.ts +1 -0
- package/src/store/store.ts +111 -53
- package/src/store/workflow.ts +81 -3
- 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 -28
- 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/signals.js +0 -3
- package/lib/cjs/store/signals.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 -39
- 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 -65
- 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 -12
- 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/signals.js +0 -2
- package/lib/esm/store/signals.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 -36
- 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 -60
- package/lib/esm/utils/schemas.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/Progress.d.ts +0 -21
- package/lib/types/Progress.d.ts.map +0 -1
- package/lib/types/access-control.d.ts +0 -56
- package/lib/types/access-control.d.ts.map +0 -1
- package/lib/types/analytics.d.ts +0 -36
- package/lib/types/analytics.d.ts.map +0 -1
- package/lib/types/apikey.d.ts +0 -54
- 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 -80
- package/lib/types/environment.d.ts.map +0 -1
- package/lib/types/facets.d.ts +0 -34
- package/lib/types/facets.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -23
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/integrations.d.ts +0 -23
- package/lib/types/integrations.d.ts.map +0 -1
- package/lib/types/interaction.d.ts +0 -382
- package/lib/types/interaction.d.ts.map +0 -1
- package/lib/types/meters.d.ts +0 -23
- package/lib/types/meters.d.ts.map +0 -1
- package/lib/types/payload.d.ts +0 -49
- package/lib/types/payload.d.ts.map +0 -1
- package/lib/types/project.d.ts +0 -102
- package/lib/types/project.d.ts.map +0 -1
- package/lib/types/prompt.d.ts +0 -70
- package/lib/types/prompt.d.ts.map +0 -1
- package/lib/types/query.d.ts +0 -76
- package/lib/types/query.d.ts.map +0 -1
- package/lib/types/refs.d.ts +0 -19
- package/lib/types/refs.d.ts.map +0 -1
- package/lib/types/runs.d.ts +0 -32
- package/lib/types/runs.d.ts.map +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -26
- package/lib/types/store/activity-catalog.d.ts.map +0 -1
- package/lib/types/store/agent.d.ts +0 -18
- package/lib/types/store/agent.d.ts.map +0 -1
- package/lib/types/store/collections.d.ts +0 -54
- package/lib/types/store/collections.d.ts.map +0 -1
- package/lib/types/store/common.d.ts +0 -10
- package/lib/types/store/common.d.ts.map +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -132
- package/lib/types/store/doc-analyzer.d.ts.map +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -238
- 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 -23
- package/lib/types/store/object-types.d.ts.map +0 -1
- package/lib/types/store/signals.d.ts +0 -4
- package/lib/types/store/signals.d.ts.map +0 -1
- package/lib/types/store/store.d.ts +0 -218
- package/lib/types/store/store.d.ts.map +0 -1
- package/lib/types/store/temporalio.d.ts +0 -16
- package/lib/types/store/temporalio.d.ts.map +0 -1
- package/lib/types/store/workflow.d.ts +0 -179
- package/lib/types/store/workflow.d.ts.map +0 -1
- package/lib/types/training.d.ts +0 -38
- package/lib/types/training.d.ts.map +0 -1
- package/lib/types/transient-tokens.d.ts +0 -27
- package/lib/types/transient-tokens.d.ts.map +0 -1
- package/lib/types/user.d.ts +0 -113
- package/lib/types/user.d.ts.map +0 -1
- package/lib/types/utils/advanced-content-processing.d.ts +0 -15
- package/lib/types/utils/advanced-content-processing.d.ts.map +0 -1
- package/lib/types/utils/auth.d.ts +0 -3
- package/lib/types/utils/auth.d.ts.map +0 -1
- package/lib/types/utils/schemas.d.ts +0 -7
- package/lib/types/utils/schemas.d.ts.map +0 -1
package/lib/types/query.d.ts
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
import { ExecutionRunStatus } from './interaction.js';
|
2
|
-
import { SupportedEmbeddingTypes } from './project.js';
|
3
|
-
export interface RunListingQueryOptions {
|
4
|
-
project?: string;
|
5
|
-
interaction?: string;
|
6
|
-
limit?: number;
|
7
|
-
offset?: number;
|
8
|
-
filters?: RunListingFilters;
|
9
|
-
}
|
10
|
-
export interface RunListingFilters {
|
11
|
-
interaction?: string;
|
12
|
-
status?: ExecutionRunStatus;
|
13
|
-
model?: string;
|
14
|
-
environment?: string;
|
15
|
-
tag?: string;
|
16
|
-
fromDate?: string;
|
17
|
-
toDate?: string;
|
18
|
-
parent?: string | false;
|
19
|
-
}
|
20
|
-
export interface VectorSearchQuery {
|
21
|
-
objectId?: string;
|
22
|
-
values?: number[];
|
23
|
-
text?: string;
|
24
|
-
image?: string;
|
25
|
-
threshold?: number;
|
26
|
-
type: SupportedEmbeddingTypes;
|
27
|
-
}
|
28
|
-
export interface SimpleSearchQuery {
|
29
|
-
name?: string;
|
30
|
-
status?: string;
|
31
|
-
}
|
32
|
-
export interface ObjectSearchQuery extends SimpleSearchQuery {
|
33
|
-
location?: string;
|
34
|
-
parent?: string;
|
35
|
-
similarTo?: string;
|
36
|
-
embeddingType?: SupportedEmbeddingTypes;
|
37
|
-
type?: string;
|
38
|
-
}
|
39
|
-
export interface ObjectTypeSearchQuery extends SimpleSearchQuery {
|
40
|
-
chunckable?: boolean;
|
41
|
-
}
|
42
|
-
export interface PromptSearchQuery extends SimpleSearchQuery {
|
43
|
-
role?: string;
|
44
|
-
}
|
45
|
-
export interface InteractionSearchQuery extends SimpleSearchQuery {
|
46
|
-
prompt?: string;
|
47
|
-
tags?: string[];
|
48
|
-
version?: number;
|
49
|
-
}
|
50
|
-
export interface RunSearchQuery extends SimpleSearchQuery {
|
51
|
-
offset?: number;
|
52
|
-
interaction?: string;
|
53
|
-
environment?: string;
|
54
|
-
model?: string;
|
55
|
-
status?: ExecutionRunStatus;
|
56
|
-
tags?: string[];
|
57
|
-
query?: string;
|
58
|
-
default_query_path?: string;
|
59
|
-
parent?: string[] | false;
|
60
|
-
object?: string;
|
61
|
-
start?: string;
|
62
|
-
end?: string;
|
63
|
-
finish_reason?: string;
|
64
|
-
created_by?: string;
|
65
|
-
}
|
66
|
-
export interface WorkflowExecutionSearchQuery extends SimpleSearchQuery {
|
67
|
-
documentId?: string;
|
68
|
-
eventName?: string;
|
69
|
-
ruleId?: string;
|
70
|
-
start?: string;
|
71
|
-
end?: string;
|
72
|
-
status?: string;
|
73
|
-
}
|
74
|
-
export interface ComplexSearchQuery extends ObjectSearchQuery {
|
75
|
-
vector?: VectorSearchQuery;
|
76
|
-
}
|
package/lib/types/query.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,WAAW,sBAAsB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAA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;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IACzD,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B"}
|
package/lib/types/refs.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
export declare enum ResolvableRefType {
|
2
|
-
project = "Project",
|
3
|
-
environment = "Environment",
|
4
|
-
user = "User",
|
5
|
-
account = "Account",
|
6
|
-
interaction = "Interaction"
|
7
|
-
}
|
8
|
-
export interface ResolvableRef {
|
9
|
-
type: ResolvableRefType;
|
10
|
-
id: string;
|
11
|
-
}
|
12
|
-
export interface RefResolutionRequest {
|
13
|
-
refs: ResolvableRef[];
|
14
|
-
}
|
15
|
-
export interface ResourceRef {
|
16
|
-
id: string;
|
17
|
-
name: string;
|
18
|
-
type: string;
|
19
|
-
}
|
package/lib/types/refs.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/refs.ts"],"names":[],"mappings":"AAEA,oBAAY,iBAAiB;IACzB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,iBAAiB,CAAA;IACvB,EAAE,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,oBAAoB;IAEjC,IAAI,EAAE,aAAa,EAAE,CAAA;CAExB;AAGD,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACf"}
|
package/lib/types/runs.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
import { FacetResult } from './facets.js';
|
2
|
-
import { NamedInteractionExecutionPayload } from './interaction.js';
|
3
|
-
/**
|
4
|
-
* The run ref is used to identify a run document in the storage
|
5
|
-
*/
|
6
|
-
export interface ExecutionRunDocRef {
|
7
|
-
id: string;
|
8
|
-
account: string;
|
9
|
-
project: string;
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* Interaction execution payload for creating a new run
|
13
|
-
* It uses interaction field (from NamedInteractionExecutionPayload) to pass the intercation ID to run
|
14
|
-
*/
|
15
|
-
export interface RunCreatePayload extends NamedInteractionExecutionPayload {
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* To be used as a value for a numeric or date filters
|
19
|
-
*/
|
20
|
-
export interface RangeValue {
|
21
|
-
gt?: number | string;
|
22
|
-
gte?: number | string;
|
23
|
-
lt?: number | string;
|
24
|
-
lte?: number | string;
|
25
|
-
}
|
26
|
-
export interface RunSearchMetaRepsonse {
|
27
|
-
count: {
|
28
|
-
lower_bound?: number;
|
29
|
-
total?: number;
|
30
|
-
};
|
31
|
-
facet: Record<string, FacetResult>;
|
32
|
-
}
|
package/lib/types/runs.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gCAAgC;CACzE;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CACrC"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
export type TsPropType = "string" | "number" | "boolean" | "record" | "object" | "array" | "enum" | "literal" | "union" | "promise" | "any" | "void";
|
2
|
-
export interface ActivityTypeDefinition {
|
3
|
-
name: TsPropType;
|
4
|
-
value: string | boolean | number | null;
|
5
|
-
members?: ActivityPropertyDefinition[];
|
6
|
-
innerType?: ActivityTypeDefinition;
|
7
|
-
enum?: string[] | number[] | undefined;
|
8
|
-
union?: ActivityTypeDefinition[];
|
9
|
-
}
|
10
|
-
export interface ActivityPropertyDefinition {
|
11
|
-
name: string;
|
12
|
-
type: ActivityTypeDefinition;
|
13
|
-
optional: boolean;
|
14
|
-
doc?: string;
|
15
|
-
}
|
16
|
-
export interface ActivityDefinition {
|
17
|
-
name: string;
|
18
|
-
title: string;
|
19
|
-
doc?: string;
|
20
|
-
paramsType: string;
|
21
|
-
params: ActivityPropertyDefinition[];
|
22
|
-
returnType?: ActivityTypeDefinition | undefined;
|
23
|
-
}
|
24
|
-
export interface ActivityCatalog {
|
25
|
-
activities: ActivityDefinition[];
|
26
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"activity-catalog.d.ts","sourceRoot":"","sources":["../../../src/store/activity-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAGrJ,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,UAAU,CAAC;IAOjB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IAExC,OAAO,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAEvC,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAEnC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAEvC,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAElB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,0BAA0B,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,kBAAkB,EAAE,CAAC;CACpC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export interface CreateAgentDeploymentRequest {
|
2
|
-
/**
|
3
|
-
* The agent ID is composed from the agent organization and the agen name, separated by a slash.
|
4
|
-
* Example: vertesia/docgen-agent
|
5
|
-
*/
|
6
|
-
agentId: string;
|
7
|
-
/**
|
8
|
-
* The environment to deploy the agent to. This should be one of the following values:
|
9
|
-
* - `production`
|
10
|
-
* - `preview`
|
11
|
-
* - `staging`
|
12
|
-
*/
|
13
|
-
environment: 'production' | 'preview' | 'staging';
|
14
|
-
/**
|
15
|
-
* The agent docker image version. A major.minor.patch[-modifier] string.
|
16
|
-
*/
|
17
|
-
version: string;
|
18
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/store/agent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IACzC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IAElD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { BaseObject } from "./common.js";
|
2
|
-
import { ColumnLayout, ContentObjectTypeRef } from "./store.js";
|
3
|
-
export declare enum CollectionStatus {
|
4
|
-
active = "active",
|
5
|
-
archived = "archived"
|
6
|
-
}
|
7
|
-
export interface CreateCollectionPayload {
|
8
|
-
name: string;
|
9
|
-
dynamic: boolean;
|
10
|
-
description?: string;
|
11
|
-
tags?: string[];
|
12
|
-
type?: string;
|
13
|
-
query?: Record<string, any>;
|
14
|
-
properties?: Record<string, any>;
|
15
|
-
parent?: string | null;
|
16
|
-
table_layout?: ColumnLayout[] | null;
|
17
|
-
}
|
18
|
-
export interface CollectionItem extends BaseObject {
|
19
|
-
/**
|
20
|
-
* A flag to indicate if the collection is dynamic or static.
|
21
|
-
* If the collection is dynamic, the members are determined by a query using the query field.
|
22
|
-
* Id the collection is static, the members are explicitly defined jusing the members array.
|
23
|
-
*/
|
24
|
-
dynamic: boolean;
|
25
|
-
status: CollectionStatus;
|
26
|
-
type?: ContentObjectTypeRef;
|
27
|
-
/**
|
28
|
-
* The parent collection if any
|
29
|
-
*/
|
30
|
-
parent?: string | null;
|
31
|
-
/**
|
32
|
-
* The table layout to use for the collection.
|
33
|
-
* The layout defined in the type could serve as a fallback if not defined here.
|
34
|
-
*/
|
35
|
-
table_layout?: ColumnLayout[];
|
36
|
-
}
|
37
|
-
export interface Collection extends CollectionItem {
|
38
|
-
properties: Record<string, any>;
|
39
|
-
query?: Record<string, any>;
|
40
|
-
}
|
41
|
-
export interface StaticCollection extends Collection {
|
42
|
-
dynamic: false;
|
43
|
-
members: string[];
|
44
|
-
query: never;
|
45
|
-
}
|
46
|
-
export interface DynamicCollection extends Collection {
|
47
|
-
dynamic: true;
|
48
|
-
}
|
49
|
-
export interface CollectionSearchPayload {
|
50
|
-
dynamic?: boolean;
|
51
|
-
status?: CollectionStatus;
|
52
|
-
limit?: number;
|
53
|
-
offset?: number;
|
54
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEhE,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,C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["../../../src/store/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,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,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
import { WorkflowExecutionPayload, WorkflowRunStatus } from "./workflow.js";
|
2
|
-
export interface PdfToRichtextOptions {
|
3
|
-
features: string[];
|
4
|
-
debug?: boolean;
|
5
|
-
[key: string]: any;
|
6
|
-
}
|
7
|
-
export interface PdfToRichTextWorkflowPayload extends Omit<WorkflowExecutionPayload, "vars"> {
|
8
|
-
vars: PdfToRichtextOptions;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* Represents a image in a document that has been analyzed
|
12
|
-
*/
|
13
|
-
export interface DocImage {
|
14
|
-
id?: string;
|
15
|
-
page_number?: number;
|
16
|
-
description?: string;
|
17
|
-
is_meaningful?: boolean;
|
18
|
-
width?: number;
|
19
|
-
height?: number;
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* The export type formats for tables.
|
23
|
-
*/
|
24
|
-
export type ExportTableFormats = 'json' | 'csv' | 'xml';
|
25
|
-
/**
|
26
|
-
* Represents a table in a document that has been analyzed
|
27
|
-
*/
|
28
|
-
export interface DocTable {
|
29
|
-
page_number?: number;
|
30
|
-
table_number?: number;
|
31
|
-
title?: string;
|
32
|
-
format: "application/csv" | "application/json";
|
33
|
-
}
|
34
|
-
/**
|
35
|
-
* Represents a table in a document that has been analyzed in CSV format
|
36
|
-
*/
|
37
|
-
export interface DocTableCsv extends DocTable {
|
38
|
-
format: "application/csv";
|
39
|
-
title?: string;
|
40
|
-
data: string;
|
41
|
-
}
|
42
|
-
/**
|
43
|
-
* Represents a table in a document that has been analyzed in JSON format
|
44
|
-
*/
|
45
|
-
export interface DocTableJson extends DocTable {
|
46
|
-
format: "application/json";
|
47
|
-
title?: string;
|
48
|
-
data: Object[];
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
* Represents a document analysis run status
|
52
|
-
*/
|
53
|
-
export interface DocAnalyzeRunStatusResponse extends WorkflowRunStatus {
|
54
|
-
progress?: DocAnalyzerProgress;
|
55
|
-
}
|
56
|
-
export interface DocAnalyzerResultResponse {
|
57
|
-
document?: string;
|
58
|
-
tables?: DocTableCsv[] | DocTableJson[];
|
59
|
-
images?: DocImage[];
|
60
|
-
annotated?: string | null;
|
61
|
-
}
|
62
|
-
export interface DocAnalyzerProgress {
|
63
|
-
pages: DocAnalyzerProgressStatus;
|
64
|
-
images: DocAnalyzerProgressStatus;
|
65
|
-
tables: DocAnalyzerProgressStatus;
|
66
|
-
visuals: DocAnalyzerProgressStatus;
|
67
|
-
started_at?: number;
|
68
|
-
percent: number;
|
69
|
-
}
|
70
|
-
interface DocAnalyzerProgressStatus {
|
71
|
-
total: number;
|
72
|
-
processed: number;
|
73
|
-
success: number;
|
74
|
-
failed: number;
|
75
|
-
}
|
76
|
-
/**
|
77
|
-
* Adapt Tables Parameters, part of the request
|
78
|
-
*/
|
79
|
-
export interface AdaptTablesParams {
|
80
|
-
/**
|
81
|
-
* JSON Schema to to convert the table into
|
82
|
-
*/
|
83
|
-
target_schema: string;
|
84
|
-
/**
|
85
|
-
* Natural language description of the type item the table are composed of
|
86
|
-
*/
|
87
|
-
item_name: string;
|
88
|
-
/**
|
89
|
-
* Natural language description of the type of table or item to convert
|
90
|
-
*/
|
91
|
-
instructions?: string;
|
92
|
-
/**
|
93
|
-
* Format to return the data in (csv, json)
|
94
|
-
*/
|
95
|
-
format?: "csv" | "json";
|
96
|
-
/**
|
97
|
-
* Process the table as a whole or by page
|
98
|
-
*/
|
99
|
-
process_as?: "page" | "table";
|
100
|
-
/**
|
101
|
-
* Process the table as a CSV file
|
102
|
-
*/
|
103
|
-
process_as_csv?: boolean;
|
104
|
-
}
|
105
|
-
interface DocAnalyzerRequestBase {
|
106
|
-
synchroneous?: boolean;
|
107
|
-
notify_endpoints?: string[];
|
108
|
-
/**
|
109
|
-
* What environmenet to use to run the request
|
110
|
-
* If none specified the project embedded environment will be used
|
111
|
-
*/
|
112
|
-
environment?: string;
|
113
|
-
}
|
114
|
-
export interface AdaptTablesRequest extends DocAnalyzerRequestBase, AdaptTablesParams {
|
115
|
-
}
|
116
|
-
/**
|
117
|
-
* Get Adapted Tables Request
|
118
|
-
* @param raw If true, the raw data will be returned
|
119
|
-
* @param format The format to return the data in (csv, json)
|
120
|
-
*/
|
121
|
-
export interface GetAdaptedTablesRequestQuery {
|
122
|
-
raw?: boolean;
|
123
|
-
format: "csv" | "json";
|
124
|
-
}
|
125
|
-
/**
|
126
|
-
* The adapted table result format
|
127
|
-
*/
|
128
|
-
export interface AdaptedTable {
|
129
|
-
comment?: string;
|
130
|
-
data: Record<string, any>[];
|
131
|
-
}
|
132
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"doc-analyzer.d.ts","sourceRoot":"","sources":["../../../src/store/doc-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC;IACxF,IAAI,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,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M,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,yBAAyB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,UAAU,sBAAsB;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB,EAAE,iBAAiB;CAAG;AAExF;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;CAC1B;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;CAC/B"}
|
@@ -1,238 +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";
|
@@ -1 +0,0 @@
|
|
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,aAAa,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IACzE;;;OAGG;IACH,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kB,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"}
|
@@ -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
|
-
export * from "./signals.js";
|