@vellumai/plugin-api 0.11.2-dev.202608071923.e834602 → 0.11.2-dev.202608072117.4348905

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 +32 -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";
@@ -2670,6 +2678,7 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2670
2678
  }>>;
2671
2679
  targetClientId: z.ZodOptional<z.ZodString>;
2672
2680
  targetInterfaceId: z.ZodOptional<z.ZodEnum<{
2681
+ plugin: "plugin";
2673
2682
  telegram: "telegram";
2674
2683
  phone: "phone";
2675
2684
  whatsapp: "whatsapp";
@@ -4612,7 +4621,7 @@ declare interface InsertedMessage {
4612
4621
  deduplicated: boolean;
4613
4622
  }
4614
4623
 
4615
- declare const INTERFACE_IDS: readonly ["macos", "ios", "cli", "telegram", "phone", "web", "whatsapp", "slack", "email", "chrome-extension", "a2a", "discord", "route"];
4624
+ declare const INTERFACE_IDS: readonly ["macos", "ios", "cli", "telegram", "phone", "web", "whatsapp", "slack", "email", "chrome-extension", "a2a", "discord", "route", "plugin"];
4616
4625
 
4617
4626
  declare type InterfaceId = (typeof INTERFACE_IDS)[number];
4618
4627
 
@@ -5077,6 +5086,7 @@ declare type MessageMetadata_2 = z.infer<typeof messageMetadataSchema>;
5077
5086
 
5078
5087
  declare const messageMetadataSchema: z.ZodObject<{
5079
5088
  userMessageChannel: z.ZodOptional<z.ZodEnum<{
5089
+ plugin: "plugin";
5080
5090
  vellum: "vellum";
5081
5091
  platform: "platform";
5082
5092
  telegram: "telegram";
@@ -5088,6 +5098,7 @@ declare const messageMetadataSchema: z.ZodObject<{
5088
5098
  discord: "discord";
5089
5099
  }>>;
5090
5100
  assistantMessageChannel: z.ZodOptional<z.ZodEnum<{
5101
+ plugin: "plugin";
5091
5102
  vellum: "vellum";
5092
5103
  platform: "platform";
5093
5104
  telegram: "telegram";
@@ -5098,8 +5109,8 @@ declare const messageMetadataSchema: z.ZodObject<{
5098
5109
  a2a: "a2a";
5099
5110
  discord: "discord";
5100
5111
  }>>;
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>>>;
5112
+ 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>>>;
5113
+ 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
5114
  client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5104
5115
  clientOsFromRequest: z.ZodOptional<z.ZodBoolean>;
5105
5116
  subagentNotification: z.ZodOptional<z.ZodObject<{
@@ -5127,6 +5138,7 @@ declare const messageMetadataSchema: z.ZodObject<{
5127
5138
  }>>;
5128
5139
  model: z.ZodOptional<z.ZodString>;
5129
5140
  provenanceSourceChannel: z.ZodOptional<z.ZodEnum<{
5141
+ plugin: "plugin";
5130
5142
  vellum: "vellum";
5131
5143
  platform: "platform";
5132
5144
  telegram: "telegram";
@@ -6602,6 +6614,14 @@ export declare interface SttStreamServerFinalEvent {
6602
6614
  * provider does not surface confidence on this chunk.
6603
6615
  */
6604
6616
  readonly confidence?: number;
6617
+ /**
6618
+ * All detected languages of this chunk in dominance order (first entry
6619
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6620
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6621
+ * providers with code-switching metadata (currently Deepgram nova-3
6622
+ * `multi`) populate this. Absence means "unknown", never English.
6623
+ */
6624
+ readonly languages?: readonly string[];
6605
6625
  /**
6606
6626
  * True when this final is the flush response to
6607
6627
  * {@link StreamingTranscriber.finalizeUtterance} — i.e. it commits audio
@@ -6635,6 +6655,14 @@ export declare interface SttStreamServerPartialEvent {
6635
6655
  * provider does not surface confidence on interim chunks.
6636
6656
  */
6637
6657
  readonly confidence?: number;
6658
+ /**
6659
+ * All detected languages of this chunk in dominance order (first entry
6660
+ * dominant), already normalized to lowercase base subtags (e.g. "en",
6661
+ * "hi") by the emitting adapter; consumers must not re-normalize. Only
6662
+ * providers with code-switching metadata (currently Deepgram nova-3
6663
+ * `multi`) populate this. Absence means "unknown", never English.
6664
+ */
6665
+ readonly languages?: readonly string[];
6638
6666
  }
6639
6667
 
6640
6668
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.2-dev.202608071923.e834602",
3
+ "version": "0.11.2-dev.202608072117.4348905",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",