@iblai/iblai-api 4.99.1-ai → 4.100.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.
@@ -2,6 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { ArtifactList } from './ArtifactList';
5
6
  /**
6
7
  * Serializer for ArtifactVersion model.
7
8
  *
@@ -9,10 +10,7 @@
9
10
  */
10
11
  export type ArtifactVersion = {
11
12
  readonly id: number;
12
- /**
13
- * The artifact this version belongs to
14
- */
15
- readonly artifact: number;
13
+ artifact: ArtifactList;
16
14
  /**
17
15
  * The markdown-styled content of this artifact version
18
16
  */
@@ -21,6 +19,7 @@ export type ArtifactVersion = {
21
19
  * Whether this version is the current/active version
22
20
  */
23
21
  readonly is_current: boolean;
22
+ readonly chat_message: number | null;
24
23
  /**
25
24
  * Sequential version number for display purposes
26
25
  */
@@ -2,16 +2,14 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { ArtifactList } from './ArtifactList';
5
6
  /**
6
7
  * Lightweight serializer for listing artifact versions.
7
8
  * Excludes the potentially large content field.
8
9
  */
9
10
  export type ArtifactVersionList = {
10
11
  readonly id: number;
11
- /**
12
- * The artifact this version belongs to
13
- */
14
- readonly artifact: number;
12
+ artifact: ArtifactList;
15
13
  /**
16
14
  * Whether this version is the current/active version
17
15
  */
@@ -36,5 +34,10 @@ export type ArtifactVersionList = {
36
34
  * Length of the version content in characters
37
35
  */
38
36
  readonly content_length: number;
37
+ readonly chat_message: number | null;
38
+ /**
39
+ * UUID of the session that generated this artifact version
40
+ */
41
+ readonly session_id: string;
39
42
  };
40
43
 
@@ -2,6 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { ArtifactVersionList } from './ArtifactVersionList';
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<ArtifactVersionList>;
13
15
  };
14
16
 
@@ -2,10 +2,12 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { ArtifactList } from './ArtifactList';
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<ArtifactList>;
10
12
  };
11
13
 
@@ -33,14 +33,13 @@ export type PatchedArtifact = {
33
33
  */
34
34
  title?: string;
35
35
  /**
36
- * The markdown-styled content of the artifact
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
  */
@@ -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 chat_message reference).
1721
+ * Update all fields of an artifact (excluding session reference).
1728
1722
  * @returns Artifact
1729
1723
  * @throws ApiError
1730
1724
  */
@@ -1841,7 +1835,6 @@ export class AiMentorService {
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,
@@ -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,