@iblai/iblai-api 4.114.0-ai → 4.115.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 +28 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +28 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +28 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/Error.d.ts +3 -0
- package/dist/types/models/MCPServerOauthFind.d.ts +3 -0
- package/dist/types/models/Mentor.d.ts +1 -0
- package/dist/types/models/MentorCreate.d.ts +1 -0
- package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +1 -0
- package/dist/types/models/MentorSettings.d.ts +1 -0
- package/dist/types/models/MentorSettingsPublic.d.ts +1 -0
- package/dist/types/models/MentorSettingsRequest.d.ts +1 -0
- package/dist/types/models/OAuthProvider.d.ts +6 -0
- package/dist/types/models/OauthCredentialsMasked.d.ts +10 -0
- package/dist/types/models/PatchedMentorCreate.d.ts +1 -0
- package/dist/types/services/AiMentorService.d.ts +17 -0
- package/package.json +1 -1
- package/sdk_schema.yml +136 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +3 -0
- package/src/models/Error.ts +8 -0
- package/src/models/MCPServerOauthFind.ts +8 -0
- package/src/models/Mentor.ts +1 -0
- package/src/models/MentorCreate.ts +1 -0
- package/src/models/MentorFromTemplateWithSettingRequest.ts +1 -0
- package/src/models/MentorSettings.ts +1 -0
- package/src/models/MentorSettingsPublic.ts +1 -0
- package/src/models/MentorSettingsRequest.ts +1 -0
- package/src/models/OAuthProvider.ts +6 -0
- package/src/models/OauthCredentialsMasked.ts +15 -0
- package/src/models/PatchedMentorCreate.ts +1 -0
- package/src/services/AiMentorService.ts +33 -0
package/src/index.ts
CHANGED
|
@@ -222,6 +222,7 @@ export type { EnrollmentsPerUser } from './models/EnrollmentsPerUser';
|
|
|
222
222
|
export type { EnrollmentsPerUserData } from './models/EnrollmentsPerUserData';
|
|
223
223
|
export type { Entity } from './models/Entity';
|
|
224
224
|
export { EntityTypeEnum } from './models/EntityTypeEnum';
|
|
225
|
+
export type { Error } from './models/Error';
|
|
225
226
|
export type { ErrorResponse } from './models/ErrorResponse';
|
|
226
227
|
export type { Experience } from './models/Experience';
|
|
227
228
|
export type { ExternalCredentialMapping } from './models/ExternalCredentialMapping';
|
|
@@ -304,6 +305,7 @@ export type { MaskedLLMCredential } from './models/MaskedLLMCredential';
|
|
|
304
305
|
export type { MCPServer } from './models/MCPServer';
|
|
305
306
|
export type { MCPServerConnection } from './models/MCPServerConnection';
|
|
306
307
|
export { MCPServerConnectionScopeEnum } from './models/MCPServerConnectionScopeEnum';
|
|
308
|
+
export type { MCPServerOauthFind } from './models/MCPServerOauthFind';
|
|
307
309
|
export type { MediaResource } from './models/MediaResource';
|
|
308
310
|
export { MediaTypeEnum } from './models/MediaTypeEnum';
|
|
309
311
|
export type { MemoryComponentData } from './models/MemoryComponentData';
|
|
@@ -377,6 +379,7 @@ export type { NotificationTemplateTest } from './models/NotificationTemplateTest
|
|
|
377
379
|
export type { NotificationTemplateTestResponse } from './models/NotificationTemplateTestResponse';
|
|
378
380
|
export type { NotificationToggle } from './models/NotificationToggle';
|
|
379
381
|
export type { NullEnum } from './models/NullEnum';
|
|
382
|
+
export type { OauthCredentialsMasked } from './models/OauthCredentialsMasked';
|
|
380
383
|
export type { OAuthProvider } from './models/OAuthProvider';
|
|
381
384
|
export type { OAuthService } from './models/OAuthService';
|
|
382
385
|
export type { OAuthStartResponse } from './models/OAuthStartResponse';
|
package/src/models/Mentor.ts
CHANGED
|
@@ -39,6 +39,7 @@ export type Mentor = {
|
|
|
39
39
|
* Whether to show suggested prompts for the mentor or not. Note: Guided prompts are created with an llm based on chat history.
|
|
40
40
|
*/
|
|
41
41
|
enable_guided_prompts?: boolean;
|
|
42
|
+
save_flagged_prompts?: boolean;
|
|
42
43
|
/**
|
|
43
44
|
* Instructions to determine how prompt suggestions are generated.
|
|
44
45
|
*/
|
|
@@ -33,6 +33,7 @@ export type MentorCreate = {
|
|
|
33
33
|
* Whether to show suggested prompts for the mentor or not. Note: Guided prompts are created with an llm based on chat history.
|
|
34
34
|
*/
|
|
35
35
|
enable_guided_prompts?: boolean;
|
|
36
|
+
save_flagged_prompts?: boolean;
|
|
36
37
|
google_voice?: number | null;
|
|
37
38
|
openai_voice?: number | null;
|
|
38
39
|
/**
|
|
@@ -62,6 +62,7 @@ export type MentorFromTemplateWithSettingRequest = {
|
|
|
62
62
|
openai_voice?: number;
|
|
63
63
|
enable_suggested_prompts?: boolean | null;
|
|
64
64
|
enable_guided_prompts?: boolean | null;
|
|
65
|
+
save_flagged_prompts?: boolean | null;
|
|
65
66
|
mcp_servers?: Array<number> | null;
|
|
66
67
|
guided_prompt_instructions?: string | null;
|
|
67
68
|
is_featured?: boolean;
|
|
@@ -62,6 +62,7 @@ export type MentorSettings = {
|
|
|
62
62
|
readonly is_guided_mentor: boolean;
|
|
63
63
|
readonly is_featured: boolean;
|
|
64
64
|
readonly enable_guided_prompts: boolean;
|
|
65
|
+
readonly save_flagged_prompts: boolean;
|
|
65
66
|
readonly enable_moderation: boolean;
|
|
66
67
|
readonly enable_multi_query_rag: boolean;
|
|
67
68
|
readonly enable_post_processing_system: boolean;
|
|
@@ -60,6 +60,7 @@ export type MentorSettingsPublic = {
|
|
|
60
60
|
readonly is_guided_mentor: boolean;
|
|
61
61
|
readonly is_featured: boolean;
|
|
62
62
|
readonly enable_guided_prompts: boolean;
|
|
63
|
+
readonly save_flagged_prompts: boolean;
|
|
63
64
|
readonly enable_moderation: boolean;
|
|
64
65
|
readonly enable_multi_query_rag: boolean;
|
|
65
66
|
readonly enable_post_processing_system: boolean;
|
|
@@ -54,6 +54,7 @@ export type MentorSettingsRequest = {
|
|
|
54
54
|
enable_total_grounding?: boolean;
|
|
55
55
|
enable_suggested_prompts?: boolean | null;
|
|
56
56
|
enable_guided_prompts?: boolean | null;
|
|
57
|
+
save_flagged_prompts?: boolean | null;
|
|
57
58
|
mcp_servers?: Array<number> | null;
|
|
58
59
|
show_attachment?: boolean;
|
|
59
60
|
show_voice_call?: boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { OauthCredentialsMasked } from './OauthCredentialsMasked';
|
|
5
6
|
import type { OAuthService } from './OAuthService';
|
|
6
7
|
/**
|
|
7
8
|
* Read-only serializer for OAuth providers, including the services they expose.
|
|
@@ -19,5 +20,10 @@ export type OAuthProvider = {
|
|
|
19
20
|
readonly created_at: string;
|
|
20
21
|
readonly updated_at: string;
|
|
21
22
|
readonly services: Array<OAuthService>;
|
|
23
|
+
readonly credentials: OauthCredentialsMasked;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to use basic authentication for the OAuth provider. By default client id and client secret are sent to the Authorization server as post data.
|
|
26
|
+
*/
|
|
27
|
+
readonly use_basic_auth: boolean;
|
|
22
28
|
};
|
|
23
29
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type OauthCredentialsMasked = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
is_global: boolean;
|
|
9
|
+
client_id: string;
|
|
10
|
+
client_secret?: string | null;
|
|
11
|
+
scopes?: Array<string> | null;
|
|
12
|
+
redirect_uris?: Array<string> | null;
|
|
13
|
+
url?: string | null;
|
|
14
|
+
};
|
|
15
|
+
|
|
@@ -33,6 +33,7 @@ export type PatchedMentorCreate = {
|
|
|
33
33
|
* Whether to show suggested prompts for the mentor or not. Note: Guided prompts are created with an llm based on chat history.
|
|
34
34
|
*/
|
|
35
35
|
enable_guided_prompts?: boolean;
|
|
36
|
+
save_flagged_prompts?: boolean;
|
|
36
37
|
google_voice?: number | null;
|
|
37
38
|
openai_voice?: number | null;
|
|
38
39
|
/**
|
|
@@ -45,6 +45,7 @@ import type { LLMModelForTenant } from '../models/LLMModelForTenant';
|
|
|
45
45
|
import type { LLMResponse } from '../models/LLMResponse';
|
|
46
46
|
import type { MCPServer } from '../models/MCPServer';
|
|
47
47
|
import type { MCPServerConnection } from '../models/MCPServerConnection';
|
|
48
|
+
import type { MCPServerOauthFind } from '../models/MCPServerOauthFind';
|
|
48
49
|
import type { MemoryComponentMemoryDetail } from '../models/MemoryComponentMemoryDetail';
|
|
49
50
|
import type { MemoryComponentResponse } from '../models/MemoryComponentResponse';
|
|
50
51
|
import type { MemoryProgress } from '../models/MemoryProgress';
|
|
@@ -77,6 +78,7 @@ import type { MessageView } from '../models/MessageView';
|
|
|
77
78
|
import type { MessageViewRequest } from '../models/MessageViewRequest';
|
|
78
79
|
import type { MessageViewUpdatResponse } from '../models/MessageViewUpdatResponse';
|
|
79
80
|
import type { ModerationLog } from '../models/ModerationLog';
|
|
81
|
+
import type { OAuthService } from '../models/OAuthService';
|
|
80
82
|
import type { PaginatedAIGeneratedImageList } from '../models/PaginatedAIGeneratedImageList';
|
|
81
83
|
import type { PaginatedArtifactListList } from '../models/PaginatedArtifactListList';
|
|
82
84
|
import type { PaginatedArtifactVersionList } from '../models/PaginatedArtifactVersionList';
|
|
@@ -7184,6 +7186,37 @@ export class AiMentorService {
|
|
|
7184
7186
|
},
|
|
7185
7187
|
});
|
|
7186
7188
|
}
|
|
7189
|
+
/**
|
|
7190
|
+
* Check that a given mcp server (where the user specifies oauth authentication) either has pre-configured oauth credentials
|
|
7191
|
+
* or support Dynamic Client Registration.
|
|
7192
|
+
*
|
|
7193
|
+
* This method:
|
|
7194
|
+
* 1. First checks if the MCP server already has a configured OAuth service
|
|
7195
|
+
* 2. If not, attempts to discover and register an OAuth service using Dynamic Client Registration
|
|
7196
|
+
* 3. Returns the OAuth service information if found or registered
|
|
7197
|
+
* @returns OAuthService
|
|
7198
|
+
* @throws ApiError
|
|
7199
|
+
*/
|
|
7200
|
+
public static aiMentorOrgsUsersMcpServersOauthFindCreate({
|
|
7201
|
+
org,
|
|
7202
|
+
userId,
|
|
7203
|
+
formData,
|
|
7204
|
+
}: {
|
|
7205
|
+
org: string,
|
|
7206
|
+
userId: string,
|
|
7207
|
+
formData: MCPServerOauthFind,
|
|
7208
|
+
}): CancelablePromise<OAuthService> {
|
|
7209
|
+
return __request(OpenAPI, {
|
|
7210
|
+
method: 'POST',
|
|
7211
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-servers/oauth-find/',
|
|
7212
|
+
path: {
|
|
7213
|
+
'org': org,
|
|
7214
|
+
'user_id': userId,
|
|
7215
|
+
},
|
|
7216
|
+
formData: formData,
|
|
7217
|
+
mediaType: 'multipart/form-data',
|
|
7218
|
+
});
|
|
7219
|
+
}
|
|
7187
7220
|
/**
|
|
7188
7221
|
* Retrieve a list of memories based on filter conditions.
|
|
7189
7222
|
*
|