@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/package.json
CHANGED
package/src/apikey.ts
CHANGED
package/src/common.ts
CHANGED
package/src/index.ts
CHANGED
@@ -8,6 +8,7 @@ export * from './integrations.js';
|
|
8
8
|
export * from './interaction.js';
|
9
9
|
export * from './meters.js';
|
10
10
|
export * from './payload.js';
|
11
|
+
export * from "./plugin.js";
|
11
12
|
export * from "./Progress.js";
|
12
13
|
export * from './project.js';
|
13
14
|
export * from './prompt.js';
|
@@ -21,4 +22,3 @@ export * from './user.js';
|
|
21
22
|
export * from './utils/advanced-content-processing.js';
|
22
23
|
export * from './utils/auth.js';
|
23
24
|
export * from './utils/schemas.js';
|
24
|
-
|
package/src/integrations.ts
CHANGED
@@ -18,7 +18,7 @@ export interface AwsConfiguration extends IntegrationConfigurationBase {
|
|
18
18
|
s3_role_arn: string;
|
19
19
|
}
|
20
20
|
|
21
|
-
export interface
|
21
|
+
export interface MagicPdfConfiguration extends IntegrationConfigurationBase {
|
22
22
|
// No additional configuration
|
23
23
|
default_features?: string[];
|
24
24
|
default_zones?: string[];
|
package/src/interaction.ts
CHANGED
@@ -42,13 +42,13 @@ export interface InteractionEndpointQuery {
|
|
42
42
|
|
43
43
|
/**
|
44
44
|
* Filter by interaction endpoint name to include only the specified endpoints
|
45
|
-
* * If both includes and excludes are specified then
|
45
|
+
* * If both includes and excludes are specified then only the includes filter will be used.
|
46
46
|
*/
|
47
47
|
includes?: string[];
|
48
48
|
|
49
49
|
/**
|
50
50
|
* Filter by interaction endpoint name to excludes the specified endpoints.
|
51
|
-
* If both includes and excludes are specified then
|
51
|
+
* If both includes and excludes are specified then only the includes filter will be used.
|
52
52
|
*/
|
53
53
|
excludes?: string[];
|
54
54
|
|
@@ -104,7 +104,7 @@ export interface InteractionRefWithSchema extends Omit<InteractionRef, "prompts"
|
|
104
104
|
|
105
105
|
export interface InteractionsExportPayload {
|
106
106
|
/**
|
107
|
-
* The name of the interaction. If not
|
107
|
+
* The name of the interaction. If not specified all the interactions in the current project will be exported
|
108
108
|
*/
|
109
109
|
name?: string;
|
110
110
|
/*
|
@@ -239,7 +239,7 @@ export interface InteractionForkPayload {
|
|
239
239
|
export interface InteractionExecutionPayload {
|
240
240
|
/**
|
241
241
|
* If a `@memory` property exists on the input data then the value will be used as the value of a memory pack location.
|
242
|
-
* and the other
|
242
|
+
* and the other properties of the data will contain the memory pack mapping.
|
243
243
|
*/
|
244
244
|
data?: Record<string, any> | `memory:${string}`;
|
245
245
|
config?: InteractionExecutionConfiguration;
|
@@ -336,6 +336,24 @@ export interface AsyncConversationExecutionPayload extends AsyncExecutionPayload
|
|
336
336
|
* Whether to disable the generation of interaction tools or not.
|
337
337
|
*/
|
338
338
|
disable_interaction_tools?: boolean;
|
339
|
+
|
340
|
+
/**
|
341
|
+
* On which scope should the searched by applied, by the search_tool.
|
342
|
+
* Only supports collection scope or null for now.
|
343
|
+
*/
|
344
|
+
search_scope?: string;
|
345
|
+
|
346
|
+
/**
|
347
|
+
* The collection in which this workflow is executing
|
348
|
+
*/
|
349
|
+
collection_id?: string;
|
350
|
+
|
351
|
+
/**
|
352
|
+
* The token threshold in thousands (K) for creating checkpoints.
|
353
|
+
* If total tokens exceed this value, a checkpoint will be created.
|
354
|
+
* If not specified, default value of 150K tokens will be used.
|
355
|
+
*/
|
356
|
+
checkpoint_tokens?: number;
|
339
357
|
}
|
340
358
|
|
341
359
|
export interface AsyncInteractionExecutionPayload extends AsyncExecutionPayloadBase {
|
@@ -413,7 +431,7 @@ export interface ExecutionRun<P = any, R = any> {
|
|
413
431
|
/**
|
414
432
|
* The parameters used to create the interaction.
|
415
433
|
* If the parameters contains the special property "@memory" it will be used
|
416
|
-
* to locate a
|
434
|
+
* to locate a memory pack and the other properties will be used as the memory pack mapping.
|
417
435
|
*/
|
418
436
|
parameters: P; //params used to create the interaction, only in varies on?
|
419
437
|
tags?: string[];
|
package/src/payload.ts
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
-
import { FacetSpec } from
|
2
|
-
import {
|
1
|
+
import { FacetSpec } from "./facets.js";
|
2
|
+
import {
|
3
|
+
ComplexSearchQuery,
|
4
|
+
InteractionSearchQuery,
|
5
|
+
ObjectSearchQuery,
|
6
|
+
ObjectTypeSearchQuery,
|
7
|
+
PromptSearchQuery,
|
8
|
+
RunSearchQuery,
|
9
|
+
SimpleSearchQuery,
|
10
|
+
VectorSearchQuery,
|
11
|
+
} from "./query.js";
|
3
12
|
|
4
13
|
export interface SearchPayload {
|
5
14
|
query?: SimpleSearchQuery;
|
6
15
|
limit?: number;
|
7
16
|
offset?: number;
|
17
|
+
select?: string;
|
18
|
+
show_all_revisions?: boolean;
|
19
|
+
from_root?: string;
|
8
20
|
}
|
9
21
|
|
10
22
|
export interface ComputeFacetPayload {
|
@@ -59,4 +71,4 @@ export interface ExportPropertiesResponse {
|
|
59
71
|
type: string;
|
60
72
|
name: string;
|
61
73
|
data: Blob;
|
62
|
-
}
|
74
|
+
}
|
package/src/plugin.ts
ADDED
package/src/project.ts
CHANGED
package/src/prompt.ts
CHANGED
@@ -68,7 +68,7 @@ export interface PromptTemplate {
|
|
68
68
|
inputSchema?: JSONSchema4;
|
69
69
|
project: string | ProjectRef; // or projectRef? ObjectIdType;
|
70
70
|
// The name of a field in the input data that is of the specified schema and on each the template will iterate.
|
71
|
-
// If not specified then the
|
71
|
+
// If not specified then the schema will define the whole input data
|
72
72
|
tags?: string[];
|
73
73
|
// only for drafts - when it was last published
|
74
74
|
last_published_at?: Date;
|
package/src/query.ts
CHANGED
@@ -3,14 +3,14 @@ import { SupportedEmbeddingTypes } from './project.js';
|
|
3
3
|
|
4
4
|
export interface RunListingQueryOptions {
|
5
5
|
project?: string;
|
6
|
-
interaction?: string;
|
6
|
+
interaction?: string | string[];
|
7
7
|
limit?: number;
|
8
8
|
offset?: number;
|
9
9
|
filters?: RunListingFilters;
|
10
10
|
}
|
11
11
|
|
12
12
|
export interface RunListingFilters {
|
13
|
-
interaction?: string,
|
13
|
+
interaction?: string | string[],
|
14
14
|
status?: ExecutionRunStatus,
|
15
15
|
model?: string,
|
16
16
|
environment?: string,
|
@@ -43,11 +43,12 @@ export interface ObjectSearchQuery extends SimpleSearchQuery {
|
|
43
43
|
}
|
44
44
|
|
45
45
|
export interface ObjectTypeSearchQuery extends SimpleSearchQuery {
|
46
|
-
|
46
|
+
chunkable?: boolean;
|
47
47
|
}
|
48
48
|
|
49
49
|
export interface PromptSearchQuery extends SimpleSearchQuery {
|
50
50
|
role?: string;
|
51
|
+
matchInteractions?: boolean;
|
51
52
|
}
|
52
53
|
|
53
54
|
export interface InteractionSearchQuery extends SimpleSearchQuery {
|
@@ -84,4 +85,5 @@ export interface WorkflowExecutionSearchQuery extends SimpleSearchQuery {
|
|
84
85
|
|
85
86
|
export interface ComplexSearchQuery extends ObjectSearchQuery {
|
86
87
|
vector?: VectorSearchQuery;
|
88
|
+
match?: Record<string, any>;
|
87
89
|
}
|
package/src/runs.ts
CHANGED
@@ -12,7 +12,7 @@ export interface ExecutionRunDocRef {
|
|
12
12
|
|
13
13
|
/**
|
14
14
|
* Interaction execution payload for creating a new run
|
15
|
-
* It uses interaction field (from NamedInteractionExecutionPayload) to pass the
|
15
|
+
* It uses interaction field (from NamedInteractionExecutionPayload) to pass the interaction ID to run
|
16
16
|
*/
|
17
17
|
export interface RunCreatePayload extends NamedInteractionExecutionPayload {
|
18
18
|
}
|
@@ -27,7 +27,7 @@ export interface RangeValue {
|
|
27
27
|
lte?: number | string,
|
28
28
|
}
|
29
29
|
|
30
|
-
export interface
|
30
|
+
export interface RunSearchMetaResponse {
|
31
31
|
count: {
|
32
32
|
lower_bound?: number,
|
33
33
|
total?: number,
|
@@ -12,7 +12,7 @@ export interface ActivityTypeDefinition {
|
|
12
12
|
value: string | boolean | number | null;
|
13
13
|
// in case of objects
|
14
14
|
members?: ActivityPropertyDefinition[];
|
15
|
-
// in case of arrays or promises will be
|
15
|
+
// in case of arrays or promises will be innerType (i.e. the element type for arrays)
|
16
16
|
innerType?: ActivityTypeDefinition;
|
17
17
|
// in case of enums the enum values will be here
|
18
18
|
enum?: string[] | number[] | undefined;
|
package/src/store/agent.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export interface CreateAgentDeploymentRequest {
|
2
2
|
/**
|
3
|
-
* The agent ID is composed from the agent organization and the
|
3
|
+
* The agent ID is composed from the agent organization and the agent name, separated by a slash.
|
4
4
|
* Example: vertesia/docgen-agent
|
5
5
|
*/
|
6
6
|
agentId: string;
|
package/src/store/collections.ts
CHANGED
@@ -2,8 +2,8 @@ import { BaseObject } from "./common.js";
|
|
2
2
|
import { ColumnLayout, ContentObjectTypeRef } from "./store.js";
|
3
3
|
|
4
4
|
export enum CollectionStatus {
|
5
|
-
active =
|
6
|
-
archived =
|
5
|
+
active = "active",
|
6
|
+
archived = "archived",
|
7
7
|
}
|
8
8
|
|
9
9
|
export interface CreateCollectionPayload {
|
@@ -16,13 +16,14 @@ export interface CreateCollectionPayload {
|
|
16
16
|
properties?: Record<string, any>;
|
17
17
|
parent?: string | null;
|
18
18
|
table_layout?: ColumnLayout[] | null;
|
19
|
+
allowed_types?: string[];
|
19
20
|
}
|
20
21
|
|
21
22
|
export interface CollectionItem extends BaseObject {
|
22
23
|
/**
|
23
24
|
* A flag to indicate if the collection is dynamic or static.
|
24
25
|
* If the collection is dynamic, the members are determined by a query using the query field.
|
25
|
-
*
|
26
|
+
* If the collection is static, the members are explicitly defined using the members array.
|
26
27
|
*/
|
27
28
|
dynamic: boolean;
|
28
29
|
status: CollectionStatus;
|
@@ -37,6 +38,11 @@ export interface CollectionItem extends BaseObject {
|
|
37
38
|
* The layout defined in the type could serve as a fallback if not defined here.
|
38
39
|
*/
|
39
40
|
table_layout?: ColumnLayout[];
|
41
|
+
|
42
|
+
/**
|
43
|
+
* The allowed types for the collection.
|
44
|
+
*/
|
45
|
+
allowed_types?: string[];
|
40
46
|
}
|
41
47
|
|
42
48
|
export interface Collection extends CollectionItem {
|
package/src/store/common.ts
CHANGED
@@ -1,10 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Base interface for all domain objects in the system.
|
3
|
+
* Provides common properties shared across all business entities.
|
4
|
+
*/
|
1
5
|
export interface BaseObject {
|
6
|
+
/** Unique identifier for the object */
|
2
7
|
id: string;
|
8
|
+
|
9
|
+
/** Human-readable name or title */
|
3
10
|
name: string;
|
11
|
+
|
12
|
+
/** Optional detailed description of the object */
|
4
13
|
description?: string;
|
14
|
+
|
15
|
+
/** Optional array of categorization tags */
|
5
16
|
tags?: string[];
|
17
|
+
|
18
|
+
/** Identifier of the user who last modified the object */
|
6
19
|
updated_by: string;
|
20
|
+
|
21
|
+
/** Identifier of the user who created the object */
|
7
22
|
created_by: string;
|
23
|
+
|
24
|
+
/** ISO timestamp of when the object was created */
|
8
25
|
created_at: string;
|
26
|
+
|
27
|
+
/** ISO timestamp of when the object was last updated */
|
9
28
|
updated_at: string;
|
10
|
-
|
29
|
+
|
30
|
+
}
|
@@ -121,12 +121,12 @@ export interface AdaptTablesParams {
|
|
121
121
|
}
|
122
122
|
|
123
123
|
interface DocAnalyzerRequestBase {
|
124
|
-
|
124
|
+
synchronous?: boolean;
|
125
125
|
|
126
126
|
notify_endpoints?: string[];
|
127
127
|
|
128
128
|
/**
|
129
|
-
* What
|
129
|
+
* What environment to use to run the request
|
130
130
|
* If none specified the project embedded environment will be used
|
131
131
|
*/
|
132
132
|
environment?: string;
|
@@ -16,7 +16,7 @@ export interface DSLWorkflowExecutionPayload extends WorkflowExecutionPayload {
|
|
16
16
|
}
|
17
17
|
|
18
18
|
/**
|
19
|
-
* The payload for a DSL
|
19
|
+
* The payload for a DSL activity options.
|
20
20
|
*
|
21
21
|
* @see ActivityOptions in @temporalio/common
|
22
22
|
*/
|
@@ -58,7 +58,7 @@ export interface ActivityFetchSpec {
|
|
58
58
|
*/
|
59
59
|
type: "document" | "document_type" | "interaction_run";
|
60
60
|
/**
|
61
|
-
* An
|
61
|
+
* An optional URI to the data source.
|
62
62
|
*/
|
63
63
|
source?: string;
|
64
64
|
/**
|
@@ -72,13 +72,13 @@ export interface ActivityFetchSpec {
|
|
72
72
|
select?: string;
|
73
73
|
|
74
74
|
/**
|
75
|
-
* The number of results to return. If the result is
|
75
|
+
* The number of results to return. If the result is limited to 1 the result will be a single object
|
76
76
|
*/
|
77
77
|
limit?: number;
|
78
78
|
|
79
79
|
/**
|
80
80
|
* How to handle not found objects.
|
81
|
-
* 1. ignore - Ignore and return an empty array for multi objects query (or undefined for single object query) or empty array for multiple
|
81
|
+
* 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.
|
82
82
|
* 2. throw - Throw an error if the object or no objects are found.
|
83
83
|
*/
|
84
84
|
on_not_found?: "ignore" | "throw";
|
@@ -107,7 +107,7 @@ export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<str
|
|
107
107
|
description?: string;
|
108
108
|
/**
|
109
109
|
* Activities parameters. These parameters can be either literals
|
110
|
-
* (hardcoded strings, numbers, booleans,
|
110
|
+
* (hardcoded strings, numbers, booleans, objects, arrays etc.), either
|
111
111
|
* references to the workflow variables.
|
112
112
|
* The workflow variables are built from the workflow params (e.g. the workflow configuration)
|
113
113
|
* and from the result of the previous activities.
|
@@ -116,14 +116,14 @@ export interface DSLActivitySpec<PARAMS extends Record<string, any> = Record<str
|
|
116
116
|
/**
|
117
117
|
* The name of the workflow variable that will store the result of the activity
|
118
118
|
* If not specified the result will not be stored
|
119
|
-
* The parameters describe how the actual parameters will be obtained from the
|
119
|
+
* The parameters describe how the actual parameters will be obtained from the workflow execution vars.
|
120
120
|
* since it may contain references to workflow execution vars.
|
121
121
|
*/
|
122
122
|
output?: string;
|
123
123
|
|
124
124
|
/**
|
125
125
|
* A JSON expression which evaluate to true or false similar to mongo matches.
|
126
|
-
* We support
|
126
|
+
* We support for now basic expression like: $true, $false, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regexp
|
127
127
|
* {$eq: {name: value}},
|
128
128
|
* Ex: {$eq: {wfVarName: value}}
|
129
129
|
*/
|
@@ -186,7 +186,7 @@ export interface DSLChildWorkflowStep extends DSLWorkflowStepBase {
|
|
186
186
|
/**
|
187
187
|
* The name of the workflow variable that will store the result of the child workflow (if async the workflow id is stored)
|
188
188
|
* If not specified the result will not be stored
|
189
|
-
* The parameters describe how the actual parameters will be obtained from the
|
189
|
+
* The parameters describe how the actual parameters will be obtained from the workflow execution vars.
|
190
190
|
* since it may contain references to workflow execution vars.
|
191
191
|
*/
|
192
192
|
output?: string;
|
@@ -257,7 +257,7 @@ export interface DSLWorkflowSpecWithActivities extends DSLWorkflowSpecBase {
|
|
257
257
|
}
|
258
258
|
|
259
259
|
/**
|
260
|
-
* activities and steps fields are
|
260
|
+
* activities and steps fields are mutually exclusive
|
261
261
|
* steps was added after activities and may contain a mix of activities and other tasks like exec child workflows.
|
262
262
|
* For backward compatibility we keep the activities field as a fallback but one should use one or the other not both.
|
263
263
|
*/
|