@crewdle/web-sdk-types 1.0.12 → 1.0.13

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.
@@ -8,7 +8,7 @@ export interface IGenerativeAIContext {
8
8
  * @param prompt The prompt to start processing.
9
9
  * @returns The response from the AI service.
10
10
  */
11
- prompt(prompt: string): Promise<string>;
11
+ prompt(prompt: string): AsyncGenerator<string>;
12
12
  /**
13
13
  * Close the Generative AI Context.
14
14
  */
package/dist/job/Job.d.ts CHANGED
@@ -35,19 +35,23 @@ export declare enum JobStatus {
35
35
  /**
36
36
  * The job is pending.
37
37
  */
38
- Pending = "Pending",
38
+ Pending = "pending",
39
39
  /**
40
40
  * The job is processing.
41
41
  */
42
- Processing = "Processing",
42
+ Processing = "processing",
43
+ /**
44
+ * The job has partial results.
45
+ */
46
+ Partial = "partial",
43
47
  /**
44
48
  * The job is completed.
45
49
  */
46
- Completed = "Completed",
50
+ Completed = "completed",
47
51
  /**
48
52
  * The job has failed.
49
53
  */
50
- Failed = "Failed"
54
+ Failed = "failed"
51
55
  }
52
56
  /**
53
57
  * Base IJobParameters Interface
@@ -99,6 +103,7 @@ export interface IJobResult {
99
103
  export interface IJobResultAI {
100
104
  jobType: JobType.AI;
101
105
  output: string;
106
+ index?: number;
102
107
  }
103
108
  /**
104
109
  * JobResult Type
package/dist/job/Job.js CHANGED
@@ -18,17 +18,21 @@ export var JobStatus;
18
18
  /**
19
19
  * The job is pending.
20
20
  */
21
- JobStatus["Pending"] = "Pending";
21
+ JobStatus["Pending"] = "pending";
22
22
  /**
23
23
  * The job is processing.
24
24
  */
25
- JobStatus["Processing"] = "Processing";
25
+ JobStatus["Processing"] = "processing";
26
+ /**
27
+ * The job has partial results.
28
+ */
29
+ JobStatus["Partial"] = "partial";
26
30
  /**
27
31
  * The job is completed.
28
32
  */
29
- JobStatus["Completed"] = "Completed";
33
+ JobStatus["Completed"] = "completed";
30
34
  /**
31
35
  * The job has failed.
32
36
  */
33
- JobStatus["Failed"] = "Failed";
37
+ JobStatus["Failed"] = "failed";
34
38
  })(JobStatus || (JobStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "The Crewdle Mist Web SDK public types and interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",