@iblai/iblai-api 4.118.0-ai → 4.118.1-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 +1 -99
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -99
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -99
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/services/AiMentorService.d.ts +0 -79
- package/package.json +1 -1
- package/sdk_schema.yml +1 -194
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +0 -2
- package/src/services/AiMentorService.ts +0 -154
- package/dist/types/models/RecommendCourseBlock.d.ts +0 -3
- package/dist/types/models/RecommendCourseResponse.d.ts +0 -3
- package/src/models/RecommendCourseBlock.ts +0 -8
- package/src/models/RecommendCourseResponse.ts +0 -8
|
@@ -138,8 +138,6 @@ import type { QuestionCardTag } from '../models/QuestionCardTag';
|
|
|
138
138
|
import type { QuestionRequest } from '../models/QuestionRequest';
|
|
139
139
|
import type { QuestionResponse } from '../models/QuestionResponse';
|
|
140
140
|
import type { RecentlyAccessedMentor } from '../models/RecentlyAccessedMentor';
|
|
141
|
-
import type { RecommendCourseBlock } from '../models/RecommendCourseBlock';
|
|
142
|
-
import type { RecommendCourseResponse } from '../models/RecommendCourseResponse';
|
|
143
141
|
import type { RelatedText } from '../models/RelatedText';
|
|
144
142
|
import type { RemoveMentorFromDisclaimer } from '../models/RemoveMentorFromDisclaimer';
|
|
145
143
|
import type { RetrieveTask } from '../models/RetrieveTask';
|
|
@@ -11061,158 +11059,6 @@ export class AiMentorService {
|
|
|
11061
11059
|
});
|
|
11062
11060
|
}
|
|
11063
11061
|
/**
|
|
11064
|
-
* Retrieve recommended courses for a specific user.
|
|
11065
|
-
*
|
|
11066
|
-
* Args:
|
|
11067
|
-
* request: The HTTP request containing query parameters.
|
|
11068
|
-
* org: The organization/tenant identifier.
|
|
11069
|
-
* user_id: The ID of the user to get recommendations for.
|
|
11070
|
-
*
|
|
11071
|
-
* Returns:
|
|
11072
|
-
* Response: A list of recommended courses.
|
|
11073
|
-
*
|
|
11074
|
-
* Raises:
|
|
11075
|
-
* BadRequest: If the query parameters are invalid.
|
|
11076
|
-
* NotFound: If the OpenAI API key for the tenant is not found.
|
|
11077
|
-
* TooManyRequests: If rate limits are exceeded.
|
|
11078
|
-
* ServerError: If there's an error processing the AI response.
|
|
11079
|
-
* @returns RecommendCourseResponse
|
|
11080
|
-
* @throws ApiError
|
|
11081
|
-
*/
|
|
11082
|
-
public static aiMentorOrgsUsersRecommendCoursesRetrieve({
|
|
11083
|
-
org,
|
|
11084
|
-
userId,
|
|
11085
|
-
includeLearnerSkills = true,
|
|
11086
|
-
includeMainCourses = true,
|
|
11087
|
-
rankByDifficulty = false,
|
|
11088
|
-
returnCourseData = false,
|
|
11089
|
-
returnNumber,
|
|
11090
|
-
searchTerms,
|
|
11091
|
-
}: {
|
|
11092
|
-
org: string,
|
|
11093
|
-
userId: string,
|
|
11094
|
-
/**
|
|
11095
|
-
* Include available learner skills for search
|
|
11096
|
-
*/
|
|
11097
|
-
includeLearnerSkills?: boolean,
|
|
11098
|
-
/**
|
|
11099
|
-
* Include courses from the main tenant
|
|
11100
|
-
*/
|
|
11101
|
-
includeMainCourses?: boolean,
|
|
11102
|
-
/**
|
|
11103
|
-
* Rank by course difficulty
|
|
11104
|
-
*/
|
|
11105
|
-
rankByDifficulty?: boolean,
|
|
11106
|
-
/**
|
|
11107
|
-
* Return course data
|
|
11108
|
-
*/
|
|
11109
|
-
returnCourseData?: boolean,
|
|
11110
|
-
/**
|
|
11111
|
-
* Number of courses to return
|
|
11112
|
-
*/
|
|
11113
|
-
returnNumber?: number,
|
|
11114
|
-
/**
|
|
11115
|
-
* Terms to be searched
|
|
11116
|
-
*/
|
|
11117
|
-
searchTerms?: string,
|
|
11118
|
-
}): CancelablePromise<RecommendCourseResponse> {
|
|
11119
|
-
return __request(OpenAPI, {
|
|
11120
|
-
method: 'GET',
|
|
11121
|
-
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/recommend-courses/',
|
|
11122
|
-
path: {
|
|
11123
|
-
'org': org,
|
|
11124
|
-
'user_id': userId,
|
|
11125
|
-
},
|
|
11126
|
-
query: {
|
|
11127
|
-
'include_learner_skills': includeLearnerSkills,
|
|
11128
|
-
'include_main_courses': includeMainCourses,
|
|
11129
|
-
'rank_by_difficulty': rankByDifficulty,
|
|
11130
|
-
'return_course_data': returnCourseData,
|
|
11131
|
-
'return_number': returnNumber,
|
|
11132
|
-
'search_terms': searchTerms,
|
|
11133
|
-
},
|
|
11134
|
-
errors: {
|
|
11135
|
-
400: `Invalid query parameters`,
|
|
11136
|
-
404: `API key not found`,
|
|
11137
|
-
429: `Rate limit exceeded`,
|
|
11138
|
-
500: `Server error processing AI response`,
|
|
11139
|
-
},
|
|
11140
|
-
});
|
|
11141
|
-
}
|
|
11142
|
-
/**
|
|
11143
|
-
* Retrieve recommended course blocks for a specific user.
|
|
11144
|
-
*
|
|
11145
|
-
* Args:
|
|
11146
|
-
* request: The HTTP request containing query parameters.
|
|
11147
|
-
* org: The organization/tenant identifier.
|
|
11148
|
-
* user_id: The ID of the user to get recommendations for.
|
|
11149
|
-
*
|
|
11150
|
-
* Returns:
|
|
11151
|
-
* Response: A list of recommended course blocks.
|
|
11152
|
-
*
|
|
11153
|
-
* Raises:
|
|
11154
|
-
* BadRequest: If the query parameters are invalid.
|
|
11155
|
-
* @returns RecommendCourseBlock
|
|
11156
|
-
* @throws ApiError
|
|
11157
|
-
*/
|
|
11158
|
-
public static aiMentorOrgsUsersRecommendCoursesBlockRetrieve({
|
|
11159
|
-
org,
|
|
11160
|
-
userId,
|
|
11161
|
-
includeLearnerSkills = true,
|
|
11162
|
-
includeMainCourses = true,
|
|
11163
|
-
rankByDifficulty = false,
|
|
11164
|
-
returnCourseData = false,
|
|
11165
|
-
returnNumber,
|
|
11166
|
-
searchTerms,
|
|
11167
|
-
}: {
|
|
11168
|
-
org: string,
|
|
11169
|
-
userId: string,
|
|
11170
|
-
/**
|
|
11171
|
-
* Include available learner skills for search
|
|
11172
|
-
*/
|
|
11173
|
-
includeLearnerSkills?: boolean,
|
|
11174
|
-
/**
|
|
11175
|
-
* Include courses from the main tenant
|
|
11176
|
-
*/
|
|
11177
|
-
includeMainCourses?: boolean,
|
|
11178
|
-
/**
|
|
11179
|
-
* Rank by course difficulty
|
|
11180
|
-
*/
|
|
11181
|
-
rankByDifficulty?: boolean,
|
|
11182
|
-
/**
|
|
11183
|
-
* Return course data
|
|
11184
|
-
*/
|
|
11185
|
-
returnCourseData?: boolean,
|
|
11186
|
-
/**
|
|
11187
|
-
* Number of courses to return
|
|
11188
|
-
*/
|
|
11189
|
-
returnNumber?: number,
|
|
11190
|
-
/**
|
|
11191
|
-
* Terms to be searched
|
|
11192
|
-
*/
|
|
11193
|
-
searchTerms?: string,
|
|
11194
|
-
}): CancelablePromise<RecommendCourseBlock> {
|
|
11195
|
-
return __request(OpenAPI, {
|
|
11196
|
-
method: 'GET',
|
|
11197
|
-
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/recommend-courses-block/',
|
|
11198
|
-
path: {
|
|
11199
|
-
'org': org,
|
|
11200
|
-
'user_id': userId,
|
|
11201
|
-
},
|
|
11202
|
-
query: {
|
|
11203
|
-
'include_learner_skills': includeLearnerSkills,
|
|
11204
|
-
'include_main_courses': includeMainCourses,
|
|
11205
|
-
'rank_by_difficulty': rankByDifficulty,
|
|
11206
|
-
'return_course_data': returnCourseData,
|
|
11207
|
-
'return_number': returnNumber,
|
|
11208
|
-
'search_terms': searchTerms,
|
|
11209
|
-
},
|
|
11210
|
-
errors: {
|
|
11211
|
-
400: `Invalid query parameters`,
|
|
11212
|
-
},
|
|
11213
|
-
});
|
|
11214
|
-
}
|
|
11215
|
-
/**
|
|
11216
11062
|
* Search for web resources based on a query.
|
|
11217
11063
|
*
|
|
11218
11064
|
* Args:
|