@onedeskpro/chatbot-types 0.4.0 → 0.5.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 +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -74,9 +74,15 @@ type UploadAttachmentResponseData = ChatAttachment;
|
|
|
74
74
|
/** Widget / bridge episode mode for AI vs human takeover. */
|
|
75
75
|
type ChatbotTicketMode = 'ai' | 'waiting' | 'human' | 'closed';
|
|
76
76
|
interface ChatResponseData {
|
|
77
|
+
/** Every text the AI sent for this message, in order, separated by a blank line. */
|
|
77
78
|
text: string;
|
|
78
79
|
sessionId: string;
|
|
79
80
|
mode: ChatbotTicketMode;
|
|
81
|
+
/**
|
|
82
|
+
* Files the AI sent with `text`, e.g. the photo of a Product an agent with the Sales
|
|
83
|
+
* ability recommends. Absent when there are none. The API does not send `size`.
|
|
84
|
+
*/
|
|
85
|
+
attachments?: Pick<ChatAttachment, 'type' | 'url' | 'fileName'>[];
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Shared shape for `POST /sdk/human-request`, `POST /sdk/human-request/cancel`,
|
package/dist/index.d.ts
CHANGED
|
@@ -74,9 +74,15 @@ type UploadAttachmentResponseData = ChatAttachment;
|
|
|
74
74
|
/** Widget / bridge episode mode for AI vs human takeover. */
|
|
75
75
|
type ChatbotTicketMode = 'ai' | 'waiting' | 'human' | 'closed';
|
|
76
76
|
interface ChatResponseData {
|
|
77
|
+
/** Every text the AI sent for this message, in order, separated by a blank line. */
|
|
77
78
|
text: string;
|
|
78
79
|
sessionId: string;
|
|
79
80
|
mode: ChatbotTicketMode;
|
|
81
|
+
/**
|
|
82
|
+
* Files the AI sent with `text`, e.g. the photo of a Product an agent with the Sales
|
|
83
|
+
* ability recommends. Absent when there are none. The API does not send `size`.
|
|
84
|
+
*/
|
|
85
|
+
attachments?: Pick<ChatAttachment, 'type' | 'url' | 'fileName'>[];
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Shared shape for `POST /sdk/human-request`, `POST /sdk/human-request/cancel`,
|