@pluno/product-agent-web 0.1.17 → 0.1.19

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.ts CHANGED
@@ -16,8 +16,16 @@ export type ProductAgentMessage = {
16
16
  content: string;
17
17
  createdAt: string;
18
18
  dataType?: string;
19
+ attachments?: ProductAgentAttachment[];
19
20
  loading?: boolean;
20
21
  };
22
+ export type ProductAgentAttachment = {
23
+ name: string;
24
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "application/pdf";
25
+ sizeBytes: number;
26
+ dataUrl: string;
27
+ };
28
+ export type ProductAgentImageAttachment = ProductAgentAttachment;
21
29
  export type ProductAgentAppearance = {
22
30
  accentColor?: string;
23
31
  colorScheme?: "light" | "dark";
@@ -89,7 +97,9 @@ export declare class PlunoProductAgent {
89
97
  connect(): Promise<void>;
90
98
  disconnect(): void;
91
99
  destroy(): void;
92
- sendMessage(content: string): void;
100
+ sendMessage(content: string, options?: {
101
+ attachments?: ProductAgentAttachment[];
102
+ }): void;
93
103
  stop(): void;
94
104
  startNewSession(): void;
95
105
  private send;