@crewdle/web-sdk-types 1.0.57 → 1.0.59

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.
@@ -58,7 +58,8 @@ export declare enum GenerativeAITaskType {
58
58
  SpeechToSpeech = "speech-to-speech",
59
59
  SpeechToText = "speech-to-text",
60
60
  ImageGeneration = "image-generation",
61
- VideoGeneration = "video-generation"
61
+ VideoGeneration = "video-generation",
62
+ MusicGeneration = "music-generation"
62
63
  }
63
64
  /**
64
65
  * The generative AI engine types.
@@ -72,7 +73,8 @@ export declare enum GenerativeAIEngineType {
72
73
  VertexAI = "vertexai",
73
74
  ElevenLabs = "elevenlabs",
74
75
  OpenRouter = "openrouter",
75
- RunwayML = "runwayml"
76
+ RunwayML = "runwayml",
77
+ Google = "google"
76
78
  }
77
79
  /**
78
80
  * The generative AI model interface.
@@ -58,6 +58,7 @@ export var GenerativeAITaskType;
58
58
  GenerativeAITaskType["SpeechToText"] = "speech-to-text";
59
59
  GenerativeAITaskType["ImageGeneration"] = "image-generation";
60
60
  GenerativeAITaskType["VideoGeneration"] = "video-generation";
61
+ GenerativeAITaskType["MusicGeneration"] = "music-generation";
61
62
  })(GenerativeAITaskType || (GenerativeAITaskType = {}));
62
63
  /**
63
64
  * The generative AI engine types.
@@ -73,4 +74,5 @@ export var GenerativeAIEngineType;
73
74
  GenerativeAIEngineType["ElevenLabs"] = "elevenlabs";
74
75
  GenerativeAIEngineType["OpenRouter"] = "openrouter";
75
76
  GenerativeAIEngineType["RunwayML"] = "runwayml";
77
+ GenerativeAIEngineType["Google"] = "google";
76
78
  })(GenerativeAIEngineType || (GenerativeAIEngineType = {}));
@@ -8,6 +8,10 @@ export interface IGenerativeAICreateJobParameters {
8
8
  * The vendor id of the job.
9
9
  */
10
10
  vendorId: string;
11
+ /**
12
+ * The user ID.
13
+ */
14
+ userId?: string;
11
15
  /**
12
16
  * The options for the job.
13
17
  */
@@ -17,4 +17,8 @@ export interface IGenerativeAIWorkerParameters extends IGenerativeAIJobParameter
17
17
  * The workflow ID.
18
18
  */
19
19
  workflowId?: string;
20
+ /**
21
+ * The user ID.
22
+ */
23
+ userId?: string;
20
24
  }
@@ -43,6 +43,10 @@ export interface IGenerativeAIInferenceCreateJobParameters extends IGenerativeAI
43
43
  * Reasoning effort for the AI job.
44
44
  */
45
45
  reasoning?: string;
46
+ /**
47
+ * Effort level for the AI job.
48
+ */
49
+ effort?: string;
46
50
  /**
47
51
  * Verbosity for the AI job.
48
52
  */
@@ -38,6 +38,10 @@ export interface IGenerativeAIInferenceJob extends IGenerativeAIJob {
38
38
  * Reasoning effort for the AI job.
39
39
  */
40
40
  reasoning?: string;
41
+ /**
42
+ * Effort level for the AI job.
43
+ */
44
+ effort?: string;
41
45
  /**
42
46
  * Verbosity for the AI job.
43
47
  */
@@ -42,6 +42,10 @@ export interface IGenerativeAIInferenceWorkerParameters extends IGenerativeAIWor
42
42
  * Reasoning effort for the AI job.
43
43
  */
44
44
  reasoning?: string;
45
+ /**
46
+ * Effort level for the AI job.
47
+ */
48
+ effort?: string;
45
49
  /**
46
50
  * Verbosity for the AI job.
47
51
  */
@@ -201,6 +205,10 @@ export interface IGenerativeAIInferenceTool {
201
205
  * The reasoning effort for the tool.
202
206
  */
203
207
  reasoning?: string;
208
+ /**
209
+ * Effort level for the tool.
210
+ */
211
+ effort?: string;
204
212
  /**
205
213
  * The verbosity for the tool.
206
214
  */
@@ -36,6 +36,10 @@ export interface IGenerativeAIPromptOptions extends IGenerativeAIOptions {
36
36
  * Reasoning effort for the AI job.
37
37
  */
38
38
  reasoning?: string;
39
+ /**
40
+ * Effort level for the AI job.
41
+ */
42
+ effort?: string;
39
43
  /**
40
44
  * Verbosity for the AI job.
41
45
  */
@@ -38,4 +38,16 @@ export interface IGenerativeAIPromptResult extends IGenerativeAIJobResult {
38
38
  * The tokens generated by the AI job.
39
39
  */
40
40
  outputTokens?: number;
41
+ /**
42
+ * The tokens used by the AI job, bucketed by type for billing. `base` holds
43
+ * tokens billed at the model's list price; other buckets (cacheRead,
44
+ * cacheWrite5m, cacheWrite1h, cached, audio, image, …) are converted to
45
+ * base-token equivalents at billing time via the model's tokenRates.
46
+ * Optional: connectors without per-type usage data keep reporting only the
47
+ * flat inputTokens/outputTokens counts.
48
+ */
49
+ tokenBuckets?: {
50
+ input?: Record<string, number>;
51
+ output?: Record<string, number>;
52
+ };
41
53
  }
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
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",
7
7
  "scripts": {
8
8
  "build": "rm -rf dist && tsc"
9
9
  },
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org/",
12
+ "@crewdle:registry": "https://registry.npmjs.org/",
13
+ "access": "public"
14
+ },
10
15
  "repository": {
11
16
  "type": "git",
12
17
  "url": "git+https://github.com/Crewdle/web-sdk-types.git"