@vertesia/common 0.79.0 → 0.79.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/access-control.js +3 -3
- package/lib/cjs/access-control.js.map +1 -1
- package/lib/cjs/apikey.js +1 -0
- package/lib/cjs/apikey.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interaction.js +12 -2
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/project.js.map +1 -1
- package/lib/cjs/prompt.js +0 -1
- package/lib/cjs/prompt.js.map +1 -1
- package/lib/cjs/store/store.js +13 -1
- package/lib/cjs/store/store.js.map +1 -1
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/cjs/sts-token-types.js.map +1 -1
- package/lib/cjs/utils/schemas.js +27 -5
- package/lib/cjs/utils/schemas.js.map +1 -1
- package/lib/esm/access-control.js +3 -3
- package/lib/esm/access-control.js.map +1 -1
- package/lib/esm/apikey.js +1 -0
- package/lib/esm/apikey.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interaction.js +11 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/project.js.map +1 -1
- package/lib/esm/prompt.js +0 -1
- package/lib/esm/prompt.js.map +1 -1
- package/lib/esm/store/store.js +12 -0
- package/lib/esm/store/store.js.map +1 -1
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/esm/sts-token-types.js.map +1 -1
- package/lib/esm/utils/schemas.js +26 -5
- package/lib/esm/utils/schemas.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/access-control.d.ts +3 -3
- package/lib/types/access-control.d.ts.map +1 -1
- package/lib/types/apikey.d.ts +6 -2
- package/lib/types/apikey.d.ts.map +1 -1
- package/lib/types/apps.d.ts +7 -0
- package/lib/types/apps.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +252 -18
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/project.d.ts +6 -5
- package/lib/types/project.d.ts.map +1 -1
- package/lib/types/prompt.d.ts +15 -8
- package/lib/types/prompt.d.ts.map +1 -1
- package/lib/types/query.d.ts +2 -0
- package/lib/types/query.d.ts.map +1 -1
- package/lib/types/store/collections.d.ts +16 -2
- package/lib/types/store/collections.d.ts.map +1 -1
- package/lib/types/store/store.d.ts +42 -5
- package/lib/types/store/store.d.ts.map +1 -1
- package/lib/types/store/workflow.d.ts +64 -8
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/sts-token-types.d.ts +3 -0
- package/lib/types/sts-token-types.d.ts.map +1 -1
- package/lib/types/utils/schemas.d.ts +4 -3
- package/lib/types/utils/schemas.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +2 -2
- package/src/access-control.ts +1 -0
- package/src/project.ts +5 -5
- package/src/query.ts +2 -0
- package/src/store/collections.ts +4 -2
- package/src/store/store.ts +29 -11
- package/src/store/workflow.ts +28 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/common",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./lib/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"ajv": "^8.16.0",
|
|
29
29
|
"json-schema": "^0.4.0",
|
|
30
|
-
"@llumiverse/common": "0.22.
|
|
30
|
+
"@llumiverse/common": "0.22.2"
|
|
31
31
|
},
|
|
32
32
|
"ts_dual_module": {
|
|
33
33
|
"outDir": "lib"
|
package/src/access-control.ts
CHANGED
package/src/project.ts
CHANGED
|
@@ -140,11 +140,11 @@ export const ProjectRefPopulate = "id name account";
|
|
|
140
140
|
|
|
141
141
|
export interface EmbeddingsStatusResponse {
|
|
142
142
|
status: string;
|
|
143
|
-
embeddingRunsInProgress
|
|
144
|
-
totalRunsInProgress
|
|
145
|
-
totalIndexableObjects
|
|
146
|
-
embeddingsModels
|
|
147
|
-
objectsWithEmbeddings
|
|
143
|
+
embeddingRunsInProgress?: number;
|
|
144
|
+
totalRunsInProgress?: number;
|
|
145
|
+
totalIndexableObjects?: number;
|
|
146
|
+
embeddingsModels?: string[];
|
|
147
|
+
objectsWithEmbeddings?: number;
|
|
148
148
|
vectorIndex: {
|
|
149
149
|
status: "READY" | "PENDING" | "DELETING" | "ABSENT",
|
|
150
150
|
name?: string,
|
package/src/query.ts
CHANGED
package/src/store/collections.ts
CHANGED
|
@@ -31,9 +31,10 @@ export interface CollectionItem extends BaseObject {
|
|
|
31
31
|
// A ref to the object type
|
|
32
32
|
type?: ContentObjectTypeRef;
|
|
33
33
|
/**
|
|
34
|
-
* The parent
|
|
34
|
+
* The parent collections if any.
|
|
35
|
+
* A collection can have multiple parents.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
parents?: string[] | null;
|
|
37
38
|
/**
|
|
38
39
|
* The table layout to use for the collection.
|
|
39
40
|
* The layout defined in the type could serve as a fallback if not defined here.
|
|
@@ -63,6 +64,7 @@ export interface DynamicCollection extends Collection {
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export interface CollectionSearchPayload {
|
|
67
|
+
parent?: string | null;
|
|
66
68
|
dynamic?: boolean;
|
|
67
69
|
status?: CollectionStatus;
|
|
68
70
|
limit?: number;
|
package/src/store/store.ts
CHANGED
|
@@ -34,13 +34,14 @@ export interface ContentObject<T = any> extends ContentObjectItem<T> {
|
|
|
34
34
|
security?: Record<string, string[]>; // Security field for granular permissions
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
export enum ContentNature {
|
|
38
|
+
Video = "video",
|
|
39
|
+
Image = "image",
|
|
40
|
+
Audio = "audio",
|
|
41
|
+
Document = "document",
|
|
42
|
+
Code = "code",
|
|
43
|
+
Other = "other"
|
|
44
|
+
}
|
|
44
45
|
|
|
45
46
|
export interface Dimensions {
|
|
46
47
|
width: number;
|
|
@@ -76,17 +77,29 @@ export interface TemporalMediaMetadata extends ContentMetadata {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
export interface ImageMetadata extends ContentMetadata {
|
|
79
|
-
type:
|
|
80
|
+
type: ContentNature.Image;
|
|
80
81
|
dimensions?: Dimensions;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
export interface AudioMetadata extends TemporalMediaMetadata {
|
|
84
|
-
type:
|
|
85
|
+
type: ContentNature.Audio;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface VideoRendition {
|
|
89
|
+
name: string;
|
|
90
|
+
dimensions: Dimensions;
|
|
91
|
+
content: ContentSource
|
|
85
92
|
}
|
|
86
93
|
|
|
94
|
+
export const POSTER_RENDITION_NAME = "Poster";
|
|
95
|
+
export const AUDIO_RENDITION_NAME = "Audio";
|
|
96
|
+
export const WEB_VIDEO_RENDITION_NAME = "Web";
|
|
97
|
+
|
|
87
98
|
export interface VideoMetadata extends TemporalMediaMetadata {
|
|
88
|
-
type:
|
|
99
|
+
type: ContentNature.Video;
|
|
89
100
|
dimensions?: Dimensions;
|
|
101
|
+
renditions?: VideoRendition[];
|
|
102
|
+
hasAudio?: boolean;
|
|
90
103
|
}
|
|
91
104
|
|
|
92
105
|
export interface TextSection {
|
|
@@ -96,7 +109,7 @@ export interface TextSection {
|
|
|
96
109
|
}
|
|
97
110
|
|
|
98
111
|
export interface DocumentMetadata extends ContentMetadata {
|
|
99
|
-
type:
|
|
112
|
+
type: ContentNature.Document;
|
|
100
113
|
page_count?: number;
|
|
101
114
|
content_processor?: {
|
|
102
115
|
type?: string;
|
|
@@ -338,6 +351,11 @@ export interface WorkflowRule extends WorkflowRuleItem {
|
|
|
338
351
|
* When set to true the rule will not be updated by the system
|
|
339
352
|
*/
|
|
340
353
|
customer_override?: boolean;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Optional task queue name to use when starting workflows for this rule
|
|
357
|
+
*/
|
|
358
|
+
task_queue?: string;
|
|
341
359
|
}
|
|
342
360
|
|
|
343
361
|
export interface CreateWorkflowRulePayload extends UploadWorkflowRulePayload {
|
package/src/store/workflow.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSONSchema4 } from "json-schema";
|
|
2
|
-
import { InteractionRef } from "../interaction.js";
|
|
2
|
+
import { ConversationVisibility, InteractionRef } from "../interaction.js";
|
|
3
3
|
|
|
4
4
|
export enum ContentEventName {
|
|
5
5
|
create = "create",
|
|
@@ -202,6 +202,11 @@ export interface ListWorkflowRunsPayload {
|
|
|
202
202
|
*/
|
|
203
203
|
initiated_by?: string;
|
|
204
204
|
|
|
205
|
+
/**
|
|
206
|
+
* The interaction name used to filter conversations.
|
|
207
|
+
*/
|
|
208
|
+
interaction?: string;
|
|
209
|
+
|
|
205
210
|
/**
|
|
206
211
|
* Lucene query string to search for the workflow runs.
|
|
207
212
|
* This is a full text search on the workflow run history.
|
|
@@ -301,6 +306,16 @@ export interface WorkflowRun {
|
|
|
301
306
|
* An interaction is used to start the agent, the data is stored on temporal "vars"
|
|
302
307
|
*/
|
|
303
308
|
interactions?: InteractionRef[];
|
|
309
|
+
/**
|
|
310
|
+
* The visibility of the workflow run.
|
|
311
|
+
* - 'private': Only visible to the user who initiated the workflow
|
|
312
|
+
* - 'project': Visible to all users in the project
|
|
313
|
+
*/
|
|
314
|
+
visibility?: ConversationVisibility;
|
|
315
|
+
/**
|
|
316
|
+
* A brief summary of the conversation workflow.
|
|
317
|
+
*/
|
|
318
|
+
topic?: string;
|
|
304
319
|
}
|
|
305
320
|
|
|
306
321
|
export interface WorkflowRunWithDetails extends WorkflowRun {
|
|
@@ -335,11 +350,12 @@ export interface WorkflowInteraction {
|
|
|
335
350
|
tools: [],
|
|
336
351
|
interaction: string,
|
|
337
352
|
environment: string,
|
|
338
|
-
|
|
353
|
+
data: JSONSchema4,
|
|
339
354
|
interactive: boolean,
|
|
340
355
|
interactionParamsSchema?: JSONSchema4
|
|
341
356
|
debug_mode?: boolean;
|
|
342
357
|
collection_id?: string;
|
|
358
|
+
config: Record<string, any>;
|
|
343
359
|
}
|
|
344
360
|
|
|
345
361
|
export interface MultiDocumentsInteractionParams extends Omit<WorkflowExecutionPayload, "config"> {
|
|
@@ -421,3 +437,13 @@ export interface Plan {
|
|
|
421
437
|
}
|
|
422
438
|
|
|
423
439
|
export const LOW_PRIORITY_TASK_QUEUE = "low_priority";
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Payload for applying actions to a workflow run (e.g., cancel, terminate).
|
|
443
|
+
*/
|
|
444
|
+
export interface WorkflowActionPayload {
|
|
445
|
+
/**
|
|
446
|
+
* Optional reason for the action.
|
|
447
|
+
*/
|
|
448
|
+
reason?: string;
|
|
449
|
+
}
|