@vellumai/plugin-api 0.11.3-staging.2 → 0.11.3-staging.4

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 +38 -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";
@@ -1075,6 +1083,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
1075
1083
  silenceThresholdMs: z.ZodDefault<z.ZodNumber>;
1076
1084
  maxTurnDurationMs: z.ZodDefault<z.ZodNumber>;
1077
1085
  bargeInMinSpeechMs: z.ZodDefault<z.ZodNumber>;
1086
+ echoBargeInMargin: z.ZodDefault<z.ZodNumber>;
1087
+ echoEmaHalfLifeMs: z.ZodDefault<z.ZodNumber>;
1088
+ echoDrainSlackMs: z.ZodDefault<z.ZodNumber>;
1078
1089
  }, z.core.$strip>>;
1079
1090
  frontModel: z.ZodDefault<z.ZodObject<{
1080
1091
  endpointDecisionTimeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -2571,6 +2582,16 @@ export declare class AssistantEventHub {
2571
2582
  * authenticated user identity that opened the target client's SSE stream.
2572
2583
  */
2573
2584
  getActorPrincipalIdForClient(clientId: string): string | undefined;
2585
+ /**
2586
+ * Whether the connection identified by `connectionId` is still an active
2587
+ * client subscription that carries no `actorPrincipalId`.
2588
+ *
2589
+ * Drives the retrying SSE self-heal (`sse-actor-principal-heal.ts`): the loop
2590
+ * re-checks before each attempt so it stops as soon as the connection closes,
2591
+ * is replaced by a reconnect, or gets a principal from any path. Returns
2592
+ * `false` for an unknown, inactive, or process-type connection.
2593
+ */
2594
+ needsActorPrincipalHeal(connectionId: string): boolean;
2574
2595
  /**
2575
2596
  * Fill a missing `actorPrincipalId` on a live client subscription.
2576
2597
  *
@@ -6528,6 +6549,14 @@ export declare interface SttStreamServerFinalEvent {
6528
6549
  * provider does not surface confidence on this chunk.
6529
6550
  */
6530
6551
  readonly confidence?: number;
6552
+ /**
6553
+ * All detected languages of this chunk in dominance order (first entry
6554
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6555
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6556
+ * providers with code-switching metadata (currently Deepgram nova-3
6557
+ * `multi`) populate this. Absence means "unknown", never English.
6558
+ */
6559
+ readonly languages?: readonly string[];
6531
6560
  /**
6532
6561
  * True when this final is the flush response to
6533
6562
  * {@link StreamingTranscriber.finalizeUtterance} — i.e. it commits audio
@@ -6561,6 +6590,14 @@ export declare interface SttStreamServerPartialEvent {
6561
6590
  * provider does not surface confidence on interim chunks.
6562
6591
  */
6563
6592
  readonly confidence?: number;
6593
+ /**
6594
+ * All detected languages of this chunk in dominance order (first entry
6595
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6596
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6597
+ * providers with code-switching metadata (currently Deepgram nova-3
6598
+ * `multi`) populate this. Absence means "unknown", never English.
6599
+ */
6600
+ readonly languages?: readonly string[];
6564
6601
  }
6565
6602
 
6566
6603
  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.2",
3
+ "version": "0.11.3-staging.4",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",