@vellumai/plugin-api 0.10.0-dev.202606222307.aa8d8c0 → 0.10.0-dev.202606230105.081b3b9

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 +18 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -561,19 +561,24 @@ declare interface BundleAppResponse {
561
561
  };
562
562
  }
563
563
 
564
- declare interface CardSurfaceData {
565
- title: string;
566
- subtitle?: string;
567
- body: string;
568
- metadata?: Array<{
569
- label: string;
570
- value: string;
571
- }>;
572
- /** Optional template name for specialized rendering (e.g. "weather_forecast"). */
573
- template?: string;
574
- /** Arbitrary data consumed by the template renderer. Shape depends on template. */
575
- templateData?: Record<string, unknown>;
576
- }
564
+ declare type CardSurfaceData = z.infer<typeof CardSurfaceDataSchema>;
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
+ */
571
+ declare const CardSurfaceDataSchema: z.ZodObject<{
572
+ title: z.ZodString;
573
+ subtitle: z.ZodOptional<z.ZodString>;
574
+ body: z.ZodString;
575
+ metadata: z.ZodOptional<z.ZodArray<z.ZodObject<{
576
+ label: z.ZodString;
577
+ value: z.ZodString;
578
+ }, z.core.$strip>>>;
579
+ template: z.ZodOptional<z.ZodString>;
580
+ templateData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
581
+ }, z.core.$strip>;
577
582
 
578
583
  declare const CHANNEL_IDS: readonly ["telegram", "phone", "vellum", "whatsapp", "slack", "email", "platform", "a2a"];
579
584
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.0-dev.202606222307.aa8d8c0",
3
+ "version": "0.10.0-dev.202606230105.081b3b9",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",