@eloquentai/chat-sdk 0.34.4 → 0.35.0-dev.2

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.
@@ -1,9 +1,26 @@
1
+ export type AttachmentMimeType = "image/png" | "image/jpeg" | "image/webp" | "application/pdf";
2
+ export type MessageAttachment = {
3
+ url: string;
4
+ mimeType: AttachmentMimeType;
5
+ name: string;
6
+ displayUrl?: string;
7
+ };
8
+ export type UploadingMessageAttachment = MessageAttachment & {
9
+ uploadProgress: number;
10
+ };
11
+ export type AttachmentFile = {
12
+ file: File;
13
+ mimeType: AttachmentMimeType;
14
+ previewUrl: string;
15
+ };
16
+ export type AttachmentUrls = Record<string, string>;
1
17
  export type MessageData = {
2
18
  id: string;
3
19
  content: string;
4
20
  sender: "user" | "assistant";
5
21
  timestamp: string;
6
22
  type?: "text" | "image";
23
+ attachments?: (MessageAttachment | UploadingMessageAttachment)[];
7
24
  isWelcomeMessage?: boolean;
8
25
  isThinking?: boolean;
9
26
  isRatingRequest?: boolean;
@@ -11,3 +28,7 @@ export type MessageData = {
11
28
  isNew?: boolean;
12
29
  };
13
30
  export type Message = MessageData;
31
+ export type AttachmentSelection = {
32
+ attachmentFiles: AttachmentFile[];
33
+ error: string | null;
34
+ };
package/dist/ui.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { B as n, C as t, a as r, L as o, M as f, b, R as i, S as l, T as g, u } from "./skeleton-DDvP6_Au.js";
1
+ import { B as n, C as t, a as r, L as o, M as f, b, R as i, S as l, T as g, u } from "./skeleton-CunqvnAX.js";
2
2
  try {
3
3
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, a = new e.Error().stack;
4
4
  a && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[a] = "f9ed1380-1437-4e00-acb2-cdd914034062", e._sentryDebugIdIdentifier = "sentry-dbid-f9ed1380-1437-4e00-acb2-cdd914034062");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloquentai/chat-sdk",
3
- "version": "0.34.4",
3
+ "version": "0.35.0-dev.2",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "chat",