@vellumai/plugin-api 0.11.5 → 0.11.6-staging.1

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 +61 -27
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -137,11 +137,13 @@ declare const AssistantConfigSchema: z.ZodObject<{
137
137
  provider: z.ZodDefault<z.ZodEnum<{
138
138
  [x: string]: string;
139
139
  }>>;
140
+ apiBase: z.ZodOptional<z.ZodString>;
140
141
  }, z.core.$strip>>;
141
142
  "web-fetch": z.ZodDefault<z.ZodObject<{
142
143
  provider: z.ZodDefault<z.ZodEnum<{
143
144
  [x: string]: string;
144
145
  }>>;
146
+ apiBase: z.ZodOptional<z.ZodString>;
145
147
  }, z.core.$strip>>;
146
148
  stt: z.ZodDefault<z.ZodObject<{
147
149
  provider: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
@@ -662,6 +664,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
662
664
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
665
  description: z.ZodOptional<z.ZodString>;
664
666
  provider_connection: z.ZodOptional<z.ZodString>;
667
+ allowUnlisted: z.ZodOptional<z.ZodBoolean>;
665
668
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
666
669
  active: "active";
667
670
  disabled: "disabled";
@@ -1331,9 +1334,9 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1331
1334
  id: z.ZodString;
1332
1335
  conversationId: z.ZodString;
1333
1336
  status: z.ZodEnum<{
1334
- cancelled: "cancelled";
1335
1337
  completed: "completed";
1336
1338
  failed: "failed";
1339
+ cancelled: "cancelled";
1337
1340
  }>;
1338
1341
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1339
1342
  output: z.ZodOptional<z.ZodString>;
@@ -1672,8 +1675,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1672
1675
  hookName: z.ZodString;
1673
1676
  owner: z.ZodObject<{
1674
1677
  kind: z.ZodEnum<{
1675
- workspace: "workspace";
1676
1678
  plugin: "plugin";
1679
+ workspace: "workspace";
1677
1680
  }>;
1678
1681
  id: z.ZodString;
1679
1682
  }, z.core.$strip>;
@@ -2266,6 +2269,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2266
2269
  tavily: "tavily";
2267
2270
  keenable: "keenable";
2268
2271
  firecrawl: "firecrawl";
2272
+ fastcrw: "fastcrw";
2269
2273
  }>;
2270
2274
  resultCount: z.ZodNumber;
2271
2275
  durationMs: z.ZodNumber;
@@ -2287,6 +2291,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2287
2291
  provider: z.ZodOptional<z.ZodEnum<{
2288
2292
  default: "default";
2289
2293
  firecrawl: "firecrawl";
2294
+ fastcrw: "fastcrw";
2290
2295
  }>>;
2291
2296
  status: z.ZodNumber;
2292
2297
  contentType: z.ZodOptional<z.ZodString>;
@@ -2427,6 +2432,11 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2427
2432
  requestId: z.ZodOptional<z.ZodString>;
2428
2433
  clientMessageId: z.ZodOptional<z.ZodString>;
2429
2434
  }, z.core.$strict>, z.ZodObject<{
2435
+ type: z.ZodLiteral<"watch_retro_completed">;
2436
+ sessionId: z.ZodString;
2437
+ conversationId: z.ZodString;
2438
+ reportReady: z.ZodBoolean;
2439
+ }, z.core.$strip>, z.ZodObject<{
2430
2440
  type: z.ZodLiteral<"workflow_completed">;
2431
2441
  runId: z.ZodString;
2432
2442
  conversationId: z.ZodOptional<z.ZodString>;
@@ -2662,12 +2672,12 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2662
2672
  targetClientId: z.ZodOptional<z.ZodString>;
2663
2673
  targetInterfaceId: z.ZodOptional<z.ZodEnum<{
2664
2674
  phone: "phone";
2665
- a2a: "a2a";
2666
- whatsapp: "whatsapp";
2667
- discord: "discord";
2668
2675
  telegram: "telegram";
2676
+ whatsapp: "whatsapp";
2669
2677
  slack: "slack";
2670
2678
  email: "email";
2679
+ a2a: "a2a";
2680
+ discord: "discord";
2671
2681
  plugin: "plugin";
2672
2682
  macos: "macos";
2673
2683
  windows: "windows";
@@ -2815,9 +2825,9 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2815
2825
  id: z.ZodString;
2816
2826
  conversationId: z.ZodString;
2817
2827
  status: z.ZodEnum<{
2818
- cancelled: "cancelled";
2819
2828
  completed: "completed";
2820
2829
  failed: "failed";
2830
+ cancelled: "cancelled";
2821
2831
  }>;
2822
2832
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2823
2833
  output: z.ZodOptional<z.ZodString>;
@@ -3156,8 +3166,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3156
3166
  hookName: z.ZodString;
3157
3167
  owner: z.ZodObject<{
3158
3168
  kind: z.ZodEnum<{
3159
- workspace: "workspace";
3160
3169
  plugin: "plugin";
3170
+ workspace: "workspace";
3161
3171
  }>;
3162
3172
  id: z.ZodString;
3163
3173
  }, z.core.$strip>;
@@ -3750,6 +3760,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3750
3760
  tavily: "tavily";
3751
3761
  keenable: "keenable";
3752
3762
  firecrawl: "firecrawl";
3763
+ fastcrw: "fastcrw";
3753
3764
  }>;
3754
3765
  resultCount: z.ZodNumber;
3755
3766
  durationMs: z.ZodNumber;
@@ -3771,6 +3782,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3771
3782
  provider: z.ZodOptional<z.ZodEnum<{
3772
3783
  default: "default";
3773
3784
  firecrawl: "firecrawl";
3785
+ fastcrw: "fastcrw";
3774
3786
  }>>;
3775
3787
  status: z.ZodNumber;
3776
3788
  contentType: z.ZodOptional<z.ZodString>;
@@ -3911,6 +3923,11 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3911
3923
  requestId: z.ZodOptional<z.ZodString>;
3912
3924
  clientMessageId: z.ZodOptional<z.ZodString>;
3913
3925
  }, z.core.$strict>, z.ZodObject<{
3926
+ type: z.ZodLiteral<"watch_retro_completed">;
3927
+ sessionId: z.ZodString;
3928
+ conversationId: z.ZodString;
3929
+ reportReady: z.ZodBoolean;
3930
+ }, z.core.$strip>, z.ZodObject<{
3914
3931
  type: z.ZodLiteral<"workflow_completed">;
3915
3932
  runId: z.ZodString;
3916
3933
  conversationId: z.ZodOptional<z.ZodString>;
@@ -4057,6 +4074,13 @@ declare interface BaseSubscriberEntry {
4057
4074
  */
4058
4075
  export declare function buildMessageExcerpt(rawContent: string, query: string): Promise<string>;
4059
4076
 
4077
+ /**
4078
+ * Conversation-type axis within an adapter (the "channel-type" cascade
4079
+ * level): direct message, private channel/group, public channel. Adapters
4080
+ * map their native surfaces onto these three.
4081
+ */
4082
+ declare const CHANNEL_CONVERSATION_TYPES: readonly ["dm", "private", "public"];
4083
+
4060
4084
  /**
4061
4085
  * Canonical channel-id vocabulary shared between the assistant daemon and the
4062
4086
  * gateway.
@@ -4090,6 +4114,8 @@ export declare function buildMessageExcerpt(rawContent: string, query: string):
4090
4114
  */
4091
4115
  declare const CHANNEL_IDS: readonly ["telegram", "phone", "vellum", "whatsapp", "slack", "email", "platform", "a2a", "discord", "plugin"];
4092
4116
 
4117
+ declare type ChannelConversationType = (typeof CHANNEL_CONVERSATION_TYPES)[number];
4118
+
4093
4119
  declare type ChannelId = (typeof CHANNEL_IDS)[number];
4094
4120
 
4095
4121
  export declare const CLI_COMMAND_HELP: readonly CliCommandHelp[];
@@ -4323,9 +4349,17 @@ export declare type ConversationsClearedContext = BaseHookContext;
4323
4349
  /** Read-side alias of {@link ConversationCreateType}. */
4324
4350
  declare type ConversationType = ConversationCreateType;
4325
4351
 
4326
- /** Create a live voice connection bound to the caller's `send` transport. */
4352
+ /**
4353
+ * Create a live voice connection bound to the caller's `send` transport.
4354
+ *
4355
+ * `close` is how the daemon hangs up. It is optional only because a transport
4356
+ * may not be able to (an in-process pipe), but a real one should always pass
4357
+ * it: without it, a session the daemon reclaims from an absent client leaves
4358
+ * the transport open behind it.
4359
+ */
4327
4360
  export declare function createLiveVoiceConnection(options: {
4328
4361
  send: LiveVoiceFrameSender;
4362
+ close?: () => void;
4329
4363
  }): LiveVoiceConnection;
4330
4364
 
4331
4365
  /**
@@ -5064,7 +5098,7 @@ declare interface LiveVoiceServerFrameBase {
5064
5098
 
5065
5099
  declare type LiveVoiceServerFrameType = (typeof _LIVE_VOICE_SERVER_FRAME_TYPES)[number];
5066
5100
 
5067
- export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "manager_shutdown";
5101
+ export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "client_timeout" | "forced_end" | "manager_shutdown";
5068
5102
 
5069
5103
  /**
5070
5104
  * Emitted when the server VAD detects user speech. The client MUST
@@ -5222,30 +5256,30 @@ declare const messageMetadataSchema: z.ZodObject<{
5222
5256
  sentAt: z.ZodOptional<z.ZodNumber>;
5223
5257
  userMessageChannel: z.ZodOptional<z.ZodEnum<{
5224
5258
  phone: "phone";
5225
- platform: "platform";
5226
- a2a: "a2a";
5259
+ telegram: "telegram";
5227
5260
  vellum: "vellum";
5228
5261
  whatsapp: "whatsapp";
5229
- discord: "discord";
5230
- telegram: "telegram";
5231
5262
  slack: "slack";
5232
5263
  email: "email";
5264
+ platform: "platform";
5265
+ a2a: "a2a";
5266
+ discord: "discord";
5233
5267
  plugin: "plugin";
5234
5268
  }>>;
5235
5269
  assistantMessageChannel: z.ZodOptional<z.ZodEnum<{
5236
5270
  phone: "phone";
5237
- platform: "platform";
5238
- a2a: "a2a";
5271
+ telegram: "telegram";
5239
5272
  vellum: "vellum";
5240
5273
  whatsapp: "whatsapp";
5241
- discord: "discord";
5242
- telegram: "telegram";
5243
5274
  slack: "slack";
5244
5275
  email: "email";
5276
+ platform: "platform";
5277
+ a2a: "a2a";
5278
+ discord: "discord";
5245
5279
  plugin: "plugin";
5246
5280
  }>>;
5247
- userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5248
- assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"phone" | "a2a" | "whatsapp" | "discord" | "telegram" | "slack" | "email" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5281
+ userMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5282
+ assistantMessageInterface: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route" | null, string>> & z.ZodType<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string, z.core.$ZodTypeInternals<"phone" | "telegram" | "whatsapp" | "slack" | "email" | "a2a" | "discord" | "plugin" | "macos" | "windows" | "ios" | "cli" | "web" | "chrome-extension" | "route", string>>>;
5249
5283
  client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5250
5284
  clientOsFromRequest: z.ZodOptional<z.ZodBoolean>;
5251
5285
  subagentNotification: z.ZodOptional<z.ZodObject<{
@@ -5274,14 +5308,14 @@ declare const messageMetadataSchema: z.ZodObject<{
5274
5308
  model: z.ZodOptional<z.ZodString>;
5275
5309
  provenanceSourceChannel: z.ZodOptional<z.ZodEnum<{
5276
5310
  phone: "phone";
5277
- platform: "platform";
5278
- a2a: "a2a";
5311
+ telegram: "telegram";
5279
5312
  vellum: "vellum";
5280
5313
  whatsapp: "whatsapp";
5281
- discord: "discord";
5282
- telegram: "telegram";
5283
5314
  slack: "slack";
5284
5315
  email: "email";
5316
+ platform: "platform";
5317
+ a2a: "a2a";
5318
+ discord: "discord";
5285
5319
  plugin: "plugin";
5286
5320
  }>>;
5287
5321
  provenanceGuardianExternalUserId: z.ZodOptional<z.ZodString>;
@@ -5299,9 +5333,9 @@ declare const messageMetadataSchema: z.ZodObject<{
5299
5333
  command: z.ZodString;
5300
5334
  startedAt: z.ZodNumber;
5301
5335
  status: z.ZodEnum<{
5302
- cancelled: "cancelled";
5303
5336
  completed: "completed";
5304
5337
  failed: "failed";
5338
+ cancelled: "cancelled";
5305
5339
  }>;
5306
5340
  exitCode: z.ZodNullable<z.ZodNumber>;
5307
5341
  output: z.ZodString;
@@ -7261,7 +7295,7 @@ export declare interface ToolContext {
7261
7295
  * resolution; undefined when the chat type is unknown or ambiguous.
7262
7296
  * @legacy
7263
7297
  */
7264
- channelConversationType?: "dm" | "private" | "public";
7298
+ channelConversationType?: ChannelConversationType;
7265
7299
  /**
7266
7300
  * External channel/conversation ID of the current chat (the binding's
7267
7301
  * external chat id — Slack channel, Telegram chat, …). Keys the channel
@@ -7740,7 +7774,7 @@ declare interface WebFetchMetadata {
7740
7774
  }
7741
7775
 
7742
7776
  /** Provider that backed a `web_fetch` call. `default` is the built-in fetcher. */
7743
- declare type WebFetchProviderId = "default" | "firecrawl";
7777
+ declare type WebFetchProviderId = "default" | "firecrawl" | "fastcrw";
7744
7778
 
7745
7779
  /**
7746
7780
  * Public URL resolution for a plugin's own ingress route.
@@ -7797,7 +7831,7 @@ declare interface WebSearchMetadata {
7797
7831
  errorMessage?: string;
7798
7832
  }
7799
7833
 
7800
- declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl";
7834
+ declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl" | "fastcrw";
7801
7835
 
7802
7836
  declare interface WebSearchResultItem {
7803
7837
  rank: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.5",
3
+ "version": "0.11.6-staging.1",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",