@vellumai/plugin-api 0.10.2-dev.202606242234.c9e9e1d → 0.10.2-dev.202606242332.3fa9b2b

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 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -575,6 +575,27 @@ declare const CardSurfaceDataSchema: z.ZodObject<{
575
575
  templateData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
576
576
  }, z.core.$strip>;
577
577
 
578
+ /**
579
+ * Canonical channel-id vocabulary shared between the assistant daemon and the
580
+ * gateway.
581
+ *
582
+ * A "channel" is an external messaging surface an actor can reach the
583
+ * assistant through (Slack, Telegram, WhatsApp, phone, …) plus a couple of
584
+ * internal ids (`vellum` for native app conversations, `platform` for the
585
+ * internal control plane). This is the single source of truth for that set:
586
+ * the assistant adopts it wholesale as its `ChannelId`, and the gateway
587
+ * asserts its own (narrower) inbound list is a subset of it so the two sides
588
+ * cannot silently drift.
589
+ *
590
+ * Both packages depend on `@vellumai/service-contracts`, so hoisting the set
591
+ * here (rather than maintaining a copy on each side) means adding or renaming
592
+ * a channel happens in exactly one place.
593
+ *
594
+ * Note that a consumer may legitimately handle only a *subset* of these — the
595
+ * gateway, for example, never ingresses `platform`. Use a local list guarded
596
+ * by `satisfies readonly ChannelId[]` for those cases rather than redefining
597
+ * the union.
598
+ */
578
599
  declare const CHANNEL_IDS: readonly ["telegram", "phone", "vellum", "whatsapp", "slack", "email", "platform", "a2a"];
579
600
 
580
601
  /** Channel binding metadata exposed in conversation list APIs. */
@@ -1370,12 +1391,14 @@ export declare interface FileContent {
1370
1391
  _attachmentId?: string;
1371
1392
  }
1372
1393
 
1373
- declare interface FileUploadSurfaceData {
1374
- prompt: string;
1375
- acceptedTypes?: string[];
1376
- maxFiles?: number;
1377
- maxSizeBytes?: number;
1378
- }
1394
+ declare type FileUploadSurfaceData = z.infer<typeof FileUploadSurfaceDataSchema>;
1395
+
1396
+ declare const FileUploadSurfaceDataSchema: z.ZodObject<{
1397
+ prompt: z.ZodOptional<z.ZodCoercedString<unknown>>;
1398
+ acceptedTypes: z.ZodPipe<z.ZodTransform<string[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
1399
+ maxFiles: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1400
+ maxSizeBytes: z.ZodCatch<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
1401
+ }, z.core.$strip>;
1379
1402
 
1380
1403
  declare interface FilingConfigResponse {
1381
1404
  type: "filing_config_response";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.2-dev.202606242234.c9e9e1d",
3
+ "version": "0.10.2-dev.202606242332.3fa9b2b",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",