@vellumai/plugin-api 0.11.3-staging.1 → 0.11.3-staging.3

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.
Files changed (2) hide show
  1. package/index.d.ts +35 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -170,6 +170,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
170
170
  stability: z.ZodDefault<z.ZodNumber>;
171
171
  similarityBoost: z.ZodDefault<z.ZodNumber>;
172
172
  conversationTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
173
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
174
+ [k: string]: string;
175
+ }, Record<string, string>>>>;
173
176
  }, z.core.$strip>>;
174
177
  "fish-audio": z.ZodDefault<z.ZodObject<{
175
178
  referenceId: z.ZodDefault<z.ZodString>;
@@ -192,6 +195,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
192
195
  wav: "wav";
193
196
  opus: "opus";
194
197
  }>>;
198
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
199
+ [k: string]: string;
200
+ }, Record<string, string>>>>;
195
201
  }, z.core.$strip>>;
196
202
  xai: z.ZodDefault<z.ZodObject<{
197
203
  voiceId: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -205,6 +211,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
205
211
  }, z.core.$strip>>;
206
212
  vellum: z.ZodDefault<z.ZodObject<{
207
213
  model: z.ZodOptional<z.ZodString>;
214
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
215
+ [k: string]: string;
216
+ }, Record<string, string>>>>;
208
217
  }, z.core.$strip>>;
209
218
  }, z.core.$strip>>;
210
219
  }, z.core.$strip>>;
@@ -1046,7 +1055,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1046
1055
  denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
1047
1056
  }, z.core.$strip>>;
1048
1057
  voice: z.ZodDefault<z.ZodObject<{
1049
- language: z.ZodDefault<z.ZodString>;
1050
1058
  interruptSensitivity: z.ZodDefault<z.ZodEnum<{
1051
1059
  low: "low";
1052
1060
  medium: "medium";
@@ -2571,6 +2579,16 @@ export declare class AssistantEventHub {
2571
2579
  * authenticated user identity that opened the target client's SSE stream.
2572
2580
  */
2573
2581
  getActorPrincipalIdForClient(clientId: string): string | undefined;
2582
+ /**
2583
+ * Whether the connection identified by `connectionId` is still an active
2584
+ * client subscription that carries no `actorPrincipalId`.
2585
+ *
2586
+ * Drives the retrying SSE self-heal (`sse-actor-principal-heal.ts`): the loop
2587
+ * re-checks before each attempt so it stops as soon as the connection closes,
2588
+ * is replaced by a reconnect, or gets a principal from any path. Returns
2589
+ * `false` for an unknown, inactive, or process-type connection.
2590
+ */
2591
+ needsActorPrincipalHeal(connectionId: string): boolean;
2574
2592
  /**
2575
2593
  * Fill a missing `actorPrincipalId` on a live client subscription.
2576
2594
  *
@@ -6528,6 +6546,14 @@ export declare interface SttStreamServerFinalEvent {
6528
6546
  * provider does not surface confidence on this chunk.
6529
6547
  */
6530
6548
  readonly confidence?: number;
6549
+ /**
6550
+ * All detected languages of this chunk in dominance order (first entry
6551
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6552
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6553
+ * providers with code-switching metadata (currently Deepgram nova-3
6554
+ * `multi`) populate this. Absence means "unknown", never English.
6555
+ */
6556
+ readonly languages?: readonly string[];
6531
6557
  /**
6532
6558
  * True when this final is the flush response to
6533
6559
  * {@link StreamingTranscriber.finalizeUtterance} — i.e. it commits audio
@@ -6561,6 +6587,14 @@ export declare interface SttStreamServerPartialEvent {
6561
6587
  * provider does not surface confidence on interim chunks.
6562
6588
  */
6563
6589
  readonly confidence?: number;
6590
+ /**
6591
+ * All detected languages of this chunk in dominance order (first entry
6592
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6593
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6594
+ * providers with code-switching metadata (currently Deepgram nova-3
6595
+ * `multi`) populate this. Absence means "unknown", never English.
6596
+ */
6597
+ readonly languages?: readonly string[];
6564
6598
  }
6565
6599
 
6566
6600
  declare type SubscriberEntry = ClientEntry | ProcessEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.3-staging.1",
3
+ "version": "0.11.3-staging.3",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",