@iblai/iblai-api 2025.11.14-teams-bot-renovation-3-ai → 2025.11.18-teams-bot-renovation-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 +502 -146
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +502 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +502 -146
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +7 -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/CredentialProviderConfig.d.ts +29 -0
- package/dist/types/models/ExternalCredentialMapping.d.ts +39 -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/models/TenantSetting.d.ts +5 -0
- package/dist/types/services/AiAccountService.d.ts +30 -1
- package/dist/types/services/AiMentorService.d.ts +74 -0
- package/dist/types/services/CredentialsService.d.ts +236 -69
- package/package.json +1 -1
- package/sdk_schema.yml +932 -91
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +7 -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/CredentialProviderConfig.ts +34 -0
- package/src/models/ExternalCredentialMapping.ts +44 -0
- package/src/models/PaginatedArtifactVersionListList.ts +12 -0
- package/src/models/PatchedArtifact.ts +8 -0
- package/src/models/SetCurrentVersionRequest.ts +8 -0
- package/src/models/TenantSetting.ts +10 -0
- package/src/services/AiAccountService.ts +58 -0
- package/src/services/AiMentorService.ts +184 -5
- package/src/services/CredentialsService.ts +961 -756
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -34,6 +34,8 @@ export type { AppleSubscriptionStatusView } from './models/AppleSubscriptionStat
|
|
|
34
34
|
export type { AppleVerifyTransactionId } from './models/AppleVerifyTransactionId';
|
|
35
35
|
export type { Artifact } from './models/Artifact';
|
|
36
36
|
export type { ArtifactList } from './models/ArtifactList';
|
|
37
|
+
export type { ArtifactVersion } from './models/ArtifactVersion';
|
|
38
|
+
export type { ArtifactVersionList } from './models/ArtifactVersionList';
|
|
37
39
|
export type { Assertion } from './models/Assertion';
|
|
38
40
|
export type { AssociateAccountResponse } from './models/AssociateAccountResponse';
|
|
39
41
|
export type { AssociateAppleAccount } from './models/AssociateAppleAccount';
|
|
@@ -177,6 +179,7 @@ export type { CourseSuggestionCreate } from './models/CourseSuggestionCreate';
|
|
|
177
179
|
export type { CourseSuggestionDetail } from './models/CourseSuggestionDetail';
|
|
178
180
|
export { CrawlerPatternTypeEnum } from './models/CrawlerPatternTypeEnum';
|
|
179
181
|
export type { Credential } from './models/Credential';
|
|
182
|
+
export type { CredentialProviderConfig } from './models/CredentialProviderConfig';
|
|
180
183
|
export type { CredentialRequest } from './models/CredentialRequest';
|
|
181
184
|
export type { CrontabSchedule } from './models/CrontabSchedule';
|
|
182
185
|
export type { CurrentUsersResponse } from './models/CurrentUsersResponse';
|
|
@@ -222,6 +225,7 @@ export type { Entity } from './models/Entity';
|
|
|
222
225
|
export { EntityTypeEnum } from './models/EntityTypeEnum';
|
|
223
226
|
export type { ErrorResponse } from './models/ErrorResponse';
|
|
224
227
|
export type { Experience } from './models/Experience';
|
|
228
|
+
export type { ExternalCredentialMapping } from './models/ExternalCredentialMapping';
|
|
225
229
|
export type { ExternalServiceInfo } from './models/ExternalServiceInfo';
|
|
226
230
|
export type { FileUploadURLRequest } from './models/FileUploadURLRequest';
|
|
227
231
|
export type { FileUploadURLResponse } from './models/FileUploadURLResponse';
|
|
@@ -385,6 +389,7 @@ export type { OverTimeWithTotal } from './models/OverTimeWithTotal';
|
|
|
385
389
|
export type { PageContent } from './models/PageContent';
|
|
386
390
|
export type { PaginatedAIGeneratedImageList } from './models/PaginatedAIGeneratedImageList';
|
|
387
391
|
export type { PaginatedArtifactListList } from './models/PaginatedArtifactListList';
|
|
392
|
+
export type { PaginatedArtifactVersionListList } from './models/PaginatedArtifactVersionListList';
|
|
388
393
|
export type { PaginatedAssertionsResponse } from './models/PaginatedAssertionsResponse';
|
|
389
394
|
export type { PaginatedConversationsList } from './models/PaginatedConversationsList';
|
|
390
395
|
export type { PaginatedCourseAccessRequest } from './models/PaginatedCourseAccessRequest';
|
|
@@ -701,6 +706,7 @@ export type { SessionDetail } from './models/SessionDetail';
|
|
|
701
706
|
export type { SessionMemoryAttachment } from './models/SessionMemoryAttachment';
|
|
702
707
|
export type { SessionMemoryStorage } from './models/SessionMemoryStorage';
|
|
703
708
|
export type { SessionsChart } from './models/SessionsChart';
|
|
709
|
+
export type { SetCurrentVersionRequest } from './models/SetCurrentVersionRequest';
|
|
704
710
|
export type { SetStudentLLMAccess } from './models/SetStudentLLMAccess';
|
|
705
711
|
export type { SetStudentMentorCreationPermission } from './models/SetStudentMentorCreationPermission';
|
|
706
712
|
export type { ShareableMentorLink } from './models/ShareableMentorLink';
|
|
@@ -755,6 +761,7 @@ export type { TenantLaunchFailed } from './models/TenantLaunchFailed';
|
|
|
755
761
|
export type { TenantLaunchRequest } from './models/TenantLaunchRequest';
|
|
756
762
|
export type { TenantLaunchResponse } from './models/TenantLaunchResponse';
|
|
757
763
|
export type { TenantMentorTraces } from './models/TenantMentorTraces';
|
|
764
|
+
export type { TenantSetting } from './models/TenantSetting';
|
|
758
765
|
export type { TestSMTPCredentials } from './models/TestSMTPCredentials';
|
|
759
766
|
export type { TestSMTPResponse } from './models/TestSMTPResponse';
|
|
760
767
|
export { ThemeEnum } from './models/ThemeEnum';
|
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,34 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for CredentialProviderConfig model.
|
|
7
|
+
*
|
|
8
|
+
* Serializes provider configuration including platform, provider name,
|
|
9
|
+
* config JSON, enabled status, and timestamps.
|
|
10
|
+
*/
|
|
11
|
+
export type CredentialProviderConfig = {
|
|
12
|
+
readonly id: number;
|
|
13
|
+
readonly platform_key: string;
|
|
14
|
+
readonly platform_name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The credential provider name (references CredentialProvider.name)
|
|
17
|
+
*/
|
|
18
|
+
provider_name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Get display name from provider if available, otherwise use provider_name.
|
|
21
|
+
*/
|
|
22
|
+
readonly provider_name_display: string;
|
|
23
|
+
/**
|
|
24
|
+
* Provider-specific configuration in JSON format
|
|
25
|
+
*/
|
|
26
|
+
config?: any;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this provider integration is enabled for the platform
|
|
29
|
+
*/
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
readonly created: string;
|
|
32
|
+
readonly updated: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for ExternalCredentialMapping model.
|
|
7
|
+
*
|
|
8
|
+
* Serializes external credential mappings including credential, platform,
|
|
9
|
+
* provider, external_template_id, and metadata.
|
|
10
|
+
*/
|
|
11
|
+
export type ExternalCredentialMapping = {
|
|
12
|
+
readonly id: number;
|
|
13
|
+
readonly credential_id: string;
|
|
14
|
+
readonly credential_name: string;
|
|
15
|
+
readonly platform_key: string;
|
|
16
|
+
readonly platform_name: string;
|
|
17
|
+
/**
|
|
18
|
+
* The credential provider
|
|
19
|
+
*/
|
|
20
|
+
readonly provider: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* The credential provider name (references CredentialProvider.name)
|
|
23
|
+
*/
|
|
24
|
+
provider_name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Get display name from provider if available, otherwise use provider_name.
|
|
27
|
+
*/
|
|
28
|
+
readonly provider_name_display: string;
|
|
29
|
+
/**
|
|
30
|
+
* The template ID in the external system (e.g., Accredible template ID)
|
|
31
|
+
*/
|
|
32
|
+
external_template_id?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* The group ID in the external system (e.g., Accredible group ID). If not set, will fall back to the provider config's group_id.
|
|
35
|
+
*/
|
|
36
|
+
group_id?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Additional metadata stored as JSON (for general mapping information, not sync status)
|
|
39
|
+
*/
|
|
40
|
+
metadata?: any;
|
|
41
|
+
readonly created: string;
|
|
42
|
+
readonly updated: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
@@ -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
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type TenantSetting = {
|
|
6
|
+
readonly id: number;
|
|
7
|
+
readonly tenant_platform: string;
|
|
8
|
+
readonly teams_bot_mentor: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
@@ -16,6 +16,7 @@ import type { OAuthService } from '../models/OAuthService';
|
|
|
16
16
|
import type { OAuthStartResponse } from '../models/OAuthStartResponse';
|
|
17
17
|
import type { PatchedCredentialRequest } from '../models/PatchedCredentialRequest';
|
|
18
18
|
import type { PatchedLLMCredentialRequest } from '../models/PatchedLLMCredentialRequest';
|
|
19
|
+
import type { TenantSetting } from '../models/TenantSetting';
|
|
19
20
|
import type { UseMainCreds } from '../models/UseMainCreds';
|
|
20
21
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
21
22
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -894,4 +895,61 @@ export class AiAccountService {
|
|
|
894
895
|
},
|
|
895
896
|
});
|
|
896
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* Get a platform's settings
|
|
900
|
+
*
|
|
901
|
+
* Example response:
|
|
902
|
+
* ```
|
|
903
|
+
* {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
|
|
904
|
+
*
|
|
905
|
+
* ```
|
|
906
|
+
* @returns TenantSetting
|
|
907
|
+
* @throws ApiError
|
|
908
|
+
*/
|
|
909
|
+
public static aiAccountOrgsUsersTenantSettingsRetrieve({
|
|
910
|
+
org,
|
|
911
|
+
userId,
|
|
912
|
+
}: {
|
|
913
|
+
org: string,
|
|
914
|
+
userId: string,
|
|
915
|
+
}): CancelablePromise<TenantSetting> {
|
|
916
|
+
return __request(OpenAPI, {
|
|
917
|
+
method: 'GET',
|
|
918
|
+
url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
|
|
919
|
+
path: {
|
|
920
|
+
'org': org,
|
|
921
|
+
'user_id': userId,
|
|
922
|
+
},
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Example Request:
|
|
927
|
+
*
|
|
928
|
+
* ```
|
|
929
|
+
* {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
|
|
930
|
+
* ```
|
|
931
|
+
* The value here is the mentor's unique id
|
|
932
|
+
* @returns TenantSetting
|
|
933
|
+
* @throws ApiError
|
|
934
|
+
*/
|
|
935
|
+
public static aiAccountOrgsUsersTenantSettingsCreate({
|
|
936
|
+
org,
|
|
937
|
+
userId,
|
|
938
|
+
requestBody,
|
|
939
|
+
}: {
|
|
940
|
+
org: string,
|
|
941
|
+
userId: string,
|
|
942
|
+
requestBody?: TenantSetting,
|
|
943
|
+
}): CancelablePromise<TenantSetting> {
|
|
944
|
+
return __request(OpenAPI, {
|
|
945
|
+
method: 'POST',
|
|
946
|
+
url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
|
|
947
|
+
path: {
|
|
948
|
+
'org': org,
|
|
949
|
+
'user_id': userId,
|
|
950
|
+
},
|
|
951
|
+
body: requestBody,
|
|
952
|
+
mediaType: 'application/json',
|
|
953
|
+
});
|
|
954
|
+
}
|
|
897
955
|
}
|
|
@@ -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
|
*
|