@iblai/iblai-api 2025.11.13-teams-bot-renovation-ai → 2025.11.13-teams-bot-renovation-3-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 +235 -45
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +236 -46
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +235 -45
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/models/ConnectedService.d.ts +18 -5
- package/dist/types/models/Disclaimer.d.ts +2 -2
- package/dist/types/models/{ScopeEnum.d.ts → DisclaimerScopeEnum.d.ts} +1 -1
- package/dist/types/models/MCPServer.d.ts +1 -1
- package/dist/types/models/MCPServerConnection.d.ts +47 -0
- package/dist/types/models/MCPServerConnectionScopeEnum.d.ts +10 -0
- package/dist/types/models/OAuthProvider.d.ts +18 -0
- package/dist/types/models/OAuthService.d.ts +17 -0
- package/dist/types/models/PaginatedMCPServerConnectionList.d.ts +7 -0
- package/dist/types/models/PatchedDisclaimer.d.ts +2 -2
- package/dist/types/models/PatchedMCPServer.d.ts +1 -1
- package/dist/types/models/PatchedMCPServerConnection.d.ts +47 -0
- package/dist/types/services/AiAccountService.d.ts +30 -11
- package/dist/types/services/AiMentorService.d.ts +113 -0
- package/package.json +1 -1
- package/sdk_schema.yml +724 -51
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +7 -3
- package/src/models/ConnectedService.ts +18 -5
- package/src/models/Disclaimer.ts +2 -2
- package/src/models/{ScopeEnum.ts → DisclaimerScopeEnum.ts} +1 -1
- package/src/models/MCPServer.ts +1 -1
- package/src/models/MCPServerConnection.ts +52 -0
- package/src/models/MCPServerConnectionScopeEnum.ts +14 -0
- package/src/models/OAuthProvider.ts +23 -0
- package/src/models/OAuthService.ts +22 -0
- package/src/models/PaginatedMCPServerConnectionList.ts +12 -0
- package/src/models/PatchedDisclaimer.ts +2 -2
- package/src/models/PatchedMCPServer.ts +1 -1
- package/src/models/PatchedMCPServerConnection.ts +52 -0
- package/src/services/AiAccountService.ts +50 -11
- package/src/services/AiMentorService.ts +233 -0
- package/dist/types/models/ConnectedServiceProviderEnum.d.ts +0 -6
- package/dist/types/models/ServiceEnum.d.ts +0 -12
- package/src/models/ConnectedServiceProviderEnum.ts +0 -10
- package/src/models/ServiceEnum.ts +0 -16
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AuthTypeEnum } from './AuthTypeEnum';
|
|
2
|
+
import type { MCPServerConnectionScopeEnum } from './MCPServerConnectionScopeEnum';
|
|
3
|
+
/**
|
|
4
|
+
* Serializer for managing `MCPServerConnection` records via the API.
|
|
5
|
+
*
|
|
6
|
+
* The serializer enforces the business rules for combining scope, platform,
|
|
7
|
+
* and authentication configuration while exposing a masked view of any stored
|
|
8
|
+
* credentials.
|
|
9
|
+
*/
|
|
10
|
+
export type MCPServerConnection = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
server: number;
|
|
13
|
+
readonly server_name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this connection is scoped to a user or shared across a platform.
|
|
16
|
+
*
|
|
17
|
+
* * `user` - User
|
|
18
|
+
* * `mentor` - Mentor
|
|
19
|
+
* * `platform` - Platform
|
|
20
|
+
*/
|
|
21
|
+
scope?: MCPServerConnectionScopeEnum;
|
|
22
|
+
auth_type?: AuthTypeEnum;
|
|
23
|
+
platform?: number | null;
|
|
24
|
+
readonly platform_key: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* edX username
|
|
27
|
+
*/
|
|
28
|
+
user?: string | null;
|
|
29
|
+
mentor?: string | null;
|
|
30
|
+
connected_service?: number | null;
|
|
31
|
+
readonly connected_service_summary: Record<string, any> | null;
|
|
32
|
+
/**
|
|
33
|
+
* Static credential/token value for token-based authentication.
|
|
34
|
+
*/
|
|
35
|
+
credentials?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Authorization scheme to prefix tokens with (e.g. 'Bearer').
|
|
38
|
+
*/
|
|
39
|
+
authorization_scheme?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional headers to include when connecting to the MCP server.
|
|
42
|
+
*/
|
|
43
|
+
extra_headers?: any;
|
|
44
|
+
is_active?: boolean;
|
|
45
|
+
readonly created_at: string;
|
|
46
|
+
readonly updated_at: string;
|
|
47
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OAuthService } from './OAuthService';
|
|
2
|
+
/**
|
|
3
|
+
* Read-only serializer for OAuth providers, including the services they expose.
|
|
4
|
+
*/
|
|
5
|
+
export type OAuthProvider = {
|
|
6
|
+
readonly id: number;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly url: string;
|
|
10
|
+
readonly image: string | null;
|
|
11
|
+
readonly scope_map: any;
|
|
12
|
+
readonly auth_url: string;
|
|
13
|
+
readonly token_url: string;
|
|
14
|
+
readonly is_enabled: boolean;
|
|
15
|
+
readonly created_at: string;
|
|
16
|
+
readonly updated_at: string;
|
|
17
|
+
readonly services: Array<OAuthService>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read-only serializer exposing details about an OAuth service.
|
|
3
|
+
*/
|
|
4
|
+
export type OAuthService = {
|
|
5
|
+
readonly id: number;
|
|
6
|
+
readonly oauth_provider: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Human readable label for the OAuth service scope.
|
|
10
|
+
*/
|
|
11
|
+
readonly display_name: string;
|
|
12
|
+
readonly description: string;
|
|
13
|
+
readonly scope: string;
|
|
14
|
+
readonly image: string | null;
|
|
15
|
+
readonly created_at: string;
|
|
16
|
+
readonly updated_at: string;
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DisclaimerScopeEnum } from './DisclaimerScopeEnum';
|
|
2
2
|
export type PatchedDisclaimer = {
|
|
3
3
|
readonly id?: number;
|
|
4
|
-
scope?:
|
|
4
|
+
scope?: DisclaimerScopeEnum;
|
|
5
5
|
/**
|
|
6
6
|
* Platform to which the disclaimer applies.
|
|
7
7
|
*/
|
|
@@ -18,7 +18,7 @@ export type PatchedMCPServer = {
|
|
|
18
18
|
image?: string | null;
|
|
19
19
|
transport?: TransportEnum;
|
|
20
20
|
/**
|
|
21
|
-
* Authorization credentials to
|
|
21
|
+
* Authorization credentials to authenticate to the MCP server. If provided, these take priority over any headers configured on the server. Token here must be the full authorization value. For example: `<scheme> <credentials>`
|
|
22
22
|
*/
|
|
23
23
|
credentials?: string;
|
|
24
24
|
/**
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AuthTypeEnum } from './AuthTypeEnum';
|
|
2
|
+
import type { MCPServerConnectionScopeEnum } from './MCPServerConnectionScopeEnum';
|
|
3
|
+
/**
|
|
4
|
+
* Serializer for managing `MCPServerConnection` records via the API.
|
|
5
|
+
*
|
|
6
|
+
* The serializer enforces the business rules for combining scope, platform,
|
|
7
|
+
* and authentication configuration while exposing a masked view of any stored
|
|
8
|
+
* credentials.
|
|
9
|
+
*/
|
|
10
|
+
export type PatchedMCPServerConnection = {
|
|
11
|
+
readonly id?: number;
|
|
12
|
+
server?: number;
|
|
13
|
+
readonly server_name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this connection is scoped to a user or shared across a platform.
|
|
16
|
+
*
|
|
17
|
+
* * `user` - User
|
|
18
|
+
* * `mentor` - Mentor
|
|
19
|
+
* * `platform` - Platform
|
|
20
|
+
*/
|
|
21
|
+
scope?: MCPServerConnectionScopeEnum;
|
|
22
|
+
auth_type?: AuthTypeEnum;
|
|
23
|
+
platform?: number | null;
|
|
24
|
+
readonly platform_key?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* edX username
|
|
27
|
+
*/
|
|
28
|
+
user?: string | null;
|
|
29
|
+
mentor?: string | null;
|
|
30
|
+
connected_service?: number | null;
|
|
31
|
+
readonly connected_service_summary?: Record<string, any> | null;
|
|
32
|
+
/**
|
|
33
|
+
* Static credential/token value for token-based authentication.
|
|
34
|
+
*/
|
|
35
|
+
credentials?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Authorization scheme to prefix tokens with (e.g. 'Bearer').
|
|
38
|
+
*/
|
|
39
|
+
authorization_scheme?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional headers to include when connecting to the MCP server.
|
|
42
|
+
*/
|
|
43
|
+
extra_headers?: any;
|
|
44
|
+
is_active?: boolean;
|
|
45
|
+
readonly created_at?: string;
|
|
46
|
+
readonly updated_at?: string;
|
|
47
|
+
};
|
|
@@ -7,6 +7,8 @@ import type { LLMCredentialResponse } from '../models/LLMCredentialResponse';
|
|
|
7
7
|
import type { LLMCredentialSchema } from '../models/LLMCredentialSchema';
|
|
8
8
|
import type { MaskedIntegrationCredential } from '../models/MaskedIntegrationCredential';
|
|
9
9
|
import type { MaskedLLMCredential } from '../models/MaskedLLMCredential';
|
|
10
|
+
import type { OAuthProvider } from '../models/OAuthProvider';
|
|
11
|
+
import type { OAuthService } from '../models/OAuthService';
|
|
10
12
|
import type { OAuthStartResponse } from '../models/OAuthStartResponse';
|
|
11
13
|
import type { PatchedCredentialRequest } from '../models/PatchedCredentialRequest';
|
|
12
14
|
import type { PatchedLLMCredentialRequest } from '../models/PatchedLLMCredentialRequest';
|
|
@@ -27,19 +29,12 @@ export declare class AiAccountService {
|
|
|
27
29
|
org: string; /**
|
|
28
30
|
* Which field to use when ordering the results.
|
|
29
31
|
*/
|
|
30
|
-
ordering?: string;
|
|
31
|
-
|
|
32
|
-
*/
|
|
33
|
-
provider?: 'google'; /**
|
|
32
|
+
ordering?: string;
|
|
33
|
+
provider?: string; /**
|
|
34
34
|
* A search term.
|
|
35
35
|
*/
|
|
36
|
-
search?: string;
|
|
37
|
-
|
|
38
|
-
* * `google_document` - Google Document
|
|
39
|
-
* * `google_slides` - Google Slides
|
|
40
|
-
* * `google_calendar` - Google Calendar
|
|
41
|
-
*/
|
|
42
|
-
service?: 'google_calendar' | 'google_document' | 'google_drive' | 'google_slides';
|
|
36
|
+
search?: string;
|
|
37
|
+
service?: string;
|
|
43
38
|
}): CancelablePromise<Array<ConnectedService>>;
|
|
44
39
|
/**
|
|
45
40
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
@@ -434,6 +429,30 @@ export declare class AiAccountService {
|
|
|
434
429
|
*/
|
|
435
430
|
name?: string;
|
|
436
431
|
}): CancelablePromise<MaskedLLMCredential>;
|
|
432
|
+
/**
|
|
433
|
+
* Return the list of OAuth services that can be used for connected services.
|
|
434
|
+
*
|
|
435
|
+
* Query Parameters:
|
|
436
|
+
* name (optional): Filter by exact service name (case-insensitive).
|
|
437
|
+
* include_disabled (optional): Set to `true` to include disabled services.
|
|
438
|
+
* @returns OAuthProvider
|
|
439
|
+
* @throws ApiError
|
|
440
|
+
*/
|
|
441
|
+
static aiAccountOrgsOauthServicesList({ org, }: {
|
|
442
|
+
org: string;
|
|
443
|
+
}): CancelablePromise<Array<OAuthProvider>>;
|
|
444
|
+
/**
|
|
445
|
+
* Return the available scopes for the specified OAuth service.
|
|
446
|
+
*
|
|
447
|
+
* Query Parameters:
|
|
448
|
+
* include_disabled (optional): Set to `true` to include scopes from disabled services.
|
|
449
|
+
* @returns OAuthService
|
|
450
|
+
* @throws ApiError
|
|
451
|
+
*/
|
|
452
|
+
static aiAccountOrgsOauthServicesScopesList({ org, serviceName, }: {
|
|
453
|
+
org: string;
|
|
454
|
+
serviceName: string;
|
|
455
|
+
}): CancelablePromise<Array<OAuthService>>;
|
|
437
456
|
/**
|
|
438
457
|
* Enable or disable the use of main LLM credentials for an organization.
|
|
439
458
|
*
|
|
@@ -37,6 +37,7 @@ import type { LinkCourseResponse } from '../models/LinkCourseResponse';
|
|
|
37
37
|
import type { LLMModelForTenant } from '../models/LLMModelForTenant';
|
|
38
38
|
import type { LLMResponse } from '../models/LLMResponse';
|
|
39
39
|
import type { MCPServer } from '../models/MCPServer';
|
|
40
|
+
import type { MCPServerConnection } from '../models/MCPServerConnection';
|
|
40
41
|
import type { MemoryComponentMemoryDetail } from '../models/MemoryComponentMemoryDetail';
|
|
41
42
|
import type { MemoryComponentResponse } from '../models/MemoryComponentResponse';
|
|
42
43
|
import type { MemoryProgress } from '../models/MemoryProgress';
|
|
@@ -79,6 +80,7 @@ import type { PaginatedEdxCourseList } from '../models/PaginatedEdxCourseList';
|
|
|
79
80
|
import type { PaginatedEmailPromptListList } from '../models/PaginatedEmailPromptListList';
|
|
80
81
|
import type { PaginatedHumanSupportTicketList } from '../models/PaginatedHumanSupportTicketList';
|
|
81
82
|
import type { PaginatedJobRunList } from '../models/PaginatedJobRunList';
|
|
83
|
+
import type { PaginatedMCPServerConnectionList } from '../models/PaginatedMCPServerConnectionList';
|
|
82
84
|
import type { PaginatedMCPServerList } from '../models/PaginatedMCPServerList';
|
|
83
85
|
import type { PaginatedMentorList } from '../models/PaginatedMentorList';
|
|
84
86
|
import type { PaginatedModerationLogList } from '../models/PaginatedModerationLogList';
|
|
@@ -99,6 +101,7 @@ import type { PatchedCourseCreationTaskFile } from '../models/PatchedCourseCreat
|
|
|
99
101
|
import type { PatchedDisclaimer } from '../models/PatchedDisclaimer';
|
|
100
102
|
import type { PatchedHumanSupportTicket } from '../models/PatchedHumanSupportTicket';
|
|
101
103
|
import type { PatchedMCPServer } from '../models/PatchedMCPServer';
|
|
104
|
+
import type { PatchedMCPServerConnection } from '../models/PatchedMCPServerConnection';
|
|
102
105
|
import type { PatchedMentorCategoryGroupCreate } from '../models/PatchedMentorCategoryGroupCreate';
|
|
103
106
|
import type { PatchedMentorCreate } from '../models/PatchedMentorCreate';
|
|
104
107
|
import type { PatchedPeriodicAgentCreate } from '../models/PatchedPeriodicAgentCreate';
|
|
@@ -3550,6 +3553,116 @@ export declare class AiMentorService {
|
|
|
3550
3553
|
static aiMentorOrgsUsersFreeUsageCountRetrieve({ org, userId, }: {
|
|
3551
3554
|
org: string;
|
|
3552
3555
|
}): CancelablePromise<FreeUsageCount>;
|
|
3556
|
+
/**
|
|
3557
|
+
* ViewSet for MCP server connections.
|
|
3558
|
+
*
|
|
3559
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3560
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3561
|
+
* @returns PaginatedMCPServerConnectionList
|
|
3562
|
+
* @throws ApiError
|
|
3563
|
+
*/
|
|
3564
|
+
static aiMentorOrgsUsersMcpServerConnectionsList({ org, userId, authType, isActive, mentor, page, pageSize, scope, search, server, user, }: {
|
|
3565
|
+
org: string; /**
|
|
3566
|
+
* * `none` - None
|
|
3567
|
+
* * `token` - Token
|
|
3568
|
+
* * `oauth2` - Oauth2
|
|
3569
|
+
*/
|
|
3570
|
+
authType?: 'none' | 'oauth2' | 'token';
|
|
3571
|
+
isActive?: boolean;
|
|
3572
|
+
mentor?: string; /**
|
|
3573
|
+
* A page number within the paginated result set.
|
|
3574
|
+
*/
|
|
3575
|
+
page?: number; /**
|
|
3576
|
+
* Number of results to return per page.
|
|
3577
|
+
*/
|
|
3578
|
+
pageSize?: number; /**
|
|
3579
|
+
* Whether this connection is scoped to a user or shared across a platform.
|
|
3580
|
+
*
|
|
3581
|
+
* * `user` - User
|
|
3582
|
+
* * `mentor` - Mentor
|
|
3583
|
+
* * `platform` - Platform
|
|
3584
|
+
*/
|
|
3585
|
+
scope?: 'mentor' | 'platform' | 'user'; /**
|
|
3586
|
+
* A search term.
|
|
3587
|
+
*/
|
|
3588
|
+
search?: string;
|
|
3589
|
+
server?: number;
|
|
3590
|
+
user?: string;
|
|
3591
|
+
}): CancelablePromise<PaginatedMCPServerConnectionList>;
|
|
3592
|
+
/**
|
|
3593
|
+
* ViewSet for MCP server connections.
|
|
3594
|
+
*
|
|
3595
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3596
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3597
|
+
* @returns MCPServerConnection
|
|
3598
|
+
* @throws ApiError
|
|
3599
|
+
*/
|
|
3600
|
+
static aiMentorOrgsUsersMcpServerConnectionsCreate({ org, userId, requestBody, }: {
|
|
3601
|
+
org: string;
|
|
3602
|
+
requestBody: MCPServerConnection;
|
|
3603
|
+
}): CancelablePromise<MCPServerConnection>;
|
|
3604
|
+
/**
|
|
3605
|
+
* ViewSet for MCP server connections.
|
|
3606
|
+
*
|
|
3607
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3608
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3609
|
+
* @returns MCPServerConnection
|
|
3610
|
+
* @throws ApiError
|
|
3611
|
+
*/
|
|
3612
|
+
static aiMentorOrgsUsersMcpServerConnectionsRetrieve({ id, org, userId, }: {
|
|
3613
|
+
/**
|
|
3614
|
+
* A unique integer value identifying this mcp server connection.
|
|
3615
|
+
*/
|
|
3616
|
+
id: number;
|
|
3617
|
+
org: string;
|
|
3618
|
+
}): CancelablePromise<MCPServerConnection>;
|
|
3619
|
+
/**
|
|
3620
|
+
* ViewSet for MCP server connections.
|
|
3621
|
+
*
|
|
3622
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3623
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3624
|
+
* @returns MCPServerConnection
|
|
3625
|
+
* @throws ApiError
|
|
3626
|
+
*/
|
|
3627
|
+
static aiMentorOrgsUsersMcpServerConnectionsUpdate({ id, org, userId, requestBody, }: {
|
|
3628
|
+
/**
|
|
3629
|
+
* A unique integer value identifying this mcp server connection.
|
|
3630
|
+
*/
|
|
3631
|
+
id: number;
|
|
3632
|
+
org: string;
|
|
3633
|
+
requestBody: MCPServerConnection;
|
|
3634
|
+
}): CancelablePromise<MCPServerConnection>;
|
|
3635
|
+
/**
|
|
3636
|
+
* ViewSet for MCP server connections.
|
|
3637
|
+
*
|
|
3638
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3639
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3640
|
+
* @returns MCPServerConnection
|
|
3641
|
+
* @throws ApiError
|
|
3642
|
+
*/
|
|
3643
|
+
static aiMentorOrgsUsersMcpServerConnectionsPartialUpdate({ id, org, userId, requestBody, }: {
|
|
3644
|
+
/**
|
|
3645
|
+
* A unique integer value identifying this mcp server connection.
|
|
3646
|
+
*/
|
|
3647
|
+
id: number;
|
|
3648
|
+
org: string;
|
|
3649
|
+
requestBody?: PatchedMCPServerConnection;
|
|
3650
|
+
}): CancelablePromise<MCPServerConnection>;
|
|
3651
|
+
/**
|
|
3652
|
+
* ViewSet for MCP server connections.
|
|
3653
|
+
*
|
|
3654
|
+
* Tenant administrators can create user- or platform-scoped connections that
|
|
3655
|
+
* encapsulate the authentication configuration for invoking an MCP server.
|
|
3656
|
+
* @returns void
|
|
3657
|
+
* @throws ApiError
|
|
3658
|
+
*/
|
|
3659
|
+
static aiMentorOrgsUsersMcpServerConnectionsDestroy({ id, org, userId, }: {
|
|
3660
|
+
/**
|
|
3661
|
+
* A unique integer value identifying this mcp server connection.
|
|
3662
|
+
*/
|
|
3663
|
+
id: number;
|
|
3664
|
+
org: string;
|
|
3665
|
+
}): CancelablePromise<void>;
|
|
3553
3666
|
/**
|
|
3554
3667
|
* List all MCP servers.
|
|
3555
3668
|
*
|