@crewdle/web-sdk-types 1.0.47 → 1.0.49
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/dist/generative-ai/GenerativeAIWorkerConnector.d.ts +6 -2
- package/dist/generative-ai/GenerativeAIWorkerConnector.js +4 -0
- package/dist/generative-ai/jobs/collection-query/GenerativeAICollectionQueryCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/collection-query/GenerativeAICollectionQueryJob.d.ts +4 -0
- package/dist/generative-ai/jobs/collection-query/GenerativeAICollectionQueryWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-delete/GenerativeAIFileDeleteCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-delete/GenerativeAIFileDeleteJob.d.ts +4 -0
- package/dist/generative-ai/jobs/file-delete/GenerativeAIFileDeleteWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-ingest/GenerativeAIFileIngestCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-ingest/GenerativeAIFileIngestJob.d.ts +4 -0
- package/dist/generative-ai/jobs/file-ingest/GenerativeAIFileIngestWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-list/GenerativeAIFileListCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/file-list/GenerativeAIFileListJob.d.ts +4 -0
- package/dist/generative-ai/jobs/file-list/GenerativeAIFileListWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/inference/GenerativeAIInferenceWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/prompt/GenerativeAIPromptCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/prompt/GenerativeAIPromptJob.d.ts +4 -0
- package/dist/generative-ai/jobs/prompt/GenerativeAIPromptWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/speech-create/GenerativeAISpeechCreateCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/speech-create/GenerativeAISpeechCreateJob.d.ts +4 -0
- package/dist/generative-ai/jobs/speech-create/GenerativeAISpeechCreateWorkerParameters.d.ts +4 -0
- package/dist/generative-ai/rag/GenerativeAIRagConnector.d.ts +13 -12
- package/dist/generative-ai/speech/GenerativeAISpeechConnector.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare enum GenerativeAIModelOutputType {
|
|
|
19
19
|
Text = "text",
|
|
20
20
|
Audio = "audio",
|
|
21
21
|
Image = "image",
|
|
22
|
+
Video = "video",
|
|
22
23
|
Vector = "vector",
|
|
23
24
|
Entity = "entity"
|
|
24
25
|
}
|
|
@@ -55,7 +56,9 @@ export declare enum GenerativeAITaskType {
|
|
|
55
56
|
ZeroShotImageClassification = "zero-shot-image-classification",
|
|
56
57
|
ZeroShotObjectDetection = "zero-shot-object-detection",
|
|
57
58
|
SpeechToSpeech = "speech-to-speech",
|
|
58
|
-
SpeechToText = "speech-to-text"
|
|
59
|
+
SpeechToText = "speech-to-text",
|
|
60
|
+
ImageGeneration = "image-generation",
|
|
61
|
+
VideoGeneration = "video-generation"
|
|
59
62
|
}
|
|
60
63
|
/**
|
|
61
64
|
* The generative AI engine types.
|
|
@@ -68,7 +71,8 @@ export declare enum GenerativeAIEngineType {
|
|
|
68
71
|
Anthropic = "anthropic",
|
|
69
72
|
VertexAI = "vertexai",
|
|
70
73
|
ElevenLabs = "elevenlabs",
|
|
71
|
-
OpenRouter = "openrouter"
|
|
74
|
+
OpenRouter = "openrouter",
|
|
75
|
+
RunwayML = "runwayml"
|
|
72
76
|
}
|
|
73
77
|
/**
|
|
74
78
|
* The generative AI model interface.
|
|
@@ -17,6 +17,7 @@ export var GenerativeAIModelOutputType;
|
|
|
17
17
|
GenerativeAIModelOutputType["Text"] = "text";
|
|
18
18
|
GenerativeAIModelOutputType["Audio"] = "audio";
|
|
19
19
|
GenerativeAIModelOutputType["Image"] = "image";
|
|
20
|
+
GenerativeAIModelOutputType["Video"] = "video";
|
|
20
21
|
GenerativeAIModelOutputType["Vector"] = "vector";
|
|
21
22
|
GenerativeAIModelOutputType["Entity"] = "entity";
|
|
22
23
|
})(GenerativeAIModelOutputType || (GenerativeAIModelOutputType = {}));
|
|
@@ -55,6 +56,8 @@ export var GenerativeAITaskType;
|
|
|
55
56
|
GenerativeAITaskType["ZeroShotObjectDetection"] = "zero-shot-object-detection";
|
|
56
57
|
GenerativeAITaskType["SpeechToSpeech"] = "speech-to-speech";
|
|
57
58
|
GenerativeAITaskType["SpeechToText"] = "speech-to-text";
|
|
59
|
+
GenerativeAITaskType["ImageGeneration"] = "image-generation";
|
|
60
|
+
GenerativeAITaskType["VideoGeneration"] = "video-generation";
|
|
58
61
|
})(GenerativeAITaskType || (GenerativeAITaskType = {}));
|
|
59
62
|
/**
|
|
60
63
|
* The generative AI engine types.
|
|
@@ -69,4 +72,5 @@ export var GenerativeAIEngineType;
|
|
|
69
72
|
GenerativeAIEngineType["VertexAI"] = "vertexai";
|
|
70
73
|
GenerativeAIEngineType["ElevenLabs"] = "elevenlabs";
|
|
71
74
|
GenerativeAIEngineType["OpenRouter"] = "openrouter";
|
|
75
|
+
GenerativeAIEngineType["RunwayML"] = "runwayml";
|
|
72
76
|
})(GenerativeAIEngineType || (GenerativeAIEngineType = {}));
|
|
@@ -13,6 +13,10 @@ export interface IGenerativeAICollectionQueryJob extends IGenerativeAIJob {
|
|
|
13
13
|
* The collection id for the search.
|
|
14
14
|
*/
|
|
15
15
|
collectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The namespace for the search.
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
16
20
|
/**
|
|
17
21
|
* Run the search job.
|
|
18
22
|
* @returns A promise that resolves with the result.
|
|
@@ -13,6 +13,10 @@ export interface IGenerativeAIFileDeleteCreateJobParameters extends IGenerativeA
|
|
|
13
13
|
* The collection id of the file to delete.
|
|
14
14
|
*/
|
|
15
15
|
collectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The namespace to delete the file.
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
16
20
|
/**
|
|
17
21
|
* The file id of the file to delete.
|
|
18
22
|
*/
|
|
@@ -9,6 +9,10 @@ export interface IGenerativeAIFileDeleteJob extends IGenerativeAIJob {
|
|
|
9
9
|
* The collection id of the file to delete.
|
|
10
10
|
*/
|
|
11
11
|
collectionId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The namespace to delete the file.
|
|
14
|
+
*/
|
|
15
|
+
namespace?: string;
|
|
12
16
|
/**
|
|
13
17
|
* The file id of the file to delete.
|
|
14
18
|
*/
|
|
@@ -13,6 +13,10 @@ export interface IGenerativeAIFileDeleteWorkerParameters extends IGenerativeAIWo
|
|
|
13
13
|
* The collection id of the file to delete.
|
|
14
14
|
*/
|
|
15
15
|
collectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The namespace to delete the file.
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
16
20
|
/**
|
|
17
21
|
* The file id of the file to delete.
|
|
18
22
|
*/
|
|
@@ -13,6 +13,10 @@ export interface IGenerativeAIFileIngestCreateJobParameters extends IGenerativeA
|
|
|
13
13
|
* The collection id of the file to ingest.
|
|
14
14
|
*/
|
|
15
15
|
collectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The namespace to ingest the file.
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
16
20
|
/**
|
|
17
21
|
* The name of the file to ingest.
|
|
18
22
|
*/
|
|
@@ -9,6 +9,10 @@ export interface IGenerativeAIFileIngestJob extends IGenerativeAIJob {
|
|
|
9
9
|
* The collection id of the file to ingest.
|
|
10
10
|
*/
|
|
11
11
|
collectionId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The namespace to ingest the file.
|
|
14
|
+
*/
|
|
15
|
+
namespace?: string;
|
|
12
16
|
/**
|
|
13
17
|
* The name of the file to ingest.
|
|
14
18
|
*/
|
|
@@ -13,6 +13,10 @@ export interface IGenerativeAIFileIngestWorkerParameters extends IGenerativeAIWo
|
|
|
13
13
|
* The collection id for the file to ingest.
|
|
14
14
|
*/
|
|
15
15
|
collectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The namespace to ingest the file.
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
16
20
|
/**
|
|
17
21
|
* The name of the file to ingest.
|
|
18
22
|
*/
|
|
@@ -9,6 +9,10 @@ export interface IGenerativeAIFileListJob extends IGenerativeAIJob {
|
|
|
9
9
|
* The collection id of the file to list.
|
|
10
10
|
*/
|
|
11
11
|
collectionId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The namespace to list files.
|
|
14
|
+
*/
|
|
15
|
+
namespace?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Run the file list job.
|
|
14
18
|
* @returns A promise that resolves with the result.
|
|
@@ -159,6 +159,10 @@ export interface IGenerativeAIInferenceTool {
|
|
|
159
159
|
* The collection ID for the tool.
|
|
160
160
|
*/
|
|
161
161
|
collectionId?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The namespace for the tool.
|
|
164
|
+
*/
|
|
165
|
+
namespace?: string;
|
|
162
166
|
/**
|
|
163
167
|
* The form skill questions for the tool.
|
|
164
168
|
*/
|
|
@@ -15,6 +15,10 @@ export interface IGenerativeAIPromptCreateJobParameters extends IGenerativeAICre
|
|
|
15
15
|
* The workflow id to use for the prompt.
|
|
16
16
|
*/
|
|
17
17
|
workflowId: string;
|
|
18
|
+
/**
|
|
19
|
+
* The namespace to use for the prompt.
|
|
20
|
+
*/
|
|
21
|
+
namespace?: string;
|
|
18
22
|
/**
|
|
19
23
|
* The prompt to be processed.
|
|
20
24
|
*/
|
|
@@ -9,6 +9,10 @@ export interface IGenerativeAIPromptJob extends IGenerativeAIJob {
|
|
|
9
9
|
* The workflow id to use for the prompt.
|
|
10
10
|
*/
|
|
11
11
|
workflowId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The namespace to use for the prompt.
|
|
14
|
+
*/
|
|
15
|
+
namespace?: string;
|
|
12
16
|
/**
|
|
13
17
|
* The prompt to be processed
|
|
14
18
|
*/
|
|
@@ -5,6 +5,11 @@ export declare enum GenerativeAIRagType {
|
|
|
5
5
|
Pinecone = "pinecone",
|
|
6
6
|
Crewdle = "crewdle"
|
|
7
7
|
}
|
|
8
|
+
export interface IGenerativeAIRagCollection {
|
|
9
|
+
instanceId: string;
|
|
10
|
+
collectionId: string;
|
|
11
|
+
namespace?: string;
|
|
12
|
+
}
|
|
8
13
|
/**
|
|
9
14
|
* Generative AI Rag Connector Interface
|
|
10
15
|
* @category AI
|
|
@@ -27,35 +32,31 @@ export interface IGenerativeAIRagConnector {
|
|
|
27
32
|
deleteCollection(instanceId: string, collectionId: string, deleteInstance: boolean): Promise<void>;
|
|
28
33
|
/**
|
|
29
34
|
* Query a collection.
|
|
30
|
-
* @param
|
|
31
|
-
* @param collectionId The collection id to query.
|
|
35
|
+
* @param collection The collection to query.
|
|
32
36
|
* @param query The query to run.
|
|
33
37
|
* @param topK The number of results to return.
|
|
34
38
|
* @returns The search results.
|
|
35
39
|
*/
|
|
36
|
-
queryCollection(
|
|
40
|
+
queryCollection(collection: IGenerativeAIRagCollection, query: string | number[], topK: number): Promise<ISearchResult[]>;
|
|
37
41
|
/**
|
|
38
42
|
* Delete a file.
|
|
39
|
-
* @param
|
|
40
|
-
* @param collectionId The collection id of the file to delete.
|
|
43
|
+
* @param collection The collection to delete the file.
|
|
41
44
|
* @param fileId The file id to delete.
|
|
42
45
|
* @returns A promise that resolves when the file is deleted.
|
|
43
46
|
*/
|
|
44
|
-
deleteFile(
|
|
47
|
+
deleteFile(collection: IGenerativeAIRagCollection, fileId: string): Promise<void>;
|
|
45
48
|
/**
|
|
46
49
|
* Ingest a file.
|
|
47
|
-
* @param
|
|
48
|
-
* @param collectionId The collection id to ingest the file.
|
|
50
|
+
* @param collection The collection to ingest the file.
|
|
49
51
|
* @param fileName The name of the file to ingest.
|
|
50
52
|
* @param content The content of the file to ingest.
|
|
51
53
|
* @returns A promise that resolves when the file is ingested.
|
|
52
54
|
*/
|
|
53
|
-
ingestFile(
|
|
55
|
+
ingestFile(collection: IGenerativeAIRagCollection, fileName: string, content: string | IIndex[]): Promise<void>;
|
|
54
56
|
/**
|
|
55
57
|
* List files in a collection.
|
|
56
|
-
* @param
|
|
57
|
-
* @param collectionId The collection id to list files.
|
|
58
|
+
* @param collection The collection to list files.
|
|
58
59
|
* @returns The list of files.
|
|
59
60
|
*/
|
|
60
|
-
listFiles(
|
|
61
|
+
listFiles(collection: IGenerativeAIRagCollection): Promise<IGenerativeAIFile[]>;
|
|
61
62
|
}
|
|
@@ -10,7 +10,7 @@ export interface IGenerativeAISpeechConnector {
|
|
|
10
10
|
* @param voice The voice to use.
|
|
11
11
|
* @param instructions Optional instructions for the speech.
|
|
12
12
|
*/
|
|
13
|
-
speak(model: string, text: string, voice: string, instructions?: string): Promise<ReadableStream>;
|
|
13
|
+
speak(model: string, text: string, voice: string, format: string, instructions?: string): Promise<ReadableStream>;
|
|
14
14
|
/**
|
|
15
15
|
* Get the engine type.
|
|
16
16
|
* @returns The engine type.
|