@vellumai/plugin-api 0.12.0-dev.202609120042.5a89c34 → 0.12.0-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 +29 -74
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -167,10 +167,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
167
167
  language: z.ZodDefault<z.ZodString>;
168
168
  providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
169
169
  roles: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
170
+ watch: "watch";
170
171
  liveVoice: "liveVoice";
171
172
  telephony: "telephony";
172
173
  dictation: "dictation";
173
- watch: "watch";
174
174
  batch: "batch";
175
175
  }> & z.core.$partial, z.ZodObject<{
176
176
  provider: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
@@ -592,7 +592,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
592
592
  }, z.core.$strip>>;
593
593
  retrospective: z.ZodDefault<z.ZodObject<{
594
594
  enabled: z.ZodDefault<z.ZodBoolean>;
595
- skillImprovement: z.ZodDefault<z.ZodBoolean>;
596
595
  timeThresholdMs: z.ZodDefault<z.ZodNumber>;
597
596
  messageThreshold: z.ZodDefault<z.ZodNumber>;
598
597
  minCooldownMs: z.ZodDefault<z.ZodNumber>;
@@ -967,11 +966,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
967
966
  acp: z.ZodDefault<z.ZodObject<{
968
967
  maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
969
968
  agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
970
- command: z.ZodOptional<z.ZodString>;
969
+ command: z.ZodString;
971
970
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
972
971
  description: z.ZodOptional<z.ZodString>;
973
972
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
974
- model: z.ZodOptional<z.ZodString>;
975
973
  }, z.core.$strip>>>;
976
974
  }, z.core.$strip>>;
977
975
  skills: z.ZodDefault<z.ZodObject<{
@@ -983,6 +981,8 @@ declare const AssistantConfigSchema: z.ZodObject<{
983
981
  }, z.core.$strip>>>;
984
982
  load: z.ZodDefault<z.ZodObject<{
985
983
  extraDirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
984
+ watch: z.ZodDefault<z.ZodBoolean>;
985
+ watchDebounceMs: z.ZodDefault<z.ZodNumber>;
986
986
  }, z.core.$strip>>;
987
987
  install: z.ZodDefault<z.ZodObject<{
988
988
  nodeManager: z.ZodDefault<z.ZodEnum<{
@@ -1077,7 +1077,15 @@ 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>>;
1080
1083
  voice: z.ZodDefault<z.ZodObject<{
1084
+ interruptSensitivity: z.ZodDefault<z.ZodEnum<{
1085
+ low: "low";
1086
+ medium: "medium";
1087
+ high: "high";
1088
+ }>>;
1081
1089
  telephonyStreaming: z.ZodDefault<z.ZodBoolean>;
1082
1090
  utteranceEndMs: z.ZodDefault<z.ZodNumber>;
1083
1091
  }, z.core.$strip>>;
@@ -1092,6 +1100,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
1092
1100
  }, z.core.$strip>>;
1093
1101
  }, z.core.$strip>>;
1094
1102
  liveVoice: z.ZodDefault<z.ZodObject<{
1103
+ mode: z.ZodDefault<z.ZodEnum<{
1104
+ ptt: "ptt";
1105
+ "open-mic": "open-mic";
1106
+ }>>;
1095
1107
  vad: z.ZodDefault<z.ZodObject<{
1096
1108
  speechEnergyThreshold: z.ZodDefault<z.ZodNumber>;
1097
1109
  noiseFloorMargin: z.ZodDefault<z.ZodNumber>;
@@ -1102,18 +1114,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1102
1114
  echoEmaHalfLifeMs: z.ZodDefault<z.ZodNumber>;
1103
1115
  echoDrainSlackMs: z.ZodDefault<z.ZodNumber>;
1104
1116
  }, z.core.$strip>>;
1105
- flux: z.ZodDefault<z.ZodObject<{
1106
- turnEnd: z.ZodDefault<z.ZodObject<{
1107
- enabled: z.ZodDefault<z.ZodBoolean>;
1108
- }, z.core.$strip>>;
1109
- model: z.ZodOptional<z.ZodString>;
1110
- eotThreshold: z.ZodDefault<z.ZodNumber>;
1111
- eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
1112
- eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
1113
- }, z.core.$strip>>;
1114
- archiveAudio: z.ZodDefault<z.ZodBoolean>;
1115
- }, z.core.$strip>>;
1116
- voice: z.ZodDefault<z.ZodObject<{
1117
1117
  frontModel: z.ZodDefault<z.ZodObject<{
1118
1118
  endpointDecisionTimeoutMs: z.ZodDefault<z.ZodNumber>;
1119
1119
  endpointExtensionMs: z.ZodDefault<z.ZodNumber>;
@@ -1128,6 +1128,17 @@ declare const AssistantConfigSchema: z.ZodObject<{
1128
1128
  generationTimeoutMs: z.ZodDefault<z.ZodNumber>;
1129
1129
  }, z.core.$strip>>;
1130
1130
  }, z.core.$strip>>;
1131
+ flux: z.ZodDefault<z.ZodObject<{
1132
+ turnEnd: z.ZodDefault<z.ZodObject<{
1133
+ enabled: z.ZodDefault<z.ZodBoolean>;
1134
+ }, z.core.$strip>>;
1135
+ model: z.ZodOptional<z.ZodString>;
1136
+ eotThreshold: z.ZodDefault<z.ZodNumber>;
1137
+ eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
1138
+ eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
1139
+ }, z.core.$strip>>;
1140
+ maxSessionDurationSeconds: z.ZodDefault<z.ZodNumber>;
1141
+ archiveAudio: z.ZodDefault<z.ZodBoolean>;
1131
1142
  }, z.core.$strip>>;
1132
1143
  sight: z.ZodDefault<z.ZodObject<{
1133
1144
  keepLatestFrames: z.ZodDefault<z.ZodNumber>;
@@ -1302,18 +1313,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1302
1313
  type: z.ZodLiteral<"acp_session_error">;
1303
1314
  acpSessionId: z.ZodString;
1304
1315
  error: z.ZodString;
1305
- }, z.core.$strict>, z.ZodObject<{
1306
- type: z.ZodLiteral<"acp_session_model_update">;
1307
- acpSessionId: z.ZodString;
1308
- modelRevisionEpoch: z.ZodString;
1309
- modelRevision: z.ZodNumber;
1310
- model: z.ZodOptional<z.ZodString>;
1311
- availableModels: z.ZodArray<z.ZodObject<{
1312
- value: z.ZodString;
1313
- label: z.ZodString;
1314
- description: z.ZodOptional<z.ZodString>;
1315
- group: z.ZodOptional<z.ZodString>;
1316
- }, z.core.$strip>>;
1317
1316
  }, z.core.$strict>, z.ZodObject<{
1318
1317
  type: z.ZodLiteral<"acp_session_spawned">;
1319
1318
  acpSessionId: z.ZodString;
@@ -2842,18 +2841,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2842
2841
  type: z.ZodLiteral<"acp_session_error">;
2843
2842
  acpSessionId: z.ZodString;
2844
2843
  error: z.ZodString;
2845
- }, z.core.$strict>, z.ZodObject<{
2846
- type: z.ZodLiteral<"acp_session_model_update">;
2847
- acpSessionId: z.ZodString;
2848
- modelRevisionEpoch: z.ZodString;
2849
- modelRevision: z.ZodNumber;
2850
- model: z.ZodOptional<z.ZodString>;
2851
- availableModels: z.ZodArray<z.ZodObject<{
2852
- value: z.ZodString;
2853
- label: z.ZodString;
2854
- description: z.ZodOptional<z.ZodString>;
2855
- group: z.ZodOptional<z.ZodString>;
2856
- }, z.core.$strip>>;
2857
2844
  }, z.core.$strict>, z.ZodObject<{
2858
2845
  type: z.ZodLiteral<"acp_session_spawned">;
2859
2846
  acpSessionId: z.ZodString;
@@ -4862,7 +4849,6 @@ export declare type HookBroadcast = (detail: Record<string, unknown>) => void;
4862
4849
  * - `post-model-call` — {@link PostModelCallContext}
4863
4850
  * - `conversation-deleted` — {@link ConversationDeletedContext}
4864
4851
  * - `conversations-cleared` — {@link ConversationsClearedContext}
4865
- * - `message-deleted`: {@link MessageDeletedContext}
4866
4852
  */
4867
4853
  export declare type HookFunction<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
4868
4854
 
@@ -4904,8 +4890,6 @@ export declare const HOOKS: {
4904
4890
  readonly CONVERSATION_DELETED: "conversation-deleted";
4905
4891
  /** 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. */
4906
4892
  readonly CONVERSATIONS_CLEARED: "conversations-cleared";
4907
- /** 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. */
4908
- readonly MESSAGE_DELETED: "message-deleted";
4909
4893
  };
4910
4894
 
4911
4895
  /**
@@ -5309,6 +5293,8 @@ declare interface LiveVoiceMetricsServerFrame extends LiveVoiceServerFrameBase {
5309
5293
  * condition as the two fields above.
5310
5294
  */
5311
5295
  readonly endpointDecisionSource?: "front-door" | "provider";
5296
+ /** Which floor-holding ack actually spoke during the turn, if any. */
5297
+ readonly ackSpoken?: "first_delta" | "tool_use";
5312
5298
  /**
5313
5299
  * Spoken progress narrations during the turn. Present only when at least
5314
5300
  * one progress update spoke (otherwise the field is absent, keeping frames
@@ -5549,37 +5535,6 @@ export declare interface Message {
5549
5535
  content: ContentBlock[];
5550
5536
  }
5551
5537
 
5552
- /**
5553
- * The full `message-deleted` context a hook receives: the dispatching call
5554
- * site's {@link MessageDeletedInputContext} plus the pipeline-stamped
5555
- * {@link BaseHookContext} capabilities.
5556
- */
5557
- export declare interface MessageDeletedContext extends MessageDeletedInputContext, BaseHookContext {
5558
- }
5559
-
5560
- /**
5561
- * Context passed to the `message-deleted` hook. Fires once per deleted
5562
- * message row, from the shared single-message delete primitive, after the row
5563
- * is removed. Whole-conversation deletes dispatch `conversation-deleted`
5564
- * instead.
5565
- *
5566
- * Fire-and-forget like `conversation-deleted`: the primitive is synchronous
5567
- * and does not wait for the chain. The row is gone by the time a hook runs,
5568
- * so the context carries the row's `createdAt` alongside its id. Together
5569
- * they are the `(createdAt, id)` position the row held, which is what a hook
5570
- * keeping a cursor on that row needs to record once the row can no longer be
5571
- * looked up. The default memory plugin contributes a hook here that stamps
5572
- * its retrospective cursor.
5573
- */
5574
- declare interface MessageDeletedInputContext {
5575
- /** ID of the conversation that owned the row. */
5576
- readonly conversationId: string;
5577
- /** ID of the deleted message row. */
5578
- readonly messageId: string;
5579
- /** The deleted row's `createdAt`. */
5580
- readonly createdAt: number;
5581
- }
5582
-
5583
5538
  declare type MessageLexicalSearchResult = Awaited<ReturnType<searchMessageIdsLexical_2>>[number];
5584
5539
 
5585
5540
  declare interface MessageLexicalSearchResult_2 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.0-dev.202609120042.5a89c34",
3
+ "version": "0.12.0-staging.2",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",