@vellumai/plugin-api 0.10.11-dev.202607241238.b7ebd7f → 0.10.11-dev.202607241308.39465e9

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 +26 -21
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5551,7 +5551,7 @@ declare interface SurfaceDataByType {
5551
5551
  call_summary: Record<string, unknown>;
5552
5552
  }
5553
5553
 
5554
- declare type _SurfacesServerMessages = UiSurfaceShow | UiSurfaceUpdate | UiSurfaceDismiss | UiSurfaceComplete | UiSurfaceUndoResult;
5554
+ declare type _SurfacesServerMessages = UiSurfaceShow | UiSurfaceUpdate | UISurfaceDismissEvent | UISurfaceCompleteEvent | UISurfaceUndoResultEvent;
5555
5555
 
5556
5556
  declare type SurfaceType = z.infer<typeof SurfaceTypeSchema>;
5557
5557
 
@@ -6357,19 +6357,23 @@ declare type TtsUseCase =
6357
6357
  /** In-app message playback — buffer-oriented, higher quality acceptable. */
6358
6358
  | "message-playback";
6359
6359
 
6360
- declare interface UiSurfaceComplete {
6361
- type: "ui_surface_complete";
6362
- conversationId: string;
6363
- surfaceId: string;
6364
- summary: string;
6365
- submittedData?: Record<string, unknown>;
6366
- }
6360
+ declare type UISurfaceCompleteEvent = z.infer<typeof UISurfaceCompleteEventSchema>;
6367
6361
 
6368
- declare interface UiSurfaceDismiss {
6369
- type: "ui_surface_dismiss";
6370
- conversationId: string;
6371
- surfaceId: string;
6372
- }
6362
+ declare const UISurfaceCompleteEventSchema: z.ZodObject<{
6363
+ type: z.ZodLiteral<"ui_surface_complete">;
6364
+ conversationId: z.ZodString;
6365
+ surfaceId: z.ZodString;
6366
+ summary: z.ZodString;
6367
+ submittedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6368
+ }, z.core.$strip>;
6369
+
6370
+ declare type UISurfaceDismissEvent = z.infer<typeof UISurfaceDismissEventSchema>;
6371
+
6372
+ declare const UISurfaceDismissEventSchema: z.ZodObject<{
6373
+ type: z.ZodLiteral<"ui_surface_dismiss">;
6374
+ conversationId: z.ZodString;
6375
+ surfaceId: z.ZodString;
6376
+ }, z.core.$strip>;
6373
6377
 
6374
6378
  /**
6375
6379
  * Discriminated union over every surface type, derived from
@@ -6407,14 +6411,15 @@ declare type UiSurfaceShowFor<K extends SurfaceType> = UiSurfaceShowBase & {
6407
6411
  data: SurfaceDataByType[K];
6408
6412
  };
6409
6413
 
6410
- declare interface UiSurfaceUndoResult {
6411
- type: "ui_surface_undo_result";
6412
- conversationId: string;
6413
- surfaceId: string;
6414
- success: boolean;
6415
- /** Number of remaining undo entries after this undo. */
6416
- remainingUndos: number;
6417
- }
6414
+ declare type UISurfaceUndoResultEvent = z.infer<typeof UISurfaceUndoResultEventSchema>;
6415
+
6416
+ declare const UISurfaceUndoResultEventSchema: z.ZodObject<{
6417
+ type: z.ZodLiteral<"ui_surface_undo_result">;
6418
+ conversationId: z.ZodString;
6419
+ surfaceId: z.ZodString;
6420
+ success: z.ZodBoolean;
6421
+ remainingUndos: z.ZodNumber;
6422
+ }, z.core.$strip>;
6418
6423
 
6419
6424
  declare interface UiSurfaceUpdate {
6420
6425
  type: "ui_surface_update";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.11-dev.202607241238.b7ebd7f",
3
+ "version": "0.10.11-dev.202607241308.39465e9",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",