@iblai/iblai-api 4.501.0-ai → 4.502.0-ai
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.js +11 -11
- package/dist/index.esm.js +11 -11
- package/dist/index.umd.js +11 -11
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/UserChatFeedback.d.ts +3 -3
- package/dist/types/models/UserChatFeedbackUpdate.d.ts +20 -0
- package/dist/types/services/AiMentorService.d.ts +9 -8
- package/package.json +1 -1
- package/sdk_schema.yml +80 -39
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +1 -0
- package/src/models/UserChatFeedback.ts +3 -3
- package/src/models/UserChatFeedbackUpdate.ts +25 -0
- package/src/services/AiMentorService.ts +13 -12
package/dist/index.cjs.js
CHANGED
|
@@ -110,7 +110,7 @@ class CancelablePromise {
|
|
|
110
110
|
|
|
111
111
|
const OpenAPI = {
|
|
112
112
|
BASE: 'https://base.manager.iblai.app',
|
|
113
|
-
VERSION: '4.
|
|
113
|
+
VERSION: '4.502.0-ai-plus',
|
|
114
114
|
WITH_CREDENTIALS: false,
|
|
115
115
|
CREDENTIALS: 'include',
|
|
116
116
|
TOKEN: undefined,
|
|
@@ -17539,10 +17539,10 @@ class AiMentorService{/**
|
|
|
17539
17539
|
* Raises:
|
|
17540
17540
|
* NotFound: If the specified feedback entry does not exist.
|
|
17541
17541
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
17542
|
-
* BadRequest: If the provided data is invalid
|
|
17542
|
+
* BadRequest: If the provided data is invalid.
|
|
17543
17543
|
* @returns UserChatFeedback
|
|
17544
17544
|
* @throws ApiError
|
|
17545
|
-
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17545
|
+
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
17546
17546
|
* Create a new user chat feedback entry.
|
|
17547
17547
|
*
|
|
17548
17548
|
* Args:
|
|
@@ -17553,11 +17553,11 @@ class AiMentorService{/**
|
|
|
17553
17553
|
* Response: The created feedback entry.
|
|
17554
17554
|
*
|
|
17555
17555
|
* Raises:
|
|
17556
|
-
* BadRequest: If the provided data is invalid
|
|
17557
|
-
*
|
|
17556
|
+
* BadRequest: If the provided data is invalid.
|
|
17557
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
17558
17558
|
* @returns UserChatFeedback
|
|
17559
17559
|
* @throws ApiError
|
|
17560
|
-
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17560
|
+
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
17561
17561
|
* Retrieve available LLMs for a user.
|
|
17562
17562
|
* @returns LLMResponse
|
|
17563
17563
|
* @throws ApiError
|
|
@@ -20138,10 +20138,10 @@ class AiMentorService{/**
|
|
|
20138
20138
|
* Raises:
|
|
20139
20139
|
* NotFound: If the specified feedback entry does not exist.
|
|
20140
20140
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
20141
|
-
* BadRequest: If the provided data is invalid
|
|
20141
|
+
* BadRequest: If the provided data is invalid.
|
|
20142
20142
|
* @returns UserChatFeedback
|
|
20143
20143
|
* @throws ApiError
|
|
20144
|
-
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20144
|
+
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
20145
20145
|
* @deprecated
|
|
20146
20146
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20147
20147
|
*
|
|
@@ -20155,11 +20155,11 @@ class AiMentorService{/**
|
|
|
20155
20155
|
* Response: The created feedback entry.
|
|
20156
20156
|
*
|
|
20157
20157
|
* Raises:
|
|
20158
|
-
* BadRequest: If the provided data is invalid
|
|
20159
|
-
*
|
|
20158
|
+
* BadRequest: If the provided data is invalid.
|
|
20159
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
20160
20160
|
* @returns UserChatFeedback
|
|
20161
20161
|
* @throws ApiError
|
|
20162
|
-
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20162
|
+
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
20163
20163
|
* @deprecated
|
|
20164
20164
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20165
20165
|
*
|
package/dist/index.esm.js
CHANGED
|
@@ -108,7 +108,7 @@ class CancelablePromise {
|
|
|
108
108
|
|
|
109
109
|
const OpenAPI = {
|
|
110
110
|
BASE: 'https://base.manager.iblai.app',
|
|
111
|
-
VERSION: '4.
|
|
111
|
+
VERSION: '4.502.0-ai-plus',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -17537,10 +17537,10 @@ class AiMentorService{/**
|
|
|
17537
17537
|
* Raises:
|
|
17538
17538
|
* NotFound: If the specified feedback entry does not exist.
|
|
17539
17539
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
17540
|
-
* BadRequest: If the provided data is invalid
|
|
17540
|
+
* BadRequest: If the provided data is invalid.
|
|
17541
17541
|
* @returns UserChatFeedback
|
|
17542
17542
|
* @throws ApiError
|
|
17543
|
-
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17543
|
+
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
17544
17544
|
* Create a new user chat feedback entry.
|
|
17545
17545
|
*
|
|
17546
17546
|
* Args:
|
|
@@ -17551,11 +17551,11 @@ class AiMentorService{/**
|
|
|
17551
17551
|
* Response: The created feedback entry.
|
|
17552
17552
|
*
|
|
17553
17553
|
* Raises:
|
|
17554
|
-
* BadRequest: If the provided data is invalid
|
|
17555
|
-
*
|
|
17554
|
+
* BadRequest: If the provided data is invalid.
|
|
17555
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
17556
17556
|
* @returns UserChatFeedback
|
|
17557
17557
|
* @throws ApiError
|
|
17558
|
-
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17558
|
+
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
17559
17559
|
* Retrieve available LLMs for a user.
|
|
17560
17560
|
* @returns LLMResponse
|
|
17561
17561
|
* @throws ApiError
|
|
@@ -20136,10 +20136,10 @@ class AiMentorService{/**
|
|
|
20136
20136
|
* Raises:
|
|
20137
20137
|
* NotFound: If the specified feedback entry does not exist.
|
|
20138
20138
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
20139
|
-
* BadRequest: If the provided data is invalid
|
|
20139
|
+
* BadRequest: If the provided data is invalid.
|
|
20140
20140
|
* @returns UserChatFeedback
|
|
20141
20141
|
* @throws ApiError
|
|
20142
|
-
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20142
|
+
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
20143
20143
|
* @deprecated
|
|
20144
20144
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20145
20145
|
*
|
|
@@ -20153,11 +20153,11 @@ class AiMentorService{/**
|
|
|
20153
20153
|
* Response: The created feedback entry.
|
|
20154
20154
|
*
|
|
20155
20155
|
* Raises:
|
|
20156
|
-
* BadRequest: If the provided data is invalid
|
|
20157
|
-
*
|
|
20156
|
+
* BadRequest: If the provided data is invalid.
|
|
20157
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
20158
20158
|
* @returns UserChatFeedback
|
|
20159
20159
|
* @throws ApiError
|
|
20160
|
-
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20160
|
+
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
20161
20161
|
* @deprecated
|
|
20162
20162
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20163
20163
|
*
|
package/dist/index.umd.js
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
const OpenAPI = {
|
|
116
116
|
BASE: 'https://base.manager.iblai.app',
|
|
117
|
-
VERSION: '4.
|
|
117
|
+
VERSION: '4.502.0-ai-plus',
|
|
118
118
|
WITH_CREDENTIALS: false,
|
|
119
119
|
CREDENTIALS: 'include',
|
|
120
120
|
TOKEN: undefined,
|
|
@@ -17543,10 +17543,10 @@
|
|
|
17543
17543
|
* Raises:
|
|
17544
17544
|
* NotFound: If the specified feedback entry does not exist.
|
|
17545
17545
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
17546
|
-
* BadRequest: If the provided data is invalid
|
|
17546
|
+
* BadRequest: If the provided data is invalid.
|
|
17547
17547
|
* @returns UserChatFeedback
|
|
17548
17548
|
* @throws ApiError
|
|
17549
|
-
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17549
|
+
*/static aiMentorOrgsUsersAgentFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
17550
17550
|
* Create a new user chat feedback entry.
|
|
17551
17551
|
*
|
|
17552
17552
|
* Args:
|
|
@@ -17557,11 +17557,11 @@
|
|
|
17557
17557
|
* Response: The created feedback entry.
|
|
17558
17558
|
*
|
|
17559
17559
|
* Raises:
|
|
17560
|
-
* BadRequest: If the provided data is invalid
|
|
17561
|
-
*
|
|
17560
|
+
* BadRequest: If the provided data is invalid.
|
|
17561
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
17562
17562
|
* @returns UserChatFeedback
|
|
17563
17563
|
* @throws ApiError
|
|
17564
|
-
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
17564
|
+
*/static aiMentorOrgsUsersAgentFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
17565
17565
|
* Retrieve available LLMs for a user.
|
|
17566
17566
|
* @returns LLMResponse
|
|
17567
17567
|
* @throws ApiError
|
|
@@ -20142,10 +20142,10 @@
|
|
|
20142
20142
|
* Raises:
|
|
20143
20143
|
* NotFound: If the specified feedback entry does not exist.
|
|
20144
20144
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
20145
|
-
* BadRequest: If the provided data is invalid
|
|
20145
|
+
* BadRequest: If the provided data is invalid.
|
|
20146
20146
|
* @returns UserChatFeedback
|
|
20147
20147
|
* @throws ApiError
|
|
20148
|
-
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20148
|
+
*/static aiMentorOrgsUsersMentorFeedbackUpdate({feedbackId,org,userId,requestBody}){return request(OpenAPI,{method:'PUT',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/{feedback_id}/',path:{'feedback_id':feedbackId,'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,404:`Feedback not found`}});}/**
|
|
20149
20149
|
* @deprecated
|
|
20150
20150
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20151
20151
|
*
|
|
@@ -20159,11 +20159,11 @@
|
|
|
20159
20159
|
* Response: The created feedback entry.
|
|
20160
20160
|
*
|
|
20161
20161
|
* Raises:
|
|
20162
|
-
* BadRequest: If the provided data is invalid
|
|
20163
|
-
*
|
|
20162
|
+
* BadRequest: If the provided data is invalid.
|
|
20163
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
20164
20164
|
* @returns UserChatFeedback
|
|
20165
20165
|
* @throws ApiError
|
|
20166
|
-
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data
|
|
20166
|
+
*/static aiMentorOrgsUsersMentorFeedbackCreateCreate({org,userId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/',path:{'org':org,'user_id':userId},body:requestBody,mediaType:'application/json',errors:{400:`Invalid data`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
|
|
20167
20167
|
* @deprecated
|
|
20168
20168
|
* **Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/` (`mentor` → `agent`) and will be removed in a future release.
|
|
20169
20169
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1183,6 +1183,7 @@ export type { UserChatFeedback } from './models/UserChatFeedback';
|
|
|
1183
1183
|
export type { UserChatFeedbackByMessage } from './models/UserChatFeedbackByMessage';
|
|
1184
1184
|
export type { UserChatFeedbackCount } from './models/UserChatFeedbackCount';
|
|
1185
1185
|
export type { UserChatFeedbackCreateRequest } from './models/UserChatFeedbackCreateRequest';
|
|
1186
|
+
export type { UserChatFeedbackUpdate } from './models/UserChatFeedbackUpdate';
|
|
1186
1187
|
export type { UserChatHistoryFilterData } from './models/UserChatHistoryFilterData';
|
|
1187
1188
|
export type { UserChatMemoryStatusRequestView } from './models/UserChatMemoryStatusRequestView';
|
|
1188
1189
|
export type { UserChatMemoryStatusView } from './models/UserChatMemoryStatusView';
|
|
@@ -11,14 +11,14 @@ export type UserChatFeedback = {
|
|
|
11
11
|
readonly id: number;
|
|
12
12
|
readonly user_email: string | null;
|
|
13
13
|
readonly user_full_name: string | null;
|
|
14
|
-
username: string;
|
|
14
|
+
readonly username: string;
|
|
15
15
|
session: string;
|
|
16
16
|
user_text?: string;
|
|
17
17
|
ai_response?: string;
|
|
18
18
|
reason?: string;
|
|
19
19
|
additional_feedback?: string;
|
|
20
20
|
rating?: (RatingEnum | NullEnum) | null;
|
|
21
|
-
inserted_at
|
|
22
|
-
mentor: number;
|
|
21
|
+
readonly inserted_at: string;
|
|
22
|
+
readonly mentor: number;
|
|
23
23
|
message?: number | null;
|
|
24
24
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { NullEnum } from './NullEnum';
|
|
2
|
+
import type { RatingEnum } from './RatingEnum';
|
|
3
|
+
/**
|
|
4
|
+
* Edit the rating and text of existing feedback; what it rates is fixed.
|
|
5
|
+
*/
|
|
6
|
+
export type UserChatFeedbackUpdate = {
|
|
7
|
+
readonly id: number;
|
|
8
|
+
readonly user_email: string | null;
|
|
9
|
+
readonly user_full_name: string | null;
|
|
10
|
+
readonly username: string;
|
|
11
|
+
readonly session: string;
|
|
12
|
+
user_text?: string;
|
|
13
|
+
ai_response?: string;
|
|
14
|
+
reason?: string;
|
|
15
|
+
additional_feedback?: string;
|
|
16
|
+
rating?: (RatingEnum | NullEnum) | null;
|
|
17
|
+
readonly inserted_at: string;
|
|
18
|
+
readonly mentor: number;
|
|
19
|
+
readonly message: number | null;
|
|
20
|
+
};
|
|
@@ -252,6 +252,7 @@ import type { TriggerResponse } from '../models/TriggerResponse';
|
|
|
252
252
|
import type { UpdateXblock } from '../models/UpdateXblock';
|
|
253
253
|
import type { UserChatFeedback } from '../models/UserChatFeedback';
|
|
254
254
|
import type { UserChatFeedbackCreateRequest } from '../models/UserChatFeedbackCreateRequest';
|
|
255
|
+
import type { UserChatFeedbackUpdate } from '../models/UserChatFeedbackUpdate';
|
|
255
256
|
import type { UserDefaultMentor } from '../models/UserDefaultMentor';
|
|
256
257
|
import type { UserEdxMemory } from '../models/UserEdxMemory';
|
|
257
258
|
import type { UserMentorMemoryCreate } from '../models/UserMentorMemoryCreate';
|
|
@@ -3318,14 +3319,14 @@ export declare class AiMentorService {
|
|
|
3318
3319
|
* Raises:
|
|
3319
3320
|
* NotFound: If the specified feedback entry does not exist.
|
|
3320
3321
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
3321
|
-
* BadRequest: If the provided data is invalid
|
|
3322
|
+
* BadRequest: If the provided data is invalid.
|
|
3322
3323
|
* @returns UserChatFeedback
|
|
3323
3324
|
* @throws ApiError
|
|
3324
3325
|
*/
|
|
3325
3326
|
static aiMentorOrgsUsersAgentFeedbackUpdate({ feedbackId, org, userId, requestBody, }: {
|
|
3326
3327
|
feedbackId: number;
|
|
3327
3328
|
org: string;
|
|
3328
|
-
requestBody
|
|
3329
|
+
requestBody?: UserChatFeedbackUpdate;
|
|
3329
3330
|
}): CancelablePromise<UserChatFeedback>;
|
|
3330
3331
|
/**
|
|
3331
3332
|
* Create a new user chat feedback entry.
|
|
@@ -3338,8 +3339,8 @@ export declare class AiMentorService {
|
|
|
3338
3339
|
* Response: The created feedback entry.
|
|
3339
3340
|
*
|
|
3340
3341
|
* Raises:
|
|
3341
|
-
* BadRequest: If the provided data is invalid
|
|
3342
|
-
*
|
|
3342
|
+
* BadRequest: If the provided data is invalid.
|
|
3343
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
3343
3344
|
* @returns UserChatFeedback
|
|
3344
3345
|
* @throws ApiError
|
|
3345
3346
|
*/
|
|
@@ -7907,14 +7908,14 @@ export declare class AiMentorService {
|
|
|
7907
7908
|
* Raises:
|
|
7908
7909
|
* NotFound: If the specified feedback entry does not exist.
|
|
7909
7910
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
7910
|
-
* BadRequest: If the provided data is invalid
|
|
7911
|
+
* BadRequest: If the provided data is invalid.
|
|
7911
7912
|
* @returns UserChatFeedback
|
|
7912
7913
|
* @throws ApiError
|
|
7913
7914
|
*/
|
|
7914
7915
|
static aiMentorOrgsUsersMentorFeedbackUpdate({ feedbackId, org, userId, requestBody, }: {
|
|
7915
7916
|
feedbackId: number;
|
|
7916
7917
|
org: string;
|
|
7917
|
-
requestBody
|
|
7918
|
+
requestBody?: UserChatFeedbackUpdate;
|
|
7918
7919
|
}): CancelablePromise<UserChatFeedback>;
|
|
7919
7920
|
/**
|
|
7920
7921
|
* @deprecated
|
|
@@ -7930,8 +7931,8 @@ export declare class AiMentorService {
|
|
|
7930
7931
|
* Response: The created feedback entry.
|
|
7931
7932
|
*
|
|
7932
7933
|
* Raises:
|
|
7933
|
-
* BadRequest: If the provided data is invalid
|
|
7934
|
-
*
|
|
7934
|
+
* BadRequest: If the provided data is invalid.
|
|
7935
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
7935
7936
|
* @returns UserChatFeedback
|
|
7936
7937
|
* @throws ApiError
|
|
7937
7938
|
*/
|
package/package.json
CHANGED
package/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.502.0-ai-plus
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/api/ai-account/connected-services/callback/:
|
|
@@ -19274,7 +19274,6 @@ paths:
|
|
|
19274
19274
|
- ai-mentor
|
|
19275
19275
|
security:
|
|
19276
19276
|
- PlatformApiKeyAuthentication: []
|
|
19277
|
-
- {}
|
|
19278
19277
|
responses:
|
|
19279
19278
|
'200':
|
|
19280
19279
|
content:
|
|
@@ -19300,7 +19299,7 @@ paths:
|
|
|
19300
19299
|
description: Feedback not found
|
|
19301
19300
|
put:
|
|
19302
19301
|
operationId: ai_mentor_orgs_users_agent_feedback_update
|
|
19303
|
-
description: "Update an existing user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the updated feedback data.\n org: The organization/tenant identifier.\n feedback_id: The ID of the feedback entry to update.\n\nReturns:\n Response: The updated feedback entry.\n\nRaises:\n NotFound: If the specified feedback entry does not exist.\n Forbidden: If the user doesn't have permission to update this feedback.\n BadRequest: If the provided data is invalid
|
|
19302
|
+
description: "Update an existing user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the updated feedback data.\n org: The organization/tenant identifier.\n feedback_id: The ID of the feedback entry to update.\n\nReturns:\n Response: The updated feedback entry.\n\nRaises:\n NotFound: If the specified feedback entry does not exist.\n Forbidden: If the user doesn't have permission to update this feedback.\n BadRequest: If the provided data is invalid."
|
|
19304
19303
|
parameters:
|
|
19305
19304
|
- in: path
|
|
19306
19305
|
name: feedback_id
|
|
@@ -19323,36 +19322,30 @@ paths:
|
|
|
19323
19322
|
content:
|
|
19324
19323
|
application/json:
|
|
19325
19324
|
schema:
|
|
19326
|
-
$ref: '#/components/schemas/
|
|
19325
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
19327
19326
|
examples:
|
|
19328
19327
|
UpdateFeedbackRequestExample:
|
|
19329
19328
|
value:
|
|
19330
|
-
username: johndoe
|
|
19331
|
-
session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
|
|
19332
19329
|
user_text: Who is Marc H. Supcoff
|
|
19333
19330
|
ai_response: Marc H. Supcoff is an Adjunct Professor of Law
|
|
19334
19331
|
reason: Good reason
|
|
19335
19332
|
additional_feedback: Good response
|
|
19336
19333
|
rating: 1
|
|
19337
|
-
mentor: ai-mentor
|
|
19338
|
-
message: 3
|
|
19339
19334
|
summary: Update Feedback Request Example
|
|
19340
19335
|
application/scim+json:
|
|
19341
19336
|
schema:
|
|
19342
|
-
$ref: '#/components/schemas/
|
|
19337
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
19343
19338
|
application/x-www-form-urlencoded:
|
|
19344
19339
|
schema:
|
|
19345
|
-
$ref: '#/components/schemas/
|
|
19340
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
19346
19341
|
multipart/form-data:
|
|
19347
19342
|
schema:
|
|
19348
|
-
$ref: '#/components/schemas/
|
|
19343
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
19349
19344
|
'*/*':
|
|
19350
19345
|
schema:
|
|
19351
|
-
$ref: '#/components/schemas/
|
|
19352
|
-
required: true
|
|
19346
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
19353
19347
|
security:
|
|
19354
19348
|
- PlatformApiKeyAuthentication: []
|
|
19355
|
-
- {}
|
|
19356
19349
|
responses:
|
|
19357
19350
|
'200':
|
|
19358
19351
|
content:
|
|
@@ -19375,13 +19368,13 @@ paths:
|
|
|
19375
19368
|
summary: Update Feedback Response Example
|
|
19376
19369
|
description: ''
|
|
19377
19370
|
'400':
|
|
19378
|
-
description: Invalid data
|
|
19371
|
+
description: Invalid data
|
|
19379
19372
|
'404':
|
|
19380
19373
|
description: Feedback not found
|
|
19381
19374
|
/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/:
|
|
19382
19375
|
post:
|
|
19383
19376
|
operationId: ai_mentor_orgs_users_agent_feedback_create_create
|
|
19384
|
-
description: "Create a new user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the feedback data.\n org: The organization/tenant identifier.\n\nReturns:\n Response: The created feedback entry.\n\nRaises:\n BadRequest: If the provided data is invalid
|
|
19377
|
+
description: "Create a new user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the feedback data.\n org: The organization/tenant identifier.\n\nReturns:\n Response: The created feedback entry.\n\nRaises:\n BadRequest: If the provided data is invalid.\n NotFound: If the session is not one the caller may rate in."
|
|
19385
19378
|
parameters:
|
|
19386
19379
|
- in: path
|
|
19387
19380
|
name: org
|
|
@@ -19411,14 +19404,12 @@ paths:
|
|
|
19411
19404
|
summary: Rate A Stored Message Request Example
|
|
19412
19405
|
CreateFeedbackRequestExample:
|
|
19413
19406
|
value:
|
|
19414
|
-
username: johndoe
|
|
19415
19407
|
session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
|
|
19416
19408
|
user_text: Who is Marc H. Supcoff
|
|
19417
19409
|
ai_response: Marc H. Supcoff is an Adjunct Professor of Law
|
|
19418
19410
|
reason: Good reason
|
|
19419
19411
|
additional_feedback: Good response
|
|
19420
19412
|
rating: 1
|
|
19421
|
-
mentor: ai-mentor
|
|
19422
19413
|
message: 3
|
|
19423
19414
|
summary: Create Feedback Request Example
|
|
19424
19415
|
application/scim+json:
|
|
@@ -19435,7 +19426,6 @@ paths:
|
|
|
19435
19426
|
$ref: '#/components/schemas/UserChatFeedbackCreateRequest'
|
|
19436
19427
|
security:
|
|
19437
19428
|
- PlatformApiKeyAuthentication: []
|
|
19438
|
-
- {}
|
|
19439
19429
|
responses:
|
|
19440
19430
|
'200':
|
|
19441
19431
|
content:
|
|
@@ -19478,7 +19468,7 @@ paths:
|
|
|
19478
19468
|
summary: Create Feedback Response Example
|
|
19479
19469
|
description: ''
|
|
19480
19470
|
'400':
|
|
19481
|
-
description: Invalid data
|
|
19471
|
+
description: Invalid data
|
|
19482
19472
|
'403':
|
|
19483
19473
|
description: Not allowed to rate this message
|
|
19484
19474
|
'404':
|
|
@@ -30382,7 +30372,6 @@ paths:
|
|
|
30382
30372
|
- ai-mentor
|
|
30383
30373
|
security:
|
|
30384
30374
|
- PlatformApiKeyAuthentication: []
|
|
30385
|
-
- {}
|
|
30386
30375
|
responses:
|
|
30387
30376
|
'200':
|
|
30388
30377
|
content:
|
|
@@ -30409,7 +30398,7 @@ paths:
|
|
|
30409
30398
|
deprecated: true
|
|
30410
30399
|
put:
|
|
30411
30400
|
operationId: ai_mentor_orgs_users_mentor_feedback_update
|
|
30412
|
-
description: "**Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/` (`mentor` → `agent`) and will be removed in a future release.\n\nUpdate an existing user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the updated feedback data.\n org: The organization/tenant identifier.\n feedback_id: The ID of the feedback entry to update.\n\nReturns:\n Response: The updated feedback entry.\n\nRaises:\n NotFound: If the specified feedback entry does not exist.\n Forbidden: If the user doesn't have permission to update this feedback.\n BadRequest: If the provided data is invalid
|
|
30401
|
+
description: "**Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/{feedback_id}/` (`mentor` → `agent`) and will be removed in a future release.\n\nUpdate an existing user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the updated feedback data.\n org: The organization/tenant identifier.\n feedback_id: The ID of the feedback entry to update.\n\nReturns:\n Response: The updated feedback entry.\n\nRaises:\n NotFound: If the specified feedback entry does not exist.\n Forbidden: If the user doesn't have permission to update this feedback.\n BadRequest: If the provided data is invalid."
|
|
30413
30402
|
parameters:
|
|
30414
30403
|
- in: path
|
|
30415
30404
|
name: feedback_id
|
|
@@ -30432,36 +30421,30 @@ paths:
|
|
|
30432
30421
|
content:
|
|
30433
30422
|
application/json:
|
|
30434
30423
|
schema:
|
|
30435
|
-
$ref: '#/components/schemas/
|
|
30424
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
30436
30425
|
examples:
|
|
30437
30426
|
UpdateFeedbackRequestExample:
|
|
30438
30427
|
value:
|
|
30439
|
-
username: johndoe
|
|
30440
|
-
session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
|
|
30441
30428
|
user_text: Who is Marc H. Supcoff
|
|
30442
30429
|
ai_response: Marc H. Supcoff is an Adjunct Professor of Law
|
|
30443
30430
|
reason: Good reason
|
|
30444
30431
|
additional_feedback: Good response
|
|
30445
30432
|
rating: 1
|
|
30446
|
-
mentor: ai-mentor
|
|
30447
|
-
message: 3
|
|
30448
30433
|
summary: Update Feedback Request Example
|
|
30449
30434
|
application/scim+json:
|
|
30450
30435
|
schema:
|
|
30451
|
-
$ref: '#/components/schemas/
|
|
30436
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
30452
30437
|
application/x-www-form-urlencoded:
|
|
30453
30438
|
schema:
|
|
30454
|
-
$ref: '#/components/schemas/
|
|
30439
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
30455
30440
|
multipart/form-data:
|
|
30456
30441
|
schema:
|
|
30457
|
-
$ref: '#/components/schemas/
|
|
30442
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
30458
30443
|
'*/*':
|
|
30459
30444
|
schema:
|
|
30460
|
-
$ref: '#/components/schemas/
|
|
30461
|
-
required: true
|
|
30445
|
+
$ref: '#/components/schemas/UserChatFeedbackUpdate'
|
|
30462
30446
|
security:
|
|
30463
30447
|
- PlatformApiKeyAuthentication: []
|
|
30464
|
-
- {}
|
|
30465
30448
|
responses:
|
|
30466
30449
|
'200':
|
|
30467
30450
|
content:
|
|
@@ -30484,14 +30467,14 @@ paths:
|
|
|
30484
30467
|
summary: Update Feedback Response Example
|
|
30485
30468
|
description: ''
|
|
30486
30469
|
'400':
|
|
30487
|
-
description: Invalid data
|
|
30470
|
+
description: Invalid data
|
|
30488
30471
|
'404':
|
|
30489
30472
|
description: Feedback not found
|
|
30490
30473
|
deprecated: true
|
|
30491
30474
|
/api/ai-mentor/orgs/{org}/users/{user_id}/mentor-feedback/create/:
|
|
30492
30475
|
post:
|
|
30493
30476
|
operationId: ai_mentor_orgs_users_mentor_feedback_create_create
|
|
30494
|
-
description: "**Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` (`mentor` → `agent`) and will be removed in a future release.\n\nCreate a new user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the feedback data.\n org: The organization/tenant identifier.\n\nReturns:\n Response: The created feedback entry.\n\nRaises:\n BadRequest: If the provided data is invalid
|
|
30477
|
+
description: "**Deprecated — use `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/users/{user_id}/agent-feedback/create/` (`mentor` → `agent`) and will be removed in a future release.\n\nCreate a new user chat feedback entry.\n\nArgs:\n request: The HTTP request containing the feedback data.\n org: The organization/tenant identifier.\n\nReturns:\n Response: The created feedback entry.\n\nRaises:\n BadRequest: If the provided data is invalid.\n NotFound: If the session is not one the caller may rate in."
|
|
30495
30478
|
parameters:
|
|
30496
30479
|
- in: path
|
|
30497
30480
|
name: org
|
|
@@ -30521,14 +30504,12 @@ paths:
|
|
|
30521
30504
|
summary: Rate A Stored Message Request Example
|
|
30522
30505
|
CreateFeedbackRequestExample:
|
|
30523
30506
|
value:
|
|
30524
|
-
username: johndoe
|
|
30525
30507
|
session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
|
|
30526
30508
|
user_text: Who is Marc H. Supcoff
|
|
30527
30509
|
ai_response: Marc H. Supcoff is an Adjunct Professor of Law
|
|
30528
30510
|
reason: Good reason
|
|
30529
30511
|
additional_feedback: Good response
|
|
30530
30512
|
rating: 1
|
|
30531
|
-
mentor: ai-mentor
|
|
30532
30513
|
message: 3
|
|
30533
30514
|
summary: Create Feedback Request Example
|
|
30534
30515
|
application/scim+json:
|
|
@@ -30545,7 +30526,6 @@ paths:
|
|
|
30545
30526
|
$ref: '#/components/schemas/UserChatFeedbackCreateRequest'
|
|
30546
30527
|
security:
|
|
30547
30528
|
- PlatformApiKeyAuthentication: []
|
|
30548
|
-
- {}
|
|
30549
30529
|
responses:
|
|
30550
30530
|
'200':
|
|
30551
30531
|
content:
|
|
@@ -30588,7 +30568,7 @@ paths:
|
|
|
30588
30568
|
summary: Create Feedback Response Example
|
|
30589
30569
|
description: ''
|
|
30590
30570
|
'400':
|
|
30591
|
-
description: Invalid data
|
|
30571
|
+
description: Invalid data
|
|
30592
30572
|
'403':
|
|
30593
30573
|
description: Not allowed to rate this message
|
|
30594
30574
|
'404':
|
|
@@ -131006,6 +130986,7 @@ components:
|
|
|
131006
130986
|
readOnly: true
|
|
131007
130987
|
username:
|
|
131008
130988
|
type: string
|
|
130989
|
+
readOnly: true
|
|
131009
130990
|
session:
|
|
131010
130991
|
type: string
|
|
131011
130992
|
user_text:
|
|
@@ -131026,13 +131007,16 @@ components:
|
|
|
131026
131007
|
inserted_at:
|
|
131027
131008
|
type: string
|
|
131028
131009
|
format: date-time
|
|
131010
|
+
readOnly: true
|
|
131029
131011
|
mentor:
|
|
131030
131012
|
type: integer
|
|
131013
|
+
readOnly: true
|
|
131031
131014
|
message:
|
|
131032
131015
|
type: integer
|
|
131033
131016
|
nullable: true
|
|
131034
131017
|
required:
|
|
131035
131018
|
- id
|
|
131019
|
+
- inserted_at
|
|
131036
131020
|
- mentor
|
|
131037
131021
|
- session
|
|
131038
131022
|
- user_email
|
|
@@ -131083,6 +131067,63 @@ components:
|
|
|
131083
131067
|
oneOf:
|
|
131084
131068
|
- $ref: '#/components/schemas/UserChatFeedbackByMessage'
|
|
131085
131069
|
- $ref: '#/components/schemas/UserChatFeedback'
|
|
131070
|
+
UserChatFeedbackUpdate:
|
|
131071
|
+
type: object
|
|
131072
|
+
description: Edit the rating and text of existing feedback; what it rates is fixed.
|
|
131073
|
+
properties:
|
|
131074
|
+
id:
|
|
131075
|
+
type: integer
|
|
131076
|
+
readOnly: true
|
|
131077
|
+
user_email:
|
|
131078
|
+
type: string
|
|
131079
|
+
format: email
|
|
131080
|
+
nullable: true
|
|
131081
|
+
readOnly: true
|
|
131082
|
+
user_full_name:
|
|
131083
|
+
type: string
|
|
131084
|
+
nullable: true
|
|
131085
|
+
readOnly: true
|
|
131086
|
+
username:
|
|
131087
|
+
type: string
|
|
131088
|
+
readOnly: true
|
|
131089
|
+
session:
|
|
131090
|
+
type: string
|
|
131091
|
+
readOnly: true
|
|
131092
|
+
user_text:
|
|
131093
|
+
type: string
|
|
131094
|
+
ai_response:
|
|
131095
|
+
type: string
|
|
131096
|
+
reason:
|
|
131097
|
+
type: string
|
|
131098
|
+
additional_feedback:
|
|
131099
|
+
type: string
|
|
131100
|
+
rating:
|
|
131101
|
+
nullable: true
|
|
131102
|
+
maximum: 1
|
|
131103
|
+
minimum: -1
|
|
131104
|
+
oneOf:
|
|
131105
|
+
- $ref: '#/components/schemas/RatingEnum'
|
|
131106
|
+
- $ref: '#/components/schemas/NullEnum'
|
|
131107
|
+
inserted_at:
|
|
131108
|
+
type: string
|
|
131109
|
+
format: date-time
|
|
131110
|
+
readOnly: true
|
|
131111
|
+
mentor:
|
|
131112
|
+
type: integer
|
|
131113
|
+
readOnly: true
|
|
131114
|
+
message:
|
|
131115
|
+
type: integer
|
|
131116
|
+
readOnly: true
|
|
131117
|
+
nullable: true
|
|
131118
|
+
required:
|
|
131119
|
+
- id
|
|
131120
|
+
- inserted_at
|
|
131121
|
+
- mentor
|
|
131122
|
+
- message
|
|
131123
|
+
- session
|
|
131124
|
+
- user_email
|
|
131125
|
+
- user_full_name
|
|
131126
|
+
- username
|
|
131086
131127
|
UserChatHistoryFilterData:
|
|
131087
131128
|
type: object
|
|
131088
131129
|
description: Filter options for user-scoped chat history (no users field - always self).
|
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1188,6 +1188,7 @@ export type { UserChatFeedback } from './models/UserChatFeedback';
|
|
|
1188
1188
|
export type { UserChatFeedbackByMessage } from './models/UserChatFeedbackByMessage';
|
|
1189
1189
|
export type { UserChatFeedbackCount } from './models/UserChatFeedbackCount';
|
|
1190
1190
|
export type { UserChatFeedbackCreateRequest } from './models/UserChatFeedbackCreateRequest';
|
|
1191
|
+
export type { UserChatFeedbackUpdate } from './models/UserChatFeedbackUpdate';
|
|
1191
1192
|
export type { UserChatHistoryFilterData } from './models/UserChatHistoryFilterData';
|
|
1192
1193
|
export type { UserChatMemoryStatusRequestView } from './models/UserChatMemoryStatusRequestView';
|
|
1193
1194
|
export type { UserChatMemoryStatusView } from './models/UserChatMemoryStatusView';
|
|
@@ -15,15 +15,15 @@ export type UserChatFeedback = {
|
|
|
15
15
|
readonly id: number;
|
|
16
16
|
readonly user_email: string | null;
|
|
17
17
|
readonly user_full_name: string | null;
|
|
18
|
-
username: string;
|
|
18
|
+
readonly username: string;
|
|
19
19
|
session: string;
|
|
20
20
|
user_text?: string;
|
|
21
21
|
ai_response?: string;
|
|
22
22
|
reason?: string;
|
|
23
23
|
additional_feedback?: string;
|
|
24
24
|
rating?: (RatingEnum | NullEnum) | null;
|
|
25
|
-
inserted_at
|
|
26
|
-
mentor: number;
|
|
25
|
+
readonly inserted_at: string;
|
|
26
|
+
readonly mentor: number;
|
|
27
27
|
message?: number | null;
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { NullEnum } from './NullEnum';
|
|
6
|
+
import type { RatingEnum } from './RatingEnum';
|
|
7
|
+
/**
|
|
8
|
+
* Edit the rating and text of existing feedback; what it rates is fixed.
|
|
9
|
+
*/
|
|
10
|
+
export type UserChatFeedbackUpdate = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
readonly user_email: string | null;
|
|
13
|
+
readonly user_full_name: string | null;
|
|
14
|
+
readonly username: string;
|
|
15
|
+
readonly session: string;
|
|
16
|
+
user_text?: string;
|
|
17
|
+
ai_response?: string;
|
|
18
|
+
reason?: string;
|
|
19
|
+
additional_feedback?: string;
|
|
20
|
+
rating?: (RatingEnum | NullEnum) | null;
|
|
21
|
+
readonly inserted_at: string;
|
|
22
|
+
readonly mentor: number;
|
|
23
|
+
readonly message: number | null;
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -256,6 +256,7 @@ import type { TriggerResponse } from '../models/TriggerResponse';
|
|
|
256
256
|
import type { UpdateXblock } from '../models/UpdateXblock';
|
|
257
257
|
import type { UserChatFeedback } from '../models/UserChatFeedback';
|
|
258
258
|
import type { UserChatFeedbackCreateRequest } from '../models/UserChatFeedbackCreateRequest';
|
|
259
|
+
import type { UserChatFeedbackUpdate } from '../models/UserChatFeedbackUpdate';
|
|
259
260
|
import type { UserDefaultMentor } from '../models/UserDefaultMentor';
|
|
260
261
|
import type { UserEdxMemory } from '../models/UserEdxMemory';
|
|
261
262
|
import type { UserMentorMemoryCreate } from '../models/UserMentorMemoryCreate';
|
|
@@ -6609,7 +6610,7 @@ export class AiMentorService {
|
|
|
6609
6610
|
* Raises:
|
|
6610
6611
|
* NotFound: If the specified feedback entry does not exist.
|
|
6611
6612
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
6612
|
-
* BadRequest: If the provided data is invalid
|
|
6613
|
+
* BadRequest: If the provided data is invalid.
|
|
6613
6614
|
* @returns UserChatFeedback
|
|
6614
6615
|
* @throws ApiError
|
|
6615
6616
|
*/
|
|
@@ -6622,7 +6623,7 @@ export class AiMentorService {
|
|
|
6622
6623
|
feedbackId: number,
|
|
6623
6624
|
org: string,
|
|
6624
6625
|
userId: string,
|
|
6625
|
-
requestBody
|
|
6626
|
+
requestBody?: UserChatFeedbackUpdate,
|
|
6626
6627
|
}): CancelablePromise<UserChatFeedback> {
|
|
6627
6628
|
return __request(OpenAPI, {
|
|
6628
6629
|
method: 'PUT',
|
|
@@ -6635,7 +6636,7 @@ export class AiMentorService {
|
|
|
6635
6636
|
body: requestBody,
|
|
6636
6637
|
mediaType: 'application/json',
|
|
6637
6638
|
errors: {
|
|
6638
|
-
400: `Invalid data
|
|
6639
|
+
400: `Invalid data`,
|
|
6639
6640
|
404: `Feedback not found`,
|
|
6640
6641
|
},
|
|
6641
6642
|
});
|
|
@@ -6651,8 +6652,8 @@ export class AiMentorService {
|
|
|
6651
6652
|
* Response: The created feedback entry.
|
|
6652
6653
|
*
|
|
6653
6654
|
* Raises:
|
|
6654
|
-
* BadRequest: If the provided data is invalid
|
|
6655
|
-
*
|
|
6655
|
+
* BadRequest: If the provided data is invalid.
|
|
6656
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
6656
6657
|
* @returns UserChatFeedback
|
|
6657
6658
|
* @throws ApiError
|
|
6658
6659
|
*/
|
|
@@ -6675,7 +6676,7 @@ export class AiMentorService {
|
|
|
6675
6676
|
body: requestBody,
|
|
6676
6677
|
mediaType: 'application/json',
|
|
6677
6678
|
errors: {
|
|
6678
|
-
400: `Invalid data
|
|
6679
|
+
400: `Invalid data`,
|
|
6679
6680
|
403: `Not allowed to rate this message`,
|
|
6680
6681
|
404: `Session or message not found`,
|
|
6681
6682
|
},
|
|
@@ -15672,7 +15673,7 @@ export class AiMentorService {
|
|
|
15672
15673
|
* Raises:
|
|
15673
15674
|
* NotFound: If the specified feedback entry does not exist.
|
|
15674
15675
|
* Forbidden: If the user doesn't have permission to update this feedback.
|
|
15675
|
-
* BadRequest: If the provided data is invalid
|
|
15676
|
+
* BadRequest: If the provided data is invalid.
|
|
15676
15677
|
* @returns UserChatFeedback
|
|
15677
15678
|
* @throws ApiError
|
|
15678
15679
|
*/
|
|
@@ -15685,7 +15686,7 @@ export class AiMentorService {
|
|
|
15685
15686
|
feedbackId: number,
|
|
15686
15687
|
org: string,
|
|
15687
15688
|
userId: string,
|
|
15688
|
-
requestBody
|
|
15689
|
+
requestBody?: UserChatFeedbackUpdate,
|
|
15689
15690
|
}): CancelablePromise<UserChatFeedback> {
|
|
15690
15691
|
return __request(OpenAPI, {
|
|
15691
15692
|
method: 'PUT',
|
|
@@ -15698,7 +15699,7 @@ export class AiMentorService {
|
|
|
15698
15699
|
body: requestBody,
|
|
15699
15700
|
mediaType: 'application/json',
|
|
15700
15701
|
errors: {
|
|
15701
|
-
400: `Invalid data
|
|
15702
|
+
400: `Invalid data`,
|
|
15702
15703
|
404: `Feedback not found`,
|
|
15703
15704
|
},
|
|
15704
15705
|
});
|
|
@@ -15717,8 +15718,8 @@ export class AiMentorService {
|
|
|
15717
15718
|
* Response: The created feedback entry.
|
|
15718
15719
|
*
|
|
15719
15720
|
* Raises:
|
|
15720
|
-
* BadRequest: If the provided data is invalid
|
|
15721
|
-
*
|
|
15721
|
+
* BadRequest: If the provided data is invalid.
|
|
15722
|
+
* NotFound: If the session is not one the caller may rate in.
|
|
15722
15723
|
* @returns UserChatFeedback
|
|
15723
15724
|
* @throws ApiError
|
|
15724
15725
|
*/
|
|
@@ -15741,7 +15742,7 @@ export class AiMentorService {
|
|
|
15741
15742
|
body: requestBody,
|
|
15742
15743
|
mediaType: 'application/json',
|
|
15743
15744
|
errors: {
|
|
15744
|
-
400: `Invalid data
|
|
15745
|
+
400: `Invalid data`,
|
|
15745
15746
|
403: `Not allowed to rate this message`,
|
|
15746
15747
|
404: `Session or message not found`,
|
|
15747
15748
|
},
|