@waniwani/sdk 0.20.2 → 0.20.4
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/chat/embed.js +62 -62
- package/dist/chat/embed.js.map +1 -1
- package/dist/chat/index.d.ts +8 -0
- package/dist/chat/index.js +7 -7
- package/dist/chat/index.js.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.d.ts
CHANGED
|
@@ -625,6 +625,14 @@ interface ChatBaseProps {
|
|
|
625
625
|
visitorId?: VisitorIdInput;
|
|
626
626
|
/** Additional headers to send with chat API requests */
|
|
627
627
|
headers?: Record<string, string>;
|
|
628
|
+
/**
|
|
629
|
+
* Extra headers for the document upload and discard requests, merged over
|
|
630
|
+
* `headers` for those calls only. Set it where those endpoints take a
|
|
631
|
+
* different credential than the chat; everything else in `headers` still
|
|
632
|
+
* goes out. Matching names replace, case-insensitively. Browser-visible, so
|
|
633
|
+
* public credentials only.
|
|
634
|
+
*/
|
|
635
|
+
uploadHeaders?: Record<string, string>;
|
|
628
636
|
/** Additional body fields to send with each chat request */
|
|
629
637
|
body?: Record<string, unknown>;
|
|
630
638
|
/** Enable file attachments in the input. Defaults to false. */
|