@runtypelabs/persona 3.20.0 → 3.21.0

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.
package/dist/index.d.cts CHANGED
@@ -757,10 +757,28 @@ type FileContentPart = {
757
757
  mimeType: string;
758
758
  filename: string;
759
759
  };
760
+ /**
761
+ * Audio content part for multi-modal messages
762
+ * Supports base64 data URIs or URLs
763
+ */
764
+ type AudioContentPart = {
765
+ type: 'audio';
766
+ audio: string;
767
+ mimeType?: string;
768
+ };
769
+ /**
770
+ * Video content part for multi-modal messages
771
+ * Supports base64 data URIs or URLs
772
+ */
773
+ type VideoContentPart = {
774
+ type: 'video';
775
+ video: string;
776
+ mimeType?: string;
777
+ };
760
778
  /**
761
779
  * Union type for all content part types
762
780
  */
763
- type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
781
+ type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
764
782
  /**
765
783
  * Message content can be a simple string or an array of content parts
766
784
  */
package/dist/index.d.ts CHANGED
@@ -757,10 +757,28 @@ type FileContentPart = {
757
757
  mimeType: string;
758
758
  filename: string;
759
759
  };
760
+ /**
761
+ * Audio content part for multi-modal messages
762
+ * Supports base64 data URIs or URLs
763
+ */
764
+ type AudioContentPart = {
765
+ type: 'audio';
766
+ audio: string;
767
+ mimeType?: string;
768
+ };
769
+ /**
770
+ * Video content part for multi-modal messages
771
+ * Supports base64 data URIs or URLs
772
+ */
773
+ type VideoContentPart = {
774
+ type: 'video';
775
+ video: string;
776
+ mimeType?: string;
777
+ };
760
778
  /**
761
779
  * Union type for all content part types
762
780
  */
763
- type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
781
+ type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
764
782
  /**
765
783
  * Message content can be a simple string or an array of content parts
766
784
  */