@deepdesk/deepdesk-sdk 11.1.1-beta.4 → 11.1.1-beta.6

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.mts CHANGED
@@ -266,7 +266,9 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
266
266
  protected handleKeyDown(event: KeyboardEvent): void;
267
267
  protected handleCut(): void;
268
268
  protected handlePaste(event: ClipboardEvent): void;
269
- protected listen(): void;
269
+ protected listen(options?: {
270
+ shouldObserve?: boolean;
271
+ }): void;
270
272
  abstract getText(): string;
271
273
  abstract getHTML(): string | null;
272
274
  abstract getSelection(): SelectionRange;
@@ -1097,6 +1099,10 @@ declare namespace Server {
1097
1099
  is_enabled: boolean;
1098
1100
  label: string;
1099
1101
  };
1102
+ type Summary = {
1103
+ summary: string;
1104
+ model?: string;
1105
+ };
1100
1106
  }
1101
1107
  type ConversationMessage = CamelCaseKeys<Omit<Server.ConversationMessage, 'tags'>> & {
1102
1108
  tags: Record<string, string> | null;
@@ -1285,7 +1291,7 @@ declare class DeepdeskAPI {
1285
1291
  promptInstruction?: string;
1286
1292
  agentId?: string;
1287
1293
  externalConversationId?: string;
1288
- }): Promise<string>;
1294
+ }): Promise<CamelCaseKeys<Server.Summary>>;
1289
1295
  /**
1290
1296
  * Get a temporary exchange / login token
1291
1297
  */
@@ -1535,6 +1541,7 @@ interface State$4 {
1535
1541
 
1536
1542
  type State$3 = {
1537
1543
  data: string | null;
1544
+ model?: string;
1538
1545
  fetchState: FetchState;
1539
1546
  };
1540
1547
 
@@ -2195,7 +2202,9 @@ declare class ContentEditableInput extends InputMediator<HTMLDivElement> {
2195
2202
  getSelection(): SelectionRange;
2196
2203
  getSelectedText(): string;
2197
2204
  applyChanges(callback: (element: HTMLDivElement) => void | Promise<void>): void | Promise<void>;
2198
- listen(): void;
2205
+ listen(options?: {
2206
+ shouldObserve?: boolean;
2207
+ }): void;
2199
2208
  dispose(): void;
2200
2209
  }
2201
2210
 
package/dist/index.d.ts CHANGED
@@ -266,7 +266,9 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
266
266
  protected handleKeyDown(event: KeyboardEvent): void;
267
267
  protected handleCut(): void;
268
268
  protected handlePaste(event: ClipboardEvent): void;
269
- protected listen(): void;
269
+ protected listen(options?: {
270
+ shouldObserve?: boolean;
271
+ }): void;
270
272
  abstract getText(): string;
271
273
  abstract getHTML(): string | null;
272
274
  abstract getSelection(): SelectionRange;
@@ -1097,6 +1099,10 @@ declare namespace Server {
1097
1099
  is_enabled: boolean;
1098
1100
  label: string;
1099
1101
  };
1102
+ type Summary = {
1103
+ summary: string;
1104
+ model?: string;
1105
+ };
1100
1106
  }
1101
1107
  type ConversationMessage = CamelCaseKeys<Omit<Server.ConversationMessage, 'tags'>> & {
1102
1108
  tags: Record<string, string> | null;
@@ -1285,7 +1291,7 @@ declare class DeepdeskAPI {
1285
1291
  promptInstruction?: string;
1286
1292
  agentId?: string;
1287
1293
  externalConversationId?: string;
1288
- }): Promise<string>;
1294
+ }): Promise<CamelCaseKeys<Server.Summary>>;
1289
1295
  /**
1290
1296
  * Get a temporary exchange / login token
1291
1297
  */
@@ -1535,6 +1541,7 @@ interface State$4 {
1535
1541
 
1536
1542
  type State$3 = {
1537
1543
  data: string | null;
1544
+ model?: string;
1538
1545
  fetchState: FetchState;
1539
1546
  };
1540
1547
 
@@ -2195,7 +2202,9 @@ declare class ContentEditableInput extends InputMediator<HTMLDivElement> {
2195
2202
  getSelection(): SelectionRange;
2196
2203
  getSelectedText(): string;
2197
2204
  applyChanges(callback: (element: HTMLDivElement) => void | Promise<void>): void | Promise<void>;
2198
- listen(): void;
2205
+ listen(options?: {
2206
+ shouldObserve?: boolean;
2207
+ }): void;
2199
2208
  dispose(): void;
2200
2209
  }
2201
2210