@vellumai/plugin-api 0.12.2-dev.202609181416.153f6c5 → 0.12.2-dev.202609181615.645c0a5

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 +48 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2396,6 +2396,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2396
2396
  keenable: "keenable";
2397
2397
  firecrawl: "firecrawl";
2398
2398
  fastcrw: "fastcrw";
2399
+ searxng: "searxng";
2399
2400
  }>;
2400
2401
  resultCount: z.ZodNumber;
2401
2402
  durationMs: z.ZodNumber;
@@ -3945,6 +3946,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3945
3946
  keenable: "keenable";
3946
3947
  firecrawl: "firecrawl";
3947
3948
  fastcrw: "fastcrw";
3949
+ searxng: "searxng";
3948
3950
  }>;
3949
3951
  resultCount: z.ZodNumber;
3950
3952
  durationMs: z.ZodNumber;
@@ -4738,11 +4740,13 @@ declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Om
4738
4740
  /**
4739
4741
  * Whether the given model or profile can process image input.
4740
4742
  *
4741
- * `modelOrProfile` may be a concrete model id, a profile key, or a
4742
- * {@link ModelProfileInfo}. A bare string is resolved as a model id first and,
4743
- * failing that, as a profile key. Returns `false` when nothing resolves.
4743
+ * `modelOrProfile` may be a concrete model id, a profile key, a
4744
+ * {@link ModelProfileInfo}, or a fully resolved target. A resolved target
4745
+ * combines the final provider/model with the winning profile's modality
4746
+ * policy. A bare string is resolved as a model id first and, failing that, as
4747
+ * a profile key. Returns `false` when nothing resolves.
4744
4748
  */
4745
- export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | string): boolean;
4749
+ export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | ResolvedVisionTarget | string): boolean;
4746
4750
 
4747
4751
  /**
4748
4752
  * Embed an input and return the raw dense vector (provider, model, and
@@ -5095,6 +5099,27 @@ export declare interface InitContext {
5095
5099
  assistantVersion: string;
5096
5100
  }
5097
5101
 
5102
+ declare type InputModalities = z.infer<typeof InputModalitiesSchema>;
5103
+
5104
+ declare const InputModalitiesSchema: z.ZodObject<{
5105
+ text: z.ZodOptional<z.ZodObject<{
5106
+ enabled: z.ZodOptional<z.ZodBoolean>;
5107
+ supported: z.ZodOptional<z.ZodBoolean>;
5108
+ }, z.core.$strip>>;
5109
+ image: z.ZodOptional<z.ZodObject<{
5110
+ enabled: z.ZodOptional<z.ZodBoolean>;
5111
+ supported: z.ZodOptional<z.ZodBoolean>;
5112
+ }, z.core.$strip>>;
5113
+ audio: z.ZodOptional<z.ZodObject<{
5114
+ enabled: z.ZodOptional<z.ZodBoolean>;
5115
+ supported: z.ZodOptional<z.ZodBoolean>;
5116
+ }, z.core.$strip>>;
5117
+ video: z.ZodOptional<z.ZodObject<{
5118
+ enabled: z.ZodOptional<z.ZodBoolean>;
5119
+ supported: z.ZodOptional<z.ZodBoolean>;
5120
+ }, z.core.$strip>>;
5121
+ }, z.core.$strip>;
5122
+
5098
5123
  /** Shape returned by {@link insertMessageCore} and its public wrappers. */
5099
5124
  declare interface InsertedMessage {
5100
5125
  id: string;
@@ -5217,8 +5242,9 @@ declare const LIVE_VOICE_TURN_DETECTION_MODES: readonly ["manual", "server_vad"]
5217
5242
  * the room) can otherwise only say "Thinking...". The label is composed here
5218
5243
  * rather than by each surface for the same reason phase wording is composed
5219
5244
  * once: the Live Activity has two independent drivers (this socket and an APNs
5220
- * push the daemon dispatches), they must carry identical content, and the only
5221
- * way to guarantee that is for both to be handed the same string.
5245
+ * push the daemon dispatches), they must carry compatible content. Structured
5246
+ * kinds let in-conversation surfaces use localized copy while system-level
5247
+ * surfaces can suppress internal detail.
5222
5248
  *
5223
5249
  * An empty `label` means "no current activity", which is what a turn's end
5224
5250
  * sends. Emitted only on change, never per tool result.
@@ -5227,6 +5253,12 @@ declare interface LiveVoiceActivityServerFrame extends LiveVoiceServerFrameBase
5227
5253
  readonly type: "activity";
5228
5254
  readonly turnId: string;
5229
5255
  readonly label: string;
5256
+ /** Structured reason for the activity, when a client needs custom display. */
5257
+ readonly kind?: "escalation";
5258
+ /** Selected inference profile for diagnostics, never default UI copy. */
5259
+ readonly profile?: string;
5260
+ /** Why the selected profile won for this leg. */
5261
+ readonly profileSource?: VoiceEscalationProfileSource;
5230
5262
  /**
5231
5263
  * The confirmation this turn is blocked on, when the label describes a wait
5232
5264
  * rather than work in flight. Absent otherwise.
@@ -6703,6 +6735,13 @@ export declare interface ResolvedSkillEntry {
6703
6735
  installMeta?: SkillInstallMeta | null;
6704
6736
  }
6705
6737
 
6738
+ /** A fully resolved provider target plus the winning profile's policy. */
6739
+ declare interface ResolvedVisionTarget {
6740
+ readonly provider?: string;
6741
+ readonly model: string;
6742
+ readonly inputModalities?: InputModalities | null;
6743
+ }
6744
+
6706
6745
  /**
6707
6746
  * Resolve a media source to inline base64, reading a reference source back from
6708
6747
  * its workspace location. Returns `null` when a reference can no longer be
@@ -8346,6 +8385,8 @@ export declare interface VideoEmbeddingInput {
8346
8385
  */
8347
8386
  export declare const VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND = "voice_escalation_continuation";
8348
8387
 
8388
+ declare type VoiceEscalationProfileSource = "conversation" | "turn_override" | "image_compatibility" | "pre_model_hook" | "call_site";
8389
+
8349
8390
  declare interface WebFetchMetadata {
8350
8391
  url: string;
8351
8392
  finalUrl: string;
@@ -8424,7 +8465,7 @@ declare interface WebSearchMetadata {
8424
8465
  errorMessage?: string;
8425
8466
  }
8426
8467
 
8427
- declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl" | "fastcrw";
8468
+ declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl" | "fastcrw" | "searxng";
8428
8469
 
8429
8470
  declare interface WebSearchResultItem {
8430
8471
  rank: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.2-dev.202609181416.153f6c5",
3
+ "version": "0.12.2-dev.202609181615.645c0a5",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",