@flashbacktech/tsclient 0.4.44 → 0.4.46
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.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -816,6 +816,22 @@ var ChatSchedulesScope = class {
|
|
|
816
816
|
);
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
|
+
var ChatFeedbackScope = class {
|
|
820
|
+
constructor(http) {
|
|
821
|
+
this.http = http;
|
|
822
|
+
}
|
|
823
|
+
submit(scope, conversationId, body) {
|
|
824
|
+
return this.http.post(`${BASE_PATH}/${conversationId}/feedback`, {
|
|
825
|
+
body,
|
|
826
|
+
headers: scopeHeaders(scope)
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
list(scope, conversationId) {
|
|
830
|
+
return this.http.get(`${BASE_PATH}/${conversationId}/feedback`, {
|
|
831
|
+
headers: scopeHeaders(scope)
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
};
|
|
819
835
|
var ChatClient = class {
|
|
820
836
|
constructor(http, streamDeps) {
|
|
821
837
|
this.http = http;
|
|
@@ -825,6 +841,7 @@ var ChatClient = class {
|
|
|
825
841
|
this.questions = new ChatQuestionsScope(http);
|
|
826
842
|
this.debug = new ChatDebugScope(http);
|
|
827
843
|
this.schedules = new ChatSchedulesScope(http);
|
|
844
|
+
this.feedback = new ChatFeedbackScope(http);
|
|
828
845
|
}
|
|
829
846
|
openStream(options) {
|
|
830
847
|
return openChatStream(this.streamDeps, options);
|