@vellumai/plugin-api 0.11.2-dev.202608072015.e50ee9a → 0.11.2-dev.202608072144.9eaee43

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 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -171,6 +171,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
171
171
  stability: z.ZodDefault<z.ZodNumber>;
172
172
  similarityBoost: z.ZodDefault<z.ZodNumber>;
173
173
  conversationTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
174
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
175
+ [k: string]: string;
176
+ }, Record<string, string>>>>;
174
177
  }, z.core.$strip>>;
175
178
  "fish-audio": z.ZodDefault<z.ZodObject<{
176
179
  referenceId: z.ZodDefault<z.ZodString>;
@@ -193,6 +196,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
193
196
  wav: "wav";
194
197
  opus: "opus";
195
198
  }>>;
199
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
200
+ [k: string]: string;
201
+ }, Record<string, string>>>>;
196
202
  }, z.core.$strip>>;
197
203
  xai: z.ZodDefault<z.ZodObject<{
198
204
  voiceId: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -206,6 +212,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
206
212
  }, z.core.$strip>>;
207
213
  vellum: z.ZodDefault<z.ZodObject<{
208
214
  model: z.ZodOptional<z.ZodString>;
215
+ languageVoices: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
216
+ [k: string]: string;
217
+ }, Record<string, string>>>>;
209
218
  }, z.core.$strip>>;
210
219
  }, z.core.$strip>>;
211
220
  }, z.core.$strip>>;
@@ -1047,7 +1056,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1047
1056
  denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
1048
1057
  }, z.core.$strip>>;
1049
1058
  voice: z.ZodDefault<z.ZodObject<{
1050
- language: z.ZodDefault<z.ZodString>;
1051
1059
  interruptSensitivity: z.ZodDefault<z.ZodEnum<{
1052
1060
  low: "low";
1053
1061
  medium: "medium";
@@ -1076,6 +1084,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
1076
1084
  silenceThresholdMs: z.ZodDefault<z.ZodNumber>;
1077
1085
  maxTurnDurationMs: z.ZodDefault<z.ZodNumber>;
1078
1086
  bargeInMinSpeechMs: z.ZodDefault<z.ZodNumber>;
1087
+ echoBargeInMargin: z.ZodDefault<z.ZodNumber>;
1088
+ echoEmaHalfLifeMs: z.ZodDefault<z.ZodNumber>;
1089
+ echoDrainSlackMs: z.ZodDefault<z.ZodNumber>;
1079
1090
  }, z.core.$strip>>;
1080
1091
  frontModel: z.ZodDefault<z.ZodObject<{
1081
1092
  endpointDecisionTimeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -2670,6 +2681,7 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2670
2681
  }>>;
2671
2682
  targetClientId: z.ZodOptional<z.ZodString>;
2672
2683
  targetInterfaceId: z.ZodOptional<z.ZodEnum<{
2684
+ plugin: "plugin";
2673
2685
  telegram: "telegram";
2674
2686
  phone: "phone";
2675
2687
  whatsapp: "whatsapp";
@@ -4612,7 +4624,7 @@ declare interface InsertedMessage {
4612
4624
  deduplicated: boolean;
4613
4625
  }
4614
4626
 
4615
- declare const INTERFACE_IDS: readonly ["macos", "ios", "cli", "telegram", "phone", "web", "whatsapp", "slack", "email", "chrome-extension", "a2a", "discord", "route"];
4627
+ declare const INTERFACE_IDS: readonly ["macos", "ios", "cli", "telegram", "phone", "web", "whatsapp", "slack", "email", "chrome-extension", "a2a", "discord", "route", "plugin"];
4616
4628
 
4617
4629
  declare type InterfaceId = (typeof INTERFACE_IDS)[number];
4618
4630
 
@@ -5077,6 +5089,7 @@ declare type MessageMetadata_2 = z.infer<typeof messageMetadataSchema>;
5077
5089
 
5078
5090
  declare const messageMetadataSchema: z.ZodObject<{
5079
5091
  userMessageChannel: z.ZodOptional<z.ZodEnum<{
5092
+ plugin: "plugin";
5080
5093
  vellum: "vellum";
5081
5094
  platform: "platform";
5082
5095
  telegram: "telegram";
@@ -5088,6 +5101,7 @@ declare const messageMetadataSchema: z.ZodObject<{
5088
5101
  discord: "discord";
5089
5102
  }>>;
5090
5103
  assistantMessageChannel: z.ZodOptional<z.ZodEnum<{
5104
+ plugin: "plugin";
5091
5105
  vellum: "vellum";
5092
5106
  platform: "platform";
5093
5107
  telegram: "telegram";
@@ -5098,8 +5112,8 @@ declare const messageMetadataSchema: z.ZodObject<{
5098
5112
  a2a: "a2a";
5099
5113
  discord: "discord";
5100
5114
  }>>;
5101
- userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5102
- assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5115
+ userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5116
+ assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"plugin" | "telegram" | "phone" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "macos" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5103
5117
  client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5104
5118
  clientOsFromRequest: z.ZodOptional<z.ZodBoolean>;
5105
5119
  subagentNotification: z.ZodOptional<z.ZodObject<{
@@ -5127,6 +5141,7 @@ declare const messageMetadataSchema: z.ZodObject<{
5127
5141
  }>>;
5128
5142
  model: z.ZodOptional<z.ZodString>;
5129
5143
  provenanceSourceChannel: z.ZodOptional<z.ZodEnum<{
5144
+ plugin: "plugin";
5130
5145
  vellum: "vellum";
5131
5146
  platform: "platform";
5132
5147
  telegram: "telegram";
@@ -6602,6 +6617,14 @@ export declare interface SttStreamServerFinalEvent {
6602
6617
  * provider does not surface confidence on this chunk.
6603
6618
  */
6604
6619
  readonly confidence?: number;
6620
+ /**
6621
+ * All detected languages of this chunk in dominance order (first entry
6622
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6623
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6624
+ * providers with code-switching metadata (currently Deepgram nova-3
6625
+ * `multi`) populate this. Absence means "unknown", never English.
6626
+ */
6627
+ readonly languages?: readonly string[];
6605
6628
  /**
6606
6629
  * True when this final is the flush response to
6607
6630
  * {@link StreamingTranscriber.finalizeUtterance} — i.e. it commits audio
@@ -6635,6 +6658,14 @@ export declare interface SttStreamServerPartialEvent {
6635
6658
  * provider does not surface confidence on interim chunks.
6636
6659
  */
6637
6660
  readonly confidence?: number;
6661
+ /**
6662
+ * All detected languages of this chunk in dominance order (first entry
6663
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6664
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6665
+ * providers with code-switching metadata (currently Deepgram nova-3
6666
+ * `multi`) populate this. Absence means "unknown", never English.
6667
+ */
6668
+ readonly languages?: readonly string[];
6638
6669
  }
6639
6670
 
6640
6671
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.2-dev.202608072015.e50ee9a",
3
+ "version": "0.11.2-dev.202608072144.9eaee43",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",