@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
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.89.4-ai-plus',
24
+ VERSION: '4.90.2-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -97,7 +97,6 @@ export type { ComponentBlock } from './models/ComponentBlock';
97
97
  export { ComponentBlockTypeEnum } from './models/ComponentBlockTypeEnum';
98
98
  export type { ConfigurationItem } from './models/ConfigurationItem';
99
99
  export type { ConnectedService } from './models/ConnectedService';
100
- export { ConnectedServiceProviderEnum } from './models/ConnectedServiceProviderEnum';
101
100
  export type { ConsumerChannel } from './models/ConsumerChannel';
102
101
  export type { ContentAnalytics } from './models/ContentAnalytics';
103
102
  export type { ContentAverages } from './models/ContentAverages';
@@ -195,6 +194,7 @@ export type { DetailedGradeView } from './models/DetailedGradeView';
195
194
  export type { DetailedGradeViewData } from './models/DetailedGradeViewData';
196
195
  export type { Disclaimer } from './models/Disclaimer';
197
196
  export type { DisclaimerAgreement } from './models/DisclaimerAgreement';
197
+ export { DisclaimerScopeEnum } from './models/DisclaimerScopeEnum';
198
198
  export type { DiscordConfig } from './models/DiscordConfig';
199
199
  export type { DiscordUserConfig } from './models/DiscordUserConfig';
200
200
  export type { DiscordWebhook } from './models/DiscordWebhook';
@@ -296,6 +296,8 @@ export type { MarkAllReadResponse } from './models/MarkAllReadResponse';
296
296
  export type { MaskedIntegrationCredential } from './models/MaskedIntegrationCredential';
297
297
  export type { MaskedLLMCredential } from './models/MaskedLLMCredential';
298
298
  export type { MCPServer } from './models/MCPServer';
299
+ export type { MCPServerConnection } from './models/MCPServerConnection';
300
+ export { MCPServerConnectionScopeEnum } from './models/MCPServerConnectionScopeEnum';
299
301
  export type { MediaResource } from './models/MediaResource';
300
302
  export { MediaTypeEnum } from './models/MediaTypeEnum';
301
303
  export type { MemoryComponentData } from './models/MemoryComponentData';
@@ -369,6 +371,8 @@ export type { NotificationTemplateTest } from './models/NotificationTemplateTest
369
371
  export type { NotificationTemplateTestResponse } from './models/NotificationTemplateTestResponse';
370
372
  export type { NotificationToggle } from './models/NotificationToggle';
371
373
  export type { NullEnum } from './models/NullEnum';
374
+ export type { OAuthProvider } from './models/OAuthProvider';
375
+ export type { OAuthService } from './models/OAuthService';
372
376
  export type { OAuthStartResponse } from './models/OAuthStartResponse';
373
377
  export type { Observation } from './models/Observation';
374
378
  export type { OnboardingStatusUpdate } from './models/OnboardingStatusUpdate';
@@ -401,6 +405,7 @@ export type { PaginatedHeygenMarketingVideoListList } from './models/PaginatedHe
401
405
  export type { PaginatedHeygenTemplateResponseSingleList } from './models/PaginatedHeygenTemplateResponseSingleList';
402
406
  export type { PaginatedHumanSupportTicketList } from './models/PaginatedHumanSupportTicketList';
403
407
  export type { PaginatedJobRunList } from './models/PaginatedJobRunList';
408
+ export type { PaginatedMCPServerConnectionList } from './models/PaginatedMCPServerConnectionList';
404
409
  export type { PaginatedMCPServerList } from './models/PaginatedMCPServerList';
405
410
  export type { PaginatedMentorList } from './models/PaginatedMentorList';
406
411
  export type { PaginatedModerationLogList } from './models/PaginatedModerationLogList';
@@ -454,6 +459,7 @@ export type { PatchedDiscordUserConfig } from './models/PatchedDiscordUserConfig
454
459
  export type { PatchedHumanSupportTicket } from './models/PatchedHumanSupportTicket';
455
460
  export type { PatchedLLMCredentialRequest } from './models/PatchedLLMCredentialRequest';
456
461
  export type { PatchedMCPServer } from './models/PatchedMCPServer';
462
+ export type { PatchedMCPServerConnection } from './models/PatchedMCPServerConnection';
457
463
  export type { PatchedMediaResource } from './models/PatchedMediaResource';
458
464
  export type { PatchedMentorCategoryGroupCreate } from './models/PatchedMentorCategoryGroupCreate';
459
465
  export type { PatchedMentorCreate } from './models/PatchedMentorCreate';
@@ -683,14 +689,12 @@ export type { SCIMPhoneNumber } from './models/SCIMPhoneNumber';
683
689
  export type { SCIMUserCreateRequest } from './models/SCIMUserCreateRequest';
684
690
  export type { SCIMUserListResponse } from './models/SCIMUserListResponse';
685
691
  export type { SCIMUserResponse } from './models/SCIMUserResponse';
686
- export { ScopeEnum } from './models/ScopeEnum';
687
692
  export type { Section } from './models/Section';
688
693
  export type { SectionWithChildren } from './models/SectionWithChildren';
689
694
  export type { SeedMentorsView } from './models/SeedMentorsView';
690
695
  export type { SendNotification } from './models/SendNotification';
691
696
  export type { SendResponse } from './models/SendResponse';
692
697
  export type { SentimentSummary } from './models/SentimentSummary';
693
- export { ServiceEnum } from './models/ServiceEnum';
694
698
  export type { SessionBrowserScreenshot } from './models/SessionBrowserScreenshot';
695
699
  export type { SessionChartPoint } from './models/SessionChartPoint';
696
700
  export type { SessionDetail } from './models/SessionDetail';
@@ -2,15 +2,28 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { ConnectedServiceProviderEnum } from './ConnectedServiceProviderEnum';
6
5
  import type { ExternalServiceInfo } from './ExternalServiceInfo';
7
- import type { ServiceEnum } from './ServiceEnum';
6
+ /**
7
+ * Serializer for representing connected OAuth services.
8
+ *
9
+ * Includes both the legacy `service` / `scope` string values and structured
10
+ * representations so that consumers can reason about individual scope names.
11
+ */
8
12
  export type ConnectedService = {
9
13
  readonly id: number;
10
- provider: ConnectedServiceProviderEnum;
11
- service: ServiceEnum;
14
+ provider: string;
15
+ service?: string;
12
16
  expires_at?: string | null;
13
- scope: string;
17
+ scope?: string;
18
+ /**
19
+ * Return the canonical list of scope identifiers for the connection.
20
+ */
21
+ readonly scope_names: Array<string>;
22
+ /**
23
+ * Return the OAuth scope strings associated with the connection.
24
+ */
25
+ readonly scopes: Array<string>;
26
+ token_type?: string;
14
27
  readonly service_info: ExternalServiceInfo;
15
28
  };
16
29
 
@@ -2,10 +2,10 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { ScopeEnum } from './ScopeEnum';
5
+ import type { DisclaimerScopeEnum } from './DisclaimerScopeEnum';
6
6
  export type Disclaimer = {
7
7
  readonly id: number;
8
- scope?: ScopeEnum;
8
+ scope?: DisclaimerScopeEnum;
9
9
  /**
10
10
  * Platform to which the disclaimer applies.
11
11
  */
@@ -6,7 +6,7 @@
6
6
  * * `platform` - Platform
7
7
  * * `mentor` - Mentor
8
8
  */
9
- export enum ScopeEnum {
9
+ export enum DisclaimerScopeEnum {
10
10
  PLATFORM = 'platform',
11
11
  MENTOR = 'mentor',
12
12
  }
@@ -22,7 +22,7 @@ export type MCPServer = {
22
22
  image?: string | null;
23
23
  transport?: TransportEnum;
24
24
  /**
25
- * Authorization credentials to uauthenticate to the mcp server. if provided takes priority over connected service and headers. Token here must be the full authorization value. For example: `<scheme> <credentials>`
25
+ * 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>`
26
26
  */
27
27
  credentials?: string;
28
28
  /**
@@ -0,0 +1,52 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AuthTypeEnum } from './AuthTypeEnum';
6
+ import type { MCPServerConnectionScopeEnum } from './MCPServerConnectionScopeEnum';
7
+ /**
8
+ * Serializer for managing `MCPServerConnection` records via the API.
9
+ *
10
+ * The serializer enforces the business rules for combining scope, platform,
11
+ * and authentication configuration while exposing a masked view of any stored
12
+ * credentials.
13
+ */
14
+ export type MCPServerConnection = {
15
+ readonly id: number;
16
+ server: number;
17
+ readonly server_name: string;
18
+ /**
19
+ * Whether this connection is scoped to a user or shared across a platform.
20
+ *
21
+ * * `user` - User
22
+ * * `mentor` - Mentor
23
+ * * `platform` - Platform
24
+ */
25
+ scope?: MCPServerConnectionScopeEnum;
26
+ auth_type?: AuthTypeEnum;
27
+ platform?: number | null;
28
+ readonly platform_key: string | null;
29
+ /**
30
+ * edX username
31
+ */
32
+ user?: string | null;
33
+ mentor?: string | null;
34
+ connected_service?: number | null;
35
+ readonly connected_service_summary: Record<string, any> | null;
36
+ /**
37
+ * Static credential/token value for token-based authentication.
38
+ */
39
+ credentials?: string;
40
+ /**
41
+ * Authorization scheme to prefix tokens with (e.g. 'Bearer').
42
+ */
43
+ authorization_scheme?: string;
44
+ /**
45
+ * Additional headers to include when connecting to the MCP server.
46
+ */
47
+ extra_headers?: any;
48
+ is_active?: boolean;
49
+ readonly created_at: string;
50
+ readonly updated_at: string;
51
+ };
52
+
@@ -0,0 +1,14 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * * `user` - User
7
+ * * `mentor` - Mentor
8
+ * * `platform` - Platform
9
+ */
10
+ export enum MCPServerConnectionScopeEnum {
11
+ USER = 'user',
12
+ MENTOR = 'mentor',
13
+ PLATFORM = 'platform',
14
+ }
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { OAuthService } from './OAuthService';
6
+ /**
7
+ * Read-only serializer for OAuth providers, including the services they expose.
8
+ */
9
+ export type OAuthProvider = {
10
+ readonly id: number;
11
+ readonly name: string;
12
+ readonly description: string;
13
+ readonly url: string;
14
+ readonly image: string | null;
15
+ readonly scope_map: any;
16
+ readonly auth_url: string;
17
+ readonly token_url: string;
18
+ readonly is_enabled: boolean;
19
+ readonly created_at: string;
20
+ readonly updated_at: string;
21
+ readonly services: Array<OAuthService>;
22
+ };
23
+
@@ -0,0 +1,22 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Read-only serializer exposing details about an OAuth service.
7
+ */
8
+ export type OAuthService = {
9
+ readonly id: number;
10
+ readonly oauth_provider: string;
11
+ readonly name: string;
12
+ /**
13
+ * Human readable label for the OAuth service scope.
14
+ */
15
+ readonly display_name: string;
16
+ readonly description: string;
17
+ readonly scope: string;
18
+ readonly image: string | null;
19
+ readonly created_at: string;
20
+ readonly updated_at: string;
21
+ };
22
+
@@ -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 { MCPServerConnection } from './MCPServerConnection';
6
+ export type PaginatedMCPServerConnectionList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<MCPServerConnection>;
11
+ };
12
+
@@ -2,10 +2,10 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { ScopeEnum } from './ScopeEnum';
5
+ import type { DisclaimerScopeEnum } from './DisclaimerScopeEnum';
6
6
  export type PatchedDisclaimer = {
7
7
  readonly id?: number;
8
- scope?: ScopeEnum;
8
+ scope?: DisclaimerScopeEnum;
9
9
  /**
10
10
  * Platform to which the disclaimer applies.
11
11
  */
@@ -22,7 +22,7 @@ export type PatchedMCPServer = {
22
22
  image?: string | null;
23
23
  transport?: TransportEnum;
24
24
  /**
25
- * Authorization credentials to uauthenticate to the mcp server. if provided takes priority over connected service and headers. Token here must be the full authorization value. For example: `<scheme> <credentials>`
25
+ * 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>`
26
26
  */
27
27
  credentials?: string;
28
28
  /**
@@ -0,0 +1,52 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { AuthTypeEnum } from './AuthTypeEnum';
6
+ import type { MCPServerConnectionScopeEnum } from './MCPServerConnectionScopeEnum';
7
+ /**
8
+ * Serializer for managing `MCPServerConnection` records via the API.
9
+ *
10
+ * The serializer enforces the business rules for combining scope, platform,
11
+ * and authentication configuration while exposing a masked view of any stored
12
+ * credentials.
13
+ */
14
+ export type PatchedMCPServerConnection = {
15
+ readonly id?: number;
16
+ server?: number;
17
+ readonly server_name?: string;
18
+ /**
19
+ * Whether this connection is scoped to a user or shared across a platform.
20
+ *
21
+ * * `user` - User
22
+ * * `mentor` - Mentor
23
+ * * `platform` - Platform
24
+ */
25
+ scope?: MCPServerConnectionScopeEnum;
26
+ auth_type?: AuthTypeEnum;
27
+ platform?: number | null;
28
+ readonly platform_key?: string | null;
29
+ /**
30
+ * edX username
31
+ */
32
+ user?: string | null;
33
+ mentor?: string | null;
34
+ connected_service?: number | null;
35
+ readonly connected_service_summary?: Record<string, any> | null;
36
+ /**
37
+ * Static credential/token value for token-based authentication.
38
+ */
39
+ credentials?: string;
40
+ /**
41
+ * Authorization scheme to prefix tokens with (e.g. 'Bearer').
42
+ */
43
+ authorization_scheme?: string;
44
+ /**
45
+ * Additional headers to include when connecting to the MCP server.
46
+ */
47
+ extra_headers?: any;
48
+ is_active?: boolean;
49
+ readonly created_at?: string;
50
+ readonly updated_at?: string;
51
+ };
52
+
@@ -11,6 +11,8 @@ import type { LLMCredentialResponse } from '../models/LLMCredentialResponse';
11
11
  import type { LLMCredentialSchema } from '../models/LLMCredentialSchema';
12
12
  import type { MaskedIntegrationCredential } from '../models/MaskedIntegrationCredential';
13
13
  import type { MaskedLLMCredential } from '../models/MaskedLLMCredential';
14
+ import type { OAuthProvider } from '../models/OAuthProvider';
15
+ import type { OAuthService } from '../models/OAuthService';
14
16
  import type { OAuthStartResponse } from '../models/OAuthStartResponse';
15
17
  import type { PatchedCredentialRequest } from '../models/PatchedCredentialRequest';
16
18
  import type { PatchedLLMCredentialRequest } from '../models/PatchedLLMCredentialRequest';
@@ -48,21 +50,12 @@ export class AiAccountService {
48
50
  * Which field to use when ordering the results.
49
51
  */
50
52
  ordering?: string,
51
- /**
52
- * * `google` - Google
53
- */
54
- provider?: 'google',
53
+ provider?: string,
55
54
  /**
56
55
  * A search term.
57
56
  */
58
57
  search?: string,
59
- /**
60
- * * `google_drive` - Google Drive
61
- * * `google_document` - Google Document
62
- * * `google_slides` - Google Slides
63
- * * `google_calendar` - Google Calendar
64
- */
65
- service?: 'google_calendar' | 'google_document' | 'google_drive' | 'google_slides',
58
+ service?: string,
66
59
  }): CancelablePromise<Array<ConnectedService>> {
67
60
  return __request(OpenAPI, {
68
61
  method: 'GET',
@@ -725,6 +718,52 @@ export class AiAccountService {
725
718
  },
726
719
  });
727
720
  }
721
+ /**
722
+ * Return the list of OAuth services that can be used for connected services.
723
+ *
724
+ * Query Parameters:
725
+ * name (optional): Filter by exact service name (case-insensitive).
726
+ * include_disabled (optional): Set to `true` to include disabled services.
727
+ * @returns OAuthProvider
728
+ * @throws ApiError
729
+ */
730
+ public static aiAccountOrgsOauthServicesList({
731
+ org,
732
+ }: {
733
+ org: string,
734
+ }): CancelablePromise<Array<OAuthProvider>> {
735
+ return __request(OpenAPI, {
736
+ method: 'GET',
737
+ url: '/api/ai-account/orgs/{org}/oauth-services/',
738
+ path: {
739
+ 'org': org,
740
+ },
741
+ });
742
+ }
743
+ /**
744
+ * Return the available scopes for the specified OAuth service.
745
+ *
746
+ * Query Parameters:
747
+ * include_disabled (optional): Set to `true` to include scopes from disabled services.
748
+ * @returns OAuthService
749
+ * @throws ApiError
750
+ */
751
+ public static aiAccountOrgsOauthServicesScopesList({
752
+ org,
753
+ serviceName,
754
+ }: {
755
+ org: string,
756
+ serviceName: string,
757
+ }): CancelablePromise<Array<OAuthService>> {
758
+ return __request(OpenAPI, {
759
+ method: 'GET',
760
+ url: '/api/ai-account/orgs/{org}/oauth-services/{service_name}/scopes/',
761
+ path: {
762
+ 'org': org,
763
+ 'service_name': serviceName,
764
+ },
765
+ });
766
+ }
728
767
  /**
729
768
  * Enable or disable the use of main LLM credentials for an organization.
730
769
  *