@vellumai/plugin-api 0.8.10-dev.202606111334.d8a7740 → 0.8.10-dev.202606111724.d4e5462

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 +11 -14
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1062,7 +1062,7 @@ declare interface ConversationSearchResultItem {
1062
1062
  matchingMessages: ConversationSearchMatchingMessage[];
1063
1063
  }
1064
1064
 
1065
- declare type _ConversationsServerMessages = AuthResult | PongMessage | AssistantStatusMessage | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfo | HistoryResponse | UndoComplete | UsageUpdateEvent | UsageProgress | UsageResponse | ContextCompacted | CompactionCircuitOpenEvent | CompactionCircuitClosedEvent | ConversationErrorEvent | ConversationInfo | ConversationTitleUpdatedEvent | ConversationListResponse | ConversationsClearResponse | ConversationSearchResponse | MessageContentResponse | ConversationListInvalidatedEvent | ScheduleConversationCreated | OpenConversation;
1065
+ declare type _ConversationsServerMessages = AuthResult | PongMessage | AssistantStatusMessage | GenerationCancelledEvent | GenerationHandoffEvent | ModelInfo | HistoryResponse | UndoComplete | UsageUpdateEvent | UsageProgressEvent | UsageResponse | ContextCompacted | CompactionCircuitOpenEvent | CompactionCircuitClosedEvent | ConversationErrorEvent | ConversationInfo | ConversationTitleUpdatedEvent | ConversationListResponse | ConversationsClearResponse | ConversationSearchResponse | MessageContentResponse | ConversationListInvalidatedEvent | ScheduleConversationCreated | OpenConversation;
1066
1066
 
1067
1067
  declare type ConversationTitleUpdatedEvent = z.infer<typeof ConversationTitleUpdatedEventSchema>;
1068
1068
 
@@ -4310,19 +4310,16 @@ declare interface UsageAttributionSnapshot {
4310
4310
  resolvedMixArm: string | null;
4311
4311
  }
4312
4312
 
4313
- /**
4314
- * Emitted after each LLM call with per-call token deltas and estimated cost.
4315
- * Clients accumulate these additively for live-updating usage metrics.
4316
- * This is a UI-only hint — it does not persist to DB or affect billing.
4317
- */
4318
- declare interface UsageProgress {
4319
- type: "usage_progress";
4320
- conversationId: string;
4321
- inputTokens: number;
4322
- outputTokens: number;
4323
- estimatedCost: number;
4324
- model: string;
4325
- }
4313
+ declare type UsageProgressEvent = z.infer<typeof UsageProgressEventSchema>;
4314
+
4315
+ declare const UsageProgressEventSchema: z.ZodObject<{
4316
+ type: z.ZodLiteral<"usage_progress">;
4317
+ conversationId: z.ZodString;
4318
+ inputTokens: z.ZodNumber;
4319
+ outputTokens: z.ZodNumber;
4320
+ estimatedCost: z.ZodNumber;
4321
+ model: z.ZodString;
4322
+ }, z.core.$strip>;
4326
4323
 
4327
4324
  declare interface UsageResponse {
4328
4325
  type: "usage_response";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.8.10-dev.202606111334.d8a7740",
3
+ "version": "0.8.10-dev.202606111724.d4e5462",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",