@frockbot/applet-sdk 0.7.218 → 0.7.220

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/package.json +1 -1
  2. package/plugin/index.d.ts +18 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/applet-sdk",
3
- "version": "0.7.218",
3
+ "version": "0.7.220",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Authoring SDK for FrockBot Plugins: the declarations a Plugin is written against, and the build pipeline the cloud build service runs.",
package/plugin/index.d.ts CHANGED
@@ -583,9 +583,26 @@ export interface ModelReplayState {
583
583
  content: string;
584
584
  }
585
585
 
586
+ /**
587
+ * A file the person attached to their message, named by its upload rather
588
+ * than carried: a hook sees the reference, never the bytes.
589
+ */
590
+ export interface MessageAttachment {
591
+ kind: "image" | "document";
592
+ /** The SHA-256 of the file's bytes, lowercase hex. */
593
+ uploadId: string;
594
+ name: string;
595
+ mediaType: string;
596
+ bytes: number;
597
+ /** An image's bytes, resolved for one model request. Never durable. */
598
+ dataBase64?: string;
599
+ /** A document's text excerpt, resolved for one model request. Never durable. */
600
+ text?: string;
601
+ }
602
+
586
603
  /** One message in a model request. */
587
604
  export type ModelMessage =
588
- | { role: "user"; content: string }
605
+ | { role: "user"; content: string; attachments?: MessageAttachment[] }
589
606
  | {
590
607
  role: "assistant";
591
608
  content: string;