@vellumai/plugin-api 0.12.2-dev.202609181713.fb1ff61 → 0.12.2-dev.202609181913.1108ac3

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 +133 -16
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -813,6 +813,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
813
813
  vision: "vision";
814
814
  voiceProgressNarration: "voiceProgressNarration";
815
815
  voiceFrontDoor: "voiceFrontDoor";
816
+ voiceEscalationJudge: "voiceEscalationJudge";
816
817
  voiceContinuationLabel: "voiceContinuationLabel";
817
818
  trustRuleSuggestion: "trustRuleSuggestion";
818
819
  homeGreeting: "homeGreeting";
@@ -1135,7 +1136,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
1135
1136
  }, z.core.$strip>>;
1136
1137
  whatsapp: z.ZodDefault<z.ZodObject<{
1137
1138
  phoneNumber: z.ZodDefault<z.ZodString>;
1138
- deliverAuthBypass: z.ZodDefault<z.ZodBoolean>;
1139
1139
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1140
1140
  maxRetries: z.ZodDefault<z.ZodNumber>;
1141
1141
  initialBackoffMs: z.ZodDefault<z.ZodNumber>;
@@ -1145,13 +1145,11 @@ declare const AssistantConfigSchema: z.ZodObject<{
1145
1145
  botUsername: z.ZodDefault<z.ZodString>;
1146
1146
  apiBaseUrl: z.ZodDefault<z.ZodString>;
1147
1147
  registeredWebhookUrl: z.ZodOptional<z.ZodString>;
1148
- deliverAuthBypass: z.ZodDefault<z.ZodBoolean>;
1149
1148
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1150
1149
  maxRetries: z.ZodDefault<z.ZodNumber>;
1151
1150
  initialBackoffMs: z.ZodDefault<z.ZodNumber>;
1152
1151
  }, z.core.$strip>>;
1153
1152
  slack: z.ZodDefault<z.ZodObject<{
1154
- deliverAuthBypass: z.ZodDefault<z.ZodBoolean>;
1155
1153
  teamId: z.ZodDefault<z.ZodString>;
1156
1154
  teamName: z.ZodDefault<z.ZodString>;
1157
1155
  teamUrl: z.ZodDefault<z.ZodString>;
@@ -1411,6 +1409,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1411
1409
  type: z.ZodLiteral<"assistant_turn_start">;
1412
1410
  messageId: z.ZodString;
1413
1411
  conversationId: z.ZodOptional<z.ZodString>;
1412
+ modeSession: z.ZodOptional<z.ZodObject<{
1413
+ mode: z.ZodEnum<{
1414
+ computer_use: "computer_use";
1415
+ browser: "browser";
1416
+ live_vision: "live_vision";
1417
+ ambient: "ambient";
1418
+ }>;
1419
+ id: z.ZodString;
1420
+ }, z.core.$strip>>;
1414
1421
  }, z.core.$strip>, z.ZodObject<{
1415
1422
  type: z.ZodLiteral<"avatar_updated">;
1416
1423
  avatarPath: z.ZodString;
@@ -1759,6 +1766,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1759
1766
  requestId: z.ZodOptional<z.ZodString>;
1760
1767
  queuedCount: z.ZodNumber;
1761
1768
  messageId: z.ZodOptional<z.ZodString>;
1769
+ modeSession: z.ZodOptional<z.ZodObject<{
1770
+ mode: z.ZodEnum<{
1771
+ computer_use: "computer_use";
1772
+ browser: "browser";
1773
+ live_vision: "live_vision";
1774
+ ambient: "ambient";
1775
+ }>;
1776
+ id: z.ZodString;
1777
+ }, z.core.$strip>>;
1762
1778
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1763
1779
  id: z.ZodOptional<z.ZodString>;
1764
1780
  filename: z.ZodString;
@@ -1776,10 +1792,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1776
1792
  filePath: z.ZodOptional<z.ZodString>;
1777
1793
  }, z.core.$strip>>>;
1778
1794
  attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1779
- }, z.core.$strip>, z.ZodObject<{
1780
- type: z.ZodLiteral<"heartbeat_alert">;
1781
- title: z.ZodString;
1782
- body: z.ZodString;
1783
1795
  }, z.core.$strip>, z.ZodObject<{
1784
1796
  type: z.ZodLiteral<"heartbeat_conversation_created">;
1785
1797
  conversationId: z.ZodString;
@@ -2036,6 +2048,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2036
2048
  type: z.ZodLiteral<"message_complete">;
2037
2049
  messageId: z.ZodOptional<z.ZodString>;
2038
2050
  conversationId: z.ZodOptional<z.ZodString>;
2051
+ modeSession: z.ZodOptional<z.ZodObject<{
2052
+ mode: z.ZodEnum<{
2053
+ computer_use: "computer_use";
2054
+ browser: "browser";
2055
+ live_vision: "live_vision";
2056
+ ambient: "ambient";
2057
+ }>;
2058
+ id: z.ZodString;
2059
+ }, z.core.$strip>>;
2039
2060
  source: z.ZodOptional<z.ZodEnum<{
2040
2061
  main: "main";
2041
2062
  aux: "aux";
@@ -2311,10 +2332,10 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2311
2332
  pending: "pending";
2312
2333
  completed: "completed";
2313
2334
  failed: "failed";
2335
+ interrupted: "interrupted";
2314
2336
  running: "running";
2315
2337
  awaiting_input: "awaiting_input";
2316
2338
  aborted: "aborted";
2317
- interrupted: "interrupted";
2318
2339
  }>;
2319
2340
  error: z.ZodOptional<z.ZodString>;
2320
2341
  usage: z.ZodOptional<z.ZodObject<{
@@ -2365,6 +2386,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2365
2386
  imageDataList: z.ZodOptional<z.ZodArray<z.ZodString>>;
2366
2387
  toolUseId: z.ZodOptional<z.ZodString>;
2367
2388
  messageId: z.ZodOptional<z.ZodString>;
2389
+ modeSession: z.ZodOptional<z.ZodObject<{
2390
+ mode: z.ZodEnum<{
2391
+ computer_use: "computer_use";
2392
+ browser: "browser";
2393
+ live_vision: "live_vision";
2394
+ ambient: "ambient";
2395
+ }>;
2396
+ id: z.ZodString;
2397
+ }, z.core.$strip>>;
2368
2398
  riskLevel: z.ZodOptional<z.ZodString>;
2369
2399
  riskReason: z.ZodOptional<z.ZodString>;
2370
2400
  matchedTrustRuleId: z.ZodOptional<z.ZodString>;
@@ -2479,6 +2509,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2479
2509
  toolUseId: z.ZodOptional<z.ZodString>;
2480
2510
  messageId: z.ZodOptional<z.ZodString>;
2481
2511
  conversationId: z.ZodOptional<z.ZodString>;
2512
+ modeSession: z.ZodOptional<z.ZodObject<{
2513
+ mode: z.ZodEnum<{
2514
+ computer_use: "computer_use";
2515
+ browser: "browser";
2516
+ live_vision: "live_vision";
2517
+ ambient: "ambient";
2518
+ }>;
2519
+ id: z.ZodString;
2520
+ }, z.core.$strip>>;
2482
2521
  startedAt: z.ZodOptional<z.ZodNumber>;
2483
2522
  previewStartedAt: z.ZodOptional<z.ZodNumber>;
2484
2523
  }, z.core.$strip>, z.ZodObject<{
@@ -2560,6 +2599,15 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2560
2599
  requestId: z.ZodOptional<z.ZodString>;
2561
2600
  clientMessageId: z.ZodOptional<z.ZodString>;
2562
2601
  cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
2602
+ modeSession: z.ZodOptional<z.ZodObject<{
2603
+ mode: z.ZodEnum<{
2604
+ computer_use: "computer_use";
2605
+ browser: "browser";
2606
+ live_vision: "live_vision";
2607
+ ambient: "ambient";
2608
+ }>;
2609
+ id: z.ZodString;
2610
+ }, z.core.$strip>>;
2563
2611
  }, z.core.$strict>, z.ZodObject<{
2564
2612
  type: z.ZodLiteral<"watch_retro_completed">;
2565
2613
  sessionId: z.ZodString;
@@ -2572,9 +2620,9 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2572
2620
  status: z.ZodEnum<{
2573
2621
  completed: "completed";
2574
2622
  failed: "failed";
2623
+ interrupted: "interrupted";
2575
2624
  running: "running";
2576
2625
  aborted: "aborted";
2577
- interrupted: "interrupted";
2578
2626
  cap_exceeded: "cap_exceeded";
2579
2627
  }>;
2580
2628
  agentsSpawned: z.ZodNumber;
@@ -2678,6 +2726,9 @@ export declare class AssistantEventHub {
2678
2726
  * - if `targetInterfaceId` is set, only client subscribers whose
2679
2727
  * `interfaceId` matches receive the event; process subscribers and
2680
2728
  * non-matching clients are skipped.
2729
+ * - if `targetActorPrincipalId` is set, only client subscribers whose
2730
+ * verified `actorPrincipalId` equals it receive the event; process
2731
+ * subscribers and clients without a principal are skipped.
2681
2732
  *
2682
2733
  * Fanout is isolated: a throwing or rejecting subscriber does not abort
2683
2734
  * delivery to remaining subscribers.
@@ -2818,6 +2869,7 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2818
2869
  "chrome-extension": "chrome-extension";
2819
2870
  cli: "cli";
2820
2871
  }>>;
2872
+ targetActorPrincipalId: z.ZodOptional<z.ZodString>;
2821
2873
  excludeClientId: z.ZodOptional<z.ZodString>;
2822
2874
  }, z.core.$strip>;
2823
2875
 
@@ -2961,6 +3013,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2961
3013
  type: z.ZodLiteral<"assistant_turn_start">;
2962
3014
  messageId: z.ZodString;
2963
3015
  conversationId: z.ZodOptional<z.ZodString>;
3016
+ modeSession: z.ZodOptional<z.ZodObject<{
3017
+ mode: z.ZodEnum<{
3018
+ computer_use: "computer_use";
3019
+ browser: "browser";
3020
+ live_vision: "live_vision";
3021
+ ambient: "ambient";
3022
+ }>;
3023
+ id: z.ZodString;
3024
+ }, z.core.$strip>>;
2964
3025
  }, z.core.$strip>, z.ZodObject<{
2965
3026
  type: z.ZodLiteral<"avatar_updated">;
2966
3027
  avatarPath: z.ZodString;
@@ -3309,6 +3370,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3309
3370
  requestId: z.ZodOptional<z.ZodString>;
3310
3371
  queuedCount: z.ZodNumber;
3311
3372
  messageId: z.ZodOptional<z.ZodString>;
3373
+ modeSession: z.ZodOptional<z.ZodObject<{
3374
+ mode: z.ZodEnum<{
3375
+ computer_use: "computer_use";
3376
+ browser: "browser";
3377
+ live_vision: "live_vision";
3378
+ ambient: "ambient";
3379
+ }>;
3380
+ id: z.ZodString;
3381
+ }, z.core.$strip>>;
3312
3382
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3313
3383
  id: z.ZodOptional<z.ZodString>;
3314
3384
  filename: z.ZodString;
@@ -3326,10 +3396,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3326
3396
  filePath: z.ZodOptional<z.ZodString>;
3327
3397
  }, z.core.$strip>>>;
3328
3398
  attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
3329
- }, z.core.$strip>, z.ZodObject<{
3330
- type: z.ZodLiteral<"heartbeat_alert">;
3331
- title: z.ZodString;
3332
- body: z.ZodString;
3333
3399
  }, z.core.$strip>, z.ZodObject<{
3334
3400
  type: z.ZodLiteral<"heartbeat_conversation_created">;
3335
3401
  conversationId: z.ZodString;
@@ -3586,6 +3652,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3586
3652
  type: z.ZodLiteral<"message_complete">;
3587
3653
  messageId: z.ZodOptional<z.ZodString>;
3588
3654
  conversationId: z.ZodOptional<z.ZodString>;
3655
+ modeSession: z.ZodOptional<z.ZodObject<{
3656
+ mode: z.ZodEnum<{
3657
+ computer_use: "computer_use";
3658
+ browser: "browser";
3659
+ live_vision: "live_vision";
3660
+ ambient: "ambient";
3661
+ }>;
3662
+ id: z.ZodString;
3663
+ }, z.core.$strip>>;
3589
3664
  source: z.ZodOptional<z.ZodEnum<{
3590
3665
  main: "main";
3591
3666
  aux: "aux";
@@ -3861,10 +3936,10 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3861
3936
  pending: "pending";
3862
3937
  completed: "completed";
3863
3938
  failed: "failed";
3939
+ interrupted: "interrupted";
3864
3940
  running: "running";
3865
3941
  awaiting_input: "awaiting_input";
3866
3942
  aborted: "aborted";
3867
- interrupted: "interrupted";
3868
3943
  }>;
3869
3944
  error: z.ZodOptional<z.ZodString>;
3870
3945
  usage: z.ZodOptional<z.ZodObject<{
@@ -3915,6 +3990,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3915
3990
  imageDataList: z.ZodOptional<z.ZodArray<z.ZodString>>;
3916
3991
  toolUseId: z.ZodOptional<z.ZodString>;
3917
3992
  messageId: z.ZodOptional<z.ZodString>;
3993
+ modeSession: z.ZodOptional<z.ZodObject<{
3994
+ mode: z.ZodEnum<{
3995
+ computer_use: "computer_use";
3996
+ browser: "browser";
3997
+ live_vision: "live_vision";
3998
+ ambient: "ambient";
3999
+ }>;
4000
+ id: z.ZodString;
4001
+ }, z.core.$strip>>;
3918
4002
  riskLevel: z.ZodOptional<z.ZodString>;
3919
4003
  riskReason: z.ZodOptional<z.ZodString>;
3920
4004
  matchedTrustRuleId: z.ZodOptional<z.ZodString>;
@@ -4029,6 +4113,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4029
4113
  toolUseId: z.ZodOptional<z.ZodString>;
4030
4114
  messageId: z.ZodOptional<z.ZodString>;
4031
4115
  conversationId: z.ZodOptional<z.ZodString>;
4116
+ modeSession: z.ZodOptional<z.ZodObject<{
4117
+ mode: z.ZodEnum<{
4118
+ computer_use: "computer_use";
4119
+ browser: "browser";
4120
+ live_vision: "live_vision";
4121
+ ambient: "ambient";
4122
+ }>;
4123
+ id: z.ZodString;
4124
+ }, z.core.$strip>>;
4032
4125
  startedAt: z.ZodOptional<z.ZodNumber>;
4033
4126
  previewStartedAt: z.ZodOptional<z.ZodNumber>;
4034
4127
  }, z.core.$strip>, z.ZodObject<{
@@ -4110,6 +4203,15 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4110
4203
  requestId: z.ZodOptional<z.ZodString>;
4111
4204
  clientMessageId: z.ZodOptional<z.ZodString>;
4112
4205
  cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
4206
+ modeSession: z.ZodOptional<z.ZodObject<{
4207
+ mode: z.ZodEnum<{
4208
+ computer_use: "computer_use";
4209
+ browser: "browser";
4210
+ live_vision: "live_vision";
4211
+ ambient: "ambient";
4212
+ }>;
4213
+ id: z.ZodString;
4214
+ }, z.core.$strip>>;
4113
4215
  }, z.core.$strict>, z.ZodObject<{
4114
4216
  type: z.ZodLiteral<"watch_retro_completed">;
4115
4217
  sessionId: z.ZodString;
@@ -4122,9 +4224,9 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4122
4224
  status: z.ZodEnum<{
4123
4225
  completed: "completed";
4124
4226
  failed: "failed";
4227
+ interrupted: "interrupted";
4125
4228
  running: "running";
4126
4229
  aborted: "aborted";
4127
- interrupted: "interrupted";
4128
4230
  cap_exceeded: "cap_exceeded";
4129
4231
  }>;
4130
4232
  agentsSpawned: z.ZodNumber;
@@ -5468,6 +5570,8 @@ declare interface LiveVoiceReadyServerFrame extends LiveVoiceServerFrameBase {
5468
5570
  * every typed turn with an `unknown_type` error.
5469
5571
  */
5470
5572
  readonly textInput?: boolean;
5573
+ /** Whether this session accepts camera lifecycle epochs. */
5574
+ readonly sightSessions?: boolean;
5471
5575
  /**
5472
5576
  * Whether the session's speech-to-text leg is live. Absent means yes, which
5473
5577
  * is the only thing an older daemon can have meant: it rejects a session it
@@ -5651,6 +5755,7 @@ declare const LLMCallSiteEnum: z.ZodEnum<{
5651
5755
  vision: "vision";
5652
5756
  voiceProgressNarration: "voiceProgressNarration";
5653
5757
  voiceFrontDoor: "voiceFrontDoor";
5758
+ voiceEscalationJudge: "voiceEscalationJudge";
5654
5759
  voiceContinuationLabel: "voiceContinuationLabel";
5655
5760
  trustRuleSuggestion: "trustRuleSuggestion";
5656
5761
  homeGreeting: "homeGreeting";
@@ -5738,6 +5843,18 @@ declare type MessageMetadata = ReturnType<parseMessageMetadata_2>;
5738
5843
  declare type MessageMetadata_2 = z.infer<typeof messageMetadataSchema>;
5739
5844
 
5740
5845
  declare const messageMetadataSchema: z.ZodObject<{
5846
+ modeSession: z.ZodPipe<z.ZodTransform<{
5847
+ mode: "computer_use" | "browser" | "live_vision" | "ambient";
5848
+ id: string;
5849
+ } | undefined, unknown>, z.ZodOptional<z.ZodObject<{
5850
+ mode: z.ZodEnum<{
5851
+ computer_use: "computer_use";
5852
+ browser: "browser";
5853
+ live_vision: "live_vision";
5854
+ ambient: "ambient";
5855
+ }>;
5856
+ id: z.ZodString;
5857
+ }, z.core.$strip>>>;
5741
5858
  sentAt: z.ZodOptional<z.ZodNumber>;
5742
5859
  userMessageChannel: z.ZodOptional<z.ZodEnum<{
5743
5860
  phone: "phone";
@@ -8385,7 +8502,7 @@ export declare interface VideoEmbeddingInput {
8385
8502
  */
8386
8503
  export declare const VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND = "voice_escalation_continuation";
8387
8504
 
8388
- declare type VoiceEscalationProfileSource = "conversation" | "turn_override" | "image_compatibility" | "pre_model_hook" | "call_site";
8505
+ declare type VoiceEscalationProfileSource = "conversation" | "turn_override" | "pre_model_hook" | "call_site";
8389
8506
 
8390
8507
  declare interface WebFetchMetadata {
8391
8508
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.2-dev.202609181713.fb1ff61",
3
+ "version": "0.12.2-dev.202609181913.1108ac3",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",