@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.
Files changed (43) hide show
  1. package/dist/index.cjs.js +235 -45
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +236 -46
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +235 -45
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +7 -3
  8. package/dist/types/models/ConnectedService.d.ts +18 -5
  9. package/dist/types/models/Disclaimer.d.ts +2 -2
  10. package/dist/types/models/{ScopeEnum.d.ts → DisclaimerScopeEnum.d.ts} +1 -1
  11. package/dist/types/models/MCPServer.d.ts +1 -1
  12. package/dist/types/models/MCPServerConnection.d.ts +47 -0
  13. package/dist/types/models/MCPServerConnectionScopeEnum.d.ts +10 -0
  14. package/dist/types/models/OAuthProvider.d.ts +18 -0
  15. package/dist/types/models/OAuthService.d.ts +17 -0
  16. package/dist/types/models/PaginatedMCPServerConnectionList.d.ts +7 -0
  17. package/dist/types/models/PatchedDisclaimer.d.ts +2 -2
  18. package/dist/types/models/PatchedMCPServer.d.ts +1 -1
  19. package/dist/types/models/PatchedMCPServerConnection.d.ts +47 -0
  20. package/dist/types/services/AiAccountService.d.ts +30 -11
  21. package/dist/types/services/AiMentorService.d.ts +113 -0
  22. package/package.json +1 -1
  23. package/sdk_schema.yml +724 -51
  24. package/src/core/OpenAPI.ts +1 -1
  25. package/src/index.ts +7 -3
  26. package/src/models/ConnectedService.ts +18 -5
  27. package/src/models/Disclaimer.ts +2 -2
  28. package/src/models/{ScopeEnum.ts → DisclaimerScopeEnum.ts} +1 -1
  29. package/src/models/MCPServer.ts +1 -1
  30. package/src/models/MCPServerConnection.ts +52 -0
  31. package/src/models/MCPServerConnectionScopeEnum.ts +14 -0
  32. package/src/models/OAuthProvider.ts +23 -0
  33. package/src/models/OAuthService.ts +22 -0
  34. package/src/models/PaginatedMCPServerConnectionList.ts +12 -0
  35. package/src/models/PatchedDisclaimer.ts +2 -2
  36. package/src/models/PatchedMCPServer.ts +1 -1
  37. package/src/models/PatchedMCPServerConnection.ts +52 -0
  38. package/src/services/AiAccountService.ts +50 -11
  39. package/src/services/AiMentorService.ts +233 -0
  40. package/dist/types/models/ConnectedServiceProviderEnum.d.ts +0 -6
  41. package/dist/types/models/ServiceEnum.d.ts +0 -12
  42. package/src/models/ConnectedServiceProviderEnum.ts +0 -10
  43. package/src/models/ServiceEnum.ts +0 -16
@@ -41,6 +41,7 @@ import type { LinkCourseResponse } from '../models/LinkCourseResponse';
41
41
  import type { LLMModelForTenant } from '../models/LLMModelForTenant';
42
42
  import type { LLMResponse } from '../models/LLMResponse';
43
43
  import type { MCPServer } from '../models/MCPServer';
44
+ import type { MCPServerConnection } from '../models/MCPServerConnection';
44
45
  import type { MemoryComponentMemoryDetail } from '../models/MemoryComponentMemoryDetail';
45
46
  import type { MemoryComponentResponse } from '../models/MemoryComponentResponse';
46
47
  import type { MemoryProgress } from '../models/MemoryProgress';
@@ -83,6 +84,7 @@ import type { PaginatedEdxCourseList } from '../models/PaginatedEdxCourseList';
83
84
  import type { PaginatedEmailPromptListList } from '../models/PaginatedEmailPromptListList';
84
85
  import type { PaginatedHumanSupportTicketList } from '../models/PaginatedHumanSupportTicketList';
85
86
  import type { PaginatedJobRunList } from '../models/PaginatedJobRunList';
87
+ import type { PaginatedMCPServerConnectionList } from '../models/PaginatedMCPServerConnectionList';
86
88
  import type { PaginatedMCPServerList } from '../models/PaginatedMCPServerList';
87
89
  import type { PaginatedMentorList } from '../models/PaginatedMentorList';
88
90
  import type { PaginatedModerationLogList } from '../models/PaginatedModerationLogList';
@@ -103,6 +105,7 @@ import type { PatchedCourseCreationTaskFile } from '../models/PatchedCourseCreat
103
105
  import type { PatchedDisclaimer } from '../models/PatchedDisclaimer';
104
106
  import type { PatchedHumanSupportTicket } from '../models/PatchedHumanSupportTicket';
105
107
  import type { PatchedMCPServer } from '../models/PatchedMCPServer';
108
+ import type { PatchedMCPServerConnection } from '../models/PatchedMCPServerConnection';
106
109
  import type { PatchedMentorCategoryGroupCreate } from '../models/PatchedMentorCategoryGroupCreate';
107
110
  import type { PatchedMentorCreate } from '../models/PatchedMentorCreate';
108
111
  import type { PatchedPeriodicAgentCreate } from '../models/PatchedPeriodicAgentCreate';
@@ -6351,6 +6354,236 @@ export class AiMentorService {
6351
6354
  },
6352
6355
  });
6353
6356
  }
6357
+ /**
6358
+ * ViewSet for MCP server connections.
6359
+ *
6360
+ * Tenant administrators can create user- or platform-scoped connections that
6361
+ * encapsulate the authentication configuration for invoking an MCP server.
6362
+ * @returns PaginatedMCPServerConnectionList
6363
+ * @throws ApiError
6364
+ */
6365
+ public static aiMentorOrgsUsersMcpServerConnectionsList({
6366
+ org,
6367
+ userId,
6368
+ authType,
6369
+ isActive,
6370
+ mentor,
6371
+ page,
6372
+ pageSize,
6373
+ scope,
6374
+ search,
6375
+ server,
6376
+ user,
6377
+ }: {
6378
+ org: string,
6379
+ userId: string,
6380
+ /**
6381
+ * * `none` - None
6382
+ * * `token` - Token
6383
+ * * `oauth2` - Oauth2
6384
+ */
6385
+ authType?: 'none' | 'oauth2' | 'token',
6386
+ isActive?: boolean,
6387
+ mentor?: string,
6388
+ /**
6389
+ * A page number within the paginated result set.
6390
+ */
6391
+ page?: number,
6392
+ /**
6393
+ * Number of results to return per page.
6394
+ */
6395
+ pageSize?: number,
6396
+ /**
6397
+ * Whether this connection is scoped to a user or shared across a platform.
6398
+ *
6399
+ * * `user` - User
6400
+ * * `mentor` - Mentor
6401
+ * * `platform` - Platform
6402
+ */
6403
+ scope?: 'mentor' | 'platform' | 'user',
6404
+ /**
6405
+ * A search term.
6406
+ */
6407
+ search?: string,
6408
+ server?: number,
6409
+ user?: string,
6410
+ }): CancelablePromise<PaginatedMCPServerConnectionList> {
6411
+ return __request(OpenAPI, {
6412
+ method: 'GET',
6413
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/',
6414
+ path: {
6415
+ 'org': org,
6416
+ 'user_id': userId,
6417
+ },
6418
+ query: {
6419
+ 'auth_type': authType,
6420
+ 'is_active': isActive,
6421
+ 'mentor': mentor,
6422
+ 'page': page,
6423
+ 'page_size': pageSize,
6424
+ 'scope': scope,
6425
+ 'search': search,
6426
+ 'server': server,
6427
+ 'user': user,
6428
+ },
6429
+ });
6430
+ }
6431
+ /**
6432
+ * ViewSet for MCP server connections.
6433
+ *
6434
+ * Tenant administrators can create user- or platform-scoped connections that
6435
+ * encapsulate the authentication configuration for invoking an MCP server.
6436
+ * @returns MCPServerConnection
6437
+ * @throws ApiError
6438
+ */
6439
+ public static aiMentorOrgsUsersMcpServerConnectionsCreate({
6440
+ org,
6441
+ userId,
6442
+ requestBody,
6443
+ }: {
6444
+ org: string,
6445
+ userId: string,
6446
+ requestBody: MCPServerConnection,
6447
+ }): CancelablePromise<MCPServerConnection> {
6448
+ return __request(OpenAPI, {
6449
+ method: 'POST',
6450
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/',
6451
+ path: {
6452
+ 'org': org,
6453
+ 'user_id': userId,
6454
+ },
6455
+ body: requestBody,
6456
+ mediaType: 'application/json',
6457
+ });
6458
+ }
6459
+ /**
6460
+ * ViewSet for MCP server connections.
6461
+ *
6462
+ * Tenant administrators can create user- or platform-scoped connections that
6463
+ * encapsulate the authentication configuration for invoking an MCP server.
6464
+ * @returns MCPServerConnection
6465
+ * @throws ApiError
6466
+ */
6467
+ public static aiMentorOrgsUsersMcpServerConnectionsRetrieve({
6468
+ id,
6469
+ org,
6470
+ userId,
6471
+ }: {
6472
+ /**
6473
+ * A unique integer value identifying this mcp server connection.
6474
+ */
6475
+ id: number,
6476
+ org: string,
6477
+ userId: string,
6478
+ }): CancelablePromise<MCPServerConnection> {
6479
+ return __request(OpenAPI, {
6480
+ method: 'GET',
6481
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
6482
+ path: {
6483
+ 'id': id,
6484
+ 'org': org,
6485
+ 'user_id': userId,
6486
+ },
6487
+ });
6488
+ }
6489
+ /**
6490
+ * ViewSet for MCP server connections.
6491
+ *
6492
+ * Tenant administrators can create user- or platform-scoped connections that
6493
+ * encapsulate the authentication configuration for invoking an MCP server.
6494
+ * @returns MCPServerConnection
6495
+ * @throws ApiError
6496
+ */
6497
+ public static aiMentorOrgsUsersMcpServerConnectionsUpdate({
6498
+ id,
6499
+ org,
6500
+ userId,
6501
+ requestBody,
6502
+ }: {
6503
+ /**
6504
+ * A unique integer value identifying this mcp server connection.
6505
+ */
6506
+ id: number,
6507
+ org: string,
6508
+ userId: string,
6509
+ requestBody: MCPServerConnection,
6510
+ }): CancelablePromise<MCPServerConnection> {
6511
+ return __request(OpenAPI, {
6512
+ method: 'PUT',
6513
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
6514
+ path: {
6515
+ 'id': id,
6516
+ 'org': org,
6517
+ 'user_id': userId,
6518
+ },
6519
+ body: requestBody,
6520
+ mediaType: 'application/json',
6521
+ });
6522
+ }
6523
+ /**
6524
+ * ViewSet for MCP server connections.
6525
+ *
6526
+ * Tenant administrators can create user- or platform-scoped connections that
6527
+ * encapsulate the authentication configuration for invoking an MCP server.
6528
+ * @returns MCPServerConnection
6529
+ * @throws ApiError
6530
+ */
6531
+ public static aiMentorOrgsUsersMcpServerConnectionsPartialUpdate({
6532
+ id,
6533
+ org,
6534
+ userId,
6535
+ requestBody,
6536
+ }: {
6537
+ /**
6538
+ * A unique integer value identifying this mcp server connection.
6539
+ */
6540
+ id: number,
6541
+ org: string,
6542
+ userId: string,
6543
+ requestBody?: PatchedMCPServerConnection,
6544
+ }): CancelablePromise<MCPServerConnection> {
6545
+ return __request(OpenAPI, {
6546
+ method: 'PATCH',
6547
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
6548
+ path: {
6549
+ 'id': id,
6550
+ 'org': org,
6551
+ 'user_id': userId,
6552
+ },
6553
+ body: requestBody,
6554
+ mediaType: 'application/json',
6555
+ });
6556
+ }
6557
+ /**
6558
+ * ViewSet for MCP server connections.
6559
+ *
6560
+ * Tenant administrators can create user- or platform-scoped connections that
6561
+ * encapsulate the authentication configuration for invoking an MCP server.
6562
+ * @returns void
6563
+ * @throws ApiError
6564
+ */
6565
+ public static aiMentorOrgsUsersMcpServerConnectionsDestroy({
6566
+ id,
6567
+ org,
6568
+ userId,
6569
+ }: {
6570
+ /**
6571
+ * A unique integer value identifying this mcp server connection.
6572
+ */
6573
+ id: number,
6574
+ org: string,
6575
+ userId: string,
6576
+ }): CancelablePromise<void> {
6577
+ return __request(OpenAPI, {
6578
+ method: 'DELETE',
6579
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
6580
+ path: {
6581
+ 'id': id,
6582
+ 'org': org,
6583
+ 'user_id': userId,
6584
+ },
6585
+ });
6586
+ }
6354
6587
  /**
6355
6588
  * List all MCP servers.
6356
6589
  *
@@ -1,6 +0,0 @@
1
- /**
2
- * * `google` - Google
3
- */
4
- export declare enum ConnectedServiceProviderEnum {
5
- GOOGLE = "google"
6
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * * `google_drive` - Google Drive
3
- * * `google_document` - Google Document
4
- * * `google_slides` - Google Slides
5
- * * `google_calendar` - Google Calendar
6
- */
7
- export declare enum ServiceEnum {
8
- GOOGLE_DRIVE = "google_drive",
9
- GOOGLE_DOCUMENT = "google_document",
10
- GOOGLE_SLIDES = "google_slides",
11
- GOOGLE_CALENDAR = "google_calendar"
12
- }
@@ -1,10 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * * `google` - Google
7
- */
8
- export enum ConnectedServiceProviderEnum {
9
- GOOGLE = 'google',
10
- }
@@ -1,16 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * * `google_drive` - Google Drive
7
- * * `google_document` - Google Document
8
- * * `google_slides` - Google Slides
9
- * * `google_calendar` - Google Calendar
10
- */
11
- export enum ServiceEnum {
12
- GOOGLE_DRIVE = 'google_drive',
13
- GOOGLE_DOCUMENT = 'google_document',
14
- GOOGLE_SLIDES = 'google_slides',
15
- GOOGLE_CALENDAR = 'google_calendar',
16
- }