@vellumai/plugin-api 0.11.11-staging.4 → 0.12.0-dev.202609110918.dd3fa5e

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 +34 -15
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1077,15 +1077,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
1077
1077
  enabled: z.ZodDefault<z.ZodBoolean>;
1078
1078
  text: z.ZodDefault<z.ZodString>;
1079
1079
  }, z.core.$strip>>;
1080
- safety: z.ZodDefault<z.ZodObject<{
1081
- denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
1082
- }, z.core.$strip>>;
1083
1080
  voice: z.ZodDefault<z.ZodObject<{
1084
- interruptSensitivity: z.ZodDefault<z.ZodEnum<{
1085
- low: "low";
1086
- medium: "medium";
1087
- high: "high";
1088
- }>>;
1089
1081
  telephonyStreaming: z.ZodDefault<z.ZodBoolean>;
1090
1082
  utteranceEndMs: z.ZodDefault<z.ZodNumber>;
1091
1083
  }, z.core.$strip>>;
@@ -1100,10 +1092,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1100
1092
  }, z.core.$strip>>;
1101
1093
  }, z.core.$strip>>;
1102
1094
  liveVoice: z.ZodDefault<z.ZodObject<{
1103
- mode: z.ZodDefault<z.ZodEnum<{
1104
- ptt: "ptt";
1105
- "open-mic": "open-mic";
1106
- }>>;
1107
1095
  vad: z.ZodDefault<z.ZodObject<{
1108
1096
  speechEnergyThreshold: z.ZodDefault<z.ZodNumber>;
1109
1097
  noiseFloorMargin: z.ZodDefault<z.ZodNumber>;
@@ -1137,7 +1125,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1137
1125
  eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
1138
1126
  eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
1139
1127
  }, z.core.$strip>>;
1140
- maxSessionDurationSeconds: z.ZodDefault<z.ZodNumber>;
1141
1128
  archiveAudio: z.ZodDefault<z.ZodBoolean>;
1142
1129
  }, z.core.$strip>>;
1143
1130
  sight: z.ZodDefault<z.ZodObject<{
@@ -4849,6 +4836,7 @@ export declare type HookBroadcast = (detail: Record<string, unknown>) => void;
4849
4836
  * - `post-model-call` — {@link PostModelCallContext}
4850
4837
  * - `conversation-deleted` — {@link ConversationDeletedContext}
4851
4838
  * - `conversations-cleared` — {@link ConversationsClearedContext}
4839
+ * - `message-deleted`: {@link MessageDeletedContext}
4852
4840
  */
4853
4841
  export declare type HookFunction<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
4854
4842
 
@@ -4890,6 +4878,8 @@ export declare const HOOKS: {
4890
4878
  readonly CONVERSATION_DELETED: "conversation-deleted";
4891
4879
  /** Fires once when every conversation is wiped at once (the clear-all reset), after the main tables are cleared. Carries no `conversationId`; cleanup hooks wipe their own per-conversation state wholesale. */
4892
4880
  readonly CONVERSATIONS_CLEARED: "conversations-cleared";
4881
+ /** Fires once per deleted message row, after the row is removed, carrying the row's `(createdAt, id)` so a hook can settle state that pointed at it. Fire-and-forget cleanup signal, like `conversation-deleted`; whole-conversation deletes dispatch that hook instead. */
4882
+ readonly MESSAGE_DELETED: "message-deleted";
4893
4883
  };
4894
4884
 
4895
4885
  /**
@@ -5293,8 +5283,6 @@ declare interface LiveVoiceMetricsServerFrame extends LiveVoiceServerFrameBase {
5293
5283
  * condition as the two fields above.
5294
5284
  */
5295
5285
  readonly endpointDecisionSource?: "front-door" | "provider";
5296
- /** Which floor-holding ack actually spoke during the turn, if any. */
5297
- readonly ackSpoken?: "first_delta" | "tool_use";
5298
5286
  /**
5299
5287
  * Spoken progress narrations during the turn. Present only when at least
5300
5288
  * one progress update spoke (otherwise the field is absent, keeping frames
@@ -5535,6 +5523,37 @@ export declare interface Message {
5535
5523
  content: ContentBlock[];
5536
5524
  }
5537
5525
 
5526
+ /**
5527
+ * The full `message-deleted` context a hook receives: the dispatching call
5528
+ * site's {@link MessageDeletedInputContext} plus the pipeline-stamped
5529
+ * {@link BaseHookContext} capabilities.
5530
+ */
5531
+ export declare interface MessageDeletedContext extends MessageDeletedInputContext, BaseHookContext {
5532
+ }
5533
+
5534
+ /**
5535
+ * Context passed to the `message-deleted` hook. Fires once per deleted
5536
+ * message row, from the shared single-message delete primitive, after the row
5537
+ * is removed. Whole-conversation deletes dispatch `conversation-deleted`
5538
+ * instead.
5539
+ *
5540
+ * Fire-and-forget like `conversation-deleted`: the primitive is synchronous
5541
+ * and does not wait for the chain. The row is gone by the time a hook runs,
5542
+ * so the context carries the row's `createdAt` alongside its id. Together
5543
+ * they are the `(createdAt, id)` position the row held, which is what a hook
5544
+ * keeping a cursor on that row needs to record once the row can no longer be
5545
+ * looked up. The default memory plugin contributes a hook here that stamps
5546
+ * its retrospective cursor.
5547
+ */
5548
+ declare interface MessageDeletedInputContext {
5549
+ /** ID of the conversation that owned the row. */
5550
+ readonly conversationId: string;
5551
+ /** ID of the deleted message row. */
5552
+ readonly messageId: string;
5553
+ /** The deleted row's `createdAt`. */
5554
+ readonly createdAt: number;
5555
+ }
5556
+
5538
5557
  declare type MessageLexicalSearchResult = Awaited<ReturnType<searchMessageIdsLexical_2>>[number];
5539
5558
 
5540
5559
  declare interface MessageLexicalSearchResult_2 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.11-staging.4",
3
+ "version": "0.12.0-dev.202609110918.dd3fa5e",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",