@deepdesk/deepdesk-sdk 19.4.1 → 19.4.2-beta.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.mts CHANGED
@@ -421,6 +421,7 @@ type LegacyCue = CamelCaseKeys<Server.LegacyCue> & {
421
421
  };
422
422
 
423
423
  type EvaluationOutput = CamelCaseKeys<Server.EvaluationOutput>;
424
+ type Attachment = EvaluationAttachment;
424
425
  type ArrayItemType<T> = T extends Array<infer I> ? I : never;
425
426
  type Cue = ArrayItemType<EvaluationOutput> & {
426
427
  isLoading?: boolean;
@@ -453,10 +454,12 @@ type State$9 = {
453
454
  type Transcript = Array<{
454
455
  source: string;
455
456
  text: string;
457
+ attachments?: Attachment[];
456
458
  }>;
457
459
  type TranscriptOption = 'in-memory-transcript' | Transcript;
458
460
  interface EvaluateInput {
459
461
  assistantCode: string;
462
+ attachments?: Attachment[];
460
463
  threadId?: number;
461
464
  input?: any;
462
465
  transcript?: TranscriptOption;
@@ -733,6 +736,11 @@ declare namespace Server {
733
736
  url: string;
734
737
  }[];
735
738
  };
739
+ type EvaluationAttachment = {
740
+ filename: string;
741
+ content_type: string;
742
+ content_base64: string;
743
+ };
736
744
  /**
737
745
  * Handling time event data
738
746
  */
@@ -972,6 +980,10 @@ type CreateConversationOptions = {
972
980
  * Send message event data
973
981
  */
974
982
  type SendMessageEventData = CamelCaseKeys<Server.SendMessageEventData>;
983
+ /**
984
+ * CamelCase attachment shape used by the SDK (wire format is Server.EvaluationAttachment).
985
+ */
986
+ type EvaluationAttachment = CamelCaseKeys<Server.EvaluationAttachment>;
975
987
  /**
976
988
  * Event payload
977
989
  */
@@ -1195,8 +1207,10 @@ declare class DeepdeskAPI {
1195
1207
  transcript?: Array<{
1196
1208
  source: string;
1197
1209
  text: string;
1210
+ attachments?: EvaluationAttachment[];
1198
1211
  }>;
1199
1212
  externalConversationId?: string;
1213
+ attachments?: EvaluationAttachment[];
1200
1214
  }): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
1201
1215
  createAssistantThread(init: {
1202
1216
  assistantCode: string;
@@ -2861,6 +2875,7 @@ declare class DeepdeskSDK {
2861
2875
  */
2862
2876
  evaluateAssistant(assistantCode: string, options?: {
2863
2877
  input?: Record<string, any>;
2878
+ attachments?: Attachment[];
2864
2879
  transcript?: TranscriptOption;
2865
2880
  includeMetadata?: boolean;
2866
2881
  showCuesInWidget?: boolean;
@@ -2909,6 +2924,7 @@ declare class DeepdeskSDK {
2909
2924
  */
2910
2925
  evaluateConversationAssistant(event: 'accepted' | 'new-message' | 'ended', options?: {
2911
2926
  input?: Record<string, any>;
2927
+ attachments?: Attachment[];
2912
2928
  transcript?: TranscriptOption;
2913
2929
  includeMetadata?: boolean;
2914
2930
  showCuesInWidget?: boolean;
@@ -3093,6 +3109,7 @@ declare class DeepdeskSDK {
3093
3109
  setConversationQuery(fetchFn: () => Promise<Array<{
3094
3110
  source: string;
3095
3111
  text: string;
3112
+ attachments?: Attachment[];
3096
3113
  }>>): void;
3097
3114
  /**
3098
3115
  * Sets platform-specific variables for placeholder interpolation.
package/dist/index.d.ts CHANGED
@@ -421,6 +421,7 @@ type LegacyCue = CamelCaseKeys<Server.LegacyCue> & {
421
421
  };
422
422
 
423
423
  type EvaluationOutput = CamelCaseKeys<Server.EvaluationOutput>;
424
+ type Attachment = EvaluationAttachment;
424
425
  type ArrayItemType<T> = T extends Array<infer I> ? I : never;
425
426
  type Cue = ArrayItemType<EvaluationOutput> & {
426
427
  isLoading?: boolean;
@@ -453,10 +454,12 @@ type State$9 = {
453
454
  type Transcript = Array<{
454
455
  source: string;
455
456
  text: string;
457
+ attachments?: Attachment[];
456
458
  }>;
457
459
  type TranscriptOption = 'in-memory-transcript' | Transcript;
458
460
  interface EvaluateInput {
459
461
  assistantCode: string;
462
+ attachments?: Attachment[];
460
463
  threadId?: number;
461
464
  input?: any;
462
465
  transcript?: TranscriptOption;
@@ -733,6 +736,11 @@ declare namespace Server {
733
736
  url: string;
734
737
  }[];
735
738
  };
739
+ type EvaluationAttachment = {
740
+ filename: string;
741
+ content_type: string;
742
+ content_base64: string;
743
+ };
736
744
  /**
737
745
  * Handling time event data
738
746
  */
@@ -972,6 +980,10 @@ type CreateConversationOptions = {
972
980
  * Send message event data
973
981
  */
974
982
  type SendMessageEventData = CamelCaseKeys<Server.SendMessageEventData>;
983
+ /**
984
+ * CamelCase attachment shape used by the SDK (wire format is Server.EvaluationAttachment).
985
+ */
986
+ type EvaluationAttachment = CamelCaseKeys<Server.EvaluationAttachment>;
975
987
  /**
976
988
  * Event payload
977
989
  */
@@ -1195,8 +1207,10 @@ declare class DeepdeskAPI {
1195
1207
  transcript?: Array<{
1196
1208
  source: string;
1197
1209
  text: string;
1210
+ attachments?: EvaluationAttachment[];
1198
1211
  }>;
1199
1212
  externalConversationId?: string;
1213
+ attachments?: EvaluationAttachment[];
1200
1214
  }): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
1201
1215
  createAssistantThread(init: {
1202
1216
  assistantCode: string;
@@ -2861,6 +2875,7 @@ declare class DeepdeskSDK {
2861
2875
  */
2862
2876
  evaluateAssistant(assistantCode: string, options?: {
2863
2877
  input?: Record<string, any>;
2878
+ attachments?: Attachment[];
2864
2879
  transcript?: TranscriptOption;
2865
2880
  includeMetadata?: boolean;
2866
2881
  showCuesInWidget?: boolean;
@@ -2909,6 +2924,7 @@ declare class DeepdeskSDK {
2909
2924
  */
2910
2925
  evaluateConversationAssistant(event: 'accepted' | 'new-message' | 'ended', options?: {
2911
2926
  input?: Record<string, any>;
2927
+ attachments?: Attachment[];
2912
2928
  transcript?: TranscriptOption;
2913
2929
  includeMetadata?: boolean;
2914
2930
  showCuesInWidget?: boolean;
@@ -3093,6 +3109,7 @@ declare class DeepdeskSDK {
3093
3109
  setConversationQuery(fetchFn: () => Promise<Array<{
3094
3110
  source: string;
3095
3111
  text: string;
3112
+ attachments?: Attachment[];
3096
3113
  }>>): void;
3097
3114
  /**
3098
3115
  * Sets platform-specific variables for placeholder interpolation.