@iblai/iblai-api 4.477.0-ai → 4.478.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 CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '4.477.0-ai-plus',
113
+ VERSION: '4.478.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -17500,7 +17500,7 @@ class AiMentorService{/**
17500
17500
  * Forbidden: If the user doesn't have permission to create this feedback.
17501
17501
  * @returns UserChatFeedback
17502
17502
  * @throws ApiError
17503
- */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 or mentor not found`}});}/**
17503
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
17504
17504
  * Retrieve available LLMs for a user.
17505
17505
  * @returns LLMResponse
17506
17506
  * @throws ApiError
@@ -20100,7 +20100,7 @@ class AiMentorService{/**
20100
20100
  * Forbidden: If the user doesn't have permission to create this feedback.
20101
20101
  * @returns UserChatFeedback
20102
20102
  * @throws ApiError
20103
- */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 or mentor not found`}});}/**
20103
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
20104
20104
  * @deprecated
20105
20105
  * **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.
20106
20106
  *
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.477.0-ai-plus',
111
+ VERSION: '4.478.0-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -17498,7 +17498,7 @@ class AiMentorService{/**
17498
17498
  * Forbidden: If the user doesn't have permission to create this feedback.
17499
17499
  * @returns UserChatFeedback
17500
17500
  * @throws ApiError
17501
- */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 or mentor not found`}});}/**
17501
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
17502
17502
  * Retrieve available LLMs for a user.
17503
17503
  * @returns LLMResponse
17504
17504
  * @throws ApiError
@@ -20098,7 +20098,7 @@ class AiMentorService{/**
20098
20098
  * Forbidden: If the user doesn't have permission to create this feedback.
20099
20099
  * @returns UserChatFeedback
20100
20100
  * @throws ApiError
20101
- */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 or mentor not found`}});}/**
20101
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
20102
20102
  * @deprecated
20103
20103
  * **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.
20104
20104
  *
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.477.0-ai-plus',
117
+ VERSION: '4.478.0-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -17504,7 +17504,7 @@
17504
17504
  * Forbidden: If the user doesn't have permission to create this feedback.
17505
17505
  * @returns UserChatFeedback
17506
17506
  * @throws ApiError
17507
- */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 or mentor not found`}});}/**
17507
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
17508
17508
  * Retrieve available LLMs for a user.
17509
17509
  * @returns LLMResponse
17510
17510
  * @throws ApiError
@@ -20104,7 +20104,7 @@
20104
20104
  * Forbidden: If the user doesn't have permission to create this feedback.
20105
20105
  * @returns UserChatFeedback
20106
20106
  * @throws ApiError
20107
- */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 or mentor not found`}});}/**
20107
+ */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 or mentor not found`,403:`Not allowed to rate this message`,404:`Session or message not found`}});}/**
20108
20108
  * @deprecated
20109
20109
  * **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.
20110
20110
  *
@@ -1168,7 +1168,9 @@ export type { UserApp } from './models/UserApp';
1168
1168
  export type { UserCatalogItemMemoryView } from './models/UserCatalogItemMemoryView';
1169
1169
  export type { UserChatByPeriod } from './models/UserChatByPeriod';
1170
1170
  export type { UserChatFeedback } from './models/UserChatFeedback';
1171
+ export type { UserChatFeedbackByMessage } from './models/UserChatFeedbackByMessage';
1171
1172
  export type { UserChatFeedbackCount } from './models/UserChatFeedbackCount';
1173
+ export type { UserChatFeedbackCreateRequest } from './models/UserChatFeedbackCreateRequest';
1172
1174
  export type { UserChatHistoryFilterData } from './models/UserChatHistoryFilterData';
1173
1175
  export type { UserChatMemoryStatusRequestView } from './models/UserChatMemoryStatusRequestView';
1174
1176
  export type { UserChatMemoryStatusView } from './models/UserChatMemoryStatusView';
@@ -36,6 +36,10 @@ export type Artifact = {
36
36
  * Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
37
37
  */
38
38
  readonly binary_content: string;
39
+ /**
40
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
41
+ */
42
+ readonly binary_url: string;
39
43
  /**
40
44
  * True when the artifact carries `binary_content` instead of `content`
41
45
  */
@@ -30,6 +30,10 @@ export type ArtifactList = {
30
30
  * True when the artifact carries `binary_content` instead of `content`
31
31
  */
32
32
  readonly is_binary: boolean;
33
+ /**
34
+ * Time-limited download URL of a binary artifact's file; null for text artifacts
35
+ */
36
+ readonly binary_url: string;
33
37
  /**
34
38
  * MIME type of a binary artifact, e.g. application/pdf.
35
39
  */
@@ -20,6 +20,10 @@ export type ArtifactVersion = {
20
20
  * Base64-encoded bytes when the artifact is binary and this is the current version; null otherwise (binary artifacts keep one stored payload — fetch the artifact for the bytes).
21
21
  */
22
22
  readonly binary_content: string;
23
+ /**
24
+ * Time-limited download URL of the file when the artifact is binary and this is the current version; null otherwise.
25
+ */
26
+ readonly binary_url: string;
23
27
  /**
24
28
  * UUID of the session that generated this artifact version
25
29
  */
@@ -19,6 +19,10 @@ export type NestedArtifact = {
19
19
  * Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
20
20
  */
21
21
  readonly binary_content: string;
22
+ /**
23
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
24
+ */
25
+ readonly binary_url: string;
22
26
  /**
23
27
  * True when the artifact carries `binary_content` instead of `content`
24
28
  */
@@ -36,6 +36,10 @@ export type PatchedArtifact = {
36
36
  * Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
37
37
  */
38
38
  readonly binary_content?: string;
39
+ /**
40
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
41
+ */
42
+ readonly binary_url?: string;
39
43
  /**
40
44
  * True when the artifact carries `binary_content` instead of `content`
41
45
  */
@@ -13,10 +13,10 @@ export type UserChatFeedback = {
13
13
  readonly user_full_name: string | null;
14
14
  username: string;
15
15
  session: string;
16
- user_text: string;
17
- ai_response: string;
18
- reason: string;
19
- additional_feedback: string;
16
+ user_text?: string;
17
+ ai_response?: string;
18
+ reason?: string;
19
+ additional_feedback?: string;
20
20
  rating?: (RatingEnum | NullEnum) | null;
21
21
  inserted_at?: string;
22
22
  mentor: number;
@@ -0,0 +1,23 @@
1
+ import type { RatingEnum } from './RatingEnum';
2
+ /**
3
+ * Rate a stored AI message; the server derives the rest from chat history.
4
+ */
5
+ export type UserChatFeedbackByMessage = {
6
+ /**
7
+ * Chat-history `id` of the AI message being rated
8
+ */
9
+ message_id: number;
10
+ /**
11
+ * Session the message belongs to; a mismatch is a 404
12
+ */
13
+ session_id: string;
14
+ /**
15
+ * 1 (up) or -1 (down)
16
+ *
17
+ * * `1` - Up Vote
18
+ * * `-1` - Down Vote
19
+ */
20
+ rating: RatingEnum;
21
+ reason?: string;
22
+ additional_feedback?: string;
23
+ };
@@ -0,0 +1,3 @@
1
+ import type { UserChatFeedback } from './UserChatFeedback';
2
+ import type { UserChatFeedbackByMessage } from './UserChatFeedbackByMessage';
3
+ export type UserChatFeedbackCreateRequest = (UserChatFeedbackByMessage | UserChatFeedback);
@@ -20,6 +20,10 @@ export type VersionNestedArtifact = {
20
20
  * Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
21
21
  */
22
22
  readonly binary_content: string;
23
+ /**
24
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
25
+ */
26
+ readonly binary_url: string;
23
27
  /**
24
28
  * True when the artifact carries `binary_content` instead of `content`
25
29
  */
@@ -251,6 +251,7 @@ import type { TriggerRequest } from '../models/TriggerRequest';
251
251
  import type { TriggerResponse } from '../models/TriggerResponse';
252
252
  import type { UpdateXblock } from '../models/UpdateXblock';
253
253
  import type { UserChatFeedback } from '../models/UserChatFeedback';
254
+ import type { UserChatFeedbackCreateRequest } from '../models/UserChatFeedbackCreateRequest';
254
255
  import type { UserDefaultMentor } from '../models/UserDefaultMentor';
255
256
  import type { UserEdxMemory } from '../models/UserEdxMemory';
256
257
  import type { UserMentorMemoryCreate } from '../models/UserMentorMemoryCreate';
@@ -3344,7 +3345,7 @@ export declare class AiMentorService {
3344
3345
  */
3345
3346
  static aiMentorOrgsUsersAgentFeedbackCreateCreate({ org, userId, requestBody, }: {
3346
3347
  org: string;
3347
- requestBody: UserChatFeedback;
3348
+ requestBody?: UserChatFeedbackCreateRequest;
3348
3349
  }): CancelablePromise<UserChatFeedback>;
3349
3350
  /**
3350
3351
  * Retrieve available LLMs for a user.
@@ -7923,7 +7924,7 @@ export declare class AiMentorService {
7923
7924
  */
7924
7925
  static aiMentorOrgsUsersMentorFeedbackCreateCreate({ org, userId, requestBody, }: {
7925
7926
  org: string;
7926
- requestBody: UserChatFeedback;
7927
+ requestBody?: UserChatFeedbackCreateRequest;
7927
7928
  }): CancelablePromise<UserChatFeedback>;
7928
7929
  /**
7929
7930
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.477.0-ai",
3
+ "version": "4.478.0-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
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.477.0-ai-plus
4
+ version: 4.478.0-ai-plus
5
5
  description: API for iblai
6
6
  paths:
7
7
  /api/ai-account/connected-services/callback/:
@@ -19396,8 +19396,16 @@ paths:
19396
19396
  content:
19397
19397
  application/json:
19398
19398
  schema:
19399
- $ref: '#/components/schemas/UserChatFeedback'
19399
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
19400
19400
  examples:
19401
+ RateAStoredMessageRequestExample:
19402
+ value:
19403
+ message_id: 3
19404
+ session_id: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
19405
+ rating: -1
19406
+ reason: Inaccurate
19407
+ additional_feedback: ''
19408
+ summary: Rate A Stored Message Request Example
19401
19409
  CreateFeedbackRequestExample:
19402
19410
  value:
19403
19411
  username: johndoe
@@ -19412,21 +19420,40 @@ paths:
19412
19420
  summary: Create Feedback Request Example
19413
19421
  application/scim+json:
19414
19422
  schema:
19415
- $ref: '#/components/schemas/UserChatFeedback'
19423
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
19416
19424
  application/x-www-form-urlencoded:
19417
19425
  schema:
19418
- $ref: '#/components/schemas/UserChatFeedback'
19426
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
19419
19427
  multipart/form-data:
19420
19428
  schema:
19421
- $ref: '#/components/schemas/UserChatFeedback'
19429
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
19422
19430
  '*/*':
19423
19431
  schema:
19424
- $ref: '#/components/schemas/UserChatFeedback'
19425
- required: true
19432
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
19426
19433
  security:
19427
19434
  - PlatformApiKeyAuthentication: []
19428
19435
  - {}
19429
19436
  responses:
19437
+ '200':
19438
+ content:
19439
+ application/json:
19440
+ schema:
19441
+ $ref: '#/components/schemas/UserChatFeedback'
19442
+ examples:
19443
+ CreateFeedbackResponseExample:
19444
+ value:
19445
+ id: 1
19446
+ username: johndoe
19447
+ session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
19448
+ user_text: Who is Marc H. Supcoff
19449
+ ai_response: Marc H. Supcoff is an Adjunct Professor of Law
19450
+ reason: Good reason
19451
+ additional_feedback: Good response
19452
+ rating: 1
19453
+ mentor: 12
19454
+ message: 3
19455
+ summary: Create Feedback Response Example
19456
+ description: ''
19430
19457
  '201':
19431
19458
  content:
19432
19459
  application/json:
@@ -19449,6 +19476,10 @@ paths:
19449
19476
  description: ''
19450
19477
  '400':
19451
19478
  description: Invalid data or mentor not found
19479
+ '403':
19480
+ description: Not allowed to rate this message
19481
+ '404':
19482
+ description: Session or message not found
19452
19483
  /api/ai-mentor/orgs/{org}/users/{user_id}/agent-llms/:
19453
19484
  get:
19454
19485
  operationId: ai_mentor_orgs_users_agent_llms_list
@@ -23275,6 +23306,7 @@ paths:
23275
23306
  title: Python Calculator
23276
23307
  content: ''
23277
23308
  binary_content: null
23309
+ binary_url: null
23278
23310
  is_binary: false
23279
23311
  file_extension: py
23280
23312
  llm_name: gpt-4
@@ -23347,6 +23379,7 @@ paths:
23347
23379
  title: Python Calculator
23348
23380
  content: ''
23349
23381
  binary_content: null
23382
+ binary_url: null
23350
23383
  is_binary: false
23351
23384
  file_extension: py
23352
23385
  llm_name: gpt-4
@@ -30444,8 +30477,16 @@ paths:
30444
30477
  content:
30445
30478
  application/json:
30446
30479
  schema:
30447
- $ref: '#/components/schemas/UserChatFeedback'
30480
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
30448
30481
  examples:
30482
+ RateAStoredMessageRequestExample:
30483
+ value:
30484
+ message_id: 3
30485
+ session_id: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
30486
+ rating: -1
30487
+ reason: Inaccurate
30488
+ additional_feedback: ''
30489
+ summary: Rate A Stored Message Request Example
30449
30490
  CreateFeedbackRequestExample:
30450
30491
  value:
30451
30492
  username: johndoe
@@ -30460,21 +30501,40 @@ paths:
30460
30501
  summary: Create Feedback Request Example
30461
30502
  application/scim+json:
30462
30503
  schema:
30463
- $ref: '#/components/schemas/UserChatFeedback'
30504
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
30464
30505
  application/x-www-form-urlencoded:
30465
30506
  schema:
30466
- $ref: '#/components/schemas/UserChatFeedback'
30507
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
30467
30508
  multipart/form-data:
30468
30509
  schema:
30469
- $ref: '#/components/schemas/UserChatFeedback'
30510
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
30470
30511
  '*/*':
30471
30512
  schema:
30472
- $ref: '#/components/schemas/UserChatFeedback'
30473
- required: true
30513
+ $ref: '#/components/schemas/UserChatFeedbackCreateRequest'
30474
30514
  security:
30475
30515
  - PlatformApiKeyAuthentication: []
30476
30516
  - {}
30477
30517
  responses:
30518
+ '200':
30519
+ content:
30520
+ application/json:
30521
+ schema:
30522
+ $ref: '#/components/schemas/UserChatFeedback'
30523
+ examples:
30524
+ CreateFeedbackResponseExample:
30525
+ value:
30526
+ id: 1
30527
+ username: johndoe
30528
+ session: 937d3d46-3048-4f9d-aa5c-ce7c51d85332
30529
+ user_text: Who is Marc H. Supcoff
30530
+ ai_response: Marc H. Supcoff is an Adjunct Professor of Law
30531
+ reason: Good reason
30532
+ additional_feedback: Good response
30533
+ rating: 1
30534
+ mentor: 12
30535
+ message: 3
30536
+ summary: Create Feedback Response Example
30537
+ description: ''
30478
30538
  '201':
30479
30539
  content:
30480
30540
  application/json:
@@ -30497,6 +30557,10 @@ paths:
30497
30557
  description: ''
30498
30558
  '400':
30499
30559
  description: Invalid data or mentor not found
30560
+ '403':
30561
+ description: Not allowed to rate this message
30562
+ '404':
30563
+ description: Session or message not found
30500
30564
  deprecated: true
30501
30565
  /api/ai-mentor/orgs/{org}/users/{user_id}/mentor-llms/:
30502
30566
  get:
@@ -93507,6 +93571,11 @@ components:
93507
93571
  type: string
93508
93572
  readOnly: true
93509
93573
  description: Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
93574
+ binary_url:
93575
+ type: string
93576
+ format: uri
93577
+ readOnly: true
93578
+ description: Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
93510
93579
  is_binary:
93511
93580
  type: boolean
93512
93581
  readOnly: true
@@ -93564,6 +93633,7 @@ components:
93564
93633
  readOnly: true
93565
93634
  required:
93566
93635
  - binary_content
93636
+ - binary_url
93567
93637
  - content
93568
93638
  - current_version_number
93569
93639
  - date_created
@@ -93600,6 +93670,11 @@ components:
93600
93670
  type: boolean
93601
93671
  readOnly: true
93602
93672
  description: True when the artifact carries `binary_content` instead of `content`
93673
+ binary_url:
93674
+ type: string
93675
+ format: uri
93676
+ readOnly: true
93677
+ description: Time-limited download URL of a binary artifact's file; null for text artifacts
93603
93678
  mime_type:
93604
93679
  type: string
93605
93680
  readOnly: true
@@ -93641,6 +93716,7 @@ components:
93641
93716
  description: Length of the artifact content in characters (bytes for binary artifacts)
93642
93717
  readOnly: true
93643
93718
  required:
93719
+ - binary_url
93644
93720
  - content_length
93645
93721
  - date_created
93646
93722
  - date_updated
@@ -93678,6 +93754,11 @@ components:
93678
93754
  type: string
93679
93755
  readOnly: true
93680
93756
  description: Base64-encoded bytes when the artifact is binary and this is the current version; null otherwise (binary artifacts keep one stored payload — fetch the artifact for the bytes).
93757
+ binary_url:
93758
+ type: string
93759
+ format: uri
93760
+ readOnly: true
93761
+ description: Time-limited download URL of the file when the artifact is binary and this is the current version; null otherwise.
93681
93762
  session_id:
93682
93763
  type: string
93683
93764
  format: uuid
@@ -93726,6 +93807,7 @@ components:
93726
93807
  required:
93727
93808
  - artifact
93728
93809
  - binary_content
93810
+ - binary_url
93729
93811
  - chat_message
93730
93812
  - content
93731
93813
  - content_length
@@ -108599,6 +108681,11 @@ components:
108599
108681
  type: string
108600
108682
  readOnly: true
108601
108683
  description: Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
108684
+ binary_url:
108685
+ type: string
108686
+ format: uri
108687
+ readOnly: true
108688
+ description: Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
108602
108689
  is_binary:
108603
108690
  type: boolean
108604
108691
  readOnly: true
@@ -108656,6 +108743,7 @@ components:
108656
108743
  readOnly: true
108657
108744
  required:
108658
108745
  - binary_content
108746
+ - binary_url
108659
108747
  - content
108660
108748
  - current_version_number
108661
108749
  - date_created
@@ -113074,6 +113162,11 @@ components:
113074
113162
  type: string
113075
113163
  readOnly: true
113076
113164
  description: Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
113165
+ binary_url:
113166
+ type: string
113167
+ format: uri
113168
+ readOnly: true
113169
+ description: Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
113077
113170
  is_binary:
113078
113171
  type: boolean
113079
113172
  readOnly: true
@@ -130467,16 +130560,42 @@ components:
130467
130560
  type: integer
130468
130561
  nullable: true
130469
130562
  required:
130470
- - additional_feedback
130471
- - ai_response
130472
130563
  - id
130473
130564
  - mentor
130474
- - reason
130475
130565
  - session
130476
130566
  - user_email
130477
130567
  - user_full_name
130478
- - user_text
130479
130568
  - username
130569
+ UserChatFeedbackByMessage:
130570
+ type: object
130571
+ description: Rate a stored AI message; the server derives the rest from chat history.
130572
+ properties:
130573
+ message_id:
130574
+ type: integer
130575
+ description: Chat-history `id` of the AI message being rated
130576
+ session_id:
130577
+ type: string
130578
+ format: uuid
130579
+ description: Session the message belongs to; a mismatch is a 404
130580
+ rating:
130581
+ allOf:
130582
+ - $ref: '#/components/schemas/RatingEnum'
130583
+ description: '1 (up) or -1 (down)
130584
+
130585
+
130586
+ * `1` - Up Vote
130587
+
130588
+ * `-1` - Down Vote'
130589
+ reason:
130590
+ type: string
130591
+ default: ''
130592
+ additional_feedback:
130593
+ type: string
130594
+ default: ''
130595
+ required:
130596
+ - message_id
130597
+ - rating
130598
+ - session_id
130480
130599
  UserChatFeedbackCount:
130481
130600
  type: object
130482
130601
  properties:
@@ -130488,6 +130607,10 @@ components:
130488
130607
  required:
130489
130608
  - feedback_count
130490
130609
  - period
130610
+ UserChatFeedbackCreateRequest:
130611
+ oneOf:
130612
+ - $ref: '#/components/schemas/UserChatFeedbackByMessage'
130613
+ - $ref: '#/components/schemas/UserChatFeedback'
130491
130614
  UserChatHistoryFilterData:
130492
130615
  type: object
130493
130616
  description: Filter options for user-scoped chat history (no users field - always self).
@@ -132553,6 +132676,11 @@ components:
132553
132676
  type: string
132554
132677
  readOnly: true
132555
132678
  description: Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
132679
+ binary_url:
132680
+ type: string
132681
+ format: uri
132682
+ readOnly: true
132683
+ description: Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
132556
132684
  is_binary:
132557
132685
  type: boolean
132558
132686
  readOnly: true
@@ -132610,6 +132738,7 @@ components:
132610
132738
  readOnly: true
132611
132739
  required:
132612
132740
  - binary_content
132741
+ - binary_url
132613
132742
  - content
132614
132743
  - current_version_number
132615
132744
  - date_created
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.477.0-ai-plus',
24
+ VERSION: '4.478.0-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -1173,7 +1173,9 @@ export type { UserApp } from './models/UserApp';
1173
1173
  export type { UserCatalogItemMemoryView } from './models/UserCatalogItemMemoryView';
1174
1174
  export type { UserChatByPeriod } from './models/UserChatByPeriod';
1175
1175
  export type { UserChatFeedback } from './models/UserChatFeedback';
1176
+ export type { UserChatFeedbackByMessage } from './models/UserChatFeedbackByMessage';
1176
1177
  export type { UserChatFeedbackCount } from './models/UserChatFeedbackCount';
1178
+ export type { UserChatFeedbackCreateRequest } from './models/UserChatFeedbackCreateRequest';
1177
1179
  export type { UserChatHistoryFilterData } from './models/UserChatHistoryFilterData';
1178
1180
  export type { UserChatMemoryStatusRequestView } from './models/UserChatMemoryStatusRequestView';
1179
1181
  export type { UserChatMemoryStatusView } from './models/UserChatMemoryStatusView';
@@ -40,6 +40,10 @@ export type Artifact = {
40
40
  * Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
41
41
  */
42
42
  readonly binary_content: string;
43
+ /**
44
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
45
+ */
46
+ readonly binary_url: string;
43
47
  /**
44
48
  * True when the artifact carries `binary_content` instead of `content`
45
49
  */
@@ -34,6 +34,10 @@ export type ArtifactList = {
34
34
  * True when the artifact carries `binary_content` instead of `content`
35
35
  */
36
36
  readonly is_binary: boolean;
37
+ /**
38
+ * Time-limited download URL of a binary artifact's file; null for text artifacts
39
+ */
40
+ readonly binary_url: string;
37
41
  /**
38
42
  * MIME type of a binary artifact, e.g. application/pdf.
39
43
  */
@@ -24,6 +24,10 @@ export type ArtifactVersion = {
24
24
  * Base64-encoded bytes when the artifact is binary and this is the current version; null otherwise (binary artifacts keep one stored payload — fetch the artifact for the bytes).
25
25
  */
26
26
  readonly binary_content: string;
27
+ /**
28
+ * Time-limited download URL of the file when the artifact is binary and this is the current version; null otherwise.
29
+ */
30
+ readonly binary_url: string;
27
31
  /**
28
32
  * UUID of the session that generated this artifact version
29
33
  */
@@ -23,6 +23,10 @@ export type NestedArtifact = {
23
23
  * Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
24
24
  */
25
25
  readonly binary_content: string;
26
+ /**
27
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
28
+ */
29
+ readonly binary_url: string;
26
30
  /**
27
31
  * True when the artifact carries `binary_content` instead of `content`
28
32
  */
@@ -40,6 +40,10 @@ export type PatchedArtifact = {
40
40
  * Base64-encoded bytes of a binary artifact (pdf, xlsx, ...); null for text artifacts. The client chooses the rendering from `file_extension`/`mime_type`.
41
41
  */
42
42
  readonly binary_content?: string;
43
+ /**
44
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
45
+ */
46
+ readonly binary_url?: string;
43
47
  /**
44
48
  * True when the artifact carries `binary_content` instead of `content`
45
49
  */
@@ -17,10 +17,10 @@ export type UserChatFeedback = {
17
17
  readonly user_full_name: string | null;
18
18
  username: string;
19
19
  session: string;
20
- user_text: string;
21
- ai_response: string;
22
- reason: string;
23
- additional_feedback: string;
20
+ user_text?: string;
21
+ ai_response?: string;
22
+ reason?: string;
23
+ additional_feedback?: string;
24
24
  rating?: (RatingEnum | NullEnum) | null;
25
25
  inserted_at?: string;
26
26
  mentor: number;
@@ -0,0 +1,28 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { RatingEnum } from './RatingEnum';
6
+ /**
7
+ * Rate a stored AI message; the server derives the rest from chat history.
8
+ */
9
+ export type UserChatFeedbackByMessage = {
10
+ /**
11
+ * Chat-history `id` of the AI message being rated
12
+ */
13
+ message_id: number;
14
+ /**
15
+ * Session the message belongs to; a mismatch is a 404
16
+ */
17
+ session_id: string;
18
+ /**
19
+ * 1 (up) or -1 (down)
20
+ *
21
+ * * `1` - Up Vote
22
+ * * `-1` - Down Vote
23
+ */
24
+ rating: RatingEnum;
25
+ reason?: string;
26
+ additional_feedback?: string;
27
+ };
28
+
@@ -0,0 +1,8 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { UserChatFeedback } from './UserChatFeedback';
6
+ import type { UserChatFeedbackByMessage } from './UserChatFeedbackByMessage';
7
+ export type UserChatFeedbackCreateRequest = (UserChatFeedbackByMessage | UserChatFeedback);
8
+
@@ -24,6 +24,10 @@ export type VersionNestedArtifact = {
24
24
  * Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes.
25
25
  */
26
26
  readonly binary_content: string;
27
+ /**
28
+ * Time-limited download URL of a binary artifact's file; null for text artifacts. Prefer it over `binary_content`, which will be removed once clients have moved.
29
+ */
30
+ readonly binary_url: string;
27
31
  /**
28
32
  * True when the artifact carries `binary_content` instead of `content`
29
33
  */
@@ -255,6 +255,7 @@ import type { TriggerRequest } from '../models/TriggerRequest';
255
255
  import type { TriggerResponse } from '../models/TriggerResponse';
256
256
  import type { UpdateXblock } from '../models/UpdateXblock';
257
257
  import type { UserChatFeedback } from '../models/UserChatFeedback';
258
+ import type { UserChatFeedbackCreateRequest } from '../models/UserChatFeedbackCreateRequest';
258
259
  import type { UserDefaultMentor } from '../models/UserDefaultMentor';
259
260
  import type { UserEdxMemory } from '../models/UserEdxMemory';
260
261
  import type { UserMentorMemoryCreate } from '../models/UserMentorMemoryCreate';
@@ -6662,7 +6663,7 @@ export class AiMentorService {
6662
6663
  }: {
6663
6664
  org: string,
6664
6665
  userId: string,
6665
- requestBody: UserChatFeedback,
6666
+ requestBody?: UserChatFeedbackCreateRequest,
6666
6667
  }): CancelablePromise<UserChatFeedback> {
6667
6668
  return __request(OpenAPI, {
6668
6669
  method: 'POST',
@@ -6675,6 +6676,8 @@ export class AiMentorService {
6675
6676
  mediaType: 'application/json',
6676
6677
  errors: {
6677
6678
  400: `Invalid data or mentor not found`,
6679
+ 403: `Not allowed to rate this message`,
6680
+ 404: `Session or message not found`,
6678
6681
  },
6679
6682
  });
6680
6683
  }
@@ -15705,7 +15708,7 @@ export class AiMentorService {
15705
15708
  }: {
15706
15709
  org: string,
15707
15710
  userId: string,
15708
- requestBody: UserChatFeedback,
15711
+ requestBody?: UserChatFeedbackCreateRequest,
15709
15712
  }): CancelablePromise<UserChatFeedback> {
15710
15713
  return __request(OpenAPI, {
15711
15714
  method: 'POST',
@@ -15718,6 +15721,8 @@ export class AiMentorService {
15718
15721
  mediaType: 'application/json',
15719
15722
  errors: {
15720
15723
  400: `Invalid data or mentor not found`,
15724
+ 403: `Not allowed to rate this message`,
15725
+ 404: `Session or message not found`,
15721
15726
  },
15722
15727
  });
15723
15728
  }