@crewdle/web-sdk-types 1.0.56 → 1.0.58

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
  }
@@ -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.56",
3
+ "version": "1.0.58",
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"