@iblai/iblai-api 3.48.1-ai-plus → 3.48.2-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 (122) hide show
  1. package/dist/index.cjs.js +34 -1350
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +35 -1349
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +34 -1350
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +2 -40
  8. package/dist/types/models/Mentor.d.ts +5 -0
  9. package/dist/types/models/MentorCreate.d.ts +5 -0
  10. package/dist/types/models/MentorFromTemplateWithSettingRequest.d.ts +2 -0
  11. package/dist/types/models/MentorSettings.d.ts +2 -0
  12. package/dist/types/models/MentorSettingsPublic.d.ts +1 -0
  13. package/dist/types/models/MentorSettingsRequest.d.ts +2 -0
  14. package/dist/types/models/PatchedMentorCreate.d.ts +5 -0
  15. package/dist/types/models/PatchedRbacGroupRole.d.ts +2 -2
  16. package/dist/types/models/PatchedRbacPolicy.d.ts +2 -2
  17. package/dist/types/models/PatchedRbacUserRole.d.ts +2 -2
  18. package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
  19. package/dist/types/models/RbacBaseRole.d.ts +15 -0
  20. package/dist/types/models/RbacGroupRole.d.ts +2 -2
  21. package/dist/types/models/RbacPolicy.d.ts +2 -2
  22. package/dist/types/models/RbacUserRole.d.ts +2 -2
  23. package/dist/types/models/Voice.d.ts +2 -2
  24. package/dist/types/services/CoreService.d.ts +10 -5
  25. package/package.json +1 -1
  26. package/src/core/OpenAPI.ts +1 -1
  27. package/src/index.ts +2 -40
  28. package/src/models/Mentor.ts +5 -0
  29. package/src/models/MentorCreate.ts +5 -0
  30. package/src/models/MentorFromTemplateWithSettingRequest.ts +2 -0
  31. package/src/models/MentorSettings.ts +2 -0
  32. package/src/models/MentorSettingsPublic.ts +1 -0
  33. package/src/models/MentorSettingsRequest.ts +2 -0
  34. package/src/models/PatchedMentorCreate.ts +5 -0
  35. package/src/models/PatchedRbacGroupRole.ts +2 -2
  36. package/src/models/PatchedRbacPolicy.ts +2 -2
  37. package/src/models/PatchedRbacUserRole.ts +2 -2
  38. package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
  39. package/src/models/RbacBaseRole.ts +20 -0
  40. package/src/models/RbacGroupRole.ts +2 -2
  41. package/src/models/RbacPolicy.ts +2 -2
  42. package/src/models/RbacUserRole.ts +2 -2
  43. package/src/models/Voice.ts +2 -2
  44. package/src/services/CoreService.ts +25 -0
  45. package/dist/types/models/Bot.d.ts +0 -15
  46. package/dist/types/models/BotCommand.d.ts +0 -6
  47. package/dist/types/models/BotCreate.d.ts +0 -12
  48. package/dist/types/models/DataSet.d.ts +0 -21
  49. package/dist/types/models/DataSetCreate.d.ts +0 -12
  50. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  51. package/dist/types/models/DiscordConfig.d.ts +0 -7
  52. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  53. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  54. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  55. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  56. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  57. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  58. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  59. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  60. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  61. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  62. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  63. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  64. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  65. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  66. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  67. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  68. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  69. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  70. package/dist/types/models/SlackConfig.d.ts +0 -8
  71. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  72. package/dist/types/models/SlackWebhook.d.ts +0 -6
  73. package/dist/types/models/TeamsConfig.d.ts +0 -7
  74. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  75. package/dist/types/models/Training.d.ts +0 -41
  76. package/dist/types/models/TrainingCreate.d.ts +0 -31
  77. package/dist/types/models/WebexConfig.d.ts +0 -10
  78. package/dist/types/models/WebexWebhook.d.ts +0 -4
  79. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  80. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  81. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  82. package/dist/types/services/AiBotService.d.ts +0 -486
  83. package/dist/types/services/AiFinetuningService.d.ts +0 -162
  84. package/src/models/Bot.ts +0 -20
  85. package/src/models/BotCommand.ts +0 -11
  86. package/src/models/BotCreate.ts +0 -17
  87. package/src/models/DataSet.ts +0 -26
  88. package/src/models/DataSetCreate.ts +0 -17
  89. package/src/models/DataSetStatusEnum.ts +0 -16
  90. package/src/models/DiscordConfig.ts +0 -12
  91. package/src/models/DiscordUserConfig.ts +0 -15
  92. package/src/models/DiscordWebhook.ts +0 -11
  93. package/src/models/PaginatedDataSetList.ts +0 -12
  94. package/src/models/PaginatedTrainingList.ts +0 -12
  95. package/src/models/PatchedBotCommand.ts +0 -11
  96. package/src/models/PatchedBotCreate.ts +0 -17
  97. package/src/models/PatchedDataSet.ts +0 -26
  98. package/src/models/PatchedDiscordConfig.ts +0 -12
  99. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  100. package/src/models/PatchedSlackConfig.ts +0 -13
  101. package/src/models/PatchedSlackUserConfig.ts +0 -22
  102. package/src/models/PatchedTeamsConfig.ts +0 -12
  103. package/src/models/PatchedTrainingCreate.ts +0 -36
  104. package/src/models/PatchedWebexConfig.ts +0 -15
  105. package/src/models/PatchedWhatsappConfig.ts +0 -16
  106. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  107. package/src/models/Provider05cEnum.ts +0 -18
  108. package/src/models/Provider63aEnum.ts +0 -10
  109. package/src/models/SlackConfig.ts +0 -13
  110. package/src/models/SlackUserConfig.ts +0 -22
  111. package/src/models/SlackWebhook.ts +0 -11
  112. package/src/models/TeamsConfig.ts +0 -12
  113. package/src/models/TeamsWebhook.ts +0 -22
  114. package/src/models/Training.ts +0 -46
  115. package/src/models/TrainingCreate.ts +0 -36
  116. package/src/models/WebexConfig.ts +0 -15
  117. package/src/models/WebexWebhook.ts +0 -9
  118. package/src/models/WhatAppWebHook.ts +0 -8
  119. package/src/models/WhatsappConfig.ts +0 -16
  120. package/src/models/WhatsappUserConfig.ts +0 -15
  121. package/src/services/AiBotService.ts +0 -1174
  122. package/src/services/AiFinetuningService.ts +0 -402
package/src/index.ts CHANGED
@@ -48,9 +48,6 @@ export { BlankEnum } from './models/BlankEnum';
48
48
  export type { BlankPlatformInvitationCreate } from './models/BlankPlatformInvitationCreate';
49
49
  export type { BlankProgramInvitationCreate } from './models/BlankProgramInvitationCreate';
50
50
  export type { BlockSkillPointInfoRequest } from './models/BlockSkillPointInfoRequest';
51
- export type { Bot } from './models/Bot';
52
- export type { BotCommand } from './models/BotCommand';
53
- export type { BotCreate } from './models/BotCreate';
54
51
  export type { BulkCourseInvitationCreate } from './models/BulkCourseInvitationCreate';
55
52
  export type { BulkCourseInvitationResponse } from './models/BulkCourseInvitationResponse';
56
53
  export type { BulkCreateAssertion } from './models/BulkCreateAssertion';
@@ -140,9 +137,6 @@ export type { Credential } from './models/Credential';
140
137
  export type { CredentialRequest } from './models/CredentialRequest';
141
138
  export type { CrontabSchedule } from './models/CrontabSchedule';
142
139
  export type { CustomInstructionResponse } from './models/CustomInstructionResponse';
143
- export type { DataSet } from './models/DataSet';
144
- export type { DataSetCreate } from './models/DataSetCreate';
145
- export { DataSetStatusEnum } from './models/DataSetStatusEnum';
146
140
  export type { DateRange } from './models/DateRange';
147
141
  export type { DesiredRole } from './models/DesiredRole';
148
142
  export type { DesiredRoleCreateUpdateRequest } from './models/DesiredRoleCreateUpdateRequest';
@@ -151,9 +145,6 @@ export type { DesiredSkillCreateUpdateRequest } from './models/DesiredSkillCreat
151
145
  export type { DetailedGradeSubsection } from './models/DetailedGradeSubsection';
152
146
  export type { DetailedGradeView } from './models/DetailedGradeView';
153
147
  export type { DetailedGradeViewData } from './models/DetailedGradeViewData';
154
- export type { DiscordConfig } from './models/DiscordConfig';
155
- export type { DiscordUserConfig } from './models/DiscordUserConfig';
156
- export type { DiscordWebhook } from './models/DiscordWebhook';
157
148
  export type { Document } from './models/Document';
158
149
  export type { DocumentFacet } from './models/DocumentFacet';
159
150
  export type { DocumentSearchResponse } from './models/DocumentSearchResponse';
@@ -307,7 +298,6 @@ export type { PaginatedCourseLicense } from './models/PaginatedCourseLicense';
307
298
  export type { PaginatedCourseLicenseAssignment } from './models/PaginatedCourseLicenseAssignment';
308
299
  export type { PaginatedCourseLicenseGroupAssignment } from './models/PaginatedCourseLicenseGroupAssignment';
309
300
  export type { PaginatedCourseSuggestion } from './models/PaginatedCourseSuggestion';
310
- export type { PaginatedDataSetList } from './models/PaginatedDataSetList';
311
301
  export type { PaginatedEdxCourseList } from './models/PaginatedEdxCourseList';
312
302
  export type { PaginatedEmailPromptListList } from './models/PaginatedEmailPromptListList';
313
303
  export type { PaginatedHeygenMarketingVideoListList } from './models/PaginatedHeygenMarketingVideoListList';
@@ -338,7 +328,6 @@ export type { PaginatedSectionList } from './models/PaginatedSectionList';
338
328
  export type { PaginatedSkill } from './models/PaginatedSkill';
339
329
  export type { PaginatedSubSectionList } from './models/PaginatedSubSectionList';
340
330
  export type { PaginatedTopicStatisticsResponse } from './models/PaginatedTopicStatisticsResponse';
341
- export type { PaginatedTrainingList } from './models/PaginatedTrainingList';
342
331
  export type { PaginatedUnitList } from './models/PaginatedUnitList';
343
332
  export type { PaginatedUserAppList } from './models/PaginatedUserAppList';
344
333
  export type { PaginatedUserEdxMemoryList } from './models/PaginatedUserEdxMemoryList';
@@ -347,14 +336,9 @@ export type { PaginatedUserLicenseAssignment } from './models/PaginatedUserLicen
347
336
  export type { PaginatedUserLicenseGroupAssignment } from './models/PaginatedUserLicenseGroupAssignment';
348
337
  export type { PaginatedVoiceList } from './models/PaginatedVoiceList';
349
338
  export type { Pagination } from './models/Pagination';
350
- export type { PatchedBotCommand } from './models/PatchedBotCommand';
351
- export type { PatchedBotCreate } from './models/PatchedBotCreate';
352
339
  export type { PatchedConversations } from './models/PatchedConversations';
353
340
  export type { PatchedCourseCreationTaskFile } from './models/PatchedCourseCreationTaskFile';
354
341
  export type { PatchedCredentialRequest } from './models/PatchedCredentialRequest';
355
- export type { PatchedDataSet } from './models/PatchedDataSet';
356
- export type { PatchedDiscordConfig } from './models/PatchedDiscordConfig';
357
- export type { PatchedDiscordUserConfig } from './models/PatchedDiscordUserConfig';
358
342
  export type { PatchedLLMCredentialRequest } from './models/PatchedLLMCredentialRequest';
359
343
  export type { PatchedMCPServer } from './models/PatchedMCPServer';
360
344
  export type { PatchedMediaResource } from './models/PatchedMediaResource';
@@ -372,15 +356,8 @@ export type { PatchedRbacRole } from './models/PatchedRbacRole';
372
356
  export type { PatchedRbacUserRole } from './models/PatchedRbacUserRole';
373
357
  export type { PatchedSection } from './models/PatchedSection';
374
358
  export type { PatchedSkillThreshold } from './models/PatchedSkillThreshold';
375
- export type { PatchedSlackConfig } from './models/PatchedSlackConfig';
376
- export type { PatchedSlackUserConfig } from './models/PatchedSlackUserConfig';
377
359
  export type { PatchedSubSection } from './models/PatchedSubSection';
378
- export type { PatchedTeamsConfig } from './models/PatchedTeamsConfig';
379
- export type { PatchedTrainingCreate } from './models/PatchedTrainingCreate';
380
360
  export type { PatchedUnit } from './models/PatchedUnit';
381
- export type { PatchedWebexConfig } from './models/PatchedWebexConfig';
382
- export type { PatchedWhatsappConfig } from './models/PatchedWhatsappConfig';
383
- export type { PatchedWhatsappUserConfig } from './models/PatchedWhatsappUserConfig';
384
361
  export type { Pathway } from './models/Pathway';
385
362
  export type { PathwayCompletionResponse } from './models/PathwayCompletionResponse';
386
363
  export type { PathwayCreateUpdateRequest } from './models/PathwayCreateUpdateRequest';
@@ -485,13 +462,13 @@ export type { PromptCategory } from './models/PromptCategory';
485
462
  export type { PromptFacet } from './models/PromptFacet';
486
463
  export type { PromptSearchResponse } from './models/PromptSearchResponse';
487
464
  export { PromptVisibilityEnum } from './models/PromptVisibilityEnum';
488
- export { Provider05cEnum } from './models/Provider05cEnum';
489
- export { Provider63aEnum } from './models/Provider63aEnum';
465
+ export { ProviderEnum } from './models/ProviderEnum';
490
466
  export type { QuestionCardTag } from './models/QuestionCardTag';
491
467
  export type { QuestionRequest } from './models/QuestionRequest';
492
468
  export type { QuestionResponse } from './models/QuestionResponse';
493
469
  export { RatingEnum } from './models/RatingEnum';
494
470
  export type { RatingRecord } from './models/RatingRecord';
471
+ export type { RbacBaseRole } from './models/RbacBaseRole';
495
472
  export type { RbacGroup } from './models/RbacGroup';
496
473
  export type { RbacGroupRole } from './models/RbacGroupRole';
497
474
  export type { RbacPlatform } from './models/RbacPlatform';
@@ -557,9 +534,6 @@ export type { SkillCreateUpdateRequest } from './models/SkillCreateUpdateRequest
557
534
  export type { SkillDetail } from './models/SkillDetail';
558
535
  export type { SkillInfo } from './models/SkillInfo';
559
536
  export type { SkillThreshold } from './models/SkillThreshold';
560
- export type { SlackConfig } from './models/SlackConfig';
561
- export type { SlackUserConfig } from './models/SlackUserConfig';
562
- export type { SlackWebhook } from './models/SlackWebhook';
563
537
  export type { SpacedRepetitionLearningPath } from './models/SpacedRepetitionLearningPath';
564
538
  export type { SpacedRepetitionQuestionStats } from './models/SpacedRepetitionQuestionStats';
565
539
  export type { StarMentor } from './models/StarMentor';
@@ -583,8 +557,6 @@ export type { Summary } from './models/Summary';
583
557
  export type { TagsView } from './models/TagsView';
584
558
  export { TargetSystemEnum } from './models/TargetSystemEnum';
585
559
  export type { TaskView } from './models/TaskView';
586
- export type { TeamsConfig } from './models/TeamsConfig';
587
- export type { TeamsWebhook } from './models/TeamsWebhook';
588
560
  export type { TemplateMentor } from './models/TemplateMentor';
589
561
  export type { TenantLaunchError } from './models/TenantLaunchError';
590
562
  export type { TenantLaunchFailed } from './models/TenantLaunchFailed';
@@ -618,8 +590,6 @@ export type { TrainChatSessionDocumentView } from './models/TrainChatSessionDocu
618
590
  export type { TrainChatSessionDocumentViewRequest } from './models/TrainChatSessionDocumentViewRequest';
619
591
  export type { TrainDocumentViewRequest } from './models/TrainDocumentViewRequest';
620
592
  export type { TrainDocumentViewResponse } from './models/TrainDocumentViewResponse';
621
- export type { Training } from './models/Training';
622
- export type { TrainingCreate } from './models/TrainingCreate';
623
593
  export { TrainingStatusEnum } from './models/TrainingStatusEnum';
624
594
  export { TransportEnum } from './models/TransportEnum';
625
595
  export type { TrendEntry } from './models/TrendEntry';
@@ -688,25 +658,17 @@ export type { VideosSpecificCourse } from './models/VideosSpecificCourse';
688
658
  export type { VideosSpecificCourseData } from './models/VideosSpecificCourseData';
689
659
  export type { VideosWatchedSubSection } from './models/VideosWatchedSubSection';
690
660
  export type { Voice } from './models/Voice';
691
- export { VoiceProviderEnum } from './models/VoiceProviderEnum';
692
661
  export type { WatchedVideosPerCourse } from './models/WatchedVideosPerCourse';
693
662
  export type { WatchedVideosPerCourseData } from './models/WatchedVideosPerCourseData';
694
663
  export type { WatchedVideosPerUser } from './models/WatchedVideosPerUser';
695
664
  export type { WatchedVideosPerUserData } from './models/WatchedVideosPerUserData';
696
- export type { WebexConfig } from './models/WebexConfig';
697
- export type { WebexWebhook } from './models/WebexWebhook';
698
665
  export type { WebResource } from './models/WebResource';
699
666
  export type { WebResourceCard } from './models/WebResourceCard';
700
667
  export type { WebResourcesQuery } from './models/WebResourcesQuery';
701
- export type { WhatAppWebHook } from './models/WhatAppWebHook';
702
- export type { WhatsappConfig } from './models/WhatsappConfig';
703
- export type { WhatsappUserConfig } from './models/WhatsappUserConfig';
704
668
  export type { WhitelistedDomain } from './models/WhitelistedDomain';
705
669
 
706
670
  export { AiAccountService } from './services/AiAccountService';
707
671
  export { AiAnalyticsService } from './services/AiAnalyticsService';
708
- export { AiBotService } from './services/AiBotService';
709
- export { AiFinetuningService } from './services/AiFinetuningService';
710
672
  export { AiIndexService } from './services/AiIndexService';
711
673
  export { AiMarketingService } from './services/AiMarketingService';
712
674
  export { AiMediaService } from './services/AiMediaService';
@@ -17,6 +17,7 @@ export type Mentor = {
17
17
  allow_anonymous?: boolean;
18
18
  metadata?: any;
19
19
  enable_moderation?: boolean;
20
+ enable_post_processing_system?: boolean;
20
21
  /**
21
22
  * (Deprecated) Set template mentor to openai-agent instead.
22
23
  */
@@ -48,6 +49,10 @@ export type Mentor = {
48
49
  * The prompt for the moderation system. This prompt must clearly distinguish between 'Approapriate' and 'Not Appropriate' queries.
49
50
  */
50
51
  moderation_system_prompt?: string;
52
+ /**
53
+ * Prompt to be used to alter or modify final llm response into any desired form.
54
+ */
55
+ post_processing_prompt?: string;
51
56
  /**
52
57
  * Desired feedback to return to the user when their prompt is deemed inappropriate.
53
58
  */
@@ -15,6 +15,7 @@ export type MentorCreate = {
15
15
  allow_anonymous?: boolean;
16
16
  metadata?: any;
17
17
  enable_moderation?: boolean;
18
+ enable_post_processing_system?: boolean;
18
19
  /**
19
20
  * (Deprecated) Set template mentor to openai-agent instead.
20
21
  */
@@ -46,6 +47,10 @@ export type MentorCreate = {
46
47
  * The prompt for the moderation system. This prompt must clearly distinguish between 'Approapriate' and 'Not Appropriate' queries.
47
48
  */
48
49
  moderation_system_prompt?: string;
50
+ /**
51
+ * Prompt to be used to alter or modify final llm response into any desired form.
52
+ */
53
+ post_processing_prompt?: string;
49
54
  /**
50
55
  * Desired feedback to return to the user when their prompt is deemed inappropriate.
51
56
  */
@@ -36,8 +36,10 @@ export type MentorFromTemplateWithSettingRequest = {
36
36
  marketing_conversations?: any;
37
37
  proactive_prompt?: string;
38
38
  moderation_system_prompt?: string;
39
+ post_processing_prompt?: string;
39
40
  moderation_response?: string;
40
41
  enable_moderation?: boolean;
42
+ enable_post_processing_system?: boolean;
41
43
  enable_openai_assistant?: boolean;
42
44
  enable_total_grounding?: boolean;
43
45
  google_voice?: number;
@@ -44,6 +44,7 @@ export type MentorSettings = {
44
44
  readonly is_guided_mentor: boolean;
45
45
  readonly enable_guided_prompts: boolean;
46
46
  readonly enable_moderation: boolean;
47
+ readonly enable_post_processing_system: boolean;
47
48
  readonly enable_safety_system: boolean;
48
49
  readonly forkable: boolean;
49
50
  readonly forkable_with_training_data: boolean;
@@ -53,6 +54,7 @@ export type MentorSettings = {
53
54
  readonly safety_system_prompt: string;
54
55
  readonly safety_response: string;
55
56
  readonly moderation_system_prompt: string;
57
+ readonly post_processing_prompt: string;
56
58
  readonly moderation_response: string;
57
59
  readonly mcp_servers: Array<MCPServer>;
58
60
  readonly department: string;
@@ -43,6 +43,7 @@ export type MentorSettingsPublic = {
43
43
  readonly is_guided_mentor: boolean;
44
44
  readonly enable_guided_prompts: boolean;
45
45
  readonly enable_moderation: boolean;
46
+ readonly enable_post_processing_system: boolean;
46
47
  readonly enable_safety_system: boolean;
47
48
  readonly forkable: boolean;
48
49
  readonly forkable_with_training_data: boolean;
@@ -41,8 +41,10 @@ export type MentorSettingsRequest = {
41
41
  llm_temperature?: number;
42
42
  proactive_prompt?: string;
43
43
  moderation_system_prompt?: string;
44
+ post_processing_prompt?: string;
44
45
  moderation_response?: string;
45
46
  enable_moderation?: boolean;
47
+ enable_post_processing_system?: boolean;
46
48
  enable_openai_assistant?: boolean;
47
49
  enable_total_grounding?: boolean;
48
50
  enable_suggested_prompts?: boolean | null;
@@ -15,6 +15,7 @@ export type PatchedMentorCreate = {
15
15
  allow_anonymous?: boolean;
16
16
  metadata?: any;
17
17
  enable_moderation?: boolean;
18
+ enable_post_processing_system?: boolean;
18
19
  /**
19
20
  * (Deprecated) Set template mentor to openai-agent instead.
20
21
  */
@@ -46,6 +47,10 @@ export type PatchedMentorCreate = {
46
47
  * The prompt for the moderation system. This prompt must clearly distinguish between 'Approapriate' and 'Not Appropriate' queries.
47
48
  */
48
49
  moderation_system_prompt?: string;
50
+ /**
51
+ * Prompt to be used to alter or modify final llm response into any desired form.
52
+ */
53
+ post_processing_prompt?: string;
49
54
  /**
50
55
  * Desired feedback to return to the user when their prompt is deemed inappropriate.
51
56
  */
@@ -2,15 +2,15 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { RbacBaseRole } from './RbacBaseRole';
5
6
  import type { RbacGroup } from './RbacGroup';
6
- import type { RbacRole } from './RbacRole';
7
7
  /**
8
8
  * Serializer for RBAC group roles.
9
9
  */
10
10
  export type PatchedRbacGroupRole = {
11
11
  readonly id?: number;
12
12
  readonly group?: RbacGroup;
13
- readonly role?: RbacRole;
13
+ readonly role?: RbacBaseRole;
14
14
  group_id?: number;
15
15
  role_id?: number;
16
16
  platform_key?: string;
@@ -2,8 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { RbacBaseRole } from './RbacBaseRole';
5
6
  import type { RbacPlatform } from './RbacPlatform';
6
- import type { RbacRole } from './RbacRole';
7
7
  /**
8
8
  * Serializer for policies.
9
9
  */
@@ -12,7 +12,7 @@ export type PatchedRbacPolicy = {
12
12
  /**
13
13
  * Role information (read-only)
14
14
  */
15
- readonly role?: RbacRole;
15
+ readonly role?: RbacBaseRole;
16
16
  /**
17
17
  * Platform information (read-only)
18
18
  */
@@ -2,7 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { RbacRole } from './RbacRole';
5
+ import type { RbacBaseRole } from './RbacBaseRole';
6
6
  import type { RbacUser } from './RbacUser';
7
7
  /**
8
8
  * Serializer for user roles.
@@ -16,7 +16,7 @@ export type PatchedRbacUserRole = {
16
16
  /**
17
17
  * Role information (read-only)
18
18
  */
19
- readonly role?: RbacRole;
19
+ readonly role?: RbacBaseRole;
20
20
  /**
21
21
  * ID of the role to assign. Role must belong to the specified platform.
22
22
  */
@@ -7,7 +7,7 @@
7
7
  * * `google` - Google
8
8
  * * `elevenlabs` - Elevenlabs
9
9
  */
10
- export enum VoiceProviderEnum {
10
+ export enum ProviderEnum {
11
11
  OPENAI = 'openai',
12
12
  GOOGLE = 'google',
13
13
  ELEVENLABS = 'elevenlabs',
@@ -0,0 +1,20 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Serializer for roles.
7
+ */
8
+ export type RbacBaseRole = {
9
+ readonly id: number;
10
+ name: string;
11
+ /**
12
+ * Platform key where this role belongs
13
+ */
14
+ platform_key: string;
15
+ /**
16
+ * List of actions/permissions this role can perform (e.g., ['Ibl.Mentor/Settings/read', 'Ibl.Mentor/Settings/write'])
17
+ */
18
+ actions: Array<string>;
19
+ };
20
+
@@ -2,15 +2,15 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { RbacBaseRole } from './RbacBaseRole';
5
6
  import type { RbacGroup } from './RbacGroup';
6
- import type { RbacRole } from './RbacRole';
7
7
  /**
8
8
  * Serializer for RBAC group roles.
9
9
  */
10
10
  export type RbacGroupRole = {
11
11
  readonly id: number;
12
12
  readonly group: RbacGroup;
13
- readonly role: RbacRole;
13
+ readonly role: RbacBaseRole;
14
14
  group_id: number;
15
15
  role_id: number;
16
16
  platform_key: string;
@@ -2,8 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { RbacBaseRole } from './RbacBaseRole';
5
6
  import type { RbacPlatform } from './RbacPlatform';
6
- import type { RbacRole } from './RbacRole';
7
7
  /**
8
8
  * Serializer for policies.
9
9
  */
@@ -12,7 +12,7 @@ export type RbacPolicy = {
12
12
  /**
13
13
  * Role information (read-only)
14
14
  */
15
- readonly role: RbacRole;
15
+ readonly role: RbacBaseRole;
16
16
  /**
17
17
  * Platform information (read-only)
18
18
  */
@@ -2,7 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { RbacRole } from './RbacRole';
5
+ import type { RbacBaseRole } from './RbacBaseRole';
6
6
  import type { RbacUser } from './RbacUser';
7
7
  /**
8
8
  * Serializer for user roles.
@@ -16,7 +16,7 @@ export type RbacUserRole = {
16
16
  /**
17
17
  * Role information (read-only)
18
18
  */
19
- readonly role: RbacRole;
19
+ readonly role: RbacBaseRole;
20
20
  /**
21
21
  * ID of the role to assign. Role must belong to the specified platform.
22
22
  */
@@ -2,11 +2,11 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { VoiceProviderEnum } from './VoiceProviderEnum';
5
+ import type { ProviderEnum } from './ProviderEnum';
6
6
  export type Voice = {
7
7
  readonly id: number;
8
8
  name: string;
9
- provider: VoiceProviderEnum;
9
+ provider: ProviderEnum;
10
10
  language?: string;
11
11
  description?: string;
12
12
  readonly audio_url: string;
@@ -1101,11 +1101,13 @@ export class CoreService {
1101
1101
  * Delete group role assignment
1102
1102
  * Remove a role assignment from a group.
1103
1103
  * @param id A unique integer value identifying this RBAC Group Role.
1104
+ * @param platformKey platform key for authorization check
1104
1105
  * @returns void
1105
1106
  * @throws ApiError
1106
1107
  */
1107
1108
  public static coreRbacGroupRolesDestroy(
1108
1109
  id: number,
1110
+ platformKey?: string,
1109
1111
  ): CancelablePromise<void> {
1110
1112
  return __request(OpenAPI, {
1111
1113
  method: 'DELETE',
@@ -1113,6 +1115,9 @@ export class CoreService {
1113
1115
  path: {
1114
1116
  'id': id,
1115
1117
  },
1118
+ query: {
1119
+ 'platform_key': platformKey,
1120
+ },
1116
1121
  errors: {
1117
1122
  404: `Group role assignment not found`,
1118
1123
  },
@@ -1245,11 +1250,13 @@ export class CoreService {
1245
1250
  * Delete RBAC group
1246
1251
  * Delete an RBAC group and all associated group role assignments.
1247
1252
  * @param id A unique integer value identifying this RBAC Group.
1253
+ * @param platformKey platform key for authorization check
1248
1254
  * @returns void
1249
1255
  * @throws ApiError
1250
1256
  */
1251
1257
  public static coreRbacGroupsDestroy(
1252
1258
  id: number,
1259
+ platformKey?: string,
1253
1260
  ): CancelablePromise<void> {
1254
1261
  return __request(OpenAPI, {
1255
1262
  method: 'DELETE',
@@ -1257,6 +1264,9 @@ export class CoreService {
1257
1264
  path: {
1258
1265
  'id': id,
1259
1266
  },
1267
+ query: {
1268
+ 'platform_key': platformKey,
1269
+ },
1260
1270
  errors: {
1261
1271
  404: `Group not found`,
1262
1272
  },
@@ -1386,11 +1396,13 @@ export class CoreService {
1386
1396
  * Delete RBAC policy
1387
1397
  * Delete an RBAC policy.
1388
1398
  * @param id A unique integer value identifying this RBAC Policy.
1399
+ * @param platformKey platform key for authorization check
1389
1400
  * @returns void
1390
1401
  * @throws ApiError
1391
1402
  */
1392
1403
  public static coreRbacPoliciesDestroy(
1393
1404
  id: number,
1405
+ platformKey?: string,
1394
1406
  ): CancelablePromise<void> {
1395
1407
  return __request(OpenAPI, {
1396
1408
  method: 'DELETE',
@@ -1398,6 +1410,9 @@ export class CoreService {
1398
1410
  path: {
1399
1411
  'id': id,
1400
1412
  },
1413
+ query: {
1414
+ 'platform_key': platformKey,
1415
+ },
1401
1416
  errors: {
1402
1417
  404: `Policy not found`,
1403
1418
  },
@@ -1524,11 +1539,13 @@ export class CoreService {
1524
1539
  * Delete RBAC role
1525
1540
  * Delete an RBAC role.
1526
1541
  * @param id A unique integer value identifying this RBAC Role.
1542
+ * @param platformKey platform key for authorization check
1527
1543
  * @returns void
1528
1544
  * @throws ApiError
1529
1545
  */
1530
1546
  public static coreRbacRolesDestroy(
1531
1547
  id: number,
1548
+ platformKey?: string,
1532
1549
  ): CancelablePromise<void> {
1533
1550
  return __request(OpenAPI, {
1534
1551
  method: 'DELETE',
@@ -1536,6 +1553,9 @@ export class CoreService {
1536
1553
  path: {
1537
1554
  'id': id,
1538
1555
  },
1556
+ query: {
1557
+ 'platform_key': platformKey,
1558
+ },
1539
1559
  errors: {
1540
1560
  404: `Role not found`,
1541
1561
  },
@@ -1671,11 +1691,13 @@ export class CoreService {
1671
1691
  * Delete user role assignment
1672
1692
  * Remove a role assignment from a user.
1673
1693
  * @param id A unique integer value identifying this RBAC User Role.
1694
+ * @param platformKey platform key for authorization check
1674
1695
  * @returns void
1675
1696
  * @throws ApiError
1676
1697
  */
1677
1698
  public static coreRbacUserRolesDestroy(
1678
1699
  id: number,
1700
+ platformKey?: string,
1679
1701
  ): CancelablePromise<void> {
1680
1702
  return __request(OpenAPI, {
1681
1703
  method: 'DELETE',
@@ -1683,6 +1705,9 @@ export class CoreService {
1683
1705
  path: {
1684
1706
  'id': id,
1685
1707
  },
1708
+ query: {
1709
+ 'platform_key': platformKey,
1710
+ },
1686
1711
  errors: {
1687
1712
  404: `User role assignment not found`,
1688
1713
  },
@@ -1,15 +0,0 @@
1
- import type { Provider05cEnum } from './Provider05cEnum';
2
- export type Bot = {
3
- readonly id: number;
4
- readonly platform: number;
5
- readonly tenant: string;
6
- name: string;
7
- provider: Provider05cEnum;
8
- readonly is_configured: boolean;
9
- slack_config: number;
10
- readonly discord_config: number;
11
- readonly webex_config: number;
12
- readonly whatsapp_config: number;
13
- readonly teams_config: number;
14
- readonly webhook_url: string;
15
- };
@@ -1,6 +0,0 @@
1
- export type BotCommand = {
2
- readonly id: number;
3
- command: string;
4
- mentor: number;
5
- bot: number;
6
- };
@@ -1,12 +0,0 @@
1
- import type { Provider05cEnum } from './Provider05cEnum';
2
- export type BotCreate = {
3
- readonly id: number;
4
- name: string;
5
- provider: Provider05cEnum;
6
- readonly is_configured: boolean;
7
- readonly webhook_url: string;
8
- readonly discord_config: number;
9
- readonly webex_config: number;
10
- readonly whatsapp_config: number;
11
- readonly teams_config: number;
12
- };
@@ -1,21 +0,0 @@
1
- import type { DataSetStatusEnum } from './DataSetStatusEnum';
2
- export type DataSet = {
3
- readonly id: string;
4
- readonly platform: Record<string, (string | number)> | null;
5
- name: string;
6
- /**
7
- * (if any) Special instructions for generating the dataset. This could be requirements on tone, language, style, etc.
8
- */
9
- prompt?: string;
10
- source_url?: string;
11
- source_file?: string;
12
- status?: DataSetStatusEnum;
13
- num_data_points?: number;
14
- train_split?: number;
15
- train_file?: string;
16
- test_file?: string;
17
- retry_attempts?: number;
18
- error_log?: string;
19
- readonly date_created: string;
20
- readonly last_modified: string;
21
- };
@@ -1,12 +0,0 @@
1
- export type DataSetCreate = {
2
- readonly id: string;
3
- name: string;
4
- source_url?: string;
5
- source_file?: string;
6
- num_data_points?: number;
7
- train_split?: number;
8
- /**
9
- * (if any) Special instructions for generating the dataset. This could be requirements on tone, language, style, etc.
10
- */
11
- prompt?: string;
12
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * * `pending` - Pending
3
- * * `processing` - Processing
4
- * * `completed` - Completed
5
- * * `failed` - Failed
6
- */
7
- export declare enum DataSetStatusEnum {
8
- PENDING = "pending",
9
- PROCESSING = "processing",
10
- COMPLETED = "completed",
11
- FAILED = "failed"
12
- }
@@ -1,7 +0,0 @@
1
- export type DiscordConfig = {
2
- readonly id: number;
3
- readonly bot: number;
4
- client_id: string;
5
- token: string;
6
- client_secret: string;
7
- };
@@ -1,10 +0,0 @@
1
- export type DiscordUserConfig = {
2
- readonly id: number;
3
- /**
4
- * edX user ID
5
- */
6
- readonly user: number;
7
- discord_user_id: string;
8
- readonly date_created: string;
9
- readonly last_modified: string;
10
- };
@@ -1,6 +0,0 @@
1
- export type DiscordWebhook = {
2
- application_id: string;
3
- type: string;
4
- token: string;
5
- id: string;
6
- };
@@ -1,7 +0,0 @@
1
- import type { DataSet } from './DataSet';
2
- export type PaginatedDataSetList = {
3
- count: number;
4
- next?: string | null;
5
- previous?: string | null;
6
- results: Array<DataSet>;
7
- };