@iblai/iblai-api 4.90.2-ai → 4.90.3-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.
@@ -28,9 +28,14 @@ export class AiSearchService {
28
28
  * - Personalized results
29
29
  * - Access to tenant-specific mentors
30
30
  *
31
+ * **Required Parameters (Authenticated Users):**
32
+ * - `platform_key` OR `tenant`: Platform key for RBAC enforcement (required for authenticated requests)
33
+ * - Use `platform_key` (preferred) or `tenant` (backward compatibility) - both serve the same purpose
34
+ * - If both are provided, `platform_key` takes precedence
35
+ *
31
36
  * **Available Filters:**
32
37
  * - `query`: Search term to filter mentors by name or description
33
- * - `tenant`: Filter by tenant/organization platform key(s)
38
+ * - `tenant`: Filter by tenant/organization platform key(s) - can also be used as alias for `platform_key` (backward compatibility)
34
39
  * - `category`: Filter by mentor category (comma-separated)
35
40
  * - `subjects`: Filter by mentor subject (comma-separated)
36
41
  * - `types`: Filter by mentor type (comma-separated)
@@ -47,30 +52,27 @@ export class AiSearchService {
47
52
  * Notes:
48
53
  * - Detail view is removed; use the ibl_ai_mentor app for mentor details
49
54
  * - include_main_public_mentors=true shows only VIEWABLE_BY_ANYONE mentors from the main tenant across tenants
50
- * - For authenticated requests, platform_key is required when username is provided
55
+ * - For authenticated requests, either `platform_key` or `tenant` is required when username is provided
56
+ * - `tenant` parameter serves dual purpose: as a filter for multiple tenants, or as an alias for `platform_key` (backward compatibility)
51
57
  * - Frontend uses `llm` parameter name (backend maps to `llm_provider` automatically)
52
58
  *
53
59
  * @returns V2GlobalMentorSearchResponse
54
60
  * @throws ApiError
55
61
  */
56
62
  public static v2GlobalMentorSearch({
57
- platformKey,
58
63
  category,
59
64
  createdBy,
60
65
  includeMainPublicMentors = false,
61
66
  limit,
62
67
  llm,
63
68
  offset,
69
+ platformKey,
64
70
  query,
65
71
  subjects,
66
72
  tenant,
67
73
  types,
68
74
  visibility,
69
75
  }: {
70
- /**
71
- * Platform key for RBAC enforcement
72
- */
73
- platformKey: string,
74
76
  /**
75
77
  * Mentor category filter
76
78
  */
@@ -95,6 +97,10 @@ export class AiSearchService {
95
97
  * Number of results to skip
96
98
  */
97
99
  offset?: number,
100
+ /**
101
+ * Platform key for RBAC enforcement. Required for authenticated requests. Can also use 'tenant' parameter as an alias (backward compatibility).
102
+ */
103
+ platformKey?: string,
98
104
  /**
99
105
  * Search query for mentors
100
106
  */
@@ -104,7 +110,7 @@ export class AiSearchService {
104
110
  */
105
111
  subjects?: string,
106
112
  /**
107
- * Tenant key(s) (CSV)
113
+ * Tenant key(s) (CSV). Can be used as a filter for multiple tenants, or as an alias for 'platform_key' in authenticated requests (backward compatibility).
108
114
  */
109
115
  tenant?: string,
110
116
  /**
@@ -268,7 +274,9 @@ export class AiSearchService {
268
274
  *
269
275
  * **Authentication Required:**
270
276
  * - username: Required for personalized mentor access
271
- * - platform_key: Required for tenant-specific content
277
+ * - platform_key OR tenant: Required for tenant-specific content (both serve the same purpose)
278
+ * - Use `platform_key` (preferred) or `tenant` (backward compatibility)
279
+ * - If both are provided, `platform_key` takes precedence
272
280
  *
273
281
  * **Features:**
274
282
  * - User's own mentors only
@@ -281,7 +289,6 @@ export class AiSearchService {
281
289
  * @throws ApiError
282
290
  */
283
291
  public static v2PersonalizedMentors({
284
- platformKey,
285
292
  audience,
286
293
  category,
287
294
  limit,
@@ -289,16 +296,14 @@ export class AiSearchService {
289
296
  offset,
290
297
  orderBy,
291
298
  orderDirection,
299
+ platformKey,
292
300
  query,
293
301
  returnFacet,
294
302
  tags,
303
+ tenant,
295
304
  username,
296
305
  visibility,
297
306
  }: {
298
- /**
299
- * Platform key for authentication
300
- */
301
- platformKey: string,
302
307
  /**
303
308
  * Filter by audience
304
309
  */
@@ -330,6 +335,10 @@ export class AiSearchService {
330
335
  * * `desc` - desc
331
336
  */
332
337
  orderDirection?: 'asc' | 'desc',
338
+ /**
339
+ * Platform key for authentication. Required for authenticated requests. Can also use 'tenant' parameter as an alias (backward compatibility).
340
+ */
341
+ platformKey?: string,
333
342
  /**
334
343
  * Search query for personalized mentors
335
344
  */
@@ -342,6 +351,10 @@ export class AiSearchService {
342
351
  * Filter by tags
343
352
  */
344
353
  tags?: Array<string>,
354
+ /**
355
+ * Tenant key (alias for 'platform_key' for backward compatibility). Can be used instead of 'platform_key' - both serve the same purpose.
356
+ */
357
+ tenant?: string,
345
358
  /**
346
359
  * Username for authentication (required for unauthenticated requests)
347
360
  */
@@ -366,6 +379,7 @@ export class AiSearchService {
366
379
  'query': query,
367
380
  'return_facet': returnFacet,
368
381
  'tags': tags,
382
+ 'tenant': tenant,
369
383
  'username': username,
370
384
  'visibility': visibility,
371
385
  },