@vellumai/plugin-api 0.11.5-dev.202608220019.a778cf0 → 0.11.5-dev.202608220132.0d28f8d

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 -20
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1675,8 +1675,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1675
1675
  hookName: z.ZodString;
1676
1676
  owner: z.ZodObject<{
1677
1677
  kind: z.ZodEnum<{
1678
- workspace: "workspace";
1679
1678
  plugin: "plugin";
1679
+ workspace: "workspace";
1680
1680
  }>;
1681
1681
  id: z.ZodString;
1682
1682
  }, z.core.$strip>;
@@ -2672,12 +2672,12 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
2672
2672
  targetClientId: z.ZodOptional<z.ZodString>;
2673
2673
  targetInterfaceId: z.ZodOptional<z.ZodEnum<{
2674
2674
  phone: "phone";
2675
- a2a: "a2a";
2676
- whatsapp: "whatsapp";
2677
- discord: "discord";
2678
2675
  telegram: "telegram";
2676
+ whatsapp: "whatsapp";
2679
2677
  slack: "slack";
2680
2678
  email: "email";
2679
+ a2a: "a2a";
2680
+ discord: "discord";
2681
2681
  plugin: "plugin";
2682
2682
  macos: "macos";
2683
2683
  windows: "windows";
@@ -3166,8 +3166,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3166
3166
  hookName: z.ZodString;
3167
3167
  owner: z.ZodObject<{
3168
3168
  kind: z.ZodEnum<{
3169
- workspace: "workspace";
3170
3169
  plugin: "plugin";
3170
+ workspace: "workspace";
3171
3171
  }>;
3172
3172
  id: z.ZodString;
3173
3173
  }, z.core.$strip>;
@@ -4074,6 +4074,13 @@ declare interface BaseSubscriberEntry {
4074
4074
  */
4075
4075
  export declare function buildMessageExcerpt(rawContent: string, query: string): Promise<string>;
4076
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
+
4077
4084
  /**
4078
4085
  * Canonical channel-id vocabulary shared between the assistant daemon and the
4079
4086
  * gateway.
@@ -4107,6 +4114,8 @@ export declare function buildMessageExcerpt(rawContent: string, query: string):
4107
4114
  */
4108
4115
  declare const CHANNEL_IDS: readonly ["telegram", "phone", "vellum", "whatsapp", "slack", "email", "platform", "a2a", "discord", "plugin"];
4109
4116
 
4117
+ declare type ChannelConversationType = (typeof CHANNEL_CONVERSATION_TYPES)[number];
4118
+
4110
4119
  declare type ChannelId = (typeof CHANNEL_IDS)[number];
4111
4120
 
4112
4121
  export declare const CLI_COMMAND_HELP: readonly CliCommandHelp[];
@@ -5239,30 +5248,30 @@ declare const messageMetadataSchema: z.ZodObject<{
5239
5248
  sentAt: z.ZodOptional<z.ZodNumber>;
5240
5249
  userMessageChannel: z.ZodOptional<z.ZodEnum<{
5241
5250
  phone: "phone";
5242
- platform: "platform";
5243
- a2a: "a2a";
5251
+ telegram: "telegram";
5244
5252
  vellum: "vellum";
5245
5253
  whatsapp: "whatsapp";
5246
- discord: "discord";
5247
- telegram: "telegram";
5248
5254
  slack: "slack";
5249
5255
  email: "email";
5256
+ platform: "platform";
5257
+ a2a: "a2a";
5258
+ discord: "discord";
5250
5259
  plugin: "plugin";
5251
5260
  }>>;
5252
5261
  assistantMessageChannel: z.ZodOptional<z.ZodEnum<{
5253
5262
  phone: "phone";
5254
- platform: "platform";
5255
- a2a: "a2a";
5263
+ telegram: "telegram";
5256
5264
  vellum: "vellum";
5257
5265
  whatsapp: "whatsapp";
5258
- discord: "discord";
5259
- telegram: "telegram";
5260
5266
  slack: "slack";
5261
5267
  email: "email";
5268
+ platform: "platform";
5269
+ a2a: "a2a";
5270
+ discord: "discord";
5262
5271
  plugin: "plugin";
5263
5272
  }>>;
5264
- 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>>>;
5265
- 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>>>;
5273
+ 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>>>;
5274
+ 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>>>;
5266
5275
  client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5267
5276
  clientOsFromRequest: z.ZodOptional<z.ZodBoolean>;
5268
5277
  subagentNotification: z.ZodOptional<z.ZodObject<{
@@ -5291,14 +5300,14 @@ declare const messageMetadataSchema: z.ZodObject<{
5291
5300
  model: z.ZodOptional<z.ZodString>;
5292
5301
  provenanceSourceChannel: z.ZodOptional<z.ZodEnum<{
5293
5302
  phone: "phone";
5294
- platform: "platform";
5295
- a2a: "a2a";
5303
+ telegram: "telegram";
5296
5304
  vellum: "vellum";
5297
5305
  whatsapp: "whatsapp";
5298
- discord: "discord";
5299
- telegram: "telegram";
5300
5306
  slack: "slack";
5301
5307
  email: "email";
5308
+ platform: "platform";
5309
+ a2a: "a2a";
5310
+ discord: "discord";
5302
5311
  plugin: "plugin";
5303
5312
  }>>;
5304
5313
  provenanceGuardianExternalUserId: z.ZodOptional<z.ZodString>;
@@ -7278,7 +7287,7 @@ export declare interface ToolContext {
7278
7287
  * resolution; undefined when the chat type is unknown or ambiguous.
7279
7288
  * @legacy
7280
7289
  */
7281
- channelConversationType?: "dm" | "private" | "public";
7290
+ channelConversationType?: ChannelConversationType;
7282
7291
  /**
7283
7292
  * External channel/conversation ID of the current chat (the binding's
7284
7293
  * external chat id — Slack channel, Telegram chat, …). Keys the channel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.5-dev.202608220019.a778cf0",
3
+ "version": "0.11.5-dev.202608220132.0d28f8d",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",