@iblai/iblai-api 4.100.0-test-ai → 4.101.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 +3 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/models/Artifact.d.ts +3 -7
- package/dist/types/models/ArtifactList.d.ts +1 -4
- package/dist/types/models/ArtifactVersion.d.ts +13 -2
- package/dist/types/models/ChatHistory.d.ts +2 -0
- package/dist/types/models/ChatSessionResponse.d.ts +2 -0
- package/dist/types/models/PaginatedArtifactVersionList.d.ts +7 -0
- package/dist/types/models/PatchedArtifact.d.ts +3 -7
- package/dist/types/services/AiMentorService.d.ts +6 -10
- package/package.json +1 -1
- package/sdk_schema.yml +119 -77
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +1 -2
- package/src/models/Artifact.ts +3 -7
- package/src/models/ArtifactList.ts +1 -4
- package/src/models/ArtifactVersion.ts +13 -2
- package/src/models/ChatHistory.ts +2 -0
- package/src/models/ChatSessionResponse.ts +2 -0
- package/src/models/{PaginatedArtifactVersionListList.ts → PaginatedArtifactVersionList.ts} +3 -3
- package/src/models/PatchedArtifact.ts +3 -7
- package/src/services/AiMentorService.ts +4 -13
- package/dist/types/models/ArtifactVersionList.d.ts +0 -35
- package/dist/types/models/PaginatedArtifactVersionListList.d.ts +0 -7
- package/src/models/ArtifactVersionList.ts +0 -40
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.101.0-ai-plus
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/api/ai-account/connected-services/callback/:
|
|
@@ -15487,12 +15487,6 @@ paths:
|
|
|
15487
15487
|
filtering and search.
|
|
15488
15488
|
summary: List artifacts
|
|
15489
15489
|
parameters:
|
|
15490
|
-
- in: query
|
|
15491
|
-
name: chat_message_id
|
|
15492
|
-
schema:
|
|
15493
|
-
type: string
|
|
15494
|
-
format: uuid
|
|
15495
|
-
description: Filter by specific chat message UUID
|
|
15496
15490
|
- in: query
|
|
15497
15491
|
name: file_extension
|
|
15498
15492
|
schema:
|
|
@@ -15647,7 +15641,6 @@ paths:
|
|
|
15647
15641
|
return a + b
|
|
15648
15642
|
```
|
|
15649
15643
|
file_extension: py
|
|
15650
|
-
chat_message: 550e8400-e29b-41d4-a716-446655440001
|
|
15651
15644
|
llm_name: gpt-4
|
|
15652
15645
|
llm_provider: openai
|
|
15653
15646
|
date_created: '2024-01-15T10:30:00Z'
|
|
@@ -15655,6 +15648,8 @@ paths:
|
|
|
15655
15648
|
metadata: {}
|
|
15656
15649
|
username: johndoe
|
|
15657
15650
|
session_id: 550e8400-e29b-41d4-a716-446655440000
|
|
15651
|
+
current_version_number: 2
|
|
15652
|
+
version_count: 3
|
|
15658
15653
|
summary: Artifact Detail Response
|
|
15659
15654
|
description: ''
|
|
15660
15655
|
'401':
|
|
@@ -15697,7 +15692,7 @@ paths:
|
|
|
15697
15692
|
description: ''
|
|
15698
15693
|
put:
|
|
15699
15694
|
operationId: ai_mentor_orgs_users_artifacts_update
|
|
15700
|
-
description: Update all fields of an artifact (excluding
|
|
15695
|
+
description: Update all fields of an artifact (excluding session reference).
|
|
15701
15696
|
summary: Update an artifact
|
|
15702
15697
|
parameters:
|
|
15703
15698
|
- in: path
|
|
@@ -15850,11 +15845,6 @@ paths:
|
|
|
15850
15845
|
description: Retrieve all versions for a specific artifact.
|
|
15851
15846
|
summary: List artifact versions
|
|
15852
15847
|
parameters:
|
|
15853
|
-
- in: query
|
|
15854
|
-
name: chat_message_id
|
|
15855
|
-
schema:
|
|
15856
|
-
type: string
|
|
15857
|
-
format: uuid
|
|
15858
15848
|
- in: query
|
|
15859
15849
|
name: file_extension
|
|
15860
15850
|
schema:
|
|
@@ -15930,7 +15920,47 @@ paths:
|
|
|
15930
15920
|
content:
|
|
15931
15921
|
application/json:
|
|
15932
15922
|
schema:
|
|
15933
|
-
$ref: '#/components/schemas/
|
|
15923
|
+
$ref: '#/components/schemas/PaginatedArtifactVersionList'
|
|
15924
|
+
examples:
|
|
15925
|
+
ArtifactVersionsListResponse:
|
|
15926
|
+
value:
|
|
15927
|
+
count: 123
|
|
15928
|
+
next: http://api.example.org/accounts/?page=4
|
|
15929
|
+
previous: http://api.example.org/accounts/?page=2
|
|
15930
|
+
results:
|
|
15931
|
+
- - id: 3
|
|
15932
|
+
artifact:
|
|
15933
|
+
id: 1
|
|
15934
|
+
title: Python Calculator
|
|
15935
|
+
content: |-
|
|
15936
|
+
def add(a, b):
|
|
15937
|
+
return a + b
|
|
15938
|
+
file_extension: py
|
|
15939
|
+
llm_name: gpt-4
|
|
15940
|
+
llm_provider: openai
|
|
15941
|
+
date_created: '2024-01-15T10:30:00Z'
|
|
15942
|
+
date_updated: '2024-01-15T11:00:00Z'
|
|
15943
|
+
metadata: {}
|
|
15944
|
+
username: johndoe
|
|
15945
|
+
session_id: 550e8400-e29b-41d4-a716-446655440000
|
|
15946
|
+
current_version_number: 2
|
|
15947
|
+
version_count: 2
|
|
15948
|
+
title: Python Calculator
|
|
15949
|
+
content: |-
|
|
15950
|
+
def add(a, b):
|
|
15951
|
+
return a + b
|
|
15952
|
+
|
|
15953
|
+
def subtract(a, b):
|
|
15954
|
+
return a - b
|
|
15955
|
+
session_id: 550e8400-e29b-41d4-a716-446655440000
|
|
15956
|
+
content_length: 68
|
|
15957
|
+
is_current: true
|
|
15958
|
+
chat_message: null
|
|
15959
|
+
version_number: 2
|
|
15960
|
+
date_created: '2024-01-15T11:00:00Z'
|
|
15961
|
+
created_by: llm
|
|
15962
|
+
change_summary: Added subtract function
|
|
15963
|
+
summary: Artifact Versions List Response
|
|
15934
15964
|
description: ''
|
|
15935
15965
|
'404':
|
|
15936
15966
|
description: Artifact not found
|
|
@@ -15972,6 +16002,42 @@ paths:
|
|
|
15972
16002
|
application/json:
|
|
15973
16003
|
schema:
|
|
15974
16004
|
$ref: '#/components/schemas/ArtifactVersion'
|
|
16005
|
+
examples:
|
|
16006
|
+
ArtifactVersionDetailResponse:
|
|
16007
|
+
value:
|
|
16008
|
+
id: 3
|
|
16009
|
+
artifact:
|
|
16010
|
+
id: 1
|
|
16011
|
+
title: Python Calculator
|
|
16012
|
+
content: |-
|
|
16013
|
+
def add(a, b):
|
|
16014
|
+
return a + b
|
|
16015
|
+
file_extension: py
|
|
16016
|
+
llm_name: gpt-4
|
|
16017
|
+
llm_provider: openai
|
|
16018
|
+
date_created: '2024-01-15T10:30:00Z'
|
|
16019
|
+
date_updated: '2024-01-15T11:00:00Z'
|
|
16020
|
+
metadata: {}
|
|
16021
|
+
username: johndoe
|
|
16022
|
+
session_id: 550e8400-e29b-41d4-a716-446655440000
|
|
16023
|
+
current_version_number: 2
|
|
16024
|
+
version_count: 2
|
|
16025
|
+
title: Python Calculator
|
|
16026
|
+
content: |-
|
|
16027
|
+
def add(a, b):
|
|
16028
|
+
return a + b
|
|
16029
|
+
|
|
16030
|
+
def subtract(a, b):
|
|
16031
|
+
return a - b
|
|
16032
|
+
session_id: 550e8400-e29b-41d4-a716-446655440000
|
|
16033
|
+
content_length: 68
|
|
16034
|
+
is_current: true
|
|
16035
|
+
chat_message: null
|
|
16036
|
+
version_number: 2
|
|
16037
|
+
date_created: '2024-01-15T11:00:00Z'
|
|
16038
|
+
created_by: llm
|
|
16039
|
+
change_summary: Added subtract function
|
|
16040
|
+
summary: Artifact Version Detail Response
|
|
15975
16041
|
description: ''
|
|
15976
16042
|
'404':
|
|
15977
16043
|
description: Version not found
|
|
@@ -69702,15 +69768,13 @@ components:
|
|
|
69702
69768
|
maxLength: 255
|
|
69703
69769
|
content:
|
|
69704
69770
|
type: string
|
|
69705
|
-
description:
|
|
69771
|
+
description: Content of the artifact
|
|
69772
|
+
readOnly: true
|
|
69706
69773
|
file_extension:
|
|
69707
69774
|
type: string
|
|
69708
69775
|
readOnly: true
|
|
69709
69776
|
description: The extension of the file for the artifact. eg. `py`, `md`,
|
|
69710
69777
|
`html`, `json`, `csv`, etc
|
|
69711
|
-
chat_message:
|
|
69712
|
-
type: integer
|
|
69713
|
-
readOnly: true
|
|
69714
69778
|
llm_name:
|
|
69715
69779
|
type: string
|
|
69716
69780
|
readOnly: true
|
|
@@ -69734,7 +69798,7 @@ components:
|
|
|
69734
69798
|
session_id:
|
|
69735
69799
|
type: string
|
|
69736
69800
|
format: uuid
|
|
69737
|
-
|
|
69801
|
+
nullable: true
|
|
69738
69802
|
readOnly: true
|
|
69739
69803
|
current_version_number:
|
|
69740
69804
|
type: integer
|
|
@@ -69745,7 +69809,6 @@ components:
|
|
|
69745
69809
|
description: Total number of versions for this artifact
|
|
69746
69810
|
readOnly: true
|
|
69747
69811
|
required:
|
|
69748
|
-
- chat_message
|
|
69749
69812
|
- content
|
|
69750
69813
|
- current_version_number
|
|
69751
69814
|
- date_created
|
|
@@ -69811,7 +69874,7 @@ components:
|
|
|
69811
69874
|
session_id:
|
|
69812
69875
|
type: string
|
|
69813
69876
|
format: uuid
|
|
69814
|
-
|
|
69877
|
+
nullable: true
|
|
69815
69878
|
readOnly: true
|
|
69816
69879
|
content_length:
|
|
69817
69880
|
type: integer
|
|
@@ -69839,58 +69902,31 @@ components:
|
|
|
69839
69902
|
type: integer
|
|
69840
69903
|
readOnly: true
|
|
69841
69904
|
artifact:
|
|
69842
|
-
|
|
69905
|
+
$ref: '#/components/schemas/Artifact'
|
|
69906
|
+
title:
|
|
69907
|
+
type: string
|
|
69908
|
+
description: Get the title of the artifact version.
|
|
69843
69909
|
readOnly: true
|
|
69844
|
-
description: The artifact this version belongs to
|
|
69845
69910
|
content:
|
|
69846
69911
|
type: string
|
|
69847
69912
|
description: The markdown-styled content of this artifact version
|
|
69848
|
-
|
|
69849
|
-
type: boolean
|
|
69850
|
-
readOnly: true
|
|
69851
|
-
description: Whether this version is the current/active version
|
|
69852
|
-
version_number:
|
|
69853
|
-
type: integer
|
|
69854
|
-
readOnly: true
|
|
69855
|
-
default: 1
|
|
69856
|
-
description: Sequential version number for display purposes
|
|
69857
|
-
date_created:
|
|
69858
|
-
type: string
|
|
69859
|
-
format: date-time
|
|
69860
|
-
readOnly: true
|
|
69861
|
-
description: When this version was created
|
|
69862
|
-
created_by:
|
|
69863
|
-
type: string
|
|
69864
|
-
description: Identifier for who created this version (e.g., 'llm', 'user:username')
|
|
69865
|
-
maxLength: 100
|
|
69866
|
-
change_summary:
|
|
69913
|
+
session_id:
|
|
69867
69914
|
type: string
|
|
69868
|
-
|
|
69869
|
-
|
|
69870
|
-
required:
|
|
69871
|
-
- artifact
|
|
69872
|
-
- content
|
|
69873
|
-
- date_created
|
|
69874
|
-
- id
|
|
69875
|
-
- is_current
|
|
69876
|
-
- version_number
|
|
69877
|
-
ArtifactVersionList:
|
|
69878
|
-
type: object
|
|
69879
|
-
description: |-
|
|
69880
|
-
Lightweight serializer for listing artifact versions.
|
|
69881
|
-
Excludes the potentially large content field.
|
|
69882
|
-
properties:
|
|
69883
|
-
id:
|
|
69884
|
-
type: integer
|
|
69915
|
+
format: uuid
|
|
69916
|
+
description: UUID of the session that generated this artifact version
|
|
69885
69917
|
readOnly: true
|
|
69886
|
-
|
|
69918
|
+
content_length:
|
|
69887
69919
|
type: integer
|
|
69920
|
+
description: Length of the version content in characters
|
|
69888
69921
|
readOnly: true
|
|
69889
|
-
description: The artifact this version belongs to
|
|
69890
69922
|
is_current:
|
|
69891
69923
|
type: boolean
|
|
69892
69924
|
readOnly: true
|
|
69893
69925
|
description: Whether this version is the current/active version
|
|
69926
|
+
chat_message:
|
|
69927
|
+
type: integer
|
|
69928
|
+
readOnly: true
|
|
69929
|
+
nullable: true
|
|
69894
69930
|
version_number:
|
|
69895
69931
|
type: integer
|
|
69896
69932
|
readOnly: true
|
|
@@ -69903,24 +69939,22 @@ components:
|
|
|
69903
69939
|
description: When this version was created
|
|
69904
69940
|
created_by:
|
|
69905
69941
|
type: string
|
|
69906
|
-
readOnly: true
|
|
69907
69942
|
description: Identifier for who created this version (e.g., 'llm', 'user:username')
|
|
69943
|
+
maxLength: 100
|
|
69908
69944
|
change_summary:
|
|
69909
69945
|
type: string
|
|
69910
|
-
readOnly: true
|
|
69911
69946
|
description: Optional summary of what changed in this version
|
|
69912
|
-
|
|
69913
|
-
type: integer
|
|
69914
|
-
description: Length of the version content in characters
|
|
69915
|
-
readOnly: true
|
|
69947
|
+
maxLength: 500
|
|
69916
69948
|
required:
|
|
69917
69949
|
- artifact
|
|
69918
|
-
-
|
|
69950
|
+
- chat_message
|
|
69951
|
+
- content
|
|
69919
69952
|
- content_length
|
|
69920
|
-
- created_by
|
|
69921
69953
|
- date_created
|
|
69922
69954
|
- id
|
|
69923
69955
|
- is_current
|
|
69956
|
+
- session_id
|
|
69957
|
+
- title
|
|
69924
69958
|
- version_number
|
|
69925
69959
|
Assertion:
|
|
69926
69960
|
type: object
|
|
@@ -70726,7 +70760,12 @@ components:
|
|
|
70726
70760
|
nullable: true
|
|
70727
70761
|
files:
|
|
70728
70762
|
readOnly: true
|
|
70763
|
+
artifact_versions:
|
|
70764
|
+
type: array
|
|
70765
|
+
items:
|
|
70766
|
+
$ref: '#/components/schemas/ArtifactVersion'
|
|
70729
70767
|
required:
|
|
70768
|
+
- artifact_versions
|
|
70730
70769
|
- feedback
|
|
70731
70770
|
- files
|
|
70732
70771
|
- id
|
|
@@ -70823,7 +70862,12 @@ components:
|
|
|
70823
70862
|
$ref: '#/components/schemas/ToolResponse'
|
|
70824
70863
|
enable_artifacts:
|
|
70825
70864
|
type: boolean
|
|
70865
|
+
artifacts:
|
|
70866
|
+
type: array
|
|
70867
|
+
items:
|
|
70868
|
+
$ref: '#/components/schemas/Artifact'
|
|
70826
70869
|
required:
|
|
70870
|
+
- artifacts
|
|
70827
70871
|
- session_id
|
|
70828
70872
|
- tools
|
|
70829
70873
|
CheckDocumentTrainingStatus:
|
|
@@ -79685,7 +79729,7 @@ components:
|
|
|
79685
79729
|
type: array
|
|
79686
79730
|
items:
|
|
79687
79731
|
$ref: '#/components/schemas/ArtifactList'
|
|
79688
|
-
|
|
79732
|
+
PaginatedArtifactVersionList:
|
|
79689
79733
|
type: object
|
|
79690
79734
|
required:
|
|
79691
79735
|
- count
|
|
@@ -79707,7 +79751,7 @@ components:
|
|
|
79707
79751
|
results:
|
|
79708
79752
|
type: array
|
|
79709
79753
|
items:
|
|
79710
|
-
$ref: '#/components/schemas/
|
|
79754
|
+
$ref: '#/components/schemas/ArtifactVersion'
|
|
79711
79755
|
PaginatedAssertionsResponse:
|
|
79712
79756
|
type: object
|
|
79713
79757
|
description: |-
|
|
@@ -81265,15 +81309,13 @@ components:
|
|
|
81265
81309
|
maxLength: 255
|
|
81266
81310
|
content:
|
|
81267
81311
|
type: string
|
|
81268
|
-
description:
|
|
81312
|
+
description: Content of the artifact
|
|
81313
|
+
readOnly: true
|
|
81269
81314
|
file_extension:
|
|
81270
81315
|
type: string
|
|
81271
81316
|
readOnly: true
|
|
81272
81317
|
description: The extension of the file for the artifact. eg. `py`, `md`,
|
|
81273
81318
|
`html`, `json`, `csv`, etc
|
|
81274
|
-
chat_message:
|
|
81275
|
-
type: integer
|
|
81276
|
-
readOnly: true
|
|
81277
81319
|
llm_name:
|
|
81278
81320
|
type: string
|
|
81279
81321
|
readOnly: true
|
|
@@ -81297,7 +81339,7 @@ components:
|
|
|
81297
81339
|
session_id:
|
|
81298
81340
|
type: string
|
|
81299
81341
|
format: uuid
|
|
81300
|
-
|
|
81342
|
+
nullable: true
|
|
81301
81343
|
readOnly: true
|
|
81302
81344
|
current_version_number:
|
|
81303
81345
|
type: integer
|
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -35,7 +35,6 @@ export type { AppleVerifyTransactionId } from './models/AppleVerifyTransactionId
|
|
|
35
35
|
export type { Artifact } from './models/Artifact';
|
|
36
36
|
export type { ArtifactList } from './models/ArtifactList';
|
|
37
37
|
export type { ArtifactVersion } from './models/ArtifactVersion';
|
|
38
|
-
export type { ArtifactVersionList } from './models/ArtifactVersionList';
|
|
39
38
|
export type { Assertion } from './models/Assertion';
|
|
40
39
|
export type { AssociateAccountResponse } from './models/AssociateAccountResponse';
|
|
41
40
|
export type { AssociateAppleAccount } from './models/AssociateAppleAccount';
|
|
@@ -390,7 +389,7 @@ export type { OverTimeWithTotal } from './models/OverTimeWithTotal';
|
|
|
390
389
|
export type { PageContent } from './models/PageContent';
|
|
391
390
|
export type { PaginatedAIGeneratedImageList } from './models/PaginatedAIGeneratedImageList';
|
|
392
391
|
export type { PaginatedArtifactListList } from './models/PaginatedArtifactListList';
|
|
393
|
-
export type {
|
|
392
|
+
export type { PaginatedArtifactVersionList } from './models/PaginatedArtifactVersionList';
|
|
394
393
|
export type { PaginatedAssertionsResponse } from './models/PaginatedAssertionsResponse';
|
|
395
394
|
export type { PaginatedConversationsList } from './models/PaginatedConversationsList';
|
|
396
395
|
export type { PaginatedCourseAccessRequest } from './models/PaginatedCourseAccessRequest';
|
package/src/models/Artifact.ts
CHANGED
|
@@ -33,14 +33,13 @@ export type Artifact = {
|
|
|
33
33
|
*/
|
|
34
34
|
title: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Content of the artifact
|
|
37
37
|
*/
|
|
38
|
-
content: string;
|
|
38
|
+
readonly content: string;
|
|
39
39
|
/**
|
|
40
40
|
* The extension of the file for the artifact. eg. `py`, `md`, `html`, `json`, `csv`, etc
|
|
41
41
|
*/
|
|
42
42
|
readonly file_extension: string;
|
|
43
|
-
readonly chat_message: number;
|
|
44
43
|
readonly llm_name: string;
|
|
45
44
|
readonly llm_provider: string;
|
|
46
45
|
readonly date_created: string;
|
|
@@ -53,10 +52,7 @@ export type Artifact = {
|
|
|
53
52
|
* Username of the student who owns this artifact
|
|
54
53
|
*/
|
|
55
54
|
readonly username: string;
|
|
56
|
-
|
|
57
|
-
* UUID of the session that generated this artifact
|
|
58
|
-
*/
|
|
59
|
-
readonly session_id: string;
|
|
55
|
+
readonly session_id: string | null;
|
|
60
56
|
/**
|
|
61
57
|
* Version number of the current version
|
|
62
58
|
*/
|
|
@@ -38,10 +38,7 @@ export type ArtifactList = {
|
|
|
38
38
|
* Username of the student who owns this artifact
|
|
39
39
|
*/
|
|
40
40
|
readonly username: string;
|
|
41
|
-
|
|
42
|
-
* UUID of the session that generated this artifact
|
|
43
|
-
*/
|
|
44
|
-
readonly session_id: string;
|
|
41
|
+
readonly session_id: string | null;
|
|
45
42
|
/**
|
|
46
43
|
* Length of the artifact content in characters
|
|
47
44
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { Artifact } from './Artifact';
|
|
5
6
|
/**
|
|
6
7
|
* Serializer for ArtifactVersion model.
|
|
7
8
|
*
|
|
@@ -9,18 +10,28 @@
|
|
|
9
10
|
*/
|
|
10
11
|
export type ArtifactVersion = {
|
|
11
12
|
readonly id: number;
|
|
13
|
+
artifact: Artifact;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Get the title of the artifact version.
|
|
14
16
|
*/
|
|
15
|
-
readonly
|
|
17
|
+
readonly title: string;
|
|
16
18
|
/**
|
|
17
19
|
* The markdown-styled content of this artifact version
|
|
18
20
|
*/
|
|
19
21
|
content: string;
|
|
22
|
+
/**
|
|
23
|
+
* UUID of the session that generated this artifact version
|
|
24
|
+
*/
|
|
25
|
+
readonly session_id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Length of the version content in characters
|
|
28
|
+
*/
|
|
29
|
+
readonly content_length: number;
|
|
20
30
|
/**
|
|
21
31
|
* Whether this version is the current/active version
|
|
22
32
|
*/
|
|
23
33
|
readonly is_current: boolean;
|
|
34
|
+
readonly chat_message: number | null;
|
|
24
35
|
/**
|
|
25
36
|
* Sequential version number for display purposes
|
|
26
37
|
*/
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { ArtifactVersion } from './ArtifactVersion';
|
|
5
6
|
export type ChatHistory = {
|
|
6
7
|
readonly id: number;
|
|
7
8
|
readonly message: any;
|
|
@@ -10,5 +11,6 @@ export type ChatHistory = {
|
|
|
10
11
|
readonly feedback: any;
|
|
11
12
|
document_sources?: any;
|
|
12
13
|
readonly files: any;
|
|
14
|
+
artifact_versions: Array<ArtifactVersion>;
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { Artifact } from './Artifact';
|
|
5
6
|
import type { ToolResponse } from './ToolResponse';
|
|
6
7
|
export type ChatSessionResponse = {
|
|
7
8
|
session_id: string;
|
|
8
9
|
tools: Array<ToolResponse>;
|
|
9
10
|
enable_artifacts?: boolean;
|
|
11
|
+
artifacts: Array<Artifact>;
|
|
10
12
|
};
|
|
11
13
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
import type {
|
|
6
|
-
export type
|
|
5
|
+
import type { ArtifactVersion } from './ArtifactVersion';
|
|
6
|
+
export type PaginatedArtifactVersionList = {
|
|
7
7
|
count: number;
|
|
8
8
|
next?: string | null;
|
|
9
9
|
previous?: string | null;
|
|
10
|
-
results: Array<
|
|
10
|
+
results: Array<ArtifactVersion>;
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -33,14 +33,13 @@ export type PatchedArtifact = {
|
|
|
33
33
|
*/
|
|
34
34
|
title?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Content of the artifact
|
|
37
37
|
*/
|
|
38
|
-
content?: string;
|
|
38
|
+
readonly content?: string;
|
|
39
39
|
/**
|
|
40
40
|
* The extension of the file for the artifact. eg. `py`, `md`, `html`, `json`, `csv`, etc
|
|
41
41
|
*/
|
|
42
42
|
readonly file_extension?: string;
|
|
43
|
-
readonly chat_message?: number;
|
|
44
43
|
readonly llm_name?: string;
|
|
45
44
|
readonly llm_provider?: string;
|
|
46
45
|
readonly date_created?: string;
|
|
@@ -53,10 +52,7 @@ export type PatchedArtifact = {
|
|
|
53
52
|
* Username of the student who owns this artifact
|
|
54
53
|
*/
|
|
55
54
|
readonly username?: string;
|
|
56
|
-
|
|
57
|
-
* UUID of the session that generated this artifact
|
|
58
|
-
*/
|
|
59
|
-
readonly session_id?: string;
|
|
55
|
+
readonly session_id?: string | null;
|
|
60
56
|
/**
|
|
61
57
|
* Version number of the current version
|
|
62
58
|
*/
|
|
@@ -78,7 +78,7 @@ import type { MessageViewUpdatResponse } from '../models/MessageViewUpdatRespons
|
|
|
78
78
|
import type { ModerationLog } from '../models/ModerationLog';
|
|
79
79
|
import type { PaginatedAIGeneratedImageList } from '../models/PaginatedAIGeneratedImageList';
|
|
80
80
|
import type { PaginatedArtifactListList } from '../models/PaginatedArtifactListList';
|
|
81
|
-
import type {
|
|
81
|
+
import type { PaginatedArtifactVersionList } from '../models/PaginatedArtifactVersionList';
|
|
82
82
|
import type { PaginatedCourseCreationTaskFileList } from '../models/PaginatedCourseCreationTaskFileList';
|
|
83
83
|
import type { PaginatedCourseCreationTaskList } from '../models/PaginatedCourseCreationTaskList';
|
|
84
84
|
import type { PaginatedDisclaimerAgreementList } from '../models/PaginatedDisclaimerAgreementList';
|
|
@@ -1582,7 +1582,6 @@ export class AiMentorService {
|
|
|
1582
1582
|
public static aiMentorOrgsUsersArtifactsList({
|
|
1583
1583
|
org,
|
|
1584
1584
|
userId,
|
|
1585
|
-
chatMessageId,
|
|
1586
1585
|
fileExtension,
|
|
1587
1586
|
llmName,
|
|
1588
1587
|
llmProvider,
|
|
@@ -1596,10 +1595,6 @@ export class AiMentorService {
|
|
|
1596
1595
|
}: {
|
|
1597
1596
|
org: string,
|
|
1598
1597
|
userId: string,
|
|
1599
|
-
/**
|
|
1600
|
-
* Filter by specific chat message UUID
|
|
1601
|
-
*/
|
|
1602
|
-
chatMessageId?: string,
|
|
1603
1598
|
/**
|
|
1604
1599
|
* Filter by file extension (e.g., 'py', 'md', 'html')
|
|
1605
1600
|
*/
|
|
@@ -1646,7 +1641,6 @@ export class AiMentorService {
|
|
|
1646
1641
|
'user_id': userId,
|
|
1647
1642
|
},
|
|
1648
1643
|
query: {
|
|
1649
|
-
'chat_message_id': chatMessageId,
|
|
1650
1644
|
'file_extension': fileExtension,
|
|
1651
1645
|
'llm_name': llmName,
|
|
1652
1646
|
'llm_provider': llmProvider,
|
|
@@ -1724,7 +1718,7 @@ export class AiMentorService {
|
|
|
1724
1718
|
}
|
|
1725
1719
|
/**
|
|
1726
1720
|
* Update an artifact
|
|
1727
|
-
* Update all fields of an artifact (excluding
|
|
1721
|
+
* Update all fields of an artifact (excluding session reference).
|
|
1728
1722
|
* @returns Artifact
|
|
1729
1723
|
* @throws ApiError
|
|
1730
1724
|
*/
|
|
@@ -1834,14 +1828,13 @@ export class AiMentorService {
|
|
|
1834
1828
|
/**
|
|
1835
1829
|
* List artifact versions
|
|
1836
1830
|
* Retrieve all versions for a specific artifact.
|
|
1837
|
-
* @returns
|
|
1831
|
+
* @returns PaginatedArtifactVersionList
|
|
1838
1832
|
* @throws ApiError
|
|
1839
1833
|
*/
|
|
1840
1834
|
public static aiMentorOrgsUsersArtifactsVersionsList({
|
|
1841
1835
|
id,
|
|
1842
1836
|
org,
|
|
1843
1837
|
userId,
|
|
1844
|
-
chatMessageId,
|
|
1845
1838
|
fileExtension,
|
|
1846
1839
|
llmName,
|
|
1847
1840
|
llmProvider,
|
|
@@ -1859,7 +1852,6 @@ export class AiMentorService {
|
|
|
1859
1852
|
id: number,
|
|
1860
1853
|
org: string,
|
|
1861
1854
|
userId: string,
|
|
1862
|
-
chatMessageId?: string,
|
|
1863
1855
|
fileExtension?: string,
|
|
1864
1856
|
llmName?: string,
|
|
1865
1857
|
llmProvider?: string,
|
|
@@ -1882,7 +1874,7 @@ export class AiMentorService {
|
|
|
1882
1874
|
search?: string,
|
|
1883
1875
|
sessionId?: string,
|
|
1884
1876
|
username?: string,
|
|
1885
|
-
}): CancelablePromise<
|
|
1877
|
+
}): CancelablePromise<PaginatedArtifactVersionList> {
|
|
1886
1878
|
return __request(OpenAPI, {
|
|
1887
1879
|
method: 'GET',
|
|
1888
1880
|
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/',
|
|
@@ -1892,7 +1884,6 @@ export class AiMentorService {
|
|
|
1892
1884
|
'user_id': userId,
|
|
1893
1885
|
},
|
|
1894
1886
|
query: {
|
|
1895
|
-
'chat_message_id': chatMessageId,
|
|
1896
1887
|
'file_extension': fileExtension,
|
|
1897
1888
|
'llm_name': llmName,
|
|
1898
1889
|
'llm_provider': llmProvider,
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lightweight serializer for listing artifact versions.
|
|
3
|
-
* Excludes the potentially large content field.
|
|
4
|
-
*/
|
|
5
|
-
export type ArtifactVersionList = {
|
|
6
|
-
readonly id: number;
|
|
7
|
-
/**
|
|
8
|
-
* The artifact this version belongs to
|
|
9
|
-
*/
|
|
10
|
-
readonly artifact: number;
|
|
11
|
-
/**
|
|
12
|
-
* Whether this version is the current/active version
|
|
13
|
-
*/
|
|
14
|
-
readonly is_current: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Sequential version number for display purposes
|
|
17
|
-
*/
|
|
18
|
-
readonly version_number: number;
|
|
19
|
-
/**
|
|
20
|
-
* When this version was created
|
|
21
|
-
*/
|
|
22
|
-
readonly date_created: string;
|
|
23
|
-
/**
|
|
24
|
-
* Identifier for who created this version (e.g., 'llm', 'user:username')
|
|
25
|
-
*/
|
|
26
|
-
readonly created_by: string;
|
|
27
|
-
/**
|
|
28
|
-
* Optional summary of what changed in this version
|
|
29
|
-
*/
|
|
30
|
-
readonly change_summary: string;
|
|
31
|
-
/**
|
|
32
|
-
* Length of the version content in characters
|
|
33
|
-
*/
|
|
34
|
-
readonly content_length: number;
|
|
35
|
-
};
|