@vellumai/plugin-api 0.10.1-dev.202606240206.7c2bca6 → 0.10.1-staging.2

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 +22 -9
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -563,13 +563,18 @@ declare interface BundleAppResponse {
563
563
 
564
564
  declare type CardSurfaceData = z.infer<typeof CardSurfaceDataSchema>;
565
565
 
566
+ /**
567
+ * Card surface data. Defined as a Zod schema so the type is derived (not
568
+ * hand-maintained) and the seed-content-block schema can compose it directly
569
+ * instead of treating card `data` as an opaque record.
570
+ */
566
571
  declare const CardSurfaceDataSchema: z.ZodObject<{
567
- title: z.ZodOptional<z.ZodString>;
572
+ title: z.ZodString;
568
573
  subtitle: z.ZodOptional<z.ZodString>;
569
- body: z.ZodOptional<z.ZodString>;
574
+ body: z.ZodString;
570
575
  metadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
571
- label: z.ZodCoercedString<unknown>;
572
- value: z.ZodCoercedString<unknown>;
576
+ label: z.ZodString;
577
+ value: z.ZodString;
573
578
  }, z.core.$strip>>>;
574
579
  template: z.ZodOptional<z.ZodString>;
575
580
  templateData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1245,13 +1250,21 @@ declare interface DocumentSaveResponse {
1245
1250
  declare type _DocumentsServerMessages = DocumentEditorShow | DocumentEditorUpdateEvent | DocumentSaveResponse | DocumentLoadResponse | DocumentListResponse;
1246
1251
 
1247
1252
  /**
1248
- * Whether the given model or profile can process image input.
1253
+ * Whether a profile's resolved model can process image input.
1249
1254
  *
1250
- * `modelOrProfile` may be a concrete model id, a profile key, or a
1251
- * {@link ModelProfileInfo}. A bare string is resolved as a model id first and,
1252
- * failing that, as a profile key. Returns `false` when nothing resolves.
1255
+ * Resolution mirrors the host's call-site resolver:
1256
+ * - The profile's `(provider, model)` fields are merged over `llm.default` so
1257
+ * a profile that only sets `model` (or only `provider`) inherits the other
1258
+ * from the workspace default.
1259
+ * - When `provider` is still missing but `model` is a known catalog model,
1260
+ * the provider is inferred via `getCatalogProviderForModel` (same logic as
1261
+ * the resolver's `withImpliedProviderForKnownModel`).
1262
+ * - For a mix profile, returns `true` if any constituent arm supports vision
1263
+ * (the mix can route to it) and `false` only if every arm is text-only.
1264
+ * - Unknown `(provider, model)` pairs default to `true` (fail-open), matching
1265
+ * the config GET route's `enrichProfilesWithVisionFlag`.
1253
1266
  */
1254
- export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | string): boolean;
1267
+ export declare function doesSupportVision(profile: ModelProfileInfo): boolean;
1255
1268
 
1256
1269
  declare interface DynamicPagePreview {
1257
1270
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.1-dev.202606240206.7c2bca6",
3
+ "version": "0.10.1-staging.2",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",