@iblai/iblai-api 4.91.2-ai → 4.91.2-canvas-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 +129 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +129 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +129 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/models/Artifact.d.ts +8 -0
- package/dist/types/models/ArtifactVersion.d.ts +36 -0
- package/dist/types/models/ArtifactVersionList.d.ts +35 -0
- package/dist/types/models/PaginatedArtifactVersionListList.d.ts +7 -0
- package/dist/types/models/PatchedArtifact.d.ts +8 -0
- package/dist/types/models/SetCurrentVersionRequest.d.ts +3 -0
- package/dist/types/services/AiMentorService.d.ts +74 -0
- package/package.json +1 -1
- package/sdk_schema.yml +381 -10
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +4 -0
- package/src/models/Artifact.ts +8 -0
- package/src/models/ArtifactVersion.ts +41 -0
- package/src/models/ArtifactVersionList.ts +40 -0
- package/src/models/PaginatedArtifactVersionListList.ts +12 -0
- package/src/models/PatchedArtifact.ts +8 -0
- package/src/models/SetCurrentVersionRequest.ts +8 -0
- package/src/services/AiMentorService.ts +184 -5
package/src/models/Artifact.ts
CHANGED
|
@@ -57,5 +57,13 @@ export type Artifact = {
|
|
|
57
57
|
* UUID of the session that generated this artifact
|
|
58
58
|
*/
|
|
59
59
|
readonly session_id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Version number of the current version
|
|
62
|
+
*/
|
|
63
|
+
readonly current_version_number: number;
|
|
64
|
+
/**
|
|
65
|
+
* Total number of versions for this artifact
|
|
66
|
+
*/
|
|
67
|
+
readonly version_count: number;
|
|
60
68
|
};
|
|
61
69
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for ArtifactVersion model.
|
|
7
|
+
*
|
|
8
|
+
* Represents a single version of an artifact with its content and metadata.
|
|
9
|
+
*/
|
|
10
|
+
export type ArtifactVersion = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The artifact this version belongs to
|
|
14
|
+
*/
|
|
15
|
+
readonly artifact: number;
|
|
16
|
+
/**
|
|
17
|
+
* The markdown-styled content of this artifact version
|
|
18
|
+
*/
|
|
19
|
+
content: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this version is the current/active version
|
|
22
|
+
*/
|
|
23
|
+
readonly is_current: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Sequential version number for display purposes
|
|
26
|
+
*/
|
|
27
|
+
readonly version_number: number;
|
|
28
|
+
/**
|
|
29
|
+
* When this version was created
|
|
30
|
+
*/
|
|
31
|
+
readonly date_created: string;
|
|
32
|
+
/**
|
|
33
|
+
* Identifier for who created this version (e.g., 'llm', 'user:username')
|
|
34
|
+
*/
|
|
35
|
+
created_by?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional summary of what changed in this version
|
|
38
|
+
*/
|
|
39
|
+
change_summary?: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Lightweight serializer for listing artifact versions.
|
|
7
|
+
* Excludes the potentially large content field.
|
|
8
|
+
*/
|
|
9
|
+
export type ArtifactVersionList = {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
/**
|
|
12
|
+
* The artifact this version belongs to
|
|
13
|
+
*/
|
|
14
|
+
readonly artifact: number;
|
|
15
|
+
/**
|
|
16
|
+
* Whether this version is the current/active version
|
|
17
|
+
*/
|
|
18
|
+
readonly is_current: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Sequential version number for display purposes
|
|
21
|
+
*/
|
|
22
|
+
readonly version_number: number;
|
|
23
|
+
/**
|
|
24
|
+
* When this version was created
|
|
25
|
+
*/
|
|
26
|
+
readonly date_created: string;
|
|
27
|
+
/**
|
|
28
|
+
* Identifier for who created this version (e.g., 'llm', 'user:username')
|
|
29
|
+
*/
|
|
30
|
+
readonly created_by: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional summary of what changed in this version
|
|
33
|
+
*/
|
|
34
|
+
readonly change_summary: string;
|
|
35
|
+
/**
|
|
36
|
+
* Length of the version content in characters
|
|
37
|
+
*/
|
|
38
|
+
readonly content_length: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ArtifactVersionList } from './ArtifactVersionList';
|
|
6
|
+
export type PaginatedArtifactVersionListList = {
|
|
7
|
+
count: number;
|
|
8
|
+
next?: string | null;
|
|
9
|
+
previous?: string | null;
|
|
10
|
+
results: Array<ArtifactVersionList>;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -57,5 +57,13 @@ export type PatchedArtifact = {
|
|
|
57
57
|
* UUID of the session that generated this artifact
|
|
58
58
|
*/
|
|
59
59
|
readonly session_id?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Version number of the current version
|
|
62
|
+
*/
|
|
63
|
+
readonly current_version_number?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Total number of versions for this artifact
|
|
66
|
+
*/
|
|
67
|
+
readonly version_count?: number;
|
|
60
68
|
};
|
|
61
69
|
|
|
@@ -9,6 +9,7 @@ import type { AIGeneratedImage } from '../models/AIGeneratedImage';
|
|
|
9
9
|
import type { AIUserProfileMemoryRelation } from '../models/AIUserProfileMemoryRelation';
|
|
10
10
|
import type { AIUserProfileRequest } from '../models/AIUserProfileRequest';
|
|
11
11
|
import type { Artifact } from '../models/Artifact';
|
|
12
|
+
import type { ArtifactVersion } from '../models/ArtifactVersion';
|
|
12
13
|
import type { AssumedKnowledge } from '../models/AssumedKnowledge';
|
|
13
14
|
import type { AudioToTextRequest } from '../models/AudioToTextRequest';
|
|
14
15
|
import type { AudioToTextResponse } from '../models/AudioToTextResponse';
|
|
@@ -76,6 +77,7 @@ import type { MessageViewUpdatResponse } from '../models/MessageViewUpdatRespons
|
|
|
76
77
|
import type { ModerationLog } from '../models/ModerationLog';
|
|
77
78
|
import type { PaginatedAIGeneratedImageList } from '../models/PaginatedAIGeneratedImageList';
|
|
78
79
|
import type { PaginatedArtifactListList } from '../models/PaginatedArtifactListList';
|
|
80
|
+
import type { PaginatedArtifactVersionListList } from '../models/PaginatedArtifactVersionListList';
|
|
79
81
|
import type { PaginatedCourseCreationTaskFileList } from '../models/PaginatedCourseCreationTaskFileList';
|
|
80
82
|
import type { PaginatedCourseCreationTaskList } from '../models/PaginatedCourseCreationTaskList';
|
|
81
83
|
import type { PaginatedDisclaimerAgreementList } from '../models/PaginatedDisclaimerAgreementList';
|
|
@@ -142,6 +144,7 @@ import type { SessionBrowserScreenshot } from '../models/SessionBrowserScreensho
|
|
|
142
144
|
import type { SessionDetail } from '../models/SessionDetail';
|
|
143
145
|
import type { SessionMemoryAttachment } from '../models/SessionMemoryAttachment';
|
|
144
146
|
import type { SessionMemoryStorage } from '../models/SessionMemoryStorage';
|
|
147
|
+
import type { SetCurrentVersionRequest } from '../models/SetCurrentVersionRequest';
|
|
145
148
|
import type { ShareableMentorLink } from '../models/ShareableMentorLink';
|
|
146
149
|
import type { ShellLogs } from '../models/ShellLogs';
|
|
147
150
|
import type { SpacedRepetitionLearningPath } from '../models/SpacedRepetitionLearningPath';
|
|
@@ -1664,6 +1667,36 @@ export class AiMentorService {
|
|
|
1664
1667
|
* @returns Artifact
|
|
1665
1668
|
* @throws ApiError
|
|
1666
1669
|
*/
|
|
1670
|
+
public static aiMentorOrgsUsersArtifactsCreate({
|
|
1671
|
+
org,
|
|
1672
|
+
userId,
|
|
1673
|
+
requestBody,
|
|
1674
|
+
}: {
|
|
1675
|
+
org: string,
|
|
1676
|
+
userId: string,
|
|
1677
|
+
requestBody: Artifact,
|
|
1678
|
+
}): CancelablePromise<Artifact> {
|
|
1679
|
+
return __request(OpenAPI, {
|
|
1680
|
+
method: 'POST',
|
|
1681
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/',
|
|
1682
|
+
path: {
|
|
1683
|
+
'org': org,
|
|
1684
|
+
'user_id': userId,
|
|
1685
|
+
},
|
|
1686
|
+
body: requestBody,
|
|
1687
|
+
mediaType: 'application/json',
|
|
1688
|
+
errors: {
|
|
1689
|
+
401: `Authentication required`,
|
|
1690
|
+
403: `Permission denied`,
|
|
1691
|
+
404: `Artifact not found`,
|
|
1692
|
+
},
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Retrieve a specific artifact.
|
|
1697
|
+
* @returns Artifact
|
|
1698
|
+
* @throws ApiError
|
|
1699
|
+
*/
|
|
1667
1700
|
public static aiMentorOrgsUsersArtifactsRetrieve({
|
|
1668
1701
|
id,
|
|
1669
1702
|
org,
|
|
@@ -1684,11 +1717,6 @@ export class AiMentorService {
|
|
|
1684
1717
|
'org': org,
|
|
1685
1718
|
'user_id': userId,
|
|
1686
1719
|
},
|
|
1687
|
-
errors: {
|
|
1688
|
-
401: `Authentication required`,
|
|
1689
|
-
403: `Permission denied`,
|
|
1690
|
-
404: `Artifact not found`,
|
|
1691
|
-
},
|
|
1692
1720
|
});
|
|
1693
1721
|
}
|
|
1694
1722
|
/**
|
|
@@ -1800,6 +1828,157 @@ export class AiMentorService {
|
|
|
1800
1828
|
},
|
|
1801
1829
|
});
|
|
1802
1830
|
}
|
|
1831
|
+
/**
|
|
1832
|
+
* List artifact versions
|
|
1833
|
+
* Retrieve all versions for a specific artifact.
|
|
1834
|
+
* @returns PaginatedArtifactVersionListList
|
|
1835
|
+
* @throws ApiError
|
|
1836
|
+
*/
|
|
1837
|
+
public static aiMentorOrgsUsersArtifactsVersionsList({
|
|
1838
|
+
id,
|
|
1839
|
+
org,
|
|
1840
|
+
userId,
|
|
1841
|
+
chatMessageId,
|
|
1842
|
+
fileExtension,
|
|
1843
|
+
llmName,
|
|
1844
|
+
llmProvider,
|
|
1845
|
+
mentorId,
|
|
1846
|
+
ordering,
|
|
1847
|
+
page,
|
|
1848
|
+
pageSize,
|
|
1849
|
+
search,
|
|
1850
|
+
sessionId,
|
|
1851
|
+
username,
|
|
1852
|
+
}: {
|
|
1853
|
+
/**
|
|
1854
|
+
* A unique integer value identifying this artifact.
|
|
1855
|
+
*/
|
|
1856
|
+
id: number,
|
|
1857
|
+
org: string,
|
|
1858
|
+
userId: string,
|
|
1859
|
+
chatMessageId?: string,
|
|
1860
|
+
fileExtension?: string,
|
|
1861
|
+
llmName?: string,
|
|
1862
|
+
llmProvider?: string,
|
|
1863
|
+
mentorId?: string,
|
|
1864
|
+
/**
|
|
1865
|
+
* Which field to use when ordering the results.
|
|
1866
|
+
*/
|
|
1867
|
+
ordering?: string,
|
|
1868
|
+
/**
|
|
1869
|
+
* A page number within the paginated result set.
|
|
1870
|
+
*/
|
|
1871
|
+
page?: number,
|
|
1872
|
+
/**
|
|
1873
|
+
* Number of results to return per page.
|
|
1874
|
+
*/
|
|
1875
|
+
pageSize?: number,
|
|
1876
|
+
/**
|
|
1877
|
+
* A search term.
|
|
1878
|
+
*/
|
|
1879
|
+
search?: string,
|
|
1880
|
+
sessionId?: string,
|
|
1881
|
+
username?: string,
|
|
1882
|
+
}): CancelablePromise<PaginatedArtifactVersionListList> {
|
|
1883
|
+
return __request(OpenAPI, {
|
|
1884
|
+
method: 'GET',
|
|
1885
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/',
|
|
1886
|
+
path: {
|
|
1887
|
+
'id': id,
|
|
1888
|
+
'org': org,
|
|
1889
|
+
'user_id': userId,
|
|
1890
|
+
},
|
|
1891
|
+
query: {
|
|
1892
|
+
'chat_message_id': chatMessageId,
|
|
1893
|
+
'file_extension': fileExtension,
|
|
1894
|
+
'llm_name': llmName,
|
|
1895
|
+
'llm_provider': llmProvider,
|
|
1896
|
+
'mentor_id': mentorId,
|
|
1897
|
+
'ordering': ordering,
|
|
1898
|
+
'page': page,
|
|
1899
|
+
'page_size': pageSize,
|
|
1900
|
+
'search': search,
|
|
1901
|
+
'session_id': sessionId,
|
|
1902
|
+
'username': username,
|
|
1903
|
+
},
|
|
1904
|
+
errors: {
|
|
1905
|
+
404: `Artifact not found`,
|
|
1906
|
+
},
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Get specific artifact version
|
|
1911
|
+
* Retrieve a specific version of an artifact by version ID.
|
|
1912
|
+
* @returns ArtifactVersion
|
|
1913
|
+
* @throws ApiError
|
|
1914
|
+
*/
|
|
1915
|
+
public static aiMentorOrgsUsersArtifactsVersionsRetrieve({
|
|
1916
|
+
id,
|
|
1917
|
+
org,
|
|
1918
|
+
userId,
|
|
1919
|
+
versionId,
|
|
1920
|
+
}: {
|
|
1921
|
+
/**
|
|
1922
|
+
* A unique integer value identifying this artifact.
|
|
1923
|
+
*/
|
|
1924
|
+
id: number,
|
|
1925
|
+
org: string,
|
|
1926
|
+
userId: string,
|
|
1927
|
+
/**
|
|
1928
|
+
* ID of the version to retrieve
|
|
1929
|
+
*/
|
|
1930
|
+
versionId: number,
|
|
1931
|
+
}): CancelablePromise<ArtifactVersion> {
|
|
1932
|
+
return __request(OpenAPI, {
|
|
1933
|
+
method: 'GET',
|
|
1934
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/{version_id}/',
|
|
1935
|
+
path: {
|
|
1936
|
+
'id': id,
|
|
1937
|
+
'org': org,
|
|
1938
|
+
'user_id': userId,
|
|
1939
|
+
'version_id': versionId,
|
|
1940
|
+
},
|
|
1941
|
+
errors: {
|
|
1942
|
+
404: `Version not found`,
|
|
1943
|
+
},
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* Set artifact version as current
|
|
1948
|
+
* Mark a specific version as the current/active version for an artifact.
|
|
1949
|
+
* @returns ArtifactVersion
|
|
1950
|
+
* @throws ApiError
|
|
1951
|
+
*/
|
|
1952
|
+
public static aiMentorOrgsUsersArtifactsVersionsSetCurrentCreate({
|
|
1953
|
+
id,
|
|
1954
|
+
org,
|
|
1955
|
+
userId,
|
|
1956
|
+
requestBody,
|
|
1957
|
+
}: {
|
|
1958
|
+
/**
|
|
1959
|
+
* A unique integer value identifying this artifact.
|
|
1960
|
+
*/
|
|
1961
|
+
id: number,
|
|
1962
|
+
org: string,
|
|
1963
|
+
userId: string,
|
|
1964
|
+
requestBody: SetCurrentVersionRequest,
|
|
1965
|
+
}): CancelablePromise<ArtifactVersion> {
|
|
1966
|
+
return __request(OpenAPI, {
|
|
1967
|
+
method: 'POST',
|
|
1968
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/set-current/',
|
|
1969
|
+
path: {
|
|
1970
|
+
'id': id,
|
|
1971
|
+
'org': org,
|
|
1972
|
+
'user_id': userId,
|
|
1973
|
+
},
|
|
1974
|
+
body: requestBody,
|
|
1975
|
+
mediaType: 'application/json',
|
|
1976
|
+
errors: {
|
|
1977
|
+
400: `Invalid request`,
|
|
1978
|
+
404: `Version not found`,
|
|
1979
|
+
},
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1803
1982
|
/**
|
|
1804
1983
|
* Retrieve assumed knowledge levels.
|
|
1805
1984
|
*
|